/*!
 * qTip2 - Pretty powerful tooltips - v3.0.3
 * http://qtip2.com
 *
 * Copyright (c) 2016 
 * Released under the MIT licenses
 * http://jquery.org/license
 *
 * Date: Wed May 11 2016 07:08 EDT-0400
 * Plugins: tips viewport
 * Styles: core
 * 
 * Modifications by Fast Enterprises, LLC.
 */(function(A,E,Z){(function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):jQuery&&!jQuery.fn.qtip&&n(jQuery)})(function(n){"use strict";var g=!0,l=!1,T=null,M="x",P="y",rt="width",Ct="height",N="top",z="left",$="bottom",H="right",q="center",de="flip",Zt="flipinvert",G="shift",j,b,X,Mt,W={},x="qtip",jt="data-hasqtip",ft="data-qtip-id",$t=["ui-widget","ui-tooltip"],tt="."+x,zt="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),kt=x+"-fixed",St=x+"-default",dt=x+"-focus",te=x+"-hover",O=x+"-disabled",et="_replacedByqTip",Y="oldtitle",ut,ue="alert",pe="polite",ge=!1,R={ie:function(){var t,e;for(t=4,e=E.createElement("div");(e.innerHTML="<!--[if gt IE "+t+"]><i></i><![endif]-->")&&e.getElementsByTagName("i")[0];t+=1);return t>4?t:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||l};function qt(t,e,i,s){this.id=i,this.target=t,this.tooltip=T,this.elements={target:t},this._id=x+"-"+i,this.timers={img:{}},this.options=e,this.plugins={},this.cache={event:{},target:n(),disabled:l,attr:s,onTooltip:l,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=l}b=qt.prototype,b._when=function(t){return n.when.apply(n,t)},b.render=function(t){if(this.rendered||this.destroyed)return this;var e=this,i=this.options,s=this.cache,o=this.elements,r=i.content.text,a=i.content.title,h=i.content.button,d=i.position,c=[];return i.suppress&&n.attr(this.target[0],"aria-describedby",this._id),s.posClass=this._createPosClass((this.position={my:d.my,at:d.at}).my),this.tooltip=o.tooltip=n("<div/>",{id:this._id,class:[x,St,i.style.classes,s.posClass].join(" "),width:i.style.width||"",height:i.style.height||"",tracking:d.target==="mouse"&&d.adjust.mouse,role:i.role,"aria-live":i.live,"aria-atomic":l,"aria-describedby":this._id+"-content","aria-hidden":g}).toggleClass(O,this.disabled).attr(ft,this.id).data(x,this).appendTo(d.container).append(o.content=n("<div />",{class:x+"-content",id:this._id+"-content","aria-atomic":g})),this.rendered=-1,this.positioning=g,a&&(this._createTitle(),n.isFunction(a)||c.push(this._updateTitle(a,l))),h&&this._createButton(),n.isFunction(r)||c.push(this._updateContent(r,l)),this.rendered=g,this._setWidget(),n.each(W,function(f){var m;this.initialize==="render"&&(m=this(e))&&(e.plugins[f]=m)}),this._unassignEvents(),this._assignEvents(),this._when(c).then(function(){e.destroyed||(e._trigger("render"),e.positioning=l,!e.hiddenDuringWait&&(i.show.ready||t)&&e.toggle(g,s.event,l),e.hiddenDuringWait=l)}),j.api[this.id]=this,this},b.destroy=function(t){if(this.destroyed)return this.target;function e(){if(!this.destroyed){this.destroyed=g;var i=this.target,s=i.attr(Y),o;this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),n.each(this.plugins,function(){this.destroy&&this.destroy()});for(o in this.timers)this.timers.hasOwnProperty(o)&&clearTimeout(this.timers[o]);i.removeData(x).removeAttr(ft).removeAttr(jt).removeAttr("aria-describedby"),this.options.suppress&&s&&i.attr("title",s).removeAttr(Y),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=T,delete j.api[this.id]}}return(t!==g||this.triggering==="hide")&&this.rendered?(this.tooltip.one("tooltiphidden",n.proxy(e,this)),!this.triggering&&this.hide()):e.call(this),this.target};function V(t){return t===T||n.type(t)!=="object"}function Dt(t){return!(n.isFunction(t)||t&&t.attr||t.length||n.type(t)==="object"&&(t.jquery||t.then))}function pt(t){var e,i,s,o;return V(t)?l:(V(t.metadata)&&(t.metadata={type:t.metadata}),"content"in t&&(e=t.content,V(e)||e.jquery||e.done?(i=Dt(e)?l:e,e=t.content={text:i}):i=e.text,"ajax"in e&&(s=e.ajax,o=s&&s.once!==l,delete e.ajax,e.text=function(r,a){var h=i||n(this).attr(a.options.content.attr)||"Loading...",d=n.ajax(n.extend({},s,{context:a})).then(s.success,T,s.error).then(function(c){return c&&o&&a.set("content.text",c),c},function(c,f,m){a.destroyed||c.status===0||a.set("content.text",f+": "+m)});return o?h:(a.set("content.text",h),d)}),"title"in e&&(n.isPlainObject(e.title)&&(e.button=e.title.button,e.title=e.title.text),Dt(e.title||l)&&(e.title=l))),"position"in t&&V(t.position)&&(t.position={my:t.position,at:t.position}),"show"in t&&V(t.show)&&(t.show=t.show.jquery?{target:t.show}:t.show===g?{ready:g}:{event:t.show}),"hide"in t&&V(t.hide)&&(t.hide=t.hide.jquery?{target:t.hide}:{event:t.hide}),"style"in t&&V(t.style)&&(t.style={classes:t.style}),n.each(W,function(){this.sanitize&&this.sanitize(t)}),t)}Mt=b.checks={builtin:{"^id$":function(t,e,i,s){var o=i===g?j.nextid:i,r=x+"-"+o;o!==l&&o.length>0&&!n("#"+r).length?(this._id=r,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):t[e]=s},"^prerender":function(t,e,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(t,e,i){this._updateContent(i)},"^content.attr$":function(t,e,i,s){this.options.content.text===this.target.attr(s)&&this._updateContent(this.target.attr(i))},"^content.title$":function(t,e,i){if(!i)return this._removeTitle();i&&!this.elements.title&&this._createTitle(),this._updateTitle(i)},"^content.button$":function(t,e,i){this._updateButton(i)},"^content.title.(text|button)$":function(t,e,i){this.set("content."+e,i)},"^position.(my|at)$":function(t,e,i){typeof i=="string"&&(this.position[e]=t[e]=new X(i,e==="at"))},"^position.container$":function(t,e,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(t,e,i){i&&(!this.rendered&&this.render(g)||this.toggle(g))},"^style.classes$":function(t,e,i,s){this.rendered&&this.tooltip.removeClass(s).addClass(i)},"^style.(width|height)":function(t,e,i){this.rendered&&this.tooltip.css(e,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(t,e,i){this.rendered&&this.tooltip.toggleClass(St,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(t,e,i){this.rendered&&this.tooltip[(n.isFunction(i)?"":"un")+"bind"]("tooltip"+e,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var t=this.options.position;this.tooltip.attr("tracking",t.target==="mouse"&&t.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}};function Ft(t,e){for(var i=0,s,o=t,r=e.split(".");o=o[r[i++]];)i<r.length&&(s=o);return[s||t,r.pop()]}b.get=function(t){if(this.destroyed)return this;var e=Ft(this.options,t.toLowerCase()),i=e[0][e[1]];return i.precedance?i.string():i};function ee(t,e){var i,s,o;for(i in this.checks)if(this.checks.hasOwnProperty(i))for(s in this.checks[i])this.checks[i].hasOwnProperty(s)&&(o=new RegExp(s,"i").exec(t))&&(e.push(o),(i==="builtin"||this.plugins[i])&&this.checks[i][s].apply(this.plugins[i]||this,e))}var ie=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,se=/^prerender|show\.ready/i;b.set=function(t,e){if(this.destroyed)return this;var i=this.rendered,s=l,o=this.options,r;return typeof t=="string"?(r=t,t={},t[r]=e):t=n.extend({},t),n.each(t,function(a,h){if(i&&se.test(a)){delete t[a];return}var d=Ft(o,a.toLowerCase()),c;c=d[0][d[1]],d[0][d[1]]=h&&h.nodeType?n(h):h,s=ie.test(a)||s,t[a]=[d[0],d[1],h,c]}),pt(o),this.positioning=g,n.each(t,n.proxy(ee,this)),this.positioning=l,this.rendered&&this.tooltip[0].offsetWidth>0&&s&&this.reposition(o.position.target==="mouse"?T:this.cache.event),this},b._update=function(t,e){var i=this,s=this.cache;return!this.rendered||!t?l:(n.isFunction(t)&&(t=t.call(this.elements.target,s.event,this)||""),n.isFunction(t.then)?(s.waiting=g,t.then(function(o){return s.waiting=l,i._update(o,e)},T,function(o){return i._update(o,e)})):t===l||!t&&t!==""?l:(t.jquery&&t.length>0?e.empty().append(t):e.html(t),this._waitForContent(e).then(function(o){i.rendered&&i.tooltip[0].offsetWidth>0&&i.reposition(s.event,!o.length)})))},b._waitForContent=function(t){var e=this.cache;return e.waiting=g,(n.fn.imagesLoaded?t.imagesLoaded():new n.Deferred().resolve([])).done(function(){e.waiting=l}).promise()},b._updateContent=function(t,e){this._update(t,this.elements.content,e)},b._updateTitle=function(t,e){this._update(t,this.elements.title,e)===l&&this._removeTitle(l)},b._createTitle=function(){var t=this.elements,e=this._id+"-title";t.titlebar&&this._removeTitle(),t.titlebar=n("<div />",{class:x+"-titlebar "+(this.options.style.widget?mt("header"):"")}).append(t.title=n("<div />",{id:e,class:x+"-title","aria-atomic":g})).insertBefore(t.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(i){n(this).toggleClass("ui-state-active ui-state-focus",i.type.substr(-4)==="down")}).delegate(".qtip-close","mouseover mouseout",function(i){n(this).toggleClass("ui-state-hover",i.type==="mouseover")}),this.options.content.button&&this._createButton()},b._removeTitle=function(t){var e=this.elements;e.title&&(e.titlebar.remove(),e.titlebar=e.title=e.button=T,t!==l&&this.reposition())},b._createPosClass=function(t){return x+"-pos-"+(t||this.options.position.my).abbrev()},b.reposition=function(t,e){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=g;var i=this.cache,s=this.tooltip,o=this.options.position,r=o.target,a=o.my,h=o.at,d=o.viewport,c=o.container,f=o.adjust,m=f.method.split(" "),u=s.outerWidth(l),w=s.outerHeight(l),_=0,p=0,y=s.css("position"),v={left:0,top:0},S=s[0].offsetWidth>0,k=t&&t.type==="scroll",B=n(A),lt=c[0].ownerDocument,D=this.mouse,I,L,F,ot;if(n.isArray(r)&&r.length===2)h={x:z,y:N},v={left:r[0],top:r[1]};else if(r==="mouse")h={x:z,y:N},(!f.mouse||this.options.hide.distance)&&i.origin&&i.origin.pageX?t=i.origin:!t||t&&(t.type==="resize"||t.type==="scroll")?t=i.event:D&&D.pageX&&(t=D),y!=="static"&&(v=c.offset()),lt.body.offsetWidth!==(A.innerWidth||lt.documentElement.clientWidth)&&(L=n(E.body).offset()),v={left:t.pageX-v.left+(L&&L.left||0),top:t.pageY-v.top+(L&&L.top||0)},f.mouse&&k&&D&&(v.left-=(D.scrollX||0)-B.scrollLeft(),v.top-=(D.scrollY||0)-B.scrollTop());else{if(r==="event"?t&&t.target&&t.type!=="scroll"&&t.type!=="resize"?i.target=n(t.target):t.target||(i.target=this.elements.target):r!=="event"&&(i.target=n(r.jquery?r:this.elements.target)),r=i.target,r=n(r).eq(0),r.length===0)return this;r[0]===E||r[0]===A?(_=R.iOS?A.innerWidth:r.width(),p=R.iOS?A.innerHeight:r.height(),r[0]===A&&(v={top:(d||r).scrollTop(),left:(d||r).scrollLeft()})):W.imagemap&&r.is("area")?I=W.imagemap(this,r,h,W.viewport?m:l):W.svg&&r&&r[0].ownerSVGElement?I=W.svg(this,r,h,W.viewport?m:l):(_=r.outerWidth(l),p=r.outerHeight(l),v=r.offset()),I&&(_=I.width,p=I.height,L=I.offset,v=I.position),v=this.reposition.offset(r,v,c),(R.iOS>3.1&&R.iOS<4.1||R.iOS>=4.3&&R.iOS<4.33||!R.iOS&&y==="fixed")&&(v.left-=B.scrollLeft(),v.top-=B.scrollTop()),(!I||I&&I.adjustable!==l)&&(v.left+=h.x===H?_:h.x===q?_/2:0,v.top+=h.y===$?p:h.y===q?p/2:0)}return v.left+=f.x+(a.x===H?-u:a.x===q?-u/2:0),v.top+=f.y+(a.y===$?-w:a.y===q?-w/2:0),W.viewport?(F=v.adjusted=W.viewport(this,v,o,_,p,u,w),L&&F.left&&(v.left+=L.left),L&&F.top&&(v.top+=L.top),F.my&&(this.position.my=F.my)):v.adjusted={left:0,top:0},i.posClass!==(ot=this._createPosClass(this.position.my))&&(i.posClass=ot,s.removeClass(i.posClass).addClass(ot)),this._trigger("move",[v,d.elem||d],t)?(delete v.adjusted,e===l||!S||isNaN(v.left)||isNaN(v.top)||r==="mouse"||!n.isFunction(o.effect)?s.css(v):n.isFunction(o.effect)&&(o.effect.call(s,this,n.extend({},v)),s.queue(function(K){n(this).css({opacity:"",height:""}),R.ie&&this.style.removeAttribute("filter"),K()})),this.positioning=l,this):this},b.reposition.offset=function(t,e,i){if(!i[0])return e;var s=n(t[0].ownerDocument),o=!!R.ie&&E.compatMode!=="CSS1Compat",r=i[0],a,h,d,c;function f(m,u){e.left+=u*m.scrollLeft(),e.top+=u*m.scrollTop()}do(h=n.css(r,"position"))!=="static"&&(h==="fixed"?(d=r.getBoundingClientRect(),f(s,-1)):(d=n(r).position(),d.left+=parseFloat(n.css(r,"borderLeftWidth"))||0,d.top+=parseFloat(n.css(r,"borderTopWidth"))||0),e.left-=d.left+(parseFloat(n.css(r,"marginLeft"))||0),e.top-=d.top+(parseFloat(n.css(r,"marginTop"))||0),!a&&(c=n.css(r,"overflow"))!=="hidden"&&c!=="visible"&&(a=n(r)));while(r=r.offsetParent);return a&&(a[0]!==s[0]||o)&&f(a,1),e};var gt=(X=b.reposition.Corner=function(t,e){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,q).toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!e;var i=t.charAt(0);this.precedance=i==="t"||i==="b"?P:M}).prototype;gt.invert=function(t,e){this[t]=this[t]===z?H:this[t]===H?z:e||this[t]},gt.string=function(t){var e=this.x,i=this.y,s=e!==i?e==="center"||i!=="center"&&(this.precedance===P||this.forceY)?[i,e]:[e,i]:[e];return t!==!1?s.join(" "):s},gt.abbrev=function(){var t=this.string(!1);return t[0].charAt(0)+(t[1]&&t[1].charAt(0)||"")},gt.clone=function(){return new X(this.string(),this.forceY)},b.toggle=function(t,e){var i=this.cache,s=this.options,o=this.tooltip;if(e){if(/over|enter/.test(e.type)&&i.event&&/out|leave/.test(i.event.type)&&s.show.target.add(e.target).length===s.show.target.length&&o.has(e.relatedTarget).length)return this;i.event=n.event.fix(e)}if(this.waiting&&!t&&(this.hiddenDuringWait=g),this.rendered){if(this.destroyed||this.disabled)return this}else return t?this.render(1):this;var r=t?"show":"hide",a=this.options[r],h=this.options.position,d=this.options.content,c=this.tooltip.css("width"),f=this.tooltip.is(":visible"),m=t||a.target.length===1,u=!e||a.target.length<2||i.target[0]===e.target,w,_,p;return(typeof t).search("boolean|number")&&(t=!f),w=!o.is(":animated")&&f===t&&u,_=w?T:!!this._trigger(r,[90]),this.destroyed?this:(_!==l&&t&&this.focus(e),!_||w?this:(this.options.cosmeticOnly||n.attr(o[0],"aria-hidden",!t),t?(this.mouse&&(i.origin=n.event.fix(this.mouse)),n.isFunction(d.text)&&this._updateContent(d.text,l),n.isFunction(d.title)&&this._updateTitle(d.title,l),!ut&&h.target==="mouse"&&h.adjust.mouse&&(n(E).bind("mousemove."+x,this._storeMouse),ut=g),c||o.css("width",o.outerWidth(l)),this.reposition(e,arguments[2]),c||o.css("width",""),a.solo&&(typeof a.solo=="string"?n(a.solo):n(tt,a.solo)).not(o).not(a.target).qtip("hide",new n.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete i.origin,ut&&!n(tt+'[tracking="true"]:visible',a.solo).not(o).length&&(n(E).unbind("mousemove."+x),ut=l),this.blur(e)),p=n.proxy(function(){t?(R.ie&&o[0].style.removeAttribute("filter"),o.css("overflow",""),typeof a.autofocus=="string"&&n(this.options.show.autofocus,o).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):o.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(t?"visible":"hidden")},this),a.effect===l||m===l?(o[r](),p()):n.isFunction(a.effect)?(o.stop(1,1),a.effect.call(o,this),o.queue("fx",function(y){p(),y()})):o.fadeTo(90,t?1:0,p),t&&a.target.trigger("qtip-"+this.id+"-inactive"),this))},b.show=function(t){return this.toggle(g,t)},b.hide=function(t){return this.toggle(l,t)},b.focus=function(t){if(!this.rendered||this.destroyed)return this;var e=n(tt),i=this.tooltip,s=parseInt(i[0].style.zIndex,10),o=j.zindex+e.length;return i.hasClass(dt)||this._trigger("focus",[o],t)&&(s!==o&&(e.each(function(){this.style.zIndex>s&&(this.style.zIndex=this.style.zIndex-1)}),e.filter("."+dt).qtip("blur",t)),i.addClass(dt)[0].style.zIndex=o),this},b.blur=function(t){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(dt),this._trigger("blur",[this.tooltip.css("zIndex")],t),this)},b.disable=function(t){return this.destroyed?this:(t==="toggle"?t=!(this.rendered?this.tooltip.hasClass(O):this.disabled):typeof t!="boolean"&&(t=g),this.rendered&&this.tooltip.toggleClass(O,t).attr("aria-disabled",t),this.disabled=!!t,this)},b.enable=function(){return this.disable(l)},b._createButton=function(){var t=this,e=this.elements,i=e.tooltip,s=this.options.content.button,o=typeof s=="string",r=o?s:"Close tooltip";e.button&&e.button.remove(),s.jquery?e.button=s:e.button=n("<a />",{class:"qtip-close "+(this.options.style.widget?"":x+"-icon"),title:r,"aria-label":r}).prepend(n("<span />",{class:"ui-icon ui-icon-close",html:"&times;"})),e.button.appendTo(e.titlebar||i).attr("role","button").click(function(a){return i.hasClass(O)||t.hide(a),l})},b._updateButton=function(t){if(!this.rendered)return l;var e=this.elements.button;t?this._createButton():e.remove()};function mt(t){return $t.concat("").join(t?"-"+t+" ":" ")}b._setWidget=function(){var t=this.options.style.widget,e=this.elements,i=e.tooltip,s=i.hasClass(O);i.removeClass(O),O=t?"ui-state-disabled":"qtip-disabled",i.toggleClass(O,s),i.toggleClass("ui-helper-reset "+mt(),t).toggleClass(St,this.options.style.def&&!t),e.content&&e.content.toggleClass(mt("content"),t),e.titlebar&&e.titlebar.toggleClass(mt("header"),t),e.button&&e.button.toggleClass(x+"-icon",!t)};function vt(t,e){if(e>0)return setTimeout(n.proxy(t,this),e);t.call(this)}function oe(t){this.tooltip.hasClass(O)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=vt.call(this,function(){this.toggle(g,t)},this.options.show.delay))}function ne(t){if(!(this.tooltip.hasClass(O)||this.destroyed)){var e=n(t.relatedTarget),i=e.closest(tt)[0]===this.tooltip[0],s=e[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==e[0]&&this.options.position.target==="mouse"&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(i||s)){try{t.preventDefault(),t.stopImmediatePropagation()}catch(o){}return}this.timers.hide=vt.call(this,function(){this.toggle(l,t)},this.options.hide.delay,this)}}function At(t){this.tooltip.hasClass(O)||!this.options.hide.inactive||(clearTimeout(this.timers.inactive),this.timers.inactive=vt.call(this,function(){this.hide(t)},this.options.hide.inactive))}function Nt(t){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(t)}b._storeMouse=function(t){return(this.mouse=n.event.fix(t)).type="mousemove",this},b._bind=function(t,e,i,s,o){if(!(!t||!i||!e.length)){var r="."+this._id+(s?"-"+s:"");return n(t).bind((e.split?e:e.join(r+" "))+r,n.proxy(i,o||this)),this}},b._unbind=function(t,e){return t&&n(t).unbind("."+this._id+(e?"-"+e:"")),this};function Bt(t,e,i){n(E.body).delegate(t,(e.split?e:e.join("."+x+" "))+"."+x,function(){var s=j.api[n.attr(this,ft)];s&&!s.disabled&&i.apply(s,arguments)})}b._trigger=function(t,e,i){var s=new n.Event("tooltip"+t);return s.originalEvent=i&&n.extend({},i)||this.cache.event||T,this.triggering=t,this.tooltip.trigger(s,[this].concat(e||[])),this.triggering=l,!s.isDefaultPrevented()},b._bindEvents=function(t,e,i,s,o,r){var a=i.filter(s).add(s.filter(i)),h=[];a.length&&(n.each(e,function(d,c){var f=n.inArray(c,t);f>-1&&h.push(t.splice(f,1)[0])}),h.length&&(this._bind(a,h,function(d){var c=this.rendered?this.tooltip[0].offsetWidth>0:!1;(c?r:o).call(this,d)}),i=i.not(a),s=s.not(a))),this._bind(i,t,o),this._bind(s,e,r)},b._assignInitialEvents=function(t){var e=this.options,i=e.show.target,s=e.hide.target,o=e.show.event?n.trim(""+e.show.event).split(" "):[],r=e.hide.event?n.trim(""+e.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(e.show.event)&&!/mouse(out|leave)/i.test(e.hide.event)&&r.push("mouseleave"),this._bind(i,"mousemove",function(h){this._storeMouse(h),this.cache.onTarget=g});function a(h){if(this.disabled||this.destroyed)return l;this.cache.event=h&&n.event.fix(h),this.cache.target=h&&n(h.target),clearTimeout(this.timers.show),this.timers.show=vt.call(this,function(){this.render(typeof h=="object"||e.show.ready)},e.prerender?0:e.show.delay)}this._bindEvents(o,r,i,s,a,function(){if(!this.timers)return l;clearTimeout(this.timers.show)}),(e.show.ready||e.prerender)&&a.call(this,t)},b._assignEvents=function(){var t=this,e=this.options,i=e.position,s=this.tooltip,o=e.show.target,r=e.hide.target,a=i.container,h=i.viewport,d=n(E),c=n(A),f=e.show.event?n.trim(""+e.show.event).split(" "):[],m=e.hide.event?n.trim(""+e.hide.event).split(" "):[];n.each(e.events,function(u,w){t._bind(s,u==="toggle"?["tooltipshow","tooltiphide"]:["tooltip"+u],w,null,s)}),/mouse(out|leave)/i.test(e.hide.event)&&e.hide.leave==="window"&&this._bind(d,["mouseout","blur"],function(u){!/select|option/.test(u.target.nodeName)&&!u.relatedTarget&&this.hide(u)}),e.hide.fixed?r=r.add(s.addClass(kt)):/mouse(over|enter)/i.test(e.show.event)&&this._bind(r,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+e.hide.event).indexOf("unfocus")>-1&&this._bind(a.closest("html"),["mousedown","touchstart"],function(u){var w=n(u.target),_=this.rendered&&!this.tooltip.hasClass(O)&&this.tooltip[0].offsetWidth>0,p=w.parents(tt).filter(this.tooltip[0]).length>0;w[0]!==this.target[0]&&w[0]!==this.tooltip[0]&&!p&&!this.target.has(w[0]).length&&_&&this.hide(u)}),typeof e.hide.inactive=="number"&&(this._bind(o,"qtip-"+this.id+"-inactive",At,"inactive"),this._bind(r.add(s),j.inactiveEvents,At)),this._bindEvents(f,m,o,r,oe,ne),this._bind(o.add(s),"mousemove",function(u){if(typeof e.hide.distance=="number"){var w=this.cache.origin||{},_=this.options.hide.distance,p=Math.abs;(p(u.pageX-w.pageX)>=_||p(u.pageY-w.pageY)>=_)&&this.hide(u)}this._storeMouse(u)}),i.target==="mouse"&&i.adjust.mouse&&(e.hide.event&&this._bind(o,["mouseenter","mouseleave"],function(u){if(!this.cache)return l;this.cache.onTarget=u.type==="mouseenter"}),this._bind(d,"mousemove",function(u){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(O)&&this.tooltip[0].offsetWidth>0&&this.reposition(u)})),(i.adjust.resize||h.length)&&this._bind(n.event.special.resize?h:c,"resize",Nt),i.adjust.scroll&&this._bind(c.add(i.container),"scroll",Nt)},b._unassignEvents=function(){var t=this.options,e=t.show.target,i=t.hide.target,s=n.grep([this.elements.target[0],this.rendered&&this.tooltip[0],t.position.container[0],t.position.viewport[0],t.position.container.closest("html")[0],A,E],function(o){return typeof o=="object"});e&&e.toArray&&(s=s.concat(e.toArray())),i&&i.toArray&&(s=s.concat(i.toArray())),this._unbind(s)._unbind(s,"destroy")._unbind(s,"inactive")},n(function(){Bt(tt,["mouseenter","mouseleave"],function(t){var e=t.type==="mouseenter",i=n(t.currentTarget),s=n(t.relatedTarget||t.target),o=this.options;e?(this.focus(t),i.hasClass(kt)&&!i.hasClass(O)&&clearTimeout(this.timers.hide)):o.position.target==="mouse"&&o.position.adjust.mouse&&o.hide.event&&o.show.target&&!s.closest(o.show.target[0]).length&&this.hide(t),i.toggleClass(te,e)}),Bt("["+ft+"]",zt,At)});function re(t,e,i){var s,o,r,a,h,d=n(E.body),c=t[0]===E?d:t,f=t.metadata?t.metadata(i.metadata):T,m=i.metadata.type==="html5"&&f?f[i.metadata.name]:T,u=t.data(i.metadata.name||"qtipopts");try{u=typeof u=="string"?n.parseJSON(u):u}catch(w){}if(a=n.extend(g,{},j.defaults,i,typeof u=="object"?pt(u):T,pt(m||f)),o=a.position,a.id=e,typeof a.content.text=="boolean")if(r=t.attr(a.content.attr),a.content.attr!==l&&r)a.content.text=r;else return l;if(o.container.length||(o.container=d),o.target===l&&(o.target=c),a.show.target===l&&(a.show.target=c),a.show.solo===g&&(a.show.solo=o.container.closest("body")),a.hide.target===l&&(a.hide.target=c),a.position.viewport===g&&(a.position.viewport=o.container),o.container=o.container.eq(0),o.at=new X(o.at,g),o.my=new X(o.my),t.data(x)){if(a.overwrite)t.qtip("destroy",!0);else if(a.overwrite===l)return l}return t.attr(jt,e),a.suppress&&(h=t.attr("title"))&&t.removeAttr("title").attr(Y,h).attr("title",""),s=new qt(t,a,e,!!r),t.data(x,s),s}j=n.fn.qtip=function(t,e,i){var s=(""+t).toLowerCase(),o=T,r=n.makeArray(arguments).slice(1),a=r[r.length-1],h=this[0]?n.data(this[0],x):T;if(!arguments.length&&h||s==="api")return h;if(typeof t=="string")return this.each(function(){var d=n.data(this,x);if(!d)return g;if(a&&a.timeStamp&&(d.cache.event=a),e&&(s==="option"||s==="options"))if(i!==Z||n.isPlainObject(e))d.set(e,i);else return o=d.get(e),l;else d[s]&&d[s].apply(d,r)}),o!==T?o:this;if(typeof t=="object"||!arguments.length)return h=pt(n.extend(g,{},t)),this.each(function(d){var c,f;if(f=n.isArray(h.id)?h.id[d]:h.id,f=!f||f===l||f.length<1||j.api[f]?j.nextid++:f,c=re(n(this),f,h),c===l)return g;j.api[f]=c,n.each(W,function(){this.initialize==="initialize"&&this(c)}),c._assignInitialEvents(a)})},n.qtip=qt,j.api={},n.each({attr:function(t,e){if(this.length){var i=this[0],s="title",o=n.data(i,"qtip");if(t===s&&o&&o.options&&typeof o=="object"&&typeof o.options=="object"&&o.options.suppress)return arguments.length<2?n.attr(i,Y):(o&&o.options.content.attr===s&&o.cache.attr&&o.set("content.text",e),this.attr(Y,e))}return n.fn["attr"+et].apply(this,arguments)},clone:function(t){var e=n.fn["clone"+et].apply(this,arguments);return t||e.filter("["+Y+"]").attr("title",function(){return n.attr(this,Y)}).removeAttr(Y),e}},function(t,e){if(!e||n.fn[t+et])return g;var i=n.fn[t+et]=n.fn[t];n.fn[t]=function(){return e.apply(this,arguments)||i.apply(this,arguments)}}),n.ui||(n["cleanData"+et]=n.cleanData,n.cleanData=function(t){for(var e=0,i;(i=n(t[e])).length;e++)if(i.attr(jt))try{i.triggerHandler("removeqtip")}catch(s){}n["cleanData"+et].apply(this,arguments)}),j.version="3.0.3",j.nextid=0,j.inactiveEvents=zt,j.zindex=15e3,j.defaults={prerender:l,id:l,overwrite:g,suppress:g,content:{text:g,attr:"title",title:l,button:l},position:{my:"top left",at:"bottom right",target:l,container:l,viewport:l,adjust:{x:0,y:0,mouse:g,scroll:g,resize:g,method:"flipinvert flipinvert"},effect:function(t,e){n(this).animate(e,{duration:200,queue:l})}},show:{target:l,event:"mouseenter",effect:g,delay:90,solo:l,ready:l,autofocus:l},hide:{target:l,event:"mouseleave",effect:g,delay:0,fixed:l,inactive:l,leave:"window",distance:l},style:{classes:"",widget:l,width:l,height:l,def:g},events:{render:T,move:T,show:T,hide:T,toggle:T,visible:T,hidden:T,focus:T,blur:T}};var Et,Ot,Q,Ht,Xt,It="margin",yt="border",at="color",it="background-color",Yt="transparent",Ut=" !important",bt=!!E.createElement("canvas").getContext,Gt=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i;function ht(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Lt={},ae=["Webkit","O","Moz","ms"];function he(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+ae.join(i+" ")+i).split(" "),o,r,a=0;if(Lt[e])return t.css(Lt[e]);for(;o=s[a++];)if((r=t.css(o))!==Z)return Lt[e]=o,r}function st(t,e){return Math.ceil(parseFloat(he(t,e)))}bt?(Ht=A.devicePixelRatio||1,Xt=function(){var t=E.createElement("canvas").getContext("2d");return t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1}(),Q=Ht/Xt):Ot=function(t,e,i){return"<qtipvml:"+t+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(e||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'};function Vt(t,e){this._ns="tip",this.options=e,this.offset=e.offset,this.size=[e.width,e.height],this.qtip=t,this.init(t)}n.extend(Vt.prototype,{init:function(t){var e,i;i=this.element=t.elements.tip=n("<div />",{class:x+"-tip"}).prependTo(t.tooltip),bt?(e=n("<canvas />").appendTo(this.element)[0].getContext("2d"),e.lineJoin="miter",e.miterLimit=1e5,e.save()):(e=Ot("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(e+e),t._bind(n("*",i).add(i),["click","mousedown"],function(s){s.stopPropagation()},this._ns)),t._bind(t.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(t){var e=this.qtip.elements.titlebar;return e&&(t.y===N||t.y===q&&this.element.position().top+this.size[1]/2+this.options.offset<e.outerHeight(g))},_parseCorner:function(t){var e=this.qtip.options.position.my;return t===l||e===l?t=l:t===g?t=new X(e.string()):t.string||(t=new X(t),t.fixed=g),t},_parseWidth:function(t,e,i){var s=this.qtip.elements,o=yt+ht(e)+"Width";return(i?st(i,o):st(s.content,o)||st(this._useTitle(t)&&s.titlebar||s.content,o)||st(s.tooltip,o))||0},_parseRadius:function(t){var e=this.qtip.elements,i=yt+ht(t.y)+ht(t.x)+"Radius";return R.ie<9?0:st(this._useTitle(t)&&e.titlebar||e.content,i)||st(e.tooltip,i)||0},_invalidColour:function(t,e,i){var s=t.css(e);return!s||i&&s===t.css(i)||Gt.test(s)?l:s},_parseColours:function(t){var e=this.qtip.elements,i=this.element.css("cssText",""),s=yt+ht(t[t.precedance])+ht(at),o=this._useTitle(t)&&e.titlebar||e.content,r=this._invalidColour,a=[];return a[0]=r(i,it)||r(o,it)||r(e.content,it)||r(e.tooltip,it)||i.css(it),a[1]=r(i,s,at)||r(o,s,at)||r(e.content,s,at)||r(e.tooltip,s,at)||e.tooltip.css(s),n("*",i).add(i).css("cssText",it+":"+Yt+Ut+";"+yt+":0"+Ut+";"),a},_calculateSize:function(t){var e=t.precedance===P,i=this.options.width,s=this.options.height,o=t.abbrev()==="c",r=(e?i:s)*(o?.5:1),a=Math.pow,h=Math.round,d,c,f,m=Math.sqrt(a(r,2)+a(s,2)),u=[this.border/r*m,this.border/s*m];return u[2]=Math.sqrt(a(u[0],2)-a(this.border,2)),u[3]=Math.sqrt(a(u[1],2)-a(this.border,2)),d=m+u[2]+u[3]+(o?0:u[0]),c=d/m,f=[h(c*i),h(c*s)],e?f:f.reverse()},_calculateTip:function(t,e,i){i=i||1,e=e||this.size;var s=e[0]*i,o=e[1]*i,r=Math.ceil(s/2),a=Math.ceil(o/2),h={br:[0,0,s,o,s,0],bl:[0,0,s,0,0,o],tr:[0,o,s,0,s,o],tl:[0,0,0,o,s,o],tc:[0,o,r,0,s,o],bc:[0,0,s,0,r,o],rc:[0,0,s,a,0,o],lc:[s,0,s,o,0,a]};return h.lt=h.br,h.rt=h.bl,h.lb=h.tr,h.rb=h.tl,h[t.abbrev()]},_drawCoords:function(t,e){t.beginPath(),t.moveTo(e[0],e[1]),t.lineTo(e[2],e[3]),t.lineTo(e[4],e[5]),t.closePath()},create:function(){var t=this.corner=(bt||R.ie)&&this._parseCorner(this.options.corner);return this.enabled=!!this.corner&&this.corner.abbrev()!=="c",this.enabled&&(this.qtip.cache.corner=t.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,e){if(!this.enabled)return this;var i=this.qtip.elements,s=this.element,o=s.children(),r=this.options,a=this.size,h=r.mimic,d=Math.round,c,f,m,u,w,_,p,y;t||(t=this.qtip.cache.corner||this.corner),h===l?h=t:(h=new X(h),h.precedance=t.precedance,h.x==="inherit"?h.x=t.x:h.y==="inherit"?h.y=t.y:h.x===h.y&&(h[t.precedance]=t[t.precedance])),f=h.precedance,t.precedance===M?this._swapDimensions():this._resetDimensions(),c=this.color=this._parseColours(t),c[1]!==Yt?(y=this.border=this._parseWidth(t,t[t.precedance]),r.border&&y<1&&!Gt.test(c[1])&&(c[0]=c[1]),this.border=y=r.border!==g?r.border:y):this.border=y=0,p=this.size=this._calculateSize(t),s.css({width:p[0],height:p[1],lineHeight:p[1]+"px"}),t.precedance===P?_=[d(h.x===z?y:h.x===H?p[0]-a[0]-y:(p[0]-a[0])/2),d(h.y===N?p[1]-a[1]:0)]:_=[d(h.x===z?p[0]-a[0]:0),d(h.y===N?y:h.y===$?p[1]-a[1]-y:(p[1]-a[1])/2)],bt?(m=o[0].getContext("2d"),m.restore(),m.save(),m.clearRect(0,0,6e3,6e3),u=this._calculateTip(h,a,Q),w=this._calculateTip(h,this.size,Q),o.attr(rt,p[0]*Q).attr(Ct,p[1]*Q),o.css(rt,p[0]).css(Ct,p[1]),this._drawCoords(m,w),m.fillStyle=c[1],m.fill(),m.translate(_[0]*Q,_[1]*Q),this._drawCoords(m,u),m.fillStyle=c[0],m.fill()):(u=this._calculateTip(h),u="m"+u[0]+","+u[1]+" l"+u[2]+","+u[3]+" "+u[4]+","+u[5]+" xe",_[2]=y&&/^(r|b)/i.test(t.string())?R.ie===8?2:1:0,o.css({coordsize:p[0]+y+" "+p[1]+y,antialias:""+(h.string().indexOf(q)>-1),left:_[0]-_[2]*Number(f===M),top:_[1]-_[2]*Number(f===P),width:p[0]+y,height:p[1]+y}).each(function(v){var S=n(this);S[S.prop?"prop":"attr"]({coordsize:p[0]+y+" "+p[1]+y,path:u,fillcolor:c[0],filled:!!v,stroked:!v}).toggle(!!(y||v)),!v&&S.html(Ot("stroke",'weight="'+y*2+'px" color="'+c[1]+'" miterlimit="1000" joinstyle="miter"'))})),A.opera&&setTimeout(function(){i.tip.css({display:"inline-block",visibility:"visible"})},1),e!==l&&this.calculate(t,p)},calculate:function(t,e){if(!this.enabled)return l;var i=this,s=this.qtip.elements,o=this.element,r=this.options.offset,a={},h,d;return t=t||this.corner,h=t.precedance,e=e||this._calculateSize(t),d=[t.x,t.y],h===M&&d.reverse(),n.each(d,function(c,f){var m,u,w;f===q?(m=h===P?z:N,a[m]="50%",a[It+"-"+m]=-Math.round(e[h===P?0:1]/2)+r):(m=i._parseWidth(t,f,s.tooltip),u=i._parseWidth(t,f,s.content),w=i._parseRadius(t),a[f]=Math.max(-i.border,c?u:r+(w>m?w:-m)))}),a[t[h]]-=e[h===M?0:1],o.css({margin:"",top:"",bottom:"",left:"",right:""}).css(a),a},reposition:function(t,e,i){if(!this.enabled)return;var s=e.cache,o=this.corner.clone(),r=i.adjusted,a=e.options.position.adjust.method.split(" "),h=a[0],d=a[1]||a[0],c={left:l,top:l,x:0,y:0},f,m={},u;function w(p,y,v,S,k){p===G&&o.precedance===y&&r[S]&&o[v]!==q?o.precedance=o.precedance===M?P:M:p!==G&&r[S]&&(o[y]=o[y]===q?r[S]>0?S:k:o[y]===S?k:S)}function _(p,y,v){o[p]===q?m[It+"-"+y]=c[p]=f[It+"-"+y]-r[y]:(u=f[v]!==Z?[r[y],-f[y]]:[-r[y],f[y]],(c[p]=Math.max(u[0],u[1]))>u[0]&&(i[y]-=r[y],c[y]=l),m[f[v]!==Z?v:y]=c[p])}this.corner.fixed!==g&&(w(h,M,P,z,H),w(d,P,M,N,$),(o.string()!==s.corner.string()||s.cornerTop!==r.top||s.cornerLeft!==r.left)&&this.update(o,l)),f=this.calculate(o),f.right!==Z&&(f.left=-f.right),f.bottom!==Z&&(f.top=-f.bottom),f.user=this.offset,c.left=h===G&&!!r.left,c.left&&_(M,z,H),c.top=d===G&&!!r.top,c.top&&_(P,N,$),this.element.css(m).toggle(!(c.x&&c.y||o.x===q&&c.y||o.y===q&&c.x)),i.left-=f.left.charAt?f.user:h!==G||c.top||!c.left&&!c.top?f.left+this.border:0,i.top-=f.top.charAt?f.user:d!==G||c.left||!c.left&&!c.top?f.top+this.border:0,s.cornerLeft=r.left,s.cornerTop=r.top,s.corner=o.clone()},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),Et=W.tip=function(t){return new Vt(t,t.options.style.tip)},Et.initialize="render",Et.sanitize=function(t){if(t.style&&"tip"in t.style){var e=t.style.tip;typeof e!="object"&&(e=t.style.tip={corner:e}),/string|boolean/i.test(typeof e.corner)||(e.corner=g)}},Mt.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(t){this.size=[t.width,t.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},n.extend(g,j.defaults,{style:{tip:{corner:g,mimic:l,width:6,height:6,border:g,offset:0}}}),W.viewport=function(t,e,i,s,o,r,a){var h=i.target,d=t.elements.tooltip,c=i.my,f=i.at,m=i.adjust,u=m.method.split(" "),w=u[0],_=u[1]||u[0],p=i.viewport,y=i.container,v={left:0,top:0},S,k,B,lt,D,I,L,F;if(!p.jquery||h[0]===A||h[0]===E.body||m.method==="none")return v;B=y.offset()||v,lt=y.css("position")==="static",S=d.css("position")==="fixed",D=p[0]===A?p.width():p.outerWidth(l),I=p[0]===A?p.height():p.outerHeight(l),L={left:S?0:p.scrollLeft(),top:S?0:p.scrollTop()},F=p[0]!==A&&p.offset()||v;function ot(K,le,Qt,Pt,C,wt,Kt,_t,xt){var J=e[C],U=c[K],Wt=f[K],ce=Qt===G,Rt=U===C?xt:U===wt?-xt:-xt/2,fe=Wt===C?_t:Wt===wt?-_t:-_t/2,Jt=L[C]+F[C]-(lt?0:B[C]),Tt=Jt-J,ct=J+xt-(Kt===rt?D:I)-Jt,nt=Rt-(c.precedance===K||U===c[le]?fe:0)-(Wt===q?_t/2:0);return ce?(nt=(U===C?1:-1)*Rt,e[C]+=Tt>0?Tt:ct>0?-ct:0,e[C]=Math.max(-B[C]+F[C],J-nt,Math.min(Math.max(-B[C]+F[C]+(Kt===rt?D:I),J+nt),e[C],U==="center"?J-Rt:1e9))):(Pt*=Qt===Zt?2:0,Tt>0&&(U!==C||ct>0)?(e[C]-=nt+Pt,k.invert(K,C)):ct>0&&(U!==wt||Tt>0)&&(e[C]-=(U===q?-nt:nt)+Pt,k.invert(K,wt)),e[C]<L[C]&&-e[C]>ct&&(e[C]=J,k=c.clone())),e[C]-J}return(w!=="shift"||_!=="shift")&&(k=c.clone()),v={left:w!=="none"?ot(M,P,w,m.x,z,H,rt,s,r):0,top:_!=="none"?ot(P,M,_,m.y,N,$,Ct,o,a):0,my:k},v}})})(window,document);
