111 lines
1.5 MiB
JavaScript
111 lines
1.5 MiB
JavaScript
|
(function(){function _r(){this.ZN={},this.MQ={}}_r.oP=[],_r.HE=function(t){var i=_r.oP;if(i.length!=0)for(var e=new z(y.E.El),r=0;r<i.length;r++)i[r].w(e);window.requestAnimationFrame(_r.HE)},window.requestAnimationFrame(_r.HE),_r.prototype.IP=function(t){var i=this.ZN[t];return i==null?!1:i.length>0},_r.prototype.addEventListener=function(t,i){this.$(t,i,null)},_r.prototype.$=function(t,i,e){if(this.ZN[t]==null&&(this.ZN[t]=[],this.MQ[t]=[]),this.ZN[t].push(i),this.MQ[t].push(e),t==y.E.El){var r=_r.oP;r.indexOf(this)==-1&&r.push(this)}},_r.prototype.removeEventListener=function(t,i){var e=this.ZN[t];if(e!=null){var r=e.indexOf(i);if(!(r<0)){var n=this.MQ[t];if(e.splice(r,1),n.splice(r,1),t==y.E.El&&e.length==0){var a=_r.oP;a.splice(a.indexOf(this),1)}}}},_r.prototype.w=function(t){t.currentTarget=this,t.target==null&&(t.target=this);var i=this.ZN[t.type];if(i!=null)for(var e=this.MQ[t.type],r=0;r<i.length;r++)e[r]==null?i[r](t):i[r].call(e[r],t)};function W(){this.cZ={},this.v5=0}W.prototype.reset=function(){this.cZ={},this.v5=0},W.prototype.es=function(t){this.v5++,this.cZ[t]=!0},W.prototype.Y9=function(t){this.v5--,delete this.cZ[t],(this.v5<=0||W.be(t,W.gV))&&this.reset()},W.prototype.s=function(t){for(var i=0;i<t.aJ.length;i++)if(this.cZ[t.aJ[i]])return!0;return!1},W.prototype.Ef=function(){var t=this,i=t.s(W.cm)?10:1,e=0,r=0;return t.s(W.Nf)&&(e=-i),t.s(W.rc)&&(e=i),t.s(W.DY)&&(r=-i),t.s(W.yF)&&(r=i),new st(e,r)},W.prototype.gL=function(){for(var t=this,i=W.Ed,e=0;e<10;e++)if(t.s(i[e]))return e;return-1},W.be=function(t,i){return i.aJ.indexOf(t)!=-1},W.iX=function(t){var i=t.code,e=!1;if(i=="")return!1;for(var r=W.be,n=W.Ed.concat([W.Kh,W.lY,W.VR,W.nH]),a=0;a<n.length;a++)r(i,n[a])&&(e=!0);return t.altKey&&!t.shiftKey&&!t.ctrlKey&&e?!1:W.DL.indexOf(i)==-1||t.shiftKey&&(i=="F5"||i=="F6")},W.a7p=function(t){var i=t.code;return i!=""&&(W.DL.indexOf(i)==-1||t.shiftKey&&(i=="F5"||i=="F6"))},W.u0=function(t){if(typeof t=="string")return t;var i=navigator.platform.toUpperCase().indexOf("MAC")>=0;if(t==null)return"";for(var e=[],r=0;r<t.length;r++){var n=t[r].Bj?t[r].Bj:t[r];i&&t[r].iu&&(n=t[r].iu),e.push(n)}if(i||e.length==1)return e.join(" + ");var a=e.pop();return e.join("+")+" + "+a},W.DL="ZoomToggle BrightnessDown BrightnessUp AudioVolumeMute AudioVolumeDown AudioVolumeUp LaunchApplication1 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Enter Shift Escape KeyV".split(" "),W.RF=function(t){var i={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},e=t.code,r=t.key.toLowerCase(),n=r.charCodeAt(0);if(r.length==1)if(97<=n&&n<=122){var a="Key"+r.toUpperCase();e=a}else i[r]&&(e=i[r]);return e},W.Xr={Bj:"Enter",aJ:["Enter","NumpadEnter"]},W.cm={Bj:"Shift",iu:"\u21E7",aJ:["ShiftLeft","ShiftRight"]},W.gV={Bj:"Meta",aJ:["MetaLeft","MetaRight","OSLeft","OSRight"]},W.Bl={Bj:"Ctrl",iu:"\u2318",aJ:"ControlLeft ControlRight MetaLeft MetaRight OSLeft OSRight".split(" ")},W.ze={Bj:"Alt",iu:"\u2325",aJ:["AltLeft","AltRight"]},W.aj4={Bj:"CtrlOrAlt",aJ:W.Bl.aJ.concat(W.ze.aJ)},W.yc={Bj:"Escape",aJ:["Escape"]},W.fd={Bj:"Space",aJ:["Space"]},W.gP={Bj:"Tab",aJ:["Tab"]},W.adv={Bj:"Home",aJ:["Home"]},W.agd={Bj:"End",aJ:["End"]},W.Nf={Bj:"Left",aJ:["ArrowLeft"]},W.DY={Bj:"Up",aJ:["ArrowUp"]},W.rc={Bj:"Right",aJ:["ArrowRight"]},W.yF={Bj:"Down",aJ:["ArrowDown"]},W.Kh={Bj:"+",aJ:["NumpadAdd","Equal"]},W.lY={Bj:"-",aJ:["NumpadSubtract","Minus","Slash"]},W.JS={Bj:";",aJ:["Semicolon"]},W.am9={Bj:"Dead",aJ:["Dead"]},W.aiO={Bj:"=",aJ:["Equal"]},W.Yp={Bj:"Backspace",aJ:["Backspace"]},W.Yk={Bj:"Delete",aJ:["Delete"]},W.ads={Bj:"Backslash",aJ:["Backslash","IntlBackslash"]},W.ajo={Bj:"Backquote",aJ:["Backquote"]},W.VR={Bj:"[",aJ:["BracketLeft"]},W.nH={Bj:"]",aJ:["BracketRight"]},W.Ua={Bj:".",aJ:["Period"]},W.a9s={Bj:",",aJ:["Comma"]},W.e7={Bj:"'",aJ:["Quote"]},W.B={Bj:"A",aJ:["KeyA"]},W.ZA={Bj:"B",aJ:["KeyB"]},W.qS={Bj:"C",aJ:["KeyC"]},W.fY={Bj:"D",aJ:["KeyD"]},W.E={Bj:"E",aJ:["KeyE"]},W.EH={Bj:"F",aJ:["KeyF"]},W.da={Bj:"G",aJ:["KeyG"]},W.Fm={Bj:"H",aJ:["KeyH"]},W.vu={Bj:"I",aJ:["KeyI"]},W.RH={Bj:"J",aJ:["KeyJ"]},W.zo={Bj:"K",aJ:["KeyK"]},W.Ov={Bj:"L",aJ:["KeyL"]
|
||
|
`+i+" "+e+`
|
||
|
255
|
||
|
`,h=l.length,o=v.R(h+s,!0),f=0;f<h;f++)o[f]=l.charCodeAt(f);for(var f=0;f<a;f++){var u=f*4,p=f*3+h;o[p]=n[u],o[p+1]=n[u+1],o[p+2]=n[u+2]}return o.buffer},ft.Qa.xo=function(t){t=new Uint8Array(t);var i=[" ".charCodeAt(0),`
|
||
|
`.charCodeAt(0)," ".charCodeAt(0),"\r".charCodeAt(0)],e=0,r=String.fromCharCode(t[0])+String.fromCharCode(t[1]),n=[],a=0,s=r=="P1"||r=="P4"?2:3;for(e=2;e<t.length;e++){var l=t[e],h=String.fromCharCode(l);if(l=="#".charCodeAt(0)){for(;t[e]!=`
|
||
|
`.charCodeAt(0);)e++;continue}var o=i.indexOf(l)!=-1;if(a==0&&!o){n.push(h),a=1;continue}if(a==1&&!o){n[n.length-1]+=h;continue}if(a==1&&o){if(a=0,n.length==s)break;continue}}var f=parseInt(n[0]),u=parseInt(n[1]),p=f*u*4,c=r=="P1"||r=="P4"?1:255/parseInt(n[2]),d=v.R(p);if(r=="P1"||r=="P2"||r=="P3")for(var g="",b=0,a=0,m="#".charCodeAt(0),x=e;x<t.length;x++){var l=t[x],h=String.fromCharCode(l),o=i.indexOf(l)!=-1;if(l==m)for(;t[x]!=`
|
||
|
`.charCodeAt(0);)x++;else if(a==0&&!o)g=h,a=1;else if(a==1)if(o){a=0;var M=parseInt(g);g="",r=="P1"&&(d[b]=d[b+1]=d[b+2]=(1-M)*255,d[b+3]=255,b+=4),r=="P2"&&(d[b]=d[b+1]=d[b+2]=Math.round(M*c),d[b+3]=255,b+=4),r=="P3"&&(d[b]=Math.round(M*c),b++,(b&3)==3&&(d[b]=255,b++))}else g+=h}var S=f*u;if(r=="P4")for(var w=0;w<u;w++)for(var k=w*8*Math.ceil(f/8),T=0;T<f;T++){var x=k+T,L=t[e+1+(x>>3)];L=L>>7-(x&7)&1;var O=w*f+T<<2;d[O]=d[O+1]=d[O+2]=(1-L)*255,d[O+3]=255}if(r=="P5")for(var x=0;x<S;x++){var O=4*x;d[O]=d[O+1]=d[O+2]=Math.round(t[e+1+x]*c),d[O+3]=255}if(r=="P6")for(var x=0;x<S;x++){var O=4*x,E=e+1+3*x;d[O]=Math.round(t[E]*c),d[O+1]=Math.round(t[E+1]*c),d[O+2]=Math.round(t[E+2]*c),d[O+3]=255}return[{ym:new et(0,0,f,u),data:d.buffer}]},ft.O$={},ft.O$.bb=function(t,i,e,r){var n=new Uint8Array(t[0][0]);if((i&3)!=0||(e&3)!=0){var a=i+(4-(i&3)),s=e+(4-(e&3)),l=new Uint8Array(a*s*4);v.XB(l,4278190080),v.BP(n,new et(0,0,i,e),l,new et(0,0,a,s)),n=l,i=a,e=s}return UTEX.DDS.encode(n.buffer,i,e)},ft.O$.xo=function(t){var i=UTEX.DDS.decode(t)[0];return[{ym:new et(0,0,i.width,i.height),data:i.image}]},ft.WM={},ft.WM.xo=function(t){var i=UTEX.VTF.decode(t).pop();return[{ym:new et(0,0,i.width,i.height),data:i.image}]},ft.rL={},ft.rL.OC=null,ft.rL.adg=function(t,i){var e=ft.rL.OC,r=t.byteLength,n=i.width,a=i.height,s=n*a,l=5e6+2*r+s*(i.progressive?Math.max(2,i.numComponents)*4+1:8),h=e.instance.exports,o=h.memory.buffer.byteLength;o<l&&h.memory.grow(l-o>>>16);var f=new Uint8Array(h.memory.buffer),u=h.malloc(r);f.set(new Uint8Array(t),u);var p=h.malloc(4),c=h.malloc(4),d=h.malloc(4),g=h.stbi_load_from_memory(u,r,p,c,d,4);h.free(u),h.free(p,c,d),h.free(g);var b=f.slice(g,g+s*4);return b},function(){for(var t=new Uint8Array(63156),i="7X19jF3Hdd+d+33ffXf37ReX5NLmvGs6pRorVhqXdmMn5qRZLkXKVJG2aP9oYMu23Pjuo6RdrtZOK2vXrlI4gBQpbRIkSFqoTdC6gRrIqP9wWqGVGjVRDLdhEid1AzdRUjdwAbdmAANxAdXs+Z0zcz/ee7tcSqQsGaR0992P+TjnzDlnzsycOePdc+mi8jxP/XD/fcHOzo7aeV+0syM3Cn98vsUnD/fe+2L+TDeKrtAmtS/pLtmpb9Od+j44tuJ5fuAnSZCpOAyU73tBHvRSRf+CMFIPqDSNAuX58ay/o8yz/zjMdzz+SU5H8cV7L96/+aO+F1+8ZzS6/wOeH35o8957vTh/73t/5N57Hnjv+++5dG+gli5tvf/D7x3df88H3/uhzfsvvldyeWlWKM+oPMl6+aHlw0d6P/4nwcpzSvk7/mn/tPa0umSCjZDuhkFf5XhFz6v1C/wEp7W/WgQ60Op2z/tez9O+2amGvlZGVUOlA/opA8pWeHlO38I7C0oyDCkfZTnpe6d8jxKF1ZAe8aN0aB6qytAE5ykL5Qg2hn6OSjzJY6tBwZyHq0Glpc91ePmniHIWhT3g9VFQC9gJKO+mTMpcVRsESLqlw036HeB3GNXQRy3QrwFzC+AOpI+HKtrRHoFovNkcIOM/c9xo7X3YqDMrZUg4pLjOr/zdMlonIJmCVNx2gTL9LfNSUhEdS9Rm1FABQ/NRvDJqm260d3eB5jh+vlA1uU76oQBBRArwydORDteNljajUndTIgzKQtkBiOgDVZRECKhC9X1CIdDeIBji3nhDn4HfzSQHwMMdVbmBe9S9KSRLiQLGwwsASClSugeG64wPfQZnnEEbUOp+JWySCyyq+zrM3b394rvU3iAEUALQUAF75jjz8AZ9B8HNoxn9z1mJxLOV+ehG6VE7AkpC8wzxNUiW8Ae1Rq30aAaxqJAgRIKQCYj2eyTTil6DzQg6wEUV8yuNwtWWYE+U0ooYEOl8IV4O5CtmmPwXfWJdSk4tDMoEdSsSwVJqgQ6RfEskKofaU3BmTmi9C/ld2LwT2gTSNr5tEvrdJlZT61RTuxl1sAZxJfRNirtwEK4WkDYLrxncyU3rCttg6liC0Yd1wpsr8LhqJAi4MuLKdXCG+wqCgV6g+1X6l2xUxG0OiDMrmvWEN4gI9PynfZIabgppM8tynuW27TJYJ1mUho3QVtRGEVoLN5YdPceEwTU50JvOgV6LAz3HgeD6hgVJHH2LOrGL2qJShbUAwv4CEDDPQr4AaMDYUyXCUJT3lJ9qW1sgkOW/Eqt4x1ZHRVou11JNGVhqlrH2zqwMlehHZg0Uw4iFQhufqzQMM8NHOpDuO/CFljwhpW7Iw3wQdl+Hubu3X4KamFyrcMbDG2goAnHoMWSOkpSfhbaMAJtiUSF4SF1Z2CKCLerCFlnYIkrdwBZyKd3XYe7u7ZdQUludEdcwqgZGgio+w8ApkU5w6hCyB2ip0YWYFrxGe3c4a+gaDkJ5yu8TibhJPYgXiwP3B5YMrbZRjm9d25A2hUYd5x3gH3TwF0Xefd3CX7744/hb7nX4l76IE9FgjaXA0QBYhJx2CN3GsuyosTeX+8LlvhXHvbhcCSdAY+8tsAcsy3IVdX0z9Bq2AZVHeiX/lb5KdlwXLNKBXk/VnTN3y8p1yw0EUDeRdMtKR+iWo8lu2ZvoltXdBaSbu2UP3bLX7ZYj6ZYD2y3bUjvdctTqlj10y57tlonFuVuO0S2HrW7ZAwE8p63ZkHB9AJMtarXX/j1Oi7OiVqczRSkykTkRp1aD8EBdMiwN6ZIjqwB96HCyv1yHrH3bJRPZK7EsKEGc26brdsneWJccNV1yzF1y2I9yZgbYOEzYQQSIatVIOlTajTENJbPP8rQuWtJ2k7bb8tFjBtRjAn8qJ0SvGeZ9BtCaJWW0xqUFIrVlLFoucFoutm0RU1vE3baIbVvEUKj9RsXFrXchq+S+fReOKd7ACTUbPGTQrrEOCJxIQ/nCsiOi+ZJvGOV6L0o4OoDf6G3E9kJtOexBh7ZMJW2ZStcJZytTMWQqbslUKDIFYz6clKlAZMra2yFkKrQyFYtMpTphmQqkVMgUTHohH8AMIVMh+InaxcpUzDIV9APQL2LTYBAKSpafI7bgdQQZi1o6O6pJFF1XzxpN71mjloxFnd4raMsYCb6FKwA1XGs7OcPnWtaCWtbiqkxqUQqRzUpbYGWNaMaylrAwsqKyshZYWeORkchaIHwRN7JG1KOhQQAz2LdKil6FQtvcMr52RpTrRPHi/MrAOwqhpOSzYjMzMw3utHzlW6U4ZoZSSbUZ6vqrDTQh87iC7q6/+tYMhXqYMEN9MkNFeQwiG
|
||
|
`);var o=A.lU(e,h);h+=2;var I=A.bc(e,h,o);h+=o;var N=A.lU(e,h);h+=2;var V=s.rect.x,j=s.rect.Z;E&4&&(D=1),E&2&&(D=2);var R=Math.round(N*.4);(D==0||D==2)&&(j+=R),(D==1||D==2)&&(j+=R,V-=R),s.add.lnsr="rend",s.add.TySh=lt.T_(0,0),s.add.TySh.xa=new et(0,0,100,100),s.add.TySh.O=new Et(1,0,0,1,V,s.rect.y+N*.25);var G=s.add.TySh.MF;lt.E5(G,1),lt.Z1(G,[0,0,j,s.rect.h]),lt.v$(G,0,B);var Z=lt.lW(G,0,1);Z.dS.FontSize=N,Z.dS.FillColor={Type:1,Values:[1,e[h+1]/255,e[h+2]/255,e[h+3]/255]},h+=4,e[h+5]&&(I+="-Bold"),e[h+6]&&(I+="-Italic"),lt.oi(Z,I),Z.eS.Justification=D,h+=8,lt.Ji(G,0,B.length,Z)}r+=4+l}},ft.mZ={},ft.mZ.Vi=!0,ft.mZ.xo=function(t,i){Ei.ee(t,i)},ft.aQ={},ft.aQ.Vi=!0,ft.aQ.xo=function(t,i){Bn.ee(t,i)},ft.KC={},ft.KC.Vi=!0,ft.KC.xo=function(t,i){Pe.ee(t,i)},ft.Pu={},ft.Pu.Vi=!0,ft.Pu.xo=function(t,i){ae.ee(t,i)},ft.GK={},ft.GK.Vi=!0,ft.GK.bb=function(t,i,e,r,n){r==null&&(r=[!0,!1,!1,!1,!0,!0]);var a=ii.qx(t,{amv:r[0],hidden:r[1],am4:r[2],a8L:r[3],names:r[4],pu:r[5],ag3:i,aaW:e},n.SN);return a},ft.GK.xo=function(t,i,e){ii.ee(t,i,e)},ft.UP={},ft.UP.Vi=!0,ft.UP.xo=function(t,i){var e=150,r=new Et(1,0,0,-1,0,0);r.scale(e/72,e/72),i.NB=e;var n=new Ii(i,r,!0);FromPS.Parse(t,n)},ft.jv={},ft.jv.Vi=!0,ft.jv.bb=function(t,i,e,r,n){r==null&&(r=["",100,!1,!1,!1]),r[5]=["jpg"];var a=new ToPDF;return hn.qx(t,r,a,n.SN),a.buffer},ft.jv.xo=function(t,i,e){for(var r=2;;){var n=r*72,a=new Et(1,0,0,-1,0,0);a.scale(n/72,n/72),i.NB=n;var s=new Ii(i,a,!0);FromPDF.Parse(t,s);var l=Math.max(i.Z,i.h);if(e&&l<Math.max(e[0],e[1])){i.r=[];for(var h=r;l*(r/h)<Math.max(e[0],e[1]);)r++}else break}},ft.XI={},ft.XI.Vi=!0,ft.XI.xo=function(t,i){var e=72,r=new Et(1,0,0,1,0,0);r.scale(e/72,e/72),i.NB=e;var n=new Ii(i,r,!1);FromWMF.Parse(t,n)},ft.rs={},ft.rs.mw=!0,ft.rs.Vi=!0,ft.rs.bb=function(t,i,e,r,n){r==null&&(r=["",!1,!1,!1]),r[4]=[];var a=new ToEMF;return hn.qx(t,r,a,n.SN),a.buffer},ft.rs.xo=function(t,i){var e=72,r=new Et(1,0,0,1,0,0);r.scale(e/72,e/72),i.NB=e;var n=new Ii(i,r,!1);FromEMF.Parse(t,n)},ft.Ow={},ft.Ow.Vi=!0,ft.Ow.xo=function(t,i){return ci.ee(t,i)},ft.Bp={},ft.Bp.xo=function(t,i){for(var e=Qn.ee(t),r=new Uint8Array(t),n=0,a,s,l,h,o,f,u,p,c=0,d=0,g=0,b=0,m=0,x=0;x<e.sub.length;x++){var M=e.sub[x],n=M.c;if(M.Za=="BMHD"){for(var S=[],w=0;w<4;w++)S[w]=A.lU(r,n+2*w);n+=8,h=S[2],o=S[3],s=S[0],l=S[1],a=v.R(s*l*4),f=r[n++],u=r[n++],p=r[n++]}else if(M.Za=="CMAP")c=n;else if(M.Za=="CAMG"){var k=A.l(r,n);d=k&32768,g=k&4,b=k&2048,m=k&128}else if(M.Za=="BODY"){var T=s+15>>>4<<1,L=f+u,O=v.R(T*l*L),E,D,B;Fi.QF(r,n,M.size,O,0,O.length);for(var I=f-2,N=(1<<I)-1,V=Math.round(255/N),o=0;o<l;o++)for(var h=0;h<s;h++){for(var j=0,R=0;R<L;R++){var G=(o*L+R)*T*8+h,Z=O[G>>>3]>>>7-(G&7)&1;j|=Z<<R}var _=j>>>f,j=j&(1<<f)-1,w=o*s+h,U=w<<2;if(c!=0)if(b!=0&&j>>>I!=0){var Y=j>>>I,$=(j&N)*V;Y==1?B=$:Y==2?E=$:Y==3&&(D=$)}else{var $=c+j*3;E=r[$+0],D=r[$+1],B=r[$+2]}else E=j>>>0&255,D=j>>>8&255,B=j>>>16&255;a[U+0]=E,a[U+1]=D,a[U+2]=B,a[U+3]=255}}}return[{ym:new et(0,0,s,l),data:a.buffer}]},ft.bB={},ft.bB.Vi=!1,ft.bB.bb=function(t,i,e,r){for(var n=new Uint8Array(t[0][0]),a=2,s=v.Ms(n),l=s?4:3,h=new Uint8Array(i*e*l),o=0;o<e;o++)for(var f=0;f<i;f++){var u=o*i+f<<2,p=((e-o-1)*i+f)*l;h[p]=n[u+2],h[p+1]=n[u+1],h[p+2]=n[u+0],s&&(h[p+3]=n[u+3])}for(var c=h.length,d=0,g=new Uint8Array(c*2),b=0,m=0,x=i*l;m<c;){for(var M=m,S=0,w=x*(Math.floor(m/x)+1);M<w&&S<128;){for(var k=!0,T=0;T<l;T++)k=k&h[m+T]==h[M+T];if(!k)break;M+=l,S++}if(S==1){for(var L=1;L<128&&m+(L+1)*l<w;){for(var k=!0,O=m+L*l,T=0;T<l;T++)k=k&h[O+T]==h[O+l+T];if(k)break;L++}g[b++]=L-1;for(var E=0;E<L;E++)for(var T=0;T<l;T++)g[b++]=h[m++]}else{g[b++]=127+S;for(var T=0;T<l;T++)g[b+T]=h[m+T];b+=l,m+=l*S,d+=S}}h=g.slice(0,b),a+=8;var D=new Uint8Array(18+h.length+26);return D[2]=a,A.qu(D,12,i),A.qu(D,14,e),D[16]=l*8,D[17]=l==4?8:0,D.set(h,18),A.jW(D,18+h.length+8,"TRUEVISION-XFILE."),D.buffer},ft.bB.xo=function(t){var i=new Uint8Array(t),e=0,r=i[0],n=i[1],a=i[2],s=i[4]*256+i[3],l=i[6]*256+i[5],h=i[7],o=i[9]*256+i[8],f=i[11]*256+i[10],u=i[13]*256+i[12],p=i[15]*256+i[14],c=i[16],d=i[17],g=d>>>4,b=A.$o(i,18,r),m=v.R(u*p*4),e=18+r+(
|
||
|
`}console.log(t)},v.mC.a8K=function(t,i,e){for(var r=i,n=e,a=r,s=0,l,h,o;t>>s!=2;)s++;var f=s;for(l=t>>1;l>0;l>>=1,s--){for(h=0;h<t;h++)o=(h>>s&1)!=0,o?n[h]=r[-l+h]-r[h]:n[h]=r[l+h]+r[h];a=r,r=n,n=a}if((f&1)==1)for(l=0;l<t;l++)e[l]=r[l]},v.SX={},v.SX.ka=function(t,i,e,r,n,a,s,l,h){var o=Date.now(),f=new Uint32Array(t.buffer),u=new Uint32Array(i.buffer),p=s/e,c=l/r,d=1/p,g=1/c,b=new Float64Array(2),m=3,x=1/m,M=1/(m*m),S=0,w=0,k=e,T=r;n&&(S=n.x,w=n.y,k=n.Z,T=n.h);for(var L=0;L<T;L++)for(var O=0;O<k;O++){var E=S+O,D=w+L,B=D*e+E,I=B<<1,N=B<<2;v.SX.a3G(a,s,l,(E+.5)*p,(D+.5)*c,b);var V=b[0]*d,j=b[1]*g;V==0&&j==0?u[B]=f[B]:v.P.nK(E+V+.5,D+j+.5,f,e,r,u,B,h)}},v.SX.a3G=function(t,i,e,r,n,a){r-=.499999,n-=.499999;var s=~~r,l=~~n,h=r-s,o=n-l,f=(1-o)*(1-h),u=(1-o)*h,p=o*(1-h),c=o*h,d=s<i-1?s+1:s,g=l<e-1?l+1:l,b=l*i+s<<1,m=l*i+d<<1,x=g*i+s<<1,M=g*i+d<<1;a[0]=f*t[b]+u*t[m]+p*t[x]+c*t[M],a[1]=f*t[b+1]+u*t[m+1]+p*t[x+1]+c*t[M+1]},v.SX.a4l=function(t,i,e,r,n){for(var a=1/t,s=[-1,1,-t,t],l=r.length,h=0;h<l;h++){var o=r[h],f=o<<1,u=h<<1,p=~~(o*a),c=o-t*p,d=e[f],g=e[f+1],b=0,m=0;if(c!=0&&c!=t-1){var x=o-1<<1,M=o+1<<1,S=e[x],w=e[M],k=e[x+1],T=e[M+1],L=d-(S+w)*.5,O=g-(k+T)*.5;b-=L*n,m-=O*n}if(p!=0&&p!=i-1){var x=o-t<<1,M=o+t<<1,S=e[x],w=e[M],k=e[x+1],T=e[M+1],L=d-(S+w)*.5,O=g-(k+T)*.5;b-=L*n,m-=O*n}e[f]=d+b,e[f+1]=g+m}},v.SX.ah6=function(t,i){var e=t+","+i;if(v.SX.x7==e)return v.SX.p6;var r=v.SX.p6=[];v.SX.x7=e;for(var n=0;n<=1e3;n++){var a=n*.001,s=Math.sqrt(a),l=Math.exp(-4*s),h=.96*(1-s*s),o=i*((1-t)*l+t*h);r[n]=o}return r},v.SX.x7="",v.SX.p6=[],v.SX.a3M=function(t,i,e,r,n,a,s,l,h,o,f,u,p){var c=Math.max(0,Math.floor(n-s-1)),d=Math.min(i,Math.ceil(n+s+1)),g=Math.max(0,Math.floor(a-s-1)),b=Math.min(e,Math.ceil(a+s+1)),m=2*i,x=s*s,M=1/s,S=0;p&&(r==3||r==6)&&(h=-h);for(var w=v.SX.ah6(l,h),k=g;k<b;k++)for(var T=c;T<d;T++){var L=k*i+T,O=L<<1,E=(n-T)*M,D=(a-k)*M,B=E*E+D*D;if(B<1){u[S]=L;var I=w[~~(B*1e3)];if(r==1)t[O]=t[O]*(1-I*.05),t[O+1]=t[O+1]*(1-I*.05);else{var N=0,V=0,j,R,G,Z;r==0?(N=o*I,V=f*I):r==2||(r==3?(N=I*D,V=-I*E):r==4?(N=I*E,V=I*D):r==5?(N=-I*E,V=-I*D):r==6&&(N=f*I,V=-o*I));var _=t[O],U=t[O+1];T==0||T!=i-1&&N<0?(j=1+t[O+2]-_,G=t[O+3]-U):(j=_-t[O-2]+1,G=U-t[O-1]),k==0||k!=e-1&&V<0?(R=t[O+m]-_,Z=1+t[O+m+1]-U):(R=_-t[O-m],Z=U-t[O-m+1]+1),t[O]=-(j*N+R*V-_),t[O+1]=-(G*N+Z*V-U)}S++}}},v.SX.a0n=function(t){for(var i=t[0],e=t[0],r=t[1],n=t[1],a=0;a<t.length;a+=2){var s=t[a],l=t[a+1];s<i?i=s:s>e&&(e=s),l<r?r=l:l>n&&(n=l)}return[i,r,e,n]},v.ajA=function(t,i,e,r,n){function a(J,Q,rt,it){return Math.sqrt((J-rt)*(J-rt)+(Q-it)*(Q-it))}function s(J,Q){return J>=0&&J<i&&Q>=0&&Q<e}function l(J){return J<0?0:J>=i?i-1:J}function h(J){return J<0?0:J>=e?e-1:J}function o(J,Q){var rt=Q[3]*(1/255),it=r[J]+Q[0]*rt;it>255&&(it=255),r[J]=it,it=r[J+1]+Q[1]*rt,it>255&&(it=255),r[J+1]=it,it=r[J+2]+Q[2]*rt,it>255&&(it=255),r[J+2]=it}function f(J,Q,rt){!Y(J,Q)||(rt[3]<0&&(rt[3]=0),o((Q*i+J)*4,rt))}function u(J){var Q=J.slice(0,3);return Q[3]=0,Q}var p=i/800;function c(J){return Math.round(J*p)}function d(){for(var J=0;J<=300;J++)P[J]=g(J)}function g(J){var Q=.8,rt=.2,it=Q*rt,nt=J/60%2-1,ot=it*(1-nt*nt),pt=rt-it,yt;return J<60?yt=[it+pt,ot,0]:J<120?yt=[ot,it,0]:J<180?yt=[0,it,ot]:J<240?yt=[0,ot,it]:J<300?yt=[ot,0,it]:yt=[it,0,ot],[(yt[0]+pt)*255,(yt[1]+pt)*255,(yt[2]+pt)*255]}function b(J){return P[~~J]}function m(J){return 1-x(J)}function x(J){return J-~~J}function M(J,Q,rt,it){_(J,Q,rt,0,Q+1,1,it)}function S(J,Q,rt,it,nt,ot){_(J,Q,rt,0,it,1,nt,ot)}function w(J){for(var Q=0;Q<r.length;Q+=4)o(Q,J)}function k(J,Q,rt,it,nt,ot,pt,yt){T(J,Q,rt,it,nt,1,ot,pt,yt)}function T(J,Q,rt,it,nt,ot,pt,yt,ct){ot==null&&(ot=.5),pt==null&&(pt=0),yt==null&&(yt=0),ct==null&&(ct=!1);var vt=J.x,wt=J.y,Mt=rt.slice(0),Ct=~~(rt[3]*ht);it=it*ht,ct||(Q=U(Q),nt=U(nt),pt=U(pt),yt=U(yt));for(var gt=l(vt-Q),bt=l(vt+Q),xt=gt;xt<=bt;xt++){for(var Dt=xt-vt,Ot=Math.floor(Math.sqrt(Q*Q-Dt*Dt)),kt=h(wt-Ot),mt=h(wt),It=kt;It<=mt;It++){var Bt=a(xt,It,vt,wt);if(Bt>Q||Bt<=Q-nt)break;var Ut=(Bt-Q+nt)/nt;Mt[3]=Ct-it*(ot==1?Ut:Math.pow(Ut,ot)),o((It*i+xt)*4,Mt)}kt=h(wt+Ot);for(var It=kt;It>mt;It--){var Bt=a
|
||
|
`:t[s]==13&&(a="\r",t[s+1]==10&&(a+=`
|
||
|
`));if(i=="LUTFormatCUBE"){for(var l=n.split(a),s=0;s<l.length;s++)if(!(l[s]==""||l[s][0]=="#")){var h=l[s].split(" "),o=h[0];if(o=="LUT_3D_SIZE"){r=parseInt(h[1]);continue}["TITLE","DOMAIN_MIN","DOMAIN_MAX"].indexOf(o)==-1&&e.push(parseFloat(h[0]),parseFloat(h[1]),parseFloat(h[2]))}e=Mn.J8(r,e)}else if(i=="LUTFormat3DL")for(var l=n.split(a),f=1/4095,s=0;s<l.length;s++){var u=l[s];if(!(u==""||u=="3DMESH"||u.startsWith("Mesh")||u[0]=="#")){var h=u.split(" "),o=h[0];if(r==0){r=h.length;continue}e.push(parseFloat(h[0])*f,parseFloat(h[1])*f,parseFloat(h[2])*f)}}else if(i=="LUTFormatLOOK"){var p=new DOMParser,c=p.parseFromString(n,"text/xml"),d=c.getElementsByTagName("LUT")[0],g=d.children[0].textContent;r=parseInt(JSON.parse(g));var b=d.children[1].textContent;b=b.replace(/"/g,"").replace(/\s/g,"");for(var m=3*r*r*r,x=m*4,M=new Uint8Array(x),s=0;s<x;s++){var S=b.charCodeAt(s*2),w=b.charCodeAt(s*2+1),k=S<58?S-48:S-55,T=w<58?w-48:w-55;M[s]=(k<<4)+T}for(var s=0;s<m;s++)e.push(A.CC(M,s<<2));e=Mn.J8(r,e)}else throw i;return[r,e]},Mn.a84=function(t,i,e){for(var r=["#Created by www.Photopea.com",'TITLE "'+e+'"',"","#LUT size","LUT_3D_SIZE "+i,"","#data domain","DOMAIN_MIN 0.0 0.0 0.0","DOMAIN_MAX 1.0 1.0 1.0","","#LUT data points"],n=6,a=0;a<t.length;a+=3)r.push(t[a].toFixed(n)+" "+t[a+1].toFixed(n)+" "+t[a+2].toFixed(n));return r.push(""),A.vI(r.join(`
|
||
|
`)).buffer},Mn.J8=function(t,i){for(var e=[],r=t*t*t,n=0;n<r;n++)e.push(0,0,0);for(var a=0;a<t;a++)for(var s=0;s<t;s++)for(var l=0;l<t;l++){var n=3*(l+s*t+a*t*t),h=3*(a+s*t+l*t*t);e[h]=i[n],e[h+1]=i[n+1],e[h+2]=i[n+2]}return e};function Yt(){}Yt.Gz=function(t,i,e,r,n){var a=e,s;n==null&&(n=0);var l=A.l(t,e);l==0?(s="",e+=4):(s=A.nf(t,e),e+=4+2*s.length+2),s!=""&&(i.__name=s),i.classID=Yt.$$(t,e),r&&console.log(" ".repeat(n),"- reading descriptor",i.classID,e),e+=Yt.lJ(t,e);var h=A.tF(t,e);e+=4;for(var o=0;o<h;o++){var f=Yt.$$(t,e);e+=Yt.lJ(t,e);var u=Yt.gZ(t,e,r,n);i[f]=u,e+=u.size,delete u.size}return e-a},Yt.p1=function(t,i,e,r){var n=e,a=i.__name;a==null&&(a=""),a+="\0",A.lS(t,e,a),e+=4+2*a.length,Yt.Me(t,e,i.classID),e+=Yt.lJ(t.data,e),A.Oc(t,e,Object.keys(i).length-1-(i.__name==null?0:1)),e+=4;for(var s in i)s!="classID"&&s!="__name"&&(Yt.Me(t,e,s),e+=Yt.lJ(t.data,e),e+=Yt.LN(t,e,i[s]));return e-n},Yt.gZ=function(t,i,e,r){var n=i,a=A.$o(t,i,4);i+=4;var s={size:0,t:a,v:null};switch(e&&console.log(" ".repeat(r),"reading key",a,n),a){case"obj ":case"VlLs":s.v=[];var l=A.l(t,i);i+=4;for(var h=0;h<l;h++){var o=Yt.gZ(t,i,e,r+1);i+=o.size,delete o.size,s.v.push(o)}break;case"UntF":s.v={type:A.$o(t,i,4),val:A.VZ(t,i+4)},i+=12;break;case"doub":s.v=A.VZ(t,i),i+=8;break;case"bool":s.v=t[i]==1,i+=1;break;case"long":s.v=A.tF(t,i),i+=4;break;case"comp":s.v=A.tF(t,i+4),i+=8;break;case"Objc":s.v={};var f=Yt.Gz(t,s.v,i,e,r+1);i+=f;break;case"TEXT":var u=A.l(t,i);u==0?(s.v="",i+=4):(s.v=A.nf(t,i),i+=4+s.v.length*2+2);break;case"enum":var p=Yt.$$(t,i);i+=Yt.lJ(t,i);var c=Yt.$$(t,i);i+=Yt.lJ(t,i),s.v={},s.v[p]=c;break;case"tdta":var d=A.tF(t,i);i+=4,s.v=[];for(var h=0;h<d;h++)s.v.push(t[i+h]);i+=d;break;case"ObAr":var g=A.l(t,i);i+=4;var b=A.nf(t,i);if(i+=4+2*b.length+2,b!="")throw b;var m=Yt.$$(t,i);i+=4+Math.max(4,m.length),s.v={classID:m,arr:[]};var x=A.l(t,i);i+=4;for(var h=0;h<x;h++){var m=Yt.$$(t,i);i+=4+Math.max(4,m.length);var p=A.$o(t,i,4);i+=4;var M=A.$o(t,i,4);i+=4;var S={id:m,type:p,uID:M,arr:[]};s.v.arr.push(S);var w=A.l(t,i,4);i+=4;for(var k=0;k<w;k++){var T=A.VZ(t,i);i+=8,S.arr.push(T)}}break;case"Pth ":var L=i,d=A.l(t,i);i+=4;var O=A.$o(t,i,4);i+=4;var E=A.L6(t,i);i+=4;var D=A.ae0(t,i);i+=4+D.length*2,s.v={sig:O,pth:D};break;case"Clss":case"type":case"rele":var D=A.nf(t,i);i+=4+D.length*2+2;var B=Yt.$$(t,i);i+=4+Math.max(4,B.length),s.v={classID:B},D!=""&&(s.v.__name=D),a=="rele"&&(s.v.val=A.tF(t,i),i+=4);break;case"prop":case"Enmr":case"indx":case"name":var I=Yt.wN[a],D=A.nf(t,i);if(i+=4+D.length*2+2,D.length!=0)throw console.log(a,D),"e";s.v={};for(var h=0;h<I.length;h++){var B=Yt.$$(t,i);i+=4+Math.max(4,B.length),s.v[I[h]]=B}if(a=="name"){var D=A.nf(t,i);i+=4+D.length*2+2,s.v.val=D}a=="indx"&&(s.v.val=A.l(t,i),i+=4);break;case"alis":var d=A.l(t,i);i+=4,s.v=A.$o(t,i,d),i+=d;break;default:{throw console.log("unknown oskey: "+a+", "+n),"e";return s}}return e&&(console.log(" ".repeat(r),s.v),console.log(" ".repeat(r),"======",i)),s.size=i-n,s},Yt.wN={name:["classID"],prop:["classID","keyID"],Enmr:["classID","typeID","enum"],indx:["classID"]},Yt.LN=function(t,i,e){var r=i,n=e.t;switch(e=e.v,A.bh(t,i,n),i+=4,n){case"obj ":case"VlLs":A.Oc(t,i,e.length),i+=4;for(var a=0;a<e.length;a++){var s=Yt.LN(t,i,e[a]);i+=s}break;case"UntF":A.bh(t,i,e.type),A.AD(t,i+4,e.val),i+=12;break;case"doub":A.AD(t,i,e),i+=8;break;case"bool":A.oO(t,i,e?1:0,1),i+=1;break;case"long":A.Oc(t,i,e),i+=4;break;case"comp":A.Oc(t,i+4,e),i+=8;break;case"Objc":var s=Yt.p1(t,e,i);i+=s;break;case"TEXT":A.lS(t,i,e+"\0"),i+=4+e.length*2+2;break;case"enum":var l=Object.keys(e)[0],h=e[l];Yt.Me(t,i,l),i+=Yt.lJ(t.data,i),Yt.Me(t,i,h),i+=Yt.lJ(t.data,i);break;case"tdta":A.oL(t,i,e.length),i+=4,A.x4(t,i,e),i+=e.length;break;case"ObAr":A.oL(t,i,e.arr[0].arr.length),i+=4,A.lS(t,i,"\0"),i+=6,Yt.Me(t,i,e.classID),i+=4+Math.max(4,e.classID.length),A.oL(t,i,e.arr.length),i+=4;for(var o=0;o<e.arr.length;o++){var f=e.arr[o];Yt.Me(t,i,f.id),i+=4+Math.max(4,f.id.length),A.bh(t,i,f.type),i+=4,A.bh(t,i,f.uID),i+=4,A.oL(t,i,f.arr.length),i+=4;for(var a=0;a<f.arr.length;a++)A.AD(t
|
||
|
`.charCodeAt(0),e,e+50);a==-1&&(a=Infinity),n==-1&&(n=Infinity);var s=Math.min(a,n),l=A.$o(t,e,s-e),h=Rr.cW(t,s+1,r+1,l);i[l]=h.C,e=s+1,e+=h.size}else if(t[e]==">".charCodeAt(0)){e+=2;break}else{var o=t[e];o==10||o==9||o==32||console.log("unknown byte: "+o+", char: "+String.fromCharCode(o),e),e++}return e},Rr.UT=function(t,i,e,r){A.bh(i,e,`<<
|
||
|
`),e+=3;var n=Rr.aeU;for(var a in t)A.oO(i,e," ".charCodeAt(0),r+1),e+=r+1,A.bh(i,e,"/"+a),e+=1+a.length,n(t[a])||t[a]instanceof Array?(A.bh(i,e," "),e++):(A.bh(i,e,`
|
||
|
`),e++,A.oO(i,e," ".charCodeAt(0),r+1),e+=r+1),e=Rr.Ps(t[a],i,e,r+1),A.bh(i,e,`
|
||
|
`),e++;return A.oO(i,e," ".charCodeAt(0),r),e+=r,A.bh(i,e,">>"),e+=2,e},Rr.cW=function(t,i,e,r){for(var n=i,a={size:0,C:0};;){for(;t[i]==" ".charCodeAt(0)||t[i]==" ".charCodeAt(0)||t[i]==`
|
||
|
`.charCodeAt(0);)i++;if(t[i]=="<".charCodeAt(0)){a.C={},i=Rr.iI(t,a.C,i,e+1);break}else if(t[i]=="(".charCodeAt(0)){i+=3;for(var s=i;!(t[s-1]!="\\".charCodeAt(0)&&t[s]==")".charCodeAt(0)&&(t[s+1]==`
|
||
|
`.charCodeAt(0)||t[s+1]==" ".charCodeAt(0)));)s++;a.C=A.Ci(t,i,s),i=s+2;break}else if(t[i]=="[".charCodeAt(0)){for(i++,a.C=[];t[i]==" ".charCodeAt(0)||t[i]==" ".charCodeAt(0)||t[i]==`
|
||
|
`.charCodeAt(0);)i++;for(;t[i]!="]".charCodeAt(0);){var l=Rr.cW(t,i,e+1,r);for(a.C.push(l.C),i+=l.size;t[i]==" ".charCodeAt(0)||t[i]==" ".charCodeAt(0)||t[i]==`
|
||
|
`.charCodeAt(0);)i++}i++;break}else{var h=A.indexOf(t," ".charCodeAt(0),i,i+50),o=A.indexOf(t,`
|
||
|
`.charCodeAt(0),i,i+50);o==-1&&(o=Infinity),h==-1&&(h=Infinity);var f=A.$o(t,i,Math.min(h,o)-i).trim(),u=parseFloat(f);if(isNaN(u))if(f=="true"||f=="false"){a.C=f=="true",i=Math.min(h,o)+1;break}else if(f=="null"||f=="NaN"){a.C=0,i=Math.min(h,o)+1;break}else throw console.log("unknown identifier: "+f),"e";else{a.C=parseFloat(f),i=Math.min(h,o)+1;break}i=Math.min(h,o)+1}}return a.size=i-n,a},Rr.Ps=function(t,i,e,r){if(t instanceof Array){var n=t.length==0||typeof t[0]=="number";if(n){A.bh(i,e,"[ "),e+=2;for(var a=0;a<t.length;a++){var s=t[a]+" ";A.bh(i,e,s),e+=s.length}A.bh(i,e,"]"),e+=1}else{A.bh(i,e,`[
|
||
|
`),e+=2;for(var a=0;a<t.length;a++)A.oO(i,e," ".charCodeAt(0),r),e+=r,e=Rr.Ps(t[a],i,e,r),A.bh(i,e,`
|
||
|
`),e++;A.oO(i,e," ".charCodeAt(0),r),e+=r,A.bh(i,e,"]"),e+=1}}else if(t instanceof Object)e=Rr.UT(t,i,e,r);else if(typeof t=="string")A.bh(i,e,"("),e++,A.oO(i,e,254),e++,A.oO(i,e,255),e++,e=A.o2(i,e,t),A.bh(i,e,")"),e+=1;else{var s=t+"";A.bh(i,e,s),e+=s.length}return e},Rr.aeU=function(t){var i=typeof t;return i=="string"||i=="number"||i=="boolean"};function Oe(){}Oe.ee=function(t){var i={};return Oe.ef(t,i,0,0),i},Oe.HC=function(t,i){var e=0;return A.bh(i,e," "),e++,e=Oe.ds(t,i,e,0),e--,i.cj(e,2),i.data[e]=i.data[e+1]=0,e+=2,e},Oe.iI=function(t,i,e,r){for(;t[e]!="<".charCodeAt(0);)e++,console.log("\u0161ipka");return e+=2,e=Oe.ef(t,i,e,r),e},Oe.UT=function(t,i,e,r){return A.bh(i,e,"<< "),e+=3,e=Oe.ds(t,i,e,r),A.bh(i,e,">>"),e+=2,e},Oe._K=function(t){return t==9||t==10||t==32},Oe.ef=function(t,i,e,r){for(;;){for(;Oe._K(t[e])||t[e]==0;)e++;if(e>=t.length)break;if(t[e]=="/".charCodeAt(0)){e++;for(var n=e;!Oe._K(t[n]);)n++;var a=A.$o(t,e,n-e);e=n+1;var s=Oe.cW(t,e,r,a);i["_"+a]=s.C,e+=s.size}else if(t[e]==">".charCodeAt(0)){e+=2;break}else{var l=t[e];throw console.log(A.$o(t,e,e+100)),console.log("unknown byte: "+l+", char: "+String.fromCharCode(l)+", offset: "+e),e++,"e";return-1}}return e},Oe.ds=function(t,i,e,r){for(var n in t){var a=n.substring(1,n.length);A.bh(i,e,"/"+a),e+=1+a.length,A.bh(i,e," "),e++,e=Oe.Ps(t[n],i,e,r+1),A.bh(i,e," "),e++}return e},Oe.cW=function(t,i,e,r){for(var n=i,a={type:"",size:0,C:0};Oe._K(t[i]);)i++;if(t[i]=="<".charCodeAt(0))a.type="Object",a.C={},i=Oe.iI(t,a.C,i,e+1);else if(t[i]=="(".charCodeAt(0))if(a.type="String",i++,t[i]==")".charCodeAt(0))a.C="s",i++;else{i+=2;for(var s=i,l=0;!(t[s]==")".charCodeAt(0)&&t[s-1]!="\\".charCodeAt(0));)s+=1;a.C="s"+A.Ci(t,i,s),i=s+2}else if(t[i]=="[".charCodeAt(0)){for(i++,a.C=[],a.type="Array";Oe._K(t[i]);)i++;for(;t[i]!="]".charCodeAt(0);){var h=Oe.cW(t,i,e+1,r);if(h==-1)return-1;for(a.C.push(h.C),i+=h.size,delete h.size;Oe._K(t[i]);)i++}i++}else{for(var o=i;!Oe._K(t[o]);)o++;var f=A.$o(t,i,o-i),u=parseFloat(f);if(!isNaN(u)&&f.indexOf(".")!=-1){a.type="Float";var p=parseFloat(f);a.C="f"+p}else if(!isNaN(u)&&f.indexOf(".")==-1)a.type="Integer",a.C="i"+parseInt(f);else if(f=="true"||f=="false")a.type="Boolean",a.C=f=="true";else if(f.charAt(0)=="/")a.type="BString",a.C=f;else throw console.log("unknown value",JSON.stringify(f)),"e";i=o+1}return a.size=i-n,a},Oe.aks=function(t){if(t==Math.round(t))return t+".0";var i=t.toFixed(5);return 0<t&&t<1&&(i=i.substring(1,i.length)),-1<t&&t<0&&(i="-"+i.substring(2,i.length)),i},Oe.Ps=function(t,i,e,r){var n=typeof t=="string"?t.charAt(0):"";if(t instanceof Array){A.bh(i,e,"[ "),e+=2;for(var a=0;a<t.length;a++)e=Oe.Ps(t[a],i,e,r),A.bh(i,e," "),e++;A.bh(i,e,"]"),e+=1}else if(t instanceof Object)e=Oe.UT(t,i,e,r);else if(n=="s")A.bh(i,e,"("),e++,A.oO(i,e,254),e++,A.oO(i,e,255),e++,e=A.o2(i,e,t.substring(1)),A.bh(i,e,")"),e++;else if(n=="/")A.bh(i,e,t),e+=t.length;else if(n=="f"){var s=parseFloat(t.substring(1)),l=Oe.aks(s);A.bh(i,e,l),e+=l.length}else if(n=="i")A.bh(i,e,t.substring(1)),e+=t.length-1;else{var l=t+"";A.bh(i,e,l),e+=l.length}return e};function st(t,i){t||(t=0),i||(i=0),this.x=t,this.y=i}st.prototype.add=function(t){return new st(this.x+t.x,this.y+t.y)},st.prototype.clone=function(){return new st(this.x,this.y)},st.prototype.fa=function(t){this.x=t.x,this.y=t.y},st.prototype.Qn=function(t){return this.x==t.x&&this.y==t.y},st.prototype.normalize=function(t){var i=Math.sqrt(this.x*this.x+this.y*this.y);this.x*=t/i,this.y*=t/i},st.prototype.offset=function(t,i){this.x+=t,this.y+=i},st.prototype.Oh=function(t,i){this.x=t,this.y=i},st.prototype.gI=function(t){return new st(this.x-t.x,this.y-t.y)},st.Yj=function(t,i){return st.ad7(t.x,t.y,i.x,i.y)},st.bu=function(t,i,e){return new st(t.x+e*(i.x-t.x),t.y+e*(i.y-t.y))},st.acO=function(t,i){return new st(t*Math.cos(i),t*Math.sin(i))},st.ad7=function(t,i,e,r){return Math.sqrt((e-t)*(e-t)+(r-i)*(r-i))},st.l5={},st.Na={},st.l5.create=function(){var t=new Float32Array(4);return t},st.Na.create=function(t){var i=new Float32Array(16);return i[0]=i[5]=i[10]=i[15]=1,t&&st.
|
||
|
`||r=="\r")){if(r==")")return i;if(r=='"'){for(var a=i;;){var s=t[i];if(i++,s=='"')break;s=="\\"&&i++}e.push(JSON.parse(t.slice(a-1,i)))}else{for(var a=i-1;t[i]!=" "&&t[i]!=")";)i++;e.push(t.slice(a,i))}}}},ae.r6=function(t,i,e,r,n){var a=A.l(t,i);i+=4;var s=A.l(t,i);i+=4;var l=A.NQ(t,i);i+=l.lr;var h={};i=ae.g6(t,i,h);var o=new v._B(a*s),f=r==4?A.l:A.k0,u=f(t,i);return i+=r,ae.hv(t,u,o,e,r,n),{AH:o.U,lg:h}},ae.hv=function(t,i,e,r,n,a){var s=A.l(t,i);i+=4;var l=A.l(t,i);i+=4;var h=A.l(t,i);i+=4;var o=n==4?A.l:A.k0,f=o(t,i);i+=n,ae.a10(t,f,e,r,h,n,a)},ae.a10=function(t,i,e,r,n,a,s){var l=A.l(t,i),h=0,o=0;i+=4;var f=A.l(t,i);i+=4;var u=new et(0,0,l,f);s==100||s==150?h=1:s==600?h=4:alert("unsupported bit depth "+s);var p=n/h,h=Math.round(n/p),c=[];i=ae.vL(t,i,c,a);var d=new v._B(64*64*h),g=new et,b=r[Xe.adr][0],m=[d.U,d.S,d.i,d.m];p==3&&v.set(d.m,255);for(var x=Date.now(),M=0;M<f;M+=64)for(var S=0;S<l;S+=64){var w=Math.min(l-S,64),k=Math.min(f-M,64),T=w*k;if(g.Oh(S,M,w,k),ae.ama(t,c[o++],T*h,b,p,m),s==600)for(var L=ae.a19(),O=new Uint32Array(1),E=new Float32Array(O.buffer),D=0;D<p;D++)for(var B=m[D],I=0;I<T;I++){O[0]=B[I]<<24|B[T+I]<<16|B[(T<<1)+I]<<8|B[(T<<1)+T+I]<<0;var N=E[0];N<0?N=0:N>1&&(N=1),B[I]=L[~~(.5+N*1e3)]}v.X6(d,g,e,u)}},ae.a19=function(){var t=ae.a0_;if(t!=null)return t;t=ae.a0_=new Uint8Array(1001);for(var i=0;i<1001;i++)t[i]=~~(.49+255*v.SU(i*.001));return t},ae.ama=function(t,i,e,r,n,a){if(r==1)for(var s=0;s<n;s++)for(var l=a[s],h=0;h<e;){var o=t[i];if(i++,o<127){var f=t[i];i++,o++;for(var u=0;u<o;u++)l[h+u]=f}else if(o==127){var p=t[i];i++;var c=t[i];i++;var f=t[i];i++,o=p<<8|c;for(var u=0;u<o;u++)l[h+u]=f}else if(o==128){var p=t[i];i++;var c=t[i];i++,o=p<<8|c;for(var u=0;u<o;u++)l[h+u]=t[i+u];i+=o}else{o=256-o;for(var u=0;u<o;u++)l[h+u]=t[i+u];i+=o}h+=o}else if(r==2)for(var d=pako.inflate(t.slice(i)),g=Math.round(d.length/e),u=0;u<e;u++){var b=u*g;a[0][u]=d[b],a[1][u]=d[b+1],a[2][u]=d[b+2],a[3][u]=g==3?255:d[b+3]}else alert("Unknown compression "+r)},ae.vL=function(t,i,e,r){for(var n=r==4?A.l:A.k0;;){var a=n(t,i);if(i+=r,a==0)break;e.push(a)}return i},ae.g6=function(t,i,e){for(;;){var r=A.l(t,i);i+=4;var n=A.l(t,i);if(i+=4,r==Xe.aad)break;r==Xe.KR?e[r]=ae.aaN(t,i,i+n):e[r]=A.JN(t,i,n),i+=n}return i},ae.aaN=function(t,i,e){for(var r={};i<e;){var n=A.NQ(t,i);i+=n.lr;var a=A.l(t,i);i+=4,a!=1&&console.log("unknown flags",a);var s=A.l(t,i);i+=4,r[n.Pg]=A.JN(t,i,s),i+=s}return r};var Xe={aad:0,ad3:1,a1u:2,amH:3,a88:4,aa0:5,hf:6,Po:7,Y4:8,a48:9,akN:10,i_:11,a6M:12,afY:13,abz:14,mh:15,a7H:16,adr:17,a8c:18,a9f:19,a2U:20,KR:21,a6s:22,akc:23,ab6:24,ad5:25,a9Z:26,acX:27,abK:28,a34:29,Ko:30,Ee:31,a6e:32,acl:33,agO:34,acQ:35,aaR:36,afz:37,a7I:38,a9O:0,aaO:1,a90:2,a5Z:3,a3w:1,age:2,a57:0,adO:1,ahu:1};Xe.a6n="norm,diss,norm,mul ,scrn,over,diff,lddg,fsub,dark,lite,hue ,sat ,colr,lum ,fdiv,lddg,idiv,hLit,sLit,fdiv,pLit,norm,over,hue ,hue ,colr,lite,norm,norm,mul ,scrn,diff,lddg,fsub,dark,lite,hue ,sat ,colr,lum ,fdiv,lddg,idiv,hLit,sLit,fdiv,pLit,vLit,pLit,lLit,hMix,smud,lbrn,lum ,lum ,lum ,lum ,norm,norm,norm,pass".split(",");function Ei(){}Ei.ee=function(t,i){var e=Ei,r=Me.parse(t),n=0;r.pages.length>1&&console.log(r.pages.length,"pages");for(var a=[],s=new et,l=0;l<r.pages.length;l++){var h=r.pages[l],o=h.layers,f=e.nP(o,l),u=!1;if(f.M()>8e3*8e3||f.Z>3e4||f.h>3e4){e.K0(o,!0);var p=e.nP(o,l);p.M()>=f.M()&&e.K0(o,!1)}f=e.nP(o,l);for(var c=0;c<o.length;c++){var d=o[c];e.xd(d)=="artboard"&&(u=!0)}if(!u){console.log("no artboard");var g={};for(var b in h)g[b]=h[b];g._class="group",h.layers=[g]}a.push(f.clone()),!f.qr()&&(f.x=0,f.y=n,n+=f.h+200,s=s.s7(f))}var m={};if(r.foreignSymbols)for(var x=0;x<r.foreignSymbols.length;x++){var M=r.foreignSymbols[x].symbolMaster;m[M.symbolID]={z7:M}}e.$r(r.pages,m,i);for(var S in m)var d=m[S].z7,w=e.OV(d.layers);var k=Ei.B$(s,8192*8192);i.Lt=!0,i.Z=Math.round(s.Z/k),i.h=Math.round(s.h/k),i.buffer=v.R(i.Z*i.h*4),i.f$(r.pages[0].layers.length),i.o0={},i.bL=[],n=0;for(var l=0;l<r.pages.length;l++){var T=r.pages[l],f=a[l],L=new Et(k,0,0,k,f.x,f.y-n);e.cS(T.layers,i,L,r,m,{},[]),n+=f.h+200}dele
|
||
|
Press OK to scale it down `+e+"x, or Cancel to keep the size.")&&(e=1),e},Ei.nP=function(t,i){for(var e=[],r=Ei,n=0;n<t.length;n++){var a=t[n],s=r.g$(a.frame);(i==0||r.xd(a)=="artboard")&&e.push(s)}return v.rect.Nl(e)},Ei.K0=function(t,i){for(var e=[],r=Ei,n=0;n<t.length;n++){var a=t[n],s=r.g$(a.frame);s.Z+=150,s.h+=150,e.push(s)}var l=v.rect.Nl(e);v.rect.aiw(e,i);var h=v.rect.Nl(e);if(h.M()*1.5<l.M()||l.Z>3e4&&h.Z<=3e4||l.h>3e4&&h.h<=3e4){alert("Re-arranging artboards");for(var n=0;n<t.length;n++){var o=e[n],a=t[n],f=a.frame;f.x=o.x,f.y=o.y}}},Ei.$r=function(t,i,e){for(var r=Ei,n=0;n<t.length;n++){var a=t[n],s=r.xd(a);["page","artboard","group"].indexOf(s)!=-1?r.$r(a.layers,i,e):s=="symbolMaster"&&(i[a.symbolID]={z7:a})}},Ei.OV=function(t){for(var i=Ei,e=0;e<t.length;e++){var r=t[e],n=i.xd(r),a=null;if(["page","artboard","group"].indexOf(n)!=-1&&(a=i.OV(r.layers)),(n=="symbolMaster"||n=="symbolInstance")&&(a=r),a!=null)return a}return null},Ei.cS=function(t,i,e,r,n,a,s){for(var l=Ei,h=[],o=0;o<t.length;o++){var f=t[o],u=f.frame?l.g$(f.frame):null,p=f.style,c="",d=null,g=!1;p==null&&console.log("no styles");var b=l.a6(f,e),m=l.xd(f),x=m=="shapeGroup"||m=="shapePath"||m=="rectangle"||m=="oval"||m=="triangle",M=["page","artboard","group"].indexOf(m)!=-1;if(m=="shapeGroup")for(var S=0;S<f.layers.length;S++)l.xd(f.layers[S])=="shapeGroup"&&(M=!0);var w=f.exportOptions;if(w){var k=w.exportFormats;if(k==null&&(k=w.sizes),m!="artboard"&&k&&k.length!=0)var T=k[0].scale}var L=i.an();L.vR(f.isVisible);var O=f.name;if(typeof O!="string"&&(O=m),L.uf(c+O.slice(0,250)),p!=null&&(d=l.ah9(r,i,p,u,b,L.getName(),x||m=="artboard"||M)),m=="rectangle"&&p&&p.fills&&p.fills[0]){var E=p.fills[0];E.fillType==4&&E.patternFillType>1&&E.image!=null&&(g=!0)}if(f.shouldBreakMaskChain)for(;h.length!=0;)l.KS(h.pop(),i);if(M){if(L.add.lsct=f.layerListExpandedType==2?Ci.lw:Ci.kE,L.sW="pass",L.ix=24,L.vR(f.isVisible),i.r.push(i.Px()),m=="artboard"){var D=u.clone(),B=b.d3();D.x=-Math.floor(b.PV/B),D.y=-Math.floor(b.ye/B),D.Z=Math.floor(D.Z/B),D.h=Math.floor(D.h/B),L.BE(D);var I=f.backgroundColor;L.add.artb.Clr={t:"Objc",v:v.j.$H({U:255*I.red,S:255*I.green,i:255*I.blue})},L.add.artb.artboardBackgroundType={t:"long",v:4}}l.cS(f.layers,i,b,r,n,a,s)}else if(x&&!g){L.add.vmsk=new H.iO,L.add.vstk=JSON.parse(JSON.stringify(at.bW.default)),L.add.vstk.strokeEnabled.v=!1,L.add.vogk=[];var N=d!=null&&d.frameFXMulti.v.length==1,V=p?p.fills:null,j=p?l.uo(r,V,u,b,L.getName(),i,l.fn(s,f.do_objectID+"_image")):[];if(j.length==0)N?L.add.vstk.fillEnabled.v=!1:L.add.iOpa=0,L.add.SoCo={classID:"null",Clr:{t:"Objc",v:v.j.$H({U:0,S:0,i:0})}};else{var R=j[0],G=null,Z=null;if(R.type=="SoFi"&&(G="SoCo",Z=at.QB),R.type=="GrFl"&&(G="GdFl",Z=at.Zt),R.type=="patternFill"&&(G="PtFl",Z=at.QZ),G!=null){L.add[G]={classID:"null"};for(var S=0;S<Z.length;S++){var _=Z[S];L.add[G][_]=R.C.v[_]}var U=R.C.v.Opct.v.val;N&&U==0?L.add.vstk.fillEnabled.v=!1:L.add.iOpa=Math.round(255*U/100)}}L.ix|=16,L.add.vmsk.b=l.Hy(f.layers?f.layers:[f],f.layers?b:e,L.add.vogk);var Y=p?p.blur:null;if(Y&&Y.isEnabled&&Y.type<=1&&(L.add.vmsk.bM=Y.radius),L.add.vmsk.b.length==2&&console.log("shape with no content:",L.getName()),N){var $=d.frameFXMulti.v[0].v,P=L.add.vstk,tt=p.borders[0];d.frameFXMulti.v=[],St.sa($,P);var X=p.borderOptions,ht=p.miterLimit;if(X){var F=X.dashPattern;P.strokeStyleLineCapType.v.strokeStyleLineCapType=at.bW.Bb[X.lineCapStyle],P.strokeStyleLineJoinType.v.strokeStyleLineJoinType=at.bW.join[X.lineJoinStyle],F&&(P.strokeStyleLineDashSet.v=St.oB(F,1/$.Sz.v.val)),ht!=null&&(P.strokeStyleMiterLimit.v=ht)}}L._V(i)}else if(m=="bitmap"||g){var J=g?p.fills[0]:null,Q=g?J.image.bdata:f.image.bdata,rt=i.f6(Q,L.getName(),0,0);rt.ix=L.ix,L=rt;var Y=p.blur,it=p.colorControls;if(Y||it){L.add.SoLd.filterFX=Zt.U$(),i.Bq({id:L.add.SoLd.placed.v,rect:new et,buffer:v.R(1),g:new H.vm});var V=L.add.SoLd.filterFX.v.filterFXList.v;if(Y){var nt=Zt.Sb("GsnB",{});nt.v.enab.v=Y.isEnabled,nt.v.Fltr.v.Rds.v.val=Y.radius,V.push(nt)}if(it){var ot=it.brightness,pt=it.contrast,yt=it.hue,ct=it.saturation;if(yt!=0||ct!=1){var nt
|
||
|
`),mt=mt.replace(/\u2029/g,`
|
||
|
`),mt=mt.replace(/\r/g,`
|
||
|
`);var Ut=L.add.TySh.MF;if(lt.v$(Ut,0,mt),mt!=""){var qt=f.textBehaviour,Gt=p.textStyle,zt=Gt?Gt.verticalAlignment:0,Nt=l.a7s(Ut,xt,Dt,mt),B=bt.d3(),Kt=lt.lW(Ut,0,1),ai=0;if(Kt.dS.Font){var fi=Kt.Dm[Kt.dS.Font].Name;(fi=="FontAwesome"||fi=="Ionicons")&&(Nt*=.87)}var di=Kt.dS.AutoLeading?0:Kt.dS.Leading*.6,$t=Math.max(Nt,di)*B,si=u.Z,li=u.h;if(qt==0){lt.E5(Ut,0);var Li=lt.Wk(Kt.eS);Li==1&&(ai=si*B),Li==2&&(ai=si*B*.5),zt==0?$t*=1:$t*=.9}else lt.E5(Ut,1),lt.Z1(Ut,[0,0,Math.round(si),Math.round(li)]),qt==2&&zt==0?$t=$t*.2:qt==2&&zt==1?$t=B*.5*(li-Kt.dS.FontSize):qt==1&&zt==0?$t=$t*.2:$t=$t*.35;L.add.TySh.O.translate(ai,$t)}}else if(m=="symbolInstance"||m=="symbolMaster"){var vi=f.symbolID;a[f.do_objectID]&&(vi=a[f.do_objectID].symbolID);var yi=l.fn(s,f.do_objectID+"_symbolID");if(yi&&(vi=yi.value),vi=="")continue;var _t={};for(var _ in a)_t[_]=a[_];if(f.overrides)for(var _ in f.overrides)_t[_]=f.overrides[_];var wi=s.slice(0);f.overrideValues&&(wi=wi.concat(f.overrideValues));var Zi=n[vi];if(Zi==null){console.log("Unknown master master",f.symbolID);continue}var Vi=Ei.g$(Zi.z7.frame),Mi=Vi.Z/u.Z,ce=Vi.h/u.h,Ri=b.clone();Ri.scale(Mi,ce),L.add.lsct=Ci.kE,L.sW="pass",L.ix=24,L.vR(f.isVisible),i.r.push(i.Px());var zi=Zi.z7;i.bL.indexOf(zi)==-1&&(i.bL.push(zi),l.cS(zi.layers,i,Ri,r,n,_t,wi),i.bL.pop())}else if(m=="slice"){console.log("slice layers are ignored by now");continue}else{console.log("unknown layer type: "+m,f);continue}if(p&&p.contextSettings){var ee=p.contextSettings,Be=ee.blendMode;Be<l.HF.length&&(L.sW=ti.YA[ti.zn.indexOf(l.HF[Be])],M&&L.sW=="norm"&&(L.sW="pass")),L.opacity=Math.round(L.opacity*ee.opacity)}d!=null&&(L.add.lmfx=d),i.r.push(L),f.hasClippingMask&&t.length>1&&(h.push(L),i.r.push(i.Px()))}for(;h.length!=0;)l.KS(h.pop(),i)},Ei.fn=function(t,i){for(var e=0;e<t.length;e++)if(t[e].overrideName.startsWith(i))return t[e]},Ei.a5$=function(t,i){for(var e=0,r=[];e+1<t.length;){var n=t[e];e++,n>127&&(n+=128*(t[e]-1),e++,t[e-1]>127&&(n+=128*(t[e]-1),e++));var a=t[e];e++,r.push(n,a)}return r},Ei.a7s=function(t,i,e,r){for(var n=Ei,a=0,s=0,l=0,h=0;h<r.length;h++){var o=r.charCodeAt(h),f=1473<=o&&o<=1479||1488<=o&&o<=1514||1520<=o&&o<=1524,u=1569<=o&&o<=1594||1600<=o&&o<=1749;(f||u)&&a++}for(var p=a>r.length/2,h=0;h<i.length;h+=2){var c=i[h],d=14,g="AlibabaPuHuiTi-Regular";if(c!=0){var b=i[h+1],m=e[b],x=lt.lW(t,s,s+c-1),M=m.NSColor;if(M==null){var M=m.MSAttributedStringColorDictionaryAttribute;M==null&&(M=m.MSAttributedStringColorAttribute),M==null?M="0 0 0":M=[M.red,M.green,M.blue].join(" ")}else if(n.xd(M)=="MSArchivedColor")M=M.dr+" "+M.dg+" "+M.db;else if(M.NSRGB)M=M.NSRGB,M=A.$o(M,0,M.length-1);else if(M.NSCMYK){M=M.NSCMYK,M=A.$o(M,0,M.length-1),M=M.split(" ").map(parseFloat);var S=1-M[0],w=1-M[1],k=1-M[2],T=1-M[3];M=S*T+" "+w*T+" "+k*T}else M.NSWhite&&(M="1 1 1");M=M.split(" "),x.dS.FillColor={Type:1,Values:[1,parseFloat(M[0]),parseFloat(M[1]),parseFloat(M[2])]};var L=m.MSAttributedStringFontAttribute;if(m.NSFont)d=m.NSFont.NSSize,g=m.NSFont.NSName;else if(L){if(L.attributes)L=L.attributes,d=L.size,g=L.name;else{var O=L.NSFontDescriptorAttributes;O==null&&(O=L.UIFontDescriptorAttributes),L=O,d=L.NSFontSizeAttribute,g=L.NSFontNameAttribute}g==null&&(g="AlibabaPuHuiTi-Regular")}var l=Math.max(l,d);x.dS.FontSize=Math.round(d),lt.oi(x,g);var E=m.NSKern;E==null&&(E=m.kerning),E!=null&&(x.dS.Tracking=Math.round(1e3*E/d)),m.NSUnderline!=null&&(x.dS.Underline=m.NSUnderline>0),m.NSStrikethrough!=null&&(x.dS.Strikethrough=m.NSStrikethrough>0),m.MSAttributedStringTextTransformAttribute==1&&(x.dS.FontCaps=2);var D=m.NSParagraphStyle;if(D==null&&(D=m.paragraphStyle),D){var B=D.paragraphSpacing;B!=null&&(x.eS.SpaceAfter=B);var I=D.NSAlignment;if(I==null&&(I=D.alignment),I!=null){var N=0;I==1?N=1:I==2?N=2:I==4?N=0:(N=I,console.log("unknown align",I)),p&&N<2&&(N=1-N),x.eS.Justification=N}var V=D.NSMinLineHeight;V==null&&(V=D.minimumLineHeight),V!=null&&(x.dS.AutoLeading=!1,x.dS.Leading=V)}x.eS._Direction=p?1:0,lt.Ji(t,s,s+c,x),s+=c}}return l},Ei.ah9=function(t,i,e,r,n,a,s){for(var l=Ei,h=JSON.parse(at.default),o=!1,f=0;f<at.ord
|
||
|
`).replace(/\u000b/g,`
|
||
|
`);if(lt.v$(Mt,0,Ct),Ct!=""){var gt=lt.lW(Mt,0,1),bt=ct.postscriptName;if(bt==null&&(bt=ct.family),lt.oi(gt,bt),gt.dS.FontSize=Math.round(ct.size),c){var P=c.color.value;gt.dS.FillColor={Type:1,Values:[1,P.r/255,P.g/255,P.b/255]}}vt&&(vt.paragraphAlign&&(gt.eS.Justification=["left","right","center"].indexOf(vt.paragraphAlign)),vt.letterSpacing&&(gt.dS.Tracking=Math.round(vt.letterSpacing)),vt.lineHeight&&(gt.dS.AutoLeading=!1,gt.dS.Leading=Math.round(vt.lineHeight))),lt.Ji(Mt,0,Ct.length,gt)}var xt=t.meta.ux.rangedStyles;if(xt)for(var S=0;S<xt.length;S++){var h=xt[S],Dt=Math.min(h.length,Ct.length-wt),gt=lt.lW(Mt,wt,wt+Dt),bt=h.postscriptName;bt==null&&(bt=h.family),bt!=null&<.oi(gt,bt);var Ot=h.textScript,kt=h.underline,mt=h.fontSize,w=h.fill,It=h.textTransform;if(Ot&&Ot!="none"&&(gt.dS.FontBaseline=Ot=="superscript"?1:2),kt!=null&&(gt.dS.Underline=kt),mt!=null&&(gt.dS.FontSize=Math.round(mt)),It!=null&&(gt.dS.FontCaps=It=="uppercase"?2:0),w!=null){var Bt=w.value;gt.dS.FillColor={Type:1,Values:[1,(Bt>>>16&255)/255,(Bt>>>8&255)/255,(Bt>>>0&255)/255]}}lt.Ji(Mt,wt,wt+Dt,gt),wt+=Dt}yt.type=="area"&&(lt.E5(Mt,1),lt.Z1(Mt,[0,0,yt.width,yt.height]))}else console.log(l,t);i.r.push(x)},Bn.Hy=function(t){var i=t.type,e=[{type:6},{type:8,all:0}];if(i=="rect"){var r=t.r,n=t.x,a=t.y,s=t.width,l=t.height;r==null?e=v.V.Ny.Rect(n,a,s,l,0):e=e.concat([{type:0,IO:1,length:8,Oj:0,UB:0,yU:1}]).concat(v.V.a9([n,a,n+s,a,n+s,a+l,n,a+l],r,!1))}else if(i=="circle"){var r=t.r;e=v.V.Ny.VO(t.cx-r,t.cy-r,2*r,2*r)}else if(i=="ellipse"){var h=t.rx,o=t.ry;e=v.V.Ny.VO(t.cx-h,t.cy-o,2*h,2*o)}else if(i=="path"||i=="compound"){var f=Typr.U.SVGToPath(t.path);e=v.D.sb({W:f.cmds,d:f.crds},!1)}else if(i=="line"){var u=t.x1,p=t.x2,c=t.y1,d=t.y2;e=e.concat([{type:0,IO:1,length:2,Oj:0,UB:0,yU:1}]).concat(v.V.a9([u,c,p,d],0,!0))}else if(i=="polygon"){for(var g=t.points,b=[],m=0;m<g.length;m++)b.push(g[m].x,g[m].y);e=e.concat(v.V.Ny.JF(b,0,!1).slice(2))}else console.log(i,t);return e},Bn.acZ=function(t){for(var i=JSON.parse(at.default),e=0;e<at.order.length;e++)i[at.og[e]]={t:"VlLs",v:[]};for(var e=0;e<t.length;e++){var r=t[e],n=r.type,a=r.params,s=r.visible;if(n=="dropShadow"){var l=at.og[at.order.indexOf("DrSh")],h=JSON.parse(at.IW[at.order.indexOf("DrSh")]);i[l].v.unshift({t:"Objc",v:h});var o=a.dropShadows;if(o.length!=1)throw"e";var f=o[e],u=f.color,p=u.value,c=f.dx,d=f.dy;h.Clr.v=v.j.$H({U:p.r,S:p.g,i:p.b}),h.Opct.v.val=Math.round((u.alpha!=null?u.alpha:1)*100),h.uglg.v=!1,h.enab.v=s!=null?s:!0,h.lagl.v.val=Math.round(180/Math.PI*Math.atan2(d,-c)),h.Dstn.v.val=Math.round(Math.sqrt(c*c+d*d)),h.blur.v.val=Math.round(f.r*2.3)}}return i},Bn.ku=function(t,i,e,r,n,a,s,l,h){var o=Bn;if(i=="none")a.add.vstk.fillEnabled.v=!1,a.add.SoCo={classID:"null",Clr:{t:"Objc",v:v.j.$H({U:0,S:0,i:0})}};else{var f,u,p;if(i=="solid"){var c=t.color.value;f="SoCo",u=at.QB;var d=JSON.parse(at.IW[at.order.indexOf("SoFi")]);p={t:"Objc",v:d},p.v.Clr.v=v.j.$H({U:c.r,S:c.g,i:c.b})}else if(i=="gradient"){f="GdFl",u=at.Zt;var d=JSON.parse(at.IW[at.order.indexOf("GrFl")]),g=d.Grad.v,b,m,x;g.Intr.v=0;var M=t[i],S=M.ref?l.gradients[M.ref]:M.meta.ux.gradientResources,w=["linear","radial"].indexOf(S.type),k=S.stops;if(d.Type.v.GrdT=["Lnr","Rdl","Angl"][w],w==0){var b=new st(M.x1,M.y1),m=new st(M.x2,M.y2);b.x=m.x+.5*(b.x-m.x),b.y=m.y+.5*(b.y-m.y)}else var b=new st(M.cx,M.cy),m=new st(M.cx+M.r,M.cy);if(x=n,M.units=="objectBoundingBox"){var T=new Et(r.Z,0,0,r.h,r.x,r.y);b=T.aT(b),m=T.aT(m)}var T=o.FB(M.transform);b=T.aT(b),m=T.aT(m),T=e.clone(),T.nJ(),b=T.aT(b),m=T.aT(m),v.j.VB(b,m,x,d);for(var L=[],O=0;O<k.length;O++){var E=k[O],D=E.color,c=D.value,B=D.alpha;B==null&&(B=1),L.push([E.offset,[c.r/255,c.g/255,c.b/255],B])}v.j.nO(L,g),p={t:"Objc",v:d}}else if(i=="pattern"){f="PtFl",u=at.QZ;var d=JSON.parse(at.IW[at.order.indexOf("patternFill")]),I,N=1,V=0,j=0,R=1;p={t:"Objc",v:d};var G=t[i],Z=G.meta.ux,_=Z.uid,U=h["resources/"+_].buffer,Y=ft.Xh(U);if(s.o0[_])I=s.o0[_];else{var X=new et(0,0,G.width,G.height),$;if(X.qr())X=new et(0,0,1,1),$=new ArrayBuffer(4);else{var P=ft.$I(Y);if(P.Vi){var tt=new P
|
||
|
`:"");var o=v.R(Math.round(r.length*1.5)),f=A.vr(r,o,0);if(n.Wc){console.log(n.Wc);for(var u=`SVGParser.gen.db = [
|
||
|
`,p=0;p<n.Wc.length;p++){var c=n.Wc[p];u+=`{
|
||
|
nam: "`+c.st+`",
|
||
|
pts: [
|
||
|
`;for(var d=0;d<c.A2.length;d++){var g=c.A2[d];u+=' ["'+g[0]+'", { cmds: '+JSON.stringify(g[1].W)+", crds:"+JSON.stringify(g[1].d)+" } ]"+(d==c.A2.length-1?"":",")+`
|
||
|
`}u+=` ]
|
||
|
}`+(p==n.Wc.length-1?"":",")+`
|
||
|
`}u+=`]
|
||
|
`,console.log(u)}return o.buffer.slice(0,f)},ii.kA="",ii.RC=function(t){for(var i="",e=0;e<t;e++)i+=ii.kA;return i},ii.EE=function(t){return""+parseFloat(t.toFixed(3))},ii.Vb=function(t,i,e,r,n,a){for(var s=ii,l=0;l<e.length;l++){var h=e[l].n,o=h.add.lsct,f=h.add.vmsk,u=h.add.vstk,p=h.add.TySh,c=[];if(!(!n.hidden&&!h.UQ())){var d=h.opacity/255,g=h.add.iOpa?h.add.iOpa/255:1;if(d!=1&&c.push("opacity: "+s.EE(d)),g!=1&&c.push("fill-opacity: "+s.EE(g)),h.sW!="norm"){var b=ti.Xf[ti.YA.indexOf(h.sW)];b!=null&&c.push("mix-blend-mode: "+b)}h.UQ()||c.push("display: none");var m=[],x=[],M=h.getName(),S=M.indexOf(" .");S!=-1&&(x.push(M.slice(S+2)),M=M.slice(0,S)),n.names&&m.push('id="'+s.dC(M)+'"');var w=h.add.lmfx;if(w&&(w=w.solidFillMulti.v[0]),w&&(w=w.v),w&&!w.enab.v&&(w=null),h.fO()){if(s.Wc&&h.getName().split("-").length==3&&s.Wc.push({st:h.getName(),lv:0,A2:[]}),f||h.add.artb){var k;if(f)k=v.V.j3(f.b).Q7;else{var T=h.sc(),L=v.D.z0(T);k=Typr.U.pathToSVG({crds:L.d,cmds:L.W},2)}i.Mk++,m.push('clip-path="url(#cp'+i.Mk+')"'),i.Ns.push(s.RC(2)+'<clipPath clipPathUnits="userSpaceOnUse" id="cp'+i.Mk+'">'),i.Ns.push(s.RC(3)+'<path d="'+k+'" />'),i.Ns.push(s.RC(2)+"</clipPath>")}c.length!=0&&m.push('style="'+c.join(";")+'"'),i.xX.push(s.RC(r)+"<g "+s.lN(m,x)+">"),s.Vb(t,i,e[l].children,r+1,n,a),i.xX.push(s.RC(r)+"</g>")}else if(h.ws()&&f==null){var O=new et(0,0,t.Z,t.h);s.kz(c,h.add,i,O),c.length!=0&&m.push('style="'+c.join(";")+'"'),i.xX.push(s.RC(r)+'<rect width="'+t.Z+'" height="'+t.h+'" '+s.lN(m,x)+" />")}else if(f){var O=v.V.ue(f.b),k=v.V.j3(f.b);k.RL!=0&&m.push('fill-rule="evenodd"');var E=k.Q7;if(s.kz(c,h.add,i,O),c.length!=0){var D=c.join(";"),B=i.iR[D];B==null&&(B="shp"+i.gw,i.gw++,i.iR[D]=B,i.hI[B]=D),x.push(B)}if(i.xX.push(s.RC(r)+"<path "+s.lN(m,x)+' d="'+E+'" />'),s.Wc&&s.Wc[s.Wc.length-1]){var I=v.D.xJ(f.b);I.d=I.d.map(Math.round);var N=s.Wc[s.Wc.length-1];N.lv+=JSON.stringify(I).length,N.A2.push([c[0].split("#").pop(),I])}}else if(p&&n.am4){var V=p.MF,j=new Si(V,a);w&&m.push('fill="'+te.O4(w.Clr.v)+'"');var R=Ee.Dz(j,p),G=v.D.X5(R);for(var Z in G){w==null&&m.push('fill="'+Z+'"');var L=G[Z],E=Typr.U.pathToSVG({crds:L.d,cmds:L.W},2);i.xX.push(s.RC(r)+"<path "+s.lN(m,x)+' d="'+E+'" />'),w==null&&m.pop()}}else if(p&&!n.a8L){var V=p.MF,_=p.O.clone(),U=0,Y=0;if(lt.AW(V)==1){var $=lt.lW(V,0,0).eS.Justification,P=0,tt=lt.dd(V)[2];$==2&&(P=tt/2),$==1&&(P=tt),_.translate(P,0)}c.push("transform: "+s.kO(_));var X=lt.jn(V),ht=V.EngineDict.ParagraphRun,F=ht.RunArray,J=ht.RunLengthArray;c.length!=0&&m.push('style="'+c.join(";")+'"'),i.xX.push(s.RC(r)+"<text "+s.lN(m,x)+" >");var Q=h.add.lmfx;Q&&(Q=Q.frameFXMulti.v[0]),Q&&(Q=Q.v);for(var rt=w?te.O4(w.Clr.v):null,it=0;it<F.length;it++){var nt=[],ot=J[it],pt=X.slice(U,U+ot-1),yt=lt.lW(V,U,U),ct=yt.Dm[yt.dS.Font].Name;i.SN.indexOf(ct)==-1&&i.SN.push(ct),te.yS(nt,yt,p.O,!0,!0,rt),Q&&(c.push("stroke: "+te.O4(Q.Clr.v)),c.push("stroke-width: "+Q.Sz.v.val));var vt=yt.dS.FontSize*1.12;if(it==0&&(vt=lt.AW(V)==0?0:yt.dS.FontSize),Y+=vt,pt!=""){var D=nt.join(";"),B=i.iR[D],wt="";B==null&&(B="txt"+i.gw,i.gw++,i.iR[D]=B,i.hI[B]=D);var Mt=yt.dS.Tracking;if(Mt!=null&&Mt!=0){Mt=Math.round(Mt*yt.dS.FontSize/1e3),wt=' dx="0';for(var Ct=1;Ct<pt.length;Ct++)wt+=" "+Mt;wt+='" '}i.xX.push(s.RC(r+1)+'<tspan x="0" y="'+s.EE(Y)+'" class="'+B+'"'+wt+">"+s.dC(pt)+"</tspan>")}U+=ot}i.xX.push(s.RC(r)+"</text>")}else if(h.add.SoLd){var gt=h.add.SoLd,bt=gt.Idnt.v,xt=0,Dt=gt.Crop?gt.Crop.v:null;if(i.pG[bt]!=null)xt=i.pG[bt];else{i.S5++,xt=i.S5,i.pG[bt]=i.S5;var Ot=t._p(bt,Dt),kt="";if(Ot==null)return;var mt=Ot.DW,It=ft.Xh(Ot.raw.buffer);if(It=="pdf"){var Bt=new Pt("h");ft.$I("PDF").xo(Ot.raw.buffer,Bt),Bt.dr(),Bt.LU(),Bt.A(),Bt.tf(),gt.Crop&>.Crop.v==1&&C.$K.zy(Bt,Bt.root.o7(Bt,!0));var Ut=ft.$I("SVG").bb(Bt,Bt.Z,Bt.h,null,{SN:a});kt="data:image/svg+xml;base64,"+ft.gN(Ut)}else if(It=="jpg"||It=="png"||It=="gif"||It=="svg"){var qt={jpg:"image/jpg",png:"image/png",jpg:"image/jpg",svg:"image/svg+xml"};kt="data:"+qt[It]+";base64,"+ft.gN(Ot.raw.buffer)}else kt=ft.vd(mt[0].buffer,mt[1].Z,mt[1].h);i.Ns.push(s.RC(2)+'<image
|
||
|
`);var g=v.R(Math.round(a.length*1.5)),b=A.vr(a,g,0);return[g.buffer.slice(0,b),h.jX]},ii.Ny.aa5=function(t,i,e){var r=ii.Ny,n=t[2]-t[0],a=t[3]-t[1];if(r.Jv(i)<.5)e.push('<path id="Border" style="fill: '+r.ai(i.DR)+'" d="'+r.a00(t[0],t[1],t[2]-t[0],t[3]-t[1],i.eO)+'" />');else if(r.Jv(i)<-.4)r.a6b(i,t,e);else var s=r.Jv(i)<.5?0:1,l=(s==0?a:n)/4,h=r.UM(i,s,t,e,l,!0),h=r.UM(i,s+2,t,e,l,!0,h)},ii.Ny.a3q=function(t,i,e){var r=ii.Ny,n="Hello World!-What a beautiful day.-What Is Love?-Baby, don't hurt me.-Is This a Real Life?-Is this a fantasy?-Wake Me Up!-Before you go go.".split("-"),a=2*Math.floor(r.Jv(t)*n.length/2),s=i[2]-i[0],l=i[3]-i[1],h=0,o=0;t.EH=(t.YY+s)*.5*(.04+r.Jv(t)*.05),t.EH=Math.min(t.EH,l*.4,s*.12),t.EH=Math.round(t.EH);var f=Math.min(t.EH*n[a].length*(.35+.3*r.Jv(t)),s*.9),u=(i[1]+i[3])/2,p=v.ec(t.iB)<.85?{U:1,S:1,i:1}:{U:.1,S:.1,i:.1};r.Jv(t)<.25&&t._r[0]?(o=0,h=i[0]+t.eO):r.Jv(t)<.33&&t._r[2]?(o=2,h=i[2]-t.eO):(o=1,h=(i[0]+i[2])/2);var c=p.U==1?"0,0,0":"255,255,255",d=t.mU&&r.Jv(t)<1;if(d){var g=i[0],b=s,m=u-t.EH*1.1,x=t.EH*2.2,M=.7;o==1&&r.Jv(t)<.5?(g=m=.2*Math.min(s,l),b=s-2*m,x=l-m-m):r.Jv(t)<.7&&(g=m=0,b=s,x=l,M=.25),e.push('<path id="Strip" style="fill: rgb('+c+"); opacity: "+M+'" d="'+r.Rect(g,m,b,x)+'" />')}if(r.Jv(t)<.4){var S=t.EH*.07;S*=1.5+r.Jv(t)*1,o==-1&&s/l<3&&!d&&(e.push('<path id="Bar-bottom" style="fill: '+r.ai(p)+'" d="'+r.Rect(h-f/2,u+t.EH*1.1-S/2,f,S)+'" />'),e.push('<path id="Bar-top" style="fill: '+r.ai(p)+'" d="'+r.Rect(h-f/2,u-t.EH*1.1-S/2,f,S)+'" />')),o!=1&&(e.push('<path id="Bar" style="fill: '+r.ai(p)+'" d="'+r.Rect(h-S/2,u-t.EH*.8,S,t.EH*.8*2)+'" />'),h+=(o==0?1:-1)*t.EH/3)}var w=t.EH*.4;e.push(r.fK(n[a+1],h,u+w*1.6,w,p,o,t.m6)),e.push(r.fK(n[a],h,u+t.EH*.04,t.EH,p,o,t.OA))},ii.Ny.a8T=function(t,i,e,r){var n=i[2]-i[0],a=i[3]-i[1],s=Math.max(n,a),l=Math.min(n,a),h=ii.Ny;if(s/l<5&&t.mU,h.Jv(t)<0)e.push('<path style="fill: '+h.ai(t.DR)+'" d="'+h.Rect(i[0],i[1],n,a)+'" />');else{var o=0;i[3]!=t.mi&&(o=0),i[2]!=t.YY&&(o=3),i[0]!=0&&(o=1),i[1]!=0&&(o=2);var f=o+2&3;if(s/l<3){var u=h.a62(f),p=u[Math.round(h.Jv(t)*(u.length-1))],c=p.st.slice(0,4),d=c.indexOf(1);p=JSON.parse(JSON.stringify(p));var g=-1;if(c!="0000"){var b=new Et;if(p.st[5]=="0")d==3&&o==1?(g=1,b.scale(-1,1)):g=d;else{for(var m=f;m==f;)m=Math.floor(h.Jv(t)*4)&3;b.rotate((-d+m)*Math.PI/2)}h.O(p,b)}var x=h.nP(p),M=n-2*t.eO,S=a-2*t.eO;g!=-1&&((g&1)==0?S-=t.eO:M-=t.eO);var w=Math.min(M/x.Z,S/x.h),k=new Et;k.translate(-x.x,-x.y),k.scale(w,w);var T=(n-x.Z*w)/2,L=(a-x.h*w)/2;g!=-1&&(g==3&&(T=0),g==0&&(L=0),g==1&&(T=n-x.Z*w),g==2&&(L=a-x.h*w)),k.translate(i[0]+T,i[1]+L),h.sp(t,p,k,t.DR,e)}else h.UM(t,o,i,e,1e9)}},ii.Ny.mF=function(t,i,e,r){var n=i[2]-i[0],a=i[3]-i[1],s=Math.max(n,a),l=Math.min(n,a),h=ii.Ny,o=h.D5(t),f,u,p,c=r[0]instanceof ArrayBuffer;if(c)f="data:image/jpg;base64,"+ui.ga(r[0]),u=r[1],p=r[2];else{var d=Math.floor(o*r.length),g=r[d];t.jX=g,f=g.webformatURL,u=g.webformatWidth,p=g.webformatHeight}var b=i[0],m=i[1],x=n,M=a;if(n/a>u/p?(M=x*p/u,m=m-(M-a)/2):(x=M*u/p,b=b-(x-n)/2),c){e.push("<defs>"),e.push('<image width="'+u+'" height="'+p+'" id="Background" href="'+f+'" />'),e.push("</defs>");var S=x/u;e.push('<use href="#Background" transform="'+ii.kO(new Et(S,0,0,S,b,m))+'" />')}else{var w="cp"+Math.random();e.push('<clipPath id="'+w+'">'),e.push('<path style="fill: '+h.ai(t.DR)+'" d="'+h.Rect(i[0],i[1],n,a)+'" />'),e.push("</clipPath>"),e.push('<image clip-path="url(#'+w+')" xlink:href="'+f+'" x="'+b+'" y="'+m+'" width="'+x+'" height="'+M+'" />')}},ii.Ny.fK=function(t,i,e,r,n,a,s){var l=ii.Ny;return'<text x="'+i+'" y="'+e+'" style="fill:'+l.ai(n)+"; font-size:"+r+"px; text-anchor:"+["start","middle","end"][a]+"; font-family:"+s[2]+';"><tspan>'+t+"</tspan></text>"},ii.Ny.sp=function(t,i,e,r,n){for(var a=ii.Ny,s=[],l=0;l<i.A2.length;l++)s.push(r),t.a33&&(r=(l&1)==t.agJ?{U:1,S:1,i:1}:s[0]);n.push('<g id="'+i.st.split("-")[2]+':::" style="transform: '+ii.kO(e)+';" >');for(var l=0;l<i.A2.length;l++){var h=i.A2[l];r=s.pop(),n.push('<path style="fill: '+(r?a.ai(r):"#"+h[0])+'" d="'+Typr.U.pathToSVG({crds:h[1].d,cmds:h
|
||
|
`+i)}a==null&&(c=s.r.length,this.lP[c]={Qg:[],fj:0,YL:u.ye,g_:"",BD:p},a=s.an(),s.r.push(a),a.add.lnsr="rend",a.add.TySh=lt.T_(0,0),a.add.TySh.O=u);var k=this.lP[c];k.fj+=e*p,k.g_+=i;var T=a.add.TySh.MF,L=lt.jn(T);if(r){lt.E5(T,1);var O=[0,0,Math.ceil(r[0]*f),Math.ceil(r[1]*f)];lt.Z1(T,O)}var E=L.length-1,D=E+i.length;lt.v$(T,E,i),this.Iy==null&&(this.Iy=lt.lW(T,E,E));var B=this.Iy;B.dS.FontSize=Math.round(p),B.dS.Tracking=Math.round(l.Tc*100),B.dS.Underline=l.Tun==1,B.dS.FillColor={Type:1,Values:[1,t.colr[0],t.colr[1],t.colr[2]]},l.Tal!=null&&(B.eS.Justification=l.Tal),k.Qg.length!=0&&(B.dS.AutoLeading=!1,B.dS.Leading=k.YL-k.Qg[k.Qg.length-1].y);var I=l.Tf;I=I.replace(/#2B/g,"+"),I=I.replace(/#2C/g,"-"),I=I.split("+").pop();var N={"NimbusRomNo9L-Medi":"NimbusRomNo9L-Med","NimbusRomNo9L-Regu":"NimbusRomNo9L-Reg","NimbusRomNo9L-MediItal":"NimbusRomNo9L-MedIta","NimbusRomNo9L-ReguItal":"NimbusRomNo9L-RegIta",CMTT9:"NimbusMono-Regular",Arial:"ArialMT","BebasNeue-Regular":"BebasNeueRegular"};N[I]&&(I=N[I]),lt.oi(B,I),lt.Ji(T,E,D-1,B),a.cg(),a.opacity=Math.round(255*t.ca)}},Ii.prototype.S7=function(t){t.Qg.push({YY:t.fj,wV:t.g_.slice(t.Qg.length==0?0:1)+`
|
||
|
`,y:t.YL,Pg:t.BD}),t.fj=0,t.g_=""},Ii.prototype.PutImage=function(t,i,e,r,n,a,s){if(!(this.dT!=-1&&this.dT!=this.Zg)){var l=this.mY,h=t.font.Tmode;if(!(h==7&&l.r[l.r.length-1].add.TySh)){this.CO(t);var o=Ii.GO(t.ctm);o.concat(this.Ug);var f=new Et(1/e,0,0,-1/r,0,1);if(f.concat(o),o=f,i=Ii.NR(i,e,r),n&&(n=Ii.NR(n,e,r)),n==null)i.length==e*r*4&&(i=new Uint8Array(ft.$I("PNG").bb([[i.buffer,0]],e,r)));else{i=this.mL(i,e,r,a,!1),n=this.mL(n,e,r,s,!0);var u=v.R(e*r);v.E4(n,u,0),v.Oy(u,i,3),i=new Uint8Array(ft.$I("PNG").bb([[i.buffer,0]],e,r))}var p=l.f6(i,"Bitmap",0,0),c=p.rect.clone();c.x=c.y=0;var d=v.D.z0(c).d;v.D.O(d,o,d),p.add.SoLd.Trnf=C.X.uE(d),p.add.SoLd.nonAffineTransform=C.X.uE(d),p.Gy(l,!1),Ii.NM(t,p),l.r.push(p)}}},Ii.NM=function(t,i){i.opacity=Math.round(255*t.ca);var e=Ii.zD[t.bmode];e==null?console.log("Unknown blend mode",e):i.sW=e},Ii.zD={"/Normal":"norm","/Multiply":"mul ","/Screen":"scrn","/Overlay":"over","/Darken":"dark","/Lighten":"lite","/ColorDodge":"div ","/ColorBurn":"idiv","/HardLight":"hLit","/SoftLight":"sLit","/Difference":"diff","/Exclusion":"smud","/Hue":"hue ","/Saturation":"sat ","/Color":"colr","/Luminosity":"lum "},Ii.NR=function(t,i,e){var r=ft.Xh(t.buffer);if(r=="jpg")try{t=new Uint8Array(ft.$I("JPG").a9b(t.buffer))}catch(o){t=new Uint8Array(i*e*4)}else if(t.length!=i*e*4){var n=new Uint8Array(i*e*4),a=new Uint8Array(Math.ceil(i*e/8));UTIF.decode._decodeG4(t,0,t.length,a,0,i,1);for(var s=0;s<i*e;s++){var l=s*4,h=(a[s>>3]>>7-(s&7)&1)*255;n[l]=h,n[l+1]=h,n[l+2]=h,n[l+3]=255}t=n}return t},Ii.prototype.mL=function(t,i,e,r,n){if(t.length!=i*e*4){var a=ft.Xh(t.buffer),s=ft.$I(a);(s==null||a=="tga")&&(s=ft.$I("jpg")),t=new Uint8Array(s.xo(t,r,n)[0].data)}return t},Ii.prototype.ShowPage=function(){var t=this.mY;this.Zg++;var i=this.$w;this.mX();var e=t.an();t.r.push(e);var r=new et(Math.round(this.oT.x),Math.round(this.oT.y),Math.round(i[2]-i[0]),Math.round(i[3]-i[1]));this.lp=this.lp.s7(r),e.BE(r),e.uf("Page "+this.Zg),e.add.lsct=Ci.kE,e.sW="pass",e.ix=24},Ii.prototype.Print=function(t){console.log("Print:",t)},Ii.prototype.Done=function(){var t=this.mY;this.Zg==1&&(t.r[t.r.length-1].add.lsct=Ci.lw),t.f$(this.Zg);for(var i=0;i<t.r.length;i++){var e=t.r[i],r=e.add.vmsk,n=e.add.TySh,a=this.lP[i];if(e.h7(),e._V(t),n&&a.Qg.length!=0){this.S7(a);for(var s=n.MF,l=a.Qg.length,h=a.Qg[0],o=0,f=0,u=0;u<l;u++)o=Math.max(o,a.Qg[u].YY);lt.E5(s,1),n.O.ye-=h.Pg*.7,lt.Z1(s,[0,0,Math.ceil(o*1.1),Math.ceil(a.Qg[l-1].y-h.y+h.Pg*2)])}if(n){var s=n.MF;lt.ach(s);for(var p=lt.jn(s).split(`
|
||
|
`),u=0;u<p.length-1;u++){for(var c=p[u],d=0,g=0;g<c.length;g++){var b=c.charCodeAt(g);1473<=b&&b<=1524&&d++}if(d>c.length/2){p[u]=c.split("").reverse().join("");var m=s.EngineDict.ParagraphRun.RunArray[u].ParagraphSheet.Properties;m._Direction=1,m.Justification=lt.Wk(m)}}lt.jD(s,p.join(`
|
||
|
`))}}t.Lt=!0,t.Z=this.lp.Z,t.h=this.lp.h,t.buffer=v.R(this.lp.M()*4)};var hn={};hn.qx=function(t,i,e,r){var n=!1,a=[t.root],s=t.root.children;if(t.add.artd){n=!0;for(var l=0;l<s.length;l++)s[l].n.add.artb==null&&(n=!1);n&&(a=s)}var h=new et(0,0,t.Z,t.h),o=i[0];o=o.replace(/,/g," ").replace(/\-/g," - ").replace(/ +/g," ").trim(),o=o.split(" ");for(var f=[],l=0;l<o.length;l++){var u=o[l];if(u=="-")for(var p=f.pop(),c=parseInt(o[l+1]);p<c;)f.push(p),p++;else f.push(parseInt(u))}o=f;for(var l=0;l<o.length;l++)(isNaN(o[l])||o[l]<1||o[l]>a.length)&&(o.splice(l,1),l--);for(var d=72/t.NB,l=0;l<a.length;l++)if(!(o.length!=0&&o.indexOf(l+1)==-1)){var g=a[l],b=n?g.n.sc():h,m=Math.round(b.Z*d),x=Math.round(b.h*d);e.StartPage(0,0,m,x);var M=UDOC.getState([[0,0,m,x]]),S=new Et;if(S.translate(-b.x,-b.y-b.h),S.scale(d,-d),i[2]){var w=t.lD();if(h.Qn(b)||(w=v.R(b.M()*4),v.BP(t.lD(),h,w,b)),i[1]!=100){var k=ft.$I("JPG").bb([[w.buffer]],b.Z,b.h,[i[1]]);w=new Uint8Array(k)}var T=new Et;T.translate(b.x,b.y),hn.CK(M,e,w,b,T,S)}else hn.Py(t,g,M,e,S,i,r);e.ShowPage()}e.Done()},hn.r0=function(t){return t=v.j.T6(t),[t.U/255,t.S/255,t.i/255]},hn.Py=function(t,i,e,r,n,a,s){var l=i.n,h=l.add.lsct,o=l.add.lmfx,f=l.add.vmsk,u=l.add.vstk,p=l.add.TySh;if(!!l.UQ()){var c=l.opacity/255,d=l.add.iOpa?l.add.iOpa/255:1;for(var g in Ii.zD)Ii.zD[g]==l.sW&&(e.bmode=g);e.ca=e.CA=c*d;var b=o;if(b&&(b=b.solidFillMulti.v[0]),b&&(b=b.v),b&&!b.enab.v&&(b=null),l.fO())for(var m=0;m<i.children.length;m++)hn.Py(t,i.children[m],e,r,n,a,s);else if(f){var x=f.b,M=v.V.ue(x),S=v.D.xJ(x),w=!1,k=!1,T=!1;if(v.D.O(S.d,n,S.d),e.pth={cmds:S.W,crds:S.d},u.fillEnabled.v){var L=St.h4(o,l.add),O=L[0],E=L[1];if(O)e.colr=hn.r0(O.Clr.v);else if(E){var D=E,B=[],I,N=D.Type.v.GrdT=="Rdl"?"rad":"lin",V=v.j.yB(D,M),j=n.aT(V[0]),R=n.aT(V[1]);N=="rad"?I=[j.x,j.y,0,j.x,j.y,st.Yj(j,R)]:(j.Oh(R.x+(j.x-R.x)*2,R.y+(j.y-R.y)*2),I=[j.x,j.y,R.x,R.y]);for(var G=D.Grad.v.Clrs.v,m=0;m<G.length;m++){var Z=G[m].v;B.push([Z.Lctn.v/4096,hn.r0(Z.Clr.v)])}e.colr={typ:N,mat:[1,0,0,1,0,0],grad:B,crds:I}}w=!0}var _=St.ig(o);if(!u.strokeEnabled.v&&_&&(u=_),u.strokeEnabled.v){var U=u.strokeStyleContent.v,Y=u.strokeStyleLineDashSet.v,$=at.bW.Ph.indexOf(u.strokeStyleLineAlignment.v.strokeStyleLineAlignment);if(U.Clr==null)return;var P=v.j.T6(U.Clr.v);e.COLR=[P.U/255,P.S/255,P.i/255],e.lwidth=u.strokeStyleLineWidth.v.val*($==2?2:1)*n.d3(),e.mlimit=u.strokeStyleMiterLimit.v,e.doff=u.strokeStyleLineDashOffset.v.val,e.ljoin=at.bW.join.indexOf(u.strokeStyleLineJoinType.v.strokeStyleLineJoinType),e.lcap=at.bW.Bb.indexOf(u.strokeStyleLineCapType.v.strokeStyleLineCapType),e.dash=[];for(var m=0;m<Y.length;m++)e.dash.push(Y[m].v.val*e.lwidth);e.dash.length==1&&e.dash[0]==0&&(e.dash=[]),k=!0,$==2&&(T=!0)}w&&!T&&r.Fill(e),k&&r.Stroke(e),w&&T&&r.Fill(e)}else if(p&&a[4]){var tt=p.MF,X=new Si(tt,s),S=Ee.Dz(X,p),ht=v.D.X5(S);for(var P in ht){var F=parseInt(P.slice(1),16);e.colr=b?hn.r0(b.Clr.v):[(F>>>16&255)/255,(F>>>8&255)/255,(F&255)/255];var J=ht[P];v.D.O(J.d,n,J.d),J=v.D.akr(J),e.pth={cmds:J.W,crds:J.d},r.Fill(e)}}else if(p&&a[3]==!1){var tt=p.MF,Q=p.O.clone(),rt=new Et(1,0,0,-1,0,0);rt.concat(Q),rt.concat(n);for(var it=lt.jn(tt),X=new Si(tt,s),m=0;m<X.eS.length;m++){var nt=X.eS[m];if(!(nt.Vz.length==1&&nt.Vz[0].nz))for(var ot=0;ot<nt.V8.length;ot++)for(var pt=nt.V8[ot],yt=nt.tZ.y+pt.tZ.y,ct=nt.Vz[pt.start].start,vt=nt.Vz[pt.end-1].end,wt=lt.af$(tt,ct,vt),Mt=0;Mt<wt.length;Mt++){var Ct=X.Fj(ct),gt=wt[Mt],bt=lt.lW(tt,ct,ct),xt=bt.Dm[bt.dS.Font].Name;e.font.Tf=xt;var P=lt.T6(bt.dS);e.colr=b?hn.r0(b.Clr.v):[P.U/255,P.S/255,P.i/255],e.font.Tfs=Math.round(bt.dS.FontSize);var Dt=it.slice(ct,ct+gt);bt.dS.FontCaps==2&&(Dt=Dt.toUpperCase());var Ot=new Et;Ot.translate(Ct.T.x,-yt),Ot.concat(rt),e.ctm=[Ot.m,Ot.i,Ot.p$,Ot.xA,Ot.PV,Ot.ye],r.PutText(e,Dt,0),e.ctm=[1,0,0,1,0,0],ct+=gt}}}else if(!l.rect.qr()){var kt,mt,It=!1,Bt=new Et;if(l.add.SoLd){var Ut=l.add.SoLd,qt=Ut.Idnt.v,Gt=t._p(qt,Ut.Crop?Ut.Crop.v:null),zt="";if(Gt==null)return;var Nt=Gt.DW,Kt=ft.Xh(Gt.raw.buffer);a[5].indexOf(Kt)!=-1?(kt=Gt.raw,It=!0):kt=Nt[0],mt=Nt[1],Bt=v.P.br(Ut)}e
|
||
|
`,lt.v$(E,I,B.text+`
|
||
|
`);var N=ci.a29(B.aei,i),V=lt.lW(E,I,L.length);N.align==3?V.eS.Justification=1:V.eS.Justification=0;var j=N.fill.C;V.dS.FillColor={Type:1,Values:[1,j[0],j[1],j[2]]},V.dS.FontSize=Math.round(N.a0B.fontSize*f.d3()),lt.Ji(E,I,L.length-1,V)}T?lt.E5(E,0):(lt.E5(E,1),lt.Z1(E,[0,0,Math.round(k.x*f.m),Math.round(-k.y*f.xA)])),u.uf(L.slice(0,10))}else u=null;u&&e.r.push(u)},ci.a29=function(t,i){var e=ci.bV(i,"stlt").C,r=JSON.parse(JSON.stringify(e.gg[t]));if(r.MB!=0){var n=e.gg[r.MB];for(var a in n)(r[a]==null||r[a]==0)&&(r[a]=n[a]);delete r.MB}return r.align=e.a8k[r.ab1],r.fill=i.P6[e.aiq[r.Kf]],r.a1q=i.ma[e.a6R[r.O7]],r.a0B=e.qb[r.a1t],r},ci.afD=function(t){var i=t.data[t.c];return t.c+=1,i},ci.ZQ=function(t){var i=A.wP(t.data,t.c);return t.c+=2,i},ci.RM=function(t){var i=A.L6(t.data,t.c);return t.c+=4,i},ci.abJ=function(t){var i=A.L6(t.data,t.c);return t.c+=8,i},ci.bp=function(t){var i=A.XS(t.data,t.c);return t.c+=2,i},ci.cP=function(t){var i=A.K8(t.data,t.c);return t.c+=4,i},ci.VZ=function(t){var i=A.a8o(t.data,t.c);return t.c+=8,i},ci.aB=function(t){if(t.c>=t.data.length)throw"e";for(var i=0;t.data[t.c+i]!=0;)i++;var e=A.$o(t.data,t.c,i);return t.c+=i+1,e},ci.a65=function(t){return t.A7<600?Math.PI*ci.bp(t)/1800:Math.PI*ci.cP(t)/18e7},ci.a5r=function(t){return t.A7<1500?ci.L4(t):ci.VZ(t)/254e3},ci.L4=function(t){return t.A7<600?ci.bp(t)/1e3:ci.cP(t)/254e3},ci.a2a=function(t){return t.A7<600?CRDParser.ZQ(t):ci.RM(t)},ci.ahv=function(t){return t.A7<600?CRDParser.bp(t):ci.cP(t)},ci.gW=function(t,i,e,r){for(var n=ci,a=n.afD,s=n.ZQ,l=n.RM,h=n.abJ,o=n.bp,f=n.cP,u=n.VZ,p=n.L4,c=n.a5r,d=n.a65,g=n.a2a,b=n.ahv,m=0;m<i.length;m++){var x=t.A7,M=i[m];if(t.c=M.c+(M.Za=="LIST"?4:0),M.Za=="vrsn"){var S=s(t);t.A7=S,console.log("Version",S),t.eF=S<600?16:32}else if(M.Za!="DISP"){if(M.Za=="LIST"&&M.bl=="cmpr"){var w=l(t),k=l(t),T=l(t),L=l(t),O=new Uint8Array(t.data.buffer,t.c+8+2,w-6-8),E=pako.inflateRaw(O),D=0;t.c+=w,O=new Uint8Array(t.data.buffer,t.c+8+2);for(var B=pako.inflateRaw(O),I=[],N=0;N<B.length;N+=4)I.push(A.L6(B,N));for(M.sub=[];D<E.length;){var V=Ga.fr(E,D,I);D=V.c+V.size,M.sub.push(V)}var j={data:E,c:0,A7:x,eF:t.eF};ci.gW(j,M.sub,e,r+1)}else if(M.Za=="LIST"&&M.bl=="stlt"){var R=t.c,G=32;M.C={};var Z=l(t);if(Z==0)return;M.C.aiq=ci.TQ(t,x>=1300),M.C.a6R=ci.TQ(t),M.C.qb={};for(var _=l(t),U=0;U<_;U++){var Y=l(t);t.c+=x<1e3?12:20;var $=s(t),P=s(t);t.c+=8;var tt=p(t);t.c+=x<1e3?12:20,M.C.qb[Y]={a0e:$,acm:P,fontSize:tt}}M.C.a8k=ci.TQ(t);var X=l(t);t.c+=52*X;var ht=l(t);t.c+=152*ht;var F=l(t);t.c+=784*F;for(var J=l(t),U=0;U<J;U++)t.c+=40,x>1300&&(t.c+=4),x>=1300?l(t)?t.c+=68:t.c+=12:(t.c+=20,x>=1e3&&(t.c+=8),l(t)&&(t.c+=8),t.c+=8);var Q=l(t);M.C.ag4={};for(var U=0;U<Q;U++){var rt=l(t),it={};t.c+=12,it.right=p(t),it.abn=p(t),it.left=p(t),M.C.ag4[rt]=it}var nt=l(t);x>=1300&&(G+=4),t.c+=G*nt;var ot=l(t);if(t.c+=28*ot,x>800){var pt=l(t);t.c+=12*pt}M.C.gg={};for(var U=0;U<Z;U++){var yt=l(t),ct=l(t),vt={};vt.MB=l(t),t.c+=8;var wt=l(t);x>=1200&&(wt*=2),t.c+=wt,vt.Kf=l(t),vt.O7=l(t),yt>1&&(vt.a1t=l(t),vt.ab1=l(t),vt.akJ=l(t),vt.a47=l(t),x>800&&(vt.ah_=l(t))),yt>2&&(vt.agm=l(t),vt.a9T=l(t),vt.aas=l(t),vt.ad6=l(t),vt.a9d=l(t)),M.C.gg[ct]=vt}}else if(M.Za=="LIST")ci.gW(t,M.sub,e,r+1);else if(M.Za=="txsm"){if(M.C={},x<600||x<700||x>=1600)throw"e";x>=1500?t.c+=37:t.c+=36,l(t)&&x<800&&(t.c+=32),x<800&&(t.c+=4),M.C.a7D=l(t),M.C.qR=[],t.c+=48,x>=800&&l(t)&&(t.c+=32,x>=1300&&(t.c+=8)),x>=1500&&(t.c+=12);var yt=l(t),Mt=1,Ct=!1;yt||(x>=800&&(t.c+=4),x>800&&(t.c+=2),x>=1400&&(t.c+=2),t.c+=24,x<800&&(t.c+=8),Mt=l(t));for(var N=0;N<Mt;N++){var gt=l(t),U=0;x>=1300&&yt&&t.c++,t.c++;var Z=l(t),bt=[];for(U=0;U<Z;U++){var xt=a(t),Dt=0;a(t);var Ot=a(t);x>=800&&(Dt=a(t));var vt={};if(Ot&1){vt.a0e=s(t);var kt=s(t);kt&&(vt.agv=kt)}if(Ot&2&&(t.c+=4),Ot&4&&(vt.a7i=p(t)),Ot&8&&(t.c+=4),Ot&16&&(t.c+=4),Ot&32&&(t.c+=4),Ot&64&&(vt.Kf=l(t),x>=1500&&(t.c+=48)),Ot&128&&(vt.O7=l(t)),Dt&8)if(x>=1300){var mt=l(t);if(t.c+mt*2>=t.data.length){Ct=!0;break}t.c+=mt*2}else t.c+=4;if(Dt&32){var It=a(t);It&&(t.c+=52)}xt==2&&x>=1300&&(t.c+=48),bt.push(vt)}if(Ct)break;var Bt=l(t);if(t.c+B
|
||
|
`),xt=xt.replace(/\u2029/g,`
|
||
|
`),xt=xt.replace(/\r/g,`
|
||
|
`),lt.v$(bt,0,xt);var kt=t.textAutoResize,mt=wt.baselines;if(kt=="WIDTH_AND_HEIGHT"){var It=Ct==0?0:Ct==1?Mt.x:Mt.x/2,Bt=mt?mt[0].position.y:0;gt.translate(It*O.d3(),Bt*O.d3()),lt.E5(bt,0)}else if(kt=="HEIGHT"||kt=="NONE"||kt==null){var Bt=mt?mt[0].position.y-t.fontSize*.7:0;gt.translate(0,Bt*O.d3()),lt.E5(bt,1),lt.Z1(bt,[0,0,Math.round(Mt.x),Math.round(1.2*Mt.y)])}else throw kt;if(xt!=""){var Ut=lt.lW(bt,0,1);l.In(t,O,w,Ut,T,r,n,s),lt.Ji(bt,0,xt.length,Ut);var qt=wt.characterStyleIDs,Gt=wt.styleOverrideTable;if(qt)for(var d=0;d<qt.length;d++){var zt=qt[d];if(xt[d]!=`
|
||
|
`&&zt!=0){for(var Nt,Kt=0;Kt<Gt.length;Kt++)Gt[Kt].styleID==zt&&(Nt=Gt[Kt]);var Ut=lt.lW(bt,d,d+1);l.In(Nt,O,w,Ut,T,r,n,s),lt.Ji(bt,d,d+1,Ut)}}}}else if(M!="SYMBOL")if(M=="INSTANCE"){var ai=t.symbolData,fi=ai.symbolOverrides,m=l.Ye(s.Mo,ai.symbolID);m?S=m.children:console.log(t.name,"symbol not found",ai.symbolID),i=i.slice(0);for(var d=0;d<fi.length;d++)i.push(fi[d])}else console.log(M)}if(S&&!V){if(S.sort(l.Xw),a==0&&M!="SYMBOL"&&M!="INSTANCE"){T.BE(E);var di=D?D[0]:null;if(di&&di.type=="SOLID"){var $t=di.color;T.add.artb.artboardBackgroundType.v=4,T.add.artb.Clr=l.HD($t)}}n.r.push(n.Px());var si=s._2;s._2={};for(var li=0;li<S.length;li++)l.xf(S[li],i,O,r,n,a+1,s);s._2=si,T.add.lsct=Ci.kE,T.sW="pass";var Li=T.UQ();T.ix=24,T.vR(Li);var vi=a!=0&&D.length!=0&&!t.frameMaskDisabled&&t.containerSupportsFillStrokeAndCorners;vi&&o?(T.add.vmsk=o,T.add.vogk=f,T._V(n)):l.WS(s,T,n),n.r.push(T)}else if(t.mask)o&&(s._2.PS=o,s._2.P$=f);else{var yi=[],_t=1;if(k)for(var wi=0;wi<k.length;wi++){var Q=k[wi],Zi=Q.color,Vi=Q.type,Mi=["DROP_SHADOW","INNER_SHADOW"].indexOf(Vi);if(Mi!=-1){var ce=["DrSh","IrSh"][Mi],Ri=JSON.parse(at.IW[at.order.indexOf(ce)]);yi.push([ce,Ri]),Ri.enab.v=Q.visible,Ri.Md.v.BlnM=ti.Kl(l.aja(Q.blendMode)),Ri.Opct.v.val=Math.round(100*Zi.a),Ri.blur.v.val=Math.round(Q.radius*O.d3()),Ri.Clr=l.HD(Zi);var It=Q.offset.x,Bt=Q.offset.y;Ri.uglg.v=!1,Ri.lagl.v.val=Math.round(180/Math.PI*Math.atan2(Bt,-It)),Ri.Dstn.v.val=Math.round(Math.sqrt(It*It+Bt*Bt)*O.d3())}}M=="TEXT"&&D[0]&&D[0].type!="SOLID"&&(_t=0);for(var d=_t;d<D.length;d++){var zi=D[d],ee=l.Zx(t,zi,O,E,r,n,s);if(ee[0]=="GdFl")yi.push(["GrFl",ee[1]]);else if(ee[0]=="SoCo")yi.push(["SoFi",ee[1]]);else if(ee[0]=="PtFl")yi.push(["patternFill",ee[1]]);else throw ee}if(yi.length!=0){for(var Be=JSON.parse(at.default),d=0;d<at.order.length;d++)Be[at.og[d]]={t:"VlLs",v:[]};for(var d=0;d<yi.length;d++){var Yi=yi[d],ce=at.og[at.order.indexOf(Yi[0])];Be[ce].v.unshift({t:"Objc",v:Yi[1]})}S==null&&(T.add.lmfx=Be)}n.r.push(T)}},Pe.Xw=function(t,i){var e=t.parentIndex.position,r=i.parentIndex.position;return e>r?1:-1},Pe.bH=function(t){for(var i=1;i<t.length;i++){var e=t[i];if(e.type=="IMAGE"&&e.opacity==1){t=t.slice(i);break}}for(var i=0;i<t.length;i++){var e=t[i],r=e.imageThumbnail;e.type=="IMAGE"&&e.image.dataBlob==null&&r&&r.dataBlob&&(e.image=r),(!e.visible||e.type=="IMAGE"&&e.image.dataBlob==null)&&(t.splice(i,1),i--)}return t},Pe.WS=function(t,i,e){t._2.PS&&(i.add.vmsk=t._2.PS.clone(),i.add.vogk=JSON.parse(JSON.stringify(t._2.P$)),i._V(e))},Pe.In=function(t,i,e,r,n,a,s,l){var h=t.fontSize,o=t.lineHeight,f=t.fontName,u=t.textAlignHorizontal,p=t.textTracking,c=t.textCase;if(h==null&&(h=r.dS.FontSize),f&<.oi(r,f.postscript),h!=null&&(r.dS.FontSize=Math.round(h)),p&&(r.dS.Tracking=Math.round(p*1e3)),c&&(r.dS.FontCaps=c=="UPPER"?2:0),o&&(o.units!="PERCENT"||o.value!=100)){var d=o.value;o.units=="PERCENT"&&(d=1*h*d/100),o.units=="RAW"&&(d=1*h*d),r.dS.AutoLeading=!1,r.dS.Leading=Math.round(d)}u&&(r.eS.Justification=["LEFT","RIGHT","CENTER"].indexOf(u));var g=t.fillPaints,b=t.inheritFillStyleID;if(b){var m=Pe.Ye(l.Mo,b);m&&(g=m.fillPaints)}if(g&&g[0]){var x=Pe.Zx(t,g[0],i,e,a,s,l);if(x[0]=="SoCo"){var M=v.j.T6(x[1].Clr.v);r.dS.FillColor={Type:1,Values:[1,M.U/255,M.S/255,M.i/255]},n.opacity=Math.round(n.opacity/255*(x[1].Opct.v.val/100)*255)}}},Pe.Zx=function(t,i,e,r,n,a,s){var l=Pe,h,o,f=t.size;if(i){var u=i.type,p=["GRADIENT_LINEAR","GRADIENT_RADIAL","GRADIENT_DIAMOND","GRADIENT_ANGULAR"].indexOf(u);if(u=="SOLID"){h="SoCo";var c=i.color;o=JSON.parse(at.IW[at.order.indexOf("SoFi")]),o.Clr=l.HD(c)}else if(p!=-1){var d=JSON.parse(at.IW[at.order.indexOf("GrFl")]),g=d.Grad.v;g.Intr.v=0,d.Type.v.GrdT=["Lnr","Rdl","Dmnd","Angl"][p];for(var b=[],m=i.stops,x=0;x<m.length;x++){var M=m[x],S=M.color;b.push([M.position,[S.r,S.g,S.b],S.a])}v.j.nO(b,g);var w=l.FB(i.transform);w.nJ();var k=w.clone();k.scale(f.x,f.y),k.concat(e);var T=new st(0,.5),L=new st(1,.5);T=k.aT(T),L=k.aT(L),T.x=L.x+.5*(T.x-L.x),T.y=L.y+.5*(T.y-L.y),v.j.VB(T,L,r,d),p==3&&k.m*k.xA-k.i*k.p$<0&&(d.Rvrs.v=!d.Rvrs.v),h="GdFl",o
|
||
|
`));for(var S=0;S<2;S++)for(var Y=j[S==0?"Txtt":"paragraphStyleRange"].v,u=0;u<Y.length;u++){var $=Y[u].v,l=$.From.v,h=$.T.v-1;$=$[S==0?"TxtS":"paragraphStyle"].v;var P=lt.lW(U,l,h),tt=S==0?P.dS:P.eS;for(var X in $){var ht=$[X].v;X=="Sz"&&(tt.FontSize=Math.round(ht.val)),X=="fontPostScriptName"&<.oi(P,ht),X=="Algn"&&(tt.Justification={Cntr:2}[ht.Alg])}lt.Ji(U,l,h,P)}var I=new Si(c.MF,n.SN),N=Ee.ti(I,c);p.rect=N.T,p.buffer=N.Ww,p.A(),e.A(),this.BU(e,i)}},C.aq.prototype.X_=function(t){var i=Math.min(this.J$,this.MI),e=Math.max(this.J$,this.MI),r=this._1.add.TySh;lt.LE(r,this.RG),lt.Ji(r.MF,i,e-1,this.RQ(t,r));var n=this.EA,a=this.vU(n,t);a&&this.K$(n),document.activeElement.tagName.toLowerCase()!="input"&&this.YK.focus()},C.aq.prototype.aU=function(t){return this.Ic.indexOf(t)!=-1},C.aq.prototype.enable=function(t,i,e,r){var n=this.YK;y.WW(n)||i.u.appendChild(n),this.s1="default",this.b9(i)},C.aq.prototype.go=function(){return this._1!=null},C.aq.aj=function(t,i){for(var e=t.r.length-1;e>=0;e--){var r=t.r[e];if(r.add.TySh&&r.rect.oz(i)&&t.i7(e)){var n=r.k6(2)||r.k6(31);return n?-2:e}}return-1},C.aq.prototype.R$=function(t,i,e,r,n){this.EA=t,this.s0=e,this.caller=i;var a=t.a.PY(n.x,n.y),s=this._1==null;if(s){var l=C.aq.aj(t,a);if(l==-2){alert(Lt.get([6,57,0]));return}if(l>=0){if(!Ee.SR(t.r[l].add.TySh,e.SN)){alert("Fonts not loaded yet");return}this.oy(t,i,e,[l])}else{this.EO=!0,this.Kq=n;return}}var h=s?-1:lt.AW(this._1.add.TySh.MF),o=this.YW?this.YW:this.JE;if(o&&o.R$(t,e,r,a)&&v.mD.O8(this._1.add.TySh.VU)||!s&&v.D.QX(a,this._1.rect)>20/t.a.F&&(h==0||h==1))this.eC=!0,this.HG=a,this.oM=this._1.add.TySh.O.clone(),this.J$==-1&&this.MI==-1&&(this.J$=this.MI=this.QG(a));else{if(this.AS==null){alert("Fonts not loaded yet");return}this.NK=!0,this.J$=this.MI=this.QG(a);var f=Date.now();f-this.Bd>300&&(this.hN=0),this.hN++,this.Bd=f,this.hN==2&&this.a7f(),this.hN==3&&this.a73(),this.hN>1&&(this.NK=!1)}this.zx(),this.K$(t)},C.aq.prototype.oy=function(t,i,e,r){var n=t.r[r[0]];this._1=n,this.fF(i,y.E.L,{e:y.B.Zo,Q:this.id,He:"showactive"}),this.U7=r,t.p=r.slice(0),t.HP(),t.Mv=!0,this.RN=this.Fn(t,r),this.yz(n.add.TySh),this.vU(t,e)},C.aq.prototype.yz=function(t){if(lt.AW(t.MF)==1){var i=lt.dd(t.MF);i=new et(0,0,i[2]-i[0],i[3]-i[1]);var e=[i.x,i.y,i.x+i.Z,i.y,i.x+i.Z,i.y+i.h,i.x,i.y+i.h];v.D.O(e,t.O,e),this.JE=new le(e,!1,!1,!1,!0)}},C.aq.prototype.a7f=function(){var t=lt.jn(this._1.add.TySh.MF);this.J$=this.e_(t,this.J$),this.MI=this.Nt(t,this.J$)},C.aq.prototype.e_=function(t,i){for(var e=`
|
||
|
,.?!_-+=@#$%^&*'"(){}[]\\/<>:;|`,r=[],n=0;n<e.length;n++)r.push(e.charAt(n));for(var a=r.indexOf(t[i])==-1,n=i-1;n>=0;n--)if(r.indexOf(t.charAt(n))!=-1==a)return n+1;return 0},C.aq.prototype.Nt=function(t,i){for(var e=`
|
||
|
,.?!_-+=@#$%^&*'"(){}[]\\/<>:;|`,r=[],n=0;n<e.length;n++)r.push(e.charAt(n));for(var a=r.indexOf(t[i])==-1,n=i+1;n<t.length;n++)if(r.indexOf(t.charAt(n))!=-1==a)return n;return t.length-1},C.aq.prototype.a73=function(){var t=this.AS.agM(this.J$);this.J$=t[0],this.MI=t[1]},C.aq.prototype.b9=function(t){var i=new z(y.E.L,!0);i.data={e:y.B.Ik,rr:this.s1},t.w(i)},C.aq.prototype.$E=function(t,i,e,r,n){var a=t.a.PY(n.x,n.y),s=this._1;if(!n.Ku){var l="default",h=this.JE,o=this.YW?this.YW:h;if(o&&v.mD.O8(s.add.TySh.VU)){var f=o.Eb(a,t.a.F);f?l=f:o==h&&h.kl(a)&&(l="text")}else s&&v.D.QX(a,s.rect)>20/t.a.F?l="move":C.aq.aj(t,a)>=0&&(l="text");l!=this.s1&&(this.s1=l,this.b9(i))}var u=this.Kq;if(this.EO&&Math.min(n.x-u.x,n.y-u.y)>4/t.a.F){this.EO=!1,this.m5(t,i,e,r,n),s=this._1,this.eC=!0,this.JE=new le(null,!1,!1,!1,!0);var p=t.a.PY(this.Kq.x,this.Kq.y);p.x=Math.round(p.x),p.y=Math.round(p.y),this.JE.R$(t,e,r,p)}if(this.eC){var c=s.add.TySh;if(this.YW){this.YW.$E(t,e,r,a);var d=v.P.z5(v.P.bg(this.YW._4(),this.LM));c.O=d,this.vU(t,e),lt.SK(c)}else if(this.JE){this.JE.$E(t,e,r,a);var g=c.O.clone(),b=Math.atan2(g.i,g.m);g.rotate(b);var d=v.P.z5(v.P.bg(this.JE._4())),m=Math.atan2(d.i,d.m);if(d.rotate(m),!isNaN(d.m)&&d.m*d.xA-d.i*d.p$!=0){var x=new et(0,0,d.m/g.m,d.xA/g.xA),M=Math.round(x.Z),S=Math.round(x.h),w=c.MF.Curve;if(w){var k=lt.dd(c.MF),T=new Et(M/k[2],0,0,S/k[3],0,0);v.D.O(w.Points,T,w.Points),lt.SK(c)}lt.Z1(c.MF,[0,0,M,S]),c.O=v.P.z5(v.P.bg(this.JE._4(),x)),this.vU(t,e),lt.SK(c)}}else{var L=a.x-this.HG.x,O=a.y-this.HG.y;c.O=this.oM.clone();var E=new st(c.O.PV+L,c.O.ye+O);E=C.qT.aE(t,E,e),c.O.PV=E.x,c.O.ye=E.y,this.vU(t,e)}}this.NK&&(this.MI=this.QG(a)),(this.eC||this.NK)&&this.K$(t)},C.aq.prototype.m5=function(t,i,e,r,n){var a=t.Cj(),s=a[0],l=a[1],h=t.an();h.add.lnsr="rend";var o=t.r.slice(0);h.uf("Text layer "+o.length),this._1=h;var f=t.p.length==0?t.r.length-1:t.p[t.p.length-1],u=f+1;o[f].add.lsct==Ci.lw&&u--,this.RN={Q1:o.slice(0),la:t.p.slice(0)},o.splice(u,0,h),t.p=[u],this.J$=this.MI=0,t.wG(o),this.RN.L_=o.slice(0),this.RN.Od=t.p.slice(0),this.fF(i,y.E.L,{e:y.B.Zo,Q:this.id,He:"showactive"});var p=t.a.PY(n.x,n.y);h.add.TySh=lt.T_(p.x,p.y,e.T2);var c=h.add.TySh,d=c.MF;if(lt.LE(c,this.RG),n.Ku)lt.E5(d,1);else{lt.E5(d,0);var g=s[l.pop()],b=g?g.add.vmsk:null;if(b){b=b.clone();for(var m=b.b,x,M,S=0;S<m.length;S++)m[S].IO!=null&&(m[S].IO=0);var w=4*y.J()/t.a.F;if(x=v.V.cp(b.b,p,!0,w),x.XN==-1&&(x=v.V.cp(b.b,p)),x.XN!=-1){lt.E5(d,1);var k=v.V.cx(m,x.XN),T=v.V.SD(m,x.XN)-1;if(m=b.b=m.slice(0,2).concat(m.slice(k,k+T+1)),b.p=[],c.add={vmsk:b,vogk:H.h7(m)},d.Curve={},lt.jj(c),x._2!=null){var L=Si.Pr(d.Curve);v.D.O(L[0],c.O,L[0]);var O=v.D.n0(L[0],p.x,p.y),E=e.T2.eS.Justification;if(E==2||E==5){var D=(L[2][O]+L[3]*.5)%L[3];O=Si.Ec(D,L[2])}var B=L[1][O];B=B%T,b.A2=[B,B],lt.jj(c)}else this.yz(c)}}}return h},C.aq.prototype.NL=function(t,i,e,r,n){var a=t.a.PY(n.x,n.y),s=this.EO;this.EO&&(this.EO=!1,this.m5(t,i,e,r,n),this.NK=!0),(this.eC||this.NK)&&(this.K$(t),this.zx(),s&&this.X_(e)),this.eC&&this.JE&&this.JE.NL(t,e,r,a),this.eC=this.NK=!1,this.UD(t,e,r),this.YK.focus()},C.aq.prototype.zx=function(){var t=this._1.add.TySh,i=Math.min(this.J$,this.MI),e=Math.max(this.J$,this.MI),r,n;if(i==e){var a=lt.jn(t.MF);i==0||a.charAt(i-1)==`
|
||
|
`?r=n=i:r=n=i-1}else r=i,n=e-1;var s=lt.lW(t.MF,r,n);lt.eQ(s,C.X.d3(t.O)),this.xk(this.caller,s,t)},C.aq.prototype.xk=function(t,i,e){this.fF(t,y.E.L,{e:y.B.Sl,S9:ut.Ol,T2:i});var r=this.RG=lt.oQ(e);this.fF(this.caller,y.E.L,{e:y.B.Zo,Q:this.id,He:"changeAA",uB:r})},C.aq.prototype.gU=function(t,i,e,r){r.s(W.yc)&&this.OZ(t,i);var n=this._1;if(n)if(this.YW==null&&r.s(W.Bl)){var a=n.add.TySh,s=lt.AW(a.MF),l;s==1?(l=lt.dd(a.MF),l=new et(0,0,l[2]-l[0],l[3]-l[1])):l=this.AS.yD();var h=[l.x,l.y,l.x+l.Z,l.y,l.x+l.Z,l.y+l.h,l.x,l.y+l.h];v.D.O(h,a.O,h),this.YW=new le(h,!0,!0,!1,!1),this.LM=l,this.K$(this.EA)}else this.UD(t,e,r)},C.aq.prototype.UD=function(t,i,e){var r=this._1;r&&!this.eC&&this.YW!=null&&!e.s(W.Bl)&&(this.YW.NL(t,i,e,null),this.YW=null,this.yz(r.add.TySh),this.K$(this.EA))},C.aq.prototype.disable=function(t,i,e,r){var n=this._1;this.BU(t,i)},C.aq.prototype.zT=function(t,i,e,r,n){if(!this.rk&&(t.He=="commit"&&this.BU(e,i),t.He=="cancel"&&this.OZ(e,i),t.He=="changeAA"&&(this.RG=t.uB,e!=null&&this.XZ({e:"updateStyles"},i,e,r,n)),t.He=="showwarp")){if(e==null)return;if(this._1==null){var a=e.r[e.p[0]],s=a.add.TySh;if(s==null)return;this.oy(e,i,n,[e.p[0]]),this.YK.focus(),this.rk=!0}this.Ir=this._1.add.TySh.VU;var l=new z(y.E.L,!0);l.data={e:y.B.uH,W2:"textwarp"},i.w(l)}},C.aq.prototype.AK=function(t,i){if(i==ut.Du){if(this.DH){this.DH=!1;for(var e=this.EA,r=this.U7,n=0;n<r.length;n++)this._1=e.r[r[n]],this.vU(e,t);this.BU(e,this.caller);return}this._1&&this.X_(t)}},C.aq.prototype.RQ=function(t,i){var e=JSON.parse(JSON.stringify(t.T2));return lt.eQ(e,1/C.X.d3(i.O)),e},C.aq.prototype.oF=function(t,i){t.hC!=null?this.rw(i,t.B2):this.Xg(i,t.L_,t.Od)},C.aq.prototype.tO=function(t,i){t.hC!=null?this.rw(i,t.hC):this.Xg(i,t.Q1,t.la)},C.aq.prototype.rw=function(t,i){for(var e=0;e<i.length;e++){var r=i[e],n=r.vS,a=t.r[n];a.buffer=r.Tr,a.rect=r.T.clone(),a.A();var s=a.add.TySh;s.VU=r.mD,s.xa=r.xa.clone(),s.O=r.O.clone(),s.MF=JSON.parse(JSON.stringify(r.MF)),a.cg()}t.A()},C.aq.prototype.Fn=function(t,i){for(var e=[],r=0;r<i.length;r++){var n=i[r],a=t.r[n],s=a.add.TySh;e.push({vS:n,O:s.O.clone(),mD:JSON.parse(JSON.stringify(s.VU)),xa:s.xa.clone(),MF:JSON.parse(JSON.stringify(s.MF)),Tr:v.clone(a.buffer),T:a.rect.clone()})}return e},C.aq.prototype.Xg=function(t,i,e){t.p=e,t.wG(i),t.A(),t.Vf=!0},C.aq.prototype.vU=function(t,i,e){e==null&&(e=!1);var r=this._1.add.TySh;if(!Ee.SR(r,i.SN))return!1;if(this.AS=new Si(r.MF,i.SN),!e){var n=lt.jn(r.MF);this.YK.value=n.slice(0,n.length-1)}var a=Ee.ti(this.AS,r);if(v.mD.O8(r.VU))r.xa=new et;else if(lt.AW(r.MF)==1){var s=lt.dd(r.MF),l=a.xa.y;r.xa=new et(0,l,s[2]-s[0],s[3]-s[1]-l)}else r.xa=a.xa;var h=this._1.rect;return this._1.rect=a.T,this._1.buffer=a.Ww,this._1.A(),t.dr(),t.A(t.root.Ch(a.T.s7(h),t,t.r.indexOf(this._1))),!0},C.aq.prototype.jo=function(t){if(!(this._1==null||this.rk)){var i=this.YK.selectionStart,e=this._1.add.TySh,r=lt.jn(e.MF),n=this.YK.value+`
|
||
|
`,a=Math.min(this.J$,this.MI),s=Math.max(this.J$,this.MI),l=!1;if(this.J$=Math.min(i,a),n.length-i<r.length-this.MI&&(this.MI=r.length-n.length+i),r!=n)for(;this.J$>0&&r.charAt(this.J$-1)!=n.charAt(this.J$-1);)this.J$--;var h=r.substring(0,this.J$),o=r.substring(this.MI,r.length),f=n.substring(this.J$,n.length-o.length);lt.Iw(e.MF,this.J$,this.MI),lt.v$(e.MF,this.J$,f);for(var u=this.RQ(this.s0,e),p=-1,c=Array.from(f),d=0;d<c.length;d++)p=Math.max(p,c[d].codePointAt(0));if(p!=-1&&p>128&&u.dS.Font!=null){var g=u.Dm[u.dS.Font].Name,b=this.s0.SN.Jd(p,g,u.Dm);g!=b&&(lt.oi(u,b),l=!0)}if(this.kD!=null&&f==this.kD){var m=JSON.parse(this.hO);u.dS=m.dS,u.Dm=m.Dm,l=!0}lt.Ji(e.MF,this.J$,this.J$+f.length-1,u),this.J$=this.MI=h.length+f.length;var x=this.EA,M=this.vU(x,this.s0,!0);M&&this.K$(x,!0),l&&this.zx()}},C.aq.prototype.a7q=function(t){if(!(this._1==null||this.rk)&&this._1!=null){var i=W,e=0,r=0,n=!1;i.be(t.code,i.rc)&&(e=1),i.be(t.code,i.Nf)&&(e=-1),i.be(t.code,i.DY)&&(r=-1),i.be(t.code,i.yF)&&(r=1);var a=t.ctrlKey||t.metaKey,s=i.be(t.code,W.adv),l=i.be(t.code,W.agd);if(i.be(t.code,W.Xr)&&a){this.BU(this.EA,this.caller);return}if(i.be(t.code,W.gP)){t.preventDefault();var h=this.YK,o=h.value,f=h.selectionStart,u=h.selectionEnd;h.value=o.substring(0,f)+" "+o.substring(u),h.selectionStart=h.selectionEnd=f+1,this.jo(null);return}if((i.be(t.code,i.qS)||i.be(t.code,i.ej))&&a){var p=this.J$,c=this.MI;if(p>c){var d=p;p=c,c=d}var g=this._1.add.TySh,b=lt.jn(g.MF);p!=c&&(this.kD=b.slice(p,c),this.hO=JSON.stringify(this.s0.T2))}var m=lt.jn(this._1.add.TySh.MF);if(e!=0||r!=0||s||l){t.preventDefault();var x=this.J$;if(e!=0)if(a&&e==-1)x=this.e_(m,this.J$-1);else if(a&&e==1)x=this.Nt(m,this.J$);else{var h=this.YK,o=h.value;x=this.J$+e,x!=0&&o.codePointAt(x-1)>65535&&(x+=e)}else if(r!=0){var M=this.AS.Fj(this.J$);r==-1&&M.Kc==0?x=0:r==1&&M.Kc==this.AS.aaP()-1?x=99999999999:x=this.AS.iT(new st(M.T.x+M.T.Z/2,0),M.Kc+r)}else if(s){for(var S=this.J$-1;S>0&&m.charCodeAt(S)!=10;)S--;x=S==0?0:S+1}else if(l){for(var S=this.J$;S<m.length-1&&m.charCodeAt(S)!=10;)S++;x=S}x=Math.max(0,Math.min(m.length-1,x)),t.shiftKey?this.J$=x:this.J$=this.MI=x,n=!0}i.be(t.code,W.B)&&a&&(this.J$=0,this.MI=m.length-1,n=!0),n&&(this.zx(),this.K$(this.EA))}},C.aq.ae$=function(t,i){var e=t.length;if(e!=i.length)return!1;for(var r=0;r<e;r++)if(t[r].vS!=i[r].vS)return!1;return!0},C.aq.prototype.BU=function(t,i){if(this._1!=null){this._1.cg();var e=this.RN;if(e instanceof Array){var r=this.Fn(t,this.U7),n=t.a1();if(n!=null&&n.Q==this&&n.data.hC&&C.aq.ae$(n.data.hC,e))n.data.B2=r;else{var a=new ni(this.name,this);a.data={hC:e,B2:r},t.TX(a)}}else{var a=new ni(this.name,this);a.data={Q1:e.Q1,L_:e.L_,la:e.la,Od:e.Od},t.TX(a)}this.escape(t,i)}},C.aq.prototype.OZ=function(t,i){this._1!=null&&(this.RN instanceof Array?(this.rw(t,this.RN),this._1&<.SK(this._1.add.TySh)):(t.p=this.RN.la,t.wG(this.RN.Q1)),t.A(),this.escape(t,i))},C.aq.prototype.escape=function(t,i){if(this._1=null,this.U7=null,this.AS=null,this.JE=null,this.YK.blur(),t.v.hK=null,t.v.Kp=null,t.v.CL=[],t.Vg=!0,this.eC=!1,this.NK=!1,this.J$=this.MI=-1,this.fF(i,y.E.L,{e:y.B.Zo,Q:this.id,He:"hideactive"}),this.sl){var e=new z(y.E.L,!0);e.data={e:y.B.MR,Q:this.sl},i.w(e),this.sl=null}},C.aq.prototype.fF=function(t,i,e,r){var n=new z(i,!0);n.data=e,r&&(n.Q=r),t.w(n)},C.aq.prototype.QG=function(t){var i=this._1.add.TySh,e=this.AS,r=i.O.clone();r.nJ();var n=r.aT(t),a=lt.o7(i,e),s=v.mD.ij(i.VU,a),l=v.ea.G.LJ(s,0,1,0,1),h=new Uint32Array(30),o=v.ea.G.a0i(l.IC,l.$x,n.x,n.y,h),f=v.ea.cp(s,n.x,n.y,l.IC,h,o,!1),u=v.ea.EZ;u==null&&(u=new Float64Array(2)),n=new st(a.x+u[0]*a.Z,a.y+u[1]*a.h);var p=e.iT(n);return p},C.aq.prototype.K$=function(t,i){i==null&&(i=!1);var e=this._1.add.TySh,r=lt.AW(e.MF),n=this.AS,a=n?lt.o7(e,n):null;t.v.CL=[],t.v.hK=null,t.v.Kp=null;var s=this.YW?this.YW:this.JE;if(s){s.b4(t,this.s0,!v.mD.O8(e.VU));var l=e.O.clone();if(l.nJ(),v.D.O(t.v.CL,l,t.v.CL),v.D.O(t.v.hK.d,l,t.v.hK.d),n&&n.a7j()){var h=a.Z-20,o=a.h+8;t.v.hK.d.push(h,o,h+10,o,h+5,o-5,h+5,o+5),t.v.hK.W.push("M","L","M","L")}}else r==0?this.afl(t,e
|
||
|
`){var f=o.Sx.FontSize/o.kb.head.unitsPerEm,u=lt.T6(o.Sx),p=(Math.round(u.U)<<16)+(Math.round(u.S)<<8)+Math.round(u.i);n.W.push("#"+v.v2(p));var c=a.clone();c.translate(l.tZ.x+l.XW*f,l.tZ.y-l.tD*f);var d=new Et;if(d.scale(f,-f),o.kU==1&&Ee.a0v.indexOf(o.hp)!=-1&&d.concat(new Et(-1,0,0,1,h,0)),o.Sx.FauxItalic&&d.concat(new Et(1,0,-Math.tan(.18),1,0,0)),d.translate(0,o.BS),d.scale(o.scale.x,o.scale.y),o.Sx.BaselineShift!=null&&d.translate(0,-o.Sx.BaselineShift),l.D8!=0&&d.rotate(-l.D8),d.concat(c),l.path.W.length!=0&&o.hp!=" ")if(o.Sx.FauxBold){var g=o.Sx.FontSize/2048*27*o.scale.x;d.PV+=g,v.D.concat(n,l.path,d),d.PV-=g+g,v.D.concat(n,l.path,d)}else v.D.concat(n,l.path,d);if(o.hp!=`
|
||
|
`){if(o.Sx.Underline){r.EF==null&&(r.EF=o.kb.post.underlineThickness),r.afO==null&&(r.afO=o.kb.post.underlinePosition);var b=0,m=r.afO-r.EF/2,x=l.Bx*1.05,M=-r.EF;v.D.concat(n,{W:["M","L","L","L","Z"],d:[b,m,b+x,m,b+x,m+M,b,m+M]},d)}if(o.Sx.Strikethrough){var S=o.kb["OS/2"].yStrikeoutSize,w=o.kb["OS/2"].yStrikeoutPosition,b=0,m=w+S/2,x=l.Bx*1.05,M=-S;v.D.concat(n,{W:["M","L","L","L","Z"],d:[b,m,b+x,m,b+x,m+M,b,m+M]},d)}}n.W.push("X")}}a.translate(-i.tZ.x,-i.tZ.y)};function Si(t,i){var e=lt.AW(t),r,n,a=lt.dd(t),s;t.Curve&&(n=Si.Pr(t.Curve)),e!=0&&(r=new et(a[0],a[1],a[2],a[3]),e==2&&(r.Z=n[5]-n[4],r.h=9999)),this.eS=[],this.dS=[],this.iy=e;for(var l=this.ac_=lt.jn(t),h=-1,o=0;o<l.length;o++){var f=s,u=lt.LQ(t,o);u!=h&&(h=u,f=s=lt.a7v(t,o));var p={hp:l.charAt(o),Sx:f,kb:null,FP:-1,BS:0,scale:new st(0,0),hq:0,lineHeight:0,kU:0},c=t.ResourceDict.FontSet[f.Font].Name,d=p.kb=i.VV(c,l.charCodeAt(o));p.scale.x=f.HorizontalScale==null?1:f.HorizontalScale,p.scale.y=f.VerticalScale==null?1:f.VerticalScale;var g=d["OS/2"],b=d.hhea;if(f.FontCaps==1&&p.hp!=p.hp.toUpperCase()){var m=g.sxHeight?g.sxHeight/g.sTypoAscender:.76;p.scale.x*=m,p.scale.y*=m}var x=1/d.head.unitsPerEm*f.FontSize;if(f.FontBaseline==1){var m=t.ResourceDict.SuperscriptSize;p.scale.x*=m,p.scale.y*=m,p.BS-=t.ResourceDict.SuperscriptPosition*f.FontSize}if(f.FontBaseline==2){var m=t.ResourceDict.SubscriptSize;p.scale.x*=m,p.scale.y*=m,p.BS+=t.ResourceDict.SubscriptPosition*f.FontSize}var M=Si.hq(d,c);p.hq=M*x,p.lineHeight=f.FontSize*1.2,f.AutoLeading==!1&&(p.lineHeight=f.Leading),this.dS.push(p)}for(var S=this.eS,w=[0],o=0;o<t.EngineDict.ParagraphRun.RunLengthArray.length;o++){var k=new Si.md(t,i,this.dS,o,r,w,e==1?n:null);S.push(k)}if(e==2){for(var T=t.Curve.Points,L=n[0],O=n[1],E=n[2],D=n[3],B=n[4],I=n[5],o=0;o<S.length;o++)for(var N=0;N<S[o].V8.length;N++)o==0&&N==0||(S[o].V8[N].fH=!1);var k=S[0],V=k.V8[0];k.tZ.Oh(0,0),V.tZ.Oh(0,0);for(var N=V.start;N<V.end;N++){var j=k.Vz[N],R=j.tZ.x;j.tZ.x=0;for(var G=j.GZ;G<=j.sf;G++){var Z=k.K5[G],_=Z.T.Z/2;Z.tZ.x+=R;var U=Si.adt(L,(B+Z.tZ.x+_)%D);Z.tZ.x=U[0]-_*U[2],Z.tZ.y=U[1]-_*U[3],Z.D8=Math.atan2(U[3],U[2])}}}}Si.hq=function(t,i){var e=t["OS/2"],r=t.hhea,n=0,n=0,a=[];a.push(e&&e.sxHeight&&i.toLowerCase().indexOf("capitals")!=-1?e.sxHeight:0),a.push(e&&e.sCapHeight?e.sCapHeight:0),a.push(e&&e.sTypoAscender?e.sTypoAscender:0),a.push(r.ascender?r.ascender:0);for(var s=0;s<a.length;s++)if(a[s]!=0){n=a[s];break}return n},Si.prototype.a7j=function(){return!this.q8(0)},Si.prototype.aaP=function(){return this.q8(1)},Si.prototype.q8=function(t){for(var i=this.eS,e=!0,r=0,n=0;n<i.length;n++){var a=i[n].V8,s=a.length;r+=s;for(var l=0;l<s;l++)e&=a[l].fH}return[e,r][t]},Si.Pr=function(t){var i=t.Points,e=i.length,r=e>>>3,n=t.TextOnPathTRange,a=t.Reversed,s=0,l=0;if(a){for(var h=i.slice(0),o=0;o<e;o+=2)h[o]=i[e-2-o],h[o+1]=i[e-1-o];i=h,n=[r-n[1]%r,r-n[0]%r]}for(var f=[],u=[0],p=[0],o=0;o<e;o+=8)for(var c=i[o+6]-i[o+0],d=i[o+7]-i[o+1],g=Math.round(4*Math.sqrt(c*c+d*d)),b=0;b<g;b++){var m=b/g,x=1-m,M=x*x*x*i[o+0]+3*x*x*m*i[o+2]+3*x*m*m*i[o+4]+m*m*m*i[o+6],S=x*x*x*i[o+1]+3*x*x*m*i[o+3]+3*x*m*m*i[o+5]+m*m*m*i[o+7];if(f.push(M,S),o+b!=0){var c=M-s,d=S-l;p.push(p[p.length-1]+Math.sqrt(c*c+d*d)),u.push((o>>>3)+m)}s=M,l=S}var w=p.length,k=p[w-1],T=Si.Ec(n[0],u),L=Si.Ec(n[1]%r,u),O=p[T%w],E=p[L%w];return O>=E&&(E+=k),[f,u,p,k,O,E]},Si.Ec=function(t,i){for(var e=0;i[e]<t;)e++;return e},Si.adt=function(t,i){for(var e=0,r=0,n,a,s;e<i;)n=t[r+2]-t[r],a=t[r+3]-t[r+1],s=Math.sqrt(n*n+a*a),e+=s,r+=2;return[t[r],t[r+1],n/s,a/s]},Si.prototype.a71=function(t){return this.dS[t]},Si.prototype.agM=function(t){for(var i=0;i<this.eS.length;i++)for(var e=this.eS[i],r=0;r<e.V8.length;r++){var n=e.V8[r],a=e.Vz[n.start].start,s=e.Vz[n.end-1].end;if(a<t&&t<s)return[a,s-1]}return[0,1]},Si.prototype.iT=function(t,i){var e=-1,r=this.eS;if(this.iy==2){for(var n=1e9,a=0,s=r[0],l=s.V8[0],h=l.start;h<l.end;h++)for(var o=s.Vz[h],f=o.GZ;f<=o.sf;f++){var u=s.K5[f],p=u.T.Z,c=t.x-u.tZ.x,d=t.y-u.tZ.y,g=c*c+d*d;g<n&&(n=g,a=u.Fc)}return a!=0&&this.ac_.codePointAt(a-1)>65535&&a--,a}f
|
||
|
`&&(L==0&&t.x>S+p/2||L==1&&t.x<S+p/2)&&(k+=this.ac_.codePointAt(k)>65535?2:1),k}}}},Si.prototype.Fj=function(t){for(var i={T:new et,Kc:0},e=0,r=0;r<this.eS.length;r++)for(var n=this.eS[r],a=0;a<n.V8.length;a++){var s=n.V8[a];i.Kc=e,e++;for(var l=s.start;l<s.end;l++)for(var h=n.Vz[l],o=h.start;o<h.end;o++)if(o==t){for(var f=this.dS[o],u=f.FP,p=n.K5[u].Fc,c=1;n.K5[u]!=null&&n.K5[u].Fc==p;){var d=n.K5[u],g=n.tZ.x+s.tZ.x+h.tZ.x+d.tZ.x,b=n.tZ.y+s.tZ.y+h.tZ.y+d.tZ.y;i.T=i.T.s7(new et(g,b-f.lineHeight,d.T.Z,f.lineHeight)),i.D8=d.D8,u+=c}return i}}},Si.prototype.yD=function(){for(var t=Infinity,i=Infinity,e=-Infinity,r=-Infinity,n=0;n<this.eS.length;n++)for(var a=this.eS[n],s=0;s<a.V8.length;s++){var l=a.V8[s];if(!l.fH)break;for(var h=l.start;h<l.end;h++)for(var o=a.Vz[h],f=o.GZ;f<=o.sf;f++){var u=a.K5[f],p=u.T,c=a.tZ.x+l.tZ.x+o.tZ.x+u.tZ.x,d=a.tZ.y+l.tZ.y+o.tZ.y+u.tZ.y;t=Math.min(t,c+p.x),i=Math.min(i,d+p.y),e=Math.max(e,c+p.x+p.Z),r=Math.max(r,d+p.y+p.h)}}return new et(t,i,e-t,r-i)},Si.g0=function(t){return 19968<=t&&t<=40959||12288<=t&&t<=12543},Si.alR=function(t,i,e,r,n,a,s){for(var l=[a],h=0,o=a;o<s;o++){e[o]==null&&console.log(o,a,s,e);var f=e[o].hp,u=f.charCodeAt(0);u==32||u==9?(l.push(h,o,1,o+1),h=0):u==3851?(l.push(h+1,o+1),h=0):Si.g0(u)||o!=a&&e[o].kU!=e[o-1].kU?(l.push(h,o),h=1):h++}l.push(h);for(var p=[],o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];d!=0&&p.push(new Si.a42(t,i,e,r,n,c,d))}return p},Si.a5F=function(t,i,e,r,n,a,s){var l=[0,i?i.Z:1e9],h=[];if(r){var o=t[a].hq,f=n+(n==0?o:t[a].lineHeight),u=f-o*.9,p=v.D.pD(r[0],u),c=p.length,d=v.D.pD(r[0],f),g=d.length;if(c!=0&&g!=0){var b=0,m=0;for(l=[];b<c&&m<g;){var x=Math.max(p[b],d[m]),M=p[b+1],S=d[m+1],w=Math.min(M,S);x<w&&l.push(x,w),M<S?b+=2:m+=2}}}for(var k=0;k<l.length;k+=2){for(var T=l[k+1]-l[k],L=0,O=a,E=i?T-e.StartIndent-e.EndIndent-(a==0?e.FirstLineIndent:0):Infinity;a!=t.length;){var D=t[a],B=L==0||D.L5||D.nz||L+D.T.Z<E;if(!B)break;L+=D.T.Z,a++}h.push(a-O)}s[0]=h,s[1]=l,s[2]=a},Si.a2j=function(t,i){for(var e=t.length,r=new Uint32Array(e),n=new Uint8Array(e),a=0,s=0;s<e;s++){n[s]=0;var l=t.charCodeAt(s);r[s]=l,l>a&&(a=l)}return a>1424&&(n=Si.a83(r,i)),n},Si.md=function(t,i,e,r,n,a,s){this.Vz=[],this.V8=[],this.tZ=new st(0,0),this.K5=null,this.Vz=null,this.Sx=lt.a2c(t,r);var l=this.Sx,h=0,o="",f=0,u=1,p=0;if(r!=0){var c=l.SpaceBefore;c!=null&&(a[0]+=c)}for(var d=t.EngineDict.ParagraphRun.RunLengthArray,g=d[r],b=0;b<r;b++)h+=d[b];var m=l._Direction?l._Direction:0;this.a5Q=h;for(var x=lt.jn(t).slice(h,h+g),M=0;M<x.length;M++){var S=x.charAt(M);o+=e[h+M].Sx.FontCaps==0?S:S.toUpperCase()}x=o;var w=Si.a2j(x,m),k=[],T=w[b]&1,L=e[h].kb;e[h].kU=w[0];for(var b=1;b<x.length;b++){var S=e[h+b],O=w[b];S.kU=O,O!=T||S.kb!=L?(k.push(f,u),f=b,u=1,T=O,L=S.kb):u++}k.push(f,u);for(var E=this.K5=[],b=0;b<k.length;b+=2){for(var D=k[b],B=k[b+1],I=(e[h+D].kU&1)==0,N=x.slice(D,D+B),V=Typr.U.shapeHB(e[h+D].kb,N,I),j=[],R=0,M=0;M<V.length;M++){var G=V[M];j.push({S:G.g,Fc:G.cl,Bx:G.ax,yG:G.ay,XW:G.dx,tD:G.dy})}V=j;var Z=V.slice(0);I||Z.reverse();for(var M=0;M<N.length;M++){for(;R+1<Z.length&&Z[R+1].Fc<=M;)R++;for(;R>0&&Z[R-1].Fc==M;)R--;e[h+D+M].FP=E.length+(I?R:Z.length-R-1)}for(var M=0;M<V.length;M++){E.push(V[M]),V[M].Fc+=D;var S=e[h+V[M].Fc];S.hp==`
|
||
|
`&&(V[M].Bx=0),S.hp==" "&&(V[M].Bx=S.kb.head.unitsPerEm*2)}}for(var _=lt.Wk(l),U=this.Vz=Si.alR(t,i,e,h,E,h,h+g),Y=this.V8,$=-1,o=[null,null,0];p<U.length;){let gt=function(bt,xt,Dt){for(var Ot=Dt-xt>>>1,kt=0;kt<Ot;kt++){var mt=bt[xt+kt];bt[xt+kt]=bt[Dt-1-kt],bt[Dt-1-kt]=mt}};var Ct=gt;Si.a5F(U,n,l,s,a[0],p,o),$++;var P={start:p,end:0,T:new et,tZ:new st(0,0),fH:!0},tt=0,X=0;Y.push(P),P.end=o[2];for(var ht=P.end==U.length,F=1;F<5;F++){for(var it=-1,b=P.start;b<P.end;b++){var O=e[U[b].start].kU;it==-1&&O>=F?it=b:it!=-1&&O<F&&(gt(U,it,b),it=-1)}var J=P.end;m==0&&U[J-1].L5&&J--,it!=-1&>(U,it,J)}for(var Q=o[0],rt=o[1],it=p,nt=p,ot=0;ot<Q.length;ot++){var pt=rt[ot*2+1]-rt[ot*2],yt=0;it=nt,nt+=Q[ot];var ct=this.ag2(it,nt,U,m,n!=null);if(n?((_==1||ht&&_==4)&&(yt=ct[1]+(pt-ct[0])),(_==2||ht&&_==5)&&(yt=ct[1]+(pt-ct[0])/2),$==0&&(yt+=l.FirstLineIndent),yt+=l.StartIndent):(_==0&&(yt=l.StartIndent+l.FirstLineIndent),_==1&&(yt=-ct[0]-l.EndIndent),_==2&&(yt=-ct[0]/2)),yt+=rt[ot*2],n&&_>2&&(_==6||!ht))this.abh(it,nt,U,pt,m,yt);else for(var vt=yt,b=it;b<nt;b++)U[b].tZ.x=vt,vt+=U[b].T.Z}p=P.end;for(var b=P.start;b<P.end;b++){var wt=U[b].T.clone();wt.aw(U[b].tZ),P.T=P.T.s7(wt),tt=Math.max(tt,U[b].hq),X=Math.max(X,U[b].lineHeight)}P.tZ.y=$==0?0:Y[$-1].tZ.y+X,$==0?(r==0&&n&&(a[0]+=tt),r!=0&&(a[0]+=X),this.tZ.y=a[0]):a[0]+=X,n&&(P.fH=this.tZ.y+P.tZ.y<n.y+n.h)}var Mt=l.SpaceAfter;Mt!=null&&(a[0]+=Mt)},Si.md.prototype.ag2=function(t,i,e,r,n){for(var a=0,s=0,l=t;l<i;l++)a+=e[l].T.Z;if(n){if(r==0)for(var l=i-1;l>=t&&(e[l].L5||e[l].nz);l--)a-=e[l].T.Z;if(r==1)for(var l=t;l<i&&(e[l].L5||e[l].nz);l++){var h=e[l].T.Z;a-=h,s-=h}}return[a,s]},Si.md.prototype.abh=function(t,i,e,r,n,a){for(var s=0,l=0,h=0,o=0,f=t;f<i;f++)e[f].L5?h++:(s+=e[f].T.Z,l++);if(n==0)for(var f=i-1;f>=t&&(e[f].L5||e[f].nz);f--)e[f].L5&&h--;if(n==1)for(var f=t;f<i&&(e[f].L5||e[f].nz);f++)e[f].L5&&(h--,o++);if(l<=1||h==0){l==1&&(e[t].tZ.x=a);return}for(var u=(r-s)/h,p=-o*u,f=t;f<i;f++)e[f].L5&&(this.K5[e[f].GZ].T.Z=e[f].T.Z=u),e[f].tZ.x=a+p,p+=e[f].T.Z},Si.a42=function(t,i,e,r,n,a,s){this.dC="";for(var l=0;l<s;l++)this.dC+=e[a+l].hp;this.L5=s==1&&(e[a].hp==" "||e[a].hp==" "),this.nz=s==1&&e[a].hp==`
|
||
|
`,this.start=a,this.end=a+s,this.T=new et,this.tZ=new st(0,0),this.hq=0,this.lineHeight=0;var h=0,o=0;s==0&&(this.lineHeight=e[a].lineHeight,this.hq=e[a].hq,this.T=new et(0,-e[a].lineHeight,0,e[a].lineHeight));var f=e[a].FP,u=e[a+s-1].FP;if(u<f){var p=f;f=u,u=p}for(;u+1<n.length&&n[u].Fc==n[u+1].Fc;)u++;this.GZ=f,this.sf=u;for(var c=f;c<=u;c++){var d=n[c],g=e[r+d.Fc],b=1/g.kb.head.unitsPerEm*g.Sx.FontSize,m=0;g.Sx.AutoKerning||(h+=g.Sx.Kerning*2*b*g.scale.x);var x=d.Bx*b*g.scale.x;d.tZ=new st(h,0),d.D8=0,d.T=new et(0,-g.lineHeight,x,g.lineHeight);var M=Typr.U.glyphToPath(g.kb,d.S);d.path={W:M.cmds,d:M.crds};var S=d.T.clone();S.aw(d.tZ),g.Sx.Tracking!=null&&(m=g.Sx.Tracking*.001*g.Sx.FontSize),g.Sx.FauxBold==!0&&(m+=.027*g.Sx.FontSize),h+=x+m,s==1&&(g.hp==" "||g.hp==" ")?S.Z+=2*m:s==1&&g.hp!=null&&Si.g0(g.hp.charCodeAt(0))&&(S.Z+=m),this.T=this.T.s7(S),this.hq=Math.max(this.hq,g.hq),this.lineHeight=Math.max(this.lineHeight,g.lineHeight)}},Si.f0=0,Si.NX=function(){if(Si.f0==2)return!0;if(Si.f0==1)return!1;Si.f0=1;function t(){fetch("code/external/fribidi.wasm").then(function(i){return i.arrayBuffer()}).then(function(i){return WebAssembly.instantiate(i)}).then(function(i){var e=i.instance.exports,r=e.memory,n=16,a=256,s=1;r.grow(400);var l=new Uint8Array(r.buffer),h=new Uint32Array(r.buffer),o=n|a,f=n|a|s;Si.a83=function(p,c){var d=p.length,g=e.calloc(d*4+4+d*4+d*4+d,1),b=g+d*4,m=b+4,x=m+d*4,M=x+d*4;h.set(p,g>>>2),h[b>>>2]=c==0?o:f,e.fribidi_get_bidi_types(g,d,m),e.fribidi_get_bracket_types(g,d,m,x),e.fribidi_get_par_embedding_levels_ex(m,x,d,b,M);var S=l.slice(M,M+d);return e.free(g),S},Si.f0=2;var u=new z(y.E.L,!0);u.data={e:y.B.Sl,RY:"add",S9:ut.Du,EM:null},hi.ZM.w(u)})}return Typr.U.initHB("code/external/hb.wasm",t),!1};function lt(){}lt.az=function(t){return JSON.parse(JSON.stringify(t))},lt.aZ=function(t,i){for(var e in i)t[e]=i[e]},lt.T_=function(t,i,e){var r=lt.a2J();e&<.Ji(r,0,0,e);var n={O:new Et(1,0,0,1,Math.round(t),Math.round(i)),MF:r};return n.Hb=lt.vk(),n.VU=v.mD.R(),n.xa=new et,n},lt.Tb=function(t){for(var i=["CharacterDirection",0],e=0;e<i.length;e+=2)if(t[i[e]]!=null&&t[i[e]]!=i[e+1])throw"e";if(t instanceof Array)for(var e=0;e<t.length;e++)lt.Tb(t[e]);else if(t instanceof Object)for(var r in t)lt.Tb(t[r])},lt.Wk=function(t,i){i==null&&(i=t.Justification);var e=t._Direction?t._Direction:0;return e==1&&(i==0||i==3?i++:(i==1||i==4)&&i--),i},lt.jj=function(t){if(t.add!=null){var i=t.MF,e=i.Curve,r=t.add.vmsk,n=r.b,a=v.D.xJ(n,!0).d,s=t.O.clone();s.nJ(),v.D.O(a,s,a);for(var l=a.slice(0,8),h=8;h<a.length;h+=6)l.push(a[h-2],a[h-1],a[h],a[h+1],a[h+2],a[h+3],a[h+4],a[h+5]);if(e.Points=l,e.TextOnPathTRange=r.A2.slice(0),e.Reversed=r.mt,lt.AW(i)==1){var e=Si.Pr(i.Curve),o=v.D.nP(e[0]);lt.Z1(i,[0,0,o.Z,o.h].map(Math.round));for(var f=0;f<l.length;f+=2)l[f]-=o.x,l[f+1]-=o.y;var u=new Et(1,0,0,1,o.x,o.y);u.concat(t.O),t.O=u}}},lt.SK=function(t){if(t.add!=null){for(var i=t.add.vmsk,e=t.MF.Curve,r=e.Points,n={W:["M"],d:[r[0],r[1]]},a=0;a<r.length;a+=8)n.W.push("C"),n.d.push(r[a+2],r[a+3],r[a+4],r[a+5],r[a+6],r[a+7]);v.D.O(n.d,t.O,n.d);var s=v.D.sb(n,!0);i.b=s,i.mt=e.Reversed,i.A2=e.TextOnPathTRange.slice(0),t.add.vogk=H.h7(s)}},lt.T6=function(t){var i={U:0,S:0,i:0};if(t.FillColor){var e=t.FillColor,r=e.Values;if(e.Type==1)i={U:r[1]*255,S:r[2]*255,i:r[3]*255};else if(e.Type==2){var n={classID:"CMYC",Cyn:{t:"doub",v:r[1]*100},Mgnt:{t:"doub",v:r[2]*100},Ylw:{t:"doub",v:r[3]*100},Blck:{t:"doub",v:r[4]*100}};i=v.j.T6(n)}else console.log("Unknown color type")}return i},lt.a0Q=function(t){for(var i=0;i<t.length;i++){var e=t[i].StyleSheet.StyleSheetData,r=e.FillColor;if(r&&r.Type==2){var n=lt.T6(e);r.Type=1,r.Values=[1,n.U/255,n.S/255,n.i/255]}}},lt.o7=function(t,i){var e;if(lt.AW(t.MF)==1){var r=lt.dd(t.MF);e=new et(0,0,r[2]-r[0],r[3]-r[1])}else e=i.yD();return e},lt.$T=function(t){for(var i=t[0],e=0;e<t.length;e++)i=lt.a4E(i,t[e]);return i},lt.a4E=function(t,i){var e={};for(var r in t)JSON.stringify(t[r])==JSON.stringify(i[r])&&(e[r]=t[r]);return e},lt.oi=function(t,i){for(var e=t.Dm,r=-1,n=0;n<e.length;n++)e[n].Name==i&&(r=
|
||
|
`).replace(/\u0003/g,`
|
||
|
`)},lt.jD=function(t,i){t.EngineDict.Editor.Text=i.replace(/\n/g,"\r")},lt.AW=function(t){return t.Curve&&t.Curve.TextOnPathTRange[0]>=0?2:t.EngineDict.Rendered.Shapes.Children[0].ShapeType},lt.E5=function(t,i){var e=t.EngineDict.Rendered.Shapes.Children[0];e.ShapeType=i;var r=e.Cookie.Photoshop;r.ShapeType=i,r.Base.ShapeType=i,i==0&&(delete r.BoxBounds,r.PointBase=[0,0]),i==1&&(delete r.PointBase,r.BoxBounds=[0,0,1,1])},lt.dd=function(t){return t.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds},lt.Z1=function(t,i){t.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds=i},lt.a7v=function(t,i){return lt.a0H(t,lt.LQ(t,i))},lt.LQ=function(t,i){var e=t.EngineDict.StyleRun.RunLengthArray;return lt.x0(e,i).lT},lt.a0H=function(t,i){var e=t.ResourceDict.StyleSheetSet[0].StyleSheetData,r={};for(var n in e)r[n]=e[n];var a=t.EngineDict.StyleRun.RunArray[i].StyleSheet.StyleSheetData;return lt.aZ(r,a),r},lt.a2c=function(t,i){var e=t.ResourceDict.ParagraphSheetSet[0].Properties,r={};for(var n in e)r[n]=e[n];var a=t.EngineDict.ParagraphRun.RunArray[i].ParagraphSheet.Properties;lt.aZ(r,a);for(var s=["StartIndent","EndIndent","FirstLineIndent"],l=0;l<3;l++)r[s[l]]==null&&(r[s[l]]=0);return r},lt.v$=function(t,i,e){if(e!=""){var r=lt.jn(t);lt.jD(t,r.substring(0,i)+e+r.substring(i,r.length));var n=t.EngineDict.StyleRun,a=n.RunLengthArray,s=lt.x0(a,i-1);a[s.lT]+=e.length;var l=t.EngineDict.ParagraphRun,a=l.RunLengthArray,h=lt.x0(a,i),o=e.split(`
|
||
|
`);if(o.length==1){a[h.lT]+=e.length;return}a.splice(h.lT+1,0,a[h.lT]-(i-h.YJ)),l.RunArray.splice(h.lT+1,0,lt.az(l.RunArray[h.lT])),a[h.lT]-=a[h.lT+1],a[h.lT]+=o[0].length+1;for(var f=1;f<o.length-1;f++)l.RunArray.splice(h.lT+f,0,lt.az(l.RunArray[h.lT+f-1])),l.RunLengthArray.splice(h.lT+f,0,o[f].length+1);a[h.lT+o.length-1]+=o[o.length-1].length}},lt.Iw=function(t,i,e){var r=lt.jn(t);lt.jD(t,r.substring(0,i)+r.substring(e,r.length)),lt.lV(t.EngineDict.ParagraphRun,i,e,!0),lt.lV(t.EngineDict.StyleRun,i,e,!1)},lt.lV=function(t,i,e,r){for(var n=t.RunLengthArray,a=lt.x0(n,i),s=lt.x0(n,e),l=[],h=0;h<n.length;h++)for(var o=0;o<n[h];o++)l.push(h);l.splice(i,e-i);for(var f=[],h=0;h<n.length;h++)f.push(0);for(var h=0;h<l.length;h++)f[l[h]]++;for(var h=0;h<n.length;h++)f[h]==0?(f.splice(h,1),n.splice(h,1),t.RunArray.splice(h,1),h--):f[h]<n[h]&&(n[h]=f[h]);r&&a.lT!=s.lT&&a.YJ!=i&&(n[a.lT]+=n[a.lT+1],n.splice(a.lT+1,1),t.RunArray.splice(a.lT+1,1))},lt.Ji=function(t,i,e,r){var n=t.EngineDict.Editor.Text.length;e==n-2&&e++,r.dS.Font!=null&&(t.ResourceDict.FontSet=r.Dm.slice(0)),i<=e&<.Hg(t.EngineDict.StyleRun,r.dS,i,e,!0),lt.Hg(t.EngineDict.ParagraphRun,r.eS,i,e,!1)},lt.Hg=function(t,i,e,r,n){var a=t.RunLengthArray;if(n){var l=lt.x0(a,e);if(l.YJ!=e){var s=a[l.lT];a.splice(l.lT,0,e-l.YJ),a[l.lT+1]=s-a[l.lT],t.RunArray.splice(l.lT+1,0,lt.az(t.RunArray[l.lT]))}var h=lt.x0(a,r);if(h.YJ+a[h.lT]-1!=r){var s=a[h.lT];a.splice(h.lT,0,r-h.YJ+1),a[h.lT+1]=s-a[h.lT],t.RunArray.splice(h.lT+1,0,lt.az(t.RunArray[h.lT]))}}var l=lt.x0(a,e),h=lt.x0(a,r);if(n)for(var o=l.lT;o<=h.lT;o++)lt.aZ(t.RunArray[o].StyleSheet.StyleSheetData,i);else for(var o=l.lT;o<=h.lT;o++)lt.aZ(t.RunArray[o].ParagraphSheet.Properties,i)},lt.af$=function(t,i,e){for(var r=t.EngineDict.StyleRun.RunLengthArray,n=[],a=0,s=0;s<r.length;s++){for(var l=r[s],h=0;h<l;h++)i<=a+h&&a+h<e&&n.push(s);a+=l}for(var o=n[0],f=[],s=0;s<n.length;s++){var u=n[s]-o;u==f.length&&f.push(0),f[u]++}return f},lt.ach=function(t){for(var i=t.EngineDict.StyleRun,e=i.RunArray,r=i.RunLengthArray,n=0;n<r.length-1;n++){var a=e[n].StyleSheet.StyleSheetData,s=e[n+1].StyleSheet.StyleSheetData;JSON.stringify(a)==JSON.stringify(s)&&(e.splice(n+1,1),r[n]+=r[n+1],r.splice(n+1,1),n--)}},lt.oQ=function(t){var i=t.Hb.AntA.v.Annt;return i=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"].indexOf(i),i==-1&&(i=1),i},lt.LE=function(t,i){t.Hb.AntA.v.Annt=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"][i]},lt.lW=function(t,i,e){for(var r={Dm:t.ResourceDict.FontSet.slice(0),dS:[],eS:[]},n=t.EngineDict.StyleRun.RunLengthArray,a=lt.x0(n,i).lT,s=lt.x0(n,e).lT,l=a;l<=s;l++){var h=lt.az(t.ResourceDict.StyleSheetSet[0].StyleSheetData),o=t.EngineDict.StyleRun.RunArray;if(o.length!=0){var f=o[l].StyleSheet.StyleSheetData;lt.aZ(h,f),r.dS.push(h)}}for(var u=t.EngineDict.ParagraphRun.RunLengthArray,p=lt.x0(u,i).lT,c=lt.x0(u,e).lT,l=p;l<=c;l++){var d=t.EngineDict.ParagraphRun.RunArray;d.length!=0&&r.eS.push(lt.az(d[l].ParagraphSheet.Properties))}return r.dS=r.dS.length==0?{}:lt.$T(r.dS),r.eS=r.eS.length==0?{}:lt.$T(r.eS),r},lt.eQ=function(t,i){var e,r;e=["FontSize","Leading","BaselineShift"],r=t.dS;for(var n=0;n<e.length;n++)r[e[n]]!=null&&(r[e[n]]*=i);e=["StartIndent","EndIndent","FirstLineIndent","SpaceBefore","SpaceAfter"],r=t.eS;for(var n=0;n<e.length;n++)r[e[n]]!=null&&(r[e[n]]*=i)},lt.afb=function(){return lt.lW(lt.WP,0,0)},lt.vk=function(){return{classID:"TxLr",Txt:{t:"TEXT",v:"\0"},textGridding:{t:"enum",v:{textGridding:"None"}},Ornt:{t:"enum",v:{Ornt:"Hrzn"}},AntA:{t:"enum",v:{Annt:"antiAliasSharp"}},TextIndex:{t:"long",v:0}}},lt.x0=function(t,i){for(var e=0,r=0;e+t[r]<=i;)e+=t[r],r++;return{lT:r,YJ:e}},lt.a2J=function(){var t=lt.az(this.WP);return t},lt.GS={Justification:0,FirstLineIndent:0,StartIndent:0,EndIndent:0,SpaceBefore:0,SpaceAfter:0,AutoHyphenate:!1,HyphenatedWordSize:6,PreHyphen:2,PostHyphen:2,ConsecutiveHyphens:8,Zone:36,WordSpacing:[.8,1,1.33],LetterSpacing:[0,0,0],GlyphSpacing:[1,1,1],AutoLeading:1.2,LeadingType:0,Hanging:!1,Burasagari:!1,KinsokuOrder:0,EveryLineComposer:!1,_Direction:0},lt.a5q={Font:0,FontSize:12,Fa
|
||
|
`},ParagraphRun:{DefaultRunData:{ParagraphSheet:{DefaultStyleSheet:0,Properties:{}},Adjustments:{Axis:[1,0,1],XY:[0,0]}},RunArray:[{ParagraphSheet:{DefaultStyleSheet:0,Properties:JSON.parse(JSON.stringify(lt.GS))},Adjustments:{Axis:[1,0,1],XY:[0,0]}}],RunLengthArray:[1],IsJoinable:1},StyleRun:{DefaultRunData:{StyleSheet:{StyleSheetData:{}}},RunArray:[{StyleSheet:{StyleSheetData:{Font:0,FontSize:24,AutoKerning:!0,Kerning:0}}}],RunLengthArray:[1],IsJoinable:2},GridInfo:{GridIsOn:!1,ShowGrid:!1,GridSize:18,GridLeading:22,GridColor:{Type:1,Values:[0,0,0,1]},GridLeadingFillColor:{Type:1,Values:[0,0,0,1]},AlignLineHeightToGridFlags:!1},AntiAlias:4,UseFractionalGlyphWidths:!0,Rendered:{Version:1,Shapes:{WritingDirection:0,Children:[{ShapeType:0,Procession:0,Lines:{WritingDirection:0,Children:[]},Cookie:{Photoshop:{ShapeType:0,PointBase:[0,0],Base:{ShapeType:0,TransformPoint0:[1,0],TransformPoint1:[0,1],TransformPoint2:[0,0]}}}}]}}},ResourceDict:{KinsokuSet:[{Name:"PhotoshopKinsokuHard",NoStart:"\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u30FC\u2015\u2019\u201D\uFF09\u3015\uFF3D\uFF5D\u3009\u300B\u300D\u300F\u3011\u30FD\u30FE\u309D\u309E\u3005\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u309B\u309C?!)]},.:;\u2103\u2109\xA2\uFF05\u2030",NoEnd:"\u2018\u201C\uFF08\u3014\uFF3B\uFF5B\u3008\u300A\u300C\u300E\u3010([{\uFFE5\uFF04\xA3\uFF20\xA7\u3012\uFF03",Keep:"\u2015\u2025",Hanging:"\u3001\u3002.,"},{Name:"PhotoshopKinsokuSoft",NoStart:"\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u2019\u201D\uFF09\u3015\uFF3D\uFF5D\u3009\u300B\u300D\u300F\u3011\u30FD\u30FE\u309D\u309E\u3005",NoEnd:"\u2018\u201C\uFF08\u3014\uFF3B\uFF5B\u3008\u300A\u300C\u300E\u3010",Keep:"\u2015\u2025",Hanging:"\u3001\u3002.,"}],MojiKumiSet:[{InternalName:"Photoshop6MojiKumiSet1"},{InternalName:"Photoshop6MojiKumiSet2"},{InternalName:"Photoshop6MojiKumiSet3"},{InternalName:"Photoshop6MojiKumiSet4"}],TheNormalStyleSheet:0,TheNormalParagraphSheet:0,ParagraphSheetSet:[{Name:"Normal RGB",DefaultStyleSheet:0,Properties:JSON.parse(JSON.stringify(lt.GS))}],StyleSheetSet:[{Name:"Normal RGB",StyleSheetData:JSON.parse(JSON.stringify(lt.a5q))}],FontSet:[{Name:"AlibabaPuHuiTi-Regular",Script:0,FontType:1,Synthetic:0},{Name:"AdobeInvisFont",Script:0,FontType:0,Synthetic:0},{Name:"MyriadHebrew-Regular",Script:6,FontType:0,Synthetic:0}],SuperscriptSize:.583,SuperscriptPosition:.333,SubscriptSize:.583,SubscriptPosition:.333,SmallCapSize:.7}};var Ui={};Ui.acU=function(t,i,e){var r={};return r._98={_0:"i7"},r._0=Ui.a35(t,i,e?e._0:null),r._1=Ui.aac(t,i,r._0,e?e._1:null),r},Ui.a35=function(t,i,e){var r={};return r._1=Ui.ahd(t,e?e._1:null),r._2={_0:[{_0:{_0:"s"}}],_1:[{_0:"i0"}]},r._3=JSON.parse(JSON.stringify(Ui.a9S)),r._4=JSON.parse(JSON.stringify(Ui.adT)),r._5=Ui.ai$(t,r._1._0,e?e._5:null),r._6=Ui.a5j(t,e?e._6:null),r._8=Ui.ajW(t,i,e?e._8:null),r._9=Ui.a7x,r},Ui.ahd=function(t,i){for(var e=[],r=[],n=0;n<t.length;n++)for(var a=t[n].ResourceDict.FontSet,s=0;s<a.length;s++){var l=a[s];r.indexOf(l.Name)==-1&&(e.push(l),r.push(l.Name))}for(var h={_0:[]},n=0;n<e.length;n++){var o=e[n],f={_0:{_99:"/CoolTypeFont",_0:{_0:"s"+o.Name,_1:"i"+o.Script,_2:"i"+o.FontType}}};o.Script==0&&delete f._0._0._1,h._0.push(f)}return h},Ui.ai$=function(t,i,e){var r={_0:[],_1:[]},n={_0:JSON.parse(JSON.stringify(Ui.Jn))};return Ui._x(n._0,t[0].ResourceDict.StyleSheetSet[0],i,t[0].ResourceDict.FontSet),r._0.push(n),r._1.push({_0:"i0"}),r._0.push({_0:{_0:"sNone",_5:"i0",_6:{}}}),r._1.push({_0:"i1"}),r},Ui.a5j=function(t,i){var e={_0:[],_1:[]},r={_0:JSON.parse(JSON.stringify(Ui.LD))};return Ui.O3(r._0,t[0].ResourceDict.ParagraphSheetSet[0]),e._0.push(r),e._1.push({_0:"i0"}),r={_0:JSON.parse(JSON.stringify(Ui.LD))},Ui.O3(r._0,t[0].ResourceDict.ParagraphSheetSet[0]),r._0._0="sBasic Paragraph",r._0._6="i0",e._0.push(r),e._1.push({_0:"i1"}),e},Ui.ajW=function(t,i,e){for(var r={_0:[]},n=0;n<t.length;n++){var a=t[n].Curve,s={};r._0.push({_0:s});var l=lt.AW(t[n]);if(s._2={},s._2._0="i"+l,l==0)s._2._6=["f-1","f-1
|
||
|
`));else if(i=="size")x.dS.FontSize=(e.C!=null?e.C:e)/b,M=!0;else if(i=="leading")x.dS.Leading=(e.C!=null?e.C:e)/b,M=!0;else if(i=="tracking")x.dS.Tracking=e.C!=null?e.C:e,M=!0;else if(i=="kind"){var S=lt.AW(d);if(S==1&&e==1){var w=new Si(d,r.fm.SN).eS[0],k=w.V8[0].end,T=w.Vz[k-1].end;lt.Iw(d,0,m.length-1),lt.v$(d,0,m.slice(0,T-1))}S==e&<.E5(d,1-e)}else if(i=="useAutoLeading")x.eS.AutoLeading=e,M=!0;else if(i=="hyphenation")x.eS.AutoHyphenate=e,M=!0;else if(i=="font")lt.oi(x,e),M=!0;else if(i=="color")x.dS.FillColor.Values=e.C.slice(0),M=!0;else if(i=="width"||i=="height"){var L=lt.dd(d).slice(0);i=="width"?L[2]=Math.round(L[0]+e/b):L[3]=Math.round(L[1]+e/b),lt.Z1(d,L)}else if(i=="position")g.PV=e[0],g.ye=e[1];else if(i=="horizontalScale"||i=="verticalScale"){var O=i[0].toUpperCase()+i.slice(1);x.dS[O]=e/100,M=!0}else console.log(t,i,e);M&<.Ji(d,0,m.length-1,x),a.data={e:"newED",vS:l.r.indexOf(u),e1:d,O:g}}else if(t.qa=="Preferences")if(i=="rulerUnits"){var E=JSON.parse(JSON.stringify(h.Np));E.Md=e,s.data={e:y.B.Sl,S9:ut.HI,uB:E},r.w(s)}else console.log(t,i,e);else if(t.qa=="RGBColor")if(i=="red")t.C[1]=e/255;else if(i=="green")t.C[2]=e/255;else if(i=="blue")t.C[3]=e/255;else if(i=="hexValue"){var D=v.cq(e.slice(1));t.C[1]=(D>>>16&255)/255,t.C[2]=(D>>>8&255)/255,t.C[3]=(D>>>0&255)/255}else console.log(t,i);else if(t.qa=="ExportOptionsSaveForWeb"){if(i=="format")t.C.On=e;else if(i!="PNG8")if(i=="quality")t.C.Dh=e;else throw"e"}else t.qa=="JPEGSaveOptions"?i=="quality"&&(t.C.Dh=Math.round(100*e/12)):console.log(t,i,e);a.data!=null&&r.w(a)},Jt.Tz.ff=function(t,i,e,r,n){var a=t.qa,s=null,l=new z(y.E.H,!0),h=new z(y.E.QJ,!0),o=new z(y.E.L,!0),f=r.ux(),u=r.U4;if(a=="Application")if(i=="charIDToTypeID"){var p=e[0].trim();return p=="Lvls"&&(p="levels"),p}else if(i=="stringIDToTypeID"){var c=e[0].trim(),d={red:"Rd",blue:"Bl",color:"Clr",RGBColor:"RGBC",type:"Type",using:"Usng"},g=d[c];return g==null?c:g}else if(i=="executeAction"){console.log(e);var b;e[1]&&(b=e[1].C,b.classID=e[0]);var m={setd:"set"},x=m[e[0]];x==null&&(x=e[0]),h.data={Bm:x,w1:b}}else i=="doAction"?o.data={e:y.B.rU,oI:[e[0],e[1]]}:i=="open"?(o.data={e:y.B.JX,S9:{url:e[0]}},e[2]&&u.length!=0&&(o.data.S9.q3=u.indexOf(f))):i=="echoToOE"?o.data={e:y.B.Xp,S9:e[0]}:console.log(i);else if(a=="Document"){var f=t.C;if(i=="trim"){for(var M=[],S=0;S<4;S++)M.push(e[S+1]!=null?e[S+1]:!0);h.data=C.$K.W$(e[0]!=null?e[0]:0,M)}else if(i=="save")o.data={e:y.B.tG};else if(i=="saveToOE")o.data={e:y.B.tG,ag$:e};else if(i=="rotateCanvas")h.data=C.X.JZ(!0,e[0]);else if(i=="resizeImage"||i=="resizeCanvas"){var w=e[0],k=e[1];typeof w!="number"&&(w=f.Z*parseFloat(w.slice(0,w.length-1))/100,k=f.h*parseFloat(k.slice(0,k.length-1))/100),i=="resizeCanvas"?h.data=C.$K.$W(Math.round(w),Math.round(k),e[2]):h.data=C.$K.cn(Math.round(w),Math.round(k),null,1)}else if(i=="paste")o.data={e:y.B.bx};else if(i=="close")o.data={e:y.B.vz,Fe:f};else if(i=="exportDocument"||i=="saveAs"){var T=n.__fs,L=e[0].C.replace(":","").replace("~/",""),O=i=="exportDocument"?e[2].C:e[1].C,E=ft.eX(f,O.On,null,null,[O.Dh],r.fm);T[L]=new Uint8Array(E)}else console.log(t,i,e)}else if(a=="Layer"){var D=t.C,B=f.r.indexOf(D);if(i=="copy")Jt.Tz.Iq(f,r,0),o.data={e:y.B.c_,YZ:e[0],XY:B},r.w(o),delete o.data,Jt.Tz.Iq(f,r,1);else if(i=="clear")Jt.Tz.Iq(f,r,0),h.data={Bm:"delete"},r.w(h),delete h.data,Jt.Tz.Iq(f,r,1);else if(i=="duplicate")e.length==0?(l.data={e:H.xm,n:B},l.Q=C.xC,r.w(l),l.data=null,s={qa:"Layer",C:f.r[f.p[0]]}):e[0].qa=="Document"&&(l.data={e:H.uP,r:f.FQ(B),kM:f,qW:e[0].C},l.Q=C.xC);else if(i=="merge"||i=="remove")l.data={e:i=="merge"?H.SG:H.R0,n:B},l.Q=C.xC,i!="remove"&&(s={qa:"Layer",C:f.r[f.p[0]]});else if(i=="move")l.data={e:H.iN,source:B,target:f.r.indexOf(e[0].C),Pf:e[1]!=3?.6:.3},l.Q=C.xC;else if(i=="rasterize")h.data={Bm:"rasterizeLayer",w1:{classID:"rasterizeLayer",null:Di.Pe("Lyr",!0)}};else if(i=="rotate")l.data={e:"rot",tP:[2,5],C:-e[0]*Math.PI/180,cX:e[1],n:B},l.Q=C.DV;else if(i=="resize")l.data={e:"scl",tP:[2,4],C:new st(e[0]/100,e[1]/100),cX:e[2],n:B},l.Q=C.DV;else if(i=="translate"){var I=Jt.T
|
||
|
`)},ke.FE=function(t){for(var i=[],e=0;e<t.length;e++)i[e]=t[e][1]==0?0:t[e][0]/t[e][1];return i},ke.zq=function(t){for(var i=[],e=0;e<t.length;e++){var r=t[e],n=1;r!=Math.round(r)&&(n=1e3,r=Math.round(r*n)),i[e]=[r,n]}return i},ke.J2=function(t,i){var e=ke.OK;i==null&&(i={});for(var r in e){var n=e[r][1],a="t"+n;if(n!=null&&t[a]!=null){var s=t[a];if(n==0)s=s.join(".");else if(n==2||n==4){var l=t["t"+(n-1)];l==null&&(l=[n==2?"N":"E"]),s=ke.FE(s).join(",")+l[0]}else if(n==42034)s=ke.FE(s).join(" ");else if(n==270||n==315){var h=s[0],o=new Uint8Array(h.length);A.jW(o,0,h),s=A.bc(o)}else s=s[0];i[r]=s}}return t.exifIFD&&ke.J2(t.exifIFD,i),t.gpsiIFD&&ke.J2(t.gpsiIFD,i),i},ke.XG=function(t,i,e){var r=ke.OK,n=0,a=0;i==null&&(i={});var s={},l={};for(var h in r)if(!(t[h]==null||r[h][1]==null)){var o=r[h][1],f="t"+o,u=i;h.startsWith("exif:")&&(u=s,n++,h.startsWith("exif:GPS")&&(u=l,a++));var p=t[h];if(o==0)p=new Uint8Array(p.split(".").map(parseFloat));else if(o==2||o==4){var c=p.length;u["t"+(o-1)]=[p.slice(p.length-1)],p=ke.zq(p.split(",").map(parseFloat))}else if(o==42034)p=ke.zq(p.split(" ").map(parseFloat));else if(o==270||o==315){var d=A.vI(p);p=[A.$o(d,0,d.length)]}else p=[p];u[f]=p}n!=0&&(i.exifIFD=s,i.t34665=[0]),a!=0&&(i.gpsiIFD=l,i.t34853=[0]);for(var g=new Date,b=[g.getFullYear(),g.getMonth()+1,g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds()],m=0;m<6;m++)b[m]=(b[m]+"").padStart(2,"0");return i.t305=["Photopea Editor (www.photopea.com)"],e!=!0&&(i.t306=[b[0]+":"+b[1]+":"+b[2]+" "+b[3]+":"+b[4]+":"+b[5]]),i};var y={};y.ky=0,y.l$=function(){return y.ky++,y.ky},y.aik="uint8",y.hM=function(){if(window.top!=window.self)return!1;var t=navigator.userAgent.toLowerCase();return t.indexOf("android")!=-1||t.indexOf("safari")!=-1&&t.indexOf("chrome")==-1?!1:window.ClipboardItem!=null},y.GN=function(t){this.TP=t,this.ahR=y.z("img"),this.bN=y.z("canvas"),this.T3=null,this.xM="",this.gj=null,this.NW=new st(0,0),y.Jr(this.TP,this.Xd.bind(this))},y.GN.prototype.Vp=function(t,i){this.T3=t,i&&(this.xM=i),this.Xd()},y.GN.prototype.Xd=function(t){t&&(this.NW=y.oA(t,this.TP));var i=this.T3,e=typeof i=="string";if(e)this.gj&&(this.TP.removeChild(this.gj),this.gj=null);else{var r=y.J(),n=this.NW,a=i.T.Z,s=i.T.h,l=typeof i.jX=="string",h=l?this.ahR:this.bN;if(l)h.setAttribute("src",i.jX);else{h.width=a,h.height=s;var o=h.getContext("2d"),f=new ImageData(new Uint8ClampedArray(i.jX.buffer),a,s);o.putImageData(f,0,0)}h.setAttribute("style"," position:absolute; pointer-events:none;user-select:none;top:"+(n.y-i.bP.y/r)+"px; left:"+(n.x-i.bP.x/r)+"px; width:"+a/r+"px; height:"+s/r+"px");var u=this.gj;(u==null||u!=h)&&(u&&this.TP.removeChild(u),this.TP.appendChild(h),this.gj=h)}this.TP.setAttribute("style","cursor:"+(e?i:"none")+"; "+this.xM)},y.KY=function(t){return t.replace(/</g,"<").replace(/>/g,">")},y.$d=function(t,i){t.kW(Lt.get([12,41]).charAt(0)+":"),i.kW(Lt.get([12,42]).charAt(0)+":")},y.z=function(t,i){var e=document.createElement(t);return i!=null&&e.setAttribute("class",i),e},y.TD=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},y.KL=function(t,i){var e=t.getAttribute("class").split(" ");e.indexOf(i)==-1&&e.push(i),t.setAttribute("class",e.join(" "))},y.sT=function(t,i){var e=t.getAttribute("class");e!=null&&(e=e.split(" "),e.indexOf(i)!=-1&&e.splice(e.indexOf(i),1),t.setAttribute("class",e.join(" ")))},y.WW=function(t){for(;;){if(t==document)return!0;if(t==null)return!1;t=t.parentNode}},y.Rf=function(t){t.appendChild(y.z("br"))},y._D=function(t){t.appendChild(y.z("hr"))},y.A0=document,y.Xn=function(t){for(var i=0,e=0;e<t;e++)i+=Math.random();return i/t<Math.PI/4},y.d9=function(t,i){var e="";y.Xn(29)||(i-=4);for(var r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)-i-r);return e},y.Cq=function(t,i){var e="";y.Xn(29)||(i+=4);for(var r=0;r<t.length;r++)e+=String.fromCharCode(t.charCodeAt(r)+i+r);return e},y.hs=function(t){var i="";y.Xn(28)||(t+="-3");for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<32||127<r)throw"e";i+=String.fromCharCode(32+(r-32+17+3*e)%96)}return i},y.ZK=function(t){var i="";y.Xn(
|
||
|
`&&(n={u:y.z("br")}),r=="blOptions"&&(n=new fe([14,10])),r=="brst"&&(n=new Xn([12,72],["R","G","B"])),r=="knko"&&(n=new ei("Knockout",[[13,1,0],"Shallow","Deep"])),r=="enab"&&(n=new Ft(at.names[at.order.indexOf(this.zn)])),(r=="lrMd"||r=="Md")&&(n=new ei([12,19,0],ti.Zn,!1,ti.wp)),r=="Opct"&&(n=new oe([12,0],0,100,"%")),r=="iOpa"&&(n=new oe([12,26],0,100,"%")),r=="blIf"&&(n=new Ws),r=="ShdN"&&(n=new oe([12,68],0,100,"%")),(r=="lagl"||r=="Angl")&&(n=new Sn([12,15])),r=="uglg"&&(n=new Ft([12,27])),r=="Dstn"&&(n=new oe([12,28],0,200,"px")),r=="Ckmt"&&(n=new oe([12,29],0,100,"%")),r=="blur"&&(n=new oe([12,14,0],0,200,"px")),(r=="TrnS"||r=="MpgS")&&(n=new _a([12,21])),r=="Nose"&&(n=new oe([12,30],0,100,"%")),r=="layerConceals"&&(n=new Ft([12,31])),(r=="AntA"||r=="antialiasGloss")&&(n=new Ft("Anti-alias")),r=="GlwT"&&(n=new ei([12,32],at.I7.names)),r=="glwS"&&(n=new ei([12,70],at.I7.ak7)),r=="Inpr"&&(n=new oe([12,12],1,100,"%")),r=="bvlS"&&(n=new ei([12,22],at.lc.style)),r=="bvlT"&&(n=new ei([12,32],at.lc.ajm)),r=="bvlD"&&(n=new ei(null,at.lc.dir)),r=="srgR"&&(n=new oe([12,34],0,1e3,"%")),r=="Sftn"&&(n=new oe([12,35],0,20,"px")),r=="Lald"&&(n=i.lagl),(r=="hglM"||r=="sdwM")&&(n=new ei([12,36],ti.Zn,!1,ti.wp)),(r=="hglC"||r=="sdwC")&&(n=new Ve),(r=="hglO"||r=="sdwO")&&(n=new oe([12,0],0,100,"%")),(r=="Invr"||r=="InvT")&&(n=new Ft([4,11])),r=="Sz"&&(n=new oe([12,14,0],1,200,"px")),r=="Styl"&&(n=new ei([12,40],at.stroke.names)),r=="PntT"&&(n=new ei([12,66],at.stroke.a6v)),r=="Clr"&&(n=new Ve(!0)),r=="Grad"&&(n=new jn(!0,[12,37],!0),n.k(JSON.parse(at.Bf.wB).v)),r=="Rvrs"&&(n=new Ft([12,23,0])),r=="Dthr"&&(n=new Ft("Dither")),r=="Type"&&(n=new ei([12,22],at.j.names.slice(0,this.zn=="FrFX"?6:5))),r=="Ptrn"&&(n=new zr([12,62])),r=="Scl"&&(n=new oe([12,38],10,500,"%",0,!0)),r=="Algn"&&(n=new Ft([12,39])),r=="Ofst"&&(n=new Ca(!0)),r=="phase"&&(n=new Ca(!1)),r=="useShape"&&(n=new Ft([12,21])),r=="useTexture"&&(n=new Ft([12,67])),r=="textureDepth"&&(n=new oe([12,34],-300,300,"%"));var a=r=="----"||r==`
|
||
|
`?r+e:r;n!=null&&(i[a]=n)}return i},Ie.prototype.aba=function(t){for(var i=this.vj[this.Cu],e=0;e<t.length;e++){var r=this.tV[t[e]];r&&i.contains(r.u)&&i.removeChild(r.u)}},Ie.prototype.adH=function(t){for(var i=this.vj[this.Cu],e=0;e<t.length;e++){var r=this.tV[t[e]];r&&!i.contains(r.u)&&i.appendChild(r.u)}},Ie.prototype.AK=function(t,i){if(this.tV!=null){var e=i==ut.oc;this.tV.Grad&&(this.tV.Grad.dn(t.GY,t.Ty),(e||i==ut.Io||i==ut.uw)&&this.tV.Grad._F(t.dY)),this.tV.Ptrn&&(e||i==ut.AT)&&this.tV.Ptrn._F(t.WB),this.tV.TrnS&&(e||i==ut.wj)&&this.tV.TrnS._F(t.rN),this.tV.MpgS&&(e||i==ut.wj)&&this.tV.MpgS._F(t.rN)}},Ie.prototype.t=function(){for(var t=0;t<this.Ay.length;t++)this.Ay[t].t();for(var i in this.tV)this.tV[i]instanceof At&&this.tV[i].t()},Ie.prototype.uZ=function(){for(var t in this.tV){var i=this.tV[t];if(i.parent=this,i instanceof At&&i.$(y.E.I,this.afm,this),this.vj.length==0||t=="useShape"||t=="useTexture"){var e=new fe(i.m1()),r=y.z("div","bordered padded");this.jA==!1&&(r.appendChild(e.u),r.appendChild(y.z("hr",""))),this.Ay.push(e),this.vj.push(r),this.y8.push(i)}else this.vj[this.vj.length-1].appendChild(i.u)}},Ie.prototype.update=function(t,i){if(this.tV!=null){this.jA&&(this.kI=JSON.parse(JSON.stringify(i)));for(var e in i){if("Opct iOpa hglO sdwO Dstn Ckmt blur Nose Scl Sz Inpr Angl srgR Sftn textureDepth ShdN".split(" ").indexOf(e)!=-1&&this.tV[e].k(i[e].v.val),"enab brst knko Clr hglC sdwC uglg Grad TrnS MpgS Rvrs Dthr Algn Invr InvT Ptrn layerConceals useShape useTexture Ofst phase blIf".split(" ").indexOf(e)!=-1&&this.tV[e].k(i[e].v,t),["Md","hglM","sdwM"].indexOf(e)!=-1&&this.tV[e].k(ti.zn.indexOf(i[e].v.BlnM)),e=="lrMd"){var r=(i.fO?[[15,10,27]]:[]).concat(ti.Zn),n=(i.fO?[1]:[]).concat(ti.wp);this.tV[e].KI(r,n),this.tV[e].k(i[e].v)}if(e=="lagl"){var a=i.uglg&&i.uglg.v?t.Rp():i.lagl.v.val;this.tV[e].k(a)}if(e=="Lald"){var a=i.uglg&&i.uglg.v?t.$p():i.Lald.v.val;this.tV[e].k(null,a)}if(e=="Type"&&this.tV[e].k(at.j.types.indexOf(i.Type.v.GrdT)),e=="Styl"&&this.tV[e].k(at.stroke.types.indexOf(i.Styl.v.FStl)),e=="PntT"){var s=at.stroke._n.indexOf(i.PntT.v.FrFl);this.tV[e].k(s),this.jA||(this.aba(at.QB.concat(at.Zt.concat(at.QZ))),this.adH([at.QB,at.Zt,at.QZ][s]))}e=="GlwT"&&this.tV[e].k(at.I7.types.indexOf(i.GlwT.v.BETE)),e=="glwS"&&this.tV[e].k(at.I7.zC.indexOf(i.glwS.v.IGSr)),e=="bvlS"&&this.tV[e].k(at.lc.types.indexOf(i.bvlS.v.BESl)),e=="bvlT"&&this.tV[e].k(at.lc.O5.indexOf(i.bvlT.v.bvlT)),e=="bvlD"&&this.tV[e].k(["In","Out"].indexOf(i.bvlD.v.BESs))}}},Ie.prototype.afm=function(t){for(var i in this.tV)if(this.tV[i]==t.target){var e=null,r=!1;if("Opct iOpa hglO Nose Scl sdwO Inpr srgR textureDepth ShdN".split(" ").indexOf(i)!=-1&&(e={type:"#Prc",val:t.target.q()}),["Dstn","Ckmt","blur","Sz","Sftn"].indexOf(i)!=-1&&(e={type:"#Pxl",val:t.target.q()}),["Angl","lagl"].indexOf(i)!=-1&&(e={type:"#Ang",val:t.target.q().Fu}),"enab brst knko Clr hglC sdwC Grad TrnS MpgS Rvrs Dthr Algn Invr InvT Ptrn layerConceals lrMd useShape useTexture AntA antialiasGloss Ofst phase blIf".split(" ").indexOf(i)!=-1&&(e=t.target.q()),["Md","hglM","sdwM"].indexOf(i)!=-1&&(e={BlnM:ti.zn[t.target.q()]}),i=="uglg"&&(e=t.target.q(),r=!0),i=="PntT"&&(e={FrFl:at.stroke._n[t.target.q()]},r=!0),i=="Lald"&&(e={type:"#Ang",val:t.target.q().alt}),i=="Type"&&(e={GrdT:at.j.types[t.target.q()]}),i=="Styl"&&(e={FStl:at.stroke.types[t.target.q()]}),i=="GlwT"&&(e={BETE:at.I7.types[t.target.q()]}),i=="glwS"&&(e={IGSr:at.I7.zC[t.target.q()]}),i=="bvlS"&&(e={BESl:at.lc.types[t.target.q()]}),i=="bvlT"&&(e={bvlT:at.lc.O5[t.target.q()]}),i=="bvlD"&&(e={BESs:["In","Out"][t.target.q()]}),this.nQ({lg:i,C:e}),r)if(this.jA)this.update(null,this.kI);else{var n=this.parent,a=n.EA,s=this.kf,l=a.r[n.data.n].add.lmfx[at.og[s[0]]].v[s[1]].v;this.update(a,l)}}},Ie.prototype.nQ=function(t){if(this.jA)this.kI[t.lg].v=t.C,this.w(new z(y.E.I));else{t.e="changeprop",t.n=this.parent.data.n,t.XN=this.kf;var i=new z(y.E.H,!0);i.data=t,i.Q=C.FA,i.qQ=!0,this.w(i),this.w(new z("afterchange",!0))}},Ie.prototype.q=function(){return JSON.parse(JSON.stringify(this.kI))},Ie.zF=
|
||
|
`,"Clr","Grad","----","GlwT","Ckmt","blur","TrnS","Inpr","ShdN"],IrGl:["enab","Md","Opct","Nose",`
|
||
|
`,"Clr","Grad","----","GlwT","glwS","Ckmt","blur","TrnS","Inpr","ShdN"],ebbl:["enab","bvlS","bvlT","bvlD","srgR","blur","Sftn","----","lagl","Lald","uglg","TrnS",`
|
||
|
`,"hglM","hglC","hglO","sdwM","sdwC","sdwO","useShape","MpgS","Inpr","useTexture","Ptrn","Scl","textureDepth","InvT","Algn","phase"],SoFi:["enab","Md","Opct"].concat(at.QB),GrFl:["enab","Md","Opct"].concat(at.Zt),patternFill:["enab","Md","Opct"].concat(at.QZ),ChFX:"enab Md Clr Opct lagl Dstn blur MpgS Invr".split(" "),FrFX:["enab","Sz","Styl",`
|
||
|
`,"Md","Opct","PntT",`
|
||
|
`].concat(at.QB.concat(at.Zt.concat(at.QZ)))};function Ne(){jt.call(this,[11,6],"layerstyle"),this.a1L=-1,this.data={},this.EA=null,this.yH=null,this.cY=[],this.nW=[],y.KL(this.body,"flexrow"),this.EI=y.z("div","bordered"),this.EI.setAttribute("style","min-width:13em;"),this.body.appendChild(this.EI),this.E1=y.z("div",""),this.E1.setAttribute("style","width:25em; padding-left: 1em;"),this.body.appendChild(this.E1),this.X7=y.z("div","form"),this.X7.setAttribute("style","padding-left: 1em; width:7em;"),this.body.appendChild(this.X7),this.cI=new Tt("OK",!0,null,!0),this.cI.$("click",this.ja,this),this.X7.appendChild(this.cI.u),this.B4=new Tt([12,87],!0,null,!0),this.B4.$("click",this.a0s,this),this.X7.appendChild(this.B4.u),this.Gq=new ba,this.Gq.parent=this,this.Gq.$(y.E.I,this.a2b,this),this.X7.appendChild(this.Gq.u),this.$("closebtn",this.Te,this),this.$("redrawall",this.rC,this)}Ne.prototype=new jt,Ne.prototype.go=function(){return!0},Ne.prototype.a2b=function(t){var i=this.Gq.q();this.nQ({e:"setstl",C:i.rB}),this.rC(null)},Ne.prototype.a0s=function(t){var i=this.EA,e=this.data.n;e==null&&(e=i.p[0]);var r=this.EA.r[e],n=St.Wj(r),a=new z(y.E.L,!0);a.data={e:y.B.Sl,RY:"add",S9:ut.Ym,EM:[JSON.parse(JSON.stringify(n))]},this.w(a)},Ne.prototype.a0j=function(t){this.data.index=t.currentTarget.kf,this.kg(t.currentTarget.kf)},Ne.prototype.rC=function(t){this.Vp(this.EA,this.data)},Ne.prototype.kg=function(t,i){y.TD(this.E1);for(var e=0;e<this.cY.length;e++)this.cY[e].a0o();var r=t==0?this.cY[0]:this.nW[t[0]][t[1]];this.E1.appendChild(r.ajL()),i&&r.jO();var n=this.EA;if(n){var a=n.r[this.data.n];this.cY[0].update(n,dt.NO.CX(n,a));var s=a.add.lmfx;if(s==null)return;for(var e=0;e<at.order.length;e++)for(var l=s[at.og[e]].v,h=0;h<l.length;h++)this.nW[e][h].update(n,l[h].v)}i&&r.jO()},Ne.prototype.t=function(){jt.prototype.t.call(this),this.B4.t(),this.Gq.t();for(var t=0;t<this.cY.length;t++)this.cY[t].t()},Ne.prototype.Vp=function(t,i){var e=i.n==null;this.data.n=i.n,this.data.index=i.index,i=this.data,this.EA=t,e&&(i.n=t.p.length==0?t.r.length-1:t.p[0]),y.TD(this.EI);var r=t.r[i.n].add.lmfx;this.xp(),this.cY=[new Ie("bops",!1,0)],this.nW=[];for(var n=0;n<at.order.length;n++){this.nW.push([]);for(var a=r==null?[]:r[at.og[n]].v,s=0;s<a.length;s++){var l=new Ie(at.order[n],!1,[n,s]);this.cY.push(l),this.nW[n].push(l)}if(a.length==0){var l=new Ie(at.order[n],!1,[n,0]);this.cY.push(l),this.nW[n].push(l)}}this.t(),this.f8(this.yH,ut.oc);for(var n=0;n<this.cY.length;n++)this.cY[n].parent=this,this.cY[n].al5(this.EI),this.cY[n].$("showme",this.a0j,this);i.index==null||i.index==0||!e&&r[at.og[i.index[0]]].v.length==0?this.kg(0):this.kg(i.index,e),this.$("afterchange",this.xp,this)},Ne.prototype.xp=function(t){var i=this.EA,e=this.data.n;e==null&&(e=i.p[0]);var r=this.EA.r[e],n=St.Wj(r);this.Gq.k(n,i.add.Patt?i.add.Patt:[],i.Rp(),i.$p())},Ne.prototype.AK=function(t,i){this.yH=t,this.f8(t,i),(i==ut.Ym||i==ut.oc)&&this.Gq._F([t.gg,t.WB]),i==ut.jq},Ne.prototype.f8=function(t,i){for(var e=0;e<this.cY.length;e++)this.cY[e].AK(t,i)},Ne.prototype.Te=function(t){this.nQ({e:"cancel"})},Ne.prototype.ja=function(t){this.nQ({e:"confirm"}),this.close()},Ne.prototype.nQ=function(t){t.n=this.data.n;var i=new z(y.E.H,!0);i.data=t,i.Q=C.FA,i.qQ=!0,this.w(i),this.xp()},Ne.B0=function(t){for(var i=[{name:[14,10],aD:!0}],e=0;e<at.names.length;e++)i.push({name:at.names[e]});return t&&(i[i.length-1].aD=!0,i.push({name:"Styles To Separate Layers",Y:function(r){return{Y:r!=null&&r.p.length!=0&&r.r[r.p[0]].add.lmfx!=null}}})),i},Ne.OS=function(t){for(var i=[{f:y.E.L,o:{e:y.B.uH,W2:"layerstyle"}}],e=0;e<at.names.length;e++)i.push({f:y.E.L,o:{e:y.B.uH,W2:"layerstyle",index:[e,0]}});if(t){var r={classID:"Mk",null:Di.Pe("Lyr"),Usng:{t:"obj ",v:[{t:"prop",v:{classID:"Prpr",keyID:"Lefx"}},{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Trgt"}}]}};i.push({f:y.E.QJ,o:{Bm:"make",w1:r}})}return i},Ne.U2=function(t){var i=[];t&&i.push({name:[6,48,0,0],sD:!0},{name:[6,48,0,1],sD:!0},{name:[6,48,0,2],sD:!0,aD:!0});for(var e in Vt.names)i.push({name:Vt.names[e],aD:Vt.wZ.indexOf(
|
||
|
alert("Hello Photopea!");
|
||
|
`},{Bj:"Process Layers",Uh:`
|
||
|
var lays = app.activeDocument.layers;
|
||
|
|
||
|
for(var i=0; i<lays.length; i++)
|
||
|
{
|
||
|
//lays[i].visible = false;
|
||
|
//lays[i].opacity = 50;
|
||
|
lays[i].name = "My Layer "+i;
|
||
|
}`},{Bj:"Clone Layers",Uh:`
|
||
|
var orig = app.activeDocument.activeLayer;
|
||
|
var cnt = 12;
|
||
|
var angle = Math.floor(360 / cnt);
|
||
|
|
||
|
for(var i=1; i<cnt; i++)
|
||
|
{
|
||
|
var nlay = orig.duplicate();
|
||
|
//nlay.translate(30*i, 20*i);
|
||
|
nlay.rotate(angle * i, AnchorPosition.BOTTOMCENTER);
|
||
|
}`}];function yr(){jt.call(this,[11,7],"newproject"),this.data=null,this.vw=null;var t=y.z("div","flexrow");this.H8=t,this.body.appendChild(t);var i=y.z("div","form");this.xr=i,t.appendChild(i),this.v8=new se([12,48]),i.appendChild(this.v8.u),y.Rf(i),this.bq=new Kr(!0),this.bq.k(new st(1280,720),72),this.bq.$(y.E.I,this.dE,this),i.appendChild(this.bq.u),this.$v=new ei([12,46],[[13,1,8],[13,1,9],[12,46]]),i.appendChild(this.$v.u),i.appendChild(y.z("hr")),this.OB=new Tt([12,49],!0,null,!0),this.OB.$("click",this.ja,this),i.appendChild(this.OB.u);for(var e=yr.rX,r=[],n=0;n<e.length;n++)r.push(e[n].name);this.zz=new me(null,r),this.zz.$(y.E.I,this.TL,this),i.appendChild(this.zz.u),this.zz.u.style["margin-top"]="1em",this.Yu=new Hr(!0),this.Yu.$(y.E.I,this.a3F,this),i.appendChild(this.Yu.u),this.TL(),this.bK=new fn,this.bK.parent=this,this.bK.u.setAttribute("style","margin-left:1em"),this.bK.$("tempready",this.a9w,this)}yr.prototype=new jt,yr.prototype.AK=function(t,i){this.bK.AK(t)},yr.prototype.eL=function(t,i){return new st(Math.max(0,Math.min(70,(t-690)/2)),t>i?Math.max(0,Math.min(50,(i-400)/2)):0)},yr.prototype.l9=function(t,i){this.xr.setAttribute("style","width:"+Math.min(t,338)+"px"),this.Yu.u.style.height=i-260+"px";var e=this.bK.u,r=e.parentNode;t<500?r!=null&&this.H8.removeChild(e):r==null&&this.H8.appendChild(e),this.bK.l9(t-360,i-35)},yr.prototype.dE=function(){this.bK.k(this.bq.q())},yr.prototype.a3F=function(t){var i=this.Yu.q(),e=yr.rX[this.zz.q()].qh[i],r=e[4];r==0&&(r=72);var n=e[1],a=e[2],s=["px","%","mm","in"].indexOf(e[3]),l=[1,1,25.4/r,1/r][s];n/=l,a/=l,this.bq.k(new st(Math.round(n),Math.round(a)),r),this.bq.a5z(s),this.Yu.tj(i),this.dE()},yr.prototype.TL=function(t){for(var i=yr.rX[this.zz.q()].qh,e=[],r=[],n=Math.round(106*y.J()),a=Math.round(106*y.J()),s=0,l=0;l<i.length;l++)s=Math.max(s,i[l][1],i[l][2]);for(var l=0;l<i.length;l++){var h=i[l],o=h[1]+" x "+h[2]+" "+h[3];h[3]=="in"&&(o=(h[1]*25.4).toFixed(0)+" x "+(h[2]*25.4).toFixed(0)+" mm"),h[3]=="mm"&&(o=(h[1]/25.4).toFixed(1)+" x "+(h[2]/25.4).toFixed(1)+" in"),h[4]&&(o=o+" @ "+h[4]+" ppi"),r.push(o),e.push(yr.m2(h,n,a,s))}this.Yu.Lf(e,r,n,a)},yr.m2=function(t,i,e,r){var n=y.z("canvas",""),a=n.getContext("2d");n.width=i,n.height=e;var s=Math.round(i/8),l=Math.floor(11*y.J()),h=t[1],o=t[2];a.fillStyle="#000000",a.font=Math.round(l*.9)+'px "Open Sans", Sans-Serif';var f=h+" x "+o+" "+t[3],u=a.measureText(f);if(a.fillText(f,Math.round((i-u.width)/2),e-Math.round(s/2)),t[0]!=null){a.font="bold "+l+'px "Open Sans", Sans-Serif';var f=t[0],u=a.measureText(f);a.fillText(f,Math.round((i-u.width)/2),e-Math.round(s/2)-Math.round(l*1.3))}e-=Math.round(2.5*l);var p=Math.min((i-s)/h,(e-s)/o);p*=.5+.5*(Math.max(h,o)/r);var c=(i-h*p)/2,d=(e-o*p)/2;return a.strokeRect(Math.round(c)+.5,Math.round(d)+.5,Math.round(h*p),Math.round(o*p)),n.toDataURL()},yr.prototype.t=function(){jt.prototype.t.call(this),this.bq.t(),this.v8.t(),this.$v.t(),this.OB.t(),this.v8.k(Lt.get([11,7])),this.zz.t(),this.bK.t()},yr.prototype.ja=function(t){var i=this.bq.q(),e=i.x,r=i.y;this.close();var n=new z(y.E.QJ,!0);n.data=Pt.Gg(e,r,this.bq.av(),this.v8.q(),["Wht","Trns","BckC"][this.$v.q()]),this.w(n),this._P()},yr.prototype.a9w=function(t){var i=t.data.EA,e=new z(y.E.L,!0);e.data={e:y.B.qD,EA:i},this.w(e),this.close(),this._P()},yr.prototype._P=function(){var t=this.vw[this.vw.length-1],i=this.data.a7n;i&&Le.de(function(){var e=new XMLHttpRequest,r="https://www.googleapis.com/drive/v3/files?"+Le.pS();e.open("POST",r,!0),e.setRequestHeader("Content-Type","application/json"),e.addEventListener("load",function(n){var a=JSON.parse(n.target.response);t.D2={file:a,S6:"psd"},alert(t.name+" created in Google Drive")}),e.send(JSON.stringify({name:t.name,a1U:[i]}))})},yr.prototype.Vp=function(t,i,e,r){if(this.vw=e,t!=null&&t.K!=null){var n=new et(0,0,t.Z,t.h).$X(t.K.rect);this.bq.k(new st(n.Z,n.h))}this.data=i,this.dE(),this.v8.co(),y.hM()&&ui.a0F(this.ahz.bind(this))},yr.prototype.ahz=function(t){t=="granted"&&ui.ll(this,this.aiG.bind(this))},yr.prototype.aiG=function(t,i){this.bq.k(new st(i.Z,i.h
|
||
|
<html>
|
||
|
<style>div {position:absolute;}</style>
|
||
|
<head></head>
|
||
|
<body>
|
||
|
`,h=[],o={},f=new et(0,0,a.Z,a.h),u=a.lD(),p=0;p<s.length;p++)h.push(C.e9.rF(s,p));h.reverse();for(var c=v.rect._T([0,0,a.Z,a.h],h),p=0;p<c.length;p++){var d=c[p],g=new et(d[0],d[1],d[2]-d[0],d[3]-d[1]),b=d.length==5?s[d[4]].v:null,m=v.R(g.M()*4);v.BP(u,f,m,g);var x="img/img"+(p+1)+"."+e.toLowerCase();o[x]=new Uint8Array(ft.$I(e).bb([[m.buffer,0]],g.Z,g.h,this.ar.q())),l+=`<div style="background-image:url('`+x+"'); left:"+g.x+"px; top:"+g.y+"px; width:"+g.Z+"px; height:"+g.h+'px">',b&&b.url.v!=""&&(l+=`
|
||
|
<a href="`+b.url.v+'" target="'+b.null.v+`" style="display:block;width:100%;height:100%;"></a>
|
||
|
`),l+=`</div>
|
||
|
`}l+=`</body>
|
||
|
</html>
|
||
|
`;var M=v.R(Math.round(l.length*1.5)),S=A.vr(l,M,0);o["index.html"]=M.slice(0,S),r=UZIP.encode(o),n=i+".zip"}var w=new z(y.E.L,!0);w.data={e:y.B.QL,data:r,name:n},this.w(w),this.iq.JD(),this.close()},Ur.prototype.Vp=function(t,i){i.On!=null&&this.Pt.k(i.On),this.EA=t;var e=t.Z+","+t.h;e!=this.a3T&&(this.a3T=e,this.bq.k(new st(t.Z,t.h))),this.ar.a2p(),this.nF(null,!0)},Ur.prototype.eL=function(t,i){return new st(Math.max(0,Math.min(150,(t-770)/2)),Math.max(0,Math.min(150,(i-590)/2)))},Ur.prototype.l9=function(t,i){if(this.YY=t,this.mi=i,this.YE.x=Math.min(512,t-26-214),this.YE.y=Math.min(512,i-45),this.EA!=null){var e=this.bq.q(),t=e.x,i=e.y,r=ft.Nq()[this.Pt.q()],n=ft.$I(r),a='<span style="width:',s='display:inline-block; text-align:right;">';if(n.Vi){var l=t,h=i,o;r=="PDF"||n.mw?(l=this.YE.x,h=this.YE.y):(l=Math.min(t+20,this.YE.x),h=Math.min(i+20,this.YE.y)),this.yr.firstChild.setAttribute("style","display:block; width:"+l+"px; height:"+h+"px;")}else if(n.mw)l=this.YE.x,h=this.YE.y;else{var f=this.ak_,u=f[0].ym,l=u.Z,h=u.h;this.iq.l9(Math.max(50,Math.min(l/y.J(),this.YE.x)),Math.max(50,Math.min(h/y.J(),this.YE.y)))}var p=this.m0.byteLength,c=r+":"+a+64+"px;"+s+Ur.WY(p)+"</span>";this.YE.x>200&&(c+=a+90+"px; opacity:"+.5+";"+s+p.toLocaleString()+" B</span>"),this.mV.innerHTML=c}},Ur.WY=function(t){for(var i=0;t>>>i+10!=0;)i+=10;var e=(t/(1<<i)).toFixed(1),r=["B","KB","MB","GB"][Math.floor(i/10)];return e+" "+r},Ur.prototype.AK=function(t,i){this.yH=t},Ur.prototype.nF=function(t,i){var e=this.bq.q(),r=e.x,n=e.y,a=this.Pt.q(),s=ft.Nq()[a],l=ft.aN(this.EA)[0].length,h=["GIF","PNG","WEBP"].indexOf(s)!=-1&&l>1,o="";if(h&&i&&(l>4&&r*n>1024*1024||r*n*l>800*800*50)){for(var f=1;Math.max(r>>>f,n>>>f)>800;)f++;var u=window.confirm("Your animation is large ("+r+" x "+n+' px). Press "OK" to scale it to '+(100>>>f)+'%. Press "Cancel" to keep the size.');u&&(this.bq.k(new st(r>>>f,n>>>f)),r=r>>>f,n=n>>>f)}this.ar.vJ(s,h,this.EA.P0.length!=0);var p=this.ar.q();if(this.m0=ft.eX(this.EA,s,r,n,p,this.yH),this.m0==null){this.EA=null;return}y.TD(this.yr),this.iq.JD();var c=ft.$I(s);if(c.mw)this.yr.innerHTML="<div></div>",o+="width:0px";else if(c.Vi){var d=r,g=n,b;s=="PDF"?b=URL.createObjectURL(new Blob([this.m0],{type:"application/pdf"})):b=URL.createObjectURL(new Blob([this.m0],{type:"image/svg+xml"})),this.yr.innerHTML='<iframe src="'+b+'"></iframe>'}else{var m=this.ak_=c.xo(this.m0),x=m[0].ym,d=x.Z,g=x.h;this.iq.k(m,m.length>1?p[p.length-2]:0),this.yr.appendChild(this.iq.u),o="background: rgba(0,0,0,0);"}this.yr.setAttribute("style","display:block; background-size:"+16/y.J()+"px;"+o),this.l9(this.YY,this.mi)};function vs(){jt.call(this,[11,13],"shortcuts");var t=this.H8=y.z("div","scrollable");t.setAttribute("style","min-width:700px; max-height:500px; padding:1.5em"),this.body.appendChild(t),this.tH()}vs.prototype=new jt,vs.prototype.t=function(){jt.prototype.t.call(this),this.tH()},vs.prototype.tH=function(){var t='<div style="line-height:1.4em; column-count:3; column-gap:3em; column-rule-width:1px;" class="">',i="",e=W,r=e.Bl,n=e.cm,a=e.ze;i+='<h2 style="margin-top:0;">Main Menu</h2>',i+=t,i+=this.E6([[0,0],"---",[1,0],[r,e.PW],[1,2],[r,e.Z7],[1,3],[n,r,e.Z7],[1,8],[a,n,r,e.Z7],[0,1],"---",[2,0],[n,r,e.HW],[2,1],[r,e.HW],[5,0],[r,e.ej],[5,1],[r,e.qS],[5,2],[r,e.fv],[2,2],"Delete",[2,3],[a,e.Yp],[10,16],[a,r,e.G],[12,79],[r,e.zo],[3],"---",[4,1],[r,e.Ov],[4,2],[r,e.eO],[4,5],[r,e.B6],[4,11],[r,e.vu],[0,3],"---",[6,0],[r,e.RH],[6,6,0],[a,r,e.da],[6,9],[r,e.da],[6,10],[r,e.E],[0,5],"---",[7,0],[r,e.B],[7,1],[r,e.fY],[7,2],[n,r,e.vu],[0,7],"---",[8,0],[r,e.Kh],[8,1],[r,e.lY],[8,3],[r,e.YP],[8,2],[r,e.JS],[8,4],[r,e.e7],[11,13],"?"]),i+="</div>",i+='<h2 style="margin-top:1.5em;">Navigation</h2>',i+=t,i+=this.E6(["Vertical scroll","Wheel","Horizontal scroll",[r,"Wheel"],"Zooming",[a,"Wheel"]]),i+="</div>",i+='<h2 style="margin-top:1.5em;">Quick tools (press to enable, release to disable)</h2>',i+=t,i+=this.E6([[10,11],[r],[10,7],"Space",[10,17],[r,e.fd]]),i+="</div>",i+='<h2 style="margin-top:1.5em;">Tools</h2>',i+=t;for(var s=vs.lt,l=[],h
|
||
|
`)+";":this.Lo.value=""}},$s.prototype.q0=function(){this.qK()};function Ys(){Wt.call(this,[9,6],!1,null,Wt.YP.a89),this.VI.setAttribute("style","min-width:240px;"),this.nc=null,this.yH=null;var t=y.z("div","marged row");this.VI.appendChild(t);var i=y.z("div","cell");i.setAttribute("style","width:10em"),t.appendChild(i);var e=y.z("div","cell");e.setAttribute("style","width:10em"),t.appendChild(e),this.a7V=[];for(var r=0;r<4;r++){var n=new fe("");this.a7V.push(n),i.appendChild(n.u),y.Rf(i)}this.VI.appendChild(y.z("hr",""));var a=y.z("div","marged row");this.VI.appendChild(a);var i=y.z("div","cell");i.setAttribute("style","width:10em");var e=y.z("div","cell");e.setAttribute("style","width:10em"),a.appendChild(i),a.appendChild(e),this.ae=new fe(""),i.appendChild(this.ae.u),y.Rf(i),this.hd=new fe(""),i.appendChild(this.hd.u),this.iG=new fe(""),e.appendChild(this.iG.u),y.Rf(e),this.DG=new fe(""),e.appendChild(this.DG.u),this.ae.k("X: 100 px"),this.hd.k("Y: 100 px"),this.iG.k("W: 0"),this.DG.k("H: 0")}Ys.prototype=new Wt(""),Ys.prototype.$E=function(t,i,e,r,n){if(!(!y.WW(this.VI)||t==null)){var a=t.a.PY(n.x,n.y),s=new st(Math.floor(a.x),Math.floor(a.y));if(!n.Ku){var l=0,h=0,o=0,f=0,u=this.a7V;if(!n.Ku&&!t.ahP()&&new et(0,0,t.Z-1,t.h-1).oz(s)){var p=t.lD(),c=t.Z*s.y+s.x<<2;l=p[c+0],h=p[c+1],o=p[c+2],f=p[c+3]}u[0].k("R: "+l),u[1].k("G: "+h),u[2].k("B: "+o),u[3].k("A: "+f)}this.ae.k("X: "+v.t$.Rq(s.x,t.NB,e,t.Z)),this.hd.k("Y: "+v.t$.Rq(s.y,t.NB,e,t.h)),this.cL()}},Ys.prototype.cL=function(){var t=this.nc,i=this.yH,e=0,r=0;t&&i&&(t.a.GW?(e=t.a.GW.Z,r=t.a.GW.h):t.K&&(e=t.K.rect.Z,r=t.K.rect.h),e=v.t$.Rq(Math.abs(e),t.NB,i,t.Z),r=v.t$.Rq(Math.abs(r),t.NB,i,t.h)),this.iG.k(Lt.get([12,41]).charAt(0)+": "+e),this.DG.k(Lt.get([12,42]).charAt(0)+": "+r)},Ys.prototype.t=function(){Wt.prototype.t.call(this),this.cL()},Ys.prototype.Vp=function(t,i,e){this.nc=t,this.yH=e,this.cL()};function ie(){Wt.call(this,[9,1],!1,null,Wt.YP.xC),this.vl=null,this.EA=null,this.Yr=null,this.n4=y.z("div","lphead"),this.TP=y.z("div","lpbody scrollable"),this.D0=y.z("div","lpfoot"),this.zi=new ei(null,ti.Zn,!1,ti.wp),this.zi.$(y.E.I,this.amk,this),this.n4.appendChild(this.zi.u),this.gH=new xi([12,0],0,100,"%",0),this.gH.$(y.E.I,this.aav,this),this.gH.parent=this,this.n4.appendChild(this.gH.u),this.Qo=new Xn("Lock",['<img src="'+PIMG.trsp3+'" class="autoscale gsicon" />','<img src="'+PIMG["tools/brush"]+'" class="autoscale gsicon" />','<img src="'+PIMG.pos+'" class="autoscale gsicon" />','<img src="'+PIMG["lrs/lock"]+'" class="autoscale gsicon" />'],!0,["Transparency",[12,76,2],[12,40],[7,0]]),this.Qo.$(y.E.I,this.ado,this),this.n4.appendChild(this.Qo.u),this.La=new xi([12,26],0,100,"%",0),this.La.$(y.E.I,this.adL,this),this.La.parent=this,this.n4.appendChild(this.La.u),this.qo=[],this.AM(),this.VI.appendChild(this.n4),this.VI.appendChild(this.TP),this.TP.addEventListener("dragover",function(n){n.preventDefault()},!1),this.TP.addEventListener("dragenter",y.OZ,!1),this.TP.addEventListener("drop",this.air.bind(this),!1),this.VI.appendChild(this.D0),this.VI.addEventListener("contextmenu",y.OZ,!1);var t={f:y.E.L,o:{e:y.B.uH,W2:"scaleeffects",Ub:100,VN:{f:y.E.H,Q:C.FA,o:{e:"scaleeffects"}}}},i={name:"Scale Effects",Y:function(n){return{Y:n!=null&&n.r[n.p[0]].su()}}},e=[i],r=[t];this.ajS=new he(e,r);var e=[{name:[14,10]},{name:[14,11],aD:!0},{name:[6,0]},{name:[11,4]},{name:[5,4],aD:!0},{name:[6,7]},{name:"New Smart Obj. via Copy",Y:function(n){return{Y:n.r[n.p[0]].add.SoLd!=null}},aD:!0},{name:[6,8],Y:function(n){var a=n.r[n.p[0]];return a.add.TySh||a.add.SoLd||a.add.SoCo||a.add.GdFl||a.add.PtFl?{Y:!0}:{Y:!1}}},{name:[6,34],Y:function(n){var a=n.r[n.p[0]];return{Y:a.add.lmfx!=null&&!a.fO()}}},{name:[6,40],aD:!0,Y:function(n){var a=n.r[n.p[0]];return{Y:a.add.TySh!=null}}},{name:"",aD:!0,Y:function(n){var a=n.r[n.p[0]],s=a.add.TySh,l=s?s.MF:null;return{Y:s!=null&&l.Curve==null,IK:Lt.get(s&<.AW(l)==0?[16,3,1]:[16,3,0])}}},{name:[6,6,0],aD:!0,Y:function(n){return{Y:n.Uu(n.p[0]),Rb:n.r[n.p[0]].rd}}},{name:[11,6],aD:!0,sub:[{name:[5,1],Y:function(n){var a=n.r[n.p[0]]
|
||
|
`,f=0;f<r.length;f++){var c=new Uint8Array(l[f]);p+=' {"format": "'+r[f].split(":")[0]+'", "start": '+o+', "size": '+c.length+" }"+(f+1<r.length?", ":"")+`
|
||
|
`,n.set(c,2e3+o),o+=l[f].byteLength}p+="] }";for(var d=A.vr(p,n,0),f=d;f<2e3;f++)n[f]=32;a="application/octet-stream"}else{var g=new sr,b=0,m="",x=encodeURIComponent;m="p="+x('{ "source": '+JSON.stringify(t.Rg)+', "versions": ['),A.bh(g,b,m),b+=m.length;for(var f=0;f<r.length;f++){m=x(' {"format": "'+r[f].split(":")[0]+'", "data": "'),A.bh(g,b,m),b+=m.length;var u=ui.jr(t,r[f],i.yH),M=ui.aku(u,u.byteLength),d=M.length;g.cj(b,d);for(var S=0;S<d;S++){g.cj(b,3);var w=M[S];w==43?(g.data[b]=37,g.data[b+1]=50,g.data[b+2]=66,b+=3):w==47?(g.data[b]=37,g.data[b+1]=50,g.data[b+2]=70,b+=3):w==61?(g.data[b]=37,g.data[b+1]=51,g.data[b+2]=68,b+=3):(g.data[b]=w,b++)}m=x('" }'+(f+1<r.length?", ":"")),A.bh(g,b,m),b+=m.length}m=x("] }"),A.bh(g,b,m),b+=m.length,n=g.data.slice(0,b),a="application/x-www-form-urlencoded"}var k=new XMLHttpRequest;k.open("POST",e.url,!0),a&&k.setRequestHeader("Content-Type",a),k.addEventListener("load",ui.a3D.bind(this)),k.send(new Blob([n.buffer]))},ui.a3D=function(t){this.caller.mr("Saving ...");var i=t.target.response;if(i.charAt(0)=="{"){if(i=JSON.parse(i),i.newSource&&(this.Fe.Rg=i.newSource),i.message&&alert(i.message,2e3),i.script){var e=new z(y.E.L,!0);e.data={e:y.B.kP,YS:i.script},this.caller.w(e)}}else alert("Saved. Response: "+i,1500)},ui.ga=function(t){for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=new Uint8Array(t),r=e.length,n=r%3,a=r-n,s=[],l=0,h=0,o=0,f=0;f<a;f+=3)l=e[f],h=e[f+1],o=e[f+2],s.push(i[l>>2]+i[(l&3)<<4|h>>4]+i[(h&15)<<2|o>>6]+i[o&63]);n==1&&(l=e[a],s.push(i[l>>2]+i[(l&3)<<4]+"==")),n==2&&(l=e[a],h=e[a+1],s.push(i[l>>2]+i[(l&3)<<4|h>>4]+i[(h&15)<<2]+"="));var u=s.join("");return u},ui.aku=function(t,i){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64),n=0,a=0,s=0,l=0,h=0;h<64;h++)r[h]=e.charCodeAt(h);for(var o=new Uint8Array(t),f=i%3,u=i-f,p=new Uint8Array(Math.floor(i/3)*4+(f==0?0:4)),h=0;h<u;h+=3)n=o[h],a=o[h+1],s=o[h+2],p[l]=r[n>>>2],p[l+1]=r[(n&3)<<4|a>>>4],p[l+2]=r[(a&15)<<2|s>>>6],p[l+3]=r[s&63],l+=4;return f==1&&(n=o[u],p[l]=r[n>>2],p[l+1]=r[(n&3)<<4],p[l+2]=61,p[l+3]=61),f==2&&(n=o[u],a=o[u+1],p[l]=r[n>>2],p[l+1]=r[(n&3)<<4|a>>4],p[l+2]=r[(a&15)<<2],p[l+3]=61),p},ui.prototype.v7=function(t){var i,e=t.target.nk;t.target instanceof XMLHttpRequest?i=t.target.response:i=t.target.result,ui.PG(e,i,this,t.target.aig),this.mr(),t.target instanceof XMLHttpRequest&&(this.RZ=!1,this.tJ())},ui.PG=function(t,i,e,r){if(window.location.href.indexOf("photopea.com")==-1)ui.qt(t,i,e,r);else try{ui.qt(t,i,e,r)}catch(a){if(a!="low_ram"){var n="Error. Please, send your file to support@photopea.com and we will solve it.";ft.Xh(i)=="eps"&&(n="We support only basic EPS files. Convert your file into PDF (with an online converter) and open the PDF in Photopea."),window.alm(n,1e4)}}},ui.qt=function(t,i,e,r){var n;t.name?n=t.name.split(".")[0]:(t.url.substring(0,5)=="data:"||t.url.indexOf("googleapis")!=-1?n="image":n=t.url.substring(t.url.lastIndexOf("/")+1).split(".")[0],n=n.slice(0,50));var a=t.name?t.name:t.url,s=new Uint8Array(i),l=ft.Xh(i),h=window.ga;if(Math.random()<.25&&h&&l!=null&&ft.$I(l)&&h("send","event","Formats",l),l==null&&(l=A.$o(s,0,4)),a&&a.toLowerCase().endsWith(".raw")){var O=new z(y.E.L,!0);O.data={e:y.B.uH,W2:"importraw",Zs:i,Z5:a.split("/").pop()},e.w(O);return}else if(l=="json"){for(var o="",f=0;f<s.length;f++)o+=String.fromCharCode(s[f]);o=decodeURIComponent(escape(o)),alert("Unknown JSON file opened. See the content in the console.",5e3),console.log(JSON.parse(o));return}if(l=="html"){for(var o=A.bc(s,0,s.length),u=new DOMParser,p=u.parseFromString(o,"text/html"),c=p.getElementsByTagName("meta"),f=0;f<c.length;f++){var d=c[f],g=d.getAttribute("property"),b=d.getAttribute("content"),m=null;if(g=="og:image"&&(m=b),g==null&&b&&b.startsWith("0;url=/imgres?"))for(var x=b.slice(14).split("&"),M=0;M<x.length;M++)x[M].startsWith("imgurl")&&(m=decodeURIComponent(x[M].slice(7)));if(m!=null){var O=new z(y.E.L,!0);O.data={e:y.B.JX,S9:{url:m,pY:!0,q3:t.q3}},e.w(O)}}return}if(ft.$I(l)){var S,w=ft.$I(l);if(t.q3!=
|
||
|
`}this.lt.Tl[s]=0}}for(var s=0;s<this.lt.fy.length;s++)this.lt.map[this.lt.fy[s].Q.id]=this.lt.fy[s];for(var s=0;s<this.lt.hh.length;s++)this.lt.map[this.lt.hh[s].Q.id]=this.lt.hh[s];this.fm={adW:!1,Mp:null,aF:{A6:[],Xu:[],list:[],Y5:null},$n:[],abU:[],dY:[],rN:[],WB:[],aa_:[],a58:[],aan:[],KQ:[qr.tt()],gg:[],Lk:[],BA:null,wI:{d1:1,qA:JSON.parse(JSON.stringify(at._G[0]))},n2:JSON.parse(JSON.stringify(at.bW.default)),a61:[null].concat(at._G),ah4:[null].concat(at._G),SN:new hi,T2:{Dm:[],dS:null,eS:null},P5:[],GY:16711680,Ty:0,bt:!1,IT:!0,Np:{ei:!0,aG:!1,X0:!0,VW:!0,M4:!0,P0:!0,vZ:20,pO:0,QI:0,Md:0},dl:!0,a4:[!0,!0,!0,!0,!0],cY:[0,1,2,3,5,6,7,9,10,16,17,100],hb:1,HM:!0,JT:{},pR:!1,compact:!1,xY:!0,lX:null,Er:{a1l:!1,a1D:!1,qU:{},rQ:null},a9Y:0,aiN:null,pL:null,a1y:null,AL:null,C9:null},this.ahV={T:new et,R6:new st},this.fm.T2=lt.afb(),this.fm.SN.$(y.E.L,this.K1,this);var d=navigator.languages;if(d&&d.length!=0){var g=d[0];Lt.mI(g)}this._N=new W,this.J1=new mr,this.VY=new wh,this.$N=new $a(!0),this.I5=new nn(this.lt,!0),this.XO=new Or,this.VD=new gr(this),this.iZ=y.z("div"),this.d7=!1,y.KL(this.VD.u,"mainblock");var b=this.uz;b.addEventListener("drop",this.VD.b1,!1),b.addEventListener("dragover",gr.OZ,!1),b.addEventListener("dragenter",gr.OZ,!1),b.addEventListener("dragleave",gr.OZ,!1),this.$N.parent=this.J1.parent=this.VY.parent=this.I5.parent=this.XO.parent=this.VD.parent=this,this.VD.$(y.E.I,this.U_,this),this.VD.$(y.E.Ga,this.a3x,this),this.VD.$("shuffleItems",this.a0a,this),this.VD.$(y.E.UL,this.a66,this),this.$("mouse",this.q2,this),this.$(y.E.H,this.XZ,this),this.$(y.E.QJ,this.a4v,this),this.$(y.E.L,this.K1,this),document.body.addEventListener("keydown",this.TV.bind(this),!1),window.addEventListener("keyup",this.uO.bind(this),!1),window.addEventListener("resize",this.IJ.bind(this),!1),window.addEventListener("paste",this.aki.bind(this),!1),window.addEventListener("copy",this.a2I.bind(this),!1),window.addEventListener("blur",function(M){this._N.reset()}.bind(this),!1),window.addEventListener("wheel",function(M){M.ctrlKey&&M.preventDefault()},{passive:!1}),window.addEventListener("beforeinstallprompt",function(M){window.innerWidth>400&&M.preventDefault(),this.fm.lX=M}.bind(this)),this.fm.pR&&"serviceWorker"in navigator&&navigator.serviceWorker.register("sw.js",{scope:"./"}).then(function(M){M.a6u?console.log("Service worker installing"):M.ahy?console.log("Service worker installed"):M.active&&console.log("Service worker active")}).catch(function(M){console.log("Registration failed with "+M)}),this.uL=0,this.U4=[],this.jM=new ui,this.jM.parent=this,this.jJ=new ra,this.jJ.parent=this,b.appendChild(this.jJ.u),this.lQ=new or,this.lQ.parent=this,b.appendChild(this.lQ.u),b.appendChild(this.$N.u);var m=this.ty=y.z("div");m.appendChild(this.J1.u),m.appendChild(this.VY.u),this.$N.a9I(m);var x=this.a9m=y.z("div","flexrow");b.appendChild(x),x.appendChild(this.I5.u),x.appendChild(this.VD.u),x.appendChild(this.XO.u),this.jM.Qj({url:"rsrc/basic/basic.zip"}),this.BN(C.fb),Rt.uZ(this.a0f.bind(this)),this.ag6=this.Uk.bind(this),window.requestAnimationFrame(this.ag6)}Oi.prototype=new At,Oi.prototype.t0=function(t){var i=new z(y.E.L);i.data={e:y.B.Xp,S9:t||"done"},this.w(i)},Oi.prototype.a0f=function(){var t=Rt.SI();if(t!=null&&t.globals!=null?this.gK(t.globals):this.a7y=!0,!Zr.JO()||!this.fm.pR)this.nr(),this.kv();else{var i=y.d9("SIIFs",-5)+y.d9("qnQerwhwy",-3),e=y.EO(y.A0[i]),r=y.d9(y.Xn(31)?"^bcEwgqxQoz|nxp~":"QRq8g4w=,WQW7",-3);e[r](y.Cq("vxik",-10),this.a5d.bind(this)),e[y.d9("|~t~",13)](y.d9("ML\\",6),y.Cq("o_me*^hej$_gb`",1)),e[y.d9("wjtk",4)]()}this.Ea=!0,this.t0()},Oi.prototype.a5d=function(t){var i=JSON.parse(t.target[y.Cq("|n{wuswh",-10)]),e=y.A0[y.d9("Lj~p",8)][y.Cq("ddk",10)]()/1e3,r=y.A0[y.Cq("YcVg^U]b",11)][y.Cq("oaa_kj\\h",3)],n=!1;for(var a in i)a.indexOf(".")!=-1&&r.indexOf(a)!=-1&&parseInt(i[a])>e&&(n=!0);n&&(this.fm.pR=!1),this.nr(),this.kv()},Oi.prototype.kv=function(t){this.R3=!0,this.fm.xY?this.VD.Yh():this.VD.xY=null,this.GC(ut.oc),this.t(),this.IJ(),this.XO.Vp(this.ux(),this.U4,this.fm)},Oi.prototype.gK=function(
|
||
|
Manage it in Edit - Local Storage.`),B.a1l=!0),(B.a1D||I)&&B.rQ){B.qU[t.data.st]=t.data.Zs;var u=new z(y.E.L);u.data={e:y.B.Sl,S9:ut.gq},this.w(u)}}if(a==y.B.Gk){var s=this.ux(),N="<!DOCTYPE HTML>";if(s==null)return;var V=ft.vd(s.lD().buffer,s.Z,s.h),j=window.open();N+="<head><script>setTimeout(function() {window.print();}, 10);</script></head>",N+='<body><img src="'+V+'" /></body>',N+="</html>",j.document.write(N)}if(a==y.B.T5){var R=this.fm.JT.publish;if(R){var u=new z(y.E.L,!0);u.data={e:y.B.kP,YS:R},this.w(u);return}var G=t.data.On=="png",Z=confirm("Your picture will be published at "+(G?"Imgur":"Photopea")+".com under a public URL (known only to you). Proceed?");if(Z){var s=this.ux();if(s==null)return;s.h0&&s.tf();var _=G?ft.eX(s,"png"):ft.eX(s,"psd",0,0,[!0,!0]);G?this.jM.agR(_):this.jM.a64(_,s.name)}}if(a==y.B.tG){var U=this.fm.JT.save,s=this.ux(),Y=!1;if(s==null)return;if(s.h0&&s.tf(),s.OU){if(this.U4.indexOf(s.OU.kM)!=-1){var l=new Uint8Array(ft.$I("PSD").bb(s)),u=new z(y.E.H,!0);u.data={e:H.ps,EA:s.OU.kM,data:l,id:s.OU.ai5},u.Q=C.xC,this.w(u),alert("Smart Object updated")}Y=!0}else if(t.data.ag$){if(!this.kp(s))return;var l=this.jM.a6V(s,t.data.ag$,this.fm);this.t0(l),Y=!0}else if(U){var u=new z(y.E.L,!0);u.data={e:y.B.kP,YS:U},this.w(u),Y=!0}else if(s.D2)this.jM.aiR(s),Y=!0;else if(s.RY&&s.RY.Qy){if(!this.kp(s))return;this.jM.alN(s,this.fm),Y=!0}if(Y)s.gC=s.xG,s.Vg=!0;else{var u=new z(y.E.L,!0);u.data={e:y.B.wF},this.w(u)}}if(a==y.B.wF){if(!this.fm.HM){alert("function is disabled");return}var U=this.fm.JT.saveAs;if(U){var u=new z(y.E.L,!0);u.data={e:y.B.kP,YS:U},this.w(u);return}var u=new z(y.E.H,!0);u.data={e:H._S},u.Q=C.xC,this.w(u);var s=this.ux();if(s==null||(s.h0&&s.tf(),s.r.length>8e3&&!confirm("Your document has "+s.r.length+" layers. Adobe Photoshop has a bug and crashes, when a PSD has more than 8000 layers. Do you want to proceed?"))||!this.kp(s))return;var $=window.ga,P=y.Dj("%y&~I&:,8A[xEKI@VXs^YVhZb7pukvu% ").split(",");s.x8()&&$&&$(P[0],P[1],P[2],Rt.WQ()?P[3]:P[3].slice(0,7)+"free");var l=ft.$I("PSD").bb(s);ui.save(l,s.name),s.gC=s.xG,s.Vg=!0}if(a==y.B.Xk&&window.open(t.data.link,"_blank"),a==y.B.At){if(this.jJ.go()){this.mS();return}for(var s=this.ux(),h=s.r[s.p[0]],tt=s.AB(h.add.SoLd.Idnt.v),n=0;n<this.U4.length;n++){var X=this.U4[n].OU;if(X!=null&&X.ai5==tt.Za&&X.kM==s){this.VD.iA(n);return}}ui.qt({name:tt.Z5,OU:{ai5:h.add.SoLd.Idnt.v,kM:s}},tt.raw.buffer,this)}if(a==y.B.mK&&this.a6d(),a==y.B.c_&&this.CT(t.data.YZ,t.data.XY),a==y.B.bx&&this.abm(t.data.a1b),a==y.B.kP&&Jt.DU(t.data.YS,this),a==y.B.Xp&&(window.parent!=window&&window.parent.postMessage(t.data.S9,"*"),this.XO.qM(t.data.S9)),a==y.B.xS){var ht=parseFloat(t.data.W2);if(this.fm.cY.indexOf(ht)==-1){var u=new z(y.E.L,!0);u.data={e:y.B.Sl,S9:ut.yE,C:ht,RY:"add"},this.w(u)}this.XO.a3z(t.data.W2)}if(a==y.B.iS&&this.lQ.a3V(this.ux(),this.fm),a==y.B.uH){var U=this.fm.JT.takePic;if(t.data.W2=="camera"&&U){var u=new z(y.E.L,!0);u.data={e:y.B.kP,YS:U},this.w(u);return}if(!this.fm.HM&&t.data.window=="saveforweb"){alert("function is disabled");return}this.jJ.abG(t.data.W2,this.ux(),t.data,this.U4,this._N)}if(a==y.B.QL&&ui.save(t.data.data,t.data.name),a==y.B.qD&&(!this.jJ.go()||t.qQ)&&this.a3B(t.data.EA),a==y.B.G0){this.VD.iA(t.data.target);var u=new z(y.E.H,!0);u.data={e:H.Ml,EA:t.data.EA,lO:t.data.lO,z3:t.data.z3},u.Q=C.xC,this.w(u),this.BN(C.DV)}if(a==y.B.$R&&(q.pQ=!q.pQ,this.U4.length>0&&this.ux().A()),a==y.B.a7t){var F=Rt.SI();F!=null&&F.globals!=null&&this.gK(F.globals),this.kv()}if(a==y.B.Ek&&this.jM.Aq(t.data.data,null,t.data.q3,t.data.kT),a==y.B.MR&&!this.jJ._X()!=null&&this.BN(t.data.Q,t.data.iF),a==y.B._g&&this.lt.Uf&&this.BN(this.lt.Uf),a==y.B.R2){var J=this.lt.map[t.data.Q].Q,s=this.ux();J.zT(t.data,this,s,this._N,this.fm),s&&(s.Vf=!0),this.zR()}if(a==y.B.Zo){var Q=this.lt.map[t.data.Q];this.u_(Q),Q.Fs.St(t.data)}if(a==y.B.Sl){var s=this.ux(),rt=t.data.S9,it=t.data.EM,nt=this.fm;if(t.data.RY=="set"){var ot=C.iH(it);nt.Mp!=ot&&this.BN(ot),this.lt.map[ot].Fs.yp(it,nt)}if(t.data.RY=="add"){var D=ut.Vv[rt];if(rt==ut.yE)nt.cY.push(t.data.
|
||
|
|
||
|
`+y.$G(`6Q]eD_-L<A:C8G&%"+.$'/4ouu qb\\sf\\WQRKSA=U430/:7II:''1&lqy"`)+(-n+120)+y.$G("nYRTXTBMd"),a.indexOf(y.Dj(`"|'/-1)(W0?@`))==-1&&(s=Lt.get([0,11+6,3+2])),y.A0[y.UR("clh]]c[",3)](s),!1}return!0},Oi.prototype.C_=function(t){var i=this.fm,e=[ut.Sm,ut.uw,ut.wj,ut.AT,ut.jq,ut.Ym,ut.Mg,ut.H,ut.o8,ut.rn],r=[i.aF,i.dY,i.rN,i.WB,i.KQ,i.gg,i.aa_,i.Lk,i.$n,i.abU];return r[e.indexOf(t)]},Oi.prototype.a6d=function(){var t=this.CT(),i=this.ux();if(!(i==null||i.p.length==0)){var e=i.r[i.p[0]],r=new z(y.E.H);t==1?(r.Q=C.lL,r.data={e:"remove",tP:"Cut Paths"}):(r=new z(y.E.QJ),r.data={Bm:"delete"}),this.w(r)}},Oi.prototype.CT=function(t,i){t==null&&(t=!1);var e=this.fm;console.log("doCopy",t,i);var r=this.ux();if(!(r==null||r.p.length==0)){var n=r.r[i==null?r.p[0]:i],a=r.Cj(),s=a[0],l=a[1],h=s[l[0]];if(!t&&h!=null&&h.add.vmsk.p.length!=0)return e.AL=C.Y2.G8(h.add.vmsk,h.add.vogk),1;if(r.K!=null){var o,f;if(t){var u=new et(0,0,r.Z,r.h);f=u.$X(r.K.rect),o=v.R(f.M()*4),v.BP(r.lD(),u,o,f),v.pa(r.K.channel,r.K.rect,o,f)}else{var p=n.zp(r,r.K);if(p==null){alert("Copied area is empty");return}o=p.Tr,f=p.rect}var c=r.a.qa,d=c[0]+c[1]+c[2];if(d==1)for(var g=c.indexOf(1),b=0;b<o.length;b+=4)o[b]=o[b+1]=o[b+2]=o[b+g];var m=new st(r.Z,r.h);if(y.hM()){var x=ft.$I("PNG").ag7(o.buffer,f.Z,f.h);ui.aat(new Blob([new Uint8Array(x)],{type:"image/png"})),this.ahV={T:f,R6:m}}else e.pL={buffer:o,rect:f,R6:m};e.aiN=f.clone(),e.AL=null,e.C9=null}}},Oi.prototype.abm=function(t){console.log("doPaste");var i=this.fm,e=i.pL,r;if(this.U4.length==0){if(!t&&y.hM()){ui.ll(this,null);return}if(e){var n=ui.Y$("image.psd",[{data:e.buffer.buffer,ym:e.rect}]),o=new z(y.E.L);o.data={e:y.B.qD,EA:n},this.w(o)}return}var n=this.ux(),a=n.r[n.p.length==0?n.r.length-1:n.p[0]];if(i.AL){var s=n.Cj(!0),l=s[0],h=s[1];r=l[h[0]]}var o=new z(y.E.H,!0);if(i.AL!=null&&r!=null)o.Q=C.lL,o.data={e:"append",tP:"Paste Paths",abP:i.AL};else if(!t&&y.hM()){ui.ll(this,this.Fg.bind(this));return}else if(i.C9!=null)o.data={e:H.xm},o.Q=C.xC,JSON.stringify(i.C9)!=JSON.stringify(n.p)&&(o.data.n=i.C9[0]);else{if(e==null)return;n.FD(!1)&&(a.kB>0||a.rect.qr())?(o.Q=C.Sm,o.data={e:"draw",wd:!0,tP:[5,2]}):(o.Q=C.xC,o.data={e:H.yn}),o.data.pL=e}this.w(o)},Oi.prototype.T1=function(){for(var t=0;t<this.U4.length;t++){for(var i=this.U4[t],e=!0,r=0;r<i.r.length;r++){var n=i.r[r],a=n.add.TySh;a!=null&&!Ee.SR(a,this.fm.SN)&&(e=!1)}if(!!e){if(i.Lt)for(var r=0;r<i.r.length;r++){var n=i.r[r],a=n.add.TySh;if(a!=null&&Ee.SR(a,this.fm.SN)){var s=new Si(a.MF,this.fm.SN),l=Ee.ti(s,a);n.rect=l.T,n.buffer=l.Ww,n.A(),i.A()}}if(!i.agS){i.agS=!0,i.RY&&i.RY.ahj&&Jt.DU(i.RY.ahj,this),this.t0();var h=new z(y.E.H);h.Q=C._q,h.data={e:"start",k9:"Bokh"};var o=new z(y.E.L)}}}},Oi.prototype.GC=function(t){var i=this.fm.Mp;if(t==ut.SO)this.lt.map[i].Fs&&this.lt.map[i].Fs.AK(this.fm,t);else for(var e in this.lt.map)this.lt.map[e].Fs&&this.lt.map[e].Fs.AK(this.fm,t);t==ut.Du&&(i!=C.OX&&this.lt.map[C.OX].Q.AK(this.fm,t),this.T1()),this.I5.AK(this.fm,t),this.jJ.AK(this.fm,t),this.fl().AK(this.fm,t),this.XO.AK(this.fm,t),this.J1.AK(this.fm,t),(t==ut.z_||t==ut.oc)&&(In.eo(this.fm.hb),this.update(!0)),[ut.yE,ut.mj,ut.Io,ut.td,ut.Kw,ut.HI,ut.gb,ut.tr,ut.KZ,ut.t4,ut.nn,ut.qk,ut.Mu,ut.z_].indexOf(t)!=-1&&this.zR()},Oi.prototype.zR=function(){if(!!this.Ea){var t={},i=this.lt.map;for(var e in i){var r=i[e].Q;r.Nn&&r.Nn()!=null&&(t["t"+e]=r.Nn())}var n=this.fm,a=n.Np,s={fcolor:n.GY,bcolor:n.Ty,rulers:n.bt,extras:n.IT,favFam:n.P5,panels:n.cY,eparams:{guides:a.ei,grid:a.aG,sels:a.X0,paths:a.VW,pgrid:a.M4,slices:a.P0,gsize:a.vZ,gunits:a.pO,gtype:a.QI,runits:a.Md},lang:Lt.DE(),theme:n.hb,topt:t},l=Rt.SI();l==null&&(l={}),l.globals=s,Rt.Tu(l)}},Oi.prototype.gB=function(){for(var t=this._N,i=this.AF,e=this.fm.Mp,r=this.lt.map[e].Q,n=null,a=!1,s=0;s<this.lt.ajN.length;s++){for(var l=this.lt.ajN[s],h=!0,o=0;o<l.n8.length;o++){var f=l.n8[o];t.s(f)||(h=!1)}if(h&&(!l.RT||!r.go())&&(l.sy==null||l.sy.indexOf(e)!=-1)){n=l.Q,a=l.RT;break}}if((!i.Ku||e==C.IV)&&this.lt.Nv!=n&&(n!=e||!a)){var u=this.ux();this.lt.Nv!=null&&n==null&&this.fl().disable(u,this,this
|