From 5e4fdd1dc6231a0fe5c96a81680838267a94ce70 Mon Sep 17 00:00:00 2001 From: Craig Michael Thompson Date: Fri, 8 Jul 2011 11:45:24 +0100 Subject: [PATCH] Modal event binding fix --- dist/jquery.qtip.basic.js | 2 +- dist/jquery.qtip.css | 2 +- dist/jquery.qtip.js | 6 +++--- dist/jquery.qtip.min.js | 4 ++-- dist/jquery.qtip.pack.js | 4 ++-- src/modal.js | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dist/jquery.qtip.basic.js b/dist/jquery.qtip.basic.js index 4f4128c0..b8117b50 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: Sun Jun 26 14:07:37 2011 +0100 +* Date: Tue Jul 5 17:30:39 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index c1cdb4ad..ef533395 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: Sun Jun 26 14:07:37 2011 +0100 +* Date: Tue Jul 5 17:30:39 2011 +0100 */ /* Core qTip styles */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 328ad08c..71652454 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: Sun Jun 26 14:07:37 2011 +0100 +* Date: Tue Jul 5 17:30:39 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -2900,7 +2900,7 @@ function Modal(api) } else { // Undelegate focus handler - docBody.undelegate('*', 'focus'+namespace); + docBody.undelegate('*', 'focusin'+namespace); } // Stop all animations @@ -2955,7 +2955,7 @@ function Modal(api) } // Undelegate focus handler - docBody.undelegate('*', 'focus'+namespace); + docBody.undelegate('*', 'focusin'+namespace); } // Remove bound events diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index 073d08b7..79c9870a 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: Sun Jun 26 14:07:37 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(a,b,c){var d=a.originalEvent;d&&a.type==="tooltiphide"&&/mouse(leave|enter)/.test(d.type)&&d.relatedTarget.closest(q[0]).length?a.preventDefault():f[a.type.replace("tooltip","")](a,c)}).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("*","focus"+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("*","focus"+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("mouse"+(s.hide.leave.indexOf("frame")>-1?"out":"leave")+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(b,c,d){a.attr(D[0],"class",k+" qtip ui-helper-reset "+d)},"^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.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.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=a.apply?a.apply(console,arguments):a(Array.prototype.slice.call(arguments))}"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(a,b,c){var d=a.originalEvent;d&&a.type==="tooltiphide"&&/mouse(leave|enter)/.test(d.type)&&d.relatedTarget.closest(q[0]).length?a.preventDefault():f[a.type.replace("tooltip","")](a,c)}).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("mouse"+(s.hide.leave.indexOf("frame")>-1?"out":"leave")+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(b,c,d){a.attr(D[0],"class",k+" qtip ui-helper-reset "+d)},"^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.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.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=a.apply?a.apply(console,arguments):a(Array.prototype.slice.call(arguments))}"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.2V,e=d.1w,f=".25-"+b.1y;a.1r(c,{1W:7(){d.25=a(\'<5K 1X="1B-1w-25" 8h="0" 8i="-1" 8d="8a:\\\'\\\';" 19="2P:2X; 17:4P; z-8e:-1; 2J:8l(4t=0); -86-2J:"85:8o.8p.8q(8r=0)";">\'),d.25.3g(e),e.1c("4o"+f,c.1S)},1S:7(){T a=b.43("5j"),c=b.1L.1e,f=d.1e,g,h;h=1z(e.14("1f-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1h.1j==="x"?["Y","R"]:["13","9"],h[g[1]]-=f[g[0]]()),d.25.14(h).14(a)},2k:7(){d.25.1Z(),e.1t(f)}}),c.1W()}7 D(c){T f=V,g=c.2h.U.1E,h=c.2V,i=h.1w,j="#1i-2K",k=".8s",l=k+c.1y,m="1M-1E-1i",o=a(1C.3a),q;c.2Z.1E={"^U.1E.(2L|2i)$":7(){f.1W(),h.2K.1I(i.1M(":1N"))}},a.1r(f,{1W:7(){X(!g.2L)S f;q=f.2D(),i.1a(m,d).1t(k).1t(l).1c("4d"+k+" 4f"+k,7(a,b,c){T d=a.34;d&&a.1x==="4f"&&/1q(2c|3T)/.1A(d.1x)&&d.3i.48(q[0]).18?a.5c():f[a.1x.2j("1w","")](a,c)}).1c("5o"+k,7(a,b,c){q[0].19.2T=c}).1c("5q"+k,7(b){a("["+m+"]:1N").2o(i).5L().1i("1V",b)}),g.4H&&a(b).1t(l).1c("58"+l,7(a){a.8u===27&&i.1Q(p)&&c.W(a)}),g.2i&&h.2K.1t(l).1c("4n"+l,7(a){i.1Q(p)&&c.W(a)});S f},2D:7(){T c=a(j);X(c.18){h.2K=c;S c}q=h.2K=a("<2b />",{1y:j.2H(1),2M:"<2b>",3M:7(){S e}}).55(a(n).5L()),a(b).1t(k).1c("2F"+k,7(){q.14({13:a(b).13(),Y:a(b).Y()})}).5k("2F");S q},1I:7(b,c,h){X(b&&b.3p())S f;T j=g.22,k=c?"U":"W",p=q.1M(":1N"),r=a("["+m+"]:1N").2o(i),s;q||(q=f.2D());X(q.1M(":5l")&&p===c||!c&&r.18)S f;c?(q.14({R:0,9:0}),q.1R("8v",g.2i),o.7y("*","5N"+l,7(b){a(b.15).48(n)[0]!==i[0]&&a("a, :7x, 2Y",i).2r(i).1V()})):o.4B("*","1V"+l),q.4L(d,e),a.1O(j)?j.21(q,c):j===e?q[k]():q.5n(1z(h,10)||3U,c?1:0,7(){c||a(V).W()}),c||q.35(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+"]").2o(i).18<1,d?(h.2K.1Z(),a(b).1t(k)):h.2K.1t(k+c.1y),o.4B("*","1V"+l));S i.3F(m).1t(k)}}),f.1W()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"13"],d=n[b?"13":"Y"],e=a.1u().2C("1l")>-1,f=c*(e?.5:1),g=1d.7q,h=1d.3S,i,j,k,l=1d.4b(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.4b(g(m[0],2)-g(p,2)),m[3]=1d.4b(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{13:k[b?0:1],Y:k[b?1:0]}}7 v(b){T c=k.1D&&b.y==="9",d=c?k.1D:k.12,e=a.2l.7M,f=e?"-5Q-":a.2l.57?"-57-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1f-4D-"+g:"1f-"+g+"-4D");S 1z(d.14(h),10)||1z(l.14(h),10)||0}7 u(a,b,c){b=b?b:a[a.1j];T d=l.1Q(r),e=k.1D&&a.y==="9",f=e?k.1D:k.12,g="1f-"+b+"-Y",h;l.3o(r),h=1z(f.14(g),10),h=(c?h||1z(l.14(g),10):h)||0,l.1R(r,d);S h}7 t(f,g,h,l){X(k.1e){T n=a.1r({},i.1h),o=h.3P,p=b.2h.17.1S.4u.2N(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1h.2A!==d&&(q==="2n"&&n.1j==="x"&&o.R&&n.y!=="1l"?n.1j=n.1j==="x"?"y":"x":q==="3Q"&&o.R&&(n.x=n.x==="1l"?o.R>0?"R":"1p":n.x==="R"?"1p":"R"),r==="2n"&&n.1j==="y"&&o.9&&n.x!=="1l"?n.1j=n.1j==="y"?"x":"y":r==="3Q"&&o.9&&(n.y=n.y==="1l"?o.9>0?"9":"1n":n.y==="9"?"1n":"9"),n.1u()!==m.1h&&(m.9!==o.9||m.R!==o.R)&&i.3b(n,e)),t=i.17(n,o),t.1p!==c&&(t.R=-t.1p),t.1n!==c&&(t.9=-t.1n),t.4a=1d.2a(0,j.11);X(s.R=q==="2n"&&!!o.R)n.x==="1l"?u["32-R"]=s.x=t["32-R"]-o.R:(v=t.1p!==c?[o.R,-t.R]:[-o.R,t.R],(s.x=1d.2a(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==="2n"&&!!o.9)n.y==="1l"?u["32-9"]=s.y=t["32-9"]-o.9:(v=t.1n!==c?[o.9,-t.9]:[-o.9,t.9],(s.y=1d.2a(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==="1l"&&s.y||n.y==="1l"&&s.x)),h.R-=t.R.3r?t.4a:q!=="2n"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3r?t.4a:r!=="2n"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1h=n.1u()}}T i=V,j=b.2h.19.1e,k=b.2V,l=k.1w,m={9:0,R:0,1h:""},n={Y:j.Y,13:j.13},o={},p=j.1f||0,q=".1i-1e",s=!!(a("<4N />")[0]||{}).40;i.1h=f,i.3E=f,i.1f=p,i.11=j.11,i.31=n,b.2Z.1e={"^17.20|19.1e.(1h|3E|1f)$":7(){i.1W()||i.2k(),b.24()},"^19.1e.(13|Y)$":7(){n={Y:j.Y,13:j.13},i.2D(),i.3b(),b.24()},"^12.1b.1o|19.(3d|2s)$":7(){k.1e&&i.3b()}},a.1r(i,{1W:7(){T b=i.4E()&&(s||a.2l.3j);b&&(i.2D(),i.3b(),l.1t(q).1c("4o"+q,t));S b},4E:7(){T a=j.1h,c=b.2h.17,f=c.2x,g=c.20.1u?c.20.1u():c.20;X(a===e||g===e&&f===e)S e;a===d?i.1h=1K h.2Q(g):a.1u||(i.1h=1K h.2Q(a),i.1h.2A=d);S i.1h.1u()!=="5G"},4G:7(){T c,d,e,f=k.1e.14({5S:"",1f:""}),g=i.1h,h=g[g.1j],m="1f-"+h+"-3z",p="1f"+h.3r(0)+h.2H(1)+"5T",q=/6A?\\(0, 0, 0(, 0)?\\)|3Y/i,s="6M-3z",t="3Y",u=a(1C.3a).14("3z"),v=b.2V.12.14("3z"),w=k.1D&&(g.y==="9"||g.y==="1l"&&f.17().9+n.13/2+j.11",{"1X":"1B-1w-1e"}).14({Y:b,13:c}).5W(l),s?a("<4N />").3g(k.1e)[0].40("2d").4C():(d=\'<4w:45 5Y="0,0" 19="2P:4S-2X; 17:4P; 4Q:2t(#3y#4R);">\',k.1e.2M(d+d))},3b:7(b,c){T g=k.1e,l=g.5Z(),m=n.Y,q=n.13,r="44 61 ",t="44 62 3Y",v=j.3E,x=1d.3S,y,z,A,C,D;b||(b=i.1h),v===e?v=b:(v=1K h.2Q(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.4G(),o.1f!=="3Y"&&o.1f!=="#63"?(p=u(b,f,d),j.1f===0&&p>0&&(o.2z=o.1f),i.1f=p=j.1f!==d?j.1f:p):i.1f=p=0,A=B(v,m,q),i.31=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.13-q:0)]:C=[x(v.x==="R"?D.Y-m:0),x(v.y==="9"?p:v.y==="1n"?D.13-q-p:(D.13-q)/2)],s?(l.1a(D),z=l[0].40("2d"),z.64(),z.4C(),z.66(0,0,4I,4I),z.67(C[0],C[1]),z.68(),z.69(A[0][0],A[0][1]),z.4K(A[1][0],A[1][1]),z.4K(A[2][0],A[2][1]),z.6a(),z.8t=o.2z,z.6b=o.1f,z.6c=p*2,z.6d="5y",z.6e=5D,p&&z.5F(),z.2z()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" 6f",C[2]=p&&/^(r|b)/i.1A(b.1u())?52(a.2l.3N,10)===8?2:1:0,l.14({6g:""+(v.1u().2C("1l")>-1),R:C[0]-C[2]*5I(y==="x"),9:C[1]-C[2]*5I(y==="y"),Y:m+p,13:q+p}).1s(7(b){T c=a(V);c[c.4M?"4M":"1a"]({6i:m+p+" "+(q+p),6j:A,6k:o.2z,6l:!!b,6m:!b}).14({2P:p||b?"2X":"4s"}),!b&&c.2M()===""&&c.2M(\'<4w:5F 6o="\'+p*2+\'44" 3z="\'+o.1f+\'" 6p="6q" 6r="5y" 19="4Q:2t(#3y#4R); 2P:4S-2X;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1e,f={},g=1d.2a(0,j.11),h,l,m;X(j.1h===e||!c)S e;b=b||i.1h,h=b.1j,l=w(b),m=[b.x,b.y],h==="x"&&m.6s(),a.1s(m,7(a,c){T e,i;c==="1l"?(e=h==="y"?"R":"9",f[e]="50%",f["32-"+e]=-1d.3S(l[h==="y"?"Y":"13"]/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":"13"],c.14({9:"",1n:"",R:"",1p:"",32:""}).14(f);S f},2k:7(){k.1e&&k.1e.1Z(),l.1t(q)}}),i.1W()}7 B(a,b,c){T d=1d.3L(b/2),e=1d.3L(c/2),f={5u:[[0,0],[b,c],[b,0]],4V:[[0,0],[b,0],[0,c]],5E:[[0,c],[b,0],[b,c]],4X:[[0,0],[0,c],[b,c]],6u:[[0,c],[d,0],[b,c]],7X:[[0,0],[b,0],[d,c]],6v:[[0,0],[b,e],[0,c]],6w:[[b,0],[b,c],[0,e]]};f.6x=f.5u,f.6y=f.4V,f.6z=f.5E,f.6B=f.4X;S f[a.1u()]}7 A(b){T c=V,f=b.2V.1w,g=b.2h.12.1F,h=".1i-1F",i=/<4j\\b[^<]*(?:(?!<\\/4j>)<[^<]*)*<\\/4j>/5w,j=d;b.2Z.1F={"^12.1F":7(a,b,d){b==="1F"&&(g=d),b==="2B"?c.1W():g&&g.2t?c.3J():f.1t(h)}},a.1r(c,{1W:7(){g&&g.2t&&f.1t(h)[g.2B?"7L":"1c"]("4d"+h,c.3J);S c},3J:7(d,h){7 p(a,c,d){b.3e("12.1o",c+": "+d),n()}7 o(c){l&&(c=a("<2b/>").3f(c.2j(i,"")).5b(l)),b.3e("12.1o",c),n()}7 n(){m&&(f.14("4h",""),h=e)}X(d&&d.3p())S c;T j=g.2t.2C(" "),k=g.2t,l,m=g.2B&&!g.5J&&h;m&&f.14("4h","4i"),j>-1&&(l=k.2H(j),k=k.2H(0,j)),a.1F(a.1r({6C:o,5f:p,6D:b},g,{2t:k}));S c}}),c.1W()}7 z(b,c){T i,j,k,l,m=a(V),n=a(1C.3a),o=V===1C?n:m,p=m.2m?m.2m(c.2m):f,q=c.2m.1x==="7H"&&p?p[c.2m.4e]:f,r=m.2u(c.2m.4e||"7G");7F{r=16 r==="1u"?(1K 6G("S "+r))():r}7D(s){w("5h 5i 6I 6J 6K 2u: "+r)}l=a.1r(d,{},g.3s,c,16 r==="1k"?x(r):f,x(q||p)),j=l.17,l.1y=b;X("3n"===16 l.12.1o){k=m.1a(l.12.1a);X(l.12.1a!==e&&k)l.12.1o=k;2f{w("5h 5i 6O 12 4g 1w! 6P 1P 7v 1w 2L 6Q: ",m);S e}}j.23===e&&(j.23=n),j.15===e&&(j.15=o),l.U.15===e&&(l.U.15=o),l.U.36===d&&(l.U.36=n),l.W.15===e&&(l.W.15=o),l.17.1T===d&&(l.17.1T=j.23),j.2x=1K h.2Q(j.2x),j.20=1K h.2Q(j.20);X(a.2u(V,"1i"))X(l.4q)m.1i("2k");2f X(l.4q===e)S e;a.1a(V,"1b")&&(a.1a(V,u,a.1a(V,"1b")),V.3I("1b")),i=1K 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.15[0],s.W.15[0],y.1m&&F.1w[0],s.17.23[0],s.17.1T[0],b,1C];y.1m?a([]).6R(a.6S(c,7(a){S 16 a==="1k"})).1t(E):s.U.15.1t(E+"-2D")}7 P(){7 r(a){D.1M(":1N")&&y.24(a)}7 p(a){X(D.1Q(m))S e;1J(y.1v.26),y.1v.26=3c(7(){y.W(a)},s.W.26)}7 o(b){X(D.1Q(m))S e;T c=a(b.3i||b.15),d=c.48(n)[0]===D[0],g=c[0]===h.U[0];1J(y.1v.U),1J(y.1v.W);f.15==="1q"&&d||s.W.2A&&(/1q(3t|2c|46)/.1A(b.1x)&&(d||g))?b.5c():s.W.2y>0?y.1v.W=3c(7(){y.W(b)},s.W.2y):y.W(b)}7 l(a){X(D.1Q(m))S e;h.U.2R("1i-"+t+"-26"),1J(y.1v.U),1J(y.1v.W);T b=7(){y.1I(d,a)};s.U.2y>0?y.1v.U=3c(b,s.U.2y):b()}T f=s.17,h={U:s.U.15,W:s.W.15,1T:a(f.1T),1C:a(1C),3w:a(b)},j={U:a.3X(""+s.U.1g).2N(" "),W:a.3X(""+s.W.1g).2N(" ")},k=a.2l.3j&&1z(a.2l.3N,10)===6;D.1c("3v"+E+" 38"+E,7(a){T b=a.1x==="3v";b&&y.1V(a),D.1R(q,b)}),s.W.2A&&(h.W=h.W.2r(D),D.1c("7p"+E,7(){D.1Q(m)||1J(y.1v.W)})),/1q(3t|2c)/i.1A(s.W.1g)?s.W.2c&&h.3w.1c("1q"+(s.W.2c.2C("6U")>-1?"3t":"2c")+E,7(a){/56|4O/.1A(a.15)&&!a.3i&&y.W(a)}):/1q(4z|3T)/i.1A(s.U.1g)&&h.W.1c("38"+E,7(a){1J(y.1v.U)}),(""+s.W.1g).2C("53")>-1&&h.1C.1c("3M"+E,7(b){T d=a(b.15),e=!D.1Q(m)&&D.1M(":1N");d.6W(n).18===0&&d.2r(c).18>1&&y.W(b)}),"2G"===16 s.W.26&&(h.U.1c("1i-"+t+"-26",p),a.1s(g.5m,7(a,b){h.W.2r(F.1w).1c(b+E+"-26",p)})),a.1s(j.W,7(b,c){T d=a.6X(c,j.U),e=a(h.W);d>-1&&e.2r(h.U).18===e.18||c==="53"?(h.U.1c(c+E,7(a){D.1M(":1N")?o(a):l(a)}),2E j.U[d]):h.W.1c(c+E,o)}),a.1s(j.U,7(a,b){h.U.1c(b+E,l)}),"2G"===16 s.W.3D&&h.U.1c("2g"+E,7(a){T b=G.3l||{},c=s.W.3D,d=1d.3u;(d(a.1H-b.1H)>=c||d(a.2e-b.2e)>=c)&&y.W(a)}),f.15==="1q"&&(h.U.1c("2g"+E,7(a){i={1H:a.1H,2e:a.2e,1x:"2g"}}),f.1S.1q&&(s.W.1g&&D.1c("38"+E,7(a){(a.3i||a.15)!==h.U[0]&&y.W(a)}),h.1C.1c("2g"+E,7(a){!D.1Q(m)&&D.1M(":1N")&&y.24(a||i)}))),(f.1S.2F||h.1T.18)&&(a.1g.6Y.2F?h.1T:h.3w).1c("2F"+E,r),(h.1T.18||k&&D.14("17")==="2A")&&h.1T.1c("4p"+E,r)}7 O(b,d){7 g(b){7 g(f){1J(y.1v.2Y[V]),a(V).1t(E),(c=c.2o(V)).18===0&&(y.2O(),d!==e&&y.24(G.1g),b())}T c;X((c=f.5b("2Y:2o([13]):2o([Y])")).18===0)S g.21(c);c.1s(7(b,c){(7 d(){X(c.13&&c.Y)S g.21(c);y.1v.2Y[c]=3c(d,7i)})(),a(c).1c("5f"+E+" 3J"+E,g)})}T f=F.12;X(!y.1m||!b)S e;a.1O(b)&&(b=b.21(c,G.1g,y)||""),b.28&&b.18>0?f.54().3f(b.14({2P:"2X"})):f.2M(b),y.1m<0?D.35("42",g):(C=0,g(a.73));S y}7 N(b,d){T f=F.1b;X(f&&b===e)J();2f X(!y.1m||!b)S e;a.1O(b)&&(b=b.21(c,G.1g,y)||""),b.28&&b.18>0?f.54().3f(b.14({2P:"2X"})):f.2M(b),y.2O(),d!==e&&y.1m&&D.1M(":1N")&&y.24(G.1g)}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.1D&&J(),F.1D=a("<2b />",{"1X":k+"-1D "+(s.19.2s?"1B-2s-5a":"")}).3f(F.1b=a("<2b />",{1y:b,"1X":k+"-1b","1Y-4c":d})).55(F.12),s.12.1b.1G?K():y.1m&&y.2O()}7 K(){T b=s.12.1b.1G,c=16 b==="1u",d=c?b:"76 1w";F.1G&&F.1G.1Z(),b.28?F.1G=b:F.1G=a("",{"1X":"1B-3x-3y "+(s.19.2s?"":k+"-3H"),1b:d,"1Y-77":d}).78(a("<7a />",{"1X":"1B-3H 1B-3H-7b",2M:"&7c;"})),F.1G.3g(F.1D).1a("4Z","1G").4A(7(b){a(V).1R("1B-3x-4A",b.1x==="3v")}).4n(7(a){D.1Q(m)||y.W(a);S e}).1c("3M 58 5r 7e 7f",7(b){a(V).1R("1B-3x-7g 1B-3x-1V",b.1x.2H(-4)==="7j")}),y.2O()}7 J(){F.1b&&(F.1D.1Z(),F.1D=F.1b=F.1G=f,y.24())}7 I(){T a=s.19.2s;D.1R(l,a).1R(o,!a),F.12.1R(l+"-12",a),F.1D&&F.1D.1R(l+"-5a",a),F.1G&&F.1G.1R(k+"-3H",!a)}7 H(a){T b=0,c,d=s,e=a.2N(".");39(d=d[e[b++]])b0&&!a("#"+i).18&&(D[0].1y=i,F.12[0].1y=i+"-12",F.1b[0].1y=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.(20|2x)$":7(a,b,c){"1u"===16 c&&(a[b]=1K h.2Q(c))},"^17.23$":7(a,b,c){y.1m&&D.3g(c)},"^U.37$":7(){y.1m?y.1I(d):y.1P(1)},"^19.3d$":7(b,c,d){a.1a(D[0],"1X",k+" 1i 1B-5e-51 "+d)},"^19.2s|12.1b":I,"^4r.(1P|U|46|W|1V|2i)$":7(b,c,d){D[(a.1O(d)?"":"7m")+"1c"]("1w"+c,d)},"^(U|W|17).(1g|15|2A|26|2c|3D|1T|1S)":7(){T a=s.17;D.1a("4l",a.15==="1q"&&a.1S.1q),Q(),P()}},a.1r(y,{1P:7(b){X(y.1m)S y;T f=s.12.1b.1o,g=s.17,i=a.3k("7o");a.1a(c[0],"1Y-4x",A),D=F.1w=a("<2b/>",{1y:A,"1X":k+" 1i 1B-5e-51 "+o+" "+s.19.3d,Y:s.19.Y||"",4l:g.15==="1q"&&g.1S.1q,4Z:"7r","1Y-7s":"7u","1Y-4c":e,"1Y-4x":A+"-12","1Y-4i":d}).1R(m,G.2I).2u("1i",y).3g(s.17.23).3f(F.12=a("<2b />",{"1X":k+"-12",1y:A+"-12","1Y-4c":d})),y.1m=-1,C=1,f&&(L(),N(f)),O(s.12.1o,e),y.1m=d,I(),a.1s(s.4r,7(b,c){a.1O(c)&&D.1c(b==="1I"?"4d 4f":"1w"+b,c)}),a.1s(h,7(){V.2S==="1P"&&V(y)}),P(),D.35("42",7(a){i.34=G.1g,D.2R(i,[y]),C=0,y.2O(),(s.U.37||b)&&y.1I(d,G.1g),a()});S y},43:7(a){T b,c;5v(a.2v()){3q"5j":b={13:D.3h(),Y:D.3C()};33;3q"11":b=h.11(D,s.17.23);33;3y:c=H(a.2v()),b=c[0][c[1]],b=b.1j?b.1u():b}S b},3e:7(b,c){7 m(a,b){T c,d,e;4g(c 29 k)4g(d 29 k[c])X(e=(1K 7z(d,"i")).5t(a))b.4k(e),k[c][d].2p(y,b)}T g=/^17\\.(20|2x|1S|15|23)|19|12|U\\.37/i,h=/^12\\.(1b|1a)|19/i,i=e,j=e,k=y.2Z,l;"1u"===16 b?(l=b,b={},b[l]=c):b=a.1r(d,{},b),a.1s(b,7(c,d){T e=H(c.2v()),f;f=e[0][e[1]],e[0][e[1]]="1k"===16 d&&d.7A?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.1M(":1N")&&y.1m&&(i&&y.24(s.17.15==="1q"?f:G.1g),j&&y.2O());S y},1I:7(b,c){7 q(){b?(a.2l.3j&&D[0].19.3I("2J"),D.14("7B","")):D.14({2P:"",4h:"",4t:"",R:"",9:""})}X(!y.1m)X(b)y.1P(1);2f S y;T g=b?"U":"W",h=s[g],j=D.1M(":1N"),k=!c||s[g].15.18<2||G.15[0]===c.15,l=s.17,m=s.12,o,p;(16 b).4U("3n|2G")&&(b=!j);X(!D.1M(":5l")&&j===b&&k)S y;X(c){X(/4z|3T/.1A(c.1x)&&/3t|2c/.1A(G.1g.1x)&&c.15===s.U.15[0]&&D.7C(c.3i).18)S y;G.1g=a.1r({},c)}p=a.3k("1w"+g),p.34=c?G.1g:f,D.2R(p,[y,3U]);X(p.3p())S y;a.1a(D[0],"1Y-4i",!b),b?(G.3l=a.1r({},i),y.1V(c),a.1O(m.1o)&&O(m.1o,e),a.1O(m.1b.1o)&&N(m.1b.1o,e),!v&&l.15==="1q"&&l.1S.1q&&(a(1C).1c("2g.1i",7(a){i={1H:a.1H,2e:a.2e,1x:"2g"}}),v=d),y.24(c),h.36&&a(n,h.36).2o(D).1i("W",p)):(1J(y.1v.U),2E G.3l,v&&!a(n+\'[4l="7I"]:1N\',h.36).2o(D).18&&(a(1C).1t("2g.1i"),v=e),y.2i(c)),k&&D.4L(0,1),h.22===e?(D[g](),q.21(D)):a.1O(h.22)?(h.22.21(D,y),D.35("42",7(a){q(),a()})):D.5n(3U,b?1:0,q),b&&h.15.2R("1i-"+t+"-26");S y},U:7(a){S y.1I(d,a)},W:7(a){S y.1I(e,a)},1V:7(b){X(!y.1m)S y;T c=a(n),d=1z(D[0].19.2T,10),e=g.5s+c.18,f=a.1r({},b),h,i;D.1Q(p)||(i=a.3k("5o"),i.34=f,D.2R(i,[y,e]),i.3p()||(d!==e&&(c.1s(7(){V.19.2T>d&&(V.19.2T=V.19.2T-1)}),c.2J("."+p).1i("2i",f)),D.3o(p)[0].19.2T=e));S y},2i:7(b){T c=a.1r({},b),d;D.4v(p),d=a.3k("5q"),d.34=c,D.2R(d,[y]);S y},24:7(c,d){X(!y.1m||B)S y;B=1;T f=s.17.15,g=s.17,j=g.20,l=g.2x,m=g.1S,n=m.4u.2N(" "),o=D.3C(),p=D.3h(),q=0,r=0,t=a.3k("4o"),u=D.14("17")==="2A",v=g.1T,w={R:0,9:0},x=y.1L.1e,A={3V:n[0],3O:n[1]||n[0],R:7(a){T b=A.3V==="2n",c=v.11.R+v.2U,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.31?x.31.Y||0:0,g=x&&x.1h&&x.1h.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.1h.1j==="y"?f:0,k=(j.x==="R"?1:-1)*d-g,w.R+=h>0?h:i>0?-i:0,w.R=1d.2a(v.11.R+(g&&x.1h.x==="1l"?x.11:0),a-k,1d.3R(1d.2a(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.3O==="2n",c=v.11.9+v.30,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.31?x.31.13||0:0,g=x&&x.1h&&x.1h.1j==="y"&&!b?f:0,h=c-a+g,i=a+p-v.13-c+g,k=d-(j.1j==="y"||j.x===j.y?e:0),n=j.y==="1l";b?(g=x&&x.1h.1j==="x"?f:0,k=(j.y==="9"?1:-1)*d-g,w.9+=h>0?h:i>0?-i:0,w.9=1d.2a(v.11.9+(g&&x.1h.x==="1l"?x.11:0),a-k,1d.3R(1d.2a(v.11.9+v.13,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.5M(f)&&f.18===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2f X(f==="1q"&&(c&&c.1H||G.1g.1H))l={x:"R",y:"9"},c=c&&(c.1x==="2F"||c.1x==="4p")?G.1g:c&&c.1H&&c.1x==="2g"?c:i&&(m.1q||!c||!c.1H)?{1H:i.1H,2e:i.2e}:!m.1q&&G.3l?G.3l:c,w={9:c.2e,R:c.1H};2f{f==="1g"?c&&c.15&&c.1x!=="4p"&&c.1x!=="2F"?f=G.15=a(c.15):f=G.15:G.15=a(f),f=a(f).7N(0);X(f.18===0)S y;f[0]===1C||f[0]===b?(q=h.2q?b.7O:f.Y(),r=h.2q?b.7P:f.13(),f[0]===b&&(w={9:!u||h.2q?(v||f).30():0,R:!u||h.2q?(v||f).2U():0})):f.1M("7Q")&&h.49?w=h.49(f,l):f[0].7R==="7S://7T.7V.7W/7Y/3K"&&h.3K?w=h.3K(f,l):(q=f.3C(),r=f.3h(),w=h.11(f,g.23,u)),w.11&&(q=w.Y,r=w.13,w=w.11),w.R+=l.x==="1p"?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==="1p"?-o:j.x==="1l"?-o/2:0),w.9+=m.y+(j.y==="1n"?-p:j.y==="1l"?-p/2:0),v.28&&f[0]!==b&&f[0]!==z&&A.3O+A.3V!=="7Z"?(v={5A:v,13:v[(v[0]===b?"h":"80")+"81"](),Y:v[(v[0]===b?"w":"82")+"83"](),2U:u?0:v.2U(),30:u?0:v.30(),11:v.11()||{R:0,9:0}},w.3P={R:A.3V!=="4s"?A.R(w.R):0,9:A.3O!=="4s"?A.9(w.9):0}):w.3P={R:0,9:0},D.1a("1X",7(b,c){S a.1a(V,"1X").2j(/1B-1w-5z-\\w+/i,"")}).3o(k+"-5z-"+j.4W()),t.34=a.1r({},c),D.2R(t,[y,w,v.5A||v]);X(t.3p())S y;2E w.3P,d===e||5B(w.R)||5B(w.9)||f==="1q"||!a.1O(g.22)?D.14(w):a.1O(g.22)&&(g.22.21(D,y,a.1r({},w)),D.35(7(b){a(V).14({4t:"",13:""}),a.2l.3j&&V.19.3I("2J"),b()})),B=0;S y},2O:7(){X(y.1m<1||C)S y;T a=s.17.23,b,c,d,e;C=1,s.19.Y?D.14("Y",s.19.Y):(D.14("Y","").3o(r),c=D.Y()+1,d=D.14("2a-Y")||"",e=D.14("3R-Y")||"",b=(d+e).2C("%")>-1?a.Y()/5D:0,d=(d.2C("%")>-1?b:1)*1z(d,10)||c,e=(e.2C("%")>-1?b:1)*1z(e,10)||0,c=d+e?1d.3R(1d.2a(c,e),d):c,D.14("Y",1d.3S(c)).4v(r)),C=0;S y},47:7(b){T c=m;"3n"!==16 b&&(b=!D.1Q(c)&&!G.2I),y.1m?(D.1R(c,b),a.1a(D[0],"1Y-2I",b)):G.2I=!!b;S y},8b:7(){S y.47(e)},2k:7(){T b=c[0],d=a.1a(b,u);y.1m&&(D.1Z(),a.1s(y.1L,7(){V.2k&&V.2k()})),1J(y.1v.U),1J(y.1v.W),Q(),a.8c(b,"1i"),d&&(a.1a(b,"1b",d),c.3F(u)),c.3F("1Y-4x").1t(".1i"),2E j[y.1y];S c}})}7 x(b){T c;X(!b||"1k"!==16 b)S e;"1k"!==16 b.2m&&(b.2m={1x:b.2m});X("12"29 b){X("1k"!==16 b.12||b.12.28)b.12={1o:b.12};c=b.12.1o||e,!a.1O(c)&&(!c&&!c.1a||c.18<1||"1k"===16 c&&!c.28)&&(b.12.1o=e),"1b"29 b.12&&("1k"!==16 b.12.1b&&(b.12.1b={1o:b.12.1b}),c=b.12.1b.1o||e,!a.1O(c)&&(!c&&!c.1a||c.18<1||"1k"===16 c&&!c.28)&&(b.12.1b.1o=e))}"17"29 b&&("1k"!==16 b.17&&(b.17={20:b.17,2x:b.17})),"U"29 b&&("1k"!==16 b.U&&(b.U.28?b.U={15:b.U}:b.U={1g:b.U})),"W"29 b&&("1k"!==16 b.W&&(b.W.28?b.W={15:b.W}:b.W={1g:b.W})),"19"29 b&&("1k"!==16 b.19&&(b.19={3d:b.19})),a.1s(h,7(){V.3m&&V.3m(b)});S b}7 w(){w.4y=w.4y||[],w.4y.4k(1U);X("1k"===16 3W)T a=3W[3W.5H?"5H":"8f"],b=a.2p?a.2p(3W,1U):a(8g.8j.41.21(1U))}"8k 8m";T d=!0,e=!1,f=8n,g,h,i,j={},k="1B-1w",l="1B-2s",m="1B-3x-2I",n="2b.1i."+k,o=k+"-3y",p=k+"-1V",q=k+"-4A",r=k+"-5O",s="-5P",t="5R",u="5g",v;g=a.2w.1i=7(b,h,i){T j=(""+b).2v(),k=f,l=j==="47"?[d]:a.5U(1U).41(1),m=l[l.18-1],n=V[0]?a.2u(V[0],"1i"):f;X(!1U.18&&n||j==="5V")S n;X("1u"===16 b){V.1s(7(){T b=a.2u(V,"1i");X(!b)S d;m&&m.5X&&(b.2W.1g=m);X(j!=="4O"&&j!=="2h"||!h)b[j]&&b[j].2p(b[j],l);2f X(a.60(h)||i!==c)b.3e(h,i);2f{k=b.43(h);S e}});S k!==f?k:V}X("1k"===16 b||!1U.18){n=x(a.1r(d,{},b));S g.1c.21(V,n,m)}},g.1c=7(b,f){S V.1s(7(i){7 q(b){7 d(){o.1P(16 b==="1k"||k.U.37),l.U.2r(l.W).1t(n)}X(o.2W.2I)S e;o.2W.1g=a.1r({},b),o.2W.15=b?a(b.15):[c],k.U.2y>0?(1J(o.1v.U),o.1v.U=3c(d,k.U.2y),m.U!==m.W&&l.W.1c(m.W,7(){1J(o.1v.U)})):d()}T k,l,m,n,o,p;p=a.5M(b.1y)?b.1y[i]:b.1y,p=!p||p===e||p.18<1||j[p]?g.4m++:j[p]=p,n=".1i-"+p+"-2D",o=z.21(V,p,b);X(o===e)S d;k=o.2h,a.1s(h,7(){V.2S==="2S"&&V(o)}),l={U:k.U.15,W:k.W.15},m={U:a.3X(""+k.U.1g).2j(/ /g,n+" ")+n,W:a.3X(""+k.W.1g).2j(/ /g,n+" ")+n},/1q(4z|3T)/i.1A(m.U)&&!/1q(3t|2c)/i.1A(m.W)&&(m.W+=" 38"+n),l.U.1c(m.U,q),(k.U.37||k.4F)&&q(f)})},h=g.1L={2Q:7(a){a=(""+a).2j(/([A-Z])/," $1").2j(/6t/5w,"1l").2v(),V.x=(a.3Z(/R|1p/i)||a.3Z(/1l/)||["3A"])[0].2v(),V.y=(a.3Z(/9|1n|1l/i)||["3A"])[0].2v(),V.1j=a.3r(0).4U(/^(t|b)/)>-1?"y":"x",V.1u=7(){S V.1j==="y"?V.y+V.x:V.x+V.y},V.4W=7(){T a=V.x.2H(0,1),b=V.y.2H(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.2U(),f.9+=b*a.30()}T f=c.11(),g=d,i=0,j=1C.3a,k;X(g){6E{g.14("17")!=="6F"&&(k=g[0]===j?{R:1z(g.14("R"),10)||0,9:1z(g.14("9"),10)||0}:g.17(),f.R-=k.R+(1z(g.14("6H"),10)||0),f.9-=k.9+(1z(g.14("6L"),10)||0),i++);X(g[0]===j)33}39(g=g.6N());(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:52((""+(/59.*6T ([0-6V]{1,3})|(59 6Z).*70.*71/i.5t(74.75)||[0,""])[1]).2j("5x","79").2j("7d","."))||e,2w:{1a:7(b,c){X(V.18){T d=V[0],e="1b",f=a.2u(d,"1i");X(b===e){X(1U.18<2)S a.1a(d,u);X(16 f==="1k"){f&&f.1m&&f.2h.12.1a===e&&f.2W.1a&&f.3e("12.1o",c),a.2w["1a"+t].2p(V,1U),a.1a(d,u,a.1a(d,e));S V.3F(e)}}}},5d:7(b){T c=a([]),d="1b",e;e=a.2w["5d"+t].2p(V,1U).2J("[5g]").1s(7(){a.1a(V,d,a.1a(V,u)),V.3I(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).5k("1Z")})})}}},a.1s(h.2w,7(b,c){X(!c)S d;T e=a.2w[b+t]=a.2w[b];a.2w[b]=7(){S c.2p(V,1U)||e.2p(V,1U)}}),g.3N="2.0.7E",g.4m=0,g.5m="4n 7J 3M 5r 2g 38 3v".2N(" "),g.5s=7K,g.3s={4F:e,1y:e,4q:d,12:{1o:d,1a:"1b",1b:{1o:e,1G:e}},17:{20:"9 R",2x:"1n 1p",15:e,23:e,1T:e,1S:{x:0,y:0,1q:d,2F:d,4u:"3Q 3Q"},22:7(b,c,d){a(V).87(c,{88:89,35:e})}},U:{15:e,1g:"3v",22:d,2y:3U,36:e,37:e},W:{15:e,1g:"38",22:d,2y:0,2A:e,26:e,2c:"3w",3D:e},19:{3d:"",2s:e,Y:e},4r:{1P:f,46:f,U:f,W:f,1I:f,1V:f,2i:f}},h.1F=7(a){T b=a.1L.1F;S"1k"===16 b?b:a.1L.1F=1K A(a)},h.1F.2S="1P",h.1F.3m=7(a){T b=a.12,c;b&&"1F"29 b&&(c=b.1F,16 c!=="1k"&&(c=a.12.1F={2t:c}),"3n"!==16 c.2B&&c.2B&&(c.2B=!!c.2B))},a.1r(d,g.3s,{12:{1F:{5J:d,2B:d}}}),h.1e=7(a){T b=a.1L.1e;S"1k"===16 b?b:a.1L.1e=1K C(a)},h.1e.2S="1P",h.1e.3m=7(a){T b=a.19,c;b&&"1e"29 b&&(c=a.19.1e,16 c!=="1k"&&(a.19.1e={1h:c}),/1u|3n/i.1A(16 c.1h)||(c.1h=d),16 c.Y!=="2G"&&2E c.Y,16 c.13!=="2G"&&2E c.13,16 c.1f!=="2G"&&c.1f!==d&&2E c.1f,16 c.11!=="2G"&&2E c.11)},a.1r(d,g.3s,{19:{1e:{1h:d,3E:e,Y:6,13:6,1f:d,11:0}}}),h.49=7(b,c){7 l(a,b){T d=0,e=1,f=1,g=0,h=0,i=a.Y,j=a.13;39(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==="1p"?e=a.Y-i:e+=1d.3G(i/2),c.y==="9"?f=j:c.y==="1n"?f=a.13-j:f+=1d.3G(j/2),d=b.18;39(d--){X(b.18<2)33;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==="1l"&&(ga.Y-e)||c.y==="9"&&h>=f||c.y==="1n"&&h<=f||c.y==="1l"&&(ha.13-f))&&b.72(d,1)}}S{R:b[0][0],9:b[0][1]}}b.28||(b=a(b));T d=b.1a("45").2v(),e=b.1a("7h").2N(","),f=[],g=a(\'2Y[7n="#\'+b.7t("5p").1a("4e")+\'"]\'),h=g.11(),i={Y:0,13:0,11:{9:3B,1p:0,1n:0,R:3B}},j=0,k=0;h.R+=1d.3L((g.3C()-g.Y())/2),h.9+=1d.3L((g.3h()-g.13())/2);X(d==="5C"){j=e.18;39(j--)k=[1z(e[--j],10),1z(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]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.2V,e=d.1w,f=".24-"+b.1y;a.1r(c,{1X:7(){d.24=a(\'<5K 1Y="1B-1w-24" 8h="0" 8i="-1" 8d="8a:\\\'\\\';" 18="2H:2Y; 17:4P; z-8e:-1; 2K:8l(4u=0); -86-2K:"85:8o.8p.8q(8r=0)";">\'),d.24.3f(e),e.1b("4p"+f,c.1S)},1S:7(){T a=b.43("5j"),c=b.1M.1e,f=d.1e,g,h;h=1A(e.14("1f-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1h.1j==="x"?["Y","R"]:["15","9"],h[g[1]]-=f[g[0]]()),d.24.14(h).14(a)},2j:7(){d.24.1U(),e.1v(f)}}),c.1X()}7 D(c){T f=V,g=c.2m.U.1D,h=c.2V,i=h.1w,j="#1i-2L",k=".8s",l=k+c.1y,m="1L-1D-1i",o=a(1F.39),q;c.2Z.1D={"^U.1D.(2M|2h)$":7(){f.1X(),h.2L.1J(i.1L(":1N"))}},a.1r(f,{1X:7(){X(!g.2M)S f;q=f.2F(),i.1a(m,d).1v(k).1v(l).1b("4d"+k+" 4f"+k,7(a,b,c){T d=a.34;d&&a.1x==="4f"&&/1p(2b|3T)/.1z(d.1x)&&d.3i.4a(q[0]).19?a.5d():f[a.1x.2i("1w","")](a,c)}).1b("5p"+k,7(a,b,c){q[0].18.2T=c}).1b("5r"+k,7(b){a("["+m+"]:1N").2p(i).5L().1i("2c",b)}),g.4H&&a(b).1v(l).1b("58"+l,7(a){a.8u===27&&i.1R(p)&&c.W(a)}),g.2h&&h.2L.1v(l).1b("4n"+l,7(a){i.1R(p)&&c.W(a)});S f},2F:7(){T c=a(j);X(c.19){h.2L=c;S c}q=h.2L=a("<26 />",{1y:j.2I(1),2N:"<26>",3M:7(){S e}}).55(a(n).5L()),a(b).1v(k).1b("2B"+k,7(){q.14({15:a(b).15(),Y:a(b).Y()})}).5k("2B");S q},1J:7(b,c,h){X(b&&b.3p())S f;T j=g.1V,k=c?"U":"W",p=q.1L(":1N"),r=a("["+m+"]:1N").2p(i),s;q||(q=f.2F());X(q.1L(":5m")&&p===c||!c&&r.19)S f;c?(q.14({R:0,9:0}),q.1Q("8v",g.2h),o.7y("*","3Z"+l,7(b){a(b.13).4a(n)[0]!==i[0]&&a("a, :5O, 2X",i).2r(i).2c()})):o.5i("*","3Z"+l),q.4L(d,e),a.1P(j)?j.21(q,c):j===e?q[k]():q.5o(1A(h,10)||3U,c?1:0,7(){c||a(V).W()}),c||q.35(7(a){q.14({R:"",9:""}),a()});S f},U:7(a,b){S f.1J(a,d,b)},W:7(a,b){S f.1J(a,e,b)},2j:7(){T d=q;d&&(d=a("["+m+"]").2p(i).19<1,d?(h.2L.1U(),a(b).1v(k)):h.2L.1v(k+c.1y),o.5i("*","3Z"+l));S i.3J(m).1v(k)}}),f.1X()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"15"],d=n[b?"15":"Y"],e=a.1u().2E("1k")>-1,f=c*(e?.5:1),g=1d.7r,h=1d.3S,i,j,k,l=1d.4b(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.4b(g(m[0],2)-g(p,2)),m[3]=1d.4b(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.1C&&b.y==="9",d=c?k.1C:k.12,e=a.2k.7M,f=e?"-5R-":a.2k.57?"-57-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1f-4D-"+g:"1f-"+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.1R(r),e=k.1C&&a.y==="9",f=e?k.1C:k.12,g="1f-"+b+"-Y",h;l.3o(r),h=1A(f.14(g),10),h=(c?h||1A(l.14(g),10):h)||0,l.1Q(r,d);S h}7 t(f,g,h,l){X(k.1e){T n=a.1r({},i.1h),o=h.3P,p=b.2m.17.1S.4v.2O(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1h.2C!==d&&(q==="2n"&&n.1j==="x"&&o.R&&n.y!=="1k"?n.1j=n.1j==="x"?"y":"x":q==="3Q"&&o.R&&(n.x=n.x==="1k"?o.R>0?"R":"1o":n.x==="R"?"1o":"R"),r==="2n"&&n.1j==="y"&&o.9&&n.x!=="1k"?n.1j=n.1j==="y"?"x":"y":r==="3Q"&&o.9&&(n.y=n.y==="1k"?o.9>0?"9":"1n":n.y==="9"?"1n":"9"),n.1u()!==m.1h&&(m.9!==o.9||m.R!==o.R)&&i.3b(n,e)),t=i.17(n,o),t.1o!==c&&(t.R=-t.1o),t.1n!==c&&(t.9=-t.1n),t.49=1d.29(0,j.11);X(s.R=q==="2n"&&!!o.R)n.x==="1k"?u["32-R"]=s.x=t["32-R"]-o.R:(v=t.1o!==c?[o.R,-t.R]:[-o.R,t.R],(s.x=1d.29(v[0],v[1]))>v[0]&&(h.R-=o.R,s.R=e),u[t.1o!==c?"1o":"R"]=s.x);X(s.9=r==="2n"&&!!o.9)n.y==="1k"?u["32-9"]=s.y=t["32-9"]-o.9:(v=t.1n!==c?[o.9,-t.9]:[-o.9,t.9],(s.y=1d.29(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).1J(!(s.x&&s.y||n.x==="1k"&&s.y||n.y==="1k"&&s.x)),h.R-=t.R.3r?t.49:q!=="2n"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3r?t.49:r!=="2n"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1h=n.1u()}}T i=V,j=b.2m.18.1e,k=b.2V,l=k.1w,m={9:0,R:0,1h:""},n={Y:j.Y,15:j.15},o={},p=j.1f||0,q=".1i-1e",s=!!(a("<4N />")[0]||{}).41;i.1h=f,i.3G=f,i.1f=p,i.11=j.11,i.31=n,b.2Z.1e={"^17.20|18.1e.(1h|3G|1f)$":7(){i.1X()||i.2j(),b.2a()},"^18.1e.(15|Y)$":7(){n={Y:j.Y,15:j.15},i.2F(),i.3b(),b.2a()},"^12.1c.1m|18.(3d|2s)$":7(){k.1e&&i.3b()}},a.1r(i,{1X:7(){T b=i.4E()&&(s||a.2k.3j);b&&(i.2F(),i.3b(),l.1v(q).1b("4p"+q,t));S b},4E:7(){T a=j.1h,c=b.2m.17,f=c.2x,g=c.20.1u?c.20.1u():c.20;X(a===e||g===e&&f===e)S e;a===d?i.1h=1K h.2Q(g):a.1u||(i.1h=1K h.2Q(a),i.1h.2C=d);S i.1h.1u()!=="5G"},4G:7(){T c,d,e,f=k.1e.14({5T:"",1f:""}),g=i.1h,h=g[g.1j],m="1f-"+h+"-3z",p="1f"+h.3r(0)+h.2I(1)+"5U",q=/6B?\\(0, 0, 0(, 0)?\\)|3Y/i,s="6N-3z",t="3Y",u=a(1F.39).14("3z"),v=b.2V.12.14("3z"),w=k.1C&&(g.y==="9"||g.y==="1k"&&f.17().9+n.15/2+j.11",{"1Y":"1B-1w-1e"}).14({Y:b,15:c}).5X(l),s?a("<4N />").3f(k.1e)[0].41("2d").4C():(d=\'<4x:46 5Z="0,0" 18="2H:4S-2Y; 17:4P; 4Q:2v(#3y#4R);">\',k.1e.2N(d+d))},3b:7(b,c){T g=k.1e,l=g.60(),m=n.Y,q=n.15,r="44 62 ",t="44 63 3Y",v=j.3G,x=1d.3S,y,z,A,C,D;b||(b=i.1h),v===e?v=b:(v=1K h.2Q(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.4G(),o.1f!=="3Y"&&o.1f!=="#64"?(p=u(b,f,d),j.1f===0&&p>0&&(o.2y=o.1f),i.1f=p=j.1f!==d?j.1f:p):i.1f=p=0,A=B(v,m,q),i.31=D=w(b),g.14(D),b.1j==="y"?C=[x(v.x==="R"?p:v.x==="1o"?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.2y,z.6c=o.1f,z.6d=p*2,z.6e="5y",z.6f=5D,p&&z.5F(),z.2y()):(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.1z(b.1u())?52(a.2k.3N,10)===8?2:1:0,l.14({6h:""+(v.1u().2E("1k")>-1),R:C[0]-C[2]*5I(y==="x"),9:C[1]-C[2]*5I(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.2y,6m:!!b,6n:!b}).14({2H:p||b?"2Y":"4t"}),!b&&c.2N()===""&&c.2N(\'<4x:5F 6p="\'+p*2+\'44" 3z="\'+o.1f+\'" 6q="6r" 6s="5y" 18="4Q:2v(#3y#4R); 2H:4S-2Y;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1e,f={},g=1d.29(0,j.11),h,l,m;X(j.1h===e||!c)S e;b=b||i.1h,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==="1k"?(e=h==="y"?"R":"9",f[e]="50%",f["32-"+e]=-1d.3S(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:"",1o:"",32:""}).14(f);S f},2j:7(){k.1e&&k.1e.1U(),l.1v(q)}}),i.1X()}7 B(a,b,c){T d=1d.3L(b/2),e=1d.3L(c/2),f={5u:[[0,0],[b,c],[b,0]],4V:[[0,0],[b,0],[0,c]],5E:[[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.5u,f.6z=f.4V,f.6A=f.5E,f.6C=f.4X;S f[a.1u()]}7 A(b){T c=V,f=b.2V.1w,g=b.2m.12.1E,h=".1i-1E",i=/<4j\\b[^<]*(?:(?!<\\/4j>)<[^<]*)*<\\/4j>/5w,j=d;b.2Z.1E={"^12.1E":7(a,b,d){b==="1E"&&(g=d),b==="2D"?c.1X():g&&g.2v?c.3C():f.1v(h)}},a.1r(c,{1X:7(){g&&g.2v&&f.1v(h)[g.2D?"7L":"1b"]("4d"+h,c.3C);S c},3C:7(d,h){7 p(a,c,d){b.3e("12.1m",c+": "+d),n()}7 o(c){l&&(c=a("<26/>").3g(c.2i(i,"")).5e(l)),b.3e("12.1m",c),n()}7 n(){m&&(f.14("4h",""),h=e)}X(d&&d.3p())S c;T j=g.2v.2E(" "),k=g.2v,l,m=g.2D&&!g.5J&&h;m&&f.14("4h","4i"),j>-1&&(l=k.2I(j),k=k.2I(0,j)),a.1E(a.1r({6D:o,5l:p,6E:b},g,{2v:k}));S c}}),c.1X()}7 z(b,c){T i,j,k,l,m=a(V),n=a(1F.39),o=V===1F?n:m,p=m.2l?m.2l(c.2l):f,q=c.2l.1x==="7H"&&p?p[c.2l.4e]:f,r=m.2u(c.2l.4e||"7G");7F{r=16 r==="1u"?(1K 6H("S "+r))():r}7D(s){w("5g 5h 6J 6K 6L 2u: "+r)}l=a.1r(d,{},g.3s,c,16 r==="1l"?x(r):f,x(q||p)),j=l.17,l.1y=b;X("3n"===16 l.12.1m){k=m.1a(l.12.1a);X(l.12.1a!==e&&k)l.12.1m=k;2e{w("5g 5h 6P 12 4g 1w! 6Q 1O 7v 1w 2M 6R: ",m);S e}}j.22===e&&(j.22=n),j.13===e&&(j.13=o),l.U.13===e&&(l.U.13=o),l.U.36===d&&(l.U.36=n),l.W.13===e&&(l.W.13=o),l.17.1T===d&&(l.17.1T=j.22),j.2x=1K h.2Q(j.2x),j.20=1K h.2Q(j.20);X(a.2u(V,"1i"))X(l.4r)m.1i("2j");2e X(l.4r===e)S e;a.1a(V,"1c")&&(a.1a(V,u,a.1a(V,"1c")),V.3F("1c")),i=1K y(m,l,b,!!k),a.2u(V,"1i",i),m.1b("1U.1i",7(){i.2j()});S i}7 y(c,s,t,w){7 Q(){T c=[s.U.13[0],s.W.13[0],y.1q&&F.1w[0],s.17.22[0],s.17.1T[0],b,1F];y.1q?a([]).6S(a.6T(c,7(a){S 16 a==="1l"})).1v(E):s.U.13.1v(E+"-2F")}7 P(){7 r(a){D.1L(":1N")&&y.2a(a)}7 p(a){X(D.1R(m))S e;1H(y.1t.23),y.1t.23=3c(7(){y.W(a)},s.W.23)}7 o(b){X(D.1R(m))S e;T c=a(b.3i||b.13),d=c.4a(n)[0]===D[0],g=c[0]===h.U[0];1H(y.1t.U),1H(y.1t.W);f.13==="1p"&&d||s.W.2C&&(/1p(3t|2b|47)/.1z(b.1x)&&(d||g))?b.5d():s.W.2A>0?y.1t.W=3c(7(){y.W(b)},s.W.2A):y.W(b)}7 l(a){X(D.1R(m))S e;h.U.2R("1i-"+t+"-23"),1H(y.1t.U),1H(y.1t.W);T b=7(){y.1J(d,a)};s.U.2A>0?y.1t.U=3c(b,s.U.2A):b()}T f=s.17,h={U:s.U.13,W:s.W.13,1T:a(f.1T),1F:a(1F),3w:a(b)},j={U:a.3X(""+s.U.1g).2O(" "),W:a.3X(""+s.W.1g).2O(" ")},k=a.2k.3j&&1A(a.2k.3N,10)===6;D.1b("3v"+E+" 38"+E,7(a){T b=a.1x==="3v";b&&y.2c(a),D.1Q(q,b)}),s.W.2C&&(h.W=h.W.2r(D),D.1b("7p"+E,7(){D.1R(m)||1H(y.1t.W)})),/1p(3t|2b)/i.1z(s.W.1g)?s.W.2b&&h.3w.1b("1p"+(s.W.2b.2E("6V")>-1?"3t":"2b")+E,7(a){/56|4O/.1z(a.13)&&!a.3i&&y.W(a)}):/1p(4A|3T)/i.1z(s.U.1g)&&h.W.1b("38"+E,7(a){1H(y.1t.U)}),(""+s.W.1g).2E("53")>-1&&h.1F.1b("3M"+E,7(b){T d=a(b.13),e=!D.1R(m)&&D.1L(":1N");d.6X(n).19===0&&d.2r(c).19>1&&y.W(b)}),"2G"===16 s.W.23&&(h.U.1b("1i-"+t+"-23",p),a.1s(g.5n,7(a,b){h.W.2r(F.1w).1b(b+E+"-23",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).19===e.19||c==="53"?(h.U.1b(c+E,7(a){D.1L(":1N")?o(a):l(a)}),2z j.U[d]):h.W.1b(c+E,o)}),a.1s(j.U,7(a,b){h.U.1b(b+E,l)}),"2G"===16 s.W.3D&&h.U.1b("2g"+E,7(a){T b=G.3l||{},c=s.W.3D,d=1d.3u;(d(a.1I-b.1I)>=c||d(a.2f-b.2f)>=c)&&y.W(a)}),f.13==="1p"&&(h.U.1b("2g"+E,7(a){i={1I:a.1I,2f:a.2f,1x:"2g"}}),f.1S.1p&&(s.W.1g&&D.1b("38"+E,7(a){(a.3i||a.13)!==h.U[0]&&y.W(a)}),h.1F.1b("2g"+E,7(a){!D.1R(m)&&D.1L(":1N")&&y.2a(a||i)}))),(f.1S.2B||h.1T.19)&&(a.1g.6Z.2B?h.1T:h.3w).1b("2B"+E,r),(h.1T.19||k&&D.14("17")==="2C")&&h.1T.1b("4q"+E,r)}7 O(b,d){7 g(b){7 g(f){1H(y.1t.2X[V]),a(V).1v(E),(c=c.2p(V)).19===0&&(y.2P(),d!==e&&y.2a(G.1g),b())}T c;X((c=f.5e("2X:2p([15]):2p([Y])")).19===0)S g.21(c);c.1s(7(b,c){(7 d(){X(c.15&&c.Y)S g.21(c);y.1t.2X[c]=3c(d,7i)})(),a(c).1b("5l"+E+" 3C"+E,g)})}T f=F.12;X(!y.1q||!b)S e;a.1P(b)&&(b=b.21(c,G.1g,y)||""),b.25&&b.19>0?f.54().3g(b.14({2H:"2Y"})):f.2N(b),y.1q<0?D.35("42",g):(C=0,g(a.74));S y}7 N(b,d){T f=F.1c;X(f&&b===e)J();2e X(!y.1q||!b)S e;a.1P(b)&&(b=b.21(c,G.1g,y)||""),b.25&&b.19>0?f.54().3g(b.14({2H:"2Y"})):f.2N(b),y.2P(),d!==e&&y.1q&&D.1L(":1N")&&y.2a(G.1g)}7 M(a){T b=F.1G,c=F.1c;X(!y.1q)S e;a?(c||L(),K()):b.1U()}7 L(){T b=A+"-1c";F.1C&&J(),F.1C=a("<26 />",{"1Y":k+"-1C "+(s.18.2s?"1B-2s-5a":"")}).3g(F.1c=a("<26 />",{1y:b,"1Y":k+"-1c","1Z-4c":d})).55(F.12),s.12.1c.1G?K():y.1q&&y.2P()}7 K(){T b=s.12.1c.1G,c=16 b==="1u",d=c?b:"77 1w";F.1G&&F.1G.1U(),b.25?F.1G=b:F.1G=a("",{"1Y":"1B-3x-3y "+(s.18.2s?"":k+"-3I"),1c:d,"1Z-78":d}).79(a("<7b />",{"1Y":"1B-3I 1B-3I-7c",2N:"&7d;"})),F.1G.3f(F.1C).1a("4Z","1G").4B(7(b){a(V).1Q("1B-3x-4B",b.1x==="3v")}).4n(7(a){D.1R(m)||y.W(a);S e}).1b("3M 58 5s 7f 7g",7(b){a(V).1Q("1B-3x-7h 1B-3x-2c",b.1x.2I(-4)==="7k")}),y.2P()}7 J(){F.1c&&(F.1C.1U(),F.1C=F.1c=F.1G=f,y.2a())}7 I(){T a=s.18.2s;D.1Q(l,a).1Q(o,!a),F.12.1Q(l+"-12",a),F.1C&&F.1C.1Q(l+"-5a",a),F.1G&&F.1G.1Q(k+"-3I",!a)}7 H(a){T b=0,c,d=s,e=a.2O(".");3a(d=d[e[b++]])b0&&!a("#"+i).19&&(D[0].1y=i,F.12[0].1y=i+"-12",F.1c[0].1y=i+"-1c")},"^12.1m$":7(a,b,c){O(c)},"^12.1c.1m$":7(a,b,c){X(!c)S J();!F.1c&&c&&L(),N(c)},"^12.1c.1G$":7(a,b,c){M(c)},"^17.(20|2x)$":7(a,b,c){"1u"===16 c&&(a[b]=1K h.2Q(c))},"^17.22$":7(a,b,c){y.1q&&D.3f(c)},"^U.37$":7(){y.1q?y.1J(d):y.1O(1)},"^18.3d$":7(b,c,d){a.1a(D[0],"1Y",k+" 1i 1B-5c-51 "+d)},"^18.2s|12.1c":I,"^4s.(1O|U|47|W|2c|2h)$":7(b,c,d){D[(a.1P(d)?"":"7n")+"1b"]("1w"+c,d)},"^(U|W|17).(1g|13|2C|23|2b|3D|1T|1S)":7(){T a=s.17;D.1a("4l",a.13==="1p"&&a.1S.1p),Q(),P()}},a.1r(y,{1O:7(b){X(y.1q)S y;T f=s.12.1c.1m,g=s.17,i=a.3k("7q");a.1a(c[0],"1Z-4y",A),D=F.1w=a("<26/>",{1y:A,"1Y":k+" 1i 1B-5c-51 "+o+" "+s.18.3d,Y:s.18.Y||"",4l:g.13==="1p"&&g.1S.1p,4Z:"7s","1Z-7t":"7w","1Z-4c":e,"1Z-4y":A+"-12","1Z-4i":d}).1Q(m,G.2J).2u("1i",y).3f(s.17.22).3g(F.12=a("<26 />",{"1Y":k+"-12",1y:A+"-12","1Z-4c":d})),y.1q=-1,C=1,f&&(L(),N(f)),O(s.12.1m,e),y.1q=d,I(),a.1s(s.4s,7(b,c){a.1P(c)&&D.1b(b==="1J"?"4d 4f":"1w"+b,c)}),a.1s(h,7(){V.2S==="1O"&&V(y)}),P(),D.35("42",7(a){i.34=G.1g,D.2R(i,[y]),C=0,y.2P(),(s.U.37||b)&&y.1J(d,G.1g),a()});S y},43:7(a){T b,c;5v(a.2w()){3q"5j":b={15:D.3h(),Y:D.3E()};33;3q"11":b=h.11(D,s.17.22);33;3y:c=H(a.2w()),b=c[0][c[1]],b=b.1j?b.1u():b}S b},3e:7(b,c){7 m(a,b){T c,d,e;4g(c 28 k)4g(d 28 k[c])X(e=(1K 7z(d,"i")).5N(a))b.4k(e),k[c][d].2q(y,b)}T g=/^17\\.(20|2x|1S|13|22)|18|12|U\\.37/i,h=/^12\\.(1c|1a)|18/i,i=e,j=e,k=y.2Z,l;"1u"===16 b?(l=b,b={},b[l]=c):b=a.1r(d,{},b),a.1s(b,7(c,d){T e=H(c.2w()),f;f=e[0][e[1]],e[0][e[1]]="1l"===16 d&&d.7A?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.1q&&(i&&y.2a(s.17.13==="1p"?f:G.1g),j&&y.2P());S y},1J:7(b,c){7 q(){b?(a.2k.3j&&D[0].18.3F("2K"),D.14("7B","")):D.14({2H:"",4h:"",4u:"",R:"",9:""})}X(!y.1q)X(b)y.1O(1);2e S y;T g=b?"U":"W",h=s[g],j=D.1L(":1N"),k=!c||s[g].13.19<2||G.13[0]===c.13,l=s.17,m=s.12,o,p;(16 b).4U("3n|2G")&&(b=!j);X(!D.1L(":5m")&&j===b&&k)S y;X(c){X(/4A|3T/.1z(c.1x)&&/3t|2b/.1z(G.1g.1x)&&c.13===s.U.13[0]&&D.7C(c.3i).19)S y;G.1g=a.1r({},c)}p=a.3k("1w"+g),p.34=c?G.1g:f,D.2R(p,[y,3U]);X(p.3p())S y;a.1a(D[0],"1Z-4i",!b),b?(G.3l=a.1r({},i),y.2c(c),a.1P(m.1m)&&O(m.1m,e),a.1P(m.1c.1m)&&N(m.1c.1m,e),!v&&l.13==="1p"&&l.1S.1p&&(a(1F).1b("2g.1i",7(a){i={1I:a.1I,2f:a.2f,1x:"2g"}}),v=d),y.2a(c),h.36&&a(n,h.36).2p(D).1i("W",p)):(1H(y.1t.U),2z G.3l,v&&!a(n+\'[4l="7I"]:1N\',h.36).2p(D).19&&(a(1F).1v("2g.1i"),v=e),y.2h(c)),k&&D.4L(0,1),h.1V===e?(D[g](),q.21(D)):a.1P(h.1V)?(h.1V.21(D,y),D.35("42",7(a){q(),a()})):D.5o(3U,b?1:0,q),b&&h.13.2R("1i-"+t+"-23");S y},U:7(a){S y.1J(d,a)},W:7(a){S y.1J(e,a)},2c:7(b){X(!y.1q)S y;T c=a(n),d=1A(D[0].18.2T,10),e=g.5t+c.19,f=a.1r({},b),h,i;D.1R(p)||(i=a.3k("5p"),i.34=f,D.2R(i,[y,e]),i.3p()||(d!==e&&(c.1s(7(){V.18.2T>d&&(V.18.2T=V.18.2T-1)}),c.2K("."+p).1i("2h",f)),D.3o(p)[0].18.2T=e));S y},2h:7(b){T c=a.1r({},b),d;D.4w(p),d=a.3k("5r"),d.34=c,D.2R(d,[y]);S y},2a:7(c,d){X(!y.1q||B)S y;B=1;T f=s.17.13,g=s.17,j=g.20,l=g.2x,m=g.1S,n=m.4v.2O(" "),o=D.3E(),p=D.3h(),q=0,r=0,t=a.3k("4p"),u=D.14("17")==="2C",v=g.1T,w={R:0,9:0},x=y.1M.1e,A={3V:n[0],3O:n[1]||n[0],R:7(a){T b=A.3V==="2n",c=v.11.R+v.2U,d=j.x==="R"?o:j.x==="1o"?-o:-o/2,e=l.x==="R"?q:l.x==="1o"?-q:-q/2,f=x&&x.31?x.31.Y||0:0,g=x&&x.1h&&x.1h.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.1h.1j==="y"?f:0,k=(j.x==="R"?1:-1)*d-g,w.R+=h>0?h:i>0?-i:0,w.R=1d.29(v.11.R+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3R(1d.29(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!=="1o"||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.3O==="2n",c=v.11.9+v.30,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.31?x.31.15||0:0,g=x&&x.1h&&x.1h.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.1h.1j==="x"?f:0,k=(j.y==="9"?1:-1)*d-g,w.9+=h>0?h:i>0?-i:0,w.9=1d.29(v.11.9+(g&&x.1h.x==="1k"?x.11:0),a-k,1d.3R(1d.29(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.5M(f)&&f.19===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2e X(f==="1p"&&(c&&c.1I||G.1g.1I))l={x:"R",y:"9"},c=c&&(c.1x==="2B"||c.1x==="4q")?G.1g:c&&c.1I&&c.1x==="2g"?c:i&&(m.1p||!c||!c.1I)?{1I:i.1I,2f:i.2f}:!m.1p&&G.3l?G.3l:c,w={9:c.2f,R:c.1I};2e{f==="1g"?c&&c.13&&c.1x!=="4q"&&c.1x!=="2B"?f=G.13=a(c.13):f=G.13:G.13=a(f),f=a(f).7N(0);X(f.19===0)S y;f[0]===1F||f[0]===b?(q=h.2t?b.7O:f.Y(),r=h.2t?b.7P:f.15(),f[0]===b&&(w={9:!u||h.2t?(v||f).30():0,R:!u||h.2t?(v||f).2U():0})):f.1L("7Q")&&h.45?w=h.45(f,l):f[0].7R==="7S://7T.7V.7W/7Y/3K"&&h.3K?w=h.3K(f,l):(q=f.3E(),r=f.3h(),w=h.11(f,g.22,u)),w.11&&(q=w.Y,r=w.15,w=w.11),w.R+=l.x==="1o"?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==="1o"?-o:j.x==="1k"?-o/2:0),w.9+=m.y+(j.y==="1n"?-p:j.y==="1k"?-p/2:0),v.25&&f[0]!==b&&f[0]!==z&&A.3O+A.3V!=="7Z"?(v={5A:v,15:v[(v[0]===b?"h":"80")+"81"](),Y:v[(v[0]===b?"w":"82")+"83"](),2U:u?0:v.2U(),30:u?0:v.30(),11:v.11()||{R:0,9:0}},w.3P={R:A.3V!=="4t"?A.R(w.R):0,9:A.3O!=="4t"?A.9(w.9):0}):w.3P={R:0,9:0},D.1a("1Y",7(b,c){S a.1a(V,"1Y").2i(/1B-1w-5z-\\w+/i,"")}).3o(k+"-5z-"+j.4W()),t.34=a.1r({},c),D.2R(t,[y,w,v.5A||v]);X(t.3p())S y;2z w.3P,d===e||5B(w.R)||5B(w.9)||f==="1p"||!a.1P(g.1V)?D.14(w):a.1P(g.1V)&&(g.1V.21(D,y,a.1r({},w)),D.35(7(b){a(V).14({4u:"",15:""}),a.2k.3j&&V.18.3F("2K"),b()})),B=0;S y},2P:7(){X(y.1q<1||C)S y;T a=s.17.22,b,c,d,e;C=1,s.18.Y?D.14("Y",s.18.Y):(D.14("Y","").3o(r),c=D.Y()+1,d=D.14("29-Y")||"",e=D.14("3R-Y")||"",b=(d+e).2E("%")>-1?a.Y()/5D:0,d=(d.2E("%")>-1?b:1)*1A(d,10)||c,e=(e.2E("%")>-1?b:1)*1A(e,10)||0,c=d+e?1d.3R(1d.29(c,e),d):c,D.14("Y",1d.3S(c)).4w(r)),C=0;S y},48:7(b){T c=m;"3n"!==16 b&&(b=!D.1R(c)&&!G.2J),y.1q?(D.1Q(c,b),a.1a(D[0],"1Z-2J",b)):G.2J=!!b;S y},8b:7(){S y.48(e)},2j:7(){T b=c[0],d=a.1a(b,u);y.1q&&(D.1U(),a.1s(y.1M,7(){V.2j&&V.2j()})),1H(y.1t.U),1H(y.1t.W),Q(),a.8c(b,"1i"),d&&(a.1a(b,"1c",d),c.3J(u)),c.3J("1Z-4y").1v(".1i"),2z j[y.1y];S c}})}7 x(b){T c;X(!b||"1l"!==16 b)S e;"1l"!==16 b.2l&&(b.2l={1x:b.2l});X("12"28 b){X("1l"!==16 b.12||b.12.25)b.12={1m:b.12};c=b.12.1m||e,!a.1P(c)&&(!c&&!c.1a||c.19<1||"1l"===16 c&&!c.25)&&(b.12.1m=e),"1c"28 b.12&&("1l"!==16 b.12.1c&&(b.12.1c={1m:b.12.1c}),c=b.12.1c.1m||e,!a.1P(c)&&(!c&&!c.1a||c.19<1||"1l"===16 c&&!c.25)&&(b.12.1c.1m=e))}"17"28 b&&("1l"!==16 b.17&&(b.17={20:b.17,2x:b.17})),"U"28 b&&("1l"!==16 b.U&&(b.U.25?b.U={13:b.U}:b.U={1g:b.U})),"W"28 b&&("1l"!==16 b.W&&(b.W.25?b.W={13:b.W}:b.W={1g:b.W})),"18"28 b&&("1l"!==16 b.18&&(b.18={3d:b.18})),a.1s(h,7(){V.3m&&V.3m(b)});S b}7 w(){w.4z=w.4z||[],w.4z.4k(1W);X("1l"===16 3W)T a=3W[3W.5H?"5H":"8f"],b=a.2q?a.2q(3W,1W):a(8g.8j.4o.21(1W))}"8k 8m";T d=!0,e=!1,f=8n,g,h,i,j={},k="1B-1w",l="1B-2s",m="1B-3x-2J",n="26.1i."+k,o=k+"-3y",p=k+"-2c",q=k+"-4B",r=k+"-5P",s="-5Q",t="5S",u="5f",v;g=a.2o.1i=7(b,h,i){T j=(""+b).2w(),k=f,l=j==="48"?[d]:a.5V(1W).4o(1),m=l[l.19-1],n=V[0]?a.2u(V[0],"1i"):f;X(!1W.19&&n||j==="5W")S n;X("1u"===16 b){V.1s(7(){T b=a.2u(V,"1i");X(!b)S d;m&&m.5Y&&(b.2W.1g=m);X(j!=="4O"&&j!=="2m"||!h)b[j]&&b[j].2q(b[j],l);2e X(a.61(h)||i!==c)b.3e(h,i);2e{k=b.43(h);S e}});S k!==f?k:V}X("1l"===16 b||!1W.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.1O(16 b==="1l"||k.U.37),l.U.2r(l.W).1v(n)}X(o.2W.2J)S e;o.2W.1g=a.1r({},b),o.2W.13=b?a(b.13):[c],k.U.2A>0?(1H(o.1t.U),o.1t.U=3c(d,k.U.2A),m.U!==m.W&&l.W.1b(m.W,7(){1H(o.1t.U)})):d()}T k,l,m,n,o,p;p=a.5M(b.1y)?b.1y[i]:b.1y,p=!p||p===e||p.19<1||j[p]?g.4m++:j[p]=p,n=".1i-"+p+"-2F",o=z.21(V,p,b);X(o===e)S d;k=o.2m,a.1s(h,7(){V.2S==="2S"&&V(o)}),l={U:k.U.13,W:k.W.13},m={U:a.3X(""+k.U.1g).2i(/ /g,n+" ")+n,W:a.3X(""+k.W.1g).2i(/ /g,n+" ")+n},/1p(4A|3T)/i.1z(m.U)&&!/1p(3t|2b)/i.1z(m.W)&&(m.W+=" 38"+n),l.U.1b(m.U,q),(k.U.37||k.4F)&&q(f)})},h=g.1M={2Q:7(a){a=(""+a).2i(/([A-Z])/," $1").2i(/6u/5w,"1k").2w(),V.x=(a.40(/R|1o/i)||a.40(/1k/)||["3A"])[0].2w(),V.y=(a.40(/9|1n|1k/i)||["3A"])[0].2w(),V.1j=a.3r(0).4U(/^(t|b)/)>-1?"y":"x",V.1u=7(){S V.1j==="y"?V.y+V.x:V.x+V.y},V.4W=7(){T a=V.x.2I(0,1),b=V.y.2I(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.2U(),f.9+=b*a.30()}T f=c.11(),g=d,i=0,j=1F.39,k;X(g){6F{g.14("17")!=="6G"&&(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("6I"),10)||0),f.9-=k.9+(1A(g.14("6M"),10)||0),i++);X(g[0]===j)33}3a(g=g.6O());(d[0]!==j||i>1)&&l(d,1),(h.2t<4.1&&h.2t>3.1||!h.2t&&e)&&l(a(b),-1)}S f},2t:52((""+(/59.*6U ([0-6W]{1,3})|(59 70).*71.*72/i.5N(75.76)||[0,""])[1]).2i("5x","7a").2i("7e","."))||e,2o:{1a:7(b,c){X(V.19){T d=V[0],e="1c",f=a.2u(d,"1i");X(b===e){X(1W.19<2)S a.1a(d,u);X(16 f==="1l"){f&&f.1q&&f.2m.12.1a===e&&f.2W.1a&&f.3e("12.1m",c),a.2o["1a"+t].2q(V,1W),a.1a(d,u,a.1a(d,e));S V.3J(e)}}}},5b:7(b){T c=a([]),d="1c",e;e=a.2o["5b"+t].2q(V,1W).2K("[5f]").1s(7(){a.1a(V,d,a.1a(V,u)),V.3F(u)}).7x();S e},1U:a.1B?f:7(b,c){a(V).1s(7(){c||(!b||a.2K(b,[V]).19)&&a("*",V).2r(V).1s(7(){a(V).5k("1U")})})}}},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.2q(V,1W)||e.2q(V,1W)}}),g.3N="2.0.7E",g.4m=0,g.5n="4n 7J 3M 5s 2g 38 3v".2O(" "),g.5t=7K,g.3s={4F:e,1y:e,4r:d,12:{1m:d,1a:"1c",1c:{1m:e,1G:e}},17:{20:"9 R",2x:"1n 1o",13:e,22:e,1T:e,1S:{x:0,y:0,1p:d,2B:d,4v:"3Q 3Q"},1V:7(b,c,d){a(V).87(c,{88:89,35:e})}},U:{13:e,1g:"3v",1V:d,2A:3U,36:e,37:e},W:{13:e,1g:"38",1V:d,2A:0,2C:e,23:e,2b:"3w",3D:e},18:{3d:"",2s:e,Y:e},4s:{1O:f,47:f,U:f,W:f,1J:f,2c:f,2h:f}},h.1E=7(a){T b=a.1M.1E;S"1l"===16 b?b:a.1M.1E=1K A(a)},h.1E.2S="1O",h.1E.3m=7(a){T b=a.12,c;b&&"1E"28 b&&(c=b.1E,16 c!=="1l"&&(c=a.12.1E={2v:c}),"3n"!==16 c.2D&&c.2D&&(c.2D=!!c.2D))},a.1r(d,g.3s,{12:{1E:{5J:d,2D:d}}}),h.1e=7(a){T b=a.1M.1e;S"1l"===16 b?b:a.1M.1e=1K C(a)},h.1e.2S="1O",h.1e.3m=7(a){T b=a.18,c;b&&"1e"28 b&&(c=a.18.1e,16 c!=="1l"&&(a.18.1e={1h:c}),/1u|3n/i.1z(16 c.1h)||(c.1h=d),16 c.Y!=="2G"&&2z c.Y,16 c.15!=="2G"&&2z c.15,16 c.1f!=="2G"&&c.1f!==d&&2z c.1f,16 c.11!=="2G"&&2z c.11)},a.1r(d,g.3s,{18:{1e:{1h:d,3G:e,Y:6,15:6,1f:d,11:0}}}),h.45=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.3H(i/2),j=1d.3H(j/2),c.x==="R"?e=i:c.x==="1o"?e=a.Y-i:e+=1d.3H(i/2),c.y==="9"?f=j:c.y==="1n"?f=a.15-j:f+=1d.3H(j/2),d=b.19;3a(d--){X(b.19<2)33;g=b[d][0]-a.11.R,h=b[d][1]-a.11.9,(c.x==="R"&&g>=e||c.x==="1o"&&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.25||(b=a(b));T d=b.1a("46").2w(),e=b.1a("7j").2O(","),f=[],g=a(\'2X[7o="#\'+b.7u("5q").1a("4e")+\'"]\'),h=g.11(),i={Y:0,15:0,11:{9:3B,1o:0,1n:0,R:3B}},j=0,k=0;h.R+=1d.3L((g.3E()-g.Y())/2),h.9+=1d.3L((g.3h()-g.15())/2);X(d==="5C"){j=e.19;3a(j--)k=[1A(e[--j],10),1A(e[j+1],10)],k[0]>i.11.1o&&(i.11.1o=k[0]),k[0]i.11.1n&&(i.11.1n=k[1]),k[1]