From 94ceb314e48e3fc3290a4b242d70e368c90d18f4 Mon Sep 17 00:00:00 2001 From: Craig Michael Thompson Date: Mon, 1 Aug 2011 15:56:09 +0100 Subject: [PATCH] Few small fixes to hideMethod that prevent hiding issues when repositioning and event propagation --- dist/jquery.qtip.basic.js | 12 +++++------- dist/jquery.qtip.css | 2 +- dist/jquery.qtip.js | 23 +++++++++++------------ dist/jquery.qtip.min.js | 4 ++-- dist/jquery.qtip.pack.js | 4 ++-- src/ajax.js | 11 ++++++----- src/core.js | 10 ++++------ 7 files changed, 31 insertions(+), 35 deletions(-) diff --git a/dist/jquery.qtip.basic.js b/dist/jquery.qtip.basic.js index cdac6c68..c246b7b7 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: Mon Jul 25 12:30:35 2011 +0100 +* Date: Wed Jul 27 20:23:08 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -448,7 +448,7 @@ function QTip(target, options, id, attr) // Define hide method function hideMethod(event) { - if(tooltip.hasClass(disabled)) { return FALSE; } + if(tooltip.hasClass(disabled) || isPositioning || isDrawing) { return FALSE; } // Check if new target was actually the tooltip element var relatedTarget = $(event.relatedTarget || event.target), @@ -461,7 +461,7 @@ function QTip(target, options, id, attr) // Prevent hiding if tooltip is fixed and event target is the tooltip. Or if mouse positioning is enabled and cursor momentarily overlaps if((posOptions.target === 'mouse' && ontoTooltip) || (options.hide.fixed && ((/mouse(out|leave|move)/).test(event.type) && (ontoTooltip || ontoTarget)))) { - event.preventDefault(); return; + event.preventDefault(); event.stopImmediatePropagation(); return; } // If tooltip has displayed, start hide timer @@ -1411,14 +1411,12 @@ function QTip(target, options, id, attr) disable: function(state) { - var c = disabled; - if('boolean' !== typeof state) { - state = !(tooltip.hasClass(c) || cache.disabled); + state = !(tooltip.hasClass(disabled) || cache.disabled); } if(self.rendered) { - tooltip.toggleClass(c, state); + tooltip.toggleClass(disabled, state); $.attr(tooltip[0], 'aria-disabled', state); } else { diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 7ef03077..fb392876 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: Mon Jul 25 12:30:35 2011 +0100 +* Date: Wed Jul 27 20:23:08 2011 +0100 */ /* Core qTip styles */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index f3bd8dc4..e63a8811 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: Mon Jul 25 12:30:35 2011 +0100 +* Date: Wed Jul 27 20:23:08 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -448,7 +448,7 @@ function QTip(target, options, id, attr) // Define hide method function hideMethod(event) { - if(tooltip.hasClass(disabled)) { return FALSE; } + if(tooltip.hasClass(disabled) || isPositioning || isDrawing) { return FALSE; } // Check if new target was actually the tooltip element var relatedTarget = $(event.relatedTarget || event.target), @@ -461,7 +461,7 @@ function QTip(target, options, id, attr) // Prevent hiding if tooltip is fixed and event target is the tooltip. Or if mouse positioning is enabled and cursor momentarily overlaps if((posOptions.target === 'mouse' && ontoTooltip) || (options.hide.fixed && ((/mouse(out|leave|move)/).test(event.type) && (ontoTooltip || ontoTarget)))) { - event.preventDefault(); return; + event.preventDefault(); event.stopImmediatePropagation(); return; } // If tooltip has displayed, start hide timer @@ -1411,14 +1411,12 @@ function QTip(target, options, id, attr) disable: function(state) { - var c = disabled; - if('boolean' !== typeof state) { - state = !(tooltip.hasClass(c) || cache.disabled); + state = !(tooltip.hasClass(disabled) || cache.disabled); } if(self.rendered) { - tooltip.toggleClass(c, state); + tooltip.toggleClass(disabled, state); $.attr(tooltip[0], 'aria-disabled', state); } else { @@ -1937,7 +1935,7 @@ function Ajax(api) // Make sure default event hasn't been prevented if(event && event.isDefaultPrevented()) { return self; } - var hasSelector = opts.url.indexOf(' '), + var hasSelector = opts.url.indexOf(' '), url = opts.url, selector, hideFirst = opts.once && !opts.loading && first; @@ -1955,6 +1953,9 @@ function Ajax(api) function after() { // Re-display tip if loading and first time, and reset first flag if(hideFirst) { tooltip.css('visibility', ''); first = FALSE; } + + // Call users complete if it was defined + if($.isFunction(opts.complete)) { opts.complete.apply(this, arguments); } } // Define success handler @@ -1972,15 +1973,13 @@ function Ajax(api) // Set the content api.set('content.text', content); - - after(); // Call common callback } // Error handler - function errorHandler(xh, status, error){ api.set('content.text', status + ': ' + error); after(); } + function errorHandler(xh, status, error){ api.set('content.text', status + ': ' + error); } // Setup $.ajax option object and process the request - $.ajax( $.extend({ success: successHandler, error: errorHandler, context: api }, opts, { url: url }) ); + $.ajax( $.extend({ success: successHandler, error: errorHandler, context: api }, opts, { url: url, complete: after }) ); return self; } diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index ec8c1f8d..e2b52637 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: Mon Jul 25 12:30:35 2011 +0100 -*//*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true *//*global window: false, jQuery: false, console: false */(function(a,b,c){function E(b){var c=this,d=b.elements,e=d.tooltip,f=".bgiframe-"+b.id;a.extend(c,{init:function(){d.bgiframe=a(''),d.bgiframe.appendTo(e),e.bind("tooltipmove"+f,c.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,f=d.tip,g,h;h=parseInt(e.css("border-left-width"),10)||0,h={left:-h,top:-h},c&&f&&(g=c.corner.precedance==="x"?["width","left"]:["height","top"],h[g[1]]-=f[g[0]]()),d.bgiframe.css(h).css(a)},destroy:function(){d.bgiframe.remove(),e.unbind(f)}}),c.init()}function D(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o=a(document.body),q;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(b,c,d){var e=b.originalEvent;e&&b.type==="tooltiphide"&&/mouse(leave|enter)/.test(e.type)&&a(e.relatedTarget).closest(q[0]).length?b.preventDefault():f[b.type.replace("tooltip","")](b,d)}).bind("tooltipfocus"+k,function(a,b,c){q[0].style.zIndex=c-1}).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,n=a(this),o=a(document.body),p=this===document?o:n,q=n.metadata?n.metadata(c.metadata):f,r=c.metadata.type==="html5"&&q?q[c.metadata.name]:f,s=n.data(c.metadata.name||"qtipopts");try{s=typeof s==="string"?(new Function("return "+s))():s}catch(t){w("Unable to parse HTML5 attribute data: "+s)}l=a.extend(d,{},g.defaults,c,typeof s==="object"?x(s):f,x(r||q)),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=n.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: ",n);return e}}j.container===e&&(j.container=o),j.target===e&&(j.target=p),l.show.target===e&&(l.show.target=p),l.show.solo===d&&(l.show.solo=o),l.hide.target===e&&(l.hide.target=p),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)n.qtip("destroy");else if(l.overwrite===e)return e;(m=a.attr(this,"title"))&&a(this).removeAttr("title").attr(u,m),i=new y(n,l,b,!!k),a.data(this,"qtip",i),n.bind("remove.qtip",function(){i.destroy()});return i}function y(c,s,t,w){function Q(){var c=[s.show.target[0],s.hide.target[0],y.rendered&&F.tooltip[0],s.position.container[0],s.position.viewport[0],b,document];y.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(E):s.show.target.unbind(E+"-create")}function P(){function r(a){D.is(":visible")&&y.reposition(a)}function p(a){if(D.hasClass(m))return e;clearTimeout(y.timers.inactive),y.timers.inactive=setTimeout(function(){y.hide(a)},s.hide.inactive)}function o(b){if(D.hasClass(m))return e;var c=a(b.relatedTarget||b.target),d=c.closest(n)[0]===D[0],g=c[0]===h.show[0];clearTimeout(y.timers.show),clearTimeout(y.timers.hide);f.target==="mouse"&&d||s.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||g))?b.preventDefault():s.hide.delay>0?y.timers.hide=setTimeout(function(){y.hide(b)},s.hide.delay):y.hide(b)}function l(a){if(D.hasClass(m))return e;h.show.trigger("qtip-"+t+"-inactive"),clearTimeout(y.timers.show),clearTimeout(y.timers.hide);var b=function(){y.toggle(d,a)};s.show.delay>0?y.timers.show=setTimeout(b,s.show.delay):b()}var f=s.position,h={show:s.show.target,hide:s.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+s.show.event).split(" "),hide:a.trim(""+s.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;D.bind("mouseenter"+E+" mouseleave"+E,function(a){var b=a.type==="mouseenter";b&&y.focus(a),D.toggleClass(q,b)}),s.hide.fixed&&(h.hide=h.hide.add(D),D.bind("mouseover"+E,function(){D.hasClass(m)||clearTimeout(y.timers.hide)})),/mouse(out|leave)/i.test(s.hide.event)?s.hide.leave==="window"&&h.window.bind("mouseout"+E,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&y.hide(a)}):/mouse(over|enter)/i.test(s.show.event)&&h.hide.bind("mouseleave"+E,function(a){clearTimeout(y.timers.show)}),(""+s.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+E,function(b){var d=a(b.target),e=!D.hasClass(m)&&D.is(":visible");d[0]!==D[0]&&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(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y));if(b===e)return J(e);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(a){F.title&&(F.titlebar.remove(),F.titlebar=F.title=F.button=f,a!==e&&y.reposition())}function I(){var a=s.style.widget;D.toggleClass(l,a).toggleClass(o,!a),F.content.toggleClass(l+"-content",a),F.titlebar&&F.titlebar.toggleClass(l+"-header",a),F.button&&F.button.toggleClass(k+"-icon",!a)}function H(a){var b=0,c,d=s,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(D[0].id=i,F.content[0].id=i+"-content",F.title[0].id=i+"-title")},"^content.text$":function(a,b,c){O(c)},"^content.title.text$":function(a,b,c){if(!c)return J();!F.title&&c&&L(),N(c)},"^content.title.button$":function(a,b,c){M(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){y.rendered&&D.appendTo(c)},"^show.ready$":function(){y.rendered?y.toggle(d):y.render(1)},"^style.classes$":function(a,b,c){D.attr("class",k+" qtip ui-helper-reset "+c)},"^style.widget|content.title":I,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){D[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var a=s.position;D.attr("tracking",a.target==="mouse"&&a.adjust.mouse),Q(),P()}},a.extend(y,{render:function(b){if(y.rendered)return y;var f=s.content.title.text,g=s.position,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",A),D=F.tooltip=a("
",{id:A,"class":k+" qtip ui-helper-reset "+o+" "+s.style.classes,width:s.style.width||"",tracking:g.target==="mouse"&&g.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":A+"-content","aria-hidden":d}).toggleClass(m,G.disabled).data("qtip",y).appendTo(s.position.container).append(F.content=a("
",{"class":k+"-content",id:A+"-content","aria-atomic":d})),y.rendered=-1,C=1,B=1,f&&(L(),N(f,e)),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,B=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:""}),"string"===typeof h.autofocus&&a(h.autofocus,D).focus())}if(!y.rendered)if(b)y.render(1);else return y;var g=b?"show":"hide",h=s[g],j=D.is(":visible"),k=!c||s[g].target.length<2||G.target[0]===c.target,l=s.position,m=s.content,o,p;(typeof b).search("boolean|number")&&(b=!j);if(!D.is(":animated")&&j===b&&k)return y;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(G.event.type)&&c.target===s.show.target[0]&&D.has(c.relatedTarget).length)return y;G.event=a.extend({},c)}p=a.Event("tooltip"+g),p.originalEvent=c?G.event:f,D.trigger(p,[y,90]);if(p.isDefaultPrevented())return y;a.attr(D[0],"aria-hidden",!b),b?(G.origin=a.extend({},i),y.focus(c),a.isFunction(m.text)&&O(m.text,e),a.isFunction(m.title.text)&&N(m.title.text,e),!v&&l.target==="mouse"&&l.adjust.mouse&&(a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),v=d),y.reposition(c),h.solo&&a(n,h.solo).not(D).qtip("hide",p)):(clearTimeout(y.timers.show),delete G.origin,v&&!a(n+'[tracking="true"]:visible',h.solo).not(D).length&&(a(document).unbind("mousemove.qtip"),v=e),y.blur(c)),k&&D.stop(0,1),h.effect===e?(D[g](),q.call(D)):a.isFunction(h.effect)?(h.effect.call(D,y),D.queue("fx",function(a){q(),a()})):D.fadeTo(90,b?1:0,q),b&&h.target.trigger("qtip-"+t+"-inactive");return y},show:function(a){return y.toggle(d,a)},hide:function(a){return y.toggle(e,a)},focus:function(b){if(!y.rendered)return y;var c=a(n),d=parseInt(D[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;D.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,D.trigger(i,[y,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+p).qtip("blur",f)),D.addClass(p)[0].style.zIndex=e));return y},blur:function(b){var c=a.extend({},b),d;D.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,D.trigger(d,[y]);return y},reposition:function(c,d){if(!y.rendered||B)return y;B=1;var f=s.position.target,g=s.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=D.outerWidth(),p=D.outerHeight(),q=0,r=0,t=a.Event("tooltipmove"),u=D.css("position")==="fixed",v=g.viewport,w={left:0,top:0},x=y.plugins.tip,A={horizontal:n[0],vertical:n[1]||n[0],left:function(a){var b=A.horizontal==="shift",c=v.offset.left+v.scrollLeft,d=j.x==="left"?o:j.x==="right"?-o:-o/2,e=l.x==="left"?q:l.x==="right"?-q:-q/2,f=x&&x.size?x.size.width||0:0,g=x&&x.corner&&x.corner.precedance==="x"&&!b?f:0,h=c-a+g,i=a+o-v.width-c+g,k=d-(j.precedance==="x"||j.x===j.y?e:0),n=j.x==="center";b?(g=x&&x.corner&&x.corner.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,w.left+=h>0?h:i>0?-i:0,w.left=Math.max(v.offset.left+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),w.left))):(h>0&&(j.x!=="left"||i>0)?w.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(w.left-=n?-k:k+2*m.x),w.left!==a&&n&&(w.left-=m.x),w.lefti&&(w.left=a));return w.left-a},top:function(a){var b=A.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?r:l.y==="bottom"?-r:-r/2,f=x&&x.size?x.size.height||0:0,g=x&&x.corner&&x.corner.precedance==="y"&&!b?f:0,h=c-a+g,i=a+p-v.height-c+g,k=d-(j.precedance==="y"||j.x===j.y?e:0),n=j.y==="center";b?(g=x&&x.corner&&x.corner.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,w.top+=h>0?h:i>0?-i:0,w.top=Math.max(v.offset.top+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),w.top))):(h>0&&(j.y!=="top"||i>0)?w.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(w.top-=n?-k:k+2*m.y),w.top!==a&&n&&(w.top-=m.y),w.top<0&&-w.top>i&&(w.top=a));return w.top-a}};if(a.isArray(f)&&f.length===2)l={x:"left",y:"top"},w={left:f[0],top:f[1]};else if(f==="mouse"&&(c&&c.pageX||G.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?G.event:c&&c.pageX&&c.type==="mousemove"?c:i&&i.pageX&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:!m.mouse&&G.origin&&G.origin.pageX?G.origin:c,w={top:c.pageY,left:c.pageX};else{f==="event"?c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=G.target=a(c.target):f=G.target:G.target=a(f),f=a(f).eq(0);if(f.length===0)return y;f[0]===document||f[0]===b?(q=h.iOS?b.innerWidth:f.width(),r=h.iOS?b.innerHeight:f.height(),f[0]===b&&(w={top:!u||h.iOS?(v||f).scrollTop():0,left:!u||h.iOS?(v||f).scrollLeft():0})):f.is("area")&&h.imagemap?w=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?w=h.svg(f,l):(q=f.outerWidth(),r=f.outerHeight(),w=h.offset(f,g.container,u)),w.offset&&(q=w.width,r=w.height,w=w.offset),w.left+=l.x==="right"?q:l.x==="center"?q/2:0,w.top+=l.y==="bottom"?r:l.y==="center"?r/2:0}w.left+=m.x+(j.x==="right"?-o:j.x==="center"?-o/2:0),w.top+=m.y+(j.y==="bottom"?-p:j.y==="center"?-p/2:0),v.jquery&&f[0]!==b&&f[0]!==z&&A.vertical+A.horizontal!=="nonenone"?(v={elem:v,height:v[(v[0]===b?"h":"outerH")+"eight"](),width:v[(v[0]===b?"w":"outerW")+"idth"](),scrollLeft:u?0:v.scrollLeft(),scrollTop:u?0:v.scrollTop(),offset:v.offset()||{left:0,top:0}},w.adjusted={left:A.horizontal!=="none"?A.left(w.left):0,top:A.vertical!=="none"?A.top(w.top):0}):w.adjusted={left:0,top:0},D.attr("class",function(b,c){return a.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(k+"-pos-"+j.abbreviation()),t.originalEvent=a.extend({},c),D.trigger(t,[y,w,v.elem||v]);if(t.isDefaultPrevented())return y;delete w.adjusted,d===e||isNaN(w.left)||isNaN(w.top)||f==="mouse"||!a.isFunction(g.effect)?D.css(w):a.isFunction(g.effect)&&(g.effect.call(D,y,a.extend({},w)),D.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),B=0;return y},redraw:function(){if(y.rendered<1||C)return y;var a=s.position.container,b,c,d,e;C=1,s.style.width?D.css("width",s.style.width):(D.css("width","").addClass(r),c=D.width()+1,d=D.css("max-width")||"",e=D.css("min-width")||"",b=(d+e).indexOf("%")>-1?a.width()/100:0,d=(d.indexOf("%")>-1?b:1)*parseInt(d,10)||c,e=(e.indexOf("%")>-1?b:1)*parseInt(e,10)||0,c=d+e?Math.min(Math.max(c,e),d):c,D.css("width",Math.round(c)).removeClass(r)),C=0;return y},disable:function(b){var c=m;"boolean"!==typeof b&&(b=!D.hasClass(c)&&!G.disabled),y.rendered?(D.toggleClass(c,b),a.attr(D[0],"aria-disabled",b)):G.disabled=!!b;return y},enable:function(){return y.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,u);y.rendered&&(D.remove(),a.each(y.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(y.timers.show),clearTimeout(y.timers.hide),Q(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(u)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[y.id];return c}})}function x(b){var c;if(!b||"object"!==typeof b)return e;"object"!==typeof b.metadata&&(b.metadata={type:b.metadata});if("content"in b){if("object"!==typeof b.content||b.content.jquery)b.content={text:b.content};c=b.content.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.text=e),"title"in b.content&&("object"!==typeof b.content.title&&(b.content.title={text:b.content.title}),c=b.content.title.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.title.text=e))}"position"in b&&("object"!==typeof b.position&&(b.position={my:b.position,at:b.position})),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function w(){w.history=w.history||[],w.history.push(arguments);if("object"===typeof console){var a=console[console.warn?"warn":"log"],b=Array.prototype.slice.call(arguments),c;typeof arguments[0]==="string"&&(b[0]="qTip2: "+b[0]),c=a.apply?a.apply(console,b):a(b)}}"use strict";var d=!0,e=!1,f=null,g,h,i,j={},k="ui-tooltip",l="ui-widget",m="ui-state-disabled",n="div.qtip."+k,o=k+"-default",p=k+"-focus",q=k+"-hover",r=k+"-fluid",s="-31000px",t="_replacedByqTip",u="oldtitle",v;g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=x(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(i){function q(b){function d(){o.render(typeof b==="object"||k.show.ready),l.show.add(l.hide).unbind(n)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),o.cache.target=b?a(b.target):[c],k.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(d,k.show.delay),m.show!==m.hide&&l.hide.bind(m.hide,function(){clearTimeout(o.timers.show)})):d()}var k,l,m,n,o,p;p=a.isArray(b.id)?b.id[i]:b.id,p=!p||p===e||p.length<1||j[p]?g.nextid++:j[p]=p,n=".qtip-"+p+"-create",o=z.call(this,p,b);if(o===e)return d;k=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),l={show:k.show.target,hide:k.hide.target},m={show:a.trim(""+k.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+k.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(m.show)&&!/mouse(out|leave)/i.test(m.hide)&&(m.hide+=" mouseleave"+n),l.show.bind(m.show,q),(k.show.ready||k.prerender)&&q(f)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{g.css("position")!=="static"&&(k=g[0]===j?{left:parseInt(g.css("left"),10)||0,top:parseInt(g.css("top"),10)||0}:g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++);if(g[0]===j)break}while(g=g.offsetParent());d[0]!==j&&i>1&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,u);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+t].apply(this,arguments),a.attr(d,u,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+t].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,u)),this.removeAttribute(u)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+t]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:function(b,c,d){a(this).animate(c,{duration:200,queue:e})}},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e,autofocus:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new A(a)},h.ajax.initialize="render",h.ajax.sanitize=function(a){var b=a.content,c;b&&"ajax"in b&&(c=b.ajax,typeof c!=="object"&&(c=a.content.ajax={url:c}),"boolean"!==typeof c.once&&c.once&&(c.once=!!c.once))},a.extend(d,g.defaults,{content:{ajax:{loading:d,once:d}}}),h.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new C(a)},h.tip.initialize="render",h.tip.sanitize=function(a){var b=a.style,c;b&&"tip"in b&&(c=a.style.tip,typeof c!=="object"&&(a.style.tip={corner:c}),/string|boolean/i.test(typeof c.corner)||(c.corner=d),typeof c.width!=="number"&&delete c.width,typeof c.height!=="number"&&delete c.height,typeof c.border!=="number"&&c.border!==d&&delete c.border,typeof c.offset!=="number"&&delete c.offset)},a.extend(d,g.defaults,{style:{tip:{corner:d,mimic:e,width:6,height:6,border:d,offset:0}}}),h.imagemap=function(b,c){function l(a,b){var d=0,e=1,f=1,g=0,h=0,i=a.width,j=a.height;while(i>0&&j>0&&e>0&&f>0){i=Math.floor(i/2),j=Math.floor(j/2),c.x==="left"?e=i:c.x==="right"?e=a.width-i:e+=Math.floor(i/2),c.y==="top"?f=j:c.y==="bottom"?f=a.height-j:f+=Math.floor(j/2),d=b.length;while(d--){if(b.length<2)break;g=b[d][0]-a.offset.left,h=b[d][1]-a.offset.top,(c.x==="left"&&g>=e||c.x==="right"&&g<=e||c.x==="center"&&(ga.width-e)||c.y==="top"&&h>=f||c.y==="bottom"&&h<=f||c.y==="center"&&(ha.height-f))&&b.splice(d,1)}}return{left:b[0][0],top:b[0][1]}}b.jquery||(b=a(b));var d=b.attr("shape").toLowerCase(),e=b.attr("coords").split(","),f=[],g=a('img[usemap="#'+b.parent("map").attr("name")+'"]'),h=g.offset(),i={width:0,height:0,offset:{top:1e10,right:0,bottom:0,left:1e10}},j=0,k=0;h.left+=Math.ceil((g.outerWidth()-g.width())/2),h.top+=Math.ceil((g.outerHeight()-g.height())/2);if(d==="poly"){j=e.length;while(j--)k=[parseInt(e[--j],10),parseInt(e[j+1],10)],k[0]>i.offset.right&&(i.offset.right=k[0]),k[0]i.offset.bottom&&(i.offset.bottom=k[1]),k[1]'),d.bgiframe.appendTo(e),e.bind("tooltipmove"+f,c.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,f=d.tip,g,h;h=parseInt(e.css("border-left-width"),10)||0,h={left:-h,top:-h},c&&f&&(g=c.corner.precedance==="x"?["width","left"]:["height","top"],h[g[1]]-=f[g[0]]()),d.bgiframe.css(h).css(a)},destroy:function(){d.bgiframe.remove(),e.unbind(f)}}),c.init()}function D(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o=a(document.body),q;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(b,c,d){var e=b.originalEvent;e&&b.type==="tooltiphide"&&/mouse(leave|enter)/.test(e.type)&&a(e.relatedTarget).closest(q[0]).length?b.preventDefault():f[b.type.replace("tooltip","")](b,d)}).bind("tooltipfocus"+k,function(a,b,c){q[0].style.zIndex=c-1}).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)}function o(c){l&&(c=a("
").append(c.replace(i,"")).find(l)),b.set("content.text",c)}function n(){m&&(f.css("visibility",""),h=e),a.isFunction(g.complete)&&g.complete.apply(this,arguments)}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,complete:n}));return c}}),c.init()}function z(b,c){var i,j,k,l,m,n=a(this),o=a(document.body),p=this===document?o:n,q=n.metadata?n.metadata(c.metadata):f,r=c.metadata.type==="html5"&&q?q[c.metadata.name]:f,s=n.data(c.metadata.name||"qtipopts");try{s=typeof s==="string"?(new Function("return "+s))():s}catch(t){w("Unable to parse HTML5 attribute data: "+s)}l=a.extend(d,{},g.defaults,c,typeof s==="object"?x(s):f,x(r||q)),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=n.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: ",n);return e}}j.container===e&&(j.container=o),j.target===e&&(j.target=p),l.show.target===e&&(l.show.target=p),l.show.solo===d&&(l.show.solo=o),l.hide.target===e&&(l.hide.target=p),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)n.qtip("destroy");else if(l.overwrite===e)return e;(m=a.attr(this,"title"))&&a(this).removeAttr("title").attr(u,m),i=new y(n,l,b,!!k),a.data(this,"qtip",i),n.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)||B||C)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(),b.stopImmediatePropagation()):s.hide.delay>0?y.timers.hide=setTimeout(function(){y.hide(b)},s.hide.delay):y.hide(b)}function l(a){if(D.hasClass(m))return e;h.show.trigger("qtip-"+t+"-inactive"),clearTimeout(y.timers.show),clearTimeout(y.timers.hide);var b=function(){y.toggle(d,a)};s.show.delay>0?y.timers.show=setTimeout(b,s.show.delay):b()}var f=s.position,h={show:s.show.target,hide:s.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+s.show.event).split(" "),hide:a.trim(""+s.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;D.bind("mouseenter"+E+" mouseleave"+E,function(a){var b=a.type==="mouseenter";b&&y.focus(a),D.toggleClass(q,b)}),s.hide.fixed&&(h.hide=h.hide.add(D),D.bind("mouseover"+E,function(){D.hasClass(m)||clearTimeout(y.timers.hide)})),/mouse(out|leave)/i.test(s.hide.event)?s.hide.leave==="window"&&h.window.bind("mouseout"+E,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&y.hide(a)}):/mouse(over|enter)/i.test(s.show.event)&&h.hide.bind("mouseleave"+E,function(a){clearTimeout(y.timers.show)}),(""+s.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+E,function(b){var d=a(b.target),e=!D.hasClass(m)&&D.is(":visible");d[0]!==D[0]&&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(!y.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,G.event,y));if(b===e)return J(e);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(a){F.title&&(F.titlebar.remove(),F.titlebar=F.title=F.button=f,a!==e&&y.reposition())}function I(){var a=s.style.widget;D.toggleClass(l,a).toggleClass(o,!a),F.content.toggleClass(l+"-content",a),F.titlebar&&F.titlebar.toggleClass(l+"-header",a),F.button&&F.button.toggleClass(k+"-icon",!a)}function H(a){var b=0,c,d=s,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(D[0].id=i,F.content[0].id=i+"-content",F.title[0].id=i+"-title")},"^content.text$":function(a,b,c){O(c)},"^content.title.text$":function(a,b,c){if(!c)return J();!F.title&&c&&L(),N(c)},"^content.title.button$":function(a,b,c){M(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){y.rendered&&D.appendTo(c)},"^show.ready$":function(){y.rendered?y.toggle(d):y.render(1)},"^style.classes$":function(a,b,c){D.attr("class",k+" qtip ui-helper-reset "+c)},"^style.widget|content.title":I,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){D[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var a=s.position;D.attr("tracking",a.target==="mouse"&&a.adjust.mouse),Q(),P()}},a.extend(y,{render:function(b){if(y.rendered)return y;var f=s.content.title.text,g=s.position,i=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",A),D=F.tooltip=a("
",{id:A,"class":k+" qtip ui-helper-reset "+o+" "+s.style.classes,width:s.style.width||"",tracking:g.target==="mouse"&&g.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":A+"-content","aria-hidden":d}).toggleClass(m,G.disabled).data("qtip",y).appendTo(s.position.container).append(F.content=a("
",{"class":k+"-content",id:A+"-content","aria-atomic":d})),y.rendered=-1,C=1,B=1,f&&(L(),N(f,e)),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,B=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:""}),"string"===typeof h.autofocus&&a(h.autofocus,D).focus())}if(!y.rendered)if(b)y.render(1);else return y;var g=b?"show":"hide",h=s[g],j=D.is(":visible"),k=!c||s[g].target.length<2||G.target[0]===c.target,l=s.position,m=s.content,o,p;(typeof b).search("boolean|number")&&(b=!j);if(!D.is(":animated")&&j===b&&k)return y;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(G.event.type)&&c.target===s.show.target[0]&&D.has(c.relatedTarget).length)return y;G.event=a.extend({},c)}p=a.Event("tooltip"+g),p.originalEvent=c?G.event:f,D.trigger(p,[y,90]);if(p.isDefaultPrevented())return y;a.attr(D[0],"aria-hidden",!b),b?(G.origin=a.extend({},i),y.focus(c),a.isFunction(m.text)&&O(m.text,e),a.isFunction(m.title.text)&&N(m.title.text,e),!v&&l.target==="mouse"&&l.adjust.mouse&&(a(document).bind("mousemove.qtip",function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),v=d),y.reposition(c),h.solo&&a(n,h.solo).not(D).qtip("hide",p)):(clearTimeout(y.timers.show),delete G.origin,v&&!a(n+'[tracking="true"]:visible',h.solo).not(D).length&&(a(document).unbind("mousemove.qtip"),v=e),y.blur(c)),k&&D.stop(0,1),h.effect===e?(D[g](),q.call(D)):a.isFunction(h.effect)?(h.effect.call(D,y),D.queue("fx",function(a){q(),a()})):D.fadeTo(90,b?1:0,q),b&&h.target.trigger("qtip-"+t+"-inactive");return y},show:function(a){return y.toggle(d,a)},hide:function(a){return y.toggle(e,a)},focus:function(b){if(!y.rendered)return y;var c=a(n),d=parseInt(D[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;D.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,D.trigger(i,[y,e]),i.isDefaultPrevented()||(d!==e&&(c.each(function(){this.style.zIndex>d&&(this.style.zIndex=this.style.zIndex-1)}),c.filter("."+p).qtip("blur",f)),D.addClass(p)[0].style.zIndex=e));return y},blur:function(b){var c=a.extend({},b),d;D.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,D.trigger(d,[y]);return y},reposition:function(c,d){if(!y.rendered||B)return y;B=1;var f=s.position.target,g=s.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=D.outerWidth(),p=D.outerHeight(),q=0,r=0,t=a.Event("tooltipmove"),u=D.css("position")==="fixed",v=g.viewport,w={left:0,top:0},x=y.plugins.tip,A={horizontal:n[0],vertical:n[1]||n[0],left:function(a){var b=A.horizontal==="shift",c=v.offset.left+v.scrollLeft,d=j.x==="left"?o:j.x==="right"?-o:-o/2,e=l.x==="left"?q:l.x==="right"?-q:-q/2,f=x&&x.size?x.size.width||0:0,g=x&&x.corner&&x.corner.precedance==="x"&&!b?f:0,h=c-a+g,i=a+o-v.width-c+g,k=d-(j.precedance==="x"||j.x===j.y?e:0),n=j.x==="center";b?(g=x&&x.corner&&x.corner.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,w.left+=h>0?h:i>0?-i:0,w.left=Math.max(v.offset.left+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),w.left))):(h>0&&(j.x!=="left"||i>0)?w.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(w.left-=n?-k:k+2*m.x),w.left!==a&&n&&(w.left-=m.x),w.lefti&&(w.left=a));return w.left-a},top:function(a){var b=A.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?r:l.y==="bottom"?-r:-r/2,f=x&&x.size?x.size.height||0:0,g=x&&x.corner&&x.corner.precedance==="y"&&!b?f:0,h=c-a+g,i=a+p-v.height-c+g,k=d-(j.precedance==="y"||j.x===j.y?e:0),n=j.y==="center";b?(g=x&&x.corner&&x.corner.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,w.top+=h>0?h:i>0?-i:0,w.top=Math.max(v.offset.top+(g&&x.corner.x==="center"?x.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),w.top))):(h>0&&(j.y!=="top"||i>0)?w.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(w.top-=n?-k:k+2*m.y),w.top!==a&&n&&(w.top-=m.y),w.top<0&&-w.top>i&&(w.top=a));return w.top-a}};if(a.isArray(f)&&f.length===2)l={x:"left",y:"top"},w={left:f[0],top:f[1]};else if(f==="mouse"&&(c&&c.pageX||G.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?G.event:c&&c.pageX&&c.type==="mousemove"?c:i&&i.pageX&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:!m.mouse&&G.origin&&G.origin.pageX?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){"boolean"!==typeof b&&(b=!D.hasClass(m)&&!G.disabled),y.rendered?(D.toggleClass(m,b),a.attr(D[0],"aria-disabled",b)):G.disabled=!!b;return y},enable:function(){return y.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,u);y.rendered&&(D.remove(),a.each(y.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(y.timers.show),clearTimeout(y.timers.hide),Q(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(u)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[y.id];return c}})}function x(b){var c;if(!b||"object"!==typeof b)return e;"object"!==typeof b.metadata&&(b.metadata={type:b.metadata});if("content"in b){if("object"!==typeof b.content||b.content.jquery)b.content={text:b.content};c=b.content.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.text=e),"title"in b.content&&("object"!==typeof b.content.title&&(b.content.title={text:b.content.title}),c=b.content.title.text||e,!a.isFunction(c)&&(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)&&(b.content.title.text=e))}"position"in b&&("object"!==typeof b.position&&(b.position={my:b.position,at:b.position})),"show"in b&&("object"!==typeof b.show&&(b.show.jquery?b.show={target:b.show}:b.show={event:b.show})),"hide"in b&&("object"!==typeof b.hide&&(b.hide.jquery?b.hide={target:b.hide}:b.hide={event:b.hide})),"style"in b&&("object"!==typeof b.style&&(b.style={classes:b.style})),a.each(h,function(){this.sanitize&&this.sanitize(b)});return b}function w(){w.history=w.history||[],w.history.push(arguments);if("object"===typeof console){var a=console[console.warn?"warn":"log"],b=Array.prototype.slice.call(arguments),c;typeof arguments[0]==="string"&&(b[0]="qTip2: "+b[0]),c=a.apply?a.apply(console,b):a(b)}}"use strict";var d=!0,e=!1,f=null,g,h,i,j={},k="ui-tooltip",l="ui-widget",m="ui-state-disabled",n="div.qtip."+k,o=k+"-default",p=k+"-focus",q=k+"-hover",r=k+"-fluid",s="-31000px",t="_replacedByqTip",u="oldtitle",v;g=a.fn.qtip=function(b,h,i){var j=(""+b).toLowerCase(),k=f,l=j==="disable"?[d]:a.makeArray(arguments).slice(1),m=l[l.length-1],n=this[0]?a.data(this[0],"qtip"):f;if(!arguments.length&&n||j==="api")return n;if("string"===typeof b){this.each(function(){var b=a.data(this,"qtip");if(!b)return d;m&&m.timeStamp&&(b.cache.event=m);if(j!=="option"&&j!=="options"||!h)b[j]&&b[j].apply(b[j],l);else if(a.isPlainObject(h)||i!==c)b.set(h,i);else{k=b.get(h);return e}});return k!==f?k:this}if("object"===typeof b||!arguments.length){n=x(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(i){function q(b){function d(){o.render(typeof b==="object"||k.show.ready),l.show.add(l.hide).unbind(n)}if(o.cache.disabled)return e;o.cache.event=a.extend({},b),o.cache.target=b?a(b.target):[c],k.show.delay>0?(clearTimeout(o.timers.show),o.timers.show=setTimeout(d,k.show.delay),m.show!==m.hide&&l.hide.bind(m.hide,function(){clearTimeout(o.timers.show)})):d()}var k,l,m,n,o,p;p=a.isArray(b.id)?b.id[i]:b.id,p=!p||p===e||p.length<1||j[p]?g.nextid++:j[p]=p,n=".qtip-"+p+"-create",o=z.call(this,p,b);if(o===e)return d;k=o.options,a.each(h,function(){this.initialize==="initialize"&&this(o)}),l={show:k.show.target,hide:k.hide.target},m={show:a.trim(""+k.show.event).replace(/ /g,n+" ")+n,hide:a.trim(""+k.hide.event).replace(/ /g,n+" ")+n},/mouse(over|enter)/i.test(m.show)&&!/mouse(out|leave)/i.test(m.hide)&&(m.hide+=" mouseleave"+n),l.show.bind(m.show,q),(k.show.ready||k.prerender)&&q(f)})},h=g.plugins={Corner:function(a){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},offset:function(c,d,e){function l(a,b){f.left+=b*a.scrollLeft(),f.top+=b*a.scrollTop()}var f=c.offset(),g=d,i=0,j=document.body,k;if(g){do{g.css("position")!=="static"&&(k=g[0]===j?{left:parseInt(g.css("left"),10)||0,top:parseInt(g.css("top"),10)||0}:g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++);if(g[0]===j)break}while(g=g.offsetParent());d[0]!==j&&i>1&&l(d,1),(h.iOS<4.1&&h.iOS>3.1||!h.iOS&&e)&&l(a(b),-1)}return f},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||e,fn:{attr:function(b,c){if(this.length){var d=this[0],e="title",f=a.data(d,"qtip");if(b===e){if(arguments.length<2)return a.attr(d,u);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+t].apply(this,arguments),a.attr(d,u,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+t].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,u)),this.removeAttribute(u)}).end();return e},remove:a.ui?f:function(b,c){a(this).each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(this).each(function(){a(this).triggerHandler("remove")})})}}},a.each(h.fn,function(b,c){if(!c)return d;var e=a.fn[b+t]=a.fn[b];a.fn[b]=function(){return c.apply(this,arguments)||e.apply(this,arguments)}}),g.version="2.0.0pre",g.nextid=0,g.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),g.zindex=15e3,g.defaults={prerender:e,id:e,overwrite:d,content:{text:d,attr:"title",title:{text:e,button:e}},position:{my:"top left",at:"bottom right",target:e,container:e,viewport:e,adjust:{x:0,y:0,mouse:d,resize:d,method:"flip flip"},effect:function(b,c,d){a(this).animate(c,{duration:200,queue:e})}},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e,autofocus: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=W,d=b.30,e=d.1y,f=".24-"+b.1x;a.1q(c,{1W:7(){d.24=a(\'<5N 21="1B-1y-24" 8h="0" 8i="-1" 8j="8b:\\\'\\\';" 18="2R:2Y; 17:4O; z-89:-1; 2H:8c(4u=0); -8m-2H:"84:8o.8p.8q(8s=0)";">\'),d.24.3f(e),e.1a("4p"+f,c.1P)},1P:7(){T a=b.3Z("5i"),c=b.1M.1f,f=d.1f,g,h;h=1A(e.15("1g-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1e.1j==="x"?["Y","R"]:["14","9"],h[g[1]]-=f[g[0]]()),d.24.15(h).15(a)},2i:7(){d.24.1V(),e.1u(f)}}),c.1W()}7 D(c){T f=W,g=c.2k.U.1D,h=c.30,i=h.1y,j="#1i-2I",k=".8u",l=k+c.1x,m="1I-1D-1i",o=a(1E.3m),q;c.2V.1D={"^U.1D.(2M|2e)$":7(){f.1W(),h.2I.1J(i.1I(":1S"))}},a.1q(f,{1W:7(){X(!g.2M)S f;q=f.2E(),i.1b(m,d).1u(k).1u(l).1a("4f"+k+" 4g"+k,7(b,c,d){T e=b.36;e&&b.1w==="4g"&&/1s(2o|3T)/.1z(e.1w)&&a(e.3d).4a(q[0]).19?b.5g():f[b.1w.2f("1y","")](b,d)}).1a("5q"+k,7(a,b,c){q[0].18.33=c-1}).1a("5r"+k,7(b){a("["+m+"]:1S").2m(i).5O().1i("28",b)}),g.4J&&a(b).1u(l).1a("58"+l,7(a){a.8v===27&&i.1O(p)&&c.V(a)}),g.2e&&h.2I.1u(l).1a("42"+l,7(a){i.1O(p)&&c.V(a)});S f},2E:7(){T c=a(j);X(c.19){h.2I=c;S c}q=h.2I=a("<25 />",{1x:j.2S(1),2L:"<25>",3B:7(){S e}}).56(a(n).5O()),a(b).1u(k).1a("2u"+k,7(){q.15({14:a(b).14(),Y:a(b).Y()})}).5j("2u");S q},1J:7(b,c,h){X(b&&b.3q())S f;T j=g.1Z,k=c?"U":"V",p=q.1I(":1S"),r=a("["+m+"]:1S").2m(i),s;q||(q=f.2E());X(q.1I(":5m")&&p===c||!c&&r.19)S f;c?(q.15({R:0,9:0}),q.1R("8w",g.2e),o.8x("*","4e"+l,7(b){a(b.13).4a(n)[0]!==i[0]&&a("a, :7y, 2Z",i).2p(i).28()})):o.4D("*","4e"+l),q.5n(d,e),a.1T(j)?j.1U(q,c):j===e?q[k]():q.5p(1A(h,10)||3S,c?1:0,7(){c||a(W).V()}),c||q.38(7(a){q.15({R:"",9:""}),a()});S f},U:7(a,b){S f.1J(a,d,b)},V:7(a,b){S f.1J(a,e,b)},2i:7(){T d=q;d&&(d=a("["+m+"]").2m(i).19<1,d?(h.2I.1V(),a(b).1u(k)):h.2I.1u(k+c.1x),o.4D("*","4e"+l));S i.3i(m).1u(k)}}),f.1W()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"14"],d=n[b?"14":"Y"],e=a.1r().2N("1k")>-1,f=c*(e?.5:1),g=1d.5R,h=1d.3R,i,j,k,l=1d.46(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.46(g(m[0],2)-g(p,2)),m[3]=1d.46(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{14:k[b?0:1],Y:k[b?1:0]}}7 v(b){T c=k.1G&&b.y==="9",d=c?k.1G:k.12,e=a.2h.5S,f=e?"-5U-":a.2h.4E?"-4E-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1g-4F-"+g:"1g-"+g+"-4F");S 1A(d.15(h),10)||1A(l.15(h),10)||0}7 u(a,b,c){b=b?b:a[a.1j];T d=l.1O(r),e=k.1G&&a.y==="9",f=e?k.1G:k.12,g="1g-"+b+"-Y",h;l.3s(r),h=1A(f.15(g),10),h=(c?h||1A(l.15(g),10):h)||0,l.1R(r,d);S h}7 t(f,g,h,l){X(k.1f){T n=a.1q({},i.1e),o=h.3O,p=b.2k.17.1P.4v.2K(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1e.2w!==d&&(q==="2y"&&n.1j==="x"&&o.R&&n.y!=="1k"?n.1j=n.1j==="x"?"y":"x":q==="3P"&&o.R&&(n.x=n.x==="1k"?o.R>0?"R":"1p":n.x==="R"?"1p":"R"),r==="2y"&&n.1j==="y"&&o.9&&n.x!=="1k"?n.1j=n.1j==="y"?"x":"y":r==="3P"&&o.9&&(n.y=n.y==="1k"?o.9>0?"9":"1n":n.y==="9"?"1n":"9"),n.1r()!==m.1e&&(m.9!==o.9||m.R!==o.R)&&i.3x(n,e)),t=i.17(n,o),t.1p!==c&&(t.R=-t.1p),t.1n!==c&&(t.9=-t.1n),t.4c=1d.2a(0,j.11);X(s.R=q==="2y"&&!!o.R)n.x==="1k"?u["2T-R"]=s.x=t["2T-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==="2y"&&!!o.9)n.y==="1k"?u["2T-9"]=s.y=t["2T-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.1f.15(u).1J(!(s.x&&s.y||n.x==="1k"&&s.y||n.y==="1k"&&s.x)),h.R-=t.R.3t?t.4c:q!=="2y"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3t?t.4c:r!=="2y"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1e=n.1r()}}T i=W,j=b.2k.18.1f,k=b.30,l=k.1y,m={9:0,R:0,1e:""},n={Y:j.Y,14:j.14},o={},p=j.1g||0,q=".1i-1f",s=!!(a("<55 />")[0]||{}).40;i.1e=f,i.3D=f,i.1g=p,i.11=j.11,i.34=n,b.2V.1f={"^17.1X|18.1f.(1e|3D|1g)$":7(){i.1W()||i.2i(),b.26()},"^18.1f.(14|Y)$":7(){n={Y:j.Y,14:j.14},i.2E(),i.3x(),b.26()},"^12.1c.1o|18.(3g|2t)$":7(){k.1f&&i.3x()}},a.1q(i,{1W:7(){T b=i.4Z()&&(s||a.2h.3e);b&&(i.2E(),i.3x(),l.1u(q).1a("4p"+q,t));S b},4Z:7(){T a=j.1e,c=b.2k.17,f=c.2C,g=c.1X.1r?c.1X.1r():c.1X;X(a===e||g===e&&f===e)S e;a===d?i.1e=1L h.2G(g):a.1r||(i.1e=1L h.2G(a),i.1e.2w=d);S i.1e.1r()!=="5J"},4N:7(){T c,d,e,f=k.1f.15({72:"",1g:""}),g=i.1e,h=g[g.1j],m="1g-"+h+"-3u",p="1g"+h.3t(0)+h.2S(1)+"5W",q=/5X?\\(0, 0, 0(, 0)?\\)|3A/i,s="6C-3u",t="3A",u=a(1E.3m).15("3u"),v=b.30.12.15("3u"),w=k.1G&&(g.y==="9"||g.y==="1k"&&f.17().9+n.14/2+j.11",{"21":"1B-1y-1f"}).15({Y:b,14:c}).6P(l),s?a("<55 />").3f(k.1f)[0].40("2d").4I():(d=\'<43:47 60="0,0" 18="2R:5A-2Y; 17:4O; 5B:2D(#3z#4Q);">\',k.1f.2L(d+d))},3x:7(b,c){T g=k.1f,l=g.62(),m=n.Y,q=n.14,r="44 63 ",t="44 64 3A",v=j.3D,x=1d.3R,y,z,A,C,D;b||(b=i.1e),v===e?v=b:(v=1L h.2G(v),v.1j=b.1j,v.x==="3K"?v.x=b.x:v.y==="3K"?v.y=b.y:v.x===v.y&&(v[b.1j]=b[b.1j])),y=v.1j,i.4N(),o.1g!=="3A"&&o.1g!=="#65"?(p=u(b,f,d),j.1g===0&&p>0&&(o.2B=o.1g),i.1g=p=j.1g!==d?j.1g:p):i.1g=p=0,A=B(v,m,q),i.34=D=w(b),g.15(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.14-q:0)]:C=[x(v.x==="R"?D.Y-m:0),x(v.y==="9"?p:v.y==="1n"?D.14-q-p:(D.14-q)/2)],s?(l.1b(D),z=l[0].40("2d"),z.66(),z.4I(),z.68(0,0,4H,4H),z.69(C[0],C[1]),z.6a(),z.6b(A[0][0],A[0][1]),z.5M(A[1][0],A[1][1]),z.5M(A[2][0],A[2][1]),z.6c(),z.6d=o.2B,z.8t=o.1g,z.6e=p*2,z.6f="4P",z.6g=5H,p&&z.4M(),z.2B()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" 6h",C[2]=p&&/^(r|b)/i.1z(b.1r())?5k(a.2h.3L,10)===8?2:1:0,l.15({6j:""+(v.1r().2N("1k")>-1),R:C[0]-C[2]*4L(y==="x"),9:C[1]-C[2]*4L(y==="y"),Y:m+p,14:q+p}).1t(7(b){T c=a(W);c[c.5L?"5L":"1b"]({6k:m+p+" "+(q+p),6l:A,6m:o.2B,6n:!!b,6o:!b}).15({2R:p||b?"2Y":"4t"}),!b&&c.2L()===""&&c.2L(\'<43:4M 6q="\'+p*2+\'44" 3u="\'+o.1g+\'" 6r="6s" 6t="4P" 18="5B:2D(#3z#4Q); 2R:5A-2Y;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1f,f={},g=1d.2a(0,j.11),h,l,m;X(j.1e===e||!c)S e;b=b||i.1e,h=b.1j,l=w(b),m=[b.x,b.y],h==="x"&&m.6u(),a.1t(m,7(a,c){T e,i;c==="1k"?(e=h==="y"?"R":"9",f[e]="50%",f["2T-"+e]=-1d.3R(l[h==="y"?"Y":"14"]/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":"14"],c.15({9:"",1n:"",R:"",1p:"",2T:""}).15(f);S f},2i:7(){k.1f&&k.1f.1V(),l.1u(q)}}),i.1W()}7 B(a,b,c){T d=1d.3J(b/2),e=1d.3J(c/2),f={4T:[[0,0],[b,c],[b,0]],4U:[[0,0],[b,0],[0,c]],4V:[[0,c],[b,0],[b,c]],5u:[[0,0],[0,c],[b,c]],6w:[[0,c],[d,0],[b,c]],6x:[[0,0],[b,0],[d,c]],7X:[[0,0],[b,e],[0,c]],6y:[[b,0],[b,c],[0,e]]};f.6z=f.4T,f.6A=f.4U,f.6B=f.4V,f.6D=f.5u;S f[a.1r()]}7 A(b){T c=W,f=b.30.1y,g=b.2k.12.1F,h=".1i-1F",i=/<45\\b[^<]*(?:(?!<\\/45>)<[^<]*)*<\\/45>/4R,j=d;b.2V.1F={"^12.1F":7(a,b,d){b==="1F"&&(g=d),b==="2A"?c.1W():g&&g.2D?c.3C():f.1u(h)}},a.1q(c,{1W:7(){g&&g.2D&&f.1u(h)[g.2A?"6E":"1a"]("4f"+h,c.3C);S c},3C:7(d,h){7 p(a,c,d){b.3h("12.1o",c+": "+d),n()}7 o(c){l&&(c=a("<25/>").3j(c.2f(i,"")).52(l)),b.3h("12.1o",c),n()}7 n(){m&&(f.15("4j",""),h=e)}X(d&&d.3q())S c;T j=g.2D.2N(" "),k=g.2D,l,m=g.2A&&!g.5K&&h;m&&f.15("4j","4l"),j>-1&&(l=k.2S(j),k=k.2S(0,j)),a.1F(a.1q({7L:o,5l:p,7K:b},g,{2D:k}));S c}}),c.1W()}7 z(b,c){T i,j,k,l,m,n=a(W),o=a(1E.3m),p=W===1E?o:n,q=n.2g?n.2g(c.2g):f,r=c.2g.1w==="6G"&&q?q[c.2g.4h]:f,s=n.2r(c.2g.4h||"7H");7G{s=16 s==="1r"?(1L 6J("S "+s))():s}6K(t){w("4Y 5h 7D 6L 6N 2r: "+s)}l=a.1q(d,{},g.3r,c,16 s==="1l"?x(s):f,x(r||q)),j=l.17,l.1x=b;X("3o"===16 l.12.1o){k=n.1b(l.12.1b);X(l.12.1b!==e&&k)l.12.1o=k;2l{w("4Y 5h 6Q 12 4i 1y! 6R 1N 6S 1y 2M 7v: ",n);S e}}j.1Y===e&&(j.1Y=o),j.13===e&&(j.13=p),l.U.13===e&&(l.U.13=p),l.U.39===d&&(l.U.39=o),l.V.13===e&&(l.V.13=p),l.17.1Q===d&&(l.17.1Q=j.1Y),j.2C=1L h.2G(j.2C),j.1X=1L h.2G(j.1X);X(a.2r(W,"1i"))X(l.3Y)n.1i("2i");2l X(l.3Y===e)S e;(m=a.1b(W,"1c"))&&a(W).3i("1c").1b(u,m),i=1L y(n,l,b,!!k),a.2r(W,"1i",i),n.1a("1V.1i",7(){i.2i()});S i}7 y(c,s,t,w){7 Q(){T c=[s.U.13[0],s.V.13[0],y.1m&&F.1y[0],s.17.1Y[0],s.17.1Q[0],b,1E];y.1m?a([]).6T(a.6U(c,7(a){S 16 a==="1l"})).1u(E):s.U.13.1u(E+"-2E")}7 P(){7 r(a){D.1I(":1S")&&y.26(a)}7 p(a){X(D.1O(m))S e;1K(y.1v.2b),y.1v.2b=3b(7(){y.V(a)},s.V.2b)}7 o(b){X(D.1O(m))S e;T c=a(b.3d||b.13),d=c.4a(n)[0]===D[0],g=c[0]===h.U[0];1K(y.1v.U),1K(y.1v.V);f.13==="1s"&&d||s.V.2w&&(/1s(3X|2o|4x)/.1z(b.1w)&&(d||g))?b.5g():s.V.2x>0?y.1v.V=3b(7(){y.V(b)},s.V.2x):y.V(b)}7 l(a){X(D.1O(m))S e;h.U.2P("1i-"+t+"-2b"),1K(y.1v.U),1K(y.1v.V);T b=7(){y.1J(d,a)};s.U.2x>0?y.1v.U=3b(b,s.U.2x):b()}T f=s.17,h={U:s.U.13,V:s.V.13,1Q:a(f.1Q),1E:a(1E),2U:a(b)},j={U:a.3V(""+s.U.1h).2K(" "),V:a.3V(""+s.V.1h).2K(" ")},k=a.2h.3e&&1A(a.2h.3L,10)===6;D.1a("3w"+E+" 31"+E,7(a){T b=a.1w==="3w";b&&y.28(a),D.1R(q,b)}),s.V.2w&&(h.V=h.V.2p(D),D.1a("7q"+E,7(){D.1O(m)||1K(y.1v.V)})),/1s(3X|2o)/i.1z(s.V.1h)?s.V.2o==="2U"&&h.2U.1a("51"+E,7(a){/57|4G/.1z(a.13)&&!a.3d&&y.V(a)}):/1s(4B|3T)/i.1z(s.U.1h)&&h.V.1a("31"+E,7(a){1K(y.1v.U)}),(""+s.V.1h).2N("5a")>-1&&h.1E.1a("3B"+E,7(b){T d=a(b.13),e=!D.1O(m)&&D.1I(":1S");d[0]!==D[0]&&d.6X(n).19===0&&d.2p(c).19>1&&y.V(b)}),"2O"===16 s.V.2b&&(h.U.1a("1i-"+t+"-2b",p),a.1t(g.5o,7(a,b){h.V.2p(F.1y).1a(b+E+"-2b",p)})),a.1t(j.V,7(b,c){T d=a.6Y(c,j.U),e=a(h.V);d>-1&&e.2p(h.U).19===e.19||c==="5a"?(h.U.1a(c+E,7(a){D.1I(":1S")?o(a):l(a)}),2v j.U[d]):h.V.1a(c+E,o)}),a.1t(j.U,7(a,b){h.U.1a(b+E,l)}),"2O"===16 s.V.3H&&h.U.1a("2c"+E,7(a){T b=G.35||{},c=s.V.3H,d=1d.3v;(d(a.1C-b.1C)>=c||d(a.2j-b.2j)>=c)&&y.V(a)}),f.13==="1s"&&(h.U.1a("2c"+E,7(a){i={1C:a.1C,2j:a.2j,1w:"2c"}}),f.1P.1s&&(s.V.1h&&D.1a("31"+E,7(a){(a.3d||a.13)!==h.U[0]&&y.V(a)}),h.1E.1a("2c"+E,7(a){!D.1O(m)&&D.1I(":1S")&&y.26(a||i)}))),(f.1P.2u||h.1Q.19)&&(a.1h.7m.2u?h.1Q:h.2U).1a("2u"+E,r),(h.1Q.19||k&&D.15("17")==="2w")&&h.1Q.1a("4q"+E,r)}7 O(b,d){7 g(b){7 g(f){1K(y.1v.2Z[W]),a(W).1u(E),(c=c.2m(W)).19===0&&(y.2Q(),d!==e&&y.26(G.1h),b())}T c;X((c=f.52("2Z:2m([14]):2m([Y])")).19===0)S g.1U(c);c.1t(7(b,c){(7 d(){X(c.14&&c.Y)S g.1U(c);y.1v.2Z[c]=3b(d,70)})(),a(c).1a("5l"+E+" 3C"+E,g)})}T f=F.12;X(!y.1m||!b)S e;a.1T(b)&&(b=b.1U(c,G.1h,y)||""),b.23&&b.19>0?f.53().3j(b.15({2R:"2Y"})):f.2L(b),y.1m<0?D.38("41",g):(C=0,g(a.74));S y}7 N(b,d){T f=F.1c;X(!y.1m||!b)S e;a.1T(b)&&(b=b.1U(c,G.1h,y));X(b===e)S J(e);b.23&&b.19>0?f.53().3j(b.15({2R:"2Y"})):f.2L(b),y.2Q(),d!==e&&y.1m&&D.1I(":1S")&&y.26(G.1h)}7 M(a){T b=F.1H,c=F.1c;X(!y.1m)S e;a?(c||L(),K()):b.1V()}7 L(){T b=A+"-1c";F.1G&&J(),F.1G=a("<25 />",{"21":k+"-1G "+(s.18.2t?"1B-2t-5b":"")}).3j(F.1c=a("<25 />",{1x:b,"21":k+"-1c","22-4d":d})).56(F.12),s.12.1c.1H?K():y.1m&&y.2Q()}7 K(){T b=s.12.1c.1H,c=16 b==="1r",d=c?b:"78 1y";F.1H&&F.1H.1V(),b.23?F.1H=b:F.1H=a("",{"21":"1B-3y-3z "+(s.18.2t?"":k+"-3G"),1c:d,"22-79":d}).7a(a("<7c />",{"21":"1B-3G 1B-3G-7d",2L:"&7e;"})),F.1H.3f(F.1G).1b("5e","1H").4k(7(b){a(W).1R("1B-3y-4k",b.1w==="3w")}).42(7(a){D.1O(m)||y.V(a);S e}).1a("3B 58 5s 7g 51",7(b){a(W).1R("1B-3y-7h 1B-3y-28",b.1w.2S(-4)==="7i")}),y.2Q()}7 J(a){F.1c&&(F.1G.1V(),F.1G=F.1c=F.1H=f,a!==e&&y.26())}7 I(){T a=s.18.2t;D.1R(l,a).1R(o,!a),F.12.1R(l+"-12",a),F.1G&&F.1G.1R(l+"-5b",a),F.1H&&F.1H.1R(k+"-3G",!a)}7 H(a){T b=0,c,d=s,e=a.2K(".");3l(d=d[e[b++]])b0&&!a("#"+i).19&&(D[0].1x=i,F.12[0].1x=i+"-12",F.1c[0].1x=i+"-1c")},"^12.1o$":7(a,b,c){O(c)},"^12.1c.1o$":7(a,b,c){X(!c)S J();!F.1c&&c&&L(),N(c)},"^12.1c.1H$":7(a,b,c){M(c)},"^17.(1X|2C)$":7(a,b,c){"1r"===16 c&&(a[b]=1L h.2G(c))},"^17.1Y$":7(a,b,c){y.1m&&D.3f(c)},"^U.3a$":7(){y.1m?y.1J(d):y.1N(1)},"^18.3g$":7(a,b,c){D.1b("21",k+" 1i 1B-5c-5d "+c)},"^18.2t|12.1c":I,"^4r.(1N|U|4x|V|28|2e)$":7(b,c,d){D[(a.1T(d)?"":"7n")+"1a"]("1y"+c,d)},"^(U|V|17).(1h|13|2w|2b|2o|3H|1Q|1P)":7(){T a=s.17;D.1b("4m",a.13==="1s"&&a.1P.1s),Q(),P()}},a.1q(y,{1N:7(b){X(y.1m)S y;T f=s.12.1c.1o,g=s.17,i=a.3c("7o");a.1b(c[0],"22-4y",A),D=F.1y=a("<25/>",{1x:A,"21":k+" 1i 1B-5c-5d "+o+" "+s.18.3g,Y:s.18.Y||"",4m:g.13==="1s"&&g.1P.1s,5e:"7r","22-7s":"7t","22-4d":e,"22-4y":A+"-12","22-4l":d}).1R(m,G.2F).2r("1i",y).3f(s.17.1Y).3j(F.12=a("<25 />",{"21":k+"-12",1x:A+"-12","22-4d":d})),y.1m=-1,C=1,B=1,f&&(L(),N(f,e)),O(s.12.1o,e),y.1m=d,I(),a.1t(s.4r,7(b,c){a.1T(c)&&D.1a(b==="1J"?"4f 4g":"1y"+b,c)}),a.1t(h,7(){W.2J==="1N"&&W(y)}),P(),D.38("41",7(a){i.36=G.1h,D.2P(i,[y]),C=0,B=0,y.2Q(),(s.U.3a||b)&&y.1J(d,G.1h),a()});S y},3Z:7(a){T b,c;5x(a.2q()){3p"5i":b={14:D.3k(),Y:D.3I()};37;3p"11":b=h.11(D,s.17.1Y);37;3z:c=H(a.2q()),b=c[0][c[1]],b=b.1j?b.1r():b}S b},3h:7(b,c){7 m(a,b){T c,d,e;4i(c 29 k)4i(d 29 k[c])X(e=(1L 7x(d,"i")).5P(a))b.4o(e),k[c][d].2z(y,b)}T g=/^17\\.(1X|2C|1P|13|1Y)|18|12|U\\.3a/i,h=/^12\\.(1c|1b)|18/i,i=e,j=e,k=y.2V,l;"1r"===16 b?(l=b,b={},b[l]=c):b=a.1q(d,{},b),a.1t(b,7(c,d){T e=H(c.2q()),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.1t(b,m),B=C=0,D.1I(":1S")&&y.1m&&(i&&y.26(s.17.13==="1s"?f:G.1h),j&&y.2Q());S y},1J:7(b,c){7 q(){b?(a.2h.3e&&D[0].18.4b("2H"),D.15("7B","")):(D.15({2R:"",4j:"",4u:"",R:"",9:""}),"1r"===16 h.4A&&a(h.4A,D).28())}X(!y.1m)X(b)y.1N(1);2l S y;T g=b?"U":"V",h=s[g],j=D.1I(":1S"),k=!c||s[g].13.19<2||G.13[0]===c.13,l=s.17,m=s.12,o,p;(16 b).5y("3o|2O")&&(b=!j);X(!D.1I(":5m")&&j===b&&k)S y;X(c){X(/4B|3T/.1z(c.1w)&&/3X|2o/.1z(G.1h.1w)&&c.13===s.U.13[0]&&D.7C(c.3d).19)S y;G.1h=a.1q({},c)}p=a.3c("1y"+g),p.36=c?G.1h:f,D.2P(p,[y,3S]);X(p.3q())S y;a.1b(D[0],"22-4l",!b),b?(G.35=a.1q({},i),y.28(c),a.1T(m.1o)&&O(m.1o,e),a.1T(m.1c.1o)&&N(m.1c.1o,e),!v&&l.13==="1s"&&l.1P.1s&&(a(1E).1a("2c.1i",7(a){i={1C:a.1C,2j:a.2j,1w:"2c"}}),v=d),y.26(c),h.39&&a(n,h.39).2m(D).1i("V",p)):(1K(y.1v.U),2v G.35,v&&!a(n+\'[4m="7F"]:1S\',h.39).2m(D).19&&(a(1E).1u("2c.1i"),v=e),y.2e(c)),k&&D.5n(0,1),h.1Z===e?(D[g](),q.1U(D)):a.1T(h.1Z)?(h.1Z.1U(D,y),D.38("41",7(a){q(),a()})):D.5p(3S,b?1:0,q),b&&h.13.2P("1i-"+t+"-2b");S y},U:7(a){S y.1J(d,a)},V:7(a){S y.1J(e,a)},28:7(b){X(!y.1m)S y;T c=a(n),d=1A(D[0].18.33,10),e=g.5v+c.19,f=a.1q({},b),h,i;D.1O(p)||(i=a.3c("5q"),i.36=f,D.2P(i,[y,e]),i.3q()||(d!==e&&(c.1t(7(){W.18.33>d&&(W.18.33=W.18.33-1)}),c.2H("."+p).1i("2e",f)),D.3s(p)[0].18.33=e));S y},2e:7(b){T c=a.1q({},b),d;D.4w(p),d=a.3c("5r"),d.36=c,D.2P(d,[y]);S y},26:7(c,d){X(!y.1m||B)S y;B=1;T f=s.17.13,g=s.17,j=g.1X,l=g.2C,m=g.1P,n=m.4v.2K(" "),o=D.3I(),p=D.3k(),q=0,r=0,t=a.3c("4p"),u=D.15("17")==="2w",v=g.1Q,w={R:0,9:0},x=y.1M.1f,A={3M:n[0],3N:n[1]||n[0],R:7(a){T b=A.3M==="2y",c=v.11.R+v.2X,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.34?x.34.Y||0:0,g=x&&x.1e&&x.1e.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.1e&&x.1e.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.1e.x==="1k"?x.11:0),a-k,1d.3Q(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.3N==="2y",c=v.11.9+v.32,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.34?x.34.14||0:0,g=x&&x.1e&&x.1e.1j==="y"&&!b?f:0,h=c-a+g,i=a+p-v.14-c+g,k=d-(j.1j==="y"||j.x===j.y?e:0),n=j.y==="1k";b?(g=x&&x.1e&&x.1e.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.1e.x==="1k"?x.11:0),a-k,1d.3Q(1d.2a(v.11.9+v.14,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.54(f)&&f.19===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2l X(f==="1s"&&(c&&c.1C||G.1h.1C))l={x:"R",y:"9"},c=c&&(c.1w==="2u"||c.1w==="4q")?G.1h:c&&c.1C&&c.1w==="2c"?c:i&&i.1C&&(m.1s||!c||!c.1C)?{1C:i.1C,2j:i.2j}:!m.1s&&G.35&&G.35.1C?G.35:c,w={9:c.2j,R:c.1C};2l{f==="1h"?c&&c.13&&c.1w!=="4q"&&c.1w!=="2u"?f=G.13=a(c.13):f=G.13:G.13=a(f),f=a(f).7M(0);X(f.19===0)S y;f[0]===1E||f[0]===b?(q=h.2s?b.7N:f.Y(),r=h.2s?b.7O:f.14(),f[0]===b&&(w={9:!u||h.2s?(v||f).32():0,R:!u||h.2s?(v||f).2X():0})):f.1I("7P")&&h.49?w=h.49(f,l):f[0].7Q==="7R://7S.7T.7U/7W/3E"&&h.3E?w=h.3E(f,l):(q=f.3I(),r=f.3k(),w=h.11(f,g.1Y,u)),w.11&&(q=w.Y,r=w.14,w=w.11),w.R+=l.x==="1p"?q:l.x==="1k"?q/2:0,w.9+=l.y==="1n"?r:l.y==="1k"?r/2:0}w.R+=m.x+(j.x==="1p"?-o:j.x==="1k"?-o/2:0),w.9+=m.y+(j.y==="1n"?-p:j.y==="1k"?-p/2:0),v.23&&f[0]!==b&&f[0]!==z&&A.3N+A.3M!=="7Y"?(v={5E:v,14:v[(v[0]===b?"h":"7Z")+"80"](),Y:v[(v[0]===b?"w":"81")+"82"](),2X:u?0:v.2X(),32:u?0:v.32(),11:v.11()||{R:0,9:0}},w.3O={R:A.3M!=="4t"?A.R(w.R):0,9:A.3N!=="4t"?A.9(w.9):0}):w.3O={R:0,9:0},D.1b("21",7(b,c){S a.1b(W,"21").2f(/1B-1y-5D-\\w+/i,"")}).3s(k+"-5D-"+j.5C()),t.36=a.1q({},c),D.2P(t,[y,w,v.5E||v]);X(t.3q())S y;2v w.3O,d===e||5F(w.R)||5F(w.9)||f==="1s"||!a.1T(g.1Z)?D.15(w):a.1T(g.1Z)&&(g.1Z.1U(D,y,a.1q({},w)),D.38(7(b){a(W).15({4u:"",14:""}),a.2h.3e&&W.18.4b("2H"),b()})),B=0;S y},2Q:7(){X(y.1m<1||C)S y;T a=s.17.1Y,b,c,d,e;C=1,s.18.Y?D.15("Y",s.18.Y):(D.15("Y","").3s(r),c=D.Y()+1,d=D.15("2a-Y")||"",e=D.15("3Q-Y")||"",b=(d+e).2N("%")>-1?a.Y()/5H:0,d=(d.2N("%")>-1?b:1)*1A(d,10)||c,e=(e.2N("%")>-1?b:1)*1A(e,10)||0,c=d+e?1d.3Q(1d.2a(c,e),d):c,D.15("Y",1d.3R(c)).4w(r)),C=0;S y},48:7(b){T c=m;"3o"!==16 b&&(b=!D.1O(c)&&!G.2F),y.1m?(D.1R(c,b),a.1b(D[0],"22-2F",b)):G.2F=!!b;S y},88:7(){S y.48(e)},2i:7(){T b=c[0],d=a.1b(b,u);y.1m&&(D.1V(),a.1t(y.1M,7(){W.2i&&W.2i()})),1K(y.1v.U),1K(y.1v.V),Q(),a.8a(b,"1i"),d&&(a.1b(b,"1c",d),c.3i(u)),c.3i("22-4y").1u(".1i"),2v j[y.1x];S c}})}7 x(b){T c;X(!b||"1l"!==16 b)S e;"1l"!==16 b.2g&&(b.2g={1w:b.2g});X("12"29 b){X("1l"!==16 b.12||b.12.23)b.12={1o:b.12};c=b.12.1o||e,!a.1T(c)&&(!c&&!c.1b||c.19<1||"1l"===16 c&&!c.23)&&(b.12.1o=e),"1c"29 b.12&&("1l"!==16 b.12.1c&&(b.12.1c={1o:b.12.1c}),c=b.12.1c.1o||e,!a.1T(c)&&(!c&&!c.1b||c.19<1||"1l"===16 c&&!c.23)&&(b.12.1c.1o=e))}"17"29 b&&("1l"!==16 b.17&&(b.17={1X:b.17,2C:b.17})),"U"29 b&&("1l"!==16 b.U&&(b.U.23?b.U={13:b.U}:b.U={1h:b.U})),"V"29 b&&("1l"!==16 b.V&&(b.V.23?b.V={13:b.V}:b.V={1h:b.V})),"18"29 b&&("1l"!==16 b.18&&(b.18={3g:b.18})),a.1t(h,7(){W.3n&&W.3n(b)});S b}7 w(){w.4z=w.4z||[],w.4z.4o(20);X("1l"===16 3U){T a=3U[3U.5I?"5I":"8d"],b=8e.8f.4C.1U(20),c;16 20[0]==="1r"&&(b[0]="8g: "+b[0]),c=a.2z?a.2z(3U,b):a(b)}}"8k 8l";T d=!0,e=!1,f=8n,g,h,i,j={},k="1B-1y",l="1B-2t",m="1B-3y-2F",n="25.1i."+k,o=k+"-3z",p=k+"-28",q=k+"-4k",r=k+"-5Q",s="-7z",t="5T",u="5f",v;g=a.2n.1i=7(b,h,i){T j=(""+b).2q(),k=f,l=j==="48"?[d]:a.5V(20).4C(1),m=l[l.19-1],n=W[0]?a.2r(W[0],"1i"):f;X(!20.19&&n||j==="5Y")S n;X("1r"===16 b){W.1t(7(){T b=a.2r(W,"1i");X(!b)S d;m&&m.5Z&&(b.2W.1h=m);X(j!=="4G"&&j!=="2k"||!h)b[j]&&b[j].2z(b[j],l);2l X(a.61(h)||i!==c)b.3h(h,i);2l{k=b.3Z(h);S e}});S k!==f?k:W}X("1l"===16 b||!20.19){n=x(a.1q(d,{},b));S g.1a.1U(W,n,m)}},g.1a=7(b,f){S W.1t(7(i){7 q(b){7 d(){o.1N(16 b==="1l"||k.U.3a),l.U.2p(l.V).1u(n)}X(o.2W.2F)S e;o.2W.1h=a.1q({},b),o.2W.13=b?a(b.13):[c],k.U.2x>0?(1K(o.1v.U),o.1v.U=3b(d,k.U.2x),m.U!==m.V&&l.V.1a(m.V,7(){1K(o.1v.U)})):d()}T k,l,m,n,o,p;p=a.54(b.1x)?b.1x[i]:b.1x,p=!p||p===e||p.19<1||j[p]?g.4n++:j[p]=p,n=".1i-"+p+"-2E",o=z.1U(W,p,b);X(o===e)S d;k=o.2k,a.1t(h,7(){W.2J==="2J"&&W(o)}),l={U:k.U.13,V:k.V.13},m={U:a.3V(""+k.U.1h).2f(/ /g,n+" ")+n,V:a.3V(""+k.V.1h).2f(/ /g,n+" ")+n},/1s(4B|3T)/i.1z(m.U)&&!/1s(3X|2o)/i.1z(m.V)&&(m.V+=" 31"+n),l.U.1a(m.U,q),(k.U.3a||k.5w)&&q(f)})},h=g.1M={2G:7(a){a=(""+a).2f(/([A-Z])/," $1").2f(/6v/4R,"1k").2q(),W.x=(a.4s(/R|1p/i)||a.4s(/1k/)||["3K"])[0].2q(),W.y=(a.4s(/9|1n|1k/i)||["3K"])[0].2q(),W.1j=a.3t(0).5y(/^(t|b)/)>-1?"y":"x",W.1r=7(){S W.1j==="y"?W.y+W.x:W.x+W.y},W.5C=7(){T a=W.x.2S(0,1),b=W.y.2S(0,1);S a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},11:7(c,d,e){7 l(a,b){f.R+=b*a.2X(),f.9+=b*a.32()}T f=c.11(),g=d,i=0,j=1E.3m,k;X(g){6F{g.15("17")!=="6H"&&(k=g[0]===j?{R:1A(g.15("R"),10)||0,9:1A(g.15("9"),10)||0}:g.17(),f.R-=k.R+(1A(g.15("6I"),10)||0),f.9-=k.9+(1A(g.15("6M"),10)||0),i++);X(g[0]===j)37}3l(g=g.6O());d[0]!==j&&i>1&&l(d,1),(h.2s<4.1&&h.2s>3.1||!h.2s&&e)&&l(a(b),-1)}S f},2s:5k((""+(/59.*6V ([0-6W]{1,3})|(59 6Z).*71.*73/i.5P(76.77)||[0,""])[1]).2f("5z","7b").2f("7f","."))||e,2n:{1b:7(b,c){X(W.19){T d=W[0],e="1c",f=a.2r(d,"1i");X(b===e){X(20.19<2)S a.1b(d,u);X(16 f==="1l"){f&&f.1m&&f.2k.12.1b===e&&f.2W.1b&&f.3h("12.1o",c),a.2n["1b"+t].2z(W,20),a.1b(d,u,a.1b(d,e));S W.3i(e)}}}},4X:7(b){T c=a([]),d="1c",e;e=a.2n["4X"+t].2z(W,20).2H("[5f]").1t(7(){a.1b(W,d,a.1b(W,u)),W.4b(u)}).7w();S e},1V:a.1B?f:7(b,c){a(W).1t(7(){c||(!b||a.2H(b,[W]).19)&&a("*",W).2p(W).1t(7(){a(W).5j("1V")})})}}},a.1t(h.2n,7(b,c){X(!c)S d;T e=a.2n[b+t]=a.2n[b];a.2n[b]=7(){S c.2z(W,20)||e.2z(W,20)}}),g.3L="2.0.7E",g.4n=0,g.5o="42 7I 3B 5s 2c 31 3w".2K(" "),g.5v=7J,g.3r={5w:e,1x:e,3Y:d,12:{1o:d,1b:"1c",1c:{1o:e,1H:e}},17:{1X:"9 R",2C:"1n 1p",13:e,1Y:e,1Q:e,1P:{x:0,y:0,1s:d,2u:d,4v:"3P 3P"},1Z:7(b,c,d){a(W).85(c,{86:87,38:e})}},U:{13:e,1h:"3w",1Z:d,2x:3S,39:e,3a:e,4A:e},V:{13:e,1h:"31",1Z:d,2x:0,2w:e,2b:e,2o:"2U",3H:e},18:{3g:"",2t:e,Y:e},4r:{1N:f,4x:f,U:f,V:f,1J:f,28:f,2e:f}},h.1F=7(a){T b=a.1M.1F;S"1l"===16 b?b:a.1M.1F=1L A(a)},h.1F.2J="1N",h.1F.3n=7(a){T b=a.12,c;b&&"1F"29 b&&(c=b.1F,16 c!=="1l"&&(c=a.12.1F={2D:c}),"3o"!==16 c.2A&&c.2A&&(c.2A=!!c.2A))},a.1q(d,g.3r,{12:{1F:{5K:d,2A:d}}}),h.1f=7(a){T b=a.1M.1f;S"1l"===16 b?b:a.1M.1f=1L C(a)},h.1f.2J="1N",h.1f.3n=7(a){T b=a.18,c;b&&"1f"29 b&&(c=a.18.1f,16 c!=="1l"&&(a.18.1f={1e:c}),/1r|3o/i.1z(16 c.1e)||(c.1e=d),16 c.Y!=="2O"&&2v c.Y,16 c.14!=="2O"&&2v c.14,16 c.1g!=="2O"&&c.1g!==d&&2v c.1g,16 c.11!=="2O"&&2v c.11)},a.1q(d,g.3r,{18:{1f:{1e:d,3D:e,Y:6,14:6,1g: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.14;3l(i>0&&j>0&&e>0&&f>0){i=1d.3F(i/2),j=1d.3F(j/2),c.x==="R"?e=i:c.x==="1p"?e=a.Y-i:e+=1d.3F(i/2),c.y==="9"?f=j:c.y==="1n"?f=a.14-j:f+=1d.3F(j/2),d=b.19;3l(d--){X(b.19<2)37;g=b[d][0]-a.11.R,h=b[d][1]-a.11.9,(c.x==="R"&&g>=e||c.x==="1p"&&g<=e||c.x==="1k"&&(ga.Y-e)||c.y==="9"&&h>=f||c.y==="1n"&&h<=f||c.y==="1k"&&(ha.14-f))&&b.75(d,1)}}S{R:b[0][0],9:b[0][1]}}b.23||(b=a(b));T d=b.1b("47").2q(),e=b.1b("7j").2K(","),f=[],g=a(\'2Z[7p="#\'+b.7u("5t").1b("4h")+\'"]\'),h=g.11(),i={Y:0,14:0,11:{9:3W,1p:0,1n:0,R:3W}},j=0,k=0;h.R+=1d.3J((g.3I()-g.Y())/2),h.9+=1d.3J((g.3k()-g.14())/2);X(d==="5G"){j=e.19;3l(j--)k=[1A(e[--j],10),1A(e[j+1],10)],k[0]>i.11.1p&&(i.11.1p=k[0]),k[0]i.11.1n&&(i.11.1n=k[1]),k[1]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.2Y,e=d.1x,f=".23-"+b.1y;a.1q(c,{1W:7(){d.23=a(\'<5M 22="1B-1x-23" 8e="0" 8y="-1" 8g="8h:\\\'\\\';" 19="2H:2X; 17:4T; z-8i:-1; 2I:8a(4t=0); -8z-2I:"83:8m.84.8o(8p=0)";">\'),d.23.3h(e),e.1b("4o"+f,c.1S)},1S:7(){T a=b.4B("5l"),c=b.1I.1e,f=d.1e,g,h;h=1z(e.13("1g-R-Y"),10)||0,h={R:-h,9:-h},c&&f&&(g=c.1f.1j==="x"?["Y","R"]:["15","9"],h[g[1]]-=f[g[0]]()),d.23.13(h).13(a)},2i:7(){d.23.1X(),e.1v(f)}}),c.1W()}7 D(c){T f=V,g=c.2h.U.1F,h=c.2Y,i=h.1x,j="#1i-2S",k=".8r",l=k+c.1y,m="1J-1F-1i",o=a(1G.3p),q;c.3a.1F={"^U.1F.(2Q|2f)$":7(){f.1W(),h.2S.1L(i.1J(":1O"))}},a.1q(f,{1W:7(){X(!g.2Q)S f;q=f.2C(),i.1a(m,d).1v(k).1v(l).1b("4d"+k+" 4e"+k,7(b,c,d){T e=b.34;e&&b.1w==="4e"&&/1r(2v|3W)/.1A(e.1w)&&a(e.3d).48(q[0]).18?b.52():f[b.1w.2g("1x","")](b,d)}).1b("5s"+k,7(a,b,c){q[0].19.30=c-1}).1b("5t"+k,7(b){a("["+m+"]:1O").2w(i).5O().1i("2a",b)}),g.4J&&a(b).1v(l).1b("59"+l,7(a){a.8s===27&&i.1T(p)&&c.W(a)}),g.2f&&h.2S.1v(l).1b("3Z"+l,7(a){i.1T(p)&&c.W(a)});S f},2C:7(){T c=a(j);X(c.18){h.2S=c;S c}q=h.2S=a("<26 />",{1y:j.2R(1),2K:"<26>",3K:7(){S e}}).55(a(n).5O()),a(b).1v(k).1b("2y"+k,7(){q.13({15:a(b).15(),Y:a(b).Y()})}).5m("2y");S q},1L:7(b,c,h){X(b&&b.3t())S f;T j=g.1V,k=c?"U":"W",p=q.1J(":1O"),r=a("["+m+"]:1O").2w(i),s;q||(q=f.2C());X(q.1J(":5o")&&p===c||!c&&r.18)S f;c?(q.13({R:0,9:0}),q.1Q("8u",g.2f),o.8v("*","4c"+l,7(b){a(b.14).48(n)[0]!==i[0]&&a("a, :8w, 36",i).2o(i).2a()})):o.5k("*","4c"+l),q.5p(d,e),a.1N(j)?j.1Y(q,c):j===e?q[k]():q.5r(1z(h,10)||3T,c?1:0,7(){c||a(V).W()}),c||q.37(7(a){q.13({R:"",9:""}),a()});S f},U:7(a,b){S f.1L(a,d,b)},W:7(a,b){S f.1L(a,e,b)},2i:7(){T d=q;d&&(d=a("["+m+"]").2w(i).18<1,d?(h.2S.1X(),a(b).1v(k)):h.2S.1v(k+c.1y),o.5k("*","4c"+l));S i.3k(m).1v(k)}}),f.1W()}7 C(b,g){7 w(a){T b=a.1j==="y",c=n[b?"Y":"15"],d=n[b?"15":"Y"],e=a.1s().2L("1l")>-1,f=c*(e?.5:1),g=1d.5S,h=1d.3R,i,j,k,l=1d.44(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1d.44(g(m[0],2)-g(p,2)),m[3]=1d.44(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.2l.7B,f=e?"-5U-":a.2l.5N?"-5N-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1g-4F-"+g:"1g-"+g+"-4F");S 1z(d.13(h),10)||1z(l.13(h),10)||0}7 u(a,b,c){b=b?b:a[a.1j];T d=l.1T(r),e=k.1C&&a.y==="9",f=e?k.1C:k.12,g="1g-"+b+"-Y",h;l.3z(r),h=1z(f.13(g),10),h=(c?h||1z(l.13(g),10):h)||0,l.1Q(r,d);S h}7 t(f,g,h,l){X(k.1e){T n=a.1q({},i.1f),o=h.3O,p=b.2h.17.1S.4u.2J(" "),q=p[0],r=p[1]||p[0],s={R:e,9:e,x:0,y:0},t,u={},v;i.1f.2p!==d&&(q==="2n"&&n.1j==="x"&&o.R&&n.y!=="1l"?n.1j=n.1j==="x"?"y":"x":q==="3P"&&o.R&&(n.x=n.x==="1l"?o.R>0?"R":"1m":n.x==="R"?"1m":"R"),r==="2n"&&n.1j==="y"&&o.9&&n.x!=="1l"?n.1j=n.1j==="y"?"x":"y":r==="3P"&&o.9&&(n.y=n.y==="1l"?o.9>0?"9":"1n":n.y==="9"?"1n":"9"),n.1s()!==m.1f&&(m.9!==o.9||m.R!==o.R)&&i.3i(n,e)),t=i.17(n,o),t.1m!==c&&(t.R=-t.1m),t.1n!==c&&(t.9=-t.1n),t.4h=1d.28(0,j.11);X(s.R=q==="2n"&&!!o.R)n.x==="1l"?u["33-R"]=s.x=t["33-R"]-o.R:(v=t.1m!==c?[o.R,-t.R]:[-o.R,t.R],(s.x=1d.28(v[0],v[1]))>v[0]&&(h.R-=o.R,s.R=e),u[t.1m!==c?"1m":"R"]=s.x);X(s.9=r==="2n"&&!!o.9)n.y==="1l"?u["33-9"]=s.y=t["33-9"]-o.9:(v=t.1n!==c?[o.9,-t.9]:[-o.9,t.9],(s.y=1d.28(v[0],v[1]))>v[0]&&(h.9-=o.9,s.9=e),u[t.1n!==c?"1n":"9"]=s.y);k.1e.13(u).1L(!(s.x&&s.y||n.x==="1l"&&s.y||n.y==="1l"&&s.x)),h.R-=t.R.3v?t.4h:q!=="2n"||s.9||!s.R&&!s.9?t.R:0,h.9-=t.9.3v?t.4h:r!=="2n"||s.R||!s.R&&!s.9?t.9:0,m.R=o.R,m.9=o.9,m.1f=n.1s()}}T i=V,j=b.2h.19.1e,k=b.2Y,l=k.1x,m={9:0,R:0,1f:""},n={Y:j.Y,15:j.15},o={},p=j.1g||0,q=".1i-1e",s=!!(a("<5a />")[0]||{}).3Y;i.1f=f,i.3H=f,i.1g=p,i.11=j.11,i.31=n,b.3a.1e={"^17.1Z|19.1e.(1f|3H|1g)$":7(){i.1W()||i.2i(),b.24()},"^19.1e.(15|Y)$":7(){n={Y:j.Y,15:j.15},i.2C(),i.3i(),b.24()},"^12.1c.1o|19.(3q|2s)$":7(){k.1e&&i.3i()}},a.1q(i,{1W:7(){T b=i.4G()&&(s||a.2l.3e);b&&(i.2C(),i.3i(),l.1v(q).1b("4o"+q,t));S b},4G:7(){T a=j.1f,c=b.2h.17,f=c.2D,g=c.1Z.1s?c.1Z.1s():c.1Z;X(a===e||g===e&&f===e)S e;a===d?i.1f=1M h.2O(g):a.1s||(i.1f=1M h.2O(a),i.1f.2p=d);S i.1f.1s()!=="5L"},4I:7(){T c,d,e,f=k.1e.13({5W:"",1g:""}),g=i.1f,h=g[g.1j],m="1g-"+h+"-3x",p="1g"+h.3v(0)+h.2R(1)+"7j",q=/6z?\\(0, 0, 0(, 0)?\\)|3X/i,s="5Y-3x",t="3X",u=a(1G.3p).13("3x"),v=b.2Y.12.13("3x"),w=k.1C&&(g.y==="9"||g.y==="1l"&&f.17().9+n.15/2+j.11",{"22":"1B-1x-1e"}).13({Y:b,15:c}).5Z(l),s?a("<5a />").3h(k.1e)[0].3Y("2d").4E():(d=\'<4z:46 61="0,0" 19="2H:5E-2X; 17:4T; 5Q:2A(#3m#4S);">\',k.1e.2K(d+d))},3i:7(b,c){T g=k.1e,l=g.6s(),m=n.Y,q=n.15,r="42 63 ",t="42 65 3X",v=j.3H,x=1d.3R,y,z,A,C,D;b||(b=i.1f),v===e?v=b:(v=1M h.2O(v),v.1j=b.1j,v.x==="3A"?v.x=b.x:v.y==="3A"?v.y=b.y:v.x===v.y&&(v[b.1j]=b[b.1j])),y=v.1j,i.4I(),o.1g!=="3X"&&o.1g!=="#66"?(p=u(b,f,d),j.1g===0&&p>0&&(o.2B=o.1g),i.1g=p=j.1g!==d?j.1g:p):i.1g=p=0,A=B(v,m,q),i.31=D=w(b),g.13(D),b.1j==="y"?C=[x(v.x==="R"?p:v.x==="1m"?D.Y-m-p:(D.Y-m)/2),x(v.y==="9"?D.15-q:0)]:C=[x(v.x==="R"?D.Y-m:0),x(v.y==="9"?p:v.y==="1n"?D.15-q-p:(D.15-q)/2)],s?(l.1a(D),z=l[0].3Y("2d"),z.68(),z.4E(),z.69(0,0,4K,4K),z.6t(C[0],C[1]),z.6a(),z.6b(A[0][0],A[0][1]),z.4L(A[1][0],A[1][1]),z.4L(A[2][0],A[2][1]),z.8x(),z.6c=o.2B,z.6d=o.1g,z.6e=p*2,z.8t="4R",z.6f=5J,p&&z.4Q(),z.2B()):(A="m"+A[0][0]+","+A[0][1]+" l"+A[1][0]+","+A[1][1]+" "+A[2][0]+","+A[2][1]+" 6g",C[2]=p&&/^(r|b)/i.1A(b.1s())?5h(a.2l.3L,10)===8?2:1:0,l.13({6h:""+(v.1s().2L("1l")>-1),R:C[0]-C[2]*4N(y==="x"),9:C[1]-C[2]*4N(y==="y"),Y:m+p,15:q+p}).1t(7(b){T c=a(V);c[c.4O?"4O":"1a"]({6i:m+p+" "+(q+p),8l:A,6k:o.2B,6l:!!b,6m:!b}).13({2H:p||b?"2X":"4s"}),!b&&c.2K()===""&&c.2K(\'<4z:4Q 6n="\'+p*2+\'42" 3x="\'+o.1g+\'" 6p="6q" 6r="4R" 19="5Q:2A(#3m#4S); 2H:5E-2X;" />\')})),c!==e&&i.17(b)},17:7(b){T c=k.1e,f={},g=1d.28(0,j.11),h,l,m;X(j.1f===e||!c)S e;b=b||i.1f,h=b.1j,l=w(b),m=[b.x,b.y],h==="x"&&m.6u(),a.1t(m,7(a,c){T e,i;c==="1l"?(e=h==="y"?"R":"9",f[e]="50%",f["33-"+e]=-1d.3R(l[h==="y"?"Y":"15"]/2)+g):(e=u(b,c,d),i=v(b),f[c]=a?p?u(b,c):0:g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"Y":"15"],c.13({9:"",1n:"",R:"",1m:"",33:""}).13(f);S f},2i:7(){k.1e&&k.1e.1X(),l.1v(q)}}),i.1W()}7 B(a,b,c){T d=1d.3J(b/2),e=1d.3J(c/2),f={5z:[[0,0],[b,c],[b,0]],4U:[[0,0],[b,0],[0,c]],4V:[[0,c],[b,0],[b,c]],4X:[[0,0],[0,c],[b,c]],81:[[0,c],[d,0],[b,c]],6w:[[0,0],[b,0],[d,c]],6x:[[0,0],[b,e],[0,c]],6y:[[b,0],[b,c],[0,e]]};f.6A=f.5z,f.6B=f.4U,f.6C=f.4V,f.6D=f.4X;S f[a.1s()]}7 A(b){T c=V,f=b.2Y.1x,g=b.2h.12.1E,h=".1i-1E",i=/<4v\\b[^<]*(?:(?!<\\/4v>)<[^<]*)*<\\/4v>/5D,j=d;b.3a.1E={"^12.1E":7(a,b,d){b==="1E"&&(g=d),b==="2E"?c.1W():g&&g.2A?c.3F():f.1v(h)}},a.1q(c,{1W:7(){g&&g.2A&&f.1v(h)[g.2E?"6E":"1b"]("4d"+h,c.3F);S c},3F:7(d,h){7 p(a,c,d){b.3j("12.1o",c+": "+d)}7 o(c){l&&(c=a("<26/>").3l(c.2g(i,"")).53(l)),b.3j("12.1o",c)}7 n(){m&&(f.13("4j",""),h=e),a.1N(g.4n)&&g.4n.2k(V,1U)}X(d&&d.3t())S c;T j=g.2A.2L(" "),k=g.2A,l,m=g.2E&&!g.4P&&h;m&&f.13("4j","4k"),j>-1&&(l=k.2R(j),k=k.2R(0,j)),a.1E(a.1q({6F:o,54:p,6G:b},g,{2A:k,4n:n}));S c}}),c.1W()}7 z(b,c){T i,j,k,l,m,n=a(V),o=a(1G.3p),p=V===1G?o:n,q=n.2j?n.2j(c.2j):f,r=c.2j.1w==="6I"&&q?q[c.2j.4f]:f,s=n.2x(c.2j.4f||"6J");7H{s=16 s==="1s"?(1M 7G("S "+s))():s}6M(t){w("5j 4Z 6N 6O 6P 2x: "+s)}l=a.1q(d,{},g.3u,c,16 s==="1k"?x(s):f,x(r||q)),j=l.17,l.1y=b;X("3f"===16 l.12.1o){k=n.1a(l.12.1a);X(l.12.1a!==e&&k)l.12.1o=k;2m{w("5j 4Z 7z 12 4g 1x! 6S 1P 6T 1x 2Q 6U: ",n);S e}}j.21===e&&(j.21=o),j.14===e&&(j.14=p),l.U.14===e&&(l.U.14=p),l.U.38===d&&(l.U.38=o),l.W.14===e&&(l.W.14=p),l.17.1R===d&&(l.17.1R=j.21),j.2D=1M h.2O(j.2D),j.1Z=1M h.2O(j.1Z);X(a.2x(V,"1i"))X(l.4q)n.1i("2i");2m X(l.4q===e)S e;(m=a.1a(V,"1c"))&&a(V).3k("1c").1a(u,m),i=1M y(n,l,b,!!k),a.2x(V,"1i",i),n.1b("1X.1i",7(){i.2i()});S i}7 y(c,s,t,w){7 Q(){T c=[s.U.14[0],s.W.14[0],y.1p&&F.1x[0],s.17.21[0],s.17.1R[0],b,1G];y.1p?a([]).6V(a.6W(c,7(a){S 16 a==="1k"})).1v(E):s.U.14.1v(E+"-2C")}7 P(){7 r(a){D.1J(":1O")&&y.24(a)}7 p(a){X(D.1T(m))S e;1K(y.1u.29),y.1u.29=3g(7(){y.W(a)},s.W.29)}7 o(b){X(D.1T(m)||B||C)S e;T c=a(b.3d||b.14),d=c.48(n)[0]===D[0],g=c[0]===h.U[0];1K(y.1u.U),1K(y.1u.W);f.14==="1r"&&d||s.W.2p&&(/1r(3U|2v|43)/.1A(b.1w)&&(d||g))?(b.52(),b.7r()):s.W.2u>0?y.1u.W=3g(7(){y.W(b)},s.W.2u):y.W(b)}7 l(a){X(D.1T(m))S e;h.U.2N("1i-"+t+"-29"),1K(y.1u.U),1K(y.1u.W);T b=7(){y.1L(d,a)};s.U.2u>0?y.1u.U=3g(b,s.U.2u):b()}T f=s.17,h={U:s.U.14,W:s.W.14,1R:a(f.1R),1G:a(1G),2T:a(b)},j={U:a.3V(""+s.U.1h).2J(" "),W:a.3V(""+s.W.1h).2J(" ")},k=a.2l.3e&&1z(a.2l.3L,10)===6;D.1b("3y"+E+" 2W"+E,7(a){T b=a.1w==="3y";b&&y.2a(a),D.1Q(q,b)}),s.W.2p&&(h.W=h.W.2o(D),D.1b("7q"+E,7(){D.1T(m)||1K(y.1u.W)})),/1r(3U|2v)/i.1A(s.W.1h)?s.W.2v==="2T"&&h.2T.1b("5b"+E,7(a){/58|4H/.1A(a.14)&&!a.3d&&y.W(a)}):/1r(4A|3W)/i.1A(s.U.1h)&&h.W.1b("2W"+E,7(a){1K(y.1u.U)}),(""+s.W.1h).2L("5i")>-1&&h.1G.1b("3K"+E,7(b){T d=a(b.14),e=!D.1T(m)&&D.1J(":1O");d[0]!==D[0]&&d.6Z(n).18===0&&d.2o(c).18>1&&y.W(b)}),"2F"===16 s.W.29&&(h.U.1b("1i-"+t+"-29",p),a.1t(g.5q,7(a,b){h.W.2o(F.1x).1b(b+E+"-29",p)})),a.1t(j.W,7(b,c){T d=a.70(c,j.U),e=a(h.W);d>-1&&e.2o(h.U).18===e.18||c==="5i"?(h.U.1b(c+E,7(a){D.1J(":1O")?o(a):l(a)}),2z j.U[d]):h.W.1b(c+E,o)}),a.1t(j.U,7(a,b){h.U.1b(b+E,l)}),"2F"===16 s.W.3C&&h.U.1b("2e"+E,7(a){T b=G.32||{},c=s.W.3C,d=1d.3w;(d(a.1D-b.1D)>=c||d(a.2c-b.2c)>=c)&&y.W(a)}),f.14==="1r"&&(h.U.1b("2e"+E,7(a){i={1D:a.1D,2c:a.2c,1w:"2e"}}),f.1S.1r&&(s.W.1h&&D.1b("2W"+E,7(a){(a.3d||a.14)!==h.U[0]&&y.W(a)}),h.1G.1b("2e"+E,7(a){!D.1T(m)&&D.1J(":1O")&&y.24(a||i)}))),(f.1S.2y||h.1R.18)&&(a.1h.71.2y?h.1R:h.2T).1b("2y"+E,r),(h.1R.18||k&&D.13("17")==="2p")&&h.1R.1b("4p"+E,r)}7 O(b,d){7 g(b){7 g(f){1K(y.1u.36[V]),a(V).1v(E),(c=c.2w(V)).18===0&&(y.2P(),d!==e&&y.24(G.1h),b())}T c;X((c=f.53("36:2w([15]):2w([Y])")).18===0)S g.1Y(c);c.1t(7(b,c){(7 d(){X(c.15&&c.Y)S g.1Y(c);y.1u.36[c]=3g(d,73)})(),a(c).1b("54"+E+" 3F"+E,g)})}T f=F.12;X(!y.1p||!b)S e;a.1N(b)&&(b=b.1Y(c,G.1h,y)||""),b.25&&b.18>0?f.57().3l(b.13({2H:"2X"})):f.2K(b),y.1p<0?D.37("40",g):(C=0,g(a.76));S y}7 N(b,d){T f=F.1c;X(!y.1p||!b)S e;a.1N(b)&&(b=b.1Y(c,G.1h,y));X(b===e)S J(e);b.25&&b.18>0?f.57().3l(b.13({2H:"2X"})):f.2K(b),y.2P(),d!==e&&y.1p&&D.1J(":1O")&&y.24(G.1h)}7 M(a){T b=F.1H,c=F.1c;X(!y.1p)S e;a?(c||L(),K()):b.1X()}7 L(){T b=A+"-1c";F.1C&&J(),F.1C=a("<26 />",{"22":k+"-1C "+(s.19.2s?"1B-2s-5c":"")}).3l(F.1c=a("<26 />",{1y:b,"22":k+"-1c","20-4b":d})).55(F.12),s.12.1c.1H?K():y.1p&&y.2P()}7 K(){T b=s.12.1c.1H,c=16 b==="1s",d=c?b:"7a 1x";F.1H&&F.1H.1X(),b.25?F.1H=b:F.1H=a("",{"22":"1B-3c-3m "+(s.19.2s?"":k+"-3G"),1c:d,"20-7b":d}).7c(a("<7e />",{"22":"1B-3G 1B-3G-7f",2K:"&7g;"})),F.1H.3h(F.1C).1a("5f","1H").4C(7(b){a(V).1Q("1B-3c-4C",b.1w==="3y")}).3Z(7(a){D.1T(m)||y.W(a);S e}).1b("3K 59 5u 7i 5b",7(b){a(V).1Q("1B-3c-7k 1B-3c-2a",b.1w.2R(-4)==="7l")}),y.2P()}7 J(a){F.1c&&(F.1C.1X(),F.1C=F.1c=F.1H=f,a!==e&&y.24())}7 I(){T a=s.19.2s;D.1Q(l,a).1Q(o,!a),F.12.1Q(l+"-12",a),F.1C&&F.1C.1Q(l+"-5c",a),F.1H&&F.1H.1Q(k+"-3G",!a)}7 H(a){T b=0,c,d=s,e=a.2J(".");3o(d=d[e[b++]])b0&&!a("#"+i).18&&(D[0].1y=i,F.12[0].1y=i+"-12",F.1c[0].1y=i+"-1c")},"^12.1o$":7(a,b,c){O(c)},"^12.1c.1o$":7(a,b,c){X(!c)S J();!F.1c&&c&&L(),N(c)},"^12.1c.1H$":7(a,b,c){M(c)},"^17.(1Z|2D)$":7(a,b,c){"1s"===16 c&&(a[b]=1M h.2O(c))},"^17.21$":7(a,b,c){y.1p&&D.3h(c)},"^U.39$":7(){y.1p?y.1L(d):y.1P(1)},"^19.3q$":7(a,b,c){D.1a("22",k+" 1i 1B-5e-51 "+c)},"^19.2s|12.1c":I,"^45.(1P|U|43|W|2a|2f)$":7(b,c,d){D[(a.1N(d)?"":"7p")+"1b"]("1x"+c,d)},"^(U|W|17).(1h|14|2p|29|2v|3C|1R|1S)":7(){T a=s.17;D.1a("4l",a.14==="1r"&&a.1S.1r),Q(),P()}},a.1q(y,{1P:7(b){X(y.1p)S y;T f=s.12.1c.1o,g=s.17,i=a.3b("7s");a.1a(c[0],"20-4x",A),D=F.1x=a("<26/>",{1y:A,"22":k+" 1i 1B-5e-51 "+o+" "+s.19.3q,Y:s.19.Y||"",4l:g.14==="1r"&&g.1S.1r,5f:"7u","20-7v":"7w","20-4b":e,"20-4x":A+"-12","20-4k":d}).1Q(m,G.2G).2x("1i",y).3h(s.17.21).3l(F.12=a("<26 />",{"22":k+"-12",1y:A+"-12","20-4b":d})),y.1p=-1,C=1,B=1,f&&(L(),N(f,e)),O(s.12.1o,e),y.1p=d,I(),a.1t(s.45,7(b,c){a.1N(c)&&D.1b(b==="1L"?"4d 4e":"1x"+b,c)}),a.1t(h,7(){V.2M==="1P"&&V(y)}),P(),D.37("40",7(a){i.34=G.1h,D.2N(i,[y]),C=0,B=0,y.2P(),(s.U.39||b)&&y.1L(d,G.1h),a()});S y},4B:7(a){T b,c;5y(a.2r()){3s"5l":b={15:D.3n(),Y:D.3I()};35;3s"11":b=h.11(D,s.17.21);35;3m:c=H(a.2r()),b=c[0][c[1]],b=b.1j?b.1s():b}S b},3j:7(b,c){7 m(a,b){T c,d,e;4g(c 2b k)4g(d 2b k[c])X(e=(1M 7A(d,"i")).56(a))b.4m(e),k[c][d].2k(y,b)}T g=/^17\\.(1Z|2D|1S|14|21)|19|12|U\\.39/i,h=/^12\\.(1c|1a)|19/i,i=e,j=e,k=y.3a,l;"1s"===16 b?(l=b,b={},b[l]=c):b=a.1q(d,{},b),a.1t(b,7(c,d){T e=H(c.2r()),f;f=e[0][e[1]],e[0][e[1]]="1k"===16 d&&d.7C?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.1t(b,m),B=C=0,D.1J(":1O")&&y.1p&&(i&&y.24(s.17.14==="1r"?f:G.1h),j&&y.2P());S y},1L:7(b,c){7 q(){b?(a.2l.3e&&D[0].19.4a("2I"),D.13("7D","")):(D.13({2H:"",4j:"",4t:"",R:"",9:""}),"1s"===16 h.4y&&a(h.4y,D).2a())}X(!y.1p)X(b)y.1P(1);2m S y;T g=b?"U":"W",h=s[g],j=D.1J(":1O"),k=!c||s[g].14.18<2||G.14[0]===c.14,l=s.17,m=s.12,o,p;(16 b).5B("3f|2F")&&(b=!j);X(!D.1J(":5o")&&j===b&&k)S y;X(c){X(/4A|3W/.1A(c.1w)&&/3U|2v/.1A(G.1h.1w)&&c.14===s.U.14[0]&&D.7E(c.3d).18)S y;G.1h=a.1q({},c)}p=a.3b("1x"+g),p.34=c?G.1h:f,D.2N(p,[y,3T]);X(p.3t())S y;a.1a(D[0],"20-4k",!b),b?(G.32=a.1q({},i),y.2a(c),a.1N(m.1o)&&O(m.1o,e),a.1N(m.1c.1o)&&N(m.1c.1o,e),!v&&l.14==="1r"&&l.1S.1r&&(a(1G).1b("2e.1i",7(a){i={1D:a.1D,2c:a.2c,1w:"2e"}}),v=d),y.24(c),h.38&&a(n,h.38).2w(D).1i("W",p)):(1K(y.1u.U),2z G.32,v&&!a(n+\'[4l="7I"]:1O\',h.38).2w(D).18&&(a(1G).1v("2e.1i"),v=e),y.2f(c)),k&&D.5p(0,1),h.1V===e?(D[g](),q.1Y(D)):a.1N(h.1V)?(h.1V.1Y(D,y),D.37("40",7(a){q(),a()})):D.5r(3T,b?1:0,q),b&&h.14.2N("1i-"+t+"-29");S y},U:7(a){S y.1L(d,a)},W:7(a){S y.1L(e,a)},2a:7(b){X(!y.1p)S y;T c=a(n),d=1z(D[0].19.30,10),e=g.5w+c.18,f=a.1q({},b),h,i;D.1T(p)||(i=a.3b("5s"),i.34=f,D.2N(i,[y,e]),i.3t()||(d!==e&&(c.1t(7(){V.19.30>d&&(V.19.30=V.19.30-1)}),c.2I("."+p).1i("2f",f)),D.3z(p)[0].19.30=e));S y},2f:7(b){T c=a.1q({},b),d;D.4w(p),d=a.3b("5t"),d.34=c,D.2N(d,[y]);S y},24:7(c,d){X(!y.1p||B)S y;B=1;T f=s.17.14,g=s.17,j=g.1Z,l=g.2D,m=g.1S,n=m.4u.2J(" "),o=D.3I(),p=D.3n(),q=0,r=0,t=a.3b("4o"),u=D.13("17")==="2p",v=g.1R,w={R:0,9:0},x=y.1I.1e,A={3M:n[0],3N:n[1]||n[0],R:7(a){T b=A.3M==="2n",c=v.11.R+v.2V,d=j.x==="R"?o:j.x==="1m"?-o:-o/2,e=l.x==="R"?q:l.x==="1m"?-q:-q/2,f=x&&x.31?x.31.Y||0:0,g=x&&x.1f&&x.1f.1j==="x"&&!b?f:0,h=c-a+g,i=a+o-v.Y-c+g,k=d-(j.1j==="x"||j.x===j.y?e:0),n=j.x==="1l";b?(g=x&&x.1f&&x.1f.1j==="y"?f:0,k=(j.x==="R"?1:-1)*d-g,w.R+=h>0?h:i>0?-i:0,w.R=1d.28(v.11.R+(g&&x.1f.x==="1l"?x.11:0),a-k,1d.3Q(1d.28(v.11.R+v.Y,a+k),w.R))):(h>0&&(j.x!=="R"||i>0)?w.R-=k+(n?0:2*m.x):i>0&&(j.x!=="1m"||h>0)&&(w.R-=n?-k:k+2*m.x),w.R!==a&&n&&(w.R-=m.x),w.Ri&&(w.R=a));S w.R-a},9:7(a){T b=A.3N==="2n",c=v.11.9+v.2Z,d=j.y==="9"?p:j.y==="1n"?-p:-p/2,e=l.y==="9"?r:l.y==="1n"?-r:-r/2,f=x&&x.31?x.31.15||0:0,g=x&&x.1f&&x.1f.1j==="y"&&!b?f:0,h=c-a+g,i=a+p-v.15-c+g,k=d-(j.1j==="y"||j.x===j.y?e:0),n=j.y==="1l";b?(g=x&&x.1f&&x.1f.1j==="x"?f:0,k=(j.y==="9"?1:-1)*d-g,w.9+=h>0?h:i>0?-i:0,w.9=1d.28(v.11.9+(g&&x.1f.x==="1l"?x.11:0),a-k,1d.3Q(1d.28(v.11.9+v.15,a+k),w.9))):(h>0&&(j.y!=="9"||i>0)?w.9-=k+(n?0:2*m.y):i>0&&(j.y!=="1n"||h>0)&&(w.9-=n?-k:k+2*m.y),w.9!==a&&n&&(w.9-=m.y),w.9<0&&-w.9>i&&(w.9=a));S w.9-a}};X(a.5P(f)&&f.18===2)l={x:"R",y:"9"},w={R:f[0],9:f[1]};2m X(f==="1r"&&(c&&c.1D||G.1h.1D))l={x:"R",y:"9"},c=c&&(c.1w==="2y"||c.1w==="4p")?G.1h:c&&c.1D&&c.1w==="2e"?c:i&&i.1D&&(m.1r||!c||!c.1D)?{1D:i.1D,2c:i.2c}:!m.1r&&G.32&&G.32.1D?G.32:c,w={9:c.2c,R:c.1D};2m{f==="1h"?c&&c.14&&c.1w!=="4p"&&c.1w!=="2y"?f=G.14=a(c.14):f=G.14:G.14=a(f),f=a(f).7L(0);X(f.18===0)S y;f[0]===1G||f[0]===b?(q=h.2t?b.7M:f.Y(),r=h.2t?b.7N:f.15(),f[0]===b&&(w={9:!u||h.2t?(v||f).2Z():0,R:!u||h.2t?(v||f).2V():0})):f.1J("7O")&&h.47?w=h.47(f,l):f[0].7P==="7Q://7R.7S.7T/7V/3D"&&h.3D?w=h.3D(f,l):(q=f.3I(),r=f.3n(),w=h.11(f,g.21,u)),w.11&&(q=w.Y,r=w.15,w=w.11),w.R+=l.x==="1m"?q:l.x==="1l"?q/2:0,w.9+=l.y==="1n"?r:l.y==="1l"?r/2:0}w.R+=m.x+(j.x==="1m"?-o:j.x==="1l"?-o/2:0),w.9+=m.y+(j.y==="1n"?-p:j.y==="1l"?-p/2:0),v.25&&f[0]!==b&&f[0]!==z&&A.3N+A.3M!=="7W"?(v={5G:v,15:v[(v[0]===b?"h":"7X")+"7Y"](),Y:v[(v[0]===b?"w":"7Z")+"80"](),2V:u?0:v.2V(),2Z:u?0:v.2Z(),11:v.11()||{R:0,9:0}},w.3O={R:A.3M!=="4s"?A.R(w.R):0,9:A.3N!=="4s"?A.9(w.9):0}):w.3O={R:0,9:0},D.1a("22",7(b,c){S a.1a(V,"22").2g(/1B-1x-5F-\\w+/i,"")}).3z(k+"-5F-"+j.4W()),t.34=a.1q({},c),D.2N(t,[y,w,v.5G||v]);X(t.3t())S y;2z w.3O,d===e||5H(w.R)||5H(w.9)||f==="1r"||!a.1N(g.1V)?D.13(w):a.1N(g.1V)&&(g.1V.1Y(D,y,a.1q({},w)),D.37(7(b){a(V).13({4t:"",15:""}),a.2l.3e&&V.19.4a("2I"),b()})),B=0;S y},2P:7(){X(y.1p<1||C)S y;T a=s.17.21,b,c,d,e;C=1,s.19.Y?D.13("Y",s.19.Y):(D.13("Y","").3z(r),c=D.Y()+1,d=D.13("28-Y")||"",e=D.13("3Q-Y")||"",b=(d+e).2L("%")>-1?a.Y()/5J:0,d=(d.2L("%")>-1?b:1)*1z(d,10)||c,e=(e.2L("%")>-1?b:1)*1z(e,10)||0,c=d+e?1d.3Q(1d.28(c,e),d):c,D.13("Y",1d.3R(c)).4w(r)),C=0;S y},4i:7(b){"3f"!==16 b&&(b=!D.1T(m)&&!G.2G),y.1p?(D.1Q(m,b),a.1a(D[0],"20-2G",b)):G.2G=!!b;S y},88:7(){S y.4i(e)},2i:7(){T b=c[0],d=a.1a(b,u);y.1p&&(D.1X(),a.1t(y.1I,7(){V.2i&&V.2i()})),1K(y.1u.U),1K(y.1u.W),Q(),a.89(b,"1i"),d&&(a.1a(b,"1c",d),c.3k(u)),c.3k("20-4x").1v(".1i"),2z j[y.1y];S c}})}7 x(b){T c;X(!b||"1k"!==16 b)S e;"1k"!==16 b.2j&&(b.2j={1w:b.2j});X("12"2b b){X("1k"!==16 b.12||b.12.25)b.12={1o:b.12};c=b.12.1o||e,!a.1N(c)&&(!c&&!c.1a||c.18<1||"1k"===16 c&&!c.25)&&(b.12.1o=e),"1c"2b b.12&&("1k"!==16 b.12.1c&&(b.12.1c={1o:b.12.1c}),c=b.12.1c.1o||e,!a.1N(c)&&(!c&&!c.1a||c.18<1||"1k"===16 c&&!c.25)&&(b.12.1c.1o=e))}"17"2b b&&("1k"!==16 b.17&&(b.17={1Z:b.17,2D:b.17})),"U"2b b&&("1k"!==16 b.U&&(b.U.25?b.U={14:b.U}:b.U={1h:b.U})),"W"2b b&&("1k"!==16 b.W&&(b.W.25?b.W={14:b.W}:b.W={1h:b.W})),"19"2b b&&("1k"!==16 b.19&&(b.19={3q:b.19})),a.1t(h,7(){V.3r&&V.3r(b)});S b}7 w(){w.49=w.49||[],w.49.4m(1U);X("1k"===16 3S){T a=3S[3S.5K?"5K":"8b"],b=8c.8d.4D.1Y(1U),c;16 1U[0]==="1s"&&(b[0]="8f: "+b[0]),c=a.2k?a.2k(3S,b):a(b)}}"8j 8k";T d=!0,e=!1,f=8n,g,h,i,j={},k="1B-1x",l="1B-2s",m="1B-3c-2G",n="26.1i."+k,o=k+"-3m",p=k+"-2a",q=k+"-4C",r=k+"-5R",s="-5T",t="5V",u="5g",v;g=a.2q.1i=7(b,h,i){T j=(""+b).2r(),k=f,l=j==="4i"?[d]:a.5X(1U).4D(1),m=l[l.18-1],n=V[0]?a.2x(V[0],"1i"):f;X(!1U.18&&n||j==="60")S n;X("1s"===16 b){V.1t(7(){T b=a.2x(V,"1i");X(!b)S d;m&&m.62&&(b.2U.1h=m);X(j!=="4H"&&j!=="2h"||!h)b[j]&&b[j].2k(b[j],l);2m X(a.64(h)||i!==c)b.3j(h,i);2m{k=b.4B(h);S e}});S k!==f?k:V}X("1k"===16 b||!1U.18){n=x(a.1q(d,{},b));S g.1b.1Y(V,n,m)}},g.1b=7(b,f){S V.1t(7(i){7 q(b){7 d(){o.1P(16 b==="1k"||k.U.39),l.U.2o(l.W).1v(n)}X(o.2U.2G)S e;o.2U.1h=a.1q({},b),o.2U.14=b?a(b.14):[c],k.U.2u>0?(1K(o.1u.U),o.1u.U=3g(d,k.U.2u),m.U!==m.W&&l.W.1b(m.W,7(){1K(o.1u.U)})):d()}T k,l,m,n,o,p;p=a.5P(b.1y)?b.1y[i]:b.1y,p=!p||p===e||p.18<1||j[p]?g.41++:j[p]=p,n=".1i-"+p+"-2C",o=z.1Y(V,p,b);X(o===e)S d;k=o.2h,a.1t(h,7(){V.2M==="2M"&&V(o)}),l={U:k.U.14,W:k.W.14},m={U:a.3V(""+k.U.1h).2g(/ /g,n+" ")+n,W:a.3V(""+k.W.1h).2g(/ /g,n+" ")+n},/1r(4A|3W)/i.1A(m.U)&&!/1r(3U|2v)/i.1A(m.W)&&(m.W+=" 2W"+n),l.U.1b(m.U,q),(k.U.39||k.5x)&&q(f)})},h=g.1I={2O:7(a){a=(""+a).2g(/([A-Z])/," $1").2g(/6v/5D,"1l").2r(),V.x=(a.4r(/R|1m/i)||a.4r(/1l/)||["3A"])[0].2r(),V.y=(a.4r(/9|1n|1l/i)||["3A"])[0].2r(),V.1j=a.3v(0).5B(/^(t|b)/)>-1?"y":"x",V.1s=7(){S V.1j==="y"?V.y+V.x:V.x+V.y},V.4W=7(){T a=V.x.2R(0,1),b=V.y.2R(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.2V(),f.9+=b*a.2Z()}T f=c.11(),g=d,i=0,j=1G.3p,k;X(g){6H{g.13("17")!=="6K"&&(k=g[0]===j?{R:1z(g.13("R"),10)||0,9:1z(g.13("9"),10)||0}:g.17(),f.R-=k.R+(1z(g.13("6L"),10)||0),f.9-=k.9+(1z(g.13("6Q"),10)||0),i++);X(g[0]===j)35}3o(g=g.6R());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:5h((""+(/5d.*6X ([0-6Y]{1,3})|(5d 72).*74.*75/i.56(78.79)||[0,""])[1]).2g("5A","7d").2g("7h","."))||e,2q:{1a:7(b,c){X(V.18){T d=V[0],e="1c",f=a.2x(d,"1i");X(b===e){X(1U.18<2)S a.1a(d,u);X(16 f==="1k"){f&&f.1p&&f.2h.12.1a===e&&f.2U.1a&&f.3j("12.1o",c),a.2q["1a"+t].2k(V,1U),a.1a(d,u,a.1a(d,e));S V.3k(e)}}}},4Y:7(b){T c=a([]),d="1c",e;e=a.2q["4Y"+t].2k(V,1U).2I("[5g]").1t(7(){a.1a(V,d,a.1a(V,u)),V.4a(u)}).7y();S e},1X:a.1B?f:7(b,c){a(V).1t(7(){c||(!b||a.2I(b,[V]).18)&&a("*",V).2o(V).1t(7(){a(V).5m("1X")})})}}},a.1t(h.2q,7(b,c){X(!c)S d;T e=a.2q[b+t]=a.2q[b];a.2q[b]=7(){S c.2k(V,1U)||e.2k(V,1U)}}),g.3L="2.0.7F",g.41=0,g.5q="3Z 7J 3K 5u 2e 2W 3y".2J(" "),g.5w=7K,g.3u={5x:e,1y:e,4q:d,12:{1o:d,1a:"1c",1c:{1o:e,1H:e}},17:{1Z:"9 R",2D:"1n 1m",14:e,21:e,1R:e,1S:{x:0,y:0,1r:d,2y:d,4u:"3P 3P"},1V:7(b,c,d){a(V).85(c,{86:87,37:e})}},U:{14:e,1h:"3y",1V:d,2u:3T,38:e,39:e,4y:e},W:{14:e,1h:"2W",1V:d,2u:0,2p:e,29:e,2v:"2T",3C:e},19:{3q:"",2s:e,Y:e},45:{1P:f,43:f,U:f,W:f,1L:f,2a:f,2f:f}},h.1E=7(a){T b=a.1I.1E;S"1k"===16 b?b:a.1I.1E=1M A(a)},h.1E.2M="1P",h.1E.3r=7(a){T b=a.12,c;b&&"1E"2b b&&(c=b.1E,16 c!=="1k"&&(c=a.12.1E={2A:c}),"3f"!==16 c.2E&&c.2E&&(c.2E=!!c.2E))},a.1q(d,g.3u,{12:{1E:{4P:d,2E:d}}}),h.1e=7(a){T b=a.1I.1e;S"1k"===16 b?b:a.1I.1e=1M C(a)},h.1e.2M="1P",h.1e.3r=7(a){T b=a.19,c;b&&"1e"2b b&&(c=a.19.1e,16 c!=="1k"&&(a.19.1e={1f:c}),/1s|3f/i.1A(16 c.1f)||(c.1f=d),16 c.Y!=="2F"&&2z c.Y,16 c.15!=="2F"&&2z c.15,16 c.1g!=="2F"&&c.1g!==d&&2z c.1g,16 c.11!=="2F"&&2z c.11)},a.1q(d,g.3u,{19:{1e:{1f:d,3H:e,Y:6,15:6,1g:d,11:0}}}),h.47=7(b,c){7 l(a,b){T d=0,e=1,f=1,g=0,h=0,i=a.Y,j=a.15;3o(i>0&&j>0&&e>0&&f>0){i=1d.3E(i/2),j=1d.3E(j/2),c.x==="R"?e=i:c.x==="1m"?e=a.Y-i:e+=1d.3E(i/2),c.y==="9"?f=j:c.y==="1n"?f=a.15-j:f+=1d.3E(j/2),d=b.18;3o(d--){X(b.18<2)35;g=b[d][0]-a.11.R,h=b[d][1]-a.11.9,(c.x==="R"&&g>=e||c.x==="1m"&&g<=e||c.x==="1l"&&(ga.Y-e)||c.y==="9"&&h>=f||c.y==="1n"&&h<=f||c.y==="1l"&&(ha.15-f))&&b.77(d,1)}}S{R:b[0][0],9:b[0][1]}}b.25||(b=a(b));T d=b.1a("46").2r(),e=b.1a("7m").2J(","),f=[],g=a(\'36[7t="#\'+b.7x("5v").1a("4f")+\'"]\'),h=g.11(),i={Y:0,15:0,11:{9:3B,1m:0,1n:0,R:3B}},j=0,k=0;h.R+=1d.3J((g.3I()-g.Y())/2),h.9+=1d.3J((g.3n()-g.15())/2);X(d==="5I"){j=e.18;3o(j--)k=[1z(e[--j],10),1z(e[j+1],10)],k[0]>i.11.1m&&(i.11.1m=k[0]),k[0]i.11.1n&&(i.11.1n=k[1]),k[1]