diff --git a/digilabsoftware.altervista.org/DeLucaRun4/c2runtime.js b/digilabsoftware.altervista.org/DeLucaRun4/c2runtime.js new file mode 100644 index 0000000..fabd865 --- /dev/null +++ b/digilabsoftware.altervista.org/DeLucaRun4/c2runtime.js @@ -0,0 +1,454 @@ +// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net +'use strict';var ca,da,ga,ha,ja,ka,la,z,ma,na,oa,pa,qa,ra,K,ua,va,wa,ya,za,Aa,Ba,R,Ca,Da,Fa,Ga,Ha,T,Ia,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc={},ic={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype}); +(function(){function e(a,c,d,k){this.set(a,c,d,k)}function n(){this.Lb=this.Kb=this.Nb=this.Mb=this.Wb=this.Vb=this.qb=this.pb=0}function q(a,c,d,k){ak?c:k):(x=ad?c:d):dk?a:k):(x=cd?a:d)}function m(){this.items=this.Td=null;this.ci=0;L&&(this.Td=new Set);this.kh=[];this.Me=!0}function h(a){C[S++]=a}function r(){this.ba=this.ol=this.y=this.Sl=0}function b(a){this.nb=[];this.qj=this.sj=this.tj=this.rj=0;this.Qi(a)}function a(a,c){this.Xl= +a;this.Wl=c;this.cells={}}function f(a,c){this.Xl=a;this.Wl=c;this.cells={}}function t(a,c,d){var k;return P.length?(k=P.pop(),k.Em=a,k.x=c,k.y=d,k):new ca(a,c,d)}function c(a,c,d){this.Em=a;this.x=c;this.y=d;this.wb=new da}function d(a,c,d){var k;return w.length?(k=w.pop(),k.Em=a,k.x=c,k.y=d,k):new ga(a,c,d)}function l(a,c,d){this.Em=a;this.x=c;this.y=d;this.wb=[];this.Gg=!0;this.Pd=new da;this.qh=!1}function g(a,c){return a.Cd-c.Cd}ha=function(a){window.console&&window.console.log&&window.console.log(a)}; +ja=function(a){window.console&&window.console.error&&window.console.error(a)};ka=function(a){return"undefined"===typeof a};la=function(a){return"number"===typeof a};z=function(a){return"string"===typeof a};ma=function(a){return 0c;c<<=1)a=a|a>>c;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,c){return a>c?a:c};qa=function(a,c){return av)return!1;cv)return!1;l=p-a+g-d;y=f-c+b-k;a=d-a;c=k-c;p=g-p;f=b-f;b=oa(c*p-f*a);return oa(p*y-f*l)>b?!1:oa(a*y-c*l)<=b};e.prototype.set=function(a,c,d,k){this.left=a;this.top=c;this.right=d;this.bottom=k};e.prototype.xh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right- +this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.mw=function(a){return!(a.rightthis.right||a.top>this.bottom)};e.prototype.ow=function(a,c,d){return!(a.right+ +cthis.right||a.top+d>this.bottom)};e.prototype.Ob=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};e.prototype.Ch=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=e;n.prototype.Pi=function(a){this.pb=a.left;this.qb=a.top;this.Vb=a.right;this.Wb=a.top;this.Mb=a.right;this.Nb=a.bottom;this.Kb=a.left;this.Lb=a.bottom};n.prototype.yr=function(a,c){if(0===c)this.Pi(a);else{var d= +Math.sin(c),k=Math.cos(c),p=a.left*d,f=a.top*d,g=a.right*d,d=a.bottom*d,b=a.left*k,l=a.top*k,y=a.right*k,k=a.bottom*k;this.pb=b-f;this.qb=l+p;this.Vb=y-f;this.Wb=l+g;this.Mb=y-d;this.Nb=k+g;this.Kb=b-d;this.Lb=k+p}};n.prototype.offset=function(a,c){this.pb+=a;this.qb+=c;this.Vb+=a;this.Wb+=c;this.Mb+=a;this.Nb+=c;this.Kb+=a;this.Lb+=c;return this};var x=0,H=0;n.prototype.Zo=function(a){q(this.pb,this.Vb,this.Mb,this.Kb);a.left=x;a.right=H;q(this.qb,this.Wb,this.Nb,this.Lb);a.top=x;a.bottom=H};n.prototype.Ob= +function(a,c){var d=this.pb,k=this.qb,p=this.Vb-d,f=this.Wb-k,g=this.Mb-d,b=this.Nb-k,l=a-d,y=c-k,v=p*p+f*f,F=p*g+f*b,f=p*l+f*y,t=g*g+b*b,e=g*l+b*y,u=1/(v*t-F*F),p=(t*f-F*e)*u,v=(v*e-F*f)*u;if(0<=p&&0p+v)return!0;p=this.Kb-d;f=this.Lb-k;v=p*p+f*f;F=p*g+f*b;f=p*l+f*y;u=1/(v*t-F*F);p=(t*f-F*e)*u;v=(v*e-F*f)*u;return 0<=p&&0p+v};n.prototype.Ke=function(a,c){if(c)switch(a){case 0:return this.pb;case 1:return this.Vb;case 2:return this.Mb;case 3:return this.Kb;case 4:return this.pb;default:return this.pb}else switch(a){case 0:return this.qb; +case 1:return this.Wb;case 2:return this.Nb;case 3:return this.Lb;case 4:return this.qb;default:return this.qb}};n.prototype.Aq=function(){return(this.pb+this.Vb+this.Mb+this.Kb)/4};n.prototype.Bq=function(){return(this.qb+this.Wb+this.Nb+this.Lb)/4};n.prototype.Pp=function(a){var c=a.Aq(),d=a.Bq();if(this.Ob(c,d))return!0;c=this.Aq();d=this.Bq();if(a.Ob(c,d))return!0;var k,p,f,g,b,l,y,v;for(y=0;4>y;y++)for(v=0;4>v;v++)if(c=this.Ke(y,!0),d=this.Ke(y,!1),k=this.Ke(y+1,!0),p=this.Ke(y+1,!1),f=a.Ke(v, +!0),g=a.Ke(v,!1),b=a.Ke(v+1,!0),l=a.Ke(v+1,!1),va(c,d,k,p,f,g,b,l))return!0;return!1};ya=n;za=function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);return a};Aa=function(a,c){var d,k;c=K(c);if(!(0>c||c>=a.length)){d=c;for(k=a.length-1;dd?d:a};T=function(a){return a/(180/ra)};Ia=function(a){return 180/ra*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};La=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ma=function(a){return Ja(Ia(a))};Na=function(a){return La(T(a))};Oa=function(a,c,d,k){return Math.atan2(k-c,d-a)};Pa=function(a,c){if(a===c)return 0;var d=Math.sin(a),k=Math.cos(a),p=Math.sin(c),f=Math.cos(c),d=d*p+k*f;return 1<=d?0:-1>=d?ra:Math.acos(d)}; +Qa=function(a,c,d){var k=Math.sin(a),p=Math.cos(a),f=Math.sin(c),g=Math.cos(c);return Math.acos(k*f+p*g)>d?0=k*p-d*f};Sa=function(a,c,d,k,p,f){if(0===d)return f?a:c;var g=Math.sin(d);d=Math.cos(d);a-=k;c-=p;var b=a*g;a=a*d-c*g;c=c*d+b;return f?a+k:c+p};Va=function(a,c,d,k){a=d-a;c=k-c;return Math.sqrt(a*a+c*c)};Wa=function(a,c){return!a!==!c};Xa=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0; +return!1};Ya=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var A=+new Date;Za=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-A};var k=!1,p=k=!1,u=!1;"undefined"!==typeof window&&(k=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent), +k=!k&&/safari/i.test(navigator.userAgent),p=/(iphone|ipod|ipad)/i.test(navigator.userAgent),u=window.c2ejecta);var L=!k&&!u&&!p&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.je()?!1:L?this.Td.has(a):this.items&&this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(L)this.Td.has(a)||(this.Td.add(a),this.Me=!1);else{var c=a.toString(),d=this.items;d?d.hasOwnProperty(c)||(d[c]=a,this.ci++,this.Me=!1):(this.items={},this.items[c]= +a,this.ci=1,this.Me=!1)}};m.prototype.remove=function(a){if(!this.je())if(L)this.Td.has(a)&&(this.Td["delete"](a),this.Me=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.ci--,this.Me=!1)}};m.prototype.clear=function(){this.je()||(L?this.Td.clear():(this.items=null,this.ci=0),R(this.kh),this.Me=!0)};m.prototype.je=function(){return 0===this.count()};m.prototype.count=function(){return L?this.Td.size:this.ci};var C=null,S=0;m.prototype.Rx=function(){if(!this.Me){if(L)R(this.kh), +C=this.kh,S=0,this.Td.forEach(h),C=null,S=0;else{var a=this.kh;R(a);var c,d=0,k=this.items;if(k)for(c in k)k.hasOwnProperty(c)&&(a[d++]=k[c])}this.Me=!0}};m.prototype.Ae=function(){this.Rx();return this.kh};da=m;new da;$a=function(a,c){L?ab(a,c.Td):bb(a,c.Ae())};ab=function(a,c){var d,k,p,f;k=d=0;for(p=a.length;dd&&(d=f), +gp&&(p=g);this.rj=c;this.sj=d;this.tj=k;this.qj=p};b.prototype.Pi=function(a,c,d){this.nb.length=8;this.xd=4;var k=this.nb;k[0]=a.left-c;k[1]=a.top-d;k[2]=a.right-c;k[3]=a.top-d;k[4]=a.right-c;k[5]=a.bottom-d;k[6]=a.left-c;k[7]=a.bottom-d;this.xj=a.right-a.left;this.wj=a.bottom-a.top;this.Z()};b.prototype.bh=function(a,c,d,k,p){this.nb.length=8;this.xd=4;var f=this.nb;f[0]=a.pb-c;f[1]=a.qb-d;f[2]=a.Vb-c;f[3]=a.Wb-d;f[4]=a.Mb-c;f[5]=a.Nb-d;f[6]=a.Kb-c;f[7]=a.Lb-d;this.xj=k;this.wj=p;this.Z()}; +b.prototype.xr=function(a){this.xd=a.xd;Ca(this.nb,a.nb);this.rj=a.rj;this.tj-a.tj;this.sj=a.sj;this.qj=a.qj};b.prototype.qg=function(a,c,d){if(this.xj!==a||this.wj!==c||this.cp!==d){this.xj=a;this.wj=c;this.cp=d;var k,p,f,g,b,l=0,y=1,v=this.hr,F=this.nb;0!==d&&(l=Math.sin(d),y=Math.cos(d));d=0;for(f=this.xd;dP.length&&P.push(b), +this.cells[k][f]=null);if(d)for(k=d.left,p=d.right;k<=p;++k)for(f=d.top,g=d.bottom;f<=g;++f)c&&c.Ob(k,f)||this.Ue(k,f,!0).Lm(a)};a.prototype.Wk=function(a,c){var d,k,p,f,g,b;d=this.$b(a.left);p=this.ac(a.top);k=this.$b(a.right);for(g=this.ac(a.bottom);d<=k;++d)for(f=p;f<=g;++f)(b=this.Ue(d,f,!1))&&b.dump(c)};fb=a;f.prototype.Ue=function(a,c,k){var p;p=this.cells[a];return p?(p=p[c])?p:k?(p=d(this,a,c),this.cells[a][c]=p):null:k?(p=d(this,a,c),this.cells[a]={},this.cells[a][c]=p):null};f.prototype.$b= +function(a){return K(a/this.Xl)};f.prototype.ac=function(a){return K(a/this.Wl)};f.prototype.update=function(a,c,d){var k,p,f,g,b;if(c)for(k=c.left,p=c.right;k<=p;++k)for(f=c.top,g=c.bottom;f<=g;++f)if(!d||!d.Ob(k,f))if(b=this.Ue(k,f,!1))b.remove(a),b.je()&&(b.reset(),1E3>w.length&&w.push(b),this.cells[k][f]=null);if(d)for(k=d.left,p=d.right;k<=p;++k)for(f=d.top,g=d.bottom;f<=g;++f)c&&c.Ob(k,f)||this.Ue(k,f,!0).Lm(a)};f.prototype.Wk=function(a,c,d,k,p){var f,g;a=this.$b(a);c=this.ac(c);d=this.$b(d); +for(f=this.ac(k);a<=d;++a)for(k=c;k<=f;++k)(g=this.Ue(a,k,!1))&&g.dump(p)};f.prototype.Fw=function(a){var c,d,k,p,f;c=a.left;k=a.top;d=a.right;for(p=a.bottom;c<=d;++c)for(a=k;a<=p;++a)if(f=this.Ue(c,a,!1))f.Gg=!1};gb=f;var P=[];c.prototype.je=function(){return this.wb.je()};c.prototype.Lm=function(a){this.wb.add(a)};c.prototype.remove=function(a){this.wb.remove(a)};c.prototype.dump=function(a){Da(a,this.wb.Ae())};ca=c;var w=[];l.prototype.je=function(){if(!this.wb.length)return!0;if(this.wb.length> +this.Pd.count())return!1;this.om();return!0};l.prototype.Lm=function(a){this.Pd.contains(a)?(this.Pd.remove(a),this.Pd.je()&&(this.qh=!1)):this.wb.length?(this.wb[this.wb.length-1].Jd()>a.Jd()&&(this.Gg=!1),this.wb.push(a)):(this.wb.push(a),this.Gg=!0)};l.prototype.remove=function(a){this.Pd.add(a);this.qh=!0;30<=this.Pd.count()&&this.om()};l.prototype.om=function(){this.qh&&(this.Pd.count()===this.wb.length?this.reset():($a(this.wb,this.Pd),this.Pd.clear(),this.qh=!1))};l.prototype.Su=function(){this.Gg|| +(this.wb.sort(g),this.Gg=!0)};l.prototype.reset=function(){R(this.wb);this.Gg=!0;this.Pd.clear();this.qh=!1};l.prototype.dump=function(a){this.om();this.Su();this.wb.length&&a.push(this.wb)};ga=l;var D="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");hb=function(a){return 0>=a||11<=a?"source-over":D[a-1]};ib=function(a,c,d){if(d)switch(a.Tb=d.ONE,a.Pb=d.ONE_MINUS_SRC_ALPHA,c){case 1:a.Tb=d.ONE;a.Pb=d.ONE;break;case 3:a.Tb= +d.ONE;a.Pb=d.ZERO;break;case 4:a.Tb=d.ONE_MINUS_DST_ALPHA;a.Pb=d.ONE;break;case 5:a.Tb=d.DST_ALPHA;a.Pb=d.ZERO;break;case 6:a.Tb=d.ZERO;a.Pb=d.SRC_ALPHA;break;case 7:a.Tb=d.ONE_MINUS_DST_ALPHA;a.Pb=d.ZERO;break;case 8:a.Tb=d.ZERO;a.Pb=d.ONE_MINUS_SRC_ALPHA;break;case 9:a.Tb=d.DST_ALPHA;a.Pb=d.ONE_MINUS_SRC_ALPHA;break;case 10:a.Tb=d.ONE_MINUS_DST_ALPHA,a.Pb=d.SRC_ALPHA}};jb=function(a){return Math.round(1E6*a)/1E6};kb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length? +!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};nb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||kb(a.tagName,"canvas")?!0:!1}})();var jc="undefined"!==typeof Float32Array?Float32Array:Array;function kc(e){var n=new jc(3);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]);return n} +function lc(e){var n=new jc(16);e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]);return n}function mc(e,n){n[0]=e[0];n[1]=e[1];n[2]=e[2];n[3]=e[3];n[4]=e[4];n[5]=e[5];n[6]=e[6];n[7]=e[7];n[8]=e[8];n[9]=e[9];n[10]=e[10];n[11]=e[11];n[12]=e[12];n[13]=e[13];n[14]=e[14];n[15]=e[15]} +function nc(e,n){var q=n[0],m=n[1];n=n[2];e[0]*=q;e[1]*=q;e[2]*=q;e[3]*=q;e[4]*=m;e[5]*=m;e[6]*=m;e[7]*=m;e[8]*=n;e[9]*=n;e[10]*=n;e[11]*=n} +function oc(e,n,q,m){m||(m=lc());var h,r,b,a,f,t,c,d,l=e[0],g=e[1];e=e[2];r=q[0];b=q[1];h=q[2];q=n[1];t=n[2];l===n[0]&&g===q&&e===t?(e=m,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(q=l-n[0],t=g-n[1],c=e-n[2],d=1/Math.sqrt(q*q+t*t+c*c),q*=d,t*=d,c*=d,n=b*c-h*t,h=h*q-r*c,r=r*t-b*q,(d=Math.sqrt(n*n+h*h+r*r))?(d=1/d,n*=d,h*=d,r*=d):r=h=n=0,b=t*r-c*h,a=c*n-q*r,f=q*h-t*n,(d=Math.sqrt(b*b+a*a+f*f))?(d=1/d,b*=d,a*=d,f*=d):f=a=b=0, +m[0]=n,m[1]=b,m[2]=q,m[3]=0,m[4]=h,m[5]=a,m[6]=t,m[7]=0,m[8]=r,m[9]=f,m[10]=c,m[11]=0,m[12]=-(n*l+h*g+r*e),m[13]=-(b*l+a*g+f*e),m[14]=-(q*l+t*g+c*e),m[15]=1)} +(function(){function e(a,f,b){this.ke=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Fa=!!b;this.ek=this.Uh=!1;this.dm=0;this.Jl=1;this.xo=1E3;this.Yx=(this.xo-this.Jl)/32768;this.Tl=kc([0,0,100]);this.iq=kc([0,0,0]);this.Vr=kc([0,1,0]);this.fj=kc([1,1,1]);this.pp=!0;this.zk=lc();this.Nc=lc();this.Ym=lc();this.cm=lc();this.G=a;this.version=0===this.G.getParameter(this.G.VERSION).indexOf("WebGL 2")?2:1;this.Lp()}function n(a,f,b){this.G=a;this.Ri= +f;this.name=b;this.Wc=a.getAttribLocation(f,"aPos");this.ef=a.getAttribLocation(f,"aTex");this.gq=a.getUniformLocation(f,"matP");this.vk=a.getUniformLocation(f,"matMV");this.Og=a.getUniformLocation(f,"opacity");this.hn=a.getUniformLocation(f,"colorFill");this.hq=a.getUniformLocation(f,"samplerFront");this.oi=a.getUniformLocation(f,"samplerBack");this.Tf=a.getUniformLocation(f,"destStart");this.Sf=a.getUniformLocation(f,"destEnd");this.qi=a.getUniformLocation(f,"seconds");this.kn=a.getUniformLocation(f, +"pixelWidth");this.jn=a.getUniformLocation(f,"pixelHeight");this.ni=a.getUniformLocation(f,"layerScale");this.mi=a.getUniformLocation(f,"layerAngle");this.ri=a.getUniformLocation(f,"viewOrigin");this.pi=a.getUniformLocation(f,"scrollPos");this.hw=!!(this.kn||this.jn||this.qi||this.oi||this.Tf||this.Sf||this.ni||this.mi||this.ri||this.pi);this.qq=this.rq=-999;this.yk=1;this.mq=this.lq=0;this.oq=this.kq=this.jq=1;this.uq=this.tq=this.sq=this.wq=this.vq=this.nq=0;this.Xm=[];this.pq=lc();this.Og&&a.uniform1f(this.Og, +1);this.hn&&a.uniform4f(this.hn,1,1,1,1);this.hq&&a.uniform1i(this.hq,0);this.oi&&a.uniform1i(this.oi,1);this.Tf&&a.uniform2f(this.Tf,0,0);this.Sf&&a.uniform2f(this.Sf,1,1);this.ni&&a.uniform1f(this.ni,1);this.mi&&a.uniform1f(this.mi,0);this.ri&&a.uniform2f(this.ri,0,0);this.pi&&a.uniform2f(this.pi,0,0);this.qi&&a.uniform1f(this.qi,0);this.Gf=!1}function q(a,f){return a[0]===f[0]&&a[1]===f[1]&&a[2]===f[2]&&a[3]===f[3]&&a[4]===f[4]&&a[5]===f[5]&&a[6]===f[6]&&a[7]===f[7]&&a[8]===f[8]&&a[9]===f[9]&& +a[10]===f[10]&&a[11]===f[11]&&a[12]===f[12]&&a[13]===f[13]&&a[14]===f[14]&&a[15]===f[15]}function m(a,f){this.type=a;this.F=f;this.G=f.G;this.Kd=this.Zb=this.Sq=0;this.X=this.ed=null;this.Ar=[]}var h=lc();e.prototype.Lp=function(){var a=this.G,f;this.aq=1;this.Nf=this.$e=null;this.Ej=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Fa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)): +a.disable(a.DEPTH_TEST);this.bq=a.ONE;this.$p=a.ONE_MINUS_SRC_ALPHA;this.Dl=new Float32Array(8E3*(this.Fa?3:2));this.ql=new Float32Array(16E3);this.dr=new Float32Array(32E3);this.Bn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Bn);a.bufferData(a.ARRAY_BUFFER,this.dr.byteLength,a.DYNAMIC_DRAW);this.ej=Array(4);this.Yi=Array(4);for(f=0;4>f;f++)this.ej[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ej[f]),a.bufferData(a.ARRAY_BUFFER,this.Dl.byteLength,a.DYNAMIC_DRAW),this.Yi[f]=a.createBuffer(), +a.bindBuffer(a.ARRAY_BUFFER,this.Yi[f]),a.bufferData(a.ARRAY_BUFFER,this.ql.byteLength,a.DYNAMIC_DRAW);this.ae=0;this.kw=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.kw);for(var b=new Uint16Array(12E3),c=f=0;12E3>f;)b[f++]=c,b[f++]=c+1,b[f++]=c+2,b[f++]=c,b[f++]=c+2,b[f++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,b,a.STATIC_DRAW);this.Cn=this.fh=this.Be=0;this.Va=[];f=this.Fa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}": +"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";b=this.yh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},f,"");this.Va.push(b);b=this.yh({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"}, +"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","");this.Va.push(b);b=this.yh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},f,"");this.Va.push(b);b=this.yh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, +f,"");this.Va.push(b);for(var d in pc)pc.hasOwnProperty(d)&&this.Va.push(this.yh(pc[d],f,d));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Le=[];this.Zd=0;this.Qb=!1;this.kp=this.gi=-1;this.sg=null;this.nm=a.createFramebuffer();this.Ij=this.Yk=null;this.Xo=!1;this.Fa&&(this.Ij=a.createRenderbuffer());this.nf=kc([0,0,0]);this.xq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048"===b.name&&a.vertexAttribPointer(b.Wc,4,a.FLOAT,!1,0,0));if(0"!==b.name&& +a.vertexAttribPointer(b.Wc,this.Fa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Yi[this.ae]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ql.subarray(0,this.fh));b&&0<=b.ef&&""!==b.name&&a.vertexAttribPointer(b.ef,2,a.FLOAT,!1,0,0)}for(var e,a=0,b=this.Zd;ae||0>c)){var d=this.Bc();d.type=7;d.Zb=1;d.X||(d.X=lc());d.X[0]=a;d.X[1]=b;d.X[2]=e;d.X[3]=c;this.Qb=!1}};e.prototype.rr=function(a){if(this.Fa&&(a=!!a,this.Uh!==a)){var b=this.Bc();b.type=14;b.Zb=a?1:0;this.Qb=!1;this.Uh=a;this.Yk=null;this.Uh?this.mc(2): +this.mc(0)}};e.prototype.qr=function(a){if(this.Fa){var b=this.Bc();b.type=13;b.Zb=a?1:0;this.Qb=!1}};e.prototype.xp=function(){mc(this.Ym,h);this.bd();this.Pc();var a=this.width/2,b=this.height/2;this.Ii(-a,b,a,b,a,-b,-a,-b);mc(h,this.Nc);this.Pc()};e.prototype.pr=function(a,b,e){this.mc(3);var c=this.Bc();c.type=12;c.X||(c.X=lc());c.X[0]=a;c.X[1]=b;c.X[2]=e;c.X[3]=1;this.Qb=!1};e.prototype.Ex=function(){this.mc(0)};e.prototype.kx=function(){this.mc(2)};e.prototype.$w=function(){this.Re();this.G.flush()}; +var r=[],b={};e.prototype.nu=function(){R(r);b={}};e.prototype.sk=function(a,f,e,c){f=!!f;e=!!e;var d=a.src+","+f+","+e+(f?",undefined":""),l=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(d))return l=b[d],l.vj++,l;this.Re();var g=this.G,n=ma(a.width)&&ma(a.height),l=g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=g.RGBA,h=g.RGBA,k=g.UNSIGNED_BYTE;if(c&&!this.ke)switch(c){case 1:h=m=g.RGB;break;case 2:k=g.UNSIGNED_SHORT_4_4_4_4;break; +case 3:k=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:h=m=g.RGB,k=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!n&&f){c=document.createElement("canvas");c.width=na(a.width);c.height=na(a.height);var p=c.getContext("2d");"undefined"!==typeof p.imageSmoothingEnabled?p.imageSmoothingEnabled=e:(p.webkitImageSmoothingEnabled=e,p.mozImageSmoothingEnabled=e,p.msImageSmoothingEnabled=e);p.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);g.texImage2D(g.TEXTURE_2D,0,m,h,k,c)}else g.texImage2D(g.TEXTURE_2D,0, +m,h,k,a);f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(n||2<=this.version)&&this.pp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER, +g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.$e=null;l.sf=a.width;l.rf=a.height;l.vj=1;l.bp=d;r.push(l);return b[d]=l};e.prototype.Gc=function(a,b,e,c){this.Re();var d=this.G;this.ke&&(c=!1);var l=d.createTexture();d.bindTexture(d.TEXTURE_2D,l);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,b,0,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S, +d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,e?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,e?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.$e=null;l.sf=a;l.rf=b;r.push(l);return l};e.prototype.Wx=function(a,b,e){this.Re();var c=this.G;this.ke&&(e=!1);c.bindTexture(c.TEXTURE_2D,b);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA, +e?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,a)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}c.bindTexture(c.TEXTURE_2D,null);this.$e=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.vj&&1=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function q(){try{return!!window.indexedDB}catch(a){return!1}}function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function h(a,c,d,k){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=k;b.onsuccess=function(b){b=b.target.result;b.onerror=k;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=d}}catch(p){k(p)}}function r(a, +c,d){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;var k=b.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?c(k.result.data):c(null)}}}catch(k){d(k)}}function b(){ha("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1p?(p*=c,5===g?(f=p*d/this.Pa,1f&&(f=1/Math.ceil(1/f)),p=this.Pa*f/d,f=this.Oa*f/d,b=(a-p)/2,k=(c-f)/2,a=p,c=f):(b=(a-p)/2,a=p)):(f=a/p,5===g?(f=f*d/this.Oa,1f&&(f=1/Math.ceil(1/f)),p=this.Pa*f/d,f=this.Oa*f/d,b=(a-p)/2,k=(c-f)/2,a=p):k=(c-f)/2,c=f)):p&&0===g&&(b=Math.floor((a-this.Pa)/2),k=Math.floor((c-this.Oa)/ +2),a=this.Pa,c=this.Oa),2>g&&(this.sh=d),this.Cj=Math.round(a),this.Ah=Math.round(c),this.width=Math.round(a*d),this.height=Math.round(c*d),this.ya=!0,this.ds?(this.N=this.width,this.M=this.height,this.Hc=!0):this.widthp&&(this.M=this.N/g)):3===g&&(p=this.Pa/this.Oa,g=this.Mg/this.Lg,g>p?this.N=this.M*g:g< +p&&(this.M=this.N/g))),this.Ul&&!this.La&&(jQuery(this.Ul).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*d),this.canvas.height=Math.round(c*d),this.Vc?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=Math.round(a)+ +"px",this.canvas.style.height=Math.round(c)+"px"):this.Lf&&!this.La&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Gb&&(this.Gb.width=Math.round(a*d),this.Gb.height=Math.round(c*d),this.Gb.style.width=this.Cj+"px",this.Gb.style.height=this.Ah+"px"),this.F&&this.F.dg(Math.round(a*d),Math.round(c*d)),this.Rb&&this.Ja&&(this.Ja.width=Math.round(a),this.Ja.height=Math.round(c)),this.Ja&&this.dl(this.Ja,this.Na),this.Tr(),this.Yp&&!this.vc&&window.scrollTo(0, +0)}};e.prototype.Tr=function(){if(this.fu&&0!==this.zn){var a="portrait";2===this.zn&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};e.prototype.Jw= +function(){this.F.nu();this.Vm=!0;var a,c,d;a=0;for(c=this.B.length;ad;)d++,a=l.shift(),this.sr(a[0],a[1])};e.prototype.cs=function(a,d){a.cocoonLazyLoad=!0;a.onerror=function(d){c=a.$o=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",d)};this.Vc?a.src=d:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(c){a.src=c},function(b){c=a.$o=!0;console&&console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.cx(a,d)));this.mh.push(a)}; +e.prototype.Cv=function(a){var c,d;c=0;for(d=this.mh.length;c=f)f=5E4;a+=f;p.src&&(p.complete||p.loaded)&&!p.$o?c+=f:b=!1}b&&this.Yw&&this.pg&&(x||(this.pg.Ix(),x=!0),d=this.pg.Ov(),c+=d,dthis.df&&(this.Kc||500<=b&&this.cq!=this.wd)){a.clearRect(0,0,p,g);var b=p/2,g=g/2,p=0===this.df&&this.cf.xk.complete,l=40*d,e=0,u=80*d,m;if(p){var n=this.cf.xk,u=n.width*d;m= +n.height*d;l=u/2;e=m/2;a.drawImage(n,K(b-l),K(g-e),u,m)}1>=this.df?(b=K(b-l)+.5,g=K(g+(e+(p?12*d:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(b,g,Math.floor(u*this.wd),6*d),a.strokeStyle="black",a.strokeRect(b,g,u,6*d),a.strokeStyle="white",a.strokeRect(b-1*d,g-1*d,u+2*d,8*d)):2===this.df&&(a.font=this.Vc?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.vz="middle",d=Math.round(100*this.wd)+"%",p=a.measureText?a.measureText(d):null,a.fillText(d,b-(p?p.width:0)/2,g));this.cq=this.wd}else if(4=== +this.df){this.Ou(a);f?f(function(){k.go()}):setTimeout(function(){k.go()},16);return}}setTimeout(function(){k.go()},this.Kc?10:100)}}};var A=-1,k="undefined"===typeof cr_is_preview?200:0,p=!0,u=!1,L=0,C=0,S="undefined"===typeof cr_is_preview?3E3:0,P=null,w=null,D=0;e.prototype.Ou=function(a){if(!H){for(var d=Math.ceil(this.width),b=Math.ceil(this.height),g=this.cf.xk,f=this.cf.Xw,l=this.cf.Xx,e=0;4>e;++e)if(!g[e].complete||!f[e].complete||!l[e].complete)return;0===D&&(A=Date.now());var e=Date.now(), +m=!1,h=a,x,q;p||u?(a.clearRect(0,0,d,b),P&&P.width===d&&P.height===b||(P=document.createElement("canvas"),P.width=d,P.height=b,w=P.getContext("2d")),h=w,m=!0,p&&1===D&&(A=Date.now())):a.globalAlpha=1;h.fillStyle="#333333";h.fillRect(0,0,d,b);256=S&&!u&&1<=this.wd&&(u=!0,C=e); +if(u&&e-C>=300+k||"undefined"!==typeof cr_is_preview&&1<=this.wd&&500>Date.now()-A)H=!0,u=p=!1,this.cf=w=P=null;++D}};e.prototype.fw=function(){this.Gb&&(this.canvas.parentNode.removeChild(this.Gb),this.Gb=this.An=null);this.ll=Date.now();this.Pf=Za();var a,c,d;if(this.so)for(a=0,c=this.B.length;aa||2===this.ec&& +cc&&(c=0),this.yf=c/=1E3,.51/this.Cq&&(this.yf=1/this.Cq));this.lk=a;this.xf=this.yf*this.ig;this.ib.add(this.xf);this.Ce.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen|| +document.fullScreen||!!document.msFullscreenElement||this.Kf)&&!this.vc;2<=this.ec||a&&0c||2===b&&da++;)this.op(this.vh);a=0;for(c=this.fe.length;ac.Gj.length&&c.Gj.push(a)};e.prototype.ip=function(a,c,d,b){if(a.O){var k=K(Math.random()*a.Vf.length);return this.ip(a.Vf[k],c,d,b)}return a.Tc?this.Pe(a.Tc,c,!1,d,b,!1):null};var Q=[];e.prototype.Pe=function(a,c,d,b,k,p){var g,f,l,e;if(!a)return null;var u=this.B[a[1]],m=u.Ga.Xe;if(this.bi&&m&&!u.Rm||m&&!this.F&& +11===a[0][11])return null;var n=c;m||(c=null);var h;u.Gj.length?(h=u.Gj.pop(),h.Cc=!0,u.Ga.ea.call(h,u)):(h=new u.Ga.ea(u),h.Cc=!1);!d||p||this.pe.hasOwnProperty(a[2].toString())?h.uid=this.xi++:h.uid=a[2];this.pe[h.uid.toString()]=h;h.ir=this.Fq++;h.If=u.j.length;g=0;for(f=this.od.length;ga&&(a=0);a>=this.ra.V.length&&(a=this.ra.V.length-1);return this.ra.V[a]};e.prototype.Yl=function(a){var c,d;c=0;for(d=a.length;ce;++e)if(h=2*e-1,a.x=k+c*l*h,a.y=g+d*l*h,a.A(),!this.Ub(a,p))if(p=this.ob(a))f=p;else return f&&this.Vk(a,c*h,d*h,f),!0;a.x=k;a.y=g;a.A();return!1};e.prototype.Vk=function(a,c,d,b){var k=2,g,p=!1;g=!1;for(var f=a.x,l=a.y;16>=k;)g=1/k,k*=2,a.x+=c*g*(p?1:-1),a.y+=d*g*(p?1:-1), +a.A(),this.Ub(a,b)?g=p=!0:(g=p=!1,f=a.x,l=a.y);g&&(a.x=f,a.y=l,a.A())};e.prototype.jr=function(a,c){var d=ka(c)?100:c,b=0,k=a.x,g=a.y,p=0,f=0,l=0,e=this.ob(a);if(!e)return!0;for(;b<=d;){switch(p){case 0:f=0;l=-1;b++;break;case 1:f=1;l=-1;break;case 2:f=1;l=0;break;case 3:l=f=1;break;case 4:f=0;l=1;break;case 5:f=-1;l=1;break;case 6:f=-1;l=0;break;case 7:l=f=-1}p=(p+1)%8;a.x=K(k+f*b);a.y=K(g+l*b);a.A();if(!this.Ub(a,e)&&(e=this.ob(a),!e))return!0}a.x=k;a.y=g;a.A();return!1};e.prototype.re=function(a, +c){a.$d&&c.$d&&this.ag.push([a,c])};e.prototype.$t=function(a,c,d){var b,k,g;b=0;for(k=this.ag.length;be;e++)if(h=p-e*n,a.x=c+Math.cos(h)*g,a.y=d+Math.sin(h)*g,a.A(),!this.Ub(a,l)&&(l=this.ob(a),!l)){u=h;break}36===e&&(u=La(p+ra));l=f;for(e=1;36>e;e++)if(h=p+e*n,a.x=c+Math.cos(h)*g,a.y=d+Math.sin(h)*g,a.A(),!this.Ub(a,l)&&(l=this.ob(a),!l)){m=h;break}36===e&&(m=La(p+ra));a.x=b;a.y=k;a.A();if(m===u)return m;a=Pa(m,u)/2;a=Ra(m,u)?La(u+a+ra):La(m+a);u=Math.cos(p);p=Math.sin(p);m=Math.cos(a);a=Math.sin(a);c=u*m+p*a;return Oa(0, +0,u-2*c*m,p-2*c*a)};var aa=-1;e.prototype.trigger=function(a,c,d){if(!this.ra)return!1;var b=this.ra.Af;if(!b)return!1;var k=!1,g,p,f;aa++;var l=b.fm;p=0;for(f=l.length;p=this.ln.length&&this.ln.push([])};e.prototype.Vw=function(){this.wk--};e.prototype.Ap=function(){return this.ln[this.wk]}; +e.prototype.Uk=function(a){this.Lj++;this.Lj>=this.jm.length&&this.jm.push(new Ub);var c=this.Db();c.reset(a);return c};e.prototype.Pk=function(){this.Lj--};e.prototype.Db=function(){return this.jm[this.Lj]};e.prototype.Bp=function(a,c){for(var d,b,k,g,p,f;c;){d=0;for(b=c.dd.length;dg||g>=a.hb.length||(p=k[b],null===p&&(p=NaN),a.hb[g]=p));if(l.Xe){g=c.w;a.q.da!==g.l&&(k=a.q,a.q=this.ra.Yj(g.l),a.q?(k.Zg(a,!0),a.q.rh(a,!0),a.A(),a.q.Oi(0)):(a.q=k,d||this.of(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Cd=g.zi;a.n=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.fc=g.hasOwnProperty("hX")?g.hX:.5;a.gc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")? +g.v:!0;a.$d=g.hasOwnProperty("ce")?g.ce:!0;a.wi=g.hasOwnProperty("mts")?g.mts:-1;a.Jb=g.hasOwnProperty("bm")?g.bm:0;a.wh=hb(a.Jb);this.G&&ib(a,a.Jb,this.G);a.A();if(g.hasOwnProperty("fx"))for(d=0,k=g.fx.length;dp||(a.Ge[p]=g.fx[d].active,a.Sa[p]=g.fx[d].params);a.Bd()}if(f=c.behs)for(b in f)f.hasOwnProperty(b)&&(d=this.Hv(a,parseInt(b,10)),0>d||a.P[d].Sb(f[b]));c.data&&a.Sb(c.data)};e.prototype.tp=function(a,c,d){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+ +"www/"+a,function(a){a.file(c,d)},d)};e.prototype.Av=function(a,c){this.tp("data.js",function(d){var b=new FileReader;b.onload=function(c){a(c.target.result)};b.onerror=c;b.readAsText(d)},c)};var ia=[],J=0;e.prototype.nn=function(){if(ia.length&&!(8<=J)){J++;var a=ia.shift();this.vu(a.filename,a.Kx,a.Tu)}};e.prototype.up=function(a,c,d){var b=this;ia.push({filename:a,Kx:function(a){J--;b.nn();c(a)},Tu:function(a){J--;b.nn();d(a)}});this.nn()};e.prototype.vu=function(a,c,d){this.tp(a,function(a){var d= +new FileReader;d.onload=function(a){c(a.target.result)};d.readAsArrayBuffer(a)},d)};e.prototype.Bv=function(a,c,d){var b="",k=a.toLowerCase(),g=k.substr(k.length-4),k=k.substr(k.length-5);".mp4"===g?b="video/mp4":".webm"===k?b="video/webm":".m4a"===g?b="audio/mp4":".mp3"===g&&(b="audio/mpeg");this.up(a,function(a){a=URL.createObjectURL(new Blob([a],{type:b}));c(a)},d)};e.prototype.pw=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.sr=function(a, +c){this.hk&&!this.pw(c)?this.Bv(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};e.prototype.dl=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Wb=function(a){return new e(document.getElementById(a))};Xb=function(a,c){return new e({dc:!0,width:a,height:c})};window.cr_createRuntime=Wb;window.cr_createDCRuntime=Xb;window.createCocoonJSRuntime= +function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.pj=!0;document.body.appendChild(a);a=new e(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new e(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth, +window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,n){var q=window.cr_getC2Runtime();q&&q.tu(e,n)};window.cr_sizeCanvas=function(e,n){if(0!==e&&0!==n){var q=window.cr_getC2Runtime();q&&q.setSize(e,n)}};window.cr_setSuspended=function(e){var n=window.cr_getC2Runtime();n&&n.setSuspended(e)}; +(function(){function e(a,d){this.b=a;this.Af=null;this.scrollX=this.b.Pa/2;this.scrollY=this.b.Oa/2;this.scale=1;this.n=0;this.xg=!0;this.name=d[0];this.Rw=d[1];this.Qw=d[2];this.width=d[1];this.height=d[2];this.Ur=d[3];this.Br=d[4];this.da=d[5];var b=d[6],g,f;this.V=[];this.Rh=[];g=0;for(f=b.length;g=this.V.length&&(k=this.V.length-1);h.q=this.V[k];-1===h.q.j.indexOf(h)&&h.q.j.push(h);h.q.jg=!0}if(!b)for(a=0,f=this.V.length;af?h.siblings.push(m.j[f]):m.Tc&&(e=this.b.Pe(m.Tc,h.q,!0,h.x,h.y,!0),this.b.Ib(),m.yl(),h.siblings.push(e),r.push(e)));a=0;for(f= +this.We.length;athis.width-d&&(a=this.width-d);athis.height-d&&(a=this.height-d);av&&(v=0);0>B&&(B=0);N>G&&(N=G);M>E&&(M=E);0>F&&(F=0);0>I&&(I=0);sa>G&&(sa=G);ba>E&&(ba=E);J.left=v/G;J.top=1-B/E;J.right=N/G;J.bottom=1-M/E}else J.left=y.left=0,J.top=y.top=0,J.right=y.right=1,J.bottom=y.bottom=1;fa=b&&(a.Fi(f[0].cb)||0!== +t||0!==fa||1!==b.opacity||b.type.Ga.Dq)||d&&!b&&1!==d.opacity;a.or();if(fa){n[O]||(n[O]=a.Gc(G,E,this.b.Na));if(n[O].sf!==G||n[O].rf!==E)a.deleteTexture(n[O]),n[O]=a.Gc(G,E,this.b.Na);a.mc(0);a.cd(n[O]);U=ba-I;a.clearRect(F,E-I-U,sa-F,U);b?b.rc(a):(a.Dc(this.b.jb),a.bg(d.opacity),a.bd(),a.translate(-aa,-ia),a.Pc(),a.Rd(v,M,N,M,N,B,v,B,J));y.left=y.top=0;y.right=y.bottom=1;b&&(D=J.top,J.top=J.bottom,J.bottom=D);O=1;Q=0}a.bg(1);t=f.length-1;var xa=a.Gn(f[t].cb)||!d&&!b&&!this.b.Hc;q=D=0;for(r=f.length;q< +r;q++){n[O]||(n[O]=a.Gc(G,E,this.b.Na));if(n[O].sf!==G||n[O].rf!==E)a.deleteTexture(n[O]),n[O]=a.Gc(G,E,this.b.Na);a.mc(f[q].cb);D=f[q].index;a.Sk(f[q].cb)&&(this.b.ya=!0);0!=q||fa?(a.ah(g,1/G,1/E,y.left,y.top,y.right,y.bottom,e,h,k,p,(k+u)/2,(p+m)/2,this.b.ib.ba,b?b.Sa[D]:d?d.Sa[D]:this.Sa[D]),a.Dc(null),q!==t||xa?(a.cd(n[O]),U=ba-I,ea=E-I-U,a.clearRect(F,ea,sa-F,U)):(b?a.kf(b.Tb,b.Pb):d&&a.kf(d.Tb,d.Pb),a.cd(g)),a.Dc(n[Q]),a.bd(),a.translate(-aa,-ia),a.Pc(),a.Rd(v,M,N,M,N,B,v,B,J),q!==t||xa||a.Dc(null)): +(a.cd(n[O]),U=ba-I,ea=E-I-U,a.clearRect(F,ea,sa-F,U),b?(b.Ab&&b.Ab.ca?(ea=b.Ab.ca,Q=1/ea.width,ea=1/ea.height):(Q=1/b.width,ea=1/b.height),a.ah(g,Q,ea,y.left,y.top,y.right,y.bottom,e,h,k,p,(k+u)/2,(p+m)/2,this.b.ib.ba,b.Sa[D]),b.rc(a)):(a.ah(g,1/G,1/E,0,0,1,1,e,h,k,p,(k+u)/2,(p+m)/2,this.b.ib.ba,d?d.Sa[D]:this.Sa[D]),a.Dc(d?this.b.jb:this.b.$a),a.bd(),a.translate(-aa,-ia),a.Pc(),a.Rd(v,M,N,M,N,B,v,B,J)),y.left=y.top=0,y.right=y.bottom=1,b&&!xa&&(D=M,M=B,B=D));O=0===O?1:0;Q=0===O?1:0}xa&&(a.mc(0), +b?a.kf(b.Tb,b.Pb):d?a.kf(d.Tb,d.Pb):this.b.Hc||(a.dg(this.b.width,this.b.height),aa=this.b.width/2,ia=this.b.height/2,B=v=0,N=this.b.width,M=this.b.height),a.cd(g),a.Dc(n[Q]),a.bd(),a.translate(-aa,-ia),a.Pc(),b&&1===f.length&&!fa?a.Rd(v,B,N,B,N,M,v,M,J):a.Rd(v,M,N,M,N,B,v,B,J),a.Dc(null))};e.prototype.Yj=function(a){var d,b;d=0;for(b=this.V.length;df||(b&&this.Qc&&a.jc&&a.jc.right>=a.jc.left&&(a.Z(),this.Hb.update(a,a.jc,null),a.jc.set(0,0,-1,-1)),f===this.j.length-1?this.j.pop():(Aa(this.j,f),this.Oi(f)), +this.yd=!0)};q.prototype.rh=function(a,b){a.Cd=this.j.length;this.j.push(a);b&&this.Qc&&a.jc&&a.A();this.yd=!0};q.prototype.Zw=function(a){this.j.unshift(a);this.Oi(0)};q.prototype.Iw=function(a,b,f){var g=a.Jd();b=b.Jd();Aa(this.j,g);gthis.Ca||f.top>this.Ba||(b.globalCompositeOperation=a.wh,a.Gd(b))}};q.prototype.Al=function(){this.ee=!0;var a=this.zb(0,0,!0,!0),b=this.zb(0,0,!1,!0);this.ee=!1;this.b.ud&& +(a=Math.round(a),b=Math.round(b));this.Zk(a,b,null)};q.prototype.Zk=function(a,b,f){var g=this.uc();this.za=a;this.Aa=b;this.Ca=a+1/g*this.b.N;this.Ba=b+1/g*this.b.M;this.za>this.Ca&&(a=this.za,this.za=this.Ca,this.Ca=a);this.Aa>this.Ba&&(a=this.Aa,this.Aa=this.Ba,this.Ba=a);a=this.fb();0!==a&&(f&&(f.translate(this.b.N/2,this.b.M/2),f.rotate(-a),f.translate(this.b.N/-2,this.b.M/-2)),this.ye.set(this.za,this.Aa,this.Ca,this.Ba),this.ye.offset((this.za+this.Ca)/-2,(this.Aa+this.Ba)/-2),this.Qr.yr(this.ye, +a),this.Qr.Zo(this.ye),this.ye.offset((this.za+this.Ca)/2,(this.Aa+this.Ba)/2),this.za=this.ye.left,this.Aa=this.ye.top,this.Ca=this.ye.right,this.Ba=this.ye.bottom)};q.prototype.wf=function(a){if(this.Sd=this.Uj){this.b.jb||(this.b.jb=a.Gc(this.b.N,this.b.M,this.b.Na));if(this.b.jb.sf!==this.b.N||this.b.jb.rf!==this.b.M)a.deleteTexture(this.b.jb),this.b.jb=a.Gc(this.b.N,this.b.M,this.b.Na);a.cd(this.b.jb)}this.ee=!0;var b=this.zb(0,0,!0,!0),f=this.zb(0,0,!1,!0);this.ee=!1;this.b.ud&&(b=Math.round(b), +f=Math.round(f));this.Zk(b,f,null);b=this.uc();a.bd();a.scale(b,b);a.$k(-this.fb());a.translate((this.za+this.Ca)/-2,(this.Aa+this.Ba)/-2);a.Pc();this.Qc?(this.Bb.left=this.Hb.$b(this.za),this.Bb.top=this.Hb.ac(this.Aa),this.Bb.right=this.Hb.$b(this.Ca),this.Bb.bottom=this.Hb.ac(this.Ba),this.yd||!this.Bb.Ch(this.Ng)?(h(this.ne),b=this.Bm(),this.yd=!1,this.Ng.xh(this.Bb)):b=this.ne):b=this.j;for(var g,e=null,f=b.length-1;0<=f;--f)g=b[f],g!==e&&(this.Mu(b[f],a),e=g);this.Qc&&(this.ne=b);this.Ad||(this.Zl= +this.b.zf++,a.el(this.Zl),a.pr(1,1,1),a.xp(),a.kx())};q.prototype.rc=function(a){var b=0,f=0;if(this.Sd=this.Uj||1!==this.opacity||0this.Ca||f.top>this.Ba||(b.el(a.zf),a.as?this.Nu(a,b):(b.mc(0),b.kf(a.Tb,a.Pb),a.rc(b)))}};q.prototype.Mu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Z();var f=a.W;f.right +this.Ca||f.top>this.Ba||(a.zf=this.b.zf++,0===a.Jb&&1===a.opacity&&a.ue&&a.wf&&(b.el(a.zf),a.wf(b)))}};q.prototype.Nu=function(a,b){var f=a.qa[0].cb,g=a.qa[0].index,e=this.uc();if(1!==a.qa.length||b.Gn(f)||b.ax(f)||(a.n||a.q.fb())&&b.Fi(f)||1!==a.opacity||a.type.Ga.Dq)this.kb.Ln(b,this,a,this.Sd?this.b.jb:this.kb.Lh()),b.bd(),b.scale(e,e),b.$k(-this.fb()),b.translate((this.za+this.Ca)/-2,(this.Aa+this.Ba)/-2),b.Pc();else{b.mc(f);b.kf(a.Tb,a.Pb);b.Sk(f)&&(this.b.ya=!0);var h=0,m=0,k=0,p=0;b.Fi(f)&& +(p=a.W,h=this.Ma(p.left,p.top,!0,!0),m=this.Ma(p.left,p.top,!1,!0),k=this.Ma(p.right,p.bottom,!0,!0),p=this.Ma(p.right,p.bottom,!1,!0),h=h/windowWidth,m=1-m/windowHeight,k=k/windowWidth,p=1-p/windowHeight);var u;a.Ab&&a.Ab.ca?(u=a.Ab.ca,f=1/u.width,u=1/u.height):(f=1/a.width,u=1/a.height);b.ah(this.Sd?this.b.jb:this.kb.Lh(),f,u,h,m,k,p,e,this.fb(),this.za,this.Aa,(this.za+this.Ca)/2,(this.Aa+this.Ba)/2,this.b.ib.ba,a.Sa[g]);a.rc(b)}};q.prototype.zb=function(a,b,f,g){var e=this.b.devicePixelRatio; +this.b.Lf&&(a*=e,b*=e);var e=this.b.Zq,h=this.b.$q,e=(this.kb.scrollX-e)*this.Zc+e,h=(this.kb.scrollY-h)*this.$c+h,m=e,k=h,p=1/this.uc(!g);g?(m-=this.b.N*p/2,k-=this.b.M*p/2):(m-=this.b.width*p/2,k-=this.b.height*p/2);m+=a*p;k+=b*p;b=this.fb();0!==b&&(m-=e,k-=h,a=Math.cos(b),b=Math.sin(b),g=m*a-k*b,k=k*a+m*b,m=g+e,k+=h);return f?m:k};q.prototype.Ma=function(a,b,f,g){var e=this.b.Zq,h=this.b.$q,m=(this.kb.scrollX-e)*this.Zc+e,k=(this.kb.scrollY-h)*this.$c+h,h=m,e=k,p=this.fb();if(0!==p){a-=m;b-=k; +var u=Math.cos(-p),p=Math.sin(-p),n=a*u-b*p;b=b*u+a*p;a=n+m;b+=k}m=1/this.uc(!g);g?(h-=this.b.N*m/2,e-=this.b.M*m/2):(h-=this.b.width*m/2,e-=this.b.height*m/2);h=(a-h)/m;e=(b-e)/m;a=this.b.devicePixelRatio;this.b.Lf&&!g&&(h/=a,e/=a);return f?h:e};q.prototype.yb=function(){var a,b,f,g={s:this.scale,a:this.n,vl:this.za,vt:this.Aa,vr:this.Ca,vb:this.Ba,v:this.visible,bc:this.md,t:this.Ad,px:this.Zc,py:this.$c,o:this.opacity,zr:this.Dd,fx:[],cg:this.zh,instances:[]};a=0;for(b=this.U.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=x.length&&(x.length=a.length+1);x[a.length]||(x[a.length]=[]);f=x[a.length];b=0;for(c=f.length;b=b.length&&(b.length=this.Uf+1),b[this.Uf]=a):this.data=a};d.prototype.Mh=function(){var a=this.b.Ap();return!this.parent||this.ai||!a||this.jk?this.data:this.Uf>=a.length||"undefined"===typeof a[this.Uf]?this.Km:a[this.Uf]};d.prototype.bb=function(){!this.parent||this.ai||this.jk||this.eg(this.Km)};Vb= +d;l.prototype.toString=function(){return"include:"+this.Qh.toString()};l.prototype.Ya=function(){this.Qh=this.b.km[this.jw];this.sheet.Kp.add(this);this.Da=q(this.Da);for(var a=this.parent;a;)a.group&&a.Aj.push(this),a=a.parent;this.Wr()};l.prototype.bb=function(){this.parent&&this.b.Hi(this.b.B);this.Qh.Gm||this.Qh.bb(!0);this.parent&&this.b.$f(this.b.B)};l.prototype.Wr=function(){for(var a=this.parent;a;){if(a.group&&!a.Ff){this.rb=!1;return}a=a.parent}this.rb=!0};ec=l;g.prototype.reset=function(a){this.cc= +a;this.oc=this.sb=0;R(this.Kr);this.hm=this.Of=!1};Ub=g})(); +(function(){function e(b,a){this.Yc=b;this.b=b.b;this.type=a[0];this.get=[this.lv,this.gv,this.vv,this.yv,this.Uu,this.wv,this.qv,this.bv,this.pv,this.uv,this.Vu,this.tv,this.cv,this.rv,this.nv,this.ov,this.hv,this.jv,this.av,this.xv,this.sv,this.kv,this.$u,this.dv][this.type];var f=null;this.oe=this.Y=this.Ua=this.Cb=this.sl=this.second=this.first=this.value=null;this.nd=-1;this.qd=null;this.bs=-1;this.Bf=this.cj=null;this.$g=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= +new cc(b,a[1]);break;case 18:this.first=new cc(b,a[1]);this.second=new cc(b,a[2]);this.sl=new cc(b,a[3]);break;case 19:this.Cb=this.b.Fe(a[1]);this.Cb!==V.prototype.Ta.random&&this.Cb!==V.prototype.Ta.ep||this.Yc.ur();this.Ua=[];this.Y=[];3===a.length?(f=a[2],this.Ua.length=f.length+1):this.Ua.length=1;break;case 20:this.oe=this.b.B[a[1]];this.nd=-1;this.Cb=this.b.Fe(a[2]);this.$g=a[3];hc.Function&&this.Cb===hc.Function.prototype.Ta.ey&&this.Yc.ur();a[4]?this.qd=new cc(b,a[4]):this.qd=null;this.Ua= +[];this.Y=[];6===a.length?(f=a[5],this.Ua.length=f.length+1):this.Ua.length=1;break;case 21:this.oe=this.b.B[a[1]];this.$g=a[2];a[3]?this.qd=new cc(b,a[3]):this.qd=null;this.bs=a[4];break;case 22:this.oe=this.b.B[a[1]];this.oe.Xj(a[2]);this.nd=this.oe.um(a[2]);this.Cb=this.b.Fe(a[3]);this.$g=a[4];a[5]?this.qd=new cc(b,a[5]):this.qd=null;this.Ua=[];this.Y=[];7===a.length?(f=a[6],this.Ua.length=f.length+1):this.Ua.length=1;break;case 23:this.cj=a[1],this.Bf=null}this.Yc.Hw(this.oe);4<=this.type&&17>= +this.type&&(this.first=new cc(b,a[1]),this.second=new cc(b,a[2]));if(f){var e,c;e=0;for(c=f.length;e=a||h<=-a)h%=a;0>h&&(h+=a);d.apply(m[h],f)};e.prototype.$u=function(b){var a=this.oe,f=this.Ua,e=this.Y,c=this.qd,d=this.nd,h=this.Cb,g=this.Yc.ve,m=a.ja(),H=m.tc();if(!H.length)if(m.fa.length)H=m.fa;else{this.$g?b.Ec(""):b.Ha(0);return}f[0]=b;b.Xf=a;b=n();q(e,f,b);c&&(c.get(b),b.ub()&&(g=b.data,H=a.j));--r;e=H.length;if(g>=e||g<=-e)g%=e;0>g&&(g+=e);g=H[g];H=0;a.O&&(H=g.type.wg[a.ge]);h.apply(g.P[d+H],f)};e.prototype.kv=function(b){var a=this.qd,f=this.oe,e=this.bs,c=this.Yc.ve, +d=f.ja(),h=d.tc();if(!h.length)if(d.fa.length)h=d.fa;else{this.$g?b.Ec(""):b.Ha(0);return}if(a){d=n();a.get(d);if(d.ub()){c=d.data;h=f.j;0!==h.length&&(c%=h.length,0>c&&(c+=h.length));c=f.ym(c);f=c.hb[e];z(f)?b.Ec(f):b.K(f);--r;return}--r}a=h.length;if(c>=a||c<=-a)c%=a;0>c&&(c+=a);c=h[c];h=0;f.O&&(h=c.type.Nj[f.ge]);f=c.hb[e+h];z(f)?b.Ec(f):b.K(f)};e.prototype.lv=function(b){b.type=fc.lg;b.data=this.value};e.prototype.gv=function(b){b.type=fc.kg;b.data=this.value};e.prototype.vv=function(b){b.type= +fc.String;b.data=this.value};e.prototype.yv=function(b){this.first.get(b);b.ub()&&(b.data=-b.data)};e.prototype.Uu=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data+=a.data,a.Eg()&&b.Pg());--r};e.prototype.wv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data-=a.data,a.Eg()&&b.Pg());--r};e.prototype.qv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data*=a.data,a.Eg()&&b.Pg());--r};e.prototype.bv=function(b){this.first.get(b); +var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data/=a.data,b.Pg());--r};e.prototype.pv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data%=a.data,a.Eg()&&b.Pg());--r};e.prototype.uv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data=Math.pow(b.data,a.data),a.Eg()&&b.Pg());--r};e.prototype.Vu=function(b){this.first.get(b);var a=n();this.second.get(a);a.Hg()||b.Hg()?this.Xu(b,a):this.Wu(b,a);--r};e.prototype.Xu=function(b,a){b.Hg()&& +a.Hg()?this.Zu(b,a):this.Yu(b,a)};e.prototype.Zu=function(b,a){b.data+=a.data};e.prototype.Yu=function(b,a){b.Hg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Ec(b.data.toString()+a.data)};e.prototype.Wu=function(b,a){b.Ha(b.data&&a.data?1:0)};e.prototype.tv=function(b){this.first.get(b);var a=n();this.second.get(a);b.ub()&&a.ub()&&(b.data||a.data?b.Ha(1):b.Ha(0));--r};e.prototype.av=function(b){this.first.get(b);b.data?this.second.get(b):this.sl.get(b)};e.prototype.cv=function(b){this.first.get(b); +var a=n();this.second.get(a);b.Ha(b.data===a.data?1:0);--r};e.prototype.rv=function(b){this.first.get(b);var a=n();this.second.get(a);b.Ha(b.data!==a.data?1:0);--r};e.prototype.nv=function(b){this.first.get(b);var a=n();this.second.get(a);b.Ha(b.dataa.data?1:0);--r};e.prototype.jv=function(b){this.first.get(b); +var a=n();this.second.get(a);b.Ha(b.data>=a.data?1:0);--r};e.prototype.dv=function(b){var a=this.Bf.Mh();la(a)?b.K(a):b.Ec(a)};cc=e;m.prototype.Eg=function(){return this.type===fc.kg};m.prototype.ub=function(){return this.type===fc.lg||this.type===fc.kg};m.prototype.Hg=function(){return this.type===fc.String};m.prototype.Pg=function(){this.Eg()||(this.Hg()&&(this.data=parseFloat(this.data)),this.type=fc.kg)};m.prototype.Ha=function(b){this.type=fc.lg;this.data=Math.floor(b)};m.prototype.K=function(b){this.type= +fc.kg;this.data=b};m.prototype.Ec=function(b){this.type=fc.String;this.data=b};m.prototype.Fx=function(b){la(b)?(this.type=fc.kg,this.data=b):z(b)?(this.type=fc.String,this.data=b.toString()):(this.type=fc.lg,this.data=0)};bc=m;fc={lg:0,kg:1,String:2}})();function V(e){this.b=e;this.nc=[]} +V.prototype.yb=function(){var e={},n,q,m,h,r,b,a,f;e.waits=[];var t=e.waits,c;n=0;for(q=this.nc.length;n=f+c)return a.J.Every_lastTime=f+c,e>=a.J.Every_lastTime+.04&&(a.J.Every_lastTime=e),a.J.Every_seconds=b,!0;e +b)){var a,f,e,c=this.b.Db(),d;h.length?d=h.pop():d={Yb:{},Da:[]};d.gm=!1;d.time=this.b.ib.ba+b;d.Er="";d.Zn=!1;d.ug=c.cc;d.oc=c.oc+1;b=0;for(a=this.b.B.length;bc&&(a=c);b.K(a)};q.prototype.xf=function(b){b.K(this.b.xf)};q.prototype.ig=function(b){b.K(this.b.ig)};q.prototype.time=function(b){b.K(this.b.ib.ba)};q.prototype.Vd=function(b){b.Ha(this.b.Vd)};q.prototype.Fk=function(b){b.Ha(this.b.Fk)}; +q.prototype.pm=function(b){b.Ha(this.b.pm)};q.prototype.n=function(b,a,f,e,c){b.K(Ia(Oa(a,f,e,c)))};q.prototype.yx=function(b){b.K(this.b.ra.scrollX)};q.prototype.zx=function(b){b.K(this.b.ra.scrollY)};q.prototype.left=function(b,a,f){b.Ec(z(a)?a.substr(0,f):"")};q.prototype.right=function(b,a,f){b.Ec(z(a)?a.substr(a.length-f):"")};q.prototype.replace=function(b,a,f,e){z(a)&&z(f)&&z(e)?b.Ec(a.replace(new RegExp(db(f),"gi"),e)):b.Ec(z(a)?a:"")};q.prototype.trim=function(b,a){b.Ec(z(a)?a.trim():"")}; +q.prototype.ep=function(b){var a=K(Math.random()*(arguments.length-1));b.Fx(arguments[a+1])};q.prototype.$l=function(b){b.K(this.b.$l/1E3)};q.prototype.uk=function(b){b.K(this.b.uk)};m.Ta=new q;m.qx=function(){var b,a,f,e,c,d,m=this.b.Db();b=0;for(f=this.nc.length;bthis.b.ib.ba)continue;m.cc=e.ug;m.oc=e.oc;m.sb=0;for(a in e.Yb)e.Yb.hasOwnProperty(a)&&(c=this.b.B[parseInt(a,10)].ja(),d=e.Yb[a],c.xa=d.bl,Ca(c.j,d.ie),c=d,R(c.ie), +r.push(c));e.ug.nx();this.b.Yl(e.Da);e.gm=!0}a=b=0;for(f=this.nc.length;ba.Ca||b.top>a.Ba)},c.qy=function(){this.Z();var a=this.W,b=this.b.ra;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.By=function(a,b,c){var d=this.ja(),f= +d.tc();if(!f.length)return!1;var e=f[0],h=e,m=Va(e.x,e.y,b,c),l,n,q;l=1;for(n=f.length;lm)m=q,h=e;d.Di(h);return!0},d.Sy=function(a){this.x!==a&&(this.x=a,this.A())},d.Ty=function(a){this.y!==a&&(this.y=a,this.A())},d.Ft=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.A()},d.Py=function(a,b){var c=a.Nv(this);if(c){var d;c.Jh?(d=c.Jh(b,!0),c=c.Jh(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.A()}},d.vy=function(a){0!== +a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.A())},d.uy=function(a,b){0!==b&&(this.x+=Math.cos(T(a))*b,this.y+=Math.sin(T(a))*b,this.A())},l.St=function(a){a.K(this.x)},l.Tt=function(a){a.K(this.y)},l.xf=function(a){a.K(this.b.Ih(this))});r&&(c.hy=function(a,b){return gc(this.width,a,b)},c.fy=function(a,b){return gc(this.height,a,b)},d.Jt=function(a){this.width!==a&&(this.width=a,this.A())},d.Ny=function(a){this.height!==a&&(this.height=a,this.A())},d.Qy=function(a,b){if(this.width!== +a||this.height!==b)this.width=a,this.height=b,this.A()},l.Xy=function(a){a.K(this.width)},l.ky=function(a){a.K(this.height)},l.ay=function(a){this.Z();a.K(this.W.left)},l.cy=function(a){this.Z();a.K(this.W.top)},l.by=function(a){this.Z();a.K(this.W.right)},l.$x=function(a){this.Z();a.K(this.W.bottom)});b&&(c.hs=function(a,b){return Pa(this.n,T(b))<=T(a)},c.Cs=function(a){return Ra(this.n,T(a))},c.Bs=function(a,b){var c=Na(a),d=Na(b),f=La(this.n);return Ra(d,c)?Ra(f,c)&&!Ra(f,d):!(!Ra(f,c)&&Ra(f,d))}, +d.Jy=function(a){a=T(Ja(a));isNaN(a)||this.n===a||(this.n=a,this.A())},d.Fy=function(a){0===a||isNaN(a)||(this.n+=T(a),this.n=La(this.n),this.A())},d.Gy=function(a){0===a||isNaN(a)||(this.n-=T(a),this.n=La(this.n),this.A())},d.Hy=function(a,b){var c=Qa(this.n,T(b),T(a));isNaN(c)||this.n===c||(this.n=c,this.A())},d.Iy=function(a,b,c){a=Qa(this.n,Math.atan2(c-this.y,b-this.x),T(a));isNaN(a)||this.n===a||(this.n=a,this.A())},d.Ry=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||this.n===c|| +(this.n=c,this.A())},l.Zx=function(a){a.K(Ma(this.n))});m||(c.os=function(a,b,c){return gc(this.hb[a],b,c)},c.ny=function(a){return this.hb[a]},c.Cy=function(a,b){var c=this.ja(),d=c.tc();if(!d.length)return!1;var f=d[0],e=f,h=f.hb[b],m,l,n;m=1;for(l=d.length;mh)h=n,e=f;c.Di(e);return!0},c.Ay=function(a){var b,c,d,f,e;if(this.b.vm().Nm){e=this.ja();if(e.xa)for(e.xa=!1,R(e.j),R(e.fa),d=this.j,b=0,c=d.length;ba?a=0:1f.q.index||d.q.index===f.q.index&&d.Jd()>f.Jd())f=d}else if(d.q.indexc)){var d=1===a;this.Ge[c]!==d&&(this.Ge[c]=d,this.Bd(),this.b.ya=!0)}}},d.My=function(a,b,c){if(this.b.F){var d=this.type.xm(a);0>d||(a=this.type.U[d],d=this.Sa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.F.Rv(a.cb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.rb&&(this.b.ya=!0))))}})};Mb=function(){this.Vl=this.Ql=!0;this.type.nj=!0;this.b.ya=!0;var e,q,m=this.Rl;e=0;for(q=m.length;em;case 5:return e>=m;default:return!1}}})();var pc={};function tc(e){this.b=e} +(function(){function e(a){-1===lb.indexOf(a)&&lb.push(a)}function n(a){var b=a.u,c;try{c=b.play()}catch(d){e(a);return}c?c.catch(function(){e(a)}):Ec&&!E.Lc&&e(a)}function q(){var a,b,c,d;Fc||Ab||!v||(m(),"running"===v.state&&(Fc=!0));var f=lb.slice(0);R(lb);if(!M)for(a=0,b=f.length;aa&&(a=0);1a&&(a=0);1 +a&&(a=.01);this.Rk.gain.value=a;this.Qk.gain.value=Math.pow(1/a,.6)*b};L.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=ae;++e)f=e/32768,f=this.shape(f,c,d),this.Fj[32768+e]=f,this.Fj[32768-e-1]=-f};L.prototype.Sc=function(a){this.T.disconnect();this.T.connect(a);this.R.disconnect();this.R.connect(a)};L.prototype.remove=function(){this.la.disconnect(); +this.Rk.disconnect();this.El.disconnect();this.Qk.disconnect();this.T.disconnect();this.R.disconnect()};L.prototype.Ic=function(){return this.la};C.prototype.Sc=function(a){this.na.disconnect();this.na.connect(a)};C.prototype.remove=function(){this.na.disconnect()};C.prototype.Ic=function(){return this.na};S.prototype.Qa=function(){this.na.getFloatFrequencyData(this.Dv);this.na.getByteTimeDomainData(this.Cr);for(var a=this.na.fftSize,b=0,c=this.Ci=0,d=0;bd&&(d=-d), +this.Cib&&(c=b);return c};D.prototype.Xh=function(){return!this.wc&&!this.Id&&!this.lc&&!this.Hf()};D.prototype.Gx=function(){return!this.Id&&!this.lc&&!this.Hf()};D.prototype.Qx=function(){var a=this.volume*ba;isFinite(a)||(a=0);switch(this.aa){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.aa?this.eb.gain.value=a*this.Tg:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a)}};D.prototype.Kj= +function(a){switch(this.aa){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.aa?(this.Tg=a?0:1,this.eb.gain.value=ba*this.volume*this.Tg):this.u.muted!==!!a&&(this.u.muted=!!a)}};D.prototype.Bx=function(){this.Fg=!0;this.Kj(this.Fg||this.$h)};D.prototype.tr=function(a){this.$h=!!a;this.Kj(this.Fg||this.$h)};D.prototype.zl=function(){var a=this.playbackRate;this.Cg&&(a*=E.ig);switch(this.aa){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;case 1:1===this.buffer.aa? +this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};D.prototype.Dx=function(a){switch(this.aa){case 0:a?this.Xh()?(this.Oc=!0,this.u.pause()):this.Oc=!1:this.Oc&&(this.u.play(),this.Oc=!1);break;case 1:a?this.Xh()?(this.Oc=!0,1===this.buffer.aa?(this.kc=this.Am(!0),this.Md&&(this.kc=this.kc%this.Df()),d(this.u)):this.u.pause()):this.Oc=!1:this.Oc&&(1===this.buffer.aa?(this.u=v.createBufferSource(),this.u.buffer=this.buffer.ma,this.u.connect(this.eb), +this.u.onended=this.yn,this.kj=this.u,this.u.loop=this.Md,this.eb.gain.value=ba*this.volume*this.Tg,this.zl(),this.startTime=(this.Cg?E.ib.ba:E.Ce.ba)-this.kc/(this.playbackRate||.001),c(this.u,this.kc,this.Df())):this.u.play(),this.Oc=!1);break;case 2:a?this.Xh()?(this.u.pause(),this.Oc=!0):this.Oc=!1:this.Oc&&(this.Oc=!1,this.u.play())}};G.ea=function(a){this.type=a;E=this.b=a.b;aa=this;this.yc=null;this.ki=-600;this.b.hk&&(mb=!0);!(this.b.Ig||this.b.Th&&(this.b.Om||this.b.dk))||this.b.fk||this.b.La|| +this.b.Qp||mb||(Ec=!0);v=null;"undefined"!==typeof AudioContext?(y=1,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(y=1,v=new webkitAudioContext);this.b.Ig&&v&&(v.close&&v.close(),"undefined"!==typeof AudioContext?v=new AudioContext:"undefined"!==typeof webkitAudioContext&&(v=new webkitAudioContext));1!==y&&(this.b.vc&&"undefined"!==typeof window.Media?y=2:this.b.Rp&&(y=3));2===y&&(J=location.href,a=J.lastIndexOf("/"),-1"!==b&&(a.Nk=b,a.mn=d,a.to=f),null;k=new D(a,b);B.push(k);return k};var Ea=[];ea.prototype.ij=function(a){return kb(ia,a)};G.k=new ea;U.prototype.Play=function(a,b,c,d){!M&&(c=h(c),I=this.tm(this.b.Pj+a[0]+(N?".ogg":".m4a"),d,a[1],0!==b,c))&&(I.fl(!1),I.play(0!==b,c,0,this.Dk),this.Dk=0)};U.prototype.qt=function(a,b,c,d,f){!M&&(d=h(d),I=this.tm(this.b.Pj+b.toLowerCase()+(N?".ogg":".m4a"),f,1===a,0!==c,d))&&(I.fl(!1),I.play(0!==c,d,0,this.Dk),this.Dk=0)}; +U.prototype.Lt=function(a){O(a);var b;a=0;for(b=Ea.length;ae;++e)if(this.ei[e]){this.ei[e]=!1;this.ze=e;this.b.trigger(uc.prototype.k.zo,this);var m=this.b.trigger(uc.prototype.k.Do,this),b=this.b.trigger(uc.prototype.k.Co,this);if(m||b)this.aj[e]=!0}};q.yb=function(){return{triggerKey:this.ze}};q.Sb=function(e){this.ze=e.triggerKey};e.prototype.Bo=function(e){return e===this.ze};e.prototype.Ps=function(){return!0};e.prototype.zo=function(){return!0};e.prototype.Do= +function(e){return e===this.ze};e.prototype.Ys=function(e){return e===this.ze};e.prototype.Co=function(e){return e===this.ze};n.k=new e;n.I=new function(){};n.Ta=new function(){}})();function W(e){this.b=e} +(function(){function e(){if(0===this.em.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.dh?b.drawImage(this.ca,this.Vg,this.Wg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.ca,0,0,this.width,this.height);this.em=a.toDataURL("image/png")}return this.em}function n(){}function q(a){a[0]=0;a[1]=0;a[2]=0;g.push(a)}function m(a,b){return athis.L&&(this.L=0);this.L>=this.Ea.frames.length&&(this.L=this.Ea.frames.length-1);var a=this.Ea.frames[this.L];this.ua.Qi(a.Ok);this.fc=a.fc;this.gc=a.gc;this.uf=this.Ea.speed;this.Qe=this.Ea.Nn;1===this.type.pc.length&&1===this.type.pc[0].frames.length||0===this.uf||(this.b.gh(this),this.Mf=!0);this.Cc?this.Ed.reset():this.Ed=new cb;this.he=this.Ed.ba;this.pf=!0;this.Xd=0;this.Je=!0;this.rg=this.Uo="";this.dp=0;this.yj=-1;this.type.gn();var b,c,d,f,e,g,k,a=0;for(b= +this.type.pc.length;athis.L&&(this.L=0);this.L>=this.Ea.frames.length&&(this.L=this.Ea.frames.length-1);this.uf=a.cas;this.he=a.fs;this.Xd=a.ar;this.Ed.reset();this.Ed.ba=a.at;this.pf=a.hasOwnProperty("ap")?a.ap:!0;this.Je=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Qe=a.rt:this.Qe=this.Ea.Nn;this.Ab=this.Ea.frames[this.L];this.Dj=this.Ab.Ia;this.ua.Qi(this.Ab.Ok);this.fc=this.Ab.fc; +this.gc=this.Ab.gc};l.Pl=function(a){this.L=a?0:this.Ea.frames.length-1;this.pf=!1;this.Uo=this.Ea.name;this.bk=!0;this.b.trigger(W.prototype.k.Os,this);this.b.trigger(W.prototype.k.Ns,this);this.bk=!1;this.Xd=0};l.pj=function(){return this.Ed.ba};l.Qa=function(){this.Ed.add(this.b.Ih(this));this.rg.length&&this.mp();0<=this.yj&&this.np();var a=this.Ed.ba,b=this.Ea,c=b.frames[this.L],d=c.duration/this.uf;this.pf&&a>=this.he+d&&(this.Je?this.L++:this.L--,this.he+=d,this.L>=b.frames.length&&(b.br?(this.Je= +!1,this.L=b.frames.length-2):b.loop?this.L=this.Qe:(this.Xd++,this.Xd>=b.Mn?this.Pl(!1):this.L=this.Qe)),0>this.L&&(b.br?(this.L=1,this.Je=!0,b.loop||(this.Xd++,this.Xd>=b.Mn&&this.Pl(!0))):b.loop?this.L=this.Qe:(this.Xd++,this.Xd>=b.Mn?this.Pl(!0):this.L=this.Qe)),0>this.L?this.L=0:this.L>=b.frames.length&&(this.L=b.frames.length-1),a>this.he+b.frames[this.L].duration/this.uf&&(this.he=a),a=b.frames[this.L],this.mg(c,a),this.b.ya=!0)};l.yp=function(a){var b,c,d;b=0;for(c=this.type.pc.length;bthis.L&&(this.L=0),this.L>=this.Ea.frames.length&&(this.L=this.Ea.frames.length-1),1===this.dp&&(this.L=0),this.pf=!0,this.he=this.Ed.ba,this.Je=!0,this.mg(a,this.Ea.frames[this.L]), +this.b.ya=!0)};l.np=function(){var a=this.Ea.frames[this.L],b=this.L;this.L=K(this.yj);0>this.L&&(this.L=0);this.L>=this.Ea.frames.length&&(this.L=this.Ea.frames.length-1);b!==this.L&&(this.mg(a,this.Ea.frames[this.L]),this.he=this.Ed.ba,this.b.ya=!0);this.yj=-1};l.mg=function(a,b){var c=a.width,d=a.height,f=b.width,e=b.height;c!=f&&(this.width*=f/c);d!=e&&(this.height*=e/d);this.fc=b.fc;this.gc=b.gc;this.ua.Qi(b.Ok);this.A();this.Ab=b;this.Dj=b.Ia;c=0;for(d=this.P.length;cf||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.fc)*this.width,d=d[f][2],d=(d-c.gc)*this.height,c=Math.cos(this.n);f=Math.sin(this.n);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var g=[],x=-2,H=[];n.prototype.Rs=function(a){if(!a)return!1;var c=this.b,d=c.vm(), +f=d.type,e=null;d.J.collmemory?e=d.J.collmemory:(e={},d.J.collmemory=e);d.J.spriteCreatedDestroyCallback||(d.J.spriteCreatedDestroyCallback=!0,c.lj(function(a){var b=d.J.collmemory;a=a.uid;var c,f;for(c in b)b.hasOwnProperty(c)&&(f=b[c],f[0]===a||f[1]===a)&&(q(b[c]),delete b[c])}));var g=f.ja(),k=a.ja(),g=g.tc(),m,l,n,t,A,G,E,aa=this.b.Vd,ia=aa-1,J=c.Db().cc;for(l=0;la.Ca||b.top>a.Ba)this.b.F.deleteTexture(this.zc),this.Nd=this.Wf=this.zc=null}};r.Yf=function(){this.Nd=this.Wf=null;this.b.F&& +this.zc&&this.b.F.deleteTexture(this.zc);this.zc=null};r.pj=function(){this.font=this.Tj+" "+this.Gi.toString()+"pt "+this.vg;this.hg=!0;this.b.ya=!0};r.Gd=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.q.uc()),a.save(),a.scale(c,c));if(this.hg||this.width!==this.$m)this.type.Ga.Qt(this.text,this.bf,a,this.width,this.wo),this.hg=!1,this.$m=this.width;this.Z();var c=b?0:this.Xb.pb,d=b?0:this.Xb.qb;this.b.ud&&(c= +c+.5|0,d=d+.5|0);0===this.n||b||(a.save(),a.translate(c,d),a.rotate(this.n),d=c=0);var e=d+this.height,g=this.In,g=g+this.bn,h,m;1===this.Bl?d+=Math.max(this.height/2-this.bf.length*g/2,0):2===this.Bl&&(d+=Math.max(this.height-this.bf.length*g-2,0));for(m=0;m=e-g);m++);(0!==this.n||b)&&a.restore();this.hi=this.b.Vd};r.rc=function(a){if(!(1> +this.width||1>this.height)){var b=this.hg||this.Eq;this.Eq=!1;var c=this.q.uc(),d=this.q.fb(),e=this.gf,g=c*this.width,h=c*this.height,m=Math.ceil(g),n=Math.ceil(h),k=Math.abs(m),p=Math.abs(n),q=this.b.N/2,r=this.b.M/2;this.Wf||(this.Nd=document.createElement("canvas"),this.Nd.width=k,this.Nd.height=p,this.nk=k,this.mk=p,b=!0,this.Wf=this.Nd.getContext("2d"));if(k!==this.nk||p!==this.mk)this.Nd.width=k,this.Nd.height=p,this.zc&&(a.deleteTexture(this.zc),this.zc=null),b=!0;b&&(this.Wf.clearRect(0, +0,k,p),this.Gd(this.Wf,!0),this.zc||(this.zc=a.Gc(k,p,this.b.Na,this.b.le)),a.Wx(this.Nd,this.zc,this.b.le));this.nk=k;this.mk=p;a.Dc(this.zc);a.bg(this.opacity);a.bd();a.translate(-q,-r);a.Pc();var C=this.Xb,b=this.q.Ma(C.pb,C.qb,!0,!0),k=this.q.Ma(C.pb,C.qb,!1,!0),p=this.q.Ma(C.Vb,C.Wb,!0,!0),q=this.q.Ma(C.Vb,C.Wb,!1,!0),r=this.q.Ma(C.Mb,C.Nb,!0,!0),S=this.q.Ma(C.Mb,C.Nb,!1,!0),P=this.q.Ma(C.Kb,C.Lb,!0,!0),C=this.q.Ma(C.Kb,C.Lb,!1,!0);if(this.b.ud||0===this.n&&0===d)var w=(b+.5|0)-b,D=(k+.5|0)- +k,b=b+w,k=k+D,p=p+w,q=q+D,r=r+w,S=S+D,P=P+w,C=C+D;0===this.n&&0===d?(p=b+m,q=k,r=p,S=k+n,P=b,C=S,e.right=1,e.bottom=1):(e.right=g/m,e.bottom=h/n);a.Rd(b,k,p,q,r,S,P,C,e);a.bd();a.scale(c,c);a.$k(-this.q.fb());a.translate((this.q.za+this.q.Ca)/-2,(this.q.Aa+this.q.Ba)/-2);a.Pc();this.hi=this.b.Vd}};var b=[];h.Ot=function(a){R(b);for(var e="",c,d=0;d=d)n(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=c.measureText(a).width;if(g<=d){n(b);b.push(e());b[0].text=a;b[0].width=g;return}}this.Rt(a,b,c,d,h)}else n(b)};h.Rt=function(f,h,c,d,m){m&&(this.Ot(f),f=b);var g="",n,r,A,k=0;for(A=0;A=h.length&&h.push(e()),g=q(g),r=h[k],r.text=g,r.width=c.measureText(g).width, +k++,g=""):(n=g,g+=f[A],r=c.measureText(g).width,r>=d&&(k>=h.length&&h.push(e()),n=q(n),r=h[k],r.text=n,r.width=c.measureText(n).width,k++,g=f[A],m||" "!==g||(g="")));g.length&&(k>=h.length&&h.push(e()),g=q(g),r=h[k],r.text=g,r.width=c.measureText(g).width,k++);for(A=k;Aa&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.hg=!0,this.b.ya=!0)};h.I=new m;h.Ta=new function(){}})(); +function wc(e){this.b=e} +(function(){var e=wc.prototype;e.ta=function(e){this.Ga=e;this.b=e.b};var n=e.ta.prototype;n.S=function(){this.O||(this.ca=new Image,this.ca.hp=this.eo,this.b.cs(this.ca,this.co),this.Ia=this.pattern=null)};n.Gk=function(){this.O||(this.Ia=null)};n.wn=function(){if(!this.O&&this.j.length){this.Ia||(this.Ia=this.b.F.sk(this.ca,!0,this.b.Na,this.fo));var e,m;e=0;for(m=this.j.length;ea&&(a+=this.ca.width);0>f&&(f+=this.ca.height);e.translate(m,h);e.rotate(this.n);e.translate(a,f);e.fillRect(n-a,b-f,this.width,this.height);e.restore()};n.wf=function(e){this.rc(e)}; +n.rc=function(e){e.Dc(this.Ia);e.bg(this.opacity);var m=this.gf;m.right=this.width/this.ca.width;m.bottom=this.height/this.ca.height;var h=this.Xb;if(this.b.ud){var n=Math.round(this.x)-this.x,b=Math.round(this.y)-this.y;e.Rd(h.pb+n,h.qb+b,h.Vb+n,h.Wb+b,h.Mb+n,h.Nb+b,h.Kb+n,h.Lb+b,m)}else e.Rd(h.pb,h.qb,h.Vb,h.Wb,h.Mb,h.Nb,h.Kb,h.Lb,m)};e.k=new function(){};e.I=new function(){};e.Ta=new function(){}})();function Z(e){this.b=e} +(function(){function e(a){t=a.x;c=a.y;d=a.z}function n(a,b,c,d){var f;f=l.length?l.pop():new q;f.init(a,b,c,d);return f}function q(){this.Vi=this.id=this.Rf=this.Qf=this.y=this.x=this.nl=this.ml=this.Zm=this.time=this.ao=0;this.$i=this.wl=!1}function m(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function h(){}function r(){}var b=Z.prototype;b.ta=function(a){this.Ga=a; +this.b=a.b};b.ta.prototype.S=function(){};b.ea=function(a){this.type=a;this.b=a.b;this.touches=[];this.pn=!1};var a=b.ea.prototype,f={left:0,top:0};a.Gh=function(a){var b,c;b=0;for(c=this.touches.length;bVa(this.ml,this.nl,this.x,this.y)&&(this.wl=!0,a.Wd=this.Vi,a.ih=this.id,a.zg=b,a.b.trigger(Z.prototype.k.Vs,a),a.be=this.x,a.de=this.y,a.b.trigger(Z.prototype.k.Ws,a),a.zg=0)};var g=-1E3,x=-1E3,H=-1E4;q.prototype.zq=function(a, +b){if(!this.wl){var c=Za();333>=c-this.ao&&!this.$i&&15>Va(this.ml,this.nl,this.x,this.y)&&(a.Wd=this.Vi,a.ih=this.id,a.zg=b,666>=c-H&&25>Va(g,x,this.x,this.y)?(a.b.trigger(Z.prototype.k.Ao,a),a.be=this.x,a.de=this.y,a.b.trigger(Z.prototype.k.Ts,a),x=g=-1E3,H=-1E4):(a.b.trigger(Z.prototype.k.mt,a),a.be=this.x,a.de=this.y,a.b.trigger(Z.prototype.k.nt,a),g=this.x,x=this.y,H=c),a.zg=0)}};a.S=function(){this.yw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.zg=this.ih=this.Wd= +this.de=this.be=this.Oo=this.No=this.Mo=this.Yt=this.Xt=this.Wt=this.Kk=this.Jk=this.Ik=0;this.Ux=0!==this.C[0];var a=0c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.Oq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.La?f:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Za(); +this.Wd=this.touches.length;this.ih=a.pointerId;this.touches.push(n(c,b,a.pointerId,this.Wd));this.b.Lc=!0;this.b.trigger(Z.prototype.k.Io,this);this.b.trigger(Z.prototype.k.Ml,this);this.be=c;this.de=b;this.b.trigger(Z.prototype.k.Ll,this);this.b.Lc=!1}};a.Hk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.Gh(a.pointerId);this.Wd=0<=c?this.touches[c].Vi:-1;this.ih=0<=c?this.touches[c].id:-1;this.b.Lc=!0;this.b.trigger(Z.prototype.k.Ho, +this);this.b.trigger(Z.prototype.k.Ko,this);0<=c&&(b||this.touches[c].zq(this,c),100>l.length&&l.push(this.touches[c]),this.touches.splice(c,1));this.b.Lc=!1}};a.Qq=function(a){a.preventDefault&&a.preventDefault();var b=Za(),c,d,e,g;c=0;for(d=a.changedTouches.length;cb-g.time||g.update(b,e.pageX-h.left,e.pageY-h.top,2*(e.pz||e.yz||e.iz||e.lz||0),2*(e.qz||e.zz||e.jz||e.mz|| +0),e.bz||e.xz||e.hz||e.kz||0)}};a.Rq=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.La?f:jQuery(this.b.canvas).offset();Za();this.b.Lc=!0;var c,d,e,g;c=0;for(d=a.changedTouches.length;cl.length&&l.push(this.touches[f]),this.touches.splice(f,1));this.b.Lc=!1};a.pj=function(){return this.b.vc&&0===this.Ik&&0!==d?90*d:this.Ik}; +a.az=function(){return this.b.vc&&0===this.Jk&&0!==c?90*c:this.Jk};a.gz=function(){return this.b.vc&&0===this.Kk&&0!==t?90*t:this.Kk};a.Lw=function(a){m(a)||(this.Rq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.pn=!0)};a.Mw=function(a){this.pn&&!m(a)&&this.Qq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Nw=function(a){a.preventDefault&&this.b.Gp&&!this.b.le&&a.preventDefault();this.b.Gp=!0;m(a)||(this.xn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}), +this.pn=!1)};a.Zi=function(){var a,b,c,d=Za();a=0;for(b=this.touches.length;ac||c>=this.touches.length)a.K(0);else{var d,f,e,g,h;ka(b)?(d=this.b.Kh(0),f=d.scale,e=d.Dd,g=d.Zc,h=d.n,d.scale=1,d.Dd=1,d.Zc=1,d.n=0,a.K(d.zb(this.touches[c].x,this.touches[c].y,!0)),d.scale=f,d.Dd=e,d.Zc=g,d.n=h):(d=la(b)?this.b.Kh(b):this.b.zm(b))?a.K(d.zb(this.touches[c].x,this.touches[c].y,!0)):a.K(0)}};r.prototype.Tt=function(a,b){var c=this.zg;if(0>c||c>=this.touches.length)a.K(0);else{var d, +f,e,g,h;ka(b)?(d=this.b.Kh(0),f=d.scale,e=d.Dd,g=d.$c,h=d.n,d.scale=1,d.Dd=1,d.$c=1,d.n=0,a.K(d.zb(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.Dd=e,d.$c=g,d.n=h):(d=la(b)?this.b.Kh(b):this.b.zm(b))?a.K(d.zb(this.touches[c].x,this.touches[c].y,!1)):a.K(0)}};b.Ta=new r})();function xc(e){this.b=e} +(function(){function e(){}var n=xc.prototype;n.ta=function(e){this.behavior=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var q=n.ea.prototype;q.S=function(){this.So=this.C[0];this.To=this.C[1];this.du=this.C[2];this.cu=this.C[3];this.d.Z();this.Fl=this.d.W.left;this.Il=this.d.W.top;this.Gl=this.b.Pa-this.d.W.left;this.Hl=this.b.Oa-this.d.W.top;this.Xk=this.b.Pa-this.d.W.right;this.uj=this.b.Oa-this.d.W.bottom;this.enabled= +0!==this.C[4]};q.yb=function(){return{xleft:this.Fl,ytop:this.Il,xright:this.Gl,ybottom:this.Hl,rdiff:this.Xk,bdiff:this.uj,enabled:this.enabled}};q.Sb=function(e){this.Fl=e.xleft;this.Il=e.ytop;this.Gl=e.xright;this.Hl=e.ybottom;this.Xk=e.rdiff;this.uj=e.bdiff;this.enabled=e.enabled};q.Qa=function(){if(this.enabled){var e,h=this.d.q,n=this.d,b=this.d.W;0===this.So?(n.Z(),e=h.za+this.Fl-b.left,0!==e&&(n.x+=e,n.A())):1===this.So&&(n.Z(),e=h.Ca-this.Gl-b.left,0!==e&&(n.x+=e,n.A()));0===this.To?(n.Z(), +e=h.Aa+this.Il-b.top,0!==e&&(n.y+=e,n.A())):1===this.To&&(n.Z(),e=h.Ba-this.Hl-b.top,0!==e&&(n.y+=e,n.A()));1===this.du&&(n.Z(),e=h.Ca-this.Xk-b.right,0!==e&&(n.width+=e,0>n.width&&(n.width=0),n.A()));1===this.cu&&(n.Z(),e=h.Ba-this.uj-b.bottom,0!==e&&(n.height+=e,0>n.height&&(n.height=0),n.A()))}};n.k=new function(){};e.prototype.ng=function(e){this.enabled&&0===e?this.enabled=!1:this.enabled||0===e||(this.d.Z(),this.Fl=this.d.W.left,this.Il=this.d.W.top,this.Gl=this.b.Pa-this.d.W.left,this.Hl=this.b.Oa- +this.d.W.top,this.Xk=this.b.Pa-this.d.W.right,this.uj=this.b.Oa-this.d.W.bottom,this.enabled=!0)};n.I=new e;n.Ta=new function(){}})();function yc(e){this.b=e} +(function(){function e(){}var n=yc.prototype;n.ta=function(e){this.behavior=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var q=n.ea.prototype;q.S=function(){var e=this.C[0];this.gd=this.C[1];this.sc=this.C[2];this.hu=0!==this.C[3];this.Un=0!==this.C[4];this.D=Math.cos(this.d.n)*e;this.H=Math.sin(this.d.n)*e;this.Qf=this.d.x;this.Rf=this.d.y;this.Mc=this.d.n;this.ul=0;this.enabled=0!==this.C[5]};q.yb=function(){return{acc:this.gd, +g:this.sc,dx:this.D,dy:this.H,lx:this.Qf,ly:this.Rf,lka:this.Mc,t:this.ul,e:this.enabled}};q.Sb=function(e){this.gd=e.acc;this.sc=e.g;this.D=e.dx;this.H=e.dy;this.Qf=e.lx;this.Rf=e.ly;this.Mc=e.lka;this.ul=e.t;this.enabled=e.e};q.Qa=function(){if(this.enabled){var e=this.b.Ih(this.d),h,n;this.d.n!==this.Mc&&(this.Un&&(h=Va(0,0,this.D,this.H),this.D=Math.cos(this.d.n)*h,this.H=Math.sin(this.d.n)*h),this.Mc=this.d.n);0!==this.gd&&(h=Va(0,0,this.D,this.H),n=0===this.D&&0===this.H?this.d.n:Oa(0,0,this.D, +this.H),h+=this.gd*e,0>h&&(h=0),this.D=Math.cos(n)*h,this.H=Math.sin(n)*h);0!==this.sc&&(this.H+=this.sc*e);this.Qf=this.d.x;this.Rf=this.d.y;if(0!==this.D||0!==this.H)if(this.d.x+=this.D*e,this.d.y+=this.H*e,this.ul+=Va(0,0,this.D*e,this.H*e),this.Un&&(this.d.n=Oa(0,0,this.D,this.H),this.d.A(),this.Mc=this.d.n),this.d.A(),this.hu&&(h=this.b.ob(this.d)))this.b.re(this.d,h),h=Va(0,0,this.D,this.H),n=this.b.ku(this.d,this.Qf,this.Rf),this.D=Math.cos(n)*h,this.H=Math.sin(n)*h,this.d.x+=this.D*e,this.d.y+= +this.H*e,this.d.A(),this.Un&&(this.Mc=this.d.n=n,this.d.A()),this.b.ad(this.d,this.D/h,this.H/h,Math.max(2.5*h*e,30))||this.b.jr(this.d,100)}};n.k=new function(){};e.prototype.Gt=function(e){var h=Oa(0,0,this.D,this.H);this.D=Math.cos(h)*e;this.H=Math.sin(h)*e};e.prototype.xt=function(e){e=T(e);var h=Va(0,0,this.D,this.H);this.D=Math.cos(e)*h;this.H=Math.sin(e)*h};e.prototype.ng=function(e){this.enabled=1===e};n.I=new e;n.Ta=new function(){}})();function zc(e){this.b=e} +(function(){function e(){}var n=zc.prototype;n.ta=function(e){this.behavior=e;this.b=e.b};n.ta.prototype.S=function(){};n.ea=function(e,h){this.type=e;this.behavior=e.behavior;this.d=h;this.b=e.b};var q=n.ea.prototype;q.S=function(){this.mb=null;this.Mk=-1;this.mode=this.Mc=this.rl=this.Ug=this.qe=this.Ei=0;var e=this;this.Cc||(this.vi=function(h){e.Ai(h)});this.b.lj(this.vi)};q.yb=function(){return{uid:this.mb?this.mb.uid:-1,pa:this.Ei,pd:this.qe,msa:this.Ug,tsa:this.rl,lka:this.Mc,m:this.mode}}; +q.Sb=function(e){this.Mk=e.uid;this.Ei=e.pa;this.qe=e.pd;this.Ug=e.msa;this.rl=e.tsa;this.Mc=e.lka;this.mode=e.m};q.jd=function(){-1===this.Mk?this.mb=null:this.mb=this.b.Ef(this.Mk);this.Mk=-1};q.Ai=function(e){this.mb==e&&(this.mb=null)};q.Yf=function(){this.mb=null;this.b.lr(this.vi)};q.Qa=function(){};q.Zi=function(){if(this.mb){this.Mc!==this.d.n&&(this.Ug=La(this.Ug+(this.d.n-this.Mc)));var e=this.d.x,h=this.d.y;if(3===this.mode||4===this.mode){var n=Va(this.d.x,this.d.y,this.mb.x,this.mb.y); +if(n>this.qe||4===this.mode&&nthis.sc&&(this.Wa*=-1,this.Xa*=-1,this.sc=Math.abs(this.sc))};m.S=function(){this.Qg=this.C[0];this.gd=this.C[1];this.tg=this.C[2];this.di=this.C[3];this.rm=this.sc=this.C[4];this.Ak=this.C[5];this.im=0!==this.C[6];this.Wm=this.C[7]/1E3;this.ru=1===this.C[8];this.enabled=0!==this.C[9];this.nh=!1;this.oh=this.b.xe(this.d);this.dn=-1;this.gg=0;this.yg=T(90); +this.Zr();var e=this;this.ru&&!this.b.La&&(jQuery(document).keydown(function(m){e.un(m)}),jQuery(document).keyup(function(m){e.vn(m)}));this.Cc||(this.vi=function(m){e.Ai(m)});this.b.lj(this.vi);this.d.J.isPlatformBehavior=!0};m.yb=function(){return{ii:this.Im,lfx:this.Ye,lfy:this.Ze,lfo:this.Eb?this.Eb.uid:-1,am:this.ld,en:this.enabled,fall:this.Cf,ft:this.Sj,dx:this.D,dy:this.H,ms:this.Qg,acc:this.gd,dec:this.tg,js:this.di,g:this.sc,g1:this.rm,mf:this.Ak,wof:this.nh,woj:this.oh?this.oh.uid:-1,ga:this.yg, +edj:this.im,cdj:this.uh,dj:this.Bh,sus:this.Wm}};m.Sb=function(e){this.Im=e.ii;this.Ye=e.lfx;this.Ze=e.lfy;this.cn=e.lfo;this.ld=e.am;this.enabled=e.en;this.Cf=e.fall;this.Sj=e.ft;this.D=e.dx;this.H=e.dy;this.Qg=e.ms;this.gd=e.acc;this.tg=e.dec;this.di=e.js;this.sc=e.g;this.rm=e.g1;this.Ak=e.mf;this.nh=e.wof;this.dn=e.woj;this.yg=e.ga;this.im=e.edj;this.uh=e.cdj;this.Bh=e.dj;this.Wm=e.sus;this.Ti=this.jl=this.il=this.Jg=this.Kg=this.Ki=this.ji=!1;this.gg=0;this.Zr()};m.jd=function(){-1===this.cn? +this.Eb=null:this.Eb=this.b.Ef(this.cn);-1===this.dn?this.oh=null:this.oh=this.b.Ef(this.dn)};m.Ai=function(e){this.Eb==e&&(this.Eb=null)};m.Yf=function(){this.Eb=null;this.b.lr(this.vi)};m.un=function(e){switch(e.which){case 38:e.preventDefault();this.Kg=!0;break;case 37:e.preventDefault();this.ji=!0;break;case 39:e.preventDefault(),this.Ki=!0}};m.vn=function(e){switch(e.which){case 38:e.preventDefault();this.Jg=this.Kg=!1;break;case 37:e.preventDefault();this.ji=!1;break;case 39:e.preventDefault(), +this.Ki=!1}};m.Zf=function(){this.Kg=this.Ki=this.ji=!1};m.pj=function(){return 0>this.sc?-1:1};m.Up=function(){var e=null,m=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.Wa;this.d.y+=this.Xa;this.d.A();if(this.Eb&&this.b.Ub(this.d,this.Eb)&&(!this.b.lo(this.Eb.type,rc)||this.Eb.J.solidEnabled))return this.d.x=b,this.d.y=a,this.d.A(),this.Eb;(e=this.b.ob(this.d))||0!==this.Cf||(m=this.b.xe(this.d,!0));this.d.x=b;this.d.y=a;this.d.A();if(e){if(this.b.Ub(this.d,e))return null;this.Hh=!1;return e}if(m&& +m.length){a=e=0;for(b=m.length;ethis.Ak&&(this.H=this.Ak)),H&&(this.Jg=!0));this.nh=!!A;q==a&&(0>this.D?(this.D+=this.tg*e,0this.D&& +(this.D=0)));q&&!a&&(this.D=0this.D?this.D+(this.gd+this.tg)*e:this.D+this.gd*e);this.D>this.Qg?this.D=this.Qg:this.D<-this.Qg&&(this.D=-this.Qg);q=!1;0!==this.D&&(l=this.d.x,g=this.d.y,m=this.D*e*this.hf,b=this.D*e*this.jf,this.d.x+=this.hf*(1this.D?1:-1),this.jf*(0>this.D?1:-1),m,!1)?!A||f||this.Hh||(l=this.d.x,g=this.d.y,this.d.x+=this.Wa,this.d.y+=this.Xa,this.b.ob(this.d)?this.b.ad(this.d,-this.Wa,-this.Xa,3,!1)||(this.d.x=l,this.d.y=g,this.d.A()):(this.d.x=l,this.d.y= +g,this.d.A())):(this.d.x=l,this.d.y=g,this.d.A()),f||(this.D=0)):!n&&!H&&Math.abs(this.H)this.H?1:-1),this.Xa*(0>this.H?1:-1),m,f,b)?(this.Eb=b,this.Ye=b.x,this.Ze=b.y,(this.Hh=f)&&(q=!0),this.H=0):(this.d.x=l,this.d.y=g,this.d.A(),this.nh=!0,f||(this.H=0)))}3!==this.ld&&0this.d.opacity?this.d.opacity=0:1=this.behavior.Si&&a + + + + + DeLucaRun + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + +

Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. What is a browser? +

Microsoft Internet Explorer
+ Mozilla Firefox
+ Google Chrome
+ Apple Safari

+
+ +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/digilabsoftware.altervista.org/DeLucaRun4/jquery-3.4.1.min.js b/digilabsoftware.altervista.org/DeLucaRun4/jquery-3.4.1.min.js new file mode 100644 index 0000000..a1c07fd --- /dev/null +++ b/digilabsoftware.altervista.org/DeLucaRun4/jquery-3.4.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0