diff --git a/dist/jquery.qtip.basic.js b/dist/jquery.qtip.basic.js index 1b06cd72..f1628201 100644 --- a/dist/jquery.qtip.basic.js +++ b/dist/jquery.qtip.basic.js @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Wed Jul 13 18:36:06 2011 +0100 +* Date: Wed Jul 13 18:37:25 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -508,13 +508,10 @@ function QTip(target, options, id, attr) // If using mouseout/mouseleave as a hide event... if(/mouse(out|leave)/i.test(options.hide.event)) { // Hide tooltips when leaving current window/frame (but not select/option elements) - if(options.hide.leave) { - targets.window.bind( - 'mouseleave' + namespace, - function(event) { - if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); } - } - ); + if(options.hide.leave === 'window') { + targets.window.bind('mouseout' + namespace, function(event) { + if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); } + }); } } diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 3c5083c2..ea9b30df 100644 --- a/dist/jquery.qtip.css +++ b/dist/jquery.qtip.css @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Wed Jul 13 18:36:06 2011 +0100 +* Date: Wed Jul 13 18:37:25 2011 +0100 */ /* Core qTip styles */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 2cef984e..f57f8919 100644 --- a/dist/jquery.qtip.js +++ b/dist/jquery.qtip.js @@ -9,7 +9,7 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Wed Jul 13 18:36:06 2011 +0100 +* Date: Wed Jul 13 18:37:25 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -508,13 +508,10 @@ function QTip(target, options, id, attr) // If using mouseout/mouseleave as a hide event... if(/mouse(out|leave)/i.test(options.hide.event)) { // Hide tooltips when leaving current window/frame (but not select/option elements) - if(options.hide.leave) { - targets.window.bind( - 'mouseleave' + namespace, - function(event) { - if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); } - } - ); + if(options.hide.leave === 'window') { + targets.window.bind('mouseout' + namespace, function(event) { + if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); } + }); } } diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index 328f53c5..fb62c116 100644 --- a/dist/jquery.qtip.min.js +++ b/dist/jquery.qtip.min.js @@ -9,5 +9,5 @@ * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * -* Date: Wed Jul 13 18:36:06 2011 +0100 -*//*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true *//*global window: false, jQuery: false, console: false */(function(a,b,c){function E(b){var c=this,d=b.elements,e=d.tooltip,f=".bgiframe-"+b.id;a.extend(c,{init:function(){d.bgiframe=a(''),d.bgiframe.appendTo(e),e.bind("tooltipmove"+f,c.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,f=d.tip,g,h;h=parseInt(e.css("border-left-width"),10)||0,h={left:-h,top:-h},c&&f&&(g=c.corner.precedance==="x"?["width","left"]:["height","top"],h[g[1]]-=f[g[0]]()),d.bgiframe.css(h).css(a)},destroy:function(){d.bgiframe.remove(),e.unbind(f)}}),c.init()}function D(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o=a(document.body),q;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(b,c,d){var e=b.originalEvent;e&&b.type==="tooltiphide"&&/mouse(leave|enter)/.test(e.type)&&a(e.relatedTarget).closest(q[0]).length?b.preventDefault():f[b.type.replace("tooltip","")](b,d)}).bind("tooltipfocus"+k,function(a,b,c){q[0].style.zIndex=c}).bind("tooltipblur"+k,function(b){a("["+m+"]:visible").not(i).last().qtip("focus",b)}),g.escape&&a(b).unbind(l).bind("keydown"+l,function(a){a.keyCode===27&&i.hasClass(p)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(p)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}q=h.overlay=a("
",{id:j.substr(1),html:"
",mousedown:function(){return e}}).insertBefore(a(n).last()),a(b).unbind(k).bind("resize"+k,function(){q.css({height:a(b).height(),width:a(b).width()})}).triggerHandler("resize");return q},toggle:function(b,c,h){if(b&&b.isDefaultPrevented())return f;var j=g.effect,k=c?"show":"hide",p=q.is(":visible"),r=a("["+m+"]:visible").not(i),s;q||(q=f.create());if(q.is(":animated")&&p===c||!c&&r.length)return f;c?(q.css({left:0,top:0}),q.toggleClass("blurs",g.blur),o.delegate("*","focusin"+l,function(b){a(b.target).closest(n)[0]!==i[0]&&a("a, :input, img",i).add(i).focus()})):o.undelegate("*","focusin"+l),q.stop(d,e),a.isFunction(j)?j.call(q,c):j===e?q[k]():q.fadeTo(parseInt(h,10)||90,c?1:0,function(){c||a(this).hide()}),c||q.queue(function(a){q.css({left:"",top:""}),a()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=q;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id),o.undelegate("*","focusin"+l));return i.removeAttr(m).unbind(k)}}),f.init()}function C(b,g){function w(a){var b=a.precedance==="y",c=n[b?"width":"height"],d=n[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?.5:1),g=Math.pow,h=Math.round,i,j,k,l=Math.sqrt(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=Math.sqrt(g(m[0],2)-g(p,2)),m[3]=Math.sqrt(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];return{height:k[b?0:1],width:k[b?1:0]}}function v(b){var c=k.titlebar&&b.y==="top",d=c?k.titlebar:k.content,e=a.browser.mozilla,f=e?"-moz-":a.browser.webkit?"-webkit-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"border-radius-"+g:"border-"+g+"-radius");return parseInt(d.css(h),10)||parseInt(l.css(h),10)||0}function u(a,b,c){b=b?b:a[a.precedance];var d=l.hasClass(r),e=k.titlebar&&a.y==="top",f=e?k.titlebar:k.content,g="border-"+b+"-width",h;l.addClass(r),h=parseInt(f.css(g),10),h=(c?h||parseInt(l.css(g),10):h)||0,l.toggleClass(r,d);return h}function t(f,g,h,l){if(k.tip){var n=a.extend({},i.corner),o=h.adjusted,p=b.options.position.adjust.method.split(" "),q=p[0],r=p[1]||p[0],s={left:e,top:e,x:0,y:0},t,u={},v;i.corner.fixed!==d&&(q==="shift"&&n.precedance==="x"&&o.left&&n.y!=="center"?n.precedance=n.precedance==="x"?"y":"x":q==="flip"&&o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),r==="shift"&&n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":r==="flip"&&o.top&&(n.y=n.y==="center"?o.top>0?"top":"bottom":n.y==="top"?"bottom":"top"),n.string()!==m.corner&&(m.top!==o.top||m.left!==o.left)&&i.update(n,e)),t=i.position(n,o),t.right!==c&&(t.left=-t.right),t.bottom!==c&&(t.top=-t.bottom),t.user=Math.max(0,j.offset);if(s.left=q==="shift"&&!!o.left)n.x==="center"?u["margin-left"]=s.x=t["margin-left"]-o.left:(v=t.right!==c?[o.left,-t.left]:[-o.left,t.left],(s.x=Math.max(v[0],v[1]))>v[0]&&(h.left-=o.left,s.left=e),u[t.right!==c?"right":"left"]=s.x);if(s.top=r==="shift"&&!!o.top)n.y==="center"?u["margin-top"]=s.y=t["margin-top"]-o.top:(v=t.bottom!==c?[o.top,-t.top]:[-o.top,t.top],(s.y=Math.max(v[0],v[1]))>v[0]&&(h.top-=o.top,s.top=e),u[t.bottom!==c?"bottom":"top"]=s.y);k.tip.css(u).toggle(!(s.x&&s.y||n.x==="center"&&s.y||n.y==="center"&&s.x)),h.left-=t.left.charAt?t.user:q!=="shift"||s.top||!s.left&&!s.top?t.left:0,h.top-=t.top.charAt?t.user:r!=="shift"||s.left||!s.left&&!s.top?t.top:0,m.left=o.left,m.top=o.top,m.corner=n.string()}}var i=this,j=b.options.style.tip,k=b.elements,l=k.tooltip,m={top:0,left:0,corner:""},n={width:j.width,height:j.height},o={},p=j.border||0,q=".qtip-tip",s=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.border=p,i.offset=j.offset,i.size=n,b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){i.init()||i.destroy(),b.reposition()},"^style.tip.(height|width)$":function(){n={width:j.width,height:j.height},i.create(),i.update(),b.reposition()},"^content.title.text|style.(classes|widget)$":function(){k.tip&&i.update()}},a.extend(i,{init:function(){var b=i.detectCorner()&&(s||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,t));return b},detectCorner:function(){var a=j.corner,c=b.options.position,f=c.at,g=c.my.string?c.my.string():c.my;if(a===e||g===e&&f===e)return e;a===d?i.corner=new h.Corner(g):a.string||(i.corner=new h.Corner(a),i.corner.fixed=d);return i.corner.string()!=="centercenter"},detectColours:function(){var c,d,e,f=k.tip.css({backgroundColor:"",border:""}),g=i.corner,h=g[g.precedance],m="border-"+h+"-color",p="border"+h.charAt(0)+h.substr(1)+"Color",q=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,s="background-color",t="transparent",u=a(document.body).css("color"),v=b.elements.content.css("color"),w=k.titlebar&&(g.y==="top"||g.y==="center"&&f.position().top+n.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:b,height:c}).prependTo(l),s?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(d+d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,r="px solid ",t="px dashed transparent",v=j.mimic,x=Math.round,y,z,A,C,D;b||(b=i.corner),v===e?v=b:(v=new h.Corner(v),v.precedance=b.precedance,v.x==="inherit"?v.x=b.x:v.y==="inherit"?v.y=b.y:v.x===v.y&&(v[b.precedance]=b[b.precedance])),y=v.precedance,i.detectColours(),o.border!=="transparent"&&o.border!=="#123456"?(p=u(b,f,d),j.border===0&&p>0&&(o.fill=o.border),i.border=p=j.border!==d?j.border:p):i.border=p=0,A=B(v,m,q),i.size=D=w(b),g.css(D),b.precedance==="y"?C=[x(v.x==="left"?p:v.x==="right"?D.width-m-p:(D.width-m)/2),x(v.y==="top"?D.height-q:0)]:C=[x(v.x==="left"?D.width-m:0),x(v.y==="top"?p:v.y==="bottom"?D.height-q-p:(D.height-q)/2)],s?(l.attr(D),z=l[0].getContext("2d"),z.restore(),z.save(),z.clearRect(0,0,3e3,3e3),z.translate(C[0],C[1]),z.beginPath(),z.moveTo(A[0][0],A[0][1]),z.lineTo(A[1][0],A[1][1]),z.lineTo(A[2][0],A[2][1]),z.closePath(),z.fillStyle=o.fill,z.strokeStyle=o.border,z.lineWidth=p*2,z.lineJoin="miter",z.miterLimit=100,p&&z.stroke(),z.fill()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(v.string().indexOf("center")>-1),left:C[0]-C[2]*Number(y==="x"),top:C[1]-C[2]*Number(y==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c[c.prop?"prop":"attr"]({coordsize:m+p+" "+(q+p),path:A,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&c.html()===""&&c.html('')})),c!==e&&i.position(b)},position:function(b){var c=k.tip,f={},g=Math.max(0,j.offset),h,l,m;if(j.corner===e||!c)return e;b=b||i.corner,h=b.precedance,l=w(b),m=[b.x,b.y],h==="x"&&m.reverse(),a.each(m,function(a,c){var e,i;c==="center"?(e=h==="y"?"left":"top",f[e]="50%",f["margin-"+e]=-Math.round(l[h==="y"?"width":"height"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"width":"height"],c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(f);return f},destroy:function(){k.tip&&k.tip.remove(),l.unbind(q)}}),i.init()}function B(a,b,c){var d=Math.ceil(b/2),e=Math.ceil(c/2),f={bottomright:[[0,0],[b,c],[b,0]],bottomleft:[[0,0],[b,0],[0,c]],topright:[[0,c],[b,0],[b,c]],topleft:[[0,0],[0,c],[b,c]],topcenter:[[0,c],[d,0],[b,c]],bottomcenter:[[0,0],[b,0],[d,c]],rightcenter:[[0,0],[b,e],[0,c]],leftcenter:[[b,0],[b,c],[0,e]]};f.lefttop=f.bottomright,f.righttop=f.bottomleft,f.leftbottom=f.topright,f.rightbottom=f.topleft;return f[a.string()]}function A(b){var c=this,f=b.elements.tooltip,g=b.options.content.ajax,h=".qtip-ajax",i=/)<[^<]*)*<\/script>/gi,j=d;b.checks.ajax={"^content.ajax":function(a,b,d){b==="ajax"&&(g=d),b==="once"?c.init():g&&g.url?c.load():f.unbind(h)}},a.extend(c,{init:function(){g&&g.url&&f.unbind(h)[g.once?"one":"bind"]("tooltipshow"+h,c.load);return c},load:function(d,h){function p(a,c,d){b.set("content.text",c+": "+d),n()}function o(c){l&&(c=a("
").append(c.replace(i,"")).find(l)),b.set("content.text",c),n()}function n(){m&&(f.css("visibility",""),h=e)}if(d&&d.isDefaultPrevented())return c;var j=g.url.indexOf(" "),k=g.url,l,m=g.once&&!g.loading&&h;m&&f.css("visibility","hidden"),j>-1&&(l=k.substr(j),k=k.substr(0,j)),a.ajax(a.extend({success:o,error:p,context:b},g,{url:k}));return c}}),c.init()}function z(b,c){var i,j,k,l,m=a(this),n=a(document.body),o=this===document?n:m,p=m.metadata?m.metadata(c.metadata):f,q=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,r=m.data(c.metadata.name||"qtipopts");try{r=typeof r==="string"?(new Function("return "+r))():r}catch(s){w("Unable to parse HTML5 attribute data: "+r)}l=a.extend(d,{},g.defaults,c,typeof r==="object"?x(r):f,x(q||p)),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else{w("Unable to locate content for tooltip! Aborting render of tooltip on element: ",m);return e}}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,u,a.attr(this,"title")),this.removeAttribute("title")),i=new y(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function y(c,s,t,w){function Q(){var c=[s.show.target[0],s.hide.target[0],y.rendered&&F.tooltip[0],s.position.container[0],s.position.viewport[0],b,document];y.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(E):s.show.target.unbind(E+"-create")}function P(){function r(a){D.is(":visible")&&y.reposition(a)}function p(a){if(D.hasClass(m))return e;clearTimeout(y.timers.inactive),y.timers.inactive=setTimeout(function(){y.hide(a)},s.hide.inactive)}function o(b){if(D.hasClass(m))return e;var c=a(b.relatedTarget||b.target),d=c.closest(n)[0]===D[0],g=c[0]===h.show[0];clearTimeout(y.timers.show),clearTimeout(y.timers.hide);f.target==="mouse"&&d||s.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||g))?b.preventDefault():s.hide.delay>0?y.timers.hide=setTimeout(function(){y.hide(b)},s.hide.delay):y.hide(b)}function l(a){if(D.hasClass(m))return e;h.show.trigger("qtip-"+t+"-inactive"),clearTimeout(y.timers.show),clearTimeout(y.timers.hide);var b=function(){y.toggle(d,a)};s.show.delay>0?y.timers.show=setTimeout(b,s.show.delay):b()}var f=s.position,h={show:s.show.target,hide:s.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+s.show.event).split(" "),hide:a.trim(""+s.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;D.bind("mouseenter"+E+" mouseleave"+E,function(a){var b=a.type==="mouseenter";b&&y.focus(a),D.toggleClass(q,b)}),s.hide.fixed&&(h.hide=h.hide.add(D),D.bind("mouseover"+E,function(){D.hasClass(m)||clearTimeout(y.timers.hide)})),/mouse(out|leave)/i.test(s.hide.event)?s.hide.leave&&h.window.bind("mouseleave"+E,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&y.hide(a)}):/mouse(over|enter)/i.test(s.show.event)&&h.hide.bind("mouseleave"+E,function(a){clearTimeout(y.timers.show)}),(""+s.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+E,function(b){var d=a(b.target),e=!D.hasClass(m)&&D.is(":visible");d.parents(n).length===0&&d.add(c).length>1&&y.hide(b)}),"number"===typeof s.hide.inactive&&(h.show.bind("qtip-"+t+"-inactive",p),a.each(g.inactiveEvents,function(a,b){h.hide.add(F.tooltip).bind(b+E+"-inactive",p)})),a.each(j.hide,function(b,c){var d=a.inArray(c,j.show),e=a(h.hide);d>-1&&e.add(h.show).length===e.length||c==="unfocus"?(h.show.bind(c+E,function(a){D.is(":visible")?o(a):l(a)}),delete j.show[d]):h.hide.bind(c+E,o)}),a.each(j.show,function(a,b){h.show.bind(b+E,l)}),"number"===typeof s.hide.distance&&h.show.bind("mousemove"+E,function(a){var b=G.origin||{},c=s.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&y.hide(a)}),f.target==="mouse"&&(h.show.bind("mousemove"+E,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),f.adjust.mouse&&(s.hide.event&&D.bind("mouseleave"+E,function(a){(a.relatedTarget||a.target)!==h.show[0]&&y.hide(a)}),h.document.bind("mousemove"+E,function(a){!D.hasClass(m)&&D.is(":visible")&&y.reposition(a||i)}))),(f.adjust.resize||h.viewport.length)&&(a.event.special.resize?h.viewport:h.window).bind("resize"+E,r),(h.viewport.length||k&&D.css("position")==="fixed")&&h.viewport.bind("scroll"+E,r)}function O(b,d){function g(b){function g(f){clearTimeout(y.timers.img[this]),a(this).unbind(E),(c=c.not(this)).length===0&&(y.redraw(),d!==e&&y.reposition(G.event),b())}var c;if((c=f.find("img:not([height]):not([width])")).length===0)return g.call(c);c.each(function(b,c){(function d(){if(c.height&&c.width)return g.call(c);y.timers.img[c]=setTimeout(d,1e3)})(),a(c).bind("error"+E+" load"+E,g)})}var f=F.content;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.rendered<0?D.queue("fx",g):(C=0,g(a.noop));return y}function N(b,d){var f=F.title;if(f&&b===e)J();else if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.redraw(),d!==e&&y.rendered&&D.is(":visible")&&y.reposition(G.event)}function M(a){var b=F.button,c=F.title;if(!y.rendered)return e;a?(c||L(),K()):b.remove()}function L(){var b=A+"-title";F.titlebar&&J(),F.titlebar=a("
",{"class":k+"-titlebar "+(s.style.widget?"ui-widget-header":"")}).append(F.title=a("
",{id:b,"class":k+"-title","aria-atomic":d})).insertBefore(F.content),s.content.title.button?K():y.rendered&&y.redraw()}function K(){var b=s.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";F.button&&F.button.remove(),b.jquery?F.button=b:F.button=a("",{"class":"ui-state-default "+(s.style.widget?"":k+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),F.button.appendTo(F.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){D.hasClass(m)||y.hide(a);return e}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")}),y.redraw()}function J(){F.title&&(F.titlebar.remove(),F.titlebar=F.title=F.button=f,y.reposition())}function I(){var a=s.style.widget;D.toggleClass(l,a).toggleClass(o,!a),F.content.toggleClass(l+"-content",a),F.titlebar&&F.titlebar.toggleClass(l+"-header",a),F.button&&F.button.toggleClass(k+"-icon",!a)}function H(a){var b=0,c,d=s,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(D[0].id=i,F.content[0].id=i+"-content",F.title[0].id=i+"-title")},"^content.text$":function(a,b,c){O(c)},"^content.title.text$":function(a,b,c){if(!c)return J();!F.title&&c&&L(),N(c)},"^content.title.button$":function(a,b,c){M(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){y.rendered&&D.appendTo(c)},"^show.ready$":function(){y.rendered?y.toggle(d):y.render(1)},"^style.classes$":function(a,b,c){D.attr("class",k+" qtip ui-helper-reset "+c)},"^style.widget|content.title":I,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){D[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var a=s.position;D.attr("tracking",a.target==="mouse"&&a.adjust.mouse),Q(),P()}},a.extend(y,{render:function(b){if(y.rendered)return y;var f=s.content.title.text,g=s.position,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",A),D=F.tooltip=a("
",{id:A,"class":k+" qtip ui-helper-reset "+o+" "+s.style.classes,width:s.style.width||"",tracking:g.target==="mouse"&&g.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":A+"-content","aria-hidden":d}).toggleClass(m,G.disabled).data("qtip",y).appendTo(s.position.container).append(F.content=a("
",{"class":k+"-content",id:A+"-content","aria-atomic":d})),y.rendered=-1,C=1,f&&(L(),N(f)),O(s.content.text,e),y.rendered=d,I(),a.each(s.events,function(b,c){a.isFunction(c)&&D.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(y)}),P(),D.queue("fx",function(a){i.originalEvent=G.event,D.trigger(i,[y]),C=0,y.redraw(),(s.show.ready||b)&&y.toggle(d,G.event),a()});return y},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:D.outerHeight(),width:D.outerWidth()};break;case"offset":b=h.offset(D,s.position.container);break;default:c=H(a.toLowerCase()),b=c[0][c[1]],b=b.precedance?b.string():b}return b},set:function(b,c){function m(a,b){var c,d,e;for(c in k)for(d in k[c])if(e=(new RegExp(d,"i")).exec(a))b.push(e),k[c][d].apply(y,b)}var g=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,i=e,j=e,k=y.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=H(c.toLowerCase()),f;f=e[0][e[1]],e[0][e[1]]="object"===typeof d&&d.nodeType?a(d):d,b[c]=[e[0],e[1],d,f],i=g.test(c)||i,j=h.test(c)||j}),x(s),B=C=1,a.each(b,m),B=C=0,D.is(":visible")&&y.rendered&&(i&&y.reposition(s.position.target==="mouse"?f:G.event),j&&y.redraw());return y},toggle:function(b,c){function q(){b?(a.browser.msie&&D[0].style.removeAttribute("filter"),D.css("overflow","")):D.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!y.rendered)if(b)y.render(1);else return y;var g=b?"show":"hide",h=s[g],j=D.is(":visible"),k=!c||s[g].target.length<2||G.target[0]===c.target,l=s.position,m=s.content,o,p;(typeof b).search("boolean|number")&&(b=!j);if(!D.is(":animated")&&j===b&&k)return y;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(G.event.type)&&c.target===s.show.target[0]&&D.has(c.relatedTarget).length)return y;G.event=a.extend({},c)}p=a.Event("tooltip"+g),p.originalEvent=c?G.event:f,D.trigger(p,[y,90]);if(p.isDefaultPrevented())return y;a.attr(D[0],"aria-hidden",!b),b?(G.origin=a.extend({},i),y.focus(c),a.isFunction(m.text)&&O(m.text,e),a.isFunction(m.title.text)&&N(m.title.text,e),!v&&l.target==="mouse"&&l.adjust.mouse&&(a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),v=d),y.reposition(c),h.solo&&a(n,h.solo).not(D).qtip("hide",p)):(clearTimeout(y.timers.show),delete G.origin,v&&!a(n+'[tracking="true"]:visible',h.solo).not(D).length&&(a(document).unbind("mousemove.qtip"),v=e),y.blur(c)),k&&D.stop(0,1),h.effect===e?(D[g](),q.call(D)):a.isFunction(h.effect)?(h.effect.call(D,y),D.queue("fx",function(a){q(),a()})):D.fadeTo(90,b?1:0,q),b&&h.target.trigger("qtip-"+t+"-inactive");return y},show:function(a){return y.toggle(d,a)},hide:function(a){return y.toggle(e,a)},focus:function(b){if(!y.rendered)return y;var c=a(n),d=parseInt(D[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;D.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,D.trigger(i,[y,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+p).qtip("blur",f)),D.addClass(p)[0].style.zIndex=e));return y},blur:function(b){var c=a.extend({},b),d;D.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,D.trigger(d,[y]);return y},reposition:function(c,d){if(!y.rendered||B)return y;B=1;var f=s.position.target,g=s.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=D.outerWidth(),p=D.outerHeight(),q=0,r=0,t=a.Event("tooltipmove"),u=D.css("position")==="fixed",v=g.viewport,w={left:0,top:0},x=y.plugins.tip,A={horizontal:n[0],vertical:n[1]||n[0],left:function(a){var b=A.horizontal==="shift",c=v.offset.left+v.scrollLeft,d=j.x==="left"?o:j.x==="right"?-o:-o/2,e=l.x==="left"?q:l.x==="right"?-q:-q/2,f=x&&x.size?x.size.width||0:0,g=x&&x.corner&&x.corner.precedance==="x"&&!b?f:0,h=c-a+g,i=a+o-v.width-c+g,k=d-(j.precedance==="x"||j.x===j.y?e:0),n=j.x==="center";b?(g=x&&x.corner&&x.corner.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,w.left+=h>0?h:i>0?-i:0,w.left=Math.max(v.offset.left+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),w.left))):(h>0&&(j.x!=="left"||i>0)?w.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(w.left-=n?-k:k+2*m.x),w.left!==a&&n&&(w.left-=m.x),w.lefti&&(w.left=a));return w.left-a},top:function(a){var b=A.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?r:l.y==="bottom"?-r:-r/2,f=x&&x.size?x.size.height||0:0,g=x&&x.corner&&x.corner.precedance==="y"&&!b?f:0,h=c-a+g,i=a+p-v.height-c+g,k=d-(j.precedance==="y"||j.x===j.y?e:0),n=j.y==="center";b?(g=x&&x.corner&&x.corner.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,w.top+=h>0?h:i>0?-i:0,w.top=Math.max(v.offset.top+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),w.top))):(h>0&&(j.y!=="top"||i>0)?w.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(w.top-=n?-k:k+2*m.y),w.top!==a&&n&&(w.top-=m.y),w.top<0&&-w.top>i&&(w.top=a));return w.top-a}};if(a.isArray(f)&&f.length===2)l={x:"left",y:"top"},w={left:f[0],top:f[1]};else if(f==="mouse"&&(c&&c.pageX||G.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?G.event:c&&c.pageX&&c.type==="mousemove"?c:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:!m.mouse&&G.origin?G.origin:c,w={top:c.pageY,left:c.pageX};else{f==="event"?c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=G.target=a(c.target):f=G.target:G.target=a(f),f=a(f).eq(0);if(f.length===0)return y;f[0]===document||f[0]===b?(q=h.iOS?b.innerWidth:f.width(),r=h.iOS?b.innerHeight:f.height(),f[0]===b&&(w={top:!u||h.iOS?(v||f).scrollTop():0,left:!u||h.iOS?(v||f).scrollLeft():0})):f.is("area")&&h.imagemap?w=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?w=h.svg(f,l):(q=f.outerWidth(),r=f.outerHeight(),w=h.offset(f,g.container,u)),w.offset&&(q=w.width,r=w.height,w=w.offset),w.left+=l.x==="right"?q:l.x==="center"?q/2:0,w.top+=l.y==="bottom"?r:l.y==="center"?r/2:0}w.left+=m.x+(j.x==="right"?-o:j.x==="center"?-o/2:0),w.top+=m.y+(j.y==="bottom"?-p:j.y==="center"?-p/2:0),v.jquery&&f[0]!==b&&f[0]!==z&&A.vertical+A.horizontal!=="nonenone"?(v={elem:v,height:v[(v[0]===b?"h":"outerH")+"eight"](),width:v[(v[0]===b?"w":"outerW")+"idth"](),scrollLeft:u?0:v.scrollLeft(),scrollTop:u?0:v.scrollTop(),offset:v.offset()||{left:0,top:0}},w.adjusted={left:A.horizontal!=="none"?A.left(w.left):0,top:A.vertical!=="none"?A.top(w.top):0}):w.adjusted={left:0,top:0},D.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(k+"-pos-"+j.abbreviation()),t.originalEvent=a.extend({},c),D.trigger(t,[y,w,v.elem||v]);if(t.isDefaultPrevented())return y;delete w.adjusted,d===e||isNaN(w.left)||isNaN(w.top)||f==="mouse"||!a.isFunction(g.effect)?D.css(w):a.isFunction(g.effect)&&(g.effect.call(D,y,a.extend({},w)),D.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),B=0;return y},redraw:function(){if(y.rendered<1||C)return y;var a=s.position.container,b,c,d,e;C=1,s.style.width?D.css("width",s.style.width):(D.css("width","").addClass(r),c=D.width()+1,d=D.css("max-width")||"",e=D.css("min-width")||"",b=(d+e).indexOf("%")>-1?a.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||c,e=(e.indexOf("%")>-1?b:1)*parseInt(e,10)||0,c=d+e?Math.min(Math.max(c,e),d):c,D.css("width",Math.round(c)).removeClass(r)),C=0;return y},disable:function(b){var c=m;"boolean"!==typeof b&&(b=!D.hasClass(c)&&!G.disabled),y.rendered?(D.toggleClass(c,b),a.attr(D[0],"aria-disabled",b)):G.disabled=!!b;return y},enable:function(){return y.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,u);y.rendered&&(D.remove(),a.each(y.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(y.timers.show),clearTimeout(y.timers.hide),Q(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(u)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[y.id];return c}})}function x(b){var c;if(!b||"object"!==typeof b)return e;"object"!==typeof b.metadata&&(b.metadata={type:b.metadata});if("content"in b){if("object"!==typeof b.content||b.content.jquery)b.content={text:b.content};c=b.content.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.text=e),"title"in b.content&&("object"!==typeof b.content.title&&(b.content.title={text:b.content.title}),c=b.content.title.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.title.text=e))}"position"in b&&("object"!==typeof b.position&&(b.position={my:b.position,at:b.position})),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function w(){w.history=w.history||[],w.history.push(arguments);if("object"===typeof console){var a=console[console.warn?"warn":"log"],b=Array.prototype.slice.call(arguments),c;typeof arguments[0]==="string"&&(b[0]="qTip2: "+b[0]),c=a.apply?a.apply(console,b):a(b)}}"use strict";var d=!0,e=!1,f=null,g,h,i,j={},k="ui-tooltip",l="ui-widget",m="ui-state-disabled",n="div.qtip."+k,o=k+"-default",p=k+"-focus",q=k+"-hover",r=k+"-fluid",s="-31000px",t="_replacedByqTip",u="oldtitle",v;g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=x(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(i){function q(b){function d(){o.render(typeof b==="object"||k.show.ready),l.show.add(l.hide).unbind(n)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),o.cache.target=b?a(b.target):[c],k.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(d,k.show.delay),m.show!==m.hide&&l.hide.bind(m.hide,function(){clearTimeout(o.timers.show)})):d()}var k,l,m,n,o,p;p=a.isArray(b.id)?b.id[i]:b.id,p=!p||p===e||p.length<1||j[p]?g.nextid++:j[p]=p,n=".qtip-"+p+"-create",o=z.call(this,p,b);if(o===e)return d;k=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),l={show:k.show.target,hide:k.hide.target},m={show:a.trim(""+k.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+k.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(m.show)&&!/mouse(out|leave)/i.test(m.hide)&&(m.hide+=" mouseleave"+n),l.show.bind(m.show,q),(k.show.ready||k.prerender)&&q(f)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{g.css("position")!=="static"&&(k=g[0]===j?{left:parseInt(g.css("left"),10)||0,top:parseInt(g.css("top"),10)||0}:g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++);if(g[0]===j)break}while(g=g.offsetParent());(d[0]!==j||i>1)&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,u);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+t].apply(this,arguments),a.attr(d,u,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+t].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,u)),this.removeAttribute(u)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+t]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:function(b,c,d){a(this).animate(c,{duration:200,queue:e})}},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new A(a)},h.ajax.initialize="render",h.ajax.sanitize=function(a){var b=a.content,c;b&&"ajax"in b&&(c=b.ajax,typeof c!=="object"&&(c=a.content.ajax={url:c}),"boolean"!==typeof c.once&&c.once&&(c.once=!!c.once))},a.extend(d,g.defaults,{content:{ajax:{loading:d,once:d}}}),h.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new C(a)},h.tip.initialize="render",h.tip.sanitize=function(a){var b=a.style,c;b&&"tip"in b&&(c=a.style.tip,typeof c!=="object"&&(a.style.tip={corner:c}),/string|boolean/i.test(typeof c.corner)||(c.corner=d),typeof c.width!=="number"&&delete c.width,typeof c.height!=="number"&&delete c.height,typeof c.border!=="number"&&c.border!==d&&delete c.border,typeof c.offset!=="number"&&delete c.offset)},a.extend(d,g.defaults,{style:{tip:{corner:d,mimic:e,width:6,height:6,border:d,offset:0}}}),h.imagemap=function(b,c){function l(a,b){var d=0,e=1,f=1,g=0,h=0,i=a.width,j=a.height;while(i>0&&j>0&&e>0&&f>0){i=Math.floor(i/2),j=Math.floor(j/2),c.x==="left"?e=i:c.x==="right"?e=a.width-i:e+=Math.floor(i/2),c.y==="top"?f=j:c.y==="bottom"?f=a.height-j:f+=Math.floor(j/2),d=b.length;while(d--){if(b.length<2)break;g=b[d][0]-a.offset.left,h=b[d][1]-a.offset.top,(c.x==="left"&&g>=e||c.x==="right"&&g<=e||c.x==="center"&&(ga.width-e)||c.y==="top"&&h>=f||c.y==="bottom"&&h<=f||c.y==="center"&&(ha.height-f))&&b.splice(d,1)}}return{left:b[0][0],top:b[0][1]}}b.jquery||(b=a(b));var d=b.attr("shape").toLowerCase(),e=b.attr("coords").split(","),f=[],g=a('img[usemap="#'+b.parent("map").attr("name")+'"]'),h=g.offset(),i={width:0,height:0,offset:{top:1e10,right:0,bottom:0,left:1e10}},j=0,k=0;h.left+=Math.ceil((g.outerWidth()-g.width())/2),h.top+=Math.ceil((g.outerHeight()-g.height())/2);if(d==="poly"){j=e.length;while(j--)k=[parseInt(e[--j],10),parseInt(e[j+1],10)],k[0]>i.offset.right&&(i.offset.right=k[0]),k[0]i.offset.bottom&&(i.offset.bottom=k[1]),k[1]'),d.bgiframe.appendTo(e),e.bind("tooltipmove"+f,c.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,f=d.tip,g,h;h=parseInt(e.css("border-left-width"),10)||0,h={left:-h,top:-h},c&&f&&(g=c.corner.precedance==="x"?["width","left"]:["height","top"],h[g[1]]-=f[g[0]]()),d.bgiframe.css(h).css(a)},destroy:function(){d.bgiframe.remove(),e.unbind(f)}}),c.init()}function D(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o=a(document.body),q;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(b,c,d){var e=b.originalEvent;e&&b.type==="tooltiphide"&&/mouse(leave|enter)/.test(e.type)&&a(e.relatedTarget).closest(q[0]).length?b.preventDefault():f[b.type.replace("tooltip","")](b,d)}).bind("tooltipfocus"+k,function(a,b,c){q[0].style.zIndex=c}).bind("tooltipblur"+k,function(b){a("["+m+"]:visible").not(i).last().qtip("focus",b)}),g.escape&&a(b).unbind(l).bind("keydown"+l,function(a){a.keyCode===27&&i.hasClass(p)&&c.hide(a)}),g.blur&&h.overlay.unbind(l).bind("click"+l,function(a){i.hasClass(p)&&c.hide(a)});return f},create:function(){var c=a(j);if(c.length){h.overlay=c;return c}q=h.overlay=a("
",{id:j.substr(1),html:"
",mousedown:function(){return e}}).insertBefore(a(n).last()),a(b).unbind(k).bind("resize"+k,function(){q.css({height:a(b).height(),width:a(b).width()})}).triggerHandler("resize");return q},toggle:function(b,c,h){if(b&&b.isDefaultPrevented())return f;var j=g.effect,k=c?"show":"hide",p=q.is(":visible"),r=a("["+m+"]:visible").not(i),s;q||(q=f.create());if(q.is(":animated")&&p===c||!c&&r.length)return f;c?(q.css({left:0,top:0}),q.toggleClass("blurs",g.blur),o.delegate("*","focusin"+l,function(b){a(b.target).closest(n)[0]!==i[0]&&a("a, :input, img",i).add(i).focus()})):o.undelegate("*","focusin"+l),q.stop(d,e),a.isFunction(j)?j.call(q,c):j===e?q[k]():q.fadeTo(parseInt(h,10)||90,c?1:0,function(){c||a(this).hide()}),c||q.queue(function(a){q.css({left:"",top:""}),a()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=q;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id),o.undelegate("*","focusin"+l));return i.removeAttr(m).unbind(k)}}),f.init()}function C(b,g){function w(a){var b=a.precedance==="y",c=n[b?"width":"height"],d=n[b?"height":"width"],e=a.string().indexOf("center")>-1,f=c*(e?.5:1),g=Math.pow,h=Math.round,i,j,k,l=Math.sqrt(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=Math.sqrt(g(m[0],2)-g(p,2)),m[3]=Math.sqrt(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];return{height:k[b?0:1],width:k[b?1:0]}}function v(b){var c=k.titlebar&&b.y==="top",d=c?k.titlebar:k.content,e=a.browser.mozilla,f=e?"-moz-":a.browser.webkit?"-webkit-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"border-radius-"+g:"border-"+g+"-radius");return parseInt(d.css(h),10)||parseInt(l.css(h),10)||0}function u(a,b,c){b=b?b:a[a.precedance];var d=l.hasClass(r),e=k.titlebar&&a.y==="top",f=e?k.titlebar:k.content,g="border-"+b+"-width",h;l.addClass(r),h=parseInt(f.css(g),10),h=(c?h||parseInt(l.css(g),10):h)||0,l.toggleClass(r,d);return h}function t(f,g,h,l){if(k.tip){var n=a.extend({},i.corner),o=h.adjusted,p=b.options.position.adjust.method.split(" "),q=p[0],r=p[1]||p[0],s={left:e,top:e,x:0,y:0},t,u={},v;i.corner.fixed!==d&&(q==="shift"&&n.precedance==="x"&&o.left&&n.y!=="center"?n.precedance=n.precedance==="x"?"y":"x":q==="flip"&&o.left&&(n.x=n.x==="center"?o.left>0?"left":"right":n.x==="left"?"right":"left"),r==="shift"&&n.precedance==="y"&&o.top&&n.x!=="center"?n.precedance=n.precedance==="y"?"x":"y":r==="flip"&&o.top&&(n.y=n.y==="center"?o.top>0?"top":"bottom":n.y==="top"?"bottom":"top"),n.string()!==m.corner&&(m.top!==o.top||m.left!==o.left)&&i.update(n,e)),t=i.position(n,o),t.right!==c&&(t.left=-t.right),t.bottom!==c&&(t.top=-t.bottom),t.user=Math.max(0,j.offset);if(s.left=q==="shift"&&!!o.left)n.x==="center"?u["margin-left"]=s.x=t["margin-left"]-o.left:(v=t.right!==c?[o.left,-t.left]:[-o.left,t.left],(s.x=Math.max(v[0],v[1]))>v[0]&&(h.left-=o.left,s.left=e),u[t.right!==c?"right":"left"]=s.x);if(s.top=r==="shift"&&!!o.top)n.y==="center"?u["margin-top"]=s.y=t["margin-top"]-o.top:(v=t.bottom!==c?[o.top,-t.top]:[-o.top,t.top],(s.y=Math.max(v[0],v[1]))>v[0]&&(h.top-=o.top,s.top=e),u[t.bottom!==c?"bottom":"top"]=s.y);k.tip.css(u).toggle(!(s.x&&s.y||n.x==="center"&&s.y||n.y==="center"&&s.x)),h.left-=t.left.charAt?t.user:q!=="shift"||s.top||!s.left&&!s.top?t.left:0,h.top-=t.top.charAt?t.user:r!=="shift"||s.left||!s.left&&!s.top?t.top:0,m.left=o.left,m.top=o.top,m.corner=n.string()}}var i=this,j=b.options.style.tip,k=b.elements,l=k.tooltip,m={top:0,left:0,corner:""},n={width:j.width,height:j.height},o={},p=j.border||0,q=".qtip-tip",s=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.border=p,i.offset=j.offset,i.size=n,b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){i.init()||i.destroy(),b.reposition()},"^style.tip.(height|width)$":function(){n={width:j.width,height:j.height},i.create(),i.update(),b.reposition()},"^content.title.text|style.(classes|widget)$":function(){k.tip&&i.update()}},a.extend(i,{init:function(){var b=i.detectCorner()&&(s||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,t));return b},detectCorner:function(){var a=j.corner,c=b.options.position,f=c.at,g=c.my.string?c.my.string():c.my;if(a===e||g===e&&f===e)return e;a===d?i.corner=new h.Corner(g):a.string||(i.corner=new h.Corner(a),i.corner.fixed=d);return i.corner.string()!=="centercenter"},detectColours:function(){var c,d,e,f=k.tip.css({backgroundColor:"",border:""}),g=i.corner,h=g[g.precedance],m="border-"+h+"-color",p="border"+h.charAt(0)+h.substr(1)+"Color",q=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,s="background-color",t="transparent",u=a(document.body).css("color"),v=b.elements.content.css("color"),w=k.titlebar&&(g.y==="top"||g.y==="center"&&f.position().top+n.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:b,height:c}).prependTo(l),s?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(d+d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,r="px solid ",t="px dashed transparent",v=j.mimic,x=Math.round,y,z,A,C,D;b||(b=i.corner),v===e?v=b:(v=new h.Corner(v),v.precedance=b.precedance,v.x==="inherit"?v.x=b.x:v.y==="inherit"?v.y=b.y:v.x===v.y&&(v[b.precedance]=b[b.precedance])),y=v.precedance,i.detectColours(),o.border!=="transparent"&&o.border!=="#123456"?(p=u(b,f,d),j.border===0&&p>0&&(o.fill=o.border),i.border=p=j.border!==d?j.border:p):i.border=p=0,A=B(v,m,q),i.size=D=w(b),g.css(D),b.precedance==="y"?C=[x(v.x==="left"?p:v.x==="right"?D.width-m-p:(D.width-m)/2),x(v.y==="top"?D.height-q:0)]:C=[x(v.x==="left"?D.width-m:0),x(v.y==="top"?p:v.y==="bottom"?D.height-q-p:(D.height-q)/2)],s?(l.attr(D),z=l[0].getContext("2d"),z.restore(),z.save(),z.clearRect(0,0,3e3,3e3),z.translate(C[0],C[1]),z.beginPath(),z.moveTo(A[0][0],A[0][1]),z.lineTo(A[1][0],A[1][1]),z.lineTo(A[2][0],A[2][1]),z.closePath(),z.fillStyle=o.fill,z.strokeStyle=o.border,z.lineWidth=p*2,z.lineJoin="miter",z.miterLimit=100,p&&z.stroke(),z.fill()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(v.string().indexOf("center")>-1),left:C[0]-C[2]*Number(y==="x"),top:C[1]-C[2]*Number(y==="y"),width:m+p,height:q+p}).each(function(b){var c=a(this);c[c.prop?"prop":"attr"]({coordsize:m+p+" "+(q+p),path:A,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&c.html()===""&&c.html('')})),c!==e&&i.position(b)},position:function(b){var c=k.tip,f={},g=Math.max(0,j.offset),h,l,m;if(j.corner===e||!c)return e;b=b||i.corner,h=b.precedance,l=w(b),m=[b.x,b.y],h==="x"&&m.reverse(),a.each(m,function(a,c){var e,i;c==="center"?(e=h==="y"?"left":"top",f[e]="50%",f["margin-"+e]=-Math.round(l[h==="y"?"width":"height"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"width":"height"],c.css({top:"",bottom:"",left:"",right:"",margin:""}).css(f);return f},destroy:function(){k.tip&&k.tip.remove(),l.unbind(q)}}),i.init()}function B(a,b,c){var d=Math.ceil(b/2),e=Math.ceil(c/2),f={bottomright:[[0,0],[b,c],[b,0]],bottomleft:[[0,0],[b,0],[0,c]],topright:[[0,c],[b,0],[b,c]],topleft:[[0,0],[0,c],[b,c]],topcenter:[[0,c],[d,0],[b,c]],bottomcenter:[[0,0],[b,0],[d,c]],rightcenter:[[0,0],[b,e],[0,c]],leftcenter:[[b,0],[b,c],[0,e]]};f.lefttop=f.bottomright,f.righttop=f.bottomleft,f.leftbottom=f.topright,f.rightbottom=f.topleft;return f[a.string()]}function A(b){var c=this,f=b.elements.tooltip,g=b.options.content.ajax,h=".qtip-ajax",i=/)<[^<]*)*<\/script>/gi,j=d;b.checks.ajax={"^content.ajax":function(a,b,d){b==="ajax"&&(g=d),b==="once"?c.init():g&&g.url?c.load():f.unbind(h)}},a.extend(c,{init:function(){g&&g.url&&f.unbind(h)[g.once?"one":"bind"]("tooltipshow"+h,c.load);return c},load:function(d,h){function p(a,c,d){b.set("content.text",c+": "+d),n()}function o(c){l&&(c=a("
").append(c.replace(i,"")).find(l)),b.set("content.text",c),n()}function n(){m&&(f.css("visibility",""),h=e)}if(d&&d.isDefaultPrevented())return c;var j=g.url.indexOf(" "),k=g.url,l,m=g.once&&!g.loading&&h;m&&f.css("visibility","hidden"),j>-1&&(l=k.substr(j),k=k.substr(0,j)),a.ajax(a.extend({success:o,error:p,context:b},g,{url:k}));return c}}),c.init()}function z(b,c){var i,j,k,l,m=a(this),n=a(document.body),o=this===document?n:m,p=m.metadata?m.metadata(c.metadata):f,q=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,r=m.data(c.metadata.name||"qtipopts");try{r=typeof r==="string"?(new Function("return "+r))():r}catch(s){w("Unable to parse HTML5 attribute data: "+r)}l=a.extend(d,{},g.defaults,c,typeof r==="object"?x(r):f,x(q||p)),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else{w("Unable to locate content for tooltip! Aborting render of tooltip on element: ",m);return e}}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,u,a.attr(this,"title")),this.removeAttribute("title")),i=new y(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function y(c,s,t,w){function Q(){var c=[s.show.target[0],s.hide.target[0],y.rendered&&F.tooltip[0],s.position.container[0],s.position.viewport[0],b,document];y.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(E):s.show.target.unbind(E+"-create")}function P(){function r(a){D.is(":visible")&&y.reposition(a)}function p(a){if(D.hasClass(m))return e;clearTimeout(y.timers.inactive),y.timers.inactive=setTimeout(function(){y.hide(a)},s.hide.inactive)}function o(b){if(D.hasClass(m))return e;var c=a(b.relatedTarget||b.target),d=c.closest(n)[0]===D[0],g=c[0]===h.show[0];clearTimeout(y.timers.show),clearTimeout(y.timers.hide);f.target==="mouse"&&d||s.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||g))?b.preventDefault():s.hide.delay>0?y.timers.hide=setTimeout(function(){y.hide(b)},s.hide.delay):y.hide(b)}function l(a){if(D.hasClass(m))return e;h.show.trigger("qtip-"+t+"-inactive"),clearTimeout(y.timers.show),clearTimeout(y.timers.hide);var b=function(){y.toggle(d,a)};s.show.delay>0?y.timers.show=setTimeout(b,s.show.delay):b()}var f=s.position,h={show:s.show.target,hide:s.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+s.show.event).split(" "),hide:a.trim(""+s.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;D.bind("mouseenter"+E+" mouseleave"+E,function(a){var b=a.type==="mouseenter";b&&y.focus(a),D.toggleClass(q,b)}),s.hide.fixed&&(h.hide=h.hide.add(D),D.bind("mouseover"+E,function(){D.hasClass(m)||clearTimeout(y.timers.hide)})),/mouse(out|leave)/i.test(s.hide.event)?s.hide.leave==="window"&&h.window.bind("mouseout"+E,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&y.hide(a)}):/mouse(over|enter)/i.test(s.show.event)&&h.hide.bind("mouseleave"+E,function(a){clearTimeout(y.timers.show)}),(""+s.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+E,function(b){var d=a(b.target),e=!D.hasClass(m)&&D.is(":visible");d.parents(n).length===0&&d.add(c).length>1&&y.hide(b)}),"number"===typeof s.hide.inactive&&(h.show.bind("qtip-"+t+"-inactive",p),a.each(g.inactiveEvents,function(a,b){h.hide.add(F.tooltip).bind(b+E+"-inactive",p)})),a.each(j.hide,function(b,c){var d=a.inArray(c,j.show),e=a(h.hide);d>-1&&e.add(h.show).length===e.length||c==="unfocus"?(h.show.bind(c+E,function(a){D.is(":visible")?o(a):l(a)}),delete j.show[d]):h.hide.bind(c+E,o)}),a.each(j.show,function(a,b){h.show.bind(b+E,l)}),"number"===typeof s.hide.distance&&h.show.bind("mousemove"+E,function(a){var b=G.origin||{},c=s.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&y.hide(a)}),f.target==="mouse"&&(h.show.bind("mousemove"+E,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),f.adjust.mouse&&(s.hide.event&&D.bind("mouseleave"+E,function(a){(a.relatedTarget||a.target)!==h.show[0]&&y.hide(a)}),h.document.bind("mousemove"+E,function(a){!D.hasClass(m)&&D.is(":visible")&&y.reposition(a||i)}))),(f.adjust.resize||h.viewport.length)&&(a.event.special.resize?h.viewport:h.window).bind("resize"+E,r),(h.viewport.length||k&&D.css("position")==="fixed")&&h.viewport.bind("scroll"+E,r)}function O(b,d){function g(b){function g(f){clearTimeout(y.timers.img[this]),a(this).unbind(E),(c=c.not(this)).length===0&&(y.redraw(),d!==e&&y.reposition(G.event),b())}var c;if((c=f.find("img:not([height]):not([width])")).length===0)return g.call(c);c.each(function(b,c){(function d(){if(c.height&&c.width)return g.call(c);y.timers.img[c]=setTimeout(d,1e3)})(),a(c).bind("error"+E+" load"+E,g)})}var f=F.content;if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.rendered<0?D.queue("fx",g):(C=0,g(a.noop));return y}function N(b,d){var f=F.title;if(f&&b===e)J();else if(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),y.redraw(),d!==e&&y.rendered&&D.is(":visible")&&y.reposition(G.event)}function M(a){var b=F.button,c=F.title;if(!y.rendered)return e;a?(c||L(),K()):b.remove()}function L(){var b=A+"-title";F.titlebar&&J(),F.titlebar=a("
",{"class":k+"-titlebar "+(s.style.widget?"ui-widget-header":"")}).append(F.title=a("
",{id:b,"class":k+"-title","aria-atomic":d})).insertBefore(F.content),s.content.title.button?K():y.rendered&&y.redraw()}function K(){var b=s.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";F.button&&F.button.remove(),b.jquery?F.button=b:F.button=a("",{"class":"ui-state-default "+(s.style.widget?"":k+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),F.button.appendTo(F.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){D.hasClass(m)||y.hide(a);return e}).bind("mousedown keydown mouseup keyup mouseout",function(b){a(this).toggleClass("ui-state-active ui-state-focus",b.type.substr(-4)==="down")}),y.redraw()}function J(){F.title&&(F.titlebar.remove(),F.titlebar=F.title=F.button=f,y.reposition())}function I(){var a=s.style.widget;D.toggleClass(l,a).toggleClass(o,!a),F.content.toggleClass(l+"-content",a),F.titlebar&&F.titlebar.toggleClass(l+"-header",a),F.button&&F.button.toggleClass(k+"-icon",!a)}function H(a){var b=0,c,d=s,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(D[0].id=i,F.content[0].id=i+"-content",F.title[0].id=i+"-title")},"^content.text$":function(a,b,c){O(c)},"^content.title.text$":function(a,b,c){if(!c)return J();!F.title&&c&&L(),N(c)},"^content.title.button$":function(a,b,c){M(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){y.rendered&&D.appendTo(c)},"^show.ready$":function(){y.rendered?y.toggle(d):y.render(1)},"^style.classes$":function(a,b,c){D.attr("class",k+" qtip ui-helper-reset "+c)},"^style.widget|content.title":I,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){D[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var a=s.position;D.attr("tracking",a.target==="mouse"&&a.adjust.mouse),Q(),P()}},a.extend(y,{render:function(b){if(y.rendered)return y;var f=s.content.title.text,g=s.position,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",A),D=F.tooltip=a("
",{id:A,"class":k+" qtip ui-helper-reset "+o+" "+s.style.classes,width:s.style.width||"",tracking:g.target==="mouse"&&g.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":A+"-content","aria-hidden":d}).toggleClass(m,G.disabled).data("qtip",y).appendTo(s.position.container).append(F.content=a("
",{"class":k+"-content",id:A+"-content","aria-atomic":d})),y.rendered=-1,C=1,f&&(L(),N(f)),O(s.content.text,e),y.rendered=d,I(),a.each(s.events,function(b,c){a.isFunction(c)&&D.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(y)}),P(),D.queue("fx",function(a){i.originalEvent=G.event,D.trigger(i,[y]),C=0,y.redraw(),(s.show.ready||b)&&y.toggle(d,G.event),a()});return y},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:D.outerHeight(),width:D.outerWidth()};break;case"offset":b=h.offset(D,s.position.container);break;default:c=H(a.toLowerCase()),b=c[0][c[1]],b=b.precedance?b.string():b}return b},set:function(b,c){function m(a,b){var c,d,e;for(c in k)for(d in k[c])if(e=(new RegExp(d,"i")).exec(a))b.push(e),k[c][d].apply(y,b)}var g=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,i=e,j=e,k=y.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=H(c.toLowerCase()),f;f=e[0][e[1]],e[0][e[1]]="object"===typeof d&&d.nodeType?a(d):d,b[c]=[e[0],e[1],d,f],i=g.test(c)||i,j=h.test(c)||j}),x(s),B=C=1,a.each(b,m),B=C=0,D.is(":visible")&&y.rendered&&(i&&y.reposition(s.position.target==="mouse"?f:G.event),j&&y.redraw());return y},toggle:function(b,c){function q(){b?(a.browser.msie&&D[0].style.removeAttribute("filter"),D.css("overflow","")):D.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!y.rendered)if(b)y.render(1);else return y;var g=b?"show":"hide",h=s[g],j=D.is(":visible"),k=!c||s[g].target.length<2||G.target[0]===c.target,l=s.position,m=s.content,o,p;(typeof b).search("boolean|number")&&(b=!j);if(!D.is(":animated")&&j===b&&k)return y;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(G.event.type)&&c.target===s.show.target[0]&&D.has(c.relatedTarget).length)return y;G.event=a.extend({},c)}p=a.Event("tooltip"+g),p.originalEvent=c?G.event:f,D.trigger(p,[y,90]);if(p.isDefaultPrevented())return y;a.attr(D[0],"aria-hidden",!b),b?(G.origin=a.extend({},i),y.focus(c),a.isFunction(m.text)&&O(m.text,e),a.isFunction(m.title.text)&&N(m.title.text,e),!v&&l.target==="mouse"&&l.adjust.mouse&&(a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),v=d),y.reposition(c),h.solo&&a(n,h.solo).not(D).qtip("hide",p)):(clearTimeout(y.timers.show),delete G.origin,v&&!a(n+'[tracking="true"]:visible',h.solo).not(D).length&&(a(document).unbind("mousemove.qtip"),v=e),y.blur(c)),k&&D.stop(0,1),h.effect===e?(D[g](),q.call(D)):a.isFunction(h.effect)?(h.effect.call(D,y),D.queue("fx",function(a){q(),a()})):D.fadeTo(90,b?1:0,q),b&&h.target.trigger("qtip-"+t+"-inactive");return y},show:function(a){return y.toggle(d,a)},hide:function(a){return y.toggle(e,a)},focus:function(b){if(!y.rendered)return y;var c=a(n),d=parseInt(D[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;D.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,D.trigger(i,[y,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+p).qtip("blur",f)),D.addClass(p)[0].style.zIndex=e));return y},blur:function(b){var c=a.extend({},b),d;D.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,D.trigger(d,[y]);return y},reposition:function(c,d){if(!y.rendered||B)return y;B=1;var f=s.position.target,g=s.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=D.outerWidth(),p=D.outerHeight(),q=0,r=0,t=a.Event("tooltipmove"),u=D.css("position")==="fixed",v=g.viewport,w={left:0,top:0},x=y.plugins.tip,A={horizontal:n[0],vertical:n[1]||n[0],left:function(a){var b=A.horizontal==="shift",c=v.offset.left+v.scrollLeft,d=j.x==="left"?o:j.x==="right"?-o:-o/2,e=l.x==="left"?q:l.x==="right"?-q:-q/2,f=x&&x.size?x.size.width||0:0,g=x&&x.corner&&x.corner.precedance==="x"&&!b?f:0,h=c-a+g,i=a+o-v.width-c+g,k=d-(j.precedance==="x"||j.x===j.y?e:0),n=j.x==="center";b?(g=x&&x.corner&&x.corner.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,w.left+=h>0?h:i>0?-i:0,w.left=Math.max(v.offset.left+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),w.left))):(h>0&&(j.x!=="left"||i>0)?w.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(w.left-=n?-k:k+2*m.x),w.left!==a&&n&&(w.left-=m.x),w.lefti&&(w.left=a));return w.left-a},top:function(a){var b=A.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?r:l.y==="bottom"?-r:-r/2,f=x&&x.size?x.size.height||0:0,g=x&&x.corner&&x.corner.precedance==="y"&&!b?f:0,h=c-a+g,i=a+p-v.height-c+g,k=d-(j.precedance==="y"||j.x===j.y?e:0),n=j.y==="center";b?(g=x&&x.corner&&x.corner.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,w.top+=h>0?h:i>0?-i:0,w.top=Math.max(v.offset.top+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),w.top))):(h>0&&(j.y!=="top"||i>0)?w.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(w.top-=n?-k:k+2*m.y),w.top!==a&&n&&(w.top-=m.y),w.top<0&&-w.top>i&&(w.top=a));return w.top-a}};if(a.isArray(f)&&f.length===2)l={x:"left",y:"top"},w={left:f[0],top:f[1]};else if(f==="mouse"&&(c&&c.pageX||G.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?G.event:c&&c.pageX&&c.type==="mousemove"?c:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:!m.mouse&&G.origin?G.origin:c,w={top:c.pageY,left:c.pageX};else{f==="event"?c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=G.target=a(c.target):f=G.target:G.target=a(f),f=a(f).eq(0);if(f.length===0)return y;f[0]===document||f[0]===b?(q=h.iOS?b.innerWidth:f.width(),r=h.iOS?b.innerHeight:f.height(),f[0]===b&&(w={top:!u||h.iOS?(v||f).scrollTop():0,left:!u||h.iOS?(v||f).scrollLeft():0})):f.is("area")&&h.imagemap?w=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?w=h.svg(f,l):(q=f.outerWidth(),r=f.outerHeight(),w=h.offset(f,g.container,u)),w.offset&&(q=w.width,r=w.height,w=w.offset),w.left+=l.x==="right"?q:l.x==="center"?q/2:0,w.top+=l.y==="bottom"?r:l.y==="center"?r/2:0}w.left+=m.x+(j.x==="right"?-o:j.x==="center"?-o/2:0),w.top+=m.y+(j.y==="bottom"?-p:j.y==="center"?-p/2:0),v.jquery&&f[0]!==b&&f[0]!==z&&A.vertical+A.horizontal!=="nonenone"?(v={elem:v,height:v[(v[0]===b?"h":"outerH")+"eight"](),width:v[(v[0]===b?"w":"outerW")+"idth"](),scrollLeft:u?0:v.scrollLeft(),scrollTop:u?0:v.scrollTop(),offset:v.offset()||{left:0,top:0}},w.adjusted={left:A.horizontal!=="none"?A.left(w.left):0,top:A.vertical!=="none"?A.top(w.top):0}):w.adjusted={left:0,top:0},D.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(k+"-pos-"+j.abbreviation()),t.originalEvent=a.extend({},c),D.trigger(t,[y,w,v.elem||v]);if(t.isDefaultPrevented())return y;delete w.adjusted,d===e||isNaN(w.left)||isNaN(w.top)||f==="mouse"||!a.isFunction(g.effect)?D.css(w):a.isFunction(g.effect)&&(g.effect.call(D,y,a.extend({},w)),D.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),B=0;return y},redraw:function(){if(y.rendered<1||C)return y;var a=s.position.container,b,c,d,e;C=1,s.style.width?D.css("width",s.style.width):(D.css("width","").addClass(r),c=D.width()+1,d=D.css("max-width")||"",e=D.css("min-width")||"",b=(d+e).indexOf("%")>-1?a.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||c,e=(e.indexOf("%")>-1?b:1)*parseInt(e,10)||0,c=d+e?Math.min(Math.max(c,e),d):c,D.css("width",Math.round(c)).removeClass(r)),C=0;return y},disable:function(b){var c=m;"boolean"!==typeof b&&(b=!D.hasClass(c)&&!G.disabled),y.rendered?(D.toggleClass(c,b),a.attr(D[0],"aria-disabled",b)):G.disabled=!!b;return y},enable:function(){return y.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,u);y.rendered&&(D.remove(),a.each(y.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(y.timers.show),clearTimeout(y.timers.hide),Q(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(u)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[y.id];return c}})}function x(b){var c;if(!b||"object"!==typeof b)return e;"object"!==typeof b.metadata&&(b.metadata={type:b.metadata});if("content"in b){if("object"!==typeof b.content||b.content.jquery)b.content={text:b.content};c=b.content.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.text=e),"title"in b.content&&("object"!==typeof b.content.title&&(b.content.title={text:b.content.title}),c=b.content.title.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.title.text=e))}"position"in b&&("object"!==typeof b.position&&(b.position={my:b.position,at:b.position})),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function w(){w.history=w.history||[],w.history.push(arguments);if("object"===typeof console){var a=console[console.warn?"warn":"log"],b=Array.prototype.slice.call(arguments),c;typeof arguments[0]==="string"&&(b[0]="qTip2: "+b[0]),c=a.apply?a.apply(console,b):a(b)}}"use strict";var d=!0,e=!1,f=null,g,h,i,j={},k="ui-tooltip",l="ui-widget",m="ui-state-disabled",n="div.qtip."+k,o=k+"-default",p=k+"-focus",q=k+"-hover",r=k+"-fluid",s="-31000px",t="_replacedByqTip",u="oldtitle",v;g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=x(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(i){function q(b){function d(){o.render(typeof b==="object"||k.show.ready),l.show.add(l.hide).unbind(n)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),o.cache.target=b?a(b.target):[c],k.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(d,k.show.delay),m.show!==m.hide&&l.hide.bind(m.hide,function(){clearTimeout(o.timers.show)})):d()}var k,l,m,n,o,p;p=a.isArray(b.id)?b.id[i]:b.id,p=!p||p===e||p.length<1||j[p]?g.nextid++:j[p]=p,n=".qtip-"+p+"-create",o=z.call(this,p,b);if(o===e)return d;k=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),l={show:k.show.target,hide:k.hide.target},m={show:a.trim(""+k.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+k.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(m.show)&&!/mouse(out|leave)/i.test(m.hide)&&(m.hide+=" mouseleave"+n),l.show.bind(m.show,q),(k.show.ready||k.prerender)&&q(f)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{g.css("position")!=="static"&&(k=g[0]===j?{left:parseInt(g.css("left"),10)||0,top:parseInt(g.css("top"),10)||0}:g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++);if(g[0]===j)break}while(g=g.offsetParent());(d[0]!==j||i>1)&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,u);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+t].apply(this,arguments),a.attr(d,u,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+t].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,u)),this.removeAttribute(u)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+t]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:function(b,c,d){a(this).animate(c,{duration:200,queue:e})}},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new A(a)},h.ajax.initialize="render",h.ajax.sanitize=function(a){var b=a.content,c;b&&"ajax"in b&&(c=b.ajax,typeof c!=="object"&&(c=a.content.ajax={url:c}),"boolean"!==typeof c.once&&c.once&&(c.once=!!c.once))},a.extend(d,g.defaults,{content:{ajax:{loading:d,once:d}}}),h.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new C(a)},h.tip.initialize="render",h.tip.sanitize=function(a){var b=a.style,c;b&&"tip"in b&&(c=a.style.tip,typeof c!=="object"&&(a.style.tip={corner:c}),/string|boolean/i.test(typeof c.corner)||(c.corner=d),typeof c.width!=="number"&&delete c.width,typeof c.height!=="number"&&delete c.height,typeof c.border!=="number"&&c.border!==d&&delete c.border,typeof c.offset!=="number"&&delete c.offset)},a.extend(d,g.defaults,{style:{tip:{corner:d,mimic:e,width:6,height:6,border:d,offset:0}}}),h.imagemap=function(b,c){function l(a,b){var d=0,e=1,f=1,g=0,h=0,i=a.width,j=a.height;while(i>0&&j>0&&e>0&&f>0){i=Math.floor(i/2),j=Math.floor(j/2),c.x==="left"?e=i:c.x==="right"?e=a.width-i:e+=Math.floor(i/2),c.y==="top"?f=j:c.y==="bottom"?f=a.height-j:f+=Math.floor(j/2),d=b.length;while(d--){if(b.length<2)break;g=b[d][0]-a.offset.left,h=b[d][1]-a.offset.top,(c.x==="left"&&g>=e||c.x==="right"&&g<=e||c.x==="center"&&(ga.width-e)||c.y==="top"&&h>=f||c.y==="bottom"&&h<=f||c.y==="center"&&(ha.height-f))&&b.splice(d,1)}}return{left:b[0][0],top:b[0][1]}}b.jquery||(b=a(b));var d=b.attr("shape").toLowerCase(),e=b.attr("coords").split(","),f=[],g=a('img[usemap="#'+b.parent("map").attr("name")+'"]'),h=g.offset(),i={width:0,height:0,offset:{top:1e10,right:0,bottom:0,left:1e10}},j=0,k=0;h.left+=Math.ceil((g.outerWidth()-g.width())/2),h.top+=Math.ceil((g.outerHeight()-g.height())/2);if(d==="poly"){j=e.length;while(j--)k=[parseInt(e[--j],10),parseInt(e[j+1],10)],k[0]>i.offset.right&&(i.offset.right=k[0]),k[0]i.offset.bottom&&(i.offset.bottom=k[1]),k[1]35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(7(a,b,c){7 E(b){T c=V,d=b.2Z,e=d.1y,f=".28-"+b.1w;a.1r(c,{1Z:7(){d.28=a(\'<5L 1X="1B-1y-28" 8i="0" 8j="-1" 8c="8a:\\\'\\\';" 18="2I:2V; 17:4P; z-8d:-1; 2J:8l(4u=0); -85-2J:"84:8o.8p.8q(8r=0)";">\'),d.28.3d(e),e.1b("4n"+f,c.1R)},1R:7(){T a=b.44("5k"),c=b.1I.1e,f=d.1e,g,h;h=1z(e.13("1g-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1f.1j==="x"?["Y","R"]:["15","9"],h[g[1]]-=f[g[0]]()),d.28.13(h).13(a)},2j:7(){d.28.1V(),e.1u(f)}}),c.1Z()}7 D(c){T f=V,g=c.2l.U.1E,h=c.2Z,i=h.1y,j="#1i-2O",k=".8s",l=k+c.1w,m="1L-1E-1i",o=a(1C.39),q;c.30.1E={"^U.1E.(2K|2h)$":7(){f.1Z(),h.2O.1H(i.1L(":1N"))}},a.1r(f,{1Z:7(){X(!g.2K)S f;q=f.2C(),i.1a(m,d).1u(k).1u(l).1b("4e"+k+" 4f"+k,7(b,c,d){T e=b.35;e&&b.1x==="4f"&&/1q(2D|3Y)/.1A(e.1x)&&a(e.3j).4a(q[0]).19?b.5g():f[b.1x.2g("1y","")](b,d)}).1b("5q"+k,7(a,b,c){q[0].18.32=c}).1b("5r"+k,7(b){a("["+m+"]:1N").2w(i).5M().1i("2b",b)}),g.4H&&a(b).1u(l).1b("58"+l,7(a){a.8u===27&&i.1Q(p)&&c.W(a)}),g.2h&&h.2O.1u(l).1b("42"+l,7(a){i.1Q(p)&&c.W(a)});S f},2C:7(){T c=a(j);X(c.19){h.2O=c;S c}q=h.2O=a("<25 />",{1w:j.2G(1),2M:"<25>",3L:7(){S e}}).56(a(n).5M()),a(b).1u(k).1b("2y"+k,7(){q.13({15:a(b).15(),Y:a(b).Y()})}).5l("2y");S q},1H:7(b,c,h){X(b&&b.3q())S f;T j=g.22,k=c?"U":"W",p=q.1L(":1N"),r=a("["+m+"]:1N").2w(i),s;q||(q=f.2C());X(q.1L(":5n")&&p===c||!c&&r.19)S f;c?(q.13({R:0,9:0}),q.1T("8v",g.2h),o.7x("*","3Z"+l,7(b){a(b.14).4a(n)[0]!==i[0]&&a("a, :5O, 2W",i).2q(i).2b()})):o.5j("*","3Z"+l),q.4L(d,e),a.1O(j)?j.21(q,c):j===e?q[k]():q.5p(1z(h,10)||3T,c?1:0,7(){c||a(V).W()}),c||q.36(7(a){q.13({R:"",9:""}),a()});S f},U:7(a,b){S f.1H(a,d,b)},W:7(a,b){S f.1H(a,e,b)},2j:7(){T d=q;d&&(d=a("["+m+"]").2w(i).19<1,d?(h.2O.1V(),a(b).1u(k)):h.2O.1u(k+c.1w),o.5j("*","3Z"+l));S i.3F(m).1u(k)}}),f.1Z()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"15"],d=n[b?"15":"Y"],e=a.1t().2S("1l")>-1,f=c*(e?.5:1),g=1d.7q,h=1d.3R,i,j,k,l=1d.4g(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.4g(g(m[0],2)-g(p,2)),m[3]=1d.4g(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];S{15:k[b?0:1],Y:k[b?1:0]}}7 v(b){T c=k.1F&&b.y==="9",d=c?k.1F:k.12,e=a.2k.7M,f=e?"-5R-":a.2k.57?"-57-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1g-4D-"+g:"1g-"+g+"-4D");S 1z(d.13(h),10)||1z(l.13(h),10)||0}7 u(a,b,c){b=b?b:a[a.1j];T d=l.1Q(r),e=k.1F&&a.y==="9",f=e?k.1F:k.12,g="1g-"+b+"-Y",h;l.3p(r),h=1z(f.13(g),10),h=(c?h||1z(l.13(g),10):h)||0,l.1T(r,d);S h}7 t(f,g,h,l){X(k.1e){T n=a.1r({},i.1f),o=h.3O,p=b.2l.17.1R.4v.2L(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1f.2z!==d&&(q==="2m"&&n.1j==="x"&&o.R&&n.y!=="1l"?n.1j=n.1j==="x"?"y":"x":q==="3P"&&o.R&&(n.x=n.x==="1l"?o.R>0?"R":"1m":n.x==="R"?"1m":"R"),r==="2m"&&n.1j==="y"&&o.9&&n.x!=="1l"?n.1j=n.1j==="y"?"x":"y":r==="3P"&&o.9&&(n.y=n.y==="1l"?o.9>0?"9":"1n":n.y==="9"?"1n":"9"),n.1t()!==m.1f&&(m.9!==o.9||m.R!==o.R)&&i.3b(n,e)),t=i.17(n,o),t.1m!==c&&(t.R=-t.1m),t.1n!==c&&(t.9=-t.1n),t.46=1d.26(0,j.11);X(s.R=q==="2m"&&!!o.R)n.x==="1l"?u["33-R"]=s.x=t["33-R"]-o.R:(v=t.1m!==c?[o.R,-t.R]:[-o.R,t.R],(s.x=1d.26(v[0],v[1]))>v[0]&&(h.R-=o.R,s.R=e),u[t.1m!==c?"1m":"R"]=s.x);X(s.9=r==="2m"&&!!o.9)n.y==="1l"?u["33-9"]=s.y=t["33-9"]-o.9:(v=t.1n!==c?[o.9,-t.9]:[-o.9,t.9],(s.y=1d.26(v[0],v[1]))>v[0]&&(h.9-=o.9,s.9=e),u[t.1n!==c?"1n":"9"]=s.y);k.1e.13(u).1H(!(s.x&&s.y||n.x==="1l"&&s.y||n.y==="1l"&&s.x)),h.R-=t.R.3t?t.46:q!=="2m"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3t?t.46:r!=="2m"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1f=n.1t()}}T i=V,j=b.2l.18.1e,k=b.2Z,l=k.1y,m={9:0,R:0,1f:""},n={Y:j.Y,15:j.15},o={},p=j.1g||0,q=".1i-1e",s=!!(a("<4N />")[0]||{}).41;i.1f=f,i.3E=f,i.1g=p,i.11=j.11,i.2U=n,b.30.1e={"^17.1W|18.1e.(1f|3E|1g)$":7(){i.1Z()||i.2j(),b.23()},"^18.1e.(15|Y)$":7(){n={Y:j.Y,15:j.15},i.2C(),i.3b(),b.23()},"^12.1c.1o|18.(3e|2u)$":7(){k.1e&&i.3b()}},a.1r(i,{1Z:7(){T b=i.4E()&&(s||a.2k.3k);b&&(i.2C(),i.3b(),l.1u(q).1b("4n"+q,t));S b},4E:7(){T a=j.1f,c=b.2l.17,f=c.2E,g=c.1W.1t?c.1W.1t():c.1W;X(a===e||g===e&&f===e)S e;a===d?i.1f=1K h.2Q(g):a.1t||(i.1f=1K h.2Q(a),i.1f.2z=d);S i.1f.1t()!=="5H"},4G:7(){T c,d,e,f=k.1e.13({5T:"",1g:""}),g=i.1f,h=g[g.1j],m="1g-"+h+"-3u",p="1g"+h.3t(0)+h.2G(1)+"5U",q=/6B?\\(0, 0, 0(, 0)?\\)|3X/i,s="6N-3u",t="3X",u=a(1C.39).13("3u"),v=b.2Z.12.13("3u"),w=k.1F&&(g.y==="9"||g.y==="1l"&&f.17().9+n.15/2+j.11",{"1X":"1B-1y-1e"}).13({Y:b,15:c}).5X(l),s?a("<4N />").3d(k.1e)[0].41("2d").4C():(d=\'<4x:47 5Z="0,0" 18="2I:4S-2V; 17:4P; 4Q:2s(#3y#4R);">\',k.1e.2M(d+d))},3b:7(b,c){T g=k.1e,l=g.60(),m=n.Y,q=n.15,r="45 62 ",t="45 63 3X",v=j.3E,x=1d.3R,y,z,A,C,D;b||(b=i.1f),v===e?v=b:(v=1K h.2Q(v),v.1j=b.1j,v.x==="3z"?v.x=b.x:v.y==="3z"?v.y=b.y:v.x===v.y&&(v[b.1j]=b[b.1j])),y=v.1j,i.4G(),o.1g!=="3X"&&o.1g!=="#64"?(p=u(b,f,d),j.1g===0&&p>0&&(o.2A=o.1g),i.1g=p=j.1g!==d?j.1g:p):i.1g=p=0,A=B(v,m,q),i.2U=D=w(b),g.13(D),b.1j==="y"?C=[x(v.x==="R"?p:v.x==="1m"?D.Y-m-p:(D.Y-m)/2),x(v.y==="9"?D.15-q:0)]:C=[x(v.x==="R"?D.Y-m:0),x(v.y==="9"?p:v.y==="1n"?D.15-q-p:(D.15-q)/2)],s?(l.1a(D),z=l[0].41("2d"),z.65(),z.4C(),z.67(0,0,4I,4I),z.68(C[0],C[1]),z.69(),z.6a(A[0][0],A[0][1]),z.4K(A[1][0],A[1][1]),z.4K(A[2][0],A[2][1]),z.6b(),z.8t=o.2A,z.6c=o.1g,z.6d=p*2,z.6e="5z",z.6f=5E,p&&z.5G(),z.2A()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" 6g",C[2]=p&&/^(r|b)/i.1A(b.1t())?52(a.2k.3N,10)===8?2:1:0,l.13({6h:""+(v.1t().2S("1l")>-1),R:C[0]-C[2]*5K(y==="x"),9:C[1]-C[2]*5K(y==="y"),Y:m+p,15:q+p}).1s(7(b){T c=a(V);c[c.4M?"4M":"1a"]({6j:m+p+" "+(q+p),6k:A,6l:o.2A,6m:!!b,6n:!b}).13({2I:p||b?"2V":"4t"}),!b&&c.2M()===""&&c.2M(\'<4x:5G 6p="\'+p*2+\'45" 3u="\'+o.1g+\'" 6q="6r" 6s="5z" 18="4Q:2s(#3y#4R); 2I:4S-2V;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1e,f={},g=1d.26(0,j.11),h,l,m;X(j.1f===e||!c)S e;b=b||i.1f,h=b.1j,l=w(b),m=[b.x,b.y],h==="x"&&m.6t(),a.1s(m,7(a,c){T e,i;c==="1l"?(e=h==="y"?"R":"9",f[e]="50%",f["33-"+e]=-1d.3R(l[h==="y"?"Y":"15"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"Y":"15"],c.13({9:"",1n:"",R:"",1m:"",33:""}).13(f);S f},2j:7(){k.1e&&k.1e.1V(),l.1u(q)}}),i.1Z()}7 B(a,b,c){T d=1d.3K(b/2),e=1d.3K(c/2),f={5v:[[0,0],[b,c],[b,0]],4V:[[0,0],[b,0],[0,c]],5F:[[0,c],[b,0],[b,c]],4X:[[0,0],[0,c],[b,c]],6v:[[0,c],[d,0],[b,c]],7X:[[0,0],[b,0],[d,c]],6w:[[0,0],[b,e],[0,c]],6x:[[b,0],[b,c],[0,e]]};f.6y=f.5v,f.6z=f.4V,f.6A=f.5F,f.6C=f.4X;S f[a.1t()]}7 A(b){T c=V,f=b.2Z.1y,g=b.2l.12.1D,h=".1i-1D",i=/<4o\\b[^<]*(?:(?!<\\/4o>)<[^<]*)*<\\/4o>/5x,j=d;b.30.1D={"^12.1D":7(a,b,d){b==="1D"&&(g=d),b==="2B"?c.1Z():g&&g.2s?c.3D():f.1u(h)}},a.1r(c,{1Z:7(){g&&g.2s&&f.1u(h)[g.2B?"7L":"1b"]("4e"+h,c.3D);S c},3D:7(d,h){7 p(a,c,d){b.3f("12.1o",c+": "+d),n()}7 o(c){l&&(c=a("<25/>").3g(c.2g(i,"")).54(l)),b.3f("12.1o",c),n()}7 n(){m&&(f.13("4i",""),h=e)}X(d&&d.3q())S c;T j=g.2s.2S(" "),k=g.2s,l,m=g.2B&&!g.5J&&h;m&&f.13("4i","4j"),j>-1&&(l=k.2G(j),k=k.2G(0,j)),a.1D(a.1r({6D:o,5c:p,6E:b},g,{2s:k}));S c}}),c.1Z()}7 z(b,c){T i,j,k,l,m=a(V),n=a(1C.39),o=V===1C?n:m,p=m.2i?m.2i(c.2i):f,q=c.2i.1x==="7H"&&p?p[c.2i.4d]:f,r=m.2r(c.2i.4d||"7G");7F{r=16 r==="1t"?(1K 6H("S "+r))():r}7D(s){w("5i 5h 6J 6K 6L 2r: "+r)}l=a.1r(d,{},g.3s,c,16 r==="1k"?x(r):f,x(q||p)),j=l.17,l.1w=b;X("3o"===16 l.12.1o){k=m.1a(l.12.1a);X(l.12.1a!==e&&k)l.12.1o=k;2f{w("5i 5h 6P 12 4h 1y! 6Q 1P 7v 1y 2K 6R: ",m);S e}}j.20===e&&(j.20=n),j.14===e&&(j.14=o),l.U.14===e&&(l.U.14=o),l.U.37===d&&(l.U.37=n),l.W.14===e&&(l.W.14=o),l.17.1S===d&&(l.17.1S=j.20),j.2E=1K h.2Q(j.2E),j.1W=1K h.2Q(j.1W);X(a.2r(V,"1i"))X(l.4r)m.1i("2j");2f X(l.4r===e)S e;a.1a(V,"1c")&&(a.1a(V,u,a.1a(V,"1c")),V.3I("1c")),i=1K y(m,l,b,!!k),a.2r(V,"1i",i),m.1b("1V.1i",7(){i.2j()});S i}7 y(c,s,t,w){7 Q(){T c=[s.U.14[0],s.W.14[0],y.1p&&F.1y[0],s.17.20[0],s.17.1S[0],b,1C];y.1p?a([]).6S(a.6T(c,7(a){S 16 a==="1k"})).1u(E):s.U.14.1u(E+"-2C")}7 P(){7 r(a){D.1L(":1N")&&y.23(a)}7 p(a){X(D.1Q(m))S e;1J(y.1v.2a),y.1v.2a=3c(7(){y.W(a)},s.W.2a)}7 o(b){X(D.1Q(m))S e;T c=a(b.3j||b.14),d=c.4a(n)[0]===D[0],g=c[0]===h.U[0];1J(y.1v.U),1J(y.1v.W);f.14==="1q"&&d||s.W.2z&&(/1q(3S|2D|48)/.1A(b.1x)&&(d||g))?b.5g():s.W.2x>0?y.1v.W=3c(7(){y.W(b)},s.W.2x):y.W(b)}7 l(a){X(D.1Q(m))S e;h.U.2R("1i-"+t+"-2a"),1J(y.1v.U),1J(y.1v.W);T b=7(){y.1H(d,a)};s.U.2x>0?y.1v.U=3c(b,s.U.2x):b()}T f=s.17,h={U:s.U.14,W:s.W.14,1S:a(f.1S),1C:a(1C),3w:a(b)},j={U:a.3U(""+s.U.1h).2L(" "),W:a.3U(""+s.W.1h).2L(" ")},k=a.2k.3k&&1z(a.2k.3N,10)===6;D.1b("3v"+E+" 2N"+E,7(a){T b=a.1x==="3v";b&&y.2b(a),D.1T(q,b)}),s.W.2z&&(h.W=h.W.2q(D),D.1b("7p"+E,7(){D.1Q(m)||1J(y.1v.W)})),/1q(3S|2D)/i.1A(s.W.1h)?s.W.2D&&h.3w.1b("2N"+E,7(a){/59|4O/.1A(a.14)&&!a.3j&&y.W(a)}):/1q(4A|3Y)/i.1A(s.U.1h)&&h.W.1b("2N"+E,7(a){1J(y.1v.U)}),(""+s.W.1h).2S("53")>-1&&h.1C.1b("3L"+E,7(b){T d=a(b.14),e=!D.1Q(m)&&D.1L(":1N");d.6V(n).19===0&&d.2q(c).19>1&&y.W(b)}),"2F"===16 s.W.2a&&(h.U.1b("1i-"+t+"-2a",p),a.1s(g.5o,7(a,b){h.W.2q(F.1y).1b(b+E+"-2a",p)})),a.1s(j.W,7(b,c){T d=a.6X(c,j.U),e=a(h.W);d>-1&&e.2q(h.U).19===e.19||c==="53"?(h.U.1b(c+E,7(a){D.1L(":1N")?o(a):l(a)}),2v j.U[d]):h.W.1b(c+E,o)}),a.1s(j.U,7(a,b){h.U.1b(b+E,l)}),"2F"===16 s.W.3J&&h.U.1b("2e"+E,7(a){T b=G.3m||{},c=s.W.3J,d=1d.3h;(d(a.1M-b.1M)>=c||d(a.2c-b.2c)>=c)&&y.W(a)}),f.14==="1q"&&(h.U.1b("2e"+E,7(a){i={1M:a.1M,2c:a.2c,1x:"2e"}}),f.1R.1q&&(s.W.1h&&D.1b("2N"+E,7(a){(a.3j||a.14)!==h.U[0]&&y.W(a)}),h.1C.1b("2e"+E,7(a){!D.1Q(m)&&D.1L(":1N")&&y.23(a||i)}))),(f.1R.2y||h.1S.19)&&(a.1h.6Y.2y?h.1S:h.3w).1b("2y"+E,r),(h.1S.19||k&&D.13("17")==="2z")&&h.1S.1b("4p"+E,r)}7 O(b,d){7 g(b){7 g(f){1J(y.1v.2W[V]),a(V).1u(E),(c=c.2w(V)).19===0&&(y.2P(),d!==e&&y.23(G.1h),b())}T c;X((c=f.54("2W:2w([15]):2w([Y])")).19===0)S g.21(c);c.1s(7(b,c){(7 d(){X(c.15&&c.Y)S g.21(c);y.1v.2W[c]=3c(d,7j)})(),a(c).1b("5c"+E+" 3D"+E,g)})}T f=F.12;X(!y.1p||!b)S e;a.1O(b)&&(b=b.21(c,G.1h,y)||""),b.24&&b.19>0?f.5m().3g(b.13({2I:"2V"})):f.2M(b),y.1p<0?D.36("43",g):(C=0,g(a.7g));S y}7 N(b,d){T f=F.1c;X(f&&b===e)J();2f X(!y.1p||!b)S e;a.1O(b)&&(b=b.21(c,G.1h,y)||""),b.24&&b.19>0?f.5m().3g(b.13({2I:"2V"})):f.2M(b),y.2P(),d!==e&&y.1p&&D.1L(":1N")&&y.23(G.1h)}7 M(a){T b=F.1G,c=F.1c;X(!y.1p)S e;a?(c||L(),K()):b.1V()}7 L(){T b=A+"-1c";F.1F&&J(),F.1F=a("<25 />",{"1X":k+"-1F "+(s.18.2u?"1B-2u-5b":"")}).3g(F.1c=a("<25 />",{1w:b,"1X":k+"-1c","1Y-4c":d})).56(F.12),s.12.1c.1G?K():y.1p&&y.2P()}7 K(){T b=s.12.1c.1G,c=16 b==="1t",d=c?b:"7b 1y";F.1G&&F.1G.1V(),b.24?F.1G=b:F.1G=a("",{"1X":"1B-3x-3y "+(s.18.2u?"":k+"-3H"),1c:d,"1Y-74":d}).76(a("<77 />",{"1X":"1B-3H 1B-3H-79",2M:"&7a;"})),F.1G.3d(F.1F).1a("51","1G").4B(7(b){a(V).1T("1B-3x-4B",b.1x==="3v")}).42(7(a){D.1Q(m)||y.W(a);S e}).1b("3L 58 5t 7d 7e",7(b){a(V).1T("1B-3x-7f 1B-3x-2b",b.1x.2G(-4)==="7h")}),y.2P()}7 J(){F.1c&&(F.1F.1V(),F.1F=F.1c=F.1G=f,y.23())}7 I(){T a=s.18.2u;D.1T(l,a).1T(o,!a),F.12.1T(l+"-12",a),F.1F&&F.1F.1T(l+"-5b",a),F.1G&&F.1G.1T(k+"-3H",!a)}7 H(a){T b=0,c,d=s,e=a.2L(".");3a(d=d[e[b++]])b0&&!a("#"+i).19&&(D[0].1w=i,F.12[0].1w=i+"-12",F.1c[0].1w=i+"-1c")},"^12.1o$":7(a,b,c){O(c)},"^12.1c.1o$":7(a,b,c){X(!c)S J();!F.1c&&c&&L(),N(c)},"^12.1c.1G$":7(a,b,c){M(c)},"^17.(1W|2E)$":7(a,b,c){"1t"===16 c&&(a[b]=1K h.2Q(c))},"^17.20$":7(a,b,c){y.1p&&D.3d(c)},"^U.38$":7(){y.1p?y.1H(d):y.1P(1)},"^18.3e$":7(a,b,c){D.1a("1X",k+" 1i 1B-5d-5e "+c)},"^18.2u|12.1c":I,"^4s.(1P|U|48|W|2b|2h)$":7(b,c,d){D[(a.1O(d)?"":"7m")+"1b"]("1y"+c,d)},"^(U|W|17).(1h|14|2z|2a|2D|3J|1S|1R)":7(){T a=s.17;D.1a("4k",a.14==="1q"&&a.1R.1q),Q(),P()}},a.1r(y,{1P:7(b){X(y.1p)S y;T f=s.12.1c.1o,g=s.17,i=a.3l("7n");a.1a(c[0],"1Y-4y",A),D=F.1y=a("<25/>",{1w:A,"1X":k+" 1i 1B-5d-5e "+o+" "+s.18.3e,Y:s.18.Y||"",4k:g.14==="1q"&&g.1R.1q,51:"7r","1Y-7s":"7t","1Y-4c":e,"1Y-4y":A+"-12","1Y-4j":d}).1T(m,G.2H).2r("1i",y).3d(s.17.20).3g(F.12=a("<25 />",{"1X":k+"-12",1w:A+"-12","1Y-4c":d})),y.1p=-1,C=1,f&&(L(),N(f)),O(s.12.1o,e),y.1p=d,I(),a.1s(s.4s,7(b,c){a.1O(c)&&D.1b(b==="1H"?"4e 4f":"1y"+b,c)}),a.1s(h,7(){V.2T==="1P"&&V(y)}),P(),D.36("43",7(a){i.35=G.1h,D.2R(i,[y]),C=0,y.2P(),(s.U.38||b)&&y.1H(d,G.1h),a()});S y},44:7(a){T b,c;5w(a.2t()){3r"5k":b={15:D.3i(),Y:D.3C()};34;3r"11":b=h.11(D,s.17.20);34;3y:c=H(a.2t()),b=c[0][c[1]],b=b.1j?b.1t():b}S b},3f:7(b,c){7 m(a,b){T c,d,e;4h(c 29 k)4h(d 29 k[c])X(e=(1K 7y(d,"i")).55(a))b.4l(e),k[c][d].2n(y,b)}T g=/^17\\.(1W|2E|1R|14|20)|18|12|U\\.38/i,h=/^12\\.(1c|1a)|18/i,i=e,j=e,k=y.30,l;"1t"===16 b?(l=b,b={},b[l]=c):b=a.1r(d,{},b),a.1s(b,7(c,d){T e=H(c.2t()),f;f=e[0][e[1]],e[0][e[1]]="1k"===16 d&&d.7z?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1A(c)||i,j=h.1A(c)||j}),x(s),B=C=1,a.1s(b,m),B=C=0,D.1L(":1N")&&y.1p&&(i&&y.23(s.17.14==="1q"?f:G.1h),j&&y.2P());S y},1H:7(b,c){7 q(){b?(a.2k.3k&&D[0].18.3I("2J"),D.13("7A","")):D.13({2I:"",4i:"",4u:"",R:"",9:""})}X(!y.1p)X(b)y.1P(1);2f S y;T g=b?"U":"W",h=s[g],j=D.1L(":1N"),k=!c||s[g].14.19<2||G.14[0]===c.14,l=s.17,m=s.12,o,p;(16 b).4U("3o|2F")&&(b=!j);X(!D.1L(":5n")&&j===b&&k)S y;X(c){X(/4A|3Y/.1A(c.1x)&&/3S|2D/.1A(G.1h.1x)&&c.14===s.U.14[0]&&D.7B(c.3j).19)S y;G.1h=a.1r({},c)}p=a.3l("1y"+g),p.35=c?G.1h:f,D.2R(p,[y,3T]);X(p.3q())S y;a.1a(D[0],"1Y-4j",!b),b?(G.3m=a.1r({},i),y.2b(c),a.1O(m.1o)&&O(m.1o,e),a.1O(m.1c.1o)&&N(m.1c.1o,e),!v&&l.14==="1q"&&l.1R.1q&&(a(1C).1b("2e.1i",7(a){i={1M:a.1M,2c:a.2c,1x:"2e"}}),v=d),y.23(c),h.37&&a(n,h.37).2w(D).1i("W",p)):(1J(y.1v.U),2v G.3m,v&&!a(n+\'[4k="7C"]:1N\',h.37).2w(D).19&&(a(1C).1u("2e.1i"),v=e),y.2h(c)),k&&D.4L(0,1),h.22===e?(D[g](),q.21(D)):a.1O(h.22)?(h.22.21(D,y),D.36("43",7(a){q(),a()})):D.5p(3T,b?1:0,q),b&&h.14.2R("1i-"+t+"-2a");S y},U:7(a){S y.1H(d,a)},W:7(a){S y.1H(e,a)},2b:7(b){X(!y.1p)S y;T c=a(n),d=1z(D[0].18.32,10),e=g.5u+c.19,f=a.1r({},b),h,i;D.1Q(p)||(i=a.3l("5q"),i.35=f,D.2R(i,[y,e]),i.3q()||(d!==e&&(c.1s(7(){V.18.32>d&&(V.18.32=V.18.32-1)}),c.2J("."+p).1i("2h",f)),D.3p(p)[0].18.32=e));S y},2h:7(b){T c=a.1r({},b),d;D.4w(p),d=a.3l("5r"),d.35=c,D.2R(d,[y]);S y},23:7(c,d){X(!y.1p||B)S y;B=1;T f=s.17.14,g=s.17,j=g.1W,l=g.2E,m=g.1R,n=m.4v.2L(" "),o=D.3C(),p=D.3i(),q=0,r=0,t=a.3l("4n"),u=D.13("17")==="2z",v=g.1S,w={R:0,9:0},x=y.1I.1e,A={3M:n[0],3W:n[1]||n[0],R:7(a){T b=A.3M==="2m",c=v.11.R+v.2X,d=j.x==="R"?o:j.x==="1m"?-o:-o/2,e=l.x==="R"?q:l.x==="1m"?-q:-q/2,f=x&&x.2U?x.2U.Y||0:0,g=x&&x.1f&&x.1f.1j==="x"&&!b?f:0,h=c-a+g,i=a+o-v.Y-c+g,k=d-(j.1j==="x"||j.x===j.y?e:0),n=j.x==="1l";b?(g=x&&x.1f&&x.1f.1j==="y"?f:0,k=(j.x==="R"?1:-1)*d-g,w.R+=h>0?h:i>0?-i:0,w.R=1d.26(v.11.R+(g&&x.1f.x==="1l"?x.11:0),a-k,1d.3Q(1d.26(v.11.R+v.Y,a+k),w.R))):(h>0&&(j.x!=="R"||i>0)?w.R-=k+(n?0:2*m.x):i>0&&(j.x!=="1m"||h>0)&&(w.R-=n?-k:k+2*m.x),w.R!==a&&n&&(w.R-=m.x),w.Ri&&(w.R=a));S w.R-a},9:7(a){T b=A.3W==="2m",c=v.11.9+v.31,d=j.y==="9"?p:j.y==="1n"?-p:-p/2,e=l.y==="9"?r:l.y==="1n"?-r:-r/2,f=x&&x.2U?x.2U.15||0:0,g=x&&x.1f&&x.1f.1j==="y"&&!b?f:0,h=c-a+g,i=a+p-v.15-c+g,k=d-(j.1j==="y"||j.x===j.y?e:0),n=j.y==="1l";b?(g=x&&x.1f&&x.1f.1j==="x"?f:0,k=(j.y==="9"?1:-1)*d-g,w.9+=h>0?h:i>0?-i:0,w.9=1d.26(v.11.9+(g&&x.1f.x==="1l"?x.11:0),a-k,1d.3Q(1d.26(v.11.9+v.15,a+k),w.9))):(h>0&&(j.y!=="9"||i>0)?w.9-=k+(n?0:2*m.y):i>0&&(j.y!=="1n"||h>0)&&(w.9-=n?-k:k+2*m.y),w.9!==a&&n&&(w.9-=m.y),w.9<0&&-w.9>i&&(w.9=a));S w.9-a}};X(a.5N(f)&&f.19===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2f X(f==="1q"&&(c&&c.1M||G.1h.1M))l={x:"R",y:"9"},c=c&&(c.1x==="2y"||c.1x==="4p")?G.1h:c&&c.1M&&c.1x==="2e"?c:i&&(m.1q||!c||!c.1M)?{1M:i.1M,2c:i.2c}:!m.1q&&G.3m?G.3m:c,w={9:c.2c,R:c.1M};2f{f==="1h"?c&&c.14&&c.1x!=="4p"&&c.1x!=="2y"?f=G.14=a(c.14):f=G.14:G.14=a(f),f=a(f).7J(0);X(f.19===0)S y;f[0]===1C||f[0]===b?(q=h.2p?b.7N:f.Y(),r=h.2p?b.7O:f.15(),f[0]===b&&(w={9:!u||h.2p?(v||f).31():0,R:!u||h.2p?(v||f).2X():0})):f.1L("7P")&&h.4b?w=h.4b(f,l):f[0].7Q==="7R://7S.7T.7V/7W/3B"&&h.3B?w=h.3B(f,l):(q=f.3C(),r=f.3i(),w=h.11(f,g.20,u)),w.11&&(q=w.Y,r=w.15,w=w.11),w.R+=l.x==="1m"?q:l.x==="1l"?q/2:0,w.9+=l.y==="1n"?r:l.y==="1l"?r/2:0}w.R+=m.x+(j.x==="1m"?-o:j.x==="1l"?-o/2:0),w.9+=m.y+(j.y==="1n"?-p:j.y==="1l"?-p/2:0),v.24&&f[0]!==b&&f[0]!==z&&A.3W+A.3M!=="7Y"?(v={5B:v,15:v[(v[0]===b?"h":"7Z")+"80"](),Y:v[(v[0]===b?"w":"81")+"82"](),2X:u?0:v.2X(),31:u?0:v.31(),11:v.11()||{R:0,9:0}},w.3O={R:A.3M!=="4t"?A.R(w.R):0,9:A.3W!=="4t"?A.9(w.9):0}):w.3O={R:0,9:0},D.1a("1X",7(b,c){S a.1a(V,"1X").2g(/1B-1y-5A-\\w+/i,"")}).3p(k+"-5A-"+j.4W()),t.35=a.1r({},c),D.2R(t,[y,w,v.5B||v]);X(t.3q())S y;2v w.3O,d===e||5C(w.R)||5C(w.9)||f==="1q"||!a.1O(g.22)?D.13(w):a.1O(g.22)&&(g.22.21(D,y,a.1r({},w)),D.36(7(b){a(V).13({4u:"",15:""}),a.2k.3k&&V.18.3I("2J"),b()})),B=0;S y},2P:7(){X(y.1p<1||C)S y;T a=s.17.20,b,c,d,e;C=1,s.18.Y?D.13("Y",s.18.Y):(D.13("Y","").3p(r),c=D.Y()+1,d=D.13("26-Y")||"",e=D.13("3Q-Y")||"",b=(d+e).2S("%")>-1?a.Y()/5E:0,d=(d.2S("%")>-1?b:1)*1z(d,10)||c,e=(e.2S("%")>-1?b:1)*1z(e,10)||0,c=d+e?1d.3Q(1d.26(c,e),d):c,D.13("Y",1d.3R(c)).4w(r)),C=0;S y},49:7(b){T c=m;"3o"!==16 b&&(b=!D.1Q(c)&&!G.2H),y.1p?(D.1T(c,b),a.1a(D[0],"1Y-2H",b)):G.2H=!!b;S y},89:7(){S y.49(e)},2j:7(){T b=c[0],d=a.1a(b,u);y.1p&&(D.1V(),a.1s(y.1I,7(){V.2j&&V.2j()})),1J(y.1v.U),1J(y.1v.W),Q(),a.8b(b,"1i"),d&&(a.1a(b,"1c",d),c.3F(u)),c.3F("1Y-4y").1u(".1i"),2v j[y.1w];S c}})}7 x(b){T c;X(!b||"1k"!==16 b)S e;"1k"!==16 b.2i&&(b.2i={1x:b.2i});X("12"29 b){X("1k"!==16 b.12||b.12.24)b.12={1o:b.12};c=b.12.1o||e,!a.1O(c)&&(!c&&!c.1a||c.19<1||"1k"===16 c&&!c.24)&&(b.12.1o=e),"1c"29 b.12&&("1k"!==16 b.12.1c&&(b.12.1c={1o:b.12.1c}),c=b.12.1c.1o||e,!a.1O(c)&&(!c&&!c.1a||c.19<1||"1k"===16 c&&!c.24)&&(b.12.1c.1o=e))}"17"29 b&&("1k"!==16 b.17&&(b.17={1W:b.17,2E:b.17})),"U"29 b&&("1k"!==16 b.U&&(b.U.24?b.U={14:b.U}:b.U={1h:b.U})),"W"29 b&&("1k"!==16 b.W&&(b.W.24?b.W={14:b.W}:b.W={1h:b.W})),"18"29 b&&("1k"!==16 b.18&&(b.18={3e:b.18})),a.1s(h,7(){V.3n&&V.3n(b)});S b}7 w(){w.4z=w.4z||[],w.4z.4l(1U);X("1k"===16 3V){T a=3V[3V.5I?"5I":"8e"],b=8f.8g.4q.21(1U),c;16 1U[0]==="1t"&&(b[0]="8h: "+b[0]),c=a.2n?a.2n(3V,b):a(b)}}"8k 8m";T d=!0,e=!1,f=8n,g,h,i,j={},k="1B-1y",l="1B-2u",m="1B-3x-2H",n="25.1i."+k,o=k+"-3y",p=k+"-2b",q=k+"-4B",r=k+"-5P",s="-5Q",t="5S",u="4Z",v;g=a.2o.1i=7(b,h,i){T j=(""+b).2t(),k=f,l=j==="49"?[d]:a.5V(1U).4q(1),m=l[l.19-1],n=V[0]?a.2r(V[0],"1i"):f;X(!1U.19&&n||j==="5W")S n;X("1t"===16 b){V.1s(7(){T b=a.2r(V,"1i");X(!b)S d;m&&m.5Y&&(b.2Y.1h=m);X(j!=="4O"&&j!=="2l"||!h)b[j]&&b[j].2n(b[j],l);2f X(a.61(h)||i!==c)b.3f(h,i);2f{k=b.44(h);S e}});S k!==f?k:V}X("1k"===16 b||!1U.19){n=x(a.1r(d,{},b));S g.1b.21(V,n,m)}},g.1b=7(b,f){S V.1s(7(i){7 q(b){7 d(){o.1P(16 b==="1k"||k.U.38),l.U.2q(l.W).1u(n)}X(o.2Y.2H)S e;o.2Y.1h=a.1r({},b),o.2Y.14=b?a(b.14):[c],k.U.2x>0?(1J(o.1v.U),o.1v.U=3c(d,k.U.2x),m.U!==m.W&&l.W.1b(m.W,7(){1J(o.1v.U)})):d()}T k,l,m,n,o,p;p=a.5N(b.1w)?b.1w[i]:b.1w,p=!p||p===e||p.19<1||j[p]?g.4m++:j[p]=p,n=".1i-"+p+"-2C",o=z.21(V,p,b);X(o===e)S d;k=o.2l,a.1s(h,7(){V.2T==="2T"&&V(o)}),l={U:k.U.14,W:k.W.14},m={U:a.3U(""+k.U.1h).2g(/ /g,n+" ")+n,W:a.3U(""+k.W.1h).2g(/ /g,n+" ")+n},/1q(4A|3Y)/i.1A(m.U)&&!/1q(3S|2D)/i.1A(m.W)&&(m.W+=" 2N"+n),l.U.1b(m.U,q),(k.U.38||k.4F)&&q(f)})},h=g.1I={2Q:7(a){a=(""+a).2g(/([A-Z])/," $1").2g(/6u/5x,"1l").2t(),V.x=(a.40(/R|1m/i)||a.40(/1l/)||["3z"])[0].2t(),V.y=(a.40(/9|1n|1l/i)||["3z"])[0].2t(),V.1j=a.3t(0).4U(/^(t|b)/)>-1?"y":"x",V.1t=7(){S V.1j==="y"?V.y+V.x:V.x+V.y},V.4W=7(){T a=V.x.2G(0,1),b=V.y.2G(0,1);S a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},11:7(c,d,e){7 l(a,b){f.R+=b*a.2X(),f.9+=b*a.31()}T f=c.11(),g=d,i=0,j=1C.39,k;X(g){6F{g.13("17")!=="6G"&&(k=g[0]===j?{R:1z(g.13("R"),10)||0,9:1z(g.13("9"),10)||0}:g.17(),f.R-=k.R+(1z(g.13("6I"),10)||0),f.9-=k.9+(1z(g.13("6M"),10)||0),i++);X(g[0]===j)34}3a(g=g.6O());(d[0]!==j||i>1)&&l(d,1),(h.2p<4.1&&h.2p>3.1||!h.2p&&e)&&l(a(b),-1)}S f},2p:52((""+(/5a.*6U ([0-6W]{1,3})|(5a 6Z).*70.*71/i.55(73.75)||[0,""])[1]).2g("5y","78").2g("7c","."))||e,2o:{1a:7(b,c){X(V.19){T d=V[0],e="1c",f=a.2r(d,"1i");X(b===e){X(1U.19<2)S a.1a(d,u);X(16 f==="1k"){f&&f.1p&&f.2l.12.1a===e&&f.2Y.1a&&f.3f("12.1o",c),a.2o["1a"+t].2n(V,1U),a.1a(d,u,a.1a(d,e));S V.3F(e)}}}},5f:7(b){T c=a([]),d="1c",e;e=a.2o["5f"+t].2n(V,1U).2J("[4Z]").1s(7(){a.1a(V,d,a.1a(V,u)),V.3I(u)}).7w();S e},1V:a.1B?f:7(b,c){a(V).1s(7(){c||(!b||a.2J(b,[V]).19)&&a("*",V).2q(V).1s(7(){a(V).5l("1V")})})}}},a.1s(h.2o,7(b,c){X(!c)S d;T e=a.2o[b+t]=a.2o[b];a.2o[b]=7(){S c.2n(V,1U)||e.2n(V,1U)}}),g.3N="2.0.7E",g.4m=0,g.5o="42 7I 3L 5t 2e 2N 3v".2L(" "),g.5u=7K,g.3s={4F:e,1w:e,4r:d,12:{1o:d,1a:"1c",1c:{1o:e,1G:e}},17:{1W:"9 R",2E:"1n 1m",14:e,20:e,1S:e,1R:{x:0,y:0,1q:d,2y:d,4v:"3P 3P"},22:7(b,c,d){a(V).86(c,{87:88,36:e})}},U:{14:e,1h:"3v",22:d,2x:3T,37:e,38:e},W:{14:e,1h:"2N",22:d,2x:0,2z:e,2a:e,2D:"3w",3J:e},18:{3e:"",2u:e,Y:e},4s:{1P:f,48:f,U:f,W:f,1H:f,2b:f,2h:f}},h.1D=7(a){T b=a.1I.1D;S"1k"===16 b?b:a.1I.1D=1K A(a)},h.1D.2T="1P",h.1D.3n=7(a){T b=a.12,c;b&&"1D"29 b&&(c=b.1D,16 c!=="1k"&&(c=a.12.1D={2s:c}),"3o"!==16 c.2B&&c.2B&&(c.2B=!!c.2B))},a.1r(d,g.3s,{12:{1D:{5J:d,2B:d}}}),h.1e=7(a){T b=a.1I.1e;S"1k"===16 b?b:a.1I.1e=1K C(a)},h.1e.2T="1P",h.1e.3n=7(a){T b=a.18,c;b&&"1e"29 b&&(c=a.18.1e,16 c!=="1k"&&(a.18.1e={1f:c}),/1t|3o/i.1A(16 c.1f)||(c.1f=d),16 c.Y!=="2F"&&2v c.Y,16 c.15!=="2F"&&2v c.15,16 c.1g!=="2F"&&c.1g!==d&&2v c.1g,16 c.11!=="2F"&&2v c.11)},a.1r(d,g.3s,{18:{1e:{1f:d,3E:e,Y:6,15:6,1g:d,11:0}}}),h.4b=7(b,c){7 l(a,b){T d=0,e=1,f=1,g=0,h=0,i=a.Y,j=a.15;3a(i>0&&j>0&&e>0&&f>0){i=1d.3G(i/2),j=1d.3G(j/2),c.x==="R"?e=i:c.x==="1m"?e=a.Y-i:e+=1d.3G(i/2),c.y==="9"?f=j:c.y==="1n"?f=a.15-j:f+=1d.3G(j/2),d=b.19;3a(d--){X(b.19<2)34;g=b[d][0]-a.11.R,h=b[d][1]-a.11.9,(c.x==="R"&&g>=e||c.x==="1m"&&g<=e||c.x==="1l"&&(ga.Y-e)||c.y==="9"&&h>=f||c.y==="1n"&&h<=f||c.y==="1l"&&(ha.15-f))&&b.72(d,1)}}S{R:b[0][0],9:b[0][1]}}b.24||(b=a(b));T d=b.1a("47").2t(),e=b.1a("7i").2L(","),f=[],g=a(\'2W[7o="#\'+b.7u("5s").1a("4d")+\'"]\'),h=g.11(),i={Y:0,15:0,11:{9:3A,1m:0,1n:0,R:3A}},j=0,k=0;h.R+=1d.3K((g.3C()-g.Y())/2),h.9+=1d.3K((g.3i()-g.15())/2);X(d==="5D"){j=e.19;3a(j--)k=[1z(e[--j],10),1z(e[j+1],10)],k[0]>i.11.1m&&(i.11.1m=k[0]),k[0]i.11.1n&&(i.11.1n=k[1]),k[1]35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(7(a,b,c){7 E(b){T c=V,d=b.2U,e=d.1y,f=".23-"+b.1w;a.1q(c,{1V:7(){d.23=a(\'<5M 1Y="1B-1y-23" 8i="0" 8j="-1" 8c="8a:\\\'\\\';" 1a="2I:38; 17:4P; z-8d:-1; 2J:8l(4u=0); -85-2J:"84:8o.8p.8q(8r=0)";">\'),d.23.3f(e),e.1c("4n"+f,c.1T)},1T:7(){T a=b.44("5l"),c=b.1H.1e,f=d.1e,g,h;h=1A(e.14("1g-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1f.1j==="x"?["Y","R"]:["15","9"],h[g[1]]-=f[g[0]]()),d.23.14(h).14(a)},2k:7(){d.23.1Z(),e.1v(f)}}),c.1V()}7 D(c){T f=V,g=c.2g.U.1D,h=c.2U,i=h.1y,j="#1i-2N",k=".8s",l=k+c.1w,m="1L-1D-1i",o=a(1F.3a),q;c.2Y.1D={"^U.1D.(2K|2l)$":7(){f.1V(),h.2N.1I(i.1L(":1N"))}},a.1q(f,{1V:7(){X(!g.2K)S f;q=f.2t(),i.19(m,d).1v(k).1v(l).1c("4e"+k+" 4f"+k,7(b,c,d){T e=b.33;e&&b.1x==="4f"&&/1r(2o|3X)/.1z(e.1x)&&a(e.3l).4a(q[0]).18?b.5g():f[b.1x.2e("1y","")](b,d)}).1c("5q"+k,7(a,b,c){q[0].1a.30=c}).1c("5r"+k,7(b){a("["+m+"]:1N").2x(i).5N().1i("2h",b)}),g.4G&&a(b).1v(l).1c("59"+l,7(a){a.8u===27&&i.1Q(p)&&c.W(a)}),g.2l&&h.2N.1v(l).1c("42"+l,7(a){i.1Q(p)&&c.W(a)});S f},2t:7(){T c=a(j);X(c.18){h.2N=c;S c}q=h.2N=a("<2a />",{1w:j.2G(1),2L:"<2a>",3L:7(){S e}}).57(a(n).5N()),a(b).1v(k).1c("2z"+k,7(){q.14({15:a(b).15(),Y:a(b).Y()})}).5m("2z");S q},1I:7(b,c,h){X(b&&b.3q())S f;T j=g.1U,k=c?"U":"W",p=q.1L(":1N"),r=a("["+m+"]:1N").2x(i),s;q||(q=f.2t());X(q.1L(":5n")&&p===c||!c&&r.18)S f;c?(q.14({R:0,9:0}),q.1S("8v",g.2l),o.7x("*","3Z"+l,7(b){a(b.13).4a(n)[0]!==i[0]&&a("a, :5P, 2V",i).2r(i).2h()})):o.5k("*","3Z"+l),q.4L(d,e),a.1R(j)?j.22(q,c):j===e?q[k]():q.5p(1A(h,10)||3T,c?1:0,7(){c||a(V).W()}),c||q.34(7(a){q.14({R:"",9:""}),a()});S f},U:7(a,b){S f.1I(a,d,b)},W:7(a,b){S f.1I(a,e,b)},2k:7(){T d=q;d&&(d=a("["+m+"]").2x(i).18<1,d?(h.2N.1Z(),a(b).1v(k)):h.2N.1v(k+c.1w),o.5k("*","3Z"+l));S i.3D(m).1v(k)}}),f.1V()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"15"],d=n[b?"15":"Y"],e=a.1t().2R("1k")>-1,f=c*(e?.5:1),g=1d.7q,h=1d.3R,i,j,k,l=1d.4g(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.4g(g(m[0],2)-g(p,2)),m[3]=1d.4g(g(m[1],2)-g(p,2)),i=l+m[2]+m[3]+(e?0:m[0]),j=i/l,k=[h(j*d),h(j*c)];S{15:k[b?0:1],Y:k[b?1:0]}}7 v(b){T c=k.1E&&b.y==="9",d=c?k.1E:k.12,e=a.2i.7M,f=e?"-5S-":a.2i.58?"-58-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1g-4D-"+g:"1g-"+g+"-4D");S 1A(d.14(h),10)||1A(l.14(h),10)||0}7 u(a,b,c){b=b?b:a[a.1j];T d=l.1Q(r),e=k.1E&&a.y==="9",f=e?k.1E:k.12,g="1g-"+b+"-Y",h;l.3u(r),h=1A(f.14(g),10),h=(c?h||1A(l.14(g),10):h)||0,l.1S(r,d);S h}7 t(f,g,h,l){X(k.1e){T n=a.1q({},i.1f),o=h.3O,p=b.2g.17.1T.4v.2M(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1f.2p!==d&&(q==="2A"&&n.1j==="x"&&o.R&&n.y!=="1k"?n.1j=n.1j==="x"?"y":"x":q==="3P"&&o.R&&(n.x=n.x==="1k"?o.R>0?"R":"1p":n.x==="R"?"1p":"R"),r==="2A"&&n.1j==="y"&&o.9&&n.x!=="1k"?n.1j=n.1j==="y"?"x":"y":r==="3P"&&o.9&&(n.y=n.y==="1k"?o.9>0?"9":"1n":n.y==="9"?"1n":"9"),n.1t()!==m.1f&&(m.9!==o.9||m.R!==o.R)&&i.3d(n,e)),t=i.17(n,o),t.1p!==c&&(t.R=-t.1p),t.1n!==c&&(t.9=-t.1n),t.46=1d.28(0,j.11);X(s.R=q==="2A"&&!!o.R)n.x==="1k"?u["31-R"]=s.x=t["31-R"]-o.R:(v=t.1p!==c?[o.R,-t.R]:[-o.R,t.R],(s.x=1d.28(v[0],v[1]))>v[0]&&(h.R-=o.R,s.R=e),u[t.1p!==c?"1p":"R"]=s.x);X(s.9=r==="2A"&&!!o.9)n.y==="1k"?u["31-9"]=s.y=t["31-9"]-o.9:(v=t.1n!==c?[o.9,-t.9]:[-o.9,t.9],(s.y=1d.28(v[0],v[1]))>v[0]&&(h.9-=o.9,s.9=e),u[t.1n!==c?"1n":"9"]=s.y);k.1e.14(u).1I(!(s.x&&s.y||n.x==="1k"&&s.y||n.y==="1k"&&s.x)),h.R-=t.R.3t?t.46:q!=="2A"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3t?t.46:r!=="2A"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1f=n.1t()}}T i=V,j=b.2g.1a.1e,k=b.2U,l=k.1y,m={9:0,R:0,1f:""},n={Y:j.Y,15:j.15},o={},p=j.1g||0,q=".1i-1e",s=!!(a("<4N />")[0]||{}).41;i.1f=f,i.3E=f,i.1g=p,i.11=j.11,i.2T=n,b.2Y.1e={"^17.21|1a.1e.(1f|3E|1g)$":7(){i.1V()||i.2k(),b.24()},"^1a.1e.(15|Y)$":7(){n={Y:j.Y,15:j.15},i.2t(),i.3d(),b.24()},"^12.1b.1o|1a.(3g|2s)$":7(){k.1e&&i.3d()}},a.1q(i,{1V:7(){T b=i.4E()&&(s||a.2i.3m);b&&(i.2t(),i.3d(),l.1v(q).1c("4n"+q,t));S b},4E:7(){T a=j.1f,c=b.2g.17,f=c.2D,g=c.21.1t?c.21.1t():c.21;X(a===e||g===e&&f===e)S e;a===d?i.1f=1J h.2O(g):a.1t||(i.1f=1J h.2O(a),i.1f.2p=d);S i.1f.1t()!=="5I"},4F:7(){T c,d,e,f=k.1e.14({5U:"",1g:""}),g=i.1f,h=g[g.1j],m="1g-"+h+"-3v",p="1g"+h.3t(0)+h.2G(1)+"5V",q=/6C?\\(0, 0, 0(, 0)?\\)|3W/i,s="6O-3v",t="3W",u=a(1F.3a).14("3v"),v=b.2U.12.14("3v"),w=k.1E&&(g.y==="9"||g.y==="1k"&&f.17().9+n.15/2+j.11",{"1Y":"1B-1y-1e"}).14({Y:b,15:c}).5Y(l),s?a("<4N />").3f(k.1e)[0].41("2d").4C():(d=\'<4x:49 60="0,0" 1a="2I:4S-38; 17:4P; 4Q:2w(#3y#4R);">\',k.1e.2L(d+d))},3d:7(b,c){T g=k.1e,l=g.61(),m=n.Y,q=n.15,r="45 63 ",t="45 64 3W",v=j.3E,x=1d.3R,y,z,A,C,D;b||(b=i.1f),v===e?v=b:(v=1J h.2O(v),v.1j=b.1j,v.x==="3A"?v.x=b.x:v.y==="3A"?v.y=b.y:v.x===v.y&&(v[b.1j]=b[b.1j])),y=v.1j,i.4F(),o.1g!=="3W"&&o.1g!=="#65"?(p=u(b,f,d),j.1g===0&&p>0&&(o.2B=o.1g),i.1g=p=j.1g!==d?j.1g:p):i.1g=p=0,A=B(v,m,q),i.2T=D=w(b),g.14(D),b.1j==="y"?C=[x(v.x==="R"?p:v.x==="1p"?D.Y-m-p:(D.Y-m)/2),x(v.y==="9"?D.15-q:0)]:C=[x(v.x==="R"?D.Y-m:0),x(v.y==="9"?p:v.y==="1n"?D.15-q-p:(D.15-q)/2)],s?(l.19(D),z=l[0].41("2d"),z.66(),z.4C(),z.68(0,0,4H,4H),z.69(C[0],C[1]),z.6a(),z.6b(A[0][0],A[0][1]),z.4K(A[1][0],A[1][1]),z.4K(A[2][0],A[2][1]),z.6c(),z.8t=o.2B,z.6d=o.1g,z.6e=p*2,z.6f="5A",z.6g=5F,p&&z.5H(),z.2B()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" 6h",C[2]=p&&/^(r|b)/i.1z(b.1t())?53(a.2i.3N,10)===8?2:1:0,l.14({6i:""+(v.1t().2R("1k")>-1),R:C[0]-C[2]*5L(y==="x"),9:C[1]-C[2]*5L(y==="y"),Y:m+p,15:q+p}).1s(7(b){T c=a(V);c[c.4M?"4M":"19"]({6k:m+p+" "+(q+p),6l:A,6m:o.2B,6n:!!b,6o:!b}).14({2I:p||b?"38":"4t"}),!b&&c.2L()===""&&c.2L(\'<4x:5H 6q="\'+p*2+\'45" 3v="\'+o.1g+\'" 6r="6s" 6t="5A" 1a="4Q:2w(#3y#4R); 2I:4S-38;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1e,f={},g=1d.28(0,j.11),h,l,m;X(j.1f===e||!c)S e;b=b||i.1f,h=b.1j,l=w(b),m=[b.x,b.y],h==="x"&&m.6u(),a.1s(m,7(a,c){T e,i;c==="1k"?(e=h==="y"?"R":"9",f[e]="50%",f["31-"+e]=-1d.3R(l[h==="y"?"Y":"15"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"Y":"15"],c.14({9:"",1n:"",R:"",1p:"",31:""}).14(f);S f},2k:7(){k.1e&&k.1e.1Z(),l.1v(q)}}),i.1V()}7 B(a,b,c){T d=1d.3K(b/2),e=1d.3K(c/2),f={5w:[[0,0],[b,c],[b,0]],4V:[[0,0],[b,0],[0,c]],5G:[[0,c],[b,0],[b,c]],4X:[[0,0],[0,c],[b,c]],6w:[[0,c],[d,0],[b,c]],7X:[[0,0],[b,0],[d,c]],6x:[[0,0],[b,e],[0,c]],6y:[[b,0],[b,c],[0,e]]};f.6z=f.5w,f.6A=f.4V,f.6B=f.5G,f.6D=f.4X;S f[a.1t()]}7 A(b){T c=V,f=b.2U.1y,g=b.2g.12.1C,h=".1i-1C",i=/<4o\\b[^<]*(?:(?!<\\/4o>)<[^<]*)*<\\/4o>/5y,j=d;b.2Y.1C={"^12.1C":7(a,b,d){b==="1C"&&(g=d),b==="2C"?c.1V():g&&g.2w?c.3I():f.1v(h)}},a.1q(c,{1V:7(){g&&g.2w&&f.1v(h)[g.2C?"7L":"1c"]("4e"+h,c.3I);S c},3I:7(d,h){7 p(a,c,d){b.3h("12.1o",c+": "+d),n()}7 o(c){l&&(c=a("<2a/>").3j(c.2e(i,"")).55(l)),b.3h("12.1o",c),n()}7 n(){m&&(f.14("4i",""),h=e)}X(d&&d.3q())S c;T j=g.2w.2R(" "),k=g.2w,l,m=g.2C&&!g.5K&&h;m&&f.14("4i","4j"),j>-1&&(l=k.2G(j),k=k.2G(0,j)),a.1C(a.1q({6E:o,5h:p,6F:b},g,{2w:k}));S c}}),c.1V()}7 z(b,c){T i,j,k,l,m=a(V),n=a(1F.3a),o=V===1F?n:m,p=m.2f?m.2f(c.2f):f,q=c.2f.1x==="7H"&&p?p[c.2f.4d]:f,r=m.2u(c.2f.4d||"7G");7F{r=16 r==="1t"?(1J 6I("S "+r))():r}7D(s){w("5j 5i 6K 6L 6M 2u: "+r)}l=a.1q(d,{},g.3s,c,16 r==="1l"?x(r):f,x(q||p)),j=l.17,l.1w=b;X("3p"===16 l.12.1o){k=m.19(l.12.19);X(l.12.19!==e&&k)l.12.1o=k;2j{w("5j 5i 6Q 12 4h 1y! 6R 1O 7v 1y 2K 6S: ",m);S e}}j.20===e&&(j.20=n),j.13===e&&(j.13=o),l.U.13===e&&(l.U.13=o),l.U.35===d&&(l.U.35=n),l.W.13===e&&(l.W.13=o),l.17.1P===d&&(l.17.1P=j.20),j.2D=1J h.2O(j.2D),j.21=1J h.2O(j.21);X(a.2u(V,"1i"))X(l.4r)m.1i("2k");2j X(l.4r===e)S e;a.19(V,"1b")&&(a.19(V,u,a.19(V,"1b")),V.3H("1b")),i=1J y(m,l,b,!!k),a.2u(V,"1i",i),m.1c("1Z.1i",7(){i.2k()});S i}7 y(c,s,t,w){7 Q(){T c=[s.U.13[0],s.W.13[0],y.1m&&F.1y[0],s.17.20[0],s.17.1P[0],b,1F];y.1m?a([]).6T(a.6U(c,7(a){S 16 a==="1l"})).1v(E):s.U.13.1v(E+"-2t")}7 P(){7 r(a){D.1L(":1N")&&y.24(a)}7 p(a){X(D.1Q(m))S e;1M(y.1u.25),y.1u.25=3e(7(){y.W(a)},s.W.25)}7 o(b){X(D.1Q(m))S e;T c=a(b.3l||b.13),d=c.4a(n)[0]===D[0],g=c[0]===h.U[0];1M(y.1u.U),1M(y.1u.W);f.13==="1r"&&d||s.W.2p&&(/1r(3S|2o|48)/.1z(b.1x)&&(d||g))?b.5g():s.W.2y>0?y.1u.W=3e(7(){y.W(b)},s.W.2y):y.W(b)}7 l(a){X(D.1Q(m))S e;h.U.2Q("1i-"+t+"-25"),1M(y.1u.U),1M(y.1u.W);T b=7(){y.1I(d,a)};s.U.2y>0?y.1u.U=3e(b,s.U.2y):b()}T f=s.17,h={U:s.U.13,W:s.W.13,1P:a(f.1P),1F:a(1F),37:a(b)},j={U:a.3U(""+s.U.1h).2M(" "),W:a.3U(""+s.W.1h).2M(" ")},k=a.2i.3m&&1A(a.2i.3N,10)===6;D.1c("3w"+E+" 39"+E,7(a){T b=a.1x==="3w";b&&y.2h(a),D.1S(q,b)}),s.W.2p&&(h.W=h.W.2r(D),D.1c("7p"+E,7(){D.1Q(m)||1M(y.1u.W)})),/1r(3S|2o)/i.1z(s.W.1h)?s.W.2o==="37"&&h.37.1c("5b"+E,7(a){/5a|4O/.1z(a.13)&&!a.3l&&y.W(a)}):/1r(4A|3X)/i.1z(s.U.1h)&&h.W.1c("39"+E,7(a){1M(y.1u.U)}),(""+s.W.1h).2R("54")>-1&&h.1F.1c("3L"+E,7(b){T d=a(b.13),e=!D.1Q(m)&&D.1L(":1N");d.6W(n).18===0&&d.2r(c).18>1&&y.W(b)}),"2F"===16 s.W.25&&(h.U.1c("1i-"+t+"-25",p),a.1s(g.5o,7(a,b){h.W.2r(F.1y).1c(b+E+"-25",p)})),a.1s(j.W,7(b,c){T d=a.6Y(c,j.U),e=a(h.W);d>-1&&e.2r(h.U).18===e.18||c==="54"?(h.U.1c(c+E,7(a){D.1L(":1N")?o(a):l(a)}),2m j.U[d]):h.W.1c(c+E,o)}),a.1s(j.U,7(a,b){h.U.1c(b+E,l)}),"2F"===16 s.W.3J&&h.U.1c("2b"+E,7(a){T b=G.3n||{},c=s.W.3J,d=1d.3i;(d(a.1K-b.1K)>=c||d(a.2c-b.2c)>=c)&&y.W(a)}),f.13==="1r"&&(h.U.1c("2b"+E,7(a){i={1K:a.1K,2c:a.2c,1x:"2b"}}),f.1T.1r&&(s.W.1h&&D.1c("39"+E,7(a){(a.3l||a.13)!==h.U[0]&&y.W(a)}),h.1F.1c("2b"+E,7(a){!D.1Q(m)&&D.1L(":1N")&&y.24(a||i)}))),(f.1T.2z||h.1P.18)&&(a.1h.6Z.2z?h.1P:h.37).1c("2z"+E,r),(h.1P.18||k&&D.14("17")==="2p")&&h.1P.1c("4p"+E,r)}7 O(b,d){7 g(b){7 g(f){1M(y.1u.2V[V]),a(V).1v(E),(c=c.2x(V)).18===0&&(y.2P(),d!==e&&y.24(G.1h),b())}T c;X((c=f.55("2V:2x([15]):2x([Y])")).18===0)S g.22(c);c.1s(7(b,c){(7 d(){X(c.15&&c.Y)S g.22(c);y.1u.2V[c]=3e(d,7j)})(),a(c).1c("5h"+E+" 3I"+E,g)})}T f=F.12;X(!y.1m||!b)S e;a.1R(b)&&(b=b.22(c,G.1h,y)||""),b.26&&b.18>0?f.5v().3j(b.14({2I:"38"})):f.2L(b),y.1m<0?D.34("43",g):(C=0,g(a.7g));S y}7 N(b,d){T f=F.1b;X(f&&b===e)J();2j X(!y.1m||!b)S e;a.1R(b)&&(b=b.22(c,G.1h,y)||""),b.26&&b.18>0?f.5v().3j(b.14({2I:"38"})):f.2L(b),y.2P(),d!==e&&y.1m&&D.1L(":1N")&&y.24(G.1h)}7 M(a){T b=F.1G,c=F.1b;X(!y.1m)S e;a?(c||L(),K()):b.1Z()}7 L(){T b=A+"-1b";F.1E&&J(),F.1E=a("<2a />",{"1Y":k+"-1E "+(s.1a.2s?"1B-2s-5d":"")}).3j(F.1b=a("<2a />",{1w:b,"1Y":k+"-1b","1X-4c":d})).57(F.12),s.12.1b.1G?K():y.1m&&y.2P()}7 K(){T b=s.12.1b.1G,c=16 b==="1t",d=c?b:"75 1y";F.1G&&F.1G.1Z(),b.26?F.1G=b:F.1G=a("",{"1Y":"1B-3x-3y "+(s.1a.2s?"":k+"-3G"),1b:d,"1X-76":d}).78(a("<79 />",{"1Y":"1B-3G 1B-3G-7b",2L:"&7c;"})),F.1G.3f(F.1E).19("4Z","1G").4B(7(b){a(V).1S("1B-3x-4B",b.1x==="3w")}).42(7(a){D.1Q(m)||y.W(a);S e}).1c("3L 59 5t 7e 5b",7(b){a(V).1S("1B-3x-7f 1B-3x-2h",b.1x.2G(-4)==="7h")}),y.2P()}7 J(){F.1b&&(F.1E.1Z(),F.1E=F.1b=F.1G=f,y.24())}7 I(){T a=s.1a.2s;D.1S(l,a).1S(o,!a),F.12.1S(l+"-12",a),F.1E&&F.1E.1S(l+"-5d",a),F.1G&&F.1G.1S(k+"-3G",!a)}7 H(a){T b=0,c,d=s,e=a.2M(".");3b(d=d[e[b++]])b0&&!a("#"+i).18&&(D[0].1w=i,F.12[0].1w=i+"-12",F.1b[0].1w=i+"-1b")},"^12.1o$":7(a,b,c){O(c)},"^12.1b.1o$":7(a,b,c){X(!c)S J();!F.1b&&c&&L(),N(c)},"^12.1b.1G$":7(a,b,c){M(c)},"^17.(21|2D)$":7(a,b,c){"1t"===16 c&&(a[b]=1J h.2O(c))},"^17.20$":7(a,b,c){y.1m&&D.3f(c)},"^U.36$":7(){y.1m?y.1I(d):y.1O(1)},"^1a.3g$":7(a,b,c){D.19("1Y",k+" 1i 1B-52-5e "+c)},"^1a.2s|12.1b":I,"^4s.(1O|U|48|W|2h|2l)$":7(b,c,d){D[(a.1R(d)?"":"7m")+"1c"]("1y"+c,d)},"^(U|W|17).(1h|13|2p|25|2o|3J|1P|1T)":7(){T a=s.17;D.19("4k",a.13==="1r"&&a.1T.1r),Q(),P()}},a.1q(y,{1O:7(b){X(y.1m)S y;T f=s.12.1b.1o,g=s.17,i=a.3c("7n");a.19(c[0],"1X-4y",A),D=F.1y=a("<2a/>",{1w:A,"1Y":k+" 1i 1B-52-5e "+o+" "+s.1a.3g,Y:s.1a.Y||"",4k:g.13==="1r"&&g.1T.1r,4Z:"7r","1X-7s":"7t","1X-4c":e,"1X-4y":A+"-12","1X-4j":d}).1S(m,G.2H).2u("1i",y).3f(s.17.20).3j(F.12=a("<2a />",{"1Y":k+"-12",1w:A+"-12","1X-4c":d})),y.1m=-1,C=1,f&&(L(),N(f)),O(s.12.1o,e),y.1m=d,I(),a.1s(s.4s,7(b,c){a.1R(c)&&D.1c(b==="1I"?"4e 4f":"1y"+b,c)}),a.1s(h,7(){V.2S==="1O"&&V(y)}),P(),D.34("43",7(a){i.33=G.1h,D.2Q(i,[y]),C=0,y.2P(),(s.U.36||b)&&y.1I(d,G.1h),a()});S y},44:7(a){T b,c;5x(a.2v()){3r"5l":b={15:D.3k(),Y:D.3B()};32;3r"11":b=h.11(D,s.17.20);32;3y:c=H(a.2v()),b=c[0][c[1]],b=b.1j?b.1t():b}S b},3h:7(b,c){7 m(a,b){T c,d,e;4h(c 29 k)4h(d 29 k[c])X(e=(1J 7y(d,"i")).56(a))b.4l(e),k[c][d].2n(y,b)}T g=/^17\\.(21|2D|1T|13|20)|1a|12|U\\.36/i,h=/^12\\.(1b|19)|1a/i,i=e,j=e,k=y.2Y,l;"1t"===16 b?(l=b,b={},b[l]=c):b=a.1q(d,{},b),a.1s(b,7(c,d){T e=H(c.2v()),f;f=e[0][e[1]],e[0][e[1]]="1l"===16 d&&d.7z?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1z(c)||i,j=h.1z(c)||j}),x(s),B=C=1,a.1s(b,m),B=C=0,D.1L(":1N")&&y.1m&&(i&&y.24(s.17.13==="1r"?f:G.1h),j&&y.2P());S y},1I:7(b,c){7 q(){b?(a.2i.3m&&D[0].1a.3H("2J"),D.14("7A","")):D.14({2I:"",4i:"",4u:"",R:"",9:""})}X(!y.1m)X(b)y.1O(1);2j S y;T g=b?"U":"W",h=s[g],j=D.1L(":1N"),k=!c||s[g].13.18<2||G.13[0]===c.13,l=s.17,m=s.12,o,p;(16 b).4U("3p|2F")&&(b=!j);X(!D.1L(":5n")&&j===b&&k)S y;X(c){X(/4A|3X/.1z(c.1x)&&/3S|2o/.1z(G.1h.1x)&&c.13===s.U.13[0]&&D.7B(c.3l).18)S y;G.1h=a.1q({},c)}p=a.3c("1y"+g),p.33=c?G.1h:f,D.2Q(p,[y,3T]);X(p.3q())S y;a.19(D[0],"1X-4j",!b),b?(G.3n=a.1q({},i),y.2h(c),a.1R(m.1o)&&O(m.1o,e),a.1R(m.1b.1o)&&N(m.1b.1o,e),!v&&l.13==="1r"&&l.1T.1r&&(a(1F).1c("2b.1i",7(a){i={1K:a.1K,2c:a.2c,1x:"2b"}}),v=d),y.24(c),h.35&&a(n,h.35).2x(D).1i("W",p)):(1M(y.1u.U),2m G.3n,v&&!a(n+\'[4k="7C"]:1N\',h.35).2x(D).18&&(a(1F).1v("2b.1i"),v=e),y.2l(c)),k&&D.4L(0,1),h.1U===e?(D[g](),q.22(D)):a.1R(h.1U)?(h.1U.22(D,y),D.34("43",7(a){q(),a()})):D.5p(3T,b?1:0,q),b&&h.13.2Q("1i-"+t+"-25");S y},U:7(a){S y.1I(d,a)},W:7(a){S y.1I(e,a)},2h:7(b){X(!y.1m)S y;T c=a(n),d=1A(D[0].1a.30,10),e=g.5u+c.18,f=a.1q({},b),h,i;D.1Q(p)||(i=a.3c("5q"),i.33=f,D.2Q(i,[y,e]),i.3q()||(d!==e&&(c.1s(7(){V.1a.30>d&&(V.1a.30=V.1a.30-1)}),c.2J("."+p).1i("2l",f)),D.3u(p)[0].1a.30=e));S y},2l:7(b){T c=a.1q({},b),d;D.4w(p),d=a.3c("5r"),d.33=c,D.2Q(d,[y]);S y},24:7(c,d){X(!y.1m||B)S y;B=1;T f=s.17.13,g=s.17,j=g.21,l=g.2D,m=g.1T,n=m.4v.2M(" "),o=D.3B(),p=D.3k(),q=0,r=0,t=a.3c("4n"),u=D.14("17")==="2p",v=g.1P,w={R:0,9:0},x=y.1H.1e,A={3M:n[0],3Y:n[1]||n[0],R:7(a){T b=A.3M==="2A",c=v.11.R+v.2W,d=j.x==="R"?o:j.x==="1p"?-o:-o/2,e=l.x==="R"?q:l.x==="1p"?-q:-q/2,f=x&&x.2T?x.2T.Y||0:0,g=x&&x.1f&&x.1f.1j==="x"&&!b?f:0,h=c-a+g,i=a+o-v.Y-c+g,k=d-(j.1j==="x"||j.x===j.y?e:0),n=j.x==="1k";b?(g=x&&x.1f&&x.1f.1j==="y"?f:0,k=(j.x==="R"?1:-1)*d-g,w.R+=h>0?h:i>0?-i:0,w.R=1d.28(v.11.R+(g&&x.1f.x==="1k"?x.11:0),a-k,1d.3Q(1d.28(v.11.R+v.Y,a+k),w.R))):(h>0&&(j.x!=="R"||i>0)?w.R-=k+(n?0:2*m.x):i>0&&(j.x!=="1p"||h>0)&&(w.R-=n?-k:k+2*m.x),w.R!==a&&n&&(w.R-=m.x),w.Ri&&(w.R=a));S w.R-a},9:7(a){T b=A.3Y==="2A",c=v.11.9+v.2Z,d=j.y==="9"?p:j.y==="1n"?-p:-p/2,e=l.y==="9"?r:l.y==="1n"?-r:-r/2,f=x&&x.2T?x.2T.15||0:0,g=x&&x.1f&&x.1f.1j==="y"&&!b?f:0,h=c-a+g,i=a+p-v.15-c+g,k=d-(j.1j==="y"||j.x===j.y?e:0),n=j.y==="1k";b?(g=x&&x.1f&&x.1f.1j==="x"?f:0,k=(j.y==="9"?1:-1)*d-g,w.9+=h>0?h:i>0?-i:0,w.9=1d.28(v.11.9+(g&&x.1f.x==="1k"?x.11:0),a-k,1d.3Q(1d.28(v.11.9+v.15,a+k),w.9))):(h>0&&(j.y!=="9"||i>0)?w.9-=k+(n?0:2*m.y):i>0&&(j.y!=="1n"||h>0)&&(w.9-=n?-k:k+2*m.y),w.9!==a&&n&&(w.9-=m.y),w.9<0&&-w.9>i&&(w.9=a));S w.9-a}};X(a.5O(f)&&f.18===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2j X(f==="1r"&&(c&&c.1K||G.1h.1K))l={x:"R",y:"9"},c=c&&(c.1x==="2z"||c.1x==="4p")?G.1h:c&&c.1K&&c.1x==="2b"?c:i&&(m.1r||!c||!c.1K)?{1K:i.1K,2c:i.2c}:!m.1r&&G.3n?G.3n:c,w={9:c.2c,R:c.1K};2j{f==="1h"?c&&c.13&&c.1x!=="4p"&&c.1x!=="2z"?f=G.13=a(c.13):f=G.13:G.13=a(f),f=a(f).7J(0);X(f.18===0)S y;f[0]===1F||f[0]===b?(q=h.2q?b.7N:f.Y(),r=h.2q?b.7O:f.15(),f[0]===b&&(w={9:!u||h.2q?(v||f).2Z():0,R:!u||h.2q?(v||f).2W():0})):f.1L("7P")&&h.4b?w=h.4b(f,l):f[0].7Q==="7R://7S.7T.7V/7W/3C"&&h.3C?w=h.3C(f,l):(q=f.3B(),r=f.3k(),w=h.11(f,g.20,u)),w.11&&(q=w.Y,r=w.15,w=w.11),w.R+=l.x==="1p"?q:l.x==="1k"?q/2:0,w.9+=l.y==="1n"?r:l.y==="1k"?r/2:0}w.R+=m.x+(j.x==="1p"?-o:j.x==="1k"?-o/2:0),w.9+=m.y+(j.y==="1n"?-p:j.y==="1k"?-p/2:0),v.26&&f[0]!==b&&f[0]!==z&&A.3Y+A.3M!=="7Y"?(v={5C:v,15:v[(v[0]===b?"h":"7Z")+"80"](),Y:v[(v[0]===b?"w":"81")+"82"](),2W:u?0:v.2W(),2Z:u?0:v.2Z(),11:v.11()||{R:0,9:0}},w.3O={R:A.3M!=="4t"?A.R(w.R):0,9:A.3Y!=="4t"?A.9(w.9):0}):w.3O={R:0,9:0},D.19("1Y",7(b,c){S a.19(V,"1Y").2e(/1B-1y-5B-\\w+/i,"")}).3u(k+"-5B-"+j.4W()),t.33=a.1q({},c),D.2Q(t,[y,w,v.5C||v]);X(t.3q())S y;2m w.3O,d===e||5D(w.R)||5D(w.9)||f==="1r"||!a.1R(g.1U)?D.14(w):a.1R(g.1U)&&(g.1U.22(D,y,a.1q({},w)),D.34(7(b){a(V).14({4u:"",15:""}),a.2i.3m&&V.1a.3H("2J"),b()})),B=0;S y},2P:7(){X(y.1m<1||C)S y;T a=s.17.20,b,c,d,e;C=1,s.1a.Y?D.14("Y",s.1a.Y):(D.14("Y","").3u(r),c=D.Y()+1,d=D.14("28-Y")||"",e=D.14("3Q-Y")||"",b=(d+e).2R("%")>-1?a.Y()/5F:0,d=(d.2R("%")>-1?b:1)*1A(d,10)||c,e=(e.2R("%")>-1?b:1)*1A(e,10)||0,c=d+e?1d.3Q(1d.28(c,e),d):c,D.14("Y",1d.3R(c)).4w(r)),C=0;S y},47:7(b){T c=m;"3p"!==16 b&&(b=!D.1Q(c)&&!G.2H),y.1m?(D.1S(c,b),a.19(D[0],"1X-2H",b)):G.2H=!!b;S y},89:7(){S y.47(e)},2k:7(){T b=c[0],d=a.19(b,u);y.1m&&(D.1Z(),a.1s(y.1H,7(){V.2k&&V.2k()})),1M(y.1u.U),1M(y.1u.W),Q(),a.8b(b,"1i"),d&&(a.19(b,"1b",d),c.3D(u)),c.3D("1X-4y").1v(".1i"),2m j[y.1w];S c}})}7 x(b){T c;X(!b||"1l"!==16 b)S e;"1l"!==16 b.2f&&(b.2f={1x:b.2f});X("12"29 b){X("1l"!==16 b.12||b.12.26)b.12={1o:b.12};c=b.12.1o||e,!a.1R(c)&&(!c&&!c.19||c.18<1||"1l"===16 c&&!c.26)&&(b.12.1o=e),"1b"29 b.12&&("1l"!==16 b.12.1b&&(b.12.1b={1o:b.12.1b}),c=b.12.1b.1o||e,!a.1R(c)&&(!c&&!c.19||c.18<1||"1l"===16 c&&!c.26)&&(b.12.1b.1o=e))}"17"29 b&&("1l"!==16 b.17&&(b.17={21:b.17,2D:b.17})),"U"29 b&&("1l"!==16 b.U&&(b.U.26?b.U={13:b.U}:b.U={1h:b.U})),"W"29 b&&("1l"!==16 b.W&&(b.W.26?b.W={13:b.W}:b.W={1h:b.W})),"1a"29 b&&("1l"!==16 b.1a&&(b.1a={3g:b.1a})),a.1s(h,7(){V.3o&&V.3o(b)});S b}7 w(){w.4z=w.4z||[],w.4z.4l(1W);X("1l"===16 3V){T a=3V[3V.5J?"5J":"8e"],b=8f.8g.4q.22(1W),c;16 1W[0]==="1t"&&(b[0]="8h: "+b[0]),c=a.2n?a.2n(3V,b):a(b)}}"8k 8m";T d=!0,e=!1,f=8n,g,h,i,j={},k="1B-1y",l="1B-2s",m="1B-3x-2H",n="2a.1i."+k,o=k+"-3y",p=k+"-2h",q=k+"-4B",r=k+"-5Q",s="-5R",t="5T",u="51",v;g=a.2E.1i=7(b,h,i){T j=(""+b).2v(),k=f,l=j==="47"?[d]:a.5W(1W).4q(1),m=l[l.18-1],n=V[0]?a.2u(V[0],"1i"):f;X(!1W.18&&n||j==="5X")S n;X("1t"===16 b){V.1s(7(){T b=a.2u(V,"1i");X(!b)S d;m&&m.5Z&&(b.2X.1h=m);X(j!=="4O"&&j!=="2g"||!h)b[j]&&b[j].2n(b[j],l);2j X(a.62(h)||i!==c)b.3h(h,i);2j{k=b.44(h);S e}});S k!==f?k:V}X("1l"===16 b||!1W.18){n=x(a.1q(d,{},b));S g.1c.22(V,n,m)}},g.1c=7(b,f){S V.1s(7(i){7 q(b){7 d(){o.1O(16 b==="1l"||k.U.36),l.U.2r(l.W).1v(n)}X(o.2X.2H)S e;o.2X.1h=a.1q({},b),o.2X.13=b?a(b.13):[c],k.U.2y>0?(1M(o.1u.U),o.1u.U=3e(d,k.U.2y),m.U!==m.W&&l.W.1c(m.W,7(){1M(o.1u.U)})):d()}T k,l,m,n,o,p;p=a.5O(b.1w)?b.1w[i]:b.1w,p=!p||p===e||p.18<1||j[p]?g.4m++:j[p]=p,n=".1i-"+p+"-2t",o=z.22(V,p,b);X(o===e)S d;k=o.2g,a.1s(h,7(){V.2S==="2S"&&V(o)}),l={U:k.U.13,W:k.W.13},m={U:a.3U(""+k.U.1h).2e(/ /g,n+" ")+n,W:a.3U(""+k.W.1h).2e(/ /g,n+" ")+n},/1r(4A|3X)/i.1z(m.U)&&!/1r(3S|2o)/i.1z(m.W)&&(m.W+=" 39"+n),l.U.1c(m.U,q),(k.U.36||k.4I)&&q(f)})},h=g.1H={2O:7(a){a=(""+a).2e(/([A-Z])/," $1").2e(/6v/5y,"1k").2v(),V.x=(a.40(/R|1p/i)||a.40(/1k/)||["3A"])[0].2v(),V.y=(a.40(/9|1n|1k/i)||["3A"])[0].2v(),V.1j=a.3t(0).4U(/^(t|b)/)>-1?"y":"x",V.1t=7(){S V.1j==="y"?V.y+V.x:V.x+V.y},V.4W=7(){T a=V.x.2G(0,1),b=V.y.2G(0,1);S a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},11:7(c,d,e){7 l(a,b){f.R+=b*a.2W(),f.9+=b*a.2Z()}T f=c.11(),g=d,i=0,j=1F.3a,k;X(g){6G{g.14("17")!=="6H"&&(k=g[0]===j?{R:1A(g.14("R"),10)||0,9:1A(g.14("9"),10)||0}:g.17(),f.R-=k.R+(1A(g.14("6J"),10)||0),f.9-=k.9+(1A(g.14("6N"),10)||0),i++);X(g[0]===j)32}3b(g=g.6P());(d[0]!==j||i>1)&&l(d,1),(h.2q<4.1&&h.2q>3.1||!h.2q&&e)&&l(a(b),-1)}S f},2q:53((""+(/5c.*6V ([0-6X]{1,3})|(5c 70).*71.*72/i.56(74.77)||[0,""])[1]).2e("5z","7a").2e("7d","."))||e,2E:{19:7(b,c){X(V.18){T d=V[0],e="1b",f=a.2u(d,"1i");X(b===e){X(1W.18<2)S a.19(d,u);X(16 f==="1l"){f&&f.1m&&f.2g.12.19===e&&f.2X.19&&f.3h("12.1o",c),a.2E["19"+t].2n(V,1W),a.19(d,u,a.19(d,e));S V.3D(e)}}}},5f:7(b){T c=a([]),d="1b",e;e=a.2E["5f"+t].2n(V,1W).2J("[51]").1s(7(){a.19(V,d,a.19(V,u)),V.3H(u)}).7w();S e},1Z:a.1B?f:7(b,c){a(V).1s(7(){c||(!b||a.2J(b,[V]).18)&&a("*",V).2r(V).1s(7(){a(V).5m("1Z")})})}}},a.1s(h.2E,7(b,c){X(!c)S d;T e=a.2E[b+t]=a.2E[b];a.2E[b]=7(){S c.2n(V,1W)||e.2n(V,1W)}}),g.3N="2.0.7E",g.4m=0,g.5o="42 7I 3L 5t 2b 39 3w".2M(" "),g.5u=7K,g.3s={4I:e,1w:e,4r:d,12:{1o:d,19:"1b",1b:{1o:e,1G:e}},17:{21:"9 R",2D:"1n 1p",13:e,20:e,1P:e,1T:{x:0,y:0,1r:d,2z:d,4v:"3P 3P"},1U:7(b,c,d){a(V).86(c,{87:88,34:e})}},U:{13:e,1h:"3w",1U:d,2y:3T,35:e,36:e},W:{13:e,1h:"39",1U:d,2y:0,2p:e,25:e,2o:"37",3J:e},1a:{3g:"",2s:e,Y:e},4s:{1O:f,48:f,U:f,W:f,1I:f,2h:f,2l:f}},h.1C=7(a){T b=a.1H.1C;S"1l"===16 b?b:a.1H.1C=1J A(a)},h.1C.2S="1O",h.1C.3o=7(a){T b=a.12,c;b&&"1C"29 b&&(c=b.1C,16 c!=="1l"&&(c=a.12.1C={2w:c}),"3p"!==16 c.2C&&c.2C&&(c.2C=!!c.2C))},a.1q(d,g.3s,{12:{1C:{5K:d,2C:d}}}),h.1e=7(a){T b=a.1H.1e;S"1l"===16 b?b:a.1H.1e=1J C(a)},h.1e.2S="1O",h.1e.3o=7(a){T b=a.1a,c;b&&"1e"29 b&&(c=a.1a.1e,16 c!=="1l"&&(a.1a.1e={1f:c}),/1t|3p/i.1z(16 c.1f)||(c.1f=d),16 c.Y!=="2F"&&2m c.Y,16 c.15!=="2F"&&2m c.15,16 c.1g!=="2F"&&c.1g!==d&&2m c.1g,16 c.11!=="2F"&&2m c.11)},a.1q(d,g.3s,{1a:{1e:{1f:d,3E:e,Y:6,15:6,1g:d,11:0}}}),h.4b=7(b,c){7 l(a,b){T d=0,e=1,f=1,g=0,h=0,i=a.Y,j=a.15;3b(i>0&&j>0&&e>0&&f>0){i=1d.3F(i/2),j=1d.3F(j/2),c.x==="R"?e=i:c.x==="1p"?e=a.Y-i:e+=1d.3F(i/2),c.y==="9"?f=j:c.y==="1n"?f=a.15-j:f+=1d.3F(j/2),d=b.18;3b(d--){X(b.18<2)32;g=b[d][0]-a.11.R,h=b[d][1]-a.11.9,(c.x==="R"&&g>=e||c.x==="1p"&&g<=e||c.x==="1k"&&(ga.Y-e)||c.y==="9"&&h>=f||c.y==="1n"&&h<=f||c.y==="1k"&&(ha.15-f))&&b.73(d,1)}}S{R:b[0][0],9:b[0][1]}}b.26||(b=a(b));T d=b.19("49").2v(),e=b.19("7i").2M(","),f=[],g=a(\'2V[7o="#\'+b.7u("5s").19("4d")+\'"]\'),h=g.11(),i={Y:0,15:0,11:{9:3z,1p:0,1n:0,R:3z}},j=0,k=0;h.R+=1d.3K((g.3B()-g.Y())/2),h.9+=1d.3K((g.3k()-g.15())/2);X(d==="5E"){j=e.18;3b(j--)k=[1A(e[--j],10),1A(e[j+1],10)],k[0]>i.11.1p&&(i.11.1p=k[0]),k[0]i.11.1n&&(i.11.1n=k[1]),k[1]