/usr/share/javascript/qtip2/jquery.qtip.min.js is in libjs-qtip2 3.0.2~dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 | (function(b,a,c){(function(d){if(typeof define==="function"&&define.amd){define(["jquery"],d)}else{if(jQuery&&!jQuery.fn.qtip){d(jQuery)}}}(function(au){var S=true,H=false,af=null,aa="x",Z="y",M="width",az="height",o="top",d="left",av="bottom",l="right",J="center",u="flip",W="flipinvert",p="shift",z,aB,al,i,aI={},q="qtip",F="data-hasqtip",ac="data-qtip-id",ak=["ui-widget","ui-tooltip"],y="."+q,ad="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),D=q+"-fixed",Q=q+"-default",O=q+"-focus",aH=q+"-hover",U=q+"-disabled",aG="_replacedByqTip",G="oldtitle",aF,s={ie:(function(){var C,X;for(C=4,X=a.createElement("div");(X.innerHTML="<!--[if gt IE "+C+"]><i></i><![endif]-->")&&X.getElementsByTagName("i")[0];C+=1){}return C>4?C: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("_",""))||H};function ax(Y,X,aJ,C){this.id=aJ;this.target=Y;this.tooltip=af;this.elements={target:Y};this._id=q+"-"+aJ;this.timers={img:{}};this.options=X;this.plugins={};this.cache={event:{},target:au(),disabled:H,attr:C,onTooltip:H,lastClass:""};this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=H}aB=ax.prototype;aB._when=function(C){return au.when.apply(au,C)};aB.render=function(aK){if(this.rendered||this.destroyed){return this}var aN=this,aP=this.options,X=this.cache,C=this.elements,aM=aP.content.text,aJ=aP.content.title,Y=aP.content.button,aL=aP.position,aO=[];au.attr(this.target[0],"aria-describedby",this._id);X.posClass=this._createPosClass((this.position={my:aL.my,at:aL.at}).my);this.tooltip=C.tooltip=au("<div/>",{id:this._id,"class":[q,Q,aP.style.classes,X.posClass].join(" "),width:aP.style.width||"",height:aP.style.height||"",tracking:aL.target==="mouse"&&aL.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":H,"aria-describedby":this._id+"-content","aria-hidden":S}).toggleClass(U,this.disabled).attr(ac,this.id).data(q,this).appendTo(aL.container).append(C.content=au("<div />",{"class":q+"-content",id:this._id+"-content","aria-atomic":S}));this.rendered=-1;this.positioning=S;if(aJ){this._createTitle();if(!au.isFunction(aJ)){aO.push(this._updateTitle(aJ,H))}}if(Y){this._createButton()}if(!au.isFunction(aM)){aO.push(this._updateContent(aM,H))}this.rendered=S;this._setWidget();au.each(aI,function(aR){var aQ;if(this.initialize==="render"&&(aQ=this(aN))){aN.plugins[aR]=aQ}});this._unassignEvents();this._assignEvents();this._when(aO).then(function(){aN._trigger("render");aN.positioning=H;if(!aN.hiddenDuringWait&&(aP.show.ready||aK)){aN.toggle(S,X.event,H)}aN.hiddenDuringWait=H});z.api[this.id]=this;return this};aB.destroy=function(C){if(this.destroyed){return this.target}function X(){if(this.destroyed){return}this.destroyed=S;var Y=this.target,aJ=Y.attr(G),aK;if(this.rendered){this.tooltip.stop(1,0).find("*").remove().end().remove()}au.each(this.plugins,function(){this.destroy&&this.destroy()});for(aK in this.timers){if(this.timers.hasOwnProperty(aK)){clearTimeout(this.timers[aK])}}Y.removeData(q).removeAttr(ac).removeAttr(F).removeAttr("aria-describedby");if(this.options.suppress&&aJ){Y.attr("title",aJ).removeAttr(G)}this._unassignEvents();this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=af;delete z.api[this.id]}if((C!==S||this.triggering==="hide")&&this.rendered){this.tooltip.one("tooltiphidden",au.proxy(X,this));!this.triggering&&this.hide()}else{X.call(this)}return this.target};function A(C){return C===af||au.type(C)!=="object"}function R(C){return !(au.isFunction(C)||C&&C.attr)||C.length||au.type(C)==="object"&&(C.jquery||C.then)}function v(Y){var X,aK,aJ,C;if(A(Y)){return H}if(A(Y.metadata)){Y.metadata={type:Y.metadata}}if("content" in Y){X=Y.content;if(A(X)||X.jquery||X.done){aK=R(X)?H:X;X=Y.content={text:aK}}else{aK=X.text}if("ajax" in X){aJ=X.ajax;C=aJ&&aJ.once!==H;delete X.ajax;X.text=function(aN,aM){var aO=aK||au(this).attr(aM.options.content.attr)||"Loading...",aL=au.ajax(au.extend({},aJ,{context:aM})).then(aJ.success,af,aJ.error).then(function(aP){if(aP&&C){aM.set("content.text",aP)}return aP},function(aR,aP,aQ){if(aM.destroyed||aR.status===0){return}aM.set("content.text",aP+": "+aQ)});return !C?(aM.set("content.text",aO),aL):aO}}if("title" in X){if(au.isPlainObject(X.title)){X.button=X.title.button;X.title=X.title.text}if(R(X.title||H)){X.title=H}}}if("position" in Y&&A(Y.position)){Y.position={my:Y.position,at:Y.position}}if("show" in Y&&A(Y.show)){Y.show=Y.show.jquery?{target:Y.show}:Y.show===S?{ready:S}:{event:Y.show}}if("hide" in Y&&A(Y.hide)){Y.hide=Y.hide.jquery?{target:Y.hide}:{event:Y.hide}}if("style" in Y&&A(Y.style)){Y.style={classes:Y.style}}au.each(aI,function(){this.sanitize&&this.sanitize(Y)});return Y}i=aB.checks={builtin:{"^id$":function(aJ,aK,C,Y){var aL=C===S?z.nextid:C,X=q+"-"+aL;if(aL!==H&&aL.length>0&&!au("#"+X).length){this._id=X;if(this.rendered){this.tooltip[0].id=this._id;this.elements.content[0].id=this._id+"-content";this.elements.title[0].id=this._id+"-title"}}else{aJ[aK]=Y}},"^prerender":function(X,Y,C){C&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(X,Y,C){this._updateContent(C)},"^content.attr$":function(Y,aJ,C,X){if(this.options.content.text===this.target.attr(X)){this._updateContent(this.target.attr(C))}},"^content.title$":function(X,Y,C){if(!C){return this._removeTitle()}C&&!this.elements.title&&this._createTitle();this._updateTitle(C)},"^content.button$":function(X,Y,C){this._updateButton(C)},"^content.title.(text|button)$":function(X,Y,C){this.set("content."+Y,C)},"^position.(my|at)$":function(X,Y,C){if("string"===typeof C){this.position[Y]=X[Y]=new al(C,Y==="at")}},"^position.container$":function(X,Y,C){this.rendered&&this.tooltip.appendTo(C)},"^show.ready$":function(X,Y,C){C&&(!this.rendered&&this.render(S)||this.toggle(S))},"^style.classes$":function(Y,aJ,C,X){this.rendered&&this.tooltip.removeClass(X).addClass(C)},"^style.(width|height)":function(X,Y,C){this.rendered&&this.tooltip.css(Y,C)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(X,Y,C){this.rendered&&this.tooltip.toggleClass(Q,!!C)},"^events.(render|show|move|hide|focus|blur)$":function(X,Y,C){this.rendered&&this.tooltip[(au.isFunction(C)?"":"un")+"bind"]("tooltip"+Y,C)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(!this.rendered){return}var C=this.options.position;this.tooltip.attr("tracking",C.target==="mouse"&&C.adjust.mouse);this._unassignEvents();this._assignEvents()}}};function an(C,aJ){var X=0,aL,Y=C,aK=aJ.split(".");while(Y=Y[aK[X++]]){if(X<aK.length){aL=Y}}return[aL||C,aK.pop()]}aB.get=function(X){if(this.destroyed){return this}var Y=an(this.options,X.toLowerCase()),C=Y[0][Y[1]];return C.precedance?C.string():C};function ab(aJ,X){var Y,aK,C;for(Y in this.checks){if(!this.checks.hasOwnProperty(Y)){continue}for(aK in this.checks[Y]){if(!this.checks[Y].hasOwnProperty(aK)){continue}if(C=(new RegExp(aK,"i")).exec(aJ)){X.push(C);if(Y==="builtin"||this.plugins[Y]){this.checks[Y][aK].apply(this.plugins[Y]||this,X)}}}}}var x=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,r=/^prerender|show\.ready/i;aB.set=function(aJ,aK){if(this.destroyed){return this}var aL=this.rendered,C=H,Y=this.options,X;if("string"===typeof aJ){X=aJ;aJ={};aJ[X]=aK}else{aJ=au.extend({},aJ)}au.each(aJ,function(aN,aP){if(aL&&r.test(aN)){delete aJ[aN];return}var aO=an(Y,aN.toLowerCase()),aM;aM=aO[0][aO[1]];aO[0][aO[1]]=aP&&aP.nodeType?au(aP):aP;C=x.test(aN)||C;aJ[aN]=[aO[0],aO[1],aP,aM]});v(Y);this.positioning=S;au.each(aJ,au.proxy(ab,this));this.positioning=H;if(this.rendered&&this.tooltip[0].offsetWidth>0&&C){this.reposition(Y.position.target==="mouse"?af:this.cache.event)}return this};aB._update=function(aJ,Y){var X=this,C=this.cache;if(!this.rendered||!aJ){return H}if(au.isFunction(aJ)){aJ=aJ.call(this.elements.target,C.event,this)||""}if(au.isFunction(aJ.then)){C.waiting=S;return aJ.then(function(aK){C.waiting=H;return X._update(aK,Y)},af,function(aK){return X._update(aK,Y)})}if(aJ===H||!aJ&&aJ!==""){return H}if(aJ.jquery&&aJ.length>0){Y.empty().append(aJ.css({display:"block",visibility:"visible"}))}else{Y.html(aJ)}return this._waitForContent(Y).then(function(aK){if(X.rendered&&X.tooltip[0].offsetWidth>0){X.reposition(C.event,!aK.length)}})};aB._waitForContent=function(X){var C=this.cache;C.waiting=S;return(au.fn.imagesLoaded?X.imagesLoaded():new au.Deferred().resolve([])).done(function(){C.waiting=H}).promise()};aB._updateContent=function(X,C){this._update(X,this.elements.content,C)};aB._updateTitle=function(X,C){if(this._update(X,this.elements.title,C)===H){this._removeTitle(H)}};aB._createTitle=function(){var C=this.elements,X=this._id+"-title";if(C.titlebar){this._removeTitle()}C.titlebar=au("<div />",{"class":q+"-titlebar "+(this.options.style.widget?aD("header"):"")}).append(C.title=au("<div />",{id:X,"class":q+"-title","aria-atomic":S})).insertBefore(C.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(Y){au(this).toggleClass("ui-state-active ui-state-focus",Y.type.substr(-4)==="down")}).delegate(".qtip-close","mouseover mouseout",function(Y){au(this).toggleClass("ui-state-hover",Y.type==="mouseover")});if(this.options.content.button){this._createButton()}};aB._removeTitle=function(C){var X=this.elements;if(X.title){X.titlebar.remove();X.titlebar=X.title=X.button=af;if(C!==H){this.reposition()}}};aB._createPosClass=function(C){return q+"-pos-"+(C||this.options.position.my).abbrev()};aB.reposition=function(a0,aX){if(!this.rendered||this.positioning||this.destroyed){return this}this.positioning=S;var aW=this.cache,aL=this.tooltip,a3=this.options.position,a5=a3.target,aU=a3.my,aV=a3.at,a2=a3.viewport,aS=a3.container,aZ=a3.adjust,X=aZ.method.split(" "),a1=aL.outerWidth(H),aY=aL.outerHeight(H),aN=0,aO=0,Y=aL.css("position"),a4={left:0,top:0},C=aL[0].offsetWidth>0,aT=a0&&a0.type==="scroll",aK=au(b),a6=aS[0].ownerDocument,aR=this.mouse,aQ,aM,aJ,aP;if(au.isArray(a5)&&a5.length===2){aV={x:d,y:o};a4={left:a5[0],top:a5[1]}}else{if(a5==="mouse"){aV={x:d,y:o};if((!aZ.mouse||this.options.hide.distance)&&aW.origin&&aW.origin.pageX){a0=aW.origin}else{if(!a0||a0&&(a0.type==="resize"||a0.type==="scroll")){a0=aW.event}else{if(aR&&aR.pageX){a0=aR}}}if(Y!=="static"){a4=aS.offset()}if(a6.body.offsetWidth!==(b.innerWidth||a6.documentElement.clientWidth)){aM=au(a.body).offset()}a4={left:a0.pageX-a4.left+(aM&&aM.left||0),top:a0.pageY-a4.top+(aM&&aM.top||0)};if(aZ.mouse&&aT&&aR){a4.left-=(aR.scrollX||0)-aK.scrollLeft();a4.top-=(aR.scrollY||0)-aK.scrollTop()}}else{if(a5==="event"){if(a0&&a0.target&&a0.type!=="scroll"&&a0.type!=="resize"){aW.target=au(a0.target)}else{if(!a0.target){aW.target=this.elements.target}}}else{if(a5!=="event"){aW.target=au(a5.jquery?a5:this.elements.target)}}a5=aW.target;a5=au(a5).eq(0);if(a5.length===0){return this}else{if(a5[0]===a||a5[0]===b){aN=s.iOS?b.innerWidth:a5.width();aO=s.iOS?b.innerHeight:a5.height();if(a5[0]===b){a4={top:(a2||a5).scrollTop(),left:(a2||a5).scrollLeft()}}}else{if(aI.imagemap&&a5.is("area")){aQ=aI.imagemap(this,a5,aV,aI.viewport?X:H)}else{if(aI.svg&&a5&&a5[0].ownerSVGElement){aQ=aI.svg(this,a5,aV,aI.viewport?X:H)}else{aN=a5.outerWidth(H);aO=a5.outerHeight(H);a4=a5.offset()}}}}if(aQ){aN=aQ.width;aO=aQ.height;aM=aQ.offset;a4=aQ.position}a4=this.reposition.offset(a5,a4,aS);if(s.iOS>3.1&&s.iOS<4.1||s.iOS>=4.3&&s.iOS<4.33||!s.iOS&&Y==="fixed"){a4.left-=aK.scrollLeft();a4.top-=aK.scrollTop()}if(!aQ||aQ&&aQ.adjustable!==H){a4.left+=aV.x===l?aN:aV.x===J?aN/2:0;a4.top+=aV.y===av?aO:aV.y===J?aO/2:0}}}a4.left+=aZ.x+(aU.x===l?-a1:aU.x===J?-a1/2:0);a4.top+=aZ.y+(aU.y===av?-aY:aU.y===J?-aY/2:0);if(aI.viewport){aJ=a4.adjusted=aI.viewport(this,a4,a3,aN,aO,a1,aY);if(aM&&aJ.left){a4.left+=aM.left}if(aM&&aJ.top){a4.top+=aM.top}if(aJ.my){this.position.my=aJ.my}}else{a4.adjusted={left:0,top:0}}if(aW.posClass!==(aP=this._createPosClass(this.position.my))){aW.posClass=aP;aL.removeClass(aW.posClass).addClass(aP)}if(!this._trigger("move",[a4,a2.elem||a2],a0)){return this}delete a4.adjusted;if(aX===H||!C||isNaN(a4.left)||isNaN(a4.top)||a5==="mouse"||!au.isFunction(a3.effect)){aL.css(a4)}else{if(au.isFunction(a3.effect)){a3.effect.call(aL,this,au.extend({},a4));aL.queue(function(a7){au(this).css({opacity:"",height:""});if(s.ie){this.style.removeAttribute("filter")}a7()})}}this.positioning=H;return this};aB.reposition.offset=function(aJ,aN,X){if(!X[0]){return aN}var aQ=au(aJ[0].ownerDocument),aM=!!s.ie&&a.compatMode!=="CSS1Compat",aP=X[0],Y,aL,C,aK;function aO(aS,aR){aN.left+=aR*aS.scrollLeft();aN.top+=aR*aS.scrollTop()}do{if((aL=au.css(aP,"position"))!=="static"){if(aL==="fixed"){C=aP.getBoundingClientRect();aO(aQ,-1)}else{C=au(aP).position();C.left+=parseFloat(au.css(aP,"borderLeftWidth"))||0;C.top+=parseFloat(au.css(aP,"borderTopWidth"))||0}aN.left-=C.left+(parseFloat(au.css(aP,"marginLeft"))||0);aN.top-=C.top+(parseFloat(au.css(aP,"marginTop"))||0);if(!Y&&(aK=au.css(aP,"overflow"))!=="hidden"&&aK!=="visible"){Y=au(aP)}}}while(aP=aP.offsetParent);if(Y&&(Y[0]!==aQ[0]||aM)){aO(Y,1)}return aN};var ah=(al=aB.reposition.Corner=function(X,C){X=(""+X).replace(/([A-Z])/," $1").replace(/middle/gi,J).toLowerCase();this.x=(X.match(/left|right/i)||X.match(/center/)||["inherit"])[0].toLowerCase();this.y=(X.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.forceY=!!C;var Y=X.charAt(0);this.precedance=Y==="t"||Y==="b"?Z:aa}).prototype;ah.invert=function(X,C){this[X]=this[X]===d?l:this[X]===l?d:C||this[X]};ah.string=function(Y){var X=this.x,aJ=this.y;var C=X!==aJ?X==="center"||aJ!=="center"&&(this.precedance===Z||this.forceY)?[aJ,X]:[X,aJ]:[X];return Y!==false?C.join(" "):C};ah.abbrev=function(){var C=this.string(false);return C[0].charAt(0)+(C[1]&&C[1].charAt(0)||"")};ah.clone=function(){return new al(this.string(),this.forceY)};aB.toggle=function(aK,aL){var X=this.cache,aV=this.options,aU=this.tooltip;if(aL){if((/over|enter/).test(aL.type)&&X.event&&(/out|leave/).test(X.event.type)&&aV.show.target.add(aL.target).length===aV.show.target.length&&aU.has(aL.relatedTarget).length){return this}X.event=au.event.fix(aL)}this.waiting&&!aK&&(this.hiddenDuringWait=S);if(!this.rendered){return aK?this.render(1):this}else{if(this.destroyed||this.disabled){return this}}var aS=aK?"show":"hide",C=this.options[aS],aT=this.options.position,aQ=this.options.content,aN=this.tooltip.css("width"),aO=this.tooltip.is(":visible"),aM=aK||C.target.length===1,aP=!aL||C.target.length<2||X.target[0]===aL.target,aR,aJ,Y;if((typeof aK).search("boolean|number")){aK=!aO}aR=!aU.is(":animated")&&aO===aK&&aP;aJ=!aR?!!this._trigger(aS,[90]):af;if(this.destroyed){return this}if(aJ!==H&&aK){this.focus(aL)}if(!aJ||aR){return this}au.attr(aU[0],"aria-hidden",!!!aK);if(aK){this.mouse&&(X.origin=au.event.fix(this.mouse));if(au.isFunction(aQ.text)){this._updateContent(aQ.text,H)}if(au.isFunction(aQ.title)){this._updateTitle(aQ.title,H)}if(!aF&&aT.target==="mouse"&&aT.adjust.mouse){au(a).bind("mousemove."+q,this._storeMouse);aF=S}if(!aN){aU.css("width",aU.outerWidth(H))}this.reposition(aL,arguments[2]);if(!aN){aU.css("width","")}if(!!C.solo){(typeof C.solo==="string"?au(C.solo):au(y,C.solo)).not(aU).not(C.target).qtip("hide",new au.Event("tooltipsolo"))}}else{clearTimeout(this.timers.show);delete X.origin;if(aF&&!au(y+'[tracking="true"]:visible',C.solo).not(aU).length){au(a).unbind("mousemove."+q);aF=H}this.blur(aL)}Y=au.proxy(function(){if(aK){if(s.ie){aU[0].style.removeAttribute("filter")}aU.css("overflow","");if("string"===typeof C.autofocus){au(this.options.show.autofocus,aU).focus()}this.options.show.target.trigger("qtip-"+this.id+"-inactive")}else{aU.css({display:"",visibility:"",opacity:"",left:"",top:""})}this._trigger(aK?"visible":"hidden")},this);if(C.effect===H||aM===H){aU[aS]();Y()}else{if(au.isFunction(C.effect)){aU.stop(1,1);C.effect.call(aU,this);aU.queue("fx",function(aW){Y();aW()})}else{aU.fadeTo(90,aK?1:0,Y)}}if(aK){C.target.trigger("qtip-"+this.id+"-inactive")}return this};aB.show=function(C){return this.toggle(S,C)};aB.hide=function(C){return this.toggle(H,C)};aB.focus=function(Y){if(!this.rendered||this.destroyed){return this}var aK=au(y),aJ=this.tooltip,X=parseInt(aJ[0].style.zIndex,10),C=z.zindex+aK.length;if(!aJ.hasClass(O)){if(this._trigger("focus",[C],Y)){if(X!==C){aK.each(function(){if(this.style.zIndex>X){this.style.zIndex=this.style.zIndex-1}});aK.filter("."+O).qtip("blur",Y)}aJ.addClass(O)[0].style.zIndex=C}}return this};aB.blur=function(C){if(!this.rendered||this.destroyed){return this}this.tooltip.removeClass(O);this._trigger("blur",[this.tooltip.css("zIndex")],C);return this};aB.disable=function(C){if(this.destroyed){return this}if(C==="toggle"){C=!(this.rendered?this.tooltip.hasClass(U):this.disabled)}else{if("boolean"!==typeof C){C=S}}if(this.rendered){this.tooltip.toggleClass(U,C).attr("aria-disabled",C)}this.disabled=!!C;return this};aB.enable=function(){return this.disable(H)};aB._createButton=function(){var X=this,aK=this.elements,aJ=aK.tooltip,Y=this.options.content.button,C=typeof Y==="string",aL=C?Y:"Close tooltip";if(aK.button){aK.button.remove()}if(Y.jquery){aK.button=Y}else{aK.button=au("<a />",{"class":"qtip-close "+(this.options.style.widget?"":q+"-icon"),title:aL,"aria-label":aL}).prepend(au("<span />",{"class":"ui-icon ui-icon-close",html:"×"}))}aK.button.appendTo(aK.titlebar||aJ).attr("role","button").click(function(aM){if(!aJ.hasClass(U)){X.hide(aM)}return H})};aB._updateButton=function(C){if(!this.rendered){return H}var X=this.elements.button;if(C){this._createButton()}else{X.remove()}};function aD(C){return ak.concat("").join(C?"-"+C+" ":" ")}aB._setWidget=function(){var C=this.options.style.widget,aJ=this.elements,Y=aJ.tooltip,X=Y.hasClass(U);Y.removeClass(U);U=C?"ui-state-disabled":"qtip-disabled";Y.toggleClass(U,X);Y.toggleClass("ui-helper-reset "+aD(),C).toggleClass(Q,this.options.style.def&&!C);if(aJ.content){aJ.content.toggleClass(aD("content"),C)}if(aJ.titlebar){aJ.titlebar.toggleClass(aD("header"),C)}if(aJ.button){aJ.button.toggleClass(q+"-icon",!C)}};function e(X,C){if(C>0){return setTimeout(au.proxy(X,this),C)}else{X.call(this)}}function L(C){if(this.tooltip.hasClass(U)){return}clearTimeout(this.timers.show);clearTimeout(this.timers.hide);this.timers.show=e.call(this,function(){this.toggle(S,C)},this.options.show.delay)}function h(aJ){if(this.tooltip.hasClass(U)||this.destroyed){return}var X=au(aJ.relatedTarget),C=X.closest(y)[0]===this.tooltip[0],Y=X[0]===this.options.show.target[0];clearTimeout(this.timers.show);clearTimeout(this.timers.hide);if(this!==X[0]&&(this.options.position.target==="mouse"&&C)||this.options.hide.fixed&&((/mouse(out|leave|move)/).test(aJ.type)&&(C||Y))){try{aJ.preventDefault();aJ.stopImmediatePropagation()}catch(aK){}return}this.timers.hide=e.call(this,function(){this.toggle(H,aJ)},this.options.hide.delay,this)}function j(C){if(this.tooltip.hasClass(U)||!this.options.hide.inactive){return}clearTimeout(this.timers.inactive);this.timers.inactive=e.call(this,function(){this.hide(C)},this.options.hide.inactive)}function ai(C){if(this.rendered&&this.tooltip[0].offsetWidth>0){this.reposition(C)}}aB._storeMouse=function(C){(this.mouse=au.event.fix(C)).type="mousemove";return this};aB._bind=function(C,Y,aL,aK,X){if(!C||!aL||!Y.length){return}var aJ="."+this._id+(aK?"-"+aK:"");au(C).bind((Y.split?Y:Y.join(aJ+" "))+aJ,au.proxy(aL,X||this));return this};aB._unbind=function(C,X){C&&au(C).unbind("."+this._id+(X?"-"+X:""));return this};function aq(C,X,Y){au(a.body).delegate(C,(X.split?X:X.join("."+q+" "))+"."+q,function(){var aJ=z.api[au.attr(this,ac)];aJ&&!aJ.disabled&&Y.apply(aJ,arguments)})}aB._trigger=function(X,C,Y){var aJ=new au.Event("tooltip"+X);aJ.originalEvent=Y&&au.extend({},Y)||this.cache.event||af;this.triggering=X;this.tooltip.trigger(aJ,[this].concat(C||[]));this.triggering=H;return !aJ.isDefaultPrevented()};aB._bindEvents=function(X,aN,Y,aK,aJ,C){var aM=Y.filter(aK).add(aK.filter(Y)),aL=[];if(aM.length){au.each(aN,function(aP,aQ){var aO=au.inArray(aQ,X);aO>-1&&aL.push(X.splice(aO,1)[0])});if(aL.length){this._bind(aM,aL,function(aO){var aP=this.rendered?this.tooltip[0].offsetWidth>0:false;(aP?C:aJ).call(this,aO)});Y=Y.not(aM);aK=aK.not(aM)}}this._bind(Y,X,aJ);this._bind(aK,aN,C)};aB._assignInitialEvents=function(aK){var X=this.options,aJ=X.show.target,Y=X.hide.target,C=X.show.event?au.trim(""+X.show.event).split(" "):[],aM=X.hide.event?au.trim(""+X.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(true)},"destroy");if(/mouse(over|enter)/i.test(X.show.event)&&!/mouse(out|leave)/i.test(X.hide.event)){aM.push("mouseleave")}this._bind(aJ,"mousemove",function(aN){this._storeMouse(aN);this.cache.onTarget=S});function aL(aN){if(this.disabled||this.destroyed){return H}this.cache.event=aN&&au.event.fix(aN);this.cache.target=aN&&au(aN.target);clearTimeout(this.timers.show);this.timers.show=e.call(this,function(){this.render(typeof aN==="object"||X.show.ready)},X.prerender?0:X.show.delay)}this._bindEvents(C,aM,aJ,Y,aL,function(){if(!this.timers){return H}clearTimeout(this.timers.show)});if(X.show.ready||X.prerender){aL.call(this,aK)}};aB._assignEvents=function(){var aP=this,aR=this.options,aN=aR.position,aQ=this.tooltip,aJ=aR.show.target,aM=aR.hide.target,aK=aN.container,X=aN.viewport,Y=au(a),aL=au(b),C=aR.show.event?au.trim(""+aR.show.event).split(" "):[],aO=aR.hide.event?au.trim(""+aR.hide.event).split(" "):[];au.each(aR.events,function(aS,aT){aP._bind(aQ,aS==="toggle"?["tooltipshow","tooltiphide"]:["tooltip"+aS],aT,null,aQ)});if(/mouse(out|leave)/i.test(aR.hide.event)&&aR.hide.leave==="window"){this._bind(Y,["mouseout","blur"],function(aS){if(!/select|option/.test(aS.target.nodeName)&&!aS.relatedTarget){this.hide(aS)}})}if(aR.hide.fixed){aM=aM.add(aQ.addClass(D))}else{if(/mouse(over|enter)/i.test(aR.show.event)){this._bind(aM,"mouseleave",function(){clearTimeout(this.timers.show)})}}if((""+aR.hide.event).indexOf("unfocus")>-1){this._bind(aK.closest("html"),["mousedown","touchstart"],function(aV){var aU=au(aV.target),aT=this.rendered&&!this.tooltip.hasClass(U)&&this.tooltip[0].offsetWidth>0,aS=aU.parents(y).filter(this.tooltip[0]).length>0;if(aU[0]!==this.target[0]&&aU[0]!==this.tooltip[0]&&!aS&&!this.target.has(aU[0]).length&&aT){this.hide(aV)}})}if("number"===typeof aR.hide.inactive){this._bind(aJ,"qtip-"+this.id+"-inactive",j,"inactive");this._bind(aM.add(aQ),z.inactiveEvents,j)}this._bindEvents(C,aO,aJ,aM,L,h);this._bind(aJ.add(aQ),"mousemove",function(aV){if("number"===typeof aR.hide.distance){var aU=this.cache.origin||{},aT=this.options.hide.distance,aS=Math.abs;if(aS(aV.pageX-aU.pageX)>=aT||aS(aV.pageY-aU.pageY)>=aT){this.hide(aV)}}this._storeMouse(aV)});if(aN.target==="mouse"){if(aN.adjust.mouse){if(aR.hide.event){this._bind(aJ,["mouseenter","mouseleave"],function(aS){if(!this.cache){return H}this.cache.onTarget=aS.type==="mouseenter"})}this._bind(Y,"mousemove",function(aS){if(this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(U)&&this.tooltip[0].offsetWidth>0){this.reposition(aS)}})}}if(aN.adjust.resize||X.length){this._bind(au.event.special.resize?X:aL,"resize",ai)}if(aN.adjust.scroll){this._bind(aL.add(aN.container),"scroll",ai)}};aB._unassignEvents=function(){var X=this.options,Y=X.show.target,aJ=X.hide.target,C=au.grep([this.elements.target[0],this.rendered&&this.tooltip[0],X.position.container[0],X.position.viewport[0],X.position.container.closest("html")[0],b,a],function(aK){return typeof aK==="object"});if(Y&&Y.toArray){C=C.concat(Y.toArray())}if(aJ&&aJ.toArray){C=C.concat(aJ.toArray())}this._unbind(C)._unbind(C,"destroy")._unbind(C,"inactive")};au(function(){aq(y,["mouseenter","mouseleave"],function(X){var aJ=X.type==="mouseenter",Y=au(X.currentTarget),aK=au(X.relatedTarget||X.target),C=this.options;if(aJ){this.focus(X);Y.hasClass(D)&&!Y.hasClass(U)&&clearTimeout(this.timers.hide)}else{if(C.position.target==="mouse"&&C.position.adjust.mouse&&C.hide.event&&C.show.target&&!aK.closest(C.show.target[0]).length){this.hide(X)}}Y.toggleClass(aH,aJ)});aq("["+ac+"]",ad,j)});function ag(aJ,X,C){var aK,aT,aO,Y,aR,aL=au(a.body),aQ=aJ[0]===a?aL:aJ,aP=aJ.metadata?aJ.metadata(C.metadata):af,aS=C.metadata.type==="html5"&&aP?aP[C.metadata.name]:af,aM=aJ.data(C.metadata.name||"qtipopts");try{aM=typeof aM==="string"?au.parseJSON(aM):aM}catch(aN){}Y=au.extend(S,{},z.defaults,C,typeof aM==="object"?v(aM):af,v(aS||aP));aT=Y.position;Y.id=X;if("boolean"===typeof Y.content.text){aO=aJ.attr(Y.content.attr);if(Y.content.attr!==H&&aO){Y.content.text=aO}else{return H}}if(!aT.container.length){aT.container=aL}if(aT.target===H){aT.target=aQ}if(Y.show.target===H){Y.show.target=aQ}if(Y.show.solo===S){Y.show.solo=aT.container.closest("body")}if(Y.hide.target===H){Y.hide.target=aQ}if(Y.position.viewport===S){Y.position.viewport=aT.container}aT.container=aT.container.eq(0);aT.at=new al(aT.at,S);aT.my=new al(aT.my);if(aJ.data(q)){if(Y.overwrite){aJ.qtip("destroy",true)}else{if(Y.overwrite===H){return H}}}aJ.attr(F,X);if(Y.suppress&&(aR=aJ.attr("title"))){aJ.removeAttr("title").attr(G,aR).attr("title","")}aK=new ax(aJ,Y,X,!!aO);aJ.data(q,aK);return aK}z=au.fn.qtip=function(X,aL,aM){var aN=(""+X).toLowerCase(),aK=af,C=au.makeArray(arguments).slice(1),aJ=C[C.length-1],Y=this[0]?au.data(this[0],q):af;if(!arguments.length&&Y||aN==="api"){return Y}else{if("string"===typeof X){this.each(function(){var aO=au.data(this,q);if(!aO){return S}if(aJ&&aJ.timeStamp){aO.cache.event=aJ}if(aL&&(aN==="option"||aN==="options")){if(aM!==c||au.isPlainObject(aL)){aO.set(aL,aM)}else{aK=aO.get(aL);return H}}else{if(aO[aN]){aO[aN].apply(aO,C)}}});return aK!==af?aK:this}else{if("object"===typeof X||!arguments.length){Y=v(au.extend(S,{},X));return this.each(function(aO){var aP,aQ;aQ=au.isArray(Y.id)?Y.id[aO]:Y.id;aQ=!aQ||aQ===H||aQ.length<1||z.api[aQ]?z.nextid++:aQ;aP=ag(au(this),aQ,Y);if(aP===H){return S}else{z.api[aQ]=aP}au.each(aI,function(){if(this.initialize==="initialize"){this(aP)}});aP._assignInitialEvents(aJ)})}}}};au.qtip=ax;z.api={};au.each({attr:function(C,aK){if(this.length){var X=this[0],aJ="title",Y=au.data(X,"qtip");if(C===aJ&&Y&&Y.options&&"object"===typeof Y&&"object"===typeof Y.options&&Y.options.suppress){if(arguments.length<2){return au.attr(X,G)}if(Y&&Y.options.content.attr===aJ&&Y.cache.attr){Y.set("content.text",aK)}return this.attr(G,aK)}}return au.fn["attr"+aG].apply(this,arguments)},clone:function(X){var C=au.fn["clone"+aG].apply(this,arguments);if(!X){C.filter("["+G+"]").attr("title",function(){return au.attr(this,G)}).removeAttr(G)}return C}},function(X,Y){if(!Y||au.fn[X+aG]){return S}var C=au.fn[X+aG]=au.fn[X];au.fn[X]=function(){return Y.apply(this,arguments)||C.apply(this,arguments)}});if(!au.ui){au["cleanData"+aG]=au.cleanData;au.cleanData=function(C){for(var X=0,Y;(Y=au(C[X])).length;X++){if(Y.attr(F)){try{Y.triggerHandler("removeqtip")}catch(aJ){}}}au["cleanData"+aG].apply(this,arguments)}}z.version="3.0.2";z.nextid=0;z.inactiveEvents=ad;z.zindex=15000;z.defaults={prerender:H,id:H,overwrite:S,suppress:S,content:{text:S,attr:"title",title:H,button:H},position:{my:"top left",at:"bottom right",target:H,container:H,viewport:H,adjust:{x:0,y:0,mouse:S,scroll:S,resize:S,method:"flipinvert flipinvert"},effect:function(C,X){au(this).animate(X,{duration:200,queue:H})}},show:{target:H,event:"mouseenter",effect:S,delay:90,solo:H,ready:H,autofocus:H},hide:{target:H,event:"mouseleave",effect:S,delay:0,fixed:H,inactive:H,leave:"window",distance:H},style:{classes:"",widget:H,width:H,height:H,def:S},events:{render:af,move:af,show:af,hide:af,toggle:af,visible:af,hidden:af,focus:af,blur:af}};var k,aA,N,w,aC,P="margin",ay="border",at="color",ao="background-color",aj="transparent",ar=" !important",aw=!!a.createElement("canvas").getContext,f=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i;function V(C){return C.charAt(0).toUpperCase()+C.slice(1)}var E={},I=["Webkit","O","Moz","ms"];function n(aJ,aM){var C=aM.charAt(0).toUpperCase()+aM.slice(1),Y=(aM+" "+I.join(C+" ")+C).split(" "),aL,aK,X=0;if(E[aM]){return aJ.css(E[aM])}while(aL=Y[X++]){if((aK=aJ.css(aL))!==c){E[aM]=aL;return aK}}}function K(C,X){return Math.ceil(parseFloat(n(C,X)))}if(!aw){aA=function(C,Y,X){return"<qtipvml:"+C+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(Y||"")+' style="behavior: url(#default#VML); '+(X||"")+'" />'}}else{w=b.devicePixelRatio||1;aC=(function(){var C=a.createElement("canvas").getContext("2d");return C.backingStorePixelRatio||C.webkitBackingStorePixelRatio||C.mozBackingStorePixelRatio||C.msBackingStorePixelRatio||C.oBackingStorePixelRatio||1})();N=w/aC}function ap(X,C){this._ns="tip";this.options=C;this.offset=C.offset;this.size=[C.width,C.height];this.qtip=X;this.init(X)}au.extend(ap.prototype,{init:function(Y){var C,X;X=this.element=Y.elements.tip=au("<div />",{"class":q+"-tip"}).prependTo(Y.tooltip);if(aw){C=au("<canvas />").appendTo(this.element)[0].getContext("2d");C.lineJoin="miter";C.miterLimit=100000;C.save()}else{C=aA("shape",'coordorigin="0,0"',"position:absolute;");this.element.html(C+C);Y._bind(au("*",X).add(X),["click","mousedown"],function(aJ){aJ.stopPropagation()},this._ns)}Y._bind(Y.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(C){var X=this.qtip.elements.titlebar;return X&&(C.y===o||C.y===J&&this.element.position().top+this.size[1]/2+this.options.offset<X.outerHeight(S))},_parseCorner:function(C){var X=this.qtip.options.position.my;if(C===H||X===H){C=H}else{if(C===S){C=new al(X.string())}else{if(!C.string){C=new al(C);C.fixed=S}}}return C},_parseWidth:function(Y,X,C){var aJ=this.qtip.elements,aK=ay+V(X)+"Width";return(C?K(C,aK):K(aJ.content,aK)||K(this._useTitle(Y)&&aJ.titlebar||aJ.content,aK)||K(aJ.tooltip,aK))||0},_parseRadius:function(C){var X=this.qtip.elements,Y=ay+V(C.y)+V(C.x)+"Radius";return s.ie<9?0:K(this._useTitle(C)&&X.titlebar||X.content,Y)||K(X.tooltip,Y)||0},_invalidColour:function(C,aJ,X){var Y=C.css(aJ);return !Y||X&&Y===C.css(X)||f.test(Y)?H:Y},_parseColours:function(aK){var aM=this.qtip.elements,aL=this.element.css("cssText",""),aJ=ay+V(aK[aK.precedance])+V(at),X=this._useTitle(aK)&&aM.titlebar||aM.content,Y=this._invalidColour,C=[];C[0]=Y(aL,ao)||Y(X,ao)||Y(aM.content,ao)||Y(aM.tooltip,ao)||aL.css(ao);C[1]=Y(aL,aJ,at)||Y(X,aJ,at)||Y(aM.content,aJ,at)||Y(aM.tooltip,aJ,at)||aM.tooltip.css(aJ);au("*",aL).add(aL).css("cssText",ao+":"+aj+ar+";"+ay+":0"+ar+";");return C},_calculateSize:function(aP){var aN=aP.precedance===Z,X=this.options.width,aQ=this.options.height,aM=aP.abbrev()==="c",C=(aN?X:aQ)*(aM?0.5:1),aJ=Math.pow,aR=Math.round,aO,aL,aS,Y=Math.sqrt(aJ(C,2)+aJ(aQ,2)),aK=[this.border/C*Y,this.border/aQ*Y];aK[2]=Math.sqrt(aJ(aK[0],2)-aJ(this.border,2));aK[3]=Math.sqrt(aJ(aK[1],2)-aJ(this.border,2));aO=Y+aK[2]+aK[3]+(aM?0:aK[0]);aL=aO/Y;aS=[aR(aL*X),aR(aL*aQ)];return aN?aS:aS.reverse()},_calculateTip:function(aM,Y,aN){aN=aN||1;Y=Y||this.size;var aK=Y[0]*aN,X=Y[1]*aN,aJ=Math.ceil(aK/2),aL=Math.ceil(X/2),C={br:[0,0,aK,X,aK,0],bl:[0,0,aK,0,0,X],tr:[0,X,aK,0,aK,X],tl:[0,0,0,X,aK,X],tc:[0,X,aJ,0,aK,X],bc:[0,0,aK,0,aJ,X],rc:[0,0,aK,aL,0,X],lc:[aK,0,aK,X,0,aL]};C.lt=C.br;C.rt=C.bl;C.lb=C.tr;C.rb=C.tl;return C[aM.abbrev()]},_drawCoords:function(C,X){C.beginPath();C.moveTo(X[0],X[1]);C.lineTo(X[2],X[3]);C.lineTo(X[4],X[5]);C.closePath()},create:function(){var C=this.corner=(aw||s.ie)&&this._parseCorner(this.options.corner);this.enabled=!!this.corner&&this.corner.abbrev()!=="c";if(this.enabled){this.qtip.cache.corner=C.clone();this.update()}this.element.toggle(this.enabled);return this.corner},update:function(aS,aO){if(!this.enabled){return this}var C=this.qtip.elements,aR=this.element,aV=aR.children(),aU=this.options,X=this.size,aW=aU.mimic,aT=Math.round,aM,Y,aJ,aQ,aN,aK,aP,aL;if(!aS){aS=this.qtip.cache.corner||this.corner}if(aW===H){aW=aS}else{aW=new al(aW);aW.precedance=aS.precedance;if(aW.x==="inherit"){aW.x=aS.x}else{if(aW.y==="inherit"){aW.y=aS.y}else{if(aW.x===aW.y){aW[aS.precedance]=aS[aS.precedance]}}}}Y=aW.precedance;if(aS.precedance===aa){this._swapDimensions()}else{this._resetDimensions()}aM=this.color=this._parseColours(aS);if(aM[1]!==aj){aL=this.border=this._parseWidth(aS,aS[aS.precedance]);if(aU.border&&aL<1&&!f.test(aM[1])){aM[0]=aM[1]}this.border=aL=aU.border!==S?aU.border:aL}else{this.border=aL=0}aP=this.size=this._calculateSize(aS);aR.css({width:aP[0],height:aP[1],lineHeight:aP[1]+"px"});if(aS.precedance===Z){aK=[aT(aW.x===d?aL:aW.x===l?aP[0]-X[0]-aL:(aP[0]-X[0])/2),aT(aW.y===o?aP[1]-X[1]:0)]}else{aK=[aT(aW.x===d?aP[0]-X[0]:0),aT(aW.y===o?aL:aW.y===av?aP[1]-X[1]-aL:(aP[1]-X[1])/2)]}if(aw){aJ=aV[0].getContext("2d");aJ.restore();aJ.save();aJ.clearRect(0,0,6000,6000);aQ=this._calculateTip(aW,X,N);aN=this._calculateTip(aW,this.size,N);aV.attr(M,aP[0]*N).attr(az,aP[1]*N);aV.css(M,aP[0]).css(az,aP[1]);this._drawCoords(aJ,aN);aJ.fillStyle=aM[1];aJ.fill();aJ.translate(aK[0]*N,aK[1]*N);this._drawCoords(aJ,aQ);aJ.fillStyle=aM[0];aJ.fill()}else{aQ=this._calculateTip(aW);aQ="m"+aQ[0]+","+aQ[1]+" l"+aQ[2]+","+aQ[3]+" "+aQ[4]+","+aQ[5]+" xe";aK[2]=aL&&/^(r|b)/i.test(aS.string())?s.ie===8?2:1:0;aV.css({coordsize:aP[0]+aL+" "+aP[1]+aL,antialias:""+(aW.string().indexOf(J)>-1),left:aK[0]-aK[2]*Number(Y===aa),top:aK[1]-aK[2]*Number(Y===Z),width:aP[0]+aL,height:aP[1]+aL}).each(function(aX){var aY=au(this);aY[aY.prop?"prop":"attr"]({coordsize:aP[0]+aL+" "+aP[1]+aL,path:aQ,fillcolor:aM[0],filled:!!aX,stroked:!aX}).toggle(!!(aL||aX));!aX&&aY.html(aA("stroke",'weight="'+aL*2+'px" color="'+aM[1]+'" miterlimit="1000" joinstyle="miter"'))})}b.opera&&setTimeout(function(){C.tip.css({display:"inline-block",visibility:"visible"})},1);if(aO!==H){this.calculate(aS,aP)}},calculate:function(aM,aO){if(!this.enabled){return H}var aN=this,C=this.qtip.elements,aL=this.element,X=this.options.offset,aK={},Y,aJ;aM=aM||this.corner;Y=aM.precedance;aO=aO||this._calculateSize(aM);aJ=[aM.x,aM.y];if(Y===aa){aJ.reverse()}au.each(aJ,function(aS,aR){var aP,aT,aQ;if(aR===J){aP=Y===Z?d:o;aK[aP]="50%";aK[P+"-"+aP]=-Math.round(aO[Y===Z?0:1]/2)+X}else{aP=aN._parseWidth(aM,aR,C.tooltip);aT=aN._parseWidth(aM,aR,C.content);aQ=aN._parseRadius(aM);aK[aR]=Math.max(-aN.border,aS?aT:X+(aQ>aP?aQ:-aP))}});aK[aM[Y]]-=aO[Y===aa?0:1];aL.css({margin:"",top:"",bottom:"",left:"",right:""}).css(aK);return aK},reposition:function(Y,aP,aS){if(!this.enabled){return}var X=aP.cache,aU=this.corner.clone(),aT=aS.adjusted,C=aP.options.position.adjust.method.split(" "),aJ=C[0],aL=C[1]||C[0],aK={left:H,top:H,x:0,y:0},aN,aO={},aQ;function aR(aY,aV,aZ,aW,aX){if(aY===p&&aU.precedance===aV&&aT[aW]&&aU[aZ]!==J){aU.precedance=aU.precedance===aa?Z:aa}else{if(aY!==p&&aT[aW]){aU[aV]=aU[aV]===J?aT[aW]>0?aW:aX:aU[aV]===aW?aX:aW}}}function aM(aX,aV,aW){if(aU[aX]===J){aO[P+"-"+aV]=aK[aX]=aN[P+"-"+aV]-aT[aV]}else{aQ=aN[aW]!==c?[aT[aV],-aN[aV]]:[-aT[aV],aN[aV]];if((aK[aX]=Math.max(aQ[0],aQ[1]))>aQ[0]){aS[aV]-=aT[aV];aK[aV]=H}aO[aN[aW]!==c?aW:aV]=aK[aX]}}if(this.corner.fixed!==S){aR(aJ,aa,Z,d,l);aR(aL,Z,aa,o,av);if(aU.string()!==X.corner.string()||X.cornerTop!==aT.top||X.cornerLeft!==aT.left){this.update(aU,H)}}aN=this.calculate(aU);if(aN.right!==c){aN.left=-aN.right}if(aN.bottom!==c){aN.top=-aN.bottom}aN.user=this.offset;aK.left=aJ===p&&!!aT.left;if(aK.left){aM(aa,d,l)}aK.top=aL===p&&!!aT.top;if(aK.top){aM(Z,o,av)}this.element.css(aO).toggle(!(aK.x&&aK.y||aU.x===J&&aK.y||aU.y===J&&aK.x));aS.left-=aN.left.charAt?aN.user:aJ!==p||aK.top||!aK.left&&!aK.top?aN.left+this.border:0;aS.top-=aN.top.charAt?aN.user:aL!==p||aK.left||!aK.left&&!aK.top?aN.top+this.border:0;X.cornerLeft=aT.left;X.cornerTop=aT.top;X.corner=aU.clone()},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns);if(this.qtip.elements.tip){this.qtip.elements.tip.find("*").remove().end().remove()}}});k=aI.tip=function(C){return new ap(C,C.options.style.tip)};k.initialize="render";k.sanitize=function(C){if(C.style&&"tip" in C.style){var X=C.style.tip;if(typeof X!=="object"){X=C.style.tip={corner:X}}if(!(/string|boolean/i).test(typeof X.corner)){X.corner=S}}};i.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create();this.qtip.reposition()},"^style.tip.(height|width)$":function(C){this.size=[C.width,C.height];this.update();this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}};au.extend(S,z.defaults,{style:{tip:{corner:S,mimic:H,width:6,height:6,border:S,offset:0}}});var T,m,t="qtip-modal",am="."+t;m=function(){var C=this,aJ={},aL,aK,Y;function aN(aQ){if(au.expr[":"].focusable){return au.expr[":"].focusable}var aO=!isNaN(au.attr(aQ,"tabindex")),aT=aQ.nodeName&&aQ.nodeName.toLowerCase(),aS,aR,aP;if("area"===aT){aS=aQ.parentNode;aR=aS.name;if(!aQ.href||!aR||aS.nodeName.toLowerCase()!=="map"){return false}aP=au("img[usemap=#"+aR+"]")[0];return !!aP&&aP.is(":visible")}return/input|select|textarea|button|object/.test(aT)?!aQ.disabled:"a"===aT?aQ.href||aO:aO}function X(aO){if(aJ.length<1&&aO.length){aO.not("body").blur()}else{aJ.first().focus()}}function aM(aP){if(!Y.is(":visible")){return}var aR=au(aP.target),aQ=aL.tooltip,aO=aR.closest(y),aS;aS=aO.length<1?H:parseInt(aO[0].style.zIndex,10)>parseInt(aQ[0].style.zIndex,10);if(!aS&&aR.closest(y)[0]!==aQ[0]){X(aR)}}au.extend(C,{init:function(){Y=C.elem=au("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return H}}).hide();au(a.body).bind("focusin"+am,aM);au(a).bind("keydown"+am,function(aO){if(aL&&aL.options.show.modal.escape&&aO.keyCode===27){aL.hide(aO)}});Y.bind("click"+am,function(aO){if(aL&&aL.options.show.modal.blur){aL.hide(aO)}});return C},update:function(aO){aL=aO;if(aO.options.show.modal.stealfocus!==H){aJ=aO.tooltip.find("*").filter(function(){return aN(this)})}else{aJ=[]}},toggle:function(aS,aO,aQ){var aU=aS.tooltip,aW=aS.options.show.modal,aV=aW.effect,aT=aO?"show":"hide",aP=Y.is(":visible"),aR=au(am).filter(":visible:not(:animated)").not(aU);C.update(aS);if(aO&&aW.stealfocus!==H){X(au(":focus"))}Y.toggleClass("blurs",aW.blur);if(aO){Y.appendTo(a.body)}if(Y.is(":animated")&&aP===aO&&aK!==H||!aO&&aR.length){return C}Y.stop(S,H);if(au.isFunction(aV)){aV.call(Y,aO)}else{if(aV===H){Y[aT]()}else{Y.fadeTo(parseInt(aQ,10)||90,aO?1:0,function(){if(!aO){Y.hide()}})}}if(!aO){Y.queue(function(aX){Y.css({left:"",top:""});if(!au(am).length){Y.detach()}aX()})}aK=aO;if(aL.destroyed){aL=af}return C}});C.init()};m=new m();function aE(X,C){this.options=C;this._ns="-modal";this.qtip=X;this.init(X)}au.extend(aE.prototype,{init:function(X){var C=X.tooltip;if(!this.options.on){return this}X.elements.overlay=m.elem;C.addClass(t).css("z-index",z.modal_zindex+au(am).length);X._bind(C,["tooltipshow","tooltiphide"],function(aK,aJ,aM){var Y=aK.originalEvent;if(aK.target===C[0]){if(Y&&aK.type==="tooltiphide"&&/mouse(leave|enter)/.test(Y.type)&&au(Y.relatedTarget).closest(m.elem[0]).length){try{aK.preventDefault()}catch(aL){}}else{if(!Y||Y&&Y.type!=="tooltipsolo"){this.toggle(aK,aK.type==="tooltipshow",aM)}}}},this._ns,this);X._bind(C,"tooltipfocus",function(aL,aK){if(aL.isDefaultPrevented()||aL.target!==C[0]){return}var aM=au(am),aJ=z.modal_zindex+aM.length,Y=parseInt(C[0].style.zIndex,10);m.elem[0].style.zIndex=aJ-1;aM.each(function(){if(this.style.zIndex>Y){this.style.zIndex-=1}});aM.filter("."+O).qtip("blur",aL.originalEvent);C.addClass(O)[0].style.zIndex=aJ;m.update(aK);try{aL.preventDefault()}catch(aN){}},this._ns,this);X._bind(C,"tooltiphide",function(Y){if(Y.target===C[0]){au(am).filter(":visible").not(C).last().qtip("focus",Y)}},this._ns,this)},toggle:function(C,X,Y){if(C&&C.isDefaultPrevented()){return this}m.toggle(this.qtip,!!X,Y)},destroy:function(){this.qtip.tooltip.removeClass(t);this.qtip._unbind(this.qtip.tooltip,this._ns);m.toggle(this.qtip,H);delete this.qtip.elements.overlay}});T=aI.modal=function(C){return new aE(C,C.options.show.modal)};T.sanitize=function(C){if(C.show){if(typeof C.show.modal!=="object"){C.show.modal={on:!!C.show.modal}}else{if(typeof C.show.modal.on==="undefined"){C.show.modal.on=S}}}};z.modal_zindex=z.zindex-200;T.initialize="render";i.modal={"^show.modal.(on|blur)$":function(){this.destroy();this.init();this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}};au.extend(S,z.defaults,{show:{modal:{on:H,effect:S,blur:S,stealfocus:S,escape:S}}});aI.viewport=function(aU,a6,a3,aM,aN,a0,aZ){var a5=a3.target,aK=aU.elements.tooltip,aT=a3.my,aV=a3.at,aY=a3.adjust,X=aY.method.split(" "),aR=X[0],aP=X[1]||X[0],a2=a3.viewport,aS=a3.container,aJ={left:0,top:0},Y,aO,aL,a4,aX,C,aW,a1;if(!a2.jquery||a5[0]===b||a5[0]===a.body||aY.method==="none"){return aJ}aL=aS.offset()||aJ;a4=aS.css("position")==="static";Y=aK.css("position")==="fixed";aX=a2[0]===b?a2.width():a2.outerWidth(H);C=a2[0]===b?a2.height():a2.outerHeight(H);aW={left:Y?0:a2.scrollLeft(),top:Y?0:a2.scrollTop()};a1=a2.offset()||aJ;function aQ(a8,a7,ba,bj,bf,bd,bm,bo,bh){var bb=a6[bf],bi=aT[a8],bn=aV[a8],bp=ba===p,be=bi===bf?bh:bi===bd?-bh:-bh/2,bk=bn===bf?bo:bn===bd?-bo:-bo/2,bl=aW[bf]+a1[bf]-(a4?0:aL[bf]),bc=bl-bb,a9=bb+bh-(bm===M?aX:C)-bl,bg=be-(aT.precedance===a8||bi===aT[a7]?bk:0)-(bn===J?bo/2:0);if(bp){bg=(bi===bf?1:-1)*be;a6[bf]+=bc>0?bc:a9>0?-a9:0;a6[bf]=Math.max(-aL[bf]+a1[bf],bb-bg,Math.min(Math.max(-aL[bf]+a1[bf]+(bm===M?aX:C),bb+bg),a6[bf],bi==="center"?bb-be:1000000000))}else{bj*=ba===W?2:0;if(bc>0&&(bi!==bf||a9>0)){a6[bf]-=bg+bj;aO.invert(a8,bf)}else{if(a9>0&&(bi!==bd||bc>0)){a6[bf]-=(bi===J?-bg:bg)+bj;aO.invert(a8,bd)}}if(a6[bf]<aW[bf]&&-a6[bf]>a9){a6[bf]=bb;aO=aT.clone()}}return a6[bf]-bb}if(aR!=="shift"||aP!=="shift"){aO=aT.clone()}aJ={left:aR!=="none"?aQ(aa,Z,aR,aY.x,d,l,M,aM,a0):0,top:aP!=="none"?aQ(Z,aa,aP,aY.y,o,av,az,aN,aZ):0,my:aO};return aJ};aI.polys={polygon:function(X,aQ){var aR={width:0,height:0,position:{top:10000000000,right:0,bottom:0,left:10000000000},adjustable:H},aL=0,aM,aP=[],aO=1,aN=1,aK=0,Y=0,aJ,C;aL=X.length;while(aL--){aM=[parseInt(X[--aL],10),parseInt(X[aL+1],10)];if(aM[0]>aR.position.right){aR.position.right=aM[0]}if(aM[0]<aR.position.left){aR.position.left=aM[0]}if(aM[1]>aR.position.bottom){aR.position.bottom=aM[1]}if(aM[1]<aR.position.top){aR.position.top=aM[1]}aP.push(aM)}aJ=aR.width=Math.abs(aR.position.right-aR.position.left);C=aR.height=Math.abs(aR.position.bottom-aR.position.top);if(aQ.abbrev()==="c"){aR.position={left:aR.position.left+aR.width/2,top:aR.position.top+aR.height/2}}else{while(aJ>0&&C>0&&aO>0&&aN>0){aJ=Math.floor(aJ/2);C=Math.floor(C/2);if(aQ.x===d){aO=aJ}else{if(aQ.x===l){aO=aR.width-aJ}else{aO+=Math.floor(aJ/2)}}if(aQ.y===o){aN=C}else{if(aQ.y===av){aN=aR.height-C}else{aN+=Math.floor(C/2)}}aL=aP.length;while(aL--){if(aP.length<2){break}aK=aP[aL][0]-aR.position.left;Y=aP[aL][1]-aR.position.top;if(aQ.x===d&&aK>=aO||aQ.x===l&&aK<=aO||aQ.x===J&&(aK<aO||aK>aR.width-aO)||aQ.y===o&&Y>=aN||aQ.y===av&&Y<=aN||aQ.y===J&&(Y<aN||Y>aR.height-aN)){aP.splice(aL,1)}}}aR.position={left:aP[0][0],top:aP[0][1]}}return aR},rect:function(X,C,aJ,Y){return{width:Math.abs(aJ-X),height:Math.abs(Y-C),position:{left:Math.min(X,aJ),top:Math.min(C,Y)}}},_angles:{tc:3/2,tr:7/4,tl:5/4,bc:1/2,br:1/4,bl:3/4,rc:2,lc:1,c:0},ellipse:function(X,aN,aL,aK,aJ){var aM=aI.polys._angles[aJ.abbrev()],Y=aM===0?0:aL*Math.cos(aM*Math.PI),C=aK*Math.sin(aM*Math.PI);return{width:aL*2-Math.abs(Y),height:aK*2-Math.abs(C),position:{left:X+Y,top:aN+C},adjustable:H}},circle:function(C,aJ,Y,X){return aI.polys.ellipse(C,aJ,Y,Y,X)}};aI.svg=function(aP,aN,aS){var Y=aN[0],aQ=au(Y.ownerSVGElement),aV=Y.ownerDocument,X=(parseInt(aN.css("stroke-width"),10)||0)/2,aR,C,aJ,aO,aM,aK,aT,aU,aL;while(!Y.getBBox){Y=Y.parentNode}if(!Y.getBBox||!Y.parentNode){return H}switch(Y.nodeName){case"ellipse":case"circle":aU=aI.polys.ellipse(Y.cx.baseVal.value,Y.cy.baseVal.value,(Y.rx||Y.r).baseVal.value+X,(Y.ry||Y.r).baseVal.value+X,aS);break;case"line":case"polygon":case"polyline":aT=Y.points||[{x:Y.x1.baseVal.value,y:Y.y1.baseVal.value},{x:Y.x2.baseVal.value,y:Y.y2.baseVal.value}];for(aU=[],aK=-1,aO=aT.numberOfItems||aT.length;++aK<aO;){aM=aT.getItem?aT.getItem(aK):aT[aK];aU.push.apply(aU,[aM.x,aM.y])}aU=aI.polys.polygon(aU,aS);break;default:aU=Y.getBBox();aU={width:aU.width,height:aU.height,position:{left:aU.x,top:aU.y}};break}aL=aU.position;aQ=aQ[0];if(aQ.createSVGPoint){C=Y.getScreenCTM();aT=aQ.createSVGPoint();aT.x=aL.left;aT.y=aL.top;aJ=aT.matrixTransform(C);aL.left=aJ.x;aL.top=aJ.y}if(aV!==a&&aP.position.target!=="mouse"){aR=au((aV.defaultView||aV.parentWindow).frameElement).offset();if(aR){aL.left+=aR.left;aL.top+=aR.top}}aV=au(aV);aL.left+=aV.scrollLeft();aL.top+=aV.scrollTop();return aU};aI.imagemap=function(aL,X,aP){if(!X.jquery){X=au(X)}var aN=(X.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),Y=au('img[usemap="#'+X.parent("map").attr("name")+'"]'),aM=au.trim(X.attr("coords")),C=aM.replace(/,$/,"").split(","),aR,aO,aJ,aQ,aK;if(!Y.length){return H}if(aN==="polygon"){aQ=aI.polys.polygon(C,aP)}else{if(aI.polys[aN]){for(aJ=-1,aK=C.length,aO=[];++aJ<aK;){aO.push(parseInt(C[aJ],10))}aQ=aI.polys[aN].apply(this,aO.concat(aP))}else{return H}}aR=Y.offset();aR.left+=Math.ceil((Y.outerWidth(H)-Y.width())/2);aR.top+=Math.ceil((Y.outerHeight(H)-Y.height())/2);aQ.position.left+=aR.left;aQ.position.top+=aR.top;return aQ};var B,ae='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>';function g(C){this._ns="ie6";this.qtip=C;this.init(C)}au.extend(g.prototype,{_scroll:function(){var C=this.qtip.elements.overlay;C&&(C[0].style.top=au(b).scrollTop()+"px")},init:function(X){var C=X.tooltip;if(au("select, object").length<1){this.bgiframe=X.elements.bgiframe=au(ae).appendTo(C);X._bind(C,"tooltipmove",this.adjustBGIFrame,this._ns,this)}this.redrawContainer=au("<div/>",{id:q+"-rcontainer"}).appendTo(a.body);if(X.elements.overlay&&X.elements.overlay.addClass("qtipmodal-ie6fix")){X._bind(b,["scroll","resize"],this._scroll,this._ns,this);X._bind(C,["tooltipshow"],this._scroll,this._ns,this)}this.redraw()},adjustBGIFrame:function(){var aK=this.qtip.tooltip,Y={height:aK.outerHeight(H),width:aK.outerWidth(H)},X=this.qtip.plugins.tip,aJ=this.qtip.elements.tip,C,aL;aL=parseInt(aK.css("borderLeftWidth"),10)||0;aL={left:-aL,top:-aL};if(X&&aJ){C=X.corner.precedance==="x"?[M,d]:[az,o];aL[C[1]]-=aJ[C[0]]()}this.bgiframe.css(aL).css(Y)},redraw:function(){if(this.qtip.rendered<1||this.drawing){return this}var aM=this.qtip.tooltip,aL=this.qtip.options.style,X=this.qtip.options.position.container,aJ,aK,C,Y;this.qtip.drawing=1;if(aL.height){aM.css(az,aL.height)}if(aL.width){aM.css(M,aL.width)}else{aM.css(M,"").appendTo(this.redrawContainer);aK=aM.width();if(aK%2<1){aK+=1}C=aM.css("maxWidth")||"";Y=aM.css("minWidth")||"";aJ=(C+Y).indexOf("%")>-1?X.width()/100:0;C=(C.indexOf("%")>-1?aJ:1*parseInt(C,10))||aK;Y=(Y.indexOf("%")>-1?aJ:1*parseInt(Y,10))||0;aK=C+Y?Math.min(Math.max(aK,Y),C):aK;aM.css(M,Math.round(aK)).appendTo(X)}this.drawing=0;return this},destroy:function(){this.bgiframe&&this.bgiframe.remove();this.qtip._unbind([b,this.qtip.tooltip],this._ns)}});B=aI.ie6=function(C){return s.ie===6?new g(C):H};B.initialize="render";i.ie6={"^content|style$":function(){this.redraw()}}}))}(window,document));
|