diff --git a/dist/jquery.qtip.basic.js b/dist/jquery.qtip.basic.js index 6bcc4a4f..7607323d 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: Tue May 31 11:49:21 2011 +0100 +* Date: Tue May 31 17:48:21 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -1658,14 +1658,17 @@ PLUGINS = QTIP.plugins = { if(parent) { // Compensate for non-static containers offset do { - if(parent[0] === docBody) { break; } - else if(parent.css('position') !== 'static') { - coffset = parent.position(); + if(parent.css('position') !== 'static') { + coffset = parent[0] === docBody ? + { left: parseInt(parent.css('left'), 10) || 0, top: parseInt(parent.css('top'), 10) || 0 } : + parent.position(); + pos.left -= coffset.left + (parseInt(parent.css('borderLeftWidth'), 10) || 0); pos.top -= coffset.top + (parseInt(parent.css('borderTopWidth'), 10) || 0); - + deep++; } + if(parent[0] === docBody) { break; } } while(parent = parent.offsetParent()); diff --git a/dist/jquery.qtip.css b/dist/jquery.qtip.css index 61614fa0..a72c72ba 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: Tue May 31 11:49:21 2011 +0100 +* Date: Tue May 31 17:48:21 2011 +0100 */ /* Core qTip styles */ diff --git a/dist/jquery.qtip.js b/dist/jquery.qtip.js index 6a74a5aa..6475bad8 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: Tue May 31 11:49:21 2011 +0100 +* Date: Tue May 31 17:48:21 2011 +0100 */ /*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */ @@ -1658,14 +1658,17 @@ PLUGINS = QTIP.plugins = { if(parent) { // Compensate for non-static containers offset do { - if(parent[0] === docBody) { break; } - else if(parent.css('position') !== 'static') { - coffset = parent.position(); + if(parent.css('position') !== 'static') { + coffset = parent[0] === docBody ? + { left: parseInt(parent.css('left'), 10) || 0, top: parseInt(parent.css('top'), 10) || 0 } : + parent.position(); + pos.left -= coffset.left + (parseInt(parent.css('borderLeftWidth'), 10) || 0); pos.top -= coffset.top + (parseInt(parent.css('borderTopWidth'), 10) || 0); - + deep++; } + if(parent[0] === docBody) { break; } } while(parent = parent.offsetParent()); diff --git a/dist/jquery.qtip.min.js b/dist/jquery.qtip.min.js index 631ab047..06259898 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: Tue May 31 11:49:21 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 */(function(a,b,c){function B(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 A(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o=a(document.body),q;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){var d=a.originalEvent;a.type==="tooltiphide"&&/mouse(leave|enter)/.test(d.type)&&d.relatedTarget===q[0]?a.preventDefault():f[a.type.replace("tooltip","")](a,c)}).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),css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return e}}).appendTo(document.body),a(b).unbind(k).bind("resize"+k,function(){q.css({height:Math.max(a(b).height(),a(document).height()),width:Math.max(a(b).width(),a(document).width())})}).trigger("resize");return q},toggle:function(b,c,j){if(b&&b.isDefaultPrevented())return f;var k=g.effect,p=c?"show":"hide",r=q.is(":visible"),s=a("["+m+"]:visible").not(i),t;q||(q=f.create());if(q.is(":animated")&&r===c||!c&&s.length)return f;c?(h.overlay.css("cursor",g.blur?"pointer":""),o.delegate("*","focusin"+l,function(b){a(b.target).closest(n)[0]!==i[0]&&a("a, :input, img",i).add(i).focus()})):o.undelegate("*","focus"+l),q.stop(d,e),a.isFunction(k)?k.call(q,c):k===e?q[p]():q.fadeTo(parseInt(j,10)||90,c?.7:0,function(){c||a(this).hide()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=q;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id),o.undelegate("*","focus"+l));return i.removeAttr(m).unbind(k)}}),f.init()}function z(b,g){function v(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 u(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 t(a,b,c){b=b?b:a[a.precedance];var d=k.titlebar&&a.y==="top",e=d?k.titlebar:k.content,f="border-"+b+"-width",g=parseInt(e.css(f),10);return(c?g||parseInt(l.css(f),10):g)||0}function s(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",r=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.position={},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()&&(r||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,s));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,r="background-color",s="transparent",t="ui-tooltip-fluid",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),r?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(p?d+=d:d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,s="px solid ",u="px dashed transparent",w=j.mimic,x=Math.round,z,A,B,C,D;b||(b=i.corner),w===e?w=b:(w=new h.Corner(w),w.precedance=b.precedance,w.x==="inherit"?w.x=b.x:w.y==="inherit"?w.y=b.y:w.x===w.y&&(w[b.precedance]=b[b.precedance])),z=w.precedance,i.detectColours(),p=o.border==="transparent"||o.border==="#123456"?0:j.border===d?t(b,f,d):j.border,B=y(w,m,q),D=v(b),g.css(D),b.precedance==="y"?C=[x(w.x==="left"?p:w.x==="right"?D.width-m-p:(D.width-m)/2),x(w.y==="top"?D.height-q:0)]:C=[x(w.x==="left"?D.width-m:0),x(w.y==="top"?p:w.y==="bottom"?D.height-q-p:(D.height-q)/2)],r?(l.attr(D),A=l[0].getContext("2d"),A.restore(),A.save(),A.clearRect(0,0,3e3,3e3),A.translate(C[0],C[1]),A.beginPath(),A.moveTo(B[0][0],B[0][1]),A.lineTo(B[1][0],B[1][1]),A.lineTo(B[2][0],B[2][1]),A.closePath(),A.fillStyle=o.fill,A.strokeStyle=o.border,A.lineWidth=p*2,A.lineJoin="miter",A.miterLimit=100,p&&A.stroke(),A.fill()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(w.string().indexOf("center")>-1),left:C[0]-C[2]*Number(z==="x"),top:C[1]-C[2]*Number(z==="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:B,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&p>0&&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=v(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=t(b,c,d),i=u(b),f[c]=a?t(b,c):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 y(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 x(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 w(b,c){var i,j,k,l,m=a(this),n=a(document.body),o=this===document?n:m,p=m.metadata?m.metadata(c.metadata):f,q=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,r=m.data(c.metadata.name||"qtipopts");try{r=typeof r==="string"?(new Function("return "+r))():r}catch(s){a.error("Unable to parse HTML5 attribute data: "+r)}l=a.extend(d,{},g.defaults,c,typeof r==="object"?u(r):f,u(q||p)),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else return e}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,t,a.attr(this,"title")),this.removeAttribute("title")),i=new v(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function v(c,r,s,v){function O(){var c=[r.show.target[0],r.hide.target[0],w.rendered&&D.tooltip[0],r.position.container[0],r.position.viewport[0],b,document];w.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(C):r.show.target.unbind(C+"-create")}function N(){function t(a){B.is(":visible")&&w.reposition(a)}function p(a){if(B.hasClass(m))return e;clearTimeout(w.timers.inactive),w.timers.inactive=setTimeout(function(){w.hide(a)},r.hide.inactive)}function o(b){if(B.hasClass(m))return e;var c=a(b.relatedTarget||b.target),d=c.closest(n)[0]===B[0],g=c[0]===h.show[0];clearTimeout(w.timers.show),clearTimeout(w.timers.hide);f.target==="mouse"&&d||r.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||g))?b.preventDefault():r.hide.delay>0?w.timers.hide=setTimeout(function(){w.hide(b)},r.hide.delay):w.hide(b)}function l(a){if(B.hasClass(m))return e;h.show.trigger("qtip-"+s+"-inactive"),clearTimeout(w.timers.show),clearTimeout(w.timers.hide);var b=function(){w.toggle(d,a)};r.show.delay>0?w.timers.show=setTimeout(b,r.show.delay):b()}var f=r.position,h={show:r.show.target,hide:r.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+r.show.event).split(" "),hide:a.trim(""+r.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;B.bind("mouseenter"+C+" mouseleave"+C,function(a){var b=a.type==="mouseenter";b&&w.focus(a),B.toggleClass(q,b)}),r.hide.fixed&&(h.hide=h.hide.add(B),B.bind("mouseover"+C,function(){B.hasClass(m)||clearTimeout(w.timers.hide)})),/mouse(out|leave)/i.test(r.hide.event)?r.hide.leave&&h.window.bind("mouse"+(r.hide.leave.indexOf("frame")>-1?"out":"leave")+C,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&w.hide(a)}):/mouse(over|enter)/i.test(r.show.event)&&h.hide.bind("mouseleave"+C,function(a){clearTimeout(w.timers.show)}),(""+r.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+C,function(b){var d=a(b.target),e=!B.hasClass(m)&&B.is(":visible");d.parents(n).length===0&&d.add(c).length>1&&w.hide(b)}),"number"===typeof r.hide.inactive&&(h.show.bind("qtip-"+s+"-inactive",p),a.each(g.inactiveEvents,function(a,b){h.hide.add(D.tooltip).bind(b+C+"-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+C,function(a){B.is(":visible")?o(a):l(a)}),delete j.show[d]):h.hide.bind(c+C,o)}),a.each(j.show,function(a,b){h.show.bind(b+C,l)}),"number"===typeof r.hide.distance&&h.show.bind("mousemove"+C,function(a){var b=E.origin||{},c=r.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&w.hide(a)}),f.target==="mouse"&&(h.show.add(B).bind("mousemove"+C,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),f.adjust.mouse&&(r.hide.event&&B.bind("mouseleave"+C,function(a){(a.relatedTarget||a.target)!==h.show[0]&&w.hide(a)}),h.document.bind("mousemove"+C,function(a){!B.hasClass(m)&&B.is(":visible")&&w.reposition(a||i)}))),(f.adjust.resize||h.viewport.length)&&(a.event.special.resize?h.viewport:h.window).bind("resize"+C,t),(h.viewport.length||k&&B.css("position")==="fixed")&&h.viewport.bind("scroll"+C,t)}function M(b,d){function g(a){function c(c){(b=b.not(this)).length===0&&(w.redraw(),d!==e&&w.reposition(E.event),a())}var b;if((b=f.find("img:not([height]):not([width])")).length===0)return c.call(b);b.each(function(a,b){(function d(){var e=w.timers.img;if(b.height&&b.width){clearTimeout(e[a]);return c.call(b)}e[a]=setTimeout(d,20)})()})}var f=D.content;b=b||r.content.text;if(!w.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,w)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),w.rendered<0?B.queue("fx",g):(A=0,g(a.noop));return w}function L(b){var d=D.title;if(!w.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,w)||""),b.jquery&&b.length>0?d.empty().append(b.css({display:"block"})):d.html(b),w.redraw(),w.rendered&&B.is(":visible")&&w.reposition(E.event)}function K(a){var b=D.button,c=D.title;if(!w.rendered)return e;a?(c||J(),I()):b.remove()}function J(){var b=y+"-title";D.titlebar&&H(),D.titlebar=a("
",{"class":k+"-titlebar "+(r.style.widget?"ui-widget-header":"")}).append(D.title=a("
",{id:b,"class":k+"-title","aria-atomic":d})).insertBefore(D.content),r.content.title.button?I():w.rendered&&w.redraw()}function I(){var b=r.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";D.button&&D.button.remove(),b.jquery?D.button=b:D.button=a("",{"class":"ui-state-default "+(r.style.widget?"":k+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),D.button.appendTo(D.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){B.hasClass(m)||w.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")}),w.redraw()}function H(){D.title&&(D.titlebar.remove(),D.titlebar=D.title=D.button=f,w.reposition())}function G(){var a=r.style.widget;B.toggleClass(l,a).toggleClass(o,!a),D.content.toggleClass(l+"-content",a),D.titlebar&&D.titlebar.toggleClass(l+"-header",a),D.button&&D.button.toggleClass(k+"-icon",!a)}function F(a){var b=0,c,d=r,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(B[0].id=i,D.content[0].id=i+"-content",D.title[0].id=i+"-title")},"^content.text$":function(a,b,c){M(c)},"^content.title.text$":function(a,b,c){if(!c)return H();!D.title&&c&&J(),L(c)},"^content.title.button$":function(a,b,c){K(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){w.rendered&&B.appendTo(c)},"^show.ready$":function(){w.rendered?w.toggle(d):w.render(1)},"^style.classes$":function(b,c,d){a.attr(B[0],"class",k+" qtip ui-helper-reset "+d)},"^style.widget|content.title":G,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){B[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)$":function(){O(),N()}},a.extend(w,{render:function(b){if(w.rendered)return w;var f=r.content.title.text,g=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",y),B=D.tooltip=a("
",{id:y,"class":k+" qtip ui-helper-reset "+o+" "+r.style.classes,width:r.style.width||"",role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":y+"-content","aria-hidden":d}).toggleClass(m,E.disabled).data("qtip",w).appendTo(r.position.container).append(D.content=a("
",{"class":k+"-content",id:y+"-content","aria-atomic":d})),w.rendered=-1,A=1,f&&(J(),L(f)),M(e,e),w.rendered=d,G(),a.each(r.events,function(b,c){a.isFunction(c)&&B.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(w)}),N(),B.queue("fx",function(a){g.originalEvent=E.event,B.trigger(g,[w]),A=0,w.redraw(),(r.show.ready||b)&&w.toggle(d,E.event),a()});return w},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:B.outerHeight(),width:B.outerWidth()};break;case"offset":b=h.offset(B,r.position.container);break;default:c=F(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(w,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=w.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=F(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}),u(r),z=A=1,a.each(b,m),z=A=0,B.is(":visible")&&w.rendered&&(i&&w.reposition(r.position.target==="mouse"?f:E.event),j&&w.redraw());return w},toggle:function(b,c){function m(){b?(a.browser.msie&&B[0].style.removeAttribute("filter"),B.css("overflow","")):B.css({display:"",visibility:"",width:r.style.width||"",opacity:"",left:"",top:""})}if(!w.rendered)if(b)w.render(1);else return w;var d=b?"show":"hide",g=r[d],h=B.is(":visible"),j=!c||E.target[0]===c.target,k,l;(typeof b).search("boolean|number")&&(b=!h);if(!B.is(":animated")&&h===b&&j)return w;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(E.event.type)&&c.target===r.show.target[0]&&B.has(c.relatedTarget).length)return w;E.event=a.extend({},c)}l=a.Event("tooltip"+d),l.originalEvent=c?E.event:f,B.trigger(l,[w,90]);if(l.isDefaultPrevented())return w;a.attr(B[0],"aria-hidden",!b),b?(E.origin=a.extend({},i),w.focus(c),a.isFunction(r.content.text)&&M(),w.reposition(c),g.solo&&a(n,g.solo).not(B).qtip("hide",l)):(clearTimeout(w.timers.show),delete E.origin,w.blur(c)),j&&B.stop(0,1),g.effect===e?(B[d](),m.call(B)):a.isFunction(g.effect)?(g.effect.call(B,w),B.queue("fx",function(a){m(),a()})):B.fadeTo(90,b?1:0,m),b&&g.target.trigger("qtip-"+s+"-inactive");return w},show:function(a){return w.toggle(d,a)},hide:function(a){return w.toggle(e,a)},focus:function(b){if(!w.rendered)return w;var c=a(n),d=parseInt(B[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;B.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,B.trigger(i,[w,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)),B.addClass(p)[0].style.zIndex=e));return w},blur:function(b){var c=a.extend({},b),d;B.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,B.trigger(d,[w]);return w},reposition:function(c,d){if(!w.rendered||z)return w;z=1;var f=r.position.target,g=r.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=B.outerWidth(),p=B.outerHeight(),q=0,s=0,t=a.Event("tooltipmove"),u=B.css("position")==="fixed",v=g.viewport,y={left:0,top:0},A=(w.plugins.tip||{}).corner,C={horizontal:n[0],vertical:n[1]||n[0],tip:r.style.tip||{},left:function(a){var b=C.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=C.tip.width+C.tip.border*2||0,g=A&&A.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=A&&A.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,y.left+=h>0?h:i>0?-i:0,y.left=Math.max(v.offset.left+(g&&A.x==="center"?C.tip.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),y.left))):(h>0&&(j.x!=="left"||i>0)?y.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(y.left-=n?-k:k+2*m.x),y.left!==a&&n&&(y.left-=m.x),y.lefti&&(y.left=a));return y.left-a},top:function(a){var b=C.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?s:l.y==="bottom"?-s:-s/2,f=C.tip.height+C.tip.border*2||0,g=A&&A.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=A&&A.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,y.top+=h>0?h:i>0?-i:0,y.top=Math.max(v.offset.top+(g&&A.x==="center"?C.tip.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),y.top))):(h>0&&(j.y!=="top"||i>0)?y.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(y.top-=n?-k:k+2*m.y),y.top!==a&&n&&(y.top-=m.y),y.top<0&&-y.top>i&&(y.top=a));return y.top-a}};if(f==="mouse"&&(c&&c.pageX||E.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?E.event:!m.mouse&&E.origin?E.origin:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:c,y={top:c.pageY,left:c.pageX};else{f==="event"?c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=E.target=a(c.target):f=E.target:E.target=a(f),f=a(f).eq(0);if(f.length===0)return w;f[0]===document||f[0]===b?(q=h.iOS?b.innerWidth:f.width(),s=h.iOS?b.innerHeight:f.height(),f[0]===b&&(y={top:!u||h.iOS?(v||f).scrollTop():0,left:!u||h.iOS?(v||f).scrollLeft():0})):f.is("area")&&h.imagemap?y=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?y=h.svg(f,l):(q=f.outerWidth(),s=f.outerHeight(),y=h.offset(f,g.container,u)),y.offset&&(q=y.width,s=y.height,y=y.offset),y.left+=l.x==="right"?q:l.x==="center"?q/2:0,y.top+=l.y==="bottom"?s:l.y==="center"?s/2:0}y.left+=m.x+(j.x==="right"?-o:j.x==="center"?-o/2:0),y.top+=m.y+(j.y==="bottom"?-p:j.y==="center"?-p/2:0),v.jquery&&f[0]!==b&&f[0]!==x&&C.vertical+C.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}},y.adjusted={left:C.horizontal!=="none"?C.left(y.left):0,top:C.vertical!=="none"?C.top(y.top):0}):y.adjusted={left:0,top:0},B.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),B.trigger(t,[w,y,v.elem||v]);if(t.isDefaultPrevented())return w;delete y.adjusted,d===e||isNaN(y.left)||isNaN(y.top)||f==="mouse"||!a.isFunction(g.effect)?B.css(y):a.isFunction(g.effect)&&(g.effect.call(B,w,a.extend({},y)),B.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),z=0;return w},redraw:function(){if(w.rendered<1||A)return w;var b=k+"-fluid",c=r.position.container,d,e,f,g;A=1,r.style.width?B.css("width",r.style.width):(B.css("width","").addClass(b),e=B.width()+(a.browser.mozilla?1:0),f=B.css("max-width")||"",g=B.css("min-width")||"",d=(f+g).indexOf("%")>-1?c.width()/100:0,f=(f.indexOf("%")>-1?d:1)*parseInt(f,10)||e,g=(g.indexOf("%")>-1?d:1)*parseInt(g,10)||0,e=f+g?Math.min(Math.max(e,g),f):e,B.css("width",Math.round(e)).removeClass(b)),A=0;return w},disable:function(b){var c=m;"boolean"!==typeof b&&(b=!B.hasClass(c)&&!E.disabled),w.rendered?(B.toggleClass(c,b),a.attr(B[0],"aria-disabled",b)):E.disabled=!!b;return w},enable:function(){return w.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,t);w.rendered&&(B.remove(),a.each(w.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(w.timers.show),clearTimeout(w.timers.hide),O(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(t)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[w.id];return c}})}function u(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}"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="-31000px",s="_replacedByqTip",t="oldtitle";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=u(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(k){function r(b){function d(){p.render(typeof b==="object"||l.show.ready),m.show.add(m.hide).unbind(o)}if(p.cache.disabled)return e;p.cache.event=a.extend({},b),p.cache.target=b?a(b.target):[c],l.show.delay>0?(clearTimeout(p.timers.show),p.timers.show=setTimeout(d,l.show.delay),n.show!==n.hide&&m.hide.bind(n.hide,function(){clearTimeout(p.timers.show)})):d()}var l,m,n,o,p,q;q=a.isArray(b.id)?b.id[k]:b.id,q=!q||q===e||q.length<1||j[q]?g.nextid++:j[q]=q,o=".qtip-"+q+"-create",p=w.call(this,q,b);if(p===e)return d;l=p.options,a.each(h,function(){this.initialize==="initialize"&&this(p)}),m={show:l.show.target,hide:l.hide.target},n={show:a.trim(""+l.show.event).replace(/ /g,o+" ")+o,hide:a.trim(""+l.hide.event).replace(/ /g,o+" ")+o},/mouse(over|enter)/i.test(n.show)&&!/mouse(out|leave)/i.test(n.hide)&&(n.hide+=" mouseleave"+o),l.position.target==="mouse"&&m.show.bind("mousemove"+o,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),m.show.bind(n.show,r),(l.show.ready||l.prerender)&&r(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{if(g[0]===j)break;g.css("position")!=="static"&&(k=g.position(),f.left-=k.left+(parseInt(g.css("borderLeftWidth"),10)||0),f.top-=k.top+(parseInt(g.css("borderTopWidth"),10)||0),i++)}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,t);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+s].apply(this,arguments),a.attr(d,t,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+s].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,t)),this.removeAttribute(t)}).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+s]=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).stop().animate(c,200)}},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new x(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 z(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 A(c){var f=this,g=c.options.show.modal,h=c.elements,i=h.tooltip,j="#qtip-overlay",k=".qtipmodal",l=k+c.id,m="is-modal-qtip",o=a(document.body),q;c.checks.modal={"^show.modal.(on|blur)$":function(){f.init(),h.overlay.toggle(i.is(":visible"))}},a.extend(f,{init:function(){if(!g.on)return f;q=f.create(),i.attr(m,d).unbind(k).unbind(l).bind("tooltipshow"+k+" tooltiphide"+k,function(a,b,c){var d=a.originalEvent;a.type==="tooltiphide"&&/mouse(leave|enter)/.test(d.type)&&d.relatedTarget===q[0]?a.preventDefault():f[a.type.replace("tooltip","")](a,c)}).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),css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return e}}).appendTo(document.body),a(b).unbind(k).bind("resize"+k,function(){q.css({height:Math.max(a(b).height(),a(document).height()),width:Math.max(a(b).width(),a(document).width())})}).trigger("resize");return q},toggle:function(b,c,j){if(b&&b.isDefaultPrevented())return f;var k=g.effect,p=c?"show":"hide",r=q.is(":visible"),s=a("["+m+"]:visible").not(i),t;q||(q=f.create());if(q.is(":animated")&&r===c||!c&&s.length)return f;c?(h.overlay.css("cursor",g.blur?"pointer":""),o.delegate("*","focusin"+l,function(b){a(b.target).closest(n)[0]!==i[0]&&a("a, :input, img",i).add(i).focus()})):o.undelegate("*","focus"+l),q.stop(d,e),a.isFunction(k)?k.call(q,c):k===e?q[p]():q.fadeTo(parseInt(j,10)||90,c?.7:0,function(){c||a(this).hide()});return f},show:function(a,b){return f.toggle(a,d,b)},hide:function(a,b){return f.toggle(a,e,b)},destroy:function(){var d=q;d&&(d=a("["+m+"]").not(i).length<1,d?(h.overlay.remove(),a(b).unbind(k)):h.overlay.unbind(k+c.id),o.undelegate("*","focus"+l));return i.removeAttr(m).unbind(k)}}),f.init()}function z(b,g){function v(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 u(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 t(a,b,c){b=b?b:a[a.precedance];var d=k.titlebar&&a.y==="top",e=d?k.titlebar:k.content,f="border-"+b+"-width",g=parseInt(e.css(f),10);return(c?g||parseInt(l.css(f),10):g)||0}function s(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",r=!!(a("")[0]||{}).getContext;i.corner=f,i.mimic=f,i.position={},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()&&(r||a.browser.msie);b&&(i.create(),i.update(),l.unbind(q).bind("tooltipmove"+q,s));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,r="background-color",s="transparent",t="ui-tooltip-fluid",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),r?a("").appendTo(k.tip)[0].getContext("2d").save():(d='',k.tip.html(p?d+=d:d))},update:function(b,c){var g=k.tip,l=g.children(),m=n.width,q=n.height,s="px solid ",u="px dashed transparent",w=j.mimic,x=Math.round,z,A,B,C,D;b||(b=i.corner),w===e?w=b:(w=new h.Corner(w),w.precedance=b.precedance,w.x==="inherit"?w.x=b.x:w.y==="inherit"?w.y=b.y:w.x===w.y&&(w[b.precedance]=b[b.precedance])),z=w.precedance,i.detectColours(),p=o.border==="transparent"||o.border==="#123456"?0:j.border===d?t(b,f,d):j.border,B=y(w,m,q),D=v(b),g.css(D),b.precedance==="y"?C=[x(w.x==="left"?p:w.x==="right"?D.width-m-p:(D.width-m)/2),x(w.y==="top"?D.height-q:0)]:C=[x(w.x==="left"?D.width-m:0),x(w.y==="top"?p:w.y==="bottom"?D.height-q-p:(D.height-q)/2)],r?(l.attr(D),A=l[0].getContext("2d"),A.restore(),A.save(),A.clearRect(0,0,3e3,3e3),A.translate(C[0],C[1]),A.beginPath(),A.moveTo(B[0][0],B[0][1]),A.lineTo(B[1][0],B[1][1]),A.lineTo(B[2][0],B[2][1]),A.closePath(),A.fillStyle=o.fill,A.strokeStyle=o.border,A.lineWidth=p*2,A.lineJoin="miter",A.miterLimit=100,p&&A.stroke(),A.fill()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" xe",C[2]=p&&/^(r|b)/i.test(b.string())?parseFloat(a.browser.version,10)===8?2:1:0,l.css({antialias:""+(w.string().indexOf("center")>-1),left:C[0]-C[2]*Number(z==="x"),top:C[1]-C[2]*Number(z==="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:B,fillcolor:o.fill,filled:!!b,stroked:!b}).css({display:p||b?"block":"none"}),!b&&p>0&&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=v(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=t(b,c,d),i=u(b),f[c]=a?t(b,c):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 y(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 x(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 w(b,c){var i,j,k,l,m=a(this),n=a(document.body),o=this===document?n:m,p=m.metadata?m.metadata(c.metadata):f,q=c.metadata.type==="html5"&&p?p[c.metadata.name]:f,r=m.data(c.metadata.name||"qtipopts");try{r=typeof r==="string"?(new Function("return "+r))():r}catch(s){a.error("Unable to parse HTML5 attribute data: "+r)}l=a.extend(d,{},g.defaults,c,typeof r==="object"?u(r):f,u(q||p)),j=l.position,l.id=b;if("boolean"===typeof l.content.text){k=m.attr(l.content.attr);if(l.content.attr!==e&&k)l.content.text=k;else return e}j.container===e&&(j.container=n),j.target===e&&(j.target=o),l.show.target===e&&(l.show.target=o),l.show.solo===d&&(l.show.solo=n),l.hide.target===e&&(l.hide.target=o),l.position.viewport===d&&(l.position.viewport=j.container),j.at=new h.Corner(j.at),j.my=new h.Corner(j.my);if(a.data(this,"qtip"))if(l.overwrite)m.qtip("destroy");else if(l.overwrite===e)return e;a.attr(this,"title")&&(a.attr(this,t,a.attr(this,"title")),this.removeAttribute("title")),i=new v(m,l,b,!!k),a.data(this,"qtip",i),m.bind("remove.qtip",function(){i.destroy()});return i}function v(c,r,s,v){function O(){var c=[r.show.target[0],r.hide.target[0],w.rendered&&D.tooltip[0],r.position.container[0],r.position.viewport[0],b,document];w.rendered?a([]).pushStack(a.grep(c,function(a){return typeof a==="object"})).unbind(C):r.show.target.unbind(C+"-create")}function N(){function t(a){B.is(":visible")&&w.reposition(a)}function p(a){if(B.hasClass(m))return e;clearTimeout(w.timers.inactive),w.timers.inactive=setTimeout(function(){w.hide(a)},r.hide.inactive)}function o(b){if(B.hasClass(m))return e;var c=a(b.relatedTarget||b.target),d=c.closest(n)[0]===B[0],g=c[0]===h.show[0];clearTimeout(w.timers.show),clearTimeout(w.timers.hide);f.target==="mouse"&&d||r.hide.fixed&&(/mouse(out|leave|move)/.test(b.type)&&(d||g))?b.preventDefault():r.hide.delay>0?w.timers.hide=setTimeout(function(){w.hide(b)},r.hide.delay):w.hide(b)}function l(a){if(B.hasClass(m))return e;h.show.trigger("qtip-"+s+"-inactive"),clearTimeout(w.timers.show),clearTimeout(w.timers.hide);var b=function(){w.toggle(d,a)};r.show.delay>0?w.timers.show=setTimeout(b,r.show.delay):b()}var f=r.position,h={show:r.show.target,hide:r.hide.target,viewport:a(f.viewport),document:a(document),window:a(b)},j={show:a.trim(""+r.show.event).split(" "),hide:a.trim(""+r.hide.event).split(" ")},k=a.browser.msie&&parseInt(a.browser.version,10)===6;B.bind("mouseenter"+C+" mouseleave"+C,function(a){var b=a.type==="mouseenter";b&&w.focus(a),B.toggleClass(q,b)}),r.hide.fixed&&(h.hide=h.hide.add(B),B.bind("mouseover"+C,function(){B.hasClass(m)||clearTimeout(w.timers.hide)})),/mouse(out|leave)/i.test(r.hide.event)?r.hide.leave&&h.window.bind("mouse"+(r.hide.leave.indexOf("frame")>-1?"out":"leave")+C,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&w.hide(a)}):/mouse(over|enter)/i.test(r.show.event)&&h.hide.bind("mouseleave"+C,function(a){clearTimeout(w.timers.show)}),(""+r.hide.event).indexOf("unfocus")>-1&&h.document.bind("mousedown"+C,function(b){var d=a(b.target),e=!B.hasClass(m)&&B.is(":visible");d.parents(n).length===0&&d.add(c).length>1&&w.hide(b)}),"number"===typeof r.hide.inactive&&(h.show.bind("qtip-"+s+"-inactive",p),a.each(g.inactiveEvents,function(a,b){h.hide.add(D.tooltip).bind(b+C+"-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+C,function(a){B.is(":visible")?o(a):l(a)}),delete j.show[d]):h.hide.bind(c+C,o)}),a.each(j.show,function(a,b){h.show.bind(b+C,l)}),"number"===typeof r.hide.distance&&h.show.bind("mousemove"+C,function(a){var b=E.origin||{},c=r.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&w.hide(a)}),f.target==="mouse"&&(h.show.add(B).bind("mousemove"+C,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),f.adjust.mouse&&(r.hide.event&&B.bind("mouseleave"+C,function(a){(a.relatedTarget||a.target)!==h.show[0]&&w.hide(a)}),h.document.bind("mousemove"+C,function(a){!B.hasClass(m)&&B.is(":visible")&&w.reposition(a||i)}))),(f.adjust.resize||h.viewport.length)&&(a.event.special.resize?h.viewport:h.window).bind("resize"+C,t),(h.viewport.length||k&&B.css("position")==="fixed")&&h.viewport.bind("scroll"+C,t)}function M(b,d){function g(a){function c(c){(b=b.not(this)).length===0&&(w.redraw(),d!==e&&w.reposition(E.event),a())}var b;if((b=f.find("img:not([height]):not([width])")).length===0)return c.call(b);b.each(function(a,b){(function d(){var e=w.timers.img;if(b.height&&b.width){clearTimeout(e[a]);return c.call(b)}e[a]=setTimeout(d,20)})()})}var f=D.content;b=b||r.content.text;if(!w.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,w)||""),b.jquery&&b.length>0?f.empty().append(b.css({display:"block"})):f.html(b),w.rendered<0?B.queue("fx",g):(A=0,g(a.noop));return w}function L(b){var d=D.title;if(!w.rendered||!b)return e;a.isFunction(b)&&(b=b.call(c,w)||""),b.jquery&&b.length>0?d.empty().append(b.css({display:"block"})):d.html(b),w.redraw(),w.rendered&&B.is(":visible")&&w.reposition(E.event)}function K(a){var b=D.button,c=D.title;if(!w.rendered)return e;a?(c||J(),I()):b.remove()}function J(){var b=y+"-title";D.titlebar&&H(),D.titlebar=a("
",{"class":k+"-titlebar "+(r.style.widget?"ui-widget-header":"")}).append(D.title=a("
",{id:b,"class":k+"-title","aria-atomic":d})).insertBefore(D.content),r.content.title.button?I():w.rendered&&w.redraw()}function I(){var b=r.content.title.button,c=typeof b==="string",d=c?b:"Close tooltip";D.button&&D.button.remove(),b.jquery?D.button=b:D.button=a("",{"class":"ui-state-default "+(r.style.widget?"":k+"-icon"),title:d,"aria-label":d}).prepend(a("",{"class":"ui-icon ui-icon-close",html:"×"})),D.button.appendTo(D.titlebar).attr("role","button").hover(function(b){a(this).toggleClass("ui-state-hover",b.type==="mouseenter")}).click(function(a){B.hasClass(m)||w.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")}),w.redraw()}function H(){D.title&&(D.titlebar.remove(),D.titlebar=D.title=D.button=f,w.reposition())}function G(){var a=r.style.widget;B.toggleClass(l,a).toggleClass(o,!a),D.content.toggleClass(l+"-content",a),D.titlebar&&D.titlebar.toggleClass(l+"-header",a),D.button&&D.button.toggleClass(k+"-icon",!a)}function F(a){var b=0,c,d=r,e=a.split(".");while(d=d[e[b++]])b0&&!a("#"+i).length&&(B[0].id=i,D.content[0].id=i+"-content",D.title[0].id=i+"-title")},"^content.text$":function(a,b,c){M(c)},"^content.title.text$":function(a,b,c){if(!c)return H();!D.title&&c&&J(),L(c)},"^content.title.button$":function(a,b,c){K(c)},"^position.(my|at)$":function(a,b,c){"string"===typeof c&&(a[b]=new h.Corner(c))},"^position.container$":function(a,b,c){w.rendered&&B.appendTo(c)},"^show.ready$":function(){w.rendered?w.toggle(d):w.render(1)},"^style.classes$":function(b,c,d){a.attr(B[0],"class",k+" qtip ui-helper-reset "+d)},"^style.widget|content.title":G,"^events.(render|show|move|hide|focus|blur)$":function(b,c,d){B[(a.isFunction(d)?"":"un")+"bind"]("tooltip"+c,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)$":function(){O(),N()}},a.extend(w,{render:function(b){if(w.rendered)return w;var f=r.content.title.text,g=a.Event("tooltiprender");a.attr(c[0],"aria-describedby",y),B=D.tooltip=a("
",{id:y,"class":k+" qtip ui-helper-reset "+o+" "+r.style.classes,width:r.style.width||"",role:"alert","aria-live":"polite","aria-atomic":e,"aria-describedby":y+"-content","aria-hidden":d}).toggleClass(m,E.disabled).data("qtip",w).appendTo(r.position.container).append(D.content=a("
",{"class":k+"-content",id:y+"-content","aria-atomic":d})),w.rendered=-1,A=1,f&&(J(),L(f)),M(e,e),w.rendered=d,G(),a.each(r.events,function(b,c){a.isFunction(c)&&B.bind(b==="toggle"?"tooltipshow tooltiphide":"tooltip"+b,c)}),a.each(h,function(){this.initialize==="render"&&this(w)}),N(),B.queue("fx",function(a){g.originalEvent=E.event,B.trigger(g,[w]),A=0,w.redraw(),(r.show.ready||b)&&w.toggle(d,E.event),a()});return w},get:function(a){var b,c;switch(a.toLowerCase()){case"dimensions":b={height:B.outerHeight(),width:B.outerWidth()};break;case"offset":b=h.offset(B,r.position.container);break;default:c=F(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(w,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=w.checks,l;"string"===typeof b?(l=b,b={},b[l]=c):b=a.extend(d,{},b),a.each(b,function(c,d){var e=F(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}),u(r),z=A=1,a.each(b,m),z=A=0,B.is(":visible")&&w.rendered&&(i&&w.reposition(r.position.target==="mouse"?f:E.event),j&&w.redraw());return w},toggle:function(b,c){function m(){b?(a.browser.msie&&B[0].style.removeAttribute("filter"),B.css("overflow","")):B.css({display:"",visibility:"",width:r.style.width||"",opacity:"",left:"",top:""})}if(!w.rendered)if(b)w.render(1);else return w;var d=b?"show":"hide",g=r[d],h=B.is(":visible"),j=!c||E.target[0]===c.target,k,l;(typeof b).search("boolean|number")&&(b=!h);if(!B.is(":animated")&&h===b&&j)return w;if(c){if(/over|enter/.test(c.type)&&/out|leave/.test(E.event.type)&&c.target===r.show.target[0]&&B.has(c.relatedTarget).length)return w;E.event=a.extend({},c)}l=a.Event("tooltip"+d),l.originalEvent=c?E.event:f,B.trigger(l,[w,90]);if(l.isDefaultPrevented())return w;a.attr(B[0],"aria-hidden",!b),b?(E.origin=a.extend({},i),w.focus(c),a.isFunction(r.content.text)&&M(),w.reposition(c),g.solo&&a(n,g.solo).not(B).qtip("hide",l)):(clearTimeout(w.timers.show),delete E.origin,w.blur(c)),j&&B.stop(0,1),g.effect===e?(B[d](),m.call(B)):a.isFunction(g.effect)?(g.effect.call(B,w),B.queue("fx",function(a){m(),a()})):B.fadeTo(90,b?1:0,m),b&&g.target.trigger("qtip-"+s+"-inactive");return w},show:function(a){return w.toggle(d,a)},hide:function(a){return w.toggle(e,a)},focus:function(b){if(!w.rendered)return w;var c=a(n),d=parseInt(B[0].style.zIndex,10),e=g.zindex+c.length,f=a.extend({},b),h,i;B.hasClass(p)||(i=a.Event("tooltipfocus"),i.originalEvent=f,B.trigger(i,[w,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)),B.addClass(p)[0].style.zIndex=e));return w},blur:function(b){var c=a.extend({},b),d;B.removeClass(p),d=a.Event("tooltipblur"),d.originalEvent=c,B.trigger(d,[w]);return w},reposition:function(c,d){if(!w.rendered||z)return w;z=1;var f=r.position.target,g=r.position,j=g.my,l=g.at,m=g.adjust,n=m.method.split(" "),o=B.outerWidth(),p=B.outerHeight(),q=0,s=0,t=a.Event("tooltipmove"),u=B.css("position")==="fixed",v=g.viewport,y={left:0,top:0},A=(w.plugins.tip||{}).corner,C={horizontal:n[0],vertical:n[1]||n[0],tip:r.style.tip||{},left:function(a){var b=C.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=C.tip.width+C.tip.border*2||0,g=A&&A.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=A&&A.precedance==="y"?f:0,k=(j.x==="left"?1:-1)*d-g,y.left+=h>0?h:i>0?-i:0,y.left=Math.max(v.offset.left+(g&&A.x==="center"?C.tip.offset:0),a-k,Math.min(Math.max(v.offset.left+v.width,a+k),y.left))):(h>0&&(j.x!=="left"||i>0)?y.left-=k+(n?0:2*m.x):i>0&&(j.x!=="right"||h>0)&&(y.left-=n?-k:k+2*m.x),y.left!==a&&n&&(y.left-=m.x),y.lefti&&(y.left=a));return y.left-a},top:function(a){var b=C.vertical==="shift",c=v.offset.top+v.scrollTop,d=j.y==="top"?p:j.y==="bottom"?-p:-p/2,e=l.y==="top"?s:l.y==="bottom"?-s:-s/2,f=C.tip.height+C.tip.border*2||0,g=A&&A.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=A&&A.precedance==="x"?f:0,k=(j.y==="top"?1:-1)*d-g,y.top+=h>0?h:i>0?-i:0,y.top=Math.max(v.offset.top+(g&&A.x==="center"?C.tip.offset:0),a-k,Math.min(Math.max(v.offset.top+v.height,a+k),y.top))):(h>0&&(j.y!=="top"||i>0)?y.top-=k+(n?0:2*m.y):i>0&&(j.y!=="bottom"||h>0)&&(y.top-=n?-k:k+2*m.y),y.top!==a&&n&&(y.top-=m.y),y.top<0&&-y.top>i&&(y.top=a));return y.top-a}};if(f==="mouse"&&(c&&c.pageX||E.event.pageX))l={x:"left",y:"top"},c=c&&(c.type==="resize"||c.type==="scroll")?E.event:!m.mouse&&E.origin?E.origin:i&&(m.mouse||!c||!c.pageX)?{pageX:i.pageX,pageY:i.pageY}:c,y={top:c.pageY,left:c.pageX};else{f==="event"?c&&c.target&&c.type!=="scroll"&&c.type!=="resize"?f=E.target=a(c.target):f=E.target:E.target=a(f),f=a(f).eq(0);if(f.length===0)return w;f[0]===document||f[0]===b?(q=h.iOS?b.innerWidth:f.width(),s=h.iOS?b.innerHeight:f.height(),f[0]===b&&(y={top:!u||h.iOS?(v||f).scrollTop():0,left:!u||h.iOS?(v||f).scrollLeft():0})):f.is("area")&&h.imagemap?y=h.imagemap(f,l):f[0].namespaceURI==="http://www.w3.org/2000/svg"&&h.svg?y=h.svg(f,l):(q=f.outerWidth(),s=f.outerHeight(),y=h.offset(f,g.container,u)),y.offset&&(q=y.width,s=y.height,y=y.offset),y.left+=l.x==="right"?q:l.x==="center"?q/2:0,y.top+=l.y==="bottom"?s:l.y==="center"?s/2:0}y.left+=m.x+(j.x==="right"?-o:j.x==="center"?-o/2:0),y.top+=m.y+(j.y==="bottom"?-p:j.y==="center"?-p/2:0),v.jquery&&f[0]!==b&&f[0]!==x&&C.vertical+C.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}},y.adjusted={left:C.horizontal!=="none"?C.left(y.left):0,top:C.vertical!=="none"?C.top(y.top):0}):y.adjusted={left:0,top:0},B.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),B.trigger(t,[w,y,v.elem||v]);if(t.isDefaultPrevented())return w;delete y.adjusted,d===e||isNaN(y.left)||isNaN(y.top)||f==="mouse"||!a.isFunction(g.effect)?B.css(y):a.isFunction(g.effect)&&(g.effect.call(B,w,a.extend({},y)),B.queue(function(b){a(this).css({opacity:"",height:""}),a.browser.msie&&this.style.removeAttribute("filter"),b()})),z=0;return w},redraw:function(){if(w.rendered<1||A)return w;var b=k+"-fluid",c=r.position.container,d,e,f,g;A=1,r.style.width?B.css("width",r.style.width):(B.css("width","").addClass(b),e=B.width()+(a.browser.mozilla?1:0),f=B.css("max-width")||"",g=B.css("min-width")||"",d=(f+g).indexOf("%")>-1?c.width()/100:0,f=(f.indexOf("%")>-1?d:1)*parseInt(f,10)||e,g=(g.indexOf("%")>-1?d:1)*parseInt(g,10)||0,e=f+g?Math.min(Math.max(e,g),f):e,B.css("width",Math.round(e)).removeClass(b)),A=0;return w},disable:function(b){var c=m;"boolean"!==typeof b&&(b=!B.hasClass(c)&&!E.disabled),w.rendered?(B.toggleClass(c,b),a.attr(B[0],"aria-disabled",b)):E.disabled=!!b;return w},enable:function(){return w.disable(e)},destroy:function(){var b=c[0],d=a.attr(b,t);w.rendered&&(B.remove(),a.each(w.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(w.timers.show),clearTimeout(w.timers.hide),O(),a.removeData(b,"qtip"),d&&(a.attr(b,"title",d),c.removeAttr(t)),c.removeAttr("aria-describedby").unbind(".qtip"),delete j[w.id];return c}})}function u(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}"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="-31000px",s="_replacedByqTip",t="oldtitle";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=u(a.extend(d,{},b));return g.bind.call(this,n,m)}},g.bind=function(b,f){return this.each(function(k){function r(b){function d(){p.render(typeof b==="object"||l.show.ready),m.show.add(m.hide).unbind(o)}if(p.cache.disabled)return e;p.cache.event=a.extend({},b),p.cache.target=b?a(b.target):[c],l.show.delay>0?(clearTimeout(p.timers.show),p.timers.show=setTimeout(d,l.show.delay),n.show!==n.hide&&m.hide.bind(n.hide,function(){clearTimeout(p.timers.show)})):d()}var l,m,n,o,p,q;q=a.isArray(b.id)?b.id[k]:b.id,q=!q||q===e||q.length<1||j[q]?g.nextid++:j[q]=q,o=".qtip-"+q+"-create",p=w.call(this,q,b);if(p===e)return d;l=p.options,a.each(h,function(){this.initialize==="initialize"&&this(p)}),m={show:l.show.target,hide:l.hide.target},n={show:a.trim(""+l.show.event).replace(/ /g,o+" ")+o,hide:a.trim(""+l.hide.event).replace(/ /g,o+" ")+o},/mouse(over|enter)/i.test(n.show)&&!/mouse(out|leave)/i.test(n.hide)&&(n.hide+=" mouseleave"+o),l.position.target==="mouse"&&m.show.bind("mousemove"+o,function(a){i={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),m.show.bind(n.show,r),(l.show.ready||l.prerender)&&r(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,t);if(typeof f==="object"){f&&f.rendered&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",c),a.fn["attr"+s].apply(this,arguments),a.attr(d,t,a.attr(d,e));return this.removeAttr(e)}}}},clone:function(b){var c=a([]),d="title",e;e=a.fn["clone"+s].apply(this,arguments).filter("[oldtitle]").each(function(){a.attr(this,d,a.attr(this,t)),this.removeAttribute(t)}).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+s]=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).stop().animate(c,200)}},show:{target:e,event:"mouseenter",effect:d,delay:90,solo:e,ready:e},hide:{target:e,event:"mouseleave",effect:d,delay:0,fixed:e,inactive:e,leave:"window",distance:e},style:{classes:"",widget:e,width:e},events:{render:f,move:f,show:f,hide:f,toggle:f,focus:f,blur:f}},h.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new x(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 z(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}('(9(a,b,c){9 B(b){S c=V,d=b.2X,e=d.1y,f=".21-"+b.1t;a.1o(c,{1W:9(){d.21=a(\'<5b 1X="1x-1y-21" 8e="0" 8f="-1" 8g="8h:\\\'\\\';" 17="2o:2W; 18:3Z; z-85:-1; 2H:5E(4q=0); -7Z-2H:"5F:8i.7K.5I(5J=0)";">\'),d.21.2T(e),e.1b("42"+f,c.2j)},2j:9(){S a=b.48("59"),c=b.1K.16,f=d.16,g,h;h=1C(e.13("1f-Q-X"),10)||0,h={Q:-h,P:-h},c&&f&&(g=c.1k.1h==="x"?["X","Q"]:["12","P"],h[g[1]]-=f[g[0]]()),d.21.13(h).13(a)},2i:9(){d.21.1V(),e.1v(f)}}),c.1W()}9 A(c){S f=V,g=c.2f.T.1E,h=c.2X,i=h.1y,j="#1g-2q",k=".7F",l=k+c.1t,m="1H-1E-1g",o=a(1A.2S),q;c.2Y.1E={"^T.1E.(35|2c)$":9(){f.1W(),h.2q.1I(i.1H(":1Q"))}},a.1o(f,{1W:9(){W(!g.35)R f;q=f.2n(),i.19(m,d).1v(k).1v(l).1b("4d"+k+" 4e"+k,9(a,b,c){S d=a.31;a.1z==="4e"&&/1u(29|3x)/.1w(d.1z)&&d.38===q[0]?a.4N():f[a.1z.2b("1y","")](a,c)}).1b("5h"+k,9(a,b,c){q[0].17.2Z=c-1}).1b("5j"+k,9(b){a("["+m+"]:1Q").2M(i).7C().1g("1Y",b)}),g.4x&&a(b).1v(l).1b("4X"+l,9(a){a.5L===27&&i.1Z(p)&&c.U(a)}),g.2c&&h.2q.1v(l).1b("4h"+l,9(a){i.1Z(p)&&c.U(a)});R f},2n:9(){S c=a(j);W(c.1d){h.2q=c;R c}q=h.2q=a("<2D />",{1t:j.2K(1),13:{18:"3Z",P:0,Q:0,2o:"3Q"},3y:9(){R e}}).2T(1A.2S),a(b).1v(k).1b("2y"+k,9(){q.13({12:1a.1M(a(b).12(),a(1A).12()),X:1a.1M(a(b).X(),a(1A).X())})}).2v("2y");R q},1I:9(b,c,j){W(b&&b.3o())R f;S k=g.1U,p=c?"T":"U",r=q.1H(":1Q"),s=a("["+m+"]:1Q").2M(i),t;q||(q=f.2n());W(q.1H(":5d")&&r===c||!c&&s.1d)R f;c?(h.2q.13("5N",g.2c?"5O":""),o.5P("*","7z"+l,9(b){a(b.14).4U(n)[0]!==i[0]&&a("a, :7s, 3d",i).2e(i).1Y()})):o.4w("*","1Y"+l),q.4r(d,e),a.1T(k)?k.28(q,c):k===e?q[p]():q.5g(1C(j,10)||3W,c?.7:0,9(){c||a(V).U()});R f},T:9(a,b){R f.1I(a,d,b)},U:9(a,b){R f.1I(a,e,b)},2i:9(){S d=q;d&&(d=a("["+m+"]").2M(i).1d<1,d?(h.2q.1V(),a(b).1v(k)):h.2q.1v(k+c.1t),o.4w("*","1Y"+l));R i.3F(m).1v(k)}}),f.1W()}9 z(b,g){9 v(a){S b=a.1h==="y",c=n[b?"X":"12"],d=n[b?"12":"X"],e=a.1r().2A("1i")>-1,f=c*(e?.5:1),g=1a.5R,h=1a.3V,i,j,k,l=1a.4u(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1a.4u(g(m[0],2)-g(p,2)),m[3]=1a.4u(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)];R{12:k[b?0:1],X:k[b?1:0]}}9 u(b){S c=k.1D&&b.y==="P",d=c?k.1D:k.11,e=a.26.5y,f=e?"-5S-":a.26.4y?"-4y-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1f-4z-"+g:"1f-"+g+"-4z");R 1C(d.13(h),10)||1C(l.13(h),10)||0}9 t(a,b,c){b=b?b:a[a.1h];S d=k.1D&&a.y==="P",e=d?k.1D:k.11,f="1f-"+b+"-X",g=1C(e.13(f),10);R(c?g||1C(l.13(f),10):g)||0}9 s(f,g,h,l){W(k.16){S n=a.1o({},i.1k),o=h.3R,p=b.2f.18.2j.4p.2J(" "),q=p[0],r=p[1]||p[0],s={Q:e,P:e,x:0,y:0},t,u={},v;i.1k.2C!==d&&(q==="2p"&&n.1h==="x"&&o.Q&&n.y!=="1i"?n.1h=n.1h==="x"?"y":"x":q==="3S"&&o.Q&&(n.x=n.x==="1i"?o.Q>0?"Q":"1m":n.x==="Q"?"1m":"Q"),r==="2p"&&n.1h==="y"&&o.P&&n.x!=="1i"?n.1h=n.1h==="y"?"x":"y":r==="3S"&&o.P&&(n.y=n.y==="1i"?o.P>0?"P":"1n":n.y==="P"?"1n":"P"),n.1r()!==m.1k&&(m.P!==o.P||m.Q!==o.Q)&&i.3w(n,e)),t=i.18(n,o),t.1m!==c&&(t.Q=-t.1m),t.1n!==c&&(t.P=-t.1n),t.45=1a.1M(0,j.Y);W(s.Q=q==="2p"&&!!o.Q)n.x==="1i"?u["2Q-Q"]=s.x=t["2Q-Q"]-o.Q:(v=t.1m!==c?[o.Q,-t.Q]:[-o.Q,t.Q],(s.x=1a.1M(v[0],v[1]))>v[0]&&(h.Q-=o.Q,s.Q=e),u[t.1m!==c?"1m":"Q"]=s.x);W(s.P=r==="2p"&&!!o.P)n.y==="1i"?u["2Q-P"]=s.y=t["2Q-P"]-o.P:(v=t.1n!==c?[o.P,-t.P]:[-o.P,t.P],(s.y=1a.1M(v[0],v[1]))>v[0]&&(h.P-=o.P,s.P=e),u[t.1n!==c?"1n":"P"]=s.y);k.16.13(u).1I(!(s.x&&s.y||n.x==="1i"&&s.y||n.y==="1i"&&s.x)),h.Q-=t.Q.3m?t.45:q!=="2p"||s.P||!s.Q&&!s.P?t.Q:0,h.P-=t.P.3m?t.45:r!=="2p"||s.Q||!s.Q&&!s.P?t.P:0,m.Q=o.Q,m.P=o.P,m.1k=n.1r()}}S i=V,j=b.2f.17.16,k=b.2X,l=k.1y,m={P:0,Q:0,1k:""},n={X:j.X,12:j.12},o={},p=j.1f||0,q=".1g-16",r=!!(a("<4A />")[0]||{}).40;i.1k=f,i.3D=f,i.18={},b.2Y.16={"^18.1O|17.16.(1k|3D|1f)$":9(){i.1W()||i.2i(),b.23()},"^17.16.(12|X)$":9(){n={X:j.X,12:j.12},i.2n(),i.3w(),b.23()},"^11.1c.1q|17.(3h|2x)$":9(){k.16&&i.3w()}},a.1o(i,{1W:9(){S b=i.4P()&&(r||a.26.3j);b&&(i.2n(),i.3w(),l.1v(q).1b("42"+q,s));R b},4P:9(){S a=j.1k,c=b.2f.18,f=c.2k,g=c.1O.1r?c.1O.1r():c.1O;W(a===e||g===e&&f===e)R e;a===d?i.1k=1J h.2G(g):a.1r||(i.1k=1J h.2G(a),i.1k.2C=d);R i.1k.1r()!=="5A"},4B:9(){S c,d,e,f=k.16.13({5T:"",1f:""}),g=i.1k,h=g[g.1h],m="1f-"+h+"-3c",p="1f"+h.3m(0)+h.2K(1)+"5U",q=/5V?\\(0, 0, 0(, 0)?\\)|3A/i,r="6s-3c",s="3A",t="1x-1y-5x",u=a(1A.2S).13("3c"),v=b.2X.11.13("3c"),w=k.1D&&(g.y==="P"||g.y==="1i"&&f.18().P+n.12/2+j.Y",{"1X":"1x-1y-16"}).13({X:b,12:c}).6D(l),r?a("<4A />").2T(k.16)[0].40("2d").4C():(d=\'<4m:46 5Y="0,0" 17="2o:4J-2W; 18:3Z; 5q:2z(#3v#5v);">\',k.16.33(p?d+=d:d))},3w:9(b,c){S g=k.16,l=g.5Z(),m=n.X,q=n.12,s="4n 60 ",u="4n 61 3A",w=j.3D,x=1a.3V,z,A,B,C,D;b||(b=i.1k),w===e?w=b:(w=1J h.2G(w),w.1h=b.1h,w.x==="3M"?w.x=b.x:w.y==="3M"?w.y=b.y:w.x===w.y&&(w[b.1h]=b[b.1h])),z=w.1h,i.4B(),p=o.1f==="3A"||o.1f==="#62"?0:j.1f===d?t(b,f,d):j.1f,B=y(w,m,q),D=v(b),g.13(D),b.1h==="y"?C=[x(w.x==="Q"?p:w.x==="1m"?D.X-m-p:(D.X-m)/2),x(w.y==="P"?D.12-q:0)]:C=[x(w.x==="Q"?D.X-m:0),x(w.y==="P"?p:w.y==="1n"?D.12-q-p:(D.12-q)/2)],r?(l.19(D),A=l[0].40("2d"),A.63(),A.4C(),A.65(0,0,5B,5B),A.66(C[0],C[1]),A.67(),A.68(B[0][0],B[0][1]),A.5C(B[1][0],B[1][1]),A.5C(B[2][0],B[2][1]),A.69(),A.6a=o.2N,A.6c=o.1f,A.6d=p*2,A.6e="4H",A.6f=5z,p&&A.5p(),A.2N()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" 6g",C[2]=p&&/^(r|b)/i.1w(b.1r())?4Y(a.26.3O,10)===8?2:1:0,l.13({6h:""+(w.1r().2A("1i")>-1),Q:C[0]-C[2]*4D(z==="x"),P:C[1]-C[2]*4D(z==="y"),X:m+p,12:q+p}).1p(9(b){S c=a(V);c[c.5r?"5r":"19"]({6i:m+p+" "+(q+p),6j:B,6k:o.2N,6l:!!b,6m:!b}).13({2o:p||b?"2W":"3Q"}),!b&&p>0&&c.33()===""&&c.33(\'<4m:5p 6n="\'+p*2+\'4n" 3c="\'+o.1f+\'" 6p="6q" 6r="4H" 17="5q:2z(#3v#5v); 2o:4J-2W;" />\')})),c!==e&&i.18(b)},18:9(b){S c=k.16,f={},g=1a.1M(0,j.Y),h,l,m;W(j.1k===e||!c)R e;b=b||i.1k,h=b.1h,l=v(b),m=[b.x,b.y],h==="x"&&m.6t(),a.1p(m,9(a,c){S e,i;c==="1i"?(e=h==="y"?"Q":"P",f[e]="50%",f["2Q-"+e]=-1a.3V(l[h==="y"?"X":"12"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"X":"12"],c.13({P:"",1n:"",Q:"",1m:"",2Q:""}).13(f);R f},2i:9(){k.16&&k.16.1V(),l.1v(q)}}),i.1W()}9 y(a,b,c){S d=1a.3K(b/2),e=1a.3K(c/2),f={58:[[0,0],[b,c],[b,0]],5k:[[0,0],[b,0],[0,c]],4M:[[0,c],[b,0],[b,c]],55:[[0,0],[0,c],[b,c]],6u:[[0,c],[d,0],[b,c]],6v:[[0,0],[b,0],[d,c]],7H:[[0,0],[b,e],[0,c]],6w:[[b,0],[b,c],[0,e]]};f.6x=f.58,f.6z=f.5k,f.6B=f.4M,f.6E=f.55;R f[a.1r()]}9 x(b){S c=V,f=b.2X.1y,g=b.2f.11.1B,h=".1g-1B",i=/<4b\\b[^<]*(?:(?!<\\/4b>)<[^<]*)*<\\/4b>/4G,j=d;b.2Y.1B={"^11.1B":9(a,b,d){b==="1B"&&(g=d),b==="2u"?c.1W():g&&g.2z?c.47():f.1v(h)}},a.1o(c,{1W:9(){g&&g.2z&&f.1v(h)[g.2u?"6F":"1b"]("4d"+h,c.47);R c},47:9(d,h){9 p(a,c,d){b.3e("11.1q",c+": "+d),n()}9 o(c){l&&(c=a("<2D/>").3g(c.2b(i,"")).57(l)),b.3e("11.1q",c),n()}9 n(){m&&(f.13("4f",""),h=e)}W(d&&d.3o())R c;S j=g.2z.2A(" "),k=g.2z,l,m=g.2u&&!g.4O&&h;m&&f.13("4f","43"),j>-1&&(l=k.2K(j),k=k.2K(0,j)),a.1B(a.1o({6H:o,4W:p,6J:b},g,{2z:k}));R c}}),c.1W()}9 w(b,c){S i,j,k,l,m=a(V),n=a(1A.2S),o=V===1A?n:m,p=m.2g?m.2g(c.2g):f,q=c.2g.1z==="7r"&&p?p[c.2g.49]:f,r=m.2r(c.2g.49||"6K");6L{r=15 r==="1r"?(1J 6M("R "+r))():r}7n(s){a.4W("6O 6P 7j 6R 7h 2r: "+r)}l=a.1o(d,{},g.3n,c,15 r==="1j"?u(r):f,u(q||p)),j=l.18,l.1t=b;W("3l"===15 l.11.1q){k=m.19(l.11.19);W(l.11.19!==e&&k)l.11.1q=k;2L R e}j.1P===e&&(j.1P=n),j.14===e&&(j.14=o),l.T.14===e&&(l.T.14=o),l.T.3r===d&&(l.T.3r=n),l.U.14===e&&(l.U.14=o),l.18.1L===d&&(l.18.1L=j.1P),j.2k=1J h.2G(j.2k),j.1O=1J h.2G(j.1O);W(a.2r(V,"1g"))W(l.4l)m.1g("2i");2L W(l.4l===e)R e;a.19(V,"1c")&&(a.19(V,t,a.19(V,"1c")),V.3I("1c")),i=1J v(m,l,b,!!k),a.2r(V,"1g",i),m.1b("1V.1g",9(){i.2i()});R i}9 v(c,r,s,v){9 O(){S c=[r.T.14[0],r.U.14[0],w.1l&&D.1y[0],r.18.1P[0],r.18.1L[0],b,1A];w.1l?a([]).7g(a.7f(c,9(a){R 15 a==="1j"})).1v(C):r.T.14.1v(C+"-2n")}9 N(){9 t(a){B.1H(":1Q")&&w.23(a)}9 p(a){W(B.1Z(m))R e;1G(w.1s.25),w.1s.25=3f(9(){w.U(a)},r.U.25)}9 o(b){W(B.1Z(m))R e;S c=a(b.38||b.14),d=c.4U(n)[0]===B[0],g=c[0]===h.T[0];1G(w.1s.T),1G(w.1s.U);f.14==="1u"&&d||r.U.2C&&(/1u(3t|29|4a)/.1w(b.1z)&&(d||g))?b.4N():r.U.2B>0?w.1s.U=3f(9(){w.U(b)},r.U.2B):w.U(b)}9 l(a){W(B.1Z(m))R e;h.T.2v("1g-"+s+"-25"),1G(w.1s.T),1G(w.1s.U);S b=9(){w.1I(d,a)};r.T.2B>0?w.1s.T=3f(b,r.T.2B):b()}S f=r.18,h={T:r.T.14,U:r.U.14,1L:a(f.1L),1A:a(1A),3s:a(b)},j={T:a.3C(""+r.T.1e).2J(" "),U:a.3C(""+r.U.1e).2J(" ")},k=a.26.3j&&1C(a.26.3O,10)===6;B.1b("3q"+C+" 36"+C,9(a){S b=a.1z==="3q";b&&w.1Y(a),B.2a(q,b)}),r.U.2C&&(h.U=h.U.2e(B),B.1b("6V"+C,9(){B.1Z(m)||1G(w.1s.U)})),/1u(3t|29)/i.1w(r.U.1e)?r.U.29&&h.3s.1b("1u"+(r.U.29.2A("7b")>-1?"3t":"29")+C,9(a){/4Q|4v/.1w(a.14)&&!a.38&&w.U(a)}):/1u(41|3x)/i.1w(r.T.1e)&&h.U.1b("36"+C,9(a){1G(w.1s.T)}),(""+r.U.1e).2A("4V")>-1&&h.1A.1b("3y"+C,9(b){S d=a(b.14),e=!B.1Z(m)&&B.1H(":1Q");d.6X(n).1d===0&&d.2e(c).1d>1&&w.U(b)}),"2E"===15 r.U.25&&(h.T.1b("1g-"+s+"-25",p),a.1p(g.5e,9(a,b){h.U.2e(D.1y).1b(b+C+"-25",p)})),a.1p(j.U,9(b,c){S d=a.6Y(c,j.T),e=a(h.U);d>-1&&e.2e(h.T).1d===e.1d||c==="4V"?(h.T.1b(c+C,9(a){B.1H(":1Q")?o(a):l(a)}),2m j.T[d]):h.U.1b(c+C,o)}),a.1p(j.T,9(a,b){h.T.1b(b+C,l)}),"2E"===15 r.U.3L&&h.T.1b("2F"+C,9(a){S b=E.3a||{},c=r.U.3L,d=1a.3p;(d(a.1N-b.1N)>=c||d(a.2h-b.2h)>=c)&&w.U(a)}),f.14==="1u"&&(h.T.2e(B).1b("2F"+C,9(a){i={1N:a.1N,2h:a.2h,1z:"2F"}}),f.2j.1u&&(r.U.1e&&B.1b("36"+C,9(a){(a.38||a.14)!==h.T[0]&&w.U(a)}),h.1A.1b("2F"+C,9(a){!B.1Z(m)&&B.1H(":1Q")&&w.23(a||i)}))),(f.2j.2y||h.1L.1d)&&(a.1e.70.2y?h.1L:h.3s).1b("2y"+C,t),(h.1L.1d||k&&B.13("18")==="2C")&&h.1L.1b("4j"+C,t)}9 M(b,d){9 g(a){9 c(c){(b=b.2M(V)).1d===0&&(w.2O(),d!==e&&w.23(E.1e),a())}S b;W((b=f.57("3d:2M([12]):2M([X])")).1d===0)R c.28(b);b.1p(9(a,b){(9 d(){S e=w.1s.3d;W(b.12&&b.X){1G(e[a]);R c.28(b)}e[a]=3f(d,20)})()})}S f=D.11;b=b||r.11.1q;W(!w.1l||!b)R e;a.1T(b)&&(b=b.28(c,w)||""),b.22&&b.1d>0?f.4R().3g(b.13({2o:"2W"})):f.33(b),w.1l<0?B.3N("4i",g):(A=0,g(a.73));R w}9 L(b){S d=D.1c;W(!w.1l||!b)R e;a.1T(b)&&(b=b.28(c,w)||""),b.22&&b.1d>0?d.4R().3g(b.13({2o:"2W"})):d.33(b),w.2O(),w.1l&&B.1H(":1Q")&&w.23(E.1e)}9 K(a){S b=D.1F,c=D.1c;W(!w.1l)R e;a?(c||J(),I()):b.1V()}9 J(){S b=y+"-1c";D.1D&&H(),D.1D=a("<2D />",{"1X":k+"-1D "+(r.17.2x?"1x-2x-4Z":"")}).3g(D.1c=a("<2D />",{1t:b,"1X":k+"-1c","1S-4c":d})).74(D.11),r.11.1c.1F?I():w.1l&&w.2O()}9 I(){S b=r.11.1c.1F,c=15 b==="1r",d=c?b:"77 1y";D.1F&&D.1F.1V(),b.22?D.1F=b:D.1F=a("",{"1X":"1x-3u-3v "+(r.17.2x?"":k+"-3E"),1c:d,"1S-78":d}).79(a("<7a />",{"1X":"1x-3E 1x-3E-7c",33:"&7d;"})),D.1F.2T(D.1D).19("56","1F").4o(9(b){a(V).2a("1x-3u-4o",b.1z==="3q")}).4h(9(a){B.1Z(m)||w.U(a);R e}).1b("3y 4X 5i 7e 7i",9(b){a(V).2a("1x-3u-7k 1x-3u-1Y",b.1z.2K(-4)==="7l")}),w.2O()}9 H(){D.1c&&(D.1D.1V(),D.1D=D.1c=D.1F=f,w.23())}9 G(){S a=r.17.2x;B.2a(l,a).2a(o,!a),D.11.2a(l+"-11",a),D.1D&&D.1D.2a(l+"-4Z",a),D.1F&&D.1F.2a(k+"-3E",!a)}9 F(a){S b=0,c,d=r,e=a.2J(".");39(d=d[e[b++]])b0&&!a("#"+i).1d&&(B[0].1t=i,D.11[0].1t=i+"-11",D.1c[0].1t=i+"-1c")},"^11.1q$":9(a,b,c){M(c)},"^11.1c.1q$":9(a,b,c){W(!c)R H();!D.1c&&c&&J(),L(c)},"^11.1c.1F$":9(a,b,c){K(c)},"^18.(1O|2k)$":9(a,b,c){"1r"===15 c&&(a[b]=1J h.2G(c))},"^18.1P$":9(a,b,c){w.1l&&B.2T(c)},"^T.34$":9(){w.1l?w.1I(d):w.1R(1)},"^17.3h$":9(b,c,d){a.19(B[0],"1X",k+" 1g 1x-53-54 "+d)},"^17.2x|11.1c":G,"^3Y.(1R|T|4a|U|1Y|2c)$":9(b,c,d){B[(a.1T(d)?"":"7t")+"1b"]("1y"+c,d)},"^(T|U|18).(1e|14|2C|25|29|3L|1L|2j)$":9(){O(),N()}},a.1o(w,{1R:9(b){W(w.1l)R w;S f=r.11.1c.1q,g=a.3b("7u");a.19(c[0],"1S-4t",y),B=D.1y=a("<2D/>",{1t:y,"1X":k+" 1g 1x-53-54 "+o+" "+r.17.3h,X:r.17.X||"",56:"7w","1S-7x":"7y","1S-4c":e,"1S-4t":y+"-11","1S-43":d}).2a(m,E.2I).2r("1g",w).2T(r.18.1P).3g(D.11=a("<2D />",{"1X":k+"-11",1t:y+"-11","1S-4c":d})),w.1l=-1,A=1,f&&(J(),L(f)),M(e,e),w.1l=d,G(),a.1p(r.3Y,9(b,c){a.1T(c)&&B.1b(b==="1I"?"4d 4e":"1y"+b,c)}),a.1p(h,9(){V.2P==="1R"&&V(w)}),N(),B.3N("4i",9(a){g.31=E.1e,B.2v(g,[w]),A=0,w.2O(),(r.T.34||b)&&w.1I(d,E.1e),a()});R w},48:9(a){S b,c;5m(a.2t()){37"59":b={12:B.3i(),X:B.3J()};32;37"Y":b=h.Y(B,r.18.1P);32;3v:c=F(a.2t()),b=c[0][c[1]],b=b.1h?b.1r():b}R b},3e:9(b,c){9 m(a,b){S c,d,e;5a(c 24 k)5a(d 24 k[c])W(e=(1J 7D(d,"i")).4S(a))b.5c(e),k[c][d].2R(w,b)}S g=/^18\\.(1O|2k|2j|14|1P)|17|11|T\\.34/i,h=/^11\\.(1c|19)|17/i,i=e,j=e,k=w.2Y,l;"1r"===15 b?(l=b,b={},b[l]=c):b=a.1o(d,{},b),a.1p(b,9(c,d){S e=F(c.2t()),f;f=e[0][e[1]],e[0][e[1]]="1j"===15 d&&d.7E?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1w(c)||i,j=h.1w(c)||j}),u(r),z=A=1,a.1p(b,m),z=A=0,B.1H(":1Q")&&w.1l&&(i&&w.23(r.18.14==="1u"?f:E.1e),j&&w.2O());R w},1I:9(b,c){9 m(){b?(a.26.3j&&B[0].17.3I("2H"),B.13("7G","")):B.13({2o:"",4f:"",X:r.17.X||"",4q:"",Q:"",P:""})}W(!w.1l)W(b)w.1R(1);2L R w;S d=b?"T":"U",g=r[d],h=B.1H(":1Q"),j=!c||E.14[0]===c.14,k,l;(15 b).4I("3l|2E")&&(b=!h);W(!B.1H(":5d")&&h===b&&j)R w;W(c){W(/41|3x/.1w(c.1z)&&/3t|29/.1w(E.1e.1z)&&c.14===r.T.14[0]&&B.7J(c.38).1d)R w;E.1e=a.1o({},c)}l=a.3b("1y"+d),l.31=c?E.1e:f,B.2v(l,[w,3W]);W(l.3o())R w;a.19(B[0],"1S-43",!b),b?(E.3a=a.1o({},i),w.1Y(c),a.1T(r.11.1q)&&M(),w.23(c),g.3r&&a(n,g.3r).2M(B).1g("U",l)):(1G(w.1s.T),2m E.3a,w.2c(c)),j&&B.4r(0,1),g.1U===e?(B[d](),m.28(B)):a.1T(g.1U)?(g.1U.28(B,w),B.3N("4i",9(a){m(),a()})):B.5g(3W,b?1:0,m),b&&g.14.2v("1g-"+s+"-25");R w},T:9(a){R w.1I(d,a)},U:9(a){R w.1I(e,a)},1Y:9(b){W(!w.1l)R w;S c=a(n),d=1C(B[0].17.2Z,10),e=g.5l+c.1d,f=a.1o({},b),h,i;B.1Z(p)||(i=a.3b("5h"),i.31=f,B.2v(i,[w,e]),i.3o()||(d!==e&&(c.1p(9(){V.17.2Z>d&&(V.17.2Z=V.17.2Z-1)}),c.2H("."+p).1g("2c",f)),B.3T(p)[0].17.2Z=e));R w},2c:9(b){S c=a.1o({},b),d;B.4s(p),d=a.3b("5j"),d.31=c,B.2v(d,[w]);R w},23:9(c,d){W(!w.1l||z)R w;z=1;S f=r.18.14,g=r.18,j=g.1O,l=g.2k,m=g.2j,n=m.4p.2J(" "),o=B.3J(),p=B.3i(),q=0,s=0,t=a.3b("42"),u=B.13("18")==="2C",v=g.1L,y={Q:0,P:0},A=(w.1K.16||{}).1k,C={3P:n[0],3z:n[1]||n[0],16:r.17.16||{},Q:9(a){S b=C.3P==="2p",c=v.Y.Q+v.2V,d=j.x==="Q"?o:j.x==="1m"?-o:-o/2,e=l.x==="Q"?q:l.x==="1m"?-q:-q/2,f=C.16.X+C.16.1f*2||0,g=A&&A.1h==="x"&&!b?f:0,h=c-a-g,i=a+o-v.X-c+g,k=d-(j.1h==="x"||j.x===j.y?e:0),n=j.x==="1i";b?(g=A&&A.1h==="y"?f:0,k=(j.x==="Q"?1:-1)*d-g,y.Q+=h>0?h:i>0?-i:0,y.Q=1a.1M(v.Y.Q+(g&&A.x==="1i"?C.16.Y:0),a-k,1a.3U(1a.1M(v.Y.Q+v.X,a+k),y.Q))):(h>0&&(j.x!=="Q"||i>0)?y.Q-=k+(n?0:2*m.x):i>0&&(j.x!=="1m"||h>0)&&(y.Q-=n?-k:k+2*m.x),y.Q!==a&&n&&(y.Q-=m.x),y.Qi&&(y.Q=a));R y.Q-a},P:9(a){S b=C.3z==="2p",c=v.Y.P+v.30,d=j.y==="P"?p:j.y==="1n"?-p:-p/2,e=l.y==="P"?s:l.y==="1n"?-s:-s/2,f=C.16.12+C.16.1f*2||0,g=A&&A.1h==="y"&&!b?f:0,h=c-a-g,i=a+p-v.12-c+g,k=d-(j.1h==="y"||j.x===j.y?e:0),n=j.y==="1i";b?(g=A&&A.1h==="x"?f:0,k=(j.y==="P"?1:-1)*d-g,y.P+=h>0?h:i>0?-i:0,y.P=1a.1M(v.Y.P+(g&&A.x==="1i"?C.16.Y:0),a-k,1a.3U(1a.1M(v.Y.P+v.12,a+k),y.P))):(h>0&&(j.y!=="P"||i>0)?y.P-=k+(n?0:2*m.y):i>0&&(j.y!=="1n"||h>0)&&(y.P-=n?-k:k+2*m.y),y.P!==a&&n&&(y.P-=m.y),y.P<0&&-y.P>i&&(y.P=a));R y.P-a}};W(f==="1u"&&(c&&c.1N||E.1e.1N))l={x:"Q",y:"P"},c=c&&(c.1z==="2y"||c.1z==="4j")?E.1e:!m.1u&&E.3a?E.3a:i&&(m.1u||!c||!c.1N)?{1N:i.1N,2h:i.2h}:c,y={P:c.2h,Q:c.1N};2L{f==="1e"?c&&c.14&&c.1z!=="4j"&&c.1z!=="2y"?f=E.14=a(c.14):f=E.14:E.14=a(f),f=a(f).7N(0);W(f.1d===0)R w;f[0]===1A||f[0]===b?(q=h.2l?b.7O:f.X(),s=h.2l?b.7P:f.12(),f[0]===b&&(y={P:!u||h.2l?(v||f).30():0,Q:!u||h.2l?(v||f).2V():0})):f.1H("7R")&&h.44?y=h.44(f,l):f[0].7S==="7T://7U.7V.7W/7X/3B"&&h.3B?y=h.3B(f,l):(q=f.3J(),s=f.3i(),y=h.Y(f,g.1P,u)),y.Y&&(q=y.X,s=y.12,y=y.Y),y.Q+=l.x==="1m"?q:l.x==="1i"?q/2:0,y.P+=l.y==="1n"?s:l.y==="1i"?s/2:0}y.Q+=m.x+(j.x==="1m"?-o:j.x==="1i"?-o/2:0),y.P+=m.y+(j.y==="1n"?-p:j.y==="1i"?-p/2:0),v.22&&f[0]!==b&&f[0]!==x&&C.3z+C.3P!=="80"?(v={5u:v,12:v[(v[0]===b?"h":"81")+"82"](),X:v[(v[0]===b?"w":"83")+"84"](),2V:u?0:v.2V(),30:u?0:v.30(),Y:v.Y()||{Q:0,P:0}},y.3R={Q:C.3P!=="3Q"?C.Q(y.Q):0,P:C.3z!=="3Q"?C.P(y.P):0}):y.3R={Q:0,P:0},B.19("1X",9(b,c){R a.19(V,"1X").2b(/1x-1y-5t-\\w+/i,"")}).3T(k+"-5t-"+j.4K()),t.31=a.1o({},c),B.2v(t,[w,y,v.5u||v]);W(t.3o())R w;2m y.3R,d===e||5w(y.Q)||5w(y.P)||f==="1u"||!a.1T(g.1U)?B.13(y):a.1T(g.1U)&&(g.1U.28(B,w,a.1o({},y)),B.3N(9(b){a(V).13({4q:"",12:""}),a.26.3j&&V.17.3I("2H"),b()})),z=0;R w},2O:9(){W(w.1l<1||A)R w;S b=k+"-5x",c=r.18.1P,d,e,f,g;A=1,r.17.X?B.13("X",r.17.X):(B.13("X","").3T(b),e=B.X()+(a.26.5y?1:0),f=B.13("1M-X")||"",g=B.13("3U-X")||"",d=(f+g).2A("%")>-1?c.X()/5z:0,f=(f.2A("%")>-1?d:1)*1C(f,10)||e,g=(g.2A("%")>-1?d:1)*1C(g,10)||0,e=f+g?1a.3U(1a.1M(e,g),f):e,B.13("X",1a.3V(e)).4s(b)),A=0;R w},3X:9(b){S c=m;"3l"!==15 b&&(b=!B.1Z(c)&&!E.2I),w.1l?(B.2a(c,b),a.19(B[0],"1S-2I",b)):E.2I=!!b;R w},88:9(){R w.3X(e)},2i:9(){S b=c[0],d=a.19(b,t);w.1l&&(B.1V(),a.1p(w.1K,9(){V.2i&&V.2i()})),1G(w.1s.T),1G(w.1s.U),O(),a.8a(b,"1g"),d&&(a.19(b,"1c",d),c.3F(t)),c.3F("1S-4t").1v(".1g"),2m j[w.1t];R c}})}9 u(b){S c;W(!b||"1j"!==15 b)R e;"1j"!==15 b.2g&&(b.2g={1z:b.2g});W("11"24 b){W("1j"!==15 b.11||b.11.22)b.11={1q:b.11};c=b.11.1q||e,!a.1T(c)&&(!c&&!c.19||c.1d<1||"1j"===15 c&&!c.22)&&(b.11.1q=e),"1c"24 b.11&&("1j"!==15 b.11.1c&&(b.11.1c={1q:b.11.1c}),c=b.11.1c.1q||e,!a.1T(c)&&(!c&&!c.19||c.1d<1||"1j"===15 c&&!c.22)&&(b.11.1c.1q=e))}"18"24 b&&("1j"!==15 b.18&&(b.18={1O:b.18,2k:b.18})),"T"24 b&&("1j"!==15 b.T&&(b.T.22?b.T={14:b.T}:b.T={1e:b.T})),"U"24 b&&("1j"!==15 b.U&&(b.U.22?b.U={14:b.U}:b.U={1e:b.U})),"17"24 b&&("1j"!==15 b.17&&(b.17={3h:b.17})),a.1p(h,9(){V.3k&&V.3k(b)});R b}"8b 8c";S d=!0,e=!1,f=8d,g,h,i,j={},k="1x-1y",l="1x-2x",m="1x-3u-2I",n="2D.1g."+k,o=k+"-3v",p=k+"-1Y",q=k+"-4o",r="-5G",s="5H",t="52";g=a.2w.1g=9(b,h,i){S j=(""+b).2t(),k=f,l=j==="3X"?[d]:a.5K(2s).5D(1),m=l[l.1d-1],n=V[0]?a.2r(V[0],"1g"):f;W(!2s.1d&&n||j==="5M")R n;W("1r"===15 b){V.1p(9(){S b=a.2r(V,"1g");W(!b)R d;m&&m.7B&&(b.2U.1e=m);W(j!=="4v"&&j!=="2f"||!h)b[j]&&b[j].2R(b[j],l);2L W(a.5Q(h)||i!==c)b.3e(h,i);2L{k=b.48(h);R e}});R k!==f?k:V}W("1j"===15 b||!2s.1d){n=u(a.1o(d,{},b));R g.1b.28(V,n,m)}},g.1b=9(b,f){R V.1p(9(k){9 r(b){9 d(){p.1R(15 b==="1j"||l.T.34),m.T.2e(m.U).1v(o)}W(p.2U.2I)R e;p.2U.1e=a.1o({},b),p.2U.14=b?a(b.14):[c],l.T.2B>0?(1G(p.1s.T),p.1s.T=3f(d,l.T.2B),n.T!==n.U&&m.U.1b(n.U,9(){1G(p.1s.T)})):d()}S l,m,n,o,p,q;q=a.5X(b.1t)?b.1t[k]:b.1t,q=!q||q===e||q.1d<1||j[q]?g.4g++:j[q]=q,o=".1g-"+q+"-2n",p=w.28(V,q,b);W(p===e)R d;l=p.2f,a.1p(h,9(){V.2P==="2P"&&V(p)}),m={T:l.T.14,U:l.U.14},n={T:a.3C(""+l.T.1e).2b(/ /g,o+" ")+o,U:a.3C(""+l.U.1e).2b(/ /g,o+" ")+o},/1u(41|3x)/i.1w(n.T)&&!/1u(3t|29)/i.1w(n.U)&&(n.U+=" 36"+o),l.18.14==="1u"&&m.T.1b("2F"+o,9(a){i={1N:a.1N,2h:a.2h,1z:"2F"}}),m.T.1b(n.T,r),(l.T.34||l.5n)&&r(f)})},h=g.1K={2G:9(a){a=(""+a).2b(/([A-Z])/," $1").2b(/6o/4G,"1i").2t(),V.x=(a.4k(/Q|1m/i)||a.4k(/1i/)||["3M"])[0].2t(),V.y=(a.4k(/P|1n|1i/i)||["3M"])[0].2t(),V.1h=a.3m(0).4I(/^(t|b)/)>-1?"y":"x",V.1r=9(){R V.1h==="y"?V.y+V.x:V.x+V.y},V.4K=9(){S a=V.x.2K(0,1),b=V.y.2K(0,1);R a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},Y:9(c,d,e){9 l(a,b){f.Q+=b*a.2V(),f.P+=b*a.30()}S f=c.Y(),g=d,i=0,j=1A.2S,k;W(g){6y{W(g[0]===j)32;g.13("18")!=="6A"&&(k=g.18(),f.Q-=k.Q+(1C(g.13("6C"),10)||0),f.P-=k.P+(1C(g.13("6G"),10)||0),i++)}39(g=g.6I());(d[0]!==j||i>1)&&l(d,1),(h.2l<4.1&&h.2l>3.1||!h.2l&&e)&&l(a(b),-1)}R f},2l:4Y((""+(/4T.*6N ([0-6Q]{1,3})|(4T 6S).*6U.*6W/i.4S(6Z.71)||[0,""])[1]).2b("5o","72").2b("75","."))||e,2w:{19:9(b,c){W(V.1d){S d=V[0],e="1c",f=a.2r(d,"1g");W(b===e){W(2s.1d<2)R a.19(d,t);W(15 f==="1j"){f&&f.1l&&f.2f.11.19===e&&f.2U.19&&f.3e("11.1q",c),a.2w["19"+s].2R(V,2s),a.19(d,t,a.19(d,e));R V.3F(e)}}}},51:9(b){S c=a([]),d="1c",e;e=a.2w["51"+s].2R(V,2s).2H("[52]").1p(9(){a.19(V,d,a.19(V,t)),V.3I(t)}).7v();R e},1V:a.1x?f:9(b,c){a(V).1p(9(){c||(!b||a.2H(b,[V]).1d)&&a("*",V).2e(V).1p(9(){a(V).7A("1V")})})}}},a.1p(h.2w,9(b,c){W(!c)R d;S e=a.2w[b+s]=a.2w[b];a.2w[b]=9(){R c.2R(V,2s)||e.2R(V,2s)}}),g.3O="2.0.7I",g.4g=0,g.5e="4h 7L 3y 5i 2F 36 3q".2J(" "),g.5l=7M,g.3n={5n:e,1t:e,4l:d,11:{1q:d,19:"1c",1c:{1q:e,1F:e}},18:{1O:"P Q",2k:"1n 1m",14:e,1P:e,1L:e,2j:{x:0,y:0,1u:d,2y:d,4p:"3S 3S"},1U:9(b,c,d){a(V).4r().86(c,87)}},T:{14:e,1e:"3q",1U:d,2B:3W,3r:e,34:e},U:{14:e,1e:"36",1U:d,2B:0,2C:e,25:e,29:"3s",3L:e},17:{3h:"",2x:e,X:e},3Y:{1R:f,4a:f,T:f,U:f,1I:f,1Y:f,2c:f}},h.1B=9(a){S b=a.1K.1B;R"1j"===15 b?b:a.1K.1B=1J x(a)},h.1B.2P="1R",h.1B.3k=9(a){S b=a.11,c;b&&"1B"24 b&&(c=b.1B,15 c!=="1j"&&(c=a.11.1B={2z:c}),"3l"!==15 c.2u&&c.2u&&(c.2u=!!c.2u))},a.1o(d,g.3n,{11:{1B:{4O:d,2u:d}}}),h.16=9(a){S b=a.1K.16;R"1j"===15 b?b:a.1K.16=1J z(a)},h.16.2P="1R",h.16.3k=9(a){S b=a.17,c;b&&"16"24 b&&(c=a.17.16,15 c!=="1j"&&(a.17.16={1k:c}),/1r|3l/i.1w(15 c.1k)||(c.1k=d),15 c.X!=="2E"&&2m c.X,15 c.12!=="2E"&&2m c.12,15 c.1f!=="2E"&&c.1f!==d&&2m c.1f,15 c.Y!=="2E"&&2m c.Y)},a.1o(d,g.3n,{17:{16:{1k:d,3D:e,X:6,12:6,1f:d,Y:0}}}),h.44=9(b,c){9 l(a,b){S d=0,e=1,f=1,g=0,h=0,i=a.X,j=a.12;39(i>0&&j>0&&e>0&&f>0){i=1a.3G(i/2),j=1a.3G(j/2),c.x==="Q"?e=i:c.x==="1m"?e=a.X-i:e+=1a.3G(i/2),c.y==="P"?f=j:c.y==="1n"?f=a.12-j:f+=1a.3G(j/2),d=b.1d;39(d--){W(b.1d<2)32;g=b[d][0]-a.Y.Q,h=b[d][1]-a.Y.P,(c.x==="Q"&&g>=e||c.x==="1m"&&g<=e||c.x==="1i"&&(ga.X-e)||c.y==="P"&&h>=f||c.y==="1n"&&h<=f||c.y==="1i"&&(ha.12-f))&&b.6T(d,1)}}R{Q:b[0][0],P:b[0][1]}}b.22||(b=a(b));S d=b.19("46").2t(),e=b.19("76").2J(","),f=[],g=a(\'3d[7m="#\'+b.7p("5f").19("49")+\'"]\'),h=g.Y(),i={X:0,12:0,Y:{P:3H,1m:0,1n:0,Q:3H}},j=0,k=0;h.Q+=1a.3K((g.3J()-g.X())/2),h.P+=1a.3K((g.3i()-g.12())/2);W(d==="5s"){j=e.1d;39(j--)k=[1C(e[--j],10),1C(e[j+1],10)],k[0]>i.Y.1m&&(i.Y.1m=k[0]),k[0]i.Y.1n&&(i.Y.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}('(9(a,b,c){9 B(b){S c=V,d=b.2X,e=d.1z,f=".21-"+b.1t;a.1o(c,{1W:9(){d.21=a(\'<5b 1X="1y-1z-21" 8e="0" 8f="-1" 8g="8h:\\\'\\\';" 17="2o:2W; 18:3Z; z-85:-1; 2H:5E(4q=0); -7Z-2H:"5F:8i.7K.5I(5J=0)";">\'),d.21.2T(e),e.1b("42"+f,c.2j)},2j:9(){S a=b.48("59"),c=b.1K.16,f=d.16,g,h;h=1v(e.13("1f-Q-X"),10)||0,h={Q:-h,P:-h},c&&f&&(g=c.1k.1h==="x"?["X","Q"]:["12","P"],h[g[1]]-=f[g[0]]()),d.21.13(h).13(a)},2i:9(){d.21.1V(),e.1w(f)}}),c.1W()}9 A(c){S f=V,g=c.2f.T.1E,h=c.2X,i=h.1z,j="#1g-2q",k=".7F",l=k+c.1t,m="1H-1E-1g",o=a(1B.2S),q;c.2Y.1E={"^T.1E.(35|2c)$":9(){f.1W(),h.2q.1I(i.1H(":1Q"))}},a.1o(f,{1W:9(){W(!g.35)R f;q=f.2n(),i.19(m,d).1w(k).1w(l).1b("4d"+k+" 4e"+k,9(a,b,c){S d=a.31;a.1A==="4e"&&/1u(29|3x)/.1x(d.1A)&&d.38===q[0]?a.4N():f[a.1A.2b("1z","")](a,c)}).1b("5h"+k,9(a,b,c){q[0].17.2Z=c-1}).1b("5j"+k,9(b){a("["+m+"]:1Q").2M(i).7C().1g("1Y",b)}),g.4x&&a(b).1w(l).1b("4X"+l,9(a){a.5L===27&&i.1Z(p)&&c.U(a)}),g.2c&&h.2q.1w(l).1b("4h"+l,9(a){i.1Z(p)&&c.U(a)});R f},2n:9(){S c=a(j);W(c.1d){h.2q=c;R c}q=h.2q=a("<2D />",{1t:j.2K(1),13:{18:"3Z",P:0,Q:0,2o:"3Q"},3y:9(){R e}}).2T(1B.2S),a(b).1w(k).1b("2y"+k,9(){q.13({12:1a.1M(a(b).12(),a(1B).12()),X:1a.1M(a(b).X(),a(1B).X())})}).2v("2y");R q},1I:9(b,c,j){W(b&&b.3o())R f;S k=g.1U,p=c?"T":"U",r=q.1H(":1Q"),s=a("["+m+"]:1Q").2M(i),t;q||(q=f.2n());W(q.1H(":5d")&&r===c||!c&&s.1d)R f;c?(h.2q.13("5N",g.2c?"5O":""),o.5P("*","7z"+l,9(b){a(b.14).4U(n)[0]!==i[0]&&a("a, :7s, 3d",i).2e(i).1Y()})):o.4w("*","1Y"+l),q.4r(d,e),a.1T(k)?k.28(q,c):k===e?q[p]():q.5g(1v(j,10)||3W,c?.7:0,9(){c||a(V).U()});R f},T:9(a,b){R f.1I(a,d,b)},U:9(a,b){R f.1I(a,e,b)},2i:9(){S d=q;d&&(d=a("["+m+"]").2M(i).1d<1,d?(h.2q.1V(),a(b).1w(k)):h.2q.1w(k+c.1t),o.4w("*","1Y"+l));R i.3F(m).1w(k)}}),f.1W()}9 z(b,g){9 v(a){S b=a.1h==="y",c=n[b?"X":"12"],d=n[b?"12":"X"],e=a.1r().2A("1i")>-1,f=c*(e?.5:1),g=1a.5R,h=1a.3V,i,j,k,l=1a.4u(g(f,2)+g(d,2)),m=[p/f*l,p/d*l];m[2]=1a.4u(g(m[0],2)-g(p,2)),m[3]=1a.4u(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)];R{12:k[b?0:1],X:k[b?1:0]}}9 u(b){S c=k.1D&&b.y==="P",d=c?k.1D:k.11,e=a.26.5y,f=e?"-5S-":a.26.4y?"-4y-":"",g=b.y+(e?"":"-")+b.x,h=f+(e?"1f-4z-"+g:"1f-"+g+"-4z");R 1v(d.13(h),10)||1v(l.13(h),10)||0}9 t(a,b,c){b=b?b:a[a.1h];S d=k.1D&&a.y==="P",e=d?k.1D:k.11,f="1f-"+b+"-X",g=1v(e.13(f),10);R(c?g||1v(l.13(f),10):g)||0}9 s(f,g,h,l){W(k.16){S n=a.1o({},i.1k),o=h.3R,p=b.2f.18.2j.4p.2J(" "),q=p[0],r=p[1]||p[0],s={Q:e,P:e,x:0,y:0},t,u={},v;i.1k.2C!==d&&(q==="2p"&&n.1h==="x"&&o.Q&&n.y!=="1i"?n.1h=n.1h==="x"?"y":"x":q==="3S"&&o.Q&&(n.x=n.x==="1i"?o.Q>0?"Q":"1m":n.x==="Q"?"1m":"Q"),r==="2p"&&n.1h==="y"&&o.P&&n.x!=="1i"?n.1h=n.1h==="y"?"x":"y":r==="3S"&&o.P&&(n.y=n.y==="1i"?o.P>0?"P":"1n":n.y==="P"?"1n":"P"),n.1r()!==m.1k&&(m.P!==o.P||m.Q!==o.Q)&&i.3w(n,e)),t=i.18(n,o),t.1m!==c&&(t.Q=-t.1m),t.1n!==c&&(t.P=-t.1n),t.45=1a.1M(0,j.Y);W(s.Q=q==="2p"&&!!o.Q)n.x==="1i"?u["2Q-Q"]=s.x=t["2Q-Q"]-o.Q:(v=t.1m!==c?[o.Q,-t.Q]:[-o.Q,t.Q],(s.x=1a.1M(v[0],v[1]))>v[0]&&(h.Q-=o.Q,s.Q=e),u[t.1m!==c?"1m":"Q"]=s.x);W(s.P=r==="2p"&&!!o.P)n.y==="1i"?u["2Q-P"]=s.y=t["2Q-P"]-o.P:(v=t.1n!==c?[o.P,-t.P]:[-o.P,t.P],(s.y=1a.1M(v[0],v[1]))>v[0]&&(h.P-=o.P,s.P=e),u[t.1n!==c?"1n":"P"]=s.y);k.16.13(u).1I(!(s.x&&s.y||n.x==="1i"&&s.y||n.y==="1i"&&s.x)),h.Q-=t.Q.3m?t.45:q!=="2p"||s.P||!s.Q&&!s.P?t.Q:0,h.P-=t.P.3m?t.45:r!=="2p"||s.Q||!s.Q&&!s.P?t.P:0,m.Q=o.Q,m.P=o.P,m.1k=n.1r()}}S i=V,j=b.2f.17.16,k=b.2X,l=k.1z,m={P:0,Q:0,1k:""},n={X:j.X,12:j.12},o={},p=j.1f||0,q=".1g-16",r=!!(a("<4A />")[0]||{}).40;i.1k=f,i.3D=f,i.18={},b.2Y.16={"^18.1O|17.16.(1k|3D|1f)$":9(){i.1W()||i.2i(),b.23()},"^17.16.(12|X)$":9(){n={X:j.X,12:j.12},i.2n(),i.3w(),b.23()},"^11.1c.1q|17.(3h|2x)$":9(){k.16&&i.3w()}},a.1o(i,{1W:9(){S b=i.4P()&&(r||a.26.3j);b&&(i.2n(),i.3w(),l.1w(q).1b("42"+q,s));R b},4P:9(){S a=j.1k,c=b.2f.18,f=c.2k,g=c.1O.1r?c.1O.1r():c.1O;W(a===e||g===e&&f===e)R e;a===d?i.1k=1J h.2G(g):a.1r||(i.1k=1J h.2G(a),i.1k.2C=d);R i.1k.1r()!=="5A"},4B:9(){S c,d,e,f=k.16.13({5T:"",1f:""}),g=i.1k,h=g[g.1h],m="1f-"+h+"-3c",p="1f"+h.3m(0)+h.2K(1)+"5U",q=/5V?\\(0, 0, 0(, 0)?\\)|3A/i,r="6s-3c",s="3A",t="1y-1z-5x",u=a(1B.2S).13("3c"),v=b.2X.11.13("3c"),w=k.1D&&(g.y==="P"||g.y==="1i"&&f.18().P+n.12/2+j.Y",{"1X":"1y-1z-16"}).13({X:b,12:c}).6D(l),r?a("<4A />").2T(k.16)[0].40("2d").4C():(d=\'<4m:46 5Y="0,0" 17="2o:4J-2W; 18:3Z; 5q:2z(#3v#5v);">\',k.16.33(p?d+=d:d))},3w:9(b,c){S g=k.16,l=g.5Z(),m=n.X,q=n.12,s="4n 60 ",u="4n 61 3A",w=j.3D,x=1a.3V,z,A,B,C,D;b||(b=i.1k),w===e?w=b:(w=1J h.2G(w),w.1h=b.1h,w.x==="3M"?w.x=b.x:w.y==="3M"?w.y=b.y:w.x===w.y&&(w[b.1h]=b[b.1h])),z=w.1h,i.4B(),p=o.1f==="3A"||o.1f==="#62"?0:j.1f===d?t(b,f,d):j.1f,B=y(w,m,q),D=v(b),g.13(D),b.1h==="y"?C=[x(w.x==="Q"?p:w.x==="1m"?D.X-m-p:(D.X-m)/2),x(w.y==="P"?D.12-q:0)]:C=[x(w.x==="Q"?D.X-m:0),x(w.y==="P"?p:w.y==="1n"?D.12-q-p:(D.12-q)/2)],r?(l.19(D),A=l[0].40("2d"),A.63(),A.4C(),A.65(0,0,5B,5B),A.66(C[0],C[1]),A.67(),A.68(B[0][0],B[0][1]),A.5C(B[1][0],B[1][1]),A.5C(B[2][0],B[2][1]),A.69(),A.6a=o.2N,A.6c=o.1f,A.6d=p*2,A.6e="4H",A.6f=5z,p&&A.5p(),A.2N()):(B="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" 6g",C[2]=p&&/^(r|b)/i.1x(b.1r())?4Y(a.26.3O,10)===8?2:1:0,l.13({6h:""+(w.1r().2A("1i")>-1),Q:C[0]-C[2]*4D(z==="x"),P:C[1]-C[2]*4D(z==="y"),X:m+p,12:q+p}).1p(9(b){S c=a(V);c[c.5r?"5r":"19"]({6i:m+p+" "+(q+p),6j:B,6k:o.2N,6l:!!b,6m:!b}).13({2o:p||b?"2W":"3Q"}),!b&&p>0&&c.33()===""&&c.33(\'<4m:5p 6n="\'+p*2+\'4n" 3c="\'+o.1f+\'" 6p="6q" 6r="4H" 17="5q:2z(#3v#5v); 2o:4J-2W;" />\')})),c!==e&&i.18(b)},18:9(b){S c=k.16,f={},g=1a.1M(0,j.Y),h,l,m;W(j.1k===e||!c)R e;b=b||i.1k,h=b.1h,l=v(b),m=[b.x,b.y],h==="x"&&m.6t(),a.1p(m,9(a,c){S e,i;c==="1i"?(e=h==="y"?"Q":"P",f[e]="50%",f["2Q-"+e]=-1a.3V(l[h==="y"?"X":"12"]/2)+g):(e=t(b,c,d),i=u(b),f[c]=a?t(b,c):g+(i>e?i:0))}),f[b[h]]-=l[h==="x"?"X":"12"],c.13({P:"",1n:"",Q:"",1m:"",2Q:""}).13(f);R f},2i:9(){k.16&&k.16.1V(),l.1w(q)}}),i.1W()}9 y(a,b,c){S d=1a.3K(b/2),e=1a.3K(c/2),f={58:[[0,0],[b,c],[b,0]],5k:[[0,0],[b,0],[0,c]],4M:[[0,c],[b,0],[b,c]],55:[[0,0],[0,c],[b,c]],6u:[[0,c],[d,0],[b,c]],6v:[[0,0],[b,0],[d,c]],7H:[[0,0],[b,e],[0,c]],6w:[[b,0],[b,c],[0,e]]};f.6x=f.58,f.6z=f.5k,f.6B=f.4M,f.6E=f.55;R f[a.1r()]}9 x(b){S c=V,f=b.2X.1z,g=b.2f.11.1C,h=".1g-1C",i=/<4b\\b[^<]*(?:(?!<\\/4b>)<[^<]*)*<\\/4b>/4G,j=d;b.2Y.1C={"^11.1C":9(a,b,d){b==="1C"&&(g=d),b==="2u"?c.1W():g&&g.2z?c.47():f.1w(h)}},a.1o(c,{1W:9(){g&&g.2z&&f.1w(h)[g.2u?"6F":"1b"]("4d"+h,c.47);R c},47:9(d,h){9 p(a,c,d){b.3e("11.1q",c+": "+d),n()}9 o(c){l&&(c=a("<2D/>").3g(c.2b(i,"")).57(l)),b.3e("11.1q",c),n()}9 n(){m&&(f.13("4f",""),h=e)}W(d&&d.3o())R c;S j=g.2z.2A(" "),k=g.2z,l,m=g.2u&&!g.4O&&h;m&&f.13("4f","43"),j>-1&&(l=k.2K(j),k=k.2K(0,j)),a.1C(a.1o({6H:o,4W:p,6J:b},g,{2z:k}));R c}}),c.1W()}9 w(b,c){S i,j,k,l,m=a(V),n=a(1B.2S),o=V===1B?n:m,p=m.2g?m.2g(c.2g):f,q=c.2g.1A==="7r"&&p?p[c.2g.49]:f,r=m.2r(c.2g.49||"6K");6L{r=15 r==="1r"?(1J 6M("R "+r))():r}7n(s){a.4W("6O 6P 7j 6R 7h 2r: "+r)}l=a.1o(d,{},g.3n,c,15 r==="1j"?u(r):f,u(q||p)),j=l.18,l.1t=b;W("3l"===15 l.11.1q){k=m.19(l.11.19);W(l.11.19!==e&&k)l.11.1q=k;2L R e}j.1P===e&&(j.1P=n),j.14===e&&(j.14=o),l.T.14===e&&(l.T.14=o),l.T.3r===d&&(l.T.3r=n),l.U.14===e&&(l.U.14=o),l.18.1L===d&&(l.18.1L=j.1P),j.2k=1J h.2G(j.2k),j.1O=1J h.2G(j.1O);W(a.2r(V,"1g"))W(l.4l)m.1g("2i");2L W(l.4l===e)R e;a.19(V,"1c")&&(a.19(V,t,a.19(V,"1c")),V.3I("1c")),i=1J v(m,l,b,!!k),a.2r(V,"1g",i),m.1b("1V.1g",9(){i.2i()});R i}9 v(c,r,s,v){9 O(){S c=[r.T.14[0],r.U.14[0],w.1l&&D.1z[0],r.18.1P[0],r.18.1L[0],b,1B];w.1l?a([]).7g(a.7f(c,9(a){R 15 a==="1j"})).1w(C):r.T.14.1w(C+"-2n")}9 N(){9 t(a){B.1H(":1Q")&&w.23(a)}9 p(a){W(B.1Z(m))R e;1G(w.1s.25),w.1s.25=3f(9(){w.U(a)},r.U.25)}9 o(b){W(B.1Z(m))R e;S c=a(b.38||b.14),d=c.4U(n)[0]===B[0],g=c[0]===h.T[0];1G(w.1s.T),1G(w.1s.U);f.14==="1u"&&d||r.U.2C&&(/1u(3t|29|4a)/.1x(b.1A)&&(d||g))?b.4N():r.U.2B>0?w.1s.U=3f(9(){w.U(b)},r.U.2B):w.U(b)}9 l(a){W(B.1Z(m))R e;h.T.2v("1g-"+s+"-25"),1G(w.1s.T),1G(w.1s.U);S b=9(){w.1I(d,a)};r.T.2B>0?w.1s.T=3f(b,r.T.2B):b()}S f=r.18,h={T:r.T.14,U:r.U.14,1L:a(f.1L),1B:a(1B),3s:a(b)},j={T:a.3C(""+r.T.1e).2J(" "),U:a.3C(""+r.U.1e).2J(" ")},k=a.26.3j&&1v(a.26.3O,10)===6;B.1b("3q"+C+" 36"+C,9(a){S b=a.1A==="3q";b&&w.1Y(a),B.2a(q,b)}),r.U.2C&&(h.U=h.U.2e(B),B.1b("6V"+C,9(){B.1Z(m)||1G(w.1s.U)})),/1u(3t|29)/i.1x(r.U.1e)?r.U.29&&h.3s.1b("1u"+(r.U.29.2A("7b")>-1?"3t":"29")+C,9(a){/4Q|4v/.1x(a.14)&&!a.38&&w.U(a)}):/1u(41|3x)/i.1x(r.T.1e)&&h.U.1b("36"+C,9(a){1G(w.1s.T)}),(""+r.U.1e).2A("4V")>-1&&h.1B.1b("3y"+C,9(b){S d=a(b.14),e=!B.1Z(m)&&B.1H(":1Q");d.6X(n).1d===0&&d.2e(c).1d>1&&w.U(b)}),"2E"===15 r.U.25&&(h.T.1b("1g-"+s+"-25",p),a.1p(g.5e,9(a,b){h.U.2e(D.1z).1b(b+C+"-25",p)})),a.1p(j.U,9(b,c){S d=a.6Y(c,j.T),e=a(h.U);d>-1&&e.2e(h.T).1d===e.1d||c==="4V"?(h.T.1b(c+C,9(a){B.1H(":1Q")?o(a):l(a)}),2m j.T[d]):h.U.1b(c+C,o)}),a.1p(j.T,9(a,b){h.T.1b(b+C,l)}),"2E"===15 r.U.3L&&h.T.1b("2F"+C,9(a){S b=E.3a||{},c=r.U.3L,d=1a.3p;(d(a.1N-b.1N)>=c||d(a.2h-b.2h)>=c)&&w.U(a)}),f.14==="1u"&&(h.T.2e(B).1b("2F"+C,9(a){i={1N:a.1N,2h:a.2h,1A:"2F"}}),f.2j.1u&&(r.U.1e&&B.1b("36"+C,9(a){(a.38||a.14)!==h.T[0]&&w.U(a)}),h.1B.1b("2F"+C,9(a){!B.1Z(m)&&B.1H(":1Q")&&w.23(a||i)}))),(f.2j.2y||h.1L.1d)&&(a.1e.70.2y?h.1L:h.3s).1b("2y"+C,t),(h.1L.1d||k&&B.13("18")==="2C")&&h.1L.1b("4j"+C,t)}9 M(b,d){9 g(a){9 c(c){(b=b.2M(V)).1d===0&&(w.2O(),d!==e&&w.23(E.1e),a())}S b;W((b=f.57("3d:2M([12]):2M([X])")).1d===0)R c.28(b);b.1p(9(a,b){(9 d(){S e=w.1s.3d;W(b.12&&b.X){1G(e[a]);R c.28(b)}e[a]=3f(d,20)})()})}S f=D.11;b=b||r.11.1q;W(!w.1l||!b)R e;a.1T(b)&&(b=b.28(c,w)||""),b.22&&b.1d>0?f.4R().3g(b.13({2o:"2W"})):f.33(b),w.1l<0?B.3N("4i",g):(A=0,g(a.73));R w}9 L(b){S d=D.1c;W(!w.1l||!b)R e;a.1T(b)&&(b=b.28(c,w)||""),b.22&&b.1d>0?d.4R().3g(b.13({2o:"2W"})):d.33(b),w.2O(),w.1l&&B.1H(":1Q")&&w.23(E.1e)}9 K(a){S b=D.1F,c=D.1c;W(!w.1l)R e;a?(c||J(),I()):b.1V()}9 J(){S b=y+"-1c";D.1D&&H(),D.1D=a("<2D />",{"1X":k+"-1D "+(r.17.2x?"1y-2x-4Z":"")}).3g(D.1c=a("<2D />",{1t:b,"1X":k+"-1c","1S-4c":d})).74(D.11),r.11.1c.1F?I():w.1l&&w.2O()}9 I(){S b=r.11.1c.1F,c=15 b==="1r",d=c?b:"77 1z";D.1F&&D.1F.1V(),b.22?D.1F=b:D.1F=a("",{"1X":"1y-3u-3v "+(r.17.2x?"":k+"-3E"),1c:d,"1S-78":d}).79(a("<7a />",{"1X":"1y-3E 1y-3E-7c",33:"&7d;"})),D.1F.2T(D.1D).19("56","1F").4o(9(b){a(V).2a("1y-3u-4o",b.1A==="3q")}).4h(9(a){B.1Z(m)||w.U(a);R e}).1b("3y 4X 5i 7e 7i",9(b){a(V).2a("1y-3u-7k 1y-3u-1Y",b.1A.2K(-4)==="7l")}),w.2O()}9 H(){D.1c&&(D.1D.1V(),D.1D=D.1c=D.1F=f,w.23())}9 G(){S a=r.17.2x;B.2a(l,a).2a(o,!a),D.11.2a(l+"-11",a),D.1D&&D.1D.2a(l+"-4Z",a),D.1F&&D.1F.2a(k+"-3E",!a)}9 F(a){S b=0,c,d=r,e=a.2J(".");39(d=d[e[b++]])b0&&!a("#"+i).1d&&(B[0].1t=i,D.11[0].1t=i+"-11",D.1c[0].1t=i+"-1c")},"^11.1q$":9(a,b,c){M(c)},"^11.1c.1q$":9(a,b,c){W(!c)R H();!D.1c&&c&&J(),L(c)},"^11.1c.1F$":9(a,b,c){K(c)},"^18.(1O|2k)$":9(a,b,c){"1r"===15 c&&(a[b]=1J h.2G(c))},"^18.1P$":9(a,b,c){w.1l&&B.2T(c)},"^T.34$":9(){w.1l?w.1I(d):w.1R(1)},"^17.3h$":9(b,c,d){a.19(B[0],"1X",k+" 1g 1y-53-54 "+d)},"^17.2x|11.1c":G,"^3Y.(1R|T|4a|U|1Y|2c)$":9(b,c,d){B[(a.1T(d)?"":"7t")+"1b"]("1z"+c,d)},"^(T|U|18).(1e|14|2C|25|29|3L|1L|2j)$":9(){O(),N()}},a.1o(w,{1R:9(b){W(w.1l)R w;S f=r.11.1c.1q,g=a.3b("7u");a.19(c[0],"1S-4t",y),B=D.1z=a("<2D/>",{1t:y,"1X":k+" 1g 1y-53-54 "+o+" "+r.17.3h,X:r.17.X||"",56:"7w","1S-7x":"7y","1S-4c":e,"1S-4t":y+"-11","1S-43":d}).2a(m,E.2I).2r("1g",w).2T(r.18.1P).3g(D.11=a("<2D />",{"1X":k+"-11",1t:y+"-11","1S-4c":d})),w.1l=-1,A=1,f&&(J(),L(f)),M(e,e),w.1l=d,G(),a.1p(r.3Y,9(b,c){a.1T(c)&&B.1b(b==="1I"?"4d 4e":"1z"+b,c)}),a.1p(h,9(){V.2P==="1R"&&V(w)}),N(),B.3N("4i",9(a){g.31=E.1e,B.2v(g,[w]),A=0,w.2O(),(r.T.34||b)&&w.1I(d,E.1e),a()});R w},48:9(a){S b,c;5m(a.2t()){37"59":b={12:B.3i(),X:B.3J()};32;37"Y":b=h.Y(B,r.18.1P);32;3v:c=F(a.2t()),b=c[0][c[1]],b=b.1h?b.1r():b}R b},3e:9(b,c){9 m(a,b){S c,d,e;5a(c 24 k)5a(d 24 k[c])W(e=(1J 7D(d,"i")).4S(a))b.5c(e),k[c][d].2R(w,b)}S g=/^18\\.(1O|2k|2j|14|1P)|17|11|T\\.34/i,h=/^11\\.(1c|19)|17/i,i=e,j=e,k=w.2Y,l;"1r"===15 b?(l=b,b={},b[l]=c):b=a.1o(d,{},b),a.1p(b,9(c,d){S e=F(c.2t()),f;f=e[0][e[1]],e[0][e[1]]="1j"===15 d&&d.7E?a(d):d,b[c]=[e[0],e[1],d,f],i=g.1x(c)||i,j=h.1x(c)||j}),u(r),z=A=1,a.1p(b,m),z=A=0,B.1H(":1Q")&&w.1l&&(i&&w.23(r.18.14==="1u"?f:E.1e),j&&w.2O());R w},1I:9(b,c){9 m(){b?(a.26.3j&&B[0].17.3I("2H"),B.13("7G","")):B.13({2o:"",4f:"",X:r.17.X||"",4q:"",Q:"",P:""})}W(!w.1l)W(b)w.1R(1);2L R w;S d=b?"T":"U",g=r[d],h=B.1H(":1Q"),j=!c||E.14[0]===c.14,k,l;(15 b).4I("3l|2E")&&(b=!h);W(!B.1H(":5d")&&h===b&&j)R w;W(c){W(/41|3x/.1x(c.1A)&&/3t|29/.1x(E.1e.1A)&&c.14===r.T.14[0]&&B.7J(c.38).1d)R w;E.1e=a.1o({},c)}l=a.3b("1z"+d),l.31=c?E.1e:f,B.2v(l,[w,3W]);W(l.3o())R w;a.19(B[0],"1S-43",!b),b?(E.3a=a.1o({},i),w.1Y(c),a.1T(r.11.1q)&&M(),w.23(c),g.3r&&a(n,g.3r).2M(B).1g("U",l)):(1G(w.1s.T),2m E.3a,w.2c(c)),j&&B.4r(0,1),g.1U===e?(B[d](),m.28(B)):a.1T(g.1U)?(g.1U.28(B,w),B.3N("4i",9(a){m(),a()})):B.5g(3W,b?1:0,m),b&&g.14.2v("1g-"+s+"-25");R w},T:9(a){R w.1I(d,a)},U:9(a){R w.1I(e,a)},1Y:9(b){W(!w.1l)R w;S c=a(n),d=1v(B[0].17.2Z,10),e=g.5l+c.1d,f=a.1o({},b),h,i;B.1Z(p)||(i=a.3b("5h"),i.31=f,B.2v(i,[w,e]),i.3o()||(d!==e&&(c.1p(9(){V.17.2Z>d&&(V.17.2Z=V.17.2Z-1)}),c.2H("."+p).1g("2c",f)),B.3T(p)[0].17.2Z=e));R w},2c:9(b){S c=a.1o({},b),d;B.4s(p),d=a.3b("5j"),d.31=c,B.2v(d,[w]);R w},23:9(c,d){W(!w.1l||z)R w;z=1;S f=r.18.14,g=r.18,j=g.1O,l=g.2k,m=g.2j,n=m.4p.2J(" "),o=B.3J(),p=B.3i(),q=0,s=0,t=a.3b("42"),u=B.13("18")==="2C",v=g.1L,y={Q:0,P:0},A=(w.1K.16||{}).1k,C={3P:n[0],3z:n[1]||n[0],16:r.17.16||{},Q:9(a){S b=C.3P==="2p",c=v.Y.Q+v.2V,d=j.x==="Q"?o:j.x==="1m"?-o:-o/2,e=l.x==="Q"?q:l.x==="1m"?-q:-q/2,f=C.16.X+C.16.1f*2||0,g=A&&A.1h==="x"&&!b?f:0,h=c-a-g,i=a+o-v.X-c+g,k=d-(j.1h==="x"||j.x===j.y?e:0),n=j.x==="1i";b?(g=A&&A.1h==="y"?f:0,k=(j.x==="Q"?1:-1)*d-g,y.Q+=h>0?h:i>0?-i:0,y.Q=1a.1M(v.Y.Q+(g&&A.x==="1i"?C.16.Y:0),a-k,1a.3U(1a.1M(v.Y.Q+v.X,a+k),y.Q))):(h>0&&(j.x!=="Q"||i>0)?y.Q-=k+(n?0:2*m.x):i>0&&(j.x!=="1m"||h>0)&&(y.Q-=n?-k:k+2*m.x),y.Q!==a&&n&&(y.Q-=m.x),y.Qi&&(y.Q=a));R y.Q-a},P:9(a){S b=C.3z==="2p",c=v.Y.P+v.30,d=j.y==="P"?p:j.y==="1n"?-p:-p/2,e=l.y==="P"?s:l.y==="1n"?-s:-s/2,f=C.16.12+C.16.1f*2||0,g=A&&A.1h==="y"&&!b?f:0,h=c-a-g,i=a+p-v.12-c+g,k=d-(j.1h==="y"||j.x===j.y?e:0),n=j.y==="1i";b?(g=A&&A.1h==="x"?f:0,k=(j.y==="P"?1:-1)*d-g,y.P+=h>0?h:i>0?-i:0,y.P=1a.1M(v.Y.P+(g&&A.x==="1i"?C.16.Y:0),a-k,1a.3U(1a.1M(v.Y.P+v.12,a+k),y.P))):(h>0&&(j.y!=="P"||i>0)?y.P-=k+(n?0:2*m.y):i>0&&(j.y!=="1n"||h>0)&&(y.P-=n?-k:k+2*m.y),y.P!==a&&n&&(y.P-=m.y),y.P<0&&-y.P>i&&(y.P=a));R y.P-a}};W(f==="1u"&&(c&&c.1N||E.1e.1N))l={x:"Q",y:"P"},c=c&&(c.1A==="2y"||c.1A==="4j")?E.1e:!m.1u&&E.3a?E.3a:i&&(m.1u||!c||!c.1N)?{1N:i.1N,2h:i.2h}:c,y={P:c.2h,Q:c.1N};2L{f==="1e"?c&&c.14&&c.1A!=="4j"&&c.1A!=="2y"?f=E.14=a(c.14):f=E.14:E.14=a(f),f=a(f).7N(0);W(f.1d===0)R w;f[0]===1B||f[0]===b?(q=h.2l?b.7O:f.X(),s=h.2l?b.7P:f.12(),f[0]===b&&(y={P:!u||h.2l?(v||f).30():0,Q:!u||h.2l?(v||f).2V():0})):f.1H("7R")&&h.44?y=h.44(f,l):f[0].7S==="7T://7U.7V.7W/7X/3B"&&h.3B?y=h.3B(f,l):(q=f.3J(),s=f.3i(),y=h.Y(f,g.1P,u)),y.Y&&(q=y.X,s=y.12,y=y.Y),y.Q+=l.x==="1m"?q:l.x==="1i"?q/2:0,y.P+=l.y==="1n"?s:l.y==="1i"?s/2:0}y.Q+=m.x+(j.x==="1m"?-o:j.x==="1i"?-o/2:0),y.P+=m.y+(j.y==="1n"?-p:j.y==="1i"?-p/2:0),v.22&&f[0]!==b&&f[0]!==x&&C.3z+C.3P!=="80"?(v={5u:v,12:v[(v[0]===b?"h":"81")+"82"](),X:v[(v[0]===b?"w":"83")+"84"](),2V:u?0:v.2V(),30:u?0:v.30(),Y:v.Y()||{Q:0,P:0}},y.3R={Q:C.3P!=="3Q"?C.Q(y.Q):0,P:C.3z!=="3Q"?C.P(y.P):0}):y.3R={Q:0,P:0},B.19("1X",9(b,c){R a.19(V,"1X").2b(/1y-1z-5t-\\w+/i,"")}).3T(k+"-5t-"+j.4K()),t.31=a.1o({},c),B.2v(t,[w,y,v.5u||v]);W(t.3o())R w;2m y.3R,d===e||5w(y.Q)||5w(y.P)||f==="1u"||!a.1T(g.1U)?B.13(y):a.1T(g.1U)&&(g.1U.28(B,w,a.1o({},y)),B.3N(9(b){a(V).13({4q:"",12:""}),a.26.3j&&V.17.3I("2H"),b()})),z=0;R w},2O:9(){W(w.1l<1||A)R w;S b=k+"-5x",c=r.18.1P,d,e,f,g;A=1,r.17.X?B.13("X",r.17.X):(B.13("X","").3T(b),e=B.X()+(a.26.5y?1:0),f=B.13("1M-X")||"",g=B.13("3U-X")||"",d=(f+g).2A("%")>-1?c.X()/5z:0,f=(f.2A("%")>-1?d:1)*1v(f,10)||e,g=(g.2A("%")>-1?d:1)*1v(g,10)||0,e=f+g?1a.3U(1a.1M(e,g),f):e,B.13("X",1a.3V(e)).4s(b)),A=0;R w},3X:9(b){S c=m;"3l"!==15 b&&(b=!B.1Z(c)&&!E.2I),w.1l?(B.2a(c,b),a.19(B[0],"1S-2I",b)):E.2I=!!b;R w},88:9(){R w.3X(e)},2i:9(){S b=c[0],d=a.19(b,t);w.1l&&(B.1V(),a.1p(w.1K,9(){V.2i&&V.2i()})),1G(w.1s.T),1G(w.1s.U),O(),a.8a(b,"1g"),d&&(a.19(b,"1c",d),c.3F(t)),c.3F("1S-4t").1w(".1g"),2m j[w.1t];R c}})}9 u(b){S c;W(!b||"1j"!==15 b)R e;"1j"!==15 b.2g&&(b.2g={1A:b.2g});W("11"24 b){W("1j"!==15 b.11||b.11.22)b.11={1q:b.11};c=b.11.1q||e,!a.1T(c)&&(!c&&!c.19||c.1d<1||"1j"===15 c&&!c.22)&&(b.11.1q=e),"1c"24 b.11&&("1j"!==15 b.11.1c&&(b.11.1c={1q:b.11.1c}),c=b.11.1c.1q||e,!a.1T(c)&&(!c&&!c.19||c.1d<1||"1j"===15 c&&!c.22)&&(b.11.1c.1q=e))}"18"24 b&&("1j"!==15 b.18&&(b.18={1O:b.18,2k:b.18})),"T"24 b&&("1j"!==15 b.T&&(b.T.22?b.T={14:b.T}:b.T={1e:b.T})),"U"24 b&&("1j"!==15 b.U&&(b.U.22?b.U={14:b.U}:b.U={1e:b.U})),"17"24 b&&("1j"!==15 b.17&&(b.17={3h:b.17})),a.1p(h,9(){V.3k&&V.3k(b)});R b}"8b 8c";S d=!0,e=!1,f=8d,g,h,i,j={},k="1y-1z",l="1y-2x",m="1y-3u-2I",n="2D.1g."+k,o=k+"-3v",p=k+"-1Y",q=k+"-4o",r="-5G",s="5H",t="52";g=a.2w.1g=9(b,h,i){S j=(""+b).2t(),k=f,l=j==="3X"?[d]:a.5K(2s).5D(1),m=l[l.1d-1],n=V[0]?a.2r(V[0],"1g"):f;W(!2s.1d&&n||j==="5M")R n;W("1r"===15 b){V.1p(9(){S b=a.2r(V,"1g");W(!b)R d;m&&m.7B&&(b.2U.1e=m);W(j!=="4v"&&j!=="2f"||!h)b[j]&&b[j].2R(b[j],l);2L W(a.5Q(h)||i!==c)b.3e(h,i);2L{k=b.48(h);R e}});R k!==f?k:V}W("1j"===15 b||!2s.1d){n=u(a.1o(d,{},b));R g.1b.28(V,n,m)}},g.1b=9(b,f){R V.1p(9(k){9 r(b){9 d(){p.1R(15 b==="1j"||l.T.34),m.T.2e(m.U).1w(o)}W(p.2U.2I)R e;p.2U.1e=a.1o({},b),p.2U.14=b?a(b.14):[c],l.T.2B>0?(1G(p.1s.T),p.1s.T=3f(d,l.T.2B),n.T!==n.U&&m.U.1b(n.U,9(){1G(p.1s.T)})):d()}S l,m,n,o,p,q;q=a.5X(b.1t)?b.1t[k]:b.1t,q=!q||q===e||q.1d<1||j[q]?g.4g++:j[q]=q,o=".1g-"+q+"-2n",p=w.28(V,q,b);W(p===e)R d;l=p.2f,a.1p(h,9(){V.2P==="2P"&&V(p)}),m={T:l.T.14,U:l.U.14},n={T:a.3C(""+l.T.1e).2b(/ /g,o+" ")+o,U:a.3C(""+l.U.1e).2b(/ /g,o+" ")+o},/1u(41|3x)/i.1x(n.T)&&!/1u(3t|29)/i.1x(n.U)&&(n.U+=" 36"+o),l.18.14==="1u"&&m.T.1b("2F"+o,9(a){i={1N:a.1N,2h:a.2h,1A:"2F"}}),m.T.1b(n.T,r),(l.T.34||l.5n)&&r(f)})},h=g.1K={2G:9(a){a=(""+a).2b(/([A-Z])/," $1").2b(/6o/4G,"1i").2t(),V.x=(a.4k(/Q|1m/i)||a.4k(/1i/)||["3M"])[0].2t(),V.y=(a.4k(/P|1n|1i/i)||["3M"])[0].2t(),V.1h=a.3m(0).4I(/^(t|b)/)>-1?"y":"x",V.1r=9(){R V.1h==="y"?V.y+V.x:V.x+V.y},V.4K=9(){S a=V.x.2K(0,1),b=V.y.2K(0,1);R a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}},Y:9(c,d,e){9 l(a,b){f.Q+=b*a.2V(),f.P+=b*a.30()}S f=c.Y(),g=d,i=0,j=1B.2S,k;W(g){6y{g.13("18")!=="6A"&&(k=g[0]===j?{Q:1v(g.13("Q"),10)||0,P:1v(g.13("P"),10)||0}:g.18(),f.Q-=k.Q+(1v(g.13("6C"),10)||0),f.P-=k.P+(1v(g.13("6G"),10)||0),i++);W(g[0]===j)32}39(g=g.6I());(d[0]!==j||i>1)&&l(d,1),(h.2l<4.1&&h.2l>3.1||!h.2l&&e)&&l(a(b),-1)}R f},2l:4Y((""+(/4T.*6N ([0-6Q]{1,3})|(4T 6S).*6U.*6W/i.4S(6Z.71)||[0,""])[1]).2b("5o","72").2b("75","."))||e,2w:{19:9(b,c){W(V.1d){S d=V[0],e="1c",f=a.2r(d,"1g");W(b===e){W(2s.1d<2)R a.19(d,t);W(15 f==="1j"){f&&f.1l&&f.2f.11.19===e&&f.2U.19&&f.3e("11.1q",c),a.2w["19"+s].2R(V,2s),a.19(d,t,a.19(d,e));R V.3F(e)}}}},51:9(b){S c=a([]),d="1c",e;e=a.2w["51"+s].2R(V,2s).2H("[52]").1p(9(){a.19(V,d,a.19(V,t)),V.3I(t)}).7v();R e},1V:a.1y?f:9(b,c){a(V).1p(9(){c||(!b||a.2H(b,[V]).1d)&&a("*",V).2e(V).1p(9(){a(V).7A("1V")})})}}},a.1p(h.2w,9(b,c){W(!c)R d;S e=a.2w[b+s]=a.2w[b];a.2w[b]=9(){R c.2R(V,2s)||e.2R(V,2s)}}),g.3O="2.0.7I",g.4g=0,g.5e="4h 7L 3y 5i 2F 36 3q".2J(" "),g.5l=7M,g.3n={5n:e,1t:e,4l:d,11:{1q:d,19:"1c",1c:{1q:e,1F:e}},18:{1O:"P Q",2k:"1n 1m",14:e,1P:e,1L:e,2j:{x:0,y:0,1u:d,2y:d,4p:"3S 3S"},1U:9(b,c,d){a(V).4r().86(c,87)}},T:{14:e,1e:"3q",1U:d,2B:3W,3r:e,34:e},U:{14:e,1e:"36",1U:d,2B:0,2C:e,25:e,29:"3s",3L:e},17:{3h:"",2x:e,X:e},3Y:{1R:f,4a:f,T:f,U:f,1I:f,1Y:f,2c:f}},h.1C=9(a){S b=a.1K.1C;R"1j"===15 b?b:a.1K.1C=1J x(a)},h.1C.2P="1R",h.1C.3k=9(a){S b=a.11,c;b&&"1C"24 b&&(c=b.1C,15 c!=="1j"&&(c=a.11.1C={2z:c}),"3l"!==15 c.2u&&c.2u&&(c.2u=!!c.2u))},a.1o(d,g.3n,{11:{1C:{4O:d,2u:d}}}),h.16=9(a){S b=a.1K.16;R"1j"===15 b?b:a.1K.16=1J z(a)},h.16.2P="1R",h.16.3k=9(a){S b=a.17,c;b&&"16"24 b&&(c=a.17.16,15 c!=="1j"&&(a.17.16={1k:c}),/1r|3l/i.1x(15 c.1k)||(c.1k=d),15 c.X!=="2E"&&2m c.X,15 c.12!=="2E"&&2m c.12,15 c.1f!=="2E"&&c.1f!==d&&2m c.1f,15 c.Y!=="2E"&&2m c.Y)},a.1o(d,g.3n,{17:{16:{1k:d,3D:e,X:6,12:6,1f:d,Y:0}}}),h.44=9(b,c){9 l(a,b){S d=0,e=1,f=1,g=0,h=0,i=a.X,j=a.12;39(i>0&&j>0&&e>0&&f>0){i=1a.3G(i/2),j=1a.3G(j/2),c.x==="Q"?e=i:c.x==="1m"?e=a.X-i:e+=1a.3G(i/2),c.y==="P"?f=j:c.y==="1n"?f=a.12-j:f+=1a.3G(j/2),d=b.1d;39(d--){W(b.1d<2)32;g=b[d][0]-a.Y.Q,h=b[d][1]-a.Y.P,(c.x==="Q"&&g>=e||c.x==="1m"&&g<=e||c.x==="1i"&&(ga.X-e)||c.y==="P"&&h>=f||c.y==="1n"&&h<=f||c.y==="1i"&&(ha.12-f))&&b.6T(d,1)}}R{Q:b[0][0],P:b[0][1]}}b.22||(b=a(b));S d=b.19("46").2t(),e=b.19("76").2J(","),f=[],g=a(\'3d[7m="#\'+b.7p("5f").19("49")+\'"]\'),h=g.Y(),i={X:0,12:0,Y:{P:3H,1m:0,1n:0,Q:3H}},j=0,k=0;h.Q+=1a.3K((g.3J()-g.X())/2),h.P+=1a.3K((g.3i()-g.12())/2);W(d==="5s"){j=e.1d;39(j--)k=[1v(e[--j],10),1v(e[j+1],10)],k[0]>i.Y.1m&&(i.Y.1m=k[0]),k[0]i.Y.1n&&(i.Y.1n=k[1]),k[1]