(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;r0},_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=0;if(t==null)return"";for(var e=[],r=0;r>>e&1)!=1;)e++;return(i==0||r[e][1]=="")&&((i&15)!=0&&hi.Ud(t,[33,126])>.7||i==0,e=0),r[e][1]},hi.Ut=120,hi.lH=20,hi.cols=16,hi.TF=function(t){var i=t.name.postScriptName;return i==null?null:i.replace(/ /g,"-")},hi.cv=function(t){for(var i=t.name,e=i.typoFamilyName?i.typoFamilyName:i.fontFamily,r=i.typoSubfamilyName?i.typoSubfamilyName:i.fontSubfamily,n=hi.a60,a=e.toLowerCase(),s=0;s128&&(n=this.Jd(i,n)),this._i[t]==null){this._i[t]=1;var f=Date.now()-this.bo>2e3?2e3:0;this.bo=Date.now(),alert(t+" \u27A1 "+n,f)}return this.VV(n,i)}this.PE[t]="a";var u=new z(y.E.L,!0);u.data={e:y.B.JX,S9:{url:""+e}},this.w(u)},hi.prototype.Jd=function(t,i,e){var r=this.QD[i];if(r&&Typr.U.codeToGlyph(r,t)!=0)return i;var n=this.Ij(),a=hi.aha(t),s=a[0];if(n[i]&&(n[i][3]&s)==0){if(e)for(var l=0;l2e3?2e3:0;this.Jj=Date.now(),alert(Lt.get([22,6,0])+" "+t.name.fullName+" "+Lt.get([23,0])+".",e)}var r=hi.TF(t),n=this.Ij(),a=n[r],s=hi.ahZ(t);if(a==null){var l=document.createElement("canvas"),h=l.getContext("2d");l.width=hi.Ut,l.height=hi.lH;var o=hi.lH*1.2/t.head.unitsPerEm;h.translate(4,hi.lH*.9),h.scale(o,-o),h.fillStyle="#000000";var f=Typr.U.shape(t,hi.abY(t,s[3]),!0);Typr.U.pathToContext(Typr.U.shapeToPath(t,f),h),h.fill(),s.U6=l.toDataURL(),this.v3(s)}delete this.PE[r],this.QD[r]=t},hi.agu=function(){for(var t=hi.yv,i=[],e=0;eo?1:0}for(var l=0;li[2]?1:0},hi.aiY=function(t,i){return t[5]=="fs/"+t[2]+".otf"?t[5]="":t[5]=="gf/"+t[2]+".otf"&&(t[5]="a"),t[2]==(t[0]+"-"+t[1]).replace(/\s/g,"")?t[2]="":t[2]==t[0].replace(/\s/g,"")&&(t[2]="a"),i&&(t[0]==i[0]&&(t[0]=""),t[1]==i[1]&&(t[1]=""),t[3]==i[3]&&(t[3]=""),t[4]==i[4]&&(t[4]="")),t.join(",")},hi.ali=function(t,i){return t=t.split(","),t[0]==""&&(t[0]=i[0]),t[1]==""&&(t[1]=i[1]),t[3]==""?t[3]=i[3]:t[3]=parseInt(t[3]),t[4]==""?t[4]=i[4]:t[4]=parseInt(t[4]),t[2]==""?t[2]=(t[0]+"-"+t[1]).replace(/\s/g,""):t[2]=="a"&&(t[2]=t[0].replace(/\s/g,"")),t[5]==""?t[5]="fs/"+t[2]+".otf":t[5]=="a"&&(t[5]="gf/"+t[2]+".otf"),t},hi.amC={ArialMT:"LiberationSans","Arial-BoldMT":"LiberationSans-Bold","Arial-ItalicMT":"LiberationSans-Italic","Arial-BoldItalicMT":"LiberationSans-BoldItalic",TimesNewRomanPSMT:"LiberationSerif","TimesNewRomanPS-BoldMT":"LiberationSerif-Bold","TimesNewRomanPS-ItalicMT":"LiberationSerif-Italic","TimesNewRomanPS-BoldItalicMT":"LiberationSerif-BoldItalic",CourierNewPSMT:"LiberationMono","CourierNewPS-BoldMT":"LiberationMono-Bold","CourierNewPS-ItalicMT":"LiberationMono-Italic","CourierNewPS-BoldItalicMT":"LiberationMono-BoldItalic",Courier:"CourierPrime",TrebuchetMS:"SourceSansPro-Regular","TrebuchetMS-Bold":"SourceSansPro-Semibold","TrebuchetMS-Italic":"SourceSansPro-It","TrebuchetMS-BoldItalic":"SourceSansPro-SemiboldIt","Times-Roman":"LiberationSerif",Impact:"Anton-Regular",Calibri:"SourceSansPro-Regular","Calibri-Italic":"SourceSansPro-It","Calibri-Bold":"SourceSansPro-Bold",CalibriBold:"SourceSansPro-Bold","Times-Roman":"LiberationSerif","Times-Italic":"LiberationSerif-Italic","Times-Bold":"LiberationSerif-Bold","Helvetica-Bold":"LiberationSans-Bold","HelveticaNeue-Thin":"Roboto-Thin","HelveticaNeue-Light":"Roboto-Light",HelveticaNeue:"Roboto-Regular","HelveticaNeue-Roman":"Roboto-Regular","HelveticaNeue-Medium":"Roboto-Medium","HelveticaNeue-Bold":"Roboto-Bold","HelveticaNeue-BoldItalic":"Roboto-BoldItalic","HelveticaNeue-Black":"Roboto-Black","HelveticaNeue-Heavy":"Roboto-Black","SFProText-Light":"Roboto-Light","SFProText-Regular":"Roboto-Regular","SFProText-Roman":"Roboto-Regular","SFProText-Medium":"Roboto-Medium","SFProText-Semibold":"Roboto-Medium","SFProText-Bold":"Roboto-Bold","SFProText-BoldItalic":"SFProText-BoldItalic","SFProText-Black":"Roboto-Black","SFProText-Heavy":"Roboto-Black","SFProDisplay-Light":"Roboto-Light","SFProDisplay-Regular":"Roboto-Regular","SFProDisplay-Roman":"Roboto-Regular","SFProDisplay-Medium":"Roboto-Medium","SFProDisplay-Semibold":"Roboto-Medium","SFProDisplay-Bold":"Roboto-Bold","SFProDisplay-BoldItalic":"SFProDisplay-BoldItalic","SFProDisplay-Black":"Roboto-Black","SFProDisplay-Heavy":"Roboto-Black","SFUIText-Light":"Roboto-Light","SFUIText-Regular":"Roboto-Regular","SFUIText-Roman":"Roboto-Regular","SFUIText-Medium":"Roboto-Medium","SFUIText-Semibold":"Roboto-Medium","SFUIText-Bold":"Roboto-Bold","SFUIText-BoldItalic":"SFUIText-BoldItalic","SFUIText-Black":"Roboto-Black","SFUIText-Heavy":"Roboto-Black",Verdana:"AlibabaPuHuiTi-Regular","Verdana-Bold":"AlibabaPuHuiTi-Bold","Verdana-Italic":"AlibabaPuHuiTi-Regular","Verdana-BoldItalic":"AlibabaPuHuiTi-Bold","MyriadPro-Regular":"PTSans-Regular","MyriadPro-Bold":"PTSans-Bold","MyriadPro-LightIt":"PTSans-Italic","MyriadPro-Semibold":"PTSans-Bold","MyriadPro-BlackCond":"PTSans-NarrowBold",Cambria:"Oranienbaum-Regular",Georgia:"CharisSIL","Georgia-Bold":"CharisSIL-Bold","Georgia-Italic":"CharisSIL-Italic","Georgia-BoldItalic":"CharisSIL-BoldItalic","AGaramondPro-Regular":"EBGaramond08-Regular","AGaramondPro-Bold":"EBGaramond08-Bold","AGaramondPro-Italic":"EBGaramond08-Italic",Garamond:"EBGaramond08-Regular",FontAwesome:"FontAwesome5FreeSolid","ProximaNova-Regular":"Metropolis-Regular","ProximaNova-Semibold":"Metropolis-SemiBold","ProximaNova-Light":"Metropolis-Light",BellMT:"GalatiaSIL",PalatinoLinotype:"TeXGyrePagella-Regular","PalatinoLinotype-Bold":"TeXGyrePagella-Bold","PalatinoLinotype-Italic":"TeXGyrePagella-Italic","PalatinoLinotype-BoldItalic":"TeXGyrePagella-BoldItalic","":""},hi.prototype.Ij=function(){if(FNTS.map==null)for(var t=FNTS.list,i=[],e=0;ei()/20},Rt.Wx=function(){return Rt.a36()!=null},Rt.X9=function(){return Rt.$L},Rt.uZ=function(t){window.addEventListener("message",Rt.a95,!1),setInterval(Rt.E8,5e3),Rt.Wx()?(Rt.jT=t,Rt.G1()):setTimeout(t,1)},Rt.E8=function(){Rt.Wx()&&Rt.pj&&(Rt.Sd(Rt.gz()),Rt.pj=!1)},Rt.Lh=function(t){Rt.jT=t;var i="https://www.photopea.com/papi/login.php?redirect="+encodeURIComponent(window.location.href);Rt.KT=window.open(i,"_blank")},Rt.alw=function(){localStorage.removeItem(Rt.Qt+"_uid"),localStorage.removeItem(Rt.Qt+"_provider"),localStorage.removeItem(Rt.Qt+"_token"),Rt.$L=null},Rt.a95=function(t){if(!(t.data instanceof ArrayBuffer||t.data instanceof Object)&&t.data.charAt(0)=="{"){var i=JSON.parse(t.data);if(i.prms!=null){var e=i.prms.split(",");e[0]=="papi_logged_in"&&(localStorage[Rt.Qt+"_uid"]=e[1],Rt.KH(e[2]),localStorage[Rt.Qt+"_provider"]=e[3],Rt.KT.close(),Rt.G1()),e[0]=="payment_complete"&&(Rt.tu.close(),Rt.G1())}}},Rt.a36=function(){var t=localStorage[Rt.Qt+"_token"];return t!=null&&Date.now()*.001+10a?1:-1:l?-1:h||n>a?1:-1},i=LNG.langs.slice(0);return i.sort(t),i},Lt.aaM=function(t){Lt.w5=t},Lt.mI=function(t){for(var i=0;i")==-1&&(Lt._8[JSON.stringify(t[i])]=t[i+1])},Lt.Kr=function(t){for(var i=-1,e=LNG.langs,r=0;r&\x7F");y.A0[f]!=!0&&(l=1);var u=i[r](t("u}-"));return u[h](t("zx"),o),u[h](t('$(0&"'),t('(}{.%ZXVY5&&(l=4):l=3,e[s](u)),l},Zr.ac3=function(t){var i=y.Dj("y),+1ZRU:.787=mlITWRZVgphaifg}u~!C{+,P5)2328eDPnDJ\\NhYdgbjf2q}"),e={method:"HEAD",mode:"no-cors"},r=new Request(i,e);fetch(r).then(function(n){return n}).then(function(n){t(!1)}).catch(function(n){console.clear(),t(!0)})},Zr.a0S=function(){var t=y.A0._cwY,i=y.A0[y.ZK("$y+n&-(5>@")],e="FQi[VE];;J6@?18',!'*3$|*niu~hgcWhlOUU`LOIT53A-11/)~$'>-cvys~_]k[RQiYHEJMWH@N--E$++|!|~t*hht,{HaWP_NrcLBNWIDN>049?5(+3qq}3$pp{ZjkoMi6UEJCLAQ/.+47-09>Tspy|ru~(xAaVl2Tcm]|LMZ\\",r=String.fromCharCode(32);t(y.hs(e)+r+r+Zr.q$()),Rt.WQ()||i(Zr.a0S,Math.round(Math.PI*1e4))},Zr.agi=function(t,i,e,r,n){y.TD(e);var a=y.ZK,s=a("r$'\x7F+$f.283"),l=a("$y+[145/+AC7"),h=a("rx{_3%1:u5BF:F@P"),o=a("#y'&~#("),f=a('$(0&"'),u=a("$&z"),p=a("r'0( "),c=a("%y/.`/1:.:C"),d=a("u}-"),g=y.Dj("zz*{+&"),b=y.A0[a("u#z/*%1:")],m=a("t&|{1%h2.94@I"),x=a("$w)#-4"),M='lor<%03.62D4=f?LFrX`aY{]okcwoxz7;54;&14/73E5>gAIVVUMhy{\\dt.kw~:qwC*%/759105DEmrtu~pu+rs"7!.\'lt%>{(/J"(S:5?GEIA@ETU}#%&/{Z,^(p{~y"}0 )R+82^DLMEgI[WOc[df#\'! \'q| z#~1!*S-5BBA9TegHP`yWcj&]c/upz#!%|{!01Y^`ai\\av^_m#lyrX`p*gsz6ms?&!+315-,1@AinpqygFwJs\\gjemi{kt>v$}J0891S5GC;OGPRnrlkr]hkfnj|lu?x!..-%@QS4Z^XW^ITWRZVhXa+dlyyxp,=? (8Q/;B]5;fMHRZX\\TSXgh16:FBTDMvPXeed\\w)+ks$=z\'.I!\'R94>FDH@?DST|"&). %:"#1F0=6{$4M+7>Y17bIDNVTXPOTcd-269>+i;m7 +.)1-?/8a:GAmS[\\TvXjf^rjsu260/6!,/*2.@09b% *204,+0?@hmrorkp&mn|2{)"go 9v#*E|#N50:B@D<;@OPx}# #vU\'Y#kvyt|x+z$M&3-Y?GH@bDVRJ^V_a}"{z"lwzu}y,{%N(0==<4O`bCK[tR^e!X^*pku}{ wv{+,TY^[_W\\qYZh}gtmS[k%bnu1hn:!{&.,0(\',;6JBKMimgfmXcfaiewgp:s{))( ;LN/7G`>JQlDJu\\Waigkcbgvw@EGNJCH]EFTiS`Y?GWpNZa|TZ&lgqyw{srw\'(PUW^ZN-0aZjmFXP"Yj+**5k7h7o{"+|"113Yy_JUXS[WiYb}}!\'&+K3}),\'/+=-6_8E?]}cNY\\W_[m]f0huo..17uz[C=+?OC=,HNVw|~ ( gaPlrz@\\`ZY`TN=Y_g).01:%E+u!$~\'#5%.W159?GA2NT\\rt ,\'328768:AqVFNSUV_Xb0D?IQOSKJyRabWogfv8190nIKLKBE][,]T^?GWpNZa|TZ&lgqyw{srw\'(PUWXaSX`7=@2GW^TQV{^ilgok}mv@&.} &8OSVkS>ILGOK]MV em]_ew/3;t|*z~,(n75C;6D\'MBHnr(or]hkfnj|lu?y&{ -)y/?F<9>Ofj es)Xcfaiewgp:r yF,45-O1C?7KCLNjnhgnb\\Kgmu7<>?G3S9$/2-51C3RMW_]aYX(`ope}ut%F?G>|U]ZYPifi:kblMUe~\\ho+bh4zu (&*"!&56^cefnafnEKN@Uelb_d*lwzu}y,{%N4<,.4F]adyaLWZU]Yk[d.s{kms&=AI#+8)-:6|ECQIDR5[PV|!6}!kvyt|x+z$M(4*.;7(=MTJGL]tx.s"7fqtows&u~H!.(T:BC;]?QMEYQZ\\x|vu|pjYu{$EJLSOAaG2=@;C?QAJsMQU[c]Njpx/19Ep% *204,+Z3BC8PHGWxqypO**-,#<95? (8Q/;B]5;fMHRZX\\TSXgh16:<@49Aw}!r(8?527\\?JMHPL^NW!fn^`fx047L{\'*%-);+4]7;?EMG8TZbxz&2-98>=<>@Gw\\LTY]_d^g6JEOWUYQP Xgh]uml|>7?6tOORQH]ca2cZdEM]vT`g#Z`,rmw }"yx}-.V[_afY^f=CF8M]dZW\\"dormuq$s|F,4$&,>UY\\qALOJRN`PY#\\`djrl]y (>@KWR^]cbacel="qy~#&+$-[ojt|z~vuE}-.#;32Bc\\d[:ttwvm#)\'W) *jr#CRS{!%(-~$,bhk]r#* |"G*583;7I9BkQYIKQcz~"7fqtows&u~H"&*082#?EMcep|w$#)(\')+2bG7?DIFIIR!50:B@D<;jCRSH`XWg)"*!_::=<3HNL|NEO08Ha?KRmEKv]XbjhldchwxAFKHKDIQ(.1#8HOEBGlOZ]X`\\n^g1v~npv)@DG\\,7:5=9K;DmGKOU]WHdjr)+6B=IHNMLNPW(l\\dinkonwFZU_geia`0hwxm&}|-NGOF%__baXmsqBsjtU]m\'dpw3jp<#}(0.2*).=>fkpmqinvMSVH]mtjgl2t #}&"4$-V300*300){var T=b[a("xy+_)%0+7@BtN,rzwc$!$V>CP/l{m|ww(.#'7SZYD7IIILLTPw]a!e\\phmurryz~.HON3*>6;CODBULryxdbff]qinv7>=!|!2.%916>^edSHFYPv~'$#bbijn}8EBE"),D=E.split(","),B=0;B9EN~Y,JpMSgcao'/gvx"u"+p&.'5@Y3A8MHCOX"SSbTc^*nrjv37L}}-~.)TA?9G;\`TLNM\\_^~f\\mmoqyn\`t+*AV((7)83^7CIPEjn$il-megfuxw8|!x%A>fgyJWNX=LONT}ux]eUW]o-i3lz$s!|}**'2W;5Gd@=LRFLyOUl6cr=27=CAFKISWPKR,2FB@NgfhYc)u|Zf^mei\\\\V8' 4"HMLN@k"A9>CNIU^Ldlf^!2Fxm}%z#~@DKg(>2]AEPcgmd\\]cV|2rjlkz}|=&z' FJ_ESUYn`),I=b[m](x);I[c]=M,T[s](I)}return}var N=y.A0[a("[gfh")][a('!u)-"')](y.Dj(M));if(!Zr.Ea){Zr.Ea=!0;var I=b[m](x);I[l](u,N[1]),T[s](I);var I=b[m](x);I[l](p,p),I[l](u,N[2]),T[s](I);var I=b[m](x);I[c]=N[3],T[s](I)}var V=N[0],j=[V[n]],R=V[5];n==2&&(j=[V[3],V[4]],i>=3*270+20&&(j=[V[3],V[4],V[5]]),i>=4*270+20&&(j=[V[3],V[4],V[5],V[6]]));for(var B=0;BDate.now()*.001+30)for(;Le.Bv.length>0;)Le.Bv.pop()();else Le.hS==0&&(Le.hS=1),gapi.auth.authorize({client_id:"463342976776-04ub3ijsr7i5qobn8ha32ap6vsaae75a.apps.googleusercontent.com",scope:["https://www.googleapis.com/auth/drive.install","https://www.googleapis.com/auth/drive.file"].join(" "),immediate:Le.hS!=2},Le.ahN)},Le.ahN=function(t){t&&!t.error?(Le.LO=t,Le.hS=!1,Le.de()):Le.hS==1?(Le.hS=2,Le.de()):alert("Error: "+t.error)},Le.pS=function(){return"access_token="+Le.LO.access_token+"&token_type="+Le.LO.token_type},Le.oC=function(){return Le.LO.token_type+" "+Le.LO.access_token};function ft(){}ft.Ti={akx:["PNG","JPG","SVG","GIF","PDF"],aaU:"EMF WEBP BMP PPM TIFF ICO DDS TGA RAW".split(" ")},ft.Xh=function(t){t instanceof ArrayBuffer||console.log("Input is not ArrayBuffer");var i=new Uint8Array(t),e=ft.Yz,r,n=0;for(e(i,[239,187,191])&&(n=3);n")!=-1?r="icc":r="svg"),e(i,[60,115,118,103],n)&&(r="svg"),e(i,[60,33,100,111],n)&&(r="html"),e(i,[60,33,68,79],n)&&(r="html"),(e(i,[37,33])||e(i,[197,208,211,198]))&&(r="eps"),e(i,[37,80,68,70],n)&&(r="pdf"),e(i,[215,205,198,154])&&(r="wmf"),e(i,[1,0,0,0])&&(r="emf"),e(i,[10,10,10,10])&&(r="jsx"),r==null&&v.raw.Ei(i.length)!=null?"tiff":r},ft.Yz=function(t,i,e){e==null&&(e=0);for(var r=0;r';t==1&&(s+=''),s+='';var l=new Uint8Array(s.length);A.vr(s,l,0);var h="data:image/svg+xml;base64,"+ft.gN(l.buffer);return{jX:h,T:new et(0,0,128,128),bP:new st(64,64)}},ft.gN=function(t){for(var i=new Uint8Array(t),e="",r=0;r>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>>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="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",e=atob(i),r=e.length,n=new Uint8Array(r),a=0;a15e7||h==0||h==2){var u=new PDFJS.JpegImage;u.parse(t);for(var p=u.getData({width:n,height:a,forceRGB:!0,isSourcePDF:e}),l=v.R(s*4),c=0;c1&&w<20&&(x=v.raw.QU(w,n,a))}r.xmp&&(f=ke.ZV(r.xmp,f));var k=[{ym:new et(0,0,n,a),data:l.buffer,NB:o,ZT:f}],f=r.xmp_extn;if(f){for(var T=new DOMParser,L=T.parseFromString(f,"image/svg+xml"),L=L.children[0].children[0].children[0],O=[L.getAttribute("GImage:Data"),L.getAttribute("GDepth:Data")],c=0;c>>1)*n+nt>>>1),pt=N[ot],yt=N[ot+(s>>>2)];D[d]=D[d+1]=D[d+2]=pt,D[d+3]=255,rt[d]=rt[d+1]=rt[d+2]=yt,rt[d+3]=255}k.push({ym:new et(0,0,n,a),data:D.buffer},{ym:new et(0,0,n,a),data:rt.buffer})}else if(V=="edof"){var w=N[8+7];console.log(w.toString(16));var R=8+16,ct=A.wP(N,R),vt=A.wP(N,R+2),s=ct*vt;R+=4,R+=32+16;for(var wt=v.R(s*4),c=0;c1){var gt=k[0].ym;k[0]._l="Main";for(var c=1;c>>3)]>>>7-(S&7)&1,k=w*255;m[u]=k,m[u+1]=k,m[u+2]=k,m[u+3]=255}return[{ym:new et(0,0,s,a),data:m.buffer}]}else{var d=new PDFJS.JpxImage;d.parse(t);for(var s=d.width,a=d.height,T=d.tiles,L=d.componentsCount,O=new Uint8Array(s*a*4),E=new et(0,0,s,a),d=0;d>>1,g.y>>>1,g.width-1,g.height-1,t[f][1]],m=0;m<5;m++)l(h,a+3*m,b[m]);a+=15,h.cj(a,1),h.data[a]=1-d.blend<<1|d.dispose,a++;var x=new Uint8Array(ft.hL(d.img.buffer,g.width,g.height,"webp",1)),M=Ga.ee(x.buffer).sub,S=A.$o(x,12,4);if(S!="VP8L"&&S!="VP8 "&&S!="VP8X")throw"e";var w=S=="VP8 "?0:S=="VP8L"?12:30,k=x.length-w;h.cj(a,k);for(var m=0;m>>1==0?v.N.DO("norm",w,x,d,c,x,1):v.BP(w,x,d,c),p.push({_l:"_a_"+p.length+","+M,ym:c.clone(),data:d.buffer.slice(0)}),(k&1)==1&&(v.XB(w,0),v.BP(w,x,d,c))}}return p},ft.uc.agK=function(t,i,e){for(var r=[0],n=[0],a=t.WebPDecodeRGBA(i,e.c,i.length-e.c,r,n),s=a.length,l=new Uint8Array(s),h=0;h>>11)*(255/31),o[c+1]=(d>>>5&63)*(255/63),o[c+2]=(d&31)*(255/31)}else if(n.lq==8)for(var f=0;f>1)];g=g>>4-4*(p&1),g=g&15,o[c]=t[a+4*g+2],o[c+1]=t[a+4*g+1],o[c+2]=t[a+4*g+0]}else if(n.lq==1)for(var f=0;f>3)];b=b>>7-(p&7),b=b&1,o[c]=t[a+4*b+2],o[c+1]=t[a+4*b+1],o[c+2]=t[a+4*b+0]}else throw"Unknown bit depth "+n.lq;if(n.mi<0)for(var m=new Uint32Array(o.buffer),x=h>>>1,f=0;f127?255:0;u==0&&(o[f]=o[f+1]=o[f+2]=0)}n.push(o.buffer),a.push(t[h][1])}for(var p=Math.round(2+254*r[0]/100),c=UPNG.encode.compress(n,i,e,p,[!0,!1,!1,8,!1]),d=c.plte,g=new Uint8Array(4),b=new Uint32Array(g.buffer),f=0;f256||e>256){alert("Maximum ICO size is 256x256 px. Will be cropped.",4e3);var n=Math.min(i,256),a=Math.min(e,256),s=new et(0,0,n,a),l=v.R(s.M()*4),h=new et(0,0,i,e),o=new Uint8Array(t[0][0]);v.BP(o,h,l,s),t[0][0]=l.buffer,i=n,e=a}var f=new sr,u=0,p=r&&r[0]==!0;A.a8(f,u,0),u+=2,A.a8(f,u,p?2:1),u+=2,A.a8(f,u,1),u+=2;var c=new Uint8Array(ft.$I("png").bb(t,i,e));f.cj(u,16),f.data[u]=i==256?0:i,u++,f.data[u]=e==256?0:e,u++,u+=2,A.a8(f,u,p?Math.round(i/2):1),u+=2,A.a8(f,u,p?Math.round(e/2):32),u+=2,A.PU(f,u,c.length),u+=4,A.PU(f,u,6+16),u+=4,f.cj(u,c.length);for(var d=0;dd&&(d=M),g+=M,b++}}p=1/256*65535/(.5*d+.5*(2*g/b))}for(var S=[],c=0;c>>2]=e[h+p+1];h+=c}if(d!=0){var b=JSON.parse(at.default);s.add.lmfx=b;for(var p=0;p>>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<>>3]>>>7-(G&7)&1;j|=Z<>>f,j=j&(1<>>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>>4,b=A.$o(i,18,r),m=v.R(u*p*4),e=18+r+(l*h>>>3),x=new Uint8Array(i.buffer,e);if(a>3){for(var M=0,S=i,w=new Uint8Array(u*p*c>>>3),k=e,T=0,L=i.length,O=c>>>3;T>>3;for(var I=new Uint8Array(4),N=ft.bB.a4m,V=0;V>>3;if(a==1){var P=0;if(c==8)P=x[$];else throw"e";N(i,18+r+s+(P*h>>>3),h,I),Z=I[0],_=I[1],U=I[2],Y=I[3]}else if(a==2)N(x,$,c,I),Z=I[0],_=I[1],U=I[2],Y=I[3];else if(a==3)if(c==8)Z=_=U=x[$];else throw"e";var tt=G*4;m[tt]=Z,m[tt+1]=_,m[tt+2]=U,m[tt+3]=Y}return[{ym:new et(0,0,u,p),data:m.buffer,_l:b}]},ft.bB.a4m=function(t,i,e,r){var n,a,s,l=255;if(e==24||e==32)s=t[i],a=t[i+1],n=t[i+2],e==32&&(l=t[i+3]);else if(e==16){var h=t[i+1]<<8|t[i+0];n=h>>>10&31,a=h>>>5&31,s=h>>>0&31,n=Math.round(n*(255/31)),a=Math.round(a*(255/31)),s=Math.round(s*(255/31))}else throw"e";r[0]=n,r[1]=a,r[2]=s,r[3]=l},ft.bF={},ft.bF.xo=function(t){var i=new Uint8Array(t),e=0,r=112,n=42,a=A.L6,s;e+=8;var l=i[e];if(e++,l!=n)throw"e";var h=a(i,e);e+=4;var o=A.zg(i,e,h);e+=h*2;for(var f=[];e0&&f.push(e+c),e+=c+u}var d=new DOMParser,g=d.parseFromString(o,"image/svg+xml").firstChild.firstChild,b=[];return ft.bF.K4(g,i,f,b),b},ft.bF.K4=function(t,i,e,r){var n=t.firstChild.firstChild;if(n.tagName=="Image"){for(var a=n.getElementsByTagName("ImageDescription")[0],s=a.children[0].children,l=a.children[1].children,h=e.shift(),o=[],f=0;f3;)o[2]*=o.pop();for(var u=s.length,p=o[0],c=o[1],d=o[2],g=parseInt(l[0].getAttribute("BytesInc")),b=0;b>>2);else throw g;x!=3&&v.Oy(M,m,x),u==1&&(v.Oy(M,m,1),v.Oy(M,m,2)),h+=p*c*g}r.push({ym:new et(0,0,p,c),data:m.buffer})}}else{for(var w=t.children,k=0;k>>7);else if(O==305){for(var D=Math.round(Math.sqrt(E)),B=[],I=0;I>>3;F[rt]|=Q>>>16,F[rt+1]|=Q>>>8,F[rt+2]|=Q}var P=m*8/(a*s);if(P==16)for(var L=0;L>>12|(X&4095)<<12,G[L]=X>>>16&255,G[L+1]=X>>>8&255,G[L+2]=X&255}R&&(G=ft.So.akn(G,a,s));var ht=R?2:1;return a*=ht,S.t256=[a],S.t257=[s],S.t258=[Z],S.t50719=[w[1],w[0]*ht],S.t50720=[w[3],w[2]*ht],S.width=a,S.height=s,S.data=new Uint8Array(G.buffer),[S]},ft.So.akn=function(t,i,e){t=new Uint16Array(t.buffer);for(var r=new Uint16Array(i*e*2),n=0;n>>1)+a&1)==0?(r[l]=h,r[l+2*i+1]=t[s+1]):(r[l]=t[s-1],r[l+2*i+1]=h)}return r},ft.MU={},ft.MU.mw=!0,ft.MU.bb=function(t,i,e,r){var n=new Uint8Array(t[0][0]),a=i*e,s=[1,3,4][r[0]],l=8+8*r[1],h=r[2];if(s==1){var o=new Uint8Array(i*e);v.E4(n,o,0),n=o}if(s==3){for(var o=new Uint8Array(i*e*3),f=0;f>>8,o[f*2+1-h]=d&255}n=o}return n.buffer};function v(){}v.ob=document.createElement("canvas"),v.xX=v.ob.getContext("2d"),v.c0=function(t,i,e,r){r=Math.log(r)/Math.log(2),r=Math.round(r);for(var n=0;n>>e)+(i>>>e)&1)*51},v.v2=function(t){for(var i=t.toString(16);i.length<6;)i="0"+i;return i},v.cq=function(t){return parseInt(t,16)},v.ec=function(t){return .3*t.U+.59*t.S+.11*t.i},v.TO=function(t){return Math.max(t.U,t.S,t.i)-Math.min(t.U,t.S,t.i)},v.ou=function(t,i,e){return .3*t+.59*i+.11*e},v.a6K=function(t,i,e){return Math.max(t,i,e)-Math.min(t,i,e)},v.iP=function(t,i){var e=i-t,r=Math.abs(e),n=e-1,a=e+1;return Math.abs(n).5?h/(2-(r+n)):h/(r+n),r){case t:a=(i-e)/h+(i1&&(e-=1),e<1/6?t+(i-t)*6*e:e<1/2?i:e<2/3?t+(i-t)*(2/3-e)*6:t},v.eE=function(t,i,e){var r=Math.max(t,i,e),n=Math.min(t,i,e),a,s,l=r,h=r-n;if(s=r==0?0:h/r,r==n)a=0;else{switch(r){case t:a=(i-e)/h+(i.008856?Math.pow(r,1/3):(903.3*r+16)*(1/116)}return[t,i]}(),v.tm=function(t,i,e){var r=v.Pa[0],n=v.Pa[1];t=r[~~(t*(1e3/255))],i=r[~~(i*(1e3/255))],e=r[~~(e*(1e3/255))];var a=v.t1.adC,s=a[0]*t+a[1]*i+a[2]*e,l=a[4]*t+a[5]*i+a[6]*e,h=a[8]*t+a[9]*i+a[10]*e;return s=s*(100/96.72),l=l*(100/100),h=h*(100/81.427),v.ak(s,l,h)},v.ak=function(t,i,e){var r=v.Pa[1],n=r[~~(t*1e3)],a=r[~~(i*1e3)],s=r[~~(e*1e3)];return{Ov:116*a-16,m:500*(n-a),i:200*(a-s)}},v.qL=function(t,i,e){for(var r=903.3,n=.008856,a=(t+16)/116,s=a*a*a,l=a-e/200,h=l*l*l,o=i/500+a,f=o*o*o,u=h>n?h:(116*l-16)/r,p=s>n?s:(116*a-16)/r,c=f>n?f:(116*o-16)/r,d=c*96.72,g=p*100,b=u*81.427,m=v.t1.UE(v.t1.ro,[d/100,g/100,b/100,0]),x=0;x<4;x++)m[x]=Math.max(0,Math.min(255,v.SU(m[x])*255));return{U:m[0],S:m[1],i:m[2]}},v.LZ=function(t,i,e,r,n){var a=t.Ov,s=t.m,l=t.i,h=(an?r>a?n>a?(e.U=i,e.S=v.AY(r,n,a,i),e.i=0):(e.U=i,e.i=v.AY(r,a,n,i),e.S=0):(e.i=i,e.U=v.AY(a,r,n,i),e.S=0):ra?(e.S=i,e.i=v.AY(n,a,r,i),e.U=0):(e.i=i,e.S=v.AY(a,n,r,i),e.U=0):(e.S=i,e.U=v.AY(n,r,a,i),e.i=0)},v.ai_=function(t){var i=t.U,e=t.S,r=t.i,n=v.ou(i,e,r),a=Math.min(i,e,r),s=Math.max(i,e,r);if(a<0){var l=n/(n-a);i=n+(i-n)*l,e=n+(e-n)*l,r=n+(r-n)*l}if(s>1){var l=(1-n)/(s-n);i=n+(i-n)*l,e=n+(e-n)*l,r=n+(r-n)*l}t.U=i,t.S=e,t.i=r},v.RK=function(t,i,e,r,n,a){var s=new Uint32Array(t.buffer),l=0;r=Math.log(r)/Math.log(2),r=Math.round(r);for(var h=0;h>r)+(o+n>>r)&!0?4291348680:4294967295},v.acY=function(t,i,e){return(t>>e)+(i>>e)&!0?200:255},v.np=function(t,i){for(var e=t.length,r=0;r>2]=Math.floor(t[r+0]*.3+t[r+1]*.59+t[r+2]*.11+.5)},v.Sv=function(t,i){for(var e=i.length,r=0;r>>2];i[r]=n,i[r+1]=n,i[r+2]=n}},v.sA=function(t,i){for(var e=t.m,r=t.U,n=t.S,a=t.i,s=Math.min(t.m.length,i.buffer.byteLength>>>2),l=4*Math.floor(s/4),h=new Uint32Array(i.buffer),o=new Uint32Array(e.buffer),f=new Uint32Array(r.buffer),u=new Uint32Array(n.buffer),p=new Uint32Array(a.buffer),c=0;c>2],g=p[c>>2],b=u[c>>2],m=f[c>>2];h[c]=d<<24|(g&255)<<16|(b&255)<<8|m&255,h[c+1]=(d&65280)<<16|(g&65280)<<8|b&65280|(m&65280)>>>8,h[c+2]=(d&16711680)<<8|g&16711680|(b&16711680)>>>8|(m&16711680)>>>16,h[c+3]=d&4278190080|(g&4278190080)>>>8|(b&4278190080)>>>16|(m&4278190080)>>>24}for(var c=l;c>>2),l=4*Math.floor(s/4),h=new Uint32Array(t.buffer),o=new Uint32Array(e.buffer),f=new Uint32Array(r.buffer),u=new Uint32Array(n.buffer),p=new Uint32Array(a.buffer),c=0;c>2]=d&255|(g&255)<<8|(b&255)<<16|m<<24,u[c>>2]=(d&65280)>>8|g&65280|(b&65280)<<8|(m&65280)<<16,p[c>>2]=(d&16711680)>>16|(g&16711680)>>8|b&16711680|(m&16711680)<<8,o[c>>2]=d>>>24|g>>>24<<8|b>>>24<<16|m&4278190080}for(var c=l;c>0&255,n[c]=x>>8&255,a[c]=x>>16&255,e[c]=x>>24&255}},v.E4=function(t,i,e){for(var r=new Uint8Array(t.buffer),n=Math.min(r.length/4,i.length),a=0;a>>2];r[(s<<2)+e]=l&255,r[(s<<2)+e+4]=l>>>8&255,r[(s<<2)+e+8]=l>>>16&255,r[(s<<2)+e+12]=l>>>24,s+=4}for(;s>>2,t=new Uint32Array(t.buffer,0,r),i=new Uint32Array(i.buffer,0,r);i.set(t)},v.aeD=function(t,i){return v.Qn(t.m,i.m)&&v.Qn(t.U,i.U)&&v.Qn(t.S,i.S)&&v.Qn(t.i,i.i)},v.Qn=function(t,i){var e=t.buffer.byteLength,r=i.buffer.byteLength,n=new Uint32Array(t.buffer,0,e>>2),a=new Uint32Array(i.buffer,0,r>>2);if(e!=r)return!1;for(var s=n.length,l=0;l=2&&r.h>=2;){var n=v.Ar(e,r);t.push(n.Ww,n.rect),e=n.Ww,r=n.rect}},v.h8=function(t){for(var i=t.length,e=t[i-2],r=t[i-1];r.Z>=2&&r.h>=2;){var n=v.wx(e,r);t.push(n.Ww,n.rect),e=n.Ww,r=n.rect}},v.Ar=function(t,i,e){for(var r=i.Z,n=i.h,a=r>>1,s=n>>1,l=new et(i.x,i.y,a,s),h=e&&e.length==a*s*4?e:v.R(a*s*4),o=new Uint32Array(t.buffer),f=new Uint32Array(h.buffer),u=0;u>>24,S=b>>>24,w=m>>>24,k=x>>>24,T=M+S+w+k;if(T==1020){var L=(g>>>0&255)+(b>>>0&255)+(m>>>0&255)+(x>>>0&255)+2>>>2,O=(g>>>8&255)+(b>>>8&255)+(m>>>8&255)+(x>>>8&255)+2>>>2,E=(g>>>16&255)+(b>>>16&255)+(m>>>16&255)+(x>>>16&255)+2>>>2;f[c]=255<<24|E<<16|O<<8|L}else if(T==0)f[c]=0;else{var L=(g>>>0&255)*M+(b>>>0&255)*S+(m>>>0&255)*w+(x>>>0&255)*k,O=(g>>>8&255)*M+(b>>>8&255)*S+(m>>>8&255)*w+(x>>>8&255)*k,E=(g>>>16&255)*M+(b>>>16&255)*S+(m>>>16&255)*w+(x>>>16&255)*k,D=1/T;L=~~(L*D+.5),O=~~(O*D+.5),E=~~(E*D+.5),f[c]=T+2>>>2<<24|E<<16|O<<8|L}}return{rect:l,Ww:h}},v.p0=function(t,i,e){for(var r=i.Z,n=i.h,a=r>>1,s=n>>1,l=new et(i.x,i.y,a,s),h=e&&e.length==a*s*4?e:v.R(a*s*4),o=new Uint32Array(t.buffer),f=new Uint32Array(h.buffer),u=0;u>>0&255)+(b>>>0&255)+(m>>>0&255)+(x>>>0&255)>>>2,S=2+(g>>>8&255)+(b>>>8&255)+(m>>>8&255)+(x>>>8&255)>>>2,w=2+(g>>>16&255)+(b>>>16&255)+(m>>>16&255)+(x>>>16&255)>>>2,k=2+(g>>>24&255)+(b>>>24&255)+(m>>>24&255)+(x>>>24&255)>>>2;f[c]=k<<24|w<<16|S<<8|M}return{rect:l,Ww:h}},v.ajD=function(t,i,e){for(var r=i.Z,n=i.h,a=2*Math.floor(r/3),s=2*Math.floor(n/3),l=new et(i.x,i.y,a,s),h=e&&e.length==a*s*4?e:v.R(a*s*4),o=new Uint32Array(t.buffer),f=new Uint32Array(h.buffer),u=0;u>>1)*r+(p*3>>>1),g=o[d],b=o[d+1],m=o[d+2],x=o[d+r],M=o[d+1+r],S=o[d+2+r],w=o[d+r+r],k=o[d+1+r+r],T=o[d+2+r+r],L=g>>>24<<2,O=(g>>>16&255)*L,E=(g>>>8&255)*L,D=(g&255)*L,B=b>>>24<<1,I=(b>>>16&255)*B,N=(b>>>8&255)*B,V=(b&255)*B,j=m>>>24<<2,R=(m>>>16&255)*j,G=(m>>>8&255)*j,Z=(m&255)*j,_=x>>>24<<1,U=(x>>>16&255)*_,Y=(x>>>8&255)*_,$=(x&255)*_,P=M>>>24,tt=(M>>>16&255)*P,X=(M>>>8&255)*P,ht=(M&255)*P,F=S>>>24<<1,J=(S>>>16&255)*F,Q=(S>>>8&255)*F,rt=(S&255)*F,it=w>>>24<<2,nt=(w>>>16&255)*it,ot=(w>>>8&255)*it,pt=(w&255)*it,yt=k>>>24<<1,ct=(k>>>16&255)*yt,vt=(k>>>8&255)*yt,wt=(k&255)*yt,Mt=T>>>24<<2,Ct=(T>>>16&255)*Mt,gt=(T>>>8&255)*Mt,bt=(T&255)*Mt,xt=L+B+_+P,Dt=j+B+F+P,Ot=it+yt+_+P,kt=Mt+yt+F+P,mt=xt==0?0:1/xt,It=Dt==0?0:1/Dt,Bt=Ot==0?0:1/Ot,Ut=kt==0?0:1/kt,qt=0,Gt=0,zt=0,Nt=0;qt=~~(.5+(D+V+$+ht)*mt),Gt=~~(.5+(E+N+Y+X)*mt),zt=~~(.5+(O+I+U+tt)*mt),Nt=~~(.5+xt*(1/9)),f[c]=Nt<<24|zt<<16|Gt<<8|qt,qt=~~(.5+(Z+V+rt+ht)*It),Gt=~~(.5+(G+N+Q+X)*It),zt=~~(.5+(R+I+J+tt)*It),Nt=~~(.5+Dt*(1/9)),f[c+1]=Nt<<24|zt<<16|Gt<<8|qt,qt=~~(.5+(pt+wt+$+ht)*Bt),Gt=~~(.5+(ot+vt+Y+X)*Bt),zt=~~(.5+(nt+ct+U+tt)*Bt),Nt=~~(.5+Ot*(1/9)),f[c+a]=Nt<<24|zt<<16|Gt<<8|qt,qt=~~(.5+(bt+wt+rt+ht)*Ut),Gt=~~(.5+(gt+vt+Q+X)*Ut),zt=~~(.5+(Ct+ct+J+tt)*Ut),Nt=~~(.5+kt*(1/9)),f[c+a+1]=Nt<<24|zt<<16|Gt<<8|qt}return{rect:l,Ww:h}},v.aaX=function(t,i,e){for(var r=i.Z,n=i.h,a=2*Math.floor(r/3),s=2*Math.floor(n/3),l=new et(i.x,i.y,a,s),h=e&&e.length==a*s*4?e:v.R(a*s*4),o=new Uint32Array(t.buffer),f=new Uint32Array(h.buffer),u=0;u>>1)*r+(p*3>>>1),g=o[d],b=o[d+1],m=o[d+2],x=o[d+r],M=o[d+1+r],S=o[d+2+r],w=o[d+r+r],k=o[d+1+r+r],T=o[d+2+r+r],L=(g>>>16&255)<<2,O=(g>>>8&255)<<2,E=(g&255)<<2,D=(b>>>16&255)<<1,B=(b>>>8&255)<<1,I=(b&255)<<1,N=(m>>>16&255)<<2,V=(m>>>8&255)<<2,j=(m&255)<<2,R=(x>>>16&255)<<1,G=(x>>>8&255)<<1,Z=(x&255)<<1,_=M>>>16&255,U=M>>>8&255,Y=M&255,$=(S>>>16&255)<<1,P=(S>>>8&255)<<1,tt=(S&255)<<1,X=(w>>>16&255)<<2,ht=(w>>>8&255)<<2,F=(w&255)<<2,J=(k>>>16&255)<<1,Q=(k>>>8&255)<<1,rt=(k&255)<<1,it=(T>>>16&255)<<2,nt=(T>>>8&255)<<2,ot=(T&255)<<2,pt=0,yt=0,ct=0;pt=~~(.5+(E+I+Z+Y)*(1/9)),yt=~~(.5+(O+B+G+U)*(1/9)),ct=~~(.5+(L+D+R+_)*(1/9)),f[c]=255<<24|ct<<16|yt<<8|pt,pt=~~(.5+(j+I+tt+Y)*(1/9)),yt=~~(.5+(V+B+P+U)*(1/9)),ct=~~(.5+(N+D+$+_)*(1/9)),f[c+1]=255<<24|ct<<16|yt<<8|pt,pt=~~(.5+(F+rt+Z+Y)*(1/9)),yt=~~(.5+(ht+Q+G+U)*(1/9)),ct=~~(.5+(X+J+R+_)*(1/9)),f[c+a]=255<<24|ct<<16|yt<<8|pt,pt=~~(.5+(ot+rt+tt+Y)*(1/9)),yt=~~(.5+(nt+Q+P+U)*(1/9)),ct=~~(.5+(it+J+$+_)*(1/9)),f[c+a+1]=255<<24|ct<<16|yt<<8|pt}return{rect:l,Ww:h}},v.Ms=function(t){var i=255,e=t.length;e-=e&31;for(var r=3;r>1,s=n>>1,l=new et(i.x,i.y,a,s);if(t==null)return{rect:l};for(var h=e&&e.length>=a*s?e:v.R(a*s),o=0;o>>2}return{rect:l,Ww:h}},v.zj=function(t,i,e){var r=i.Z,n=i.h,a=2*Math.floor(r/3),s=2*Math.floor(n/3),l=new et(i.x,i.y,a,s);if(t==null)return{rect:l};for(var h=e&&e.length>=a*s?e:v.R(a*s),o=0;o>>1)*r+(f*3>>>1),c=t[p]<<2,d=t[p+1]<<1,g=t[p+2]<<2,b=t[p+r]<<1,m=t[p+1+r],x=t[p+2+r]<<1,M=t[p+r+r]<<2,S=t[p+1+r+r]<<1,w=t[p+2+r+r]<<2;h[u]=~~(.5+(c+d+b+m)*(1/9)),h[u+1]=~~(.5+(g+d+x+m)*(1/9)),h[u+a]=~~(.5+(M+S+b+m)*(1/9)),h[u+a+1]=~~(.5+(w+S+x+m)*(1/9))}return{rect:l,Ww:h}},v.Lj=function(t,i,e,r,n){var a=i.$X(r);n&&(a=a.$X(n));for(var s=Math.max(0,a.x-i.x),l=Math.max(0,a.x-r.x),h=Math.max(0,a.y-i.y),o=Math.max(0,a.y-r.y),f=a.Z,u=a.h,p=0;p>>8)>>>8},v.round=function(t,i){i==null&&(i=128);for(var e=t.length,r=0;r>>24)*(l>>>24))<<24|v.fV((s>>>16&255)*(l>>>16&255))<<16|v.fV((s>>>8&255)*(l>>>8&255))<<8|v.fV((s&255)*(l&255))}},v.v0=function(t,i){for(var e=t.length,r=0;r>>2]},v.gJ=function(t,i){for(var e=new Uint32Array(t.buffer),r=e.length,n=0;n>8&255,h=a>>16&255,o=a>>24&255;e[n]=i[s]|i[l]<<8|i[h]<<16|i[o]<<24}},v.amA=function(t,i,e,r,n,a,s){for(var l=new Uint32Array(t.buffer),h=new Uint32Array(i.buffer),o=l.length,f=0;256<>>8&255)<>>16&255)<>>8&255)<>>16&255)<S){var w=(M-S)/(255-S);b+=w*(255-b),m+=w*(255-m),x+=w*(255-x)}else if(S==0)b=m=x=0;else{var w=M/S;b=w*b,m=w*m,x=w*x}}h[u]=b|m<<8|x<<16|p&4278190080}},v.a3Y=function(t){for(var i=new Uint32Array(256),e=0,r=0;ri[e]&&(e=r);return e},v.xw=function(t,i){var e=i.Z,r=i.h,n=0,a=0,s=0,l=0,h=0;h=0;for(var o=0;o=0;o--){for(var f=o*e,u=0;u=0;u--){for(var o=n;o=0;c--){for(var d=c*a,g=0;g=0;g--){for(var c=0;c>2);v.E4(t.buffer,i,3);var e=v.xw(i,t.rect);if(!e.Qn(t.rect)){var r=new v.R(e.M()*4);v.BP(t.buffer,t.rect,r,e),t.buffer=r,t.rect=e}},v.extend=function(t,i,e){if(!t.rect.Qh(i)){var r=t.rect.s7(i),n=v.R(r.M());e!=null&&v.set(n,e),v.Lj(t.channel,t.rect,n,r),t.rect=r,t.channel=n}},v.aao=function(t,i){if(!(i.qr()||t.rect.Qh(i))){var e=t.rect.s7(i),r=v.R(e.M()*4);v.BP(t.buffer,t.rect,r,e),t.rect=e,t.buffer=r}},v.a2_=function(t,i,e){for(var r=i.clone(),n=e.M(),a=t.s7(r);a.M()/t.M()<2&&a.M()r&&(t[e]=r),t[e+1]>r&&(t[e+1]=r),t[e+2]>r&&(t[e+2]=r)}},v.cp=function(t,i,e){if(!e.oz(t))return!1;var r=Math.floor(t.x)-e.x,n=Math.floor(t.y)-e.y,a=n*e.Z+r;return i[a]>128},v.aiC=function(t,i,e){if(!e.oz(t))return!1;var r=Math.floor(t.x)-e.x,n=Math.floor(t.y)-e.y,a=n*e.Z+r;return i[4*a+3]>128},v.AA=function(t){return v.UN.length>>1;r!=0&&t[e][0]>>1}},aaV:function(t){if(t.length==2)return t.pop();var i=t[1],e=1;t[1]=t.pop();for(var r=t.length;;){var n=e<<1,a=n+1,s=e;if(nr)throw console.log(i),"e";r=n,e=e>>>1}}},v.N={},v.N.Mw=new Float64Array(256),v.N.Rh=new Uint8Array(256*256),v.N.f3=new Uint8Array(256*256),function(){for(var t=0;t<256;t++)v.N.Mw[t]=255/t;for(var t=0;t<256;t++)for(var i=0;i<256;i++)v.N.Rh[t*256+i]=t==0?0:Math.round(i*255/t);for(var t=0;t<256;t++)for(var i=0;i<256;i++)v.N.f3[t*256+i]=Math.round(t*(255-i)/255)}(),v.N.DO=function(t,i,e,r,n,a,s,l){l==null&&(l=St.jx()),"idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(t)==-1&&(s=s*l.fill,l.fill=1,l.style=!1);var h="norm,dark,mul ,idiv,lbrn,lite,scrn,div ,lddg,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv".split(","),o="dkCl,lgCl,hue ,sat ,colr,lum ".split(","),f=v.N[t+"F"];l.Lc==null&&t=="norm"?v.N.ajM(i,e,r,n,a,s,f,l.YU?1:0):t=="diss"?v.N.ahI(i,e,r,n,a,s,f,l.YU?1:0):h.indexOf(t)!=-1?v.N.afR(i,e,r,n,a,s,f,l):o.indexOf(t)!=-1&&v.N.a3k(i,e,r,n,a,s,f,l)},v.N.a03=function(t,i,e){var r=t*e+1-e;return r<.001?0:1-Math.min(1,(1-i)/r)},v.N.adS=function(t,i,e){return t*e==1?1:Math.min(1,i/(1-t*e))},v.N.fY=function(t){return t<=.25?((16*t-12)*t+4)*t:Math.sqrt(t)},v.N.normF=function(t,i,e){return t},v.N.darkF=function(t,i,e){return Math.min(t,i)},v.N["mul F"]=function(t,i,e){return t*i},v.N.idivF=function(t,i,e){var r=t*e+1-e;return i==1?1:1-i>=r?0:1-(1-i)/r},v.N.lbrnF=function(t,i,e){return Math.max(0,t*e+i-e)},v.N.dkClF=function(t,i,e){var r=v.ec(t)=1-t?1:i/(1-t)},v.N.lddgF=function(t,i,e){return t*=e,Math.min(1,t+i)},v.N.lgClF=function(t,i,e){var r=v.ec(t)>v.ec(i)?t:i;return e.U=r.U,e.S=r.S,e.i=r.i,e},v.N.overF=function(t,i,e){return v.N.hLitF(i,t,e)},v.N.sLitF=function(t,i,e){return t<=.5?i-(1-2*t)*i*(1-i):i+(2*t-1)*(v.N.fY(i)-i)},v.N.hLitF=function(t,i,e){return t<=.5?v.N["mul F"](2*t,i,e):v.N.scrnF(2*t-1,i,e)},v.N.vLitF=function(t,i,e){return t<=.5?v.N.a03(2*t,i,e):v.N.adS(2*t-1,i,e)},v.N.lLitF=function(t,i,e){return t<=.5?v.N.lbrnF(2*t,i,e):v.N.lddgF(2*t-1,i,e)},v.N.pLitF=function(t,i,e){return t<=.5?v.N.darkF(2*t,i,e):v.N.liteF(2*t-1,i,e)},v.N.hMixF=function(t,i,e){return e>.99?t+i<1?0:1:Math.min(1,Math.max(0,(i+t*e-e)/(1-e+1e-6)))},v.N.diffF=function(t,i,e){return t*=e,Math.abs(t-i)},v.N.smudF=function(t,i,e){return t+i-2*t*i},v.N.fsubF=function(t,i,e){return Math.max(i-t,0)},v.N.fdivF=function(t,i,e){return Math.min(i/t,1)},v.N["hue F"]=function(t,i,e){v.i8(t,v.TO(i),e),v.Am(e,v.ec(i),e)},v.N["sat F"]=function(t,i,e){v.i8(i,v.TO(t),e),v.Am(e,v.ec(i),e)},v.N.colrF=function(t,i,e){v.Am(t,v.ec(i),e)},v.N["lum F"]=function(t,i,e){v.Am(i,v.ec(t),e)},v.N.ajM=function(t,i,e,r,n,a,s,l){for(var h=i.$X(r).$X(n),o=Math.max(0,h.x-i.x),f=Math.max(0,h.x-r.x),u=Math.max(0,h.y-i.y),p=Math.max(0,h.y-r.y),c=h.Z,d=h.h,g=i.Z,b=r.Z,m=v.N.Rh,x=v.N.f3,M=new Uint32Array(t.buffer),S=new Uint32Array(e.buffer),w=0;w>>24!=0){if(O>>>24==255&&a==1&&l==0){S[T+L]=M[k+L];continue}var D=S[T+L],B=255*a&255;l==0&&(B=(O>>>24)*a&255,E=D>>>24);var I=x[E<<8|B],N=B+I,V=O&255,j=O>>>8&255,R=O>>>16&255,G=D&255,Z=D>>>8&255,_=D>>>16&255;S[T+L]=l*(D>>>24)+(1-l)*N<<24|m[N<<8|v.fV(R*B+_*I)]<<16|m[N<<8|v.fV(j*B+Z*I)]<<8|m[N<<8|v.fV(V*B+G*I)]}}},v.N.a1d=function(t,i,e,r,n,a){for(var s=i.$X(r).$X(n),l=Math.max(0,s.x-i.x),h=Math.max(0,s.x-r.x),o=Math.max(0,s.y-i.y),f=Math.max(0,s.y-r.y),u=s.Z,p=s.h,c=i.Z,d=r.Z,g=v.N.Rh,b=v.N.f3,m=new Uint32Array(t.buffer),x=new Uint32Array(e.buffer),M=Math.floor(Math.random()*16777215),S=0,w=0;w>>24!=0){if(O>>24==255&&a==1){x[T+L]=O;continue}var E=x[T+L],D=(O>>>24)*a*(1/255),B=(E>>>24)*(1/255),I=B*(1-D),N=D+I,V=O&255,j=O>>>8&255,R=O>>>16&255,G=E&255,Z=E>>>8&255,_=E>>>16&255;S>>>=8,(L&3)==0&&(S=v.N.eT(T+L+M));var U=N==0?0:1/N,Y=Math.floor(N*(256*255))+(S&255)>>>8,$=Math.floor((R*D+_*I)*U+.5),P=Math.floor((j*D+Z*I)*U+.5),tt=Math.floor((V*D+G*I)*U+.5);x[T+L]=Y<<24|$<<16|P<<8|tt}}},v.N.XM=function(t,i,e,r,n,a,s,l){var h=v.ou(t,i,e),o=v.ou(r,n,a),f=Math.min,u=v.N.a1v,p=u(h,l,0);p=f(p,u(t,l,8)),p=f(p,u(i,l,16)),p=f(p,u(e,l,24));var c=u(o,l,4);c=f(c,u(r,l,12)),c=f(c,u(n,l,20)),c=f(c,u(a,l,28)),c=Math.max(c,1-s);var d=Math.min(p,c);return d<0?0:d>1?1:d},v.N.a1v=function(t,i,e){return Math.min((t-i[e])*i[e+1],(t-i[e+3])*i[e+2])},v.N.afR=function(t,i,e,r,n,a,s,l){for(var h=1/255,o=h*a,f=l.YU?1:0,u=l.fill,p=l.style,c=i.$X(r).$X(n),d=Math.max(0,c.x-i.x),g=Math.max(0,c.x-r.x),b=Math.max(0,c.y-i.y),m=Math.max(0,c.y-r.y),x=c.Z,M=c.h,S=i.Z,w=r.Z,k=new Uint32Array(t.buffer),T=new Uint32Array(e.buffer),L=0;L>>24!=0){var N=T[E],V=(B&255)*h,j=(B>>>8&255)*h,R=(B>>>16&255)*h,G=(N&255)*h,Z=(N>>>8&255)*h,_=(N>>>16&255)*h,U=a;f==0&&(U=(B>>>24)*o,I=(N>>>24)*h),l.Lc&&(U*=v.N.XM(V,j,R,G,Z,_,I,l.Lc));var Y=I*(1-U),$=U+Y,P=$==0?0:255/$,tt=p?1:U,X=((1-I)*U*V+(1-tt)*I*G+tt*I*s(V,G,(1+U-tt)*u))*P,ht=((1-I)*U*j+(1-tt)*I*Z+tt*I*s(j,Z,(1+U-tt)*u))*P,F=((1-I)*U*R+(1-tt)*I*_+tt*I*s(R,_,(1+U-tt)*u))*P;$=U*u+I*(1-U*u);var J=~~($*255+.5);T[E]=f*(N>>>24)+(1-f)*J<<24|F<<16|ht<<8|X}}},v.N.a3k=function(t,i,e,r,n,a,s,l){for(var h=1/255,o=h*a,f=l.YU?1:0,u=i.$X(r).$X(n),p=Math.max(0,u.x-i.x),c=Math.max(0,u.x-r.x),d=Math.max(0,u.y-i.y),g=Math.max(0,u.y-r.y),b=u.Z,m=u.h,x=new Uint32Array(t.buffer),M=new Uint32Array(e.buffer),S={U:0,S:0,i:0},w={U:0,S:0,i:0},k={U:0,S:0,i:0},T=0;T>>8&255)*h,V=(D>>>16&255)*h,j=(B&255)*h,R=(B>>>8&255)*h,G=(B>>>16&255)*h,Z=a,_=1;f==0&&(Z=(D>>>24)*o,_=(B>>>24)*h),l.Lc&&(Z*=v.N.XM(I,N,V,j,R,G,_,l.Lc));var U=_*(1-Z),Y=Z+U,$=255/Y;S.U=I,S.S=N,S.i=V,w.U=j,w.S=R,w.i=G,s(S,w,k);var P=(((1-_)*I+_*k.U)*Z+j*U)*$,tt=(((1-_)*N+_*k.S)*Z+R*U)*$,X=(((1-_)*V+_*k.i)*Z+G*U)*$,ht=f*(B>>>24)+(1-f)*Math.round(Y*255);M[O]=ht<<24|X<<16|tt<<8|P}},v.N.kY=function(t){return t=t^61^t>>>16,t=t+(t<<3),t=t^t>>>4,t=t*668265261,t=t^t>>15,(t&16777215)*(1/16777215)},v.N.eT=function(t){return t=t^61^t>>>16,t=t+(t<<3),t=t^t>>>4,t=t*668265261,t=t^t>>>15,t},v.N.Df=function(t){this.Og=t},v.N.Df.prototype.get=function(){var t=this.Og=v.N.eT(this.Og);return(t&16777215)*(1/16777215)},v.N.ahI=function(t,i,e,r,n,a,s,l){for(var h=1/255,o=h*a,f=Math.round(a*(256*256*256/255)),u=i.$X(r).$X(n),p=Math.max(0,u.x-i.x),c=Math.max(0,u.x-r.x),d=Math.max(0,u.y-i.y),g=Math.max(0,u.y-r.y),b=u.Z,m=u.h,x=new Uint32Array(t.buffer),M=new Uint32Array(e.buffer),S=0;S>>24);(v.N.eT(w)&16777215)>=E*f||(M[k]=L&16777215|l*(O>>>24)+(1-l)*255<<24)}},v.N.aby=function(t,i,e){for(var r=0;r>>2];if(n!=0){var a=n*(1/255),s=1/a,l=i[r],h=i[r+1],o=i[r+2],f=t[r],u=t[r+1],p=t[r+2];i[r]=Math.min(255,Math.max(0,Math.round((l-(1-a)*f)*s))),i[r+1]=Math.min(255,Math.max(0,Math.round((h-(1-a)*u)*s))),i[r+2]=Math.min(255,Math.max(0,Math.round((o-(1-a)*p)*s))),i[r+3]=255}}},v.N.$e=function(t,i,e,r,n,a,s,l,h,o,f){o==null&&(o=!1),f==null&&(f=[1,1,1]);var u=255<<24|f[2]*16711680|f[1]*65280|f[0]*255,p=~u;if(n&&!i.Qn(a)){var c=v.R(i.M()*4);v.set(c,s),v.Lj(n,a,c,i),n=c,a=i}o?n==null?v.N.acJ(t,i,e,r,n,l,h,u,p):v.N.ai1(t,i,e,r,n,l,h):n==null?v.N.aky(t,i,e,r,n,l,h,u,p):v.N.ahn(t,i,e,r,n,l,h)},v.N.aky=function(t,i,e,r,n,a,s,l,h){for(var o=1/255,f=i.$X(r).$X(a),u=Math.max(0,f.x-i.x),p=Math.max(0,f.x-r.x),c=Math.max(0,f.y-i.y),d=Math.max(0,f.y-r.y),g=f.Z,b=f.h,m=new Uint32Array(t.buffer),x=new Uint32Array(e.buffer),M=v.N.Rh,S=s*255&255,w=0;w>>24,B=E>>>24,I=v.fV(S*D+(255-S)*B),N=v.fV(D*S),V=v.fV(B*(255-S)),j=O&255,R=O>>>8&255,G=O>>>16&255,Z=E&255,_=E>>>8&255,U=E>>>16&255,Y=N*j+Z*V,$=N*R+_*V,P=N*G+U*V;Y=M[I<<8|v.fV(Y)],$=M[I<<8|v.fV($)],P=M[I<<8|v.fV(P)];var tt=I<<24|P<<16|$<<8|Y;x[T]=h&E|l&tt}},v.N.acJ=function(t,i,e,r,n,a,s,l,h){for(var o=1/255,f=i.$X(r).$X(a),u=Math.max(0,f.x-i.x),p=Math.max(0,f.x-r.x),c=Math.max(0,f.y-i.y),d=Math.max(0,f.y-r.y),g=f.Z,b=f.h,m=new Uint32Array(t.buffer),x=new Uint32Array(e.buffer),M=v.N.Rh,S=s*16777215&16777215,w=0;w>>24,E=L>>>24,D=v.fV(k*O+(255-k)*E),B=v.fV(O*k),I=v.fV(E*(255-k)),N=T&255,V=T>>>8&255,j=T>>>16&255,R=L&255,G=L>>>8&255,Z=L>>>16&255,_=m[D<<8|v.fV(B*N+R*I)],U=m[D<<8|v.fV(B*V+G*I)],Y=m[D<<8|v.fV(B*j+Z*I)];b[S]=D<<24|Y<<16|U<<8|_}}},v.N.ai1=function(t,i,e,r,n,a,s){for(var l=1/255,h=i.$X(r).$X(a),o=Math.max(0,h.x-i.x),f=Math.max(0,h.x-r.x),u=Math.max(0,h.y-i.y),p=Math.max(0,h.y-r.y),c=h.Z,d=h.h,g=new Uint32Array(t.buffer),b=new Uint32Array(e.buffer),m=v.N.Rh,x=Math.round(s*257),M=0;M>>24,D=O>>>24,B=E*T*(1/255),I=D*(255-T)*(1/255),N=L&255,V=L>>>8&255,j=L>>>16&255,R=O&255,G=O>>>8&255,Z=O>>>16&255,_=v.N.eT(w+k+m),U=Math.floor((B+I)*256+.5)+(_>>>0&255)>>>8,Y=U==0?0:256/(B+I),$=N*B+R*I,P=V*B+G*I,tt=j*B+Z*I,X=Math.floor($*Y+.5)+(_>>>8&255)>>>8,ht=Math.floor(P*Y+.5)+(_>>>16&255)>>>8,F=Math.floor(tt*Y+.5)+(_>>>21&248)>>>8;b[w+k]=U<<24|F<<16|ht<<8|X}}},v.N.a9n=function(t){return Math.floor(t+Math.random())},v.N.fG=function(t,i,e,r,n,a,s){for(var l=1/255,h=i.$X(r).$X(a),o=Math.max(0,h.x-i.x),f=Math.max(0,h.x-r.x),u=Math.max(0,h.y-i.y),p=Math.max(0,h.y-r.y),c=h.Z,d=h.h,g=0;g1+l)f=v.QN.wQ(k,o,$,P),g=Math.sqrt(f),m--,x++;else{f=p=d=1e9;for(var Z=0;Z=U)){var rt=v.QN.wQ(k,Q,$,P);rt>1),v.ni.Mb(i,s,e,r,a[1]-1>>1),v.ni.Mb(i,s,e,r,a[2]-1>>1)},v.ni.a46=function(t,i,e,r,n){var a=v.ni.hT(n,2),s=v.ni.Xt(e*r);v.Hk(t,i),v.ni.Mb(i,s,e,r,a[0]-1>>1),v.ni.Mb(i,s,e,r,a[1]-1>>1)},v.ni.a41=function(t,i,e,r){var n=v.ni.hT(r,3),a=v.ni.Xt(i*e*4);v.ni.Da(t,a,i,e,n[0]-1>>1),v.ni.Da(t,a,i,e,n[1]-1>>1),v.ni.Da(t,a,i,e,n[2]-1>>1)},v.ni.agE=function(t,i,e,r,n,a){a==null&&(a=3);var s=v.ni.hT(n,a),l=v.ni.YM(e*r);v.Hk(t,i);for(var h=0;h>>24;k+=(G&255)*Z,T+=(G>>>8&255)*Z,L+=(G>>>16&255)*Z,O+=Z}}if(O!=0){var _=1/O;k=~~(k*_+.5),T=~~(T*_+.5),L=~~(L*_+.5),O=~~(O*c*c+.5),n[E]=O<<24|L<<16|T<<8|k}}}},v.ea.EZ=new Float64Array(5*20),v.ea.a1p=new Uint32Array(5*5*20),v.ea.cp=function(t,i,e,r,n,a,s){for(var l=v.ea.EZ,h=v.ea.a1p,o=0,f=0,u=0;u.05;w++)v.ea.zh(h,0,m),v.ea.jb(h,4,b),v.ea.Gm(t,h),o=h[8],f=h[9],v.ea.jb(h,0,m),v.ea.zh(h,4,b),v.ea.Gm(t,h),u=h[8],p=h[9],c=1/(o*p-f*u),d=(x-i)*c,g=(M-e)*c,b+=-p*d+u*g,m+=+f*d-o*g,v.ea.sU(t,b,m,h),x=h[8],M=h[9],S=(x-i)*(x-i)+(M-e)*(M-e);return a&&(b<0||b>1||m<0||m>1||S>.25)?l:(s[l]=b,s[l+1]=m,s[l+2]=x,s[l+3]=M,s[l+4]=o*p-f*u,l+5)},v.ea.apply=function(t,i,e){for(var r=e.x,n=e.y,a=1/e.Z,s=1/e.h,l=v.ea.e$,h=0;hf||(i[u+u+18]==0?m=s.length)throw console.log("Buffer not long enough"),"e";if(a==v.ea.G.fY||Y<2)return h;var $=v.ea.G.IN(t,!0),P=v.D.nP($[0]),tt=v.D.nP($[1]),X=v.ea.G.IN(t,!1),ht=v.D.nP(X[0]),F=v.D.nP(X[1]);P.Z+P.h+tt.Z+tt.ha&&(a=r[n]),n++}for(var f=i*e,u=a==0?0:1/a,n=0;n=0?0:1,L=a[w]*(k?1:p),O=1,E=s[2*w+1],D=-s[2*w];if(!(m==0&&x==0||E==0&&D==0)){var B=f[M],I=u[M];m*f[M]+x*u[M]<0&&(B=-B,I=-I),k&&(B*=p,I*=p);var N=m*B+x*I,V=E*B+D*I,j=2/(3*Math.PI)*(h[Math.floor((.5+.5*N)*(l-1))]+h[Math.floor((.5+.5*V)*(l-1))]);O=j}var R=Math.round(20*(.43*T+.43*O+.14*L));c[S]=Math.max(1,Math.min(255,R))}}return console.log(c),c},v.Pn.akX=function(t,i){var e=new Int32Array(t*i*8),r=e,n=0,a=0;r.fill(-1);for(var s=0;s0&&l>0&&(r[a+0]=n-t-1),s>0&&(r[a+1]=n-t),s>0&&l0&&(r[a+6]=n+t-1),l>0&&(r[a+7]=n-1),n++,a+=8;return e},v.Ai={},v.Ai.afg=function(t,i){for(var e=t.slice(0),r=0;r>>1,l=s,h=e-s,o=0;o>>1,l=s,h=r-s,o=l;o>>1,o=new Uint32Array(t.buffer),i=new Uint8ClampedArray(i.buffer),f=0;f>>8&255)*x,d+=(w>>>16&255)*x,g+=(w>>>24&255)*x}}s&&(p<0&&(p=-p),c<0&&(c=-c),d<0&&(d=-d),g<0&&(g=-g));var k=f*e+u<<2;i[k]=~~(.5+p),i[k+1]=~~(.5+c),i[k+2]=~~(.5+d),i[k+3]=255-a&i[k+3]|a&~~(.5+g)}},v.Ai.a9E=function(){function t(s,l,h,o,f,u,p){if(f==0){l.set(s);return}var c=v.R(h*o),d=v.R(h*o);if(v.Ms(s)){var g=[v.Ai.sH,v.Ai.Rl],b=g.indexOf(u),m=b!=-1?g[1-b]:u;i(s,l,h,o,f,u,p),v.E4(s,c,3),v.Ai.wE(c,d,h,o,f,m,p),v.Oy(d,l,3)}else for(var x=0;x<3;x++)v.E4(s,c,x),v.Ai.wE(c,d,h,o,f,u,p),v.Oy(d,l,x)}function i(s,l,h,o,f,u,p){for(var c=0,d=new ArrayBuffer(512*4*3),g=[new Int32Array(d,0),new Int32Array(d,2048),new Int32Array(d,2*2048)],b=1+2*Math.round(Math.sqrt(f)),m=b>>>1,x=new Array(b),M=new Array(b),S=0;Sh-f-b-1){T.fill(0);for(var O=Math.max(L-f,0),E=Math.min(h,L+f+1),D=E-O,B=0;B=0&&r(T,s,I*h+O,I*h+E,-1);var V=B*h+L<<2;if(c=T[300],c!=0)for(var S=0;S<3;S++)l[V+S]=w(g[S],s[V+S],c,p)}}else{for(var S=0;S=0&&e(M,s,I*h+O,I*h+E,-1,m),N>>4]+=o}return t}(),v.Ai.wE=function(){function t(u,p,c,d,g,b,m){if(g==0){p.set(u);return}g<=80?i(u,p,c,d,g,b,m):a(u,p,c,d,g,b,m)}function i(u,p,c,d,g,b,m){for(var x=0,M=new Int32Array(512),S=1+2*Math.round(Math.sqrt(g)),w=S>>>1,k=new Array(S),T=0;Tc-g-S-1){M.fill(0),x=0;for(var D=Math.max(E-g,0),B=Math.min(c,E+g+1),I=B-D,N=0;N=0&&(x-=I,r(M,u,V*c+D,V*c+B,-1)),j=0&&(x-=I,e(k,u,V*c+D,V*c+B,-1,w)),j>>4]+=d}function a(u,p,c,d,g,b,m){for(var x=0,M=new Int32Array(512),S=new Int32Array(1*c),w=new Int32Array(512*c),k=Math.min(g,c),T=Math.min(g,d),L=b[0],O=0;O=0&&s(w,S,u,c,O-g-1,-1),M.fill(0),x=0;for(var E=0;E=0&&S[D]!=0&&(x-=S[D],h(M,w,D)),B0;)n--;for(n=(n<<4)+15;t[n]==0&&n>0;)n--;return n},function(t,i,e,r,n){for(var a=15;t[256|a]+i[256|a]==0&&a>0;)a--;for(a=(a<<4)+15;t[a]+i[a]==0&&a>0;)a--;return a}],v.Ai.sH=[function(t,i,e,r){for(var n=0;t[256|n]==0&&n<15;)n++;for(n=n<<4;t[n]==0&&n<255;)n++;return n},function(t,i,e,r,n){for(var a=0;t[256|a]+i[256|a]==0&&a<15;)a++;for(a=a<<4;t[a]+i[a]==0&&a<255;)a++;return a}],v.Ai.Rx=.5,v.Ai.lI=[function(t,i,e,r){for(var n=~~(.5+v.Ai.Rx*e),a=0,s=256;a+t[s]<=n;)a+=t[s++];for(s=s-256<<4;a<=n;)a+=t[s++];return s-1},function(t,i,e,r,n){for(var a=~~(.5+v.Ai.Rx*r),s=0,l=256;s+t[l]+i[l]<=a;)s+=t[l]+i[l],l++;for(l=l-256<<4;s<=a;)s+=t[l]+i[l],l++;return l-1}],v.Ai.Nz=[function(t,i,e,r){for(var n=r[0],a=0,s=0,l=Math.max(0,i-n),h=Math.min(256,i+n+1);l1e-9&&(f=!1)}var g=v.P.VP(t),b=v.P.Cx(t)&&g,m=b?1:0;if(s||f&&u==e+r&&g){v.P.amr(o,i,e,r,n,a,l,g,h);return}var x=a.Z,M=a.h,S=new Float64Array(2);n=new Uint32Array(n.buffer),i=new Uint32Array(i.buffer);for(var w=0;we+1||U<-1||U>r+1;if(l)_=Math.max(.001,Math.min(e-1,_)),U=Math.max(.001,Math.min(r-1,U));else if(Y)continue;var $=p;if(!g){var P=0,tt=0;E=t,L=G+1/e,O=Z,D=1/(E[6]*L+E[7]*O+1),P=(E[0]*L+E[1]*O+E[2])*D-j,tt=(E[3]*L+E[4]*O+E[5])*D-R;var X=P*P+tt*tt;L=G,O=Z+1/r,D=1/(E[6]*L+E[7]*O+1),P=(E[0]*L+E[1]*O+E[2])*D-j,tt=(E[3]*L+E[4]*O+E[5])*D-R;var ht=P*P+tt*tt;$=1/Math.sqrt(Math.max(X,ht))}if($<1.1){v.P.nK(_,U,i,e,r,n,T,m);continue}var F=Math.round($*2.3);!l&&(_<.6||_>e-.6||U<.6||U>r-.6)&&(F=Math.max(F,5)),l&&Y&&(F=1);var J=1/F,Q=a.x+k,rt=a.y+w;E=o;for(var c=0;c=1||U<0||U>=1)continue;_=Math.floor(_*e),U=Math.floor(U*r);var nt=U*e+_,ot=i[nt],pt=ot>>>24;B+=(ot&255)*pt,I+=(ot>>>8&255)*pt,N+=(ot>>>16&255)*pt,V+=pt}if(V!=0){var yt=1/V;B=~~(B*yt+.5),I=~~(I*yt+.5),N=~~(N*yt+.5),V=~~(V*J*J+.5),n[T]=V<<24|N<<16|I<<8|B}}},v.P.amr=function(t,i,e,r,n,a,s,l,h){if(l&&!s&&a.M()>4e6&&h){v.P.aii(t,i,e,r,n,a,s,l,h);return}var o=a.x+a.Z,f=a.y+a.h,u=0,p=new Uint32Array(n.buffer),c=new Uint32Array(i.buffer),d=t[0]*e,g=t[1]*e,b=t[2]*e,m=t[3]*r,x=t[4]*r,M=t[5]*r,S=t[6],w=t[7];if(l&&!s)for(var k=a.y+.5;k>>2<<2)-1e-9,O=-.1+(w>>>1<<1)-1e-9,E=~~e,D=p==0?0:1/p,B=g==0?0:1/g,I=0;I0?(j=Math.max(j,-N*D),R=Math.min(R,(e-N)*D)):(R=Math.min(R,-N*D),j=Math.max(j,(e-N)*D))),g==0||(B>0?(j=Math.max(j,-V*B),R=Math.min(R,(r-V)*B)):(R=Math.min(R,-V*B),j=Math.max(j,(r-V)*B))),R<0&&(R=0),j>R&&(j=R),j=Math.ceil(j),R=~~R,u=~~(I*S);for(var G=0;G=0&&d=0&&d+1=0&&g=0&&g+1r-1?r-1:d,k=d<-1?0:d>r-2?r-1:d+1,T=g<0?0:g>n-1?n-1:g,L=g<-1?0:g>n-2?n-1:g+1;f=e[T*r+w],u=e[T*r+k],p=e[L*r+w],c=e[L*r+k]}else{var w=(d+50*r)%r,k=(d+50*r)%r,T=(g+50*n)%n,L=(g+50*n)%n;f=e[T*r+w],u=e[T*r+k],p=e[L*r+w],c=e[L*r+k]}var O=t-d,E=i-g,D=(1-E)*(1-O)*(f>>>24),B=(1-E)*O*(u>>>24),I=E*(1-O)*(p>>>24),N=E*O*(c>>>24),V=D+B+I+N,j=D*(f&255)+B*(u&255)+I*(p&255)+N*(c&255),R=D*(f>>>8&255)+B*(u>>>8&255)+I*(p>>>8&255)+N*(c>>>8&255),G=D*(f>>>16&255)+B*(u>>>16&255)+I*(p>>>16&255)+N*(c>>>16&255);if(V==0)a[s]=0;else{var Z=1/V;j=~~(j*Z+.5),R=~~(R*Z+.5),G=~~(G*Z+.5),V=~~(V+.5),a[s]=V<<24|G<<16|R<<8|j}},v.P.eU=function(t,i,e,r,n,a){var s=t-.499999,l=i-.499999,h=~~s,o=~~l,f=s-h,u=l-o,p=(1-u)*(1-f),c=(1-u)*f,d=u*(1-f),g=u*f,b=o*r+h<<2,m=(o+1)*r+h<<2,x=p*e[b]+c*e[b+4]+d*e[m]+g*e[m+4],M=p*e[b+1]+c*e[b+5]+d*e[m+1]+g*e[m+5],S=p*e[b+2]+c*e[b+6]+d*e[m+2]+g*e[m+6],w=p*e[b+3]+c*e[b+7]+d*e[m+3]+g*e[m+7];a[0]=x,a[1]=M,a[2]=S,a[3]=w},v.P.x$=function(t,i,e,r,n,a,s,l,h,o,f,u){for(var p=new Uint32Array(t.buffer),c=new Uint32Array(r.buffer),d=(1+2*o)/n,g=[],b=[],m=0;mi-1?i-1:w)),L=~~(.5+(k<0?0:k>e-1?e-1:k));c[M*n+m]=p[L*i+T]}},v.P.A9=function(t,i,e,r,n,a,s,l,h,o,f,u){for(var p=new Uint32Array(t.buffer),c=new Uint32Array(r.buffer),d=1/u,g=[],b=e*4,m=1/b,x=0;xi?i:e},akR:function(t,i,e,r,n,a,s,l){for(var h=e[0],o=e[1],f=e[2],u=e[3],p=r.Z,c=r.h,d=new Float64Array(p*4+8),g=new Float64Array(p*4+8),b=0,m=0;b>1,T=f.Yi.h-e.h>>1,L=f.Yi.Z,O=-.6*w,E=(-.6+.4)*w,D=(-.6+2*.4)*w,B=(-.6+3*.4)*w,I=0,N=0;I=1){Y=(U<=0?0:c)<<2,i[N]=m[Y],i[N+1]=m[Y+1],i[N+2]=m[Y+2],i[N+3]=m[Y+3];continue}Y=Math.max(0,Math.min(c-1,Math.round((U+O)*c)))<<2,R+=m[Y],G+=m[Y+1],Z+=m[Y+2],j+=m[Y+3],Y=Math.max(0,Math.min(c-1,Math.round((U+E)*c)))<<2,R+=m[Y],G+=m[Y+1],Z+=m[Y+2],j+=m[Y+3],Y=Math.max(0,Math.min(c-1,Math.round((U+D)*c)))<<2,R+=m[Y],G+=m[Y+1],Z+=m[Y+2],j+=m[Y+3],Y=Math.max(0,Math.min(c-1,Math.round((U+B)*c)))<<2,R+=m[Y],G+=m[Y+1],Z+=m[Y+2],j+=m[Y+3],i[N]=R>>>2,i[N+1]=G>>>2,i[N+2]=Z>>>2,i[N+3]=j>>>2}}},v.j.j0=function(t,i,e){for(var r=[],n=0;n>16&255,S:i>>8&255,i:i&255}:t[n].v.Type.v.Clry=="BckC"?a={U:e>>16&255,S:e>>8&255,i:e&255}:a=v.j.T6(t[n].v.Clr.v),r.push(a)}return r},v.j.T6=function(t){var i,e=t.classID;if(e=="RGBC")i={U:t.Rd.v,S:t.Grn.v,i:t.Bl.v};else if(e=="HSBC")i=v.ul(t.H.v.val/360,t.Strt.v/100,t.Brgh.v/100),i.U*=255,i.S*=255,i.i*=255;else if(e=="CMYC"){var r=100-t.Cyn.v,n=100-t.Mgnt.v,a=100-t.Ylw.v,s=100-t.Blck.v,l=255*r*s*1e-4,h=255*(.2*r+.8*n)*s*1e-4,o=255*(.2*n+.8*a)*s*1e-4;i={U:l,S:h,i:o}}else e=="Grsc"?i={U:255-t.Gry.v,S:255-t.Gry.v,i:255-t.Gry.v}:e=="LbCl"?i=v.qL(t.Lmnc.v,t.A.v,t.B.v):console.log(t);return isNaN(i.U)&&(i.U=i.S=i.i=0),i},v.j.$H=function(t){return{classID:"RGBC",Rd:{t:"doub",v:t.U},Grn:{t:"doub",v:t.S},Bl:{t:"doub",v:t.i}}},v.j.a9e=function(t,i,e,r){for(var n=[],a=1/(e-0),s=0;sL&&(bt[mt]=255-(255-Q)*kt)}b&&console.log("init",Date.now()-g),g=Date.now(),n*m>0&&(xt.set(gt),v.ni.FY(xt,gt,new et(0,0,e,r),m)),l*x>0&&(xt.set(bt),v.ni.FY(xt,bt,new et(0,0,e,r),x)),b&&console.log("blur",Date.now()-g),g=Date.now();for(var Bt=v.R(256),Ut=v.R(256),mt=0;mt<256;mt++){var qt=mt*(1/255),Gt=0;Gt=(1-Math.pow(1-qt,O))*255,Bt[mt]=Math.max(0,Math.min(255,~~(Gt+.5))),Gt=Math.pow(qt,E)*255,Ut[mt]=Math.max(0,Math.min(255,~~(Gt+.5)))}for(var zt=new Uint8ClampedArray(i.buffer),Nt=new Float32Array(32768),mt=0;mt<32768;mt++)Ct=Math.sqrt(mt)*(1/128),Mt>1?Ct=(1-Ct)*(Mt-1)+1:Ct=Ct*(Mt-1)+1,Nt[mt]=Ct;for(c=0;c400;)s++;var x=t,M=i,S=p,w=Math.floor(M.Z/s),k=Math.floor(M.h/s);t=v.R(w*k*4),v.scale.sI(x,M.Z,M.h,t,w,k,1/s),p=v.R(w*k),v.scale.OM(S,M.Z,M.h,p,w,k,1/s),v.round(p,1);var T=v.xw(p,new et(0,0,w,k));if(!T.qr()){var L=Math.round((T.Z+T.h)/2/15),O=Date.now(),E=v.R(w*k*4);v.a2K(t,E);for(var D=Int16Array,B=new D(w*k*24),I=new D(64),N=new D(64),V=new D(64),j=new D(64),R=3;R0){var R=Math.floor(P*yt),G=P-R*2*w;pt.push({x:G-w,y:R-k,C:$[P],dz:-1})}pt.sort(function(Kt,ai){return ai.C-Kt.C});for(var ct=new Int32Array(w*k),vt=[],P=0;P>2]=Bt+1}a&&console.log(Date.now()-O,"copied back"),O=Date.now(),v.w9.I4(bt,xt,gt,null,1e3),a&&console.log(Date.now()-O,"poisson smooth"),O=Date.now(),v.BP(bt,gt,r,n)}}}},v.mC.$s=function(t,i,e,r,n,a){return v.mC.jY(t+n.x,i+n.y,e,r)&&a[(i+n.y)*e+(t+n.x)]==-1?0:1e9},v.mC.a1K=function(t,i,e,r,n,a,s,l){for(var h=Date.now(),o=[-1,0,0,-1,1,0,0,1],f=1e99,u=[],p=[],c=2*(l*2*3+l*2),d=null,g=0,b=0,m=0,x=1e99;Date.now()1)if(t[E]==t[U]){var Y=0;Y+=v.mC.HH(D+I.x,B+I.y,D+k.x,B+k.y,e,r,i,a),Y+=v.mC.HH(Z+I.x,_+I.y,Z+k.x,_+k.y,e,r,i,a),u[T]=E,u[T+1]=U,p[T]=Y,p[T+1]=Y,T+=2}else{var $=n[t[U]],P=L,tt=0,X=0,ht=0;L++,tt+=v.mC.HH(D+I.x,B+I.y,D+k.x,B+k.y,e,r,i,a),tt+=v.mC.HH(Z+I.x,_+I.y,Z+k.x,_+k.y,e,r,i,a),X+=v.mC.HH(D+$.x,B+$.y,D+k.x,B+k.y,e,r,i,a),X+=v.mC.HH(Z+$.x,_+$.y,Z+k.x,_+k.y,e,r,i,a),ht+=v.mC.HH(D+$.x,B+$.y,D+I.x,B+I.y,e,r,i,a),ht+=v.mC.HH(Z+$.x,_+$.y,Z+I.x,_+I.y,e,r,i,a),u[T]=E,u[T+1]=P,p[T]=tt,p[T+1]=tt,T+=2,u[T]=U,u[T+1]=P,p[T]=X,p[T+1]=X,T+=2,u[T]=P,u[T+1]=l+1,p[T]=ht,p[T+1]=0,T+=2}}}u[T]=l,u[T+1]=E,p[T]=N,p[T+1]=0,T+=2,u[T]=E,u[T+1]=l+1,p[T]=V,p[T+1]=0,T+=2,O+=Math.min(N,V)}if(!(O>S)){var F=v.yJ.mm(L,T,l,l+1,u,p,S);if(F.xy=f)break;if(f=S,t=M,(m&3)==0){if(S*1.03>=x)break;x=S}if((m&3)==0){for(var Q=0*n.length,E=0;EQ;E++)if(t.indexOf(E)==-1){n.splice(E,1);for(var U=0;UE&&t[U]--;E--}}}return t},v.mC.a45=function(t,i,e,r,n,a){for(var s=0;s>1)},v.mC.acr=function(t,i,e,r,n,a){for(var s=[],l=0;l<60;l++){var h=v.mC.ZB(s,25,e,r,n,t,i);if(h==null)break;s.push(h)}if(s.length==0)return null;for(var o=[],l=0;l100){var h;if(h=v.mC.ZB(s,0,e,r,n,t,i,f,u),h==null)return null;s.push(h),c=0}}o.push(p)}return{top:s,yq:o}},v.mC.HH=function(t,i,e,r,n,a,s,l){if(t==e&&i==r)return 0;if(t<0||i<0||t>=n||i>=a||e<0||r<0||e>=n||r>=a||l[i*n+t]!=-1||l[r*n+e]!=-1)return 1e7;var h=i*n+t<<2,o=r*n+e<<2,f=s[h]-s[o],u=s[h+1]-s[o+1],p=s[h+2]-s[o+2];return 1+(f*f+u*u+p*p)},v.mC.jY=function(t,i,e,r){return t>=0&&t=0&&i=r)return n+1}return n},v.mC.Pk=function(t,i,e,r,n){var a=16,s=0;if(i-t<=a){e.push(99,t,i);return}v.mC.nP(t,i,r,n);for(var l=-1,h=-1,o=4;o<24;o++){var f=n[2*o+1]-n[2*o];f>h&&(h=f,l=o)}for(var u=t+i>>1,p=v.mC.acx(u,t,i,r,l),c=-1,o=t;o<=i;o++)r[24*o+l]==p&&(c==-1&&(c=o),s=o);if(t+8i-s)u=c;else if(s+1o&&(r[(s<<1)+1]=l)}},v.mC.Sy=function(t,i,e){var r=0,n=0;r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++,r=e[t+n],e[t+n]=e[i+n],e[i+n]=r,n++},v.mC.RU=function(t,i,e,r){for(var n=e+r>>>1,a=t[24*n+i];e<=r;){for(;t[24*e+i]a;)r--;e<=r&&(t[24*e+i]!=t[24*r+i]&&v.mC.Sy(e*24,r*24,t),e++,r--)}return e},v.mC.acx=function(t,i,e,r,n){for(var a=0;i!=e;)a=v.mC.RU(r,n,i,e),t>1;s>0;s>>=1,a--){for(l=0;l>a&1)!=0,h?t+=r+"["+l+"] = "+e+"["+(-s+l)+"] - "+e+"["+l+"]; ":t+=r+"["+l+"] = "+e+"["+(s+l)+"] + "+e+"["+l+"]; ";n=e,e=r,r=n,t+=` `}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>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;le&&(e=s),ln&&(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=0&&Q=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;QQ||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(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)}}pt>0&&_(J,Q+pt,Mt,Mt[3],pt,1,0,0,!0),yt>0&&_(J,Q-nt,$(rt),-rt[3],yt,1,0,0,!0)}function L(J,Q,rt,it,nt,ot){_(J,Q,rt,rt[3],Q+1,1,it,nt,ot)}function O(J,Q,rt,it,nt){nt==null&&(nt=!1);var ot=J.x,pt=J.y;it*=ht,nt||(Q=U(Q),rt=U(rt));for(var yt=l(ot-Q),ct=l(ot+Q),vt=yt;vtQ||xt<=Q-rt)break;var Dt=(Q-xt)/rt,Ot=b(300*Dt);Ot[3]=it,o((bt*i+vt)*4,Ot)}Ct=h(pt+Mt);for(var bt=Ct;bt>gt;bt--){var xt=a(vt,bt,ot,pt);if(xt>Q||xt<=Q-rt)break;var Dt=(Q-xt)/rt,Ot=b(300*Dt);Ot[3]=it,o((bt*i+vt)*4,Ot)}}}function E(J,Q){var rt=J.sk,it=J.EU,nt=Q.slice(0),ot=Q[3]*ht,pt=Math.abs(it.y-rt.y)>Math.abs(it.x-rt.x);if(pt){var yt=rt.x;rt.x=rt.y,rt.y=yt,yt=it.x,it.x=it.y,it.y=yt}if(rt.x>it.x){var yt=rt;rt=it,it=yt}var ct=it.x-rt.x,vt=it.y-rt.y,wt=ct==0?1:vt/ct,Mt=Math.round(rt.x),Ct=rt.y+wt*(Mt-rt.x),gt=m(rt.x+.5),bt=Mt,xt=~~Ct;pt?(nt[3]=ot*m(Ct)*gt,f(xt,bt,nt),nt[3]=ot*x(Ct)*gt,f(xt+1,bt,nt)):(nt[3]=ot*m(Ct)*gt,f(bt,xt,nt),nt[3]=ot*x(Ct)*gt,f(bt,xt+1,nt));var Dt=Ct-wt;Mt=Math.round(it.x),Ct=it.y+wt*(Mt-it.x),gt=x(it.x+.5);var Ot=Mt,kt=~~Ct;if(pt?(nt[3]=ot*m(Ct)*gt,f(kt,Ot,nt),nt[3]=ot*x(Ct)*gt,f(kt+1,Ot,nt)):(nt[3]=ot*m(Ct)*gt,f(Ot,kt,nt),nt[3]=ot*x(Ct)*gt,f(Ot,kt+1,nt)),pt)for(var mt=bt+1;mt<=Ot-1;mt++)nt[3]=ot*m(Dt),f(~~Dt,mt,nt),nt[3]=ot*x(Dt),f(~~Dt+1,mt,nt),Dt+=wt;else for(var mt=bt+1;mt<=Ot-1;mt++)nt[3]=ot*m(Dt),f(mt,~~Dt,nt),nt[3]=ot*x(Dt),f(mt,~~Dt+1,nt),Dt+=wt}function D(J,Q,rt,it){for(var nt=0;nt<4;nt++){var ot=J.pV(Q+1.3*nt,rt);E(ot,it,1)}}function B(J,Q){this.x=Math.round(J),this.y=Math.round(Q)}var I=Math.PI/180;B.prototype.pV=function(J,Q){J=J*I;var rt=this.x+Q*Math.cos(J),it=this.y+Q*Math.sin(J);return new N(this.x,this.y,rt,it)},B.prototype.acO=function(J,Q){J=J*I;var rt=this.ej+Q*Math.cos(J),it=this.a9M+Q*Math.sin(J);return new B(rt,it)};function N(J,Q,rt,it){this.sk=new B(J,Q),this.EU=new B(rt,it)}N.prototype.$D=function(J){var Q=J*this.sk.x+(1-J)*this.EU.x,rt=J*this.sk.y+(1-J)*this.EU.y;return new B(Q,rt)};var V=k,j=L,R=M,G=S,Z=O,_=T,U=c,Y=s,$=u,P=[];d();for(var tt=0;tta&&(n=s,a=Math.abs(t[s][r]));v.Aw.aaZ(t,r,n);for(var s=r+1;s=0;s--){if(t[s][s]==0)return 1;var o=t[s][e]/t[s][s];i[s]=o;for(var h=s-1;h>=0;h--)t[h][e]-=t[h][s]*o,t[h][s]=0}return 0},v.Aw.aaZ=function(t,i,e){var r=t[i];t[i]=t[e],t[e]=r},v.Aw.acn=function(t){for(var i=t.length,e=v.Aw.Di(i,i),r=0;r255?255:i},v.t1.transform=function(t,i,e){for(var r=v.t1.kk,n=t.U.length,a=0;a>1]=c,h[l+1]=s[u],s[u]=l+1,l+=4,h[l]=u,o[l+2>>1]=d,h[l+1]=s[p],s[p]=l+1,l+=4}return{GI:h,gQ:o,CY:s}},v.yJ.mm=function(t,i,e,r,n,a,s){var l=1,h=v.yJ.Wo(t,i,e,r,n,a),o=h.GI,f=h.gQ,u=h.CY,p=new Uint32Array(t),c=new v.yJ.jy(t),d=1,g=0;c.push(e),c.push(r);var b=new v.yJ.jy(t),m=new Uint8Array(t),x=new Uint32Array(t);m[e]=1,m[r]=2;var M=new Uint32Array(t),S=new Uint32Array(t);for(S[e]=S[r]=0,M[e]=M[r]=1;;){for(var w=-1,k=0,T=1e30;!c.SY()&&w==-1;){for(var L=c.top(),O=m[L],E=u[L]-1;E!=-1;){var D=o[E],B=m[D],I=E^O-1<<2;f[I+2>>1]!=0&&(B==0?(v.yJ.im(L,E,D,m,x,S,M),c.push(D)):B==O&&M[D]<=M[L]&&S[D]>S[L]?v.yJ.im(L,E,D,m,x,S,M):B!=O&&(w=I)),E=o[E+1]-1}if(w!=-1)break;c.pop()}if(w==-1)break;d++;for(var N=w;N!=-1;)p[k]=N,k++,N=x[o[N^4]]-1;for(var V=k>>1,j=0;j>1]);if(g+=T,g>=s)return{Rv:null,xy:g};for(var j=0;j>1]-=T,f[Z+2>>1]+=T,f[G+2>>1]==0&&m[L]==m[D]&&(m[L]==1&&(x[D]=0,b.push(D)),m[L]==2&&(x[L]=0,b.push(L)))}for(;!b.SY();){for(var L=b.pop(),O=m[L],E=u[L]-1,_=O==1?4:0,U=0,Y=0,$=1e9;E!=-1;){var D=o[E],P=E^4,I=E^_;m[D]==O&&f[I+2>>1]>0&&v.yJ.af_(D,e,r,x,o,d,M,S)+1<$&&(U=D,Y=P,$=S[D]+1),E=o[E+1]-1}if(Y!=0){v.yJ.im(U,Y,L,m,x,S,M);continue}for(E=u[L]-1;E!=-1;){var D=o[E],I=E^_;m[D]==O&&(f[I+2>>1]>0&&c.push(D),x[D]==E+1&&(x[D]=0,b.push(D))),E=o[E+1]-1}m[L]=0,c.remove(L)}}for(var tt=[],j=0;j>1),m[D]==1&&m[L]!=1&&tt.push(i+j>>1)}return{Rv:tt,xy:g}},v.yJ.im=function(t,i,e,r,n,a,s){r[e]=r[t],n[e]=i+1,a[e]=a[t]+1,s[e]=s[t]},v.yJ.af_=function(t,i,e,r,n,a,s,l){for(var h=t,o=r[t]-1,f=0;o!=-1&&s[t]!=a;)t=n[o^4],o=r[t]-1,f++;if(o==-1&&t!=i&&t!=e)return 1e9;var u=l[t]+f;for(f=0,o=r[h]-1;h!=t;)l[h]=u-f,f++,s[h]=a,h=n[o^4],o=r[h]-1;return u},v.yJ.a0X=function(t,i,e,r,n,a){for(var s=v.yJ.Wo(t,i,e,r,n,a),l=s.GI,h=s.gQ,o=s.CY,f=0,u=0,p=new Uint32Array(t*2),c=new v.yJ.bR(t),d=0;;){c.reset(),c.push(e);for(var g=0;g>1]>0&&d!=e&&(p[d<<1]=b+1,p[(d<<1)+1]=m,c.push(d)),m=l[m+1]-1;if(p[r<<1]!=0)break}if(p[r<<1]==0)break;var x=1e30;for(d=r;;){var M=p[d<<1]-1;if(M==-1)break;var S=p[(d<<1)+1];x=Math.min(x,h[S+2>>1]),d=M}for(d=r;;){var M=p[d<<1]-1;if(M==-1)break;var S=p[(d<<1)+1],w=S^4;h[S+2>>1]-=x,h[w+2>>1]+=x,d=M}f+=x}for(var k=[],g=0;g>1),(p[d<<1]!=0||d==e)&&p[M<<1]==0&&M!=e&&k.push(i+g>>1)}return{Rv:k,xy:f}},v.yJ.bR=function(t){t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,this.NH=new Uint32Array(t+1),this.qj=t,this.du=0,this.EK=0},v.yJ.bR.prototype={push:function(t){var i=this.EK;this.NH[i]=t,this.EK=i+1&this.qj},pop:function(){var t=this.du,i=this.NH[t];return this.du=t+1&this.qj,i},SY:function(){return this.du==this.EK},reset:function(){this.du=0,this.EK=0}},v.yJ.jy=function(t){t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,this.NH=new Uint32Array(t+1),this.xO=new Uint32Array(t+1),this.qj=t,this.du=0,this.EK=0},v.yJ.jy.prototype={top:function(){return this.NH[this.du]},a8Q:function(){return this.NH[this.EK]},push:function(t){if(this.xO[t]==0){this.xO[t]=this.EK+1;var i=this.EK;this.NH[i]=t,this.EK=i+1&this.qj}},pop:function(){var t=this.du,i=this.NH[t];return this.xO[i]=0,this.du=t+1&this.qj,i},SY:function(){return this.du==this.EK},remove:function(t){var i=this.xO[t]-1;if(i!=-1){if(this.xO[t]=0,i==this.du){this.pop();return}var e=this.pop();this.NH[i]=e,this.xO[e]=i+1}},q_:function(t){return t+this.qj+1&this.qj}},v.yJ.rP=function(t,i,e){var r=v.yJ.RU(t,i,e);i>>1];i<=e;){for(;t[i]r;)e--;i<=e&&(v.yJ.Sy(t,i,e),i++,e--)}return i},v.yJ.Sy=function(t,i,e){var r=t[i];t[i]=t[e],t[e]=r},v.P$={},v.P$.acG=function(t){for(var i=0;i.01){v.P$.tq(t,h);continue}var p=v.P$.sV(o);if(v.P.apply(i,p),v.P$.__(o,[Math.min(p[0],p[2]),Math.min(p[1],p[3]),Math.max(p[0],p[2]),Math.max(p[1],p[3])]),u==2){var c=v.P$.G4(o),d=new Et(i[0],i[1],i[3],i[4],0,0);if(d.dy(),d.m==0&&(c.push(c.shift()),d.rotate(Math.PI/2),d.dy()),d.m<0){var g=c[0];c[0]=c[1],c[1]=g,g=c[2],c[2]=c[3],c[3]=g}if(d.xA<0){var g=c[0];c[0]=c[3],c[3]=g,g=c[1],c[1]=c[2],c[2]=g}if(r)for(var b=0;b<4;b++)c[b]=c[b]*s;v.P$.xv(o,c)}if(u==4){o.keyOriginLineWeight.v*=s;var m=v.P$.rm(o);v.P.apply(i,m),v.P$.a3J(o,m)}}}},v.P$.xc=function(t,i){for(var e=i.b,r=0;r=0},v.D.X5=function(t){for(var i={},e=null,r=0,n={M:2,L:2,Q:4,C:6},a=0;a5||$.type==0||$.type==3)){var P=$.wU.Qn($._)||$.dv.Qn($.dv);if(!P){var I=$.wU.x*($._.y-$.dv.y)+$._.x*($.dv.y-$.wU.y)+$.dv.x*($.wU.y-$._.y);Math.abs(I)<1e-6&&(P=!0)}P&&$.type--}}return j},v.D.xJ=function(){function t(r,n,a,s){!s&&r.dv.Qn(r._)&&n.wU.Qn(n._)?(a.d.push(n._.x,n._.y),a.W.push("L")):(a.d.push(r.dv.x,r.dv.y,n.wU.x,n.wU.y,n._.x,n._.y),a.W.push("C"))}function i(r,n,a,s,l,h){var o=n[a];r.d.push(o._.x,o._.y),r.W.push("M");for(var f=a;f5)){var l=r[s].length;if(l!=0){if(s==r.length-1)break;var h=r[s].type==3;i(a,r,s+1,l,h,n),h||a.W.push("Z"),s+=l}}return a}return e}(),v.D.a4O=function(t){for(var i=t.d,e=[],r,n=0,a=0;a>>1)}return np&&(p=b,u=c)}if(p=0},i=function(r,n,a,s,l,h,o,f){var u=o-a,p=f-s,c=l-a,d=h-s,g=r-a,b=n-s,m=u*u+p*p,x=u*c+p*d,M=u*g+p*b,S=c*c+d*d,w=c*g+d*b,k=1/(m*S-x*x),T=(S*M-x*w)*k,L=(m*w-x*M)*k;return T>=0&&L>=0&&T+L<1},e=function(r){var n=r.length>>>1,a=0;if(n<3)return[];for(var s=[],l=[],a=0;a3;){var o=l[(a+0)%h],f=l[(a+1)%h],u=l[(a+2)%h],p=r[2*o],c=r[2*o+1],d=r[2*f],g=r[2*f+1],b=r[2*u],m=r[2*u+1],x=!1;if(t(p,c,d,g,b,m)){x=!0;for(var M=0;M3*h)break}return s.push(l[0],l[1],l[2]),s};return e}(),v.D.ae7=function(t,i){for(var e={},r={W:[],d:[]},n=0;ne){var a=e;e=i,i=a}n[i+","+e]||(n[i+","+e]=!0,r.W.push("M","L"),r.d.push(t[i],t[i+1],t[e],t[e+1]))},v.D.pD=function(t,i){for(var e=[],r=t.length,n=0;n=0;s--){var l=Math.pow(10,s);if(5*l*t<=a){r=5*l,n=10;break}if(2*l*t<=a){r=2*l,n=4;break}if(1*l*t<=a){r=1*l,n=10;break}}r==0&&(r=1,n=10);var h=Math.ceil(r*t),o=v.R(h*v.t$.Tn*4);v.XB(o,4278190080|e);for(var s=0;s1||r==1&&h>20)for(var s=1;s>16&255,t[i+1]=e>>8&255,t[i+2]=e&255},v.t$.al_=function(t,i,e){var r=i&255,n=i>>8&255,a=i>>16&255,s,l,h,o;i=Math.round(r*.6)<<16|Math.round(n*.6)<<8|Math.round(a*.6),v.t$.a8M(Math.round(r*.8)<<16|Math.round(n*.8)<<8|Math.round(a*.8),e);var f=this.ams(t.F,i,e),u=t.PY(0,0),p=t.PY(t.xX.Z,t.xX.h),c=Math.floor(u.x/f.step)*f.step,d=Math.ceil(p.x/f.step)*f.step,g=Math.floor(u.y/f.step)*f.step,b=Math.ceil(p.y/f.step)*f.step,m=t._R(c,g),x=t._R(d,g),M=f.step*t.F,S=Math.ceil(M);s=t.Pq.data,l=new et(0,0,t.xX.Z,v.t$.Tn),h=new et(0,0,S,v.t$.Tn),o=new et(0,Math.round(v.t$.Tn*.08),v.t$.Tx,v.t$.Tx);for(var w=0;w<(d-c)/f.step;w++){h.x=Math.round(m.x+w*M),v.BP(f.jX,h,s,l,h);for(var k=(c+w*f.step).toString(10),T=0;T>>24;d+=T,g+=T*(k>>>16&255),b+=T*(k>>>8&255),m+=T*(k&255)}if(d!=0){var L=1/d;r[p*n+c]=d/(x*M)<<24|g*L<<16|b*L<<8|m*L}else r[p*n+c]=0}},v.K={},v.K.ahE=function(t,i,e){for(var r=128,n=0,a=e.Z,s=e.h,l=0;l=r&&(h==0||t[n-1]>>2])}},v.K.ac5=function(t,i,e,r,n,a){var s=e.Z,l=e.h,h=0,o=0,f=s,u=l;r&&(h=r.x-e.x,o=r.y-e.y,f=h+r.Z,u=o+r.h);for(var p=new Uint8Array(i.buffer),c=new Uint32Array(i.buffer),d=o;d>>1<<24|255:c[b]=255<<24|(m<<16|m<<8|m)}},v.pv={},v.pv.f7=function(t,i,e){var r,n;if(e=="front"&&(r=t.rect.clone(),n=v.pv.a99),e=="union"&&(r=t.rect.s7(i.rect),n=v.pv.s7),e=="difference"&&(r=i.rect.clone(),n=v.pv.ahT),e=="intersection"&&(r=t.rect.$X(i.rect),n=v.pv.$X),e=="xor"&&(r=t.rect.s7(i.rect),n=v.pv.aaf),r.qr())return null;var a=v.R(r.M());v.Lj(i.channel,i.rect,a,r);var s=v.R(r.M());v.Lj(t.channel,t.rect,s,r),n(s,a,a);var l=v.xw(a,r);if(l.qr())return null;if(!l.Qn(r)){var h=v.R(l.M());v.Lj(a,r,h,l),a=h,r=l}return{channel:a,rect:r}},v.pv.a99=function(t,i,e){for(var r=0;rn+r)break}},v.sz.prototype.akD=function(t,i,e,r){var n=Date.now(),a=1.96,s=0;e==null&&(e=5e-5),r==null&&(r=1e9);for(var l=1-a,h=this.rows,o=this.M1,f=this.xK,u=this.un,p=this.Gf;;){for(var c=0,d=0;dn+r)break}},v.JH={},v.JH.Rn=function(t,i,e){return{t:"Objc",v:{classID:"CrPt",Hrzn:{t:"doub",v:t},Vrtc:{t:"doub",v:i},Cnty:{t:"bool",v:e}}}},v.JH.O=function(t,i){for(var e=0;e=i[i.length-1])return e[i.length-1];for(var n=1;i[n]=i[i.length-1])return e[i.length-1];for(var n=1;i[n]100&&(a[1]=.4*a[1]),a[2]>150&&(a[1]=.7*a[2])),a},v.JH.OY=function(t,i){for(var e=new Uint8Array(t.length),r=0;rb){var x=m;m=b,b=x}i[s]=c+v.style.a54(b,m,d)}},v.style.a54=function(t,i,e){return(.5-e)*t},v.style.uX=function(t,i,e,r){if(r==null){r=!0;for(var n=0;n=0;l--)v.style.MO(i,t,e,a+l<<1,1)}for(var s=r-2;s>=0;s--){for(var a=s*e,l=0;l<=e-1;l++)v.style.PD(i,t,e,a+l<<1,1);for(var l=1;l<=e-1;l++)v.style.MO(i,t,e,a+l<<1,-1);for(var l=e-2;l>=0;l--)v.style.MO(i,t,e,a+l<<1,1)}},v.style.MO=function(t,i,e,r,n){var a=(r>>>1)+n<<1,s=t[r],l=t[r+1],h=t[a]+n,o=t[a+1],f=h*h+o*o,u=s*s+l*l;o!=16383&&(s==16383||Math.sqrt(f)+(.5-i[(r>>>1)+o*e+h]*(1/255))>>1)+l*e+s]*(1/255)))&&(t[r]=h,t[r+1]=o)},v.style.PD=function(t,i,e,r,n){var a=(r>>>1)+n*e<<1,s=t[r],l=t[r+1],h=t[a],o=t[a+1]+n,f=h*h+o*o,u=s*s+l*l;h!=16383&&(s==16383||Math.sqrt(f)+(.5-i[(r>>>1)+o*e+h]*(1/255))>>1)+l*e+s]*(1/255)))&&(t[r]=h,t[r+1]=o)},v.style.a8V=function(t,i,e,r){for(var n=e*r,a=0;a=0;l--)v.style.yK(i,t,e,a+l<<1,1)}for(var s=r-2;s>=0;s--){for(var a=s*e,l=0;l<=e-1;l++)v.style.Wl(i,t,e,a+l<<1,1);for(var l=1;l<=e-1;l++)v.style.yK(i,t,e,a+l<<1,-1);for(var l=e-2;l>=0;l--)v.style.yK(i,t,e,a+l<<1,1)}},v.style.yK=function(t,i,e,r,n){var a=(r>>>1)+n<<1,s=t[r],l=t[r+1],h=t[a]+n,o=t[a+1],f=h*h+o*o,u=s*s+l*l;o!=16383&&(s==16383||f>>1)+n*e<<1,s=t[r],l=t[r+1],h=t[a],o=t[a+1]+n,f=h*h+o*o,u=s*s+l*l;h!=16383&&(s==16383||f=0;h--)i[h+a-e]=Math.min(i[h+a-e],i[h+a-e+1]);for(var o=r-2;o>=0;o--){var l=o*e+e-1;i[l]=Math.min(i[l],Math.min(i[l+e]+1,i[l+e-1]+Math.SQRT2));for(var h=e-2;h>=1;h--){var f=i[--l],u=Math.min(i[l+1]+1,Math.min(i[l+e-1]+Math.SQRT2,Math.min(i[l+e]+1,i[l+e+1]+Math.SQRT2)));u=0;h--)t[h*e+s]>n?l=0:l++,a[h]=l;l=e+r;for(var h=0;hn?l=0:l++,i[h*e+s]=l0&&(t[r]=Math.max(0,Math.min(255,n+i*2*(v.style.kY(r)-128))))}else for(var r=0;r0&&(t[r]=Math.max(0,Math.min(255,n+Math.min(n*3,i*2*(v.style.kY(r)-128)))))}},v.style.kY=function(t){return t=t^61^t>>16,t=t+(t<<3),t=t^t>>4,t=t*668265261,t=t^t>>15,t&255},v.ZL={},v.ZL.vP=function(t,i,e){var r=t.canvas,n=y.J(),a=Math.floor;(r.width!=a(i*n)||r.height!=a(e*n))&&y.Tv(r,i,e,t)},v.ZL.dp=function(t,i,e,r,n,a){v.ZL.vP(t,i,e),a==null&&(a=!1);var s=n.channel,l=n.rect,h=!n.isEnabled;if(i=Math.floor(i*y.J()),e=Math.floor(e*y.J()),i*e!=0){for(var o=t.createImageData(i,e),f=o.data,u=1/i,p=1/e,c=0;c=l.x+l.Z||x=l.y+l.h?M=n.color:M=s[(x-l.y)*l.Z+(m-l.x)],M=255*(255-n.au)+M*n.au>>>8,a&&(M=170+Math.round(.4*(M-170))),f[b]=M,f[b+1]=M,f[b+2]=M,f[b+3]=255}t.putImageData(o,0,0),h&&v.ZL.AI(t,i,e)}},v.ZL.ahC=function(t,i,e,r){t.fillStyle="#eeeeee",t.fillRect(.6*i,.6*e,i,e),t.lineWidth=1.5;var n=.65*i,a=.95*i,s=.65*e,l=.95*e,h=.75*i,o=.85*i,f=.75*e,u=.85*e;t.beginPath(),t.moveTo(n,s),t.lineTo(a,s),t.lineTo(a,l),t.lineTo(n,l),t.lineTo(n,s),t.moveTo(h,f),t.lineTo(o,f),t.lineTo(o,u),t.lineTo(h,u),t.lineTo(h,f),t.closePath(),t.stroke()},v.ZL.sE=[],v.ZL.a7d=function(t,i,e){var r,n,a,s=y.J();i=Math.floor(s*i),e=Math.floor(s*e),r=Math.ceil(Math.max(i,e)*.35),n=i-r,a=e-r;var l=v.ZL.sE[r];if(l==null){var h=y.z("canvas"),o=h.getContext("2d");h.width=h.height=r,o.fillStyle="#eeeeee",o.fillRect(0,0,r,r),o.lineWidth=1,o.strokeRect(2.5,2.5,r-5,r-5);var f=o.createImageData(3,3);v.XB(f.data,4278190080),f.data[4*4]=f.data[4*4+1]=f.data[4*4+2]=238,o.putImageData(f,1,1),o.putImageData(f,r-4,1),o.putImageData(f,1,r-4),o.putImageData(f,r-4,r-4),l=v.ZL.sE[r]=o.getImageData(0,0,r,r)}t.putImageData(l,n,a)},v.ZL.a5I=function(t,i,e,r,n){v.ZL.vP(t,i,e),i=Math.floor(i*y.J()),e=Math.floor(e*y.J());var a=i/r.Z;if(i*e!=0){t.fillStyle="#999999",t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,i,e);var s=v.ZL.dB;s==null&&(s=v.ZL.dB=JSON.parse(JSON.stringify(at.bW.default)),s.strokeEnabled.v=!0),s.strokeStyleLineWidth.v.val=1*y.J()/a,t.fillStyle="#ffffff",t.scale(a,a),v.V.Wm(n.b,t,0,0),v.V.Wm(n.b,t,0,0,s)}},v.ZL.gF=null,v.ZL.Eo=function(t,i,e,r,n,a,s,l){if(v.ZL.vP(t,i,e),i=Math.floor(i*y.J()),e=Math.floor(e*y.J()),i*e!=0){var h=Math.max(i,e),o=v.ZL.gF;(o==null||o.width=g||T=m)f[w]=L,f[w+1]=L,f[w+2]=L,f[w+3]=255;else{var O=(T-a.y)*a.Z+(k-a.x)<<2,E=n[O+3]*c;f[w]=n[O+0]*E+L*(1-E),f[w+1]=n[O+1]*E+L*(1-E),f[w+2]=n[O+2]*E+L*(1-E),f[w+3]=255}}if(l!=null)for(var x=0;x5||s.type==0||s.type==3)&&(i!=null&&i.indexOf(n)==-1||e!=null&&e.indexOf(a)==-1||(r.push(s.wU.x),r.push(s.wU.y),r.push(s._.x),r.push(s._.y),r.push(s.dv.x),r.push(s.dv.y)))}return r},v.V.eu=function(t,i,e,r){for(var n=0,a=-1,s=0;s5||l.type==0||l.type==3)&&(e!=null&&e.indexOf(a)==-1||r!=null&&r.indexOf(s)==-1||(l.wU.Oh(t[n],t[n+1]),l._.Oh(t[n+2],t[n+3]),l.dv.Oh(t[n+4],t[n+5]),n+=6))}},v.V.G5=function(t,i,e,r){var n=v.V.dq(t,e,r);v.D.O(n,i,n),v.V.eu(n,t,e,r)},v.V.ajB=function(t,i,e,r){var n=v.V.dq(t,e,r);v.P.apply(i,n),v.V.eu(n,t,e,r)},v.V.af3=function(t,i,e,r){if(e==null&&r==null)for(var n=v.V.a4V(t,40),a=0;a5){e.push(JSON.parse(JSON.stringify(n)));continue}var a=v.V.agU(t,r+1,n.length);a=v.D.Tm(a,i);var s=v.V.a9$(a);r+=n.length,n=JSON.parse(JSON.stringify(n)),n.length=s.length,e.push(n);for(var l=0;l5)){var e=t[i].length;if(!(e==4||e==6||e==8)){i+=e;continue}for(var r=0;r5)){var a=t[n].length;if((t[n].type==0||t[n].type==3)&&t[n].IO!=-1&&r++,!(i!=null&&i.indexOf(r)==-1)){if(n==t.length-1)break;var s=t[n].type==3;if(e==null)e=v.V.qv(t,n+1,a,s);else{var l=v.V.qv(t,n+1,a,s);if(i!=null||t[n].IO==0||t[n].IO==-1||t[n].IO==1){var h=Math.min(e.x,l.x),o=Math.min(e.y,l.y),f=Math.max(e.x+e.Z,l.x+l.Z),u=Math.max(e.y+e.h,l.y+l.h);e.x=h,e.y=o,e.Z=f-h,e.h=u-o}else t[n].IO==2?e=e:t[n].IO==3&&(e=e.$X(l))}n+=a}}return(e==null||e.Z<0||e.h<0)&&(e=new et(0,0,0,0)),e},v.V.ajk=new Float64Array(4),v.V.qv=function(t,i,e,r){var n=v.V.ajk;n[0]=1e30,n[1]=1e30,n[2]=-1e30,n[3]=-1e30;var a=t[i+e-1];r||v.V.Rt(a._.x,a._.y,a.dv.x,a.dv.y,t[i].wU.x,t[i].wU.y,t[i]._.x,t[i]._.y,n);for(var s=i;su&&(u=R),G>p&&(p=G)}h[0]=Math.min(h[0],o),h[1]=Math.min(h[1],f),h[2]=Math.max(h[2],u),h[3]=Math.max(h[3],p)},v.V.rJ=function(t,i){var e=t.length-3,r=i%e,n=Math.floor(r);if(i<0||n>=e)return null;var a=t[3+n],s=t[3+(n+1)%e],l=a._,h=a.dv,o=s.wU,f=s._,u=r-n,p=1-u,c=p*p*p*l.x+3*p*p*u*h.x+3*p*u*u*o.x+u*u*u*f.x,d=p*p*p*l.y+3*p*p*u*h.y+3*p*u*u*o.y+u*u*u*f.y;return new st(c,d)},v.V.j3=function(t){for(var i=2,e=v.V.k3(t),r=!1,n=!1,a=2;a1&&(t=v.V.XE(t));var l=v.D.xJ(t);return{Q7:Typr.U.pathToSVG({crds:l.d,cmds:l.W},i),RL:r?1:0}},v.V.XE=function(t){v.V.wt();for(var i,e=v.V.XK(t),r=[],n=0;n=0;l--){var h=s[l][0],o=h.hitTest(a,n);if(o!=null)return{XN:l,_2:e?o.location.index:null}}return{XN:-1}},v.V.Wh=function(t,i){for(var e=[[],[],[]],r=0;r5||n.type==0||n.type==3||(i.oz(n._)&&e[0].push(r),i.oz(n.wU)&&e[1].push(r),i.oz(n.dv)&&e[2].push(r))}return e},v.V.a2x=function(t,i,e){for(var r=e.slice(0),n=[null,null],a=-1,s=null,l=2;l=i)return r;r++}return r},v.V.SD=function(t,i){for(var e=-1,r=0,n=0;n5)){var a=t[n].length,s;if(n==t.length-1)break;var l=t[n].type==3;n==2?v.V.vq(t)?s="unite":s="subtract":(t[n].IO==0&&(s="exclude"),t[n].IO==1&&(s="unite"),t[n].IO==2&&(s="subtract"),t[n].IO==3&&(s="intersect")),t[n].IO!=-1&&(e=[]);for(var h=0;hv.V.KX&&(v.V.KX=n);var s=e.Z,l=e.h;if(r==null&&v.V.BG(t)){for(var h=!0,o=2;o0&&(s=!0)}!a&&l<20&&(t=v.V.XE(t))}for(var h=0;h5)){var f=t[h].length;if(f!=0){if(h==t.length-1)break;var u=t[h].type==3;if(h==2)v.V.vq(t)?i.globalCompositeOperation="source-over":i.globalCompositeOperation="destination-out";else{var o=t[h].IO;if(o!=-1&&n==null){var p=["xor","source-over","destination-out","source-in"][o];i.globalCompositeOperation=p}}if(t[h].IO!=-1&&(i.beginPath(),n)){for(var c=n.strokeStyleLineWidth.v.val,d=n.strokeStyleLineAlignment.v.strokeStyleLineAlignment,g=n.strokeStyleLineCapType.v.strokeStyleLineCapType,b=n.strokeStyleLineJoinType.v.strokeStyleLineJoinType,m=n.strokeStyleMiterLimit.v,x=[],M=n.strokeStyleLineDashSet.v,S=0;S1||Math.abs(a[s*4]-a[s*4+l])>1)&&(e=!0);return!e}else return t.warpValue.v==0&&t.warpPerspective.v==0&&t.warpPerspectiveOther.v==0},v.mD.R=function(t){var i={classID:"warp",warpStyle:{t:"enum",v:{warpStyle:"warpNone"}},warpValue:{t:"doub",v:0},warpPerspective:{t:"doub",v:0},warpPerspectiveOther:{t:"doub",v:0},warpRotate:{t:"enum",v:{Ornt:"Hrzn"}}};return t&&(i.bounds={t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:t.y}},Left:{t:"UntF",v:{type:"#Pxl",val:t.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:t.y+t.h}},Rght:{t:"UntF",v:{type:"#Pxl",val:t.x+t.Z}}}},i.uOrder={t:"long",v:4},i.vOrder={t:"long",v:4}),i},v.mD.a7e=function(t,i,e,r){for(var n=0;n0?u=u-R*u*r:p=p+R*p*r:s==1||s==2?u=u-R*u*r:(l==1||l==2)&&(p=p+R*p*r)}if(e=="warpTwist"&&(s==1||s==2)&&(l==1||l==2)){var G=r*Math.PI/2,w=1+Math.abs(r)*2,Z=u*Math.cos(G)-p*Math.sin(G),_=u*Math.sin(G)+p*Math.cos(G);u=Z*w,p=_*w}if(e=="warpShellLower"||e=="warpShellUpper"){if(e=="warpShellUpper"&&(s=3-s,p=-p),s>2||s==2&&(l==0||l==3))if(r>0){var U=L+s/3*2*d;u=Math.sin(T)*U,p=-S*c-d+Math.cos(T)*U,(l==1||l==2)&&(u=l==1?-I*U:I*U,p=-S*c-d+B*U)}else(l==1||l==2)&&s==3?(u=l==1?-I*L:I*L,p=S*c-B*L+d):s==2&&(p=d-d*(2/3)*Math.cos(T),u=u+d*(2/3)*Math.sin(T));e=="warpShellUpper"&&(s=3-s,p=-p)}u+=c,p+=d}o=u,f=p,t[h]=o+i.x,t[h+1]=f+i.y}},v.mD.a1F=function(t,i,e){for(var r=[],n=0;n<4;n++)r.push(1-e+n/3*2*e);for(var a=[],n=0;n<4;n++)a.push(1-i+n/3*2*i);for(var s=[0,0,0,0],l=[0,0,0,0],h=0;h<4;h++)for(var n=0;n<4;n++){var o=2*(4*h+n),f=t[o],u=t[o+1];s[n]+=f/4,l[n]+=u/4}for(var h=0;h<4;h++)for(var n=0;n<4;n++){var p=r[n],o=2*(4*h+n),f=t[o],u=t[o+1],c=s[n],d=l[n];t[o]=c+p*(f-c),t[o+1]=d+p*(u-d)}for(var g=t.slice(0),h=0;h<4;h++)for(var n=1;n<3;n++){var o=2*(4*h+n),f=t[o],u=t[o+1],b=o+(n==1?-2:2),m=t[b],x=t[b+1];t[o]=f-m,t[o+1]=u-x}for(var M=t[0],S=t[1],w=t[8],k=t[9],T=t[16],L=t[17],O=t[24],E=t[25],D=t[6],B=t[7],I=t[14],N=t[15],V=t[22],j=t[23],R=t[30],G=t[31],Z=D-M,_=B-S,U=I-w,Y=N-k,$=V-T,P=j-L,tt=R-O,X=G-E,h=0;h<4;h++){var ht=2*h*4,F=0,J=0,Q=h==1?.33:.66,rt=1-Q;h==0&&(F=Z,J=_),h==1&&(F=rt*Z+Q*-tt,J=rt*_+Q*-X),h==2&&(F=rt*Z+Q*-tt,J=rt*_+Q*-X),h==3&&(F=-tt,J=-X),t[ht]=t[ht]+F/2,t[ht+1]=t[ht+1]+J/2,t[ht+6]=t[ht+6]-F/2,t[ht+7]=t[ht+7]-J/2}for(var h=0;h<4;h++)for(var n=1;n<3;n++){var o=2*(4*h+n),f=t[o],u=t[o+1],b=o+(n==1?-2:2),m=t[b],x=t[b+1],p=2*h/3;t[o]=m+p*f,t[o+1]=x+p*u}for(var h=1;h<3;h++)for(var n=1;n<3;n++){var o=2*(4*h+n),f=t[o],u=t[o+1],it=h==1?-8:-16,nt=h==1?16:8,ot=t[o+it],pt=t[o+it+1],yt=t[o+nt],ct=t[o+nt+1],p=h/3;f=(1-p)*ot+p*yt,u=(1-p)*pt+p*ct,t[o]=f,t[o+1]=u}v.D.bu(g,t,t,i)},v.mD.agQ=function(t,i){return(4-t)*(1/3)},v.mD.a78=function(t,i){return(1-t)*(3-t)/(3*i)},v.FV={},v.FV.OM=function(t,i,e,r,n,a,s,l,h,o){for(var f=[0,1,1/2,1/3,1/4,1/5,1/6,1/7,1/8,1/9],u=1/h,p=[-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1],c=new Uint32Array(6),d=0;d>>1;t[i]=t[i+3]=t[e]=t[e+3]=s,t[i+1]=f,t[i+4]=l,t[e+1]=h,t[e+4]=f,t[i+2]=t[i+5]=t[e+2]=t[e+5]=o},v.FV.afP=function(t,i,e,r,n,a){for(var s=a*3,l=0;l>2:x==g?h*3+s+l-o>>2:x==b?s*3+h+l-a>>2:f*3+n+l-u>>2},v.FV.Fd=function(t,i,e,r,n){return ti&&i>e?~~(.5+r+(n-r)*(i-t)/(e-t)):(r+n>>1)+(i+i-t-e>>2)},v.FV.pX=function(t,i,e,r){var n=i[e-r-1],a=i[e-r+1],s=i[e],l=i[e+r-1],h=i[e+r+1],o=t[e-r-1],f=t[e-r+1],u=t[e],p=t[e+r-1],c=t[e+r+1],d=Math.abs(f-p)+Math.abs(t[e-r-r+2]-u)+Math.abs(u-t[e+r+r-2])+Math.abs(a-s)+Math.abs(s-l),g=Math.abs(o-c)+Math.abs(t[e-r-r-2]-u)+Math.abs(u-t[e+r+r+2])+Math.abs(n-s)+Math.abs(s-h);return d>1<<1,s+=f[1]>>1<<1}if(t.t50720){var u=t.t50720;l=a+u[0],h=s+u[1]}var p=l-a,c=h-s,d=new Float32Array(p*c*3);if(t.t277[0]==1){var g=t.t33421;if(g.length!=2||g[0]!=2||g[1]!=2)console.log("Unknown CFA pattern size",g),v.FV.OM(n,i,e,d,a,s,p,c,g[0],t.t33422);else{var b=t.t33422.join(","),m=0;if(b=="0,1,1,2")m=0;else if(b=="1,0,2,1")m=1;else if(b=="2,1,1,0")m=2;else if(b=="1,2,0,1")m=3;else throw"Unknown CFA pattern "+b;if((p&1)!=0||(c&1)!=0)throw"e";v.FV.ahL(n,i,e,d,a,s,p,c,m)}}else for(var x=0;x=.92){var w=Math.min(x,S);w==x?(M=Math.max(M,u[0]*x),S=Math.max(S,u[1]*x)):(x=Math.max(x,u[4]*S),M=Math.max(M,u[5]*S))}var k=h[0]*x+h[1]*M+h[2]*S,T=h[4]*x+h[5]*M+h[6]*S,L=h[8]*x+h[9]*M+h[10]*S;k<0?k=0:k>1&&(k=1),T<0?T=0:T>1&&(T=1),L<0?L=0:L>1&&(L=1),k=p[~~(k*999)],T=p[~~(T*999)],L=p[~~(L*999)],i[b]=~~(.5+k*255),i[b+1]=~~(.5+T*255),i[b+2]=~~(.5+L*255)}},v.raw.EH={aic:function(t,i){var e=.5-.5*Math.cos(t*3.2),r=0;if(i>0){var n=t*.2;r=n*t+(1-n)*e}else{var a=Math.pow(t,.33);r=(1-a)*a+a*(t+(t-e)*.63)}var s=Math.abs(i);return s*r+(1-s)*t},a0z:function(t,i){var e=0;if(i>0){var r=t*1.47,n=Math.pow(t,2.4);e=Math.min(1,n*t+(1-n)*r)}else{var r=t*.68,n=Math.pow(t,3);e=n*t*.5+(1-n)*r}var a=Math.abs(i);return a*e+(1-a)*t},a4B:function(t,i){var e=0;if(i>0){var r=Math.pow(t,.3),n=t;e=(1-t)*r+t*n}else{var r=Math.pow(t,2.5),a=t,n=t;e=Math.min(1,(1-a)*r+a*n)}var s=Math.abs(i);return s*e+(1-s)*t}},v.raw.afA=function(t){var i=t.width,e=t.height,r=i*e*t.t277,n=new Uint16Array(r),a=null,s=0;if(v.raw.a6W(t,n),v.raw.A1(1,t,n,i,e),t.t50712&&(a=t.t50712,s=a.length-1,a[s]>65535))throw"too big values";var l=v.raw.Sw(t),h=v.raw.x2(t);if(a==null)for(var o=0;os&&(f=s),f=a[f],n[o]=Math.max(0,f-l)}return n},v.raw.Sw=function(t){var i=t.t50714,e=i?i[0]:0,r=t.t50715,n=t.t50716;return r&&(e+=r[0]),n&&(e+=n[0]),Math.round(e)},v.raw.x2=function(t){var i=null,e=0;t.t50712&&(i=t.t50712,e=i.length-1);var r=t.t50717[0];return i&&(r=Math.min(r,i[e])),r},v.raw.afN=function(t){var i=v.raw.Sw(t),e=v.raw.x2(t);return e-i},v.raw.a6W=function(t,i){var e=i.length,r=t.data,n=t.t258[0];if(n!=16&&n!=14&&n!=12&&n!=10&&n!=8)throw"Unsupported Bits Per Sample:"+n;if(n=Math.round(r.length*8/e),n==16&&t.isLE){v.Hk(r,i);return}for(var a=0;a>>3,u=r[f]<<24|r[f+1]<<16|r[f+2]<<8|r[f+3];(o&7)==0?(l=u>>>18,h=u>>>4&16383):(l=u>>>14&16383,h=u&16383)}else if(n==12)s=a+(a>>>1),l=r[s]<<4|r[s+1]>>4,h=(r[s+1]&15)<<8|r[s+2];else if(n==10){var o=a*10,f=o>>>3;(o&7)==0?(l=(r[f]<<2|r[f+1]>>6)&1023,h=(r[f+1]<<4|r[f+2]>>4)&1023):(l=(r[f]<<6|r[f+1]>>2)&1023,h=(r[f+1]<<8|r[f+2]>>0)&1023)}else n==8&&(s=a,l=r[s],h=r[s+1]);i[a]=l,i[a+1]=h}},v.raw.A1=function(t,i,e,r,n){var a=i["t"+[51008,51009,51022][t-1]],s=0;if(a!=null){var l=r*n,h=A.l,o=A.VZ,f=new Uint8Array(a),u=A.l(f,s);s+=4;for(var p=0;p>1)}else if(c==5&&t==1){var m=s,wt=h(f,m);m+=4;var Mt=h(f,m);m+=4;var Ct=h(f,m);m+=4;for(var vt=0;vt>1}}else if(c==7&&t==1){var m=s,xt=A.g$(f,m);m+=16;var Dt=h(f,m);m+=4;var Ot=h(f,m);m+=4;var kt=h(f,m),mt=h(f,m+4);m+=8;var It=h(f,m);m+=4;for(var Bt=new Uint16Array(It),vt=0;vt1e-7);return r},v.raw.oV=function(t,i){var e=Jr.j7(i),r=v.raw.a1S,n=t.t50779?t.t50779[0]:0,a=r(t.t50721,t.t50722,t.t50778[0],n,e.Ur),s=r(t.t50723,t.t50724,t.t50778[0],n,e.Ur);s=s||[1,0,0,0,1,0,0,0,1];var l=t.t50727?[t.t50727[0],0,0,0,t.t50727[1],0,0,0,t.t50727[2]]:[1,0,0,0,1,0,0,0,1];return v.t1.multiply(v.t1.v9(l),v.t1.multiply(v.t1.v9(s),v.t1.v9(a)))},v.raw.a1S=function(t,i,e,r,n){if(!t&&!i)return null;if(t&&!i)return t;if(nr)return i;for(var a=(1/n-1/r)/(1/e-1/r),s=1-a,l=[],h=0;h<9;h++)l[h]=t[h]*a+i[h]*s;return l};var Jr={};Jr.adF={x:.34567,y:.3585},Jr.D$=[{U:0,j9:.18006,pl:.26352,wV:-.24341},{U:10,j9:.18066,pl:.26589,wV:-.25479},{U:20,j9:.18133,pl:.26846,wV:-.26876},{U:30,j9:.18208,pl:.27119,wV:-.28539},{U:40,j9:.18293,pl:.27407,wV:-.3047},{U:50,j9:.18388,pl:.27709,wV:-.32675},{U:60,j9:.18494,pl:.28021,wV:-.35156},{U:70,j9:.18611,pl:.28342,wV:-.37915},{U:80,j9:.1874,pl:.28668,wV:-.40955},{U:90,j9:.1888,pl:.28997,wV:-.44278},{U:100,j9:.19032,pl:.29326,wV:-.47888},{U:125,j9:.19462,pl:.30141,wV:-.58204},{U:150,j9:.19962,pl:.30921,wV:-.70471},{U:175,j9:.20525,pl:.31647,wV:-.84901},{U:200,j9:.21142,pl:.32312,wV:-1.0182},{U:225,j9:.21807,pl:.32909,wV:-1.2168},{U:250,j9:.22511,pl:.33439,wV:-1.4512},{U:275,j9:.23247,pl:.33904,wV:-1.7298},{U:300,j9:.2401,pl:.34308,wV:-2.0637},{U:325,j9:.24792,pl:.34655,wV:-2.4681},{U:350,j9:.25591,pl:.34951,wV:-2.9641},{U:375,j9:.264,pl:.352,wV:-3.5814},{U:400,j9:.27218,pl:.35407,wV:-4.3633},{U:425,j9:.28039,pl:.35577,wV:-5.3762},{U:450,j9:.28863,pl:.35714,wV:-6.7262},{U:475,j9:.29685,pl:.35823,wV:-8.5955},{U:500,j9:.30505,pl:.35907,wV:-11.324},{U:525,j9:.3132,pl:.35968,wV:-15.628},{U:550,j9:.32129,pl:.36011,wV:-23.325},{U:575,j9:.32931,pl:.36038,wV:-40.77},{U:600,j9:.33724,pl:.36051,wV:-116.45}],Jr.j7=function(t){for(var i=Jr.D$,e=2*t.x/(1.5-t.x+6*t.y),r=3*t.y/(1.5-t.x+6*t.y),n=0,a=0,s=0;s<31&&(n=r-i[s].pl-i[s].wV*(e-i[s].j9),!(s>0&&n<0));s++)a=n;for(;s>=i.length;)s--;n/=Math.sqrt(1+i[s].wV*i[s].wV),a/=Math.sqrt(1+i[s-1].wV*i[s-1].wV);var l=a/(a-n),h=1e6/((i[s].U-i[s-1].U)*l+i[s-1].U),o=e-((i[s].j9-i[s-1].j9)*l+i[s-1].j9),f=r-((i[s].pl-i[s-1].pl)*l+i[s-1].pl),u=Math.sqrt(1+i[s].wV*i[s].wV),p=1/u,c=i[s].wV/u,d=Math.sqrt(1+i[s-1].wV*i[s-1].wV),g=1/d,b=i[s-1].wV/d,m=(p-g)*l+g,x=(c-b)*l+b,M=Math.sqrt(m*m+x*x);m/=M,x/=M;var S=(o*m+f*x)*-3e3;return{Ur:h,Ro:S}},Jr.ab0=function(t,i){for(var e=Jr.D$,r=1e6/t,n=1;n<31&&!(r>>2;if(d[r+1]=b,b>4095)throw"e"}for(var r=0;r<16385;r++)g[r]=r;for(var r=0;r<5;r++)for(var m=d[r]+1;m<=d[r+1];m++)g[m]=g[m-1]+(1<>>2);v.raw.a59(T,L,w>>>2,k);var O=new Uint8Array(S+w);O.set(new Uint8Array(L.buffer),S);var E=[];UTIF._readIFD(u,O,S,E,0,!1);var D=E.pop(),B=D.t29458;t.t50728=[B[1]/B[0],1,B[1]/B[3]],t.t50730=[.5];var I=D.t29891;t.t50829=[I[1],I[0],I[3],I[2]]}else if(a.makerNote&&a.makerNote.t8208){for(var c=a.makerNote,N=c.t8208,V=N.length,j=0,R=new Uint8Array(256),r=249;r<256;r++)R[r]=r;for(var r=0;r<249;r++)R[r*r*r%249]=r;for(var r=0;r>>2,t.t50714=[f,f,f,f],t.t50717=[h[3]>>>2])}else if(t.t271[0].startsWith("Canon")){var i=t.data,G=i.slice(0),Z=t.t50752,_=[],U=0;if(Z==null||Z[0]==0&&Z[1]==0)_.push(t.width);else{for(var r=0;r>1)*X*2,r=0;r>>1,ht=t.height-wt>>>1;t.t50829=[ht,U,ht+wt,U+vt]}if(c.t12){var Ut=v.raw.Zv(c.t12);Mt=[1/Ut[0],1,1/Ut[1]]}else if(c.t151){var qt=v.raw.afS(c,151),Gt=qt[0],zt=qt[1],Nt=qt[2];if(Gt=="0100"&&zt>=80)throw"e";if(Gt=="0102"){for(var Kt=[],r=0;r<4;r++)Kt.push(ct(Nt,6+r*2));Mt=[Kt[1]/Kt[0],1,Kt[1]/Kt[3]]}else if(Gt=="0103"&&zt>=26){for(var Kt=[],r=0;r<4;r++)Kt.push(ct(Nt,16+r*2));Mt=[Kt[1]/Kt[0],1,Kt[3]/Kt[2]]}else if(Gt=="0204"&&zt>=564||Gt=="0205"&&zt>=284){for(var S=Gt=="0204"?6:14,Kt=[],r=0;r<4;r++)Kt.push(ct(Nt,S+r*2));Mt=[Kt[1]/Kt[0],1,Kt[1]/Kt[3]]}else throw"e"}else console.log("no white balance info");s=="NIKON D1"&&(Mt=[1,1,1]),Mt&&(t.t50728=Mt);var ai=c.t150?c.t150:c.t140;if(ai){var fi=ai[Ct++],di=ai[Ct++],$t;(fi==73||di==88)&&(Ct+=2110),Ct+=8;var si=1<1&&($t=Math.floor(si/(li-1))),fi==68&&di==32&&$t>0){for(r=0;r>>0)*3125+1>>>0;n[3]=n[3]<<1|(n[0]^n[2])>>>31;for(var s=4;s<127;s++)n[s]=(n[s-4]^n[s-2])<<1|(n[s-3]^n[s-1])>>>31;for(var s=0;s<127;s++)n[s]=A.l(a,s*4);for(;e>0;e--){n[s&127]=n[s+1&127]^n[s+1+64&127];var o=n[s&127],f=t[l];f^=o,i[h]=f,l++,h++,s++}}},v.raw.a0C=function(t,i){for(var e=A.$o(i,0,4),r=v.raw.ajH,n=0;n>>(s<<3)&255;var o=i[n&255],f=e[a&255];return[o,f,96]},v.raw.afS=function(t,i){var e=t["t"+i],r=e.length,n=v.raw.a0C(i,e),a=A.$o(e,0,4),s,l=n[4];if(l==null)s=e.slice(4);else{s=new Uint8Array(r-l);for(var h=v.raw.a3Z(t),o=h[0],f=h[1],u=h[2],p=0;p1;)c++;for(var rt=0;rt=250?Kt:F)<<2;Nt[ai]=i[di],Nt[ai+1]=i[di+1],Nt[ai+2]=i[di+2]}return v.Oy(Gt,Nt,3),f&&console.log(Date.now()-o),o=Date.now(),Nt},v.q5.xy=function(t,i,e,r,n,a,s,l,h){var o=t>>>16,f=t&65535,u=o-(e>>>16),p=f-(e&65535),c=o-(n>>>16),d=f-(n&65535),g=Math.sqrt(u*u+p*p)*s,b=Math.sqrt(c*c+d*d)*l;if(g+b>=h)return 1e9;var m=v.q5.aaJ(i,r,a);return m+g+b},v.q5.aaJ=function(t,i,e){var r=t>>>16,n=t>>>8&255,a=t&255,s=i>>>16,l=i>>>8&255,h=i&255,o=e>>>16,f=e>>>8&255,u=e&255,p=v.q5.alpha(t,i,e),c=r-(p*s+(1-p)*o),d=n-(p*l+(1-p)*f),g=a-(p*h+(1-p)*u);return Math.sqrt(c*c+d*d+g*g)},v.q5.alpha=function(t,i,e){var r=t>>>16,n=t>>>8&255,a=t&255,s=i>>>16,l=i>>>8&255,h=i&255,o=e>>>16,f=e>>>8&255,u=e&255,p=s-o,c=l-f,d=h-u,g=r-o,b=n-f,m=a-u,x=p*p+c*c+d*d,M=x==0?.5:(g*p+b*c+m*d)/x;return Math.max(0,Math.min(1,M))},v.q5.acM=function(t){},v.q5.sL=function(t,i,e,r,n){for(var a=[],s=i-1,l=e-1,h=1;h>>2,console.log(u,d),p=v.R(u.M()),v.E4(f.Ww,p,0),v.Oy(i,o,0),f=v.Ar(o,e),f=v.Ar(f.Ww,f.rect),c=v.R(u.M()),v.E4(f.Ww,c,0);var g=v.UA.aam(p,c,u,d,n),b=g[0],m=g[1],x=new et(0,0,u.Z*2,u.h*2);b=h(b,u,x,!0),b=h(b,x,e,!0),m=h(m,u,x,!0),m=h(m,x,e,!0);for(var M=v.R(l),S=0;S>>2,s>>>2),d=r>>>2,p=v.UA.aaC(t,a,s),c=v.UA.ajp(i,a,s),f&&console.log(Date.now()-o),o=Date.now();var g=v.UA.abQ(p,c,u,d,n),b=g[0],m=g[1],x=g[2],M=g[3];f&&console.log(Date.now()-o),o=Date.now();for(var S=v.R(l),w=0;w>>2)*(a>>>2)+(k>>>2),O=T<<2,E=b[L]*i[O]+m[L]*i[O+1]+x[L]*i[O+2]+M[L]*255;S[T]=Math.max(0,Math.min(255,~~(.5+E)))}return f&&console.log(Date.now()-o),o=Date.now(),S},v.UA.aaC=function(t,i,e){for(var r=i>>>2,n=e>>>2,a=v.R(i*e),s=0;s>>2,n=e>>>2,a=v.R(i*e*4),s=0;si-l-1||f>e-l-1){var p=f*i+u,c=p<<2,d=0;fi-l-1&&(d=8),h[d]+=t[c],h[d+1]+=t[c+1],h[d+2]+=t[c+2],h[d+3]++,n[p]=255}for(var p=0;p<12;p+=4)for(var g=0;g<3;g++)o[p+g]=h[p+g]/h[p+3];for(var b=new Float32Array(r),p=0;p>>1,s=e>>>1,D=1/Math.sqrt(E*E+s*s),f=0;f=0;s--)v.bT.jh(n*a-n+s,1,t,i,e,r);for(var l=a-2;l>=0;l--){v.bT.jh(l*n+n-1,n,t,i,e,r);for(var s=n-2;s>=0;s--){var h=l*n+s;v.bT.jh(h,1,t,i,e,r),v.bT.jh(h,n,t,i,e,r)}}},v.bT.jh=function(t,i,e,r,n,a){var s=t+i,l=e[t],h=r[s],o=n[s];h0){var p=o;o=f,f=p}var c=a[f+"-"+o],d=a[o+"-"+h],g=a[h+"-"+f],b=[f,c,l,null],m=[o,d,l,b],x=[h,g,l,m];b[3]=x,c&&(c[1]=b),d&&(d[1]=m),g&&(g[1]=x),a[f+"-"+h]=x,a[h+"-"+o]=m,a[o+"-"+f]=b,e[h]=m,n[s]=m,e[o]=b,n[s+1]=b,e[f]=x,n[s+2]=x,r[l]=m}return{e0:e,f4:r,df:n}},v.jH.a2y=function(t){for(var i=[],e=t.f4,r=0;rd[2]&&d[3]==0&&v.jH.fS(t,c,f,p)<0&&v.jH.fS(t,p,u,c)<0;return m&&(e[0]=p,r[0]=c,e[3]=a,a[3]=s,s[3]=e,r[3]=l,l[3]=n,n[3]=r,n[2]=o,s[2]=h,i.f4[o]=l,i.f4[h]=a,i.e0[u]=s,i.e0[f]=n),m},v.jH.kR=function(t,i,e){var r=t[i*2]-t[e*2],n=t[i*2+1]-t[e*2+1];return Math.sqrt(r*r+n*n)},v.jH.adY=function(t,i,e){var r=e[1],n=e[3],a=n[3],s,l,h=e[2],o,f=e[0],u=a[0],p=n[0],c;r&&(s=r[3],l=s[3],o=r[2],c=s[0]);var d=t.length>>>1;t[2*d]=(t[2*u]+t[2*f])*.5,t[2*d+1]=(t[2*u+1]+t[2*f+1])*.5;var g=h,b=e,m=i.f4.length,x=[d,null,g,b],M=[p,x,m,a];x[1]=M;var S=[d,null,m,M];if(n[3]=x,a[3]=S,a[2]=m,i.f4[g]=n,i.f4[m]=S,i.e0[f]=n,i.e0[p]=a,i.df.push(x,M,S),r){var w=o,k=r,T=m+1;S[1]=k,k[1]=S;var L=[d,null,w,k],O=[c,L,T,l];L[1]=O;var E=[d,b,T,O];b[1]=E,s[3]=L,l[3]=E,l[2]=T,i.f4[w]=s,i.f4[T]=l,i.e0[u]=s,i.e0[c]=l,i.df.push(L,O,E)}i.e0[d]=b},v.jH.Yo=function(t,i){for(var e=0;;){for(var r=e,n=0;nl&&(s=o,l=f)}l>e&&(v.jH.adY(t,i,s),n++)}return n!=0},v.jH.a1z=function(t,i){for(var e=[],r=0,n=0;n>>1,g=i.e0[d],a=g,b=!0;do{if(a[1]==null){b=!1;break}a=a[1][3]}while(a!=g);if(b){var m=.02;t[n]+=m*e[n],t[n+1]+=m*e[n+1],r+=m*(e[n]*e[n]+e[n+1]*e[n+1])}}return r},v.jH.a9v=function(t,i,e){var r=v.D.nP(t),n=v.jH.En(t,i);v.jH.Yo(t,n);for(var a=0;a<300;a++){var s=!1,l=!1;s=v.jH.acD(t,n,e,5),s&&(l=v.jH.Yo(t,n));var h=v.jH.a1z(t,n);if(!s&&!l&&h<1e-4)break}return v.jH.a2y(n)},v.s8={},v.s8.xI=function(t){var i=t.n$,e=t.Zc,r=t.zM,n=t.qH,a=t.fU,s=t.VE,l=t.us,h=v.Aw.c$,o,f,u=0;function p(it){for(var nt=new Array(it),ot=0;ot>>1,d=p(i.dM*2),g=p(i.dM),b=p(i.dM),m=Date.now(),x=0;xL)){var D=e[T*2],B=e[T*2+1],I=e[L*2],N=e[L*2+1],V=n[T*2],j=n[T*2+1],R=n[L*2],G=n[L*2+1],Z=n[O*2],_=n[O*2+1],U=n[E*2],Y=n[E*2+1],$=[V,j,R,G,Z,_];k[1]&&$.push(U,Y);var P=h(i.a9X[u],$),tt=P[0],X=P[1],ht=1/Math.sqrt(tt*tt+X*X);tt*=ht,X*=ht;var F=I-D,J=N-B;g[u]=tt*F+X*J,b[u]=-X*F+tt*J,u++}}for(var Q=new Array(c),rt=new Array(c),x=0;x>>1,h=0,o=0,f=1e3,u=0;uw)){var L=i[S*2],O=i[S*2+1],E=i[w*2],D=i[w*2+1],B=i[k*2],I=i[k*2+1],N=i[T*2],V=i[T*2+1],j=[[L,O,1,0],[O,-L,0,1],[E,D,1,0],[D,-E,0,1],[B,I,1,0],[I,-B,0,1]];M[1]&&j.push([N,V,1,0],[V,-N,0,1]);var R=v.Aw.yT(j),G=n(linear.invert(n(R,j)),R);G.pop(),G.pop(),c.push(G);var Z=E-L,_=D-O,U=b[M[1]?1:0];U=v.Aw.gI(U,n([[Z,_],[_,-Z]],G));for(var Y=[S*2,S*2+1,w*2,w*2+1,k*2,k*2+1,T*2,T*2+1],$=M[1]?8:6,P=[],tt=0;tt<$;tt++)P.push([Y[tt],U[0][tt],U[1][tt]]);P.sort(function(nt,ot){return nt[0]-ot[0]});for(var X=0;X<2;X++){for(var tt=0;tt<$;tt++)m[tt]=P[tt][0],x[tt]=P[tt][1+X];d.Wz(x,m,$)}S>>1,s=new Array(a);if(e.length==0)return s.fill(0),s;for(var l=new Array(a),h=new Array(a),o=0;o=0&&Y>=0&&U+Y<=1){var $=1-U-Y,P=x*$+M*U+S*Y,tt=w*$+k*U+T*Y;v.P.eU(P,tt,a,l,h,u),v.s8.a7a(u,s,R*l+G<<2)}}},v.s8.a7a=function(t,i,e){var r=i[e],n=i[e+1],a=i[e+2],s=i[e+3],l=1-t[3]*(1/255);i[e]=~~(.5+t[0]+r*l),i[e+1]=~~(.5+t[1]+n*l),i[e+2]=~~(.5+t[2]+a*l),i[e+3]=~~(.5+t[3]+s*l)},v.s8.Is=function(){var t=function(e,r,n,a){var s=a[0],l=a[1],h=a[2],o=e[s+0],f=e[s+1],u=e[l+0],p=e[l+1],c=e[h+0],d=e[h+1],g=u-o,b=p-f,m=c-o,x=d-f,M=r-o,S=n-f,w=g*x-m*b,k=1/(w+1e-9),T=(M*x-m*S)*k,L=(g*S-M*b)*k;return T>=0&&L>=0&&T+L<=1?(a[3]=1-T-L,a[4]=T,a[5]=L,1):0},i=function(e,r,n,a){for(var s=[0,0,0,0,0,0],l=0;le*e||k<0||T<0||k>=x||T>=x)){var L=m[T*x+k];d+=w*L,g+=S*L}}c.Fu=Math.atan2(g,d)}}function h(f,u,p,c,d){var g=~~(f+.5),b=~~(u+.5);return n(p,c,g-a,g+a,b-a,b+a)}function o(f,u,p,c,d){if(t=c,i=d,s.length==0){let it=function(ot){var pt=ot[0]-ot[2],yt=ot[1]-ot[3];return pt*pt+yt*yt},nt=function(){for(var ot=0,pt=0;ot===0;)ot=g.get();for(;pt===0;)pt=g.get();return Math.sqrt(-2*Math.log(ot))*Math.cos(2*Math.PI*pt)};for(var Q=it,rt=nt,g=new v.N.Df(16200817),b=8,m=0,x=nt,M=[];m!=r;){var S=Math.max(-e,Math.min(e,x()*b)),w=Math.max(-e,Math.min(e,x()*b)),k=Math.max(-e,Math.min(e,x()*b)),T=Math.max(-e,Math.min(e,x()*b)),L=S-k,O=w-T,E=Math.sqrt(L*L+O*O);E<3||E>12||(s.push(S,w,k,T),m++)}}for(var D=20,B=0;B>>3);I.w1=U;for(var Y=0;Y>>3]|=(F>>1,w=S>>>1,k=Math.round(g/3);if(k!=g/3)throw"e";for(var T=1/(g*g),L=1.2*(g/9),O=S+1;O=U||x[_+b]>=U||x[_-Z-b]>=U||x[_-Z]>=U||x[_-Z+b]>=U||x[_+Z-b]>=U||x[_+Z]>=U||x[_+Z+b]>=U||o.push({x:~~(E*u.I6+.5),y:~~(O*u.I6+.5),Zh:E,TN:O,Mz:f,C:U,wy:M[_],Pg:L})}}}return s!=null&&(o.sort(function(J,Q){return Q.C-J.C}),o=o.slice(0,s)),o;for(var Y=[],_=0;_P.C&&(X.Mz==P.Mz+1||X.Mz==P.Mz-1)){var ht=P.x-X.x,F=P.y-X.y;if(ht*ht+F*F<5){$=!1;break}}}$&&Y.push(P)}return console.log(o.length,Y.length),Y}return{a87:n}}(),v.Hn={},v.Hn.a7r=function(t){var i=t.length,e=v.Hn.hj(t,!1),r=0,n=1;throw"e";for(var a,s;s>>1),u.length<10)return null;var p=v.Hn.ami(a[s],a[h],u,2);f.push([s,h,u,p])}f.sort(function(E,D){return D[2].length-E[2].length}),r&&console.log("Matches found",Date.now()-n),n=Date.now();for(var c=[],d=new UnionFind(e),s=0;s>>1][1]}for(var O=v.P.nJ(x[i]),s=0;ss||g==s&&b>>1,b=m-1):b=m=r>>>1;for(var s=0;s>>1:i[s]=(s&3)==3?g[r-1]:g[r-1]-g[0]}}else console.log(e)},v.Hr={},v.Hr.a9H=function(t,i,e,r,n){for(var a=v.Hr.DK(t.buffer,i,e).a2,s=Date.now(),l=new Uint32Array(a.length),h=0;h>2]=M.ind}return{zM:u,a2:o[1]}},v.Hr.DK=function(t,i,e){for(var r=[],n={},a=i-1,s=e-1,l=0,h=new Uint32Array(t),o=[-i-1,-i,-i+1,-1,1,i-1,i,i+1,i+i,2,-i-i,-2,i+i-1,i+i+1,i+2,-i+2,-i-i+1,-i-i-1,-i-2,i-2,i+i+2,-i-i+2-i-i-2,i+i-2],f=1;f>1,k=f+((S&1)==0?1:i),T=d.find(f),L=d.find(k),O=Math.min(g[T]+x/Math.sqrt(b[T]),g[L]+x/Math.sqrt(b[L]));if(T!=L&&w<=O){d.link(f,k),m--;var E=d.find(f);b[E]=b[T]+b[L],g[E]=w}}}for(var D=[],B={},I=new Uint16Array(n),f=0;f>2},v.Hr.xH=function(){function t(m,x,M,S,w,k){for(var T=[],L=k,O=k,E=k>>>2,D=0;D65535)throw D;for(var B=new Uint16Array(S),I=0;I>>T)}var tt=Math.min(M,_*w);for(Z+R>=E&&(tt=M);n!=0;){s(V);var X=V[r].pop(),ht=V[r].pop(),F=ht>>>16,J=ht&65535,I=F*x+J;if(B[I]==65535){var Q=X*6,rt=I<<2;B[I]=X,G[Q]+=m[rt],G[Q+1]+=m[rt+1],G[Q+2]+=m[rt+2],G[Q+3]+=J,G[Q+4]+=F,G[Q+5]++;var it=F>>>T;F!=tt-1&&B[I+x]==65535&&a(V,F+1<<16|J,X,h(m,x,L,J,F+1,G,Q)+it),F!=0&&B[I-x]==65535&&a(V,F-1<<16|J,X,h(m,x,L,J,F-1,G,Q)+it),J!=0&&B[I-1]==65535&&a(V,F<<16|J-1,X,h(m,x,L,J-1,F,G,Q)+it),J!=x-1&&B[I+1]==65535&&a(V,F<<16|J+1,X,h(m,x,L,J+1,F,G,Q)+it)}}if(tt!=F){var nt=(Z+R)*O;G.fill(0,nt*6,(nt+O)*6);for(var F=(Z+R-2)*w;F=nt&&(B[I]=65535)}}}return{zM:B,zo:D,OR:G}}v.Hr.bY=function(m,x,M,S,w){for(var k=m.zo,T=x*M,L=m.OR,O=m.zM,E=c(S,O,k,T),D=new UnionFind(k),B=0,I=1;I>>7);w[E]=T=w[E]|D}}return T!=3};function h(m,x,M,S,w,k,T){var L=(w*x+S)*4,O=k[T+5],E=1/O,D=m[L]*O-k[T],B=m[L+1]*O-k[T+1],I=m[L+2]*O-k[T+2],N=S*O-k[T+3],V=w*O-k[T+4],j=Math.sqrt(D*D+B*B+I*I),R=Math.sqrt(N*N+V*V);return~~((j+M*R)*E+.5)}function o(m,x,M,S){var w=1/m[M+5],k=1/m[S+5],T=m[M]*w-m[S]*k,L=m[M+1]*w-m[S+1]*k,O=m[M+2]*w-m[S+2]*k,E=m[M+3]*w-m[S+3]*k,D=m[M+4]*w-m[S+4]*k,B=Math.sqrt(T*T+L*L+O*O),I=Math.sqrt(E*E+D*D);return~~(B+x*I+.5)}function f(m,x,M){var S=v.p0(m,new et(0,0,x,M)),w=S.rect.Z,k=S.rect.h,T=l(S.Ww,w,k),L=T.zM,O=Date.now(),E=new Uint16Array(x*M);E.fill(65535);for(var D=0;D>>4,V=m[D+1]>>>4,j=m[D+2]>>>4;k[B*4400+(N<<8|V<<4|j)]++,k[B*4400+4096]++,k[B*4400+4100+(N<<4|V)]++,k[B*4400+4360+N]++,E!=0&&(I=S[L-1])!=B&&u(T[B],I)==-1&&(T[B].push(I,0),T[I].push(B,0)),O!=0&&(I=S[L-x])!=B&&u(T[B],I)==-1&&(T[B].push(I,0),T[I].push(B,0))}for(var L=0;L>>7))}return w}v.Hr.a7$=function(m,x,M,S,w,k,T){for(var L=x*M,O=T[0],E=T[1],D=new UnionFind(S),B=c(w,m,S,L),I=-1,N=!0,V=0,j=0;jM&&(M=k,x=w)}return m[x]}function g(m,x,M,S){var w=m[M],k=m[S];p(w,u(w,S)),p(k,u(k,M));for(var T=0;T0)return 1;if(B<0)return 0}return 0}function u(L,O){var E=new t,D=L,B=O,I=0,N=1,V;for(E.color=n[O*a+L],E.sign=h(L,O,n,a)==E.color?"+":"-";E.Oi.push(D,B),D>E.WJ&&(E.WJ=D),DE.hu&&(E.hu=B),B>1),B+(N-I-1>>1),n,a)==E.color,R=h(D+(I-N-1>>1),B+(N+I-1>>1),n,a)==E.color;R&&!j?l.Jw=="right"||l.Jw=="black"&&E.sign=="+"||l.Jw=="white"&&E.sign=="-"||l.Jw=="majority"&&f(D,B,E.color)||l.Jw=="minority"&&!f(D,B,E.color)?(V=I,I=-N,N=V):(V=I,I=N,N=-V):R?(V=I,I=-N,N=V):j||(V=I,I=N,N=-V)}return E}for(var p=0,c=[];;){var p=o(p);if(p==-1)break;for(var d=Math.floor(p/a),g=u(p-d*a,d),b=0;bl.a8I&&c.push(g)}for(var b=0;b=0;k--){var T=c[k];if(!(w.b5T.WJ||w.HYT.hu)&&!!ln.a9t(T.Oi,w.Oi[0]+.5,w.Oi[1]+.5)){w.parent=k;break}}return c}function r(n,a){function s(O,E,D,B,I){this.x=O,this.y=E,this.VT=D,this.KF=B,this.y$=I}function l(O,E){return(E+O)%E}function h(O,E,D,B){return O*B-D*E}function o(O,E,D,B){return O*D+E*B}function f(O,E,D){return O<=D?O<=E&&E=0&&tt<=1?tt:X>=0&&X<=1?X:-1}function m(O){var E,D,B;O.sw=O.Oi[0],O.b8=O.Oi[1],O.Ho=[];var I=O.Ho;for(I.push(new s(0,0,0,0,0)),E=0;E=0;ht--)D[ht<<1]!=D[ot<<1]&&D[(ht<<1)+1]!=D[(ot<<1)+1]&&(ot=ht+1),N[ht]=ot;for(ht=E-1;ht>=0;ht--){var pt=l(ht+1,E)<<1;for(V[0]=V[1]=V[2]=V[3]=0,B=(3+3*(D[pt]-D[ht<<1])+(D[pt+1]-D[(ht<<1)+1]))/2,V[B]++,j=0,R=0,G=0,Z=0,ot=N[ht],J=ht;;){if(X=0,B=(3+3*Math.sign(D[ot*2]-D[J*2])+Math.sign(D[ot*2+1]-D[J*2+1]))/2,V[B]++,V[0]&&V[1]&&V[2]&&V[3]){I[ht]=J,X=1;break}if(P=D[ot*2]-D[ht*2],tt=D[ot*2+1]-D[ht*2+1],h(j,R,P,tt)<0||h(G,Z,P,tt)>0||(Math.abs(P)<=1&&Math.abs(tt)<=1||(_=P+(tt>=0&&(tt>0||P<0)?1:-1),U=tt+(P<=0&&(P<0||tt<0)?1:-1),h(j,R,_,U)>=0&&(j=_,R=U),_=P+(tt<=0&&(tt<0||P<0)?1:-1),U=tt+(P>=0&&(P>0||tt<0)?1:-1),h(G,Z,_,U)<=0&&(G=_,Z=U)),J=ot,ot=N[J],!f(ot,ht,J)))break}X==0&&(Y=Math.sign(D[ot*2]-D[J*2]),$=Math.sign(D[ot*2+1]-D[J*2+1]),P=D[J*2]-D[ht*2],tt=D[J*2+1]-D[ht*2+1],Q=h(j,R,P,tt),rt=h(j,R,Y,$),it=h(G,Z,P,tt),nt=h(G,Z,Y,$),F=1e7,rt<0&&(F=Math.floor(Q/-rt)),nt>0&&(F=Math.min(F,Math.floor(-it/nt))),I[ht]=l(J+F,E))}for(F=I[E-1],O.sF[E-1]=F,ht=E-2;ht>=0;ht--)f(ht+1,I[ht],F)&&(F=I[ht]),O.sF[ht]=F;for(ht=E-1;f(l(ht+1,E),F,O.sF[ht]);ht--)O.sF[ht]=F}function M(O){function E(tt,X,ht){var F=tt.lv,J=tt.Oi,Q=tt.Ho,rt,it,nt,ot,pt,yt,ct,vt,wt,Mt,Ct,gt,bt,xt,Dt=0;return ht>=F&&(ht-=F,Dt=1),Dt==0?(rt=Q[ht+1].x-Q[X].x,it=Q[ht+1].y-Q[X].y,ot=Q[ht+1].KF-Q[X].KF,nt=Q[ht+1].VT-Q[X].VT,pt=Q[ht+1].y$-Q[X].y$,yt=ht+1-X):(rt=Q[ht+1].x-Q[X].x+Q[F].x,it=Q[ht+1].y-Q[X].y+Q[F].y,ot=Q[ht+1].KF-Q[X].KF+Q[F].KF,nt=Q[ht+1].VT-Q[X].VT+Q[F].VT,pt=Q[ht+1].y$-Q[X].y$+Q[F].y$,yt=ht+1-X+F),Ct=(J[X<<1]+J[ht<<1])/2-J[0],gt=(J[(X<<1)+1]+J[(ht<<1)+1])/2-J[1],xt=J[ht<<1]-J[X<<1],bt=-(J[(ht<<1)+1]-J[(X<<1)+1]),ct=(ot-2*rt*Ct)/yt+Ct*Ct,vt=(nt-rt*gt-it*Ct)/yt+Ct*gt,wt=(pt-2*it*gt)/yt+gt*gt,Mt=bt*bt*ct+2*bt*xt*vt+xt*xt*wt,Math.sqrt(Mt)}var D,B,I,N,V=O.lv,j=new Array(V+1),R=new Array(V+1),G=new Array(V),Z=new Array(V+1),_=new Array(V+1),U=new Array(V+1),Y,$,P;for(D=0;D0;B--)U[B]=D,D=Z[D];for(U[0]=0,j[0]=0,B=1;B<=I;B++)for(D=U[B];D<=_[B];D++){for($=-1,N=_[B-1];N>=Z[D];N--)Y=E(O,N,D)+j[N],($<0||Y<$)&&(R[D]=N,$=Y);j[D]=$}for(O.qm=I,O.ph=new Array(I),D=V,B=I-1;D>0;B--)D=R[D],O.ph[B]=D}function S(O){function E(Mt,Ct,gt,bt,xt,Dt){for(var Ot=Mt.lv,kt=Mt.Ho,mt=0,It;gt>=Ot;)gt-=Ot,mt+=1;for(;Ct>=Ot;)Ct-=Ot,mt-=1;for(;gt<0;)gt+=Ot,mt-=1;for(;Ct<0;)Ct+=Ot,mt+=1;var Bt=kt[gt+1].x-kt[Ct].x+mt*kt[Ot].x,Ut=kt[gt+1].y-kt[Ct].y+mt*kt[Ot].y,qt=kt[gt+1].KF-kt[Ct].KF+mt*kt[Ot].KF,Gt=kt[gt+1].VT-kt[Ct].VT+mt*kt[Ot].VT,zt=kt[gt+1].y$-kt[Ct].y$+mt*kt[Ot].y$,Nt=gt+1-Ct+mt*Ot;bt[Dt]=Bt/Nt,bt[Dt+1]=Ut/Nt;var Kt=(qt-Bt*Bt/Nt)/Nt,ai=(Gt-Bt*Ut/Nt)/Nt,fi=(zt-Ut*Ut/Nt)/Nt,di=(Kt+fi+Math.sqrt((Kt-fi)*(Kt-fi)+4*ai*ai))/2;Kt-=di,fi-=di,Math.abs(Kt)>=Math.abs(fi)?(It=Math.sqrt(Kt*Kt+ai*ai),It!=0&&(xt[Dt]=-ai/It,xt[Dt+1]=Kt/It)):(It=Math.sqrt(fi*fi+ai*ai),It!=0&&(xt[Dt]=-fi/It,xt[Dt+1]=ai/It)),It==0&&(xt[Dt]=xt[Dt+1]=0)}var D=O.qm,B=O.ph,I=O.lv,N=O.Oi,V=O.sw,j=O.b8,R=new Array(D*2),G=new Array(D*2),Z=new Array(D),_=new Array(3),U,Y,$,P,tt,X,ht,F,J,Q,rt;for(O.e2=new i(D),U=0;Uot[4]?(_[0]=-ot[1],_[1]=ot[0]):ot[4]?(_[0]=-ot[4],_[1]=ot[3]):(_[0]=1,_[1]=0);var it=_[0]*_[0]+_[1]*_[1],nt=1/it;for(_[2]=-_[1]*yt-_[0]*pt,P=0;P<3;P++)ot[P*3+0]+=_[P]*_[0]*nt,ot[P*3+1]+=_[P]*_[1]*nt,ot[P*3+2]+=_[P]*_[2]*nt}if(tt=Math.abs(ct-pt),X=Math.abs(vt-yt),tt<=.5&&X<=.5){O.e2.Hi[U<<1]=ct+V,O.e2.Hi[(U<<1)+1]=vt+j;continue}if(ht=u(ot,pt,yt),J=pt,Q=yt,ot[0]!=0)for(rt=0;rt<2;rt++)vt=yt-.5+rt,ct=-(ot[1]*vt+ot[2])/ot[0],tt=Math.abs(ct-pt),F=u(ot,ct,vt),tt<=.5&&F1?1-1/V:0,R=R*(1/.75)):R=4/3,D.JC[I]=R;var J=3*I<<1;if(R>=a.a4f)D.k9[I]=0,D.p$[J+0]=D.p$[J+1]=0,D.p$[J+2]=tt,D.p$[J+3]=X,D.p$[J+4]=ht,D.p$[J+5]=F;else{R<.55?R=.55:R>1&&(R=1);var Q=.5+.5*R;D.k9[I]=1,D.p$[J]=p(Q,U,tt),D.p$[J+1]=p(Q,Y,X),D.p$[J+2]=p(Q,$,tt),D.p$[J+3]=p(Q,P,X),D.p$[J+4]=ht,D.p$[J+5]=F}D.alpha[I]=R,D.YH[I]=.5}D.a1E=1}function k(O){function E(){this.yw=0,this.ZY=0,this.ZE=0,this.fI=0,this.Jq=0,this.wV=0,this.Pg=0,this.alpha=0}function D(qt,Gt,zt,Nt,Kt,ai,fi){var di=qt.e2.Dy,$t=qt.e2.p$,si=qt.e2.Hi;if(Gt==zt)return 1;var li=Gt,Li=l(Gt+1,di),vi=l(li+1,di),yi=si[Gt<<1],_t=si[(Gt<<1)+1],wi=si[Li<<1],Zi=si[(Li<<1)+1],Vi=ai[vi];if(Vi==0)return 1;var Mi=d(yi-wi,_t-Zi);for(li=vi;li!=zt;li=vi){var vi=l(li+1,di),ce=l(li+2,di),Ri=si[vi<<1],zi=si[(vi<<1)+1],ee=si[ce<<1],Be=si[(ce<<1)+1];if(ai[vi]!=Vi||Math.sign(h(wi-yi,Zi-_t,ee-Ri,Be-zi))!=Vi||o(wi-yi,Zi-_t,ee-Ri,Be-zi)=zt&&(Ai+=fi[di]);var We=gi-Hi,Qi=Bi-re,qi=be-Hi,Re=Te-re,pi=Gi-Hi,Pi=Sr-re,xr=h(We,Qi,qi,Re),wr=h(We,Qi,pi,Pi),Cr=h(qi,Re,pi,Pi),Qe=xr+Cr-wr;if(wr==xr)return 1;var pe=Cr/(Cr-Qe),Er=wr/(wr-xr),bn=wr*pe/2;if(bn==0)return 1;var Ti=Ai/bn,lr=2-Math.sqrt(4-Ti/.3);for(Nt.ZY=p(pe*lr,Hi,gi),Nt.ZE=p(pe*lr,re,Bi),Nt.fI=p(Er*lr,Gi,be),Nt.Jq=p(Er*lr,Sr,Te),Nt.alpha=lr,Nt.wV=pe,Nt.Pg=Er,gi=Nt.ZY,Bi=Nt.ZE,be=Nt.fI,Te=Nt.Jq,Nt.yw=0,li=l(Gt+1,di);li!=zt;li=vi){vi=l(li+1,di);var qe=si[li<<1],ir=si[(li<<1)+1],Ri=si[vi<<1],zi=si[(vi<<1)+1];if(pe=b(gi-Hi,Bi-re,be-gi,Te-Bi,Gi-be,Sr-Te,Ri-qe,zi-ir),pe<-.5)return 1;var de=g(pe,Hi,gi,be,Gi),Dr=g(pe,re,Bi,Te,Sr),Mi=d(Ri-qe,zi-ir);if(Mi==0)return 1;var Ue=h(Ri-qe,zi-ir,de-qe,Dr-ir)/Mi;if(Math.abs(Ue)>Kt||o(Ri-qe,zi-ir,de-qe,Dr-ir)<0||o(qe-Ri,ir-zi,de-Ri,Dr-zi)<0)return 1;Nt.yw+=Ue*Ue}for(li=Gt;li!=zt;li=vi){vi=l(li+1,di);var Yi=li*3+2<<1,Xi=vi*3+2<<1,$e=$t[Yi],He=$t[Yi+1],na=$t[Xi],kr=$t[Xi+1];if(pe=b(gi-Hi,Bi-re,be-gi,Te-Bi,Gi-be,Sr-Te,na-$e,kr-He),pe<-.5)return 1;var de=g(pe,Hi,gi,be,Gi),Dr=g(pe,re,Bi,Te,Sr),Mi=d(na-$e,kr-He);if(Mi==0)return 1;var Ue=h(na-$e,kr-He,de-$e,Dr-He)/Mi,Wi=h(na-$e,kr-He,si[vi<<1]-$e,si[(vi<<1)+1]-He)/Mi;if(Wi*=.75*qt.e2.alpha[vi],Wi<0&&(Ue=-Ue,Wi=-Wi),Ue=0&&(Y=D(O,_,l(U,I),$,a.aif,rt,it),!Y);_--)(R[U]>R[_]+1||R[U]==R[_]+1&&j[U]>j[_]+$.yw)&&(V[U]=_,j[U]=j[_]+$.yw,R[U]=R[_]+1,G[U]=$,$=new E);for(Z=R[I],F=new i(Z),J=new Array(Z),Q=new Array(Z),U=I,_=Z-1;_>=0;_--){var It=l(U,I),Bt=_*3+0<<1,Ut=It*3+0<<1;V[U]==U-1?(F.k9[_]=B.k9[It],F.p$[Bt]=B.p$[Ut],F.p$[Bt+1]=B.p$[Ut+1],F.p$[Bt+2]=B.p$[Ut+2],F.p$[Bt+3]=B.p$[Ut+3],F.p$[Bt+4]=B.p$[Ut+4],F.p$[Bt+5]=B.p$[Ut+5],F.Hi[_<<1]=B.Hi[It<<1],F.Hi[(_<<1)+1]=B.Hi[(It<<1)+1],F.alpha[_]=B.alpha[It],F.JC[_]=B.JC[It],F.YH[_]=B.YH[It],J[_]=Q[_]=1):(F.k9[_]="CURVE",F.p$[Bt]=G[U].ZY,F.p$[Bt+1]=G[U].ZE,F.p$[Bt+2]=G[U].fI,F.p$[Bt+3]=G[U].Jq,F.p$[Bt+4]=B.p$[Ut+4],F.p$[Bt+5]=B.p$[Ut+5],F.Hi[_<<1]=p(G[U].Pg,B.p$[Ut+4],N[It<<1]),F.Hi[(_<<1)+1]=p(G[U].Pg,B.p$[Ut+5],N[(It<<1)+1]),F.alpha[_]=G[U].alpha,F.JC[_]=G[U].alpha,J[_]=G[U].Pg,Q[_]=G[U].wV),U=V[U]}for(_=0;_',h=0;h>>24&255)!=0){o+=''}}return o+="",o},ln.a9t=function(t,i,e){for(var r=t.length>>1,n,a=t[2*r-3]-e,s=t[2*r-2]-i,l=t[2*r-1]-e,h=l>a,o=0,f=0;fa);for(var f=0;f0&&l>0)&&!(n<0&&s<0)){if(a==l&&Math.min(n,s)<=0)return!0;if(a!=l){var u=n+(s-n)*-a/(l-a);if(u==0)return!0;u>0&&o++,a==0&&h&&l>a&&o--,a==0&&!h&&la}}return(o&1)==1},ln.fill=function(t,i,e,r){for(var n=i[t],a=[t],s=0;si.getParameter(i.MAX_TEXTURE_SIZE)&&(q.pQ=!1,alert("Disabling WebGL"))},q.Y_=function(t,i){return new Float32Array([(t.x-i.x)/i.Z,(t.y-i.y)/i.h,t.Z/i.Z,t.h/i.h])},q.Oa=function(){return this.w7},q.k1=function(t,i){var e=q.ui;e.bindFramebuffer(e.FRAMEBUFFER,q.JI),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t.g3,0),e.viewport(0,0,t.Z,t.h),i?(e.enable(e.SCISSOR_TEST),e.scissor(i.x,i.y,i.Z,i.h)):e.disable(e.SCISSOR_TEST)},q.N6=function(t,i,e){if(e)throw"error";var r=q.ui;r.disable(r.SCISSOR_TEST),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,t,i),e?(r.enable(r.SCISSOR_TEST),r.scissor(e.x,e.y,Math.round(e.Z),Math.round(e.h))):r.disable(r.SCISSOR_TEST)},q.clear=function(){var t=q.ui;t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT)},q.OL=function(t,i){i==null&&(i=0);var e=(i>>>0&255)==0,r=(i>>>8&255)==0,n=(i>>>16&255)==0,a=(i>>>24&255)==0,s=(t>>>0&255)*(1/255),l=(t>>>8&255)*(1/255),h=(t>>>16&255)*(1/255),o=(t>>>24&255)*(1/255),f=q.ui;f.colorMask(e,r,n,a),f.clearColor(s,l,h,o),f.clear(f.COLOR_BUFFER_BIT),f.colorMask(!0,!0,!0,!0)},q.X6=function(t,i,e,r,n){var a=i.$X(r);if(n&&(a=a.$X(n)),!a.qr()){var s=q.ui;q.k1(t),s.bindTexture(s.TEXTURE_2D,e.g3),s.copyTexSubImage2D(s.TEXTURE_2D,0,a.x-r.x,a.y-r.y,a.x-i.x,a.y-i.y,a.Z,a.h)}},q.Wb=function(t,i,e){var r=q.EX[t];return(r==null||r.Z!=i||r.h!=e)&&(r&&r.delete(),r=new q._B(i,e)),q.EX[t]=r,r},q.EX=[],q.f2=function(){this.bS=null,this.B6=null},q.f2.G9=null,q.f2.prototype.ac=function(t){if(!this.B6){this.B6={};for(var i=q.ui,e=this.bS,r=this.B6,n=0;n>>1),i.activeTexture(i["TEXTURE"+(e>>>1)]),i.bindTexture(i.TEXTURE_2D,t[e+1]);i.activeTexture(i.TEXTURE0)},q.f2.prototype.uZ=function(t,i){var e=q.ui,r=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(r,t),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)||console.log(e.getShaderInfoLog(r));var n=e.createShader(e.VERTEX_SHADER);e.shaderSource(n,i),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS)||console.log(e.getShaderInfoLog(n));var a=e.createProgram();e.attachShader(a,n),e.attachShader(a,r),e.linkProgram(a),e.getProgramParameter(a,e.LINK_STATUS)||console.log("Could not initialise shaders"),this.bS=a},q.f2.prototype.kt=function(){q.f2.G9!=this&&(q.ui.useProgram(this.bS),q.f2.G9=this)},q.p5=function(t,i){q.Cn++,q.Ce+=t*i,q.n9&&console.log("GL.Channels instances: "+q.Cn+", memory: "+q.Ce);var e=q.ui;this.Z=t,this.h=i,this.g3=e.createTexture(),this.z2=null,this.Xj(this.g3,t,i)},q.p5.prototype.Xj=function(t,i,e){var r=q.ui;r.bindTexture(r.TEXTURE_2D,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texImage2D(r.TEXTURE_2D,0,r.ALPHA,i,e,0,r.ALPHA,r.UNSIGNED_BYTE,null)},q.p5.prototype.set=function(t){var i=q.ui;i.bindTexture(i.TEXTURE_2D,this.g3),i.pixelStorei(i.UNPACK_ALIGNMENT,1),i.texImage2D(i.TEXTURE_2D,0,i.ALPHA,this.Z,this.h,0,i.ALPHA,i.UNSIGNED_BYTE,t),i.pixelStorei(i.UNPACK_ALIGNMENT,4)},q.p5.prototype.delete=function(){var t=q.ui;this.g3&&(t.deleteTexture(this.g3),q.Cn--,q.Ce-=this.Z*this.h),q.n9&&q.n9&&console.log("GL.Channels instances: "+q.Cn+", memory: "+q.Ce*4)},q.Cn=0,q._B=function(t,i,e){e==null&&(e=!1),q.Cn++,q.Ce+=t*i*4,q.n9&&console.log("GL.Channels instances: "+q.Cn+", memory: "+q.Ce);var r=q.ui;this.aj9=e,this.Z=t,this.h=i,this.g3=r.createTexture(),this.z2=null,this.Xj(this.g3,t,i)},q._B.prototype.set=function(t,i){var e=q.ui;if(e.disable(e.SCISSOR_TEST),e.bindTexture(e.TEXTURE_2D,this.g3),t==null||t instanceof Uint8Array){var r=this.Z*this.h;if(i==null||i.M()*10>r)e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.Z,this.h,0,e.RGBA,e.UNSIGNED_BYTE,t);else{var n=v.R(i.M()*4);v.BP(t,new et(0,0,this.Z,this.h),n,i),e.texSubImage2D(e.TEXTURE_2D,0,i.x,i.y,i.Z,i.h,e.RGBA,e.UNSIGNED_BYTE,n)}}else e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t)},q._B.prototype.get=function(t){var i=q.ui;q.k1(this),i.readPixels(0,0,this.Z,this.h,i.RGBA,i.UNSIGNED_BYTE,t)},q._B.prototype.ke=function(t){if(!t.qr()){var i=q.ui;if(this.z2==null&&(this.z2=i.createTexture(),this.Xj(this.z2,this.Z,this.h),q.Cn++,q.Ce+=this.Z*this.h*4),i.bindFramebuffer(i.FRAMEBUFFER,q.JI),i.bindTexture(i.TEXTURE_2D,this.z2),t){var e=Math.max(t.x,0),r=Math.max(t.y,0);i.copyTexSubImage2D(i.TEXTURE_2D,0,e,r,e,r,t.Z,t.h)}else i.copyTexImage2D(i.TEXTURE_2D,0,i.RGBA,0,0,this.Z,this.h,0)}},q._B.prototype.Xj=function(t,i,e){var r=q.ui;r.bindTexture(r.TEXTURE_2D,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.aj9?r.LINEAR:r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,i,e,0,r.RGBA,r.UNSIGNED_BYTE,null)},q._B.prototype.delete=function(){var t=q.ui;this.g3&&(t.deleteTexture(this.g3),q.Cn--,q.Ce-=this.Z*this.h*4),this.z2&&(t.deleteTexture(this.z2),q.Cn--,q.Ce-=this.Z*this.h*4),q.n9&&q.n9&&console.log("GL.Channels instances: "+q.Cn+", memory: "+q.Ce)},q._B.prototype.clone=function(){var t=q.ui,i=new q._B(this.Z,this.h);return q.k1(this),t.bindTexture(t.TEXTURE_2D,i.g3),t.copyTexImage2D(t.TEXTURE_2D,0,t.RGBA,0,0,this.Z,this.h,0),i},q.XR={aiT:" vec3 ocbrn(vec3 a, vec3 b, float f) { vec3 d = (a*vec3(f)+ONE3-vec3(f)); return mix(ONE3 - min(ONE3,(ONE3-b)/d), ZERO3, vec3(vec3(greaterThan(vec3(0.001),d))) ); } ",acq:" vec3 ocddg(vec3 a, vec3 b, float f) { return mix( min(ONE3, b/(ONE3 - a*f)) , ONE3 , vec3(equal(a*f,ONE3 )) ); } ",EW:"const vec3 ZERO3 = vec3(0.0,0.0,0.0) ; const vec3 QUAR3 = vec3(0.25,0.25,0.25) ; const vec3 HALF3 = vec3(0.5,0.5,0.5) ; const vec3 ONE3 = vec3(1.0,1.0,1.0) ;",iP:" float hueDiff(float shue, float hue) { float df = hue-shue, adf=abs(df), df0 = df-1.0, df1 = df+1.0; if(abs(df0) < adf) df = df0; else if(abs(df1) < adf) df = df1; return df; }",NN:" float hueCF(float hueS, float hue0) { float df = hueDiff(hue0, hueS)*6.0; return max(0.0, min(1.0, (df<0.0) ? 1.0+df : 1.0-df )); } ",TO:"float sat(vec3 c) { return max(c.x,max(c.y,c.z)) - min(c.x,min(c.y,c.z)); }",ec:"float lum(vec3 c) { return dot(c, vec3(0.3,0.59,0.11)); } ",fY:"vec3 D (vec3 x) { return mix( sqrt(x), ((16.0*x-12.0)*x+4.0)*x , vec3(lessThanEqual(x,QUAR3)) ); }",afj:"float midSat (vec3 v, float s) { return ((v.y-v.z)*s)/(v.x-v.z); }",i8:"vec3 setSat (vec3 c, float s) { vec3 o; if(c.r==c.g && c.g==c.b) o = ZERO3; else if(c.r>c.g) { if(c.r>c.b) { if(c.g>c.b) o = vec3(s, midSat(c.rgb,s), 0.0); else o = vec3(s, 0.0, midSat(c.rbg,s)); } else o = vec3(midSat(c.brg,s), 0.0, s); } else { if(c.rc.b) o = vec3(0.0, s, midSat(c.gbr,s)); else o = vec3(0.0, midSat(c.bgr,s), s); } else o = vec3(midSat(c.grb,s), s, 0.0); } return o; }",a6Q:"vec3 clipCol(vec3 c) { vec3 o = c; float l = lum(c); float n = min(c.r,min(c.g,c.b)); float x = max(c.r,max(c.g,c.b)); if(n<0.0) o = l + (o-l)*(l/(l-n)); if(x>1.0) o = l + (o-l)*(1.0-l)/(x-l); return o; }",Am:"vec3 setLum (vec3 c, float l) { return clipCol(c+l-lum(c)); } ",aS:"bool in01(vec2 c) { return (0.0<=c.x) && (c.x<=1.0) && (0.0<=c.y) && (c.y<=1.0); }",hash:"float hash(vec2 v) { return fract(sin(dot(v ,vec2(12.9898,78.233))) * 43758.5453); }",T4:"vec3 rgbToHsl (vec3 rgb) { float r = rgb.r, g = rgb.g, b = rgb.b; float mx = max(r, max(g, b)), mn = min(r, min(g, b)); float h, s, l = (mx + mn) * 0.5; if(mx == mn) h = s = 0.0; else{ float d = mx - mn; s = l > 0.5 ? d / (2.0 - mx - mn) : d / (mx + mn); if(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); else if(mx==g) h = (b - r) / d + 2.0; else if(mx==b) h = (r - g) / d + 4.0; h /= 6.0; } return vec3(h,s,l); }",Uq:"vec3 hslToRgb (float h, float s, float l){ float r, g, b; if(s == 0.0) r = g = b = l; else{ float q = l < 0.5 ? l * (1.0 + s) : l + s - l * s; float p = 2.0 * l - q; r = hue2rgb(p, q, h + 1.0/3.0); g = hue2rgb(p, q, h); b = hue2rgb(p, q, h - 1.0/3.0); } return vec3(r,g,b); } ",C7:"float hue2rgb(float p, float q, float t){ if(t < 0.0) t += 1.0; if(t > 1.0) t -= 1.0; if(t < 1.0/6.0) return p + (q - p) * 6.0 * t; if(t < 1.0/2.0) return q; if(t < 2.0/3.0) return p + (q - p) * (2.0/3.0 - t) * 6.0; return p; }",eE:"vec3 rgbToHsv(vec3 rgb){ float r = rgb.r, g = rgb.g, b = rgb.b; float mx = max(r, max(g, b)), mn = min(r, min(g, b)); float h, s, v = mx; float d = mx - mn; s = mx == 0.0 ? 0.0 : d / mx; if(mx == mn) h = 0.0; else if(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); else if(mx==g) h = (b - r) / d + 2.0; else if(mx==b) h = (r - g) / d + 4.0; h /= 6.0; return vec3(h,s,v); }",ul:"vec3 hsvToRgb(float h, float s, float v) { float r, g, b, f, p, q, t, i; i = floor(h * 6.0); f = h * 6.0 - i; p = v * (1.0 - s); q = v * (1.0 - f * s); t = v * (1.0 - (1.0 - f) * s); if (i==0.0) { r = v, g = t, b = p; } else if(i==1.0) { r = q, g = v, b = p; } else if(i==2.0) { r = p, g = v, b = t; } else if(i==3.0) { r = p, g = q, b = v; } else if(i==4.0) { r = t, g = p, b = v; } else if(i==5.0) { r = v, g = p, b = q; } return vec3(r,g,b); }",tm:" float srgbUngamma(float x) { return (x<0.04045) ? (x / 12.92) : pow( ( x + 0.055 ) / 1.055, 2.4); } float xyzScale(float x) { return (x>0.008856) ? pow(x,1.0/3.0) : (903.3*x+16.0)*(1.0/116.0); } vec3 rgbToLab(vec3 rgb) { bool ok = true; rgb.r = srgbUngamma(rgb.r); rgb.g = srgbUngamma(rgb.g); rgb.b = srgbUngamma(rgb.b); ok = ok && 0.0318<=rgb.r && rgb.r<=0.0319; ok = ok && 0.127 <=rgb.g && rgb.g<=0.128 ; ok = ok && 0.3047<=rgb.b && rgb.b<=0.305; mat3 srgb2xyz = mat3(0.4360747164307918, 0.222504478679176, 0.013932173981751634, 0.3850649153329662, 0.7168786002139355, 0.09710452396580642, 0.14308038098632878, 0.06061692340677909, 0.7141732835334675); vec3 xyz = srgb2xyz*rgb; ok = ok && 0.106<=xyz[0] && xyz[0]<=0.107; xyz=xyz*vec3(100.0/96.72, 100.0/100.0, 100.0/81.427); xyz.x = xyzScale(xyz.x); xyz.y = xyzScale(xyz.y); xyz.z = xyzScale(xyz.z); return vec3(116.0*xyz.y-16.0, 500.0*(xyz.x-xyz.y), 200.0*(xyz.y-xyz.z)); } float labSimilar(vec3 lab, vec3 mnm, vec3 mxm, float lim) { float L=lab.x, a=lab.y, b=lab.z; float dl = ((L1.0?1.0:mi); }"},q.MY={q4:{},XX:" attribute vec2 verPos; varying vec2 sCoord; void main(void) { sCoord = verPos; gl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0); }"},q.MY.WD=function(t,i){var e=Vt.vo,r=[e.u1,e.xj,e.tn,e.I9,e.Ki,e.Lr,e.ta,e.$g].indexOf(t.type),n=q.MY.q4[t.type];n==null&&(n=q.MY.q4[t.type]=new q.q4[r]),n.kt(),n.WL(i,t),q.ui.drawArrays(q.ui.TRIANGLES,0,6)},q.q4=[],q.q4[0]=function(){q.f2.call(this),this.Nk={};var t=" precision mediump float; "+q.XR.ec+" "+q.XR.EW+" uniform sampler2D source; uniform sampler2D map; uniform float toGray; uniform float presLum; varying vec2 sCoord; void main(void) { vec4 src = texture2D(source, sCoord); float olum = lum(src.rgb); src.rgb = toGray * vec3(olum) + (1.0-toGray)*src.rgb; float r = texture2D(map, vec2(src.r, 0)).r; float g = texture2D(map, vec2(src.g, 0)).g; float b = texture2D(map, vec2(src.b, 0)).b; vec3 col = vec3(r,g,b); if(presLum==1.0) { float nlum = lum(col); if(olum>nlum) col += (olum-nlum)/(1.0-nlum)*(ONE3-col); else if(nlum==0.0) col = ZERO3; else col = (olum/nlum) * col; } gl_FragColor = vec4(col,src.w); }";this.uZ(t,q.MY.XX)},q.q4[0].prototype=new q.f2,q.q4[0].prototype.WL=function(t,i){var e={U:i.KW,S:i.mf,i:i.Si,m:v.R(i.KW.length)},r=e.U.length;this.Nk["m"+r]==null&&(this.Nk["m"+r]={afT:new q._B(r,1),Ww:v.R(r*4)});var n=this.Nk["m"+r];v.sA(e,n.Ww,0);var a=n.afT;a.set(n.Ww),this.ac(["source","map","toGray","presLum"]);var s=q.ui,l=this.B6;s.uniform1f(l.toGray,i.Ak?1:0),s.uniform1f(l.presLum,i.qi?1:0),this.ID([l.source,t,l.map,a.g3])},q.q4[1]=function(){q.f2.call(this),this.L0=new q._B(256,1),this.rA=v.R(256*4);var t=" precision mediump float; "+q.XR.C7+" "+q.XR.T4+" "+q.XR.Uq+" uniform sampler2D source; uniform sampler2D map; uniform float cfa; uniform float cfb; uniform int colorize; varying vec2 sCoord; void main(void) { vec4 src = texture2D(source, sCoord); vec3 rgb = src.rgb; float mn=min(rgb.r,min(rgb.g,rgb.b)), mx = max(rgb.r,max(rgb.g,rgb.b)); vec3 hsl = rgbToHsl(rgb); float h = hsl.r, s = hsl.g, l = hsl.b; vec4 mapv = texture2D(map, vec2(h, 0)); float nh = mapv.r; float sc = mapv.g*2.0-1.0; float lc = mapv.b*2.0-1.0; float cf = -lc, tv=mn; if(0.00.0) sc = pow(tan((3.14159265359/2.0)*sc),1.3); ns = min(s * (1.0 + sc), 1.0); } gl_FragColor = vec4(hslToRgb(nh,ns,l),src.w); }";this.uZ(t,q.MY.XX)},q.q4[1].prototype=new q.f2,q.q4[1].prototype.WL=function(t,i){v.sA({U:i.Fp,S:i.fQ,i:i.J7,m:v.R(256)},this.rA),this.L0.set(this.rA),this.ac(["source","map","cfa","cfb","colorize"]);var e=q.ui,r=this.B6;e.uniform1f(r.cfa,i.L3),e.uniform1f(r.cfb,i.Ds),e.uniform1i(r.colorize,i.vY),this.ID([r.source,t,r.map,this.L0.g3])},q.q4[2]=function(){q.f2.call(this);var t=" precision mediump float; "+q.XR.C7+" "+q.XR.eE+" "+q.XR.ul+" "+q.XR.T4+" "+q.XR.Uq+" uniform sampler2D source; uniform float vib; uniform float sat; const float PI = 3.141592653; varying vec2 sCoord; void main(void) { vec4 src = texture2D(source, sCoord); vec3 hsl = rgbToHsv(src.rgb); float h=hsl.r, s=hsl.g, l=hsl.b; float sk0 = 0.0, sk1 = 45.0/360.0; float skin = (h2OI;5g7:@5nVPLIGeVMX`|njge-'&-$V&)/$BbHB4D%GNx`KSI=_f_menp%E+%vwKB4&'XQY``edhootpjxp&%*'vhxY{#>5HINMDXX]YnVW",m8:0,Vw:1,Zi:2,Nj:3},q.filter.WD=function(t,i){var e=q.filter,r=[e.m8,e.Vw,e.Zi,e.Nj].indexOf(t.type),n=q.filter.LH[t.type];n==null&&(n=q.filter.LH[t.type]=new q.LH[r]),n.kt(),n.WL(i,t),q.ui.drawArrays(q.ui.TRIANGLES,0,6)},q.LH=[0,0,0,0,0,0,0],q.LH[3]=function(){q.f2.call(this);var t='1%* !*709;O@;=ETOUgQZ`Uk5rnllx~|2)y)/.*:\\qPGFOOCH!^ZXXdjh}wij<-y+~T2.,,8>{wuu"(&;5\'(ZJ<@=JtRNLLX^\\qbYo2!tvv\'@N,(&&286K<3IkZNPP`z(fThremi%~pqC4+]-06+d/?BBXEM2TTdugYZ.|v," qrF5)X,#=OAWACCSlkYoY[[k&!6pfx||{0!w2D-$>P<\\J`HhWioTKewc$s(o0|14JNDEJX>:,-_OE7G@qi[MN!pdo&|vhi<, ,>42$%WG=/H*8FySLTp\\g{&))4:;7CC;$0CSRPXZ_cg]Wd]quw~$}\'-/50=wm $$#7-~8y(6L\\RRiYLP^}gZfo.z/Dr{"v-;1#)d/3AH?cORDJ$UUygY_~>45:6,*{|O?6;6f5>D9O]T[$yz ~ubjb?66;Iw$*B$-3(>LIob)."|^$(>C72s(+,"rzrOFFKK+3+e77[PuiRDJehh0gY_\'!gvx"y",~W&28P2;A6LZV}p7<0+k26LQE@!6KCBGC9\'06+AO6NuTiKSK&WW{o6*rdj&)(P(y GA(79B:BL?wIImiU]Bddt&wij>5s,B3H2$*T[\\a]`c]DSU^V^h[4rde9(nz$Q, 6599/^sZIHQQEJsja4cfla+ykl>7u.D5GK.?3Vk:CI>TbIM)PTh obft4my#A.BW&/5*@N3K?wmnvpMYb!h$,-7>2nz$B~EMNTWS0>CC /#KO,8A_G?=]kcM\\Pyi[\\/\'9384Iw!\'{2@49>iW6:t@DRYPj-p{~^bpwn6os;D|!/6-PJgP[:>y|rsx+~ %2#ae1ko}%{?H $KNc2;A6LZAX!ww||chm7ry0En&L(-(H]\'>S04}M?H\'VV\\b0i\\hq=#';this.uZ(y.Dj(t),y.Dj(q.filter.XX))},q.LH[3].prototype=new q.f2,q.LH[3].prototype.WL=function(t,i){this.ac("source iwh tdep rrad spec nois poly0 poly1".split(" "));var e=q.ui,r=this.B6;e.uniform2fv(r.iwh,i.I1),e.uniform1f(r.tdep,i.aly),e.uniform1f(r.rrad,i.a2M),e.uniform2fv(r.spec,i.a8y),e.uniform3fv(r.nois,i.a3H),e.uniformMatrix4fv(r.poly0,!1,i.a8J),e.uniformMatrix4fv(r.poly1,!1,i.abg),this.ID([r.source,t]);var n=e.LINEAR;e.activeTexture(e.TEXTURE0),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,n),e.activeTexture(e.TEXTURE0)},q.LH[0]=function(){q.f2.call(this);var t="1%* !*709;O@;=ETOUgQZ`Uk5|uqoo{\" 5,|,21-=_tSJIRRFK$kd`^^jpn$}opB3 1%ZB;755AGEZTFGyiYT.unjhhtzx.w!'{2@7/3;5mUO=Q[NVRmgYZ,|sFux~sM5~(.#9G23E'?;AOZm_QR$th$}|$mv|q(62M?_E=1GFJJ@o%kZYbbV[%{o-{mn@9AHHMLCVW\\X\\?PDgo\\#jT]cXn|x5&F,$w.-11'VkRA@II=BkbVsbTU' z//43*=>C?C&7+NVCiQ;DJ?Uc`zl-rj^tswwm=R9('00$)RI=ZI;^DWXd\\S;Sn_ epe!~n)$9!zlm@0\"6V<.286-;;O=bTFGyqyTk(#`x31(8r*DA~7ROF.E_\\:Rlgj g]Seiih|drz1xs>$AV>?D>:75SD;FNj\\XUSztszdmsh~-({6V5g7:@5\\`QEzbc";this.uZ(y.Dj(t),y.Dj(q.filter.XX))},q.LH[0].prototype=new q.f2,q.LH[0].prototype.WL=function(t,i){this.ac(["source","iwh","ld","shine"]);var e=q.ui,r=this.B6;e.uniform2fv(r.iwh,i.I1),e.uniform3fv(r.ld,i.akp),e.uniform1f(r.shine,i.ab4),this.ID([r.source,t,r.tang,i.B9])},q.LH[1]=function(){q.f2.call(this);var t=`1%* !*709;O@;=ETOUgQZ\`Uk5|uqoo{" 5,|,21-=_tSJIRRFK$kd\`^^jpn$}opB3 1%ZB;755AGEZDMSH^lYfY4{tpnnz!~4}'-"8F,?9FJEAya[I]gZb^ysef8) R"%+ YA+4:/ES?;PHjLU[Pfths*!jsyn%3'3E?>E/8>3IWM?X:HVl-ribj'r}2PpV@IORXp\\w-tn\`a3$u|]0P6*I.3\`H2;A6LZQqt$]V^z'**/+@("stF7}M@\`F-LlRLXf^DWQ^b]Yv$|hdyq4r")@,L:MQ>^a_:IPgSsbtxe&)$9!vl~##"6,0,7OP\\\\acjhmi~fglfb_]{lcnv3%!}{C=& qrF5{++AaG?3IHLLBq'm\\[ddX]'}tGvy t?D>:75SD;FNj\\XUSztszdmsh~-x+S-&'0'S?89B9u]GPVKaofmx9~338F.(yzN=494IiOG;QPTTJy/udcll\`e/&|O~"(|DYA;-._P:GYy_tsxuvfZpossi9N5%t%!H?6h8;A6]eSWmZLM~w#$.(/0:14I1+|}O@(FfL6CpXBNTlQYbp]4*8 lB;G/{@CD>=D>01bSGYy_V)X[aV0wams,mv|q(6,YOPUcKAmfgjmns"i_z}~xw~xjk=.~x7W=RQVSTD8NMQQGv,rbRb^&|p,4"&<)z{MFQR\\V]^h_bw_LLpP^f|e_*e-C:;@<65<-'bU93lTUZB\`!fWQ+rfx'<"rl5w)|R:$-3(>LGRrXSDKLP_uc|2ypup&4I/*?-!76::0_t[JIRRFKtk_z0wnu,A~E-yy>,Z\\+=QK1D:9Fx\`afN*|Yf4{|"ltjT$u~]--39IiOFKFefrrwyah|2yz`;this.uZ(y.Dj(t),y.Dj(q.filter.XX))},q.LH[2].prototype=new q.f2,q.LH[2].prototype.WL=function(t,i){this.ac(["source","tang","iwh","sigma","expo"]);var e=q.ui,r=this.B6;e.uniform2fv(r.iwh,i.I1),e.uniform1f(r.sigma,i.sC),e.uniform1f(r.expo,i.R5),this.ID([r.source,t,r.tang,i.B9]);var n=e.LINEAR;e.activeTexture(e.TEXTURE0),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,n),e.activeTexture(e.TEXTURE0)},q.N={},q.N.Ix={},q.N.QM=null,q.N.TE=null,q.N.tl=null,q.N.Q4=function(t,i,e,r,n,a,s,l){l==null&&(l=St.jx()),"idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(t)==-1&&(s=s*l.fill,l.fill=1,l.style=!1);var h=t+(l.Lc?"1":"");q.N.Ix[h]==null&&(q.N.Ix[h]=new q.N.Nb(t,l.Lc!=null));var o=q.N.Ix[h],f=e.$X(n).$X(a);if(f.offset(-n.x,-n.y),!f.qr()){var u=q.ui;q.k1(r,f),r.ke(f),o.kt(),o.WL(i.g3,r.z2,q.Y_(e,n),s,l.fill,l.style?1:0,l.YU?1:0,l.Lc?new Float32Array(l.Lc):null),u.drawArrays(u.TRIANGLES,0,6)}},q.N.CG=function(t,i,e,r,n,a,s,l,h,o,f){q.N.QM==null&&(q.N.QM=new q.N.tv(!0,!0)),q.N.TE==null&&(q.N.TE=new q.N.tv(!0,!1)),q.N.tl==null&&(q.N.tl=new q.N.tv(!1,!0));var u=o?1:0,p=t?n?q.N.QM:q.N.TE:q.N.tl,c=new Float32Array(f?[f[0],f[1],f[2],1]:[1,1,1,1]),d=i?i.$X(r).$X(l):r.$X(l);if(!d.qr()){d.offset(-r.x,-r.y);var g=q.ui;q.k1(e,d),e.ke(d),p.kt(),t==null?p.WL(null,e.z2,n.g3,q.Y_(r,r),q.Y_(a,r),s/255,h,u,c):n?p.WL(t.g3,e.z2,n.g3,q.Y_(i,r),q.Y_(a,r),s/255,h,u,c):p.WL(t.g3,e.z2,null,q.Y_(i,r),null,s/255,h,u,c),g.drawArrays(g.TRIANGLES,0,6)}},q.N.aim=function(t,i,e){q.N.n1==null&&(q.N.n1=new q.N.wo);var r=q.N.n1,n=new et(0,0,t.Z,t.h),a=q.ui;q.k1(i),i.ke(n),r.kt(),r.WL(n,t.g3,i.z2,e.g3),a.drawArrays(a.TRIANGLES,0,6)},q.N.EH={norm:"return a;",diss:"return a;",dark:"return min(a,b);","mul ":"return a*b;",idiv:" vec3 d = (a*vec3(f)+ONE3-vec3(f)); return mix(mix(ONE3-((ONE3-b)/max(d,vec3(1e-6))), ZERO3, vec3(greaterThanEqual(ONE3-b,d)) ), ONE3 , vec3(equal(b,ONE3) )); ",lbrn:"return max(ZERO3, a*f+b-f);",dkCl:"return ( lum(a)lum(b) ? a : b );",over:"return mix( a+(2.0*b -1.0)-a*(2.0*b-1.0) , 2.0*b*a , step(-HALF3,-b) );",sLit:"return mix( b+(2.0*a -1.0)*(D(b)-b) , b-(1.0-2.0*a)*b*(1.0-b) , step(-HALF3,-a) );",hLit:"return mix( b+(2.0*a -1.0)-b*(2.0*a-1.0) , 2.0*a*b , step(-HALF3,-a) );",vLit:" return mix( ocddg(2.0*a-1.0,b,f) , ocbrn(2.0*a,b,f) , vec3(greaterThanEqual(HALF3,a))); ",lLit:"return mix( min(ONE3, (2.0*a-1.0)*f+b) , max(ZERO3, 2.0*a*f+b-f) , step(-HALF3,-a));",pLit:"return mix( max(2.0*a-1.0,b) , min(2.0*a, b) , step(-HALF3,-a) );",hMix:"if(f>0.99) return vec3(greaterThanEqual(a+b,ONE3)); return min( ONE3, max(ZERO3, (b+a*f-f)/(1.0-f+1e-6) )) ; ",diff:"return abs(a*f-b);",smud:"return a+b-2.0*a*b;",fsub:"return max(b-a, ZERO3);",fdiv:"return min(b/a, ONE3);","hue ":"return setLum( setSat(a, sat(b)) , lum(b) ); ","sat ":"return setLum( setSat(b, sat(a)) , lum(b) ); ",colr:"return setLum( a, lum(b) ); ","lum ":"return setLum( b, lum(a) ); "},q.N.Nb=function(t,i){q.f2.call(this);var e=" precision mediump float; "+q.XR.EW+" uniform sampler2D source; uniform sampler2D target; uniform float alpha; uniform float fill; uniform float style; uniform float keepBGA; "+(i?"uniform vec4 blIf[10];":"")+" varying vec2 tCoord; varying vec2 sCoord; "+q.XR.TO+" "+q.XR.ec+" "+q.XR.fY+" "+q.XR.aiT+" "+q.XR.acq+" "+q.XR.afj+" "+q.XR.i8+" "+q.XR.a6Q+" "+q.XR.Am+" "+q.XR.hash+" "+(i?q.XR.XM:"")+" vec3 BB(vec3 a, vec3 b, float f) { "+q.N.EH[t]+" } void main(void) { vec4 tgt = texture2D(target, tCoord); vec4 src = texture2D(source, sCoord);",r=" attribute vec2 verPos; uniform vec4 srct; varying vec2 tCoord; varying vec2 sCoord; void main(void) { tCoord = verPos; sCoord = (verPos-srct.xy)/srct.zw; gl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0); }";t=="diss"?e+=" gl_FragColor = (hash(tCoord) >= (keepBGA + (1.0-keepBGA)*src.w)*alpha ? tgt : vec4(src.xyz, keepBGA*tgt.w + (1.0-keepBGA))); }":e+=" float as = (keepBGA + (1.0-keepBGA)*src.w) * alpha, at = keepBGA + (1.0-keepBGA)*tgt.w; "+(i?" as*=blendIf(src,tgt,blIf); ":"")+" float ats = at * (1.0-as), ao = as + ats, iao = (ao==0.0) ? 0.0 : (1.0/ao); float ccf = (style==1.0) ? 1.0 : as; vec3 ncl = ( (1.0-at)*as*src.xyz + (1.0-ccf)*at*tgt.xyz + ccf*at*BB(src.xyz, tgt.xyz, (1.0+as-ccf)*fill) ) * iao; gl_FragColor = vec4(ncl, keepBGA*tgt.w + (1.0-keepBGA)*(as*fill + at*(1.0-as*fill))); }",this.uZ(e,r)},q.N.Nb.prototype=new q.f2,q.N.Nb.prototype.WL=function(t,i,e,r,n,a,s,l){this.ac("srct alpha source target fill style keepBGA blIf".split(" "));var h=q.ui,o=this.B6;h.uniform4fv(o.srct,e),h.uniform1f(o.alpha,r),h.uniform1f(o.fill,n),h.uniform1f(o.style,a),h.uniform1f(o.keepBGA,s),l&&h.uniform4fv(o.blIf,l),this.ID([o.source,t,o.target,i])},q.N.tv=function(t,i){q.f2.call(this),this.ab9=t,this.aR=i;var e=" precision mediump float; uniform sampler2D source; uniform sampler2D target; uniform sampler2D weight; uniform vec4 cswitch; uniform float wcolor; uniform float awg; /* additional weight */ uniform float dissv; varying vec2 tCoord; varying vec2 sCoord; varying vec2 wCoord; "+q.XR.aS+" "+q.XR.hash+" void main(void) { vec4 tgt = texture2D(target, tCoord); vec4 src = "+(t?"texture2D(source, sCoord)":"vec4(0.0)")+"; float wg = awg "+(i?"* (in01(wCoord) ? texture2D(weight, wCoord).w : wcolor)":"")+"; "+(t?"":"wg = 1.0-wg;")+" float hwg = hash(tCoord)>=wg ? 0.0 : 1.0; wg = dissv*hwg + (1.0-dissv)*wg; float as = wg*src.w, at = (1.0-wg)*tgt.w, ao = as+at; vec4 nc = vec4( (as*src.xyz + at*tgt.xyz)/ao, ao ); gl_FragColor = "+(i?"nc":"cswitch*nc + (1.0- cswitch)*tgt")+"; }",r=" attribute vec2 verPos; varying vec2 tCoord; varying vec2 sCoord; varying vec2 wCoord; uniform vec4 srct; uniform vec4 wrct; void main(void) { tCoord = verPos; sCoord = (verPos-srct.xy)/srct.zw; wCoord = (verPos-wrct.xy)/wrct.zw; gl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0); }";this.uZ(e,r)},q.N.tv.prototype=new q.f2,q.N.tv.prototype.WL=function(t,i,e,r,n,a,s,l,h){this.aR?this.ac("srct wrct wcolor awg dissv source target weight cswitch".split(" ")):this.ac("srct awg dissv source target cswitch".split(" "));var o=q.ui,f=this.B6;o.uniform4fv(f.srct,r),this.aR?(o.uniform4fv(f.wrct,n),o.uniform1f(f.wcolor,a)):o.uniform4fv(f.cswitch,h),o.uniform1f(f.awg,s),o.uniform1f(f.dissv,l);var u=[f.source,t,f.target,i];this.aR&&u.push(f.weight,e),this.ID(u)},q.N.wo=function(){q.f2.call(this);var t=" precision mediump float; uniform sampler2D prev; uniform sampler2D next; uniform sampler2D alpha; varying vec2 coord; void main(void) { vec3 or = texture2D(prev , coord).rgb; vec3 ir = texture2D(next , coord).rgb; float al = texture2D(alpha, coord).w; gl_FragColor = vec4( (ir-(1.0-al)*or)*(1.0/al) ,1.0 ); }",i=" attribute vec2 verPos; varying vec2 coord; uniform vec4 rct; void main(void) { coord = verPos; gl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0); }";this.uZ(t,i)},q.N.wo.prototype=new q.f2,q.N.wo.prototype.WL=function(t,i,e,r){this.ac(["rct","prev","next","alpha"]);var n=q.ui,a=this.B6;n.uniform4fv(a.rct,[0,0,1,1]),this.ID([a.prev,i,a.next,e,a.alpha,r])};function Dn(){}Dn.ee=function(t){var i=new Uint8Array(t),e=0,r={Xu:[],A6:[],list:[]},n=A.lU(i,e);if(e+=2,n<=2)return Dn.aep(i);var a=A.lU(i,e);e+=2;var s=A.$o(i,e,8);e+=8;var l=A.l(i,e);e+=4,l>0&&(r.Xu=Dn.W_(i,e,l,a,n)),e+=l;var h=A.$o(i,e,8);e+=8;var o=A.l(i,e);e+=4,o>0&&(r.A6=Ye.by(i,e,o)),e+=o;var f=A.$o(i,e,8);e+=8;var u=A.l(i,e);if(e+=4,u>0){var p={};Yt.Gz(i,p,e+4),r.list=p.Brsh.v}e+=u;for(var c=r.list,d=0;d>>l&1;if(h){if(a==0){var o=Ce.OO(t,i);i+=2+2*o.length}else{var o=Ce.ako(t,i);i+=256}n.push(o)}else n.push(a==0?[0,0,255,255]:Ce.abl())}for(var f=Zt.tt("curv"),l=0;l<4;l++)if(a==0){for(var u=n[l],p=[],c=0;c1,c&&(c.v.masterFXSwitch==null&&(c.v.masterFXSwitch={t:"bool",v:!0}),pr.lm(c.v))}return r},yl.PZ=function(t,i){t.By.Nm.v=i},yl.qx=function(t){var i=new sr,e=0;A.Fh(i,e,2),e+=2,A.bh(i,e,"8BSL"),e+=4,A.Fh(i,e,3),e+=2;var r=e;e+=4,e=Ye.C4(i,e,t.f1),A.oL(i,r,e-r-4);var n=t.hI.length;A.oL(i,e,n),e+=4;for(var a=0;a>>2)-16;throw console.log(A.h$(i,d,64)),console.log(A.h$(c,d,64)),console.log(i.slice(d,d+64)),console.log(c.slice(d,d+64)),a}return console.log(r),[r]},da.aB=function(t,i){var e=A.l(t,i);return A.$o(t,i+4,e)},da.DA=function(t,i,e){A.oL(t,i,e.length),A.bh(t,i+4,e)},da.qx=function(t){var i=new sr,e=0;A.oL(i,e,16),e+=4,A.lS(i,e,t.tP+"\0"),e+=4+t.tP.length*2+2,i.cj(e,1),i.data[e++]=t.exp?1:0;var r=t.xX.length;A.oL(i,e,r),e+=4;for(var n=0;n>>2);else if(r==3||r==4){n=new Float32Array(l*h*2);var o=0,f=0,u=!0;for(e=r==3?32:16+8+40;e1e3)throw"e";return e==0&&(e=4),A.$o(t,i+4,e).trim()},Yt.lJ=function(t,i){var e=A.tF(t,i);return e==0?8:4+e},Yt.Me=function(t,i,e){var r="warp list Comp xx xy yx yy tx ty PinP PnRt PnOv PnDp xor PuX0 PuX1 PuX2 PuX3 PuY0 PuY1 PuY2 PuY3 base kana ruby flow trim then else".split(" "),n=4=12&&(r[l].sW=A.$o(t,i+8,4));break;case"lsdk":r.lsct={type:A.l(t,i)};break;case"lyvr":r[l]=A.l(t,i);break;case"lnsr":var u={artb:1,bgnd:1,cont:1,layr:1,lset:1,rend:1,shap:1,user:1,____:null};r[l]=A.$o(t,i,4);break;case"lspf":r[l]=A.l(t,i);break;case"lclr":r[l]=A.lU(t,i);break;case"luni":r[l]=A.O_(t,i);break;case"fxrp":r[l]=new st(A.VZ(t,i),A.VZ(t,i+8));break;case"artb":case"artd":r[l]={},Yt.Gz(t,r[l],i+4);break;case"SoCo":r[l]={},Yt.Gz(t,r[l],i+4);break;case"GdFl":r[l]={},Yt.Gz(t,r[l],i+4),pr.dQ(r[l],l);break;case"PtFl":r[l]={},Yt.Gz(t,r[l],i+4),pr.dQ(r[l],l);break;case"CgEd":var p=r.brit=Zt.tt("brit"),c={};Yt.Gz(t,c,i+4),p.Brgh.v=c.Brgh?c.Brgh.v:0,p.Cntr.v=c.Cntr?c.Cntr.v:0,p.useLegacy.v=c.useLegacy?c.useLegacy.v:0;break;case"brit":if(r.brit==null){var p=r.brit=Zt.tt("brit"),c={};p.Brgh.v=A.dx(t,i),p.Cntr.v=A.dx(t,i+2),p.useLegacy.v=!1}break;case"levl":var d=t.buffer.slice(i,i+h);r[l]=Ke.ee(d);break;case"curv":r[l]=Ce.TM(t,i,h);break;case"expA":var g=A.lU(t,i),b=r[l]=Zt.tt("expA");b.Exps.v=A.C2(t,i+2),b.Ofst.v=A.C2(t,i+6),b.gammaCorrection.v=A.C2(t,i+10);break;case"vibA":r[l]={},Yt.Gz(t,r[l],i+4);break;case"hue2":r[l]=rr.TM(t,i,h);break;case"blnc":var b=r[l]=Zt.tt(l);b.PrsL.v=t[i+18]==1;for(var m=["ShdL","MdtL","HghL"],f=0;f<3;f++)for(var x=0;x<3;x++)b[m[f]].v[x].v=A.dx(t,i+f*6+x*2);break;case"blwh":var M={};Yt.Gz(t,M,i+4);for(var b=Zt.tt(l),S="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" "),f=0;f>0&1)==1;U.AU=(Y>>1&1)==0,U.isEnabled=(Y>>2&1)==0,U.b=qr.xe(t,i+8,h-8,a.Z,a.h);break;case"shmd":r[l]={};for(var P=A.l(t,i),E=i+4,f=0;f>0&1&&(l=i[e],e++),c>>1&1&&(h=A.VZ(i,e),e+=8),c>>2&1&&(o=i[e],e++),c>>3&1&&(f=A.VZ(i,e),e+=8),(e-p&1)==1&&e++,t.s5=[l,h,o,f]}else r==20?e+=2:(t.NY=je.SZ(i,e),e+=18);return n+r},je.a0Y=function(t,i,e){if(A.oL(i,e,0),e+=4,t.g==null)return e;var r=e,n=!0;if(A.oL(i,e,0),A.nl(i,e,t.g.rect),e+=16,A.oO(i,e,t.g.color),e+=1,je.di(t.g,i,e,n),e+=1,n){t.NY&&(je.a6J(i,e,t.NY),e+=18),A.oO(i,e,15),e+=1;var a=t.jk(),s=t.add.vmsk;A.oO(i,e,a?a.au:255),e+=1,A.AD(i,e,a?a.bM:0),e+=8,A.oO(i,e,s?s.au:255),e+=1,A.AD(i,e,s?s.bM:0),e+=8,e++,A.oL(i,r-4,e-r)}return e},je.SZ=function(t,i){var e=new H.vm;return je.r9(e,t,i),i+=1,e.color=t[i],i+=1,e.rect=A.g$(t,i),i+=16,e},je.a6J=function(t,i,e){je.di(e,t,i,!1),i+=1,A.oO(t,i,e.color),i+=1,A.nl(t,i,e.rect),i+=16},je.r9=function(t,i,e){var r=i[e];return t.AU=(r>>0&1)==0,t.isEnabled=(r>>1&1)==0,t.tA=(r>>3&1)==1,r>>4&1},je.di=function(t,i,e,r){var n=0;t.AU||(n+=1<<0),t.isEnabled||(n+=1<<1),t.tA&&(n+=1<<3),r&&(n+=1<<4),A.oO(i,e,n)},je.adA=function(t,i,e){var r=A.l(i,e);if(e+=4,r==0)return e;r!=5*8&&console.log("unexpected Layer Blending Ranges content, size:",r);for(var n=0;n>>3),f=o&3,u=o+(f==0?0:4-f);if(s>3&&(console.log("unknown compression: "+s,r,n,r*n,l),s=0),s==0){if(a+u<=e.length)h=e.slice(a,a+u);else{h=v.R(o);for(var p=0;p>>8,b[k+1]=S&255}if(b.length==u)h=b;else{h=v.R(u);for(var p=0;p>>1]=h[p];h=T}return h},Fi.CP=function(t,i,e,r,n,a){var s=e*r;if(a==0)for(var l=0;l0;l=a,e-=f)if(u=e<128?e:128,l<=h-3&&t[l+1]==t[l+0]&&t[l+2]==t[l+0]){for(a=l+3;a=128){for(var h=t[i++],o=n+(257-l);n+1>>1];n&&(n.Qk=A.lU(e,p))}if(i.zQ.r1032)for(var e=i.zQ.r1032,c=A.l(e,12),p=0;p0){var x=t.add.Txt2?t.add.Txt2.lK:null;t.add.Txt2={},t.add.Txt2.lK=Ui.acU(r,null,x)}var M=t.add.lnk2;if(M){for(var S=t.add.lnk2=[],f=0;f2e3*3e3&&u<.5){var p=v.R(f.M()*4);v.BP(h.buffer,h.rect,p,f),h.buffer=p,h.rect=f,alert("Removing hidden parts of layers")}}},ne.a3y=function(t,i,e,r,n){var a=e;A.oL(i,e,0),e+=4;var s=t.r.length;A.Fh(i,e,n?-s:s),e+=2;for(var l=[],h=0;h>>3);else if(g==1){l=v.R(d);var x=t.W4?4:2;m==0&&(e+=t.fh*c*x),e+=Fi.NJ(i,l,p,c,b+m*c*x,e,x)}else{console.log("unknown compression of image data: ",g);return}if(m".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>"),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=0;e--)i+=String.fromCharCode(t>>e*8&255);return i},A.acH=function(t){for(var i=0,e=t.length-1;e>=0;e--)i|=t.charCodeAt(e)<<(3-e)*8;return i},A.indexOf=function(t,i,e,r){e==null&&(e=0),r==null&&(r=t.length),r=Math.min(r,t.length);for(var n=e;n>6,i[e+n+1]=128|s>>0&63,n+=2;else if((s&4294967295-(1<<16)+1)==0)i[e+n]=224|s>>12,i[e+n+1]=128|s>>6&63,i[e+n+2]=128|s>>0&63,n+=3;else if((s&4294967295-(1<<21)+1)==0)i[e+n]=240|s>>18,i[e+n+1]=128|s>>12&63,i[e+n+2]=128|s>>6&63,i[e+n+3]=128|s>>0&63,n+=4;else throw"e"}return n},A.NQ=function(t,i){var e=A.l(t,i),r=A.bc(t,i+4,e-1);return{Pg:r,lr:4+e}},A.ae0=function(t,i){var e=A.L6(t,i),r=A.zg(t,i+4,e);return r},A.O_=function(t,i){var e=A.l(t,i),r=A.Hp(t,i+4,e);return r},A.nf=function(t,i){var e=A.l(t,i),r=A.Hp(t,i+4,e-1);return r},A.ael=function(t,i,e){A.vH(t,i,e.length),i+=4,A.a3P(t,i,e)},A.afy=function(t,i,e){A.GB(t,i,e.length),i+=4,A.hZ(t,i,e)},A.lS=function(t,i,e){t.cj(i,4+2*e.length),A.afy(t.data,i,e)},A.ajd=function(t,i,e){t.cj(i,4+2*e.length),A.ael(t.data,i,e)},A.h$=function(t,i,e){for(var r=[],n=0;n>8&255,t[i+1]=e&255},A.Fh=function(t,i,e){t.cj(i,4),A.J6(t.data,i,e)},A.ab7=function(t,i){var e=A.lU(t,i),r=A.lU(t,i+2);return e+r*(1/65536)},A.ub=function(t,i,e){var r=Math.floor(e),n=Math.floor((e-r)*65536);A.J6(t,i,r),A.J6(t,i+2,n)},A.wP=function(t,i){return t[i+1]<<8|t[i]},A.qu=function(t,i,e){t[i+1]=e>>8&255,t[i]=e&255},A.a8=function(t,i,e){t.cj(i,4),A.qu(t.data,i,e)},A.dx=function(t,i){return A.W3[0]=t[i+1],A.W3[1]=t[i],A.y1[0]},A.XS=function(t,i){return A.W3[0]=t[i],A.W3[1]=t[i+1],A.y1[0]},A.Gl=A.J6,A.N7=A.Fh,A.tF=function(t,i){return A.YT[0]=t[i+3],A.YT[1]=t[i+2],A.YT[2]=t[i+1],A.YT[3]=t[i],A.B8[0]},A.V3=function(t,i,e){A.B8[0]=e,t[i+3]=A.YT[0],t[i+2]=A.YT[1],t[i+1]=A.YT[2],t[i+0]=A.YT[3]},A.Oc=function(t,i,e){t.cj(i,4),A.V3(t.data,i,e)},A.nv=function(t,i,e,r){e[r+0]=t[i+0],e[r+1]=t[i+1],e[r+2]=t[i+2],e[r+3]=t[i+3]},A.L6=function(t,i){return A.nv(t,i,A.YT,0),A.LP[0]},A.vH=function(t,i,e){A.LP[0]=e,A.nv(A.YT,0,t,i)},A.PU=function(t,i,e){t.cj(i,4),A.vH(t.data,i,e)},A.K8=function(t,i){return A.nv(t,i,A.YT,0),A.B8[0]},A.a7C=function(t,i,e){A.B8[0]=e,A.nv(A.YT,0,t,i)},A.aiu=function(t,i,e){t.cj(i,4),A.a7C(t.data,i,e)},A.l=function(t,i){var e=t[i]*(256*256*256)+(t[i+1]<<16|t[i+2]<<8|t[i+3]);return e},A.GB=function(t,i,e){t[i]=e>>24&255,t[i+1]=e>>16&255,t[i+2]=e>>8&255,t[i+3]=e>>0&255},A.oL=function(t,i,e){t.cj(i,4),A.GB(t.data,i,e)},A.k0=function(t,i){return A.l(t,i)<<32|A.l(t,i+4)},A.a1A=function(t,i,e){A.GB(t,i,e>>16>>16),A.GB(t,i+4,e&4294967295)},A.X4=function(t,i,e){t.cj(i,8),A.a1A(t.data,i,e)},A.VZ=function(t,i){for(var e=new Uint8Array(8),r=0;r<8;r++)e[r]=t[i+7-r];var n=new Float64Array(e.buffer);return n[0]},A.a8o=function(t,i){for(var e=new Uint8Array(8),r=0;r<8;r++)e[r]=t[i+r];var n=new Float64Array(e.buffer);return n[0]},A.GU=function(t,i,e){var r=new Float64Array(1);r[0]=e;for(var n=new Uint8Array(r.buffer),a=0;a<4;a++){var s=n[a];n[a]=n[7-a],n[7-a]=s}for(var a=0;a<8;a++)t[i+a]=n[a]},A.AD=function(t,i,e){t.cj(i,8),A.GU(t.data,i,e)},A.C2=function(t,i){return A.YT[0]=t[i+3],A.YT[1]=t[i+2],A.YT[2]=t[i+1],A.YT[3]=t[i+0],A.Q5[0]},A.CC=function(t,i){return A.YT[0]=t[i+0],A.YT[1]=t[i+1],A.YT[2]=t[i+2],A.YT[3]=t[i+3],A.Q5[0]},A.PL=function(t,i,e){A.Q5[0]=e,t[i+0]=A.YT[3],t[i+1]=A.YT[2],t[i+2]=A.YT[1],t[i+3]=A.YT[0]},A.abq=function(t,i,e){t.cj(i,4),A.PL(t.data,i,e)},A.pq=function(t,i,e){A.Q5[0]=e,t[i+0]=A.YT[0],t[i+1]=A.YT[1],t[i+2]=A.YT[2],t[i+3]=A.YT[3]},A.a55=function(t,i,e){t.cj(i,4),A.pq(t.data,i,e)},A.a11=function(t,i){var e=A.tF(t,i),r=e*(1/(1<<24));return r},A.NF=function(t,i,e){var r=Math.floor(e*(1<<24));A.V3(t,i,r)},A.ajX=function(t,i,e){t.cj(i,4),A.NF(t.data,i,e)},A.Zd=function(t,i){var e=t[i],r=A.$o(t,i+1,e);return e+=1-e%2,{dC:r,length:e+1}},A.abM=function(t,i,e){var r=e.length;return t[i]=r,A.jW(t,i+1,e),r%2==0&&(t[i+1+r]=0,++r),r+1},A.JG=function(t,i,e){return t.cj(i,e.length+2),A.abM(t.data,i,e)},A.FB=function(t,i){var e=new Et;return e.m=A.VZ(t,i+0*8),e.i=A.VZ(t,i+1*8),e.p$=A.VZ(t,i+2*8),e.xA=A.VZ(t,i+3*8),e.PV=A.VZ(t,i+4*8),e.ye=A.VZ(t,i+5*8),e},A.kO=function(t,i,e){A.GU(t,i+0*8,e.m),A.GU(t,i+1*8,e.i),A.GU(t,i+2*8,e.p$),A.GU(t,i+3*8,e.xA),A.GU(t,i+4*8,e.PV),A.GU(t,i+5*8,e.ye)},A.agw=function(t,i,e){t.cj(i,48),A.kO(t.data,i,e)},A.abF=function(t,i){var e=A.C2(t,i),r=A.C2(t,i+4),n=A.C2(t,i+8),a=A.C2(t,i+12);return new et(e,r,n-e,a-r)},A.al6=function(t,i,e){A.PL(t,i,e.x),A.PL(t,i+4,e.y),A.PL(t,i+8,e.x+e.Z),A.PL(t,i+12,e.y+e.h)},A.a3v=function(t,i,e){t.cj(i,16),A.al6(t.data,i,e)},A.g$=function(t,i){var e=A.tF(t,i),r=A.tF(t,i+4),n=A.tF(t,i+8),a=A.tF(t,i+12);return new et(r,e,a-r,n-e)},A.iE=function(t,i,e){A.V3(t,i,e.y),A.V3(t,i+4,e.x),A.V3(t,i+8,e.y+e.h),A.V3(t,i+12,e.x+e.Z)},A.nl=function(t,i,e){t.cj(i,16),A.iE(t.data,i,e)},A.JN=function(t,i,e){for(var r=new Uint8Array(e),n=0;n=this.x&&t<=this.x+this.Z&&i>=this.y&&i<=this.y+this.h},et.prototype.oz=function(t){return this.contains(t.x,t.y)},et.prototype.Qh=function(t){return this.x<=t.x&&this.y<=t.y&&t.x+t.Z<=this.x+this.Z&&t.y+t.h<=this.y+this.h},et.prototype.fa=function(t){this.x=t.x,this.y=t.y,this.Z=t.Z,this.h=t.h},et.prototype.Qn=function(t){return this.x==t.x&&this.y==t.y&&this.Z==t.Z&&this.h==t.h},et.prototype.PK=function(t,i){this.x-=t,this.y-=i,this.Z+=2*t,this.h+=2*i},et.prototype.a5m=function(t){this.PK(t.x,t.y)},et.prototype.$X=function(t){var i=Math.max(this.x,t.x),e=Math.max(this.y,t.y),r=Math.min(this.x+this.Z,t.x+t.Z),n=Math.min(this.y+this.h,t.y+t.h);return rthis.x+this.Z||t.y>this.y+this.h||t.x+t.Z=7?s=s:alert("Unknown XCF version: "+l),a=8);var o={};r=ae.g6(e,r,o);var f=[];r=ae.vL(e,r,f,a);var u=[];r=ae.vL(e,r,u,a),i.GX=0;for(var p=0;p0;)i.r.push(i.Px()),i.GX--;i.r.reverse(),delete i.GX,i.buffer=v.R(i.Z*i.h*4),i.r.length==0&&console.log("No layers!!!");for(var p=0;ph;)e.r.push(e.Px()),e.GX--;e.GX=h,(s.add.lsct==Ci.lw||s.add.lsct==Ci.kE)&&e.GX++;var X=n==4?A.l:A.k0;if(s.Mq()){s.buffer=v.R(s.rect.M()*4);var ht=new v._B(s.rect.M()),F=X(t,i);i+=n;var J=X(t,i);i+=n,ae.hv(t,F,ht,r,n,a),v.sA(ht,s.buffer),J!=0&&(s.g=new H.vm,s.g.color=0,s.g.rect=s.rect.clone(),s.g.channel=ae.r6(t,J,r,n,a).AH,p[Xe.i_]&&(s.g.isEnabled=A.l(p[Xe.i_],0)==1))}e.r.push(s)},ae.a92=function(t){var i="("+A.bc(t,0,t.length-1)+")",e=[],r={};return ae.n3(i,1,e),ae.ahO(e,r),r},ae.ahO=function(t,i){for(var e=0;e=t.length)throw"e";var r=t.charAt(i);if(i++,r=="("){var n=[];i=ae.n3(t,i,n),e.push(n)}else if(!(r==" "||r==` `||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;M1&&(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;s1&&console.log(r.pages.length,"pages");for(var a=[],s=new et,l=0;l8e3*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;ci||Math.max(Math.round(t.Z/e),Math.round(t.h/e))>3e4;)e++;return e!=1&&!window.confirm("Your image is quite large ("+t.Z+" x "+t.h+` px). 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;n3e4&&h.Z<=3e4||l.h>3e4&&h.h<=3e4){alert("Re-arranging artboards");for(var n=0;n1&&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;S0&&(pt/=2);var vt=nt.v.Fltr.v;vt.Brgh.v=Math.round(ot*255),vt.Cntr.v=Math.round(pt*255),vt.useLegacy.v=!0,V.push(nt)}}}if(g){var wt=J.patternFillType;if(wt==3){var Mt=L.rect.Z/L.rect.h,Ct=u.Z/u.h;Mtmt.length;)xt[xt.length-2]--,Ot--,xt[xt.length-2]==0&&(xt.pop(),xt.pop());xt[xt.length-2]+=mt.length-Ot}mt=mt.replace(/\u2028/g,` `),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;Be1&&(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;e127&&(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;hr.length/2,h=0;h0),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;f1e6;if(L.type!="text"&&!E){var f=s.FB(L.transform);f.nJ();var D=m.clone();D.concat(f),x.add.vmsk=new H.iO,x.add.vmsk.b=s.Hy(O),D=D.clone(),D.nJ(),v.V.G5(x.add.vmsk.b,D),x._V(i)}else E||alert("Clipping by text has been ignored")}x.add.lsct=Ci.lw,x.sW="pass",x.ix=24,t.visible!=null&&x.vR(t.visible),i.r.push(i.Px());var B=h.children,I=c;if(I&&(I=I.color),I&&(I=I.value),c)if(l=="artboard"&&d=="solid")x.BE(new et(0,0,10,10)),x.add.artb.Clr={t:"Objc",v:v.j.$H({U:I.r,S:I.g,i:I.b})},x.add.artb.artboardBackgroundType={t:"long",v:4};else{var N=i.an();N.uf("BACKGROUND"),N.ix|=16,N.add.vstk=JSON.parse(JSON.stringify(at.bW.default)),N.add.vmsk=new H.iO,N.add.vmsk.b=s.Hy({type:"rect",x:a.x,y:a.y,width:a.Z,height:a.h}),s.ku(c,d,m,a,a,N,i,r,n),N._V(i),i.r.push(N)}for(var S=0;S>>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;m0){u=="text"&&(a=l.Tj(f,a));var G=f.getAttribute("viewBox"),Z=f.getAttribute("width"),_=f.getAttribute("height");if(G&&Z&&_){var U=ii.js(G),Y=l.Tj(f),$=new Et;$.translate(-U[0],-U[1]),$.scale(parseFloat(Z)/U[2],parseFloat(_)/U[3]),$.translate(Y.PV,Y.ye),$.concat(M),M=$}var P=f.children.length,tt=n.rB;n.rB=c;var X=u!="text"&&u!="textPath"||P>1;if(X){var ht=k.UQ();k.add.lsct=s<2&&ht&&(p==null||!p.endsWith(":::"))?Ci.lw:Ci.kE,k.sW="pass",k.ix=24,k.vR(ht),e.r.push(e.Px())}l.aX(t,f.children,e,M,n,a,s+1),X&&e.r.push(k),n.rB=tt}else if(u=="use"){var $=l.Tj(f);$.concat(M);var F=l.W5(f),J=t.getElementById(F.slice(1)),tt=n.rB;n.rB=c,l.aX(t,[J],e,$,n,a,s+1),n.rB=tt}else if(u=="path"||u=="rect"||u=="circle"||u=="ellipse"||u=="polygon"||u=="polyline"||u=="line"){k.ix|=16,k.add.vmsk=new H.iO,k.add.vstk=JSON.parse(JSON.stringify(at.bW.default)),k.add.vstk.strokeEnabled.v=!1;var Q=k.add.vstk,B=k.add.vmsk;B.b=l.Hy(t,f,c["fill-rule"]=="evenodd"),v.V.G5(B.b,M);var rt=v.V.ue(B.b),it=c.stroke,nt=c["stroke-width"],ot=c["stroke-dasharray"],pt=c.fill,yt=c["stroke-linejoin"],ct=c["stroke-linecap"],vt=c["paint-order"];if(!(it==null||it=="none"||it=="null")){var wt=l.zu(t,it,M,rt),Mt=["SoFi","GrFl","patternFill"].indexOf(wt.type),Ct=wt.C.v.Opct.v,gt=1;Ct.val!=100&&(k.opacity=Math.round(k.opacity*Ct.val/100),Ct.val=100);for(var bt=[at.QB,at.Zt,at.QZ][Mt],xt=Q.strokeStyleContent.v={classID:at.bW.bl[Mt]},N=0;N0){var Bt=l.YX(f.children[0],n.ms);for(var x in Bt)h.indexOf(x)==-1&&(c[x]=Bt[x])}var Ut=c["xml:space"],qt=f.textContent;Ut=="preserve"&&(qt=qt.replace(/\t/g," ").replace(/\n/g," ")),p==null&&k.uf(qt),k.add.lnsr="rend",k.add.TySh=lt.T_(0,0),k.add.TySh.xa=new et(0,0,100,100),k.add.TySh.O=$.clone();var Gt=k.add.TySh.MF;lt.v$(Gt,0,qt);var pt=c.fill,zt=c["font-weight"],Nt=c["font-family"],Kt=c["text-decoration"],it=c.stroke,nt=c["stroke-width"],ai=c["dominant-baseline"];ai=="text-before-edge"?It=d:ai=="middle"?It=d/2:ai=="hanging"&&(It=d),It!=0&&k.add.TySh.O.translate(0,It);var fi=lt.lW(Gt,0,1);if(pt&&pt!="none"){var di=te.HD(pt);fi.dS.FillColor={Type:1,Values:[1,di.U/255,di.S/255,di.i/255]}}if(Kt=="underline"&&(fi.dS.Underline=!0),fi.dS.FontSize=Math.round(d),lt.oi(fi,"LiberationSans"),zt=="bold"&<.oi(fi,"LiberationSans-Bold"),Nt){Nt=Nt.split(",")[0].trim(),Nt[0]=='"'&&(Nt=Nt.slice(1)),Nt[Nt.length-1]=='"'&&(Nt=Nt.slice(0,Nt.length-1));var $t=Nt+":"+(zt||"normal"),si={"'DejaVu Sans':normal":"AlibabaPuHuiTi-Regular","'DejaVu Sans':bold":"AlibabaPuHuiTi-Bold","'Nimbus Sans L':normal":"NimbusSanL-Reg","'Nimbus Sans L':bold":"NimbusSanL-Bol","Libre Franklin:300":"LibreFranklin-Light","Libre Franklin:400":"LibreFranklin-Regular","Libre Franklin:500":"LibreFranklin-Medium","Libre Franklin:600":"LibreFranklin-SemiBold","Libre Franklin:700":"LibreFranklin-Bold"};si[$t]?lt.oi(fi,si[$t]):lt.oi(fi,Nt)}if(c["text-anchor"]&&(fi.eS.Justification=["start","end","middle"].indexOf(c["text-anchor"])),lt.Ji(Gt,0,qt.length,fi),!(it==null||it=="none")){var li=JSON.parse(at.IW[at.order.indexOf("FrFX")]);li.Clr.v=v.j.$H(te.HD(it)),li.Sz.v.val=Math.round(parseFloat(nt)*C.X.d3($));for(var Li=JSON.parse(at.default),N=0;N');var l={Ns:[],xX:[],YO:0,PR:0,Mk:0,BB:{},pG:{},S5:0,hI:{},iR:{},gw:0,SN:[]};ii.Vb(t,l,t.root.children,1,i,e),l.Ns.length!=0&&(r.push(n.RC(1)+""),r=r.concat(l.Ns),r.push(n.RC(1)+"")),r.push(n.RC(1)+""),r=r.concat(l.xX),r.push(""),r=r.join(i.pu?` `:"");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'),i.Ns.push(s.RC(3)+''),i.Ns.push(s.RC(2)+"")}c.length!=0&&m.push('style="'+c.join(";")+'"'),i.xX.push(s.RC(r)+""),s.Vb(t,i,e[l].children,r+1,n,a),i.xX.push(s.RC(r)+"")}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)+'")}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)+"'),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)+"'),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)+"");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"+s.dC(pt)+"")}U+=ot}i.xX.push(s.RC(r)+"")}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)+'')}var Gt=v.P.br(gt);c.length!=0&&m.push('style="'+c.join(";")+'"');var zt=s.lN(m,x);i.xX.push(s.RC(r)+"')}else if(!h.rect.qr()&&(n.amv||p)){c.length!=0&&m.push('style="'+c.join(";")+'"');var zt=s.lN(m,x),Nt=h.buffer;w&&(Nt=St.BM(Nt,w,h.rect));var Kt=h.rect;i.S5++;var kt=ft.vd(Nt.buffer,Kt.Z,Kt.h,"png",null,!0);i.Ns.push(s.RC(2)+''),i.xX.push(s.RC(r)+"')}}}},ii.lN=function(t,i){return i.length!=0&&t.push('class="'+i.join(" ")+'"'),t.join(" ")},ii.dC=function(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/\u0022/g,""")},ii.kO=function(t){var i=[t.m,t.i,t.p$,t.xA,t.PV,t.ye].map(ii.EE);return"matrix("+i.join(",")+")"},ii.kz=function(t,i,e,r){var n=ii,a=i.vstk,s=i.vmsk,l=i.lmfx;if(s&&s.bM!=0){var h=n.EE(s.bM);e.BB[h]==null&&(e.PR++,e.BB[h]=e.PR,e.Ns.push(n.RC(2)+' ')),t.push("filter: url(#flt"+e.BB[h]+")")}var o=St.h4(l,i),f=o[0],u=o[1];if(a&&!a.fillEnabled.v)t.push("fill: none");else if(f){var p=te.O4(f.Clr.v);t.push("fill: "+p)}else u&&(n.Eu(u,e,r),t.push("fill: url(#grd"+e.YO+")"));if((a==null||!a.strokeEnabled.v)&&(a=St.ig(l)),a&&a.strokeEnabled.v){var c=a.strokeStyleContent.v,d=c.classID;d=="solidColorLayer"?t.push("stroke: "+te.O4(c.Clr.v)):(n.Eu(c,e,r),t.push("stroke: url(#grd"+e.YO+")"));var g=at.bW.Bb.indexOf(a.strokeStyleLineCapType.v.strokeStyleLineCapType),b=at.bW.join.indexOf(a.strokeStyleLineJoinType.v.strokeStyleLineJoinType),m=a.strokeStyleOpacity.v.val/100,x=a.strokeStyleLineWidth.v.val,M=at.bW.Ph.indexOf(a.strokeStyleLineAlignment.v.strokeStyleLineAlignment);M==2&&(x*=2,t.push("paint-order:stroke fill markers"));for(var S=a.strokeStyleLineDashSet.v,w=[],k=0;k'),h==1&&i.Ns.push(u+' cx="'+r.EE(f[0].x)+'" cy="'+r.EE(f[0].y)+'" r="'+r.EE(st.Yj(f[0],f[1]))+'">');var p=t.Rvrs.v;p&&(a.reverse(),s.reverse());for(var c=0;c")}i.Ns.push(r.RC(2)+"")},ii.Ny=function(t,i,e,r,n){var a=[],s=ii.Ny,l=!1,h={YY:t,mi:i,_r:[!0,!0,!0],mU:!1,Og:e,PA:0};if(h.eO=Math.round(Math.max(t,i)*(.02+s.Jv(h)*.03)),h.iB=s.akQ(h),h.DR=s.ame(h.iB,(s.Jv(h)<.5?-1:1)*(.2+s.Jv(h)*.3)),s.Jv(h)<.5){var o=h.iB;h.iB=h.DR,h.DR=o}h.a33=s.Jv(h)<.4&&s.ajF(h.DR,{U:1,S:1,i:1})>.3,h.agJ=s.Jv(h)<.5?0:1,a.push(''),h.OA=r[Math.floor(s.D5(h)*r.length)],h.m6=r[Math.floor(s.D5(h)*r.length)],a.push("");var f=[0,0,t,i],u=f;if(n==null?a.push(''):(h.mU=!0,s.mF(h,f,a,n)),s.Jv(h)<.25&&!h.mU)h._r[0]=h._r[2]=!1,s.aa5(f,h,a),u=f;else if(s.Jv(h)<.25||h.mU)u=f;else{var p=.52+s.Jv(h)*.2;s.Jv(h)<.5&&(p=1-p);var c=f.slice(0),d=f.slice(0);if(s.Jv(h)<.5?c[2]=d[0]=Math.round(p*t):c[3]=d[1]=Math.round(p*i),s.Jv(h)<.5){var o=c;c=d,d=o}u=c,s.a8T(h,d,a,n)}s.a3q(h,u,a),a.push(""),a=a.join(` `);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('');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('')}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(''),e.push('')),o!=1&&(e.push(''),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('');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(""),e.push(''),e.push("");var S=x/u;e.push('')}else{var w="cp"+Math.random();e.push(''),e.push(''),e.push(""),e.push('')}},ii.Ny.fK=function(t,i,e,r,n,a,s){var l=ii.Ny;return''+t+""},ii.Ny.sp=function(t,i,e,r,n){for(var a=ii.Ny,s=[],l=0;l');for(var l=0;l')}n.push("")},ii.Ny.a6b=function(t,i,e){for(var r=ii.Ny,n=ii.Ny.rQ,a=[],s=0;s0&&(S.h+=S.y,S.y=0),(i&1)==0?(u=x,f=M):(f=x,u=M);var w=Math.min(Math.min(.5+.5*h.Jv(t))*Math.min(M,x),n)/S.h,k=Math.ceil(f/(1e3*w)),T=new Et,L=new Et;L.scale(w,w),i==0||i==2?(L.translate(-(M/2),-(x/2)),L.rotate(-i*Math.PI/2),L.translate(M/2+e[0],x/2+e[1])):(L.rotate(Math.PI/2),L.scale(1,-1),L.translate(e[0],e[1]),i==1&&(L.scale(-1,1),L.translate(M,0))),r.push('');for(var p=0;p"),c},ii.Ny.Rect=function(t,i,e,r){return Typr.U.pathToSVG({crds:[t,i,t+e,i,t+e,i+r,t,i+r],cmds:["M","L","L","L","Z"]})},ii.Ny.a00=function(t,i,e,r,n){var a=[t,i,t+e,i,t+e,i+r,t,i+r];return t+=n,i+=n,e-=2*n,r-=2*n,a.push(t,i,t,i+r,t+e,i+r,t+e,i),Typr.U.pathToSVG({crds:a,cmds:"M L L L Z M L L L Z".split(" ")})},ii.Ny.ame=function(t,i){var e=v.T4(t.U,t.S,t.i);return e.lr=Math.max(.1,Math.min(.9,e.lr+i)),v.Uq(e.mi,e.Pg,e.lr)},ii.Ny.a3l=function(t,i){var e=v.T4(t.U,t.S,t.i);return e.mi+=i,v.Uq(e.mi,e.Pg,e.lr)},ii.Ny.al8=function(t){var i=v.T4(t.U,t.S,t.i);return i.lr=1-i.lr,v.Uq(i.mi,i.Pg,i.lr)},ii.Ny.ajF=function(t,i){var e=t.U-i.U,r=t.S-i.S,n=t.i-i.i;return Math.sqrt(e*e+r*r+n*n)},ii.Ny.akQ=function(t){var i=ii.Ny;return{U:i.Jv(t),S:i.Jv(t),i:i.Jv(t)}},ii.Ny.ai=function(t){return te.PO({U:t.U*255,S:t.S*255,i:t.i*255})},ii.Ny.nP=function(t){for(var i=t.A2,e=new et,r=0;r>>8*i&255;return e*(.99999999/255)},ii.Ny.D5=function(t){var i=ii.Ny.eT(t.Og);return t.Og=ii.Ny.eT(i),i*(1/4294967295)},ii.Ny.eT=function(t){return t=(t^61^t>>>16)>>>0,t=t+(t<<3)>>>0,t=(t^t>>>4)>>>0,t=t*668265261>>>0,t=(t^t>>>15)>>>0,t},ii.Ny.rQ=[{st:"0001-0-bird",A2:[["4b3c34",{W:"M C L C C L Z M C C L C C L Z M C L C L Z M C L C C L Z".split(" "),d:[208,16,253,5,247,86,228,104,218,108,253,60,235,12,211,18,210,18,209,17,208,16,208,16,187,140,238,125,326,133,319,189,318,198,307,210,299,207,297,205,307,208,316,195,317,188,320,126,208,137,174,149,187,140,137,75,156,79,177,94,164,157,173,147,177,101,165,79,142,75,137,75,368,59,165,59,182,233,0,210,0,225,161,250,194,61,364,63,367,61,368,59,368,59,368,59]}],["3c7040",{W:"M C C C C C L Z M C C C C L Z M C C C C L Z M C C C C L Z M C C C C C L Z M C C C C L Z M C C C C Z".split(" "),d:[345,123,324,113,331,70,284,80,287,79,310,89,314,103,314,104,306,90,284,82,281,81,270,85,268,86,274,117,335,119,345,123,345,123,270,0,283,29,282,58,244,66,258,62,265,40,269,27,265,37,256,56,249,58,242,31,263,18,270,0,270,0,89,100,81,136,47,182,101,196,90,189,92,157,91,145,94,160,93,191,109,195,148,158,96,129,89,100,89,100,230,187,201,240,160,226,133,198,150,191,172,197,187,198,166,193,153,190,134,193,159,162,207,194,230,187,230,187,126,177,131,159,129,150,119,139,122,122,145,112,147,97,166,128,164,155,134,168,139,154,146,142,145,131,143,145,133,159,126,177,126,177,209,86,195,86,166,91,173,109,177,102,181,97,191,96,180,99,174,113,175,113,194,114,200,96,209,86,209,86,278,175,254,167,235,168,231,143,245,143,248,151,256,158,252,147,243,144,240,142,276,147,265,171,278,175]}],["b588c1",{W:"M C C C C C C C C C C C C L Z".split(" "),d:[189,40,188,42,186,44,184,47,184,52,183,55,181,59,175,70,160,78,147,79,142,79,131,78,127,75,118,74,95,71,93,70,89,70,88,70,69,72,74,66,82,68,93,65,78,64,83,62,95,59,128,50,128,33,155,29,162,16,180,13,189,31,193,31,196,34,198,37,197,37,193,39,189,40,189,40]}]]},{st:"0001-0-bird2",A2:[["ff7f2a",{W:"M L L L Z M L L L Z".split(" "),d:[296,0,296,62,335,62,296,0,357,0,357,62,318,62,357,0]}],["b588c1",{W:"M C C C C C C C C C C C L Z".split(" "),d:[321,48,344,48,379,67,396,121,408,176,396,230,337,255,303,265,265,268,217,235,191,217,170,188,186,180,195,177,199,187,205,192,203,185,199,178,207,172,217,165,224,178,225,182,227,196,231,203,250,206,273,205,290,196,292,165,289,133,269,118,268,101,267,77,288,49,321,48,321,48]}],["74439e",{W:"M C C C C C C L Z M C C Z".split(" "),d:[337,187,329,202,317,204,304,204,293,204,284,205,293,224,286,216,278,209,268,214,257,220,262,237,269,243,284,258,310,256,323,243,337,227,339,208,337,187,337,187,340,77,310,78,287,81,315,96,269,83,309,75,340,77]}],["000000",{W:"M L L L Z M L L L Z".split(" "),d:[326,258,334,315,323,316,326,258,298,262,296,318,286,317,298,262]}],["4b3c34",{W:"M L C C C C C C C C L Z".split(" "),d:[0,272,0,336,63,296,119,296,175,320,205,330,229,339,278,338,322,337,354,322,405,325,443,329,482,332,501,377,501,366,502,348,474,328,464,320,440,312,384,309,296,309,300,333,186,293,118,264,54,250,0,272,0,272]}],["3c7040",{W:"M C C C Z M C C C Z M C C C L Z M C C C L Z M C C C L Z M C C C Z".split(" "),d:[58,260,44,247,27,239,20,208,15,188,32,182,43,198,59,227,56,242,58,260,181,323,167,336,150,345,143,375,138,396,155,401,166,385,182,356,179,342,181,323,60,260,79,249,100,243,113,214,122,194,102,186,86,200,62,227,65,242,60,260,60,260,499,378,479,377,462,372,435,388,417,399,425,415,444,411,476,403,484,390,499,378,499,378,501,379,494,397,482,411,488,442,491,463,511,461,514,442,520,410,508,397,501,379,501,379,503,378,513,390,516,402,531,413,546,421,557,412,548,401,534,382,519,379,503,378]}]]},{st:"0000-1-flower",A2:[["7a59a2",{W:"M C C C C C C C Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z".split(" "),d:[468,470,411,473,371,480,351,495,332,509,322,536,325,581,325,601,328,621,325,637,346,634,371,638,397,637,427,636,456,626,465,611,478,596,485,553,489,490,477,489,470,483,468,470,445,563,435,583,425,591,415,590,401,588,401,572,410,549,388,558,375,557,369,546,366,533,374,524,390,517,416,506,441,498,465,495,463,519,455,542,445,563,445,563,489,450,486,392,480,352,465,332,451,313,425,302,380,305,360,305,340,307,324,304,327,324,322,350,323,376,323,406,332,435,347,444,362,457,405,465,468,470,469,458,476,451,489,450,489,450,395,424,376,415,368,405,369,394,371,380,387,380,410,390,402,368,403,355,414,349,427,346,436,355,443,370,454,397,460,422,463,446,439,443,417,435,395,424,395,424,508,470,566,468,606,462,626,447,645,433,656,407,654,362,654,342,652,322,655,306,634,309,609,304,583,305,553,305,524,314,514,329,501,344,493,387,488,449,500,451,507,457,508,470,508,470,534,377,544,357,554,350,564,351,578,353,578,369,568,392,590,384,604,385,609,396,612,409,603,418,588,425,561,435,536,442,512,445,515,421,523,399,534,377,534,377,488,490,492,547,499,587,514,607,528,626,554,636,600,633,619,632,640,630,656,633,652,612,656,587,655,560,655,531,645,502,629,493,614,480,571,473,508,469,507,481,501,488,488,490,488,490,582,513,602,523,610,533,609,543,607,557,591,557,568,548,577,570,576,583,565,589,552,592,542,584,535,568,524,542,517,517,514,493,538,495,560,503,582,513,582,513]}]]},{st:"0000-1-flower",A2:[["d13777",{W:"M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z".split(" "),d:[474,503,457,528,452,530,450,528,450,523,469,498,464,493,388,522,332,552,314,585,297,628,322,660,372,639,361,698,421,709,450,665,467,649,477,596,482,505,474,503,474,503,439,563,431,563,424,556,424,548,424,539,431,532,439,532,447,532,454,539,454,548,454,556,447,563,439,563,462,475,432,467,429,463,430,460,435,458,465,469,468,463,417,399,371,356,335,348,288,345,265,379,300,420,241,428,249,488,301,503,321,513,374,507,462,483,462,475,462,475,394,460,391,452,396,444,404,441,412,438,420,443,423,451,426,459,421,467,413,470,405,473,396,468,394,460,484,455,483,424,486,419,489,420,492,424,492,456,498,457,543,389,570,332,566,294,554,249,515,238,487,284,461,231,406,256,408,310,405,333,427,381,477,458,484,455,484,455,477,385,484,380,494,382,499,389,504,396,502,405,496,410,489,415,479,414,474,407,469,400,471,390,477,385,511,470,539,459,545,461,545,463,542,467,512,477,513,483,592,505,654,513,688,497,728,472,726,432,674,419,717,378,675,334,625,353,602,356,563,393,506,464,511,470,511,470,575,442,581,447,583,456,578,463,573,470,563,472,557,467,550,462,548,452,553,445,558,438,568,437,575,442,505,499,524,523,524,529,521,531,517,529,498,503,492,506,496,588,508,650,533,677,570,707,607,693,603,639,656,667,685,614,651,572,641,551,594,525,509,493,505,499,505,499,551,552,548,560,540,564,532,561,524,559,519,550,522,542,524,534,533,530,541,532,549,535,554,543,551,552]}]]},{st:"0000-1-flower",A2:[["ffac42",{W:"M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C Z M C C C C Z".split(" "),d:[646,471,646,446,626,426,601,426,599,426,597,426,595,427,596,426,598,424,599,423,616,406,616,378,599,360,581,343,553,343,536,360,534,361,533,363,532,364,532,363,532,361,532,359,532,335,512,315,488,315,463,315,443,335,443,359,443,361,443,363,443,365,442,364,441,363,440,362,422,344,394,344,377,362,359,379,359,407,377,425,378,426,380,427,381,429,379,428,378,428,376,428,351,428,331,448,331,473,331,498,351,518,376,518,378,518,380,517,382,517,381,518,379,519,378,521,361,538,361,566,378,584,396,601,424,601,441,584,443,582,444,581,445,579,445,581,445,583,445,584,445,609,465,629,490,629,514,629,534,609,534,584,534,582,534,580,534,579,535,580,536,581,537,582,555,600,583,600,600,582,618,565,618,537,600,519,599,518,597,516,596,515,598,515,599,516,601,516,626,516,646,496,646,471,489,552,444,552,409,516,409,472,409,428,444,392,489,392,533,392,569,428,569,472,569,516,533,552,489,552]}]]},{st:"0000-1-flower",A2:[["d04040",{W:"M C C L L C C C C L L C C L L C C C C L C C C C L Z M C C C Z M C C C L Z M C C C L Z".split(" "),d:[691,424,690,369,680,330,660,303,634,320,601,361,568,406,568,406,568,327,578,326,585,317,585,306,585,294,576,284,564,284,552,284,542,294,542,306,542,317,550,326,560,327,560,406,559,406,540,359,522,311,501,291,475,319,453,360,433,407,431,406,431,327,441,326,448,317,448,306,448,294,439,284,427,284,415,284,405,294,405,306,405,317,412,326,423,327,423,404,390,363,360,326,341,308,296,401,299,489,360,567,396,613,443,639,500,638,624,636,694,524,692,424,691,424,389,543,370,514,379,498,399,504,439,518,470,564,488,613,455,600,414,580,389,543,481,480,488,445,505,441,515,459,533,497,524,552,501,599,487,567,472,523,481,480,481,480,624,523,610,563,565,595,515,613,528,580,548,538,585,514,614,494,629,503,624,523,624,523]}]]},{st:"0000-1-flower",A2:[["ec7272",{W:"M C C C C Z M C C C C Z M C C C C L Z M C C C C L Z M C C C C Z M C C C C L Z".split(" "),d:[447,475,452,450,452,438,437,423,422,407,407,412,390,383,398,418,421,415,433,434,445,453,446,474,447,475,495,446,520,439,529,433,535,412,542,390,529,380,546,351,520,376,533,394,523,414,513,434,495,445,495,446,545,473,564,490,574,495,595,490,617,485,620,469,653,468,619,459,610,479,587,480,565,482,546,472,545,473,545,473,549,533,543,558,543,569,559,585,574,601,589,596,606,624,597,590,575,592,563,573,551,555,550,534,549,533,549,533,504,562,480,570,470,575,464,596,458,618,470,628,454,657,479,632,466,614,476,594,486,575,504,563,504,562,459,536,440,519,430,513,409,518,387,524,384,539,351,540,385,549,394,529,417,528,439,527,457,536,459,536,459,536]}],["333333",{W:"M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z M C C C C C C C C C C C C L Z".split(" "),d:[534,455,584,415,579,358,577,335,574,315,585,304,585,304,585,304,568,308,561,312,554,316,520,333,500,363,479,392,493,437,486,456,479,476,452,485,452,485,452,485,471,474,475,454,479,434,460,402,482,365,505,328,565,292,597,294,612,295,591,298,587,316,583,333,593,373,584,404,574,440,533,456,534,455,534,455,559,506,619,530,666,497,685,483,701,471,716,475,716,475,716,475,704,463,697,459,690,454,657,434,622,431,587,428,554,462,534,465,513,469,492,451,492,451,492,451,511,461,530,455,549,448,568,416,611,417,654,418,716,452,730,481,737,495,724,478,706,483,689,489,660,516,628,524,592,534,558,506,559,506,559,506,524,552,534,615,586,640,607,649,625,657,629,672,629,672,629,672,634,655,634,647,634,639,636,601,621,569,606,537,560,525,547,509,534,494,539,466,539,466,539,466,539,488,554,501,569,514,607,514,627,552,648,590,650,660,632,687,623,700,631,680,617,667,605,656,566,644,543,621,517,594,524,551,524,552,524,552,467,546,417,585,421,643,424,665,426,686,415,697,415,697,415,697,432,693,439,689,446,684,481,667,501,638,521,609,508,563,515,544,522,524,548,515,548,515,548,515,530,527,526,546,522,566,540,598,518,635,496,672,436,709,404,706,388,705,409,702,413,684,417,667,408,628,417,596,426,561,467,544,467,546,467,546,442,495,383,472,336,504,317,518,301,530,286,526,286,526,286,526,298,539,305,543,312,547,344,568,380,571,415,574,448,539,468,536,488,532,510,551,510,551,510,551,490,540,471,547,452,553,434,585,391,584,348,583,286,550,272,521,265,507,278,524,296,518,313,513,342,485,373,477,409,468,444,495,442,495,442,495,476,449,467,386,415,361,394,352,375,344,371,329,371,329,371,329,366,346,366,354,366,362,364,400,379,433,394,465,440,476,453,492,467,508,462,535,462,535,462,535,461,513,446,500,431,487,394,487,373,449,352,411,350,341,368,314,377,301,369,321,383,334,396,345,434,357,457,380,483,407,477,450,476,449,476,449]}]]},{st:"0000-0-hearts",A2:[["d17070",{W:"M C C C C C C C C C L Z".split(" "),d:[415,584,413,585,411,586,409,587,392,596,389,620,395,633,401,647,414,663,450,668,485,674,487,681,494,690,491,679,487,673,507,643,527,613,524,593,518,579,512,566,493,552,475,558,467,561,451,566,448,586,435,578,423,581,415,584,415,584]}],["6bcc6b",{W:"M C C C C C C C C C L Z".split(" "),d:[595,451,593,449,590,448,588,448,563,439,537,457,529,475,521,493,516,520,542,560,568,601,563,609,559,623,568,611,571,602,618,595,666,589,684,567,692,550,700,532,697,501,674,488,665,482,645,472,622,486,619,465,606,456,595,451,595,451]}],["5c5cc2",{W:"M C C C C C C C C C L Z".split(" "),d:[341,362,338,364,335,366,332,368,304,385,301,424,312,446,323,468,345,494,405,501,465,508,468,520,480,534,475,516,468,506,499,455,531,404,524,370,514,348,503,325,470,304,440,315,427,320,401,331,397,364,374,351,355,356,341,362,341,362]}]]},{st:"0000-0-anchor",A2:[["2a3b66",{W:"M C C C C L Z M C C C C C C C C C C C C C C L C C C C C C C C C C C C C L C C C C C C C C C C C C C L Z".split(" "),d:[495,315,490,315,488,318,489,323,491,328,502,326,502,320,502,317,501,316,497,315,496,315,496,315,495,315,495,315,496,303,509,303,521,320,514,327,511,330,513,345,517,348,519,350,531,352,546,354,570,357,572,357,578,354,588,347,592,351,592,369,592,385,588,390,580,385,576,383,570,383,552,384,524,387,519,389,517,397,515,404,517,515,520,554,522,583,525,599,530,606,534,610,555,617,565,617,584,616,607,602,635,572,639,568,641,566,644,563,633,559,616,557,616,557,675,533,675,533,671,605,669,609,667,611,664,591,658,577,657,579,657,580,656,582,628,638,603,660,565,664,545,666,521,672,514,675,512,677,507,682,504,688,501,693,497,698,496,698,494,698,490,693,487,688,484,682,480,677,477,675,471,672,447,666,427,664,391,660,367,640,340,591,335,604,332,621,331,619,329,615,325,544,325,544,384,568,384,568,368,569,357,573,385,602,408,616,426,617,437,617,458,610,461,606,466,599,470,583,472,554,474,515,476,404,475,397,473,389,468,387,440,384,422,383,416,383,412,385,403,390,400,385,400,369,400,351,403,347,414,354,419,357,421,357,446,354,460,352,473,350,475,348,478,345,481,330,478,327,470,320,483,303,496,303,496,303]}]]},{st:"0000-1-leaf",A2:[["fbb600",{W:"M L L L L L L C L L C L C L C C C C C L C C C C C C C C C L C C C C C C C C C C C C C L L L L Z".split(" "),d:[642,726,633,723,632,707,591,631,570,582,526,521,537,547,535,579,517,598,501,619,486,602,414,634,412,606,379,609,346,611,394,557,406,547,401,539,386,532,319,519,337,508,332,493,320,478,326,464,302,450,287,436,303,436,324,441,330,432,346,434,359,434,359,415,377,428,397,431,417,432,442,440,437,418,417,416,406,372,401,370,395,367,389,355,417,363,408,339,406,323,416,312,427,303,417,276,433,295,444,297,452,294,479,321,490,313,496,294,503,322,510,329,517,338,522,353,530,371,530,379,546,402,551,389,555,378,578,333,606,333,628,304,652,280,646,306,644,327,657,329,649,356,658,374,679,384,666,392,656,415,645,432,627,457,653,451,661,457,692,460,698,473,715,481,697,485,678,488,669,509,656,523,655,533,666,539,659,537,659,542,643,531,630,535,613,543,608,539,598,535,594,542,590,553,590,566,594,564,596,569,568,575,551,543,531,519,575,577,597,628,639,708,642,726]}]]},{st:"0000-1-acorn",A2:[["a05a2c",{W:"M C C C C C C C L Z".split(" "),d:[506,453,450,426,413,422,398,444,374,480,374,533,384,573,391,602,407,625,430,645,451,658,487,654,509,647,554,633,587,605,612,565,635,527,591,500,565,482,557,476,515,457,506,453,506,453]}],["502d16",{W:"M C C C C C C C C C C C Z".split(" "),d:[640,524,639,539,623,540,623,540,627,522,607,504,583,488,547,465,507,445,470,434,439,426,412,417,400,437,400,437,391,424,400,414,434,370,498,356,551,376,555,349,583,317,597,321,612,326,621,346,620,350,619,354,594,352,584,368,580,375,577,382,575,387,619,412,649,460,640,524]}]]},{st:"0000-0-skull",A2:[["808080",{W:"M C L C C L C L C C C C C C C L C L C C C C C C C C L C C L C L C C C C C C C L C L C L C C C C C C Z M C C C C Z M C C C C Z M L L L Z".split(" "),d:[396,410,398,415,398,420,398,424,420,437,433,404,465,382,501,382,538,382,569,404,582,435,602,424,602,419,603,415,604,410,604,410,609,392,622,379,633,382,643,384,648,402,643,420,643,421,642,421,642,422,643,422,643,422,644,422,662,427,675,440,672,450,669,461,652,465,633,460,628,459,624,457,620,455,589,473,588,491,582,507,572,520,607,540,611,538,615,536,620,535,639,530,656,535,659,545,662,556,649,568,630,573,630,574,629,574,629,574,629,574,629,575,629,575,634,594,630,611,619,614,609,617,596,604,591,585,590,580,589,576,589,571,565,557,564,592,536,619,501,619,466,619,438,591,437,557,412,572,411,576,411,580,410,585,410,585,405,604,392,617,381,614,371,611,366,593,371,575,371,574,371,574,372,574,371,573,371,573,370,573,352,568,339,556,342,545,345,534,362,530,381,535,385,536,390,538,394,540,430,519,421,507,415,491,414,475,380,455,376,457,372,459,367,460,367,460,349,465,331,461,328,450,326,440,338,427,357,422,357,422,358,422,358,422,358,421,358,421,358,420,353,402,357,384,368,381,379,379,391,391,396,410,463,439,445,439,431,453,431,470,431,488,445,502,463,502,480,502,494,488,494,470,494,453,480,439,463,439,540,439,522,439,508,453,508,470,508,488,522,502,540,502,557,502,571,488,571,470,571,453,557,439,540,439,483,528,518,528,500,503,483,528]}]]},{st:"0000-0-ghost",A2:[["e6e6e6",{W:"M C C C C C C C C C C L Z M C C C C C C C C Z M C C Z".split(" "),d:[653,486,653,574,689,597,689,638,689,661,640,644,620,656,601,666,609,682,583,692,563,700,538,666,512,666,490,666,451,695,433,686,415,677,416,646,388,644,367,641,313,671,313,648,313,619,346,588,346,486,346,388,415,308,500,308,584,308,653,388,653,486,653,486,449,396,428,396,412,415,412,439,412,462,428,482,449,482,465,482,478,470,484,454,489,470,503,482,519,482,539,482,556,462,556,439,556,415,539,396,519,396,503,396,489,407,484,423,478,407,465,396,449,396,482,505,441,505,465,560,482,560,503,560,524,505,482,505]}],["000000",{W:"M C C C C Z M C C C C Z".split(" "),d:[526,446,526,455,519,462,510,462,501,462,494,455,494,446,494,437,501,430,510,430,519,430,526,437,526,446,475,446,475,455,468,462,459,462,450,462,442,455,442,446,442,437,450,430,459,430,468,430,475,437,475,446]}]]},{st:"1001-1-rose",A2:[["9e1460",{W:"M C C C C C C C C C Z M C C C C C C C C C Z".split(" "),d:[568,83,558,83,548,88,539,96,538,98,536,99,535,101,522,115,513,134,517,149,522,172,561,200,592,207,604,210,611,215,615,221,622,234,611,258,611,258,613,260,615,264,618,264,627,266,638,241,640,236,660,188,614,83,568,83,526,125,527,97,567,68,593,75,616,81,642,121,649,152,651,165,656,172,662,176,675,183,698,173,698,173,698,173,698,173,698,173,704,176,705,179,705,180,706,189,681,199,678,200,678,200,677,201,677,201,627,220,524,170,526,125]}],["020304",{W:"M C C C C C Z M C C C C C Z M C C C C C Z M C C C C Z".split(" "),d:[60,151,60,151,37,125,60,98,83,72,95,91,115,66,134,42,117,26,120,30,123,34,146,83,132,114,114,154,60,151,60,151,280,70,280,70,258,97,283,122,308,147,318,127,339,150,361,173,344,190,347,186,350,182,370,132,354,101,333,62,280,70,280,70,61,150,61,150,27,143,30,108,33,73,54,81,55,50,57,19,33,16,38,17,43,19,91,44,98,78,107,121,61,150,61,150,-27,185,184,158,222,43,352,32,444,24,538,97,538,97,538,97,453,45,354,48,241,51,185,170,-27,185]}]]},{st:"1001-1-curls",A2:[["53a7ab",{W:"M C C C C C C C C C C C C C C C C L Z M C C C C C C C C C C C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C L Z".split(" "),d:[68,114,121,103,159,110,183,135,212,169,211,204,189,237,162,277,124,291,86,276,52,263,38,236,47,202,55,168,79,151,121,156,147,162,165,177,160,205,155,228,135,241,113,237,97,234,92,221,96,205,98,195,105,194,115,200,124,205,133,204,135,197,139,183,122,167,95,171,68,176,54,193,68,220,84,252,131,261,165,238,201,202,199,164,158,136,118,113,52,122,-23,151,2,134,33,122,68,114,68,114,71,83,119,75,163,79,198,107,226,129,247,174,271,207,291,229,316,241,342,232,370,222,394,206,418,209,443,212,461,238,485,258,500,272,522,276,543,271,543,271,524,279,518,281,500,287,483,277,466,256,453,243,441,230,427,223,413,217,392,220,372,229,372,230,371,230,370,230,354,241,337,251,315,250,283,248,253,222,229,172,209,133,178,106,137,94,103,84,52,94,-30,133,-3,108,30,91,71,83,71,83,83,54,122,46,166,49,195,67,219,82,250,122,290,168,308,186,330,194,355,192,393,183,400,145,383,118,372,101,355,91,328,91,313,92,303,98,300,109,298,116,299,125,304,131,315,147,327,152,340,149,349,149,354,132,343,131,330,131,326,129,328,120,332,97,355,100,365,114,381,137,367,165,343,168,321,170,289,150,288,117,290,77,319,58,352,64,388,74,405,104,404,141,403,177,382,202,345,207,312,211,284,191,260,161,245,141,229,122,213,106,196,84,166,73,129,67,80,62,28,79,-26,108,10,79,46,63,83,54,83,54]}],["bbdc54",{W:"M C C C C C L Z M C C C C C L Z M C C C C L Z M C C C C L Z M C C C C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C L Z".split(" "),d:[321,315,287,324,252,312,211,219,217,284,239,326,279,341,324,352,362,329,398,291,316,305,258,269,217,196,238,284,274,319,321,315,321,315,211,261,223,300,234,345,252,374,220,378,194,367,193,324,194,306,198,288,206,270,197,315,204,340,221,351,206,327,202,297,211,261,211,261,206,246,193,301,170,317,138,297,162,281,184,254,205,222,201,246,191,267,174,283,186,279,197,267,206,246,206,246,378,233,370,286,337,299,294,270,312,277,330,276,347,267,294,278,259,252,234,203,280,259,327,278,378,233,378,233,626,217,604,273,555,313,511,315,484,316,438,289,432,232,450,253,488,296,511,291,532,286,551,277,566,261,527,269,498,263,480,243,478,241,478,237,480,235,486,230,504,220,519,226,537,233,551,242,567,241,591,236,611,228,626,217,626,217,411,192,432,183,439,166,420,136,443,144,460,158,466,182,470,165,456,149,430,133,459,136,485,145,505,165,503,143,463,133,434,128,486,127,526,124,539,118,505,123,470,124,435,122,461,111,483,96,500,76,475,95,450,110,424,118,450,96,465,72,466,48,458,75,440,98,419,112,424,106,428,99,428,91,429,68,413,57,393,51,419,70,426,92,411,110,408,77,385,58,343,52,383,26,422,25,445,62,458,47,465,29,467,8,477,27,479,51,475,76,497,64,515,49,528,29,524,57,515,82,496,103,521,113,549,111,579,99,560,122,535,136,502,137,518,149,521,173,514,205,505,181,492,166,476,158,483,188,470,205,447,216,456,183,451,166,438,157,444,193,426,211,379,207,403,193,416,172,416,140,434,156,428,173,411,192,411,192]}]]},{st:"0111-0-pines",A2:[["e9e9e9",{W:"M C C C C C C C C L L L Z".split(" "),d:[0,946,0,946,54,960,99,944,149,927,182,954,205,956,245,960,298,940,382,974,435,995,478,957,538,956,571,955,597,969,631,968,663,967,701,938,749,944,805,950,851,960,893,946,950,928,1e3,946,1e3,946,1e3,1e3,0,1e3,0,946]}],["437a26",{W:"M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z M C L C C C L L C C L L L L L C Z".split(" "),d:[119,801,120,801,148,859,148,859,137,853,137,853,155,890,155,891,156,892,138,887,140,888,141,888,171,925,171,925,126,924,125,943,125,943,105,944,106,944,107,944,106,924,106,924,61,925,93,886,77,891,100,854,89,860,89,860,119,801,119,801,286,871,286,871,303,905,303,905,296,902,296,902,307,924,307,924,307,925,297,922,297,922,298,922,316,944,316,944,289,944,289,955,289,955,277,956,278,956,278,956,278,944,278,944,251,944,270,921,260,924,274,902,268,906,268,906,285,871,286,871,526,863,526,863,546,903,546,903,538,899,538,899,550,924,550,925,550,926,539,922,540,922,540,922,561,948,561,948,530,947,529,960,529,960,516,961,517,961,518,961,517,947,517,947,486,948,508,921,497,925,513,899,505,903,505,903,526,863,526,863,731,841,731,841,752,883,752,883,744,879,744,879,757,907,757,908,758,908,745,905,746,905,747,905,769,932,769,932,736,932,735,946,735,946,721,946,721,946,722,947,721,932,721,932,688,932,712,903,700,908,717,880,709,884,709,884,731,841,731,841,889,826,889,826,914,876,914,876,904,871,904,871,920,904,920,905,920,906,906,901,907,902,908,902,934,934,934,934,894,933,894,950,894,950,877,951,878,951,879,951,878,933,878,933,838,934,866,900,852,905,872,872,862,877,862,877,889,826,889,826]}]]},{st:"0111-0-flowers",A2:[["8cae40",{W:"M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z M C L C C C L C C L C C C L C C C L C C L C C L Z".split(" "),d:[182,866,160,879,146,903,135,929,135,844,177,842,228,831,230,796,231,770,207,765,182,779,160,792,146,816,135,843,135,713,135,711,134,710,132,710,130,710,128,711,128,713,128,841,117,815,103,791,82,779,57,764,33,769,34,795,36,830,86,841,128,844,128,930,117,903,103,880,82,867,57,853,33,858,34,884,36,919,86,930,128,932,128,1009,128,1010,130,1012,132,1012,134,1012,135,1010,135,1009,135,931,177,928,228,918,230,882,231,856,207,851,182,866,182,866,447,904,430,898,412,904,394,916,394,861,413,873,431,879,447,873,458,868,458,852,447,848,430,841,412,848,394,859,394,788,394,787,393,786,391,786,389,786,388,787,388,788,388,859,370,847,352,841,336,848,325,852,325,868,336,873,352,879,370,873,388,862,388,915,370,904,352,898,336,904,325,909,325,925,336,929,352,936,370,930,388,918,388,1009,388,1010,389,1011,391,1011,393,1011,394,1010,394,1009,394,918,413,930,431,936,447,929,458,925,458,909,447,904,447,904,662,943,650,954,641,972,634,993,634,914,659,907,680,895,692,873,707,846,686,836,662,859,650,870,641,888,634,909,634,818,634,816,632,815,631,815,629,815,628,816,628,818,628,908,621,887,612,870,600,859,576,836,555,846,570,873,582,895,603,907,628,914,628,992,621,971,612,954,600,943,576,920,555,930,570,957,582,978,603,990,628,998,628,1009,628,1010,629,1011,631,1011,632,1011,634,1010,634,1009,634,998,659,991,680,978,692,957,707,930,686,920,662,943,662,943,892,842,875,857,862,882,850,912,850,822,874,817,896,805,908,778,919,755,896,751,877,769,866,779,857,796,850,815,850,737,850,736,848,735,847,735,845,735,844,736,844,737,844,815,836,795,828,779,817,769,798,751,775,755,785,777,797,804,820,817,844,822,844,912,832,882,818,857,801,842,772,816,737,822,753,854,772,894,806,911,844,918,844,1009,844,1010,845,1011,847,1011,848,1011,850,1010,850,1009,850,918,887,911,922,894,941,854,957,822,922,816,892,842,892,842]}],["d13777",{W:"M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M L C L L C C C C L L Z M C C C C Z M C C C C C C C Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C L Z M C C C C C C L Z M C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C C Z M C C C C Z M C C L L C C C C L L C C L L C C C C L C C C C L Z M C C C Z M C C C L Z M C C C L Z".split(" "),d:[125,603,115,617,112,619,110,618,111,615,122,600,119,597,75,614,43,631,32,650,22,675,36,694,65,682,59,716,94,722,111,696,120,687,126,657,129,604,125,603,125,603,104,638,99,638,95,634,95,629,95,624,99,620,104,620,109,620,113,624,113,629,113,634,109,638,104,638,117,587,100,582,98,579,99,578,102,577,119,583,121,580,92,543,65,517,44,513,17,512,4,531,24,555,-10,560,-6,594,24,603,36,609,67,605,118,591,118,587,117,587,78,578,77,573,79,568,84,567,88,565,93,568,95,573,96,577,94,582,89,584,85,585,80,583,78,578,130,575,130,557,131,554,133,555,135,557,135,575,138,576,164,537,180,504,177,482,171,456,148,449,132,476,117,445,85,460,86,491,84,504,97,532,126,577,130,575,130,575,126,535,130,532,136,533,139,537,142,541,141,546,137,549,133,552,127,551,125,547,122,543,122,538,126,535,146,584,162,577,165,578,166,580,164,582,146,588,147,591,193,604,229,609,249,600,271,585,271,562,240,554,265,530,241,505,212,516,199,518,176,539,143,580,146,584,146,584,183,567,187,570,187,576,185,580,182,584,176,585,172,582,168,579,167,573,170,569,173,565,179,565,183,567,142,601,153,615,153,618,152,619,149,618,138,603,135,605,137,652,144,688,159,704,180,721,202,713,199,681,230,698,246,667,227,643,221,631,194,616,145,597,142,601,142,601,169,631,167,636,162,638,158,637,153,635,151,630,152,625,154,621,159,618,163,620,168,621,170,626,169,631,376,691,343,693,320,697,309,706,297,714,291,729,294,756,294,767,295,779,294,788,305,786,320,788,335,788,353,787,369,782,375,773,382,764,386,739,388,703,381,702,377,699,376,691,363,745,357,757,351,761,345,761,337,760,337,751,343,737,330,742,322,742,319,735,317,728,322,723,331,718,346,712,360,708,374,706,373,720,369,733,363,745,363,745,388,680,387,646,383,623,375,612,366,600,351,594,325,596,314,596,302,597,293,595,295,607,292,622,292,637,292,654,298,671,306,676,315,684,340,689,376,692,377,684,381,680,388,680,388,680,334,665,323,659,318,654,319,648,320,639,329,640,343,645,338,632,339,625,345,621,352,620,358,625,362,634,368,649,372,664,373,677,360,676,347,671,334,665,334,665,399,691,433,690,456,686,467,678,479,670,485,655,484,629,484,617,482,606,484,597,472,598,458,595,442,596,425,596,409,601,403,610,395,618,391,643,388,679,395,680,399,684,399,691,399,691,414,638,420,626,426,622,432,622,440,624,440,633,434,646,447,641,455,642,458,648,459,656,454,661,445,665,430,671,416,675,402,677,403,663,408,650,414,638,414,638,388,703,390,736,394,759,403,770,411,782,426,788,452,785,464,785,475,784,485,785,483,774,485,759,485,744,484,726,479,710,470,704,461,697,436,693,400,691,399,698,395,702,388,703,388,703,442,716,453,722,458,728,458,734,456,742,447,742,434,736,439,749,438,757,432,760,425,762,419,757,415,748,409,733,404,719,403,705,416,706,429,710,442,716,442,716,722,716,722,701,710,690,696,690,695,690,694,690,693,690,693,689,694,689,695,688,705,678,705,662,695,651,685,641,668,641,658,651,658,652,657,653,656,654,656,653,656,652,656,651,656,637,645,625,630,625,616,625,605,637,605,651,605,652,605,653,605,654,604,654,604,653,603,652,593,642,576,642,566,652,556,662,556,679,566,689,567,690,568,690,569,691,568,691,567,691,566,691,552,691,540,702,540,717,540,731,552,743,566,743,567,743,568,743,569,742,569,743,568,744,567,744,557,754,557,771,567,781,577,791,594,791,604,781,605,780,605,779,606,778,606,779,606,780,606,781,606,795,617,807,632,807,646,807,657,795,657,781,657,780,657,779,657,778,658,779,658,779,659,780,669,790,686,790,696,780,706,770,706,754,696,743,695,743,694,742,693,741,694,741,695,741,696,741,710,741,722,730,722,716,631,762,605,762,585,742,585,716,585,691,605,670,631,670,657,670,677,691,677,716,677,742,657,762,631,762,958,602,957,570,951,547,940,532,925,541,905,565,887,591,886,591,886,546,892,545,897,540,897,533,897,527,891,521,884,521,877,521,872,527,872,533,872,540,876,545,882,546,882,591,882,591,870,564,860,536,848,525,833,541,820,565,808,592,807,592,807,546,813,545,817,540,817,533,817,527,812,521,805,521,798,521,792,527,792,533,792,540,797,545,802,546,802,590,784,567,766,545,755,534,729,588,731,639,766,684,787,711,814,726,847,725,919,724,960,659,958,602,958,602,783,671,772,653,777,645,789,648,812,656,830,682,840,711,821,704,797,692,783,671,836,634,840,614,850,612,856,622,867,644,861,676,848,703,840,684,831,659,836,634,836,634,919,659,911,682,885,701,856,711,863,692,875,668,896,654,913,642,922,647,919,659,919,659]}]]},{st:"1101-1-confetti",A2:[["e789ff",{W:"M C C C C C Z M C C C C C C C Z M C C C C C C C Z M C C C C C Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),d:[170,439,169,438,59,370,108,300,152,238,298,276,318,337,338,398,265,380,285,358,312,328,185,247,121,307,72,353,171,440,170,439,318,338,336,399,262,408,184,346,138,309,73,237,112,174,167,88,345,115,377,222,393,276,296,260,335,236,375,212,236,111,155,183,73,254,265,380,285,358,312,328,318,338,318,338,377,222,394,276,318,288,243,236,187,197,146,120,201,56,254,-5,365,26,407,68,407,68,414,94,378,71,344,50,258,31,221,89,178,154,297,260,336,235,374,211,377,222,377,222,406,70,452,115,432,189,324,115,214,39,323,-85,322,-85,320,-85,229,38,331,100,439,166,413,95,377,72,343,51,364,28,406,70,346,405,369,418,356,441,333,428,346,405,513,298,536,311,523,334,500,321,513,298,891,91,914,104,901,127,878,114,891,91,24,123,47,136,34,159,11,146,24,123,664,33,687,46,674,69,651,56,664,33,910,482,933,495,920,518,897,505,910,482]}],["666666",{W:"M C C C C C Z M C C C C C C C Z M C C C C C C C Z M C C C C C Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),d:[919,442,917,443,802,510,764,432,730,364,837,250,901,261,965,272,913,329,903,301,889,262,755,338,777,424,794,490,920,442,919,442,901,261,964,274,936,345,842,386,787,410,690,435,654,370,604,279,716,132,827,153,883,164,821,244,819,197,817,150,659,228,682,335,706,443,913,329,903,301,889,262,901,261,901,261,827,153,884,163,857,238,774,281,711,313,622,313,593,233,564,157,647,71,705,54,705,54,732,60,694,82,658,102,599,170,632,231,669,301,822,244,819,197,816,150,827,153,827,153,706,54,769,34,825,87,706,149,583,213,527,56,526,57,526,59,590,200,696,137,807,70,732,60,694,82,658,102,648,73,706,54,362,328,383,340,371,361,350,349,362,328,52,189,73,201,61,222,40,210,52,189,509,119,530,131,517,152,496,140,509,119,912,16,933,28,921,49,900,37,912,16,629,380,650,392,638,413,617,401,629,380,77,414,98,426,86,447,65,435,77,414,240,76,261,88,249,109,228,97,240,76]}]]},{st:"1101-1-branch",A2:[["7f500b",{W:"M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z M C C C L C C Z".split(" "),d:[144,-14,144,-14,149,-12,150,-12,150,-12,106,22,86,75,63,137,93,193,69,238,64,236,89,174,53,146,80,72,99,19,144,-14,144,-14,280,-18,281,-18,276,-20,276,-20,276,-20,282,23,264,64,244,113,196,129,185,168,189,170,209,120,244,123,269,66,288,25,280,-18,280,-18,429,-5,429,-5,434,-4,434,-4,435,-4,405,28,396,72,386,124,415,164,402,203,398,202,410,150,379,132,391,70,399,26,429,-5,429,-5,514,-7,514,-7,519,-12,519,-12,520,-12,532,50,577,96,630,151,703,150,738,197,733,201,681,144,635,166,571,101,526,54,514,-7,514,-7,666,-67,666,-68,663,-65,662,-64,662,-64,704,-52,734,-18,768,22,763,72,793,99,796,96,760,57,778,26,737,-22,708,-56,666,-67,666,-67,936,-8,936,-8,932,-9,931,-9,931,-9,947,32,938,76,927,127,884,154,881,194,886,195,895,142,930,138,943,76,952,32,936,-8,936,-8]}],["5c7f0b",{W:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),d:[119,6,121,16,113,31,81,33,58,34,27,27,27,27,27,27,53,5,70,-1,93,-9,117,-4,119,6,124,8,132,1,151,12,165,33,179,54,180,87,180,87,180,87,153,75,139,60,122,41,115,14,124,8,78,74,82,83,76,97,48,103,27,108,-2,105,-2,105,-2,105,19,81,33,74,53,64,75,65,78,74,83,75,90,68,108,76,124,93,139,110,144,140,144,140,144,140,117,132,104,121,85,105,76,83,83,75,72,152,75,159,72,172,48,179,30,185,6,185,6,185,6,185,22,163,33,156,49,145,68,145,72,152,76,153,81,146,98,151,112,165,126,178,133,203,133,203,133,203,110,199,97,190,80,178,70,160,76,153,73,206,75,213,71,224,49,228,34,232,12,230,12,230,12,230,28,212,39,206,53,199,70,200,73,206,76,207,81,202,95,207,107,220,118,233,122,255,122,255,122,255,102,250,92,241,78,230,71,213,76,207,70,232,78,236,76,252,66,269,56,286,33,297,33,297,33,297,33,274,39,260,46,241,62,228,70,232,285,3,278,8,274,21,291,39,304,52,325,63,325,63,325,63,323,36,316,24,308,7,291,-2,285,3,281,1,280,-7,263,-10,244,-5,224,1,205,20,205,20,205,20,228,27,244,25,264,22,283,10,281,1,270,65,264,69,259,80,272,99,281,112,299,125,299,125,299,125,300,100,296,88,290,72,277,61,270,65,267,64,267,56,252,51,234,53,216,56,197,71,197,71,197,71,216,80,230,80,249,80,267,72,267,64,231,116,225,119,220,128,230,145,237,157,251,170,251,170,251,170,254,148,251,138,248,123,237,113,231,116,228,114,229,108,217,102,201,103,186,103,168,115,168,115,168,115,184,124,196,126,212,127,228,121,228,114,201,148,196,151,192,160,202,174,209,184,222,194,222,194,222,194,223,175,220,166,216,154,206,145,201,148,198,147,198,141,187,137,174,139,160,141,145,152,145,152,145,152,160,159,171,159,185,160,198,153,198,147,188,165,182,163,173,174,170,190,167,205,173,224,173,224,173,224,186,210,191,198,197,183,195,166,188,165,415,10,417,18,413,31,389,36,371,39,347,37,347,37,347,37,364,16,377,9,393,0,412,2,415,10,418,11,424,4,440,11,453,27,466,43,470,69,470,69,470,69,448,62,436,52,420,38,412,17,418,11,391,69,394,76,392,89,371,96,355,102,333,103,333,103,333,103,346,81,357,74,371,64,388,63,391,69,395,70,399,63,414,68,428,80,441,92,448,116,448,116,448,116,427,113,415,105,400,94,390,77,395,70,395,133,398,139,397,150,379,158,367,164,348,167,348,167,348,167,358,148,366,140,377,130,391,128,395,133,398,134,401,128,414,130,427,140,439,149,447,169,447,169,447,169,429,167,418,162,404,154,394,140,398,134,401,177,404,182,402,192,386,198,374,202,358,203,358,203,358,203,368,187,375,181,386,173,399,172,401,177,404,178,408,173,419,176,429,185,439,194,445,212,445,212,445,212,429,210,420,204,408,196,401,183,404,178,402,198,408,201,409,214,403,229,397,244,381,255,381,255,381,255,378,236,381,224,385,208,396,196,402,198,519,23,531,26,543,42,528,75,518,99,495,125,495,125,495,125,485,87,487,67,490,40,508,19,519,23,523,19,521,7,542,-6,571,-8,600,-10,636,6,636,6,636,6,609,27,586,32,557,39,526,32,523,19,570,100,581,102,594,115,585,147,579,170,562,197,562,197,562,197,548,163,547,145,547,120,560,98,570,100,574,97,570,86,587,72,613,66,639,60,673,71,673,71,673,71,652,93,632,101,607,110,578,107,574,97,649,149,659,150,670,160,666,188,662,208,650,232,650,232,650,232,635,205,633,189,631,168,640,149,649,149,652,146,648,137,662,123,683,116,705,109,734,116,734,116,734,116,718,137,702,145,681,155,657,155,652,146,707,178,715,179,724,189,718,213,714,230,701,250,701,250,701,250,690,225,690,211,689,193,699,177,707,178,710,175,707,167,720,156,739,151,759,147,784,155,784,155,784,155,768,172,753,177,734,185,713,183,710,175,732,194,740,189,757,199,770,218,782,237,783,266,783,266,783,266,758,254,746,240,730,223,724,199,732,194,687,-62,688,-54,699,-45,722,-53,739,-59,759,-73,759,-73,759,-73,733,-82,719,-82,701,-81,685,-71,687,-62,684,-60,676,-62,666,-48,662,-28,659,-9,669,17,669,17,669,17,684,-1,689,-16,696,-35,692,-57,684,-60,737,-23,738,-15,746,-5,768,-9,784,-12,804,-23,804,-23,804,-23,782,-34,769,-36,752,-38,736,-30,737,-23,734,-20,727,-24,716,-13,711,5,705,22,711,46,711,46,711,46,727,33,734,20,742,3,742,-17,734,-20,766,35,766,41,772,50,792,48,806,47,823,40,823,40,823,40,805,28,795,26,780,23,766,28,766,35,763,37,758,33,747,42,741,56,735,70,738,91,738,91,738,91,753,81,760,71,768,57,769,40,763,37,782,76,783,82,789,89,806,86,818,84,832,76,832,76,832,76,816,67,806,66,794,65,782,70,782,76,780,78,775,75,766,84,762,97,758,110,762,128,762,128,762,128,775,118,779,108,786,95,785,80,780,78,792,94,788,100,794,112,807,122,819,131,839,133,839,133,839,133,832,116,823,107,812,95,796,89,792,94,945,11,939,18,938,31,959,45,974,55,997,62,997,62,997,62,989,36,980,25,968,11,950,5,945,11,941,11,938,3,921,3,903,13,885,22,871,45,871,45,871,45,894,47,909,42,929,35,944,19,941,11,944,75,938,80,935,93,952,108,964,119,984,128,984,128,984,128,980,104,974,93,965,78,949,70,944,75,940,75,938,67,923,65,906,71,889,77,873,96,873,96,873,96,894,101,908,99,926,95,942,82,940,75,916,133,911,137,907,147,920,162,930,172,946,182,946,182,946,182,944,160,940,151,933,137,921,129,916,133,913,132,912,125,899,123,884,127,869,130,854,145,854,145,854,145,871,151,883,150,899,148,913,139,913,132,893,171,888,175,887,184,899,196,908,204,923,211,923,211,923,211,920,193,915,184,909,173,897,167,893,171,890,170,889,165,877,163,864,168,851,172,839,187,839,187,839,187,855,190,865,188,879,186,891,176,890,170,884,190,877,190,871,202,871,218,871,234,881,251,881,251,881,251,891,234,893,222,896,206,890,190,884,190]}]]},{st:"1101-1-sticks",A2:[["ec7272",{W:"M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),d:[260,148,297,180,286,192,249,160,260,148,114,31,161,47,155,63,109,47,114,31,931,91,902,52,915,42,945,81,931,91,711,19,746,-15,758,-3,723,31,711,19,812,161,782,122,795,112,825,151,812,161,389,34,424,0,436,12,401,46,389,34,431,209,465,175,477,186,442,221,431,209,282,90,282,41,299,41,299,90,282,90,58,233,29,194,42,184,72,223,58,233,574,58,621,74,615,90,569,74,574,58]}],["0000ff",{W:"M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z M L L L L Z".split(" "),d:[722,208,733,161,717,157,706,205,722,208,843,12,797,28,802,44,849,28,843,12,31,74,60,35,47,25,18,64,31,74,220,21,185,-13,173,-1,208,33,220,21,140,166,170,127,157,117,127,156,140,166,558,148,523,114,511,126,546,160,558,148,562,9,516,25,521,41,568,25,562,9,697,105,726,66,713,56,684,95,697,105,961,180,990,141,977,131,948,170,961,180,399,97,353,113,358,129,405,113,399,97]}]]},{st:"1101-1-dots",A2:[["ec7272",{W:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),d:[154,47,144,47,136,39,136,29,136,19,144,11,154,11,164,11,172,19,172,29,172,39,164,47,154,47,272,164,262,164,254,156,254,146,254,136,262,128,272,128,282,128,290,136,290,146,290,156,282,164,272,164,529,48,519,48,511,40,511,30,511,20,519,12,529,12,539,12,547,20,547,30,547,40,539,48,529,48,696,101,686,101,678,93,678,83,678,73,686,65,696,65,706,65,714,73,714,83,714,93,706,101,696,101,929,91,919,91,911,83,911,73,911,63,919,55,929,55,939,55,947,63,947,73,947,83,939,91,929,91]}],["0000ff",{W:"M C C C C Z M C C C C Z M C C C C Z M C C C C Z M C C C C Z".split(" "),d:[66,122,56,122,48,114,48,104,48,94,56,86,66,86,76,86,84,94,84,104,84,114,76,122,66,122,309,55,299,55,291,47,291,37,291,27,299,19,309,19,319,19,327,27,327,37,327,47,319,55,309,55,785,180,775,180,767,172,767,162,767,152,775,144,785,144,795,144,803,152,803,162,803,172,795,180,785,180,459,147,449,147,441,139,441,129,441,119,449,111,459,111,469,111,477,119,477,129,477,139,469,147,459,147,811,48,801,48,793,40,793,30,793,20,801,12,811,12,821,12,829,20,829,30,829,40,821,48,811,48]}],["88a500",{W:["M","C","C","Z"],d:[389,224,389,224,410,230,410,230,410,230,389,224,389,224]}]]},{st:"1101-1-strips",A2:[["ffc88c",{W:"M L L L L Z M L L L L Z M L L L L Z".split(" "),d:[-40,0,44,0,137,99,53,99,-40,0,296,0,380,0,473,99,389,99,296,0,632,0,716,0,809,99,725,99,632,0]}],["88a500",{W:"M L L L L Z M L L L L Z M L L L L Z".split(" "),d:[128,0,212,0,305,99,221,99,128,0,464,0,548,0,641,99,557,99,464,0,800,0,884,0,977,99,893,99,800,0]}],["88a500",{W:["M","C","C","Z"],d:[407,217,407,217,428,223,428,223,428,223,407,217,407,217]}]]},{st:"1101-1-circs",A2:[["ec7272",{W:"M C C C C Z M C C C C Z".split(" "),d:[61,209,27,209,0,181,0,147,0,113,27,86,61,86,96,86,123,113,123,147,123,181,96,209,61,209,551,209,517,209,489,181,489,147,489,113,517,86,551,86,585,86,612,113,612,147,612,181,585,209,551,209]}],["217995",{W:"M C C C C Z M C C C C Z".split(" "),d:[303,209,269,209,241,181,241,147,241,113,269,86,303,86,337,86,364,113,364,147,364,181,337,209,303,209,799,209,765,209,738,181,738,147,738,113,765,86,799,86,834,86,861,113,861,147,861,181,834,209,799,209]}],["88a500",{W:["M","C","C","Z"],d:[530,273,530,273,551,279,551,279,551,279,530,273,530,273]}]]},{st:"1101-1-squares",A2:[["014ea7",{W:"M L L L L Z M L L L L Z".split(" "),d:[0,120,124,120,124,244,0,244,0,120,497,120,621,120,621,244,497,244,497,120]}],["fc54ff",{W:"M L L L L Z M L L L L Z".split(" "),d:[249,120,373,120,373,244,249,244,249,120,746,120,870,120,870,244,746,244,746,120]}],["88a500",{W:["M","C","C","Z"],d:[389,354,389,354,410,360,410,360,410,360,389,354,389,354]}]]},{st:"1101-0-christmas",A2:[["014ea7",{W:"M C C C C Z M C C C C Z M L L L L Z".split(" "),d:[255,480,178,480,116,418,116,341,116,264,178,202,255,202,332,202,394,264,394,341,394,418,332,480,255,480,255,232,236,232,221,217,221,198,221,179,236,164,255,164,274,164,289,179,289,198,289,217,274,232,255,232,251,-152,260,-152,260,248,251,248,251,-152]}],["ff9518",{W:"M C C C C Z M C C C C Z M L L L L Z".split(" "),d:[746,623,669,623,607,561,607,484,607,407,669,345,746,345,823,345,885,407,885,484,885,561,823,623,746,623,747,376,728,376,713,361,713,342,713,323,728,308,747,308,766,308,781,323,781,342,781,361,766,376,747,376,742,-8,751,-8,751,392,742,392,742,-8]}]]}];var Me={};Me.parse=function(t){var i=new Uint8Array(t),e=null;if(i[0]==80&&i[1]==75){var r=Date.now(),n=UZIP.parse(i.buffer),e=n["document.json"];e=JSON.parse(A.bc(e,0,e.length)),Me.z8(e,n)}else{var a=mi.parse(t);e=Me.v_(a[2][0][1])}return e},Me.z8=function(t,i){var e=typeof t;if(e=="string"||e=="number"||e=="boolean")return t;if(t instanceof Array){for(var r=0;r0;){var S=Math.min(100,x);M.push(S,0),x-=S}g=new Uint8Array(M)}b=d.NSAttributes instanceof Array?d.NSAttributes:[d.NSAttributes];var w={$class:"NSAttributedString",NSString:m,NSAttributes:b};c.attributedString={_class:"MSAttributedString",archivedAttributedString:w},w.NSAttributeInfo={$class:"NSMutableData","NS.data":g},delete c.storage}return r},Me.gu={lU:function(t,i){return t[i+1]<<8|t[i]},l:function(t,i){return t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]},$o:function(t,i,e){for(var r="",n=0;n>4,u=o&15,p=null;if(h+=1,[4,5,6,10,12,13].indexOf(f)!=-1&&u==15){var c=l.tF(t,h);h+=c.lv,u=c.C}if(f==0)p=u==8?!1:u==9?!0:null;else if(f==1)p=l.tF(t,h-1).C;else if(f==2)p=1<=12&&(s&1)==0){var h=s-13>>1,o=new Uint8Array(h);mi.Hk(t,e,o,0,h),a.push(o),e+=h}else if(s>=13&&(s&1)==1){var h=s-12>>1;a.push(mi.bc(t,e,h)),e+=h}else throw"unknonw type "+s}return a},o1:function(t){if(!(t[18]==1&&t[19]==1&&t[20]==0&&t[21]==64&&t[22]==32&&t[23]==32))throw"unexpected SQL3 header";var i={mV:mi.$o(t,0,15),pr:mi.lU(t,16),ahg:mi.l(t,24),size:mi.l(t,28),ahY:mi.l(t,32),a7F:mi.l(t,36),agD:mi.l(t,40),a2O:mi.l(t,44),aa7:mi.l(t,48),afU:mi.l(t,52),mA:mi.l(t,56),ade:mi.l(t,60),akt:mi.l(t,64)!=0,a3S:mi.l(t,68),aeg:mi.l(t,92),amI:mi.l(t,96)};if(i.pr==1&&(i.pr=65536),i.mA!=1)throw"unsupported text encoding "+i.mA;return i},acy:function(t,i){return t[i]<<16|t[i+1]<<8|t[i+2]},agh:function(t,i){var e=mi.acy(t,i),r=e&8388608;return r?-(16777215-e+1):e},afr:function(t,i){return mi.It[0]=t[i],mi.a4t[0]},tF:function(t,i){for(var e=mi.It,r=0;r<4;r++)e[r]=t[i+3-r];return mi.akC[0]},dx:function(t,i){var e=mi.It;return e[0]=t[i+1],e[1]=t[i],mi.akE[0]},lU:function(t,i){return t[i]<<8|t[i+1]},l:function(t,i){return t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]},a2n:function(t,i){for(var e=mi.It,r=0;r<8;r++)e[r]=t[i+7-r];return mi.agk[0]},Rj:function(t,i){for(var e=i,r=0;;){var n=t[i];if(i++,r=r*128+(n&127),n<128)break}return{pl:r,lv:i-e}},$o:function(t,i,e){for(var r="",n=0;n8e3*8e3;)s++;n.scale(1/s,1/s),this.Vn=[t,i,e,r];var s=n.d3();t=Math.round(t*s),i=Math.round(i*s),e=Math.round(e*s),r=Math.round(r*s);var l=this.mY,h=this.$w;if(h==null)n.PV=-t;else{var o=h[2]-h[0]+30,f=Math.round(e-t)+30;this.oT.x+o+f>8192?(n.PV=-t,this.oT.x=0,this.oT.y+=this.wO+120,this.wO=0):(n.PV+=o,this.oT.x+=o)}n.ye=this.oT.y+(this.a5T?r:-i),this.wO=Math.max(this.wO,Math.round(r-i)),this.$w=[t,i,e,r],l.r.push(l.Px())},Ii.prototype.tQ=function(){var t=this.mY,i=t.r[t.r.length-1];return i},Ii.prototype.Xz=function(){var t=JSON.parse(JSON.stringify(at.bW.default));return t.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter",t.strokeEnabled.v=!1,t.fillEnabled.v=!1,t},Ii.prototype.vT=function(){var t=this.mY,i=t.an();return i.uf("Path "+t.r.length),this.mY.r.push(i),i.ix|=16,i.add.SoCo={classID:"null",Clr:{t:"Objc",v:v.j.$H({U:0,S:0,i:0})}},i.add.vmsk=new H.iO,i.add.vstk=this.Xz(),i},Ii.prototype.Kv=function(t){var i={d:t.crds,W:t.cmds},e=v.D.sb(i,!1);return v.V.G5(e,this.Ug),e},Ii._A=function(t,i){for(var e=0;e=0&&t.r[e].add.lsct!=Ci.Qi;)e--;var n=this.Hz;if(n){for(var a=new et,s=i;s>e;)a=t.r[s].G_(this.mY,!1,!0),s--;r=n.Qh(a)}r?(this.lP.splice(e,1),t.r.splice(e,1)):t.r.push(this.wC),this.i0=null}},Ii.hm=function(t,i,e){var r,n;if(t.length!=null){r="SoFi";var a=JSON.parse(at.IW[at.order.indexOf("SoFi")]);n={t:"Objc",v:a},n.v.Clr.v=Ii.yj(t)}else{var s=Ii.a8Z(t,i,e);r="GrFl",n={t:"Objc",v:s}}return{type:r,C:n}},Ii.a8Z=function(t,i,e){var r=JSON.parse(at.IW[at.order.indexOf("GrFl")]),n=r.Grad.v;n.Intr.v=0;var a=Ii.GO(t.mat);a.concat(i);var s=new st(0,0),l=new st(e.Z,0),h=t.crds;if(t.typ=="rad"){r.Type.v.GrdT="Rdl";var o=.7;s.x=(1-o)*h[0]+o*h[3],s.y=(1-o)*h[1]+o*h[4],l.x=s.x,l.y=s.y,l.x+=Math.max(h[2],h[5])}else r.Type.v.GrdT="Lnr",s.x=h[0],s.y=h[1],l.x=h[2],l.y=h[3],s.x=l.x+.5*(s.x-l.x),s.y=l.y+.5*(s.y-l.y);s=a.aT(s),l=a.aT(l),v.j.VB(s,l,e,r);var f=t.grad;return v.j.nO(f,n),r},Ii.prototype.PutText=function(t,i,e,r){var n=i.charCodeAt(0),a=null;if(!(this.dT!=-1&&this.dT!=this.Zg)&&!(i.length==0||i.length==1&&(n==0||n==8203))){this.CO(t);var s=this.mY,l=t.font,h=Ii.GO(t.ctm);h.concat(this.Ug);var o=Ii.GO(l.Tm);o.concat(h);var f=C.X.d3(o),u=new Et(1/f,0,0,-1/f,0,0);u.concat(o);var p=l.Tfs*f;(l.Th!=100||l.Trise!=0)&&console.log(l);for(var c=s.r.length-1;c>=0&&s.r[c].add.TySh==null;)c--;if(u.i*u.i+u.p$*u.p$<.001&&r==null&&c>=0&&s.r[c].add.TySh&&s.r[c].opacity==Math.round(255*t.ca)){var d=s.r[c],k=this.lP[c],g=d.add.TySh.O,b=(g.PV+k.fj-u.PV)/p,m=Math.abs(b),x=i.indexOf(" ")==-1,M=g.m==u.m&&g.i==u.i&&g.p$==u.p$&&g.xA==u.xA,S=M&&Math.abs(k.YL-u.ye)<1e-5&&m<.6,w=u.ye-k.YL;S?(a=d,k.fj=u.PV-g.PV,b>.2&&x&&[".",",","?",":","!"].indexOf(i)==-1&&(i=" "+i)):M&&Math.abs(u.PV-g.PV)<1e-5&&0>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;ic.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;la.length)&&(o.splice(l,1),l--);for(var d=72/t.NB,l=0;l>>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;mt.length)throw"e";if(a){n.sub=[],i+=12;for(var s=n.c+n.size;it.length)throw"e";if(a.Za=="RIFF"||a.Za=="LIST"&&a.bl!="cmpr"&&a.bl!="stlt"){a.sub=[],i+=12;for(var s=a.c+a.size;it.length)throw"e";if(a){n.sub=[],i+=12;for(var s=n.c+n.size;i=0;c--)ci.xf(p[c],i,e,r)}else if(a=="obj "&&o.C&&o.C.path){u.uf("Object "+e.r.length);var d=i.P6[o.C.aiK],g=i.ma[o.C.a2A],b=u.getName(),m=d&&d.type!=0,x=m&&d.C!=null?d.C:[0,0,0];u.ix|=16,u.add.vstk=JSON.parse(JSON.stringify(at.bW.default));var M=u.add.vstk;if(M.strokeEnabled.v=!1,u.add.vmsk=new H.iO,g&&g.a1f!=1){M.strokeEnabled.v=!0,M.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter",M.strokeStyleLineWidth.v.val=g.lineWidth*r.d3();var S=g.color;M.strokeStyleContent.v.Clr.v=v.j.$H({U:S[0]*255,S:S[1]*255,i:S[2]*255})}var w=o.C.path;u.add.vmsk.b=v.D.sb(w,!1),v.V.G5(u.add.vmsk.b,f),Ii.ku(x,u,f,v.V.ue(u.add.vmsk.b)),M.fillEnabled.v=m,u.h7(),u._V(e)}else if(a=="obj "&&l){var k=o.C.a6P,T=o.C.ajI,L="";u.add.TySh=lt.T_(0,0);var O=f.d3();u.add.TySh.O.translate(f.PV,f.ye);for(var E=u.add.TySh.MF,D=l.C.qR,c=0;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=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;U1300&&(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=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=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=1300&&yt&&t.c++,t.c++;var Z=l(t),bt=[];for(U=0;U=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+Bt*4>t.data.length)break;var Ut=[];for(U=0;U=1200?qt=h(t)&4294967295:qt=l(t),Ut[U]=qt>>16|qt&1}var Gt=Bt;x>=1200&&(Gt=l(t));var zt=ci.aB(t);M.C.qR.push({aei:gt,text:zt,gg:bt})}}else if(M.Za=="font"){var Nt=s(t),Kt=s(t);t.c+=14;var ai=ci.aB(t);M.C={id:Nt,ai2:Kt,name:ai}}else if(["IKEY","ICMT","pfrd","bcfg"].indexOf(M.Za)==-1){if(M.Za=="flgs")M.C=l(t);else if(M.Za=="bbox"){var fi=p(t),di=p(t),$t=p(t),si=p(t);M.C=new et(fi,di,$t-fi,si-di)}else if(M.Za=="fild"){var li=l(t),Li=0,vi;x>=1300&&(t.c+=4,Li=s(t),t.c+=2);var yi=s(t);if(yi!=0)if(yi==1)t.c+=x>=1300?13:2,vi=ci.HD(t);else if(yi==2){t.c+=x>=1300?8:2;var _t=a(t),wi=0;x>=1300?(t.c+=17,wi=o(t)):x>=600?(t.c+=19,wi=f(t)):(t.c+=11,wi=o(t));var Zi=d(t),Vi=.5+b(t),Mi=.5+b(t)-.5;x>=600&&(t.c+=2);var ce=g(t)&255,Ri=a(t)/100;t.c++;var zi=g(t)&65535;x>=1300&&(t.c+=3);for(var ee=[],U=0;U=1300&&(Li==158||x>=1600&&Li==150?t.c+=26:t.c+=5);var Yi=g(t)/100;x>=1300&&(t.c+=3),ee.push([Yi,Be])}vi={typ:_t==1?"lin":"rad",crds:[Vi-Math.cos(Zi)/2,Mi-Math.sin(Zi)/2,Vi,Mi],grad:ee,mat:[1,0,0,1,0,0]}}else console.log("Unknown fill type",yi);M.C={id:li,type:yi,C:vi}}else if(M.Za=="outl"){var Xi=l(t);if(x>=1300)for(var Xt=0,ri=0;Xt!=1;)t.c+=ri,Xt=l(t),ri=l(t);var Hi=s(t),re=s(t),gi=s(t);x<1300&&x>=600&&(t.c+=2);var Bi=p(t),be=s(t)/100;x>=600&&(t.c+=2);var Te=d(t);x>=1300?t.c+=46:x>=600&&(t.c+=52);var vi=ci.HD(t,Xi==270963208||Xi==276198e3,Xi);M.C={id:Xi,a1f:Hi,ak0:re,ae1:gi,lineWidth:Bi,color:vi}}else if(M.Za=="mcfg"){1300<=x?t.c+=12:900<=x?t.c+=4:600<=x&&x<700&&(t.c+=28);var Gi=0,Sr=0;if(x<400)throw"e";Gi=p(t),Sr=p(t),M.C={abH:new st(Gi,Sr)}}else if(M.Za=="loda"){var R=t.c,Qr=g(t),fr=g(t),Je=g(t),br=g(t),Ai=g(t),We=[],Qi=[];t.c=R+Je;for(var U=0;U=0;U--)Qi[U]=g(t);M.C={};for(var U=0;U=1300&&(t.c+=8);var Ti=s(t);if(Ti==8){var lr,qe,fi,ir,de,di;if(x>=600&&(t.c+=6),x>=500)lr=u(t),qe=u(t),fi=u(t)/(x<600?1e3:254e3),ir=u(t),de=u(t),di=u(t)/(x<600?1e3:254e3);else throw"e";M.Aw=new Et(lr,ir,qe,de,fi,di)}else console.log(Ti)}}else if(!1)var Dr}}}},ci.TQ=function(t,i){for(var e=ci.RM,r={},n=e(t),a=0;a=500)if(s=r(t),s==1&&a>=1300&&(s=25),s==25||s==30){var h=0;s==30?(s=25,h=30):(h=r(t),t.c+=4);var o=r(t),f=r(t)}else{if(s==14)throw"e";t.c+=6,l=n(t)}else throw"e";var u=[];if(s==2||s==9||s==17){var p=[l>>>0&255,l>>>8&255,l>>>16&255,l>>>24&255];if(s==2)for(var c=0;c<4;c++)p[c]=Math.round(255*p[c]/100);for(var c=0;c<4;c++)p[c]/=255;u=UDOC.C.cmykToRgb(p)}else if(s==1||s==5){u=[l>>>0&255,l>>>8&255,l>>>16&255];for(var c=0;c<3;c++)u[c]=u[c]/255}else console.log("Unknown color model "+s,l,l.toString(16));return u};var $n={};$n.rX=function(){var t=new ArrayBuffer(4);return[new Uint8Array(t),new Uint32Array(t),new Float32Array(t)]}(),$n.ur=function(t,i,e,r,n){function a(V,j){for(var R=0;R>>0}for(var l=$n.rX,h=l[0],o=l[1],f=l[2],u="",p=1,c=0;c127){if(t[i]!=1)throw"e";i++}if(x==0)break}var M=a(g,x),S=M[2],w=M[1]==1,k=w?s():1,T=new Array(k);if(S==3){if(!w)throw"e";T=t.slice(i,i+k),i+=k}else for(var c=0;c>>1):O>>>1}else if(S==7)L=s();else if(S==9)if(t[i]==0)L=0,i++;else{h[0]=t[i],h[1]=t[i+1],h[2]=t[i+2],h[3]=t[i+3];var E=o[0];o[0]=E<<23|E>>>9,L=f[0],i+=4}else if(S==11){var D=$n.ah0(t,i);L=D[0],i+=D[1]+1}else throw S;else{var B=e[S>>>1];if(B[0]=="enum"){var I=t[i++];if(I>127)throw"e";L=B[2][I]}else{var N=$n.ur(t,i,e,B,n+1);L=N[0],i=N[1]}}T[c]=L}b[M[3]]=w?T:T[0],p++}return[b,i]},$n.ah0=function(t,i){for(var e=i;t[e]!=0;)e++;return[A.bc(t,i,e-i),e-i]},$n.a1n=function(t,i){for(var e=i;t[e]!=0;)e++;for(var r=i;r127)throw"e";return A.$o(t,i,e-i)},$n.aj2=function(t,i){for(var e=$n.a1n,r=1,n=[];r127&&r++;for(var f=[],u=0;u127){if(t[r]!=1)throw"e";r++}if(g!=u)throw g;f.push(p)}n.push(["enum",l,f])}else if(h==1){for(var o=t[r++],f=[],u=0;u127){if(t[r]!=1)throw"e";r++}var d=t[r++];if(d>127){if(t[r]!=1)throw"e";r++}var g=t[r++];if(g>127){if(t[r]!=1)throw"e";r++}f.push([g,d,c,p])}n.push(["strc",l,f])}else if(h==2){var o=t[r++];o>127&&r++;for(var f=[],u=0;u127){if(t[r]!=1)throw"e";r++}var d=t[r++];if(d>127){if(t[r]!=1)throw"e";r++}var g=t[r++];if(g>127){if(t[r]!=1)throw"e";r++}f.push([g,d,c,p])}n.push(["mesg",l,f])}else throw h}return n};function Pe(){}Pe.ee=function(t,i){var e=new Uint8Array(t),r=8,n=A.L6(e,r),a=0;r+=4;for(var s=[];rr?1:-1},Pe.bH=function(t){for(var i=1;i1.999*Math.PI?l=v.V.Ny.VO(0,0,o,f,0):l=v.V.Ny.a8Y(o/2,f/2,f/2,g,b),m!=0&&m!=1){var x=H.iO.Cm(l).slice(3);x.reverse();for(var c=0;cMath.abs(s);if(o&&r[2]){var f=Math.round(2*a/n);l+=f,e.x-=a-.5*f*n}if(!o&&!r[2]&&h!=-1){var f=Math.round(.25*s);h+=f,e.y-=s-4*f}l=Math.max(1,l),h=r[1]==-1?-1:Math.max(0,Math.min(100,h));var u=r[3];u.Brsh.v.Dmtr.v.val=l,h!=-1&&(u.Brsh.v.Hrdn.v.val=h),this.MD=[l,h,o,u,e];var p=Qt.ug(u,i.aF.Xu,n),c=p[1];c.x=Math.round(this.w6.x-c.Z/2),c.y=Math.round(this.w6.y-c.h/2),t.v.bU=[p];var d=t.a.PY(this.w6.x,this.w6.y);t.v.bX={od:[],K3:[d.x-l/2,d.y,d.x+l/2,d.y]},h!=-1&&t.v.bX.K3.push(d.x+50/n,d.y-h/2,d.x+50/n,d.y+h/2),t.Vg=!0},C.gn.prototype.FT=function(t,i,e,r,n){if(this.id!=C.cs){if(this.w6){this.w6=null,this.Rk(JSON.parse(JSON.stringify(this.MD[3]))),t.v.bU=[],t.v.bX=null,t.Vg=!0;return}var a=new z(y.E.L,!0);a.data={e:y.B.Zo,Q:this.id,aeE:"showBrushOpts",cQ:new st(n.Bx+4,n.yG)},i.w(a)}},C.gn.prototype.Rk=function(t){var i=new z(y.E.L,!0);i.data={e:y.B.Sl,S9:ut.SO,S1:t},this.caller.w(i)},C.gn.XL=function(t,i,e,r){t==null&&(t="FrgC"),i==null&&(i="norm"),e==null&&(e=1);var n={classID:"Fl",Usng:{t:"enum",v:{FlCn:t}},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(e*100)}},Md:{t:"enum",v:{BlnM:ti.Kl(i)}}};return t=="Clr"&&(n.Clr={t:"Objc",v:r}),t=="contentAware"&&(n.contentAwareColorAdaptationFill={t:"bool",v:!0}),{Bm:"fill",w1:n}},C.gn.prototype.XZ=function(t,i,e,r,n){this.JW=i;var a=e.oD.length;if(!(a==0&&!e.FD())){var s=a!=0?-1-e.oD[0]:e.p[0],l=e.r[s];if(t.e=="fromAction"){var h=t.WR,o=h.w1;if(h.Bm=="fill"){var f=(o.Opct?o.Opct.v.val:100)/100,u=o.Md?ti.pT(o.Md.v.BlnM):"norm",p=o.Usng.v.FlCn,c;if(p=="contentAware"){if(e.K==null){alert("Select an area to heal first.");return}if(!e.FD())return;this.qO(e);var d=e.K,g=v.R(d.rect.M()*4);v.Oy(d.channel,g,3),this.vM(e,"sheal",g,d.rect,d.rect),this.A(e,d.rect),this.finish(e,d.rect)}else{if(p=="FrgC")c=n.GY;else if(p=="BckC")c=n.Ty;else if(p=="Blck")c=0;else if(p=="Wht")c=16777215;else if(p=="Gry")c=8421504;else if(p=="Clr"){var b=v.j.T6(o.Clr.v);c=b.U<<16|b.S<<8|b.i}var m=c>>16&255,x=c>>8&255,M=c>>0&255;this.Fb(e,l,e.K,m,x,M,Math.round(255*f),u,[2,3])}}else if(h.Bm=="delete"){var S=s<0?1:l.kB,d=e.K,w;if(d==null)return;var k=s<0?e.Yq[-s-1]:S<=0?null:S==1?l.jk():l.yg(e).g,T=S<=0?l.rect:k.rect,L=S<=0?d.rect.$X(T):d.rect.clone();if(L.qr())return;var O=L.M();if(S<=0?(w=v.R(O*4),v.BP(l.buffer,l.rect,w,L)):(w=v.R(O),k.extend(L),v.Lj(k.channel,k.rect,w,L)),0<=s&&l.Je(e,d))S<=0?(v.XB(w,0),v.BP(l.rD.gx,l.rD.OJ,w,L)):(v.set(w,255),v.Lj(l.rD.gx,l.rD.OJ,w,L));else if(S<=0){var E=v.R(w.length>>2);v.E4(w,E,3),v.N.fG(v.Zm(d.rect.M()),d.rect,E,L,d.channel,L,1),v.Oy(E,w,3)}else{var D=v.R(d.rect.M()),m=n.Ty>>16&255,x=n.Ty>>8&255,M=n.Ty>>0&255;v.set(D,Math.round(v.ou(m,x,M))),v.N.fG(D,d.rect,w,L,d.channel,L,1)}this.Nr(e,!0,[2,2],s,S,L,w)}}if(t.e=="stroke"){var B=t.a3I,d=e.K;d==null&&(d={rect:l.rect.clone(),channel:v.R(l.rect.M())},v.E4(l.buffer,d.channel,3));var I=St.Uo(B),N=C.hl.dt(d,Math.ceil(I[0]),Math.ceil(I[1])),c=v.j.T6(B.Clr.v),m=Math.round(c.U),x=Math.round(c.S),M=Math.round(c.i);this.Fb(e,l,N,m,x,M,Math.round(255*B.Opct.v.val/100),ti.pT(B.Md.v.BlnM),[14,9])}if(t.e=="fillBMP"&&this.c8(e,l,e.K,t.mu,t.Si,t.tP),t.e=="draw"){var V=t.pL,j=V.rect;this.qO(e);var R=e.r[e.p[0]];if(t.wd&&R&&R.kB<=0)j=dt.T8.I3(V,e),R.buffer=V.buffer.slice(0),R.rect=j.clone();else{var G=this.fT.bmode;this.fT.bmode="norm",this.vM(e,"draw",V.buffer,j,j.$X(new et(0,0,e.Z,e.h))),this.fT.bmode=G}this.A(e,j),e.Vf=!0,this.finish(e,j,t.tP,t.wd)}}},C.gn.prototype.Fb=function(t,i,e,r,n,a,s,l,h){var o=e==null?new et(0,0,t.Z,t.h):e.rect,f=s<<24|a<<16|n<<8|r<<0,u=v.R(o.M()*4);v.XB(u,f),this.c8(t,i,e,u,l,h)},C.gn.prototype.c8=function(t,i,e,r,n,a){var s=t.oD.length!=0?-1-t.oD[0]:t.p[0],l=s<0?1:i.kB,h=s<0?t.Yq[-1-s]:l<=0?null:l==1?i.jk():i.yg(t).g,o=l<=0?i.rect:h.rect,f=e==null?new et(0,0,t.Z,t.h):e.rect,u=e==null?v.AA(t.Z*t.h):e.channel,p=f.M(),c,d=null;if(l<=0?(c=v.R(p*4),v.BP(i.buffer,i.rect,c,f)):(c=v.R(p),h.extend(f),v.Lj(h.channel,h.rect,c,f)),e!=null&&v.v0(u,r),l>0&&(d=v.R(p),v.np(r,d)),0<=s&&e&&i.Je(t,e)){var g=i.rD.zU,b=v.clone(i.rD.zU);l<=0?v.Hk(r,b):v.Hk(d,b);var m=new ni([2,3],this);m.data={e:"drawtemp",n:t.p[0],qf:l,a3u:g,abZ:b},t.TX(m),this.oF(m.data,t)}else{if(l<=0){var x;i.k6(0)&&(x=v.R(f.M()),v.E4(c,x,3)),v.N.DO(n,r,f,c,f,f,1),i.k6(0)&&v.Oy(x,c,3)}else v.N.fG(d,f,c,f,u,f,1);this.Nr(t,!0,a,s,l,f,c)}},C.gn.prototype.aU=function(t){return W.Ed.indexOf(t)!=-1},C.gn.prototype.gU=function(t,i,e,r){var n=this.fT.brush,a=r.s(W.ze),s=a!=this.oN,l=C.gn.gp(n,r);if(l!=null&&this.Rk(l),!r.s(W.Bl)&&r.gL()!=-1){var h=y.Wd(Math.round(this.fT.opacity*100),r.gL())/100;this.SC({opacity:h},i)}if(this.id==C.eK&&s&&t!=null){var o=this.fT.qsmode;o==2?o=t.K==null?0:1:o=2,this.SC({qsmode:o},i)}this.oN=a,s&&(t&&(this.gT=t.a.F),this.b9(e,r))},C.gn.gp=function(t,i){var e=t.Brsh.v.Dmtr.v.val,r=t.Brsh.v.Hrdn!=null?t.Brsh.v.Hrdn.v.val:-1,n=e,a=r,s=i.s(W.cm);if(i.s(W.VR)&&(s?r=25*Math.floor((r-1)/25):e<=10?e--:e<=50?e=5*Math.floor((e-1)/5):e<=100?e=10*Math.floor((e-1)/10):e<=200?e=25*Math.floor((e-1)/25):e<=400?e=50*Math.floor((e-1)/50):e=100*Math.floor((e-1)/100)),i.s(W.nH)&&(s?r=25*Math.ceil((r+1)/25):e<10?e++:e<50?e=5*Math.ceil((e+1)/5):e<100?e=10*Math.ceil((e+1)/10):e<200?e=25*Math.ceil((e+1)/25):e<400?e=50*Math.ceil((e+1)/50):e=100*Math.ceil((e+1)/100)),e=Math.max(1,e),r=Math.max(0,Math.min(100,r)),a==-1&&(r=-1),e!=n||r!=a){var l=JSON.parse(JSON.stringify(t));return l.Brsh.v.Dmtr.v.val=e,a!=-1&&(l.Brsh.v.Hrdn.v.val=r),l}return null},C.gn.prototype.b9=function(t,i,e,r){if(t.aF.list.length!=0){var n=this.id,a;if((n==C.MS||n==C.af||n==C.Sm||n==C.o9)&&(i!=null&&i.s(W.ze)||this.fT.alt[0]))a="crosshair";else{var s=this.gT,l=this.fT.brush,h;if(e&&e.p.length!=0&&(h=e.r[e.p[0]]),(n==C.MS||n==C.af)&&h!=null&&h.kB<=0&&this.b6){var o=e.a.PY(r.x,r.y),f=this.zN(o),u=this.b6,p=this.zd,c=new et(p.x+f.x,p.y+f.y,p.Z,p.h),d=Qt.ug(l,t.aF.Xu,s),g=d[0],b=d[1],m=Math.ceil(b.Z/s),x=new et(Math.round(o.x-m/2),Math.round(o.y-m/2),m,m),M=v.R(x.M()*4),S,w;if(v.BP(u,c,M,x),s==1)S=M,w=x;else if(s<1){var k=v.NP(M,x,s);S=k.Ww,w=k.rect,w.M()!=b.M()&&(w=b.clone(),w.x=k.rect.x,w.y=k.rect.y,S=v.R(w.M()*4),v.BP(k.Ww,k.rect,S,w))}else S=g.slice(0),w=b,v.scale.sI(M,x.Z,x.h,S,w.Z,w.h,s);for(var T=this.fT.opacity/255,L=0;L>>1,f=new et(Math.round(l.x)-o,Math.round(l.y)-o,h,h),u=v.R(f.M()*4);v.XB(16777215);for(var p=0;p0&&(h=v.R(a.M()*4),C.gn.Jy(s,a,0,h,a));var o=new ni(e,this);o.data=[{n:r,qf:n,T:a,Tr:h}],l&&(o.data.zY=[t.K,null]),t.TX(o),i?this.oF(o.data,t):l&&(t.K=null),dt.Dt.Gh(t,o.data)},C.gn.prototype.tO=function(t,i){this.qg(t,i,!1)},C.gn.prototype.oF=function(t,i){this.qg(t,i,!0)},C.gn.prototype.qg=function(t,i,e){if(t.e=="drawtemp"){var r=e?t.abZ:t.a3u,n=i.r[t.n];n.rD.zU=r,n.CH(i,0,0,i.K),n.A(),i.Vf=!0}else dt.Dt.Cb(i,t),t.zY&&(i.K=t.zY[e?1:0],i.Es=!0);i.A()},C.gn.prototype.km=function(t){this.vM(t,this.mo,this.A4.qq(),this.A4.o7(),this.A4.Oo()),this.A(t)},C.gn.prototype.vM=function(t,i,e,r,n){var a=this.fT,s=t.r[t.p[0]],l=t.oD.length!=0?t.Yq[t.oD[0]]:s.kB<=0?null:s.kB==1?s.jk():s.yg(t).g,h=v.R(n.M()*4),o,f=s.k6(0);if(l==null?(v.BP(this.Pv,this.R6,h,n),f&&(o=v.R(n.M()),v.E4(h,o,3))):C.gn.Jy(this.Pv,this.R6,l.color,h,n),t.K&&i!="qselect"){var u=n.$X(t.K.rect),p=v.R(u.M()*4);if(i=="copy"){var c=v.R(u.M());v.Lj(t.K.channel,t.K.rect,c,u),v.BP(h,n,p,u),v.N.$e(e,r,p,u,c,u,0,u,1,!1)}else v.BP(e,r,p,u),v.pa(t.K.channel,t.K.rect,p,u);e=p,r=u}if(i=="idraw"||i=="ierase"){this.lC==null&&(this.lC=v.R(this.R6.M()));var d=this.fT.samp,g=this.yH.Ty,b=d==0?this.KO:this.Mi,m=b.x,x=b.y,M=C.C6.$i(this.Pv,this.R6,[b,new st(m-2,x),new st(m+2,x),new st(m,x-2),new st(m,x+2)]);d==2&&(M=[[g>>>16&255,g>>>8&255,g>>>0&255,255]]);var S=C.C6.XF(h,n,this.KO,M,this.fT.wconf),w=v.R(n.M());v.Lj(this.lC,this.R6,w,n),v.pv.s7(S,w,w),v.Lj(w,n,this.lC,this.R6),v.pa(w,n,e,r),i=i.slice(1)}if(i=="erase"&&(dt.Dt.Uv(t)!=16777215||l)&&(i="draw"),i=="draw")v.N.DO(a.bmode,e,r,h,n,n,a.opacity);else if(i=="erase"){var k=v.R(n.M()*4);if(v.BP(e,r,k,n),l==null){var T=v.R(n.M());v.E4(k,T,3),v.WI(T,a.opacity),v.nJ(T),v.pa(T,n,h,n)}else v.XB(k,0,4278190080),v.N.DO("norm",k,n,h,n,n,a.opacity)}else if(i=="clone"||i=="heal"){var L=this.vh(),O=this.zd.clone();O.offset(L.x,L.y);var E=n.clone();E.PK(1,1);var D=v.R(E.M()*4),B=v.R(E.M());if(v.BP(e,r,D,E),v.E4(D,B,3),v.XB(D,0),l==null){v.BP(this.b6,O,D,E);var I=v.R(E.M());v.E4(D,I,3),v.vB(I,B)}else C.gn.Jy(this.Pv,O,l.color,D,E);if(i=="clone"&&(v.Oy(B,D,3),v.N.DO(a.bmode,D,E,h,n,n,a.opacity)),i=="heal"){var N=v.clone(B);v.round(N,20);var V=v.R(E.M()*4);v.BP(this.Pv,this.R6,V,E),v.N.$e(D,E,V,E,N,E,0,E,1,!1),v.w9.I4(V,N,E),v.N.$e(V,E,h,n,B,E,0,n,1,!1)}}else if(i=="dodge"||i=="burn"){var D=v.R(n.M()*4),j=1,R=0,G=0,Z=0;v.BP(e,r,D,n);var _=n.M()*4,U=C.gn.ff;this.oN&&(i=="dodge"?i="burn":i="dodge");var Y=a.rng;i=="dodge"&&(R=[1-j/2,1,1+j][Y],G=[1,1/(1+j),1][Y],Z=[j/2,0,0][Y]),i=="burn"&&(R=[1/(1-j/2),1,1-j/2][Y],G=[1,1+j,1][Y],Z=[-(j/2)/(1-j/2),0,0][Y]);for(var $=0;$<_;$+=4){var P=D[$+3];h[$+0]=U(h[$+0],R,G,Z,P),h[$+1]=U(h[$+1],R,G,Z,P),h[$+2]=U(h[$+2],R,G,Z,P)}}else if(i=="sponge"||i=="redeye"){var D=v.R(n.M()*4),B=v.R(n.M());v.BP(e,r,D,n),v.E4(D,B,3),v.Hk(h,D);var tt=a.smode;this.oN&&(tt=1-tt);var X=Zt.tt("hue2");i=="sponge"?rr._j(X,0,[0,[-50,46][tt],[6,5][tt]]):rr._j(X,1,{Ej:[265,305,25,55],qh:[0,-90,-70]});var ht=Vt.VM("hue2",X);Vt.t5(ht,D,D,n),v.N.$e(D,n,h,n,B,n,0,n,1,!1)}else if(i=="copy")v.BP(e,r,h,n);else if(i=="sheal"){var D=v.R(n.M()*4),B=v.R(n.M());v.BP(e,r,D,n),v.E4(D,B,3),v.mC.I4(this.Pv,this.R6,B,h,n)}else if(i=="qselect"){var F=this.R6,J=F.Z,Q=F.h,rt=J*Q,it=this.A4.qq(),M=this.Pv,nt=C.hl.Et,B=nt.px;B.fill(128);for(var $=0;$>>1)*J]=B[(Q>>>1)*J+J-1]=0,C.J4.DM(nt,!0),t.K={rect:F,channel:nt.K.slice(0)},t.Es=!0}l==null?(f&&v.Oy(o,h,3),v.BP(h,n,s.buffer,s.rect)):C.gn.uF(h,n,l)},C.gn.vh=function(){return null},C.gn.ff=function(t,i,e,r,n){var a=t*(1/255),s=r+i*Math.pow(a,e),l=Math.round(s*n+a*(255-n));return Math.max(0,Math.min(255,l))},C.gn.Jy=function(t,i,e,r,n){var a=v.R(n.M());v.set(a,e),v.Lj(t,i,a,n),v.XB(r,4278190080),v.Sv(a,r)},C.gn.uF=function(t,i,e){var r=v.R(i.M());v.np(t,r),v.Lj(r,i,e.channel,e.rect)},C.hl=function(t,i,e){C.An.call(this,t,i,e),this.fT={hw:"front",bM:0,H7:{wV:0,x:3,y:2},dU:[10,!0,!0]},this.k7=new st(-1,-1),this.H9=new st(-1,-1),this.qy="default",this.JW=null,this.e3=!1,this.qw=!1,this.oN=!1,this.LX=0,this.y0=0,this.vi=!1,this.Zp=null,this.ot=null,this.sY=!1},C.hl.prototype=new C.An,C.hl.Et={key:""},C.hl.L8=function(t,i){var e={Bm:t,w1:{classID:"setd",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}};return i&&(e.w1.T=i),e},C.hl.FL=function(t,i){return C.hl.L8("set",{t:"Objc",v:{classID:t,Top:{t:"UntF",v:{type:"#Pxl",val:i.y}},Left:{t:"UntF",v:{type:"#Pxl",val:i.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:i.y+i.h}},Rght:{t:"UntF",v:{type:"#Pxl",val:i.x+i.Z}}}})},C.hl.mT=function(t,i){for(var e=[],r=[],n="set",a=0;a>>1)),U=B.y-N.y,Y=U+B.h-1,$=Math.max(U,Math.min(Y,U+Y>>>1)),P=Math.max(G,0),tt=Math.min(Z,j),X=Math.max(U,0),ht=Math.min(Y,R);if(V.fill(128),0<=U)for(var F=P;F>>2);v.E4(mt,It,3),s={channel:It,rect:kt.clone()}}else{Ot.g==null&&Ot._V(e);var Bt=yt==1?Ot.jk():Ot.g;s=C.hl.Jk(Bt,h)}this.track(C.hl.amp(Ot.getName(),E,yt))}else if(a=="frompath"){var Ut=e.Cj(),qt=Ut[1],Ut=Ut[0];if(Ut.length==0||qt.length==0)return;var Gt=Ut[qt[0]];if(Dt!=null)for(var vt=0;vt1||this.y0>1?i:null;var r=this.k7,n=this.H9;e&&(r.x=Math.max(0,Math.min(t.Z,r.x)),r.y=Math.max(0,Math.min(t.h,r.y)),n.x=Math.max(0,Math.min(t.Z,n.x)),n.y=Math.max(0,Math.min(t.h,n.y)));var a=C.sp.en(r,n,i,!0,this.fT.H7),s=a[0].x,l=a[0].y;return new et(s,l,a[1].x-s,a[1].y-l)},C.hl.prototype.R$=function(t,i,e,r,n){if(!this.II()){if(this.JW=i,this.e3=!1,this.qw=r.s(W.cm),this.oN=r.s(W.ze),this.LX=this.qw?0:1,this.y0=this.oN?0:1,this.k7=t.a.PY(n.x,n.y),this.k7=C.qT.aE(t,this.k7,e),this.hU(t,this.k7,r)){this.vi=!0,this.Zp=t.K.rect.clone();return}this.Qf(t,e,r,n),t.a.GW=new et}},C.hl.prototype.hU=function(t,i,e){var r=e.s(W.cm),n=e.s(W.ze);return t.K&&!r&&!n&&this.fT.hw=="front"?v.cp(i,t.K.channel,t.K.rect):!1},C.hl.prototype.$E=function(t,i,e,r,n){if(this.JW=i,!this.sY){var a=t.a.PY(n.x,n.y);if(st.Yj(this.k7,a)*t.a.F>5&&(this.e3=!0),r.s(W.fd)?(this.ot==null&&(this.ot=new st(a.x-this.k7.x,a.y-this.k7.y)),this.k7.x=a.x-this.ot.x,this.k7.y=a.y-this.ot.y):this.ot=null,this.H9=a,this.vi||(this.H9=C.qT.aE(t,this.H9,e)),this.hU(t,this.H9,r)?this.Ie(i,"move"):this.Ie(i,this.qy),this.vi){var s=this.Zp.clone();s.x+=this.H9.x-this.k7.x,s.y+=this.H9.y-this.k7.y;var l=C.qT.hx(t,s,e);t.K.rect.x=Math.round(this.H9.x-this.k7.x+this.Zp.x+l[0]),t.K.rect.y=Math.round(this.H9.y-this.k7.y+this.Zp.y+l[1]),t.Es=!0,C.qT.rz(t,s,l);return}this.Ap(t,e,r,n),t.a.GW&&(t.a.GW=this.o7(t,r))}},C.hl.prototype.II=function(){return!1},C.hl.prototype.NL=function(t,i,e,r,n){if(t.a.GW=null,this.H9=t.a.PY(n.x,n.y),this.H9=C.qT.aE(t,this.H9,e),this.vi){if(this.vi=!1,this.H9.Qn(this.k7)&&this.Xs()=="front"){this.fF(i,y.E.QJ,C.hl.cA());return}this.Uy(t,this.Zp,t.K.rect.clone()),t!=null&&t.v.zK&&(t.v.zK=null,t.Vg=!0);return}this.sj(t,e,r,n),C.hl.RE(i,e)},C.hl.prototype.Uy=function(t,i,e){var r=t.a1();r!=null&&r.Q==this&&r.data.e=="movesel"||(r=new ni([7,7],this),r.data={e:"movesel",f_:i},t.TX(r)),r.data.Lb=e,this.oF(r.data,t)},C.hl.prototype.xg=function(t,i,e,r,n){this.sY=!0},C.hl.prototype.FT=function(t,i,e,r,n){var a=new z(y.E.L,!0);a.data={e:y.B.Zo,Q:this.id,jE:n,mY:t,s0:e},i.w(a),this.sY=!1},C.hl.prototype.gU=function(t,i,e,r){var n=r.s(W.cm),a=r.s(W.ze);if(this.e3&&(this.LX==0&&!n&&this.LX++,this.LX==1&&n&&this.LX++,this.y0==0&&!a&&this.y0++,this.y0==1&&a&&this.y0++),t!=null&&t.K!=null){var s=r.Ef();if(s.x!=0||s.y!=0){var l=t.K.rect.clone();l.x+=s.x,l.y+=s.y,this.Uy(t,t.K.rect.clone(),l)}}var h=C.hl.Le(this.fT.hw,n,a),o=new z(y.E.L,!0);o.data={e:y.B.Zo,Q:this.id,hw:h},i.w(o)},C.hl.prototype.finish=function(t,i,e,r){var n=t.K,a=this.getSelection(t,i,e,r);if(a==null)a=C.hl.cA();else{var s=this.fT.bM,l=this.Xs();s!=0&&(a.w1.Fthr={t:"UntF",v:{type:"#Pxl",val:s}}),l!="front"&&l!="xor"&&(a.Bm={union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[l])}this.fF(this.JW,y.E.QJ,a),this.k7.Oh(-1,-1),this.H9.Oh(-1,-1)},C.hl.prototype.Xs=function(){return C.hl.Le(this.fT.hw,this.qw,this.oN)},C.hl.Le=function(t,i,e){return i&&(t="union"),e&&(t="difference"),i&&e&&(t="intersection"),t},C.hl.prototype.getSelection=function(t,i,e,r){return null},C.hl.prototype.Qf=function(t,i,e,r){},C.hl.prototype.Ap=function(t,i,e,r){},C.hl.prototype.sj=function(t,i,e,r){},C.hl.prototype.tO=function(t,i){var e=t.e;e=="changesel"&&(i.K=t.la),e=="movesel"&&(i.K.rect=t.f_),t.ET&&(t.K2?(i.oD=[i.Yq.length],i.Yq.push(t.K2)):(i.Yq.pop(),i.oD=[])),t.Gt&&(i.QP=JSON.parse(t.Gt[0]),i.mb=JSON.parse(t.Gt[1])),i.Es=!0},C.hl.prototype.oF=function(t,i){var e=t.e;e=="changesel"&&(i.K=t.Od),e=="movesel"&&(i.K.rect=t.Lb),t.ET&&(t.i$?(i.oD=[i.Yq.length],i.Yq.push(t.i$)):(i.Yq.pop(),i.oD=[])),t.Gt&&(i.QP=JSON.parse(t.O6[0]),i.mb=JSON.parse(t.O6[1])),i.Es=!0},C.hl.prototype.zT=function(t){this.fT=t},C.hl.prototype.Q2=function(t){var i=v.D.YI(t.d);if(i.qr())return null;var e=y.z("canvas","");e.width=i.Z,e.height=i.h;var r=e.getContext("2d");r.beginPath(),r.translate(-i.x,-i.y),Typr.U.pathToContext({cmds:t.W,crds:t.d},r),r.closePath(),r.fill();var n=v.R(i.M()),a=r.getImageData(0,0,e.width,e.height);return v.E4(a.data,n,3),{rect:i,channel:n}},C.hl.nj=function(t,i,e,r,n){e&&(i=Math.round(i*.7));var a=Math.ceil(2.6*i),s=t.rect.clone();s.PK(a,a),r&&!n&&(s=s.$X(r));var l=v.R(s.M()),h=v.R(l.length);if(v.Lj(t.channel,t.rect,h,s),v.ni.et(h,l,s,i),e)for(var o=l.length,f=0;f1e-9||!u||a)&&(o=this.LY(t,i,!0,f,1,r));var c=new ni(this.name,this),d=new et(0,0,t.Z,t.h);c.data={f_:d,Lb:n,A3:o,rV:f,lf:t.a.c.clone(),c1:C.$K.Or(t,n,d,!1)},t.TX(c),this.oF(c.data,t)},C.$K.prototype.a5P=function(t,i){var e=v.P.bg(i),r=v.P.LS(e),n=v.P.z5(e),a=n.PV,s=n.ye,l=Math.atan2(n.i,n.m);n.rotate(l);var h=new et(a,s,n.m,n.xA);if(!r){let M=function(S,w,k){var T=S[w]-S[k],L=S[w+1]-S[k+1];return Math.sqrt(T*T+L*L)};var x=M,o=M(i,0,2),f=M(i,4,6),u=Math.max(o,f),p=M(i,2,4),c=M(i,6,0),d=Math.max(p,c),g=C.$K.a2f(i,t.Z/2,t.h/2),b,m;(isNaN(g)||g==Infinity||g==-Infinity||Math.min(g,1/g)<.1)&&(g=(o+f)/(p+c)),u/d>g?(b=u*1,m=b/g):(m=d*1,b=m*g),h.Z=b,h.h=m}return h.x=Math.round(h.x),h.y=Math.round(h.y),h.Z=Math.round(h.Z),h.h=Math.round(h.h),h},C.$K.a2f=function(t,i,e){var r=t[0]-i,n=t[1]-e,a=t[2]-i,s=t[3]-e,l=t[6]-i,h=t[7]-e,o=t[4]-i,f=t[5]-e,u=((n-f)*l-(r-o)*h+r*f-n*o)/((s-f)*l-(a-o)*h+a*f-s*o),p=((n-f)*a-(r-o)*s+r*f-n*o)/((h-f)*a-(l-o)*s+l*f-h*o),c=-((p*h-n)*(u*s-n)+(p*l-r)*(u*a-r))/((p-1)*(u-1));function d(b){return b*b}var g=Math.sqrt((d(u-1)+d(u*s-n)/c+d(u*a-r)/c)/(d(p-1)+d(p*h-n)/c+d(p*l-r)/c));return u==1&&p==1&&(g=Math.sqrt((d(s-n)+d(a-r))/(d(h-n)+d(l-r)))),g},C.$K.prototype.disable=function(t,i,e,r){t!=null&&(this.JE&&this.JE.clear(t),this.JE=null,this.fF(i,y.E.L,{e:y.B.Zo,Q:this.id,hk:!1}))},C.$K.prototype.fF=function(t,i,e,r){var n=new z(i,!0);n.data=e,r&&(n.Q=r),t.w(n)},C.nT=function(){C.$K.call(this,[10,2],C.Uj,"tools/rcrop")},C.nT.prototype=new C.$K,C.m$=function(){C.$K.call(this,[10,39],C.Hd,"tools/pcrop")},C.m$.prototype=new C.$K,C.ZW=function(){C.gn.call(this,[10,21],C.oR,"tools/dodge"),this.mo="dodge"},C.ZW.prototype=new C.gn,C.ZW.prototype.R$=function(t,i,e,r,n){this.yC(t,e,r,n,this.fT.expo/Math.PI),this.A4!=null&&this.km(t)},C.ZW.prototype.$E=function(t,i,e,r,n){this.yP(t,i,e),this.w6&&this.rg(t,e,n),this.A4!=null&&(!n.Ku||(this.Td(t,e,r,n),this.km(t)))},C.uC=function(){C.gn.call(this,[10,3],C.um,"tools/eraser"),this.mo="erase"},C.uC.prototype=new C.gn,C.uC.prototype.R$=function(t,i,e,r,n){this.yC(t,e,r,n,this.fT.flow),this.A4!=null&&this.km(t)},C.uC.prototype.$E=function(t,i,e,r,n){if(this.yP(t,i,e),this.w6&&this.rg(t,e,n),this.A4!=null&&!!n.Ku){var a=this.Td(t,e,r,n);this.km(t)}},C.rl=function(){C.gn.call(this,[10,45],C.a0R,"tools/beraser"),this.mo="ierase"},C.rl.prototype=new C.gn,C.rl.prototype.R$=function(t,i,e,r,n){this.Z4(r,i,n)||(this.yC(t,e,r,n,this.fT.flow),this.A4!=null&&this.km(t))},C.rl.prototype.$E=function(t,i,e,r,n){this.yP(t,i,e),this.w6&&this.rg(t,e,n),this.A4!=null&&(!n.Ku||(this.Td(t,e,r,n),this.km(t)))},C.kZ=function(){C.hl.call(this,[10,15],C.j1,"tools/rselect"),this.qy="crosshair"},C.kZ.prototype=new C.hl,C.kZ.prototype.Ap=function(t,i,e,r){if(!(!r.Ku||!this.e3)){var n=this.o7(t,e,!0);t.v.hK=v.D.z0(n),t.Vg=!0,C.An.Wf(r.x+10,r.y-10,n,t,i)}},C.kZ.prototype.sj=function(t,i,e,r){t.v.hK=null,t.v.Tw=[],t.Vg=!0,this.finish(t,i,e,r)},C.kZ.prototype.getSelection=function(t,i,e,r){if(this.k7.Qn(this.H9)||!this.e3)return null;var n=this.o7(t,e,!0);return n.qr()?null:C.hl.FL("Rctn",n)},C.Ou=function(){C.hl.call(this,[10,4],C.akK,"tools/eselect"),this.qy="crosshair"},C.Ou.prototype=new C.hl,C.Ou.prototype.Ap=function(t,i,e,r){if(!(!r.Ku||!this.e3)){var n=this.o7(t,e);t.v.hK=C.Ou.P2(n),t.Vg=!0,C.An.Wf(r.x+10,r.y-10,n,t,i)}},C.Ou.prototype.sj=function(t,i,e,r){t.v.hK=null,t.v.Tw=[],t.Vg=!0,this.finish(t,i,e,r)},C.Ou.prototype.getSelection=function(t,i,e,r){if(this.k7.Qn(this.H9)||!this.e3)return null;var n=this.o7(t,e);return n.dg(new et(0,0,t.Z,t.h))?C.hl.FL("Elps",n):null},C.Ou.P2=function(t){var i=t.x,e=t.y,r=t.x+t.Z,n=t.y+t.h,a=(i+r)/2,s=(e+n)/2,l=(i-r)/2,h=(e-n)/2,o=.5522848,f={d:[a,s-h],W:["M","C","C","C","C"]};return f.d.push(a+o*l,s-h,a+l,s-o*h,a+l,s),f.d.push(a+l,s+o*h,a+o*l,s+h,a,s+h),f.d.push(a-o*l,s+h,a-l,s+o*h,a-l,s),f.d.push(a-l,s-o*h,a-o*l,s-h,a,s-h),f},C.yY=function(){C.An.call(this,[10,5],C.V5,"tools/eyedropper"),this.AX=!1,this.Ky=1},C.yY.prototype=new C.An,C.yY.prototype.Vc=function(t){return t.Ku},C.yY.prototype.XZ=function(t,i,e,r,n){t.e=="pickhere"&&this.r$(e,i,n,r,t.a4y)},C.yY.prototype.R$=function(t,i,e,r,n){this.AX=!0,this.r$(t,i,e,r,n)},C.yY.prototype.$E=function(t,i,e,r,n){this.AX&&this.r$(t,i,e,r,n)},C.yY.prototype.NL=function(t,i,e,r,n){this.AX=!1},C.yY.prototype.r$=function(t,i,e,r,n){var a=C.yY.Js(t,n,this.Ky),s=new z(y.E.L);s.data={e:y.B.Sl,S9:ut.Io,mQ:0,C:a},i.w(s)},C.yY.Js=function(t,i,e){for(var r=t.a.PY(i.x,i.y),n=Math.floor(r.x),a=Math.floor(r.y),s=(e-1)/2,l=Math.max(0,n-s),h=Math.max(0,a-s),o=Math.min(t.Z,n+s+1),f=Math.min(t.h,a+s+1),u=(o-l)*(f-h),p=t.lD(),c=0,d=0,g=0,n=l;n2){var c;t.K?c=t.K.rect:c=new et(0,0,t.Z,t.h);var d=v.R(c.M()*4),g=this.fT,b=g.rB;b!="Lnr"&&(f*=2,h=this.KE),v.j.ao(g.j,d,c,[p*1/f,u*1/f,-u*1/f,p*1/f],h.x,h.y,g.mt,at.j.types.indexOf(b),e.GY,e.Ty,null,g.AN);var m=Math.round(g.Jf*256),x=d.length;if(m!=256)for(var M=0;M>>8;var S=new z(y.E.H);S.Q=C.um,S.data={e:"fillBMP",mu:d,Si:g.xQ,tP:this.name},i.w(S)}t.v.hK=null,t.v.CL=[],t.Vg=!0,this.h6=!1}},C.T7.M$=function(t,i){if(t.Qn(i))return t;var e=i.x-t.x,r=i.y-t.y,n=Math.abs(e),a=Math.abs(r);n>a&&(a=n/2>a?0:n),a>n&&(n=a/2>n?0:a),n=e>0?n:-n,a=r>0?a:-a;var s=Math.sqrt(e*e+r*r)/Math.sqrt(n*n+a*a);return new st(t.x+n*s,t.y+a*s)},C.T7.m2=function(t,i,e,r,n,a,s){s==null&&(s=y.z("canvas",""));var l=s.getContext("2d");s.width=i,s.height=e;var h=new et(0,0,i,e),o=v.R(i*e*4);v.RK(o,i,e,4,0,0);var f=Math.sin(r),u=Math.cos(r),p=v.R(i*e*4);v.j.ao(t,p,h,[u*1/i,f*1/i,-f*1/e,u*1/e],i/2,e/2,!1,0,n,a),v.N.DO("norm",p,h,o,h,h,1);var c=l.getImageData(0,0,i,e);return v.Hk(o,c.data),l.putImageData(c,0,0),s.toDataURL()},C.T7.aa8=function(t,i,e){for(var r=JSON.parse(JSON.stringify(t)),n=0;n>16&255,S:l>>8&255,i:l&255})}}}return r},C.DB=function(){C.An.call(this,[10,7],C.Al,"tools/hand"),this.C0=new st(0,0),this.Mf=null},C.DB.prototype=new C.An,C.DB.prototype.XZ=function(t,i,e,r,n){var a=t.e;a=="setcls"&&(e.a.qa=t.qa,e.Vg=!0,e.Ob=!0),a=="scroll"&&!r.s(W.ze)&&(r.s(W.Bl)?C.DB.Qq(e,e.a.c.x-t.Dk.y,e.a.c.y-t.Dk.x):C.DB.Qq(e,e.a.c.x-t.Dk.x,e.a.c.y-t.Dk.y))},C.DB.prototype.enable=function(t,i,e,r){this.Mf=null;var n=new z(y.E.L,!0);n.data={e:y.B.Ik,rr:"grab"},i.w(n)},C.DB.prototype.R$=function(t,i,e,r,n){this.Mf=t.a.c.clone(),this.C0.Oh(n.x,n.y)},C.DB.prototype.$E=function(t,i,e,r,n){!n.Ku||(this.Mf==null&&this.R$(t,i,e,r,n),C.DB.Qq(t,this.Mf.x+(n.x-this.C0.x),this.Mf.y+(n.y-this.C0.y)))},C.DB.prototype.NL=function(t,i,e,r,n){this.Mf=null},C.DB.Qq=function(t,i,e){var r=t.a.F;t.Z*r=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=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;n20/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;S0&&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;d128&&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$;S1&&e.s(W.ze)&&(n.d.pop(),n.d.pop(),n.d.push(this.H9.x,this.H9.y),t.v.hK=n,t.Vg=!0);return}n.W.push("L"),n.d.push(this.H9.x,this.H9.y),this.BV=this.H9,this.e3&&(t.v.hK=n,t.Vg=!0)}},C.Cw.prototype.go=function(){return this.ic!=null},C.Cw.prototype.II=function(){return this.ic!=null},C.Cw.prototype.gU=function(t,i,e,r){C.hl.prototype.gU.call(this,t,i,e,r),this.ic&&this.y0>1&&this.HG&&!this.HG.Ku&&!r.s(W.ze)&&this.o6(t,e,r)},C.Cw.prototype.sj=function(t,i,e,r){this.HG=r;var n=this.ic;if(n!=null){if(this.y0>1&&e.s(W.ze)){n.W.push("L"),n.d.push(this.H9.x,this.H9.y);return}this.o6(t,i,e)}},C.Cw.prototype.o6=function(t,i,e){this.finish(t,i,e,this.HG),this.ic=null,t.v.hK=null,t.Vg=!0},C.Cw.prototype.getSelection=function(t,i,e,r){return this.k7.Qn(this.H9)||!this.e3?null:C.hl.mT(this.ic.d)},C.qT=function(){C.An.call(this,[10,11],C.fb,"tools/move"),this.LV=new st(0,0),this.mM=new st(0,0),this.yZ=null,this.P_=null,this.ZI=new st(0,0),this.PJ=null,this.yH=null,this.JW=null,this.Gn=0,this.Hs=null,this.zF=[],this.Qx=null,this.h6=!1,this.e=0,this.I2=null,this.r2=null,this.M8=null,this.qJ=!1,this.fT={qc:!1,Vo:!1,bX:!1},this.nB=!1,this.hD=!1,this.JE=null,this.E1=null,this.ge=null;for(var t=[],i=0;ip?[23,3]:[23,4],p==0&&(f=[11,15,0])}else if(a=="gidsFromLayer"){for(var c=[[],[]],d=0;d";)T++;for(var L=e.root.V$(T),O=L;L.parent!=null;)L=L.parent,x.indexOf(L.index)!=-1&&(O=L);var E=w.indexOf(O.index);E==-1&&(E=w.length,w.push(O.index)),S[d]=E}for(var D=[],B=[],I=[],d=0;dn.y&&l.push(f,n.y,f,r.y),on.x&&l.push(n.x,u,r.x,u),h128}if(!h&&(!this.qJ&&this.fT.qc||this.qJ&&this.fT.qc&&(e.s(W.cm)||t.p.length<2))){var b=this.a49(t,l,e);if(!b){t.p=[],t.mb=null,t.Vf=t.mO=!0,this.e=3,this.I2=new et,this.h6=!0;return}}if(e.s(W.ze)&&!h){var p=new z(y.E.H);p.Q=C.xC,p.data={e:H.xm,akZ:!0},i.w(p)}}if(t.oD.length!=0){this.e=4,this.Qx=t.Yq[t.oD[0]].rect.clone(),this.h6=!0;return}this.Hs=t.JU(a==null,a,null,!0);for(var m=0;m>2),v.E4(M.rD.zU,L,3)):L=v.clone(t.K.channel);var O={rect:M.rD.RL.clone(),channel:L};this.M8=new ni(S?[12,53]:[12,54],this),this.M8.data={e:1,n:t.p[0],rD:M.rD,vg:k,o3:T,la:t.K,Od:O,xA:new st(0,0)},t.TX(this.M8),t.K=O,t.Es=!0}}this.h6=!0,this.Qx=C.X.o7(t)},C.qT.prototype.a49=function(t,i,e){var r=t.root.cp(new st(Math.floor(i.x),Math.floor(i.y)));if(r){r.n.add.vmsk&&(t.Vg=!0);var n=t.r.indexOf(r.n);if(e.s(W.cm)){var a=t.p.indexOf(n);a==-1?t.p.push(n):t.p.length>1&&t.p.splice(a,1)}else t.p.indexOf(n)==-1&&this.BY(t,n)}return r!=null},C.qT.prototype.BY=function(t,i){t.r[i].kB=0,t.p=[i],t.mb=null,t.HP(),t.Mv=!0,t.Vf=!0},C.qT.prototype.$E=function(t,i,e,r,n){this.yZ=n;var a=t.a.PY(n.x,n.y),s,l;if(this.P_&&this.e<2&&(a=this.P_.ki(a,r)),!this.h6){if(e.IT&&e.Np.ei){var h=this.X3(t,a),o="default";if(h)o=["col-resize","row-resize"][h[0]];else if(this.JE){var f=this.JE.Eb(a,t.a.F);f&&(o=f)}this.b9(o,i)}this.IG(t,a);return}var u=this.mM,p=Math.round(a.x-u.x)-this.ZI.x,c=Math.round(a.y-u.y)-this.ZI.y;this.Qx&&(this.e==2?a=C.qT.aE(t,a,e,[!1,t.K?t.K.rect:this.Qx,!0]):(l=this.Qx.clone(),l.offset(this.ZI.x+p,this.ZI.y+c),s=C.qT.hx(t,l,e),p+=Math.round(s[0]),c+=Math.round(s[1]))),this.ZI.x+=p,this.ZI.y+=c,this.ht(t,p,c,a,null,r.s(W.cm)),this.IG(t,a),s&&C.qT.rz(t,l,s)},C.qT.prototype.X3=function(t,i){i=[i.x,i.y];for(var e=0;e<2;e++)for(var r=0;r0){var M=f.add.GdFl;M==null&&(M=f.add.PtFl),f.ws()&&!f.UW()&&f.add.vmsk!=null&&v.V.vq(f.add.vmsk.b)&&f.add.vmsk.au==255&&(M==null||M.Algn&&M.Algn.v)?f.rect.offset(h,o):f._V(t);var S=t.root.Ch(f.G_(t),t,i[a]);s=s.s7(S),S.offset(-h,-o),s=s.s7(S),(f.add.SoCo||f.add.GdFl||f.add.PtFl||Vt.get(f.add)!=null)&&(s=s.s7(l)),f.pc()}}t.A(s)}},C.qT.a9C=function(t,i){for(var e=[],r=0;r>>a),i.x+i.Z],[i.y,i.y+(i.h>>>a),i.y+i.h]],e,r);return s},C.qT.zk=function(t,i,e,r){r==null&&(r=[!0,null,!0]);var n=[0,0,1e9,1e9];if(!e.dl)return n;for(var a=JSON.parse(JSON.stringify(i)),s=0;s<2;s++){for(var l=1e9,h=i[s],o=0,f=0;f>>1),m.y+(M>>>1),m.x+x,m.y+M],f=0;f<6;f+=2)Math.abs(S[f+r]-i)>>1,M>>>1,x,M],f=0;f<6;f+=2)Math.abs(S[f+r]-i)t.Z||i.y<0||i.y>t.h)return null;var a=new et(0,0,t.Z,t.h),s=r.kB<=0?null:r.kB==1?r.jk():r.yg(t).g;s==null&&a.Qn(r.rect)?n=r.buffer:(n=v.R(a.M()*4),s==null?v.BP(r.buffer,r.rect,n,a):C.gn.Jy(s.channel,s.rect,s.color,n,a));var l=C.C6.XF(n,a,i,null,e),h=v.xw(l,a),o=v.R(h.M());return v.Lj(l,a,o,h),{rect:h,channel:o}},C.C6.$i=function(t,i,e){var r=i.Z,n=0,a=0,s=0,l=0;t=new Uint32Array(t.buffer);for(var h=[],o=e.length,f=0;f>8&255,g>>16&255,g>>>24])}return h},C.C6.XF=function(t,i,e,r,n){t=new Uint32Array(t.buffer);var a=i.Z,s=i.h,l=a*s;r==null&&(r=C.C6.$i(t,i,[e]));var h=Math.round(e.x-.5-i.x),o=Math.round(e.y-.5-i.y),f=o*a+h,u=Date.now(),p=v.R(a*s),c=n[0],d=1/c,g=n[1]&&c>0?255:0;if(n[2]){var b=v.R(p.length),m=new Uint32Array(l),x=1;for(m[0]=h<<16|o,b[f]=1;x>0;){var M=m[x-1];x--;var S=M>>>16,w=M&65535,k=w*a+S,T=C.C6.uD(t[k],r);if(T>c){var L=g*(1-Math.max(0,Math.min(1,(T-c)*d)));p[k]=~~L}else p[k]=255,w!=s-1&&b[k+a]==0&&(m[x++]=S<<16|w+1,b[k+a]=1),w!=0&&b[k-a]==0&&(m[x++]=S<<16|w-1,b[k-a]=1),S!=a-1&&b[k+1]==0&&(m[x++]=S+1<<16|w,b[k+1]=1),S!=0&&b[k-1]==0&&(m[x++]=S-1<<16|w,b[k-1]=1)}}else{for(var k=0;k0&&(p[k-1]==255||w>0&&p[k-a-1]==255||w0&&p[k-a+1]==255||w0&&p[k-a]==255||w>>8&255,n=t>>>16&255,a=t>>>24&255;if(i[3]==0)return a<5?0:255;var s=Math.max(Math.abs(e-i[0]),Math.max(Math.abs(r-i[1]),Math.abs(n-i[2])));return a==0?255:s},C.Eq=function(){C.gn.call(this,[10,26],C.cs,"tools/patch"),this.BV=null,this.ic=null,this.c=null,this.tZ=null,this._U=new st,this.Dd=null},C.Eq.prototype=new C.gn,C.Eq.prototype.R$=function(t,i,e,r,n){var a=t.a.PY(n.x,n.y);if(t.K&&v.cp(a,t.K.channel,t.K.rect)){var s=new et(0,0,t.Z,t.h),l=s.$X(t.K.rect);if(!t.FD()||l.qr())return;if(!l.Qn(t.K.rect)){var h=v.R(l.M());v.Lj(t.K.channel,t.K.rect,h,l),t.K={channel:h,rect:l}}if(this.qO(t),this.Rc(t),this.tZ=a,this._U=new st(a.x-t.K.rect.x,a.y-t.K.rect.y),this.Dd=v.R(t.K.rect.M()*4),v.set(this.Dd,4294967295),this.fT.patch==1){var o=t.r[t.p[0]];o.WC(t,t.K,!0),o.rD==null&&(this.tZ=null)}}else this.ic={d:[a.x,a.y],W:["M"]},this.BV=a},C.Eq.prototype.$E=function(t,i,e,r,n){var a=t.a.PY(n.x,n.y);if(this.tZ)if(this.fT.patch==1){var s=t.r[t.p[0]].rD,l=a.x-this._U.x,h=a.y-this._U.y;C.qT.EL(t,t.p[0],Math.round(l-s.RL.x),Math.round(h-s.RL.y))}else this.W7(t,a,"clone");this.BV&&(this.ic.W.push("L"),this.ic.d.push(a.x,a.y),this.BV=a,t.v.hK=this.ic,t.Vg=!0)},C.Eq.prototype.NL=function(t,i,e,r,n){var a=t.a.PY(n.x,n.y);if(this.tZ&&(this.W7(t,a,"heal"),this.finish(t,t.K.rect),this.tZ=null),this.BV){var s=C.hl.Le(this.fT.setop,r.s(W.cm),r.s(W.ze)),l=new z(y.E.QJ,!0);this.ic.d.length<=4?l.data=C.hl.cA():l.data=C.hl.mT(this.ic.d,s),i.w(l),this.BV=null,t.v.hK=null,t.Vg=!0}},C.Eq.prototype.vh=function(){return this.c},C.Eq.prototype.zT=function(t,i,e,r,n){C.gn.prototype.zT.call(this,t,i,e,r,n),this.b9(n,r)},C.Eq.prototype.b9=function(t,i){var e="auto;";(i!=null&&i.s(W.cm)&&!i.s(W.ze)||this.fT.setop=="union")&&(e="copy");var r=new z(y.E.L,!0);r.data={e:y.B.Ik,rr:e},this.caller&&this.caller.w(r)},C.Eq.prototype.W7=function(t,i,e){var r=new st(Math.round(this.tZ.x-i.x),Math.round(this.tZ.y-i.y));this.fT.patch==1&&r.Oh(-r.x,-r.y),this.c=r,this.vM(t,e,this.Dd,t.K.rect,t.K.rect),this.A(t,t.K.rect)},C.Qb=function(){C.gn.call(this,[10,13],C.a82,"tools/pbucket")},C.Qb.prototype=new C.gn,C.Qb.prototype.enable=function(t,i,e,r){var n=new z(y.E.L,!0);n.data={e:y.B.Ik,rr:"default"},i.w(n)},C.Qb.prototype.AK=function(t,i){},C.Qb.prototype.NL=function(t,i,e,r,n){if(!!t.FD()){var a=t.a.PY(n.x,n.y),s=C.C6.tU(t,a,this.fT.wconf);if(s!=null){var l=v.R(s.rect.M()*4);v.XB(l,(e.GY&255)<<16|(e.GY>>8&255)<<8|(e.GY>>16&255)<<0),v.Oy(s.channel,l,3),this.qO(t),this.vM(t,"draw",l,s.rect,s.rect),this.A(t,s.rect),this.finish(t,s.rect)}}},C.BK=function(){C.hl.call(this,[10,14],C.a6q,"tools/plasso"),this.qy="crosshair",this.Ic=[],this._M=null,this.ic=null,this.ak2=0},C.BK.prototype=new C.hl,C.BK.prototype.disable=function(t,i,e,r){this.bJ(t)},C.BK.prototype.Qf=function(t,i,e,r){this.Ic=[W.Yk,W.Yp]},C.BK.prototype.aU=function(t){return this.Ic.indexOf(t)!=-1},C.BK.prototype.Vc=function(t){return this.ic!=null},C.BK.prototype.II=function(){return this.ic!=null},C.BK.prototype.go=function(){return this.ic!=null},C.BK.prototype.Ap=function(t,i,e,r){if(this.ic!=null){var n=this.ic,a=n.d,s=a.length-2,l=this.H9;this.y0>1&&e.s(W.ze)&&r.Ku?(a.push(0,0),n.W.push("L"),s+=2):e.s(W.cm)&&(l=C.T7.M$(new st(a[s-2],a[s-1]),l)),a[s]=l.x,a[s+1]=l.y,t.v.hK=n,t.Vg=!0}},C.BK.prototype.sj=function(t,i,e,r){var n=Date.now();if(this.ic==null)this.ic={d:[this.H9.x,this.H9.y,this.H9.x,this.H9.y],W:["M","L"]};else{if(this.Ap(t,i,e,r),n-this.ak2<250||st.Yj(this.H9,new st(this.ic.d[0],this.ic.d[1]))<5*y.J()/t.a.F){this._M=this.ic,this.finish(t,i,e,r),this.bJ(t);return}this.ic.W.push("L"),this.ic.d.push(this.H9.x,this.H9.y)}this.ak2=n,t.v.hK=this.ic},C.BK.prototype.bJ=function(t){this.ic=null,this.Ic=[],t!=null&&(t.v.hK=null,t.Vg=!0)},C.BK.prototype.gU=function(t,i,e,r){if(C.hl.prototype.gU.call(this,t,i,e,r),r.s(W.yc)&&this.ic==null&&this._M&&t.K!=null){var n=new z(y.E.H);n.Q=C.Kb,n.data={e:"h_stepbck"},i.w(n),this.Qf(t,e,r,null),this.ic=this._M;return}this.ic!=null&&((r.s(W.Yk)||r.s(W.Yp))&&(this.ic.d.pop(),this.ic.d.pop(),this.ic.W.pop(),this.Ap(t,e,r)),r.s(W.Xr)&&(this.ic.d.length>4&&(this._M=this.ic,this.finish(t,e,r)),this.ic=null),r.s(W.yc)&&(this.ic=null),t.v.hK=this.ic,t.Vg=!0)},C.BK.prototype.getSelection=function(t,i,e,r){return C.hl.mT(this.ic.d)},C.zZ=function(){C.hl.call(this,[10,10],C.a9j,"tools/mlasso"),this.qy="crosshair",this.Ic=[],this.b=[],this.LT=[],this.V8=[],this.Ue=null,this.i1=null,this.I$=null,this.Gn=0,this.y9=0},C.zZ.prototype=new C.hl,C.zZ.prototype.disable=function(t,i,e,r){this.clear(t)},C.zZ.prototype.Vc=function(t){return this.b.length!=0},C.zZ.prototype.go=function(){return this.b.length!=0},C.zZ.prototype.aU=function(t){return this.Ic.indexOf(t)!=-1},C.zZ.prototype.Qf=function(t,i,e,r){this.Ic=[W.Yk,W.Yp];var n=this.h2(this.k7,t);if(this.b.length!=0&&(st.Yj(n,this.b[0])<4*y.J()/t.a.F||Date.now()-this.Gn<300)){this.uy(t,this.b[0]),this.finish(t,i,e),this.clear(t);return}if(this.Gn=Date.now(),this.b.length!=0)n=this.ra(n,t);else{for(var a=t.Z,s=t.h,l=v.R(a*s),h=t.lD(),o=a*s*4,f=0;f>>2]=~~(.5+v.ou(h[f],h[f+1],h[f+2])*(h[f+3]*(1/255)));this.Ue=v.Pn.akw(l,a,s),this.I$=new Uint16Array(l.length)}this.uy(t,n),this.y9=e.s(W.ze)?1:0,this.U5(t)},C.zZ.prototype.uy=function(t,i){var e=this.b;if(this.LT[e.length]=this.V8.length,e.length!=0){v.Pn.T9(this.i1,i.y*t.Z+i.x);var r=this.bO(t,i);r.reverse();var n=C.zZ.Ew(t,r);this.V8=this.V8.concat(n)}e.push(i),this.n7(t)},C.zZ.prototype.n7=function(t){var i=this.b[this.b.length-1],e=i.y*t.Z+i.x;this.i1=v.Pn.ajf(this.Ue.g8,this.Ue.lr,e),this.I$.fill(0)},C.zZ.prototype.h2=function(t,i){return new st(Math.floor(Math.max(0,Math.min(i.Z-1,t.x))),Math.floor(Math.max(0,Math.min(i.h-1,t.y))))},C.zZ.prototype.clear=function(t){this.V8=[],this.b=[],this.LT=[],this.Ue=null,this.i1=null,this.I$=null,t!=null&&(t.v.hK=null,t.v.CL=[],t.Vg=!0),this.Ic=[]},C.zZ.prototype.Ap=function(t,i,e,r){var n=this.b,a=n.length;if(a!=0){for(var s=this.ra(this.h2(this.H9,t),t),l=this.bO(t,s),h=0;h30&&st.Yj(f,n[a-1])>20){this.uy(t,f);return}this.I$[o]++}this.y9==1&&r.Ku&&this.uy(t,s),this.U5(t)}},C.zZ.prototype.U5=function(t){var i=this.b;if(i.length!=0){var e=this.ra(this.h2(this.H9,t),t),r=this.bO(t,e);r.reverse();for(var n=C.zZ.Ew(t,r),a=this.V8.concat(n),s=t.v.hK={d:a,W:["M"]},l=2;l5e3)throw console.log(a),"e";return a},C.zZ.Ew=function(t,i){for(var e=[],r=t.Z,n=0;n=e||f<0||f>=r||(v.Pn.T9(this.i1,f*e+o),this.i1.xy[f*e+o]e||i*n*1/2>r;)n*=1/2;return t*n*2/3>e||i*n*2/3>r?n*=1/2:(t*n>e||i*n>r)&&(n*=2/3),n},C.$h.ajR=function(t,i){var e=C.$h.gd(t);return i&&e==0||!i&&e==C.$h.dc.length-1?t:C.$h.dc[i?e-1:e+1]},C.$h.gd=function(t){for(var i=0;C.$h.dc[i]>t;)i++;return i},C.$h.dX=function(t,i,e,r){var n=t.EA;if(!((r==0||r==null)&&(r=C.$h.ajR(t.F,e),r==t.F))){var a=t.PY(i.x,i.y);if(n.Z*r<=t.xX.Z&&n.h*r<=t.xX.h)t.c.Oh(0,0),t.F=r;else{var s=t.c5(),l=t.F/r;s.translate(-a.x,-a.y),s.scale(l,l),s.translate(a.x,a.y),t.rE(s)}}},C.$h.prototype.XZ=function(t,i,e,r,n){var a=0,s=!1,l=null;if(t.e=="adapt"){var h=0;if(t.C=="pixel"&&(h=1),t.C=="fitscr"){var h=0,o=e.a.xX.Z,f=e.a.xX.h;if(e.Z<=o&&e.h<=f){for(var u=1;e.Z*(u+1)<=o&&e.h*(u+1)<=f;)u++;h=u}else h=C.$h.P9(e.Z,e.h,o,f)}l=new st(Math.round(e.a.xX.Z/2),Math.round(e.a.xX.h/2)),a=h,C.$h.dX(e.a,l,s,a),e.Ob=!0}if(t.e.startsWith("multi")){let D=function(I){var N=I[0].x-I[1].x,V=I[0].y-I[1].y;return Math.sqrt(N*N+V*V)},B=function(I){return new st((I[0].x+I[1].x)/2,(I[0].y+I[1].y)/2)};var O=D,E=B,p=t.vD,c=B(p);if(t.e=="multidown")this.wf=[p,e.a.F,e.a.PY(c.x,c.y)];else{if(a=this.wf[1]*D(p)/D(this.wf[0]),a>=1)a=Math.min(32,Math.round(a));else{for(var d=0,g=1e9,b=C.$h.dc,m=0;mk)s=!1,this.i6=Math.min(this.i6-k,k-1);else return;C.$h.dX(e.a,l,s,a),e.Ob=!0}if(t.e=="zoom"&&(l=t.yZ?t.yZ:new st(Math.round(e.a.xX.Z/2),Math.round(e.a.xX.h/2)),t.F!=null?a=t.F:s=t.Wu,C.$h.dX(e.a,l,s,a),e.Ob=!0),t.e=="mskView"){var T=e.r[e.p[0]],L=T.kB==3?T.yg(e).g:T.jk();t.C==0&&(e.a.qa=[1,1,1],L.gG=!1),t.C==1&&(e.a.qa=[1,1,1],L.gG=!0),t.C==2&&(e.a.qa=[0,0,0],L.gG=!0);for(var m=0;m>>16&255,S:t>>>8&255,i:t>>>0&255}),this.JW.w(i)}},C.Y2.prototype.XZ=function(t,i,e,r,n){if(this.JW=i,t.e=="newfill"){if(t.iy==0){var a=new z(y.E.L,!0);a.data={e:y.B.uH,W2:"colorpicker",u9:n.GY,jz:this.aj$.bind(this)},i.w(a)}}else if(t.e=="pathedit"){var s=t.mQ,l="",h=e.VW.slice(0),o=e.QP.slice(0),f=e.VW.slice(0),u=e.QP.slice(0);if(s=="rnm"){var p=-1-t.XN,c=h[p],d=Pt.GG(t.name,c.add);f[p]=d,l="Rename"}else if(s=="new")f.push(Pt.GG("Path "+h.length)),u=[f.length-1],l="New";else if(s=="del"){if(u.length==0)return;u.sort(function(G,Z){return G-Z}),u[0]==0&&(f[0]=Pt.GG(h[0].name),u=u.slice(1));for(var g=0;u.length!=0;)f.splice(u[0]-g,1),u=u.slice(1),g++;l="Delete"}else if(s=="fromsel"){var b=f[0]=Pt.GG("Work Path");if(u=[0],e.K==null)return;for(var m=e.K.channel.slice(0),x=0;x128?2:1;var M=e.K.rect.clone();M.PK(1,1);var S=v.R(M.M());v.Lj(m,e.K.rect,S,M);for(var w=ln.ih(S,M.Z,M.h,Math.round(M.M()*5e-4)),k=ln.Cj(w),T=new Et(1,0,0,1,-1+e.K.rect.x,-1+e.K.rect.y),x=0;x0){for(var a=["SoCo","GdFl","PtFl"][n-1],s=0;s<3;s++)delete t.add[["SoCo","GdFl","PtFl"][s]];t.add[a]=i.qA}},C.sp=function(t,i,e,r){C.Y2.call(this,t,i,e),this.fT={tmode:1,shape:qr.tt(),pshape:0,binop:0,crad:0,irad:40,length:4,sides:5,width:5,tolr:5,cstr:{wV:0}},this.ad8=r,this.Y0=null,this.JL=null,this.a0=null},C.sp.prototype=new C.Y2,C.sp.prototype.Vc=function(t){return t.Ku&&this.id!=C.Rw},C.sp.prototype.enable=function(t,i,e,r,n){this.yH=e;var a=new z(y.E.L,!0);a.data={e:y.B.Ik,rr:"crosshair"},i.w(a)},C.sp.prototype.Rr=function(t,i,e,r){},C.sp.prototype.R$=function(t,i,e,r,n){this.v4(i,e);var a=this.fT.tmode;if(!(a==2&&!t.FD())){var s=t.a.PY(n.x,n.y);s=C.qT.aE(t,s,e),this.a0=[s.x,s.y],this.Y0=s,this.JL=new st(0,0)}},C.sp.prototype.tR=function(t,i,e){var r=[this.Y0.clone(),i.clone()];return this.ad8&&(r=C.sp.en(r[0],r[1],e,!0,this.fT.cstr)),t&&(t.a.GW=new et(r[0].x,r[0].y,r[1].x-r[0].x,r[1].y-r[0].y)),this.Rr(r[0],r[1],e.s(W.cm),this.a0)},C.sp.prototype.xF=function(t,i,e){var r=t.a.PY(i.x,i.y),n=this.fT.cstr;if(n.wV==2){var a=new et(r.x-n.x,r.y-n.y,n.x,n.y),s=C.qT.hx(t,a,e);r.x+=s[0],r.y+=s[1],C.qT.rz(t,a,s)}else r=C.qT.aE(t,r,e);return r},C.sp.prototype.$E=function(t,i,e,r,n){if(this.Y0!=null){var a=this.xF(t,n,e);r.s(W.fd)?this.Y0=a.gI(this.JL):this.JL=a.gI(this.Y0),this.a0.push(a.x,a.y),this.fT.shape==null&&(this.fT.shape=e.KQ[0]);var s=this.tR(t,a,r)[0],l=v.D.xJ(s);t.v.hK=l,this.id!=C.Rw&&this.id!=C.S3&&this.id!=C.rG&&C.An.Wf(n.x+10,n.y-10,t.a.GW,t,e),t.Vg=!0}},C.sp.prototype.afM=function(t,i,e,r){var n=t[4].clone();r&&(n.x-=i/2,n.y-=e/2);var a=this.Rr(n,new st(n.x+i,n.y+e),!1,this.a0);this.Kd(t[0],t[1],t[2],a)},C.sp.prototype.Kd=function(t,i,e,r){var n=new z(y.E.QJ,!0);if(n.data=C.sp.HV(r[1],e),i.w(n),r[1].v.classID=="customShape"&&r[1].v.Nm.v.startsWith("--")){var a=t.Cj(),s=a[0],l=a[1],h=s[l.pop()],o=h.add.vmsk,f=h.add.vogk,u=o.clone();u.b=r[0],this.YC(t,h.XN,u,f)}},C.sp.prototype.NL=function(t,i,e,r,n){if(this.Y0!=null){var a=this.xF(t,n,e),s=this.fT.binop,l=this.fT.tmode,h=this.a0,o=h.length;if(!(this.id==C.Rw&&o<=4)){if(o<=4){a.x=Math.round(a.x),a.y=Math.round(a.y);var f=new z(y.E.L);f.data={e:y.B.uH,W2:"createshape",a25:this.afM.bind(this),a9p:this.name,a9i:[t,i,e,r,a]},i.w(f)}else if(o!=2){var u=this.tR(t,a,r),p=u[0];if(l==0&&p.length>2){p[2].IO=[1,2,3,0][s];var c=t.Cj(!0),d=c[0],g=c[1],b=d[g.pop()],m=b.add.vmsk,x=b.add.vogk,M=m.clone(),S=m.clone(),w=JSON.stringify(x);S.b=S.b.concat(p.slice(2)),S.p=[v.V.k3(S.b)-1];var k=v.P$.ND(u[1]);x.push(k||v.P$.Zm()),this.YC(t,b.XN,S,x),this.ww(t,this.name,b.XN,M,S,null,w,JSON.stringify(x))}else if(l==1)this.Kd(t,i,e,u);else if(l==2){var S=new H.iO;S.b=S.b.concat(p.slice(2));var T=S.jk(),L=v.R(T.rect.M()*4);v.XB(L,(e.GY&255)<<16|(e.GY>>8&255)<<8|(e.GY>>16&255)<<0),v.Oy(T.channel,L,3);var O=new z(y.E.H,!0);O.Q=C.Sm,O.data={e:"draw",pL:{buffer:L,rect:T.rect.clone()},tP:this.name},i.w(O)}}}this.Y0=null,t.v.hK=null,t.v.zK=null,t.v.Tw=[],t.a.GW=null,t.Vg=!0}},C.sp.prototype.zT=function(t,i,e,r,n){for(var e in t)this.fT[e]=t[e]},C.sp.en=function(t,i,e,r,n){var a=t.x,s=t.y,l=i.x,h=i.y;if(n&&n.wV==2)r&&(l=Math.round(l),h=Math.round(h)),a=l-n.x,s=h-n.y;else{var o=0;if(n&&n.wV==1?o=n.y/n.x:e&&e.s(W.cm)&&(o=1),o!=0){r&&(aa?a+p:a-p,h=h>s?s+p*o:s-p*o}e&&e.s(W.ze)&&(a-=l-a,s-=h-s)}var t=new st(a,s),i=new st(l,h);return r&&C.sp.am8(t,i),[t,i]},C.sp.am8=function(t,i){if(t.x>i.x){var e=t.x;t.x=i.x,i.x=e}if(t.y>i.y){var e=t.y;t.y=i.y,i.y=e}t.x=Math.floor(t.x),t.y=Math.floor(t.y),i.x=Math.ceil(i.x),i.y=Math.ceil(i.y)},C.sp.a4A=function(){return{classID:"Mk",null:{t:"obj ",v:[{t:"Clss",v:{classID:"contentLayer"}}]},Usng:{t:"Objc",v:{classID:"contentLayer",Type:{t:"Objc",v:{}}}}}},C.sp.XL=function(t,i){var e=C.sp.a4A();return i==null&&(i=JSON.parse(JSON.stringify(at._G[t]))),dt.T8.CR(i,e.Usng.v.Type.v,t),{Bm:"make",w1:e}},C.sp.HV=function(t,i){var e=i.wI,r=JSON.parse(JSON.stringify(i.n2));e.d1==0&&(r.fillEnabled.v=!1);var n=C.sp.XL(Math.max(0,e.d1-1),e.qA);return n.w1.Usng.v.Shp=t,n.w1.Usng.v.strokeStyle={t:"Objc",v:r},n},C.bz=function(){C.Y2.call(this,[10,29],C.wu,"tools/pen"),this.Q9=null,this.D1=null,this.SW=1,this.a1B=0,this.hX=null,this.VK=!1},C.bz.prototype=new C.Y2,C.bz.prototype.Vc=function(t){return this.Q9!=null},C.bz.prototype.R$=function(t,i,e,r,n){this.v4(i,e);var a=t.a.PY(n.x,n.y),s,l;a.x=Math.round(a.x),a.y=Math.round(a.y);var h=C.qT.aE(t,a,e),o=t.Cj(this.SW==0),f=o[0],u=o[1],p=f[u.pop()],c=p?p.add.vmsk:null,d=4*y.J()/t.a.F;if(c&&(s=v.V.cp(c.b,a,!0,d)),this.SW==1&&(c==null||(c.s_.length==0||c.s_[0]!=c.b.length-1)&&s.XN==-1)){var g=new z(y.E.QJ,!0),b=v.P$.Sn("customShape",[0,0,1,1],null,null,null,"--");g.data=C.sp.HV(b,e),i.w(g),o=t.Cj(!0),f=o[0],u=o[1],p=f[u.pop()],c=p.add.vmsk,c.b=c.b.slice(0,2)}var m=p.add.vogk;this.Q9=c.clone(),this.D1=JSON.stringify(m);var x=c.b,M=v.V.k3(x);if(l=v.V.Wh(c.b,new et(a.x-d,a.y-d,d*2,d*2)),s=v.V.cp(c.b,a,!0,d),s.XN!=-1&&l[0].length==0){for(var S=v.V.cx(x,s.XN);x[S].length<=s._2;)s._2-=x[S].length,S+=x[S].length+1;x[S].length++,x.splice(S+2+s._2,0,{type:4,wU:h.clone(),_:h.clone(),dv:h.clone()}),c.s_=[S+2+s._2]}else if(l[0].length==1&&r.s(W.ze)){var w=l[0],k=c.b.length-1,T=c.b[w];T.dv=T._.clone(),w!=k&&(T.wU=T._.clone())}else{var L=0;if(c.s_.length!=1)c.p=[M],x.push({type:3,length:1,IO:[1,2,3,0][this.a1B],yU:0,Oj:0,UB:0}),L=x.length,m.push(v.P$.Zm());else{var O=c.s_[0],E=v.V.o_(x,O),S=v.V.cx(x,E);if(O==S+x[S].length&&st.Yj(a,x[S+1]._)0}else{var b=this.Qx.clone(),m=b.x,x=b.y;b.offset(a.x-this.Qv.x,a.y-this.Qv.y),b.x=Math.round(b.x),b.y=Math.round(b.y);var M=C.qT.hx(t,b,e),S=new Et(1,0,0,1,b.x-m+M[0],b.y-x+M[1]);v.V.G5(h.b,S,h.p),v.P$.O(o,v.P.Jb(S),h.p),C.qT.rz(t,b,M)}this.YC(t,s.XN,h,o)}else{var w=this.Qv;t.v.hK=v.D.z0(new et(w.x,w.y,a.x-w.x,a.y-w.y)),t.Vg=!0}}},C.YR.prototype.NL=function(t,i,e,r,n){if(this.Qv!=null){var a=t.a.PY(n.x,n.y),s=this.ic,l=s?s.add.vmsk:null;if(this.UU){var h=JSON.stringify(s.add.vogk);this.Qv.Qn(a)||this.ww(t,"Move Paths",s.XN,this.Q9,l,null,this.D1,h),t!=null&&t.v.zK&&(t.v.zK=null,t.Vg=!0)}else{if(l){var o=this.Qv,f=new et(o.x,o.y,a.x-o.x,a.y-o.y),u=v.V.aiz(l.b,f);if(r.s(W.cm))for(var p=0;pu+p&&(a[d]+=f)}}this.V_(r,n),r.s_=[]}this.YC(this.cz,this.ic.XN,r,n),t=="cancel"&&this.bJ()},C.HA.prototype.disable=function(t,i,e,r){this.Fa(t)},C.HA.prototype.R$=function(t,i,e,r,n){this.Fa(t);var a=t.a.PY(n.x,n.y),s,l,h;this.xi=a.clone();var o=t.Cj(),f=o[0],u=o[1];if(u.length!=0){for(var p=4*y.J()/t.a.F,c=new et(a.x-p,a.y-p,p*2,p*2),d=0;d>>1),t.v.z6.push(D.x,D.y),t.Vg=!0}}}},C.HA.prototype.Fa=function(t){t&&t.v.z6.length!=0&&(t.v.z6=[],t.v.Cs=[],t.Vg=!0)},C.HA.prototype.NL=function(t,i,e,r,n){var a=t.a.PY(n.x,n.y),s=this.ic,l=s?s.add.vmsk:null,h=s?s.add.vogk:null;if(this.ZZ!=-1){if(Date.now()-this.Gn<300){var o=l.b[this.ZZ],f=this.d0,u=null;if(f==0){var p=o.wU.Qn(o._),c=o.dv.Qn(o._);!p&&!c?(u="Anchor Type",o.type==1||o.type==4?o.type++:(o.type--,o.dv=o._.add(o._.gI(o.wU)))):(u="Add Handles",p&&c?(o.wU.x-=30,o.dv.x+=30):p?o.wU=o._.add(o._.gI(o.dv)):c&&(o.dv=o._.add(o._.gI(o.wU))))}else u="Remove Handle",f==1?o.wU.fa(o._):o.dv.fa(o._);this.V_(l,h),this.YC(t,s.XN,l,h),this.ww(t,u,s.XN,this.Q9,l,null,this.D1,JSON.stringify(h))}else this.xi.Qn(a)||this.ww(t,"Drag Anchors",s.XN,this.Q9,l,null,this.D1,JSON.stringify(h));this.Gn=Date.now()}else if(this.Qv!=null){var d=this.Qv,g=new et(d.x,d.y,a.x-d.x,a.y-d.y);g.Z<0&&(g.x+=g.Z),g.h<0&&(g.y+=g.h),g.Z=Math.abs(g.Z),g.h=Math.abs(g.h);var b=v.V.Wh(l.b,g);l.s_=b[0],t.v.hK=null}this.bJ(),t.Vg=!0},C.HA.prototype.bJ=function(){this.ic=null,this.Q9=null,this.Qv=null,this.ZZ=this.d0=-1,this.P_=null},C.HA.prototype.V_=function(t,i){for(var e=0;e2&&r.push(-1-t.QP[n]);var a=[],s=t.a.qa;s[0]+s[1]+s[2]==3&&(e!=null||r.length==0||t.mb!=null&&t.mb.length!=0)&&(a=t.JU(i,e,null,!0)),a=a.concat(r);for(var n=0;n=0&&!s.rect.qr())this.oU=1,this.la=t.K,this.vg=s.rD,this.o3=!1,s.Je(t,t.K)||(this.o3=!0,s.WC(t,t.K,!1)),this.s6={Tr:s.rD.zU,T:s.rD.RL};else{this.oU=0,this.zB=C.X.HS(t,this.r,null,e);for(var h=0;h=0)r=t.K.rect.clone();else for(var n=0;n=0)l=t.r[s],h=l.Ys(t,e,r);else if(s>-1e3)l=t.VW[-1-s],h=[2];else{n.push([null,null,null,null,null,null,null,t.Yq[-1e3-s].clone()]);continue}var o=[];if(h.indexOf(0)!=-1){var f={ia:[v.clone(l.buffer),l.rect.clone()]};if(o.push(f),l.gO()){var u=l.yg(t);f.a8i=v.clone(u.buffer),f.aae=u.rect.clone()}}else o.push(null);h.indexOf(1)!=-1?o.push(l.jk().clone()):o.push(null),h.indexOf(2)!=-1?o.push({PS:l.add.vmsk.clone(),bW:l.add.vstk?JSON.parse(JSON.stringify(l.add.vstk)):null,qA:l.add.vstk?C.Y2.Un(t,s):null,P$:l.add.vogk?JSON.parse(JSON.stringify(l.add.vogk)):null}):o.push(null),l.add.TySh&&o[0]?(lt.jj(l.add.TySh),o.push(l.add.TySh.O.clone())):o.push(null),l.add.SoLd&&o[0]?o.push(JSON.parse(JSON.stringify(l.add.SoLd))):o.push(null),h.indexOf(3)!=-1?o.push(l.yg(t).g.clone()):o.push(null),l.add.lmfx?o.push(JSON.stringify(l.add.lmfx)):o.push(null),n.push(o)}return n},C.X.Pi=function(t,i,e){for(var r=0;r1;O&&(L=!1);var E=L?T.p:null,D=O?T.s_:null;if(k){var B=v.mD.ij(s);v.P.apply(p,B),v.V.af3(T.b,B,E,D)}else v.V.ajB(T.b,p,E,D);if(b.add.vstk&&l){b.add.vstk.strokeStyleLineWidth.v.val=m[2].bW.strokeStyleLineWidth.v.val*d;var I=m[2].qA;if(I.d1==3){I=JSON.parse(JSON.stringify(I));var N=I.qA.phase.v;I.qA.Scl.v.val=Math.round(I.qA.Scl.v.val*d),N.Hrzn.v=Math.round(N.Hrzn.v*d),N.Vrtc.v=Math.round(N.Vrtc.v*d),C.Y2.ov(b,I)}}b.add.vogk&&(b.add.vogk=JSON.parse(JSON.stringify(m[2].P$)),k||O?v.P$.acG(b.add.vogk):v.P$.O(b.add.vogk,p,e.length>1?[]:T.p,l)),T.bM*=d,b.add.vmsk=T,b.add.vogk&&v.P$.xc(b.add.vogk,b.add.vmsk)}if(m[3]){var V=m[3].clone();V.concat(c),b.add.TySh.O=V,lt.SK(b.add.TySh);var j=new Si(b.add.TySh.MF,i.SN),R=Ee.ti(j,b.add.TySh);b.rect=R.T,b.buffer=R.Ww}if(m[4]){var G=b.add.SoLd,Z=C.X.AC(m[4].nonAffineTransform);v.P.apply(p,Z);var _=v.D.YI(Z);if(le.le(Z)){if(s){var U=v.D.nP(v.mD.ij(m[4].warp.v)),Y=v.P.bg(Z,U),$=v.D.nP(v.mD.ij(s));Z=[$.x,$.y,$.x+$.Z,$.y,$.x+$.Z,$.y+$.h,$.x,$.y+$.h],v.P.apply(Y,Z),G.warp.v=s}var P=v.P.bg(Z),tt=Z;v.P.LS(P)||(P[6]=P[7]=0,tt=[0,0,1,0,1,1,0,1],v.P.apply(P,tt)),G.Trnf=C.X.uE(tt),G.nonAffineTransform=C.X.uE(Z),b.Gy(t,n==0)}}m[5]&&C.X.W8(t,m[5],b.yg(t).g,n,p,s),m[7]&&C.X.W8(t,m[7],b,n,p,s),0<=g&&(n!=0&&b.HZ(),b._V(t),b.A())}t.A()},C.X.Z6=function(t,i,e,r,n,a){return e==null&&(e=!1),C.X.rx(t,e?0:1,v.P.Jb(i),null,r,n,a,e)},C.X.rx=function(t,i,e,r,n,a,s,l){if(l==null&&(l=!1),l&&s)throw"e";var h={},o=0,f=.3;if(r&&!v.mD.O8(r)){var u=v.mD.ij(r);return v.P.apply(e,u),h.rect=v.D.YI(u),h.buffer=v.R(h.rect.M()*4),v.ea.drawImage(u,t[0],t[1].Z,t[1].h,h.buffer,h.rect,i==0),h}v.hE(t);var p=t[0],c=t[1],d=c.M()*C.X.d3(v.P.z5(e));for(l&&d>4e6&&(f=d>8e6?2.2:1.2);o+316&&v.P.LS(e)&&C.X.d3(v.P.z5(e))1e5||h.rect.h>1e5||h.rect.M()>3e4*3e4)return null;var w=h.rect.M()*4;if(n&&n.byteLength>=w&&w>=n.byteLength>>2?h.buffer=new Uint8Array(n):h.buffer=v.R(w),v.P.drawImage(M,p,c.Z,c.h,h.buffer,h.rect,i==0,a,l),i==2&&h.buffer){var k=h.rect.Z,T=h.rect.h,L;L=[0,-1,0,-1,16,-1,0,-1,0],L=v.Ai.h5(L);var O=h.buffer.slice(0);v.l7(O),v.Ai.or(O,h.buffer,k,T,L,0),v.hc(h.buffer),v.gl(h.buffer)}if(h.buffer)return h},C.X.W8=function(t,i,e,r,n,a){i.color==255&&v.nJ(i.channel);var s=i.rect,l=v.R(s.M()*4);v.Oy(i.channel,l,3);var h=C.X.rx([l,s],r,n,a);h&&(e.rect=h.rect,e.channel=v.R(h.rect.M()),v.E4(h.buffer,e.channel,3),e.G2=!0),i.color==255&&(v.nJ(i.channel),h&&v.nJ(e.channel))},C.X.AC=function(t){for(var i=[],e=t.v.length,r=0;r>>1)+n.p[a]);t.v.z6=t.v.z6.concat(n.VE),this.Of[3]&&v.D.concat(t.v.hK,v.D.ae7(n.fU,n.zM))}t.Vg=!0},C.LW.Tf=function(t,i,e){var r=t.buffer,n=t.rect,a=t.alX,s=Zt.tt("rigidTransform");if(a)for(var l=0;l<4;l++)s["PuX"+l].v=a[l*2],s["PuY"+l].v=a[l*2+1];for(var h=s.puppetShapeList.v,o=v.s8.acF(r,n.Z,n.h,i[1],i[2]),f=[],u=0;u>>1)+M.p[S]);for(var S=0;S=o[2]||o[1]>=o[3]){t.splice(h,1),h--;continue}C.e9.EG(t,h,o)}},C.e9.NK=function(t,i){for(var e=t.P0,r=0;r1e6,s=new z(y.E.L,!0);s.data={e:y.B.Uw,kr:n},a&&e.w(s),setTimeout(function(){var l=C.J4.t2(t);for(var h in l)i[h]=l[h];var o=new z(y.E.L,!0);o.data={e:y.B.p7,kr:n},a&&e.w(o)},30)}},C.J4.KA=function(t){var i=t.p[0],e=t.r[i],r=e.rect,n=r.Z,a=r.h,s=n*a,l=e.buffer;return[i,r.x,r.y,n,a,l[0],l[1],l[2],l[3]].join(",")},C.J4.t2=function(t){var i=t.p[0],e=t.r[i],r=e.rect,n=r.Z,a=r.h,s=n*a,l=e.buffer,h=Date.now(),o=v.R(s);o.fill(128);var f=v.Hr.xH(l,n,a);console.log(Date.now()-h);var u={key:C.J4.KA(t),ap:l,rect:r.clone(),YY:n,mi:a,aI:12,aea:!1,px:o,As:f,K:v.R(s),a2:null,HX:null,LA:null};return C.J4.DM(u),u},C.J4.DM=function(t,i){var e=t.YY,r=t.mi,n=0,a=0,s=Date.now(),l=t.a2!=null&&v.Hr.tW(t.As.zM,t.a2.zM,t.a2.zo,t.px);n=Date.now()-s,s=Date.now(),!l&&!t.aea&&(t.a2=v.Hr.bY(t.As,e,r,t.px,t.aI),v.Hr.tW(t.As.zM,t.a2.zM,t.a2.zo,t.px)||(t.aea=!0,console.log("conflict")),t.HX=v.Hr.a1o(t.ap,e,r,t.a2.zM,t.a2.zo),t.LA=[t.HX[0].slice(0),[]],a=Date.now()-s,s=Date.now());var s=Date.now();if(i){t.LA[0].set(t.HX[0]);for(var h=t.HX[1],o=t.LA[1],f=0;f=1&&(J=(p.x-tt)/ht),Math.abs(F)>=1&&(Q=(p.y-X)/F),n&&(J=Q=(J+Q)/2);var rt=new Et;rt.translate(-tt,-X),rt.scale(J,Q),rt.translate(tt,X),E=D.slice(0),v.D.O(E,rt,E)}else{this.nw()&&(p.x=Math.round(p.x),p.y=Math.round(p.y));for(var it=[0,1,2,5,8,7,6,3],nt=it[(it.indexOf(o)+4)%8],ot=[],b=0;b<3;b++)for(var I=0;I<3;I++)ot.push(new st(I/2,b/2));var S=this.rO,pt=this.DS(p,D),yt=this.DS(h,D),ct=a&&(this.nC==4||this.nC==9)?this.DS(S,D):ot[nt],vt=new Et,wt=new Et,J=(pt.x-ct.x)/(yt.x-ct.x);J==0&&(J=1e-4);var Q=(pt.y-ct.y)/(yt.y-ct.y);if(Q==0&&(Q=1e-4),this.a0g&&(J=Math.max(J,0),Q=Math.max(Q,0)),(o==0||o==2||o==6||o==8)&&(n||this.a5s?vt.scale(J,J):vt.scale(J,Q)),o==1||o==3||o==5||o==7){var Mt=this.a5s;o==1||o==7?vt.scale(Mt?Q:1,Q):vt.scale(J,Mt?J:1),this.ag5&&s&&(o==1||o==7?wt.p$=(pt.x-ct.x)/(pt.y-ct.y):wt.i=(pt.y-ct.y)/(pt.x-ct.x))}var rt=new Et;rt.translate(-ct.x,-ct.y),rt.concat(vt),rt.concat(wt),rt.translate(ct.x,ct.y),E=[0,0,1,0,1,1,0,1],v.D.O(E,rt,E);var _=v.P.bg(D);v.P.apply(_,E)}le.le(E)&&(this.A2=E)}this.b4(t,i),c&&C.qT.rz(t,d,c)}},le.qV=function(t,i,e,r,n,a){var s=e-t,l=r-i,h=n-t,o=a-i,f=s*s+l*l,u=h*s+o*l,p=u/f,c=t+p*s,d=i+p*l,g=n-c,b=a-d;return[c,d,Math.sqrt(g*g+b*b)]},le.prototype.nw=function(){var t=this.A2;return Math.abs(t[1]-t[3])<1e-6&&Math.abs(t[2]-t[4])<1e-6||Math.abs(t[0]-t[2])<1e-6&&Math.abs(t[3]-t[5])<1e-6},le.le=function(t){return v.D.xu(t)||v.D.xu([t[6],t[7],t[4],t[5],t[2],t[3],t[0],t[1]])},le.prototype.NL=function(t,i,e,r){this.Y1=-1,this.AF=null,t.v.zK=null,t.v.Tw=[],t.Vg=!0},le.prototype.gU=function(t,i,e){var r=e.Ef();if(r.x||r.y){var n=new Et(1,0,0,1,r.x,r.y);return v.D.O(this.A2,n,this.A2),this.b4(t,i),!0}return!1},le.prototype.b2=function(t){t==null&&(t=this.A2);for(var i=t[6]-t[0],e=t[7]-t[1],r=t[4]-t[2],n=t[5]-t[3],a=[t[0],t[1],t[2],t[3],t[0]+i/2,t[1]+e/2,t[2]+r/2,t[3]+n/2,t[6],t[7],t[4],t[5]],s=[],l=0;l<3;l++){var h=l*4,o=a[h+0],f=a[h+1],u=a[h+2],p=a[h+3];s.push(new st(o,f)),s.push(new st(o+(u-o)/2,f+(p-f)/2)),s.push(new st(u,p))}return s},le.prototype.b4=function(t,i,e){e==null&&(e=!1);var r=this.b2(),n=r[0],a=r[2],s=r[6],l=r[8];if(t.v.hK={W:[],d:[]},t.v.hK.W.push("M","L","L","L","Z"),t.v.hK.d.push(n.x,n.y,a.x,a.y,l.x,l.y,s.x,s.y),this.a7Q)for(var h=a.gI(n),o=s.gI(n),f=l.gI(a),u=l.gI(s),p=0;p<3;p++){t.v.hK.W.push("M","L","M","L");var c=(p+1)*.25;t.v.hK.d.push(n.x+h.x*c,n.y+h.y*c,s.x+u.x*c,s.y+u.y*c),t.v.hK.d.push(n.x+o.x*c,n.y+o.y*c,a.x+f.x*c,a.y+f.y*c)}if(t.a.GW=new et(0,0,st.Yj(r[0],r[2]),st.Yj(r[0],r[6])),this.Y1!=-1&&this.Y1<9&&this.AF){var d=t.a._R(this.AF.x,this.AF.y);C.An.Wf(d.x+10,d.y-10,t.a.GW,t,i)}if(!e){t.v.CL=[];for(var p=0;pt.index;n--)this.ip(e);if(t.index>e.xG)for(var n=e.xG;n1&&e.p.splice(Y,1),e.p.sort(function(ol,Jl){return ol-Jl}),g.w1.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelection"}},_=s}else if(r.s(W.cm)&&!r.s(W.ze)&&t.wH>0)a=t.wH==1?H.kX:t.wH==2?H.OT:H.yV,U=!0;else if((r.s(W.cm)||t.akM==1)&&e.p.length>0){var $=Math.min(s,e.p[0]),P=Math.max(s,e.p[e.p.length-1]);e.p=[];for(var c=$;c<=P;c++)e.r[c].add.lsct!=Ci.Qi&&e.p.push(c);g.w1.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelectionContinuous"}},_=s}else{_=s;var R=e.r[s];if(R.fO()&&t.a6x)R.add.lsct=Ci.lw;else if(e.p.length==1&&e.p[0]==s&&t.wH==R.kB)return;e.p=[s],e.HP()}if(_!=null&&(g.w1.null={t:"obj ",v:[{t:"name",v:{classID:"Lyr",val:e.r[_].getName()}}]},this.track(g)),!U){if(e.p.length==1){for(var tt=e.p[0],c=0;c";)yi++;this.track({Bm:"delete",w1:{classID:"Dlt",null:Di.Pe("Lyr",!0)}});var h=new ni([6,31],this);h.data={e:H.Pj,Q1:e.r.slice(0),L_:_t,NA:e.p.slice(0),Vk:[yi]},e.TX(h),this.oF(h.data,e)}if(a==H.IQ){var j=t.agl?t.agl:e.p,wi=0,Zi=!1;if(j.length==0)return;if(j.length==1&&e.r[j[0]].Qk==0){alert(Lt.get([15,7,5]));return}for(var Vi=[],c=0;c0){re.add.lnk2==null&&(re.add.lnk2=[]);for(var c=0;c7,Qi=0;Qi=0;c--)zt[c]>=_t.length&&zt.splice(c,1);var h=new ni([6,40],this);h.data={e:H.Pj,Q1:e.r.slice(0),L_:_t,NA:e.p.slice(0),Vk:zt},e.TX(h),this.oF(h.data,e)}if(a==H.$Z){var ir=e.p.length;if(ir<2){alert("Select two or more layers.");return}if(!e.vx())return;for(var Ti=e.r[e.p[0]].clone(),_t=[],c=0;c2e6){alert("Blended areas are too large.");return}for(var c=1;c1&&kr!=-1){console.log("separating an open path into a new layer"),R=R.clone(),$e=R.add.vmsk,He=$e.b;var f=He[kr].length,Wi=R.clone();Wi.add.lyid=e.kV(),$e.b=He.slice(0,2).concat(He.slice(kr,kr+f+1)),$e.p=[],R._V(e),R.A();var vn=Wi.add.vmsk.b;Wi.add.vmsk.b=vn.slice(0,kr).concat(vn.slice(kr+f+1,vn.length)),Wi.add.vmsk.p=[],Wi._V(e),_t[c]=R,_t.splice(c+1,0,Wi);for(var Qi=0;Qic&&qt[Qi]++;var Ta=qt.indexOf(c);Ta!=-1&&qt.splice(Ta+1,0,c+1)}}}if(_t.length!=e.r.length){var h=new ni("Splitting open paths",this);h.data={e:H.Pj,Q1:e.r.slice(0),L_:_t,NA:e.p.slice(0),Vk:qt},e.TX(h),this.oF(h.data,e)}}if(a==H.eV){this.XZ({e:H._S},i,e,r,n);var Gt=e.p.slice(0),Cr=e.r.slice(0),Gi=e.JU();if(Gi.length==0)return;e.fM(Gi);var h=new ni([6,36,0],this);h.data={e:H.Pj,Q1:Cr,L_:e.r.slice(),NA:Gt,Vk:e.p.slice(0)},e.TX(h),this.oF(h.data,e)}if(a==H.ps){var be=t.EA.AB(t.id),Yi=be.clone();Yi.raw=t.data,Yi.EC="8BIM",Yi.d1="8BPB",Yi.Z5=Yi.Z5+".psd",Yi.lD(!1),be.lD(!1);var h=new ni([6,36,1],this);h.data={e:H.ps,id:t.id,GJ:be,XT:Yi},t.EA.TX(h),this.oF(h.data,t.EA)}if(a==H.Eg){var h=new ni([6,36,4],this);h.data={e:a,n:s,Ub:l.add.SoLd.Impr.v.classID,uB:t.uB},e.TX(h),this.oF(h.data,e)}if(a==H.Ml){var Oa,Ea;if(t.lO?(Oa=t.EA,Ea=t.lO):(t.EA.dr(),t.EA.LU(),t.EA.A(),t.EA.tf(),t.EA.lD(),Oa=ft.$I("PSD").bb(t.EA,0,0,[!0,!0]),Ea=t.EA.name),!(Oa instanceof ArrayBuffer))throw"e";Oa=new Uint8Array(Oa);var Y=t.z3!=null?t.z3:e.p[e.p.length-1]+1,ze=e.f6(Oa,Ea,0,0,!0),_t=e.r.slice(0);_t.splice(Y,0,ze);var h=new ni([6,36,2],this);h.data={e:H.Pj,Q1:e.r.slice(),L_:_t,NA:e.p.slice(0),Vk:[_t.indexOf(ze)]},e.TX(h),this.oF(h.data,e)}if(a==H.Hj){let ql=function(Cn,Kn){for(var Js=0,Cs=0;Cs+Cn[Js]<=Kn;)Cs+=Cn[Js],Js++;return Js};for(var Ha=ql,Br=[],tl=e.root.children,aa=0,c=0;c=2&&(Br=Tl),Br.length<2){alert('At least two animation folders needed (whose layers start with "_a_").',3500);return}for(var il=[],c=0;c1){var $r=parseInt(Gn.pop());!isNaN($r)&&$r!=0&&(ur=$r)}mt[0].push(R),mt[1].push(ur),mt[2]+=ur}}Ai.sort(function(Cn,Kn){return Kn[2]-Cn[2]});for(var cn=Ai[0],Ol=cn[2],el=1;el>>1;if(pn<17){var S=er.length-1;c==0?er[1]+=pn:c==er.length-1?er[S-1]+=pn:(er[c-1]+=Dl,er[c+1]+=pn-Dl),er.splice(c,1),c--}}for(var Pi=[],Re=new et(0,0,e.Z,e.h),c=0;c.5;else if(t.target!=null)Mr=t.target,fa=!0,e.Mv=!0;else{var ys=t.mQ;if(fa=ys>1,ys==0&&(Mr=e.r.length-1),ys==1){Mr=cr[cr.length-1]+1;var f=e.Co(Mr);f.indexOf(Zs)==-1&&(Mr+=f.length-1)}if(ys==2){Mr=cr[0]-1;var f=e.Co(Mr);f.indexOf(Zs)==-1&&(Mr-=f.length-1)}if(ys==3&&(Mr=0),Mr<0||Mr>e.r.length-1)return;e.Mv=!0}if(cr.indexOf(Mr)!=-1)return;var Ia=e.r[Mr],_t=[];if(ua)_t=e.r.slice(0);else for(var c=0;c.8&&(Na-=e.Co(Mr).length-1);for(var ah=[],Lh=ua?e.FQ(rs?null:Zs):null,c=0;c0){var Kt=h.data.w1={classID:"setd",null:Di.Pe("contentLayer",!0),T:{t:"Objc",v:{}}},ha=["SoCo","GdFl","PtFl"][sn.d1-1];dt.T8.CR(sn.qA,Kt.T.v,sn.d1-1),this.track({Bm:"set",w1:Kt})}}if(t.jK&&sn.d1==3&&e.e6(St.tc(sn.qA.Ptrn.v,n.WB)),!t.jK){var xs=sn.strokeStyleContent.v;xs.classID==at.bW.bl[2]&&e.e6(St.tc(xs.Ptrn.v,n.WB))}this.oF(h.data,e)}},dt.T8.CR=function(t,i,e){var r=[at.QB,at.Zt,at.QZ][e];i.classID==null&&(i.classID=["solidColorLayer","gradientLayer","patternLayer"][e]);for(var n=0;n=0?i.r[x]:i.VW[-1-x];h.add.vogk=JSON.parse(m[a+1]),v.P$.xc(h.add.vogk,h.add.vmsk),x>=0&&h._V(i)}i.A()}if(e==H.K6&&(r.add.artb=JSON.parse(t.ah$),i.A()),e==H.IB&&(i.K=t.la,i.Yq=t.HL.slice(0),i.oD=t.jt.slice(0),i.Vg=i.Ob=!0),e==H.IQ)for(var M=t.afv,a=0;a=0?i.r[x]:i.VW[-1-x];h.add.vogk=JSON.parse(m[a+1]),v.P$.xc(h.add.vogk,h.add.vmsk),x>=0&&h._V(i)}i.A()}if(e==H.K6&&(r.add.artb=JSON.parse(t.eR),i.A()),e==H.IB&&(i.K=t.Od,i.Yq=t.KK.slice(0),i.oD=t.JA.slice(0),i.Vg=i.Ob=!0),e==H.IQ)for(var M=t.acc,a=0;a>d,(g&1)==1?g--:g++,c.capturedInfo.v=(g<255&&(o=255-Math.round((s-255)*255/(s-n)))),[Math.max(n,0),Math.min(s,255),h,o,100]},dt.Dt.prototype.XZ=function(t,i,e,r,n){var a=t.e;if(a=="auto"){for(var s=t.fN,l=dt.Dt.getData(e),h=0;h>>2,s=v.NC(e),l=.001*a;(r==0||r==2)&&(n=[[0,255,0,255,100],dt.Dt.t8(s[1],l,a,r==2),dt.Dt.t8(s[2],l,a,r==2),dt.Dt.t8(s[3],l,a,r==2)]),r==1&&(n=[dt.Dt.t8(s[0],l*.33,a,!1),[0,255,0,255,100],[0,255,0,255,100],[0,255,0,255,100]]);for(var h=Zt.tt("levl"),o=0;o<4;o++)Ke._j(h,o,n[o]);return h},dt.Dt.prototype.pN=function(t,i,e,r){if(this.EB==null&&(this.EB=dt.Dt.getData(e,null,t.k9=="fade"?e.a1().data:null)),t.e=="edit"){this.G9=[t.k9,t.pl];var n=this.EB[0],a=dt.Dt.ab2(t.k9,t.pl,n.Tr),s=Vt.VM(t.k9,a);if(t.k9=="fade"&&(s=t.pl),s!=null){for(var l=0;l>>16,S:t>>>8&255,i:t&255}},dt.Fr.prototype.ac6=function(t,i,e,r){if(this.EB==null){var n=Zt.Oe(t.k9,t.pl);this.EB=dt.Dt.getData(e,n.x!=0||n.y!=0)}if(t.e=="edit"){var a=JSON.stringify(t.pl);if((t.pl==null||a!=this.S$)&&t.mw!=!0)for(var s=0;s1&&(h=1+Math.tan(Math.PI/2*a/101));for(var o=(1-h)/2,f=v.t1.$_(l,l,l),u=[h,0,0,o,0,h,0,o,0,0,h,o,0,0,0,1],p=v.t1.multiply(f,u),c=new v._B(256),d=0;d<256;d++)c.U[d]=d;v.t1.transform(c,c,p),r={type:e.u1,KW:c.U,mf:c.U,Si:c.U,Ak:!1,qi:!1}}else{let bn=function(Ti,lr){for(var qe=[],ir=3,de=0;dek&&T>1;)T--;S[d]=T*w}M=S}for(var L=new Uint8Array(g),d=0;d0?(i=Math.max(F/Math.E,i),i=i*Math.exp(F/1.75+ht/Math.PI),i=(1-Q)*i+Q*1):(i=i*Math.exp(-F*1.75+ht/Math.PI),i=i+-Q*1.14),i=Math.pow(i,1/J),i=Math.max(0,Math.min(1,i)),L[d]=Math.round(i*255)}r={type:e.u1,KW:L,mf:L,Si:L,Ak:!1,qi:!1}}if(t=="vibA"&&(r={type:e.tn,S9:[i.vibrance?i.vibrance.v:0,i.Strt?i.Strt.v:0]}),t=="hue2"){for(var rt=[],it=[],nt=[],ot=i.Clrz?i.Clrz.v:!1,d=0;d<256;d++)rt[d]=d/255,it[d]=0,nt[d]=0;var pt=rr.Yl(i,0),yt=Vt.GM(pt[1]/100);if(ot)for(var ct=pt[0]/360,d=0;d<256;d++)rt[d]=ct,it[d]=yt;else{for(var d=0;d<256;d++){var vt=rt[d],wt=it[d];rt[d]+=pt[0]/360;for(var T=0;T<6;T++){for(var Mt=rr.Yl(i,T+1),Ct=Mt.qh,gt=Mt.Ej,Q=0,bt=1;bt<4;bt++)gt[bt]1&&zt--,zt<0&&zt++,Nt=Vt.acb(Nt),Nt=(1+Nt)*.5,Kt=(1+Kt)*.5,Ut[d]=Math.round(255*zt),qt[d]=Math.round(255*Nt),Gt[d]=Math.round(255*Kt)}var ai=pt[2]/100,fi=ai<0?-ai:ai,di=ai<0?0:1;r={type:e.xj,Fp:Ut,fQ:qt,J7:Gt,L3:fi*di,Ds:1-fi,amz:pt[2]/100,vY:ot?1:0}}if(t=="nvrt"){for(var L=new Uint8Array(256),d=0;d<256;d++)L[d]=255-d;r={type:e.u1,KW:L,mf:L,Si:L,Ak:!1,qi:!1}}if(t=="post"){for(var $t=i.Lvls.v,L=new Uint8Array(256),Q=$t/255.001,si=255/($t-1),d=0;d<256;d++)L[d]=Math.floor(d*Q)*si;r={type:e.u1,KW:L,mf:L,Si:L,Ak:!1,qi:!1}}if(t=="grdm"){var li=i.Grad.v,Li=i.Rvrs,vi=v.j.j0(li.Clrs.v,0,0),g=1024,yi=v.j.qP(li,vi,g,Li?Li.v:!1),_t=v.R(g),wi=v.R(g),Zi=v.R(g);v.E4(yi,_t,0),v.E4(yi,wi,1),v.E4(yi,Zi,2),r={type:e.u1,KW:_t,mf:wi,Si:Zi,Ak:!0,qi:!1}}if(t=="selc"){for(var Vi=new Float32Array(9*3*2),Mi=i.ju,ce=i.Mthd?i.Mthd.v.CrcM=="Absl":!1,T=0;T<9;T++){var Ri=T*6,zi=Nr.Yl(i,T),ee=zi[0]/100,Be=zi[1]/100,Yi=zi[2]/100,Xi=zi[3]/100;ce?(Vi[Ri]=Vi[Ri+1]=Vi[Ri+2]=1,Vi[Ri+3]=ee*(1+Xi)+Xi,Vi[Ri+4]=Be*(1+Xi)+Xi,Vi[Ri+5]=Yi*(1+Xi)+Xi):(Vi[Ri+0]=(1+ee)*(1+Xi),Vi[Ri+1]=(1+Be)*(1+Xi),Vi[Ri+2]=(1+Yi)*(1+Xi))}r={type:e.Lr,e$:Vi}}if(t=="blwh"){for(var Xt="Rd Yllw Grn Cyn Bl Mgnt".split(" "),r=[],ri=0,Hi=0,d=0;d<6;d++)r.push(i[Xt[d]].v);r.push(i.useTint.v,i.tintColor.v);for(var re=[],d=0;d<6;d++)re.push((r[d]-50)/50);var gi=v.j.T6(r[7]);gi.U/=255,gi.S/=255,gi.i/=255;var Bi=v.eE(gi.U,gi.S,gi.i),Kt=v.ec(v.Uq(Bi.mi,1,.5)),be=Bi.Pg*Bi.pl;Kt==.5?ri=Hi=.5:(ri=be*(.5-Kt)/(.5/Kt-1),Hi=1-be*(.5-Kt)-1/(2*(1-Kt)),Hi/=1-1/(2*(1-Kt))),r={type:e.ta,_5:re,Ro:r[6]?1:0,uI:Bi.mi,ec:Kt,ZJ:be,sw:ri,pm:Hi}}if(t=="blnc"){for(var E=[],Te=["ShdL","MdtL","HghL"],d=0;d<3;d++){var $t=i[Te[d]].v,Gi=$t[0].v/100,Sr=$t[1].v/100,Qr=$t[2].v/100,fr=i.PrsL.v?fr=(Math.min(Gi,Sr,Qr)+Math.max(Gi,Sr,Qr))/2:0;E[d]=[Gi-fr,Sr-fr,Qr-fr]}for(var U=[v.R(256),v.R(256),v.R(256)],T=0;T<3;T++)for(var d=0;d<256;d++){var k=d*(1/255),Je=0,b=0,br=0;b=E[2][T],br=Math.abs(b),b<0?Je=Math.pow(k,Math.SQRT2):Je=1.63*(Math.pow(k+.04,.5)-.2),k=br*Je+(1-br)*k,b=E[1][T],br=Math.abs(b),b<0?Je=Math.pow(k,2):Je=Math.min(2.35*(Math.pow(k+.09,.5)-.3),Math.pow(k,1/2)),k=br*Je+(1-br)*k,b=E[0][T],br=Math.abs(b),b<0?Je=k<.4?0:Math.pow((k-.4)/.6,Math.SQRT2):Je=Math.pow(k,Math.SQRT2/2),k=br*Je+(1-br)*k,k=Math.max(0,Math.min(1,k)),U[T][d]=Math.round(k*255)}r={type:e.u1,KW:U[0],mf:U[1],Si:U[2],Ak:!1,qi:!1}}if(t=="phfl"){for(var Ai=v.j.T6(i.Clr.v),We=[Ai.U/255,Ai.S/255,Ai.i/255],Qi=i.Dnst.v/100,U=[v.R(256),v.R(256),v.R(256)],T=0;T<3;T++)for(var d=0;d<256;d++){var k=d*(1/255),qi=k*We[T];qi=Math.max(0,Math.min(1,qi)),k=Qi*qi+(1-Qi)*k,U[T][d]=Math.round(k*255)}r={type:e.u1,KW:U[0],mf:U[1],Si:U[2],Ak:!1,qi:i.PrsL.v}}if(t=="thrs"){for(var L=v.R(256),d=i.Lvl.v;d<256;d++)L[d]=255;r={type:e.u1,KW:L,mf:L,Si:L,Ak:!0,qi:!1}}if(t=="mixr"){for(var Re=Vt.FX(i),p=[],d=0;d300*300&&t.type!=n.u1&&t.type!=n.$g){r=r.clone(),r.x=r.y=0;var s=q.Wb(0,r.Z,r.h);s.set(i),q.k1(s,r),s.ke(r),Vt.WD(t,s.z2,r),s.get(e);return}if(t.type==n.$g){var l=t.a0r,h=t.g8;ICC.U.applyLUT(l,h,i,e)}if(t.type==n.I9&&v.t1.at(i,e,t.Aw),t.type==n.ta)for(var o=t.ZJ,f=t.ec,u=t.sw,p=t.pm,c=i.length,d=0;d>>8&255)*(1/255),b=(tt>>>16&255)*(1/255),X=tt>>>24,ht=Math.min(r,g,b),F=Math.max(r,g,b),J=0,Q=0,rt=0;if(F!=ht){var it=F-ht;switch(F){case r:J=(g-b)/it+(g.5?it/(2-(F+ht)):it/(F+ht)}var Mt=pt;if(t.vY==0&&(pt=P[Math.floor((1+pt)*127.5)],Mt=Math.min(Q*(1+pt),1)),J=ot,Q=Mt,Q==0)r=g=b=rt;else{var Ct=rt<.5?rt*(1+Q):rt+Q-rt*Q,gt=2*rt-Ct;r=v.C7(gt,Ct,J+1/3),g=v.C7(gt,Ct,J),b=v.C7(gt,Ct,J-1/3)}$[d]=X<<24|b*255<<16|g*255<<8|r*255}}if(t.type==n.Ki){v.Hk(i,e);for(var Y=new Uint32Array(i.buffer),$=new Uint32Array(e.buffer),c=Y.length,bt=t.aI,xt=1/bt,Dt={Ov:t.c7[0],m:t.c7[1],i:t.c7[2]},Ot={Ov:t.Aa[0],m:t.Aa[1],i:t.Aa[2]},d=0;d>>8&255,It=tt>>>16&255,r=kt*(1/255),g=mt*(1/255),b=It*(1/255),X=tt>>>24,Bt=v.tm(kt,mt,It),Ut=v.LZ(Bt,Dt,Ot,bt,xt);if(Ut!=0){var m=v.T4(r,g,b),ot=2+m.mi+Ut*t.shift[0];m.mi=ot-~~ot,m.Pg=Math.max(0,Math.min(1,m.Pg+Ut*t.shift[1])),m.lr=Math.max(0,Math.min(1,m.lr+Ut*t.shift[2]));var k=v.Uq(m.mi,m.Pg,m.lr);r=k.U,g=k.S,b=k.i,$[d]=X<<24|b*255<<16|g*255<<8|r*255}}}if(t.type==n.tn)for(var Y=new Uint32Array(i.buffer),$=new Uint32Array(e.buffer),c=Y.length,qt=t.S9[0]/100,Gt=t.S9[1]/100,d=0;d>>8&255)*(1/255),b=(tt>>>16&255)*(1/255),X=tt>>>24,m=v.eE(r,g,b),J=m.mi,Q=m.Pg,rt=m.pl,zt=0,Nt=45/360,Kt=J16777215?A.a2S(i):t.Fltr.v.classID},Zt.Gw=[{qA:"GEfc"},{qA:"LnCr"},{qA:"LqFy",aD:!0},{ah:"3D",iJ:["lightFilterGradient"]},{ah:[24,2],iJ:"Avrg,Blr ,BlrM,boxblur,GsnB,Bokh,MtnB,RdlB,surfaceBlur".split(",")},{ah:[24,4],iJ:"Dspl,Pnch,Plr ,Rple,Shr ,Sphr,Twrl,Wave".split(",")},{ah:[24,6],iJ:["AdNs","DstS","Mdn "]},{ah:[24,8],iJ:["ClrH","Crst","Mztn","Msc ","Pntl"]},{ah:[24,10],iJ:["Clds","DfrC","LnsF"]},{ah:[24,12],iJ:["Shrp","ShrM","smartSharpen","UnsM"]},{ah:[24,14],iJ:["FndE","oilPaint"]},{ah:[24,16],iJ:"HghP,Mxm ,Mnm ,Ofst,Rept,Ctoa".split(",")},{ah:"Fourier",iJ:["dDFT","iDFT"]}],Zt.l6={LqFy:"LqFy",Avrg:"Avrg","Blr ":"blurEvent",BlrM:"blurMethod",boxblur:"boxblur",GsnB:"gaussianBlur",MtnB:"motionBlur",RdlB:"radialBlur",surfaceBlur:"surfaceBlur",lightFilterGradient:"lightFilterGradient",Pnch:"pinch","Plr ":"polar",Rple:"ripple","Shr ":"shear",Sphr:"spherize",Twrl:"twirl",Wave:"wave",AdNs:"addNoise",DstS:"dustAndScratches","Mdn ":"median",ClrH:"colorHalftone",Crst:"",Mztn:"mezzotint","Msc ":"mosaic",Pntl:"",Clds:"clouds",DfrC:"differenceClouds",LnsF:"LnsF",Shrp:"sharpen",ShrM:"sharpenMore",smartSharpen:"smartSharpen",UnsM:"unsharpMask",FndE:"findEdges",oilPaint:"oilPaint",HghP:"highPass","Mxm ":"maximum","Mnm ":"minimum",Ofst:"offset"},Zt.Cf={AddNoise:"AdNs",Average:"Avrg",Blur:"Blr ",BlurMore:"BlrM",Clouds:"Clds",DifferenceClouds:"DfrC",DustAndScratches:"DstS",GaussianBlur:"GsnB",HighPass:"HghP",Maximum:"Mxm ",Minimum:"Mnm ",MotionBlur:"MtnB",Offset:"Ofst",Pinch:"Pnch",PolarCoordinates:"Plr ",Ripple:"Rple",Sharpen:"Shrp",SharpenMore:"ShrM",Twirl:"Twrl",UnsharpMask:"UnsM"},Zt.lt={rigidTransform:C.UK},Zt.names={lightFilterGradient:"Normal Map",rigidTransform:[10,46],LnCr:[24,1,1,0],LqFy:[24,1,0,0],GEfc:[24,0],Avrg:[24,3,0],"Blr ":[24,3,1],BlrM:[24,3,2],boxblur:[24,3,3],GsnB:[24,3,4],Bokh:[24,3,5],MtnB:[24,3,6],RdlB:[24,3,7],surfaceBlur:[24,3,10],Dspl:[24,5,0],Pnch:[24,5,1],"Plr ":[24,5,2],Rple:[24,5,3],"Shr ":[24,5,4],Sphr:[24,5,5],Twrl:[24,1,0,1,3],Wave:[24,5,6],AdNs:[24,7,0],DstS:[24,7,2],"Mdn ":[24,7,3],ClrH:[24,9,0],Crst:[24,9,1],Mztn:[24,9,4],"Msc ":[24,9,5],Pntl:[24,9,6],Clds:[24,11,0],DfrC:[24,11,1],LnsF:[24,11,2],Shrp:[24,13,0],ShrM:[24,13,2],smartSharpen:[24,13,3],UnsM:[24,13,4],FndE:[24,15,3],oilPaint:[24,15,4],HghP:[24,17,1],"Mxm ":[24,17,2],"Mnm ":[24,17,3],Ofst:[24,17,4],Rept:[24,17,5],Ctoa:"Color to Alpha",dDFT:"Fourier Transform",iDFT:"Inverse Fourier Transform",adaptCorrect:["VAR0/VAR1",[19,6,0],[19,6,2]]},Zt.tt=function(t){var i=null;if(t=="GEfc"&&(i={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:$i.tt("GlwE")}]}}),t=="LqFy"){for(var e={YY:50,mi:50,map:new Float32Array(50*50*2)},r=new Uint8Array(Ks.HC(e)),n=[],a=0;ai.x&&(i.x=s.x),s.y>i.y&&(i.y=s.y)}}return i},Zt.Oe=function(t,i){var e=0,r=0;if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(t)!=-1){var n=i.Rds.v.val;e=r=n*2.57}return t=="MtnB"&&(e=r=i.Dstn.v.val),"Ofst,Rept,LqFy,Dspl,Pnch,Rple,Shr ,Sphr,Twrl,Wave,RdlB,Clds,DfrC,Plr ,LnCr,lightFilterGradient,rigidTransform".split(",").indexOf(t)!=-1&&(e=r=1e4),t=="GEfc"&&(e=r=1e4),new st(Math.ceil(e),Math.ceil(r))},Zt.U$=function(){return{t:"Objc",v:{classID:"filterFXStyle",enab:{t:"bool",v:!0},validAtPosition:{t:"bool",v:!0},filterMaskEnable:{t:"bool",v:!0},filterMaskLinked:{t:"bool",v:!0},filterMaskExtendWithWhite:{t:"bool",v:!0},filterFXList:{t:"VlLs",v:[]}}}},Zt.Sb=function(t,i){var e={U:i.GY>>16,S:i.GY>>8&255,i:i.GY&255},r={U:i.Ty>>16,S:i.Ty>>8&255,i:i.Ty&255},n=Zt.names[t];n==null&&(n=Vt.names[t]);var a=t;for(var s in Vt.NS)Vt.NS[s]==t&&(a=s);var l={t:"Objc",v:{classID:"filterFX",Nm:{t:"TEXT",v:Lt.get(n)},blendOptions:{t:"Objc",v:{classID:"blendOptions",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}}},enab:{t:"bool",v:!0},hasoptions:{t:"bool",v:!0},FrgC:{t:"Objc",v:v.j.$H(e)},BckC:{t:"Objc",v:v.j.$H(r)},filterID:{t:"long",v:a.length==4?A.acH(a):777}}},h=Zt.tt(t);return h&&(l.v.Fltr={t:"Objc",v:h}),l},Zt.MG=function(t,i,e,r){var n=v.R(t.length);v.Ai.or(t,i,e,r,[-1,0,1,-2,0,2,-1,0,1],0,!0),v.Ai.or(t,n,e,r,[1,2,1,0,0,0,-1,-2,-1],0,!0);for(var a=0;a>>1,s=16384,l=128,h=100;l>>1,a=16384,s=128;s0&&($[0]*=-1,$[1]*=-1,$[2]*=-1),j.push($[0],$[1],$[2],0)}if(E=="BeIn")v.XB(O,0,16777215),B=1;else if(!(E=="BeIt"&&D.v.BtDc=="BeCt")){var P;if(E=="BeIt"&&D.v.BtDc=="BeCm"?P=s[1]:E=="BeIa"&&(P=s[2][D.v]),P==null)v.XB(O,0,16777215);else{var tt;P.rect.Qn(p)?tt=P.channel:tt=P.kx(p),v.Oy(tt,O,3)}}if(q.pQ){var X=O,ht=c,F=d,J=1,Q=(e.BkSb.v==0||e.BkSt.v==255)&&E=="BeIn";if(!Q){for(var rt=0,o=0;o2e3){alert("too large radius");return}}for(;Q&&3*(I/J)*(I/J)*c*d>500*2e3*2e3;){var nt=v.p0(O,new et(0,0,ht,F));O=nt.Ww,ht=nt.rect.Z,F=nt.rect.h,J*=2}var ot=Date.now(),pt=q.Wb(0,ht,F);pt.set(O);var yt=q.Wb(1,c,d);q.k1(yt),q.filter.WD({type:q.filter.Nj,I1:new Float32Array([1/ht,1/F]),aly:B,a2M:I/J,a8y:new Float32Array([e.BkSb.v/100,e.BkSt.v/255]),a3H:new Float32Array([e.BkNa.v/100,e.BkNt.v.BtNt=="BeNu"?0:1,e.BkNm.v?1:0]),a8J:new Float32Array(j.slice(0,16)),abg:new Float32Array(j.slice(16))},pt.g3),yt.get(a.buffer);for(var ct=a.buffer,o=0;o>>2,Ut=kt.indexArray.v.length>>>2,qt=new Float32Array(vt(kt.originalVertexArray.v)),o=0;o>>1,Mt+=~~(Ut/3)}v.s8.ti(pt,a.buffer,i.rect,gt,bt,Dt,xt),v.gl(a.buffer)}if(t=="lightFilterGradient"){let pl=function(pa){var Wl=1/Math.sqrt(pa[0]*pa[0]+pa[1]*pa[1]+pa[2]*pa[2]);pa[0]*=Wl,pa[1]*=Wl,pa[2]*=Wl};var s0=pl,c=i.rect.Z,d=i.rect.h,g=c*d,ot=Date.now(),di=v.R(g),$t=.3,si=.7;v.np(a.buffer,di);var li=v.R(g);v.ni.et(di,li,a.rect,16);var Li=v.R(g);v.ni.et(di,Li,a.rect,8);var vi=di,yi=new Float32Array(g),_t=e.Dtl.v,wi=_t[2].v,Zi=_t[1].v,Vi=_t[0].v,Mi=e.Scl.v*40*e.textureScale.v/(wi+Zi+Vi);wi*=Mi,Zi*=Mi,Vi*=Mi;for(var o=0;o>1,_e|=_e>>2,_e|=_e>>4,_e|=_e>>8,_e|=_e>>16,_e+1)};var l0=pl,c=i.rect.Z,d=i.rect.h,Ai=pl(Math.max(c,d)),We=Ai>>>1,Qi=new et(0,0,Ai,Ai),qi=new et(0,0,c,d);qi.y=Ai-d>>>1;var Re=c>>>1,pi=new et(0,qi.y,Re,d),Pi=new v._B(c*d);v.Ae(i.buffer,Pi);var xr=new Float64Array(Ai*Ai),wr=new Float64Array(Ai*Ai),tt=v.R(Ai*Ai);FFT.init(Ai);for(var Cr=[Pi.U,Pi.S,Pi.i],o=0;o<3;o++){var Qe=Cr[o];tt.fill(0),t=="dDFT"?(v.Lj(Qe,qi,tt,Qi),Zt.a0y(tt,Ai,xr,wr),v.Lj(tt,Qi,Qe,qi,pi),pi.x+=Re,Qi.x-=We-Re,v.Lj(tt,Qi,Qe,qi,pi),pi.x-=Re,Qi.x+=We-Re):(v.Lj(Qe,qi,tt,Qi,pi),pi.x+=We,qi.x+=We-Re,v.Lj(Qe,qi,tt,Qi,pi),pi.x-=We,qi.x-=We-Re,Zt.a5C(tt,Ai,xr,wr),v.Lj(tt,Qi,Qe,qi))}v.sA(Pi,a.buffer)}if(t=="Avrg"){for(var pe=0,Er=0,bn=0,Ti=0,lr=1,o=0;o0?kr=Math.max(0,kr-$e):kr=Math.min(0,kr+$e),a.buffer[o]=Math.max(0,Math.min(255,He+kr))}}if(t=="HghP")for(var o=0;ola?0:255}v.sA(Pi,a.buffer)}if(t=="Msc "){var Pa=e.ClSz.v.val,c=i.rect.Z,d=i.rect.h,Fa=Math.ceil(c/Pa),ts=Math.ceil(d/Pa),Il=v.R(Fa*ts*4);v.scale.sI(i.buffer,c,d,Il,Fa,ts,1/Pa),v.scale.sI(Il,Fa,ts,a.buffer,c,d,Pa)}if(t=="Clds"||t=="DfrC"){t=="Clds"&&v.XB(a.buffer,4278190080);for(var is=v.R(256*4),o=0;o<256;o++){var Hi=o<<2,Us=o/255,zt=1-Us;is[Hi]=Math.round(Us*r.U+zt*n.U),is[Hi+1]=Math.round(Us*r.S+zt*n.S),is[Hi+2]=Math.round(Us*r.i+zt*n.i)}var c=a.rect.Z,d=a.rect.h,g=c*d,ds=v.R(g);noise.seed(Math.random());for(var Xt=0;Xt0?Ae:0,U=Ae>0?c:c+Ae,_=xe>0?0:xe+d,Y=xe>0?xe:d,Xr=xe>0?0:c*(d-1);for(var Xt=_;Xt0?0:c+Ae,U=Ae>0?Ae:c,_=xe>0?xe:0,Y=xe>0?d:d+xe,Xr=Ae>0?0:c-1;for(var Xt=_;Xt=0&&xe>=0&&(Z=0,U=Ae,_=0,Y=xe,Xr=0),Ae>=0&&xe<0&&(Z=0,U=Ae,_=d+xe,Y=d,Xr=c*(d-1)),Ae<0&&xe>=0&&(Z=c+Ae,U=c,_=0,Y=xe,Xr=c-1),Ae<0&&xe<0&&(Z=c+Ae,U=c,_=d+xe,Y=d,Xr=c*d-1);for(var Xt=_;Xt0?Js/Wi:Wi/Js,es=Ar+Jl*Cs*gi,Zo=an+Jl*Cs*Bi,o=Xt*ki.YY+ri<<1;ki.map[o]=es-ri,ki.map[o+1]=Zo-Xt}else if(t=="Dspl"&&bs.length!=0){xs=e.UndA.v.UndA=="WrpA"?2:1;for(var Jo=e.DspF.v.pth,ul,o=0;o>>1,T=k==0?2:1;if($i.Ui(o.map,S,l,h,T),$i.IZ(S,o.map,l,h,T),k!=0){for(var L=$i.ts.indexOf(e.SDir.v.StrD),O=[1,1,1,0][L],E=[-1,0,1,1][L],D=2*k+1,B=1/D,m=0;m1)throw Bt;var Ut=Bt*255;a.buffer[nt]=Dt*Ut+(1-Dt)*pt,a.buffer[nt+1]=Dt*Ut+(1-Dt)*yt,a.buffer[nt+2]=Dt*Ut+(1-Dt)*ct}}if(t=="PntD"){var qt=e.Shrp.v*.4,Gt=e.BrsT.v.BrsT,zt={BrSm:[.75],BrsL:[.85],BrDR:[.68],BrsW:[.75],BrbW:[.78],BrSp:[.62]}[Gt],Nt=Math.round(e.Sz.v*.5);v.Ai.Rx=zt[0];var Kt=v.Ai.lI;Zt.$z(i.buffer,a.buffer,l,h,Nt,Kt,[],0);var ai=[-.7,-1,-.7,-1,10,-1,-.7,-1,-.7];ai=v.Ai.h5(ai);var fi=a.buffer.slice(0);v.Ai.or(fi,a.buffer,l,h,ai,0);for(var b=0;b>>1,Kt,[],0),Zt.MG($t,a.buffer,l,h),v.Hk(a.buffer,$t),v.nJ($t),v.XB($t,4278190080,16777215),Zt.$z($t,a.buffer,l,h,e.EdgW.v>>>1,v.Ai.Rl,[],0);for(var Dt=e.EdgB.v/10,b=0;b<$t.length;b++)if((b&3)!=3){var si=a.buffer[b];a.buffer[b]=Math.max(0,Math.min(255,si*Dt))}}if(t=="StnG"){var l=i.rect.Z,h=i.rect.h;v.QN.a7P(i.buffer,l,h,a.buffer,e.ClSz.v,[Math.round(r.U),Math.round(r.S),Math.round(r.i)],e.BrdT.v)}if(t=="HlfS"){for(var li=e.HlSz.v,Li=li*2+1,vi=e.Cntr.v,yi=$i.ya.indexOf(e.ScrT.v.ScrT),G=l*h,_t=G*4,wi=v.R(G),Zi=i.buffer,Vi=0,Mi=0,b=0;b<_t;b+=4)wi[b>>>2]=~~(.5+(Zi[b]+Zi[b+1]+Zi[b+2])*(1/3));var ce=wi.slice(0);v.ni.p8(ce,wi,i.rect,li);for(var Ri=Math.PI/Li,zi=new Float64Array(l),I=new Float64Array(l),ee=new Float64Array(2*l),x=0;x>>1))*Ri;zi[x]=Be*Be,I[x]=Math.cos(Be);var O=x<<1;ee[O]=Math.sin(O*(1/4.5)),ee[O+1]=Math.sin((O+1)*(1/4.5))}for(var m=0;m>>1))*Ri,N=Math.cos(Yi),Xi=Yi*Yi,x=0;x46&&v.round(wi),v.Sv(wi,a.buffer)}for(var b=0;b=e?e-1:d,b=(h*e+g)*2,m=a[c];u+=m*t[b],p+=m*t[b+1]}i[f]=u,i[f+1]=p}},$i.IZ=function(t,i,e,r,n){for(var a=$i.zl(n),s=6,l=13,h=0;h=r?r-1:d,b=(g*e+o)*2,m=a[c];u+=m*t[b],p+=m*t[b+1]}i[f]=u,i[f+1]=p}};function ti(){}ti.wp=[2,5,5,7,4,4],ti.YA="norm,diss,dark,mul ,idiv,lbrn,dkCl,lite,scrn,div ,lddg,lgCl,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv,hue ,sat ,colr,lum ".split(","),ti.zn="Nrml Dslv Drkn Mltp CBrn linearBurn darkerColor Lghn Scrn CDdg linearDodge lighterColor Ovrl SftL HrdL vividLight linearLight pinLight hardMix Dfrn Xclu blendSubtraction blendDivide H Strt Clr Lmns".split(" "),ti.Zn=[[15,10,0],[15,10,1],[15,10,2],[15,10,3],[15,10,4],[15,10,5],[15,10,6],[15,10,7],[15,10,8],[15,10,9],[15,10,10],[15,10,11],[15,10,12],[15,10,13],[15,10,14],[15,10,15],[15,10,16],[15,10,17],[15,10,18],[15,10,19],[15,10,20],[15,10,21],[15,10,22],[15,10,23],[15,10,24],[15,10,25],[15,10,26]],ti.Xf=["normal",null,"darken","multiply","color-burn",null,null,"lighten","screen","color-dodge",null,null,"overlay","soft-light","hard-light",null,null,null,null,"difference","exclusion",null,null,"hue","saturation","color","luminosity"],ti.pT=function(t){return t=="passThrough"?"pass":ti.YA[ti.zn.indexOf(t)]},ti.Kl=function(t){return t=="pass"?"passThrough":ti.zn[ti.YA.indexOf(t)]},ti.getName=function(t){return ti.Zn[ti.YA.indexOf(t)]};function H(){this.rect=null,this.sW="norm",this.opacity=255,this.rd=!1,this.ix=0,this.Qk=0,this.LL=[];for(var t=0;t<10;t++)this.LL.push(0,0,255,255);this.name=null,this.add={},this.buffer=null,this.fu=null,this.s5=null,this.g=null,this.NY=null,this.acv=30,this.oH=H.zG(),this.a12=H.zG(),this.abb=H.zG(),this.aiU=H.zG(),this.kB=0,this.yb=!1,this.rD=null,this.G=new H.db}H.zG=function(){var t=y.z("canvas");return t.width=t.height=30,t.getContext("2d")},H.db=function(){this.XP=!0,this.Zf=!0,this.WV=v.R(0),this.afK=v.R(0),this.h0=null,this.gg={},this.aeZ=null,this.N5=null,this.ad=null,this.ey=null,this.Ni=null,this.Db=null,this.Ks=null,this._E=null,this.Yw=null,this.hr=null,this.bd=null,this.VS=null,this.WZ=!1},H.db.prototype.cc=function(){this.XP=!1,this.Zf=!1,this.h0=null,this.WZ=q.pQ},H.db.prototype.a1R=function(){St.iL(this.gg),this.WV=v.R(0),this.afK=v.R(0),this.ey&&this.ey.delete(),this.Ni&&this.Ni.delete(),this.ey=null,this.Ni=null;for(var t=[this.Db,this.Ks,this._E,this.Yw,this.hr,this.bd],i=0;i<6;i++)t[i]!=null&&t[i]instanceof q._B&&t[i].delete();this.Db=null,this.Ks=null,this._E=null,this.Yw=null,this.hr=null,this.bd=null},H.prototype.A=function(t){t==null&&(t=this.rect.clone()),this.G.h0==null?this.G.h0=t:this.G.h0=this.G.h0.s7(t)},H.prototype.fO=function(){return this.add.lsct==Ci.lw||this.add.lsct==Ci.kE},H.prototype.ws=function(){var t=this.add;return t.SoCo!=null||t.GdFl!=null||t.PtFl!=null},H.prototype.pc=function(){var t=this.add.lmfx;if(t!=null)for(var i=["GrFl","patternFill"],e=0;e>2);if(v.E4(a.zU,l,3),!v.Qn(i.channel,l))return!1;var h=v.R(s.Z*s.h*4);return v.BP(a.gx,a.OJ,h,s),v.N.DO("norm",a.zU,a.RL,h,s,s,1),v.Qn(h,this.buffer)}if(a.kB==1||a.kB==3){var o=a.kB==1?this.jk():this.yg(t).g;if(!s.Qn(o.rect))return!1;var f=v.R(s.M());return v.set(f,o.color),v.Lj(a.gx,a.OJ,f,s),v.N.fG(a.zU,a.RL,f,s,i.channel,s,1),v.Qn(f,o.channel)}},H.prototype.CH=function(t,i,e,r){var n=this.rD;n.RL.offset(i,e);var a=n.OJ.s7(n.RL);if(n.kB<=0){var s=v.R(a.M()*4);v.BP(n.gx,n.OJ,s,a),v.N.DO("norm",n.zU,n.RL,s,a,a,1),this.buffer=s,this.rect=a,this.A()}else{var l=this.kB==1?this.jk():this.yg(t).g,h=v.R(a.M());v.set(h,l.color),v.Lj(n.gx,n.OJ,h,a),v.N.fG(n.zU,n.RL,h,a,r.channel,a,1),l.channel=h,l.rect=a.clone(),this.kB==1&&(l.G2=!0,this._V(t)),this.kB==3&&this.A()}},H.prototype.bD=function(){var t=[-1,0,1,2];return this.g&&t.push(-2),this.NY&&t.push(-3),t},H.prototype.getName=function(){return this.add.luni?this.add.luni:this.name},H.prototype.uf=function(t){this.add.luni=this.name=t},H.prototype.cg=function(t){var i=this.add.lnsr,e=this.add.TySh;i=="rend"&&e&&this.uf(lt.jn(e.MF).replace(/(?:\r\n|\r|\n)/g," ").slice(0,32))},H.prototype.UQ=function(){return(this.ix&1<<1)==0},H.prototype.Mq=function(){return(this.ix&1<<4)==0},H.prototype.dL=function(){return(this.ix&1<<5)!=0},H.prototype.a5u=function(){var t=this;t.add.lnsr!="bgnd"&&(t.add.lnsr="bgnd",t.uf("Background"),t.add.lspf=1<<2)},H.prototype.a4z=function(){var t=this;t.add.lnsr=="bgnd"&&(delete t.add.lnsr,t.uf("Layer 0"),t.add.lspf=0)},H.prototype.k6=function(t){var i=this.add.lspf;return i==null?!1:(i>>t&1)!=0},H.prototype.vR=function(t){t&&!this.UQ()&&(this.ix-=2),!t&&this.UQ()&&(this.ix+=2)},H.prototype.su=function(){var t=this.add.lmfx;if(t==null)return!1;for(var i in t)if(i!="masterFXSwitch"&&i!="Scl"&&i!="classID"&&t[i].v.length>0)return!0;return!1},H.prototype.gO=function(){return this.add.SoLd!=null&&this.add.SoLd.filterFX!=null},H.prototype.nR=function(){var t=this.add.lmfx;if(t==null||!t.masterFXSwitch.v)return!1;for(var i in t)if(i!="masterFXSwitch"&&i!="Scl"&&i!="classID"){for(var e=t[i].v,r=0;r1){var h=v.V.dq(s.b,null,s.s_);l=v.D.nP(h)}else l=v.V.ue(s.b,s.p.length!=0?s.p:null);else l=v.V.ue(s.b);n=n.s7(l)}return a.indexOf(3)!=-1&&(n=n.s7(this.yg(t).g.o7())),a.length==0&&this.ws()&&(n=new et(0,0,t.Z,t.h)),n},H.prototype.sc=function(){var t=this.add.artb.artboardRect.v,i=t.Btom.v,e=t.Left.v,r=t.Rght.v,n=t.Top.v;return new et(e,n,r-e,i-n)},H.prototype.BE=function(t){var i=H.xE(t);this.add.artb==null&&(this.add.artb={classID:"artboard",artboardRect:{t:"Objc",v:null},artboardBackgroundType:{t:"long",v:1}}),this.add.artb.artboardRect.v=i},H.xE=function(t){var i={classID:"classFloatRect",Top:{t:"doub",v:0},Left:{t:"doub",v:0},Btom:{t:"doub",v:0},Rght:{t:"doub",v:0}};return i.Btom.v=t.y+t.h,i.Left.v=t.x,i.Rght.v=t.x+t.Z,i.Top.v=t.y,i},H.prototype.Ys=function(t,i,e){var r=[],n=this,a=this.yb;return!i&&n.yb&&e?r.push(2):n.kB<=0||i?(n.Mq()&&(this.rect.qr()||r.push(0)),n.jk()&&!n.jk().rect.qr()&&(n.jk().AU||i)&&r.push(1),n.add.vmsk&&(n.add.vmsk.AU||i)&&r.push(2),n.gO()&&n.yg(t).g&&!n.yg(t).g.rect.qr()&&r.push(3)):n.kB==1?(r.push(1),n.jk().AU&&!n.jk().rect.qr()&&(n.Mq()&&(this.rect.qr()||r.push(0)),n.add.vmsk&&n.add.vmsk.AU&&r.push(2))):n.kB==3&&!n.yg(t).g.rect.qr()&&r.push(3),n.add.artb&&r.indexOf(0)==-1&&r.push(0),r.sort(),r},H.prototype.jk=function(){var t=this;return t.NY?t.NY:t.add.vmsk&&t.add.vmsk.isEnabled?null:t.g},H.prototype.yg=function(t){var i=this.add.SoLd.placed.v,e=t.add.FEid;if(e==null)return null;for(var r=0;r3e4*3e4&&(i=new et(0,0,100,100)),t){var e=Math.ceil(t.strokeStyleLineWidth.v.val);i.PK(e,e)}i=v.D.pd(i);var r=new H.vm;return r.color=v.V.vq(this.b)?0:255,r.AU=this.AU,r.isEnabled=this.isEnabled,r.tA=!0,r.rect=i,r.au=this.au,r.bM=this.bM,r.channel=v.R(r.rect.M()),i.qr()||v.V.aex(this.b,r.channel,r.rect,t),t==null&&(this.NY=r,this.G2=!1),r},H.iO.prototype.clone=function(){var t=new H.iO;return t.AU=this.AU,t.isEnabled=this.isEnabled,t.au=this.au,t.bM=this.bM,t.b=H.iO.Cm(this.b),t.A2=this.A2.slice(0),t.mt=this.mt,t.p=this.p.slice(0),t.s_=this.s_.slice(0),t},H.iO.prototype.concat=function(t){var i=t.b.slice(2);i.length!=0&&(i[0].IO=3,this.b=this.b.concat(i))},H.iO.Cm=function(t){for(var i=[],e=0;e5||r.type==0||r.type==3?i.push(JSON.parse(JSON.stringify(r))):i.push({type:r.type,wU:r.wU.clone(),_:r._.clone(),dv:r.dv.clone()})}return i},H.iO.ajg=function(t,i,e){if(t.length!=i.length)return!1;for(var r=2;r=0;r--){var n=this.children[r],a=n.cp(t,i);if(a&&i==null)return a}return null}else if(e.add.TySh&&e.rect.oz(t)||v.aiC(t,e.buffer,e.rect)){if(i==null)return this;i.push(this.index)}return null},Se.prototype.aiV=function(t){var i=this.n;if(!i.UQ()||i.k6(2)||i.k6(31))return null;var e=i.add.vmsk;if(e&&e.isEnabled){var r=v.V.cp(e.b,t).XN;if(r!=-1)return{al3:this,aju:r}}if(i.fO()){for(var n=this.children.length-1;n>=0;n--){var a=this.children[n],s=a.aiV(t);if(s)return s}return null}return null},Se.prototype.as=function(t,i){if(t.push(this.index),this.n.fO()){if(t.push(this.rS),i&&this.n.kB==1&&this.n.jk().AU==!1)return;for(var e=0;ei.h?(n=e,a=Math.floor(e*(i.h/i.Z))):(n=Math.floor(e*(i.Z/i.h)),a=e),(r.ws()&&r.add.vmsk==null||r.add.TySh)&&(n=a=Math.max(a,16));var s=a,l=r.ws()&&r.add.vmsk;if(l){var h=r.rect.clone(),o,f;h.qr()&&(h=new et(0,0,20,20));var u=h.Z,p=h.h;u>p?(o=e,f=Math.floor(e*(p/u))):(o=Math.floor(e*(u/p)),f=e),o*f==0&&(o=f=16),v.ZL.Eo(r.oH,o,f,h,r.buffer,r.rect,!1),v.ZL.a7d(r.oH,o,f),s=f}else r.add.TySh?v.ZL.amE(r.oH,s,s,r.add.TySh):r.add.SoCo?(s=Math.max(16,Math.min(n,a)),v.ZL.a5w(r.oH,s,s,r.add.SoCo)):r.add.GdFl?v.ZL.a5R(r.oH,s,s,r.add.GdFl):r.add.PtFl?v.ZL.ail(r.oH,s,s,r.add.PtFl,t):Vt.get(r.add)!=null?v.ZL.a7k(r.oH,s,s,r.add):r.add.SoLd?(v.ZL.Eo(r.oH,n,a,i,r.buffer,r.rect,!1),v.ZL.ahC(r.oH,n,a,r.add.SoLd)):r.fO()?s=16:r.Mq()?v.ZL.Eo(r.oH,n,a,i,r.buffer,r.rect,!1):v.ZL.a3s(r.oH,s,s);var c=r.jk();if(c&&v.ZL.dp(r.a12,n,a,i,c),r.gO()&&r.yg(t)&&r.yg(t).g){var d=r.yg(t).g;v.ZL.dp(r.aiU,n,a,i,d)}if(!l&&r.add.vmsk&&v.ZL.dp(r.abb,n,a,i,r.add.vmsk.jk(),!0),(r.add.vmsk||c)&&(s=Math.max(s,a)),r.acv=Math.max(s,16),r.fO()&&r.add.lsct==Ci.lw)for(var g=0;g0||s.fill!=1||a.nR())){this.GE(t,i,e,r);return}var f=a.fO()&&a.sW=="pass"&&(n.length>0||s.fill!=1||a.nR()),u=a.rect,p=a.buffer;if(a.fO()){u=this.o7(r,!1);var c=v.R(u.M()*4);h=v.R(u.M()),this.GE(c,u,e,r),v.E4(c,h,3)}else l?(u=i.clone(),h=v.R(u.M()),v.set(h,255)):(u=a.rect,h=v.R(u.M()),v.E4(p,h,3));if(a.UW()){var d=a.g.kx(u);v.vB(d,h)}if(a.nR()&&(o=St.n6(a.add.lmfx,a.add.fxrp,h,u,r)),a.nR()&&St.vO(a.add.lmfx,o,u,t,i,e),a.fO()){if(p=v.R(u.M()*4),a.sW=="pass"&&v.BP(t,i,p,u),f){var c=v.R(u.M()*4);this.GE(c,u,e,r);var g=v.R(u.M());v.E4(c,g,3),v.pa(g,u,p,u)}this.GE(p,u,e,r)}if(l){p=v.clone(t),v.XB(p,4278190080,16777215);var b=Vt.get(a.add),m=Vt.VM(b,a.add[b]);Vt.t5(m,p,p,u)}var x=v.clone(p);v.XB(x,4278190080,16777215);for(var M=0;Mk.wm.Z&&(k=w[M]);var T=v.R(k.wm.Z*k.wm.h*4);v.BP(t,i,T,k.wm)}St.h9(a.add.lmfx,o,u,t,i,e,S,T,k?k.wm:null)}v.N.$e(S,u,t,i,h,u,0,e,1,a.sW=="diss")},Se.prototype.GE=function(t,i,e,r){for(var n=this.children,a=0;aa||!s&&a.indexOf(this.index)==-1))){var l=this.n,h=St.CX(l),o=Se.B6,f=l.ws()?l.jk():l.g;if(!!l.UQ()&&!(l.UW()&&f.rect.qr())&&!(l.add.vstk==null&&this.o7(r,!1).qr()&&l.add.artb==null)){var u=this.o7(r,!0).$X(e);if(!(!i.Qn(e)&&!e.dg(u)&&l.add.artb==null)){if(l.fO()&&l.add.artb){var p=l.sc(),c=0;e=e.$X(p);var d=l.add.artb.artboardBackgroundType.v;if(d==1)c=4294967295;else if(d==2)c=4278190080;else if(d==3)c=0;else if(d==4)c=l.add.artb.Clr.v,c=255<<24|c.Bl.v<<16|c.Grn.v<<8|c.Rd.v;else throw d;q.pQ?(q.k1(t,e),q.OL(c)):v.ah5(t,i,e,c)}var g=Se.fp(l,n,h);if(!g){this.gf(t,i,e,r,n,a);return}l.G.Db=o.vG(l.G.Db,u.Z,u.h),o.Lj(t,i,l.G.Db,u,e),this.gf(l.G.Db,u,e,r,n,a),o.$e(l.G.Db,u,t,i,null,null,0,e,l.opacity/255,l.sW=="diss",h.yo)}}}},Se.fp=function(t,i,e){return e.yo[0]*e.yo[1]*e.yo[2]==0?!0:t.opacity!=255&&(i.length!=0||t.fO()||t.nR())},Se.a8w={G:{}},Se.prototype.gf=function(t,i,e,r,n,a){var s=this.n,l=St.CX(s),h=Vt.get(s.add)!=null,o=Se.B6,f=Se.fp(s,n,l),u=f?1:s.opacity/255,p=s.ws()?s.jk():s.g,c=s.fO()&&s.sW=="pass"&&!(n.length>0||l.fill!=1||s.nR()),d=!s.fO()&&!h&&!s.nR()&&n.length==0,g=h&&!s.nR()&&n.length==0,b=null,m=null,x=null,M;if(c||d||g){var S=t,w=i;if(s.UW()&&(w=this.o7(r,!1),S=s.G.Yw=o.vG(s.G.Yw,w.Z,w.h),o.Lj(t,i,s.G.Yw,w)),c&&this.D4(S,w,e,r,a),d&&o.DO(s.sW,s.XC(r),s.rect,S,w,e,u,l),g){var L=s.UW()&&p.T6()==0?p.o7().clone():w.clone(),k=s.G;L.Qn(new et(0,0,r.Z,r.h))&&(k=Se.a8w),k._E=this.Jp(S,w,k._E,L,s.add),l.YU=!0,o.DO(s.sW,k._E,L,S,w,e,u,l)}s.UW()&&o.$e(S,w,t,i,s.cE(),p.o7(),p.T6(),e,1,s.sW=="diss"),s.G.cc();return}var T=s.fO()&&s.sW=="pass"&&(n.length>0||l.fill!=1||s.nR()),L=s.rect;if(s.fO()?(L=this.o7(r,!1),x=s.G._E=o.vG(s.G._E,L.Z,L.h),o.XB(x,0),this.D4(x,L,L,r,a),m=o.vG(s.G.Ks,L.Z,L.h),o.Lj(x,L,m,L)):h?(L=s.UW()&&p.T6()==0?p.o7().clone():i.clone(),m=o.vG(s.G.Ks,L.Z,L.h),o.XB(m,4294967295)):(L=s.rect,b=s.XC(r),m=o.vG(s.G.Ks,L.Z,L.h),o.Lj(b,L,m,L)),s.G.Ks=m,s.UW()&&o.ajE(s.cE(),p.o7(),p.T6(),m,L),s.nR()&&(s.G.h0||s.G.Zf||s.G.WZ!=q.pQ||s.G.XP||s.fO())){var O=v.R(L.Z*L.h);if(q.pQ)if(!s.fO()&&s.jk()==null&&s.rect.Qn(L))v.E4(s.buffer,O,3);else{var E=v.R(L.Z*L.h*4);m.get(E),v.E4(E,O,3)}else v.E4(m,O,3);if(s.G.Zf||s.G.WZ!=q.pQ||!v.Qn(O,s.G.WV)){var D=null;s.ws()&&s.add.vmsk&&s.add.vmsk.isEnabled&&s.add.vmsk.jk().color==0&&(D=s.add.vmsk.jk().rect),St.alU(s.G.gg,O,L,s.add.lmfx,s.add.fxrp,r,D),s.G.WV=O}}s.nR()&&St.vO(s.add.lmfx,s.G.gg,L,t,i,e),s.fO()&&(b=o.vG(s.G.Yw,L.Z,L.h),o.XB(b,0),s.sW=="pass"&&o.Lj(t,i,b,L),T&&o.Wr(x,L,b,L),this.D4(b,L,e,r,a),s.G.Yw=b),h&&(b=s.G.Yw=this.Jp(t,i,s.G.Yw,L,s.add)),s.fO()||h?M=b:(M=o.vG(s.G.Yw,L.Z,L.h),o.Lj(b,L,M,L,e),s.G.Yw=M),o.XB(M,4278190080,16777215);for(var B=0;BV.wm.Z&&(V=N[B]);s.G.bd=o.vG(s.G.bd,V.wm.Z,V.wm.h),o.Lj(t,i,s.G.bd,V.wm,e),s.G.VS=o.vG(s.G.VS,V.wm.Z,V.wm.h)}St.h9(s.add.lmfx,s.G.gg,L,t,i,e,I,s.G.bd,s.G.VS,V?V.wm:null)}if(!q.pQ){var j=v.R(L.M());v.E4(m,j,3),m=j}o.$e(I,L,t,i,m,L,0,e,1,s.sW=="diss"),s.G.cc()},Se.prototype.Jp=function(t,i,e,r,n){var a=Vt.get(n),s;a&&(s=Vt.VM(a,n[a]));var l=Se.B6;if(e=l.vG(e,r.Z,r.h),q.pQ&&i.Qn(r)||l.Lj(t,i,e,r),s)if(q.pQ){var h=r.clone();h.x=h.y=0,i.Qn(r)?(q.k1(e,h),Vt.WD(s,t.g3,h)):(q.k1(e,r),e.ke(r),Vt.WD(s,e.z2,h))}else Vt.t5(s,e,e,r);return e},Se.prototype.D4=function(t,i,e,r,n){for(var a=this.children,s=0;s1.0001;s&&(c.Z=Math.round(c.Z/d),c.h=Math.round(c.h/d),c.x=Math.round((this.Z-c.Z)/2),c.y=Math.round((this.h-c.h)/2)),p.buffer=v.R(p.rect.M()*4),s||v.Hk(f.DW[0],p.buffer)}p.add.SoLd={classID:"null",Idnt:{t:"TEXT",v:a},Impr:{t:"Objc",v:{__name:"None",classID:"none"}},placed:{t:"TEXT",v:u},PgNm:{t:"long",v:1},totalPages:{t:"long",v:1},frameStep:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},duration:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},frameCount:{t:"long",v:1},Annt:{t:"long",v:16},Type:{t:"long",v:2},Trnf:null,nonAffineTransform:null,warp:{t:"Objc",v:v.mD.R(p.rect)},Sz:{t:"Objc",v:{classID:"Pnt",Wdth:{t:"doub",v:p.rect.Z},Hght:{t:"doub",v:p.rect.h}}},Rslt:{t:"UntF",v:{type:"#Rsl",val:72}}};var g=v.D.z0(p.rect).d;return p.add.SoLd.Trnf=C.X.uE(g),p.add.SoLd.nonAffineTransform=C.X.uE(g),s&&p.Gy(this,!1),p},Pt.prototype.lD=function(t){if(t!=null){this.A(),this.tf(t);var i=this.buffer;return q.pQ?this.Z_.get(i):i=i.slice(0),this.A(),this.tf(),i}return this.h0&&(this.tf(),this.h0=null),q.pQ&&this.if&&(this.Z_.get(this.buffer),this.if=null,this.Ob=!0),this.buffer},Pt.prototype.tT=function(){for(var t=0;t"),i.add.lsct=Ci.Qi,i.ix=24,i},Pt.prototype.ry=function(){return this.xG!=this.gC},Pt.prototype.TX=function(t){for(;this.history.length>this.xG+1;)this.history.pop();this.gC>this.xG&&(this.gC=-1),t.Q.id!=C.Jc&&(this.Kg=!0,this.e5.lastAppliedComp&&(delete this.e5.lastAppliedComp,this.Ob=!0)),this.history.push(t),this.xG++,this.Ob=!0;for(var i=Rt.WQ()?60:30,e=0,r=this.history.length-1;r>=0;r--){var n=this.history[r];if(!n.vb&&(e++,e==i)){this.xG-=r,this.history=this.history.slice(r);break}}},Pt.prototype.a1=function(){return this.xG!=this.history.length-1?null:this.history[this.history.length-1]},Pt.prototype.JU=function(t,i,e,r){t==null&&(t=!1);var n=i!=null?[i]:this.p.slice(0);if(r){for(var a=[],s=0;s2){var s=r.VW[0];s.XN=-1,i.push(s),r.QP.indexOf(0)!=-1&&e.push(i.length-1)}var l=r.mb==null;l&&(r.mb=[]);for(var a=r.p.length-1;a>=0;a--){var h=r.r[r.p[a]],o=h.add.TySh;if(h.add.vmsk!=null&&(h.yb||h.ws())){var s=Pt.GG('"'+h.getName()+'" Shape Path',h.add);s.XN=r.p[a],i.push(s),l&&r.mb.push(n),r.mb.indexOf(n)!=-1&&e.push(i.length-1),n++}if(t!=!0&&o&&o.add&&v.mD.O8(o.VU)){var s=Pt.GG('"'+h.getName().slice(0,10)+'.." Text Path',o.add);s.XN=1e6+r.p[a],i.push(s),e.push(i.length-1),n++}}return e.length==0&&t&&(r.VW[0].XN=-1,r.QP=[0],e.push(i.length),i.push(r.VW[0])),[i,e]},Pt.prototype.Co=function(t,i){var e=[],r=this.root.V$(t);return r&&r.as(e,i),e},Pt.prototype.LU=function(){this.root.m2(this,new et(0,0,this.Z,this.h),32)},Pt.prototype.wG=function(t){for(var i=0;i1e3)for(var n=this.root.children,r=0;r>>8&255)<<8|f>>>16,h.rect=new et(0,0,e,r),h.buffer=v.R(e*r*4),v.XB(h.buffer,{Wht:4294967295,BckC:255<<24|f}[o])}return l.buffer=v.R(e*r*4),l};function ss(t){this.EA=t,this.F=0,this.c=new st(0,0),this.D8=0,this.qa=[1,1,1],this.xX=new et(0,0,1,1),this.a9N=new et(0,0,t.Z,t.h),this.GW=null,this.Su=null,this.YQ=new Uint32Array(0),this.Pq=null,this.Yb=null,this.lh=v.R(0),this.ox=null,this.D6=null}ss.prototype.c5=function(){var t=new Et,i=this.xX,e=this.EA,r=this.F,n=this.c,a=Math.round((i.Z-e.Z*r)/2+n.x),s=Math.round((i.h-e.h*r)/2+n.y);t.translate(-a,-s),t.scale(1/r,1/r);var l=e.Z/2,h=e.h/2;return t.translate(-l,-h),t.rotate(this.D8),t.translate(l,h),t},ss.prototype.rE=function(t){var i=this.xX,e=this.EA,r=Math.atan2(-t.i,t.m),n=e.Z/2,a=e.h/2;t.translate(-n,-a),t.rotate(-r),t.translate(n,a);var s=1/t.d3();t.scale(s,s);var l=-t.PV,h=-t.ye,o=Math.round(l-(i.Z-e.Z*s)/2),f=Math.round(h-(i.h-e.h*s)/2);this.D8=r,this.F=s>=1?Math.round(s):s,this.c=new st(o,f)},ss.prototype.PY=function(t,i){var e=this.c5();return e.aT(new st(t,i))},ss.prototype._R=function(t,i){var e=this.c5();return e.nJ(),e.aT(new st(t,i))},ss.prototype.yO=function(){var t=this.EA,i=this.F,e=this.xX.Z,r=this.xX.h,n=Math.floor(t.Z*i),a=Math.floor(t.h*i);if(i<.99){var s=v.adx(null,new et(0,0,t.Z,t.h),i).rect;n=s.Z,a=s.h}return new et(Math.round((e-n)/2+this.c.x),Math.round((r-a)/2+this.c.y),n,a)},ss.prototype.Ze=function(){var t=this.EA,i=this,e=1/i.F,r=this.yO();return new et(Math.floor((i.xX.x-r.x)*e),Math.floor((i.xX.y-r.y)*e),Math.ceil(i.xX.Z*e)+1,Math.ceil(i.xX.h*e)+1)};function at(){}at.order="ebbl FrFX IrSh IrGl ChFX SoFi GrFl patternFill OrGl DrSh".split(" "),at.og="ebblMulti frameFXMulti innerShadowMulti IrGlMulti ChFXMulti solidFillMulti gradientFillMulti patternFillMulti OrGlMulti dropShadowMulti".split(" "),at.names=[[14,4],[14,9],[14,1],[14,3],[14,8],[14,5],[14,6],[14,7],[14,2],[14,0]],at.eB=["DrSh","IrSh","SoFi","GrFl","FrFX"],at.QB=["Clr"],at.Zt="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" "),at.QZ=["Ptrn","Scl","Algn","phase"],at.Bf={z1:'{"t":"Objc","v":{"classID":"RGBC","Rd":{"v":255,"t":"doub"},"Grn":{"v":0,"t":"doub"},"Bl":{"v":0,"t":"doub"}}}',wB:'{"t":"Objc","v":{"classID":"Grdn","Nm":{"v":"Two Color","t":"TEXT"},"GrdF":{"v":{"GrdF":"CstS"},"t":"enum"},"Intr":{"v":4096,"t":"doub"},"Clrs":{"v":[{"v":{"classID":"Clrt","Clr":{"v":{"classID":"RGBC","Rd":{"v":0,"t":"doub"},"Grn":{"v":0,"t":"doub"},"Bl":{"v":0,"t":"doub"}},"t":"Objc"},"Type":{"v":{"Clry":"UsrS"},"t":"enum"},"Lctn":{"v":0,"t":"long"},"Mdpn":{"v":50,"t":"long"}},"t":"Objc"},{"v":{"classID":"Clrt","Clr":{"v":{"classID":"RGBC","Rd":{"v":255,"t":"doub"},"Grn":{"v":255,"t":"doub"},"Bl":{"v":255,"t":"doub"}},"t":"Objc"},"Type":{"v":{"Clry":"UsrS"},"t":"enum"},"Lctn":{"v":4096,"t":"long"},"Mdpn":{"v":50,"t":"long"}},"t":"Objc"}],"t":"VlLs"},"Trns":{"v":[{"v":{"classID":"TrnS","Opct":{"v":{"type":"#Prc","val":100},"t":"UntF"},"Lctn":{"v":0,"t":"long"},"Mdpn":{"v":50,"t":"long"}},"t":"Objc"},{"v":{"classID":"TrnS","Opct":{"v":{"type":"#Prc","val":100},"t":"UntF"},"Lctn":{"v":4096,"t":"long"},"Mdpn":{"v":50,"t":"long"}},"t":"Objc"}],"t":"VlLs"}}}',mR:'{"t":"Objc","v":{"classID":"Grdn","Nm":{"v":"Foreground to Background","t":"TEXT"},"GrdF":{"t":"enum","v":{"GrdF":"CstS"}},"Intr":{"t":"doub","v":4096},"Clrs":{"t":"VlLs","v":[{"t":"Objc","v":{"classID":"Clrt","Type":{"t":"enum","v":{"Clry":"FrgC"}},"Lctn":{"t":"long","v":0},"Mdpn":{"t":"long","v":50}}},{"t":"Objc","v":{"classID":"Clrt","Type":{"t":"enum","v":{"Clry":"BckC"}},"Lctn":{"t":"long","v":4096},"Mdpn":{"t":"long","v":50}}}]},"Trns":{"t":"VlLs","v":[{"t":"Objc","v":{"classID":"TrnS","Opct":{"t":"UntF","v":{"type":"#Prc","val":100}},"Lctn":{"t":"long","v":0},"Mdpn":{"t":"long","v":50}}},{"t":"Objc","v":{"classID":"TrnS","Opct":{"t":"UntF","v":{"type":"#Prc","val":100}},"Lctn":{"t":"long","v":4096},"Mdpn":{"t":"long","v":50}}}]}}}',S4:'{"t":"Objc","v":{"classID":"Ptrn","Nm":{"v":"orangeslices","t":"TEXT"},"Idnt":{"v":"c7acb22a-47a6-11de-919a-bf574370eaaf","t":"TEXT"}}}'},at.Bf.z1='"Clr": '+at.Bf.z1,at.Bf.j='"Grad":'+at.Bf.wB+',"Rvrs":{"v":false,"t":"bool"},"Type":{"v":{"GrdT":"Lnr"},"t":"enum"},"Algn":{"v":true,"t":"bool"},"Angl":{"v":{"type":"#Ang","val":90},"t":"UntF"},"Scl":{"v":{"type":"#Prc","val":100},"t":"UntF"},"Ofst":{"v":{"classID":"Pnt","Hrzn":{"v":{"type":"#Prc","val":0},"t":"UntF"},"Vrtc":{"v":{"type":"#Prc","val":0},"t":"UntF"}},"t":"Objc"},"Dthr":{"v":false,"t":"bool"}',at.Bf.S4='"Ptrn":'+at.Bf.S4+',"Scl":{"v":{"type":"#Prc","val":100},"t":"UntF"},"Algn":{"v":true,"t":"bool"},"phase":{"v":{"classID":"Pnt","Hrzn":{"v":0,"t":"doub"},"Vrtc":{"v":0,"t":"doub"}},"t":"Objc"}',at.default='{ "classID": "null", "Scl": {"t": "UntF", "v": { "type": "#Prc","val": 100} }, "masterFXSwitch": {"t": "bool","v": true} }',at.IW=['{"classID":"ebbl", "enab":{"v":true,"t":"bool"}, "hglM":{"t":"enum","v":{"BlnM":"Scrn"}},"hglC":{"t":"Objc","v":{"classID":"RGBC","Rd":{"t":"doub","v":255},"Grn":{"t":"doub","v":255},"Bl":{"t":"doub","v":255}}},"hglO":{"t":"UntF","v":{"type":"#Prc","val":75}},"sdwM":{"t":"enum","v":{"BlnM":"Mltp"}},"sdwC":{"t":"Objc","v":{"classID":"RGBC","Rd":{"t":"doub","v":0},"Grn":{"t":"doub","v":0},"Bl":{"t":"doub","v":0}}},"sdwO":{"t":"UntF","v":{"type":"#Prc","val":75}},"bvlT":{"t":"enum","v":{"bvlT":"SfBL"}},"bvlS":{"t":"enum","v":{"BESl":"InrB"}},"uglg":{"t":"bool","v":true},"lagl":{"t":"UntF","v":{"type":"#Ang","val":120}},"Lald":{"t":"UntF","v":{"type":"#Ang","val":30}},"srgR":{"t":"UntF","v":{"type":"#Prc","val":100}},"blur":{"t":"UntF","v":{"type":"#Pxl","val":5}},"bvlD":{"t":"enum","v":{"BESs":"In"}},"TrnS":{"t":"Objc","v":{"classID":"ShpC","Nm":{"t":"TEXT","v":"Linear"},"Crv":{"t":"VlLs","v":[{"t":"Objc","v":{"classID":"CrPt","Hrzn":{"t":"doub","v":0},"Vrtc":{"t":"doub","v":0}}},{"t":"Objc","v":{"classID":"CrPt","Hrzn":{"t":"doub","v":255},"Vrtc":{"t":"doub","v":255}}}]}}},"antialiasGloss":{"t":"bool","v":false},"Sftn":{"t":"UntF","v":{"type":"#Pxl","val":0}},"useShape":{"t":"bool","v":false},"MpgS":{"t":"Objc","v":{"classID":"ShpC","Nm":{"t":"TEXT","v":"Linear"},"Crv":{"t":"VlLs","v":[{"t":"Objc","v":{"classID":"CrPt","Hrzn":{"t":"doub","v":0},"Vrtc":{"t":"doub","v":0}}},{"t":"Objc","v":{"classID":"CrPt","Hrzn":{"t":"doub","v":255},"Vrtc":{"t":"doub","v":255}}}]}}},"AntA":{"t":"bool","v":false},"Inpr":{"t":"UntF","v":{"type":"#Prc","val":28}},"useTexture":{"t":"bool","v":false},"InvT":{"t":"bool","v":false},"Algn":{"t":"bool","v":true},"Scl":{"t":"UntF","v":{"type":"#Prc","val":100}},"textureDepth":{"t":"UntF","v":{"type":"#Prc","val":100}},"Ptrn":{"t":"Objc","v":{"classID":"Ptrn","Nm":{"t":"TEXT","v":"orangeslices"},"Idnt":{"t":"TEXT","v":"c7acb22a-47a6-11de-919a-bf574370eaaf"}}},"phase":{"t":"Objc","v":{"classID":"Pnt","Hrzn":{"t":"doub","v":0},"Vrtc":{"t":"doub","v":0}}}}','{"classID":"FrFX", "enab":{"v":true,"t":"bool"}, "Md":{"v":{"BlnM":"Nrml"},"t":"enum"},"Opct":{"v":{"type":"#Prc","val":100},"t":"UntF"},"Styl":{"v":{"FStl":"OutF"},"t":"enum"},"PntT":{"v":{"FrFl":"SClr"},"t":"enum"},"Sz":{"v":{"type":"#Pxl","val":3},"t":"UntF"},'+at.Bf.z1+","+at.Bf.j+","+at.Bf.S4+"}",'{"classID":"IrSh", "enab":{"v":true,"t":"bool"}, "Md":{"v":{"BlnM":"Mltp"},"t":"enum"},"Opct":{"v":{"type":"#Prc","val": 75},"t":"UntF"},"Clr":{"v":{"classID":"RGBC","Rd":{"v":0,"t":"doub"},"Grn":{"v":0,"t":"doub"},"Bl":{"v":0,"t":"doub"}},"t":"Objc"},"uglg":{"v":true,"t":"bool"},"lagl":{"v":{"type":"#Ang","val":120},"t":"UntF"},"Dstn":{"v":{"type":"#Pxl","val":5},"t":"UntF"},"Ckmt":{"v":{"type":"#Pxl","val":0},"t":"UntF"},"blur":{"v":{"type":"#Pxl","val":5},"t":"UntF"},"Nose":{"v":{"type":"#Prc","val":0},"t":"UntF"},"AntA":{"v":false,"t":"bool"},"TrnS":{"v":{"classID":"ShpC","Nm":{"v":"Linear","t":"TEXT"},"Crv":{"v":[{"v":{"classID":"CrPt","Hrzn":{"v":0,"t":"doub"},"Vrtc":{"v":0,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":255,"t":"doub"},"Vrtc":{"v":255,"t":"doub"}},"t":"Objc"}],"t":"VlLs"}},"t":"Objc"}}','{"classID":"IrGl", "enab":{"v":true,"t":"bool"}, "Md":{"v":{"BlnM":"Scrn"},"t":"enum"},"Opct":{"v":{"type":"#Prc","val": 75},"t":"UntF"},"Clr":{"v":{"classID":"RGBC","Rd":{"v":255,"t":"doub"},"Grn":{"v":255,"t":"doub"},"Bl":{"v":189.99710083007812,"t":"doub"}},"t":"Objc"},"GlwT":{"v":{"BETE":"SfBL"},"t":"enum"},"Ckmt":{"v":{"type":"#Pxl","val":0},"t":"UntF"},"blur":{"v":{"type":"#Pxl","val":5},"t":"UntF"},"ShdN":{"v":{"type":"#Prc","val":0},"t":"UntF"},"Nose":{"v":{"type":"#Prc","val":0},"t":"UntF"},"AntA":{"v":false,"t":"bool"},"glwS":{"v":{"IGSr":"SrcE"},"t":"enum"},"TrnS":{"v":{"classID":"ShpC","Nm":{"v":"Linear","t":"TEXT"},"Crv":{"v":[{"v":{"classID":"CrPt","Hrzn":{"v":0,"t":"doub"},"Vrtc":{"v":0,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":255,"t":"doub"},"Vrtc":{"v":255,"t":"doub"}},"t":"Objc"}],"t":"VlLs"}},"t":"Objc"},"Inpr":{"v":{"type":"#Prc","val":50},"t":"UntF"}}','{"classID":"ChFX", "enab":{"v":true,"t":"bool"}, "Md":{"v":{"BlnM":"Mltp"},"t":"enum"},"Opct":{"v":{"type":"#Prc","val": 50},"t":"UntF"},"Clr":{"v":{"classID":"RGBC","Rd":{"v":0,"t":"doub"},"Grn":{"v":0,"t":"doub"},"Bl":{"v":0,"t":"doub"}},"t":"Objc"},"AntA":{"v":false,"t":"bool"},"Invr":{"v":true,"t":"bool"},"lagl":{"v":{"type":"#Ang","val":19},"t":"UntF"},"Dstn":{"v":{"type":"#Pxl","val":11},"t":"UntF"},"blur":{"v":{"type":"#Pxl","val":14},"t":"UntF"},"MpgS":{"v":{"classID":"ShpC","Nm":{"v":"Gaussian","t":"TEXT"},"Crv":{"v":[{"v":{"classID":"CrPt","Hrzn":{"v":0,"t":"doub"},"Vrtc":{"v":0,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":32,"t":"doub"},"Vrtc":{"v":7,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":64,"t":"doub"},"Vrtc":{"v":38,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":96,"t":"doub"},"Vrtc":{"v":101,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":128,"t":"doub"},"Vrtc":{"v":166,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":159,"t":"doub"},"Vrtc":{"v":209,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":191,"t":"doub"},"Vrtc":{"v":235,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":223,"t":"doub"},"Vrtc":{"v":248,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":255,"t":"doub"},"Vrtc":{"v":255,"t":"doub"}},"t":"Objc"}],"t":"VlLs"}},"t":"Objc"}}','{"classID":"SoFi", "enab":{"v":true,"t":"bool"}, "Md":{"v":{"BlnM":"Nrml"},"t":"enum"},"Opct":{"v":{"type":"#Prc","val":100},"t":"UntF"},'+at.Bf.z1+"}",'{"classID":"GrFl", "enab":{"v":true,"t":"bool"}, "Md":{"v":{"BlnM":"Nrml"},"t":"enum"},"Opct":{"v":{"type":"#Prc","val":100},"t":"UntF"},'+at.Bf.j+"}",'{"classID":"patternFill","enab":{"v":true,"t":"bool"}, "Md":{"v":{"BlnM":"Nrml"},"t":"enum"},"Opct":{"v":{"type":"#Prc","val":100},"t":"UntF"},'+at.Bf.S4+"}",'{"classID":"OrGl", "enab":{"v":true,"t":"bool"}, "Md":{"v":{"BlnM":"Scrn"},"t":"enum"},"Opct":{"v":{"type":"#Prc","val": 75},"t":"UntF"},"Clr":{"v":{"classID":"RGBC","Rd":{"v":255,"t":"doub"},"Grn":{"v":255,"t":"doub"},"Bl":{"v":189.99710083007812,"t":"doub"}},"t":"Objc"},"GlwT":{"v":{"BETE":"SfBL"},"t":"enum"},"Ckmt":{"v":{"type":"#Pxl","val":0},"t":"UntF"},"blur":{"v":{"type":"#Pxl","val":5},"t":"UntF"},"Nose":{"v":{"type":"#Prc","val":0},"t":"UntF"},"ShdN":{"v":{"type":"#Prc","val":0},"t":"UntF"},"AntA":{"v":false,"t":"bool"},"TrnS":{"v":{"classID":"ShpC","Nm":{"v":"Linear","t":"TEXT"},"Crv":{"v":[{"v":{"classID":"CrPt","Hrzn":{"v":0,"t":"doub"},"Vrtc":{"v":0,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":255,"t":"doub"},"Vrtc":{"v":255,"t":"doub"}},"t":"Objc"}],"t":"VlLs"}},"t":"Objc"},"Inpr":{"v":{"type":"#Prc","val":50},"t":"UntF"}}','{"classID":"DrSh", "enab":{"v":true,"t":"bool"}, "Md":{"v":{"BlnM":"Mltp"},"t":"enum"},"Opct":{"v":{"type":"#Prc","val": 57},"t":"UntF"},"Clr":{"v":{"classID":"RGBC","Rd":{"v":0,"t":"doub"},"Grn":{"v":0,"t":"doub"},"Bl":{"v":0,"t":"doub"}},"t":"Objc"},"uglg":{"v":true,"t":"bool"},"lagl":{"v":{"type":"#Ang","val":120},"t":"UntF"},"Dstn":{"v":{"type":"#Pxl","val":27},"t":"UntF"},"Ckmt":{"v":{"type":"#Pxl","val":0},"t":"UntF"},"blur":{"v":{"type":"#Pxl","val":13},"t":"UntF"},"Nose":{"v":{"type":"#Prc","val":0},"t":"UntF"},"AntA":{"v":false,"t":"bool"},"TrnS":{"v":{"classID":"ShpC","Nm":{"v":"Line\xE1rn\xED","t":"TEXT"},"Crv":{"v":[{"v":{"classID":"CrPt","Hrzn":{"v":0,"t":"doub"},"Vrtc":{"v":0,"t":"doub"}},"t":"Objc"},{"v":{"classID":"CrPt","Hrzn":{"v":255,"t":"doub"},"Vrtc":{"v":255,"t":"doub"}},"t":"Objc"}],"t":"VlLs"}},"t":"Objc"},"layerConceals":{"v":true,"t":"bool"}}'],at.j={types:"Lnr Rdl Angl Rflc Dmnd shapeburst".split(" "),names:[[19,0,0],[19,0,1],[19,0,2],[19,0,3],[19,0,4],[19,0,5]]},at.stroke={types:["InsF","CtrF","OutF"],names:[[19,5,2],[19,5,1],[19,5,0]],_n:["SClr","GrFl","Ptrn"],a6v:[[13,0],[12,37],[12,62]]},at.I7={types:["SfBL","PrBL"],names:[[19,1,0],[19,1,1]],zC:["SrcC","SrcE"],ak7:[[19,5,1],[12,69]]},at.lc={types:["OtrB","InrB","Embs","PlEb","strokeEmboss"],style:[[19,2,0],[19,2,1],[19,2,2],[19,2,3],[19,2,4]],O5:["SfBL","PrBL","Slmt"],ajm:[[19,3,0],[19,3,1],[19,3,2]],dir:[[19,4,0],[19,4,1]]},at.bW={Bb:["strokeStyleButtCap","strokeStyleRoundCap","strokeStyleSquareCap"],Ph:["strokeStyleAlignInside","strokeStyleAlignCenter","strokeStyleAlignOutside"],join:["strokeStyleMiterJoin","strokeStyleRoundJoin","strokeStyleBevelJoin"],bl:["solidColorLayer","gradientLayer","patternLayer"],default:{classID:"strokeStyle",strokeStyleVersion:{t:"long",v:2},strokeEnabled:{t:"bool",v:!1},fillEnabled:{t:"bool",v:!0},strokeStyleLineWidth:{t:"UntF",v:{type:"#Pnt",val:4.38}},strokeStyleLineDashOffset:{t:"UntF",v:{type:"#Pnt",val:0}},strokeStyleMiterLimit:{t:"doub",v:100},strokeStyleLineCapType:{t:"enum",v:{strokeStyleLineCapType:"strokeStyleButtCap"}},strokeStyleLineJoinType:{t:"enum",v:{strokeStyleLineJoinType:"strokeStyleMiterJoin"}},strokeStyleLineAlignment:{t:"enum",v:{strokeStyleLineAlignment:"strokeStyleAlignCenter"}},strokeStyleScaleLock:{t:"bool",v:!1},strokeStyleStrokeAdjust:{t:"bool",v:!1},strokeStyleLineDashSet:{t:"VlLs",v:[]},strokeStyleBlendMode:{t:"enum",v:{BlnM:"Nrml"}},strokeStyleOpacity:{t:"UntF",v:{type:"#Prc",val:100}},strokeStyleContent:{t:"Objc",v:JSON.parse('{"classID":"solidColorLayer",'+at.Bf.z1+"}")},strokeStyleResolution:{t:"doub",v:72}}},at._G=[{classID:"null",Clr:JSON.parse(at.IW[5]).Clr},{classID:"null",Grad:JSON.parse(at.IW[6]).Grad,Dthr:{t:"bool",v:!1},Rvrs:{t:"bool",v:!1},Angl:{t:"UntF",v:{type:"#Ang",val:60}},Type:{t:"enum",v:{GrdT:"Lnr"}},Algn:{t:"bool",v:!0},Scl:{t:"UntF",v:{type:"#Prc",val:100}},Ofst:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:0}},Vrtc:{t:"UntF",v:{type:"#Prc",val:0}}}}},{classID:"null",Ptrn:JSON.parse(at.IW[7]).Ptrn,Algn:{v:!0,t:"bool"},Scl:{v:{type:"#Prc",val:100},t:"UntF"},phase:{v:{classID:"Pnt",Hrzn:{v:0,t:"doub"},Vrtc:{v:0,t:"doub"}},t:"Objc"}}];var St={};St.ae8=function(t,i,e){if(!t.qr()){var r=v.V.aeC(t.b);r.x=Math.floor(r.x*i),r.Z=Math.ceil(r.Z*i),r.y=Math.floor(r.y*e),r.h=Math.ceil(r.h*e),t.rect=r,t.channel=v.R(r.M()),v.ob.width=r.Z,v.ob.height=r.h;var n=v.xX;n.fillStyle="#ffffff",v.V.a9q(n,t.b,i,e,-r.x,-r.y),n.fill();var a=n.getImageData(0,0,r.Z,r.h).data;v.E4(a,t.channel,3)}},St.h4=function(t,i){function e(c,d){if(c==null)return null;var g=c[d].v,b;return g.length!=0&&(b=g[0].v,b.enab.v||(b=null)),b}var r=i.SoCo,n=i.GdFl,a=e(t,"solidFillMulti"),s=e(t,"gradientFillMulti");if(a==null&&s==null)return[r,n];var l=St.a3n;if(r&&a&&s==null){var h=JSON.parse(JSON.stringify(r));return h.Clr.v=l(a.Clr.v,r.Clr.v,a),[h,null]}if(n&&a&&s==null){for(var o=JSON.parse(JSON.stringify(n)),f=o.Grad.v.Clrs.v,u=0;u0&&c.blur.v.val>0&&(s=Math.max(s,Math.ceil(c.Ckmt.v.val*c.blur.v.val/100))),o=="OrGl"&&c.enab.v&&c.Ckmt.v.val>0&&c.blur.v.val>0&&c.GlwT.v.BETE=="SfBL"&&(s=Math.max(s,Math.ceil(c.Ckmt.v.val*c.blur.v.val/100))),o=="OrGl"&&c.enab.v&&c.blur.v.val>0&&c.GlwT.v.BETE=="PrBL"&&(s=Math.max(s,c.blur.v.val)),o=="FrFX"&&c.enab.v&&c.Sz.v.val>0&&(c.Styl.v.FStl=="OutF"&&(s=Math.max(s,c.Sz.v.val)),c.Styl.v.FStl=="CtrF"&&(s=Math.max(s,Math.ceil(c.Sz.v.val/2))),l=Math.max(l,St.Uo(c)[1]))}for(var d=new St.Ln(e,r,s),g={type:{},all:[]},b=0;b=0;m--){var x=t[f].v[m].v;if(!!x.enab.v){var M=x.blur?x.blur.v.val:0,S=x.Ckmt?x.Ckmt.v.val/100:0,w=M*S;if(o=="DrSh"){var k=d.LB(w,M-w,!0),T=k.AH,L=k.T;L.offset(-d.rect().x-1,-d.rect().y-1),St.PX(T,x,!1),St.sB(L,x,n,0);var O=v.R(L.M()*4);St.n_(O,x.Clr.v),v.Oy(T,O,3);var E={Ww:O,Xc:L,Si:ti.pT(x.Md.v.BlnM),hw:x.Opct.v.val/100,alF:x.layerConceals.v};g.type[o].push(E),g.all.push(E)}if(o=="IrSh"){var k=d.LB(w,M-w,!1);St.sB(k.T,x,n,0);var L=d.rect().clone(),T=v.R(L.M());v.set(T,255),v.Lj(k.AH,k.T,T,L),St.PX(T,x,!0);var O=v.R(L.M()*4);St.n_(O,x.Clr.v),v.Oy(T,O,3),L.offset(-d.rect().x-1,-d.rect().y-1);var E={Ww:O,Xc:L,Si:ti.pT(x.Md.v.BlnM),hw:x.Opct.v.val/100};g.type[o].push(E),g.all.push(E)}if(o=="GrFl"){var O=v.R(d.rect().M()*4);St.fE(x,O,d.rect(),n,null,a);var L=d.rect().clone();L.offset(-d.rect().x-1,-d.rect().y-1);var E={Ww:O,Xc:L,Si:ti.pT(x.Md.v.BlnM),hw:x.Opct.v.val/100};g.type[o].push(E),g.all.push(E)}if(o=="SoFi"){var O=v.R(d.AH().length*4);St.n_(O,x.Clr.v);var L=d.rect().clone();L.offset(-d.rect().x-1,-d.rect().y-1);var E={Ww:O,Xc:L,Si:ti.pT(x.Md.v.BlnM),hw:x.Opct.v.val/100};g.type[o].push(E),g.all.push(E)}if(o=="ebbl"){var D=!1;D&&console.log(x);var B=Date.now(),I=x.bvlS.v.BESl;if(I=="strokeEmboss"){var N=t.frameFXMulti.v;if(N.length==0||(N=N[0].v,!N.enab.v))continue;var V=N.Styl.v.FStl;V=="OutF"&&(I="OtrB"),V=="CtrF"&&(I="Embs"),V=="InsF"&&(I="InrB")}var M=x.blur.v.val;M==0&&(M=.7),(I=="Embs"||I=="PlEb")&&(M/=2);var j=["OtrB","InrB","Embs","PlEb","strokeEmboss"],R=["SfBL","PrBL","Slmt"],G=["In","Out"],Z=x.bvlT.v.bvlT!="SfBL"?M:M*.45,_=Math.round(M),U=d.rect().clone(),Y=U.clone();Y.PK(_,_);var $=Y.Z,P=Y.h,tt=$*P,X=v.R(tt);v.Lj(d.AH(),U,X,Y);var ht=new Float64Array(tt),F=new Float64Array(tt);v.style.QT(X,ht,$,P),v.nJ(X),v.style.QT(X,F,$,P),D&&console.log("distTransform computed",Date.now()-B);for(var h=0;hZ&&(F[h]=Z)}if(D&&console.log("summing + cropping",Date.now()-B),x.bvlT.v.bvlT=="SfBL"){var Q=Math.pow(M*.21,1.22);Q=Math.max(Q,2);var rt=v.ni.hT(Q,2);v.ni.Ey(F,ht,Y,rt[0]>>>1),v.ni.Ey(ht,F,Y,rt[1]>>>1)}D&&console.log("blurring",Date.now()-B);var it=F,nt=it.slice(0);if(x.useShape.v){var ot=Math.min(100,x.Inpr.v.val+1)/100;I!="OtrB"&&I!="InrB"&&(ot=1);var yi=v.JH.QV(x.MpgS.v.Crv.v,2e3),pt=Math.round(2e3/ot);yi=v.JH.aax(yi,pt,I=="InrB");for(var Ri=.5/Z,h=0;h0&&(mt[h]=li),Li>0&&(It[h]=Li)}if(D&&console.log("raycasting",Date.now()-B),x.Sftn.v.val!=0){v.ni.d$(mt,ht,Y,x.Sftn.v.val*.43);var vi=ht,ht=mt,mt=vi;if(Bt){v.ni.d$(It,ht,Y,x.Sftn.v.val*.43);var vi=ht,ht=It,It=vi}else v.Hk(mt,It)}D&&console.log("softening",Date.now()-B);for(var yi=v.JH.QV(x.TrnS.v.Crv.v,1024),h=0;h0){var k=d.LB(Cr,0,!0);pe=k.AH,pe.length0){var k=d.LB(wr,0,!1);Qe=v.R(L.M()),v.set(Qe,255),v.Lj(k.AH,k.T,Qe,L)}L.offset(-d.rect().x-1,-d.rect().y-1);var O=v.R(L.M()*4),Er=x.PntT.v.FrFl;Er=="SClr"&&St.n_(O,x.Clr.v),Er=="GrFl"&&St.fE(x,O,L,n,d.a3e(wr,Cr)),Er=="Ptrn"&&St._$(x,O,L,n,i);var E={Ww:O,Xc:L,Si:ti.pT(x.Md.v.BlnM),hw:x.Opct.v.val/100,dD:pe,we:Qe};g.type[o].push(E),g.all.push(E)}}}}return g},St.w_=function(t){var i=1/Math.sqrt(t.x*t.x+t.y*t.y+t.QY*t.QY);t.x*=i,t.y*=i,t.QY*=i},St.a08=function(t,i){return{x:t.y*i.QY-t.QY*i.y,y:t.QY*i.x-t.x*i.QY,QY:t.x*i.y-t.y*i.x}},St.a9G=function(t,i){return t.x*i.x+t.y*i.y+t.QY*i.QY},St.nb=function(t,i){var e=i.Nose.v.val/100;if(e>0)for(var r=0;rn){var a=v.JH.AQ(i.TrnS.v.Crv.v,256,!0);v.gJ(t,a)}e!=null&&i.Nose.v.val>0&&v.style.Jo(t,i.Nose.v.val/100,e)},St.n_=function(t,i,e){e==null&&(e=255);var r=v.j.T6(i),n=e<<24|r.i<<16|r.S<<8|r.U;v.XB(t,n)},St.sB=function(t,i,e,r){var n=i.uglg&&i.uglg.v?e.Rp():i.lagl.v.val;n=n*Math.PI/180+r;var a=Math.cos(n)*i.Dstn.v.val,s=Math.sin(n)*i.Dstn.v.val;t.x-=Math.round(a),t.y+=Math.round(s)},St.ig=function(t){if(t==null)return null;var i=t.frameFXMulti.v;if(i.length==0)return null;i=i[0].v;var e=JSON.parse(JSON.stringify(at.bW.default));return St.sa(i,e),e},St.sa=function(t,i){for(var e=at.stroke._n.indexOf(t.PntT.v.FrFl),r=[at.QB,at.Zt,at.QZ][e],n=i.strokeStyleContent.v={classID:at.bW.bl[e]},a=0;a=6&&this.rT(this.IS(n))}},Qt.prototype.kG=function(t){if(t==null&&(t=1),t=Math.max(.05,Math.min(5,t)),isNaN(t))throw alert("Pressure is not a number"),"e";return t},Qt.prototype.rT=function(t){this.ym=t,this.nu=this.nu.s7(t)},Qt.prototype.finish=function(){var t=this.B1,i=t.length,e;i==4&&(e=this.$k(t[i-2],t[i-1],this.xT[(i>>1)-1],!0)),i>4&&(e=this.IS(i+2)),e&&this.rT(e)},Qt.prototype.IS=function(t){var i=this.B1,e=this.xT,r=i[t-6],n=i[t-5],a=i[t-4],s=i[t-3],l=e[(t>>1)-3],h=e[(t>>1)-2],o=new st(0,0),f=new st(0,0);8<=t&&(o=Qt.l_(i[t-8],i[t-7],r,n,a,s)),t<=i.length&&(f=Qt.l_(i[t-2],i[t-1],a,s,r,n));for(var u=r+o.x,p=n+o.y,c=a+f.x,d=s+f.y,g=new et,b=0;b<10;b++){var m=(b+1)*.1,x=1-m,M=x*x*x*r+3*m*x*x*u+3*m*m*x*c+m*m*m*a,S=x*x*x*n+3*m*x*x*p+3*m*m*x*d+m*m*m*s,w=this.$k(M,S,l+m*(h-l));g=g.s7(w)}return g},Qt.l_=function(t,i,e,r,n,a){var s=t-e,l=i-r,h=n-e,o=a-r,f=Math.sqrt(s*s+l*l),u=Math.sqrt(h*h+o*o),p=Math.acos((s*h+l*o)/(f*u))/Math.PI,c=.35,d=.1;p=d+p*(c-d);var g=n-t,b=a-i,m=Math.sqrt(g*g+b*b),x=p*u/m;return new st(g*x,b*x)},Qt.prototype.$k=function(t,i,e,r){var n=new et,a=this.oI.a2k;if(a==null&&(a=0),a==0||r)return n=this.OI(t,i,e),n;var s=this.H9,l=t-s.x,h=i-s.y,o=Math.sqrt(l*l+h*h);if(l/=o,h/=o,o>a){var f=s.x+l*(o-a),u=s.y+h*(o-a);n=this.OI(f,u,e),this.H9.Oh(f,u)}return n},Qt.prototype.OI=function(t,i,e){var r=new et,n=new st(t,i),a=this.i.Brsh.v.Dmtr.v.val,s=this.oI.p9,l=n.gI(this.KO);l.normalize(1);for(var h=st.Yj(this.KO,n),o=-this.aiD,f=this.KO.clone(),u=this.oI.lx;;){var p=this.Ex+(e-this.Ex)*(Math.max(0,o)/h),c=this.DC()*(u[1]?p:1),d=this.am7()*(c+this.a0x)/2;if(s==Qt.nD&&(d=1),o+d0?1:-1;var x=f.clone();x.y+=l.y>0?1:-1,st.Yj(m,g)1&&(l.Pg=1-(l.Pg-1)),l.pl=l.pl+s,l.pl<0&&(l.pl=-l.pl),l.pl>1&&(l.pl=1-(l.pl-1)),i=v.ul(l.mi,l.Pg,l.pl)}return i},Qt.prototype.w_=function(t){return Math.max(0,Math.min(1,t))},Qt.prototype.Jv=function(){return this.Og++,Qt.hash(this.Og)},Qt.tw=function(t){return{U:(t>>16&255)/255,S:(t>>8&255)/255,i:(t>>0&255)/255}},Qt.hash=function(t){return t=t^61^t>>16,t=t+(t<<3),t=t^t>>4,t=t*668265261,t=t^t>>15,(t&16777215)/16777215},Qt.x5=[],Qt.am1=function(t,i){var e=t.d3(),r=i.d3();if(e2500)){r=h;break}}var o=Math.round(this.i.Brsh.v.Dmtr.v.val);if(r)r.rect.x=Math.round(r.f_.x-r.qm.PV+t.PV),r.rect.y=Math.round(r.f_.y-r.qm.ye+t.ye),s&&(r.rect.x=Math.round(i.x-r.rect.Z/2),r.rect.y=Math.round(i.y-r.rect.h/2)),r.Pl=Date.now();else{var f;if(s&&o<=3?(f={buffer:v.R(o*o*4),rect:new et(Math.round(i.x-o/2),Math.round(i.y-o/2),o,o)},v.XB(f.buffer,4278190080)):t.m==1&&t.i==0&&t.p$==0&&t.xA==1?(f={buffer:this.Gv.Em,rect:this.Gv.ik.clone()},f.rect.x=Math.round(t.PV),f.rect.y=Math.round(t.ye)):f=C.X.Z6([this.Gv.Em,this.Gv.ik],t),s)for(var n=0;n127?255:0;f==null&&(f={buffer:v.R(0),rect:new et});var u=t.PV-Math.floor(t.PV),p=t.ye-Math.floor(t.ye);if(r={Em:f.buffer,px:v.R(f.rect.M()),rect:f.rect,f_:f.rect.clone(),qm:t,tZ:Qt.aC(t.PV,t.ye),Pl:Date.now()},v.E4(r.Em,r.px,3),a.push(r),e.M+=f.rect.M(),a.length>2e3||e.M>100*100*400)for(console.log("pruning",e.M,a.length),a.sort(function(d,g){return g.Pl-d.Pl});a.length>1e3||e.M>100*100*200;){var c=a.pop();e.M-=c.rect.M()}}for(e.pC=a,e.Pl=Date.now(),Qt.x5.push(e),Qt.x5.sort(function(d,g){return g.Pl-d.Pl});Qt.x5.length>3;)Qt.x5.pop();return r},Qt.aC=function(t,i){return new st(t-Math.floor(t),i-Math.floor(i))},Qt.ajJ=function(t,i){var e=i.x,r=i.y,n=Math.abs(e-t.x),a=Math.abs(r-t.y);return Math.abs(e-1-t.x)>>1)+1),M=0;Ms*2;){var G=new et(n.x,n.y,Math.floor(n.Z/2),Math.floor(n.h/2)),Z=C.X.Z6([r,n],new Et(G.Z/n.Z,0,0,G.h/n.h,0,0));a*=G.Z/n.Z,n=Z.rect,r=Z.buffer}return{alv:a,ik:n,Em:r}},Qt.ii=[],Qt.$i=function(t){if(Qt.ii[t])return Qt.ii[t];for(var i=Math.pow(t,.55),e=new Float64Array(8e3),r=0,n=8e3,a=0;a<8e3;a++){var s=Qt.akO(a*(1.55/4e3),i);s>=1?r=a:s<=0&&n==8e3&&(n=a),e[a]=s}var l=[e,r,n];return Qt.ii[t]=l,l},Qt.akO=function(t,i){var e=tu||L>p)&&w[M+2];)M+=2,k=w[M],T=w[M+1].Z,L=w[M+1].h;if(T*L!=0){var O=v.R(T*L*4);v.Oy(k,O,3);var E=new ImageData(new Uint8ClampedArray(O.buffer),T,L);l.putImageData(E,Math.round((u-T)/2),Math.round((p-L)/2))}}return s.toDataURL()},Qt.ug=function(t,i,e,r){e==0&&(e=1);var n=t.Brsh.v,a=n.Dmtr.v.val,s=n.Dmtr.v.val=Math.min(r!=null?Math.round(r*2.6):3e3,a*e),l=n.Hrdn?n.Hrdn.v.val/100:1,h=r!=null?r:Math.round(s*(1+.55*(1-l)))+4,o;h=Math.max(15,Math.min(h,3e3));var f=new et(0,0,h,h),u=new Qt(t,i,null,{Jf:1},16711712,0,f);n.Dmtr.v.val=a,u.moveTo(f.Z/2,f.h/2);var p=u.qq(),c=u.o7();return f.Qn(c)?o=p:(o=v.R(f.M()*4),v.BP(p,c,o,f)),[o,f,s]},Qt.b_=function(t,i,e,r){var n=Qt.ug(t,i,e),a=n[0],s=n[1],l=n[2],h=s.M(),o=v.R(h);v.E4(a,o,3);var f=v.R(h);if(v.K.ahE(o,f,s),l<3||v.wq(f,0)||r&&l>12)for(var u=s.Z,p=u>>>1,c=f,d=255,g=0;g<4;g++)c[u*(p-6+g)+p]=d,c[u*p+p-6+g]=d,c[u*p+p+6-g]=d,c[u*(p+6-g)+p]=d;var b=[1,2,1,2,8,2,1,2,1];b=v.Ai.h5(b),v.Ai.aet(f,o,s.Z,s.h,b),v.XB(a,4294967295),v.Oy(o,a,3);for(var g=0;g80?255:0;if(o==3)for(var u=0;u128?d:-1);o[g]==null&&(o[g]=1,i.VV(r[p].Name,d)==null&&(h=!1))}f+=a[u]}return h}},Ee.adE=function(t,i,e){for(var r=new Et,n=0;n[]{}\xAB\xBB\u0F3A\u0F3B\u0F3C\u0F3D\u169B\u169C\u2039\u203A\u2045\u2046\u207D\u207E\u208D\u208E\u2208\u2209\u220A\u220B\u220C\u220D\u2215\u223C\u223D\u2243\u2252\u2253\u2254\u2255\u2264\u2265\u2266\u2267\u2268\u2269\u226A\u226B\u226E\u226F\u2270\u2271\u2272\u2273\u2274\u2275\u2276\u2277\u2278\u2279\u227A\u227B\u227C\u227D\u227E\u227F\u2280\u2281\u2282\u2283\u2284\u2285\u2286\u2287\u2288\u2289\u228A\u228B\u228F\u2290\u2291\u2292\u2298\u22A2\u22A3\u22A6\u22A8\u22A9\u22AB\u22B0\u22B1\u22B2\u22B3\u22B4\u22B5\u22B6\u22B7\u22C9\u22CA\u22CB\u22CC\u22CD\u22D0\u22D1\u22D6\u22D7\u22D8\u22D9\u22DA\u22DB\u22DC\u22DD\u22DE\u22DF\u22E0\u22E1\u22E2\u22E3\u22E4\u22E5\u22E6\u22E7\u22E8\u22E9\u22EA\u22EB\u22EC\u22ED\u22F0\u22F1\u22F2\u22F3\u22F4\u22F6\u22F7\u22FA\u22FB\u22FC\u22FD\u22FE\u2308\u2309\u230A\u230B\u2329\u232A\u2768\u2769\u276A\u276B\u276C\u276D\u276E\u276F\u2770\u2771\u2772\u2773\u2774\u2775\u27C3\u27C4\u27C5\u27C6\u27C8\u27C9\u27CB\u27CD\u27D5\u27D6\u27DD\u27DE\u27E2\u27E3\u27E4\u27E5\u27E6\u27E7\u27E8\u27E9\u27EA\u27EB\u27EC\u27ED\u27EE\u27EF\u2983\u2984\u2985\u2986\u2987\u2988\u2989\u298A\u298B\u298C\u298D\u298E\u298F\u2990\u2991\u2992\u2993\u2994\u2995\u2996\u2997\u2998\u29B8\u29C0\u29C1\u29C4\u29C5\u29CF\u29D0\u29D1\u29D2\u29D4\u29D5\u29D8\u29D9\u29DA\u29DB\u29F5\u29F8\u29F9\u29FC\u29FD\u2A2B\u2A2C\u2A2D\u2A2E\u2A34\u2A35\u2A3C\u2A3D\u2A64\u2A65\u2A79\u2A7A\u2A7D\u2A7E\u2A7F\u2A80\u2A81\u2A82\u2A83\u2A84\u2A8B\u2A8C\u2A91\u2A92\u2A93\u2A94\u2A95\u2A96\u2A97\u2A98\u2A99\u2A9A\u2A9B\u2A9C\u2AA1\u2AA2\u2AA6\u2AA7\u2AA8\u2AA9\u2AAA\u2AAB\u2AAC\u2AAD\u2AAF\u2AB0\u2AB3\u2AB4\u2ABB\u2ABC\u2ABD\u2ABE\u2ABF\u2AC0\u2AC1\u2AC2\u2AC3\u2AC4\u2AC5\u2AC6\u2ACD\u2ACE\u2ACF\u2AD0\u2AD1\u2AD2\u2AD3\u2AD4\u2AD5\u2AD6\u2ADE\u2AE3\u2AE4\u2AE5\u2AEC\u2AED\u2AF7\u2AF8\u2AF9\u2AFA\u2E02\u2E03\u2E04\u2E05\u2E09\u2E0A\u2E0C\u2E0D\u2E1C\u2E1D\u2E20\u2E21\u2E22\u2E23\u2E24\u2E25\u2E26\u2E27\u2E28\u2E29\u3008\u3009\u300A\u300B\u300C\u300D\u300E\u300F\u3010\u3011\u3014\u3015\u3016\u3017\u3018\u3019\u301A\u301B\uFE59\uFE5A\uFE5B\uFE5C\uFE5D\uFE5E\uFE64\uFE65\uFF08\uFF09\uFF1C\uFF1E\uFF3B\uFF3D\uFF5B\uFF5D\uFF5F\uFF60\uFF62\uFF63",Ee.ale=function(t,i,e,r,n,a){a.translate(i.tZ.x,i.tZ.y);for(var s=i.GZ;s<=i.sf;s++){var l=e.K5[s],h=l.T.Z,o=t[e.a5Q+l.Fc];if(o.hp!=` `){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>>3,n=t.TextOnPathTRange,a=t.Reversed,s=0,l=0;if(a){for(var h=i.slice(0),o=0;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]65535&&a--,a}for(var b=0;bS+p/2||L==1&&t.x65535?2:1),k}}}},Si.prototype.Fj=function(t){for(var i={T:new et,Kc:0},e=0,r=0;ra&&(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;b0&&Z[R-1].Fc==M;)R--;e[h+D+M].FP=E.length+(I?R:Z.length-R-1)}for(var M=0;M>>1,kt=0;kt=F?it=b:it!=-1&&O2&&(_==6||!ht))this.abh(it,nt,U,pt,m,yt);else for(var vt=yt,b=it;b=t&&(e[l].L5||e[l].nz);l--)a-=e[l].T.Z;if(r==1)for(var l=t;l=t&&(e[f].L5||e[f].nz);f--)e[f].L5&&h--;if(n==1)for(var f=t;f>>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=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"},{_0:"i40",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i41",_1:"s\xAB",_2:"s\xBB",_3:"s<",_4:"s>"},{_0:"i42",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i43",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i44",_1:"s\xAB",_2:"s\xBB",_3:"s\u2039",_4:"s\u203A"},{_0:"i45",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"}],_15:{_0:"sWinSoft"},_16:!1};var we={};we.a27=function(t){return we.E2(t,we.N2)},we.agb=function(t){return we.cO(t,we.N2)},we.E2=function(t,i){var e;if(typeof t=="string")return t;if(t instanceof Array){e=[];for(var r=0;r0&&l.push("border-radius: "+Math.round(f)+"px")}else if(s){var u=s.MF;if(lt.AW(u)==1){var o=lt.dd(u);l.push("width: "+Math.round(o[2])+"px"),l.push("height: "+Math.round(o[3])+"px")}te.yS(l,lt.lW(u,0,0),s.O,!1,!1,h[0])}for(var p=[],c=a?a.dropShadowMulti.v:0,d=0;d>16&255,S:t>>8&255,i:t&255}},te.O4=function(t,i){return te.PO(v.j.T6(t),i)},te.PO=function(t,i){i==null&&(i=1);var e=Math.round(t.U),r=Math.round(t.S),n=Math.round(t.i),a=e<<16|r<<8|n;return i==1?"#"+v.v2(a):"rgba("+e+","+r+","+n+","+i+")"},te.Eu=function(t){var i=t.Grad.v;if(i.Clrs==null)return"";var e=i.Clrs.v.slice(0),r=i.Trns.v.slice(0),n=t.Ofst.v,a=t.Type.v.GrdT=="Rdl"?1:0,s=(a==1?"radial":"linear")+"-gradient",l=a==0?Math.round(-t.Angl.v.val+90)+"deg":"circle at center",h=t.Rvrs.v;h&&(e.reverse(),r.reverse());for(var o=0;o")return t>i;if(e=="==")return t==i;if(e=="<=")return t<=i;if(e==">=")return t>=i;if(e=="!=")return t!=i;if(e=="!==")return t!==i;if(e=="<<")return t<>")return t>>i;console.log(e)},Jt.sP=function(t,i){if(i=="-")return-t;if(i=="!")return!t;if(i=="~")return~t;if(i=="+")return t;console.log(obj)},Jt.it=function(t,i,e){var r=t.type;return r=="Identifier"?Jt.a0l(t.name,i,e):Jt.eval(t,i,e)},Jt.a0l=function(t,i,e){if(t!="undefined")return e.hasOwnProperty(t)?e[t]:t=="app"?{qa:"Application"}:Jt.Tz.a1O.indexOf(t)!=-1?Jt.Tz.lg({qa:"Application"},t,i,e):window[t]&&!Jt.VJ[t]?window[t]:(e[t]=null,null)},Jt.Tz={},Jt.Tz.a5N=function(t,i,e,r){var n;return t=="SolidColor"&&(n={qa:t,C:[1,0,0,0]}),t=="Window"&&(n={qa:t,C:new xh(Jt.eval(i[0],e,r),Jt.eval(i[1],e,r),Jt.eval(i[2],e,r))}),t=="ExportOptionsSaveForWeb"&&(n={qa:t,C:{On:"png",Dh:100}}),t=="JPEGSaveOptions"&&(n={qa:t,C:{On:"jpg",Dh:100}}),t=="File"&&(n={qa:t,C:Jt.eval(i[0],e,r)}),t=="ActionReference"&&(n={qa:t,C:[]}),t=="ActionDescriptor"&&(n={qa:t,C:{}}),n},Jt.Tz.a1O="activeDocument documents fonts preferences displayDialogs foregroundColor backgroundColor".split(" "),Jt.Tz.a77=["charIDToTypeID","stringIDToTypeID","executeAction","doAction"],Jt.Tz.lg=function(t,i,e,r){var n=e.fm,a=e.ux();if(i=="typename")return t.qa=="Layer"?t.C.fO()?"LayerSet":"ArtLayer":t.qa;if(["Document","Layer"].indexOf(t.qa)!=-1&&["layers","artLayers","layerSets"].indexOf(i)!=-1){var s=a.root,l={qa:"Layers",RC:i,C:[]};t.qa=="Layer"&&(s=a.root.V$(a.r.indexOf(t.C)));for(var h=0;h>>16&255)/255,(u>>>8&255)/255,(u>>>0&255)/255]}}else{if(i=="UI")return{qa:"UI"};console.log(t,i)}}}else if(t.qa=="Document"){var a=t.C;if(i=="activeLayer"){var o=a.r[a.p[0]];return{qa:"Layer",C:o}}else{if(i=="resolution")return a.NB;if(i=="width")return a.Z;if(i=="height")return a.h;if(i=="name")return a.name;if(i=="saved")return!a.ry();if(i=="selection")return{qa:"Selection"};if(i=="activeHistoryState")return{qa:"HistoryState",XN:a.xG};if(i=="source")return a.Rg;if(i=="historyStates"){for(var p=[],h=0;h>>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.Tz.$y(e);l.data={e:"trsl",n:B,a8t:I[0],a24:I[1]},l.Q=C.fb}else if(i=="link")l.data={e:H.IQ,agl:[B,f.r.indexOf(e[0].C)]},l.Q=C.xC;else if(i=="invert")l.Q=C.Vd,l.data={e:"start",MY:"nvrt"};else if(i.startsWith("apply")&&Zt.Cf[i.slice(5)]){var I=Jt.Tz.$y(e),N=Zt.Cf[i.slice(5)];h.data={Bm:Zt.l6[N]};var b=Zt.tt(N);b&&(Zt.jf["g"+N](b,I),h.data.w1=b)}else console.log(t,i,e)}else if(a=="Documents")if(i=="getByName"){for(var S=0;S','','',''],e=ke.OK;for(var r in e){var n=t[r],a=e[r][2],s="Seq",l="";if(!(n==null||a==null)){(a=="dc:title"||a=="dc:description")&&(s="Alt",l=' xml:lang="x-default"'),a=="dc:subject"&&(s="Bag"),i.push(" <"+a+">");for(var h=a=="dc:subject"?n.split(";").join(",").split(","):[n],o=0;o"+h[o].trim()+"");i.push(" ")}}return i.push("","","",''),i.join(` `)},ke.FE=function(t){for(var i=[],e=0;e/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;e1e3?e=i==0?100:i*10:(t%10!=0&&(t*=10),e=(t+i)%100),y.hB=Date.now(),e},y.X8=function(t,i){if(window.PointerEvent){t.addEventListener("pointerdown",i,!1);return}t.addEventListener("mousedown",i,!1),t.addEventListener("touchstart",i,!1)},y.Jr=function(t,i){if(window.PointerEvent){t.addEventListener("pointermove",i,!1);return}t.addEventListener("mousemove",i,!1),t.addEventListener("touchmove",i,!1)},y.so=function(t,i){if(window.PointerEvent){t.addEventListener("pointerup",i,!1);return}t.addEventListener("mouseup",i,!1),t.addEventListener("touchend",i,!1)},y.a07=function(t,i){if(window.PointerEvent){t.removeEventListener("pointerdown",i,!1);return}t.removeEventListener("mousedown",i,!1),t.removeEventListener("touchstart",i,!1)},y.NG=function(t,i){if(window.PointerEvent){t.removeEventListener("pointermove",i,!1);return}t.removeEventListener("mousemove",i,!1),t.removeEventListener("touchmove",i,!1)},y.Sz=function(t,i){if(window.PointerEvent){t.removeEventListener("pointerup",i,!1);return}t.removeEventListener("mouseup",i,!1),t.removeEventListener("touchend",i,!1)},y.w4=function(t){t.addEventListener("touchstart",y.vA,!1),t.addEventListener("touchmove",y.vA,!1),t.addEventListener("touchend",y.vA,!1)},y.Tv=function(t,i,e,r){var n=y.J();t.width=Math.floor(i*n),t.height=Math.floor(e*n),t.style.width=t.width/n+"px",t.style.height=t.height/n+"px",r&&r.setTransform(n,0,0,n,0,0)},y.Hc=function(t,i,e){t.setAttribute("style","width:"+i/y.J()+"px; height:"+e/y.J()+"px")},y.oA=function(t,i){i==null&&(i=t.currentTarget);var e=i.getBoundingClientRect();return t.touches&&(t=t.touches.item(0)),{x:t.clientX-e.left,y:t.clientY-e.top}},y.J=function(t){return window.devicePixelRatio||1},y.vA=function(t){t.preventDefault()},y.OZ=function(t){t.stopPropagation(),t.preventDefault()},y.G6=function(t,i,e){return e=e||"",PIMG["__"+t]==null&&(e+=" gsicon"),''+(i||'},y.u4=function(t,i,e,r){var n=t.dataTransfer.getData("text/uri-list");if(n!=null&&n.startsWith("http")){var a=new z(y.E.L,!0);a.data={e:y.B.JX,S9:{url:n,pY:!0,q3:e,kT:r}},i.w(a)}if(t.dataTransfer.files.length!=0){var a=new z(y.E.L,!0);a.data={e:y.B.Ek,data:t.dataTransfer.files,q3:e,kT:r},i.w(a)}};var z=function(t,i){i||(i=!1),this.type=t,this.target=null,this.currentTarget=null,this.bubbles=i,this.Q=null,this.qQ=!1};y.E={H:"0",L:"1",QJ:"1.5",I:"2",Ga:"3",UL:"4",El:"5"},y.B={mG:"10",VX:"11",Qp:"12",CB:"13",Ik:"14",mB:"14.1",JX:"15",ED:"16",wF:"17",T5:"18",tG:"19",Gk:"19.5",At:"20",mK:"21",c_:"22",bx:"23",xS:"24",uH:"25",QL:"26",qD:"27",G0:"28",$R:"29",Ek:"30",MR:"31",_g:"32",R2:"33",Zo:"34",Sl:"35",dm:"35.5",Xk:"37",cy:"38",Uw:"39",p7:"40",kP:"41",Xp:"41.5",ez:"42",kj:"43",vz:"44",l3:"45",hR:"46",Wp:"47",iS:"48",rU:"49"};var In={};In.eo=function(t){var i=In.lB[t],e=document.documentElement.style,r=20;e.setProperty("--bg-color","#"+v.v2(i["--bg-color"])),e.setProperty("--bg-panel","#"+v.v2(i["--bg-panel"])),e.setProperty("--bg-canvas","#"+v.v2(i["--bg-canvas"])),e.setProperty("--bg-input","#"+v.v2(i["--bg-input"])),e.setProperty("--bg-bbtn","#"+v.v2(i["--bg-bbtn"])),e.setProperty("--bg-bbtnOver","#"+v.v2(i["--bg-bbtnOver"])),e.setProperty("--brdr","#"+v.v2(i["--brdr"])),e.setProperty("--text-color","#"+v.v2(i["--text-color"])),e.setProperty("--brdrLgt","rgba(255,255,255,"+i["--brdrLgt"]+")"),e.setProperty("--brdrDrk","rgba( 0, 0, 0,"+i["--brdrDrk"]+")"),e.setProperty("--alphaDark",""+i["--alphaDark"]),e.setProperty("--gs-invert",""+i["--gs-invert"]);var n=i["--sh-clr"];e.setProperty("--sh-clr","rgba("+(n>>16)+","+(n>>8&255)+","+(n&255)+", 0.45)"),e.setProperty("--sh-dy",""+i["--sh-dy"]+"px"),1=0&&(t=Math.max(this.fc,t)),this.A_==0&&(t=Math.round(t));var e=this.Yx;this.De.value=(this.A_!=0?t.toFixed(this.A_):t)+(this.ajQ&&e?(e.toLowerCase()==e.toUpperCase()?"":" ")+e:"");var r=400*Math.pow((t-this.fc)/(this.AP-this.fc),1/2.7);this.oq.value=this.QK?r:t},Fe.prototype.q=function(){var t=parseFloat(this.De.value);return isNaN(t)&&(t=0),t},Fe.prototype.nY=function(){return this.Yx},Fe.prototype.Om=function(t){var i=0;if(t.currentTarget==this.De){for(var e=t.target.value,r=0;r50&&t>10&&(t=Math.round(t)),t},Fe.prototype.TV=function(t){var i=0;W.be(t.code,W.DY)&&(i=1),W.be(t.code,W.yF)&&(i=-1),i!=0&&this.H0(i,t.shiftKey)},Fe.prototype.vQ=function(t){this.H0(t.deltaY>0?-1:1,t.shiftKey)},Fe.prototype.H0=function(t,i){var e=this.q(),r=this.A_,n=t*(r==null||r==0||e>5?1:.1);i&&(n*=10);var a=e+n;!this.QK&&this.AP!=this.fc&&(a=Math.min(this.AP,a)),this.k(a),this.H6()},Fe.prototype.a2t=function(t){var i=Date.now()-this.Th;if(this.Th=Date.now(),!(i>300)){var e=(this.AP+this.fc)/2;this.fc<0&&this.AP>0?e=0:this.fc<1&&this.AP>1&&this.AP<10&&(e=1),this.k(e),this.H6()}},Fe.prototype.ak9=function(t){y.Jr(document,this.aeF),y.so(document,this.af7),this.sZ=y.oA(t,document.body).x,this.Ra=this.q()},Fe.prototype.adb=function(t){y.OZ(t);var i=this.fc==this.AP,e=y.oA(t,document.body).x,r=(e-this.sZ)*(i?1:1/120*(this.AP-this.fc)),n=this.Ra+r;i&&(n=Math.round(n)),i||(n=Math.max(this.fc,n),n==this.fc&&(this.sZ=e,this.Ra=this.fc),this.QK||(n=Math.min(this.AP,n),n==this.AP&&(this.sZ=e,this.Ra=this.AP)),n=this.ie(n)),this.R7=!0,this.k(n),this.H6()},Fe.prototype.a1X=function(t){this.R7||this.De.focus(),this.R7=!1,y.NG(document,this.aeF),y.Sz(document,this.af7)},Fe.prototype.co=function(){this.De.select(),this.De.focus()};function Hr(t,i){At.call(this),this.zF=[],this.cZ=-1,this.a2s=t,this._y=i,this.NU=0,this.rX=null,this.NW=new st(0,0),i!=null&&(this.i3=new he([{name:[6,37]},{name:[5,4]}]),this.i3.parent=this,this.i3.$("select",this.zf,this)),this.u=y.z("div","imageset scrollable"),this.u.addEventListener("contextmenu",y.vA,!1)}Hr.prototype=new At,Hr.prototype.t=function(){this.i3&&this.i3.t()},Hr.prototype.zf=function(t){var i=this.i3.oe()[0],e=new z(y.E.L,!0),r={e:y.B.Sl,S9:this._y,zM:[this.cZ]};if(i==0){var n=this.rX[1][this.cZ];r.RY="rnm",e.data={e:y.B.uH,W2:"namewindow",Ub:n,VN:{f:y.E.L,o:r}}}else e.data=r,r.RY="del";this.w(e)},Hr.prototype.a86=function(){return this.NU},Hr.prototype.DJ=function(t){this.NU=t,this.rX&&this.qK()},Hr.prototype.Lf=function(t,i,e,r){this.rX=[t,i,e,r],this.qK()},Hr.prototype.qK=function(){var t=this.rX,i=t[0],e=t[1],r=t[2],n=t[3];this.zF=[],this.u.innerHTML="";var a=this.jG.bind(this),s=this.NU;s==0?y.KL(this.u,"imageset"):y.sT(this.u,"imageset");for(var l=0;l0)&&(a=l,n=s)}n!=-1&&(this.alK=n,this.j5=t.altKey||i[(n>>>1)*2]!=i[(n>>>1)*2+1],y.Jr(window,this.m4),y.so(window,this.xL))},ga.prototype.Ap=function(t){var i=this.T3,e=this.alK,r=(e>>>1)*2,n=r+1,a=y.oA(t,this.w7),s=Math.round(Math.max(0,Math.min(255,a.x-8)));i[e]=s,this.j5&&i[r]>=i[n]&&(this.j5=!1),this.j5||(i[r]=i[n]=s),this.qK(),this.w(new z(y.E.I,!1))},ga.prototype.sj=function(t){y.NG(window,this.m4),y.Sz(window,this.xL)},ga.prototype.qK=function(){var t=this.w7;y.Tv(t,255+16,16);var i=t.getContext("2d"),e=t.width,r=t.height,n=Math.round(255*y.J()),a=Math.round(8*y.J());i.translate(a,0);var s=i.createLinearGradient(0,0,n,0);s.addColorStop(0,"black"),s.addColorStop(1,"#"+["ffffff","ff0000","00ff00","0000ff"][this.r0]),i.fillStyle=s,i.fillRect(0,0,n,a);var l=this.acW,h=Lt.get(this.acw)+":";l[0].textContent=h;for(var o=0;o<4;o++){var f=this.T3[o];l[1+o].textContent=f;var u=Math.round(f*y.J());i.beginPath(),i.moveTo(u,a),i.lineTo(u,a+a),i.lineTo(u+((o&1)==0?-1:1)*a,a+a),i.closePath(),i.fillStyle="#cccccc",i.fill(),i.strokeStyle="black",i.stroke()}};function Sn(t){At.call(this),this.Fu=0,this.alt=0;var i="ai"+y.l$();this.u=y.z("span","fitem angleinput"),t&&(this.yq=y.z("label","flabel"),this.q6=t,this.u.appendChild(this.yq),this.yq.setAttribute("for",i)),this.zb=20,this.in=y.z("canvas","gsicon"),this.YV=this.in.getContext("2d"),y.Tv(this.in,this.zb*2+1,this.zb*2+1,this.YV),this.u.appendChild(this.in),y.X8(this.in,this.Fx.bind(this)),this.Pw=this.tz.bind(this),this.GD=this.JB.bind(this),this.De=y.z("input",""),this.De.setAttribute("type","text"),this.u.appendChild(this.De),this.De.setAttribute("id",i),this.De.addEventListener("change",this.Om.bind(this),!1),this.BL=y.z("span",""),this.BL.innerHTML="\xB0",this.u.appendChild(this.BL),this.k(this.Fu,this.alt)}Sn.prototype=new At,Sn.prototype.t=function(){this.yq.textContent=Lt.get(this.q6)+":"},Sn.prototype.kW=function(t){this.yq.textContent=t},Sn.prototype.q=function(){return{Fu:this.Fu,alt:this.alt}},Sn.prototype.k=function(t,i){t!=null&&(this.Fu=t),i!=null&&(this.alt=i),this.De.value=this.Fu,t=Math.PI*this.Fu/180,i=.9*this.zb*(90-this.alt)/90;var e=this.zb+.5,r=this.YV;r.clearRect(0,0,100,100),r.strokeStyle="#000000",r.beginPath(),r.arc(e,e,.9*this.zb,0,2*Math.PI),r.moveTo(e,e),r.lineTo(e+Math.cos(t)*this.zb*.9,e-Math.sin(t)*this.zb*.9),r.stroke(),r.strokeStyle="#ff0000",r.beginPath(),r.moveTo(e+Math.cos(t)*i-3,e-Math.sin(t)*i),r.lineTo(e+Math.cos(t)*i+3,e-Math.sin(t)*i),r.moveTo(e+Math.cos(t)*i,e-Math.sin(t)*i-3),r.lineTo(e+Math.cos(t)*i,e-Math.sin(t)*i+3),r.stroke()},Sn.prototype.Om=function(t){var i=parseInt(this.De.value);i=i%360,this.k(i),this.w(new z(y.E.I,!1))},Sn.prototype.Fx=function(t){y.Jr(window,this.Pw),y.so(window,this.GD),this.tz(t)},Sn.prototype.tz=function(t){var i=y.oA(t,this.in),e=i.x-this.zb,r=i.y-this.zb,n=180*Math.atan2(-r,e)/Math.PI,a=90-90*Math.min(1,Math.sqrt(e*e+r*r)/(.9*this.zb));this.k(Math.round(n),Math.round(a)),this.w(new z(y.E.I,!1))},Sn.prototype.JB=function(t){this.w(new z(y.E.I,!1)),y.NG(window,this.Pw),y.Sz(window,this.GD)};function ma(t,i){At.call(this),this.T3=0,this.YE=i,this.u=y.z("span","fitem angleinput"),t&&(this.yq=y.z("label","flabel"),this.q6=t,this.u.appendChild(this.yq)),this.in=y.z("canvas","gsicon"),this.YV=this.in.getContext("2d"),y.Tv(this.in,i,i),this.u.appendChild(this.in),y.X8(this.in,this.Fx.bind(this)),this.Pw=this.tz.bind(this),this.GD=this.JB.bind(this),this.k(0)}ma.prototype=new At,ma.prototype.t=function(){this.q6&&(this.yq.textContent=Lt.get(this.q6)+":")},ma.prototype.kW=function(t){this.yq.textContent=t},ma.prototype.q=function(){return this.T3},ma.prototype.k=function(t){this.T3=t;var i=this.in.width,e=Math.floor(t/3),r=t-3*e,n=(r+.5)*i/3,a=(e+.5)*i/3,s=this.YV,l=[.5,Math.round(i/3)+.5,Math.round(2*i/3)+.5,i-.5];s.clearRect(0,0,i,i);var h=this.YE<30;s.setLineDash([]),s.strokeStyle=h?"rgba(0,0,0,0.5)":"#000000",s.beginPath();for(var o=0;o<4;o++){var f=l[o];s.moveTo(f,0),s.lineTo(f,i),s.moveTo(0,f),s.lineTo(i,f)}if(s.stroke(),t!=9){if(!h){s.setLineDash([1,2]);var u=i*.53,p=Math.max(0,Math.min(i-u,n-u/2)),c=Math.max(0,Math.min(i-u,a-u/2));s.strokeRect(Math.round(p)+.5,Math.round(c)+.5,Math.round(u),Math.round(u))}s.fillStyle="#000000",s.beginPath(),s.arc(n,a,i/8,0,Math.PI*2),s.fill()}},ma.prototype.Fx=function(t){y.Jr(window,this.Pw),y.so(window,this.GD),this.tz(t)},ma.prototype.tz=function(t){var i=y.oA(t,this.in),e=Math.max(0,Math.min(2,Math.floor(i.x/(this.YE/3)))),r=Math.max(0,Math.min(2,Math.floor(i.y/(this.YE/3))));this.k(r*3+e)},ma.prototype.JB=function(t){this.w(new z(y.E.I,!1)),y.NG(window,this.Pw),y.Sz(window,this.GD)};function Tt(t,i,e,r){At.call(this),this.u=y.z("button","fitem"+(i?" spread":"")+(r?" bbtn":"")),this.q6=t,this.lj=e,this.t(),this.u.addEventListener("click",this.jG.bind(this),!1)}Tt.prototype=new At,Tt.prototype.t=function(){var t=this.u,i=this.q6,e=this.lj,r=Lt.get(i);r.startsWith(">16&255,S:t>>8&255,i:t&255},this.Bs()},Ve.prototype.k=function(t){this.mz=v.j.T6(t),this.Bs()},Ve.prototype.Bs=function(){var t=this.mz,i=t.U,e=t.S,r=t.i;this.sM&&(i=e=r=Math.round(v.ou(i,e,r)));var n=i<<16|e<<8|r;this.u.setAttribute("style","background-color:#"+v.v2(n))};function Nn(t){ge.call(this,t,!1,"brushbutton nopadding",16.6,10,ut.Sm,!0),this.Qc=new Ht([12,14,0],1,1e3," px",0,!0),this.Qc.$(y.E.I,this.Ck,this),this.M7.appendChild(this.Qc.u),this.RS=new Ht([12,17],0,100,"%"),this.RS.$(y.E.I,this.Ck,this),this.M7.appendChild(this.RS.u)}Nn.prototype=new ge,Nn.prototype.JJ=function(t){var i=this.u.getBoundingClientRect();this.OG(i.left,i.top+i.height)},Nn.prototype.OG=function(t,i){this.HJ();var e=new z(y.E.L,!0);e.data={e:y.B.VX,Nc:this.Jg,x:t,y:i},this.w(e)},Nn.prototype.k=function(t,i,e){this.hg=JSON.parse(JSON.stringify(t));var r=Math.floor(20*y.J()),n=Math.floor(36*y.J()),a=Math.floor(24*y.J()),s=Qt.m2(t,i,e,r,a,n);this.mJ.setAttribute("src",s),y.Hc(this.mJ,n,a);var l=t.Brsh.v;this.Qc.k(l.Dmtr.v.val),l.Hrdn!=null?(this.RS.R8(),this.RS.k(l.Hrdn.v.val)):this.RS.U3(),this.UJ.tj(-1)},Nn.prototype.tk=function(){return{list:[{t:"Objc",v:this.q()}],Xu:[],A6:[]}},Nn.prototype.q=function(){return this.hg},Nn.prototype.HJ=function(){if(!!this.lM){for(var t=[],i=[],e=this.rt,r=Math.floor(33*y.J()),n=Math.floor(40*y.J()),a=0;a0&&r.qA==null&&(r.qA=JSON.parse(JSON.stringify(at._G[e-1]))),this.ud&&this.k(this.PJ,r,this.ud)}i==this.Hv&&this.a7.s$(i.q()),this.w(new z(y.E.I,!1))},jr.prototype.JJ=function(t){var i=this.in.getBoundingClientRect(),e=new z(y.E.L,!0);e.data={e:y.B.VX,Nc:this.Jg,x:i.left,y:i.top+i.height+4},this.w(e),this.Hv.k(this.a7.sJ())},jr.prototype.k=function(t,i,e){this.ud=e,this.PJ=t;for(var r=[[13,1,0],[13,0],[12,37],[12,62]],n=this.am0,a=this.afF,s=!1,l,h=0;h<4;h++){var o={d1:h,qA:e[h]},u=jr.$m(o);if(a[h]!=u){s=!0;var f=jr.eY(null,o,this.yH,this.PJ,22,22,!1);n[h]='',a[h]=u}}s&&this.QC.KI(n,r),this.QC.k(i.d1);var u=jr.$m(i);u!=this.aiS&&jr.eY(this.YV,i,this.yH,this.PJ,30,23,!0),this.aiS=u;var p=i.d1;p==0&&(l=this.a3A),p==1&&(this.a7.k(i.qA.Clr.v),l=this.oJ),p==2&&(this.te.update(t,i.qA),l=this.g1),p==3&&(this.yi.update(t,i.qA),l=this.oG),l!=this.ML&&(this.ML!=null&&this.Jg.u.removeChild(this.ML),this.Jg.u.appendChild(l),this.ML=l)},jr.prototype.q=function(){var t={d1:this.QC.q()};return t.d1==1&&(t.qA=JSON.parse(JSON.stringify(at._G[0])),t.qA.Clr.v=this.a7.q()),t.d1==2&&(t.qA=this.te.q()),t.d1==3&&(t.qA=this.yi.q()),t},jr.$m=function(t){var i=t.d1,e=t.qA,r="empty";return i==1&&(r=v.j.T6(e.Clr.v),r=r.U+","+r.S+","+r.i),i==2&&(r=JSON.stringify(e.Grad.v)),i==3&&(r=e.Ptrn.v.Idnt.v),r},jr.eY=function(t,i,e,r,n,a,s){t==null&&(t=jr.YV);var l=Math.floor(n*y.J()),h=Math.floor(a*y.J()),o=t.canvas,f;o.width=l,o.height=h,y.Hc(o,l,h);var u=i.d1;if(u==0&&(t.fillStyle="#ffffff",t.fillRect(0,0,l,h),t.strokeStyle="#ff0000",t.lineWidth=2,t.moveTo(0,0),t.lineTo(l,h),t.moveTo(0,h),t.lineTo(l,0),t.stroke()),u==1){var p=i.qA.Clr.v;p=v.j.T6(p),t.fillStyle="#"+v.v2(p.U<<16|p.S<<8|p.i),t.fillRect(0,0,l,h)}if(u==2&&C.T7.m2(i.qA.Grad.v,l,h,0,e.GY,e.Ty,o),u==3){var c=i.qA.Ptrn.v,d;r!=null&&(d=St.tc(c,r.add.Patt)),d==null&&(d=St.tc(c,e.WB)),zr.m2(d,l,h,o)}if(s){t.beginPath(),t.strokeStyle="#000000",t.fillStyle="#ffffff",t.lineWidth=2;var g=l*.7,b=Math.floor(h*.7),m=7*y.J();t.moveTo(g,b),t.lineTo(g+m,b),t.lineTo(g+m/2,b+m/2),t.closePath(),t.stroke(),t.fill()}if(t==jr.YV)return o.toDataURL()},jr.YV=y.z("canvas").getContext("2d");function zr(t){ge.call(this,t,!1,"patternbutton",18,10,ut.AT),this.pi=null}zr.prototype=new ge,zr.prototype.WX=function(t){var i=this.rt[this.UJ.q()];this.hg={classID:"Ptrn",Nm:{t:"TEXT",v:i.name},Idnt:{t:"TEXT",v:i.id}},this.w(new z(y.E.I)),this.AG()},zr.w2=!1,zr.prototype.HJ=function(){if(!!this.lM){var t=this.rt;if(t==null||!zr.w2){var i=new z(y.E.L,!0);i.data={e:y.B.JX,S9:{url:"rsrc/basic/basic.pat"}},this.w(i),zr.w2=!0;return}for(var e=Math.floor(34*y.J()),r=Math.floor(34*y.J()),n=[],a=[],s=0;s255||r<0||r>255)&&(u=!1),u&&a.indexOf(this.Ma)==-1&&a.push(this.Ma),!u&&a.indexOf(this.Ma)!=-1&&a.length>2&&(!s||!h)&&a.splice(a.indexOf(this.Ma),1),a[0].v.Hrzn.v==a[1].v.Hrzn.v&&(a[0].v.Hrzn.v==0?a[1].v.Hrzn.v=1:a[0].v.Hrzn.v--),a.sort(function(x,M){return x.v.Hrzn.v-M.v.Hrzn.v})}else{e=Math.round(e),r=Math.round(r),e=Math.max(0,Math.min(255,e)),r=Math.max(0,Math.min(255,r));var c=this.KO.x,d=e,g=this.KO.y,b=r;if(e.002&&(this.aeN(e.data,256,256,i.mi),this.abi=i.mi),this.YV.putImageData(e,0,0),this.YV.strokeStyle="#000000",this.YV.beginPath(),this.YV.arc(this.wk.x+1,this.wk.y+1,5,0,2*Math.PI),this.YV.stroke(),this.YV.strokeStyle="#ffffff",this.YV.beginPath(),this.YV.arc(this.wk.x,this.wk.y,5,0,2*Math.PI),this.YV.stroke();var e=this.amh;this.dI.putImageData(e,0,0),this.dI.strokeStyle="#ffffff",this.dI.beginPath(),this.dI.moveTo(0,this.PH.y),this.dI.lineTo(20,this.PH.y),this.dI.lineWidth=2,this.dI.stroke()},Tr.prototype.aeN=function(t,i,e,r){for(var n=1/i,a=1/e,s=0;s0;)this.u.removeChild(this.wT.pop().u);this.fX=t;for(var e=0;e>>1;n.width=n.height=r;for(var l=[],h=0;h');me.call(this,t,l,e)}Ss.prototype=new me,Ss.bN=y.z("canvas");function ei(t,i,e,r){if(At.call(this),!!i){e==null&&(e=!1),this.cZ=0,this.agG=e,this.q6=t,this.M0=null,this.a6m=r;var n="dd"+y.l$();this.u=y.z("span","fitem ddmenu"),t&&!e&&(this.yq=y.z("label","flabel"),this.u.appendChild(this.yq),this.yq.setAttribute("for",n)),this.g4=y.z("select","bbtn"),this.g4.setAttribute("id",n),this.u.appendChild(this.g4),this.g4.addEventListener("change",this.Om.bind(this),!1),this.wT=[],this.fX=null,this.KI(i,r),this.t()}}ei.prototype=new At,ei.prototype.kW=function(t){this.q6=t,this.t()},ei.prototype.t=function(){if(this.q6!=null){var t=Lt.get(this.q6);this.agG?this.g4.setAttribute("title",t):this.yq.textContent=t+":"}this.fX&&this.KI(this.fX,this.a6m),this.k(this.cZ)},ei.prototype.q=function(){return this.cZ},ei.prototype.KI=function(t,i){y.TD(this.g4);var e=[],r=0;if(i){e.push(i[0]);for(var n=1;n'),this.ZH=new Tt(''),this.J_=new Tt(''),this.V6=new Tt(''),this.Gr=new Tt(''),this.N$=new Tt(''),this.fL=new Tt(''),this.u8=new Tt('');for(var t=[this.fR,this.ZH,this.J_,this.V6,this.Gr,this.N$,this.fL,this.u8],i=0;i'),this.$S=new Tt(''),this.Zj=new Tt(''),this.aal=new Tt(''),this.aai=new Tt(''),this.a2L=new Tt(''),this.a7z=new Tt(''),this.ba=[this.RV,this.$S,this.Zj,this.aal,this.aai,this.a2L,this.a7z];for(var i=0;i ');this.Pp=new xi(r[0],-20,20,"px"),this.Pp.$(y.E.I,this.y_,this),this.Pp.parent=this,this.aK=new xi(r[1],-20,20,"px"),this.aK.$(y.E.I,this.y_,this),this.aK.parent=this,this.aO=new xi(r[2],-20,20,"px"),this.aO.$(y.E.I,this.y_,this),this.aO.parent=this,this.Vx=new xi(r[3],-20,20,"px"),this.Vx.$(y.E.I,this.y_,this),this.Vx.parent=this,this.BT=new xi(r[4],-20,20,"px"),this.BT.$(y.E.I,this.y_,this),this.BT.parent=this,this.gD=new me([12,33],["Abc ...","... \u0623\u064A \u0628\u064A"]),this.gD.$(y.E.I,this.y_,this),this.gD.parent=this}xa.prototype=new At,xa.prototype.t=function(){this.nE.t(),this.WT.t(),this.Z$.t(),this.rj.t(),this.DX.t(),this.nV.t(),this.ql.t(),this.gD.t()},xa.prototype.k=function(t,i,e){this.T2=JSON.parse(JSON.stringify(t));var r=this.T2,n=r.dS,a=r.eS;this.fR.k(n.FauxBold!=null?n.FauxBold:!1),this.ZH.k(n.FauxItalic!=null?n.FauxItalic:!1),this.J_.k(n.FontCaps==2),this.V6.k(n.FontCaps==1),this.N$.k(n.FontBaseline==1),this.Gr.k(n.FontBaseline==2),this.fL.k(n.Underline),this.u8.k(n.Strikethrough),this.nE.k(n.Font==null?null:r.Dm[n.Font].Name,i,e);var s=n.FontSize==null?20:n.FontSize;this.WT.k(s);var l=n.Tracking;if(this.rj.k(l==null?0:l),this.Z$.k(n.Leading!=null?n.Leading:0),this.dw.k(n.AutoLeading),this.nV.k((n.VerticalScale!=null?n.VerticalScale:0)*100),this.ql.k((n.HorizontalScale!=null?n.HorizontalScale:0)*100),this.DX.k(n.BaselineShift!=null?n.BaselineShift:0),n.FillColor){var h=lt.T6(n);this.Gb.s$(Math.round(h.U)<<16|Math.round(h.S)<<8|Math.round(h.i))}else this.Gb.s$(0);for(var o=a._Direction!=null?a._Direction:0,f=lt.Wk(a),u=0;u>16&255)/255,(i>>8&255)/255,(i>>0&255)/255]},r=0;r<4;r++)e.Values[r]=Math.round(e.Values[r]*1e3)/1e3;this.T2.dS.FillColor=e,this.d5()};function Pr(){At.call(this),this.u=y.z("span","fontinput"),this.QD=null,this.Wv=null,this.L1=null,this.GP="",this.zF={},this.rp=[],this.aeP={},this.rv=!1,this.Vt=y.z("button","fitem"),this.Vt.setAttribute("style","width:9em;"),this.Vt.textContent="Family Name \u25BC",this.u.appendChild(this.Vt),y.X8(this.Vt,this.D3.bind(this)),this.hY=new At,this.hY.parent=this,this.hY.u=y.z("div","floatcont"),this.hY.u.addEventListener("keyup",this.aho.bind(this),!1),this.Ih=new Hn(6.8),this.hY.u.appendChild(this.Ih.alx()),this.Ih.parent=this.hY,this.Ih.$(y.E.I,this.pk,this);var t=y.z("div","form");this.hY.u.appendChild(t),this.bQ=new Tt(y.G6("tools/cshape",null,"autoscale"),!1,"Show Favorites Only"),this.bQ.$("click",this.a0W,this),t.appendChild(this.bQ.u),this.WH=new se([12,86],null,9),this.WH.$("input",this.ho,this),t.appendChild(this.WH.u);var i=this.a1_=new Tt([[23,6],[22,6,0]],!1,"Load OTF / TTF file from your computer",!0);i.$("click",this.aiM,this),i.u.style.marginLeft="1.5em",t.appendChild(i.u),this.eA=y.z("span","fitem imageset scrollable marged"),this.eA.style.height="30em",this.hY.u.appendChild(this.eA),this.D9=y.z("button","fitem"),this.D9.setAttribute("style","width:7em;"),this.D9.textContent="SubFamily Name \u25BC",this.u.appendChild(this.D9),y.X8(this.D9,this.D3.bind(this)),this.pZ=new At,this.pZ.parent=this,this.pZ.u=y.z("div","floatcont"),this.cF=y.z("span","fitem imageset scrollable marged"),this.pZ.u.appendChild(this.cF)}Pr.prototype=new At,Pr.prototype.aho=function(t){var i=0;if(W.be(t.code,W.DY)&&(i=-1),W.be(t.code,W.yF)&&(i=1),i!=0){var e=this.rp,r=e.length,n=this.QD.Ij()[this.L1];if(n==null&&r==0)return;var a=e.indexOf(n[0]);if(a==-1)return;a=(a+i+r)%r,this.DI(e[a],null)}},Pr.prototype.aiM=function(){var t=new z(y.E.L,!0);t.data={e:y.B.ED,ai6:".otf,.ttf,.ttc"},this.w(t)},Pr.prototype.t=function(){this.Ih.t(),this.a1_.t(),this.bQ.kW(y.G6("tools/cshape",null,"autoscale"))},Pr.prototype.a0W=function(t){this.bQ.k(!this.bQ.UX()),this.pk()},Pr.prototype.ho=function(t){this.GP=this.WH.q().toLowerCase(),this.pk()},Pr.prototype.D3=function(t){y.OZ(t);var i=t.currentTarget,e=i.getBoundingClientRect(),r=i==this.Vt,n=r?this.hY:this.pZ;if(y.WW(n.u)){this.sq(n);return}if(!(!r&&this.QD.Ij()[this.L1]==null)){var a=new z(y.E.L,!0);a.data={e:y.B.VX,Nc:n,x:e.left,y:e.top+e.height},this.w(a),r&&(this.pk(),this.WH.co())}},Pr.prototype.a0Z=function(t){var i=t.currentTarget.firstChild.nextSibling.textContent;if(t.target.tagName.toLowerCase()=="button"){var e=this.Wv.slice(0),r=e.indexOf(i);r==-1?(e=e.slice(Math.max(0,e.length-29)),e.push(i)):e.splice(r,1);var n=new z(y.E.L,!0);n.data={e:y.B.Sl,S9:ut.mj,uB:e},this.w(n),this.rv=!0,this.pk()}else this.DI(i,null),this.WH.co()},Pr.prototype.a17=function(t){this.DI(null,t.currentTarget.firstChild.textContent)},Pr.prototype.DI=function(t,i){var e=t==null?this.pZ:this.hY,r=this.QD;if(t==null)t=r.Ij()[this.L1][0];else{var n=r.MW(t),a=r.Ij()[this.L1];i=hi.u5(n,a?a[1]:"regular")}var s=r.TS(t,i)[2];this.k(s,r),this.w(new z(y.E.I,!1)),this.sq(e),this.pk()},Pr.prototype.sq=function(t){var i=new z(y.E.L,!0);i.data={e:y.B.Qp,Nc:t},this.w(i)},Pr.prototype.q=function(){return this.L1},Pr.prototype.k=function(t,i,e){var r=this.QD;if(t!=null?this.L1=t:t=this.L1,this.QD=i,this.Wv=e,t!=null){var n=i.Ij()[t],a,s;if(n==null)a="- "+t,s="-------";else{a=n[0],s=n[1];var l=i.MW(a);l.sort(hi.a6Z);var h=l.indexOf(s),o=this.a17.bind(this);this.cF.textContent="";for(var f=0;f0&&l[0].toLowerCase().indexOf(this.GP)==-1?o=!1:this.Ih.x3(l)?this.bQ.UX()&&!h&&(o=!1):o=!1;var f=this.zF[a];if(f==null){var f=this.J5(l,a,n,!0);this.zF[a]=f,this.eA.appendChild(f)}o&&this.rp.push(a);var u=o?"":"display:none; ",p="opacity: "+(h?"1":"0.2");t&&t[0]==a&&(u+="background-color:rgba(0,0,0,0.13);",e=f),this.aeP[a]!=u+p&&(f.setAttribute("style",u),f.firstChild.setAttribute("style",p),this.aeP[a]=u+p)}e&&!this.rv&&(this.eA.scrollTop=e.offsetTop-210),this.rv=!1},Pr.prototype.J5=function(t,i,e,r){var n=y.z("div","fontitem"),a="";n.addEventListener("click",e,!1),r&&n.appendChild(y.z("button","star"));var s=y.z("span","label");s.setAttribute("title",i),s.textContent=i,n.appendChild(s);var l=y.J(),h=1/l,o=hi.Ut*h,f=hi.lH*h;1>>e&1)==1;this.rh[e]=r,i[e].k(r)}},Hn.prototype.alx=function(){return this.nx},Hn.prototype.t=function(){this.u.textContent=Lt.get([25,1,0])+" \u25BC",this.NI.t(),this.aem.t()},Hn.prototype.a8g=function(t){var i=this.u.getBoundingClientRect(),e=new z(y.E.L,!0);e.data={e:y.B.VX,Nc:this.Jg,x:i.left,y:i.top+i.height,q1:!1},this.w(e)},Hn.prototype.x3=function(t){if(this.kd[t[4]]==0)return!1;for(var i=0;i>>i&1)==0)return!1;return!0},Hn.prototype.agH=function(t){for(var i=t.target.q(),e=this.CS,r=this.kd,n=0;n',!1,[12,51]),this.zw.$("click",this.WK,this),this.a3o=new fe(""),i?(this.u.appendChild(this.zw.u),this.u.appendChild(this.a3o.u),this.zw.V2()):this.u.appendChild(a.u),this.ji=new xi("DPI",0,0,null,3,!1,!0,4),t&&r==null&&(y.Rf(this.u),this.u.appendChild(this.ji.u)),this.ji.$(y.E.I,this.WK,this),this.w8=new Ft([12,23,1]),this.w8.$(y.E.I,this.WK,this),e&&(y.Rf(this.u),this.u.appendChild(this.w8.u)),y.Rf(this.u)}Kr.prototype=new At,Kr.prototype.afE=function(){this.KM=!1,this.ZS.q()==0&&(this.ZS.k(3),this._O())},Kr.prototype.a0p=function(){this.KM=!0},Kr.prototype.adn=function(t){this.zw.k(t)},Kr.prototype.t=function(){this.iG.t(),this.DG.t(),this.ji.t(),this.zw.t(),this.w8.t()},Kr.prototype.aml=function(t){var i=this.j$.x;this.j$.x=this.j$.y,this.j$.y=i,this._O(),this.w(new z(y.E.I,!1))},Kr.prototype.WK=function(t){if(t.target==this.ZS&&!this.KM&&this.ZS.q()==0&&this.ZS.k(3),t.target==this.ZS||t.target==this.w8){this._O();return}t.target==this.zw&&t.target.k(!t.target.q());var i=this.bf,e=parseFloat(this.iG.q());isNaN(e)&&(e=1);var r=parseFloat(this.DG.q());isNaN(r)&&(r=1);var n=this.ZS.q();if(this.KM){var a=this.bC;n==1&&(e=this.bf.x*(e/100),r=this.bf.y*(r/100));var s=[1,1,25.4/a,1/a][n];if(e/=s,r/=s,this.w8.q()&&(e+=this.bf.x,r+=this.bf.y),t.target==this.ji){var l=this.ji.q(),h=l/a;e*=h,r*=h,a=l}this.zw.q()&&(t.target==this.iG?r=e*(i.y/i.x):e=r*(i.x/i.y)),e=Math.max(Math.abs(e),1),r=Math.max(Math.abs(r),1)}else{var a=this.aH;if(t.target==this.ji)a=this.ji.q();else{this.zw.q()&&(t.target==this.iG?r=e*(i.y/i.x):e=r*(i.x/i.y));var s=[1,1,25.4/a,1/a][n],o=e/(n==1?100:i.x*s);a=a/o}e=i.x,r=i.y}this.j$=new st(Math.round(e),Math.round(r)),this.bC=a,this._O(),this.w(new z(y.E.I,!1))},Kr.prototype.a5z=function(t){this.ZS.k(t),this._O()},Kr.prototype.k=function(t,i){this.bf=t.clone(),this.j$=t.clone(),i!=null&&(this.aH=i,this.bC=i),this._O()},Kr.prototype._O=function(){for(var t=this.j$.x,i=this.j$.y,e=this.bC,r=(t/i).toFixed(3);r.charAt(r.length-1)=="0";)r=r.substring(0,r.length-1);r.charAt(r.length-1)=="."&&(r=r.substring(0,r.length-1));var n=" "+r+" : 1",a=function(f,u){for(;u!=0;){var p=u;u=f%u,f=p}return f},s=a(t,i);Math.min(t,i)/s<10&&(n=" "+Math.round(t/s)+" : "+Math.round(i/s)),this.a3o.k(n),this.w8.q()&&(t-=this.bf.x,i-=this.bf.y);var l=this.ZS.q();l==1?this.KM?(t=100*t/this.bf.x,i=100*i/this.bf.y):t=i=100*this.aH/this.bC:(t=Math.round(t),i=Math.round(i));var h=[1,1,25.4/e,1/e][l];t*=h,i*=h;var o=l==1||l==3?2:0;this.iG.CZ(o),this.DG.CZ(o),this.iG.k(t),this.DG.k(i),this.ji.k(e)},Kr.prototype.q=function(){return this.j$.clone()},Kr.prototype.av=function(){return this.bC};function Za(){At.call(this),this.BZ=0,this.MH=[0,0,1,1,100,100],this.u=y.z("span","fitem"),this.zv=new ei(null,[[12,89,0],[12,89,1],[12,89,2]]),this.u.appendChild(this.zv.u),this.zv.$(y.E.I,this.WK,this),this.iG=new xi("W",0,0,null,0,!1,!0),this.u.appendChild(this.iG.u),this.iG.$(y.E.I,this.WK,this),this.DG=new xi("H",0,0,null,0,!1,!0),this.u.appendChild(this.DG.u),this.DG.$(y.E.I,this.WK,this),this.k({wV:0,x:0,y:0})}Za.prototype=new At,Za.prototype.t=function(){y.$d(this.iG,this.DG),this.zv.t()},Za.prototype.WK=function(t){if(t.target==this.zv){var i=this.q(),e=this.MH;e[this.BZ*2]=i.x,e[this.BZ*2+1]=i.y,this.BZ=i.wV,this.k({wV:i.wV,x:e[i.wV*2],y:e[i.wV*2+1]})}this.iG.q()<1&&this.iG.k(1),this.DG.q()<1&&this.DG.k(1),this.w(new z(y.E.I,!1))},Za.prototype.k=function(t){this.zv.k(t.wV),this.iG.k(t.x),this.DG.k(t.y),t.wV==0?(this.iG.U3(),this.DG.U3()):(this.iG.R8(),this.DG.R8())},Za.prototype.q=function(){return{wV:this.zv.q(),x:this.iG.q(),y:this.DG.q()}};function fe(t,i){At.call(this),this.q6=t,this.u=y.z("span","labelitem fitem"+(i?" spread":"")),this.t()}fe.prototype=new At,fe.prototype.k=function(t){this.u.textContent=t},fe.prototype.q=function(){return this.u.textContent},fe.prototype.R8=function(){this.u.removeAttribute("disabled")},fe.prototype.U3=function(){this.u.setAttribute("disabled","")},fe.prototype.kW=function(t){this.u.textContent=t},fe.prototype.t=function(){this.u.textContent=Lt.get(this.q6)},fe.prototype.m1=function(){return this.q6};function Ca(t){At.call(this),this.u=y.z("span",""),this.a3_=t,this.Dw=new oe("Off X",-100,100,t?"%":"px",0,!1),this.mP=new oe("Off Y",-100,100,t?"%":"px",0,!1),this.Dw.$(y.E.I,this.WK,this),this.mP.$(y.E.I,this.WK,this),this.u.appendChild(this.Dw.u),this.u.appendChild(this.mP.u)}Ca.prototype=new At,Ca.prototype.t=function(){this.Dw.t(),this.mP.t()},Ca.prototype.WK=function(t){this.w(new z(y.E.I,!1))},Ca.prototype.a2w=function(t){this.Dw.k(t.x),this.mP.k(t.y)},Ca.prototype.al2=function(){return new st(this.Dw.q(),this.mP.q())},Ca.prototype.k=function(t){var i=t.Hrzn.v,e=t.Vrtc.v;this.a3_&&(i=i.val,e=e.val),this.Dw.k(i),this.mP.k(e)},Ca.prototype.q=function(){var t=this.Dw.q(),i=this.mP.q();return this.a3_?{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:t}},Vrtc:{t:"UntF",v:{type:"#Prc",val:i}}}:{classID:"Pnt",Hrzn:{v:t,t:"doub"},Vrtc:{v:i,t:"doub"}}};function xi(t,i,e,r,n,a,s,l,h){Fe.call(this,t,i,e,r,n,!0,a,h),y.KL(this.u,"rangedropinput"),this.u.appendChild(this.yq),this.De.setAttribute("style","width:"+(l||3.3)+"em"),this.u.appendChild(this.De),this.aaG=y.z("span","rangecont"),this.aaG.appendChild(this.oq),this.xD=y.z("button"),this.xD.innerHTML="\u25BC",y.X8(this.xD,this.a3c.bind(this)),s!=!0&&this.u.appendChild(this.xD),this.b1=new At,this.b1.u=this.aaG}xi.prototype=new Fe,xi.prototype.a3c=function(t){if(!y.WW(this.b1.u)){t.stopPropagation();var i=this.u.getBoundingClientRect();this.oq.setAttribute("style","width:"+i.width+"px;");var e=new z(y.E.L,!0);e.data={e:y.B.VX,Nc:this.b1,x:i.left,y:i.top+i.height},this.w(e)}};function Ma(){At.call(this),this.u=y.z("span","fitem strokebutton"),this.P1=[[null,null,null,""],[null,0,null,"4 2"],[1,1,null,"0 2"]],this.dB=JSON.parse(JSON.stringify(at.bW.default)),this.Ht=y.z("button"),this.u.appendChild(this.Ht),this.Ht.addEventListener("click",this.JJ.bind(this),!1);var t=y.z("canvas","gsicon");this.YV=t.getContext("2d"),this.Ht.appendChild(t);var i=y.z("span");i.textContent=" \u25BC",this.Ht.appendChild(i),this.Jg=new At,this.Jg.parent=this,this.Jg.u=y.z("div","floatcont form");var e=this.Jg.u;e.setAttribute("style","width: 14em;"),this.zF=[new ei([12,40],[[19,5,2],[19,5,1],[19,5,0]]),new me([19,9,0],['','','']),new me([19,9,1],['','','']),new se([19,9,2])];for(var r=0;r',!1,e[r]);n.$("click",this.aj8,this),this.u.appendChild(n.u),this.jF.push(n)}this.jF[0].V2()}ks.prototype=new At,ks.prototype.q=function(){return this.Ta[this.CF]},ks.prototype.k=function(t){this.CF=this.Ta.indexOf(t);for(var i=0;i';var t=this.amb,i=this.adj;y.Hc(this.e.firstChild,t,i)},Ja.prototype.q=function(){return this.BR[this.al]},Ja.prototype.k=function(t){this.al=this.BR.indexOf(t),this.AG()};function Ls(t,i,e){At.call(this),t==null&&(t=!1),i==null&&(i=!1),e==null&&(e=!1),this.a2d=i,this.mD=null,this.tX=new Ja([12,22],e),this.tX.parent=this,this.tX.$(y.E.I,this.d5,this),this.GF=new ei([22,0],[[22,4,0],[22,4,1]]),this.GF.$(y.E.I,this.d5,this);var r=t?xi:Ht;this.pw=new r([22,1],-100,100,"%"),this.yA=new r("Horizontal Distortion:",-100,100,"%"),this.$A=new r("Vertical Distortion:",-100,100,"%"),this.pw.parent=this.yA.parent=this.$A.parent=this,this.pw.$(y.E.I,this.d5,this),this.yA.$(y.E.I,this.d5,this),this.$A.$(y.E.I,this.d5,this)}Ls.prototype=new At,Ls.prototype.t=function(){this.tX.t(),this.GF.t(),this.pw.t();var t=this.a2d?1:100;this.yA.kW(Lt.get([22,2]).substring(0,t)+":"),this.$A.kW(Lt.get([22,3]).substring(0,t)+":")},Ls.prototype.d5=function(){var t=this.mD,i=this.tX.q(),e=t.warpStyle.v.warpStyle;i=="warpCustom"?v.mD.SL(v.mD.ij(t),t):delete t.customEnvelopeWarp,t.warpStyle.v.warpStyle=this.tX.q(),t.warpRotate.v.Ornt=["Hrzn","Vrtc"][this.GF.q()],t.warpValue.v=this.pw.q(),t.warpPerspective.v=this.yA.q(),t.warpPerspectiveOther.v=this.$A.q(),i=="warpNone"||i=="warpCustom"?(t.warpValue.v=0,t.warpPerspective.v=0,t.warpPerspectiveOther.v=0):(e=="warpNone"||e=="warpCustom")&&(t.warpValue.v=50),this.w(new z(y.E.I,!1)),this.k(t)},Ls.prototype.q=function(t){return JSON.parse(JSON.stringify(this.mD))},Ls.prototype.k=function(t){this.mD=JSON.parse(JSON.stringify(t)),this.tX.k(t.warpStyle.v.warpStyle),this.GF.k(t.warpRotate.v.Ornt=="Hrzn"?0:1),this.pw.k(t.warpValue.v),this.yA.k(t.warpPerspective.v),this.$A.k(t.warpPerspectiveOther.v);for(var i=t.warpStyle.v.warpStyle,e=i=="warpNone"||i=="warpCustom",r=[this.GF,this.pw,this.yA,this.$A],n=0;n=1?n={Ww:r,rect:e.ym}:n=v.NP(r,e.ym,t),this.th.push(n)}},ue.prototype.JD=function(){clearTimeout(this.a8n)},ue.prototype.U5=function(){if(!(this.jV==null||!y.WW(this.ob))){var t=this.aaD,i=this.ob.width,e=this.ob.height,r,n;(t==null||t.width!=i||t.height!=e)&&(t=this.aaD=this.YV.createImageData(i,e),console.log("creating image data"));var a=this.jV[this.vp],s=this.th[this.vp],l=this.a;if(l.F<=1){var h=s.rect.clone();h.x=l.c.x+Math.floor((l.xX.Z-s.rect.Z)/2),h.y=l.c.y+Math.floor((l.xX.h-s.rect.h)/2),r=s.Ww,n=h}else{var o=l.Ze(),u=l.yO(),f=new et(0,0,o.Z*l.F,o.h*l.F);f.x=o.x*l.F+u.x,f.y=o.y*l.F+u.y,(l.YQ==null||l.YQ.length!=o.M()*4)&&(l.YQ=v.R(o.M()*4)),(l.Su==null||l.Su.length!=f.M()*4)&&(l.Su=v.R(f.M()*4)),v.XB(l.YQ,0),v.BP(s.Ww,s.rect,l.YQ,o),v.scale.sI(l.YQ,o.Z,o.h,l.Su,f.Z,f.h,l.F),r=l.Su,n=f}var u=l.yO();v.RK(t.data,l.xX.Z,l.xX.h,8,-u.x,-u.y),v.N.DO("norm",r,n,t.data,l.xX,l.xX,1),this.YV.setTransform(1,0,0,1,0,0),this.YV.putImageData(t,0,0),l.F<1&&(u=n);var p=u.x,c=u.y,d=u.Z,g=u.h;this.YV.clearRect(p,c,-1e3,g),this.YV.clearRect(p+d,c,1e3,g),this.YV.clearRect(p-1e3,c,d+2e3,-1e3),this.YV.clearRect(p-1e3,c+g,d+2e3,1e3);var b=ue.na(l.F,"#ffffff");this.YV.putImageData(b,0,l.xX.h-b.height)}},ue.bm={},ue.na=function(t,i){var e="z"+t+","+i,r=ue.bm[e];if(r)return r;var n=Math.round(50*y.J()),a=Math.round(18*y.J()),s=y.z("canvas"),l=s.getContext("2d");s.width=n,s.height=a,l.fillStyle="rgba(1,1,1,1)",l.fillRect(0,0,n,a),l.font=Math.round(11*y.J())+"px monospace",l.fillStyle=i;var h=t*100;h<100&&(h=h.toFixed(2)),h=h+"%";var o=l.measureText(h).width;return l.fillText(h,(n-o)/2,Math.round(a*.7)),r=ue.bm[e]=l.getImageData(0,0,n,a),r},ue.prototype.Tt=function(){var t=this.jV,i=t.length,e=this.vp,r=this.jV[e],n=(e+1)%i;if(this.U5(),i!=1&&t[n].ym.Qn(r.ym)){var a=r._l?parseInt(r._l.split(",").pop()):30;a==0&&(a=16),n==0&&this.gY++,(this.Zq==0||this.gY1&&(this.a.F=1,this.a.c.Oh(0,0),this.U5()),this.Vu&&this._z==this.ob&&!this.c4&&this.w(new z("mouseup"))},ue.prototype.fJ=function(){return this.a.PY(this.NW.x,this.NW.y)};function fn(){At.call(this),this.B7=null,this.aa=null,this.g5=null,this.VQ=null,this.a9P="",this.p_=[],this.uk=0,this.vW=[],this._7=0,this.yH=null;var t=this.u=y.z("div",""),i=this.acN=y.z("div","form");i.setAttribute("style","line-height:0; margin-bottom:0.5em;"),t.appendChild(i);var e=this.Il=y.z("span");i.appendChild(e),e.setAttribute("style","font-size:1.2em; font-weight:bold; margin-right:3em;");var r=this.a9x=new Ft([25,2,0]);r.k(!0),i.appendChild(r.u),r.$(y.E.I,this.nF,this);var n=this.Gu=new Ft([25,2,1]);n.k(!1),i.appendChild(n.u),n.$(y.E.I,this.nF,this);var a=new fe(" ");i.appendChild(a.u);var s=this.op=new se([25,1,1]);i.appendChild(s.u),s.$(y.E.I,this.nF,this),this.Ih=new Hn(14),this.Ih.aaq(3),i.appendChild(this.Ih.u),this.Ih.parent=this,this.Ih.$(y.E.I,this.aa1,this);var l=this.aff=new Tt([25,1,2],null,null,!0);i.appendChild(l.u),l.$("click",this.$a,this),this.alW=this.a4F.bind(this),this.KG=y.z("div","svggallery scrollable"),t.appendChild(this.KG),this.KG.addEventListener("scroll",this.a5_.bind(this))}fn.prototype=new At,fn.prototype.AK=function(t){this.amD=t},fn.prototype.t=function(){this.Il.textContent=Lt.get([25,0]),this.Ih.t(),this.a9x.t(),this.Gu.t(),this.op.t(),this.aff.t()},fn.prototype.l9=function(t,i){i-=26,this.B7=new st(t,i),this.acN.setAttribute("style","width:"+t+"px"),this.KG.setAttribute("style","width:"+t+"px; height:"+i+"px"),y.WW(this.u)&&this.nF()},fn.prototype.k=function(t){this.aa=t,this.nF()},fn.prototype.a5_=function(t){var i=this.KG;i.scrollTop+i.clientHeight+10>=i.scrollHeight&&this.nF(!0)},fn.prototype.aa1=function(t){this.g5=null,this.nF()},fn.prototype.a4F=function(t){if(!(Date.now()-this._7<2e3)){this._7=Date.now(),this.uk=this.vW.indexOf(t.currentTarget);var i=this.Cp(this.aa.x,this.aa.y);if(i[1]){var e=i[1].largeImageURL,r=new XMLHttpRequest;r.responseType="arraybuffer",r.open("GET",e,!0),r.onload=this.a7Y.bind(this),r.send();return}this.CI(i)}},fn.prototype.a7Y=function(t){var i=t.target.response,e=ft.Xh(i),r=ft.$I(e),n=r.xo(i),a=this.Cp(this.aa.x,this.aa.y,[i,n[0].ym.Z,n[0].ym.h]);this.CI(a)},fn.prototype.CI=function(t){var i=t[0],e=ft.Xh(i),r=ft.$I(e),n=new Pt("template.psd");r.xo(i,n);var a=new z("tempready",!0);a.data={EA:n},this.w(a)},fn.prototype.$a=function(t){var i=t.target;this.p_=[],this.nF()},fn.prototype.alk=function(t){console.log(t.target.response);var i=JSON.parse(t.target.response);this.VQ=i.hits,this.nF()},fn.prototype.nF=function(t){if(!(this.aa==null||this.B7==null||this.amD==null)&&!(this.B7.x<=0)){var i=this.aa.x,e=this.aa.y;if(!(Math.min(i,e)<50)&&(t!=!0&&(this.vW=[],y.TD(this.KG),this.KG.scrollTop=0),!(this.vW.length>300))){var r=Math.min(1,300/Math.max(i,e)),n=this.B7.clone();n.x-=20;var a=Math.max(1,Math.floor(n.x/(i*r))),s=Math.max(1,Math.ceil(n.y/(e*r)));r=n.x/a/i;var l=a*s;if(this.g5==null){var h=this.amD.SN.Ij();this.g5=[];for(var o in h){var f=h[o],u=f[3];!this.Ih.x3(f)||f[5]==null||f[5].slice(0,2)=="gf"||this.g5.push(f)}this.g5.length==0&&this.g5.push(h["AlibabaPuHuiTi-Regular"])}var p=this.Gu.q(),c=this.op.q().trim();if(this.op.b0(p),p&&(this.VQ==null||c!=this.a9P)){var d=new XMLHttpRequest,g="https://pixabay.com/api/?image_type=photo"+(c==""?"":"&q="+encodeURIComponent(c))+"&per_page=200&page=1&key=10554583-a5eacb61c2e61105fdfb6eb88";c==""&&(g+="&safesearch=true"),d.open("GET",g,!0),d.onload=this.alk.bind(this),d.onerror=function(k){console.log(k.target.response)},d.send(),this.a9P=c;return}r*=(i*r-5)/(i*r);for(var b=this.vW.length,m=0;m