diff --git a/PairOrNotPair/appmanifest.json b/PairOrNotPair/appmanifest.json new file mode 100644 index 0000000..80442c4 --- /dev/null +++ b/PairOrNotPair/appmanifest.json @@ -0,0 +1,28 @@ +{ + "name": "PairOrNotPair-Demo", + "short_name": "PairOrNotPair-Demo", + "start_url": "index.html", + "display": "fullscreen", + "orientation": "any", + "icons": [{ + "src": "icon-16.png", + "sizes": "16x16", + "type": "image/png" + }, { + "src": "icon-32.png", + "sizes": "32x32", + "type": "image/png" + }, { + "src": "icon-128.png", + "sizes": "128x128", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "144x144", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "256x256", + "type": "image/png" + }] +} diff --git a/PairOrNotPair/bg.mp4 b/PairOrNotPair/bg.mp4 new file mode 100644 index 0000000..26833b0 Binary files /dev/null and b/PairOrNotPair/bg.mp4 differ diff --git a/PairOrNotPair/c2runtime.js b/PairOrNotPair/c2runtime.js new file mode 100644 index 0000000..59ec002 --- /dev/null +++ b/PairOrNotPair/c2runtime.js @@ -0,0 +1,455 @@ +// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net +'use strict';var aa,ba,ea,B,fa,ia,ka,I,la,ma,na,oa,pa,qa,sa,ta,ua,va,xa,za,Aa,L,Ba,Ca,Da,Ea,Fa,V,Ga,Ia,Ja,Ka,La,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,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(f){return f.__proto__}:function(f){return f.constructor.prototype}); +(function(){function f(a,b,g,d){this.set(a,b,g,d)}function p(){this.Qc=this.Pc=this.Sc=this.Rc=this.gd=this.fd=this.Jc=this.Ic=0}function h(a,b,g,d){ad?b:d):(v=ag?b:g):gd?a:d):(v=bg?a:g)}function l(){this.items=this.Td=null;this.Xh=0;ga&&(this.Td=new Set);this.jh=[];this.Oe=!0}function c(a){Q[C++]=a}function q(){this.U=this.Ik=this.y=this.ll=0}function e(a){this.Wg=[];this.uo=this.wo=this.xo=this.vo=0;this.Fi(a)}function b(a,b){this.rl= +a;this.ql=b;this.cells={}}function w(a,b){this.rl=a;this.ql=b;this.cells={}}function d(a,b,g){var d;return x.length?(d=x.pop(),d.Xl=a,d.x=b,d.y=g,d):new aa(a,b,g)}function a(a,b,g){this.Xl=a;this.x=b;this.y=g;this.wb=new ba}function g(a,b,g){var d;return z.length?(d=z.pop(),d.Xl=a,d.x=b,d.y=g,d):new ea(a,b,g)}function n(a,b,g){this.Xl=a;this.x=b;this.y=g;this.wb=[];this.Cg=!0;this.Qd=new ba;this.nh=!1}function k(a,b){return a.Cd-b.Cd}B=function(a){window.console&&window.console.log&&window.console.log(a)}; +fa=function(a){window.console&&window.console.error&&window.console.error(a)};ia=function(a){return"undefined"===typeof a};ka=function(a){return"number"===typeof a};I=function(a){return"string"===typeof a};la=function(a){return 0b;b<<=1)a=a|a>>b;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,b){return aw)return!1;bw)return!1;e=k-a+c-g;n=u-b+m-d;a=g-a;b=d-b;k=c-k;u=m-u;m=na(b*k-u*a);return na(k*n-u*e)>m?!1:na(a*n-b*e)<=m};f.prototype.set=function(a,b,g,d){this.left=a;this.top=b;this.right=g;this.bottom=d};f.prototype.uh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=function(){return this.right-this.left};f.prototype.height= +function(){return this.bottom-this.top};f.prototype.offset=function(a,b){this.left+=a;this.top+=b;this.right+=a;this.bottom+=b;return this};f.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)};f.prototype.Uc=function(a,b){return a>=this.left&&a<=this.right&&b>=this.top&&b<=this.bottom};f.prototype.zh=function(a){return this.left===a.left&&this.top===a.top&&this.right=== +a.right&&this.bottom===a.bottom};ua=f;p.prototype.Dk=function(a){this.Ic=a.left;this.Jc=a.top;this.fd=a.right;this.gd=a.top;this.Rc=a.right;this.Sc=a.bottom;this.Pc=a.left;this.Qc=a.bottom};p.prototype.Wq=function(a,b){if(0===b)this.Dk(a);else{var g=Math.sin(b),d=Math.cos(b),k=a.left*g,u=a.top*g,c=a.right*g,g=a.bottom*g,m=a.left*d,e=a.top*d,n=a.right*d,d=a.bottom*d;this.Ic=m-u;this.Jc=e+k;this.fd=n-u;this.gd=e+c;this.Rc=n-g;this.Sc=d+c;this.Pc=m-g;this.Qc=d+k}};p.prototype.offset=function(a,b){this.Ic+= +a;this.Jc+=b;this.fd+=a;this.gd+=b;this.Rc+=a;this.Sc+=b;this.Pc+=a;this.Qc+=b;return this};var v=0,P=0;p.prototype.zo=function(a){h(this.Ic,this.fd,this.Rc,this.Pc);a.left=v;a.right=P;h(this.Jc,this.gd,this.Sc,this.Qc);a.top=v;a.bottom=P};p.prototype.Uc=function(a,b){var g=this.Ic,d=this.Jc,k=this.fd-g,u=this.gd-d,c=this.Rc-g,m=this.Sc-d,e=a-g,n=b-d,w=k*k+u*u,t=k*c+u*m,u=k*e+u*n,v=c*c+m*m,r=c*e+m*n,f=1/(w*v-t*t),k=(v*u-t*r)*f,w=(w*r-t*u)*f;if(0<=k&&0k+w)return!0;k=this.Pc-g;u=this.Qc-d;w=k* +k+u*u;t=k*c+u*m;u=k*e+u*n;f=1/(w*v-t*t);k=(v*u-t*r)*f;w=(w*r-t*u)*f;return 0<=k&&0k+w};va=p;xa=function(a,b){for(var g in b)b.hasOwnProperty(g)&&(a[g]=b[g]);return a};za=function(a,b){var g,d;b=qa(b);if(!(0>b||b>=a.length)){g=b;for(d=a.length-1;gg?g:a};V=function(a){return a/(180/pa)};Ga=function(a){return 180/pa*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*pa;0>a&&(a+=2*pa);return a};Ka=function(a){return Ia(Ga(a))};La=function(a){return Ja(V(a))};Na=function(a,b,g,d){return Math.atan2(d-b,g-a)};Oa=function(a,b){if(a===b)return 0;var g=Math.sin(a),d=Math.cos(a),k=Math.sin(b),u=Math.cos(b),g=g*k+d*u;return 1<=g?0:-1>=g?pa:Math.acos(g)}; +Pa=function(a,b,g){var d=Math.sin(a),k=Math.cos(a),u=Math.sin(b),c=Math.cos(b);return Math.acos(d*u+k*c)>g?0=d*k-g*u};Ra=function(a,b,g,d,k,u){if(0===g)return u?a:b;var c=Math.sin(g);g=Math.cos(g);a-=d;b-=k;var m=a*c;a=a*g-b*c;b=b*g+m;return u?a+d:b+k};Sa=function(a,b,g,d){a=g-a;b=d-b;return Math.sqrt(a*a+b*b)};Ta=function(a,b){return!a!==!b};Ua=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0; +return!1};Xa=function(a){for(var b in a)a.hasOwnProperty(b)&&delete a[b]};var r=+new Date;Ya=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()-r};var m=!1,t=m=!1,da=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent), +m=!m&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),da=window.c2ejecta);var ga=!m&&!da&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;l.prototype.contains=function(a){return this.oe()?!1:ga?this.Td.has(a):this.items&&this.items.hasOwnProperty(a)};l.prototype.add=function(a){if(ga)this.Td.has(a)||(this.Td.add(a),this.Oe=!1);else{var b=a.toString(),g=this.items;g?g.hasOwnProperty(b)||(g[b]=a,this.Xh++,this.Oe=!1):(this.items={},this.items[b]= +a,this.Xh=1,this.Oe=!1)}};l.prototype.remove=function(a){if(!this.oe())if(ga)this.Td.has(a)&&(this.Td["delete"](a),this.Oe=!1);else if(this.items){a=a.toString();var b=this.items;b.hasOwnProperty(a)&&(delete b[a],this.Xh--,this.Oe=!1)}};l.prototype.clear=function(){this.oe()||(ga?this.Td.clear():(this.items=null,this.Xh=0),L(this.jh),this.Oe=!0)};l.prototype.oe=function(){return 0===this.count()};l.prototype.count=function(){return ga?this.Td.size:this.Xh};var Q=null,C=0;l.prototype.dx=function(){if(!this.Oe){if(ga)L(this.jh), +Q=this.jh,C=0,this.Td.forEach(c),Q=null,C=0;else{var a=this.jh;L(a);var b,g=0,d=this.items;if(d)for(b in d)d.hasOwnProperty(b)&&(a[g++]=d[b])}this.Oe=!0}};l.prototype.sf=function(){this.dx();return this.jh};ba=l;new ba;Za=function(a,b){ga?$a(a,b.Td):ab(a,b.sf())};$a=function(a,b){var g,d,k,u;d=g=0;for(k=a.length;gg&&(g=u),ck&&(k=c);this.vo=b;this.wo=g;this.xo=d;this.uo=k};e.prototype.Dk=function(a,b,g){this.Wg.length=8;this.rk=4;var d=this.Wg;d[0]=a.left-b;d[1]=a.top-g;d[2]=a.right-b;d[3]=a.top-g;d[4]=a.right-b;d[5]=a.bottom-g;d[6]=a.left-b;d[7]=a.bottom-g;this.nl=a.right-a.left;this.ml=a.bottom-a.top;this.Ga()};e.prototype.yt=function(a,b,g){if(this.nl!==a||this.ml!==b||this.Co!==g){this.nl=a;this.ml=b;this.Co=g;var d,k,u,c,m,e=0,n=1,w=this.Fq,t=this.Wg;0!==g&&(e=Math.sin(g),n=Math.cos(g));g=0;for(u=this.rk;g< +u;g++)d=2*g,k=d+1,c=w[d]*a,m=w[k]*b,t[d]=c*n-m*e,t[k]=m*n+c*e;this.Ga()}};e.prototype.Uc=function(a,b){var g=this.Wg;if(a===g[0]&&b===g[1])return!0;var d,k,u,c=this.rk,m=this.vo-110,e=this.xo-101,n=this.wo+131,w=this.uo+120,t,v,r=0,f=0;for(d=0;dx.length&&x.push(m),this.cells[d][u]=null);if(g)for(d=g.left,k=g.right;d<=k;++d)for(u=g.top,c=g.bottom;u<=c;++u)b&&b.Uc(d,u)||this.We(d,u,!0).em(a)};b.prototype.Hq= +function(a,b){var g,d,k,u,c,m;g=this.Yb(a.left);k=this.Zb(a.top);d=this.Yb(a.right);for(c=this.Zb(a.bottom);g<=d;++g)for(u=k;u<=c;++u)(m=this.We(g,u,!1))&&m.dump(b)};eb=b;w.prototype.We=function(a,b,d){var k;k=this.cells[a];return k?(k=k[b])?k:d?(k=g(this,a,b),this.cells[a][b]=k):null:d?(k=g(this,a,b),this.cells[a]={},this.cells[a][b]=k):null};w.prototype.Yb=function(a){return qa(a/this.rl)};w.prototype.Zb=function(a){return qa(a/this.ql)};w.prototype.update=function(a,b,g){var d,k,u,c,m;if(b)for(d= +b.left,k=b.right;d<=k;++d)for(u=b.top,c=b.bottom;u<=c;++u)if(!g||!g.Uc(d,u))if(m=this.We(d,u,!1))m.remove(a),m.oe()&&(m.reset(),1E3>z.length&&z.push(m),this.cells[d][u]=null);if(g)for(d=g.left,k=g.right;d<=k;++d)for(u=g.top,c=g.bottom;u<=c;++u)b&&b.Uc(d,u)||this.We(d,u,!0).em(a)};w.prototype.Hq=function(a,b,g,d,k){var u,c;a=this.Yb(a);b=this.Zb(b);g=this.Yb(g);for(u=this.Zb(d);a<=g;++a)for(d=b;d<=u;++d)(c=this.We(a,d,!1))&&c.dump(k)};w.prototype.Xv=function(a){var b,g,d,k,u;b=a.left;d=a.top;g=a.right; +for(k=a.bottom;b<=g;++b)for(a=d;a<=k;++a)if(u=this.We(b,a,!1))u.Cg=!1};fb=w;var x=[];a.prototype.oe=function(){return this.wb.oe()};a.prototype.em=function(a){this.wb.add(a)};a.prototype.remove=function(a){this.wb.remove(a)};a.prototype.dump=function(a){Ca(a,this.wb.sf())};aa=a;var z=[];n.prototype.oe=function(){if(!this.wb.length)return!0;if(this.wb.length>this.Qd.count())return!1;this.Il();return!0};n.prototype.em=function(a){this.Qd.contains(a)?(this.Qd.remove(a),this.Qd.oe()&&(this.nh=!1)):this.wb.length? +(this.wb[this.wb.length-1].Kd()>a.Kd()&&(this.Cg=!1),this.wb.push(a)):(this.wb.push(a),this.Cg=!0)};n.prototype.remove=function(a){this.Qd.add(a);this.nh=!0;30<=this.Qd.count()&&this.Il()};n.prototype.Il=function(){this.nh&&(this.Qd.count()===this.wb.length?this.reset():(Za(this.wb,this.Qd),this.Qd.clear(),this.nh=!1))};n.prototype.mu=function(){this.Cg||(this.wb.sort(k),this.Cg=!0)};n.prototype.reset=function(){L(this.wb);this.Cg=!0;this.Qd.clear();this.nh=!1};n.prototype.dump=function(a){this.Il(); +this.mu();this.wb.length&&a.push(this.wb)};ea=n;var H="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":H[a-1]};hb=function(a,b,g){if(g)switch(a.Qb=g.ONE,a.Mb=g.ONE_MINUS_SRC_ALPHA,b){case 1:a.Qb=g.ONE;a.Mb=g.ONE;break;case 3:a.Qb=g.ONE;a.Mb=g.ZERO;break;case 4:a.Qb=g.ONE_MINUS_DST_ALPHA;a.Mb=g.ONE;break;case 5:a.Qb=g.DST_ALPHA;a.Mb=g.ZERO;break;case 6:a.Qb=g.ZERO;a.Mb=g.SRC_ALPHA; +break;case 7:a.Qb=g.ONE_MINUS_DST_ALPHA;a.Mb=g.ZERO;break;case 8:a.Qb=g.ZERO;a.Mb=g.ONE_MINUS_SRC_ALPHA;break;case 9:a.Qb=g.DST_ALPHA;a.Mb=g.ONE_MINUS_SRC_ALPHA;break;case 10:a.Qb=g.ONE_MINUS_DST_ALPHA,a.Mb=g.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};lb=function(a,b){return"string"!==typeof a||"string"!==typeof b||a.length!==b.length?!1:a===b?!0:a.toLowerCase()===b.toLowerCase()};mb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body|| +lb(a.tagName,"canvas")?!0:!1}})();var jc="undefined"!==typeof Float32Array?Float32Array:Array;function kc(f){var p=new jc(3);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2]);return p}function lc(f){var p=new jc(16);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2],p[3]=f[3],p[4]=f[4],p[5]=f[5],p[6]=f[6],p[7]=f[7],p[8]=f[8],p[9]=f[9],p[10]=f[10],p[11]=f[11],p[12]=f[12],p[13]=f[13],p[14]=f[14],p[15]=f[15]);return p} +function mc(f,p){p[0]=f[0];p[1]=f[1];p[2]=f[2];p[3]=f[3];p[4]=f[4];p[5]=f[5];p[6]=f[6];p[7]=f[7];p[8]=f[8];p[9]=f[9];p[10]=f[10];p[11]=f[11];p[12]=f[12];p[13]=f[13];p[14]=f[14];p[15]=f[15]}function nc(f,p){var h=p[0],l=p[1];p=p[2];f[0]*=h;f[1]*=h;f[2]*=h;f[3]*=h;f[4]*=l;f[5]*=l;f[6]*=l;f[7]*=l;f[8]*=p;f[9]*=p;f[10]*=p;f[11]*=p} +function oc(f,p,h,l){l||(l=lc());var c,q,e,b,w,d,a,g,n=f[0],k=f[1];f=f[2];q=h[0];e=h[1];c=h[2];h=p[1];d=p[2];n===p[0]&&k===h&&f===d?(f=l,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(h=n-p[0],d=k-p[1],a=f-p[2],g=1/Math.sqrt(h*h+d*d+a*a),h*=g,d*=g,a*=g,p=e*a-c*d,c=c*h-q*a,q=q*d-e*h,(g=Math.sqrt(p*p+c*c+q*q))?(g=1/g,p*=g,c*=g,q*=g):q=c=p=0,e=d*q-a*c,b=a*p-h*q,w=h*c-d*p,(g=Math.sqrt(e*e+b*b+w*w))?(g=1/g,e*=g,b*=g,w*=g):w=b=e=0, +l[0]=p,l[1]=e,l[2]=h,l[3]=0,l[4]=c,l[5]=b,l[6]=d,l[7]=0,l[8]=q,l[9]=w,l[10]=a,l[11]=0,l[12]=-(p*n+c*k+q*f),l[13]=-(e*n+b*k+w*f),l[14]=-(h*n+d*k+a*f),l[15]=1)} +(function(){function f(b,c,d){this.pe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ia=!!d;this.Hj=this.Oh=!1;this.yl=0;this.Yk=1;this.Nn=1E3;this.nx=(this.Nn-this.Yk)/32768;this.ol=kc([0,0,100]);this.Dp=kc([0,0,0]);this.yr=kc([0,1,0]);this.Si=kc([1,1,1]);this.No=!0;this.ak=lc();this.Fc=lc();this.tm=lc();this.xl=lc();this.F=b;this.version=0===this.F.getParameter(this.F.VERSION).indexOf("WebGL 2")?2:1;this.ip()}function p(b,c,d){this.F=b;this.Gi= +c;this.name=d;this.Zc=b.getAttribLocation(c,"aPos");this.hf=b.getAttribLocation(c,"aTex");this.Bp=b.getUniformLocation(c,"matP");this.Xj=b.getUniformLocation(c,"matMV");this.Jg=b.getUniformLocation(c,"opacity");this.Am=b.getUniformLocation(c,"colorFill");this.Cp=b.getUniformLocation(c,"samplerFront");this.ei=b.getUniformLocation(c,"samplerBack");this.Rf=b.getUniformLocation(c,"destStart");this.Qf=b.getUniformLocation(c,"destEnd");this.gi=b.getUniformLocation(c,"seconds");this.Cm=b.getUniformLocation(c, +"pixelWidth");this.Bm=b.getUniformLocation(c,"pixelHeight");this.di=b.getUniformLocation(c,"layerScale");this.ci=b.getUniformLocation(c,"layerAngle");this.hi=b.getUniformLocation(c,"viewOrigin");this.fi=b.getUniformLocation(c,"scrollPos");this.Bv=!!(this.Cm||this.Bm||this.gi||this.ei||this.Rf||this.Qf||this.di||this.ci||this.hi||this.fi);this.Lp=this.Mp=-999;this.$j=1;this.Hp=this.Gp=0;this.Jp=this.Fp=this.Ep=1;this.Pp=this.Op=this.Np=this.Rp=this.Qp=this.Ip=0;this.rm=[];this.Kp=lc();this.Jg&&b.uniform1f(this.Jg, +1);this.Am&&b.uniform4f(this.Am,1,1,1,1);this.Cp&&b.uniform1i(this.Cp,0);this.ei&&b.uniform1i(this.ei,1);this.Rf&&b.uniform2f(this.Rf,0,0);this.Qf&&b.uniform2f(this.Qf,1,1);this.di&&b.uniform1f(this.di,1);this.ci&&b.uniform1f(this.ci,0);this.hi&&b.uniform2f(this.hi,0,0);this.fi&&b.uniform2f(this.fi,0,0);this.gi&&b.uniform1f(this.gi,0);this.Hf=!1}function h(b,c){return b[0]===c[0]&&b[1]===c[1]&&b[2]===c[2]&&b[3]===c[3]&&b[4]===c[4]&&b[5]===c[5]&&b[6]===c[6]&&b[7]===c[7]&&b[8]===c[8]&&b[9]===c[9]&& +b[10]===c[10]&&b[11]===c[11]&&b[12]===c[12]&&b[13]===c[13]&&b[14]===c[14]&&b[15]===c[15]}function l(b,c){this.type=b;this.G=c;this.F=c.F;this.Ld=this.Wb=this.qq=0;this.Y=this.ed=null;this.Xq=[]}var c=lc();f.prototype.ip=function(){var b=this.F,c;this.wp=1;this.Nf=this.df=null;this.gj=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.Ia?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)): +b.disable(b.DEPTH_TEST);this.xp=b.ONE;this.vp=b.ONE_MINUS_SRC_ALPHA;this.Wk=new Float32Array(8E3*(this.Ia?3:2));this.Kk=new Float32Array(16E3);this.Aq=new Float32Array(32E3);this.Tm=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.Tm);b.bufferData(b.ARRAY_BUFFER,this.Aq.byteLength,b.DYNAMIC_DRAW);this.Qi=Array(4);this.Li=Array(4);for(c=0;4>c;c++)this.Qi[c]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.Qi[c]),b.bufferData(b.ARRAY_BUFFER,this.Wk.byteLength,b.DYNAMIC_DRAW),this.Li[c]=b.createBuffer(), +b.bindBuffer(b.ARRAY_BUFFER,this.Li[c]),b.bufferData(b.ARRAY_BUFFER,this.Kk.byteLength,b.DYNAMIC_DRAW);this.fe=0;this.Ev=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.Ev);for(var d=new Uint16Array(12E3),a=c=0;12E3>c;)d[c++]=a,d[c++]=a+1,d[c++]=a+2,d[c++]=a,d[c++]=a+2,d[c++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,d,b.STATIC_DRAW);this.Um=this.dh=this.Fe=0;this.Va=[];c=this.Ia?"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}";d=this.vh({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}"},c,"");this.Va.push(d);d=this.vh({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(d);d=this.vh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"");this.Va.push(d);d=this.vh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, +c,"");this.Va.push(d);for(var g in pc)pc.hasOwnProperty(g)&&this.Va.push(this.vh(pc[g],c,g));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Ne=[];this.ee=0;this.Nb=!1;this.Jo=this.Zh=-1;this.pg=null;this.Gl=b.createFramebuffer();this.lj=this.tk=null;this.to=!1;this.Ia&&(this.lj=b.createRenderbuffer());this.pf=kc([0,0,0]);this.Sp=b.getParameter(b.ALIASED_POINT_SIZE_RANGE)[1];2048"===c.name&&b.vertexAttribPointer(c.Zc,4,b.FLOAT,!1,0,0));if(0"!==c.name&& +b.vertexAttribPointer(c.Zc,this.Ia?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.Li[this.fe]);b.bufferSubData(b.ARRAY_BUFFER,0,this.Kk.subarray(0,this.dh));c&&0<=c.hf&&""!==c.name&&b.vertexAttribPointer(c.hf,2,b.FLOAT,!1,0,0)}for(var d,b=0,c=this.ee;bd||0>a)){var g=this.wc();g.type=7;g.Wb=1;g.Y||(g.Y=lc());g.Y[0]=b;g.Y[1]=c;g.Y[2]=d;g.Y[3]=a;this.Nb=!1}};f.prototype.Sq=function(b){if(this.Ia&&(b=!!b,this.Oh!==b)){var c=this.wc();c.type=14;c.Wb=b?1:0;this.Nb=!1;this.Oh=b;this.tk=null;this.Oh?this.ic(2): +this.ic(0)}};f.prototype.Rq=function(b){if(this.Ia){var c=this.wc();c.type=13;c.Wb=b?1:0;this.Nb=!1}};f.prototype.Vo=function(){mc(this.tm,c);this.ad();this.Mc();var b=this.width/2,e=this.height/2;this.Ai(-b,e,b,e,b,-e,-b,-e);mc(c,this.Fc);this.Mc()};f.prototype.Qq=function(b,c,d){this.ic(3);var a=this.wc();a.type=12;a.Y||(a.Y=lc());a.Y[0]=b;a.Y[1]=c;a.Y[2]=d;a.Y[3]=1;this.Nb=!1};f.prototype.Qw=function(){this.ic(0)};f.prototype.Dw=function(){this.ic(2)};f.prototype.uw=function(){this.Ue();this.F.flush()}; +var q=[],e={};f.prototype.Dt=function(){L(q);e={}};f.prototype.zm=function(b,c,d){var a;a=!1;c=!!c;var g=b.src+","+a+","+c+(a?",undefined":""),n=null;if("undefined"!==typeof b.src&&e.hasOwnProperty(g))return n=e[g],n.bj++,n;this.Ue();var k=this.F,f=la(b.width)&&la(b.height),n=k.createTexture();k.bindTexture(k.TEXTURE_2D,n);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var p=k.RGBA,r=k.RGBA,m=k.UNSIGNED_BYTE;if(d&&!this.pe)switch(d){case 1:r=p=k.RGB;break;case 2:m=k.UNSIGNED_SHORT_4_4_4_4;break; +case 3:m=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=p=k.RGB,m=k.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!f&&a){d=document.createElement("canvas");d.width=ma(b.width);d.height=ma(b.height);var t=d.getContext("2d");"undefined"!==typeof t.imageSmoothingEnabled?t.imageSmoothingEnabled=c:(t.webkitImageSmoothingEnabled=c,t.mozImageSmoothingEnabled=c,t.msImageSmoothingEnabled=c);t.drawImage(b,0,0,b.width,b.height,0,0,d.width,d.height);k.texImage2D(k.TEXTURE_2D,0,p,r,m,d)}else k.texImage2D(k.TEXTURE_2D,0, +p,r,m,b);a?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));c?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),(f||2<=this.version)&&this.No?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER, +k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.df=null;n.yf=b.width;n.xf=b.height;n.bj=1;n.Bo=g;q.push(n);return e[g]=n};f.prototype.zc=function(b,c,d,a){this.Ue();var g=this.F;this.pe&&(a=!1);var e=g.createTexture();g.bindTexture(g.TEXTURE_2D,e);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,b,c,0,g.RGBA,a?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);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);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,d?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,d?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.df=null;e.yf=b;e.xf=c;q.push(e);return e};f.prototype.kx=function(b,c,d){this.Ue();var a=this.F;this.pe&&(d=!1);a.bindTexture(a.TEXTURE_2D,c);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA, +d?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(g){console&&console.error&&console.error("Error updating WebGL texture: ",g)}a.bindTexture(a.TEXTURE_2D,null);this.df=null};f.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.bj&&1=b?a[3]:256>=b?a[2]:512>=b?a[1]:a[0]}function h(){try{return!!window.indexedDB}catch(a){return!1}} +function l(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function c(a,b,g,c){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=l;d.onerror=c;d.onsuccess=function(d){d=d.target.result;d.onerror=c;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:b}).onsuccess=g}}catch(k){c(k)}}function q(a,b,g){try{var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=l;c.onerror=g;c.onsuccess=function(c){c=c.target.result;c.onerror=g;var d=c.transaction(["saves"]).objectStore("saves").get(a); +d.onsuccess=function(){d.result?b(d.result.data):b(null)}}}catch(d){g(d)}}function e(){B("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1k?(k*=b,5===m?(e=k*g/this.Xa,1e&&(e=1/Math.ceil(1/e)),k=this.Xa*e/ +g,e=this.Wa*e/g,c=(a-k)/2,d=(b-e)/2,a=k,b=e):(c=(a-k)/2,a=k)):(e=a/k,5===m?(e=e*g/this.Wa,1e&&(e=1/Math.ceil(1/e)),k=this.Xa*e/g,e=this.Wa*e/g,c=(a-k)/2,d=(b-e)/2,a=k):d=(b-e)/2,b=e)):k&&0===m&&(c=Math.floor((a-this.Xa)/2),d=Math.floor((b-this.Wa)/2),a=this.Xa,b=this.Wa),2>m&&(this.ph=g),this.fj=Math.round(a),this.xh=Math.round(b),this.width=Math.round(a*g),this.height=Math.round(b*g),this.V=!0,this.Er?(this.L=this.width,this.K=this.height,this.Ac=!0):this.widthk&&(this.K=this.L/m)):3===m&&(k=this.Xa/this.Wa,m=this.Hg/this.Gg,m>k?this.L=this.K*m:mg;)g++,a=n.shift(),this.mn(a[0],a[1])};f.prototype.lx=function(b,g){b.cocoonLazyLoad=!0;b.onerror=function(g){a=b.Ao=!0;console&&console.error&&console.error("Error loading image '"+b.src+"': ",g)};this.td?b.src=g:b.src||("undefined"!==typeof XAPKReader?XAPKReader.get(g,function(a){b.src=a},function(c){a=b.Ao=!0;console&& +console.error&&console.error("Error extracting image '"+g+"' from expansion file: ",c)}):(b.crossOrigin="anonymous",this.xw(b,g)));this.lh.push(b)};f.prototype.Tu=function(a){var b,g;b=0;for(g=this.lh.length;b=m)m=5E4;a+=m;e.src&&(e.complete||e.loaded)&& +!e.Ao?b+=m:c=!1}c&&this.rw&&this.lg&&(v||(this.lg.Tw(),v=!0),g=this.lg.gv(),b+=g,gthis.gf&&(this.Yc||500<=c&& +this.yp!=this.yd)){b.clearRect(0,0,k,e);var c=k/2,e=e/2,k=0===this.gf&&this.ff.Zj.complete,m=40*g,n=0,t=80*g,f;if(k){var r=this.ff.Zj,t=r.width*g;f=r.height*g;m=t/2;n=f/2;b.drawImage(r,qa(c-m),qa(e-n),t,f)}1>=this.gf?(c=qa(c-m)+.5,e=qa(e+(n+(k?12*g:0)))+.5,b.fillStyle=a?"red":"DodgerBlue",b.fillRect(c,e,Math.floor(t*this.yd),6*g),b.strokeStyle="black",b.strokeRect(c,e,t,6*g),b.strokeStyle="white",b.strokeRect(c-1*g,e-1*g,t+2*g,8*g)):2===this.gf&&(b.font=this.td?"12pt ArialMT":"12pt Arial",b.fillStyle= +a?"#f00":"#999",b.iz="middle",g=Math.round(100*this.yd)+"%",k=b.measureText?b.measureText(g):null,b.fillText(g,c-(k?k.width:0)/2,e));this.yp=this.yd}else if(4===this.gf){this.hu(b);w?w(function(){d.go()}):setTimeout(function(){d.go()},16);return}}setTimeout(function(){d.go()},this.Yc?10:100)}}};var r=-1,m="undefined"===typeof cr_is_preview?200:0,t=!0,da=!1,ga=0,Q=0,C="undefined"===typeof cr_is_preview?3E3:0,x=null,z=null,H=0;f.prototype.hu=function(b){if(!P){for(var g=Math.ceil(this.width),c=Math.ceil(this.height), +d=this.ff.Zj,k=this.ff.qw,e=this.ff.mx,n=0;4>n;++n)if(!d[n].complete||!k[n].complete||!e[n].complete)return;0===H&&(r=Date.now());var n=Date.now(),f=!1,v=b,h,l;t||da?(b.clearRect(0,0,g,c),x&&x.width===g&&x.height===c||(x=document.createElement("canvas"),x.width=g,x.height=c,z=x.getContext("2d")),v=z,f=!0,t&&1===H&&(r=Date.now())):b.globalAlpha=1;v.fillStyle="#333333";v.fillRect(0,0,g,c);256=C&&!da&&1<=this.yd&&(da=!0,Q=n);if(da&&n-Q>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.yd&&500>Date.now()-r)P=!0,da=t=!1,this.ff=z=x=null;++H}};f.prototype.zv=function(){this.Db&&(this.canvas.parentNode.removeChild(this.Db),this.Db=this.Rm=null);this.Fk=Date.now();this.Pf=Ya();var a,b,g;if(this.En)for(a=0,b=this.D.length;aa||2===this.$b&&bb&&(b=0),this.Cf=b/=1E3,.51/this.Vp&&(this.Cf=1/this.Vp));this.Oj=a;this.Bf=this.Cf*this.eh;this.Bb.add(this.Bf);this.Ge.add(b);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Jj)&&!this.Dc;2<=this.$b||a&&0b||2===c&&ga++;)this.Mo(this.qh);a=0;for(b=this.ke.length;ab.jj.length&&b.jj.push(a)};f.prototype.Ho=function(a,b,g,c){if(a.ca){var d=qa(Math.random()*a.bk.length);return this.Ho(a.bk[d],b,g,c)}return a.Vc?this.Re(a.Vc,b,!1,g,c,!1):null};var O=[];f.prototype.Re=function(a,b,g,c,d,k){var e,m,n,t;if(!a)return null;var f=this.D[a[1]],v=f.La.cf;if(this.Wh&&v&&!f.lm||v&&!this.G&&11===a[0][11])return null;var r=b;v||(b=null);var h;f.jj.length?(h=f.jj.pop(),h.Fb= +!0,f.La.ua.call(h,f)):(h=new f.La.ua(f),h.Fb=!1);!g||k||this.ue.hasOwnProperty(a[2].toString())?h.uid=this.li++:h.uid=a[2];this.ue[h.uid.toString()]=h;h.Gq=this.bq++;h.Jf=f.e.length;e=0;for(m=this.Gd.length;ea&&(a=0);a>=this.Ba.T.length&&(a=this.Ba.T.length-1);return this.Ba.T[a]};f.prototype.tl=function(a){var b,g;b=0;for(g=a.length;b=this.Dm.length&&this.Dm.push([])};f.prototype.mw=function(){this.Yj--};f.prototype.Yo=function(){return this.Dm[this.Yj]};f.prototype.Ym=function(a){this.oj++;this.oj>=this.Cl.length&&this.Cl.push(new Tb);var b=this.Sb();b.reset(a);return b};f.prototype.Bq=function(){this.oj--};f.prototype.Sb=function(){return this.Cl[this.oj]};f.prototype.Zo=function(a,b){for(var g,c,d,e,k,m;b;){g=0;for(c=b.dd.length;ge||e>=a.kb.length||(k=d[c],null===k&&(k=NaN),a.kb[e]=k));if(n.cf){e=b.w;a.n.da!==e.l&&(d=a.n,a.n=this.Ba.Bj(e.l),a.n?(d.Yg(a,!0),a.n.oh(a,!0),a.la(),a.n.Ei(0)):(a.n=d,g||this.$d(a))); +a.x=e.x;a.y=e.y;a.width=e.w;a.height=e.h;a.Cd=e.zi;a.j=e.hasOwnProperty("a")?e.a:0;a.opacity=e.hasOwnProperty("o")?e.o:1;a.qc=e.hasOwnProperty("hX")?e.hX:.5;a.rc=e.hasOwnProperty("hY")?e.hY:.5;a.visible=e.hasOwnProperty("v")?e.v:!0;a.rh=e.hasOwnProperty("ce")?e.ce:!0;a.ki=e.hasOwnProperty("mts")?e.mts:-1;a.Jb=e.hasOwnProperty("bm")?e.bm:0;a.sh=gb(a.Jb);this.F&&hb(a,a.Jb,this.F);a.la();if(e.hasOwnProperty("fx"))for(g=0,d=e.fx.length;gk||(a.Ke[k]=e.fx[g].active,a.Sa[k]= +e.fx[g].params);a.Bd()}if(m=b.behs)for(c in m)m.hasOwnProperty(c)&&(g=this.Yu(a,parseInt(c,10)),0>g||a.X[g].Pb(m[c]));b.data&&a.Pb(b.data)};f.prototype.Ro=function(a,b,g){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(b,g)},g)};f.prototype.Ru=function(a,b){this.Ro("data.js",function(g){var c=new FileReader;c.onload=function(b){a(b.target.result)};c.onerror=b;c.readAsText(g)},b)};var U=[],R=0;f.prototype.Fm=function(){if(U.length&&!(8<=R)){R++;var a= +U.shift();this.Ot(a.filename,a.Vw,a.nu)}};f.prototype.So=function(a,b,g){var c=this;U.push({filename:a,Vw:function(a){R--;c.Fm();b(a)},nu:function(a){R--;c.Fm();g(a)}});this.Fm()};f.prototype.Ot=function(a,b,g){this.Ro(a,function(a){var g=new FileReader;g.onload=function(a){b(a.target.result)};g.readAsArrayBuffer(a)},g)};f.prototype.Su=function(a,b,g){var c="",d=a.toLowerCase(),e=d.substr(d.length-4),d=d.substr(d.length-5);".mp4"===e?c="video/mp4":".webm"===d?c="video/webm":".m4a"===e?c="audio/mp4": +".mp3"===e&&(c="audio/mpeg");this.So(a,function(a){a=URL.createObjectURL(new Blob([a],{type:c}));b(a)},g)};f.prototype.Gv=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.mn=function(a,b){this.Kj&&!this.Gv(b)?this.Su(b,function(b){a.src=b},function(a){alert("Failed to load image: "+a)}):a.src=b};f.prototype.zk=function(a,b){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=b:(a.webkitImageSmoothingEnabled=b,a.mozImageSmoothingEnabled= +b,a.msImageSmoothingEnabled=b)};Vb=function(a){return new f(document.getElementById(a))};Wb=function(a,b){return new f({dc:!0,width:a,height:b})};window.cr_createRuntime=Vb;window.cr_createDCRuntime=Wb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.hl=!0;document.body.appendChild(a);a=new f(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 f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,p){var h=window.cr_getC2Runtime();h&&h.Kt(f,p)}; +window.cr_sizeCanvas=function(f,p){if(0!==f&&0!==p){var h=window.cr_getC2Runtime();h&&h.setSize(f,p)}};window.cr_setSuspended=function(f){var p=window.cr_getC2Runtime();p&&p.setSuspended(f)}; +(function(){function f(a,b){this.b=a;this.Ef=null;this.scrollX=this.b.Xa/2;this.scrollY=this.b.Wa/2;this.scale=1;this.j=0;this.ug=!0;this.name=b[0];this.iw=b[1];this.hw=b[2];this.width=b[1];this.height=b[2];this.ur=b[3];this.Yq=b[4];this.da=b[5];var c=b[6],d,e;this.T=[];this.Mh=[];d=0;for(e=c.length;d=this.T.length&&(m=this.T.length-1);h.n=this.T[m];-1===h.n.e.indexOf(h)&&h.n.e.push(h);h.n.fg=!0}if(!e)for(a=0,c=this.T.length;ac?h.siblings.push(r.e[c]):r.Vc&&(f=this.b.Re(r.Vc,h.n,!0,h.x,h.y,!0),this.b.Ib(),r.Sk(),h.siblings.push(f),q.push(f)));a=0;for(c= +this.Ze.length;athis.width-b&&(a=this.width-b);athis.height-b&&(a=this.height-b);aE&&(E=0);0>F&&(F=0);M>R&&(M=R);N>u&&(N=u);0>y&&(y=0);0>A&&(A=0);ja>R&&(ja=R);Y>u&&(Y=u);J.left=E/R;J.top=1-F/u;J.right=M/R;J.bottom=1-N/u}else J.left=D.left=0,J.top=D.top=0,J.right=D.right=1,J.bottom=D.bottom=1;S=c&&(a.xi(e[0].gb)||0!==z||0!==S||1!==c.opacity||c.type.La.Xp)|| +b&&!c&&1!==b.opacity;a.Pq();if(S){q[G]||(q[G]=a.zc(R,u,this.b.Ta));if(q[G].yf!==R||q[G].xf!==u)a.deleteTexture(q[G]),q[G]=a.zc(R,u,this.b.Ta);a.ic(0);a.bd(q[G]);U=Y-A;a.clearRect(y,u-A-U,ja-y,U);c?c.Xc(a):(a.Hc(this.b.nb),a.$g(b.opacity),a.ad(),a.translate(-K,-wa),a.Mc(),a.lf(E,N,M,N,M,F,E,F,J));D.left=D.top=0;D.right=D.bottom=1;c&&(H=J.top,J.top=J.bottom,J.bottom=H);G=1;O=0}a.$g(1);z=e.length-1;var ya=a.Wm(e[z].gb)||!b&&!c&&!this.b.Ac;w=H=0;for(x=e.length;wc||(b&&this.Nc&&a.fc&&a.fc.right>=a.fc.left&&(a.Ga(),this.Gb.update(a,a.fc,null),a.fc.set(0,0,-1,-1)),c===this.e.length-1?this.e.pop():(za(this.e,c),this.Ei(c)),this.zd=!0)};h.prototype.oh=function(a, +b){a.Cd=this.e.length;this.e.push(a);b&&this.Nc&&a.fc&&a.la();this.zd=!0};h.prototype.sw=function(a){this.e.unshift(a);this.Ei(0)};h.prototype.$v=function(a,b,c){var d=a.Kd();b=b.Kd();za(this.e,d);dthis.Aa||c.top>this.za||(b.globalCompositeOperation=a.sh,a.je(b))}};h.prototype.Uk=function(){this.ie=!0;var a=this.Rb(0,0,!0,!0),b=this.Rb(0,0,!1,!0);this.ie=!1;this.b.ze&&(a=Math.round(a),b=Math.round(b)); +this.vk(a,b,null)};h.prototype.vk=function(a,b,c){var d=this.pc();this.wa=a;this.xa=b;this.Aa=a+1/d*this.b.L;this.za=b+1/d*this.b.K;this.wa>this.Aa&&(a=this.wa,this.wa=this.Aa,this.Aa=a);this.xa>this.za&&(a=this.xa,this.xa=this.za,this.za=a);a=this.jb();0!==a&&(c&&(c.translate(this.b.L/2,this.b.K/2),c.rotate(-a),c.translate(this.b.L/-2,this.b.K/-2)),this.Ee.set(this.wa,this.xa,this.Aa,this.za),this.Ee.offset((this.wa+this.Aa)/-2,(this.xa+this.za)/-2),this.or.Wq(this.Ee,a),this.or.zo(this.Ee),this.Ee.offset((this.wa+ +this.Aa)/2,(this.xa+this.za)/2),this.wa=this.Ee.left,this.xa=this.Ee.top,this.Aa=this.Ee.right,this.za=this.Ee.bottom)};h.prototype.qg=function(a){if(this.Sd=this.xj){this.b.nb||(this.b.nb=a.zc(this.b.L,this.b.K,this.b.Ta));if(this.b.nb.yf!==this.b.L||this.b.nb.xf!==this.b.K)a.deleteTexture(this.b.nb),this.b.nb=a.zc(this.b.L,this.b.K,this.b.Ta);a.bd(this.b.nb)}this.ie=!0;var b=this.Rb(0,0,!0,!0),d=this.Rb(0,0,!1,!0);this.ie=!1;this.b.ze&&(b=Math.round(b),d=Math.round(d));this.vk(b,d,null);b=this.pc(); +a.ad();a.scale(b,b);a.wk(-this.jb());a.translate((this.wa+this.Aa)/-2,(this.xa+this.za)/-2);a.Mc();this.Nc?(this.zb.left=this.Gb.Yb(this.wa),this.zb.top=this.Gb.Zb(this.xa),this.zb.right=this.Gb.Yb(this.Aa),this.zb.bottom=this.Gb.Zb(this.za),this.zd||!this.zb.zh(this.Ig)?(c(this.se),b=this.Ul(),this.zd=!1,this.Ig.uh(this.zb)):b=this.se):b=this.e;for(var e,f=null,d=b.length-1;0<=d;--d)e=b[d],e!==f&&(this.fu(b[d],a),f=e);this.Nc&&(this.se=b);this.Ad||(this.ul=this.b.Df++,a.Ak(this.ul),a.Qq(1,1,1),a.Vo(), +a.Dw())};h.prototype.Xc=function(a){var b=0,d=0;if(this.Sd=this.xj||1!==this.opacity||0this.Aa||c.top>this.za||(b.Ak(a.Df),a.Br?this.gu(a,b):(b.ic(0),b.nf(a.Qb,a.Mb),a.Xc(b)))}};h.prototype.fu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ga();var c=a.Ja;c.rightthis.Aa||c.top>this.za||(a.Df=this.b.Df++, +0===a.Jb&&1===a.opacity&&a.Be&&a.qg&&(b.Ak(a.Df),a.qg(b)))}};h.prototype.gu=function(a,b){var c=a.na[0].gb,d=a.na[0].index,e=this.pc();if(1!==a.na.length||b.Wm(c)||b.vw(c)||(a.j||a.n.jb())&&b.xi(c)||1!==a.opacity||a.type.La.Xp)this.ub.bn(b,this,a,this.Sd?this.b.nb:this.ub.Gh()),b.ad(),b.scale(e,e),b.wk(-this.jb()),b.translate((this.wa+this.Aa)/-2,(this.xa+this.za)/-2),b.Mc();else{b.ic(c);b.nf(a.Qb,a.Mb);b.qk(c)&&(this.b.V=!0);var f=0,h=0,m=0,t=0;b.xi(c)&&(t=a.Ja,f=this.mb(t.left,t.top,!0),h=this.mb(t.left, +t.top,!1),m=this.mb(t.right,t.bottom,!0),t=this.mb(t.right,t.bottom,!1),f=f/windowWidth,h=1-h/windowHeight,m=m/windowWidth,t=1-t/windowHeight);var p;a.ab&&a.ab.hb?(p=a.ab.hb,c=1/p.width,p=1/p.height):(c=1/a.width,p=1/a.height);b.ah(this.Sd?this.b.nb:this.ub.Gh(),c,p,f,h,m,t,e,this.jb(),this.wa,this.xa,(this.wa+this.Aa)/2,(this.xa+this.za)/2,this.b.Bb.U,a.Sa[d]);a.Xc(b)}};h.prototype.Rb=function(a,b,c,d){var e=this.b.devicePixelRatio;this.b.yg&&(a*=e,b*=e);var e=this.b.xq,f=this.b.yq,e=(this.ub.scrollX- +e)*this.ve+e,f=(this.ub.scrollY-f)*this.we+f,h=e,m=f,t=1/this.pc(!d);d?(h-=this.b.L*t/2,m-=this.b.K*t/2):(h-=this.b.width*t/2,m-=this.b.height*t/2);h+=a*t;m+=b*t;b=this.jb();0!==b&&(h-=e,m-=f,a=Math.cos(b),b=Math.sin(b),d=h*a-m*b,m=m*a+h*b,h=d+e,m+=f);return c?h:m};h.prototype.mb=function(a,b,c){var d=this.b.xq,e=this.b.yq,d=(this.ub.scrollX-d)*this.ve+d,f=(this.ub.scrollY-e)*this.we+e,e=d,h=f,m=this.jb();if(0!==m){a-=d;b-=f;var t=Math.cos(-m),m=Math.sin(-m),p=a*t-b*m;b=b*t+a*m;a=p+d;b+=f}d=1/this.pc(!1); +e-=this.b.L*d/2;h-=this.b.K*d/2;e=(a-e)/d;return c?e:(b-h)/d};h.prototype.yb=function(){var a,b,c,d={s:this.scale,a:this.j,vl:this.wa,vt:this.xa,vr:this.Aa,vb:this.za,v:this.visible,bc:this.ld,t:this.Ad,px:this.ve,py:this.we,o:this.opacity,zr:this.Ie,fx:[],cg:this.wh,instances:[]};a=0;for(b=this.P.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=v.length&&(v.length=a.length+1);v[a.length]||(v[a.length]=[]);e=v[a.length];b=0;for(c=e.length;b=b.length&&(b.length=this.Sf+1),b[this.Sf]=a):this.data=a};g.prototype.cp=function(){var a=this.b.Yo();return!this.parent||this.Vh||!a||this.Mj?this.data:this.Sf>=a.length||"undefined"===typeof a[this.Sf]?this.q:a[this.Sf]};g.prototype.qb=function(){!this.parent||this.Vh||this.Mj||this.Ck(this.q)};Ub=g;n.prototype.toString=function(){return"include:"+this.Lh.toString()};n.prototype.Ya=function(){this.Lh=this.b.Dl[this.Dv];this.sheet.hp.add(this);this.Ma=h(this.Ma);for(var a=this.parent;a;)a.group&& +a.dj.push(this),a=a.parent;this.Ar()};n.prototype.qb=function(){this.parent&&this.b.yi(this.b.D);this.Lh.Zl||this.Lh.qb(!0);this.parent&&this.b.Vg(this.b.D)};n.prototype.Ar=function(){for(var a=this.parent;a;){if(a.group&&!a.Ih){this.A=!1;return}a=a.parent}this.A=!0};dc=n;k.prototype.reset=function(a){this.oc=a;this.kc=this.mc=0;L(this.gr);this.Bl=this.Of=!1};Tb=k})(); +(function(){function f(c,b){this.$c=c;this.b=c.b;this.type=b[0];this.get=[this.Du,this.zu,this.Mu,this.Pu,this.ou,this.Nu,this.Hu,this.wu,this.Gu,this.Lu,this.pu,this.Ku,this.xu,this.Iu,this.Eu,this.Fu,this.Au,this.Bu,this.vu,this.Ou,this.Ju,this.Cu,this.uu,this.yu][this.type];var f=null;this.te=this.aa=this.Ua=this.Ab=this.Mk=this.second=this.first=this.value=null;this.md=-1;this.sd=null;this.Cr=-1;this.Ff=this.Pi=null;this.Zg=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first= +new bc(c,b[1]);break;case 18:this.first=new bc(c,b[1]);this.second=new bc(c,b[2]);this.Mk=new bc(c,b[3]);break;case 19:this.Ab=this.b.Je(b[1]);this.Ab!==W.prototype.Ea.random&&this.Ab!==W.prototype.Ea.Bt||this.$c.Vq();this.Ua=[];this.aa=[];3===b.length?(f=b[2],this.Ua.length=f.length+1):this.Ua.length=1;break;case 20:this.te=this.b.D[b[1]];this.md=-1;this.Ab=this.b.Je(b[2]);this.Zg=b[3];sc&&this.Ab===sc.prototype.Ea.Hr&&this.$c.Vq();b[4]?this.sd=new bc(c,b[4]):this.sd=null;this.Ua=[];this.aa=[];6=== +b.length?(f=b[5],this.Ua.length=f.length+1):this.Ua.length=1;break;case 21:this.te=this.b.D[b[1]];this.Zg=b[2];b[3]?this.sd=new bc(c,b[3]):this.sd=null;this.Cr=b[4];break;case 22:this.te=this.b.D[b[1]];this.te.Aj(b[2]);this.md=this.te.Ml(b[2]);this.Ab=this.b.Je(b[3]);this.Zg=b[4];b[5]?this.sd=new bc(c,b[5]):this.sd=null;this.Ua=[];this.aa=[];7===b.length?(f=b[6],this.Ua.length=f.length+1):this.Ua.length=1;break;case 23:this.Pi=b[1],this.Ff=null}this.$c.Zv(this.te);4<=this.type&&17>=this.type&&(this.first= +new bc(c,b[1]),this.second=new bc(c,b[2]));if(f){var d,a;d=0;for(a=f.length;d=b||n<=-b)n%=b;0>n&&(n+=b);g.apply(v[n],f)};f.prototype.uu=function(c){var b=this.te,f=this.Ua,d=this.aa,a=this.sd,g=this.md,n=this.Ab,k=this.$c.Ce,v=b.ya(),l=v.qd();if(!l.length)if(v.ea.length)l=v.ea;else{this.Zg?c.Ub(""):c.Ca(0);return}f[0]=c;c.Vf=b;c=p();h(d,f,c);a&&(a.get(c),c.sb()&&(k=c.data,l=b.e));--q;d=l.length;if(k>=d||k<=-d)k%=d;0>k&&(k+=d);k=l[k];l=0;b.ca&&(l=k.type.tg[b.le]);n.apply(k.X[g+l],f)};f.prototype.Cu=function(c){var b=this.sd,f=this.te,d=this.Cr,a=this.$c.Ce,g=f.ya(),h= +g.qd();if(!h.length)if(g.ea.length)h=g.ea;else{this.Zg?c.Ub(""):c.Ca(0);return}if(b){g=p();b.get(g);if(g.sb()){a=g.data;h=f.e;0!==h.length&&(a%=h.length,0>a&&(a+=h.length));a=f.Rl(a);f=a.kb[d];I(f)?c.Ub(f):c.H(f);--q;return}--q}b=h.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=h[a];h=0;f.ca&&(h=a.type.sj[f.le]);f=a.kb[d+h];I(f)?c.Ub(f):c.H(f)};f.prototype.Du=function(c){c.type=ec.hg;c.data=this.value};f.prototype.zu=function(c){c.type=ec.gg;c.data=this.value};f.prototype.Mu=function(c){c.type=ec.String; +c.data=this.value};f.prototype.Pu=function(c){this.first.get(c);c.sb()&&(c.data=-c.data)};f.prototype.ou=function(c){this.first.get(c);var b=p();this.second.get(b);c.sb()&&b.sb()&&(c.data+=b.data,b.Ag()&&c.Kg());--q};f.prototype.Nu=function(c){this.first.get(c);var b=p();this.second.get(b);c.sb()&&b.sb()&&(c.data-=b.data,b.Ag()&&c.Kg());--q};f.prototype.Hu=function(c){this.first.get(c);var b=p();this.second.get(b);c.sb()&&b.sb()&&(c.data*=b.data,b.Ag()&&c.Kg());--q};f.prototype.wu=function(c){this.first.get(c); +var b=p();this.second.get(b);c.sb()&&b.sb()&&(c.data/=b.data,c.Kg());--q};f.prototype.Gu=function(c){this.first.get(c);var b=p();this.second.get(b);c.sb()&&b.sb()&&(c.data%=b.data,b.Ag()&&c.Kg());--q};f.prototype.Lu=function(c){this.first.get(c);var b=p();this.second.get(b);c.sb()&&b.sb()&&(c.data=Math.pow(c.data,b.data),b.Ag()&&c.Kg());--q};f.prototype.pu=function(c){this.first.get(c);var b=p();this.second.get(b);b.Dg()||c.Dg()?this.ru(c,b):this.qu(c,b);--q};f.prototype.ru=function(c,b){c.Dg()&& +b.Dg()?this.tu(c,b):this.su(c,b)};f.prototype.tu=function(c,b){c.data+=b.data};f.prototype.su=function(c,b){c.Dg()?c.data+=(Math.round(1E10*b.data)/1E10).toString():c.Ub(c.data.toString()+b.data)};f.prototype.qu=function(c,b){c.Ca(c.data&&b.data?1:0)};f.prototype.Ku=function(c){this.first.get(c);var b=p();this.second.get(b);c.sb()&&b.sb()&&(c.data||b.data?c.Ca(1):c.Ca(0));--q};f.prototype.vu=function(c){this.first.get(c);c.data?this.second.get(c):this.Mk.get(c)};f.prototype.xu=function(c){this.first.get(c); +var b=p();this.second.get(b);c.Ca(c.data===b.data?1:0);--q};f.prototype.Iu=function(c){this.first.get(c);var b=p();this.second.get(b);c.Ca(c.data!==b.data?1:0);--q};f.prototype.Eu=function(c){this.first.get(c);var b=p();this.second.get(b);c.Ca(c.datab.data?1:0);--q};f.prototype.Bu=function(c){this.first.get(c); +var b=p();this.second.get(b);c.Ca(c.data>=b.data?1:0);--q};f.prototype.yu=function(c){var b=this.Ff.cp();ka(b)?c.H(b):c.Ub(b)};bc=f;l.prototype.Ag=function(){return this.type===ec.gg};l.prototype.sb=function(){return this.type===ec.hg||this.type===ec.gg};l.prototype.Dg=function(){return this.type===ec.String};l.prototype.Kg=function(){this.Ag()||(this.Dg()&&(this.data=parseFloat(this.data)),this.type=ec.gg)};l.prototype.Ca=function(c){this.type=ec.hg;this.data=Math.floor(c)};l.prototype.H=function(c){this.type= +ec.gg;this.data=c};l.prototype.Ub=function(c){this.type=ec.String;this.data=c};l.prototype.$f=function(c){ka(c)?(this.type=ec.gg,this.data=c):I(c)?(this.type=ec.String,this.data=c.toString()):(this.type=ec.hg,this.data=0)};ac=l;ec={hg:0,gg:1,String:2}})();function W(f){this.b=f;this.jc=[]} +W.prototype.yb=function(){var f={},p,h,l,c,q,e,b,w;f.waits=[];var d=f.waits,a;p=0;for(h=this.jc.length;pe)){var b,f,d,a= +this.b.Sb(),g;c.length?g=c.pop():g={Vb:{},Ma:[]};g.Al=!1;g.time=this.b.Bb.U+e;g.br="";g.rn=!1;g.rg=a.oc;g.kc=a.kc+1;e=0;for(b=this.b.D.length;ea&&(b=a);c.H(b)};h.prototype.Bf=function(c){c.H(this.b.Bf)};h.prototype.eh=function(c){c.H(this.b.eh)};h.prototype.time=function(c){c.H(this.b.Bb.U)};h.prototype.Wd=function(c){c.Ca(this.b.Wd)};h.prototype.dk=function(c){c.Ca(this.b.dk)}; +h.prototype.Kl=function(c){c.Ca(this.b.Kl)};h.prototype.j=function(c,b,f,d,a){c.H(Ga(Na(b,f,d,a)))};h.prototype.Ct=function(c,b,f,d){bd?c.H(d):c.H(b)};h.prototype.left=function(c,b,f){c.Ub(I(b)?b.substr(0,f):"")};h.prototype.right=function(c,b,f){c.Ub(I(b)?b.substr(b.length-f):"")};h.prototype.replace=function(c,b,f,d){I(b)&&I(f)&&I(d)?c.Ub(b.replace(new RegExp(cb(f),"gi"),d)):c.Ub(I(b)?b:"")};h.prototype.trim=function(c,b){c.Ub(I(b)?b.trim():"")};h.prototype.Bt=function(c){var b=qa(Math.random()* +(arguments.length-1));c.$f(arguments[b+1])};h.prototype.wl=function(c){c.H(this.b.wl/1E3)};h.prototype.Wj=function(c){c.H(this.b.Wj)};l.Ea=new h;l.Fw=function(){var e,b,f,d,a,g,h=this.b.Sb();e=0;for(f=this.jc.length;ethis.b.Bb.U)continue;h.oc=d.rg;h.kc=d.kc;h.mc=0;for(b in d.Vb)d.Vb.hasOwnProperty(b)&&(a=this.b.D[parseInt(b,10)].ya(),g=d.Vb[b],a.Fa=g.xk,Ba(a.e,g.ne),a=g,L(a.ne),q.push(a));d.rg.Ew();this.b.tl(d.Ma);d.Al=!0}b=e=0; +for(f=this.jc.length;ea.Aa||b.top>a.za)},a.Lx=function(){this.Ga();var a=this.Ja,b=this.b.Ba;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Xx=function(a,b,c){var d=this.ya(), +g=d.qd();if(!g.length)return!1;var e=g[0],f=e,h=Sa(e.x,e.y,b,c),n,p,l;n=1;for(p=g.length;nh)h=l,f=e;d.vi(f);return!0},g.Ey=function(a){this.x!==a&&(this.x=a,this.la())},g.Fy=function(a){this.y!==a&&(this.y=a,this.la())},g.vy=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.la()},g.wy=function(a,b){var c=a.dv(this);if(c){var d;c.Ql?(d=c.Ql(b,!0),c=c.Ql(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.la()}}, +g.Px=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.la())},g.Ox=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.la())},n.$n=function(a){a.H(this.x)},n.ao=function(a){a.H(this.y)},n.Bf=function(a){a.H(this.b.Gf(this))});q&&(a.Ax=function(a,b){return fc(this.width,a,b)},a.xx=function(a,b){return fc(this.height,a,b)},g.Ys=function(a){this.width!==a&&(this.width=a,this.la())},g.ny=function(a){this.height!==a&&(this.height=a,this.la())},g.xy= +function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.la()},n.My=function(a){a.H(this.width)},n.Fx=function(a){a.H(this.height)},n.tx=function(a){this.Ga();a.H(this.Ja.left)},n.vx=function(a){this.Ga();a.H(this.Ja.top)},n.ux=function(a){this.Ga();a.H(this.Ja.right)},n.rx=function(a){this.Ga();a.H(this.Ja.bottom)});e&&(a.Fr=function(a,b){return Oa(this.j,V(b))<=V(a)},a.Yr=function(a){return Qa(this.j,V(a))},a.Xr=function(a,b){var c=La(a),d=La(b),g=Ja(this.j);return Qa(d, +c)?Qa(g,c)&&!Qa(g,d):!(!Qa(g,c)&&Qa(g,d))},g.iy=function(a){a=V(Ia(a));isNaN(a)||this.j===a||(this.j=a,this.la())},g.ey=function(a){0===a||isNaN(a)||(this.j+=V(a),this.j=Ja(this.j),this.la())},g.fy=function(a){0===a||isNaN(a)||(this.j-=V(a),this.j=Ja(this.j),this.la())},g.gy=function(a,b){var c=Pa(this.j,V(b),V(a));isNaN(c)||this.j===c||(this.j=c,this.la())},g.hy=function(a,b,c){a=Pa(this.j,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.j===a||(this.j=a,this.la())},g.By=function(a,b){var c=Math.atan2(b- +this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.la())},n.qx=function(a){a.H(Ka(this.j))});l||(a.Lr=function(a,b,c){return fc(this.kb[a],b,c)},a.Ix=function(a){return this.kb[a]},a.Yx=function(a,b){var c=this.ya(),d=c.qd();if(!d.length)return!1;var g=d[0],e=g,f=g.kb[b],h,n,p;h=1;for(n=d.length;hf)f=p,e=g;c.vi(e);return!0},a.Wx=function(a){var b,c,d,g,e;if(this.b.Zu().gm){e=this.ya();if(e.Fa)for(e.Fa=!1,L(e.e),L(e.ea),d=this.e,b=0,c=d.length;ba?a=0:1g.n.index||d.n.index===g.n.index&&d.Kd()>g.Kd())g=d}else if(d.n.indexc)){var d=1===a;this.Ke[c]!==d&&(this.Ke[c]=d,this.Bd(),this.b.V=!0)}}},g.my=function(a,b,c){if(this.b.G){var d=this.type.Ol(a);0>d||(a=this.type.P[d],d=this.Sa[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.G.kv(a.gb,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.A&&(this.b.V=!0))))}})};Lb=function(){this.pl=this.il=!0;this.type.qo=!0;this.b.V=!0;var f,h,l=this.jl;f=0;for(h= +l.length;fl;case 5:return f>=l;default:return!1}}})();var pc={};function tc(f){this.b=f} +(function(){function f(a){-1===jb.indexOf(a)&&jb.push(a)}function p(a){var b=a.k,c;try{c=b.play()}catch(d){f(a);return}c?c.catch(function(){f(a)}):Bc&&!K.qe&&f(a)}function h(){var a,b,c,d;Cc||Bb||!y||(l(),"running"===y.state&&(Cc=!0));var g=jb.slice(0);L(jb);if(!Y)for(a=0,b=g.length;aa&&(a=0);1a&&(a=.01);this.pk.gain.value=a;this.ok.gain.value=Math.pow(1/a,.6)*b}; +da.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)g=e/32768,g=this.shape(g,c,d),this.hj[32768+e]=g,this.hj[32768-e-1]=-g};da.prototype.Tc=function(a){this.O.disconnect();this.O.connect(a);this.N.disconnect();this.N.connect(a)};da.prototype.remove=function(){this.ga.disconnect();this.pk.disconnect();this.Xk.disconnect();this.ok.disconnect(); +this.O.disconnect();this.N.disconnect()};da.prototype.Bc=function(){return this.ga};ga.prototype.Tc=function(a){this.ka.disconnect();this.ka.connect(a)};ga.prototype.remove=function(){this.ka.disconnect()};ga.prototype.Bc=function(){return this.ka};Q.prototype.Pa=function(){this.ka.getFloatFrequencyData(this.Uu);this.ka.getByteTimeDomainData(this.Zq);for(var a=this.ka.fftSize,b=0,d=this.ti=0,g=0;bg&&(g=-g),this.tib&&(c=b);return c};z.prototype.Mf=function(){return!this.sc&&!this.Jd&&!this.hc&&!this.If()};z.prototype.Rw=function(){return!this.Jd&&!this.hc&&!this.If()};z.prototype.cx=function(){var a=this.volume*S;isFinite(a)||(a=0);switch(this.ba){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:1===this.buffer.ba?this.ib.gain.value=a*this.Ng:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a)}};z.prototype.nj=function(a){switch(this.ba){case 0:this.k.muted!== +!!a&&(this.k.muted=!!a);break;case 1:1===this.buffer.ba?(this.Ng=a?0:1,this.ib.gain.value=S*this.volume*this.Ng):this.k.muted!==!!a&&(this.k.muted=!!a)}};z.prototype.Tq=function(a){this.Bg=!!a;this.nj(this.Bg||this.Uh)};z.prototype.Uq=function(a){this.Uh=!!a;this.nj(this.Bg||this.Uh)};z.prototype.Tk=function(){var a=this.playbackRate;this.zg&&(a*=K.eh);switch(this.ba){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.ba?this.k.playbackRate.value!==a&&(this.k.playbackRate.value= +a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};z.prototype.Pw=function(b){switch(this.ba){case 0:b?this.Mf()?(this.Gc=!0,this.k.pause()):this.Gc=!1:this.Gc&&(this.k.play(),this.Gc=!1);break;case 1:b?this.Mf()?(this.Gc=!0,1===this.buffer.ba?(this.gc=this.Tl(!0),this.Nd&&(this.gc=this.gc%this.Xe()),a(this.k)):this.k.pause()):this.Gc=!1:this.Gc&&(1===this.buffer.ba?(this.k=y.createBufferSource(),this.k.buffer=this.buffer.ja,this.k.connect(this.ib),this.k.onended=this.Pm,this.$i=this.k,this.k.loop= +this.Nd,this.ib.gain.value=S*this.volume*this.Ng,this.Tk(),this.startTime=(this.zg?K.Bb.U:K.Ge.U)-this.gc/(this.playbackRate||.001),d(this.k,this.gc,this.Xe())):this.k.play(),this.Gc=!1);break;case 2:b?this.Mf()?(this.k.pause(),this.Gc=!0):this.Gc=!1:this.Gc&&(this.Gc=!1,this.k.play())}};u.ua=function(a){this.type=a;K=this.b=a.b;wa=this;this.tc=null;this.ai=-600;this.b.Kj&&(kb=!0);!(this.b.Eg||this.b.Nh&&(this.b.hm||this.b.Gj))||this.b.Ij||this.b.lb||this.b.mp||kb||(Bc=!0);y=null;"undefined"!==typeof AudioContext? +(E=1,y=new AudioContext):"undefined"!==typeof webkitAudioContext&&(E=1,y=new webkitAudioContext);this.b.Eg&&y&&(y.close&&y.close(),"undefined"!==typeof AudioContext?y=new AudioContext:"undefined"!==typeof webkitAudioContext&&(y=new webkitAudioContext));1!==E&&(this.b.Dc&&"undefined"!==typeof window.Media?E=2:this.b.np&&(E=3));2===E&&(D=location.href,a=D.lastIndexOf("/"),-1"!==b&&(a.mk=b,a.Em=d,a.Fn=g),null;h=new z(a,b);A.push(h);return h};var ha=[];ca.prototype.Vi=function(a){return lb(J, +a)};u.g=new ca;U.prototype.Play=function(a,b,c,d){!Y&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1b?null:e[b];return d?lb(c,d.name):!1};q.g=new h;l.prototype.CallFunction=function(c,d){var a=p();a.name=c.toLowerCase();a.Bi=0;Ba(a.Eb,d);this.b.trigger(sc.prototype.g.Wi,this,a.name);b--};q.J=new l;c.prototype.Hr=function(c,d){var a=p();a.name=d.toLowerCase();a.Bi=0;L(a.Eb);var g,e;g=2;for(e=arguments.length;gthis.I&&(this.I=0);this.I>=this.Ka.frames.length&&(this.I=this.Ka.frames.length-1);var b=this.Ka.frames[this.I];this.Fd.Fi(b.nk);this.qc=b.qc;this.rc=b.rc;this.ng=this.Ka.speed;this.Se=this.Ka.dn;1===this.type.lc.length&&1===this.type.lc[0].frames.length||0===this.ng||(this.b.Nk(this),this.nm=!0);this.Fb?this.Ed.reset():this.Ed= +new bb;this.me=this.Ed.U;this.uf=!0;this.be=0;this.tf=!0;this.sl=this.oo="";this.At=0;this.cj=-1;this.type.Vv();var a,c,e,f,h,l,r,b=0;for(a=this.type.lc.length;bthis.I&&(this.I=0);this.I>=this.Ka.frames.length&&(this.I=this.Ka.frames.length-1);this.ng=b.cas;this.me=b.fs;this.be=b.ar;this.Ed.reset();this.Ed.U=b.at;this.uf=b.hasOwnProperty("ap")?b.ap:!0;this.tf=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")? +this.Se=b.rt:this.Se=this.Ka.dn;this.ab=this.Ka.frames[this.I];this.mg=this.ab.xc;this.Fd.Fi(this.ab.nk);this.qc=this.ab.qc;this.rc=this.ab.rc};e.gl=function(b){this.I=b?0:this.Ka.frames.length-1;this.uf=!1;this.oo=this.Ka.name;this.cm=!0;this.b.trigger(rc.prototype.g.es,this);this.b.trigger(rc.prototype.g.ds,this);this.cm=!1;this.be=0};e.hl=function(){return this.Ed.U};e.Pa=function(){this.Ed.add(this.b.Gf(this));this.sl.length&&this.Lt();0<=this.cj&&this.Lo();var b=this.Ed.U,a=this.Ka,c=a.frames[this.I], +e=c.duration/this.ng;this.uf&&b>=this.me+e&&(this.tf?this.I++:this.I--,this.me+=e,this.I>=a.frames.length&&(a.zq?(this.tf=!1,this.I=a.frames.length-2):a.loop?this.I=this.Se:(this.be++,this.be>=a.cn?this.gl(!1):this.I=this.Se)),0>this.I&&(a.zq?(this.I=1,this.tf=!0,a.loop||(this.be++,this.be>=a.cn&&this.gl(!0))):a.loop?this.I=this.Se:(this.be++,this.be>=a.cn?this.gl(!0):this.I=this.Se)),0>this.I?this.I=0:this.I>=a.frames.length&&(this.I=a.frames.length-1),b>this.me+a.frames[this.I].duration/this.ng&& +(this.me=b),b=a.frames[this.I],this.ig(c,b),this.b.V=!0)};e.Wo=function(b){var a,c,e;a=0;for(c=this.type.lc.length;athis.I&&(this.I=0),this.I>=this.Ka.frames.length&& +(this.I=this.Ka.frames.length-1),1===this.At&&(this.I=0),this.uf=!0,this.me=this.Ed.U,this.tf=!0,this.ig(b,this.Ka.frames[this.I]),this.b.V=!0)};e.Lo=function(){var b=this.Ka.frames[this.I],a=this.I;this.I=qa(this.cj);0>this.I&&(this.I=0);this.I>=this.Ka.frames.length&&(this.I=this.Ka.frames.length-1);a!==this.I&&(this.ig(b,this.Ka.frames[this.I]),this.me=this.Ed.U,this.b.V=!0);this.cj=-1};e.ig=function(b,a){var c=b.width,e=b.height,f=a.width,h=a.height;c!=f&&(this.width*=f/c);e!=h&&(this.height*= +h/e);this.qc=a.qc;this.rc=a.rc;this.Fd.Fi(a.nk);this.la();this.ab=a;this.mg=a.xc;c=0;for(e=this.X.length;cf||f>=e.length)return a?this.x:this.y;var h=(e[f][1]-c.qc)*this.width,e=e[f][2],e=(e-c.rc)*this.height,c=Math.cos(this.j);f=Math.sin(this.j);var l= +h*c-e*f,e=e*c+h*f,h=l+this.x,e=e+this.y;return a?h:e};var b=new ba,w=!1;new ua(0,0,0,0);c.finish=function(c){if(w){if(c){var a=this.b.Sb().oc.wd;c=null.ya();var g=b.sf(),e,f;if(c.Fa){c.Fa=!1;L(c.e);e=0;for(f=g.length;eb.Aa||a.top>b.za)this.b.G.deleteTexture(this.uc),this.Od=this.Uf=this.uc=null}};e.oi=function(){this.Od= +this.Uf=null;this.b.G&&this.uc&&this.b.G.deleteTexture(this.uc);this.uc=null};e.ax=function(){this.font=this.wj+" "+this.kf.toString()+"pt "+this.sg;this.dg=!0;this.b.V=!0};e.je=function(b,a){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=a?1:this.opacity;var c=1;a&&(c=Math.abs(this.n.pc()),b.save(),b.scale(c,c));if(this.dg||this.width!==this.wm)this.type.La.et(this.text,this.ef,b,this.width,this.In),this.dg=!1,this.wm=this.width;this.Ga();var c=a?0:this.wf.Ic,e=a?0:this.wf.Jc; +this.b.ze&&(c=c+.5|0,e=e+.5|0);0===this.j||a||(b.save(),b.translate(c,e),b.rotate(this.j),e=c=0);var f=e+this.height,h=this.sk,h=h+this.ym,l,r;1===this.Vk?e+=Math.max(this.height/2-this.ef.length*h/2,0):2===this.Vk&&(e+=Math.max(this.height-this.ef.length*h-2,0));for(r=0;r=f-h);r++);(0!==this.j||a)&&b.restore();this.$h=this.b.Wd};e.Xc=function(b){if(!(1> +this.width||1>this.height)){var a=this.dg||this.$p;this.$p=!1;var c=this.n.pc(),e=this.n.jb(),f=this.Xg,h=c*this.width,l=c*this.height,r=Math.ceil(h),m=Math.ceil(l),q=Math.abs(r),p=Math.abs(m),w=this.b.L/2,Q=this.b.K/2;this.Uf||(this.Od=document.createElement("canvas"),this.Od.width=q,this.Od.height=p,this.Qj=q,this.Pj=p,a=!0,this.Uf=this.Od.getContext("2d"));if(q!==this.Qj||p!==this.Pj)this.Od.width=q,this.Od.height=p,this.uc&&(b.deleteTexture(this.uc),this.uc=null),a=!0;a&&(this.Uf.clearRect(0, +0,q,p),this.je(this.Uf,!0),this.uc||(this.uc=b.zc(q,p,this.b.Ta,this.b.$e)),b.kx(this.Od,this.uc,this.b.$e));this.Qj=q;this.Pj=p;b.Hc(this.uc);b.$g(this.opacity);b.ad();b.translate(-w,-Q);b.Mc();var C=this.wf,a=this.n.mb(C.Ic,C.Jc,!0),q=this.n.mb(C.Ic,C.Jc,!1),p=this.n.mb(C.fd,C.gd,!0),w=this.n.mb(C.fd,C.gd,!1),Q=this.n.mb(C.Rc,C.Sc,!0),x=this.n.mb(C.Rc,C.Sc,!1),z=this.n.mb(C.Pc,C.Qc,!0),C=this.n.mb(C.Pc,C.Qc,!1);if(this.b.ze||0===this.j&&0===e)var H=(a+.5|0)-a,G=(q+.5|0)-q,a=a+H,q=q+G,p=p+H,w=w+ +G,Q=Q+H,x=x+G,z=z+H,C=C+G;0===this.j&&0===e?(p=a+r,w=q,Q=p,x=q+m,z=a,C=x,f.right=1,f.bottom=1):(f.right=h/r,f.bottom=l/m);b.lf(a,q,p,w,Q,x,z,C,f);b.ad();b.scale(c,c);b.wk(-this.n.jb());b.translate((this.n.wa+this.n.Aa)/-2,(this.n.xa+this.n.za)/-2);b.Mc();this.$h=this.b.Wd}};var b=[];q.bt=function(c){L(b);for(var a="",e,f=0;f=e)p(a);else{if(100>=b.length&&-1===b.indexOf("\n")){var l=c.measureText(b).width;if(l<=e){p(a);a.push(f());a[0].text=b;a[0].width=l;return}}this.ft(b,a,c,e,h)}else p(a)};q.ft=function(c,a,e,l,k){k&&(this.bt(c),c=b);var q="",p,r,m,t=0;for(m=0;m=a.length&&a.push(f()),q=h(q),r=a[t],r.text=q,r.width=e.measureText(q).width,t++,q=""):(p= +q,q+=c[m],r=e.measureText(q).width,r>=l&&(t>=a.length&&a.push(f()),p=h(p),r=a[t],r.text=p,r.width=e.measureText(p).width,t++,q=c[m],k||" "!==q||(q="")));q.length&&(t>=a.length&&a.push(f()),q=h(q),r=a[t],r.text=q,r.width=e.measureText(q).width,t++);for(m=t;mb&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.dg=!0,this.b.V=!0)};l.prototype.Os=function(b){this.kf!==b&&(this.kf= +b,this.sk=Math.ceil(this.kf/72*96)+4,this.ax())};q.J=new l;c.prototype.Text=function(b){b.Ub(this.text)};q.Ea=new c})();function Z(f){this.b=f} +(function(){function f(b){d=b.x;a=b.y;g=b.z}function p(a,b,c,d){var e;e=n.length?n.pop():new h;e.init(a,b,c,d);return e}function h(){this.Ii=this.id=this.y=this.x=this.Hk=this.Gk=this.vm=this.time=this.tn=0;this.Ni=this.Pk=!1}function l(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function c(){}function q(){}var e=Z.prototype;e.Da=function(a){this.La=a;this.b=a.b};e.Da.prototype.Z= +function(){};e.ua=function(a){this.type=a;this.b=a.b;this.touches=[];this.Gm=!1};var b=e.ua.prototype,w={left:0,top:0};b.Dh=function(a){var b,c;b=0;for(c=this.touches.length;bSa(this.Gk,this.Hk,this.x,this.y)&&(this.Pk=!0,a.Yd=this.Ii,a.fh=this.id,a.wg=b,a.b.trigger(Z.prototype.g.ss,a),a.ge=this.x,a.he=this.y,a.b.trigger(Z.prototype.g.ts,a),a.wg=0)};var k=-1E3,v=-1E3,P=-1E4;h.prototype.Up=function(a,b){if(!this.Pk){var c=Ya();333>=c-this.tn&&!this.Ni&&15>Sa(this.Gk,this.Hk,this.x, +this.y)&&(a.Yd=this.Ii,a.fh=this.id,a.wg=b,666>=c-P&&25>Sa(k,v,this.x,this.y)?(a.b.trigger(Z.prototype.g.ks,a),a.ge=this.x,a.he=this.y,a.b.trigger(Z.prototype.g.ls,a),v=k=-1E3,P=-1E4):(a.b.trigger(Z.prototype.g.Es,a),a.ge=this.x,a.he=this.y,a.b.trigger(Z.prototype.g.Fs,a),k=this.x,v=this.y,P=c),a.wg=0)}};b.Z=function(){this.Nv=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.wg=this.fh=this.Yd=this.he=this.ge=this.eo=this.co=this.bo=this.jt=this.it=this.ht=this.jk=this.ik=this.hk= +0;this.ix=0!==this.B[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)}}};b.lq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&mb(a)&&a.preventDefault();var b=this.b.lb?w:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Ya();this.Yd=this.touches.length; +this.fh=a.pointerId;this.touches.push(p(c,b,a.pointerId,this.Yd));this.b.qe=!0;this.b.trigger(Z.prototype.g.Un,this);this.b.trigger(Z.prototype.g.Xn,this);this.ge=c;this.he=b;this.b.trigger(Z.prototype.g.$k,this);this.b.qe=!1}};b.fk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&mb(a)&&a.preventDefault();var c=this.Dh(a.pointerId);this.Yd=0<=c?this.touches[c].Ii:-1;this.fh=0<=c?this.touches[c].id:-1;this.b.qe=!0;this.b.trigger(Z.prototype.g.Tn, +this);this.b.trigger(Z.prototype.g.Wn,this);0<=c&&(b||this.touches[c].Up(this,c),100>n.length&&n.push(this.touches[c]),this.touches.splice(c,1));this.b.qe=!1}};b.oq=function(a){a.preventDefault&&a.preventDefault();var b=Ya(),c,d,e,g;c=0;for(d=a.changedTouches.length;cb-g.time||g.update(b,e.pageX-f.left,e.pageY-f.top,2*(e.ez||e.mz||e.Yy||e.az||0),2*(e.fz||e.nz||e.Zy||e.bz|| +0),e.Ty||e.lz||e.Xy||e.$y||0)}};b.pq=function(a){a.preventDefault&&mb(a)&&a.preventDefault();var b=this.b.lb?w:jQuery(this.b.canvas).offset();Ya();this.b.qe=!0;var c,d,e,g;c=0;for(d=a.changedTouches.length;cn.length&&n.push(this.touches[e]),this.touches.splice(e,1));this.b.qe=!1};b.hl=function(){return this.b.Dc&&0===this.hk&&0!==g?90*g:this.hk}; +b.Ry=function(){return this.b.Dc&&0===this.ik&&0!==a?90*a:this.ik};b.Sy=function(){return this.b.Dc&&0===this.jk&&0!==d?90*d:this.jk};b.cw=function(a){l(a)||(this.pq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Gm=!0)};b.dw=function(a){this.Gm&&!l(a)&&this.oq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.ew=function(a){a.preventDefault&&this.b.ep&&!this.b.$e&&a.preventDefault();this.b.ep=!0;l(a)||(this.Om({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}), +this.Gm=!1)};b.Mi=function(){var a,b,c,d=Ya();a=0;for(b=this.touches.length;ac||c>=this.touches.length)a.H(0);else{var d,e,g,f,h;ia(b)?(d=this.b.Eh(0),e=d.scale,g=d.Ie,f=d.ve,h=d.j,d.scale=1,d.Ie=1,d.ve=1,d.j=0,a.H(d.Rb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Ie=g,d.ve=f,d.j=h): +(d=ka(b)?this.b.Eh(b):this.b.Sl(b))?a.H(d.Rb(this.touches[c].x,this.touches[c].y,!0)):a.H(0)}};q.prototype.ao=function(a,b){var c=this.wg;if(0>c||c>=this.touches.length)a.H(0);else{var d,e,g,f,h;ia(b)?(d=this.b.Eh(0),e=d.scale,g=d.Ie,f=d.we,h=d.j,d.scale=1,d.Ie=1,d.we=1,d.j=0,a.H(d.Rb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Ie=g,d.we=f,d.j=h):(d=ka(b)?this.b.Eh(b):this.b.Sl(b))?a.H(d.Rb(this.touches[c].x,this.touches[c].y,!1)):a.H(0)}};e.Ea=new q})();function vc(f){this.b=f} +(function(){var f=vc.prototype;f.Da=function(f){this.behavior=f;this.b=f.b};f.Da.prototype.Z=function(){};f.ua=function(f,l){this.type=f;this.behavior=f.behavior;this.d=l;this.b=f.b};var p=f.ua.prototype;p.Z=function(){this.lo=this.B[0];this.no=this.B[1];this.ot=this.B[2];this.nt=this.B[3];this.d.Ga();this.Jn=this.d.Ja.left;this.Mn=this.d.Ja.top;this.Kn=this.b.Xa-this.d.Ja.left;this.Ln=this.b.Wa-this.d.Ja.top;this.an=this.b.Xa-this.d.Ja.right;this.kl=this.b.Wa-this.d.Ja.bottom;this.enabled=0!==this.B[4]}; +p.yb=function(){return{xleft:this.Jn,ytop:this.Mn,xright:this.Kn,ybottom:this.Ln,rdiff:this.an,bdiff:this.kl,enabled:this.enabled}};p.Pb=function(f){this.Jn=f.xleft;this.Mn=f.ytop;this.Kn=f.xright;this.Ln=f.ybottom;this.an=f.rdiff;this.kl=f.bdiff;this.enabled=f.enabled};p.Pa=function(){if(this.enabled){var f,l=this.d.n,c=this.d,q=this.d.Ja;0===this.lo?(c.Ga(),f=l.wa+this.Jn-q.left,0!==f&&(c.x+=f,c.la())):1===this.lo&&(c.Ga(),f=l.Aa-this.Kn-q.left,0!==f&&(c.x+=f,c.la()));0===this.no?(c.Ga(),f=l.xa+ +this.Mn-q.top,0!==f&&(c.y+=f,c.la())):1===this.no&&(c.Ga(),f=l.za-this.Ln-q.top,0!==f&&(c.y+=f,c.la()));1===this.ot&&(c.Ga(),f=l.Aa-this.an-q.right,0!==f&&(c.width+=f,0>c.width&&(c.width=0),c.la()));1===this.nt&&(c.Ga(),f=l.za-this.kl-q.bottom,0!==f&&(c.height+=f,0>c.height&&(c.height=0),c.la()))}};f.g=new function(){};f.J=new function(){};f.Ea=new function(){}})();function wc(f){this.b=f} +(function(){function f(){}function p(){}var h=wc.prototype;h.Da=function(c){this.behavior=c;this.b=c.b};h.Da.prototype.Z=function(){};h.ua=function(c,f){this.type=c;this.behavior=c.behavior;this.d=f;this.b=c.b};var l=h.ua.prototype;l.Z=function(){this.fo=1===this.B[0];this.Bh=this.B[1];this.Ri=this.B[2];this.qj=this.B[3];this.Jt=this.B[4];this.rb=this.fo?0:3;this.Fb?this.cd.reset():this.cd=new bb;this.Tf=this.d.opacity?this.d.opacity:1;this.fo&&(0===this.Bh?(this.rb=1,0===this.Ri&&(this.rb=2)):(this.d.opacity= +0,this.b.V=!0))};l.yb=function(){return{fit:this.Bh,wt:this.Ri,fot:this.qj,s:this.rb,st:this.cd.U,mo:this.Tf}};l.Pb=function(c){this.Bh=c.fit;this.Ri=c.wt;this.qj=c.fot;this.rb=c.s;this.cd.reset();this.cd.U=c.st;this.Tf=c.mo};l.Pa=function(){this.cd.add(this.b.Gf(this.d));0===this.rb&&(this.d.opacity=this.cd.U/this.Bh*this.Tf,this.b.V=!0,this.d.opacity>=this.Tf&&(this.d.opacity=this.Tf,this.rb=1,this.cd.reset(),this.b.trigger(wc.prototype.g.ns,this.d)));1===this.rb&&this.cd.U>=this.Ri&&(this.rb=2, +this.cd.reset(),this.b.trigger(wc.prototype.g.bl,this.d));2===this.rb&&0!==this.qj&&(this.d.opacity=this.Tf-this.cd.U/this.qj*this.Tf,this.b.V=!0,0>this.d.opacity&&(this.d.opacity=0,this.rb=3,this.cd.reset(),this.b.trigger(wc.prototype.g.os,this.d),1===this.Jt&&this.b.$d(this.d)))};l.au=function(){this.rb=0;this.cd.reset();0===this.Bh?(this.rb=1,0===this.Ri&&(this.rb=2)):(this.d.opacity=0,this.b.V=!0)};f.prototype.os=function(){return!0};f.prototype.ns=function(){return!0};f.prototype.bl=function(){return!0}; +h.g=new f;p.prototype.Ks=function(){this.au()};h.J=new p;h.Ea=new function(){}})();function xc(f){this.b=f} +(function(){function f(){}function p(){}var h=xc.prototype;h.Da=function(c){this.behavior=c;this.b=c.b};h.Da.prototype.Z=function(){};h.ua=function(c,f){this.type=c;this.behavior=c.behavior;this.d=f;this.b=c.b};var l=h.ua.prototype;l.Z=function(){this.Xd=this.Ud=this.rb=this.ek=this.gk=0};l.yb=function(){return{ontime:this.gk,offtime:this.ek,stage:this.rb,stagetimeleft:this.Ud,timeleft:this.Xd}};l.Pb=function(c){this.gk=c.ontime;this.ek=c.offtime;this.rb=c.stage;this.Ud=c.stagetimeleft;this.Xd=c.timeleft; +null===this.Xd&&(this.Xd=Infinity)};l.Pa=function(){if(!(0>=this.Xd)){var c=this.b.Gf(this.d);this.Xd-=c;0>=this.Xd?(this.Xd=0,this.d.visible=!0,this.b.V=!0,this.b.trigger(xc.prototype.g.qs,this.d)):(this.Ud-=c,0>=this.Ud&&(0===this.rb?(this.d.visible=!1,this.rb=1,this.Ud+=this.ek):(this.d.visible=!0,this.rb=0,this.Ud+=this.gk),this.b.V=!0))}};f.prototype.qs=function(){return!0};h.g=new f;p.prototype.Sr=function(c,f,e){this.gk=c;this.ek=f;this.rb=1;this.Ud=f;this.Xd=e;this.d.visible=!1;this.b.V=!0}; +h.J=new p;h.Ea=new function(){}})();function yc(f){this.b=f} +(function(){function f(){}var p=yc.prototype;p.Da=function(f){this.behavior=f;this.b=f.b};p.Da.prototype.Z=function(){};p.ua=function(f,c){this.type=f;this.behavior=f.behavior;this.d=c;this.b=f.b};var h=p.ua.prototype;h.Z=function(){this.pb=null;this.lk=-1;this.mode=this.Fg=this.Lk=this.Og=this.ye=this.wi=0;var f=this;this.Fb||(this.Yp=function(c){f.Mm(c)});this.b.io(this.Yp)};h.yb=function(){return{uid:this.pb?this.pb.uid:-1,pa:this.wi,pd:this.ye,msa:this.Og,tsa:this.Lk,lka:this.Fg,m:this.mode}}; +h.Pb=function(f){this.lk=f.uid;this.wi=f.pa;this.ye=f.pd;this.Og=f.msa;this.Lk=f.tsa;this.Fg=f.lka;this.mode=f.m};h.ae=function(){-1===this.lk?this.pb=null:this.pb=this.b.Fh(this.lk);this.lk=-1};h.Mm=function(f){this.pb==f&&(this.pb=null)};h.oi=function(){this.pb=null;this.b.Bw(this.Yp)};h.Pa=function(){};h.Mi=function(){if(this.pb){this.Fg!==this.d.j&&(this.Og=Ja(this.Og+(this.d.j-this.Fg)));var f=this.d.x,c=this.d.y;if(3===this.mode||4===this.mode){var h=Sa(this.d.x,this.d.y,this.pb.x,this.pb.y); +if(h>this.ye||4===this.mode&&h=this.Yf);f=f?-this.move.dec:this.move.acc;0!=f&&this.jg(this.Te+ +f*c);c=this.Te*c;this.Yf-=c;0>=this.Yf||0>=this.Te?(this.bf=!1,this.d.x=this.target.x,this.d.y=this.target.y,this.jg(0),this.Wp(),this.Th=!0):(f=this.target.a,this.d.x+=c*Math.cos(f),this.d.y+=c*Math.sin(f));this.d.la();this.Dd.x=this.d.x;this.Dd.y=this.d.y}}};l.Mi=function(){this.Oc.x=this.d.x;this.Oc.y=this.d.y};l.jg=function(c){null!=c?this.Te=c>this.move.max?this.move.max:c:0==this.move.acc&&(this.Te=this.move.max)};l.dl=function(){var c=this.target.x-this.d.x,f=this.target.y-this.d.y;this.target.a= +Math.atan2(f,c);this.Yf=Math.sqrt(c*c+f*f);this.Dd.x=this.d.x;this.Dd.y=this.d.y};l.cl=function(c,f){this.bf=!0;this.target.x=c;this.target.y=f;this.dl();this.jg(null);this.Oc.x=this.d.x;this.Oc.y=this.d.y};l.Pn=function(c,f){this.target.x=c;this.target.y=f;this.dl();this.bf=!1;this.d.x=this.target.x;this.d.y=this.target.y;this.jg(0);this.Wp();this.bf=!0};l.Qv=function(){var c=this.b.Wd,f=this.Zi!=c;this.Zi=c;return f};l.Wp=function(){if(this.Qv()){var c=this.d.x-this.Oc.x,f=this.d.y-this.Oc.y;if(0!= +c||0!=f)this.Oc.a=Ka(Math.atan2(f,c))}};l.yb=function(){return{en:this.enabled,v:this.move,t:this.target,is_m:this.bf,c_spd:this.Te,rd:this.Yf,is_ht:this.Th,pp:this.Dd,ma:this.Oc,lt:this.Zi}};l.Pb=function(c){this.enabled=c.en;this.move=c.v;this.target=c.t;this.bf=c.is_m;this.Te=c.c_spd;this.Yf=c.rd;this.Th=c.is_ht;this.Dd=c.pp;this.Oc=c.ma;this.Zi=c.lt};h.g=new f;f.prototype.rs=function(){return this.qm};h.J=new p;p.prototype.cl=function(c,f){this.cl(c,f)};p.prototype.Pn=function(c,f){this.Pn(c, +f)};p.prototype.jg=function(c){this.jg(c)};p.prototype.Yi=function(){this.bf=!1};h.Ea=new function(){}})();function Ac(f){this.b=f} +(function(){function f(){}function p(){}function h(){}var l=Ac.prototype;l.Da=function(b){this.behavior=b;this.b=b.b};l.Da.prototype.Z=function(){};l.ua=function(b,c){this.type=b;this.behavior=b.behavior;this.d=c;this.b=b.b;this.u=0};var c=l.ua.prototype,q=2*Math.PI,e=Math.PI/2,b=3*Math.PI/2;c.Z=function(){this.A=1===this.B[0];this.Mg=this.B[1];this.Hn=this.B[2];this.xe=this.B[3];this.xe+=Math.random()*this.B[4];0===this.xe?this.u=0:(this.u=this.B[5]/this.xe*q,this.u+=Math.random()*this.B[6]/this.xe* +q);this.Tb=this.B[7];this.Tb+=Math.random()*this.B[8];this.Rd=this.Kf=this.fa=0;5===this.Mg&&(this.Tb=V(this.Tb));this.init()};c.yb=function(){return{i:this.u,a:this.A,mv:this.Mg,w:this.Hn,p:this.xe,mag:this.Tb,iv:this.fa,iv2:this.Kf,r:this.Rd,lkv:this.tb,lkv2:this.Yh}};c.Pb=function(b){this.u=b.i;this.A=b.a;this.Mg=b.mv;this.Hn=b.w;this.xe=b.p;this.Tb=b.mag;this.fa=b.iv;this.Kf=b.iv2||0;this.Rd=b.r;this.tb=b.lkv;this.Yh=b.lkv2||0};c.init=function(){switch(this.Mg){case 0:this.fa=this.d.x;break;case 1:this.fa= +this.d.y;break;case 2:this.fa=this.d.width;this.Rd=this.d.height/this.d.width;break;case 3:this.fa=this.d.width;break;case 4:this.fa=this.d.height;break;case 5:this.fa=this.d.j;break;case 6:this.fa=this.d.opacity;break;case 7:this.fa=0;break;case 8:this.fa=this.d.x,this.Kf=this.d.y}this.tb=this.fa;this.Yh=this.Kf};c.Zd=function(c){c=c%q;switch(this.Hn){case 0:return Math.sin(c);case 1:return c<=e?c/e:c<=b?1-2*(c-e)/Math.PI:(c-b)/e-1;case 2:return 2*c/q-1;case 3:return-2*c/q+1;case 4:return cthis.d.opacity?this.d.opacity=0:1=c&&(gc[this.group]=c)};h.dp=function(){""!= +this.group&&("undefined"===typeof hc&&(hc={},gc={}),"undefined"===typeof hc[this.group]&&(hc[this.group]=[],gc[this.group]=-1),-1==hc[this.group].indexOf(this)&&hc[this.group].push(this))};h.mf=function(){this.Lc=this.d.width;this.Kc=this.d.height;this.gh=this.d.j;this.sr=this.d.opacity;this.qf=this.d.x;this.rf=this.d.y;this.Rk=this.value};h.Z=function(){this.A=1===this.B[0];this.C=this.B[1];this.yh=this.B[2];this.q=this.B[3];this.target=this.B[4];this.duration=this.B[5];this.eg=this.B[6];this.M= +this.B[7];this.value=this.B[8];this.Lb=this.B[9];this.Jl=1===this.B[10];this.group=this.B[11];this.Xb=null;this.ec=0;5==this.M&&(this.ec=1);this.dp();this.Lf=!1;this.R=this.d.x;this.cb=this.d.y;this.S=parseFloat(this.target.split(",")[0]);this.Za=parseFloat(this.target.split(",")[1]);this.mf();this.hh=this.Hb=this.ta=this.$a=this.W=0;this.Rd=this.d.height/this.d.width;this.uk=this.reverse=!1;this.od=this.nd=!0;this.loop=!1;this.Ha=this.qa=0;this.um=this.M;this.cc=this.tb=this.W;this.Ec=this.$a;this.Jl&& +this.init();""==this.q&&(this.q="current");this.ni=this.Pg=this.pi=this.Qg=this.si=this.Sg=this.ri=this.Rg=!1;this.A&&this.init()};h.init=function(){this.Rg=!1;""===this.q&&(this.q="current");""===this.target&&(this.target="current");var c="current"===this.q,f="current"===this.target,e="OBJ"===this.target;"OBJ"===this.target&&null!=this.Xb&&(0==this.C?this.target=1==this.Lb?this.Xb.x-this.d.x+","+(this.Xb.y-this.d.y):this.Xb.x+","+this.Xb.y:1==this.C||2==this.C||3==this.C||7==this.C?this.target=1== +this.Lb?(2==this.C?1:this.Xb.width)+","+(3==this.C?1:this.Xb.height):(2==this.C?1:this.Xb.width/this.Lc)+","+(3==this.C?1:this.Xb.height/this.Kc):4==this.C?this.target=1==this.Lb?Ga(this.Xb.j-this.d.j)+"":Ga(this.Xb.j)+"":5==this.C&&(this.target=1==this.Lb?100*(this.Xb.opacity-this.d.opacity)+"":100*this.Xb.opacity+""));if(0==this.C)f&&(this.target=this.d.x+","+this.d.y),c?this.q=1==this.Lb?this.d.x+","+this.d.y:this.qf+","+this.rf:this.reverse||1==this.M||(this.d.x=parseFloat(this.q.split(",")[0]), +this.d.y=parseFloat(this.q.split(",")[1])),1==this.Lb?(this.loop&&(this.d.x=this.qf,this.d.y=this.rf),this.R=this.d.x,this.cb=this.d.y,this.reverse?(this.S=-parseFloat(this.target.split(",")[0]),this.Za=-parseFloat(this.target.split(",")[1])):(this.S=parseFloat(this.target.split(",")[0]),this.Za=parseFloat(this.target.split(",")[1])),this.W=this.R,this.$a=this.cb,this.ta=this.W+this.S,this.Hb=this.$a+this.Za):(this.reverse?(this.d.x=parseFloat(this.target.split(",")[0]),this.d.y=parseFloat(this.target.split(",")[1]), +this.S=this.qf,this.Za=this.rf):(this.d.x=this.qf,this.d.y=this.rf,this.S=parseFloat(this.target.split(",")[0]),this.Za=parseFloat(this.target.split(",")[1])),this.R=this.d.x,this.cb=this.d.y,this.W=this.R,this.$a=this.cb,this.ta=this.S,this.Hb=this.Za,-6==this.M&&(this.ta=this.qf,this.Hb=this.rf));else if(1==this.C||2==this.C||3==this.C){f&&(this.target="1,1");"current"==this.q&&(this.q="1,1");this.q=""+this.q;this.target=""+this.target;2==this.C?(-1==this.q.indexOf(",")&&(this.q=parseFloat(this.q)+ +",1"),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+",1")):3==this.C?(-1==this.q.indexOf(",")&&(this.q="1,"+parseFloat(this.q)),-1==this.target.indexOf(",")&&(this.target="1,"+parseFloat(this.target))):(-1==this.q.indexOf(",")&&(this.q=parseFloat(this.q)+","+parseFloat(this.q)),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+","+parseFloat(this.target)));var b=parseFloat(this.q.split(",")[0]),h=parseFloat(this.q.split(",")[1]);this.nd=!0;var d=parseFloat(this.target.split(",")[0]); +if(0==d||isNaN(d))this.nd=!1;3==this.C&&(this.nd=!1);this.od=!0;var a=parseFloat(this.target.split(",")[1]);if(0==a||isNaN(a))this.od=!1;2==this.C&&(this.od=!1);1==this.Lb?(this.loop&&(this.d.width=this.Lc,this.d.height=this.Kc),c||(this.reverse?(this.d.width=this.d.width*d,this.d.height=this.d.height*a):(this.d.width=this.d.width*b,this.d.height=this.d.height*h)),this.R=this.d.width,this.cb=this.d.height,this.W=this.R,this.$a=this.cb,this.reverse?(this.S=this.R*b/d,this.Za=this.cb*h/a):(this.S=this.R* +d,this.Za=this.cb*a)):(c||(this.reverse?(this.d.width=this.Lc*d,this.d.height=this.Kc*a):(this.d.width=this.Lc*b,this.d.height=this.Kc*h)),this.R=this.d.width,this.cb=this.d.height,this.W=this.R,this.$a=this.cb,this.reverse?(this.S=this.Lc*b,this.Za=this.Kc*h):(this.S=this.Lc*d,this.Za=this.Kc*a));this.ta=this.S;this.Hb=this.Za;-6==this.M&&(this.ta=this.Lc*b,this.Hb=this.Kc*h)}else if(4==this.C)f&&(this.target=Ga(this.d.j)),"current"==this.q||this.reverse||1==this.M||(this.d.j=V(parseFloat(this.q.split(",")[0]))), +1==this.Lb?(this.loop&&(this.d.j=this.gh),this.R=this.d.j,this.reverse?this.S=this.d.j-V(parseFloat(this.target.split(",")[0])):this.S=this.d.j+V(parseFloat(this.target.split(",")[0]))):this.reverse?(this.d.j=V(parseFloat(this.target.split(",")[0])),this.R=this.d.j,this.S=this.gh):(this.d.j=this.gh,this.R=this.d.j,this.S=V(parseFloat(this.target.split(",")[0]))),this.W=this.R,this.ta=Ga(this.S),-6==this.M&&(this.ta=Ga(this.gh)),this.hh=V(this.ta);else if(5==this.C)"current"==this.q&&(this.q=this.d.opacity), +f&&(this.target=""+this.d.opacity),c||this.reverse||1==this.M||(this.d.opacity=parseFloat(this.q.split(",")[0])/100),1==this.Lb?(this.loop&&(this.d.opacity=this.sr),this.W=this.R=this.d.opacity,this.S=this.reverse?-parseFloat(this.target.split(",")[0])/100:parseFloat(this.target.split(",")[0])/100,this.ta=this.W+this.S):(this.R=this.d.opacity,this.reverse?(this.W=parseFloat(this.target.split(",")[0])/100,this.S=parseFloat(this.q.split(",")[0])/100):(this.W=this.R,this.S=parseFloat(this.target.split(",")[0])/ +100),this.ta=this.S),-6==this.M&&(this.ta=this.sr);else if(6==this.C)isNaN(this.value)&&(this.value=0),"current"==this.q&&(this.q=""+this.value),f&&(this.target=""+this.value),c||this.reverse||1==this.M||(this.value=parseFloat(this.q.split(",")[0])),1==this.Lb?(this.loop&&(this.value=this.Rk),c||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.q.split(",")[0])),this.R=this.value,this.reverse?this.S=this.R-parseFloat(this.target.split(",")[0]):this.S=this.R+parseFloat(this.target.split(",")[0]), +this.W=this.R,this.ta=this.S):(c||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.q.split(",")[0])),this.R=this.value,this.S=this.reverse?parseFloat(this.q.split(",")[0]):parseFloat(this.target.split(",")[0]),this.W=this.R,this.ta=this.S),-6==this.M&&(this.ta=this.Rk);else if(7==this.C){f&&(this.target=this.d.width+","+this.d.height);"current"==this.q||this.reverse||1==this.M||(this.d.width=parseFloat(this.q.split(",")[0]),this.d.height=parseFloat(this.q.split(",")[1])); +this.nd=!0;d=parseFloat(this.target.split(",")[0]);if(0>d||isNaN(d))this.nd=!1;this.od=!0;a=parseFloat(this.target.split(",")[1]);if(0>a||isNaN(a))this.od=!1;1==this.Lb?(this.loop&&(this.d.width=this.Lc,this.d.height=this.Kc),this.R=this.d.width,this.cb=this.d.height,this.reverse?(this.S=this.R-parseFloat(this.target.split(",")[0]),this.Za=this.cb-parseFloat(this.target.split(",")[1])):(this.S=this.R+parseFloat(this.target.split(",")[0]),this.Za=this.cb+parseFloat(this.target.split(",")[1]))):(c|| +(this.reverse?(this.d.width=parseFloat(this.target.split(",")[0]),this.d.height=parseFloat(this.target.split(",")[1])):(this.d.width=this.Lc,this.d.height=this.Kc)),this.R=this.d.width,this.cb=this.d.height,this.reverse?(this.S=this.Lc,this.Za=this.Kc):(this.S=parseFloat(this.target.split(",")[0]),this.Za=parseFloat(this.target.split(",")[1])));this.W=this.R;this.$a=this.cb;this.ta=this.S;this.Hb=this.Za;-6==this.M&&(this.ta=this.Lc,this.Hb=this.Kc)}this.cc=this.tb=this.W;this.Ec=this.$a;this.qa= +parseFloat(this.eg.split(",")[0]);this.Ha=parseFloat(this.eg.split(",")[1]);if(0>this.qa||isNaN(this.qa))this.qa=0;if(0>this.Ha||isNaN(this.Ha))this.Ha=0;c&&(this.q="current");f&&(this.target="current");e&&(this.target="OBJ")};h.iu=function(c,h){switch(this.yh){case 0:return 1*c/h+0;case 1:return 1*(c/=h)*c+0;case 2:return-1*(c/=h)*(c-2)+0;case 3:return 1>(c/=h/2)?.5*c*c+0:-.5*(--c*(c-2)-1)+0;case 4:return 1*(c/=h)*c*c+0;case 5:return 1*((c=c/h-1)*c*c+1)+0;case 6:return 1>(c/=h/2)?.5*c*c*c+0:.5*((c-= +2)*c*c+2)+0;case 7:return 1*(c/=h)*c*c*c+0;case 8:return-1*((c=c/h-1)*c*c*c-1)+0;case 9:return 1>(c/=h/2)?.5*c*c*c*c+0:-.5*((c-=2)*c*c*c-2)+0;case 10:return 1*(c/=h)*c*c*c*c+0;case 11:return 1*((c=c/h-1)*c*c*c*c+1)+0;case 12:return 1>(c/=h/2)?.5*c*c*c*c*c+0:.5*((c-=2)*c*c*c*c+2)+0;case 13:return-1*(Math.sqrt(1-(c/=h)*c)-1)+0;case 14:return 1*Math.sqrt(1-(c=c/h-1)*c)+0;case 15:return 1>(c/=h/2)?-.5*(Math.sqrt(1-c*c)-1)+0:.5*(Math.sqrt(1-(c-=2)*c)+1)+0;case 16:var e=0;0==e&&(e=1.70158);return 1*(c/= +h)*c*((e+1)*c-e)+0;case 17:return e=0,0==e&&(e=1.70158),1*((c=c/h-1)*c*((e+1)*c+e)+1)+0;case 18:return e=0,0==e&&(e=1.70158),1>(c/=h/2)?.5*c*c*(((e*=1.525)+1)*c-e)+0:.5*((c-=2)*c*(((e*=1.525)+1)*c+e)+2)+0;case 19:var b=0,l=0;if(0==c)break;if(1==(c/=h))return 1;0==l&&(l=.3*h);0==b||bc?-.5*b*Math.pow(2,10*--c)*Math.sin(2*(c*h-e)*Math.PI/l)+0:b*Math.pow(2,-10*--c)*Math.sin(2*(c*h-e)*Math.PI/l)*.5+1;case 22:return 1-f(h-c,h)+0;case 23:return f(c,h);case 24:return c=this.duration+this.qa&&(c=this.hh),this.d.j=Ja(c)):5==this.C?(1==this.Lb&&this.d.opacity!==this.cc&&(this.W=this.d.opacity),this.d.opacity=this.W+(this.ta-this.W)*c,this.cc=this.d.opacity):6==this.C?this.value=this.W+(this.ta-this.W)*c:7== +this.C&&(1==this.Lb&&(this.d.width!==this.cc&&(this.W=this.d.width),this.d.height!==this.Ec&&(this.$a=this.d.height)),this.nd&&(this.d.width=this.W+(this.ta-this.W)*c),this.od&&(this.d.height=this.$a+(this.Hb-this.$a)*c),this.cc=this.d.width,this.Ec=this.d.height),this.d.la()),this.u>=this.duration+this.qa&&(this.Nt(f),this.d.la(),0==this.Qg&&(this.Qg=!0,this.b.trigger(Gc.prototype.g.ms,this.d),this.pi=!0))))};h.Nt=function(c){switch(this.C){case 0:this.d.x=this.ta;this.d.y=this.Hb;break;case 1:this.nd&& +(this.d.width=this.ta);this.od?this.d.height=this.Hb:this.d.height=this.d.width*this.Rd;break;case 2:this.d.width=this.ta;break;case 3:this.d.height=this.Hb;break;case 4:this.d.j=Ja(this.hh);this.tb=this.d.j;break;case 5:this.d.opacity=this.ta;break;case 6:this.value=this.ta;break;case 7:this.nd&&(this.d.width=this.ta),this.od&&(this.d.height=this.Hb)}this.u>=this.duration+this.qa+this.Ha&&(0==this.M?(this.reverse=this.A=!1,this.u=this.duration+this.qa+this.Ha):1==this.M?(this.u=0,this.init(),this.A= +!0):2==this.M?c?(this.reverse=!1,this.init()):(this.reverse=!this.reverse,this.u=0,this.init(),this.A=!0):3==this.M?this.b.$d(this.d):4==this.M?(this.loop=!0,this.u=0,this.init(),this.A=!0):5==this.M?c?(this.reverse=!1,this.init()):0>=this.ec?(this.u=this.duration+this.qa+this.Ha,this.A=!1):(this.reverse?(--this.ec,this.reverse=!1):(--this.ec,this.reverse=!0),this.u=0,this.init(),this.A=!0):-6==this.M?(this.M=this.um,this.reverse=!1,this.u=0,this.A=!1):6==this.M&&(this.reverse=!1,this.u=this.duration+ +this.qa+this.Ha,this.A=!1));0==this.Pg&&(this.Pg=!0,this.b.trigger(Gc.prototype.g.hs,this.d),this.ni=!0)};p.g={};h=p.g;h.Wr=function(){return this.A};h.wx=function(c,f){var e=[];hc[this.group].forEach(function(b){e.push(b.u/(b.duration+b.qa+b.Ha))});return fc(Math.min.apply(null,e),c,f)};h.zx=function(c,f){return fc(this.u/(this.duration+this.qa+this.Ha),c,f)};h.Ds=function(){if(!1===this.ri)return this.Rg};h.bl=function(){if(!1===this.si)return this.Sg};h.ms=function(){if(!1===this.pi)return this.Qg}; +h.hs=function(){if(!1===this.ni)return this.Pg};p.J={};var l=p.J;l.Yn=function(c){this.A=1===c};l.Gy=function(c,f){""===f&&(f=this.group);(1===c||hc[f].every(function(c){return!c.A}))&&hc[f].forEach(function(e){1===c?l.Tr.apply(e):l.Zs.apply(e)})};l.Hy=function(c,f){""===f&&(f=this.group);hc[f].forEach(function(e){l.Yi.apply(e,[c])})};l.dy=function(c,f,e){""===e&&(e=this.group);(1===c||hc[e].every(function(b){return!b.A}))&&hc[e].forEach(function(b){1===c?l.Ur.apply(b,[f]):l.Ls.apply(b,[f])})};l.Tr= +function(){this.loop=4===this.M;5==this.M&&(this.ec=1);6==this.M||-6==this.M?this.u=this.duration+this.Ha+this.qa&&(this.reverse=!0,this.u=0,this.ec=2,this.init(),this.A=!0):(this.reverse= +!0,this.u=0,this.init(),this.A=!0)};l.Zs=function(){this.A||(this.loop=4===this.M,5==this.M&&(this.ec=1),6==this.M||-6==this.M?this.u=this.duration+this.Ha+this.qa&&(this.reverse=!0,this.u=0,this.ec=2,this.init(),this.A=!0):(this.reverse=!0,this.u=0,this.init(),this.A=!0))};l.Ns=function(c){this.duration=c};l.Xs=function(c){this.eg=c;this.qa=parseFloat(this.eg.split(",")[0]); +this.Ha=parseFloat(this.eg.split(",")[1]);if(0>this.qa||isNaN(this.qa))this.qa=0;if(0>this.Ha||isNaN(this.Ha))this.Ha=0};l.Us=function(c){"string"==typeof c?(this.target=c,this.S=parseFloat(c.split(",")[0]),this.Za=parseFloat(c.split(",")[1])):this.S=this.target=c;this.A||this.init()};l.yy=function(c){c&&(c=c.Pl())&&(this.Xb=c,this.target="OBJ")};l.zy=function(c){2==this.C||3==this.C||4==this.C||5==this.C||6==this.C?("string"==typeof c?this.target=parseFloat(c.split(",")[0]):this.target=""+c+","+ +this.Za,this.S=this.target):(this.target=String(c)+","+this.target.split(",")[1],this.S=parseFloat(this.target.split(",")[0]),this.Za=parseFloat(this.target.split(",")[1]));this.A||(this.mf(),this.init())};l.Ay=function(c){2==this.C||3==this.C||4==this.C||5==this.C||6==this.C?this.S=this.target="string"==typeof c?parseFloat(c)+"":this.S+","+c:(this.target=this.target.split(",")[0]+","+String(c),this.S=parseFloat(this.target.split(",")[0]),this.Za=parseFloat(this.target.split(",")[1]));this.A||(this.mf(), +this.init())};l.Ps=function(c){"string"==typeof c?(this.q=c,this.R=parseFloat(c.split(",")[0]),this.cb=parseFloat(c.split(",")[1])):(this.q=""+c,this.R=c);6==this.C&&(this.value=this.R);this.A||(this.mf(),this.init())};l.oy=function(c){2==this.C||3==this.C||4==this.C||5==this.C||6==this.C?("string"==typeof c?this.q=parseFloat(c):this.q=""+c+","+this.cb,this.R=this.q):(""==this.q&&(this.q="current"),this.q=String(c)+","+("current"==this.q?this.rf:this.q.split(",")[1]),this.R=parseFloat(this.q.split(",")[0]), +this.cb=parseFloat(this.q.split(",")[1]));6==this.C&&(this.value=this.R);this.A||(this.mf(),this.init())};l.qy=function(c){2==this.C||3==this.C||4==this.C||5==this.C||6==this.C?("string"==typeof c?this.q=parseFloat(c):this.q=""+this.R+","+c,this.R=this.q):(""==this.q&&(this.q="current"),this.q=("current"==this.q?this.qf:this.q.split(",")[0])+","+String(c),this.R=parseFloat(this.q.split(",")[0]),this.cb=parseFloat(this.q.split(",")[1]));this.A||(this.mf(),this.init())};l.Dy=function(c){this.value= +c};l.Cy=function(c){this.C=c};l.ky=function(c){this.yh=c};l.uy=function(c){this.M=c};l.ty=function(c,f,e,b,h,d,a,g){this.C=c;this.M=f;this.yh=e;l.Ps.apply(this,[b]);l.Us.apply(this,[h]);l.Ns.apply(this,[d]);l.Xs.apply(this,[a]);this.Lb=g;this.mf()};p.Ea={};p=p.Ea;p.ay=function(c){c.H(this.u/(this.duration+this.qa+this.Ha))};p.by=function(c){c.H(this.u)};p.Pr=function(c){c.H(this.duration)};p.Hx=function(c){c.H(this.qa)};p.Dx=function(c){c.H(this.Ha)};p.Jy=function(c){c.Ub(this.target)};p.ct=function(c){c.H(this.value)}; +p.Lf=function(c){c.Ca(this.Lf?1:0)}})(); +function qc(){return[tc,X,sc,rc,uc,Z,Ac,zc,wc,yc,xc,vc,Gc,W.prototype.g.Qn,tc.prototype.J.Play,rc.prototype.J.Or,yc.prototype.J.Is,W.prototype.J.dt,sc.prototype.J.CallFunction,X.prototype.J.Rr,uc.prototype.J.Zn,sc.prototype.g.Wi,rc.prototype.J.Qs,rc.prototype.Ea.$n,rc.prototype.Ea.ao,zc.prototype.J.cl,W.prototype.J.Ws,rc.prototype.J.Ms,rc.prototype.J.cs,X.prototype.Ea.Qr,uc.prototype.J.Vs,uc.prototype.J.Os,W.prototype.Ea.Ct,W.prototype.Ea.max,W.prototype.Ea.Tv,uc.prototype.Ea.Text,rc.prototype.J.Zn, +wc.prototype.J.Ks,Z.prototype.g.$k,W.prototype.g.Mr,rc.prototype.g.Zr,W.prototype.g.as,W.prototype.g.Kr,W.prototype.J.Nr,W.prototype.g.On,xc.prototype.J.Sr,zc.prototype.J.Yi,tc.prototype.J.$s,Ac.prototype.J.Yn,W.prototype.J.Rs,W.prototype.J.Js,W.prototype.J.Vr,rc.prototype.g.Lr,tc.prototype.J.Ss,tc.prototype.J.Ts]}; diff --git a/PairOrNotPair/data.js b/PairOrNotPair/data.js new file mode 100644 index 0000000..174bc48 --- /dev/null +++ b/PairOrNotPair/data.js @@ -0,0 +1 @@ +{"project": [null,"start",[[0,true,false,false,false,false,false,false,false,false],[1,true,false,false,false,false,false,false,false,false],[2,true,false,false,false,false,false,false,false,false],[3,false,true,true,true,true,true,true,true,false],[4,false,true,true,true,true,true,true,true,false],[5,true,false,false,false,false,false,false,false,false]],[["t0",3,false,[770417277422711,256833611577389,586457774324287],2,0,null,[["A",0,false,0,0,false,748157171187077,[["images/answers-sheet0.png",2385991,1,693,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2385991,944,693,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2385991,1,1036,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2385991,1,1,941,344,1,0.5005313754081726,0.5,[],[],0]]],["B",0,false,0,0,false,668271709538924,[["images/answers-sheet0.png",2385991,944,1036,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2385991,1,1379,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2385991,944,1379,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2385991,944,1,941,344,1,0.5005313754081726,0.5,[],[],0]]],["C",0,false,0,0,false,388600034989460,[["images/answers-sheet1.png",547925,1,1,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet1.png",547925,1,344,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet2.png",586299,1,1,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2385991,1,347,941,344,1,0.5005313754081726,0.5,[],[],0]]],["D",0,false,0,0,false,476706157200565,[["images/answers-sheet2.png",586299,1,344,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet3.png",556465,1,1,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet3.png",556465,1,344,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2385991,944,347,941,344,1,0.5005313754081726,0.5,[],[],0]]]],[["Sine",6,116184630432626],["MoveTo",7,726850180192807]],false,false,300293938303058,[],null],["t1",3,false,[],0,0,null,[["Default",0,false,0,0,false,658058777157378,[["images/question-sheet0.png",492936,1,548,620,200,1,0.5,0.5,[],[],0],["images/question-sheet0.png",492936,1,344,871,202,1,0.5005740523338318,0.5,[],[],0],["images/question-sheet0.png",492936,1,1,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0]]]],[],false,false,340397430590729,[],null],["t2",3,false,[832645631551847],1,0,null,[["Default",0,false,1,0,false,890718070517948,[["images/pic-sheet0.png",1286161,0,0,1024,1024,1,0.5,0.5,[],[],1]]]],[["Fade",8,109423985995084]],false,false,189668074067921,[],null],["t3",2,false,[],0,0,null,null,[],false,false,446899036715176,[],null,[]],["t4",1,false,[],0,0,null,null,[],false,false,279951028294032,[],null,[]],["t5",3,false,[],3,0,null,[["Default",0,false,1,0,false,393340551233090,[["images/replay-sheet0.png",55908,0,0,537,172,1,0.5009310841560364,0.5,[],[],0]]]],[["Pin",9,997335910721006],["Flash",10,355884611151483],["Sine",6,267613772617883]],false,false,763551446308522,[],null],["t6",3,false,[],3,0,null,[["Default",0,false,1,0,false,325405368941043,[["images/next-sheet0.png",53743,0,0,537,172,1,0.5009310841560364,0.5,[],[],0]]]],[["Flash",10,987314135847444],["Sine",6,117363924803523],["Fade",8,772630262285075]],false,false,540124981309855,[],null],["t7",3,false,[],2,0,null,[["Default",0,false,1,0,false,504122953641039,[["images/sound-sheet0.png",287409,796,1,217,235,1,0.5023041367530823,0.5021276473999023,[],[],0],["images/sound-sheet0.png",287409,1,1,793,209,1,0.5006304979324341,0.5023923516273499,[],[],0],["images/sound-sheet0.png",287409,1,212,146,147,1,0.5,0.5034013390541077,[],[],0]]]],[["Sine",6,874245813047170],["Fade",8,338506275307331]],false,false,211306298507646,[],null],["t8",5,false,[],0,0,null,null,[],false,false,638675311149895,[],null,[1]],["t9",0,false,[],0,0,null,null,[],false,false,323812348975738,[],null,[0,0,0,1,1,600,600,10000,1]],["t10",3,false,[],1,0,null,[["Default",5,false,1,0,false,603224529360234,[["images/sprite-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[["MoveTo",7,322958347596443]],false,false,766178524824789,[],null],["t11",3,false,[],2,0,null,[["Default",5,false,1,0,false,424523015814364,[["images/logo-sheet0.png",265042,0,0,500,373,1,0.5,0.5013405084609985,[],[],0]]]],[["Fade",8,428554181912784],["Anchor",11,745231053998957]],false,false,552570555626384,[],null],["t12",3,false,[],0,0,null,[["Default",0,false,1,0,false,512646691113404,[["images/complete-sheet0.png",483680,0,0,1040,689,1,0.5,0.5007256865501404,[],[],0]]]],[],false,false,578186237731488,[],null],["t13",3,false,[],3,0,null,[["Default",0,false,1,0,false,827796241670572,[["images/school_khungvuong-sheet1.png",81603,0,0,350,377,1,0.5,0.5013262629508972,[],[],0],["images/school_khungvuong-sheet0.png",294828,0,0,488,464,1,0.5,0.5,[],[],0]]]],[["Pin",9,176666003666071],["MoveTo",7,150827432659523],["EaseTween",12,717002762336390]],false,false,310143570995707,[],null],["t14",4,false,[374688973006347,740796279735673],0,0,null,null,[],false,false,530011070527885,[],null],["t15",3,false,[],0,0,null,[["Default",5,false,1,0,false,652126218465288,[["images/dim-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],2]]]],[],false,false,110156613665136,[],null],["t16",3,false,[874243244969898],4,0,null,[["Default",0,false,1,0,false,407598299457050,[["images/bgm-sheet0.png",128521,0,0,282,305,1,0.5,0.5016393661499023,[],[],0],["images/bgm-sheet1.png",96997,0,0,282,305,1,0.5,0.5016393661499023,[],[],0]]]],[["Sine",6,264685771416962],["Flash",10,327076101457835],["Anchor",11,482587245275702],["Fade",8,428440316894370]],false,false,490274028858184,[],null],["t17",3,false,[],0,0,null,[["Default",5,false,1,0,false,350754728101400,[["images/whitebg-sheet0.png",99793,0,0,1920,1080,1,0.5,0.5,[],[],1]]]],[],false,true,579527970976703,[],null],["t18",4,false,[],2,0,null,null,[["Fade",8,178464480505189],["Pin",9,467526081848334]],false,false,786176055574544,[],null],["t19",3,false,[497177436793595,729239309366386],2,0,null,[["Default",0,false,1,0,false,669985239709455,[["images/board-sheet0.png",169969,1,1,750,496,1,0.5066666603088379,0.5645161271095276,[],[-0.409105658531189,-0.4197541475296021,-0.007308661937713623,-0.5473732352256775,0.3957723379135132,-0.4197541475296021,0.4702263474464417,-0.06546813249588013,0.4599573612213135,0.3859598636627197,-0.007308661937713623,0.4050078988075256,-0.4784253537654877,0.3935788869857788,-0.489978551864624,-0.06546813249588013],0],["images/board-sheet0.png",169969,1,499,750,496,1,0.5066666603088379,0.5645161271095276,[],[],0],["images/board-sheet1.png",81031,0,0,750,496,1,0.5053333044052124,0.5645161271095276,[],[],0]]]],[["MoveTo",7,528559270144365],["Flash",10,612902044506076]],false,false,287865184791218,[],null],["t20",3,false,[],1,0,null,[["Default",5,false,1,0,false,874838186239528,[["images/khunganh-sheet0.png",17395,0,0,344,333,1,0.5,0.5015015006065369,[],[-0.4447674155235291,-0.4444443881511688,0,-0.4744744896888733,0.4389529824256897,-0.4384384155273438,0.4302330017089844,0.4264264702796936,-0.4389534890651703,0.4354354739189148,-0.4709301888942719,-0.003003507852554321],0]]]],[["Pin",9,231061795543969]],false,false,140945273690195,[],null],["t21",3,false,[],1,0,null,[["Default",5,false,1,0,false,874621596859031,[["images/khungchu-sheet0.png",18022,0,0,344,333,1,0.5,0.5015015006065369,[],[-0.4447674155235291,-0.4444443881511688,0,-0.4744744896888733,0.4389529824256897,-0.4384384155273438,0.4302330017089844,0.4264264702796936,-0.4389534890651703,0.4354354739189148,-0.4709301888942719,-0.003003507852554321],0]]]],[["Pin",9,159833150200432]],false,false,697937616815567,[],null],["t22",3,false,[],2,0,null,[["Default",5,false,1,0,false,292221362444914,[["images/pair-sheet0.png",35236,0,0,260,261,1,0.5,0.5019156932830811,[],[-0.3499999940395355,-0.3524906933307648,0,-0.4980842769145966,0.3500000238418579,-0.3524906933307648,0.4961540102958679,-0.003831684589385986,0.3500000238418579,0.3486592769622803,0,0.4942532777786255,-0.3499999940395355,0.3486592769622803,-0.5,-0.003831684589385986],0]]]],[["Flash",10,789549466343500],["Fade",8,109950111032208]],false,false,105578797035894,[],null],["t23",3,false,[],2,0,null,[["Default",5,false,1,0,false,276152198258229,[["images/notpair-sheet0.png",40570,0,0,260,261,1,0.5,0.5019156932830811,[],[-0.3499999940395355,-0.3524906933307648,0,-0.4980842769145966,0.3500000238418579,-0.3524906933307648,0.5,-0.003831684589385986,0.3500000238418579,0.3486592769622803,0,0.4942532777786255,-0.3499999940395355,0.3486592769622803,-0.496153861284256,-0.003831684589385986],0]]]],[["Flash",10,211067305910300],["Fade",8,707312699042370]],false,false,997385037897763,[],null],["t24",4,false,[],0,0,null,null,[],false,false,507890928994608,[],null],["t25",3,false,[],0,0,null,[["Default",5,false,1,0,false,948531212930523,[["images/bdfsbd-sheet0.png",91572,0,0,537,172,1,0.5009310841560364,0.5,[],[-0.4990688860416412,-0.4941860437393189,0.4972069263458252,-0.4941860437393189,0.4953449368476868,0.4883720278739929,-0.4972066879272461,0.4883720278739929],0]]]],[],false,false,842009814452812,[],null],["t26",3,false,[],3,0,null,[["Default",5,false,1,0,false,253298347444356,[["images/play-sheet0.png",53541,0,0,539,172,1,0.5009276270866394,0.5,[],[-0.4434137344360352,-0.3197669982910156,-0.001855641603469849,-0.5,0.4415583610534668,-0.3197669982910156,0.4953613877296448,0,0.4397033452987671,0.3139529824256897,-0.001855641603469849,0.4941859841346741,-0.4415584206581116,0.3139529824256897,-0.4990723431110382,0],0]]]],[["Flash",10,565170106950694],["Sine",6,990973325326001],["Fade",8,390983964532712]],false,true,630401130480111,[],null],["t27",3,false,[],0,0,null,[["Default",5,false,1,0,false,528242315250110,[["images/logo-sheet0.png",265042,0,0,500,373,1,0.5,0.5013405084609985,[],[-0.2120000123977661,-0.1152815222740173,0,-0.4450401961803436,0.2099999785423279,-0.1126005053520203,0.4919999837875366,-0.00268051028251648,0.4279999732971191,0.4021444916725159,0,0.4986594915390015,-0.4280000030994415,0.4021444916725159,-0.492000013589859,-0.00268051028251648],0]]]],[],false,true,787074605580749,[],null],["t28",3,true,[],1,0,null,null,[["Pin",9,613555469553139]],false,false,679965430658239,[],null]],[[28,0,2,1,7]],[["Layout 1",1400,900,false,"Event sheet 1",844875475670604,[["Layer 0",0,884568816551023,true,[255,255,255],true,0,0,1,false,false,0,0,0,[[[758,463,0,2563.544677734375,1441.993896484375,0,0,0.2000000029802322,0.5,0.5,0,0,[]],17,27,[],[],[0,"Default",0,1]],[[696,807,0,434.4059753417969,135.2743682861328,0,0,1,0.5009310841560364,0.5,0,0,[]],6,14,[],[[],[1,2,0,3,0,0,0,10,0],[0,0.5,0,0,0]],[0,"Default",0,1]],[[2354,200,0,250,250,0,0,1,0.5,0.5,0,0,[]],10,19,[],[[1,1200,0,0]],[0,"Default",0,1]],[[701,379,0,1038.234130859375,686.6188354492188,0,0,1,0.5066666603088379,0.5645161271095276,0,0,[]],19,0,[[0],[0]],[[1,1200,0,0],[]],[0,"Default",0,1]],[[472,404,0,340,340,0,0,1,0.5,0.5,0,0,[]],2,7,[[0]],[[],[0,1,0,0,0]],[0,"Default",0,1]],[[473.4609985351563,410,0,399.9021301269531,399.9021301269531,0,0,1,0.5,0.5015015006065369,0,0,[]],20,4,[],[[]],[0,"Default",0,1]],[[926,410,0,400,400,0,0,1,0.5,0.5015015006065369,0,0,[]],21,5,[],[[]],[0,"Default",0,1]],[[568,805,0,150,150,0,0,1,0.5,0.5019156932830811,0,0,[]],22,6,[],[[],[0,1,0,0,0]],[0,"Default",0,1]],[[822,805,0,150,150,0,0,1,0.5,0.5019156932830811,0,0,[]],23,10,[],[[],[0,1,0,0,0]],[0,"Default",0,1]],[[922.1759033203125,403.0046081542969,0,323,343.8303833007813,0,0,1,0.5,0.5,0,0,[]],18,3,[],[[0,1,0,0,0],[]],["Text",1,"bold italic 48pt Comic Sans MS","rgb(0,0,0)",1,1,4,0,0]],[[1316,84,0,150,150,0,0,1,0.5,0.5016393661499023,0,0,[]],16,1,[[0]],[[0,2,0,4,0,0,0,10,0],[],[1,0,0,0,1],[1,1,0,0,0]],[0,"Default",0,1]],[[132,99,0,249.8877868652344,184.7029113769531,0,0,1,0.5,0.5013405084609985,0,0,[]],11,26,[],[[1,1,0,0,0],[0,0,0,0,1]],[0,"Default",0,1]]],[]],["Layer 1",1,697639113343856,false,[255,255,255],true,0,0,1,false,false,1,0,0,[[[717,455,0,2522.017822265625,1607.77001953125,0,0,1,0.5,0.5,0,0,[]],15,9,[],[],[0,"Default",0,1]],[[701,264,0,849.2421264648438,518.1749877929688,0,0,1,0.5,0.5007256865501404,0,0,[]],12,21,[],[],[0,"Default",0,1]],[[702,659,0,434.406005859375,135.2740020751953,0,0,1,0.5009310841560364,0.5,0,0,[]],5,15,[],[[],[],[1,2,0,2.5,0,0,0,15,0]],[0,"Default",0,1]],[[713.7083740234375,422.1500854492188,0,218.2422485351563,92.78143310546875,0,0,1,0.5,0.5,0,0,[]],24,2,[],[],["10/10",0,"bold italic 36pt Comic Sans MS","rgb(51,204,51)",1,1,4,0,0]]],[]]],[],[]],["start",1400,900,false,"start",273966434526758,[["Layer 0",0,260148896577690,true,[255,255,255],true,0,0,1,false,false,1,0,0,[[[720,443,0,2405.890625,1353.3134765625,0,0,0.2000000029802322,0.5,0.5,0,0,[]],17,8,[],[],[0,"Default",0,1]],[[701,745,0,539,172,0,0,1,0.5009276270866394,0.5,0,0,[]],26,16,[],[[],[1,2,0,3,0,0,0,15,0],[1,1,0,0,0]],[0,"Default",0,1]],[[700,329,0,762.1680297851563,563.3510131835938,0,0,1,0.5,0.5013405084609985,0,0,[]],27,13,[],[],[0,"Default",0,1]]],[]]],[],[]]],[["Event sheet 1",[[1,"isAnswered",0,0,false,false,343001073098932,false],[1,"isFirsLoad",0,1,false,false,107660939586163,false],[0,null,false,null,735973858432743,[[-1,13,null,1,false,false,false,678751856976844,false]],[[9,14,null,504954620332075,false,[[2,["edugamery-music-20",false]],[3,1],[0,[0,-10]],[1,[2,"bgm"]]]],[6,15,null,534400534220442,false],[2,16,"Pin",502816676456868,false,[[4,19],[3,0]]],[18,16,"Pin",308047144407540,false,[[4,19],[3,0]]],[20,16,"Pin",474221527969462,false,[[4,19],[3,0]]],[21,16,"Pin",643099170131388,false,[[4,19],[3,0]]],[-1,17,null,230151175983218,false,[[0,[1,0.1]]]],[3,18,null,492445486390135,false,[[1,[2,"initAnimation"]],[13]]],[4,19,null,767320030811198,false,[[1,[2,"tdv_sdk.start();"]]]],[-1,17,null,875969266385846,false,[[0,[0,1]]]],[18,20,null,927956499011984,false,[[3,1]]],[3,18,null,349100146579837,false,[[1,[2,"LoadLevel"]],[13]]]]],[0,null,false,null,409190670644589,[[3,21,null,2,false,false,false,588434831572510,false,[[1,[2,"initAnimation"]]]]],[[19,22,null,507439785677112,false,[[10,0],[7,[20,19,23,false,null]]]],[19,22,null,677170194000670,false,[[10,1],[7,[20,19,24,false,null]]]],[-1,17,null,930788557882056,false,[[0,[1,0.01]]]],[19,25,"MoveTo",516491866343797,false,[[0,[20,19,23,false,null]],[0,[0,-4000]]]]]],[0,null,false,null,595558665441997,[[3,21,null,2,false,false,false,704627240028410,false,[[1,[2,"LoadLevel"]]]]],[[6,15,null,121295918085707,false],[-1,26,null,253588548705646,false,[[11,"isAnswered"],[7,[0,0]]]],[19,27,null,486350455968594,false,[[0,[0,0]]]],[2,28,null,541604264527818,false,[[1,[20,4,29,false,null,[[2,"tdv_sdk.getCurImage()"]]]],[3,1],[3,0]]],[18,30,null,477768562972954,false,[[7,[20,4,29,false,null,[[2,"tdv_sdk.getCurText()"]]]]]],[18,31,null,889704171398896,false,[[0,[19,32,[[6,[0,48],[7,[0,9],[19,33,[[0,1],[19,34,[[20,18,35,true,null]]]]]]],[0,36],[0,72]]]]]],[22,36,null,194936901832718,false,[[3,1]]],[23,36,null,277189195476717,false,[[3,1]]],[-1,17,null,720085460611542,false,[[0,[1,0.1]]]],[22,37,"Fade",270950208064557,false],[23,37,"Fade",789810456457350,false]],[[0,null,false,null,482049696267697,[],[[19,25,"MoveTo",953887716607701,false,[[0,[21,19,false,null,0]],[0,[21,19,false,null,1]]]],[-1,17,null,884957720804727,false,[[0,[1,0.5]]]],[9,14,null,362569822775843,false,[[2,["alert-234711",false]],[3,0],[0,[0,0]],[1,[2,""]]]]]]]],[0,null,false,null,425167135176713,[[8,38,null,1,false,false,false,410949676731972,false,[[4,22]]],[-1,39,null,0,false,false,false,816908260311263,false,[[11,"isAnswered"],[8,0],[7,[0,0]]]],[22,40,null,0,false,false,false,774510238044776,false],[-1,41,null,0,false,true,false,436315931424812,false,[[5,[0,1]]]]],[[-1,26,null,664374503571565,false,[[11,"isAnswered"],[7,[0,1]]]]],[[0,null,false,null,687121059389056,[[-1,42,null,0,false,false,false,675420682236615,false,[[7,[20,4,29,false,null,[[2,"tdv_sdk.isPair()"]]]],[8,0],[7,[0,1]]]]],[[9,14,null,333537086591026,false,[[2,["collect-5930",false]],[3,0],[0,[0,20]],[1,[2,""]]]],[4,19,null,842876495724711,false,[[1,[2,"tdv_sdk.addScore()"]]]],[19,27,null,292685915748533,false,[[0,[0,1]]]],[22,36,null,499606869203505,false,[[3,0]]],[23,36,null,830686324730862,false,[[3,0]]],[-1,17,null,751297008524629,false,[[0,[0,1]]]],[-1,43,null,726469054775575,false,[[4,6],[5,[0,0]],[0,[0,696]],[0,[0,807]]]],[6,37,"Fade",772397849466149,false]]],[0,null,false,null,992062107047931,[[-1,44,null,0,false,false,false,982161926626835,false]],[[9,14,null,628933887173018,false,[[2,["error-010-206498",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[19,27,null,427825204054753,false,[[0,[0,2]]]],[22,36,null,265698588282881,false,[[3,0]]],[23,36,null,505546721213451,false,[[3,0]]],[-1,17,null,764090130554935,false,[[0,[0,1]]]],[-1,43,null,544666356647727,false,[[4,6],[5,[0,0]],[0,[0,696]],[0,[0,807]]]],[6,37,"Fade",386006868476766,false]]]]],[0,null,false,null,519733936846496,[[8,38,null,1,false,false,false,721726484518019,false,[[4,23]]],[-1,39,null,0,false,false,false,346185755632153,false,[[11,"isAnswered"],[8,0],[7,[0,0]]]],[23,40,null,0,false,false,false,349282808967504,false],[-1,41,null,0,false,true,false,730764445901707,false,[[5,[0,1]]]]],[[-1,26,null,760207462598177,false,[[11,"isAnswered"],[7,[0,1]]]]],[[0,null,false,null,855991318139839,[[-1,42,null,0,false,false,false,624977093234105,false,[[7,[20,4,29,false,null,[[2,"tdv_sdk.isPair()"]]]],[8,0],[7,[0,0]]]]],[[9,14,null,427718370477224,false,[[2,["collect-5930",false]],[3,0],[0,[0,20]],[1,[2,""]]]],[4,19,null,603000247263996,false,[[1,[2,"tdv_sdk.addScore()"]]]],[19,27,null,449452962161661,false,[[0,[0,1]]]],[22,36,null,632258332121009,false,[[3,0]]],[23,36,null,431111542012752,false,[[3,0]]],[-1,17,null,347218181949268,false,[[0,[0,1]]]],[-1,43,null,706062997161292,false,[[4,6],[5,[0,0]],[0,[0,696]],[0,[0,807]]]],[6,37,"Fade",486335734202655,false]]],[0,null,false,null,506910406865071,[[-1,44,null,0,false,false,false,601131169069431,false]],[[9,14,null,611204751210187,false,[[2,["error-010-206498",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[19,27,null,903596844672133,false,[[0,[0,2]]]],[22,36,null,642282504253023,false,[[3,0]]],[23,36,null,412354121227182,false,[[3,0]]],[-1,17,null,496322793265050,false,[[0,[0,1]]]],[-1,43,null,928573849238273,false,[[4,6],[5,[0,0]],[0,[0,696]],[0,[0,807]]]],[6,37,"Fade",368427148029774,false]]]]],[0,null,false,null,546637032064237,[[8,38,null,1,false,false,false,988303391990441,false,[[4,6]]],[-1,39,null,0,false,false,false,805970323488165,false,[[11,"isAnswered"],[8,0],[7,[0,1]]]],[-1,41,null,0,false,true,false,501427101610882,false,[[5,[0,1]]]]],[[9,14,null,517797530862458,false,[[2,["button-124476",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[6,45,"Flash",292980048208733,false,[[0,[1,0.1]],[0,[1,0.1]],[0,[1,0.4]]]],[-1,17,null,246664286771808,false,[[0,[1,0.5]]]],[19,25,"MoveTo",910914095815933,false,[[0,[20,19,23,false,null]],[0,[0,-4000]]]],[19,27,null,907626497138268,false,[[0,[0,0]]]],[4,19,null,600242195867791,false,[[1,[2,"tdv_sdk.nextLevel();"]]]]],[[0,null,false,null,306999063381999,[[-1,42,null,0,false,false,false,338629185106646,false,[[7,[20,4,29,false,null,[[2,"tdv_sdk.getCurrentLevel()"]]]],[8,3],[7,[20,4,29,false,null,[[2,"tdv_sdk.getTotalQuestion()"]]]]]]],[[-1,17,null,788053865116839,false,[[0,[0,1]]]],[3,18,null,471413273405052,false,[[1,[2,"LoadLevel"]],[13]]],[11,37,"Fade",450152975343005,false],[16,37,"Fade",946136216358273,false]]],[0,null,false,null,510975876115416,[[-1,44,null,0,false,false,false,866198126906359,false]],[[19,46,"MoveTo",959698770287638,false],[9,47,null,723643415021154,false],[24,30,null,544305215489765,false,[[7,[10,[10,[20,4,29,false,null,[[2,"tdv_sdk.getScore()"]]],[2,"/"]],[20,4,29,false,null,[[2,"tdv_sdk.getTotalQuestion()"]]]]]]],[-1,17,null,176942394927690,false,[[0,[1,1]]]],[6,48,"Sine",285955979093282,false,[[3,0]]],[-1,49,null,710545327636093,false,[[5,[0,1]],[3,1]]],[9,14,null,121749289042843,false,[[2,["material-buy-success-394517",false]],[3,0],[0,[0,0]],[1,[2,""]]]]]]]],[0,null,false,null,200696350279752,[[8,38,null,1,false,false,false,983805767333692,false,[[4,5]]],[-1,41,null,0,false,false,false,179094736842333,false,[[5,[0,1]]]]],[[9,14,null,234604129993227,false,[[2,["sample_input_typing01_kofi_by_miraclei-363634",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[5,45,"Flash",140315931338638,false,[[0,[1,0.1]],[0,[1,0.1]],[0,[1,0.4]]]],[-1,17,null,687337313859254,false,[[0,[1,0.5]]]],[-1,49,null,508099799353108,false,[[5,[0,1]],[3,0]]],[-1,50,null,649017074227609,false],[-1,51,null,710117629089988,false,[[6,"start"]]]]],[0,null,false,null,497875016396908,[[8,38,null,1,false,false,false,574533384469669,false,[[4,16]]],[16,52,null,0,false,false,false,401079790263055,false,[[10,0],[8,0],[7,[0,0]]]]],[[16,27,null,568234222489359,false,[[0,[0,1]]]],[9,14,null,519544635857191,false,[[2,["bubble-pop-389501",false]],[3,0],[0,[0,10]],[1,[2,""]]]],[16,45,"Flash",224348460950182,false,[[0,[1,0.1]],[0,[1,0.1]],[0,[1,0.4]]]],[-1,17,null,545952537193136,false,[[0,[1,0.5]]]],[9,53,null,629182839875657,false,[[1,[2,"bgm"]],[3,0]]],[16,22,null,923341951852972,false,[[10,0],[7,[0,1]]]]]],[0,null,false,null,210684952435513,[[8,38,null,1,false,false,false,148114096030757,false,[[4,16]]],[16,52,null,0,false,false,false,109598729971762,false,[[10,0],[8,0],[7,[0,1]]]]],[[16,27,null,159791352986399,false,[[0,[0,0]]]],[9,14,null,712961646003776,false,[[2,["bubble-pop-389501",false]],[3,0],[0,[0,10]],[1,[2,""]]]],[16,45,"Flash",273205269541989,false,[[0,[1,0.1]],[0,[1,0.1]],[0,[1,0.4]]]],[-1,17,null,738733383779161,false,[[0,[1,0.5]]]],[9,53,null,721107168884409,false,[[1,[2,"bgm"]],[3,1]]],[16,22,null,958420977254663,false,[[10,0],[7,[0,0]]]]]],[0,null,false,null,193489767858303,[[8,38,null,1,false,false,false,915162646906181,false,[[4,20]]],[-1,41,null,0,false,true,false,302546429403442,false,[[5,[0,1]]]]],[[9,14,null,986337956721232,false,[[2,["bubble-pop-389501",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[9,54,null,773146276942959,false,[[1,[2,"bgm"]],[3,0]]],[-1,17,null,347061226330189,false,[[0,[1,0.5]]]],[4,19,null,150197435293596,false,[[1,[2,"tdv_sdk.playAudioImage()"]]]],[-1,17,null,199211375649296,false,[[0,[0,2]]]],[9,54,null,430049925753612,false,[[1,[2,"bgm"]],[3,1]]]]],[0,null,false,null,392285609775644,[[8,38,null,1,false,false,false,932294330070799,false,[[4,21]]],[-1,41,null,0,false,true,false,260212170289922,false,[[5,[0,1]]]]],[[9,14,null,788929857851768,false,[[2,["bubble-pop-389501",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[9,54,null,699176035424755,false,[[1,[2,"bgm"]],[3,0]]],[-1,17,null,818710034633925,false,[[0,[1,0.5]]]],[4,19,null,127295951559839,false,[[1,[2,"tdv_sdk.playAudioText()"]]]],[-1,17,null,290184743229003,false,[[0,[0,2]]]],[9,54,null,970053424227904,false,[[1,[2,"bgm"]],[3,1]]]]]]],["start",[[0,null,false,null,495088518046384,[[8,38,null,1,false,false,false,468993005045373,false,[[4,26]]]],[[9,14,null,336453662830202,false,[[2,["button-124476",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[26,45,"Flash",859790323502600,false,[[0,[1,0.1]],[0,[1,0.1]],[0,[1,0.4]]]],[-1,17,null,458452819069412,false,[[0,[1,0.5]]]],[-1,51,null,113420417213474,false,[[6,"Layout 1"]]]]]]]],[["click.m4a",2444],["click.ogg",5621],["correct.m4a",10198],["correct.ogg",12421],["fail.m4a",29104],["fail.ogg",24343],["applause-383901.ogg",358326],["correct-156911.ogg",7703],["error-04-199275.ogg",11946],["pop-402324-1.m4a",14038],["pop-402324.m4a",14038],["pop-402324.ogg",11710],["successed-295058.ogg",22120],["wrong-answer-129254.ogg",16900],["alert-234711.ogg",23907],["bubble-pop-389501.ogg",18257],["button-124476.ogg",13157],["collect-5930.ogg",10731],["error-010-206498.ogg",11425],["error-08-206492.ogg",15621],["material-buy-success-394517.ogg",21008],["sample_input_typing01_kofi_by_miraclei-363634.ogg",24117],["click-234708.ogg",6353],["8-bit-gaming-background-music-358443.ogg",934596],["edugamery-music-20.ogg",1614594]],"media/",false,1400,900,3,true,true,true,"1.0.0.0",true,true,3,0,28,false,true,1,true,"PairOrNotPair-Demo",0,[[2,19,21,20,18]]]} \ No newline at end of file diff --git a/PairOrNotPair/icon-114.png b/PairOrNotPair/icon-114.png new file mode 100644 index 0000000..bf56364 Binary files /dev/null and b/PairOrNotPair/icon-114.png differ diff --git a/PairOrNotPair/icon-128.png b/PairOrNotPair/icon-128.png new file mode 100644 index 0000000..523ffd0 Binary files /dev/null and b/PairOrNotPair/icon-128.png differ diff --git a/PairOrNotPair/icon-16.png b/PairOrNotPair/icon-16.png new file mode 100644 index 0000000..e1b785c Binary files /dev/null and b/PairOrNotPair/icon-16.png differ diff --git a/PairOrNotPair/icon-256.png b/PairOrNotPair/icon-256.png new file mode 100644 index 0000000..0916f57 Binary files /dev/null and b/PairOrNotPair/icon-256.png differ diff --git a/PairOrNotPair/icon-32.png b/PairOrNotPair/icon-32.png new file mode 100644 index 0000000..02edf8c Binary files /dev/null and b/PairOrNotPair/icon-32.png differ diff --git a/PairOrNotPair/images/answers-sheet0.png b/PairOrNotPair/images/answers-sheet0.png new file mode 100644 index 0000000..e8b8c6b Binary files /dev/null and b/PairOrNotPair/images/answers-sheet0.png differ diff --git a/PairOrNotPair/images/answers-sheet1.png b/PairOrNotPair/images/answers-sheet1.png new file mode 100644 index 0000000..4501958 Binary files /dev/null and b/PairOrNotPair/images/answers-sheet1.png differ diff --git a/PairOrNotPair/images/answers-sheet2.png b/PairOrNotPair/images/answers-sheet2.png new file mode 100644 index 0000000..8a14d07 Binary files /dev/null and b/PairOrNotPair/images/answers-sheet2.png differ diff --git a/PairOrNotPair/images/answers-sheet3.png b/PairOrNotPair/images/answers-sheet3.png new file mode 100644 index 0000000..ee46cb6 Binary files /dev/null and b/PairOrNotPair/images/answers-sheet3.png differ diff --git a/PairOrNotPair/images/bdfsbd-sheet0.png b/PairOrNotPair/images/bdfsbd-sheet0.png new file mode 100644 index 0000000..b553219 Binary files /dev/null and b/PairOrNotPair/images/bdfsbd-sheet0.png differ diff --git a/PairOrNotPair/images/bgm-sheet0.png b/PairOrNotPair/images/bgm-sheet0.png new file mode 100644 index 0000000..499c77c Binary files /dev/null and b/PairOrNotPair/images/bgm-sheet0.png differ diff --git a/PairOrNotPair/images/bgm-sheet1.png b/PairOrNotPair/images/bgm-sheet1.png new file mode 100644 index 0000000..883e6e9 Binary files /dev/null and b/PairOrNotPair/images/bgm-sheet1.png differ diff --git a/PairOrNotPair/images/board-sheet0.png b/PairOrNotPair/images/board-sheet0.png new file mode 100644 index 0000000..5c666ec Binary files /dev/null and b/PairOrNotPair/images/board-sheet0.png differ diff --git a/PairOrNotPair/images/board-sheet1.png b/PairOrNotPair/images/board-sheet1.png new file mode 100644 index 0000000..00d0a97 Binary files /dev/null and b/PairOrNotPair/images/board-sheet1.png differ diff --git a/PairOrNotPair/images/complete-sheet0.png b/PairOrNotPair/images/complete-sheet0.png new file mode 100644 index 0000000..49e548c Binary files /dev/null and b/PairOrNotPair/images/complete-sheet0.png differ diff --git a/PairOrNotPair/images/dim-sheet0.png b/PairOrNotPair/images/dim-sheet0.png new file mode 100644 index 0000000..4901461 Binary files /dev/null and b/PairOrNotPair/images/dim-sheet0.png differ diff --git a/PairOrNotPair/images/khunganh-sheet0.png b/PairOrNotPair/images/khunganh-sheet0.png new file mode 100644 index 0000000..04732ab Binary files /dev/null and b/PairOrNotPair/images/khunganh-sheet0.png differ diff --git a/PairOrNotPair/images/khungchu-sheet0.png b/PairOrNotPair/images/khungchu-sheet0.png new file mode 100644 index 0000000..98953ad Binary files /dev/null and b/PairOrNotPair/images/khungchu-sheet0.png differ diff --git a/PairOrNotPair/images/logo-sheet0.png b/PairOrNotPair/images/logo-sheet0.png new file mode 100644 index 0000000..d8f520e Binary files /dev/null and b/PairOrNotPair/images/logo-sheet0.png differ diff --git a/PairOrNotPair/images/next-sheet0.png b/PairOrNotPair/images/next-sheet0.png new file mode 100644 index 0000000..108d955 Binary files /dev/null and b/PairOrNotPair/images/next-sheet0.png differ diff --git a/PairOrNotPair/images/notpair-sheet0.png b/PairOrNotPair/images/notpair-sheet0.png new file mode 100644 index 0000000..45c2145 Binary files /dev/null and b/PairOrNotPair/images/notpair-sheet0.png differ diff --git a/PairOrNotPair/images/pair-sheet0.png b/PairOrNotPair/images/pair-sheet0.png new file mode 100644 index 0000000..0e4d24f Binary files /dev/null and b/PairOrNotPair/images/pair-sheet0.png differ diff --git a/PairOrNotPair/images/pic-sheet0.png b/PairOrNotPair/images/pic-sheet0.png new file mode 100644 index 0000000..ef98ba7 Binary files /dev/null and b/PairOrNotPair/images/pic-sheet0.png differ diff --git a/PairOrNotPair/images/play-sheet0.png b/PairOrNotPair/images/play-sheet0.png new file mode 100644 index 0000000..5ea4ff3 Binary files /dev/null and b/PairOrNotPair/images/play-sheet0.png differ diff --git a/PairOrNotPair/images/question-sheet0.png b/PairOrNotPair/images/question-sheet0.png new file mode 100644 index 0000000..92a913e Binary files /dev/null and b/PairOrNotPair/images/question-sheet0.png differ diff --git a/PairOrNotPair/images/replay-sheet0.png b/PairOrNotPair/images/replay-sheet0.png new file mode 100644 index 0000000..9296b39 Binary files /dev/null and b/PairOrNotPair/images/replay-sheet0.png differ diff --git a/PairOrNotPair/images/school_khungvuong-sheet0.png b/PairOrNotPair/images/school_khungvuong-sheet0.png new file mode 100644 index 0000000..cd682af Binary files /dev/null and b/PairOrNotPair/images/school_khungvuong-sheet0.png differ diff --git a/PairOrNotPair/images/school_khungvuong-sheet1.png b/PairOrNotPair/images/school_khungvuong-sheet1.png new file mode 100644 index 0000000..61066d8 Binary files /dev/null and b/PairOrNotPair/images/school_khungvuong-sheet1.png differ diff --git a/PairOrNotPair/images/sound-sheet0.png b/PairOrNotPair/images/sound-sheet0.png new file mode 100644 index 0000000..f09de46 Binary files /dev/null and b/PairOrNotPair/images/sound-sheet0.png differ diff --git a/PairOrNotPair/images/sprite-sheet0.png b/PairOrNotPair/images/sprite-sheet0.png new file mode 100644 index 0000000..84a6275 Binary files /dev/null and b/PairOrNotPair/images/sprite-sheet0.png differ diff --git a/PairOrNotPair/images/whitebg-sheet0.png b/PairOrNotPair/images/whitebg-sheet0.png new file mode 100644 index 0000000..02be189 Binary files /dev/null and b/PairOrNotPair/images/whitebg-sheet0.png differ diff --git a/PairOrNotPair/index.html b/PairOrNotPair/index.html index 377599e..ceb0e16 100644 --- a/PairOrNotPair/index.html +++ b/PairOrNotPair/index.html @@ -3,7 +3,7 @@ - PairOrNotPair-Demo1234566 + PairOrNotPair-Demo diff --git a/PairOrNotPair/jquery-3.4.1.min.js b/PairOrNotPair/jquery-3.4.1.min.js new file mode 100644 index 0000000..a1c07fd --- /dev/null +++ b/PairOrNotPair/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 this._OnBroadcastChannelMessage(e)); + } + + _OnBroadcastChannelMessage(e) + { + // Have a message callback set: just forward the call. + if (this._onMessageCallback) + { + this._onMessageCallback(e); + return; + } + + // Otherwise the app hasn't loaded far enough to set a message callback. + // Buffer the incoming messages to replay when the app sets a callback. + this._queuedMessages.push(e); + } + + SetMessageCallback(f) + { + this._onMessageCallback = f; + + // Replay any queued messages through the handler, then clear the queue. + for (let e of this._queuedMessages) + this._onMessageCallback(e); + + this._queuedMessages.length = 0; + } + }; + + // Create the offline client ASAP so we receive and start queueing any messages the SW broadcasts. + window.OfflineClientInfo = new OfflineClient(); + +}()); + diff --git a/PairOrNotPair/sw.js b/PairOrNotPair/sw.js new file mode 100644 index 0000000..32ced4d --- /dev/null +++ b/PairOrNotPair/sw.js @@ -0,0 +1,403 @@ +"use strict"; + +const OFFLINE_DATA_FILE = "offline.js"; +const CACHE_NAME_PREFIX = "c2offline"; +const BROADCASTCHANNEL_NAME = "offline"; +const CONSOLE_PREFIX = "[SW] "; +const LAZYLOAD_KEYNAME = ""; + +// Create a BroadcastChannel if supported. +const broadcastChannel = (typeof BroadcastChannel === "undefined" ? null : new BroadcastChannel(BROADCASTCHANNEL_NAME)); + +////////////////////////////////////// +// Utility methods +function PostBroadcastMessage(o) +{ + if (!broadcastChannel) + return; // not supported + + // Impose artificial (and arbitrary!) delay of 3 seconds to make sure client is listening by the time the message is sent. + // Note we could remove the delay on some messages, but then we create a race condition where sometimes messages can arrive + // in the wrong order (e.g. "update ready" arrives before "started downloading update"). So to keep the consistent ordering, + // delay all messages by the same amount. + setTimeout(() => broadcastChannel.postMessage(o), 3000); +}; + +function Broadcast(type) +{ + PostBroadcastMessage({ + "type": type + }); +}; + +function BroadcastDownloadingUpdate(version) +{ + PostBroadcastMessage({ + "type": "downloading-update", + "version": version + }); +} + +function BroadcastUpdateReady(version) +{ + PostBroadcastMessage({ + "type": "update-ready", + "version": version + }); +} + +function IsUrlInLazyLoadList(url, lazyLoadList) +{ + if (!lazyLoadList) + return false; // presumably lazy load list failed to load + + try { + for (const lazyLoadRegex of lazyLoadList) + { + if (new RegExp(lazyLoadRegex).test(url)) + return true; + } + } + catch (err) + { + console.error(CONSOLE_PREFIX + "Error matching in lazy-load list: ", err); + } + + return false; +}; + +function WriteLazyLoadListToStorage(lazyLoadList) +{ + if (typeof localforage === "undefined") + return Promise.resolve(); // bypass if localforage not imported + else + return localforage.setItem(LAZYLOAD_KEYNAME, lazyLoadList) +}; + +function ReadLazyLoadListFromStorage() +{ + if (typeof localforage === "undefined") + return Promise.resolve([]); // bypass if localforage not imported + else + return localforage.getItem(LAZYLOAD_KEYNAME); +}; + +function GetCacheBaseName() +{ + // Include the scope to avoid name collisions with any other SWs on the same origin. + // e.g. "c2offline-https://example.com/foo/" (won't collide with anything under bar/) + return CACHE_NAME_PREFIX + "-" + self.registration.scope; +}; + +function GetCacheVersionName(version) +{ + // Append the version number to the cache name. + // e.g. "c2offline-https://example.com/foo/-v2" + return GetCacheBaseName() + "-v" + version; +}; + +// Return caches.keys() filtered down to just caches we're interested in (with the right base name). +// This filters out caches from unrelated scopes. +async function GetAvailableCacheNames() +{ + const cacheNames = await caches.keys(); + const cacheBaseName = GetCacheBaseName(); + return cacheNames.filter(n => n.startsWith(cacheBaseName)); +}; + +// Identify if an update is pending, which is the case when we have 2 or more available caches. +// One must be an update that is waiting, since the next navigate that does an upgrade will +// delete all the old caches leaving just one currently-in-use cache. +async function IsUpdatePending() +{ + const availableCacheNames = await GetAvailableCacheNames(); + return (availableCacheNames.length >= 2); +}; + +// Automatically deduce the main page URL (e.g. index.html or main.aspx) from the available browser windows. +// This prevents having to hard-code an index page in the file list, implicitly caching it like AppCache did. +async function GetMainPageUrl() +{ + const allClients = await clients.matchAll({ + includeUncontrolled: true, + type: "window" + }); + + for (const c of allClients) + { + // Parse off the scope from the full client URL, e.g. https://example.com/index.html -> index.html + let url = c.url; + if (url.startsWith(self.registration.scope)) + url = url.substring(self.registration.scope.length); + + if (url && url !== "/") // ./ is also implicitly cached so don't bother returning that + { + // If the URL is solely a search string, prefix it with / to ensure it caches correctly. + // e.g. https://example.com/?foo=bar needs to cache as /?foo=bar, not just ?foo=bar. + if (url.startsWith("?")) + url = "/" + url; + + return url; + } + } + + return ""; // no main page URL could be identified +}; + +// Hack to fetch optionally bypassing HTTP cache until fetch cache options are supported in Chrome (crbug.com/453190) +function fetchWithBypass(request, bypassCache) +{ + if (typeof request === "string") + request = new Request(request); + + if (bypassCache) + { + // bypass enabled: add a random search parameter to avoid getting a stale HTTP cache result + const url = new URL(request.url); + url.search += Math.floor(Math.random() * 1000000); + + return fetch(url, { + headers: request.headers, + mode: request.mode, + credentials: request.credentials, + redirect: request.redirect, + cache: "no-store" + }); + } + else + { + // bypass disabled: perform normal fetch which is allowed to return from HTTP cache + return fetch(request); + } +}; + +// Effectively a cache.addAll() that only creates the cache on all requests being successful (as a weak attempt at making it atomic) +// and can optionally cache-bypass with fetchWithBypass in every request +async function CreateCacheFromFileList(cacheName, fileList, bypassCache) +{ + // Kick off all requests and wait for them all to complete + const responses = await Promise.all(fileList.map(url => fetchWithBypass(url, bypassCache))); + + // Check if any request failed. If so don't move on to opening the cache. + // This makes sure we only open a cache if all requests succeeded. + let allOk = true; + + for (const response of responses) + { + if (!response.ok) + { + allOk = false; + console.error(CONSOLE_PREFIX + "Error fetching '" + response.url + "' (" + response.status + " " + response.statusText + ")"); + } + } + + if (!allOk) + throw new Error("not all resources were fetched successfully"); + + // Can now assume all responses are OK. Open a cache and write all responses there. + // TODO: ideally we can do this transactionally to ensure a complete cache is written as one atomic operation. + // This needs either new transactional features in the spec, or at the very least a way to rename a cache + // (so we can write to a temporary name that won't be returned by GetAvailableCacheNames() and then rename it when ready). + const cache = await caches.open(cacheName); + + try { + return await Promise.all(responses.map( + (response, i) => cache.put(fileList[i], response) + )); + } + catch (err) + { + // Not sure why cache.put() would fail (maybe if storage quota exceeded?) but in case it does, + // clean up the cache to try to avoid leaving behind an incomplete cache. + console.error(CONSOLE_PREFIX + "Error writing cache entries: ", err); + caches.delete(cacheName); + throw err; + } +}; + +async function UpdateCheck(isFirst) +{ + try { + // Always bypass cache when requesting offline.js to make sure we find out about new versions. + const response = await fetchWithBypass(OFFLINE_DATA_FILE, true); + + if (!response.ok) + throw new Error(OFFLINE_DATA_FILE + " responded with " + response.status + " " + response.statusText); + + const data = await response.json(); + + const version = data.version; + const fileList = data.fileList; + const lazyLoadList = data.lazyLoad; + const currentCacheName = GetCacheVersionName(version); + + const cacheExists = await caches.has(currentCacheName); + + // Don't recache if there is already a cache that exists for this version. Assume it is complete. + if (cacheExists) + { + // Log whether we are up-to-date or pending an update. + const isUpdatePending = await IsUpdatePending(); + if (isUpdatePending) + { + console.log(CONSOLE_PREFIX + "Update pending"); + Broadcast("update-pending"); + } + else + { + console.log(CONSOLE_PREFIX + "Up to date"); + Broadcast("up-to-date"); + } + return; + } + + // Implicitly add the main page URL to the file list, e.g. "index.html", so we don't have to assume a specific name. + const mainPageUrl = await GetMainPageUrl(); + + // Prepend the main page URL to the file list if we found one and it is not already in the list. + // Also make sure we request the base / which should serve the main page. + fileList.unshift("./"); + + if (mainPageUrl && fileList.indexOf(mainPageUrl) === -1) + fileList.unshift(mainPageUrl); + + console.log(CONSOLE_PREFIX + "Caching " + fileList.length + " files for offline use"); + + if (isFirst) + Broadcast("downloading"); + else + BroadcastDownloadingUpdate(version); + + // Note we don't bypass the cache on the first update check. This is because SW installation and the following + // update check caching will race with the normal page load requests. For any normal loading fetches that have already + // completed or are in-flight, it is pointless and wasteful to cache-bust the request for offline caching, since that + // forces a second network request to be issued when a response from the browser HTTP cache would be fine. + if (lazyLoadList) + await WriteLazyLoadListToStorage(lazyLoadList); // dump lazy load list to local storage# + + await CreateCacheFromFileList(currentCacheName, fileList, !isFirst); + const isUpdatePending = await IsUpdatePending(); + + if (isUpdatePending) + { + console.log(CONSOLE_PREFIX + "All resources saved, update ready"); + BroadcastUpdateReady(version); + } + else + { + console.log(CONSOLE_PREFIX + "All resources saved, offline support ready"); + Broadcast("offline-ready"); + } + } + catch (err) + { + // Update check fetches fail when we're offline, but in case there's any other kind of problem with it, log a warning. + console.warn(CONSOLE_PREFIX + "Update check failed: ", err); + } +}; + +self.addEventListener("install", event => +{ + // On install kick off an update check to cache files on first use. + // If it fails we can still complete the install event and leave the SW running, we'll just + // retry on the next navigate. + event.waitUntil( + UpdateCheck(true) // first update + .catch(() => null) + ); +}); + +async function GetCacheNameToUse(availableCacheNames, doUpdateCheck) +{ + // Prefer the oldest cache available. This avoids mixed-version responses by ensuring that if a new cache + // is created and filled due to an update check while the page is running, we keep returning resources + // from the original (oldest) cache only. + if (availableCacheNames.length === 1 || !doUpdateCheck) + return availableCacheNames[0]; + + // We are making a navigate request with more than one cache available. Check if we can expire any old ones. + const allClients = await clients.matchAll(); + + // If there are other clients open, don't expire anything yet. We don't want to delete any caches they + // might be using, which could cause mixed-version responses. + if (allClients.length > 1) + return availableCacheNames[0]; + + // Identify newest cache to use. Delete all the others. + const latestCacheName = availableCacheNames[availableCacheNames.length - 1]; + console.log(CONSOLE_PREFIX + "Updating to new version"); + + await Promise.all( + availableCacheNames.slice(0, -1) + .map(c => caches.delete(c)) + ); + + return latestCacheName; +}; + +async function HandleFetch(event, doUpdateCheck) +{ + const availableCacheNames = await GetAvailableCacheNames(); + + // No caches available: go to network + if (!availableCacheNames.length) + return fetch(event.request); + + const useCacheName = await GetCacheNameToUse(availableCacheNames, doUpdateCheck); + const cache = await caches.open(useCacheName); + const cachedResponse = await cache.match(event.request); + + if (cachedResponse) + return cachedResponse; // use cached response + + // We need to check if this request is to be lazy-cached. Send the request and load the lazy-load list + // from storage simultaneously. + const result = await Promise.all([fetch(event.request), ReadLazyLoadListFromStorage()]); + const fetchResponse = result[0]; + const lazyLoadList = result[1]; + + if (IsUrlInLazyLoadList(event.request.url, lazyLoadList)) + { + // Handle failure writing to the cache. This can happen if the storage quota is exceeded, which is particularly + // likely in Safari 11.1, which appears to have very tight storage limits. Make sure even in the event of an error + // we continue to return the response from the fetch. + try { + // Note clone response since we also respond with it + await cache.put(event.request, fetchResponse.clone()); + } + catch (err) + { + console.warn(CONSOLE_PREFIX + "Error caching '" + event.request.url + "': ", err); + } + } + + return fetchResponse; +}; + +self.addEventListener("fetch", event => +{ + /** NOTE (iain) + * This check is to prevent a bug with XMLHttpRequest where if its + * proxied with "FetchEvent.prototype.respondWith" no upload progress + * events are triggered. By returning we allow the default action to + * occur instead. Currently all cross-origin requests fall back to default. + */ + if (new URL(event.request.url).origin !== location.origin) + return; + + // Check for an update on navigate requests + const doUpdateCheck = (event.request.mode === "navigate"); + + const responsePromise = HandleFetch(event, doUpdateCheck); + + if (doUpdateCheck) + { + // allow the main request to complete, then check for updates + event.waitUntil( + responsePromise + .then(() => UpdateCheck(false)) // not first check + ); + } + + event.respondWith(responsePromise); +}); \ No newline at end of file diff --git a/PairOrNotPair/tdv_sdk.js b/PairOrNotPair/tdv_sdk.js new file mode 100644 index 0000000..d7252f9 --- /dev/null +++ b/PairOrNotPair/tdv_sdk.js @@ -0,0 +1,150 @@ +var tdv_sdk = {}; + +tdv_sdk.list = [ + { + "id": "1", + "name": "dog", + "image": "https://images.senaai.vn/images/dog4.jpg", + "audio": "https://audio.senaai.vn/audio/en_female_1_dog.mp3" + }, + { + "id": "2", + "name": "cat", + "image": "https://images.senaai.vn/images/cat_1.jpg", + "audio": "https://audio.senaai.vn/audio/en_female_1_cat.mp3" + }, + { + "id": "3", + "name": "cow", + "image": "https://images.senaai.vn/images/cow1.jpg", + "audio": "https://audio.senaai.vn/audio/en_female_1_cow.mp3" + }, + { + "id": "4", + "name": "fish", + "image": "https://images.senaai.vn/images/blue_fish1.jpg", + "audio": "https://audio.senaai.vn/audio/en_female_1_fish.mp3" + }, + { + "id": "5", + "name": "bird", + "image": "https://images.senaai.vn/images/brown_bird1.jpg", + "audio": "https://audio.senaai.vn/audio/en_female_1_bird.mp3" + }, + { + "id": "6", + "name": "duck", + "image": "https://images.senaai.vn/images/duck2.jpg", + "audio": "https://audio.senaai.vn/audio/en_female_1_duck.mp3" + } +]; + +tdv_sdk.max_question = 5; // CẤU HÌNH SỐ LƯỢNG CÂU HỎI TẠI ĐÂY + +tdv_sdk.gameList = []; +tdv_sdk.currentLevel = 0; +tdv_sdk.score = 0; + +tdv_sdk.shuffleArray = function(array) { + var newArray = array.slice(); + for (let i = newArray.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [newArray[i], newArray[j]] = [newArray[j], newArray[i]]; + } + return newArray; +}; + +tdv_sdk.start = function() { + tdv_sdk.currentLevel = 0; + tdv_sdk.score = 0; + tdv_sdk.gameList = []; + + var shuffledList = tdv_sdk.shuffleArray(tdv_sdk.list); + var selectedItems = shuffledList.slice(0, tdv_sdk.max_question); + + selectedItems.forEach(function(item) { + var isPair = Math.random() < 0.5; + var questionObj = { + image: item.image, + audio_image: item.audio, + is_pair: isPair + }; + + if (isPair) { + questionObj.text = item.name; + questionObj.audio_text = item.audio; + } else { + var distractor; + do { + distractor = tdv_sdk.list[Math.floor(Math.random() * tdv_sdk.list.length)]; + } while (distractor.id === item.id); + + questionObj.text = distractor.name; + questionObj.audio_text = distractor.audio; + } + tdv_sdk.gameList.push(questionObj); + }); +}; + +tdv_sdk.getCurrentLevel = function() { + return tdv_sdk.currentLevel + 1; +}; + +tdv_sdk.getTotalQuestion = function() { + return tdv_sdk.max_question; +}; + +tdv_sdk.getCurImage = function() { + if (tdv_sdk.gameList[tdv_sdk.currentLevel]) { + return tdv_sdk.gameList[tdv_sdk.currentLevel].image; + } + return ""; +}; + +tdv_sdk.getCurText = function() { + if (tdv_sdk.gameList[tdv_sdk.currentLevel]) { + return tdv_sdk.gameList[tdv_sdk.currentLevel].text; + } + return ""; +}; + +tdv_sdk.isPair = function() { + if (tdv_sdk.gameList[tdv_sdk.currentLevel]) { + return tdv_sdk.gameList[tdv_sdk.currentLevel].is_pair ? 1 : 0; + } + return 0; +}; + +tdv_sdk.playAudio = function(url) { + if (window.audio && !window.audio.paused) { + window.audio.pause(); + } + window.audio = new Audio(url); + window.audio.play(); +}; + +tdv_sdk.playAudioImage = function() { + if (tdv_sdk.gameList[tdv_sdk.currentLevel]) { + tdv_sdk.playAudio(tdv_sdk.gameList[tdv_sdk.currentLevel].audio_image); + } +}; + +tdv_sdk.playAudioText = function() { + if (tdv_sdk.gameList[tdv_sdk.currentLevel]) { + tdv_sdk.playAudio(tdv_sdk.gameList[tdv_sdk.currentLevel].audio_text); + } +}; + +tdv_sdk.nextLevel = function() { + if (tdv_sdk.currentLevel < tdv_sdk.max_question) { + tdv_sdk.currentLevel++; + } +}; + +tdv_sdk.addScore = function() { + tdv_sdk.score++; +}; + +tdv_sdk.getScore = function() { + return tdv_sdk.score; +}; \ No newline at end of file