!function(t,o,e,i){t.hotips=function(i,s){var n={scope:null,id:null,position:"top",arrowPositionH:"center",arrowPositionV:"center",fixed:!1,trigger:{desktop:"mouseenter",tablet:"click_target",mobile:"click_target"},hide:{desktop:"mouseleave",tablet:"click_out",mobile:"click_out"},delayIn:0,delayOut:0,speed:.2,content:!1,source:!1,responsive:{disable:!1,breakpoints:{mobile:768,tablet:1024}},class:null},p=this;p.opts={};var a=null,r=null,l=null,c=t(i),u=null,d=!1,h=!1,f=null,g=null,m=0,w=0,v=-20;p.init=function(){null===s.delayIn&&(s.delayIn=n.delayIn),null===s.delayOut&&(s.delayOut=n.delayOut),p.opts=t.extend({},n,s),p._construct()},p._construct=function(){p.opts.scope?(a=p.opts.scope,l=p.opts.scope):(a=t(o),l=t(e)),p.canShow()&&(p.setTriggers(),c.data("hotips-position")&&(p.opts.position=c.data("hotips-position")),c.data("hotips-arrow-position-h")&&(p.opts.arrowPositionH=c.data("hotips-arrow-position-h")),c.data("hotips-arrow-position-v")&&(p.opts.arrowPositionV=c.data("hotips-arrow-position-v")),r=t('
'),p.opts.id&&r.attr("data-target-id",p.opts.id),p.setup(),p.events())},p.addClasses=function(){var t="",o=c.attr("data-hotips-class"),e=p.opts.classes;o?t+=o:e&&(o+=e),r.addClass(t)},p.setup=function(){p.setContent()&&p.position()},p.setContent=function(){var o=null;if(c.attr("data-hotips-content")){if(o=l.find(c.attr("data-hotips-content")),!o.length||""===t.trim(o.html()))return!1;u=o.html()}else if(p.opts.source){if("string"==typeof p.opts.source?o=l.find(p.opts.source):"object"==typeof p.opts.source&&(o=p.opts.source),!o.length||""===t.trim(o.html()))return!1;u=o.html()}else{if(!p.opts.content)return!1;u=p.opts.content}return!0},p.setTriggers=function(){p.isMobile()?(f=p.opts.trigger.mobile,g=p.opts.hide.mobile):p.isTablet()||p.isMobile()?(f=p.opts.trigger.tablet,g=p.opts.hide.tablet):(f=p.opts.trigger.desktop,g=p.opts.hide.desktop)},p.events=function(){u&&(t(o).resize(p.onResize),p.setTriggerEvents())},p.setTriggerEvents=function(){f&&"mouseenter"!==f&&"hover"!==f?"click_target"===f?c.on("click touchstart",p.show):"load"===f?l.on("ready",p.show):c.on("mouseenter",p.show):c.on("mouseenter touchstart",p.show),g&&"mouseleave"!==g?"click_out"===g?l.on("mouseup touchstart",p.clickOutside):"click_any"===g?(l.on("mouseup touchstart",p.clickOutside),c.off("click touchstart",p.show).on("click touchstart",p.toggle)):"click_target"!==f&&"click_target"===g?c.on("click touchstart",p.hide):"click_target"===f&&"click_target"===g?c.off("click touchstart",p.show).on("click touchstart",p.toggle):c.on("mouseleave",p.hide):c.on("mouseleave touchstart",p.hide)},p.removeTriggerEvents=function(){c.off("mouseenter touchstart",p.show),c.off("click touchstart",p.show),l.off("ready",p.show),c.off("mouseleave",p.hide),l.off("mouseup touchstart",p.clickOutside),c.off("click touchstart",p.hide),c.off("click touchstart",p.toggle)},p.clickOutside=function(t){r.is(t.target)||0!==r.has(t.target).length||p.hide()},p.getPosition=function(){a.width()=p.opts.responsive.breakpoints.mobile},p.isMobile=function(){return a.width()p.opts.responsive.breakpoints.tablet},p.destroy=function(){p.hide(),a.off("resize",p.onResize),p.removeTriggerEvents(),h=!0},p.init()},t.fn.hotips=function(o){return this.each(function(){if(t.fn.hotips.destroy=function(){void 0!==typeof e&&(t(this).data("hotips").destroy(),t(this).removeData("hotips"))},void 0!==typeof t(this).data("hotips")){var e=new t.hotips(this,o);t(this).data("hotips",e)}})}}(jQuery,window,document);