11634 lines
1.7 MiB

(function(){function fG(){this.wV={};this.gD={}}fG.A2=[];fG.Iq=function(Z){var S=fG.A2;if(S.length!=0){var b=new d(s.E.J1);
for(var D=0;D<S.length;D++)S[D].m(b)}window.requestAnimationFrame(fG.Iq)};window.requestAnimationFrame(fG.Iq);
fG.prototype.vw=function(Z){var S=this.wV[Z];if(S==null)return!1;return S.length>0};fG.prototype.addEventListener=function(Z,S){this.i(Z,S,null)};
fG.prototype.i=function(Z,S,b){if(this.wV[Z]==null){this.wV[Z]=[];this.gD[Z]=[]}this.wV[Z].push(S);this.gD[Z].push(b);
if(Z==s.E.J1){var Y=fG.A2;if(Y.indexOf(this)==-1)Y.push(this)}};fG.prototype.removeEventListener=function(Z,S){var b=this.wV[Z];
if(b==null)return;var Y=b.indexOf(S);if(Y<0)return;var P=this.gD[Z];b.splice(Y,1);P.splice(Y,1);if(Z==s.E.J1&&b.length==0){var w=fG.A2;
w.splice(w.indexOf(this),1)}};fG.prototype.m=function(Z){Z.currentTarget=this;if(Z.target==null)Z.target=this;
var S=this.wV[Z.type];if(S==null)return;var b=this.gD[Z.type];for(var D=0;D<S.length;D++){if(b[D]==null)S[D](Z);
else S[D].call(b[D],Z)}};function U(){this.t4={};this.s4=0;this.sX();window.__kb=this}U.t0=null;U.prototype.sX=function(){var Z=navigator.keyboard;
if(Z&&window.top==window.self)Z.getLayoutMap().then(function(S){U.t0=S})};U.prototype.reset=function(){this.t4={};
this.s4=0};U.prototype.hL=function(Z){this.s4++;this.t4[Z]=!0};U.prototype.r4=function(Z){this.s4--;
delete this.t4[Z];if(this.s4<=0||U.iQ(Z,U.OC))this.reset()};U.prototype.q=function(Z){for(var D=0;D<Z.G7.length;
D++)if(this.t4[Z.G7[D]])return!0;return!1};U.prototype.sh=function(){var Z=this,S=Z.q(U.Lo)?10:1,b=0,Y=0;
if(Z.q(U.XU))b=-S;if(Z.q(U.RD))b=S;if(Z.q(U.ne))Y=-S;if(Z.q(U.BM))Y=S;return new ar(b,Y)};U.prototype.iP=function(){var Z=this,S=U.cF;
for(var D=0;D<10;D++)if(Z.q(S[D]))return D;return-1};U.iQ=function(Z,S){return S.G7.indexOf(Z)!=-1};
U.KE=function(Z){var S=Z.code,P=!1;if(S=="")return!1;var b=U.iQ,Y=U.cF.concat([U.G6,U.Zm,U.FO,U.U6]);
for(var D=0;D<Y.length;D++)if(b(S,Y[D]))P=!0;if(Z.altKey&&!Z.shiftKey&&!Z.ctrlKey&&P)return!1;return U.GN.indexOf(S)==-1||Z.shiftKey&&(S=="F5"||S=="F6")};
U.ai8=function(Z){var S=Z.code;return S!=""&&(U.GN.indexOf(S)==-1||Z.shiftKey&&(S=="F5"||S=="F6"))};
U.kq=function(Z){if(typeof Z=="string")return Z;var S=navigator.platform.toUpperCase().indexOf("MAC")>=0;
if(Z==null)return"";var b=[];for(var D=0;D<Z.length;D++){var Y=Z[D].EW?Z[D].EW:Z[D];if(S&&Z[D].us)Y=Z[D].us;
b.push(Y)}if(S||b.length==1)return b.join(" + ");else{var P=b.pop();return b.join("+")+" + "+P}};U.GN="ZoomToggle BrightnessDown BrightnessUp AudioVolumeMute AudioVolumeDown AudioVolumeUp LaunchApplication1 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Enter Shift Escape KeyV".split(" ");
U.sA=function(Z){var S=Z.code,b=U.t0;if(b&&b.get(S)){var Y={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},P=b.get(S).toLowerCase(),w=P.charCodeAt(0);
if(97<=w&&w<=122){var f="Key"+P.toUpperCase();S=f}else if(Y[P])S=Y[P];return S}var Y={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},P=Z.key.toLowerCase(),w=P.charCodeAt(0);
if(P.length==1){if(97<=w&&w<=122){var f="Key"+P.toUpperCase();S=f}else if(Y[P])S=Y[P]}if(P=="control"&&S!="")S="ControlLeft";
return S};U.a6J={nm:"No Touch",G7:["NoTouch"]};U.n5={EW:"Enter",G7:["Enter","NumpadEnter"]};U.Lo={EW:"Shift",us:"\u21E7",G7:["ShiftLeft","ShiftRight"]};
U.OC={EW:"Meta",G7:["MetaLeft","MetaRight","OSLeft","OSRight"]};U.cD={EW:"Ctrl",us:"\u2318",G7:"ControlLeft ControlRight MetaLeft MetaRight OSLeft OSRight".split(" ")};
U.G_={EW:"Alt",us:"\u2325",G7:["AltLeft","AltRight"]};U.acw={EW:"CtrlOrAlt",G7:U.cD.G7.concat(U.G_.G7)};
U.eZ={EW:"Escape",G7:["Escape"]};U.Ah={EW:"Space",G7:["Space"]};U.Ni={EW:"Tab",G7:["Tab"]};U.a4M={EW:"Home",G7:["Home"]};
U.abo={EW:"End",G7:["End"]};U.XU={EW:"Left",G7:["ArrowLeft"]};U.ne={EW:"Up",G7:["ArrowUp"]};U.RD={EW:"Right",G7:["ArrowRight"]};
U.BM={EW:"Down",G7:["ArrowDown"]};U.G6={EW:"+",G7:["NumpadAdd","Equal"]};U.Zm={EW:"-",G7:["NumpadSubtract","Minus","Slash"]};
U.Re={EW:";",G7:["Semicolon"]};U.a9v={EW:"Dead",G7:["Dead"]};U.akv={EW:"=",G7:["Equal"]};U.pR={EW:"Backspace",G7:["Backspace"]};
U.Qz={EW:"Delete",G7:["Delete"]};U.aku={EW:"Backslash",G7:["Backslash","IntlBackslash"]};U.aeT={EW:"Backquote",G7:["Backquote"]};
U.FO={EW:"[",G7:["BracketLeft"]};U.U6={EW:"]",G7:["BracketRight"]};U.fw={EW:".",G7:["Period"]};U.af9={EW:",",G7:["Comma"]};
U.rU={EW:"'",G7:["Quote"]};U.U={EW:"A",G7:["KeyA"]};U.I_={EW:"B",G7:["KeyB"]};U.C2={EW:"C",G7:["KeyC"]};
U.Iy={EW:"D",G7:["KeyD"]};U.E={EW:"E",G7:["KeyE"]};U.Gu={EW:"F",G7:["KeyF"]};U.ZX={EW:"G",G7:["KeyG"]};
U.mE={EW:"H",G7:["KeyH"]};U.fF={EW:"I",G7:["KeyI"]};U.Rj={EW:"J",G7:["KeyJ"]};U.EJ={EW:"K",G7:["KeyK"]};
U.lq={EW:"L",G7:["KeyL"]};U.g1={EW:"M",G7:["KeyM"]};U.pk={EW:"N",G7:["KeyN"]};U.Vd={EW:"O",G7:["KeyO"]};
U.Rz={EW:"P",G7:["KeyP"]};U.jF={EW:"Q",G7:["KeyQ"]};U.KV={EW:"R",G7:["KeyR"]};U.sG={EW:"S",G7:["KeyS"]};
U.VW={EW:"T",G7:["KeyT"]};U.mf={EW:"U",G7:["KeyU"]};U.WR={EW:"V",G7:["KeyV"]};U.ao9={EW:"W",G7:["KeyW"]};
U.uG={EW:"X",G7:["KeyX"]};U.agQ={EW:"Y",G7:["KeyY"]};U.ty={EW:"Z",G7:["KeyZ"]};U.tH={EW:"0",G7:["Numpad0","Digit0"]};
U.Pg={EW:"1",G7:["Numpad1","Digit1"]};U.ajZ={EW:"2",G7:["Numpad2","Digit2"]};U.a4O={EW:"3",G7:["Numpad3","Digit3"]};
U.anF={EW:"4",G7:["Numpad4","Digit4"]};U.a8k={EW:"5",G7:["Numpad5","Digit5"]};U.anZ={EW:"6",G7:["Numpad6","Digit6"]};
U.a8q={EW:"7",G7:["Numpad7","Digit7"]};U.ajE={EW:"8",G7:["Numpad8","Digit8"]};U.ahP={EW:"9",G7:["Numpad9","Digit9"]};
U.cF=[U.tH,U.Pg,U.ajZ,U.a4O,U.anF,U.a8k,U.anZ,U.a8q,U.ajE,U.ahP];U.afu={EW:"F1",G7:["F1"]};U.ajn={EW:"F2",G7:["F2"]};
U.aiK={EW:"F3",G7:["F3"]};U.a9W={EW:"FF",G7:["F4"]};U.ua={EW:"F5",G7:["F5"]};U.ajm={EW:"F6",G7:["F6"]};
U.a6E={EW:"F7",G7:["F7"]};U.a86={EW:"F8",G7:["F8"]};U.a8E={EW:"F9",G7:["F9"]};U.aat={EW:"F10",G7:["F10"]};
U.alA={EW:"F11",G7:["F11"]};U.a3g={EW:"F12",G7:["F12"]};function a2(){fG.call(this);this.tM={};this.Ug={};
this.amb=0;this.aij={};this.sd=[];this.a5u=0;a2.hs=this}a2.prototype=new fG;a2.ao0=function(Z,S){var D=0,b=a2.HF;
while(D<b.length){if((S>>>D&1)==1)break;D++}if(S==0||b[D][1]==""){if((S&15)!=0&&a2._V(Z,[33,126])>.7)D=0;
else if(S==0)D=0;else{D=0}}return b[D][1]};a2.a6=120;a2.wk=20;a2.cols=16;a2.o9=function(Z){var S=Z.name.postScriptName;
if(S==null)return null;return S.replace(/ /g,"-")};a2.lJ=function(Z){var S=Z.name,b=S.typoFamilyName?S.typoFamilyName:S.fontFamily,Y=S.typoSubfamilyName?S.typoSubfamilyName:S.fontSubfamily,P=a2.aih,w=b.toLowerCase();
for(var D=0;D<P.length;D++){if(P[D]=="roman")continue;if(w.endsWith(" "+P[D])||w.endsWith("-"+P[D])){var f=b.length-P[D].length,h=b.slice(f);
b=b.slice(0,f-1);if(h!=""){if(Y=="Regular"||Y==b+" Regular")Y=h;else Y=h+" "+Y}break}}var Q="BPdots,Baloo,Diner,EB Garamond Initials,Encode Sans Semi Condensed,Encode Sans Semi Expanded,Changa,HVD Poster,IM FELL DW,IM FELL Double,IM FELL English,IM FELL FLOWERS,IM FELL French Canon,IM FELL Great Primer,itsadzoke,JUICE,Lacuna,Latin Modern Mono,Latin Modern Sans,Latin Modern Roman,Latinia,Libre Barcode,Libre Caslon,Londrina,Panefresco,UnifrakturMaguntia,WC Rhesus,WC Sold Out,WC Wunderbach,Walkway".split(",");
for(var D=0;D<Q.length;D++)if(b.startsWith(Q[D])){var h=b.slice(Q[D].length);b=Q[D];if(h.startsWith(" ")||h.startsWith("-"))h=h.slice(1);
if(h!=""){if(Y=="Regular")Y=h;else Y=h+" "+Y}break}var e={"Caudex-BoldItalic":"Bold Italic","Comfortaa-Light":"Light","Comfortaa-Medium":"Medium","Comfortaa-SemiBold":"SemiBold",DevroyeSCOSF:"Regular SCOSF",DevroyeUnicode:"Regular Unicode","LeagueScriptThin-Regular":"Regular","Monda-Bold":"Bold","Nobile-Bold":"Bold","Oswald-BoldItalic":"Bold Italic","Oswald-HeavyItalic":"Heavy Italic","Oswald-LightItalic":"Light Italic","Oswald-MediumItalic":"Medium Italic","Oswald-RegularItalic":"Regular Italic","PaloAlto-Italic":"Heavy Italic"},l=e[a2.o9(Z)];
if(l)Y=l;return[b,Y]};a2.prototype.anR=function(Z){var S=this.tO();for(var b in S)if(S[b][0]==Z)this.NI(b)};
a2.prototype.NI=function(Z,S){if(this.tM[Z])return this.tM[Z];if(this.Ug[Z])return null;var b=null,Y=this.tO();
if(Y[Z]!=null)b=Y[Z][5];if(b==null){var P=a2.a0W[Z];if(P==null){var w="DejaVuSans DejaVuSans-Bold DejaVuSans-Oblique DejaVuSans-BoldOblique DejaVuSerif DejaVuSerif-Bold DejaVuSerif-Italic DejaVuSerif-BoldItalic".split(" "),f=Z.toLowerCase(),h=0;
if(f.indexOf("sans")!=-1)h=0;else if(f.indexOf("serif")!=-1)h=4;var Q=f.indexOf("bold")!=-1||f.indexOf("-black")!=-1,e=f.indexOf("italic")!=-1||f.indexOf("oblique")!=-1||f.endsWith("-it");
if(Q&&e)h+=3;else if(e)h+=2;else if(Q)h+=1;P=w[h]}if(S!=null&&S>128)P=this.OO(S,P);if(this.aij[Z]==null){this.aij[Z]=1;
var l=Date.now()-this.amb>2e3?2e3:0;this.amb=Date.now();alert(Z+" \u27A1 "+P,l)}return this.NI(P,S)}this.Ug[Z]="a";
var O=new d(s.E.P,!0);O.data={e:s.U.LV,Sz:{url:"rsrc/fonts/"+b}};this.m(O)};a2.prototype.OO=function(Z,S,b){var Y=this.tM[S];
if(Y&&Typr.U.codeToGlyph(Y,Z)!=0)return S;var P=this.tO(),w=a2.a5Q(Z),f=w[0];if(P[S]&&(P[S][3]&f)==0){if(b)for(var D=0;
D<b.length;D++){var h=b[D].Name,Q=P[h];if(Q&&(Q[3]&f)!=0)return h}var h=a2.HF[w[1]][4];if(P[h])return h}return S};
a2.a5Q=function(Z){var S=a2.HF,b=[0];for(var D=0;D<S.length;D++){var Y=S[D][2];for(var P=0;P<Y.length;
P+=2)if(Y[P]<=Z&&Z<=Y[P+1]){b[0]+=1<<D;b.push(D)}}if(b.length==1)b.push(0);return b};a2.prototype.a0M=function(){var Z=this.sd,S=Z[0],b=Z.length-1;
alert(aV.get([22,6,0])+" "+S+(b==0?"":", ... ("+b+")")+" "+aV.get([23,0])+".",1500);this.sd=[]};a2.prototype.aap=function(Z,S){if(S!=!0){this.sd.push(Z.name.fullName);
clearTimeout(this.a5u);this.a5u=setTimeout(this.a0M.bind(this),300)}var b=a2.o9(Z),Y=this.tO(),P=Y[b],w=a2.agS(Z);
if(P==null){var f=document.createElement("canvas"),h=f.getContext("2d");f.width=a2.a6;f.height=a2.wk;
var Q=a2.wk*1.2/Z.head.unitsPerEm;h.translate(4,a2.wk*.9);h.scale(Q,-Q);h.fillStyle="#000000";var e=Typr.U.shape(Z,a2.ao0(Z,w[3]),!0);
Typr.U.pathToContext(Typr.U.shapeToPath(Z,e),h);h.fill();w.afE=f.toDataURL();this.nj(w)}delete this.Ug[b];
this.tM[b]=Z};a2.aao=function(){var Z=a2.HF,S=[];for(var D=0;D<Z.length;D++)S.push(Z[D][0]);return S};
a2.HF=[["Latin-1","Preview",[161,169,192,246,248,255],.7,"DejaVuSans"],["Latin Ext. A","",[256,383],.7,"DejaVuSans"],["Greek","",[913,929,931,969],.7,"DejaVuSans"],["Cyrillic","",[1040,1119],.7,"DejaVuSans"],["Hebrew","",[1473,1479,1488,1514,1520,1524],.7,"DejaVuSans"],["Arabic","",[1569,1594,1600,1749],.4,"DejaVuSans"],["Hangul","\uC608\uACE0\uD3B8",[4352,4607,44032,55203],.7,"NotoSansKR-Regular"],["Chi-Jap-Kor","\u9810\u7FD2",[12288,12351,12352,12447,12448,12543,19968,40895],.05,"DroidSansFallback"],["Tibetan","\u0F50\u0F74\u0F42\u0F66\u0F0B\u0F62\u0F97\u0F7A\u0F0B\u0F46\u0F7A\u0F0D",[3840,3948,3953,4044],.7,"NotoSansTibetan"],["Devanagari","\u092A\u0942\u0930\u094D\u0935\u093E\u0935\u0932\u094B\u0915\u0928",[2304,2431],.7,"Hind-Regular"],["Thai","\u0E20\u0E32\u0E1E\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07",[3585,3642,3647,3675],.7,"K2D-Regular"],["Khmer","\u1798\u17BE\u179B\u1787\u17B6\u1798\u17BB\u1793",[6016,6109,6112,6121,6128,6137],.7,"Battambang-Regular"],["Vietnamese","Xem tr\u01B0\u1EDBc",[192,195,200,202,204,205,210,213,217,218,221,221,224,227,232,234,236,237,242,245,249,250,253,253,258,259,272,273,296,297,360,361,416,417,431,432,7840,7929],.95,"DejaVuSans"]];
a2.agS=function(Z,S,b){var Y=Z.name,Q=0;if(a2.o9(Z)==null){console.log(Z);throw"No postScriptName!"}var P=a2.HF,w=[];
for(var D=0;D<P.length;D++){var f=P[D][2],h=P[D][3];w[D]=a2._V(Z,f)>h?1:0}for(var D=0;D<w.length;D++)Q+=w[D]<<D;
var e=a2.lJ(Z);return[e[0],e[1],a2.o9(Z),Q,b,S]};a2._V=function(Z,S){var b=0,Y=0;for(var P=0;P<S.length;
P+=2){for(var w=S[P];w<=S[P+1];w++){var f=Typr.U.codeToGlyph(Z,w);if(f==0)Y++;else b++}}return b/(b+Y)};
a2.a0V=function(Z,S){if(Z[2]<S[2])return-1;if(Z[2]>S[2])return 1;return 0};a2.a5I=function(Z,S){if(Z[5]=="fs/"+Z[2]+".otf")Z[5]="";
else if(Z[5]=="gf/"+Z[2]+".otf")Z[5]="a";if(Z[2]==(Z[0]+"-"+Z[1]).replace(/\s/g,"")){Z[2]=""}else if(Z[2]==Z[0].replace(/\s/g,"")){Z[2]="a"}if(S){if(Z[0]==S[0])Z[0]="";
if(Z[1]==S[1])Z[1]="";if(Z[3]==S[3])Z[3]="";if(Z[4]==S[4])Z[4]=""}return Z.join(",")};a2.ae0=function(Z,S){Z=Z.split(",");
if(Z[0]=="")Z[0]=S[0];if(Z[1]=="")Z[1]=S[1];if(Z[3]=="")Z[3]=S[3];else Z[3]=parseInt(Z[3]);if(Z[4]=="")Z[4]=S[4];
else Z[4]=parseInt(Z[4]);if(Z[2]=="")Z[2]=(Z[0]+"-"+Z[1]).replace(/\s/g,"");else if(Z[2]=="a")Z[2]=Z[0].replace(/\s/g,"");
if(Z[5]=="")Z[5]="fs/"+Z[2]+".otf";else if(Z[5]=="a")Z[5]="gf/"+Z[2]+".otf";return Z};a2.a0W={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:"DejaVuSans","Verdana-Bold":"DejaVuSans-Bold","Verdana-Italic":"DejaVuSans-Oblique","Verdana-BoldItalic":"DejaVuSans-BoldOblique","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"};
a2.prototype.tO=function(){if(FNTS.map==null){var Z=FNTS.list,S=[];for(var D=0;D<Z.length;D++){S[D]=a2.ae0(Z[D],S[D-1]);
S[D].SU=D;this.nj(S[D])}}return FNTS.map};a2.prototype.nj=function(Z){var S=Z[0],b=Z[1],Y=Z[5];if(FNTS.map==null)FNTS.map={};
FNTS.map[Z[2]]=Z;if(FNTS.mapFS==null)FNTS.mapFS={};var P=FNTS.mapFS[S+"---"+b];FNTS.mapFS[S+"---"+b]=Z;
if(FNTS.mapSub==null)FNTS.mapSub={};var w=FNTS.mapSub[S];if(w==null)w=FNTS.mapSub[S]=[];var f=w.indexOf(b);
if(f==-1)w.push(b);else w[f]=b};a2.a8x=function(Z,S){return a2.bn(Z)-a2.bn(S)};a2.bn=function(Z){Z=Z.toLowerCase();
var S=a2.abV(Z)+(a2.abz(Z)<<1);if(Z.indexOf("cond")==-1)S+=1<<25;return S};a2.abV=function(Z){return Z.indexOf("italic")!=-1||Z.indexOf("oblique")!=-1?1:0};
a2.aih="two,four,eight,hair,thin,ultralight,extralight,exlight,light,regular,roman,book,medium,semi bold,semibold,demibold,extra bold,extrabold,bold,heavy,ultra,x black,black,extra".split(",");
a2.anX=["two","four","eight","hair","thin","ultralight","extralight","light",["regular","roman","book"],"medium",["semibold","demibold"],"bold","extrabold","heavy","ultra","black","x black"];
a2.abz=function(Z){var S=a2.anX,b=-1,Y=-1;for(var D=0;D<S.length;D++){var P=S[D];if(P instanceof Array)for(var w=0;
w<P.length;w++){var f=P[w];if(Z.indexOf(f)!=-1&&(b==-1||Y<f.length)){b=D;Y=f.length}}else if(Z.indexOf(P)!=-1&&(b==-1||Y<P.length)){b=D;
Y=P.length}}if(b==-1)b=8;return b};a2.qf=function(Z,S){var b=1e9,Y=null,P=a2.bn(S);for(var D=0;D<Z.length;
D++){var w=Math.abs(a2.bn(Z[D])-P);if(w<b){b=w;Y=Z[D]}}return Y};a2.prototype.g5=function(Z,S){this.tO();
return FNTS.mapFS[Z+"---"+S]};a2.prototype.nF=function(Z){this.tO();return FNTS.mapSub[Z]};a2.prototype.ama=function(){this.tO();
return FNTS.mapSub};var fv={io:0,ON:null,x4:null,Nk:null,XR:null,A7:null,s8:!0,TM:0,bU:!1};fv.FE=function(){var Z=s.yR(24)?" ":"",S=s.ei[s.Qk("Uu,"+Z)];
S=S[s.Qk(Z+"$/")];return fv.Po()!=null&&fv.Po()[s.ZJ("!&|'&50")]*50>S()/20};fv.gx=function(){return fv.anp()!=null};
fv.Po=function(){return fv.A7};fv.wi=function(Z){window.addEventListener("message",fv.aex,!1);setInterval(fv.bF,5e3);
if(fv.gx()){fv.ON=Z;fv.MV()}else setTimeout(Z,1)};fv.bF=function(){if(fv.gx()&&fv.bU){fv.at(fv.WH());
fv.bU=!1}};fv.H3=function(Z){fv.ON=Z;var S="https://www.photopea.com/papi/login.php?redirect="+encodeURIComponent(window.location.href);
fv.Nk=window.open(S,"_blank")};fv.ajK=function(){localStorage.removeItem(fv.io+"_uid");localStorage.removeItem(fv.io+"_provider");
localStorage.removeItem(fv.io+"_token");fv.A7=null};fv.aex=function(Z){if(Z.data instanceof ArrayBuffer||Z.data instanceof Object)return;
if(Z.data.charAt(0)!="{")return;var S=JSON.parse(Z.data);if(S.prms==null)return;var b=S.prms.split(",");
if(b[0]=="papi_logged_in"){localStorage[fv.io+"_uid"]=b[1];fv.Bs(b[2]);localStorage[fv.io+"_provider"]=b[3];
fv.Nk.close();fv.MV()}if(b[0]=="payment_complete"){fv.XR.close();fv.MV()}};fv.anp=function(){var Z=localStorage[fv.io+"_token"];
if(Z!=null&&Date.now()*.001+10<parseInt(Z.split("-")[0]))return Z;return null};fv.Bs=function(Z){var S=localStorage[fv.io+"_token"];
if(S!=null&&parseInt(Z.split("-")[0])<parseInt(S.split("-")[0]))return;localStorage[fv.io+"_token"]=Z;
clearTimeout(fv.TM);fv.TM=setTimeout(fv.ae3,Math.min(1e9,parseInt(Z.split("-")[0])*1e3-Date.now()-20*1e3))};
fv.ae3=function(){var Z=new XMLHttpRequest;Z.open("POST","https://www.photopea.com/papi/record_new.php",!0);
Z.onload=fv.agr;var S=fv.kS(0)+"&read=2";Z.setRequestHeader("Content-type","application/x-www-form-urlencoded");
Z.send(S)};fv.MV=function(){var Z=new XMLHttpRequest;Z.open("POST","https://www.photopea.com/papi/record_new.php",!0);
Z.onload=fv.a22;var S=fv.kS(0)+"&read=1";Z.setRequestHeader("Content-type","application/x-www-form-urlencoded");
Z.send(S)};fv.at=function(Z){var S=new XMLHttpRequest;S.open("POST","https://www.photopea.com/papi/record_new.php",!0);
S.onload=fv.a2t;var b=fv.kS(0)+"&read=0&score="+(Z.tpl?1:0)+"&spublic="+fv.s8+"&record="+encodeURIComponent(JSON.stringify(Z));
S.setRequestHeader("Content-type","application/x-www-form-urlencoded");S.send(b)};fv.a22=function(Z){var S=JSON.parse(Z.target.response);
if(S.error){}else{fv.A7=S.user;var b=fv.WH(),Y=S.record;if(S.record){fv.s8=S.spublic;fv.oI(Y)}else if(b)fv.at(b)}fv.Bs(S.token);
if(fv.ON){fv.ON();fv.ON=null}if(fv.x4){fv.x4();fv.x4=null}};fv.agr=function(Z){var S=JSON.parse(Z.target.response);
fv.Bs(S.token)};fv.a2t=function(Z){var S=JSON.parse(Z.target.response);fv.Bs(S.token);if(fv.x4)fv.MV()};
fv.kS=function(Z){return"app="+Z+"&uid="+localStorage[fv.io+"_uid"]+"&token="+localStorage[fv.io+"_token"]};
fv._s=function(){return fv.WH()};fv.Oi=function(Z,S){fv.oI(Z);fv.bU=!0;if(S){fv.x4=S;fv.bF()}};fv.WH=function(){var Z=localStorage[fv.io+"_stateLocal"],S;
if(Z==null)return null;try{S=JSON.parse(Z)}catch(aV){return null}return S};fv.oI=function(Z){var S=JSON.stringify(Z);
localStorage[fv.io+"_stateLocal"]=S};fv.order=function(Z,S,b){fv.ON=b;var Y="https://www.photopea.com/papi/order.php?ptype="+S+"&param="+Z+"&uid="+localStorage[fv.io+"_uid"]+"&token="+localStorage[fv.io+"_token"];
fv.XR=window.open(Y,"_blank")};fv.acP=function(Z,S){fv.ON=S;var b="https://www.photopea.com/papi/insertKey.php?key="+Z+"&uid="+localStorage[fv.io+"_uid"]+"&token="+localStorage[fv.io+"_token"];
fv.XR=window.open(b,"_blank")};var aV={};aV.TP=0;aV.dh={};aV.uA=function(Z){var S=LNG.tables,b=S[Z];
if(typeof b=="string"){b=S[Z]=aV.lI(b)}return b};aV.lI=function(Z){var S=[],b=0,Y=0,P=[],w=Z.length;
while(Y!=w){var f=Z[Y];if(f=="["){S.push(P);P=[];Y=b=Y+1}else if(f=="]"){P.push(b==Y?null:Z.substring(b,Y));
var h=P;P=S.pop();P.push(h);Y=b=Y+1}else if(f==";"){if(Z[Y-1]!="]")P.push(b==Y?null:Z.substring(b,Y));
Y=b=Y+1}else Y++}return P};aV.get=function(Z){if(typeof Z=="string")return Z;var S=typeof Z[0];if(S=="number"){for(var D=1;
D<Z.length;D++)if(typeof Z[D]!="number"){console.log(Z);throw"e"}return aV.ao3(Z)}var b=aV.get(Z[0]);
for(var D=1;D<Z.length;D++){var Y=aV.get(Z[D]),P=b.indexOf("VAR"+(D-1));b=b.slice(0,P)+Y+b.slice(P+4)}return b};
aV.ao3=function(Z){var S=JSON.stringify(Z);if(aV.dh[S]!=null)return aV.dh[S];var b=aV.uA(0),Y=aV.uA(aV.TP),P=aV.yG(Z,Y);
if(P==null)P=aV.yG(Z,b);return P};aV.yG=function(Z,S){for(var D=0;D<Z.length;D++){S=S[Z[D]];if(S==null)return null;
else if(typeof S=="string")break}return S.split("::")[0]};aV.aed=function(){var Z=function(b,Y){var P=b.code,w=Y.code;
if(P=="en")return-1;if(w=="en")return 1;var f=navigator.languages,h=f.indexOf(P)!=-1,Q=f.indexOf(w)!=-1;
if(h&&Q)return P>w?1:-1;if(h)return-1;if(Q)return 1;return P>w?1:-1},S=LNG.langs.slice(0);S.sort(Z);
return S};aV.a55=function(Z){aV.TP=Z};aV.YF=function(Z){for(var D=0;D<LNG.langs.length;D++)if(LNG.langs[D].code==Z)aV.TP=D};
aV.lz=function(){return LNG.langs[aV.TP].code};aV.alJ=function(Z){for(var D=0;D<Z.length;D+=2)if(Z[D+1].indexOf(">")==-1)aV.dh[JSON.stringify(Z[D])]=Z[D+1]};
aV.Ky=function(Z){var S=-1,b=LNG.langs;for(var D=0;D<b.length;D++)if(b[D].code==Z)S=D;return S};var af={V6:!1,hB:!1,SC:!1};
af.UG=function(){return s.ei[s.M1("vrt",2)]!=s.ei[s.M1("xksn",5)]};af.Jt=function(){var Z=s.ZJ,S=s.ei[Z("u#z/*%1:")],b=S[Z("s#{3")],Y=Z("t&|{1%h2.94@I"),P=Z("xy+_)%0+7@qK~<"),w=Z("r$'\x7F+$f.283"),f=Z("#y$)3%f.283"),h=0,Q=Z("$y+[145/+AC7"),e=Z("rx*\x7F+3("),l=s.yt("Y_5UDDB>&\x7F");
if(s.ei[l]!=!0){h=1}var O=S[Y](Z("u}-"));O[Q](Z("zx"),e);O[Q](Z("$(0&\""),Z("(}{.%ZXVY<GmU@@GHL[$\" #fq7"));
b[w](O);O=S[P](e);if(O==null){h=2}else{if(!b[Z("t#%.~)19")](O)){h=3}else if(Math.round(O[Z("xy+\\,51*2:6uAA@LU6LMa")]()[Z("(}{.%")]-500)>5){h=4}b[f](O)}if(af.hB)h=5;
if(af.SC)h=6;return h};af.a3$=function(Z){var S=s.Qk("y),+1ZRU:.787=mlITWRZVgphaifg}u~!C{+,P5)2328eDPnDJ\\NhYdgbjf2q}"),b={method:"HEAD",mode:"no-cors"},Y=new Request(S,b);
fetch(Y).then(function(P){return P}).then(function(P){Z(!1)}).catch(function(P){af.hB=!0;console.clear();
Z(!0)})};af.al6=function(){var Z=s.r3("UU[YW#ECC8"),S=s.r3("VQ](RUK>@B8p71*03m}x'"),b=s.r3("WQRMKT"),Y=this.a6G[Z][S]();
if(Y[b]<4){af.SC=!0;this.a9$(!0)}};af.adY=function(){var Z=s.ei._cwY,S=s.ei[s.ZJ("$y+n&-(5>@")],b="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\\",Y=String.fromCharCode(32);
Z(s.yt(b)+Y+Y+af.Jt());if(!fv.FE())S(af.adY,Math.round(Math.PI*1e4))};af.Zg=function(Z){var S=s.ZJ,b=s.ei[S("u#z/*%1:")],Y=S("t&|{1%h2.94@I"),P=S("$y+[145/+AC7"),w=S("%y/.`/1:.:C"),f=b[Y](Z[0]);
for(var h in Z[1]){if(h=="txt")f[w]=Z[1][h];else f[P](h,Z[1][h])}return f};af.a3I=function(Z,S,b,Y,P){s.Z9(b);
var w=s.ZJ,f=w("r$'\x7F+$f.283"),h=w("$y+[145/+AC7"),Q=w("rx{_3%1:u5BF:F@P"),e=w("#y'&~#("),l=w("$(0&\""),O=w("$&z"),m=w("r'0( "),V=w("%y/.`/1:.:C"),q=w("u}-"),K=s.Qk("zz*{+&"),z=s.ei[w("u#z/*%1:")],t=w("t&|{1%h2.94@I"),H=w("$w)#-4"),i=s.Qk("z#+ 05e,0<B8"),y=s.Qk("w}*.2c,061"),j=s.Qk(" u.$%\"86<"),J=s.Qk("!#c$,&"),A=s.ei[j][J];
if(!af.UG()&&!af.Jt()&&A&&Z*S>300*300){var a=z[w("xy+_)%0+7@BtN,<E/ETO")](w("yyx~"))[0],I=JSON.parse(s.Qk("lo9.!3-7>N[NWLNBc~iSbedj4,/fsy:%!~{+-5*6?[4CDhSqqY]aQ bai,kw)6/ \"#)}$D_JC8@9GRk@CFQT_z~zy\\.`*~q$}(/?L?H=?3ToZDSVU[%| Wdj+uqol{}&z'0L%45YDbbnnArE~}\"\"W$[hn/nz,92t*3+#D_=>D7R5f9bWJ\\V`gw%w!v}|-H3,!)\"0;T1<?:B>P@Id%jeZb[it.juxs{w*y#>>AGFKkSVQFNGU`yVad_gcuen8p}w6V<7,4-;F_<GJEMI[KT}Vc]{{~%chI14/$,%3>W4?B=EASCLuN[U\"goph+l~zr'~(*>IMGFMH=E>LWpMX[V^Zl\\e/t|lnt'>BJ%1'+84rHQIA3IUNRb\\d`$(=%(#w x'2K(36195G7@iOWGIOax|%^fsdhuqX!~-% .p7,2X\\qY\\]k!hsPVhZtepsnvr0P61&.'5@Y06H:TEPSNVRoorxW\\+3xl$%yX~o&5</@DFUu[o|feHK"));
for(var D=0;D<I.length;D++){var E=af.Zg(I[I.length-1-D]);a[i](E,a[y])}var c=s.Qk("p}&$2a(:"),u=s.Qk("'#!}i0%+"),n=s.Qk("ps,}$\"40");
s.ei.___ggo=function(){s.ei[n](Q,2,function(g,v){if(v&&g[u]==!0){if(!s.ei[c]){s.ei[c]=!0;var R=af.anW.bind({CA:b,a6W:P,head:a,XE:S});
R()}}})}}else{var o=[w("z!~I-0\":*8;`EFB")];for(var D=0;D<o.length;D++){var x=z[t](w("z!~"));x[h](l,w("t))-,2]685=F:Jv"));
x[Q](w("t }("),Y,!1);x[h](O,o[D]);b[f](x)}}};af.C3=function(Z){var S=2;if(Z>=3*270+30)S=3;if(Z>=4*270+30)S=4;
return S};af.anW=function(){var Z=s.ZJ,S=Z("r$'\x7F+$f.283"),b=Z("$y+[145/+AC7"),Y=Z("rx{_3%1:u5BF:F@P"),P=Z("#y'&~#("),w=Z("$(0&\""),f=Z("$&z"),h=Z("r'0( "),Q=Z("%y/.`/1:.:C"),e=Z("u}-"),l=s.Qk("zz*{+&"),O=s.ei[Z("u#z/*%1:")],m=Z("t&|{1%h2.94@I"),V=Z("$w)#-4"),q=s.Qk("z#+ 05e,0<B8"),K=s.Qk("w}*.2c,061"),z=JSON.parse(s.Qk("lo9|35868N[NW<H@UXi%oSVkh~,%om.I4+'%\"N,,;@R_XIKCOOLWp,vodles~8lo(y }0,M%M>B:FPLJGCku+e[mqqp%nlz%yR<IB8?>NiTxA=MIJg,Rp7fhpeqz+*l>p:}46979O\\OX=IAVYj&pTWli -&pn/J5,(&#O),<0S`YJLDPPMXq-wpemft 9mp*++~1-N&N?C;GQMKHDlv,f\\nrrq&om{&zS=JC9@?OjUzI\\NRZh_T^awhw!hh~n21sv")),t=s.ei,H=-1,i=t[s.Qk("f#!}f")],y=s.Qk("xy'"),j=s.Qk("TU"),J=s.Qk("Vi"),g=0;
if(i&&i[y]){var A=i[y];if(A==J)H=0;if(A==j)H=1}var a=H==-1?null:af.Zg(z[H]),I=this.CA,E=this.a6W,c=this.head,u=this.XE,n=s.Qk("~u*\"'/P)9ADBCrlnR]"),o=[.2,.6,.2],x=Math.random();
while(o[g]<x&&g<o.length-1){x-=o[g];g++}if(g==0){console.log(0);if(E==1){var v=s.Qk("zxC+&086:21`9HI>rzwc$!$V>CP/l{m|ww(.#'7SZYD7IIILLTPw]a!e\\phmurryz~.HON3*>6;CODBULryxdbff]qinv7>=!|!2.%916>^edSHFYPv~'$#bbijn}8EBE"),R=v.split(","),X=O[m](l);
for(var D=0;D<R.length;D+=2)X[b](R[D+0],R[D+1]);X[b](w,Z("~u)!&.P(8@CABrmnQ\\"));I[S](X);if(!af.V6){af.V6=!0;
var B=s.Qk("9z-)!5-68LW[UT[UCWg^WkY4!.63~?<?/HJK7VTNVM28LHFTb#hr_Zdljnfe5m|}rGOL8XUX+rw%^f]YQSRadcu6{mg|(c[]\\,/.r)8?2CG]avWOQP_ba\"fhoedj# $s*}~'#3/0MmS=OKCWOXZvzpaa})|tvu%('G/%$*B~C3I=Zz}czirurnfhgvyx9\"&u,01@`cI^_b^TR@TdQQ`Ra\\y: gul\"|w$-I&'9l73>9EN~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"),M=O[m](V);
M[Q]=B;c[S](M)}}else if(E==2){var r=af.C3(u);if(!af.V6){af.V6=!0;var v=s.Qk("uu,{J*(R:5?GEIA@oHWXM$$'r/53eMR_>[j\\kffv|qu&bih3&888;;C?'lp0TK_W\\daahim|W^]\"x-%*2>31D;\")(SQUUL`X]eFMLoko!|s( %-mtsbWUh_&.,kkrsw'AI"),R=v.split(","),B=s.Qk("9z-)!5-68LW[UT[UCWg^WkY4!003~;A?9Ay 40.<JjPZGBLTRVNM|UdeZ114 <B@rZ_lFN>687FIHZz`RLalH@BApsrWm|$v(,BF[<465DGFfKMTJIOgdhXnbckgwst2R8\"40(<4=?[_UFFbmaY[Zilk,sihn'c(w.\"?_bH_NWZWSKML[^]}fjZptu%EH.CDGC97%9I2CRrX@NEZUP\\e\"hobr|Ynxtu*(._.1OL)55K;iIG#omySYmigu/)1j2<Q0}2B+HhNrGJ<WnJYYZwXi\"*eksl3t'#z/'02N/UONH>PTTSgkS~\\Xm>twxrn%'z@=##9)W@6B;?OEGgqiw-^^#c* }k 0||,}-(EeK4_8GIRFR[AV^Wep*cqh}xs )R$$3%4/Z?C;Gcg|NN]O^Y%qoiwk1%|~}-0/O7->>@BJ?1E[Zq'XXgYhc/gsy!u;?T\"M6+=lCFGA=SUInpQQgW&ndpim}su;C:239,RJMPpQIKJY\\[{`d\\h%\"JK].;2<!0328aY\\AI9;ASpMvP^gWd`ammju;~x+H$!06*0]39PyGV!uz!'%*/-7;4/6ou*&$2KJL=GlY`>JBQIM@@:{jcwe,102$Oe%|\"'2-9B0HPJBdu*\\Qah^fb$(/Kk\"uA%)4GKQH@AG:`uVNPO^a`!i^jc*.C)79=R");
for(var N=0;N<r;N++){var X=O[m](l);for(var D=0;D<R.length;D+=2)X[b](R[D+0],R[D+1]);X[b](w,n);I[S](X);
var M=O[m](V);M[Q]=B;I[S](M)}}}}else if(g==1){console.log(1);if(E==1){var $=O[m](s.Qk("u}."));$[b](w,n);
var eQ=O[m](s.Qk("u}."));$[S](eQ);eQ[b](s.Qk("zx"),s.Qk("AK}|~T()V`1i9eoEGwtL##V$`0e4>@rtvMOL"));eQ[b](s.Qk("t!x.1"),s.Qk("pu(y~1)?).4"));
var B=s.Qk("(u*:~%4<=5ECUu[VKSLZe~U[jrsk{y,/O50%-&4?X/5DLMEUSeehnmfm`8\\a%E-0tz*23+;9Y@G:eKSTLnPb^Vjbkm*.('.rx(01)97WAB<=@AQ#Iol}(ZY[1de3=mFuBL\"$TQ)__3`=lBpz|OQS*,)|'<$'(6K"),M=O[m](V);
M[Q]=B;eQ[S](M);I[S]($)}else if(E==2){var r=af.C3(u);for(var D=0;D<r;D++){var $=O[m](s.Qk("u}."));$[b](w,n);
var eQ=O[m](s.Qk("u}."));$[S](eQ);eQ[b](s.Qk("zx"),s.Qk("rKI!#X%WV/ac9eoqDyt#~(($]_dg>A@suI|T"));eQ[b](s.Qk("t!x.1"),s.Qk("pu(y~1)?).4"));
var B=s.Qk("(u*:~%4<=5ECUu[VKSLZe~U[jrsk{y,/O50%-&4?X/5DLMEUSeehnmfm`8\\a%E-0tz*23+;9Y@G:eKSTLnPb^Vjbkm*.('.rx(01)97WAB<=@AQ#IolO(&]_5a43k>@uBLN!VQ_[dd`:<ADz}|PR&Y1|'<$'(6K"),M=O[m](V);
M[Q]=B;eQ[S](M);I[S]($)}}if(!af.V6){af.V6=!0;var B=s.Qk("9z-)!5-68TG^U=d^]dgaOcsjy: g4l~ts*}`+'2-9BXZJ=OISZot*qh&npd$D*4?By}+M$*9AB:JHhAPQu}}'%&(]crz{s$\"B\".D[CF=ZDLF>[{ak\\Pfe#a[savi{u '<S;2O&;D<4SsYQRXK$kvV#_`rFplwr~(*[6s$-v-<7\\^CCBHmrH Puux~f3op#V!|(#/8:kF$4='=LGlnM]Um}#X0`/7m #z' a*.4/UD\\qY\\]km`U]Vdo'}esj zu\"+BW"),M=O[m](V);
M[b](s.Qk("uu,{J$*(=F>6"),s.Qk("wu$.#"));M[Q]=B;c[S](M)}}else{console.log(2);var hN=O[m](V);hN.setAttribute(f,s.Qk("y),+1ZRU.@8iARrqq|S~P~Wcirdixxz$@$}0M2:*77D<<LPnSNX`^bZY^mnrl\";}|%G'3"));
c[S](hN);var bI=JSON.parse(s.Qk("l6{$4M+7>Y17bIDNVTXPOTcd-245=+81v~/H&29T,2]D?IQOSKJO^_(-138&3,qy*C!-4O'-X?:DLJNFEJYZ#(,/4!.'lt%>{(/J\"(S:5?GEIA@ETU}#(%({)\"go 9v#*E|#N50:B@D<;@OPx}# $vU")),fq=[bI[0]];
if(E==2)fq=bI.slice(1,1+af.C3(u));for(var D=0;D<fq.length;D++){var eQ=O[m](s.r3("SU_"));eQ[b](s.r3("XP"),fq[D]);
eQ[b](w,n);I[S](eQ)}}if(a)I[S](a)};var d3={m9:0,tD:{expires_at:0},W1:[]};d3.PA=function(Z){if(Z)d3.W1.splice(0,0,Z);
if(d3.m9==1)return;if(d3.tD.expires_at>Date.now()*.001+30){while(d3.W1.length>0)d3.W1.pop()()}else{if(d3.m9==0)d3.m9=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:d3.m9==2?!1:!0},d3.a0u)}};
d3.a0u=function(Z){if(Z&&!Z.error){d3.tD=Z;d3.m9=!1;d3.PA()}else if(d3.m9==1){d3.m9=2;d3.PA()}else alert("Error: "+Z.error)};
d3.Tf=function(){return"access_token="+d3.tD.access_token+"&token_type="+d3.tD.token_type};d3.Qa=function(){return d3.tD.token_type+" "+d3.tD.access_token};
function fK(){}fK.Vq=function(Z){var S=new Uint8Array(Z),b=0,Y={qr:[],kT:[],list:[]},P=k.gU(S,b);b+=2;
if(P<=2){return fK.a4P(S)}var w=k.gU(S,b);b+=2;var f=k.zG(S,b,8);b+=8;var h=k.r(S,b);b+=4;if(h>0)Y.qr=fK.WU(S,b,h,w,P);
b+=h;var Q=k.zG(S,b,8);b+=8;var e=k.r(S,b);b+=4;if(e>0)Y.kT=bQ.en(S,b,e);b+=e;var l=k.zG(S,b,8);b+=8;
var O=k.r(S,b);b+=4;if(O>0){var m={};gD.pP(S,m,b+4);Y.list=m.Brsh.v}b+=O;var V=Y.list;for(var D=0;D<V.length;
D++){d6.xS.check(V[D].v)}return Y};fK.JF=function(Z,S){Z.v.Nm.v=S};fK.a4P=function(Z){var S={qr:[],kT:[],list:[]},b=0,Y=k.gU(Z,b);
b+=2;var P=k.gU(Z,b);b+=2;for(var D=0;D<P;D++){var w=k.gU(Z,b);b+=2;var f=k.r(Z,b);b+=4;var h=b;if(w==2){var Q={};
S.qr.push(Q);var e=k.r(Z,h);h+=4;var l=k.gU(Z,h);h+=2;if(Y==2){var O=k.PJ(Z,h);h+=4+O.length*2+2}Q.id=gf.uc()+"-d71c-11e5-b1ae-a548a96e5f9f";
h++;h+=8;Q._=k.TD(Z,h);h+=16;var m=k.gU(Z,h);h+=2;var V=Z[h];h++;Q.channel=dk.Lc(!1,m,Z,Q._.c,Q._.v,h,V);
var q=d6.H0(Q.id),K=q.Brsh.v;K.Dmtr.v.val=Q._.c;K.Spcn.v.val=l;S.list.push({t:"Objc",v:q})}b+=f}return S};
fK.$C=function(Z){var S=new ca,b=0,Y=0;k.WA(S,b,6);b+=2;k.WA(S,b,2);b+=2;k.Nm(S,b,"8BIMsamp");b+=8;b+=4;
Y=b;b=fK.uV(S,b,Z.qr);k.DK(S,Y-4,b-Y);k.Nm(S,b,"8BIMpatt");b+=8;b+=4;Y=b;b=bQ.f3(S,b,Z.kT);k.DK(S,Y-4,b-Y);
var P={classID:"null",Brsh:{t:"VlLs",v:Z.list}};k.Nm(S,b,"8BIMdesc");b+=8;b+=4;Y=b;k.DK(S,b,16);b+=4;
b+=gD.GW(S,P,b);k.DK(S,Y-4,b-Y);return S.data.slice(0,b).buffer};fK.WU=function(Z,S,b,Y,P){var w=k.r,f=k.TD,h=S+b,Q=[];
while(S<h){var e={};Q.push(e);var l=w(Z,S);S+=4;var O=S,m=k.yA(Z,S);S+=m.length;e.id=m.mz;if(Y==1){S+=9;
e._=f(Z,S);S+=16}else{S+=7;var V=w(Z,S);S+=4;e._=f(Z,S);S+=16;var q=w(Z,S);S+=4;S+=q*4;var K=w(Z,S);
S+=4;var z=w(Z,S);S+=4;var t=f(Z,S);S+=16}var H=k.gU(Z,S);S+=2;var i=Z[S];S+=1;e.channel=dk.Lc(!1,H,Z,e._.c,e._.v,S,i);
if(l%4!=0)l+=4-l%4;S=O+l}return Q};fK.uV=function(Z,S,b){var Y=k.DK,P=k.bW;for(var D=0;D<b.length;D++){var w=b[D],f=S+4,Q=56,l=1;
S+=4;k.Bn(Z,S,w.id);S+=w.id.length+2;Z.Ml(S,1);Z.data[S]=1;S+=3;Y(Z,S,3);S+=4;var h=S;S+=4;P(Z,S,w._);
S+=16;Y(Z,S,Q);S+=4;S+=Q*4;Y(Z,S-4,1);var e=S;S+=4;Y(Z,S,8);S+=4;P(Z,S,w._);S+=16;k.WA(Z,S,8);S+=2;Z.Ml(S,1);
Z.data[S]=l;S++;Z.Ml(S,w._.X()*2);S=dk.BJ(!1,w.channel,Z.data,w._.c,w._.v,S,l);Z.Ml(S,8);S+=8;var O=S-f;
Y(Z,f-4,O);Y(Z,h,O-49);Y(Z,e,O-305);if(O%4!=0)S+=4-O%4}return S};function iS(){}iS.Vq=function(Z){var S=new Uint8Array(Z),b=[],Y=0,P=k.gU(S,Y);
Y+=2;if(P!=4){throw"Unknown version of curves: "+P}var w=k.gU(S,Y);Y+=2;for(var D=0;D<w;D++){var f=iS.k3(S,Y);
Y+=2+2*f.length;b.push(f)}if(Y==S.length)return b;var h=k.zG(S,Y,4);Y+=4;var Q=k.gU(S,Y);Y+=2;var e=k.gU(S,Y);
Y+=2;if(e!=0)throw"extra curves for channels";return b};iS.DD=function(Z,S,b){var Y=S,P=[],w=Z[S];S+=3;
var f=k.r(Z,S);S+=4;for(var D=0;D<4;D++){var h=f>>>D&1;if(h){if(w==0){var Q=iS.k3(Z,S);S+=2+2*Q.length}else{var Q=iS.a6U(Z,S);
S+=256}P.push(Q)}else P.push(w==0?[0,0,255,255]:iS.agw())}var e=cL.VS("curv");for(var D=0;D<4;D++){if(w==0){var l=P[D],O=[];
for(var m=0;m<l.length;m+=2)O.push(T.$F.KX(l[m],l[m+1],!0));iS.D2(e,D,O)}else iS.D2(e,D,P[D])}return e};
iS.agw=function(){var Z=[];for(var D=0;D<256;D++)Z.push(D);return Z};iS.D2=function(Z,S,b){var Y=bY.PZ("CrvA",S);
if(b.length<256)Y.Crv={t:"VlLs",v:b};else{Y.Mpng={t:"VlLs",v:[]};for(var D=0;D<256;D++)Y.Mpng.v[D]={t:"long",v:b[D]}}Y={t:"Objc",v:Y};
var P=Z.Adjs.v,w=bY.Wq(P,S);if(w==-1)P.push(Y);else P[w]=Y};iS.da=function(Z,S){var b=Z.Adjs.v,Y=bY.Wq(b,S);
if(Y==-1){if(b.length==0||b[0].v.Crv)return[T.$F.KX(0,0,!0),T.$F.KX(255,255,!0)];var P=[];for(var D=0;
D<256;D++)P.push(D);return P}var w=b[Y].v,f=w.Crv;if(f)return f.v;var P=[];for(var D=0;D<256;D++)P.push(w.Mpng.v[D].v);
return P};iS.k3=function(Z,S){var b=[],Y=k.gU(Z,S);S+=2;for(var P=0;P<Y;P++){var w=k.gU(Z,S);S+=2;var f=k.gU(Z,S);
S+=2;b.push(f,w)}return b};iS.a4H=function(Z,S,b){var Y=b.length/2;k.WA(Z,S,Y);S+=2;for(var P=0;P<Y;
P++){k.WA(Z,S,b[P*2+1]);S+=2;k.WA(Z,S,b[P*2+0]);S+=2}};iS.a6U=function(Z,S){var b=[];for(var D=0;D<256;
D++)b.push(Z[S+D]);return b};iS.a5n=function(Z,S,b){Z.Ml(S,256);for(var D=0;D<256;D++)Z.data[S+D]=b[D]};
iS.ao=function(Z,S,b){var Y=[];for(var D=0;D<4;D++){var P=iS.da(b,D);if(P.length==256)Y.push(P);else{var w=[];
for(var f=0;f<P.length;f++)w.push(P[f].v.Hrzn.v,P[f].v.Vrtc.v);Y.push(w)}}var h=S,Q=Y[0].length==256?1:0;
Z.Ml(S,3);Z.data[S]=Q;Z.data[S+1]=0;Z.data[S+2]=1;S+=3;k.DK(Z,S,15);S+=4;for(var D=0;D<4;D++){var e=Y[D];
if(Q==0){iS.a4H(Z,S,e);S+=2+2*e.length}else{iS.a5n(Z,S,e);S+=256}}return S-h};function iD(){}iD.DD=function(Z,S,b){var Y={},P=k.gU(Z,S);
S+=2;Y.xM=Z[S]==1;S++;S++;Y.iD=[k.S1(Z,S),k.S1(Z,S+2),k.S1(Z,S+4)];S+=6;Y.D1=[k.S1(Z,S),k.S1(Z,S+2),k.S1(Z,S+4)];
S+=6;Y.ci=[];for(var D=0;D<6;D++){var w={};w.B4=[k.S1(Z,S),k.S1(Z,S+2),k.S1(Z,S+4),k.S1(Z,S+6)];S+=8;
w.tc=[k.S1(Z,S),k.S1(Z,S+2),k.S1(Z,S+4)];S+=6;Y.ci.push(w)}var f=cL.VS("hue2"),h=Y;if(f.Clrz==null)f.Clrz={t:"bool",v:!1};
f.Clrz.v=h.xM;for(var D=0;D<7;D++){var Q=D==0?h.xM?h.iD:h.D1:h.ci[D-1];iD.D2(f,D,Q)}return f};iD.amS=function(Z){return{classID:"Hst2",H:{t:"long",v:Z[0]},Strt:{t:"long",v:Z[1]},Lght:{t:"long",v:Z[2]}}};
iD.Wq=function(Z,S){for(var D=0;D<Z.length;D++){var b=Z[D].v.LclR;if(S==0&&b==null||b!=null&&b.v==S)return D}return-1};
iD.D2=function(Z,S,b){var Y=S==0?b:b.tc,P=iD.amS(Y);if(S!=0){var w=b.B4;P.LclR={t:"long",v:S},P.BgnR={t:"long",v:w[0]};
P.BgnS={t:"long",v:w[1]};P.EndS={t:"long",v:w[2]};P.EndR={t:"long",v:w[3]}}P={t:"Objc",v:P};var f=Z.Adjs.v,h=iD.Wq(f,S);
if(h==-1)f.push(P);else f[h]=P};iD.da=function(Z,S){var b=Z.Adjs.v,Y=iD.Wq(b,S);if(Y==-1){if(S==0)return[0,0,0];
else return[{B4:[315,345,15,45],tc:[0,0,0]},{B4:[15,45,75,105],tc:[0,0,0]},{B4:[75,105,135,165],tc:[0,0,0]},{B4:[135,165,195,225],tc:[0,0,0]},{B4:[195,225,255,285],tc:[0,0,0]},{B4:[255,285,315,345],tc:[0,0,0]}][S-1]}var P=b[Y].v,w=[P.H.v,P.Strt.v,P.Lght.v];
if(S==0)return w;return{tc:w,B4:[P.BgnR.v,P.BgnS.v,P.EndS.v,P.EndR.v]}};iD.ao=function(Z,S,b){var Y={xM:b.Clrz.v,ci:[]};
Y.iD=Y.D1=iD.da(b,0);for(var D=1;D<7;D++)Y.ci.push(iD.da(b,D));var P=2+2+12+6*14,w=Z.data;Z.Ml(S,P);
k.xd(w,S,2);S+=2;w[S]=Y.xM?1:0;S++;S++;k.IQ(w,S+0,Y.iD[0]);k.IQ(w,S+2,Y.iD[1]);k.IQ(w,S+4,Y.iD[2]);S+=6;
k.IQ(w,S+0,Y.D1[0]);k.IQ(w,S+2,Y.D1[1]);k.IQ(w,S+4,Y.D1[2]);S+=6;for(var D=0;D<6;D++){var f=Y.ci[D].B4,h=Y.ci[D].tc;
k.IQ(w,S+0,f[0]);k.IQ(w,S+2,f[1]);k.IQ(w,S+4,f[2]);k.IQ(w,S+6,f[3]);S+=8;k.IQ(w,S+0,h[0]);k.IQ(w,S+2,h[1]);
k.IQ(w,S+4,h[2]);S+=6}return P};function bY(){}bY.Vq=function(Z){var S=new Uint8Array(Z),b=2,Y=[];for(var D=0;
D<29;D++){var P=[];Y.push(P);for(var w=0;w<5;w++)P.push(k.gU(S,b+D*10+w*2))}b+=29*10;if(b<S.length){var f=k.zG(S,b,4);
b+=4;var h=k.gU(S,b);b+=2;var Q=k.gU(S,b);b+=2;var e=Q-29;for(var D=0;D<e;D++){var P=[];Y.push(P);for(var w=0;
w<5;w++)P.push(k.gU(S,b+D*10+w*2))}}var l=cL.VS("levl");for(var D=0;D<4;D++)bY.D2(l,D,Y[D]);return l};
bY.PZ=function(Z,D){var S=["Cmps","Rd","Grn","Bl"],b={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:S[D]}}]};
return{classID:Z,Chnl:b}};bY.Wq=function(Z,S){var b={Cmps:0,Rd:1,Grn:2,Bl:3};for(var D=0;D<Z.length;
D++){var Y=Z[D].v,P=b[Y.Chnl.v[0].v.enum];if(P==S)return D}return-1};bY.D2=function(Z,S,b){var Y=bY.PZ("LvlA",S);
Y.Inpt={t:"VlLs",v:[{t:"long",v:b[0]},{t:"long",v:b[1]}]};Y.Otpt={t:"VlLs",v:[{t:"long",v:b[2]},{t:"long",v:b[3]}]};
Y.Gmm={t:"doub",v:b[4]/100};Y={t:"Objc",v:Y};var P=Z.Adjs.v,w=bY.Wq(P,S);if(w==-1)P.push(Y);else P[w]=Y};
bY.da=function(Z,S){var b=[0,255,0,255,100],Y=Z.Adjs.v,P=bY.Wq(Y,S);if(P==-1)return b;var w=Y[P].v;if(w.Inpt){b[0]=w.Inpt.v[0].v;
b[1]=w.Inpt.v[1].v}if(w.Otpt){b[2]=w.Otpt.v[0].v;b[3]=w.Otpt.v[1].v}if(w.Gmm){b[4]=Math.round(w.Gmm.v*100)}return b};
bY.$C=function(Z,S){var b=[],Y=0;for(var D=0;D<4;D++)b.push(bY.da(S,D));while(b.length<29)b.push([0,255,0,255,100]);
Z.Ml(0,2+10*29);k.xd(Z.data,Y,2);Y+=2;for(var D=0;D<29;D++){var P=b[D];for(var w=0;w<5;w++)k.xd(Z.data,Y+D*10+w*2,P[w])}Y+=29*10;
if(b.length==29)return Y;Z.Ml(Y,8+10*(b.length-29));k.ue(Z.data,Y,"Lvls");Y+=4;k.xd(Z.data,Y,3);Y+=2;
k.xd(Z.data,Y,b.length);Y+=2;var f=b.length-29;for(var D=0;D<f;D++){var P=b[29+D];for(var w=0;w<5;w++)k.xd(Z.data,Y+D*10+w*2,P[w])}Y+=10*f;
return Y};function hn(){}hn.Vq=function(Z){var S=new Uint8Array(Z),b=2,Y={LN:[],Vb:[]},P=k.zG(S,b,4);
b+=4;var w=k.gU(S,b);b+=2;var f=k.r(S,b);b+=4;Y.LN=bQ.en(S,b,f);b+=f;var h=k.r(S,b);b+=4;for(var D=0;
D<h;D++){var Q=k.r(S,b);b+=4;var e=b,l={p2:{},WF:{}};Y.Vb.push(l);b+=4;b+=gD.pP(S,l.p2,b);b+=4;b+=gD.pP(S,l.WF,b);
b=e+Q;var O=l.WF.blendOptions,m=l.WF.Lefx;if(O&&Object.keys(O.v).length>1){}if(m){if(m.v.masterFXSwitch==null)m.v.masterFXSwitch={t:"bool",v:!0};
ak.mV(m.v)}}return Y};hn.JF=function(Z,S){Z.p2.Nm.v=S};hn.$C=function(Z){var S=new ca,b=0;k.WA(S,b,2);
b+=2;k.Nm(S,b,"8BSL");b+=4;k.WA(S,b,3);b+=2;var Y=b;b+=4;b=bQ.f3(S,b,Z.LN);k.DK(S,Y,b-Y-4);var P=Z.Vb.length;
k.DK(S,b,P);b+=4;for(var D=0;D<P;D++){b+=4;var w=b,f=Z.Vb[D];k.DK(S,b,16);b+=4;b+=gD.GW(S,f.p2,b);var h=f.WF.Lefx;
if(h){f.WF.Lefx=JSON.parse(JSON.stringify(h));ak.Wm(f.WF.Lefx.v)}k.DK(S,b,16);b+=4;b+=gD.GW(S,f.WF,b);
if(h)f.WF.Lefx=h;k.DK(S,w-4,b-w)}return S.data.slice(0,b).buffer};function f_(){}f_.DD=function(Z,S,b){var Y=k.gU(Z,S);
S+=2;var P={};P.Ra=k.gU(Z,S)==1;S+=2;P.sB=[];for(var D=0;D<10;D++){var w=[];P.sB.push(w);for(var f=0;
f<4;f++)w.push(k.S1(Z,S+f*2));S+=8}var h=cL.VS("selc");h.Mthd.v.CrcM=P.Ra?"Absl":"Rltv";for(var D=1;
D<10;D++)f_.D2(h,D-1,P.sB[D]);return h};f_.fv="Rds Ylws Grns Cyns Bls Mgnt Whts Ntrl Blks".split(" ");
f_.PZ=function(Z,D){var S=["Cmps","Rd","Grn","Bl"],b={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:S[D]}}]};
return{classID:Z,Chnl:b}};f_.Wq=function(Z,S){var b=f_.fv;for(var D=0;D<Z.length;D++){var Y=Z[D].v,P=b.indexOf(Y.Clrs.v.Clrs);
if(P==S)return D}return-1};f_.D2=function(Z,S,b){var Y=["Cyn","Mgnt","Ylw","Blck"],P={classID:"ClrC",Clrs:{t:"enum",v:{Clrs:f_.fv[S]}}};
for(var w=0;w<4;w++)P[Y[w]]={t:"UntF",v:{type:"#Prc",val:b[w]}};P={t:"Objc",v:P};var f=Z.ClrC.v,h=f_.Wq(f,S);
if(h==-1)f.push(P);else f[h]=P};f_.da=function(Z,S){var b=[0,0,0,0],Y=Z.ClrC.v,P=f_.Wq(Y,S);if(P==-1)return b;
var w=["Cyn","Mgnt","Ylw","Blck"];for(var D=0;D<4;D++)if(Y[P].v[w[D]])b[D]=Y[P].v[w[D]].v.val;return b};
f_.ao=function(Z,S,b){var Y={Ra:b.Mthd.v.CrcM=="Absl",sB:[[0,0,0,0]]};for(var D=0;D<9;D++)Y.sB.push(f_.da(b,D));
Z.Ml(S,84);k.xd(Z.data,S,1);S+=2;k.xd(Z.data,S,Y.Ra?1:0);S+=2;for(var D=0;D<10;D++){var P=Y.sB[D];for(var w=0;
w<4;w++)k.IQ(Z.data,S+w*2,P[w]);S+=8}return 84};function hF(){}hF.VS=function(){return{NA:new b4(0,0,50,50),p2:"",rv:"play",b:T.Y.i9.ng([.1,.1,.9,.5,.1,.9],0)}};
hF.Vq=function(Z){Z=new Uint8Array(Z);var S=0,b=[],Y=Date.now(),P=k.zG(Z,0,4);S+=4;var w=k.r(Z,S);S+=4;
var f=k.r(Z,S);S+=4;for(var D=0;D<f;D++){var h=k.PJ(Z,S);S+=h.length*2+4+2;if((h.length&1)==0)S+=2;S=hF.Eq(Z,S,h,b)}return b};
hF.Eq=function(Z,S,b,Y){var P=k.r(Z,S);S+=4;var w=k.r(Z,S);S+=4;var f=S,h=k.yA(Z,f).mz;f+=h.length+1;
var Q=k.TD(Z,f);f+=16;var e=hF.yi(Z,f,w-(f-S)),l=T.Y.bM(e),O=T.z.$R(l),m=1/O.c,V=1/O.v;T.Y.$d(e,new fR(m,0,0,V,-O.x*m,-O.y*V));
Y.push({rv:b,p2:h,b:e,NA:Q});S+=w;return S};hF.JF=function(Z,S){Z.rv=S};hF.$C=function(Z){var S=new ca,b=0;
k.Nm(S,b,"cush");b+=4;k.DK(S,b,2);b+=4;k.DK(S,b,Z.length);b+=4;for(var D=0;D<Z.length;D++){var Y=Z[D],P=Y.rv+"\0";
k.d3(S,b,P);b+=4+P.length*2;if((P.length&1)==1)b+=2;k.DK(S,b,1);b+=4;b+=4;var w=b;k.Bn(S,b,Y.p2);b+=Y.p2.length+1;
k.bW(S,b,Y.NA);b+=16;S.Ml(b,Y.b.length*26);hF.nr(S.data,b,Y.b,1,1);b+=Y.b.length*26;var f=b-w;if((f&3)!=0)f+=4-(f&3);
k.DK(S,w-4,f);b=w+f}return S.data.slice(0,b).buffer};hF.alH=function(Z){var S=[];for(var D=0;D<Z.length;
D++){var b=Z[D],Y=b.type,P={type:Y};S.push(P);if(Y==6){}else if(Y==8)P.all=b.all;else if(Y==0||Y==3){P.length=b.length;
P.frule=b.qU;P.third=b.oY;P.prmA=b.uT;P.prmB=b.Y9}else{P.c=[b.hQ.x,b.hQ.y,b.I.x,b.I.y,b.e$.x,b.e$.y]}}return S};
hF.aa7=function(Z){var S=[];for(var D=0;D<Z.length;D++){var b=Z[D],Y=b.type,P={type:Y};S.push(P);if(Y==6){}else if(Y==8)P.all=b.all;
else if(Y==0||Y==3){P.length=b.length;P.qU=b.frule;P.oY=b.third;P.uT=b.prmA;P.Y9=b.prmB}else{var w=b.c;
P.hQ=new ar(w[0],w[1]);P.I=new ar(w[2],w[3]);P.e$=new ar(w[4],w[5])}}return S};hF.yi=function(Z,S,b,Y,P){if(Y==null)Y=1;
if(P==null)P=1;function w(K,z,t){var H=k.ao6(K,z)*t,i=Math.round(H);return Math.abs(H-i)<1e-6?i:H}var f=k.S1,h=[],Q=Math.floor(b/26);
for(var D=0;D<Q;D++){var e=S+D*26,l={},O=0;h.push(l);l.type=f(Z,e);e+=2;if(l.type==6){O=24}if(l.type==8){l.all=f(Z,e);
e+=2;O=22}if(l.type==0||l.type==3){l.length=f(Z,e);e+=2;l.qU=f(Z,e);e+=2;l.oY=f(Z,e);e+=2;l.uT=k.r(Z,e);
e+=4;l.Y9=k.r(Z,e);e+=4;O=10}if(l.type==1||l.type==2||l.type==4||l.type==5){var m,V;V=w(Z,e,P);e+=4;
m=w(Z,e,Y);e+=4;l.hQ=new ar(m,V);V=w(Z,e,P);e+=4;m=w(Z,e,Y);e+=4;l.I=new ar(m,V);V=w(Z,e,P);e+=4;m=w(Z,e,Y);
e+=4;l.e$=new ar(m,V);O=0}for(var q=0;q<O;q++)if(Z[e+q]!=0){console.log("Unexpected non-zero byte!",l,q,Z[e+q])}}return h};
hF.nr=function(Z,S,b,Y,P){var w=k.IQ,f=k.hS,h=b.length;for(var D=0;D<h;D++){var Q=S+D*26,e=b[D];w(Z,Q,e.type);
Q+=2;if(e.type==6){}if(e.type==8)w(Z,Q,e.all);if(e.type==0||e.type==3){w(Z,Q,e.length);Q+=2;w(Z,Q,e.qU);
Q+=2;w(Z,Q,e.oY);Q+=2}if(e.type==1||e.type==2||e.type==4||e.type==5){f(Z,Q,e.hQ.y/P);Q+=4;f(Z,Q,e.hQ.x/Y);
Q+=4;f(Z,Q,e.I.y/P);Q+=4;f(Z,Q,e.I.x/Y);Q+=4;f(Z,Q,e.e$.y/P);Q+=4;f(Z,Q,e.e$.x/Y);Q+=4}}};function hX(){}hX.Vq=function(Z){var S=new Uint8Array(Z),b=[],Y=0;
Y=hX.U2(S,Y,b);if(Y+3<S.length){b=[];Y=hX.U2(S,Y,b)}return b};hX.U2=function(Z,S,b){var Y=k.gU,P=k.S1,w=Y(Z,S);
S+=2;var f=Y(Z,S);S+=2;for(var D=0;D<f;D++){var h=hX.R0(Z,S);S+=10;if(w==2){h.mW=k.PJ(Z,S);S+=4+h.mW.length*2+2}b.push(h)}return S};
hX.R0=function(Z,S){var b=k.gU,Y=k.S1,P=b(Z,S),V=null;S+=2;var w=b(Z,S);S+=2;var f=b(Z,S);S+=2;var h=b(Z,S);
S+=2;var Q=b(Z,S);S+=2;var e=1/65535,l=255/65535,O=100/65535,m=255/1e4;if(P==0)V={h:w*l,l:f*l,O:h*l};
else if(P==1){V=T.Ta(w*e,f*e,h*e);V.h*=255;V.l*=255;V.O*=255}else if(P==2)V=T.W.CD({classID:"CMYC",Cyn:{t:"doub",v:100-w*O},Mgnt:{t:"doub",v:100-f*O},Ylw:{t:"doub",v:100-h*O},Blck:{t:"doub",v:100-Q*O}});
else if(P==7){var q=T.Hz(w/100,Y(Z,S-6)/100,Y(Z,S-4)/100);V=q}else if(P==8){V={h:255-w*m,l:255-f*m,O:255-h*m}}else throw"e "+P+", ";
return V};hX.$C=function(Z){var S=new ca,b=0,Y=k.WA;Y(S,b,2);b+=2;Y(S,b,Z.length);b+=2;for(var D=0;D<Z.length;
D++){var P=Z[D];S.Ml(b,10);hX.Mh(S.data,b,P);b+=10;var w=(P.mW?P.mW:"")+"\0";k.d3(S,b,w);b+=4+w.length*2}return S.data.slice(0,b).buffer};
hX.JF=function(Z,S){Z.mW=S};hX.Mh=function(Z,S,b){var Y=65535/255,P=k.xd;P(Z,S,0);P(Z,S+2,Math.round(b.h*Y));
P(Z,S+4,Math.round(b.l*Y));P(Z,S+6,Math.round(b.O*Y));P(Z,S+8,0)};function fM(){}fM.Vq=function(Z){var S=new Uint8Array(Z),b=4,Y={};
Y.ep=k.PJ(S,b);b+=4+Y.ep.length*2+2;Y.exp=S[b++]==1;Y.a_=[];var P=k.r(S,b);b+=4;for(var D=0;D<P;D++){var w={};
Y.a_.push(w);w.SU=k.gU(S,b);b+=2;w.shift=S[b++]==1;w.a7I=S[b++]==1;w.color=k.gU(S,b);b+=2;w.ep=k.PJ(S,b);
b+=4+w.ep.length*2+2;w.exp=S[b++]==1;w.a_=[];var f=k.r(S,b);b+=4;for(var h=0;h<f;h++){var Q={};w.a_.push(Q);
Q.exp=S[b++]==1;Q.Q=S[b++]==1;Q.aca=S[b++]==1;Q.amM=S[b++];var e=k.zG(S,b,4);b+=4;if(e=="TEXT"){Q.uf=fM.YM(S,b);
b+=4+Q.uf.length}else if(e=="long"){Q.uf=k.zG(S,b,4);b+=4}else throw"e";Q.km=fM.YM(S,b);b+=4+Q.km.length;
var l=k.Dk(S,b);b+=4;if(l==-1){Q.V1={};var O=gD.pP(S,Q.V1,b);b+=O}}}console.log(Y);var m=new Uint8Array(fM.$C(Y));
for(var D=0;D<m.length;D++)if(m[D]!=S[D]){console.log(S.length,m.length);var V=4*(D>>>2)-16;console.log(k.LO(S,V,64));
console.log(k.LO(m,V,64));console.log(S.slice(V,V+64));console.log(m.slice(V,V+64));throw D}return[Y]};
fM.YM=function(Z,S){var b=k.r(Z,S);return k.zG(Z,S+4,b)};fM.IY=function(Z,S,b){k.DK(Z,S,b.length);k.Nm(Z,S+4,b)};
fM.$C=function(Z){var S=new ca,b=0;k.DK(S,b,16);b+=4;k.d3(S,b,Z.ep+"\0");b+=4+Z.ep.length*2+2;S.Ml(b,1);
S.data[b++]=Z.exp?1:0;var Y=Z.a_.length;k.DK(S,b,Y);b+=4;for(var D=0;D<Y;D++){var P=Z.a_[D];k.WA(S,b,P.SU);
b+=2;S.Ml(b,2);S.data[b++]=P.shift?1:0;S.data[b++]=P.a7I?1:0;k.WA(S,b,P.color);b+=2;k.d3(S,b,P.ep+"\0");
b+=4+P.ep.length*2+2;S.Ml(b,1);S.data[b++]=P.exp?1:0;var w=P.a_.length;k.DK(S,b,w);b+=4;for(var f=0;
f<w;f++){var h=P.a_[f];S.Ml(b,4);S.data[b++]=h.exp?1:0;S.data[b++]=h.Q?1:0;S.data[b++]=h.aca?1:0;S.data[b++]=h.amM;
var Q="LqFy Avrg GEfc PbPl Fbrs Bokh LnCr".split(" ").indexOf(h.uf)!=-1;k.Nm(S,b,Q?"long":"TEXT");b+=4;
if(!Q){fM.IY(S,b,h.uf);b+=4+h.uf.length}else{k.Nm(S,b,h.uf);b+=4}fM.IY(S,b,h.km);b+=4+h.km.length;k.Fe(S,b,h.V1?-1:0);
b+=4;if(h.V1){var e=gD.GW(S,h.V1,b);b+=e}}}return S.data.slice(0,b).buffer};function bG(){}bG.Vq=function(Z){var S=new Uint8Array(Z),b=0,Y=k.r(S,b),Q;
b+=4;var P=k.zG(S,b,8);b+=8;var w=k.l2(S,b);b+=4;var f=k.l2(S,b);b+=4;var h=k.l2(S,b);b+=4;if(Y==2){Q=new Float32Array(Z,32,Z.byteLength-32>>>2)}else if(Y==3||Y==4){Q=new Float32Array(f*h*2);
var e=0,l=0,O=!0;b=Y==3?32:16+8+40;while(b<S.length){var m=k.l2(S,b);b+=4;if(O)l+=m;else{for(var D=0;
D<m;D++){Q[e+l+D<<1]=k.Td(S,b);Q[(e+l+D<<1)+1]=k.Td(S,b+4);b+=8}l+=m}O=!O;if(m!=0&&l==f){e+=f;l=0;O=!0;
if(e==f*h)break}}}else throw"unknown Mesh version: "+Y;return{Yu:f,XE:h,map:Q}};bG.TG=function(Z){var S=Z.Yu,b=Z.XE,Y=Z.map,P=new Uint8Array(32+b*S*8+b*8),w=0,f=0;
k.KI(P,w,3);w+=4;k.ue(P,w,"yfqLhseM");w+=8;k.Fu(P,w,2);w+=4;k.Fu(P,w,S);w+=4;k.Fu(P,w,b);w+=4;k.Fu(P,w,0);
w+=4;k.Fu(P,w,1);w+=4;for(var h=0;h<b;h++){k.Fu(P,w,0);w+=4;k.Fu(P,w,S);w+=4;for(var Q=0;Q<S;Q++){k.vy(P,w,Y[f]);
k.vy(P,w+4,Y[f+1]);f+=2;w+=8}}return P.buffer};function fD(){}fD.Vq=function(Z){var S=new Uint8Array(Z),b=0,Y=k.zG(S,b,4);
b+=4;var P=k.gU(S,b);b+=2;var w=k.r(S,b);b+=4;var f=[];for(var D=0;D<w;D++){var h=k.r(S,b);b+=4;var Q={classID:"ShpC",Nm:{t:"TEXT",v:""},Crv:{t:"VlLs",v:[]}};
f.push(Q);var e=k.PJ(S,b);Q.Nm.v=e;b+=4+e.length*2+2;var l=k.gU(S,b);b+=2;var O=k.gU(S,b);b+=2;for(var m=0;
m<O;m++){var V=T.$F.KX(0,0,!0);V.v.Vrtc.v=k.gU(S,b);b+=2;V.v.Hrzn.v=k.gU(S,b);b+=2;Q.Crv.v.push(V)}if(h==1){}else if(h==2){for(var m=0;
m<O;m++){Q.Crv.v[m].v.Cnty.v=S[b]==1;b+=1}}else throw"error";var q=k.r(S,b);b+=4;var K=k.r(S,b);b+=4}return f};
fD.JF=function(Z,S){Z.Nm.v=S};fD.$C=function(Z){var S=new ca,b=0;k.Nm(S,b,"8BFS");b+=4;k.WA(S,b,1);b+=2;
k.DK(S,b,Z.length);b+=4;for(var D=0;D<Z.length;D++){k.DK(S,b,2);b+=4;var Y=Z[D];k.d3(S,b,Y.Nm.v+"\0");
b+=4+Y.Nm.v.length*2+2;k.WA(S,b,2);b+=2;var P=Y.Crv.v.length;k.WA(S,b,P);b+=2;for(var w=0;w<P;w++){var f=Y.Crv.v[w];
k.WA(S,b,f.v.Vrtc.v);b+=2;k.WA(S,b,f.v.Hrzn.v);b+=2}S.Ml(b,P);for(var w=0;w<P;w++){S.data[b]=Y.Crv.v[w].v.Cnty.v;
b++}k.DK(S,b,0);b+=4;k.DK(S,b,0);b+=4}return S.data.slice(0,b).buffer};function bQ(){}bQ.Vq=function(Z){var S=new Uint8Array(Z),b=4,Y=k.gU(S,b);
b+=2;var P=k.r(S,b);b+=4;var w=[];for(var D=0;D<P;D++){var f={};w.push(f);b=bQ.OS(S,b,f)}return w};bQ.JF=function(Z,S){Z.name=S};
bQ.$C=function(Z){var S=new ca,b=0;k.Nm(S,b,"8BPT");b+=4;k.WA(S,b,1);b+=2;k.DK(S,b,Z.length);b+=4;for(var D=0;
D<Z.length;D++){b=bQ.KZ(S,b,Z[D])}return S.data.slice(0,b).buffer};bQ.en=function(Z,S,b){var Y=S+b,P=[];
while(S<Y){var w={},f=k.r(Z,S);S+=4;var h=S;S=bQ.OS(Z,S,w);if(!w.jL[1].h3())P.push(w);if(f%4!=0)f+=4-f%4;
S=h+f}return P};bQ.f3=function(Z,S,b){for(var D=0;D<b.length;D++){var Y=b[D];S+=4;var P=S;S=bQ.KZ(Z,S,Y);
var w=S-P;k.DK(Z,P-4,w);if(w%4!=0)P+=4-w%4;S=P+w}return S};bQ.OS=function(Z,S,b){var Y=k.r(Z,S);S+=4;
if(Y!=1)alert("Unknown version of pattern");var P=k.r(Z,S);S+=4;if(P!=1&&P!=2&&P!=3)console.log("Unsupported mode of pattern: "+P);
var w=k.gU(Z,S);S+=2;var f=k.gU(Z,S);S+=2;var h=new b4(0,0,f,w);b.name=k.PJ(Z,S);S+=4+2*b.name.length+2;
var Q=Z[S];S++;b.id=k.zG(Z,S,Q);S+=b.id.length;var e=-1;if(P==2){e=S;S+=3*256+4}var l=new T.XA(f*w);
S=bQ.aiV(Z,S,l);if(P==2){for(var D=0;D<l.h.length;D++){var O=3*l.h[D];l.h[D]=Z[e+O+0];l.l[D]=Z[e+O+1];
l.O[D]=Z[e+O+2]}}var m=T.f(h.X()*4);T.s$(l,m);b.jL=[m,h];return S};bQ.KZ=function(Z,S,b){var Y=b.jL[0],P=b.jL[1];
k.DK(Z,S,1);S+=4;k.DK(Z,S,3);S+=4;k.WA(Z,S,P.v);S+=2;k.WA(Z,S,P.c);S+=2;k.d3(Z,S,b.name+"\0");S+=4+2*b.name.length+2;
k.sL(Z,S,b.id.length);S++;k.Nm(Z,S,b.id);S+=b.id.length;var w=new T.XA(P.X());T.Tr(Y,w);S=bQ.a8j(Z,S,w,P);
return S};bQ.aiV=function(Z,S,b){var Y=S,P={_:null,o:[],aif:null,Ho:null},w=k.r(Z,S);S+=4;var f=k.r(Z,S);
S+=4;P._=k.TD(Z,S);S+=16;var h=k.r(Z,S);S+=4;for(var D=0;D<h+2;D++){var Q=k.r(Z,S);S+=4;if(Q==0)continue;
var e=k.r(Z,S);S+=4;if(e==0)continue;var l=k.r(Z,S);S+=4;var O=k.TD(Z,S);S+=16;var m=k.gU(Z,S);S+=2;
var V=Z[S];S++;var q=dk.Lc(!1,l,Z,O.c,O.v,S,V);if(D<h)P.o.push(q);if(D==h)P.aif=q;if(D==h+1)P.Ho=q;S+=e-23}if(!P._.h3()){if(P.o[0])b.h=P.o[0];
if(P.o[1])b.l=P.o[1];else b.l=P.o[0].slice(0);if(P.o[2])b.O=P.o[2];else b.O=P.o[0].slice(0);if(P.Ho)b.w=P.Ho;
else b.w.fill(255)}return S};bQ.a8j=function(Z,S,b,Y){var P=S,w={_:Y,o:[b.h,b.l,b.O],aif:null,Ho:b.w};
k.DK(Z,S,3);S+=4;k.DK(Z,S,0);S+=4;k.bW(Z,S,Y);S+=16;k.DK(Z,S,24);S+=4;for(var D=0;D<24+2;D++){var f=S,h=D<3||D==25?1:0;
k.DK(Z,S,h);S+=4;if(h==0)continue;k.DK(Z,S,0);S+=4;k.DK(Z,S,8);S+=4;k.bW(Z,S,Y);S+=16;k.WA(Z,S,8);S+=2;
k.sL(Z,S,1,1);S++;var Q=D<3?w.o[D]:w.Ho;Z.Ml(S,Y.X()+2);S=dk.BJ(!1,Q,Z.data,Y.c,Y.v,S,1);k.DK(Z,f+4,S-f-8)}k.DK(Z,P+4,S-P-8);
return S};function aN(){}aN.Vq=function(Z){var S=new Uint8Array(Z),b=0,Y=k.zG(S,b,4);b+=4;var P=k.gU(S,b);
b+=2;var w=[];if(P<=3){var f=k.gU(S,b);b+=2;for(var D=0;D<f;D++){var h=S[b++],Q=k.zG(S,b,h);b+=h;var e=aN.Q7(S,b,Q),l=e[0];
b=e[1];w.push(l);b+=6}}else{var e={},O=gD.pP(S,e,b+4),m=e.GrdL.v;for(var D=0;D<m.length;D++)w[D]=m[D].v.Grad.v}return w};
aN.JF=function(Z,S){Z.Nm.v=S};aN.$C=function(Z){var S=new ca,b=0;k.Nm(S,b,"8BGR");b+=4;k.WA(S,b,5);b+=2;
k.DK(S,b,16);b+=4;var Y={classID:"null",GrdL:{t:"VlLs",v:[]}},P=Y.GrdL.v;for(var D=0;D<Z.length;D++)P[D]={t:"Objc",v:{classID:"Grdn",__name:"Gradient ",Grad:{t:"Objc",v:Z[D]}}};
b+=gD.GW(S,Y,b);return S.data.slice(0,b).buffer};aN.Q7=function(Z,S,b){var Y={classID:"Grdn",Clrs:{t:"VlLs",v:[]},GrdF:{t:"enum",v:{GrdF:"CstS"}},Intr:{t:"doub",v:4096},Nm:{t:"TEXT",v:b},Trns:{t:"VlLs",v:[]}},P=k.gU(Z,S);
S+=2;if(P==0)throw"e";for(var D=0;D<P;D++){var w=k.r(Z,S),f=k.r(Z,S+4),h=hX.R0(Z,S+8),Q={t:"Objc",v:{classID:"Clrt",Clr:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:h.h},Grn:{t:"doub",v:h.l},Bl:{t:"doub",v:h.O}}},Type:{t:"enum",v:{Clry:"UsrS"}},Lctn:{t:"long",v:w},Mdpn:{t:"long",v:f}}};
Y.Clrs.v.push(Q);S+=20}var e=k.gU(Z,S);S+=2;for(var D=0;D<e;D++){var w=k.r(Z,S),f=k.r(Z,S+4),l=k.gU(Z,S+8),Q={t:"Objc",v:{classID:"TrnS",Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(100*l/255)}},Lctn:{t:"long",v:w},Mdpn:{t:"long",v:f}}};
Y.Trns.v.push(Q);S+=10}return[Y,S]};aN.ahS=function(Z,S,b){var Y=b.Clrs.v.length;k.WA(Z,S,Y);S+=2;for(var D=0;
D<Y;D++){var P=b.Clrs.v[D];k.DK(Z,S,P.v.Lctn.v);k.DK(Z,S+4,P.v.Mdpn.v);k.WA(Z,S+8,0);var w=T.W.RQ(T.W.CD(P.v.Clr.v)),f=[w.Rd.v,w.Grn.v,w.Bl.v,0];
for(var h=0;h<4;h++)k.WA(Z,S+10+h*2,Math.round(65535*(f[h]/255)));S+=20}var Q=b.Trns.v.length;k.WA(Z,S,Q);
S+=2;for(var D=0;D<Q;D++){var P=b.Trns.v[D];k.DK(Z,S,P.v.Lctn.v);k.DK(Z,S+4,P.v.Mdpn.v);k.WA(Z,S+8,Math.round(255*P.v.Opct.v.val/100));
S+=10}return S};function ae(){}ae.Vq=function(Z){var S=new Uint8Array(Z),b=[],Y=[],P=[],w=[],f=[],h=0,Q=k.zG(S,h,4);
h+=4;var e=k.r(S,h);h+=4;var l=k.r(S,h);h+=4;while(h<S.length){var O=k.zG(S,h,4);h+=4;var m=k.zG(S,h,4);
h+=4;var V=k.r(S,h);h+=4;if(m=="tppa"){Y=bQ.en(S,h,V);h+=V}else if(m=="tpbd"){P=fK.WU(S,h,V,1,1);h+=V}else if(m=="tptp"){var q=k.r(S,h);
h+=4;for(var D=0;D<q;D++){var K=k.PJ(S,h);h+=6+K.length*2;h+=4;var z={};h+=gD.pP(S,z,h);b.push([K,z])}while((h&3)!=0)h++}else if(m=="tpsh"){var t=h,H=S.slice(h,h+V);
while(h<t+V){var i=k.r(S,h);h+=4;h=hF.Eq(S,h,"Shape",w)}h=t+V}else if(m=="tpst"){var t=h;h+=4;while(h<t+V){var y=k.r(S,h);
h+=4;var j=h,J=k.r(S,h);h+=4;var z={p2:{},WF:{}};f.push(z);h+=4;h+=gD.pP(S,z.p2,h);h+=4;h+=gD.pP(S,z.WF,h);
h=j+y;var A=z.WF.Lefx;if(A){if(A.v.masterFXSwitch==null)A.v.masterFXSwitch={t:"bool",v:!0};ak.mV(A.v)}}h=t+V}else{console.log(S.slice(h-8,h+64));
console.log(k.zG(S,h-8,64));throw m}}return{qr:P,kT:Y,list:b,a88:w,Vb:f}};ae.JF=function(Z,S){Z[0]=S};
ae.$C=function(Z){var S=new ca,b=0;k.Nm(S,b,"8BTP");b+=4;k.DK(S,b,3);b+=4;k.DK(S,b,1);b+=4;var Y=[Z.kT,Z.qr,Z.list];
for(var D=0;D<3;D++){if(Y[D].length==0)continue;k.Nm(S,b,"8BIM");b+=4;var P=["tppa","tpbd","tptp"][D];
k.Nm(S,b,P);b+=4;var w=b;b+=4;if(P=="tppa"){b=bQ.f3(S,b,Z.kT)}else if(P=="tpbd"){b=fK.uV(S,b,Z.qr)}else if(P=="tptp"){k.DK(S,b,Z.list.length);
b+=4;for(var f=0;f<Z.list.length;f++){var h=Z.list[f];k.d3(S,b,h[0]+"\0");b+=6+h[0].length*2;k.DK(S,b,16);
b+=4;b+=gD.GW(S,h[1],b)}}k.DK(S,w,b-w-4);while((b&3)!=0)b++;S.Ml(b,0)}return S.data.slice(0,b).buffer};
function c3(){}c3.Vq=function(Z,S){var b=new Uint8Array(Z),Y;if(k.r(b,0)==b.length)Y="icc";else if(b[0]=="<".charCodeAt(0))Y="look";
else if(k.Ve(b,"LUT_3D_SIZE")!=-1)Y="cube";else Y="3DL";if(Y!="icc"){var P=c3.a2x(b,Y),w=c3.ajs(P[0],P[1]);
b=w}var f=[];for(var D=0;D<b.length;D++)f.push(b[D]);return[{classID:"null",Dthr:{t:"bool",v:!0},Nm:{t:"TEXT",v:S?S:"file.icc"},lookupType:{t:"enum",v:{colorLookupType:"abstractProfile"}},profile:{t:"tdta",v:f}}]};
c3.$C=function(Z){var S=Z[0],b=new Uint8Array(S.profile.v);return b.buffer};c3.JF=function(Z,S){Z.Nm.v=S};
c3.ajs=function(Z,S){var b=new ca,Y=128;b.Ml(0,128);var P=[0,0,14,204,65,68,66,69,4,0,0,0,108,105,110,107,82,71,66,32,82,71,66,32,7,227,0,7,0,27,0,8,0,6,0,49,97,99,115,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,214,0,1,0,0,0,0,211,45,65,68,66,69,219,126,245,21,206,223,186,23,165,212,201,219,250,10,33,62];
for(var D=0;D<P.length;D++)b.data[D]=P[D];var w=["desc","A2B0"],f=w.length,h=128+4+f*12;k.DK(b,Y,f);
Y+=4;for(var Q=0;Q<f;Q++){var e=w[Q];k.Nm(b,Y,e);Y+=4;k.DK(b,Y,h);Y+=4;var l=h;if(e=="desc"){k.Nm(b,l,"mluc");
l+=4;l+=4;k.DK(b,l,1);l+=4;k.DK(b,l,12);l+=4;k.Nm(b,l,"enUS");l+=4;var O="ICC by Photopea\0",m=O.length*2+2;
k.DK(b,l,m);l+=4;k.DK(b,l,28);l+=4;b.Ml(l,m);for(var D=0;D<O.length;D++)b.data[l+D*2+1]=O.charCodeAt(D);
l+=m}if(e=="A2B0"){k.Nm(b,l,"mAB ");l+=4;l+=4;b.Ml(l,4);b.data[l]=3;b.data[l+1]=3;l+=4;b.Ml(l,4*5);l+=4*3;
k.DK(b,l,l+8-h);l+=4;l+=4;b.Ml(l,20);b.data[l]=Z;b.data[l+1]=Z;b.data[l+2]=Z;l+=16;b.data[l]=2;l+=4;
var V=Z*Z*Z*3;b.Ml(l,V*2);for(var D=0;D<V;D++)k.xd(b.data,l+D*2,Math.max(0,Math.min(65535,Math.round(S[D]*65535))));
l+=V*2}var q=l-h;while((q&3)!=0)q++;k.DK(b,Y,q);Y+=4;h+=q}k.DK(b,0,h);return b.data.slice(0,h)};c3.a2x=function(Z,S){S="LUTFormat"+S.toUpperCase();
var b=[],Y=0,P=k.cP(Z,0,Z.length),w="";for(var D=0;D<Z.length&&w=="";D++){if(Z[D]==10)w="\n";else if(Z[D]==13){w="\r";
if(Z[D+1]==10)w+="\n"}}if(S=="LUTFormatCUBE"){var f=P.split(w);for(var D=0;D<f.length;D++){if(f[D]==""||f[D][0]=="#")continue;
var h=f[D].split(" "),Q=h[0];if(Q=="LUT_3D_SIZE"){Y=parseInt(h[1]);continue}if(["TITLE","DOMAIN_MIN","DOMAIN_MAX"].indexOf(Q)!=-1)continue;
b.push(parseFloat(h[0]),parseFloat(h[1]),parseFloat(h[2]))}b=c3.YT(Y,b)}else if(S=="LUTFormat3DL"){var f=P.split(w),e=1/4095;
for(var D=0;D<f.length;D++){var l=f[D];if(l==""||l=="3DMESH"||l.startsWith("Mesh")||l[0]=="#")continue;
var h=l.split(" "),Q=h[0];if(Y==0){Y=h.length;continue}b.push(parseFloat(h[0])*e,parseFloat(h[1])*e,parseFloat(h[2])*e)}}else if(S=="LUTFormatLOOK"){var O=new DOMParser,m=O.parseFromString(P,"text/xml"),V=m.getElementsByTagName("LUT")[0],q=V.children[0].textContent;
Y=parseInt(JSON.parse(q));var K=V.children[1].textContent;K=K.replace(/"/g,"").replace(/\s/g,"");var z=3*Y*Y*Y,t=z*4,H=new Uint8Array(t);for(var D=0;D<t;D++){var i=K.charCodeAt(D*2),y=K.charCodeAt(D*2+1),j=i<58?i-48:i-55,J=y<58?y-48:y-55;H[D]=(j<<4)+J}for(var D=0;D<z;D++)b.push(k.Td(H,D<<2));b=c3.YT(Y,b)}else throw S;return[Y,b]};c3.aeu=function(Z,S,b){var Y=["#Created by www.Photopea.com","TITLE \""+b+"\"","","#LUT size","LUT_3D_SIZE "+S,"","#data domain","DOMAIN_MIN 0.0 0.0 0.0","DOMAIN_MAX 1.0 1.0 1.0","","#LUT data points"],P=6;
for(var D=0;D<Z.length;D+=3){Y.push(Z[D].toFixed(P)+" "+Z[D+1].toFixed(P)+" "+Z[D+2].toFixed(P))}Y.push("");
return k.IN(Y.join("\n")).buffer};c3.YT=function(Z,S){var b=[],Y=Z*Z*Z;for(var D=0;D<Y;D++)b.push(0,0,0);
for(var P=0;P<Z;P++)for(var w=0;w<Z;w++)for(var f=0;f<Z;f++){var D=3*(f+w*Z+P*Z*Z),h=3*(P+w*Z+f*Z*Z);
b[h]=S[D];b[h+1]=S[D+1];b[h+2]=S[D+2]}return b};function gD(){}gD.pP=function(Z,S,b,Y,P){var w=b,f;if(P==null)P=0;
var h=k.r(Z,b);if(h==0){f="";b+=4}else{f=k.PJ(Z,b);b+=4+2*f.length+2}if(f!="")S.__name=f;S.classID=gD.ba(Z,b);
if(Y)console.log("\t".repeat(P),"- reading descriptor",S.classID,b);b+=gD.Vm(Z,b);var Q=k.Dk(Z,b);b+=4;
for(var D=0;D<Q;D++){var e=gD.ba(Z,b);b+=gD.Vm(Z,b);var l=gD.X9(Z,b,Y,P);S[e]=l;b+=l.size;delete l.size}return b-w};
gD.GW=function(Z,S,b,Y){var P=b,w=S.__name;if(w==null)w="";w+="\0";k.d3(Z,b,w);b+=4+2*w.length;gD.uw(Z,b,S.classID);
b+=gD.Vm(Z.data,b);k.Fe(Z,b,Object.keys(S).length-1-(S.__name==null?0:1));b+=4;for(var f in S){if(f=="classID")continue;
if(f=="__name")continue;gD.uw(Z,b,f);b+=gD.Vm(Z.data,b);b+=gD.WZ(Z,b,S[f])}return b-P};gD.X9=function(Z,S,b,Y){var P=S,w=k.zG(Z,S,4);
S+=4;var f={size:0,t:w,v:null};if(b)console.log("\t".repeat(Y),"reading key",w,P);switch(w){case"obj ":case"VlLs":f.v=[];
var h=k.r(Z,S);S+=4;for(var D=0;D<h;D++){var Q=gD.X9(Z,S,b,Y+1);S+=Q.size;delete Q.size;f.v.push(Q)}break;
case"UntF":f.v={type:k.zG(Z,S,4),val:k.j4(Z,S+4)};S+=12;break;case"doub":f.v=k.j4(Z,S);S+=8;break;case"bool":f.v=Z[S]==1;
S+=1;break;case"long":f.v=k.Dk(Z,S);S+=4;break;case"comp":f.v=k.Dk(Z,S+4);S+=8;break;case"Objc":f.v={};
var e=gD.pP(Z,f.v,S,b,Y+1);S+=e;break;case"TEXT":var l=k.r(Z,S);if(l==0){f.v="";S+=4}else{f.v=k.PJ(Z,S);
S+=4+f.v.length*2+2}break;case"enum":var O=gD.ba(Z,S);S+=gD.Vm(Z,S);var m=gD.ba(Z,S);S+=gD.Vm(Z,S);f.v={};
f.v[O]=m;break;case"tdta":var V=k.Dk(Z,S);S+=4;f.v=[];for(var D=0;D<V;D++)f.v.push(Z[S+D]);S+=V;break;
case"ObAr":var q=k.r(Z,S);S+=4;var K=k.PJ(Z,S);S+=4+2*K.length+2;if(K!="")throw K;var z=gD.ba(Z,S);S+=4+Math.max(4,z.length);
f.v={classID:z,arr:[]};var t=k.r(Z,S);S+=4;for(var D=0;D<t;D++){var z=gD.ba(Z,S);S+=4+Math.max(4,z.length);
var O=k.zG(Z,S,4);S+=4;var H=k.zG(Z,S,4);S+=4;var i={id:z,type:O,uID:H,arr:[]};f.v.arr.push(i);var y=k.r(Z,S,4);
S+=4;for(var j=0;j<y;j++){var J=k.j4(Z,S);S+=8;i.arr.push(J)}}break;case"Pth ":var A=S,V=k.r(Z,S);S+=4;
var a=k.zG(Z,S,4);S+=4;var I=k.l2(Z,S);S+=4;var E=k.a4Z(Z,S);S+=4+E.length*2;f.v={sig:a,pth:E};break;
case"Clss":case"type":case"rele":var E=k.PJ(Z,S);S+=4+E.length*2+2;var c=gD.ba(Z,S);S+=4+Math.max(4,c.length);
f.v={classID:c};if(E!="")f.v.__name=E;if(w=="rele"){f.v.val=k.Dk(Z,S);S+=4}break;case"prop":case"Enmr":case"indx":case"name":var u=gD.y9[w],E=k.PJ(Z,S);
S+=4+E.length*2+2;if(E.length!=0){console.log(w,E);throw"e"}f.v={};for(var D=0;D<u.length;D++){var c=gD.ba(Z,S);
S+=4+Math.max(4,c.length);f.v[u[D]]=c}if(w=="name"){var E=k.PJ(Z,S);S+=4+E.length*2+2;f.v.val=E}if(w=="indx"){f.v.val=k.r(Z,S);
S+=4}break;case"alis":var V=k.r(Z,S);S+=4;f.v=k.zG(Z,S,V);S+=V;break;default:{console.log("unknown oskey: "+w+", "+P);
throw"e";return f}}if(b){console.log("\t".repeat(Y),f.v);console.log("\t".repeat(Y),"======",S)}f.size=S-P;
return f};gD.y9={name:["classID"],prop:["classID","keyID"],Enmr:["classID","typeID","enum"],indx:["classID"]};
gD.WZ=function(Z,S,b){var Y=S,P=b.t;b=b.v;k.Nm(Z,S,P);S+=4;switch(P){case"obj ":case"VlLs":k.Fe(Z,S,b.length);
S+=4;for(var w=0;w<b.length;w++){var f=gD.WZ(Z,S,b[w]);S+=f}break;case"UntF":k.Nm(Z,S,b.type);k.LW(Z,S+4,b.val);
S+=12;break;case"doub":k.LW(Z,S,b);S+=8;break;case"bool":k.sL(Z,S,b?1:0,1);S+=1;break;case"long":k.Fe(Z,S,b);
S+=4;break;case"comp":k.Fe(Z,S+4,b);S+=8;break;case"Objc":var f=gD.GW(Z,b,S);S+=f;break;case"TEXT":k.d3(Z,S,b+"\0");
S+=4+b.length*2+2;break;case"enum":var h=Object.keys(b)[0],Q=b[h];gD.uw(Z,S,h);S+=gD.Vm(Z.data,S);gD.uw(Z,S,Q);
S+=gD.Vm(Z.data,S);break;case"tdta":k.DK(Z,S,b.length);S+=4;k.Is(Z,S,b);S+=b.length;break;case"ObAr":k.DK(Z,S,b.arr[0].arr.length);
S+=4;k.d3(Z,S,"\0");S+=6;gD.uw(Z,S,b.classID);S+=4+Math.max(4,b.classID.length);k.DK(Z,S,b.arr.length);
S+=4;for(var D=0;D<b.arr.length;D++){var e=b.arr[D];gD.uw(Z,S,e.id);S+=4+Math.max(4,e.id.length);k.Nm(Z,S,e.type);
S+=4;k.Nm(Z,S,e.uID);S+=4;k.DK(Z,S,e.arr.length);S+=4;for(var w=0;w<e.arr.length;w++){k.LW(Z,S,e.arr[w]);
S+=8}}break;case"Pth ":var l=b.pth.length*2+4+8;k.DK(Z,S,l);S+=4;k.Nm(Z,S,b.sig);S+=4;k.xo(Z,S,l);S+=4;
k.amk(Z,S,b.pth);S+=b.pth.length*2+4;break;case"Clss":case"type":case"rele":var O=b.__name;if(O==null)O="";
k.d3(Z,S,O+"\0");S+=4+O.length*2+2;var m=b.classID;gD.uw(Z,S,m);S+=4+Math.max(4,m.length);if(P=="rele"){k.Fe(Z,S,b.val);
S+=4}break;case"prop":case"Enmr":case"indx":case"name":var V=gD.y9[P];k.DK(Z,S,1);S+=6;for(var D=0;D<V.length;
D++){var m=b[V[D]];gD.uw(Z,S,m);S+=4+Math.max(4,m.length)}if(P=="name"){k.d3(Z,S,b.val+"\0");S+=4+b.val.length*2+2}if(P=="indx"){k.DK(Z,S,b.val);
S+=4}break;case"alis":var l=b.length;k.DK(Z,S,l);S+=4;k.Nm(Z,S,b);S+=l;break;default:console.log("unknown oskey: "+P);
S=Y;break}return S-Y};gD.ba=function(Z,S){var b=k.Dk(Z,S);if(b>1e3)throw"e";if(b==0)b=4;return k.zG(Z,S+4,b).trim()};
gD.Vm=function(Z,S){var b=k.Dk(Z,S);return b==0?8:4+b};gD.uw=function(Z,S,b){var Y="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 box flow trim then else".split(" "),P=4<b.length||Y.indexOf(b)!=-1;
k.Fe(Z,S,P?b.length:0);k.Nm(Z,S+4,b);if(b.length<4&&!P){var w="";for(var D=b.length;D<4;D++)w+=" ";k.Nm(Z,S+4+b.length,w)}};
gD.a5g=function(Z){var S={};for(var b in Z){if(b=="classID")S[b]=Z[b];else if(b=="__name")S[b]=Z[b];
else S[b]=gD.g0(Z[b])}return S};gD.g0=function(Z){if(Z.QX=="Objc")return gD.a5g(Z.v);else if(Z.QX=="VlLs"){var S=[];
for(var D=0;D<Z.v.length;D++)S.push(gD.g0(Z.v[D]));return S}else if(Z.QX=="UntF")return Z.v.val;else return Z.v};
function ak(){}ak.wq=function(Z,S,b,Y,P,w){while(S<b){var f=k.zG(Z,S,4);S+=4;if(f!="8BIM"&&f!="8B64"){console.log("layer information signature error! "+f,"PSB = "+P);
alert("Error in PSD file: wrong signature.");return b}var h=k.zG(Z,S,4);S+=4;var Q=k.r(Z,S);S+=4;var e=P&&"LMsk Lr16 Lr32 Layr Mt16 Mt32 Mtrn Alph FMsk lnk2 lnkE FEid FXid PxSD extn cinf artd pths".split(" ").indexOf(h)!=-1;
if(e){Q=Q<<32|k.Dk(Z,S);S+=4}var l=["lrFX","PlLd"];if(l.indexOf(h)!=-1){if(Q%4!=0)Q+=4-Q%4;S+=Q;continue}switch(h){case"iOpa":Y[h]=Z[S];
break;case"brst":Y[h]=[1,1,1];for(var D=0;D<Q;D+=4)Y[h][k.r(Z,S+D)]=0;break;case"knko":Y[h]=Z[S];break;
case"infx":Y[h]=Z[S];break;case"clbl":Y[h]=Z[S];break;case"lmgm":Y[h]=Z[S];break;case"vmgm":Y[h]=Z[S];
break;case"lyid":Y[h]=k.r(Z,S);break;case"lsct":Y[h]={type:k.r(Z,S)};if(Q>=12)Y[h].WL=k.zG(Z,S+8,4);
break;case"lsdk":Y.lsct={type:k.r(Z,S)};break;case"lyvr":Y[h]=k.r(Z,S);break;case"lnsr":var O={artb:1,bgnd:1,cont:1,layr:1,lset:1,rend:1,shap:1,user:1,____:null};
Y[h]=k.zG(Z,S,4);break;case"lspf":Y[h]=k.r(Z,S);break;case"lclr":Y[h]=k.gU(Z,S);break;case"luni":Y[h]=k.U9(Z,S);
break;case"fxrp":Y[h]=new ar(k.j4(Z,S),k.j4(Z,S+8));break;case"artb":case"artd":Y[h]={};gD.pP(Z,Y[h],S+4);
break;case"SoCo":Y[h]={};gD.pP(Z,Y[h],S+4);break;case"GdFl":Y[h]={};gD.pP(Z,Y[h],S+4);ak.b$(Y[h],h);
break;case"PtFl":Y[h]={};gD.pP(Z,Y[h],S+4);ak.b$(Y[h],h);break;case"CgEd":var m=Y.brit=cL.VS("brit"),V={};
gD.pP(Z,V,S+4);m.Brgh.v=V.Brgh?V.Brgh.v:0;m.Cntr.v=V.Cntr?V.Cntr.v:0;m.useLegacy.v=V.useLegacy?V.useLegacy.v:0;
break;case"brit":if(Y.brit==null){var m=Y.brit=cL.VS("brit"),V={};m.Brgh.v=k.S1(Z,S);m.Cntr.v=k.S1(Z,S+2);
m.useLegacy.v=!1}break;case"levl":var q=Z.buffer.slice(S,S+Q);Y[h]=bY.Vq(q);break;case"curv":Y[h]=iS.DD(Z,S,Q);
break;case"expA":var K=k.gU(Z,S),z=Y[h]=cL.VS("expA");z.Exps.v=k.Wi(Z,S+2);z.Ofst.v=k.Wi(Z,S+6);z.gammaCorrection.v=k.Wi(Z,S+10);
break;case"vibA":Y[h]={};gD.pP(Z,Y[h],S+4);break;case"hue2":Y[h]=iD.DD(Z,S,Q);break;case"blnc":var z=Y[h]=cL.VS(h);
z.PrsL.v=Z[S+18]==1;var t=["ShdL","MdtL","HghL"];for(var D=0;D<3;D++)for(var H=0;H<3;H++)z[t[D]].v[H].v=k.S1(Z,S+D*6+H*2);
break;case"blwh":var i={};gD.pP(Z,i,S+4);var z=cL.VS(h),y="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" ");
for(var D=0;D<y.length;D++){z[y[D]]=i[y[D]];delete i[y[D]]}Y[h]=z;break;case"phfl":var z=Y[h]=cL.VS(h),j=z.Clr.v,K=k.gU(Z,S);
if(K==3){var J=[k.r(Z,S+2),k.r(Z,S+6),k.r(Z,S+10)],A=32768,a=T.TO(J[0]/A,J[1]/A,J[2]/A);j.Lmnc.v=a.lq;
j.A.v=a.w;j.B.v=a.O}if(K==2){var I=k.gU(Z,S+2);if(I!=7)throw"e";j.Lmnc.v=k.S1(Z,S+4)/100;j.A.v=k.S1(Z,S+6)/100;
j.B.v=k.S1(Z,S+8)/100}var E=S+2+(K==3?12:10);z.Dnst.v=k.r(Z,E);E+=4;z.PrsL.v=Z[E]==1;break;case"mixr":var c={hE:k.gU(Z,S+2)==1,G:[]};
for(var D=0;D<20;D++)c.G.push(k.S1(Z,S+4+D*2));Y[h]=g3.Ym(c);break;case"clrL":case"rplc":Y[h]={};gD.pP(Z,Y[h],S+6);
break;case"nvrt":Y[h]={};break;case"post":Y[h]=cL.VS("post");Y[h].Lvls.v=k.gU(Z,S);break;case"thrs":Y[h]=cL.VS("thrs");
Y[h].Lvl.v=k.gU(Z,S);break;case"grdm":var u={rev:Z[S+2]==1,a1s:Z[S+3]==1},n=S+4,o=k.U9(Z,n);n+=4+o.length*2;
var x=aN.Q7(Z,n,o),g=x[0];n=x[1];var v=k.gU(Z,n);n+=2;g.Intr.v=k.gU(Z,n);n+=2;var R=k.gU(Z,n);n+=2;u.mode=k.gU(Z,n);
n+=2;u.Nz=k.r(Z,n);n+=4;u.ajM=k.gU(Z,n)==1;n+=2;u.amK=k.gU(Z,n)==1;n+=2;u.a8Z=k.r(Z,n);n+=4;u.aoQ=k.gU(Z,n);
n+=2;u.Ne=[];for(var D=0;D<4;D++)u.Ne.push(k.gU(Z,n+D*2));n+=8;u.hu=[];for(var D=0;D<4;D++)u.hu.push(k.gU(Z,n+D*2));
n+=8;var X=k.gU(Z,n);n+=2;var B=cL.VS("grdm");B.Rvrs.v=u.rev;B.Grad.v=g;Y[h]=B;break;case"selc":Y[h]=f_.DD(Z,S,Q);
break;case"vmsk":case"vsms":var r=Y.vmsk=new F.NS,N=k.Dk(Z,S+4),$=(N>>0&1)==1;r.kF=(N>>1&1)==0;r.isEnabled=(N>>2&1)==0;
r.b=hF.yi(Z,S+8,Q-8,w.c,w.v);break;case"shmd":Y[h]={};var eQ=k.r(Z,S),E=S+4;for(var D=0;D<eQ;D++){var f=k.zG(Z,E,4);
E+=4;var hN=k.zG(Z,E,4);E+=4;var bI=Z[E];E++;if(Math.max(Z[E],Z[E+1],Z[E+2])!=0)throw"e";E+=3;var fq=k.r(Z,E);
E+=4;if(hN=="cust"||hN=="cmls"||hN=="extn"||hN=="mlst"){var e9=k.r(Z,E);if(e9!=16)E+=4;if(k.r(Z,E)==16){var i={};
gD.pP(Z,i,E+4,!1);Y[h][hN]=i;if(hN=="cmls")dK.L6.a2m(Y[h][hN])}}else{console.log("unknown shmd key: "+hN+", size: "+fq)}E+=fq}break;
case"shpa":var K=k.r(Z,S),W=k.r(Z,S+4);if(W!=0)console.log("some patterns present!");break;case"TySh":var L=Y[h]={},K=k.gU(Z,S);
L.A=k.Nw(Z,S+2);var bd=k.gU(Z,S+2+48);L.Uh={};var iw=gD.pP(Z,L.Uh,S+56),d7=eO.Kr();for(var d0 in d7)if(L.Uh[d0]==null)L.Uh[d0]=d7[d0];
L.Km={};var gS=gD.pP(Z,L.Km,S+56+iw+6);L.az=k.a5F(Z,S+56+iw+6+gS);L.HK=bc.Vq(L.Uh.EngineData.v);eO.am7(L.HK.EngineDict.StyleRun.RunArray);
if(L.HK.ResourceDict==null)L.HK.ResourceDict=JSON.parse(JSON.stringify(L.HK.DocumentResources));delete L.Uh.EngineData;
break;case"lfx2":case"lmfx":case"lfxs":var cf=k.r(Z,S),cT=k.r(Z,S+4);Y.lmfx={};var iw=gD.pP(Z,Y.lmfx,S+8);
ak.mV(Y.lmfx);break;case"FMsk":Y[h]=k.NR(Z,S,Q);break;case"Txt2":Y[h]={};Y[h].raw=k.NR(Z,S,Q);Y[h].gH=hg.Vq(Y[h].raw);
break;case"Patt":Y[h]=bQ.en(Z,S,Q);break;case"SoLd":var fU=k.zG(Z,S,4),dX=k.r(Z,S+4),g$=k.r(Z,S+8);Y[h]={};
var bX=gD.pP(Z,Y[h],S+12);if(Y[h].nonAffineTransform==null)Y[h].nonAffineTransform=JSON.parse(JSON.stringify(Y[h].Trnf));
if(Y[h].Impr==null)Y[h].Impr={t:"Objc",v:{__name:"None",classID:"none"}};break;case"vstk":case"pths":var dX=k.r(Z,S);
Y[h]={};var bX=gD.pP(Z,Y[h],S+4);break;case"vscg":var hN=k.zG(Z,S,4),dX=k.r(Z,S+4);Y[hN]={};var bX=gD.pP(Z,Y[hN],S+8);
ak.b$(Y[hN],hN);break;case"vogk":var aw=k.r(Z,S),dX=k.r(Z,S+4);Y[h]={};var bX=gD.pP(Z,Y[h],S+8);Y[h]=Y[h].keyDescriptorList.v;
for(var D=0;D<Y[h].length;D++){}break;case"lnk2":case"lnkD__":case"lnk3__":Y[h]=[];var n=S;while(n<S+Q){var hP=new F.yq;
Y[h].push(hP);var R=k.JX(Z,n);n+=8;var eG=n;hP.type=k.zG(Z,n,4);n+=4;if(hP.type!="liFD"){alert("Unknown Linked Layer type: "+hP.type);
break;throw hP.type}hP.du=k.r(Z,n);n+=4;var eB=k.yA(Z,n);n+=1+eB.mz.length;hP.sx=eB.mz;hP.JB=k.PJ(Z,n);
n+=4+hP.JB.length*2+2;hP.uR=k.zG(Z,n,4);n+=4;hP.Tw=k.zG(Z,n,4);n+=4;var bb=k.JX(Z,n);n+=8;hP.open=Z[n];
n+=1;if(hP.open!=0){var gx={},iw=gD.pP(Z,gx,n+4);if(iw%4!=0)iw+=4-iw%4;console.log(gx);n+=iw+4}hP.open=0;
hP.raw=k.NR(Z,n,bb);n=eG+R;if(R%4!=0)n+=4-R%4}break;case"FEid":var n=S;Y[h]=[];var er=n+Q,K=k.r(Z,n);
n+=4;while(n<er){n+=4;var R=k.r(Z,n);n+=4;var x={};Y[h].push(x);x.id=k.yA(Z,n).mz;n+=x.id.length+1;var K=k.r(Z,n);
n+=4;n+=4;var ea=k.r(Z,n);n+=4;x.rect=k.TD(Z,n);n+=16;var hD=k.r(Z,n);n+=4;var bP=k.r(Z,n);n+=4;var iz=new T.XA(0);
for(var D=0;D<bP+2;D++){var iq=k.r(Z,n);n+=4;if(iq!=0){n+=4;var cU=k.r(Z,n),aH=null;n+=4;if(D<3||D==25)aH=dk.wC(!0,hD,Z,x.rect.c,x.rect.v,n,cU);
if(D==0)iz.h=aH;if(D==1)iz.l=aH;if(D==2)iz.O=aH;if(D==25)iz.w=aH;n+=cU}}x.buffer=T.f(x.rect.X()*4);T.s$(iz,x.buffer);
T.br(x);var eK=Z[n];n++;if(eK!=0){x.d=new F.bN;x.d.rect=k.TD(Z,n);n+=16;n+=4;var h6=k.r(Z,n);n+=4;x.d.channel=dk.wC(!0,hD,Z,x.d.rect.c,x.d.rect.v,n,h6);
x.d.color=255;x.d.gi();n+=h6}if(R%4!=0)n+=4-R%4}break;case"Lr16":c0.hz(w,Z,S);break;default:break}var co="Lr16 LMsk Txt2 artd extd luni pths extn tySh lfx2 cinf".split(" ");
if(co.indexOf(h)==-1)if(Q%4!=0)console.log("size not multiple of 4!!!",h);if(h!="luni"&&h!="TySh"&&h!="tySh"&&h!="lfx2")if(Q%4!=0)Q+=4-Q%4;
S+=Q}var dh=[];for(var D=0;D<dh.length;D++)delete Y[dh[D]];return S};ak.JC=function(Z,S,b,Y,P){for(var w in b)if(b[w]==null){alert("A bug occured (see console).");
console.log("Please, report a bug, that \""+w+"\" tag was present with a null value.");delete b[w]}for(var w in b){var f=Y&&"LMsk Lr16 Lr32 Layr Mt16 Mt32 Mtrn Alph FMsk lnk2 lnkE FEid FXid PxSD extn cinf artd pths".split(" ").indexOf(w)!=-1,Q=0;
k.Nm(Z,S,f?"8B64":"8BIM");S+=4;var h=S;k.Nm(Z,S,w);S+=4;k.Fe(Z,S,0);S+=f?8:4;switch(w){case"iOpa":k.sL(Z,S,b[w],1);
Q=4;break;case"brst":Q=0;for(var D=0;D<3;D++)if(b[w][D]==0){k.DK(Z,S+Q,D);Q+=4}break;case"knko":k.sL(Z,S,b[w],1);
Q=4;break;case"infx":k.sL(Z,S,b[w],1);Q=4;break;case"clbl":k.sL(Z,S,b[w],1);Q=4;break;case"lmgm":k.sL(Z,S,b[w],1);
Q=4;break;case"vmgm":k.sL(Z,S,b[w],1);Q=4;break;case"lyid":k.DK(Z,S,b[w]);Q=4;break;case"lsct":k.DK(Z,S,b[w].type);
Q=4;if(b[w].WL){k.Nm(Z,S+4,"8BIM");k.Nm(Z,S+8,b[w].WL);Q=12}break;case"lyvr":k.DK(Z,S,b[w]);Q=4;break;
case"lnsr":k.Nm(Z,S,b[w]);Q=4;break;case"lspf":k.DK(Z,S,b[w]);Q=4;break;case"lclr":k.WA(Z,S,b[w]);Q=8;
break;case"luni":k.d3(Z,S,b[w]);Q=4+2*b[w].length;break;case"fxrp":k.LW(Z,S,b[w].x);k.LW(Z,S+8,b[w].y);
Q=16;break;case"artb":case"artd":k.DK(Z,S,16);Q=gD.GW(Z,b[w],S+4)+4;break;case"SoCo":k.DK(Z,S,16);Q=gD.GW(Z,b[w],S+4)+4;
break;case"GdFl":k.DK(Z,S,16);Q=gD.GW(Z,b[w],S+4)+4;break;case"PtFl":k.DK(Z,S,16);Q=gD.GW(Z,b[w],S+4)+4;
break;case"CgEd":var e={classID:"null",Vrsn:{t:"long",v:1},Brgh:{t:"long",v:24},Cntr:{t:"long",v:54},means:{t:"long",v:127},Lab:{t:"bool",v:!1},useLegacy:{t:"bool",v:!1},Auto:{t:"bool",v:!0}},l=e,O=b[w];
l.Brgh.v=O.Brgh.v;l.Cntr.v=O.Cntr.v;l.useLegacy.v=O.useLegacy.v;k.DK(Z,S,16);Q=gD.GW(Z,e,S+4)+4;break;
case"brit":Z.Ml(S,8);Q=8;break;case"levl":var m=new ca;Q=bY.$C(m,b[w]);k.Is(Z,S,m.data);break;case"curv":Q=iS.ao(Z,S,b[w]);
break;case"expA":Q=14;Z.Ml(S,14);k.xd(Z.data,S,1);k.GQ(Z.data,S+2,b[w].Exps.v);k.GQ(Z.data,S+6,b[w].Ofst.v);
k.GQ(Z.data,S+10,b[w].gammaCorrection.v);break;case"vibA":k.DK(Z,S,16);Q=gD.GW(Z,b[w],S+4)+4;break;case"hue2":Q=iD.ao(Z,S,b[w]);
break;case"blnc":Q=19;Z.Ml(S,Q);var V=["ShdL","MdtL","HghL"];for(var D=0;D<3;D++){var q=b[w][V[D]].v;
for(var K=0;K<3;K++)q.push(k.IQ(Z.data,S+D*6+K*2,q[K].v))}Z.data[S+18]=b[w].PrsL.v?1:0;break;case"blwh":var e={classID:"null",bwPresetKind:{t:"long",v:1},blackAndWhitePresetFileName:{t:"TEXT",v:""}},z="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" ");
for(var D=0;D<z.length;D++){e[z[D]]=b[w][z[D]]}k.DK(Z,S,16);Q=gD.GW(Z,e,S+4)+4;break;case"phfl":k.WA(Z,S,2);
var t=b[w].Clr.v;k.WA(Z,S+2,7);k.WA(Z,S+4,Math.round(t.Lmnc.v*100));k.WA(Z,S+6,Math.round(t.A.v*100));
k.WA(Z,S+8,Math.round(t.B.v*100));k.WA(Z,S+10,0);var H=S+2+10;Z.Ml(H,5);k.KI(Z.data,H,b[w].Dnst.v);H+=4;
Z.data[H]=b[w].PrsL.v?1:0;H++;Q=H-S;break;case"mixr":Q=44;Z.Ml(S,Q);var i=g3.kc(b[w]);k.xd(Z.data,S,1);
k.xd(Z.data,S+2,i.hE?1:0);for(var D=0;D<20;D++)k.IQ(Z.data,S+4+D*2,i.G[D]);break;case"clrL":case"rplc":k.WA(Z,S,1);
k.DK(Z,S+2,16);Q=gD.GW(Z,b[w],S+6)+6;break;case"nvrt":Q=0;break;case"post":k.WA(Z,S,b[w].Lvls.v);Q=2;
break;case"thrs":k.WA(Z,S,b[w].Lvl.v);Q=2;break;case"grdm":var y={rev:b[w].Rvrs.v,a1s:!1,mode:0,Nz:867527939,ajM:!1,amK:!0,a8Z:2048,aoQ:3,Ne:[0,0,0,0],hu:[32768,32768,32768,32768]},j=b[w].Grad.v;
Z.Ml(S,4);k.xd(Z.data,S,1);Z.data[S+2]=y.rev?1:0;Z.data[S+3]=y.a1s?1:0;var J=S+4;k.d3(Z,J,j.Nm.v);J+=4+j.Nm.v.length*2;
J=aN.ahS(Z,J,j);k.WA(Z,J,2);J+=2;k.WA(Z,J,j.Intr.v);J+=2;k.WA(Z,J,32);J+=2;k.WA(Z,J,y.mode);J+=2;k.DK(Z,J,y.Nz);
J+=4;k.WA(Z,J,y.ajM?1:0);J+=2;k.WA(Z,J,y.amK?1:0);J+=2;k.DK(Z,J,y.a8Z);J+=4;k.WA(Z,J,y.aoQ);J+=2;for(var D=0;
D<4;D++)k.WA(Z,J+D*2,y.Ne[D]);J+=8;for(var D=0;D<4;D++)k.WA(Z,J+D*2,y.hu[D]);J+=8;J+=2;Q=J-S;break;case"selc":Q=f_.ao(Z,S,b[w]);
break;case"FMsk":k.Is(Z,S,b[w]);Q=b[w].length;break;case"Txt2":var A=new ca,a=hg.TG(b[w].gH,A),I=T.f(a,!0);
for(var D=0;D<a;D++)I[D]=A.data[D];k.Is(Z,S,I);Q=I.length;break;case"vmsk":var E=b[w],c=0;k.DK(Z,S,3);
if(!E.kF)c+=1<<1;if(!E.isEnabled)c+=1<<2;k.DK(Z,S+4,c);Q=8;var u=E.b.length;Z.Ml(S+8,u*26);hF.nr(Z.data,S+8,E.b,P.c,P.v);
Q+=u*26;break;case"shmd":k.DK(Z,S,Object.keys(b[w]).length);var H=S+4;for(var n in b[w]){k.Nm(Z,H,"8BIM");
H+=4;k.Nm(Z,H,n);H+=4;k.DK(Z,H,0);H+=4;k.DK(Z,H,0);H+=4;k.DK(Z,H,16);H+=4;var o=gD.GW(Z,b[w][n],H);if(o%4!=0)o+=4-o%4;
k.DK(Z,H-8,o+4);H+=o}Q=H-S;break;case"TySh":var H=S;k.Ul(Z,H,1);H+=2;var x=b[w],A=new ca;x.HK.DocumentResources=JSON.parse(JSON.stringify(x.HK.ResourceDict));
var a=bc.TG(x.HK,A),I=T.f(a,!0);for(var D=0;D<a;D++)I[D]=A.data[D];x.Uh.EngineData={t:"tdta",v:I};var g=x.HK.EngineDict.Editor.Text;
x.Uh.Txt.v=g.substring(0,g.length-1);k.abA(Z,H,x.A);H+=48;k.Ul(Z,H,50);H+=2;k.DK(Z,H,16);H+=4;H+=gD.GW(Z,x.Uh,H);
k.Ul(Z,H,1);H+=2;k.DK(Z,H,16);H+=4;H+=gD.GW(Z,x.Km,H);k.a8U(Z,H,x.az);H+=16;Q=H-S;break;case"lmfx":k.DK(Z,S,0);
k.DK(Z,S+4,16);var e=JSON.parse(JSON.stringify(b[w])),v=!1;ak.Wm(e);for(var D=0;D<a4.Ol.length;D++)if(e[a4.Ol[D]]!=null)v=!0;
k.Nm(Z,h,v?"lmfx":"lfx2");Q=gD.GW(Z,e,S+8)+8;break;case"Patt":var H=bQ.f3(Z,S,b[w]);Q=H-S;break;case"SoLd":k.Nm(Z,S,"soLD");
k.DK(Z,S+4,4);k.DK(Z,S+8,16);Q=gD.GW(Z,b[w],S+12)+12;break;case"vstk":case"pths":k.DK(Z,S,16);Q=gD.GW(Z,b[w],S+4)+4;
break;case"vscg__":k.Nm(Z,S,b[w].key);k.DK(Z,S+4,16);Q=gD.GW(Z,b[w].G,S+8)+8;break;case"vogk":k.DK(Z,S,1);
k.DK(Z,S+4,16);T.AZ.anL(b[w]);for(var D=0;D<b[w].length;D++){var R=b[w][D].v.keyOriginResolution;if(R)R.v=P.GY}var X={classID:"null",keyDescriptorList:{t:"VlLs",v:b[w]}};
Q=gD.GW(Z,X,S+8)+8;break;case"lnkD":case"lnk2":case"lnk3":var J=S;for(var D=0;D<b[w].length;D++){var B=b[w][D],M=J;
k.CI(Z,J,0);J+=8;k.Nm(Z,J,B.type);J+=4;k.DK(Z,J,B.du);J+=4;Z.Ml(J,1);Z.data[J]=B.sx.length;J++;k.Nm(Z,J,B.sx);
J+=B.sx.length;k.d3(Z,J,B.JB+"\0");J+=4+B.JB.length*2+2;k.Nm(Z,J,B.uR);J+=4;k.Nm(Z,J,B.Tw);J+=4;k.CI(Z,J,B.raw.length);
J+=8;Z.Ml(J,1);Z.data[J]=B.open;J++;k.Is(Z,J,B.raw);J+=B.raw.length;k.DK(Z,J,1);J+=4;J+=11;var r=J-M-8;
k.CI(Z,M,r);if(r%4!=0){Z.Ml(J,4-r%4);J+=4-r%4}}Q=J-S;break;case"FEid":var J=S;k.DK(Z,J,3);J+=4;for(var N=0;
N<b[w].length;N++){var $=b[w][N];J+=4;var eQ=J;J+=4;k.Bn(Z,J,$.id);J+=$.id.length+1;k.DK(Z,J,1);J+=4;
J+=4;var hN=J;J+=4;k.bW(Z,J,$.rect);J+=16;k.DK(Z,J,8);J+=4;k.DK(Z,J,24);J+=4;var bI=new T.XA($.rect.X());
T.Tr($.buffer,bI);for(var D=0;D<24+2;D++){var fq=null;if(D==0)fq=bI.h;if(D==1)fq=bI.l;if(D==2)fq=bI.O;
if(D==25)fq=bI.w;k.DK(Z,J,fq!=null?1:0);J+=4;if(fq!=null){J+=4;var e9=J;J+=4;Z.Ml(J,$.rect.X()+2);J=dk.Ww(!0,fq,Z.data,$.rect.c,$.rect.v,J,3);
k.DK(Z,e9,J-(e9+4))}}k.DK(Z,hN,J-(hN+4));Z.Ml(J,1);Z.data[J]=$.d?1:0;J++;if($.d!=null){var W=$.d.rect,L=$.d.channel;
W=$.rect;L=T.f(W.X());L.fill($.d.color);T.JS($.d.channel,$.d.rect,L,W);k.bW(Z,J,W);J+=16;J+=4;var bd=J;
J+=4;Z.Ml(J,W.X()+2);J=dk.Ww(!0,L,Z.data,W.c,W.v,J,3);k.DK(Z,bd,J-(bd+4))}var r=J-(eQ+4);k.DK(Z,eQ,r);
if(r%4!=0)J+=4-r%4}Q=J-S;break;default:console.log("unknown layer tag: "+w+", size: "+Q);S-=12;continue}var iw=["Txt2","artd","extd","pths"];
if(iw.indexOf(w)==-1)if(Q%4!=0)Q+=4-Q%4;if(f)k.CI(Z,S-8,Q);else k.DK(Z,S-4,Q);if(w!="luni"&&w!="TySh")if(Q%4!=0)Q+=4-Q%4;
S+=Q}return S};ak.mV=function(Z){for(var D=0;D<a4.order.length;D++){var S=a4.order[D],b=a4.Ol[D];if(Z[b]==null)Z[b]={t:"VlLs",v:[]};
if(Z[S]!=null){Z[b].v.push(Z[S]);delete Z[S]}var Y=[];for(var P=0;P<Z[b].v.length;P++){var w=Z[b].v[P];
if(w.v.present==null||w.v.present.v==!0)Y.push(w)}Z[b].v=Y}};ak.Wm=function(Z){for(var D=0;D<a4.order.length;
D++){var S=a4.order[D],b=a4.Ol[D],Y=Z[b].v.length;if(Y==0){delete Z[b];continue}if(Y==1){Z[S]=Z[b].v[0];
delete Z[b];continue}}};ak.b$=function(Z,S){if(S=="GdFl"){if(Z.Angl==null)Z.Angl={v:{type:"#Ang",val:0},t:"UntF"};
if(Z.Algn==null)Z.Algn={v:!0,t:"bool"};if(Z.Scl==null)Z.Scl={v:{type:"#Prc",val:100},t:"UntF"};if(Z.Ofst==null)Z.Ofst={v:{classID:"Pnt",Hrzn:{v:{type:"#Prc",val:0},t:"UntF"},Vrtc:{v:{type:"#Prc",val:0},t:"UntF"}},t:"Objc"};
if(Z.Rvrs==null)Z.Rvrs={v:!1,t:"bool"};if(Z.Dthr==null)Z.Dthr={v:!1,t:"bool"}}if(S=="PtFl"){if(Z.Algn==null)Z.Algn={v:!0,t:"bool"};
if(Z.Scl==null)Z.Scl={v:{type:"#Prc",val:100},t:"UntF"};if(Z.phase==null)Z.phase={v:{classID:"Pnt",Hrzn:{v:0,t:"doub"},Vrtc:{v:0,t:"doub"}},t:"Objc"}}};
ak.clone=function(Z,S){var b={};if(Z=="TySh"){b.A=S.A.clone();b.Uh=JSON.parse(JSON.stringify(S.Uh));
b.Km=JSON.parse(JSON.stringify(S.Km));b.az=S.az.clone();b.HK=JSON.parse(JSON.stringify(S.HK));if(S.add)b.add={vmsk:S.add.vmsk.clone(),vogk:JSON.parse(JSON.stringify(S.add.vogk))};
return b}else if(Z=="fxrp")return S.clone();else if(Z=="vmsk")return S.clone();else return JSON.parse(JSON.stringify(S))};
function fj(Z,S){}fj.Vq=function(Z,S,b,Y){Y=fj.agI(Z,S,b,Y);return Y};fj.TG=function(Z,S,b,Y,P){Y=fj.aeS(Z,S,b,Y,P);
return Y};fj.agI=function(Z,S,b,Y){var P=Y;Z.rect=k.TD(b,Y);Y+=16;var w=k.gU(b,Y);Y+=2;Z.tt=[];var f=S.hY;
for(var D=0;D<w;D++){Z.tt[D]={id:k.S1(b,Y),length:(f?k.JX:k.r)(b,Y+2)};Y+=f?10:6}var h=k.zG(b,Y,4);Y+=4;
if(h!="8BIM"){console.log("Invalid Blend mode signature: "+h);alert("Error in Photoshop file: wrong signature.");
throw"e"}Z.WL=k.zG(b,Y,4);Y+=4;Z.opacity=b[Y];Y+=1;Z.gL=b[Y]==1;Y+=1;Z.NG=b[Y];Y+=1;if(b[Y]!=0)console.log("error in filler!");
Y+=1;var Q=k.r(b,Y);Y+=4;var e=Y;Y=fj.a41(Z,b,Y);Y=fj.a6N(Z,b,Y);var l=k.yA(b,Y);Z.name=l.mz;Y+=l.length;
if(l.length%4!=0)Y+=4-l.length%4;Y=ak.wq(b,Y,e+Q,Z.add,f,S);if(Z.add.lsct){if(Z.add.lsct.WL)Z.WL=Z.add.lsct.WL;
Z.add.lsct=Z.add.lsct.type}return Y};fj.aeS=function(Z,S,b,Y,P){var w=Y;k.bW(b,Y,Z.rect);Y+=16;var f=Z.Jq();
k.WA(b,Y,f.length);Y+=2;var h=S.hY;P.push(Y);for(var D=0;D<f.length;D++){k.Ul(b,Y,f[D]);if(h)k.CI(b,Y+2,0);
else k.DK(b,Y+2,0);Y+=h?10:6}k.Nm(b,Y,"8BIM");Y+=4;k.Nm(b,Y,Z.WL);Y+=4;k.sL(b,Y,Z.opacity,1);Y+=1;k.sL(b,Y,Z.gL?1:0,1);
Y+=1;k.sL(b,Y,Z.NG,1);Y+=1;k.sL(b,Y,0,1);Y+=1;var Q=Y;k.DK(b,Y,0);Y+=4;var e=Y;Y=fj.aaJ(Z,b,Y);Y=fj.agV(Z,b,Y);
var l=k.Bn(b,Y,Z.name.slice(0,255));Y+=l;if(l%4!=0)Y+=4-l%4;if(Z.add.lsct){Z.add.lsct={type:Z.add.lsct};
if(Z.WL=="pass"){Z.add.lsct.WL="pass";Z.WL="norm"}}if(Z.WL=="pass")Z.add.lsct={type:Z.add.lsct,WL:"pass"};
if(Z.add.brit)Z.add.CgEd=Z.add.brit;Y=ak.JC(b,Y,Z.add,h,S);delete Z.add.CgEd;if(Z.add.lsct){if(Z.add.lsct.WL)Z.WL=Z.add.lsct.WL;
Z.add.lsct=Z.add.lsct.type}var O=Y-e;k.DK(b,Q,O);return Y};fj.a41=function(Z,S,b){var Y=k.r(S,b);b+=4;
if(Y==0)return b;var P=b;Z.d=new F.bN;Z.d.rect=k.TD(S,b);b+=16;Z.d.color=S[b];b+=1;var w=fj.aw(Z.d,S,b);
b+=1;if(w){var f=!1,h=255,Q=0,e=255,l=0;for(var D=0;D<Z.tt.length;D++)if(Z.tt[D].id==-3)f=!0;if(f){Z.Wr=fj.Wn(S,b);
b+=18}var O=b,m=S[b];b++;if(m>>0&1){h=S[b];b++}if(m>>1&1){Q=k.j4(S,b);b+=8}if(m>>2&1){e=S[b];b++}if(m>>3&1){l=k.j4(S,b);
b+=8}if((b-O&1)==1)b++;Z.jg=[h,Q,e,l]}else{if(Y==20)b+=2;else{Z.Wr=fj.Wn(S,b);b+=18}}return P+Y};fj.aaJ=function(Z,S,b){k.DK(S,b,0);
b+=4;if(Z.d==null)return b;var Y=Z.Y6(),P=Z.add.vmsk,w=b,f=!0;k.DK(S,b,0);k.bW(S,b,Z.d.rect);b+=16;k.sL(S,b,Z.d.color);
b+=1;fj.ma(Z.d,S,b,f);b+=1;if(f){if(Z.Wr){fj.ad2(S,b,Z.Wr);b+=18}k.sL(S,b,15);b+=1;k.sL(S,b,Y?Y.uu:255);
b+=1;k.LW(S,b,Y?Y.Mt:0);b+=8;k.sL(S,b,P?P.uu:255);b+=1;k.LW(S,b,P?P.Mt:0);b+=8;b++}k.DK(S,w-4,b-w);return b};
fj.Wn=function(Z,S){var b=new F.bN;fj.aw(b,Z,S);S+=1;b.color=Z[S];S+=1;b.rect=k.TD(Z,S);S+=16;return b};
fj.ad2=function(Z,S,b){fj.ma(b,Z,S,!1);S+=1;k.sL(Z,S,b.color);S+=1;k.bW(Z,S,b.rect);S+=16};fj.aw=function(Z,S,b){var Y=S[b];
Z.kF=(Y>>0&1)==0;Z.isEnabled=(Y>>1&1)==0;Z._W=(Y>>3&1)==1;return Y>>4&1};fj.ma=function(Z,S,b,Y){var P=0;
if(!Z.kF)P+=1<<0;if(!Z.isEnabled)P+=1<<1;if(Z._W)P+=1<<3;if(Y)P+=1<<4;k.sL(S,b,P)};fj.a6N=function(Z,S,b){var Y=k.r(S,b);
b+=4;if(Y==0)return b;if(Y!=5*8)console.log("unexpected Layer Blending Ranges content, size:",Y);for(var D=0;
D<Y;D++)Z.M0[D]=S[b+D];return b+40};fj.agV=function(Z,S,b){k.DK(S,b,Z.M0.length);b+=4;S.Ml(b,40);for(var D=0;
D<40;D++){S.data[b+D]=Z.M0[D]}return b+40};function dk(){}dk.Vq=function(Z,S,b,Y){Y=dk.a1v(S.hY,S.l8,S.W4,Z,b,Y);
return Y};dk.$C=function(Z,S,b,Y,P,w){Y=dk.a7E(Z,S,b,Y,P,w);return Y};dk.a1v=function(Z,S,b,Y,P,w){var f=Y.tt,h={},Q=w;
for(var D=0;D<f.length;D++){var e=f[D],l=e.id,O=e.length,m;if(l==-3)m=Y.Wr.rect;else if(l==-2)m=Y.d.rect;
else m=Y.rect;var V=dk.wC(Z,S,P,m.c,m.v,w,O);w+=O;if(l==-3)Y.Wr.channel=V;else if(l==-2)Y.d.channel=V;
else h["c"+l]=V}var q=new T.XA(0);q.w=null;if(b==3){q.h=h.c0;q.l=h.c1;q.O=h.c2;q.w=h["c-1"]}else if(b==1){q.h=h.c0;
q.l=h.c0;q.O=h.c0;q.w=h["c-1"]}else if(b==4){var K=h.c0,z=h.c1,t=h.c2,H=h.c3,i=K.length,y=1/255;for(var D=0;
D<i;D++){var j=K[D],J=z[D],A=t[D],a=H[D]*y;K[D]=Math.round(j*a);z[D]=Math.round((.2*j+.8*J)*a);t[D]=Math.round((.2*J+.8*A)*a)}q.h=K;
q.l=z;q.O=t;q.w=h["c-1"];console.log("converting from CMYK to RGB")}if(q.h==null)q.h=T.f(0);if(q.w==null&&q.h!=null){q.w=q.h.slice(0);
q.w.fill(255)}if(q.l==null)q.l=q.h.slice(0);if(q.O==null)q.O=q.h.slice(0);Y.buffer=T.f(Math.max(0,Y.rect.X()*4));
T.s$(q,Y.buffer);return w};dk.a7E=function(Z,S,b,Y,P,w){var f=S.Jq(),h=new T.XA(S.rect.X());T.Tr(S.buffer,h);
for(var D=0;D<f.length;D++){var Q=f[D],e,l;if(Q==-3)e=S.Wr.rect;else if(Q==-2)e=S.d.rect;else e=S.rect;
if(Q==-3)l=S.Wr.channel;if(Q==-2)l=S.d.channel;if(Q==-1)l=h.w;if(Q==0)l=h.h;if(Q==1)l=h.l;if(Q==2)l=h.O;
b.Ml(Y,e.X()*3+4);var O=Y;Y=dk.Ww(Z,l,b.data,e.c,e.v,Y,w[1]?3:1);var m=Y-O;if(Z)k.rp(b.data,P+D*10+2,m);
else k.KI(b.data,P+D*6+2,m)}return Y};dk.wC=function(Z,S,b,Y,P,w,f){var h=k.gU(b,w);w+=2;return dk.Lc(Z,S,b,Y,P,w,h,f-2)};
dk.Ww=function(Z,S,b,Y,P,w,f){k.IQ(b,w,f);w+=2;w=dk.BJ(Z,S,b,Y,P,w,f);return w};dk.Lc=function(Z,S,b,Y,P,w,f,h){var Q,e=Y*P*(S>>>3),l=e&3,O=e+(l==0?0:4-l);
if(h<=0){return T.f(O)}if(f>3){console.log("unknown compression: "+f,Y,P,Y*P,h);f=0}if(f==0){if(w+O<=b.length)Q=b.slice(w,w+O);
else{Q=T.f(e);for(var D=0;D<e;D++)Q[D]=b[w+D]}w+=e}else if(f==1){Q=T.f(e);var m=Z?4:2,V=dk.hP(b,Q,Y,P,w,w+m*P,m);
w+=m*P+V}else if(f==2||f==3){var q=new Uint8Array(b.buffer,w+2,h-6),K=pako.inflateRaw(q);if(f==3){if(S==8)for(var z=0;
z<P;z++){var t=z*Y+1,H=t+Y-1,i=K[t-1];for(var y=t;y<H;y++){i+=K[y];K[y]=i&255}}else for(var z=0;z<P;
z++){var t=z*Y+1,H=t+Y-1,i=K[2*t-2]<<8|K[2*t-1];for(var y=t;y<H;y++){var j=y<<1;i+=K[j]<<8|K[j+1];K[j]=i>>>8;
K[j+1]=i&255}}}if(K.length==O)Q=K;else{Q=T.f(O);for(var D=0;D<K.length;D++)Q[D]=K[D]}}if(S==16){var J=T.f(Y*P);
for(var D=0;D<e;D+=2)J[D>>>1]=Q[D];Q=J}return Q};dk.BJ=function(Z,S,b,Y,P,w,f){var h=Y*P;if(f==0)for(var D=0;
D<h;D++)b[w++]=S[D];else if(f==1){var Q=Z?4:2,e=dk.e2(S,b,Y,P,w,w+Q*P,Q);w+=Q*P+e}else if(f==2||f==3){if(f==3){var l=new Uint8Array(S.length);
for(var O=0;O<P;O++){var m=O*Y+1,V=m+Y-1,q=S[m-1];l[m-1]=q;for(var K=m;K<V;K++){l[K]=S[K]+(256-q)&255;
q=S[K]}}S=l}b[w]=120;b[w+1]=156;w+=2;var z=pako.deflateRaw(S,{a8G:4});k.wQ(b,w,z);w+=z.length+4}else console.log("Unknown compression: "+f);
return w};dk.hP=function(Z,S,b,Y,P,w,f){var h=w,Q=Y|0;if(f==2)for(var D=0;D<Q;D++){var e=k.gU(Z,P+(D<<1));
dk.x9(Z,w,e,S,D*b,b);w+=e}else for(var D=0;D<Q;D++){var e=k.r(Z,P+(D<<2));dk.x9(Z,w,e,S,D*b,b);w+=e}return w-h};
dk.e2=function(Z,S,b,Y,P,w,f){var h=w;if(f==2)for(var D=0;D<Y;D++){var Q=dk.EX(Z,D*b,b,S,w);k.xd(S,P+D*2,Q);
w+=Q}else for(var D=0;D<Y;D++){var Q=dk.EX(Z,D*b,b,S,w);k.KI(S,P+D*4,Q);w+=Q}return w-h};dk.EX=function(Z,S,C,b,Y){var P,w,f,h,Q,i5,e;
h=S+C;for(f=S,w=Y;C>0;f=P,C-=i5){e=C<128?C:128;if(f<=h-3&&Z[f+1]==Z[f+0]&&Z[f+2]==Z[f+0]){for(P=f+3;
P<f+e&&Z[P]==Z[f+0];)++P;i5=P-f;b[w++]=1+256-i5;b[w++]=Z[f+0]}else{for(P=f;P<f+e;)if(P<=h-3&&Z[P+1]==Z[P+0]&&Z[P+2]==Z[P+0])break;
else++P;i5=P-f;b[w++]=i5-1;for(var D=0;D<i5;D++)b[w+D]=Z[f+D];w+=i5}}return w-Y};dk.x9=function(Z,S,b,Y,P,w){for(var f=0;
f<b;){var C=Z[S++];if(C>=128){var h=Z[S++],Q=P+(257-C);while(P+1<Q){Y[P++]=Y[P++]=h}if(P<Q)Y[P++]=h;
f+=2}else{for(var D=0;D<=C;D++)Y[P+D]=Z[S+D];S+=C+1;P+=C+1;f+=1+1+C}}};function c0(){}c0.l9=function(Z,S,b){return;
var Y="",P=S;while(P!=0){var w=P%1e3+"";while(w.length<3)w="0"+w;Y=(Y==""?w:w+" ")+Y;P=Math.floor(P/1e3)}while(Y.startsWith("0")&&Y!="0")Y=Y.slice(1);
while(Y.length<11)Y=" "+Y;console.log("===",Y,"\t".repeat(Z),": "+b)};c0.Vq=function(Z,S){S.hY=!1;S.l8=8;
var b=new Uint8Array(Z),Y=0,P=0,$,d0=!1,gS=!0,cf=!1,cT=0;P=c0.vV(S,b,Y);c0.l9(0,P-Y,"PSD Header");Y=P;
P=c0.abk(S,b,Y);c0.l9(0,P-Y,"Color Mode Data");Y=P;P=c0.agp(S,b,Y);c0.l9(0,P-Y,"Image Resources");Y=P;
P=c0.a6z(S,b,Y);c0.l9(0,P-Y,"Layer And Mask Info");Y=P;P=c0.adD(S,b,Y);c0.l9(0,P-Y,"End Image");Y=P;
if(S.t.length==0){var w=S.Dl();w.wc("Background");S.t.push(w);w.buffer=S.buffer.slice(0);w.rect=new b4(0,0,S.c,S.v)}if(S.wu.r1005){S.GY=k.amT(S.wu.r1005,0)}if(S.wu.r1026){var b=S.wu.r1026;
for(var D=0;D<b.length;D+=2){var P=S.t[D>>>1];if(P)P.QG=k.gU(b,D)}}if(S.wu.r1032){var b=S.wu.r1032,f=k.r(b,12);
for(var D=0;D<f;D++){var h=b[16+D*5+4],Q=k.Dk(b,16+D*5)/32;S.vE[h].push(Q)}}delete S.wu.r1036;delete S.wu.r1039;
if(S.wu.r1050){var e=k.r,l=S.wu.r1050,O=k.r(l,0);if(O==6){var m=4,V=k.TD(l,m);m+=16;var q=k.U9(l,m);
m+=4+q.length*2;var K=e(l,m);m+=4;var z=S.CY;for(var D=0;D<K;D++){var t=G.cd.Xo(),i;z.push(t);t=t.v;
t.sliceID.v=e(l,m);m+=4;t.groupID.v=e(l,m);m+=4;var H=e(l,m);m+=4;if(H==1){i=e(l,m);m+=4}var q=k.U9(l,m);
m+=4+q.length*2;var y=e(l,m);m+=4;var j=[e(l,m),e(l,m+4),e(l,m+8),e(l,m+12)];m+=16;G.cd._x(z,z.length-1,j);
var J=t.url.v=k.U9(l,m);m+=4+J.length*2;var A=t.null.v=k.U9(l,m);m+=4+A.length*2;var a=t.Msge.v=k.U9(l,m);
m+=4+a.length*2;var I=t.altTag.v=k.U9(l,m);m+=4+I.length*2;t.cellTextIsHTML.v=l[m]==1;m++;var E=t.cellText.v=k.U9(l,m);
m+=4+E.length*2;var c=e(l,m);m+=4;var u=e(l,m);m+=4;var n=l.slice(m,m+4);m+=4;if(H!=2)z.pop()}}else if(O==8){var o={};
gD.pP(l,o,8,!1);var l=S.CY=o.slices.v;for(var D=0;D<l.length;D++){if(l[D].v.origin.v.ESliceOrigin!="userGenerated"){l.splice(D,1);
D--}}}}if(S.wu.r1058){var x=S.wu.r1058,g=UTIF.decode(x.buffer,{parseMN:!1,debug:!1});b_.Ue(g[0],S.tU);
delete S.wu.r1058}if(S.wu.r1060){var v=k.cP(S.wu.r1060);b_.Hg(v,S.tU);delete S.wu.r1060}if(S.wu.r1065){var b=S.wu.r1065;
S.TZ={};gD.pP(b,S.TZ,4,!1)}if(S.wu.r1069){var b=S.wu.r1069,R=[];for(var D=2;D<b.length;D+=4){var i=k.r(b,D);
for(var X=0;X<S.t.length;X++){var P=S.t[X];if(P.add.lyid==i&&P.add.lsct!=3)R.push(X)}}S.C=R}if(S.wu.r1025){var B=S.wu.r1025;
delete S.wu.r1025;var M=hF.yi(B,0,B.length,S.c,S.v),r=new F.NS;r.b=M;S.Bf[0]=gf.jq("Working Path",{vmsk:r})}var N=S.add.pths;
delete S.add.pths;var eQ=S.wu.r3000;if(eQ){$={};gD.pP(eQ,$,4,!1);delete S.wu.r3000}for(var hN=0;hN<=997;
hN++){var bI="r"+(2e3+hN),B=S.wu[bI];if(B==null)break;var M=hF.yi(B,0,B.length,S.c,S.v),fq=N?N.pathList.v[hN].v.pathUnicodeName.v:"Path "+hN,e9=$?$.keyRootDescriptorList.v[hN].v.keyDescriptorList.v:F.AU(M),r=new F.NS;
r.b=M;S.Bf[hN+1]=gf.jq(fq,{vmsk:r,vogk:e9});delete S.wu[bI]}delete S.hY;var W=new b4(0,0,S.c,S.v),L=S.add.Txt2,bd=L;
if(bd){bd=bd.gH;if(bd._DocumentResources==null)bd=gP.akG(bd)}if(L&&L.gH._DocumentResources!=null){var iw="_Type _FrameMatrix _TextOnPathTRange _PathData _FirstBaselineAlignment _LineOrientation _RowGutter _ColumnGutter".split(" "),d7=L.gH._DocumentResources._TextFrameSet._Resources;
for(var D=0;D<d7.length;D++){}}for(var D=0;D<S.t.length;D++){var P=S.t[D],fU=P.add.lsct,dX=P.add.vmsk,g$=P.Y6();
if(fU==fr.Ee){cT++;P.add.lspf=0}else if(fU==fr.k8||fU==fr.U1)cT--;if(P.name==""){P.name="Layer "+(D+1);
cf=!0}if(cf&&P.W$()&&P.WL=="norm")P.WL="pass";if(P.pL()&&P.fY(S).d){var bX=P.fY(S);bX.d.isEnabled=P.add.SoLd.filterFX.v.filterMaskEnable.v}if(dX&&P.q3()){var aw=a4.m3.default;
if(P.add.vstk==null)P.add.vstk=JSON.parse(JSON.stringify(aw));else{var hP="strokeStyleLineDashSet";if(P.add.vstk[hP]==null)P.add.vstk[hP]=JSON.parse(JSON.stringify(aw[hP]))}P.add.vstk.strokeStyleResolution.v=S.GY}if(dX&&(P.add.vogk==null||T.Y.eu(dX.b)!=P.add.vogk.length))P.AU();
if(P.add.SoLd&&P.rect.h3()){console.log("redrawing smart instance");P.JN(S)}if(g$==null&&P.d!=null){if(P.d._W==!1){P.d._W=!0;
P.Wr=P.d.clone()}}g$=P.Y6();if(P.jg){var aw=P.jg,r=dX;if(g$){g$.uu=aw[0];g$.Mt=aw[1]}if(r){r.uu=aw[2];
r.Mt=aw[3]}P.jg=null}if(g$!=null&&dX!=null&&(g$.Mt+dX.Mt!=0||g$.uu+dX.uu!=2*255))P.vK(S);else if(dX!=null&&!P.q3())P.vK();
var eG=P.add.artb;if(eG&&eG.artboardBackgroundType==null)eG.artboardBackgroundType={t:"long",v:1};if(eG&&cT!=0)delete P.add.artb;
var eB=P.add.vstk;if(P.q3()&&(P.rect.h3()||dX&&dX.Mt!=0||eB&&!eB.fillEnabled.v&&(!eB.strokeEnabled.v||eB.strokeStyleLineWidth.v.val==0)))P.WV(S);
if(P.add.TySh){d0=!0;if(!P.rect.h3())gS=!1}if(P.add.TySh&&bd){var bb=P.add.TySh.Uh.TextIndex.v;if(bb==-1)continue;
var gx=P.add.TySh.HK,er=eO.kn(gx),ea=gx.ResourceDict.StyleSheetSet[0].StyleSheetData.FontSize;if(ea==null)ea=12;
var hD=gx.EngineDict.StyleRun.RunArray;for(var bP=0;bP<hD.length;bP++){var iz=hD[bP].StyleSheet.StyleSheetData;
if(iz.FontSize==null){if(iz.BaselineDirection==null)iz.FontSize=Math.round(ea*S.GY/72)}}var iq=gx.EngineDict.ParagraphRun.RunArray,cU=bd._DocumentObjects._TextObjects;
if(cU.length<=bb){console.log("Txt2 incomplete");continue}cU=cU[bb]._Model._ParagraphRun._RunArray;if(cU==null)cU=[];
var aH=Math.min(cU.length,iq.length);for(var X=0;X<aH;X++){var eK=iq[X].ParagraphSheet.Properties,h6=bd._DocumentResources._ParagraphSheetSet._Resources,co=cU[X]._RunData._ParagraphSheet;
if(typeof co=="string")co=h6[parseInt(co.slice(1))]._Resource;var dh=co._Parent==null?co:h6[parseInt(co._Parent.slice(1))]._Resource,cX=co._Features._ParagraphDirection;
if(cX==null)cX=dh._Features._ParagraphDirection;if(cX)eK._Direction=parseInt(cX.slice(1))}var eY=bd._DocumentResources,ga=eY._TextFrameSet._Resources,h0=ga[bb]._Resource,a8=h0._Data,cc=new fR(1,0,0,1,0,0);
if(h0._0){var hW=parseFloat(h0._0[0].slice(1)),em=parseFloat(h0._0[1].slice(1));cc.translate(hW,em)}if(er){cc.translate(er[0],er[1]);
eO.oZ(gx,[0,0,er[2]-er[0],er[3]-er[1]])}else{if(h0._Bezier&&h0._Bezier._Points){var M=h0._Bezier._Points,hW=parseFloat(M[0].slice(1)),em=parseFloat(M[1].slice(1));
if(hW!=0||em!=0){cc.translate(hW,em)}}}if(h0._Data&&h0._Data._FrameMatrix){var br=h0._Data._FrameMatrix;
br=br.map(function(bM){return parseFloat(bM.slice(1))});cc.concat(new fR(br[0],br[1],br[2],br[3],br[4],br[5]))}cc.concat(P.add.TySh.A);
P.add.TySh.A=cc;var y=a8._Type?parseInt(a8._Type.slice(1)):0;if(y==2||y==1&&a8._PathData._Spacing=="i-3"){var cF=function(bM){return parseFloat(bM.slice(1))},M=h0._Bezier._Points.map(cF);
if(er)T.z.A(M,new fR(1,0,0,1,-er[0],-er[1]),M);var cW=a8._PathData?a8._PathData._Reversed:!1;gx.Curve={Points:M,TextOnPathTRange:a8._TextOnPathTRange.map(cF),Reversed:cW==null?!1:cW};
P.add.TySh.add={vmsk:new F.NS,vogk:null};eO.LY(P.add.TySh)}}}dK.L6.Ov(S,!0)};c0.TG=function(Z,S,b){dK.L6._M(Z);
dK.L6.Ov(Z,!1);Z.hY=b[3]==!0;var Y=[],P=[],K=16,X=0;for(var D=0;D<Z.t.length;D++){var w=Z.t[D];if(w.pL()&&w.fY(Z).d){w.add.SoLd.filterFX.v.filterMaskEnable.v=w.fY(Z).d.isEnabled}if(w.add.TySh){var f=w.add.TySh.HK,h=eO.O$(f);
w.add.TySh.Uh.TextIndex={t:"long",v:Y.length};Y.push(f);if(h==2)eO.lj(w.add.TySh)}var Q=w.add.vstk;if(Q)Q.strokeStyleResolution.v=Z.GY;
if(w.q3()||b[2]&&w.add.SoLd){P[D]=[w.rect,w.buffer];w.rect=new b4;w.buffer=T.f(0)}}if(Y.length>0){var e=Z.add.Txt2?Z.add.Txt2.gH:null;
Z.add.Txt2={};Z.add.Txt2.gH=cs.a5m(Y,null,e)}var l=[Z.add.lnk2,Z.add.FEid,Z.add.Patt],O=Z.a1A(Z.t);Z.va(O);
Z.wu.r1005=new Uint8Array([0,0,0,0,0,1,0,2,0,0,0,0,0,1,0,2]);k.aM(Z.wu.r1005,0,Z.GY);k.aM(Z.wu.r1005,8,Z.GY);
if(Z.oz()){Z.wu.r1022=new Uint8Array([0,3+Z.eP.length-1,0])}else delete Z.wu.r1022;Z.wu.r1026=new Uint8Array(Z.t.length*2);
for(var D=0;D<Z.t.length;D++)k.xd(Z.wu.r1026,D*2,Z.t[D].QG);var m=Z.vE,V=m[0].length+m[1].length,q=Z.wu.r1032=T.f(16+5*V,!0);
k.KI(q,0,1);k.KI(q,4,576);k.KI(q,8,576);k.KI(q,12,V);for(var D=0;D<2;D++)for(var z=0;z<m[D].length;z++){k.kQ(q,K,Math.round(m[D][z]*32));
q[K+4]=D;K+=5}var t=T.PV(Z.buffer),H=[];if(t)H.push({name:"Transparency",gV:{h:255,l:0,O:0},Xe:100,vp:1});
H=H.concat(Z.eP);delete Z.wu.r1045;delete Z.wu.r1006;delete Z.wu.r1077;var i=new ca;K=0;var y=new Uint8Array(4+H.length*13);
y[3]=1;for(var D=0;D<H.length;D++){var j=H[D],J=j.name+"\0";k.d3(i,K,J);K+=4+J.length*2;var A=4+D*13;
hX.Mh(y,A,j.gV);y[A+11]=j.Xe;y[A+12]=j.vp}Z.wu.r1045=i.data.slice(0,K);Z.wu.r1077=y;for(var D=0;D<Z.CY.length;
D++)Z.CY[Z.CY.length-D-1].v.sliceID.v=2+D*3;var a={classID:"null",baseName:{t:"TEXT",v:"User"},bounds:{t:"Objc",v:{classID:"Rct1",Top:{t:"long",v:0},Left:{t:"long",v:0},Btom:{t:"long",v:0},Rght:{t:"long",v:0}}},slices:{t:"VlLs",v:Z.CY}},i=new ca;
k.DK(i,0,8);k.DK(i,4,16);var I=gD.GW(i,a,8);Z.wu.r1050=i.data.slice(0,I+8);var i=new ca;k.DK(i,0,16);
var I=gD.GW(i,Z.TZ,4);Z.wu.r1065=i.data.slice(0,I+4);var E=Z.C;q=Z.wu.r1069=T.f(2+E.length*4,!0);k.xd(q,0,E.length);
for(var D=0;D<E.length;D++)k.KI(q,2+4*D,Z.t[E[D]].add.lyid);delete Z.wu.r1058;delete Z.wu.r1060;if(Object.keys(Z.tU).length!=0){var c=[{t274:[1],t282:[[72,1]],t283:[[72,1]],t296:[2]},{t259:[6],t282:[[72,1]],t283:[[72,1]],t296:[2],t513:[302],t514:[0]}];
b_.tk(Z.tU,c[0],b[0]&&b[1]);Z.wu.r1058=new Uint8Array(UTIF.encode(c));var u=b_.zK(Z.tU);Z.wu.r1060=k.IN(u)}var n=[],o=[];
for(var D=0;D<Z.Bf.length;D++){var x=Z.Bf[D],g=x.add.vmsk.b;if(D==0&&g.length==2)continue;var v=T.f(g.length*26);
hF.nr(v,0,g,Z.c,Z.v);var R=D==0?1025:2e3+D-1;Z.wu["r"+R]=v;if(D!=0){n.push({t:"Objc",v:{classID:"pathInfoClass",pathUnicodeName:{t:"TEXT",v:x.name}}});
o.push({t:"Objc",v:{classID:"null",keyDescriptorList:{t:"VlLs",v:x.add.vogk}}})}}if(n.length!=0){Z.add.pths={classID:"pathsDataClass",pathList:{t:"VlLs",v:n}};
o={classID:"null",keyRootDescriptorList:{t:"VlLs",v:o}};var i=new ca;k.DK(i,0,16);var I=gD.GW(i,o,4);
Z.wu.r3000=i.data.slice(0,I+4)}else{delete Z.add.pths;delete Z.wu.r3000}X=c0.ahZ(Z,S,X,3+H.length);X=c0.ahH(Z,S,X);
X=c0.a7F(Z,S,X);X=c0.a2S(Z,S,X,b,t);X=c0.ami(Z,S,X,b[0],t);var B=[1025,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016];
for(var D=0;D<B.length;D++)delete Z.wu["r"+B[D]];for(var D=0;D<Z.t.length;D++){var w=Z.t[D];if(w.q3()||b[2]&&w.add.SoLd){w.rect=P[D][0];
w.buffer=P[D][1]}}Z.va(l);dK.L6.Ov(Z,!0);delete Z.hY;return X};c0.vV=function(Z,S,b){var Y=k.zG(S,b,4);
b+=4;if(Y!="8BPS")alert("invalid header signature: "+Y);var P=k.gU(S,b);b+=2;Z.hY=P==2;if(P!=1&&P!=2)alert("invalid version: "+P);
b+=6;Z.pd=k.gU(S,b);b+=2;Z.v=k.Dk(S,b);b+=4;Z.c=k.Dk(S,b);b+=4;Z.l8=k.gU(S,b);b+=2;Z.W4=k.gU(S,b);b+=2;
return b};c0.ahZ=function(Z,S,b,Y){S.Ml(0,64);k.ue(S.data,b,"8BPS");b+=4;k.xd(S.data,b,Z.hY?2:1);b+=2;
k.KI(S.data,b,0);b+=4;k.xd(S.data,b,0);b+=2;k.xd(S.data,b,Y);b+=2;k.kQ(S.data,b,Z.v);b+=4;k.kQ(S.data,b,Z.c);
b+=4;k.xd(S.data,b,8);b+=2;k.xd(S.data,b,3);b+=2;return b};c0.abk=function(Z,S,b){var Y=k.Dk(S,b);b+=4;
if(Y!=0)Z.Aw=S.slice(b,b+Y);b+=Y;return b};c0.ahH=function(Z,S,b){k.Fe(S,b,0);b+=4;return b};c0.agp=function(Z,S,b){var Y=k.r(S,b),P=0;
b+=4;var w=[];while(P<Y){var f=k.zG(S,b+P,4);P+=4;var h=k.gU(S,b+P);P+=2;var Q=k.yA(S,b+P);P+=Q.length;
if(f!="8BIM"){w.push(h);console.log("Unknown Image Resources signature: "+f+", ID: "+h)}var e=k.r(S,b+P);
P+=4;if(Z.wu["r"+h]!=null)console.log("--- two resources with same ID");Z.wu["r"+h]=k.NR(S,b+P,e);P+=e+(e&1)}for(var D=0;
D<w.length;D++)delete Z.wu["r"+w[D]];return b+Y};c0.a7F=function(Z,S,b){var Y=b,f=0;b+=4;var P=[];for(var w in Z.wu){P.push(parseInt(w.slice(1)))}P.sort(function(O,m){return O-m});
for(var D=0;D<P.length;D++){k.Nm(S,b+f,"8BIM");f+=4;var h=P[D];k.WA(S,b+f,h);f+=2;var Q=k.Bn(S,b+f,"");
f+=Q;var e=Z.wu["r"+h],l=e.length;k.DK(S,b+f,l);f+=4;k.Is(S,b+f,e);f+=l;if(l%2==1)f++}k.DK(S,Y,f);return b+f};
c0.a6z=function(Z,S,b){var Y=b,P,w,f=Z.hY?8:4;if(Z.hY)P=k.JX(S,b);else P=k.r(S,b);b+=f;if(P==0)return Y+f;
w=c0.aeD(Z,S,b);c0.l9(1,w-b,"Layer Info");b=w;w=c0.a4e(Z,S,b);c0.l9(1,w-b,"Global Layer Mask Info");
b=w;w=ak.wq(S,b,Y+f+P,Z.add,Z.hY,Z);c0.l9(1,w-b,"Project Add Info");b=w;return Y+f+P};c0.a2S=function(Z,S,b,Y,P){var w=b;
k.DK(S,b,0);b+=4;if(Z.hY){k.DK(S,b,0);b+=4}b=c0.a3a(Z,S,b,Y,P);b=c0.alz(Z,S,b);b=ak.JC(S,b,Z.add,Z.hY,Z);
if(Z.hY)k.CI(S,w,b-w-8);else k.DK(S,w,b-w-4);return b};c0.aeD=function(Z,S,b){var Y,P=Z.hY?8:4;if(Z.hY)Y=k.JX(S,b);
else Y=k.r(S,b);b+=P;if(Y!=0)c0.hz(Z,S,b);return b+Y};c0.hz=function(Z,S,b){var Y=k.S1(S,b);b+=2;var P=Math.abs(Y);
for(var D=0;D<P;D++){var w=new F;b=fj.Vq(w,Z,S,b);Z.t[D]=w}var f=new b4(0,0,Z.c,Z.v);for(var D=0;D<P;
D++){var h=Z.t[D],Q=h.Y6(),e=dk.Vq(h,Z,S,b);if(e-b>8)c0.l9(2,e-b,"Lay: "+h.getName());b=e;c0.V$(h,f);
if(Q)c0.V$(Q,f)}};c0.V$=function(Z,S){var b=Z.rect.X(),Y=Z.rect.Yz(S),P=Y.X()/b;if(b>2e3*3e3&&P<.5){if(Z.buffer){var w=T.f(Y.X()*4);
T.uH(Z.buffer,Z.rect,w,Y);Z.buffer=w;Z.rect=Y}else{var w=T.f(Y.X());T.JS(Z.channel,Z.rect,w,Y);Z.channel=w;
Z.rect=Y}alert("Removing hidden parts of layers")}};c0.a3a=function(Z,S,b,Y,P){var w=b,f=Z.hY;b+=f?8:4;
b=c0.mQ(Z,S,b,Y,P);var h=b-w-(f?8:4);if(h%2!=0)h++;if(f)k.CI(S,w,h);else k.DK(S,w,h);return w+h+(f?8:4)};
c0.mQ=function(Z,S,b,Y,P){var w=Z.t.length;k.Ul(S,b,P?-w:w);b+=2;var f=[];for(var D=0;D<w;D++)b=fj.TG(Z.t[D],Z,S,b,f);
for(var D=0;D<w;D++)b=dk.$C(Z.hY,Z.t[D],S,b,f[D],Y);return b};c0.a4e=function(Z,S,b){var Y=k.r(S,b);
b+=4;b+=Y;return b};c0.alz=function(Z,S,b){var Y=k.DK(S,b,0);b+=4;return b};c0.adD=function(Z,S,b){var Y=Z.W4,P="Bitmap Grayscale Indexed RGB CMYK Multichannel Duotone Lab".split(" "),w=[1,1,1,3,4,1,1,3],f,K;
if(Y!=3){if(Y==1||Y==2||Y==4)alert("Project will be converted from "+P[Y]+" to "+P[3]+" mode.");else{alert("Color mode "+P[Y]+" is not supported yet :(")}}if(Z.wu.r1045){f=[];
var h=Z.wu.r1045,Q=0;while(Q<h.length){var e=k.PJ(h,Q);f.push(e);Q+=4+2+e.length*2}}var l=w[Y]+(f==null||f[0]=="Transparency"?1:0),O=Z.c,m=Z.v,V=O*m,q=k.gU(S,b);
b+=2;Z.buffer=T.f(V*4);T._U(Z.buffer,4278190080);var z=b;for(var t=0;t<Z.pd;t++){if(q==0){K=dk.Lc(Z.hY,Z.l8,S,O,m,b,q);
b+=V*(Z.l8>>>3)}else if(q==1){K=T.f(V);var H=Z.hY?4:2;if(t==0)b+=Z.pd*m*H;b+=dk.hP(S,K,O,m,z+t*m*H,b,H)}else{console.log("unknown compression of image data: ",q);
return}if(t<l){T.y8(K,Z.buffer,t);if(Z.pd==1&&t==0){T.y8(K,Z.buffer,1);T.y8(K,Z.buffer,2)}}else{var i=new F.bN,y=t-l,j=t-w[Z.W4];
i.name=f?f[j]:"Alpha";if(i.name=="Quick Mask"){i.Ag=!0;Z.k9.push(y)}i.rect=new b4(0,0,O,m);i.channel=K;
i.color=0;i.gi();Z.eP[y]=i;if(Z.wu.r1077){var h=Z.wu.r1077.slice(4+j*13);i.gV=hX.R0(h,0);i.Xe=h[11];
i.vp=h[12];if(i.vp==2)i.Ag=!0}}}Z.pd=4;if(Z.W4==2)for(var D=0;D<V;D++){var J=D*4,A=Z.buffer[J];Z.buffer[J]=Z.Aw[0+A];
Z.buffer[J+1]=Z.Aw[256+A];Z.buffer[J+2]=Z.Aw[512+A]}return b};c0.ami=function(Z,S,b,Y,P){var w=1,f=16,h=Z.c,Q=Z.v,l,O;
k.WA(S,b,w);b+=2;var e=h*Q;if(!Y){O=new T.XA(h*Q);T.Tr(Z.buffer,O);var m=O.h,V=O.l,q=O.O,K=O.w;for(var D=0;
D<e;D++){var z=K[D]*(1/255);m[D]=~~(m[D]*z+255*(1-z));V[D]=~~(V[D]*z+255*(1-z));q[D]=~~(q[D]*z+255*(1-z))}}else l=T.f(e);
var t=[l,l,l];if(!Y)t=[O.h,O.l,O.O];if(P)t.push(Y?l:O.w);for(var D=0;D<Z.eP.length;D++){t.push(Z.eP[D].Zv(new b4(0,0,Z.c,Z.v)))}var H=b;
for(var i=0;i<t.length;i++){S.Ml(b,h*Q+4);l=t[i];if(w==0||w==2||w==3)b=dk.BJ(Z.hY,l,S.data,h,Q,b,w);
else{var y=Z.hY?4:2;if(i==0)b+=t.length*Q*y;var j=b;b+=dk.e2(l,S.data,h,Q,H+i*Q*y,b,y)}}return b};function bc(){}bc.Vq=function(Z){var S={};
bc.Mm(Z,S,0,0);return S};bc.TG=function(Z,S){var b=0;b=bc.gc(Z,S,b,0);return b};bc.Mm=function(Z,S,b,Y){while(Z[b]!="<".charCodeAt(0))b++;
b+=2;while(!0){if(Z[b]=="/".charCodeAt(0)){b++;var P=k.indexOf(Z," ".charCodeAt(0),b,b+50),w=k.indexOf(Z,"\n".charCodeAt(0),b,b+50);
if(w==-1)w=Infinity;if(P==-1)P=Infinity;var f=Math.min(w,P),h=k.zG(Z,b,f-b),Q=bc.av(Z,f+1,Y+1,h);S[h]=Q.G;
b=f+1;b+=Q.size}else if(Z[b]==">".charCodeAt(0)){b+=2;break}else{var e=Z[b];if(e==10||e==9||e==32)b++;
else{console.log("unknown byte: "+e+", char: "+String.fromCharCode(e),b);b++}}}return b};bc.gc=function(Z,S,b,Y){k.Nm(S,b,"<<\n");
b+=3;var P=bc.afp;for(var w in Z){k.sL(S,b,"\t".charCodeAt(0),Y+1);b+=Y+1;k.Nm(S,b,"/"+w);b+=1+w.length;
if(P(Z[w])||Z[w]instanceof Array){k.Nm(S,b," ");b++}else{k.Nm(S,b,"\n");b++;k.sL(S,b,"\t".charCodeAt(0),Y+1);
b+=Y+1}b=bc.DN(Z[w],S,b,Y+1);k.Nm(S,b,"\n");b++}k.sL(S,b,"\t".charCodeAt(0),Y);b+=Y;k.Nm(S,b,">>");b+=2;
return b};bc.av=function(Z,S,b,Y){var P=S,w={size:0,G:0};while(!0){while(Z[S]==" ".charCodeAt(0)||Z[S]=="\t".charCodeAt(0)||Z[S]=="\n".charCodeAt(0))S++;
if(Z[S]=="<".charCodeAt(0)){w.G={};S=bc.Mm(Z,w.G,S,b+1);break}else if(Z[S]=="(".charCodeAt(0)){S+=3;
var f=S;while(!0){if(Z[f-1]!="\\".charCodeAt(0)&&Z[f]==")".charCodeAt(0)&&(Z[f+1]=="\n".charCodeAt(0)||Z[f+1]==" ".charCodeAt(0)))break;
else f++}w.G=k.iR(Z,S,f);S=f+2;break}else if(Z[S]=="[".charCodeAt(0)){S++;w.G=[];while(Z[S]==" ".charCodeAt(0)||Z[S]=="\t".charCodeAt(0)||Z[S]=="\n".charCodeAt(0))S++;
while(Z[S]!="]".charCodeAt(0)){var h=bc.av(Z,S,b+1,Y);w.G.push(h.G);S+=h.size;while(Z[S]==" ".charCodeAt(0)||Z[S]=="\t".charCodeAt(0)||Z[S]=="\n".charCodeAt(0))S++}S++;
break}else{var Q=k.indexOf(Z," ".charCodeAt(0),S,S+50),e=k.indexOf(Z,"\n".charCodeAt(0),S,S+50);if(e==-1)e=Infinity;
if(Q==-1)Q=Infinity;var l=k.zG(Z,S,Math.min(Q,e)-S).trim(),O=parseFloat(l);if(!isNaN(O)){w.G=parseFloat(l);
S=Math.min(Q,e)+1;break}else if(l=="true"||l=="false"){w.G=l=="true";S=Math.min(Q,e)+1;break}else if(l=="null"||l=="NaN"||l=="undefined"){w.G=0;
S=Math.min(Q,e)+1;break}else{console.log("unknown identifier: "+l);throw"e"}S=Math.min(Q,e)+1}}w.size=S-P;
return w};bc.DN=function(Z,S,b,Y){if(Z instanceof Array){var P=Z.length==0||typeof Z[0]=="number";if(P){k.Nm(S,b,"[ ");
b+=2;for(var D=0;D<Z.length;D++){var w=Z[D]+" ";k.Nm(S,b,w);b+=w.length}k.Nm(S,b,"]");b+=1}else{k.Nm(S,b,"[\n");
b+=2;for(var D=0;D<Z.length;D++){k.sL(S,b,"\t".charCodeAt(0),Y);b+=Y;b=bc.DN(Z[D],S,b,Y);k.Nm(S,b,"\n");
b++}k.sL(S,b,"\t".charCodeAt(0),Y);b+=Y;k.Nm(S,b,"]");b+=1}}else if(Z instanceof Object){b=bc.gc(Z,S,b,Y)}else if(typeof Z=="string"){k.Nm(S,b,"(");
b++;k.sL(S,b,254);b++;k.sL(S,b,255);b++;b=k.v_(S,b,Z);k.Nm(S,b,")");b+=1}else{var w=Z+"";k.Nm(S,b,w);
b+=w.length}return b};bc.afp=function(Z){var S=typeof Z;return S=="string"||S=="number"||S=="boolean"};
function hg(){}hg.Vq=function(Z){var S={};hg.Pj(Z,S,0,0);return S};hg.TG=function(Z,S){var b=0;k.Nm(S,b," ");
b++;b=hg.jz(Z,S,b,0);b--;S.Ml(b,2);S.data[b]=S.data[b+1]=0;b+=2;return b};hg.Mm=function(Z,S,b,Y){while(Z[b]!="<".charCodeAt(0)){b++;
console.log("\u0161ipka")}b+=2;b=hg.Pj(Z,S,b,Y);return b};hg.gc=function(Z,S,b,Y){k.Nm(S,b,"<< ");b+=3;
b=hg.jz(Z,S,b,Y);k.Nm(S,b,">>");b+=2;return b};hg.D6=function(Z){return Z==9||Z==10||Z==32};hg.Pj=function(Z,S,b,Y){while(!0){while(hg.D6(Z[b])||Z[b]==0)b++;
if(b>=Z.length)break;if(Z[b]=="/".charCodeAt(0)){b++;var P=b;while(!hg.D6(Z[P]))P++;var w=k.zG(Z,b,P-b);
b=P+1;var f=hg.av(Z,b,Y,w);S["_"+w]=f.G;b+=f.size}else if(Z[b]==">".charCodeAt(0)){b+=2;break}else{var h=Z[b];
console.log(k.zG(Z,b,b+100));console.log("unknown byte: "+h+", char: "+String.fromCharCode(h)+", offset: "+b);
b++;throw"e";return-1}}return b};hg.jz=function(Z,S,b,Y){for(var P in Z){var w=P.substring(1,P.length);
k.Nm(S,b,"/"+w);b+=1+w.length;k.Nm(S,b," ");b++;b=hg.DN(Z[P],S,b,Y+1);k.Nm(S,b," ");b++}return b};hg.av=function(Z,S,b,Y){var P=S,w={type:"",size:0,G:0};
while(hg.D6(Z[S]))S++;if(Z[S]=="<".charCodeAt(0)){w.type="Object";w.G={};S=hg.Mm(Z,w.G,S,b+1)}else if(Z[S]=="(".charCodeAt(0)){w.type="String";
S++;if(Z[S]==")".charCodeAt(0)){w.G="s";S++}else{S+=2;var f=S,h=0;while(!0){if(Z[f]==")".charCodeAt(0)&&Z[f-1]!="\\".charCodeAt(0))break;
else f+=1}w.G="s"+k.iR(Z,S,f);S=f+2}}else if(Z[S]=="[".charCodeAt(0)){S++;w.G=[];w.type="Array";while(hg.D6(Z[S]))S++;
while(Z[S]!="]".charCodeAt(0)){var Q=hg.av(Z,S,b+1,Y);if(Q==-1)return-1;w.G.push(Q.G);S+=Q.size;delete Q.size;
while(hg.D6(Z[S]))S++}S++}else{var e=S;while(!hg.D6(Z[e]))e++;var l=k.zG(Z,S,e-S),O=parseFloat(l);if(!isNaN(O)&&l.indexOf(".")!=-1){w.type="Float";
var m=parseFloat(l);w.G="f"+m}else if(!isNaN(O)&&l.indexOf(".")==-1){w.type="Integer";w.G="i"+parseInt(l)}else if(l=="true"||l=="false"){w.type="Boolean";
w.G=l=="true"}else if(l.charAt(0)=="/"){w.type="BString";w.G=l}else if(l=="NaN"){w.type="Float";w.G="f0"}else{console.log("unknown value",JSON.stringify(l));
throw"e"}S=e+1}w.size=S-P;return w};hg.a8C=function(Z){if(Z==Math.round(Z))return Z+".0";var S=Z.toFixed(5);
if(0<Z&&Z<1)S=S.substring(1,S.length);if(-1<Z&&Z<0)S="-"+S.substring(2,S.length);return S};hg.DN=function(Z,S,b,Y){var P=typeof Z=="string"?Z.charAt(0):"";
if(Z instanceof Array){k.Nm(S,b,"[ ");b+=2;for(var D=0;D<Z.length;D++){b=hg.DN(Z[D],S,b,Y);k.Nm(S,b," ");
b++}k.Nm(S,b,"]");b+=1}else if(Z instanceof Object){b=hg.gc(Z,S,b,Y)}else if(P=="s"){k.Nm(S,b,"(");b++;
k.sL(S,b,254);b++;k.sL(S,b,255);b++;b=k.v_(S,b,Z.substring(1));k.Nm(S,b,")");b++}else if(P=="/"){k.Nm(S,b,Z);
b+=Z.length}else if(P=="f"){var w=parseFloat(Z.substring(1)),f=hg.a8C(w);k.Nm(S,b,f);b+=f.length}else if(P=="i"){k.Nm(S,b,Z.substring(1));
b+=Z.length-1}else{var f=Z+"";k.Nm(S,b,f);b+=f.length}return b};function ar(Z,S){if(!Z)Z=0;if(!S)S=0;
this.x=Z;this.y=S}ar.prototype.add=function(Z){return new ar(this.x+Z.x,this.y+Z.y)};ar.prototype.clone=function(){return new ar(this.x,this.y)};
ar.prototype.ky=function(Z){this.x=Z.x;this.y=Z.y};ar.prototype.Oh=function(Z){return this.x==Z.x&&this.y==Z.y};
ar.prototype.normalize=function(Z){var S=Math.sqrt(this.x*this.x+this.y*this.y);this.x*=Z/S;this.y*=Z/S};
ar.prototype.offset=function(Z,S){this.x+=Z;this.y+=S};ar.prototype.Ha=function(Z,S){this.x=Z;this.y=S};
ar.prototype.jZ=function(Z){return new ar(this.x-Z.x,this.y-Z.y)};ar.VA=function(Z,S){return ar.aht(Z.x,Z.y,S.x,S.y)};
ar.Db=function(Z,S,b){return new ar(Z.x+b*(S.x-Z.x),Z.y+b*(S.y-Z.y))};ar.aal=function(Z,S){return new ar(Z*Math.cos(S),Z*Math.sin(S))};
ar.aht=function(Z,S,b,Y){return Math.sqrt((b-Z)*(b-Z)+(Y-S)*(Y-S))};ar.$Y={};ar.qw={};ar.$Y.create=function(){var Z=new Float32Array(4);
return Z};ar.qw.create=function(Z){var S=new Float32Array(16);S[0]=S[5]=S[10]=S[15]=1;if(Z)ar.qw.set(Z,S);
return S};ar.$Y.add=function(Z,S,b){b[0]=Z[0]+S[0];b[1]=Z[1]+S[1];b[2]=Z[2]+S[2];b[3]=Z[3]+S[3]};ar.$Y.set=function(Z,S){S[0]=Z[0];
S[1]=Z[1];S[2]=Z[2];S[3]=Z[3]};ar.qw.set=function(Z,S){S[0]=Z[0];S[1]=Z[1];S[2]=Z[2];S[3]=Z[3];S[4]=Z[4];
S[5]=Z[5];S[6]=Z[6];S[7]=Z[7];S[8]=Z[8];S[9]=Z[9];S[10]=Z[10];S[11]=Z[11];S[12]=Z[12];S[13]=Z[13];S[14]=Z[14];
S[15]=Z[15]};ar.qw.multiply=function(Z,S,b){var Y=Z[0],P=Z[1],w=Z[2],f=Z[3],h=Z[4],Q=Z[5],e=Z[6],l=Z[7],O=Z[8],m=Z[9],V=Z[10],q=Z[11],K=Z[12],z=Z[13],t=Z[14],H=Z[15],i=S[0],y=S[1],j=S[2],J=S[3];
b[0]=i*Y+y*h+j*O+J*K;b[1]=i*P+y*Q+j*m+J*z;b[2]=i*w+y*e+j*V+J*t;b[3]=i*f+y*l+j*q+J*H;i=S[4];y=S[5];j=S[6];
J=S[7];b[4]=i*Y+y*h+j*O+J*K;b[5]=i*P+y*Q+j*m+J*z;b[6]=i*w+y*e+j*V+J*t;b[7]=i*f+y*l+j*q+J*H;i=S[8];y=S[9];
j=S[10];J=S[11];b[8]=i*Y+y*h+j*O+J*K;b[9]=i*P+y*Q+j*m+J*z;b[10]=i*w+y*e+j*V+J*t;b[11]=i*f+y*l+j*q+J*H;
i=S[12];y=S[13];j=S[14];J=S[15];b[12]=i*Y+y*h+j*O+J*K;b[13]=i*P+y*Q+j*m+J*z;b[14]=i*w+y*e+j*V+J*t;b[15]=i*f+y*l+j*q+J*H;
return b};ar.qw.inverse=function(Z,S){var b=Z[0],Y=Z[1],P=Z[2],w=Z[3],f=Z[4],h=Z[5],Q=Z[6],e=Z[7],l=Z[8],O=Z[9],m=Z[10],V=Z[11],q=Z[12],K=Z[13],z=Z[14],t=Z[15],H=b*h-Y*f,i=b*Q-P*f,y=b*e-w*f,j=Y*Q-P*h,J=Y*e-w*h,A=P*e-w*Q,a=l*K-O*q,I=l*z-m*q,E=l*t-V*q,c=O*z-m*K,u=O*t-V*K,n=m*t-V*z,o=H*n-i*u+y*c+j*E-J*I+A*a;
if(!o){return null}o=1/o;S[0]=(h*n-Q*u+e*c)*o;S[1]=(P*u-Y*n-w*c)*o;S[2]=(K*A-z*J+t*j)*o;S[3]=(m*J-O*A-V*j)*o;
S[4]=(Q*E-f*n-e*I)*o;S[5]=(b*n-P*E+w*I)*o;S[6]=(z*y-q*A-t*i)*o;S[7]=(l*A-m*y+V*i)*o;S[8]=(f*u-h*E+e*a)*o;
S[9]=(Y*E-b*u-w*a)*o;S[10]=(q*J-K*y+t*H)*o;S[11]=(O*y-l*J-V*H)*o;S[12]=(h*I-f*c-Q*a)*o;S[13]=(b*c-Y*I+P*a)*o;
S[14]=(K*i-q*j-z*H)*o;S[15]=(l*j-O*i+m*H)*o;return S};ar.qw.alf=function(Z,S,b){var Y=S[0],P=S[1];b[0]=Y*Z[0]+P*Z[4]+Z[12];
b[1]=Y*Z[1]+P*Z[5]+Z[13]};ar.qw.ahk=function(Z,S,b){var Y=S[0],P=S[1],w=S[2],f=S[3];b[0]=Z[0]*Y+Z[4]*P+Z[8]*w+Z[12]*f;
b[1]=Z[1]*Y+Z[5]*P+Z[9]*w+Z[13]*f;b[2]=Z[2]*Y+Z[6]*P+Z[10]*w+Z[14]*f;b[3]=Z[3]*Y+Z[7]*P+Z[11]*w+Z[15]*f};
function fR(Z,S,b,Y,P,w){if(typeof Z==="undefined"){Z=1;S=0;b=0;Y=1;P=0;w=0}this.w=Z;this.O=S;this.tE=b;
this.KU=Y;this.RN=P;this.Sv=w}fR.prototype.I2=function(){return Math.sqrt(Math.abs(this.w*this.KU-this.O*this.tE))};
fR.prototype.DO=function(){var Z=this,S=function(b){return Math.abs(b)<1e-9?0:b};Z.w=S(Z.w);Z.O=S(Z.O);
Z.tE=S(Z.tE);Z.KU=S(Z.KU);Z.RN=S(Z.RN);Z.Sv=S(Z.Sv)};fR.prototype.YI=function(Z){return new ar(Z.x*this.w+Z.y*this.tE+this.RN,Z.x*this.O+Z.y*this.KU+this.Sv)};
fR.prototype.translate=function(Z,S){this.RN+=Z;this.Sv+=S};fR.prototype.rotate=function(Z){var S=new fR(Math.cos(Z),-Math.sin(Z),Math.sin(Z),Math.cos(Z),0,0);
this.concat(S)};fR.prototype.scale=function(Z,S){var b=new fR(Z,0,0,S,0,0);this.concat(b)};fR.prototype.concat=function(Z){this.ky(new fR(this.w*Z.w+this.O*Z.tE,this.w*Z.O+this.O*Z.KU,this.tE*Z.w+this.KU*Z.tE,this.tE*Z.O+this.KU*Z.KU,this.RN*Z.w+this.Sv*Z.tE+Z.RN,this.RN*Z.O+this.Sv*Z.KU+Z.Sv))};
fR.prototype.oN=function(){var Z=this.w*this.KU-this.O*this.tE;this.ky(new fR(this.KU/Z,-this.O/Z,-this.tE/Z,this.w/Z,(this.tE*this.Sv-this.KU*this.RN)/Z,(this.O*this.RN-this.w*this.Sv)/Z))};
fR.prototype.clone=function(){return new fR(this.w,this.O,this.tE,this.KU,this.RN,this.Sv)};fR.prototype.ky=function(Z){this.w=Z.w;
this.O=Z.O;this.tE=Z.tE;this.KU=Z.KU;this.RN=Z.RN;this.Sv=Z.Sv};function k(){}k.aab=function(C){var Z="";
for(var D=3;D>=0;D--)Z+=String.fromCharCode(C>>D*8&255);return Z};k.anx=function(Z){var C=0;for(var D=Z.length-1;
D>=0;D--)C|=Z.charCodeAt(D)<<(3-D)*8;return C};k.indexOf=function(Z,S,b,Y){if(b==null)b=0;if(Y==null)Y=Z.length;
Y=Math.min(Y,Z.length);for(var D=b;D<Y;D++)if(Z[D]==S)return D;return-1};k.Ve=function(Z,S,b){if(b==null)b=0;
var Y=S.length,P=Z.length-Y;if(typeof S=="string"){var w=[];for(var D=0;D<Y;D++)w.push(S.charCodeAt(D));
S=w}if(S.length>0){var f=S[0];for(var D=b;D<P;D++)if(Z[D]==f){var h=!0;for(var Q=1;Q<Y;Q++)if(S[Q]!=Z[D+Q]){h=!1;
break}if(h)return D}}return-1};k.iR=function(Z,S,b){var Y=[],w="";while(S<b){var P=Z[S++];if(P=="\\".charCodeAt(0))Y.push(Z[S++]);
else Y.push(P)}for(var D=0;D<Y.length;D+=2)w+=String.fromCharCode(Y[D]<<8|Y[D+1]);return w};k.a3v=function(Z,S,b){var Y=new Uint8Array(2);
for(var D=0;D<b.length;D++){k.xd(Y,0,b.charCodeAt(D));if(Y[0]==")".charCodeAt(0)||Y[0]=="(".charCodeAt(0)||Y[0]=="\\".charCodeAt(0)){Z[S]="\\".charCodeAt(0);
S++}Z[S]=Y[0];S++;if(Y[1]==")".charCodeAt(0)||Y[1]=="(".charCodeAt(0)||Y[1]=="\\".charCodeAt(0)){Z[S]="\\".charCodeAt(0);
S++}Z[S]=Y[1];S++}return S};k.v_=function(Z,S,b){Z.Ml(S,4*b.length);return k.a3v(Z.data,S,b)};k.AT=function(Z,S,b){var Y="";
for(var D=0;D<b;D++){var P=Z[S++]|Z[S++]<<8;Y+=String.fromCharCode(P)}return Y};k.vH=function(Z,S,b){var Y="";
for(var D=0;D<b;D++){var P=Z[S++]<<8|Z[S++];Y+=String.fromCharCode(P)}return Y};k.ac3=function(Z,S,b){for(var D=0;
D<b.length;D++){var Y=b.charCodeAt(D);k.bK(Z,S+2*D,Y)}};k.BX=function(Z,S,b){for(var D=0;D<b.length;
D++){var Y=b.charCodeAt(D);k.xd(Z,S+2*D,Y)}};k.ajg=function(Z,S,b){Z.Ml(S,2*b.length);k.BX(Z.data,S,b)};
k.aa9=function(Z,D,S){var b=[],Y=0,P=0;S+=D;while(D<S){Y=Z[D++];if((Y&128)==0)P=Y;else if((Y&224)==192){P=(Y&31)<<6;
Y=Z[D++];P|=Y&63}else if((Y&240)==224){P=(Y&15)<<12;Y=Z[D++];P|=(Y&63)<<6;Y=Z[D++];P|=Y&63}else if((Y&248)==240){P=(Y&7)<<18;
Y=Z[D++];P|=(Y&63)<<12;Y=Z[D++];P|=(Y&63)<<6;Y=Z[D++];P|=Y&63}else throw"e";b.push(P)}return b};k.bg=window.TextDecoder?new window.TextDecoder("utf8"):null;
k.cP=function(Z,S,b){if(S==null)S=0;if(b==null)b=Z.length;if(k.bg&&S==0&&b==Z.length)return k.bg.decode(Z);
var Y=k.aa9(Z,S,b),P=Y.length;for(var D=0;D<P;D++)Y[D]=String.fromCharCode(Y[D]);return Y.join("")};
k.WO=window.TextEncoder?new window.TextEncoder("utf8"):null;k.IN=function(Z){if(k.WO)return k.WO.encode(Z);
var S=new Uint8Array(Z.length*4),b=k.Cz(Z,S,0);return S.slice(0,b)};k.Cz=function(Z,S,b){var Y=Z.length,D=0;
for(var P=0;P<Y;P++){var w=Z.charCodeAt(P);if((w&4294967295-(1<<7)+1)==0){S[b+D]=w;D++}else if((w&4294967295-(1<<11)+1)==0){S[b+D]=192|w>>6;
S[b+D+1]=128|w>>0&63;D+=2}else if((w&4294967295-(1<<16)+1)==0){S[b+D]=224|w>>12;S[b+D+1]=128|w>>6&63;
S[b+D+2]=128|w>>0&63;D+=3}else if((w&4294967295-(1<<21)+1)==0){S[b+D]=240|w>>18;S[b+D+1]=128|w>>12&63;
S[b+D+2]=128|w>>6&63;S[b+D+3]=128|w>>0&63;D+=4}else throw"e"}return D};k.MA=function(Z,S){var b=k.r(Z,S),Y=k.cP(Z,S+4,b-1);
return{zk:Y,jM:4+b}};k.a4Z=function(Z,S){var b=k.l2(Z,S),Y=k.AT(Z,S+4,b);return Y};k.U9=function(Z,S){var b=k.r(Z,S),Y=k.vH(Z,S+4,b);
return Y};k.PJ=function(Z,S){var b=k.r(Z,S),Y=k.vH(Z,S+4,b-1);return Y};k.aj3=function(Z,S,b){k.Fu(Z,S,b.length);
S+=4;k.ac3(Z,S,b)};k.a2H=function(Z,S,b){k.KI(Z,S,b.length);S+=4;k.BX(Z,S,b)};k.d3=function(Z,S,b){Z.Ml(S,4+2*b.length);
k.a2H(Z.data,S,b)};k.amk=function(Z,S,b){Z.Ml(S,4+2*b.length);k.aj3(Z.data,S,b)};k.LO=function(Z,S,b){var Y=[];
for(var D=0;D<b;D++)Y.push(String.fromCharCode(Z[S+D]));return Y};k.a6f=function(Z,S,b){var Y=!1,P=Z.length-b.length;
for(var D=S;D<P;D++){for(var w=0;w<b.length;w++){if(Z[D+w]!=b.charCodeAt(w))break;if(w==b.length-1)return D}}};
k.zG=function(Z,S,b){var Y="";for(var D=0;D<b;D++)Y+=String.fromCharCode(Z[S+D]);return Y};k.ue=function(Z,S,b){for(var D=0;
D<b.length;D++)Z[S+D]=b.charCodeAt(D)};k.Nm=function(Z,S,b){Z.Ml(S,b.length);k.ue(Z.data,S,b)};k.anM=function(Z,S,b){var Y="";
for(var D=0;D<b;D++){var P=Z[S+D];if(P<10)Y+=" ";else if(P<100)Y+=" ";Y+=P+", "}return Y};k.gU=function(Z,S){return Z[S]<<8|Z[S+1]};
k.xd=function(Z,S,C){Z[S]=C>>8&255;Z[S+1]=C&255};k.WA=function(Z,S,C){Z.Ml(S,4);k.xd(Z.data,S,C)};k.amT=function(Z,S){var b=k.gU(Z,S),Y=k.gU(Z,S+2);
return b+Y*(1/65536)};k.aM=function(Z,S,C){var b=Math.floor(C),Y=Math.floor((C-b)*65536);k.xd(Z,S,b);
k.xd(Z,S+2,Y)};k.ME=function(Z,S){return Z[S+1]<<8|Z[S]};k.bK=function(Z,S,C){Z[S+1]=C>>8&255;Z[S]=C&255};
k.RG=function(Z,S,C){Z.Ml(S,4);k.bK(Z.data,S,C)};k.S1=function(Z,S){k.Ld[0]=Z[S+1];k.Ld[1]=Z[S];return k.bA[0]};
k.gh=function(Z,S){k.Ld[0]=Z[S];k.Ld[1]=Z[S+1];return k.bA[0]};k.IQ=k.xd;k.Ul=k.WA;k.Dk=function(Z,S){k.lN[0]=Z[S+3];
k.lN[1]=Z[S+2];k.lN[2]=Z[S+1];k.lN[3]=Z[S];return k.IR[0]};k.kQ=function(Z,S,C){k.IR[0]=C;Z[S+3]=k.lN[0];
Z[S+2]=k.lN[1];Z[S+1]=k.lN[2];Z[S+0]=k.lN[3]};k.Fe=function(Z,S,C){Z.Ml(S,4);k.kQ(Z.data,S,C)};k.Jk=function(Z,S,b,Y){b[Y+0]=Z[S+0];
b[Y+1]=Z[S+1];b[Y+2]=Z[S+2];b[Y+3]=Z[S+3]};k.l2=function(Z,S){k.Jk(Z,S,k.lN,0);return k.W8[0]};k.Fu=function(Z,S,C){k.W8[0]=C;
k.Jk(k.lN,0,Z,S)};k.xo=function(Z,S,C){Z.Ml(S,4);k.Fu(Z.data,S,C)};k.xq=function(Z,S){k.Jk(Z,S,k.lN,0);
return k.IR[0]};k.aaV=function(Z,S,C){k.IR[0]=C;k.Jk(k.lN,0,Z,S)};k.a9E=function(Z,S,C){Z.Ml(S,4);k.aaV(Z.data,S,C)};
k.r=function(Z,S){var b=Z[S]*(256*256*256)+(Z[S+1]<<16|Z[S+2]<<8|Z[S+3]);return b};k.KI=function(Z,S,C){Z[S]=C>>24&255;
Z[S+1]=C>>16&255;Z[S+2]=C>>8&255;Z[S+3]=C>>0&255};k.DK=function(Z,S,C){Z.Ml(S,4);k.KI(Z.data,S,C)};k.JX=function(Z,S){return k.r(Z,S)<<32|k.r(Z,S+4)};
k.rp=function(Z,S,C){k.KI(Z,S,C>>16>>16);k.KI(Z,S+4,C&4294967295)};k.CI=function(Z,S,C){Z.Ml(S,8);k.rp(Z.data,S,C)};
k.j4=function(Z,S){var b=new Uint8Array(8);for(var D=0;D<8;D++)b[D]=Z[S+7-D];var Y=new Float64Array(b.buffer);
return Y[0]};k.a2E=function(Z,S){var b=new Uint8Array(8);for(var D=0;D<8;D++)b[D]=Z[S+D];var Y=new Float64Array(b.buffer);
return Y[0]};k.Gs=function(Z,S,C){var b=new Float64Array(1);b[0]=C;var Y=new Uint8Array(b.buffer);for(var D=0;
D<4;D++){var P=Y[D];Y[D]=Y[7-D];Y[7-D]=P}for(var D=0;D<8;D++)Z[S+D]=Y[D]};k.LW=function(Z,S,C){Z.Ml(S,8);
k.Gs(Z.data,S,C)};k.Wi=function(Z,S){k.lN[0]=Z[S+3];k.lN[1]=Z[S+2];k.lN[2]=Z[S+1];k.lN[3]=Z[S+0];return k.JT[0]};
k.Td=function(Z,S){k.lN[0]=Z[S+0];k.lN[1]=Z[S+1];k.lN[2]=Z[S+2];k.lN[3]=Z[S+3];return k.JT[0]};k.GQ=function(Z,S,C){k.JT[0]=C;
Z[S+0]=k.lN[3];Z[S+1]=k.lN[2];Z[S+2]=k.lN[1];Z[S+3]=k.lN[0]};k.aot=function(Z,S,C){Z.Ml(S,4);k.GQ(Z.data,S,C)};
k.vy=function(Z,S,C){k.JT[0]=C;Z[S+0]=k.lN[0];Z[S+1]=k.lN[1];Z[S+2]=k.lN[2];Z[S+3]=k.lN[3]};k.a26=function(Z,S,C){Z.Ml(S,4);
k.vy(Z.data,S,C)};k.ao6=function(Z,S){var b=k.Dk(Z,S),Y=b*(1/(1<<24));return Y};k.hS=function(Z,S,b){var Y=Math.floor(b*(1<<24));
k.kQ(Z,S,Y)};k.aha=function(Z,S,b){Z.Ml(S,4);k.hS(Z.data,S,b)};k.yA=function(Z,S){var b=Z[S],Y=k.zG(Z,S+1,b);
b+=1-b%2;return{mz:Y,length:b+1}};k.af7=function(Z,S,b){var Y=b.length;Z[S]=Y;k.ue(Z,S+1,b);if(Y%2==0){Z[S+1+Y]=0;
++Y}return Y+1};k.Bn=function(Z,S,b){Z.Ml(S,b.length+2);return k.af7(Z.data,S,b)};k.Nw=function(Z,S){var b=new fR;
b.w=k.j4(Z,S+0*8);b.O=k.j4(Z,S+1*8);b.tE=k.j4(Z,S+2*8);b.KU=k.j4(Z,S+3*8);b.RN=k.j4(Z,S+4*8);b.Sv=k.j4(Z,S+5*8);
return b};k.X0=function(Z,S,b){k.Gs(Z,S+0*8,b.w);k.Gs(Z,S+1*8,b.O);k.Gs(Z,S+2*8,b.tE);k.Gs(Z,S+3*8,b.KU);
k.Gs(Z,S+4*8,b.RN);k.Gs(Z,S+5*8,b.Sv)};k.abA=function(Z,S,b){Z.Ml(S,48);k.X0(Z.data,S,b)};k.a5F=function(Z,S){var b=k.Wi(Z,S),Y=k.Wi(Z,S+4),P=k.Wi(Z,S+8),w=k.Wi(Z,S+12);
return new b4(b,Y,P-b,w-Y)};k.ab7=function(Z,S,b){k.GQ(Z,S,b.x);k.GQ(Z,S+4,b.y);k.GQ(Z,S+8,b.x+b.c);
k.GQ(Z,S+12,b.y+b.v)};k.a8U=function(Z,S,b){Z.Ml(S,16);k.ab7(Z.data,S,b)};k.TD=function(Z,S){var b=k.Dk(Z,S),Y=k.Dk(Z,S+4),P=k.Dk(Z,S+8),w=k.Dk(Z,S+12);
return new b4(Y,b,w-Y,P-b)};k.o7=function(Z,S,b){k.kQ(Z,S,b.y);k.kQ(Z,S+4,b.x);k.kQ(Z,S+8,b.y+b.v);k.kQ(Z,S+12,b.x+b.c)};
k.bW=function(Z,S,b){Z.Ml(S,16);k.o7(Z.data,S,b)};k.NR=function(Z,S,b){var Y=new Uint8Array(b);for(var D=0;
D<b;D++)Y[D]=Z[S+D];return Y};k.wQ=function(Z,S,b){Z.set(b,S)};k.Is=function(Z,S,b){Z.Ml(S,b.length);
k.wQ(Z.data,S,b)};k.a5B=function(Z,S,b,C){if(!C)C=1;for(var D=0;D<C;D++)Z[S+D]=b};k.sL=function(Z,S,b,C){if(!C)C=1;
Z.Ml(S,C);k.a5B(Z.data,S,b,C)};k.bA=new Int16Array(1);k.Ld=new Uint8Array(k.bA.buffer);k.IR=new Int32Array(1);
k.W8=new Uint32Array(k.IR.buffer);k.lN=new Uint8Array(k.IR.buffer);k.JT=new Float32Array(k.IR.buffer);
function b4(Z,S,b,Y){if(!Z)Z=0;if(!S)S=0;if(!b)b=0;if(!Y)Y=0;this.x=Z;this.y=S;this.c=b;this.v=Y}b4.prototype.X=function(){return this.c*this.v};
b4.prototype.clone=function(){return new b4(this.x,this.y,this.c,this.v)};b4.prototype.contains=function(Z,S){return Z>=this.x&&Z<=this.x+this.c&&(S>=this.y&&S<=this.y+this.v)};
b4.prototype.DS=function(Z){return this.contains(Z.x,Z.y)};b4.prototype.ls=function(Z){return this.x<=Z.x&&this.y<=Z.y&&Z.x+Z.c<=this.x+this.c&&Z.y+Z.v<=this.y+this.v};
b4.prototype.ky=function(Z){this.x=Z.x;this.y=Z.y;this.c=Z.c;this.v=Z.v};b4.prototype.Oh=function(Z){return this.x==Z.x&&this.y==Z.y&&this.c==Z.c&&this.v==Z.v};
b4.prototype.lg=function(Z,S){this.x-=Z;this.y-=S;this.c+=2*Z;this.v+=2*S};b4.prototype.aii=function(Z){this.lg(Z.x,Z.y)};
b4.prototype.Yz=function(Z){var S=Math.max(this.x,Z.x),b=Math.max(this.y,Z.y),Y=Math.min(this.x+this.c,Z.x+Z.c),P=Math.min(this.y+this.v,Z.y+Z.v);
if(Y<S||P<b)return new b4;else return new b4(S,b,Y-S,P-b)};b4.prototype.U5=function(Z){if(Z.y+Z.v<this.y||Z.x>this.x+this.c||Z.y>this.y+this.v||Z.x+Z.c<this.x)return!1;
return!0};b4.prototype.h3=function(){return this.c<=0||this.v<=0};b4.prototype.offset=function(Z,S){this.x+=Z;
this.y+=S};b4.prototype.b6=function(Z){this.offset(Z.x,Z.y)};b4.prototype.aeZ=function(){this.x=this.y=this.c=this.v=0};
b4.prototype.Ha=function(Z,S,b,Y){this.x=Z;this.y=S;this.c=b;this.v=Y};b4.prototype.VK=function(Z){if(this.h3())return Z.clone();
if(Z.h3())return this.clone();var S=this.clone();S.am1(Z);return S};b4.ap=new Float32Array(2);b4.prototype.am1=function(Z){if(Z.h3())return;
if(this.h3()){this.ky(Z);return}this.U$(Z.x,Z.y);this.U$(Z.x+Z.c,Z.y+Z.v)};b4.prototype.U$=function(Z,S){var b=Math.min(this.x,Z),Y=Math.min(this.y,S);
this.c=Math.max(this.x+this.c,Z)-b;this.v=Math.max(this.y+this.v,S)-Y;this.x=b;this.y=Y};b4.prototype.afh=function(Z,S){this.x=Z;
this.y=S;this.c=this.v=0};function cr(){}cr.Vq=function(Z,S){var b=new Uint8Array(Z),Y=0,P=k.zG(b,Y,9),h=4,Q=100;
Y+=9;var w=k.zG(b,Y,4);Y+=4;Y++;S.c=k.r(b,Y);Y+=4;S.v=k.r(b,Y);Y+=4;var f=k.r(b,Y);Y+=4;if(f!=0)alert("Unsupported image format, not RGB!");
if(["file","v001","v002","v003"].indexOf(w)==-1){Q=k.r(b,Y);Y+=4;if(parseInt(w.slice(1))>=7){Q=Q}else alert("Unknown XCF version: "+w);
h=8}var e={};Y=cr.Ou(b,Y,e);var l=[];Y=cr.wB(b,Y,l,h);var O=[];Y=cr.wB(b,Y,O,h);S.Qo=0;for(var D=0;D<l.length;
D++)cr.anq(b,l[D],S,e,h,Q);while(S.Qo>0){S.t.push(S._z());S.Qo--}S.t.reverse();delete S.Qo;S.buffer=T.f(S.c*S.v*4);
if(S.t.length==0)console.log("No layers!!!");for(var D=0;D<O.length;D++){var m=cr.G9(b,O[D],e,h,Q);if(m.aX[by.a73])S.N={channel:m.sK,rect:new b4(0,0,S.c,S.v)}}};
cr.anq=function(Z,S,b,Y,P,w){var f=b.Dl(),h=k.r(Z,S),O=0;S+=4;var Q=k.r(Z,S);S+=4;f.rect=new b4(0,0,h,Q);
var e=k.r(Z,S);S+=4;var l=k.MA(Z,S);S+=l.jM;f.wc(l.zk);var m={};S=cr.Ou(Z,S,m);if(m[by.Sk]){var V=m[by.Sk];
O=V.length/4-1}if(m[by.zE]){f.rect.x=k.Dk(m[by.zE],0);f.rect.y=k.Dk(m[by.zE],4)}if(m[by._N]){f.opacity=k.r(m[by._N],0)}if(m[by.aog]){f.add.lsct=fr.k8;
f.rect=new b4(0,0,0,0);f.buffer=T.f(0);f.NG=24}if(m[by.Fk]){var q=k.r(m[by.Fk],0);f.WL=by.aoA[q];if(f.W$()&&f.WL=="norm")f.WL="pass"}if(m[by.iV]){if(k.r(m[by.iV],0)==0)f.NG+=2}if(m[by.Ga]){var K=k.r(m[by.Ga],0);
f.add.lsct=K&1==1?fr.k8:fr.U1}if(m[by.BR]){var z=m[by.BR];for(var t in z){var H=z[t];if(t=="gimp-text-layer"){var i=cr.a6r(H),y=i.text,j=i.font,J=i.color,A=i["font-size"];
if(y==null&&i.markup){var a=new DOMParser,I=a.parseFromString(i.markup,"image/svg+xml");while(I.firstChild!=null&&I.firstChild.tagName!=null){I=I.firstChild;
var E=I.getAttribute("font"),c=I.getAttribute("foreground"),u=I.getAttribute("size");if(E!=null)j=E;
if(c!=null){c=CSS.R0(c);J=[1,c.h/255,c.l/255,c.O/255]}if(u!=null){A=""+parseFloat(u)/245}}y=I.textContent}f.add.lnsr="rend";
f.add.TySh=eO.nR(0,0);f.add.TySh.az=new b4(0,0,100,100);f.add.TySh.A=new fR(1,0,0,1,f.rect.x,f.rect.y);
var n=f.add.TySh.HK;eO.kk(n,0,y);var o=eO.SZ(n,0,0),x=i.justify,g=i["line-spacing"];if(J)o.xp.FillColor={Type:1,Values:[1,parseFloat(J[1]),parseFloat(J[2]),parseFloat(J[3])]};
if(A){A=Math.round(parseFloat(A));o.xp.FontSize=A;f.add.TySh.A.Sv+=Math.min(17,A*.17)}if(g){g=Math.round(parseFloat(g)+o.xp.FontSize*1.2);
o.xp.Leading=g;o.xp.AutoLeading=!1}if(x)o.jm.Justification=["left","right","center","fill"].indexOf(x);
if(j&&j!="Sans-serif"){var v=j.toLowerCase(),R="bold italic semi extra regular condensed light".split(" "),X=v.length;
for(var D=0;D<R.length;D++){var B=v.indexOf(R[D]);if(B!=-1&&B<X&&v[B-1]==" ")X=B}if(X!=v.length)j=j.slice(0,X-1).split(" ").join("")+"-"+j.slice(X).split(" ").join("");
eO.FK(o,j)}eO.Yg(n,0,y.length,o);var M=i["box-width"],N=i["box-height"],$=M?parseFloat(M):f.rect.c,eQ=N?parseFloat(N):f.rect.v;
eO.es(n,1);eO.oZ(n,[0,0,Math.ceil($),Math.ceil(eQ)])}else console.log("Unknown property "+t)}}while(b.Qo>O){b.t.push(b._z());
b.Qo--}b.Qo=O;if(f.add.lsct==fr.k8||f.add.lsct==fr.U1)b.Qo++;var hN=P==4?k.r:k.JX;if(f.bu()){f.buffer=T.f(f.rect.X()*4);
var bI=new T.XA(f.rect.X()),fq=hN(Z,S);S+=P;var e9=hN(Z,S);S+=P;cr.td(Z,fq,bI,Y,P,w);T.s$(bI,f.buffer);
if(e9!=0){f.d=new F.bN;f.d.color=0;f.d.rect=f.rect.clone();f.d.channel=cr.G9(Z,e9,Y,P,w).sK;if(m[by.YR])f.d.isEnabled=k.r(m[by.YR],0)==1}}b.t.push(f)};
cr.a6r=function(Z){var S="("+k.cP(Z,0,Z.length-1)+")",b=[],Y={};cr.Qd(S,1,b);cr.afL(b,Y);return Y};cr.afL=function(Z,S){for(var D=0;
D<Z.length;D++){var b=Z[D],Y=b[0];if(b.length==2)S[Y]=b[1];else S[Y]=b.slice(1)}};cr.Qd=function(Z,S,b){while(!0){if(S>=Z.length)throw"e";
var Y=Z.charAt(S);S++;if(Y=="("){var P=[];S=cr.Qd(Z,S,P);b.push(P)}else if(Y==" "||Y=="\n"||Y=="\r"){}else if(Y==")")return S;
else if(Y=="\""){var w=S;while(!0){var f=Z[S];S++;if(f=="\"")break;if(f=="\\")S++}b.push(JSON.parse(Z.slice(w-1,S)))}else{var w=S-1;
while(Z[S]!=" "&&Z[S]!=")")S++;b.push(Z.slice(w,S))}}};cr.G9=function(Z,S,b,Y,P){var w=k.r(Z,S);S+=4;
var f=k.r(Z,S);S+=4;var h=k.MA(Z,S);S+=h.jM;var Q={};S=cr.Ou(Z,S,Q);var e=new T.XA(w*f),l=Y==4?k.r:k.JX,O=l(Z,S);
S+=Y;cr.td(Z,O,e,b,Y,P);return{sK:e.h,aX:Q}};cr.td=function(Z,S,b,Y,P,w){var f=k.r(Z,S);S+=4;var h=k.r(Z,S);
S+=4;var Q=k.r(Z,S);S+=4;var e=P==4?k.r:k.JX,l=e(Z,S);S+=P;cr.aoS(Z,l,b,Y,Q,P,w)};cr.aoS=function(Z,S,b,Y,P,w,f){var h=k.r(Z,S),l=0,D=0;
S+=4;var Q=k.r(Z,S);S+=4;var e=new b4(0,0,h,Q);if(f==100||f==150)l=1;else if(f==200||f==250)l=2;else if(f==300||f==350)l=4;
else if(f==500||f==550)l=2;else if(f==600||f==650)l=4;else if(f==700||f==750)l=8;else{alert("unsupported bit depth "+f);
throw"e"}var O=P/l,l=Math.round(P/O),m=[];S=cr.wB(Z,S,m,w);var V=new T.XA(64*64*l),q=new b4,K=Y[by.a2l][0],z=[V.h,V.l,V.O,V.w];
if(O==3)V.w.fill(255);var t=Date.now();for(var H=0;H<Q;H+=64)for(var i=0;i<h;i+=64){var y=Math.min(h-i,64),j=Math.min(Q-H,64),J=y*j;
q.Ha(i,H,y,j);cr.a5U(Z,m[D++],J*l,K,O,z);if(f==100||f==150){}else if(f==250){for(var A=0;A<O;A++){var a=z[A];
for(var I=0;I<J;I++){var E=a[I]<<8|a[J+I];a[I]=Math.min(E>>>8,255)}}}else if(f==600){var c=cr.a49(),u=new Uint32Array(1),n=new Float32Array(u.buffer);
for(var A=0;A<O;A++){var a=z[A];for(var I=0;I<J;I++){u[0]=a[I]<<24|a[J+I]<<16|a[(J<<1)+I]<<8|a[(J<<1)+J+I]<<0;
var o=n[0];if(o<0)o=0;else if(o>1)o=1;a[I]=c[~~(.5+o*1e3)]}}}else console.log("unknown data format",f);
T.CF(V,q,b,e)}};cr.a49=function(){var Z=cr.abQ;if(Z!=null)return Z;Z=cr.abQ=new Uint8Array(1001);for(var D=0;
D<1001;D++)Z[D]=~~(.49+255*T.Ur(D*.001));return Z};cr.a5U=function(Z,S,b,Y,P,w){if(Y==1){for(var f=0;
f<P;f++){var h=w[f],Q=0;while(Q<b){var C=Z[S];S++;if(C<127){var e=Z[S];S++;C++;for(var D=0;D<C;D++)h[Q+D]=e}else if(C==127){var l=Z[S];
S++;var O=Z[S];S++;var e=Z[S];S++;C=l<<8|O;for(var D=0;D<C;D++)h[Q+D]=e}else if(C==128){var l=Z[S];S++;
var O=Z[S];S++;C=l<<8|O;for(var D=0;D<C;D++)h[Q+D]=Z[S+D];S+=C}else{C=256-C;for(var D=0;D<C;D++)h[Q+D]=Z[S+D];
S+=C}Q+=C}}}else if(Y==2){var m=pako.inflate(Z.slice(S)),V=Math.round(m.length/b);for(var D=0;D<b;D++){var q=D*V;
w[0][D]=m[q];w[1][D]=m[q+1];w[2][D]=m[q+2];w[3][D]=V==3?255:m[q+3]}}else alert("Unknown compression "+Y)};
cr.wB=function(Z,S,b,Y){var P=Y==4?k.r:k.JX;while(!0){var w=P(Z,S);S+=Y;if(w==0)break;else b.push(w)}return S};
cr.Ou=function(Z,S,b){while(!0){var Y=k.r(Z,S);S+=4;var P=k.r(Z,S);S+=4;if(Y==by.a81)break;else if(Y==by.BR)b[Y]=cr.ag4(Z,S,S+P);
else b[Y]=k.NR(Z,S,P);S+=P}return S};cr.ag4=function(Z,S,b){var Y={};while(S<b){var P=k.MA(Z,S);S+=P.jM;
var w=k.r(Z,S);S+=4;if(w!=1)console.log("unknown flags",w);var f=k.r(Z,S);S+=4;Y[P.zk]=k.NR(Z,S,f);S+=f}return Y};
var by={a81:0,agn:1,aoj:2,aeA:3,a73:4,a10:5,_N:6,Fk:7,iV:8,amf:9,ae7:10,YR:11,ajQ:12,aea:13,a6u:14,zE:15,a1y:16,a2l:17,abd:18,aer:19,alb:20,BR:21,ai6:22,a0G:23,a6Y:24,af1:25,a3M:26,a4V:27,a0p:28,aog:29,Sk:30,Ga:31,aoU:32,adQ:33,acu:34,a6b:35,ahB:36,a60:37,adO:38,a4R:0,a07:1,a44:2,alM:3,alR:1,al3:2,a9j:0,a53:1,aob:1};
by.aoA="norm,diss,norm,mul ,scrn,over,diff,lddg,fsub,dark,lite,hue ,sat ,colr,lum ,fdiv,lddg,idiv,hLit,sLit,fdiv,pLit,norm,over,hue ,hue ,colr,lite,norm,norm,mul ,scrn,diff,lddg,fsub,dark,lite,hue ,sat ,colr,lum ,fdiv,lddg,idiv,hLit,sLit,fdiv,pLit,vLit,pLit,lLit,hMix,smud,lbrn,lum ,lum ,lum ,lum ,norm,norm,norm,pass".split(",");
function bl(){}bl.Vq=function(Z,S){var b=bl,Y=dj.parse(Z),w=0;if(Y.pages.length>1)console.log(Y.pages.length,"pages");
var P=[],f=new b4;for(var h=0;h<Y.pages.length;h++){var Q=Y.pages[h],e=Q.layers,l=b.$R(e,h),m=!1;if(l.X()>8e3*8e3||l.c>3e4||l.v>3e4){b.Uf(e,!0);
var O=b.$R(e,h);if(O.X()>=l.X())b.Uf(e,!1)}l=b.$R(e,h);for(var V=0;V<e.length;V++){var q=e[V];if(b.W9(q)=="artboard")m=!0}if(!m){console.log("no artboard");
var K={};for(var z in Q)K[z]=Q[z];K._class="group";Q.layers=[K]}P.push(l.clone());if(l.h3())continue;
l.x=0;l.y=w;w+=l.v+200;f=f.VK(l)}var t={};if(Y.foreignSymbols)for(var D=0;D<Y.foreignSymbols.length;
D++){var H=Y.foreignSymbols[D].symbolMaster;t[H.symbolID]={ru:H}}b.vX(Y.pages,t,S);for(var i in t){var q=t[i].ru,y=b.R$(q.layers)}var j=bl.c9(f,8192*8192);
S.c3=!0;S.c=Math.round(f.c/j);S.v=Math.round(f.v/j);S.buffer=T.f(S.c*S.v*4);S.wX(Y.pages[0].layers.length);
S.NJ={};S.P3=[];w=0;for(var h=0;h<Y.pages.length;h++){var J=Y.pages[h],l=P[h],A=new fR(j,0,0,j,l.x,l.y-w);
b.sl(J.layers,S,A,Y,t,{},[]);w+=l.v+200}delete S.NJ;delete S.P3;if(j!=1)alert("File scaled down "+j+"x");
S.aa4()};bl.a0C=0;bl.W9=function(Z){return Z._class?Z._class:Z.$class};bl.c9=function(Z,S){var b=1;while(Math.round(Z.c/b)*Math.round(Z.v/b)>S||Math.max(Math.round(Z.c/b),Math.round(Z.v/b))>3e4)b++;
if(b!=1&&!window.confirm("Your image is quite large ("+Z.c+" x "+Z.v+" px).\n"+"Press OK to scale it down "+b+"x, or Cancel to keep the size."))b=1;
return b};bl.$R=function(Z,S){var b=[],Y=bl;for(var P=0;P<Z.length;P++){var w=Z[P],f=Y.TD(w.frame);if(S==0||Y.W9(w)=="artboard")b.push(f)}return T.rect.n8(b)};
bl.Uf=function(Z,S){var b=[],Y=bl;for(var P=0;P<Z.length;P++){var w=Z[P],f=Y.TD(w.frame);f.c+=150;f.v+=150;
b.push(f)}var h=T.rect.n8(b);T.rect.a65(b,S);var Q=T.rect.n8(b);if(Q.X()*1.5<h.X()||h.c>3e4&&Q.c<=3e4||h.v>3e4&&Q.v<=3e4){alert("Re-arranging artboards");
for(var P=0;P<Z.length;P++){var e=b[P],w=Z[P],l=w.frame;l.x=e.x;l.y=e.y}}};bl.vX=function(Z,S,b){var Y=bl;
for(var P=0;P<Z.length;P++){var w=Z[P],f=Y.W9(w);if(["page","artboard","group"].indexOf(f)!=-1)Y.vX(w.layers,S,b);
else if(f=="symbolMaster")S[w.symbolID]={ru:w}}};bl.R$=function(Z){var S=bl;for(var b=0;b<Z.length;b++){var Y=Z[b],P=S.W9(Y),w=null;
if(["page","artboard","group"].indexOf(P)!=-1)w=S.R$(Y.layers);if(P=="symbolMaster"||P=="symbolInstance")w=Y;
if(w!=null)return w}return null};bl.sl=function(Z,S,b,Y,P,w,f){var h=bl,Q=[];for(var e=0;e<Z.length;
e++){var l=Z[e],O=l.frame?h.TD(l.frame):null,m=l.style,t="",A=null,a=!1;if(m==null){console.log("no styles")}var V=h.fj(l,b),q=h.W9(l),K=q=="shapeGroup"||q=="shapePath"||q=="rectangle"||q=="oval"||q=="triangle"||q=="polygon",z=["page","artboard","group"].indexOf(q)!=-1;
if(q=="shapeGroup"){for(var D=0;D<l.layers.length;D++)if(h.W9(l.layers[D])=="shapeGroup")z=!0}var H=l.exportOptions;
if(H){var i=H.exportFormats;if(i==null)i=H.sizes;if(q!="artboard"&&(i&&i.length!=0)){var y=i[0].scale}}var j=S.Dl();
j.Ba(l.isVisible);var J=l.name;if(!(typeof J=="string"))J=q;j.wc(t+J.slice(0,250));if(m!=null)A=h.a3F(Y,S,m,O,V,j.getName(),K||q=="artboard"||z);
if(q=="rectangle"&&m&&m.fills&&m.fills[0]){var I=m.fills[0];if(I.fillType==4&&I.patternFillType>1&&I.image!=null)a=!0}if(l.shouldBreakMaskChain){while(Q.length!=0)h.c$(Q.pop(),S)}if(z){j.add.lsct=l.layerListExpandedType==2?fr.k8:fr.U1;
j.WL="pass";j.NG=24;j.Ba(l.isVisible);S.t.push(S._z());if(q=="artboard"){var E=O.clone(),c=V.I2();E.x=-Math.floor(V.RN/c);
E.y=-Math.floor(V.Sv/c);E.c=Math.floor(E.c/c);E.v=Math.floor(E.v/c);j.PB(E);var u=l.backgroundColor,n=u?{h:255*u.red,l:255*u.green,O:255*u.blue}:{h:255,l:255,O:255};
j.add.artb.Clr={t:"Objc",v:T.W.RQ(n)};j.add.artb.artboardBackgroundType={t:"long",v:4}}h.sl(l.layers,S,V,Y,P,w,f)}else if(K&&!a){j.add.vmsk=new F.NS;
j.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));j.add.vstk.strokeEnabled.v=!1;j.add.vogk=[];var o=A!=null&&A.frameFXMulti.v.length==1,x=m?m.fills:null,g=m?h.Pt(Y,x,O,V,j.getName(),S,h.qn(f,l.do_objectID+"_image")):[];
if(g.length==0){if(o)j.add.vstk.fillEnabled.v=!1;else j.add.iOpa=0;j.add.SoCo={classID:"null",Clr:{t:"Objc",v:T.W.RQ({h:0,l:0,O:0})}}}else{var v=g[0],R=null,X=null;
if(v.type=="SoFi"){R="SoCo";X=a4.pe}if(v.type=="GrFl"){R="GdFl";X=a4.xz}if(v.type=="patternFill"){R="PtFl";
X=a4.jl}if(R!=null){j.add[R]={classID:"null"};for(var D=0;D<X.length;D++){var B=X[D];j.add[R][B]=v.G.v[B]}var M=v.G.v.Opct.v.val;
if(o&&M==0)j.add.vstk.fillEnabled.v=!1;else j.add.iOpa=Math.round(255*M/100)}}j.NG|=16;j.add.vmsk.b=h.KB(l.layers?l.layers:[l],l.layers?V:b,j.add.vogk);
var r=m?m.blur:null;if(r&&r.isEnabled&&r.type<=1)j.add.vmsk.Mt=r.radius;if(j.add.vmsk.b.length==2){console.log("shape with no content:",j.getName())}if(o){var N=A.frameFXMulti.v[0].v,$=j.add.vstk,eQ=m.borders[0];
A.frameFXMulti.v=[];eg.EA(N,$);var hN=m.borderOptions,bI=m.miterLimit;if(hN){var fq=hN.dashPattern;$.strokeStyleLineCapType.v.strokeStyleLineCapType=a4.m3.oV[hN.lineCapStyle];
$.strokeStyleLineJoinType.v.strokeStyleLineJoinType=a4.m3.join[hN.lineJoinStyle];if(fq)$.strokeStyleLineDashSet.v=eg.Fr(fq,1/N.Sz.v.val);
if(bI!=null)$.strokeStyleMiterLimit.v=bI}}j.vK(S)}else if(q=="bitmap"||a){var e9=a?m.fills[0]:null,W=a?e9.image.bdata:l.image.bdata,L=S.CL(W,j.getName(),0,0);
L.NG=j.NG;j=L;var r=m?m.blur:null,bd=m?m.colorControls:null;if(r||bd){j.add.SoLd.filterFX=cL.Wd();S.HM({id:j.add.SoLd.placed.v,rect:new b4,buffer:T.f(1),d:new F.bN});
var x=j.add.SoLd.filterFX.v.filterFXList.v;if(r){var iw=cL.VV("GsnB",{});iw.v.enab.v=r.isEnabled;iw.v.Fltr.v.Rds.v.val=r.radius;
x.push(iw)}if(bd){var d7=bd.brightness,d0=bd.contrast,gS=bd.hue,cf=bd.saturation;if(gS!=0||cf!=1){var iw=cL.VV("hue2",{});
iw.v.enab.v=bd.isEnabled;iD.D2(iw.v.Fltr.v,0,[Math.round(gS*180/Math.PI),Math.round((cf-1)*100),0]);
x.push(iw)}if(d7!=0||d0!=1){var iw=cL.VV("brit",{});iw.v.enab.v=bd.isEnabled;d0=d0-1;if(d0>0)d0/=2;var cT=iw.v.Fltr.v;
cT.Brgh.v=Math.round(d7*255);cT.Cntr.v=Math.round(d0*255);cT.useLegacy.v=!0;x.push(iw)}}}if(a){var fU=e9.patternFillType;
if(fU==3){var dX=j.rect.c/j.rect.v,g$=O.c/O.v;if(dX<g$){V.translate(-(O.c*(1-dX/g$))/2,0);V.scale(g$/dX,1)}else{V.translate(0,-(O.v*(1-g$/dX))/2);
V.scale(1,dX/g$)}}}O.x=O.y=0;var bX=T.z.X6(O).H;V.oN();T.z.A(bX,V,bX);j.add.SoLd.Trnf=G.V.ab(bX);j.add.SoLd.nonAffineTransform=G.V.ab(bX);
j.JN(S,!1)}else if(q=="text"){if(l.attributedString==null)continue;var aw=V.clone(),hP,eG,ea=0;aw.oN();
aw.w=aw.KU=Math.min(aw.w,aw.KU);j.add.lnsr="rend";j.add.TySh=eO.nR(0,0);j.add.TySh.az=new b4(0,0,O.c,O.v);
j.add.TySh.A=aw;var eB=l.attributedString;if(eB.archivedAttributedString)eB=eB.archivedAttributedString;
var bb=eB.NSString;if(bb==null)bb=eB.string;if(bb==null)bb="";if(bb["NS.string"])bb=bb["NS.string"];
if(w[l.do_objectID]!=null)bb=w[l.do_objectID];var gx=h.qn(f,l.do_objectID+"_stringValue");if(gx)bb=gx.value;
if(eB.attributes!=null){hP=[];eG=[];var er=eB.attributes;for(var D=0;D<er.length;D++){hP.push(er[D].length,D);
eG.push(er[D].attributes)}}else if(eB.NSAttributeInfo==null){hP=[bb.length,0];eG=[eB.NSAttributes]}else{hP=eB.NSAttributeInfo["NS.data"];
eG=eB.NSAttributes;hP=bl.a7x(hP,eG)}for(var D=0;D<hP.length;D+=2)ea+=hP[D];if(ea!=bb.length){while(ea>bb.length){hP[hP.length-2]--;
ea--;if(hP[hP.length-2]==0){hP.pop();hP.pop()}}hP[hP.length-2]+=bb.length-ea}bb=bb.replace(/\u2028/g,"\n");
bb=bb.replace(/\u2029/g,"\n");bb=bb.replace(/\r/g,"\n");var hD=j.add.TySh.HK;eO.kk(hD,0,bb);if(bb!=""){var bP=l.textBehaviour,iz=m.textStyle,iq=iz?iz.verticalAlignment:0,cU=h.a7K(hD,hP,eG,bb),c=aw.I2(),aH=eO.SZ(hD,0,1),co=0;
if(aH.xp.Font){var eK=aH.E2[aH.xp.Font].Name;if(eK=="FontAwesome"||eK=="Ionicons")cU*=.87}var h6=aH.xp.AutoLeading?0:aH.xp.Leading*.6,dh=Math.max(cU,h6)*c,cX=O.c,eY=O.v;
if(bP==0){eO.es(hD,0);var ga=eO.qH(aH.jm);if(ga==1)co=cX*c;if(ga==2)co=cX*c*.5;if(iq==0)dh*=1;else dh*=.9}else{eO.es(hD,1);
eO.oZ(hD,[0,0,Math.round(cX),Math.round(eY)]);if(bP==2&&iq==0)dh=dh*.2;else if(bP==2&&iq==1){dh=c*.5*(eY-aH.xp.FontSize)}else if(bP==1&&iq==0)dh=dh*.2;
else dh=dh*.35}j.add.TySh.A.translate(co,dh)}}else if(q=="symbolInstance"||q=="symbolMaster"){var h0=l.symbolID;
if(w[l.do_objectID])h0=w[l.do_objectID].symbolID;var a8=h.qn(f,l.do_objectID+"_symbolID");if(a8)h0=a8.value;
if(h0=="")continue;var cc={};for(var B in w)cc[B]=w[B];if(l.overrides)for(var B in l.overrides)cc[B]=l.overrides[B];
var hW=f.slice(0);if(l.overrideValues)hW=hW.concat(l.overrideValues);var em=P[h0];if(em==null){console.log("Unknown master master",l.symbolID);
continue}var br=bl.TD(em.ru.frame),cF=br.c/O.c,cW=br.v/O.v,bM=V.clone();bM.scale(cF,cW);j.add.lsct=fr.U1;
j.WL="pass";j.NG=24;j.Ba(l.isVisible);S.t.push(S._z());var ct=em.ru;if(S.P3.indexOf(ct)==-1){S.P3.push(ct);
h.sl(ct.layers,S,bM,Y,P,cc,hW);S.P3.pop()}}else if(q=="slice"){console.log("slice layers are ignored by now");
continue}else{console.log("unknown layer type: "+q,l);continue}if(m&&m.contextSettings){var aQ=m.contextSettings,eA=aQ.blendMode;
if(eA<h.Pu.length){j.WL=is.KP[is.JO.indexOf(h.Pu[eA])];if(z&&j.WL=="norm")j.WL="pass"}j.opacity=Math.round(j.opacity*aQ.opacity)}if(A!=null){j.add.lmfx=A}S.t.push(j);
if(l.hasClippingMask&&Z.length>1){Q.push(j);S.t.push(S._z())}}while(Q.length!=0)h.c$(Q.pop(),S)};bl.qn=function(Z,S){for(var D=0;
D<Z.length;D++)if(Z[D].overrideName.startsWith(S))return Z[D]};bl.a7x=function(Z,S){var b=0,Y=[];while(b+1<Z.length){var P=Z[b];
b++;if(P>127){P+=128*(Z[b]-1);b++;if(Z[b-1]>127){P+=128*(Z[b]-1);b++}}var w=Z[b];b++;Y.push(P,w)}return Y};
bl.a7K=function(Z,S,b,Y){var P=bl,w=0,l=0,O=0;for(var D=0;D<Y.length;D++){var f=Y.charCodeAt(D),h=1473<=f&&f<=1479||1488<=f&&f<=1514||1520<=f&&f<=1524,Q=1569<=f&&f<=1594||1600<=f&&f<=1749;
if(h||Q)w++}var e=w>Y.length/2;for(var D=0;D<S.length;D+=2){var m=S[D],j=14,J="DejaVuSans";if(m==0)continue;
var V=S[D+1],q=b[V],K=eO.SZ(Z,l,l+m-1),z=q.NSColor;if(z==null){var z=q.MSAttributedStringColorDictionaryAttribute;
if(z==null)z=q.MSAttributedStringColorAttribute;if(z==null)z="0 0 0";else z=[z.red,z.green,z.blue].join(" ")}else if(P.W9(z)=="MSArchivedColor")z=z.dr+" "+z.dg+" "+z.db;
else if(z.NSRGB){z=z.NSRGB;z=k.zG(z,0,z.length-1)}else if(z.NSCMYK){z=z.NSCMYK;z=k.zG(z,0,z.length-1);
z=z.split(" ").map(parseFloat);var t=1-z[0],H=1-z[1],i=1-z[2],y=1-z[3];z=t*y+" "+H*y+" "+i*y}else if(z.NSWhite){z="1 1 1"}z=z.split(" ");
K.xp.FillColor={Type:1,Values:[1,parseFloat(z[0]),parseFloat(z[1]),parseFloat(z[2])]};var A=q.MSAttributedStringFontAttribute;
if(q.NSFont){j=q.NSFont.NSSize;J=q.NSFont.NSName}else if(A){if(A.attributes){A=A.attributes;j=A.size;
J=A.name}else{var a=A.NSFontDescriptorAttributes;if(a==null)a=A.UIFontDescriptorAttributes;A=a;j=A.NSFontSizeAttribute;
J=A.NSFontNameAttribute}if(J==null)J="DejaVuSans"}var O=Math.max(O,j);K.xp.FontSize=Math.round(j);eO.FK(K,J);
var I=q.NSKern;if(I==null)I=q.kerning;if(I!=null)K.xp.Tracking=Math.round(1e3*I/j);if(q.NSUnderline!=null)K.xp.Underline=q.NSUnderline>0;
var E=q.NSStrikethrough;if(E==null)E=q.strikethroughStyle;if(E!=null)K.xp.Strikethrough=E>0;if(q.MSAttributedStringTextTransformAttribute==1)K.xp.FontCaps=2;
var c=q.NSParagraphStyle;if(c==null)c=q.paragraphStyle;if(c){var u=c.paragraphSpacing;if(u!=null){K.jm.SpaceAfter=u}var n=c.NSAlignment;
if(n==null)n=c.alignment;if(n!=null){var o=0;if(!1){}else if(n==1)o=1;else if(n==2)o=2;else if(n==4)o=0;
else{o=n;console.log("unknown align",n)}if(e&&o<2)o=1-o;K.jm.Justification=o}var x=c.NSMinLineHeight;
if(x==null)x=c.minimumLineHeight;if(x!=null){K.xp.AutoLeading=!1;K.xp.Leading=x}}K.jm._Direction=e?1:0;
eO.Yg(Z,l,l+m,K);l+=m}return O};bl.a3F=function(Z,S,b,Y,P,w,f){var h=bl,Q=JSON.parse(a4.default),e=!1;
for(var D=0;D<a4.order.length;D++)Q[a4.Ol[D]]={t:"VlLs",v:[]};var l=b.fills,O=h.Pt(Z,l,Y,P,w,S);for(var m=0;
m<2;m++){var V=b[["shadows","innerShadows"][m]];if(V==null)continue;var q=["DrSh","IrSh"][m],K=a4.Ol[a4.order.indexOf(q)];
for(var D=0;D<V.length;D++){var z=V[D];if(!z.isEnabled)continue;if(z.contextSettings.opacity==0||z.color.alpha==0)continue;
var t=JSON.parse(a4.FT[a4.order.indexOf(q)]);Q[K].v.unshift({t:"Objc",v:t});e=!0;t.Clr.v=h.R0(z.color);
t.blur.v.val=Math.round(z.blurRadius/P.I2());var H=P.clone();H.RN=H.Sv=0;H.oN();var i=H.YI(new ar(z.offsetX,z.offsetY)),y=Math.sqrt(i.x*i.x+i.y*i.y);
t.Dstn.v.val=Math.round(y);t.lagl.v.val=Math.round(Math.atan2(i.y,-i.x)*(180/Math.PI));if(t.layerConceals)t.layerConceals.v=O.length!=0;
h.Wy(z,t)}}var j=b.borders;if(j!=null&&(O.length==0||b.blur==null||!b.blur.isEnabled))for(var D=0;D<j.length;
D++){var J=j[D];if(!J.isEnabled)continue;var t=JSON.parse(a4.FT[a4.order.indexOf("FrFX")]),K=a4.Ol[a4.order.indexOf("FrFX")];
Q[K].v.unshift({t:"Objc",v:t});e=!0;t.Clr.v=h.R0(J.color);if(J.fillType!=0&&J.gradient){var A=h.XO(J.gradient,Y,P,w),a=["Type","Angl","Ofst","Scl"];
for(var D=0;D<a.length;D++)t[a[D]]=A[a[D]];t.Grad.v=A.Grad.v;t.PntT.v.FrFl="GrFl"}t.Sz.v.val=J.thickness/P.I2();
t.Styl.v.FStl=["CtrF","InsF","OutF"][J.position];h.Wy(J,t)}for(var D=f?1:0;D<O.length;D++){var I=O[D],K=a4.Ol[a4.order.indexOf(I.type)];
Q[K].v.unshift(I.G);e=!0}return e?Q:null};bl.Pt=function(Z,S,b,Y,P,w,f){if(S==null)return[];var h=bl,Q=[];
for(var D=0;D<S.length;D++)if(S[D].isEnabled)Q.push(S[D]);S=Q;var e=[];for(var D=0;D<S.length;D++){var l=S[D],O=null,m=null;
if(l.fillType==0){O="SoFi";var V=JSON.parse(a4.FT[a4.order.indexOf("SoFi")]);m={t:"Objc",v:V};m.v.Clr.v=h.R0(l.color)}else if(l.fillType==1){O="GrFl";
m={t:"Objc",v:h.XO(l.gradient,b,Y,P)}}else if(l.fillType==4&&l.image!=null){var q=l.image;if(f)q=f.value;
var K=ab.fN(q.bdata.buffer);if(K!=null&&K!="pdf"&&K!="eps"){var z,J=0,A=0,a=0;if(w.NJ[q.key])z=w.NJ[q.key];
else{var t=ab.iZ(K).Gk(q.bdata)[0],H=t.Vl.clone();z={};z.id=gf.uc()+"-d71c-11e5-b1ae-a548a96e5f9f";z.name="someImage";
z.jL=[new Uint8Array(t.data),H];w.ij(z);w.NJ[q.key]=z}var i=z.jL[1],V=JSON.parse(a4.FT[a4.order.indexOf("patternFill")]);
O="patternFill";m={t:"Objc",v:V};var y=l.patternFillType,j=l.patternTileScale;V.Algn.v=!0;V.Ptrn.v.Idnt.v=z.id;
if(y==0){J=j*i.c/Math.min(i.c,i.v);A=-Y.RN;a=-Y.Sv}else{J=Math.max(b.c/i.c,b.v/i.v);A=-Y.RN-(i.c*J-b.c)/2;
a=-Y.Sv-(i.v*J-b.v)/2}V.Scl.v.val=100*J*(1/Y.I2());V.phase.v.Hrzn.v=Math.round(A/Y.I2());V.phase.v.Vrtc.v=Math.round(a/Y.I2())}}else if(l.fillType==5){console.log("fill type Noise not supported yet")}else console.log("unknown fill type",l.fillType);
if(O!=null){h.Wy(l,m.v);e.push({type:O,G:m})}}return e};bl.ajU=function(Z){var S=bl,b=new b4(0,0,1,1);
Z=Z.slice(0);while(!0){var Y=!1;for(var D=0;D<Z.length-1;D++){var P=Z[D],w=Z[D+1],f=null,h=P.contextSettings;
if(P.fillType==0&&(h==null||h.opacity==1&&h.blendMode==0)&&P.color.alpha==1){var Q="norm",e=1,h=w.contextSettings;
if(h){e=h.opacity;Q=is.Tk(S.Pu[h.blendMode])}if(w.fillType==0){f=JSON.parse(JSON.stringify(w));S.wl(f.color,P.color,f.color,b,Q,e)}if(w.fillType==1){f=JSON.parse(JSON.stringify(w));
var l=f.gradient.stops;for(var O=0;O<l.length;O++)S.wl(l[O].color,P.color,l[O].color,b,Q,e)}if(f!=null&&f.contextSettings){var h=f.contextSettings;
h.opacity=1;h.blendMode=0}}if(f!=null){Z.splice(D,0,f);Y=!0;break}}if(!Y||Z.length<2)break}return Z};
bl.wl=function(Z,S,b,Y,P,w){var f=bl,h=T.f(4);f.ca(Z,h);var Q=T.f(4);f.ca(S,Q);T.p.xJ(P,h,Y,Q,Y,Y,w);
f.a2Y(Q,b)};bl.ca=function(Z,S){S[0]=255*Z.red;S[1]=255*Z.green;S[2]=255*Z.blue;S[3]=255*Z.alpha};bl.a2Y=function(Z,S){S.red=Z[0]/255;
S.green=Z[1]/255;S.blue=Z[2]/255;S.alpha=Z[3]/255};bl.c$=function(Z,S){Z=Z.clone();Z.NG=24;Z.wc("Mask by "+Z.getName());
S.t.push(Z);Z.add.lsct=fr.k8;Z.add.lyid=S.Tm();delete Z.add.lmfx;delete Z.add.SoCo;delete Z.add.GdFl;
delete Z.add.PtFl;delete Z.add.iOpa;if(Z.add.vmsk)Z.add.vmsk.Th=!0;Z.vK(S);if((Z.NG&16)==16)Z.NG-=16;
if((Z.NG&2)==2)Z.NG-=2;Z.WL="pass";Z.opacity=255};bl.Pu="Nrml Drkn Mltp CBrn Lghn Scrn CDdg Ovrl SftL HrdL Dfrn Xclu H Strt Clr Lmns linearBurn linearDodge".split(" ");
bl.XO=function(Z,S,b,Y){b=b.clone();b.oN();b.RN=b.Sv=0;var P=b.I2(),m=0,V=0;b.scale(1/P,1/P);var w=bl,f=JSON.parse(a4.FT[a4.order.indexOf("GrFl")]),h=f.Grad.v;
h.Intr.v=0;if(Z==null)return f;var Q=Z.gradientType,e=w.BU(Z.from),l=w.BU(Z.to);e.offset(-.5,-.5);l.offset(-.5,-.5);
e=b.YI(e);l=b.YI(l);var O=Math.atan2(-(l.y-e.y),l.x-e.x);f.Type.v.GrdT=["Lnr","Rdl","Angl"][Q];f.Scl.v.val=100*ar.VA(e,l);
if(Q==0){f.Angl.v.val=180/Math.PI*O;f.Scl.v.val=100*ar.VA(e,l);m=(e.x+l.x)/2;V=(e.y+l.y)/2}if(Q==1){f.Scl.v.val=200*ar.VA(e,l);
m=e.x;V=e.y}if(Q==2){f.Angl.v.val=180/Math.PI*(O-Math.PI/2)}var q=f.Ofst.v;q.Hrzn.v.val=m*100;q.Vrtc.v.val=V*100;
var K=[];for(var D=0;D<Z.stops.length;D++){var z=Z.stops[D],t=z.color;K.push([z.position,t?[t.red,t.green,t.blue]:[0,0,0],t.alpha])}T.W.nu(K,h);
return f};bl.Wy=function(Z,S){var b=bl,Y=1,P=Z.contextSettings;if(P!=null){S.Md.v.BlnM=b.Pu[P.blendMode];
Y*=P.opacity}else S.Md.v.BlnM=b.Pu[0];S.enab.v=Z.isEnabled;if(S.uglg!=null)S.uglg.v=!1;if(Z.color!=null)Y*=Z.color.alpha;
S.Opct.v.val=Math.round(Y*100)};bl.R0=function(Z){return T.W.RQ(Z?{h:Z.red*255,l:Z.green*255,O:Z.blue*255}:{h:0,l:0,O:0})};
bl.KB=function(Z,S,b){var Y=bl,P=[{type:6},{type:8,all:0}];for(var w=0;w<Z.length;w++){var f=Z[w],h=f.booleanOperation,Q=0,e=f._class,K=!1;
if(e=="group"||e=="text"||e=="symbolInstance"||e=="slice"){console.log(e+" inside ShapeGroup");continue}if(h==-1)Q=0;
else if(h==0)Q=1;else if(h==1)Q=2;else if(h==2)Q=3;else if(h==3)Q=0;if(w==0)Q=1;var l=bl.TD(f.frame),O=Y.fj(f,S),m=f.path?f.path:f,V=[{type:0,length:0,qU:Q,oY:2,uT:0,Y9:0}],q=m.points;
for(var D=0;D<q.length;D++){var z=q[D],t=Y.BU(z.curveTo),H=Y.BU(z.point),i=Y.BU(z.curveFrom);K=K||z.hasCurveFrom&&!i.Oh(H)||z.hasCurveTo&&!t.Oh(H)}var y=[];
if(!K){var j=[],C=q.length;if(C==0)continue;for(var D=0;D<C;D++){y[D]=q[D].cornerRadius;var z=Y.BU(q[D].point);
j.push(z.x,z.y)}O.scale(1/l.c,1/l.v);O.oN();T.z.A(j,O,j);var J=T.Y.Sb(j,y);V=V.concat(J);V[0].length=V.length-1}else{var A=q.length;
V[0].length=A;for(var D=0;D<A;D++){var z=q[D],a=z.curveMode,I=Y.BU(z.point);V[1+D]={type:a==2||a==4?1:2,hQ:z.hasCurveTo?Y.BU(z.curveTo):I.clone(),I:I,e$:z.hasCurveFrom?Y.BU(z.curveFrom):I.clone()}}O.scale(1/l.c,1/l.v);
O.oN();T.Y.$d(V,O);var y=[];for(var D=0;D<A;D++){var z=q[D],a=z.curveMode,E=z.cornerRadius;if(a==1&&E!=0)y.push(E);
else y.push(0)}}if(!m.isClosed)for(var D=0;D<V.length;D++)V[D].type+=3;P=P.concat(V);var c=T.AZ.Nv(),u=Y.W9(f);
if(O.O==0&&O.tE==0){var n=O.RN,o=O.Sv,x=n+O.w,g=o+O.KU,v=[n,o,x,g];if(u=="rectangle"&&y.length==4)c=T.AZ._B(2,v,y);
if(u=="oval")c=T.AZ._B(5,v)}b.push(c)}return P};bl.fj=function(Z,S){var b=S.clone(),Y=Z.frame?bl.TD(Z.frame):null;
if(Y)b.translate(-Y.x-Y.c/2,-Y.y-Y.v/2);if(Z.isFlippedHorizontal)b.scale(-1,1);if(Z.isFlippedVertical)b.scale(1,-1);
b.rotate(-Z.rotation*(Math.PI/180));if(Y)b.translate(Y.c/2,Y.v/2);return b};bl.BU=function(Z){Z=Z.slice(1,Z.length-1).split(",");
return new ar(parseFloat(Z[0]),parseFloat(Z[1]))};bl.TD=function(Z){return new b4(Z.x,Z.y,Z.width,Z.height)};
bl.o7=function(Z){return{_class:"rect",constrainProportions:!1,x:Z.x,y:Z.y,width:Z.c,height:Z.v}};function ev(){}ev.Vq=function(Z,S){var b=Date.now(),Y=ev,P=UZIP.parse(Z),w=JSON.parse(k.cP(P.manifest)),f=JSON.parse(k.cP(P["resources/graphics/graphicContent.agc"])).resources,h=[],Q=w.children;
for(var D=0;D<Q.length;D++){var e=Q[D];if(e.name=="artwork"){var l=e.children;for(var O=0;O<l.length;
O++)if(l[O]["uxdesign#bounds"]){var m=l[O],V=JSON.parse(k.cP(P["artwork/"+m.path+"/graphics/graphicContent.agc"]));
if(V.children.length!=1)throw"e";m._node=V.children[0];h.push(m)}}}var q=[],K=new b4;for(var D=0;D<h.length;
D++){var m=h[D],z=bl.TD(m["uxdesign#bounds"]);q.push(z);K=K.VK(z)}var t=bl.c9(K,8192*8192);S.c3=!0;S.c=Math.round(K.c/t);
S.v=Math.round(K.v/t);S.buffer=T.f(S.c*S.v*4);S.wX(h.length);var H=new fR(t,0,0,t,K.x,K.y);S.NJ={};for(var D=0;
D<h.length;D++){var m=h[D],z=bl.TD(m["uxdesign#bounds"]),i=m._node,y=H.clone(),j=z.clone(),J=y.I2();
y.translate(-z.x,-z.y);j.x=-Math.floor(y.RN/J);j.y=-Math.floor(y.Sv/J);j.c=Math.floor(j.c/J);j.v=Math.floor(j.v/J);
y.translate(z.x,z.y);ev.v$(i,S,y,f,P,j);var A=S.t[S.t.length-1];A.wc(m.name);A.PB(j);if(D!=h.length-1)A.add.lsct=fr.U1}delete S.NJ};
ev.Nw=function(Z){if(Z==null)return new fR;return new fR(Z.a,Z.b,Z.c,Z.d,Z.tx,Z.ty)};ev.v$=function(Z,S,b,Y,P,w){var f=ev,h=Z.type,Q=Z[h],e=Z.style,l=f.Nw(Z.transform),q,K="none",z,t="none",H,i;
l.oN();var O=b.clone();O.concat(l);var m=S.Dl(),V=Z.name;m.wc(V?V.slice(0,250):"Layer");if(Z.visible!=null)m.Ba(Z.visible);
if(e){q=e.stroke;K=q?q.type:"none";z=e.fill;t=z?z.type:"none";H=e.filters;i=e.clipPath;if(i&&Y.clipPaths[i.ref])i=Y.clipPaths[i.ref].children;
else i=null;if(e.opacity)m.opacity=Math.round(255*e.opacity);if(t=="solid"&&z.color.alpha)m.opacity=Math.round(m.opacity*z.color.alpha);
if(H){m.add.lmfx=f.a8$(H);for(var D=0;D<H.length;D++)if(H[D].type=="uxdesign#blur"){var y=H[D],j=y.params,J=j.brightnessAmount;
if(J==null)J=0;J=Math.abs(J/100);if((y.visible==null||y.visible==!0)&&j.backgroundEffect)m.opacity=Math.round(m.opacity*(J+(1-J)*j.fillOpacity))}}if(t=="pattern"&&z.pattern.meta.ux.uid=="")t="none"}if(i==null&&Z.meta&&Z.meta.ux&&Z.meta.ux.clipPathResources)i=Z.meta.ux.clipPathResources.children;
if(h=="artboard"||h=="group"){if(i){var A=i[0],a=A.shape,I=a!=null&&a.type=="rect"&&a.width*a.height>1e6;
if(A.type!="text"&&!I){if(a){var l=f.Nw(A.transform);l.oN();var E=O.clone();E.concat(l);m.add.vmsk=new F.NS;
m.add.vmsk.b=f.KB(a);E=E.clone();E.oN();T.Y.$d(m.add.vmsk.b,E);m.vK(S)}}else if(!I)alert("Clipping by text has been ignored")}m.add.lsct=fr.k8;
m.WL="pass";m.NG=24;if(Z.visible!=null)m.Ba(Z.visible);S.t.push(S._z());var c=Q.children,u=z;if(u)u=u.color;
if(u)u=u.value;if(z){if(h=="artboard"&&t=="solid"){m.PB(new b4(0,0,10,10));m.add.artb.Clr={t:"Objc",v:T.W.RQ({h:u.r,l:u.g,O:u.b})};
m.add.artb.artboardBackgroundType={t:"long",v:4}}else{var n=S.Dl();n.wc("BACKGROUND");n.NG|=16;n.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));
n.add.vmsk=new F.NS;n.add.vmsk.b=f.KB({type:"rect",x:w.x,y:w.y,width:w.c,height:w.v});f.yX(z,t,O,w,w,n,S,Y,P);
n.vK(S);S.t.push(n)}}for(var D=0;D<c.length;D++){ev.v$(c[D],S,O,Y,P,w)}}else if(h=="shape"&&Z.shape.type=="rect"&&(Z.shape.r==null||Z.shape.r==0)&&t=="pattern"&&Math.abs(Z.shape.width/Z.shape.height-z.pattern.width/z.pattern.height)<.01){var o=z.pattern,x=o.meta.ux,g=x.uid,v=P["resources/"+g];
if(v==null){console.log(o);return}var R=S.CL(v,m.getName(),0,0);R.NG=m.NG;R.opacity=m.opacity;m=R;var X=T.z.X6(new b4(0,0,o.width,o.height)).H,B=new fR;
B.scale(o.width/Z.shape.width,o.height/Z.shape.height);if(x.offsetX)B.translate(-x.offsetX*o.width,0);
if(x.offsetY)B.translate(0,-x.offsetY*o.height);O.concat(B);O.oN();T.z.A(X,O,X);m.add.SoLd.Trnf=G.V.ab(X);
m.add.SoLd.nonAffineTransform=G.V.ab(X);m.JN(S,!1)}else if(h=="shape"){m.NG|=16;m.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));
m.add.vmsk=new F.NS;m.add.vmsk.b=f.KB(Q);var M=T.Y.Al(m.add.vmsk.b,null),E=O.clone();E.oN();T.Y.$d(m.add.vmsk.b,E);
var r=T.Y.Al(m.add.vmsk.b,null);if(K=="none"){}else{var N=q.color.value,$,eQ;$="SoFi";var hN=JSON.parse(a4.FT[a4.order.indexOf("SoFi")]);
eQ={t:"Objc",v:hN};eQ.v.Clr.v=T.W.RQ({h:N.r,l:N.g,O:N.b});var bI=q.align,fq=q.cap;if(bI==null)bI="center";
var e9=m.add.vstk;e9.strokeEnabled.v=!0;e9.strokeStyleLineWidth.v.val=q.width;if(bI)e9.strokeStyleLineAlignment.v.strokeStyleLineAlignment=a4.m3.ie[["inside","center","outside"].indexOf(bI)];
if(fq)e9.strokeStyleLineCapType.v.strokeStyleLineCapType=a4.m3.oV[["butt","round","square"].indexOf(fq)];
var W=["SoFi","GrFl","patternFill"].indexOf($),L=[a4.pe,a4.xz,a4.jl][W];e9.strokeStyleContent.v={classID:a4.m3.Vh[0]};
var bd=e9.strokeStyleContent.v={classID:a4.m3.Vh[W]};for(var D=0;D<L.length;D++)bd[L[D]]=eQ.v[L[D]]}if(H)for(var D=0;
D<H.length;D++)if(H[D].type=="uxdesign#blur"&&H[D].visible){var iw=H[D];m.add.vmsk.Mt=iw.params.blurAmount}f.yX(z,t,O,M,r,m,S,Y,P);
m.vK(S)}else if(h=="text"&&Z.text){var d7=Z.text,d0=d7.frame,gS=e.font,cf=e.textAttributes,l=O.clone(),aw=0;
l.oN();m.add.lnsr="rend";m.add.TySh=eO.nR(0,0);m.add.TySh.az=new b4(0,0,100,100);m.add.TySh.A=l;var cT=m.add.TySh.HK,fU=d7.rawText.replace(/\r/g,"\n").replace(/\u000b/g,"\n");
eO.kk(cT,0,fU);if(fU!=""){var dX=eO.SZ(cT,0,1),g$=gS.postscriptName;if(g$==null)g$=gS.family;eO.FK(dX,g$);
dX.xp.FontSize=Math.round(gS.size);if(z){var N=z.color.value;dX.xp.FillColor={Type:1,Values:[1,N.r/255,N.g/255,N.b/255]}}if(cf){if(cf.paragraphAlign)dX.jm.Justification=["left","right","center"].indexOf(cf.paragraphAlign);
if(cf.letterSpacing)dX.xp.Tracking=Math.round(cf.letterSpacing);if(cf.lineHeight){dX.xp.AutoLeading=!1;
dX.xp.Leading=Math.round(cf.lineHeight)}}eO.Yg(cT,0,fU.length,dX)}var bX=Z.meta.ux.rangedStyles;if(bX)for(var D=0;
D<bX.length;D++){var Q=bX[D],hP=Math.min(Q.length,fU.length-aw),dX=eO.SZ(cT,aw,aw+hP),g$=Q.postscriptName;
if(g$==null)g$=Q.family;if(g$!=null)eO.FK(dX,g$);var eG=Q.textScript,eB=Q.underline,bb=Q.fontSize,y=Q.fill,gx=Q.textTransform;
if(eG&&eG!="none")dX.xp.FontBaseline=eG=="superscript"?1:2;if(eB!=null)dX.xp.Underline=eB;if(bb!=null)dX.xp.FontSize=Math.round(bb);
if(gx!=null)dX.xp.FontCaps=gx=="uppercase"?2:0;if(y!=null){var er=y.value;dX.xp.FillColor={Type:1,Values:[1,(er>>>16&255)/255,(er>>>8&255)/255,(er>>>0&255)/255]}}eO.Yg(cT,aw,aw+hP,dX);
aw+=hP}if(d0.type=="area"||d0.type=="autoHeight"){var ea=d0.width,hD=d0.height;eO.es(cT,1);eO.oZ(cT,[0,0,ea,hD!=null?hD:ea*2])}}else console.log(h,Z);
S.t.push(m)};ev.KB=function(Z){var S=Z.type,b=[{type:6},{type:8,all:0}];if(S=="rect"){var Y=Z.r,P=Z.x,w=Z.y,f=Z.width,h=Z.height;
if(Y==null)b=T.Y.i9.Rect(P,w,f,h,0);else b=b.concat([{type:0,qU:1,length:8,uT:0,Y9:0,oY:1}]).concat(T.Y.Sb([P,w,P+f,w,P+f,w+h,P,w+h],Y,!1))}else if(S=="circle"){var Y=Z.r;
b=T.Y.i9.TN(Z.cx-Y,Z.cy-Y,2*Y,2*Y)}else if(S=="ellipse"){var Q=Z.rx,e=Z.ry;b=T.Y.i9.TN(Z.cx-Q,Z.cy-e,2*Q,2*e)}else if(S=="path"||S=="compound"){var l=Typr.U.SVGToPath(Z.path);
b=T.z.Cp({K:l.cmds,H:l.crds},!1)}else if(S=="line"){var O=Z.x1,m=Z.x2,V=Z.y1,q=Z.y2;b=b.concat([{type:0,qU:1,length:2,uT:0,Y9:0,oY:1}]).concat(T.Y.Sb([O,V,m,q],0,!0))}else if(S=="polygon"){var K=Z.points,z=[];
for(var D=0;D<K.length;D++)z.push(K[D].x,K[D].y);b=b.concat(T.Y.i9.ng(z,0,!1).slice(2))}else console.log(S,Z);
return b};ev.a8$=function(Z){var S=JSON.parse(a4.default);for(var D=0;D<a4.order.length;D++)S[a4.Ol[D]]={t:"VlLs",v:[]};
for(var D=0;D<Z.length;D++){var b=Z[D],Y=b.type,P=b.params,w=b.visible;if(Y=="dropShadow"){var f=a4.Ol[a4.order.indexOf("DrSh")],h=JSON.parse(a4.FT[a4.order.indexOf("DrSh")]);
S[f].v.unshift({t:"Objc",v:h});var Q=P.dropShadows;if(Q.length!=1)throw"e";var e=Q[D],l=e.color,O=l.value,m=e.dx,V=e.dy;
h.Clr.v=T.W.RQ({h:O.r,l:O.g,O:O.b});h.Opct.v.val=Math.round((l.alpha!=null?l.alpha:1)*100);h.uglg.v=!1;
h.enab.v=w!=null?w:!0;h.lagl.v.val=Math.round(180/Math.PI*Math.atan2(V,-m));h.Dstn.v.val=Math.round(Math.sqrt(m*m+V*V));
h.blur.v.val=Math.round(e.r*2.3)}}return S};ev.yX=function(Z,S,b,Y,P,w,f,h,Q){var e=ev;if(S=="none"){w.add.vstk.fillEnabled.v=!1;
w.add.SoCo={classID:"null",Clr:{t:"Objc",v:T.W.RQ({h:0,l:0,O:0})}}}else{var l,O,m;if(S=="solid"){var V=Z.color.value;
l="SoCo";O=a4.pe;var q=JSON.parse(a4.FT[a4.order.indexOf("SoFi")]);m={t:"Objc",v:q};m.v.Clr.v=T.W.RQ({h:V.r,l:V.g,O:V.b})}else if(S=="gradient"){l="GdFl";
O=a4.xz;var q=JSON.parse(a4.FT[a4.order.indexOf("GrFl")]),K=q.Grad.v,y,j,J;K.Intr.v=0;var z=Z[S],t=z.ref?h.gradients[z.ref]:z.meta.ux.gradientResources,H=["linear","radial"].indexOf(t.type),i=t.stops;
q.Type.v.GrdT=["Lnr","Rdl","Angl"][H];if(H==0){var y=new ar(z.x1,z.y1),j=new ar(z.x2,z.y2);y.x=j.x+.5*(y.x-j.x);
y.y=j.y+.5*(y.y-j.y)}else{var y=new ar(z.cx,z.cy),j=new ar(z.cx+z.r,z.cy)}J=P;if(z.units=="objectBoundingBox"){var A=new fR(Y.c,0,0,Y.v,Y.x,Y.y);
y=A.YI(y);j=A.YI(j)}var A=e.Nw(z.transform);y=A.YI(y);j=A.YI(j);A=b.clone();A.oN();y=A.YI(y);j=A.YI(j);
T.W.Vu(y,j,J,q);var a=[];for(var D=0;D<i.length;D++){var I=i[D],E=I.color,V=E.value,c=E.alpha;if(c==null)c=1;
a.push([I.offset,[V.r/255,V.g/255,V.b/255],c])}T.W.nu(a,K);m={t:"Objc",v:q}}else if(S=="pattern"){l="PtFl";
O=a4.jl;var q=JSON.parse(a4.FT[a4.order.indexOf("patternFill")]),v,r=1,N=0,$=0,eQ=1;m={t:"Objc",v:q};
var u=Z[S],n=u.meta.ux,o=n.uid,x=Q["resources/"+o].buffer,g=ab.fN(x);if(f.NJ[o])v=f.NJ[o];else{var R=new b4(0,0,u.width,u.height),X;
if(R.h3()){R=new b4(0,0,1,1);X=new ArrayBuffer(4)}else{var B=ab.iZ(g);if(B.Ke){var M=new gf;B.Gk(x,M);
X=M.Zd().buffer}else X=B.Gk(x)[0].data}v={};v.id=gf.uc()+"-d71c-11e5-b1ae-a548a96e5f9f";v.name="someImage";
v.jL=[new Uint8Array(X),R];f.ij(v);f.NJ[o]=v}var R=v.jL[1];q.Algn.v=!0;q.Ptrn.v.Idnt.v=v.id;if(n.scaleBehavior=="cover"){r=eQ*Math.max(P.c/R.c,P.v/R.v);
var hN=r;if(n.scale!=null)r*=n.scale;N=P.x-(R.c*r-P.c)/2;$=P.y-(R.v*r-P.v)/2;if(n.offsetX!=null)N+=n.offsetX*R.c*hN;
if(n.offsetY!=null)$+=n.offsetY*R.v*hN}else if(n.scaleBehavior=="fill"){r=eQ*Math.min(P.c,P.v)/Math.max(R.c,R.v);
N=P.x-(R.c*r-P.c)/2;$=P.y-(R.v*r-P.v)/2}else throw"Unknown scale behaviour";q.Scl.v.val=100*r;q.phase.v.Hrzn.v=Math.round(N);
q.phase.v.Vrtc.v=Math.round($)}else console.log(S);if(l!=null){w.add[l]={classID:"null"};for(var D=0;
D<O.length;D++){var bI=O[D];w.add[l][bI]=m.v[bI]}}}};function iZ(){}iZ.Vq=function(Z,S,b){Z=new Uint8Array(Z);
var Y=k.cP(Z,0,Z.length),P=new DOMParser,w=P.parseFromString(Y,"image/svg+xml"),f=w.getElementsByTagName("style")[0],V=1;
if(f)f=Typr.U.SVG.cssMap(f.textContent);else f={};var h=w.firstChild;while(h.tagName!="svg")h=h.nextSibling;
var Q=new b4(0,0,100,100),e=h.getAttribute("viewBox"),l=h.getAttribute("width"),O=h.getAttribute("height");
if(e){var m=iZ.dW(e);Q.x=m[0];Q.y=m[1];Q.c=m[2];Q.v=m[3]}else if(l!=null||O!=null){Q.c=l!=null?parseFloat(l):parseFloat(O);
Q.v=O!=null?parseFloat(O):parseFloat(l)}Q=T.z.gO(Q);while(b&&Math.max(Q.c*V,Q.v*V)<Math.max(b[0],b[1]))V++;
while(b==null&&Math.max(Q.c,Q.v)*V>8192)V*=.5;S.c3=!0;S.c=~~(Q.c*V);S.v=~~(Q.v*V);S.buffer=T.f(S.c*S.v*4);
var q=new fR(V,0,0,V,-Q.x*V,-Q.y*V),K={WF:iZ.QZ(h),a3Z:f};iZ.hz(w,h.children,S,q,K,new fR,0);if(S.t.length==0){var z=S.Dl();
z.wc("Layer");S.t.push(z)}};iZ.dW=function(Z){var S=" ";if(Z.indexOf(",")!=-1)S=",";return Z.split(S).map(parseFloat)};
iZ.hz=function(Z,S,b,Y,P,w,f){var h=iZ,Q=["display","opacity","fill-opacity"];for(var e=0;e<S.length;
e++){var l=S[e],O=l.tagName,m=l.getAttribute("id"),V=h.QZ(l,P.a3Z),K=13,y=1,A="clip-path",a=null;for(var q in P.WF)if(Q.indexOf(q)==-1&&V[q]==null)V[q]=P.WF[q];
if(V["font-size"])K=h.MF(V["font-size"],K);if(l.getAttribute("dx"))Y.RN+=h.MF(l.getAttribute("dx"),K);
if(l.getAttribute("dy"))Y.Sv+=h.MF(l.getAttribute("dy"),K);var z=h.jR(l);z.concat(Y);var t=l.getAttribute("visibility"),H=V.display,i=b.Dl();
if(t=="hidden"||H=="none")i.Ba(!1);i.wc(m!=null?m.split(":::")[0]:"Layer");if(V.opacity)y*=parseFloat(V.opacity);
if(V["fill-opacity"]){var j=parseFloat(V["fill-opacity"]);if(j!=0)y*=j}i.opacity=Math.round(255*y);if(V["mix-blend-mode"]){var J=is.OM.indexOf(V["mix-blend-mode"]);
if(J!=-1)i.WL=is.KP[J]}if(l.getAttribute(A)==null)A="mask";if(l.getAttribute(A)!=null){var I=l.getAttribute(A);
I=I.slice(4,I.length-1);var E=Z.getElementById(I.slice(1));if(E){var c=E.children;a=b.Dl();a.wc("Clip-Path"+(m?": "+m:""));
a.add.lsct=f<2?fr.k8:fr.U1;a.WL="pass";a.NG=24;var u=a.add.vmsk=new F.NS;b.t.push(b._z());var n=[];if(E.getAttribute(A)){var I=E.getAttribute(A);
I=I.slice(4,I.length-1);n=Z.getElementById(I.slice(1)).children}for(var D=0;D<c.length;D++){var o=h.jR(c[D]);
o.concat(z);var x=h.KB(Z,c[D],!1).slice(2);T.Y.$d(x,o);u.b=u.b.concat(x)}for(var D=0;D<n.length;D++){var o=h.jR(c[D]);
o.concat(z);var x=h.KB(Z,n[D],!1).slice(2);for(var g=0;g<x.length;g++)if(x[D].qU!=null)x[D].qU=3;T.Y.$d(x,o);
u.b=u.b.concat(x)}a.AU();a.vK();f++}}if(O=="g"||O=="a"||O=="svg"||O=="switch"||(O=="text"||O=="textPath")&&l.children.length>0){if(O=="text")w=h.oK(l,w);
var v=l.getAttribute("viewBox"),R=l.getAttribute("width"),X=l.getAttribute("height");if(v&&R&&X){var B=iZ.dW(v),M=h.oK(l),r=new fR;
r.translate(-B[0],-B[1]);r.scale(parseFloat(R)/B[2],parseFloat(X)/B[3]);r.translate(M.RN,M.Sv);r.concat(z);
z=r}var N=l.children.length,$=P.WF;P.WF=V;var eQ=O!="text"&&O!="textPath"||N>1;if(eQ){var hN=i._7();
i.add.lsct=f<2&&hN&&(m==null||!m.endsWith(":::"))?fr.k8:fr.U1;i.WL="pass";i.NG=24;i.Ba(hN);b.t.push(b._z())}h.hz(Z,l.children,b,z,P,w,f+1);
if(eQ)b.t.push(i);else{var bI=b.t[b.t.length-1];bI.opacity=i.opacity;bI.WL=i.WL}P.WF=$}else if(O=="use"){var r=h.oK(l);
r.concat(z);var fq=h.kN(l),e9=Z.getElementById(fq.slice(1)),$=P.WF;P.WF=V;h.hz(Z,[e9],b,r,P,w,f+1);P.WF=$}else if(O=="path"||O=="rect"||O=="circle"||O=="ellipse"||O=="polygon"||O=="polyline"||O=="line"){i.NG|=16;
i.add.vmsk=new F.NS;i.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));i.add.vstk.strokeEnabled.v=!1;
var W=i.add.vstk,u=i.add.vmsk,L=V.fill,bd=L=="none"||V["fill-opacity"]&&parseFloat(V["fill-opacity"])==0;
u.b=h.KB(Z,l,V["fill-rule"]=="evenodd",bd);T.Y.$d(u.b,z);var iw=T.Y.Al(u.b),d7=V.stroke,d0=V["stroke-width"],gS=V["stroke-dasharray"],cf=V["stroke-linejoin"],cT=V["stroke-linecap"],fU=V["paint-order"];
if(d7==null||d7=="none"||d7=="null"){}else{var dX=h.YU(Z,d7,z,iw),g$=["SoFi","GrFl","patternFill"].indexOf(dX.type),bX=dX.G.v.Opct.v,eG=1;
if(bX.val!=100){i.opacity=Math.round(i.opacity*bX.val/100);bX.val=100}var aw=[a4.pe,a4.xz,a4.jl][g$],hP=W.strokeStyleContent.v={classID:a4.m3.Vh[g$]};
for(var D=0;D<aw.length;D++)hP[aw[D]]=dX.G.v[aw[D]];d0=d0?parseFloat(d0):1;if(fU&&fU.replace(/\s\s+/g," ").slice(0,11)=="stroke fill"){eG=2;
d0/=2}W.strokeEnabled.v=!0;if(cf)W.strokeStyleLineJoinType.v.strokeStyleLineJoinType=a4.m3.join[["miter","round","bevel"].indexOf(cf)];
if(cT)W.strokeStyleLineCapType.v.strokeStyleLineCapType=a4.m3.oV[["butt","round","square"].indexOf(cT)];
W.strokeStyleLineWidth.v.val=d0*G.V.I2(z);W.strokeStyleLineAlignment.v.strokeStyleLineAlignment=a4.m3.ie[eG];
W.strokeStyleOpacity.v.val=100*(V["stroke-opacity"]?parseFloat(V["stroke-opacity"]):1);if(gS!=null&&gS!="none")W.strokeStyleLineDashSet.v=eg.Fr(gS.split(",").map(parseFloat),1/d0)}if(bd){i.add.vstk.fillEnabled.v=!1;
i.add.SoCo={classID:"null",Clr:{t:"Objc",v:T.W.RQ({h:0,l:0,O:0})}}}else{var dX=h.YU(Z,L,z,iw),eB=null,bb=null;
if(dX.type=="SoFi"){eB="SoCo";bb=a4.pe}if(dX.type=="GrFl"){eB="GdFl";bb=a4.xz}if(dX.type=="patternFill"){eB="PtFl";
bb=a4.jl}if(eB!=null){i.add[eB]={classID:"null"};for(var D=0;D<bb.length;D++){var q=bb[D];i.add[eB][q]=dX.G.v[q]}}}if(V.filter&&V.filter!="none"){var gx=V.filter;
gx=gx.slice(5,gx.length-1);if(Z.getElementById(gx)){var er=Z.getElementById(gx).children[0];if(er.tagName=="feGaussianBlur"){i.add.vmsk.Mt=parseFloat(er.getAttribute("stdDeviation"))*G.V.I2(z)}}}i.AU();
i.vK(b);b.t.push(i)}else if((O=="text"||O=="tspan")&&l.textContent!=""){w=h.oK(l,w);var r=w.clone(),h6=0;
r.concat(z);if(l.children.length>0){var ea=h.QZ(l.children[0],P.a3Z);for(var q in ea)if(Q.indexOf(q)==-1)V[q]=ea[q]}var hD=V["xml:space"],bP=l.textContent;
if(hD=="preserve")bP=bP.replace(/\t/g," ").replace(/\n/g," ");if(m==null)i.wc(bP);i.add.lnsr="rend";
i.add.TySh=eO.nR(0,0);i.add.TySh.az=new b4(0,0,100,100);i.add.TySh.A=r.clone();var iz=i.add.TySh.HK;
eO.kk(iz,0,bP);var L=V.fill,iq=V["font-weight"],cU=V["font-family"],aH=V["text-decoration"],d7=V.stroke,d0=V["stroke-width"],eK=V["dominant-baseline"];
if(eK=="text-before-edge")h6=K;else if(eK=="middle")h6=K/2;else if(eK=="hanging")h6=K;if(h6!=0)i.add.TySh.A.translate(0,h6);
var co=eO.SZ(iz,0,1);if(L&&L!="none"){var dh=CSS.R0(L);co.xp.FillColor={Type:1,Values:[1,dh.h/255,dh.l/255,dh.O/255]}}if(aH=="underline")co.xp.Underline=!0;
co.xp.FontSize=Math.round(K);eO.FK(co,"LiberationSans");if(iq=="bold")eO.FK(co,"LiberationSans-Bold");
if(cU){cU=cU.split(",")[0].trim();if(cU[0]=="\"")cU=cU.slice(1);if(cU[cU.length-1]=="\"")cU=cU.slice(0,cU.length-1);
var cX=cU+":"+(iq?iq:"normal"),eY={"'DejaVu Sans':normal":"DejaVuSans","'DejaVu Sans':bold":"DejaVuSans-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"};
if(eY[cX])eO.FK(co,eY[cX]);else eO.FK(co,cU)}if(V["text-anchor"])co.jm.Justification=["start","end","middle"].indexOf(V["text-anchor"]);
eO.Yg(iz,0,bP.length,co);if(d7==null||d7=="none"){}else{var ga=JSON.parse(a4.FT[a4.order.indexOf("FrFX")]);
ga.Clr.v=T.W.RQ(CSS.R0(d7));ga.Sz.v.val=Math.round(parseFloat(d0)*G.V.I2(r));var h0=JSON.parse(a4.default);
for(var D=0;D<a4.order.length;D++)h0[a4.Ol[D]]={t:"VlLs",v:[]};h0.frameFXMulti.v.push({t:"Objc",v:ga});
i.add.lmfx=h0}b.t.push(i)}else if(O=="image"){var fq=h.kN(l);if(fq.slice(0,4)=="data"){var a8=ab.TF(fq),cc=a8,hW=b.CL(cc,i.getName(),0,0);
hW.NG=i.NG;i=hW;var em=i.rect.clone();em.x=em.y=0;var br=l.getAttribute("width"),cF=l.getAttribute("height");
if(br)em.c=parseFloat(br);if(cF)em.v=parseFloat(cF);var cW=h.oK(l);cW.concat(z);var bM=T.z.X6(em).H;
T.z.A(bM,cW,bM);i.add.SoLd.Trnf=G.V.ab(bM);i.add.SoLd.nonAffineTransform=G.V.ab(bM);i.JN(b,!1);b.t.push(i)}}else console.log("unknown tag: "+O,l.children.length,l.textContent.length);
if(a!=null){b.t.push(a);f--}}};iZ.KB=function(Z,S,b,Y){var P=iZ,w=[{type:6},{type:8,all:0}],f=S.tagName;
if(f=="use"){var h=P.kN(S),Q=Z.getElementById(h.slice(1)),e=new fR;if(Q.tagName!="rect")e=P.oK(Q);e.concat(P.jR(Q));
w=P.KB(Z,Q,b,Y);T.Y.$d(w,e)}else if(f=="path"){var l=S.getAttribute("d");if(l==null)return w;var O=Typr.U.SVGToPath(l);
w=T.z.Cp({H:O.crds,K:O.cmds},b,Y)}else if(f=="rect"){var m=S.getAttribute("rx"),V=P.oK(S);w=T.Y.i9.Rect(V.RN,V.Sv,parseFloat(S.getAttribute("width")),parseFloat(S.getAttribute("height")),m?parseFloat(m):0)}else if(f=="circle"||f=="ellipse"){var q=[0,0,0,0],K=["cx","cy","rx","ry","r"];
for(var D=0;D<5;D++){var z=S.getAttribute(K[D]);if(z){z=parseFloat(z);if(D<4)q[D]=z;else q[2]=q[3]=z}}w=T.Y.i9.TN(q[0]-q[2],q[1]-q[3],2*q[2],2*q[3])}else if(f=="polygon"||f=="polyline"||f=="line"){var t;
if(f=="line")t=[S.getAttribute("x1"),S.getAttribute("y1"),S.getAttribute("x2"),S.getAttribute("y2")].map(parseFloat);
else t=S.getAttribute("points").trim().replace(/\s\s+/g," ").split(",").join(" ").split(" ").map(parseFloat);
w=T.Y.i9.ng(t,0,f!="polygon")}return w};iZ.MF=function(Z,S){if(Z.charAt(Z.length-1)=="m")return S*parseFloat(Z.slice(0,Z.length-2));
else return parseFloat(Z)};iZ.YU=function(Z,S,b,Y){var P,w,f=iZ,h=JSON.parse(a4.FT[a4.order.indexOf("SoFi")]),Q=S!=null?S.indexOf("("):-1;
if(Q!=-1){var e=S.indexOf(")"),l=S.slice(0,Q).trim(),O=S.slice(Q+1,e).trim();if(O.charAt(0)=="'")O=O.slice(1,O.length-1);
if(l=="url"){if(O.charAt(0)=="#"){var m=Z.getElementById(O.slice(1));if(m&&m.tagName.toLowerCase().endsWith("gradient")){var V=f.XO(Z,m,b,Y);
P="GrFl";w={t:"Objc",v:V}}else{P="SoFi";w={t:"Objc",v:h}}}else console.log("unknown url",O)}else if(l=="rgb"||l=="rgba"){P="SoFi";
w={t:"Objc",v:h};w.v.Clr.v=T.W.RQ(CSS.R0(S));if(l=="rgba")w.v.Opct.v.val=Math.round(100*parseFloat(S.split(",").pop()))}else console.log("unknown fill",S)}else{P="SoFi";
w={t:"Objc",v:h};w.v.Clr.v=T.W.RQ(CSS.R0(S))}return{type:P,G:w}};iZ.jR=function(Z){var S=new fR,b=Z.getAttribute("transform");
if(b)S=iZ.Lb(b);var Y=Z.getAttribute("style");if(Y!=null){var P={};iZ.Zp(P,Y,["transform"]);Y=P.transform;
if(Y)S.concat(iZ.Lb(Y))}return S};iZ.oK=function(Z,S){var b=new fR,Y=Z.getAttribute("x"),P=Z.getAttribute("y");
if(Y)b.RN=parseFloat(Y);else if(S)b.RN=S.RN;if(P)b.Sv=parseFloat(P);else if(S)b.Sv=S.Sv;return b};iZ.Lb=function(Z){var S=Typr.U.SVG.readTrnf(Z);
return new fR(S[0],S[1],S[2],S[3],S[4],S[5])};iZ.QZ=function(Z,S){var b={},Y="fill-rule fill stroke stroke-width stroke-dasharray stroke-opacity stroke-linejoin stroke-linecap font-size font-weight font-family text-decoration text-anchor dominant-baseline stop-color stop-opacity filter display opacity fill-opacity paint-order mix-blend-mode xml:space".split(" ");
for(var D=0;D<Y.length;D++){var P=Z.getAttribute(Y[D]);if(P!=null&&P!="inherit")b[Y[D]]=P}var w=Z.getAttribute("class");
if(S!=null&&w!=null&&S["."+w]!=null)iZ.Zp(b,S["."+w],Y);var f=Z.getAttribute("id");if(S!=null&&f!=null&&S["#"+f]!=null)iZ.Zp(b,S["#"+f],Y);
var h=Z.getAttribute("style");if(h!=null)iZ.Zp(b,h,Y);return b};iZ.Zp=function(Z,S,b){S=S.trim().split(";");
for(var D=0;D<S.length;D++){var Y=S[D].split(":"),P=Y[0]?Y[0].trim():"",w=Y[1]?Y[1].trim():"";for(var f=0;
f<b.length;f++)if(P==b[f]&&w!="inherit")Z[b[f]]=w}};iZ.kN=function(Z){var S=Z.getAttribute("xlink:href");
if(S==null)S=Z.getAttribute("href");return S};iZ.XO=function(Z,S,b,Y){var P=iZ,w=new fR,f=S.getAttribute("gradientTransform");
if(f)w=P.Lb(f);w.concat(b);var h=JSON.parse(a4.FT[a4.order.indexOf("GrFl")]),Q=h.Grad.v;Q.Intr.v=0;var e=S.tagName,l=new ar(0,0),O=new ar(Y.c,0);
if(e=="linearGradient"){h.Type.v.GrdT="Lnr";if(S.getAttribute("x1"))l.x=parseFloat(S.getAttribute("x1"));
if(S.getAttribute("y1"))l.y=parseFloat(S.getAttribute("y1"));if(S.getAttribute("x2"))O.x=parseFloat(S.getAttribute("x2"));
if(S.getAttribute("y2"))O.y=parseFloat(S.getAttribute("y2"));l.x=O.x+.5*(l.x-O.x);l.y=O.y+.5*(l.y-O.y)}if(e=="radialGradient"){h.Type.v.GrdT="Rdl";
if(S.getAttribute("cx"))l.x=parseFloat(S.getAttribute("cx"));if(S.getAttribute("cy"))l.y=parseFloat(S.getAttribute("cy"));
O.Ha(l.x,l.y);if(S.getAttribute("r"))O.x+=parseFloat(S.getAttribute("r"))}if(S.getAttribute("gradientUnits")=="userSpaceOnUse"){l=w.YI(l);
O=w.YI(O)}else{l.x=Y.x+l.x*Y.c;l.y=Y.y+l.y*Y.v;O.x=Y.x+O.x*Y.c;O.y=Y.y+O.y*Y.v}T.W.Vu(l,O,Y,h);var m=S.children;
if(m.length==0){var V=P.kN(S);if(V==null)throw"gradient has no stops";var q=Z.getElementById(V.slice(1));
if(q==null){console.log(V.slice(1));throw"e"}var K=P.XO(Z,q,w,Y);h.Grad=K.Grad}else{var z=[];for(var D=0;
D<m.length;D++){var t=m[D],H=P.QZ(t),i=H["stop-color"],y=H["stop-opacity"],j=t.getAttribute("offset");
if(i==null)i="#000000";if(y==null)y="1";var J=j?parseFloat(j):0;i=CSS.R0(i);z.push([J,[i.h/255,i.l/255,i.O/255],parseFloat(y)])}T.W.nu(z,Q)}return h};
iZ.$C=function(Z,S,b){var Y=[],P=iZ;P.cT=S.a0i?"\t":"";var w=S.aoV,f=S.af5;Y.push("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 "+Z.c+" "+Z.v+"\" width=\""+w+"\" height=\""+f+"\">");
var h={Zo:[],a_:[],FH:0,Mf:0,Pm:0,RM:{},vg:{},Zb:0,Vb:{},iL:{},IS:0,S9:[]};iZ.mQ(Z,h,Z.root.children,1,S,b);
if(h.Zo.length!=0){Y.push(P.cb(1)+"<defs>");Y=Y.concat(h.Zo);Y.push(P.cb(1)+"</defs>")}Y.push(P.cb(1)+"<style>");
Y.push(P.cb(2)+"tspan { white-space:pre }");for(var Q in h.Vb)Y.push(P.cb(2)+"."+Q+" { "+h.Vb[Q]+" } ");
Y.push(P.cb(1)+"</style>");Y=Y.concat(h.a_);Y.push("</svg>");Y=Y.join(S.a0i?"\n":"");var e=T.f(Math.round(Y.length*1.5)),l=k.Cz(Y,e,0);
if(P.N2){console.log(P.N2);var O="SVGParser.gen.db = [\n";for(var D=0;D<P.N2.length;D++){var m=P.N2[D];
O+="{\n\tnam: \""+m.um+"\",\n\tpts: [\n";for(var V=0;V<m.mu.length;V++){var q=m.mu[V];O+="\t\t[\""+q[0]+"\", { cmds: "+JSON.stringify(q[1].K)+", crds:"+JSON.stringify(q[1].H)+" } ]"+(V==m.mu.length-1?"":",")+"\n"}O+="\t]\n}"+(D==P.N2.length-1?"":",")+"\n"}O+="]\n";
console.log(O)}return e.buffer.slice(0,l)};iZ.cT="";iZ.cb=function(C){var Z="";for(var D=0;D<C;D++)Z+=iZ.cT;
return Z};iZ.ha=function(C){return""+parseFloat(C.toFixed(3))};iZ.mQ=function(Z,S,b,Y,P,w){var f=iZ;
for(var h=0;h<b.length;h++){var Q=b[h].$,e=Q.add.lsct,l=Q.add.vmsk,O=Q.add.vstk,m=Q.add.TySh;if(l&&!l.isEnabled)l=O=null;
var V=[];if(!P.hidden&&!Q._7())continue;var q=Q.opacity/255,K=Q.add.iOpa?Q.add.iOpa/255:1;if(q!=1)V.push("opacity: "+f.ha(q));
if(K!=1)V.push("fill-opacity: "+f.ha(K));if(Q.WL!="norm"){var z=is.OM[is.KP.indexOf(Q.WL)];if(z!=null)V.push("mix-blend-mode: "+z)}if(!Q._7())V.push("display: none");
var t=[],H=[],i=Q.getName(),y=i.indexOf(" .");if(y!=-1){H.push(i.slice(y+2));i=i.slice(0,y)}if(P.names)t.push("id=\""+f.mz(i)+"\"");
var j=Q.add.lmfx;if(j)j=j.solidFillMulti.v[0];if(j)j=j.v;if(j&&!j.enab.v)j=null;if(Q.W$()){var J=b[h].children;
if(!(J.length==1&&J[0].$.add.SoLd&&!P.hf)){if(f.N2&&Q.getName().split("-").length==3){f.N2.push({um:Q.getName(),GB:0,mu:[]})}iZ.kB(Q,l,S,t);
if(V.length!=0)t.push("style=\""+V.join(";")+"\"");S.a_.push(f.cb(Y)+"<g "+f.p4(t,H)+">");f.mQ(Z,S,J,Y+1,P,w);
S.a_.push(f.cb(Y)+"</g>")}}else if(Q.q3()&&l==null){var A=new b4(0,0,Z.c,Z.v);f.cQ(V,Q.add,S,A);if(V.length!=0)t.push("style=\""+V.join(";")+"\"");
S.a_.push(f.cb(Y)+"<rect width=\""+Z.c+"\" height=\""+Z.v+"\" "+f.p4(t,H)+" />")}else if(l&&Q.add.SoLd==null){var A=T.Y.Al(l.b,null,!0),a=T.Y.W6(l.b);
if(a.bC!=0){t.push("fill-rule=\"evenodd\"")}var I=a.ahU;f.cQ(V,Q.add,S,A);if(V.length!=0){var E=V.join(";"),c=S.iL[E];
if(c==null){c="shp"+S.IS;S.IS++;S.iL[E]=c;S.Vb[c]=E}H.push(c)}S.a_.push(f.cb(Y)+"<path "+f.p4(t,H)+" d=\""+I+"\" />");
if(f.N2&&f.N2[f.N2.length-1]){var u=T.z.o5(l.b);u.H=u.H.map(Math.round);var n=f.N2[f.N2.length-1];n.GB+=JSON.stringify(u).length;
n.mu.push([V[0].split("#").pop(),u])}}else if(m&&P.alZ){var o=m.HK,x=new io(o,w);if(j)t.push("fill=\""+CSS.DI(j.Clr.v)+"\"");
var g=gU.L7(x,m),v=T.z.Py(g);for(var R in v){if(j==null)t.push("fill=\""+R+"\"");var X=v[R],I=Typr.U.pathToSVG({crds:X.H,cmds:X.K},2);
S.a_.push(f.cb(Y)+"<path "+f.p4(t,H)+" d=\""+I+"\" />");if(j==null)t.pop()}}else if(m&&!P.aaj){var o=m.HK,B=m.A.clone(),L=0,bd=0;
if(eO.O$(o)==1){var M=eO.SZ(o,0,0).jm.Justification,N=0,$=eO.kn(o)[2];if(M==2)N=$/2;if(M==1)N=$;B.translate(N,0)}V.push("transform: "+f.X0(B));
var eQ=eO.IU(o),hN=o.EngineDict.ParagraphRun,bI=hN.RunArray,fq=hN.RunLengthArray;if(V.length!=0)t.push("style=\""+V.join(";")+"\"");
S.a_.push(f.cb(Y)+"<text "+f.p4(t,H)+" >");var e9=Q.add.lmfx;if(e9)e9=e9.frameFXMulti.v[0];if(e9)e9=e9.v;
var W=j?CSS.DI(j.Clr.v):null;for(var D=0;D<bI.length;D++){var iw=[],d7=fq[D],d0=eQ.slice(L,L+d7-1),gS=eO.SZ(o,L,L),cf=gS.E2[gS.xp.Font].Name;
if(S.S9.indexOf(cf)==-1)S.S9.push(cf);CSS.as(iw,gS,m.A,!0,!0,W);if(e9){V.push("stroke: "+CSS.DI(e9.Clr.v));
V.push("stroke-width: "+e9.Sz.v.val)}var cT=gS.xp.FontSize*1.12;if(D==0)cT=eO.O$(o)==0?0:gS.xp.FontSize;
bd+=cT;if(d0!=""){var E=iw.join(";"),c=S.iL[E],dX="";if(c==null){c="txt"+S.IS;S.IS++;S.iL[E]=c;S.Vb[c]=E}var fU=gS.xp.Tracking;
if(fU!=null&&fU!=0){fU=Math.round(fU*gS.xp.FontSize/1e3);dX=" dx=\"0";for(var g$=1;g$<d0.length;g$++)dX+=" "+fU;
dX+="\" "}S.a_.push(f.cb(Y+1)+"<tspan x=\"0\" y=\""+f.ha(bd)+"\" class=\""+c+"\""+dX+">"+f.mz(d0)+"</tspan>")}L+=d7}S.a_.push(f.cb(Y)+"</text>")}else if(Q.add.SoLd&&P.hf){var bX=Q.add.SoLd,aw=bX.Idnt.v,hP=0,eG=bX.Crop?bX.Crop.v:null;
if(S.vg[aw]!=null)hP=S.vg[aw];else{S.Zb++;hP=S.Zb;S.vg[aw]=S.Zb;var eB=Z.BY(aw,eG),er="";if(eB==null)return;
var bb=eB.Qf,gx=ab.fN(eB.raw.buffer);if(gx=="pdf"){var ea=new gf("h");ab.iZ("PDF").Gk(eB.raw.buffer,ea);
ea.Wl();ea.mG();ea.D();ea.j8();if(bX.Crop&&bX.Crop.v==1){G.PK.l_(ea,ea.root.Ij(ea,!0))}var hD=ab.iZ("SVG").$b(ea,ea.c,ea.v,null,{S9:w});
er="data:image/svg+xml;base64,"+ab.kL(hD)}else if(gx=="jpg"||gx=="png"||gx=="gif"||gx=="svg"){var bP={jpg:"image/jpg",png:"image/png",jpg:"image/jpg",svg:"image/svg+xml"};
er="data:"+bP[gx]+";base64,"+ab.kL(eB.raw.buffer)}else{er=ab.KA(bb[0].buffer,bb[1].c,bb[1].v)}S.Zo.push(f.cb(2)+"<image width=\""+bb[1].c+"\" height=\""+bb[1].v+"\" id=\"img"+hP+"\" href=\""+er+"\"/>")}var iz=T.J.Q$(bX),iq=[];
iZ.kB(Q,l,S,iq);if(iq.length!=0)S.a_.push(f.cb(Y)+"<g "+f.p4(iq,H)+">");if(V.length!=0)t.push("style=\""+V.join(";")+"\"");
var cU=f.p4(t,H);S.a_.push(f.cb(Y)+"<use "+cU+" href=\"#img"+hP+"\" transform=\""+f.X0(iz)+"\"/>");if(iq.length!=0)S.a_.push(f.cb(Y)+"</g>")}else if(!Q.rect.h3()&&(P.hf||m)){if(V.length!=0)t.push("style=\""+V.join(";")+"\"");
var cU=f.p4(t,H),aH=Q.buffer;if(j)aH=eg.Yt(aH,j,Q.rect);var eK=Q.rect;S.Zb++;var er=ab.KA(aH.buffer,eK.c,eK.v,"png",null,!0);
S.Zo.push(f.cb(2)+"<image width=\""+Q.rect.c+"\" height=\""+Q.rect.v+"\" id=\"img"+S.Zb+"\" href=\""+er+"\"/>");
S.a_.push(f.cb(Y)+"<use "+cU+" href=\"#img"+S.Zb+"\" x=\""+eK.x+"\" y=\""+eK.y+"\" />")}}};iZ.p4=function(Z,S){if(S.length!=0)Z.push("class=\""+S.join(" ")+"\"");
return Z.join(" ")};iZ.mz=function(Z){return String(Z).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u0022/g,"&quot;")};
iZ.X0=function(Z){var S=[Z.w,Z.O,Z.tE,Z.KU,Z.RN,Z.Sv].map(iZ.ha);return"matrix("+S.join(",")+")"};iZ.kB=function(Z,S,b,Y){var P=iZ;
if(S||Z.add.artb){var w;if(S)w=T.Y.W6(S.b).ahU;else{var f=Z.mb(),h=T.z.X6(f);w=Typr.U.pathToSVG({crds:h.H,cmds:h.K},2)}b.Pm++;
Y.push("clip-path=\"url(#cp"+b.Pm+")\"");b.Zo.push(P.cb(2)+"<clipPath clipPathUnits=\"userSpaceOnUse\" id=\"cp"+b.Pm+"\">");
b.Zo.push(P.cb(3)+"<path d=\""+w+"\" />");b.Zo.push(P.cb(2)+"</clipPath>")}};iZ.cQ=function(Z,S,b,Y){var P=iZ,w=S.vstk,f=S.vmsk,h=S.lmfx;
if(f&&f.Mt!=0){var Q=P.ha(f.Mt);if(b.RM[Q]==null){b.Mf++;b.RM[Q]=b.Mf;b.Zo.push(P.cb(2)+"<filter x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" id=\"flt"+b.Mf+"\"> <feGaussianBlur stdDeviation=\""+Q+"\" /> </filter>")}Z.push("filter: url(#flt"+b.RM[Q]+")")}var e=eg.un(h,S),l=e[0],O=e[1];
if(w&&!w.fillEnabled.v)Z.push("fill: none");else if(l){var m=CSS.DI(l.Clr.v);Z.push("fill: "+m)}else if(O){P.VD(O,b,Y);
Z.push("fill: url(#grd"+b.FH+")")}if(w==null||!w.strokeEnabled.v)w=eg.oi(h);if(w&&w.strokeEnabled.v){var V=w.strokeStyleContent.v,q=V.classID;
if(q=="solidColorLayer")Z.push("stroke: "+CSS.DI(V.Clr.v));else{P.VD(V,b,Y);Z.push("stroke: url(#grd"+b.FH+")")}var K=a4.m3.oV.indexOf(w.strokeStyleLineCapType.v.strokeStyleLineCapType),z=a4.m3.join.indexOf(w.strokeStyleLineJoinType.v.strokeStyleLineJoinType),t=w.strokeStyleOpacity.v.val/100,H=w.strokeStyleLineWidth.v.val,i=a4.m3.ie.indexOf(w.strokeStyleLineAlignment.v.strokeStyleLineAlignment);
if(i==2){H*=2;Z.push("paint-order:stroke fill markers")}var y=w.strokeStyleLineDashSet.v,j=[];for(var D=0;
D<y.length;D++)j.push(Math.round(y[D].v.val*H));if(K!=0)Z.push("stroke-linecap:"+["butt","round","square"][K]);
if(z!=0)Z.push("stroke-linejoin:"+["miter","round","bevel"][z]);if(t!=1)Z.push("stroke-opacity:"+P.ha(t));
if(H!=1)Z.push("stroke-width: "+P.ha(H));if(j.length!=0)Z.push("stroke-dasharray: "+j.join(","))}};iZ.VD=function(Z,S,b){S.FH++;
var Y=iZ,P=Z.Grad.v,w=JSON.parse(JSON.stringify(P.Clrs.v)),f=JSON.parse(JSON.stringify(P.Trns.v)),h=Z.Ofst.v,Q=Z.Type.v.GrdT,e=Q=="Rdl"?1:0,l=(e==1?"radial":"linear")+"Gradient",O=T.W.E1(Z,b);
if(e==0){O[0].x=O[1].x+2*(O[0].x-O[1].x);O[0].y=O[1].y+2*(O[0].y-O[1].y)}var m=Y.cb(2)+"<"+l+" id=\"grd"+S.FH+"\" gradientUnits=\"userSpaceOnUse\" ";
if(e==0)S.Zo.push(m+" x1=\""+Y.ha(O[0].x)+"\" y1=\""+Y.ha(O[0].y)+"\" x2=\""+Y.ha(O[1].x)+"\" y2=\""+Y.ha(O[1].y)+"\">");
if(e==1)S.Zo.push(m+" cx=\""+Y.ha(O[0].x)+"\" cy=\""+Y.ha(O[0].y)+"\" r=\""+Y.ha(ar.VA(O[0],O[1]))+"\">");
if(Q=="Rflc"){for(var V=0;V<2;V++){var q=V==0?w:f;for(var D=q.length-1;D>=0;D--){var K=q[D];K.v.Lctn.v=2048+(K.v.Lctn.v>>>1);
var z=JSON.parse(JSON.stringify(K));z.v.Lctn.v=4096-z.v.Lctn.v;q.push(z)}q.sort(function(j,J){return j.v.Lctn.v-J.v.Lctn.v})}}var t=Z.Rvrs.v;
if(t){w.reverse();f.reverse()}for(var D=0;D<w.length;D++){var H=w[D].v,i=D<f.length?f[D].v.Opct.v.val/100:1,i=i==1?"":"stop-opacity=\""+Y.ha(i)+"\"",y=H.Lctn.v/4096;
if(t)y=1-y;S.Zo.push(Y.cb(3)+"<stop offset=\""+Y.ha(y)+"\" stop-color=\""+CSS.DI(H.Clr.v)+"\" "+i+" />")}S.Zo.push(Y.cb(2)+"</"+l+">")};
iZ.i9=function(Z,S,b,Y,P){var w=[],f=iZ.i9,h=!1,Q={Yu:Z,XE:S,Ff:[!0,!0,!0],A$:!1,Nz:b,agD:0};Q.g1=Math.round(Math.max(Z,S)*(.02+f.Nj(Q)*.03));
Q.ay=f.a8_(Q);Q.AX=f.a0T(Q.ay,(f.Nj(Q)<.5?-1:1)*(.2+f.Nj(Q)*.3));if(f.Nj(Q)<.5){var e=Q.ay;Q.ay=Q.AX;
Q.AX=e}Q.aoR=f.Nj(Q)<.4&&f.am0(Q.AX,{h:1,l:1,O:1})>.3;Q.anf=f.Nj(Q)<.5?0:1;w.push("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 "+Z+" "+S+"\" width=\""+Z+"\" height=\""+S+"\">");
Q.T9=Y[Math.floor(f.kg(Q)*Y.length)];Q.qM=Y[Math.floor(f.kg(Q)*Y.length)];w.push("<style>");w.push("@font-face { font-family: "+Q.T9[2]+"; src: url(rsrc/fonts/"+Q.T9[5]+"); }");
w.push("@font-face { font-family: "+Q.qM[2]+"; src: url(rsrc/fonts/"+Q.qM[5]+"); }");w.push("</style>");
var l=[0,0,Z,S],O=l;if(P==null)w.push("<path style=\"fill: "+f.l7(Q.ay)+"\" d=\""+f.Rect(l[0],l[1],l[2]-l[0],l[3]-l[1])+"\" id=\"Background\" />");
else{Q.A$=!0;f.Xf(Q,l,w,P)}if(f.Nj(Q)<.25&&!Q.A$){Q.Ff[0]=Q.Ff[2]=!1;f.adm(l,Q,w);O=l}else if(f.Nj(Q)<.25||Q.A$)O=l;
else{var m=.52+f.Nj(Q)*.2;if(f.Nj(Q)<.5)m=1-m;var V=l.slice(0),q=l.slice(0);if(f.Nj(Q)<.5)V[2]=q[0]=Math.round(m*Z);
else V[3]=q[1]=Math.round(m*S);if(f.Nj(Q)<.5){var e=V;V=q;q=e}O=V;f.anz(Q,q,w,P)}f.aoa(Q,O,w);w.push("</svg>");
w=w.join("\n");var K=T.f(Math.round(w.length*1.5)),z=k.Cz(w,K,0);return[K.buffer.slice(0,z),Q.R3]};iZ.i9.adm=function(Z,S,b){var Y=iZ.i9,P=Z[2]-Z[0],w=Z[3]-Z[1];
if(Y.Nj(S)<.5){b.push("<path id=\"Border\" style=\"fill: "+Y.l7(S.AX)+"\" d=\""+Y.amu(Z[0],Z[1],Z[2]-Z[0],Z[3]-Z[1],S.g1)+"\" />")}else if(Y.Nj(S)<-.4){Y.ado(S,Z,b)}else{var f=Y.Nj(S)<.5?0:1,h=(f==0?w:P)/4,Q=Y.PS(S,f,Z,b,h,!0),Q=Y.PS(S,f+2,Z,b,h,!0,Q)}};
iZ.i9.aoa=function(Z,S,b){var Y=iZ.i9,P="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.-I Saw The Sign.-And it opened up my mind!".split("-"),w=2*Math.floor(Y.Nj(Z)*P.length/2),f=S[2]-S[0],h=S[3]-S[1],e=0,O=0;
Z.Gu=(Z.Yu+f)*.5*(.04+Y.Nj(Z)*.05);Z.Gu=Math.min(Z.Gu,h*.4,f*.12);Z.Gu=Math.round(Z.Gu);var Q=Math.min(Z.Gu*P[w].length*(.35+.3*Y.Nj(Z)),f*.9),l=(S[1]+S[3])/2,m=T.oQ(Z.ay)<.85?{h:1,l:1,O:1}:{h:.1,l:.1,O:.1};
if(Y.Nj(Z)<.25&&Z.Ff[0]){O=0;e=S[0]+Z.g1}else if(Y.Nj(Z)<.33&&Z.Ff[2]){O=2;e=S[2]-Z.g1}else{O=1;e=(S[0]+S[2])/2}var V=m.h==1?"0,0,0":"255,255,255",q=Z.A$&&Y.Nj(Z)<1;
if(q){var K=S[0],z=f,t=l-Z.Gu*1.1,H=Z.Gu*2.2,i=.7;if(O==1&&Y.Nj(Z)<.5){K=t=.2*Math.min(f,h);z=f-2*t;
H=h-t-t}else if(Y.Nj(Z)<.7){K=t=0;z=f;H=h;i=.25}b.push("<path id=\"Strip\" style=\"fill: rgb("+V+"); opacity: "+i+"\" d=\""+Y.Rect(K,t,z,H)+"\" />")}if(Y.Nj(Z)<.4){var y=Z.Gu*.07;
y*=1.5+Y.Nj(Z)*1;if(O==-1&&f/h<3&&!q){b.push("<path id=\"Bar-bottom\" style=\"fill: "+Y.l7(m)+"\" d=\""+Y.Rect(e-Q/2,l+Z.Gu*1.1-y/2,Q,y)+"\" />");
b.push("<path id=\"Bar-top\" style=\"fill: "+Y.l7(m)+"\" d=\""+Y.Rect(e-Q/2,l-Z.Gu*1.1-y/2,Q,y)+"\" />")}if(O!=1){b.push("<path id=\"Bar\" style=\"fill: "+Y.l7(m)+"\" d=\""+Y.Rect(e-y/2,l-Z.Gu*.8,y,Z.Gu*.8*2)+"\" />");
e+=(O==0?1:-1)*Z.Gu/3}}var j=Z.Gu*.4;b.push(Y.cw(P[w+1],e,l+j*1.6,j,m,O,Z.qM));b.push(Y.cw(P[w],e,l+Z.Gu*.04,Z.Gu,m,O,Z.T9))};
iZ.i9.anz=function(Z,S,b,Y){var P=S[2]-S[0],w=S[3]-S[1],f=Math.max(P,w),h=Math.min(P,w),Q=iZ.i9;if(f/h<5&&!Z.A$&&!1){Q.Xf(Z,S,b,Y)}else if(Q.Nj(Z)<0)b.push("<path style=\"fill: "+Q.l7(Z.AX)+"\" d=\""+Q.Rect(S[0],S[1],P,w)+"\" />");
else{var e=0;if(S[3]!=Z.XE)e=0;if(S[2]!=Z.Yu)e=3;if(S[0]!=0)e=1;if(S[1]!=0)e=2;var l=e+2&3;if(f/h<3){var O=Q.anV(l),m=O[Math.round(Q.Nj(Z)*(O.length-1))],V=m.um.slice(0,4),q=V.indexOf(1);
m=JSON.parse(JSON.stringify(m));var K=-1;if(V!="0000"){var z=new fR;if(m.um[5]=="0"){if(q==3&&e==1){K=1;
z.scale(-1,1)}else K=q}else{var t=l;while(t==l)t=Math.floor(Q.Nj(Z)*4)&3;z.rotate((-q+t)*Math.PI/2)}Q.A(m,z)}var H=Q.$R(m),i=P-2*Z.g1,y=w-2*Z.g1;
if(K!=-1){if((K&1)==0)y-=Z.g1;else i-=Z.g1}var j=Math.min(i/H.c,y/H.v),J=new fR;J.translate(-H.x,-H.y);
J.scale(j,j);var A=(P-H.c*j)/2,a=(w-H.v*j)/2;if(K!=-1){if(K==3)A=0;if(K==0)a=0;if(K==1)A=P-H.c*j;if(K==2)a=w-H.v*j}J.translate(S[0]+A,S[1]+a);
Q.cI(Z,m,J,Z.AX,b)}else{Q.PS(Z,e,S,b,1e9)}}};iZ.i9.Xf=function(Z,S,b,Y){var P=S[2]-S[0],w=S[3]-S[1],f=Math.max(P,w),h=Math.min(P,w),Q=iZ.i9,e=Q.kg(Z),l,O,m,V=Y[0]instanceof ArrayBuffer;
if(V){l="data:image/jpg;base64,"+fY.uy(Y[0]);O=Y[1];m=Y[2]}else{var q=Math.floor(e*Y.length),K=Y[q];
Z.R3=K;l=K.webformatURL;O=K.webformatWidth;m=K.webformatHeight}var z=S[0],t=S[1],H=P,i=w;if(P/w>O/m){i=H*m/O;
t=t-(i-w)/2}else{H=i*O/m;z=z-(H-P)/2}if(V){b.push("<defs>");b.push("<image width=\""+O+"\" height=\""+m+"\" id=\"Background\" href=\""+l+"\" />");
b.push("</defs>");var y=H/O;b.push("<use href=\"#Background\" transform=\""+iZ.X0(new fR(y,0,0,y,z,t))+"\" />")}else{var j="cp"+Math.random();
b.push("<clipPath id=\""+j+"\">");b.push("<path style=\"fill: "+Q.l7(Z.AX)+"\" d=\""+Q.Rect(S[0],S[1],P,w)+"\" />");
b.push("</clipPath>");b.push("<image clip-path=\"url(#"+j+")\" xlink:href=\""+l+"\" x=\""+z+"\" y=\""+t+"\" width=\""+H+"\" height=\""+i+"\" />")}};
iZ.i9.cw=function(Z,S,b,Y,P,w,f){var h=iZ.i9;return"<text x=\""+S+"\" y=\""+b+"\" style=\"fill:"+h.l7(P)+"; font-size:"+Y+"px; text-anchor:"+["start","middle","end"][w]+"; font-family:"+f[2]+";\"><tspan>"+Z+"</tspan></text>"};
iZ.i9.cI=function(Z,S,b,Y,P){var w=iZ.i9,f=[];for(var D=0;D<S.mu.length;D++){f.push(Y);if(Z.aoR){Y=(D&1)==Z.anf?{h:1,l:1,O:1}:f[0]}}P.push("<g id=\""+S.um.split("-")[2]+":::\" style=\"transform: "+iZ.X0(b)+";\" >");
for(var D=0;D<S.mu.length;D++){var h=S.mu[D];Y=f.pop();P.push("<path style=\"fill: "+(Y?w.l7(Y):"#"+h[0])+"\" d=\""+Typr.U.pathToSVG({crds:h[1].H,cmds:h[1].K})+"\" />")}P.push("</g>")};
iZ.i9.ado=function(Z,S,b){var Y=iZ.i9,P=iZ.i9.wz,w=[];for(var D=0;D<P.length;D++){var f=P[D],h=f.um.slice(0,4);
if(h!="1001")continue;w.push(f)}var f=w[Math.floor(Y.Nj(Z)*w.length)];if(Y.Nj(Z)<.5)Y.A(f,new fR(0,1,1,0,0,0));
var Q=S[3]-S[1],e=S[2]-S[0],l=Y.$R(f),O=.7*Math.min(e,Q,.5*Math.max(e,Q))/Math.max(l.c,l.v),m=new fR;
m.scale(O,O);if(Y.Nj(Z)<.5){m.scale(1,-1);m.translate(0,Q)}Y.cI(Z,f,m,Z.AX,b);m.rotate(Math.PI);m.translate(e,Q);
Y.cI(Z,f,m,Z.AX,b)};iZ.i9.anV=function(Z){var S=iZ.i9.wz,b=[];for(var D=0;D<S.length;D++){var Y=S[D],P=Y.um.slice(0,4);
if(P=="0000"){b.push(Y);continue}if(["1000","0100","0010","0001"].indexOf(P)==-1)continue;var w=P.indexOf("1");
if(Y.um[5]=="0"&&Z==w&&w!=3)continue;b.push(Y)}return b};iZ.i9.PS=function(Z,S,b,Y,P,w,f){var h=iZ.i9.wz,Q=iZ.i9,e=[],H,i;
for(var D=0;D<h.length;D++){var l=h[D],O=l.um.slice(0,4);if(["1110","1101","1011","0111"].indexOf(O)==-1)continue;
var m=O.indexOf("0")+2&3;if(l.um[5]=="0")if(w==!0||S!=m&&!(S==1&&m==3))continue;e.push(l)}var V=f!=null?f:Math.floor(Q.Nj(Z)*e.length),l=e[V],l=JSON.parse(JSON.stringify(l)),O=l.um.slice(0,4),m=O.indexOf("0")+2&3;
if(m==3&&S==1)T.A(l,new fR(1,0,0,-1,0,1e3));var q=new fR;q.translate(-500,-500);q.rotate(-m*Math.PI/2);
q.translate(500,500);Q.A(l,q);var K=b[3]-b[1],z=b[2]-b[0],t=Q.$R(l);if(t.y<0){t.v+=t.y;t.y=0}if(t.y>0){t.v+=t.y;
t.y=0}if((S&1)==0){i=K;H=z}else{H=K;i=z}var y=Math.min(Math.min(.5+.5*Q.Nj(Z))*Math.min(z,K),P)/t.v,j=Math.ceil(H/(1e3*y)),J=new fR,A=new fR;
A.scale(y,y);if(S==0||S==2){A.translate(-(z/2),-(K/2));A.rotate(-S*Math.PI/2);A.translate(z/2+b[0],K/2+b[1])}else{A.rotate(Math.PI/2);
A.scale(1,-1);A.translate(b[0],b[1]);if(S==1){A.scale(-1,1);A.translate(z,0)}}Y.push("<g id=\"Border-"+["top","right","bottom","left"][S]+":::\">");
for(var D=0;D<j;D++){var a=J.clone();a.concat(A);Q.cI(Z,l,a,Z.AX,Y);J.translate(1e3-2,0)}Y.push("</g>");
return V};iZ.i9.Rect=function(Z,S,b,Y){return Typr.U.pathToSVG({crds:[Z,S,Z+b,S,Z+b,S+Y,Z,S+Y],cmds:["M","L","L","L","Z"]})};
iZ.i9.amu=function(Z,S,b,Y,P){var w=[Z,S,Z+b,S,Z+b,S+Y,Z,S+Y];Z+=P;S+=P;b-=2*P;Y-=2*P;w.push(Z,S,Z,S+Y,Z+b,S+Y,Z+b,S);
return Typr.U.pathToSVG({crds:w,cmds:"M L L L Z M L L L Z".split(" ")})};iZ.i9.a0T=function(Z,S){var b=T.dU(Z.h,Z.l,Z.O);
b.jM=Math.max(.1,Math.min(.9,b.jM+S));return T.E$(b.XE,b.zk,b.jM)};iZ.i9.ad4=function(Z,S){var b=T.dU(Z.h,Z.l,Z.O);
b.XE+=S;return T.E$(b.XE,b.zk,b.jM)};iZ.i9.agi=function(Z){var S=T.dU(Z.h,Z.l,Z.O);S.jM=1-S.jM;return T.E$(S.XE,S.zk,S.jM)};
iZ.i9.am0=function(Z,S){var b=Z.h-S.h,Y=Z.l-S.l,P=Z.O-S.O;return Math.sqrt(b*b+Y*Y+P*P)};iZ.i9.a8_=function(Z){var S=iZ.i9;
return{h:S.Nj(Z),l:S.Nj(Z),O:S.Nj(Z)}};iZ.i9.l7=function(Z){return CSS.Mh({h:Z.h*255,l:Z.l*255,O:Z.O*255})};
iZ.i9.$R=function(Z){var S=Z.mu,b=new b4;for(var D=0;D<S.length;D++)b=b.VK(T.z.$R(S[D][1].H));return b};
iZ.i9.A=function(Z,S){var b=Z.mu;for(var D=0;D<b.length;D++)T.z.A(b[D][1].H,S,b[D][1].H)};iZ.i9.Nj=function(Z){Z.agD++;
var S=Z.agD&3;if(S==0)Z.Nz=iZ.i9.A9(Z.Nz);var b=Z.Nz>>>8*S&255;return b*(.99999999/255)};iZ.i9.kg=function(Z){var S=iZ.i9.A9(Z.Nz);
Z.Nz=iZ.i9.A9(S);return S*(1/4294967295)};iZ.i9.A9=function(Z){Z=(Z^61^Z>>>16)>>>0;Z=Z+(Z<<3)>>>0;Z=(Z^Z>>>4)>>>0;
Z=Z*668265261>>>0;Z=(Z^Z>>>15)>>>0;return Z};iZ.i9.wz=[{um:"0001-0-bird",mu:[["4b3c34",{K:"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(" "),H:[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",{K:"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(" "),H:[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",{K:"M C C C C C C C C C C C C L Z".split(" "),H:[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]}]]},{um:"0001-0-bird2",mu:[["ff7f2a",{K:"M L L L Z M L L L Z".split(" "),H:[296,0,296,62,335,62,296,0,357,0,357,62,318,62,357,0]}],["b588c1",{K:"M C C C C C C C C C C C L Z".split(" "),H:[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",{K:"M C C C C C C L Z M C C Z".split(" "),H:[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",{K:"M L L L Z M L L L Z".split(" "),H:[326,258,334,315,323,316,326,258,298,262,296,318,286,317,298,262]}],["4b3c34",{K:"M L C C C C C C C C L Z".split(" "),H:[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",{K:"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(" "),H:[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]}]]},{um:"0000-1-flower",mu:[["7a59a2",{K:"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(" "),H:[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]}]]},{um:"0000-1-flower",mu:[["d13777",{K:"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(" "),H:[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]}]]},{um:"0000-1-flower",mu:[["ffac42",{K:"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(" "),H:[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]}]]},{um:"0000-1-flower",mu:[["d04040",{K:"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(" "),H:[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]}]]},{um:"0000-1-flower",mu:[["ec7272",{K:"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(" "),H:[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",{K:"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(" "),H:[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]}]]},{um:"0000-0-hearts",mu:[["d17070",{K:"M C C C C C C C C C L Z".split(" "),H:[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",{K:"M C C C C C C C C C L Z".split(" "),H:[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",{K:"M C C C C C C C C C L Z".split(" "),H:[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]}]]},{um:"0000-0-anchor",mu:[["2a3b66",{K:"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(" "),H:[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]}]]},{um:"0000-1-leaf",mu:[["fbb600",{K:"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(" "),H:[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]}]]},{um:"0000-1-acorn",mu:[["a05a2c",{K:"M C C C C C C C L Z".split(" "),H:[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",{K:"M C C C C C C C C C C C Z".split(" "),H:[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]}]]},{um:"0000-0-skull",mu:[["808080",{K:"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(" "),H:[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]}]]},{um:"0000-0-ghost",mu:[["e6e6e6",{K:"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(" "),H:[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",{K:"M C C C C Z M C C C C Z".split(" "),H:[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]}]]},{um:"1001-1-rose",mu:[["9e1460",{K:"M C C C C C C C C C Z M C C C C C C C C C Z".split(" "),H:[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",{K:"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(" "),H:[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]}]]},{um:"1001-1-curls",mu:[["53a7ab",{K:"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(" "),H:[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",{K:"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(" "),H:[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]}]]},{um:"0111-0-pines",mu:[["e9e9e9",{K:"M C C C C C C C C L L L Z".split(" "),H:[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",{K:"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(" "),H:[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]}]]},{um:"0111-0-flowers",mu:[["8cae40",{K:"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(" "),H:[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",{K:"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(" "),H:[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]}]]},{um:"1101-1-confetti",mu:[["e789ff",{K:"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(" "),H:[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",{K:"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(" "),H:[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]}]]},{um:"1101-1-branch",mu:[["7f500b",{K:"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(" "),H:[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",{K:"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(" "),H:[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]}]]},{um:"1101-1-sticks",mu:[["ec7272",{K:"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(" "),H:[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",{K:"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(" "),H:[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]}]]},{um:"1101-1-dots",mu:[["ec7272",{K:"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(" "),H:[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",{K:"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(" "),H:[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",{K:["M","C","C","Z"],H:[389,224,389,224,410,230,410,230,410,230,389,224,389,224]}]]},{um:"1101-1-strips",mu:[["ffc88c",{K:"M L L L L Z M L L L L Z M L L L L Z".split(" "),H:[-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",{K:"M L L L L Z M L L L L Z M L L L L Z".split(" "),H:[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",{K:["M","C","C","Z"],H:[407,217,407,217,428,223,428,223,428,223,407,217,407,217]}]]},{um:"1101-1-circs",mu:[["ec7272",{K:"M C C C C Z M C C C C Z".split(" "),H:[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",{K:"M C C C C Z M C C C C Z".split(" "),H:[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",{K:["M","C","C","Z"],H:[530,273,530,273,551,279,551,279,551,279,530,273,530,273]}]]},{um:"1101-1-squares",mu:[["014ea7",{K:"M L L L L Z M L L L L Z".split(" "),H:[0,120,124,120,124,244,0,244,0,120,497,120,621,120,621,244,497,244,497,120]}],["fc54ff",{K:"M L L L L Z M L L L L Z".split(" "),H:[249,120,373,120,373,244,249,244,249,120,746,120,870,120,870,244,746,244,746,120]}],["88a500",{K:["M","C","C","Z"],H:[389,354,389,354,410,360,410,360,410,360,389,354,389,354]}]]},{um:"1101-0-christmas",mu:[["014ea7",{K:"M C C C C Z M C C C C Z M L L L L Z".split(" "),H:[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",{K:"M C C C C Z M C C C C Z M L L L L Z".split(" "),H:[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 dj={};dj.parse=function(Z){var S=new Uint8Array(Z),b=null;if(S[0]==80&&S[1]==75){var Y=Date.now(),P=UZIP.parse(S.buffer),b=P["document.json"];
b=JSON.parse(k.cP(b,0,b.length));dj.RK(b,P)}else{var w=cR.parse(Z);b=dj.zS(w[2][0][1])}return b};dj.RK=function(Z,S){var b=typeof Z;
if(b=="string"||b=="number"||b=="boolean")return Z;if(Z instanceof Array){for(var D=0;D<Z.length;D++)Z[D]=dj.RK(Z[D],S);
return Z}var Y=Z._class;if(Y==null)return Z;if(Y=="MSJSONFileReference"){var P=Z._ref;if(!1){}else if(S[P+".json"]!=null){var w=S[P+".json"],f=w.length;
for(var D=0;D<f;D++)if(w[D]==11||w[D]==3)w[D]=32;var h=k.cP(w,0,f);Z=JSON.parse(h)}else if(S[P+".png"]!=null)return{key:P.split("/").pop(),bdata:S[P+".png"]};
else if(S[P+".jpg"]!=null)return{key:P.split("/").pop(),bdata:S[P+".jpg"]};else if(S[P+".pdf"]!=null)return{key:P.split("/").pop(),bdata:S[P+".pdf"]};
else if(S[P]!=null)return{key:P.split("/").pop(),bdata:S[P]};else{console.log(Z,S);return}}else if(Y=="MSAttributedString"){var h=atob(Z.archivedAttributedString._archive),Q=h.length-1,e=new Uint8Array(Q);
for(var D=0;D<Q;D++)e[D]=h.charCodeAt(D);Z.archivedAttributedString=dj.zS(e)}for(var l in Z)Z[l]=dj.RK(Z[l],S);
return Z};dj.tP=function(Z,S,b,Y){if(Z instanceof Uint8Array)return null;if(Y.indexOf(Z)!=-1)return null;
Y.push(Z);if(Z==S)return b;for(var P in Z){b.push(P);var w=dj.tP(Z[P],S,b,Y);if(w){console.log(Z,w);
throw"e"}b.pop()}};dj.zS=function(Z){var S=bu.parse(Z,0),b=S.$objects,Y=new Uint8Array(b.length),P=dj.dg(b,Y,S.$top.root);
for(var D=0;D<b.length;D++)if(Y[D]==0&&D!=0){console.log(D,b[D]);dj.tP(P,D,[],[])}for(var D=0;D<b.length;
D++){var w=b[D];if(w._class&&(w._class=="bitmap"||w._class=="fill"&&w.fillType==4&&(w.image||w.imageSHA))){var f=w.image,h=w.imageSHA,Q=null,e=null;
if(f=="$null")f=null;if(h=="$null")h=null;if(f&&f.data){e=f.sha1["NS.bytes"];e=btoa(k.zG(e,0,e.length));
Q=f.data instanceof Uint8Array?f.data:f.data["NS.bytes"]}else if(f==null&&h==null){var l=ab.iZ("PNG").$b([[T.f(4).buffer]],1,1);
Q=new Uint8Array(l)}else{var O=(P.assets?P.assets.imageCollection:P.images).images;if(h)e=h instanceof Uint8Array?h:h["NS.bytes"];
else e=f.sha1["NS.bytes"];e=btoa(k.zG(e,0,e.length));var Q=O[e].data;if(Q["NS.bytes"])Q=Q["NS.bytes"]}Q=new Uint8Array(Q.buffer.slice(Q.byteOffset,Q.byteOffset+Q.length));
delete w.imageSHA;w.image={key:e,bdata:Q}}}return P};dj.a56=function(Z){return Z.slice(0,11)=="MSImmutable"?"MS"+Z.slice(11):Z};
dj.dg=function(Z,S,b){var Y=Z[b];if(S[b]==1){return Y}S[b]=1;if(typeof Y=="string")return Y;if(typeof Y=="number")return Y;
if(typeof Y=="boolean")return Y;if(Y instanceof Array)return Y;if(Y instanceof Uint8Array){return Y}if(Z[Y.$class]==null){if(Y.$class==null&&Y["NS.data"]!=null)return Y;
console.log(b,Y);throw"e"}var P=Z[Y.$class],w=dj.a56(P.$classname);S[Y.$class]=1;Y.$class=w;if(dj.xn[w]){delete Y.$class;
Y._class=dj.xn[w]}var f=dj.dg;if(w=="NSMutableArray"||w=="NSArray"){var h=[];if(Y["NS.objects"]!=null)for(var D=0;
D<Y["NS.objects"].length;D++)h.push(f(Z,S,Y["NS.objects"][D]));else for(var D=0;Y["NS.object."+D]!=null;
D++)h.push(f(Z,S,Y["NS.object."+D]));Z[b]=h;return h}if(w=="NSDictionary"||w=="NSMutableDictionary"){var Q={$class:w};
if(Y["NS.keys"]!=null)for(var D=0;D<Y["NS.keys"].length;D++){var e=f(Z,S,Y["NS.keys"][D]);if(e instanceof Uint8Array)e=btoa(dj.hV.zG(e,0,e.length));
else if(typeof e!="string"&&typeof e!="number")e=btoa(dj.hV.zG(e["NS.bytes"],0,e["NS.bytes"].length));
Q[e]=f(Z,S,Y["NS.objects"][D])}else for(var D=0;Y["NS.key."+D]!=null;D++){var e=f(Z,S,Y["NS.key."+D]);
if(e instanceof Uint8Array)e=btoa(dj.hV.zG(e,0,e.length));else if(typeof e!="string"&&typeof e!="number")e=btoa(dj.hV.zG(e["NS.bytes"],0,e["NS.bytes"].length));
Q[e]=f(Z,S,Y["NS.object."+D])}for(var l in Y)delete Y[l];for(var l in Q)Y[l]=Q[l];return Y}if(w=="NSURL")return{$class:w,base:f(Z,S,Y["NS.base"]),relative:f(Z,S,Y["NS.relative"])};
if(dj.a1d.indexOf(w)!=-1){Z[b]=f(Z,S,Y.array_do);return Z[b]}if(Y.do_objectID!=null)Y.do_objectID=f(Z,S,Y.do_objectID);
if(dj.afF.indexOf(w)!=-1)return Y;var O=dj.a9t[w];if(O==null){console.log(Z,Y);throw"unknown class "+w}for(var D=0;
D<O.length;D++)if(Y[O[D]]!=null)Y[O[D]]=f(Z,S,Y[O[D]]);if(w=="MSTextLayer"){var m=Y,V,q,K,z;if(m.attributedString)V=m.attributedString.archivedAttributedString;
else V=m.storage;z=V.NSString;if(typeof z!="string")z=k.cP(z["NS.bytes"],0,z["NS.bytes"].length);if(V.NSAttributeInfo)q=V.NSAttributeInfo["NS.bytes"];
else{var t=z.length,H=[];while(t>0){var i=Math.min(100,t);H.push(i,0);t-=i}q=new Uint8Array(H)}K=V.NSAttributes instanceof Array?V.NSAttributes:[V.NSAttributes];
var y={$class:"NSAttributedString",NSString:z,NSAttributes:K};m.attributedString={_class:"MSAttributedString",archivedAttributedString:y};
y.NSAttributeInfo={$class:"NSMutableData","NS.data":q};delete m.storage}return Y};dj.hV={gU:function(Z,S){return Z[S+1]<<8|Z[S]},r:function(Z,S){return Z[S+3]<<24|Z[S+2]<<16|Z[S+1]<<8|Z[S]},zG:function(Z,S,b){var Y="";
for(var D=0;D<b;D++)Y+=String.fromCharCode(Z[S+D]);return Y}};dj.xn={MSPage:"page",MSArtboardGroup:"artboard",MSShapeGroup:"shapeGroup",MSLayerGroup:"group",MSBitmapLayer:"bitmap",MSTextLayer:"text",MSSliceLayer:"slice",MSSymbolMaster:"symbolMaster",MSSymbolInstance:"symbolInstance",MSStyleFill:"fill",MSShapePathLayer:"shapePath",MSRectangleShape:"rectangle",MSOvalShape:"oval",MSTriangleShape:"triangle"};
dj.a1d=["MSArray","MSFillStyleCollection","MSBorderStyleCollection","MSShadowStyleCollection","MSInnerShadowStyleCollection"];
dj.afF="MSArchivedColor MSLayoutGrid MSSimpleGrid MSColor MSRect MSStyleColorControls MSGraphicsContextSettings NSMutableString NSMutableData NSDecimalNumberPlaceholder MSStyleReflection".split(" ");
dj.a9t={MSAssetCollection:["gradients","colors","imageCollection","images"],MSImageCollection:["images"],MSSharedStyleContainer:["objects"],MSSharedTextStyleContainer:["objects"],MSSharedLayerStyleContainer:["objects"],MSSharedLayerTextStyleContainer:["objects"],MSSharedLayerContainer:["objects"],MSSymbolContainer:["objects"],MSGradient:["stops","from","to","points"],MSGradientStop:["color"],MSStyleFill:["color","gradient","contextSettings","image","imageSHA"],MSExportFormat:["fileFormat","name"],MSExportOptions:["exportFormats","includedLayerIds","sizes"],MSRulerData:["guides"],MSStyle:"textStyle fills contextSettings sharedObjectID borders blur shadows innerShadows borderOptions colorControls reflection".split(" "),MSSharedStyle:["name","value"],MSSymbol:["name","value"],MSAttributedString:["archivedAttributedString"],MSSharedLayerStyle:["name","value","instances"],MSSharedLayer:["name","value","instances"],MSDocumentData:"assets layerStyles pages layerTextStyles layerSymbols images userInfo".split(" "),MSShapePathLayer:"exportOptions frame name userInfo path originalObjectID".split(" "),MSOvalShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSRectangleShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSPolygonShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSTriangleShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSStarShape:"exportOptions frame name userInfo path originalObjectID".split(" "),MSBitmapLayer:"exportOptions frame name userInfo style imageSHA nineSliceCenterRect nineSliceScale image clippingMask originalObjectID".split(" "),MSTextLayer:"exportOptions frame name userInfo style originalObjectID attributedString glyphBounds storage".split(" "),MSShapeGroup:"exportOptions frame name userInfo style originalObjectID layers".split(" "),MSLayerGroup:"exportOptions frame name userInfo style originalObjectID layers sharedObjectID".split(" "),MSArtboardGroup:"exportOptions frame name userInfo style layers horizontalRulerData verticalRulerData layout grid backgroundColor".split(" "),MSPage:"exportOptions frame name userInfo style layers horizontalRulerData verticalRulerData layout grid scrollOrigin".split(" "),MSSymbolMaster:"exportOptions frame name userInfo style layers horizontalRulerData verticalRulerData layout grid originalObjectID symbolID backgroundColor".split(" "),MSSymbolInstance:"exportOptions frame name userInfo style symbolID overrides masterInfluenceBounds originalObjectID".split(" "),MSSliceLayer:["exportOptions","frame","name","userInfo","backgroundColor"],MSTextStyle:["attributes","encodedAttributes"],MSShapePath:["points"],MSPointArray:["points"],MSImageData:["data","sha1","name"],MSCurvePoint:["curveFrom","curveTo","point"],MSImageProxy:["sha1"],MSStyleBorder:["color","gradient","contextSettings"],MSStyleBlur:["center"],MSStyleShadow:["color","contextSettings"],MSStyleInnerShadow:["color","contextSettings"],MSExportSize:["format","name"],MSStyleBorderOptions:["dashPattern"],NSFont:["NSName","NSDescriptor"],NSColor:["NSCustomColorSpace"],NSFontDescriptor:["NSFontDescriptorAttributes"],NSMutableParagraphStyle:["NSTextBlocks","NSTabStops","NSTextLists"],NSAttributedString:["NSAttributes","NSString","NSAttributeInfo"],NSTextStorage:["NSAttributeInfo","NSAttributes","NSString"],NSColorSpace:["NSICC"],NSParagraphStyle:["NSTabStops","NSTextBlocks","NSTextLists"],NSTextList:["NSMarkerFormat"],NSTextTab:["NSTabOptions"],UIFontDescriptor:["UIFontDescriptorAttributes"]};
var bu={};bu.parse=function(Z,S){var b=k.zG(Z,S,8);S+=8;var Y=bu.parse.afS(Z,Z.length-31),P=[];if(Y.wy==1){var S=Z.length-31-Y.wy*Y.lO;
for(var D=0;D<Y.lO;D++)P.push(Z[S+D])}else if(Y.wy==2){var S=Z.length-31-Y.wy*Y.lO;for(var D=0;D<Y.lO;
D++)P.push(k.gU(Z,S+D*2))}else if(Y.wy==4){var S=Z.length-31-Y.wy*Y.lO;for(var D=0;D<Y.lO;D++)P.push(k.r(Z,S+D*4))}else{throw"e"}var w=bu.parse.dg(Z,P,Y.root,Y);
return w};bu.parse.dg=function(Z,S,b,Y){var P=bu.hV,w=Y.abr,f=w==4?P.r:w==2?P.gU:P.a5z,h=bu.parse,Q=S[b],e=Z[Q],l=e>>4,O=e&15,V=null;
Q+=1;if([4,5,6,10,12,13].indexOf(l)!=-1&&O==15){var m=h.Dk(Z,Q);Q+=m.GB;O=m.G}if(!1){}else if(l==0)V=O==8?!1:O==9?!0:null;
else if(l==1)V=h.Dk(Z,Q-1).G;else if(l==2)V=1<<O==4?k.Wi(Z,Q):k.j4(Z,Q);else if(l==3)V=k.j4(Z,Q);else if(l==4)V=new Uint8Array(Z.buffer,Q,O);
else if(l==5)V=k.zG(Z,Q,O);else if(l==6)V=k.vH(Z,Q,O);else if(l==8){V=0;for(var D=0;D<O+1;D++)V=V<<8|Z[Q+D]}else if(l==10){V=[];
for(var D=0;D<O;D++)V.push(h.dg(Z,S,f(Z,Q+w*D),Y))}else if(l==12){V=[];for(var D=0;D<O;D++)V.push(h.dg(Z,S,f(Z,Q+w*D),Y))}else if(l==13){V={};
for(var D=0;D<O;D++){var q=h.dg(Z,S,f(Z,Q+w*D),Y),K=h.dg(Z,S,f(Z,Q+w*(O+D)),Y);V[q]=K}}else throw"unknown mask "+l;
return V};bu.parse.Dk=function(Z,S){var b=1<<(Z[S]&15),Y=0;for(var D=0;D<b;D++)Y=Y<<8|Z[S+1+D];return{G:Y,GB:b+1}};
bu.parse.afS=function(Z,S){var b={};S+=6;b.wy=Z[S];S++;b.abr=Z[S];S++;S+=4;b.lO=k.r(Z,S);S+=4;S+=4;b.root=k.r(Z,S);
S+=4;S+=4;b.a1c=k.r(Z,S);S+=4;return b};bu.hV={a5z:function(Z,S){return Z[S]},gU:function(Z,S){return Z[S]<<8|Z[S+1]},r:function(Z,S){return Z[S]<<24|Z[S+1]<<16|Z[S+2]<<8|Z[S+3]},zG:function(Z,S,b){var Y="";
for(var D=0;D<b;D++)Y+=String.fromCharCode(Z[S+D]);return Y}};var cR={parse:function(Z){var S=new Uint8Array(Z),b=cR.vV(S),Y=[],P=new Uint8Array(S.length),w=[];
Y.push(w);cR.QE(S,b,1,P,w);for(var D=0;D<w.length;D++){var f=[];Y.push(f);cR.QE(S,b,w[D][3],P,f);w[D][3]=D+1}return Y},QE:function(Z,S,b,Y,P){b--;
var w=b*S.Sx+(b==0?100:0),f=Z[w],h=cR.gU(Z,w+1);if(h!=0)throw"free block in a page";var Q=cR.gU(Z,w+3),e=cR.gU(Z,w+5);
if(e==0)e=65536;var l=Z[w+7],O=cR.gU(Z,w+8);if(f==2||f==5)w+=4;else O=0;for(var m=0;m<Q;m++){var V=b*S.Sx+cR.gU(Z,w+8+2*m),q=-1,K=0,z=0,t=0;
if(f==2||f==5){q=cR.r(Z,V);V+=4}if(f==2||f==10||f==13){K=cR.Ds(Z,V);V+=K.GB}if(f==5||f==13){z=cR.Ds(Z,V);
V+=z.GB}if(f==5){cR.QE(Z,S,q,Y,P);continue}var H=S.Sx-(b==0?100:0),i=K.$0,y=f==13?H-35:Math.floor((H-12)*64/255)-23,j=Math.floor((H-12)*32/255)-23,J=j+(i-j)%(H-4);
if(i<=y){cR.Bv(Z,V,Y,0,i)}else{var A=J<=y?J:j,a=0;cR.Bv(Z,V,Y,0,A);a+=A;t=cR.r(Z,V+A);while(t!=0){var I=(t-1)*S.Sx;
t=cR.r(Z,I);var E=Math.min(S.Sx-4,i-a);cR.Bv(Z,I+4,Y,a,E);a+=E}}P.push(cR.a8b(Y,i))}},a8b:function(Z,S){var b=0,Y=cR.Ds(Z,b);
b+=Y.GB;var P=[],w=[];while(b<Y.$0){var f=cR.Ds(Z,b);b+=f.GB;P.push(f.$0)}if(b!=Y.$0)throw"e";for(var D=0;
D<P.length;D++){var f=P[D];if(!1){}else if(f==0)w.push(null);else if(f==1){w.push(cR.a6g(Z,b));b+=1}else if(f==2){w.push(cR.S1(Z,b));
b+=2}else if(f==3){w.push(cR.a1L(Z,b));b+=3}else if(f==4){w.push(cR.Dk(Z,b));b+=4}else if(f==7){w.push(cR.ady(Z,b));
b+=16}else if(f==8)w.push(0);else if(f==9)w.push(1);else if(f>=12&&(f&1)==0){var h=f-13>>1,Q=new Uint8Array(h);
cR.Bv(Z,b,Q,0,h);w.push(Q);b+=h}else if(f>=13&&(f&1)==1){var h=f-12>>1;w.push(cR.cP(Z,b,h));b+=h}else throw"unknonw type "+f}return w},vV:function(Z){if(!(Z[18]==1&&Z[19]==1&&Z[20]==0&&Z[21]==64&&Z[22]==32&&Z[23]==32))throw"unexpected SQL3 header";
var S={DC:cR.zG(Z,0,15),Sx:cR.gU(Z,16),abn:cR.r(Z,24),size:cR.r(Z,28),aeF:cR.r(Z,32),aoP:cR.r(Z,36),afx:cR.r(Z,40),a2V:cR.r(Z,44),a9_:cR.r(Z,48),ajX:cR.r(Z,52),a5s:cR.r(Z,56),ahO:cR.r(Z,60),a4j:cR.r(Z,64)!=0,alu:cR.r(Z,68),a5Y:cR.r(Z,92),a2Q:cR.r(Z,96)};
if(S.Sx==1)S.Sx=65536;if(S.a5s!=1)throw"unsupported text encoding "+S.a5s;return S},ach:function(Z,S){return Z[S]<<16|Z[S+1]<<8|Z[S+2]},a1L:function(Z,S){var b=cR.ach(Z,S),Y=b&8388608;
return Y?-(16777215-b+1):b},a6g:function(Z,S){cR.$m[0]=Z[S];return cR.a8S[0]},Dk:function(Z,S){var b=cR.$m;
for(var D=0;D<4;D++)b[D]=Z[S+3-D];return cR.a9Q[0]},S1:function(Z,S){var b=cR.$m;b[0]=Z[S+1];b[1]=Z[S];
return cR.a7Q[0]},gU:function(Z,S){return Z[S]<<8|Z[S+1]},r:function(Z,S){return Z[S]<<24|Z[S+1]<<16|Z[S+2]<<8|Z[S+3]},ady:function(Z,S){var b=cR.$m;
for(var D=0;D<8;D++)b[D]=Z[S+7-D];return cR.ad5[0]},Ds:function(Z,S){var b=S,C=0;while(!0){var Y=Z[S];
S++;C=C*128+(Y&127);if(Y<128)break}return{$0:C,GB:S-b}},zG:function(Z,S,b){var Y="";for(var D=0;D<b;
D++)Y+=String.fromCharCode(Z[S+D]);return Y},cP:function(Z,S,b){var Y="";for(var D=0;D<b;D++)Y+="%"+cR.a7C(Z[S+D].toString(16));
return decodeURIComponent(Y)},Bv:function(Z,S,b,Y,P){if(Z[S+P-1]==null||b[Y+P-1]==null){console.log(S,Y,P);
throw"e"}for(var D=0;D<P;D++)b[Y+D]=Z[S+D]},a7C:function(C){return C.length<2?"0"+C:C}};cR.$m=new Uint8Array(8);
cR.a8S=new Int8Array(cR.$m.buffer);cR.a7Q=new Int16Array(cR.$m.buffer);cR.a9Q=new Int32Array(cR.$m.buffer);
cR.ad5=new Float64Array(cR.$m.buffer);function eD(Z,S,b){this.o2=Z;this.Yb=S;this.a6j=b;this.MN=new ar(0,0);
this.Ai=-1;this.o$=0;this.or=0;this.dr=new b4;this.rN=[];this.Qc=null;this.ajx=null;this.v7=null;this.Mu=null;
this.Js=null;this.akk=null}eD.prototype.StartPage=function(Z,S,b,Y,P){var w=this.Yb,f=w.I2(),h=1,Q=(b-Z)*(Y-S);
if(P!=null)Q=P;while(Q*f*f/(h*h)>2*8192*8192)h++;w.scale(1/h,1/h);this.ajx=[Z,S,b,Y];var h=w.I2();Z=Math.round(Z*h);
S=Math.round(S*h);b=Math.round(b*h);Y=Math.round(Y*h);var e=this.o2,l=this.v7;if(l==null){w.RN=-Z}else{var O=l[2]-l[0]+30,m=Math.round(b-Z)+30;
if(this.MN.x+O+m>8192){w.RN=-Z;this.MN.x=0;this.MN.y+=this.or+120;this.or=0}else{w.RN+=O;this.MN.x+=O}}w.Sv=this.MN.y+(this.a6j?Y:-S);
this.or=Math.max(this.or,Math.round(Y-S));this.v7=[Z,S,b,Y];e.t.push(e._z())};eD.prototype.LS=function(){var Z=this.o2,S=Z.t[Z.t.length-1];
return S};eD.prototype.RW=function(){var Z=JSON.parse(JSON.stringify(a4.m3.default));Z.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter";
Z.strokeEnabled.v=!1;Z.fillEnabled.v=!1;return Z};eD.prototype.pJ=function(){var Z=this.o2,S=Z.Dl();
S.wc("Path "+Z.t.length);this.o2.t.push(S);S.NG|=16;S.add.SoCo={classID:"null",Clr:{t:"Objc",v:T.W.RQ({h:0,l:0,O:0})}};
S.add.vmsk=new F.NS;S.add.vstk=this.RW();return S};eD.prototype.Ej=function(Z){var S={H:Z.crds,K:Z.cmds},b=T.z.Cp(S,!1);
T.Y.$d(b,this.Yb);return b};eD.aby=function(Z,S){for(var D=0;D<Z.length;D++)if(Z[D].qU!=null)Z[D].qU=S};
eD.ajo=function(Z){return Math.sqrt(Math.abs(Z[0]*Z[3]-Z[1]*Z[2]))};eD.BE=function(Z){return T.W.RQ({h:Z[0]*255,l:Z[1]*255,O:Z[2]*255})};
eD.Nd=function(Z){return new fR(Z[0],Z[1],Z[2],Z[3],Z[4],Z[5])};eD.prototype.Stroke=function(Z){if(this.Ai!=-1&&this.Ai!=this.o$)return;
if(Z.pth.cmds.length<=1)return;var S=this.Ej(Z.pth);if(S.length<=2)return;this.E9(Z);eD.aby(S,-1);S[2].qU=1;
var b=eD.BE(Z.COLR),Y=this.LS(),P=this.RW();eD.S$(P,Z,this.Yb.I2(),b);var w=Y!=null&&Y.add.vmsk!=null&&!Y.W$(),f=w&&!Y.add.vstk.strokeEnabled.v&&F.NS.a8K(Y.add.vmsk.b,S,!0),h=w&&!Y.add.vstk.fillEnabled.v&&JSON.stringify(P)==JSON.stringify(Y.add.vstk);
if(h){Y.add.vmsk.b=Y.add.vmsk.b.concat(S.slice(2))}else if(f){Y.add.vstk=P;P.fillEnabled.v=!0}else{Y=this.pJ();
Y.add.vmsk.b=S;Y.add.vstk=P}};eD.S$=function(Z,S,b,Y){Z.strokeEnabled.v=!0;Z.strokeStyleMiterLimit.v=S.mlimit;
Z.strokeStyleLineDashSet.v=eg.Fr(S.dash,1/S.lwidth);Z.strokeStyleLineDashOffset.v.val=S.doff;Z.strokeStyleLineJoinType.v.strokeStyleLineJoinType=a4.m3.join[S.ljoin];
Z.strokeStyleLineCapType.v.strokeStyleLineCapType=a4.m3.oV[S.lcap];Z.strokeStyleLineWidth.v.val=Math.max(.4,S.lwidth*eD.ajo(S.ctm)*b);
Z.strokeStyleContent.v.Clr.v=Y};eD.prototype.Fill=function(Z,S){if(this.Ai!=-1&&this.Ai!=this.o$)return;
if(Z.ca==0)return;var b=Z.pth.cmds;if(b.length==0)return;if(b.length==2&&JSON.stringify(b)=="[\"M\",\"L\"]")return;
var Y=T.z.$R(Z.cpth.crds),P=T.z.$R(Z.pth.crds);if(P.Yz(Y).h3())return;var w=Z.pth;if(this.Mu==null&&UDOC.G.isBox(w,[P.x,P.y,P.x+P.c,P.y+P.v])&&P.ls(Y)){w=Z.cpth}else this.E9(Z);
var f=this.Ej(w),h=T.z.X6(P);T.z.A(h.H,this.Yb,h.H);P=T.z.$R(h.H);var Q=eD.dy(Z.colr,this.Yb,P),e=this.LS(),l=e!=null&&e.opacity==Math.round(255*Z.ca)&&e.add.vstk!=null&&!e.add.vstk.strokeEnabled.v&&e.add.SoCo&&Q.type=="SoFi"&&JSON.stringify(e.add.SoCo.Clr.v)==JSON.stringify(Q.G.v.Clr.v);
if(l){var O=!1;for(var D=0;D<f.length;D++){if(f[D].qU==0||f[D].qU==2)O=!0}if(O){var m=T.z.$R(T.Y.bM(e.add.vmsk.b)),V=T.z.$R(T.Y.bM(f));
l=m.Yz(V).h3()}}if(l){var q=e.add.vmsk.b;for(var D=2;D<f.length;D++)q.push(f[D])}else{e=this.pJ();delete e.add.SoCo;
e.add.vmsk.b=F.NS.OU(f);eD.yX(Z.colr,e,this.Yb,P);eD.bZ(Z,e)}};eD.yX=function(Z,S,b,Y){var P=eD.dy(Z,b,Y),w=null,f=null;
S.add.vstk.fillEnabled.v=!0;if(P.type=="SoFi"){w="SoCo";f=a4.pe}if(P.type=="GrFl"){w="GdFl";f=a4.xz}if(P.type=="patternFill"){w="PtFl";
f=a4.jl}if(w!=null){S.add[w]={classID:"null"};for(var D=0;D<f.length;D++){var h=f[D];S.add[w][h]=P.G.v[h]}}};
eD.prototype.E9=function(Z){var S=this.o2,b=Z.cpth,Y=b.cmds.join(""),P=b.crds,w=Y+" "+P.join(","),f=UDOC.G.isBox(b,this.ajx);
if(f&&this.Mu==null)return;if(w==this.Mu)return;this.FP();if(!f){this.Mu=w;S.t.push(S._z());var h=S.Dl();
h.wc("Mask");h.add.lsct=fr.U1;h.WL="pass";h.NG=24;var Q=h.add.vmsk=new F.NS;Q.b=this.Ej(Z.cpth);if(UDOC.G.isBox(b)){this.Js=T.Y.Al(Q.b);
this.Js.lg(3,3)}else this.Js=null;this.akk=h}};eD.prototype.FP=function(){var Z=this.o2;if(this.Mu!=null){var S=Z.t.length-1,D=S,b=!1;
while(D>=0&&Z.t[D].add.lsct!=fr.Ee)D--;var Y=this.Js;if(Y){var P=new b4,w=S;while(w>D){P=Z.t[w].qI(this.o2,!1,!0);
w--}b=Y.ls(P)}if(b){this.rN.splice(D,1);Z.t.splice(D,1)}else{Z.t.push(this.akk)}this.Mu=null}};eD.dy=function(Z,S,b){var Y,P;
if(Z.length!=null){Y="SoFi";var w=JSON.parse(a4.FT[a4.order.indexOf("SoFi")]);P={t:"Objc",v:w};P.v.Clr.v=eD.BE(Z)}else{var f=eD.al8(Z,S,b);
Y="GrFl";P={t:"Objc",v:f}}return{type:Y,G:P}};eD.al8=function(Z,S,b){var Y=JSON.parse(a4.FT[a4.order.indexOf("GrFl")]),P=Y.Grad.v;
P.Intr.v=0;var w=eD.Nd(Z.mat);w.concat(S);var f=new ar(0,0),h=new ar(b.c,0),Q=Z.crds;if(Z.typ=="rad"){Y.Type.v.GrdT="Rdl";
var e=.7;f.x=(1-e)*Q[0]+e*Q[3];f.y=(1-e)*Q[1]+e*Q[4];h.x=f.x;h.y=f.y;h.x+=Math.max(Q[2],Q[5])}else{Y.Type.v.GrdT="Lnr";
f.x=Q[0];f.y=Q[1];h.x=Q[2];h.y=Q[3];f.x=h.x+.5*(f.x-h.x);f.y=h.y+.5*(f.y-h.y)}f=w.YI(f);h=w.YI(h);T.W.Vu(f,h,b,Y);
var l=Z.grad;T.W.nu(l,P);return Y};eD.prototype.PutText=function(Z,S,b,Y){var P=S.charCodeAt(0),m=null;
if(this.Ai!=-1&&this.Ai!=this.o$)return;if(S.length==0||S.length==1&&(P==0||P==8203))return;this.E9(Z);
var w=this.o2,f=Z.font,h=eD.Nd(Z.ctm);h.concat(this.Yb);var Q=eD.Nd(f.Tm);Q.concat(h);var e=G.V.I2(Q),l=new fR(1/e,0,0,-1/e,0,0);
l.concat(Q);var O=f.Tfs*e;if(f.Th!=100||f.Trise!=0){console.log(f)}var V=w.t.length-1;while(V>=0&&w.t[V].add.TySh==null)V--;
if(l.O*l.O+l.tE*l.tE<.001&&Y==null&&V>=0&&w.t[V].add.TySh&&w.t[V].opacity==Math.round(255*Z.ca)){var q=w.t[V],K=this.rN[V],z=q.add.TySh.A,t=(z.RN+K.uj-l.RN)/O,H=Math.abs(t),i=S.indexOf(" ")==-1,y=z.w==l.w&&z.O==l.O&&z.tE==l.tE&&z.KU==l.KU,j=y&&Math.abs(K.G8-l.Sv)<1e-5&&H<.6,J=l.Sv-K.G8;
if(j){m=q;K.uj=l.RN-z.RN;if(t>.2&&i&&[".",",","?",":","!"].indexOf(S)==-1)S=" "+S}else if(y&&Math.abs(l.RN-z.RN)<1e-5&&0<J&&J<O*1.7&&K.agv==O){m=q;
this.zX(K);K.G8=l.Sv;S="\n"+S}}if(m==null){V=w.t.length;this.rN[V]={pX:[],uj:0,G8:l.Sv,m4:"",agv:O};
m=w.Dl();w.t.push(m);m.add.lnsr="rend";m.add.TySh=eO.nR(0,0);m.add.TySh.A=l}var K=this.rN[V];K.uj+=b*O;
K.m4+=S;var A=m.add.TySh.HK,a=eO.IU(A);if(Y){eO.es(A,1);var I=[0,0,Math.ceil(Y[0]*e),Math.ceil(Y[1]*e)];
eO.oZ(A,I)}var E=a.length-1,c=E+S.length;eO.kk(A,E,S);if(this.Qc==null)this.Qc=eO.SZ(A,E,E);var u=this.Qc;
u.xp.FontSize=Math.round(O);u.xp.Tracking=Math.round(f.Tc*100);u.xp.Underline=f.Tun==1;u.xp.FillColor={Type:1,Values:[1,Z.colr[0],Z.colr[1],Z.colr[2]]};
if(f.Tal!=null)u.jm.Justification=f.Tal;if(K.pX.length!=0){u.xp.AutoLeading=!1;u.xp.Leading=K.G8-K.pX[K.pX.length-1].y}var n=f.Tf;
n=n.replace(/#2B/g,"+");n=n.replace(/#2C/g,"-");n=n.split("+").pop();var o={"NimbusRomNo9L-Medi":"NimbusRomNo9L-Med","NimbusRomNo9L-Regu":"NimbusRomNo9L-Reg","NimbusRomNo9L-MediItal":"NimbusRomNo9L-MedIta","NimbusRomNo9L-ReguItal":"NimbusRomNo9L-RegIta",CMTT9:"NimbusMono-Regular",Arial:"ArialMT","BebasNeue-Regular":"BebasNeueRegular"};
if(o[n])n=o[n];eO.FK(u,n);eO.Yg(A,E,c-1,u);m.EU();m.opacity=Math.round(255*Z.ca)};eD.prototype.zX=function(Z){Z.pX.push({Yu:Z.uj,QX:Z.m4.slice(Z.pX.length==0?0:1)+"\n",y:Z.G8,zk:Z.agv});
Z.uj=0;Z.m4=""};eD.prototype.PutImage=function(Z,S,b,Y,P,w,f){if(this.Ai!=-1&&this.Ai!=this.o$)return;
var h=this.o2,Q=Z.font.Tmode;if(Q==7&&h.t[h.t.length-1].add.TySh){return}this.E9(Z);var e=eD.Nd(Z.ctm);
e.concat(this.Yb);var l=new fR(1/b,0,0,-1/Y,0,1);l.concat(e);e=l;S=eD.Gp(S,b,Y);if(P)P=eD.Gp(P,b,Y);
if(P==null){if(S.length==b*Y*4)S=new Uint8Array(ab.iZ("PNG").$b([[S.buffer,0]],b,Y))}else{S=this.fo(S,b,Y,w,!1);
P=this.fo(P,b,Y,f,!0);var O=T.f(b*Y);T.to(P,O,0);T.y8(O,S,3);S=new Uint8Array(ab.iZ("PNG").$b([[S.buffer,0]],b,Y))}var m=h.CL(S,"Bitmap",0,0),V=m.rect.clone();
V.x=V.y=0;var q=T.z.X6(V).H;T.z.A(q,e,q);m.add.SoLd.Trnf=G.V.ab(q);m.add.SoLd.nonAffineTransform=G.V.ab(q);
m.JN(h,!1);eD.bZ(Z,m);h.t.push(m)};eD.bZ=function(Z,S){S.opacity=Math.round(255*Z.ca);var b=eD.a5[Z.bmode];
if(b==null)console.log("Unknown blend mode",b);else S.WL=b};eD.a5={"/Normal":"norm","/Multiply":"mul ","/Screen":"scrn","/Overlay":"over","/Darken":"dark","/Lighten":"lite","/ColorDodge":"div ","/ColorBurn":"idiv","/HardLight":"hLit","/SoftLight":"sLit","/Difference":"diff","/Exclusion":"smud","/Hue":"hue ","/Saturation":"sat ","/Color":"colr","/Luminosity":"lum "};
eD.Xn=function(Z){for(var S in eD.a5)if(eD.a5[S]==Z)return S};eD.Gp=function(Z,S,b){var Y=ab.fN(Z.buffer);
if(Y=="jpg"){try{Z=new Uint8Array(ab.iZ("JPG").ajW(Z.buffer))}catch(aV){Z=new Uint8Array(S*b*4)}}else if(Z.length!=S*b*4){var P=new Uint8Array(S*b*4),w=new Uint8Array(Math.ceil(S*b/8));
UTIF.decode._decodeG4(Z,0,Z.length,w,0,S,1);for(var D=0;D<S*b;D++){var f=D*4,h=(w[D>>3]>>7-(D&7)&1)*255;
P[f]=h;P[f+1]=h;P[f+2]=h;P[f+3]=255}Z=P}return Z};eD.prototype.fo=function(Z,S,b,Y,P){if(Z.length!=S*b*4){var w=ab.fN(Z.buffer),f=ab.iZ(w);
if(f==null||w=="tga")f=ab.iZ("jpg");Z=new Uint8Array(f.Gk(Z,Y,P)[0].data)}return Z};eD.prototype.ShowPage=function(){var Z=this.o2;
this.o$++;var S=this.v7;this.FP();var b=Z.Dl();Z.t.push(b);var Y=new b4(Math.round(this.MN.x),Math.round(this.MN.y),Math.round(S[2]-S[0]),Math.round(S[3]-S[1]));
this.dr=this.dr.VK(Y);b.PB(Y);b.add.artb.artboardBackgroundType.v=3;b.wc("Page "+this.o$);b.add.lsct=fr.U1;
b.WL="pass";b.NG=24};eD.prototype.Print=function(Z){console.log("Print:",Z)};eD.prototype.Done=function(){var Z=this.o2;
if(this.o$==1)Z.t[Z.t.length-1].add.lsct=fr.k8;Z.wX(this.o$);for(var D=0;D<Z.t.length;D++){var S=Z.t[D],b=S.add.vmsk,Y=S.add.TySh,P=this.rN[D];
S.AU();if(b){var w=!1;for(var f=0;f<b.b.length;f++){var h=b.b[f];if((h.type==0||h.type==3)&&h.length>32767)w=!0}if(w){Z.t.splice(D,1);
D--;continue}}S.vK(Z);if(Y&&P.pX.length!=0){this.zX(P);var Q=Y.HK,e=P.pX.length,l=P.pX[0],O=0,m=0;for(var f=0;
f<e;f++)O=Math.max(O,P.pX[f].Yu);eO.es(Q,1);Y.A.Sv-=l.zk*.7;eO.oZ(Q,[0,0,Math.ceil(O*1.1),Math.ceil(P.pX[e-1].y-l.y+l.zk*2)])}if(Y){var Q=Y.HK;
eO.anv(Q);var V=eO.IU(Q).split("\n");for(var f=0;f<V.length-1;f++){var q=V[f],K=0;for(var z=0;z<q.length;
z++){var t=q.charCodeAt(z);if(1473<=t&&t<=1524)K++}if(K>q.length/2){V[f]=q.split("").reverse().join("");
var H=Q.EngineDict.ParagraphRun.RunArray[f].ParagraphSheet.Properties;H._Direction=1;H.Justification=eO.qH(H)}}eO.wL(Q,V.join("\n"))}}Z.c3=!0;
Z.c=this.dr.c;Z.v=this.dr.v;Z.buffer=T.f(this.dr.X()*4)};var hU={};hU.$C=function(Z,S,b,Y){var P=!1,w=[Z.root],f=Z.root.children;
if(Z.add.artd){P=!0;for(var D=0;D<f.length;D++)if(f[D].$.add.artb==null)P=!1;if(P)w=f}var h=new b4(0,0,Z.c,Z.v),Q=S[0];
Q=Q.replace(/,/g," ").replace(/\-/g," - ").replace(/ +/g," ").trim();Q=Q.split(" ");var e=[];for(var D=0;
D<Q.length;D++){var l=Q[D];if(l=="-"){var O=e.pop(),m=parseInt(Q[D+1]);while(O<m){e.push(O);O++}}else e.push(parseInt(l))}Q=e;
for(var D=0;D<Q.length;D++)if(isNaN(Q[D])||Q[D]<1||Q[D]>w.length){Q.splice(D,1);D--}var V=72/Z.GY;for(var D=0;
D<w.length;D++){if(Q.length!=0&&Q.indexOf(D+1)==-1)continue;var q=w[D],K=P?q.$.mb():h,z=Math.round(K.c*V),t=Math.round(K.v*V);
b.StartPage(0,0,z,t);var H=UDOC.getState([[0,0,z,t]]),i=new fR;i.translate(-K.x,-K.y-K.v);i.scale(V,-V);
if(S[2]){var y=Z.Zd();if(!h.Oh(K)){y=T.f(K.X()*4);T.uH(Z.Zd(),h,y,K)}if(S[1]!=100){var j=ab.iZ("JPG").$b([[y.buffer]],K.c,K.v,[S[1]]);
y=new Uint8Array(j)}var J=new fR;J.translate(K.x,K.y);hU.yS(H,b,y,K,J,i)}else hU.Rg(Z,q,H,b,i,S,Y);b.ShowPage()}b.Done()};
hU.SJ=function(Z){Z=T.W.CD(Z);return[Z.h/255,Z.l/255,Z.O/255]};hU.Rg=function(Z,S,b,Y,P,w,f){var h=S.$,Q=h.add.lsct,e=h.add.lmfx,l=h.add.vmsk,O=h.add.vstk,m=h.add.TySh,z,t;
if(!h._7())return;var V=h.opacity/255,q=h.add.iOpa?h.add.iOpa/255:1;b.bmode=eD.Xn(h.WL);b.ca=b.CA=V*q;
var K=e;if(K)K=K.solidFillMulti.v[0];if(K)K=K.v;if(K&&!K.enab.v)K=null;if(h.z3()&&!h.W$()){z=T.f(h.rect.X());
T.to(h.buffer,z,3);t=eg.HP(e,null,z,h.rect,Z,h.rect).type}if(t)hU.QS(h,z,t,b,Y,P,w,!0);if(h.W$()){for(var D=0;
D<S.children.length;D++)hU.Rg(Z,S.children[D],b,Y,P,w,f)}else if(l&&h.q3()){var H=l.b,i=T.Y.Al(H),y=T.z.o5(H),j=!1,J=!1,A=!1;
T.z.A(y.H,P,y.H);b.pth={cmds:y.K,crds:y.H};if(O.fillEnabled.v){var a=eg.un(e,h.add),I=a[0],E=a[1];if(I){b.colr=hU.SJ(I.Clr.v)}else if(E){var c=E,u=[],n,o=c.Type.v.GrdT=="Rdl"?"rad":"lin",x=T.W.E1(c,i),g=P.YI(x[0]),v=P.YI(x[1]);
if(o=="rad")n=[g.x,g.y,0,g.x,g.y,ar.VA(g,v)];else{g.Ha(v.x+(g.x-v.x)*2,v.y+(g.y-v.y)*2);n=[g.x,g.y,v.x,v.y]}var R=c.Grad.v.Clrs.v;
for(var D=0;D<R.length;D++){var X=R[D].v;u.push([X.Lctn.v/4096,hU.SJ(X.Clr.v)])}b.colr={typ:o,mat:[1,0,0,1,0,0],grad:u,crds:n}}j=!0}var B=eg.oi(e);
if(!O.strokeEnabled.v&&B)O=B;if(O.strokeEnabled.v){var M=O.strokeStyleContent.v,r=O.strokeStyleLineDashSet.v,N=a4.m3.ie.indexOf(O.strokeStyleLineAlignment.v.strokeStyleLineAlignment);
if(M.Clr==null)return;var $=T.W.CD(M.Clr.v);b.COLR=[$.h/255,$.l/255,$.O/255];b.lwidth=O.strokeStyleLineWidth.v.val*(N==2?2:1)*P.I2();
b.mlimit=O.strokeStyleMiterLimit.v;b.doff=O.strokeStyleLineDashOffset.v.val;b.ljoin=a4.m3.join.indexOf(O.strokeStyleLineJoinType.v.strokeStyleLineJoinType);
b.lcap=a4.m3.oV.indexOf(O.strokeStyleLineCapType.v.strokeStyleLineCapType);b.dash=[];for(var D=0;D<r.length;
D++)b.dash.push(r[D].v.val*b.lwidth);if(b.dash.length==1&&b.dash[0]==0)b.dash=[];J=!0;if(N==2)A=!0}if(j&&!A)Y.Fill(b);
if(J)Y.Stroke(b);if(j&&A)Y.Fill(b)}else if(m&&w[4]){var eQ=m.HK,hN=new io(eQ,f),y=gU.L7(hN,m),bI=T.z.Py(y);
for(var $ in bI){var fq=parseInt($.slice(1),16);b.colr=K?hU.SJ(K.Clr.v):[(fq>>>16&255)/255,(fq>>>8&255)/255,(fq&255)/255];
var e9=bI[$];T.z.A(e9.H,P,e9.H);e9=T.z.akI(e9);b.pth={cmds:e9.K,crds:e9.H};Y.Fill(b)}}else if(m&&w[3]==!1){var eQ=m.HK,W=m.A.clone(),L=new fR(1,0,0,-1,0,0);
L.concat(W);L.concat(P);var bd=eO.IU(eQ),hN=new io(eQ,f);for(var D=0;D<hN.jm.length;D++){var iw=hN.jm[D];
if(iw.eO.length==1&&iw.eO[0].S6)continue;for(var d7=0;d7<iw.nZ.length;d7++){var d0=iw.nZ[d7],gS=iw.wM.y+d0.wM.y,cf=iw.eO[d0.start].start,cT=iw.eO[d0.end-1].end,fU=eO.a6n(eQ,cf,cT);
for(var dX=0;dX<fU.length;dX++){var g$=hN.aO(cf),bX=fU[dX],aw=eO.SZ(eQ,cf,cf),hP=aw.E2[aw.xp.Font].Name;
b.font.Tf=hP;var $=eO.CD(aw.xp);b.colr=K?hU.SJ(K.Clr.v):[$.h/255,$.l/255,$.O/255];b.font.Tfs=Math.round(aw.xp.FontSize);
var eG=bd.slice(cf,cf+bX);if(aw.xp.FontCaps==2)eG=eG.toUpperCase();var eB=new fR;eB.translate(g$._.x,-gS);
eB.concat(L);b.ctm=[eB.w,eB.O,eB.tE,eB.KU,eB.RN,eB.Sv];Y.PutText(b,eG,0);b.ctm=[1,0,0,1,0,0];cf+=bX}}}}else if(!h.rect.h3()){var bb,gx,er=!1,ea=new fR;
if(h.add.SoLd){var hD=h.add.SoLd,bP=hD.Idnt.v,iz=Z.BY(bP,hD.Crop?hD.Crop.v:null),aH="";if(iz==null)return;
var iq=iz.Qf,cU=ab.fN(iz.raw.buffer);if(w[5].indexOf(cU)!=-1){bb=iz.raw;er=!0}else bb=iq[0];gx=iq[1];
ea=T.J.Q$(hD)}else{bb=h.buffer;gx=h.rect;ea.translate(gx.x,gx.y)}if(K&&!er)bb=eg.Yt(bb,K,gx);hU.yS(b,Y,bb,gx,ea,P);
if(K&&er){var n=[0,0,gx.c,0,gx.c,gx.v,0,gx.v];T.z.A(n,ea,n);T.z.A(n,P,n);var eK=JSON.parse(JSON.stringify(b));
eK.ca=K.Opct.v.val/100;eK.pth={cmds:["M","L","L","L","Z"],crds:n};eK.colr=hU.SJ(K.Clr.v);Y.Fill(eK)}}if(t)hU.QS(h,z,t,b,Y,P,w,!1)};
hU.QS=function(Z,S,b,Y,P,w,f,h){var Q=Z.rect.clone(),e=S;if(Z.add.TySh&&!f[3]&&!f[4])return;console.log(f);
var l=Y.ca,O=Y.bmode;for(var D=a4.order.length-1;D>=0;D--){var m=a4.order[D];if(m=="GrFl"||m=="SoFi")continue;
if(Z.add.vmsk&&m=="FrFX")continue;var V=b[m],q=D>7||m=="FrFX";if(q!=h)continue;for(var K=0;K<V.length;
K++){var z=V[K];console.log(q,m,z);var t=z.Wx.clone();t.offset(Z.rect.x,Z.rect.y);if(!q){if(!Q.ls(t)){var H=Q.VK(t),i=T.f(H.X());
T.JS(e,Q,i,H);e=i;Q=H}T.FD(e,Q,z.j$,t)}if(q&&m=="FrFX"&&z.Zy)T.FD(z.Zy,t,z.j$,t);var y=new fR;y.translate(t.x,t.y);
Y.ca=z.e5;Y.bmode=eD.Xn(z.yf);hU.yS(Y,P,z.j$,t,y,w)}}Y.ca=l;Y.bmode=O};hU.yS=function(Z,S,b,Y,P,w){var f=new fR;
f.scale(Y.c,-Y.v);f.translate(0,Y.v);f.concat(P);f.concat(w);Z.ctm=[f.w,f.O,f.tE,f.KU,f.RN,f.Sv];S.PutImage(Z,b,Y.c,Y.v);
Z.ctm=[1,0,0,1,0,0]};var es={};es.Vq=function(Z){var S=new Uint8Array(Z);return es.dC(S,0)};es.dC=function(Z,S){var b=k.r,Y=k.zG,P={sx:Y(Z,S,4),n:S+8,size:b(Z,S+4)},w=P.sx=="FORM"||P.sx=="LIST"||P.sx=="CAT ";
if(w)P.Vh=Y(Z,S+8,4);if(P.size<0||P.n+P.size>Z.length)throw"e";if(w){P.sub=[];S+=12;var f=P.n+P.size;
while(S<f){var h=es.dC(Z,S);P.sub.push(h);S+=8+h.size+(h.size&1)}}return P};var e7={};e7.Vq=function(Z,S){var b=new Uint8Array(Z);
return e7.dC(b,0,S)};e7.dC=function(Z,S,b){var Y=k.l2,P=k.zG,w={sx:P(Z,S,4),n:S+8,size:Y(Z,S+4)};if(b&&b[w.size]!=null)w.size=b[w.size];
if(w.sx=="RIFF"||w.sx=="LIST"){w.Vh=P(Z,S+8,4)}if(w.size<0||w.n+w.size>Z.length)throw"e";if(w.sx=="RIFF"||w.sx=="LIST"&&(w.Vh!="cmpr"&&w.Vh!="stlt")){w.sub=[];
S+=12;var f=w.n+w.size;while(S<f){var h=e7.dC(Z,S,b);w.sub.push(h);S+=8+h.size+(h.size&1)}}return w};
var es={};es.Vq=function(Z){var S=new Uint8Array(Z);return es.dC(S,0)};es.dC=function(Z,S){var b=k.r,Y=k.zG,P={sx:Y(Z,S,4),n:S+8,size:b(Z,S+4)},w=P.sx=="FORM"||P.sx=="LIST"||P.sx=="CAT ";
if(w)P.Vh=Y(Z,S+8,4);if(P.size<0||P.n+P.size>Z.length)throw"e";if(w){P.sub=[];S+=12;var f=P.n+P.size;
while(S<f){var h=es.dC(Z,S);P.sub.push(h);S+=8+h.size+(h.size&1)}}return P};function fW(){}fW.Vq=function(Z,S){var b=new Uint8Array(Z);
S.c3=!0;var Y=k.zG(b,0,2);if(Y=="WL"){alert("Unsupported CDR version")}else{var P=fW.CO,w=e7.Vq(b.buffer),f={data:b,n:0,YE:fW.am3(b[11])},m=300;
f.fQ=f.YE<600?16:32;fW.nl(f,w.sub,S,0);var h=P(w,"cmpr").sub,Q=h[0],e=h.slice(1),l=P(Q,"mcfg").G,O=l.ahD;
m/=bl.c9(new b4(0,0,Math.round(O.x*m),Math.round(O.y*m)),8192*8192);var V=Math.round(O.x*m),q=Math.round(O.y*m);
S.c=V;S.v=q;S.buffer=T.f(S.c*S.v*4);var K=P(Q,"filt").sub,z=P(Q,"otlt").sub;Q.s5={};for(var D=0;D<K.length;
D++)Q.s5[K[D].sub[0].G.id]=K[D].sub[0].G;Q.u2={};for(var D=0;D<z.length;D++)Q.u2[z[D].G.id]=z[D].G;var t=new fR(m,0,0,-m,O.x*m/2,O.y*m/2),H=e[1];
fW.v$(H,Q,S,t);S.wX(1);S.t[S.t.length-1].PB(new b4(0,0,V,q))}};fW.CO=function(Z,S){var b=null;for(var D=0;
D<Z.sub.length;D++){var Y=Z.sub[D];if(Y.sx==S||Y.Vh==S)b=Y}return b};fW.v$=function(Z,S,b,Y){var P=fW.CO,w=Z.Vh?Z.Vh:Z.sx,f=P(Z,"lgob"),h=P(Z,"txsm"),Q,e;
if(f){Q=P(f,"trfl");e=P(f,"loda")}var l=Q?Q.sub[0].Ig.clone():new fR;l.concat(Y);var O=b.Dl();if(w=="page"||w=="layr"||w=="grp "){O.wc((w=="page"?"Page":"Group")+" "+b.t.length);
O.add.lsct=fr.k8;O.WL="pass";O.NG=24;var m=[];if(w=="page")m=P(Z,"gobj").sub;if(w=="layr")m=Z.sub.slice(2);
if(w=="grp ")m=Z.sub.slice(4);if(m.length==0)return;b.t.push(b._z());for(var D=m.length-1;D>=0;D--)fW.v$(m[D],S,b,Y)}else if(w=="obj "&&e.G&&e.G.path){O.wc("Object "+b.t.length);
var V=S.s5[e.G.a95],q=S.u2[e.G.aiM],K=O.getName(),z=V&&V.type!=0,t=z&&V.G!=null?V.G:[0,0,0];O.NG|=16;
O.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));var H=O.add.vstk;H.strokeEnabled.v=!1;O.add.vmsk=new F.NS;
if(q&&q.aja!=1){H.strokeEnabled.v=!0;H.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter";
H.strokeStyleLineWidth.v.val=q.lineWidth*Y.I2();var i=q.color;H.strokeStyleContent.v.Clr.v=T.W.RQ({h:i[0]*255,l:i[1]*255,O:i[2]*255})}var y=e.G.path;
O.add.vmsk.b=T.z.Cp(y,!1);T.Y.$d(O.add.vmsk.b,l);eD.yX(t,O,l,T.Y.Al(O.add.vmsk.b));H.fillEnabled.v=z;
O.AU();O.vK(b)}else if(w=="obj "&&h){var j=e.G.akf,J=e.G.a4n,I="";O.add.TySh=eO.nR(0,0);var A=l.I2();
O.add.TySh.A.translate(l.RN,l.Sv);var a=O.add.TySh.HK,E=h.G.a75;for(var D=0;D<E.length;D++){var c=E[D],u=I.length;
I+=c.text+"\n";eO.kk(a,u,c.text+"\n");var n=fW.amh(c.aoX,S),o=eO.SZ(a,u,I.length);if(n.align==3)o.jm.Justification=1;
else o.jm.Justification=0;var x=n.fill.G;o.xp.FillColor={Type:1,Values:[1,x[0],x[1],x[2]]};o.xp.FontSize=Math.round(n.a0D.fontSize*l.I2());
eO.Yg(a,u,I.length-1,o)}if(J){eO.es(a,0)}else{eO.es(a,1);eO.oZ(a,[0,0,Math.round(j.x*l.w),Math.round(-j.y*l.KU)])}O.wc(I.slice(0,10))}else{O=null}if(O)b.t.push(O)};
fW.amh=function(Z,S){var b=fW.CO(S,"stlt").G,Y=JSON.parse(JSON.stringify(b._u[Z]));if(Y.sy!=0){var P=b._u[Y.sy];
for(var w in P)if(Y[w]==null||Y[w]==0)Y[w]=P[w];delete Y.sy}Y.align=b.akF[Y.a3K];Y.fill=S.s5[b.ah1[Y.ahn]];
Y.acl=S.u2[b.a4o[Y.a80]];Y.a0D=b.amc[Y.adv];return Y};fW.aeh=function(D){var C=D.data[D.n];D.n+=1;return C};
fW.mx=function(D){var C=k.ME(D.data,D.n);D.n+=2;return C};fW.aJ=function(D){var C=k.l2(D.data,D.n);D.n+=4;
return C};fW.a72=function(D){var C=k.l2(D.data,D.n);D.n+=8;return C};fW.$S=function(D){var C=k.gh(D.data,D.n);
D.n+=2;return C};fW.uU=function(D){var C=k.xq(D.data,D.n);D.n+=4;return C};fW.j4=function(D){var C=k.a2E(D.data,D.n);
D.n+=8;return C};fW.YM=function(D){if(D.n>=D.data.length)throw"e";var Z=0;while(D.data[D.n+Z]!=0)Z++;
var S=k.zG(D.data,D.n,Z);D.n+=Z+1;return S};fW.afo=function(Z){if(Z.YE<600)return Math.PI*fW.$S(Z)/1800;
return Math.PI*fW.uU(Z)/18e7};fW.abW=function(Z){if(Z.YE<1500)return fW.Mb(Z);else return fW.j4(Z)/254e3};
fW.Mb=function(Z){if(Z.YE<600)return fW.$S(Z)/1e3;else return fW.uU(Z)/254e3};fW.a4A=function(Z){if(Z.YE<600)return CRDParser.mx(Z);
else return fW.aJ(Z)};fW.a2I=function(Z){if(Z.YE<600)return CRDParser.$S(Z);else return fW.uU(Z)};fW.nl=function(Z,S,b,Y){var P=fW,w=P.aeh,f=P.mx,h=P.aJ,Q=P.a72,e=P.$S,l=P.uU,O=P.j4,m=P.Mb,V=P.abW,q=P.afo,K=P.a4A,z=P.a2I;
for(var t=0;t<S.length;t++){var H=Z.YE,i=S[t];Z.n=i.n+(i.sx=="LIST"?4:0);if(i.sx=="vrsn"){var y=f(Z);
Z.YE=y;console.log("Version",y);Z.fQ=y<600?16:32}else if(i.sx=="DISP"){}else if(i.sx=="LIST"&&i.Vh=="cmpr"){var j=h(Z),J=h(Z),A=h(Z),a=h(Z),I=new Uint8Array(Z.data.buffer,Z.n+8+2,j-6-8),E=pako.inflateRaw(I),o=0;
Z.n+=j;I=new Uint8Array(Z.data.buffer,Z.n+8+2);var c=pako.inflateRaw(I),u=[];for(var n=0;n<c.length;
n+=4)u.push(k.l2(c,n));i.sub=[];while(o<E.length){var x=e7.dC(E,o,u);o=x.n+x.size;i.sub.push(x)}var g={data:E,n:0,YE:H,fQ:Z.fQ};
fW.nl(g,i.sub,b,Y+1)}else if(i.sx=="LIST"&&i.Vh=="stlt"){var v=Z.n,bd=32;i.G={};var R=h(Z);if(R==0)return;
i.G.ah1=fW.QJ(Z,H>=1300);i.G.a4o=fW.QJ(Z);i.G.amc={};var X=h(Z);for(var D=0;D<X;D++){var B=h(Z);Z.n+=H<1e3?12:20;
var M=f(Z),r=f(Z);Z.n+=8;var N=m(Z);Z.n+=H<1e3?12:20;i.G.amc[B]={ah2:M,aow:r,fontSize:N}}i.G.akF=fW.QJ(Z);
var $=h(Z);Z.n+=52*$;var eQ=h(Z);Z.n+=152*eQ;var hN=h(Z);Z.n+=784*hN;var bI=h(Z);for(var D=0;D<bI;D++){Z.n+=40;
if(H>1300)Z.n+=4;if(H>=1300){if(h(Z))Z.n+=68;else Z.n+=12}else{Z.n+=20;if(H>=1e3)Z.n+=8;if(h(Z))Z.n+=8;
Z.n+=8}}var fq=h(Z);i.G.a9N={};for(var D=0;D<fq;D++){var e9=h(Z),W={};Z.n+=12;W.right=m(Z);W.a8Q=m(Z);
W.left=m(Z);i.G.a9N[e9]=W}var L=h(Z);if(H>=1300)bd+=4;Z.n+=bd*L;var iw=h(Z);Z.n+=28*iw;if(H>800){var d7=h(Z);
Z.n+=12*d7}i.G._u={};for(var D=0;D<R;D++){var d0=h(Z),gS=h(Z),cf={};cf.sy=h(Z);Z.n+=8;var cT=h(Z);if(H>=1200)cT*=2;
Z.n+=cT;cf.ahn=h(Z);cf.a80=h(Z);if(d0>1){cf.adv=h(Z);cf.a3K=h(Z);cf.aeI=h(Z);cf.a34=h(Z);if(H>800)cf.ah$=h(Z)}if(d0>2){cf.a7q=h(Z);
cf.an8=h(Z);cf.adP=h(Z);cf.a6X=h(Z);cf.a4$=h(Z)}i.G._u[gS]=cf}}else if(i.sx=="LIST")fW.nl(Z,i.sub,b,Y+1);
else if(i.sx=="txsm"){i.G={};if(H<600)throw"e";if(H<700)throw"e";if(H>=1600)throw"e";if(H>=1500)Z.n+=37;
else Z.n+=36;if(h(Z)){if(H<800)Z.n+=32}if(H<800)Z.n+=4;i.G.a5K=h(Z);i.G.a75=[];Z.n+=48;if(H>=800){if(h(Z)){Z.n+=32;
if(H>=1300)Z.n+=8}}if(H>=1500)Z.n+=12;var d0=h(Z),fU=1,dX=!1;if(!d0){if(H>=800)Z.n+=4;if(H>800)Z.n+=2;
if(H>=1400)Z.n+=2;Z.n+=24;if(H<800)Z.n+=8;fU=h(Z)}for(var n=0;n<fU;n++){var g$=h(Z),D=0;if(H>=1300&&d0)Z.n++;
Z.n++;var R=h(Z),bX=[];for(D=0;D<R;D++){var aw=w(Z),eG=0;w(Z);var hP=w(Z);if(H>=800)eG=w(Z);var cf={};
if(hP&1){cf.ah2=f(Z);var eB=f(Z);if(eB)cf.a2b=eB}if(hP&2)Z.n+=4;if(hP&4)cf.a4X=m(Z);if(hP&8)Z.n+=4;if(hP&16)Z.n+=4;
if(hP&32)Z.n+=4;if(hP&64){cf.ahn=h(Z);if(H>=1500)Z.n+=48}if(hP&128){cf.a80=h(Z)}if(eG&8){if(H>=1300){var bb=h(Z);
if(Z.n+bb*2>=Z.data.length){dX=!0;break}Z.n+=bb*2}else Z.n+=4}if(eG&32){var gx=w(Z);if(gx)Z.n+=52}if(aw==2)if(H>=1300)Z.n+=48;
bX.push(cf)}if(dX){break}var er=h(Z);if(Z.n+er*4>Z.data.length)break;var ea=[];for(D=0;D<er;D++){var hD=0;
if(H>=1200)hD=Q(Z)&4294967295;else hD=h(Z);ea[D]=hD>>16|hD&1}var bP=er;if(H>=1200)bP=h(Z);var iz=fW.YM(Z);
i.G.a75.push({aoX:g$,text:iz,_u:bX})}}else if(i.sx=="font"){var iq=f(Z),cU=f(Z);Z.n+=14;var aH=fW.YM(Z);
i.G={id:iq,adA:cU,name:aH}}else if(["IKEY","ICMT","pfrd","bcfg"].indexOf(i.sx)!=-1){}else if(i.sx=="flgs")i.G=h(Z);
else if(i.sx=="bbox"){var eK=m(Z),h6=m(Z),co=m(Z),dh=m(Z);i.G=new b4(eK,h6,co-eK,dh-h6)}else if(i.sx=="fild"){var cX=h(Z),eY=0,h0;
if(H>=1300){Z.n+=4;eY=f(Z);Z.n+=2}var ga=f(Z);if(ga==0){}else if(ga==1){Z.n+=H>=1300?13:2;h0=fW.R0(Z)}else if(ga==2){Z.n+=H>=1300?8:2;
var a8=w(Z),cc=0;if(H>=1300){Z.n+=17;cc=e(Z)}else if(H>=600){Z.n+=19;cc=l(Z)}else{Z.n+=11;cc=e(Z)}var hW=q(Z),em=.5+z(Z),br=.5+z(Z)-.5;
if(H>=600)Z.n+=2;var cF=K(Z)&255,cW=w(Z)/100;Z.n++;var bM=K(Z)&65535;if(H>=1300)Z.n+=3;var ct=[];for(var D=0;
D<bM;D++){var aQ=fW.R0(Z);if(H>=1300){if(eY==158||H>=1600&&eY==150)Z.n+=26;else Z.n+=5}var eA=K(Z)/100;
if(H>=1300)Z.n+=3;ct.push([eA,aQ])}h0={typ:a8==1?"lin":"rad",crds:[em-Math.cos(hW)/2,br-Math.sin(hW)/2,em,br],grad:ct,mat:[1,0,0,1,0,0]}}else console.log("Unknown fill type",ga);
i.G={id:cX,type:ga,G:h0}}else if(i.sx=="outl"){var gQ=h(Z);if(H>=1300){var eE=0,a1=0;while(eE!=1){Z.n+=a1;
eE=h(Z);a1=h(Z)}}var fA=f(Z),eH=f(Z),gd=f(Z);if(H<1300&&H>=600)Z.n+=2;var ey=m(Z),hx=f(Z)/100;if(H>=600)Z.n+=2;
var ew=q(Z);if(H>=1300)Z.n+=46;else if(H>=600)Z.n+=52;var h0=fW.R0(Z,gQ==270963208||gQ==276198e3,gQ);
i.G={id:gQ,aja:fA,a7w:eH,agu:gd,lineWidth:ey,color:h0}}else if(i.sx=="mcfg"){if(1300<=H)Z.n+=12;else if(900<=H)Z.n+=4;
else if(600<=H&&H<700)Z.n+=28;var am=0,dI=0;if(H<400)throw"e";else{am=m(Z);dI=m(Z)}i.G={ahD:new ar(am,dI)}}else if(i.sx=="loda"){var v=Z.n,bs=K(Z),fE=K(Z),gg=K(Z),bT=K(Z),aa=K(Z),gR=[],gb=[];
Z.n=v+gg;for(var D=0;D<fE;D++)gR[D]=K(Z);Z.n=v+bT;for(var D=fE-1;D>=0;D--)gb[D]=K(Z);i.G={};for(var D=0;
D<fE;D++){Z.n=v+gR[D];var bH=gb[D];if(bH==10)i.G.aiM=h(Z);else if(bH==20)i.G.a95=h(Z);else if(bH==200)i.G.a39=K(Z);
else if(bH==30){if(H<400)aa--;if(aa==1){var eK=V(Z),h6=V(Z),dW=0,cj=0,bm=0,ge=0;if(H<1500){ge=V(Z);bm=H<900?ge:V(Z);
cj=H<900?ge:V(Z);dW=H<900?ge:V(Z)}else throw"e";i.G.path=T.z.o5(T.Y.i9.Rect(0,0,eK,h6,dW))}else if(aa==2){var dc=m(Z),eT=m(Z),fg=q(Z),gL=q(Z),f4=Math.abs(dc),eu=Math.abs(eT);
i.G.path=T.z.o5(T.Y.i9.TN(0,0,f4,-eu))}else if(aa==3){i.G.path=fW.a0b(Z)}else if(aa==4){i.G.a4n=fW.a00(Z)}else if(aa==6){i.G.akf=fW.a0P(Z)}else if(aa==37){i.G.path=fW.LY(Z)}else console.log(aa)}}}else if(i.sx=="trfd"){var v=Z.n,bs=K(Z),fE=K(Z),gg=K(Z);
Z.n=v+gg;var gR=[];for(var D=0;D<fE;D++)gR[D]=K(Z);for(var D=0;D<fE;D++){Z.n=v+gR[D];if(H>=1300)Z.n+=8;
var f5=f(Z);if(f5==8){var bf,iL,eK,hB,aR,h6;if(H>=600)Z.n+=6;if(H>=500){bf=O(Z);iL=O(Z);eK=O(Z)/(H<600?1e3:254e3);
hB=O(Z);aR=O(Z);h6=O(Z)/(H<600?1e3:254e3)}else throw"e";i.Ig=new fR(bf,hB,iL,aR,eK,h6)}else console.log(f5)}}else if(!1){console.log(i);
var bJ=Math.min(i.size,32);console.log(k.LO(data,i.n,bJ));console.log(k.anM(data,i.n,bJ))}}};fW.QJ=function(Z,S){var b=fW.aJ,Y={},P=b(Z);
for(var D=0;D<P;D++){var w=b(Z);Z.n+=4;var f=b(Z);Y[w]=f;if(S)Z.n+=48}return Y};fW.a00=function(Z){var S=fW,b=S.Mb,Y=b(Z),P=b(Z);
return new ar(Y,P)};fW.a0P=function(Z){var S=fW,b=S.Mb;Z.n+=4;var Y=b(Z),P=b(Z);return new ar(Y,P)};
fW.LY=function(Z){var S=fW,b=S.aJ,Y=S.mx,P=S.Mb;Z.n+=4;var w=Y(Z)+Y(Z);Z.n+=16;var f=fW.Ty(Z,w);return f};
fW.a0b=function(Z){var S=fW.mx(Z);Z.n+=2;return fW.Ty(Z,S)};fW.Ty=function(Z,S){var b=fW,Y=b.Mb,P=Z.YE<600?2:4,w=Z.n,f={H:[],K:[]},h=0,Q=0,e=0;
for(var D=0;D<S;D++){var h=Y(Z),Q=Y(Z),l=Z.data[w+S*P*2+D];if(!(l&64)&&!(l&128)){f.H.push(h,Q);f.K.push("M");
e+=2}else if(l&64&&!(l&128)){f.H.push(h,Q);f.K.push("L");e+=2}else if(!(l&64)&&l&128){f.H.push(h,Q);
f.K.push("C");e+=6}else if(l&64&&l&128){f.H.push(h,Q)}}if(e!=f.H.length)throw"e";return f};fW.a7m=function(Z,S){var b=k.l2;
S+=8;var Y=b(Z,S);S+=4;var P=b(Z,S);S+=4;S+=4*7;var w=S,f=T.f(Y*P*4);S+=1024;for(var h=0;h<P;h++)for(var Q=0;
Q<Y;Q++){var D=h*Y+Q,e=(P-h-1)*Y+Q,l=Z[S+D]<<2,O=e<<2;f[O+0]=Z[w+l+2];f[O+1]=Z[w+l+1];f[O+2]=Z[w+l+0];
f[O+3]=255}return{j$:f,rect:new b4(0,0,Y,P)}};fW.am3=function(Z){if(Z==32)return 300;else if(Z<49)return 0;
else if(Z<58)return 100*(Z-48);else if(Z<65)return 0;return 100*(Z-55)};fW.R0=function(Z,S,b){var Y=fW.mx,P=fW.aJ,w=Z.YE,f=0,h=0;
if(w>=500){f=Y(Z);if(f==1&&w>=1300)f=25;if(f==25||f==30){var Q=0;if(f==30){f=25;Q=30}else{Q=Y(Z);Z.n+=4}var e=Y(Z),l=Y(Z)}else if(f==14)throw"e";
else{Z.n+=6;h=P(Z)}}else throw"e";var O=[];if(f==2||f==9||f==17){var m=[h>>>0&255,h>>>8&255,h>>>16&255,h>>>24&255];
if(f==2)for(var D=0;D<4;D++)m[D]=Math.round(255*m[D]/100);for(var D=0;D<4;D++)m[D]/=255;O=UDOC.C.cmykToRgb(m)}else if(f==1||f==5){O=[h>>>0&255,h>>>8&255,h>>>16&255];
for(var D=0;D<3;D++)O[D]=O[D]/255}else console.log("Unknown color model "+f,h,h.toString(16));return O};
var a9=function(){var Z,S,b=new ArrayBuffer(4),Y=new Uint8Array(b),P=new Uint32Array(b),w=new Float32Array(b);
function f(m,V){for(var q=0;q<m.length;q++)if(m[q][0]==V)return m[q]}function h(){var m=0,V=0,q=0;do{q=Z[S++];
m|=(q&127)<<V;V+=7}while(q&128&&V<35);return m>>>0}function Q(m,V,q,K,z){Z=m;S=V;var t=K[0]=="mesg",H=K[2],i={},y=1,j=t?1e9:H.length;
while(y<=j){var J=y;if(t){J=h();if(J==0)break}var A=f(H,J),a=A[2],I=A[1]==1,E=I?h():1,c=new Array(E);
if(a==3){if(!I)throw"e";c=Z.slice(S,S+E);S+=E}else for(var D=0;D<E;D++){var u;if((a&1)==1){if(a==1)u=Z[S++]==1;
else if(a==3)u=Z[S++];else if(a==5){var n=h();u=n&1?~(n>>>1):n>>>1}else if(a==7)u=h();else if(a==9){if(Z[S]==0){u=0;
S++}else{Y[0]=Z[S];Y[1]=Z[S+1];Y[2]=Z[S+2];Y[3]=Z[S+3];var o=P[0];P[0]=o<<23|o>>>9;u=w[0];S+=4}}else if(a==11){var x=e(Z,S);
u=x[0];S+=x[1]+1}else throw a}else{var g=q[a>>>1];if(g[0]=="enum"){var v=Z[S++];if(v>127)throw"e";u=g[2][v]}else{var R=Q(Z,S,q,g,z+1);
u=R[0];S=R[1]}}c[D]=u}i[A[3]]=I?c:c[0];y++}return[i,S]}function e(m,V){var q=V;while(m[q]!=0)q++;return[k.cP(m,V,q-V),q-V]}function l(m,V){var q=V;
while(m[q]!=0)q++;for(var D=V;D<q;D++)if(m[D]>127)throw"e";return k.zG(m,V,q-V)}function O(m){Z=m;S=1;
var V=[];while(S<m.length){var q=S,K=V.length,z=l(m,S);S+=z.length+1;var t=h();if(t>2)throw"e";var H=h(),i=[];
for(var D=0;D<H;D++){var y=l(m,S);S+=y.length+1;var j=h(),J=h(),A=h();i.push(t==0?y:[A,J,j,y])}V.push([["enum","strc","mesg"][t],z,i])}return V}return{aak:O,ahg:Q}}();
function dY(){}dY.Vq=function(Z,S){var b=new Uint8Array(Z),Y=8,P=k.l2(b,Y),e=0,g=0;Y+=4;var w=[];while(Y<b.length){var f=k.l2(b,Y);
Y+=4;var h=b.slice(Y,Y+f);if(b[Y]==137&&b[Y+1]==80){}else h=UZIP.inflateRaw(h);w.push(h);Y+=f}var Q=a9.aak(w[0]);
for(var D=0;D<Q.length;D++)if(Q[D][1]=="Message")e=D;var l=a9.ahg(w[1],0,Q,Q[e],0)[0],O={Rs:{},Kq:{},ahX:{}},m=l.nodeChanges;
for(var V=0;V<m.length;V++){var q=m[V],K=q.guid;O.Kq[K.sessionID+","+K.localID]=q}for(var V=0;V<m.length;
V++){var q=m[V],K=q.parentIndex;if(K){var z=dY.oT(O.Kq,K.guid);if(z.children==null)z.children=[];z.children.push(q)}}var t=m[0],H=t.children,i=new b4,y=[],j=[];
for(var K=0;K<H.length;K++){var J=H[K],A=J.children;if(J.name=="Internal Only Canvas"||A==null)continue;
var a=new b4;for(var D=0;D<A.length;D++){var I=A[D],E=I.transform,c=I.size;if(E.m00==1&&E.m10==0&&E.m01==0&&E.m11==1){var u=new b4(E.m02,E.m12,c.x,c.y);
a=a.VK(u)}}var n=i.v==0?0:i.v+100,o=a.clone();o.x=0;o.y=n;i=i.VK(o);y[K]=a;j[K]=n}var x=bl.c9(new b4(0,0,i.c,i.v),8192*8192);
S.c=Math.round(i.c/x);S.v=Math.round(i.v/x);S.buffer=T.f(S.c*S.v*4);for(var K=0;K<H.length;K++){var J=H[K],A=J.children;
if(J.name=="Internal Only Canvas"||A==null)continue;A.sort(dY.y0);var v=new fR(1,0,0,1,-y[K].x,j[K]-y[K].y);
v.scale(1/x,1/x);for(var D=0;D<A.length;D++){var I=A[D];dY.v$(I,[],v,l.blobs,S,0,O);g++}}S.wX(g);S.c3=!0;
if(x!=1)alert("File scaled down "+x+"x")};dY.v$=function(Z,S,b,Y,P,w,f){var h=dY,I=!1,E,c,n,o,x;for(var D=0;
D<S.length;D++){var Q=S[D],e=Q.guidPath.guids[0];if(h.anc(e,Z.guid)){var l={};for(var O in Z)l[O]=Q[O]!=null?Q[O]:Z[O];
Z=l}}var m=Z.type,V=Z.children,q=Z.size,K=Z.effects,z=P.Dl();z.wc(Z.name);z.Ba(Z.visible);z.opacity=Math.round(Z.opacity*255);
var t=h.Nw(Z.transform),H=t.clone();H.concat(b);var i=new b4(Math.round(H.RN),Math.round(H.Sv),Math.round(q.x*H.I2()),Math.round(q.y*H.I2())),y=Z.fillPaints,j=Z.inheritFillStyleID;
if(j){var l=h.oT(f.Kq,j);if(l)y=l.fillPaints}if(y==null)y=[];var y=h.h5(y),J=y[0],A=Z.strokePaints,j=Z.inheritFillStyleIDForStroke;
if(j){var l=h.oT(f.Kq,j);if(l)A=l.fillPaints}if(A==null)A=[];var A=h.h5(A),a="BOOLEAN_OPERATION LINE RECTANGLE ROUNDED_RECTANGLE ELLIPSE VECTOR REGULAR_POLYGON".split(" ").indexOf(m)!=-1;
if(a||m=="FRAME"){E=new F.NS;c=[];h.UE(Z,Y,E,c);I=T.Y.sQ(E.b);T.Y.$d(E.b,H);i=T.z.gO(T.Y.Al(E.b));if(f.Rs.$h&&J){var u=F.NS.OU(f.Rs.$h.b);
for(var D=2;D<u.length;D++)if(u[D].qU!=null)u[D].qU=3;E.b=E.b.concat(u.slice(2));c=c.concat(JSON.parse(JSON.stringify(f.Rs.AZ)))}}if(J&&J.type=="IMAGE"){x=J.imageScaleMode;
n=h.Zd(Y,J.image.dataBlob);var g=n.Vl.c/n.Vl.v,v=q.x/q.y;o=Math.abs(g-v)}if(m=="FRAME"){}else if(a&&I&&n&&(x=="FIT"||x=="FILL"&&o<=.05)){var R=Y[J.image.dataBlob].bytes,X=P.CL(R,z.getName(),0,0);
X.NG=z.NG;X.opacity=z.opacity;z=X;var B=new b4(0,0,q.x,q.y);if(x=="FIT"){var M=n.Vl.c,r=n.Vl.v,N=Math.min(q.x/M,q.y/r),$=M*N,eQ=r*N;
B=new b4(B.x+(B.c-$)/2,B.y+(B.v-eQ)/2,$,eQ)}var hN=T.z.X6(B).H;T.z.A(hN,H,hN);z.add.SoLd.Trnf=G.V.ab(hN);
z.add.SoLd.nonAffineTransform=G.V.ab(hN);var bI=[],K=Z.effects,fq=J.paintFilter;if(K)for(var D=0;D<K.length;
D++)if(K[D].type=="FOREGROUND_BLUR"){var e9=K[D],W=cL.VV("GsnB",{});bI.push(W);W.v.enab.v=e9.visible;
W.v.Fltr.v.Rds.v.val=e9.radius/2.4}if(fq&&fq.exposure!=0){var W=cL.VV("brit",{});bI.push(W);W.v.Fltr.v.Brgh.v=Math.round(fq.exposure*160);
W.v.Fltr.v.useLegacy.v=!0}if(bI.length!=0){z.add.SoLd.filterFX=cL.Wd();P.HM({id:z.add.SoLd.placed.v,rect:new b4,buffer:T.f(1),d:new F.bN});
z.add.SoLd.filterFX.v.filterFXList.v=bI}z.JN(P,!1);h.RB(f,z,P)}else if(a){h.Nf(z,c,E,Z,J,H,i,Y,P,f);
var L=h.Oo(Z,A[0],H,i,Y,P,f);if(L[0]!="None"){var bd=z.add.vstk;bd.strokeEnabled.v=!0;bd.strokeStyleLineWidth.v.val=Z.strokeWeight*H.I2();
bd.strokeStyleLineAlignment.v.strokeStyleLineAlignment=a4.m3.ie[["INSIDE","CENTER","OUTSIDE"].indexOf(Z.strokeAlign)];
var iw={SoCo:"SoFi",GdFl:"GrFl"}[L[0]],d7=["SoFi","GrFl","patternFill"].indexOf(iw),d0=[a4.pe,a4.xz,a4.jl][d7];
bd.strokeStyleContent.v={classID:a4.m3.Vh[0]};bd.strokeStyleLineDashSet.v=eg.Fr(Z.dashPattern,1/Z.strokeWeight);
var gS=bd.strokeStyleContent.v={classID:a4.m3.Vh[d7]};for(var D=0;D<d0.length;D++)gS[d0[D]]=L[1][d0[D]]}if(K)for(var D=0;
D<K.length;D++){var e9=K[D];if(e9.type!="FOREGROUND_BLUR")continue;E.Mt=e9.radius/2.4}z.vK(P)}else if(m=="TEXT"){var cf=Z.textData,cT=cf.layoutSize,fU=["LEFT","RIGHT","CENTER"].indexOf(Z.textAlignHorizontal);
z.add.lnsr="rend";z.add.TySh=eO.nR(0,0);z.add.TySh.az=new b4(0,0,100,100);var dX=H.clone();z.add.TySh.A=dX;
var g$=z.add.TySh.HK,bX=cf.characters;if(Z.textCase=="TITLE"){for(var D=0;D<bX.length;D++)if(D==0||bX[D-1]==" "){var aw=bX.slice(0,D),hP=bX.slice(D+1);
bX=aw+bX[D].toUpperCase()+hP}}bX=bX.replace(/\u2028/g,"\n");bX=bX.replace(/\u2029/g,"\n");bX=bX.replace(/\r/g,"\n");
eO.kk(g$,0,bX);var eG=Z.textAutoResize,eB=cf.baselines;if(eG=="WIDTH_AND_HEIGHT"){var bb=fU==0?0:fU==1?cT.x:cT.x/2,gx=eB?eB[0].position.y:0;
dX.translate(bb*H.I2(),gx*H.I2());eO.es(g$,0)}else if(eG=="HEIGHT"||eG=="NONE"||eG==null){var gx=eB?eB[0].position.y-Z.fontSize*.7:0;
dX.translate(0,gx*H.I2());eO.es(g$,1);eO.oZ(g$,[0,0,Math.round(cT.x),Math.round(1.2*cT.y)])}else throw eG;
if(bX!=""){var er=eO.SZ(g$,0,1);h.$l(Z,H,q,er,z,Y,P,f);eO.Yg(g$,0,bX.length,er);var ea=cf.characterStyleIDs,hD=cf.styleOverrideTable;
if(ea){ea=ea.slice(0);for(var D=0;D<ea.length;D++)if(bX[D]=="\n")ea[D]=-D-1;var bP=[0],iz=0,iq=0;for(var D=0;
D<ea.length;D++){iq++;var cU=ea[D];if(D==0||cU==ea[D-1]){}else{bP.push(iq-1,D);iq=1}}bP.push(iq);for(var D=0;
D<bP.length;D+=2){var aH=bP[D],eK=bP[D+1];if(bX[aH]=="\n")continue;var cU=ea[aH];if(cU!=0){var h6;for(var co=0;
co<hD.length;co++)if(hD[co].styleID==cU)h6=hD[co];var er=eO.SZ(g$,aH,aH+1);h.$l(h6,H,q,er,z,Y,P,f);eO.Yg(g$,aH,aH+eK,er)}}}}}else if(m=="SYMBOL"){}else if(m=="INSTANCE"){var dh=Z.symbolData,cX=dh.symbolOverrides,l=h.oT(f.Kq,dh.symbolID);
if(l)V=l.children;else console.log(Z.name,"symbol not found",dh.symbolID);S=S.slice(0);for(var D=0;D<cX.length;
D++)S.push(cX[D])}else console.log(m);if(!1){}else if(V&&!a){P.t.push(P._z());var eY=!1;if(w==0&&m!="SYMBOL"&&m!="INSTANCE"){z.PB(i);
var ga=y?y[0]:null;if(ga&&ga.type=="SOLID"){var h0=ga.color;z.add.artb.artboardBackgroundType.v=4;z.add.artb.Clr=h.R0(h0)}}else if(J&&E){var a8=P.Dl();
a8.wc("Background");h.Nf(a8,c,E,Z,J,H,i,Y,P,f);a8.vK(P);P.t.push(a8);eY=!0}V.sort(h.y0);var cc=f.Rs;
f.Rs={};for(var hW=0;hW<V.length;hW++)h.v$(V[hW],S,H,Y,P,w+1,f);f.Rs=cc;z.add.lsct=!1?fr.k8:fr.U1;z.WL="pass";
var em=z._7();z.NG=24;z.Ba(em);var br=w!=0&&y.length!=0&&!Z.frameMaskDisabled&&Z.containerSupportsFillStrokeAndCorners;
if(!eY&&br&&E){z.add.vmsk=E;z.add.vogk=c;z.vK(P)}else h.RB(f,z,P);P.t.push(z)}else if(Z.mask){if(E){f.Rs.$h=E;
f.Rs.AZ=c}}else{var cF=[],eE=1;if(K)for(var cW=0;cW<K.length;cW++){var e9=K[cW],bM=e9.color,ct=e9.type,aQ=["DROP_SHADOW","INNER_SHADOW"].indexOf(ct);
if(aQ!=-1){var eA=["DrSh","IrSh"][aQ],gQ=JSON.parse(a4.FT[a4.order.indexOf(eA)]);cF.push([eA,gQ]);gQ.enab.v=e9.visible;
gQ.Md.v.BlnM=is.QT(h.aaH(e9.blendMode));gQ.Opct.v.val=Math.round(100*bM.a);gQ.blur.v.val=Math.round(e9.radius*H.I2());
gQ.Clr=h.R0(bM);var bb=e9.offset.x,gx=e9.offset.y;gQ.uglg.v=!1;gQ.lagl.v.val=Math.round(180/Math.PI*Math.atan2(gx,-bb));
gQ.Dstn.v.val=Math.round(Math.sqrt(bb*bb+gx*gx)*H.I2())}}if(m=="TEXT"&&y[0]&&y[0].type!="SOLID")eE=0;
for(var D=eE;D<y.length;D++){var a1=y[D],fA=h.Oo(Z,a1,H,i,Y,P,f);if(fA[0]=="GdFl")cF.push(["GrFl",fA[1]]);
else if(fA[0]=="SoCo")cF.push(["SoFi",fA[1]]);else if(fA[0]=="PtFl")cF.push(["patternFill",fA[1]]);else throw fA}if(cF.length!=0){var eH=JSON.parse(a4.default);
for(var D=0;D<a4.order.length;D++)eH[a4.Ol[D]]={t:"VlLs",v:[]};for(var D=0;D<cF.length;D++){var gd=cF[D],eA=a4.Ol[a4.order.indexOf(gd[0])];
eH[eA].v.unshift({t:"Objc",v:gd[1]})}if(V==null)z.add.lmfx=eH}P.t.push(z)}};dY.Nf=function(Z,S,b,Y,P,w,f,h,Q,e){var l=dY;
Z.NG|=16;Z.add.vogk=S;Z.add.vmsk=b;var O=Z.add.vstk=JSON.parse(JSON.stringify(a4.m3.default)),m=l.Oo(Y,P,w,f,h,Q,e);
if(m[0]=="None"){O.fillEnabled.v=!1;Z.add.SoCo=m[1]}else{var V=m[1].Opct.v.val;if(V!=100)Z.opacity=Math.round(Z.opacity/255*(V/100)*255);
Z.add[m[0]]=m[1]}};dY.y0=function(Z,S){var b=Z.parentIndex.position,Y=S.parentIndex.position;return b>Y?1:-1};
dY.h5=function(Z){for(var D=1;D<Z.length;D++){var S=Z[D];if(S.type=="IMAGE"&&S.opacity==1){Z=Z.slice(D);
break}}for(var D=0;D<Z.length;D++){var S=Z[D],b=S.imageThumbnail;if(S.type=="IMAGE"&&S.image.dataBlob==null&&b&&b.dataBlob)S.image=b;
if(!S.visible||S.type=="IMAGE"&&S.image.dataBlob==null){Z.splice(D,1);D--}}return Z};dY.RB=function(Z,S,b){if(Z.Rs.$h){S.add.vmsk=Z.Rs.$h.clone();
S.add.vogk=JSON.parse(JSON.stringify(Z.Rs.AZ));S.vK(b)}};dY.$l=function(Z,S,b,Y,P,w,f,h){var Q=Z.fontSize,e=Z.lineHeight,l=Z.fontName,O=Z.textAlignHorizontal,m=Z.textTracking,V=Z.textCase;
if(Q==null)Q=Y.xp.FontSize;if(l)eO.FK(Y,l.postscript);if(Q!=null)Y.xp.FontSize=Math.round(Q);if(m)Y.xp.Tracking=Math.round(m*1e3);
if(V)Y.xp.FontCaps=V=="UPPER"?2:0;if(e&&(e.units!="PERCENT"||e.value!=100)){if(Q==null)Q=15;var q=e.value;
if(e.units=="PERCENT")q=1*Q*q/100;if(e.units=="RAW")q=1*Q*q;Y.xp.AutoLeading=!1;Y.xp.Leading=Math.round(q)}if(O)Y.jm.Justification=["LEFT","RIGHT","CENTER"].indexOf(O);
var K=Z.fillPaints,z=Z.inheritFillStyleID;if(z){var t=dY.oT(h.Kq,z);if(t)K=t.fillPaints}if(K&&K[0]){var H=dY.Oo(Z,K[0],S,b,w,f,h);
if(H[0]=="SoCo"){var i=T.W.CD(H[1].Clr.v);Y.xp.FillColor={Type:1,Values:[1,i.h/255,i.l/255,i.O/255]};
P.opacity=Math.round(P.opacity/255*(H[1].Opct.v.val/100)*255)}}};dY.Oo=function(Z,S,b,Y,P,w,f){var h=dY,Q,e,l=Z.size;
if(S){var O=S.type,m=["GRADIENT_LINEAR","GRADIENT_RADIAL","GRADIENT_DIAMOND","GRADIENT_ANGULAR"].indexOf(O);
if(O=="SOLID"){Q="SoCo";var V=S.color;e=JSON.parse(a4.FT[a4.order.indexOf("SoFi")]);e.Clr=h.R0(V)}else if(m!=-1){var q=JSON.parse(a4.FT[a4.order.indexOf("GrFl")]),K=q.Grad.v;
K.Intr.v=0;q.Type.v.GrdT=["Lnr","Rdl","Dmnd","Angl"][m];var z=[],t=S.stops;for(var D=0;D<t.length;D++){var H=t[D],i=H.color;
z.push([H.position,[i.r,i.g,i.b],i.a])}T.W.nu(z,K);var y=h.Nw(S.transform);y.oN();var j=y.clone();if(l)j.scale(l.x,l.y);
j.concat(b);var J=new ar(0,.5),A=new ar(1,.5);J=j.YI(J);A=j.YI(A);if(!0){J.x=A.x+.5*(J.x-A.x);J.y=A.y+.5*(J.y-A.y)}T.W.Vu(J,A,Y,q);
if(m==3){if(j.w*j.KU-j.O*j.tE<0)q.Rvrs.v=!q.Rvrs.v}Q="GdFl";e=q}else if(O=="IMAGE"){var q=JSON.parse(a4.FT[a4.order.indexOf("patternFill")]),a=q.phase.v,I=S.image.dataBlob,E=f.ahX[I],X=1;
if(E==null){var c=h.Zd(P,I);E=f.ahX[I]={};E.id=gf.uc()+"-d71c-11e5-b1ae-a548a96e5f9f";E.jL=[new Uint8Array(c.data),c.Vl];
E.name="someImage";w.ij(E)}q.Algn.v=!0;q.Ptrn.v.Idnt.v=E.id;var u=b.RN,n=b.Sv,o=S.imageScaleMode,y=h.Nw(S.transform);
y.oN();var x=Y.c,g=Y.v,v=E.jL[1].c,R=E.jL[1].v;if(o=="FILL"){X=Math.max(x/v,g/R);X=Math.round(X*100)/100}else if(o=="FIT"){X=Math.min(x/v,g/R);
X=Math.round(X*100)/100}else if(o=="STRETCH"){var B=x*y.w,M=g*y.KU;X=.5*(B/v+M/R);X=Math.round(X*100)/100;
u+=(B-x)/2+y.RN*x;n+=(M-g)/2+y.Sv*g}else if(o=="TILE"){X=S.scale;X=Math.round(X*100)/100;u+=(B-x)/2;
n+=(M-g)/2}var r=X*v,N=X*R;u+=-(r-x)/2;n+=-(N-g)/2;q.Scl.v.val=Math.round(100*X);a.Hrzn.v=Math.round(u);
a.Vrtc.v=Math.round(n);Q="PtFl";e=q}else throw O;if(e)e.Opct={t:"UntF",v:{type:"#Prc",val:Math.round(S.opacity*100)}}}else{Q="None";
e={classID:"null",Clr:{t:"Objc",v:T.W.RQ({h:0,l:0,O:0})}}}return[Q,e]};dY.Zd=function(Z,S){var b=Z[S];
if(b.rslt)return b.rslt;var Y=b.bytes.buffer,P=ab.fN(Y),w=ab.iZ(P);try{b.rslt=w.Gk(Y)[0]}catch(aV){b.rslt={data:T.f(4),Vl:new b4(0,0,1,1)}}return b.rslt};
dY.UE=function(Z,S,b,Y){var P=Z.type,w=Z.size,f=Z.cornerRadius,O;if(f==null)f=0;var h=T.AZ.Nv(),Q=w.x,e=w.y,l=[f,f,f,f],m=["rectangleTopLeftCornerRadius","rectangleTopRightCornerRadius","rectangleBottomRightCornerRadius","rectangleBottomLeftCornerRadius"];
for(var D=0;D<4;D++)if(Z[m[D]]!=null)l[D]=Z[m[D]];if(P=="RECTANGLE"||P=="ROUNDED_RECTANGLE"||P=="FRAME"){O=T.Y.i9.Rect(0,0,Q,e,l)}else if(P=="ELLIPSE"){var V=Z.arcData,q=V?V.startingAngle:0,K=V?V.endingAngle:2*Math.PI,z=V?V.innerRadius:0;
if(q==0&&K>1.999*Math.PI)O=T.Y.i9.TN(0,0,Q,e,0);else O=T.Y.i9.ahp(Q/2,e/2,e/2,q,K);if(z!=0&&z!=1){var t=F.NS.OU(O).slice(3);
t.reverse();for(var D=0;D<t.length;D++){var H=t[D],i=H.hQ;H.hQ=H.e$;H.e$=i}var y=new fR;y.translate(-Q/2,-e/2);
y.scale(z,z);y.translate(Q/2,e/2);T.Y.$d(t,y);O=O.concat(t);O[2].length*=2}}else if(P=="LINE"){O=T.Y.i9.Rect(0,0,Q,e,0);
O.pop();O.pop();O[2].length=2}else if(P=="REGULAR_POLYGON"){O=T.Y.i9.Fm(.5,.5,.5,Math.PI/2,Z.count,0);
var j=new fR;j.scale(Q,e);T.Y.$d(O,j)}else if(P=="BOOLEAN_OPERATION"){O=[{type:6},{type:8,all:0}];var J=Z.children,A=["XOR","UNION","SUBTRACT","INTERSECT"].indexOf(Z.booleanOperation);
if(A==-1)throw Z;if(J==null)J=[];for(var D=0;D<J.length;D++){var a=J[D],I=new F.NS,E=[],c=dY.UE(a,S,I,E);
if(I.b==null)continue;T.Y.$d(I.b,dY.Nw(a.transform));O=O.concat(I.b.slice(2));for(var u=0;u<E.length;
u++)Y.push(E[u])}for(var D=3;D<O.length;D++)if(O[D].qU!=null)O[D].qU=A;h=null}else if(P=="VECTOR"){var n,o;
if(!0){var x=Z.vectorData;n=x.normalizedSize;o=x.vectorNetworkBlob}else{n=w;o=gg[0].commandsBlob;console.log(gg)}var g=S[o].bytes,v=new Uint32Array(g.buffer),R=new Float32Array(g.buffer),B=v[0],M=v[1],r=[];
for(var D=0;D<B;D++){var N=3+D*3,$=new ar(R[N+1],R[N+2]);r.push($)}var eQ=[],hN=3+B*3;for(var D=0;D<M;
D++){var bI=hN+D*7,fq=v[bI+1],e9=v[bI+4];eQ.push([fq,e9,R[bI+2],R[bI+3],R[bI+5],R[bI+6]])}var W=-1;for(var D=0;
D<M;D++){if(W==-1){}else{var L=-1;for(var u=D;u<M;u++)if(eQ[u][1]==W)L=u;for(var u=D;u<M;u++)if(eQ[u][0]==W)L=u;
if(L!=-1){var bd=0,i=eQ[L];eQ[L]=eQ[D];eQ[D]=i;if(i[0]!=W){bd=i[0];i[0]=i[1];i[1]=bd;bd=i[2];i[2]=i[4];
i[4]=bd;bd=i[3];i[3]=i[5];i[5]=bd}}}W=eQ[D][1]}var iw=[],d7=[],d0=-1;W=-1;for(var D=0;D<M;D++){var gS=eQ[D],fq=gS[0],e9=gS[1],cf=r[fq],cT=r[e9];
if(W!=fq){d7.push("M");iw.push(cf.x,cf.y);d0=fq}iw.push(cf.x+gS[2],cf.y+gS[3]);iw.push(cT.x+gS[4],cT.y+gS[5]);
d7.push("C");iw.push(cT.x,cT.y);W=e9;if(d0==e9){d7.push("Z");d0=W=-1}}O=T.z.Cp({H:iw,K:d7},!0);if(f!=0){var l=[],fU=O[2].length;
for(var D=0;D<fU;D++)l.push(f);if(T.Y.ga(O))T.Y.ns(O,2,l)}var dX=new fR;dX.scale(n.x==0?1:w.x/n.x,n.y==0?1:w.y/n.y);
T.Y.$d(O,dX)}b.b=O;if(h)Y.push(h)};dY.oT=function(Z,S){return Z[S.sessionID+","+S.localID]};dY.anc=function(Z,S){return Z.sessionID==S.sessionID&&Z.localID==S.localID};
dY.aaH=function(Z){var S={NORMAL:"norm",MULTIPLY:"mul ",SCREEN:"scrn",COLOR_DODGE:"div "}[Z];if(S==null)throw Z;
return S};dY.R0=function(Z){return{t:"Objc",v:T.W.RQ({h:Z.r*255,l:Z.g*255,O:Z.b*255})}};dY.Nw=function(Z){var S=[Z.m00,Z.m10,Z.m01,Z.m11,Z.m02,Z.m12];
for(var D=0;D<6;D++)if(Math.abs(S[D])<1e-20)S[D]=0;return new fR(S[0],S[1],S[2],S[3],S[4],S[5])};function fo(){}fo.Vq=function(){var Z=k.zG;
function S(m,V,q,K){var z=K?[]:{};while(V<m.length-1&&m[V]!=125){var t=Z(m,V,3),H=Z(m,V+3,1),i;V+=4;
V++;if(H=="v"){var y=S(m,V,q+1,t=="ELM"||t=="TIL");i=y.G;V=y.n}else if(H=="i"||H=="f"){var j=V;while(m[j]!=125)j++;
var J=Z(m,V,j-V);i=H=="i"?parseInt(J,16):parseFloat(J);V=j+1}else if(H=="s"){var A=k.gU(m,V),J="";V+=2;
for(var D=0;D<A;D++)J+=String.fromCharCode(m[V+2*D+1]);i=J;V=V+2*A+1}else if(H=="b"){i=m[V]==49;V=V+2}else throw"e";
if(K)z.push([t,i]);else if(z[t]==null)z[t]=i;else{if(!(z[t]instanceof Array))z[t]=[z[t]];z[t].push(i)}}V++;
return{G:z,n:V}}function b(m,V){var q=Y(m).slice(1),m=V.Clr.v;m.Rd.v=q[0]*255;m.Grn.v=q[1]*255;m.Bl.v=q[2]*255}function Y(m){return[(m>>>24&255)/255,(m>>>16&255)/255,(m>>>8&255)/255,(m>>>0&255)/255]}function P(m,V){var q=V&4278190080|(V&255)<<16|(V>>>8&255)<<8|V>>>16&255;
new Uint32Array(m.buffer).fill(q)}function w(m,V){var q=m.TSZ,K=m.WPX,z=m.HPX,t=m.TIL,H=new b4(0,0,K,z),i=T.f(K*z*4),y=0;
for(var j=0;j<z;j+=q)for(var J=0;J<K;J+=q){var A=new b4(J,j,q,q),a,I=t[y];if(I[0]=="TMC"){a=T.f(A.X()*4);
P(a,I[1])}else if(I[0]=="TID"){a=V[I[1]]}T.uH(a,A,i,H);y++}return[i,H]}function f(m,V){m=new Uint8Array(m);
var q=8,K,z={};while(q<m.length){var t=k.r(m,q);q+=4;var H=Z(m,q,4);q+=4;if(H=="mkTS"){var i=pako.inflate(m.slice(q,q+t)),y=S(i,0,0);
K=y.G}else if(H=="mkBT"){var j=k.r(m,q+4),J=k.r(m,q+8),i=pako.inflate(m.slice(q+76,q+t));if(J==0)for(var D=0;
D<i.length;D+=4){var A=i[D],a=i[D+1],I=i[D+2],E=i[D+3];i[D+3]=A;i[D+2]=E;i[D+1]=I;i[D]=a}else{var c=T.f(i.length*4);
c.fill(255);T.zf(i,c);i=c}z[j]=i}q+=t+4}var u=K.PDC?K.PDC:K.MKB,n=u.WID,o=u.HIT,x=u.BGC;V.c=n;V.v=o;
if(x>>>24!=0){var g=V.Dl();g.wc("Background");V.t.push(g);g.rect=new b4(0,0,n,o);g.buffer=T.f(g.rect.X()*4);
P(g.buffer,x)}var v=(u.LYL?u:K).LYL.LAY;for(var D=0;D<v.length;D++)Q(v[D],V,null,z)}function h(m,V,q){var K=m[V];
return K instanceof Array?K[q]:K}function Q(m,V,q,K){var z=V.Dl();if(m.VIS!=null)z.Ba(m.VIS);if(m.VIF!=null)z.Ba(m.VIF.VIS);
if(m.OPA!=null)z.opacity=Math.round(255*m.OPA/1e3);z.WL=m.CLL||q=="GRP"?"pass":"norm";if(m.BLD!=null){var t=m.BLD,H={"0":"norm","2":"mul ","5":"scrn","7":"diss","9":"dark","10":"lite","37":"idiv","30":"norm","39":"lbrn","41":"vLit"}[t+""];
if(H==null)console.log(m.OBN,t);else z.WL=H;if(t==30)z.opacity>>>=1}if(m.CLL){z.wc(m.LNM);V.t.push(V._z());
var i=m.CLL.CEL.ELM;for(var D=i.length-1;D>=0;D--)Q(i[D][1],V,i[D][0],K);z.add.lsct=m.DIS?fr.k8:fr.U1;
z.NG|=24}else if(q=="GRP"){var y=z.add.lmfx=e(m.EFL),j;V.t.push(V._z());var i=m.ELM;if(m.MNA&&m.MRX){j=i[0][1];
i=i.slice(1)}z.wc("Group: "+i.length+" objects");for(var D=i.length-1;D>=0;D--)Q(i[D][1],V,i[D][0],K);
if(j){var J=w(j,K),A=z.d=new F.bN;A.rect=J[1].clone();A.rect.x=j.XLC;A.rect.y=j.YLC;A.channel=T.f(A.rect.X());
T.to(J[0],A.channel,0);T.oN(A.channel)}z.add.lsct=fr.U1;z.NG|=24}else if(q=="IMG"){z.wc(m.OBN?m.OBN:"Bitmap");
var J=w(m,K);z.rect=J[1].clone();z.rect.x=m.XLC;z.rect.y=m.YLC;z.buffer=J[0]}else if(q=="TXT"){var a=m.TFS,I=a.TRN instanceof Array?a.TRN.length:1,n="";
z.add.lnsr="rend";z.add.TySh=eO.nR(0,0);z.add.TySh.az=new b4(0,0,100,100);var E=new fR(1,0,0,1,m.LFT,m.TOP);
if(m.MTX){var c=m.MTX,A=new fR(c.M00,c.M01,c.M10,c.M11,c.M20,c.M21);E.concat(A)}z.add.TySh.A=E;var u=z.add.TySh.HK;
for(var D=0;D<I;D++){var o=h(a,"TRN",D);eO.kk(u,n.length,o);var x=eO.SZ(u,0,1);eO.FK(x,h(a,"FON",D));
x.xp.FontSize=Math.round(h(a,"PTS",D));var g=h(a,"FCL",D);x.xp.FillColor={Type:1,Values:Y(g)};eO.Yg(u,n.length,n.length+o.length,x);
n+=o}z.wc(n.slice(0,255));var v=m.RIT-m.LFT,R=m.BOT-m.TOP;if(m.IMG){Q(m.IMG,V,"IMG",K);var X=V.t.pop();
z.buffer=X.buffer;z.rect=X.rect}eO.es(u,1);eO.oZ(u,[0,0,v,R])}else if(q=="PTH"){z.wc(m.OBN?m.OBN:"Path");
z.NG|=16;var B=!1,M=z.add.vmsk=new F.NS,N=z.add.vstk=JSON.parse(JSON.stringify(a4.m3.default)),y=z.add.lmfx=e(m.EFL,M),$=m.PBL.PBP;
if(!($ instanceof Array))$=[$];for(var eQ=0;eQ<$.length;eQ++){var hN=$[eQ].PBT,bI=$[eQ].ISC?0:3;M.b.push({type:bI,length:hN.length,qU:0,oY:2,uT:0,Y9:0});
for(var D=0;D<hN.length;D++){var fq=hN[D],e9=fq.XLC,W=fq.YLC,L=[e9,W,e9,W,e9,W],bd="XPC YPC XLC YLC XSC YSC".split(" ");
for(var iw=0;iw<6;iw++){var d7=bd[iw],d0=fq[d7];if(d0!=null)L[iw]=d0}M.b.push({type:bI+2,I:new ar(e9,W),hQ:new ar(L[0],L[1]),e$:new ar(L[4],L[5])})}}z.AU();
var gS=T.Y.Al(M.b),cf=m.PAT,cT=cf.BPL,fU=cf.FPL,dX=cf.TXF;if(fU&&fU.FEF)M.Mt+=fU.FEF/2.4;if(cT){var g$=cT.CAT;
N.strokeEnabled.v=!0;N.strokeStyleLineWidth.v.val=cT.BDI;if(cT.BDI==1)N.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignInside";
b(cf.BCL,N.strokeStyleContent.v);if(g$!="bc_Basic"&&g$!="bc_Pencil")B=!0}if(fU==null){N.fillEnabled.v=!1;
z.add.SoCo=JSON.parse(a4.FT[a4.order.indexOf("SoFi")]);b(0,z.add.SoCo)}else if(fU.CAT=="fc_Solid"){z.add.SoCo=JSON.parse(a4.FT[a4.order.indexOf("SoFi")]);
b(m.PAT.FCL,z.add.SoCo)}else if(fU.CAT=="fc_Linear"||fU.CAT=="fc_Circular"||fU.CAT=="fc_Elliptical"){var bX=fU.CAT=="fc_Linear",aw=z.add.GdFl=JSON.parse(a4.FT[a4.order.indexOf("GrFl")]),hP=aw.Grad.v,eG=[],eB=fU.FGL.FGY,bd=eB.FG0.FGI,bb=eB.FG1.FGI;
for(var D=0;D<bd.length;D++){var gx=bd[D],er=Y(gx.FGC),ea=1;if(bb.length==bd.length)ea=Y(bb[D].FGC)[0];
eG.push([gx.FGP,er.slice(1),ea])}aw.Type.v.GrdT=bX?"Lnr":"Rdl";T.W.nu(eG,hP);hP.Intr.v=0;var hD=m.PRI?m.PRI:m,bP=new ar(hD.PSX,hD.PSY),iz=new ar(hD.PEX,hD.PEY);
if(fU.CAT=="fc_Elliptical"&&hD.PFX!=null){var iq=new ar(hD.PFX,hD.PFY),cU=ar.VA(bP,iz),aH=ar.VA(bP,iq);
if(aH<cU){var eK=cU;cU=aH;aH=eK}iz=new ar(bP.x+(cU+aH)/2,bP.y);if(cU/aH<.5)B=!0}if(bX){bP.x=(bP.x+iz.x)/2;
bP.y=(bP.y+iz.y)/2}T.W.Vu(bP,iz,gS,aw)}else console.log(fU.CAT);if(fU&&fU.FTB!=0){var J=w(dX.MSK,K),h6={};
h6.id=gf.uc()+"-d71c-11e5-b1ae-a548a96e5f9f";h6.name="someImage";h6.jL=J;V.ij(h6);var co=J[0];for(var D=0;
D<co.length;D+=4){co[D+3]=255-co[D];co[D]=co[D+1]=co[D+2]=255}var aw=JSON.parse(a4.FT[a4.order.indexOf("patternFill")]);
aw.Opct.v.val=Math.round(fU.FTB/10);aw.Algn.v=!0;aw.Ptrn.v.Idnt.v=h6.id;y.patternFillMulti.v.unshift({t:"Objc",v:aw})}if(B&&m.IMG){Q(m.IMG,V,"IMG",K);
var dh=V.t[V.t.length-1];dh.opacity=z.opacity;return}z.vK(V)}else console.log("unknown layer type",q,m);
V.t.push(z)}function e(m,V){var q=JSON.parse(a4.default);for(var D=0;D<a4.order.length;D++)q[a4.Ol[D]]={t:"VlLs",v:[]};
if(m==null)return q;var K=m.EPS;if(!(K instanceof Array))K=[K];for(var D=0;D<K.length;D++){var z=K[D].DCE,t={};
for(var H=0;H<z.length;H++)t[z[H].DCK]=z[H].DCV;if(t.EffectIsVisible=="false")continue;var i=t.mkbFile_WriteOnly_TemporaryEffectUiName;
if(i=="Gaussian Blur..."&&V){V.Mt+=parseFloat(t.gaussian_blur_radius);continue}var y=["Drop Shadow","Inner Bevel","Inner Glow"].indexOf(i);
if(y==-1){continue}var j=["DrSh","ebbl","IrGl"][y],J=a4.Ol[a4.order.indexOf(j)],A=JSON.parse(a4.FT[a4.order.indexOf(j)]);
q[J].v.unshift({t:"Objc",v:A});if(j=="DrSh"){A.uglg.v=!1;l(t,"ShadowDistance",A,"Dstn");l(t,"ShadowBlur",A,"blur");
l(t,"ShadowAngle",A,"lagl",180);A.Opct.v.val=100;O(t,"ShadowColor",A,"Clr")}if(j=="IrGl"){A.Md.v.BlnM="Nrml";
var a=t.MaskSoftness,I=t.GlowWidth;if(a&&I){a=parseInt(a);I=parseInt(I);A.blur.v.val=I+a;A.Ckmt.v.val=Math.round(100*I/(I+a))}l(t,"BevelContrast",A,"Opct");
O(t,"OuterBevelColor",A,"Clr")}if(j=="ebbl"){A.uglg.v=!1;l(t,"BevelWidth",A,"blur");l(t,"AngleSoftness",A,"Sftn");
l(t,"BevelContrast",A,"srgR");l(t,"LightAngle",A,"lagl")}}return q}function l(m,V,q,K,z){var t=m[V];
if(z==null)z=0;if(t)q[K].v.val=parseInt(t)+z}function O(m,V,q,K){var z=m[V];if(z){z=z.slice(1);if(z.length==6)z=z+"ff";
if(z.length!=8)throw"e";var t=Y(parseInt(z,16)),H=q[K].v;H.Rd.v=t[0]*255;H.Grn.v=t[1]*255;H.Bl.v=t[2]*255;
q.Opct.v.val=Math.round(q.Opct.v.val/100*t[3]*100)}}return f}();function hG(){}hG.Vq=function(){function Z(a,I){var E=!1,c=Date.now(),u=t(a,E);
if(E)console.log("part found",Date.now()-c);c=Date.now();var n=z(u),o=n.Layer,x=n.Header;if(E)console.log(n);
var g=o[0];g=n.Layer[0];if(E)console.log("document parsed",Date.now()-c);c=Date.now();n.Setup.Gradient=K(n.Setup.Gradient,u);
if(E)console.log("grads loaded",Date.now()-c);c=Date.now();n.Setup.Pattern=q(n.Setup.Pattern,u);if(E)console.log("patts loaded",Date.now()-c);
c=Date.now();n.Setup.DocumentData=V(n.Setup.DocumentData,u).pop();if(E)console.log("docdata loaded",Date.now()-c);
c=Date.now();n.Setup.SVGFilter=V(n.Setup.SVGFilter,u);if(E)console.log("svgfilter loaded",Date.now()-c);
c=Date.now();var v=x.Cropmarks,R=x.BoundingBox.split(" ").map(parseFloat),X=x.ArtSize?x.ArtSize.split(" ").map(parseFloat):[R[2]-R[0],R[3]-R[1]];
I.c=Math.round(X[0]);I.v=Math.round(X[1]);var B=[1,0,0,1,-R[0]+(I.c-(R[2]-R[0]))/2,-R[1]+(I.v-(R[3]-R[1]))/2];
B[3]=-1;B[5]=I.v-B[5];if(v){v=v.split(" ").map(parseFloat);I.c=Math.round(v[2]-v[0]);I.v=Math.round(v[3]-v[1]);
B=[1,0,0,-1,-v[0],I.v+v[1]]}var M=n.Setup.DocumentData;if(M&&M[0].ArtboardArray){var r=M[0].ArtboardArray;
if(r.length!=1)console.log(r.length,"artboards");var N=new b4;for(var D=0;D<r.length;D++){var $=r[D],eQ=$.PositionPoint1,hN=$.PositionPoint2,bI=eQ[0],fq=Math.min(eQ[1],hN[1]),e9=hN[0],W=Math.max(eQ[1],hN[1]);
N=N.VK(new b4(bI,fq,e9-bI,W-fq))}I.c=Math.round(N.c);I.v=Math.round(N.v);B[4]=-N.x;B[5]=N.y+I.v}var L=Math.max(I.c,I.v)<1200?2:1;
if(Math.min(I.c,I.v)>6e3)L=.5;I.c=Math.round(I.c*L);I.v=Math.round(I.v*L);I.GY=Math.round(72*L);I.buffer=T.f(I.c*I.v*4);
for(var D=0;D<6;D++)B[D]*=L;for(var bd=0;bd<o.length;bd++){var iw=o[bd],d7=O(u,iw);S(I,d7,B,n,iw,u)}if(E)console.log("layers created",Date.now()-c);
c=Date.now()}function S(a,I,E,c,u,n){var o="",x=0,g="",v=UDOC.G,R=UDOC.getState(),X="norm",B=1,M="SoCo",$=!1,eQ=0,bI=null,fq=null,e9=null,W,L,bd,iw=0,d7=0,d0=0;
R.ctm=E;var r=[0,0,0],N=[0,0,0],hN=[],gS=[],cf=[];for(var cT=0;cT<I.length;cT++){var fU=I[cT];if(fU[0]=="%"&&!fU.endsWith(" Xh")){if(fU=="%_/ArtDictionary :")bI=[fU.slice(2)];
else if(bI!=null){if(fU=="%_"){var dX=y(bI)[0],g$=dX.AI10_ArtUID;if(g$&&!g$.startsWith("XMLID"))a.t[a.t.length-1].wc(J(g$));
bI=null}else bI.push(fU.slice(fU[1]=="_"?2:1))}else if(e9){W+=(W==""?"":" ")+fU.slice(2);if(W.endsWith("X#")){e9.push(W.slice(0,W.length-3));
W=""}}continue}else if(fU=="/Mesh X!"){e9=[];W="";continue}else if(fU=="/End X!"){b(e9,R,a);e9=null;
continue}fU=fU.trim();var bX=fU.split(" "),aw=bX[bX.length-1],hP=aw.toLowerCase(),eG=bX.map(parseFloat);
if(aw=="m")v.moveTo(R,eG[0],eG[1]);else if(aw=="L"||aw=="l")v.lineTo(R,eG[0],eG[1]);else if(aw=="V"||aw=="v"||aw=="Y"||aw=="y")v.quadCurveTo(R,eG[0],eG[1],eG[2],eG[3]);
else if(aw=="C"||aw=="c")v.curveTo(R,eG[0],eG[1],eG[2],eG[3],eG[4],eG[5]);else if(aw=="H"||aw=="h"){if(aw==hP)v.closePath(R);
hN.push(JSON.parse(JSON.stringify(R.pth)))}else if(aw=="Xy"){X=["norm","mul ","scrn"][eG[0]];B=eG[1];
if(X==null){X="norm";console.log("unknown blend mode",eG[0])}}else if(aw=="Xd"){var eB=a.t[a.t.length-1];
eB.opacity=Math.round(255*B);eB.WL=eB.W$()&&X=="norm"?"pass":X}else if(aw=="AE")iw=eG[0];else if(aw=="Ae")d7=eG[0];
else if(aw=="Xw")d0=eG[0];else if(aw=="*"){var bb=R.pth.crds,gx=R.ctm,er=bb[0]==bb[2]?0:1;a.vE[er].push(bb[er]);
v.newPath(R)}else if(aw=="Xh")L=eG;else if(aw=="XN")bd=fU.split(" ")[0];else if(aw=="XI"){if(u.Raster==null){console.log("no Raster");
continue}var ea=u.Raster[x++].Data,hD=ea._begin,bP=ea._end;while(n[hD]!=88)hD++;hD+=3;var iz=n.slice(hD,bP),iq=L[8],cU=L[9],aH=iq*cU,eK=T.f(aH*4);
eK.fill(255);var h6={"/DeviceRGB":3,"/DeviceCMYK":4,"/DeviceGray":1}[bd],co=I[cT-2];co=co.slice(co.indexOf("]")+2).split(" ").map(parseFloat);
var dh=co[6],cX=Math.ceil(iq*h6*dh/8);if(bd=="/DeviceGray"){if(dh==8)for(var D=0;D<aH;D++)for(var eY=0;
eY<3;eY++)eK[4*D+eY]=iz[D];else if(dh==1)for(var ga=0;ga<cU;ga++)for(var h0=0;h0<iq;h0++)for(var eY=0;
eY<3;eY++)eK[4*(ga*iq+h0)+eY]=255*(iz[ga*cX+(h0>>>3)]>>>7-(h0&7)&1);else throw dh}else if(bd=="/DeviceRGB")for(var D=0;
D<aH;D++)for(var eY=0;eY<3;eY++)eK[4*D+eY]=iz[3*D+eY];else if(bd=="/DeviceCMYK")for(var D=0;D<aH;D++){var a8=Q([iz[4*D+0]/255,iz[4*D+1]/255,iz[4*D+2]/255,iz[4*D+3]/255]);
eK[4*D+0]=a8[0]*255;eK[4*D+1]=a8[1]*255;eK[4*D+2]=a8[2]*255}else throw bd;var cc=cU*cX;if(bP-hD>cc)for(var D=0;
D<aH;D++)eK[4*D+3]=iz[cc+D];var hW=T.Qv(eK,iq,cU)?"JPG":"PNG",em=ab.iZ(hW).$b([[eK.buffer]],iq,cU),br=a.CL(new Uint8Array(em),"<Image>",0,0);
a.t.push(br);br.WL=X;br.opacity=Math.round(255*B);br.Ba(d0==0);var E=new fR;E.scale(1,-1);E.concat(h(L.slice(1)));
E.concat(h(R.ctm));var cF=br.rect.clone();cF.x=cF.y=0;var bX=T.z.X6(cF).H;T.z.A(bX,E,bX);br.add.SoLd.Trnf=G.V.ab(bX);
br.add.SoLd.nonAffineTransform=G.V.ab(bX);br.JN(a,!1)}else if(aw=="Ln"){o=P(fU)}else if(aw=="u"||aw=="q"||aw=="Lb"){gS.push(d7==1);
cf.push((aw=="Lb"?1-eG[0]:d0)==0);if($)continue;a.t.push(a._z())}else if(aw=="U"||aw=="Q"||aw=="LB"){if(gS.length==0||cf.length==0)throw cT;
var cW=gS.pop(),bM=cf.pop();if(aw=="LB")cW=iw==1;if($)continue;var br=a.Dl();br.wc((aw=="U"?"<Group>":"<Clip Group>")+g);
if(aw=="LB")br.wc(o);if(aw=="Q"){var ct=hN.pop(),aQ=UDOC.G.isBox(ct,[0,0,a.c,a.v]);if(!aQ)e(br,ct,a)}br.add.lsct=cW?fr.k8:fr.U1;
br.WL="pass";br.NG=24;br.Ba(bM);a.t.push(br)}else if(aw=="Bb"||aw=="Bh"||aw=="BB"){}else if(aw=="Bg"){var eA=c.Setup.Gradient[P(fU)];
M="GdFl";r=Y(eA.vp,eA.a8e)}else if(aw=="Bm"||aw=="Xm"){var gQ=r.Type.v.GrdT;if(gQ=="Lnr"&&aw!="Xm"||gQ=="Rdl"&&aw!="Bm")continue;
var eE=T.z.$R(R.pth.crds),a1=new ar(0,0),fA=new ar(1,0),eH=new fR;eH.concat(h(eG));eH.concat(h(R.ctm));
a1=eH.YI(a1);fA=eH.YI(fA);if(gQ=="Lnr"){a1.x=(a1.x+fA.x)/2;a1.y=(a1.y+fA.y)/2}T.W.Vu(a1,fA,eE,r)}else if(aw=="p"){var gd=P(fU),ey=c.Setup.Pattern[gd];
if(ey.raw==null){var eE=ey.NA,iq=Math.round(eE[2]-eE[0]),cU=Math.round(eE[3]-eE[1]),dX=new gf;dX.c=iq;
dX.v=cU;dX.buffer=T.f(iq*cU*4);S(dX,ey.pX,[1,0,0,-1,-ey.NA[0],cU+ey.NA[1]]);ey.raw=new Uint8Array(ab.iZ("PSD").$b(dX))}var hx=fU.slice(fU.indexOf(")")+2),ew=hx.slice(0,hx.indexOf("[")-1).split(" ").map(parseFloat),am=hx.slice(hx.indexOf("[")+1,hx.indexOf("]")).split(" ").map(parseFloat);
M="patt";r=[gd,ew,am]}else if(aw=="J"||aw=="j"||aw=="w"||aw=="M"||aw=="d"){for(var D=1;D<bX.length;D++){var dI=bX[D],bs=eG[D-1];
if(dI=="w")R.lwidth=bs;if(dI=="j")R.ljoin=bs;if(dI=="J")R.lcap=bs;if(dI=="d"){var fE=fU.slice(fU.indexOf("[")+1,fU.indexOf("]")).trim();
if(fE.length!=0){var gg=fE.split(" ").map(parseFloat);R.dash=gg}}}}else if(hP=="xa"||hP=="xx"){var bT=[eG[4],eG[5],eG[6]];
M="SoCo";if(aw=="Xa"||aw=="Xx")r=bT;else N=bT}else if(hP=="xk"){var bT,aa=eG[eG.length-2];if(aa==0)bT=Q(eG);
else if(aa==1)bT=[eG[4],eG[5],eG[6]];else throw fU;M="SoCo";if(aw=="Xk")r=bT;else N=bT}else if(hP=="k"||hP=="x"){if(hP=="x"){eG.pop();
var gR=1-eG.pop();for(var D=0;D<4;D++)eG[D]*=gR}var bT=Q(eG);M="SoCo";if(aw==hP)r=bT;else N=bT}else if(hP=="g"){var bT=[eG[0],eG[0],eG[0]];
M="SoCo";if(aw==hP)r=bT;else N=bT}else if(hP=="n")v.newPath(R);else if(aw=="*u"){$=!0;eQ=0}else if(aw=="*U"||hP=="s"||hP=="f"||hP=="b"){if(aw!="*U"&&$){if(hP=="f"||hP=="b")eQ|=1;
if(hP=="s"||hP=="b")eQ|=2;continue}if(aw==hP)v.closePath(R);if(aw=="*U"){$=!1}var br;if(M=="patt"){var ey=c.Setup.Pattern[r[0]];
br=a.CL(ey.raw,"<Pattern>",0,0);var cF=br.rect.clone();cF.x=cF.y=0;var bX=T.z.X6(cF).H,am=h(r[2]);am.RN=am.Sv=0;
T.z.A(bX,am,bX);br.add.SoLd.Trnf=G.V.ab(bX);br.add.SoLd.nonAffineTransform=G.V.ab(bX);br.JN(a,!1)}else{br=a.Dl();
br.NG|=16;var gb=br.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));gb.strokeEnabled.v=gb.fillEnabled.v=!1;
if(M=="SoCo"){br.add.SoCo=JSON.parse(a4.FT[a4.order.indexOf("SoFi")]);var bH=br.add.SoCo.Clr.v;w(bH,r)}if(M=="GdFl")br.add.GdFl=r;
if(hP=="f"||hP=="b"||aw=="*U"&&eQ&1)gb.fillEnabled.v=!0;if(hP=="s"||hP=="b"||aw=="*U"&&eQ&2)eD.S$(gb,R,1,eD.BE(N))}br.wc("<"+(aw=="*U"?"Compound ":"")+"Path>"+g);
br.WL=X;br.opacity=Math.round(255*B);br.Ba(d0==0);e(br,R.pth,a);a.t.push(br);v.newPath(R)}else if(aw==","&&bX[1]=="/StoryIndex"){var dW=c.Setup.TextDocument,f4=null;
if(!(dW instanceof Array))dW=c.Setup.TextDocument=m(dW,n);var cj=dW[0],bm=dW[2];if(cj._DocumentResources)cj=dW[0]=gP.a9h(cj);
var br=a.Dl();br.add.lnsr="rend";br.add.TySh=eO.nR(0,0);var ge=cs.ak8(cj),dc=br.add.TySh.HK=ge[eG[0]];
if(dc==null){console.log("text not found");continue}br.wc(eO.IU(dc).slice(0,50));br.WL=X;br.opacity=Math.round(255*B);
br.Ba(d0==0);var gR=cj._1._1[eG[0]]._1._0[0]._0;gR=parseInt(gR.slice(1));var fg=cj._0._8._0,gL=fg[gR]._0;
if(gL._0)f4=f(gL._0);else if(gL._1)f4=f(gL._1._0);else f4=f(gL._2._2).slice(3);if(f4.length!=2){var eE=T.z.$R(f4);
f4=[eE.x,eE.y];if(eE.X()!=0){eO.es(dc,1);eO.oZ(dc,[0,0,Math.round(eE.c),Math.round(eE.v)])}}var eu=new fR,f5=new fR(1,0,0,1,f4[0],f4[1]),bf=new fR(1,0,0,1,-bm[0],-bm[1]),iL=h(R.ctm),hB=new fR;
if(gL._2&&gL._2._2){var E=f(gL._2._2);hB=new fR(E[0],E[1],E[2],E[3],E[4],E[5])}eu.concat(f5);eu.concat(hB);
eu.concat(bf);eu.scale(1,-1);eu.concat(iL);br.add.TySh.A=eu;a.t.push(br);a.c3=!0}}}function b(a,I,E){var c=UDOC.G,u=[],n=[],o,x,g=[],cf=0,cT=0,eG=0;
for(var v=0;v<a.length;v++){var R=a[v];if(R.endsWith(" /CS")){var X=R.indexOf("/NChannel");if(R.startsWith("/DeviceRGB")){o="/DeviceRGB";
x=3}else if(R.startsWith("/DeviceCMYK")){o="/DeviceCMYK";x=4;g=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]}else if(X!=-1){o="/DeviceCMYK";
x=parseInt(R.slice(X-2,X-1));var B=1;for(var D=0;D<x;D++){B=R.indexOf("[",B);g[x-1-D]=R.slice(B+1,B+8).split(" ").map(parseFloat);
B++}}else throw R}else if(R[0]=="["){var M=R.indexOf("]"),r=R.slice(1,M).split(" ").map(parseFloat),N=R.slice(M+2),$,eQ,hN,bI,fq,e9;
if(N=="/Size"||N=="/P"||N=="/R")continue;if(N=="/S"||N=="/A"){$=r[0];eQ=r[1];hN=r[2];bI=r[3];fq=r[4];
e9=r[5]}else if(N=="/N"){$=r[x+1];eQ=r[x+2];hN=r[x+3];bI=r[x+4];fq=r[x+6];e9=r[x+7];var W;if(o=="/DeviceRGB")W=r.slice(0,3);
else if(o=="/DeviceCMYK"){var L=[0,0,0,0];for(var D=0;D<x;D++){var bd=r[D],iw=g[D];L[0]+=bd*iw[0];L[1]+=bd*iw[1];
L[2]+=bd*iw[2];L[3]+=bd*iw[3]}W=Q(L)}else throw W;W.push(r[x]);n.push([W,$,eQ])}else throw N;u.push([N,fq,e9,$,eQ,hN,bI])}else if(R=="/E"){var d7=u.slice(0),d0=0;
for(var D=0;D<u.length;D++){var gS=u[D][0];if(gS=="/N"){d0++;continue}var cf=D,cT=D+1;while(u[cT][0]!="/N"&&cT<u.length)cT++;
if(d0==0||d0==3){for(var fU=0;fU<cT-cf;fU++)d7[cf+fU]=u[cT-1-fU]}else for(var fU=cf;fU<cT;fU++){var dX=d7[fU],g$=dX[1];
dX[1]=dX[5];dX[5]=g$;g$=dX[2];dX[2]=dX[6];dX[6]=g$}D=cT-1}u=[];for(var D=0;D<d7.length;D++){var dX=d7[D];
u.push(dX[1],dX[2],dX[3],dX[4],dX[5],dX[6])}var bX=u.length;c.moveTo(I,u[2],u[3]);for(var D=0;D<bX;D+=6){var hN=u[(D+4)%bX],bI=u[(D+5)%bX],fq=u[(D+6)%bX],e9=u[(D+7)%bX],$=u[(D+8)%bX],eQ=u[(D+9)%bX];
c.curveTo(I,hN,bI,fq,e9,$,eQ)}c.closePath(I);u=[]}}var aw=E.Dl();aw.NG|=16;aw.wc("<Mesh>");var hP=aw.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));
hP.strokeEnabled.v=!1;for(var D=0;D<n.length;D++)for(var fU=D+1;fU<n.length;fU++){var eB=n[D][0],bb=n[fU][0],gx=eB[0]-bb[0],er=eB[1]-bb[1],ea=eB[2]-bb[2],hD=Math.sqrt(gx*gx+er*er+ea*ea);
if(hD>eG){eG=hD;cf=D;cT=fU}}var bP=n[cf],iz=n[cT],iq=aw.add.GdFl=Y(0,[[0,bP[0]],[1,iz[0]]]),cU=h(I.ctm),aH=cU.YI(new ar(bP[1],bP[2])),eK=cU.YI(new ar(iz[1],iz[2])),h6=T.z.$R(I.pth.crds);
aH.x=(aH.x+eK.x)/2;aH.y=(aH.y+eK.y)/2;T.W.Vu(aH,eK,h6,iq);e(aw,I.pth,E);E.t.push(aw);c.newPath(I)}function Y(a,I){var E=JSON.parse(a4.FT[a4.order.indexOf("GrFl")]),c=E.Grad.v;
c.Intr.v=0;E.Type.v.GrdT=["Lnr","Rdl"][a];T.W.nu(I,c);return E}function P(a){return a.slice(a.indexOf("(")+1,a.indexOf(")"))}function w(a,I){a.Rd.v=I[0]*255;
a.Grn.v=I[1]*255;a.Bl.v=I[2]*255}function f(a){var I=[];for(var D=0;D<a.length;D++)I[D]=parseFloat(a[D].slice(1));
return I}function h(a){return new fR(a[0],a[1],a[2],a[3],a[4],a[5])}function Q(a){return UDOC.C.cmykToRgb(a)}function e(a,I,E){a.add.vmsk=new F.NS;
if(I.crds.length!=0)a.add.vmsk.b=l(I);a.AU();a.vK(E)}function l(a){var I={H:a.crds,K:a.cmds},E=T.z.Cp(I,!1);
return E}function O(a,I){var E=[I._begin],c=I._end-I._begin,u=c,n=I.Raster,R=0;if(n){for(var D=0;D<n.length;
D++){var o=n[D].Data,x=o._begin+32,g=o._end;if(x>g)x=g;E.push(x,g);u-=g-x}}E.push(I._end);var v=new Uint8Array(u);
for(var D=0;D<E.length;D+=2){var x=E[D],X=E[D+1]-x;v.set(new Uint8Array(a.buffer,x,X),R);R+=X}return k.cP(v).split(/\r\n|\r|\n/)}function m(a,I){if(a==null)return[];
var E=O(I,a),c="",u="",n=0,o;for(var D=2;D<E.length;D++){var x=E[D];if(x[0]=="%"){if(n==0)c+=x.slice(1);
else u+=x.slice(1)}else if(x==";")n++;else if(x.endsWith("/RulerOrigin ,"))o=x.split(" ").slice(0,2).map(parseFloat)}var g=[c,u],v=[];
for(var D=0;D<2;D++){var R=g[D],X=new Uint8Array(R.length);k.ue(X,0,R);var B=FromPS.F.ASCII85Decode({buff:X,off:0}),M=hg.Vq(B);
v.push(M)}v.push(o);return v}function V(a,I){if(a==null)return[];var E=O(I,a);E=E.slice(1);for(var D=0;
D<E.length;D++){var c=E[D];if(c[0]=="%")E[D]=c.slice(c[1]=="_"?2:1)}var u=y(E);return u}function q(a,I){var E={};
if(a==null)return E;for(var D=0;D<a.length;D++){var c=O(I,a[D]),u=c[1],n=P(u),o=u.slice(u.indexOf(")")+2).split(" ").map(parseFloat),x=[];
for(var g=2;g<c.length;g++)x.push(c[g].slice(2));E[n]={NA:o,pX:x}}return E}function K(a,I){var E={},c,u;
if(a==null)return E;var n=[];for(var D=0;D<a.length;D++){var o=O(I,a[D]);for(var x=0;x<o.length;x++){var g=o[x];
if(g[0]=="("){var v=g.split(")");c=v[0].slice(1);var R=v[1].split(" ");u=parseInt(R[1])}else if(g.endsWith("%_BS")){var v=g.split(" "),r,N=1;
v.pop();v=v.map(parseFloat);var X=v.pop(),B=v.pop(),M=v.pop();if(M==0)r=[v[0],v[0],v[0]];else if(M==2)r=[v[4],v[5],v[6]];
else if(M==1||M==3)r=Q(v);else if(M==6){if(v.length==3)r=[v[0],v[0],v[0]];else r=Q(v);N=v.pop()}else{throw M}n.push([X/100,r,N,B/100])}else if(g=="BD"){for(var $=0;
$<n.length-1;$++)n[$][3]=n[$+1][3];n.sort(function(eQ,hN){return eQ[0]-hN[0]});E[c]={vp:u,a8e:n};n=[]}}}return E}function z(a){var I="Gradient PluginObject Symbol Pattern PatternLayer BrushPattern Encoding Raster Layer Resource Place".split(" "),E=Date.now(),c=0,u=[],n={Header:{}},o=[n],x=a.length;
while(c<x){var g=c;while(g!=x&&a[g]!=13&&a[g]!=10){g++}if(a[c]==37&&a[c+1]==95&&a[c+2]==37)c+=2;if(a[c]==37&&a[c+1]!=95&&a[c+1]!=43){var v=k.zG(a,c,g-c);
if(v=="%%EndComments"||v=="%EndComments"||v=="%AI5_Begin_NonPrinting"||v=="%AI5_End_NonPrinting--"||v.startsWith("%AI17_Begin_Content_if_version_gt")||v=="%AI17_End_Versioned_Content"){}else{var R=v.indexOf("Begin"),X=v.indexOf("End");
if(R!=-1){var B=v.slice(R+5).split(":")[0],M={_begin:c,_end:c},r=o[o.length-1];if(I.indexOf(B)!=-1){if(r[B]==null)r[B]=[];
r[B].push(M)}else{if(r[B]!=null){console.log(o);throw v}r[B]=M}o.push(M);if(v.startsWith("%%BeginData"))g=k.Ve(a,"%%EndData",c);
else if(v=="%AI9_BeginDocumentData")g=k.Ve(a,"%AI9_EndDocumentData",g);else if(v=="%AI11_BeginTextDocument")g=k.Ve(a,"%AI11_EndTextDocument",g)}else if(X!=-1){o.pop()._end=c}else if(o.length==1&&(v.startsWith("%AI")||v.startsWith("%%")&&v.indexOf(" ")!=-1)){var N=1;
if(v.startsWith("%AI"))while(v[N]!="_"&&N<v.length)N++;var $=v.indexOf(":");if($==-1)$=v.indexOf(" ");
var eQ=v.slice(N+1,$),hN=v.slice($+1).trim();n.Header[eQ]=hN}}}c=g;if(a[c]==13)c++;if(a[c]==10)c++}return n}function t(a,I){var E=Date.now(),c=new Uint8Array(a),u,n=c[2]==68;
if(I)console.log(!n?"EPS":"PDF");if(n){var o=k.Ve(c,"/AIMetaData "),eQ=!1,hN=!1;while(c[o]!=60)o--;o--;
var x=k.Ve(c,">>",o),g=k.zG(c,o+2,x-o-2).split("/"),v=[];for(var D=0;D<g.length;D++){var R=g[D],X=R.startsWith("AIPrivateData"),B=R.startsWith("AIPDFPrivateData");
if(!X&&!B)continue;var M=R.trim().split(/\s+/),r=parseInt(M[1]),N=parseInt(M[0].slice(X?13:16));v.push([N,r])}if(I)console.log("--- map made",Date.now()-E);
E=Date.now();var $=new Array(v.length),bI=o;for(var D=0;D<v.length;D++){var N=v[D][0],r=v[D][1],W=null;
bI=k.Ve(c,r+" 0 obj",bI);if(bI==-1)bI=k.Ve(c,r+" 0 obj",0);var fq=k.Ve(c,"<<",bI),e9=k.Ve(c,">>",fq),L=new Uint8Array(c.buffer,fq,e9-fq),bd=k.Ve(L,"/Filter");
if(bd!=-1){var iw=L.indexOf("[".charCodeAt(0))+1;if(iw!=0){var d7=L.indexOf("]".charCodeAt(0));W=k.zG(L,iw,d7-iw).trim().split(/\s+/)}else{var d0=k.zG(L,bd+8,30);
W=["/"+d0.split("/")[0]]}}var gS=k.Ve(c,"/Length",fq)+8,cf=gS;while(48<=c[cf]&&c[cf]<=57)cf++;var cT=parseInt(k.zG(c,gS,cf-gS)),fU=k.Ve(c,"stream",cf);
fU=fU+6;if(c[fU]==13)fU++;if(c[fU]==10)fU++;var dX=k.zG(c,fU,20);if(dX=="%AI12_CompressedData"){fU+=20;
cT-=20;eQ=!0}else if(dX=="%AI24_ZStandard_Data"){fU+=20;cT-=20;hN=!0}var g$=new Uint8Array(c.buffer,fU,cT);
if(W)for(var bd=0;bd<W.length;bd++){var bX=W[bd];if(bX=="/FlateDecode")g$=pako.inflate(g$);else if(bX=="/ASCIIHexDecode")g$=FromPS.F.HexDecode({buff:g$,off:0});
else throw bX}$[N-1]=g$;bI=fU+cT}if(I)console.log("--- arrays found",Date.now()-E);E=Date.now();var aw=k.zG($[0],0,13);
if(aw=="%%BoundingBox"||aw=="%AI7_Thumbnai")$=$.slice(1);u=H($);if(I)console.log("--- concatenated",Date.now()-E);
E=Date.now();if(eQ)u=UZIP.inflate(u);if(hN){var hP=ab.p1.aiN,cT=u.length,eG=hP.memory,gx=8;ab.BC(hP,1e6+cT);
var eB=new Uint8Array(eG.buffer),bb=hP.malloc(cT);eB.set(u,bb);while(!0){ab.BC(hP,cT*(gx+2)+1e6);var er=hP.malloc(cT*gx),ea=hP.ZSTD_decompress(er,cT*gx,bb,cT);
if(ea==-70){hP.free(er);gx+=4}else{eB=new Uint8Array(eG.buffer);u=eB.slice(er,er+ea);hP.free(er);break}}hP.free(bb)}if(I)console.log("--- inflated",Date.now()-E);
E=Date.now()}else{var hD=k.cP(c);if(hD.indexOf("%AI5_BeginLayer")!=-1){u=c}else{var bP=hD.split(/[\n\r]+/),iz=[],iq=!1;
for(var cU=0;cU<bP.length;cU++){var aH=bP[cU].trim();if(aH=="%AI9_PrivateDataEnd"){iq=!1;break}else if(aH=="%AI9_DataStream"){iq=!0}else if(iq)iz.push(aH.slice(1))}var eK=k.IN(iz.join("")),h6=FromPS.F.ASCII85Decode({buff:eK,off:0});
u=UZIP.inflate(h6)}}return u}function H(a){var I=0,c=0;for(var D=0;D<a.length;D++)I+=a[D].length;var E=new Uint8Array(I);
for(var D=0;D<a.length;D++){var u=a[D];E.set(u,c);c+=u.length}return E}function i(a,I){for(var D=0;D<I.length;
D++)if(a.startsWith(I[D]))return!0;return!1}function y(a){var I=[],E=[],top=-1,c,u=null,n=null;for(var o=0;
o<a.length;o++){var x=a[o];if(c){x=c+x;c=null}var g="\t".repeat(I.length);if(u!=null){u.push(x);if(x.endsWith("~>")){var v=k.IN(u.join("")),R=FromPS.F.ASCII85Decode({off:0,buff:v});
I.push(R);E.push(!1);top++;u=null}}else if(n!=null){if(x=="X+"){I.push(n);E.push(!1);top++;n=null}else n.push(x)}else if(x=="/Binary : /ASCII85Decode ,"){u=[]}else if(x=="X=")n=[];
else if(x=="/SVGFilter :"||x=="; /Def ;")continue;else if(x.startsWith("/")&&x[1].toUpperCase()!=x[1].toLowerCase()){if(x.startsWith("/XMLUID")){var X=j(x);
if(E[top])throw"e";I[top][X[4]]=X[2]}if(x.startsWith("/GObjRef")){var X=j(x);if(!E[top])throw"e";I[top].push(X[2])}else{var B=x.startsWith("/Array")||x.startsWith("/Document");
I.push(B?[]:{});E.push(B);top++}}else if(x.endsWith(",")){var M,r,X=j(x);X.pop();if(X[0]==";"||X.length==1){r=I.pop();
E.pop();top--;M=E[top]?null:X.pop()}else{M=E[top]?null:X.pop();var N=X.pop(),$=X[0];if(N=="/Int")r=parseInt($);
else if(N=="/Real")r=parseFloat($);else if(N=="/Bool")r=$=="1";else if(N=="/String"||N=="/UnicodeString")r=X.join("");
else if(N=="/RealMatrix"||N=="/RealPoint"||N=="/RealPointRelToROrigin")r=X.map(parseFloat);else throw N}if(E[top])I[top].push(r);
else I[top][M]=r}else if(x==";"){}else if(x==""){}else{if(x.indexOf("/RealPoint")!=-1){}else if(x.startsWith("(")&&x.endsWith(")")){}else if(x.endsWith("/RealMatrix")){}else throw x;
c=c?c+x:x}}return I}function j(a){var I=0,E=[];while(I<a.length){var c=a[I],u=c.charCodeAt(0);if(c==" ")I++;
else if(c==","||c==";"||c==":"){E.push(c);I++}else if(c=="("){var n=I+1;while(!(a[n]==")"&&a[n-1]!="\\"))n++;
var o=a.slice(I+1,n);E.push(o);I=n+1}else if(c=="/"||c=="-"||48<=u&&u<=57){var n=I;while(a[n]!=" ")n++;
E.push(a.slice(I,n));I=n}else throw c}return E}function J(a){var I="";for(var D=0;D<a.length;D++){if(a[D]=="_"&&a[D+1]=="x"){var C=parseInt(a.slice(D+2,D+4),16);
I+=String.fromCharCode(C);D+=4}else if(a[D]=="_")I+=" ";else I+=a[D]}return I}function A(a){var I="xmlnode-nodename",E="xmlnode-nodevalue",c="xmlnode-attributes",u="xmlnode-children",n=a[I],o=a[c],x=a[u],g={_nam:n};
for(var v in o){var R=o[v];if(Object.keys(R[c]).length!=0||R[u].length!=0)throw"e";if(R[I]!=v)throw"e";
g[v]=R[E]}if(x.length==0)return g;var X=g.cln=[];for(var D=0;D<x.length;D++)X.push(A(x[D]));return g}return Z}();
function ab(){}ab.bS={a1N:["PNG","JPG","SVG","GIF","PDF"],a7t:"WEBP BMP TIFF ICO DDS TGA PPM RAW EMF DXF".split(" ")};
ab.BC=function(Z,S){var b=Z.memory.buffer.byteLength;if(b<S)Z.memory.grow((S-b>>>16)+1)};ab.w5={aaX:function(Z,S){fetch(Z).then(function(b){return b.arrayBuffer()}).then(function(b){var Y=new Uint8Array(b),P=0,Q="";
if(S){P=Y.length;var w={level:9},f=pako.deflateRaw(Y,w),h=UZIP.deflateRaw(Y,w);console.log(P,f.length,h.length);
Y=f.length<h.length?f:h}for(var D=0;D<Y.length;D++)Q+=String.fromCharCode(Y[D]);var e=btoa(Q);console.log(JSON.stringify([P,e]))})},get:function(Z,S){var b=BINDB[Z],Y=Date.now(),P=atob(b[1]),w=P.length,f=new Uint8Array(w);
for(var D=0;D<w;D++)f[D]=P.charCodeAt(D);if(b[0]!=0){var h=new Uint8Array(b[0]);UZIP.inflateRaw(f,h);
f=h}if(S){var Q=ab.fN(f.buffer);f=ab.iZ(Q).Gk(f.buffer)}return f}};ab.fN=function(Z){if(!(Z instanceof ArrayBuffer)){console.log("Input is not ArrayBuffer")}var S=new Uint8Array(Z),b=ab.m0,Y,P=0,w=S.length-1;
if(b(S,[239,187,191]))P=3;while(P<S.length&&(S[P]==9||S[P]==10||S[P]==13||S[P]==32))P++;while(w!=0&&(S[w]==9||S[w]==10||S[w]==13||S[w]==32))w--;
if(b(S,[56,66,80,83]))Y="psd";if(b(S,[120]))Y="pxd";if(b(S,[80,68,78,51]))Y="pdn";if(b(S,[103,105,109,112,32,120,99,102,32]))Y="xcf";
if(b(S,[102,105,103,45,107,105,119,105]))Y="fig";if(b(S,[137,80,78,71,13,10,26,10])){Y="png";var f=8;
while(f<S.length){var h=k.r(S,f);f+=4;var Q=k.zG(S,f,4);f+=4;if(Q=="mkTS")Y="fpng";f+=h+4}}if(b(S,[87,76]))Y="cdr";
if(b(S,[82,73,70,70])){var e=e7.Vq(S),l=e.Vh;if(l=="WEBP")Y="webp";else if(l.slice(0,3)=="CDR")Y="cdr";
else Y=l}if(b(S,[70,79,82,77])||b(S,[76,73,83,84])||b(S,[67,65,84,32])){var e=es.Vq(S),l=e.Vh;if(l=="ILBM")Y="ilbm";
else Y=l}if(b(S,[255,216,255]))Y="jpg";if(b(S,[0,0,0,12,106,80,32,32]))Y="jpg";if(b(S,[48,0,1,0],4))Y="jpg";
if(b(S,[71,73,70,56]))Y="gif";if(b(S,[0,0,0,2,121,102,113,76]))Y="msh";if(b(S,[0,0,0,3,121,102,113,76]))Y="msh";
if(b(S,[0,0,0,16]))Y="atn";if(b(S,[0,1]))Y="aco";if(b(S,[0,2]))Y="aco";if([0,1].indexOf(S[1])!=-1&&[1,2,3,9,10,11].indexOf(S[2])!=-1&&[0,16,24,32].indexOf(S[7])!=-1)Y="tga";
if(b(S,[0,2,56,66,83,76]))Y="asl";if(b(S,[0,1,0,-1,0,2,0]))Y="abr";if(b(S,[0,2,0,-1,0,2,0]))Y="abr";
if(b(S,[0,6,0,1]))Y="abr";if(b(S,[0,6,0,2]))Y="abr";if(b(S,[0,7,0,2]))Y="abr";if(b(S,[0,9,0,2]))Y="abr";
if(b(S,[0,10,0,2]))Y="abr";if(b(S,[56,66,70,83]))Y="shc";if(b(S,[56,66,80,84]))Y="pat";if(b(S,[56,66,71,82]))Y="grd";
if(b(S,[56,66,84,80]))Y="tpl";if(b(S,[0,4,0,5]))Y="acv";if(b(S,[99,117,115,104]))Y="csh";if(b(S,[0,1,0,0,0]))Y="otf";
if(b(S,[79,84,84,79]))Y="otf";if(b(S,[116,116,99,102]))Y="otf";if(b(S,[68,68,83,32]))Y="dds";if(b(S,[80,86,82,3]))Y="pvr";
if(b(S,[86,84,70,0]))Y="vtf";if(b(S,[83,73,77,80]))Y="fits";if(b(S,[0,0,1,0]))Y="ico";if(b(S,[66,77]))Y="bmp";
if(b(S,[40,0,0,0]))Y="bmp";if(b(S,[80,49]))Y="ppm";if(b(S,[80,50]))Y="ppm";if(b(S,[80,51]))Y="ppm";if(b(S,[80,52]))Y="ppm";
if(b(S,[80,53]))Y="ppm";if(b(S,[80,54]))Y="ppm";if(b(S,[73,73,42,0]))Y="tiff";if(b(S,[77,77,0,42]))Y="tiff";
if(b(S,[70,85,74,73,70,73,76,77]))Y="raf";if(b(S,[112]))Y="lif";if(b(S,[73,73,26,0]))Y="ciff";if(b(S,[83,81,76,105]))Y="sketch";
if(b(S,[80,75])){var O=UZIP.parse(Z,!0);if(O["document.json"])Y="sketch";else if(O.manifest)Y="xd";else Y="zip"}if(b(S,[123]))Y="json";
if(k.r(S,0)==S.length)Y="icc";if(b(S,[35]))Y="icc";if(b(S,[84,73,84,76],P))Y="icc";if(b(S,[76,85,84,95],P))Y="icc";
if(b(S,[60,63,120,109],P)){if(k.Ve(S,"<look>")!=-1)Y="icc";else Y="svg"}if(b(S,[60,115,118,103],P))Y="svg";
if(b(S,[60,33,100,111],P)||b(S,[60,33,68,79],P)){if(k.Ve(S,"<svg")!=-1)Y="svg";else Y="html"}if(b(S,[37,33])||b(S,[197,208,211,198])){if(k.Ve(S,"%AI9_PrivateDataBegin")!=-1||k.Ve(S,"%AI5_BeginLayer")!=-1)Y="ai";
else Y="eps"}if(b(S,[37,80,68,70],P)){if(k.Ve(S,"/AIMetaData ")!=-1)Y="ai";else Y="pdf"}else if(b(S,[10,69,79,70],w-3))Y="dxf";
if(b(S,[215,205,198,154]))Y="wmf";if(b(S,[1,0,0,0]))Y="emf";if(b(S,[118,47,49,1]))Y="exr";if(b(S,[10,10,10,10]))Y="jsx";
if(b(S,[77,90]))Y="exe";if(Y==null&&T.raw.Bk(S.length)!=null)return"tiff";return Y};ab.m0=function(Z,S,b){if(b==null)b=0;
for(var D=0;D<S.length;D++)if(S[D]!=-1&&Z[b+D]!=S[D])return!1;return!0};ab.iZ=function(Z){var S={BMP:ab.a9r,CDR:ab.Fn,DDS:ab.np,EMF:ab.Tx,DXF:ab.Fi,EPS:ab.U3,FIG:ab.j0,FPNG:ab.mM,GIF:ab.qB,ICO:ab.b1,ILBM:ab.Aq,FITS:ab.$J,EXR:ab.mp,JPG:ab.qA,LIF:ab.r_,PDF:ab.fC,PDN:ab.l$,PNG:ab.t5,PPM:ab.fp,PSD:ab.zN,PXD:ab.fW,RAF:ab.iA,RAW:ab.Fv,SKETCH:ab.eT,SVG:ab.c2,TGA:ab.si,TIFF:ab.Qu,VTF:ab.Xj,WEBP:ab.H_,WMF:ab.mv,XCF:ab.Fc,XD:ab.no,EXE:ab.j1,AI:ab.p1};
return S[Z.toUpperCase()]};ab.X1=function(D){var Z=ab.bS.a1N,S=ab.bS.a7t,b,Y=[];if(D==null)b=Z.concat(S);
else b=D==0?Z:S;for(var D=0;D<b.length;D++)if(ab.iZ(b[D]).$b)Y.push(b[D]);return Y};ab.re=function(Z,S,b,Y,P){var w=ab.KA(Z,S,b,Y,P),f=ab.TF(w);
return f.buffer};ab.TF=function(Z){var S=atob(Z.split(",").pop()),b=new Uint8Array(S.length);for(var D=0;
D<S.length;D++)b[D]=S.charCodeAt(D);return b};ab.KA=function(Z,S,b,Y,P,w){if(!(Z instanceof ArrayBuffer))throw"e";
if(Y==null)Y="png";if(Y=="png"&&w==!0){var f=ab.iZ("PNG").$b([[Z,0]],S,b);return"data:image/png;base64,"+ab.kL(f)}var h=ab.Fp;
if(h==null)h=ab.Fp=s.R("canvas");if(h.width!=S||h.height!=b){h.width=S;h.height=b}var Q=h.getContext("2d"),e=new ImageData(new Uint8ClampedArray(Z,0,S*b*4),S,b);
Q.putImageData(e,0,0);return h.toDataURL("image/"+Y,P)};ab.a7i=function(Z,S,b,Y,P){if(P==null)P=0;var w="<defs> \t<filter id=\"sofGlow\" height=\"300%\" width=\"300%\" x=\"-75%\" y=\"-75%\"> \t\t<!-- Thicken out the original shape --> \t<feMorphology operator=\"dilate\" radius=\"3\" in=\"SourceAlpha\" result=\"thicken\" /> \t\t<!-- Use a gaussian blur to create the soft blurriness of the glow -->\t\t<feGaussianBlur in=\"thicken\" stdDeviation=\"4\" result=\"blurred\" />\t\t<!-- Change the colour -->\t\t<feFlood flood-color=\"rgb(255,255,255)\" result=\"glowColor\" />\t\t<!-- Color in the glows -->\t\t<feComposite in=\"glowColor\" in2=\"blurred\" operator=\"in\" result=\"softGlow_colored\" />\t\t<!--\tLayer the effects together -->\t\t<feMerge>\t\t\t<feMergeNode in=\"softGlow_colored\"/>\t\t\t<feMergeNode in=\"SourceGraphic\"/>\t\t</feMerge>\t</filter></defs>",f="<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"128\" height=\"128\"> "+w+"<g transform=\"translate(64 64) scale("+.25*Math.round(s.Z())+")\">";
if(Z==1)f+="<g transform=\"scale(0.07 0.07) translate(-550 -112)\" style=\"fill:#ffffff; stroke:#000000; stroke-width:60px;\">"+"<path d=\"m 555.1899,112.08836 0,120.71094 0,920.7109 232.42188,-232.42184 111.90429,270.44924 169.76363,-84.8828 -114.09371,-273.8555 320.71481,0 z\"/>"+"</g>";
f+="<g filter=\"url(#sofGlow)\"><image transform=\"rotate("+P+")\" xlink:href=\""+S+"\" x=\""+80*b+"\" y=\""+80*Y+"\" height=\"80\" width=\"80\"/></g>"+"</g>"+"</svg>";
var h=new Uint8Array(f.length);k.Cz(f,h,0);var Q="data:image/svg+xml;base64,"+ab.kL(h.buffer);return{R3:Q,_:new b4(0,0,128,128),Zw:new ar(64,64)}};
ab.kL=function(Z){var S=new Uint8Array(Z),b="";for(var D=0;D<S.length;D++)b+=String.fromCharCode(S[D]);
return btoa(b)};ab.acL=function(Z){var S=atob(Z),b=S.length,Y=new Uint8Array(b);for(var D=0;D<b;D++)Y[D]=S.charCodeAt(D);
return Y.buffer};ab.xf=function(Z){var S=[],b=[];for(var D=0;D<Z.t.length;D++){var Y=Z.t[D];if(Y.getName().slice(0,3)=="_a_"){S.push(D);
b.push(Y._7())}}return[S,b]};ab.k$=function(Z,S,b,Y,P,w){if(b==null)b=Z.c;if(Y==null)Y=Z.v;var f=new b4(0,0,Z.c,Z.v),h=new fR(b/(Z.c+.001),0,0,Y/(Z.v+.001),0,0),e;
S=S.toUpperCase();var Q=ab.iZ(S);if(Q.Ke){Z.Zd();e=Q.$b(Z,b,Y,P,w)}else{var l=ab.xf(Z),O=l[0],m=l[1],V;
if(Z.eP.length!=0){V=[];for(var D=0;D<Z.eP.length;D++)V.push(Z.eP[D].Zv(f))}if(O.length<2){var q;if(b==Z.c&&Y==Z.v)q=Z.Zd().buffer;
else{var K=G.V.DP([Z.Zd(),f],h);q=K.buffer.buffer}e=Q.$b([[q,0,Z.GY,Z.tU,V]],b,Y,P)}else{var z=[];for(var D=0;
D<O.length;D++){var t=O[D],q;for(var H=0;H<O.length;H++)Z.t[O[H]].Ba(O[H]==t);Z.Wl();Z.D();Z.j8();if(b==Z.c&&Y==Z.v)q=Z.Zd().buffer.slice(0);
else{var K=G.V.DP([Z.Zd(),f],h);q=K.buffer.buffer}var i=Z.t[t].getName().split(",");z.push([q,i[1]?parseInt(i[1]):100,Z.GY,Z.tU,V])}for(var D=0;
D<O.length;D++)Z.t[O[D]].Ba(m[D]);Z.D();Z.j8();if(P){var y=P.length,j=P[y-2],J=P[y-1],A=P[y-4]/100;if(A!=1)for(var D=0;
D<z.length;D++)z[D][1]=Math.round((z[D][1]==0?16:z[D][1])/A);if(j)z.reverse();if(J){var a=z.slice(1,z.length-1);
a.reverse();z=z.concat(a)}}e=Q.$b(z,b,Y,P)}}return e};ab.kR=function(Z,S){var b=S[0].qQ&&S[0].qQ.startsWith("_a_"),Y,P=new gf(Z+".psd"),w=new b4(0,0,1,1);
if(b){Y=P.Dl();Y.add.lsct=fr.k8;Y.wc(Z);Y.WL="pass";Y.NG=24;Y.Ba(!0);P.t.push(P._z())}for(var D=0;D<S.length;
D++){var f=S[D];w=w.VK(f.Vl);var h=P.Dl();h.Ba(D==0);h.wc(S.length==1?"Background":"Layer "+D);if(D==0&&f.GY)P.GY=f.GY;
if(D==0&&f.tU)P.tU=f.tU;if(f.qQ)h.wc(f.qQ);if(f.pf)for(var D=0;D<f.pf.length;D++){var Q=f.pf[D],e=gf.jq(Q[0]);
e.add.vmsk.b=Q[1];T.Y.$d(Q[1],new fR(w.c,0,0,w.v,0,0));P.Bf.push(e)}h.rect=f.Vl.clone();h.buffer=new Uint8Array(f.data);
T.br(h);P.t.push(h)}if(b)P.t.push(Y);if(S[0].eP){for(var D=0;D<S[0].eP.length;D++){var l=new F.bN;P.eP.push(l);
l.rect=S[0].Vl.clone();l.channel=S[0].eP[D]}}P.C=[b?P.t.length-1:0];P.c=w.c;P.v=w.v;P.buffer=T.f(w.X()*4);
P.D();return P};ab.t5={};ab.t5.$b=function(Z,S,b,Y){if(Y==null)Y=[100,!1,0,0,0];var P={sRGB:1,loop:Y[3]};
if(Z[0][2]!=null){var w=Math.round(Z[0][2]*(1e4/254));P.pHYs=[w,w,1]}var f=Y[0],h=f==100?0:Math.max(2,Math.floor(f*5));
if(h==5)h=4;var Q=[],e=[];for(var D=0;D<Z.length;D++){Q.push(Z[D][0]);e.push(Z[D][1])}var l=UPNG.encode(Q,S,b,h,e,P,Y[1]);
return l};ab.t5.a4f=function(Z,S,b){return UPNG.encodeLL([Z],S,b,3,1,8)};ab.t5.Gk=function(Z){var S=Date.now(),b=UPNG.decode(Z),Y=UPNG.toRGBA8(b),P=b.width,w=b.height,f=0;
if(b.tabs.pHYs)f=Math.round(b.tabs.pHYs[0]*254/1e4);if(Y.length==1)return[{Vl:new b4(0,0,P,w),data:Y[0],GY:f}];
var h=[];for(var D=0;D<Y.length;D++){h.push({qQ:"_a_frm"+D+","+b.frames[D].delay,Vl:new b4(0,0,P,w),data:Y[D],GY:f})}return h};
ab.fp={};ab.fp.$b=function(Z,S,b,Y){var P=new Uint8Array(Z[0][0]),w=S*b,f=w*3,h="P6\n"+S+" "+b+"\n255\n",Q=h.length,e=T.f(Q+f,!0);
for(var D=0;D<Q;D++)e[D]=h.charCodeAt(D);for(var D=0;D<w;D++){var l=D*4,O=D*3+Q;e[O]=P[l];e[O+1]=P[l+1];
e[O+2]=P[l+2]}return e.buffer};ab.fp.Gk=function(Z){Z=new Uint8Array(Z);var S=[" ".charCodeAt(0),"\n".charCodeAt(0),"\t".charCodeAt(0),"\r".charCodeAt(0)],b=0,Y=String.fromCharCode(Z[0])+String.fromCharCode(Z[1]),P=[],w=0,f=Y=="P1"||Y=="P4"?2:3;
for(b=2;b<Z.length;b++){var h=Z[b],Q=String.fromCharCode(h);if(h=="#".charCodeAt(0)){while(Z[b]!="\n".charCodeAt(0))b++;
continue}var e=S.indexOf(h)!=-1;if(w==0&&!e){P.push(Q);w=1;continue}if(w==1&&!e){P[P.length-1]+=Q;continue}if(w==1&&e){w=0;
if(P.length==f)break;continue}}var l=parseInt(P[0]),O=parseInt(P[1]),m=l*O*4,V=Y=="P1"||Y=="P4"?1:255/parseInt(P[2]),q=T.f(m);
if(Y=="P1"||Y=="P2"||Y=="P3"){var K="",z=0,w=0,t="#".charCodeAt(0);for(var D=b;D<Z.length;D++){var h=Z[D],Q=String.fromCharCode(h),e=S.indexOf(h)!=-1;
if(h==t){while(Z[D]!="\n".charCodeAt(0))D++}else if(w==0&&!e){K=Q;w=1}else if(w==1){if(e){w=0;var H=parseInt(K);
K="";if(Y=="P1"){q[z]=q[z+1]=q[z+2]=(1-H)*255;q[z+3]=255;z+=4}if(Y=="P2"){q[z]=q[z+1]=q[z+2]=Math.round(H*V);
q[z+3]=255;z+=4}if(Y=="P3"){q[z]=Math.round(H*V);z++;if((z&3)==3){q[z]=255;z++}}}else K+=Q}}}var i=l*O;
if(Y=="P4")for(var y=0;y<O;y++){var j=y*8*Math.ceil(l/8);for(var J=0;J<l;J++){var D=j+J,A=Z[b+1+(D>>3)];
A=A>>7-(D&7)&1;var a=y*l+J<<2;q[a]=q[a+1]=q[a+2]=(1-A)*255;q[a+3]=255}}if(Y=="P5")for(var D=0;D<i;D++){var a=4*D;
q[a]=q[a+1]=q[a+2]=Math.round(Z[b+1+D]*V);q[a+3]=255}if(Y=="P6")for(var D=0;D<i;D++){var a=4*D,I=b+1+3*D;
q[a]=Math.round(Z[I]*V);q[a+1]=Math.round(Z[I+1]*V);q[a+2]=Math.round(Z[I+2]*V);q[a+3]=255}return[{Vl:new b4(0,0,l,O),data:q.buffer}]};
ab.np={};ab.np.$b=function(Z,S,b,Y){var P=new Uint8Array(Z[0][0]);if((S&3)!=0||(b&3)!=0){var w=S+(4-(S&3)),f=b+(4-(b&3)),h=new Uint8Array(w*f*4);
T._U(h,4278190080);T.uH(P,new b4(0,0,S,b),h,new b4(0,0,w,f));P=h;S=w;b=f}return UTEX.DDS.encode(P.buffer,S,b)};
ab.np.Gk=function(Z){var S=UTEX.DDS.decode(Z)[0];return[{Vl:new b4(0,0,S.width,S.height),data:S.image}]};
ab.Xj={};ab.Xj.Gk=function(Z){var S=UTEX.VTF.decode(Z).pop();return[{Vl:new b4(0,0,S.width,S.height),data:S.image}]};
ab.qA={};ab.qA.Lj=null;ab.qA.a7e=function(Z,S){var b=ab.qA.Lj,Y=Z.byteLength,P=S.width,w=S.height,f=P*w,h=5e6+2*Y+f*(S.progressive?Math.max(2,S.numComponents)*4+1:8),Q=b.instance.exports;
ab.BC(Q,h);var e=new Uint8Array(Q.memory.buffer),l=Q.malloc(Y);e.set(new Uint8Array(Z),l);var O=Q.malloc(4),m=Q.malloc(4),C=Q.malloc(4),V=Q.stbi_load_from_memory(l,Y,O,m,C,4);
Q.free(l);Q.free(O,m,C);Q.free(V);var q=e.slice(V,V+f*4);return q};(function(){var Z=ab.w5.get("wasm/jpg").buffer;
if(window.WebAssembly==null)window.alert("Your browser is too old. Please, update it.");WebAssembly.instantiate(Z).then(function(S){ab.qA.Lj=S})}());
ab.qA.$b=function(Z,S,b,Y){if(Y==null)Y=[70];var P=Z[0],w=new Uint8Array(P[0]);if(T.PV(w)){var f=new Uint8Array(w.length),h=new b4(0,0,S,b);
T._U(f,4294967295);T.p.xJ("norm",w,h,f,h,h,1);w=f}var Q=new Uint8Array(ab.re(w.buffer,S,b,"jpeg",Y[0]/100));
if(P[2]!=null){var e=ab.qA.bh(Q)[224][0]+2;e+=9;Q[e]=1;k.xd(Q,e+1,P[2]);k.xd(Q,e+3,P[2])}if(P[3]!=null&&Y[1]==!0&&Object.keys(P[3]).length!=0){var l=0,O=0,m=0,V=b_.tk(P[3]),q=new Uint8Array(UTIF.encode([V])),K="http://ns.adobe.com/xap/1.0/",i=0,J=0,c=20;
l=4+6+q.length;var z=b_.zK(P[3]),t=k.IN(z);O=4+K.length+1+t.length;var H=b_.a35(P[3]);for(var D=0;D<H.length;
D++)i+=5+H[D][1].length;var y=i+(i&1),j=T.f(14+4+2+4+y);k.ue(j,J,"Photoshop 3.0");J+=14;k.ue(j,J,"8BIM");
J+=4;j[J++]=4;j[J++]=4;J+=2;k.KI(j,J,i);J+=4;for(var D=0;D<H.length;D++){var A=H[D],a=A[1];j[J++]=28;
j[J++]=2;j[J++]=A[0];k.xd(j,J,a.length);J+=2;k.ue(j,J,a);J+=a.length}m=4+j.length;var I=l+O+m,E=new Uint8Array(Q.length+I);
for(var D=0;D<20;D++)E[D]=Q[D];for(var D=20;D<Q.length;D++)E[D+I]=Q[D];E[c]=255;E[c+1]=225;k.xd(E,c+2,l-2);
k.ue(E,c+4,"Exif");for(var D=0;D<q.length;D++)E[c+10+D]=q[D];c+=l;E[c]=255;E[c+1]=225;k.xd(E,c+2,O-2);
k.ue(E,c+4,K);for(var D=0;D<t.length;D++)E[c+4+K.length+1+D]=t[D];c+=O;E[c]=255;E[c+1]=237;k.xd(E,c+2,m-2);
for(var D=0;D<j.length;D++)E[c+4+D]=j[D];c+=m;Q=E}return Q.buffer};ab.qA.bh=function(Z){var S=0,b=[],Y=Z.length;
while(S<Y){while(Z[S]!=255&&S<Y)S++;while(Z[S]==255)S++;var P=Z[S];S++;if(b[P]==null)b[P]=[];b[P].push(S-2);
if(P==216)continue;if(P==217)break;if(224<=P&&P<=239||P==218||P==219||P==192||P==193||P==194||P==196||P==221||P==254){var w=k.gU(Z,S);
S+=w;if(P==218)while(S<Y&&(Z[S]!=255||(Z[S+1]==0||208<=Z[S+1]&&Z[S+1]<=215)))S++;continue}console.log("unknown marker ",P.toString(16),S);
break}if(b[217]==null){console.log("EOI marker missing");var f=Z.length-2;Z[f]=255;Z[f+1]=217;b[217]=[f]}return b};
ab.qA.ajW=function(Z){Z=new Uint8Array(Z);if(Z[0]!=255)return Z.buffer;var S=ab.qA.bh(Z),b=ab.qA.Gx(Z,S);
if(b.numComponents!=4)return Z.buffer;var Y=b.width,P=b.height,w=ab.qA.jG(Z,S,!0);return ab.qA.$b([[w[0].data]],Y,P,[85])};
ab.qA.Gx=function(Z,S){var b=(S[192]?S[192]:S[193]?S[193]:S[194])[0]+4,Y={};Y.progressive=S[194]!=null;
Y.precision=Z[b];b++;Y.height=k.gU(Z,b);b+=2;Y.width=k.gU(Z,b);b+=2;Y.numComponents=Z[b];b++;if(S[224]){var P=Y.jfif={};
b=S[224][0]+2+2+5+2;P.densityUnits=Z[b];b++;P.xDensity=k.gU(Z,b);b+=2;P.yDensity=k.gU(Z,b);b+=2}if(S[238]){var P=Y.adobe={};
b=S[238][0]+2+2+6;P.version=Z[b];b++;P.flags0=k.gU(Z,b);b+=2;P.flags1=k.gU(Z,b);b+=2;P.transform=Z[b];
b++}return Y};ab.qA.amL=function(Z,S,b){var Y=S,P=k.gU(Z,Y);Y+=2;var w=k.zG(Z,Y,4);if(w=="Exif"){Y+=6;
var f=Z.slice(Y,Y+P-8),h;try{h=UTIF.decode(f.buffer,{parseMN:!1,debug:!1})}catch(aV){}if(h)b.exif=h}else if(w=="http"){var Q=0;
while(Z[Y+Q]!=0)Q++;var e=k.zG(Z,Y,Q);Y+=Q+1;if(e=="http://ns.adobe.com/xmp/extension/"){var l=k.zG(Z,Y,32);
Y+=32;Y+=8;var O=S+P-Y;while(Z[Y+O-1]==0)O--;if(b.xmp_extn==null)b.xmp_extn="";try{b.xmp_extn+=k.cP(Z,Y,O)}catch(aV){}}else if(e=="http://ns.adobe.com/xap/1.0/"){var m=k.cP(Z.slice(Y,Y+P-Q-3));
if(m[0]=="?")m="<"+m;b.xmp=m}}else console.log(w)};ab.qA.jG=function(Z,S,b){var Y=ab.qA.Gx(Z,S),P=Y.width,w=Y.height,f=P*w,h,Q=-1,K=72,z;
if(Y.adobe)Q=Y.adobe.transform;if(b||P*w>15e7||Q==0||Q==2){var e=new PDFJS.JpegImage;e.parse(Z);var l=e.getData({width:P,height:w,forceRGB:!0,isSourcePDF:b}),h=T.f(f*4);
for(var D=0;D<f;D++){var O=D<<2,m=O-D;h[O]=l[m];h[O+1]=l[m+1];h[O+2]=l[m+2];h[O+3]=255}}else{h=ab.qA.a7e(Z.buffer,Y)}var V=S[225];
if(V)for(var D=0;D<V.length;D++)ab.qA.amL(Z,V[D]+2,Y);var q=S[217][0]+2;if(q!=Z.length)Y.suffix=Z.slice(q);
var t=[P,w,1,0,0,0,1,0];if(Y.jfif&&Y.jfif.densityUnits!=0){K=Math.round([72,1,2.54][Y.jfif.densityUnits]*Y.jfif.xDensity)}else if(Y.exif&&Y.exif[0].t282!=null){var H=Y.exif[0].t282[0];
K=H[0]/H[1]}if(Y.exif){var i=Y.exif;z=b_.Ue(i[0]);var y=i[0].t274;if(y)y=y[0];if(y!=null&&y>1&&y<20)t=T.raw.I0(y,P,w)}if(Y.xmp){z=b_.Hg(Y.xmp,z)}var j=S[237],J=[],A=[];
if(j){var a=new Uint8Array(65536),I=0,E=0;for(var D=0;D<j.length;D++){E=j[D]+2;var c=E+k.gU(Z,E);E+=2;
var u=E;while(Z[E]!=0)E++;E++;var n=k.zG(Z,u,E-u-1),o=c-E;while(I+o>a.length){var x=new Uint8Array(a.length*2);
x.set(a);a=x}var g=new Uint8Array(Z.buffer,E,o);a.set(g,I);I+=o}E=0;Z=a;while(E<I){var v=k.zG(Z,E,4);
E+=4;if(v!="8BIM"&&v!="AgHg"&&v!="PHUT"&&v!="DCSR")throw v;var R=k.gU(Z,E);E+=2;var X=Z[E++],B=k.zG(Z,E,X);
E+=X;if((X&1)==0)E++;var M=k.r(Z,E);E+=4;var q=E+M+(M&1);if(R==1028){while(E+4<q){var r=Z[E++],N=Z[E++],$=Z[E++],eQ=k.gU(Z,E);
E+=2;if(r==28&&N==2)J.push([$,k.zG(Z,E,eQ)]);E+=eQ}}else if((R&2e3)==2e3){var hN=hF.yi(Z,E,M);A.push([B,hN])}else{}E=q}if(J.length!=0)z=b_.a1t(J,z)}var bI=[{Vl:new b4(0,0,P,w),data:h.buffer,GY:K,tU:z,pf:A.length==0?null:A}],z=Y.xmp_extn;
if(z){var fq=new DOMParser,e9=fq.parseFromString(z,"image/svg+xml"),e9=e9.children[0].children[0].children[0],W=[e9.getAttribute("GImage:Data"),e9.getAttribute("GDepth:Data")];
for(var D=0;D<W.length;D++)if(W[D]){var L=atob(W[D]),bd=new Uint8Array(L.length);k.ue(bd,0,L);bd=bd.buffer;
var iw=ab.fN(bd),d7=ab.iZ(iw).Gk(bd);bI.push(d7[0])}}if(Y.suffix){var d0=Y.suffix,gS=k.zG(d0,4,4),cf=k.Ve(d0,String.fromCharCode(255)+String.fromCharCode(216)+String.fromCharCode(255));
if(ab.m0(d0,[0,0,1,10,14,0,0,0])){var E=0;while(E!=d0.length){var cT=k.ME(d0,E+2);E+=4;var fU={2272:12,2320:21,2561:13,2625:21,2721:3,2608:0}[cT];
if(fU!=null){var dX=k.l2(d0,E);E+=4;var g$=k.zG(d0,E,dX);E+=dX;var bX=k.zG(d0,E,fU);E+=fU;if(cT==2608){var aw=k.r(d0,E+24);
E+=aw+24;var hP=k.r(d0,E);E+=hP;alert("Photopea found a "+gH.tF(aw)+" MP4 video inside your image.",4e3)}}else if(cT==18502){while(k.zG(d0,E,4)!="SEFT")E+=4;
E+=4}else{break;console.log(k.LO(d0,E,128));console.log(d0.slice(E));throw cT.toString(16)}}}else if(gS=="ftyp"){alert("Photopea found a "+gH.tF(d0.length)+" MP4 video inside your image.",4e3)}else if(k.zG(d0,0,4)=="fixe"){alert("Unknown data - "+d0.length+" B - at the end of the file",3e3);
var E=4,M=k.l2(d0,E);E+=4;var eG=k.l2(d0,E);E+=4;var eB=k.l2(d0,E);E+=4;console.log(M,eG,eB,d0.slice(E,E+84));
E+=84;var bb=k.zG(d0,E,32);E+=32;E+=8;var bb=k.zG(d0,E,32);E+=32}else if(k.zG(d0,8,13)=="FocusShot_Map"){var gx=k.r(d0,0),eQ=k.l2(d0,4),bd=T.f(f*4),er=T.f(f*4);
for(var ea=0;ea<w;ea++)for(var hD=0;hD<P;hD++){var D=ea*P+hD,O=D<<2,bP=8+13+((ea>>>1)*P+hD>>>1),iz=d0[bP],iq=d0[bP+(f>>>2)];
bd[O]=bd[O+1]=bd[O+2]=iz;bd[O+3]=255;er[O]=er[O+1]=er[O+2]=iq;er[O+3]=255}bI.push({Vl:new b4(0,0,P,w),data:bd.buffer},{Vl:new b4(0,0,P,w),data:er.buffer})}else if(gS=="edof"){var y=d0[8+7];
console.log(y.toString(16));var E=8+16,cU=k.ME(d0,E),aH=k.ME(d0,E+2),f=cU*aH;E+=4;E+=32+16;var eK=T.f(f*4);
for(var D=0;D<f;D++){var O=D<<2;eK[O]=eK[O+1]=eK[O+2]=d0[E+D];eK[O+3]=255}if(y==16){}else if(y==19){var h6=eK.slice(0);
T.J.L8(eK,h6,cU,aH);var co=cU;cU=aH;aH=co;T.J.ajp(h6,eK,cU,aH)}else throw"Unknown orientation of a depth map";
bI.push({Vl:new b4(0,0,cU,aH),data:eK.buffer})}else if(cf!=-1&&!(d0[0]==255&&d0[1]==129)){try{if(cf!=0)d0=d0.slice(cf);
var d7=ab.iZ("jpg").Gk(d0.buffer);for(var D=0;D<d7.length;D++)bI.push(d7[D])}catch(aV){}}}if(bI.length>1){var dh=bI[0].Vl;
bI[0].qQ="Main";for(var D=1;D<bI.length;D++){bI[D].qQ=ab.qA.akP(new Uint8Array(bI[D].data))?"Depth Map":null;
var cX=bI[D].Vl;if(!cX.Oh(dh)){var eY=dh.c/cX.c,ga=dh.v/cX.v,h0=new fR;h0.scale(eY,ga);var a8=G.V.u4([new Uint8Array(bI[D].data),cX],1,T.J.GC(h0));
bI[D].Vl=a8.rect;bI[D].data=a8.buffer}}}if(ab.qA.J9==1)if(t[2]!=1||t[6]!=1)for(var D=0;D<bI.length;D++){var cc=bI[D],hW=new Uint8Array(cc.data),P=cc.Vl.c,w=cc.Vl.v,cU=t[0],aH=t[1],h=T.f(cU*aH*4);
T.J.ds(hW,P,w,h,t);cc.Vl=new b4(0,0,cU,aH);cc.data=h.buffer}return bI};ab.qA.akP=function(Z){var S=!0;
for(var D=0;D<Z.length;D+=4){S=S&&Z[D]==Z[D+1]&&Z[D+1]==Z[D+2]}return S};ab.qA.J9=0;ab.qA.Gk=function(Z,S,b){Z=new Uint8Array(Z);
if(Z[0]==255){var Y=ab.qA.bh(Z);if(Y[195]==null){ab.qA.J9++;var P=ab.qA.jG(Z,Y,!1);ab.qA.J9--;return P}var w=k.gU(Z,Y[195][0]+5),f=k.gU(Z,Y[195][0]+7),h=UTIF.LosslessJpegDecode(Z),Q=f*w,e=T.f(Q*4);
for(var D=0;D<Q;D++){var l=D<<2,O=l-D;e[l]=h[O];e[l+1]=h[O+1];e[l+2]=h[O+2];e[l+3]=255}return[{Vl:new b4(0,0,f,w),data:e.buffer}]}else if(Z[0]==0&&Z[4]==48&&Z[6]==1){var m=Z,V=new PDFJS.Jbig2Image,q=[];
if(S)q.push({data:S,start:0,end:S.length});q.push({data:m,start:0,end:m.length});var h=V.parseChunks(q);
if(!b)for(var D=0;D<h.length;D++)h[D]=~h[D];var f=k.r(Z,11),w=k.r(Z,15),K=Math.ceil(f/8),z=T.f(f*w*4);
for(var t=0;t<w;t++){var H=t*K;for(var i=0;i<f;i++){var l=(t*f+i)*4,y=h[H+(i>>>3)]>>>7-(i&7)&1,j=y*255;
z[l]=j;z[l+1]=j;z[l+2]=j;z[l+3]=255}}return[{Vl:new b4(0,0,f,w),data:z.buffer}]}else{var V=new PDFJS.JpxImage;
V.parse(Z);var f=V.width,w=V.height,J=V.tiles,A=V.componentsCount,a=new Uint8Array(f*w*4),I=new b4(0,0,f,w);
for(var V=0;V<J.length;V++){var E=J[V],c=E.width,u=E.height,n=c*u,o=E.items,x=new b4(E.left,E.top,c,u),g=new Uint8Array(n*4);
if(A==1)for(var D=0;D<n;D++){var v=o[D],l=D*4;g[l]=v;g[l+1]=v;g[l+2]=v;g[l+3]=255}else if(A==3)for(var D=0;
D<n;D++){var O=D*3,l=D*4;g[l]=o[O];g[l+1]=o[O+1];g[l+2]=o[O+2];g[l+3]=255}else console.log("Unknown number of components: "+A);
T.uH(g,x,a,I)}return[{Vl:I,data:a.buffer}]}};ab.H_={};ab.H_.$b=function(Z,S,b,Y){if(Y==null)Y=[70,0,0,0];
var P=Y[0]/100,Q=0;if(Z.length==1)return ab.re(Z[0][0],S,b,"webp",P);var w=k.Nm,f=k.xo,h=new ca;w(h,Q,"RIFF WEBPVP8X");
Q+=16;f(h,Q,10);Q+=4;f(h,Q,18);Q+=4;f(h,Q,S-1);Q+=3;f(h,Q,b-1);Q+=3;w(h,Q,"ANIM");Q+=4;f(h,Q,6);Q+=4;
h.Ml(Q,4);h.data[Q+3]=255;k.RG(h,Q+4,Y[2]);Q+=6;var e=[];for(var D=0;D<Z.length;D++){e.push(Z[D][0])}var l=UPNG.encode.compress(e,S,b,P==1?0:Math.max(2,Math.floor(P*500)),[!1,!0,!0,0,!0]).frames;
for(var D=0;D<Z.length;D++){w(h,Q,"ANMF");Q+=4;var O=Q;Q+=4;var m=l[D],V=m.rect,q=[V.x>>>1,V.y>>>1,V.width-1,V.height-1,Z[D][1]];
for(var K=0;K<5;K++)f(h,Q+3*K,q[K]);Q+=15;h.Ml(Q,1);h.data[Q]=1-m.blend<<1|m.dispose;Q++;var z=new Uint8Array(ab.re(m.img.buffer,V.width,V.height,"webp",1)),t=e7.Vq(z.buffer).sub,H=k.zG(z,12,4);
if(H!="VP8L"&&H!="VP8 "&&H!="VP8X")throw"e";var i=H=="VP8 "?0:H=="VP8L"?12:30,y=z.length-i;h.Ml(Q,y);
for(var K=0;K<y;K++)h.data[Q+K]=z[i+K];Q+=y;var j=Q-O-4;f(h,O,j);if((j&1)==1){h.Ml(Q,1);Q++}}f(h,4,Q-8);
return h.data.slice(0,Q).buffer};(function(){var Z=ab.w5.get("wasm/webp").buffer;WebAssembly.instantiate(Z).then(function(S){var b=S.instance.exports;
ab.H_.exp=b})}());ab.H_.Gk=function(Z){var S=new Uint8Array(Z),b=ab.H_.a4u,Y=null,P=e7.Vq(Z).sub,w={};
for(var D=0;D<P.length;D++)w[P[D].sx]=P[D];var f=w.ANIM,h=w.VP8L,Q=w["VP8 "],e=w.VP8X;if(f==null){var l,O;
if(Q){l=k.ME(S,Q.n+6);O=k.ME(S,Q.n+8)}else if(h){var m=k.l2(S,h.n+1);l=(m&(1<<14)-1)+1;O=(m>>>14&(1<<14)-1)+1}else throw"e";
var V=[b(Y,Z,{n:0,size:S.length},l,O)];return V}var q=e.n,l=1+(k.l2(S,q+4)&16777215),O=1+(k.l2(S,q+7)&16777215),K=[],z=new b4(0,0,l,O),t=T.f(l*O*4);
for(var D=0;D<P.length;D++){var H=P[D];if(H.sx!="ANMF")continue;var i=[];for(var y=0;y<5;y++)i.push(k.l2(S,H.n+y*3)&16777215);
var j=new b4(i[0]*2,i[1]*2,i[2]+1,i[3]+1),J=i[4],A=b(Y,Z,{n:H.n+16,size:H.size-16},l,O),a=new Uint8Array(A.data),I=S[H.n+15];
if(I>>>1==0)T.p.xJ("norm",a,j,t,z,j,1);else T.uH(a,j,t,z);K.push({qQ:"_a_"+K.length+","+J,Vl:z.clone(),data:t.buffer.slice(0)});
if((I&1)==1){T._U(a,0);T.uH(a,j,t,z)}}return K};ab.H_.a4u=function(Z,S,b,Y,P){var w=ab.H_.exp,f=w.memory,h=5e6+2*b.size+Y*P*10;
ab.BC(w,h);var Q=new Uint8Array(f.buffer),e=w.malloc(b.size);Q.set(new Uint8Array(S,b.n,b.size),e);var l=w.malloc(8),O=w.WebPDecodeARGB(e,b.size,l,l+4),m=k.l2(Q,l),V=k.l2(Q,l+4),q=m*V*4,K=T.f(q);
for(var D=0;D<q;D+=4){K[D]=Q[O+D+1];K[D+1]=Q[O+D+2];K[D+2]=Q[O+D+3];K[D+3]=Q[O+D]}w.WebPFree(O);w.free(l);
w.free(e);return{Vl:new b4(0,0,m,V),data:K.buffer}};ab.a9r=function(){function Z(h,Q,e,l){var O=new Uint8Array(h[0][0]),m=new Uint32Array(O.buffer),V=[],q={},z=24,t=0,J=0;
for(var D=0;D<m.length;D++){var K=m[D]&16777215;if(q[K]==null){q[K]=V.length;V.push(K);if(V.length>256){V=null;
break}}}if(V){z=1;while(1<<z<V.length)z*=2;if(z==2)z=4}var H={Yu:Q,XE:e,rn:1,x6:z,T_:0,ahQ:t},i=4*Math.floor((H.x6*H.Yu+31)/32);
H.size=i*H.XE+2;var y=new ca,j=V?(1<<z)*4:0;k.Nm(y,J,"BM");J+=2;k.xo(y,J,i*e+16+40+j);J+=4;k.xo(y,J,0);
J+=4;k.xo(y,J,54+j);J+=4;y.Ml(J,40);k.xo(y,J,40);J+=4;f(y.data,J,H,i);J+=36;if(V){y.Ml(J,j);var A=y.data;
for(var D=0;D<V.length;D++){var a=J+D*4,I=V[D]>>>16,E=V[D]>>>8&255,c=V[D]&255;A[a]=I;A[a+1]=E;A[a+2]=c}J+=j}y.Ml(J,i*e);
if(z==24)for(var u=0;u<e;u++){var n=J+(e-1-u)*i;for(var o=0;o<Q;o++){var x=(u*Q+o)*4;y.data[n+o*3+2]=O[x];
y.data[n+o*3+1]=O[x+1];y.data[n+o*3+0]=O[x+2]}}else if(z==8)for(var u=0;u<e;u++){var n=J+(e-1-u)*i;for(var o=0;
o<Q;o++){var x=u*Q+o,g=q[m[x]&16777215];y.data[n+o]|=g}}else if(z==4)for(var u=0;u<e;u++){var n=J+(e-1-u)*i;
for(var o=0;o<Q;o++){var x=u*Q+o,g=q[m[x]&16777215];y.data[n+(o>>>1)]|=g<<4-(o&1)*4}}else if(z==1)for(var u=0;
u<e;u++){var n=J+(e-1-u)*i;for(var o=0;o<Q;o++){var x=u*Q+o,g=q[m[x]&16777215];y.data[n+(o>>>3)]|=g<<7-(o&7)}}J+=i*e+2;
return y.data.slice(0,J).buffer}function S(h){h=new Uint8Array(h);if(k.l2(h,0)==40)return[b(h.buffer,0)];
var Q=0,e=k.zG(h,Q,2);Q+=2;if(e!="BM"){alert("Unsupported BMP format: "+e);return}var l=k.l2(h,Q);Q+=4;
Q+=4;var O=k.l2(h,Q);Q+=4;return[b(h.buffer,Q,O)]}function b(h,Q,e){h=new Uint8Array(h);var l=k.l2(h,Q),O=w(h,Q+4);
if(O.rn!=1)alert("unsupported number of color planes: "+O.rn);if(O.T_!=0&&O.T_!=1&&O.T_!=2&&O.T_!=3){alert("Unsupported BMP compression: "+O.T_);
return}Q+=l;var m=Q,V=h;if(e==null)e=Q;if(O.T_==1||O.T_==2){var q=P(h,e,O);O.x6=8;h=q;e=0}var K=4*Math.floor((O.x6*O.Yu+31)/32),z=O.Yu,t=Math.abs(O.XE),H=new Uint8Array(z*t*4);
H.fill(255);if(O.x6==32)for(var i=0;i<t;i++){var y=e+(t-1-i)*K;for(var j=0;j<z;j++){var J=(i*z+j)*4;
H[J]=h[y+j*4+2];H[J+1]=h[y+j*4+1];H[J+2]=h[y+j*4+0];H[J+3]=h[y+j*4+3]}}else if(O.x6==24)for(var i=0;
i<t;i++){var y=e+(t-1-i)*K;for(var j=0;j<z;j++){var J=(i*z+j)*4;H[J]=h[y+j*3+2];H[J+1]=h[y+j*3+1];H[J+2]=h[y+j*3+0]}}else if(O.x6==16)for(var i=0;
i<t;i++){var y=e+(t-1-i)*K;for(var j=0;j<z;j++){var J=(i*z+j)*4,A=h[y+j*2+1]<<8|h[y+j*2];H[J]=(A>>>11)*(255/31);
H[J+1]=(A>>>5&63)*(255/63);H[J+2]=(A&31)*(255/31)}}else if(O.x6==8)for(var i=0;i<t;i++){var y=e+(t-1-i)*K;
for(var j=0;j<z;j++){var J=(i*z+j)*4,a=h[y+j];H[J]=V[m+4*a+2];H[J+1]=V[m+4*a+1];H[J+2]=V[m+4*a+0]}}else if(O.x6==4)for(var i=0;
i<t;i++){var y=e+(t-1-i)*K;for(var j=0;j<z;j++){var J=(i*z+j)*4,a=h[y+(j>>1)];a=a>>4-4*(j&1);a=a&15;
H[J]=V[m+4*a+2];H[J+1]=V[m+4*a+1];H[J+2]=V[m+4*a+0]}}else if(O.x6==1)for(var i=0;i<t;i++){var y=e+(t-1-i)*K;
for(var j=0;j<z;j++){var J=(i*z+j)*4,I=h[y+(j>>3)];I=I>>7-(j&7);I=I&1;H[J]=V[m+4*I+2];H[J+1]=V[m+4*I+1];
H[J+2]=V[m+4*I+0]}}else throw"Unknown bit depth "+O.x6;if(O.XE<0){var E=new Uint32Array(H.buffer),c=t>>>1;
for(var i=0;i<c;i++){var u=i*z,n=(t-i-1)*z;for(var j=0;j<z;j++){var o=E[u+j];E[u+j]=E[n+j];E[n+j]=o}}}return{Vl:new b4(0,0,z,t),data:H.buffer}}function Y(h,D){return h>>>4-((D&1)<<2)&15}function P(h,Q,e){var l=e.Yu,O=Math.abs(e.XE),m=new Uint8Array(l*O),V=0,q=0,D=0;
while(q<O){var K=h[Q++],z=h[Q++],t=q*l+V;if(K>0){if(e.x6==4)for(D=0;D<K;D++){m[t+D]=Y(z,D)}else for(D=0;
D<K;D++){m[t+D]=z}V+=K}else if(K==0&&z==0){q++;V=0}else if(K==0&&z==1){break}else if(K==0&&z==2){V+=h[Q++];
q+=h[Q++]}else{var H=z;if(e.x6==4){for(D=0;D<z;D++){m[t+D]=Y(h[Q+(D>>>1)],D)}H=Math.ceil(z/2)}else{for(D=0;
D<z;D++){m[t+D]=h[Q+D]}}if((H&1)!=0)H++;Q+=H;V+=z}}return m}function w(h,Q){var e=k.xq,l=k.l2,O=k.ME,m={};
m.Yu=e(h,Q);Q+=4;m.XE=e(h,Q);Q+=4;m.rn=O(h,Q);Q+=2;m.x6=O(h,Q);Q+=2;m.T_=l(h,Q);Q+=4;m.size=l(h,Q);Q+=4;
var V=e(h,Q);Q+=4;var q=e(h,Q);Q+=4;m.ahQ=l(h,Q);Q+=4;Q+=4;return m}function f(h,Q,e,l){k.Fu(h,Q,e.Yu);
Q+=4;k.Fu(h,Q,e.XE);Q+=4;k.bK(h,Q,e.rn);Q+=2;k.bK(h,Q,e.x6);Q+=2;k.Fu(h,Q,e.T_);Q+=4;k.Fu(h,Q,e.size);
Q+=4;k.Fu(h,Q,2834);Q+=4;k.Fu(h,Q,2834);Q+=4;k.Fu(h,Q,e.ahQ);Q+=4;Q+=4}return{Gk:S,$b:Z,a2M:b}}();ab.qB={};
ab.qB.$b=function(Z,S,b,Y){if(Y==null)Y=[100,0,0,0,0];var P=[],w=[],f=S*b*4,K=null;for(var h=0;h<Z.length;
h++){var Q=new Uint8Array(Z[h][0].slice(0));for(var D=0;D<f;D+=4){var e=Q[D+3]=Q[D+3]>127?255:0;if(e==0)Q[D]=Q[D+1]=Q[D+2]=0}P.push(Q.buffer);
w.push(Z[h][1])}var l=Math.round(2+254*Y[0]/100),O=UPNG.encode.compress(P,S,b,l,[!0,!1,!1,8,!1]),m=O.plte,V=new Uint8Array(4),q=new Uint32Array(V.buffer);
for(var D=0;D<m.length;D++){q[0]=m[D];var z=V[0];V[0]=V[2];V[2]=z;m[D]=q[0];if(q[0]==0)K=D}while(m.length<256)m.push(0);
var t=new Uint8Array(2e3+S*b*Z.length),H=Y[2],i={palette:m};if(H!=1)i.loop=H==0?0:H-1;var y=new GifWriter(t,S,b,i);
for(var D=0;D<Z.length;D++){var j=O.frames[D],J=j.rect,A=j.blend,a=j.dispose;y.addFrame(J.x,J.y,J.width,J.height,j.img,{transparent:K,disposal:a+1,delay:Math.round(w[D]/10)})}return t.slice(0,y.end()).buffer};
ab.qB.Gk=function(Z){var S=Date.now(),b=[],Y=UGIF.decode(Z),P=UGIF.toRGBA8(Y),w=new b4(0,0,Y.width,Y.height);
for(var D=0;D<P.length;D++){var f=Y.frames[D];b.push({Vl:w.clone(),qQ:"_a_frm"+D+","+f.delay*10,data:P[D]})}return b};
ab.b1={};ab.b1.$b=function(Z,S,b,Y){console.log(Z);if(S>256||b>256){alert("Maximum ICO size is 256x256 px. Will be cropped.",4e3);
var P=Math.min(S,256),w=Math.min(b,256),f=new b4(0,0,P,w),h=T.f(f.X()*4),Q=new b4(0,0,S,b),e=new Uint8Array(Z[0][0]);
T.uH(e,Q,h,f);Z[0][0]=h.buffer;S=P;b=w}var l=new ca,O=0,m=Y&&Y[0]==!0;k.RG(l,O,0);O+=2;k.RG(l,O,m?2:1);
O+=2;k.RG(l,O,1);O+=2;var V=new Uint8Array(ab.iZ("png").$b(Z,S,b));l.Ml(O,16);l.data[O]=S==256?0:S;O++;
l.data[O]=b==256?0:b;O++;O+=2;k.RG(l,O,m?Math.round(S/2):1);O+=2;k.RG(l,O,m?Math.round(b/2):32);O+=2;
k.xo(l,O,V.length);O+=4;k.xo(l,O,6+16);O+=4;l.Ml(O,V.length);for(var D=0;D<V.length;D++)l.data[O+D]=V[D];
O+=V.length;var q=new Uint8Array(O);for(var D=0;D<O;D++)q[D]=l.data[D];return q.buffer};ab.b1.Gk=function(Z){Z=new Uint8Array(Z);
var S=4,b=k.ME(Z,S);S+=2;var Y=[];for(var D=0;D<b;D++){var P=ab.b1.a8n(Z,S+D*16),w=Z.buffer.slice(P.offset,P.offset+P.size),f=ab.fN(w);
f=f?f:"bmp";if(f=="png"){var h=ab.iZ(f),Q=h.Gk(w);P.G4=Q[0]}else{var e=ab.iZ("BMP").a2M(w,0),w=T.f(P.Yu*P.XE*4);
T.uH(new Uint8Array(e.data),new b4(0,0,e.Vl.c,e.Vl.v),w,new b4(0,P.XE,P.Yu,P.XE));e.data=w.buffer;e.Vl.v=P.XE;
P.G4=e}Y.push(P)}Y.sort(function(l,O){if(l.Yu!=O.Yu)return l.Yu-O.Yu;return l.ag3-O.ag3});return[Y.pop().G4]};
ab.b1.a8n=function(Z,S){var b={};b.Yu=Z[S];S++;if(b.Yu==0)b.Yu=256;b.XE=Z[S];S++;if(b.XE==0)b.XE=256;
b.acQ=Z[S];S++;S++;b.aoB=k.ME(Z,S);S+=2;b.ag3=k.ME(Z,S);S+=2;b.size=k.l2(Z,S);S+=4;b.offset=k.l2(Z,S);
S+=4;return b};ab.Qu={};ab.Qu.Gk=function(Z){var S=Date.now(),Y,O=!0;if(T.raw.Bk(Z.byteLength))return[T.raw.aj$(Z)];
var b=UTIF.decode(Z);if(b[0].t33421)Y=b[0];else if(b[0].subIFD&&b[0].t271&&b[0].t271[0]=="Hasselblad"){Y=b[0].subIFD[0];
Y.t33421=[2,2]}else if(b[0].subIFD&&b[0].subIFD[0].t33421){Y=b[0].subIFD[0];if(Y.t50706==null){if(Y.t258[0]==8)Y.t258[0]=12}}else if(b[0].subIFD&&b[0].subIFD[0]&&b[0].subIFD[0].t262&&b[0].subIFD[0].t262[0]==34892)Y=b[0].subIFD[0];
else if(b[0].subIFD&&b[0].subIFD[1]&&b[0].subIFD[1].t33421)Y=b[0].subIFD[1];else if(b[0].subIFD&&b[0].subIFD[2]&&b[0].subIFD[2].t33421)Y=b[0].subIFD[2];
else if(b[3]&&b[3].t50648){var P=b[0].exifIFD,w=P.makerNote;Y=b[3];var f=w.t224[1],h=w.t224[2];Y.t256=[f];
Y.t257=[h];Y.t258=[16];Y.t259=[7];Y.t262=[32803];Y.t277=[1];Y.t33421=[2,2];var Q=Y.t50656[0],e=T.raw.Et[Q];
if(e==null)throw"e";Y.t33422=e}if(Y){UTIF.decodeImage(Z,Y,b);for(var l in b[0])if((l[0]=="t"||l[0]=="e"||l[0]=="d")&&Y[l]==null)Y[l]=b[0][l];
Y.BP=b[0].t274?b[0].t274[0]:1;return[Y]}var m=1/256;for(var D=0;D<b.length;D++)if(b[D].t258&&b[D].t258[0]==16&&b[D].t277&&b[D].t277[0]==1){}else O=!1;
if(O){var V=0,q=0,K=0;for(var D=0;D<b.length;D++){UTIF.decodeImage(Z,b[D],b);var z=b[D].data;for(var t=0;
t<z.length;t+=2){var H=z[t+1]<<8|z[t];if(H>V)V=H;q+=H;K++}}m=1/256*65535/(.5*V+.5*(2*q/K))}var i=[];
for(var D=0;D<b.length;D++){var y=b[D],j=72;UTIF.decodeImage(Z,y,b);var J=y.t282,A=y.t296;if(J!=null&&A!=null){j=J[0][0]/J[0][1];
if(A[0]==3)j=Math.round(j/2.54)}if(y.width==null)continue;var a=UTIF.toRGBA8(y,m).buffer,I=b_.Ue(y);
i.push({Vl:new b4(0,0,y.width,y.height),data:a,GY:j,tU:I})}return i};ab.Qu.$b=function(Z,S,b,Y){if(Y==null)Y=[!1];
var P={},w=Z[0];if(w[3]!=null&&Y[0])P=b_.tk(w[3]);if(w[2]!=null){P.t282=P.t283=[[Math.round(w[2]),1]];
P.t296=[2]}return UTIF.encodeImage(w[0],S,b,P)};ab.zN={};ab.zN.Ke=!0;ab.zN.Gk=function(Z,S){c0.Vq(Z,S)};
ab.zN.adG=function(Z,S,b,Y){if(Y==null)Y=[!1,!1,!1,!1];if(!Y[0])Z.Zd();var P=new ca,w=c0.TG(Z,P,Y);return[P.data.buffer,w]};
ab.zN.$b=function(Z,S,b,Y){var P=ab.zN.adG(Z,S,b,Y),w=P[0],f=P[1];return w.byteLength==f?w:w.slice(0,f)};
ab.fW={};ab.fW.Ke=!0;ab.fW.Gk=function(Z,S){var b=pako.inflate(new Uint8Array(Z)),Y=k.gU(b,0),P=k.gU(b,2),w=4;
S.c=k.r(b,w);w+=4;S.v=k.r(b,w);w+=4;S.buffer=T.f(S.c*S.v*4);var f=k.gU(b,w);w+=2;w+=4;for(var h=0;h<f;
h++){var Q=S.Dl(),a=1,I=2,E=3,c=0;S.t.push(Q);var e=k.r(b,w);w+=4;var l=w,O=k.gU(b,l);l+=2;var m=k.cP(b,l,O);
l+=O;Q.wc(m);l++;Q.rect.x=k.Dk(b,l);l+=4;Q.rect.y=k.Dk(b,l);l+=4;Q.rect.c=k.r(b,l);l+=4;Q.rect.v=k.r(b,l);
l+=4;if(Y>3)l+=4;Q.opacity=Math.round(255*b[l]/100);l++;Q.Ba(b[l]!=0);l++;Q.WL="norm,lddg,norm,dark,diff,norm,hLit,norm,norm,lite,mul ,over,scrn,fsub".split(",")[b[l]];
l++;l++;if(Y>3){var V=k.gU(b,l);l+=2;if(V!=0){var q=JSON.parse(k.cP(b,l,V));l+=V;var K=q.text,z=q.textSettings,t=z.font,H=z.size,i=z.padding,y=parseInt(z.color.slice(1),16);
Q.add.lnsr="rend";Q.add.TySh=eO.nR(0,0);Q.add.TySh.az=new b4(0,0,100,100);Q.add.TySh.A=new fR(1,0,0,1,Q.rect.x+i,Q.rect.y+i);
var j=Q.add.TySh.HK;eO.es(j,1);eO.oZ(j,[0,0,Q.rect.c-i*2,Q.rect.v]);eO.kk(j,0,K);var J=eO.SZ(j,0,1);
J.xp.FontSize=H;J.xp.FillColor={Type:1,Values:[1,(y>>>16&255)/255,(y>>>8&255)/255,(y>>>0&255)/255]};
if(z.bold)t+="-Bold";eO.FK(J,t);J.jm.Justification=["left","right","center"].indexOf(z.align);eO.Yg(j,0,K.length,J)}}var A=k.r(b,l);
l+=4;if(A!=Q.rect.X()*4)throw"e";Q.buffer=T.f(A);if(Y>3){a=0;I=1;E=2;c=3}for(var D=0;D<A;D+=4){Q.buffer[D]=b[l+D+a];
Q.buffer[D+1]=b[l+D+I];Q.buffer[D+2]=b[l+D+E];Q.buffer[D+3]=b[l+D+c]}l+=A;var u=k.r(b,l);l+=4;if(u==0&&Y>3){w+=e;
continue}var n=b[l];l++;var o=k.gU(b,l);l+=2;if(u!=0){Q.d=new F.bN;Q.d.rect=Q.rect.clone();Q.d.channel=T.f(Q.rect.X());
for(var D=0;D<u;D+=4)Q.d.channel[D>>>2]=b[l+D+1];l+=u}if(n!=0){var x=JSON.parse(a4.default);Q.add.lmfx=x;
for(var D=0;D<a4.order.length;D++)x[a4.Ol[D]]={t:"VlLs",v:[]};var g={"102":9,"101":2,"103":0,"104":3,"105":8};
for(var D=0;D<n;D++){var v=k.gU(b,l),R=l+v+4,X=b.slice(l,R),B=b[l+2];l+=3;var M=g[B+""],N=JSON.parse(a4.FT[M]);
x[a4.Ol[M]].v.push({t:"Objc",v:N});if(M!=0){N.Md.v.BlnM=is.QT("norm");N.Opct.v.val=b[l];l++;if(M==9||M==2){N.Dstn.v.val=b[l+1];
l+=2}else l+=2;N.blur.v.val=Math.round(b[l]*1.2);l++;if(M==9||M==2){N.uglg.v=!1;N.lagl.v.val=180-k.gU(b,l);
l+=2}N.Clr.v=T.W.RQ({h:b[l+1],l:b[l+2],O:b[l+3]})}else{N.hglM.v.BlnM=N.sdwM.v.BlnM=is.QT("norm");l+=2;
var $=b[l++],eQ=b[l++];N.blur.v.val=Math.round(Math.sqrt(eQ*$)*1.3);N.srgR.v.val=Math.round(100*$/eQ);
N.uglg.v=!1;N.lagl.v.val=180-k.gU(b,l);l+=2;N.hglO.v.val=b[l++];N.hglC.v=T.W.RQ({h:b[l+1],l:b[l+2],O:b[l+3]});
l+=4;N.sdwO.v.val=b[l++];N.sdwC.v=T.W.RQ({h:b[l+1],l:b[l+2],O:b[l+3]});l+=4}l=R}}if(l-w!=e){var hN=k.r(b,l),e9=0;
l+=4;l++;var O=k.gU(b,l);l+=2;var K=k.cP(b,l,O);l+=O;K=K.replace(/\r/g,"\n");var O=k.gU(b,l);l+=2;var t=k.cP(b,l,O);
l+=O;var H=k.gU(b,l);l+=2;var bI=Q.rect.x,fq=Q.rect.c;if(hN&4)e9=1;if(hN&2)e9=2;var W=Math.round(H*.4);
if(e9==0||e9==2)fq+=W;if(e9==1||e9==2){fq+=W;bI-=W}Q.add.lnsr="rend";Q.add.TySh=eO.nR(0,0);Q.add.TySh.az=new b4(0,0,100,100);
Q.add.TySh.A=new fR(1,0,0,1,bI,Q.rect.y+H*.25);var j=Q.add.TySh.HK;eO.es(j,1);eO.oZ(j,[0,0,fq,Q.rect.v]);
eO.kk(j,0,K);var J=eO.SZ(j,0,1);J.xp.FontSize=H;J.xp.FillColor={Type:1,Values:[1,b[l+1]/255,b[l+2]/255,b[l+3]/255]};
l+=4;if(b[l+5])t+="-Bold";if(b[l+6])t+="-Italic";eO.FK(J,t);J.jm.Justification=e9;l+=8;eO.Yg(j,0,K.length,J)}w+=e}};
ab.eT={};ab.eT.Ke=!0;ab.eT.Gk=function(Z,S){bl.Vq(Z,S)};ab.no={};ab.no.Ke=!0;ab.no.Gk=function(Z,S){ev.Vq(Z,S)};
ab.j0={};ab.j0.Ke=!0;ab.j0.Gk=function(Z,S){dY.Vq(Z,S)};ab.Fc={};ab.Fc.Ke=!0;ab.Fc.Gk=function(Z,S){cr.Vq(Z,S)};
ab.mM={};ab.mM.Ke=!0;ab.mM.Gk=function(Z,S){fo.Vq(Z,S)};ab.c2={};ab.c2.Ke=!0;ab.c2.$b=function(Z,S,b,Y,P){if(Y==null)Y=[!0,!1,!1,!1,!0,!0];
var w=iZ.$C(Z,{hf:Y[0],hidden:Y[1],alZ:Y[2],aaj:Y[3],names:Y[4],a0i:Y[5],aoV:S,af5:b},P.S9);return w};
ab.c2.Gk=function(Z,S,b){iZ.Vq(Z,S,b)};ab.U3={};ab.U3.Ke=!0;ab.U3.Gk=function(Z,S){var b=150,Y=new fR(1,0,0,-1,0,0);
Y.scale(b/72,b/72);S.GY=b;var P=new eD(S,Y,!0);FromPS.Parse(Z,P)};ab.fC={};ab.fC.Ke=!0;ab.fC.$b=function(Z,S,b,Y,P){if(Y==null)Y=["",100,!1,!1,!1];
Y[5]=["jpg"];var w=new ToPDF;hU.$C(Z,Y,w,P.S9);return w.buffer};ab.fC.Gk=function(Z,S,b){var Y=2;while(!0){var P=Y*72,w=new fR(1,0,0,-1,0,0);
w.scale(P/72,P/72);S.GY=P;var f=new eD(S,w,!0);FromPDF.Parse(Z,f);var h=Math.max(S.c,S.v);if(b&&h<Math.max(b[0],b[1])){S.t=[];
var Q=Y;while(h*(Y/Q)<Math.max(b[0],b[1]))Y++}else break}};ab.mv={};ab.mv.Ke=!0;ab.mv.Gk=function(Z,S){var b=72,Y=new fR(1,0,0,1,0,0);
Y.scale(b/72,b/72);S.GY=b;var P=new eD(S,Y,!1);FromWMF.Parse(Z,P)};ab.Tx={};ab.Tx.XP=!0;ab.Tx.Ke=!0;
ab.Tx.$b=function(Z,S,b,Y,P){if(Y==null)Y=["",!1,!1,!1];Y[4]=[];var w=new ToEMF;hU.$C(Z,Y,w,P.S9);return w.buffer};
ab.Tx.Gk=function(Z,S){var b=72,Y=new fR(1,0,0,1,0,0);Y.scale(b/72,b/72);S.GY=b;var P=new eD(S,Y,!1);
FromEMF.Parse(Z,P)};ab.Fn={};ab.Fn.Ke=!0;ab.Fn.Gk=function(Z,S){return fW.Vq(Z,S)};ab.Aq={};ab.Aq.Gk=function(Z,S){var b=es.Vq(Z),Y=new Uint8Array(Z),P=0,w,f,h,Q,e,l,O,m,V=0,q=0,K=0,z=0,t=0;
for(var H=0;H<b.sub.length;H++){var i=b.sub[H],P=i.n;if(i.sx=="BMHD"){var y=[];for(var D=0;D<4;D++)y[D]=k.gU(Y,P+2*D);
P+=8;Q=y[2];e=y[3];f=y[0];h=y[1];w=T.f(f*h*4);l=Y[P++];O=Y[P++];m=Y[P++]}else if(i.sx=="CMAP")V=P;else if(i.sx=="CAMG"){var j=k.r(Y,P);
q=j&32768,K=j&4,z=j&2048;t=j&128}else if(i.sx=="BODY"){var J=f+15>>>4<<1,A=l+O,a=T.f(J*h*A),u,n,o;dk.x9(Y,P,i.size,a,0,a.length);
var I=l-2,E=(1<<I)-1,c=Math.round(255/E);for(var e=0;e<h;e++)for(var Q=0;Q<f;Q++){var x=0;for(var g=0;
g<A;g++){var v=(e*A+g)*J*8+Q,R=a[v>>>3]>>>7-(v&7)&1;x|=R<<g}var X=x>>>l,x=x&(1<<l)-1,D=e*f+Q,B=D<<2;
if(V!=0){if(z!=0&&x>>>I!=0){var M=x>>>I,r=(x&E)*c;if(M==1)o=r;else if(M==2)u=r;else if(M==3)n=r}else{var r=V+x*3;
u=Y[r+0];n=Y[r+1];o=Y[r+2]}}else{u=x>>>0&255;n=x>>>8&255;o=x>>>16&255}w[B+0]=u;w[B+1]=n;w[B+2]=o;w[B+3]=255}}}return[{Vl:new b4(0,0,f,h),data:w.buffer}]};
ab.si={};ab.si.Ke=!1;ab.si.$b=function(Z,S,b,Y){var P=Z[0][4],w=new Uint8Array(Z[0][0]),f=2,h=P?!0:!1,Q=h?4:3,e=new Uint8Array(S*b*Q);
for(var l=0;l<b;l++)for(var O=0;O<S;O++){var m=l*S+O<<2,V=((b-l-1)*S+O)*Q;e[V]=w[m+2];e[V+1]=w[m+1];
e[V+2]=w[m+0];if(h)e[V+3]=P[0][l*S+O]}if(!0){var q=e.length,K=0,z=new Uint8Array(q*2),t=0,H=0,i=S*Q;
while(H<q){var y=H,j=0,J=i*(Math.floor(H/i)+1);while(y<J&&j<128){var A=!0;for(var D=0;D<Q;D++)A=A&e[H+D]==e[y+D];
if(!A)break;y+=Q;j++}if(j==1){var a=1;while(a<128&&H+(a+1)*Q<J){var A=!0,I=H+a*Q;for(var D=0;D<Q;D++)A=A&e[I+D]==e[I+Q+D];
if(A)break;a++}z[t++]=a-1;for(var E=0;E<a;E++)for(var D=0;D<Q;D++)z[t++]=e[H++]}else{z[t++]=127+j;for(var D=0;
D<Q;D++)z[t+D]=e[H+D];t+=Q;H+=Q*j;K+=j}}e=z.slice(0,t);f+=8}var c=new Uint8Array(18+e.length+26);c[2]=f;
k.bK(c,12,S);k.bK(c,14,b);c[16]=Q*8;c[17]=Q==4?8:0;c.set(e,18);k.ue(c,18+e.length+8,"TRUEVISION-XFILE.");
return c.buffer};ab.si.Gk=function(Z){var S=new Uint8Array(Z),b=0,Y=S[0],P=S[1],w=S[2],f=S[4]*256+S[3],h=S[6]*256+S[5],Q=S[7],e=S[9]*256+S[8],l=S[11]*256+S[10],O=S[13]*256+S[12],m=S[15]*256+S[14],V=S[16],q=S[17],K=q>>>4,z=k.zG(S,18,Y),t=T.f(O*m*4),b=18+Y+(h*Q>>>3),H=new Uint8Array(S.buffer,b);
if(w>3){var i=0,y=S,j=new Uint8Array(O*m*V>>>3),J=b,A=0,a=S.length,I=V>>>3;while(A<j.length){var C=y[J];
J++;if(C<128)for(var D=0;D<C+1;D++){for(var E=0;E<I;E++){j[A]=y[J];A++;J++}}else{for(var D=0;D<C-127;
D++){for(var E=0;E<I;E++){j[A]=y[J+E];A++}}J+=I}}w-=8;H=j;b=J}else b+=O*m*V>>>3;var c=new Uint8Array(4),u=ab.si.aix;
for(var n=0;n<m;n++)for(var o=0;o<O;o++){var x=(K&2)==0?(m-n-1)*O+o:n*O+o,g=n*O+o,v,R,X,B=255,M=x*V>>>3;
if(w==1){var r=0;if(V==8)r=H[M];else throw"e";u(S,18+Y+f+(r*Q>>>3),Q,c);v=c[0];R=c[1];X=c[2];B=c[3]}else if(w==2){u(H,M,V,c);
v=c[0];R=c[1];X=c[2];B=c[3]}else if(w==3){if(V==8)v=R=X=H[M];else throw"e"}var N=g*4;t[N]=v;t[N+1]=R;
t[N+2]=X;t[N+3]=B}var c={Vl:new b4(0,0,O,m),data:t.buffer,qQ:z};if(T.PV(t)){var $=T.f(O*m);T.to(t,$,3);
T._U(t,4278190080,16777215);c.eP=[$]}return[c]};ab.si.aix=function(Z,S,b,Y){var P,w,f,h=255;if(b==24||b==32){f=Z[S];
w=Z[S+1];P=Z[S+2];if(b==32)h=Z[S+3]}else if(b==16){var Q=Z[S+1]<<8|Z[S+0];P=Q>>>10&31;w=Q>>>5&31;f=Q>>>0&31;
P=Math.round(P*(255/31));w=Math.round(w*(255/31));f=Math.round(f*(255/31))}else throw"e";Y[0]=P;Y[1]=w;
Y[2]=f;Y[3]=h};ab.r_={};ab.r_.Gk=function(Z){var S=new Uint8Array(Z),b=0,Y=112,P=42,w=k.l2,l;b+=8;var f=S[b];
b++;if(f!=P)throw"e";var h=w(S,b);b+=4;var Q=k.AT(S,b,h);b+=h*2;var e=[];while(b<S.length){l=w(S,b);
b+=4;if(l!=Y)throw l;b+=4;l=S[b];b++;if(l!=P)throw l;var O=w(S,b);b+=4;var m=S[b];b++;if(m!=P){b-=5;
O=w(S,b);b+=8;l=S[b];b++;if(l!=P)throw l}var V=w(S,b)*2;b+=4;if(O>0)e.push(b+V);b+=V+O}var q=new DOMParser,K=q.parseFromString(Q,"image/svg+xml").firstChild.firstChild,z=[];
ab.r_.yy(K,S,e,z);return z};ab.r_.yy=function(Z,S,b,Y){var P=Z.firstChild.firstChild;if(P.tagName=="Image"){var w=P.getElementsByTagName("ImageDescription")[0],f=w.children[0].children,h=w.children[1].children,Q=b.shift(),e=[];
for(var D=0;D<h.length;D++)e.push(parseInt(h[D].getAttribute("NumberOfElements")));while(e.length>3)e[2]*=e.pop();
var l=f.length,O=e[0],m=e[1],V=e[2],q=parseInt(h[0].getAttribute("BytesInc"));for(var K=0;K<V;K++){var z=T.f(O*m*4);
T._U(z,4278190080);for(var t=0;t<l;t++){var H=T.f(O*m);if(q==1)for(var i=0;i<H.length;i++)H[i]=S[Q+i];
else if(q==2)for(var i=0;i<H.length;i++)H[i]=Math.min(255,(S[Q+i*2+1]<<8|S[Q+i*2])>>>2);else throw q;
if(t!=3)T.y8(H,z,t);if(l==1){T.y8(H,z,1);T.y8(H,z,2)}Q+=O*m*q}Y.push({Vl:new b4(0,0,O,m),data:z.buffer})}}else{var y=Z.children,j=0;
while(j<y.length&&y[j].tagName!="Children")j++;if(j==y.length)throw"e";y=y[j].children;for(var J=0;J<y.length;
J++)ab.r_.yy(y[J],S,b,Y)}};ab.$J={};ab.$J.Gk=function(Z){var S=new Uint8Array(Z),b=0,Y={},l=1e9;for(var D=0;
D<306;D++){var P=k.zG(S,b,8).trim(),w=k.zG(S,b+9,71).split("/")[0].trim();Y[P]=w;b+=80;if(P=="END"){b=Math.ceil(b/2880)*2880;
break}}var f=parseInt(Y.NAXIS1),h=parseInt(Y.NAXIS2),Q=f*h,e=parseInt(Y.BITPIX),O=-1e9,m=new Float32Array(Q),V=new Float32Array(Z,b,Z.byteLength-b>>>2);
for(var D=0;D<Q;D++){var q=D<<2,K=D<<1;if(e==-32){var z=S[b+q+0];S[b+q+0]=S[b+q+3];S[b+q+3]=z;var z=S[b+q+1];
S[b+q+1]=S[b+q+2];S[b+q+2]=z;m[D]=V[D]}else if(e==16){m[D]=k.ME(S,b+K)}else throw e;var t=m[D];if(t<l)l=t;
if(t>O)O=t}var H=T.f(Q*4),i=1/O;for(var y=0;y<h;y++)for(var j=0;j<f;j++){var D=y*f+j,J=(h-y-1)*f+j,q=J<<2,t=m[D]*i;
H[q]=H[q+1]=H[q+2]=255*t;H[q+3]=255}return[{Vl:new b4(0,0,f,h),data:H,qQ:Y.OBJECT}]};ab.iA={};ab.iA.Gk=function(Z){var S=new Uint8Array(Z),b=16,Y=k.zG(S,b,4),w=32,t=0,H=0,i=!1,R;
b+=4;var P=k.zG(S,b,8);b+=8;while(S[b+w-1]==0)w--;var f=k.zG(S,b,w);b+=32;var h=k.zG(S,b,4);b+=4;b+=20;
var Q=k.r(S,b);b+=4;var e=k.r(S,b);b+=4;var l=k.r(S,b);b+=4;var O=k.r(S,b);b+=4;var m=k.r(S,b);b+=4;
var V=k.r(S,b);b+=4;var q="FujiFilm "+f,K=[0,1,1,2];if(q=="FujiFilm X10"){q="FujiFilm FinePix X10";K=[2,1,1,0]}var z={t271:["FujiFilm"],t272:[q],t277:[1],t33421:[2,2],t33422:K,BP:1};
b=l;var y=[],j=k.gU,J=k.r(S,b);b+=4;for(var D=0;D<J;D++){var A=j(S,b);b+=2;var a=j(S,b);b+=2;if(A==256){H=j(S,b);
t=j(S,b+2)}else if(A==272){y=[j(S,b),j(S,b+2)]}else if(A==273){y.push(j(S,b),j(S,b+2))}else if(A==304){i=!(S[b]>>>7)}else if(A==305){var I=Math.round(Math.sqrt(a)),E=[];
for(var c=0;c<a;c++)E.push(S[b+c]);E.reverse();z.t33421=[I,I];z.t33422=E}else if(A==12272){var u=j(S,b),n=j(S,b+2),o=j(S,b+6);
z.t50728=[u/n,1,u/o]}b+=a}var x=t<H,g=S.slice(m,m+V),v=Math.round(V*8/(t*H));if(g[0]==73&&g[1]==73&&g[2]==42){R=UTIF.decode(g.buffer)[0].fujiIFD;
v=R.t61443[0];var X=R.t61454;z.t50728=[X[0]/X[1],1,X[0]/X[2]];var B=R.t61447[0];g=g.slice(B,B+R.t61448[0])}var V=g.length,M=V*8<t*H*v;
if(M)alert("Compressed RAF is not supported yet :(");function r(bI,fq,e9){e9=e9<<8-(fq&7);var W=fq>>>3;
bI[W]|=e9>>>16;bI[W+1]|=e9>>>8;bI[W+2]|=e9}var N=V*8/(t*H);if(N==16)for(var D=0;D<V;D+=2){var $=g[D];
g[D]=g[D+1];g[D+1]=$}else if(N==14){for(var D=0;D<V;D+=4){var $=g[D];g[D]=g[D+3];g[D+3]=$;$=g[D+1];g[D+1]=g[D+2];
g[D+2]=$}}else if(N==12)for(var D=0;D<V;D+=3){var eQ=g[D+2]<<16|g[D+1]<<8|g[D+0];eQ=eQ>>>12|(eQ&4095)<<12;
g[D]=eQ>>>16&255;g[D+1]=eQ>>>8&255;g[D+2]=eQ&255}if(x)g=ab.iA.ahe(g,t,H);var hN=x?2:1;t*=hN;z.t256=[t];
z.t257=[H];z.t258=[v];z.t50719=[y[1],y[0]*hN];z.t50720=[y[3],y[2]*hN];z.width=t;z.height=H;z.data=new Uint8Array(g.buffer);
return[z]};ab.iA.ahe=function(Z,S,b){Z=new Uint16Array(Z.buffer);var Y=new Uint16Array(S*b*2);for(var P=0;
P<b;P+=2)for(var w=0;w<S;w++){var f=P*S+w,h=f*2,Q=Z[f],e=Z[f+S];Y[h+1]=Y[h+2*S]=e;if(((P>>>1)+w&1)==0){Y[h]=Q;
Y[h+2*S+1]=Z[f+1]}else{Y[h]=Z[f-1];Y[h+2*S+1]=Q}}return Y};ab.Fv={};ab.Fv.XP=!0;ab.Fv.$b=function(Z,S,b,Y){var P=new Uint8Array(Z[0][0]),w=S*b,f=[1,3,4][Y[0]],h=8+8*Y[1],Q=Y[2];
if(f==1){var e=new Uint8Array(S*b);T.to(P,e,0);P=e}if(f==3){var e=new Uint8Array(S*b*3);for(var D=0;
D<w;D++){var l=D*4,O=D*3;e[O]=P[l];e[O+1]=P[l+1];e[O+2]=P[l+2]}P=e}if(h==16){var m=P.length,e=new Uint8Array(m*2);
for(var D=0;D<m;D++){var V=Math.round(P[D]*(65535/255));e[D*2+Q]=V>>>8;e[D*2+1-Q]=V&255}P=e}return P.buffer};
ab.mp={};ab.mp.Gk=function(Z,S){function b(Q){return~~(.5+T.Ur(Math.max(0,Math.min(1,Q)))*255)}var Y=EXRLoader.parse(Z),P=Y.width,w=Y.height,f=T.f(P*w*4);
for(var h=0;h<w;h++)for(var Q=0;Q<P;Q++){var D=(h*P+Q)*4,e=((w-h-1)*P+Q)*4;f[D]=b(Y.data[e+0]);f[D+1]=b(Y.data[e+1]);
f[D+2]=b(Y.data[e+2]);f[D+3]=b(Y.data[e+3])}return[{Vl:new b4(0,0,P,w),data:f.buffer}]};ab.Fi={};ab.Fi.XP=!0;
ab.Fi.Ke=!0;ab.Fi.$b=function(Z,S,b,Y,P){Y=["",100,!1,!1,!1];Y[5]=["jpg"];var w=new ToDXF;hU.$C(Z,Y,w,P.S9);
return w.buffer};ab.Fi.Gk=function(Z,S){var b=72,Y=new fR(1,0,0,1,0,0);Y.scale(b/72,b/72);S.GY=b;var P=new eD(S,Y,!1);
FromDXF.Parse(Z,P)};ab.j1={};ab.j1.Gk=function(){var Z=k.ME,S=k.l2,b=k.zG,Y;function P(f,h,Q,e,l){var O=S(f,Q),m=S(f,Q+4),V=S(f,Q+8),q=Z(f,Q+12),K=Z(f,Q+14);
Q+=16;var z={};for(var D=0;D<q+K;D++){var t=S(f,Q),H=S(f,Q+4),i,y;if(t>>>31==1){t=t&16777215}if(D<q)i=k.AT(f,h+t+2,Z(f,h+t));
else i="id"+t;var j=e.slice(0);j.push(i);if(H>>>31==1){H=H&268435455;y=P(f,h,h+H,j,l)}else{var J=S(f,h+H),A=S(f,h+H+4),a=S(f,h+H+8),I=S(f,h+H+12);
if(I!=0)throw"e";if(J<l[0]||J>l[0]+l[1])throw"e";var E=l[2]+J-l[0];y=f.slice(E,E+A);var c=ab.fN(y.buffer);
if(c&&["bmp","png","ico"].indexOf(c)!=-1){var u=ab.iZ(c);if(!u.Ke){var n=null;try{n=u.Gk(y.buffer)}catch(aV){}if(n){n[0].qQ=j[1];
Y.push(n[0])}}}else if(c)console.log(c)}z[i]=y;Q+=8}return z}function w(f){Y=[];var h=new Uint8Array(f),Q=0,e=Z(h,Q);
Q+=2;Q+=58;var l=S(h,Q);Q+=4;Q=l;var O=b(h,Q,4);Q+=4;var m=Z(h,Q);Q+=2;var V=Z(h,Q);Q+=2;var q=S(h,Q);
Q+=4;var K=S(h,Q);Q+=4;var z=S(h,Q);Q+=4;var t=Z(h,Q);Q+=2;var H=Z(h,Q);Q+=2;Q+=t;var i={};for(var D=0;
D<V;D++){var y=Q;while(h[y]!=0)y++;var j=b(h,Q,y-Q),J=S(h,Q+8),A=S(h,Q+12),a=S(h,Q+16),I=S(h,Q+20),E=S(h,Q+24),c=S(h,Q+28),u=Z(h,Q+32),n=Z(h,Q+34),H=S(h,Q+36);
i[j]=[A,J,I,a,H];if(E+c!=0)throw"e";Q+=40}for(var o in i){var x=i[o];Q=x[2];if(o==".rsrc"){var g=P(h,Q,Q,[],x),v="id134"}}return Y}return w}();
ab.p1={};ab.p1.Ke=!0;ab.p1.Gk=function(Z,S){hG.Vq(Z,S)};(function(){var Z=ab.w5.get("wasm/zstd").buffer;
WebAssembly.instantiate(Z).then(function(S){var b=S.instance.exports;ab.p1.aiN=b})}());ab.l$={};ab.l$.Ke=!0;
ab.l$.Gk=function(){var Z=0,S=1,b=2,Y=3,P=4,w=5,f=6,h=7,Q=1,e=2,l=7,O=8,m=9,V,q,K,z,t;function H(){var C=k.xq(V,q);
q+=4;return C}function i(){var R=0,X=0;for(var D=0;D<5;D++){var B=V[q++];R+=(B&127)<<X;X+=7;if((B&128)==0)break}return R}function y(){var R=i(),X=k.cP(V,q,R);
q+=R;return X}function j(){return{typeName:y(),a9m:H()}}function J(){var R=H(),X=y(),B=[],M=H();for(var D=0;
D<M;D++)B.push([y()]);return{id:R,um:X,a4N:B}}function A(R){var X=R.a4N,B=[];for(var D=0;D<X.length;
D++)X[D].push(V[q++]);for(var D=0;D<X.length;D++){var M=X[D][1],r;X[D].push(a(M))}}function a(R){var X;
if(R==Z)X=V[q++];else if(R==Y)X=y();else if(R==P)X=j();else if(R==S||R==b||R==f||R==w){}else throw R;
return X}function I(R,X,B){var M;if(R==Z){if(X==Q)M=V[q++]==1;else if(X==e){M=V[q++]}else if(X==O)M=H();
else if(X==m){M=H();H()}else throw X}else if(R==Y){M=n(B+1)}else if(R==P){M=n(B+1)}else if(R==w){M=n(B+1)}else if(R==S){M=n(B+1)}else if(R==f){M=n(B+1)}else throw R;
return M}function E(R,X){var B=K["c"+R],M=B.a4N,r={_class:B.um};for(var D=0;D<M.length;D++){var N=M[D],$=N[1],eQ=N[2],hN=I($,eQ,X),bI=N[0];
r[bI]=hN}return r}function c(R,X,B,M){var r=[];for(var D=0;D<R;D++){var N=I(X,B,M);if(N.QX&&N.QX=="null_count"){var $=N.$0;
for(var eQ=0;eQ<$;eQ++)r.push(null);D+=$-1}else r.push(N)}return r}function u(){return[H(),H()]}function n(R){if(R==null)throw"e";
var X=null,B=V[q],M=null;q++;if(B==0){var r=H(),N=H(),$=H(),eQ=H();X=[r,N,$,eQ]}else if(B==1){M=H();
var hN=H();X=E(hN,R)}else if(B==4){var bI=J();M=bI.id;A(bI);K["c"+bI.id]=bI;X=E(bI.id,R)}else if(B==5){var bI=J();
M=bI.id;A(bI);var fq=H();K["c"+bI.id]=bI;X=E(bI.id,R)}else if(B==6){M=H();var e9=y();X=e9}else if(B==7){M=H();
var W=V[q++];if(W!=0)throw W;var L=H();if(L!=1)throw L;var bd=H(),iw=V[q++],d7=a(iw);X=c(bd,iw,d7,R)}else if(B==9){var d0=H();
X={QX:"ref",$0:d0};t["o"+d0]=!0}else if(B==10){X={QX:"null_count",$0:1}}else if(B==11){X={QX:"end"}}else if(B==12){var fq=H(),gS=y()}else if(B==13){var cf=V[q++];
X={QX:"null_count",$0:cf}}else if(B==16){var cT=u();M=cT[0];X=c(cT[1],P,null,R)}else if(B==17){var cT=u();
M=cT[0];X=c(cT[1],S,null,R)}else throw"e";if(M!=null&&M>0){if(z["o"+M]!=null)throw"e";z["o"+M]=X}return X}function o(R,z){if(R instanceof Array){for(var D=0;
D<R.length;D++)R[D]=x(R[D],z)}else if(R instanceof Object){for(var X in R)R[X]=x(R[X],z)}}function x(R,z){if(R&&R.QX&&R.QX=="ref")return z["o"+R.$0];
else return R}function g(R,X,B){V=new Uint8Array(R);q=0;K={};z={};t={};var M=k.zG(V,0,4);if(M!="PDN3")throw M;
q+=4;var r=k.ME(V,q)+V[q+2]*256*256;q+=3;var N=k.zG(V,q,r);q+=r;q+=2;while(!0){var $=n(0);if($&&$.QX&&$.QX=="end")break}for(var eQ in t)if(z[eQ]==null)throw eQ;
for(var eQ in z)o(z[eQ],z);var hN=z.o1;console.log(hN);X.c=hN.width;X.v=hN.height;X.buffer=T.f(X.c*X.v*4);
var bI=hN.layers["ArrayList+_items"];for(var D=0;D<bI.length;D++){var fq=bI[D];if(fq==null)continue;
console.log(fq);var e9=fq["Layer+width"],W=fq["Layer+height"],L=fq["Layer+properties"],bd=fq.properties,iw=bd.blendOp._class.split("+").pop();
iw=iw.slice(0,iw.length-7);var d7={Normal:"norm",Multiply:"mul ",Additive:"lddg",ColorBurn:"idiv",ColorDodge:"div ",Reflect:"lddg",Glow:"hMix",Overlay:"over",Difference:"diff",Negation:"smud",Lighten:"lite",Darken:"dark",Screen:"scrn",Xor:"smud"}[iw],d0=X.Dl();
d0.wc(L.name);d0.opacity=L.opacity;d0.Ba(L.visible);d0.WL=d7;var gS=1<<16,cf=Math.ceil(e9*W/gS);d0.rect=new b4(0,0,e9,W);
d0.buffer=T.f(e9*W*4);var cT=d0.buffer;q+=5;for(var fU=0;fU<cf;fU++){var dX=v();cT.set(dX[1],dX[0]*gS*4)}for(var g$=0;
g$<cT.length;g$+=4){var bX=cT[g$+0];cT[g$+0]=cT[g$+2];cT[g$+2]=bX}X.t.push(d0)}}function v(){var R=k.r(V,q);
q+=4;var X=k.r(V,q);q+=4;var B=pako.inflateRaw(V.slice(q+10));q+=X;return[R,B]}return g}();function T(){}T.Ix={};
T.acK=function(){var Z=[64,64,128,256,512,1024,2048],S=[];for(var D=0;D<Z.length;D++){var b=Z[D],Y=document.createElement("canvas");
Y.width=b;Y.height=b;S.push(Y.getContext("2d"))}return S}();T.bo=function(Z,S){var b,Y=T.acK,D=1,P=Math.max(Z,S);
while(D<Y.length&&P>Y[D].canvas.width)D++;if(D==Y.length){b=Y[0];var w=b.canvas;w.width=Z;w.height=S}else{b=Y[D];
b.clearRect(0,0,Z,S)}return b};T.Qv=function(Z,S,b){var Y={},P=0,w=0,f=new Uint32Array(Z.buffer),h=f.length,Q=Date.now();
for(var e=1;e<b-1;e++)for(var l=1;l<S-1;l++){var O=e*S+l,m=f[O];if(m>>>24<230)w++;if(Y[m]==null){Y[m]=!0;
P++}}if(w!=0||P<20)return!1;return!0};T.bO=function(Z,S,b,Y,P,w){if(P==null)P=w=0;Y=Math.log(Y)/Math.log(2);
Y=Math.round(Y);for(var D=0;D<b;D++)for(var f=0;f<S;f++){var h=D*S+f<<2,Q=T.bb(D+w,f+P,Y);Z[h]=Z[h+1]=Z[h+2]=Q;
Z[h+3]=255}};T.bb=function(D,Z,S){return 255-((D>>>S)+(Z>>>S)&1)*51};T.T3=function(Z){var S=Z.toString(16);
while(S.length<6)S="0"+S;return S};T.sH=function(Z){return parseInt(Z,16)};T.oQ=function(Z){return.3*Z.h+.59*Z.l+.11*Z.O};
T.h0=function(Z){return Math.max(Z.h,Z.l,Z.O)-Math.min(Z.h,Z.l,Z.O)};T.w2=function(Z,S,b){return.3*Z+.59*S+.11*b};
T.afJ=function(Z,S,b){return Math.max(Z,S,b)-Math.min(Z,S,b)};T.Ot=function(Z,S){var b=S-Z,Y=Math.abs(b),P=b-1,w=b+1;
if(Math.abs(P)<Y)b=P;else if(Math.abs(w)<Y)b=w;return b};T.Ur=function(Z){return Z<.0031308?12.92*Z:1.055*Math.pow(Z,1/2.4)-.055};
T.acf=function(Z){return Z<.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)};T.a5W=function(Z,S){var b=Math.min(Z.length,S.length);
for(var D=0;D<b;D+=4){var Y=Z[D],P=Z[D+1],w=Z[D+2];S[D]=16+Math.floor(65.481/255*Y+128.553/255*P+24.966/255*w+.5);
S[D+1]=128-Math.floor(37.797/255*Y-74.203/255*P+112/255*w+.5);S[D+2]=128+Math.floor(112/255*Y-93.786/255*P-18.214/255*w+.5);
S[D+3]=Z[D+3]}};T.dU=function(Z,S,b){var Y=Math.max(Z,S,b),P=Math.min(Z,S,b),w=0,f=0,h=(Y+P)*.5;if(Y!=P){var Q=Y-P;
f=h>.5?Q/(2-(Y+P)):Q/(Y+P);switch(Y){case Z:w=(S-b)/Q+(S<b?6:0);break;case S:w=(b-Z)/Q+2;break;case b:w=(Z-S)/Q+4;
break}w*=1/6}return{XE:w,zk:f,jM:h}};T.E$=function(Z,S,b){var Y,P,w;if(S==0)Y=P=w=b;else{var f=b<.5?b*(1+S):b+S-b*S,h=2*b-f;
Y=T.Ut(h,f,Z+1/3);P=T.Ut(h,f,Z);w=T.Ut(h,f,Z-1/3)}return{h:Y,l:P,O:w}};T.Ut=function(Z,S,b){if(b<0)b+=1;
if(b>1)b-=1;if(b<1/6)return Z+(S-Z)*6*b;if(b<1/2)return S;if(b<2/3)return Z+(S-Z)*(2/3-b)*6;return Z};
T.hy=function(Z,S,b){var Y=Math.max(Z,S,b),P=Math.min(Z,S,b),w,f,h=Y,Q=Y-P;f=Y==0?0:Q/Y;if(Y==P)w=0;
else{switch(Y){case Z:w=(S-b)/Q+(S<b?6:0);break;case S:w=(b-Z)/Q+2;break;case b:w=(Z-S)/Q+4;break}w*=1/6}return{XE:w,zk:f,$0:h}};
T.Ta=function(Z,S,b){var Y,P,w,D,f,h,Q,e;D=Math.floor(Z*6);f=Z*6-D;h=b*(1-S);Q=b*(1-f*S);e=b*(1-(1-f)*S);
switch(D%6){case 0:Y=b,P=e,w=h;break;case 1:Y=Q,P=b,w=h;break;case 2:Y=h,P=b,w=e;break;case 3:Y=h,P=Q,w=b;
break;case 4:Y=e,P=h,w=b;break;case 5:Y=b,P=h,w=Q;break}return{h:Y,l:P,O:w}};T.V0=function(){var Z=[],S=[];
for(var D=0;D<2e3;D++){var b=D/1e3;Z[D]=T.acf(b);S[D]=b>.008856?Math.pow(b,1/3):(903.3*b+16)*(1/116)}return[Z,S]}();
T.N1=function(Z,S,b){var Y=T.V0[0],P=T.V0[1];Z=Y[~~(Z*(1e3/255))];S=Y[~~(S*(1e3/255))];b=Y[~~(b*(1e3/255))];
var w=T.sE.adN,f=w[0]*Z+w[1]*S+w[2]*b,h=w[4]*Z+w[5]*S+w[6]*b,Q=w[8]*Z+w[9]*S+w[10]*b;f=f*(100/96.72);
h=h*(100/100);Q=Q*(100/81.427);return T.TO(f,h,Q)};T.TO=function(Z,S,b){var Y=T.V0[1],P=Y[~~(Z*1e3)],w=Y[~~(S*1e3)],f=Y[~~(b*1e3)];
return{lq:116*w-16,w:500*(P-w),O:200*(w-f)}};T.Hz=function(Z,S,b){var Y=903.3,P=.008856,w=(Z+16)/116,f=w*w*w,h=w-b/200,Q=h*h*h,e=S/500+w,l=e*e*e,O=Q>P?Q:(116*h-16)/Y,m=f>P?f:(116*w-16)/Y,V=l>P?l:(116*e-16)/Y,q=V*96.72,K=m*100,z=O*81.427,t=T.sE.Eb(T.sE.dJ,[q/100,K/100,z/100,0]);
for(var D=0;D<4;D++)t[D]=Math.max(0,Math.min(255,T.Ur(t[D])*255));return{h:t[0],l:t[1],O:t[2]}};T.c4=function(Z,S,b,Y,P){var w=Z.lq,f=Z.w,h=Z.O,Q=(w<S.lq?S.lq-w:b.lq<w?b.lq-w:0)*(1/100),e=(f<S.w?S.w-f:b.w<f?b.w-f:0)*(1/116),l=(h<S.O?S.O-h:b.O<h?b.O-h:0)*(1/116),O=Math.sqrt(Q*Q+e*e+l*l)*1.35;
return O<=Y?Math.min(1,1.17*(1-O*P)):0};T.Mq=function(Z,S,b){var Y=Z.length,P=.3,w=.59,f=.11;if(b){P=b[0];
w=b[1];f=b[2]}for(var D=0;D<Y;D+=4)S[D>>2]=~~(Z[D+0]*P+Z[D+1]*w+Z[D+2]*f+.5)};T.zf=function(Z,S){var b=S.length;
for(var D=0;D<b;D+=4){var Y=Z[D>>>2];S[D]=Y;S[D+1]=Y;S[D+2]=Y}};T.s$=function(Z,S){var b=Z.w,Y=Z.h,P=Z.l,w=Z.O,f=Math.min(Z.w.length,S.buffer.byteLength>>>2),h=4*Math.floor(f/4),Q=new Uint32Array(S.buffer),e=new Uint32Array(b.buffer),l=new Uint32Array(Y.buffer),O=new Uint32Array(P.buffer),m=new Uint32Array(w.buffer);
for(var D=0;D<h;D+=4){var V=e[D>>2],q=m[D>>2],K=O[D>>2],z=l[D>>2];Q[D]=V<<24|(q&255)<<16|(K&255)<<8|z&255;
Q[D+1]=(V&65280)<<16|(q&65280)<<8|K&65280|(z&65280)>>>8;Q[D+2]=(V&16711680)<<8|q&16711680|(K&16711680)>>>8|(z&16711680)>>>16;
Q[D+3]=V&4278190080|(q&4278190080)>>>8|(K&4278190080)>>>16|(z&4278190080)>>>24}for(var D=h;D<f;D++)Q[D]=b[D]<<24|w[D]<<16|P[D]<<8|Y[D]};
T.Tr=function(Z,S){var b=S.w,Y=S.h,P=S.l,w=S.O,f=Math.min(S.w.length,Z.buffer.byteLength>>>2),h=4*Math.floor(f/4),Q=new Uint32Array(Z.buffer),e=new Uint32Array(b.buffer),l=new Uint32Array(Y.buffer),O=new Uint32Array(P.buffer),m=new Uint32Array(w.buffer);
for(var D=0;D<h;D+=4){var V=Q[D],q=Q[D+1],K=Q[D+2],z=Q[D+3];l[D>>2]=V&255|(q&255)<<8|(K&255)<<16|z<<24;
O[D>>2]=(V&65280)>>8|q&65280|(K&65280)<<8|(z&65280)<<16;m[D>>2]=(V&16711680)>>16|(q&16711680)>>8|K&16711680|(z&16711680)<<8;
e[D>>2]=V>>>24|q>>>24<<8|K>>>24<<16|z&4278190080}for(var D=h;D<f;D++){var t=Q[D];Y[D]=t>>0&255;P[D]=t>>8&255;
w[D]=t>>16&255;b[D]=t>>24&255}};T.to=function(Z,S,b){var Y=new Uint8Array(Z.buffer),P=Math.min(Y.length/4,S.length);
for(var D=0;D<P;D++){S[D]=Y[(D<<2)+b]}};T.y8=function(Z,S,b){var Y=new Uint8Array(S.buffer),P=new Uint32Array(Z.buffer),w=Math.min(Y.length/4,Z.length),D=0;
while(D+4<w){var f=P[D>>>2];Y[(D<<2)+b]=f&255;Y[(D<<2)+b+4]=f>>>8&255;Y[(D<<2)+b+8]=f>>>16&255;Y[(D<<2)+b+12]=f>>>24;
D+=4}while(D<w){Y[(D<<2)+b]=Z[D];D++}};T._U=function(Z,S,b){if(b==null)b=0;var Y=new Uint32Array(Z.buffer),P=Y.length;
for(var D=0;D<P;D++)Y[D]=Y[D]&b|S};T.ajR=function(Z,S,b,Y,P){if(P==null)P=0;var w=new Uint32Array(Z.buffer);
b=b.Yz(S);var f=b.x-S.x,h=b.y-S.y,Q=b.c,e=b.v,l=S.c;for(var O=0;O<e;O++){var D=(h+O)*l+f;for(var m=0;
m<Q;m++){w[D]=w[D]&P|Y;D++}}};T.Bv=function(Z,S){var b=Math.min(Z.buffer.byteLength,S.buffer.byteLength),Y=b>>>2,Z=new Uint32Array(Z.buffer,0,Y),S=new Uint32Array(S.buffer,0,Y);
S.set(Z)};T.Oh=function(Z,S){var b=Z.buffer.byteLength,Y=S.buffer.byteLength,P=new Uint32Array(Z.buffer,0,b>>2),w=new Uint32Array(S.buffer,0,Y>>2);
if(b!=Y)return!1;var f=P.length;for(var D=0;D<f;D++)if(w[D]!=P[D])return!1;return!0};T.oN=function(Z){var S=new Uint32Array(Z.buffer),b=S.length;
for(var D=0;D<b;D++)S[D]=~S[D]};T.a4U=function(Z){var S=Z.length;for(var D=0;D<S;D+=4){Z[D]=~Z[D];Z[D+1]=~Z[D+1];
Z[D+2]=~Z[D+2]}};T.aop=function(Z){var S=Z.length;for(var D=3;D<S;D+=4)Z[D]=~Z[D]};T.abp=function(Z){return Z+(Z%4==0?0:4-Z%4)};
T.f=function(Z,S){if(S==null)S=!1;if(!S)Z=T.abp(Z);try{var b=new Uint8Array(Z)}catch(aV){alert("Not enough RAM! (need "+Math.round(Z/(1<<20))+" MB)",7e3);
throw"low_ram"}return b};T.O9=function(Z){var S=Z.length,b=Z[S-2],Y=Z[S-1];while(Y.c>=2&&Y.v>=2){var P=T.Y_(b,Y);
Z.push(P.j$,P.rect);b=P.j$;Y=P.rect}};T.eW=function(Z){var S=Z.length,b=Z[S-2],Y=Z[S-1];while(Y.c>=2&&Y.v>=2){var P=T.w4(b,Y);
Z.push(P.j$,P.rect);b=P.j$;Y=P.rect}};T.Y_=function(Z,S,b){var Y=S.c,P=S.v,w=Y>>1,f=P>>1,h=new b4(S.x,S.y,w,f),Q=b&&b.length==w*f*4?b:T.f(w*f*4),e=new Uint32Array(Z.buffer),l=new Uint32Array(Q.buffer);
for(var O=0;O<f;O++)for(var m=0;m<w;m++){var V=O*w+m,q=(O<<1)*Y+(m<<1),K=e[q],z=e[q+1],t=e[q+Y],H=e[q+Y+1],i=K>>>24,y=z>>>24,j=t>>>24,J=H>>>24,A=i+y+j+J;
if(A==1020){var a=(K>>>0&255)+(z>>>0&255)+(t>>>0&255)+(H>>>0&255)+2>>>2,I=(K>>>8&255)+(z>>>8&255)+(t>>>8&255)+(H>>>8&255)+2>>>2,E=(K>>>16&255)+(z>>>16&255)+(t>>>16&255)+(H>>>16&255)+2>>>2;
l[V]=255<<24|E<<16|I<<8|a}else if(A==0)l[V]=0;else{var a=(K>>>0&255)*i+(z>>>0&255)*y+(t>>>0&255)*j+(H>>>0&255)*J,I=(K>>>8&255)*i+(z>>>8&255)*y+(t>>>8&255)*j+(H>>>8&255)*J,E=(K>>>16&255)*i+(z>>>16&255)*y+(t>>>16&255)*j+(H>>>16&255)*J,c=1/A;
a=~~(a*c+.5);I=~~(I*c+.5);E=~~(E*c+.5);l[V]=A+2>>>2<<24|E<<16|I<<8|a}}return{rect:h,j$:Q}};T.wg=function(Z,S,b){var Y=S.c,P=S.v,w=Y>>1,f=P>>1,h=new b4(S.x,S.y,w,f),Q=b&&b.length==w*f*4?b:T.f(w*f*4),e=new Uint32Array(Z.buffer),l=new Uint32Array(Q.buffer);
for(var O=0;O<f;O++)for(var m=0;m<w;m++){var V=O*w+m,q=(O<<1)*Y+(m<<1),K=e[q],z=e[q+1],t=e[q+Y],H=e[q+Y+1],i=2+(K>>>0&255)+(z>>>0&255)+(t>>>0&255)+(H>>>0&255)>>>2,y=2+(K>>>8&255)+(z>>>8&255)+(t>>>8&255)+(H>>>8&255)>>>2,j=2+(K>>>16&255)+(z>>>16&255)+(t>>>16&255)+(H>>>16&255)>>>2,J=2+(K>>>24&255)+(z>>>24&255)+(t>>>24&255)+(H>>>24&255)>>>2;
l[V]=J<<24|j<<16|y<<8|i}return{rect:h,j$:Q}};T.alS=function(Z,S,b){var Y=S.c,P=S.v,w=2*Math.floor(Y/3),f=2*Math.floor(P/3),h=new b4(S.x,S.y,w,f),Q=b&&b.length==w*f*4?b:T.f(w*f*4),e=new Uint32Array(Z.buffer),l=new Uint32Array(Q.buffer);
for(var O=0;O<f;O+=2)for(var m=0;m<w;m+=2){var V=O*w+m,q=(O*3>>>1)*Y+(m*3>>>1),K=e[q],z=e[q+1],t=e[q+2],H=e[q+Y],i=e[q+1+Y],y=e[q+2+Y],j=e[q+Y+Y],J=e[q+1+Y+Y],A=e[q+2+Y+Y],a=K>>>24<<2,I=(K>>>16&255)*a,E=(K>>>8&255)*a,c=(K&255)*a,u=z>>>24<<1,n=(z>>>16&255)*u,o=(z>>>8&255)*u,x=(z&255)*u,g=t>>>24<<2,v=(t>>>16&255)*g,R=(t>>>8&255)*g,X=(t&255)*g,B=H>>>24<<1,M=(H>>>16&255)*B,r=(H>>>8&255)*B,N=(H&255)*B,$=i>>>24,eQ=(i>>>16&255)*$,hN=(i>>>8&255)*$,bI=(i&255)*$,fq=y>>>24<<1,e9=(y>>>16&255)*fq,W=(y>>>8&255)*fq,L=(y&255)*fq,bd=j>>>24<<2,iw=(j>>>16&255)*bd,d7=(j>>>8&255)*bd,d0=(j&255)*bd,gS=J>>>24<<1,cf=(J>>>16&255)*gS,cT=(J>>>8&255)*gS,fU=(J&255)*gS,dX=A>>>24<<2,g$=(A>>>16&255)*dX,bX=(A>>>8&255)*dX,aw=(A&255)*dX,hP=a+u+B+$,eG=g+u+fq+$,eB=bd+gS+B+$,bb=dX+gS+fq+$,gx=hP==0?0:1/hP,er=eG==0?0:1/eG,ea=eB==0?0:1/eB,hD=bb==0?0:1/bb,bP=0,iz=0,iq=0,cU=0;
bP=~~(.5+(c+x+N+bI)*gx);iz=~~(.5+(E+o+r+hN)*gx);iq=~~(.5+(I+n+M+eQ)*gx);cU=~~(.5+hP*(1/9));l[V]=cU<<24|iq<<16|iz<<8|bP;
bP=~~(.5+(X+x+L+bI)*er);iz=~~(.5+(R+o+W+hN)*er);iq=~~(.5+(v+n+e9+eQ)*er);cU=~~(.5+eG*(1/9));l[V+1]=cU<<24|iq<<16|iz<<8|bP;
bP=~~(.5+(d0+fU+N+bI)*ea);iz=~~(.5+(d7+cT+r+hN)*ea);iq=~~(.5+(iw+cf+M+eQ)*ea);cU=~~(.5+eB*(1/9));l[V+w]=cU<<24|iq<<16|iz<<8|bP;
bP=~~(.5+(aw+fU+L+bI)*hD);iz=~~(.5+(bX+cT+W+hN)*hD);iq=~~(.5+(g$+cf+e9+eQ)*hD);cU=~~(.5+bb*(1/9));l[V+w+1]=cU<<24|iq<<16|iz<<8|bP}return{rect:h,j$:Q}};
T.a2e=function(Z,S,b){var Y=S.c,P=S.v,w=2*Math.floor(Y/3),f=2*Math.floor(P/3),h=new b4(S.x,S.y,w,f),Q=b&&b.length==w*f*4?b:T.f(w*f*4),e=new Uint32Array(Z.buffer),l=new Uint32Array(Q.buffer);
for(var O=0;O<f;O+=2)for(var m=0;m<w;m+=2){var V=O*w+m,q=(O*3>>>1)*Y+(m*3>>>1),K=e[q],z=e[q+1],t=e[q+2],H=e[q+Y],i=e[q+1+Y],y=e[q+2+Y],j=e[q+Y+Y],J=e[q+1+Y+Y],A=e[q+2+Y+Y],a=(K>>>16&255)<<2,I=(K>>>8&255)<<2,E=(K&255)<<2,c=(z>>>16&255)<<1,u=(z>>>8&255)<<1,n=(z&255)<<1,o=(t>>>16&255)<<2,x=(t>>>8&255)<<2,g=(t&255)<<2,v=(H>>>16&255)<<1,R=(H>>>8&255)<<1,X=(H&255)<<1,B=i>>>16&255,M=i>>>8&255,r=i&255,N=(y>>>16&255)<<1,$=(y>>>8&255)<<1,eQ=(y&255)<<1,hN=(j>>>16&255)<<2,bI=(j>>>8&255)<<2,fq=(j&255)<<2,e9=(J>>>16&255)<<1,W=(J>>>8&255)<<1,L=(J&255)<<1,bd=(A>>>16&255)<<2,iw=(A>>>8&255)<<2,d7=(A&255)<<2,d0=0,gS=0,cf=0;
d0=~~(.5+(E+n+X+r)*(1/9));gS=~~(.5+(I+u+R+M)*(1/9));cf=~~(.5+(a+c+v+B)*(1/9));l[V]=255<<24|cf<<16|gS<<8|d0;
d0=~~(.5+(g+n+eQ+r)*(1/9));gS=~~(.5+(x+u+$+M)*(1/9));cf=~~(.5+(o+c+N+B)*(1/9));l[V+1]=255<<24|cf<<16|gS<<8|d0;
d0=~~(.5+(fq+L+X+r)*(1/9));gS=~~(.5+(bI+W+R+M)*(1/9));cf=~~(.5+(hN+e9+v+B)*(1/9));l[V+w]=255<<24|cf<<16|gS<<8|d0;
d0=~~(.5+(d7+L+eQ+r)*(1/9));gS=~~(.5+(iw+W+$+M)*(1/9));cf=~~(.5+(bd+e9+N+B)*(1/9));l[V+w+1]=255<<24|cf<<16|gS<<8|d0}return{rect:h,j$:Q}};
T.PV=function(Z){var S=255,b=Z.length;b-=b&31;for(var D=3;D<b;D+=32)S=S&Z[D]&Z[D+4]&Z[D+8]&Z[D+12]&Z[D+16]&Z[D+20]&Z[D+24]&Z[D+28];
return S!=255};T.air=function(Z,S,b,Y){var P=T.Y_,w=T.alS,h=0;if(!T.PV(Z)){P=T.wg;w=T.a2e}var f={j$:Z,rect:S},Q=b;
while(Q<.499){h++;Q*=2}for(var D=0;D<h;D++)f=P(f.j$,f.rect,Y);if(Q<.5001)f=P(f.j$,f.rect,Y);else f=w(f.j$,f.rect,Y);
return f};T.a0w=function(Z,S,b,Y){var P=T.w4,w=T.Hx,f={j$:Z,rect:S},h=0,Q=b;while(Q<.499){h++;Q*=2}for(var D=0;
D<h;D++)f=P(f.j$,f.rect,Y);if(Q<.5001)f=P(f.j$,f.rect,Y);else f=w(f.j$,f.rect,Y);return f};T.w4=function(Z,S,b){var Y=S.c,P=S.v,w=Y>>1,f=P>>1,h=new b4(S.x,S.y,w,f);
if(Z==null)return{rect:h};var Q=b&&b.length>=w*f?b:T.f(w*f);for(var e=0;e<f;e++){var l=e*w;for(var O=0;
O<w;O++){var m=(e<<1)*Y+(O<<1);Q[l+O]=2+Z[m]+Z[m+1]+Z[m+Y]+Z[m+Y+1]>>>2}}return{rect:h,j$:Q}};T.Hx=function(Z,S,b){var Y=S.c,P=S.v,w=2*Math.floor(Y/3),f=2*Math.floor(P/3),h=new b4(S.x,S.y,w,f);
if(Z==null)return{rect:h};var Q=b&&b.length>=w*f?b:T.f(w*f);for(var e=0;e<f;e+=2)for(var l=0;l<w;l+=2){var O=e*w+l,m=(e*3>>>1)*Y+(l*3>>>1),V=Z[m]<<2,q=Z[m+1]<<1,K=Z[m+2]<<2,z=Z[m+Y]<<1,t=Z[m+1+Y],H=Z[m+2+Y]<<1,i=Z[m+Y+Y]<<2,y=Z[m+1+Y+Y]<<1,j=Z[m+2+Y+Y]<<2;
Q[O]=~~(.5+(V+q+z+t)*(1/9));Q[O+1]=~~(.5+(K+q+H+t)*(1/9));Q[O+w]=~~(.5+(i+y+z+t)*(1/9));Q[O+w+1]=~~(.5+(j+y+H+t)*(1/9))}return{rect:h,j$:Q}};
T.JS=function(Z,S,b,Y,P){var w=S.Yz(Y);if(P)w=w.Yz(P);var f=Math.max(0,w.x-S.x),h=Math.max(0,w.x-Y.x),Q=Math.max(0,w.y-S.y),e=Math.max(0,w.y-Y.y),l=w.c,O=w.v;
for(var D=0;D<O;D++){var m=(Q+D)*S.c+f,V=(e+D)*Y.c+h;for(var q=0;q<l;q++){b[V+q]=Z[m+q]}}};T._C=function(Z,S,b,Y){if(S.Oh(Y)){T.y8(Z,b,3);
return}var P=S.Yz(Y),w=Math.max(0,P.x-S.x),f=Math.max(0,P.x-Y.x),h=Math.max(0,P.y-S.y),Q=Math.max(0,P.y-Y.y),e=P.c,l=P.v;
for(var D=0;D<l;D++){var O=(h+D)*S.c+w,m=(Q+D)*Y.c+f;for(var V=0;V<e;V++)b[(m+V<<2)+3]=Z[O+V]}};T.Q6=function(Z,S,b,Y){var P=S.Yz(Y),w=Math.max(0,P.x-S.x),f=Math.max(0,P.x-Y.x),h=Math.max(0,P.y-S.y),Q=Math.max(0,P.y-Y.y),e=P.c,l=P.v;
for(var D=0;D<l;D++){var O=(h+D)*S.c+w,m=(Q+D)*Y.c+f;for(var V=0;V<e;V++)b[m+V]=Z[(O+V<<2)+3]}};T.uH=function(Z,S,b,Y,P){if(S.Oh(Y)&&(P==null||P.Oh(Y))){T.Bv(Z,b);
return}Z=new Uint32Array(Z.buffer),b=new Uint32Array(b.buffer);var w=S.Yz(Y);if(P)w=w.Yz(P);var f=Math.max(0,w.x-S.x),h=Math.max(0,w.x-Y.x),Q=Math.max(0,w.y-S.y),e=Math.max(0,w.y-Y.y),l=w.c,O=w.v,m=l&3,V=m==0?l:l-m;
for(var D=0;D<O;D++){var q=(Q+D)*S.c+f,K=(e+D)*Y.c+h;b.set(new Uint32Array(Z.buffer,q*4,l),K)}};T.CF=function(Z,S,b,Y){var P=S.Yz(Y),w=Math.max(0,P.x-S.x),f=Math.max(0,P.x-Y.x),h=Math.max(0,P.y-S.y),Q=Math.max(0,P.y-Y.y),e=P.c,l=P.v,O=Z.w,m=Z.h,V=Z.l,q=Z.O,K=b.w,z=b.h,t=b.l,H=b.O;
for(var D=0;D<l;D++){var i=(h+D)*S.c+w,y=(Q+D)*Y.c+f;for(var j=0;j<e;j++){K[y+j]=O[i+j];z[y+j]=m[i+j];
t[y+j]=V[i+j];H[y+j]=q[i+j]}}};T.pW=function(Z){var S=Z.length;for(var D=0;D<S;D+=4){var b=Z[D+3];if(b==255)continue;
Z[D]=~~(Z[D]*b*(1/255)+.5);Z[D+1]=~~(Z[D+1]*b*(1/255)+.5);Z[D+2]=~~(Z[D+2]*b*(1/255)+.5)}};T.rZ=function(Z){var S=Z.length;
for(var D=0;D<S;D+=4){var b=Z[D+3];if(b==0||b==255)continue;var Y=255/b;Z[D]=~~(Z[D]*Y+.5);Z[D+1]=~~(Z[D+1]*Y+.5);
Z[D+2]=~~(Z[D+2]*Y+.5)}};T.BI=function(Z,S){for(var D=0;D<Z.length;D++)if(Z[D]!=S)return!1;return!0};
T.sU=function(Z){return Z+1+(Z>>>8)>>>8};T.round=function(Z,S){if(S==null)S=128;var b=Z.length;for(var D=0;
D<b;D++)Z[D]=Z[D]<S?0:255};T.ka=function(Z,S){var b=Z.length;for(var D=0;D<b;D++)Z[D]=Math.round(Z[D]*S)};
T.Im=function(Z,S){var b=new Uint32Array(Z.buffer),Y=new Uint32Array(S.buffer),P=b.length;for(var D=0;
D<P;D++){var w=b[D],f=Y[D];Y[D]=T.sU((w>>>24)*(f>>>24))<<24|T.sU((w>>>16&255)*(f>>>16&255))<<16|T.sU((w>>>8&255)*(f>>>8&255))<<8|T.sU((w&255)*(f&255))}};
T.Dt=function(Z,S){var b=Z.length;for(var D=0;D<b;D++)S[(D<<2)+3]=T.sU(S[(D<<2)+3]*Z[D])};T.aeB=function(Z,S,b,Y){var P=Math.max(0,Y.x-S.x),w=Math.max(0,S.x-Y.x),f=Math.max(0,Y.y-S.y),h=Math.max(0,S.y-Y.y),Q=Math.min(S.x+S.c,Y.x+Y.c)-Math.max(S.x,Y.x),e=Math.min(S.y+S.v,Y.y+Y.v)-Math.max(S.y,Y.y);
for(var D=0;D<e;D++){var l=(f+D)*S.c+P,O=(h+D)*Y.c+w;for(var m=0;m<Q;m++){b[O]=T.sU(b[O]*Z[l]);l++;O++}}};
T.FD=function(Z,S,b,Y){var P=Math.max(0,Y.x-S.x),w=Math.max(0,S.x-Y.x),f=Math.max(0,Y.y-S.y),h=Math.max(0,S.y-Y.y),Q=Math.min(S.x+S.c,Y.x+Y.c)-Math.max(S.x,Y.x),e=Math.min(S.y+S.v,Y.y+Y.v)-Math.max(S.y,Y.y);
for(var D=0;D<e;D++){var l=(f+D)*S.c+P,O=((h+D)*Y.c+w<<2)+3;for(var m=0;m<Q;m++){b[O]=T.sU(b[O]*Z[l]);
l++;O+=4}}};T.oA=function(Z,S,b,Y){var P=Math.max(0,Y.x-S.x),w=Math.max(0,S.x-Y.x),f=Math.max(0,Y.y-S.y),h=Math.max(0,S.y-Y.y),Q=Math.min(S.x+S.c,Y.x+Y.c)-Math.max(S.x,Y.x),e=Math.min(S.y+S.v,Y.y+Y.v)-Math.max(S.y,Y.y);
for(var D=0;D<e;D++){var l=((f+D)*S.c+P<<2)+3,O=((h+D)*Y.c+w<<2)+3;for(var m=0;m<Q;m++){b[O]=T.sU(b[O]*Z[l]);
l+=4;O+=4}}};T.YY=function(Z){var S=new Float64Array(256),b=new Float64Array(256),Y=new Float64Array(256),P=new Float64Array(256),w=Z.length,f=0;
for(var D=0;D<w;D+=4){var h=Z[D+3],Q=h*(1/255);b[Z[D+0]]+=Q;Y[Z[D+1]]+=Q;P[Z[D+2]]+=Q;f+=h}for(var D=0;
D<256;D++)S[D]=b[D]+Y[D]+P[D];return[S,b,Y,P,w>>>2,f/255]};T.Og=function(Z,S){var b=new Uint32Array(Z.buffer),Y=b.length;
for(var D=0;D<Y;D++){var P=b[D],w=P&255,f=P>>8&255,h=P>>16&255,Q=P>>24&255;b[D]=S[w]|S[f]<<8|S[h]<<16|S[Q]<<24}};
T.ao2=function(Z,S,b,Y,P,w,f){var h=new Uint32Array(Z.buffer),Q=new Uint32Array(S.buffer),e=h.length,l=0;
while(256<<l<b.length)l++;if(!f&&!w){for(var D=0;D!=e;D++){var O=h[D],m=(O&255)<<l,V=(O>>>8&255)<<l,q=(O>>>16&255)<<l,K=b[m],z=Y[V],t=P[q];
Q[D]=K|z<<8|t<<16|O&4278190080}return}for(var D=0;D<e;D++){var O=h[D],m=(O&255)<<l,V=(O>>>8&255)<<l,q=(O>>>16&255)<<l;
if(w)m=V=q=Math.round(m*.3+V*.59+q*.11);var K=b[m],z=Y[V],t=P[q];if(f){var H=T.w2(m,V,q),i=T.w2(K,z,t);
if(H>i){var y=(H-i)/(255-i);K+=y*(255-K);z+=y*(255-z);t+=y*(255-t)}else if(i==0)K=z=t=0;else{var y=H/i;
K=y*K;z=y*z;t=y*t}}Q[D]=K|z<<8|t<<16|O&4278190080}};T.fD=function(Z,S){var b=S.c,Y=S.v,top=0,P=0,w=0,f=0,h=0;
h=0;for(var Q=0;Q<Y;Q++){var e=Q*b;for(var D=0;D<b;D++)h|=Z[e+D];if(h!=0)break;top++}if(top==Y)return new b4(0,0,0,0);
h=0;for(var Q=Y-1;Q>=0;Q--){var e=Q*b;for(var D=0;D<b;D++)h|=Z[e+D];if(h!=0)break;w++}var l=Y-w;h=0;
for(var D=0;D<b;D++){for(var Q=top;Q<l;Q++)h|=Z[Q*b+D];if(h!=0)break;P++}h=0;for(var D=b-1;D>=0;D--){for(var Q=top;
Q<l;Q++)h|=Z[Q*b+D];if(h!=0)break;f++}var O=new b4(S.x+P,S.y+top,b-P-f,Y-top-w);return O};T.gG=function(Z,S,b,Y){if(Y==null)Y=[!0,!0,!0,!0];
if(b==null)b=0;var P=new Uint32Array(Z.buffer),w=S.c,f=S.v,top=0,h=0,Q=0,e=0,l=!1,O=[P[0],P[P.length-1],0][b];
l=!1;if(Y[0])for(var m=0;m<f;m++){var V=m*w;for(var D=0;D<w;D++)if(P[V+D]!=O)l=!0;if(l)break;top++}l=!1;
if(Y[2])for(var m=f-1;m>=0;m--){var V=m*w;for(var D=0;D<w;D++)if(P[V+D]!=O)l=!0;if(l)break;Q++}l=!1;
if(Y[1])for(var D=0;D<w;D++){for(var m=0;m<f;m++)if(P[m*w+D]!=O)l=!0;if(l)break;h++}l=!1;if(Y[3])for(var D=w-1;
D>=0;D--){for(var m=0;m<f;m++)if(P[m*w+D]!=O)l=!0;if(l)break;e++}var q=new b4(S.x+h,S.y+top,w-h-e,f-top-Q);
return q.h3()?new b4(0,0,0,0):q};T.gi=function(Z){var S=T.fD(Z.channel,Z.rect);if(S.Oh(Z.rect))return;
var b=T.f(S.X());T.JS(Z.channel,Z.rect,b,S);Z.channel=b;Z.rect=S};T.br=function(Z){var S=T.f(Z.buffer.length>>2);
T.to(Z.buffer,S,3);var b=T.fD(S,Z.rect);if(b.Oh(Z.rect))return;var Y=new T.f(b.X()*4);T.uH(Z.buffer,Z.rect,Y,b);
Z.buffer=Y;Z.rect=b};T.extend=function(Z,S,b){if(Z.rect.ls(S))return;var Y=Z.rect.VK(S),P=T.f(Y.X());
if(b!=null)P.fill(b);T.JS(Z.channel,Z.rect,P,Y);Z.rect=Y;Z.channel=P};T.aoI=function(Z,S){if(S.h3()||Z.rect.ls(S))return;
var b=Z.rect.VK(S),Y=T.f(b.X()*4);T.uH(Z.buffer,Z.rect,Y,b);Z.rect=b;Z.buffer=Y};T.eI=function(Z,S,b){if(!b.DS(Z))return!1;
var Y=Math.floor(Z.x)-b.x,P=Math.floor(Z.y)-b.y,D=P*b.c+Y;return S[D]>128};T.a1G=function(Z,S,b){if(!b.DS(Z))return!1;
var Y=Math.floor(Z.x)-b.x,P=Math.floor(Z.y)-b.y,D=P*b.c+Y;return S[4*D+3]>128};T.FX=function(Z){if(T.Np.length<Z){T.Np=T.f(Z);
T.Np.fill(255)}return T.Np};T.Np=T.f(0);T.Nv=function(Z){if(T.ZW.length<Z)T.ZW=T.f(Z);return T.ZW};T.ZW=T.f(0);
T.XA=function(Z){this.w=T.f(Z);this.h=T.f(Z);this.l=T.f(Z);this.O=T.f(Z)};T.XA.prototype.clone=function(){var Z=this.w.length,S=new T.XA(1);
S.w=this.w.slice(0);S.h=this.h.slice(0);S.l=this.l.slice(0);S.O=this.O.slice(0);return S};T.Ix.g9=function(){function Z(H,i){return H[i]+H[i+1]+H[i+2]+H[i+3]}function S(H,i){return H[i]+H[i+1]+H[i+2]+2*H[i+3]}function b(H,i,y,j){H[i]=y[j];
H[i+1]=y[j+1];H[i+2]=y[j+2];H[i+3]=y[j+3]}function Y(H,i,y){H[i]=H[y];H[i+1]=H[y+1];H[i+2]=H[y+2];H[i+3]=H[y+3]}function P(H,i,y){H[y]=i[y];
H[y+1]=i[y+1];H[y+2]=i[y+2];H[y+3]=255-i[y+3]}function w(H){for(var D=0,i=H.length;D<i;D+=4){H[D+3]=255-H[D+3]}}function f(){var H=Math.random();
if(H>.5)return 0;if(H>.25)return 1;if(H>.1)return 2;if(H>.02143)return 3;if(H>.00445)return 4;if(H>65e-5)return 5;
if(H>415e-6)return 6;if(H>55e-6)return 7;return 8}function h(H,i,y,j,J,A){H[i]=y[j]+(J[A]-y[j]>>1);H[i+1]=y[j+1]+(J[A+1]-y[j+1]>>1);
H[i+2]=y[j+2]+(J[A+2]-y[j+2]>>1);H[i+3]=y[j+3]+(J[A+3]-y[j+3]>>1)}function Q(H,i,y,j,J,A){H[i]=J[A]+y[j]>>1;
H[i+1]=J[A+1]+y[j+1]>>1;H[i+2]=J[A+2]+y[j+2]>>1;H[i+3]=J[A+3]+y[j+3]>>1}function e(H,i,y,j,J,A,a,I,E){var c=0,u=0,n=0,D,o=J[A],x;
h(I,0,H,i,H,y);for(D=0;D<o;D++){h(I,(D+1)*4,I,D*4,H,y)}u=(o+1)*4;n+=o;A--;b(H,i,I,u-4);j[A]=Z(H,i);i-=E;
while(A>0&&j[A-1]<j[A]){x=I;I=a;a=x;c=u;Q(I,0,H,i-E,a,0);for(D=4;D<c;D+=4){Q(I,D,I,D-4,a,D)}o=J[A];for(D=n;
D<o;D++){h(I,u,I,u-4,a,c-4);u+=4;n++}A--;b(H,i,I,u-4);j[A]=Z(H,i);i-=E}}function l(H,i,y,j,J){var A=i*4,a=0,I,E,c=new Uint8Array(i+1),u=new Uint8Array(10*4),n=new Uint8Array(10*4);
for(var D=0;D<y;D++){P(j,H,a);J[0]=Z(j,a);c[0]=f();I=a;a+=4;for(var o=1;o<i;o++){P(j,H,a);J[o]=Z(j,a);
E=f();c[o]=E;if(J[o-1]<J[o]&&E>0){e(j,a-4,a,J,c,o,u,n,4)}a+=4}J[i]=J[0];c[i]=c[0];if(J[i-1]<J[i]&&E>0){e(j,a,I,J,c,i,u,n,4)}}w(j)}function O(){var H=Math.random();
if(H>.659755)return 0;if(H>.1625)return 10;if(H>.06)return 20;if(H>.01)return 30;if(H>.0035)return 40;
if(H>65e-5)return 50;if(H>415e-6)return 60;if(H>55e-6)return 70;return 80}function m(H,i,y,j,J,A){var a=O()+1,I=j[J];
for(var D=1;D<a;D++){if(0>J)break;if(j[J-D]<I){Y(H,i,y)}else{break}i+=A}}function V(H,i,y,j,J){var A=i*4,a=0;
for(var D=0;D<y;D++){P(j,H,a);J[0]=Z(j,a);a+=4;for(var I=1;I<i;I++){P(j,H,a);J[I]=Z(H,a);if(J[I-1]<J[I]){m(j,a-4,a,J,I,-4)}a+=4}J[i]=J[0];
if(J[I-1]<J[I]){m(j,a-4,a-A,J,I,-4)}}w(j)}function q(H,i,y,j,J,A){var a=1,I,E,c=new Uint8Array(4),u,n=i;
while(Math.random()<1/a){n=i;if(j<=1)break;I=y[j];E=y[j-1];if(I<=E)break;b(c,0,H,n-A);u=!0;for(var D=j;
D<J;D++){if(E>y[D]){b(H,n-A,c,0);y[D-1]=E;u=!1;break}b(H,n-A,H,n);y[D-1]=y[D];n+=A}if(u){b(H,n-A,c,0);
y[J-1]=E}a++;j--;i-=A}}function K(H,i,y,j,J){var A=0,a=0,I=i*4;for(var D=0;D<y;D++){a=A;for(var E=0;
E<i;E++){P(j,H,A);J[E]=S(j,A);A+=4}A=a;for(var E=1;E<i;E++){if(J[E-1]<J[E]&&Math.random()<.66){q(j,A+4,J,E,i,4)}A+=4}A+=4}w(j)}function z(H,i,y,j,J){var A=J[0],a=J[1],I=new Uint16Array(i+1),E=H,c=j,u;
if(a){u=j.slice(0);t(H,j,i,y);E=j;c=u}if(A==0)l(E,i,y,c,I);else if(A==1)V(E,i,y,c,I);else if(A==2)K(E,i,y,c,I);
if(a){t(u,j,i,y)}}function t(H,i,y,j){for(var J=0;J<j;J++)for(var A=0;A<y;A++){var a=J*y+A<<2,I=J*y+(y-1-A)<<2;
i[I]=H[a];i[I+1]=H[a+1];i[I+2]=H[a+2];i[I+3]=H[a+3]}}return z}();T.Ix.ags=function(){function Z(S,b,Y,P){var w=new Uint8Array(S.length),f=new Uint8Array(S.length>>>2),h=new Uint8Array(S.length>>>2);
T.yM.Hl(S,w,b,Y,T.yM.zL[2],0,!0);for(var D=0;D<S.length;D+=4){var Q=w[D+0]*.3+w[D+1]*.59+w[D+2]*.11;
f[D>>>2]=Q;P[D+0]=S[D+0];P[D+1]=S[D+1];P[D+2]=S[D+2];P[D+3]=S[D+3]}T.yM.ux(f,h,b,Y);for(var D=0;D<S.length;
D+=4){w[D+3]=~~(Math.max(0,255-h[D>>>2]-50)*(255/205))}for(var D=0,e=S.length;D<e;D+=4){var l=w[D+3]/255;
P[D]=w[D]*l+P[D]*(1-l);P[D+1]=w[D+1]*l+P[D+1]*(1-l);P[D+2]=w[D+2]*l+P[D+2]*(1-l)}}return Z}();T.Ix.aaq=function(){function Z(S,b,Y,P){var w=new Uint8Array(S.length>>>2),f=new Uint8Array(S.length>>>2),h=new Uint8Array(S.length);
for(var D=0;D<S.length;D+=4){var Q=S[D+0]*.3+S[D+1]*.59+S[D+2]*.11;f[D>>>2]=Q;h[D]=S[D];h[D+1]=S[D+1];
h[D+2]=S[D+2]}T.yM.ux(f,w,b,Y);T.yM.Hl(S,P,b,Y,T.yM.zL[1],0,!0);for(var D=0;D<S.length;D+=4){h[D+3]=255-w[D>>>2]}for(var D=0,e=S.length;
D<e;D+=4){var l=h[D+3]/255;P[D]=h[D]*l+P[D]*(1-l);P[D+1]=h[D+1]*l+P[D+1]*(1-l);P[D+2]=h[D+2]*l+P[D+2]*(1-l)}}return Z}();
T.Ix.a5M=function(){function Z(w,f,h,Q,e){var l=new Uint32Array(w.buffer),O=0;for(var D=0;D<h;D++){for(var m=0;
m<f;m++,O+=4){var V=l[D*f+m],q=V&255,K=V>>>8&255,z=V>>>16&255,t=V>>>24&255,H=~~(Math.random()*8),i=H%3,y=0,j=0;
if(H<3){j--}else if(H>4){j++}if(i==0){y--}else if(i==2){y++}var J=m+y,A=D+j;if(J<0)J=0;else if(J>f-1)J=f-1;
if(A<0)A=0;else if(A>h-1)A=h-1;var V=l[A*f+J],a=V&255,I=V>>>8&255,E=V>>>16&255,c=V>>>24&255;Q[O]=e(q,a);
Q[O+1]=e(K,I);Q[O+2]=e(z,E);Q[O+3]=e(t,c)}}}function S(w,f){return f}function b(w,f){return w>f?f:w}function Y(w,f){return w<f?f:w}function P(w,f,h,Q,e){var l=e[0];
if(l==0)Z(w,f,h,Q,S);else if(l==1)Z(w,f,h,Q,b);else if(l==2)Z(w,f,h,Q,Y);else if(l==3){console.error("Not implemented")}else console.error("Mew mew")}return P}();
T.Ix.a3W=function(){var Z=[],S=new Uint8Array(512),b=new Float32Array(512),Y=new Float32Array(512),P=[1,-1,1,-1,1,-1,0,0],w=[1,1,-1,-1,0,0,1,-1],f=0,h,q=0;
for(;f<256;f++)Z[f]=f;while(f!=0){f--;h=Math.floor(Math.random()*f);Z[h]^=Z[f]^(Z[f]=Z[h])}function Q(Q){Q=Math.floor(Q*65536);
if(Q<256){Q|=Q<<8}for(var D=0;D<256;D++){var t=D+256,H=Z[D]^(D&1?Q:Q>>8)&255;S[D]=S[t]=H;H=H%8;b[D]=b[t]=P[H];
Y[D]=Y[t]=w[H]}}function e(t){return t*t*t*(t*(t*6-15)+10)}function l(t,H,i){return(1-i)*t+i*H}function O(t,H){return t&H}function m(t,H){return t%H}function V(t,H,i,y,j){var J=Math.floor(t),A=Math.floor(H),f,a,I,E,c,u;
t=t-J;H=H-A;J=J&255;A=A&255;f=J+S[A];E=b[f]*t+Y[f]*H;f=J+S[j(A+1,y)];I=b[f]*t+Y[f]*(H-1);f=j(J+1,i)+S[A];
c=b[f]*(t-1)+Y[f]*H;f=j(J+1,i)+S[j(A+1,y)];u=b[f]*(t-1)+Y[f]*(H-1);a=e(t);return l(l(E,c,a),l(I,u,a),e(H))}function K(t,f,H){t[f]=H}function z(t,H,i,y,j){var J=Math.min(Math.min(H,256),Math.min(256,i)),A=J==256||J<8,a=8,I=new Uint32Array(a),E=new Uint32Array(a),c=new Float32Array(a),u=new Float32Array(a),n=1,o=1,x=A?O:m,g=K,v;
for(var D=0;D<a;D++){v=o*1/J;if(A){E[D]=(1<<Math.ceil(Math.log2(i*v)))-1;I[D]=(1<<Math.ceil(Math.log2(H*v)))-1}else{E[D]=v*i;
I[D]=v*H}c[D]=n;u[D]=v;n*=.5;o=o<<1}Q(Math.random());for(var R=0,f=0;R<i;R++){for(var X=0;X<H;X++){var B=0;
for(var M=0;M<a;M++){v=u[M];B+=V(X*v,R*v,I[M],E[M],x)*c[M]}g(y,f++,Math.round(Math.max(0,255*Math.min(1,.5+B*.5))))}}}return z}();
T.Ix.amO=function(){function Z(S,b,Y,P,w){var f=w&&w[0]?w[0]:4,h,Q,e,l,O,m,V;for(var D=0;D<Y;D++){var q=Math.max(D-f,0),K=Math.min(D+f,Y-1);
for(var z=0;z<b;z++){var t=Math.max(z-f,0),H=Math.min(z+f,b-1);h=q*b+t<<2;l=S[h];O=S[h+1];m=S[h+2];V=S[h+3];
h=q*b+H<<2;l+=S[h];O+=S[h+1];m+=S[h+2];V+=S[h+3];h=K*b+t<<2;l+=S[h];O+=S[h+1];m+=S[h+2];V+=S[h+3];h=K*b+H<<2;
l+=S[h];O+=S[h+1];m+=S[h+2];V+=S[h+3];h=D*b+z<<2;P[h]=l+2>>>2;P[h+1]=O+2>>>2;P[h+2]=m+2>>>2;P[h+3]=V+2>>>2}}}return Z}();
T.Ix.a4t=function(){var Z=[-1e3,34,51,61,71,80,87,95,101,108,113,119,124,129,134,139,143,148,153,157,161,165,168,172,175,180,183,186,190,194,197,200,203,207,210,213,216,218,222,225,228,230,233,236,239,241,244,247,250,252,255];
function S(b,Y,P,w,f){var h=f[0],Q=f[1],e=Q<=50?Z[Q]/255:1+(255-Z[101-Q])/255,l=f[2],O=b.length,m=new Float32Array(O),V=0,q,K=1+1/10*h,z=(1-1/K)/2,t=16/256,H=Y-1,D,i,y,j,J=0,A=1,a=255;
for(D=0;D<w.length;D++){m[D]=b[D]/255;w[D]=h==1?Math.random()<1/255?a:A:A}function I(E,c){var u=E*Y+c;
if(w[u]!=A||E>=P||c>=Y){return}var y=m[u],n=e-y,o=Math.random(),x=o/K+z;if(V==0||Math.abs(j-y)>t){q=x<=n?J:a;
V=~~(Math.random()*h)}else if(.1<o){V--}else{V=0}w[u]=q;j=y}if(l==0){for(D=0;D<Y;D++){for(i=0;i<Y;i++){y=D+i;
if(y>=Y)break;I(i,H-y)}V=0}for(D=1;D<P;D++){for(i=0;i<P;i++){y=D+i;if(y>=P||i>=Y)break;I(y,H-i)}V=0}}else if(l==1){for(D=0;
D<P;D++){for(i=0;i<Y;i++){I(D,i)}V=0}}else if(l==2){for(D=0;D<Y;D++){for(i=0;i<Y;i++){y=D+i;if(y>=Y)break;
I(i,y)}V=0}for(D=1;D<P;D++){for(i=0;i<P;i++){y=D+i;if(y>=P||i>=Y)break;I(y,i)}V=0}}else{for(D=0;D<Y;
D++){for(i=0;i<P;i++){I(i,D)}V=0}}}return S}();T.Ix.aaO=function(){function Z(h){var Q=new Uint8Array(256),e=new Uint8Array(256),l=255,D;
if(h<2)l=h;else if(h<12)l=5*h-5;else if(h<47)l=2*h+28;else if(h<50){D=h-47;l=125+12.5*D+12.5*D*D}for(var D=0;
D<256;D++){e[D]=l<D?0:255}for(var D=0;D<256;D++){var O=D<<3;Q[D]=e[O>255?255:O]}return e}function S(){var h=new Uint8Array(256),D,Q;
for(D=75,Q=15;Q<256;D++,Q+=24)h[D]=Q;for(;D<256;D++)h[D]=255;return h}function b(h,Q,e,l){P(h,Q,e,11,l)}function Y(h,Q,e,l){P(h,Q,e,5,l);
for(var D=0;D<l.length;D++)l[D]=l[D]<51?0:255}function P(h,Q,e,l,O){T.rr.LA(h,O,new b4(0,0,Q,e),l>>>1)}function w(h,Q){var e=h.length,l;
for(var D=0;D<e;D++){l=h[D]-Q[D];Q[D]=l<0?0:l}}function f(h,Q,e,l,O){var m=O[0],V=O[1],q=Z(m),K=S(),z=h.length,t=new Uint8Array(z),H=l;
b(h,Q,e,t);b(t,Q,e,H);w(H,h);for(var D=0;D<z;D++){var i=h[D]*8;h[D]=i>255?255:i}w(H,h);for(var D=0;D<z;
D++){h[D]=q[h[D]]}var y=V,j=V;if((y&1)==0){y++;j--}Y(h,Q,e,t);P(t,Q,e,y,H);P(H,Q,e,j,t);for(var D=0;
D<z;D++)l[D]=K[255-t[D]]}return f}();T.Ix.acU=function(){var Z,P,w,f,h,Q;function S(t){var H=0,i=t.length,y=new Uint8Array(i>>2);
for(var D=0;D<i;D+=4){y[H++]=~~((t[D]+t[D+1]+t[D+2])/3)}Z=y;return y}function b(t,H,i,y,j){var J=j,A=j>>1,a=A-1,I=J*J,E=0;
for(var D=0;D<y;D++){var c=0;for(var u=0;u<J;u++){for(var n=0;n<J;n++){var o=0-A+n,x=D-A+u;if(o<0)o=0;
else if(o>=i)o=i-1;if(x<0)x=0;else if(x>=y)x=y-1;c+=t[x*i+o]}}H[E++]=~~(c/I);for(var g=1;g<i;g++){for(var u=0;
u<J;u++){var v=g-A-1,R=v+J,x=D-A+u;if(v<0)v=0;if(R>=i)R=i-1;if(x<0)x=0;else if(x>=y)x=y-1;c+=t[x*i+R]-t[x*i+v]}H[E++]=~~(c/I)}}Z=H}function Y(t,H){var i=t.length;
for(var D=0;D<i;D++){H[D]=Math.max(t[D]-H[D],0)}Z=H}var e=new Uint8Array(256),l=new Uint8Array(256);
function O(t){w=t[0];h=t[1];Q=t[2];P=2*w+1;var H=5+10*h;H+=h>3?(h-3)*10:0;var i=~~(Q*.73)+50,y=Math.min(i+H,128),j=y-i,J=-255*i;
f=w+4;for(var D=0;D<256;D++){var A=D*65;e[D]=A>=256?255:A;l[D]=Math.max(Math.min(~~(J/j),255),0);J+=255}}function m(t,H,i,y,j,J,A,a,I,E){var c=j+J-1,u=j>>1,n=c>>1,o=0,x=new Int32Array(j),g=new Int32Array(256),v=new Int32Array(16);
if(!A){n}for(var D=0;D<y;D++){g.fill(0);v.fill(0);for(var R=0;R<j;R++){var X=A?c-R-J:R;for(var B=X,M=J+X;
B<M;B++){var r=0-n+B,N=D-u+R;if(B==X){x[R]=r}if(r<0)r=0;else if(r>=i)r=i-1;if(N<0)N=0;else if(N>=y)N=y-1;
var $=t[N*i+r];g[$]++;v[$>>>4]++}}var eQ=0,hN;for(hN=0;hN<256;hN++){eQ+=g[hN];if(eQ>=E)break}H[o++]=hN;
for(var bI=1;bI<i;bI++){for(var R=0;R<j;R++){var N=D-u+R,X=x[R]+1;x[R]=X;var fq=X-1,e9=X+J-1;if(N<0)N=0;
else if(N>=y)N=y-1;if(fq<0)fq=0;else if(fq>=i)fq=i-1;if(e9<0)e9=0;else if(e9>=i)e9=i-1;var W=t[N*i+fq],L=t[N*i+e9];
g[W]--;v[W>>>4]--;g[L]++;v[L>>>4]++}eQ=0;hN=0;while(eQ+v[hN>>>4]<E){eQ+=v[hN>>>4];hN+=16}for(;hN<256;
hN++){eQ+=g[hN];if(eQ>=E)break}H[o++]=hN}}Z=H}function V(t){var H=t.length,i=new Uint8Array(H),D=0;for(;
D<H;D++){i[D]=t[D]}Z=i;return i}function q(t,H){for(var D=0,i=t.length;D<i;D++){t[D]=H[t[D]]}Z=t}function K(t,H,i,y){var j=0;
for(var D=0;D<i;D++){var J=D*y,A=(D-1)*y,a=(D+1)*y;if(A<0)A=J;if(a>=i)a=J;for(var I=0;I<y;I++){var E=I-1,c=I+1;
if(E<0)E=I;if(c>=y)c=I;var u=t[J+E],n=t[J+c],o=t[A+I],x=t[a+I],g=t[J+I];H[j++]=Math.min(Math.max(g+2*(4*g-(u+n+o+x)),0),255)}}Z=H}function z(t,H,i,y,j){O(j);
var J=t.length,A=new Uint8Array(J),a=V(t);b(t,A,H,i,P);for(var D=0;D<J;D++){t[D]=Math.min(Math.max(A[D]-t[D],0)*65,255)}m(t,A,H,i,9,3,!0,0,65,20);
for(var D=0;D<J;D++){var I=a[D],E=A[D];if(E>0)t[D]=~~((E*I+(255-E)*128)/255);else t[D]=128}Z=t;b(t,A,H,i,3);
m(A,t,H,i,15,2,!0,0,1,16);m(A,a,H,i,15,2,!1,0,1,15);for(var D=0;D<J;D++){a[D]=t[D]+a[D]>>1}Z=a;K(a,A,i,H);
q(A,l);b(A,t,H,i,2);y.set(Z)}return z}();T.zF={adH:function(Z,S){var D=Z.length;Z.push(S);var b=D>>>1;
while(b!=0&&Z[D][0]<Z[b][0]){var Y=Z[D];Z[D]=Z[b];Z[b]=Y;D=b;b=D>>>1}},a3i:function(Z){if(Z.length==2)return Z.pop();
var top=Z[1],D=1;Z[1]=Z.pop();var S=Z.length;while(!0){var b=D<<1,Y=b+1,P=D;if(b<S&&Z[b][0]<Z[P][0])P=b;
if(Y<S&&Z[Y][0]<Z[P][0])P=Y;if(P==D)break;var w=Z[D];Z[D]=Z[P];Z[P]=w;D=P}return top},a5E:function(Z){for(var D=1;
D<Z.length;D++){var S=D,b=1e9;while(S!=0){var Y=Z[S][0];if(Y>b){console.log(D);throw"e"}b=Y;S=S>>>1}}}};
T.p={};T.p.r7=new Float64Array(256);T.p.Su=new Uint8Array(256*256);T.p.GJ=new Uint8Array(256*256);(function(){for(var D=0;
D<256;D++)T.p.r7[D]=255/D;for(var D=0;D<256;D++)for(var Z=0;Z<256;Z++)T.p.Su[D*256+Z]=D==0?0:Math.round(Z*255/D);
for(var D=0;D<256;D++)for(var Z=0;Z<256;Z++)T.p.GJ[D*256+Z]=Math.round(D*(255-Z)/255)}());T.p.xJ=function(Z,S,b,Y,P,w,f,h){if(h==null)h=eg.xB();
if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(Z)==-1){f=f*h.fill;h.fill=1;h.style=!1}var Q="norm,dark,mul ,idiv,lbrn,lite,scrn,div ,lddg,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv".split(","),e="dkCl,lgCl,hue ,sat ,colr,lum ".split(","),l=T.p[Z+"F"];
if(h.lu==null&&Z=="norm")T.p.a2h(S,b,Y,P,w,f,l,h.gd?1:0);else if(Z=="diss")T.p.agP(S,b,Y,P,w,f,l,h.gd?1:0);
else if(Q.indexOf(Z)!=-1)T.p.a4b(S,b,Y,P,w,f,l,h);else if(e.indexOf(Z)!=-1)T.p.alW(S,b,Y,P,w,f,l,h)};
T.p.alY=function(Z,S,b){var Y=Z*b+1-b;return Y<.001?0:1-Math.min(1,(1-S)/Y)};T.p.alk=function(Z,S,b){return Z*b==1?1:Math.min(1,S/(1-Z*b))};
T.p.Iy=function(Z){return Z<=.25?((16*Z-12)*Z+4)*Z:Math.sqrt(Z)};T.p.normF=function(Z,S,b){return Z};
T.p.darkF=function(Z,S,b){return Math.min(Z,S)};T.p["mul F"]=function(Z,S,b){return Z*S};T.p.idivF=function(Z,S,b){var Y=Z*b+1-b;
return S==1?1:1-S>=Y?0:1-(1-S)/Y};T.p.lbrnF=function(Z,S,b){return Math.max(0,Z*b+S-b)};T.p.dkClF=function(Z,S,b){var Y=T.oQ(Z)<T.oQ(S)?Z:S;
b.h=Y.h;b.l=Y.l;b.O=Y.O;return b};T.p.liteF=function(Z,S,b){return Math.max(Z,S)};T.p.scrnF=function(Z,S,b){return S+Z-S*Z};
T.p["div F"]=function(Z,S,b){Z*=b;return S==0?0:S>=1-Z?1:S/(1-Z)};T.p.lddgF=function(Z,S,b){Z*=b;return Math.min(1,Z+S)};
T.p.lgClF=function(Z,S,b){var Y=T.oQ(Z)>T.oQ(S)?Z:S;b.h=Y.h;b.l=Y.l;b.O=Y.O;return b};T.p.overF=function(Z,S,b){return T.p.hLitF(S,Z,b)};
T.p.sLitF=function(Z,S,b){return Z<=.5?S-(1-2*Z)*S*(1-S):S+(2*Z-1)*(T.p.Iy(S)-S)};T.p.hLitF=function(Z,S,b){return Z<=.5?T.p["mul F"](2*Z,S,b):T.p.scrnF(2*Z-1,S,b)};
T.p.vLitF=function(Z,S,b){return Z<=.5?T.p.alY(2*Z,S,b):T.p.alk(2*Z-1,S,b)};T.p.lLitF=function(Z,S,b){return Z<=.5?T.p.lbrnF(2*Z,S,b):T.p.lddgF(2*Z-1,S,b)};
T.p.pLitF=function(Z,S,b){return Z<=.5?T.p.darkF(2*Z,S,b):T.p.liteF(2*Z-1,S,b)};T.p.hMixF=function(Z,S,b){if(b>.99)return Z+S<1?0:1;
return Math.min(1,Math.max(0,(S+Z*b-b)/(1-b+1e-6)))};T.p.diffF=function(Z,S,b){Z*=b;return Math.abs(Z-S)};
T.p.smudF=function(Z,S,b){return Z+S-2*Z*S};T.p.fsubF=function(Z,S,b){return Math.max(S-Z,0)};T.p.fdivF=function(Z,S,b){return Math.min(S/Z,1)};
T.p["hue F"]=function(Z,S,b){T.p.Zz(Z,T.h0(S),b);T.p.Wf(b,T.oQ(S),b)};T.p["sat F"]=function(Z,S,b){T.p.Zz(S,T.h0(Z),b);
T.p.Wf(b,T.oQ(S),b)};T.p.colrF=function(Z,S,b){T.p.Wf(Z,T.oQ(S),b)};T.p["lum F"]=function(Z,S,b){T.p.Wf(S,T.oQ(Z),b)};
T.p.Wf=function(Z,S,b){var Y=S-T.oQ(Z);b.h=Z.h+Y;b.l=Z.l+Y;b.O=Z.O+Y;T.p.ahc(b)};T.p.ahc=function(Z){var S=Z.h,b=Z.l,Y=Z.O,P=T.w2(S,b,Y),C=Math.min(S,b,Y),w=Math.max(S,b,Y);
if(C<0){var f=P/(P-C);S=P+(S-P)*f;b=P+(b-P)*f;Y=P+(Y-P)*f}if(w>1){var f=(1-P)/(w-P);S=P+(S-P)*f;b=P+(b-P)*f;
Y=P+(Y-P)*f}Z.h=S;Z.l=b;Z.O=Y};T.p.Zz=function(Z,S,b){var Y=T.p.a8c,P=Z.h,w=Z.l,f=Z.O;if(P==w&&w==f){b.h=b.l=b.O=0}else if(P>w){if(P>f){if(w>f){b.h=S;
b.l=Y(P,w,f,S);b.O=0}else{b.h=S;b.O=Y(P,f,w,S);b.l=0}}else{b.O=S;b.h=Y(f,P,w,S);b.l=0}}else{if(P<f){if(w>f){b.l=S;
b.O=Y(w,f,P,S);b.h=0}else{b.O=S;b.l=Y(f,w,P,S);b.h=0}}else{b.l=S;b.h=Y(w,P,f,S);b.O=0}}};T.p.a8c=function(Z,S,b,Y){return(S-b)*Y/(Z-b)};
T.p.a2h=function(Z,S,b,Y,P,w,f,h){var Q=S.Yz(Y).Yz(P),e=Math.max(0,Q.x-S.x),l=Math.max(0,Q.x-Y.x),O=Math.max(0,Q.y-S.y),m=Math.max(0,Q.y-Y.y),V=Q.c,q=Q.v,K=S.c,z=Y.c,t=T.p.Su,H=T.p.GJ,i=new Uint32Array(Z.buffer),y=new Uint32Array(b.buffer);
for(var D=0;D<q;D++){var j=(O+D)*K+e,J=(m+D)*z+l;for(var A=0;A<V;A++){var a=i[j+A],c=255;if(a>>>24==0)continue;
if(a>>>24==255&&w==1&&h==0){y[J+A]=i[j+A];continue}var I=y[J+A],E=255*w&255;if(h==0){E=(a>>>24)*w&255;
c=I>>>24}var u=H[c<<8|E],n=E+u,o=a&255,x=a>>>8&255,g=a>>>16&255,v=I&255,R=I>>>8&255,X=I>>>16&255;y[J+A]=h*(I>>>24)+(1-h)*n<<24|t[n<<8|T.sU(g*E+X*u)]<<16|t[n<<8|T.sU(x*E+R*u)]<<8|t[n<<8|T.sU(o*E+v*u)]}}};
T.p.agG=function(Z,S,b,Y,P,w){var f=S.Yz(Y).Yz(P),h=Math.max(0,f.x-S.x),Q=Math.max(0,f.x-Y.x),e=Math.max(0,f.y-S.y),l=Math.max(0,f.y-Y.y),O=f.c,m=f.v,V=S.c,q=Y.c,K=T.p.Su,z=T.p.GJ,t=new Uint32Array(Z.buffer),H=new Uint32Array(b.buffer),i=Math.floor(Math.random()*16777215),y=0;
for(var D=0;D<m;D++){var j=(e+D)*V+h,J=(l+D)*q+Q;for(var A=0;A<O;A++){var a=t[j+A];if(a>>>24==0)continue;
if(a>>24==255&&w==1){H[J+A]=a;continue}var I=H[J+A],E=(a>>>24)*w*(1/255),c=(I>>>24)*(1/255),u=c*(1-E),n=E+u,o=a&255,x=a>>>8&255,g=a>>>16&255,v=I&255,R=I>>>8&255,X=I>>>16&255;
y>>>=8;if((A&3)==0)y=T.p.A9(J+A+i);var B=n==0?0:1/n,M=Math.floor(n*(256*255))+(y&255)>>>8,r=Math.floor((g*E+X*u)*B+.5),N=Math.floor((x*E+R*u)*B+.5),$=Math.floor((o*E+v*u)*B+.5);
H[J+A]=M<<24|r<<16|N<<8|$}}};T.p.Pc=function(Z,S,b,Y,P,w,f,h){var Q=T.w2(Z,S,b),e=T.w2(Y,P,w),l=Math.min,O=T.p.akH,m=O(Q,h,0);
m=l(m,O(Z,h,8));m=l(m,O(S,h,16));m=l(m,O(b,h,24));var V=O(e,h,4);V=l(V,O(Y,h,12));V=l(V,O(P,h,20));V=l(V,O(w,h,28));
V=Math.max(V,1-f);var q=Math.min(m,V);return q<0?0:q>1?1:q};T.p.akH=function(Z,S,D){return Math.min((Z-S[D])*S[D+1],(Z-S[D+3])*S[D+2])};
T.p.a4b=function(Z,S,b,Y,P,w,f,h){var Q=1/255,e=Q*w,l=h.gd?1:0,O=h.fill,m=h.style,V=S.Yz(Y).Yz(P),q=Math.max(0,V.x-S.x),K=Math.max(0,V.x-Y.x),z=Math.max(0,V.y-S.y),t=Math.max(0,V.y-Y.y),H=V.c,i=V.v,y=S.c,j=Y.c,J=new Uint32Array(Z.buffer),A=new Uint32Array(b.buffer);
for(var D=0;D<i;D++){var a=(z+D)*y+q,I=(t+D)*j+K;for(var E=0;E<H;E++,a++,I++){var c=J[a],B=1;if(c>>>24==0)continue;
var u=A[I],n=(c&255)*Q,o=(c>>>8&255)*Q,x=(c>>>16&255)*Q,g=(u&255)*Q,v=(u>>>8&255)*Q,R=(u>>>16&255)*Q,X=w;
if(l==0){X=(c>>>24)*e;B=(u>>>24)*Q}if(h.lu)X*=T.p.Pc(n,o,x,g,v,R,B,h.lu);var M=B*(1-X),r=X+M,N=r==0?0:255/r,$=m?1:X,eQ=((1-B)*X*n+(1-$)*B*g+$*B*f(n,g,(1+X-$)*O))*N,hN=((1-B)*X*o+(1-$)*B*v+$*B*f(o,v,(1+X-$)*O))*N,bI=((1-B)*X*x+(1-$)*B*R+$*B*f(x,R,(1+X-$)*O))*N;
r=X*O+B*(1-X*O);var fq=~~(r*255+.5);A[I]=l*(u>>>24)+(1-l)*fq<<24|bI<<16|hN<<8|eQ}}};T.p.alW=function(Z,S,b,Y,P,w,f,h){var Q=1/255,e=Q*w,l=h.gd?1:0,O=S.Yz(Y).Yz(P),m=Math.max(0,O.x-S.x),V=Math.max(0,O.x-Y.x),q=Math.max(0,O.y-S.y),K=Math.max(0,O.y-Y.y),z=O.c,t=O.v,H=new Uint32Array(Z.buffer),i=new Uint32Array(b.buffer),y={h:0,l:0,O:0},j={h:0,l:0,O:0},J={h:0,l:0,O:0};
for(var D=0;D<t;D++){var A=(q+D)*S.c+m,a=(K+D)*Y.c+V;for(var I=0;I<z;I++,A++,a++){var E=H[A],c=i[a],u=(E&255)*Q,n=(E>>>8&255)*Q,o=(E>>>16&255)*Q,x=(c&255)*Q,g=(c>>>8&255)*Q,v=(c>>>16&255)*Q,R=w,X=1;
if(l==0){R=(E>>>24)*e;X=(c>>>24)*Q}if(h.lu)R*=T.p.Pc(u,n,o,x,g,v,X,h.lu);var B=X*(1-R),M=R+B,r=255/M;
y.h=u;y.l=n;y.O=o;j.h=x;j.l=g;j.O=v;f(y,j,J);var N=(((1-X)*u+X*J.h)*R+x*B)*r,$=(((1-X)*n+X*J.l)*R+g*B)*r,eQ=(((1-X)*o+X*J.O)*R+v*B)*r,hN=l*(c>>>24)+(1-l)*Math.round(M*255);
i[a]=hN<<24|eQ<<16|$<<8|N}}};T.p.Ux=function(Z){Z=Z^61^Z>>>16;Z=Z+(Z<<3);Z=Z^Z>>>4;Z=Z*668265261;Z=Z^Z>>15;
return(Z&16777215)*(1/16777215)};T.p.A9=function(Z){Z=Z^61^Z>>>16;Z=Z+(Z<<3);Z=Z^Z>>>4;Z=Z*668265261;
Z=Z^Z>>>15;return Z};T.p.Ny=function(Z){this.Nz=Z};T.p.Ny.prototype.get=function(){var Z=this.Nz=T.p.A9(this.Nz);
return(Z&16777215)*(1/16777215)};T.p.agP=function(Z,S,b,Y,P,w,f,h){var Q=1/255,e=Q*w,l=Math.round(w*(256*256*256/255)),O=S.Yz(Y).Yz(P),m=Math.max(0,O.x-S.x),V=Math.max(0,O.x-Y.x),q=Math.max(0,O.y-S.y),K=Math.max(0,O.y-Y.y),z=O.c,t=O.v,H=new Uint32Array(Z.buffer),i=new Uint32Array(b.buffer);
for(var D=0;D<t;D++){var y=(q+D)*S.c+m,j=(K+D)*Y.c+V;for(var J=0;J<z;J++,y++,j++){var A=H[y],a=i[j],I=h*255+(1-h)*(A>>>24);
if((T.p.A9(y)&16777215)>=I*l)continue;i[j]=A&16777215|h*(a>>>24)+(1-h)*255<<24}}};T.p.a1z=function(Z,S,b){for(var D=0;
D<Z.length;D+=4){var Y=b[D>>>2];if(Y==0)continue;var P=Y*(1/255),w=1/P,f=S[D],h=S[D+1],Q=S[D+2],e=Z[D],l=Z[D+1],O=Z[D+2];
S[D]=Math.min(255,Math.max(0,Math.round((f-(1-P)*e)*w)));S[D+1]=Math.min(255,Math.max(0,Math.round((h-(1-P)*l)*w)));
S[D+2]=Math.min(255,Math.max(0,Math.round((Q-(1-P)*O)*w)));S[D+3]=255}};T.p.VZ=function(Z,S,b,Y,P,w,f,h,Q,e,l){if(e==null)e=!1;
if(l==null)l=[1,1,1];var O=255<<24|l[2]*16711680|l[1]*65280|l[0]*255,m=~O;if(P&&!S.Oh(w)){var V=T.f(S.X()*4);
V.fill(f);T.JS(P,w,V,S);P=V;w=S}if(e){if(P==null)T.p.alP(Z,S,b,Y,P,h,Q,O,m);else T.p.ai4(Z,S,b,Y,P,h,Q)}else{if(P==null)T.p.abh(Z,S,b,Y,P,h,Q,O,m);
else T.p.a5l(Z,S,b,Y,P,h,Q)}};T.p.abh=function(Z,S,b,Y,P,w,f,h,Q){var e=1/255,l=S.Yz(Y).Yz(w),O=Math.max(0,l.x-S.x),m=Math.max(0,l.x-Y.x),V=Math.max(0,l.y-S.y),q=Math.max(0,l.y-Y.y),K=l.c,z=l.v,t=new Uint32Array(Z.buffer),H=new Uint32Array(b.buffer),i=T.p.Su,y=f*255&255;
for(var D=0;D<z;D++){var j=(V+D)*S.c+O,J=(q+D)*Y.c+m;for(var A=0;A<K;A++,j++,J++){var a=t[j],I=H[J],E=a>>>24,c=I>>>24,u=T.sU(y*E+(255-y)*c),n=T.sU(E*y),o=T.sU(c*(255-y)),x=a&255,g=a>>>8&255,v=a>>>16&255,R=I&255,X=I>>>8&255,B=I>>>16&255,M=n*x+R*o,r=n*g+X*o,N=n*v+B*o;
M=i[u<<8|T.sU(M)];r=i[u<<8|T.sU(r)];N=i[u<<8|T.sU(N)];var $=u<<24|N<<16|r<<8|M;H[J]=Q&I|h&$}}};T.p.alP=function(Z,S,b,Y,P,w,f,h,Q){var e=1/255,l=S.Yz(Y).Yz(w),O=Math.max(0,l.x-S.x),m=Math.max(0,l.x-Y.x),V=Math.max(0,l.y-S.y),q=Math.max(0,l.y-Y.y),K=l.c,z=l.v,t=new Uint32Array(Z.buffer),H=new Uint32Array(b.buffer),i=T.p.Su,y=f*16777215&16777215;
for(var D=0;D<z;D++){var j=(V+D)*S.c+O,J=(q+D)*Y.c+m;for(var A=0;A<K;A++,j++,J++){if((T.p.A9(j)&16777215)<y){H[J]=Q&H[J]|h&t[j]}}}};
T.p.a5l=function(Z,S,b,Y,P,w,f){var h=1/255,Q=S.Yz(Y).Yz(w),e=Math.max(0,Q.x-S.x),l=Math.max(0,Q.x-Y.x),O=Math.max(0,Q.y-S.y),m=Math.max(0,Q.y-Y.y),V=Q.c,q=Q.v,K=new Uint32Array(Z.buffer),z=new Uint32Array(b.buffer),t=T.p.Su;
for(var D=0;D<q;D++){var H=(O+D)*S.c+e,i=(m+D)*Y.c+l;for(var y=0;y<V;y++,H++,i++){var j=P[H]*f&255;if(j==0)continue;
if(j==255){z[i]=K[H];continue}var J=K[H],A=z[i],a=J>>>24,I=A>>>24,E=T.sU(j*a+(255-j)*I),c=T.sU(a*j),u=T.sU(I*(255-j)),n=J&255,o=J>>>8&255,x=J>>>16&255,g=A&255,v=A>>>8&255,R=A>>>16&255,X=t[E<<8|T.sU(c*n+g*u)],B=t[E<<8|T.sU(c*o+v*u)],M=t[E<<8|T.sU(c*x+R*u)];
z[i]=E<<24|M<<16|B<<8|X}}};T.p.ai4=function(Z,S,b,Y,P,w,f){var h=1/255,Q=S.Yz(Y).Yz(w),e=Math.max(0,Q.x-S.x),l=Math.max(0,Q.x-Y.x),O=Math.max(0,Q.y-S.y),m=Math.max(0,Q.y-Y.y),V=Q.c,q=Q.v,K=new Uint32Array(Z.buffer),z=new Uint32Array(b.buffer),t=T.p.Su,H=Math.round(f*257);
for(var D=0;D<q;D++){var i=(O+D)*S.c+e,y=(m+D)*Y.c+l;for(var j=0;j<V;j++,i++,y++){var J=P[i]*H;if((T.p.A9(i)&65535)<J)z[y]=K[i]}}};
T.p.C4=function(Z,S,b,Y,P,w,f){var h=1/255,Q=S.Yz(Y).Yz(w),e=Math.max(0,Q.x-S.x),l=Math.max(0,Q.x-Y.x),O=Math.max(0,Q.y-S.y),m=Math.max(0,Q.y-Y.y),V=Q.c,q=Q.v,K=new Uint32Array(Z.buffer),z=new Uint32Array(b.buffer),t=Math.floor(Math.random()*Y.X()),H=T.p.a5S;
for(var D=0;D<q;D++){var i=(O+D)*S.c+e,y=(m+D)*Y.c+l;for(var j=0;j<V;j++){var J=P[i+j]*f;if(J==0)continue;
if(J==255){z[y+j]=K[i+j];continue}var A=K[i+j],a=z[y+j],I=A>>>24,E=a>>>24,c=I*J*(1/255),u=E*(255-J)*(1/255),n=A&255,o=A>>>8&255,x=A>>>16&255,g=a&255,v=a>>>8&255,R=a>>>16&255,X=T.p.A9(y+j+t),B=Math.floor((c+u)*256+.5)+(X>>>0&255)>>>8,M=B==0?0:256/(c+u),r=n*c+g*u,N=o*c+v*u,$=x*c+R*u,eQ=Math.floor(r*M+.5)+(X>>>8&255)>>>8,hN=Math.floor(N*M+.5)+(X>>>16&255)>>>8,bI=Math.floor($*M+.5)+(X>>>21&248)>>>8;
z[y+j]=B<<24|bI<<16|hN<<8|eQ}}};T.p.a5S=function(Z){return Math.floor(Z+Math.random())};T.p.gX=function(Z,S,b,Y,P,w,f){var h=1/255,Q=S.Yz(Y).Yz(w),e=Math.max(0,Q.x-S.x),l=Math.max(0,Q.x-Y.x),O=Math.max(0,Q.y-S.y),m=Math.max(0,Q.y-Y.y),V=Q.c,q=Q.v;
for(var D=0;D<q;D++){var K=(O+D)*S.c+e,z=(m+D)*Y.c+l;for(var t=0;t<V;t++,K++,z++){var H=f*P[K]*h;if(H==0)continue;
if(H==1){b[z]=Z[K];continue}b[z]=Z[K]*H+b[z]*(1-H)}}};T.qt={};T.qt.abu=function(Z,S,b,Y,P,w){T.qt.dv(Z,S,b,Y,P,w,null,0)};
T.qt.ako=function(Z,S,b,Y,P){T.qt.dv(Z,S,b,Y,P,null,null,0)};T.qt.afK=function(Z,S,b,Y,P,w,f){T.qt.dv(Z,S,b,Y,P,null,w,f*.5)};
T.qt.dv=function(Z,S,b,Y,P,w,f,h){var Q=0,u=0,n=1e9,o=0,x=1e9,g=0,v=1e9,R=0,X=0,B=0,M=0;if(w){Q=P*.5;
P=3+Math.round((P-3)*.75)}if(f){P=Math.round(P*2.2)}var e=1/P,l=Math.floor(S*e)+1,O=Math.floor(b*e)+1,m=[],V=new Uint8Array(l*O*4),q=f?.5:1,K=w?64:0;
for(var z=0;z<O;z++){var t=f?.5*(z&1):0;for(var H=0;H<l;H++){var i=(H+Math.random()*q+t)*P,y=(z+Math.random()*q)*P;
m.push(i,y);var j=Math.min(S-1,Math.floor(i)),J=Math.min(b-1,Math.floor(y)),A=(J*S+j)*4,a=(z*l+H)*4;
for(var D=0;D<4;D++)V[a+D]=Math.max(0,Math.min(255,Math.floor(Z[A+D]+(Math.random()-.5)*K)))}}var I=w?w:f?f:[0,0,0],E=l*O*2,c=[-l-1,-l,-l+1,-1,0,1,l-1,l,l+1];
for(var z=0;z<b;z++){B=0;for(var H=0;H<S;H++){var r=H+.5,N=z+.5,$=Math.floor(N*e),eQ=Math.floor(r*e),hN=$*l+eQ,e9=0,W=0;
if(B>1+h){n=T.qt.Z3(m,u,r,N);R=Math.sqrt(n);B--;M++}else{n=x=v=1e9;for(var D=0;D<c.length;D++){var bI=(hN+c[D])*2;
if(bI<0||bI>=E)continue;var fq=T.qt.Z3(m,bI,r,N);if(fq<v){if(fq<x){if(fq<n){g=o;v=x;o=u;x=n;u=bI;n=fq}else{g=o;
v=x;o=bI;x=fq}}else{g=bI;v=fq}}}R=Math.sqrt(n);X=Math.sqrt(x);B=X-(R+X)*.5}if(f==null){var L=(R+X)*.5,bd=w?Math.max(0,L-Q):0;
e9=Math.max(0,Math.min(1,.5+L-R-bd));W=Math.max(0,Math.min(1,1-(.5+L-R)-bd))}else{var iw=Math.min(T.qt.zm(m,u,o,r,N),T.qt.zm(m,u,g,r,N));
e9=Math.max(0,Math.min(1,iw-h*.5));if(r<h||S-h<r||N<h||b-h<N)e9=0;W=0}var d7=1-W-e9,a=z*S+H<<2,d0=u<<1,gS=o<<1;
Y[a+0]=Math.floor(.5+e9*V[d0+0]+W*V[gS+0]+d7*I[0]);Y[a+1]=Math.floor(.5+e9*V[d0+1]+W*V[gS+1]+d7*I[1]);
Y[a+2]=Math.floor(.5+e9*V[d0+2]+W*V[gS+2]+d7*I[2]);Y[a+3]=Z[a+3]}}};T.qt.Z3=function(Z,S,b,Y){var P=b-Z[S],w=Y-Z[S+1];
return P*P+w*w};T.qt.zm=function(Z,S,b,Y,P){var w=Z[S],f=Z[S+1],h=Z[b],Q=Z[b+1],e=(w+h)*.5,l=(f+Q)*.5,O=e+(Q-f),m=l-(h-w),V=m-l,q=O-e;
return Math.abs(V*Y-q*P+O*l-m*e)/Math.sqrt(q*q+V*V)};T.rr={};T.rr.gu=function(Z){if(T.rr.ap.length<Z)T.rr.ap=T.f(Z);
return T.rr.ap};T.rr.ap=T.f(0);T.rr.rj=function(Z){if(T.rr.HD.length<Z)T.rr.HD=new Float32Array(Z);return T.rr.HD};
T.rr.HD=new Float32Array(0);T.rr.R2=function(Z,S,b,Y){var P=b.c,w=b.v;T.rr.adg(Z,S,P,w,Y)};T.rr.dj=function(Z,S,b,Y){var P=b.c,w=b.v;
T.rr.a4p(Z,S,P,w,Y)};T.rr.afc=function(Z,S,b){var Y=S.c,P=S.v;T.rr.ahi(Z,Y,P,b)};T.rr.wr=function(Z,S,b,Y,P){var w=b.c,f=b.v;
T.rr.a94(Z,S,w,f,Y,P)};T.rr.LA=function(Z,S,b,Y){var P=b.c,w=b.v;Y=Math.round(Y);var f=T.rr.gu(P*w);
T.Bv(Z,S);T.rr.Vv(S,f,P,w,Y)};T.rr.v8=function(Z,S,b){var Y=S.c,P=S.v;b=Math.round(b);var w=T.rr.gu(Y*P*4);
T.rr.ql(Z,w,Y,P,b)};T.rr._3=function(Z,S,b,Y){var P=b.c,w=b.v;Y=Math.round(Y);var f=T.rr.rj(P*w);T.Bv(Z,S);
T.rr.P$(S,f,P,w,Y)};T.rr.Pz=function(Z,S,b){var Y=S.c,P=S.v;b=Math.round(b);var w=T.rr.gu(Y*P*4);T.rr.K1(Z,w,Y,P,b);
T.Bv(w,Z)};T.rr.hj=function(Z,C){var S=Math.sqrt(12*Z*Z/C+1),b=Math.floor(S);if(b%2==0)b--;var Y=b+2,P=(12*Z*Z-C*b*b-4*C*b-3*C)/(-4*b-4),w=Math.round(P),f=[];
for(var D=0;D<C;D++)f.push(D<w?b:Y);return f};T.rr.adg=function(Z,S,b,Y,P){var w=T.rr.hj(P,3),f=T.rr.gu(b*Y);
T.Bv(Z,S);T.rr.Vv(S,f,b,Y,w[0]-1>>1);T.rr.Vv(S,f,b,Y,w[1]-1>>1);T.rr.Vv(S,f,b,Y,w[2]-1>>1)};T.rr.a4p=function(Z,S,b,Y,P){var w=T.rr.hj(P,2),f=T.rr.gu(b*Y);
T.Bv(Z,S);T.rr.Vv(S,f,b,Y,w[0]-1>>1);T.rr.Vv(S,f,b,Y,w[1]-1>>1)};T.rr.ahi=function(Z,S,b,Y){var P=T.rr.hj(Y,3),w=T.rr.gu(S*b*4);
T.rr.ql(Z,w,S,b,P[0]-1>>1);T.rr.ql(Z,w,S,b,P[1]-1>>1);T.rr.ql(Z,w,S,b,P[2]-1>>1)};T.rr.a94=function(Z,S,b,Y,P,w){if(w==null)w=3;
var f=T.rr.hj(P,w),h=T.rr.rj(b*Y);T.Bv(Z,S);for(var D=0;D<w;D++)T.rr.P$(S,h,b,Y,(f[D]-1)/2)};T.rr.Vv=function(Z,S,b,Y,P){T.rr.akN(Z,S,b,Y,P);
T.rr.acr(S,Z,b,Y,P)};T.rr.ql=function(Z,S,b,Y,P){T.rr.K1(Z,S,b,Y,P);T.rr.ab_(S,Z,b,Y,P)};T.rr.P$=function(Z,S,b,Y,P){T.rr.ahI(Z,S,b,Y,P);
T.rr.a71(S,Z,b,Y,P)};T.rr.Jm=[];T.rr.BW=function(Z){if(T.rr.Jm[Z])return T.rr.Jm[Z];var S=1/(Z+Z+1),b=(Z+Z+1)*256,Y=T.f(b);
for(var D=0;D<b;D++)Y[D]=Math.round(D*S);T.rr.Jm[Z]=Y;return Y};T.rr.akN=function(Z,S,b,Y,P){var w=1/(P+P+1),f=b-P-P-1,h=T.rr.BW(P);
for(var D=0;D<Y;D++){var Q=D*b,e=Q,l=Q+P,O=Z[Q],m=Z[Q+b-1],V=(P+1)*O;for(var q=0;q<P;q++)V+=Z[Q+q];for(var q=0;
q<=P;q++){V+=Z[l+q]-O;S[Q+q]=h[V]}l+=P+1;Q+=P+1;for(var q=0;q<f;q++){V+=Z[l+q]-Z[e+q];S[Q+q]=h[V]}l+=f;
e+=f;Q+=f;for(var q=b-P;q<b;q++){V+=m-Z[e++];S[Q++]=h[V]}}};T.rr.K1=function(Z,S,b,Y,P){var w=b<<2,f=P<<2,h=1/(P+P+1),Q=b-P-P-1,e=Q<<2,l=T.rr.BW(P);
for(var D=0;D<Y;D++){var O=D*w,m=O,V=O+f,q=O+w,K=Z[O],z=Z[O+1],t=Z[O+2],H=Z[O+3],i=(P+1)*K,y=(P+1)*z,j=(P+1)*t,J=(P+1)*H;
for(var A=0;A<f;A+=4){i+=Z[O+A];y+=Z[O+A+1];j+=Z[O+A+2];J+=Z[O+A+3]}for(var A=0;A<=f;A+=4){i+=Z[V]-K;
S[O]=l[i];y+=Z[V+1]-z;S[O+1]=l[y];j+=Z[V+2]-t;S[O+2]=l[j];J+=Z[V+3]-H;S[O+3]=l[J];V+=4;O+=4}for(var A=0;
A<e;A+=4){i+=Z[V+A]-Z[m+A];S[O+A]=l[i];y+=Z[V+A+1]-Z[m+A+1];S[O+A+1]=l[y];j+=Z[V+A+2]-Z[m+A+2];S[O+A+2]=l[j];
J+=Z[V+A+3]-Z[m+A+3];S[O+A+3]=l[J]}V+=e;m+=e;O+=e;K=Z[q-4];z=Z[q-3];t=Z[q-2];H=Z[q-1];for(var A=b-P;
A<b;A++){i+=K-Z[m];S[O]=l[i];y+=z-Z[m+1];S[O+1]=l[y];j+=t-Z[m+2];S[O+2]=l[j];J+=H-Z[m+3];S[O+3]=l[J];
m+=4;O+=4}}};T.rr.ahI=function(Z,S,b,Y,P){var w=1/(P+P+1),f=b-P-P-1;for(var D=0;D<Y;D++){var h=D*b,Q=h,e=h+P,l=Z[h],O=Z[h+b-1],m=(P+1)*l;
for(var V=0;V<P;V++)m+=Z[h+V];for(var V=0;V<=P;V++){m+=Z[e+V]-l;S[h+V]=m*w}e+=P+1;h+=P+1;for(var V=0;
V<f;V++){m+=Z[e+V]-Z[Q+V];S[h+V]=m*w}e+=f;Q+=f;h+=f;for(var V=b-P;V<b;V++){m+=O-Z[Q++];S[h++]=m*w}}};
T.rr.acr=function(Z,S,b,Y,P){var w=1/(P+P+1),f=Y-P-P-1,h=T.rr.BW(P);for(var D=0;D<b;D++){var Q=D,e=Q,l=Q+P*b,O=Z[Q],m=Z[Q+b*(Y-1)],V=(P+1)*O;
for(var q=0;q<P;q++)V+=Z[Q+q*b];for(var q=0;q<=P;q++){V+=Z[l]-O;S[Q]=h[V];l+=b;Q+=b}for(var q=0;q<f;
q++){var K=q*b;V+=Z[l+K]-Z[e+K];S[Q+K]=h[V]}e+=f*b;l+=f*b;Q+=f*b;for(var q=Y-P;q<Y;q++){V+=m-Z[e];S[Q]=h[V];
e+=b;Q+=b}}};T.rr.ab_=function(Z,S,b,Y,P){var w=b<<2,f=P<<2,h=1/(P+P+1),Q=Y-P-P-1,e=Q<<2,l=T.rr.BW(P);
for(var D=0;D<b;D++){var O=D<<2,m=O,V=O+P*w,q=O+w*(Y-1),K=Z[O],z=Z[O+1],t=Z[O+2],H=Z[O+3],i=(P+1)*K,y=(P+1)*z,j=(P+1)*t,J=(P+1)*H;
for(var A=0;A<P;A++){var a=O+A*w;i+=Z[a];y+=Z[a+1];j+=Z[a+2];J+=Z[a+3]}for(var A=0;A<=P;A++){i+=Z[V]-K;
S[O]=l[i];y+=Z[V+1]-z;S[O+1]=l[y];j+=Z[V+2]-t;S[O+2]=l[j];J+=Z[V+3]-H;S[O+3]=l[J];V+=w;O+=w}for(var A=0;
A<Q;A++){var I=A*w;i+=Z[V+I]-Z[m+I];S[O+I]=l[i];y+=Z[V+I+1]-Z[m+I+1];S[O+I+1]=l[y];j+=Z[V+I+2]-Z[m+I+2];
S[O+I+2]=l[j];J+=Z[V+I+3]-Z[m+I+3];S[O+I+3]=l[J]}m+=Q*w;V+=Q*w;O+=Q*w;K=Z[q];z=Z[q+1];t=Z[q+2];H=Z[q+3];
for(var A=Y-P;A<Y;A++){i+=K-Z[m];S[O]=l[i];y+=z-Z[m+1];S[O+1]=l[y];j+=t-Z[m+2];S[O+2]=l[j];J+=H-Z[m+3];
S[O+3]=l[J];m+=w;O+=w}}};T.rr.a71=function(Z,S,b,Y,P){var w=1/(P+P+1),f=Y-P-P-1;for(var D=0;D<b;D++){var h=D,Q=h,e=h+P*b,l=Z[h],O=Z[h+b*(Y-1)],m=(P+1)*l;
for(var V=0;V<P;V++)m+=Z[h+V*b];for(var V=0;V<=P;V++){m+=Z[e]-l;S[h]=m*w;e+=b;h+=b}for(var V=0;V<f;V++){var q=V*b;
m+=Z[e+q]-Z[Q+q];S[h+q]=m*w}Q+=f*b;e+=f*b;h+=f*b;for(var V=Y-P;V<Y;V++){m+=O-Z[Q];S[h]=m*w;Q+=b;h+=b}}};
T.Ts={};T.Ts.f=function(Z,S,b,Y){var P=[];for(var w=0;w<4;w++)for(var f=0;f<4;f++)P.push(Z+b*f/3,S+Y*w/3);
return P};T.Ts.Mx=function(Z,S){var b=Z.slice(0);for(var D=0;D<4;D++)for(var Y=0;Y<4;Y++){var P=2*(D*4+Y),w=2*(Y*4+(3-D));
if(S){var f=P;P=w;w=f}b[w]=Z[P];b[w+1]=Z[P+1]}return b};T.Ts.OY=T.f(0);T.Ts.drawImage=function(Z,S,b,Y,P,w,f){var h=!1,Q=Date.now(),e=2,l=b+2*e,O=Y+2*e,m=new b4(e,e,b,Y),V=m.clone(),H=50;
V.lg(e,e);var q=T.Ts.OY;if(q.length!=V.X()*4)q=T.Ts.OY=T.f(V.X()*4);else q.fill(0);T.uH(S,m,q,V);if(h)console.log(Date.now()-Q,"copy rect");
Q=Date.now();T.pW(q);if(h)console.log(Date.now()-Q,"multiply alpha");Q=Date.now();var K=[],z=[],t=[];
for(var i=0;i<H+1;i++)for(var y=0;y<H+1;y++){var j=y/H,J=i/H;K.push(l*j,O*J);if(y<H&&i<H){var A=i*(H+1)+y,a=A+1,I=A+H+1,E=I+1;
z.push(A,a,I);z.push(I,a,E)}var c=T.Ts.amV(Z,j,J);t.push(-c)}var u=K.slice(0);T.Ts.A(Z,u,new b4(e,e,b,Y));
T.z.A(u,new fR(1,0,0,1,-w.x,-w.y),u);if(h)console.log(Date.now()-Q,"mesh built");Q=Date.now();var n=w.c,o=w.v;
T.yF.PG(q,l,O,P,n,o,K,u,t,z);if(h)console.log(Date.now()-Q,"rendered");Q=Date.now();T.rZ(P);if(h)console.log(Date.now()-Q,"divided");
Q=Date.now()};T.Ts.uS=new Array(10);T.Ts.ale=function(Z,S){var b=200,Y=0,P=0,w=1e9,f=T.Ts.uS;for(var h=0;
h<b+1;h++)for(var Q=0;Q<b+1;Q++){var e=Q/b,l=h/b;T.Ts.ju(Z,e,l,f);var O=f[8]-S.x,m=f[9]-S.y,V=O*O+m*m;
if(V<w){w=V;Y=e;P=l}}return[Y,P]};T.Ts.A=function(Z,S,b){var Y=b.x,P=b.y,w=1/b.c,f=1/b.v,h=T.Ts.uS;for(var Q=0;
Q<S.length;Q+=2){var e=(S[Q]-Y)*w,l=(S[Q+1]-P)*f;T.Ts.ju(Z,e,l,h);S[Q]=h[8];S[Q+1]=h[9]}};T.Ts.amV=function(Z,S,b){var Y,P,w,f,h=T.Ts.uS;
T.Ts.a0d(Z,S,b,h);Y=h[8];P=h[9];T.Ts.a87(Z,S,b,h);w=h[8];f=h[9];return Y*f-P*w};T.Ts.ju=function(Z,S,b,Y){T.Ts.CV(Y,0,b);
T.Ts.CV(Y,4,S);T.Ts.OI(Z,Y)};T.Ts.a0d=function(Z,S,b,Y){T.Ts.CV(Y,0,b);T.Ts.ww(Y,4,S);T.Ts.OI(Z,Y)};
T.Ts.a87=function(Z,S,b,Y){T.Ts.ww(Y,0,b);T.Ts.CV(Y,4,S);T.Ts.OI(Z,Y)};T.Ts.ww=function(Z,D,S){var b=1-S;
Z[D]=-3*(b*b);Z[D+1]=3*(b*b)-6*(S*b);Z[D+2]=6*(S*b)-3*(S*S);Z[D+3]=3*(S*S)};T.Ts.CV=function(Z,D,S){var b=1-S;
Z[D]=b*(b*b);Z[D+1]=3*S*(b*b);Z[D+2]=3*(S*S)*b;Z[D+3]=S*S*S};T.Ts.OI=function(Z,S){var b=0,Y=0,P=0,w=S[0],f=S[1],h=S[2],Q=S[3],e=S[4],l=S[5],O=S[6],m=S[7];
P=w*e;b+=Z[0]*P;Y+=Z[1]*P;P=w*l;b+=Z[2]*P;Y+=Z[3]*P;P=w*O;b+=Z[4]*P;Y+=Z[5]*P;P=w*m;b+=Z[6]*P;Y+=Z[7]*P;
P=f*e;b+=Z[8]*P;Y+=Z[9]*P;P=f*l;b+=Z[10]*P;Y+=Z[11]*P;P=f*O;b+=Z[12]*P;Y+=Z[13]*P;P=f*m;b+=Z[14]*P;Y+=Z[15]*P;
P=h*e;b+=Z[16]*P;Y+=Z[17]*P;P=h*l;b+=Z[18]*P;Y+=Z[19]*P;P=h*O;b+=Z[20]*P;Y+=Z[21]*P;P=h*m;b+=Z[22]*P;
Y+=Z[23]*P;P=Q*e;b+=Z[24]*P;Y+=Z[25]*P;P=Q*l;b+=Z[26]*P;Y+=Z[27]*P;P=Q*O;b+=Z[28]*P;Y+=Z[29]*P;P=Q*m;
b+=Z[30]*P;Y+=Z[31]*P;S[8]=b;S[9]=Y};T.I6={};T.I6.akb=function(Z,S,b){var Y=Date.now(),P=new ArrayBuffer(S*b*16),w=T.I6.aic(Z,S,b,P),f=T.I6.a4E(S,b,P);
return{pk:f,jM:w}};T.I6.adq=function(Z,S,b){var Y=Math.round(Z.length/8),P=new Uint32Array(Y),w=new Uint8Array(Y),f=new Uint32Array(Y);
T._U(P,4294967295,0);P[b]=0;var h=new gE(Y);h.push(b,P[b]);var Q={pk:Z,jM:S,qJ:P,TY:w,ar:f,lq:h,ah9:b};
return Q};T.I6.St=function(Z,S){var b=Z.pk,Y=Z.jM,P=Z.qJ,w=Z.TY,f=Z.ar,h=Z.lq;while(!h.h3()&&(S==null||w[S]==0)){var Q=h.pop();
w[Q]=1;for(var D=0;D<8;D++){var e=b[8*Q+D],l=Q+e;if(e==0||w[l])continue;var O=P[Q]+Y[8*Q+D];if(h.contains(l)&&O<P[l])h.remove(l,P[l]);
if(!h.contains(l)){P[l]=O;f[l]=Q;h.push(l,P[l])}}}};function gE(Z){this.n_=new Uint32Array(Z);this.list=[];
this.QI=0;this.OX=4294967295}gE.prototype.h3=function(){return this.QI==0};gE.prototype.push=function(Z,S){var b=this.list;
if(b[S]==null)b[S]=[];b[S].push(Z);this.QI++;this.n_[Z]=b[S].length-1+1;this.OX=Math.min(this.OX,S)};
gE.prototype.pop=function(){this.QI--;var Z=this.list,S=this.OX,b=Z[S].pop();if(Z[S].length==0)Z[S]=null;
this.Ki();this.n_[b]=0;return b};gE.prototype.contains=function(Z){return this.n_[Z]!=0};gE.prototype.remove=function(Z,S){this.QI--;
var b=this.list,D=this.n_[Z]-1;if(D==b[S].length-1)b[S].pop();else{var Y=b[S].pop();b[S][D]=Y;this.n_[Y]=D+1}if(b[S].length==0)b[S]=null;
this.n_[Z]=0;this.Ki()};gE.prototype.Ki=function(){if(this.QI==0){this.OX=4294967295;return}var Z=this.OX,S=this.list;
while(S[Z]==null)Z++;this.OX=Z};T.I6.a15=function(Z,S,b,Y){var P=new Int16Array(Y);for(var w=0;w<b;w++)for(var f=0;
f<S;f++){var D=w*S+f,h=0;if(1<f&&f<S-2&&1<w&&w<b-2){h+=Z[D-S-S];h+=Z[D-S-1]+2*Z[D-S]+Z[D-S+1];h+=Z[D-2]+2*Z[D-1]-16*Z[D]+2*Z[D+1]+Z[D+2];
h+=Z[D+S-1]+2*Z[D+S]+Z[D+S+1];h+=Z[D+S+S]}else h=-16*Z[D];P[D]=h}return P};T.I6.a1p=function(Z,S,b,Y){if(Y==null)Y=128;
var P=new Uint8Array(S*b);for(var w=1;w<b-1;w++)for(var f=1;f<S-1;f++){var D=w*S+f;P[D]=T.I6.a9V(Z[D],Z[D-1],Z[D+1],Z[D-S],Z[D+S],Y)}return P};
T.I6.a9V=function(Z,S,b,Y,P,w){var f=Math.abs(Z);return Z*S<0&&f<Math.abs(S)&&Math.abs(S-Z)>w||Z*b<0&&f<Math.abs(b)&&Math.abs(b-Z)>w||Z*Y<0&&f<Math.abs(Y)&&Math.abs(Y-Z)>w||Z*P<0&&f<Math.abs(P)&&Math.abs(P-Z)>w?1:0};
T.I6.a3A=function(Z,S,b,Y){var P=new Float32Array(Y),w=0;new Uint32Array(Y).fill(0);for(var f=0;f<b;
f++)for(var h=0;h<S;h++){var Q=0,e=0,D=f*S+h,l=D*3;if(0<h&&h<S-1)Q=Z[D+1]-Z[D-1];if(0<f&&f<b-1)e=Z[D+S]-Z[D-S];
var O=P[l+2]=Math.sqrt(Q*Q+e*e);if(O!=0){var m=1/O;P[l]=Q*m;P[l+1]=e*m}if(O>w)w=O}var V=S*b,q=w==0?0:1/w;
for(var D=0;D<V;D++)P[D*3+2]=1-P[D*3+2]*q;return P};T.I6.a31=function(Z,S,b){return b[~~((.5+.5*Z)*255)]+b[~~((.5+.5*S)*255)]};
T.I6.aic=function(Z,S,b,Y){var P=Date.now(),w=T.I6.a15(Z,S,b,Y),f=T.I6.a1p(w,S,b),h=T.I6.a3A(Z,S,b,Y),Q=new Float32Array(256);
for(var D=0;D<256;D++)Q[D]=Math.acos(-1+2*D/255)*(.95/Math.PI);var e=[-1,0,1,1,1,0,-1,-1],l=[-1,-1,-1,0,1,1,1,0];
for(var D=0;D<8;D++){var O=1/Math.sqrt(e[D]*e[D]+l[D]*l[D]);e[D]*=O;l[D]*=O}var m=[e[0],l[0],e[1],l[1],e[2],l[2],e[3],l[3]],V=[-S-1,-S,-S+1,1],q=new Uint8Array(S*b*8);
new Uint32Array(q.buffer).fill(4294967295);var K=S*b;for(var z=1;z<b-1;z++)for(var t=1;t<S-1;t++){var H=z*S+t,i=1-f[H],y=h[H*3+2],j=h[3*H+1],J=-h[3*H];
for(var A=0;A<4;A++){var a=H+V[A];T.I6.a1T(H,a,A,q,f,h,i,y,j,J,m,Q)}}return q};T.I6.a1T=function(Z,S,b,Y,P,w,f,h,Q,e,l,O){var m=1-P[S],V=(b&1)==0?1:Math.SQRT1_2,q=w[S*3+2]*V,K=w[3*S+1],z=-w[3*S],t=h*V,H=l[b+b],i=l[b+b+1],y=Q*H+e*i,j=K*H+z*i;
if(y+j<0){y=-y;j=-j}var J=T.I6.a31(y,j,O);Y[(Z<<3)+b]=T.I6.GI(m,J,q);Y[(S<<3)+b+4]=T.I6.GI(f,J,t)};T.I6.GI=function(Z,S,b){return 1+~~(.5+20*(.43*Z+.43*S+.14*b))};
T.I6.a4E=function(Z,S,b){var Y=new Int16Array(b),P=Y,D=0,w=0;new Uint32Array(b).fill(0);for(var f=0;
f<S;f++)for(var h=0;h<Z;h++){if(f>0&&h>0)P[w+0]=-Z-1;if(f>0)P[w+1]=-Z;if(f>0&&h<Z-1)P[w+2]=-Z+1;if(h<Z-1)P[w+3]=1;
if(f<S-1&&h<Z-1)P[w+4]=Z+1;if(f<S-1)P[w+5]=Z;if(f<S-1&&h>0)P[w+6]=Z-1;if(h>0)P[w+7]=-1;D++;w+=8}return Y};
T.yM={};T.yM.yU=function(Z){var S=Z.slice(0),b=0;for(var D=0;D<Z.length;D++)b+=Z[D];for(var D=0;D<Z.length;
D++)S[D]/=b;return S};T.yM.zL=[T.yM.yU([1,2,1,2,16,2,1,2,1]),T.yM.yU([1,2,1,2,4,2,1,2,1]),T.yM.yU([0,-1,0,-1,8,-1,0,-1,0]),T.yM.yU([-.7,-1,-.7,-1,10,-1,-.7,-1,-.7]),[-1,0,1,-2,0,2,-1,0,1],[1,2,1,0,0,0,-1,-2,-1]];
T.yM.Hl=function(Z,S,b,Y,P,w,f,h){if(f==null)f=!1;if(h==null)h=!1;var Q=Math.floor(Math.sqrt(P.length)),e=Q-1>>>1,l=new Uint32Array(Z.buffer),S=new Uint8ClampedArray(S.buffer);
for(var D=0;D<Y;D++)for(var O=0;O<b;O++){var m=0,V=0,q=0,K=0;for(var z=0;z<Q;z++)for(var t=0;t<Q;t++){var H=P[z*Q+t];
if(H==0)continue;var i=O-e+t,y=D-e+z;if(i<0)i=0;else if(i>b-1)i=b-1;if(y<0)y=0;else if(y>Y-1)y=Y-1;if(h&&l[y*b+i]>>>24==0){y=D;
i=O}var j=l[y*b+i];m+=(j&255)*H;V+=(j>>>8&255)*H;q+=(j>>>16&255)*H;K+=(j>>>24&255)*H}if(f){if(m<0)m=-m;
if(V<0)V=-V;if(q<0)q=-q;if(K<0)K=-K}if(h){m=Math.max(0,Math.min(255,m));V=Math.max(0,Math.min(255,V));
q=Math.max(0,Math.min(255,q));K=Math.max(0,Math.min(255,K))}var J=D*b+O<<2;S[J]=~~(.5+m);S[J+1]=~~(.5+V);
S[J+2]=~~(.5+q);S[J+3]=255-w&S[J+3]|w&~~(.5+K)}};T.yM.ai=function(Z,S,b,Y){var P=Z.length,w=new Uint8Array(P);
T.yM.Hl(Z,S,b,Y,T.yM.zL[4],0,!0);T.yM.Hl(Z,w,b,Y,T.yM.zL[5],0,!0);for(var D=0;D<P;D+=4){var f=S[D],h=S[D+1],Q=S[D+2],e=S[D+3],l=w[D],O=w[D+1],m=w[D+2],V=w[D+3];
S[D]=255-Math.max(0,Math.min(255,Math.sqrt(f*f+l*l)));S[D+1]=255-Math.max(0,Math.min(255,Math.sqrt(h*h+O*O)));
S[D+2]=255-Math.max(0,Math.min(255,Math.sqrt(Q*Q+m*m)))}};T.yM.ux=function(Z,S,b,Y){var P=Z.length,w=new Uint8Array(P);
T.yM.yC(Z,S,b,Y,T.yM.zL[4],!0);T.yM.yC(Z,w,b,Y,T.yM.zL[5],!0);for(var D=0;D<P;D++){var f=S[D],h=w[D];
S[D]=255-Math.max(0,Math.min(255,Math.sqrt(f*f+h*h)))}};T.yM.yC=function(Z,S,b,Y,P,w){S=new Uint8ClampedArray(S.buffer);
var f=[-b-1,-b,-b+1,-1,0,1,b-1,b,b+1],h=Y-1,Q=b-1;for(var D=1;D<h;D++)for(var e=1;e<Q;e++){var l=D*b+e,O=T.yM.nW(Z,l,b,P);
if(w){if(O<0)O=-O}S[l]=~~(O+.5)}};T.yM.nW=function(Z,S,b,Y){return Z[S-b-1]*Y[0]+Z[S-b]*Y[1]+Z[S-b+1]*Y[2]+Z[S-1]*Y[3]+Z[S]*Y[4]+Z[S+1]*Y[5]+Z[S+b-1]*Y[6]+Z[S+b]*Y[7]+Z[S+b+1]*Y[8]};
T.yM.ZT=function(Z,S,b,Y,P){var w=[-b-1,-b,-b+1,-1,0,1,b-1,b,b+1],f=Y-1,h=b-1;for(var D=1;D<f;D++)for(var Q=1;
Q<h;Q++){var e=D*b+Q;S[e]=T.yM.ao1(Z,e,b,P)}};T.yM.ao1=function(Z,S,b,Y){return Z[S-b-1]*Y[0]+Z[S-b]*Y[1]+Z[S-b+1]*Y[2]+Z[S-1]*Y[3]+Z[S]*Y[4]+Z[S+1]*Y[5]+Z[S+b-1]*Y[6]+Z[S+b]*Y[7]+Z[S+b+1]*Y[8]};
T.gf={};T.gf.a1b=function(){function Z(f,h,Q,e,l,O,m){if(l==0){h.set(f);return}var V=T.f(Q*e),q=T.f(Q*e);
if(T.PV(f)){S(f,h,Q,e,l,O,m);var K=[T.gf.z8,T.gf.KQ],z=K.indexOf(O),t=z!=-1?K[1-z]:O;T.to(f,V,3);T.gf.jt(V,q,Q,e,l,t,m);
T.y8(q,h,3)}else{for(var D=0;D<3;D++){T.to(f,V,D);T.gf.jt(V,q,Q,e,l,O,m);T.y8(q,h,D)}}}function S(f,h,Q,e,l,O,m){var V=0,q=new ArrayBuffer(512*4*3),K=[new Int32Array(q,0),new Int32Array(q,2048),new Int32Array(q,2*2048)],z=1+2*Math.round(Math.sqrt(l)),t=z>>>1,H=new Array(z),i=new Array(z);
for(var D=0;D<z;D++){var q=new ArrayBuffer(512*4*3);H[D]=[new Int32Array(q,0),new Int32Array(q,2048),new Int32Array(q,2*2048)];
i[D]=H[D][0]}var y=O[0],j=O[1],J=K[0];for(var A=0;A<Q;A++)if(A<l||A>Q-l-z-1){J.fill(0);var a=Math.max(A-l,0),I=Math.min(Q,A+l+1),E=I-a;
for(var c=0;c<l;c++)Y(J,f,c*Q+a,c*Q+I,1);for(var c=0;c<e;c++){var u=c-l-1,n=c+l;if(n<e)Y(J,f,n*Q+a,n*Q+I,1);
if(u>=0)Y(J,f,u*Q+a,u*Q+I,-1);var o=c*Q+A<<2;V=J[300];if(V!=0)for(var D=0;D<3;D++)h[o+D]=y(K[D],f[o+D],V,m)}}else{for(var D=0;
D<z;D++)i[D].fill(0);var a=A-l+t,I=A+l+1+t;for(var c=0;c<l;c++)b(i,f,c*Q+a,c*Q+I,1,t);for(var c=0;c<e;
c++){var u=c-l-1,n=c+l;if(u>=0)b(i,f,u*Q+a,u*Q+I,-1,t);if(n<e)b(i,f,n*Q+a,n*Q+I,1,t);var x=H[t];V=x[0][300];
for(var D=0;D<t;D++){var g=t-1-D,v=t+1+D,R=H[g],X=H[v],B=V+R[0][300],M=V+X[0][300],r=c*Q+A+g<<2,N=c*Q+A+v<<2;
if(B!=0)for(var $=0;$<3;$++)h[r+$]=j(x[$],R[$],f[r+$],B,m);if(M!=0)for(var $=0;$<3;$++)h[N+$]=j(x[$],X[$],f[N+$],M,m)}var o=c*Q+A+t<<2;
if(V!=0)for(var $=0;$<3;$++)h[o+$]=y(x[$],f[o+$],V,m)}A+=z-1}}function b(f,h,Q,e,l,O){var m=P,V=Q<<2,q=e<<2;
m(f[O-1],h,Q-1<<2,l);m(f[O-1],h,e-1<<2,-l);m(f[O+1],h,e<<2,l);m(f[O+1],h,Q<<2,-l);for(var D=1;D<O;D++){var K=f[O-D-1],z=f[O+D+1];
for(var t=0;t<=D;t++){var H=t<<2;m(K,h,Q-1-t<<2,l);m(K,h,e-1-t<<2,-l);m(z,h,e+t<<2,l);m(z,h,Q+t<<2,-l)}}Y(f[O],h,Q,e,l)}function Y(f,h,D,Q,e){var l=D<<2,O=Q<<2;
while(l<O){P(f,h,l,e);l+=4}}function P(f,h,Q,e){var l=e*h[Q+3];f[300]+=l;w(f,h[Q],0,l);w(f,h[Q+1],512,l);
w(f,h[Q+2],1024,l)}function w(f,h,Q,e){f[Q|h]+=e;f[Q|256|h>>>4]+=e}return Z}();T.gf.jt=function(){function Z(O,m,V,q,K,z,t){if(K==0){m.set(O);
return}if(K<=80)S(O,m,V,q,K,z,t);else w(O,m,V,q,K,z,t)}function S(O,m,V,q,K,z,t){var H=0,i=new Int32Array(512),y=1+2*Math.round(Math.sqrt(K)),j=y>>>1,J=new Array(y);
for(var D=0;D<y;D++)J[D]=new Int32Array(512);var A=z[0],a=z[1];for(var I=0;I<V;I++)if(I<K||I>V-K-y-1){i.fill(0);
H=0;var E=Math.max(I-K,0),c=Math.min(V,I+K+1),u=c-E;for(var n=0;n<K;n++){H+=u;Y(i,O,n*V+E,n*V+c,1)}for(var n=0;
n<q;n++){var o=n-K-1,x=n+K;if(o>=0){H-=u;Y(i,O,o*V+E,o*V+c,-1)}if(x<q){H+=u;Y(i,O,x*V+E,x*V+c,1)}var g=A(i,O[n*V+I],H,t);
m[n*V+I]=g}}else{for(var D=0;D<y;D++)J[D].fill(0);H=0;var E=I-K+j,c=I+K+1+j,u=c-E;for(var n=0;n<K;n++){H+=u;
b(J,O,n*V+E,n*V+c,1,j)}for(var n=0;n<q;n++){var o=n-K-1,x=n+K;if(o>=0){H-=u;b(J,O,o*V+E,o*V+c,-1,j)}if(x<q){H+=u;
b(J,O,x*V+E,x*V+c,1,j)}for(var D=0;D<j;D++){var v=j-1-D,R=j+1+D;m[n*V+I+v]=a(J[j],J[v],O[n*V+I+v],H,t);
m[n*V+I+R]=a(J[j],J[R],O[n*V+I+R],H,t)}m[n*V+I+j]=A(J[j],O[n*V+I+j],H,t)}I+=y-1}}function b(O,m,V,q,K,z){var t=P;
t(O[z-1],m[V-1],0,K);t(O[z-1],m[q-1],0,-K);t(O[z+1],m[q],0,K);t(O[z+1],m[V],0,-K);for(var D=1;D<z;D++){var H=O[z-D-1],i=O[z+D+1];
for(var y=0;y<=D;y++){t(H,m[V-1-y],0,K);t(H,m[q-1-y],0,-K);t(i,m[q+y],0,K);t(i,m[V+y],0,-K)}}Y(O[z],m,V,q,K)}function Y(O,m,D,V,q){while(D<V)P(O,m[D++],0,q)}function P(O,m,V,q){O[V|m]+=q;
O[V|256|m>>>4]+=q}function w(O,m,V,q,K,z,t){var H=0,i=new Int32Array(512),y=new Int32Array(1*V),j=new Int32Array(512*V),J=Math.min(K,V),A=Math.min(K,q),a=z[0];
for(var I=0;I<A;I++)f(j,y,O,V,I,1);for(var I=0;I<q;I++){if(I+K<q)f(j,y,O,V,I+K,1);if(I-K-1>=0)f(j,y,O,V,I-K-1,-1);
i.fill(0);H=0;for(var E=0;E<J;E++){H+=y[E];h(i,j,E)}for(var E=0;E<V;E++){var c=E-K-1,u=E+K;if(c>=0&&y[c]!=0){H-=y[c];
Q(i,j,c)}if(u<V&&y[u]!=0){H+=y[u];h(i,j,u)}var n=H==0?0:a(i,O[I*V+E],H,t);m[I*V+E]=n}}}function f(O,m,V,q,K,z){var D=K*q;
for(var t=0;t<q;t++){P(O,V[D+t],t<<9,z);m[t]+=z}}function h(O,m,V){for(var D=0;D<16;D++){var q=m[V<<9|256|D];
if(q==0)continue;O[256|D]+=q;var K=D<<4,z=V<<9|K;e(O,m,K,z);e(O,m,K+4,z+4);e(O,m,K+8,z+8);e(O,m,K+12,z+12)}}function Q(O,m,V){for(var D=0;
D<16;D++){var q=m[V<<9|256|D];if(q==0)continue;O[256|D]-=q;var K=D<<4,z=V<<9|K;l(O,m,K,z);l(O,m,K+4,z+4);
l(O,m,K+8,z+8);l(O,m,K+12,z+12)}}function e(O,m,V,q){O[V]+=m[q];O[V+1]+=m[q+1];O[V+2]+=m[q+2];O[V+3]+=m[q+3]}function l(O,m,V,q){O[V]-=m[q];
O[V+1]-=m[q+1];O[V+2]-=m[q+2];O[V+3]-=m[q+3]}return Z}();T.gf.KQ=[function(Z,S,b,Y){var D=15;while(Z[256|D]==0&&D>0)D--;
D=(D<<4)+15;while(Z[D]==0&&D>0)D--;return D},function(Z,S,b,Y,P){var D=15;while(Z[256|D]+S[256|D]==0&&D>0)D--;
D=(D<<4)+15;while(Z[D]+S[D]==0&&D>0)D--;return D}];T.gf.z8=[function(Z,S,b,Y){var D=0;while(Z[256|D]==0&&D<15)D++;
D=D<<4;while(Z[D]==0&&D<255)D++;return D},function(Z,S,b,Y,P){var D=0;while(Z[256|D]+S[256|D]==0&&D<15)D++;
D=D<<4;while(Z[D]+S[D]==0&&D<255)D++;return D}];T.gf.uF=.5;T.gf.CM=[function(Z,S,b,Y){var P=~~(.5+T.gf.uF*b),w=0,D=256;
while(w+Z[D]<=P)w+=Z[D++];D=D-256<<4;while(w<=P)w+=Z[D++];return D-1},function(Z,S,b,Y,P){var w=~~(.5+T.gf.uF*Y),f=0,D=256;
while(f+Z[D]+S[D]<=w){f+=Z[D]+S[D];D++}D=D-256<<4;while(f<=w){f+=Z[D]+S[D];D++}return D-1}];T.gf.RE=[function(Z,S,b,Y){var P=Y[0],w=0,f=0,D=Math.max(0,S-P),h=Math.min(256,S+P+1);
while(D<h){var Q=Z[D];w+=D*Q;f+=Q;D++}return f==0?0:w/f},function(Z,S,b,Y,P){var w=P[0],f=0,h=0,D=Math.max(0,b-w),Q=Math.min(256,b+w+1);
while(D<Q){var e=Z[D]+S[D];f+=D*e;h+=e;D++}return h==0?0:f/h}];T.J={};T.J.Q$=function(Z){var S=G.V.Nt(Z.Trnf),b=Z.Sz.v,Y=T.J.Sy(S,new b4(0,0,b.Wdth.v,b.Hght.v));
return T.J.eS(Y)};T.J.Sy=function(Z,S){var b=Z[0],Y=Z[1],P=Z[2],w=Z[3],f=Z[6],h=Z[7],Q=Z[4],e=Z[5],l=0,O=0,m=1,V=0,q=0,K=1,z=1,t=1;
if(S){l=S.x;O=S.y;m=S.x+S.c;V=S.y;q=S.x;K=S.y+S.v;z=S.x+S.c;t=S.y+S.v}return T.J.MM(Z,[l,O,m,V,z,t,q,K])};
T.J.MM=function(Z,S){var b=Z[0],Y=Z[1],P=Z[2],w=Z[3],f=Z[6],h=Z[7],Q=Z[4],e=Z[5],l=S[0],O=S[1],m=S[2],V=S[3],q=S[6],K=S[7],z=S[4],t=S[5],H=[[l,O,1,0,0,0,-l*b,-O*b,b],[0,0,0,l,O,1,-l*Y,-O*Y,Y],[m,V,1,0,0,0,-m*P,-V*P,P],[0,0,0,m,V,1,-m*w,-V*w,w],[q,K,1,0,0,0,-q*f,-K*f,f],[0,0,0,q,K,1,-q*h,-K*h,h],[z,t,1,0,0,0,-z*Q,-t*Q,Q],[0,0,0,z,t,1,-z*e,-t*e,e]],i=[0,0,0,0,0,0,0,0],y=T.Ig.yn(H,i);
if(y!=0)i=[0,0,0,0,0,0,0,0];return i};T.J.ic=function(Z){return Math.abs(Z[6])<1e-10&&Math.abs(Z[7])<1e-10};
T.J.eS=function(Z){return new fR(Z[0],Z[3],Z[1],Z[4],Z[2],Z[5])};T.J.GC=function(Z){return[Z.w,Z.tE,Z.RN,Z.O,Z.KU,Z.Sv,0,0]};
T.J.A=function(Z,S){var b=new Float64Array(2);for(var Y=0;Y<S.length;Y+=2){var P=S[Y],w=S[Y+1];T.J.Jc(P,w,Z,b);
S[Y]=b[0];S[Y+1]=b[1]}};T.J.Jc=function(Z,S,b,Y){var P=1/(b[6]*Z+b[7]*S+1);Y[0]=(b[0]*Z+b[1]*S+b[2])*P;
Y[1]=(b[3]*Z+b[4]*S+b[5])*P};T.J.n7=function(Z,S){var b=new Float64Array(2);T.J.Jc(S.x,S.y,Z,b);return new ar(b[0],b[1])};
T.J.L8=function(Z,S,b,Y){Z=new Uint32Array(Z.buffer);S=new Uint32Array(S.buffer);for(var P=0;P<Y;P++){for(var w=0;
w<b;w++){S[w*Y+P]=Z[P*b+w]}}};T.J.ajp=function(Z,S,b,Y){Z=new Uint32Array(Z.buffer);S=new Uint32Array(S.buffer);
for(var P=0;P<Y;P++){for(var w=0;w<b;w++){S[P*b+w]=Z[P*b+b-1-w]}}};T.J.Rt=function(Z){return Math.abs(Z[6])<1e-9&&Math.abs(Z[7])<1e-9};
T.J.UW=function(Z){return Math.abs(Z[0])<1e-9&&Math.abs(Z[4])<1e-9||Math.abs(Z[1])<1e-9&&Math.abs(Z[3])<1e-9};
T.J.drawImage=function(Z,S,b,Y,P,w,f,h,Q){if(f==null)f=!1;if(h==null)h=!1;var e=T.J.oN(Z),l=!0,O=0,m=1/Math.sqrt(Math.abs(Z[0]/b*Z[4]/Y-Z[1]/b*Z[3]/Y));
for(var D=0;D<8;D++){var V=Math.round(Z[D]);if(D!=2&&D!=5)O+=Math.abs(V);if(Math.abs(V-Z[D])>1e-9)l=!1}var q=T.J.Rt(Z),K=T.J.UW(Z)&&q,z=K?1:0;
if(f||l&&O==b+Y&&q){T.J.ajf(e,S,b,Y,P,w,h,q,Q);return}var t=w.c,H=w.v,i=new Float64Array(2);P=new Uint32Array(P.buffer);
S=new Uint32Array(S.buffer);for(var y=0;y<H;y++)for(var j=0;j<t;j++){var J=y*t+j,A,a,I,E,eQ=0,hN=0,bI=0,fq=0;
P[J]=0;var c=j+w.x+.5,u=y+w.y+.5;A=c;a=u;I=e;E=1/(I[6]*A+I[7]*a+1);var n=(I[0]*A+I[1]*a+I[2])*E,o=(I[3]*A+I[4]*a+I[5])*E,x=n*b,g=o*Y,v=x<-1||x>b+1||g<-1||g>Y+1;
if(h){x=Math.max(.001,Math.min(b-1,x));g=Math.max(.001,Math.min(Y-1,g))}else if(v)continue;var R=m;if(!q){var X=0,B=0;
I=Z;A=n+1/b;a=o;E=1/(I[6]*A+I[7]*a+1);X=(I[0]*A+I[1]*a+I[2])*E-c;B=(I[3]*A+I[4]*a+I[5])*E-u;var M=X*X+B*B;
A=n;a=o+1/Y;E=1/(I[6]*A+I[7]*a+1);X=(I[0]*A+I[1]*a+I[2])*E-c;B=(I[3]*A+I[4]*a+I[5])*E-u;var r=X*X+B*B;
R=1/Math.sqrt(Math.max(M,r))}if(R<1.1){T.J.Lx(x,g,S,b,Y,P,J,z);continue}var N=Math.round(R*2.3);if(!h&&(x<.6||x>b-.6||g<.6||g>Y-.6)){N=Math.max(N,5)}if(h&&v)N=1;
var $=1/N,e9=w.x+j,W=w.y+y;I=e;for(var D=0;D<N;D++)for(var L=0;L<N;L++){A=e9+(D+.5)*$;a=W+(L+.5)*$;E=1/(I[6]*A+I[7]*a+1);
var x=(I[0]*A+I[1]*a+I[2])*E,g=(I[3]*A+I[4]*a+I[5])*E;if(h){x=Math.max(.001,Math.min(.999,x));g=Math.max(.001,Math.min(.999,g))}else if(x<0||x>=1||g<0||g>=1)continue;
x=Math.floor(x*b);g=Math.floor(g*Y);var bd=g*b+x,iw=S[bd],d7=iw>>>24;eQ+=(iw&255)*d7;hN+=(iw>>>8&255)*d7;
bI+=(iw>>>16&255)*d7;fq+=d7}if(fq!=0){var d0=1/fq;eQ=~~(eQ*d0+.5);hN=~~(hN*d0+.5);bI=~~(bI*d0+.5);fq=~~(fq*$*$+.5);
P[J]=fq<<24|bI<<16|hN<<8|eQ}}};T.J.ajf=function(Z,S,b,Y,P,w,f,h,Q){if(h&&!f&&w.X()>4e6&&Q){T.J.a4T(Z,S,b,Y,P,w,f,h,Q);
return}var e=w.x+w.c,l=w.y+w.v,O=0,m=new Uint32Array(P.buffer),V=new Uint32Array(S.buffer),q=Z[0]*b,K=Z[1]*b,z=Z[2]*b,t=Z[3]*Y,H=Z[4]*Y,i=Z[5]*Y,y=Z[6],j=Z[7];
if(h&&!f)for(var J=w.y+.5;J<l;J++)for(var A=w.x+.5;A<e;A++){var a=q*A+K*J+z,I=t*A+H*J+i;if(0<a&&a<b&&0<I&&I<Y){var E=~~I*b+~~a;
m[O]=V[E]}else m[O]=0;O++}else for(var J=w.y+.5;J<l;J++)for(var A=w.x+.5;A<e;A++){var c=1/(y*A+j*J+1),a=(q*A+K*J+z)*c,I=(t*A+H*J+i)*c;
if(f){a=Math.max(.001,Math.min(b-1,a));I=Math.max(.001,Math.min(Y-1,I))}if(0<a&&a<b&&0<I&&I<Y){var E=Math.floor(I)*b+Math.floor(a);
m[O]=V[E]}else m[O]=0;O++}};T.J.a4T=function(Z,S,b,Y,P,w,f,h,Q){var e=new Uint32Array(P.buffer),l=new Uint32Array(S.buffer),j=0;
if(Q&&(w.c&3)!=0)throw"e";var O=Z[0]*b,m=Z[1]*b,V=Z[2]*b,q=Z[3]*Y,K=Z[4]*Y,z=Z[5]*Y,t=Z[6],H=Z[7],i=w.c,y=w.v,J=w.x+.5,A=w.y+.5,a=(i>>>2<<2)-1e-9,I=-.1+(y>>>1<<1)-1e-9,E=~~b,c=O==0?0:1/O,u=q==0?0:1/q;
for(var n=0;n<y;n++){var o=J*O+m*(n+A)+V,x=J*q+K*(n+A)+z,g=0,v=i;if(O==0){}else if(c>0){g=Math.max(g,-o*c);
v=Math.min(v,(b-o)*c)}else{v=Math.min(v,-o*c);g=Math.max(g,(b-o)*c)}if(q==0){}else if(u>0){g=Math.max(g,-x*u);
v=Math.min(v,(Y-x)*u)}else{v=Math.min(v,-x*u);g=Math.max(g,(Y-x)*u)}if(v<0)v=0;if(g>v)g=v;g=Math.ceil(g);
v=~~v;j=~~(n*i);for(var R=0;R<g;R++)e[j++]=0;for(var R=g;R<v;R+=4){var X=O*R+o,B=q*R+x,M=~~B*E+~~X;e[j++]=e[j++]=e[j++]=e[j++]=l[M]}for(var R=v;
R<i;R++)e[j++]=0}};T.J.oN=function(Z){var S=Z[4]-Z[5]*Z[7],b=Z[2]*Z[7]-Z[1],Y=Z[1]*Z[5]-Z[2]*Z[4],P=Z[5]*Z[6]-Z[3],w=Z[0]-Z[2]*Z[6],f=Z[3]*Z[2]-Z[0]*Z[5],h=Z[3]*Z[7]-Z[4]*Z[6],Q=Z[1]*Z[6]-Z[0]*Z[7],e=1/(Z[0]*Z[4]-Z[1]*Z[3]);
return[S*e,b*e,Y*e,P*e,w*e,f*e,h*e,Q*e]};T.J.Co=function(Z,S){var b=Z[0],Y=Z[1],P=Z[2],w=Z[3],f=Z[4],h=Z[5],Q=Z[6],e=Z[7],l=S[0],O=S[1],m=S[2],V=S[3],q=S[4],K=S[5],z=S[6],t=S[7],H=[b*l+Y*V+P*z,b*O+Y*q+P*t,b*m+Y*K+P,w*l+f*V+h*z,w*O+f*q+h*t,w*m+f*K+h,Q*l+e*V+z,Q*O+e*q+t],i=1/(Q*m+e*K+1);
for(var D=0;D<8;D++)H[D]*=i;return H};T.J.Lx=function(Z,S,b,Y,P,w,f,h){var Q=Z,e=S,m=0,V=0,q=0,K=0;Z-=.499999;
S-=.499999;var l=Math.floor(Z),O=Math.floor(S);if(h==0){var D=O*Y+l,z=l>=0&&l<Y,t=l+1>=0&&l+1<Y,H=O>=0&&O<P,i=O+1>=0&&O+1<P;
if(z&&H)m=b[D];if(t&&H)V=b[D+1];if(z&&i)q=b[D+Y];if(t&&i)K=b[D+Y+1]}else if(h==1){var y=l<0?0:l>Y-1?Y-1:l,j=l<-1?0:l>Y-2?Y-1:l+1,J=O<0?0:O>P-1?P-1:O,A=O<-1?0:O>P-2?P-1:O+1;
m=b[J*Y+y];V=b[J*Y+j];q=b[A*Y+y];K=b[A*Y+j]}else{var y=(l+50*Y)%Y,j=(l+50*Y)%Y,J=(O+50*P)%P,A=(O+50*P)%P;
m=b[J*Y+y];V=b[J*Y+j];q=b[A*Y+y];K=b[A*Y+j]}var a=Z-l,I=S-O,E=(1-I)*(1-a)*(m>>>24),c=(1-I)*a*(V>>>24),u=I*(1-a)*(q>>>24),n=I*a*(K>>>24),o=E+c+u+n,x=E*(m&255)+c*(V&255)+u*(q&255)+n*(K&255),g=E*(m>>>8&255)+c*(V>>>8&255)+u*(q>>>8&255)+n*(K>>>8&255),v=E*(m>>>16&255)+c*(V>>>16&255)+u*(q>>>16&255)+n*(K>>>16&255);
if(o==0)w[f]=0;else{var R=1/o;x=~~(x*R+.5);g=~~(g*R+.5);v=~~(v*R+.5);o=~~(o+.5);w[f]=o<<24|v<<16|g<<8|x}};
T.J.bt=function(Z,S,b,Y,P,w){var f=Z-.499999,h=S-.499999,Q=~~f,e=~~h,l=f-Q,O=h-e,m=(1-O)*(1-l),V=(1-O)*l,q=O*(1-l),K=O*l,z=e*Y+Q<<2,t=(e+1)*Y+Q<<2,H=m*b[z]+V*b[z+4]+q*b[t]+K*b[t+4],i=m*b[z+1]+V*b[z+5]+q*b[t+1]+K*b[t+5],y=m*b[z+2]+V*b[z+6]+q*b[t+2]+K*b[t+6],j=m*b[z+3]+V*b[z+7]+q*b[t+3]+K*b[t+7];
w[0]=H;w[1]=i;w[2]=y;w[3]=j};T.J.FJ=function(Z,S,b,Y,P){Z-=.499999;S-=.499999;var w=Math.floor(Z),f=Math.floor(S),h=Z-w,Q=S-f,e=(1-Q)*(1-h),l=(1-Q)*h,O=Q*(1-h),m=Q*h,V=(w+50*Y)%Y,q=(w+1+50*Y)%Y,K=(f+50*P)%P,z=(f+1+50*P)%P,t=b[K*Y+V],H=b[K*Y+q],i=b[z*Y+V],y=b[z*Y+q];
if(t==null||y==null)throw"e";return e*t+l*H+O*i+m*y};T.J._i=function(Z,S,b,Y,P,w,f,h,Q,e,l,O){var m=new Uint32Array(Z.buffer),V=new Uint32Array(Y.buffer),q=(1+2*e)/P,K=[],z=[];
for(var t=0;t<P;t++){var H=-.25+e-t*q;K.push(Math.cos(2*Math.PI*H)*O/l);K.push(Math.sin(2*Math.PI*H)/l)}f*=S;
h*=b;for(var i=0;i<w;i++){var y=Math.pow(i/w,Q)*w;for(var t=0;t<P;t++){var j=f+K[t<<1]*y,J=h+K[(t<<1)+1]*y,A=~~(.5+(j<0?0:j>S-1?S-1:j)),a=~~(.5+(J<0?0:J>b-1?b-1:J));
V[i*P+t]=m[a*S+A]}}};T.J.KC=function(Z,S,b,Y,P,w,f,h,Q,e,l,O){var m=new Uint32Array(Z.buffer),V=new Uint32Array(Y.buffer),q=1/O,K=[],z=b*4,t=1/z;
for(var H=0;H<z;H++)K.push(Math.pow(H*t,1/Q)*b*l);f*=P;h*=w;for(var H=0;H<w;H++)for(var i=0;i<P;i++){var y=q*(i-f),j=H-h,J=1.75-Math.atan2(j,y)*(1/(2*Math.PI));
J=J-~~J;J=(J+e)*(1/(1+2*e));var A=Math.sqrt(y*y+j*j);A=K[~~(A*4)];T.J.Lx(J*S+.5,A+.5,m,S,b,V,H*P+i,1)}};
T.J.ds=function(Z,S,b,Y,P){var w=P[0],f=P[1];for(var h=0;h<f;h++)for(var Q=0;Q<w;Q++){var e=P[2]*Q+P[3]*h+P[4],l=P[5]*Q+P[6]*h+P[7],O=h*w+Q<<2,m=l*S+e<<2;
Y[O]=Z[m+0];Y[O+1]=Z[m+1];Y[O+2]=Z[m+2];Y[O+3]=Z[m+3]}};T.W={X4:function(Z,S){var b=~~(.499+Z*S);return b<0?0:b>S?S:b},a8m:function(Z,S,b,Y,P,w,f,h){var Q=b[0],e=b[1],l=b[2],O=b[3],m=Y.c,V=Y.v,q=new Float64Array(m*4+8),K=new Float64Array(m*4+8);
for(var z=0,D=0;z<V;z++){var t=q;q=K;K=t;K.fill(0);for(var H=0;H<m;H++,D++){var i=H+P,y=z+w,j=Q*i+e*y,J=l*i+O*y,A=0,E=0;
if(h==0)A=j+.5;else if(h==1)A=2*Math.sqrt(j*j+J*J);else if(h==2)A=(Math.PI+Math.atan2(-J,-j))/(2*Math.PI);
else if(h==3)A=Math.abs(j*2);else if(h==4)A=2*(Math.abs(j)+Math.abs(J));var a=T.W.X4(A,f)*4,I=H*4;for(var c=0;
c<4;c++){var u=Math.max(0,Math.min(254.999,S[a+c]+q[I+4+c])),n=Math.floor(u);if(Math.random()<u-n)n++;
var o=u-n;q[I+8+c]=o*(7/16);K[I+0+c]=o*(3/16);K[I+4+c]=o*(5/16);K[I+8+c]=o*(1/16);E|=n<<c*8}Z[D]=E}}},VW:[function(Z,S,b,Y,P,w,f){var h=b[0],Q=b[1],e=b[2],l=b[3],O=Y.c,m=Y.v;
for(var V=0,D=0;V<m;V++)for(var q=0;q<O;q++,D++){var K=q+P,z=V+w,t=h*K+Q*z,H=e*K+l*z,i=t+.5;Z[D]=S[T.W.X4(i,f)]}},function(Z,S,b,Y,P,w,f){var h=b[0],Q=b[1],e=b[2],l=b[3],O=Y.c,m=Y.v;
for(var V=0,D=0;V<m;V++)for(var q=0;q<O;q++,D++){var K=q+P,z=V+w,t=h*K+Q*z,H=e*K+l*z,i=2*Math.sqrt(t*t+H*H);
Z[D]=S[T.W.X4(i,f)]}},function(Z,S,b,Y,P,w,f){var h=b[0],Q=b[1],e=b[2],l=b[3],O=Y.c,m=Y.v;for(var V=0,D=0;
V<m;V++)for(var q=0;q<O;q++,D++){var K=q+P,z=V+w,t=h*K+Q*z,H=e*K+l*z,i=(Math.PI+Math.atan2(-H,-t))/(2*Math.PI);
Z[D]=S[T.W.X4(i,f)]}},function(Z,S,b,Y,P,w,f){var h=b[0],Q=b[1],e=b[2],l=b[3],O=Y.c,m=Y.v;for(var V=0,D=0;
V<m;V++)for(var q=0;q<O;q++,D++){var K=q+P,z=V+w,t=h*K+Q*z,H=e*K+l*z,i=Math.abs(t*2);Z[D]=S[T.W.X4(i,f)]}},function(Z,S,b,Y,P,w,f){var h=b[0],Q=b[1],e=b[2],l=b[3],O=Y.c,m=Y.v;
for(var V=0,D=0;V<m;V++)for(var q=0;q<O;q++,D++){var K=q+P,z=V+w,t=h*K+Q*z,H=e*K+l*z,i=2*(Math.abs(t)+Math.abs(H));
Z[D]=S[T.W.X4(i,f)]}}]};T.W.aeM=function(Z,S){return Z+.5};T.W.a8d=function(Z,S){return 2*Math.sqrt(Z*Z+S*S)};
T.W.aiD=function(Z,S){return(Math.PI+Math.atan2(-S,-Z))/(2*Math.PI)};T.W.a8o=function(Z,S){return Math.abs(Z*2)};
T.W.a5w=function(Z,S){return 2*(Math.abs(Z)+Math.abs(S))};T.W.Wz=function(Z,S,b,Y,P,w,f,h,Q,e,l,O){if(Z.Clrs==null)return;
var m=new Uint32Array(S.buffer),V=1023,q=T.W.pV(Z.Clrs.v,Q,e);if(O){var K=T.W.adz(Z,q,V+1,f);T.W.a8m(m,K,Y,b,b.x-P,b.y-w,V,h);
return}var z=T.W.aj(Z,q,V+1,f);if(h<5){T.W.VW[h](m,z,Y,b,b.x-P,b.y-w,V)}else{var t=new Uint8Array(z.buffer),H=b.c,i=b.v,y=l.tI-l.eY,j=1/y,J=l.LI.c-b.c>>1,A=l.LI.v-b.v>>1,a=l.LI.c,I=-.6*j,E=(-.6+.4)*j,c=(-.6+2*.4)*j,u=(-.6+3*.4)*j;
for(var n=0,D=0;n<i;n++)for(var o=0;o<H;o++,D+=4){var x=0,g=0,v=0,R=0,X=(n+A)*a+o+J,B=(l.gY[X]-l.eY)*j,M=0;
if(B<=0||B>=1){M=(B<=0?0:V)<<2;S[D]=t[M];S[D+1]=t[M+1];S[D+2]=t[M+2];S[D+3]=t[M+3];continue}M=Math.max(0,Math.min(V-1,Math.round((B+I)*V)))<<2;
g+=t[M];v+=t[M+1];R+=t[M+2];x+=t[M+3];M=Math.max(0,Math.min(V-1,Math.round((B+E)*V)))<<2;g+=t[M];v+=t[M+1];
R+=t[M+2];x+=t[M+3];M=Math.max(0,Math.min(V-1,Math.round((B+c)*V)))<<2;g+=t[M];v+=t[M+1];R+=t[M+2];x+=t[M+3];
M=Math.max(0,Math.min(V-1,Math.round((B+u)*V)))<<2;g+=t[M];v+=t[M+1];R+=t[M+2];x+=t[M+3];S[D]=g>>>2;
S[D+1]=v>>>2;S[D+2]=R>>>2;S[D+3]=x>>>2}}};T.W.pV=function(Z,S,b){var Y=[];for(var D=0;D<Z.length;D++){var P;
if(Z[D].v.Type.v.Clry=="FrgC")P={h:S>>16&255,l:S>>8&255,O:S&255};else if(Z[D].v.Type.v.Clry=="BckC")P={h:b>>16&255,l:b>>8&255,O:b&255};
else P=T.W.CD(Z[D].v.Clr.v);Y.push(P)}return Y};T.W.CD=function(Z){var S,b=Z.classID;if(b=="RGBC"){if(Z.Rd)S={h:Z.Rd.v,l:Z.Grn.v,O:Z.Bl.v};
else S={h:Z.redFloat.v*255,l:Z.greenFloat.v*255,O:Z.blueFloat.v*255}}else if(b=="HSBC"){S=T.Ta(Z.H.v.val/360,Z.Strt.v/100,Z.Brgh.v/100);
S.h*=255;S.l*=255;S.O*=255}else if(b=="CMYC"){var Y=100-Z.Cyn.v,P=100-Z.Mgnt.v,w=100-Z.Ylw.v,f=100-Z.Blck.v,h=255*Y*f*1e-4,Q=255*(.2*Y+.8*P)*f*1e-4,e=255*(.2*P+.8*w)*f*1e-4;
S={h:h,l:Q,O:e}}else if(b=="Grsc")S={h:255-Z.Gry.v,l:255-Z.Gry.v,O:255-Z.Gry.v};else if(b=="LbCl"){S=T.Hz(Z.Lmnc.v,Z.A.v,Z.B.v)}else console.log(Z);
if(isNaN(S.h))S.h=S.l=S.O=0;return S};T.W.RQ=function(Z){return{classID:"RGBC",Rd:{t:"doub",v:Z.h},Grn:{t:"doub",v:Z.l},Bl:{t:"doub",v:Z.O}}};
T.W.adz=function(Z,S,b,Y){var P=[],w=1/(b-0);for(var D=0;D<b;D++){var f=D*4,h=T.W.qe(Z,S,(Y?b-1-D:D)*w);
P[f]=h[0];P[f+1]=h[1];P[f+2]=h[2];P[f+3]=h[3]}return P};T.W.aj=function(Z,S,b,Y){var P=new Uint32Array(b),w=1/(b-0);
for(var D=0;D<b;D++)P[D]=T.W.r2(Z,S,(Y?b-1-D:D)*w);return P};T.W.qe=function(Z,S,b){var Y=4096,P=1/4096,w=Z.Intr.v*P,f=Z.Clrs.v,h=Z.Trns.v,Q=f.length-1,e=h.length-1,D=-1,l=0,O=0,m=0,V=0;
while(D<e&&h[D+1].v.Lctn.v<=b*Y)D++;if(D==-1){l=h[0].v.Opct.v.val*(255/100)}else if(D==e){l=h[D].v.Opct.v.val*(255/100)}else{var q=T.W.QA(h,P,D,b,w);
l=(q*h[D].v.Opct.v.val+(1-q)*h[D+1].v.Opct.v.val)*(255/100)}D=-1;while(D<Q&&f[D+1].v.Lctn.v<=b*Y)D++;
if(D==-1){var K=S[0];O=K.h;m=K.l;V=K.O}else if(D==Q){var K=S[D];O=K.h;m=K.l;V=K.O}else{var z=S[D],t=S[D+1],H=T.W.QA(f,P,D,b,w);
O=H*z.h+(1-H)*t.h;m=H*z.l+(1-H)*t.l;V=H*z.O+(1-H)*t.O}return[O,m,V,l]};T.W.r2=function(Z,S,b){var Y=T.W.qe(Z,S,b),P=~~(.5+Y[0]),w=~~(.5+Y[1]),f=~~(.5+Y[2]),h=~~(.5+Y[3]);
return h<<24|f<<16|w<<8|P};T.W.QA=function(Z,S,D,b,Y){if(Z.length==2)Y*=.5;var P=Z[D].v.Lctn.v*S,w=Z[D+1].v.Lctn.v*S,f=P+Z[D+1].v.Mdpn.v*.01*(w-P),h;
if(b<f)h=.5*(b-P)/(f-P);else h=.5+.5*(b-f)/(w-f);h=.5+.5*(Y*Math.cos(Math.PI*h)+(1-Y)*(1-2*h));return h};
T.W.E1=function(Z,S){var b=Math.PI*Z.Angl.v.val/180,Y=Z.Scl.v.val/100,P=Z.Ofst.v,w=P.Hrzn.v.val/100,f=P.Vrtc.v.val/100,h=Math.cos(b),Q=-Math.sin(b),e=.5*S.v,l=e*(h/Q),O=Math.sqrt(e*e+l*l),m=.5*S.c,V=m*(Q/h),q=Math.sqrt(m*m+V*V),K=Math.min(O,q)*Y,z=S.x+S.c/2+w*S.c,t=S.y+S.v/2+f*S.v;
return[new ar(z,t),new ar(z+h*K,t+Q*K)]};T.W.Vu=function(Z,S,b,Y){var P=S.x-Z.x,w=-(S.y-Z.y),f=Math.sqrt(P*P+w*w),h=Math.atan2(w,P),Q=Math.cos(h),e=-Math.sin(h),l=.5*b.v,O=l*(Q/e),m=Math.sqrt(l*l+O*O),V=.5*b.c,q=V*(e/Q),K=Math.sqrt(V*V+q*q),z=f/Math.min(m,K),t=(Z.x-b.x-b.c/2)/b.c,H=(Z.y-b.y-b.v/2)/b.v;
Y.Angl.v.val=180*h/Math.PI;Y.Scl.v.val=z*100;var i=Y.Ofst.v;i.Hrzn.v.val=t*100;i.Vrtc.v.val=H*100};T.W.nu=function(Z,S){for(var D=0;
D<Z.length;D++){var b=Z[D],Y=Math.round(b[0]*4096),P=b[1],w=b[2],f=b[3];if(w==null)w=1;if(f==null)f=.5;
var h=T.W.RQ({h:P[0]*255,l:P[1]*255,O:P[2]*255});S.Clrs.v[D]={t:"Objc",v:{classID:"Clrt",Lctn:{t:"long",v:Y},Mdpn:{t:"long",v:Math.round(f*100)},Clr:{t:"Objc",v:h},Type:{t:"enum",v:{Clry:"UsrS"}}}};
S.Trns.v[D]={t:"Objc",v:{classID:"TrnS",Lctn:{t:"long",v:Y},Mdpn:{t:"long",v:Math.round(f*100)},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(w*100)}}}}}};
T.iw={};T.iw.al1=function(Z,S,b,Y,P,w,f,h,Q,e,l,O){var m,V,q,K=Date.now(),z=!1,t=f,H=e,i,y,j,J,A=w*255,a=255-Q*255,I=1+P*6,E=1+h*6,c=1+O*4,u=(c-1)/7,n=0,o=255-0,x,g,v,R,X,B,M,r,N,$,eQ,hN,bI,fq=0,e9=1,W,L,bd,iw,d7,d0,gS,cf,cT,fU,dX=1+l,g$,bX=T.f(b*Y),aw=T.f(b*Y),hP=T.f(b*Y),eG=T.f(b*Y),eB=255/A,bb=255/(255-a);
for(V=0;V<Y;V++){for(m=0;m<b;m++){var D=V*b+m,gx=D<<2;W=T.w2(Z[gx],Z[gx+1],Z[gx+2]);eG[D]=W;if(W<A)bX[D]=255-W*eB;
if(W>a)aw[D]=255-(255-W)*bb}}if(z)console.log("init",Date.now()-K);K=Date.now();if(P*t>0){hP.set(bX);
T.rr.dj(hP,bX,new b4(0,0,b,Y),t)}if(h*H>0){hP.set(aw);T.rr.dj(hP,aw,new b4(0,0,b,Y),H)}if(z)console.log("blur",Date.now()-K);
K=Date.now();var er=T.f(256),ea=T.f(256);for(var D=0;D<256;D++){var hD=D*(1/255),bP=0;bP=(1-Math.pow(1-hD,I))*255;
er[D]=Math.max(0,Math.min(255,~~(bP+.5)));bP=Math.pow(hD,E)*255;ea[D]=Math.max(0,Math.min(255,~~(bP+.5)))}var iz=new Uint8ClampedArray(S.buffer),iq=new Float32Array(32768);
for(var D=0;D<32768;D++){g$=Math.sqrt(D)*(1/128);if(dX>1)g$=(1-g$)*(dX-1)+1;else g$=g$*(dX-1)+1;iq[D]=g$}for(V=0;
V<Y;V++){for(m=0;m<b;m++){var D=V*b+m,gx=D<<2,bP=eG[D],cU=bX[D]*(1/255),aH=aw[D]*(1/255);bP=(1-cU)*bP+cU*er[~~bP];
bP=(1-aH)*bP+aH*ea[~~bP];W=bP;var eK=Z[gx],h6=Z[gx+1],co=Z[gx+2];L=-eK*.168736-h6*.331264+co*.5;bd=eK*.5-h6*.418688-co*.081312;
g$=iq[~~(.5+L*L+bd*bd)];iw=L*g$;d0=bd*g$;e9=1-Math.min(2-(cU+aH),1);L=e9*L+(1-e9)*iw;bd=e9*bd+(1-e9)*d0;
cf=W+1.402*bd;cT=W-.34414*L-.71414*bd;fU=W+1.772*L;iz[gx]=~~(.5+cf);iz[gx+1]=~~(.5+cT);iz[gx+2]=~~(.5+fU)}}if(z)console.log("apply masks",Date.now()-K);
K=Date.now()};T.vl={};T.vl.Ci=function(Z,S,b,Y,P){var w=!1,q=1,o=0,x=0,N=0,cT=0;if(!S.ls(P)){var f=S.VK(P),h=T.f(f.X()*4);
T.uH(Z,S,h,f);Z=h;S=f}var Q=T.f(S.X());T.JS(b,P,Q,S);T.round(Q);P=P.Yz(S);var e=P.c,l=P.v,O=e*3<l?2:1,m=l*3<e?2:1;
if(P.X()*(O*2+1)*(m*2+1)<S.X()){var f=new b4(P.x-e*O,P.y-l*O,e*(O*2+1),l*(m*2+1)).Yz(S),h=T.f(f.X()*4);
T.uH(Z,S,h,f);var V=T.f(f.X());T.JS(Q,S,V,f);S=f;Z=h;Q=V}while((S.c+S.v)/2/q>400)q++;var K=Z,z=S,t=Q,H=Math.floor(z.c/q),i=Math.floor(z.v/q);
Z=T.f(H*i*4);T.scale.V_(K,z.c,z.v,Z,H,i,1/q);Q=T.f(H*i);T.scale.ds(t,z.c,z.v,Q,H,i,1/q);T.round(Q,1);
var y=T.fD(Q,new b4(0,0,H,i));if(y.h3())return 1;var j=Math.round((y.c+y.v)/2/15),J=Date.now(),A=T.f(H*i*4);
T.a5W(Z,A);var a=Int16Array,I=new a(H*i*24),E=new a(64),c=new a(64),u=new a(64),n=new a(64);for(var g=3;
g<i-4;g++)for(var v=3;v<H-4;v++){var R=g*H+v;if(Q[R]==255)continue;if(T.vl.ack(A,Q,v,g,H,i,E,c,u)!=0)continue;
T.vl.NY(E,n);I[o]=v;I[o+1]=g;T.vl.Bv(E,I,o+4,12);o+=16;T.vl.NY(c,n);T.vl.Bv(c,I,o,4);o+=4;T.vl.NY(u,n);
T.vl.Bv(u,I,o,4);o+=4;var X=I[o-24+5],B=I[o-24+6];I[o-24+5]=I[o-24+20];I[o-24+6]=I[o-24+16];I[o-24+16]=X;
I[o-24+20]=B;x++}if(x==0)return 2;if(w)console.log(Date.now()-J,"FWHT computed");J=Date.now();var M=[];
T.vl.cr(0,x-1,M,I,new a(2*24));if(w)console.log(Date.now()-J,"KD tree computed");J=Date.now();var r=new Float32Array(H*i*4);
for(var D=0;D<x;D++){var $=D,eQ=T.vl.acM($,I,M,j);if(eQ==-1)continue;var hN=$*24,bI=eQ*24,fq=I[hN],e9=I[hN+1],W=I[bI],L=I[bI+1];
N+=T.vl.getError(bI,hN,I,1e99);var bd=W-fq,iw=L-e9;r[(i+iw)*2*H+(H+bd)]+=1}if(w)console.log(Date.now()-J,"NN found");
J=Date.now();var d7=[],d0=1/(2*H);for(var D=0;D<r.length;D++){if(r[D]>0){var g=Math.floor(D*d0),v=D-g*2*H;
d7.push({x:v-H,y:g-i,G:r[D],QC:-1})}}d7.sort(function(aH,eK){return eK.G-aH.G});var gS=new Int32Array(H*i),cf=[];
for(var D=0;D<H*i;D++){if(Q[D]==255){gS[D]=cT;cf.push(D%H,Math.floor(D/H));cT++}else if(Z[(D<<2)+3]<200){gS[D]=-2}else{gS[D]=-1}}var fU=T.vl.ahf(H,i,d7,gS,cf,cT);
if(fU==null){return 3}var dX=fU.DU,top=fU.top;dX=T.vl.a47(dX,Z,H,i,top,gS,cf,cT);if(w)console.log(Date.now()-J,"optimal labeling found");
J=Date.now();var f=P.clone();f.lg(1,1);f=f.Yz(z);var g$=T.f(f.X()*4),hP=T.f(f.X());T.uH(K,z,g$,f);var eG=z.c,eB=z.v;
for(var g=0;g<eB;g++)for(var v=0;v<eG;v++){if(t[g*eG+v]==0)continue;var bb=Math.min(Math.floor(v/q),H-1),gx=Math.min(Math.floor(g/q),i-1),er=gS[gx*H+bb],ea=dX[er],hD=top[ea],bP=v+hD.x*q,iz=g+hD.y*q,iq=iz*eG+bP<<2,cU=(g-f.y+z.y)*f.c+(v-f.x+z.x)<<2;
g$[cU]=K[iq];g$[cU+1]=K[iq+1];g$[cU+2]=K[iq+2];g$[cU+3]=K[iq+3];g$[cU+3]=K[iq+3];hP[cU>>2]=ea+1}if(w)console.log(Date.now()-J,"copied back");
J=Date.now();T.Ar.Ci(g$,hP,f,null,1e3);if(w)console.log(Date.now()-J,"poisson smooth");J=Date.now();
T.uH(g$,f,Y,P);return 0};T.vl.sk=function(Z,S,b,Y,P,w){return T.vl.Q8(Z+P.x,S+P.y,b,Y)&&w[(S+P.y)*b+(Z+P.x)]==-1?0:1e9};
T.vl.a47=function(Z,S,b,Y,top,P,w,f){var h=Date.now(),Q=[-1,0,0,-1,1,0,0,1],e=1e99,l=[],O=[],m=2*(f*2*3+f*2),V=null,q=0,K=0,z=0,t=1e99;
while(!0&&Date.now()<h+12e3){z++;var H=null,i=e;for(var y=0;y<top.length;y++){var j=top[y],J=0,A=f+2,a=0;
for(var D=0;D<f;D++){var I=w[D*2],E=w[D*2+1],c=top[Z[D]],u=T.vl.sk(I,E,b,Y,j,P),n=Z[D]==y?1e9:T.vl.sk(I,E,b,Y,c,P);
for(var C=0;C<4;C++){if(C==0&&I==0||C==1&&E==0||C==2&&I==b-1||C==3&&E==Y-1)continue;var o=Q[2*C],x=Q[2*C+1],g=I+o,v=E+x,R=P[v*b+g];
if(R==-2){}else if(R==-1){u+=3*T.vl.jv(g+j.x,v+j.y,g,v,b,Y,S,P);u+=2*T.vl.jv(g+j.x+o,v+j.y+x,g+o,v+x,b,Y,S,P);
n+=3*T.vl.jv(g+c.x,v+c.y,g,v,b,Y,S,P);n+=2*T.vl.jv(g+c.x+o,v+c.y+x,g+o,v+x,b,Y,S,P)}else if(C>1){if(Z[D]==Z[R]){var X=0;
X+=T.vl.jv(I+c.x,E+c.y,I+j.x,E+j.y,b,Y,S,P);X+=T.vl.jv(g+c.x,v+c.y,g+j.x,v+j.y,b,Y,S,P);l[J]=D;l[J+1]=R;
O[J]=X;O[J+1]=X;J+=2}else{var B=top[Z[R]],M=A,r=0,N=0,$=0;A++;r+=T.vl.jv(I+c.x,E+c.y,I+j.x,E+j.y,b,Y,S,P);
r+=T.vl.jv(g+c.x,v+c.y,g+j.x,v+j.y,b,Y,S,P);N+=T.vl.jv(I+B.x,E+B.y,I+j.x,E+j.y,b,Y,S,P);N+=T.vl.jv(g+B.x,v+B.y,g+j.x,v+j.y,b,Y,S,P);
$+=T.vl.jv(I+B.x,E+B.y,I+c.x,E+c.y,b,Y,S,P);$+=T.vl.jv(g+B.x,v+B.y,g+c.x,v+c.y,b,Y,S,P);l[J]=D;l[J+1]=M;
O[J]=r;O[J+1]=r;J+=2;l[J]=R;l[J+1]=M;O[J]=N;O[J+1]=N;J+=2;l[J]=M;l[J+1]=f+1;O[J]=$;O[J+1]=0;J+=2}}}l[J]=f;
l[J+1]=D;O[J]=u;O[J+1]=0;J+=2;l[J]=D;l[J+1]=f+1;O[J]=n;O[J+1]=0;J+=2;a+=Math.min(u,n)}if(a>i)continue;
var eQ=T.Pb.yn(A,J,f,f+1,l,O,i);if(eQ.qJ<i){i=eQ.qJ;var hN=Z.slice(0);T.vl.a8i(hN,J,l,eQ.TT,y,f);H=hN}}if(i*1>=e){break}e=i;
Z=H;if((z&3)==0){if(i*1.03>=t)break;t=i}if((z&3)==0){var bI=0*top.length;for(var D=0;D<top.length&&top.length>bI;
D++){if(Z.indexOf(D)!=-1)continue;top.splice(D,1);for(var R=0;R<Z.length;R++)if(Z[R]>D)Z[R]--;D--}}}return Z};
T.vl.a8i=function(Z,S,b,Y,P,w){for(var D=0;D<Y.length;D++){var f=Y[D]<<1,h=0,Q=0;if(f<S){h=b[f];Q=b[f+1]}else{Q=b[f];
h=b[f+1]}if(h==w&&Z[Q]!=P)Z[Q]=P}};T.vl.TV=function(top,Z,S,b,Y,P,w,f,h){for(var D=0;D<S.length;D++){var Q=S[D],e=!0;
if(f!=null&&!(T.vl.Q8(f+Q.x,h+Q.y,P,w)&&b[P*(h+Q.y)+f+Q.x]==-1))continue;if(Q.QC==-1)Q.QC=T.vl.am4(Q,b,Y,P,w);
if(Q.QC<=0)continue;for(var l=0;l<top.length;l++){var O=top[l],m=Q.x-O.x,V=Q.y-O.y;if(m*m+V*V<Z){e=!1;
break}}if(e)return Q}return null};T.vl.am4=function(Z,S,b,Y,P){var w=0;for(var D=0;D<b.length;D+=2){var f=b[D]+Z.x,h=b[D+1]+Z.y;
if(T.vl.Q8(f,h,Y,P)&&S[Y*h+f]==-1)w++}return w/(b.length>>1)};T.vl.ahf=function(Z,S,b,Y,P,w){var top=[];
for(var D=0;D<60;D++){var f=T.vl.TV(top,25,b,Y,P,Z,S);if(f==null)break;else top.push(f)}if(top.length==0)return null;
var h=[];for(var D=0;D<w;D++){var Q=P[D*2],e=P[D*2+1],l=-1,O=0;while(!0){O++;var m=Math.random();l=Math.floor(m*.99999*top.length);
var V=top[l],q=Q+V.x,K=e+V.y;if(T.vl.Q8(q,K,Z,S)&&Y[K*Z+q]==-1)break;if(O>100){var f;f=T.vl.TV(top,0,b,Y,P,Z,S,Q,e);
if(f==null)return null;top.push(f);O=0}}h.push(l)}return{top:top,DU:h}};T.vl.jv=function(Z,S,b,Y,P,w,f,h){if(Z==b&&S==Y)return 0;
if(Z<0||S<0||Z>=P||S>=w||b<0||Y<0||b>=P||Y>=w||h[S*P+Z]!=-1||h[Y*P+b]!=-1)return 1e7;var Q=S*P+Z<<2,e=Y*P+b<<2,l=f[Q]-f[e],O=f[Q+1]-f[e+1],m=f[Q+2]-f[e+2];
return 1+(l*l+O*O+m*m)};T.vl.Q8=function(Z,S,b,Y){return Z>=0&&Z<b&&S>=0&&S<Y};T.vl.acM=function(Z,S,b,Y){var P=24*Z,w=S[P],f=S[P+1],h=Y*Y,Q=0,m=1e9;
while(b[Q]!=99)if(S[P+b[Q]]<b[Q+1])Q=b[Q+2];else Q=b[Q+3];var e=b[Q+1],l=b[Q+2],O=-1;for(var D=e;D<=l;
D++){var Q=D,V=Q*24,q=S[V],K=S[V+1];if((q-w)*(q-w)+(K-f)*(K-f)<h)continue;var z=T.vl.getError(V,P,S,m);
if(z<m){m=z;O=Q}}return O};T.vl.getError=function(Z,S,b,Y){var P=0;for(var w=4;w<24;w+=4){var f=b[S+w]-b[Z+w],h=b[S+w+1]-b[Z+w+1],Q=b[S+w+2]-b[Z+w+2],e=b[S+w+3]-b[Z+w+3];
P+=f*f+h*h+Q*Q+e*e;if(P>=Y)return P+1}return P};T.vl.cr=function(Z,S,b,Y,P){var w=16,m=0;if(S-Z<=w){b.push(99,Z,S);
return}T.vl.$R(Z,S,Y,P);var f=-1,h=-1;for(var D=4;D<24;D++){var Q=P[2*D+1]-P[2*D];if(Q>h){h=Q;f=D}}var e=Z+S>>1,l=T.vl.a2u(e,Z,S,Y,f),O=-1;
for(var D=Z;D<=S;D++)if(Y[24*D+f]==l){if(O==-1)O=D;m=D}if(Z+8<O&&O-Z>S-m)e=O;else if(m+1<S-8)e=m+1;else if(S-Z<64){b.push(99,Z,S);
return}else e=e;var V=b.length;b.push(f,l,0,0);b[V+2]=V+4;T.vl.cr(Z,e-1,b,Y,P);b[V+3]=b.length;T.vl.cr(e,S,b,Y,P)};
T.vl.$R=function(Z,S,b,Y){for(var D=0;D<48;D+=4){Y[D]=3e4;Y[D+1]=-3e4;Y[D+2]=3e4;Y[D+3]=-3e4}for(var D=Z;
D<=S;D++){var P=D*24;for(var w=0;w<24;w++){var f=b[P+w],h=Y[w<<1],Q=Y[(w<<1)+1];if(f<h)Y[w<<1]=f;if(f>Q)Y[(w<<1)+1]=f}}};
T.vl.__=function(Z,S,b){var Y=0,D=0;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;
D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;
D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;
D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;
D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;
D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;
D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;
D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;
D++;Y=b[Z+D];b[Z+D]=b[S+D];b[S+D]=Y;D++};T.vl.iU=function(Z,S,b,Y){var P=b+Y>>>1,w=Z[24*P+S];while(b<=Y){while(Z[24*b+S]<w)b++;
while(Z[24*Y+S]>w)Y--;if(b<=Y){if(Z[24*b+S]!=Z[24*Y+S])T.vl.__(b*24,Y*24,Z);b++;Y--}}return b};T.vl.a2u=function(Z,S,b,Y,P){var w=0;
while(S!=b){w=T.vl.iU(Y,P,S,b);if(Z<w)b=w-1;else S=w}return Y[Z*24+P]};T.vl.Bv=function(Z,S,b,Y){for(var D=0;
D<Y;D++)S[b+D]=Z[D]};T.vl.ack=function(Z,S,b,Y,P,w,f,h,Q){var e=(Y-3)*P+(b-3),l=e<<2;for(var O=0;O<8;
O++){if(S[e]+S[e+1]+S[e+2]+S[e+3]+S[e+4]+S[e+5]+S[e+6]+S[e+7]!=0||Z[l+3]<200||Z[l+7]<200||Z[l+11]<200||Z[l+15]<200||Z[l+19]<200||Z[l+23]<200||Z[l+27]<200||Z[l+31]<200)return 1;
var D=O<<3;f[D+0]=Z[l+0];h[D+0]=Z[l+1];Q[D+0]=Z[l+2];f[D+1]=Z[l+4];h[D+1]=Z[l+5];Q[D+1]=Z[l+6];f[D+2]=Z[l+8];
h[D+2]=Z[l+9];Q[D+2]=Z[l+10];f[D+3]=Z[l+12];h[D+3]=Z[l+13];Q[D+3]=Z[l+14];f[D+4]=Z[l+16];h[D+4]=Z[l+17];
Q[D+4]=Z[l+18];f[D+5]=Z[l+20];h[D+5]=Z[l+21];Q[D+5]=Z[l+22];f[D+6]=Z[l+24];h[D+6]=Z[l+25];Q[D+6]=Z[l+26];
f[D+7]=Z[l+28];h[D+7]=Z[l+29];Q[D+7]=Z[l+30];l+=P<<2;e+=P}return 0};T.vl.NY=function(Z,S){S[0]=Z[32]+Z[0];
S[1]=Z[33]+Z[1];S[2]=Z[34]+Z[2];S[3]=Z[35]+Z[3];S[4]=Z[36]+Z[4];S[5]=Z[37]+Z[5];S[6]=Z[38]+Z[6];S[7]=Z[39]+Z[7];
S[8]=Z[40]+Z[8];S[9]=Z[41]+Z[9];S[10]=Z[42]+Z[10];S[11]=Z[43]+Z[11];S[12]=Z[44]+Z[12];S[13]=Z[45]+Z[13];
S[14]=Z[46]+Z[14];S[15]=Z[47]+Z[15];S[16]=Z[48]+Z[16];S[17]=Z[49]+Z[17];S[18]=Z[50]+Z[18];S[19]=Z[51]+Z[19];
S[20]=Z[52]+Z[20];S[21]=Z[53]+Z[21];S[22]=Z[54]+Z[22];S[23]=Z[55]+Z[23];S[24]=Z[56]+Z[24];S[25]=Z[57]+Z[25];
S[26]=Z[58]+Z[26];S[27]=Z[59]+Z[27];S[28]=Z[60]+Z[28];S[29]=Z[61]+Z[29];S[30]=Z[62]+Z[30];S[31]=Z[63]+Z[31];
S[32]=Z[0]-Z[32];S[33]=Z[1]-Z[33];S[34]=Z[2]-Z[34];S[35]=Z[3]-Z[35];S[36]=Z[4]-Z[36];S[37]=Z[5]-Z[37];
S[38]=Z[6]-Z[38];S[39]=Z[7]-Z[39];S[40]=Z[8]-Z[40];S[41]=Z[9]-Z[41];S[42]=Z[10]-Z[42];S[43]=Z[11]-Z[43];
S[44]=Z[12]-Z[44];S[45]=Z[13]-Z[45];S[46]=Z[14]-Z[46];S[47]=Z[15]-Z[47];S[48]=Z[16]-Z[48];S[49]=Z[17]-Z[49];
S[50]=Z[18]-Z[50];S[51]=Z[19]-Z[51];S[52]=Z[20]-Z[52];S[53]=Z[21]-Z[53];S[54]=Z[22]-Z[54];S[55]=Z[23]-Z[55];
S[56]=Z[24]-Z[56];S[57]=Z[25]-Z[57];S[58]=Z[26]-Z[58];S[59]=Z[27]-Z[59];S[60]=Z[28]-Z[60];S[61]=Z[29]-Z[61];
S[62]=Z[30]-Z[62];S[63]=Z[31]-Z[63];Z[0]=S[16]+S[0];Z[1]=S[17]+S[1];Z[2]=S[18]+S[2];Z[3]=S[19]+S[3];
Z[4]=S[20]+S[4];Z[5]=S[21]+S[5];Z[6]=S[22]+S[6];Z[7]=S[23]+S[7];Z[8]=S[24]+S[8];Z[9]=S[25]+S[9];Z[10]=S[26]+S[10];
Z[11]=S[27]+S[11];Z[12]=S[28]+S[12];Z[13]=S[29]+S[13];Z[14]=S[30]+S[14];Z[15]=S[31]+S[15];Z[16]=S[0]-S[16];
Z[17]=S[1]-S[17];Z[18]=S[2]-S[18];Z[19]=S[3]-S[19];Z[20]=S[4]-S[20];Z[21]=S[5]-S[21];Z[22]=S[6]-S[22];
Z[23]=S[7]-S[23];Z[24]=S[8]-S[24];Z[25]=S[9]-S[25];Z[26]=S[10]-S[26];Z[27]=S[11]-S[27];Z[28]=S[12]-S[28];
Z[29]=S[13]-S[29];Z[30]=S[14]-S[30];Z[31]=S[15]-S[31];S[0]=Z[8]+Z[0];S[1]=Z[9]+Z[1];S[2]=Z[10]+Z[2];
S[3]=Z[11]+Z[3];S[4]=Z[12]+Z[4];S[5]=Z[13]+Z[5];S[6]=Z[14]+Z[6];S[7]=Z[15]+Z[7];S[8]=Z[0]-Z[8];S[9]=Z[1]-Z[9];
S[10]=Z[2]-Z[10];S[11]=Z[3]-Z[11];S[12]=Z[4]-Z[12];S[13]=Z[5]-Z[13];S[14]=Z[6]-Z[14];S[15]=Z[7]-Z[15];
Z[0]=S[4]+S[0];Z[1]=S[5]+S[1];Z[2]=S[6]+S[2];Z[3]=S[7]+S[3];Z[4]=S[0]-S[4];Z[5]=S[1]-S[5];Z[6]=S[2]-S[6];
Z[7]=S[3]-S[7];Z[8]=S[12]+S[8];Z[9]=S[13]+S[9];Z[10]=S[14]+S[10];Z[11]=S[15]+S[11];Z[12]=S[8]-S[12];
Z[13]=S[9]-S[13];Z[14]=S[10]-S[14];Z[15]=S[11]-S[15];S[0]=Z[2]+Z[0];S[1]=Z[3]+Z[1];S[2]=Z[0]-Z[2];S[3]=Z[1]-Z[3];
S[4]=Z[6]+Z[4];S[5]=Z[7]+Z[5];S[6]=Z[4]-Z[6];S[7]=Z[5]-Z[7];S[8]=Z[10]+Z[8];S[9]=Z[11]+Z[9];S[10]=Z[8]-Z[10];
S[11]=Z[9]-Z[11];S[12]=Z[14]+Z[12];S[13]=Z[15]+Z[13];S[14]=Z[12]-Z[14];S[15]=Z[13]-Z[15];Z[0]=S[1]+S[0];
Z[1]=S[0]-S[1];Z[2]=S[3]+S[2];Z[3]=S[2]-S[3];Z[4]=S[5]+S[4];Z[5]=S[4]-S[5];Z[6]=S[7]+S[6];Z[7]=S[6]-S[7];
Z[8]=S[9]+S[8];Z[9]=S[8]-S[9];Z[10]=S[11]+S[10];Z[11]=S[10]-S[11];Z[12]=S[13]+S[12];Z[13]=S[12]-S[13];
Z[14]=S[15]+S[14];Z[15]=S[14]-S[15]};T.vl.ail=function(){var Z="",C=64,S="v",b="t",Y="a",P=5,D,w,f;for(D=C>>1;
D>0;D>>=1,P--){for(w=0;w<C;w++){f=(w>>P&1)!=0;if(f){Z+=b+"["+w+"] = "+S+"["+(-D+w)+"] - "+S+"["+w+"]; "}else{Z+=b+"["+w+"] = "+S+"["+(D+w)+"] + "+S+"["+w+"]; "}}Y=S;
S=b;b=Y;Z+="\n"}console.log(Z)};T.vl.aoW=function(C,Z,S){var b=Z,Y=S,P=b,w=0,D,h,Q;while(C>>w!=2)w++;
var f=w;for(D=C>>1;D>0;D>>=1,w--){for(h=0;h<C;h++){Q=(h>>w&1)!=0;if(Q)Y[h]=b[-D+h]-b[h];else Y[h]=b[D+h]+b[h]}P=b;
b=Y;Y=P}if((f&1)==1)for(D=0;D<C;D++)S[D]=b[D]};T.Pq={};T.Pq.Jv=function(Z,S,b,Y,P,w,f,h,Q){var e=Date.now(),l=new Uint32Array(Z.buffer),O=new Uint32Array(S.buffer),m=f/b,V=h/Y,q=1/m,K=1/V,z=new Float64Array(2),t=3,H=1/t,i=1/(t*t),y=0,j=0,J=b,A=Y;
if(P){y=P.x;j=P.y;J=P.c;A=P.v}for(var a=0;a<A;a++)for(var I=0;I<J;I++){var E=y+I,c=j+a,D=c*b+E,u=D<<1,n=D<<2;
T.Pq.aa$(w,f,h,(E+.5)*m,(c+.5)*V,z);var o=z[0]*q,x=z[1]*K;if(o==0&&x==0)O[D]=l[D];else{T.J.Lx(E+o+.5,c+x+.5,l,b,Y,O,D,Q)}}};
T.Pq.aa$=function(Z,S,b,Y,P,w){Y-=.499999;P-=.499999;var f=~~Y,h=~~P,Q=Y-f,e=P-h,l=(1-e)*(1-Q),O=(1-e)*Q,m=e*(1-Q),V=e*Q,q=f<S-1?f+1:f,K=h<b-1?h+1:h,z=h*S+f<<1,t=h*S+q<<1,H=K*S+f<<1,i=K*S+q<<1;
w[0]=l*Z[z]+O*Z[t]+m*Z[H]+V*Z[i];w[1]=l*Z[z+1]+O*Z[t+1]+m*Z[H+1]+V*Z[i+1]};T.Pq.alq=function(Z,S,b,Y,P){var w=1/Z,f=[-1,1,-Z,Z],h=Y.length;
for(var Q=0;Q<h;Q++){var D=Y[Q],e=D<<1,l=Q<<1,O=~~(D*w),m=D-Z*O,V=b[e],q=b[e+1],K=0,z=0;if(m!=0&&m!=Z-1){var t=D-1<<1,H=D+1<<1,i=b[t],y=b[H],j=b[t+1],J=b[H+1],A=V-(i+y)*.5,a=q-(j+J)*.5;
K-=A*P;z-=a*P}if(O!=0&&O!=S-1){var t=D-Z<<1,H=D+Z<<1,i=b[t],y=b[H],j=b[t+1],J=b[H+1],A=V-(i+y)*.5,a=q-(j+J)*.5;
K-=A*P;z-=a*P}b[e]=V+K;b[e+1]=q+z}};T.Pq.a6A=function(Z,S){var b=Z+","+S;if(T.Pq.ZE==b)return T.Pq.GO;
var Y=T.Pq.GO=[];T.Pq.ZE=b;for(var D=0;D<=1e3;D++){var P=D*.001,w=Math.sqrt(P),f=Math.exp(-4*w),h=.96*(1-w*w),Q=S*((1-Z)*f+Z*h);
Y[D]=Q}return Y};T.Pq.ZE="";T.Pq.GO=[];T.Pq.am5=function(Z,S,b,Y,P,w,f,h,Q,e,l,O,m){var V=Math.max(0,Math.floor(P-f-1)),q=Math.min(S,Math.ceil(P+f+1)),K=Math.max(0,Math.floor(w-f-1)),z=Math.min(b,Math.ceil(w+f+1)),t=2*S,H=f*f,i=1/f,y=0;
if(m&&(Y==3||Y==6))Q=-Q;var j=T.Pq.a6A(h,Q);for(var J=K;J<z;J++)for(var A=V;A<q;A++){var D=J*S+A,a=D<<1,I=(P-A)*i,E=(w-J)*i,c=I*I+E*E;
if(c<1){O[y]=D;var u=j[~~(c*1e3)];if(Y==1){Z[a]=Z[a]*(1-u*.05);Z[a+1]=Z[a+1]*(1-u*.05)}else{var n=0,o=0,v,R,X,B;
if(Y==0){n=e*u;o=l*u}else if(Y==2){}else if(Y==3){n=u*E;o=-u*I}else if(Y==4){n=u*I;o=u*E}else if(Y==5){n=-u*I;
o=-u*E}else if(Y==6){n=l*u;o=-e*u}var x=Z[a],g=Z[a+1];if(A==0||A!=S-1&&n<0){v=1+Z[a+2]-x;X=Z[a+3]-g}else{v=x-Z[a-2]+1;
X=g-Z[a-1]}if(J==0||J!=b-1&&o<0){R=Z[a+t]-x;B=1+Z[a+t+1]-g}else{R=x-Z[a-t];B=g-Z[a-t+1]+1}Z[a]=-(v*n+R*o-x);
Z[a+1]=-(X*n+B*o-g)}y++}}};T.Pq.aac=function(Z){var S=Z[0],b=Z[0],Y=Z[1],P=Z[1];for(var D=0;D<Z.length;
D+=2){var w=Z[D],f=Z[D+1];if(w<S)S=w;else if(w>b)b=w;if(f<Y)Y=f;else if(f>P)P=f}return[S,Y,b,P]};T.a9y=function(Z,S,b,Y,P){function w(W,L,bd,iw){return Math.sqrt((W-bd)*(W-bd)+(L-iw)*(L-iw))}function f(W,L){return W>=0&&W<S&&L>=0&&L<b}function h(W){if(W<0)return 0;
if(W>=S)return S-1;return W}function Q(W){if(W<0)return 0;if(W>=b)return b-1;return W}function e(D,W){var L=W[3]*(1/255),bd=Y[D]+W[0]*L;
if(bd>255)bd=255;Y[D]=bd;bd=Y[D+1]+W[1]*L;if(bd>255)bd=255;Y[D+1]=bd;bd=Y[D+2]+W[2]*L;if(bd>255)bd=255;
Y[D+2]=bd}function l(W,L,bd){if(!M(W,L))return;if(bd[3]<0)bd[3]=0;e((L*S+W)*4,bd)}function O(W){var L=W.slice(0,3);
L[3]=0;return L}var m=S/800;function V(W){return Math.round(W*m)}function q(){for(var D=0;D<=300;D++){N[D]=K(D)}}function K(b){var W=.8,L=.2,bd=W*L,iw=b/60%2-1,d7=bd*(1-iw*iw),d0=L-bd,gS;
if(b<60){gS=[bd+d0,d7,0]}else if(b<120){gS=[d7,bd,0]}else if(b<180){gS=[0,bd,d7]}else if(b<240){gS=[0,d7,bd]}else if(b<300){gS=[d7,0,bd]}else{gS=[bd,0,d7]}return[(gS[0]+d0)*255,(gS[1]+d0)*255,(gS[2]+d0)*255]}function z(b){return N[~~b]}function t(W){return 1-H(W)}function H(W){return W-~~W}function i(W,L,bd,iw){X(W,L,bd,0,L+1,1,iw)}function y(W,L,bd,iw,d7,d0){X(W,L,bd,0,iw,1,d7,d0)}function j(W){for(var D=0;
D<Y.length;D+=4){e(D,W)}}function J(W,L,bd,iw,d7,d0,gS,cf){A(W,L,bd,iw,d7,1,d0,gS,cf)}function A(W,L,bd,iw,d7,d0,gS,cf,cT){if(d0==null)d0=.5;
if(gS==null)gS=0;if(cf==null)cf=0;if(cT==null)cT=!1;var fU=W.x,dX=W.y,g$=bd.slice(0),bX=~~(bd[3]*eQ);
iw=iw*eQ;if(!cT){L=B(L);d7=B(d7);gS=B(gS);cf=B(cf)}var aw=h(fU-L),hP=h(fU+L);for(var eG=aw;eG<=hP;eG++){var eB=eG-fU,bb=Math.floor(Math.sqrt(L*L-eB*eB)),gx=Q(dX-bb),er=Q(dX);
for(var ea=gx;ea<=er;ea++){var hD=w(eG,ea,fU,dX);if(hD>L||hD<=L-d7)break;var bP=(hD-L+d7)/d7;g$[3]=bX-iw*(d0==1?bP:Math.pow(bP,d0));
e((ea*S+eG)*4,g$)}gx=Q(dX+bb);for(var ea=gx;ea>er;ea--){var hD=w(eG,ea,fU,dX);if(hD>L||hD<=L-d7)break;
var bP=(hD-L+d7)/d7;g$[3]=bX-iw*(d0==1?bP:Math.pow(bP,d0));e((ea*S+eG)*4,g$)}}if(gS>0){X(W,L+gS,g$,g$[3],gS,1,0,0,!0)}if(cf>0){X(W,L-d7,r(bd),-bd[3],cf,1,0,0,!0)}}function a(W,L,bd,iw,d7,d0){X(W,L,bd,bd[3],L+1,1,iw,d7,d0)}function I(W,L,bd,iw,d7){if(d7==null)d7=!1;
var d0=W.x,gS=W.y;iw*=eQ;if(!d7){L=B(L);bd=B(bd)}var cf=h(d0-L),cT=h(d0+L);for(var fU=cf;fU<cT;fU++){var dX=fU-d0,g$=~~Math.sqrt(L*L-dX*dX),bX=Q(gS-g$),aw=Q(gS);
for(var hP=bX;hP<=aw;hP++){var eG=w(fU,hP,d0,gS);if(eG>L||eG<=L-bd)break;var eB=(L-eG)/bd,bb=z(300*eB);
bb[3]=iw;e((hP*S+fU)*4,bb)}bX=Q(gS+g$);for(var hP=bX;hP>aw;hP--){var eG=w(fU,hP,d0,gS);if(eG>L||eG<=L-bd)break;
var eB=(L-eG)/bd,bb=z(300*eB);bb[3]=iw;e((hP*S+fU)*4,bb)}}}function E($,W){var L=$.SP,bd=$.Jn,iw=W.slice(0),d7=W[3]*eQ,d0=Math.abs(bd.y-L.y)>Math.abs(bd.x-L.x);
if(d0){var gS=L.x;L.x=L.y;L.y=gS;gS=bd.x;bd.x=bd.y;bd.y=gS}if(L.x>bd.x){var gS=L;L=bd;bd=gS}var cf=bd.x-L.x,cT=bd.y-L.y,fU=cf==0?1:cT/cf,dX=Math.round(L.x),g$=L.y+fU*(dX-L.x),bX=t(L.x+.5),aw=dX,hP=~~g$;
if(d0){iw[3]=d7*t(g$)*bX;l(hP,aw,iw);iw[3]=d7*H(g$)*bX;l(hP+1,aw,iw)}else{iw[3]=d7*t(g$)*bX;l(aw,hP,iw);
iw[3]=d7*H(g$)*bX;l(aw,hP+1,iw)}var eG=g$-fU;dX=Math.round(bd.x);g$=bd.y+fU*(dX-bd.x);bX=H(bd.x+.5);
var eB=dX,bb=~~g$;if(d0){iw[3]=d7*t(g$)*bX;l(bb,eB,iw);iw[3]=d7*H(g$)*bX;l(bb+1,eB,iw)}else{iw[3]=d7*t(g$)*bX;
l(eB,bb,iw);iw[3]=d7*H(g$)*bX;l(eB,bb+1,iw)}if(d0){for(var gx=aw+1;gx<=eB-1;gx++){iw[3]=d7*t(eG);l(~~eG,gx,iw);
iw[3]=d7*H(eG);l(~~eG+1,gx,iw);eG+=fU}}else{for(var gx=aw+1;gx<=eB-1;gx++){iw[3]=d7*t(eG);l(gx,~~eG,iw);
iw[3]=d7*H(eG);l(gx,~~eG+1,iw);eG+=fU}}}function c(W,L,bd,iw){for(var D=0;D<4;D++){var d7=W.fh(L+1.3*D,bd);
E(d7,iw,1)}}function ar(W,L){this.x=Math.round(W);this.y=Math.round(L)}var u=Math.PI/180;ar.prototype.fh=function(W,L){W=W*u;
var bd=this.x+L*Math.cos(W),iw=this.y+L*Math.sin(W);return new n(this.x,this.y,bd,iw)};ar.prototype.aal=function(W,L){W=W*u;
var bd=this.uG+L*Math.cos(W),iw=this.agQ+L*Math.sin(W);return new ar(bd,iw)};function n(W,L,bd,iw){this.SP=new ar(W,L);
this.Jn=new ar(bd,iw)}n.prototype.ct=function(W){var L=W*this.SP.x+(1-W)*this.Jn.x,bd=W*this.SP.y+(1-W)*this.Jn.y;
return new ar(L,bd)};var o=J,x=a,g=i,v=y,R=I,X=A,B=V,M=f,r=O,N=[];q();for(var D=0;D<Z.length;D++){Y[D]=Z[D]}var $=new n(S*P[2],b*P[3],S/2,b/2),eQ=P[1],hN=[];
hN[0]=function bI(){var W=[80,40,15,60],bd=0,iw=0;g($.ct(1.4),260,W,10);g($.ct(1),100,[240,50,50,30],30);
x($.ct(1),60,[255,40,0,40]);var L=[255,255,255,255];X($.ct(1),70,L,L[3],58,.5);g($.ct(1),12,L);L[3]=40;
o($.ct(1),150,L,L[3],150);for(var D=0;D<40;D++){bd+=Math.random()*25;iw=Math.random()*B(300)+B(100);
var d7=$.ct(1).fh(bd,iw);E($.ct(1).fh(bd,iw),[110,110,110,30])}x($.ct(1),130,[255,255,255,8]);var d0=[170,30,23,70];
v($.ct(1),70,d0,1,3,3);var gS=[60,60,130,40];g($.ct(.47),44,gS,5);g($.ct(.43),22,gS,3);gS[3]=16;g($.ct(.53),15,gS,2);
var cf=[138,94,42,100];g($.ct(.2),16,cf,2);var cT=[130,255,170,180];x($.ct(0),4,cT);x($.ct(-.25),5,cT);
cf=[150,90,0,50];o($.ct(-.45),55,r(cf),-cf[3],40,2);g($.ct(-.42),35,cf,2);g($.ct(-.5),15,cf,2);R($.ct(-1.28),145,11,70);
var fU=z(0);fU[3]=50;o($.ct(-1.28),149,fU,fU[3],4);fU=z(300);fU[3]=50;o($.ct(-1.28),155-1,r(fU),-fU[3],3);
var dX=[130,130,10,50];v($.ct(-1),73,dX,3,2);var g$=[40,130,70,40];o($.ct(-1),70,r(g$),-g$[3],35);g$=[40,170,60,50];
g($.ct(-.7),25,g$,4);var g$=[70,110,50,60];o($.ct(1.3),30,r(g$),-g$[3],11,3);gS=[0,50,210,80];x($.ct(-.72),20,gS)};
hN[1]=function fq(){x($.ct(1),150,[240,70,70,60]);g($.ct(1),100,[200,60,60,40],30);var W=[255,255,255,255],L=0,bd=0;
X($.ct(1),75,W,W[3],63);g($.ct(1),12,W);x($.ct(1),270,[200,200,200,20],10);for(var D=0;D<10;D++){L+=10+Math.random()*40;
bd=Math.random()*B(250)+B(80);var iw=$.ct(1).fh(L,bd);E(iw,[110,110,110,35])}L=5;bd=100;for(var D=0;
D<12;D++){L+=30;c($.ct(1),L,bd,[90,90,90,40])}var d7=[150,40,23,100];v($.ct(1),70,d7,1,3,3);var d0=[30,100,60,40];
x($.ct(-.9),180,[255,255,255,20]);g($.ct(-.9),140,d0,15);var gS=[170,80,25,15];v($.ct(-.9),120,gS,1,4,4);
var cf=[110,240,190,200];x($.ct(-.6),3,cf);cf[3]=100;x($.ct(-.6),7,cf);var cT=[230,120,40,85];x($.ct(-.73),9,cT);
var fU=[60,60,190,50];g($.ct(.3),28,fU,6);fU[3]=25;g($.ct(.34),20,fU,3)};hN[2]=function e9(){var W=[255,255,255,255],bd=0,iw=0;
g($.ct(1),13,W);X($.ct(1),150,W,W[3],137);var L=[120,80,35,20];g($.ct(1.4),260,L,10);for(var D=0;D<40;
D++){bd+=5+Math.random()*30;iw=Math.random()*B(300);E($.ct(1).fh(bd,iw),[110,110,110,20])}var d7=[10,30,255,30];
g($.ct(1),70,d7,50);var d0=[15,90,170,15];g($.ct(1.5),60,d0);var gS=[220,220,20,50];g($.ct(-1.15),8,gS,2);
var W=[255,255,255,40];x($.ct(-1.18),6,W);x($.ct(-1.18),4,W);gS=[110,110,10,8];o($.ct(-1.2),32,r(gS),-gS[3],20,3);
var cf=[5,0,16,255];for(var D=0;D<4;D++){g($.ct(-1.36),10,cf,3)}var cT=[90,200,150,20],fU=cT.slice(0);
fU[3]*=2;g($.ct(-1.32),7,fU,3);g($.ct(-1.36),7,fU,3);g($.ct(-1.4),7,fU,3);var W=[230,230,230,100];x($.ct(-1.36),2,W);
W[3]=3;g($.ct(-.55),10,W);gS=[120,100,10,18];g($.ct(-.55),160,gS,8);g($.ct(-.55),80,gS,4);cT[3]=3;fU[3]=6;
o($.ct(-.49),13,r(fU),-fU[3],13,2);o($.ct(-.55),13,r(fU),-fU[3],13,2);cT[3]=20;g($.ct(.15),25,cT,3);
gS[3]=100;x($.ct(-.52),3,gS);gS=[200,200,50,40];g($.ct(.27),1,gS,4);var dX=[150,40,23,30];o($.ct(1),80,r(dX),-dX[3],2,1)};
return hN[P[0]]()};T.Ig={};T.Ig.L8=function(Z){var S=Z.length,C=Z[0].length,b=new Array(C);for(var D=0;
D<C;D++)b[D]=new Array(S);for(var D=0;D<C;D++)for(var Y=0;Y<S;Y++)b[D][Y]=Z[Y][D];return b};T.Ig.jZ=function(Z,S){var b=Z.length,C=Z[0].length,Y=new Array(b);
for(var D=0;D<b;D++)Y[D]=new Array(C);for(var D=0;D<b;D++)for(var P=0;P<C;P++)Y[D][P]=Z[D][P]-S[D][P];
return Y};T.Ig.add=function(Z,S){var b=Z.length,C=Z[0].length,Y=new Array(b);for(var D=0;D<b;D++)Y[D]=new Array(C);
for(var D=0;D<b;D++)for(var P=0;P<C;P++)Y[D][P]=Z[D][P]+S[D][P];return Y};T.Ig.multiply=function(Z,S){var b=Z.length,Y=Z[0].length,C=S[0].length;
if(Y!=S.length)throw"e";var P=new Array(b);for(var D=0;D<b;D++)P[D]=new Array(C);if((Y&1)!=0)for(var D=0;
D<b;D++){var w=Z[D],f=P[D];for(var h=0;h<C;h++){var Q=0;for(var e=0;e<Y;e++)Q+=w[e]*S[e][h];f[h]=Q}}else for(var D=0;
D<b;D++){var w=Z[D],f=P[D];for(var h=0;h<C;h++){var Q=0;for(var e=0;e<Y;e+=2)Q+=w[e]*S[e][h]+w[e+1]*S[e+1][h];
f[h]=Q}}return P};T.Ig.YS=function(Z,S){var b=Z.length,C=Z[0].length,Y=new Array(b);for(var D=0;D<b;
D++){var P=0;for(var w=0;w<C;w++)P+=Z[D][w]*S[w];Y[D]=P}return Y};T.Ig.nx=function(Z,S){var b=[];for(var D=0;
D<Z;D++){b.push([]);for(var Y=0;Y<S;Y++)b[D].push(0)}return b};T.Ig.a7g=function(Z){for(var D=0;D<Z.length;
D++)console.log(JSON.stringify(Z[D]))};T.Ig.aoD=function(Z){var S=[];for(var D=0;D<Z.length;D++)S.push(Z[D].join(","));
return"["+S.join(";")+"]"};T.Ig.yn=function(Z,S){var b=Z.length;for(var Y=0;Y<b;Y++){var P=0,w=Number.NEGATIVE_INFINITY;
for(var D=Y;D<b;D++)if(Math.abs(Z[D][Y])>w){P=D;w=Math.abs(Z[D][Y])}T.Ig.a5C(Z,Y,P);for(var D=Y+1;D<b;
D++){if(Z[Y][Y]==0)return 1;var f=Z[D][Y]/Z[Y][Y];for(var h=Y;h<b+1;h++)Z[D][h]-=Z[Y][h]*f}}for(var D=b-1;
D>=0;D--){if(Z[D][D]==0)return 1;var Q=Z[D][b]/Z[D][D];S[D]=Q;for(var h=D-1;h>=0;h--){Z[h][b]-=Z[h][D]*Q;
Z[h][D]=0}}return 0};T.Ig.a5C=function(Z,S,b){var Y=Z[S];Z[S]=Z[b];Z[b]=Y};T.Ig.a46=function(Z){var S=Z.length,b=T.Ig.nx(S,S);
for(var D=0;D<S;D++)b[D][D]=Z[D];return b};T.Ig.akg=function(Z){var S=Z.length,b=Z[0].length,Y=new Array(S);
for(var D=0;D<S;D++){Y[D]=0;for(var P=0;P<b;P++)Y[D]+=Z[D][P];Y[D]/=b}return Y};T.Ig.xS=function(Z){var S=0;
for(var D=0;D<Z.length;D++)S+=Z[D]*Z[D];return Math.sqrt(S)};T.sE={};T.sE.QH=function(Z){var S=~~(Z+.5);
return S<0?0:S>255?255:S};T.sE.transform=function(Z,S,b){var Y=T.sE.QH,P=Z.h.length;for(var D=0;D<P;
D++){var w=Z.h[D],f=Z.l[D],h=Z.O[D];S.h[D]=Y(b[0]*w+b[1]*f+b[2]*h+b[3]*255);S.l[D]=Y(b[4]*w+b[5]*f+b[6]*h+b[7]*255);
S.O[D]=Y(b[8]*w+b[9]*f+b[10]*h+b[11]*255)}};T.sE.ad=function(Z,S,b){var Y=T.sE.QH,P=Z.length;for(var D=0;
D<P;D+=4){var w=Z[D],f=Z[D+1],h=Z[D+2];S[D]=Y(b[0]*w+b[1]*f+b[2]*h+b[3]*255);S[D+1]=Y(b[4]*w+b[5]*f+b[6]*h+b[7]*255);
S[D+2]=Y(b[8]*w+b[9]*f+b[10]*h+b[11]*255)}};T.sE.uX=function(Z){var S=Z[0]+Z[1]+Z[2],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1];
if(S==1){var Y=Z.indexOf(1);b[Y]=b[Y+4]=b[Y+8]=1}else{b[0]=Z[0];b[5]=Z[1];b[10]=Z[2]}return b};T.sE.Em=function(Z,S,b){return[1,0,0,Z,0,1,0,S,0,0,1,b,0,0,0,1]};
T.sE.Tu=function(Z,S,b){return[Z,0,0,0,0,S,0,0,0,0,b,0,0,0,0,1]};T.sE.a6H=function(Z){return[Z[0],Z[1],Z[2],Z[4],Z[5],Z[6],Z[8],Z[9],Z[10]]};
T.sE.n2=function(Z){return[Z[0],Z[1],Z[2],0,Z[3],Z[4],Z[5],0,Z[6],Z[7],Z[8],0,0,0,0,1]};T.sE.Eb=function(Z,S){return[Z[0]*S[0]+Z[1]*S[1]+Z[2]*S[2]+Z[3]*S[3],Z[4]*S[0]+Z[5]*S[1]+Z[6]*S[2]+Z[7]*S[3],Z[8]*S[0]+Z[9]*S[1]+Z[10]*S[2]+Z[11]*S[3],Z[12]*S[0]+Z[13]*S[1]+Z[14]*S[2]+Z[15]*S[3]]};
T.sE.L8=function(Z){var S=[];S[0]=Z[0];S[1]=Z[4];S[2]=Z[8];S[3]=Z[12];S[4]=Z[1];S[5]=Z[5];S[6]=Z[9];
S[7]=Z[13];S[8]=Z[2];S[9]=Z[6];S[10]=Z[10];S[11]=Z[14];S[12]=Z[3];S[13]=Z[7];S[14]=Z[11];S[15]=Z[15];
return S};T.sE.multiply=function(Z,S){var b=[];b[0]=Z[0]*S[0]+Z[1]*S[4]+Z[2]*S[8]+Z[3]*S[12];b[1]=Z[0]*S[1]+Z[1]*S[5]+Z[2]*S[9]+Z[3]*S[13];
b[2]=Z[0]*S[2]+Z[1]*S[6]+Z[2]*S[10]+Z[3]*S[14];b[3]=Z[0]*S[3]+Z[1]*S[7]+Z[2]*S[11]+Z[3]*S[15];b[4]=Z[4]*S[0]+Z[5]*S[4]+Z[6]*S[8]+Z[7]*S[12];
b[5]=Z[4]*S[1]+Z[5]*S[5]+Z[6]*S[9]+Z[7]*S[13];b[6]=Z[4]*S[2]+Z[5]*S[6]+Z[6]*S[10]+Z[7]*S[14];b[7]=Z[4]*S[3]+Z[5]*S[7]+Z[6]*S[11]+Z[7]*S[15];
b[8]=Z[8]*S[0]+Z[9]*S[4]+Z[10]*S[8]+Z[11]*S[12];b[9]=Z[8]*S[1]+Z[9]*S[5]+Z[10]*S[9]+Z[11]*S[13];b[10]=Z[8]*S[2]+Z[9]*S[6]+Z[10]*S[10]+Z[11]*S[14];
b[11]=Z[8]*S[3]+Z[9]*S[7]+Z[10]*S[11]+Z[11]*S[15];b[12]=Z[12]*S[0]+Z[13]*S[4]+Z[14]*S[8]+Z[15]*S[12];
b[13]=Z[12]*S[1]+Z[13]*S[5]+Z[14]*S[9]+Z[15]*S[13];b[14]=Z[12]*S[2]+Z[13]*S[6]+Z[14]*S[10]+Z[15]*S[14];
b[15]=Z[12]*S[3]+Z[13]*S[7]+Z[14]*S[11]+Z[15]*S[15];return b};T.sE.oN=function(Z){var S=[];S[0]=Z[5]*Z[10]*Z[15]-Z[5]*Z[14]*Z[11]-Z[6]*Z[9]*Z[15]+Z[6]*Z[13]*Z[11]+Z[7]*Z[9]*Z[14]-Z[7]*Z[13]*Z[10];
S[1]=-Z[1]*Z[10]*Z[15]+Z[1]*Z[14]*Z[11]+Z[2]*Z[9]*Z[15]-Z[2]*Z[13]*Z[11]-Z[3]*Z[9]*Z[14]+Z[3]*Z[13]*Z[10];
S[2]=Z[1]*Z[6]*Z[15]-Z[1]*Z[14]*Z[7]-Z[2]*Z[5]*Z[15]+Z[2]*Z[13]*Z[7]+Z[3]*Z[5]*Z[14]-Z[3]*Z[13]*Z[6];
S[3]=-Z[1]*Z[6]*Z[11]+Z[1]*Z[10]*Z[7]+Z[2]*Z[5]*Z[11]-Z[2]*Z[9]*Z[7]-Z[3]*Z[5]*Z[10]+Z[3]*Z[9]*Z[6];
S[4]=-Z[4]*Z[10]*Z[15]+Z[4]*Z[14]*Z[11]+Z[6]*Z[8]*Z[15]-Z[6]*Z[12]*Z[11]-Z[7]*Z[8]*Z[14]+Z[7]*Z[12]*Z[10];
S[5]=Z[0]*Z[10]*Z[15]-Z[0]*Z[14]*Z[11]-Z[2]*Z[8]*Z[15]+Z[2]*Z[12]*Z[11]+Z[3]*Z[8]*Z[14]-Z[3]*Z[12]*Z[10];
S[6]=-Z[0]*Z[6]*Z[15]+Z[0]*Z[14]*Z[7]+Z[2]*Z[4]*Z[15]-Z[2]*Z[12]*Z[7]-Z[3]*Z[4]*Z[14]+Z[3]*Z[12]*Z[6];
S[7]=Z[0]*Z[6]*Z[11]-Z[0]*Z[10]*Z[7]-Z[2]*Z[4]*Z[11]+Z[2]*Z[8]*Z[7]+Z[3]*Z[4]*Z[10]-Z[3]*Z[8]*Z[6];S[8]=Z[4]*Z[9]*Z[15]-Z[4]*Z[13]*Z[11]-Z[5]*Z[8]*Z[15]+Z[5]*Z[12]*Z[11]+Z[7]*Z[8]*Z[13]-Z[7]*Z[12]*Z[9];
S[9]=-Z[0]*Z[9]*Z[15]+Z[0]*Z[13]*Z[11]+Z[1]*Z[8]*Z[15]-Z[1]*Z[12]*Z[11]-Z[3]*Z[8]*Z[13]+Z[3]*Z[12]*Z[9];
S[10]=Z[0]*Z[5]*Z[15]-Z[0]*Z[13]*Z[7]-Z[1]*Z[4]*Z[15]+Z[1]*Z[12]*Z[7]+Z[3]*Z[4]*Z[13]-Z[3]*Z[12]*Z[5];
S[11]=-Z[0]*Z[5]*Z[11]+Z[0]*Z[9]*Z[7]+Z[1]*Z[4]*Z[11]-Z[1]*Z[8]*Z[7]-Z[3]*Z[4]*Z[9]+Z[3]*Z[8]*Z[5];S[12]=-Z[4]*Z[9]*Z[14]+Z[4]*Z[13]*Z[10]+Z[5]*Z[8]*Z[14]-Z[5]*Z[12]*Z[10]-Z[6]*Z[8]*Z[13]+Z[6]*Z[12]*Z[9];
S[13]=Z[0]*Z[9]*Z[14]-Z[0]*Z[13]*Z[10]-Z[1]*Z[8]*Z[14]+Z[1]*Z[12]*Z[10]+Z[2]*Z[8]*Z[13]-Z[2]*Z[12]*Z[9];
S[14]=-Z[0]*Z[5]*Z[14]+Z[0]*Z[13]*Z[6]+Z[1]*Z[4]*Z[14]-Z[1]*Z[12]*Z[6]-Z[2]*Z[4]*Z[13]+Z[2]*Z[12]*Z[5];
S[15]=Z[0]*Z[5]*Z[10]-Z[0]*Z[9]*Z[6]-Z[1]*Z[4]*Z[10]+Z[1]*Z[8]*Z[6]+Z[2]*Z[4]*Z[9]-Z[2]*Z[8]*Z[5];var b=Z[0]*S[0]+Z[1]*S[4]+Z[2]*S[8]+Z[3]*S[12];
for(var D=0;D<16;D++)S[D]/=b;return S};T.sE.a42=function(Z){var S=[],b=Z[5]*Z[10]*Z[15]-Z[5]*Z[14]*Z[11]-Z[6]*Z[9]*Z[15]+Z[6]*Z[13]*Z[11]+Z[7]*Z[9]*Z[14]-Z[7]*Z[13]*Z[10],Y=-Z[4]*Z[10]*Z[15]+Z[4]*Z[14]*Z[11]+Z[6]*Z[8]*Z[15]-Z[6]*Z[12]*Z[11]-Z[7]*Z[8]*Z[14]+Z[7]*Z[12]*Z[10],P=Z[4]*Z[9]*Z[15]-Z[4]*Z[13]*Z[11]-Z[5]*Z[8]*Z[15]+Z[5]*Z[12]*Z[11]+Z[7]*Z[8]*Z[13]-Z[7]*Z[12]*Z[9],w=-Z[4]*Z[9]*Z[14]+Z[4]*Z[13]*Z[10]+Z[5]*Z[8]*Z[14]-Z[5]*Z[12]*Z[10]-Z[6]*Z[8]*Z[13]+Z[6]*Z[12]*Z[9];
return Z[0]*b+Z[1]*Y+Z[2]*P+Z[3]*w};T.sE.dJ=T.sE.n2([3.1338561,-1.6168667,-.4906146,-.9787684,1.9161415,.033454,.0719453,-.2289914,1.4052427]);
T.sE.ank=T.sE.n2([1.9624274,-.6105343,-.3413404,-.9787684,1.9161415,.033454,.0286869,-.1406752,1.3487655]);
T.sE.adN=T.sE.oN(T.sE.dJ);T.Pb={};T.Pb.NE=new Uint32Array(1);T.Pb.jJ=function(Z,S,b,Y,P,w){var f=new Uint32Array(Z),h=0,Q=T.Pb.NE;
if(Q.length<S*4)T.Pb.NE=Q=new Uint32Array(S*4);var e=new Float64Array(Q.buffer);for(var D=0;D<S;D+=2){var l=P[D],O=P[D+1],m=w[D],V=w[D+1];
Q[h]=O;e[h+2>>1]=m;Q[h+1]=f[l];f[l]=h+1;h+=4;Q[h]=l;e[h+2>>1]=V;Q[h+1]=f[O];f[O]=h+1;h+=4}return{TY:Q,a1R:e,ac1:f}};
T.Pb.yn=function(Z,S,b,Y,P,w,f){var h=1,Q=T.Pb.jJ(Z,S,b,Y,P,w),e=Q.TY,l=Q.a1R,O=Q.ac1,m=new Uint32Array(Z),V=new T.Pb.rI(Z),K=1,y=0;
V.push(b);V.push(Y);var q=new T.Pb.rI(Z),z=new Uint8Array(Z),t=new Uint32Array(Z);z[b]=1;z[Y]=2;var H=new Uint32Array(Z),i=new Uint32Array(Z);
i[b]=i[Y]=0;H[b]=H[Y]=1;while(!0){var j=-1,u=0,g=1e30;while(!V.CN()&&j==-1){var J=V.top(),A=z[J],a=O[J]-1;
while(a!=-1){var I=e[a],E=z[I],c=a^A-1<<2;if(l[c+2>>1]!=0){if(E==0){T.Pb.jA(J,a,I,z,t,i,H);V.push(I)}else if(E==A&&H[I]<=H[J]&&i[I]>i[J])T.Pb.jA(J,a,I,z,t,i,H);
else if(E!=A){j=c}}a=e[a+1]-1}if(j!=-1)break;V.pop()}if(j==-1){break}K++;var n=j;while(n!=-1){m[u]=n;
u++;n=t[e[n^4]]-1}var o=u>>1;for(var D=0;D<o;D++){var x=m[D];m[D]=m[u-D-1];m[u-D-1]=x}n=t[e[j]]-1;while(n!=-1){m[u]=n^4;
u++;n=t[e[n^4]]-1}for(var D=0;D<u;D++)g=Math.min(g,l[m[D]+2>>1]);y+=g;if(y>=f)return{TT:null,qJ:y};for(var D=0;
D<u;D++){var v=m[D],R=v^4,J=e[R],I=e[v];l[v+2>>1]-=g;l[R+2>>1]+=g;if(l[v+2>>1]==0&&z[J]==z[I]){if(z[J]==1){t[I]=0;
q.push(I)}if(z[J]==2){t[J]=0;q.push(J)}}}while(!q.CN()){var J=q.pop(),A=z[J],a=O[J]-1,X=A==1?4:0,B=0,M=0,r=1e9;
while(a!=-1){var I=e[a],N=a^4,c=a^X;if(z[I]==A&&l[c+2>>1]>0&&T.Pb.agc(I,b,Y,t,e,K,H,i)+1<r){B=I;M=N;
r=i[I]+1}a=e[a+1]-1}if(M!=0){T.Pb.jA(B,M,J,z,t,i,H);continue}a=O[J]-1;while(a!=-1){var I=e[a],c=a^X;
if(z[I]==A){if(l[c+2>>1]>0){V.push(I)}if(t[I]==a+1){t[I]=0;q.push(I)}}a=e[a+1]-1}z[J]=0;V.remove(J)}}var $=[];
for(var D=0;D<S;D+=2){var J=P[D],I=P[D+1];if(z[J]==1&&z[I]!=1){$.push(D>>1)}if(z[I]==1&&z[J]!=1){$.push(S+D>>1)}}return{TT:$,qJ:y}};
T.Pb.jA=function(Z,S,b,Y,P,w,f){Y[b]=Y[Z];P[b]=S+1;w[b]=w[Z]+1;f[b]=f[Z]};T.Pb.agc=function(Z,S,b,Y,P,w,f,h){var Q=Z,e=Y[Z]-1,l=0;
while(e!=-1&&f[Z]!=w){Z=P[e^4];e=Y[Z]-1;l++}if(e==-1&&Z!=S&&Z!=b)return 1e9;var O=h[Z]+l;l=0;e=Y[Q]-1;
while(Q!=Z){h[Q]=O-l;l++;f[Q]=w;Q=P[e^4];e=Y[Q]-1}return O};T.Pb.ai9=function(Z,S,b,Y,P,w){var f=T.Pb.jJ(Z,S,b,Y,P,w),h=f.TY,Q=f.a1R,e=f.ac1,l=0,O=0,m=new Uint32Array(Z*2),V=new T.Pb.eR(Z),q=0;
while(!0){V.reset();V.push(b);for(var D=0;D<Z;D++)m[D<<1]=0;while(!V.CN()){var K=V.pop(),z=e[K]-1;while(z!=-1){q=h[z];
if(m[q<<1]==0&&Q[z+2>>1]>0&&q!=b){m[q<<1]=K+1;m[(q<<1)+1]=z;V.push(q)}z=h[z+1]-1}if(m[Y<<1]!=0){break}}if(m[Y<<1]==0){break}var t=1e30;
q=Y;while(!0){var H=m[q<<1]-1;if(H==-1)break;var i=m[(q<<1)+1];t=Math.min(t,Q[i+2>>1]);q=H}q=Y;while(!0){var H=m[q<<1]-1;
if(H==-1)break;var i=m[(q<<1)+1],y=i^4;Q[i+2>>1]-=t;Q[y+2>>1]+=t;q=H}l+=t}var j=[];for(var D=0;D<S;D+=2){var H=P[D],q=P[D+1];
if((m[H<<1]!=0||H==b)&&m[q<<1]==0&&q!=b){j.push(D>>1)}if((m[q<<1]!=0||q==b)&&m[H<<1]==0&&H!=b){j.push(S+D>>1)}}return{TT:j,qJ:l}};
T.Pb.eR=function(Z){Z|=Z>>1;Z|=Z>>2;Z|=Z>>4;Z|=Z>>8;Z|=Z>>16;this.Du=new Uint32Array(Z+1);this.uo=Z;
this.ID=0;this.Gt=0};T.Pb.eR.prototype={push:function(Z){var S=this.Gt;this.Du[S]=Z;this.Gt=S+1&this.uo},pop:function(){var Z=this.ID,S=this.Du[Z];
this.ID=Z+1&this.uo;return S},CN:function(){return this.ID==this.Gt},reset:function(){this.ID=0;this.Gt=0}};
T.Pb.rI=function(Z){Z|=Z>>1;Z|=Z>>2;Z|=Z>>4;Z|=Z>>8;Z|=Z>>16;this.Du=new Uint32Array(Z+1);this.fV=new Uint32Array(Z+1);
this.uo=Z;this.ID=0;this.Gt=0};T.Pb.rI.prototype={top:function(){return this.Du[this.ID]},am6:function(){return this.Du[this.Gt]},push:function(Z){if(this.fV[Z]!=0)return;
this.fV[Z]=this.Gt+1;var S=this.Gt;this.Du[S]=Z;this.Gt=S+1&this.uo},pop:function(){var Z=this.ID,S=this.Du[Z];
this.fV[S]=0;this.ID=Z+1&this.uo;return S},CN:function(){return this.ID==this.Gt},remove:function(Z){var S=this.fV[Z]-1;
if(S==-1)return;this.fV[Z]=0;if(S==this.ID){this.pop();return}var b=this.pop();this.Du[S]=b;this.fV[b]=S+1},pG:function(D){return D+this.uo+1&this.uo}};
T.Pb.wT=function(Z,S,b){var Y=T.Pb.iU(Z,S,b);if(S<Y-1)T.Pb.wT(Z,S,Y-1);if(Y<b)T.Pb.wT(Z,Y,b)};T.Pb.iU=function(Z,S,b){var Y=Z[S+b>>>1];
while(S<=b){while(Z[S]<Y)S++;while(Z[b]>Y)b--;if(S<=b){T.Pb.__(Z,S,b);S++;b--}}return S};T.Pb.__=function(Z,S,b){var Y=Z[S];
Z[S]=Z[b];Z[b]=Y};T.AZ={};T.AZ.ag0=function(Z){for(var D=0;D<Z.length;D++)T.AZ.QK(Z,D)};T.AZ.QK=function(Z,D){Z[D].v.keyShapeInvalidated={t:"bool",v:!0}};
T.AZ.anL=function(Z){for(var D=0;D<Z.length;D++)Z[D].v.keyOriginIndex.v=D};T.AZ.Nv=function(){return{t:"Objc",v:{classID:"null",keyOriginIndex:{t:"long",v:0},keyShapeInvalidated:{t:"bool",v:!0}}}};
T.AZ.XM=function(Z){Z=Z.v;var S={Rctn:2,Ln:4,Elps:5},b=S[Z.classID],Y=Z.topLeft?T.AZ.tS(Z):null,P=null,w=0;
if(b==4){var f=Z.Strt.v,h=Z.End.v;P=[f.Hrzn.v.val,f.Vrtc.v.val,h.Hrzn.v.val,h.Vrtc.v.val];w=Z.Wdth.v.val}if(b==null)return null;
return T.AZ._B(b,b==4?null:T.AZ.T$(Z),Y,P,w)};T.AZ.Ud=function(Z,S,b,Y,P,w){var f={classID:Z,unitValueQuadVersion:{t:"long",v:1}};
if(S)T.AZ.Ir(f,["Left","Top","Rght","Btom"],S);if(b)T.AZ.Ir(f,["topLeft","topRight","bottomRight","bottomLeft"],b);
if(Z=="Ln"){f.Strt={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:Y[0]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:Y[1]}}}},f.End={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:Y[2]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:Y[3]}}}},f.Wdth={t:"UntF",v:{type:"#Pxl",val:P}}}if(w)f.Nm={t:"TEXT",v:w};
return{t:"Objc",v:f}};T.AZ._B=function(Z,S,b,Y,P){var w=T.AZ.Nv(),f=w.v;delete f.keyShapeInvalidated;
f.keyOriginType={t:"long",v:Z};f.keyOriginResolution={t:"doub",v:75};if(Z==4){f.keyOriginLineStart={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:Y[0]},Vrtc:{t:"doub",v:Y[1]}}};
f.keyOriginLineEnd={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:Y[2]},Vrtc:{t:"doub",v:Y[3]}}};S=[Math.min(Y[0],Y[2]),Math.min(Y[1],Y[3]),Math.max(Y[0],Y[2]),Math.max(Y[1],Y[3])];
f.keyOriginLineWeight={t:"doub",v:P},f.keyOriginLineArrowSt={t:"bool",v:!1};f.keyOriginLineArrowEnd={t:"bool",v:!1};
f.keyOriginLineArrWdth={t:"doub",v:0};f.keyOriginLineArrLngth={t:"doub",v:0};f.keyOriginLineArrConc={t:"long",v:0}}var h={classID:"unitRect",unitValueQuadVersion:{t:"long",v:1}};
f.keyOriginShapeBBox={t:"Objc",v:h};T.AZ.Aj(f,S);if(b!=null){var Q={classID:"radii",unitValueQuadVersion:{t:"long",v:1}};
f.keyOriginRRectRadii={t:"Objc",v:Q};T.AZ.SD(f,b)}return w};T.AZ.A=function(Z,S,b,Y){var P=T.J.UW(S),w=T.J.Rt(S),f=Math.max(Math.abs(S[0]),Math.abs(S[1])),h=Math.max(Math.abs(S[3]),Math.abs(S[4]));
for(var D=0;D<Z.length;D++){var Q=Z[D].v,e=Q.keyShapeInvalidated;if(e&&e.v||Q.keyOriginType==null)continue;
if(b.length!=0&&b.indexOf(D)==-1)continue;var l=Q.keyOriginType.v;if(!P||!w||Y&&l==2&&Math.abs(1-f/h)>.01){T.AZ.QK(Z,D);
continue}var O=T.AZ.CB(Q);T.J.A(S,O);T.AZ.Aj(Q,[Math.min(O[0],O[2]),Math.min(O[1],O[3]),Math.max(O[0],O[2]),Math.max(O[1],O[3])]);
if(l==2){var m=T.AZ.I$(Q),V=new fR(S[0],S[1],S[3],S[4],0,0);V.DO();if(V.w==0){m.push(m.shift());V.rotate(Math.PI/2);
V.DO()}if(V.w<0){var q=m[0];m[0]=m[1];m[1]=q;q=m[2];m[2]=m[3];m[3]=q}if(V.KU<0){var q=m[0];m[0]=m[3];
m[3]=q;q=m[1];m[1]=m[2];m[2]=q}if(Y)for(var K=0;K<4;K++)m[K]=m[K]*f;T.AZ.SD(Q,m)}if(l==4){Q.keyOriginLineWeight.v*=f;
var z=T.AZ.bI(Q);T.J.A(S,z);T.AZ.a5a(Q,z)}}};T.AZ.BA=function(Z,S){var b=S.b;for(var D=0;D<Z.length;
D++){var Y=Z[D].v,P=Y.keyShapeInvalidated,O;if(P&&P.v||Y.keyOriginType==null)continue;var w=Y.keyOriginType.v,f=T.AZ.CB(Y),h=f[0],Q=f[1],e=f[2],l=f[3];
if(w==1)O=T.Y.i9.Rect(h,Q,e-h,l-Q,0);else if(w==2){var m=T.AZ.I$(Y);O=T.Y.i9.Rect(h,Q,e-h,l-Q,m)}else if(w==4){var V=T.AZ.bI(Y);
O=T.Y.i9.kA(V[0],V[1],V[2],V[3],Y.keyOriginLineWeight.v)}else if(w==5)O=T.Y.i9.TN(h,Q,e-h,l-Q);var q=T.Y.dq(b,D),K=T.Y.HV(b,D);
O[2].qU=b[q].qU;var z=b;b=b.slice(0,q);for(var t=2;t<O.length;t++)b.push(O[t]);for(var t=q+K;t<z.length;
t++)b.push(z[t])}S.b=b;S.Th=!0};T.AZ.Sy=function(Z){var S=1e9,b=-S,Y=1e9,P=-Y,w=null,f=Z.zl(),h=f[0],Q=f[1];
for(var e=0;e<Q.length;e++){var l=h[Q[e]],O=l.add.vogk;if(O==null)continue;var m=l.add.vmsk.C;for(var V=0;
V<O.length;V++){var q=O[V].v,K=q.keyShapeInvalidated;if(K&&K.v||q.keyOriginType==null)continue;if(Q.length==1&&m.length!=0&&m.indexOf(V)==-1)continue;
var z=q.keyOriginType.v;if(z!=4){var t=T.AZ.CB(q);S=Math.min(S,t[0]);Y=Math.min(Y,t[1]);b=Math.max(b,t[2]);
P=Math.max(P,t[3])}if(z==2&&w==null){w=T.AZ.I$(q)}}}return[S<b?[S,Y,b,P]:null,w]};T.AZ.ae6=function(Z,S,b){var Y=T.AZ.Sy(Z)[0],P;
if(Y){var w=new fR;w.translate(-Y[0],-Y[1]);w.scale(1/(Y[2]-Y[0]),1/(Y[3]-Y[1]));w.scale(S[2]-S[0],S[3]-S[1]);
w.translate(S[0],S[1]);P=T.J.GC(w)}var f=Z.zl(),h=f[0],Q=f[1];for(var e=0;e<Q.length;e++){var l=h[Q[e]],O=l.add.vogk;
if(O==null)continue;var m=l.add.vmsk.C;for(var V=0;V<O.length;V++){var q=O[V].v,K=q.keyShapeInvalidated;
if(K&&K.v||q.keyOriginType==null)continue;if(Q.length==1&&m.length!=0&&m.indexOf(V)==-1)continue;var z=q.keyOriginType.v;
if(z!=4&&S[0]!=null){var S=T.AZ.CB(q);T.J.A(P,S);T.AZ.Aj(q,S)}if(z==2&&b!=null){T.AZ.SD(q,b)}}}};T.AZ.CB=function(Z){return T.AZ.T$(Z.keyOriginShapeBBox.v)};
T.AZ.T$=function(Z){var S=Z.Left.v.val,b=Z.Rght.v.val,Y=Z.Top.v.val,P=Z.Btom.v.val;return[S,Y,b,P]};
T.AZ.Aj=function(Z,S){T.AZ.Ir(Z.keyOriginShapeBBox.v,["Left","Top","Rght","Btom"],S)};T.AZ.I$=function(Z){return T.AZ.tS(Z.keyOriginRRectRadii.v)};
T.AZ.tS=function(Z){var S=[],b=["topLeft","topRight","bottomRight","bottomLeft"];for(var Y=0;Y<4;Y++)S.push(Z[b[Y]].v.val);
return S};T.AZ.SD=function(Z,S){T.AZ.Ir(Z.keyOriginRRectRadii.v,["topLeft","topRight","bottomRight","bottomLeft"],S)};
T.AZ.Ir=function(Z,S,b){for(var D=0;D<4;D++)if(b[D]!=null)Z[S[D]]={t:"UntF",v:{type:"#Pxl",val:b[D]}}};
T.AZ.bI=function(Z){var S=Z.keyOriginLineStart.v,b=Z.keyOriginLineEnd.v;return[S.Hrzn.v,S.Vrtc.v,b.Hrzn.v,b.Vrtc.v]};
T.AZ.a5a=function(Z,S){var b=Z.keyOriginLineStart.v,Y=Z.keyOriginLineEnd.v;b.Hrzn.v=S[0];b.Vrtc.v=S[1];
Y.Hrzn.v=S[2];Y.Vrtc.v=S[3]};T.z={};T.z.clone=function(Z){return{K:Z.K.slice(0),H:Z.H.slice(0)}};T.z.G0=function(Z){if(Z.length<6)return!0;
var S=Z.length-4;for(var D=0;D<S;D+=2)if(!T.z.Uz(Z[D],Z[D+1],Z[D+2],Z[D+3],Z[D+4],Z[D+5]))return!1;if(!T.z.Uz(Z[S],Z[S+1],Z[S+2],Z[S+3],Z[0],Z[1]))return!1;
if(!T.z.Uz(Z[S+2],Z[S+3],Z[0],Z[1],Z[2],Z[3]))return!1;return!0};T.z.Uz=function(Z,S,b,Y,P,w){return(S-Y)*(P-b)+(b-Z)*(w-Y)>=0};
T.z.Py=function(Z){var S={},b=null,Y=0,P={M:2,L:2,Q:4,C:6};for(var D=0;D<Z.K.length;D++){var w=Z.K[D];
if(w.charAt(0)=="#"){if(S[w]==null)S[w]={H:[],K:[]};b=S[w]}else if(w!="X"){b.K.push(w);var f=P[w];if(f==null)f=0;
for(var h=0;h<f;h++)b.H.push(Z.H[Y+h]);Y+=f}}return S};T.z.Cp=function(Z,S,b){Z=T.z.LD(Z);var Y=Z.H,P=Z.K,w=0,f=[],h=null;
for(var D=0;D<P.length;D++){var Q=P[D];if(Q=="M"){h={a7A:w,GB:0,ig:!1};f.push(h);w+=2}if(Q=="C"){h.GB++;
w+=6}if(Q=="Z"){h.ig=!0}}var e=[];for(var D=0;D<f.length;D++)if(f[D].GB!=0)e.push(f[D]);f=e;for(var D=0;
D<f.length;D++){var l=f[D],O=l.a7A,m=O+2+l.GB*6,q=0;l.NA=T.z.$R(Y,O,m);var V=Y[O]==Y[m-2]&&Y[O+1]==Y[m-1];
for(var K=0;K<l.GB;K++){var z=O+K*6,t=z+6;q+=(Y[t]-Y[z])*(Y[t+1]+Y[z+1])}if(l.GB==2){var H=function(eQ,hN,bI){var fq=1-bI;
return fq*fq*fq*eQ[hN]+3*fq*fq*bI*eQ[hN+2]+3*fq*bI*bI*eQ[hN+4]+bI*bI*bI*eQ[hN+6]},i=Y[O],y=Y[O+1],j=Y[O+6],J=Y[O+7],A=Y[O+6],a=Y[O+7],I=H(Y,O,.5),E=H(Y,O+1,.5),c=H(Y,O+6,.5),u=H(Y,O+7,.5);
q=(I-i)*(E-y)+(j-I)*(J-E)+(c-j)*(u-J)+(A-c)*(a-u)}if(!V)q+=(Y[O]-Y[m-2])*(Y[O+1]+Y[m-1]);l.Jg=q<=0}for(var D=0;
D<f.length-1;D++)for(var z=D+1;z<f.length;z++){var n=f[D],o=f[z];if(o.NA.ls(n.NA)){f[D]=o;f[z]=n}}var x=f.length==0?!0:f[0].Jg,g=[{type:6},{type:8,all:0}];
for(var D=0;D<f.length;D++){var l=f[D],O=l.a7A,m=O+2+l.GB*6,V=Y[O]==Y[m-2]&&Y[O+1]==Y[m-1],v=l.ig||V?0:3,R=l.Jg==x&&!S?1:0;
if(!S&&D!=0){if(f[D-1].NA.ls(l.NA)&&f[D-1].Jg!=l.Jg)R=0;for(var z=0;z<f.length;z++)if(z!=D&&f[z].NA.ls(l.NA))R=0}g.push({type:v,length:l.GB+(V?0:1),qU:b?1:R,oY:2});
for(var z=0;z<l.GB;z++){var w=O+z*6,X=new ar(Y[w],Y[w+1]),B=new ar(Y[w+2],Y[w+3]),M;if(z==0){if(V)M=new ar(Y[m-4],Y[m-3]);
else M=X.clone()}else M=new ar(Y[w-2],Y[w-1]);g.push({type:v+2,hQ:M,I:X,e$:B})}if(!V){var r=new ar(Y[m-2],Y[m-1]);
g.push({type:v+2,hQ:new ar(Y[m-4],Y[m-3]),I:r,e$:r.clone()})}}for(var z=0;z<g.length;z++){var N=g[z];
if(N.type>5||N.type==0||N.type==3)continue;var $=N.hQ.Oh(N.I)||N.e$.Oh(N.e$);if(!$){var n=N.hQ.x*(N.I.y-N.e$.y)+N.I.x*(N.e$.y-N.hQ.y)+N.e$.x*(N.hQ.y-N.I.y);
if(Math.abs(n)<1e-6)$=!0}if($)N.type--}return g};T.z.o5=function(){function Z(Y,P,w,f){if(!f&&Y.e$.Oh(Y.I)&&P.hQ.Oh(P.I)){w.H.push(P.I.x,P.I.y);
w.K.push("L")}else{w.H.push(Y.e$.x,Y.e$.y,P.hQ.x,P.hQ.y,P.I.x,P.I.y);w.K.push("C")}}function S(Y,P,D,w,f,h){var Q=P[D];
Y.H.push(Q.I.x,Q.I.y);Y.K.push("M");for(var e=D;e<D+w-1;e++)Z(P[e],P[e+1],Y,h);if(!f)Z(P[e],P[D],Y,h)}function b(Y,P){if(P==null)P=!1;
var w={H:[],K:[]};for(var D=0;D<Y.length;D++){if(Y[D].type>5)continue;var f=Y[D].length;if(f==0)continue;
if(D==Y.length-1)break;var h=Y[D].type==3;S(w,Y,D+1,f,h,P);if(!h)w.K.push("Z");D+=f}return w}return b}();
T.z.adR=function(Z){var S=Z.H,b=[],Y,P=0;for(var D=0;D<Z.K.length;D++){var w=Z.K[D];if(w=="C"){Y.push(S[P++],S[P++],S[P++],S[P++],S[P++],S[P++])}else if(w=="Z"){}else{Y=[];
if(w!="M"){Y.push(w);D++}Y.push(S[P++],S[P++]);b.push(Y)}}return b};T.z.zw=function(Z,S,b,Y){if(Y==null)Y=1e9;
var P=1e9,w=0;for(var D=0;D<Z.length;D+=2){var f=S-Z[D],h=b-Z[D+1],Q=f*f+h*h;if(Q<P){P=Q;w=D>>>1}}return P<Y*Y?w:-1};
T.z.Db=function(Z,S,b,Y){for(var D=0;D<Z.length;D+=2){var P=Z[D],w=Z[D+1],f=S[D],h=S[D+1];b[D]=P+(f-P)*Y;
b[D+1]=w+(h-w)*Y}};T.z.A=function(Z,S,b){for(var D=0;D<Z.length;D+=2){var Y=Z[D],P=Z[D+1];b[D]=Y*S.w+P*S.tE+S.RN;
b[D+1]=Y*S.O+P*S.KU+S.Sv}};T.z.$R=function(Z,S,b){if(S==null)S=0;if(b==null)b=Z.length;var Y=99999999999,P=-Y,w=99999999999,f=-w;
for(var D=S;D<b;D+=2){var h=Z[D],Q=Z[D+1];Y=Math.min(Y,h);w=Math.min(w,Q);P=Math.max(P,h);f=Math.max(f,Q)}return new b4(Y,w,P-Y,f-w)};
T.z.$B=function(Z,S){var b=Math.max(S.x,Math.min(S.x+S.c,Z.x)),Y=Math.max(S.y,Math.min(S.y+S.v,Z.y)),P=Z.x-b,w=Z.y-Y;
return Math.sqrt(P*P+w*w)};T.z.gO=function(Z){if(Z.h3())return new b4(Math.floor(Z.x),Math.floor(Z.y),Math.ceil(Z.c),Math.ceil(Z.v));
var S=Math.floor(Z.x),b=Math.ceil(Z.x+Z.c),Y=Math.floor(Z.y),P=Math.ceil(Z.y+Z.v);return new b4(S,Y,b-S,P-Y)};
T.z.Ex=function(Z){return T.z.gO(T.z.$R(Z))};T.z.X6=function(Z){var S=Z.x,b=Z.y,Y=Z.x+Z.c,P=Z.y+Z.v;
return{K:["M","L","L","L","Z"],H:[S,b,Y,b,Y,P,S,P]}};T.z.concat=function(Z,S,b){if(b==null)b=new fR;
for(var D=0;D<S.H.length;D+=2){var Y=S.H[D],P=S.H[D+1];Z.H.push(Y*b.w+P*b.tE+b.RN);Z.H.push(Y*b.O+P*b.KU+b.Sv)}for(var D=0;
D<S.K.length;D++)Z.K.push(S.K[D])};T.z.LD=function(Z){var S=Z.H,b=[],Y=[],P=0,w=0,f=0,h=0,Q=0,e=0,l=0,O=0,m=0;
for(var D=0;D<Z.K.length;D++){var V=Z.K[D];if(V=="M"){w=S[P];f=S[P+1];P+=2;Y.push(V);b.push(w,f)}else if(V=="C"){h=S[P];
Q=S[P+1];e=S[P+2];l=S[P+3];O=S[P+4];m=S[P+5];P+=6;Y.push(V);b.push(h,Q,e,l,O,m);w=O;f=m}else if(V=="Q"){h=S[P];
Q=S[P+1];e=S[P+2];l=S[P+3];P+=4;var q=h-w,K=Q-f,z=e-h,t=l-Q;Y.push("C");b.push(w+2/3*q,f+2/3*K,h+1/3*z,Q+1/3*t,e,l);
w=e;f=l}else if(V=="L"){h=S[P];Q=S[P+1];P+=2;var H=h-w,i=Q-f;Y.push("C");b.push(w,f,h,Q,h,Q);w=h;f=Q}else Y.push(V)}return{K:Y,H:b}};
T.z.akI=function(Z){var S=Z.H,b=[],Y=[],P=0;for(var D=0;D<Z.K.length;D++){var w=Z.K[D];if(w=="Q"){var f=S[P-2],h=S[P-1],Q=S[P],e=S[P+1],l=S[P+2],O=S[P+3];
P+=4;var m=Q-f,V=e-h,q=l-Q,K=O-e;Y.push("C");b.push(f+2/3*m,h+2/3*V,Q+1/3*q,e+1/3*K,l,O)}else{var z=0;
if(w=="M"||w=="L")z=2;else if(w=="C")z=6;for(var t=0;t<z;t++)b.push(S[P+t]);P+=z;Y.push(w)}}return{K:Y,H:b}};
T.z.Xt=function(Z,S){var b=Z.H,Y=[],P=[],w=0,f=0,h=0,Q=0,e=0,l=0,O=0,m=0,V=0;for(var D=0;D<Z.K.length;
D++){var q=Z.K[D];if(q=="M"){f=b[w];h=b[w+1];w+=2;P.push(q);Y.push(f,h)}else if(q=="C"){Q=b[w];e=b[w+1];
l=b[w+2];O=b[w+3];m=b[w+4];V=b[w+5];w+=6;T.z.qo(f,h,Q,e,l,O,m,V,S,P,Y,0);f=m;h=V}else P.push(q)}return{K:P,H:Y}};
T.z.qo=function(Z,S,b,Y,P,w,f,h,Q,e,l,O){var m=Math.sqrt((f-Z)*(f-Z)+(h-S)*(h-S)),V=Math.sqrt((f-P)*(f-P)+(h-w)*(h-w))+Math.sqrt((P-b)*(P-b)+(w-Y)*(w-Y))+Math.sqrt((b-Z)*(b-Z)+(Y-S)*(Y-S)),q=(m+V)/2;
if(q<=Q){e.push("C");l.push(b,Y,P,w,f,h)}else{var K=0,z=0,t=0,H=0,i=0,y=0,j=0,J=0,A=0,a=0,I=0,E=0,c=0;
z=(Z+b)/2;t=(S+Y)/2;H=(b+P)/2;i=(Y+w)/2;y=(P+f)/2;j=(w+h)/2;J=(z+H)/2;A=(t+i)/2;a=(H+y)/2;I=(i+j)/2;
E=(J+a)/2;c=(A+I)/2;T.z.qo(Z,S,z,t,J,A,E,c,Q,e,l,O+1);T.z.qo(E,c,a,I,y,j,f,h,Q,e,l,O+1)}};T.z.sW=function(Z,S){var b=Z.length-2,Y=Z[0],P=Z[1],w=Z[b],f=Z[b+1],h=w-Y,Q=f-P,e=1/Math.sqrt(h*h+Q*Q),l=w*P-f*Y,O=-1,m=-1;
for(var D=2;D<b;D+=2){var V=Z[D],q=Z[D+1],K=Math.abs(Q*V-h*q+l)*e;if(K>m){m=K;O=D}}if(m<S)return[Y,P,w,f];
var z=T.z.sW(Z.slice(0,O+2),S),t=T.z.sW(Z.slice(O),S);for(var D=2;D<t.length;D++)z.push(t[D]);return z};
T.z.ao7=function(){var Z=function(Y,P,w,f,h,Q){return(P-f)*(h-w)+(w-Y)*(Q-f)>=0},S=function(Y,P,w,f,h,Q,e,l){var O=e-w,m=l-f,V=h-w,q=Q-f,K=Y-w,z=P-f,t=O*O+m*m,H=O*V+m*q,i=O*K+m*z,y=V*V+q*q,j=V*K+q*z,J=1/(t*y-H*H),A=(y*i-H*j)*J,a=(t*j-H*i)*J;
return A>=0&&a>=0&&A+a<1},b=function(Y){var C=Y.length>>>1,D=0;if(C<3)return[];var P=[],w=[];for(var D=0;
D<C;D++)w.push(D);var f=C;while(f>3){var h=w[(D+0)%f],Q=w[(D+1)%f],e=w[(D+2)%f],l=Y[2*h],O=Y[2*h+1],m=Y[2*Q],V=Y[2*Q+1],q=Y[2*e],K=Y[2*e+1],z=!1;
if(Z(l,O,m,V,q,K)){z=!0;for(var t=0;t<f;t++){var H=w[t];if(H==h||H==Q||H==e)continue;if(S(Y[2*H],Y[2*H+1],l,O,m,V,q,K)){z=!1;
break}}}if(z){P.push(h,Q,e);w.splice((D+1)%f,1);f--;D=0}else if(D++>3*f)break}P.push(w[0],w[1],w[2]);
return P};return b}();T.z.a96=function(Z,S){var b={},Y={K:[],H:[]};for(var D=0;D<S.length;D+=3){var P=S[D]*2,w=S[D+1]*2,f=S[D+2]*2;
T.z.J0(Z,P,w,Y,b);T.z.J0(Z,P,f,Y,b);T.z.J0(Z,w,f,Y,b)}return Y};T.z.J0=function(Z,S,b,Y,P){if(S>b){var w=b;
b=S;S=w}if(P[S+","+b])return;P[S+","+b]=!0;Y.K.push("M","L");Y.H.push(Z[S],Z[S+1],Z[b],Z[b+1])};T.z.cO=function(Z,S){var b=[],Y=Z.length;
for(var D=0;D<Y;D+=2){var P=Z[D],w=Z[D+1],f=Z[(D+2)%Y],h=Z[(D+3)%Y];if(h<w){var Q=w;w=h;h=Q}if(w<S&&S<h){var e=(S-w)/(h-w);
b.push(P+e*(f-P))}}b.sort(function(l,O){return l-O});return b};T.z.amN=function(Z,S){var b=S.slice(0),C=Z.length/2,Y=[],P=[];
for(var D=0;D<C;D++){var w=(D+1)%C,f=Z[2*D]-Z[2*w],h=Z[2*D+1]-Z[2*w+1];P[D]=Math.sqrt(f*f+h*h)}for(var D=0;
D<C;D++){var Q=(D-1+C)%C,w=(D+1)%C,e=S[D],l=e+S[Q],O=e+S[w];if(l!=0)b[D]=Math.min(b[D],P[Q]*e/l);if(O!=0)b[D]=Math.min(b[D],P[D]*e/O)}for(var D=0;
D<C;D++){var w=(D+1)%C,m=(D+2)%C,V=b[D],q=b[w],K=Z[2*D],z=Z[2*D+1],t=Z[2*w],H=Z[2*w+1],i=Z[2*m],y=Z[2*m+1],j=P[D],J=P[w],A=T.z.aaC(K,z,t,H,i,y,V,q,j,J);
Y.push(A[0],A[1],A[0],A[1],A[2],A[3]);Y.push(A[2],A[3],A[4],A[5],A[6],A[7])}return Y};T.z.aaC=function(Z,S,b,Y,P,w,f,h,Q,e){if(Q==null)Q=Math.sqrt((b-Z)*(b-Z)+(Y-S)*(Y-S));
if(e==null)e=Math.sqrt((P-b)*(P-b)+(w-Y)*(w-Y));var l=.553,O=0,m=0,V=0,q=0;if(Q!=0){O=(b-Z)/Q;m=(Y-S)/Q}if(e!=0){V=(P-b)/e;
q=(w-Y)/e}var K=Z+f*O,z=S+f*m,t=b-h*O,H=Y-h*m;return[K,z,t,H,b-h*O*(1-l),Y-h*m*(1-l),b+h*V*(1-l),Y+h*q*(1-l),b+h*V,Y+h*q]};
T.z.dQ=function(Z,S,b,Y,P,w,f){var h=Z-b,Q=S-Y,e=P-b,l=w-Y,O=1/Math.sqrt(h*h+Q*Q),m=1/Math.sqrt(e*e+l*l),V=h*O,q=Q*O,K=e*m,z=l*m,t=q*f,H=-V*f,i=-z*f,y=K*f,j=T.z.gI(t,H,V,q,i,y,K,z),J=t+V*j,A=H+q*j,j=T.z.gI(0,0,V,q,J,A,-q,V),a=V*j,I=q*j;
return[Math.sqrt(a*a+I*I),V,q,K,z]};T.z.Rb=function(Z,S,b,Y,P,w,f){var h=T.z.dQ(Z,S,b,Y,P,w,f),Q=h[0],e=h[1],l=h[2],O=h[3],m=h[4],V=Math.atan2(e*m-l*O,e*O+l*m);
if(V<0){V=V*-1}var q=Math.PI-V,K=4/3*Math.tan(q/4),z=b+Q*e,t=Y+Q*l,H=b+Q*O,i=Y+Q*m,y=z+K*f*-e,j=t+K*f*-l,J=H+K*f*-O,A=i+K*f*-m;
return[0,0,z,t,y,j,J,A,H,i]};T.z.gI=function(Z,S,b,Y,P,w,f,h){var Q=f*(S-w)-h*(Z-P),e=h*b-f*Y;if(e==0)return 0;
return Q/e};T.z.Rb(0,50,0,0,30,30,10);T.Ar=function(){};T.Ar.Ci=function(Z,S,b,Y,P){var w=b.c,f=b.v,h=w*f,Q=new Int32Array(h),C=0;
for(var D=0;D<h;D++)if(S[D]!=0){Q[D]=C;C++}else if(Z[(D<<2)+3]<200){Q[D]=-2}else Q[D]=-1;if(C==0)return;
var e=new T.nh(C,C),l=new Array(3*C),O=new Array(3*C);for(var D=0;D<O.length;D++)O[D]=l[D]=0;var m=1/255,V=[-w,-1,1,w],q=[],K=[];
for(var z=0;z<f;z++)for(var t=0;t<w;t++){var H=z*w+t,i=H<<2,D=Q[H],y=D*3,j=0,J=0,A=0;if(D==-1||D==-2)continue;
for(var a=0;a<4;a++){if(a==2){J=A;q[A]=0;K[A]=D;A++}var I=H+V[a],E=I<<2,c=Q[I];if(a==0&&z==0||a==1&&t==0||a==2&&t==w-1||a==3&&z==f-1||c==-2)continue;
j++;if(c==-1){l[y+0]+=Z[E+0];l[y+1]+=Z[E+1];l[y+2]+=Z[E+2]}else{q[A]=-1;K[A]=c;A++;if(S[H]==S[I]){l[y+0]+=Z[i+0]-Z[E+0];
l[y+1]+=Z[i+1]-Z[E+1];l[y+2]+=Z[i+2]-Z[E+2]}}}q[J]=j;e.c7(q,K,A)}for(var D=0;D<h;D++)if(Q[D]!=-1){var u=D<<2,n=Q[D],o=n*3;
O[o]=Z[u+0];O[o+1]=Z[u+1];O[o+2]=Z[u+2]}var x=Date.now();e.a0I(O,l,Y,P);console.log(Date.now()-x);for(var D=0;
D<h;D++){var n=Q[D],g=n*3,u=D<<2;if(n==-1||Z[u+3]!=255)continue;Z[u+0]=~~(.5+Math.max(0,Math.min(255,O[g+0])));
Z[u+1]=~~(.5+Math.max(0,Math.min(255,O[g+1])));Z[u+2]=~~(.5+Math.max(0,Math.min(255,O[g+2])))}};T.rect={};
T.rect.b8=function(Z,S){var b=[Z],Y=[];for(var D=0;D<S.length;D++){var P=S[D],w=!1;for(var f=D+1;f<S.length;
f++){var h=S[f];if(h[0]<=P[0]&&h[1]<=P[1]&&P[2]<=h[2]&&P[3]<=h[3]){w=!0;break}}if(!w)Y.push(P)}S=Y;for(var D=0;
D<S.length;D++){var P=S[D];for(var f=0;f<b.length;f++){var h=b[f],Q=Math.max(P[0],h[0]),e=Math.min(P[2],h[2]),l=Math.max(P[1],h[1]),O=Math.min(P[3],h[3]);
if(Q<e&&l<O){var m=[];if(h[1]<P[1]){var V=h.slice(0);V[3]=P[1];m.push(V)}if(h[0]<P[0]){var q=h.slice(0);
q[1]=l;q[2]=P[0];m.push(q)}if(P[2]<h[2]){var K=h.slice(0);K[1]=l;K[0]=P[2];m.push(K)}if(P[3]<h[3]){var z=[Q,O,e,h[3]];
m.push(z)}if(m.length!=0){b[f]=m[0];for(var t=1;t<m.length;t++)b.push(m[t])}}}b.push(P);b=T.rect.adn(b)}b.sort(function(P,h){return P[1]!=h[1]?P[1]-h[1]:P[0]-h[0]});
return b};T.rect.adn=function(Z){Z=Z.slice(0);for(var D=0;D<Z.length;D++){var S=Z[D],b=null;if(S[4]!=null)continue;
for(var Y=0;Y<Z.length;Y++){var P=Z[Y];if(D==Y||P[4]!=null)continue;var w=S[0]==P[0],f=S[1]==P[1],h=S[2]==P[2],Q=S[3]==P[3];
if(f&&Q&&(S[2]==P[0]||S[0]==P[2])){b=[Math.min(S[0],P[0]),S[1],Math.max(S[2],P[2]),S[3]]}if(w&&h&&(S[3]==P[1]||S[1]==P[3])){b=[S[0],Math.min(S[1],P[1]),S[2],Math.max(S[3],P[3])]}if(b){Z[D]=b;
Z.splice(Y,1);break}}if(b){D--}}return Z};T.rect.n8=function(Z){var S=new b4;for(var D=0;D<Z.length;
D++)S=S.VK(Z[D]);return S};T.rect.a65=function(Z,S){var b=T.rect.n8,Y=new UnionFind(Z.length),J=1e3,A=1e3;
for(var D=0;D<Z.length;D++)for(var P=D+1;P<Z.length;P++){if(!S)continue;var w=Z[D],f=Z[P],O=1e9,m=1e9;
if(w.U5(f)){Y.link(D,P);continue}var h=w.x+w.c,Q=w.y+w.v,e=f.x+f.c,l=f.y+f.v;if((h<f.x||e<w.x)&&(Q<f.y||l<w.y))continue;
if(!(Q<f.y||l<w.y))O=Math.min(Math.abs(h-f.x),Math.abs(w.x-e));if(!(h<f.x||e<w.x))m=Math.min(Math.abs(Q-f.y),Math.abs(w.y-l));
var V=Math.min(O,m),q=Math.min(w.c,w.v,f.c,f.v);if(V<.3*q)Y.link(D,P)}var K=[],z={};for(var D=0;D<Z.length;
D++){var t=Y.find(D),H=Z[D];if(z[t]==null){z[t]=K.length;K.push([])}K[z[t]].push(H)}var i=[],y=[];for(var D=0;
D<K.length;D++){i.push(b(K[D]));var j=b(K[D]);j.pG=D;y.push(j)}y.sort(function(v,R){return Math.max(R.v,R.c)-Math.max(v.v,v.c)});
var a=new NETXUS.RectanglePacker(J,A);while(!0){var I=!1;a.reset(J,A);for(var D=0;D<y.length;D++){var E=a.findCoords(y[D].c,y[D].v);
if(E){y[D].x=E.x;y[D].y=E.y}else{J=Math.floor(J*1.1);A=Math.floor(A*1.1);I=!0;break}}if(I)continue;break}for(var D=0;
D<K.length;D++){var c=y[D],u=c.pG,n=i[u],o=K[u],x=c.x-n.x,g=c.y-n.y;for(var P=0;P<o.length;P++)o[P].offset(x,g)}};
T.dp=function(){};T.dp.EC=Math.floor(16*window.devicePixelRatio);T.dp.gC={};T.dp.SV=0;T.dp.XV=[[12,76,2],[12,76,3],[12,76,4],[12,76,5],[12,76,6]];
T.dp.akq=["px","in","cm","mm","%"];T.dp.tz=function(Z,S,b){var Y=S.GY,P=[1,Y,Y/2.54,Y/25.4,S.c/100][b];
return Z*P};T.dp.Rv=function(Z,S,b,Y,P){var w=b.Gg.iJ,f=[1,S,S/2.54,S/25.4,Y/100][w],h=[2,3,2,1,2][w];
Z=Z/f;var Q=Math.round(Z),e=w==0&&Math.abs(Z-Q)<1e-6?Q+"":Z.toFixed(h);if(P)e+=" "+T.dp.akq[w];return e};
T.dp.a6L=function(Z,S,b,Y){var P=b.Gg.iJ,w=[1,S,S/2.54,S/25.4,Y/100][P];Z=parseFloat(Z)*w;return Z};
T.dp.aa8=function(Z,S){var b=Z+","+S;if(T.dp.gC.clr==b)return;var Y=Math.round(T.dp.EC*.5);T.dp.SV=Y;
var P=document.createElement("canvas");P.width=P.height=Y;var w=P.getContext("2d");w.font=Y*1.5+"px monospace";
var f="0 1 2 3 4 5 6 7 8 9 -".split(" ");for(var D=0;D<f.length;D++){w.fillStyle="#"+T.T3(S);w.fillRect(0,0,Y,Y);
w.fillStyle="#"+T.T3(Z);w.fillText(f[D],0,Y);T.dp.gC[f[D]]=w.getImageData(0,0,Y,Y).data}T.dp.gC.clr=b};
T.dp.a4x=function(Z,S,b){var Y=0,P=0,w=4*T.dp.EC;for(var D=9;D>=0;D--){var f=Math.pow(10,D);if(5*f*Z<=w){Y=5*f;
P=10;break}if(2*f*Z<=w){Y=2*f;P=4;break}if(1*f*Z<=w){Y=1*f;P=10;break}}if(Y==0){Y=1;P=10}var h=Math.ceil(Y*Z),Q=T.f(h*T.dp.EC*4);
T._U(Q,4278190080|b);for(var D=0;D<T.dp.EC;D++)T.dp.Vr(Q,4*D*h,S);for(var D=0;D<h;D++)T.dp.Vr(Q,4*((T.dp.EC-1)*h+D),S);
if(Y==2)P=2;if(Y==5)P=5;if(Y>1||Y==1&&h>20)for(var D=1;D<P;D++)T.dp.alm(Q,D*(h/P),h,(D&1)==1?.8:.7,S);
return{R3:Q,step:Y}};T.dp.alm=function(Z,S,b,Y,P){var S=Math.round(S);for(var w=Math.round(T.dp.EC*Y);
w<T.dp.EC-1;w++)T.dp.Vr(Z,4*(w*b+S),P)};T.dp.Vr=function(Z,S,b){Z[S+0]=b>>16&255;Z[S+1]=b>>8&255;Z[S+2]=b&255};
T.dp.a7P=function(Z,S,b,Y,P){var w=Z.a_.c,f=Z.a_.v,h=T.dp.EC,Q=S&255,e=S>>8&255,l=S>>16&255,J,A,a,I;
S=Math.round(Q*.6)<<16|Math.round(e*.6)<<8|Math.round(l*.6);T.dp.aa8(Math.round(Q*.8)<<16|Math.round(e*.8)<<8|Math.round(l*.8),b);
var O=this.a4x(Z.S,S,b),m=Z._2(0,0),V=Z._2(w,f),q=Math.floor(m.x/O.step)*O.step,K=Math.ceil(V.x/O.step)*O.step,z=Math.floor(m.y/O.step)*O.step,t=Math.ceil(V.y/O.step)*O.step,H=Z.pg(q,z),i=Z.pg(K,z),y=O.step*Z.S,j=Math.ceil(y);
J=Z.HQ.data;A=new b4(0,0,w,h);a=new b4(0,0,j,h);I=new b4(0,Math.round(h*.08),T.dp.SV,T.dp.SV);for(var D=0;
D<(K-q)/O.step;D++){a.x=Math.round(H.x+D*y);T.uH(O.R3,a,J,A,a);var E=(q+D*O.step).toString(10);for(var c=0;
c<E.length;c++){I.x=a.x+3+c*Math.round(T.dp.SV*.8);var u=T.dp.gC[E[c]];T.uH(u,I,J,A,I)}}var n=new Uint32Array(O.R3.buffer),o=new Uint32Array(O.R3.length);
for(var x=0;x<j;x++)for(var g=0;g<h;g++){o[x*h+g]=n[g*j+x]}O.R3=new Uint8Array(o.buffer);J=Z.oL.data;
A=new b4(0,0,h,f);a=new b4(0,0,h,j);I=new b4(Math.round(h*.2),0,T.dp.SV,T.dp.SV);for(var D=0;D<(t-z)/O.step;
D++){a.y=Math.round(H.y+D*y);T.uH(O.R3,a,J,A,a);var E=Math.abs(z+D*O.step).toString(10);for(var c=0;
c<E.length;c++){I.y=a.y+3+c*Math.round(T.dp.SV*1.15);var u=T.dp.gC[E[c]];T.uH(u,I,J,A,I)}}var v=Math.floor(h*.6),R=new Uint32Array(Z.HQ.data.buffer),X=new Uint32Array(Z.oL.data.buffer),B=Q<128?4278190080:4294967295;
if(0<Y&&Y<w)for(var D=0;D<v;D++)R[D*w+Y]=B;if(0<P&&P<f)for(var D=0;D<v;D++)X[P*h+D]=B};T.scale={};T.scale.QY=document.createElement("canvas");
T.scale.x_=T.scale.QY.getContext("2d");T.scale.am_=document.createElement("canvas");T.scale.al_=T.scale.am_.getContext("2d");
T.scale.ZO=function(Z,S,b){var Y=T.scale.QY,P=T.scale.x_;Y.width=S;Y.height=b;var w=new ImageData(new Uint8ClampedArray(Z.buffer),S,b);
P.putImageData(w,0,0);return P.createPattern(Y,"repeat")};T.scale.acm=function(Z,S,b,Y,P,w,f,h){var Q=T.scale.Oe(Z,b,Y,P,w,f,h);
T.Tr(Q.data,S)};T.scale.a1W=function(Z,S,b,Y,P,w,f,h){var Q=T.scale.Oe(Z,b,Y,P,w,f,h);T.Bv(Q.data,S)};
T.scale.Oe=function(Z,S,b,Y,P,w,f){var h=T.scale.QY,Q=T.scale.x_;h.width=S;h.height=b;Q.rect(0,0,S,b);
Q.translate(w,f);Q.scale(Y,P);Q.fillStyle=Z;Q.fill();return Q.getImageData(0,0,S,b)};T.scale.A=function(Z,S,b,Y,P){var w=b.clone();
w.oN();var f=P.c,h=P.v,Q=T.z.X6(S).H;T.z.A(Q,w,Q);var e=T.z.Ex(Q).Yz(P),l=e.x,O=e.y,m=l+e.c,V=O+e.v,q=~~S.x,K=~~S.y,z=~~S.c,t=~~S.v;
for(var H=O;H<V;H++)for(var i=l;i<m;i++){var y=i+.5,j=H+.5,J=b.w*y+b.tE*j+b.RN-q,A=b.O*y+b.KU*j+b.Sv-K;
if(0<=J&&0<=A&&J<z&&A<t)Y[H*f+i]=Z[~~A*z+~~J]}};T.scale.aos=function(Z,S,b,Y,P){var w=new Uint32Array(Z.buffer),f=new Uint32Array(Y.buffer),h=b.clone();
h.oN();var Q=P.c,e=P.v,l=T.z.X6(S).H;T.z.A(l,h,l);var O=T.z.Ex(l).Yz(P),m=O.x,V=O.y,q=m+O.c,K=V+O.v,z=~~S.x,t=~~S.y,H=~~S.c,i=~~S.v;
for(var y=V;y<K;y++)for(var j=m;j<q;j++){var J=j+.5,A=y+.5,a=b.w*J+b.tE*A+b.RN-z,I=b.O*J+b.KU*A+b.Sv-t;
if(0<=a&&0<=I&&a<H&&I<i)f[y*Q+j]=w[~~I*H+~~a]}};T.scale.ds=function(Z,S,b,Y,P,w,f){if(f<1)T.scale.aiU(Z,S,b,Y,P,w,Math.round(1/f));
else T.scale.aam(Z,S,b,Y,P,w,f)};T.scale.V_=function(Z,S,b,Y,P,w,f,h){if(h)h=h.Yz(new b4(0,0,S,b));Z=new Uint32Array(Z.buffer);
Y=new Uint32Array(Y.buffer);if(f<1)T.scale.amD(Z,S,b,Y,P,w,Math.round(1/f),h);else T.scale.a0a(Z,S,b,Y,P,w,f)};
T.scale.aam=function(Z,S,b,Y,P,w,f){for(var h=0;h<b;h++)for(var Q=0;Q<S;Q++){var e=Z[h*S+Q],l=Math.min(f,P-Q*f),O=Math.min(f,w-h*f);
for(var D=0;D<O;D++)for(var m=0;m<l;m++)Y[(f*h+D)*P+f*Q+m]=e}};T.scale.aiU=function(Z,S,b,Y,P,w,f){for(var h=0;
h<w;h++)for(var Q=0;Q<P;Q++){var e=0,l=Math.min(f,S-Q*f),O=Math.min(f,b-h*f);for(var D=0;D<O;D++)for(var m=0;
m<l;m++)e+=Z[(f*h+D)*S+(f*Q+m)];Y[h*P+Q]=Math.round(e/(l*O))}};T.scale.a0a=function(Z,S,b,Y,P,w,f){for(var h=0;
h<b;h++)for(var Q=0;Q<S;Q++){var e=Z[h*S+Q],l=Math.min(f,P-Q*f),O=Math.min(f,w-h*f);for(var D=0;D<O;
D++)for(var m=0;m<l;m++)Y[(f*h+D)*P+f*Q+m]=e}};T.scale.amD=function(Z,S,b,Y,P,w,f,h){var Q=0,e=P,l=0,O=w;
if(h){Q=Math.floor(h.x/f);e=Math.ceil((h.x+h.c)/f);l=Math.floor(h.y/f);O=Math.ceil((h.y+h.v)/f)}for(var m=l;
m<O;m++)for(var V=Q;V<e;V++){var q=0,K=0,z=0,t=0,H=Math.min(f,S-V*f),i=Math.min(f,b-m*f);for(var D=0;
D<i;D++)for(var y=0;y<H;y++){var j=Z[(f*m+D)*S+f*V+y],J=j>>>24;q+=J;K+=J*(j>>>16&255);z+=J*(j>>>8&255);
t+=J*(j&255)}if(q!=0){var A=1/q;Y[m*P+V]=q/(H*i)<<24|K*A<<16|z*A<<8|t*A}else Y[m*P+V]=0}};T.N={};T.N.a7h=function(Z,S,b){var Y=128,D=0,P=b.c,w=b.v;
for(var f=0;f<w;f++)for(var h=0;h<P;h++){if(Z[D]>=Y&&(h==0||Z[D-1]<Y||(h==P-1||Z[D+1]<Y)||(f==0||Z[D-P]<Y)||(f==w-1||Z[D+P]<Y)))S[D]=255;
D++}};T.N.a9q=function(Z,S,b,Y){var P=new Uint32Array([4278190080,4294967295]),w=b.c,f=b.v,h=0,Q=0,e=w,l=f;
if(Y){h=Y.x-b.x;Q=Y.y-b.y;e=h+Y.c;l=Q+Y.v}var O=new Uint8Array(S.buffer),m=new Uint32Array(S.buffer);
for(var V=Q;V<l;V++)for(var q=h;q<e;q++){var D=V*w+q;if((Z[D]&128)!=0&&(V==0||(Z[D-w]&128)==0||q==0||(Z[D-1]&128)==0||q==w-1||(Z[D+1]&128)==0||V==f-1||(Z[D+w]&128)==0)){m[D]=P[(q+V&4)>>>2]}}};
T.N.alc=function(Z,S,b,Y,P,w){var f=b.c,h=b.v,Q=0,e=0,l=f,O=h;if(Y){Q=Y.x-b.x;e=Y.y-b.y;l=Q+Y.c;O=e+Y.v}var m=new Uint8Array(S.buffer),V=new Uint32Array(S.buffer);
for(var q=e;q<O;q++)for(var K=Q;K<l;K++){var D=q*f+K,z=Z[D];if(P==1)V[D]=255-z>>>1<<24|255;else V[D]=255<<24|(z<<16|z<<8|z)}};
T.To={};T.To.Wj=function(Z,S,b){var Y,P;if(b=="front"){Y=Z.rect.clone();P=T.To.a48}if(b=="union"){Y=Z.rect.VK(S.rect);
P=T.To.VK}if(b=="difference"){Y=S.rect.clone();P=T.To.a37}if(b=="intersection"){Y=Z.rect.Yz(S.rect);
P=T.To.Yz}if(b=="xor"){Y=Z.rect.VK(S.rect);P=T.To.agW}if(Y.h3())return null;var w=T.f(Y.X());T.JS(S.channel,S.rect,w,Y);
var f=T.f(Y.X());T.JS(Z.channel,Z.rect,f,Y);P(f,w,w);var h=T.fD(w,Y);if(h.h3())return null;if(!h.Oh(Y)){var Q=T.f(h.X());
T.JS(w,Y,Q,h);w=Q;Y=h}return{channel:w,rect:Y}};T.To.a48=function(Z,S,b){for(var D=0;D<Z.length;D++)b[D]=Z[D]};
T.To.VK=function(Z,S,b){for(var D=0;D<Z.length;D++)b[D]=Math.min(Z[D]+S[D],255)};T.To.a37=function(Z,S,b){for(var D=0;
D<Z.length;D++)b[D]=Math.max(S[D]-Z[D],0)};T.To.Yz=function(Z,S,b){var Y=1/255;for(var D=0;D<Z.length;
D++)b[D]=Z[D]*S[D]*Y};T.To.agW=function(Z,S,b){var Y=1/255;for(var D=0;D<Z.length;D++)b[D]=Math.min(Z[D]+S[D],255)-Z[D]*S[D]*Y};
T.nh=function(Z,S){this.U=[];this.R1=[0];this._I=[];this.$N=[];this.wj=[0];this.TQ=[];this.sm=[];this.rows=Z;
this.cols=S};T.nh.prototype.clone=function(){var Z=this,S=Z.rows,b=Z.cols,Y=new T.nh(S,b);Y.U=Z.U.slice(0);
Y.R1=Z.R1.slice(0);Y._I=Z._I.slice(0);Y.$N=Z.$N.slice(0);Y.wj=Z.wj.slice(0);Y.TQ=Z.TQ.slice(0);Y.sm=Z.sm.slice(0);
return Y};T.nh.prototype.c7=function(Z,S,b){var Y=this.R1.length-1;for(var D=0;D<b;D++){var P=Z[D],w=S[D];
this.U.push(P);this._I.push(w);if(w==Y){this.sm.push(P==0?0:1/P)}else{this.$N.push(P);this.TQ.push(w)}}this.R1.push(this.U.length);
this.wj.push(this.$N.length)};T.nh.prototype.YS=function(Z,S){var b=this,Y=b.rows,P=b.U,w=b._I;if(S==null)S=new Array(Y);
for(var D=0;D<Y;D++){var f=b.R1[D],h=b.R1[D+1],Q=0;while((h-f&3)!=0){Q+=P[f]*Z[w[f]];f++}for(var e=f;
e<h;e+=4)Q+=P[e]*Z[w[e]]+P[e+1]*Z[w[e+1]]+P[e+2]*Z[w[e+2]]+P[e+3]*Z[w[e+3]];S[D]=Q}return S};T.nh.prototype.multiply=function(Z){return this.Cm(Z.L8())};
T.nh.prototype.Cm=function(Z){var S=this,b=S.rows,Y=S.cols,P=Z.rows,w=new T.nh(b,P),f=S._I,h=Z._I;for(var D=0;
D<b;D++){var Q=[],e=[],l=S.R1[D],O=S.R1[D+1];for(var m=0;m<P;m++){var V=Z.R1[m],q=Z.R1[m+1],K=0,z=l,t=V;
while(z<O&&t<q){var H=Math.max(f[z],h[t]);while(z<O&&f[z]<H)z++;while(t<q&&h[t]<H)t++;if(z<O&&t<q&&f[z]==h[t])K+=S.U[z++]*Z.U[t++]}if(K!=0){Q.push(K);
e.push(m)}}w.c7(Q,e,Q.length)}return w};T.nh.prototype.L8=function(){var Z=this.rows,S=this.cols,b=[];
for(var D=0;D<S;D++)b.push([[],[]]);var Y=this.U,P=this.R1,w=this._I;for(var D=0;D<Z;D++){var f=P[D],h=P[D+1];
for(var Q=f;Q<h;Q++){var e=b[w[Q]];e[0].push(Y[Q]);e[1].push(D)}}var l=new T.nh(S,Z);for(var D=0;D<S;
D++)l.c7(b[D][0],b[D][1],b[D][1].length);return l};T.nh.prototype.FX=function(){var Z=this.rows,S=this.cols,b=new Array(Z),Y=this.U,P=this.R1,w=this._I;
for(var D=0;D<Z;D++){var f=b[D]=new Array(S);for(var h=0;h<S;h++)f[h]=0;var Q=P[D],e=P[D+1];for(var l=Q;
l<e;l++)f[w[l]]=Y[l]}return b};T.nh.prototype.La=function(Z,S,b,Y,P){function w(A,S,a,I){var E=A.length;
for(var D=0;D<E;D++)I[D]=A[D]-S[D]*a}function f(A,S,a,I){var E=A.length,c=0;while((E-c&3)!=0){I[c]=A[c]+S[c]*a;
c++}for(var D=c;D<E;D+=4){I[D]=A[D]+S[D]*a;I[D+1]=A[D+1]+S[D+1]*a;I[D+2]=A[D+2]+S[D+2]*a;I[D+3]=A[D+3]+S[D+3]*a}}function h(A,S,a){var I=A.length;
for(var D=0;D<I;D++)a[D]=A[D]*S[D]}function Q(A,S){var a=A.length,I=0,E=0;while((a-I&3)!=0){E+=A[I]*S[I];
I++}for(var D=I;D<a;D+=4)E+=A[D]*S[D]+A[D+1]*S[D+1]+A[D+2]*S[D+2]+A[D+3]*S[D+3];return E}var e=Y!=null?2:1,l=Date.now(),O=0,m=this,V=Z.slice(0),q=Z.slice(0);
m.YS(Z,q);w(S,q,1,V);var K=this.sm;if(e==0){K=V.slice(0);K.fill(1)}var z=V.slice(0);h(K,V,z);var t=z.slice(0),H=Q(V,z);
while(!0){m.YS(t,q);var i=H/Q(t,q);f(Z,t,i,Z);w(V,q,i,V);if((O&7)==0&&Math.sqrt(Q(V,V))<b)break;if(e<=1)h(K,V,z);
else{var y=V.slice(0);Y.aiT(y,V);P.afm(z,y)}var j=Q(V,z),J=j/H;f(z,t,J,t);H=j;O++}};T.nh.prototype.agK=function(Z,S,b,Y){var P=Date.now(),w=1.96,h=0;
if(b==null)b=5e-6;if(Y==null)Y=1e9;var f=1-w,C=this.rows,Q=this.$N,e=this.wj,l=this.TQ,O=this.sm;while(!0){var m=0;
for(var D=0;D<C;D++){var V=S[D],q=e[D],K=e[D+1];if(K-q==4)V-=Q[q]*Z[l[q]]+Q[q+1]*Z[l[q+1]]+Q[q+2]*Z[l[q+2]]+Q[q+3]*Z[l[q+3]];
else for(var z=q;z<K;z++)V-=Q[z]*Z[l[z]];var t=Z[D]*f+O[D]*V*w,H=t-Z[D];m+=H*H;Z[D]=t}if(m/C<b||Date.now()>P+Y)break}};
T.nh.prototype.a0I=function(Z,S,b,Y){var P=Date.now(),w=1.96,h=0;if(b==null)b=5e-5;if(Y==null)Y=1e9;
var f=1-w,C=this.rows,Q=this.$N,e=this.wj,l=this.TQ,O=this.sm;while(!0){var m=0;for(var D=0;D<C;D++){var V=D*3,q=S[V],K=S[V+1],z=S[V+2],t=e[D],H=e[D+1];
for(var i=t;i<H;i++){var y=Q[i],j=l[i]*3;q-=y*Z[j+0];K-=y*Z[j+1];z-=y*Z[j+2]}var J=O[D]*w,A=Z[V+0]*f+q*J,a=Z[V+1]*f+K*J,I=Z[V+2]*f+z*J,E=A-Z[V+0],c=a-Z[V+1],u=I-Z[V+2];
m+=.4*E*E+.5*c*c+.1*u*u;Z[V+0]=A;Z[V+1]=a;Z[V+2]=I}if(m/C<b||Date.now()>P+Y)break}};T.$F={};T.$F.KX=function(Z,S,b){return{t:"Objc",v:{classID:"CrPt",Hrzn:{t:"doub",v:Z},Vrtc:{t:"doub",v:S},Cnty:{t:"bool",v:b}}}};
T.$F.A=function(Z,S){for(var D=0;D<Z.length;D++){var b=Z[D].v,Y=S.YI(new ar(b.Hrzn.v,b.Vrtc.v));b.Hrzn.v=Math.round(Y.x);
b.Vrtc.v=Math.round(Y.y)}};T.$F.q$=function(Z,S,b){var C=Z.length-1,Y=T.Ig.nx(C+1,C+2);for(var D=1;D<C;
D++){Y[D][D-1]=1/(Z[D]-Z[D-1]);Y[D][D]=2*(1/(Z[D]-Z[D-1])+1/(Z[D+1]-Z[D]));Y[D][D+1]=1/(Z[D+1]-Z[D]);
Y[D][C+1]=3*((S[D]-S[D-1])/((Z[D]-Z[D-1])*(Z[D]-Z[D-1]))+(S[D+1]-S[D])/((Z[D+1]-Z[D])*(Z[D+1]-Z[D])))}Y[0][0]=2/(Z[1]-Z[0]);
Y[0][1]=1/(Z[1]-Z[0]);Y[0][C+1]=3*(S[1]-S[0])/((Z[1]-Z[0])*(Z[1]-Z[0]));Y[C][C-1]=1/(Z[C]-Z[C-1]);Y[C][C]=2/(Z[C]-Z[C-1]);
Y[C][C+1]=3*(S[C]-S[C-1])/((Z[C]-Z[C-1])*(Z[C]-Z[C-1]));T.Ig.yn(Y,b)};T.$F.abx=function(Z,S,b,Y){if(Z<=S[0])return b[0];
if(Z>=S[S.length-1])return b[S.length-1];var D=1;while(S[D]<Z)D++;var P=S[D],w=S[D-1],f=b[D],h=b[D-1],Q=(Z-w)/(P-w),e=Y[D-1]*(P-w)-(f-h),l=-Y[D]*(P-w)+(f-h),O=(1-Q)*h+Q*f+Q*(1-Q)*(e*(1-Q)+l*Q);
return O};T.$F.wo=function(Z,S,b,Y){var P={qq:[Z[0]],$Q:[S[0]],l1:[]};Y[0]=P;for(var D=1;D<Z.length-1;
D++){P.qq.push(Z[D]);P.$Q.push(S[D]);if(b[D]==!1){T.$F.q$(P.qq,P.$Q,P.l1);P={qq:[Z[D]],$Q:[S[D]],l1:[]}}Y[D]=P}P.qq.push(Z[D]);
P.$Q.push(S[D]);T.$F.q$(P.qq,P.$Q,P.l1);Y[D]=P};T.$F.aK=function(Z,S,b,Y){if(Z<=S[0])return b[0];if(Z>=S[S.length-1])return b[S.length-1];
var D=1;while(S[D]<Z)D++;var P=Y[D-1];return T.$F.abx(Z,P.qq,P.$Q,P.l1)};T.$F.ht=function(Z){var S={qq:[],$Q:[],$x:[]};
for(var D=0;D<Z.length;D++){S.qq[D]=Z[D].v.Hrzn.v;S.$Q[D]=Z[D].v.Vrtc.v;S.$x[D]=Z[D].v.Cnty?Z[D].v.Cnty.v:!0}return S};
T.$F.Dw=function(Z,C,S){var b=0,Y=255;if(S){b=-1e9;Y=1e9}var P=T.$F.ht(Z),w=[];T.$F.wo(P.qq,P.$Q,P.$x,w);
var f=[];for(var D=0;D<C;D++)f[D]=1/255*Math.max(b,Math.min(Y,T.$F.aK(D*(255/(C-1)),P.qq,P.$Q,w)));return f};
T.$F.a1U=function(Z,C,S){var b=Math.round(Z.length/20),Y=C-Z.length,P=S?(Z[b]-Z[0])/b:0,w=S?Z[0]-Y*P:Z[Z.length-1],f=[];
for(var D=0;D<Y;D++)f.push(w+D*P);return S?f.concat(Z):Z.concat(f)};T.$F.L$=function(Z,C,S){var b=T.$F.ht(Z),Y=[];
T.$F.wo(b.qq,b.$Q,b.$x,Y);var P=new Uint8Array(C),w=C/256;for(var D=0;D<C;D++)P[D]=Math.max(0,Math.min(C-1,T.$F.aK(D*w,b.qq,b.$Q,Y)));
if(S){P[0]=0;if(P[1]>100)P[1]=.4*P[1];if(P[2]>150)P[1]=.7*P[2]}return P};T.$F.Hf=function(Z,S){var b=new Uint8Array(Z.length);
for(var D=0;D<Z.length;D++)b[D]=S[Z[D]];return b};T.$F.Oy=function(Z,S,b){var Y=s.R("canvas","");Y.width=S;
Y.height=b;var P=Y.getContext("2d"),w=T.$F.L$(Z,256);P.scale(S/255,b/255);P.fillStyle="#fff";P.fillRect(0,0,255,255);
P.fillStyle="#333";P.beginPath();P.moveTo(0,255);for(var D=0;D<w.length;D++)P.lineTo(D,255-w[D]);P.lineTo(255,255);
P.closePath();P.fill();return Y.toDataURL()};T.style={};T.style.stroke=function(Z,S,b,Y){var P=b.c,w=b.v,f=new Float64Array(P*w);
T.style.ED(Z,f,P,w);T.style.dK(S,b,f,b,Y)};T.style.dK=function(Z,S,b,Y,P){var w=S.Yz(Y),f=w.c,h=w.v;
P+=.5;var Q=w.x-S.x,e=w.y-S.y,l=S.c,O=w.x-Y.x,m=w.y-Y.y,V=Y.c;for(var q=0;q<h;q++){var K=(q+m)*V+O,z=(q+e)*l+Q;
for(var t=0;t<f;t++){var H=Math.max(0,Math.min(1,P-b[K+t]));Z[z+t]=Math.round(H*255)}}};T.style.alr=function(Z,S,b,Y){for(var P=0;
P<b;P++)for(var w=0;w<S;w++){var f=P*S+w,h=0,Q=0,e=Z[f];if(w==0||P==0){h=Z[f+1]-e;Q=Z[f+S]-e}else if(w==b-1||P==S-1){h=e-Z[f-1];
Q=e-Z[f-S]}else{h=Z[f+1]-Z[f-1];Q=Z[f+S]-Z[f-S]}if(h!=0||Q!=0){var l=1/Math.sqrt(h*h+Q*Q);h*=l;Q*=l}Y[f+f]=h;
Y[f+f+1]=Q}};T.style.ED=function(Z,S,b,Y){var P=0,w=b*Y;for(var D=0;D<w;D++)P|=Z[D];if(P==0){S.fill(1e9);
return}var f=T.style.yO(Z,b,Y);for(var h=0;h<Y;h++)for(var Q=0;Q<b;Q++){var D=h*b+Q,e=f[D*2],l=f[D*2+1],O=(h+l)*b+Q+e;
if(e==0&&l==0){S[D]=0;continue}var m=Math.sqrt(e*e+l*l),V=Z[O]*(1/255),q=1/m,K=Math.abs(e)*q,z=Math.abs(l)*q;
if(z>K){var t=z;z=K;K=t}S[D]=m+T.style.aiJ(K,z,V)}};T.style.aiJ=function(Z,S,b){return(.5-b)*Z};T.style.yO=function(Z,S,b,Y){if(Y==null){Y=!0;
for(var D=0;D<Z.length;D++)Y=Y&&(Z[D]==0||Z[D]==255)}var P=new Int16Array(S*b*2);if(Y)T.style.aeX(Z,P,S,b);
else T.style.akW(Z,P,S,b);return P};T.style.akW=function(Z,S,b,Y){var P=b*Y;for(var D=0;D<P;D++)if(Z[D]==0){S[D*2]=16383;
S[D*2+1]=16383}for(var w=1;w<=Y-1;w++){var D=w*b;for(var f=0;f<=b-1;f++)T.style.S4(S,Z,b,D+f<<1,-1);
for(var f=1;f<=b-1;f++)T.style.uI(S,Z,b,D+f<<1,-1);for(var f=b-2;f>=0;f--)T.style.uI(S,Z,b,D+f<<1,1)}for(var w=Y-2;
w>=0;w--){var D=w*b;for(var f=0;f<=b-1;f++)T.style.S4(S,Z,b,D+f<<1,1);for(var f=1;f<=b-1;f++)T.style.uI(S,Z,b,D+f<<1,-1);
for(var f=b-2;f>=0;f--)T.style.uI(S,Z,b,D+f<<1,1)}};T.style.uI=function(Z,S,b,Y,P){var w=(Y>>>1)+P<<1,f=Z[Y],h=Z[Y+1],Q=Z[w]+P,e=Z[w+1],l=Q*Q+e*e,O=f*f+h*h;
if(e!=16383&&(f==16383||Math.sqrt(l)+(.5-S[(Y>>>1)+e*b+Q]*(1/255))<Math.sqrt(O)+(.5-S[(Y>>>1)+h*b+f]*(1/255)))){Z[Y]=Q;
Z[Y+1]=e}};T.style.S4=function(Z,S,b,Y,P){var w=(Y>>>1)+P*b<<1,f=Z[Y],h=Z[Y+1],Q=Z[w],e=Z[w+1]+P,l=Q*Q+e*e,O=f*f+h*h;
if(Q!=16383&&(f==16383||Math.sqrt(l)+(.5-S[(Y>>>1)+e*b+Q]*(1/255))<Math.sqrt(O)+(.5-S[(Y>>>1)+h*b+f]*(1/255)))){Z[Y]=Q;
Z[Y+1]=e}};T.style.aeX=function(Z,S,b,Y){var P=b*Y;for(var D=0;D<P;D++)if(Z[D]==0){S[D*2]=16383;S[D*2+1]=16383}for(var w=1;
w<=Y-1;w++){var D=w*b;for(var f=0;f<=b-1;f++)T.style.Gj(S,Z,b,D+f<<1,-1);for(var f=1;f<=b-1;f++)T.style.lT(S,Z,b,D+f<<1,-1);
for(var f=b-2;f>=0;f--)T.style.lT(S,Z,b,D+f<<1,1)}for(var w=Y-2;w>=0;w--){var D=w*b;for(var f=0;f<=b-1;
f++)T.style.Gj(S,Z,b,D+f<<1,1);for(var f=1;f<=b-1;f++)T.style.lT(S,Z,b,D+f<<1,-1);for(var f=b-2;f>=0;
f--)T.style.lT(S,Z,b,D+f<<1,1)}};T.style.lT=function(Z,S,b,Y,P){var w=(Y>>>1)+P<<1,f=Z[Y],h=Z[Y+1],Q=Z[w]+P,e=Z[w+1],l=Q*Q+e*e,O=f*f+h*h;
if(e!=16383&&(f==16383||l<O)){Z[Y]=Q;Z[Y+1]=e}};T.style.Gj=function(Z,S,b,Y,P){var w=(Y>>>1)+P*b<<1,f=Z[Y],h=Z[Y+1],Q=Z[w],e=Z[w+1]+P,l=Q*Q+e*e,O=f*f+h*h;
if(Q!=16383&&(f==16383||l<O)){Z[Y]=Q;Z[Y+1]=e}};T.style.ajt=function(Z,S,b,Y,P){var w=b*Y,f=(b+Y+1)*1.01;
for(var D=0;D<w;D++)if(Z[D]<=P)S[D]=f;for(var h=1;h<b;h++)S[h]=Math.min(S[h],S[h-1]);for(var Q=1;Q<Y;
Q++){var D=Q*b;S[D]=Math.min(S[D],Math.min(S[D-b]+1,S[D-b+1]+Math.SQRT2));for(var h=1;h<b-1;h++){var e=S[++D],l=Math.min(S[D-1]+1,Math.min(S[D-b-1]+Math.SQRT2,Math.min(S[D-b]+1,S[D-b+1]+Math.SQRT2)));
if(l<e)S[D]=l}D++;S[D]=Math.min(S[D],Math.min(S[D-1]+1,Math.min(S[D-b-1]+Math.SQRT2,S[D-b]+1)))}for(var h=b-2;
h>=0;h--)S[h+w-b]=Math.min(S[h+w-b],S[h+w-b+1]);for(var Q=Y-2;Q>=0;Q--){var D=Q*b+b-1;S[D]=Math.min(S[D],Math.min(S[D+b]+1,S[D+b-1]+Math.SQRT2));
for(var h=b-2;h>=1;h--){var e=S[--D],l=Math.min(S[D+1]+1,Math.min(S[D+b-1]+Math.SQRT2,Math.min(S[D+b]+1,S[D+b+1]+Math.SQRT2)));
if(l<e)S[D]=l}D--;S[D]=Math.min(S[D],Math.min(S[D+1]+1,Math.min(S[D+b]+1,S[D+b+1]+Math.SQRT2)))}};T.style.a1g=function(Z,S,b,Y,P){var w=new Int32Array(b*Y);
T.style.a2f(Z,w,b,Y,P);T.style.adw(w,S,b,Y)};T.style.a2f=function(Z,S,b,Y,P){var w=new Int32Array(Y);
for(var f=0;f<b;f++){var h=b+Y;for(var Q=Y-1;Q>=0;Q--){if(Z[Q*b+f]>P)h=0;else h++;w[Q]=h}h=b+Y;for(var Q=0;
Q<Y;Q++){if(Z[Q*b+f]>P)h=0;else h++;S[Q*b+f]=h<w[Q]?-h:w[Q]}}};T.style.adw=function(Z,S,b,Y){var P=(b+Y)*(b+Y),w=new Float64Array(b),f=new Uint16Array(b);
for(var h=0;h<Y;h++){var Q=h*b,e=0;f[0]=0;w[0]=-P;w[1]=+P;for(var l=1;l<b;l++){var O=Z[l+Q]*Z[l+Q]+l*l,m=(O-(Z[f[e]+Q]*Z[f[e]+Q]+f[e]*f[e]))/(2*l-2*f[e]);
while(m<=w[e]){e--;m=(O-(Z[f[e]+Q]*Z[f[e]+Q]+f[e]*f[e]))/(2*l-2*f[e])}e++;f[e]=l;w[e]=m;w[e+1]=P}e=0;
for(var l=0;l<b;l++){while(w[e+1]<l)e++;var V=f[e]-l,q=Z[f[e]+Q],D=h*b+l<<1;S[D]=V;S[D+1]=q}}};T.style.QB=function(Z,S,b){if(b)for(var D=0;
D<Z.length;D++){var Y=Z[D];if(Y>0)Z[D]=Math.max(0,Math.min(255,Y+S*2*(T.style.Ux(D)-128)))}else for(var D=0;
D<Z.length;D++){var Y=Z[D];if(Y>0)Z[D]=Math.max(0,Math.min(255,Y+Math.min(Y*3,S*2*(T.style.Ux(D)-128))))}};
T.style.Ux=function(Z){Z=Z^61^Z>>16;Z=Z+(Z<<3);Z=Z^Z>>4;Z=Z*668265261;Z=Z^Z>>15;return Z&255};T.kJ={};
T.kJ.eD=function(Z,S,b){var Y=Z.canvas,P=s.Z(),w=Math.floor;if(Y.width!=w(S*P)||Y.height!=w(b*P))s.ed(Y,S,b,Z)};
T.kJ.fR=function(Z,S,b,Y,P,w){T.kJ.eD(Z,S,b);if(w==null)w=!1;var f=P.channel,h=P.rect,Q=!P.isEnabled;
S=Math.floor(S*s.Z());b=Math.floor(b*s.Z());if(S*b==0)return;var e=Z.createImageData(S,b),l=e.data,O=1/S,m=1/b;
for(var D=0;D<b;D++)for(var V=0;V<S;V++){var q=D*S+V,K=q*4,z=Math.round(Y.x+V*O*Y.c),t=Math.round(Y.y+D*m*Y.v),H=0;
if(z<h.x||z>=h.x+h.c||t<h.y||t>=h.y+h.v)H=P.color;else H=f[(t-h.y)*h.c+(z-h.x)];H=255*(255-P.uu)+H*P.uu>>>8;
if(w)H=170+Math.round(.4*(H-170));l[K]=H;l[K+1]=H;l[K+2]=H;l[K+3]=255}Z.putImageData(e,0,0);if(Q)T.kJ.O5(Z,S,b)};
T.kJ.Ti=[];T.kJ.a05=function(Z,S,b,Y){var P,w,f,h=s.Z();S=Math.floor(h*S);b=Math.floor(h*b);P=Math.ceil(Math.max(S,b)*.35);
w=S-P;f=b-P;var Q=T.kJ.Ti[P];if(Q==null){var e=s.R("canvas"),l=e.getContext("2d");e.width=e.height=P;
l.fillStyle="#eeeeee";l.fillRect(0,0,P,P);var O=Math.round(P*.27),m=l.lineWidth=Math.max(1,Math.round(P*.12)),V=m/2;
l.strokeRect(1+V,1+V,P-m-2,P-m-2);l.strokeRect(O+V,O+V,P-O-O-m,P-O-O-m);Q=T.kJ.Ti[P]=l.getImageData(0,0,P,P)}Z.putImageData(Q,w,f)};
T.kJ.lo=[];T.kJ.amR=function(Z,S,b){var Y,P,w,f=s.Z();S=Math.floor(f*S);b=Math.floor(f*b);Y=Math.ceil(Math.max(S,b)*.35);
P=S-Y;w=b-Y;var h=T.kJ.lo[Y];if(h==null){var Q=s.R("canvas"),e=Q.getContext("2d");Q.width=Q.height=Y;
e.fillStyle="#eeeeee";e.fillRect(0,0,Y,Y);e.lineWidth=1;e.strokeRect(2.5,2.5,Y-5,Y-5);var l=e.createImageData(3,3);
T._U(l.data,4278190080);l.data[4*4]=l.data[4*4+1]=l.data[4*4+2]=238;e.putImageData(l,1,1);e.putImageData(l,Y-4,1);
e.putImageData(l,1,Y-4);e.putImageData(l,Y-4,Y-4);h=T.kJ.lo[Y]=e.getImageData(0,0,Y,Y)}Z.putImageData(h,P,w)};
T.kJ.anC=function(Z,S,b,Y,P){T.kJ.eD(Z,S,b);S=Math.floor(S*s.Z());b=Math.floor(b*s.Z());var w=S/Y.c;
if(S*b==0)return;Z.fillStyle="#999999";Z.setTransform(1,0,0,1,0,0);Z.clearRect(0,0,S,b);var f=T.kJ.iS;
if(f==null){f=T.kJ.iS=JSON.parse(JSON.stringify(a4.m3.default));f.strokeEnabled.v=!0}f.strokeStyleLineWidth.v.val=1*s.Z()/w;
Z.fillStyle="#ffffff";Z.scale(w,w);T.Y.Vs(P.b,Z,0,0);T.Y.Vs(P.b,Z,0,0,f)};T.kJ.j3=null;T.kJ.ii=function(Z,S,b,Y,P,w,f,h){T.kJ.eD(Z,S,b);
S=Math.floor(S*s.Z());b=Math.floor(b*s.Z());if(S*b==0)return;var Q=Math.max(S,b),e=T.kJ.j3;if(e==null||e.width<Q||e.height<Q){T.kJ.j3=e=Z.createImageData(Q,Q)}Q=e.width;
var l=e.data,O=Y.c/S,m=Y.v/b,V=w.x,q=w.x+w.c,K=w.y,z=w.y+w.v;for(var D=0;D<b;D++)for(var t=0;t<S;t++){var H=D*Q+t,i=H*4,y=~~(Y.x+t*O),j=~~(Y.y+D*m),J=T.bb(D,t,2);
if(y<V||y>=q||j<K||j>=z){l[i]=J;l[i+1]=J;l[i+2]=J;l[i+3]=255}else{var A=(j-w.y)*w.c+(y-w.x)<<2,a=P[A+3]*(1/255);
l[i]=P[A+0]*a+J*(1-a);l[i+1]=P[A+1]*a+J*(1-a);l[i+2]=P[A+2]*a+J*(1-a);l[i+3]=255}}if(h!=null)for(var D=0;
D<l.length;D+=4)l[D]=l[D+1]=l[D+2]=l[D+h];Z.putImageData(e,0,0);if(f)T.kJ.O5(Z,S,b)};T.kJ.a8P=function(Z,S,b,Y){T.kJ.eD(Z,S,b);
Z.fillStyle=T.kJ.CD(Y.Clr.v);Z.fillRect(0,0,S,b);T.kJ.DM(Z,S,b)};T.kJ.Gy=null;T.kJ.a3e=function(Z,S,b,Y){T.kJ.eD(Z,S,b);
var P=Z.canvas.width,w=Z.canvas.height,f=T.kJ.Gy;if(f==null||f.width!=P||f.height!=w){Z.fillStyle="#ffffff";
Z.fillRect(0,0,S,b);Z.fillStyle="#000000";Z.font=""+b*.7+"px serif";Z.fillText("T",(S-b*.43)/2,b*.75);
Z.fillText("T",(S-b*.43)/2,b*.75);T.kJ.Gy=Z.getImageData(0,0,P,w)}else Z.putImageData(f,0,0)};T.kJ.a9s=function(Z,S,b){T.kJ.eD(Z,S,b);
Z.clearRect(0,0,S,b);Z.font=b*.7+"px serif";Z.fillText(":(",(S-b*.43)/2,b*.7)};T.kJ.aaE=function(Z,S,b,Y){T.kJ.eD(Z,S,b);
var P=g3.get(Y),w=aV.get(g3.names[P]).substring(0,3);Z.fillStyle="#ffffff";Z.fillRect(0,0,S,b);Z.fillStyle="#000000";
Z.font=b*.55+"px sans-serif";var f=Z.measureText(w);Z.fillText(w,(S-f.width)/2,b*.67);Z.fillRect(0,0,S,b*.1);
Z.fillRect(0,b*.9,S,b*.1)};T.kJ.a6_=function(Z,S,b,Y){T.kJ.eD(Z,S,b);var P=Z.canvas.width,w=Z.canvas.height,f=Z.getImageData(0,0,P,w);
T.W.Wz(Y.Grad.v,new Uint8Array(f.data.buffer),new b4(0,0,P,w),[1/P,0,0,1/w],P/2,w/2,!1,0,16711680,65280);
Z.putImageData(f,0,0);T.kJ.DM(Z,S,b)};T.kJ.aj6=function(Z,S,b,Y,P){T.kJ.eD(Z,S,b);var w=Z,f=eg.Xl(Y.Ptrn.v,P.add.Patt);
if(f==null)return;var h=f.jL[1];T.kJ.ii(Z,S,b,h,f.jL[0],h,!1);T.kJ.DM(w,S,b)};T.kJ.O5=function(Z,S,b){Z.strokeStyle="#bb0000";
Z.lineWidth=3;Z.beginPath();Z.moveTo(S*.15,b*.15);Z.lineTo(S*.85,b*.85);Z.moveTo(S*.85,b*.15);Z.lineTo(S*.15,b*.85);
Z.closePath();Z.stroke()};T.kJ.O5=function(Z,S,b){Z.strokeStyle="#bb0000";Z.lineWidth=3;Z.beginPath();
Z.moveTo(S*.15,b*.15);Z.lineTo(S*.85,b*.85);Z.moveTo(S*.85,b*.15);Z.lineTo(S*.15,b*.85);Z.closePath();
Z.stroke()};T.kJ.DM=function(Z,S,b){Z.fillStyle="#eeeeee";Z.fillRect(0,b*.75,S,b*.25);Z.beginPath();
Z.moveTo(0,b*.75);Z.lineTo(S,b*.75);Z.moveTo(S*.1,b*.875);Z.lineTo(S*.9,b*.875);Z.moveTo(S*.65,b*.825);
Z.lineTo(S*.65,b*.95);Z.closePath();Z.stroke()};T.kJ.CD=function(Z){var S=T.W.CD(Z),b=Math.round(S.h)<<16|Math.round(S.l)<<8|Math.round(S.O);
return"#"+T.T3(b)};T.Y={};T.Y.bM=function(Z,S,b){var Y=[],P=-1;for(var D=0;D<Z.length;D++){var w=Z[D];
if((w.type==0||w.type==3)&&w.qU!=-1)P++;if(w.type>5||w.type==0||w.type==3)continue;if(S!=null&&S.indexOf(P)==-1)continue;
if(b!=null&&b.indexOf(D)==-1)continue;Y.push(w.hQ.x);Y.push(w.hQ.y);Y.push(w.I.x);Y.push(w.I.y);Y.push(w.e$.x);
Y.push(w.e$.y)}return Y};T.Y.Di=function(Z,S,b,Y){var P=0,w=-1;for(var D=0;D<S.length;D++){var f=S[D];
if((f.type==0||f.type==3)&&f.qU!=-1)w++;if(f.type>5||f.type==0||f.type==3)continue;if(b!=null&&b.indexOf(w)==-1)continue;
if(Y!=null&&Y.indexOf(D)==-1)continue;f.hQ.Ha(Z[P],Z[P+1]);f.I.Ha(Z[P+2],Z[P+3]);f.e$.Ha(Z[P+4],Z[P+5]);
P+=6}};T.Y.$d=function(Z,S,b,Y){var P=T.Y.bM(Z,b,Y);T.z.A(P,S,P);T.Y.Di(P,Z,b,Y)};T.Y.a7M=function(Z,S,b,Y){var P=T.Y.bM(Z,b,Y);
T.J.A(S,P);T.Y.Di(P,Z,b,Y)};T.Y.aa1=function(Z,S,b,Y){if(b==null&&Y==null){var P=T.Y.alD(Z,40);for(var D=0;
D<P.length;D++)Z[D]=P[D]}var w=T.Y.bM(Z,b,Y);T.Ts.A(S,w,T.z.$R(w));T.Y.Di(w,Z,b,Y)};T.Y.alD=function(Z,S){var b=[];
for(var D=0;D<Z.length;D++){var Y=Z[D];if(Y.type>5){b.push(JSON.parse(JSON.stringify(Y)));continue}var P=T.Y.acz(Z,D+1,Y.length);
P=T.z.Xt(P,S);var w=T.Y.agf(P);D+=Y.length;Y=JSON.parse(JSON.stringify(Y));Y.length=w.length;b.push(Y);
for(var f=0;f<w.length;f++)b.push(w[f])}return b};T.Y.acz=function(Z,S,b){var Y={K:["M"],H:[]},P=Z[S],w=Z[S+b-1];
Y.H.push(P.I.x,P.I.y);for(var D=1;D<b;D++){var f=Z[S+D-1],h=Z[S+D];Y.K.push("C");Y.H.push(f.e$.x,f.e$.y,h.hQ.x,h.hQ.y,h.I.x,h.I.y)}Y.K.push("C");
Y.H.push(w.e$.x,w.e$.y,P.hQ.x,P.hQ.y,P.I.x,P.I.y);return Y};T.Y.agf=function(Z){var S=[],b=Z.K,Y=Z.H,P=0,C=Y.length;
S.push({type:2,hQ:new ar(Y[C-4],Y[C-3]),I:new ar(Y[0],Y[1]),e$:new ar(Y[2],Y[3])});for(var D=0;D<b.length-2;
D++){var w=D*6+4;S.push({type:2,hQ:new ar(Y[w],Y[w+1]),I:new ar(Y[w+2],Y[w+3]),e$:new ar(Y[w+4],Y[w+5])})}return S};
T.Y.anU=function(Z){for(var D=0;D<Z.length;D++){if(Z[D].type>5)continue;var S=Z[D].length;if(!(S==4||S==6||S==8)){D+=S;
continue}for(var b=0;b<S;b++){var Y=Z[D+1+b],P=Z[D+1+(b+1)%S],w=Math.min(Y.I.x,P.I.x),f=Math.min(Y.I.y,P.I.y),h=0,Q=0;
if(Y.I.x<P.I.x){h=Y.I.y-f;Q=h-(P.I.x-w)}else{h=P.I.y-f;Q=h-(Y.I.x-w)}if(Math.abs(Q)<.2*h)return h}}return-1};
T.Y.Al=function(Z,S,b){function Y(m,V){var q=Math.min(m.x,V.x),K=Math.min(m.y,V.y),z=Math.max(m.x+m.c,V.x+V.c),t=Math.max(m.y+m.v,V.y+V.v);
return new b4(q,K,z-q,t-K)}var P=null,w=-1,f=!T.Y.YL(Z);for(var D=0;D<Z.length;D++){var h=Z[D];if(h.type>5)continue;
if((h.type==0||h.type==3)&&h.qU!=-1)w++;if(S!=null&&S.indexOf(w)==-1)continue;if(D==Z.length-1)break;
var Q=h.type==3,e=h.length,l=h.qU,O=T.Y.aeK(Z,D+1,e,Q);if(P==null)P=O;else if(b)P=Y(P,O);else if(f){if(S!=null||l==0||l==-1||l==2)P=Y(P,O);
else if(l==1)P=P;else if(l==3){P=O;f=!1}}else{if(S!=null||l==0||l==-1||l==1)P=Y(P,O);else if(l==2)P=P;
else if(l==3)P=P.Yz(O)}D+=e}if(P==null||P.c<0||P.v<0)P=new b4(0,0,0,0);return P};T.Y.ak0=new Float64Array(4);
T.Y.aeK=function(Z,D,S,b){var Y=T.Y.ak0;Y[0]=1e30;Y[1]=1e30;Y[2]=-1e30;Y[3]=-1e30;var P=Z[D+S-1];if(!b)T.Y.mH(P.I.x,P.I.y,P.e$.x,P.e$.y,Z[D].hQ.x,Z[D].hQ.y,Z[D].I.x,Z[D].I.y,Y);
for(var w=D;w<D+S-1;w++){var f=Z[w],h=Z[w+1];T.Y.mH(f.I.x,f.I.y,f.e$.x,f.e$.y,h.hQ.x,h.hQ.y,h.I.x,h.I.y,Y)}return new b4(Y[0],Y[1],Y[2]-Y[0],Y[3]-Y[1])};
T.Y.mH=function(Z,S,b,Y,P,w,f,h,Q){if(Z==b&&S==Y&&P==f&&w==h){Q[0]=Math.min(Q[0],Math.min(Z,f));Q[1]=Math.min(Q[1],Math.min(S,h));
Q[2]=Math.max(Q[2],Math.max(Z,f));Q[3]=Math.max(Q[3],Math.max(S,h));return}var e=Z,l=S,O=Z,m=S,V=40,q=1/(V-1);
for(var K=0;K<V;K++){var z=K*q,t=1-z,H=t*t*t,i=3*t*t*z,y=3*t*z*z,j=z*z*z,J=H*Z+i*b+y*P+j*f,A=H*S+i*Y+y*w+j*h;
if(J<e)e=J;else if(J>O)O=J;if(A<l)l=A;else if(A>m)m=A}if(e<Q[0])Q[0]=e;if(l<Q[1])Q[1]=l;if(O>Q[2])Q[2]=O;
if(m>Q[3])Q[3]=m};T.Y.nt=function(Z,S){var b=Z.length-3,Y=S%b,P=Math.floor(Y);if(S<0||P>=b)return null;
var w=Z[3+P],f=Z[3+(P+1)%b],h=w.I,Q=w.e$,e=f.hQ,l=f.I,O=Y-P,m=1-O,V=m*m*m*h.x+3*m*m*O*Q.x+3*m*O*O*e.x+O*O*O*l.x,q=m*m*m*h.y+3*m*m*O*Q.y+3*m*O*O*e.y+O*O*O*l.y;
return new ar(V,q)};T.Y.W6=function(Z){var S=2,b=T.Y.eu(Z),Y=!1;for(var D=2;D<Z.length;D++){var P=Z[D].qU;
if(P!=null){if(P==2||P==0||P==3)Y=!0}}if(Y&&Z.length<15e3&&b>1)Z=T.Y.zt(Z);var w=T.z.o5(Z);return{ahU:Typr.U.pathToSVG({crds:w.H,cmds:w.K},S),bC:Y?1:0}};
T.Y.zt=function(Z){T.Y.se();var S,b=T.Y.gq(Z),Y=[];for(var D=0;D<b.length;D++){var P=b[D][0],w=b[D][1];
if(Math.abs(P.area)<1e-5)Y.push(P);else if(S==null)S=P;else{if(!P.closed)P.closed=!0;S=S[w](P);S.remove()}}if(S==null)S=new paper.CompoundPath(Y);
else{if(S.segments)S=new paper.CompoundPath(S);for(var D=0;D<Y.length;D++){S.addChild(Y[D])}}var f=Z.slice(0,2);
f=f.concat(T.Y.C5(S));if(f[2])f[2].qU=1;for(var D=3;D<f.length;D++)if(f[D].qU!=null)f[D].qU=-1;return f};
T.Y.se=function(){if(T.Y.ao4==null){var Z=s.R("canvas");paper.setup(Z);T.Y.ao4=!0}};T.Y.aes=function(Z,S){T.Y.se();
var b=[],Y=T.Y.gq(Z),P=new paper.Path.Rectangle(new paper.Rectangle(S.x,S.y,S.c,S.v));P.remove();P.fillColor=new paper.Color(1,0,0);
for(var D=0;D<Y.length;D++){if(P.intersects(Y[D][0])||P.contains(Y[D][0].children[0].segments[0].point))b.push(D)}return b};
T.Y.eI=function(Z,S,b,Y){T.Y.se();var P=b?{curves:!0,tolerance:Y}:null,w=new paper.Point(S.x,S.y),f=T.Y.gq(Z);
for(var D=f.length-1;D>=0;D--){var h=f[D][0],Q=h.hitTest(w,P);if(Q!=null)return{SU:D,Rs:b?Q.location.index:null}}return{SU:-1}};
T.Y.D7=function(Z,S,b){var Y=[[],[],[]];for(var D=0;D<Z.length;D++){var P=Z[D];if(P.type>5||P.type==0||P.type==3)continue;
var w=b==null?!0:b.indexOf(D)!=-1;if(S.DS(P.I))Y[0].push(D);if(S.DS(P.hQ)&&w)Y[1].push(D);if(S.DS(P.e$)&&w)Y[2].push(D)}return Y};
T.Y.ae4=function(Z,S,b){var Y=b.slice(0),P=[null,null],w=-1,h=null;for(var D=2;D<Z.length;D++){if((Z[D].type==0||Z[D].type==3)&&Z[D].qU!=-1)w++;
P[D]=b[w]}b=P;var f=Z.slice(0,2);P=b.slice(0,2);for(var D=2;D<Z.length;D++){if(Z[D].type==0||Z[D].type==3){h=Z[D];
f.push(h);P.push(b[D])}else{if(S.indexOf(D)==-1){f.push(Z[D]);P.push(b[D])}else{h.length--;T.AZ.QK(b,D)}}}for(var D=2;
D<f.length;D++){var Q=f[D];if(Q.type!=0&&Q.type!=3)continue;if(Q.length==0){if(f[D+1]&&f[D+1].qU==-1){f[D+1].qU=Q.qU}P.splice(D,1);
f.splice(D,1);D--}}for(var D=0;D<Y.length;D++)if(P.indexOf(Y[D])==-1){Y.splice(D,1);D--}return f};T.Y.ajz=function(Z,S){var b=Z.slice(0,2),Y=-1;
for(var D=2;D<Z.length;D++){if((Z[D].type==0||Z[D].type==3)&&Z[D].qU!=-1)Y++;if(S.indexOf(Y)==-1)b.push(Z[D])}return b};
T.Y.amq=function(Z,S){var b=Z.slice(0,2),Y=-1;for(var D=2;D<Z.length;D++){if((Z[D].type==0||Z[D].type==3)&&Z[D].qU!=-1)Y++;
if(S.indexOf(Y)!=-1)b.push(Z[D])}return b};T.Y.aky=function(Z){var S=0;for(var D=0;D<Z.length;D++)if(Z[D].type==0||Z[D].type==3)S=D;
return Z[S]};T.Y.eu=function(Z){var S=-1;for(var D=0;D<Z.length;D++)if((Z[D].type==0||Z[D].type==3)&&Z[D].qU!=-1)S++;
return S+1};T.Y.dq=function(Z,S,b){var Y=-1;for(var D=0;D<Z.length;D++)if((Z[D].type==0||Z[D].type==3)&&(b||Z[D].qU!=-1)){Y++;
if(Y==S)return D}return-1};T.Y.tG=function(Z,S,b){var Y=-1;for(var D=0;D<Z.length;D++)if((Z[D].type==0||Z[D].type==3)&&(b||Z[D].qU!=-1)){if(D>=S)return Y;
Y++}return Y};T.Y.HV=function(Z,S){var b=-1,Y=0;for(var D=0;D<Z.length;D++){if((Z[D].type==0||Z[D].type==3)&&Z[D].qU!=-1)b++;
if(b==S)Y++}return Y};T.Y.abi=function(Z){var S=180;for(var D=0;D<Z.length;D++){if(Z[D].type!=0&&Z[D].type!=3)continue;
var b=Z[D].length;if(b<3)continue;for(var Y=0;Y<b;Y++){var P=Z[D+1+(Y-1+b)%b],w=Z[D+1+Y],f=Z[D+1+(Y+1)%b],h=w.I,Q=w.hQ.Oh(h)?P.e$:w.hQ,e=w.e$.Oh(h)?f.hQ:w.e$;
if(h.Oh(Q)||h.Oh(e))continue;var l=Q.x-h.x,O=Q.y-h.y,m=e.x-h.x,V=e.y-h.y,Q=Math.atan2(Q.y-h.y,Q.x-h.x)*180/Math.PI,e=Math.atan2(e.y-h.y,e.x-h.x)*180/Math.PI,q=Math.abs(e-Q)%360,K=q>180?360-q:q;
if(K<S)S=K}}return S*Math.PI/180};T.Y.C5=function(Z){var S=Z.segments?[Z]:Z.children,b=[];for(var D=0;
D<S.length;D++){var Y=S[D],P=Y.segments,w=Y.closed?0:3,f=b.length,h=null;if(P.length<=1)continue;b.push({type:w,length:P.length,qU:0,oY:2});
for(var Q=0;Q<P.length;Q++){var e=P[Q],l=new ar(e.handleIn.x,e.handleIn.y),O=new ar(e.handleOut.x,e.handleOut.y),m=new ar(e.point.x,e.point.y),V={type:w+1,hQ:m.add(l),I:m,e$:m.add(O)};
if(h==null)h=V;b.push(V);if(Q+1==P.length&&ar.VA(h.I,V.I)<1e-5){b.pop();b[f].length--;h.hQ=V.hQ;if(w==3)for(var q=f;
q<b.length;q++)b[q].type-=3}}}return b};T.Y.gq=function(Z){T.Y.se();var S=[],b,Y=new paper.Color(1,0,0);
function P(V,h){V.remove();V.closed=!h;V.fillRule="evenodd"}for(var D=0;D<Z.length;D++){if(Z[D].type>5)continue;
var w=Z[D].length,f;if(D==Z.length-1)break;var h=Z[D].type==3;if(D==2){if(!T.Y.eC(Z))f="subtract";else f="unite"}else{if(Z[D].qU==0)f="exclude";
if(Z[D].qU==1)f="unite";if(Z[D].qU==2)f="subtract";if(Z[D].qU==3)f="intersect"}if(Z[D].qU!=-1){b=new paper.CompoundPath;
S.push([b,f]);b.fillRule="evenodd";b.fillColor=Y}var Q=[];for(var e=0;e<w;e++){var l=Z[D+1+e],O=l.hQ.jZ(l.I),m=l.e$.jZ(l.I);
Q.push([[l.I.x,l.I.y],[O.x,O.y],[m.x,m.y]])}var V=new paper.Path(Q);P(V,h);b.addChild(V);D+=w}return S};
T.Y.ga=function(Z){for(var D=0;D<Z.length;D++){var S=Z[D];if(S.I==null)continue;if(!S.I.Oh(S.hQ)||!S.I.Oh(S.e$))return!1}return!0};
T.Y.a7s=function(Z){if(Z.length<=5)return 0;var S=0,b=Z.length-3-1;for(var D=0;D<b;D++){var Y=Z[3+D],P=Z[3+D+1];
if(Y.type==0||P.type==0)return 0;S+=(P.I.x-Y.I.x)*(Y.I.y+P.I.y)}S+=(Z[3].I.x-Z[3+b].I.x)*(Z[3+b].I.y+Z[3+1].I.y);
return-S*.5};T.Y.YL=function(Z){var S=Z[2],b=!1;if(Z.length==2)b=Z[1].all==0;else if(Z[1].all==1){if(S.qU==1||S.qU==3)b=!0;
else b=!1}else{if(S.qU==1||S.qU==3||S.qU==0)b=!0;else b=!1}return b};T.Y.eC=function(Z){var S=T.Y.YL(Z);
for(var D=3;D<Z.length;D++)if(Z[D].qU==3)S=!0;return S};T.Y.ame=0;T.Y.mn=0;T.Y.aek=0;T.Y.a7y=function(Z,S,b,Y){if(b.h3())return;
var P=b.X(),t=16384;T.Y.ame+=P;if(P>T.Y.mn){T.Y.mn=P}var w=b.c,f=b.v;if(Y==null&&T.Y.ga(Z)){var h=!0;
for(var D=2;D<Z.length;)if(Z[D].length==2)D+=3;else{h=!1;break}if(h){return}if(T.Y.sQ(Z)){S.fill(255);
var Q=T.Y.Al(Z);if(Q.X()!=P){var e=1-(Q.x-b.x),l=1-(Q.y-b.y),O=1-(b.x+b.c-(Q.x+Q.c)),m=1-(b.x+b.v-(Q.x+Q.v)),V=~~(e*255),q=~~(O*255),K=~~(l*255),z=~~(m*255);
S.fill(K,0,w);S[0]=~~(e*l*255);S[w-1]=~~(O*l*255);for(var D=w;D<P;D+=w){S[D]=V;S[D+w-1]=q}S.fill(z,(f-1)*w,f*w);
S[P-w]=~~(e*m*255);S[P-1]=~~(O*m*255)}return}}var H=Math.ceil(w/t),i=Math.ceil(f/t),y=Math.ceil(w/H),j=Math.ceil(f/i),J=Date.now();
for(var A=0;A<i;A++)for(var a=0;a<H;a++){var I=a*y,E=A*j,c=y,u=j,n=T.bo(c,u);if(!T.Y.YL(Z))n.fillRect(0,0,c,u);
T.Y.Vs(Z,n,-b.x-I,-b.y-E,Y);var o=new Uint8Array(n.getImageData(0,0,c,u).data.buffer);if(c==w&&u==f)T.to(o,S,3);
else T.Q6(o,new b4(I,E,c,u),S,new b4(0,0,w,f))}};T.Y.Vs=function(Z,S,b,Y,P){if(P!=null&&P.fillEnabled.v){var w=!1,f=!1,h=0;
for(var D=0;D<Z.length;D++){var Q=Z[D].qU;if(Q!=null)h++;if(Q==-1)w=!0;if(Q>0)f=!0}if(!w&&h<20)Z=T.Y.zt(Z)}for(var D=0;
D<Z.length;D++){if(Z[D].type>5)continue;var e=Z[D].length;if(e==0)continue;if(D==Z.length-1)break;var l=Z[D].type==3,Q=Z[D].qU;
if(Q!=-1&&P==null){var O=["xor","source-over","destination-out","source-in"][Q];S.globalCompositeOperation=O}if(Z[D].qU!=-1){S.beginPath();
if(P){var m=P.strokeStyleLineWidth.v.val,V=P.strokeStyleLineAlignment.v.strokeStyleLineAlignment,q=P.strokeStyleLineCapType.v.strokeStyleLineCapType,K=P.strokeStyleLineJoinType.v.strokeStyleLineJoinType,z=P.strokeStyleMiterLimit.v,t=[],H=P.strokeStyleLineDashSet.v;
for(var i=0;i<H.length;i++)t.push(H[i].v.val*m);S.setLineDash(t);S.lineCap=["butt","round","square"][a4.m3.oV.indexOf(q)];
S.lineJoin=["miter","round","bevel"][a4.m3.join.indexOf(K)];S.lineWidth=a4.m3.ie.indexOf(V)==1?m:m*=2;
S.miterLimit=z}}T.Y.aev(S,Z,D+1,e,b,Y,l);if(l){}else S.closePath();if(Z[D+1+e]==null||Z[D+1+e].qU!=-1){if(P)S.stroke();
else S.fill("evenodd")}D+=e}S.globalCompositeOperation="source-over"};T.Y.aev=function(Z,S,D,b,Y,P,w){var f=S[D],h=null;
Z.moveTo(f.I.x+Y,f.I.y+P);for(var Q=D;Q<D+b-1;Q++){f=S[Q];h=S[Q+1];Z.bezierCurveTo(f.e$.x+Y,f.e$.y+P,h.hQ.x+Y,h.hQ.y+P,h.I.x+Y,h.I.y+P)}if(!w){f=S[Q];
h=S[D];Z.bezierCurveTo(f.e$.x+Y,f.e$.y+P,h.hQ.x+Y,h.hQ.y+P,h.I.x+Y,h.I.y+P)}};T.Y.Sb=function(Z,S,b){var Y=[],P=b?4:1,w=!1;
if(S!=null)for(var D=0;D<S.length;D++)if(S[D]!=0){w=!0;break}if(S!=null&&w){var f=T.z.amN(Z,S),h=f.length/6;
for(var D=0;D<h;D++){var Q=D*6,e=(D-1+h)%h*6,l=f[Q],O=f[Q+1],m=f[Q+2],V=f[Q+3],q=f[e+4],K=f[e+5];Y.push({type:P,hQ:new ar(q,K),I:new ar(l,O),e$:new ar(m,V)})}}else{for(var D=0;
D<Z.length;D+=2){var z=new ar(Z[D],Z[D+1]);Y.push({type:P,hQ:z.clone(),I:z.clone(),e$:z.clone()})}}return Y};
T.Y.jx=function(Z,S){T.Y.se();var b=new paper.Path;b.remove();var Y=Z.length-1,P=Math.sqrt((Z[Y-1]-Z[0])*(Z[Y-1]-Z[0])+(Z[Y]-Z[1])*(Z[Y]-Z[1]))<3;
b.closed=P;for(var D=0;D<Z.length;D+=2)b.add(new paper.Point(Z[D],Z[D+1]));b.simplify(S);var w=[{type:6},{type:8,all:0}];
w=w.concat(T.Y.C5(b));return w};T.Y.ns=function(Z,S,b){var Y=Z[S].length,P=Z[S].type,w=0,f=Z.slice(S+1,S+1+Y);
for(var D=0;D<Y;D++){var h=b[(D-1+Y)%Y],Q=b[(D+1+Y)%Y],e=b[D];if(e!=0){var l=f[(D-1+Y)%Y].I,O=f[(D+0+Y)%Y].I,m=f[(D+1+Y)%Y].I,V=ar.VA(O,l),q=ar.VA(O,m),K=T.z.dQ(l.x,l.y,O.x,O.y,m.x,m.y,e)[0],z=Math.min(K,h==0?V:V/2,Q==0?q:q/2);
e*=z/K;var t=T.z.Rb(l.x,l.y,O.x,O.y,m.x,m.y,e),H={type:P+1,hQ:new ar(t[2],t[3]),I:new ar(t[2],t[3]),e$:new ar(t[4],t[5])},i={type:P+1,hQ:new ar(t[6],t[7]),I:new ar(t[8],t[9]),e$:new ar(t[8],t[9])};
Z.splice(S+w+1,1,H,i);w++;Z[S].length++}w++}};T.Y.ga=function(Z){for(var D=0;D<Z.length;D++){var S=Z[D],b=S.type;
if(b==1||b==2||b==4||b==5)if(!S.I.Oh(S.hQ)||!S.I.Oh(S.e$))return!1}return!0};T.Y.sQ=function(Z){if(Z.length!=7||!T.Y.ga(Z))return!1;
for(var D=0;D<4;D++){var S=!0;for(var b=0;b<4;b++){var Y=Z[3+(D+b&3)],P=Z[3+(D+b+1&3)];if(Y.I.x!=P.I.x&&Y.I.y!=P.I.y)S=!1}if(S)return!0}return!1};
T.Y.i9={};T.Y.i9.ng=function(Z,S,b){var Y=[{type:6},{type:8,all:0}],P=null;Y.push({type:b?3:0,qU:1,length:0,uT:0,Y9:0,oY:1});
if(S==0)P==null;else if(S instanceof Array)P=S;else{P=[];for(var D=0;D<Z.length;D+=2)P.push(S)}Y=Y.concat(T.Y.Sb(Z,P,b));
Y[2].length=Y.length-3;return Y};T.Y.i9.aeU=function(Z,S,b,Y,P){var w=[],f=[],h=.553,Q=1,e=-1;w.push({type:1,hQ:new ar(0,h),I:new ar(0,0),e$:new ar(0,-h)});
P+=2;for(var D=0;D<P;D++){var l={type:1};if(D==0){l.I=new ar(1,-1);l.hQ=new ar(1-h,-1);l.e$=new ar(1+h,-1)}else{var O=-(D+2)*Math.PI/2,m=1+((D&1)==1?D-1:D),V=Math.sin(O),q=Math.cos(O);
Q+=m*(V-q);e+=m*(q+V);l.I=new ar(Q,e);l.hQ=new ar(Q+m*q*h,e-m*V*h);if((D&1)==1)m+=2;l.e$=new ar(Q-m*q*h,e+m*V*h)}var K={type:1,hQ:new ar(-l.e$.x,-l.e$.y),I:new ar(-l.I.x,-l.I.y),e$:new ar(-l.hQ.x,-l.hQ.y)};
w.push(l);if(D<P-2)f.push(K)}f.reverse();w=w.concat(f);var z=[{type:6},{type:8,all:0}];z.push({type:0,qU:1,length:w.length,uT:0,Y9:0,oY:1});
z=z.concat(w);var t=new fR(b/P,0,0,b/P,0,0);t.rotate(Y);t.translate(Z,S);T.Y.$d(z,t);return z};T.Y.i9.Rect=function(Z,S,b,Y,P){var w=[Z,S,Z+b,S,Z+b,S+Y,Z,S+Y];
return T.Y.i9.ng(w,P)};T.Y.i9.Fm=function(Z,S,b,Y,P,w){var f=[],h=2*Math.PI/P;for(var D=0;D<P;D++)f.push(Math.cos(D*h),Math.sin(D*h));
var Q=new fR(b,0,0,b,0,0);Q.rotate(Y);Q.translate(Z,S);T.z.A(f,Q,f);return T.Y.i9.ng(f,w)};T.Y.i9.amw=function(Z,S,b,Y,P,w,f){var h=[],Q=Math.PI/P;
for(var D=0;D<P*2;D++){var e=(D&1)==0?1:f;h.push(e*Math.cos(D*Q),e*Math.sin(D*Q))}var l=new fR(b,0,0,b,0,0);
l.rotate(Y);l.translate(Z,S);T.z.A(h,l,h);return T.Y.i9.ng(h,w)};T.Y.i9.kA=function(Z,S,b,Y,P){return T.Y.i9.ND(0,Z,S,b,Y,P)};
T.Y.i9.ait=function(Z,S,b,Y,P,w){return T.Y.i9.ND(1,Z,S,b,Y,P,w)};T.Y.i9.ND=function(Z,S,b,Y,P,w,f){var h=Math.sqrt((Y-S)*(Y-S)+(P-b)*(P-b)),Q;
w/=2;if(Z==0)Q=[-w,0,w,0,w,h,-w,h];else{var e=w*2*f*1.3/1.5,l=w*f;Q=[-w,0,w,0,w,h-e,l,h-e,0,h,-l,h-e,-w,h-e]}var O=new fR(1,0,0,1,0,0);
O.rotate(Math.atan2(-P+b,Y-S)+Math.PI/2);O.translate(S,b);T.z.A(Q,O,Q);return T.Y.i9.ng(Q,0)};T.Y.i9.TN=function(Z,S,b,Y){var P=[{type:6},{type:8,all:0}],O=.553;
P.push({type:0,qU:1,length:4,uT:0,Y9:0,oY:1});var w=Z,f=S,h=Z+b,Q=S+Y,Z=(w+h)/2,S=(f+Q)/2,e=(w-h)/2,l=(f-Q)/2;
P.push({type:1,hQ:new ar(Z-O*e,S-l),I:new ar(Z,S-l),e$:new ar(Z+O*e,S-l)});P.push({type:1,hQ:new ar(Z+e,S-O*l),I:new ar(Z+e,S),e$:new ar(Z+e,S+O*l)});
P.push({type:1,hQ:new ar(Z+O*e,S+l),I:new ar(Z,S+l),e$:new ar(Z-O*e,S+l)});P.push({type:1,hQ:new ar(Z-e,S+O*l),I:new ar(Z-e,S),e$:new ar(Z-e,S-O*l)});
return P};T.Y.i9.ahp=function(Z,S,b,Y,P){var w=[{type:6},{type:8,all:0}];w.push({type:3,qU:1,length:5,uT:0,Y9:0,oY:1});
var f=(P-Y)/4;for(var D=0;D<5;D++){var h=D*f,Q=Math.cos(h),e=Math.sin(h),l=.553*(f/(Math.PI/2)),O=e*l,m=-Q*l,V=new ar(Q,e);
w.push({type:4,hQ:D==0?V.clone():new ar(Q+O,e+m),I:V,e$:D==4?V.clone():new ar(Q-O,e-m)})}var q=new fR;
q.rotate(-Y);q.scale(b,b);q.translate(Z,S);T.Y.$d(w,q);return w};T.$e={};T.$e.type={warpNone:[22,5,0],warpCustom:[22,5,16],warpArc:[22,5,1],warpArcLower:[22,5,2],warpArcUpper:[22,5,3],warpArch:[22,5,4],warpBulge:[22,5,5],warpShellLower:[22,5,6],warpShellUpper:[22,5,7],warpFlag:[22,5,8],warpWave:[22,5,9],warpFish:[22,5,10],warpRise:[22,5,11],warpFisheye:[22,5,12],warpInflate:[22,5,13],warpSqueeze:[22,5,14],warpTwist:[22,5,15]};
T.$e.iI=function(Z){var S=Z.warpStyle.v.warpStyle;if(S=="warpNone")return!0;else if(S=="warpCustom"){var b=!1,Y=Z.customEnvelopeWarp.v.meshPoints.v.arr,P=Y[0].arr,w=Y[1].arr;
for(var D=0;D<4;D++)for(var f=0;f<4;f++){if(Math.abs(P[D]-P[f*4+D])>1||Math.abs(w[D*4]-w[D*4+f])>1)b=!0}return!b}else return Z.warpValue.v==0&&Z.warpPerspective.v==0&&Z.warpPerspectiveOther.v==0};
T.$e.f=function(Z){var S={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"}}};
if(Z){S.bounds={t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:Z.y}},Left:{t:"UntF",v:{type:"#Pxl",val:Z.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:Z.y+Z.v}},Rght:{t:"UntF",v:{type:"#Pxl",val:Z.x+Z.c}}}};
S.uOrder={t:"long",v:4};S.vOrder={t:"long",v:4}}return S};T.$e.a4h=function(Z,S,b,Y){for(var D=0;D<Z.length;
D+=2){var P=Z[D],w=Z[D+1],f=(P-S.x)/S.c,h=(w-S.y)/S.v,Q=(1-b)/2,e=1-Q,l=Q+f*(e-Q);h=.5+(h-.5)*l*2;var O=(1-Y)/2,m=1-O,V=O+h*(m-O);
f=.5+(f-.5)*V*2;P=S.x+f*S.c;w=S.y+h*S.v;Z[D]=P;Z[D+1]=w}};T.$e.bG=function(Z,S){var b=[],Y=[];for(var D=0;
D<Z.length;D+=2){b.push(Z[D]);Y.push(Z[D+1])}var P=[];P.push({id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:b});
P.push({id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:Y});S.warpStyle.v.warpStyle="warpCustom";S.customEnvelopeWarp={t:"Objc",v:{classID:"customEnvelopeWarp",meshPoints:{t:"ObAr",v:{classID:"rationalPoint",arr:P}}}}};
T.$e.dm=function(Z,S){if(S==null){var b=Z.bounds.v,Y=b.Left.v.val,P=b.Rght.v.val,w=b.Top.v.val,f=b.Btom.v.val;
S=new b4(Y,w,P-Y,f-w)}if(S.h3())S.c=S.v=1;var h=[],Q=Z.warpStyle.v.warpStyle;if(Q=="warpCustom"){var e=Z.customEnvelopeWarp.v.meshPoints.v.arr,l=e[0].arr,O=e[1].arr;
for(var D=0;D<16;D++)h.push(l[D],O[D])}else h=T.$e.$e(S,Q,Z.warpRotate.v.Ornt=="Hrzn",Z.warpValue.v/100,Z.warpPerspective.v/100,Z.warpPerspectiveOther.v/100);
return h};T.$e.$e=function(Z,S,b,Y,P,w){var f=T.Ts.f(Z.x,Z.y,Z.c,Z.v);if(S=="warpNone")return f;var h=JSON.parse(JSON.stringify(Z)),Q=new fR;
if(!b){Q.translate(-Z.x,-Z.y);Q.rotate(-Math.PI/2);Q.translate(Z.v,0);T.z.A(f,Q,f);Z=new b4(0,0,Z.v,Z.c);
f=T.Ts.Mx(f,!1)}T.$e.a7p(f,Z,S,Y,P,w);if(!b){f=T.Ts.Mx(f,!0);Z=h;Q.oN();T.z.A(f,Q,f)}if(Y==0)T.$e.a4h(f,Z,P,w);
else{var Q=new fR(1/Z.c,0,0,1/Z.v,-Z.x,-Z.y);Q.translate(-.5,-.5);T.z.A(f,Q,f);T.$e.a4l(f,w,P);Q.oN();
T.z.A(f,Q,f)}return f};T.$e.a7p=function(Z,S,b,Y,P,w){for(var D=0;D<4;D++){for(var f=0;f<4;f++){var h=2*(4*D+f),Q=Z[h]-S.x,e=Z[h+1]-S.y,l=Q,O=e;
if(Y!=0){var m=S.c/2,V=S.v/2;l-=m;O-=V;var q=l,K=l,z=-V,t=V,H=Math.abs(Y),i=Math.tan((1-H)*Math.PI/2),y=Math.sqrt(i*i+1),j=Math.atan2(1,i),J=l/m*j,A=m*y,a=m*y+S.v,I=Math.cos(j),E=Math.sin(j),c=T.$e.afZ(I,E),u=T.$e.a3x(I,E),n=-i*m+c*A;
if(b=="warpArc"){q=Math.sin(J)*a;z=i*m-Math.cos(j)*a+V;K=Math.sin(J)*A;t=i*m-Math.cos(j)*A+V;if(f==1||f==2){q=f==1?-u*a:u*a;
K=f==1?-u*A:u*A;z=i*m+V-c*a;t=i*m+V-c*A}if(Y<0){var o=q;q=K;K=o;o=z;z=-t;t=-o}}if(b=="warpArcLower"){if(f==1||f==2){K=f==1?-u*A:u*A;
t=Y<0?V-n:V+n}}if(b=="warpArcUpper"||b=="warpArch"||b=="warpBulge"){if(f==1||f==2){q=f==1?-u*A:u*A;z=Y<0?-V+n:-V-n}if(b=="warpArch"){K=q;
t=z+2*V}if(b=="warpBulge"){K=q;t=-z}}if(b=="warpFish"||b=="warpFlag"||b=="warpWave"){if(f==1){z-=Y*4*V;
t+=Y*4*V}if(f==2){z+=Y*4*V;t-=Y*4*V}if(b=="warpFlag"||b=="warpWave")z=t-2*V}if(b=="warpRise"){if(f<2)z=-V+Y*V*4;
t=z+2*V}var x=(O+V)/S.v;l=q+x*(K-q);O=z+x*(t-z);if(b=="warpWave"){if(D==0)O=-V;if(D==3)O=V;if(D==1||D==2)O=2*V*(D/3-.5)*(1/3)+O*(2/3)}if(b=="warpFisheye"){if((D==1||D==2)&&(f==1||f==2)){l=l+4*l*Y;
O=O+4*O*Y}}if(b=="warpInflate"){var g=2/3;if((D==1||D==2)&&(f==1||f==2)){l=l+.5*l*Y;O=O+.5*O*Y}else if(D==1||D==2)l=l+g*l*Y;
else if(f==1||f==2)O=O+g*O*Y}if(b=="warpSqueeze"){var g=2/3;if((D==1||D==2)&&(f==1||f==2)){if(Y>0)l=l-g*l*Y;
else O=O+g*O*Y}else if(D==1||D==2)l=l-g*l*Y;else if(f==1||f==2)O=O+g*O*Y}if(b=="warpTwist"){if((D==1||D==2)&&(f==1||f==2)){var v=Y*Math.PI/2,y=1+Math.abs(Y)*2,R=l*Math.cos(v)-O*Math.sin(v),X=l*Math.sin(v)+O*Math.cos(v);
l=R*y;O=X*y}}if(b=="warpShellLower"||b=="warpShellUpper"){if(b=="warpShellUpper"){D=3-D;O=-O}if(D>2||D==2&&(f==0||f==3)){if(Y>0){var B=A+D/3*2*V;
l=Math.sin(J)*B;O=-i*m-V+Math.cos(J)*B;if(f==1||f==2){l=f==1?-u*B:u*B;O=-i*m-V+c*B}}else{if((f==1||f==2)&&D==3){l=f==1?-u*A:u*A;
O=i*m-c*A+V}else if(D==2){O=V-V*(2/3)*Math.cos(J);l=l+V*(2/3)*Math.sin(J)}}}if(b=="warpShellUpper"){D=3-D;
O=-O}}l+=m;O+=V}Q=l,e=O;Z[h]=Q+S.x;Z[h+1]=e+S.y}}};T.$e.a4l=function(Z,S,b){var Y=[];for(var P=0;P<4;
P++)Y.push(1-b+P/3*2*b);var w=[];for(var P=0;P<4;P++)w.push(1-S+P/3*2*S);var f=[0,0,0,0],h=[0,0,0,0];
for(var D=0;D<4;D++)for(var P=0;P<4;P++){var Q=2*(4*D+P),e=Z[Q],l=Z[Q+1];f[P]+=e/4;h[P]+=l/4}for(var D=0;
D<4;D++)for(var P=0;P<4;P++){var O=Y[P],Q=2*(4*D+P),e=Z[Q],l=Z[Q+1],m=f[P],V=h[P];Z[Q]=m+O*(e-m);Z[Q+1]=V+O*(l-V)}var q=Z.slice(0);
for(var D=0;D<4;D++)for(var P=1;P<3;P++){var Q=2*(4*D+P),e=Z[Q],l=Z[Q+1],K=Q+(P==1?-2:2),z=Z[K],t=Z[K+1];
Z[Q]=e-z;Z[Q+1]=l-t}var H=Z[0],i=Z[1],y=Z[8],j=Z[9],J=Z[16],A=Z[17],a=Z[24],I=Z[25],E=Z[6],c=Z[7],u=Z[14],n=Z[15],o=Z[22],x=Z[23],g=Z[30],v=Z[31],R=E-H,X=c-i,B=u-y,M=n-j,r=o-J,N=x-A,$=g-a,eQ=v-I;
for(var D=0;D<4;D++){var hN=2*D*4,bI=0,fq=0,e9=D==1?.33:.66,W=1-e9;if(D==0){bI=R;fq=X}if(D==1){bI=W*R+e9*-$;
fq=W*X+e9*-eQ}if(D==2){bI=W*R+e9*-$;fq=W*X+e9*-eQ}if(D==3){bI=-$;fq=-eQ}Z[hN]=Z[hN]+bI/2;Z[hN+1]=Z[hN+1]+fq/2;
Z[hN+6]=Z[hN+6]-bI/2;Z[hN+7]=Z[hN+7]-fq/2}for(var D=0;D<4;D++)for(var P=1;P<3;P++){var Q=2*(4*D+P),e=Z[Q],l=Z[Q+1],K=Q+(P==1?-2:2),z=Z[K],t=Z[K+1],O=2*D/3;
Z[Q]=z+O*e;Z[Q+1]=t+O*l}for(var D=1;D<3;D++)for(var P=1;P<3;P++){var Q=2*(4*D+P),e=Z[Q],l=Z[Q+1],L=D==1?-8:-16,bd=D==1?16:8,iw=Z[Q+L],d7=Z[Q+L+1],d0=Z[Q+bd],gS=Z[Q+bd+1],O=D/3;
e=(1-O)*iw+O*d0;l=(1-O)*d7+O*gS;Z[Q]=e;Z[Q+1]=l}T.z.Db(q,Z,Z,S)};T.$e.afZ=function(Z,S){return(4-Z)*(1/3)};
T.$e.a3x=function(Z,S){return(1-Z)*(3-Z)/(3*S)};T.D0={};T.D0.adZ=function(Z,S,b,Y,P,w,f,h,Q,e){for(var l=0;
l<h;l++)for(var O=0;O<f;O++){var m=3*(l*f+O),V=l+w,q=O+P,K=Z[V*S+q];Y[m]=K;Y[m+1]=K;Y[m+2]=K}};T.D0.ds=function(Z,S,b,Y,P,w,f,h,Q,e){var l=[0,1,1/2,1/3,1/4,1/5,1/6,1/7,1/8,1/9],O=1/Q,m=[-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1],V=new Uint32Array(6);
for(var q=0;q<h;q++){for(var K=0;K<f;K++){var z=3*(q*f+K),t=q+w,H=K+P;V[0]=0;V[1]=0;V[2]=0;V[3]=0;V[4]=0;
V[5]=0;for(var D=0;D<16;D+=2){var i=H+m[D],y=t+m[D+1],j=i-Q*~~(i*O),J=y-Q*~~(y*O),A=e[J*Q+j];V[A]+=Z[y*S+i];
V[A+3]++}var i=H,y=t,j=i-Q*~~(i*O),J=y-Q*~~(y*O),A=e[J*Q+j];V[A]=Z[t*S+H];V[A+3]=1;Y[z]=V[0]*l[V[3]];
Y[z+1]=V[1]*l[V[4]];Y[z+2]=V[2]*l[V[5]]}}};T.D0.XG=function(Z,S,b){for(var D=0;D<b;D+=2)Z[S+D]=Z[S+D+1];
S=S+b;for(var D=0;D<b;D+=2)Z[S+D+1]=Z[S+D]};T.D0.dV=function(Z,S,b,Y){for(var D=0;D<Y;D+=2){var P=S+D*b;
Z[P]=Z[P+b];Z[P+b+1]=Z[P+1]}};T.D0.H4=function(Z,S,b,Y,P,w){var f=Y[P],h=Y[P+1],Q=Y[w],e=Y[w+1],l=h+Q>>>1;
Z[S]=Z[S+3]=Z[b]=Z[b+3]=f;Z[S+1]=l;Z[S+4]=h;Z[b+1]=Q;Z[b+4]=l;Z[S+2]=Z[S+5]=Z[b+2]=Z[b+5]=e};T.D0.akK=function(Z,S,b,Y,P,w){var f=w*3;
for(var D=0;D<w;D+=2){var h=S+D,Q=P+D*3;T.D0.H4(Y,Q,Q+f,Z,h,h+b)}};T.D0.ahh=function(Z,S,b,Y,P,w,f){var h=w*3;
for(var D=0;D<f;D+=2){var Q=S+D*b,e=P+D*w*3;T.D0.H4(Y,e,e+h,Z,Q,Q+b)}};T.D0.pB=function(Z,D,S){var b=Z[D-S-S],Y=Z[D-S],P=Z[D-2],w=Z[D-1],f=Z[D],h=Z[D+1],Q=Z[D+2],e=Z[D+S],l=Z[D+S+S],O=Math.abs(Y-e),m=Math.abs(w-h),V=Math.abs(f-b)*2+O,q=Math.abs(f-Q)*2+m,K=Math.abs(f-P)*2+m,z=Math.abs(f-l)*2+O,t=Math.min(V,Math.min(q,Math.min(K,z)));
if(t==V)return Y*3+e+f-b>>2;if(t==q)return h*3+w+f-Q>>2;if(t==K)return w*3+h+f-P>>2;return e*3+Y+f-l>>2};
T.D0.ZM=function(Z,S,b,Y,P){if(Z<S&&S<b||Z>S&&S>b)return~~(.5+Y+(P-Y)*(S-Z)/(b-Z));else return(Y+P>>1)+(S+S-Z-b>>2)};
T.D0.Q5=function(Z,S,D,b){var Y=S[D-b-1],P=S[D-b+1],w=S[D],f=S[D+b-1],h=S[D+b+1],Q=Z[D-b-1],e=Z[D-b+1],l=Z[D],O=Z[D+b-1],m=Z[D+b+1],V=Math.abs(e-O)+Math.abs(Z[D-b-b+2]-l)+Math.abs(l-Z[D+b+b-2])+Math.abs(P-w)+Math.abs(w-f),q=Math.abs(Q-m)+Math.abs(Z[D-b-b-2]-l)+Math.abs(l-Z[D+b+b+2])+Math.abs(Y-w)+Math.abs(w-h);
if(V<q)return T.D0.ZM(P,w,f,e,O);else return T.D0.ZM(Y,w,h,Q,m)};T.D0.qm=function(Z,S,b,Y,P,w){Z[S+0]=b[P];
Z[S+1]=Y[P];Z[S+2]=T.D0.Q5(b,Y,P,w)};T.D0._T=function(Z,S,b,Y,P,w){var f=Y[P];Z[S+0]=T.D0.ZM(Y[P-1],f,Y[P+1],b[P-1],b[P+1]);
Z[S+1]=f;Z[S+2]=T.D0.ZM(Y[P-w],f,Y[P+w],b[P-w],b[P+w])};T.D0.GH=function(Z,S,b,Y,P,w){var f=Y[P];Z[S+0]=T.D0.ZM(Y[P-w],f,Y[P+w],b[P-w],b[P+w]);
Z[S+1]=f;Z[S+2]=T.D0.ZM(Y[P-1],f,Y[P+1],b[P-1],b[P+1])};T.D0.KS=function(Z,S,b,Y,P,w){Z[S+0]=T.D0.Q5(b,Y,P,w);
Z[S+1]=Y[P];Z[S+2]=b[P]};T.D0.anD=function(Z,S,b,Y,P,w,f,h,Q){var e=Date.now(),l=2,O=S-2,m=2;if((P&1)==1){l++;
O--}var V=b-2;if((w&1)==1){m++;V--}if(Q==1||Q==3){l++;O--}var q=Z.slice(0);T.D0.XG(q,0,S);T.D0.dV(q,0,S,b);
T.D0.dV(q,S-2,S,b);T.D0.XG(q,(b-2)*S,S);for(var K=m;K<V;K+=2)for(var z=l;z<O;z+=2){var D=K*S+z,t=T.D0.pB(q,D,S),H=T.D0.pB(q,D+S+1,S);
q[D]=Math.max(0,t);q[D+S+1]=Math.max(0,H)}var i=f,y=h;if(w+h==b){y-=2;T.D0.akK(Z,(b-2)*S+P,S,Y,(h-2)*f*3,f)}if(P+f==S){i-=2;
T.D0.ahh(Z,w*S+P+f-2,S,Y,(f-2)*3,f,h)}if(Q==0)for(var K=0;K<y;K+=2)for(var z=0;z<i;z+=2){var j=(K+w)*S+z+P,J=(K*f+z)*3;
T.D0.qm(Y,J,Z,q,j,S);T.D0._T(Y,J+3,Z,q,j+1,S);j+=S;J+=3*f;T.D0.GH(Y,J,Z,q,j,S);T.D0.KS(Y,J+3,Z,q,j+1,S)}else if(Q==1)for(var K=0;
K<y;K+=2)for(var z=0;z<i;z+=2){var j=(K+w)*S+z+P,J=(K*f+z)*3;T.D0._T(Y,J,Z,q,j,S);T.D0.qm(Y,J+3,Z,q,j+1,S);
j+=S;J+=3*f;T.D0.KS(Y,J,Z,q,j,S);T.D0.GH(Y,J+3,Z,q,j+1,S)}else if(Q==2)for(var K=0;K<y;K+=2)for(var z=0;
z<i;z+=2){var j=(K+w)*S+z+P,J=(K*f+z)*3;T.D0.KS(Y,J,Z,q,j,S);T.D0.GH(Y,J+3,Z,q,j+1,S);j+=S;J+=3*f;T.D0._T(Y,J,Z,q,j,S);
T.D0.qm(Y,J+3,Z,q,j+1,S)}else if(Q==3)for(var K=0;K<y;K+=2)for(var z=0;z<i;z+=2){var j=(K+w)*S+z+P,J=(K*f+z)*3;
T.D0.GH(Y,J,Z,q,j,S);T.D0.KS(Y,J+3,Z,q,j+1,S);j+=S;J+=3*f;T.D0.qm(Y,J,Z,q,j,S);T.D0._T(Y,J+3,Z,q,j+1,S)}};
T.raw={};T.raw.ae8=function(Z){var S=Z.width,b=Z.height,Y=Date.now(),P=T.raw.age(Z),w=0,f=0;T.raw.Od(2,Z,P,S,b);
var h=S,Q=b;if(Z.t50829){var e=Z.t50829;w=e[1];f=e[0];h=e[3];Q=e[2]}if(Z.t50719){var l=Z.t50719;w+=l[0]>>1<<1;
f+=l[1]>>1<<1}if(Z.t50720){var O=Z.t50720;h=w+O[0];Q=f+O[1]}var m=h-w,V=Q-f,q=new Float32Array(m*V*3);
if(Z.t277[0]==1){var K=Z.t33421;if(K==null){T.D0.adZ(P,S,b,q,w,f,m,V)}else if(K.length!=2||K[0]!=2||K[1]!=2){console.log("Unknown CFA pattern size",K);
T.D0.ds(P,S,b,q,w,f,m,V,K[0],Z.t33422)}else{var z=Z.t33422.join(","),t=0;if(z=="0,1,1,2")t=0;else if(z=="1,0,2,1")t=1;
else if(z=="2,1,1,0")t=2;else if(z=="1,2,0,1")t=3;else throw"Unknown CFA pattern "+z;if((m&1)!=0||(V&1)!=0)throw"e";
T.D0.anD(P,S,b,q,w,f,m,V,t)}}else{for(var H=0;H<V;H++)for(var i=0;i<m;i++){var y=((H+f)*S+i+w)*3,j=(H*m+i)*3;
q[j+0]=P[y+0];q[j+1]=P[y+1];q[j+2]=P[y+2]}}var J=q,A=q.length,a=T.raw.aiP(Z),I=1/a;for(var D=0;D<A;D+=3){q[D]=Math.min(1,J[D]*I);
q[D+1]=Math.min(1,J[D+1]*I);q[D+2]=Math.min(1,J[D+2]*I)}T.raw.Od(3,Z,q,m,V);var E=Z.BP,c=m,u=V;if(E==1||E==9){}else{var n=T.raw.I0(E,m,V),j=0;
c=n[0];u=n[1];var o=q.slice(0);for(var H=0;H<u;H++)for(var i=0;i<c;i++){var x=n[2]*i+n[3]*H+n[4],g=n[5]*i+n[6]*H+n[7],y=(g*m+x)*3;
q[j]=o[y];q[j+1]=o[y+1];q[j+2]=o[y+2];j+=3}}return{j$:q,D_:c,H1:u}};T.raw.I0=function(Z,S,b){var Y=S,P=b;
if(!1){}else if(Z==2)return[S,b,-1,0,S-1,0,1,0];else if(Z==3)return[S,b,-1,0,S-1,0,-1,b-1];else if(Z==4)return[S,b,1,0,0,0,-1,b-1];
else if(Z==5)return[b,S,0,1,0,1,0,0];else if(Z==6)return[b,S,0,1,0,-1,0,b-1];else if(Z==8)return[b,S,0,-1,S-1,1,0,0];
else throw"unknown orientation "+Z};T.raw.lk=function(Z,S,b,Y){var P=Z.j$,w=Math.round(P.length/3),f=d5.aoL(Y[0],Y[1]),h=T.raw.ahu(b,f),Q=T.sE.multiply(T.sE.dJ,h),e=Math.pow(2,Y[2]+(b.t50730?b.t50730[0]:0));
Q=T.sE.multiply(Q,T.sE.Tu(e,e,e));var l=b.t50728?b.t50728:[1,1,1],O=[l[1]/l[0],l[2]/l[0],l[0]/l[1],l[2]/l[1],l[0]/l[2],l[1]/l[2]],m=new Float64Array(1e3);
for(var D=0;D<1e3;D++){var V=D*(1/999);V=D==999?1:T.Ur(D*(1/999));V=T.raw.Gu.ai2(V,Y[3]/100);m[D]=V}var q=Date.now();
for(var D=0;D<w;D++){var K=D<<2,z=K-D,t=P[z],H=P[z+1],i=P[z+2];if(H>=.92){var y=Math.min(t,i);if(y==t){H=Math.max(H,O[0]*t);
i=Math.max(i,O[1]*t)}else{t=Math.max(t,O[4]*i);H=Math.max(H,O[5]*i)}}var j=Q[0]*t+Q[1]*H+Q[2]*i,J=Q[4]*t+Q[5]*H+Q[6]*i,A=Q[8]*t+Q[9]*H+Q[10]*i;
if(j<0)j=0;else if(j>1)j=1;if(J<0)J=0;else if(J>1)J=1;if(A<0)A=0;else if(A>1)A=1;j=m[~~(j*999)];J=m[~~(J*999)];
A=m[~~(A*999)];S[K]=~~(.5+j*255);S[K+1]=~~(.5+J*255);S[K+2]=~~(.5+A*255)}};T.raw.Gu={ai2:function(Z,S){var b=.5-.5*Math.cos(Z*3.2),Y=0;
if(S>0){var P=Z*.2;Y=P*Z+(1-P)*b}else{var w=Math.pow(Z,.33);Y=(1-w)*w+w*(Z+(Z-b)*.63)}var f=Math.abs(S);
return f*Y+(1-f)*Z},ag2:function(Z,S){var b=0;if(S>0){var Y=Z*1.47,P=Math.pow(Z,2.4);b=Math.min(1,P*Z+(1-P)*Y)}else{var Y=Z*.68,P=Math.pow(Z,3);
b=P*Z*.5+(1-P)*Y}var w=Math.abs(S);return w*b+(1-w)*Z},ac$:function(Z,S){var b=0;if(S>0){var Y=Math.pow(Z,.3),P=Z;
b=(1-Z)*Y+Z*P}else{var Y=Math.pow(Z,2.5),w=Z,P=Z;b=Math.min(1,(1-w)*Y+w*P)}var f=Math.abs(S);return f*b+(1-f)*Z}};
T.raw.age=function(Z){var S=Z.width,b=Z.height,Y=S*b*Z.t277,P=new Uint16Array(Y),w=null,f=0;T.raw.ad_(Z,P);
T.raw.Od(1,Z,P,S,b);if(Z.t50712){w=Z.t50712;f=w.length-1;if(w[f]>65535)throw"too big values"}var h=T.raw.P0(Z),Q=T.raw.U7(Z);
if(w==null)for(var D=0;D<Y;D++)P[D]=Math.max(0,P[D]-h);else for(var D=0;D<Y;D++){var e=P[D];if(e>f)e=f;
e=w[e];P[D]=Math.max(0,e-h)}return P};T.raw.P0=function(Z){var S=Z.t50714,b=S?S[0]:0,Y=Z.t50715,P=Z.t50716;
if(Y)b+=Y[0][0]/Y[0][1];if(P)b+=P[0][0]/P[0][1];return Math.round(b)};T.raw.U7=function(Z){var S=null,b=0;
if(Z.t50712){S=Z.t50712;b=S.length-1}var Y=Z.t50717?Z.t50717[0]:(1<<Z.t258[0])-1;if(S)Y=Math.min(Y,S[b]);
return Y};T.raw.aiP=function(Z){var S=T.raw.P0(Z),b=T.raw.U7(Z);return b-S};T.raw.ad_=function(Z,S){var b=S.length,Y=Z.data,P=Z.t258[0];
if(P!=16&&P!=14&&P!=12&&P!=10&&P!=8)throw"Unsupported Bits Per Sample:"+P;P=Math.round(Y.length*8/b);
if(P==16&&Z.isLE){T.Bv(Y,S);return}for(var D=0;D<b;D+=2){var w=0,f=0,h=0;if(P==16){w=D<<1;f=Y[w]<<8|Y[w+1];
h=Y[w+2]<<8|Y[w+3]}else if(P==14){var Q=D*14,e=Q>>>3,l=Y[e]<<24|Y[e+1]<<16|Y[e+2]<<8|Y[e+3];if((Q&7)==0){f=l>>>18;
h=l>>>4&16383}else{f=l>>>14&16383;h=l&16383}}else if(P==12){w=D+(D>>>1);f=Y[w]<<4|Y[w+1]>>4;h=(Y[w+1]&15)<<8|Y[w+2]}else if(P==10){var Q=D*10,e=Q>>>3;
if((Q&7)==0){f=(Y[e]<<2|Y[e+1]>>6)&1023;h=(Y[e+1]<<4|Y[e+2]>>4)&1023}else{f=(Y[e]<<6|Y[e+1]>>2)&1023;
h=(Y[e+1]<<8|Y[e+2]>>0)&1023}}else if(P==8){w=D;f=Y[w];h=Y[w+1]}S[D]=f;S[D+1]=h}};T.raw.Od=function(Z,S,b,Y,P){var w=S["t"+[51008,51009,51022][Z-1]],l=0;
if(w==null)return;var f=Y*P,h=k.r,Q=k.j4,e=new Uint8Array(w),bj=k.r(e,l);l+=4;for(var O=0;O<bj;O++){var m=h(e,l);
l+=4;var V=h(e,l);l+=4;var q=h(e,l);l+=4;var K=h(e,l);l+=4;if(!1){}else if(m==1&&Z==3){var z=l,t=h(e,z);
z+=4;var H=Q(e,z);z+=8;var i=Q(e,z);z+=8;var y=Q(e,z);z+=8;var j=Q(e,z);z+=8;var J=Q(e,z);z+=8;var A=Q(e,z);
z+=8;z+=(t-1)*8*6;var a=Q(e,z);z+=8;var I=Q(e,z);z+=8;var E=a*Y,c=I*P,u=Math.max(E,Y-E),n=Math.max(c,P-c),o=Math.sqrt(u*u+n*n),x=1/o,g=b.slice(0);
for(var v=0;v<P;v++)for(var R=0;R<Y;R++){var X=(R+.5-E)*x,B=(v+.5-c)*x,M=X*X+B*B,r=H+i*M+y*(M*M)+j*(M*M)*M,N=J*(2*X*B)+A*(M+2*X*X),$=A*(2*X*B)+J*(M+2*B*B),eQ=~~(E+o*(r*X+N)),hN=~~(c+o*(r*B+$)),bI=(hN*Y+eQ)*3,fq=(v*Y+R)*3;
b[fq]=g[bI];b[fq+1]=g[bI+1];b[fq+2]=g[bI+2]}}else if(m==3&&Z==3){var z=l,e9=Q(e,z);z+=8;var W=Q(e,z);
z+=8;var L=Q(e,z);z+=8;var bd=Q(e,z);z+=8;var iw=Q(e,z);z+=8;var a=Q(e,z);z+=8;var I=Q(e,z);z+=8;var E=a*Y,c=I*P,u=Math.max(E,Y-E),n=Math.max(c,P-c),o=Math.sqrt(u*u+n*n),x=1/o;
for(var v=0;v<P;v++)for(var R=0;R<Y;R++){var X=(R+.5-E)*x,B=(v+.5-c)*x,M=X*X+B*B,d7=1+(e9+(W+(L+(bd+iw*M)*M)*M)*M)*M,fq=(v*Y+R)*3;
b[fq]=d7*b[fq];b[fq+1]=d7*b[fq+1];b[fq+2]=d7*b[fq+2]}}else if(m==4&&Z==1){var z=l,d0=h(e,z);z+=4;var gS=h(e,z);
z+=4;for(var D=0;D<f;D++)if(b[D]==d0)b[D]=b[D-2]+b[D+2]>>1}else if(m==5&&Z==1){var z=l,cf=h(e,z);z+=4;
var cT=h(e,z);z+=4;var fU=h(e,z);z+=4;for(var D=0;D<cT;D++){var dX=h(e,z);z+=4;var g$=h(e,z);z+=4;var D=dX*Y+g$;
b[D]=b[D-2]+b[D+2]>>1}}else if(m==7&&Z==1){var z=l,bX=k.TD(e,z);z+=16;var aw=h(e,z);z+=4;var hP=h(e,z);
z+=4;var eG=h(e,z),eB=h(e,z+4);z+=8;var bb=h(e,z);z+=4;var gx=new Uint16Array(bb);for(var D=0;D<bb;D++)gx[D]=k.gU(e,z+2*D);
var er=bX.c,ea=bX.v;for(var v=0;v<ea;v+=eG)for(var R=0;R<er;R+=eB){var D=(bX.y+v)*Y+(bX.x+R);b[D]=gx[b[D]]}}else if(m==9&&Z==2){var z=l,bX=k.TD(e,z),cX=!0;
z+=16;var aw=h(e,z);z+=4;var hP=h(e,z);z+=4;var eG=h(e,z),eB=h(e,z+4);z+=8;var hD=h(e,z),bP=h(e,z+4);
z+=8;var iz=Q(e,z),iq=Q(e,z+8);z+=16;var cU=Q(e,z),aH=Q(e,z+8);z+=16;var eK=h(e,z);z+=4;if(eK!=1)throw"more than one map plane";
var h6=hD*bP,co=new Float32Array(h6);for(var dh=0;dh<h6;dh++)co[dh]=k.Wi(e,z+dh*4);for(var dh=0;dh<h6;
dh++)if(co[dh]!=1)cX=!1;if(!cX){var er=bX.c,ea=bX.v,eY=.9999*(bP-1)/er,ga=.9999*(hD-1)/ea;for(var v=0;
v<ea;v+=eG)for(var R=0;R<er;R+=eB){var D=(bX.y+v)*Y+(bX.x+R),h0=R*eY,a8=v*ga,cc=Math.floor(h0),hW=Math.floor(a8),em=h0-cc,br=a8-hW,fq=hW*bP+cc,cF=co[fq]*(1-em)+co[fq+1]*em,cW=co[fq+bP]*(1-em)+co[fq+1+bP]*em,bM=cF*(1-br)+cW*br;
b[D]=~~(b[D]*bM+.5)}}}else console.log("Unknown opcode "+m+" in OpcodeList"+Z+". Length: "+K);l+=K}};
T.raw.ahu=function(Z,S){var b=d5.Nr(S),Y=T.raw.wa(Z,S),P=T.sE.oN(Y),w=d5.a74(b,d5.Nr(d5.a6C)),f=T.sE.multiply(w,P);
return f};T.raw.aem=function(Z){var S=(Z.t50728?Z.t50728:[1,1,1]).slice(0),Y=1;S.push(0);var b={x:.34567,y:.3585};
do{var P=T.sE.oN(T.raw.wa(Z,b)),w=T.sE.Eb(P,S),f=d5.aaF(w);Y=Math.abs(b.x-f.x)+Math.abs(b.y-f.y);b=f}while(Y>1e-7);
return b};T.raw.wa=function(Z,S){var b=d5.yv(S),Y=T.raw.a7B,P=Z.t50778?Z.t50778[0]:0,w=Z.t50779?Z.t50779[0]:0,f=Y(Z.t50721,Z.t50722,P,w,b.OR),h=Y(Z.t50723,Z.t50724,P,w,b.OR);
f=f||[1,0,0,0,1,0,0,0,1];h=h||[1,0,0,0,1,0,0,0,1];var Q=Z.t50727?[Z.t50727[0],0,0,0,Z.t50727[1],0,0,0,Z.t50727[2]]:[1,0,0,0,1,0,0,0,1];
return T.sE.multiply(T.sE.n2(Q),T.sE.multiply(T.sE.n2(h),T.sE.n2(f)))};T.raw.a7B=function(Z,S,b,Y,P){if(!Z&&!S){return null}else if(Z&&!S){return Z}else if(P<b){return Z}else if(P>Y){return S}else{var w=(1/P-1/Y)/(1/b-1/Y),f=1-w,h=[];
for(var D=0;D<9;D++)h[D]=Z[D]*w+S[D]*f;return h}};var d5={};d5.a6C={x:.34567,y:.3585};d5.Bc=[{h:0,FZ:.18006,$0:.26352,QX:-.24341},{h:10,FZ:.18066,$0:.26589,QX:-.25479},{h:20,FZ:.18133,$0:.26846,QX:-.26876},{h:30,FZ:.18208,$0:.27119,QX:-.28539},{h:40,FZ:.18293,$0:.27407,QX:-.3047},{h:50,FZ:.18388,$0:.27709,QX:-.32675},{h:60,FZ:.18494,$0:.28021,QX:-.35156},{h:70,FZ:.18611,$0:.28342,QX:-.37915},{h:80,FZ:.1874,$0:.28668,QX:-.40955},{h:90,FZ:.1888,$0:.28997,QX:-.44278},{h:100,FZ:.19032,$0:.29326,QX:-.47888},{h:125,FZ:.19462,$0:.30141,QX:-.58204},{h:150,FZ:.19962,$0:.30921,QX:-.70471},{h:175,FZ:.20525,$0:.31647,QX:-.84901},{h:200,FZ:.21142,$0:.32312,QX:-1.0182},{h:225,FZ:.21807,$0:.32909,QX:-1.2168},{h:250,FZ:.22511,$0:.33439,QX:-1.4512},{h:275,FZ:.23247,$0:.33904,QX:-1.7298},{h:300,FZ:.2401,$0:.34308,QX:-2.0637},{h:325,FZ:.24792,$0:.34655,QX:-2.4681},{h:350,FZ:.25591,$0:.34951,QX:-2.9641},{h:375,FZ:.264,$0:.352,QX:-3.5814},{h:400,FZ:.27218,$0:.35407,QX:-4.3633},{h:425,FZ:.28039,$0:.35577,QX:-5.3762},{h:450,FZ:.28863,$0:.35714,QX:-6.7262},{h:475,FZ:.29685,$0:.35823,QX:-8.5955},{h:500,FZ:.30505,$0:.35907,QX:-11.324},{h:525,FZ:.3132,$0:.35968,QX:-15.628},{h:550,FZ:.32129,$0:.36011,QX:-23.325},{h:575,FZ:.32931,$0:.36038,QX:-40.77},{h:600,FZ:.33724,$0:.36051,QX:-116.45}];
d5.yv=function(Z){var S=d5.Bc,b=2*Z.x/(1.5-Z.x+6*Z.y),Y=3*Z.y/(1.5-Z.x+6*Z.y),P=0,w=0,f=0;for(;f<31;
f++){P=Y-S[f].$0-S[f].QX*(b-S[f].FZ);if(f>0&&P<0){break}w=P}while(f>=S.length)f--;P/=Math.sqrt(1+S[f].QX*S[f].QX);
w/=Math.sqrt(1+S[f-1].QX*S[f-1].QX);var h=w/(w-P),Q=1e6/((S[f].h-S[f-1].h)*h+S[f-1].h),e=b-((S[f].FZ-S[f-1].FZ)*h+S[f-1].FZ),l=Y-((S[f].$0-S[f-1].$0)*h+S[f-1].$0),O=Math.sqrt(1+S[f].QX*S[f].QX),m=1/O,V=S[f].QX/O,q=Math.sqrt(1+S[f-1].QX*S[f-1].QX),K=1/q,z=S[f-1].QX/q,t=(m-K)*h+K,H=(V-z)*h+z,i=Math.sqrt(t*t+H*H);
t/=i;H/=i;var y=(e*t+l*H)*-3e3;return{OR:Q,BF:y}};d5.aoL=function(Z,S){var b=d5.Bc,Y=1e6/Z,P=1;for(;
P<31;P++){if(Y<b[P].h){break}}var w=(b[P].h-Y)/(b[P].h-b[P-1].h),f=(b[P-1].FZ-b[P].FZ)*w+b[P].FZ,h=(b[P-1].$0-b[P].$0)*w+b[P].$0,Q=Math.sqrt(1+b[P].QX*b[P].QX),e=1/Q,l=b[P].QX/Q,O=Math.sqrt(1+b[P-1].QX*b[P-1].QX),m=1/O,V=b[P-1].QX/O,q=(m-e)*w+e,K=(V-l)*w+l,z=Math.sqrt(q*q+K*K);
q/=z;K/=z;f+=q*S/-3e3;h+=K*S/-3e3;return{x:1.5*f/(f-4*h+2),y:h/(f-4*h+2)}};d5.aaF=function(Z){var S=Z[0]+Z[1]+Z[2];
return{x:Z[0]/S,y:Z[1]/S}};d5.Nr=function(Z){return{x:Z.x/Z.y,y:1,aE:(1-Z.x-Z.y)/Z.y}};d5.a74=function(Z,S){var b=T.sE.n2([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),Y=[Z.x,Z.y,Z.aE,0],P=[S.x,S.y,S.aE,0];
Y=T.sE.Eb(b,Y);P=T.sE.Eb(b,P);var w=P[0]/Y[0],f=P[1]/Y[1],h=P[2]/Y[2],Q=T.sE.n2([w,0,0,0,f,0,0,0,h]),e=T.sE.oN(b);
return T.sE.multiply(T.sE.multiply(e,Q),b)};T.raw.xS={};T.raw.Bk=function(Z){Z*=8;var S=[8,10,12,14,16];
for(var b in T.raw.wW){var Y=T.raw.wW[b];if(Y.length==4)continue;var P=Y[4],w=Y[5];for(var D=0;D<S.length;
D++)if(P*w*S[D]==Z)return[b,S[D]]}var f=[[4e3,3e3]];for(var D=0;D<f.length;D++){var Y=f[D],P=Y[0],w=Y[1];
for(var D=0;D<S.length;D++)if(P*w*S[D]==Z)return[Y,S[D]]}return null};T.raw.aj$=function(Z){var Z=new Uint8Array(Z);
for(var D=0;D<Z.length;D+=2){var S=Z[D];Z[D]=Z[D+1];Z[D+1]=S}var b=T.raw.Bk(Z.length),Y=T.raw.wW[b[0]];
if(Y==null)Y=[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],0,1e3,64383,b[0][0],b[0][1]];var P=Y[4],w=Y[5],f=Math.max(Y[2],116),h={data:Z,BP:1,width:P,height:w,t256:[P],t257:[w],t258:[b[1]],t277:[1],t33421:[2,2],t33422:T.raw.Et[Y[1]],t50706:[1,2,0,0],t50714:[f,f,f,f],t50717:[Y[3]],t50721:Y[0].slice(0),t50723:[1,0,0,0,1,0,0,0,1],t50728:[.64,1,.46],t50778:[17]};
for(var D=0;D<9;D++)h.t50721[D]/=1e4;return h};T.raw.lF=function(Z){if(Z==null||Z.length==0||typeof Z[0]=="number")return Z;
var S=[];for(var D=0;D<Z.length;D++)S[D]=Z[D][1]==0?0:Z[D][0]/Z[D][1];return S};T.raw.Et=[[2,1,1,0],[0,1,1,2],[1,0,2,1],[1,2,0,1]];
T.raw.normalize=function(Z,S){if(Z.t50706!=null||Z.t271[0].startsWith("Hasselblad")){var b=[50714,50718,50719,50720,50721,50722,50723,50724,50727,50728,50730,50731,50732,50734,50736,50738,50739,50780,50964,50965];
for(var D=0;D<b.length;D++)if(Z["t"+b[D]]!=null)Z["t"+b[D]]=T.raw.lF(Z["t"+b[D]]);if(Z.t271&&Z.t271[0].startsWith("Hasselblad")){Z.t50706=[1,2,0,0];
Z.t33422=T.raw.Et[1];Z.t50723=[1,0,0,0,1,0,0,0,1];Z.t50778=[17];if(!Z.isLE)for(var D=0;D<Z.data.length;
D+=2){var Y=Z.data[D];Z.data[D]=Z.data[D+1];Z.data[D+1]=Y}}return}var P=Z.t258[0],w=Z.exifIFD,S=new Uint8Array(S);
Z.t50706=[1,2,0,0];var f=Z.t272[0].trim();if(f.indexOf(" ")==-1)f=Z.t271[0].trim()+" "+f;if(Z.t50708==null)Z.t50708=[f];
var h=T.raw.wW,Q=h[f.toLowerCase()];if(Q==null)for(var e in h)if(f.toLowerCase().startsWith(e))Q=h[e];
if(Q==null)throw f;var l=Q[2];Z.t50714=[l,l,l,l];Z.t50717=[Q[3]];Z.t50721=Q[0].slice(0);for(var D=0;
D<9;D++)Z.t50721[D]=Z.t50721[D]*(1/1e4);Z.t50723=[1,0,0,0,1,0,0,0,1];if(Z.t50728==null)Z.t50728=[.35,1,.6];
Z.t50778=[17];if(Z.t271[0].startsWith("SONY")){var O=UTIF["_bin"+(Z.isLE?"LE":"BE")],m=Z.t28688,i;if(JSON.stringify(m)!="[8000,10400,12900,14100]")console.log(m);
if(m){var V=[0,0,0,0,0,4095],q=new Uint16Array(16385);for(var D=0;D<4;D++){var K=m[D]>>>2;V[D+1]=K;if(K>4095)throw"e"}for(var D=0;
D<16385;D++)q[D]=D;for(var D=0;D<5;D++)for(var z=V[D]+1;z<=V[D+1];z++)q[z]=q[z-1]+(1<<D);var t=S.length*8<Z.width*Z.height*P;
if(t)Z.t50712=q}else console.log("no curve");var H=Z.dngPrvt;if(H){var y=H.t29184[0],j=H.t29185[0],J=(Z.isLE?k.l2:k.r)(H.t29217,0),A=new Uint32Array(S.slice(y,y+(j&4294967292)).buffer),a=new Uint32Array(j>>>2);
T.raw.a6x(A,a,j>>>2,J);var I=new Uint8Array(y+j);I.set(new Uint8Array(a.buffer),y);var E=[];UTIF._readIFD(O,I,y,E,0,!1);
var c=E.pop(),u=c.t29458;Z.t50728=[u[1]/u[0],1,u[1]/u[3]];Z.t50730=[.5];var n=c.t29891;Z.t50829=[n[1],n[0],n[3],n[2]]}else if(w.makerNote&&w.makerNote.t8208){var i=w.makerNote,o=i.t8208,x=o.length,g=0,v=new Uint8Array(256);
for(var D=249;D<256;D++)v[D]=D;for(var D=0;D<249;D++)v[D*D*D%249]=D;for(var D=0;D<x;D++)o[D]=v[o[D]];
if(x==6604)g=612;else throw"e";var u=[];for(var D=0;D<3;D++)u.push(k.gh(o,g+D*2));console.log(u);Z.t50728=[u[1]/u[0],1,u[1]/u[2]]}else console.log("no white balance");
if(Z.width*Z.height*1.5==Z.t279[0]){l=l>>>2;Z.t50714=[l,l,l,l];Z.t50717=[Q[3]>>>2]}}else if(Z.t271[0].startsWith("Canon")){var S=Z.data,R=S.slice(0),X=Z.t50752,B=[],r=0;
if(X==null||X[0]==0&&X[1]==0)B.push(Z.width);else{for(var D=0;D<X[0];D++)B.push(X[1]);B.push(X[2])}var M=Z.width*2;
for(var N=0;N<B.length;N++){var $=B[N],eQ=2*r,hN=2*$;for(var bI=0;bI<Z.height;bI+=2){var fq=bI*M+eQ,e9=Z.height*eQ+(bI>>1)*hN*2;
for(var D=0;D<hN;D++){S[fq+D]=R[e9+D];S[fq+D+M]=R[e9+D+hN]}}r+=$}var i=w.makerNote;if(i.t16385){var W=i.t224,iw=0;
if(W){Z.t50719=[W[5],W[6]];Z.t50720=[W[7]+1-W[5],W[8]+1-W[6]]}var L=i.t16385,bd=L.length;if(bd==582)iw=1;
else if(bd==653)iw=2;else if(bd==796)iw=3;else if([692,674,702,1227,1250,1251,1337,1338,1346].indexOf(bd)!=-1)iw=4;
else if(bd==5120){iw=5;L=new Int16Array(L.slice(0).buffer)}else if(bd==1273||bd==1275)iw=6;else if([1312,1313,1316,1506].indexOf(bd)!=-1)iw=7;
else if([1560,1592,1353,1602].indexOf(bd)!=-1)iw=8;else throw"e"+bd;var d7=L[0],d0=[null,[25,166],[34,286],[63,196],[63],[71,d7==-4?333:264],[63,251],[63,d7==10?504:728],[63,326]],g=d0[iw][0],gS=d0[iw][1];
if(iw==4){if(L[0]==2)gS=231;else if(L[0]==3)gS=231;else if(L[0]==4)gS=231;else if(L[0]==5)gS=231;else if(L[0]==6)gS=231;
else if(L[0]==7)gS=231;else if(L[0]==9)gS=231;else throw"e"}Z.t50728=[L[g+1]/L[g],1,L[g+1]/L[g+3]];var l=gS==null?1024:L[gS];
Z.t50714=[l,l,l,l]}else{Z.t50728=[.4,1,.6]}}else if(Z.t271[0].startsWith("NIKON")){var i=w.makerNote,cf=Z.isLE?k.gh:k.S1,aw=0,hP=0,gx,cU=0;
if(i.t61){var cT=i.t61,fU=[];for(var D=0;D<4;D++)fU[D]=cT[D]/Math.pow(2,14-P);Z.t50714=fU}if(i.t3585){var dX=i.t3585,D=0,y=22;
while(y<dX.length&&D!=-4){var g$=k.l2(dX,y);y+=4;y+=14;D=k.l2(dX,y)-4;y+=4;if(g$==1990472198){if(dX[y]!=0)throw"Flip"}if(g$==1990472199){var bX=k.gh(dX,y);
if(bX==0)Z.BP=1;else if(bX==270)Z.BP=8;else throw"e "+bX}y+=D}}if(i.t183){var eG=i.t183,eB=[];for(var D=0;
D<6;D++)eB.push(cf(eG,16+D*2));aw=eB[0];hP=eB[1]}if(i.t3614){var bb=i.t3614;aw=k.l2(bb,8);hP=k.l2(bb,12)}if(aw!=0){if(aw<hP){var Y=aw;
aw=hP;hP=Y}var r=Z.width-aw>>>1,bI=Z.height-hP>>>1;Z.t50829=[bI,r,bI+hP,r+aw]}if(i.t12){var er=T.raw.lF(i.t12);
gx=[1/er[0],1,1/er[1]]}else if(i.t151){var ea=T.raw.aoC(i,151),hD=ea[0],i5=ea[1],bP=ea[2];if(hD=="0100"&&i5>=80)throw"e";
else if(hD=="0102"){var iz=[];for(var D=0;D<4;D++)iz.push(cf(bP,6+D*2));gx=[iz[1]/iz[0],1,iz[1]/iz[3]]}else if(hD=="0103"&&i5>=26){var iz=[];
for(var D=0;D<4;D++)iz.push(cf(bP,16+D*2));gx=[iz[1]/iz[0],1,iz[3]/iz[2]]}else if(hD=="0204"&&i5>=564||hD=="0205"&&i5>=284){var y=hD=="0204"?6:14,iz=[];
for(var D=0;D<4;D++)iz.push(cf(bP,y+D*2));gx=[iz[1]/iz[0],1,iz[1]/iz[3]]}else throw"e"}else console.log("no white balance info");
if(f=="NIKON D1")gx=[1,1,1];if(gx)Z.t50728=gx;var iq=i.t150?i.t150:i.t140;if(iq){var aH=iq[cU++],eK=iq[cU++],dh;
if(aH==73||eK==88)cU+=2110;cU+=8;var h6=1<<P&32767,co=cf(iq,cU);cU+=2;var q=[];if(co>1)dh=Math.floor(h6/(co-1));
if(aH==68&&eK==32&&dh>0){for(D=0;D<co;D++){q[D*dh]=cf(iq,cU);cU+=2}for(D=0;D<h6;D++)q[D]=Math.floor((q[D-D%dh]*(dh-D%dh)+q[D-D%dh+dh]*(D%dh))/dh)}else if(aH!=70&&co<=16385){h6=co;
for(var D=0;D<co;D++)q[D]=cf(iq,cU+2*D);cU+=2*co}if(q.length!=0)Z.t50712=new Uint16Array(q);else if(Z.t272[0]=="NIKON D750")Z.t50717[0]*=4}}else if(f.startsWith("FujiFilm")){}else alert("Unknown camera "+f)};
T.raw.a6x=function(Z,S,b,Y){if(0==b)return;var P=new Uint32Array(128),w=new Uint8Array(P.buffer),f=127,h=0,Q=0;
for(var f=0;f<4;f++)P[f]=Y=(Y*15625>>>0)*3125+1>>>0;P[3]=P[3]<<1|(P[0]^P[2])>>>31;for(var f=4;f<127;
f++)P[f]=(P[f-4]^P[f-2])<<1|(P[f-3]^P[f-1])>>>31;for(var f=0;f<127;f++)P[f]=k.r(w,f*4);for(;b>0;b--){P[f&127]=P[f+1&127]^P[f+1+64&127];
var e=P[f&127],l=Z[h];l^=e;S[Q]=l;h++;Q++;f++}};T.raw.aas=function(Z,S){var b=k.zG(S,0,4),Y=T.raw.a4r;
for(var D=0;D<Y.length;D++)if(Y[D][0]==Z&&b.startsWith(Y[D][1])&&(Y[D][2]==0||Y[D][2]==S.length))return Y[D];
throw"e"};T.raw.a9Z=function(Z){if(Z.t29==null)return[];var S=T.raw.afV,b=T.raw.al2,Y=Z.t29[0],P=0,f=0;
for(var D=0;D<Y.length;D++){var w=Y.charCodeAt(D);P=P*10+(48<=w&&w<=57?w-48:w%10)}var i5=Z.t167[0];for(var D=0;
D<4;D++)f^=i5>>>(D<<3)&255;var h=S[P&255],Q=b[f&255];return[h,Q,96]};T.raw.aoC=function(Z,S){var b=Z["t"+S],i5=b.length,Y=T.raw.aas(S,b),P=k.zG(b,0,4),w,f=Y[4];
if(f==null)w=b.slice(4);else{w=new Uint8Array(i5-f);var h=T.raw.a9Z(Z),Q=h[0],e=h[1],l=h[2];for(var D=0;
D<w.length;D++){e=e+Q*l++&255;w[D]=b[f++]^e}}return[P,i5,w]};T.raw.a4r=[[145,"0208",0,0,4],[145,"0209",0,1,4],[145,"0210",5291,2,4],[145,"0210",5303,3,4],[145,"02",0,4,4],[145,"01",0,5,null],[151,"0100",0,0,null],[151,"0102",0,1,null],[151,"0103",0,4,null],[151,"0204",0,3,284],[151,"0205",0,2,4],[151,"0206",0,3,284],[151,"0207",0,3,284],[151,"0208",0,3,284],[151,"0209",0,5,284],[151,"02",0,3,284],[152,"0100",0,0,null],[152,"0101",0,1,null],[152,"0201",0,1,4],[152,"0202",0,1,4],[152,"0203",0,1,4],[152,"0204",0,2,4],[168,"0100",0,0,null],[168,"0101",0,0,null],[168,"0102",0,1,null],[168,"0103",0,2,null]];
T.raw.afV=[193,191,109,13,89,197,19,157,131,97,107,79,199,127,61,61,83,89,227,199,233,47,149,167,149,31,223,127,43,41,199,13,223,7,239,113,137,61,19,61,59,19,251,13,137,193,101,31,179,13,107,41,227,251,239,163,107,71,127,149,53,167,71,79,199,241,89,149,53,17,41,97,241,61,179,43,13,67,137,193,157,157,137,101,241,233,223,191,61,127,83,151,229,233,149,23,29,61,139,251,199,227,103,167,7,241,113,167,83,181,41,137,229,43,167,23,41,233,79,197,101,109,107,239,13,137,73,47,179,67,83,101,29,73,163,19,137,89,239,107,239,101,29,11,89,19,227,79,157,179,41,67,43,7,29,149,89,89,71,251,229,233,97,71,47,53,127,23,127,239,127,149,149,113,211,163,11,113,163,173,11,59,181,251,163,191,79,131,29,173,233,47,113,101,163,229,7,53,61,13,181,233,229,71,59,157,239,53,163,191,179,223,83,211,151,83,73,113,7,53,97,113,47,67,47,17,223,23,151,251,149,59,127,107,211,37,191,173,199,197,197,181,139,239,47,211,7,107,37,73,149,37,73,109,113,199];
T.raw.al2=[167,188,201,173,145,223,133,229,212,120,213,23,70,124,41,76,77,3,233,37,104,17,134,179,189,247,111,97,34,162,38,52,42,190,30,70,20,104,157,68,24,194,64,244,126,95,27,173,11,148,182,103,180,11,225,234,149,156,102,220,231,93,108,5,218,213,223,122,239,246,219,31,130,76,192,104,71,161,189,238,57,80,86,74,221,223,165,248,198,218,202,144,202,1,66,157,139,12,115,67,117,5,148,222,36,179,128,52,229,44,220,155,63,202,51,69,208,219,95,245,82,195,33,218,226,34,114,107,62,208,91,168,135,140,6,93,15,221,9,25,147,208,185,252,139,15,132,96,51,28,155,69,241,240,163,148,58,18,119,51,77,68,120,40,60,158,253,101,87,22,148,107,251,89,208,200,34,54,219,210,99,152,67,161,4,135,134,247,166,38,187,214,89,77,191,106,46,170,43,239,230,120,182,78,224,47,220,124,190,87,25,50,126,42,208,184,186,41,0,60,82,125,168,73,59,45,235,37,73,250,163,170,57,167,197,167,80,17,54,251,198,103,74,245,165,18,101,126,176,223,175,78,179,97,127,47];
T.raw.wW={"canon eos 100d":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2048,15e3],"canon eos rebel sl1":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2048,15e3],"canon eos kiss x7":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2048,15e3],"canon eos 200d":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2049,14338],"canon eos rebel sl2":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2049,14338],"canon eos kiss x9":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2049,14338],"canon eos 300d":[[8197,-2e3,-1118,-6714,14335,2592,-2536,3178,8266],1,126,4e3],"canon eos digital rebel":[[8197,-2e3,-1118,-6714,14335,2592,-2536,3178,8266],1,126,4e3],"canon eos kiss digital":[[8197,-2e3,-1118,-6714,14335,2592,-2536,3178,8266],1,126,4e3],"canon eos d30":[[9805,-2689,-1312,-5803,13064,3068,-2438,3075,8775],1,126,4095],"canon eos d60":[[6188,-1341,-890,-7168,14489,2937,-2640,3228,8483],1,127,4e3],"canon eos 10d":[[8197,-2e3,-1118,-6714,14335,2592,-2536,3178,8266],1,130,4e3],"canon eos 20d":[[6599,-537,-891,-8071,15783,2424,-1983,2234,7462],1,126,4095],"canon eos 30d":[[6257,-303,-1e3,-7880,15621,2396,-1714,1904,7046],1,127,3398],"canon eos 350d":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos digital rebel xt":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos kiss digital n":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos 350d":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos 350d digital":[[6018,-617,-965,-8645,15881,2975,-1530,1719,7642],1,255,4095],"canon eos 40d":[[6071,-747,-856,-7653,15365,2441,-2025,2553,7315],1,1021,13600],"canon eos 450d":[[5784,-262,-821,-7539,15064,2672,-1982,2681,7427],1,1020,14500],"canon eos digital rebel xsi":[[5784,-262,-821,-7539,15064,2672,-1982,2681,7427],1,1020,14500],"canon eos kiss digital x2":[[5784,-262,-821,-7539,15064,2672,-1982,2681,7427],1,1020,14500],"canon eos kiss x2":[[5784,-262,-821,-7539,15064,2672,-1982,2681,7427],1,1020,14500],"canon eos 50d":[[4920,616,-593,-6493,13964,2784,-1774,3178,7005],3,1020,13653],"canon eos 60d":[[6719,-994,-925,-4408,12426,2211,-887,2129,6051],3,2026,14200],"canon eos 70d":[[7034,-804,-1014,-4420,12564,2058,-851,1994,5758],1,2026,13653],"canon eos 80d":[[7457,-671,-937,-4849,12495,2643,-1213,2354,5492],1,512,11892],"canon eos 700d":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2052,15e3],"canon eos rebel t5i":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2052,15e3],"canon eos kiss x7i":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2052,15e3],"canon eos 750d":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos rebel t6i":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos kiss x8i":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos 800d":[[6970,-512,-968,-4425,12161,2553,-739,1982,5601],1,2049,14338],"canon eos rebel t7i":[[6970,-512,-968,-4425,12161,2553,-739,1982,5601],1,2049,14338],"canon eos rebel t7i":[[6970,-512,-968,-4425,12161,2553,-739,1982,5601],1,2049,14338],"canon eos kiss x9i":[[6970,-512,-968,-4425,12161,2553,-739,1982,5601],1,2049,14338],"canon eos 760d":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos rebel t6s":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos 8000d":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2047,11765],"canon eos 77d":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2048,14338],"canon eos 9000d":[[7377,-742,-998,-4235,11981,2549,-673,1918,5538],1,2048,14338],"canon eos 500d":[[4763,712,-646,-6821,14399,2640,-1921,3276,6561],1,1020,16e3],"canon eos rebel t1i":[[4763,712,-646,-6821,14399,2640,-1921,3276,6561],1,1020,16e3],"canon eos kiss x3":[[4763,712,-646,-6821,14399,2640,-1921,3276,6561],1,1020,16e3],"canon eos 550d":[[6941,-1164,-857,-3825,11597,2534,-416,1540,6039],0,2048,15831],"canon eos rebel t2i":[[6941,-1164,-857,-3825,11597,2534,-416,1540,6039],0,2048,15831],"canon eos kiss x4":[[6941,-1164,-857,-3825,11597,2534,-416,1540,6039],0,2048,15831],"canon eos 600d":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2026,13584],"canon eos rebel t3i":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2026,13584],"canon eos kiss x5":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2026,13584],"canon eos 650d":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2026,13584],"canon eos rebel t4i":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2026,13584],"canon eos kiss x6i":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2026,13584],"canon eos 5d":[[6347,-479,-972,-8297,15954,2480,-1968,2131,7649],1,127,3692],"canon eos 5d mark ii":[[4716,603,-830,-7798,15474,2480,-1496,1937,6651],3,1024,12995],"canon eos 5d mark iii":[[6722,-635,-963,-4287,12460,2028,-908,2162,5668],1,2060,16383],"canon eos 5d mark iv":[[6446,-366,-864,-4436,12204,2513,-952,2496,6348],1,2049,14448],"canon eos 5ds":[[6250,-711,-808,-5153,12794,2636,-1249,2198,5610],1,2048,15181],"canon eos 5ds r":[[6250,-711,-808,-5153,12794,2636,-1249,2198,5610],1,2048,15181],"canon eos 6d":[[7034,-804,-1014,-4420,12564,2058,-851,1994,5758],1,2048,15e3],"canon eos 6d mark ii":[[6875,-970,-932,-4691,12459,2501,-874,1953,5809],1,2049,14558],"canon eos 7d":[[6844,-996,-856,-3876,11761,2396,-593,1772,6198],3,2049,15400],"canon eos 7d mark ii":[[7268,-1082,-969,-4186,11839,2663,-825,2029,5839],1,2048,15100],"canon eos 1000d":[[6771,-1139,-977,-7818,15123,2928,-1244,1437,7533],1,255,3650],"canon eos digital rebel xs":[[6771,-1139,-977,-7818,15123,2928,-1244,1437,7533],1,255,3650],"canon eos kiss digital f":[[6771,-1139,-977,-7818,15123,2928,-1244,1437,7533],1,255,3650],"canon eos 1100d":[[6444,-904,-893,-4563,12308,2535,-903,2016,6728],1,2036,15500],"canon eos rebel t3":[[6444,-904,-893,-4563,12308,2535,-903,2016,6728],1,2036,15500],"canon eos 1200d":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2046,12279],"canon eos rebel t5":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2046,12279],"canon eos kiss x70":[[6461,-907,-882,-4300,12184,2378,-819,1944,5931],3,2046,12279],"canon eos 1300d":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2048,15e3],"canon eos rebel t6":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2048,15e3],"canon eos kiss x80":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2048,15e3],"canon eos 2000d":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],3,2048,15092],"canon eos rebel t7":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],3,2048,15092],"canon eos 1500d":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],3,2048,15092],"canon eos 4000d":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2051,15e3],"canon eos rebel t100":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2051,15e3],"canon eos 3000d":[[6939,-1016,-866,-4428,12473,2177,-1175,2178,6162],3,2051,15e3],"canon eos 400d":[[7054,-1501,-990,-8156,15544,2812,-1278,1414,7796],1,255,3726],"canon eos digital rebel xti":[[7054,-1501,-990,-8156,15544,2812,-1278,1414,7796],1,255,3726],"canon eos kiss digital x":[[7054,-1501,-990,-8156,15544,2812,-1278,1414,7796],1,255,3726],"canon eos m":[[6602,-841,-939,-4472,12458,2247,-975,2039,6148],1,2026,13584],"canon eos m2":[[6400,-480,-888,-5294,13416,2047,-1296,2203,6137],1,2026,13584],"canon eos m3":[[6362,-823,-847,-4426,12109,2616,-743,1857,5635],1,2048,16e3],"canon eos m5":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],1,2048,16e3],"canon eos m6":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],1,2048,16e3],"canon eos m10":[[6400,-480,-888,-5294,13416,2047,-1296,2203,6137],1,2048,16e3],"canon eos m100":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],1,2048,16e3],"canon eos-1d":[[6806,-179,-1020,-8097,16415,1687,-3267,4236,7690],2,0,3588],"canon eos-1ds":[[4374,3631,-1743,-7520,15212,2472,-2892,3632,8161],2,0,3500],"canon eos d2000c":[[24542,-10860,-3401,-1490,11370,-297,2858,-605,3225],2,96,4095],"canon eos-1d mark ii":[[6264,-582,-724,-8312,15948,2504,-1744,1919,8664],1,127,3700],"canon eos-1d mark ii n":[[6240,-466,-822,-8180,15825,2500,-1801,1938,8042],1,127,3700],"canon eos-1d mark iii":[[6291,-540,-976,-8350,16145,2311,-1714,1858,7326],1,1023,15100],"canon eos-1d mark iv":[[6014,-220,-795,-4109,12014,2361,-561,1824,5787],3,2e3,13e3],"canon eos-1ds mark ii":[[6517,-602,-867,-8180,15926,2378,-1618,1771,7633],3,126,4060],"canon eos-1ds mark iii":[[5859,-211,-930,-8255,16017,2353,-1732,1887,7448],1,1021,15100],"canon eos-1d x":[[6847,-614,-1014,-4669,12737,2139,-1197,2488,6846],1,2050,15100],"canon eos-1d x mark ii":[[7596,-978,-967,-4808,12571,2503,-1398,2567,5752],1,2048,14888],"canon powershot pro1":[[10062,-3522,-999,-7643,15117,2730,-765,817,7323],1,129,4095],"canon powershot g1":[[-4778,9467,2172,4743,-1141,4344,-5146,9908,6077,-1566,11051,557],0,31,1023],"canon powershot g2":[[9087,-2693,-1049,-6715,14382,2537,-2291,2819,7790],1,0,1023],"canon powershot g3":[[9212,-2781,-1073,-6573,14189,2605,-2300,2844,7664],1,0,4095],"canon powershot g3 x":[[9701,-3857,-921,-3149,11537,1817,-786,1817,5147],1,2047,16e3],"canon powershot g5":[[9757,-2872,-933,-5972,13861,2301,-1622,2328,7212],1,0,4095],"canon powershot g5 x":[[9602,-3823,-937,-2984,11495,1675,-407,1415,5049],1,2047,16e3],"canon powershot g6":[[9877,-3775,-871,-7613,14807,3072,-1448,1305,7485],1,128,4095],"canon powershot g7 x":[[9602,-3823,-937,-2984,11495,1675,-407,1415,5049],1,511,4e3],"canon powershot g7 x mark ii":[[9602,-3823,-937,-2984,11495,1675,-407,1415,5049],1,2047,16e3],"canon powershot g1 x":[[7378,-1255,-1043,-4088,12251,2048,-876,1946,5805],1,0,16383],"canon powershot g1 x mark ii":[[7378,-1255,-1043,-4088,12251,2048,-876,1946,5805],1,0,16e3],"canon powershot g1 x mark iii":[[8532,-701,-1167,-4095,11879,2508,-797,2424,7010],1,2048,16e3],"canon powershot g12":[[13244,-5501,-1248,-1508,9858,1935,-270,1083,4366],1,120,4095],"canon powershot g11":[[12177,-4817,-1069,-1612,9864,2049,-98,850,4471],1,120,4095],"canon powershot g10":[[11093,-3906,-1028,-5047,12492,2879,-1003,1750,5561],3,128,4095],"canon powershot g9":[[7368,-2141,-598,-5621,13254,2625,-1418,1696,5743],1,125,4095],"canon powershot g9 x":[[9602,-3823,-937,-2984,11495,1675,-407,1415,5049],1,2047,16e3],"canon powershot g9 x mark ii":[[10056,-4131,-944,-2576,11143,1625,-238,1294,5179],1,2048,16e3],"canon powershot g15":[[7474,-2301,-567,-4056,11456,2975,-222,716,4181],3,500,2800],"canon powershot g16":[[8020,-2687,-682,-3704,11879,2052,-965,1921,5556],1,0,4095],"canon powershot sx1 is":[[6578,-259,-502,-5974,13030,3309,-308,1058,4970],1,125,4095],"canon powershot s30":[[10566,-3652,-1129,-6552,14662,2006,-2197,2581,7670],1,31,1023],"canon powershot s40":[[8510,-2487,-940,-6869,14231,2900,-2318,2829,9013],1,0,1023],"canon powershot s45":[[8163,-2333,-955,-6682,14174,2751,-2077,2597,8041],1,129,4095],"canon powershot s50":[[8882,-2571,-863,-6348,14234,2288,-1516,2172,6569],1,129,4095],"canon powershot s60":[[8795,-2482,-797,-7804,15403,2573,-1422,1996,7082],1,129,4095],"canon powershot s70":[[9976,-3810,-832,-7115,14463,2906,-901,989,7889],1,129,4095],"canon powershot s90":[[12374,-5016,-1049,-1677,9902,2078,-83,852,4683],1,125,4095],"canon powershot s95":[[13440,-5896,-1279,-1236,9598,1931,-180,1001,4651],1,125,4095],"canon powershot s100":[[7968,-2565,-636,-2873,10697,2513,180,667,4211],3,125,4095],"canon powershot s110":[[8039,-2643,-654,-3783,11230,2930,-206,690,4194],3,500,3072],"canon powershot s120":[[6961,-1685,-695,-4625,12945,1836,-1114,2152,5518],1,0,4e3],"canon powershot sx50 hs":[[12432,-4753,-1247,-2110,10691,1629,-412,1623,4926],1,127,4095],"canon powershot sx60 hs":[[13161,-5451,-1344,-1989,10654,1531,-47,1271,4955],1,128,4e3],"nikon d100":[[5902,-933,-782,-8983,16719,2354,-1402,1455,6464],2,0,4095],"nikon d1":[[16772,-4726,-2141,-7611,15713,1972,-2846,3494,9521],0,0,4095],"nikon d1h":[[7577,-2166,-926,-7454,15592,1934,-2377,2808,8606],0,0,4095],"nikon d1x":[[7702,-2245,-975,-9114,17242,1875,-2679,3055,8521],0,0,4095],"nikon d200":[[8367,-2248,-763,-8758,16447,2422,-1527,1550,8053],2,0,3880],"nikon d2h":[[5710,-901,-615,-8594,16617,2024,-2975,4120,6830],3,0,3880],"nikon d2hs":[[5710,-901,-615,-8594,16617,2024,-2975,4120,6830],3,0,3880],"nikon d2x":[[10231,-2769,-1255,-8301,15900,2552,-797,680,7148],1,0,3880],"nikon d2xs":[[10231,-2769,-1255,-8301,15900,2552,-797,680,7148],1,0,3880],"nikon d3":[[8139,-2171,-663,-8747,16541,2295,-1925,2008,8093],1,0,15892],"nikon d3s":[[8828,-2406,-694,-4874,12603,2541,-660,1509,7587],1,0,15520],"nikon d3x":[[7171,-1986,-648,-8085,15555,2718,-2170,2512,7457],1,0,15892],"nikon d300":[[9030,-1992,-715,-8465,16302,2255,-2689,3217,8069],1,0,15236],"nikon d300s":[[9030,-1992,-716,-8465,16302,2256,-2689,3217,8069],1,0,15236],"nikon d3000":[[8736,-2458,-935,-9075,16894,2251,-1354,1242,8263],3,0,3880],"nikon d3200":[[7013,-1408,-635,-5268,12902,2640,-1470,2801,7379],1,0,3880],"nikon d3300":[[6988,-1384,-714,-5631,13410,2447,-1485,2204,7318],1,150,3880],"nikon d3400":[[6988,-1384,-714,-5631,13410,2447,-1485,2204,7318],1,150,3880],"nikon d3500":[[8821,-2938,-785,-4178,12142,2287,-824,1651,6860],1,150,3972],"nikon d4":[[8598,-2848,-857,-5618,13606,2195,-1002,1773,7137],1,0,15520],"nikon d5":[[9200,-3522,-992,-5755,13803,2117,-753,1486,6338],1,400,15520],"nikon z 5":[[8695,-2558,-648,-5015,12711,2575,-1279,2215,7514],1,1008,15520],"nikon z 6":[[9943,-3269,-839,-5323,13269,2259,-1198,2083,7557],1,1008,15520],"nikon z 7":[[10405,-3755,-1270,-5461,13787,1793,-1040,2015,6785],1,1008,15520],"nikon z 50":[[11640,-4829,-1079,-5107,13006,2325,-972,1711,7380],1,251,3880],"nikon df":[[8598,-2848,-857,-5618,13606,2195,-1002,1773,7137],1,0,15520],"nikon d5100":[[8198,-2239,-724,-4871,12389,2798,-1043,2050,7181],1,0,15892],"nikon d3100":[[7911,-2167,-813,-5327,13150,2408,-1288,2483,7968],3,0,3880],"nikon d40":[[6992,-1668,-806,-8138,15748,2543,-874,850,7897],0,0,3880],"nikon d40x":[[8819,-2543,-911,-9025,16928,2151,-1329,1213,8449],3,0,3880],"nikon d50":[[7732,-2422,-789,-8238,15884,2498,-859,783,7330],0,0,4095],"nikon d500":[[8813,-3210,-1036,-4703,12868,2021,-1054,1940,6129],1,400,15520],"nikon d5000":[[7309,-1403,-519,-8474,16008,2622,-2433,2826,8064],3,0,3767],"nikon d5200":[[8322,-3112,-1047,-6367,14342,2179,-988,1638,6394],1,0,15892],"nikon d5300":[[6988,-1384,-714,-5631,13410,2447,-1485,2204,7318],1,150,3972],"nikon d5500":[[8821,-2938,-785,-4178,12142,2287,-824,1651,6860],1,150,3972],"nikon d5600":[[8821,-2938,-785,-4178,12142,2287,-824,1651,6860],1,150,3972],"nikon d60":[[8736,-2458,-935,-9075,16894,2251,-1354,1242,8263],3,0,3880],"nikon d600":[[8178,-2245,-609,-4857,12394,2776,-1207,2086,7298],1,0,15520],"nikon d610":[[8178,-2245,-609,-4857,12394,2776,-1207,2086,7298],1,0,15520],"nikon d70":[[7732,-2422,-789,-8238,15884,2498,-859,783,7330],0,0,4095],"nikon d700":[[8139,-2171,-663,-8747,16541,2295,-1925,2008,8093],1,0,3972],"nikon d750":[[9020,-2890,-715,-4535,12436,2348,-934,1919,7086],1,150,3880],"nikon d780":[[9943,-3269,-839,-5323,13269,2259,-1198,2083,7557],1,251,3880],"nikon d7000":[[8198,-2239,-724,-4871,12389,2798,-1043,2050,7181],1,0,15892],"nikon d7100":[[8322,-3112,-1047,-6367,14342,2179,-988,1638,6394],1,0,15892],"nikon d7200":[[8322,-3112,-1047,-6367,14342,2179,-988,1638,6394],1,600,15892],"nikon d7500":[[8813,-3210,-1036,-4703,12868,2021,-1054,1940,6129],1,100,3880],"nikon d70s":[[7732,-2422,-789,-8238,15884,2498,-859,783,7330],0,0,4095],"nikon d80":[[8629,-2410,-883,-9055,16940,2171,-1490,1363,8520],3,0,3880],"nikon d800":[[7866,-2108,-555,-4869,12483,2681,-1176,2069,7501],1,0,15520],"nikon d800e":[[7866,-2108,-555,-4869,12483,2681,-1176,2069,7501],1,0,15520],"nikon d810":[[9369,-3195,-791,-4488,12430,2301,-893,1796,6872],1,150,3880],"nikon d850":[[10405,-3755,-1270,-5461,13787,1793,-1040,2015,6785],1,100,3880],"nikon d4s":[[8598,-2848,-857,-5618,13606,2195,-1002,1773,7137],1,192,3880],"nikon d90":[[7309,-1403,-519,-8474,16008,2622,-2434,2826,8064],3,0,3767],"nikon 1 j1":[[8994,-2667,-865,-4594,12324,2552,-699,1786,6260],1,0,3300],"nikon 1 j2":[[8994,-2667,-865,-4594,12324,2552,-699,1786,6260],1,0,4095],"nikon 1 j3":[[6588,-1305,-693,-3277,10987,2634,-355,2016,5106],1,0,4095],"nikon 1 j4":[[5958,-1559,-571,-4021,11453,2939,-634,1548,5087],1,200,4e3],"nikon 1 j5":[[7520,-2518,-645,-3844,12102,1945,-913,2249,6835],1,200,3800],"nikon 1 s1":[[8994,-2667,-865,-4594,12324,2552,-699,1786,6260],1,0,3300],"nikon 1 s2":[[6612,-1342,-618,-3338,11055,2623,-174,1792,5075],1,200,4095],"nikon 1 v1":[[8994,-2667,-865,-4594,12324,2552,-699,1786,6260],1,0,3300],"nikon 1 v2":[[6588,-1305,-693,-3277,10987,2634,-355,2016,5106],1,0,4095],"nikon 1 v3":[[5958,-1559,-571,-4021,11453,2939,-634,1548,5087],1,200,4e3],"nikon 1 aw1":[[6588,-1305,-693,-3277,10987,2634,-355,2016,5106],1,0,4095],"nikon e5400":[[9349,-2987,-1001,-7919,15766,2266,-2098,2680,6839],0,0,4095],"nikon e5700":[[-5368,11478,2368,5537,-113,3148,-4969,10021,5782,778,9028,211],0,0,4095],"nikon coolpix p330":[[10321,-3920,-931,-2750,11146,1824,-442,1545,5539],1,3200,65e3],"nikon coolpix p340":[[10321,-3920,-931,-2750,11146,1824,-442,1545,5539],1,200,3800],"nikon coolpix a":[[8198,-2239,-724,-4871,12389,2798,-1043,2050,7181],1,0,15892],"nikon coolpix b700":[[14387,-6014,-1299,-1357,9975,1616,467,1047,4744],1,200,4e3],"nikon coolpix p6000":[[9698,-3367,-914,-4706,12584,2368,-837,968,5801],1,0,4095],"nikon coolpix p7000":[[11432,-3679,-1111,-3169,11239,2202,-791,1380,4455],1,0,4095],"nikon coolpix p7100":[[11053,-4269,-1024,-1976,10182,2088,-526,1263,4469],1,0,3800],"nikon coolpix p7700":[[10321,-3920,-931,-2750,11146,1824,-442,1545,5539],1,3200,65e3],"nikon coolpix p7800":[[10321,-3920,-931,-2750,11146,1824,-442,1545,5539],1,3200,65e3],"nikon coolpix p950":[[13307,-5641,-1290,-2048,10581,1689,-64,1222,5176],1,200,4095],"nikon coolpix p1000":[[14294,-6116,-1333,-1628,10219,1637,-14,1158,5022],1,200,4095],"olympus e-m10 mark iv":[[9476,-3182,-765,-2613,10958,1893,-449,1315,5268],1,254,4e3],"olympus e-m5 mark iii":[[11896,-5110,-1076,-3181,11378,2048,-519,1224,5166],1,257,4e3],"panasonic dmc-cm1":[[8770,-3194,-820,-2871,11281,1803,-513,1552,4434],1,142,4095],"panasonic dmc-fx150":[[9082,-2907,-925,-6119,13377,3058,-1797,2641,5609],0,15,3986],"panasonic dmc-fz28":[[10109,-3488,-993,-5412,12812,2916,-1305,2140,5543],0,15,3986],"panasonic dmc-fz150":[[11904,-4541,-1189,-2355,10899,1662,-296,1586,4289],3,145,3956],"panasonic dmc-fz200":[[8112,-2563,-740,-3730,11784,2197,-941,2075,4933],3,150,3956],"panasonic dmc-fz2000":[[7386,-2443,-743,-3437,11864,1757,-608,1660,4766],3,142,2095],"panasonic dmc-fz2500":[[7386,-2443,-743,-3437,11864,1757,-608,1660,4766],3,142,2095],"panasonic dmc-fz300":[[8378,-2798,-769,-3068,11410,1877,-538,1792,4623],3,143,4095],"panasonic dmc-g1":[[8199,-2065,-1056,-8124,16156,2033,-2458,3022,7220],3,15,3986],"panasonic dmc-g2":[[10113,-3400,-1114,-4765,12683,2317,-377,1437,6710],3,0,3900],"panasonic dmc-g10":[[10113,-3400,-1114,-4765,12683,2317,-377,1437,6710],3,0,3900],"panasonic dmc-gh1":[[6299,-1466,-532,-6535,13852,2969,-2331,3112,5984],3,0,3986],"panasonic dmc-gh3":[[6559,-1752,-491,-3672,11407,2586,-962,1875,5130],3,155,3956],"panasonic dmc-gh4":[[7122,-2108,-512,-3155,11201,2231,-541,1423,5045],0,142,4095],"panasonic dmc-gf1":[[7888,-1902,-1011,-8106,16085,2099,-2353,2866,7330],3,15,3986],"panasonic dmc-gf2":[[7888,-1902,-1011,-8106,16085,2099,-2353,2866,7330],3,150,3956],"panasonic dmc-gm1":[[6770,-1895,-744,-5232,13145,2303,-1664,2691,5703],0,143,3971],"panasonic dmc-gm5":[[8238,-3244,-679,-3921,11814,2384,-836,2022,5852],0,143,4095],"panasonic dmc-g3":[[6763,-1919,-863,-3868,11515,2684,-1216,2387,5879],2,143,3956],"panasonic dmc-g5":[[7798,-2562,-740,-3879,11584,2613,-1055,2248,5434],0,150,3956],"panasonic dmc-g6":[[8294,-2891,-651,-3869,11590,2595,-1183,2267,5352],0,142,3956],"panasonic dmc-g7":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g70":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g8":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g80":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g81":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-g85":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-gf3":[[9051,-2468,-1204,-5212,13276,2121,-1197,2510,6890],3,150,3956],"panasonic dmc-gf5":[[8228,-2945,-660,-3938,11792,2430,-1094,2278,5793],3,150,3956],"panasonic dmc-gf6":[[8130,-2801,-946,-3520,11289,2552,-1314,2511,5791],2,150,3956],"panasonic dmc-gf7":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dmc-gh2":[[7780,-2410,-806,-3913,11724,2484,-1018,2390,5298],3,15,3800],"panasonic dmc-fz35":[[9938,-2780,-890,-4604,12393,2480,-1117,2304,4620],0,150,3986],"panasonic dmc-fz38":[[9938,-2780,-890,-4604,12393,2480,-1117,2304,4620],0,150,3986],"panasonic dmc-fz45":[[13639,-5535,-1371,-1698,9633,2430,316,1152,4108],3,150,3986],"panasonic dmc-fz40":[[13639,-5535,-1371,-1698,9633,2430,316,1152,4108],3,150,3986],"panasonic dmc-fz40":[[13639,-5535,-1371,-1698,9633,2430,316,1152,4108],3,150,3986],"panasonic dmc-fz40":[[13639,-5535,-1371,-1698,9633,2430,316,1152,4108],3,150,3986],"panasonic dmc-fz70":[[11532,-4324,-1066,-2375,10847,1749,-564,1699,4351],1,120,3971],"panasonic dmc-fz72":[[11532,-4324,-1066,-2375,10847,1749,-564,1699,4351],1,120,3971],"panasonic dmc-fz100":[[16197,-6146,-1761,-2393,10765,1869,366,2238,5248],3,120,3986],"panasonic dmc-fz1000":[[7830,-2696,-763,-3325,11667,1866,-641,1712,4824],3,143,4095],"panasonic dc-fz10002":[[9803,-4185,-992,-4066,12578,1628,-838,1824,5288],3,143,4095],"panasonic dmc-gx1":[[6763,-1919,-863,-3868,11515,2684,-1216,2387,5879],2,150,3956],"panasonic dmc-gx7":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,150,3956],"panasonic dmc-gx8":[[7564,-2263,-606,-3148,11239,2177,-540,1435,4853],3,143,4095],"panasonic dmc-gx85":[[7771,-3020,-629,-4029,11950,2345,-821,1977,6119],0,143,4095],"panasonic dmc-gx80":[[7771,-3020,-629,-4029,11950,2345,-821,1977,6119],0,143,4095],"panasonic dmc-gx7mk2":[[7771,-3020,-629,-4029,11950,2345,-821,1977,6119],0,143,4095],"panasonic dmc-lf1":[[9379,-3267,-816,-3227,11560,1881,-926,1928,5340],1,143,3971],"panasonic dmc-lx3":[[8128,-2668,-655,-6134,13307,3161,-1782,2568,6083],0,15,3971],"panasonic dmc-lx15":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,143,4095],"panasonic dmc-lx9":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,143,4095],"panasonic dmc-lx10":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,143,4095],"leica c (typ 112)":[[9379,-3267,-816,-3227,11560,1881,-926,1928,5340],1,146,3956],"leica digilux 2":[[11340,-4069,-1275,-7555,15266,2448,-2960,3426,7685],1,0,4095],"leica d-lux 3":[[8048,-2810,-623,-6450,13519,3272,-1700,2146,7049],0,0,3986],"leica v-lux (typ 114)":[[7830,-2696,-763,-3325,11667,1866,-641,1712,4824],3,142,4095],"leica v-lux 1":[[7906,-2709,-594,-6231,13351,3220,-1922,2631,6537],0,0,3986],"panasonic dmc-l10":[[8025,-1942,-1050,-7920,15904,2100,-2456,3005,7039],3,0,3986],"panasonic dmc-fz30":[[10976,-4029,-1141,-7918,15491,2600,-1670,2071,8246],1,0,3971],"panasonic dmc-fz50":[[7906,-2709,-594,-6231,13351,3220,-1922,2631,6537],0,0,3986],"panasonic dmc-fz8":[[8986,-2755,-802,-6341,13575,3077,-1476,2144,6379],1,0,3986],"panasonic dmc-fz18":[[9932,-3060,-935,-5809,13331,2753,-1267,2155,5575],0,0,3986],"panasonic dmc-l1":[[8054,-1885,-1025,-8349,16367,2040,-2805,3542,7629],3,0,3986],"panasonic dmc-lx2":[[8048,-2810,-623,-6450,13519,3272,-1700,2146,7049],0,0,3986],"leica d-lux 4":[[8128,-2668,-655,-6134,13307,3161,-1782,2568,6083],0,15,3971],"panasonic dmc-lx5":[[10909,-4295,-948,-1333,9306,2399,22,1738,4582],2,150,3986],"leica d-lux 5":[[10909,-4295,-948,-1333,9306,2399,22,1738,4582],2,150,3986],"panasonic dmc-lx7":[[10148,-3743,-991,-2837,11366,1659,-701,1893,4899],2,150,3971],"leica d-lux 6":[[10148,-3743,-991,-2837,11366,1659,-701,1893,4899],2,150,3971],"leica d-lux (typ 109)":[[8844,-3538,-768,-3709,11762,2200,-698,1792,5220],0,143,4095],"panasonic dmc-lx1":[[10704,-4187,-1230,-8314,15952,2501,-920,945,8927],1,0,3971],"panasonic dmc-lx100":[[8844,-3538,-768,-3709,11762,2200,-698,1792,5220],0,143,4095],"panasonic dc-lx100m2":[[8585,-3127,-833,-4005,12250,1953,-650,1494,4862],0,143,4095],"panasonic dc-s1":[[9744,-3905,-779,-4899,12807,2324,-798,1630,5827],1,511,16380],"panasonic dc-s1h":[[9397,-3719,-805,-5425,13326,2309,-972,1715,6034],1,510,16380],"panasonic dc-s5":[[9744,-3905,-779,-4899,12807,2324,-798,1630,5827],1,509,16380],"panasonic dc-s1r":[[11822,-5321,-1249,-5958,15114,766,-614,1264,7043],3,510,16380],"panasonic dmc-tz60":[[8607,-2822,-808,-3755,11930,2049,-820,2060,5224],1,145,3971],"panasonic dmc-tz61":[[8607,-2822,-808,-3755,11930,2049,-820,2060,5224],1,145,3971],"panasonic dmc-zs40":[[8607,-2822,-808,-3755,11930,2049,-820,2060,5224],1,145,3971],"panasonic dmc-tz71":[[8802,-3135,-789,-3151,11468,1904,-550,1745,4810],1,143,3971],"panasonic dmc-zs50":[[8802,-3135,-789,-3151,11468,1904,-550,1745,4810],1,143,3971],"panasonic dmc-tz70":[[8802,-3135,-789,-3151,11468,1904,-550,1745,4810],1,143,3971],"panasonic dmc-tz81":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,142,4095],"panasonic dmc-zs60":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,142,4095],"panasonic dmc-tz80":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,142,4095],"panasonic dmc-tz85":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,142,4095],"panasonic dmc-tz100":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-zs100":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-zs110":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-tz101":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-tz110":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dmc-tx1":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dc-fz82":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,143,4095],"panasonic dc-fz80":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,143,4095],"panasonic dmc-fz80":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,143,4095],"panasonic dmc-fz85":[[8550,-2908,-842,-3195,11529,1881,-338,1603,4631],3,143,4095],"panasonic dc-gh5":[[7641,-2336,-605,-3218,11299,2187,-485,1338,5121],1,143,4095],"panasonic dc-gh5s":[[6929,-2355,-708,-4192,12534,1828,-1097,1989,5195],1,510,8e3],"panasonic dc-g9":[[7685,-2375,-634,-3687,11700,2249,-748,1546,5111],1,148,4095],"panasonic dc-g95":[[9657,-3963,-748,-3361,11378,2258,-568,1415,5158],0,144,4095],"panasonic dc-g90":[[9657,-3963,-748,-3361,11378,2258,-568,1415,5158],0,144,4095],"panasonic dc-g91":[[9657,-3963,-748,-3361,11378,2258,-568,1415,5158],0,144,4095],"panasonic dc-g99":[[9657,-3963,-748,-3361,11378,2258,-568,1415,5158],0,144,4095],"panasonic dc-gf9":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dc-gx800":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dc-gx850":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dc-gx880":[[7610,-2780,-576,-4614,12195,2733,-1375,2393,6490],0,143,4095],"panasonic dc-gx9":[[7564,-2263,-606,-3148,11239,2177,-540,1435,4853],0,143,4095],"panasonic dc-tz90":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-tz91":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-zs70":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-fz91":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-fz92":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-fz93":[[9052,-3117,-883,-3045,11346,1927,-205,1520,4730],3,139,4095],"panasonic dc-tz96":[[12194,-5340,-1329,-3035,11394,1858,-50,1418,5219],3,142,4095],"panasonic dc-tz95":[[12194,-5340,-1329,-3035,11394,1858,-50,1418,5219],3,142,4095],"panasonic dc-zs80":[[12194,-5340,-1329,-3035,11394,1858,-50,1418,5219],3,142,4095],"panasonic dc-tz202":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dc-tz200":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"panasonic dc-zs200":[[7790,-2736,-755,-3452,11870,1769,-628,1647,4898],3,142,4095],"pentax k100d":[[11095,-3157,-1324,-8377,15834,2720,-1108,947,11688],1,127,3950],"pentax k110d":[[11095,-3157,-1324,-8377,15834,2720,-1108,947,11688],1,127,4095],"pentax k100d super":[[11095,-3157,-1324,-8377,15834,2720,-1108,947,11688],1,127,4095],"pentax *ist d":[[9651,-2059,-1189,-8881,16512,2487,-1460,1345,10687],1,128,4095],"pentax *ist dl":[[10829,-2838,-1115,-8339,15817,2696,-837,680,11939],1,128,4095],"pentax *ist dl2":[[10504,-2438,-1189,-8603,16207,2531,-1022,863,12242],1,127,3950],"pentax *ist ds":[[10371,-2333,-1206,-8688,16231,2602,-1230,1116,11282],1,128,3950],"pentax k10d":[[9566,-2863,-803,-7170,15172,2112,-818,803,9705],1,0,4095],"pentax k20d":[[9427,-2714,-868,-7493,16092,1373,-2199,3264,7180],0,0,4095],"pentax k200d":[[9186,-2678,-907,-8693,16517,2260,-1129,1094,8524],1,0,4095],"pentax k-s1":[[8512,-3211,-787,-4167,11966,2487,-638,1288,6054],1,32,4062],"pentax k-s2":[[8662,-3280,-798,-3928,11771,2444,-586,1232,6054],1,0,3839],"pentax k-70":[[8113,-2078,-1275,-4359,12953,1514,-1091,1955,6044],1,64,16319],"pentax k-1":[[8827,-2829,-1238,-3611,12203,1549,-897,1687,6291],1,64,16316],"pentax k-1 mark ii":[[8952,-2869,-1256,-3612,12204,1550,-934,1757,6549],1,64,16316],"pentax k-3":[[7415,-2052,-721,-5186,12788,2682,-1446,2157,6773],1,1,15868],"pentax k-3 ii":[[7415,-2052,-721,-5186,12788,2682,-1446,2157,6773],1,1,15865],"pentax k-5":[[8713,-2833,-743,-4342,11900,2772,-722,1543,6247],0,512,16383],"pentax k-5 ii":[[8170,-2725,-639,-4440,12017,2744,-771,1465,6599],0,512,16383],"pentax k-5 ii s":[[8170,-2725,-639,-4440,12017,2744,-771,1465,6599],0,512,15863],"pentax k-7":[[9142,-2947,-678,-8648,16967,1663,-2224,2898,8615],0,0,4095],"pentax k-m":[[11057,-3604,-1155,-5152,13046,2329,-282,375,8104],1,0,4095],"pentax k-x":[[8843,-2837,-625,-5025,12644,2668,-411,1234,7410],0,41,4095],"pentax k-r":[[9895,-3077,-850,-5304,13035,2521,-883,1768,6936],0,64,4e3],"pentax kp":[[8617,-3228,-1034,-4674,12821,2044,-803,1577,5728],1,128,16254],"pentax k2000":[[11057,-3604,-1155,-5152,13046,2329,-282,375,8104],1,0,4095],"pentax 645d":[[9814,-2716,-1439,-5049,13907,1166,-1830,3836,5706],0,0,15767],"pentax 645z":[[9551,-3012,-1235,-3685,12133,1721,-1019,1887,6544],1,1,16316],"samsung ex2f":[[10648,-3897,-1055,-2022,10573,1668,-492,1611,4742],1,0,4095],"samsung ex1":[[8898,-2498,-994,-3144,11328,2066,-760,1381,4576],1,0,16383],"samsung nx1":[[10686,-4042,-1052,-3595,13238,276,-464,1259,5931],2,1024,16100],"samsung nx5":[[10332,-3234,-1168,-6111,14639,1520,-1352,2647,8331],0,0,4095],"samsung nx10":[[10332,-3234,-1168,-6111,14639,1520,-1352,2647,8331],0,0,4095],"samsung nx11":[[10332,-3234,-1168,-6111,14639,1520,-1352,2647,8331],0,0,4095],"samsung nx100":[[10332,-3234,-1168,-6111,14639,1520,-1352,2647,8331],0,0,4095],"samsung nx1000":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx1100":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx20":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx200":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx210":[[6933,-2268,-753,-4921,13387,1647,-803,1641,6096],2,0,4095],"samsung nx2000":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],2,0,4095],"samsung nx30":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],2,0,4095],"samsung nx300":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],2,0,4095],"samsung nx300m":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],2,0,4095],"samsung nx3000":[[8060,-2933,-761,-4504,12890,1762,-630,1489,5227],2,0,4095],"samsung nx500":[[10686,-4042,-1052,-3595,13238,276,-464,1259,5931],2,1024,16100],"samsung ek-gn120":[[7557,-2522,-739,-4679,12949,1894,-840,1777,5311],3,0,4095],"samsung wb2000":[[12093,-3557,-1155,-1e3,9534,1733,-22,1787,4576],1,0,4095],"sony dsc-rx0":[[9396,-3507,-843,-2497,11111,1572,-343,1355,5089],1,800,16620],"sony dsc-rx0m2":[[9396,-3507,-843,-2497,11111,1572,-343,1355,5089],1,800,16300],"sony dsc-rx10":[[6679,-1825,-745,-5047,13256,1953,-1580,2422,5183],1,800,16300],"sony dsc-rx10m2":[[6679,-1825,-745,-5047,13256,1953,-1580,2422,5183],1,800,16300],"sony dsc-rx10m3":[[6679,-1825,-745,-5047,13256,1953,-1580,2422,5183],1,800,16300],"sony dsc-rx10m4":[[7699,-2566,-629,-2967,11270,1928,-378,1286,4807],1,800,16380],"sony dsc-rx100":[[8651,-2754,-1057,-3464,12207,1373,-568,1398,4434],1,800,16620],"sony dsc-rx100m2":[[6596,-2079,-562,-4782,13016,1933,-970,1581,5181],1,800,16300],"sony dsc-rx100m3":[[6596,-2079,-562,-4782,13016,1933,-970,1581,5181],1,800,16300],"sony dsc-rx100m4":[[6596,-2079,-562,-4782,13016,1933,-970,1581,5181],1,800,16300],"sony dsc-rx100m5":[[6596,-2079,-562,-4782,13016,1933,-970,1581,5181],1,800,16300],"sony dsc-rx100m5a":[[11176,-4700,-965,-4004,12184,2032,-763,1726,5876],1,800,16300],"sony dsc-rx100m6":[[7325,-2321,-596,-3494,11674,2055,-668,1562,5031],1,800,16300],"sony dsc-rx100m7":[[10315,-4390,-937,-4859,12734,2365,-734,1537,5997],1,800,16300],"sony dsc-rx1r":[[6344,-1612,-462,-4863,12477,2681,-865,1786,6899],1,512,33192],"sony dsc-rx1rm2":[[6629,-1900,-483,-4618,12349,2550,-622,1381,6514],1,512,16300],"sony dslr-a100":[[9437,-2811,-774,-8405,16215,2290,-710,596,7181],2,0,4095],"sony dslr-a200":[[9847,-3091,-928,-8485,16345,2225,-715,595,7103],1,0,4095],"sony dslr-a230":[[9847,-3091,-928,-8485,16345,2225,-715,595,7103],1,0,4095],"sony dslr-a290":[[6038,-1484,-579,-9145,16746,2512,-875,746,7218],1,0,4095],"sony dslr-a300":[[9847,-3091,-928,-8485,16345,2225,-715,595,7103],1,0,4095],"sony dslr-a330":[[9847,-3091,-929,-8485,16346,2225,-714,595,7103],1,0,4095],"sony dslr-a350":[[6038,-1484,-578,-9146,16746,2513,-875,746,7217],1,0,4095],"sony dslr-a380":[[6038,-1484,-579,-9145,16746,2512,-875,746,7218],1,0,4095],"sony dslr-a390":[[6038,-1484,-579,-9145,16746,2512,-875,746,7218],1,0,4095],"sony dslr-a450":[[4950,-580,-103,-5228,12542,3029,-709,1435,7371],1,500,16e3],"sony dslr-a500":[[6046,-1127,-278,-5574,13076,2786,-691,1419,7625],0,500,16600],"sony dslr-a550":[[4950,-580,-103,-5228,12542,3029,-709,1435,7371],0,512,16372],"sony dslr-a560":[[4950,-580,-103,-5228,12542,3029,-709,1435,7371],0,476,16596],"sony dslr-a580":[[5932,-1492,-411,-4813,12285,2856,-741,1524,6739],0,520,16596],"sony dslr-a700":[[5775,-805,-359,-8574,16295,2391,-1943,2341,7249],0,520,16383],"sony dslr-a850":[[5413,-1162,-365,-5665,13098,2866,-608,1179,8440],0,500,15e3],"sony dslr-a900":[[5209,-1072,-397,-8845,16120,2919,-1618,1803,8654],1,520,16383],"sony nex-3":[[6907,-1256,-645,-4940,12621,2320,-1710,2581,6230],1,520,16360],"sony nex-3n":[[6129,-1545,-418,-4930,12490,2743,-977,1693,6615],1,520,16596],"sony nex-5":[[6807,-1350,-342,-4216,11649,2567,-1089,2001,6420],1,520,16383],"sony nex-5n":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16596],"sony nex-5r":[[6129,-1545,-418,-4930,12490,2743,-977,1693,6615],1,520,16596],"sony nex-5t":[[6129,-1545,-418,-4930,12490,2743,-977,1693,6615],1,512,16300],"sony nex-6":[[6129,-1545,-418,-4930,12490,2743,-977,1693,6615],1,520,16596],"sony nex-7":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,512,16300],"sony nex-c3":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16596],"sony nex-f3":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16360],"sony ilce-3000":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-3500":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-5000":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-5100":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-6000":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16300],"sony ilce-6100":[[7657,-2847,-607,-4083,11966,2389,-684,1418,5844],1,512,16300],"sony ilce-6300":[[5973,-1695,-419,-3826,11797,2293,-639,1398,5789],1,512,16300],"sony ilce-6400":[[7657,-2847,-607,-4083,11966,2389,-684,1418,5844],1,512,16383],"sony ilce-6500":[[5973,-1695,-419,-3826,11797,2293,-639,1398,5789],1,512,16300],"sony ilce-6600":[[7657,-2847,-607,-4083,11966,2389,-684,1418,5844],1,512,16383],"sony ilce-7":[[5271,-712,-347,-6153,13653,2763,-1601,2366,7242],1,512,16300],"sony ilce-7m2":[[5271,-712,-347,-6153,13653,2763,-1601,2366,7242],1,512,16300],"sony ilce-7m3":[[7374,-2389,-551,-5435,13162,2519,-1006,1795,6552],1,512,16300],"sony ilce-7r":[[4913,-541,-202,-6130,13513,2906,-1564,2151,7183],1,512,16300],"sony ilce-7rm2":[[6629,-1900,-483,-4618,12349,2550,-622,1381,6514],1,512,16300],"sony ilce-7rm3":[[6640,-1847,-503,-5238,13010,2474,-993,1673,6527],1,512,16383],"sony ilce-7rm4":[[7662,-2686,-660,-5240,12965,2530,-796,1508,6167],1,512,16383],"sony ilce-7s":[[5838,-1430,-246,-3497,11477,2297,-748,1885,5778],1,512,16300],"sony ilce-7sm2":[[5838,-1430,-246,-3497,11477,2297,-748,1885,5778],1,512,16300],"sony ilce-9":[[6389,-1703,-378,-4562,12265,2587,-670,1489,6550],1,512,16383],"sony ilce-9m2":[[6389,-1703,-378,-4562,12265,2587,-670,1489,6550],1,512,16380],"sony dsc-rx1":[[6344,-1612,-462,-4863,12477,2681,-865,1786,6899],1,520,16628],"sony slt-a33":[[6069,-1221,-366,-5221,12779,2734,-1024,2066,6834],1,520,16596],"sony slt-a35":[[5986,-1618,-415,-4557,11820,3120,-681,1404,6971],1,545,16596],"sony slt-a37":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16500],"sony slt-a55":[[5932,-1492,-411,-4813,12285,2856,-741,1524,6739],1,520,16596],"sony slt-a55v":[[5932,-1492,-411,-4813,12285,2856,-741,1524,6739],1,520,16596],"sony slt-a57":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,512,16596],"sony slt-a58":[[5991,-1456,-455,-4764,12135,2980,-707,1425,6701],1,520,16596],"sony slt-a65":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,520,16596],"sony slt-a65v":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,520,16596],"sony slt-a77":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,520,16596],"sony slt-a77v":[[5491,-1192,-363,-4951,12342,2948,-911,1722,7192],1,520,16596],"sony ilca-77m2":[[5991,-1732,-443,-4100,11989,2381,-704,1467,5992],1,512,16300],"sony ilca-68":[[6435,-1903,-536,-4722,12449,2550,-663,1363,6517],1,512,16300],"sony ilca-99m2":[[6660,-1918,-471,-4613,12398,2485,-649,1433,6447],1,512,16300],"sony slt-a99":[[6344,-1612,-462,-4863,12477,2681,-865,1786,6899],1,520,16596],"sony slt-a99v":[[6344,-1612,-462,-4863,12477,2681,-865,1786,6899],1,520,16596],"sony zv-1":[[8280,-2987,-703,-3531,11645,2133,-550,1542,5312],1,800,16300],"sinar hy6":[[16442,-2956,-2422,-2877,12128,750,-1136,6066,4559],1,0,0],"fujifilm finepix s1":[[12297,-4882,-1202,-2106,10691,1623,-88,1312,4790],1,200,4095],"fujifilm finepix s6000fd":[[12628,-4887,-1401,-6861,14996,1962,-2198,2782,7091],3,0,15872],"fujifilm finepix s100fs":[[11521,-4355,-1065,-6524,13767,3058,-1466,1984,6045],3,512,16383],"fujifilm finepix s200exr":[[11401,-4498,-1312,-5088,12751,2613,-838,1568,5941],1,519,16250],"fujifilm finepix f600exr":[[13690,-5358,-1474,-3369,11600,1998,-132,1554,4395],1,256,3900],"fujifilm finepix f700":[[10004,-3219,-1201,-7036,15047,2107,-1863,2565,7736],3,0,16383],"fujifilm finepix f770exr":[[13690,-5358,-1474,-3369,11600,1998,-132,1554,4395],1,256,3900],"fujifilm finepix f900exr":[[12085,-4727,-953,-3257,11489,2002,-511,2046,4592],0,256,3900],"fujifilm finepix e550":[[11044,-3888,-1120,-7248,15168,2208,-1531,2277,8069],3,0,15875],"fujifilm is-1":[[21461,-10807,-1441,-2332,10599,1999,289,875,7703],3,0,15872],"fujifilm finepix s3pro":[[11807,-4612,-1294,-8927,16968,1988,-2120,2741,8006],3,0,15872],"fujifilm finepix s5pro":[[12300,-5110,-1304,-9117,17143,1998,-1947,2448,8100],3,0,15872],"fujifilm finepix s5600":[[9636,-2804,-988,-7442,15040,2589,-1803,2311,8621],3,0,15872],"fujifilm finepix e900":[[9183,-2526,-1078,-7461,15071,2574,-2022,2440,8639],3,0,15872],"fujifilm finepix s2pro":[[12492,-4690,-1402,-7033,15423,1647,-1507,2111,7697],3,128,4095],"fujifilm finepix s5000":[[8754,-2732,-1019,-7204,15069,2276,-1702,2334,6982],3,0,15872],"fujifilm finepix s5200":[[9636,-2804,-988,-7442,15040,2589,-1803,2311,8621],3,0,15872],"fujifilm finepix s5500":[[11940,-4431,-1255,-6766,14428,2542,-993,1165,7421],1,0,15872],"fujifilm finepix s6500fd":[[12628,-4887,-1401,-6861,14996,1962,-2198,2782,7091],3,0,15872],"fujifilm finepix s7000":[[10190,-3506,-1312,-7153,15051,2238,-2003,2399,7505],3,0,15869],"fujifilm finepix s9500":[[10491,-3423,-1145,-7385,15027,2538,-1809,2275,8692],3,0,15872],"fujifilm finepix s9000":[[10491,-3423,-1145,-7385,15027,2538,-1809,2275,8692],3,0,15872],"fujifilm finepix s9600":[[12343,-4515,-1285,-7165,14899,2435,-1895,2496,8800],3,0,15872],"fujifilm finepix s9600fd":[[12343,-4515,-1285,-7165,14899,2435,-1895,2496,8800],3,0,15872],"fujifilm finepix hs10 hs11":[[12440,-3954,-1183,-1123,9674,1708,-83,1614,4086],0,50,3900],"fujifilm finepix hs20exr":[[13690,-5358,-1474,-3369,11600,1998,-132,1554,4395],1,256,3900],"fujifilm finepix hs30exr":[[13690,-5358,-1474,-3369,11600,1998,-132,1554,4395],1,258,3900],"fujifilm finepix hs50exr":[[12085,-4727,-953,-3257,11489,2002,-511,2046,4592],0,256,3900],"fujifilm finepix x100":[[12161,-4457,-1069,-5034,12874,2400,-795,1724,6904],0,254,4e3],"fujifilm finepix x10":[[13509,-6199,-1254,-4430,12733,1865,-331,1441,5022],0,256,4e3],"fujifilm x-s1":[[13509,-6199,-1254,-4430,12733,1865,-331,1441,5022],0,260,4e3],"fujifilm gfx 50s":[[11756,-4754,-874,-3056,11045,2305,-381,1457,6006],1,65,16383],"fujifilm gfx 50r":[[11756,-4754,-874,-3056,11045,2305,-381,1457,6006],1,65,16383],"fujifilm gfx 100":[[16212,-8423,-1583,-4336,12583,1937,-195,726,6199],1,63,16383],"fujifilm x-pro1":[[10413,-3996,-993,-3721,11640,2361,-733,1540,6011],2,256,4094],"fujifilm x-pro2":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1024,16383],"fujifilm x-pro3":[[13426,-6334,-1177,-4244,12136,2371,-580,1303,5980],2,1022,16383],"fujifilm x70":[[10450,-4329,-878,-3217,11105,2421,-752,1758,6519],1,1024,16383],"fujifilm xf1":[[13509,-6199,-1254,-4430,12733,1865,-331,1441,5022],0,257,4e3],"fujifilm xf10":[[11673,-4760,-1041,-3988,12058,2166,-771,1417,5569],1,1024,16383],"fujifilm x-e1":[[10413,-3996,-993,-3721,11640,2361,-733,1540,6011],2,255,4094],"fujifilm x20":[[11768,-4971,-1133,-4904,12927,2183,-480,1723,4605],3,257,4094],"fujifilm x30":[[12328,-5256,-1144,-4469,12927,1675,-87,1291,4351],3,257,4094],"fujifilm x100f":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1024,16383],"fujifilm x100s":[[10592,-4262,-1008,-3514,11355,2465,-870,2025,6386],1,1024,16383],"fujifilm x100t":[[10592,-4262,-1008,-3514,11355,2465,-870,2025,6386],1,1024,16383],"fujifilm x100v":[[13426,-6334,-1177,-4244,12136,2371,-580,1303,5980],2,1022,16383],"fujifilm x-h1":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1024,16383],"fujifilm x-m1":[[10413,-3996,-993,-3721,11640,2361,-733,1540,6011],2,256,4094],"fujifilm x-a1":[[11086,-4555,-839,-3512,11310,2517,-815,1341,5940],1,256,4094],"fujifilm x-a2":[[10763,-4560,-917,-3346,11311,2322,-475,1135,5843],1,256,4094],"fujifilm x-a3":[[12407,-5222,-1086,-2971,11116,2120,-294,1029,5284],1,1024,16383],"fujifilm x-a5":[[11673,-4760,-1041,-3988,12058,2166,-771,1417,5569],1,1024,16383],"fujifilm x-a10":[[11540,-4999,-991,-2949,10963,2278,-382,1049,5605],1,256,4094],"fujifilm xq1":[[9252,-2704,-1064,-5893,14265,1717,-1101,2341,4349],3,257,4094],"fujifilm xq2":[[9252,-2704,-1064,-5893,14265,1717,-1101,2341,4349],3,257,4094],"fujifilm x-e2":[[8458,-2451,-855,-4597,12447,2407,-1475,2482,6526],1,1024,16383],"fujifilm x-e3":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1023,16383],"fujifilm x-e2s":[[11562,-5118,-961,-3022,11007,2311,-525,1569,6097],1,1024,16383],"fujifilm x-t1":[[8458,-2451,-855,-4597,12447,2407,-1475,2482,6526],1,1024,16383],"fujifilm x-t2":[[11434,-4948,-1210,-3746,12042,1903,-666,1479,5235],1,1024,16383],"fujifilm x-t3":[[16393,-7740,-1436,-4238,12131,2371,-633,1424,6553],2,1022,16383],"fujifilm x-t4":[[13426,-6334,-1177,-4244,12136,2371,-580,1303,5980],2,1022,16383],"fujifilm x-t10":[[8458,-2451,-855,-4597,12447,2407,-1475,2482,6526],1,1024,16383],"fujifilm x-t20":[[10592,-4262,-1008,-3514,11355,2465,-870,2025,6386],1,1024,16383],"fujifilm x-t30":[[13426,-6334,-1177,-4244,12136,2371,-580,1303,5980],2,1022,16383],"fujifilm x-t100":[[11673,-4760,-1041,-3988,12058,2166,-771,1417,5569],1,1024,16383],"fujifilm x-t200":[[15055,-7391,-1274,-4062,12071,2238,-610,1217,6147],1,1024,16383],"minolta dimage a1":[[9274,-2547,-1167,-8220,16323,1943,-2273,2720,8340],1,0,3965],"minolta dimage 5":[[8983,-2942,-963,-6556,14476,2237,-2426,2887,8014],1,0,3965],"minolta dimage 7":[[9144,-2777,-998,-6676,14556,2281,-2470,3019,7744],1,0,3965],"minolta dimage 7i":[[10880,-3638,-1186,-6496,14313,2364,-2456,3092,7485],1,0,3965],"minolta dimage 7hi":[[11368,-3894,-1242,-6521,14358,2339,-2475,3056,7285],1,0,3965],"sony dsc-f828":[[7924,-1910,-777,-8226,15459,2998,-1517,2199,6818,-7242,11401,3481],0,495,16383],"sony dsc-hx99":[[13076,-5686,-1481,-4027,12851,1251,-167,725,4937],1,800,16300],"sony dsc-r1":[[8512,-2641,-694,-8042,15670,2526,-1821,2117,7414],2,511,16383],"mamiya zd":[[7645,2579,-1363,-8689,16717,2015,-3712,5941,5961],1,0,4e3],"leaf aptus 22":[[8236,1746,-1314,-8251,15953,2428,-3673,5786,5771],1,0,16191],"leaf credo 40":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,16383],"leaf credo 60":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,16383],"leaf credo 80":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,16383],"leaf aptus-ii 5":[[1846,7955,-1222,-12994,19563,3596,-2035,3340,5136],2,0,15e3],"phase one p30":[[4516,-245,-37,-7020,14976,2173,-3206,4671,7087],2,0,16383],"phase one p65+":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,16383],"phase one iq140":[[8035,435,-962,-6001,13872,2320,-1159,3065,5434],1,0,65535],"phase one iq250":[[3984,0,0,0,1e4,0,0,0,7666],1,1024,65535],"kodak dcs pro slr/n":[[5494,2393,-232,-6427,13850,2846,-1876,3997,5445],2,0,4095],"kodak dcs pro 14n":[[7791,3128,-776,-8588,16458,2039,-2455,4006,6198],2,0,3700],"kodak dcs pro 14nx":[[5494,2393,-232,-6427,13850,2846,-1876,3997,5445],2,0,3700],"kodak dcs460":[[10592,-2206,-967,-1944,11685,230,2206,670,1273],2,7,6664],"kodak dcs520c":[[24542,-10860,-3401,-1490,11370,-297,2858,-605,3225],2,176,4095],"kodak dcs560c":[[20482,-7172,-3125,-1033,10410,-285,2542,226,3136],2,208,4095],"kodak dcs760c":[[16623,-6309,-1411,-4344,13923,323,2285,274,2926],2,0,3500],"kodak p880":[[12805,-4662,-1376,-7480,15267,2360,-1626,2194,7904],0,0,4095],"kodak easyshare z980 digital camera":[[11313,-3559,-1101,-3893,11891,2257,-1214,2398,4908],1,0,4095],"kodak easyshare z981 digital camera":[[12729,-4717,-1188,-1367,9187,2582,274,860,4411],2,0,4095],"kodak easyshare z990 digital camera":[[11749,-4048,-1309,-1867,10572,1489,-138,1449,4522],0,0,4e3],"kodak z1015 is":[[11265,-4286,-992,-4694,12343,2647,-1090,1523,5447],0,0,4095],"epson r-d1":[[6827,-1878,-732,-8429,16012,2564,-704,592,7145],1,63,4095],"epson r-d1s":[[6827,-1878,-732,-8429,16012,2564,-704,592,7145],1,62,4095],"epson r-d1x":[[6828,-1878,-732,-8429,16012,2564,-704,592,7145],1,65,4095],"hasselblad cfv-50":[[5656,-659,-346,-3923,12306,1791,-1602,3509,5442],1,256,65535],"hasselblad h3d":[[3857,452,-46,-6008,14477,1596,-2627,4481,5718],1,0,31456],"hasselblad h4d-50":[[5656,-659,-346,-3923,12306,1791,-1602,3509,5442],1,256,32767],"hasselblad h5d-40":[[6159,-1402,-177,-5439,12762,3007,-955,2200,7104],1,256,62914],"hasselblad h5d-50c":[[4932,-835,141,-4878,11868,3437,-1138,1961,7067],1,256,62914],"hasselblad x1dm2-50c":[[5002,-878,111,-4856,11929,3338,-1183,2041,7022],1,256,62914],"hasselblad x1d ii 50c":[[5002,-878,111,-4856,11929,3338,-1183,2041,7022],1,256,62914],"canon powershot a610":[[15591,-6402,-1592,-5365,13198,2168,-1300,1824,5075],1,0,1023,2672,1968],"canon powershot s3 is":[[14062,-5199,-1446,-4712,12470,2243,-1286,2028,4836],1,0,1023,2888,2136],"canon powershot a620":[[15265,-6193,-1558,-4125,12116,2010,-888,1639,5220],1,0,1023,3152,2340],"canon powershot a720 is":[[14573,-5482,-1546,-1266,9799,1468,-1040,1912,3810],3,0,1023,3336,2480],"canon powershot a630":[[14201,-5308,-1757,-6087,14472,1617,-2191,3105,5348],1,0,1023,3344,2484],"canon powershot a640":[[13124,-5329,-1390,-3602,11658,1944,-1612,2863,4885],1,0,1023,3736,2772],"canon powershot a650":[[9427,-3036,-959,-2581,10671,1911,-1039,1982,4430],1,0,1023,4104,3048],"canon powershot sx110 is":[[14134,-5576,-1527,-1991,10719,1273,-1158,1929,3581],1,0,4095,3720,2772],"gitup git2":[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],1,3200,65535,4608,3456],"gitup git2p":[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],1,4160,65535,4624,3488],"paralenz dive camera":[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],1,1024,16383,3840,2160],"sjcam sj6 legend":[[9489,-3814,-225,-6650,13742,3236,-627,797,7550],1,0,4095,4024,3036]};
T.yk={};T.yk.yk=function(Z,S,b,Y,P){if(Y==null)Y=3;if(P==null)P=!0;var w=Z.c,f=Z.v,h=1/w,Q=w*f,e=Date.now(),l=!1,O=T.yk.nO(b,w,f,255,128),m=T.yk.nO(b,w,f,0,128),e9=0;
if(l)console.log("extract contours",Date.now()-e);e=Date.now();var V=function(co,dh){var cX=co<<2,eY=dh<<2;
return S[cX]+S[cX+1]+S[cX+2]-(S[eY]+S[eY+1]+S[eY+2])};O.sort(V);m.sort(V);var q=T.f(Q),K=T.f(Q),z=[],t=new Uint32Array(w*f);
t.fill(4294967295);for(var D=0;D<Q;D++)if(b[D]==0)K[D]=255;else if(b[D]==255)q[D]=255;else{t[D]=z.length;
z.push(D)}var H=O.length,i=m.length,y=z.length;function j(co,dh,cX,eY){var ga=co.length,h0=new Array(ga*2);
for(var D=0;D<ga;D++){var v=co[D],R=~~(v*eY),X=v-R*cX,aH=v<<2;h0[D*2]=X<<16|R;h0[D*2+1]=dh[aH]<<16|dh[aH+1]<<8|dh[aH+2]}return h0}var J=j(O,S,w,h),A=j(m,S,w,h),a=j(z,S,w,h);
if(l)console.log("Itemize",Date.now()-e,"Unknown:",y,H,i);e=Date.now();var I=T.style.yO(q,w,f,!0),E=T.style.yO(K,w,f,!0),c=new Array(y),u=new Array(y),n=new Array(y),o=new Array(y),x=new Array(y);
if(l)console.log("Dist transform",Date.now()-e);e=Date.now();var g=T.yk.qJ;for(var D=0;D<y;D++){var v=z[D],R=~~(v*h),X=v-R*w,B=I[v<<1],M=I[(v<<1)+1],r=Math.sqrt(B*B+M*M),N=E[v<<1],$=E[(v<<1)+1],eQ=Math.sqrt(N*N+$*$);
c[D]=1/r;u[D]=1/eQ;var hN=Math.floor(T.p.Ux(v*17)*H),bI=Math.floor(T.p.Ux(v*19)*i);n[D]=hN;o[D]=bI;x[D]=g(a[D*2],a[D*2+1],J[hN*2],J[hN*2+1],A[bI*2],A[bI*2+1],c[D],u[D],1e9)}var fq=[-w-1,-w,-w+1,-1,1,w-1,w,w+1];
while(Math.floor(Math.max(H,i)*Math.pow(.5,e9))>1)e9++;for(var W=0;W<Y;W++){var L=0;for(var D=0;D<y;
D++){var v=z[D],R=~~(v*h),X=v-R*w,bd=c[D],iw=u[D],d7=a[D*2],d0=a[D*2+1],gS=x[D],hN=n[D],bI=o[D],bX=1;
if(R!=0&&X!=0&&X!=w-1&&R!=f-1)for(var cf=0;cf<8;cf++){var cT=t[v+fq[cf]];if(cT==4294967295)continue;
var fU=n[cT],dX=o[cT];if(fU==hN&&dX==bI)continue;var g$=g(d7,d0,J[fU*2],J[fU*2+1],A[dX*2],A[dX*2+1],bd,iw,gS);
if(g$<gS){gS=g$;hN=fU;bI=dX}}for(var aw=0;aw<e9;aw++){var hP=~~(H*bX),eG=~~(i*bX);bX*=.5;var eB=T.p.Ux(v+W*17+aw*31),bb=T.p.Ux(v+W*29+aw*63),gx=Math.max(0,hN-hP),er=Math.min(hN+hP,H-1),ea=Math.max(0,bI-eG),hD=Math.min(bI+eG,i-1),fU=gx+~~(eB*(er-gx)),dX=ea+~~(bb*(hD-ea)),g$=g(d7,d0,J[fU*2],J[fU*2+1],A[dX*2],A[dX*2+1],bd,iw,gS);
if(g$<gS){gS=g$;hN=fU;bI=dX}}x[D]=gS;n[D]=hN;o[D]=bI;L+=gS}}if(l)console.log(L);if(l)console.log("iterations",Date.now()-e);
e=Date.now();var bP=b.slice(0);for(var D=0;D<y;D++){var iz=T.yk.alpha(a[D*2+1],J[n[D]*2+1],A[o[D]*2+1]);
bP[z[D]]=~~(.5+255*iz)}bP=T.HS.a84(bP,S,new b4(0,0,w,f),16,.01*.01);if(l)console.log("guided filter",Date.now()-e);
e=Date.now();if(P)for(var D=0;D<Q;D++)if(b[D]==255||b[D]==0)bP[D]=b[D];var iq=S.slice(0);for(var D=0;
D<y;D++){var cU=z[D],hN=O[n[D]],gS=x[D],aH=cU<<2,eK=bP[cU],h6=(eK>=250?cU:hN)<<2;iq[aH]=S[h6];iq[aH+1]=S[h6+1];
iq[aH+2]=S[h6+2]}T.y8(bP,iq,3);if(l)console.log(Date.now()-e);e=Date.now();return iq};T.yk.qJ=function(Z,S,b,Y,P,w,f,h,Q){var e=Z>>>16,l=Z&65535,O=e-(b>>>16),m=l-(b&65535),V=e-(P>>>16),q=l-(P&65535),K=Math.sqrt(O*O+m*m)*f,z=Math.sqrt(V*V+q*q)*h;
if(K+z>=Q)return 1e9;var t=T.yk.a3s(S,Y,w);return t+K+z};T.yk.a3s=function(Z,S,b){var Y=Z>>>16,P=Z>>>8&255,w=Z&255,f=S>>>16,h=S>>>8&255,Q=S&255,e=b>>>16,l=b>>>8&255,O=b&255,m=T.yk.alpha(Z,S,b),V=Y-(m*f+(1-m)*e),q=P-(m*h+(1-m)*l),K=w-(m*Q+(1-m)*O);
return Math.sqrt(V*V+q*q+K*K)};T.yk.alpha=function(Z,S,b){var Y=Z>>>16,P=Z>>>8&255,w=Z&255,f=S>>>16,h=S>>>8&255,Q=S&255,e=b>>>16,l=b>>>8&255,O=b&255,m=f-e,V=h-l,q=Q-O,K=Y-e,z=P-l,t=w-O,H=m*m+V*V+q*q,i=H==0?.5:(K*m+z*V+t*q)/H;
return Math.max(0,Math.min(1,i))};T.yk.ahY=function(Z){};T.yk.nO=function(Z,S,b,Y,P){var w=[],f=S-1,h=b-1;
for(var Q=1;Q<h;Q++)for(var e=1;e<f;e++){var D=Q*S+e;if(Z[D]==Y&&(Z[D-S-1]==P||Z[D-S]==P||Z[D-S+1]==P||(Z[D-1]==P||Z[D+1]==P)||(Z[D+S-1]==P||Z[D+S]==P||Z[D+S+1]==P)))w.push(D)}return w};
T.HS={};T.HS.a24=function(Z,S,b,Y,P){var w=b.c,f=b.v,h=w*f,Q=T.HS.Rw,e=T.f(h*4),l;T._U(e,4294967295);
var O=b,m=Z,V=S,q=Y;T.y8(Z,e,0);l=T.Y_(e,b);l=T.Y_(l.j$,l.rect);O=l.rect;q=Y>>>2;console.log(O,q);m=T.f(O.X());
T.to(l.j$,m,0);T.y8(S,e,0);l=T.Y_(e,b);l=T.Y_(l.j$,l.rect);V=T.f(O.X());T.to(l.j$,V,0);var K=T.HS.a6B(m,V,O,q,P),z=K[0],t=K[1],H=new b4(0,0,O.c*2,O.v*2);
z=Q(z,O,H,!0);z=Q(z,H,b,!0);t=Q(t,O,H,!0);t=Q(t,H,b,!0);var i=T.f(h);for(var D=0;D<h;D++)i[D]=Math.max(0,Math.min(255,Math.floor(.5+(z[D]*S[D]+255*t[D]))));
return i};T.HS.Rw=function(Z,S,b,Y){var P=b.c,w=b.v,f=S.c,h=S.v,Q=T.HS.Lx,e=new Float32Array(P*w);for(var l=0;
l<h;l++){var O=(l+l)*P;for(var m=0;m<f;m++){if(!0||m==0||l==0||m==f-1||l==h-1)e[O]=e[O+1]=e[O+P]=e[O+P+1]=Z[l*f+m];
else{e[O]=Q(m+.25,l+.25,Z,f,h);e[O+1]=Q(m+.75,l+.25,Z,f,h);e[O+P]=Q(m+.25,l+.75,Z,f,h);e[O+P+1]=Q(m+.75,l+.75,Z,f,h)}O+=2}}return e};
T.HS.Lx=function(Z,S,b,Y,P){Z-=.499999;S-=.499999;var w=Math.floor(Z),f=Math.floor(S),h=f*Y+w,Q=Z-w,e=S-f,l=(1-e)*(1-Q),O=(1-e)*Q,m=e*(1-Q),V=e*Q;
if(b[h]==null||b[h+Y+1]==null){console.log(Z,S,Y,P);throw"e"}return l*b[h+0]+O*b[h+1]+m*b[h+Y+0]+V*b[h+Y+1]};
T.HS.a6B=function(Z,S,b,Y,P){var w=b.c,f=b.v,h=w*f,Q=T.HS.zs,e=T.HS.f,l=T.rr._3,O=T.HS.OW,S=Q(S),Z=Q(Z),m=e(h);
l(S,m,b,Y);var V=e(h);l(Z,V,b,Y);var q=e(h);O(S,S,q);l(q,q,b,Y);var K=e(h);O(S,Z,K);l(K,K,b,Y);var z=e(h),t=e(h);
for(var D=0;D<h;D++){var H=m[D],i=V[D],y=q[D]-H*H,j=K[D]-H*i,J=j/(y+P),A=i-J*H;z[D]=J;t[D]=A}var a=e(h);
l(z,a,b,Y);var I=e(h);l(t,I,b,Y);return[a,I]};T.HS.a84=function(Z,S,b,Y,P){var w=b.c,f=b.v,h=w*f,Q=T.HS.Rw,e=Date.now(),l=!1,O=b,m=Z,V=S,q=Y;
O=new b4(0,0,w>>>2,f>>>2);q=Y>>>2;m=T.HS.adj(Z,w,f);V=T.HS.aiG(S,w,f);if(l)console.log(Date.now()-e);
e=Date.now();var K=T.HS.a7$(m,V,O,q,P),z=K[0],t=K[1],H=K[2],i=K[3];if(l)console.log(Date.now()-e);e=Date.now();
var y=T.f(h);for(var j=0;j<f;j++)for(var J=0;J<w;J++){var D=j*w+J,A=(j>>>2)*(w>>>2)+(J>>>2),a=D<<2,I=z[A]*S[a]+t[A]*S[a+1]+H[A]*S[a+2]+i[A]*255;
y[D]=Math.max(0,Math.min(255,~~(.5+I)))}if(l)console.log(Date.now()-e);e=Date.now();return y};T.HS.adj=function(Z,S,b){var Y=S>>>2,P=b>>>2,w=T.f(S*b);
for(var f=0;f<P;f++)for(var h=0;h<Y;h++)w[f*Y+h]=Z[f*S+h<<2];return w};T.HS.aiG=function(Z,S,b){var Y=S>>>2,P=b>>>2,w=T.f(S*b*4);
for(var f=0;f<P;f++)for(var h=0;h<Y;h++){var Q=f*Y+h<<2,e=f*S+h<<4;w[Q]=Z[e];w[Q+1]=Z[e+1];w[Q+2]=Z[e+2];
w[Q+3]=Z[e+3]}return w};T.HS.a7$=function(Z,S,b,Y,P){var w=b.c,f=b.v,h=w*f,Q=T.HS.zs,e=T.HS.f,l=T.rr._3,O=T.HS.OW,Z=Q(Z),m=new T.XA(w*f);
T.Tr(S,m);var S=[Q(m.h),Q(m.l),Q(m.O)],V=T.HS.a2T(Z,S,b,Y,P),q=e(h);l(Z,q,b,Y);var K=e(h);O(S[0],Z,K);
l(K,K,b,Y);var z=e(h);O(S[1],Z,z);l(z,z,b,Y);var t=e(h);O(S[2],Z,t);l(t,t,b,Y);var H=e(h),i=e(h),y=e(h),j=e(h);
for(var D=0;D<h;D++){var J=q[D],A=V.HH[D],a=V.XZ[D],I=V.qR[D],E=K[D]-A*J,c=z[D]-a*J,u=t[D]-I*J;H[D]=V.a14[D]*E+V.Kp[D]*c+V.cg[D]*u;
i[D]=V.Kp[D]*E+V.a9L[D]*c+V.WP[D]*u;y[D]=V.cg[D]*E+V.WP[D]*c+V.akZ[D]*u;j[D]=J-H[D]*A-i[D]*a-y[D]*I}l(H,H,b,Y);
l(i,i,b,Y);l(y,y,b,Y);l(j,j,b,Y);return[H,i,y,j]};T.HS.a2T=function(Z,S,b,Y,P){var w=b.c,f=b.v,h=w*f,Q=T.HS.f,e=T.rr._3,l=T.HS.OW,O={};
O.HH=Q(h);e(S[0],O.HH,b,Y);O.XZ=Q(h);e(S[1],O.XZ,b,Y);O.qR=Q(h);e(S[2],O.qR,b,Y);var m=Q(h);l(S[0],S[0],m);
e(m,m,b,Y);var V=Q(h);l(S[0],S[1],V);e(V,V,b,Y);var q=Q(h);l(S[0],S[2],q);e(q,q,b,Y);var K=Q(h);l(S[1],S[1],K);
e(K,K,b,Y);var z=Q(h);l(S[1],S[2],z);e(z,z,b,Y);var t=Q(h);l(S[2],S[2],t);e(t,t,b,Y);O.a14=m;O.Kp=V;
O.cg=q;O.a9L=K;O.WP=z;O.akZ=t;for(var D=0;D<h;D++){var H=O.HH[D],i=O.XZ[D],y=O.qR[D],j=m[D]-H*H+P,J=V[D]-H*i,A=q[D]-H*y,a=K[D]-i*i+P,I=z[D]-i*y,E=t[D]-y*y+P,c=a*E-I*I,u=I*A-J*E,n=J*I-a*A,o=j*E-A*A,x=A*J-j*I,g=j*a-J*J,v=c*j+u*J+n*A,R=1/v;
O.a14[D]=c*R;O.Kp[D]=u*R;O.cg[D]=n*R;O.a9L[D]=o*R;O.WP[D]=x*R;O.akZ[D]=g*R}return O};T.HS.f=function(Z){return new Float32Array(Z)};
T.HS.zs=function(Z){var S=Z.length,b=new Float32Array(S);for(var D=0;D<S;D++)b[D]=Z[D]*(1/255);return b};
T.HS.OW=function(Z,S,b){for(var D=0;D<Z.length;D++)b[D]=Z[D]*S[D]};T.ea={};T.ea.ej=function(Z,S,b,Y){var P=Z[S]-b[Y],w=Z[S+1]-b[Y+1],f=Z[S+2]-b[Y+2];
return Math.sqrt(P*P+w*w+f*f)*(1/441.7)};T.ea.getSelection=function(Z,S,b){var Y=S*b,P=T.f(Y),w=!1,f=Math.round(b*.7),h=1,Q=new Uint32Array(12),e=T.f(12);
for(var l=0;l<f;l++)for(var O=0;O<S;O++){if(O<h||l<h||O>S-h-1||l>b-h-1){var D=l*S+O,m=D<<2,V=0;if(l<h)V=4;
else if(O>S-h-1)V=8;Q[V]+=Z[m];Q[V+1]+=Z[m+1];Q[V+2]+=Z[m+2];Q[V+3]++;P[D]=255}}for(var D=0;D<12;D+=4)for(var q=0;
q<3;q++)e[D+q]=Q[D+q]/Q[D+3];var K=new Float32Array(Y);for(var D=0;D<Y;D++){var m=D*4,z=T.ea.ej(Z,m,e,0),t=T.ea.ej(Z,m,e,4),H=T.ea.ej(Z,m,e,8),i=Math.max(z,Math.max(t,H));
K[D]=z+t+H-i}T.ea.TU(K);var y=Date.now(),j=new Float32Array(Y),J=[],A=T.f(Y);for(var D=0;D<3;D++){T.to(Z,A,D);
var a=new Uint16Array(Y);J.push(a);T.ea.aj5(A,P,S,b,a)}if(w)console.log("MBD",Date.now()-y);y=Date.now();
for(var D=0;D<Y;D++)j[D]=J[0][D]+J[1][D]+J[2][D];T.ea.TU(j);for(var D=0;D<Y;D++)j[D]+=.4*K[D];var I=S>>>1,f=b>>>1,E=1/Math.sqrt(I*I+f*f);
for(var l=0;l<b;l++)for(var O=0;O<S;O++){var c=O-I,u=l-f,n=1-Math.sqrt(c*c+u*u)*E;j[l*S+O]*=n}if(w)console.log("Centeredness",Date.now()-y);
y=Date.now();for(var D=0;D<Y;D++)P[D]=j[D]*255;var o=Math.round(S/120),x=Math.round(o*.8);if(w)console.log(o,x);
T.gf.jt(P,A,S,b,o,T.gf.z8,[]);P.set(A);if(w)console.log("erosion",Date.now()-y);y=Date.now();for(var D=0;
D<Y;D++)j[D]=P[D];T.ea.TU(j);var g=T.f(256);for(var D=0;D<256;D++)g[D]=256/(1+Math.exp(-20*(D/255-.5)));
for(var D=0;D<Y;D++){var v=~~(j[D]*255+.5);P[D]=g[v]}if(w)console.log("Simoid",Date.now()-y);y=Date.now();
return P};T.ea.TU=function(Z){var S=Z.length,b=0;for(var D=0;D<S;D++)b=Math.max(b,Z[D]);var Y=1/b;for(var D=0;
D<S;D++)Z[D]=Z[D]*Y};T.ea.aj5=function(Z,S,b,Y,P){var w=b*Y,f=Z.slice(0),h=Z.slice(0);for(var D=0;D<w;
D++)P[D]=S[D]==255?0:65535;T.ea.QL(Z,h,f,P,b,Y);T.ea.UL(Z,h,f,P,b,Y);T.ea.QL(Z,h,f,P,b,Y);T.ea.UL(Z,h,f,P,b,Y);
return P};T.ea.QL=function(Z,S,b,Y,P,w){for(var f=1;f<P;f++)T.ea.gW(f,-1,Z,S,b,Y);for(var h=1;h<w;h++){T.ea.gW(h*P,-P,Z,S,b,Y);
for(var f=1;f<P;f++){var D=h*P+f;T.ea.gW(D,-1,Z,S,b,Y);T.ea.gW(D,-P,Z,S,b,Y)}}};T.ea.UL=function(Z,S,b,Y,P,w){for(var f=P-2;
f>=0;f--)T.ea.gW(P*w-P+f,1,Z,S,b,Y);for(var h=w-2;h>=0;h--){T.ea.gW(h*P+P-1,P,Z,S,b,Y);for(var f=P-2;
f>=0;f--){var D=h*P+f;T.ea.gW(D,1,Z,S,b,Y);T.ea.gW(D,P,Z,S,b,Y)}}};T.ea.gW=function(D,Z,S,b,Y,P){var w=D+Z,f=S[D],h=b[w],Q=Y[w];
if(h<f)h=f;else if(f<Q)Q=f;var e=h-Q;if(P[w]!=65535&&e<P[D]){P[D]=e;b[D]=h;Y[D]=Q}};T.Sj={};T.Sj.filter=function(Z,S,b,Y){var P=S.c,w=S.v,f=P*w,h=Y[0],Q=Y[1],e=Y[2],l=Y[3],O=Y[4],m=Y[5],V=Y[6],q=Date.now(),K=new Float32Array(P*w*4);
T.Sj.a4D(Z,P,w,K);var z=Math.ceil(h*Math.sqrt(-2*Math.log(.1))),t=new ArrayBuffer(f*4),H=new Float32Array(t),i=new Float32Array(f),y=new Float32Array(f);
for(var D=0;D<f;D++){var j=D*4;H[D]=K[j];i[D]=K[j+1];y[D]=K[j+2]}T.rr.wr(H,H,S,z*1/2.4,2);T.rr.wr(i,i,S,z*1/2.4,2);
T.rr.wr(y,y,S,z*1/2.4,2);for(var D=0;D<f;D++){var j=D*4;K[j]=H[D];K[j+1]=i[D];K[j+2]=y[D]}var J=new Uint8Array(t);
for(var D=0;D<f;D++){var j=D*4,A=D*4,H=K[j],i=K[j+1],y=K[j+2],a=Math.sqrt((H-y)*(H-y)+4*i*i),I=(H+y+a)*.5,E=(H+y-a)*.5,c=E-y,u=i,n=c*c+u*u;
if(n!=0){var o=Math.sqrt(n),x=1/o;c*=x;u*=x}J[A]=128+127*c;J[A+1]=128+127*u}var g=1.3*Q+2,v=l*(2/10),R=Z.slice();
if(p.lc){var X=new Float32Array([1/P,1/w]),B=p._w(0,P,w);B.set(R);var M=p._w(1,P,w);M.set(J);p.Kd(B,S);
if(O){B.k1(S);p.filter.H2({type:p.filter.n1,ZU:X,a1P:1/e,a3D:v},B.J5)}B.k1(S);p.filter.H2({type:p.filter.GL,eq:M.t_,ZU:X,an0:g,aiv:2},B.J5);
if(O){B.k1(S);p.filter.H2({type:p.filter.Vk,ZU:X,a66:new Float32Array(V),amB:m},B.J5)}B.get(b)}else{if(O)T.Sj.QB(1/e,v,R,P,w);
T.Sj.GL(R,b,J,P,w,g);if(O)T.Sj.al$(P,w,b,V,m)}var r=f*4;for(var D=3;D<r;D+=4)b[D]=Z[D]};T.Sj.GL=function(Z,S,b,Y,P,w){var f=Math.ceil(2*w),h=-1/(2*w*w),Q=[],e=1;
for(var D=0;D<f+20;D++)Q[D]=Math.exp(D*D*h);var l=[0,0,0,0];for(var O=0;O<P;O++){for(var m=0;m<Y;m++){var V=O*Y+m,q=V*4,K=1,z=Z[q],t=Z[q+1],H=Z[q+2],i=Z[q+3],y=(b[q]-128)*(1/127),j=(b[q+1]-128)*(1/127),J=y,A=j,a=m==0?.51:.49,I=O==0?.51:.49;
for(var D=0;D<2;D++){var E=m+a,c=O+I,u=0;while(u<f){if(E<.5||Y-.5<E||c<.5||P-.5<c)break;var n=~~E,o=~~c,x=o*Y+n,g=x*4,v=(b[g]-128)*(1/127),R=(b[g+1]-128)*(1/127);
if(v*J+R*A<0){v=-v;R=-R}J=v;A=R;E+=e*v;c+=e*R;if(E<.5||Y-.5<E||c<.5||P-.5<c)break;var X=~~E,B=~~c,M=B*Y+X<<2;
u+=e;var r=Q[~~u];T.J.bt(E,c,Z,Y,P,l);z+=l[0]*r;t+=l[1]*r;H+=l[2]*r;i+=l[3]*r;K+=r}J=-y;A=-j}var N=1/K;
S[q]=~~(.5+z*N);S[q+1]=~~(.5+t*N);S[q+2]=~~(.5+H*N);S[q+3]=~~(.5+i*N)}}};T.Sj.al$=function(Z,S,b,Y,P){for(var w=0;
w<S;w++)for(var f=0;f<Z;f++){var h=w*Z+f<<2,Q=1+T.Sj.afX(f,w,b,Z,S,Y)*P;b[h]=Math.max(0,Math.min(255,b[h]*Q));
b[h+1]=Math.max(0,Math.min(255,b[h+1]*Q));b[h+2]=Math.max(0,Math.min(255,b[h+2]*Q))}};T.Sj.afX=function(Z,S,b,Y,P,w){var f=b[(S*Y+Math.max(0,Z-1))*4+3],h=b[(S*Y+Math.min(Y-1,Z+1))*4+3],Q=b[(Math.max(0,S-1)*Y+Z)*4+3],e=b[(Math.min(P-1,S+1)*Y+Z)*4+3],l=.7,O=(h-f)*(1/255),m=.7,V=(e-Q)*(1/255),q=-O*m,K=-l*V,z=l*m,t=Math.sqrt(q*q+K*K+z*z),H=1/t,i=q*H,y=K*H,j=z*H,J=w[0]*i+w[1]*y+w[2]*j;
return J};T.Sj.QB=function(Z,S,b,Y,P){function w(h,e,l){return Math.max(e,Math.min(l,h))}for(var f=0;
f<P;f++)for(var h=0;h<Y;h++){var Q=T.Sj.a8D(h+.5,f+.5,Z,S);b[(f*Y+h)*4+3]=Math.max(0,Math.min(255,Q*255))}};
T.Sj.a8D=function(Z,S,b,Y){function P(A,a,I){return(1-I)*A+I*a}var w=(Z+613)*b,f=(S+117)*b,h=~~w,Q=~~f,e=w-h,l=f-Q,O=Math.sin(11),m=Math.cos(h)*O,V=Math.cos(h+1)*O,q=Math.cos(Q)*O,K=Math.cos(Q+1)*O,C=T.Sj.hash(m,q),z=T.Sj.hash(V,q),t=T.Sj.hash(m,K),H=T.Sj.hash(V,K),i=P(C,z,e),y=P(t,H,e),j=P(i,y,l);
j=j<.5?0:1;var J=j+Y*T.Sj.hash(Math.cos(w)*O,Math.cos(f)*O);return J*(1/3)};T.Sj.hash=function(Z,S){var b=Math.sin(Z*11.697096+S*73.32456)*12157.47691;
return b-Math.floor(b)};T.Sj.a4D=function(Z,S,b,Y){var P=[-1,0,1,-2,0,2,-1,0,1],w=[-1,-2,-1,0,0,0,1,2,1],f=S-1,h=b-1,Q=S*4;
for(var e=1;e<h;e++)for(var l=1;l<f;l++){var D=e*S+l,O=D*4,m=T.Sj.nW(Z,O,Q,P),V=T.Sj.nW(Z,O,Q,w),q=T.Sj.nW(Z,O+1,Q,P),K=T.Sj.nW(Z,O+1,Q,w),z=T.Sj.nW(Z,O+2,Q,P),t=T.Sj.nW(Z,O+2,Q,w);
Y[O]=m*m+q*q+z*z;Y[O+1]=m*V+q*K+z*t;Y[O+2]=V*V+K*K+t*t}T.Sj.a9e(Y,S,b)};T.Sj.nW=function(Z,S,b,Y){return Z[S-b-4]*Y[0]+Z[S-b]*Y[1]+Z[S-b+4]*Y[2]+Z[S-4]*Y[3]+Z[S]*Y[4]+Z[S+4]*Y[5]+Z[S+b-4]*Y[6]+Z[S+b]*Y[7]+Z[S+b+4]*Y[8]};
T.Sj.a9e=function(Z,S,b){function Y(Q,D,e){var l=D*4,O=e*4;Q[O]=Q[l];Q[O+1]=Q[l+1];Q[O+2]=Q[l+2]}var P=S-1,w=b-1;
Y(Z,S+1,0);Y(Z,2*S-2,S-1);for(var f=1;f<P;f++)Y(Z,S+f,f);for(var h=1;h<w;h++){Y(Z,h*S+1,h*S);Y(Z,h*S+S-2,h*S+S-1)}for(var f=1;
f<P;f++)Y(Z,(b-2)*S+f,(b-1)*S+f);Y(Z,(h-2)*S+1,(h-1)*S);Y(Z,(h-1)*S-2,h*S-1)};T.KJ={};T.KJ.Uv=function(Z,S,b,Y){var P=Z[S*2],w=Z[S*2+1],f=Z[b*2],h=Z[b*2+1],Q=Z[Y*2],e=Z[Y*2+1];
return P*h+f*e+Q*w-Q*h-f*w-P*e};T.KJ.VM=function(Z,S){var b=[],Y=[],P=[],w={};for(var D=0;D<S.length;
D+=3){var f=~~(D*(1/3)),h=S[D+0],Q=S[D+1],e=S[D+2],l=T.KJ.Uv(Z,h,Q,e);if(l>0){var O=Q;Q=e;e=O}var m=w[e+"-"+Q],V=w[Q+"-"+h],q=w[h+"-"+e],K=[e,m,f,null],z=[Q,V,f,K],t=[h,q,f,z];
K[3]=t;if(m)m[1]=K;if(V)V[1]=z;if(q)q[1]=t;w[e+"-"+h]=t;w[h+"-"+Q]=z;w[Q+"-"+e]=K;b[h]=z;P[D]=z;b[Q]=K;
P[D+1]=K;b[e]=t;P[D+2]=t;Y[f]=z}return{A5:b,FQ:Y,X7:P}};T.KJ.aaW=function(Z){var S=[],b=Z.FQ;for(var D=0;
D<b.length;D++){var Y=b[D];S.push(Y[0]);Y=Y[3];S.push(Y[0]);Y=Y[3];S.push(Y[0])}return S};T.KJ.agL=function(Z,S,b,Y){var P=Z[S*2],w=Z[S*2+1],f=Z[b*2],h=Z[b*2+1],Q=Z[Y*2],e=Z[Y*2+1],l=f-P,O=h-w,m=Q-P,V=e-w,q=l*(P+f)+O*(w+h),K=m*(P+Q)+V*(w+e),z=2*(l*(e-h)-O*(Q-f));
if(Math.abs(z)<1e-5){var t=Math.min(P,f,Q),H=Math.min(w,h,e),i=(Math.max(P,f,Q)-t)*.5,y=(Math.max(w,h,e)-H)*.5;
return[t+i,H+y,i*i+y*y,1]}var j=(V*q-O*K)/z,J=(l*K-m*q)/z,i=j-P,y=J-w;return[j,J,i*i+y*y,0]};T.KJ.acF=function(Z,S,b){var Y=b[1],P=b[3],w=P[3],f=Y[3],h=f[3],Q=b[2],e=Y[2],l=b[0],O=Y[0],m=P[0],V=f[0],q=T.KJ.agL(Z,O,V,m),K=Z[l*2]-q[0],z=Z[l*2+1]-q[1],t=K*K+z*z>q[2]&&q[3]==0&&T.KJ.Uv(Z,V,l,m)<0&&T.KJ.Uv(Z,m,O,V)<0;
if(t){b[0]=m;Y[0]=V;b[3]=w;w[3]=f;f[3]=b;Y[3]=h;h[3]=P;P[3]=Y;P[2]=e;f[2]=Q;S.FQ[e]=h;S.FQ[Q]=w;S.A5[O]=f;
S.A5[l]=P}return t};T.KJ.a6h=function(Z,S,b){var Y=Z[S*2]-Z[b*2],P=Z[S*2+1]-Z[b*2+1];return Math.sqrt(Y*Y+P*P)};
T.KJ.abZ=function(Z,S,b){var Y=b[1],P=b[3],w=P[3],f,h,Q=b[2],e,l=b[0],O=w[0],m=P[0],V;if(Y){f=Y[3];h=f[3];
e=Y[2];V=f[0]}var q=Z.length>>>1;Z[2*q]=(Z[2*O]+Z[2*l])*.5;Z[2*q+1]=(Z[2*O+1]+Z[2*l+1])*.5;if(!0){var K=Q,z=b,t=S.FQ.length,H=[q,null,K,z],i=[m,H,t,w];
H[1]=i;var y=[q,null,t,i];P[3]=H;w[3]=y;w[2]=t;S.FQ[K]=P;S.FQ[t]=y;S.A5[l]=P;S.A5[m]=w;S.X7.push(H,i,y)}if(Y){var j=e,J=Y,A=t+1;
y[1]=J,J[1]=y;var a=[q,null,j,J],I=[V,a,A,h];a[1]=I;var E=[q,z,A,I];z[1]=E;f[3]=a;h[3]=E;h[2]=A;S.FQ[j]=f;
S.FQ[A]=h;S.A5[O]=f;S.A5[V]=h;S.X7.push(a,I,E)}S.A5[q]=z};T.KJ.Rr=function(Z,S){var b=0;while(!0){var Y=b;
for(var D=0;D<S.X7.length;D++){var P=S.X7[D];if(P[1]==null)continue;var w=T.KJ.acF(Z,S,P);if(w){b++;
break}}if(Y==b)break}return b!=0};T.KJ.adE=function(Z,S,b,Y){var P=0;for(var D=0;D<Y;D++){var w=null,f=0;
for(var h=0;h<S.X7.length;h++){var Q=S.X7[h],e=T.KJ.a6h(Z,Q[0],Q[3][3][0])*(Q[1]?1:2);if(e>f){w=Q;f=e}}if(f>b){T.KJ.abZ(Z,S,w);
P++}}return P!=0};T.KJ.a9C=function(Z,S){var b=[],m=0;for(var D=0;D<Z.length;D++)b.push(0);for(var D=0;
D<S.X7.length;D++){var Y=S.X7[D],P=Y[0],w=Y[3][3][0],f=Z[P*2],h=Z[P*2+1],Q=Z[w*2],e=Z[w*2+1],l=f-Q,O=h-e;
b[P*2]+=-l;b[P*2+1]+=-O;b[w*2]+=l;b[w*2+1]+=O}for(var D=0;D<Z.length;D+=2){var V=D>>>1,q=S.A5[V],Y=q,K=!0;
do{if(Y[1]==null){K=!1;break}Y=Y[1][3]}while(Y!=q);if(K){var z=.02;Z[D]+=z*b[D];Z[D+1]+=z*b[D+1];m+=z*(b[D]*b[D]+b[D+1]*b[D+1])}}return m};
T.KJ.alU=function(Z,S,b){var Y=T.z.$R(Z),P=T.KJ.VM(Z,S);T.KJ.Rr(Z,P);for(var w=0;w<300;w++){var f=!1,h=!1;
f=T.KJ.adE(Z,P,b,5);if(f)h=T.KJ.Rr(Z,P);var Q=T.KJ.a9C(Z,P);if(!f&&!h&&Q<1e-4){break}}return T.KJ.aaW(P)};
T.yF={};T.yF.R7=function(Z){var S=Z.B6,b=Z.Bh,Y=Z.ZG,P=Z.Fh,w=Z.Tn,f=Z.he,h=Z.Lk,Q=T.Ig.YS,H,i,y=0;function e(C){var iw=new Array(C);
for(var D=0;D<C;D++)iw[D]=0;return iw}var l=b.length>>>1,O=e(S.xF*2),m=e(S.xF),V=e(S.xF),q=Date.now();
for(var D=0;D<Z.YG.length;D++){var K=S.adS+D,z=S.Yu*(f[D*2]+h[D*2]),t=S.Yu*(f[D*2+1]+h[D*2+1]);O[K*2]=z;
O[K*2+1]=t;m[K]=z;V[K]=t}S.ab5.La(P,S.aon.YS(O),.01,H,i);for(var D=0;D<S.a8h.X7.length;D++){var j=S.a8h.X7[D],J=j[3][3][0],A=j[0],a=j[3][0],I=j[1]?j[1][3][0]:a;
if(j[1]&&J>A)continue;var E=b[J*2],c=b[J*2+1],u=b[A*2],n=b[A*2+1],o=P[J*2],x=P[J*2+1],g=P[A*2],v=P[A*2+1],R=P[a*2],X=P[a*2+1],B=P[I*2],M=P[I*2+1],N=[o,x,g,v,R,X];
if(j[1])N.push(B,M);var $=Q(S.ajS[y],N),eQ=$[0],hN=$[1],fq=1/Math.sqrt(eQ*eQ+hN*hN);eQ*=fq;hN*=fq;var e9=u-E,W=n-c;
m[y]=eQ*e9+hN*W;V[y]=-hN*e9+eQ*W;y++}var L=new Array(l),bd=new Array(l);for(var D=0;D<l;D++){L[D]=w[D*2];
bd[D]=w[D*2+1]}S.aiC.La(L,S.akS.YS(m),.5);S.aiC.La(bd,S.akS.YS(V),.5);for(var D=0;D<l;D++){w[D*2]=L[D];
w[D*2+1]=bd[D]}};T.yF.Kt=function(Z){var S=Z.Bh,b=Z.ZG,Y=Z.YG,P=T.Ig.multiply,w=Date.now(),f=T.KJ.VM(S,b),h=S.length>>>1,Q=0,q=0,hN=1e3;
for(var D=0;D<f.X7.length;D++)Q+=f.X7[D][1]?.5:1;var e=Q+Y.length,l=[],O=new T.nh(e*2,h*2),m=new T.nh(e,h),V=[[[-1,0,1,0,0,0],[0,-1,0,1,0,0]],[[-1,0,1,0,0,0,0,0],[0,-1,0,1,0,0,0,0]]],K=[],z=[];
for(var D=0;D<f.X7.length;D++){var t=f.X7[D],H=t[3][3][0],i=t[0],y=t[3][0],j=t[1]?t[1][3][0]:y;if(t[1]&&H>i)continue;
var J=S[H*2],A=S[H*2+1],a=S[i*2],I=S[i*2+1],E=S[y*2],c=S[y*2+1],u=S[j*2],n=S[j*2+1],o=[[J,A,1,0],[A,-J,0,1],[a,I,1,0],[I,-a,0,1],[E,c,1,0],[c,-E,0,1]];
if(t[1])o.push([u,n,1,0],[n,-u,0,1]);var x=T.Ig.L8(o),g=P(linear.invert(P(x,o)),x);g.pop();g.pop();l.push(g);
var v=a-J,R=I-A,X=V[t[1]?1:0];X=T.Ig.jZ(X,P([[v,R],[R,-v]],g));var B=[H*2,H*2+1,i*2,i*2+1,y*2,y*2+1,j*2,j*2+1],M=t[1]?8:6,N=[];
for(var $=0;$<M;$++)N.push([B[$],X[0][$],X[1][$]]);N.sort(function(iw,d7){return iw[0]-d7[0]});for(var eQ=0;
eQ<2;eQ++){for(var $=0;$<M;$++){K[$]=N[$][0];z[$]=N[$][1+eQ]}O.c7(z,K,M)}if(H<i)m.c7([-1,1],[H,i],2);
else m.c7([1,-1],[i,H],2);q++}for(var D=0;D<Y.length;D++){var fq=Y[D];O.c7([hN],[fq*2],1);O.c7([hN],[fq*2+1],1);
m.c7([hN],[fq],1)}var e9=O.L8(),W=e9.Cm(e9),L=m.L8(),bd=L.Cm(L);return{adS:Q,xF:e,aon:e9,ab5:W,akS:L,aiC:bd,a8h:f,ajS:l,Yu:hN}};
T.yF.a8A=function(Z,S,b,Y,P){var w=new b4(0,0,S,b),f=T.f(w.X());T.to(Z,f,3);T.round(f,70);var h=T.fD(f,w),Q=[.1,.065,.035][Y]*Math.max(h.c,h.v),e=P+1,l=S+e*2,O=b+e*2,m=new b4(-e,-e,l,O),V=T.f(m.X());
T.JS(f,w,V,m);var q=V.slice(0);for(var K=0;K<P;K++){for(var z=1;z<O-1;z++){for(var t=1;t<l-1;t++){var D=z*l+t;
q[D]=V[D-l]|V[D-1]|V[D]|V[D+1]|V[D+l]}}var H=q;q=V;V=H}var i=hQ.Se(V,l,O,Math.round(h.X()*5e-4)),y=hQ.zl(i),j=new fR(1,0,0,1,-e,-e);
for(var D=0;D<y.length;D++){var J=y[D];T.z.A(J.path.H,j,J.path.H);J.Bh=T.yF.akx(J.path);J.ZG=T.z.ao7(J.Bh);
J.ZG=T.KJ.alU(J.Bh,J.ZG,Q)}return y};T.yF.akx=function(Z){var S=[],b=Z.H,Y=Z.K.length-1,P=0,w=0;for(var f=0;
f<Y;f++){var D=f*6,h=b[D+6]-b[D+0],Q=b[D+7]-b[D+1],e=Math.ceil(Math.sqrt(h*h+Q*Q));for(var l=0;l<e;l++){var O=l/e,m=1-O,V=m*m*m*b[D+0]+3*m*m*O*b[D+2]+3*m*O*O*b[D+4]+O*O*O*b[D+6],q=m*m*m*b[D+1]+3*m*m*O*b[D+3]+3*m*O*O*b[D+5]+O*O*O*b[D+7];
S.push(V,q);P=V;w=q}}S=T.z.sW(S,1);var K=[],z=S.length;for(var D=0;D<z;D+=2){var q=S.pop(),V=S.pop();
K.push(V,q)}return K};T.yF.aok=function(Z,S,b,Y){function P(a,I,E,c,u){var n=u[a*2]-u[I*2],o=u[a*2+1]-u[I*2+1],x=Math.sqrt(n*n+o*o);
if(E[a].indexOf(I)==-1){E[a].push(I);c[a].push(x)}if(E[I].indexOf(a)==-1){E[I].push(a);c[I].push(x)}}var w=Z.length>>>1,f=new Array(w);
if(b.length==0){f.fill(0);return f}var h=new Array(w),Q=new Array(w);for(var D=0;D<w;D++){h[D]=[];Q[D]=[]}for(var D=0;
D<S.length;D+=3){P(S[D],S[D+1],h,Q,Z);P(S[D],S[D+2],h,Q,Z);P(S[D+1],S[D+2],h,Q,Z)}var e=new Float64Array(w*2),l=new Uint32Array(w*2);
e.fill(1e9);var O=new Uint8Array(w);for(var m=0;m<b.length;m++){O.fill(0);var V=["---",[0,b[m]]];while(V.length!=1){var q=T.zF.a3i(V),K=q[0],z=q[1];
if(O[z]==1)continue;var t=z<<1;if(K<e[t]){e[t+1]=e[t];l[t+1]=l[t];e[t]=K;l[t]=m}else if(K<e[t+1]){e[t+1]=K;
l[t+1]=m}O[z]=1;var H=h[z],i=Q[z];for(var D=0;D<H.length;D++){var y=H[D];if(O[y]!=1){T.zF.adH(V,[K+i[D],y])}}}}for(var D=0;
D<w;D++){var t=D<<1,j=e[t],J=e[t+1],A=1/(j+J);f[D]=(1-j*A)*Y[l[t]]+(1-J*A)*Y[l[t+1]]}return f};T.yF.ad1=function(Z){var S={K:[],H:[]},b=[Z];
while(b.length!=0){var Y=b.pop(),P=Y.NA;if(Y.ahF instanceof Array||Y.a20 instanceof Array){S.K.push("M","L","L","L","Z");
S.H.push(P[0],P[1],P[2],P[1],P[2],P[3],P[0],P[3])}else b.push(Y.ahF,Y.a20)}return S};T.yF.PG=function(Z,S,b,Y,P,w,f,h,Q,e){var l=Math.round(e.length/3),O=new Array(l);
for(var D=0;D<l;D++)O[D]=D;O.sort(function(V,q){return Q[e[V*3]]-Q[e[q*3]]});for(var D=0;D<l;D++){var m=O[D]*3;
T.yF.afB(e[m]*2,e[m+1]*2,e[m+2]*2,f,h,Z,S,b,Y,P,w)}};T.yF.afB=function(Z,S,b,Y,P,w,f,h,Q,e,l){var O=T.yF.Uu,m=[Z,S,b,1.2,1.2,1.2,0],V=[0,0,0,0],q=P[Z],K=P[Z+1],z=P[S],t=P[S+1],H=P[b],i=P[b+1],y=Math.max(0,Math.min(f-1,Y[Z])),j=Math.max(0,Math.min(f-1,Y[S])),J=Math.max(0,Math.min(f-1,Y[b])),A=Math.max(0,Math.min(h-1,Y[Z+1])),a=Math.max(0,Math.min(h-1,Y[S+1])),I=Math.max(0,Math.min(h-1,Y[b+1])),E=z-q,c=t-K,u=H-q,n=i-K,o=1/(E*n-u*c+1e-9),x=Math.max(0,Math.floor(Math.min(q,z,H))),g=Math.min(e,Math.ceil(Math.max(q,z,H))),v=Math.max(0,Math.floor(Math.min(K,t,i))),R=Math.min(l,Math.ceil(Math.max(K,t,i)));
for(var X=v;X<R;X++)for(var B=x;B<g;B++){var M=B+.5-q,r=X+.5-K,N=(M*n-u*r)*o,$=(E*r-M*c)*o;if(N>=0&&$>=0&&N+$<=1){var eQ=1-N-$,hN=y*eQ+j*N+J*$,bI=A*eQ+a*N+I*$;
T.J.bt(hN,bI,w,f,h,V);T.yF.agz(V,Q,X*e+B<<2)}}};T.yF.agz=function(Z,S,b){var Y=S[b],P=S[b+1],w=S[b+2],f=S[b+3],h=1-Z[3]*(1/255);
S[b]=~~(.5+Z[0]+Y*h);S[b+1]=~~(.5+Z[1]+P*h);S[b+2]=~~(.5+Z[2]+w*h);S[b+3]=~~(.5+Z[3]+f*h)};T.yF.Uu=function(){var Z=function(b,Y,P,w){var f=w[0],h=w[1],Q=w[2],e=b[f+0],l=b[f+1],O=b[h+0],m=b[h+1],V=b[Q+0],q=b[Q+1],K=O-e,z=m-l,t=V-e,H=q-l,i=Y-e,y=P-l,j=K*H-t*z,J=1/(j+1e-9),A=(i*H-t*y)*J,a=(K*y-i*z)*J;
if(A>=0&&a>=0&&A+a<=1){w[3]=1-A-a;w[4]=A;w[5]=a;return 1}return 0},S=function(b,Y,P,w){var f=[0,0,0,0,0,0];
for(var D=0;D<Y.length;D+=3){f[0]=Y[D]*2;f[1]=Y[D+1]*2;f[2]=Y[D+2]*2;if(Z(b,P,w,f)==1)return!0}return!1};
return{anS:Z,a3N:S}}();T.y4={};T.y4.anQ=function(Z,S,b){var Y=T.f(S*b*4),P=!1;T.J.ds(Z,S,b,Y,[b,S,0,1,0,1,0,0]);
return[T.y4.cR(Z,S,b,P),T.y4.cR(Y,b,S,P)]};T.y4.A=function(Z,S){var b=!1,Y=Z[0],P=Z[1],w=Y[1],f=Y[2],h=Y[3],Q=S.c,e=S.v;
if(f==Q&&h==e)w=w.slice(0);else if(h!=e){var l=T.f(f*e*4);T.y4.lP(P,e,l,b);w=T.f(f*e*4);T.J.ds(l,e,f,w,[f,e,0,1,0,1,0,0]);
if(f!=Q){Y=T.y4.cR(w,f,e,b);w=T.f(Q*e*4);T.y4.lP(Y,Q,w,b)}}else if(f!=Q){w=T.f(Q*h*4);T.y4.lP(Y,Q,w,b)}return w};
T.y4.cR=function(Z,S,b,Y){var P=Date.now(),w=new Uint16Array(S*b),f=1;T.y4.aoe(Z,S,b,w);var h=Math.ceil(S/f),Q=new Uint32Array(f),e=new Uint32Array(f),h=Math.floor(S/f);
for(var l=0;l<f;l++)e[l]=l<f-1?h:S-(f-1)*h;for(var O=0;O<b;O++){var D=O*S;for(var l=0;l<f;l++){var h=e[l];
for(var m=0;m<h;m++)Q[l]+=w[D+m];D+=h}}if(Y){console.log(Date.now()-P,"cost");P=Date.now()}var V=new Uint32Array(S),q=new Uint32Array(S),K=new Uint32Array(S*b);
for(var m=0;m<S;m++){K[(b-1)*S+m]=w[(b-1)*S+m]}for(var O=b-2;O>=0;O--){var z=O*S;for(var l=0;l<f;l++){var h=e[l];
K[z]=w[z]+Math.min(K[z+S],K[z+S+1]);for(var m=1;m<h-1;m++){var D=z+m;K[D]=w[D]+Math.min(K[D+S-1],Math.min(K[D+S],K[D+S+1]))}z+=h-1;
K[z]=w[z]+Math.min(K[z+S-1],K[z+S]);z++}}if(Y){console.log(Date.now()-P,"Building M");P=Date.now()}function t(c,u){return c<u?c:u}function H(D,c){var u=q[D],n=K[c],o=~~(u*n*1e-4);
return o}var i=new Uint8Array(S*b),y=new Uint32Array(S);for(var D=0;D<S;D++){V[D]=D;q[D]=w[D]}for(var O=1;
O<b;O++){var j=0,z=O*S;for(var l=0;l<f;l++){var h=e[l],D=z;y[j]=H(j,D);var J=y[j]+H(j+1,D+1),A=H(j,D+1)+H(j+1,D);
y[j+1]=t(J,A);for(var m=2;m<h;m++){var D=z+m,a=y[j+m-1]+H(j+m-1,D-1),I=y[j+m-2]+H(j+m-1,D-2)+H(j+m-2,D-1);
y[j+m]=t(a,I)}var m=h-1;while(m>=2){var D=z+m,a=y[j+m-1]+H(j+m-1,D-1),I=y[j+m-2]+H(j+m-1,D-2)+H(j+m-2,D-1);
if(y[j+m]==a){i[D-S]=1;m-=1}else{i[D-S]=0;i[D-S-1]=2;m-=2}}var D=z;if(m==0){i[D-S]=1}else{if(y[j+1]==J){i[D+1-S]=1;
i[D-S]=1}else{i[D+1-S]=0;i[D-S]=2}}z+=h;j+=h}T.y4.a1I(O,S,i,w,V,q,!0,P)}if(Y){console.log(Date.now()-P,"Matching");
P=Date.now()}var E=w;return[UZIP.adler(Z,0,Z.length),Z,S,b,f,e,Q,V,q,i,E]};T.y4.lP=function(Z,S,b,Y){var P=Z.slice(0),w=P.shift(),f=P.shift(),h=P.shift(),Q=P.shift(),e=P.shift(),l=P.shift(),O=P.shift(),m=P.shift(),V=P.shift().slice(0),q=P.shift(),K=P.shift(),z=Date.now(),t=Math.abs(h-S),H=Math.floor(t/e),i=new Uint32Array(e),j=0,J=1e9,a=0,I=0,E=0;
for(var y=0;y<e;y++)i[y]=y<e-1?H:t-(e-1)*H;K.fill(0);for(var A=0;A<h;A++){j=Math.max(j,V[A]);J=Math.min(J,V[A])}for(var y=0;
y<e;y++){var c=l[y],H=i[y];for(var u=0;u<H;u++){var n=0,o=1e9;for(var A=0;A<c;A++)if(V[I+A]<o){o=V[I+A];
n=I+A}if(S<h)V[n]=1e9;else V[n]*=1.2;if(E<h/3)a+=o;var x=m[n],g=K[x],v=g<65280?65280:g+1;if(v<65280)throw"e";
for(var R=0;R<Q;R++){var D=R*h+x;K[D]=v;x+=q[D]-1}E++}I+=c}if(Y){console.log(Date.now()-z,"Removing best seams");
z=Date.now()}function X(D,M){var r=D<<2,N=M<<2;b[r]=f[N];b[r+1]=f[N+1];b[r+2]=f[N+2];b[r+3]=f[N+3]}for(var R=0;
R<Q;R++){var B=0,D=R*h;for(var A=0;A<S;A++,B++){if(S<h){while(K[D+B]==65280)B++;X(R*S+A,R*h+B)}else{X(R*S+A,R*h+B);
while(K[D+B]>=65280){K[D+B]--;A++;X(R*S+A,R*h+B)}}}}if(Y){console.log(Date.now()-z,"Shifting image pixels");
z=Date.now()}};T.y4.a1I=function(Z,S,b,Y,P,w){var f=0,D=Z*S;while(f<S){if(b[D-S]==1){w[f]=w[f]+Y[D];
f++;D++}else{var h=P[f];P[f]=P[f+1];P[f+1]=h;var Q=w[f];w[f]=w[f+1]+Y[D];w[f+1]=Q+Y[D+1];f+=2;D+=2}}};
T.y4.aoe=function(Z,S,b,Y){function P(Z,D,Q){var O=D<<2,m=Q<<2,V=Z[O]-Z[m],q=Z[O+1]-Z[m+1],K=Z[O+2]-Z[m+2];
return Math.abs(V)+Math.abs(q)+Math.abs(K)}for(var w=1;w<S;w++){var f=P(Z,w,w-1);Y[w-1]+=f;Y[w]+=f}for(var h=1;
h<b;h++){var Q=h*S,f=P(Z,Q,Q-S);Y[Q]+=f;Y[Q-S]+=f;for(var w=1;w<S;w++){var D=h*S+w,e=P(Z,D,D-1),l=P(Z,D,D-S);
Y[D-S]+=l;Y[D-1]+=e;Y[D]+=l+e}}for(var h=0;h<b;h++){Y[h*S]*=2;Y[h*S+S-1]*=2}for(var D=0;D<Y.length;D++)if(Y[D]==0)Y[D]=1};
T.pQ=function(){var Z=0,S=0,Y=15,w=256;function b(l,O,m,V,q,K){var z=(q-1)*O,t=K*O;return l[t+V]-l[t+m-1]-l[z+V]+l[z+m-1]}var P=Math.round(Y/8),f=[];
function h(l,O){for(var m=0;m<O.length;m++){var V=O[m],q=0,K=0,z=l[V.fT],t=z.sK,H=z.Yu,i=z.XE;for(var y=-Y;
y<=Y;y++)for(var j=-Y;j<=Y;j++){var J=j+V.a1C,A=y+V.a7u;if(j*j+y*y>Y*Y||J<0||A<0||J>=H||A>=H)continue;
var a=t[A*H+J];q+=j*a;K+=y*a}V.oc=Math.atan2(K,q)}}function Q(l,O,m,V,q){var K=~~(l+.5),z=~~(O+.5);return b(m,V,K-P,K+P,z-P,z+P)}function e(l,O,m,V,q){Z=V;
S=q;if(f.length==0){var K=new T.p.Ny(16200817),i=8,y=0;function z(L){var E=L[0]-L[2],c=L[1]-L[3];return E*E+c*c}function t(){var L=0,bd=0;
while(L===0)L=K.get();while(bd===0)bd=K.get();return Math.sqrt(-2*Math.log(L))*Math.cos(2*Math.PI*bd)}var H=t,j=[];
while(y!=w){var J=Math.max(-Y,Math.min(Y,H()*i)),A=Math.max(-Y,Math.min(Y,H()*i)),a=Math.max(-Y,Math.min(Y,H()*i)),I=Math.max(-Y,Math.min(Y,H()*i)),E=J-a,c=A-I,u=Math.sqrt(E*E+c*c);
if(u<3||u>12)continue;f.push(J,A,a,I);y++}}var n=20;for(var o=0;o<O.length;o++){var x=O[o],g=l[x.fT],v=g.Pr,m=g.sK,V=g.Yu,q=g.XE,R=x.a1C,X=x.a7u,B=x.oc,M=Math.cos(B),r=Math.sin(B),N=new Uint8Array(w>>>3);
x.V1=N;for(var D=0;D<w;D++){var $=D*4,J=f[$+0],A=f[$+1],a=f[$+2],I=f[$+3],eQ=M*J-r*A,hN=r*J+M*A,bI=M*a-r*I,fq=r*a+M*I,e9=Q(R+eQ,X+hN,v,V,q),W=Q(R+bI,X+fq,v,V,q);
N[D>>>3]|=(e9<W?0:1)<<(D&7)}}}return{ani:h,ah6:e}}();T.ajv=function(){var Z=0,S=0;function b(w,f,h,Q,e,l){var O=(e-1)*f,m=l*f;
return w[m+Q]-w[m+h-1]-w[O+Q]+w[O+h-1]}function Y(w,f,h){var Q=new Uint32Array(f*h);Q[0]=w[0];for(var e=1;
e<f;e++)Q[e]=Q[e-1]+w[e];for(var l=1;l<h;l++){var D=l*f;Q[D]=Q[D-f]+w[D];for(var e=1;e<f;e++)Q[D+e]=w[D+e]+Q[D+e-1]+Q[D+e-f]-Q[D+e-f-1]}return Q}function P(w,f){var h=[[9]],Q=Date.now(),e=[];
for(var l=0;l<w.length;l++){var O=w[l],m=O.Pr,V=Z=O.Yu,q=S=O.XE,t=9,A=1,X=24;if(m==null)continue;var K=new Float32Array(V*q),z=new Uint8Array(V*q),H=t>>>1,i=H>>>1,y=Math.round(t/3);
if(y!=t/3)throw"e";var j=1/(t*t),J=1.2*(t/9);for(var a=H+1;a<q-H;a+=A)for(var I=H+1;I<V-H;I+=A){var E=b(m,V,I-i,I+i,a-H,a+H)-3*b(m,V,I-i,I+i,a-H+y,a+H-y),c=b(m,V,I-H,I+H,a-i,a+i)-3*b(m,V,I-H+y,I+H-y,a-i,a+i),u=I-H+1,n=I+H-1,o=a-H+1,x=a+H-1,g=b(m,V,u,I-1,o,a-1)+b(m,V,I+1,n,a+1,x)-b(m,V,I+1,n,o,a-1)-b(m,V,u,I-1,a+1,x),v=(c*E-.9*g*(.9*g))*(j*j);
K[a*V+I]=Math.abs(v);z[a*V+I]=v<0?0:1}var R=V*A;for(var a=X;a<q-X;a+=A)for(var I=X;I<V-X;I+=A){var D=a*V+I,B=K[D];
if(B<16)continue;if(K[D-A]>=B||K[D+A]>=B)continue;if(K[D-R-A]>=B||K[D-R]>=B||K[D-R+A]>=B)continue;if(K[D+R-A]>=B||K[D+R]>=B||K[D+R+A]>=B)continue;
e.push({x:~~(I*O.Wo+.5),y:~~(a*O.Wo+.5),a1C:I,a7u:a,fT:l,G:B,a92:z[D],zk:J})}}if(f!=null){e.sort(function(fq,e9){return e9.G-fq.G});
e=e.slice(0,f)}return e;var M=[];for(var D=0;D<e.length;D++){var r=!0,N=e[D];for(var $=0;$<e.length;
$++){var eQ=e[$];if($!=D&&eQ.G>N.G&&(eQ.fT==N.fT+1||eQ.fT==N.fT-1)){var hN=N.x-eQ.x,bI=N.y-eQ.y;if(hN*hN+bI*bI<5){r=!1;
break}}}if(r)M.push(N)}console.log(e.length,M.length);return M}return{a5e:P}}();T.iN={};T.iN.aoO=function(Z){var S=Z.length,b=T.iN.Bg(Z,!1),P=0,w=1;
throw"e";var Y=[];for(var D=0;D<S;D++)Y[D]=T.iN.fH(b[D]);var f=Z[0][1],h=T.iN.match(b[P],b[w],Y[w]);
console.log(h.length);var Q=Math.max(Math.min(h.length,40),h.length*.54);Q=Math.min(Q,200);var e=h.slice(0,Q),l=T.On.an7(b[P],b[w],e,f.c,f.v),O=T.On.a7Y(l,[0,0,0],1),m=f.c/2,V=f.v/2,q=1/Math.max(m,V);
for(var D=0;D<1;D++){var K=e[D],z=b[P][K[0]],t=b[w][K[1]],H=T.On.akc(O,q*(z.x-m),q*(z.y-V),q*(t.x-m),q*(t.y-V))}var i=T.On.anE(l,f),y=[];
for(var D=0;D<2;D++){var j=i[D],J=[j[0][0],j[0][1],j[0][2],j[1][0],j[1][1],j[1][2],j[2][0],j[2][1]],A=G.V.u4(Z[D],null,J);
y.push([A.buffer,A.rect])}return[T.iN.an9(y[0],y[1],b[P],b[w],e,l,i,f)]};T.iN.VL=function(Z,S){var b=Z.length,Y=!1,P=Date.now(),w=T.iN.Bg(Z,!1,1e4);
if(Y)console.log("Descriptors ready",Date.now()-P);P=Date.now();for(var D=0;D<b;D++){var f=Z[D][1];for(var h=0;
h<w[D].length;h++){w[D][h].x+=f.x;w[D][h].y+=f.y}}if(Y)console.log("shifted",Date.now()-P);P=Date.now();
var Q=[];for(var D=0;D<b;D++)Q[D]=T.iN.fH(w[D]);if(Y)console.log("trees built",Date.now()-P);P=Date.now();
var e=[];for(var D=0;D<b-1;D++)for(var h=D+1;h<b;h++){var l=T.iN.match(w[D],w[h],Q[h]);if(Y)console.log("Matches found",D,h,l.length);
l=l.slice(0,l.length>>>1);if(l.length<10)return null;var O=T.iN.agx(w[D],w[h],l,2);e.push([D,h,l,O])}e.sort(function(I,E){return E[2].length-I[2].length});
if(Y)console.log("Matches found",Date.now()-P);P=Date.now();var m=[],V=new UnionFind(b);for(var D=0;
D<e.length;D++){var q=e[D],K=V.find(q[0]),z=V.find(q[1]);if(K!=z){m.push(q);V.link(K,z)}}var t=[];for(var D=0;
D<b;D++)t[D]=[1,0,0,0,1,0,0,0];var H=[0],i=new Uint8Array(b);i[H[0]]=1;while(H.length!=0){var z=H.pop(),O=t[z],y=[];
for(var D=0;D<m.length;D++){var q=m[D],j=q[0],J=q[1];if(j==z&&i[J]==0){t[J]=T.J.Co(O,q[3]);H.push(J);
i[J]=1}if(J==z&&i[j]==0){t[j]=T.J.Co(O,T.J.oN(q[3]));H.push(j);i[j]=1}}}if(S==null){var A=[];for(var D=0;
D<b;D++)A.push([t[D][2],D]);A.sort(function(I,E){return I[0]-E[0]});S=A[A.length>>>1][1]}var a=T.J.oN(t[S]);
for(var D=0;D<b;D++)t[D]=T.J.Co(t[D],a);if(Y)console.log("Transforms reordered",Date.now()-P);P=Date.now();
return t};T.iN.Bg=function(Z,S,b){var Y=[],P=!1;for(var D=0;D<Z.length;D++){var w=Z[D][0],f=Z[D][1],h=f.c,Q=f.v,e=T.f(f.X());
T.Mq(w,e);var l=Date.now(),O=T.iN.a9p(e,f,!0);if(P)console.log("Pyramid built ---------------",Date.now()-l);
l=Date.now();var m=T.ajv.a5e(O,b);if(P)console.log("SURF Generation",Date.now()-l);l=Date.now();if(!S){T.pQ.ani(O,m);
if(P)console.log("ORB Orientations",Date.now()-l);l=Date.now();T.pQ.ah6(O,m,e,h,Q);if(P)console.log("ORB Descriptors",Date.now()-l);
l=Date.now()}Y.push(m)}return Y};T.iN.a9p=function(Z,S,b){function Y(e,O,m){var q=new Uint32Array(O*m);
q[0]=e[0];for(var K=1;K<O;K++)q[K]=q[K-1]+e[K];for(var z=1;z<m;z++){var D=z*O;q[D]=q[D-O]+e[D];for(var K=1;
K<O;K++)q[D+K]=e[D+K]+q[D+K-1]+q[D+K-O]-q[D+K-O-1]}return q}var P=[],w=[Z,S];T.eW(w);if(b){var f=T.Hx(Z,S),h=f.rect,Q=[f.j$,h];
T.eW(Q)}for(var D=0;D<w.length;D++){var e=w[2*D],l=w[2*D+1],O=l.c,m=l.v,V=Math.min(O,m);if(V<30)break;
if(V<1600)P.push({sK:e,Yu:O,XE:m,Wo:1<<D,Pr:Y(e,O,m)});if(!b)continue;var e=Q[2*D],l=Q[2*D+1],O=l.c,m=l.v,V=Math.min(O,m);
if(V<30)break;if(V<1600)P.push({sK:e,Yu:O,XE:m,Wo:(1<<D)*3/2,Pr:Y(e,O,m)})}return P};T.iN.agx=function(Z,S,b,Y){var P=Date.now(),w,f=0,h=0,Q=b.length,e=new Float64Array(2);
for(var l=0;l<3e3;l++){var O=~~(Math.random()*Q),m=~~(Math.random()*Q),V=~~(Math.random()*Q),q=~~(Math.random()*Q),o=0,x=0;
if(O==m||O==V||O==q||m==V||m==q||V==q)continue;var K=b[O],z=b[m],t=b[V],H=b[q],i=Z[K[0]],y=S[K[1]],j=Z[z[0]],J=S[z[1]],A=Z[t[0]],a=S[t[1]],I=Z[H[0]],E=S[H[1]],c=[i.x,i.y,j.x,j.y,A.x,A.y,I.x,I.y],u=[y.x,y.y,J.x,J.y,a.x,a.y,E.x,E.y],n=T.J.MM(c,u);
if(n[0]==0&&n[1]==0&&n[3]==0&&n[4]==0)continue;var g=Q-f+2;for(var D=0;D<Q&&D-o<g;D++){var v=Z[b[D][0]],R=S[b[D][1]];
T.J.Jc(R.x,R.y,n,e);var X=e[0]-v.x,B=e[1]-v.y,M=X*X+B*B;if(M<Y){o++;x+=M}}if(o>f||o==f&&x<h){w=n;f=o;
h=x}}return w};var bj=new Uint8Array(256);for(var D=0;D<256;D++){var i5=0,C=D;while(C!=0){C=C&C-1;i5++}bj[D]=i5}T.iN.aei=function(Z,S,b){var Y=0,P=Z.length;
for(var D=0;D<P&&Y<b;D++)Y+=bj[Z[D]^S[D]];return Y};T.iN.a1h=function(Z,S,b,top,Y){if(Y[b]==1)return;
var P=T.iN.aei(Z.V1,S.V1,top[0]);if(P<top[0]){if(P<top[2]){top[0]=top[2];top[1]=top[3];top[2]=P;top[3]=b}else{top[0]=P;
top[1]=b}}Y[b]=1};T.iN.fH=function(Z){var S=[],b=[],Y=[[],[]],P=4;for(var D=0;D<Z.length;D++)(Z[D].a92==0?S:b).push(D);
for(var w=0;w<2;w++){var f=new Array(P),h=[],Q=w==0?S:b,e=Q.length/256,l=[];for(var O=0;O<32;O++){var m=new Array(256),K=0;
for(var V=0;V<256;V++)m[V]=[];for(var V=0;V<Q.length;V++){var q=Q[V];m[Z[q].V1[O]].push(q)}for(var V=0;
V<256;V++)K+=Math.abs(m[V].length-e);l.push([K,O,m])}l.sort(function(z,t){return z[0]-t[0]});var h=[],f=[];
Y[w]=[h,f];for(var D=0;D<P;D++){h.push(l[D][1]);f.push(l[D][2])}}return Y};T.iN.match=function(Z,S,b){var Y=[],P=new Uint16Array(S.length);
P.fill(65535);var w=new Uint8Array(S.length),top=new Uint32Array(4),f=[];for(var h=0;h<Z.length;h++){var Q=Z[h],e=Q.V1;
top.fill(1e6);w.fill(0);var l=b[Q.a92];for(var O=0;O<l[1].length;O++){var m=l[1][O][e[l[0][O]]];for(var V=0;
V<m.length;V++){var q=m[V];T.iN.a1h(Q,S[q],q,top,w)}}if(top[2]<50&&top[2]<top[0]*.5){var K=P[top[3]];
if(K==65535){P[top[3]]=Y.length;Y.push([h,top[3],top[2]])}else if(top[2]<Y[K][2]){Y[K]=[h,top[3],top[2]]}}}Y.sort(function(z,t){return z[2]-t[2]});
return Y};T.iN.aiW=function(Z){var S=new b4;for(var D=0;D<Z.length;D++)S=S.VK(Z[D][1]);var b=T.f(S.X()*4);
for(var D=0;D<Z.length;D++)T.p.xJ("norm",Z[D][0],Z[D][1],b,S,S,1);return[b,S]};T.iN.an9=function(Z,S,b,Y,P,w,f,h){var Q=Z[1].clone(),e=Q.clone();
Q.x=Q.y=0;var l=S[1].clone(),O=l.clone();l.x=l.y=0;l.x=Q.c;var m=Q.VK(l),V=O.y-e.y,q=T.f(m.X()*4);T.uH(Z[0],Q,q,m);
T.uH(S[0],new b4(l.x,l.y+V,l.c,l.v),q,m);var K=document.createElement("canvas");K.width=m.c;K.height=m.v;
var z=K.getContext("2d");z.lineWidth=.5;z.putImageData(new ImageData(new Uint8ClampedArray(q.buffer),m.c,m.v),0,0);
if(w){var t=w[0],H=T.Ig.L8(t),i=Q.c,y=h.c;for(var D=0;D<P.length;D++){var j=P[D],Z=b[j[0]],S=Y[j[1]];
z.strokeStyle="#"+"ff0000";z.beginPath();var J=T.On.agZ(H,f[0],S,0,y),A=T.On.agZ(t,f[1],Z,0,y);z.moveTo(-e.x+J[0],-e.y+J[1]);
z.lineTo(-e.x+J[2],-e.y+J[3]);z.moveTo(i-O.x+A[0],-O.y+V+A[1]);z.lineTo(i-O.x+A[2],-O.y+V+A[3]);z.stroke()}}if(P){var a=P.length;
for(var D=0;D<a;D++){var j=P[D],Z=b[j[0]],S=Y[j[1]];z.strokeStyle="#"+"ffff00"}}var c=new Uint8Array(z.getImageData(0,0,m.c,m.v).data.buffer);
if(!1){for(var u=0;u<2;u++){var n=u==0?b:Y,o=u*Q.c;for(var D=0;D<n.length;D++){var x=n[D],g=~~x.x,v=~~x.y,R=(v*m.c+g+o)*4;
c[R+1]=c[R+2]=x.a0K*60;c[R+0]=0;c[R+3]=255}}}return[c,m]};T.stack={};T.stack.stack=function(Z,S,b){var Y=Z.length,P=S.length;
if(Y==1){S.set(Z[0]);return}if(b=="avrg"||b=="stdv"||b=="summ"||b=="vari"){var w=1/Y;for(var D=0;D<P;
D++){var f=0;for(var h=0;h<Y;h++)f+=Z[h][D];var Q=~~(f*w+.5);if(b=="avrg"||(D&3)==3)S[D]=Q;else if(b=="summ")S[D]=255*Math.pow(Math.min(255,f)*(1/255),1/2.4);
else{var e=0;for(var h=0;h<Y;h++){var l=Z[h][D]-Q;e+=l*l}var O=Math.sqrt(e*w)*(1/255);if(b=="stdv")S[D]=255*Math.pow(O,1/2.4);
else S[D]=255*Math.pow(O*O,1/2.4)}}}else if(b=="maxx"){for(var D=0;D<P;D++){var m=0;for(var h=0;h<Y;
h++)m=Math.max(m,Z[h][D]);S[D]=m}}else if(b=="minn"){for(var D=0;D<P;D++){var m=255;for(var h=0;h<Y;
h++)m=Math.min(m,Z[h][D]);S[D]=m}}else if(b=="medn"||b=="rang"){var V=function(t,H){return t-H},q=new Array(Y),K=0,z=0;
if(Y%1==0){z=Y>>>1;K=z-1}else{K=z=Y>>>1}for(var D=0;D<P;D++){for(var h=0;h<Y;h++)q[h]=Z[h][D];q.sort(V);
if(b=="medn")S[D]=q[K]+q[z]>>>1;else S[D]=(D&3)==3?q[Y-1]:q[Y-1]-q[0]}}else console.log(b)};T.Or={};
T.Or.anl=function(Z,S,b,Y,P){var w=T.Or.Ln(Z.buffer,S,b).B0,f=Date.now(),h=new Uint32Array(w.length);
for(var D=0;D<w.length;D++)h[D]=w[D].tE;var Q=UPNG.quantize.getKDtree(new Uint8Array(h.buffer),Y),e=[S,1,-S,-1,S+1,-S+1,-S-1,S-1,S+S,2,-S-S,-2,S+S-1,S+S+1,S+2,-S+2,-S-S+1,-S-S-1,-S-2,S-2,S+S+2,-S-S+2-S-S-2,S+S-2],l=new Uint8Array(S*b),O=Z;
for(var m=0;m<b;m++)for(var V=0;V<S;V++){var D=m*S+V<<2,q=O[D]*(1/255),K=O[D+1]*(1/255),z=O[D+2]*(1/255),t=O[D+3]*(1/255),H=T.Or.Lz(Q,q,K,z,t,P);
if(H==null){var i=[],y=0;while(y<20){var j=m*S+V+e[y]<<2,J=O[j]*(1/255),A=O[j+1]*(1/255),a=O[j+2]*(1/255),I=O[j+3]*(1/255),E=T.Or.Lz(Q,J,A,a,I,.005);
if(E!=null){if(i.indexOf(E)==-1){i.push(E);E.lv=1}else E.lv++}y++}i.sort(function(t,z){return z.lv-t.lv});
while(i.length!=0&&i[i.length-1].lv<3)i.pop();if(i.length==0)H=T.Or.Lz(Q,q,K,z,t,100);else if(i.length==1)H=i[0];
else if(i.length==2){var c=i[0],u=i[1],n=c.est.q,o=u.est.q,x=o[0]-n[0],g=o[1]-n[1],v=o[2]-n[2],R=o[3]-n[3],X=q-n[0],B=K-n[1],M=z-n[2],r=t-n[3],N=x*x+g*g+v*v+R*R,$=X*X+B*B+M*M+r*r,eQ=(X*x+B*g+M*v+r*R)/N,hN=$-eQ*eQ*N;
if(hN<.5)H=eQ<.5?c:u;else{H=T.Or.Lz(Q,q,K,z,t,100)}}else{var c=i[0],u=i[1],bI=i[2],n=c.est.q,o=u.est.q,fq=bI.est.q,e9=n[0]-fq[0],W=n[1]-fq[1],L=n[2]-fq[2],bd=n[3]-fq[3],iw=o[0]-fq[0],d7=o[1]-fq[1],d0=o[2]-fq[2],gS=o[3]-fq[3],cf=fq[0]-q,cT=fq[1]-K,fU=fq[2]-z,dX=fq[3]-t,g$=e9*e9+W*W+L*L+bd*bd,bX=e9*iw+W*d7+L*d0+bd*gS,aw=cf*e9+cT*W+fU*L+dX*bd,hP=e9*iw+W*d7+L*d0+bd*gS,eG=iw*iw+d7*d7+d0*d0+gS*gS,eB=cf*iw+cT*d7+fU*d0+dX*gS,bb=1/(bX*hP-g$*eG),eQ=(eG*aw-eB*bX)*bb,gx=(eB*g$-aw*hP)*bb,er=1-eQ-gx,ea=Math.max(eQ,gx,er);
if(ea==eQ)H=c;else if(ea==gx)H=u;else H=bI}}l[D>>2]=H.ind}return{ZG:l,B0:Q[1]}};T.Or.Ln=function(Z,S,b){var Y=[],P={},w=S-1,f=b-1,h=0,Q=new Uint32Array(Z),e=[-S-1,-S,-S+1,-1,1,S-1,S,S+1,S+S,2,-S-S,-2,S+S-1,S+S+1,S+2,-S+2,-S-S+1,-S-S-1,-S-2,S-2,S+S+2,-S-S+2-S-S-2,S+S-2];
for(var l=1;l<f;l++)for(var O=1;O<w;O++){var m=l*S+O,V=Q[m],q=!0;for(var D=0;D<8;D++)q=q&&Q[m+e[D]]==V;
if(q){h++;var K=P[V];if(K==null){P[V]=Y.length;Y.push({tE:V,pk:1})}else Y[K].pk++}}return{B0:Y,ag5:h}};
T.Or.Lz=function(Z,S,b,Y,P,w){var f=UPNG.quantize.getNearest(Z[0],S,b,Y,P);return T.Or.aj1(f,S,b,Y,P)<w?f:null};
T.Or.aj1=function(Z,S,b,Y,P){var w=Z.est.q,f=S-w[0],h=b-w[1],Q=Y-w[2],e=P-w[3];return f*f+h*h+Q*Q+e*e};
T.Or.a8W=function(Z,S,b,Y){var P=T.Or.a1a(Z,S,b,Y),w=P.ZG,f=P.B0,h=P.a4F,Q=UPNG.quantize.getKDtree(new Uint8Array(h.buffer.slice(0)),200),e=[];
for(var D=0;D<f.length;D++){var l=f[D].gt,O=l[0],m=l[1],V=l[2],q=l[3];if(Math.min(O,m,V,q)<0)throw"e";
var K=UPNG.quantize.getNearest(Q[0],O/255,m/255,V/255,q/255);e.push(Q[1].indexOf(K))}for(var D=0;D<S*b;
D++)w[D]=e[w[D]];return{ZG:w,B0:Q[1]}};T.Or.a1a=function(Z,S,b,Y){var P=S*b,w=2*P,f=T.Or.acs(Z,S,b),h=65535+1,Q=new Uint32Array(h),l=0;
for(var D=0;D<w;D++)Q[f[D]]++;var e=new Uint32Array(h);for(var D=0;D<h;D++){e[D]=l;l+=Q[D]}var O=new Uint32Array(w);
for(var D=0;D<w;D++){var m=f[D];O[e[m]]=D;e[m]++}var V=new UnionFind(P),q=new Uint16Array(P),K=new Uint32Array(P);
for(var D=0;D<P;D++)K[D]=1;var z=P,t=1e5/(Y*10);for(var H=0;H<w;H++){var i=O[H],y=f[i];if(y==65535)continue;
var D=i>>1,j=D+((i&1)==0?1:S),J=V.find(D),A=V.find(j),a=Math.min(q[J]+t/Math.sqrt(K[J]),q[A]+t/Math.sqrt(K[A]));
if(J!=A&&y<=a){V.link(D,j);z--;var I=V.find(D);K[I]=K[J]+K[A];q[I]=y}}var E=[],c={},u=new Uint16Array(P);
for(var D=0;D<P;D++){var I=V.find(D),n=c[I];if(n==null){c[I]=n=E.length;E.push({pk:0,gt:[0,0,0,0]})}E[n].pk++;
for(var j=0;j<4;j++)E[n].gt[j]+=Z[(D<<2)+j];u[D]=n}var o=new Uint32Array(E.length);for(var D=0;D<E.length;
D++){var n=E[D];for(var j=0;j<4;j++)n.gt[j]=Math.round(n.gt[j]/n.pk);o[D]=n.gt[3]<<24|n.gt[2]<<16|n.gt[1]<<8|n.gt[0]}return{ZG:u,B0:E,a4F:o}};
T.Or.acs=function(Z,S,b){var Y=new Uint16Array(S*b*2);for(var P=0;P<b;P++)for(var w=0;w<S;w++){var D=P*S+w;
Y[D+D]=w<S-1?T.Or.hb(Z,D,D+1):65535;Y[D+D+1]=P<b-1?T.Or.hb(Z,D,D+S):65535}return Y};T.Or.hb=function(Z,D,S){var b=D<<2,Y=S<<2,P=Z[b],w=Z[b+1],f=Z[b+2],h=Z[b+3],Q=Z[Y],e=Z[Y+1],l=Z[Y+2],O=Z[Y+3],m=P-Q,V=w-e,q=f-l,K=h-O;
return m*m+V*V+q*q+K*K>>2};T.Or.Ep=function(){function Z(t,H,i,y,j,J){var A=[],a=J,I=J,E=J>>>2;for(var c=0;
c<j;c++)for(var u=0;u<y;u++){var n=~~((u+.5)*a),o=~~((c+.5)*I),x=1e9,g=Math.max(0,n-E),v=Math.min(H,n+E+1),R=Math.max(0,o-E),X=Math.min(i,o+E+1);
for(var B=R;B<X;B++)for(var M=g;M<v;M++){var r=S(t,H,M,B);if(r<x){n=M;o=B;x=r}}var N=(o*H+n)*4;A.push(n,o)}return A}function S(t,H,i,y){var j=(y*H+i)*4,J=H*4,A=b(t,j-4,j)+b(t,j,j+4),a=b(t,j-J,j)+b(t,j,j+J);
return A+a}function b(t,H,i){var y=t[H]-t[i],j=t[H+1]-t[i+1],J=t[H+2]-t[i+2];return y*y+j*j+J*J}var Y=0,P=0;
function w(t,H,i,y){P++;if(y<Y)Y=y;t[y].push(H,i)}function f(t){P--;while(t[Y].length==0)Y++}function h(t,H,i){Y=0;
P=0;var y=H*i,j=Math.round(Math.min(H,i)/50),o=0,x=16;if(j==0)j=1;var J=30/j,A=Math.floor(H/j),a=Math.floor(i/j),I=new Uint16Array(y);
for(var D=0;D<y;D++)I[D]=65535;var E=Z(t,H,i,A,a,j),c=E.length>>>1;if(c>65535)throw c;var u=[];for(var D=0;
D<1e3+i;D++)u.push([]);var n=[0,1,0,-1,-1,0,1,0],g=Math.min(a,5),v=new Uint32Array(c*6);for(var R=0;
R<a;R+=g){var X=Math.min(R+g+1,a);for(var B=R;B<X;B++)for(var M=0;M<A;M++){var D=B*A+M,r=D*2,N=E[r+1]<<16|E[r];
w(u,N,D,E[r+1]>>>x)}var $=Math.min(i,X*j);if(R+g>=a)$=i;while(P!=0){f(u);var eQ=u[Y].pop(),hN=u[Y].pop(),bI=hN>>>16,fq=hN&65535,D=bI*H+fq;
if(I[D]==65535){var e9=eQ*6,W=D<<2;I[D]=eQ;v[e9]+=t[W];v[e9+1]+=t[W+1];v[e9+2]+=t[W+2];v[e9+3]+=fq;v[e9+4]+=bI;
v[e9+5]++;var L=bI>>>x;if(bI!=$-1&&I[D+H]==65535)w(u,bI+1<<16|fq,eQ,Q(t,H,J,fq,bI+1,v,e9)+L);if(bI!=0&&I[D-H]==65535)w(u,bI-1<<16|fq,eQ,Q(t,H,J,fq,bI-1,v,e9)+L);
if(fq!=0&&I[D-1]==65535)w(u,bI<<16|fq-1,eQ,Q(t,H,J,fq-1,bI,v,e9)+L);if(fq!=H-1&&I[D+1]==65535)w(u,bI<<16|fq+1,eQ,Q(t,H,J,fq+1,bI,v,e9)+L)}}if($!=bI){var bd=(R+g)*A;
v.fill(0,bd*6,(bd+A)*6);for(var bI=(R+g-2)*j;bI<$;bI++)for(var fq=0;fq<H;fq++){var D=bI*H+fq;if(I[D]>=bd){I[D]=65535}}}}return{ZG:I,EJ:c,dc:v}}T.Or.jx=function(t,H,i,y,j){var J=t.EJ,A=H*i,a=t.dc,I=t.ZG,E=V(y,I,J,A),c=new UnionFind(J),v=0;
for(var u=1;u<i;u++)for(var n=1;n<H;n++){var D=u*H+n,o=I[D],x=0;if((x=I[D-1])!=o&&E[x]==E[o]&&e(a,0,o*6,x*6)<j)c.link(o,x);
if((x=I[D-H])!=o&&E[x]==E[o]&&e(a,0,o*6,x*6)<j)c.link(o,x)}var g=new Uint16Array(J);g.fill(65535);var R=new Uint16Array(J);
for(var D=0;D<J;D++){var X=c.find(D);if(g[X]==65535)g[X]=v++;R[D]=g[X]}var B=new Uint16Array(A);for(var D=0;
D<A;D++)B[D]=R[I[D]];return{ZG:B,EJ:v}};T.Or.ahz=function(t,H,i,y){var j=T.f(i),J=H.length,A=0;for(var D=0;
D<J&&A!=3;D++){var a=y[D];if(a==0||a==255){var I=H[D],E=2-(a>>>7);j[I]=A=j[I]|E}}return A!=3};function Q(t,H,i,y,j,J,A){var a=(j*H+y)*4,I=J[A+5],E=1/I,c=t[a]*I-J[A],u=t[a+1]*I-J[A+1],n=t[a+2]*I-J[A+2],o=y*I-J[A+3],x=j*I-J[A+4],g=Math.sqrt(c*c+u*u+n*n),v=Math.sqrt(o*o+x*x);
return~~((g+i*v)*E+.5)}function e(t,H,i,y){var j=1/t[i+5],J=1/t[y+5],A=t[i]*j-t[y]*J,a=t[i+1]*j-t[y+1]*J,I=t[i+2]*j-t[y+2]*J,E=t[i+3]*j-t[y+3]*J,c=t[i+4]*j-t[y+4]*J,u=Math.sqrt(A*A+a*a+I*I),n=Math.sqrt(E*E+c*c);
return~~(u+H*n+.5)}function l(t,H,i){var y=T.wg(t,new b4(0,0,H,i)),j=y.rect.c,J=y.rect.v,A=h(y.j$,j,J),a=A.ZG,I=Date.now(),E=new Uint16Array(H*i);
E.fill(65535);for(var c=0;c<J;c++){for(var u=0;u<j;u++){var n=c*j+u,D=(c<<1)*H+(u<<1),o=a[n];if(a[n-j]!=o||a[n-1]!=o||a[n+1]!=o||a[n+j]!=o)o=65535;
E[D]=o;E[D+1]=o;E[D+H]=o;E[D+H+1]=o}}A.ZG=E;return A}function O(t,H){var D=0,i=t.length;while(D!=i&&t[D]!=H)D+=2;
return D==i?-1:D}function m(t,D){if(D==t.length-2){t.pop();t.pop()}else{t[D+1]=t.pop();t[D]=t.pop()}}T.Or.ahE=function(t,H,i,y,j){var J=new Uint32Array(j*4400),S=[];
for(var D=0;D<j;D++)S.push([]);for(var A=0;A<i;A++)for(var a=0;a<H;a++){var D=A*H+a,I=D<<2,E=y[D],c=0,u=t[I]>>>4,n=t[I+1]>>>4,o=t[I+2]>>>4;
J[E*4400+(u<<8|n<<4|o)]++;J[E*4400+4096]++;J[E*4400+4100+(u<<4|n)]++;J[E*4400+4360+u]++;if(a!=0&&(c=y[D-1])!=E&&O(S[E],c)==-1){S[E].push(c,0);
S[c].push(E,0)}if(A!=0&&(c=y[D-H])!=E&&O(S[E],c)==-1){S[E].push(c,0);S[c].push(E,0)}}for(var D=0;D<j;
D++){var o=S[D];for(var x=0;x<o.length;x+=2)o[x+1]=z(J,D,o[x])}return[J,S]};function V(t,H,i,y){var j=T.f(i);
for(var D=0;D<y;D++){var J=t[D];if(J==0||J==255)j[H[D]]=2-(J>>>7)}return j}T.Or.amg=function(t,H,i,y,j,J,A){var a=H*i,I=A[0],S=A[1],E=new UnionFind(y),c=V(j,t,y,a),u=-1,n=!0,o=0;
for(var D=0;D<y;D++)if(c[D]==1){if(u==-1)u=D;else E.link(D,u)}if(u==-1){for(var D=0;D<a;D++)J[D]=j[D]==255?255:0;
return}while(n){while(n){n=!1;for(var D=0;D<y;D++){if(c[D]==0){var x=q(S[D]);if(c[x]==1){c[D]=c[x];n=!0;
E.link(D,x)}}}}n=!0;o=0;while(n){n=!1;for(var D=0;D<y;D++){if(c[D]==0){var x=q(S[D]);if(c[x]==0){var g=D*4400,v=x*4400;
for(var R=0;R<4400;R+=2){I[g+R]+=I[v+R];I[g+R+1]+=I[v+R+1]}K(S,I,D,x);o++;c[x]=3;n=!0;E.link(D,x)}}}}n=o!=0}var X=E.find(u);
for(var D=0;D<y;D++)c[D]=E.find(D)==X?255:0;for(var D=0;D<a;D++){J[D]=c[t[D]]}for(var D=0;D<a;D++){var x=j[D];
if(x==0||x==255)J[D]=x}};function q(t){var H=0,i=0,y=t.length;for(var j=0;j<y;j+=2){var J=t[j+1];if(J>i){i=J;
H=j}}return t[H]}function K(S,t,H,i){var y=S[H],j=S[i];m(y,O(y,i));m(j,O(j,H));for(var D=0;D<j.length;
D+=2){var J=j[D],A=S[J];m(A,O(A,i));if(O(A,H)==-1){A.push(H,0);y.push(J,0)}}for(var D=0;D<y.length;D+=2){var J=y[D],A=S[J],a=z(t,H,J);
y[D+1]=a;A[O(A,H)+1]=a}}function z(t,H,i){var y=0,j=4096,J=H*4400,A=i*4400;for(var a=0;a<16;a++){if(t[J+4360+a]==0||t[A+4360+a]==0)continue;
for(var I=0;I<16;I++){var E=a<<4|I;if(t[J+4100+E]==0||t[A+4100+E]==0)continue;var c=J+(E<<4),u=A+(E<<4);
for(var D=0;D<16;D++)y+=Math.sqrt(t[c+D]*t[u+D])}}var n=y/Math.sqrt(t[J+j]*t[A+j]);return~~(999.99999*n)}return h}();
var hQ=function(){function Z(){this.X=0;this.GB=0;this.Va={};this.cz=[];this.Ct=1e5;this.t2=1e5;this.An=-1;
this._6=-1;this.color=0}function S(C){this.rX=C;this.fb=new Array(C);this.tE=new Array(C*6);this.aim=0;
this.g4=new Array(C*2);this.alpha=new Array(C);this.H7=new Array(C);this.DH=new Array(C)}function b(P,w,f,h){function Q(z,t,P,w){return P[w*t+z]}function e(D){var A=P.length;
while(D<A&&P[D]==0)D++;return D<A?D:-1}function l(z,t,A){for(var D=2;D<5;D++){var a=0;for(var I=-D+1;
I<=D-1;I++){a+=Q(z+I,t+D-1,P,w)==A?1:-1;a+=Q(z+D-1,t+I-1,P,w)==A?1:-1;a+=Q(z+I-1,t-D,P,w)==A?1:-1;a+=Q(z-D,t+I,P,w)==A?1:-1}if(a>0)return 1;
else if(a<0)return 0}return 0}function O(A,q){var K=new Z,z=A,t=q,a=0,I=1,E;K.color=P[q*w+A];K.sign=Q(A,q,P,w)==K.color?"+":"-";
while(1){K.cz.push(z,t);if(z>K.An)K.An=z;if(z<K.Ct)K.Ct=z;if(t>K._6)K._6=t;if(t<K.t2)K.t2=t;K.GB++;z+=a;
t+=I;K.X-=z*I;if(z==A&&t==q)break;var c=Q(z+(a+I-1>>1),t+(I-a-1>>1),P,w)==K.color,u=Q(z+(a-I-1>>1),t+(I+a-1>>1),P,w)==K.color;
if(u&&!c){if(h.zQ=="right"||h.zQ=="black"&&K.sign=="+"||h.zQ=="white"&&K.sign=="-"||h.zQ=="majority"&&l(z,t,K.color)||h.zQ=="minority"&&!l(z,t,K.color)){E=a;
a=-I;I=E}else{E=a;a=I;I=-E}}else if(u){E=a;a=-I;I=E}else if(!c){E=a;a=I;I=-E}}return K}var m=0,V=[];
while(!0){var m=e(m);if(m==-1)break;var q=Math.floor(m/w),K=O(m-q*w,q);for(var D=0;D<K.cz.length-2;D+=2){var z=K.cz[D],t=K.cz[D+1],H=t*w+z;
if(z==K.cz[D+2]&&t+1==K.cz[D+3]&&P[H]!=0)hQ.fill(H,P,w,0)}if(K.X>h.afy)V.push(K)}for(var D=0;D<V.length;
D++)V[D].parent=-1;var i=Date.now();for(var D=1;D<V.length;D++){var y=V[D];for(var j=D-1;j>=0;j--){var J=V[j];
if(y.Ct<J.Ct||y.An>J.An||y.t2<J.t2||y._6>J._6)continue;if(!hQ.anB(J.cz,y.cz[0]+.5,y.cz[1]+.5))continue;
y.parent=j;break}}return V}function Y(P,w){function f(a,I,E,c,u){this.x=a;this.y=I;this.ER=E;this.D5=c;
this.WQ=u}function h(a,C){return(C+a)%C}function Q(a,I,E,c){return a*c-E*I}function e(a,I,E,c){return a*E+I*c}function l(a,I,E){if(a<=E)return a<=I&&I<E;
else return a<=I||I<E}function O(a,I,E){var c=0;c+=I*a[0]*I;c+=I*a[1]*E;c+=I*a[2];c+=E*a[3]*I;c+=E*a[4]*E;
c+=E*a[5];c+=a[6]*I;c+=a[7]*E;c+=a[8];return c}function m(a,I,E){return I+a*(E-I)}function V(a,I,E,c){var u=Math.sign(E-a),n=-Math.sign(c-I);
return u*(E-a)-n*(c-I)}function q(a,I){return Math.sqrt(a*a+I*I)}function K(a,I,E,c,u){var n=1-a;return n*n*n*I+3*(n*n*a)*E+3*(a*a*n)*c+a*a*a*u}function z(a,I,E,c,u,n,o,x){var g=Q(a,I,o,x),v=Q(E,c,o,x),R=Q(u,n,o,x),X=g-2*v+R,B=-2*g+2*v,M=g,r=B*B-4*X*M;
if(X==0||r<0)return-1;var N=Math.sqrt(r),$=(-B+N)/(2*X),eQ=(-B-N)/(2*X);if($>=0&&$<=1)return $;else if(eQ>=0&&eQ<=1)return eQ;
else return-1}function t(A){var D,a,I;A.GU=A.cz[0];A.a4g=A.cz[1];A.So=[];var E=A.So;E.push(new f(0,0,0,0,0));
for(D=0;D<A.GB;D++){a=A.cz[D<<1]-A.GU;I=A.cz[(D<<1)+1]-A.a4g;E.push(new f(E[D].x+a,E[D].y+I,E[D].ER+a*I,E[D].D5+a*a,E[D].WQ+I*I))}}function H(A){var C=A.GB,a=A.cz,I,E=new Array(C),c=new Array(C),u=new Array(4),n,o,x,g,v,R,X,B,M,r,N,D,$,eQ,hN,bI,fq,e9,W=0;
A.Lv=new Array(C);for(D=C-1;D>=0;D--){if(a[D<<1]!=a[W<<1]&&a[(D<<1)+1]!=a[(W<<1)+1])W=D+1;c[D]=W}for(D=C-1;
D>=0;D--){var L=h(D+1,C)<<1;u[0]=u[1]=u[2]=u[3]=0;I=(3+3*(a[L]-a[D<<1])+(a[L+1]-a[(D<<1)+1]))/2;u[I]++;
n=0;o=0;x=0;g=0;W=c[D];eQ=D;while(1){N=0;I=(3+3*Math.sign(a[W*2]-a[eQ*2])+Math.sign(a[W*2+1]-a[eQ*2+1]))/2;
u[I]++;if(u[0]&&u[1]&&u[2]&&u[3]){E[D]=eQ;N=1;break}M=a[W*2]-a[D*2];r=a[W*2+1]-a[D*2+1];if(Q(n,o,M,r)<0||Q(x,g,M,r)>0){break}if(Math.abs(M)<=1&&Math.abs(r)<=1){}else{v=M+(r>=0&&(r>0||M<0)?1:-1);
R=r+(M<=0&&(M<0||r<0)?1:-1);if(Q(n,o,v,R)>=0){n=v;o=R}v=M+(r<=0&&(r<0||M<0)?1:-1);R=r+(M>=0&&(M>0||r<0)?1:-1);
if(Q(x,g,v,R)<=0){x=v;g=R}}eQ=W;W=c[eQ];if(!l(W,D,eQ)){break}}if(N==0){X=Math.sign(a[W*2]-a[eQ*2]);B=Math.sign(a[W*2+1]-a[eQ*2+1]);
M=a[eQ*2]-a[D*2];r=a[eQ*2+1]-a[D*2+1];hN=Q(n,o,M,r);bI=Q(n,o,X,B);fq=Q(x,g,M,r);e9=Q(x,g,X,B);$=1e7;
if(bI<0){$=Math.floor(hN/-bI)}if(e9>0){$=Math.min($,Math.floor(-fq/e9))}E[D]=h(eQ+$,C)}}$=E[C-1];A.Lv[C-1]=$;
for(D=C-2;D>=0;D--){if(l(D+1,E[D],$)){$=E[D]}A.Lv[D]=$}for(D=C-1;l(h(D+1,C),$,A.Lv[D]);D--){A.Lv[D]=$}}function i(A){function a(A,D,I){var C=A.GB,M=A.cz,r=A.So,N,$,eQ,hN,bI,c,fq,e9,B,W,L,bd,iw,d7,d0=0;
if(I>=C){I-=C;d0=1}if(d0==0){N=r[I+1].x-r[D].x;$=r[I+1].y-r[D].y;hN=r[I+1].D5-r[D].D5;eQ=r[I+1].ER-r[D].ER;
bI=r[I+1].WQ-r[D].WQ;c=I+1-D}else{N=r[I+1].x-r[D].x+r[C].x;$=r[I+1].y-r[D].y+r[C].y;hN=r[I+1].D5-r[D].D5+r[C].D5;
eQ=r[I+1].ER-r[D].ER+r[C].ER;bI=r[I+1].WQ-r[D].WQ+r[C].WQ;c=I+1-D+C}L=(M[D<<1]+M[I<<1])/2-M[0];bd=(M[(D<<1)+1]+M[(I<<1)+1])/2-M[1];
d7=M[I<<1]-M[D<<1];iw=-(M[(I<<1)+1]-M[(D<<1)+1]);fq=(hN-2*N*L)/c+L*L;e9=(eQ-N*bd-$*L)/c+L*bd;B=(bI-2*$*bd)/c+bd*bd;
W=iw*iw*fq+2*iw*d7*e9+d7*d7*B;return Math.sqrt(W)}var D,I,E,c,C=A.GB,u=new Array(C+1),n=new Array(C+1),o=new Array(C),x=new Array(C+1),g=new Array(C+1),v=new Array(C+1),R,X,B;
for(D=0;D<C;D++){B=h(A.Lv[h(D-1,C)]-1,C);if(B==D){B=h(D+1,C)}if(B<D){o[D]=C}else{o[D]=B}}I=1;for(D=0;
D<C;D++){while(I<=o[D]){x[I]=D;I++}}D=0;for(I=0;D<C;I++){g[I]=D;D=o[D]}g[I]=C;E=I;D=C;for(I=E;I>0;I--){v[I]=D;
D=x[D]}v[0]=0;u[0]=0;for(I=1;I<=E;I++){for(D=v[I];D<=g[I];D++){X=-1;for(c=g[I-1];c>=x[D];c--){R=a(A,c,D)+u[c];
if(X<0||R<X){n[D]=c;X=R}}u[D]=X}}A.b9=E;A.aaQ=new Array(E);for(D=C,I=E-1;D>0;I--){D=n[D];A.aaQ[I]=D}}function y(A){function a(A,D,R,o,x,gS){var C=A.GB,cf=A.So,cT=0,B;
while(R>=C){R-=C;cT+=1}while(D>=C){D-=C;cT-=1}while(R<0){R+=C;cT-=1}while(D<0){D+=C;cT+=1}var fU=cf[R+1].x-cf[D].x+cT*cf[C].x,dX=cf[R+1].y-cf[D].y+cT*cf[C].y,g$=cf[R+1].D5-cf[D].D5+cT*cf[C].D5,bX=cf[R+1].ER-cf[D].ER+cT*cf[C].ER,aw=cf[R+1].WQ-cf[D].WQ+cT*cf[C].WQ,X=R+1-D+cT*C;
o[gS]=fU/X;o[gS+1]=dX/X;var hP=(g$-fU*fU/X)/X,eG=(bX-fU*dX/X)/X,eB=(aw-dX*dX/X)/X,bb=(hP+eB+Math.sqrt((hP-eB)*(hP-eB)+4*eG*eG))/2;
hP-=bb;eB-=bb;if(Math.abs(hP)>=Math.abs(eB)){B=Math.sqrt(hP*hP+eG*eG);if(B!=0){x[gS]=-eG/B;x[gS+1]=hP/B}}else{B=Math.sqrt(eB*eB+eG*eG);
if(B!=0){x[gS]=-eB/B;x[gS+1]=eG/B}}if(B==0){x[gS]=x[gS+1]=0}}var I=A.b9,E=A.aaQ,C=A.GB,c=A.cz,u=A.GU,n=A.a4g,o=new Array(I*2),x=new Array(I*2),g=new Array(I),v=new Array(3),D,R,X,B,$,eQ,hN,bI,fq,e9,W;
A.Va=new S(I);for(D=0;D<I;D++){R=E[h(D+1,I)];R=h(R-E[D],C)+E[D];o[D<<1]=0;o[(D<<1)+1]=0;x[D<<1]=0;x[(D<<1)+1]=0;
a(A,E[D],R,o,x,D<<1)}for(D=0;D<I;D++){g[D]=[0,0,0,0,0,0,0,0,0];var M=x[D<<1]*x[D<<1]+x[(D<<1)+1]*x[(D<<1)+1],r=1/M;
if(M!=0){v[0]=x[(D<<1)+1];v[1]=-x[D<<1];v[2]=-v[1]*o[(D<<1)+1]-v[0]*o[D<<1];for(B=0;B<3;B++){g[D][B*3+0]=v[B]*v[0]*r;
g[D][B*3+1]=v[B]*v[1]*r;g[D][B*3+2]=v[B]*v[2]*r}}}var N=[0,0,0,0,0,0,0,0,0];for(D=0;D<I;D++){N[0]=N[1]=N[2]=N[3]=N[4]=N[5]=N[6]=N[7]=N[8]=N[9]=0;
var L=c[E[D]<<1]-u,bd=c[(E[D]<<1)+1]-n,iw=0,d7=0;R=h(D-1,I);for(B=0;B<9;B+=3){N[B+0]=g[R][B+0]+g[D][B+0];
N[B+1]=g[R][B+1]+g[D][B+1];N[B+2]=g[R][B+2]+g[D][B+2]}while(1){var d0=N[0]*N[4]-N[1]*N[3];if(d0!=0){iw=(-N[2]*N[4]+N[5]*N[0])/d0;
d7=(N[2]*N[3]-N[5]*N[0])/d0;break}if(N[0]>N[4]){v[0]=-N[1];v[1]=N[0]}else if(N[4]){v[0]=-N[4];v[1]=N[3]}else{v[0]=1;
v[1]=0}var M=v[0]*v[0]+v[1]*v[1],r=1/M;v[2]=-v[1]*bd-v[0]*L;for(B=0;B<3;B++){N[B*3+0]+=v[B]*v[0]*r;N[B*3+1]+=v[B]*v[1]*r;
N[B*3+2]+=v[B]*v[2]*r}}$=Math.abs(iw-L);eQ=Math.abs(d7-bd);if($<=.5&&eQ<=.5){A.Va.g4[D<<1]=iw+u;A.Va.g4[(D<<1)+1]=d7+n;
continue}hN=O(N,L,bd);fq=L;e9=bd;if(N[0]!=0){for(W=0;W<2;W++){d7=bd-.5+W;iw=-(N[1]*d7+N[2])/N[0];$=Math.abs(iw-L);
bI=O(N,iw,d7);if($<=.5&&bI<hN){hN=bI;fq=iw;e9=d7}}}if(N[4]!=0){for(W=0;W<2;W++){iw=L-.5+W;d7=-(N[3]*iw+N[5])/N[4];
eQ=Math.abs(d7-bd);bI=O(N,iw,d7);if(eQ<=.5&&bI<hN){hN=bI;fq=iw;e9=d7}}}for(B=0;B<2;B++){for(X=0;X<2;
X++){iw=L-.5+B;d7=bd-.5+X;bI=O(N,iw,d7);if(bI<hN){hN=bI;fq=iw;e9=d7}}}A.Va.g4[D<<1]=fq+u;A.Va.g4[(D<<1)+1]=e9+n}}function j(A){var a=A.Va.rX,I=A.Va,D,E,c,u,n,o,x,g,v;
for(D=0;D<a;D++){E=h(D+1,a);c=h(D+2,a);var R=I.g4[D<<1],X=I.g4[(D<<1)+1],B=I.g4[c<<1],M=I.g4[(c<<1)+1],r=I.g4[E<<1],N=I.g4[(E<<1)+1],$=m(.5,B,r),eQ=m(.5,M,N);
n=V(R,X,B,M);if(n!=0){u=Q(r-R,N-X,B-R,M-X)/n;u=Math.abs(u);o=u>1?1-1/u:0;o=o*(1/.75)}else{o=4/3}I.H7[E]=o;
var hN=3*E<<1;if(o>=w.abI){I.fb[E]=0;I.tE[hN+0]=I.tE[hN+1]=0;I.tE[hN+2]=r;I.tE[hN+3]=N;I.tE[hN+4]=$;
I.tE[hN+5]=eQ}else{if(o<.55){o=.55}else if(o>1){o=1}var bI=.5+.5*o;I.fb[E]=1;I.tE[hN]=m(bI,R,r);I.tE[hN+1]=m(bI,X,N);
I.tE[hN+2]=m(bI,B,r);I.tE[hN+3]=m(bI,M,N);I.tE[hN+4]=$;I.tE[hN+5]=eQ}I.alpha[E]=o;I.DH[E]=.5}I.ae5=1}function J(A){function a(){this.nc=0;
this.kK=0;this.fS=0;this.XK=0;this.Ab=0;this.QX=0;this.zk=0;this.alpha=0}function I(A,D,R,er,ea,fq,e9){var c=A.Va.rX,hD=A.Va.tE,bP=A.Va.g4;
if(D==R)return 1;var iz=D,r=h(D+1,c),iq=h(iz+1,c),bX=bP[D<<1],aw=bP[(D<<1)+1],cU=bP[r<<1],aH=bP[(r<<1)+1],eK=fq[iq];
if(eK==0)return 1;var h6=q(bX-cU,aw-aH);for(iz=iq;iz!=R;iz=iq){var iq=h(iz+1,c),co=h(iz+2,c),dh=bP[iq<<1],cX=bP[(iq<<1)+1],eY=bP[co<<1],ga=bP[(co<<1)+1];
if(fq[iq]!=eK)return 1;if(Math.sign(Q(cU-bX,aH-aw,eY-dh,ga-cX))!=eK)return 1;if(e(cU-bX,aH-aw,eY-dh,ga-cX)<h6*q(dh-eY,cX-ga)*-.999847695156)return 1}var h0=h(D,c)*3+2<<1,a8=h(D+1,c)<<1,cc=h(R,c)<<1,hW=h(R,c)*3+2<<1,gS=hD[h0],cf=hD[h0+1],em=bP[a8],br=bP[a8+1],cF=bP[cc],cW=bP[cc+1],bM=hD[hW],ct=hD[hW+1],W=bP[0],L=bP[1];
h0=R*3+2<<1;var aQ=hD[h0],eA=hD[h0+1],N=e9[R]-e9[D];N-=Q(aQ-W,eA-L,aQ-W,eA-L)/2;if(D>=R){N+=e9[c]}var gQ=em-gS,eE=br-cf,a1=cF-gS,fA=cW-cf,eH=bM-gS,gd=ct-cf,ey=Q(gQ,eE,a1,fA),hx=Q(gQ,eE,eH,gd),ew=Q(a1,fA,eH,gd),am=ey+ew-hx;
if(hx==ey)return 1;var bI=ew/(ew-am),hN=hx/(hx-ey),dI=hx*bI/2;if(dI==0)return 1;var bs=N/dI,$=2-Math.sqrt(4-bs/.3);
er.kK=m(bI*$,gS,em);er.fS=m(bI*$,cf,br);er.XK=m(hN*$,bM,cF);er.Ab=m(hN*$,ct,cW);er.alpha=$;er.QX=bI;
er.zk=hN;em=er.kK;br=er.fS;cF=er.XK;cW=er.Ab;er.nc=0;for(iz=h(D+1,c);iz!=R;iz=iq){iq=h(iz+1,c);var fE=bP[iz<<1],gg=bP[(iz<<1)+1],dh=bP[iq<<1],cX=bP[(iq<<1)+1];
bI=z(em-gS,br-cf,cF-em,cW-br,bM-cF,ct-cW,dh-fE,cX-gg);if(bI<-.5)return 1;var bT=K(bI,gS,em,cF,bM),aa=K(bI,cf,br,cW,ct),h6=q(dh-fE,cX-gg);
if(h6==0)return 1;var gR=Q(dh-fE,cX-gg,bT-fE,aa-gg)/h6;if(Math.abs(gR)>ea)return 1;if(e(dh-fE,cX-gg,bT-fE,aa-gg)<0||e(fE-dh,gg-cX,bT-dh,aa-cX)<0){return 1}er.nc+=gR*gR}for(iz=D;
iz!=R;iz=iq){iq=h(iz+1,c);var h0=iz*3+2<<1,a8=iq*3+2<<1,gb=hD[h0],bH=hD[h0+1],dW=hD[a8],cj=hD[a8+1];
bI=z(em-gS,br-cf,cF-em,cW-br,bM-cF,ct-cW,dW-gb,cj-bH);if(bI<-.5)return 1;var bT=K(bI,gS,em,cF,bM),aa=K(bI,cf,br,cW,ct),h6=q(dW-gb,cj-bH);
if(h6==0)return 1;var gR=Q(dW-gb,cj-bH,bT-gb,aa-bH)/h6,bm=Q(dW-gb,cj-bH,bP[iq<<1]-gb,bP[(iq<<1)+1]-bH)/h6;
bm*=.75*A.Va.alpha[iq];if(bm<0){gR=-gR;bm=-bm}if(gR<bm-ea)return 1;if(gR<bm){er.nc+=(gR-bm)*(gR-bm)}}return 0}var E=A.Va,c=E.rX,u=E.g4,n=new Array(c+1),o=new Array(c+1),x=new Array(c+1),g=new Array(c+1),v,D,R,X,B=new a,M,r,N,$,eQ,hN,bI,fq=new Array(c),e9=new Array(c+1);
for(D=0;D<c;D++){if(E.fb[D]=="CURVE"){var W=u[h(D-1,c)<<1],L=u[(h(D-1,c)<<1)+1],bd=u[D<<1],iw=u[(D<<1)+1],d7=u[h(D+1,c)<<1],d0=u[(h(D+1,c)<<1)+1];
fq[D]=Math.sign(Q(bd-W,iw-L,d7-bd,d0-iw))}else{fq[D]=0}}N=0;e9[0]=0;var gS=E.g4[0],cf=E.g4[1];for(D=0;
D<c;D++){r=h(D+1,c);if(E.fb[r]=="CURVE"){$=E.alpha[r];var cT=D*3+2<<1,fU=r*3+2<<1,dX=E.tE[cT],g$=E.tE[cT+1],bX=u[r<<1],aw=u[(r<<1)+1],hP=E.tE[fU],eG=E.tE[fU+1];
N+=.3*$*(4-$)*Q(bX-dX,aw-g$,hP-dX,eG-g$)/2;N+=Q(dX-gS,g$-cf,hP-gS,eG-cf)/2}e9[D+1]=N}n[0]=-1;o[0]=0;
x[0]=0;for(R=1;R<=c;R++){n[R]=R-1;o[R]=o[R-1];x[R]=x[R-1]+1;for(D=R-2;D>=0;D--){X=I(A,D,h(R,c),B,w.a6a,fq,e9);
if(X){break}if(x[R]>x[D]+1||x[R]==x[D]+1&&o[R]>o[D]+B.nc){n[R]=D;o[R]=o[D]+B.nc;x[R]=x[D]+1;g[R]=B;B=new a}}}v=x[c];
eQ=new S(v);hN=new Array(v);bI=new Array(v);R=c;for(D=v-1;D>=0;D--){var eB=h(R,c),bb=D*3+0<<1,gx=eB*3+0<<1;
if(n[R]==R-1){eQ.fb[D]=E.fb[eB];eQ.tE[bb]=E.tE[gx];eQ.tE[bb+1]=E.tE[gx+1];eQ.tE[bb+2]=E.tE[gx+2];eQ.tE[bb+3]=E.tE[gx+3];
eQ.tE[bb+4]=E.tE[gx+4];eQ.tE[bb+5]=E.tE[gx+5];eQ.g4[D<<1]=E.g4[eB<<1];eQ.g4[(D<<1)+1]=E.g4[(eB<<1)+1];
eQ.alpha[D]=E.alpha[eB];eQ.H7[D]=E.H7[eB];eQ.DH[D]=E.DH[eB];hN[D]=bI[D]=1}else{eQ.fb[D]="CURVE";eQ.tE[bb]=g[R].kK;
eQ.tE[bb+1]=g[R].fS;eQ.tE[bb+2]=g[R].XK;eQ.tE[bb+3]=g[R].Ab;eQ.tE[bb+4]=E.tE[gx+4];eQ.tE[bb+5]=E.tE[gx+5];
eQ.g4[D<<1]=m(g[R].zk,E.tE[gx+4],u[eB<<1]);eQ.g4[(D<<1)+1]=m(g[R].zk,E.tE[gx+5],u[(eB<<1)+1]);eQ.alpha[D]=g[R].alpha;
eQ.H7[D]=g[R].alpha;hN[D]=g[R].zk;bI[D]=g[R].QX}R=n[R]}for(D=0;D<v;D++){r=h(D+1,v);eQ.DH[D]=hN[D]/(hN[D]+bI[r])}eQ.ae5=1;
A.Va=eQ}for(var D=0;D<P.length;D++){var A=P[D];t(A);H(A);i(A);y(A);j(A);if(w.ac9)J(A)}}return{akn:b,afG:Y}}();
hQ.Se=function(Z,S,b,Y){var P={zQ:"minority",afy:Y,ac9:!0,abI:1,a6a:.2},w=hQ.akn(Z,S,b,P);hQ.afG(w,P);
return w};hQ.zl=function(Z){var S=[];for(var D=0;D<Z.length;D++){var b=Z[D],Y=b.Va,P=["M"],w=[Y.tE[(Y.rX-1)*6+4],Y.tE[(Y.rX-1)*6+5]];
for(var f=0;f<Y.rX;f++){var h=f*6;if(Y.fb[f]==1){P.push("C");for(var Q=0;Q<6;Q++)w.push(Y.tE[h+Q])}else if(Y.fb[f]==0){P.push("L");
for(var Q=2;Q<4;Q++)w.push(Y.tE[h+Q])}}P.push("Z");S.push({parent:b.parent,color:b.color,path:{H:w,K:P}})}return S};
hQ.a0O=function(Z,S,b,Y,P){function w(q){function K(D){var V="C "+(q.tE[D*3+0<<1]*S).toFixed(1)+" "+(q.tE[(D*3+0<<1)+1]*S).toFixed(1)+",";
V+=(q.tE[D*3+1<<1]*S).toFixed(1)+" "+(q.tE[(D*3+1<<1)+1]*S).toFixed(1)+",";V+=(q.tE[D*3+2<<1]*S).toFixed(1)+" "+(q.tE[(D*3+2<<1)+1]*S).toFixed(1)+" ";
return V}function z(D){var H="L "+(q.tE[D*3+1<<1]*S).toFixed(1)+" "+(q.tE[(D*3+1<<1)+1]*S).toFixed(1)+" ";
H+=(q.tE[D*3+2<<1]*S).toFixed(1)+" "+(q.tE[(D*3+2<<1)+1]*S).toFixed(1)+" ";return H}var C=q.rX,D,t="M"+(q.tE[(C-1)*3+2<<1]*S).toFixed(1)+" "+(q.tE[((C-1)*3+2<<1)+1]*S).toFixed(1)+" ";
for(D=0;D<C;D++){if(q.fb[D]==1){t+=K(D)}else if(q.fb[D]==0){t+=z(D)}}return t}var b=b*S,Y=Y*S,f=Z.length,h=[];
for(var D=0;D<256;D++)h.push("rgb("+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+")");
var Q="<svg id=\"svg\" version=\"1.1\" width=\""+b+"\" height=\""+Y+"\" xmlns=\"http://www.w3.org/2000/svg\">";
for(var D=0;D<f;D++){var e=P[Z[D].color-1].a8g.A1;if((e>>>24&255)==0)continue;Q+="<path d=\"";var l=Z[D].Va;
Q+=w(l);var O=e>>0&255,m=e>>8&255,V=e>>16&255,e="rgb("+O+","+m+","+V+")";Q+="\" fill=\""+e+"\" fill-rule=\"evenodd\"/>"}Q+="</svg>";
return Q};hQ.anB=function(Z,S,b){var C=Z.length>>1,Y,P=Z[2*C-3]-b,w=Z[2*C-2]-S,f=Z[2*C-1]-b,h=f>P,Q=0;
for(var D=0;D<C;D++){Y=w;P=f;w=Z[2*D]-S;f=Z[2*D+1]-b;if(P==f)continue;h=f>P}for(var D=0;D<C;D++){Y=w;
P=f;w=Z[2*D]-S;f=Z[2*D+1]-b;if(P<0&&f<0)continue;if(P>0&&f>0)continue;if(Y<0&&w<0)continue;if(P==f&&Math.min(Y,w)<=0)return!0;
if(P==f)continue;var e=Y+(w-Y)*-P/(f-P);if(e==0)return!0;if(e>0)Q++;if(P==0&&h&&f>P)Q--;if(P==0&&!h&&f<P)Q--;
h=f>P}return(Q&1)==1};hQ.fill=function(Z,S,b,Y){var P=S[Z],w=[Z],f=0;while(f<w.length){var h=w[f];f++;
S[h]=Y;if(S[h-b]==P){w.push(h-b);S[h-b]=254}if(S[h-1]==P){w.push(h-1);S[h-1]=254}if(S[h+1]==P){w.push(h+1);
S[h+1]=254}if(S[h+b]==P){w.push(h+b);S[h+b]=254}}};var p={};p.lc=!1;p.EF=!1;p.z9=!1;p.QY=document.createElement("canvas");
p.x_=null;p.eA=null;p.Qq=0;(function(){var Z={alpha:!0,antialias:!1,depth:!1,premultipliedAlpha:!1},S;
if(!S)S=p.QY.getContext("webgl",Z);if(!S)S=p.QY.getContext("experimental-webgl",Z);if(S){p.lc=!0;p.EF=!0;
p.x_=S;p.eA=S.createFramebuffer();S.bindFramebuffer(S.FRAMEBUFFER,p.eA);S.disable(S.BLEND);S.disable(S.DEPTH_TEST);
var b=S.createBuffer();S.bindBuffer(S.ARRAY_BUFFER,b);S.bufferData(S.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),S.STATIC_DRAW);
S.enableVertexAttribArray(0);S.vertexAttribPointer(0,2,S.FLOAT,!1,0,0)}}());p.ajb=function(Z){Z=Z.replace(/\s\s+/g," ");
Z=Z.replace(/; /g,";");Z=Z.replace(/} /g,"}");Z=Z.replace(/ }/g,"}");Z=Z.replace(/{ /g,"{");Z=Z.replace(/ {/g,"{");
Z=Z.replace(/= /g,"=");Z=Z.replace(/ =/g,"=");Z=Z.replace(/\| /g,"|");Z=Z.replace(/ \|/g,"|");return Z};
p.aad=function(Z){var S=p.x_;if(Z>S.getParameter(S.MAX_TEXTURE_SIZE)){p.lc=!1;alert("Disabling WebGL")}};
p.jS=function(Z,S){return new Float32Array([(Z.x-S.x)/S.c,(Z.y-S.y)/S.v,Z.c/S.c,Z.v/S.v])};p.bo=function(){return this.QY};
p.Kd=function(Z,S){var b=p.x_;b.bindFramebuffer(b.FRAMEBUFFER,p.eA);b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,Z.t_,0);
b.viewport(0,0,Z.c,Z.v);if(S){b.enable(b.SCISSOR_TEST);b.scissor(S.x,S.y,S.c,S.v)}else b.disable(b.SCISSOR_TEST)};
p.vk=function(Z,S,b){if(b)throw"error";var Y=p.x_;Y.disable(Y.SCISSOR_TEST);Y.bindFramebuffer(Y.FRAMEBUFFER,null);
Y.viewport(0,0,Z,S);if(b){Y.enable(Y.SCISSOR_TEST);Y.scissor(b.x,b.y,Math.round(b.c),Math.round(b.v))}else Y.disable(Y.SCISSOR_TEST)};
p.clear=function(){var Z=p.x_;Z.clearColor(0,0,0,0);Z.clear(Z.COLOR_BUFFER_BIT)};p.RO=function(Z,S){if(S==null)S=0;
var b=(S>>>0&255)==0,Y=(S>>>8&255)==0,P=(S>>>16&255)==0,w=(S>>>24&255)==0,f=(Z>>>0&255)*(1/255),h=(Z>>>8&255)*(1/255),Q=(Z>>>16&255)*(1/255),e=(Z>>>24&255)*(1/255),l=p.x_;
l.colorMask(b,Y,P,w);l.clearColor(f,h,Q,e);l.clear(l.COLOR_BUFFER_BIT);l.colorMask(!0,!0,!0,!0)};p.CF=function(Z,S,b,Y,P){var w=S.Yz(Y);
if(P)w=w.Yz(P);if(w.h3())return;var f=p.x_;p.Kd(Z);f.bindTexture(f.TEXTURE_2D,b.t_);f.copyTexSubImage2D(f.TEXTURE_2D,0,w.x-Y.x,w.y-Y.y,w.x-S.x,w.y-S.y,w.c,w.v)};
p._w=function(D,Z,S){var b=p.MP[D];if(b==null||b.c!=Z||b.v!=S){if(b)b.delete();b=new p.XA(Z,S)}p.MP[D]=b;
return b};p.MP=[];p.ft=function(){this.tA=null;this.mf=null};p.ft.Mj=null;p.ft.prototype.d7=function(Z){if(this.mf)return;
this.mf={};var S=p.x_,b=this.tA,Y=this.mf;for(var D=0;D<Z.length;D++){var P=Z[D];Y[P]=S.getUniformLocation(b,P)}};
p.ft.prototype.Vx=function(){};p.ft.prototype.R8=function(Z){var S=p.x_;for(var D=0;D<Z.length;D+=2){S.uniform1i(Z[D],D>>>1);
S.activeTexture(S["TEXTURE"+(D>>>1)]);S.bindTexture(S.TEXTURE_2D,Z[D+1])}S.activeTexture(S.TEXTURE0)};
p.ft.prototype.wi=function(Z,S){var b=p.x_,Y=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(Y,Z);b.compileShader(Y);
if(!b.getShaderParameter(Y,b.COMPILE_STATUS))console.log(b.getShaderInfoLog(Y));var P=b.createShader(b.VERTEX_SHADER);
b.shaderSource(P,S);b.compileShader(P);if(!b.getShaderParameter(P,b.COMPILE_STATUS))console.log(b.getShaderInfoLog(P));
var w=b.createProgram();b.attachShader(w,P);b.attachShader(w,Y);b.linkProgram(w);if(!b.getProgramParameter(w,b.LINK_STATUS))console.log("Could not initialise shaders");
this.tA=w};p.ft.prototype.RF=function(){if(p.ft.Mj!=this){p.x_.useProgram(this.tA);p.ft.Mj=this}};p.vt=function(Z,S){p.MG++;
p.Qq+=Z*S;if(p.z9)console.log("GL.Channels instances: "+p.MG+", memory: "+p.Qq);var b=p.x_;this.c=Z;
this.v=S;this.t_=b.createTexture();this.J5=null;this.RJ(this.t_,Z,S)};p.vt.prototype.RJ=function(Z,S,b){var Y=p.x_;
Y.bindTexture(Y.TEXTURE_2D,Z);Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_MIN_FILTER,Y.NEAREST);Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_MAG_FILTER,Y.NEAREST);
Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_WRAP_S,Y.CLAMP_TO_EDGE);Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_WRAP_T,Y.CLAMP_TO_EDGE);
Y.texImage2D(Y.TEXTURE_2D,0,Y.ALPHA,S,b,0,Y.ALPHA,Y.UNSIGNED_BYTE,null)};p.vt.prototype.set=function(Z){var S=p.x_;
S.bindTexture(S.TEXTURE_2D,this.t_);S.pixelStorei(S.UNPACK_ALIGNMENT,1);S.texImage2D(S.TEXTURE_2D,0,S.ALPHA,this.c,this.v,0,S.ALPHA,S.UNSIGNED_BYTE,Z);
S.pixelStorei(S.UNPACK_ALIGNMENT,4)};p.vt.prototype.delete=function(){var Z=p.x_;if(this.t_){Z.deleteTexture(this.t_);
p.MG--;p.Qq-=this.c*this.v}if(p.z9)if(p.z9)console.log("GL.Channels instances: "+p.MG+", memory: "+p.Qq*4)};
p.MG=0;p.XA=function(Z,S,b){if(b==null)b=!1;p.MG++;p.Qq+=Z*S*4;if(p.z9)console.log("GL.Channels instances: "+p.MG+", memory: "+p.Qq);
var Y=p.x_;this.aod=b;this.c=Z;this.v=S;this.t_=Y.createTexture();this.J5=null;this.RJ(this.t_,Z,S)};
p.XA.prototype.set=function(Z,S){var b=p.x_;b.disable(b.SCISSOR_TEST);b.bindTexture(b.TEXTURE_2D,this.t_);
if(Z==null||Z instanceof Uint8Array){var Y=this.c*this.v;if(S==null||S.X()*10>Y)b.texImage2D(b.TEXTURE_2D,0,b.RGBA,this.c,this.v,0,b.RGBA,b.UNSIGNED_BYTE,Z);
else{var P=T.f(S.X()*4);T.uH(Z,new b4(0,0,this.c,this.v),P,S);b.texSubImage2D(b.TEXTURE_2D,0,S.x,S.y,S.c,S.v,b.RGBA,b.UNSIGNED_BYTE,P)}}else b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,Z)};
p.XA.prototype.get=function(Z){var S=p.x_;p.Kd(this);S.readPixels(0,0,this.c,this.v,S.RGBA,S.UNSIGNED_BYTE,Z)};
p.XA.prototype.k1=function(Z){if(Z.h3())return;var S=p.x_;if(this.J5==null){this.J5=S.createTexture();
this.RJ(this.J5,this.c,this.v);p.MG++;p.Qq+=this.c*this.v*4}S.bindFramebuffer(S.FRAMEBUFFER,p.eA);S.bindTexture(S.TEXTURE_2D,this.J5);
if(Z){var b=Math.max(Z.x,0),Y=Math.max(Z.y,0);S.copyTexSubImage2D(S.TEXTURE_2D,0,b,Y,b,Y,Z.c,Z.v)}else S.copyTexImage2D(S.TEXTURE_2D,0,S.RGBA,0,0,this.c,this.v,0)};
p.XA.prototype.RJ=function(Z,S,b){var Y=p.x_;Y.bindTexture(Y.TEXTURE_2D,Z);Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_MIN_FILTER,this.aod?Y.LINEAR:Y.NEAREST);
Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_MAG_FILTER,Y.NEAREST);Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_WRAP_S,Y.CLAMP_TO_EDGE);
Y.texParameteri(Y.TEXTURE_2D,Y.TEXTURE_WRAP_T,Y.CLAMP_TO_EDGE);Y.texImage2D(Y.TEXTURE_2D,0,Y.RGBA,S,b,0,Y.RGBA,Y.UNSIGNED_BYTE,null)};
p.XA.prototype.delete=function(){var Z=p.x_;if(this.t_){Z.deleteTexture(this.t_);p.MG--;p.Qq-=this.c*this.v*4}if(this.J5){Z.deleteTexture(this.J5);
p.MG--;p.Qq-=this.c*this.v*4}if(p.z9)if(p.z9)console.log("GL.Channels instances: "+p.MG+", memory: "+p.Qq)};
p.XA.prototype.clone=function(){var Z=p.x_,S=new p.XA(this.c,this.v);p.Kd(this);Z.bindTexture(Z.TEXTURE_2D,S.t_);
Z.copyTexImage2D(Z.TEXTURE_2D,0,Z.RGBA,0,0,this.c,this.v,0);return S};p.lH={aoN:" 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))) ); } ",amY:" vec3 ocddg(vec3 a, vec3 b, float f) { return mix( min(ONE3, b/(ONE3 - a*f)) , ONE3 , vec3(equal(a*f,ONE3 )) ); } ",wJ:"const vec3 ZERO3 = vec3(0.0,0.0,0.0) ;\t\t\tconst vec3 QUAR3 = vec3(0.25,0.25,0.25) ;\t\t\tconst vec3 HALF3 = vec3(0.5,0.5,0.5) ;\t\t\tconst vec3 ONE3 = vec3(1.0,1.0,1.0) ;",Ot:" float hueDiff(float shue, float hue) { \t\t\t\tfloat df = hue-shue, adf=abs(df), df0 = df-1.0, df1 = df+1.0; \t\t\t\tif(abs(df0) < adf) df = df0; \t\t\t\telse if(abs(df1) < adf) df = df1; \t\t\t\treturn df; \t\t\t}",vA:" float hueCF(float hueS, float hue0) { \t\t\t\tfloat df = hueDiff(hue0, hueS)*6.0; \t\t\t\treturn max(0.0, min(1.0, (df<0.0) ? 1.0+df : 1.0-df )); } ",h0:"float sat(vec3 c) { return max(c.x,max(c.y,c.z)) - min(c.x,min(c.y,c.z)); }",oQ:"float lum(vec3 c) { return dot(c, vec3(0.3,0.59,0.11)); } ",Iy:"vec3 D (vec3 x) { return mix( sqrt(x), ((16.0*x-12.0)*x+4.0)*x , vec3(lessThanEqual(x,QUAR3)) ); }",adL:"float midSat (vec3 v, float s) { return ((v.y-v.z)*s)/(v.x-v.z); }",Zz:"vec3 setSat (vec3 c, float s) \t\t\t{\t\t\t\tvec3 o;\t\t\t\tif(c.r==c.g && c.g==c.b) o = ZERO3;\t\t\t\telse if(c.r>c.g) {\t\t\t\t\tif(c.r>c.b) {\t\t\t\t\t\tif(c.g>c.b)\to = vec3(s, midSat(c.rgb,s), 0.0); \t\t\t\t\t\telse\to = vec3(s, 0.0, midSat(c.rbg,s)); \t\t\t\t\t}\t\t\t\t\telse\t\to = vec3(midSat(c.brg,s), 0.0, s); \t\t\t\t} else {\t\t\t\t\tif(c.r<c.b) {\t\t\t\t\t\tif(c.g>c.b)\to = vec3(0.0, s, midSat(c.gbr,s)); \t\t\t\t\t\telse\t o = vec3(0.0, midSat(c.bgr,s), s); \t\t\t\t\t}\t\t\t\t\telse\t\t o = vec3(midSat(c.grb,s), s, 0.0);\t\t\t\t}\t\t\t\treturn o;\t\t\t}",an5:"vec3 clipCol(vec3 c) \t\t\t{ \t\t\t\tvec3 o = c; float l = lum(c); \t\t\t\tfloat n = min(c.r,min(c.g,c.b)); \t\t\t\tfloat x = max(c.r,max(c.g,c.b)); \t\t\t\tif(n<0.0) o = l + (o-l)*(l/(l-n));\t\t\t\tif(x>1.0) o = l + (o-l)*(1.0-l)/(x-l);\t\t\t\treturn o;\t\t\t}",Wf:"vec3 setLum (vec3 c, float l) { return clipCol(c+l-lum(c)); } ",Op:"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); }",dU:"vec3 rgbToHsl (vec3 rgb) {\t\t\t\tfloat r = rgb.r, g = rgb.g, b = rgb.b; \t\t\t\tfloat mx = max(r, max(g, b)), mn = min(r, min(g, b)); \t\t\t\tfloat h, s, l = (mx + mn) * 0.5;\t\t\t\t\t\t\t\tif(mx == mn) h = s = 0.0; \t\t\t\telse{ \t\t\t\t\tfloat d = mx - mn; \t\t\t\t\ts = l > 0.5 ? d / (2.0 - mx - mn) : d / (mx + mn); \t\t\t\t\t\t\t\t\t\tif(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); \t\t\t\t\telse if(mx==g) h = (b - r) / d + 2.0; \t\t\t\t\telse if(mx==b) h = (r - g) / d + 4.0; \t\t\t\t\t\t\t\t\t\th /= 6.0; \t\t\t\t} \t\t\t\treturn vec3(h,s,l); }",E$:"vec3 hslToRgb (float h, float s, float l){\t\t\t\tfloat r, g, b;\t\t\t\t\t\t\t\tif(s == 0.0) r = g = b = l; \t\t\t\telse{ \t\t\t\t\tfloat q = l < 0.5 ? l * (1.0 + s) : l + s - l * s; \t\t\t\t\tfloat p = 2.0 * l - q; \t\t\t\t\tr = hue2rgb(p, q, h + 1.0/3.0); \t\t\t\t\tg = hue2rgb(p, q, h); \t\t\t\t\tb = hue2rgb(p, q, h - 1.0/3.0); \t\t\t\t} \t\t\t\treturn vec3(r,g,b); } ",Ut:"float hue2rgb(float p, float q, float t){ \t\t\t\tif(t < 0.0) t += 1.0;\t\t\t\tif(t > 1.0) t -= 1.0;\t\t\t\tif(t < 1.0/6.0) return p + (q - p) * 6.0 * t; \t\t\t\tif(t < 1.0/2.0) return q; \t\t\t\tif(t < 2.0/3.0) return p + (q - p) * (2.0/3.0 - t) * 6.0; \t\t\t\treturn p;\t}",hy:"vec3 rgbToHsv(vec3 rgb){\t\t\t\t\tfloat r = rgb.r, g = rgb.g, b = rgb.b; \t\t\t\tfloat mx = max(r, max(g, b)), mn = min(r, min(g, b)); \t\t\t\tfloat h, s, v = mx; \t\t\t\t\t\t\t\tfloat d = mx - mn; \t\t\t\ts = mx == 0.0 ? 0.0 : d / mx; \t\t\t\t\t\t\t\tif(mx == mn) h = 0.0; \t\t\t\telse if(mx==r) h = (g - b) / d + (g < b ? 6.0 : 0.0); \t\t\t\telse if(mx==g) h = (b - r) / d + 2.0; \t\t\t\telse if(mx==b) h = (r - g) / d + 4.0; \t\t\t\t\t\t\t\th /= 6.0; \t\t\t\treturn vec3(h,s,v); }",Ta:"vec3 hsvToRgb(float h, float s, float v) { \t\t\t\tfloat r, g, b, f, p, q, t, i; \t\t\t\ti = floor(h * 6.0); \t\t\t\tf = h * 6.0 - i; \t\t\t\tp = v * (1.0 - s); \t\t\t\tq = v * (1.0 - f * s); \t\t\t\tt = v * (1.0 - (1.0 - f) * s); \t\t\t\t\t\t\t\tif (i==0.0) { r = v, g = t, b = p; }\t\t\t\telse if(i==1.0) { r = q, g = v, b = p; }\t\t\t\telse if(i==2.0) { r = p, g = v, b = t; }\t\t\t\telse if(i==3.0) { r = p, g = q, b = v; }\t\t\t\telse if(i==4.0) { r = t, g = p, b = v; }\t\t\t\telse if(i==5.0) { r = v, g = p, b = q; }\t\t\t\t\t\t\t\treturn vec3(r,g,b); }",N1:"\t\tfloat srgbUngamma(float x) {\t\t\treturn (x<0.04045) ? (x / 12.92) : pow( ( x + 0.055 ) / 1.055, 2.4);\t\t}\t\tfloat xyzScale(float x) {\t\t\treturn (x>0.008856) ? pow(x,1.0/3.0) : (903.3*x+16.0)*(1.0/116.0); \t\t}\t\tvec3 rgbToLab(vec3 rgb) {\t\t\tbool ok = true;\t\t\trgb.r = srgbUngamma(rgb.r); \t\t\trgb.g = srgbUngamma(rgb.g); \t\t\trgb.b = srgbUngamma(rgb.b); \t\t\tok = ok && 0.0318<=rgb.r && rgb.r<=0.0319; \t\t\tok = ok && 0.127 <=rgb.g && rgb.g<=0.128 ; \t\t\tok = ok && 0.3047<=rgb.b && rgb.b<=0.305; \t\t\t\t\t\tmat3 srgb2xyz = mat3(0.4360747164307918, 0.222504478679176, 0.013932173981751634, 0.3850649153329662, 0.7168786002139355, 0.09710452396580642, 0.14308038098632878, 0.06061692340677909, 0.7141732835334675); \t\t\t\t\t\tvec3 xyz = srgb2xyz*rgb; \t\t\tok = ok && 0.106<=xyz[0] && xyz[0]<=0.107; \t\t\t\t\t\txyz=xyz*vec3(100.0/96.72, 100.0/100.0, 100.0/81.427); \t\t\txyz.x = xyzScale(xyz.x); \t\t\txyz.y = xyzScale(xyz.y); \t\t\txyz.z = xyzScale(xyz.z); \t\t\t\t\t\treturn vec3(116.0*xyz.y-16.0, 500.0*(xyz.x-xyz.y), 200.0*(xyz.y-xyz.z)); \t\t} \t\tfloat labSimilar(vec3 lab, vec3 mnm, vec3 mxm, float lim) {\t\t\tfloat L=lab.x, a=lab.y, b=lab.z; \t\t\tfloat dl = ((L<mnm.x) ? (mnm.x-L) : ((mxm.x<L) ? (mxm.x-L) : 0.0))*(1.0/100.0); \t\t\tfloat da = ((a<mnm.y) ? (mnm.y-a) : ((mxm.y<a) ? (mxm.y-a) : 0.0))*(1.0/116.0); \t\t\tfloat db = ((b<mnm.z) ? (mnm.z-b) : ((mxm.z<b) ? (mxm.z-b) : 0.0))*(1.0/116.0); \t\t\t/*float dl = (slab.x-lab.x)*(1.0/100.0), da=(slab.y-lab.y)*(1.0/116.0), db=(slab.z-lab.z)*(1.0/116.0);*/ \t\t\tfloat dst = sqrt(dl*dl+da*da+db*db)*1.35; \t\t\treturn (dst<=lim) ? min(1.0,1.17*(1.0 - (dst/lim))) : 0.0; \t\t}",Pc:"\t\tfloat _blendIf(float c, vec4 br) { return min((c-br.x)*br.y, (c-br.w)*br.z); } \t\tfloat blendIf(vec4 sc, vec4 tc, vec4 br[10]) { \t\t\tfloat sg = lum(sc.rgb); \t\t\tfloat tg = lum(tc.rgb); \t\t\tfloat ms = _blendIf(sg,br[0]); \t\t\tms = min(ms, _blendIf(sc.r,br[2])); \t\t\tms = min(ms, _blendIf(sc.g,br[4])); \t\t\tms = min(ms, _blendIf(sc.b,br[6])); \t\t\t\t\t\tfloat mt = _blendIf(tg,br[1]); \t\t\tmt = min(mt, _blendIf(tc.r,br[3])); \t\t\tmt = min(mt, _blendIf(tc.g,br[5])); \t\t\tmt = min(mt, _blendIf(tc.b,br[7])); \t\t\tmt=max(mt,1.0-tc.w);\t\t\t\t\t\tfloat mi=min(ms,mt);\t\t\treturn mi<0.0?0.0:(mi>1.0?1.0:mi);\t\t}"};
p.Es={JJ:{},Jf:"\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 sCoord;\t\t\tvoid main(void) {\t\t\t\tsCoord = verPos;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}"};
p.Es.H2=function(Z,S){var b=g3.gS,Y=[b._f,b.UK,b.wG,b.eg,b.eo,b.Dv,b.Sa,b.VX].indexOf(Z.type),P=p.Es.JJ[Z.type];
if(P==null)P=p.Es.JJ[Z.type]=new p.JJ[Y];P.RF();P.Vx(S,Z);p.x_.drawArrays(p.x_.TRIANGLES,0,6)};p.JJ=[];
p.JJ[0]=function(){p.ft.call(this);this.Eg={};var Z="\t\t\tprecision mediump float;\t\t\t"+p.lH.oQ+"\t\t\t"+p.lH.wJ+"\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D map;\t\t\tuniform float toGray;\t\t\tuniform float presLum;\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tfloat olum = lum(src.rgb); \t\t\t\tsrc.rgb = toGray * vec3(olum) + (1.0-toGray)*src.rgb; \t\t\t\tfloat r = texture2D(map, vec2(src.r, 0)).r;\t\t\t\tfloat g = texture2D(map, vec2(src.g, 0)).g;\t\t\t\tfloat b = texture2D(map, vec2(src.b, 0)).b;\t\t\t\tvec3 col = vec3(r,g,b); \t\t\t\tif(presLum==1.0) { \t\t\t\t\tfloat nlum = lum(col); \t\t\t\t\tif(olum>nlum) col += (olum-nlum)/(1.0-nlum)*(ONE3-col); \t\t\t\t\telse if(nlum==0.0) col = ZERO3; \t\t\t\t\telse col = (olum/nlum) * col; \t\t\t\t}\t\t\t\tgl_FragColor = vec4(col,src.w);\t\t\t\t\t\t\t}";
this.wi(Z,p.Es.Jf)};p.JJ[0].prototype=new p.ft;p.JJ[0].prototype.Vx=function(Z,S){var b={h:S.x0,l:S.Nn,O:S.yf,w:T.f(S.x0.length)},Y=b.h.length;
if(this.Eg["m"+Y]==null){this.Eg["m"+Y]={aiA:new p.XA(Y,1),j$:T.f(Y*4)}}var P=this.Eg["m"+Y];T.s$(b,P.j$,0);
var w=P.aiA;w.set(P.j$);this.d7(["source","map","toGray","presLum"]);var f=p.x_,h=this.mf;f.uniform1f(h.toGray,S.kl?1:0);
f.uniform1f(h.presLum,S.nQ?1:0);this.R8([h.source,Z,h.map,w.t_])};p.JJ[1]=function(){p.ft.call(this);
this.a5b=new p.XA(256,1);this.acO=T.f(256*4);var Z="\t\t\t\tprecision mediump float;\t\t\t\t"+p.lH.Ut+"\t\t\t\t"+p.lH.dU+"\t\t\t\t"+p.lH.E$+"\t\t\t\t\t\t\t\tuniform sampler2D source;\t\t\t\tuniform sampler2D map;\t\t\t\tuniform float cfa; \t\t\t\tuniform float cfb; \t\t\t\tuniform int colorize; \t\t\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\t\t\tvoid main(void) { \t\t\t\t\tvec4 src = texture2D(source, sCoord);\t\t\t\t\tvec3 rgb = src.rgb;\t\t\t\t\tfloat mn=min(rgb.r,min(rgb.g,rgb.b)), mx = max(rgb.r,max(rgb.g,rgb.b));\t\t\t\t\t\t\t\t\t\tvec3 hsl = rgbToHsl(rgb); \t\t\t\t\tfloat h = hsl.r, s = hsl.g, l = hsl.b; \t\t\t\t\t\t\t\t\t\tvec4 mapv = texture2D(map, vec2(h, 0));\t\t\t\t\tfloat nh = mapv.r; \t\t\t\t\tfloat sc = mapv.g*2.0-1.0; \t\t\t\t\tfloat lc = mapv.b*2.0-1.0; \t\t\t\t\t\t\t\t\t\tfloat cf = -lc, tv=mn;\t\t\t\t\tif(0.0<lc) { cf=lc; tv=mx; }\t\t\t\t\t\t\t\t\t\tfloat a0 = cfa + cfb*cf*tv, a1 = cfb*(1.0-cf);\t\t\t\t\trgb = a0 + a1 * rgb;\t\t\t\t\t\t\t\t\t\thsl = rgbToHsl(rgb); s = hsl.g; l = hsl.b; \t\t\t\t\tfloat ns = sc; \t\t\t\t\tif(colorize==0) {\t\t\t\t\t\tif(sc>0.0) sc = pow(tan((3.14159265359/2.0)*sc),1.3);\t\t\t\t\t\tns = min(s * (1.0 + sc), 1.0); \t\t\t\t\t} \t\t\t\t\t\t\t\t\t\tgl_FragColor = vec4(hslToRgb(nh,ns,l),src.w); \t\t\t\t\t\t\t\t\t}";
this.wi(Z,p.Es.Jf)};p.JJ[1].prototype=new p.ft;p.JJ[1].prototype.Vx=function(Z,S){T.s$({h:S.amj,l:S.$x,O:S.a4Y,w:T.f(256)},this.acO);
this.a5b.set(this.acO);this.d7(["source","map","cfa","cfb","colorize"]);var b=p.x_,Y=this.mf;b.uniform1f(Y.cfa,S.a7_);
b.uniform1f(Y.cfb,S.e9);b.uniform1i(Y.colorize,S.ads);this.R8([Y.source,Z,Y.map,this.a5b.t_])};p.JJ[2]=function(){p.ft.call(this);
var Z="\t\t\tprecision mediump float;\t\t\t"+p.lH.Ut+"\t\t\t"+p.lH.hy+"\t\t\t"+p.lH.Ta+"\t\t\t"+p.lH.dU+"\t\t\t"+p.lH.E$+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform float vib; \t\t\tuniform float sat; \t\t\tconst float PI = 3.141592653; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec3 hsl = rgbToHsv(src.rgb); \t\t\t\tfloat h=hsl.r, s=hsl.g, l=hsl.b; \t\t\t\t\t\t\t\tfloat sk0 = 0.0, sk1 = 45.0/360.0; \t\t\t\tfloat skin = (h<sk1) ? cos((PI/2.0)*(h-sk1/2.0)/(sk1/2.0)) : 0.0; \t\t\t\t\t\t\t\ts = s + 0.2 * (1.0-0.4*skin) * vib * max(0.0, sin(s*PI)); \t\t\t\t\t\t\t\ts = s * (1.0 + sat); \t\t\t\t\t\t\t\ts = max(0.0, min(1.0, s));\t\t\t\tsrc.rgb = hsvToRgb(h,s,l);\t\t\t\tgl_FragColor = vec4(src.rgb,src.w); \t\t\t\t\t\t\t}";
this.wi(Z,p.Es.Jf)};p.JJ[2].prototype=new p.ft;p.JJ[2].prototype.Vx=function(Z,S){this.d7(["source","vib","sat"]);
var b=p.x_,Y=this.mf;b.uniform1f(Y.vib,S.Sz[0]/100);b.uniform1f(Y.sat,S.Sz[1]/100);this.R8([Y.source,Z])};
p.JJ[3]=function(){p.ft.call(this);var Z="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform mat4 trf; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec4 nsr = vec4(src.rgb,1.0); \t\t\t\tgl_FragColor = vec4((trf*nsr).rgb,src.w); \t\t\t\t\t\t\t}";
this.wi(Z,p.Es.Jf)};p.JJ[3].prototype=new p.ft;p.JJ[3].prototype.Vx=function(Z,S){this.d7(["source","trf"]);
var b=p.x_,Y=this.mf;b.uniformMatrix4fv(Y.trf,!1,new Float32Array(T.sE.L8(S.Ig)));this.R8([Y.source,Z])};
p.JJ[4]=function(){p.ft.call(this);var Z="\t\t\tprecision mediump float; \t\t\t"+p.lH.N1+"\t\t\t"+p.lH.Ut+"\t\t\t"+p.lH.E$+"\t\t\t"+p.lH.dU+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform vec3 mnm;\t \t\t\tuniform vec3 mxm;\t \t\t\tuniform vec3 shift; \t\t\tuniform float lim; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\t\t\t\t\tvec3 lab = rgbToLab(src.rgb);\t\t\t\tfloat scl = labSimilar(lab, mnm,mxm, lim);\t\t\t\t\t\t\t\tvec3 hsv = rgbToHsl(src.rgb); \t\t\t\tfloat nh = 2.0 + hsv[0]+scl*shift[0]; \t\t\t\thsv[0] = fract(nh); \t\t\t\thsv[1] = max(0.0, min(1.0, hsv[1] + scl*shift[1])); \t\t\t\thsv[2] = max(0.0, min(1.0, hsv[2] + scl*shift[2])); \t\t\t\t\t\t\t\tvec3 rgb = hslToRgb(hsv[0], hsv[1], hsv[2]); \t\t\t\t\t\t\t\tgl_FragColor = vec4(rgb,src.w); \t\t\t\t\t\t\t}";
this.wi(Z,p.Es.Jf)};p.JJ[4].prototype=new p.ft;p.JJ[4].prototype.Vx=function(Z,S){this.d7(["source","mnm","mxm","shift","lim"]);
var b=p.x_,Y=this.mf;b.uniform3fv(Y.mnm,new Float32Array(S.Ce));b.uniform3fv(Y.mxm,new Float32Array(S.Jz));
b.uniform3fv(Y.shift,new Float32Array(S.shift));b.uniform1f(Y.lim,S.hx);this.R8([Y.source,Z])};p.JJ[5]=function(){p.ft.call(this);
var Z="\t\t\tprecision mediump float;\t\t\t"+p.lH.wJ+"\t\t\t"+p.lH.Ot+"\t\t\t"+p.lH.vA+"\t\t\t"+p.lH.dU+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform vec3 cfs[18]; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec3 rgb = src.rgb; \t\t\t\tvec3 hsl = rgbToHsl(rgb); \t\t\t\tfloat mx = max(rgb.r, max(rgb.g, rgb.b)); \t\t\t\tfloat mn = min(rgb.r, min(rgb.g, rgb.b)); \t\t\t\t\t\t\t\tvec3 CMY = ONE3 - rgb; \t\t\t\tvec3 d = ZERO3; \t\t\t\t\t\t\t\tfor(int j=0; j<9; j++) \t\t\t\t{ \t\t\t\t vec3 NCMY = CMY * cfs[j+j] + cfs[j+j+1]; \t\t\t\t\t\t\t\t\t\tfloat cfK = 0.0;\t\t\t\t\tif (j< 6) { \t\t\t\t\t\tcfK = hueCF(float(j)*(1.0/6.0), hsl.x); \t\t\t\t\t\tcfK = cfK * hsl.y * 2.0*min(hsl.z, 1.0-hsl.z); \t\t\t\t\t} \t\t\t\t\telse if(j==6) cfK = max(0.0,mn-0.5)*2.0;\t\t\t\t\telse if(j==7) cfK = 1.0-(abs(mx-0.5)+abs(mn-0.5));\t\t\t\t\telse cfK = max(0.0,0.5-mx)*2.0;\t\t\t\t\t\t\t\t\t\td += (max(ZERO3, min(ONE3, NCMY))-CMY)*cfK; \t\t\t\t} \t\t\t\t\t\t\t\tCMY = max(ZERO3, min(ONE3, CMY+d)); \t\t\t\trgb = ONE3 - CMY; \t\t\t\t\t\t\t\tgl_FragColor = vec4(rgb,src.w); \t\t\t\t\t\t\t}";
this.wi(Z,p.Es.Jf)};p.JJ[5].prototype=new p.ft;p.JJ[5].prototype.Vx=function(Z,S){this.d7(["source","cfs"]);
var b=p.x_,Y=this.mf;b.uniform3fv(Y.cfs,S.a2c);this.R8([Y.source,Z])};p.JJ[6]=function(){p.ft.call(this);
var Z="\t\t\tprecision mediump float;\t\t\t"+p.lH.Ut+"\t\t\t"+p.lH.Ot+"\t\t\t"+p.lH.vA+"\t\t\t"+p.lH.dU+"\t\t\t"+p.lH.E$+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform float wght[6]; \t\t\tuniform float prms[6]; \t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tvec3 rgb = src.rgb; \t\t\t\t\t\t\t\tfloat tint=prms[0], hue=prms[1], lum=prms[2], mcf=prms[3], x0=prms[4], x1=prms[5]; \t\t\t\tvec3 hsl = rgbToHsl(rgb); \t\t\t\t\t\t\t\tfloat cf = 0.0;\t\t\t\tfor(int j=0; j<6; j++) cf += min(1.0, 1.7*(1.0-hsl.z)) * hsl.y * wght[j] * hueCF(hsl.x, float(j)*(1.0/6.0));\t\t\t\t\t\t\t\tfloat lig = max(0.0, min(1.0, hsl.z*(1.0+cf)));\t\t\t\tif(tint==1.0) { \t\t\t\t\tfloat totl = 0.0;\t\t\t\t\tif (lig<x0) totl = lig*(0.5/lum); \t\t\t\t\telse if(lig<x1) totl = lig + (mcf)*(0.5 - lum); \t\t\t\t\telse totl = 1.0 - (1.0-lig)*0.5/(1.0-lum); \t\t\t\t\t\t\t\t\t\thsl.x = hue; \t\t\t\t\thsl.y = min(1.0, mcf + 3.0*mcf*abs(lig-0.5*(x0+x1))); \t\t\t\t\thsl.z = totl; \t\t\t\t} \t\t\t\telse { hsl.x=0.0; hsl.y=0.0; hsl.z=lig; } \t\t\t\t\t\t\t\trgb = hslToRgb(hsl.x, hsl.y, hsl.z); \t\t\t\t\t\t\t\tgl_FragColor = vec4(rgb,src.w); \t\t\t\t\t\t\t}";
this.wi(Z,p.Es.Jf)};p.JJ[6].prototype=new p.ft;p.JJ[6].prototype.Vx=function(Z,S){this.d7(["source","wght","prms"]);
var b=p.x_,Y=this.mf,P=[S.BF,S.a0r,S.oQ,S.a8J,S.GU,S.a2G];b.uniform1fv(Y.wght,new Float32Array(S.aaM));
b.uniform1fv(Y.prms,new Float32Array(P));this.R8([Y.source,Z])};p.JJ[7]=function(){p.ft.call(this);this.Yf={};
var Z="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D lut;\t\t\tuniform float N;\t\t\t\t\t\tvarying vec2 sCoord;\t\t\t\t\t\tvoid main(void) { \t\t\t\tfloat iN = 1.0/N; \t\t\t\tvec4 src = texture2D(source, sCoord); \t\t\t\tfloat fb = 0.5*iN + src.b*(1.0-iN); \t\t\t\tfloat fg = 0.5*iN + src.g*(1.0-iN); \t\t\t\tfloat R = src.r*(N-1.0)*0.999999; \t\t\t\tfloat ir = floor(R)*iN; \t\t\t\t\t\t\t\tvec4 c0 = texture2D(lut, vec2(fb, ir +( fg )*iN)); \t\t\t\tvec4 c1 = texture2D(lut, vec2(fb, ir+iN+( fg )*iN)); \t\t\t\tvec4 rs = mix(c0,c1,R-floor(R)); \t\t\t\tgl_FragColor = vec4(rs.rgb,src.w); \t\t\t\t\t\t\t}";
this.wi(Z,p.Es.Jf)};p.JJ[7].prototype=new p.ft;p.JJ[7].prototype.Vx=function(Z,S){this.d7(["source","lut","N"]);
var b=p.x_,Y=this.mf,P=S.pk,w=S.Le;if(this.Yf["m"+P]==null)this.Yf["m"+P]=new p.XA(P,P*P);var f=this.Yf["m"+P];
f.set(w);b.uniform1f(Y.N,P);this.R8([Y.source,Z,Y.lut,f.t_]);b.activeTexture(b.TEXTURE1);var h=b.LINEAR;
b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,h);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,h);
b.activeTexture(b.TEXTURE0)};p.filter={NH:{},Jf:"1u,/0*&<>2OI;<m^XJZ;]d/vp^r|ows/)z{M>5g7:@5nVPLIGeVMX`|njge-'&-$V&)/$BbHB4D%GNx`KSI=_f_menp%E+%vwKB4&'XQY``edhootpjxp&%*'vhxY{#>5HINMDXX]YnVW",Vk:0,n1:1,GL:2,M8:3};
p.filter.H2=function(Z,S){var b=p.filter,Y=[b.Vk,b.n1,b.GL,b.M8].indexOf(Z.type),P=p.filter.NH[Z.type];
if(P==null)P=p.filter.NH[Z.type]=new p.NH[Y];P.RF();P.Vx(S,Z);p.x_.drawArrays(p.x_.TRIANGLES,0,6)};p.NH=[0,0,0,0,0,0,0];
p.NH[3]=function(){p.ft.call(this);var Z="1%* !*709;O@;=ETOUgQZ`Uk5rnllx~|2)y)/.*:\\qPGFOOCH!^ZXXdjh}wij<-y+~T2.,,8><Q;DJ?Uc[NR`.kgeeqwu+t}$x/=36(.gEA??KQOd^PQ#sjjbc>{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\\R<EKNTlZLeGUc#8}ykl?/yv./QI;-.`PDOe\\VHI{k_k}smcuyyx-8&w(!RJ6AW?K]bM?OHyq}}%'#lw.66B8\".@E0\"2+\\Tb`fbLXmxu\"wal %oaqj<4?@KOE/;PWXea]GRe_owv{nz~))3<\"}opC3,(&&UM?12dTHSi`ZLM oco\"wqgy}}|1'x)\"SK7BX@L^bmlqqxx},qZiksw&ox~s*8kpda^Z[`nMIFDbSJU]ykgdb* }opD3*|)2_:.DCGG=l\"hWV__SX\"xoBqtzo7Lz$*~5C+/=D;r:>RiYLP^}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<Ec;vENTI_mWfZ7pphi7%9uyB~#\\..R/G;tMMEFsbtnUaj)phfD2>>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]'>S0<EcKCA|beywX`V@oajIxx~%R\"*n11ARD67jaippus_2adj_,y.98=<@GGLJ6h8;A6bQdonsrzx {~8rde90<:B@HFNI]=/0cZedkjqpxs)z#vm`luC qrF=,1,P8?V^^c_tZVHI{k_S2n`a4,zM| &zG5K6h8;A6bQfontp]0_bh]*w+@~pqD4(|Z7)*\\TCuEHNCo^s}{#',$pCru{p=+AJIQK8j:=C8dSezYKL~n`dk`;osp};*PSIJOBdHA=;;jbNBoWLuo-u`]tu80{o=%yCX**N8<9FcSx{rrwsm_cj_+x@tx t@/U*.5*UEhD7CLjRJHhv,yY]kri.uyv$A/BF.29.f6>4}M?H'VV\\b0i\\hq=#";
this.wi(s.Qk(Z),s.Qk(p.filter.Jf))};p.NH[3].prototype=new p.ft;p.NH[3].prototype.Vx=function(Z,S){this.d7("source iwh tdep rrad spec nois poly0 poly1".split(" "));
var b=p.x_,Y=this.mf;b.uniform2fv(Y.iwh,S.ZU);b.uniform1f(Y.tdep,S.agO);b.uniform1f(Y.rrad,S.a2$);b.uniform2fv(Y.spec,S.agg);
b.uniform3fv(Y.nois,S.a0H);b.uniformMatrix4fv(Y.poly0,!1,S.aeQ);b.uniformMatrix4fv(Y.poly1,!1,S.a0A);
this.R8([Y.source,Z]);var P=b.LINEAR;b.activeTexture(b.TEXTURE0);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,P);
b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,P);b.activeTexture(b.TEXTURE0)};p.NH[0]=function(){p.ft.call(this);
var Z="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;<mfatuzy}%%*&*l}q5=*P8\"+1&<JGbSsYQE[Z^^T$9 nmvvjo90$A0\"#TMH[\\a`WkkplpSdX{$p7~hqwl#1x0J=]CVWc[R:Qm^~doc }l(#8 irxm$2y2L>^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~-({6V<PPUHVN9:L.FBHVatc6ehnc+/{sw yR:%-#l<.7uEEKQa\"g_Sihllb2G.|{%%x}G>5g7:@5\\`QEzbc";
this.wi(s.Qk(Z),s.Qk(p.filter.Jf))};p.NH[0].prototype=new p.ft;p.NH[0].prototype.Vx=function(Z,S){this.d7(["source","iwh","ld","shine"]);
var b=p.x_,Y=this.mf;b.uniform2fv(Y.iwh,S.ZU);b.uniform3fv(Y.ld,S.a66);b.uniform1f(Y.shine,S.amB);this.R8([Y.source,Z,Y.tang,S.eq])};
p.NH[1]=function(){p.ft.call(this);var Z="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}2<??JPQMYYQ:FYihfnpuy}smzs(,.5:4=CEKFS;1'9==<PF8Q3AOeukU^dgm&se~`n|<Q9:?)28-CQ<=O,PMZOtfXY+{n+%$+%vwI:.@`FQ<ZI;<mfwuzx}|%(1+0,/3u#uP82$%VG9>PpV@IORXp\\w-tn`a3$u|]0P6*I.3`H2;A6LZQqt$]V^z'**/+@(\"stF7}M@`F-<CZDIdhUux&mgYZ,|c4&F,r\")@*/L;-._Xddihppuqtxe&)6}gpvk\"0\"6V<($91S2abPfApq`r(oYbh]s\"sz+K1|x.&H'WWE[6efUg|dNW]Rhvha @&qm#z={KL:P+[[J\\qYCLRG]k]dYw8}iezr5sDD2H#SSBTiQ;DJ?UcOzl-rcbt'p%4+|$@&-mN<OdL6?E:P^Jvg(m^]o\"kd/t{p;!(hI7J_G1:@5KYS_ eVUgy])'}i63x `A0BW?9EeKVHTsZmnxoi,o#$)6005C+t}$x/=373>LlRLXf^DWQ^b]Yv$|hdyq4r\")@,L:MQ>^a_:IPgSsbtxe&)$9!vl~##\"6,0,7OP\\\\acjhmi~fglfb_]{lcnv3%!}{C=<C=/0aRNR[{aX+Z]cX&cth>& qrF5{++AaG?3IHLLBq'm\\[ddX]'}tGvy t<Q9 //S*KkQ<=O,PMZOthl~4{fndN}oxW''-3CcI0??pXY";
this.wi(s.Qk(Z),s.Qk(p.filter.Jf))};p.NH[1].prototype=new p.ft;p.NH[1].prototype.Vx=function(Z,S){this.d7(["source","iwh","isc","bristle"]);
var b=p.x_,Y=this.mf;b.uniform2fv(Y.iwh,S.ZU);b.uniform1f(Y.isc,S.a1P);b.uniform1f(Y.bristle,S.a3D);
this.R8([Y.source,Z])};p.NH[2]=function(){p.ft.call(this);var Z="1%* !*709;O@;=ETOUgQZ`Uk5|uqoo{\" 5,|,21-=_tSJIRRFK$kd`^^jpn$zkz! {,NcB:*:6lTMIGGSYWlfXY+{hymC+$ }}*0.C-6<1GULEFOF#jc_]]iom#lu{p'5}4/1_GA/CM@HD_YKL}ne8gjpe?'py t+94%,-1@NY;DJ?Uc_rlkrh^ptts(p'\"<7G.0;NBX5KFHdmivuzwd]^g^*vopyp;5AV>?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.wi(s.Qk(Z),s.Qk(p.filter.Jf))};p.NH[2].prototype=new p.ft;p.NH[2].prototype.Vx=function(Z,S){this.d7(["source","tang","iwh","sigma","expo"]);
var b=p.x_,Y=this.mf;b.uniform2fv(Y.iwh,S.ZU);b.uniform1f(Y.sigma,S.an0);b.uniform1f(Y.expo,S.aiv);this.R8([Y.source,Z,Y.tang,S.eq]);
var P=b.LINEAR;b.activeTexture(b.TEXTURE0);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,P);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,P);
b.activeTexture(b.TEXTURE0)};p.p={};p.p.Xu={};p.p.Y0=null;p.p.tq=null;p.p.TE=null;p.p.UH=function(Z,S,b,Y,P,w,f,h){if(h==null)h=eg.xB();
if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(Z)==-1){f=f*h.fill;h.fill=1;h.style=!1}var Q=Z+(h.lu?"1":"");
if(p.p.Xu[Q]==null)p.p.Xu[Q]=new p.p.UN(Z,h.lu!=null);var e=p.p.Xu[Q],l=b.Yz(P).Yz(w);l.offset(-P.x,-P.y);
if(l.h3())return;var O=p.x_;p.Kd(Y,l);Y.k1(l);e.RF();e.Vx(S.t_,Y.J5,p.jS(b,P),f,h.fill,h.style?1:0,h.gd?1:0,h.lu?new Float32Array(h.lu):null);
O.drawArrays(O.TRIANGLES,0,6)};p.p.eV=function(Z,S,b,Y,P,w,f,h,Q,e,l){if(p.p.Y0==null)p.p.Y0=new p.p.V3(!0,!0);
if(p.p.tq==null)p.p.tq=new p.p.V3(!0,!1);if(p.p.TE==null)p.p.TE=new p.p.V3(!1,!0);var O=e?1:0,m=Z?P?p.p.Y0:p.p.tq:p.p.TE,V=new Float32Array(l?[l[0],l[1],l[2],1]:[1,1,1,1]),q=S?S.Yz(Y).Yz(h):Y.Yz(h);
if(q.h3())return;q.offset(-Y.x,-Y.y);var K=p.x_;p.Kd(b,q);b.k1(q);m.RF();if(Z==null)m.Vx(null,b.J5,P.t_,p.jS(Y,Y),p.jS(w,Y),f/255,Q,O,V);
else if(P)m.Vx(Z.t_,b.J5,P.t_,p.jS(S,Y),p.jS(w,Y),f/255,Q,O,V);else m.Vx(Z.t_,b.J5,null,p.jS(S,Y),null,f/255,Q,O,V);
K.drawArrays(K.TRIANGLES,0,6)};p.p.ali=function(Z,S,b){if(p.p.abT==null)p.p.abT=new p.p.pt;var Y=p.p.abT,P=new b4(0,0,Z.c,Z.v),w=p.x_;
p.Kd(S);S.k1(P);Y.RF();Y.Vx(P,Z.t_,S.J5,b.t_);w.drawArrays(w.TRIANGLES,0,6)};p.p.Gu={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 );",lite:"return max(a,b);",scrn:"return b+a-b*a;","div ":"a*=f; return mix( mix( min(ONE3,b/(1.0-a)), ONE3, step(1.0-a, b)) , ZERO3, vec3(equal(b,ZERO3)) );",lddg:"a*=f; return min(ONE3,a+b);",lgCl:"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) ); "};
p.p.UN=function(Z,S){p.ft.call(this);var b="\t\t\tprecision mediump float;\t\t\t"+p.lH.wJ+"\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform float alpha;\t\t\tuniform float fill;\t\t\tuniform float style;\t\t\tuniform float keepBGA;\t\t\t"+(S?"uniform vec4 blIf[10];":"")+"\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\t\t\t\t\t\t\t"+p.lH.h0+"\t\t\t"+p.lH.oQ+"\t\t\t"+p.lH.Iy+"\t\t\t"+p.lH.aoN+"\t\t\t"+p.lH.amY+"\t\t\t"+p.lH.adL+"\t\t\t"+p.lH.Zz+"\t\t\t"+p.lH.an5+"\t\t\t"+p.lH.Wf+"\t\t\t"+p.lH.hash+"\t\t\t"+(S?p.lH.Pc:"")+"\t\t\t\t\t\tvec3 BB(vec3 a, vec3 b, float f) { "+p.p.Gu[Z]+" } \t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = texture2D(source, sCoord);",Y="\t\t\tattribute vec2 verPos;\t\t\tuniform vec4 srct;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (verPos-srct.xy)/srct.zw;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}";
if(Z=="diss")b+="\t\t\t\t\tgl_FragColor = (hash(tCoord) >= (keepBGA + (1.0-keepBGA)*src.w)*alpha ? tgt : vec4(src.xyz, keepBGA*tgt.w + (1.0-keepBGA))); }";
else b+=" \t\t\t\t\tfloat as = (keepBGA + (1.0-keepBGA)*src.w) * alpha, at = keepBGA + (1.0-keepBGA)*tgt.w; \t\t\t\t\t"+(S?" as*=blendIf(src,tgt,blIf); ":"")+"\t\t\t\t\tfloat ats = at * (1.0-as), ao = as + ats, iao = (ao==0.0) ? 0.0 : (1.0/ao); \t\t\t\t\tfloat ccf = (style==1.0) ? 1.0 : as; \t\t\t\t\tvec3 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;\t\t\t\t\tgl_FragColor = vec4(ncl, keepBGA*tgt.w + (1.0-keepBGA)*(as*fill + at*(1.0-as*fill)));\t\t\t\t\t\t\t}";
this.wi(b,Y)};p.p.UN.prototype=new p.ft;p.p.UN.prototype.Vx=function(Z,S,b,Y,P,w,f,h){this.d7("srct alpha source target fill style keepBGA blIf".split(" "));
var Q=p.x_,e=this.mf;Q.uniform4fv(e.srct,b);Q.uniform1f(e.alpha,Y);Q.uniform1f(e.fill,P);Q.uniform1f(e.style,w);
Q.uniform1f(e.keepBGA,f);if(h)Q.uniform4fv(e.blIf,h);this.R8([e.source,Z,e.target,S])};p.p.V3=function(Z,S){p.ft.call(this);
this.aag=Z;this.KW=S;var b="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform sampler2D weight;\t\t\tuniform vec4 cswitch;\t\t\tuniform float wcolor;\t\t\tuniform float awg; /* additional weight */\t\t\tuniform float dissv;\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 wCoord;\t\t\t\t\t\t"+p.lH.Op+"\t\t\t"+p.lH.hash+"\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = "+(Z?"texture2D(source, sCoord)":"vec4(0.0)")+"; \t\t\t\tfloat wg = awg "+(S?"* (in01(wCoord) ? texture2D(weight, wCoord).w : wcolor)":"")+";\t\t\t\t"+(Z?"":"wg = 1.0-wg;")+"\t\t\t\tfloat hwg = hash(tCoord)>=wg ? 0.0 : 1.0; wg = dissv*hwg + (1.0-dissv)*wg; \t\t\t\tfloat as = wg*src.w, at = (1.0-wg)*tgt.w, ao = as+at;\t\t\t\t\t\t\t\tvec4 nc = vec4( (as*src.xyz + at*tgt.xyz)/ao, ao ); \t\t\t\tgl_FragColor = "+(S?"nc":"cswitch*nc + (1.0- cswitch)*tgt")+"; \t\t\t}",Y="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 wCoord;\t\t\t\t\t\tuniform vec4 srct;\t\t\tuniform vec4 wrct;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (verPos-srct.xy)/srct.zw;\t\t\t\twCoord = (verPos-wrct.xy)/wrct.zw;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}";
this.wi(b,Y)};p.p.V3.prototype=new p.ft;p.p.V3.prototype.Vx=function(Z,S,b,Y,P,w,f,h,Q){if(this.KW)this.d7("srct wrct wcolor awg dissv source target weight cswitch".split(" "));
else this.d7("srct awg dissv source target cswitch".split(" "));var e=p.x_,l=this.mf;e.uniform4fv(l.srct,Y);
if(this.KW){e.uniform4fv(l.wrct,P);e.uniform1f(l.wcolor,w)}else{e.uniform4fv(l.cswitch,Q)}e.uniform1f(l.awg,f);
e.uniform1f(l.dissv,h);var O=[l.source,Z,l.target,S];if(this.KW)O.push(l.weight,b);this.R8(O)};p.p.pt=function(){p.ft.call(this);
var Z="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D prev;\t\t\tuniform sampler2D next;\t\t\tuniform sampler2D alpha;\t\t\t\t\t\tvarying vec2 coord;\t\t\t\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec3 or = texture2D(prev , coord).rgb;\t\t\t\tvec3 ir = texture2D(next , coord).rgb; \t\t\t\tfloat al = texture2D(alpha, coord).w; \t\t\t\tgl_FragColor = vec4( (ir-(1.0-al)*or)*(1.0/al) ,1.0 ); \t\t\t}",S="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 coord;\t\t\t\t\t\tuniform vec4 rct;\t\t\tvoid main(void) {\t\t\t\tcoord = verPos;\t\t\t\tgl_Position = vec4(vec2(-1.0,-1.0) + 2.0*verPos, 0.0, 1.0);\t\t\t}";
this.wi(Z,S)};p.p.pt.prototype=new p.ft;p.p.pt.prototype.Vx=function(Z,S,b,Y){this.d7(["rct","prev","next","alpha"]);
var P=p.x_,w=this.mf;P.uniform4fv(w.rct,[0,0,1,1]);this.R8([w.prev,S,w.next,b,w.alpha,Y])};var G={};
G.$W=function(Z,S,b){this.name=Z;this.id=S;this.$o=null;if(b!=null)this.z2=b};G.$W.prototype.Pf=function(Z,S,b,Y,P){};
G.$W.prototype.enable=function(Z,S,b,Y,P,w){var f=new d(s.E.P,!0);f.data={e:s.U.il,tf:"default"};S.m(f)};
G.$W.prototype.disable=function(Z,S,b,Y,P){};G.$W.prototype.Cn=function(Z,S,b,Y,P){return!1};G.$W.prototype.Os=function(Z,S,b,Y,P){};
G.$W.prototype.vU=function(Z,S,b,Y,P){};G.$W.prototype.Zq=function(Z,S,b,Y,P){};G.$W.prototype.Xa=function(Z,S,b,Y,P){};
G.$W.prototype.nL=function(Z,S,b,Y,P){};G.$W.prototype.XF=function(Z,S,b,Y){};G.$W.prototype.s1=function(Z,S,b,Y){};
G.$W.prototype.Ed=function(Z,S){};G.$W.prototype.zv=function(Z,S){};G.$W.prototype.aa=function(Z,S,b,Y,P){};
G.$W.prototype.na=function(Z,S){};G.$W.prototype.jo=function(Z,S){return!1};G.$W.prototype.wF=function(Z,S){return!1};
G.$W.prototype.K7=function(){return!1};G.$W.prototype.M7=function(Z,S){return!0};G.$W.prototype.od=function(){return null};
G.$W.prototype.HL=function(Z,S,b){};G.$W.prototype.gm=function(){return!1};G.$W.prototype.Vy=function(Z,S,b,Y){};
G.$W.prototype.track=function(Z){var S=new d(s.E.TH,!0);S.data=Z;Z.$i=!0;this.$o.m(S)};G.$W.i8=function(Z,S,b,Y,P){G.$W.NF(Z,S,[aV.get([12,41]).charAt(0)+": "+T.dp.Rv(b.c,Y.GY,P,Y.c,!0),aV.get([12,42]).charAt(0)+": "+T.dp.Rv(b.v,Y.GY,P,Y.v,!0)],Y)};
G.$W.NF=function(Z,S,b,Y){var P=14,w=130,f=b.length*17+8,h=new b4(Z,S-f,w,f),Q=G.$W.hg;if(Q==null)Q=G.$W.hg=document.createElement("canvas");
Q.width=w;Q.height=f;var e=Q.getContext("2d");e.fillStyle="rgba(0,0,1,1)";e.fillRect(0,0,w,f);e.font=P+"px monospace";
e.fillStyle="rgba(255,255,255,1)";for(var D=0;D<b.length;D++)e.fillText(b[D],6,(D+1)*17);Y.M.ag=[[e.getImageData(0,0,w,f).data,h.clone()]]};
G.$W.hg=null;G.hK="0";G.r9="1";G.amI="2";G.a6q="3";G.bR="5";G.a9z="6";G.abC="7";G.hi="8";G.bJ="9";G.ck="10";
G.SE="11";G.ee="12";G.lQ="13";G.ow="14";G.a06="16";G.Cc="18";G.yw="19";G.WS="20";G._j="21";G.H5="22";
G.sb="23";G.b_="24";G.bQ="25";G.cK="27";G.pK="31";G.af8="32";G.aor="34";G.agh="35";G.mk="36";G.uM="37";
G.ZB="38";G.Hm="39";G.dA="40";G.y7="41";G.ae="42";G.vn="43";G.le="47";G.tp="51";G.aG="52";G.L4="54";
G.v0="55";G.Kx="56";G.N8="57";G.$g="58";G.KM="59";G.aj7="60";G.$j="61";G.ih="100";G.Ck="101";G.dZ="102";
G.WG="120";G.cC="230";G.afe="231";G._H="232";G.kd="233";G.Qj="234";G.$n="235";G.ZS="236";G.rq=function(Z){var S=G.L1,b=null;
for(var Y in S)if(S[Y][1].indexOf(Z[1].classID)!=-1)b=Y;return b};G.L1={};G.L1[G.sb]=["tools/brush",["PbTl"]];
G.L1[G.b_]=["tools/pencil",["PcTl"]];G.L1[G.pK]=["tools/eraser",["ErTl"]];G.px=function(Z,S,b){G.$W.call(this,Z,S,b);
this.xN={brush:Z?d6.H0():null,bmode:"norm",opacity:1,flow:1,smth:0,samp:0,prsr:[!1,!0],emode:0,wconf:[40,!0,!0],algnd:!1,sfrom:0,alt:[!1],expo:.5,rng:1,strn:.5,pdetail:!0,smode:1,qsmode:0,setop:"front",patch:0};
this.W3=null;this.yg=null;this.LK=null;this.HT=null;this.Gb=null;this._o=null;this.ym=null;this.kX=null;
this.s_=null;this.lw=null;this.I4=null;this.rD=null;this.O1=null;this.iX=1;this.xg=!1;this.L9=null;this.caller=null};
G.px.prototype=new G.$W;G.px.prototype.wF=function(Z,S){return Z.ou&&S.q(U.Lo)};G.px.prototype.vU=function(Z,S,b,Y,P){if(Y.q(U.G_)){this._o=new ar(P.x,P.y);
var w=this.xN.brush.Brsh.v,f=w.Dmtr.v.val,h=w.Hrdn!=null?w.Hrdn.v.val:-1;this.ym=[f,h,!0,JSON.parse(JSON.stringify(this.xN.brush)),P];
this.uz(b)}};G.px.prototype.j6=function(Z,S,b){var Y=this.ym,P=Z.a.S,w=b.x-Y[4].x,f=b.y-Y[4].y,h=Y[0],Q=Y[1],e=Math.abs(w)>Math.abs(f);
if(e&&Y[2]){var l=Math.round(2*w/P);h+=l;b.x-=w-.5*l*P}if(!e&&!Y[2]&&Q!=-1){var l=Math.round(.25*f);
Q+=l;b.y-=f-4*l}h=Math.max(1,h);Q=Y[1]==-1?-1:Math.max(0,Math.min(100,Q));var O=Y[3];O.Brsh.v.Dmtr.v.val=h;
if(Q!=-1)O.Brsh.v.Hrdn.v.val=Q;this.ym=[h,Q,e,O,b];var m=b6.Fl(O,S.Xg.qr,P),V=m[1];V.x=Math.round(this._o.x-V.c/2);
V.y=Math.round(this._o.y-V.v/2);Z.M.Hn=[m];var q=Z.a._2(this._o.x,this._o.y);Z.M._m={HA:[],N_:[q.x-h/2,q.y,q.x+h/2,q.y]};
if(Q!=-1)Z.M._m.N_.push(q.x+50/P,q.y-Q/2,q.x+50/P,q.y+Q/2);Z.nd=!0};G.px.prototype.nL=function(Z,S,b,Y,P){if(this.id==G.WS)return;
if(this._o){this._o=null;this.h7(JSON.parse(JSON.stringify(this.ym[3])));Z.M.Hn=[];Z.M._m=null;Z.nd=!0;
return}var w=new d(s.E.P,!0);w.data={e:s.U.jO,T:this.id,a6s:"showBrushOpts",DA:new ar(P.w$+4,P.rE)};
S.m(w)};G.px.prototype.h7=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.h4,Sz:bp.EE,Un:Z};this.caller.m(S)};
G.px.uB=function(Z,S,b,Y,P){if(Z==null)Z="FrgC";if(S==null)S="norm";if(b==null)b=1;if(P==null)P=!1;var w={classID:"Fl",Usng:{t:"enum",v:{FlCn:Z}},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(b*100)}},PrsT:{t:"bool",v:P},Md:{t:"enum",v:{BlnM:is.QT(S)}}};
if(Z=="Clr")w.Clr={t:"Objc",v:Y};if(Z=="contentAware")w.contentAwareColorAdaptationFill={t:"bool",v:!0};
return{uf:"fill",V1:w}};G.px.prototype.Pf=function(Z,S,b,Y,P){this.$o=S;var w=b.k9.length;if(w==0&&!b.bY())return;
var f=w!=0?-1-b.k9[0]:b.C[0],h=b.t[f];if(Z.e=="fromAction"){var Q=Z.K4,e=Q.V1;if(Q.uf=="fill"){var l=e.PrsT?e.PrsT.v:!1,O=h.add.lspf,K;
if(l){h.add.lspf=O==null?1:O|1}var m=(e.Opct?e.Opct.v.val:100)/100,V=e.Md?is.Tk(e.Md.v.BlnM):"norm",q=e.Usng.v.FlCn;
if(q=="contentAware"){if(b.N==null){alert("Select an area to heal first.");return}if(!b.bY())return;
this.Y$(b);this.EB(b,0);var z=b.N,t=T.f(z.rect.X()*4);T.y8(z.channel,t,3);this.VH(b,"sheal",t,z.rect,z.rect);
this.D(b,z.rect);this.finish(b,z.rect)}else{if(q=="FrgC")K=P.ui;else if(q=="BckC")K=P.VY;else if(q=="Blck")K=0;
else if(q=="Wht")K=16777215;else if(q=="Gry")K=8421504;else if(q=="Clr"){var H=T.W.CD(e.Clr.v);K=H.h<<16|H.l<<8|H.O}var i=K>>16&255,y=K>>8&255,j=K>>0&255;
this.oU(b,h,b.N,i,y,j,Math.round(255*m),V,[2,3])}if(l){h.add.lspf=O==null?0:O}}else if(Q.uf=="delete"){var J=f<0?1:h.PC,z=b.N,c;
if(z==null)return;var A=f<0?b.eP[-f-1]:J<=0?null:J==1?h.Y6():h.fY(b).d,a=J<=0?h.rect:A.rect,I=J<=0?z.rect.Yz(a):z.rect.clone();
if(I.h3())return;var E=I.X();if(J<=0){c=T.f(E*4);T.uH(h.buffer,h.rect,c,I)}else{c=T.f(E);A.extend(I);
T.JS(A.channel,A.rect,c,I)}if(0<=f&&h.CQ(b,z)){if(J<=0){T._U(c,0);T.uH(h.Ns.NA,h.Ns.Xv,c,I)}else{c.fill(255);
T.JS(h.Ns.NA,h.Ns.Xv,c,I)}}else{if(J<=0){var u=T.f(c.length>>2);T.to(c,u,3);T.p.gX(T.Nv(z.rect.X()),z.rect,u,I,z.channel,I,1);
T.y8(u,c,3)}else{var n=T.f(z.rect.X()),i=P.VY>>>16&255,y=P.VY>>8&255,j=P.VY>>0&255;n.fill(Math.round(T.w2(i,y,j)));
T.p.gX(n,z.rect,c,I,z.channel,I,1)}}this.aC(b,!0,[2,2],f,J,I,c)}}if(Z.e=="stroke"){var o=Z.ab0,z=b.N;
if(z==null){z={rect:h.rect.clone(),channel:T.f(h.rect.X())};T.to(h.buffer,z.channel,3)}var x=eg.jk(o),g=G.Ks.$A(z,Math.ceil(x[0]),Math.ceil(x[1])),K=T.W.CD(o.Clr.v),i=Math.round(K.h),y=Math.round(K.l),j=Math.round(K.O);
this.oU(b,h,g,i,y,j,Math.round(255*o.Opct.v.val/100),is.Tk(o.Md.v.BlnM),[14,9])}if(Z.e=="fillBMP"){this.ew(b,h,b.N,Z.G4,Z.yf,Z.ep)}if(Z.e=="draw"){var v=Z.fZ,R=v.rect;
this.Y$(b);var X=b.t[b.C[0]];if(Z.aaD&&X&&X.PC<=0&&b.k9.length==0){R=dK.AK.up(v,b);X.buffer=v.buffer.slice(0);
X.rect=R.clone()}else{var B=this.xN.bmode;this.xN.bmode="norm";this.VH(b,"draw",v.buffer,R,R.Yz(new b4(0,0,b.c,b.v)));
this.xN.bmode=B}this.D(b,R);b.Vc=!0;this.finish(b,R,Z.ep,Z.aaD)}};G.px.prototype.oU=function(Z,S,b,Y,P,w,f,h,Q){var e=b==null?new b4(0,0,Z.c,Z.v):b.rect,l=f<<24|w<<16|P<<8|Y<<0,O=T.f(e.X()*4);
T._U(O,l);this.ew(Z,S,b,O,h,Q)};G.px.prototype.ew=function(Z,S,b,Y,P,w){var f=Z.k9.length!=0?-1-Z.k9[0]:Z.C[0],h=f<0?1:S.PC,Q=f<0?Z.eP[-1-f]:h<=0?null:h==1?S.Y6():S.fY(Z).d,e=h<=0?S.rect:Q.rect,l=b==null?new b4(0,0,Z.c,Z.v):b.rect,O=b==null?T.FX(Z.c*Z.v):b.channel,m=l.X(),V,q=null;
if(h<=0){V=T.f(m*4);T.uH(S.buffer,S.rect,V,l)}else{V=T.f(m);Q.extend(l);T.JS(Q.channel,Q.rect,V,l)}if(b!=null)T.Dt(O,Y);
if(h>0){q=T.f(m);T.Mq(Y,q)}if(0<=f&&b&&S.CQ(Z,b)){var K=S.Ns.qG,z=S.Ns.qG.slice(0);if(h<=0)T.Bv(Y,z);
else T.Bv(q,z);var t=new iA([2,3],this);t.data={e:"drawtemp",$:Z.C[0],D3:h,agY:K,agB:z};Z.kz(t);this.Ed(t.data,Z)}else{if(h<=0){var H;
if(S.vv(0)){H=T.f(l.X());T.to(V,H,3)}T.p.xJ(P,Y,l,V,l,l,1);if(S.vv(0))T.y8(H,V,3)}else T.p.gX(q,l,V,l,O,l,1);
this.aC(Z,!0,w,f,h,l,V)}};G.px.prototype.jo=function(Z){if(U.cF.indexOf(Z)!=-1)return!0;return!1};G.px.prototype.XF=function(Z,S,b,Y){var P=this.xN.brush,w=Y.q(U.G_),f=w!=this.xg,h=G.px.Cq(P,Y);
if(h!=null)this.h7(h);if(!Y.q(U.cD)&&Y.iP()!=-1){var Q=s.$H(Math.round(this.xN.opacity*100),Y.iP())/100;
this.ix({opacity:Q},S)}if(this.id==G.hi&&f&&Z!=null){var e=this.xN.qsmode;if(e==2)e=Z.N==null?0:1;else e=2;
this.ix({qsmode:e},S)}this.xg=w;if(f){if(Z)this.iX=Z.a.S;this.uz(b,Y)}};G.px.Cq=function(Z,S){var b=Z.Brsh.v.Dmtr.v.val,Y=Z.Brsh.v.Hrdn!=null?Z.Brsh.v.Hrdn.v.val:-1,P=b,w=Y,f=S.q(U.Lo);
if(S.q(U.FO)){if(f)Y=25*Math.floor((Y-1)/25);else{if(b<=10)b--;else if(b<=50)b=5*Math.floor((b-1)/5);
else if(b<=100)b=10*Math.floor((b-1)/10);else if(b<=200)b=25*Math.floor((b-1)/25);else if(b<=400)b=50*Math.floor((b-1)/50);
else b=100*Math.floor((b-1)/100)}}if(S.q(U.U6)){if(f)Y=25*Math.ceil((Y+1)/25);else{if(b<10)b++;else if(b<50)b=5*Math.ceil((b+1)/5);
else if(b<100)b=10*Math.ceil((b+1)/10);else if(b<200)b=25*Math.ceil((b+1)/25);else if(b<400)b=50*Math.ceil((b+1)/50);
else b=100*Math.ceil((b+1)/100)}}b=Math.max(1,b);Y=Math.max(0,Math.min(100,Y));if(w==-1)Y=-1;if(b!=P||Y!=w){var h=JSON.parse(JSON.stringify(Z));
h.Brsh.v.Dmtr.v.val=b;if(w!=-1)h.Brsh.v.Hrdn.v.val=Y;return h}return null};G.px.prototype.uz=function(Z,S,b,Y){if(Z.Xg.list.length==0)return;
var P=this.id,w;if((P==G.cK||P==G.yw||P==G.sb||P==G.b_)&&(S!=null&&S.q(U.G_)||this.xN.alt[0]))w="crosshair";
else{var f=this.iX,h=this.xN.brush;if((P==G.cK||P==G.yw)&&b&&this.rD&&this.rD.length==this.I4.X()*4){var Q=b.a._2(Y.x,Y.y),e=this.fJ(Q),l=this.rD,O=this.I4,m=new b4(O.x+e.x,O.y+e.y,O.c,O.v),V=b6.Fl(h,Z.Xg.qr,f),q=V[0],K=V[1],z=Math.ceil(K.c/f),t=new b4(Math.round(Q.x-z/2),Math.round(Q.y-z/2),z,z),H=T.f(t.X()*4),i,y;
T.uH(l,m,H,t);if(f==1){i=H;y=t}else{var j=new fR(f,0,0,f,0,0),J=G.V.DP([H,t],j,!0);y=K.clone();y.x=J.rect.x;
y.y=J.rect.y;if(y.Oh(J.rect))i=J.buffer;else{i=T.f(y.X()*4);T.uH(J.buffer,J.rect,i,y)}}var A=this.xN.opacity/255;
for(var D=0;D<i.length;D+=4)i[D+3]=A*(q[D+3]*i[D+3]);w={R3:i,_:y,Zw:new ar(y.c/2,y.v/2)}}else w=b6.vz(h,Z.Xg.qr,f,P==G.bQ)}var a=new d(s.E.P,!0);
a.data={e:s.U.il,tf:w};if(this.caller)this.caller.m(a)};G.px.prototype.enable=function(Z,S,b,Y){this.W3=b;
this.caller=S;this.h7(JSON.parse(JSON.stringify(this.xN.brush)));if(Z&&Z.a.S!=0)this.iX=Z.a.S;this.uz(b,Y)};
G.px.prototype.na=function(Z,S){if(S==bp.EE){this.xN.brush=Z.Xg.ut;this.uz(Z)}};G.px.prototype.aa=function(Z,S,b,Y,P){for(var w in Z)this.xN[w]=Z[w];
if(this.xN.alt[0])this.uz(P,Y,b)};G.px.prototype.o_=function(Z){var S=Z.k9.length!=0?-1-Z.k9[0]:Z.C[0],b=Z.t[S],Y=S<0?1:b.PC,P=S<0?Z.eP[-S-1]:Y<=0?null:Y==1?b.Y6():b.fY(Z).d,w=P?P.channel:b.buffer,f=(P?P.rect:b.rect).clone();
return[b,Y,P,w,f]};G.px.prototype.Y$=function(Z,S){this.O1=Z.N==null?null:{rect:Z.N.rect.clone(),channel:Z.N.channel.slice(0)};
var b=this.o_(Z),Y=b[0],P=b[1],w=b[2];this.lw=b[3];this.s_=b[4];var f=new b4(0,0,Z.c,Z.v),h=f.VK(this.s_);
if((this.qu()&&P<=0||h.Oh(this.s_))&&S!=!0)this.lw=this.lw.slice(0);else{if(w)w.extend(h);else Y.extend(h)}};
G.px.prototype.EB=function(Z,S){var b=this.o_(Z),Y=b[1],P=b[3],w=b[4],f=[P,w],h=S!=null?S:this.xN.sfrom;
if(Y<=0&&h!=0){f[1]=new b4(0,0,Z.c,Z.v);f[0]=Z.Zd(h==1&&Z.C[0]!=Z.t.length-1?Z.C[0]:null).slice(0)}this.I4=f[1].clone();
this.rD=f[0].slice(0)};G.px.prototype.It=function(Z,S,b){if(Z.q(U.G_)){var Y=new d(s.E.s,!0);Y.T=G.ow;
Y.data={e:"pickhere",a3b:b};S.m(Y);return!0}return!1};G.px.prototype.AG=function(Z,S,b,Y,P,w){if(!Z.bY(this.caller)){this.yg=null;
return}this.Y$(Z);var f=new b4(0,0,Z.c,Z.v),h=null;if(w!=null){var Q=Z.k9.length!=0?-1-Z.k9[0]:Z.C[0],e=Z.t[Q],l=Q<0?Z.eP[-Q-1]:e.PC<=0?null:e.PC==1?e.Y6():e.fY(Z).d;
h=T.f(f.X()*4);if(l)G.px.vB(this.lw,this.s_,l.color,h,f);else T.uH(this.lw,this.s_,h,f)}var O=this.xN;
if(this.yg&&this.id==G.hi&&O.qsmode!=0&&Z.N!=null){}else{var m=S.ui,V=S.VY;if(this.L9=="erase"){var q=m;
m=V;V=q}var K=this.id==G.hi?this.s_:f;this.yg=new b6(O.brush,S.Xg.qr,S.Xg.kT,{y6:P,tJ:w,aaS:O.smth*50*s.Z()/Z.a.S,Yp:this.id==G.b_||O.emode==1,gp:O.prsr},m,V,K,h)}if(this.id==G.hi){this.yg.eK(O.brush,O.qsmode==2?0:16777215)}var z=Z.a._2(Y.x,Y.y);
if(b.q(U.Lo)&&this.LK){var t=this.LK;this.yg.moveTo(t.x,t.y,Y.Ic);this.yg.lineTo(.001*t.x+.999*z.x,.001*t.y+.999*z.y,Y.Ic);
this.yg.lineTo(z.x,z.y,Y.Ic)}else this.yg.moveTo(z.x,z.y,Y.Ic);this.LK=z;this.HT=z.clone();this.Gb=new bv(z,Z.a.W0)};
G.px.prototype.d6=function(Z,S,b){if(Z&&Z.a.S!=0&&Z.a.S!=this.iX){this.iX=Z.a.S;this.uz(b)}};G.px.prototype.b7=function(Z,S,b,Y){if(this.yg==null)return;
var P=Z.t[Z.C[0]],w=Z.a._2(Y.x,Y.y),f=this.Gb.Ae(w,b);if(f.Oh(this.LK))return 1;this.yg.lineTo(f.x,f.y,Y.Ic);
this.LK=f;if(this.id==G.cK||this.id==G.yw){var h=this.Bw(),Q=11;h=Z.a.pg(w.x-h.x,w.y-h.y);var e=Q>>>1,l=new b4(Math.round(h.x)-e,Math.round(h.y)-e,Q,Q),O=T.f(l.X()*4);
T._U(16777215);for(var D=0;D<Q;D++)O[(D*Q+e)*4+3]=O[(Q*e+D)*4+3]=255;Z.M.ag=[[O,l]];Z.nd=!0}};G.px.prototype.s1=function(Z,S,b,Y){if(b.pH!=this.id)return;
if(this.id!=G.hi||Z==null)return;if(Z.N==null||Z.C[0]!=this.ajj){this.ajj=Z.C[0];this.ix({qsmode:0},S)}};
G.px.prototype.D=function(Z,S){if(Z.k9.length!=0){Z.nd=!0;return}var b=Z.t[Z.C[0]];if(S==null){S=this.yg.JE();
if(this.qu()&&b.PC<=0)S=S.Yz(this.s_)}if(S.h3())return;if(b.PC<=0){b.D(S)}if(b.PC==1){b.Y6().Th=!0;b.vK(Z)}if(b.PC==3){b.D()}Z.D(Z.root.ri(S,Z,Z.C[0],!0))};
G.px.prototype.Xa=function(Z,S,b,Y,P){if(this.yg==null)return;this.yg.finish();if(this.id!=G.Cc&&this.id!=G.yw&&this.id!=G.hi)this.pT(Z);
if(this.id==G.cK||this.id==G.yw){Z.M.ag=[];Z.nd=!0}if(this.id==G.hi){var w=Z.N;Z.N=this.O1;var f=new d(s.E.s,!0);
f.data={e:"setsel",ep:this.name,N:w};f.T=G.r9;S.m(f);if(this.xN.qsmode==0)this.ix({qsmode:1},S)}else{this.finish(Z,this.yg.tj());
this.yg=null;this.kX=null}this.dir=0};G.px.prototype.ix=function(Z,S){for(var b in Z)this.xN[b]=Z[b];
var Y=new d(s.E.P,!0);Y.data={e:s.U.jO,T:this.id,iF:Z};S.m(Y)};G.px.prototype.qu=function(){var Z=this.id;
return Z==G.hi||Z==G.pK||Z==G.Hm||Z==G.dA||Z==G.y7||Z==G.H5};G.px.prototype.finish=function(Z,S,b,Y,P){var w=Z.k9.length!=0?-1-Z.k9[0]:Z.C[0],f=Z.t[w],h=w<0?1:f.PC,Q=w<0?Z.eP[-w-1]:h<=0?null:h==1?f.Y6():f.fY(Z).d,e=Q?Q.rect:f.rect,m;
if(this.qu()||!e.Oh(this.s_)){if(Q==null){if(this.qu())f.gi();else{var l=S.VK(this.s_),O=T.f(l.X()*4);
T.uH(f.buffer,f.rect,O,l);f.buffer=O;f.rect=l}}else Q.gi();this.D(Z,e)}if(h<=0){m=T.f(S.X()*4);T.uH(this.lw,this.s_,m,S)}else{m=T.f(S.X());
m.fill(Q.color);T.JS(this.lw,this.s_,m,S)}this.aC(Z,!1,b?b:this.name,w,h,S,m,Y,P)};G.px.prototype.aC=function(Z,S,b,Y,P,w,f,h,Q){var e=f;
if(P>0){e=T.f(w.X()*4);G.px.vB(f,w,0,e,w)}var l=new iA(b,this);l.data=[{$:Y,D3:P,_:w,Le:e}];if(h)l.data.x$=[Z.N,null];
if(Q)l.data.x$=[this.O1,Z.N];Z.kz(l);if(S)this.Ed(l.data,Z);else if(h)Z.N=null;dK.MX.P6(Z,l.data)};G.px.prototype.zv=function(Z,S){this.b0(Z,S,!1)};
G.px.prototype.Ed=function(Z,S){this.b0(Z,S,!0)};G.px.prototype.b0=function(Z,S,b){if(Z.e=="drawtemp"){var Y=b?Z.agB:Z.agY,P=S.t[Z.$];
P.Ns.qG=Y;P.$p(S,0,0,S.N);P.D();S.Vc=!0}else{dK.MX.$E(S,Z);if(Z.x$){S.N=Z.x$[b?1:0];S.Zu=!0}}S.D()};
G.px.prototype.pT=function(Z){this.VH(Z,this.L9,this.yg.f9(),this.yg.Ij(),this.yg.JE());this.D(Z)};G.px.prototype.VH=function(Z,S,b,Y,P){var w=this.xN,f=Z.t[Z.C[0]],h=Z.k9.length!=0?Z.eP[Z.k9[0]]:f.PC<=0?null:f.PC==1?f.Y6():f.fY(Z).d,Q=T.f(P.X()*4),e,l=f.vv(0);
if(h==null){if(this.id==G._j&&S=="heal")T.uH(f.buffer,f.rect,Q,P);else T.uH(this.lw,this.s_,Q,P);if(l){e=T.f(P.X());
T.to(Q,e,3)}}else{G.px.vB(this.lw,this.s_,h.color,Q,P)}if(Z.N&&S!="qselect"){var O=P.Yz(Z.N.rect),m=T.f(O.X()*4);
if(S=="copy"){var V=T.f(O.X());T.JS(Z.N.channel,Z.N.rect,V,O);T.uH(Q,P,m,O);T.p.VZ(b,Y,m,O,V,O,0,O,1,!1)}else{T.uH(b,Y,m,O);
T.FD(Z.N.channel,Z.N.rect,m,O)}b=m;Y=O}function q(t,cT){var dX=Math.max(cT.x,Math.min(cT.x+cT.c-1,t.x)),g$=Math.max(cT.y,Math.min(cT.y+cT.v-1,t.y));
return new ar(dX,g$)}if(S=="idraw"||S=="ierase"){if(this.kX==null)this.kX=T.f(this.s_.X());var K=this.xN.samp,z=this.W3.VY,t=q(this.LK,P),H=K==0?t:this.HT,i=H.x,y=H.y,j=G.IX.T1(this.lw,this.s_,[H,new ar(i-2,y),new ar(i+2,y),new ar(i,y-2),new ar(i,y+2)]);
if(K==2)j=[[z>>>16&255,z>>>8&255,z>>>0&255,255]];var J=G.IX.sZ(Q,P,t,j,this.xN.wconf),A=T.f(P.X());T.JS(this.kX,this.s_,A,P);
T.To.VK(J,A,A);T.JS(A,P,this.kX,this.s_);T.FD(A,P,b,Y);S=S.slice(1)}if(S=="erase"&&(dK.MX.Pl(Z)!=16777215||h))S="draw";
if(S=="draw")T.p.xJ(w.bmode,b,Y,Q,P,P,w.opacity);else if(S=="erase"){var a=T.f(P.X()*4);T.uH(b,Y,a,P);
if(h==null){var I=T.f(P.X());T.to(a,I,3);T.ka(I,w.opacity);T.oN(I);T.FD(I,P,Q,P)}else{T._U(a,0,4278190080);
T.p.xJ("norm",a,P,Q,P,P,w.opacity)}}else if(S=="clone"||S=="heal"){var E=this.Bw(),c=this.I4.clone();
c.offset(E.x,E.y);var u=P.clone();u.lg(1,1);var n=T.f(u.X()*4),o=T.f(u.X());T.uH(b,Y,n,u);T.to(n,o,3);
T._U(n,0);if(h==null){T.uH(this.rD,c,n,u);var x=T.f(u.X());T.to(n,x,3);T.Im(x,o)}else G.px.vB(this.rD,c,h.color,n,u);
if(S=="clone"){T.y8(o,n,3);T.p.xJ(w.bmode,n,u,Q,P,P,w.opacity)}if(S=="heal"){var g=o.slice(0);T.round(g,20);
var v=T.f(u.X()*4);if(h==null)T.uH(this.lw,this.s_,v,u);else G.px.vB(this.lw,this.s_,h.color,v,u);T.p.VZ(n,u,v,u,g,u,0,u,1,!1);
T.Ar.Ci(v,g,u);T.p.VZ(v,u,Q,P,o,u,0,P,1,!1)}}else if(S=="dodge"||S=="burn"){var n=T.f(P.X()*4),B=1,M=0,r=0,N=0;
T.uH(b,Y,n,P);var R=P.X()*4,X=G.px.x7;if(this.xg){if(S=="dodge")S="burn";else S="dodge"}var $=w.rng;
if(S=="dodge"){M=[1-B/2,1,1+B][$];r=[1,1/(1+B),1][$];N=[B/2,0,0][$]}if(S=="burn"){M=[1/(1-B/2),1,1-B/2][$];
r=[1,1+B,1][$];N=[-(B/2)/(1-B/2),0,0][$]}for(var D=0;D<R;D+=4){var eQ=n[D+3];Q[D+0]=X(Q[D+0],M,r,N,eQ);
Q[D+1]=X(Q[D+1],M,r,N,eQ);Q[D+2]=X(Q[D+2],M,r,N,eQ)}}else if(S=="sponge"||S=="redeye"){var n=T.f(P.X()*4),o=T.f(P.X());
T.uH(b,Y,n,P);T.to(n,o,3);T.Bv(Q,n);var hN=w.smode;if(this.xg)hN=1-hN;var bI=cL.VS("hue2");if(S=="sponge")iD.D2(bI,0,[0,[-50,46][hN],[6,5][hN]]);
else iD.D2(bI,1,{B4:[265,305,25,55],tc:[0,-90,-70]});var fq=g3.uC("hue2",bI);g3.l5(fq,n,n,P);T.p.VZ(n,P,Q,P,o,P,0,P,1,!1)}else if(S=="copy")T.uH(b,Y,Q,P);
else if(S=="sheal"){var n=T.f(P.X()*4),o=T.f(P.X());T.uH(b,Y,n,P);T.to(n,o,3);n.fill(0);var e9=this.rD,W=this.I4;
if(h){e9=T.f(W.X()*4);G.px.vB(this.rD,W,0,e9,W)}var L=T.vl.Ci(e9,W,o,n,P);if(L!=0)T.uH(e9,W,n,P);if(this.xN.sfrom==0)T.uH(n,P,Q,P);
else{T.uH(this.lw,this.s_,Q,P);T.y8(o,n,3);T.p.xJ("norm",n,P,Q,P,P,1)}}else if(S=="qselect"){var bd=this.s_,iw=bd.c,d7=bd.v,d0=iw*d7,gS=this.yg.f9(),j=this.lw,cf=G.Ks.oC,o=cf.m6;
o.fill(128);for(var D=0;D<d0;D++){var cT=gS[D<<2],fU=gS[(D<<2)+3];if(fU==255&&(cT==0||cT==255))o[D]=cT}o[0]=o[iw-1]=0;
o[(d7>>>1)*iw]=o[(d7>>>1)*iw+iw-1]=0;G.N4.Bj(cf,!0);Z.N={rect:bd,channel:cf.N.slice(0)};Z.Zu=!0}if(h==null){if(l)T.y8(e,Q,3);
T.uH(Q,P,f.buffer,f.rect)}else G.px.Sc(Q,P,h)};G.px.Bw=function(){return null};G.px.x7=function(Z,S,b,Y,P){var w=Z*(1/255),f=Y+S*Math.pow(w,b),h=Math.round(f*P+w*(255-P));
return Math.max(0,Math.min(255,h))};G.px.vB=function(Z,S,b,Y,P){var w=T.f(P.X());w.fill(b);T.JS(Z,S,w,P);
Y.fill(255);T.zf(w,Y)};G.px.Sc=function(Z,S,b){var Y=T.f(S.X());T.Mq(Z,Y);T.JS(Y,S,b.channel,b.rect)};
G.Ks=function(Z,S,b){G.$W.call(this,Z,S,b);this.xN={e5:"front",Mt:0,xL:{QX:0,x:3,y:2},qC:[16,!0,!0]};
this.WD=new ar(-1,-1);this.GM=new ar(-1,-1);this.Hi="default";this.$o=null;this.a51=!0;this._A=!1;this.Dc=!1;
this.xg=!1;this.iB=0;this.rb=0;this.bL=!1;this.HB=null;this.lD=null;this.fm=!1};G.Ks.prototype=new G.$W;
G.Ks.prototype.a9P=function(){var Z=this.xN,S=[{front:0,union:1,difference:2,intersection:3}[Z.e5],Z.Mt];
if(this.id==G.bJ)S.push(Z.qC);return S};G.Ks.prototype.alT=function(Z,S,b){var Y=this.xN;Y.e5=["front","union","difference","intersection"][Z[0]];
Y.Mt=Z[1];Y.qC=Z[2];var P=new d(s.E.P,!0);P.data={e:s.U.jO,T:this.id,qT:Y};b.m(P)};G.Ks.oC={key:""};
G.Ks.zT=function(Z,S){var b={uf:Z,V1:{classID:"setd",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}};
if(S)b.V1.T=S;return b};G.Ks.qi=function(Z,S){return G.Ks.zT("set",{t:"Objc",v:{classID:Z,Top:{t:"UntF",v:{type:"#Pxl",val:S.y}},Left:{t:"UntF",v:{type:"#Pxl",val:S.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:S.y+S.v}},Rght:{t:"UntF",v:{type:"#Pxl",val:S.x+S.c}}}})};
G.Ks.M6=function(Z,S){var b=[],Y=[],w="set";for(var D=0;D<Z.length;D+=2){b.push(Z[D]);Y.push(Z[D+1])}var P={t:"Objc",v:{classID:"Plgn",Pts:{t:"ObAr",v:{classID:"Pnt",arr:[{id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:b},{id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:Y}]}}}};
if(S)w={front:"set",union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[S];return G.Ks.zT(w,P)};
G.Ks.adl=function(Z,S){var b={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:Z.x}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:Z.y}}}},Y=G.Ks.zT("set",b);
Y.V1.Tlrn={t:"long",v:S[0]};Y.V1.AntA={t:"bool",v:S[1]};Y.V1.Cntg={t:"bool",v:S[2]};return Y};G.Ks.zP=function(Z){return G.Ks.zT("set",{t:"enum",v:{Ordn:Z?"Al":"None"}})};
G.Ks.aiw=function(Z,S,b){var Y={classID:"null"};if(Z!="border")Y.selectionModifyEffectAtCanvasBounds={t:"bool",v:b};
var P={e:"By",c:"By",b:"Wdth",f:"Rds",s:"Rds"}[Z[0]];Y[P]={t:"UntF",v:{type:"#Pxl",val:S}};return{uf:Z,V1:Y}};
G.Ks.Ec=function(Z,S,b){var Y={t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]},P={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:S}}]};
if(b)P.v.push({t:"name",v:{classID:"Lyr",val:b}});var w=[{classID:"null",null:Y,T:P},{classID:"null",null:P,T:Y},{classID:"null",null:P,From:Y},{classID:"null",null:P,With:Y}],f=["set","add","subtract","interfaceIconFrameDimmed"];
return{uf:f[Z],V1:w[Z]}};G.Ks.zb=function(Z,S){var b=new d(s.E.P,!0);b.data={e:s.U.h4,Sz:bp.XY};if(!S.Wb)Z.m(b);
b.data={e:s.U.h4,Sz:bp.L3};if(!S.Gg.MQ)Z.m(b)};G.Ks.prototype.Pf=function(Z,S,b,Y,P){G.Ks.zb(S,P);this.$o=S;
var w=Z.e,f,h,Q=new b4(0,0,b.c,b.v),fU=!1,dX,g$,bX,aw;if(w=="fromAction"){var e=Z.K4,l=e.uf,O=e.V1,m=O?O.selectionModifyEffectAtCanvasBounds:null,V=m&&m.v;
if(l=="inverse"){if(b.N==null){alert("No selection!");return}f={channel:T.f(Q.X()),rect:Q};T.JS(b.N.channel,b.N.rect,f.channel,f.rect);
T.oN(f.channel);h=[7,2]}else if(l=="expand"){var q=O.By.v.val,K=b.N.rect.clone();K.lg(q,q);var z=T.f(K.X()),t=T.f(K.X());
T.JS(b.N.channel,b.N.rect,t,K);T.style.stroke(t,z,K,q);f={channel:z,rect:K};h=[7,4]}else if(l=="contract"){var q=O.By.v.val,H=b.N.rect.clone();
H.lg(1,1);if(!V)H=H.Yz(Q);var t=T.f(H.X()),i=T.f(t.length);T.JS(b.N.channel,b.N.rect,t,H);T.oN(t);T.style.stroke(t,i,H,q);
T.oN(i);f={channel:i,rect:H};T.gi(f);h=[7,5]}else if(l=="border"){var q=O.Wdth.v.val;f=G.Ks.$A(b.N,q/2,q/2);
h=[7,9]}else if(l=="feather"||l=="smoothness"){var q=O.Rds.v.val;f=G.Ks.q8(b.N,q,l=="smoothness",Q,V);
h=l=="feather"?[7,6]:[19,3,0]}else{var y=O.null.v;function j(co){var dh=co.Top.v.val,er=co.Left.v.val;
return new b4(er,dh,co.Rght.v.val-er,co.Btom.v.val-dh)}function J(co){var dh=co[0].arr,cX=co[1].arr,eY={H:[],K:[]};
for(var D=0;D<dh.length;D++){eY.K.push(D==0?"M":"L");eY.H.push(dh[D],cX[D])}eY.K.push("Z");return eY}var A=["set","addTo","subtractFrom","interfaceWhite"].indexOf(l),a=O.T?O.T.v:null;
if(a&&a.classID=="Elps"){f=this.eB(G.xu.Zk(j(a)));h=[10,4]}else if(a&&a.classID=="Rctn"){var I=j(a);
f={channel:T.f(I.X()),rect:I.clone()};f.channel.fill(255);h=[10,15]}else if(a&&a.classID=="ObSl"){var I=j(a),E=G.Ks.oC,c=E.rect,u=E.m6,n=c.c,o=c.v,x=I.x-c.x,g=x+I.c-1,v=Math.max(x,Math.min(g,x+g>>>1)),R=I.y-c.y,X=R+I.v-1,B=Math.max(R,Math.min(X,R+X>>>1)),M=Math.max(x,0),r=Math.min(g,n),N=Math.max(R,0),$=Math.min(X,o);
u.fill(128);if(0<=R)for(var eQ=M;eQ<r;eQ++)u[R*n+eQ]=0;if(X<o)for(var eQ=M;eQ<r;eQ++)u[X*n+eQ]=0;if(0<=x)for(var hN=N;
hN<$;hN++)u[hN*n+x]=0;if(g<n)for(var hN=N;hN<$;hN++)u[hN*n+g]=0;var bI=G._E.mr,fq=Math.round(I.c*bI),e9=Math.round(I.v*bI);
for(var eQ=Math.max(0,v-fq);eQ<Math.min(n,v+fq);eQ++)u[B*n+eQ]=255;for(var hN=Math.max(0,B-e9);hN<Math.min(o,B+e9);
hN++)u[hN*n+v]=255;G.N4.Bj(E,!0);f={channel:E.N.slice(0),rect:c.clone()};h=[10,44]}else if(a&&a.classID=="Plgn"){f=this.eB(J(a.Pts.v.arr));
h=[10,9]}else if(a&&a.classID=="Pnt"){f=G.IX.Nh(b,new ar(a.Hrzn.v.val,a.Vrtc.v.val),[O.Tlrn.v,O.AntA==null||O.AntA.v,O.Cntg==null||O.Cntg.v]);
h=[10,12]}else if(a&&a.Ordn=="None"){f=null;h=[7,1]}else if(a&&a.Ordn=="Al"){f={channel:T.f(Q.X()),rect:Q};
f.channel.fill(255);h=[7,0]}else if(a&&a[0]&&a[0].v.keyID=="WrPt"){var W={e:"frompath",ms:[-1,0,0]};
this.Pf(W,S,b,Y,P);return}else{var L=["set","add","subtract","interfaceIconFrameDimmed"].indexOf(l),bd=l=="set"?a:y,iw=bd[0].v.enum,W;
if(iw=="Trsp"||iw=="Msk"||iw=="vectorMask"){var d7=b.C[0];if(bd.length==2)d7=a3.O_(b,bd[1]);var d0=["Trsp","Msk","vectorMask"].indexOf(iw);
W={e:"fromlayer",ms:[d7,d0,L]}}else{if(bd[0].t=="name"){var d7=0;for(var D=0;D<b.eP.length;D++)if(b.eP[D].name==bd[0].v.val)d7=D;
W={e:"fromchannel",ms:[-5-d7,0,L]}}else{var gS=["RGB","Rd","Grn","Bl"].indexOf(iw);W={e:"fromchannel",ms:[-1-gS,0,L]}}}this.Pf(W,S,b,Y,P);
return}if(O.Fthr)f=G.Ks.q8(f,O.Fthr.v.val,!1);if(l!="set"&&b.N!=null)f=T.To.Wj(f,b.N,["","union","difference","intersection"][A])}if(l=="expand"||l=="contract")if(!V&&!Q.contains(f.rect)){var cf=f.rect.Yz(Q),cT=T.f(cf.X());
T.JS(f.channel,f.rect,cT,cf);f.channel=cT;f.rect=cf}}if(w=="qmask"){fU=!0;var hP=b.oz(),eG=new b4(0,0,b.c,b.v);
if(hP){f=hP.rect.Oh(eG)&&T.BI(hP.channel,255)?null:{rect:hP.rect.clone(),channel:hP.channel.slice(0)};
dX=hP}else{f=null;g$=new F.bN;g$.color=0;g$.name="Quick Mask";g$.Ag=!0;if(b.N){g$.rect=b.N.rect.clone();
g$.channel=b.N.channel.slice(0)}else{g$.rect=eG;g$.channel=T.f(g$.rect.X());g$.channel.fill(255)}}h=[6,6,1]}if(w=="setsel"){f=Z.N;
h=Z.ep}if(w=="crange"){var eB=Z.Ce,bb=Z.Jz;f=G.Ks.zJ(b,eB,bb,Z.hx);h=[7,8];eB={t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:eB.lq},A:{t:"doub",v:eB.w},B:{t:"doub",v:eB.O}}};
bb={t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:bb.lq},A:{t:"doub",v:bb.w},B:{t:"doub",v:bb.O}}};this.track({uf:"colorRange",V1:{__name:"Color Range",classID:"ClrR",Fzns:{t:"long",v:Math.round(Z.hx*200)},Mnm:eB,Mxm:bb,colorModel:{t:"long",v:0}}})}if(w=="fromlayer"||w=="fromchannel"||w=="frompath"){var gx=Z.ms[0],d0=Z.ms[1],A=Z.ms[2];
if(w=="fromlayer"){if(gx==null)gx=b.C[0];var er=b.t[gx];if(d0==0){var ea=er.rect,hD=er.buffer;if(ea.h3())return;
var bP=T.f(hD.length>>>2);T.to(hD,bP,3);f={channel:bP,rect:ea.clone()}}else{if(er.d==null)er.vK(b);var iz=d0==1?er.Y6():er.d;
f=G.Ks.xt(iz,Q)}this.track(G.Ks.Ec(A,["Trsp","Msk"][d0],er.getName()))}else if(w=="frompath"){var iq=b.zl(),cU=iq[1],iq=iq[0];
if(gx==null)if(iq.length==0||cU.length==0)return;var aH=iq[cU[0]];if(gx!=null)for(var D=0;D<iq.length;
D++)if(iq[D].SU==gx)aH=iq[D];var iz=aH.add.vmsk.Y6(),eK=iz.Ij();if(eK.X()==0)return;var bP=iz.F0();if(Z.ms[3]!=null)this.a51=Z.ms[3];
if(this.a51){bP=bP.slice(0);T.round(bP)}bX=[JSON.stringify(b.ph),JSON.stringify(b.v6)];aw=["[]","[]"];
b.ph=[];b.v6=[];f={channel:bP,rect:eK}}else{if(gx==null)gx=G.Ks._$(b);f=G.Ks.A8(b,gx)}if(A!=0&&b.N)f=T.To.Wj(f,b.N,["","union","difference","intersection"][A]);
h=[14,11]}if(f!=null&&T.BI(f.channel,0)){f=null;h=[7,1]}if(f)T.gi(f);var h6=new iA(h,this);h6.data={e:"changesel",O1:b.N,iH:f,oz:fU,alg:dX,abP:g$,GK:bX,am9:aw};
b.kz(h6);this.Ed(h6.data,b)};G.Ks._$=function(Z){var S=0;if(Z.k9.length!=0)S=-5-Z.k9[0];else if(JSON.stringify(Z.a.o)=="[1,1,1]")S=-1;
else S=-2-Z.a.o.indexOf(1);return S};G.Ks.A8=function(Z,S){var b,Y=new b4(0,0,Z.c,Z.v);if(-5<S&S<0){var P=-S-1,w=Z.Zd(),f=T.f(Y.X());
if(P==0)T.Mq(w,f);else T.to(w,f,P-1);b={channel:f,rect:Y.clone()}}if(S<-4){b=G.Ks.xt(Z.eP[-S-5],Y)}return b};
G.Ks.xt=function(Z,S){var b,Y;if(Z.CD()==0){Y=Z.Ij();if(Y.X()==0)return;b=Z.F0()}else{Y=S;b=T.f(Y.X());
Z.Zv(Y,b)}return{channel:b,rect:Y}};G.Ks.prototype.wF=function(Z){return this.bL||Z.ou&&this.id!=G.bR};
G.Ks.prototype.am=function(Z,S,b){var Y=new d(S,!0);Y.data=b;Z.m(Y)};G.Ks.prototype.Hu=function(Z,S){var b=new d(s.E.P,!0);
b.data={e:s.U.il,tf:S};Z.m(b)};G.Ks.prototype.Ij=function(Z,S,b){S=Z.N==null||this.iB>1||this.rb>1?S:null;
var Y=this.WD,P=this.GM;if(b){Y.x=Math.max(0,Math.min(Z.c,Y.x));Y.y=Math.max(0,Math.min(Z.v,Y.y));P.x=Math.max(0,Math.min(Z.c,P.x));
P.y=Math.max(0,Math.min(Z.v,P.y))}var w=G.cI.pr(Y,P,S,!0,this.xN.xL),f=w[0].x,h=w[0].y;return new b4(f,h,w[1].x-f,w[1].y-h)};
G.Ks.prototype.Os=function(Z,S,b,Y,P){if(this.Fz())return;this.$o=S;this._A=!1;this.Dc=Y.q(U.Lo);this.xg=Y.q(U.G_);
this.iB=this.Dc?0:1;this.rb=this.xg?0:1;this.WD=Z.a._2(P.x,P.y);this.WD=G.sR.yK(Z,this.WD,b);if(this.Xi(Z,this.WD,Y)){this.bL=!0;
this.HB=Z.N.rect.clone();return}this.UQ(Z,b,Y,P);Z.a.dl=new b4};G.Ks.prototype.Xi=function(Z,S,b){var Y=b.q(U.Lo),P=b.q(U.G_);
if(Z.N&&!Y&&!P&&this.xN.e5=="front")return T.eI(S,Z.N.channel,Z.N.rect);return!1};G.Ks.prototype.Zq=function(Z,S,b,Y,P){this.$o=S;
if(this.fm)return;var w=Z.a._2(P.x,P.y);if(ar.VA(this.WD,w)*Z.a.S>5)this._A=!0;if(Y.q(U.Ah)){if(this.lD==null)this.lD=new ar(w.x-this.WD.x,w.y-this.WD.y);
this.WD.x=w.x-this.lD.x;this.WD.y=w.y-this.lD.y}else this.lD=null;this.GM=w;if(!this.bL)this.GM=G.sR.yK(Z,this.GM,b);
if(this.Xi(Z,this.GM,Y))this.Hu(S,"move");else this.Hu(S,this.Hi);if(this.bL){var f=this.HB.clone();
f.x+=this.GM.x-this.WD.x;f.y+=this.GM.y-this.WD.y;var h=G.sR.BG(Z,f,b);Z.N.rect.x=Math.round(this.GM.x-this.WD.x+this.HB.x+h[0]);
Z.N.rect.y=Math.round(this.GM.y-this.WD.y+this.HB.y+h[1]);Z.Zu=!0;G.sR.F$(Z,f,h);return}this.Sw(Z,b,Y,P);
if(Z.a.dl)Z.a.dl=this.Ij(Z,Y)};G.Ks.prototype.Fz=function(){return!1};G.Ks.prototype.Xa=function(Z,S,b,Y,P){Z.a.dl=null;
this.GM=Z.a._2(P.x,P.y);this.GM=G.sR.yK(Z,this.GM,b);if(this.bL){this.bL=!1;if(this.GM.Oh(this.WD)&&this.DL()=="front"){this.am(S,s.E.TH,G.Ks.zP());
return}this.Vi(Z,this.HB,Z.N.rect.clone());if(Z!=null&&Z.M.yW){Z.M.yW=null;Z.nd=!0}return}this.LP(Z,b,Y,P);
G.Ks.zb(S,b)};G.Ks.prototype.Vi=function(Z,S,b){var Y=Z.Yl();if(Y!=null&&Y.T==this&&Y.data.e=="movesel"){}else{Y=new iA([7,7],this);
Y.data={e:"movesel",AR:S};Z.kz(Y)}Y.data.yZ=b;this.Ed(Y.data,Z)};G.Ks.prototype.vU=function(Z,S,b,Y,P){this.fm=!0};
G.Ks.prototype.nL=function(Z,S,b,Y,P){var w=new d(s.E.P,!0);w.data={e:s.U.jO,T:this.id,tl:P,o2:Z,Oz:b};
S.m(w);this.fm=!1};G.Ks.prototype.XF=function(Z,S,b,Y){var P=Y.q(U.Lo),w=Y.q(U.G_);if(this._A){if(this.iB==0&&!P)this.iB++;
if(this.iB==1&&P)this.iB++;if(this.rb==0&&!w)this.rb++;if(this.rb==1&&w)this.rb++}if(Z!=null&&Z.N!=null){var f=Y.sh();
if(f.x!=0||f.y!=0){var h=Z.N.rect.clone();h.x+=f.x;h.y+=f.y;this.Vi(Z,Z.N.rect.clone(),h)}}var Q=G.Ks.cU(this.xN.e5,P,w),e=new d(s.E.P,!0);
e.data={e:s.U.jO,T:this.id,e5:Q};S.m(e)};G.Ks.prototype.finish=function(Z,S,b,Y){var P=Z.N,w=this.getSelection(Z,S,b,Y);
if(w==null)w=G.Ks.zP();else{var f=this.xN.Mt,h=this.DL();if(f!=0)w.V1.Fthr={t:"UntF",v:{type:"#Pxl",val:f}};
if(h!="front"&&h!="xor")w.uf={union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[h]}this.am(this.$o,s.E.TH,w);
this.WD.Ha(-1,-1);this.GM.Ha(-1,-1)};G.Ks.prototype.DL=function(){return G.Ks.cU(this.xN.e5,this.Dc,this.xg)};
G.Ks.cU=function(Z,S,b){if(S)Z="union";if(b)Z="difference";if(S&&b)Z="intersection";return Z};G.Ks.prototype.getSelection=function(Z,S,b,Y){return null};
G.Ks.prototype.UQ=function(Z,S,b,Y){};G.Ks.prototype.Sw=function(Z,S,b,Y){};G.Ks.prototype.LP=function(Z,S,b,Y){};
G.Ks.prototype.zv=function(Z,S){var b=Z.e;if(b=="changesel")S.N=Z.O1;if(b=="movesel")S.N.rect=Z.AR;if(Z.oz){if(Z.alg){S.k9=[S.eP.length];
S.eP.push(Z.alg)}else{S.eP.pop();S.k9=[]}}if(Z.GK){S.ph=JSON.parse(Z.GK[0]);S.v6=JSON.parse(Z.GK[1])}S.Zu=!0};
G.Ks.prototype.Ed=function(Z,S){var b=Z.e;if(b=="changesel")S.N=Z.iH;if(b=="movesel")S.N.rect=Z.yZ;if(Z.oz){if(Z.abP){S.k9=[S.eP.length];
S.eP.push(Z.abP)}else{S.eP.pop();S.k9=[]}}if(Z.GK){S.ph=JSON.parse(Z.am9[0]);S.v6=JSON.parse(Z.am9[1])}S.Zu=!0};
G.Ks.prototype.aa=function(Z){this.xN=Z};G.Ks.prototype.eB=function(Z){var S=T.z.Ex(Z.H);if(S.h3())return null;
var b=s.R("canvas","");b.width=S.c;b.height=S.v;var Y=b.getContext("2d");Y.beginPath();Y.translate(-S.x,-S.y);
Typr.U.pathToContext({cmds:Z.K,crds:Z.H},Y);Y.closePath();Y.fill();var P=T.f(S.X()),w=Y.getImageData(0,0,b.width,b.height);
T.to(w.data,P,3);return{rect:S,channel:P}};G.Ks.q8=function(Z,S,b,Y,P){if(b)S=Math.round(S*.7);var w=Math.ceil(2.6*S),f=Z.rect.clone();
f.lg(w,w);if(Y&&!P)f=f.Yz(Y);var h=T.f(f.X()),Q=T.f(h.length);T.JS(Z.channel,Z.rect,Q,f);T.rr.R2(Q,h,f,S);
if(b){var e=h.length;for(var D=0;D<e;D++){var l=(h[D]-128)*S*2.5;h[D]=Math.max(0,Math.min(255,Math.round(128+l)))}}return{channel:h,rect:f}};
G.Ks.$A=function(Z,S,b){var Y=Math.max(1,Math.ceil(b)),P=Z.rect.clone();P.lg(Y,Y);var w=P.X(),f={channel:T.f(w),rect:P},h=T.f(w);
T.JS(Z.channel,Z.rect,h,f.rect);if(b!=0)T.style.stroke(h,f.channel,f.rect,b);else T.Bv(h,f.channel);
var Q=T.f(w);T.oN(h);if(S!=0)T.style.stroke(h,Q,f.rect,S);else T.Bv(h,Q);T.To.Yz(f.channel,Q,f.channel);
return f};G.Ks.zJ=function(Z,S,b,Y){var P=new b4(0,0,Z.c,Z.v),w=Z.Zd();if(Z.N){var f=Z.N.rect.Yz(P),h=T.f(f.X()*4);
T.uH(w,P,h,f);P=f;w=h}var Q=P.X(),e=T.f(Q),l=1/Y;for(var D=0;D<Q;D++){var O=D<<2,m=T.N1(w[O],w[O+1],w[O+2]),V=T.c4(m,S,b,Y,l);
e[D]=w[O+3]*V}return{rect:P,channel:e}};G.Jd=function(){G.px.call(this,[10,18],G.mk,"tools/blur");this.L9="copy"};
G.Jd.prototype=new G.px;G.Jd.prototype.Os=function(Z,S,b,Y,P){var w=Y.q(U.G_)?b6.XQ:b6.mk;this.AG(Z,b,Y,P,this.xN.strn,w);
if(this.yg==null)return;this.pT(Z)};G.Jd.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);if(this._o)this.j6(Z,b,P);
if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.Z4=function(){G.px.call(this,[10,0],G.sb,"tools/brush");
this.L9="draw"};G.Z4.prototype=new G.px;G.Z4.prototype.Os=function(Z,S,b,Y,P){if(this.It(Y,S,P))return;
this.AG(Z,b,Y,P,this.xN.flow);if(this.yg==null)return;this.pT(Z)};G.Z4.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);
if(this._o)this.j6(Z,b,P);if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.A0=function(){G.px.call(this,[10,42],G.bQ,"tools/crepl");
this.L9="idraw";this.xN.bmode="hue "};G.A0.prototype=new G.px;G.A0.prototype.Os=function(Z,S,b,Y,P){if(this.It(Y,S,P))return;
this.AG(Z,b,Y,P,this.xN.flow);if(this.yg==null)return;this.pT(Z)};G.A0.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);
if(this._o)this.j6(Z,b,P);if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.oh=function(){G.px.call(this,[10,43],G.H5,"tools/redeye");
this.xN.smode=0;this.L9="redeye"};G.oh.prototype=new G.px;G.oh.prototype.Os=function(Z,S,b,Y,P){this.AG(Z,b,Y,P,this.xN.flow);
if(this.yg==null)return;this.pT(Z)};G.oh.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);if(this._o)this.j6(Z,b,P);
if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.My=function(){G.px.call(this,[10,38],G.b_,"tools/pencil");
this.L9="draw"};G.My.prototype=new G.px;G.My.prototype.Os=function(Z,S,b,Y,P){if(this.It(Y,S,P))return;
this.AG(Z,b,Y,P,this.xN.flow);if(this.yg==null)return;this.pT(Z)};G.My.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);
if(this._o)this.j6(Z,b,P);if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.fg=function(){G.px.call(this,[10,22],G.dA,"tools/burn");
this.L9="burn"};G.fg.prototype=new G.px;G.fg.prototype.Os=function(Z,S,b,Y,P){this.AG(Z,b,Y,P,this.xN.expo/Math.E);
if(this.yg==null)return;this.pT(Z)};G.fg.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);if(this._o)this.j6(Z,b,P);
if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.Pk=function(Z,S,b){G.px.call(this,Z==""?null:Z?Z:[10,1],S?S:G.cK,b?b:"tools/clone");
this.L9="clone";this.s3=null;this.n=null};G.Pk.prototype=new G.px;G.Pk.prototype.Os=function(Z,S,b,Y,P){var w=this.xN,f=w.alt[0];
if(Y.q(U.G_)||Y.q(U.EJ)||f){this.s3=Z.a._2(P.x,P.y);this.n=null;if(f)this.ix({alt:[!1]},S);this.EB(Z);
this.uz(b,Y,Z,P);return}if(this.s3==null){alert(aV.get([15,7,0]));return}this.uz(b,Y);this.AG(Z,b,Y,P,this.xN.flow);
if(this.yg==null)return;this.n=this.fJ(Z.a._2(P.x,P.y));this.pT(Z)};G.Pk.prototype.fJ=function(Z){var S=this.n;
if(S==null||!this.xN.algnd)S=new ar(Math.round(Z.x-this.s3.x),Math.round(Z.y-this.s3.y));return S};G.Pk.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);
if(this._o)this.j6(Z,b,P);if(this.yg==null){if(this.s3!=null)this.uz(b,Y,Z,P);return}if(!P.ou||this.s3==null)return;
this.b7(Z,b,Y,P);this.pT(Z)};G.Pk.prototype.Bw=function(){return this.n};G.PK=function(Z,S,b){G.$W.call(this,Z,S,b);
this.d8={kb:{QX:0,x:0,y:0},l_:!1};this.me=null;this.cursor=null;this.anG=0;this.Vn=null;this.WD=null;
this.LZ=null};G.PK.prototype=new G.$W;G.PK.prototype.K7=function(){return this.me!=null};G.PK.prototype.wF=function(Z){return this.me&&this.me.kW()};
G.PK.prototype.Os=function(Z,S,b,Y,P){this.Vn=P;var w=Z.a._2(P.x,P.y);w.x=Math.round(w.x);w.y=Math.round(w.y);
var f=this.d8.kb,h=f.QX!=0?f.x/f.y:null;if(this.me)this.me.Os(Z,b,Y,w,h,!1);else this.WD=G.sR.yK(Z,w,b)};
G.PK.prototype.fK=function(Z,S){var b=[Z.x,Z.y,Z.x+Z.c,Z.y,Z.x+Z.c,Z.y+Z.v,Z.x,Z.y+Z.v];return new ad(b,!0,!1,this.id==G.SE,!0,S,this.id==G.SE?2:0,this.id==G.SE)};
G.PK.prototype.uz=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.il,tf:this.cursor};Z.m(S)};G.PK.prototype.enable=function(Z,S,b,Y){this.$o=S;
this.cursor="crosshair";this.uz(S);if(Z!=null&&Z.N){var P=this.d8.kb={QX:0,x:0,y:0};this.am(S,s.E.P,{e:s.U.jO,T:this.id,K$:!1,xL:P});
this.aa({Pp:"cropby",agH:3},S,Z,Y,b)}};G.PK.prototype.Zq=function(Z,S,b,Y,P){this.Vn=P;var w=Z.a._2(P.x,P.y);
if(!P.ou){var f="crosshair";if(this.me){var h=this.me.jN(w,Z.a.S);if(h)f=h;else f="default"}if(f!=this.cursor){this.cursor=f;
this.uz(S)}}if(this.me)this.me.Zq(Z,b,Y,w);else if(this.WD){var Q=G.cI.pr(this.WD,G.sR.yK(Z,w,b),Y,!0,this.d8.kb),e=Q[0].x,l=Q[0].y,O=this.LZ=new b4(e,l,Q[1].x-e,Q[1].y-l);
Z.M.LG=T.z.X6(O);Z.nd=!0;G.$W.i8(P.x+10,P.y-10,O,Z,b)}};G.PK.prototype.Xa=function(Z,S,b,Y,P){this.Vn=P;
if(this.me==null){if(this.WD){var w=this.LZ;if(w){var f=this.d8.kb;this.me=this.fK(w,f.QX!=0);this.me.tR(Z,b);
this.LZ=null;this.am(S,s.E.P,{e:s.U.jO,T:this.id,K$:!0})}this.WD=null;Z.M.ag=[];Z.nd=!0}return}var h=Z.a._2(P.x,P.y);
this.me.Xa(Z,b,Y,h);this.am(S,s.E.P,{e:s.U.jO,T:this.id,K$:!0});var Q=this.me.WM();if(Math.abs(Q[0]-Q[4])<2&&Math.abs(Q[1]-Q[5])<2){this.disable(Z,S,null,Y);
return}if(Date.now()-this.anG<200&&this.me.hR(h)){this.LU(Z,b);this.disable(Z,S,b,Y);return}this.anG=Date.now()};
G.PK.prototype.XF=function(Z,S,b,Y){var P=this.me;if(P==null||this.Vn&&this.Vn.ou)return;if(Y.q(U.n5)){this.LU(Z,b);
this.disable(Z,S,b,Y)}else if(Y.q(U.eZ)){this.disable(Z,S,b,Y)}else P.XF(Z,b,Y)};G.PK.AP=function(Z,S){var b={classID:"null",T:{t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:Z[1]}},Left:{t:"UntF",v:{type:"#Pxl",val:Z[0]}},Btom:{t:"UntF",v:{type:"#Pxl",val:Z[1]+Z[3]}},Rght:{t:"UntF",v:{type:"#Pxl",val:Z[0]+Z[2]}}}},Angl:{t:"UntF",v:{type:"#Ang",val:S!=null?S:0}},Dlt:{t:"bool",v:!0},cropAspectRatioModeKey:{t:"enum",v:{cropAspectRatioModeClass:"pureAspectRatio"}},CnsP:{t:"bool",v:!1}};
return{uf:"crop",V1:b}};G.PK.HR=function(Z,S){if(S==null)S=[!0,!0,!0,!0];var b={classID:"trim",trimBasedOn:{t:"enum",v:{trimBasedOn:["topLeftPixelColor","bottomRightPixelColor","Trns"][Z]}}},Y=["Top","Left","Btom","Rght"];
for(var D=0;D<4;D++)b[Y[D]]={t:"bool",v:S[D]};return{uf:"trim",V1:b}};G.PK.dt=function(Z,S,b,Y){var P={classID:"null"};
if(Y!=null){P.Wdth={t:"UntF",v:{type:"#Pxl",val:Z}};P.Hght={t:"UntF",v:{type:"#Pxl",val:S}};P.Intr={t:"enum",v:{Intp:["Nrst","Blnr","bicubicSharper"][Y]}}}if(b!=null)P.Rslt={t:"UntF",v:{type:"#Rsl",val:b}};
return{uf:"imageSize",V1:P}};G.PK.K5=function(Z,S,b){if(b==null)b=4;var Y=Math.floor(b/3),P=b%3;return{uf:"canvasSize",V1:{classID:"null",Wdth:{t:"UntF",v:{type:"#Pxl",val:Z}},Hght:{t:"UntF",v:{type:"#Pxl",val:S}},Hrzn:{t:"enum",v:{HrzL:["Left","Cntr","Rght"][P]}},Vrtc:{t:"enum",v:{VrtL:["Top","Cntr","Btom"][Y]}}}}};
G.PK.prototype.Pf=function(Z,S,b,Y,P){var w=new b4(0,0,b.c,b.v),f=[11,3],h=b.GY,Q=b.c/2,e=b.v/2,l=1,$,eQ;
if(Z.e=="fromAction"){var O=Z.K4,m=O.uf,V=O.V1,q=b.c/b.v,K=V.Wdth?V.Wdth.v.val:-1,z=V.Hght?V.Hght.v.val:-1,h=V.Rslt?V.Rslt.v.val:null,t=V.Wdth?V.Wdth.v.type:V.Hght?V.Hght.v.type:-1,H=1,i;
if(m=="imageSize"){if(V.Intr){if(V.Intr.v.Intp=="Nrst")H=0;if(V.Intr.v.Intp=="bicubicSharper")H=2;if(K==-1&&z==-1){var y=h/b.GY;
K=Math.round(b.c*y);z=Math.round(b.v*y)}else if(t=="#Prc"){if(K!=-1)K=Math.round(b.c*K/100);if(z!=-1)z=Math.round(b.v*z/100)}if(V.CnsP&&V.CnsP.v){if(K==-1)K=Math.round(z*q);
if(z==-1)z=Math.round(K/q)}}else{if(t=="#Prc")h=Math.round(b.GY/((K!=-1?K:z)/100));else if(t==-1)h=Math.round(h);
else throw"e";K=b.c;z=b.v}i={e:"imgsize",M_:K,hW:z,Uy:h,dG:H}}else if(m=="canvasSize"){if(K==-1)K=b.c;
if(z==-1)z=b.v;if(V.Rltv&&V.Rltv.v==!0){if(V.Wdth)K+=b.c;if(V.Hght)z+=b.v}var j=V.Vrtc?V.Vrtc.v.VrtL:"Cntr",J=V.Hrzn?V.Hrzn.v.HrzL:"Cntr";
i={e:"canvsize",M_:K,hW:z,Kn:3*["Top","Cntr","Btom"].indexOf(j)+["Left","Cntr","Rght"].indexOf(J)}}else if(m=="revealAll"){i={e:"revealAll"}}else if(m=="trim"){var A={topLeftPixelColor:0,bottomRightPixelColor:1,Trns:2}[V.trimBasedOn.v.trimBasedOn];
if(A==null)throw"e";var a=["Top","Left","Btom","Rght"],I=[!0,!0,!0,!0];for(var D=0;D<4;D++)if(V[a[D]])I[D]=V[a[D]].v;
i={e:"trim",aiF:A,xL:I}}else if(m=="crop"){var E=V.T.v,c=Math.round(E.Left.v.val),u=Math.round(E.Top.v.val),n=Math.round(E.Rght.v.val)-c,o=Math.round(E.Btom.v.val)-u;
i={e:"canvsize",M_:n,hW:o,n:new ar(c,u)}}else console.log(O);if(i)this.Pf(i,S,b,Y,P);return}else if(Z.e=="imgsize"){w=new b4(0,0,Z.M_,Z.hW);
if(Z.Uy)h=Z.Uy;l=Z.dG}else if(Z.e=="canvsize"){var x=Z.Kn!=null?Z.Kn:0;w=new b4(0,0,Z.M_,Z.hW);var g=b.c-Z.M_,v=b.v-Z.hW,R=Math.round(g/2),X=Math.round(v/2);
if(x==1||x==4||x==7)w.x=R;if(x==2||x==5||x==8)w.x=g;if(x==3||x==4||x==5)w.y=X;if(x==6||x==7||x==8)w.y=v;
if(Z.n){w.x=Z.n.x;w.y=Z.n.y}}else if(Z.e=="rot"&&(Z.G+2*Math.PI)%(Math.PI/2)!=0){var B=T.z.X6(w).H,M=new fR;
M.translate(-Q,-e);M.rotate(Z.G);M.translate(Q,e);T.z.A(B,M,B);w=T.z.Ex(B)}else if(Z.e=="rot"&&Z.G!=Math.PI&&Z.G!=-Math.PI){w=new b4(Q-b.v/2,e-b.c/2,b.v,b.c);
if((b.c+b.v&1)==1){Q=Math.floor(Q);e=Math.floor(e);w=new b4(Q-Math.floor(b.v/2),e-Math.floor(b.c/2),b.v,b.c);
if((b.c&1)==1&&Z.G!=-Math.PI/2)w.y--;if((b.v&1)==1&&Z.G==-Math.PI/2)w.x--}}else if(Z.e=="trim"){f=[11,12,0];
var r=b.Zd(),N=new b4(0,0,b.c,b.v);w=T.gG(r,N,Z.aiF,Z.xL);if(w.h3())w=N}else if(Z.e=="cropbysel"){f=[11,12,1];
w=b.N.rect.clone()}else if(Z.e=="revealAll"){f=[11,12,2];w=b.root.Ij(b,!0)}if(Z.e=="imgsize"||Z.e=="rot"||Z.e=="scl"){var hN=new fR;
if(Z.e=="imgsize"){f=[11,10];hN.scale(Z.M_/b.c,Z.hW/b.v)}else{hN.translate(-Q,-e);if(Z.e=="rot")hN.rotate(Z.G);
if(Z.e=="scl")hN.scale(Z.G.x,Z.G.y);hN.translate(Q,e);f=Z.ep}eQ=T.J.GC(hN);$=this.vc(b,P,!0,eQ,l)}else if(Z.e=="auto-align"){if(b.C.length<2){alert("Select two or more layers.");
return}var bI=[];for(var D=0;D<b.C.length;D++){var fq=b.t[b.C[D]];if(!fq.bu()&&fq.add.SoLd==null){alert("Unsupported layer selected.");
return}if(fq.rect.h3()){alert("Empty layer selected.");return}bI.push([fq.buffer,fq.rect])}var e9=T.iN.VL(bI,0);
if(e9==null){alert("No similarity found.");return}eQ=e9[1];var W=b.C;b.C=b.C.slice(1);$=this.vc(b,P,!1,e9.slice(1),l);
b.C=W;w=b.root.Ij(b,!0);f=[2,10,1]}var L=new b4(0,0,b.c,b.v);if(!w.h3()&&(!w.Oh(L)||$!=null)){var bd=new iA(f,this);
bd.data={AR:L,yZ:w,afI:b.GY,Uy:h,wf:$,bp:eQ,kD:G.PK.sO(b,w,L,$!=null)};b.kz(bd);this.Ed(bd.data,b)}};
G.PK.sO=function(Z,S,b,Y){if(Z.CY.length==0)return null;var P=JSON.stringify(Z.CY),w=JSON.parse(P);G.cd.ajA(w,S,b,Y);
w=JSON.stringify(w);return[P,w]};G.PK.prototype.vc=function(Z,S,b,Y,P,w){var f={t:[],Zl:null,Xw:null};
if(b){for(var D=0;D<Z.t.length;D++)f.t.push(D);for(var D=0;D<Z.Bf.length;D++)f.t.push(-1-D);for(var D=0;
D<Z.eP.length;D++)f.t.push(-1e3-D)}else f.t=Z.C.slice(0);f.Zl=G.V.fU(Z,f.t,!0);G.V.NB(Z,S,f.t,f.Zl,P,Y,null,!0,w);
f.Xw=G.V.fU(Z,f.t,!0);return f};G.PK.prototype.Ed=function(Z,S){if(Z.Uy)S.GY=Z.Uy;if(Z.kD)S.CY=JSON.parse(Z.kD[1]);
if(Z.wf){G.PK.aY(S,T.J.eS(Z.bp));G.V.qs(S,Z.wf.t,Z.wf.Xw)}G.PK.l_(S,Z.yZ)};G.PK.prototype.zv=function(Z,S){if(Z.afI)S.GY=Z.afI;
if(Z.kD)S.CY=JSON.parse(Z.kD[0]);var b=Z.AR.clone();b.offset(-Z.yZ.x,-Z.yZ.y);G.PK.l_(S,b);if(Z.O4)S.a.n.ky(Z.O4);
S.N5();if(Z.wf){var Y=T.J.eS(Z.bp).clone();Y.oN();G.PK.aY(S,Y);G.V.qs(S,Z.wf.t,Z.wf.Zl)}};G.PK.aY=function(Z,S){for(var D=0;
D<Z.t.length;D++){var b=Z.t[D];if(b.add.artb==null)continue;var Y=T.z.X6(b.mb()).H;T.z.A(Y,S,Y);var P=T.z.Ex(Y);
b.PB(P)}};G.PK.l_=function(Z,S){Z.c=S.c;Z.v=S.v;var b=[];for(var D=0;D<Z.t.length;D++)b.push(D);G.sR.Av(Z,b,null,-S.x,-S.y);
for(var D=0;D<Z.t.length;D++){Z.t[D].vK(Z)}Z.N5();Z.a.n.Ha(0,0);if(Z.N)Z.N.rect.offset(-S.x,-S.y);for(var D=0;
D<2;D++)for(var Y=0;Y<Z.vE[D].length;Y++)Z.vE[D][Y]-=D==0?S.x:S.y;for(var D=0;D<Z.eP.length;D++)Z.eP[D].rect.offset(-S.x,-S.y)};
G.PK.prototype.aa=function(Z,S,b,Y,P){if(Z.Pp=="commit"){this.LU(b,P);this.disable(b,S,null,Y)}else if(Z.Pp=="cancel"){this.disable(b,S,null,Y)}var w=null,f=new b4(0,0,b.c,b.v),h=this.d8.kb;
if(Z.Pp=="config"){this.d8=Z.d8;h=this.d8.kb;if(this.d8.l_!=null)return;if(b==null)return;w=f;if(h.QX==1){var Q=h.x/h.y;
w.v=Math.round(w.c/Q)}if(h.QX==2){w.c=h.x;w.v=h.y}w.x=Math.round((b.c-w.c)/2);w.y=Math.round((b.v-w.v)/2)}if(Z.Pp=="cropby"){if(b==null)return;
var e=Z.agH,w;if(e==0)w=b.root.Ij(b,!0);if(e==1){if(b.C.length==0)alert("No layer is selected.");else{var l=b.root.zO(b.C[0]);
w=l.Ij(b,!0)}}if(e==2){if(b.C.length==0)alert("No layer is selected.");else{w=T.gG(b.Zd(),f,0);if(w.h3())w=f.clone()}}if(e==3){if(b.N!=null)w=b.N.rect;
else alert("There is no selection.")}}if(w&&w.h3())w=null;if(w!=null){this.me=this.fK(w,h.QX!=0);this.me.tR(b,P);
this.am(S,s.E.P,{e:s.U.jO,T:this.id,K$:!0})}};G.PK.prototype.LU=function(Z,S){var b=this.me.WM(),Y=T.z.Ex(b),P=this.a3U(Z,b),w=!1,f=this.d8.kb,h=this.d8.l_,Q=f.x,e=f.y,m;
if(this.id==G.ck&&f.QX==2&&P.X()!=Q*e){P=new b4(P.x,P.y,Q,e);w=!0}var l=T.J.Sy(b,P);l=T.J.oN(l);var O=T.J.ic(l),V=Math.atan2(l[3],l[0]);
if(Math.abs(V)>1e-9||!O||w||h)m=this.vc(Z,S,!0,l,1,Y);var q=new iA(this.name,this),K=new b4(0,0,Z.c,Z.v);
q.data={AR:K,yZ:P,wf:m,bp:l,O4:Z.a.n.clone(),kD:G.PK.sO(Z,P,K,!1)};Z.kz(q);this.Ed(q.data,Z);this.track(G.PK.AP([Y.x,Y.y,Y.c,Y.v]))};
G.PK.prototype.a3U=function(Z,S){var b=T.J.Sy(S),Y=T.J.ic(b),P=T.J.eS(b),w=P.RN,f=P.Sv,h=Math.atan2(P.O,P.w);
P.rotate(h);var Q=new b4(w,f,P.w,P.KU);if(!Y){function e(i,D,y){var j=i[D]-i[y],J=i[D+1]-i[y+1];return Math.sqrt(j*j+J*J)}var l=e(S,0,2),O=e(S,4,6),m=Math.max(l,O),V=e(S,2,4),q=e(S,6,0),K=Math.max(V,q),z=G.PK.a9c(S,Z.c/2,Z.v/2),t,H;
if(isNaN(z)||z==Infinity||z==-Infinity||Math.min(z,1/z)<.1)z=(l+O)/(V+q);if(m/K>z){t=m*1;H=t/z}else{H=K*1;
t=H*z}Q.c=t;Q.v=H}Q.x=Math.round(Q.x);Q.y=Math.round(Q.y);Q.c=Math.round(Q.c);Q.v=Math.round(Q.v);return Q};
G.PK.a9c=function(Z,S,b){var Y=Z[0]-S,P=Z[1]-b,w=Z[2]-S,f=Z[3]-b,h=Z[6]-S,Q=Z[7]-b,e=Z[4]-S,l=Z[5]-b,O=((P-l)*h-(Y-e)*Q+Y*l-P*e)/((f-l)*h-(w-e)*Q+w*l-f*e),m=((P-l)*w-(Y-e)*f+Y*l-P*e)/((Q-l)*w-(h-e)*f+h*l-Q*e),V=-((m*Q-P)*(O*f-P)+(m*h-Y)*(O*w-Y))/((m-1)*(O-1));
function q(z){return z*z}var K=Math.sqrt((q(O-1)+q(O*f-P)/V+q(O*w-Y)/V)/(q(m-1)+q(m*Q-P)/V+q(m*h-Y)/V));
if(O==1&&m==1)K=Math.sqrt((q(f-P)+q(w-Y))/(q(Q-P)+q(h-Y)));return K};G.PK.prototype.disable=function(Z,S,b,Y){if(Z==null)return;
if(this.me)this.me.clear(Z);this.me=null;this.am(S,s.E.P,{e:s.U.jO,T:this.id,K$:!1})};G.PK.prototype.am=function(Z,S,b,Y){var P=new d(S,!0);
P.data=b;if(Y)P.T=Y;Z.m(P)};G.Iz=function(){G.PK.call(this,[10,2],G.ck,"tools/rcrop")};G.Iz.prototype=new G.PK;
G.yz=function(){G.PK.call(this,[10,39],G.SE,"tools/pcrop")};G.yz.prototype=new G.PK;G.Md=function(){G.px.call(this,[10,21],G.Hm,"tools/dodge");
this.L9="dodge"};G.Md.prototype=new G.px;G.Md.prototype.Os=function(Z,S,b,Y,P){this.AG(Z,b,Y,P,this.xN.expo/Math.PI);
if(this.yg==null)return;this.pT(Z)};G.Md.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);if(this._o)this.j6(Z,b,P);
if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.yP=function(){G.px.call(this,[10,3],G.pK,"tools/eraser");
this.L9="erase"};G.yP.prototype=new G.px;G.yP.prototype.Os=function(Z,S,b,Y,P){this.AG(Z,b,Y,P,this.xN.flow);
if(this.yg==null)return;this.pT(Z)};G.yP.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);if(this._o)this.j6(Z,b,P);
if(this.yg==null)return;if(!P.ou)return;var w=this.b7(Z,b,Y,P);this.pT(Z)};G._r=function(){G.px.call(this,[10,45],G.af8,"tools/beraser");
this.L9="ierase"};G._r.prototype=new G.px;G._r.prototype.Os=function(Z,S,b,Y,P){if(this.It(Y,S,P))return;
this.AG(Z,b,Y,P,this.xN.flow);if(this.yg==null)return;this.pT(Z)};G._r.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);
if(this._o)this.j6(Z,b,P);if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.eE=function(){G.Ks.call(this,[10,15],G.r9,"tools/rselect");
this.Hi="crosshair"};G.eE.prototype=new G.Ks;G.eE.prototype.Sw=function(Z,S,b,Y){if(!Y.ou||!this._A)return;
var P=this.Ij(Z,b,!0);Z.M.LG=T.z.X6(P);Z.nd=!0;G.$W.i8(Y.x+10,Y.y-10,P,Z,S)};G.eE.prototype.LP=function(Z,S,b,Y){Z.M.LG=null;
Z.M.ag=[];Z.nd=!0;this.finish(Z,S,b,Y)};G.eE.prototype.getSelection=function(Z,S,b,Y){if(this.WD.Oh(this.GM)||!this._A)return null;
var P=this.Ij(Z,b,!0);if(P.h3())return null;return G.Ks.qi("Rctn",P)};G.xu=function(){G.Ks.call(this,[10,4],G.amI,"tools/eselect");
this.Hi="crosshair"};G.xu.prototype=new G.Ks;G.xu.prototype.Sw=function(Z,S,b,Y){if(!Y.ou||!this._A)return;
var P=this.Ij(Z,b);Z.M.LG=G.xu.Zk(P);Z.nd=!0;G.$W.i8(Y.x+10,Y.y-10,P,Z,S)};G.xu.prototype.LP=function(Z,S,b,Y){Z.M.LG=null;
Z.M.ag=[];Z.nd=!0;this.finish(Z,S,b,Y)};G.xu.prototype.getSelection=function(Z,S,b,Y){if(this.WD.Oh(this.GM)||!this._A)return null;
var P=this.Ij(Z,b);if(!P.U5(new b4(0,0,Z.c,Z.v)))return null;return G.Ks.qi("Elps",P)};G.xu.Zk=function(Z){var S=Z.x,b=Z.y,Y=Z.x+Z.c,P=Z.y+Z.v,w=(S+Y)/2,f=(b+P)/2,h=(S-Y)/2,Q=(b-P)/2,e=.5522848,l={H:[w,f-Q],K:["M","C","C","C","C"]};
l.H.push(w+e*h,f-Q,w+h,f-e*Q,w+h,f);l.H.push(w+h,f+e*Q,w+e*h,f+Q,w,f+Q);l.H.push(w-e*h,f+Q,w-h,f+e*Q,w-h,f);
l.H.push(w-h,f-e*Q,w-e*h,f-Q,w,f-Q);return l};G.B1=function(){G.$W.call(this,[10,5],G.ow,"tools/eyedropper");
this.xw=!1;this.Uo=1};G.B1.prototype=new G.$W;G.B1.prototype.wF=function(Z){return Z.ou};G.B1.prototype.Pf=function(Z,S,b,Y,P){if(Z.e=="pickhere")this.eF(b,S,P,Y,Z.a3b)};
G.B1.prototype.Os=function(Z,S,b,Y,P){this.xw=!0;this.eF(Z,S,b,Y,P)};G.B1.prototype.Zq=function(Z,S,b,Y,P){if(this.xw)this.eF(Z,S,b,Y,P)};
G.B1.prototype.Xa=function(Z,S,b,Y,P){this.xw=!1};G.B1.prototype.eF=function(Z,S,b,Y,P){var w=G.B1.mK(Z,P,this.Uo),f=new d(s.E.P);
f.data={e:s.U.h4,Sz:bp.tN,Ox:0,G:w};S.m(f)};G.B1.mK=function(Z,S,b){var Y=Z.a._2(S.x,S.y),P=Math.floor(Y.x),w=Math.floor(Y.y),f=(b-1)/2,h=Math.max(0,P-f),Q=Math.max(0,w-f),e=Math.min(Z.c,P+f+1),l=Math.min(Z.v,w+f+1),O=(e-h)*(l-Q),m=Z.Zd(),V=0,q=0,K=0;
for(var P=h;P<e;P++)for(var w=Q;w<l;w++){var D=4*(w*Z.c+P);V+=m[D];q+=m[D+1];K+=m[D+2]}V=Math.round(V/O);
q=Math.round(q/O);K=Math.round(K/O);return V<<16|q<<8|K};G.B1.prototype.aa=function(Z){this.Uo=Z.Uo};
G.Oa=function(){G.$W.call(this,[10,6],G.aor,"tools/gradient");this.xN={W:JSON.parse(a4.c5.Wh).v,WF:"Lnr",No:!1,acq:!1,aa6:"norm",y6:1};
this.Tz=!1;this.Gf=null};G.Oa.prototype=new G.$W;G.Oa.prototype.enable=function(Z,S,b,Y){var P=new d(s.E.P,!0);
P.data={e:s.U.il,tf:"default"};S.m(P)};G.Oa.prototype.aa=function(Z){this.xN=Z.Sz};G.Oa.prototype.Os=function(Z,S,b,Y,P){if(!Z.bY())return;
this.Gf=Z.a._2(P.x,P.y);this.Gf=G.sR.yK(Z,this.Gf,b);this.Tz=!0};G.Oa.prototype.Zq=function(Z,S,b,Y,P){if(!this.Tz)return;
var w=Z.a._2(P.x,P.y);w=G.sR.yK(Z,w,b);if(Y.q(U.Lo))w=G.Oa.m1(this.Gf,w);Z.M.LG={H:[this.Gf.x,this.Gf.y,w.x,w.y],K:["M","L"]};
Z.M.k_=[this.Gf.x,this.Gf.y,w.x,w.y];Z.nd=!0};G.Oa.prototype.Xa=function(Z,S,b,Y,P){if(!this.Tz)return;
var w=Z.t[Z.C[0]],f=Z.a._2(P.x,P.y);f=G.sR.yK(Z,f,b);if(Y.q(U.Lo))f=G.Oa.m1(this.Gf,f);var h=f.jZ(this.Gf),Q=ar.Db(this.Gf,f,.5),e=Math.atan2(h.y,h.x),l=ar.VA(this.Gf,f),O=Math.sin(e),m=Math.cos(e);
if(l>2){var V;if(Z.N)V=Z.N.rect;else V=new b4(0,0,Z.c,Z.v);var q=T.f(V.X()*4),K=this.xN,z=K.WF;if(z!="Lnr"){l*=2;
Q=this.Gf}T.W.Wz(K.W,q,V,[m*1/l,O*1/l,-O*1/l,m*1/l],Q.x,Q.y,K.No,a4.W.types.indexOf(z),b.ui,b.VY,null,K.acq);
var t=Math.round(K.y6*256),H=q.length;if(t!=256)for(var D=0;D<H;D+=4)q[D+3]=q[D+3]*t>>>8;var i=new d(s.E.s);
i.T=G.pK;i.data={e:"fillBMP",G4:q,yf:K.aa6,ep:this.name};S.m(i)}Z.M.LG=null;Z.M.k_=[];Z.nd=!0;this.Tz=!1};
G.Oa.m1=function(Z,S){if(Z.Oh(S))return Z;var b=S.x-Z.x,Y=S.y-Z.y,P=Math.abs(b),w=Math.abs(Y);if(P>w)w=P/2>w?0:P;
if(w>P)P=w/2>P?0:w;P=b>0?P:-P;w=Y>0?w:-w;var f=Math.sqrt(b*b+Y*Y)/Math.sqrt(P*P+w*w);return new ar(Z.x+P*f,Z.y+w*f)};
G.Oa.Oy=function(Z,S,b,Y,P,w,f){if(f==null)f=s.R("canvas","");var h=f.getContext("2d");f.width=S;f.height=b;
var Q=new b4(0,0,S,b),e=T.f(S*b*4);T.bO(e,S,b,4);var l=Math.sin(Y),O=Math.cos(Y),m=T.f(S*b*4);T.W.Wz(Z,m,Q,[O*1/S,l*1/S,-l*1/b,O*1/b],S/2,b/2,!1,0,P,w);
T.p.xJ("norm",m,Q,e,Q,Q,1);var V=h.getImageData(0,0,S,b);T.Bv(e,V.data);h.putImageData(V,0,0);return f.toDataURL()};
G.Oa.and=function(Z,S,b){var Y=JSON.parse(JSON.stringify(Z));for(var D=0;D<Y.Clrs.v.length;D++){var P=Y.Clrs.v[D].v,w=P.Type.v.Clry;
if(w=="UsrS")continue;var f=w=="FrgC"?S:b;P.Type.v.Clry="UsrS";P.Clr={t:"Objc",v:T.W.RQ({h:f>>16&255,l:f>>8&255,O:f&255})}}return Y};
G.W2=function(){G.$W.call(this,[10,7],G.KM,"tools/hand");this.QU=new ar(0,0);this.Eu=null};G.W2.prototype=new G.$W;
G.W2.prototype.Pf=function(Z,S,b,Y,P){var w=Z.e;if(w=="setcls"){b.a.o=Z.o;b.nd=!0;b.Pd=!0}if(w=="scroll"&&!Y.q(U.G_)){if(Y.q(U.cD))G.W2.MZ(b,b.a.n.x-Z.FV.y,b.a.n.y-Z.FV.x);
else G.W2.MZ(b,b.a.n.x-Z.FV.x,b.a.n.y-Z.FV.y)}};G.W2.prototype.enable=function(Z,S,b,Y){this.Eu=null;
var P=new d(s.E.P,!0);P.data={e:s.U.il,tf:"grab"};S.m(P)};G.W2.prototype.Os=function(Z,S,b,Y,P){this.Eu=Z.a.n.clone();
this.QU.Ha(P.x,P.y)};G.W2.prototype.Zq=function(Z,S,b,Y,P){if(!P.ou)return;if(this.Eu==null)this.Os(Z,S,b,Y,P);
G.W2.MZ(Z,this.Eu.x+(P.x-this.QU.x),this.Eu.y+(P.y-this.QU.y))};G.W2.prototype.Xa=function(Z,S,b,Y,P){this.Eu=null};
G.W2.MZ=function(Z,S,b){var Y=Z.a.S;if(Z.c*Y<Z.a.a_.c&&Z.v*Y<Z.a.a_.v)Z.a.n.Ha(0,0);else{Z.a.n.x=S;Z.a.n.y=b}Z.Pd=!0};
G.tv=function(){G.$W.call(this,[10,47],G.aj7,"tools/rview");this.QU=new ar(0,0);this.LK=null;this.agR=null};
G.tv.prototype=new G.$W;G.tv.prototype.enable=function(Z,S,b,Y){this.Eu=null;var P=new d(s.E.P,!0);P.data={e:s.U.il,tf:"grab"};
S.m(P);if(Z)this.O8(Z,S)};G.tv.prototype.disable=function(Z,S,b,Y,P){if(Z)this.O8(Z,S)};G.tv.prototype.Vy=function(Z,S,b,Y){if(Z)this.O8(Z,S)};
G.tv.prototype.Os=function(Z,S,b,Y,P){this.QU.Ha(P.x,P.y);var w=Z.a;this.LK=w._2(w.a_.c/2,w.a_.v/2);
this.agR=w.Gz()};G.tv.prototype.Zq=function(Z,S,b,Y,P){if(!P.ou)return;var w=Z.a,f=this.LK,h=this.QU,Q=new ar(w.a_.c/2,w.a_.v/2),e=Math.atan2(P.y-Q.y,P.x-Q.x),l=Math.atan2(h.y-Q.y,h.x-Q.x);
this.FA(Z,S,this.agR.clone(),f,e-l)};G.tv.prototype.aa=function(Z,S,b,Y){this.FA(b,S,null,null,Z.oc-b.a.W0);
b.a.W0=Z.oc};G.tv.prototype.FA=function(Z,S,b,Y,P){var w=Z.a;if(b==null)b=w.Gz();if(Y==null)Y=w._2(w.a_.c/2,w.a_.v/2);
b.translate(-Y.x,-Y.y);b.rotate(P);b.translate(Y.x,Y.y);w.BL(b);if(Z.c*w.S<w.a_.c&&Z.v*w.S<w.a_.v)w.n.Ha(0,0);
Z.nd=!0;this.O8(Z,S)};G.tv.prototype.O8=function(Z,S){var b=new d(s.E.P,!0);b.data={e:s.U.jO,T:this.id,oc:Z.a.W0};
S.m(b)};G.eU=function(){G.Pk.call(this,[10,25],G.yw,"tools/hbrush")};G.eU.prototype=new G.Pk("");G.eU.prototype.Xa=function(Z,S,b,Y,P){if(this.yg==null)return;
this.VH(Z,"heal",this.yg.f9(),this.yg.Ij(),this.yg.tj());this.D(Z,this.yg.tj());G.px.prototype.Xa.call(this,Z,S,b,Y,P);
if(!this.xN.algnd)this.n=null};G.Ua=function(){G.$W.call(this,[10,8],G.le,"tools/htype");this.Mg=[];
this.hp=null;this.Oz=null;this.caller=null;this.CX=1;this.yI=null;this.aoy=0;this.Kh=0;this.ai_=null;
this.mc=null;this.OE=null;this.IA=null;this.i0=null;this.xD=null;this.a8a=null;this.Z0=null;this.me=null;
this.cm=null;this.a6I=null;this.lr=!1;this.CP=!1;this.eb=!1;this.mi=null;this.B5=null;this.a4d=null;
this.e1=!1;this.Ka=!1;this.gy=-1;this.TW=-1;this.Sh=document.createElement("textarea");this.Sh.setAttribute("style","font-family:Arial; font-size:14px; z-index:-1; "+" position:absolute; top:0px; left:0px; pointer-events: none; opacity:0; width:"+(window.innerWidth-10)+"px; height:150px;");
this.Sh.addEventListener("input",this.x5.bind(this),!1);this.Sh.addEventListener("keydown",this.a6d.bind(this),!1)};
G.Ua.prototype=new G.$W;G.Ua.prototype.wF=function(Z){return Z.ou};G.Ua.prototype.s1=function(Z,S,b,Y){if(this.OE!=null)return;
this.caller=S;this.hp=Z;var P=this.hq(Z);if(P.length!=0){var w=null,f=[],h=[];for(var D=0;D<P.length;
D++){var Q=Z.t[P[D]],e=Q.add.TySh,l=0,O=eO.IU(e.HK).length-2,m=eO.SZ(e.HK,l,O);eO.b2(m,G.V.I2(e.A));
if(m.xp.Font!=null)m.xp.Font=m.E2[m.xp.Font].Name;w=m.E2;f.push(m.xp);h.push(m.jm)}var m={E2:w,xp:eO.Co(f),jm:eO.Co(h)};
if(m.xp.Font!=null)eO.FK(m,m.xp.Font);this.wD(S,m,e)}};G.Ua.prototype.hq=function(Z){var S=[];for(var D=0;
D<Z.C.length;D++)if(Z.t[Z.C[D]]&&Z.t[Z.C[D]].add.TySh)S.push(Z.C[D]);return S};G.Ua.prototype.Pf=function(Z,S,b,Y,P){if(Z.e=="insertText"&&this.OE){var w=this.Sh,f=w.value,h=w.selectionStart,Q=w.selectionEnd;
w.value=f.slice(0,h)+Z.G+f.slice(Q);w.selectionStart=w.selectionEnd=h+Z.G.length;this.x5(null);w.focus()}if(Z.e=="updateStyles"){if(this.OE==null){var e=this.hq(b),l=!1;
if(e.length!=0){this._X(b,S,P,e);for(var D=0;D<e.length;D++){var O=b.t[e[D]],m=O.add.TySh;eO.vF(m,this.CX);
this.OE=O;var V=eO.IU(m.HK);this.gy=0;this.TW=V.length-1;eO.Yg(m.HK,this.gy,this.TW,this.LE(P,m));var q=this.Y2(b,P);
if(q==!1)l=!0}if(l){this.e1=!0;return}this.iM(b,S)}return}this.nH(P)}if(Z.e.startsWith("warp")){var K=this.Ka;
if(Z.e=="warp"||Z.e=="warpCancel"){if(Z.e=="warp")this.OE.add.TySh.Km=Z.$e;else this.OE.add.TySh.Km=this.a8a;
var b=this.hp;this.Y2(b,P);if(!K)this.B$(b)}if(Z.e!="warp")this.Sh.focus();if((Z.e=="warpConfirm"||Z.e=="warpCancel")&&K){this.Ka=!1;
if(Z.e=="warpConfirm")this.iM(b,S);else this.Jj(b,S)}}if(Z.e=="editCurr"){if(P.pH!=G.le){this.yI=P.pH;
var z=new d(s.E.P,!0);z.data={e:s.U.cB,T:G.le};S.m(z)}if(this.OE!=null)this.disable(b,S,P,Y);this.hp=b;
this.Oz=P;this.caller=S;this._X(b,S,P,[Z.xj]);var V=eO.IU(this.OE.add.TySh.HK);this.gy=0;this.TW=V.length-1;
this.B$(b);this.Kc();this.Sh.focus()}if(Z.e=="switchPntPrgr"){if(this.OE)return;var O=b.t[b.C[0]],m=O.add.TySh,t=m.A.I2(),H=JSON.parse(JSON.stringify(m.HK)),i=eO.O$(H),y=i==1?eO.kn(H):[0,0,Math.round(O.rect.c*1.05/t),Math.round(O.rect.v*1.25/t)],j=eO.SZ(H,0,0),J=j.E2[j.xp.Font].Name,A=P.S9.NI(J),a=[0,y[2],y[2]/2][j.jm.Justification%3],I=A?io.El(A,J,j.xp):j.xp.FontSize*.8;
eO.es(H,1-i);if(i==0){a=-a;I=-I;eO.oZ(H,[0,0,y[2],y[3]])}var E=new fR(1,0,0,1,a,I);E.concat(m.A);this.Pf({Rq:b.C[0],e:"newED",MH:H,A:E,a18:[16,3,i==1?0:1]},S,b,Y,P)}if(Z.e=="newED"){var O=b.t[Z.Rq],m=O.add.TySh,c=this.UZ(b,[Z.Rq]);
m.HK=Z.MH;if(Z.A)m.A=Z.A;var u=new io(m.HK,P.S9),n=gU.PG(u,m);O.rect=n._;O.buffer=n.j$;O.D();b.D();var o=new iA(Z.a18?Z.a18:this.name,this);
o.data={ya:c,ZA:this.UZ(b,[Z.Rq])};b.kz(o)}if(Z.e=="fromAction"){var x=Z.K4.V1.Usng.v,g=x.TxtC.v,v=[];
for(var D=0;D<2;D++){var R=g[D==0?"Hrzn":"Vrtc"].v,X=R.val;if(R.type=="#Prc")X=(D==0?b.c:b.v)*(X/100);
v[D]=X}this.Eh(b,S,P,Y,b.a.pg(v[0],v[1]));var O=b.t[b.C[0]],m=O.add.TySh,B=m.HK,f=eO.IU(B);eO.hd(B,0,f.length-1);
eO.kk(B,0,x.Txt.v.replace(/\r/g,"\n"));f=eO.IU(B);for(var i=0;i<2;i++){var M=x[i==0?"Txtt":"paragraphStyleRange"].v;
for(var D=0;D<M.length;D++){var N=M[D].v,h=N.From.v,Q=Math.min(N.T.v-1,f.length-1);N=N[i==0?"TxtS":"paragraphStyle"].v;
var $=eO.SZ(B,h,Q),eQ=i==0?$.xp:$.jm;for(var hN in N){var bI=N[hN].v;if(hN=="Sz")eQ.FontSize=Math.round(bI.val);
else if(hN=="fontPostScriptName")eO.FK($,bI);else if(hN=="Algn")eQ.Justification={Cntr:2}[bI.Alg];else if(hN=="Clr")eQ.FillColor.Values=[1,bI.Rd.v/255,bI.Grn.v/255,bI.Bl.v/255]}eO.Yg(B,h,Q,$)}}var u=new io(m.HK,P.S9),n=gU.PG(u,m);
O.rect=n._;O.buffer=n.j$;O.D();b.D();this.iM(b,S)}};G.Ua.prototype.nH=function(Z){var S=Math.min(this.gy,this.TW),b=Math.max(this.gy,this.TW),Y=this.OE.add.TySh;
eO.vF(Y,this.CX);eO.Yg(Y.HK,S,b-1,this.LE(Z,Y));var P=this.hp,w=this.Y2(P,Z);if(w)this.B$(P);if(document.activeElement.tagName.toLowerCase()!="input")this.Sh.focus()};
G.Ua.prototype.jo=function(Z){return this.Mg.indexOf(Z)!=-1};G.Ua.prototype.enable=function(Z,S,b,Y){var P=this.Sh;
if(!s.mO(P))S.j.appendChild(P);this.Z0="default";this.uz(S)};G.Ua.prototype.K7=function(){return this.OE!=null};
G.Ua.$r=function(Z,S){for(var D=Z.t.length-1;D>=0;D--){var b=Z.t[D];if(b.add.TySh&&b.rect.DS(S)&&Z.ub(D)){var Y=b.vv(2)||b.vv(31);
return Y?-2:D}}return-1};G.Ua.prototype.Os=function(Z,S,b,Y,P){this.hp=Z;this.Oz=b;this.caller=S;var w=Z.a._2(P.x,P.y),f=this.OE==null;
if(f){var h=G.Ua.$r(Z,w);if(h==-2){alert(aV.get([6,57,0]));return}if(h>=0){if(!gU.Wu(Z.t[h].add.TySh,b.S9)){alert("Fonts not loaded yet");
return}this._X(Z,S,b,[h])}else{this.eb=!0;this.mi=P;return}}var Q=f?-1:eO.O$(this.OE.add.TySh.HK),e=this.cm?this.cm:this.me;
if(e&&e.Os(Z,b,Y,w)&&T.$e.iI(this.OE.add.TySh.Km)||!f&&T.z.$B(w,this.OE.rect)>20/Z.a.S&&(Q==0||Q==1)){this.lr=!0;
this.B5=w;this.a4d=this.OE.add.TySh.A.clone();if(this.gy==-1&&this.TW==-1)this.gy=this.TW=this.Ib(w)}else{if(this.i0==null){alert("Fonts not loaded yet");
return}this.CP=!0;this.gy=this.TW=this.Ib(w);var l=Date.now();if(l-this.aoy>300)this.Kh=0;this.Kh++;
this.aoy=l;if(this.Kh==2)this.aeH();if(this.Kh==3)this.a5i();if(this.Kh>1){this.CP=!1}}this.Kc();this.B$(Z)};
G.Ua.prototype._X=function(Z,S,b,Y){var P=Z.t[Y[0]];this.OE=P;this.am(S,s.E.P,{e:s.U.jO,T:this.id,Pp:"showactive"});
this.IA=Y;Z.C=Y.slice(0);Z.NW();Z.ug=!0;this.xD=this.UZ(Z,Y);this.Lm(P.add.TySh);this.Y2(Z,b)};G.Ua.prototype.Lm=function(Z){if(eO.O$(Z.HK)!=1)return;
var S=eO.kn(Z.HK);S=new b4(0,0,S[2]-S[0],S[3]-S[1]);var b=[S.x,S.y,S.x+S.c,S.y,S.x+S.c,S.y+S.v,S.x,S.y+S.v];
T.z.A(b,Z.A,b);this.me=new ad(b,!1,!1,!1,!0)};G.Ua.prototype.aeH=function(){var Z=eO.IU(this.OE.add.TySh.HK);
this.gy=this.BQ(Z,this.gy);this.TW=this.Xz(Z,this.gy)};G.Ua.prototype.BQ=function(Z,S){var b=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",Y=[];
for(var D=0;D<b.length;D++)Y.push(b.charAt(D));var P=Y.indexOf(Z[S])==-1?!0:!1;for(var D=S-1;D>=0;D--)if(Y.indexOf(Z.charAt(D))!=-1==P)return D+1;
return 0};G.Ua.prototype.Xz=function(Z,S){var b=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",Y=[];for(var D=0;
D<b.length;D++)Y.push(b.charAt(D));var P=Y.indexOf(Z[S])==-1?!0:!1;for(var D=S+1;D<Z.length;D++)if(Y.indexOf(Z.charAt(D))!=-1==P)return D;
return Z.length-1};G.Ua.prototype.a5i=function(){var Z=this.i0.ak$(this.gy);this.gy=Z[0];this.TW=Z[1]};
G.Ua.prototype.uz=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.il,tf:this.Z0};Z.m(S)};G.Ua.prototype.Zq=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y),f=this.OE;
if(!P.ou){var h="default",Q=this.me,e=this.cm?this.cm:Q;if(e&&T.$e.iI(f.add.TySh.Km)){var l=e.jN(w,Z.a.S);
if(l)h=l;else if(e==Q&&Q.hR(w))h="text"}else if(f&&T.z.$B(w,f.rect)>20/Z.a.S)h="move";else if(G.Ua.$r(Z,w)>=0)h="text";
if(h!=this.Z0){this.Z0=h;this.uz(S)}}var O=this.mi;if(this.eb&&Math.min(P.x-O.x,P.y-O.y)>4/Z.a.S){this.eb=!1;
this.Eh(Z,S,b,Y,P);f=this.OE;this.lr=!0;this.me=new ad(null,!1,!1,!1,!0);var m=Z.a._2(this.mi.x,this.mi.y);
m.x=Math.round(m.x);m.y=Math.round(m.y);this.me.Os(Z,b,Y,m)}if(this.lr){var V=f.add.TySh;if(this.cm){this.cm.Zq(Z,b,Y,w);
var q=T.J.eS(T.J.Sy(this.cm.WM(),this.a6I));V.A=q;this.Y2(Z,b);eO.LY(V)}else if(this.me){this.me.Zq(Z,b,Y,w);
var K=V.A.clone(),z=Math.atan2(K.O,K.w);K.rotate(z);var q=T.J.eS(T.J.Sy(this.me.WM())),t=Math.atan2(q.O,q.w);
q.rotate(t);if(!isNaN(q.w)&&q.w*q.KU-q.O*q.tE!=0){var H=new b4(0,0,q.w/K.w,q.KU/K.KU),i=Math.round(H.c),y=Math.round(H.v),j=V.HK.Curve;
if(j){var J=eO.kn(V.HK),A=new fR(i/J[2],0,0,y/J[3],0,0);T.z.A(j.Points,A,j.Points);eO.LY(V)}eO.oZ(V.HK,[0,0,i,y]);
V.A=T.J.eS(T.J.Sy(this.me.WM(),H));this.Y2(Z,b);eO.LY(V)}}else{var a=w.x-this.B5.x,I=w.y-this.B5.y;V.A=this.a4d.clone();
var E=new ar(V.A.RN+a,V.A.Sv+I);E=G.sR.yK(Z,E,b);V.A.RN=E.x;V.A.Sv=E.y;this.Y2(Z,b)}}if(this.CP)this.TW=this.Ib(w);
if(this.lr||this.CP)this.B$(Z)};G.Ua.prototype.Eh=function(Z,S,b,Y,P){var w=Z.zl(),f=w[0],h=w[1],Q=Z.Dl();
Q.add.lnsr="rend";var e=Z.t.slice(0);Q.wc("Text layer "+e.length);this.OE=Q;var l=Z.C.length==0?Z.t.length-1:Z.C[Z.C.length-1],O=l+1;
if(e[l].add.lsct==fr.k8)O--;this.xD={i3:e.slice(0),O1:Z.C.slice(0)};e.splice(O,0,Q);Z.C=[O];this.gy=this.TW=0;
Z.vM(e);this.xD.gR=e.slice(0);this.xD.iH=Z.C.slice(0);this.am(S,s.E.P,{e:s.U.jO,T:this.id,Pp:"showactive"});
var m=Z.a._2(P.x,P.y);Q.add.TySh=eO.nR(m.x,m.y,b.pA);var V=Q.add.TySh,q=V.HK;eO.vF(V,this.CX);if(P.ou)eO.es(q,1);
else{eO.es(q,0);var K=f[h.pop()],z=K?K.add.vmsk:null;if(z){z=z.clone();var t=z.b,i,y;for(var D=0;D<t.length;
D++)if(t[D].qU!=null)t[D].qU=0;var H=4*s.Z()/Z.a.S;i=T.Y.eI(z.b,m,!0,H);if(i.SU==-1)i=T.Y.eI(z.b,m);
if(i.SU!=-1){eO.es(q,1);var j=T.Y.dq(t,i.SU),J=T.Y.HV(t,i.SU)-1;t=z.b=t.slice(0,2).concat(t.slice(j,j+J+1));
z.C=[];V.add={vmsk:z,vogk:F.AU(t)};q.Curve={};eO.lj(V);if(i.Rs!=null){var A=io.Nq(q.Curve);T.z.A(A[0],V.A,A[0]);
var a=T.z.zw(A[0],m.x,m.y),I=b.pA.jm.Justification;if(I==2||I==5){var E=(A[2][a]+A[3]*.5)%A[3];a=io.st(E,A[2])}var c=A[1][a];
c=c%J;z.mu=[c,c];eO.lj(V)}else this.Lm(V)}}}return Q};G.Ua.prototype.Xa=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y),f=this.eb;
if(this.eb){this.eb=!1;this.Eh(Z,S,b,Y,P);this.CP=!0}if(this.lr||this.CP){this.B$(Z);this.Kc();if(f)this.nH(b)}if(this.lr&&this.me)this.me.Xa(Z,b,Y,w);
this.lr=this.CP=!1;this.tX(Z,b,Y);this.Sh.focus()};G.Ua.prototype.Kc=function(){var Z=this.OE.add.TySh,S=Math.min(this.gy,this.TW),b=Math.max(this.gy,this.TW),Y,P;
if(S==b){var w=eO.IU(Z.HK);if(S==0||w.charAt(S-1)=="\n")Y=P=S;else Y=P=S-1}else{Y=S;P=b-1}var f=eO.SZ(Z.HK,Y,P);
eO.b2(f,G.V.I2(Z.A));this.wD(this.caller,f,Z)};G.Ua.prototype.wD=function(Z,S,b){this.am(Z,s.E.P,{e:s.U.h4,Sz:bp.BK,pA:S});
var Y=this.CX=eO.PM(b);this.am(this.caller,s.E.P,{e:s.U.jO,T:this.id,Pp:"changeAA",u$:Y})};G.Ua.prototype.XF=function(Z,S,b,Y){if(Y.q(U.eZ))this.Jj(Z,S);
var P=this.OE;if(P)if(this.cm==null&&Y.q(U.cD)){var w=P.add.TySh,f=eO.O$(w.HK),h;if(f==1){h=eO.kn(w.HK);
h=new b4(0,0,h[2]-h[0],h[3]-h[1])}else h=this.i0.Lu();var Q=[h.x,h.y,h.x+h.c,h.y,h.x+h.c,h.y+h.v,h.x,h.y+h.v];
T.z.A(Q,w.A,Q);this.cm=new ad(Q,!0,!0,!1,!1);this.a6I=h;this.B$(this.hp)}else this.tX(Z,b,Y)};G.Ua.prototype.tX=function(Z,S,b){var Y=this.OE;
if(Y&&!this.lr&&this.cm!=null&&!b.q(U.cD)){this.cm.Xa(Z,S,b,null);this.cm=null;this.Lm(Y.add.TySh);this.B$(this.hp)}};
G.Ua.prototype.disable=function(Z,S,b,Y){var P=this.OE;this.iM(Z,S)};G.Ua.prototype.aa=function(Z,S,b,Y,P){if(this.Ka)return;
if(Z.Pp=="commit")this.iM(b,S);if(Z.Pp=="cancel")this.Jj(b,S);if(Z.Pp=="changeAA"){this.CX=Z.u$;if(b!=null)this.Pf({e:"updateStyles"},S,b,Y,P)}if(Z.Pp=="showwarp"){if(b==null)return;
if(this.OE==null){var w=b.t[b.C[0]],f=w.add.TySh;if(f==null)return;this._X(b,S,P,[b.C[0]]);this.Sh.focus();
this.Ka=!0}this.a8a=this.OE.add.TySh.Km;var h=new d(s.E.P,!0);h.data={e:s.U.Fy,g9:"textwarp"};S.m(h)}};
G.Ua.prototype.na=function(Z,S){if(S!=bp.VE)return;if(this.e1){this.e1=!1;var b=this.hp,Y=this.IA;for(var D=0;
D<Y.length;D++){this.OE=b.t[Y[D]];this.Y2(b,Z)}this.iM(b,this.caller);return}if(this.OE)this.nH(Z)};
G.Ua.prototype.LE=function(Z,S){var b=JSON.parse(JSON.stringify(Z.pA));eO.b2(b,1/G.V.I2(S.A));return b};
G.Ua.prototype.Ed=function(Z,S){if(Z.ya!=null)this._t(S,Z.ZA);else this.Ri(S,Z.gR,Z.iH)};G.Ua.prototype.zv=function(Z,S){if(Z.ya!=null)this._t(S,Z.ya);
else this.Ri(S,Z.i3,Z.O1)};G.Ua.prototype._t=function(Z,S){for(var D=0;D<S.length;D++){var b=S[D],Y=b.Rq,P=Z.t[Y];
P.buffer=b.Le;P.rect=b._.clone();P.D();var w=P.add.TySh;w.Km=b.$e;w.az=b.az.clone();w.A=b.A.clone();
w.HK=JSON.parse(JSON.stringify(b.HK));P.EU()}Z.D()};G.Ua.prototype.UZ=function(Z,S){var b=[];for(var D=0;
D<S.length;D++){var Y=S[D],P=Z.t[Y],w=P.add.TySh;b.push({Rq:Y,A:w.A.clone(),$e:JSON.parse(JSON.stringify(w.Km)),az:w.az.clone(),HK:JSON.parse(JSON.stringify(w.HK)),Le:P.buffer.slice(0),_:P.rect.clone()})}return b};
G.Ua.prototype.Ri=function(Z,S,b){Z.C=b;Z.vM(S);Z.D();Z.Vc=!0};G.Ua.prototype.Y2=function(Z,S,b){if(b==null)b=!1;
var Y=this.OE.add.TySh;if(!gU.Wu(Y,S.S9))return!1;this.i0=new io(Y.HK,S.S9);if(!b){var P=eO.IU(Y.HK);
this.Sh.value=P.slice(0,P.length-1)}var w=gU.PG(this.i0,Y);if(T.$e.iI(Y.Km))Y.az=new b4;else{if(eO.O$(Y.HK)==1){var f=eO.kn(Y.HK),C=w.az.y;
Y.az=new b4(0,C,f[2]-f[0],f[3]-f[1]-C)}else{Y.az=w.az}}var h=this.OE.rect;this.OE.rect=w._;this.OE.buffer=w.j$;
this.OE.D();Z.Wl();Z.D(Z.root.ri(w._.VK(h),Z,Z.t.indexOf(this.OE)));return!0};G.Ua.prototype.x5=function(Z){if(this.OE==null||this.Ka)return;
var S=this.Sh.selectionStart,b=this.OE.add.TySh,Y=eO.IU(b.HK),P=this.Sh.value+"\n",w=Math.min(this.gy,this.TW),f=Math.max(this.gy,this.TW),O=!1;
this.gy=Math.min(S,w);if(P.length-S<Y.length-this.TW)this.TW=Y.length-P.length+S;if(Y!=P){while(this.gy>0&&Y.charAt(this.gy-1)!=P.charAt(this.gy-1))this.gy--}var h=Y.substring(0,this.gy),Q=Y.substring(this.TW,Y.length),e=P.substring(this.gy,P.length-Q.length);
eO.hd(b.HK,this.gy,this.TW);eO.kk(b.HK,this.gy,e);var l=this.LE(this.Oz,b),m=-1,V=Array.from(e);for(var D=0;
D<V.length;D++)m=Math.max(m,V[D].codePointAt(0));if(m!=-1&&m>128&&l.xp.Font!=null){var q=l.E2[l.xp.Font].Name,K=this.Oz.S9.OO(m,q,l.E2);
if(q!=K){eO.FK(l,K);O=!0}}if(this.mc!=null&&e==this.mc){var z=JSON.parse(this.ai_);l.xp=z.xp;l.E2=z.E2;
O=!0}eO.Yg(b.HK,this.gy,this.gy+e.length-1,l);this.gy=this.TW=h.length+e.length;var t=this.hp,H=this.Y2(t,this.Oz,!0);
if(H)this.B$(t,!0);if(O)this.Kc()};G.Ua.prototype.a6d=function(Z){if(this.OE==null||this.Ka)return;if(this.OE==null)return;
var S=U,b=0,Y=0,t=!1;if(S.iQ(Z.code,S.RD))b=1;if(S.iQ(Z.code,S.XU))b=-1;if(S.iQ(Z.code,S.ne))Y=-1;if(S.iQ(Z.code,S.BM))Y=1;
var P=Z.ctrlKey||Z.metaKey,w=S.iQ(Z.code,U.a4M),f=S.iQ(Z.code,U.abo);if(S.iQ(Z.code,U.n5)&&P){this.iM(this.hp,this.caller);
return}if(S.iQ(Z.code,U.Ni)){Z.preventDefault();var h=this.Sh,Q=h.value,e=h.selectionStart,l=h.selectionEnd;
h.value=Q.substring(0,e)+"\t"+Q.substring(l);h.selectionStart=h.selectionEnd=e+1;this.x5(null);return}if((S.iQ(Z.code,S.C2)||S.iQ(Z.code,S.uG))&&P){var O=this.gy,m=this.TW;
if(O>m){var V=O;O=m;m=V}var q=this.OE.add.TySh,K=eO.IU(q.HK);if(O!=m){this.mc=K.slice(O,m);this.ai_=JSON.stringify(this.Oz.pA)}}var z=eO.IU(this.OE.add.TySh.HK);
if(b!=0||Y!=0||w||f){Z.preventDefault();var H=this.gy;if(b!=0){if(P&&b==-1)H=this.BQ(z,this.gy-1);else if(P&&b==1)H=this.Xz(z,this.gy);
else{var h=this.Sh,Q=h.value;H=this.gy+b;if(H!=0&&Q.codePointAt(H-1)>65535)H+=b}}else if(Y!=0){var i=this.i0.aO(this.gy);
if(Y==-1&&i.M9==0)H=0;else if(Y==1&&i.M9==this.i0.amx()-1)H=99999999999;else H=this.i0.eH(new ar(i._.x+i._.c/2,0),i.M9+Y)}else if(w){var y=this.gy-1;
while(y>0&&z.charCodeAt(y)!=10)y--;H=y==0?0:y+1}else if(f){var y=this.gy;while(y<z.length-1&&z.charCodeAt(y)!=10)y++;
H=y}H=Math.max(0,Math.min(z.length-1,H));if(Z.shiftKey)this.gy=H;else this.gy=this.TW=H;t=!0}if(S.iQ(Z.code,U.U)&&P){this.gy=0;
this.TW=z.length-1;t=!0}if(t){this.Kc();this.B$(this.hp)}};G.Ua.a0y=function(Z,S){var b=Z.length;if(b!=S.length)return!1;
for(var D=0;D<b;D++)if(Z[D].Rq!=S[D].Rq)return!1;return!0};G.Ua.prototype.iM=function(Z,S){if(this.OE==null)return;
this.OE.EU();var b=this.xD;if(b instanceof Array){var Y=this.UZ(Z,this.IA),P=Z.Yl();if(P!=null&&P.T==this&&P.data.ya&&G.Ua.a0y(P.data.ya,b))P.data.ZA=Y;
else{var w=new iA(this.name,this);w.data={ya:b,ZA:Y};Z.kz(w)}}else{var w=new iA(this.name,this);w.data={i3:b.i3,gR:b.gR,O1:b.O1,iH:b.iH};
Z.kz(w)}this.escape(Z,S)};G.Ua.prototype.Jj=function(Z,S){if(this.OE==null)return;if(this.xD instanceof Array){this._t(Z,this.xD);
if(this.OE)eO.LY(this.OE.add.TySh)}else{Z.C=this.xD.O1;Z.vM(this.xD.i3)}Z.D();this.escape(Z,S)};G.Ua.prototype.escape=function(Z,S){this.OE=null;
this.IA=null;this.i0=null;this.me=null;this.Sh.blur();Z.M.LG=null;Z.M.NZ=null;Z.M.k_=[];Z.nd=!0;this.lr=!1;
this.CP=!1;this.gy=this.TW=-1;this.am(S,s.E.P,{e:s.U.jO,T:this.id,Pp:"hideactive"});if(this.yI){var b=new d(s.E.P,!0);
b.data={e:s.U.cB,T:this.yI};S.m(b);this.yI=null}};G.Ua.prototype.am=function(Z,S,b,Y){var P=new d(S,!0);
P.data=b;if(Y)P.T=Y;Z.m(P)};G.Ua.prototype.Ib=function(Z){var S=this.OE.add.TySh,b=this.i0,Y=S.A.clone();
Y.oN();var P=Y.YI(Z),w=eO.Ij(S,b),f=T.$e.dm(S.Km,w),h=T.Ts.ale(f,P);if(h==null)h=new Float64Array(2);
P=new ar(w.x+h[0]*w.c,w.y+h[1]*w.v);var Q=b.eH(P);return Q};G.Ua.prototype.B$=function(Z,S){if(S==null)S=!1;
var b=this.OE.add.TySh,Y=eO.O$(b.HK),P=this.i0,w=P?eO.Ij(b,P):null;Z.M.k_=[];Z.M.LG=null;Z.M.NZ=null;
var f=this.cm?this.cm:this.me;if(f){f.tR(Z,this.Oz,!T.$e.iI(b.Km));var h=b.A.clone();h.oN();T.z.A(Z.M.k_,h,Z.M.k_);
T.z.A(Z.M.LG.H,h,Z.M.LG.H);if(P&&P.a2r()){var Q=w.c-20,e=w.v+8;Z.M.LG.H.push(Q,e,Q+10,e,Q+5,e-5,Q+5,e+5);
Z.M.LG.K.push("M","L","M","L")}}else if(Y==0)this.a5J(Z,b,P);else Z.M.LG={H:[],K:[]};var l=Math.min(this.gy,this.TW),O=Math.max(this.gy,this.TW);
if(!S){this.Sh.selectionStart=l;this.Sh.selectionEnd=O}if(P!=null){var m=function(f,j){var J=f.x,A=f.y+f.v,a=new fR;
a.translate(-J,-A);a.rotate(-j);a.translate(J,A);f.y+=f.v*.27;var H=T.z.X6(f);T.z.A(H.H,a,H.H);return H};
if(l==O){l=Math.max(l,0);var V=P.aO(l);if(V){var q=V._,K=this.Oz.pA.xp.FontSize;if(K!=null&&K!=0){K/=b.A.I2();
q.y+=q.v-K;q.v=K}var z=P.ad0(l);if(z!=null&&z.V2==1)q.x+=q.c;var t=m(q,V.W0).H;Z.M.LG.K.push("M","L");
Z.M.LG.H.push(t[0],t[1],t[6],t[7])}}else{Z.M.NZ={H:[],K:[]};for(var D=l;D<O;D++){var V=P.aO(D),H=m(V._,V.W0);
T.z.concat(Z.M.NZ,H)}}}if(P!=null){if(!w.h3()){var i=T.$e.dm(b.Km,w),y=Math.min(w.c,w.v)/10;if(y<1)y=1;
if(Z.M.LG){Z.M.LG=T.z.LD(Z.M.LG);Z.M.LG=T.z.Xt(Z.M.LG,y);T.Ts.A(i,Z.M.LG.H,w)}if(Z.M.NZ){Z.M.NZ=T.z.LD(Z.M.NZ);
Z.M.NZ=T.z.Xt(Z.M.NZ,y);T.Ts.A(i,Z.M.NZ.H,w)}T.Ts.A(i,Z.M.k_,w)}}if(Z.M.LG)T.z.A(Z.M.LG.H,b.A,Z.M.LG.H);
if(Z.M.NZ)T.z.A(Z.M.NZ.H,b.A,Z.M.NZ.H);T.z.A(Z.M.k_,b.A,Z.M.k_);Z.nd=!0};G.Ua.prototype.a5J=function(Z,S,b){if(b==null)return;
Z.M.k_.push(0,0);if(Z.M.LG==null)Z.M.LG={K:[],H:[]};for(var D=0;D<b.jm.length;D++){var Y=b.jm[D];for(var P=0;
P<Y.nZ.length;P++){var w=Y.nZ[P],f=Y.wM.x+w.wM.x+w._.x,h=Y.wM.y+w.wM.y+w._.y+w._.v;Z.M.LG.K.push("M","L");
Z.M.LG.H.push(f,h,f+w._.c,h)}}Z.nd=!0};G.Yy=function(){G.Ks.call(this,[10,9],G.bR,"tools/lasso");this.Hi="crosshair";
this.sI=null;this.IH=null;this.B5=null};G.Yy.prototype=new G.Ks;G.Yy.prototype.UQ=function(Z,S,b,Y){this.sI=this.WD;
this.IH={H:[this.sI.x,this.sI.y],K:["M"]}};G.Yy.prototype.Sw=function(Z,S,b,Y){this.B5=Y;var P=this.IH;
if(P==null)return;if(!Y.ou){if(this.IH!=null&&this.rb>1&&b.q(U.G_)){P.H.pop();P.H.pop();P.H.push(this.GM.x,this.GM.y);
Z.M.LG=P;Z.nd=!0}return}P.K.push("L");P.H.push(this.GM.x,this.GM.y);this.sI=this.GM;if(this._A){Z.M.LG=P;
Z.nd=!0}};G.Yy.prototype.K7=function(){return this.IH!=null};G.Yy.prototype.Fz=function(){return this.IH!=null};
G.Yy.prototype.XF=function(Z,S,b,Y){G.Ks.prototype.XF.call(this,Z,S,b,Y);if(this.IH&&this.rb>1&&this.B5&&!this.B5.ou&&!Y.q(U.G_))this.w8(Z,b,Y)};
G.Yy.prototype.LP=function(Z,S,b,Y){this.B5=Y;var P=this.IH;if(P==null)return;if(this.rb>1&&b.q(U.G_)){P.K.push("L");
P.H.push(this.GM.x,this.GM.y);return}this.w8(Z,S,b)};G.Yy.prototype.w8=function(Z,S,b){this.finish(Z,S,b,this.B5);
this.IH=null;Z.M.LG=null;Z.nd=!0};G.Yy.prototype.getSelection=function(Z,S,b,Y){if(this.WD.Oh(this.GM)||!this._A)return null;
return G.Ks.M6(this.IH.H)};G.sR=function(){G.$W.call(this,[10,11],G.hK,"tools/move");this.LH=new ar(0,0);
this.ra=new ar(0,0);this.TX=null;this.Gb=null;this.FB=new ar(0,0);this.wR=null;this.W3=null;this.$o=null;
this.V4=0;this.AB=null;this.Jw=[];this.iz=null;this.Tz=!1;this.e=0;this.Ez=null;this.WI=null;this.Yk=null;
this.uh=!1;this.xN={ax:!1,IE:!1,_m:!1};this.a0z=!1;this.a9Y=!1;this.me=null;this.cy=null;this.a4G=null;
var Z=[];for(var D=0;D<T.dp.XV.length;D++)Z.push({name:T.dp.XV[D],Q:function(S,b,Y){return{As:b.Gg.iJ==Y}}});
this._8=new a5(Z);this._8.i("select",this.ZV,this)};G.sR.prototype=new G.$W;G.$W.prototype.wF=function(Z){return this.Tz&&this.e!=2};
G.sR.prototype.gm=function(){return this.Tz&&this.e==0};G.sR.prototype.Vy=function(Z,S,b,Y){this.AS(Z,-this.FB.x,-this.FB.y);
this.FB.Ha(0,0);this.S_(Z,null,b);this._5(Z)};G.sR.prototype.od=function(){var Z=this.xN;return[Z.ax?1:0,Z.IE?1:0,Z._m?1:0]};
G.sR.prototype.HL=function(Z,S,b){var Y=this.xN;if(Z&&Z[0]!=null)Y.ax=Z[0]==1;if(Z&&Z[1]!=null)Y.IE=Z[1]==1;
if(Z&&Z[2]!=null)Y._m=Z[2]==1;var P=new d(s.E.P,!0);P.data={e:s.U.jO,T:this.id,qT:Y,aje:S};b.m(P)};G.sR.SA=function(Z,S,b,Y,P,w,f){if(f==null)f=[!1,!0];
var h=new b4(0,0,Z.c,Z.v),Q=Z.IM(null,P,!0),e=Z.Sq(Q,f[0]?h:null,f[1]?null:h)[0];if(f[1]){var l=T.gG(e.Zd(),new b4(0,0,e.c,e.v),2);
G.PK.l_(e,l)}if(b!=1){var O=new b4(0,0,Math.round(e.c*b),Math.round(e.v*b));G.PK.l_(e,O);var m=[];for(var D=0;
D<e.t.length;D++)m.push(D);var V=G.V.fU(e,m,!0);G.PK.aY(e,new fR(b,0,0,b,0,0));G.V.NB(e,Y,m,V,1,T.J.GC(new fR(b,0,0,b,0,0)),null,!0);
e.j8()}var q=[];for(var D=0;D<S.length;D++)if(e.c*e.v!=0)q.push(ab.k$(e,S[D].toUpperCase(),null,null,w?w[D]:null,Y));
return q};G.sR.prototype.v5=function(Z,S,b,Y,P){if(Z==null||Z.C.length==0)return;var w=G.sR.SA(Z,[S],b,Y,null)[0],f=new d(s.E.P,!0);
f.data={e:s.U.d9,data:w,name:Z.t[Z.C[0]].getName()+(b==1?"":"@"+b+"x")+"."+S};P.m(f)};G.sR.prototype.aa=function(Z,S,b,Y,P){if(Z.Ox=="getPNG"){this.v5(b,"png",Z.Wo,P,S)}else if(Z.Ox=="getSVG"){this.v5(b,"svg",Z.Wo,P,S)}if(Z.Ox=="prms"){this.xN=Z;
this._5(b)}};G.sR.ahd=function(Z){var C=Z.length,b=0;Z.sort(function(w,f){return w[0]+w[1]/2-(f[0]+f[1]/2)});
var S=Z[C-1][0]+Z[C-1][1]-Z[0][0];for(var D=0;D<C;D++)b+=Z[D][1];var Y=Math.round((S-b)/(C-1)),P=Z[0][0];
for(var D=0;D<C;D++){Z[D][0]=P;P+=Z[D][1]+Y}};G.sR.prototype.Pf=function(Z,S,b,Y,P){var w=Z.e;if(w=="trsl"){var f=Math.round(Z.ah7),h=Math.round(Z.aeY);
this.FB.Ha(f,h);this.wZ(b,S,Y,P,!1,Z.$);this.AS(b,f,h);this.S_(b,null,P)}else if(w=="gids"||w=="gidsFromLayer"){var Q=Z.WI,e,l;
if(Q==null)Q=JSON.parse(JSON.stringify(b.vE));if(w=="gids"){e=Z.If;var O=Q[0].length+Q[1].length,m=e[0].length+e[1].length;
l=O==m?[23,2]:O>m?[23,3]:[23,4];if(m==0)l=[11,15,0]}else if(w=="gidsFromLayer"){var V=[[],[]];for(var D=0;
D<b.C.length;D++){var q=b.t[b.C[D]].rect;if(q.h3())continue;V[0].push(q.x,q.x+q.c);V[1].push(q.y,q.y+q.v)}l=[11,15,1];
e=JSON.parse(JSON.stringify(b.vE));G.sR.bD(e,V)}if(JSON.stringify(Q)==JSON.stringify(e))return;var w=new iA(l,this);
w.data={e:2,WI:Q,If:e};b.kz(w);this.Ed(w.data,b)}else if(w=="algn"){var K=Z.G;if(b==null)return;if(b.C.length<2&&!(b.N!=null&&K!=3&&K!=7)){alert(aV.get([15,7,5]));
return}var z=b.N;b.N=null;var q=z?z.rect:G.V.Ij(b);this.wZ(b,S,Y,P,!1);if(!this.Tz)return;var t=this.AB,H={},i=[],y=[],j=[];
for(var D=0;D<t.length;D++){var J=t[D];while(b.t[J].getName()=="</Layer group>")J++;var A=b.root.zO(J),a=A;
while(A.parent!=null){A=A.parent;if(t.indexOf(A.index)!=-1)a=A}var I=y.indexOf(a.index);if(I==-1){I=y.length;
y.push(a.index)}i[D]=I}var E=[],c=[],u=[];for(var D=0;D<y.length;D++){var n=G.V.Ij(b,b.IM(!0,y[D]));
u.push(n);var o=K==3?[n.y,n.v]:[n.x,n.c];E[D]=o;c.push(o)}G.sR.ahd(c);for(var D=0;D<y.length;D++){var n=u[D],x=n.x,g=n.y;
if(K==0)x=q.x;if(K==1)x=q.x+(q.c-n.c)/2;if(K==2)x=q.x+(q.c-n.c);if(K==3)g=E[D][0];if(K==4)g=q.y;if(K==5)g=q.y+(q.v-n.v)/2;
if(K==6)g=q.y+(q.v-n.v);if(K==7)x=E[D][0];j.push(Math.round(x-n.x),Math.round(g-n.y))}var v=[];for(var D=0;
D<t.length;D++){var R=i[D];v[2*D]=j[2*R];v[2*D+1]=j[2*R+1]}this.AS(b,0,0,null,v);var X=K==3||K==7?[20,4,6]:[20,4,K<3?K:K-1];
this.S_(b,null,P,v,X);b.N=z}};G.sR.bD=function(Z,S){for(var D=0;D<S.length;D++)for(var b=0;b<S[D].length;
b++)if(Z[D].indexOf(S[D][b])==-1)Z[D].push(S[D][b])};G.sR.prototype.enable=function(Z,S,b,Y,P){this.W3=b;
this.$o=S;this.uh=P?!0:!1;this._5(Z);this.uz("default",S)};G.sR.prototype.disable=function(Z,S,b,Y){this.r0(Z)};
G.sR.prototype.r0=function(Z){if(Z==null)return;if(this.me){this.me.clear(Z);this.me=null}if(Z.M._m){Z.M._m=null;
Z.nd=!0}if(Z.M.yW){Z.M.yW=null;Z.nd=!0}if(Z.M.$U[this.id]){delete Z.M.$U[this.id];Z.nd=!0}if(Z.M.ag.length!=0){Z.M.ag=[];
Z.nd=!0}};G.sR.prototype.s1=function(Z,S,b,Y){if(b.pH!=this.id)return;this._5(Z)};G.sR.prototype._5=function(Z,S){if(Z==null)return;
var b=this.xN;this.r0(Z);if(!this.uh){var Y;if(b.IE||b._m)Y=T.z.gO(G.V.Ij(Z));if(b.IE&&!Y.h3()){this.me=new ad([Y.x,Y.y,Y.x+Y.c,Y.y,Y.x+Y.c,Y.y+Y.v,Y.x,Y.y+Y.v],!0);
this.me.tR(Z,this.W3)}if(b._m){var P=Z.Nu(Z.C[0]),l=null,O=!1;if(P==null)P=new b4(0,0,Z.c,Z.v);Z.M._m={HA:[Y],N_:[]};
var w=Z.M._m.N_,f=Y.x+Y.c,h=Y.y+Y.v,Q=Y.x+Math.floor(Y.c/2),e=Y.y+Math.floor(Y.v/2);if(S){var m=Z.root.eI(new ar(Math.floor(S.x),Math.floor(S.y)));
if(m){l=T.z.gO(m.$.qI(Z));if(l.U5(Y)){O=(l.ls(Y)||Y.ls(l))&&!Y.Oh(l);if(!O)l=null}}}this.o6(Y,w);if(l!=null){Z.M._m.HA.push(l);
var V=l.x+l.c,q=l.y+l.v,K=l.x+Math.floor(l.c/2),z=l.y+Math.floor(l.v/2);if(O){var t=Q,H=e;if(Y.ls(l)){t=K;
H=z}w.push(Y.x,H,l.x,H);w.push(f,H,V,H);w.push(t,Y.y,t,l.y);w.push(t,h,t,q)}else{this.o6(l,w);var i=h<l.y||q<Y.y,y=f<l.x||V<Y.x;
if(f<l.x)w.push(f,e,l.x,e);if(V<Y.x)w.push(V,e,Y.x,e);if(h<l.y)w.push(Q,h,Q,l.y);if(q<Y.y)w.push(Q,q,Q,Y.y);
if(i&&!y){if(Y.x<l.x)w.push(Y.x,z,l.x,z);if(l.x<Y.x)w.push(l.x,e,Y.x,e)}}}else{if(Y.y>P.y)w.push(Q,P.y,Q,Y.y);
if(h<P.y+P.v)w.push(Q,h,Q,P.y+P.v);if(Y.x>P.x)w.push(P.x,e,Y.x,e);if(f<P.x+P.c)w.push(f,e,P.x+P.c,e)}Z.nd=!0}}if(this.e==2&&this.Tz){var j=this.AB,J=j[0],A=(J==0?"X":"Y")+": "+T.dp.Rv(Z.vE[J][j[1]],Z.GY,this.W3,J==0?Z.c:Z.v,!0);
G.$W.NF(Math.round(this.TX.x)+10,Math.round(this.TX.y)-10,[A],Z);Z.nd=!0}if(this.e==3&&this.Tz){var a=T.z.X6(this.Ez);
Z.M.$U[this.id]={LG:a};Z.nd=!0}};G.sR.prototype.o6=function(Z,S){var b=Z.c,Y=Z.v,P=Z.x+Math.floor(b*.2),w=Z.y+Math.floor(Y*.2);
S.push(P,Z.y,P,Z.y+Y);S.push(Z.x,w,Z.x+b,w)};G.sR.prototype.uz=function(Z,S){var b={e:s.U.il,tf:Z},Y=new d(s.E.P,!0);
Y.data=b;S.m(Y)};G.sR.prototype.MO=function(Z){var S=this.cy.SO()[0],b=this.wR,Y=this.a4G[S];this.hD(b,Y)};
G.sR.prototype.ZV=function(Z){var S=JSON.parse(JSON.stringify(this.W3.Gg));S.iJ=this._8.SO()[0];var b=new d(s.E.P,!0);
b.data={e:s.U.h4,Sz:bp.nq,u$:S};this.$o.m(b)};G.sR.prototype.nL=function(Z,S,b,Y,P){if(this.Tz)this.Xa(Z,S,b,Y,P);
this.wR=Z;this.W3=b;this.$o=S;var w=Z.a._2(P.x,P.y),f;if(G.sR.SR(b,P,Z.a)){f=this._8}else{if(this.cy)this.cy.removeEventListener("select",this.MO);
var h=[];Z.root.eI(w,h);if(h.length==0)return;var Q=[];this.a4G=h;for(var D=0;D<h.length;D++)Q.push({name:Z.t[h[D]].getName()});
f=this.cy=new a5(Q);f.i("select",this.MO,this)}f.parent=S;f.B();f.update(Z,b);var e=new d(s.E.P,!0);
e.data={e:s.U.Gc,Bq:f,x:P.w$+2,y:P.rE+1};S.m(e)};G.sR.prototype.Cn=function(Z,S,b,Y,P){return G.sR.SR(b,P,Z.a)};
G.sR.prototype.Os=function(Z,S,b,Y,P){this.TX=P;this.LH.Ha(P.x,P.y);this.ra=Z.a._2(P.x,P.y);this.Gb=new bv(this.ra);
this.wZ(Z,S,Y,b,!0)};G.sR.SR=function(Z,S,b){var Y=T.dp.EC,P=b.a_.v;return Z.pS&&(0<S.x&&S.x<Y||0<S.y&&S.y<Y||0<S.x&&S.x<4*Y&&P-Y<S.y&&S.y<P)};
G.sR.prototype.wZ=function(Z,S,b,Y,P,w){var f,h=this.ra,Q=!1;if(P){var e=Y.Wb&&Y.Gg.vE;if(G.sR.SR(Y,this.LH,Z.a)){f=JSON.parse(JSON.stringify(Z.vE));
if(this.LH.x<T.dp.EC)Z.vE[0].push(h.x);if(this.LH.y<T.dp.EC)Z.vE[1].push(h.y);if(!e){var l=new d(s.E.P);
if(!Y.Gg.vE){l.data={e:s.U.h4,Sz:bp.rm};S.m(l)}if(!Y.Wb){l.data={e:s.U.h4,Sz:bp.XY};S.m(l)}e=!0}}var O=this.K2(Z,h);
if(e&&O){this.e=2;this.WI=f?f:JSON.parse(JSON.stringify(Z.vE));this.AB=O;this.Tz=!0;this.iz=G.V.Ij(Z);
return}if(Z.k9.length!=0){this.e=4;this.iz=Z.eP[Z.k9[0]].rect.clone();this.Tz=!0;return}if(this.me&&this.me.jN(h,Z.a.S,!0)!=null){var l=new d(s.E.P);
l.data={e:s.U.cB,T:G.ih};S.m(l);var m=new d(s.E.s);m.T=G.ih;m.data={e:"doMouseDown",TX:this.LH};S.m(m);
return}if(Z.N&&Z.N.rect.DS(h)){var V=Math.round(h.x),q=Math.round(h.y),K=Z.N.rect;Q=Z.N.channel[(q-K.y)*K.c+V-K.x]>128}if(!Q&&(!this.uh&&this.xN.ax||this.uh&&this.xN.ax&&(b.q(U.Lo)||Z.C.length<2))){var z=this.ag8(Z,h,b);
if(!z){Z.C=[];Z.v6=null;Z.Vc=Z.AV=!0;this.e=3;this.Ez=new b4;this.Tz=!0;return}}if(b.q(U.G_)&&!Q){var m=new d(s.E.s);
m.T=G.kd;m.data={e:F.GG,a5c:!0};S.m(m)}}if(Z.k9.length!=0){this.e=4;this.iz=Z.eP[Z.k9[0]].rect.clone();
this.Tz=!0;return}this.AB=Z.IM(w==null,w,null,!0);for(var D=0;D<this.AB.length;D++){var t=Z.t[this.AB[D]];
if(t.vv(2)||t.vv(31)){alert(aV.get([6,57,0]));return}}this.Jw=G.sR.a1$(Z,this.AB);this.e=0;if(Z.N&&(!P||Q)&&Z.C.length==1&&Z.bY(!1)){if(!Z.mC()){this.Tz=!1;
return}var H=Z.t[Z.C[0]],i=b.q(U.G_);this.e=1;var y=Z.history[Z.Hc];if(y.T==this&&y.data.e==1&&y.data.$==Z.C[0]&&H.PC==H.Ns.PC&&!i){this.Yk=y}else{var j=H.Ns,J=!1,A;
if(!H.CQ(Z,Z.N)||i){J=!0;H.S0(Z,Z.N,i)}if(H.Ns.PC<=0){A=T.f(H.Ns.qG.length>>2);T.to(H.Ns.qG,A,3)}else A=Z.N.channel.slice(0);
var a={rect:H.Ns.bC.clone(),channel:A};this.Yk=new iA(i?[12,53]:[12,54],this);this.Yk.data={e:1,$:Z.C[0],Ns:H.Ns,cV:j,CC:J,O1:Z.N,iH:a,KU:new ar(0,0)};
Z.kz(this.Yk);Z.N=a;Z.Zu=!0}}this.Tz=!0;this.iz=G.V.Ij(Z)};G.sR.prototype.ag8=function(Z,S,b){var Y=Z.root.eI(new ar(Math.floor(S.x),Math.floor(S.y)));
if(Y){if(Y.$.add.vmsk)Z.nd=!0;var P=Z.t.indexOf(Y.$);if(b.q(U.Lo)){var w=Z.C.indexOf(P);if(w==-1)Z.C.push(P);
else if(Z.C.length>1)Z.C.splice(w,1)}else if(Z.C.indexOf(P)==-1){this.hD(Z,P)}}return Y!=null};G.sR.prototype.hD=function(Z,S){Z.t[S].PC=0;
Z.C=[S];Z.v6=null;Z.NW();Z.ug=!0;Z.Vc=!0};G.sR.prototype.Zq=function(Z,S,b,Y,P){this.TX=P;var w=Z.a._2(P.x,P.y),m,V;
if(this.Gb&&this.e<2)w=this.Gb.Ae(w,Y);if(!this.Tz){if(b.Wb&&b.Gg.vE){var f=this.K2(Z,w),h="default";
if(f)h=["col-resize","row-resize"][f[0]];else if(this.me){var Q=this.me.jN(w,Z.a.S);if(Q)h=Q}this.uz(h,S)}this._5(Z,w);
return}var e=this.ra,l=Math.round(w.x-e.x)-this.FB.x,O=Math.round(w.y-e.y)-this.FB.y;if(this.iz){if(this.e==2){w=G.sR.yK(Z,w,b,[!1,Z.N?Z.N.rect:this.iz,!0])}else{V=this.iz.clone();
V.offset(this.FB.x+l,this.FB.y+O);m=G.sR.BG(Z,V,b);l+=Math.round(m[0]);O+=Math.round(m[1])}}this.FB.x+=l;
this.FB.y+=O;this.AS(Z,l,O,w,null,Y.q(U.Lo));this._5(Z,w);if(m)G.sR.F$(Z,V,m)};G.sR.prototype.K2=function(Z,S){S=[S.x,S.y];
for(var D=0;D<2;D++)for(var b=0;b<Z.vE[D].length;b++)if(Math.abs(Z.vE[D][b]-S[D])*Z.a.S<4)return[D,b];
return null};G.sR.prototype.AS=function(Z,S,b,Y,P,w){if(this.e==0){if(P)G.sR.e0(Z,this.AB,this.Jw,P);
else G.sR.Av(Z,this.AB,this.Jw,S,b)}else if(this.e==1){var f=this.Yk.data;f.KU.offset(S,b);G.sR.MC(Z,f.$,S,b)}else if(this.e==2){var h=1e-5;
if(w)h=Z.a.S<=1?10:1;else if(Z.a.S<=1)h=1;var Q=h*Math.round(Y.x/h),e=h*Math.round(Y.y/h),l=[Q,e],O=this.AB;
Z.vE[O[0]][O[1]]=l[O[0]]}else if(this.e==3){var m=this.ra,V=T.z.Ex([m.x,m.y,Y.x,Y.y]);this.Ez=V;var q=[];
Z.root.kV(V,q);if(JSON.stringify(Z.C)!=JSON.stringify(q)){Z.C=q;Z.Vc=Z.AV=!0}}else if(this.e==4){for(var D=0;
D<Z.k9.length;D++)Z.eP[Z.k9[D]].rect.offset(S,b);Z.nd=!0}};G.sR.MC=function(Z,S,b,Y){var P=Z.t[S];Z.N.rect.offset(b,Y);
P.$p(Z,b,Y,Z.N);Z.Zu=!0;Z.D()};G.sR.prototype.Xa=function(Z,S,b,Y,P){this.S_(Z,P,b);this._5(Z);if(Date.now()-this.V4<300){var w=G.Ua.$r(Z,Z.a._2(P.x,P.y));
if(w!=-1){var f=new d(s.E.s,!0);f.T=G.le;f.data={e:"editCurr",xj:w};S.m(f)}else if(G.sR.SR(b,P,Z.a)){var h=new d(s.E.P);
h.data={e:s.U.Fy,g9:"doczoom",a7:Z.a.S*100,H6:{g:s.E.s,T:G.$j,k:{e:"pzoom"}}};S.m(h)}}this.V4=Date.now()};
G.sR.prototype.S_=function(Z,S,b,Y,P){if(!this.Tz)return;this.Tz=!1;if(this.e==0){if(Y){this.$X(Z,null,Y,P)}else{if(this.FB.x==0&&this.FB.y==0)return;
this.$X(Z,this.FB.clone())}Z.Pd=!0}else if(this.e==2){var w=0;S=[S.x,S.y];var f=this.AB,bj=this.WI[0].length+this.WI[1].length,h=Z.vE[0].length+Z.vE[1].length;
if(b.pS&&S[f[0]]<T.dp.EC){Z.vE[f[0]].splice(f[1],1);w=1;if(bj==h-1)return}if(bj<h)w=2;var Q=new iA([[23,2],[23,3],[23,4]][w],this);
Q.data={e:2,WI:this.WI,If:JSON.parse(JSON.stringify(Z.vE))};Z.kz(Q)}else if(this.e==4){var Q=new iA([12,54],this);
Q.data={e:4,C:Z.k9.slice(0),n:this.FB.clone()};Z.kz(Q)}this.FB.Ha(0,0)};G.sR.prototype.XF=function(Z,S,b,Y){var P=Y.sh();
if(Z!=null&&(P.x!=0||P.y!=0)){if(Y.q(U.G_)&&Z.N==null){var w=new d(s.E.s);w.T=G.kd;w.data={e:F.GG,a5c:!0};
S.m(w)}this.FB.Ha(P.x,P.y);this.wZ(Z,S,Y,b,!1);if(!this.Tz)return;this.AS(Z,P.x,P.y);this.S_(Z,null,b);
this._5(Z)}var f=Y.q(U.cD);if(!this.uh&&this.a9Y!=f){if(f){this.a0z=this.xN.ax;this.xN.ax=!0}else{this.xN.ax=this.a0z}this.a9Y=f;
var h=new d(s.E.P,!0);h.data={e:s.U.jO,T:this.id,qT:this.xN};S.m(h)}};G.sR.prototype.zv=function(Z,S){if(Z.e==0)G.sR.e0(S,Z.C,Z.wS,Z.aV,!0);
else if(Z.e==2){S.vE=JSON.parse(JSON.stringify(Z.WI));S.nd=!0}else if(Z.e==4){for(var D=0;D<Z.C.length;
D++)S.eP[Z.C[D]].rect.offset(-Z.n.x,-Z.n.y);S.nd=!0}else{var b=S.t[Z.$];if(Z.CC){b.Hb(S,Z.cV);S.N=Z.O1;
S.Zu=!0;S.D();b.D()}else{G.sR.MC(S,Z.$,-Z.KU.x,-Z.KU.y)}}};G.sR.prototype.Ed=function(Z,S){if(Z.e==0)G.sR.e0(S,Z.C,Z.wS,Z.aV);
else if(Z.e==2){S.vE=JSON.parse(JSON.stringify(Z.If));S.nd=!0}else if(Z.e==4){for(var D=0;D<Z.C.length;
D++)S.eP[Z.C[D]].rect.offset(Z.n.x,Z.n.y);S.nd=!0}else{var b=S.t[Z.$];if(Z.CC){b.Ns=Z.Ns;S.N=Z.iH;G.sR.MC(S,Z.$,0,0);
b.D()}else{G.sR.MC(S,Z.$,Z.KU.x,Z.KU.y)}}};G.sR.prototype.$X=function(Z,S,b,Y){if(b){var P=!0;for(var D=0;
D<b.length;D++)if(b[D]!=0)P=!1;if(P)return}var w=Z.history[Z.Hc];if(w.data&&w.T==this&&w.data.e==0&&b==null&&JSON.stringify(w.data.C)==JSON.stringify(this.AB)&&JSON.stringify(w.data.wS)==JSON.stringify(this.Jw)){var f=w.data.aV,h=w.data.a6c.V1.T.v;
h.Hrzn.v.val+=S.x;h.Vrtc.v.val+=S.y;for(var D=0;D<f.length;D+=2){f[D]+=S.x;f[D+1]+=S.y}}else{if(S==null)S=new ar(b[0],b[1]);
var Q={uf:"move",V1:{classID:"null",null:a3.h$("Lyr",!0),T:{t:"Objc",v:{classID:"Ofst",Hrzn:{t:"UntF",v:{type:"#Rlt",val:S.x}},Vrtc:{t:"UntF",v:{type:"#Rlt",val:S.y}}}}}},e=new iA(Y?Y:[12,54],this);
if(b)e.data={e:0,C:this.AB,wS:this.Jw,aV:b};else e.data={e:0,C:this.AB,wS:this.Jw,aV:G.sR.it(this.AB,S.x,S.y)};
e.data.a6c=Q;Z.kz(e);this.track(Q)}};G.sR.it=function(Z,S,b){var Y=[];for(var D=0;D<Z.length;D++)Y.push(S,b);
return Y};G.sR.Av=function(Z,S,b,Y,P){G.sR.e0(Z,S,b,G.sR.it(S,Y,P))};G.sR.e0=function(Z,S,b,Y,P){if(S.length==0)return;
if(b==null){b=[];for(var D=0;D<S.length;D++){b.push(Z.t[S[D]].FN(Z,!0))}}var w=new b4,f=new b4(0,0,Z.c,Z.v);
for(var D=0;D<S.length;D++){var h=Y[2*D],Q=Y[2*D+1];if(P){h=-h;Q=-Q}var e=Z.t[S[D]],l=b[D];if(e.add.fxrp&&(l.indexOf(0)!=-1||e.q3()))e.add.fxrp.offset(h,Q);
for(var O=0;O<l.length;O++){var m=l[O];if(m==0){e.rect.offset(h,Q);if(e.pL()&&e.fY(Z))e.fY(Z).rect.offset(h,Q);
if(e.add.artb){var V=e.mb();V.offset(h,Q);e.PB(V)}if(e.add.TySh){e.add.TySh.A.translate(h,Q);if(e.add.TySh.add){e.add.TySh.add.vmsk.offset(h,Q)}}if(e.add.SoLd){var q=new fR(1,0,0,1,h,Q),K=e.add.SoLd,z=G.V.Nt(K.Trnf),t=G.V.Nt(K.nonAffineTransform);
T.z.A(z,q,z);T.z.A(t,q,t);K.Trnf=G.V.ab(z);K.nonAffineTransform=G.V.ab(t);G.V.cA(K,q)}}if(m==1)e.Y6().rect.offset(h,Q);
if(m==2){e.add.vmsk.offset(h,Q);if(e.add.vogk)T.AZ.A(e.add.vogk,[1,0,h,0,1,Q,0,0],[])}if(m==3){e.fY(Z).d.rect.offset(h,Q);
if(l.length==1)e.D()}}if(l.length>0){var H=e.add.GdFl;if(H==null)H=e.add.PtFl;if(e.q3()&&!e.VG()&&e.add.vmsk!=null&&T.Y.eC(e.add.vmsk.b)&&e.add.vmsk.uu==255&&(H==null||H.Algn&&H.Algn.v)){e.rect.offset(h,Q)}else e.vK(Z);
var i=Z.root.ri(e.qI(Z),Z,S[D]);w=w.VK(i);i.offset(-h,-Q);w=w.VK(i);if(e.add.SoCo||e.add.GdFl||e.add.PtFl||g3.get(e.add)!=null)w=w.VK(f);
e.G5()}}Z.D(w)};G.sR.a1$=function(Z,S){var b=[];for(var D=0;D<S.length;D++){var Y=Z.t[S[D]];b.push(Y.FN(Z))}return b};
G.sR.F$=function(Z,S,b){var Y=Z.M.yW={H:[],K:[]},P=S.x+b[0],w=S.y+b[1];if(b[2]!=1e9){Y.K.push("M","L");
Y.H.push(b[2],w,b[2],w+S.v)}if(b[3]!=1e9){Y.K.push("M","L");Y.H.push(P,b[3],P+S.c,b[3])}Z.nd=!0};G.sR.yK=function(Z,S,b,Y){var P=G.sR.xX(Z,[[S.x],[S.y]],b,Y);
return new ar(S.x+P[0],S.y+P[1])};G.sR.BG=function(Z,S,b,Y,P){var w=P==!0?0:1,f=G.sR.xX(Z,[[S.x,S.x+(S.c>>>w),S.x+S.c],[S.y,S.y+(S.v>>>w),S.y+S.v]],b,Y);
return f};G.sR.xX=function(Z,S,b,Y){if(Y==null)Y=[!0,null,!0];var P=[0,0,1e9,1e9];if(!b.nX)return P;
var w=JSON.parse(JSON.stringify(S));for(var f=0;f<2;f++){var h=1e9,Q=S[f],e=0;for(var l=0;l<Q.length;
l++){var O=G.sR.alI(Z,Q[l],w[1-f][l],f,b,Y);if(O!=1e9)w[f][l]=O;if(O!=1e9&&Math.abs(O-Q[l])<Math.abs(h)){h=O-Q[l];
e=O}}if(h!=1e9){P[f]=h;P[f+2]=e}}return P};G.sR.alI=function(Z,S,b,Y,P,w){var f=1e9,h=P.x3,Q=P.Gg,e=[Z.root];
while(e.length!=0&&h[2]){var l=e.pop(),O=l.$,m=O.rect;if(!O._7())continue;if(l.children)for(var D=0;
D<l.children.length;D++)e.push(l.children[D]);if(Z.C.indexOf(l.index)!=-1||m.h3())continue;if(Y==0){var V=m.c,q=V>>>1;
if(Math.abs(m.x-S)<Math.abs(f-S))f=m.x;if(Math.abs(m.x+q-S)<Math.abs(f-S))f=m.x+q;if(Math.abs(m.x+V-S)<Math.abs(f-S))f=m.x+V}else{var K=m.v,z=K>>>1;
if(Math.abs(m.y-S)<Math.abs(f-S))f=m.y;if(Math.abs(m.y+z-S)<Math.abs(f-S))f=m.y+z;if(Math.abs(m.y+K-S)<Math.abs(f-S))f=m.y+K}}if(w[0]&&h[0]&&Q.vE&&P.Wb){var t=Z.vE[Y];
for(var D=0;D<t.length;D++)if(Math.abs(t[D]-S)<Math.abs(f-S))f=t[D]}if(h[1]&&Q.$M&&P.Wb){var H=Math.round(T.dp.tz(Q.rV,Z,Q.I5));
if(Y==1&&Q.Sn==1){var i=b*.5*Math.sqrt(4/3),y;H*=Math.sqrt(4/3);y=Math.round((S-i)/H)*H+i;if(Math.abs(y-S)<Math.abs(f-S))f=y;
y=Math.round((S+i)/H)*H-i;if(Math.abs(y-S)<Math.abs(f-S))f=y}else{var y=Math.round(S/H)*H;if(Math.abs(y-S)<Math.abs(f-S))f=y}}var j=Z.CY;
if(h[3]&&Q.CY&&P.Wb&&j.length!=0){for(var D=0;D<j.length;D++){if(!w[2]&&Z.m2.indexOf(D)!=-1)continue;
var J=G.cd.Xs(j,D);for(var A=0;A<3;A+=2)if(J[A+Y]!=S&&Math.abs(J[A+Y]-S)<Math.abs(f-S))f=J[A+Y]}}if(w[1]){var m=w[1],V=m.c,K=m.v,a=[m.x,m.y,m.x+(V>>>1),m.y+(K>>>1),m.x+V,m.y+K];
for(var D=0;D<6;D+=2)if(Math.abs(a[D+Y]-S)<Math.abs(f-S))f=a[D+Y]}if(h[4]){var V=Z.c,K=Z.v,a=[0,0,V>>>1,K>>>1,V,K];
for(var D=0;D<6;D+=2)if(Math.abs(a[D+Y]-S)<Math.abs(f-S))f=a[D+Y]}var I=Math.abs(f-S)<=4*s.Z()/Z.a.S?f:1e9;
return I};G.IX=function(){G.Ks.call(this,[10,12],G.bJ,"tools/mwand")};G.IX.prototype=new G.Ks;G.IX.prototype.od=G.Ks.prototype.a9P;
G.IX.prototype.HL=G.Ks.prototype.alT;G.IX.prototype.UQ=function(Z,S,b,Y){this.finish(Z,S,b,Y)};G.IX.prototype.getSelection=function(Z,S,b,Y){var P=this.GM,w=G.Ks.adl(new ar(Math.floor(P.x),Math.floor(P.y)),this.xN.qC);
return w};G.IX.Nh=function(Z,S,b){if(Z.C.length!=1){alert("More than one layer selected.");return null}var Y=Z.t[Z.C[0]],P=Y.PC<=0?null:Y.PC==1?Y.Y6():Y.fY(Z).d,w;
if(P==null&&Y.add.lsct!=null&&Y.add.lsct!=fr.Dr){alert("No layer selected.");return null}if(S.x<0||S.x>Z.c||S.y<0||S.y>Z.v)return null;
var f=new b4(0,0,Z.c,Z.v);if(P==null&&f.Oh(Y.rect))w=Y.buffer;else{w=T.f(f.X()*4);if(P==null)T.uH(Y.buffer,Y.rect,w,f);
else G.px.vB(P.channel,P.rect,P.color,w,f)}var h=G.IX.sZ(w,f,S,null,b),Q=T.fD(h,f),e=T.f(Q.X());T.JS(h,f,e,Q);
return{rect:Q,channel:e}};G.IX.T1=function(Z,S,b){var Y=S.c,P=S.v,f=0,h=0,Q=0,e=0;Z=new Uint32Array(Z.buffer);
var w=[],l=b.length;for(var D=0;D<l;D++){var O=b[D],m=Math.round(O.x-.5-S.x),V=Math.round(O.y-.5-S.y);
m=Math.max(0,Math.min(Y-1,m));V=Math.max(0,Math.min(P-1,V));var q=V*Y+m,K=Z[q];w.push([K&255,K>>8&255,K>>16&255,K>>>24])}return w};
G.IX.sZ=function(Z,S,b,Y,P){Z=new Uint32Array(Z.buffer);var w=S.c,f=S.v,h=w*f;if(Y==null)Y=G.IX.T1(Z,S,[b]);
var Q=Math.round(b.x-.5-S.x),e=Math.round(b.y-.5-S.y),l=e*w+Q,O=Date.now(),m=T.f(w*f),V=P[0],q=1/V,K=P[1]&&V>0?255:0;
if(P[2]){var z=T.f(m.length),t=new Uint32Array(h),H=1;t[0]=Q<<16|e;z[l]=1;while(H>0){var i=t[H-1];H--;
var y=i>>>16,j=i&65535,D=j*w+y,J=G.IX.pZ(Z[D],Y);if(J>V){var A=K*(1-Math.max(0,Math.min(1,(J-V)*q)));
m[D]=~~A}else{m[D]=255;if(j!=f-1&&z[D+w]==0){t[H++]=y<<16|j+1;z[D+w]=1}if(j!=0&&z[D-w]==0){t[H++]=y<<16|j-1;
z[D-w]=1}if(y!=w-1&&z[D+1]==0){t[H++]=y+1<<16|j;z[D+1]=1}if(y!=0&&z[D-1]==0){t[H++]=y-1<<16|j;z[D-1]=1}}}}else{for(var D=0;
D<h;D++){var J=G.IX.pZ(Z[D],Y);if(J<=V)m[D]=255}for(var j=0;j<f;j++)for(var y=0;y<w;y++){var D=j*w+y;
if(m[D]==0&&(y>0&&(m[D-1]==255||j>0&&m[D-w-1]==255||j<f-1&&m[D+w-1]==255)||y<w-1&&(m[D+1]==255||j>0&&m[D-w+1]==255||j<f-1&&m[D+w+1]==255)||j>0&&m[D-w]==255||j<f-1&&m[D+w]==255)){var J=G.IX.pZ(Z[D],Y),A=K*(1-Math.max(0,Math.min(1,(J-V)*q)));
m[D]=~~A}}}return m};G.IX.pZ=function(Z,S){var b=S.length,Y=G.IX.S5(Z,S[0]),D=1;while(D!=b){Y=Math.min(Y,G.IX.S5(Z,S[D]));
D++}return Y};G.IX.S5=function(Z,S){var b=Z&255,Y=Z>>>8&255,P=Z>>>16&255,w=Z>>>24&255;if(S[3]==0)return w<5?0:255;
var f=Math.max(Math.abs(b-S[0]),Math.max(Math.abs(Y-S[1]),Math.abs(P-S[2])));return w==0?255:f};G.Us=function(Z,S){if(S)G.px.call(this);
else if(Z)G.px.call(this,[10,49],G._j,"tools/camove");else G.px.call(this,[10,26],G.WS,"tools/patch");
this.sI=null;this.IH=null;this.n=null;this.wM=null;this.Ku=new ar;this.tn=null;this.P5=null};G.Us.prototype=new G.px;
G.Us.prototype.Os=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y);if(Z.N&&T.eI(w,Z.N.channel,Z.N.rect)){var f=new b4(0,0,Z.c,Z.v),h=f.Yz(Z.N.rect);
if(!Z.bY()||h.h3())return;if(!0){var Q=T.f(h.X());T.JS(Z.N.channel,Z.N.rect,Q,h);Z.N={channel:Q,rect:h}}this.Y$(Z);
this.EB(Z);this.wM=w;this.Ku=new ar(w.x-Z.N.rect.x,w.y-Z.N.rect.y);this.P5=T.f(Z.N.rect.X()*4);this.P5.fill(255);
if(this.xN.patch==1){var e=Z.t[Z.C[0]];e.S0(Z,Z.N,!0);if(e.Ns==null)this.wM=null}this.tn=Z.N.rect.clone()}else{this.IH={H:[w.x,w.y],K:["M"]};
this.sI=w}};G.Us.prototype.Zq=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y);if(this.wM){if(this.xN.patch==1){if(Z.k9.length==0){var f=Z.t[Z.C[0]].Ns,h=w.x-this.Ku.x,Q=w.y-this.Ku.y;
G.sR.MC(Z,Z.C[0],Math.round(h-f.bC.x),Math.round(Q-f.bC.y))}}else this.xs(Z,w,"clone")}if(this.sI){this.IH.K.push("L");
this.IH.H.push(w.x,w.y);this.sI=w;Z.M.LG=this.IH;Z.nd=!0}};G.Us.prototype.Xa=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y);
if(this.wM){var f=Z.N.rect.clone();if(this.id==G._j){var h=Z.t[Z.C[0]];h.Hb(Z,h.Ns);Z.N.rect=this.tn.clone();
var Q=T.f(Z.N.rect.X()*4);T.y8(Z.N.channel,Q,3);this.VH(Z,"sheal",Q,Z.N.rect,Z.N.rect);Z.N.rect=f;f=f.VK(this.tn)}this.xs(Z,w,"heal");
this.finish(Z,f,null,null,!0);Z.D(f);this.wM=null}if(this.sI){var e=G.Ks.cU(this.xN.setop,Y.q(U.Lo),Y.q(U.G_)),l=new d(s.E.TH,!0);
if(this.IH.H.length<=4)l.data=G.Ks.zP();else l.data=G.Ks.M6(this.IH.H,e);S.m(l);this.sI=null;Z.M.LG=null;
Z.nd=!0}};G.Us.prototype.Bw=function(){return this.n};G.Us.prototype.aa=function(Z,S,b,Y,P){G.px.prototype.aa.call(this,Z,S,b,Y,P);
this.uz(P,Y)};G.Us.prototype.uz=function(Z,S){var b="auto;";if(S!=null&&S.q(U.Lo)&&!S.q(U.G_)||this.xN.setop=="union")b="copy";
var Y=new d(s.E.P,!0);Y.data={e:s.U.il,tf:b};if(this.caller)this.caller.m(Y)};G.Us.prototype.xs=function(Z,S,b){var Y=new ar(Math.round(this.wM.x-S.x),Math.round(this.wM.y-S.y));
if(this.xN.patch==1)Y.Ha(-Y.x,-Y.y);this.n=Y;this.VH(Z,b,this.P5,Z.N.rect,Z.N.rect);this.D(Z,Z.N.rect)};
G.jB=function(){G.Us.call(this,!0);this.xN.patch=1};G.jB.prototype=new G.Us(!0,!0);G.J6=function(){G.px.call(this,[10,13],G.agh,"tools/pbucket")};
G.J6.prototype=new G.px;G.J6.prototype.enable=function(Z,S,b,Y){var P=new d(s.E.P,!0);P.data={e:s.U.il,tf:"default"};
S.m(P)};G.J6.prototype.na=function(Z,S){};G.J6.prototype.Xa=function(Z,S,b,Y,P){if(this.It(Y,S,P))return;
if(!Z.bY())return;var w=Z.a._2(P.x,P.y),f=G.IX.Nh(Z,w,this.xN.wconf);if(f==null)return;var h=T.f(f.rect.X()*4);
T._U(h,(b.ui&255)<<16|(b.ui>>8&255)<<8|(b.ui>>16&255)<<0);T.y8(f.channel,h,3);this.Y$(Z);this.VH(Z,"draw",h,f.rect,f.rect);
this.D(Z,f.rect);this.finish(Z,f.rect)};G.Qi=function(){G.Ks.call(this,[10,14],G.a9z,"tools/plasso");
this.Hi="crosshair";this.Mg=[];this.Fw=null;this.IH=null;this.a02=0};G.Qi.prototype=new G.Ks;G.Qi.prototype.disable=function(Z,S,b,Y){this.Jl(Z)};
G.Qi.prototype.UQ=function(Z,S,b,Y){this.Mg=[U.Qz,U.pR]};G.Qi.prototype.jo=function(Z){return this.Mg.indexOf(Z)!=-1};
G.Qi.prototype.wF=function(Z){return this.IH!=null};G.Qi.prototype.Fz=function(){return this.IH!=null};
G.Qi.prototype.K7=function(){return this.IH!=null};G.Qi.prototype.Sw=function(Z,S,b,Y){if(this.IH==null)return;
var P=this.IH,w=P.H,f=w.length-2,h=this.GM;if(this.rb>1&&b.q(U.G_)&&Y.ou){w.push(0,0);P.K.push("L");
f+=2}else if(b.q(U.Lo))h=G.Oa.m1(new ar(w[f-2],w[f-1]),h);w[f]=h.x;w[f+1]=h.y;Z.M.LG=P;Z.nd=!0};G.Qi.prototype.LP=function(Z,S,b,Y){var P=Date.now();
if(this.IH==null)this.IH={H:[this.GM.x,this.GM.y,this.GM.x,this.GM.y],K:["M","L"]};else{this.Sw(Z,S,b,Y);
if(P-this.a02<250||ar.VA(this.GM,new ar(this.IH.H[0],this.IH.H[1]))<5*s.Z()/Z.a.S){this.Fw=this.IH;this.finish(Z,S,b,Y);
this.Jl(Z);return}this.IH.K.push("L");this.IH.H.push(this.GM.x,this.GM.y)}this.a02=P;Z.M.LG=this.IH};
G.Qi.prototype.Jl=function(Z){this.IH=null;this.Mg=[];if(Z!=null){Z.M.LG=null;Z.nd=!0}};G.Qi.prototype.XF=function(Z,S,b,Y){G.Ks.prototype.XF.call(this,Z,S,b,Y);
if(Y.q(U.eZ)&&this.IH==null&&this.Fw&&Z.N!=null){var P=new d(s.E.s);P.T=G._H;P.data={e:"h_stepbck"};
S.m(P);this.UQ(Z,b,Y,null);this.IH=this.Fw;return}if(this.IH==null)return;if(Y.q(U.Qz)||Y.q(U.pR)){this.IH.H.pop();
this.IH.H.pop();this.IH.K.pop();this.Sw(Z,b,Y)}if(Y.q(U.n5)){if(this.IH.H.length>4){this.Fw=this.IH;
this.finish(Z,b,Y)}this.IH=null}if(Y.q(U.eZ)){this.IH=null}Z.M.LG=this.IH;Z.nd=!0};G.Qi.prototype.getSelection=function(Z,S,b,Y){return G.Ks.M6(this.IH.H)};
G.rR=function(){G.Ks.call(this,[10,10],G.abC,"tools/mlasso");this.Hi="crosshair";this.Mg=[];this.b=[];
this.$c=[];this.nZ=[];this.Hv=null;this.Zc=null;this.ye=null;this.V4=0;this._1=0};G.rR.prototype=new G.Ks;
G.rR.prototype.disable=function(Z,S,b,Y){this.clear(Z)};G.rR.prototype.wF=function(Z){return this.b.length!=0};
G.rR.prototype.K7=function(){return this.b.length!=0};G.rR.prototype.jo=function(Z){return this.Mg.indexOf(Z)!=-1};
G.rR.prototype.UQ=function(Z,S,b,Y){this.Mg=[U.Qz,U.pR];var P=this.hH(this.WD,Z);if(this.b.length!=0&&(ar.VA(P,this.b[0])<4*s.Z()/Z.a.S||Date.now()-this.V4<300)){this.TJ(Z,this.b[0]);
this.finish(Z,S,b);this.clear(Z);return}this.V4=Date.now();if(this.b.length!=0)P=this.Lp(P,Z);else{var w=Z.c,f=Z.v,h=T.f(w*f),Q=Z.Zd(),e=w*f*4;
for(var D=0;D<e;D+=4)h[D>>>2]=~~(.5+T.w2(Q[D],Q[D+1],Q[D+2])*(Q[D+3]*(1/255)));this.Hv=T.I6.akb(h,w,f);
this.ye=new Uint16Array(h.length)}this.TJ(Z,P);this._1=b.q(U.G_)?1:0;this.Mn(Z)};G.rR.prototype.TJ=function(Z,S){var b=this.b;
this.$c[b.length]=this.nZ.length;if(b.length!=0){T.I6.St(this.Zc,S.y*Z.c+S.x);var Y=this.GX(Z,S);Y.reverse();
var P=G.rR.VP(Z,Y);this.nZ=this.nZ.concat(P)}b.push(S);this.Bt(Z)};G.rR.prototype.Bt=function(Z){var S=this.b[this.b.length-1],b=S.y*Z.c+S.x;
this.Zc=T.I6.adq(this.Hv.pk,this.Hv.jM,b);this.ye.fill(0)};G.rR.prototype.hH=function(Z,S){return new ar(Math.floor(Math.max(0,Math.min(S.c-1,Z.x))),Math.floor(Math.max(0,Math.min(S.v-1,Z.y))))};
G.rR.prototype.clear=function(Z){this.nZ=[];this.b=[];this.$c=[];this.Hv=null;this.Zc=null;this.ye=null;
if(Z!=null){Z.M.LG=null;Z.M.k_=[];Z.nd=!0}this.Mg=[]};G.rR.prototype.Sw=function(Z,S,b,Y){var P=this.b,w=P.length;
if(w==0)return;var f=this.Lp(this.hH(this.GM,Z),Z),h=this.GX(Z,f);for(var D=0;D<h.length;D++){var Q=h[D],e=new ar(Q%Z.c,Math.floor(Q/Z.c));
if(this.ye[Q]>30&&ar.VA(e,P[w-1])>20){this.TJ(Z,e);return}this.ye[Q]++}if(this._1==1&&Y.ou)this.TJ(Z,f);
this.Mn(Z)};G.rR.prototype.Mn=function(Z){var S=this.b;if(S.length!=0){var b=this.Lp(this.hH(this.GM,Z),Z),Y=this.GX(Z,b);
Y.reverse();var P=G.rR.VP(Z,Y),w=this.nZ.concat(P),f=Z.M.LG={H:w,K:["M"]};for(var D=2;D<w.length;D+=2)f.K.push("L")}Z.M.k_=[];
for(var D=0;D<S.length;D++)Z.M.k_.push(S[D].x+.5,S[D].y+.5);Z.nd=!0};G.rR.prototype.LP=function(Z,S,b,Y){};
G.rR.prototype.XF=function(Z,S,b,Y){if(this.b.length==0)return;if(Y.q(U.Qz)||Y.q(U.pR)){this.b.pop();
this.nZ=this.nZ.slice(0,this.$c[this.b.length]);this.$c.pop();if(this.b.length==0)this.clear(Z);else this.Bt(Z);
this.Mn(Z)}if(Y.q(U.n5)){var P=this.hH(this.GM,Z);this.TJ(Z,P);this.finish(Z,b,Y);this.clear(Z)}if(Y.q(U.eZ)){this.clear(Z)}};
G.rR.prototype.getSelection=function(Z,S,b,Y){return G.Ks.M6(this.nZ)};G.rR.prototype.GX=function(Z,S){var b=this.b[this.b.length-1],Y=b.y*Z.c+b.x,P=S.y*Z.c+S.x;
if(this._1==1)return[P,Y];var w=[P];while(P!=Y){P=this.Zc.ar[P];w.push(P);if(w.length>5e3){console.log(w);
throw"e"}}return w};G.rR.VP=function(Z,S){var b=[],Y=Z.c;for(var D=0;D<S.length;D++){var P=S[D];b.push(P%Y+.5,Math.floor(P/Y)+.5)}return b};
G.rR.prototype.Lp=function(Z,S){var b=S.c,Y=S.v,P=Z.clone(),f=3;T.I6.St(this.Zc,Z.y*b+Z.x);var w=this.Zc.qJ[Z.y*b+Z.x];
for(var h=-f+1;h<f;h++)for(var Q=-f+1;Q<f;Q++){var e=Z.x+Q,l=Z.y+h;if(e<0||e>=b||l<0||l>=Y)continue;
T.I6.St(this.Zc,l*b+e);if(this.Zc.qJ[l*b+e]<w)P.Ha(e,l)}return P};G._n=function(){G.$W.call(this,[10,36],G.a06,"tools/ruler");
this.mu=null;this.ZQ=null;this.Kg=null;this.EI=null};G._n.prototype=new G.$W;G._n.prototype.wF=function(Z){return Z.ou};
G._n.prototype.disable=function(Z,S,b,Y){this.mu=this.ZQ=null;if(Z)this._5(Z)};G._n.prototype.Os=function(Z,S,b,Y,P){var w=Z.a.S/s.Z(),f=Z.a._2(P.x,P.y);
f.x=Math.round(f.x);f.y=Math.round(f.y);var h=this.mu;if(h&&ar.VA(f,h[0])*w<6)this.ZQ=[0];else if(h&&ar.VA(f,h[1])*w<6)this.ZQ=[1];
else if(h&&G._n.aoo(h[0],h[1],f)*w<6&&Math.min(h[0].x,h[1].x)-5<=f.x&&f.x<=Math.max(h[0].x,h[1].x)+5&&Math.min(h[0].y,h[1].y)-5<=f.y&&f.y<=Math.max(h[0].y,h[1].y)+5){this.ZQ=[0,1];
this.EI=[h[0].clone(),h[1].clone()];this.Kg=f}else{this.mu=[f.clone(),f.clone()];this.ZQ=[1]}};G._n.prototype.Zq=function(Z,S,b,Y,P){if(this.ZQ==null)return;
var w=this.mu,f=this.ZQ,h=Z.a._2(P.x,P.y);h.x=Math.round(h.x);h.y=Math.round(h.y);if(f.length==2){var Q=h.x-this.Kg.x,e=h.y-this.Kg.y;
w[0]=this.EI[0].clone();w[0].offset(Q,e);w[1]=this.EI[1].clone();w[1].offset(Q,e)}else{w[f[0]].Ha(h.x,h.y);
if(Y.q(U.Lo)){w[f[0]]=G.Oa.m1(w[1-f[0]],w[f[0]])}}this._5(Z);this.am(S,s.E.P,{e:s.U.jO,T:this.id,ake:w[0],SP:w[1],GY:Z.GY,anO:Z.c})};
G._n.prototype.Xa=function(Z,S,b,Y,P){this.ZQ=null};G._n.prototype.am=function(Z,S,b){var Y=new d(S,!0);
Y.data=b;Z.m(Y)};G._n.prototype._5=function(Z){var S=this.mu;if(S==null){Z.M.LG=null;Z.M.k_=[]}else{var b=[S[0].x,S[0].y,S[1].x,S[1].y];
Z.M.LG={K:["M","L"],H:b};Z.M.k_=b}Z.nd=!0};G._n.aoo=function(Z,S,b){var Y=S.x-Z.x,P=S.y-Z.y,w=Math.abs(P*b.x-Y*b.y+S.x*Z.y-S.y*Z.x),f=Math.sqrt(Y*Y+P*P);
return w/f};G.uq=function(){G.px.call(this,[10,19],G.uM,"tools/sharpen");this.L9="copy"};G.uq.prototype=new G.px;
G.uq.prototype.Os=function(Z,S,b,Y,P){var w=this.xN.pdetail?b6.XQ:b6.uM;if(Y.q(U.G_))w=b6.mk;this.AG(Z,b,Y,P,this.xN.strn,w);
if(this.yg==null)return;this.pT(Z)};G.uq.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);if(this._o)this.j6(Z,b,P);
if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.pp=function(){G.px.call(this,[10,24],G.Cc,"tools/shbrush");
this.L9="draw";this.xN.opacity=.5};G.pp.prototype=new G.px;G.pp.prototype.Os=function(Z,S,b,Y,P){this.AG(Z,b,Y,P,1);
if(this.yg==null)return;this.EB(Z);this.pT(Z)};G.pp.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);
if(this._o)this.j6(Z,b,P);if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.pp.prototype.Xa=function(Z,S,b,Y,P){if(this.yg==null)return;
this.VH(Z,"sheal",this.yg.f9(),this.yg.Ij(),this.yg.tj(),null);this.D(Z,this.yg.tj());G.px.prototype.Xa.call(this,Z,S,b,Y,P)};
G.oX=function(){G.px.call(this,[10,20],G.ZB,"tools/smudge");this.L9="copy"};G.oX.prototype=new G.px;
G.oX.prototype.Os=function(Z,S,b,Y,P){this.AG(Z,b,Y,P,this.xN.strn,b6.ZB);if(this.yg==null)return;this.pT(Z)};
G.oX.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);if(this._o)this.j6(Z,b,P);if(this.yg==null)return;
if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.MY=function(){G.px.call(this,[10,23],G.y7,"tools/sponge");
this.L9="sponge"};G.MY.prototype=new G.px;G.MY.prototype.Os=function(Z,S,b,Y,P){this.AG(Z,b,Y,P,this.xN.flow);
if(this.yg==null)return;this.pT(Z)};G.MY.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);if(this._o)this.j6(Z,b,P);
if(this.yg==null)return;if(!P.ou)return;this.b7(Z,b,Y,P);this.pT(Z)};G.IL=function(){G.$W.call(this,[10,17],G.$j,"tools/zoom");
this.oN=!1;this.tK=!0;this.eG=0;this.eN=null;this.Gf=null;this.Hh=0;this.O4=null;this.rc=0;this._8=new a5([{name:[8,0],cX:"Ctrl + +"},{name:[8,1],cX:"Ctrl + -",uJ:!0},{name:[20,3],cX:"Ctrl + 0"},{name:["VAR0: 100%",[20,2]],cX:"Ctrl + 1"}],[{g:s.E.s,T:G.$j,k:{e:"zoom",tK:!0}},{g:s.E.s,T:G.$j,k:{e:"zoom",tK:!1}},{g:s.E.s,T:G.$j,k:{e:"adapt",G:"fitscr"}},{g:s.E.s,T:G.$j,k:{e:"adapt",G:"pixel"}}])};
G.IL.prototype=new G.$W;G.IL.prototype.nL=function(Z,S,b,Y,P){var w=this._8;w.B();w.parent=S;w.update(Z,b);
var f=new d(s.E.P,!0);f.data={e:s.U.Gc,Bq:w,x:P.w$+2,y:P.rE+1};S.m(f)};G.IL.prototype.enable=function(Z,S,b,Y){this.kG(S,Y);
if(Z&&Date.now()-this.eG<300)this.Pf({e:"adapt",G:"pixel"},S,Z,Y,b);this.eG=Date.now()};G.IL.prototype.Os=function(Z,S,b,Y,P){this.Gf=new ar(P.x,P.y);
this.Hh=Z.a.S;this.O4=Z.a.n.clone()};G.IL.prototype.Zq=function(Z,S,b,Y,P){if(this.Gf==null)return;var w=Math.exp(Math.log(this.Hh)+(P.x-this.Gf.x)/64);
w=Math.max(.02,Math.min(32,w));Z.a.S=this.Hh;Z.a.n=this.O4.clone();this.Pf({e:"zoom",S:w,TX:this.Gf},S,Z,Y,b)};
G.IL.prototype.Xa=function(Z,S,b,Y,P){if(ar.VA(this.Gf,P)<4){var w=this.hM(Y);this.Pf({e:"zoom",tK:w,TX:P},S,Z,Y,b)}this.Gf=null};
G.IL.Qy=[32,16,12,8,6,5,4,3,2,1,2/3,1/2,1/2*(2/3),1/4,1/4*(2/3),1/8,1/8*(2/3),1/16,1/16*(2/3),1/32,1/32*(2/3),1/64];
G.IL.mZ=function(Z,S,b,Y){var P=1;while(Z*P*1/2>b||S*P*1/2>Y)P*=1/2;if(Z*P*2/3>b||S*P*2/3>Y)P*=1/2;else if(Z*P>b||S*P>Y)P*=2/3;
return P};G.IL.kC=function(Z,S){var b=G.IL.AC(Z);if(S&&b==0)return Z;if(!S&&b==G.IL.Qy.length-1)return Z;
return G.IL.Qy[S?b-1:b+1]};G.IL.AC=function(Z){var S=0;while(G.IL.Qy[S]>Z)S++;return S};G.IL.n6=function(Z,S,b,Y){var P=Z.hp;
if(Y==0||Y==null){Y=G.IL.kC(Z.S,b);if(Y==Z.S)return}var w=Z._2(S.x,S.y);if(P.c*Y<=Z.a_.c&&P.v*Y<=Z.a_.v){Z.n.Ha(0,0);
Z.S=Y}else{var f=Z.Gz(),h=Z.S/Y;f.translate(-w.x,-w.y);f.scale(h,h);f.translate(w.x,w.y);Z.BL(f)}};G.IL.prototype.Pf=function(Z,S,b,Y,P){if(Z.e=="pzoom"){if(typeof Z.G=="string")return;
Z={e:"zoom",S:Z.G/100}}var w=0,f=!1,h=null;if(Z.e=="adapt"){var Q=0;if(Z.G=="pixel")Q=1;if(Z.G=="fitscr"){var Q=0,e=b.a.a_.c,l=b.a.a_.v;
Q=Math.min((e-14)/b.c,(l-14)/b.v)}h=new ar(Math.round(b.a.a_.c/2),Math.round(b.a.a_.v/2));w=Q;G.IL.n6(b.a,h,f,w);
b.Pd=!0}if(Z.e.startsWith("multi")){function O(I){var E=I[0].x-I[1].x,c=I[0].y-I[1].y;return Math.sqrt(E*E+c*c)}function m(I){return new ar((I[0].x+I[1].x)/2,(I[0].y+I[1].y)/2)}var V=Z.JM,q=m(V);
if(Z.e=="multidown"){this.eN=[V,b.a.S,b.a._2(q.x,q.y)]}else{w=this.eN[1]*O(V)/O(this.eN[0]);if(w>=1)w=Math.min(32,Math.round(w));
else{var K=0,z=1e9,t=G.IL.Qy;for(var D=0;D<t.length;D++){var H=Math.abs(1-w/t[D]);if(H<z){z=H;K=D}}w=t[K]}if(w!=b.a.S)G.IL.n6(b.a,q,f,w);
var i=this.eN[2],y=b.a.pg(i.x,i.y),j=b.a.n;j.x=Math.round(j.x+q.x-y.x);j.y=Math.round(j.y+q.y-y.y);b.Pd=!0}}if(Z.e=="scroll"){h=Z.TX;
this.rc+=Z.FV.y;var J=14;if(this.rc<-J){f=!0;this.rc=Math.max(this.rc+J,-(J-1))}else if(this.rc>J){f=!1;
this.rc=Math.min(this.rc-J,J-1)}else return;G.IL.n6(b.a,h,f,w);b.Pd=!0}if(Z.e=="zoom"){h=Z.TX?Z.TX:new ar(Math.round(b.a.a_.c/2),Math.round(b.a.a_.v/2));
if(Z.S!=null)w=Z.S;else f=Z.tK;G.IL.n6(b.a,h,f,w);b.Pd=!0}if(Z.e=="mskView"){var A=b.t[b.C[0]],a=A.PC==3?A.fY(b).d:A.Y6();
if(Z.G==0){b.a.o=[1,1,1];a.Ag=!1}if(Z.G==1){b.a.o=[1,1,1];a.Ag=!0}if(Z.G==2){b.a.o=[0,0,0];a.Ag=!0}for(var D=0;
D<b.eP.length;D++)b.eP[D].Ag=!1;b.k9=[];b.nd=!0}};G.IL.prototype.XF=function(Z,S,b,Y){if(this.oN!=Y.q(U.G_)){this.oN=Y.q(U.G_);
var P={e:s.U.jO,T:this.id,oN:this.oN},w=new d(s.E.P,!0);w.data=P;S.m(w);this.kG(S,Y)}};G.IL.prototype.kG=function(Z,S){var b=new d(s.E.P,!0),Y=this.hM(S);
b.data={e:s.U.il,tf:Y?"zoom-in":"zoom-out"};Z.m(b)};G.IL.prototype.aa=function(Z,S,b,Y){this.tK=Z.tK;
this.kG(S,Y)};G.IL.prototype.hM=function(Z){var S=this.tK;if(Z.q(U.Ah)&&Z.q(U.cD))S=!0;if(this.oN)S=!S;
return S};G.IL.O2=function(Z,S){if(Z.q(U.G6)||Z.q(U.akv)){S.T=G.$j;S.data={e:"zoom",tK:!0}}if(Z.q(U.Zm)){S.T=G.$j;
S.data={e:"zoom",tK:!1}}if(Z.q(U.tH)){S.T=G.$j;S.data={e:"adapt",G:"fitscr"}}if(Z.q(U.Pg)){S.T=G.$j;
S.data={e:"adapt",G:"pixel"}}};G.Da=function(Z,S,b){G.$W.call(this,Z,S,b);this.mP=null;this.W3=null;
this.$o=null;this.a3q=0};G.Da.prototype=new G.$W;G.Da.prototype.enable=function(Z,S,b,Y,P){this.W3=b;
var w=new d(s.E.P,!0);w.data={e:s.U.il,tf:"default"};S.m(w)};G.Da.prototype.nL=function(Z,S,b,Y,P){if(Z.zl()[0].length==0)return;
var w=new d(s.E.P,!0);w.data={e:s.U.jO,T:this.id,tl:P,o2:Z,Oz:b};S.m(w)};G.Da.prototype.Rk=function(Z,S){var b=new d(s.E.P,!0);
b.data={e:s.U.h4,Sz:bp.XY};if(!S.Wb)Z.m(b);b.data={e:s.U.h4,Sz:bp.Hy};if(!S.Gg.Bf)Z.m(b)};G.Da.prototype.s1=function(Z,S,b,Y){if(b.pH!=this.id)return;
if(Z.C.length==0)return;var P=Z.t[Z.C[0]],w=P.add.vmsk,f=P.add.vstk,h=G.Da.RS(Z,Z.C[0]);this.mP=Z;this.$o=S;
if(P.q3()&&w!=null&&(JSON.stringify(f)!=JSON.stringify(b.ET)||JSON.stringify(h)!=JSON.stringify(b.er))){this.a3q=Date.now();
var Q=new d(s.E.P,!0);Q.data={e:s.U.h4,Sz:bp.kY,G:h};S.m(Q);Q.data={e:s.U.h4,Sz:bp.EN,G:f};S.m(Q)}};
G.Da.prototype.na=function(Z,S){if(this.mP==null)return;if(S==bp._O||S==bp.kY||S==bp.EN){if(Date.now()-this.a3q<50)return;
var b=S==bp.kY,Y=this.mP,P=b?Z.er:Z.ET,w=[];for(var D=0;D<Y.C.length;D++){var f=Y.C[D],h=Y.t[f];if(!h.q3()||h.add.vmsk==null)continue;
w.push(f)}var Q=new d(s.E.s,!0);Q.T=G.kd;Q.data={e:F.Um,U0:w,a1:b,G:P};if(w.length!=0)this.$o.m(Q)}};
G.Da.prototype.a9A=function(Z){if(typeof Z=="number"){var S=new d(s.E.TH,!0);S.data=G.cI.uB(0);S.data.V1.Usng.v.Type.v.Clr.v=T.W.RQ({h:Z>>>16&255,l:Z>>>8&255,O:Z>>>0&255});
this.$o.m(S)}};G.Da.prototype.Pf=function(Z,S,b,Y,P){this.$o=S;if(Z.e=="newfill"){if(Z.vp==0){var w=new d(s.E.P,!0);
w.data={e:s.U.Fy,g9:"colorpicker",gV:P.ui,iy:this.a9A.bind(this)};S.m(w)}}else if(Z.e=="pathedit"){var f=Z.Ox,h="",Q=b.Bf.slice(0),e=b.ph.slice(0),l=b.Bf.slice(0),O=b.ph.slice(0);
if(f=="rnm"){var m=-1-Z.SU,V=Q[m],q=gf.jq(Z.name,V.add);if(m!=0)l[m]=q;else{O=[l.length];l.push(q);l[0]=gf.jq("Work Path")}h="Rename"}else if(f=="new"){l.push(gf.jq("Path "+Q.length));
O=[l.length-1];h="New"}else if(f=="del"){if(O.length==0)return;O.sort(function(I,v){return I-v});if(O[0]==0){l[0]=gf.jq(Q[0].name);
O=O.slice(1)}var K=0;while(O.length!=0){l.splice(O[0]-K,1);O=O.slice(1);K++}h="Delete"}else if(f=="fromsel"){var z=l[0]=gf.jq("Work Path");
O=[0];if(b.N==null)return;var t=b.N.channel.slice(0);for(var D=0;D<t.length;D++)t[D]=t[D]>128?2:1;var H=b.N.rect.clone();
H.lg(1,1);var i=T.f(H.X());T.JS(t,b.N.rect,i,H);var y=hQ.Se(i,H.c,H.v,Math.round(H.X()*5e-4)),j=hQ.zl(y),J=new fR(1,0,0,1,-1+b.N.rect.x,-1+b.N.rect.y);
for(var D=0;D<j.length;D++)T.z.A(j[D].path.H,J,j[D].path.H);for(var D=0;D<j.length;D++){var A=j[D];if(A.color==1&&A.parent==-1)continue;
var a=T.z.Cp(j[D].path,!1);z.add.vmsk.b=z.add.vmsk.b.concat(a.slice(2))}z.add.vogk=F.AU(z.add.vmsk.b);
h="Selection to"}var I=new iA(h+" Path",this);I.data={cv:Q,jp:e,afD:l,Kw:O};if(f=="fromsel"){I.data.O1=b.N;
I.data.iH=null}b.kz(I);this.Ed(I.data,b)}else{var E=b.zl(Z.e=="append"),j=E[0],c=E[1],z=j[c[0]],u=z.add.vmsk,n=z.add.vogk,o=u.clone(),x=u.clone(),g=JSON.stringify(n);
if(Z.e=="remove"){if(x.C.length==0)return;var K=0;for(var D=0;D<x.C.length;D++){n.splice(x.C[D]+K,1);
K--}x.b=T.Y.ajz(x.b,x.C);x.C=[];x.cY=[]}if(Z.e=="append"){G.Da.a4(Z.a5A,x,n)}this.jb(b,z.SU,x,n);this.MT(b,Z.ep,z.SU,o,x.clone(),null,g,JSON.stringify(n))}};
G.Da.O7=function(Z,S){var b=T.Y.amq(Z.b,Z.C),Y=[];for(var D=0;D<Z.C.length;D++)Y.push(JSON.parse(JSON.stringify(S[Z.C[D]])));
return[b,Y]};G.Da.a4=function(Z,S,b){var Y=T.Y.eu(S.b),P=T.Y.eu(Z[0]);S.b=S.b.concat(Z[0].slice(2));
S.C=[];for(var D=0;D<P;D++)S.C.push(Y+D);for(var D=0;D<P;D++)b.push(JSON.parse(JSON.stringify(Z[1][D])))};
G.Da.prototype.jo=function(Z,S){if(S==null)return!1;var b=S.zl(),Y=b[0],P=b[1];if(P.length==0)return!1;
var w=Y[P[0]],f=w.add.vmsk;if(f&&f.C.length+f.cY.length!=0)return[U.Qz,U.pR].indexOf(Z)!=-1};G.Da.prototype.XF=function(Z,S,b,Y){if(Z==null)return;
var P=Z.zl(),w=P[0],f=P[1];if(f.length==0)return;var h=w[f[0]],Q=h.add.vmsk;if(Y.q(U.eZ)||Y.q(U.n5)){Q.cY=[];
Z.nd=!0}if(Q.C.length!=0){var e=Y.sh();if(e.x!=0||e.y!=0){var l=Q.clone(),O=Q.clone(),m=new fR(1,0,0,1,e.x,e.y),V=h.add.vogk,q=JSON.stringify(V);
T.Y.$d(O.b,m,O.C);T.AZ.A(V,T.J.GC(m),O.C);this.jb(Z,h.SU,O,V);this.MT(Z,"Move Paths",h.SU,l,O.clone(),!0,q,JSON.stringify(V))}if(Y.q(U.Qz)||Y.q(U.pR))this.Pf({e:"remove",ep:"Delete Paths"},S,Z,Y,b)}};
G.Da.prototype.MT=function(Z,S,b,Y,P,w,f,h){var Q=new iA(S,this);Q.data={SG:b,SN:Y,EW:P,a1Q:w,aoM:f,i4:h};
Z.kz(Q)};G.Da.prototype.Ed=function(Z,S){if(Z.SG!=null)this.jb(S,Z.SG,Z.EW.clone(),JSON.parse(Z.i4));
else{S.Bf=Z.afD.slice(0);S.ph=Z.Kw.slice(0);S.nd=S.Vc=!0}if(Z.O1||Z.iH){S.N=Z.iH;S.Zu=!0}};G.Da.prototype.zv=function(Z,S){if(Z.SG!=null)this.jb(S,Z.SG,Z.SN.clone(),JSON.parse(Z.aoM));
else{S.Bf=Z.cv.slice(0);S.ph=Z.jp.slice(0);S.nd=S.Vc=!0}if(Z.O1||Z.iH){S.N=Z.O1;S.Zu=!0}};G.Da.prototype.jb=function(Z,S,b,Y){var P=S<0?Z.Bf[-1-S]:S<1e6?Z.t[S]:Z.t[S-1e6].add.TySh;
P.add.vmsk=b;P.add.vogk=Y;if(1e6<=S){eO.lj(P);var w=Z.t[S-1e6],f=P,h=this.W3,Q=new io(f.HK,h.S9),e=gU.PG(Q,f);
w.rect=e._;w.buffer=e.j$;w.D();Z.D()}else if(0<=S){b.Th=!0;P.vK(Z);Z.D()}Z.nd=Z.Vc=!0};G.Da.RS=function(Z,S){var b=Z.t[S],Y=b.add.vstk,P=null;
if(Y&&!Y.fillEnabled.v)P={uR:0};else if(b.add.SoCo)P={uR:1,B2:b.add.SoCo};else if(b.add.GdFl)P={uR:2,B2:b.add.GdFl};
else if(b.add.PtFl)P={uR:3,B2:b.add.PtFl};return P};G.Da.vO=function(Z,S){var b=Z.add.vmsk,Y=Z.add.vstk,P=S.uR;
if(Y)Y.fillEnabled.v=P!=0;if(P>0){var w=["SoCo","GdFl","PtFl"][P-1];for(var D=0;D<3;D++)delete Z.add[["SoCo","GdFl","PtFl"][D]];
Z.add[w]=S.B2}};G.cI=function(Z,S,b,Y){G.Da.call(this,Z,S,b);this.xN={tmode:1,shape:hF.VS(),pshape:0,binop:0,crad:0,irad:40,length:4,sides:5,width:5,tolr:5,tsiz:300,cstr:{QX:0}};
this.al4=Y;this.ke=null;this.BB=null;this.Xx=null};G.cI.prototype=new G.Da;G.cI.prototype.wF=function(Z){return Z.ou&&this.id!=G.vn};
G.cI.prototype.enable=function(Z,S,b,Y,P){this.W3=b;var w=new d(s.E.P,!0);w.data={e:s.U.il,tf:"crosshair"};
S.m(w)};G.cI.prototype._B=function(Z,S,b,Y){};G.cI.prototype.Os=function(Z,S,b,Y,P){var w=this.xN.tmode;
if(w!=2)this.Rk(S,b);if(w==2&&!Z.bY())return;var f=Z.a._2(P.x,P.y);f=G.sR.yK(Z,f,b);this.Xx=[f.x,f.y];
this.ke=f;this.BB=new ar(0,0)};G.cI.prototype.bw=function(Z,S,b){var Y=[this.ke.clone(),S.clone()];if(this.al4)Y=G.cI.pr(Y[0],Y[1],b,!0,this.xN.cstr);
if(Z)Z.a.dl=new b4(Y[0].x,Y[0].y,Y[1].x-Y[0].x,Y[1].y-Y[0].y);return this._B(Y[0],Y[1],b.q(U.Lo),this.Xx)};
G.cI.prototype.Pa=function(Z,S,b){var Y=Z.a._2(S.x,S.y),P=this.xN.cstr;if(P.QX==2){var w=new b4(Y.x-P.x,Y.y-P.y,P.x,P.y),f=G.sR.BG(Z,w,b);
Y.x+=f[0];Y.y+=f[1];G.sR.F$(Z,w,f)}else Y=G.sR.yK(Z,Y,b);return Y};G.cI.prototype.Zq=function(Z,S,b,Y,P){if(this.ke==null)return;
var w=this.Xx,f=w.length,h=P?this.Pa(Z,P,b):new ar(w[f-2],w[f-1]);if(Y.q(U.Ah))this.ke=h.jZ(this.BB);
else this.BB=h.jZ(this.ke);w.push(h.x,h.y);if(this.xN.shape==null)this.xN.shape=b.Tp[0];var Q=this.bw(Z,h,Y)[0],e=T.z.o5(Q);
Z.M.LG=e;if(this.id!=G.vn&&this.id!=G.Kx&&this.id!=G.N8)G.$W.i8(P.x+10,P.y-10,Z.a.dl,Z,b);Z.nd=!0};G.cI.prototype.aa_=function(Z,S,b,Y){var P=Z[4].clone();
if(Y){P.x-=S/2;P.y-=b/2}var w=this._B(P,new ar(P.x+S,P.y+b),!1,this.Xx);this.w1(Z[0],Z[1],Z[2],w)};G.cI.prototype.w1=function(Z,S,b,Y){var P=new d(s.E.TH,!0);
P.data=G.cI.DW(Y[1],b);S.m(P);if(Y[1].v.classID=="customShape"&&Y[1].v.Nm.v.startsWith("--")){var w=Z.zl(),f=w[0],h=w[1],Q=f[h.pop()],e=Q.add.vmsk,l=Q.add.vogk,O=e.clone();
O.b=Y[0];this.jb(Z,Q.SU,O,l)}};G.cI.prototype.Xa=function(Z,S,b,Y,P){if(this.ke==null)return;var w=this.Pa(Z,P,b),f=this.xN.binop,h=this.xN.tmode,Q=this.Xx,e=Q.length;
if(this.id==G.vn&&e<=4){}else if(e<=4){w.x=Math.round(w.x);w.y=Math.round(w.y);var l=new d(s.E.P);l.data={e:s.U.Fy,g9:"createshape",a40:this.aa_.bind(this),a9g:this.name,abe:[Z,S,b,Y,w]};
S.m(l)}else if(e!=2){var O=this.bw(Z,w,Y),m=O[0];if(h==0&&m.length>2){m[2].qU=[1,2,3,0][f];var V=Z.zl(!0),q=V[0],K=V[1],z=q[K.pop()],t=z.add.vmsk,H=z.add.vogk,i=t.clone(),y=t.clone(),j=JSON.stringify(H);
y.b=y.b.concat(m.slice(2));y.C=[T.Y.eu(y.b)-1];var J=T.AZ.XM(O[1]);H.push(J?J:T.AZ.Nv());this.jb(Z,z.SU,y,H);
this.MT(Z,this.name,z.SU,i,y,null,j,JSON.stringify(H))}else if(h==1){this.w1(Z,S,b,O)}else if(h==2){var y=new F.NS;
y.b=y.b.concat(m.slice(2));var A=y.Y6(),a=T.f(A.rect.X()*4);T._U(a,(b.ui&255)<<16|(b.ui>>8&255)<<8|(b.ui>>16&255)<<0);
T.y8(A.channel,a,3);var I=new d(s.E.s,!0);I.T=G.sb;I.data={e:"draw",fZ:{buffer:a,rect:A.rect.clone()},ep:this.name};
S.m(I)}}this.ke=null;Z.M.LG=null;Z.M.yW=null;Z.M.ag=[];Z.a.dl=null;Z.nd=!0};G.cI.prototype.aa=function(Z,S,b,Y,P){for(var b in Z)this.xN[b]=Z[b]};
G.cI.pr=function(Z,S,b,Y,P){var w=Z.x,f=Z.y,h=S.x,Q=S.y;if(P&&P.QX==2){if(Y){h=Math.round(h);Q=Math.round(Q)}w=h-P.x;
f=Q-P.y}else{var e=0;if(P&&P.QX==1)e=P.y/P.x;else if(b&&b.q(U.Lo))e=1;if(e!=0){if(Y){if(w<h)w=Math.floor(w);
else w=Math.ceil(w);if(f<Q)f=Math.floor(f);else f=Math.ceil(f)}var l=Math.abs(h-w),O=Math.abs(Q-f),m=l;
if(O/l<e)m*=O/l/e;h=h>w?w+m:w-m;Q=Q>f?f+m*e:f-m*e}if(b&&b.q(U.G_)){w-=h-w;f-=Q-f}}var Z=new ar(w,f),S=new ar(h,Q);
if(Y)G.cI.a0v(Z,S);return[Z,S]};G.cI.a0v=function(Z,S){if(Z.x>S.x){var b=Z.x;Z.x=S.x;S.x=b}if(Z.y>S.y){var b=Z.y;
Z.y=S.y;S.y=b}Z.x=Math.floor(Z.x);Z.y=Math.floor(Z.y);S.x=Math.ceil(S.x);S.y=Math.ceil(S.y)};G.cI.a5_=function(){return{classID:"Mk",null:{t:"obj ",v:[{t:"Clss",v:{classID:"contentLayer"}}]},Usng:{t:"Objc",v:{classID:"contentLayer",Type:{t:"Objc",v:{}}}}}};
G.cI.uB=function(Z,S){var b=G.cI.a5_();if(S==null)S=JSON.parse(JSON.stringify(a4.BH[Z]));dK.AK.zV(S,b.Usng.v.Type.v,Z);
return{uf:"make",V1:b}};G.cI.DW=function(Z,S){var b=S.er,Y=JSON.parse(JSON.stringify(S.ET));if(b.uR==0)Y.fillEnabled.v=!1;
var P=G.cI.uB(Math.max(0,b.uR-1),b.B2);P.V1.Usng.v.Shp=Z;P.V1.Usng.v.strokeStyle={t:"Objc",v:Y};return P};
G.S3=function(){G.Da.call(this,[10,29],G.ae,"tools/pen");this.i5=null;this.mh=null;this.Ko=1;this.abF=0;
this.Az=null;this.tQ=!1;this.Gh=!1;this._Q=!1};G.S3.prototype=new G.Da;G.S3.prototype.wF=function(Z){return this.i5!=null};
G.S3.prototype.XF=function(Z,S,b,Y){G.Da.prototype.XF.call(this,Z,S,b,Y);if(!Y.q(U.G_))this._Q=!1};G.S3.prototype.Os=function(Z,S,b,Y,P){this.Rk(S,b);
var w=Z.a._2(P.x,P.y),V,q;w.x=Math.round(w.x);w.y=Math.round(w.y);var f=G.sR.yK(Z,w,b),h=Z.zl(this.Ko==0),Q=h[0],e=h[1],l=Q[e.pop()],O=l?l.add.vmsk:null,m=4*s.Z()/Z.a.S;
if(O)V=T.Y.eI(O.b,w,!0,m);var K=Y.q(U.G_);if(this.Ko==1&&(O==null||O.cY.length==0&&V.SU==-1)){var z=new d(s.E.TH,!0),t=T.AZ.Ud("customShape",[0,0,1,1],null,null,null,"--");
z.data=G.cI.DW(t,b);S.m(z);h=Z.zl(!0);Q=h[0];e=h[1];l=Q[e.pop()];O=l.add.vmsk;O.b=O.b.slice(0,2)}var H=l.add.vogk;
this.i5=O.clone();this.mh=JSON.stringify(H);var i=O.b,y=T.Y.eu(i);q=T.Y.D7(O.b,new b4(w.x-m,w.y-m,m*2,m*2),O.cY);
V=T.Y.eI(O.b,w,!0,m);var j=q[0].length+q[1].length+q[2].length;if(V.SU!=-1&&q[0].length==0){var J=T.Y.dq(i,V.SU);
while(i[J].length<=V.Rs){V.Rs-=i[J].length;J+=i[J].length+1}i[J].length++;i.splice(J+2+V.Rs,0,{type:4,hQ:f.clone(),I:f.clone(),e$:f.clone()});
O.cY=[J+2+V.Rs]}else if(j!=0&&K){var A=0;for(var D=0;D<3;D++)if(q[D].length!=0){A=q[D][0];this.Gh=D==1;
break}if(q[0].length!=0){var a=O.b.length-1,I=O.b[A];I.e$=I.I.clone();var E=I.type>=3?3:0;if(A!=a){I.hQ=I.I.clone();
I.type=E+1;this._Q=!0}else I.type=E+2}O.cY=[A]}else if(q[0].length==1&&i[q[0][0]-1]&&i[q[0][0]-1].qU==null){var A=q[0][0],J=T.Y.tG(i,A);
J=T.Y.dq(i,J);var c=J+i[J].length;if(A!=c){i[J].length--;i.splice(A,1);c--}O.cY=[c]}else{var u=0;if(O.cY.length!=1){O.C=[y];
i.push({type:3,length:1,qU:[1,2,3,0][this.abF],oY:0,uT:0,Y9:0});u=i.length;H.push(T.AZ.Nv())}else{var n=O.cY[0],o=T.Y.tG(i,n),J=T.Y.dq(i,o);
n=J+i[J].length;if(ar.VA(w,i[J+1].I)<m){i[J].type=0;O.cY=[J+1];this.Az=f;this.tQ=!0;this.jb(Z,l.SU,O,H);
Z.nd=!0;return}i[J].length++;u=n+1;if(n==J+1&&i[J].length!=2)u=J+1}if(Y.q(U.Lo)&&i[u-1]&&i[u-1].I)f=G.Oa.m1(i[u-1].I,f);
i.splice(u,0,{type:4,hQ:f.clone(),I:f.clone(),e$:f.clone()});O.cY=[u];this.Az=f}this.jb(Z,l.SU,O,H);
Z.nd=!0};G.S3.prototype.Zq=function(Z,S,b,Y,P){if(this.i5==null)return;var w=Z.a._2(P.x,P.y),f=G.sR.yK(Z,w,b),h=Z.zl(this.Ko==0),Q=h[0],e=h[1],l=Q[e.pop()],O=l.add.vmsk,m=O.b,V=m[O.cY[0]];
if(Y.q(U.Ah)){if(Y.q(U.Lo))f=G.Oa.m1(this.Az,f);var q=V.I.jZ(V.e$),K=V.hQ.jZ(V.I);V.e$=f;V.I=f.add(q);
V.hQ=V.I.add(K)}else{if(Y.q(U.Lo))f=G.Oa.m1(V.I,f);if(this.Gh){var z=V.hQ;V.hQ=V.e$;V.e$=z}if(this.tQ){var t=ar.VA(V.I,f),H=t==0?0:ar.VA(V.I,V.e$)/t;
V.e$.x=V.I.x+H*(f.x-V.I.x);V.e$.y=V.I.y+H*(f.y-V.I.y)}else V.e$=f;if(Y.q(U.G_)&&!this._Q)V.type=5;else{V.type=4;
V.hQ=V.I.add(V.I.jZ(f))}this.Az=f;if(this.Gh){var z=V.hQ;V.hQ=V.e$;V.e$=z}}this.jb(Z,l.SU,O,l.add.vogk);
Z.nd=!0};G.S3.prototype.Xa=function(Z,S,b,Y,P){if(this.i5==null)return;var w=Z.zl(this.Ko==0),f=w[0],h=w[1],Q=f[h.pop()],e=Q.add.vmsk,l=Q.add.vogk;
if(this.tQ){e.cY=[];this.jb(Z,Q.SU,e,Q.add.vogk)}this.MT(Z,this.tQ?"Close Path":"Add Anchor Point",Q.SU,this.i5,e.clone(),null,this.mh,JSON.stringify(l));
this.tQ=!1;this.Gh=!1;this._Q=!1;this.i5=null};G.S3.prototype.aa=function(Z,S,b,Y,P){this.Ko=Z.tmode;
this.abF=Z.binop};G.uY=function(){G.cI.call(this,[10,30],G.vn,"tools/fpen",!1)};G.uY.prototype=new G.cI;
G.uY.prototype._B=function(Z,S,b,Y){return[T.Y.jx(Y,this.xN.tolr),T.AZ.Ud("customShape",[0,0,1,1],null,null,null,"--")]};
G.Xr=function(){G.Da.call(this,[10,27],G.tp,"tools/pselect");this.e7=null;this.jT=!1;this.IH=null;this.i5=null;
this.gJ=null;this.mh=null;this.dP=null;this.iz=null;this.SM=null;this.Gb=null};G.Xr.prototype=new G.Da;
G.Xr.prototype.wF=function(Z){return Z.ou};G.Xr.prototype.Os=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y),f=Z.zl(),h=f[0],Q=f[1],e,l;
for(var D=0;D<Q.length;D++){var O=h[Q[D]],m=O.add.vmsk,V=T.Y.eI(m.b,w).SU;if(V!=-1){this.IH=e=O;l=V}for(var q=0;
q<m.mu.length;q++){var K=T.Y.nt(m.b,m.mu[q]);if(K==null)continue;var z=ar.VA(K,w);if(z<4*s.Z()/Z.a.S){var t=Z.t[O.SU-1e6].add.TySh,H=t.HK.Curve,i=t.A,y=H.Reversed;
H.Reversed=!1;var H=io.Nq(t.HK.Curve);H.Reversed=y;T.z.A(H[0],i,H[0]);this.SM=[H,q,i.w*i.KU-i.O*i.tE];
this.IH=e=O;l=0}}if(this.SM)break}if(e!=null){var m=e.add.vmsk;m.cY=[];var j=m.C.indexOf(l);if(Y.q(U.Lo)){if(j==-1){m.C.push(l);
this.jT=!0}else m.C.splice(j,1)}else{if(j==-1)m.C=[l];this.jT=!0}this.iz=T.Y.Al(m.b,m.C)}this.e7=w;this.Gb=new bv(w);
Z.Vc=!0;Z.nd=!0};G.Xr.prototype.Zq=function(Z,S,b,Y,P){if(this.e7==null)return;var w=Z.a._2(P.x,P.y);
if(this.jT){w=this.Gb.Ae(w,Y);var f=this.IH;if(this.i5==null){this.i5=this.gJ=f.add.vmsk.clone();this.mh=this.dP=JSON.stringify(f.add.vogk);
if(Y.q(U.G_)){var h=this.i5.clone(),Q=JSON.parse(this.mh),e=G.Da.O7(h,Q);G.Da.a4(e,h,Q);this.gJ=h;this.dP=JSON.stringify(Q)}}var h=this.gJ.clone(),Q=JSON.parse(this.dP);
if(this.SM){var l=this.SM,O=l[0][0],m=T.z.zw(O,w.x,w.y);h.mu[l[1]]=l[0][1][m];var V=O[m*2],q=O[m*2+1],K=(O[m*2+2]-V)*(w.y-q)-(O[m*2+3]-q)*(w.x-V);
if(l[2]<0)K=-K;h.No=K>0}else{var z=this.iz.clone(),t=z.x,H=z.y;z.offset(w.x-this.e7.x,w.y-this.e7.y);
z.x=Math.round(z.x);z.y=Math.round(z.y);var i=G.sR.BG(Z,z,b),y=new fR(1,0,0,1,z.x-t+i[0],z.y-H+i[1]);
T.Y.$d(h.b,y,h.C);T.AZ.A(Q,T.J.GC(y),h.C);G.sR.F$(Z,z,i)}this.jb(Z,f.SU,h,Q)}else{var j=this.e7;Z.M.LG=T.z.X6(new b4(j.x,j.y,w.x-j.x,w.y-j.y));
Z.nd=!0}};G.Xr.prototype.Xa=function(Z,S,b,Y,P){if(this.e7==null)return;var w=Z.a._2(P.x,P.y),f=this.IH,h=f?f.add.vmsk:null;
if(this.jT){var Q=JSON.stringify(f.add.vogk);if(!this.e7.Oh(w))this.MT(Z,"Move Paths",f.SU,this.i5,h,null,this.mh,Q);
if(Z!=null&&Z.M.yW){Z.M.yW=null;Z.nd=!0}}else{if(h){var e=this.e7,l=new b4(e.x,e.y,w.x-e.x,w.y-e.y),O=T.Y.aes(h.b,l);
if(Y.q(U.Lo)){for(var D=0;D<O.length;D++)if(h.C.indexOf(O[D])==-1)h.C.push(O[D])}else h.C=O}Z.M.LG=null;
Z.nd=!0}this.e7=null;this.i5=null;this.SM=null;this.jT=!1;this.Gb=null};G.Xr.prototype.s1=function(Z,S,b,Y){G.Da.prototype.s1.call(this,Z,S,b,Y);
if(b.pH!=this.id)return;if(Z.C.length==0)return;var P=Z.zl(),w=P[0],f=P[1];if(f.length==0)return;var h=w[f[0]],Q=h.add.vmsk,e=h.add.vstk,l=h.add.vogk,O=new d(s.E.P,!0);
O.data={e:s.U.jO,T:this.id,Pp:"main",$h:Q?Q:null,AZ:l};S.m(O)};G.Xr.prototype.aa=function(Z,S,b,Y,P){var w=Z.ms;
if(w.$h){var f=b.zl(),h=f[0],Q=f[1];if(Q.length==0)return;var e=h[Q[0]],l=e.add.vmsk.clone(),O=JSON.stringify(e.add.vogk),m=w.$h;
this.jb(b,e.SU,m,w.AZ);var V=[18,5];if(l.b.length==m.b.length)V=l.C[0]==m.C[0]?"Fill Rule":"Path Order";
this.MT(b,V,e.SU,l,m,null,O,JSON.stringify(w.AZ))}};G.Cj=function(){G.Da.call(this,[10,28],G.aG,"tools/dselect");
this.jy=-1;this.Dy=-1;this.YZ=null;this.e7=null;this.IH=null;this.i5=null;this.mh=null;this.mP=null;
this.V4=0;this.amW={psnap:!1};this.Gb=null};G.Cj.prototype=new G.Da;G.Cj.prototype.wF=function(Z){return Z.ou};
G.Cj.prototype.aa=function(Z){this.amW=Z};G.Cj.prototype.Pf=function(Z,S,b,Y,P){if(Z.e=="crnr"){if(b==null)return;
var w=b.zl(),f=w[0],h=w[1];if(h.length==0){alert("No paths selected");return}var Q=f[h[0]],e=Q.add.vmsk;
if(e.cY.length==0){alert("No corners selected");return}for(var D=0;D<e.cY.length;D++){var l=e.b[e.cY[D]];
if(!l.I.Oh(l.e$)||!l.I.Oh(l.hQ)){alert("Only sharp corners can be rounded");return}}if(this.i5==null){this.i5=Q.add.vmsk.clone();
this.mh=JSON.stringify(Q.add.vogk);this.IH=Q;this.mP=b}var O=new d(s.E.P,!0);O.data={e:s.U.Fy,g9:"cornerradius",a7:5,s6:this.a3t.bind(this)};
S.m(O)}else G.Da.prototype.Pf.call(this,Z,S,b,Y,P)};G.Cj.prototype.a3t=function(Z){if(Z=="confirm"){var S=this.mP,b=this.IH,Y=b.add.vmsk,P=b.add.vogk;
this.MT(S,[12,94,0],b.SU,this.i5,Y,null,this.mh,JSON.stringify(P));this.Jl();return}var Y=this.i5.clone(),P=JSON.parse(this.mh),w=Y.cY;
if(Z=="cancel"){}else{var f=[];for(var D=0;D<w.length;D++){var h=w[D],Q=T.Y.tG(Y.b,h,!0),O=0;if(f.indexOf(Q)!=-1)continue;
f.push(Q);var e=T.Y.dq(Y.b,Q,!0),l=Y.b[e].length,m=[];for(var V=0;V<l;V++){var q=Y.cY.indexOf(e+V+1)==-1?0:Z;
m.push(q);if(q!=0)O++}T.Y.ns(Y.b,e,m);for(var V=0;V<w.length;V++)if(w[V]>e+l)w[V]+=O}this.R_(Y,P);Y.cY=[]}this.jb(this.mP,this.IH.SU,Y,P);
if(Z=="cancel")this.Jl()};G.Cj.prototype.disable=function(Z,S,b,Y){this.rL(Z)};G.Cj.prototype.Os=function(Z,S,b,Y,P){this.rL(Z);
var w=Z.a._2(P.x,P.y),O,m,V;this.YZ=w.clone();var f=Z.zl(),h=f[0],Q=f[1];if(Q.length==0)return;var e=4*s.Z()/Z.a.S,l=new b4(w.x-e,w.y-e,e*2,e*2);
for(var q=0;q<Q.length;q++){O=this.IH=h[Q[q]];m=O.add.vmsk;V=T.Y.D7(m.b,l);if(V[0].length+V[1].length+V[2].length!=0)break}var K=[!1,!1,!1];
for(var D=0;D<3;D++){for(var z=0;z<V[D].length;z++)if(m.cY.indexOf(V[D][z])!=-1){V[D]=[V[D][z]];K[D]=!0;
break}}if(V[0].length!=0&&(K[0]||!K[1]&&!K[2])){var t=V[0][0],H=m.cY.indexOf(t);if(Y.q(U.Lo)){if(H==-1)m.cY.push(t);
else{m.cY.splice(H,1);Z.nd=!0;return}}else if(H==-1)m.cY=[t];this.jy=t;this.Dy=0}else if(V[1].length!=0&&(K[1]||!K[2])){this.jy=V[1][0];
this.Dy=1}else if(V[2].length!=0){this.jy=V[2][0];this.Dy=2}else{var i=T.Y.eI(m.b,w,!0,e);if(i.SU==-1)this.e7=w;
else{m.C=[i.SU];m.cY=[]}}if(this.i5==null){this.i5=O.add.vmsk.clone();this.mh=JSON.stringify(O.add.vogk)}this.Gb=new bv(w);
Z.nd=!0};G.Cj.prototype.Zq=function(Z,S,b,Y,P){if(Z==null)return;var w=Z.a._2(P.x,P.y),f=this.IH;if(this.jy!=-1){var h=this.i5.clone(),Q=f.add.vogk,e=h.b[this.jy];
e=[e.I,e.hQ,e.e$][this.Dy];if(Y.q(U.Lo)){w=this.Gb.Ae(w,Y);w.x+=e.x-this.YZ.x;w.y+=e.y-this.YZ.y}else{if(this.amW.psnap){w.x=Math.round(w.x);
w.y=Math.round(w.y)}w=G.sR.yK(Z,w,b)}if(this.Dy==0){var l=new fR(1,0,0,1,w.x-e.x,w.y-e.y);T.Y.$d(h.b,l,null,h.cY)}else{var O=h.b[this.jy],m=O.hQ,V=O.e$;
if(this.Dy==2){m=O.e$;V=O.hQ}m.Ha(w.x,w.y);if(O.type==1||O.type==4){var q=ar.VA(m,O.I),K=ar.VA(V,O.I);
if(K!=0){V.x=O.I.x-(m.x-O.I.x)*(K/q);V.y=O.I.y-(m.y-O.I.y)*(K/q)}}}this.R_(h,Q);this.jb(Z,f.SU,h,Q)}else if(this.e7!=null){var z=this.e7;
Z.M.LG=T.z.X6(new b4(z.x,z.y,w.x-z.x,w.y-z.y));Z.nd=!0}else{var t=Z.zl(),H=t[0],i=t[1],f,h,J;if(i.length==0)return;
var y=4*s.Z()/Z.a.S,j=new b4(w.x-y,w.y-y,y*2,y*2);for(var A=0;A<i.length;A++){f=H[i[A]];h=f.add.vmsk;
J=T.Y.D7(h.b,j);if(J[0].length+J[1].length+J[2].length!=0)break}this.rL(Z);for(var D=0;D<3;D++){for(var a=0;
a<J[D].length;a++){var I=J[D][a],E=h.b[I];E=D==0?E.I:D==1?E.hQ:E.e$;Z.M.ac.push(Z.M.IK.length>>>1);Z.M.IK.push(E.x,E.y);
Z.nd=!0}}}};G.Cj.prototype.rL=function(Z){if(Z&&Z.M.IK.length!=0){Z.M.IK=[];Z.M.ac=[];Z.nd=!0}};G.Cj.prototype.Xa=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y),f=this.IH,h=f?f.add.vmsk:null,Q=f?f.add.vogk:null;
if(this.jy!=-1){if(Date.now()-this.V4<300){var e=h.b[this.jy],l=this.Dy,O=null;if(l==0){var m=e.hQ.Oh(e.I),V=e.e$.Oh(e.I);
if(!m&&!V){O="Anchor Type";if(e.type==1||e.type==4)e.type++;else{e.type--;e.e$=e.I.add(e.I.jZ(e.hQ))}}else{O="Add Handles";
if(m&&V){e.hQ.x-=30;e.e$.x+=30}else if(m)e.hQ=e.I.add(e.I.jZ(e.e$));else if(V)e.e$=e.I.add(e.I.jZ(e.hQ))}}else{O="Remove Handle";
if(l==1)e.hQ.ky(e.I);else e.e$.ky(e.I)}this.R_(h,Q);this.jb(Z,f.SU,h,Q);this.MT(Z,O,f.SU,this.i5,h,null,this.mh,JSON.stringify(Q))}else if(!this.YZ.Oh(w)){this.MT(Z,"Drag Anchors",f.SU,this.i5,h,null,this.mh,JSON.stringify(Q))}this.V4=Date.now()}else if(this.e7!=null){var q=this.e7,K=new b4(q.x,q.y,w.x-q.x,w.y-q.y);
if(K.c<0)K.x+=K.c;if(K.v<0)K.y+=K.v;K.c=Math.abs(K.c);K.v=Math.abs(K.v);var z=T.Y.D7(h.b,K);h.cY=z[0].concat(Y.q(U.Lo)?h.cY:[]);
Z.M.LG=null}this.Jl();Z.nd=!0};G.Cj.prototype.Jl=function(){this.IH=null;this.i5=null;this.e7=null;this.jy=this.Dy=-1;
this.Gb=null};G.Cj.prototype.R_=function(Z,S){for(var D=0;D<Z.cY.length;D++){var b=T.Y.tG(Z.b,Z.cY[D]);
T.AZ.QK(S,b)}};G.Cj.prototype.XF=function(Z,S,b,Y){if(Z==null)return;var P=Z.zl(),w=P[0],f=P[1];if(f.length==0)return;
var h=w[f[0]],Q=h.add.vmsk;if(Q==null||Q.cY.length==0)return;var e=h.add.vogk,l=JSON.stringify(e),O=Y.sh();
if(O.x!=0||O.y!=0){var m=Q.clone(),V=Q.clone(),q=new fR(1,0,0,1,O.x,O.y);T.Y.$d(V.b,q,null,V.cY);this.R_(V,e);
this.jb(Z,h.SU,V,e);this.MT(Z,"Move Anchors",Z.C[0],m,V.clone(),!0,l,JSON.stringify(e))}if(Y.q(U.Qz)||Y.q(U.pR)){var m=Q.clone(),V=Q.clone();
V.b=T.Y.ae4(V.b,V.cY,e);var K=T.Y.eu(V.b);for(var D=0;D<V.C.length;D++)if(V.C[D]>=K){V.C.splice(D,1);
D--}V.cY=[];this.jb(Z,h.SU,V,e);this.MT(Z,"Delete Anchors",h.SU,m,V.clone(),!0,l,JSON.stringify(e))}};
G.Cj.prototype.MT=function(Z,S,b,Y,P,w,f,h){var Q=Z.Yl();if(w&&Q!=null&&Q.T==this&&Q.data.a1Q&&Q.data.SG==b&&JSON.stringify(Q.data.SN.cY)==JSON.stringify(Y.cY)){Q.data.EW=P;
Q.data.i4=h}else{var Q=new iA(S,this);Q.data={SG:b,SN:Y,EW:P,a1Q:w,aoM:f,i4:h};Z.kz(Q)}};G.Rect=function(){G.cI.call(this,[10,32],G.L4,"tools/rect",!0)};
G.Rect.prototype=new G.cI;G.Rect.prototype._B=function(Z,S,b){var Y=this.xN.crad,P=S.x-Z.x,w=S.y-Z.y;
return[T.Y.i9.Rect(Z.x,Z.y,P,w,Y),T.AZ.Ud("Rctn",[Z.x,Z.y,S.x,S.y],[Y,Y,Y,Y])]};G.TN=function(){G.cI.call(this,[10,33],G.v0,"tools/ellipse",!0)};
G.TN.prototype=new G.cI;G.TN.prototype._B=function(Z,S,b){var Y=S.x-Z.x,P=S.y-Z.y;return[T.Y.i9.TN(Z.x,Z.y,Y,P),T.AZ.Ud("Elps",[Z.x,Z.y,S.x,S.y])]};
G.mt=function(){G.cI.call(this,[10,34],G.Kx,"tools/pshape",!1)};G.mt.prototype=new G.cI;G.mt.prototype._B=function(Z,S,b){var Y=this.xN.pshape,P=this.xN.crad,w=this.xN.irad/100,f=this.xN.sides,h=this.xN.width,Q=this.xN.tsiz,e=this.xN.length,z;
S=S.clone();if(b){if(Math.abs(S.x-Z.x)<Math.abs(S.y-Z.y))S.x=Z.x;else S.y=Z.y}var l=Z.x,O=Z.y,m=S.x,V=S.y,q=Math.sqrt((m-l)*(m-l)+(V-O)*(V-O)),K=Math.atan2(-V+O,m-l);
if(Y==0)z=T.Y.i9.Fm(l,O,q,K,f,P);if(Y==1)z=T.Y.i9.amw(l,O,q,K,f,P,w);if(Y==2)z=T.Y.i9.ait(Z.x,Z.y,S.x,S.y,h,Q/100);
if(Y==3)z=T.Y.i9.aeU(l,O,q,K,e);return[z,T.AZ.Ud("customShape",[Z.x,Z.y,S.x,S.y],null,null,null,"--")]};
G.mt.prototype.XF=function(Z,S,b,Y){var P=Y.sh(),w=this.xN,f,h;if(P.y!=0){var Q=-P.y,e=w.pshape;if(e<2){f="sides";
h=Math.max(3,Math.min(100,w.sides+Q))}else if(e==2){f="width";h=Math.max(1,Math.min(100,w.width+Q))}else if(e==3){f="length";
h=Math.max(4,Math.min(40,w.length+Q))}}if(P.x!=0){f="pshape";h=Math.max(0,Math.min(3,w.pshape+P.x))}if(f){var l=new d(s.E.P,!0),O={};
O[f]=h;w[f]=h;l.data={e:s.U.jO,T:this.id,Ox:"vals",akA:O};S.m(l);this.Zq(Z,S,b,Y)}};G.kA=function(){G.cI.call(this,[10,35],G.N8,"tools/line",!1)};
G.kA.prototype=new G.cI;G.kA.prototype._B=function(Z,S,b){var Y=this.xN.width;S=S.clone();if(b){S=G.Oa.m1(Z,S)}return[T.Y.i9.kA(Z.x,Z.y,S.x,S.y,Y),T.AZ.Ud("Ln",null,null,[Z.x,Z.y,S.x,S.y],Y)]};
G.Mr=function(){G.cI.call(this,[10,31],G.$g,"tools/cshape",!0)};G.Mr.prototype=new G.cI;G.Mr.prototype._B=function(Z,S,b){var Y=this.xN.shape,P=Y.NA.c/Y.NA.v,w=F.NS.OU(Y.b);
S=S.clone();if(b){S.y=Z.y+(S.x-Z.x)/P}var f=S.x-Z.x,h=S.y-Z.y;T.Y.$d(w,new fR(f,0,0,h,Z.x,Z.y));return[w,T.AZ.Ud("customShape",[Z.x,Z.y,S.x,S.y],null,null,null,Y.rv)]};
G.V=function(Z,S,b){G.$W.call(this,Z,S,b);this.oF=0;this.t=null;this.dN=null;this.Oz=null;this.dG=1;
this.lK=!1;this.cursor=null;this.cV=null;this.O1=null;this.CC=!1;this.Zl=null;this.aoz=0;this.vR=null;
this._1=0;this.AR=null;this.me=null;this.xA=null;this.nU=null;this.a2U=null;this.Rn=null};G.V.prototype=new G.$W;
G.V.XL=function(Z,S){var b={classID:"null",null:a3.h$("Dcmn",!0)};if(Z)b.Angl={t:"UntF",v:{type:"#Ang",val:S}};
else b.Axis={t:"enum",v:{Ornt:S}};return{uf:Z?"rotateEventEnum":"flip",V1:b}};G.V.prototype.nL=function(Z,S,b,Y,P){var w=new d(s.E.P,!0);
w.data={e:s.U.jO,T:this.id,tl:P,o2:Z,Oz:b};S.m(w);this.fm=!1};G.V.prototype.wF=function(Z){return this.me&&this.me.kW()};
G.V.prototype.Pf=function(Z,S,b,Y,P){this.Oz=P;if(Z.e=="again"&&this.vR==null)return;if(Z.e=="doMouseDown"){if(this.me==null)return;
this.Os(b,S,P,Y,Z.TX);return}if(!this.M7(b,P))return;if(this.me){this.HG(Z,this.me.y_());this.a0(b,P,0,!0);
this.MB(b);return}this.At(b,Z.$==null,Z.$);this.uQ(b);this.HG(Z);this.iM(b,S,Z.ep,!1)};G.V.prototype.HG=function(Z,S){var b=this.AR;
if(S==null){var Y=Z.Kn!=null?Z.Kn:4;S=this.me.akY()[Y]}var P=S.x,w=S.y;if(Z.e=="rot"&&Z.G!=Math.PI&&(b.c+b.v&1)==1){P=Math.floor(P);
w=Math.floor(w)}var f=new fR;f.translate(-P,-w);if(Z.e=="rot")f.rotate(Z.G);if(Z.e=="scl")f.scale(Z.G.x,Z.G.y);
if(Z.e=="mat")f.concat(Z.G);f.translate(P,w);if(Z.e=="again")f=this.vR;var h=this.me.WM();T.z.A(h,f,h);
this.me.IP(h)};G.V.prototype.K7=function(){return!0};G.V.prototype.M7=function(Z,S){if(Z==null)return!1;
if(this.id==G.Ck)return Z.N!=null;var b=Z.IM(!0,null,null,!0);if(this.id==G.dZ&&Z.t[b[0]].rect.h3()){alert("Layer is empty.");
return!1}for(var D=0;D<b.length;D++){var Y=Z.t[b[D]];if(Y.vv(2)||Y.vv(31)){alert(aV.get([6,57,0]));return!1}if(Y.add.artb){alert("You can not transform the whole artboard");
return!1}if(Y.add.TySh)if(!gU.Wu(Y.add.TySh,S.S9))return!1;if(Y.add.SoLd){if(b.length==1&&!T.$e.iI(Y.add.SoLd.warp.v)&&(Y.Y6()&&Y.Y6().kF||Y.add.vmsk&&Y.add.vmsk.kF)){alert("Unlink masks before transforming Smart Object");
return!1}if(!Z.al5(Y.add.SoLd.Idnt.v)){alert("Unsupported format of the smart object ("+Z.IG(Y.add.SoLd.Idnt.v).JB+")");
return!1}}}if(Z.N==null)return!0;if(!Z.bY())return!1;return Z.mC()};G.V.prototype.Os=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y);
if(this._1==1){var f=T.J.oN(T.J.Sy(this.me.WM(),this.AR));w=T.J.n7(f,w)}var h=this._1==0?this.me:this.xA;
this.lK=h.Os(Z,b,Y,w);if(this.lK&&h.hR(w)){if(Date.now()-this.aoz<250)this.iM(Z,S,null,!0);this.aoz=Date.now()}};
G.V.prototype.uz=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.il,tf:this.cursor};Z.m(S)};G.V.prototype.Zq=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y);
if(this._1==1){var f=T.J.oN(T.J.Sy(this.me.WM(),this.AR));w=T.J.n7(f,w)}var h=this._1==0?this.me:this.xA;
if(!P.ou){var Q="default";if(h){var e=h.jN(w,Z.a.S);if(e)Q=e}if(Q!=this.cursor){this.cursor=Q;this.uz(S)}}if(!this.lK)return;
h.Zq(Z,b,Y,w);this.a0(Z,b,0,!0);this.MB(Z);this.Qr(S)};G.V.prototype.Xa=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y);
this.me.Xa(Z,b,Y,w);this.lK=!1};G.V.prototype.XF=function(Z,S,b,Y){if(Y.q(U.n5))this.iM(Z,S,null,!0);
else if(Y.q(U.eZ))this.Jj(Z,S);else{var P=this.me.XF(Z,b,Y);if(P){this.a0(Z,b,0,!0);this.Qr(S)}}};G.V.prototype.aa=function(Z,S,b,Y){if(Z.Pp=="commit")this.iM(b,S,null,!0);
else if(Z.Pp=="cancel")this.Jj(b,S);else if(Z.Pp=="switchWarp"){this._1=1-this._1;this.alX();this.MB(b);
this.Qr(S)}else if(Z.Pp=="wrp"){this.xA.tY(Z.vZ);this.MB(b);this.a0(b,this.Oz,0,!0)}else if(Z.Pp=="ctyp"){this.me.a0R(Z.B7);
this.MB(b);this.Qr(S)}else if(Z.Pp=="cen"){this.me.a4Q(Z.Zw);this.MB(b);this.a0(b,this.Oz,0,!0);this.Qr(S)}else if(Z.Pp=="trn"){var P=T.J.GC(Z.Qp),w=this.AR,f=T.J.Sy(this.me.WM(),this.AR);
P[6]=f[6],P[7]=f[7];var h=[w.x,w.y,w.x+w.c,w.y,w.x+w.c,w.y+w.v,w.x,w.y+w.v];T.J.A(P,h);this.dG=Z.dG;
this.me.IP(h);this.MB(b);this.a0(b,this.Oz,0,!0)}};G.V.prototype.MB=function(Z){if(this._1==0)this.me.tR(Z,this.Oz);
else{this.xA.tR(Z);var S=T.J.Sy(this.me.WM(),this.AR);T.J.A(S,Z.M.LG.H);T.J.A(S,Z.M.k_)}};G.V.prototype.iM=function(Z,S,b,Y){this.a0(Z,this.Oz,this.dG);
var P=new iA(b?b:this.name,this);if(this.oF==0)P.data={type:this.oF,t:this.t,Zl:this.dN,Xw:G.V.fU(Z,this.t)};
else if(this.oF==1){var w=Z.t[this.t[0]],f;if(w.Ns.PC<=0){f=T.f(w.Ns.bC.X());T.to(w.Ns.qG,f,3)}else f=Z.N.channel;
var h={rect:w.Ns.bC.clone(),channel:f};P.data={type:this.oF,$:this.t[0],O1:this.O1,iH:h,cV:this.cV,CC:this.CC,Ns:w.Ns,Zl:this.Zl,Xw:{_:w.Ns.bC,Le:w.Ns.qG}}}else if(this.oF==2){P.data={type:this.oF,O1:this.O1,iH:{rect:Z.N.rect.clone(),channel:Z.N.channel.slice(0)}}}Z.kz(P);
var Q=this.AR,e=new ar(Q.x+Q.c/2,Q.y+Q.v/2),l=T.J.Sy(this.me.WM(),Q),O=T.J.eS(l),m=new fR;m.translate(e.x,e.y);
m.concat(O);m.translate(-e.x,-e.y);O=m.clone();var V=-Math.atan2(-O.O,O.w),q=new fR;q.rotate(V);O.concat(q);
function K(H,i){return{t:"UntF",v:{type:["#Pxl","#Prc","#Ang"][i],val:H}}}var z=a3.h$("Lyr",!0);if(this.id==G.Ck)z.v[0]={t:"prop",v:{classID:"Chnl",keyID:"fsel"}};
var t={classID:"null",null:z,FTcs:{t:"enum",v:{QCSt:"Qcsa"}},Intr:{t:"enum",v:{Intp:"Bcbc"}},Ofst:{t:"Objc",v:{__name:"Offset",classID:"Ofst",Hrzn:K(m.RN,0),Vrtc:K(m.Sv,0)}},Skew:{t:"Objc",v:{classID:"Pnt",Hrzn:K(Math.atan(O.tE)*180/Math.PI,2),Vrtc:K(0,2)}},Wdth:K(O.w*100,1),Hght:K(O.KU*100,1),Angl:K(V*180/Math.PI,2)};
this.$o=S;this.track({uf:"transform",V1:t});this.escape(Z,S,Y)};G.V.prototype.Jj=function(Z,S){if(this.oF==0)G.V.qs(Z,this.t,this.dN);
else if(this.oF==1){var b=Z.t[this.t[0]];Z.N=this.O1;if(!this.CC){b.Ns.bC=this.Zl._;b.Ns.qG=this.Zl.Le;
b.$p(Z,0,0,Z.N)}else{b.Hb(Z,this.cV)}Z.D();Z.Zu=!0}else if(this.oF==2){Z.N=this.O1;Z.Zu=!0}this.escape(Z,S,!0)};
G.V.prototype.escape=function(Z,S,b){this.me.clear(Z);this.me=null;this.xA=null;this.Rn=null;this._1=0;
if(b)this.am(S,s.E.P,{e:s.U.zM})};G.V.prototype.Ed=function(Z,S){if(Z.type==0)G.V.qs(S,Z.t,Z.Xw);else{if(Z.type==1){var b=S.t[Z.$];
if(Z.CC){b.Ns=Z.Ns}else{b.Ns.bC=Z.Xw._;b.Ns.qG=Z.Xw.Le}b.$p(S,0,0,S.N);S.D()}S.N={rect:Z.iH.rect.clone(),channel:Z.iH.channel.slice(0)};
S.Zu=!0}};G.V.prototype.zv=function(Z,S){if(Z.type==0)G.V.qs(S,Z.t,Z.Zl);else{if(Z.type==1){var b=S.t[Z.$];
if(Z.CC){b.Hb(S,Z.cV)}else{b.Ns.bC=Z.Zl._;b.Ns.qG=Z.Zl.Le;b.$p(S,0,0,S.N)}S.D()}S.N=Z.O1;S.Zu=!0}};G.V.prototype.At=function(Z,S,b){Z.zl();
var Y=[];if(b==null)for(var D=0;D<Z.ph.length;D++)if(Z.Bf[Z.ph[D]].add.vmsk.b.length>2)Y.push(-1-Z.ph[D]);
var P=[],w=Z.a.o;if(w[0]+w[1]+w[2]==3)if(b!=null||Y.length==0||Z.v6!=null&&Z.v6.length!=0)P=Z.IM(S,b,null,!0);
P=P.concat(Y);for(var D=0;D<Z.k9.length;D++)P.push(-1e3-Z.k9[D]);this.t=P};G.V.prototype.enable=function(Z,S,b,Y,P,w,f){if(this.cursor==null)this.cursor="default";
this.uz(S);if(this.me)return;this.Oz=b;this.At(Z,!0);this.uQ(Z,w&&w.OK!=null&&w.OK!=-1?w.OK:null,f);
this.Qr(S);this.MB(Z);if(w&&w.OK==-1)this.aa({Pp:"switchWarp"},S,Z,Y)};G.V.prototype.Qr=function(Z){var S={e:s.U.jO,T:this.id};
if(this._1==0){var b=T.J.Sy(this.me.WM(),this.AR),Y=T.J.eS(b);S.Qp={Ig:Y,B7:this.me.aoh(),Zw:this.me.y_(),_:this.AR.clone()}}else{S.vZ=this.xA.MD()}S.adr=this.xA!=null;
this.am(Z,s.E.P,S)};G.V.prototype.uQ=function(Z,S,b){var Y=this.id==G.Ck,P=!0,w=this.t[0],f=Z.t[w],Q=null;
if(Y){this.oF=2;this.O1=Z.N}else if(Z.N&&this.t.length==1&&w>=0&&!f.rect.h3()){this.oF=1;this.O1=Z.N;
this.cV=f.Ns;this.CC=!1;if(!f.CQ(Z,Z.N)){this.CC=!0;f.S0(Z,Z.N,!1)}this.Zl={Le:f.Ns.qG,_:f.Ns.bC}}else{this.oF=0;
this.dN=G.V.fU(Z,this.t,null,b);for(var D=0;D<this.dN.length;D++)if(this.dN[D][3]!=null)P=!1}var h=this.oF==1;
if(this.dN&&this.dN.length==1){var e=this.dN[0];if(e[3]==null)h=!0;if(e[4]!=null){Q=Z.t[this.t[0]].add.SoLd;
if(e[1]||e[2])h=!1}}var l=Y?Z.N.rect.clone():G.V.Ij(Z,this.t,b);this.AR=l;if(!Y&&Q){var O=G.V.Nt(Q.nonAffineTransform);
this.AR=T.z.$R(T.$e.dm(Q.warp.v));if(h)this.xA=new b9(Q.warp.v);this.nU=T.J.Sy(O,this.AR);this.me=new ad(O,!0,!0,P,!1,!1,S)}else{if(h||Y)this.xA=new b9(T.$e.f(this.AR));
this.nU=[1,0,0,0,1,0,0,0];if(this.id==G.dZ)S=3;this.me=new ad([l.x,l.y,l.x+l.c,l.y,l.x+l.c,l.y+l.v,l.x,l.y+l.v],!0,!0,P,!1,!1,S)}this.a2U=[1,0,0,0,1,0,0,0];
if(this.id==G.dZ){var m=this.dN[0][0],V=m.GE,q=V[1];this.Rn=T.y4.anQ(V[0],q.c,q.v)}};G.V.Ij=function(Z,S,b){if(S==null)S=Z.IM(!0,null,null,!0);
var Y=new b4;if(Z.N&&S.length==1&&S[0]>=0)Y=Z.N.rect.clone();else for(var D=0;D<S.length;D++){var P=S[D],w=0<=P?Z.t[P]:-1e3<P?Z.Bf[-1-P]:Z.eP[-1e3-P],f=w.add?w.add.vmsk:null,h=0<=P?w.qI(Z,S.length==1,!1,b):-1e3<P?T.Y.Al(f.b,S.length==1&&f.C.length!=0?f.C:null):w.rect.clone();
Y=Y.VK(h)}return Y};G.V.prototype.am=function(Z,S,b,Y){var P=new d(S,!0);P.data=b;if(Y)P.T=Y;Z.m(P)};
G.V.fU=function(Z,S,b,Y){var P=[];for(var D=0;D<S.length;D++){var w=S[D],f,h;if(w>=0){f=Z.t[w];h=f.FN(Z,b,Y)}else if(w>-1e3){f=Z.Bf[-1-w];
h=[2]}else{P.push([null,null,null,null,null,null,null,Z.eP[-1e3-w].clone()]);continue}var Q=[];if(h.indexOf(0)!=-1){var e={GE:[f.buffer.slice(0),f.rect.clone()]};
Q.push(e);if(f.pL()){var l=f.fY(Z);e.ajq=l.buffer.slice(0);e.a57=l.rect.clone()}}else Q.push(null);if(h.indexOf(1)!=-1)Q.push(f.Y6().clone());
else Q.push(null);if(h.indexOf(2)!=-1)Q.push({$h:f.add.vmsk.clone(),m3:f.add.vstk?JSON.parse(JSON.stringify(f.add.vstk)):null,B2:f.add.vstk?G.Da.RS(Z,w):null,AZ:f.add.vogk?JSON.parse(JSON.stringify(f.add.vogk)):null});
else Q.push(null);if(f.add.TySh&&Q[0]){eO.lj(f.add.TySh);Q.push(f.add.TySh.A.clone())}else Q.push(null);
if(f.add.SoLd&&Q[0])Q.push(JSON.parse(JSON.stringify(f.add.SoLd)));else Q.push(null);if(h.indexOf(3)!=-1)Q.push(f.fY(Z).d.clone());
else Q.push(null);if(f.add.lmfx)Q.push(JSON.stringify(f.add.lmfx));else Q.push(null);P.push(Q)}return P};
G.V.qs=function(Z,S,b){for(var D=0;D<S.length;D++){var Y=S[D],P=0<=Y?Z.t[Y]:-1e3<Y?Z.Bf[-1-Y]:Z.eP[-1e3-Y],w=b[D];
if(w[0]){P.rect=w[0].GE[1].clone();P.buffer=w[0].GE[0].slice(0);if(P.pL()){var f=P.fY(Z);f.buffer=w[0].ajq.slice(0);
f.rect=w[0].a57.clone()}}if(w[1]){P.Y6().channel=w[1].channel.slice(0);P.Y6().rect=w[1].rect.clone();
P.Y6().Th=!0}if(w[2]){P.add.vmsk=w[2].$h.clone();if(w[2].B2)G.Da.vO(P,w[2].B2);if(w[2].m3)P.add.vstk=JSON.parse(JSON.stringify(w[2].m3));
if(w[2].AZ)P.add.vogk=JSON.parse(JSON.stringify(w[2].AZ))}if(w[3]){P.add.TySh.A=w[3].clone();eO.LY(P.add.TySh)}if(w[4]){P.add.SoLd=JSON.parse(JSON.stringify(w[4]))}if(w[5]){var h=P.fY(Z).d;
h.channel=w[5].channel.slice(0);h.rect=w[5].rect.clone()}if(w[6]){P.add.lmfx=JSON.parse(w[6])}if(w[7]){P.channel=w[7].channel.slice(0);
P.rect=w[7].rect.clone();P.Th=!0}if(0<=Y){P.vK(Z);P.D()}}Z.D()};G.V.I2=function(Z){var S=Z.clone(),b=Math.atan2(-S.O,S.w),Y=new fR;
Y.rotate(-b);S.concat(Y);return(Math.abs(S.w)+Math.abs(S.KU))/2};G.V.NB=function(Z,S,b,Y,P,w,f,h,Q,e){if(typeof w[0]=="number"){var l=[];
for(var D=0;D<b.length;D++)l[D]=w;w=l}for(var D=0;D<b.length;D++){var O=w[D],m=T.J.eS(O),V=G.V.I2(m),q=b[D],K=0<=q?Z.t[q]:-1e3<q?Z.Bf[-1-q]:Z.eP[-1e3-q],z=Y[D];
if(z[0]&&K.add.lmfx&&h)eg.sq(K.add.lmfx,V);if(z[0]&&!z[3]&&!z[4]&&!z[5]){var t=z[0].GE;if(Q){var H=Q.clone(),i=T.f(H.X()*4);
T.uH(t[0],t[1],i,H);t=[i,H]}var y=G.V.u4(t,P,O,f,P==0?K.buffer.buffer:null,null,null,e);if(y){K.rect=y.rect;
K.buffer=y.buffer}}if(z[1])G.V.MK(Z,z[1],K.Y6(),P,O,f);if(z[2]){var j=f&&!T.$e.iI(f),J=z[2].$h.clone(),A=b.length==1&&J.C.length!=0,a=b.length==1&&J.cY.length>1;
if(a)A=!1;var I=A?J.C:null,E=a?J.cY:null;if(j){var c=T.$e.dm(f);T.J.A(O,c);T.Y.aa1(J.b,c,I,E)}else T.Y.a7M(J.b,O,I,E);
if(K.add.vstk&&h){K.add.vstk.strokeStyleLineWidth.v.val=z[2].m3.strokeStyleLineWidth.v.val*V;var u=z[2].B2;
if(u&&u.uR==3){u=JSON.parse(JSON.stringify(u));var n=u.B2.phase.v;u.B2.Scl.v.val=Math.round(u.B2.Scl.v.val*V);
n.Hrzn.v=Math.round(n.Hrzn.v*V);n.Vrtc.v=Math.round(n.Vrtc.v*V);G.Da.vO(K,u)}}if(K.add.vogk){K.add.vogk=JSON.parse(JSON.stringify(z[2].AZ));
if(j||a)T.AZ.ag0(K.add.vogk);else T.AZ.A(K.add.vogk,O,b.length>1?[]:J.C,h)}J.Mt*=V;K.add.vmsk=J;if(K.add.vogk)T.AZ.BA(K.add.vogk,K.add.vmsk)}if(z[3]){var o=z[3].clone();
o.concat(m);K.add.TySh.A=o;eO.LY(K.add.TySh);var x=new io(K.add.TySh.HK,S.S9),g=gU.PG(x,K.add.TySh);
K.rect=g._;K.buffer=g.j$}if(z[4]){var v=K.add.SoLd,R=G.V.Nt(z[4].nonAffineTransform);T.J.A(O,R);var X=T.z.Ex(R);
if(ad.z0(R)){if(f){var B=T.z.$R(T.$e.dm(z[4].warp.v)),M=T.J.Sy(R,B),r=T.z.$R(T.$e.dm(f));R=[r.x,r.y,r.x+r.c,r.y,r.x+r.c,r.y+r.v,r.x,r.y+r.v];
T.J.A(M,R);v.warp.v=f}var N=T.J.Sy(R),$=R;if(!T.J.ic(N)){N[6]=N[7]=0;$=[0,0,1,0,1,1,0,1];T.J.A(N,$)}v.Trnf=G.V.ab($);
v.nonAffineTransform=G.V.ab(R);if(v.filterFX)v.filterFX=JSON.parse(JSON.stringify(z[4].filterFX));G.V.cA(v,m);
K.JN(Z,P==0)}}if(z[5])G.V.MK(Z,z[5],K.fY(Z).d,P,O,f);if(z[7])G.V.MK(Z,z[7],K,P,O,f);if(0<=q){if(P!=0)K.gi();
K.vK(Z);K.D()}}Z.D()};G.V.DP=function(Z,S,b,Y,P,w){if(b==null)b=!1;return G.V.u4(Z,b?0:1,T.J.GC(S),null,Y,P,w,b)};
G.V.u4=function(Z,S,b,Y,P,w,f,h){if(h==null)h=!1;if(h&&f)throw"e";var Q={},m=0,V=.3;if(Y&&!T.$e.iI(Y)){var e=T.$e.dm(Y);
T.J.A(b,e);Q.rect=T.z.Ex(e);Q.buffer=T.f(Q.rect.X()*4);T.Ts.drawImage(e,Z[0],Z[1].c,Z[1].v,Q.buffer,Q.rect,S==0);
return Q}T.O9(Z);var l=Z[0],O=Z[1],q=O.X()*G.V.I2(T.J.eS(b));if(h&&q>4e6)V=q>8e6?2.2:1.2;while(m+3<Z.length&&Z[m+3].X()>16&&T.J.ic(b)&&G.V.I2(T.J.eS(b))<V){m+=2;
var K=Z[m],z=Z[m+1],t=O.c/z.c,H=O.v/z.v;b=T.J.Co(b,[1,0,O.x,0,1,O.y,0,0]);b=T.J.Co(b,[t,0,0,0,H,0,0,0]);
b=T.J.Co(b,[1,0,-O.x,0,1,-O.y,0,0]);O=z;l=K}var i=T.J.Co(b,T.J.GC(new fR(O.c,0,0,O.v,O.x,O.y))),y=[0,0,1,0,1,1,0,1];
T.J.A(i,y);Q.rect=T.z.Ex(y);if(f)Q.rect=Q.rect.Yz(f);if(h){while((Q.rect.c&3)!=0)Q.rect.c++;while((Q.rect.v&3)!=0)Q.rect.v++}if(!ad.z0(y)||Q.rect.c>1e5||Q.rect.v>1e5||Q.rect.X()>3e4*3e4)return null;
var j=Q.rect.X()*4;if(P&&P.byteLength>=j&&j>=P.byteLength>>2){Q.buffer=new Uint8Array(P)}else{Q.buffer=T.f(j)}T.J.drawImage(i,l,O.c,O.v,Q.buffer,Q.rect,S==0,w,h);
if(S==2&&Q.buffer){var J=Q.rect.c,A=Q.rect.v,a;a=[0,-1,0,-1,16,-1,0,-1,0];a=T.yM.yU(a);var I=Q.buffer.slice(0);
T.yM.Hl(I,Q.buffer,J,A,a,255,!1,!0)}if(Q.buffer)return Q};G.V.MK=function(Z,S,b,Y,P,w){if(S.color==255)T.oN(S.channel);
var f=S.rect,h=T.f(f.X()*4);T.y8(S.channel,h,3);var Q=G.V.u4([h,f],Y,P,w);if(Q){b.rect=Q.rect;b.channel=T.f(Q.rect.X());
T.to(Q.buffer,b.channel,3);b.Th=!0}if(S.color==255){T.oN(S.channel);if(Q)T.oN(b.channel)}};G.V.cA=function(Z,S){var b=Z.filterFX;
if(b)b=b.v.filterFXList;if(b)b=b.v;if(b)for(var Y=0;Y<b.length;Y++){var P=b[Y].v.Fltr;if(P==null||P.v.classID!="rigidTransform")continue;
P=P.v;console.log(P);var w=[];for(var f=0;f<4;f++)w.push(P["PuX"+f].v,P["PuY"+f].v);T.z.A(w,S,w);for(var f=0;
f<4;f++){P["PuX"+f].v=w[f*2];P["PuY"+f].v=w[f*2+1]}var h=["PinP","posFinalPins"],Q=["originalVertexArray","deformedVertexArray"],e=P.puppetShapeList.v;
for(var l=0;l<e.length;l++){var O=e[l].v;for(var m=0;m<h.length;m++){var V=G.V.Nt(O[h[m]]);T.z.A(V,S,V);
O[h[m]]=G.V.ab(V);var q=new Uint8Array(O[Q[m]].v),K=new Float32Array(q.buffer);T.z.A(K,S,K);var z=[];
for(var t=0;t<q.length;t++)z[t]=q[t];O[Q[m]].v=z}}}};G.V.Nt=function(Z){var S=[],b=Z.v.length;for(var D=0;
D<b;D++)S.push(Z.v[D].v);return S};G.V.ab=function(Z){var S={t:"VlLs",v:[]},b=Z.length;for(var D=0;D<b;
D++)S.v.push({t:"doub",v:Z[D]});return S};G.V.prototype.alX=function(){var Z=T.z.$R(T.$e.dm(this.xA.MD())),S=T.J.Sy(this.me.WM(),this.AR),b=[Z.x,Z.y,Z.x+Z.c,Z.y,Z.x+Z.c,Z.y+Z.v,Z.x,Z.y+Z.v];
T.J.A(S,b);this.me.IP(b);this.AR=Z};G.V.prototype.a0=function(Z,S,b,Y){var P=T.J.Sy(this.me.WM(),this.AR);
P=T.J.Co(P,T.J.oN(this.nU));var w=this.xA?this.xA.MD():null;if(this.oF==0){var f=this.vR=T.J.eS(P);if(this.id==G.dZ){var h=this.dN[0][0],Q=h.GE,e=Q[1],l=~~(e.c*Math.max(0,f.w)),O=~~(e.v*Math.max(0,f.KU)),m=new b4(Math.round(f.w*e.x+f.RN),Math.round(f.KU*e.y+f.Sv),l,O),V=T.y4.A(this.Rn,m),q=Z.t[this.t[0]];
q.buffer=V;q.rect=m;q.D();Z.D()}else G.V.NB(Z,S,this.t,this.dN,b,P,w,null,null,Y)}else if(this.oF==1){var K=Z.t[this.t[0]],e=this.Zl._;
if(K.PC<=0){var z=this.Zl.Le,t=this.O1;if(w&&!T.$e.iI(w)&&!t.rect.Oh(e)){var V=T.f(t.rect.X()*4);T.uH(z,e,V,t.rect);
z=V;e=t.rect}var H=G.V.u4([z,e],b,P,w);if(H){K.Ns.qG=H.buffer;K.Ns.bC=H.rect;var i=T.f(H.rect.X());T.to(K.Ns.qG,i,3);
Z.N={channel:i,rect:K.Ns.bC.clone()}}}else{var y=T.f(e.X()*4);T.y8(this.Zl.Le,y,3);var H=G.V.u4([y,e],b,P,w);
if(H){K.Ns.qG=T.f(H.rect.X());T.to(H.buffer,K.Ns.qG,3);K.Ns.bC=H.rect}this.NQ(Z,b,P,w)}K.$p(Z,0,0,Z.N);
if(b!=0){K.gi();T.gi(Z.N)}Z.Zu=!0;Z.D()}else if(this.oF==2)this.NQ(Z,b,P,w)};G.V.prototype.NQ=function(Z,S,b,Y){var P=this.O1.rect,w=T.f(P.X()*4);
T.y8(this.O1.channel,w,3);var f=G.V.u4([w,P],S,b,Y),h=T.f(f.rect.X());T.to(f.buffer,h,3);Z.N={channel:h,rect:f.rect};
Z.Zu=!0};G.V.prototype.disable=function(Z,S,b,Y){if(this.me)this.iM(Z,S,null,!0)};G.jj=function(){G.V.call(this,[10,16],G.ih,"tools/transform")};
G.jj.prototype=new G.V;G.wK=function(){G.V.call(this,[7,10],G.Ck,"tools/transform")};G.wK.prototype=new G.V;
G.Z$=function(){G.V.call(this,[10,48],G.dZ,"tools/transform")};G.Z$.prototype=new G.V;G.Xh=function(Z,S,b){G.$W.call(this,[10,46],G.WG,"tools/transform");
this.Vj=[1,1,2,!0];this.fb="rigidTransform";this.wd=null;this.a5P=null;this.u5=null;this.jw=null;this.B5=null;
this.qy=null;this.Ik=[]};G.Xh.prototype=new G.$W;G.Xh.prototype.K7=function(){return!0};G.Xh.FF=function(Z){if(Z==null)return!1;
if(Z.C.length!=1)return!1;var S=Z.t[Z.C[0]];return S.add.SoLd||Z.bY(!1)};G.Xh.prototype.M7=function(Z,S){return G.Xh.FF(Z)};
G.Xh.prototype.enable=function(Z,S,b,Y,P,w,f){this.a5P=w.r$;var h=w.r$,Q,K=null;if(h){var e=Z.t[h.$];
if(e.add.SoLd.filterFX!=null){var l=e.add.SoLd.filterFX.v.filterFXList.v;if(l[h.index])Q=JSON.parse(JSON.stringify(l[h.index].v.Fltr.v))}}var O=Q==null,e=Z.t[Z.C[0]],m=e.buffer,V=e.rect,q=e.add.SoLd;
if(q){var z=q.nonAffineTransform.v;K=[];for(var D=0;D<4;D++)K.push(z[D*2].v,z[D*2+1].v);if(O)this.a8("edit",S);
var t=e.fY(Z);m=t.buffer;V=t.rect}this.wd={buffer:m.slice(0),rect:V.clone(),a0U:K};if(O)Q=G.Xh.PE(this.wd,this.Vj);
this.u5=Q;this.jw=G.Xh.h6(this.u5,this.Vj);this.Gi();this._5(Z);if(O)this.T2(S);var H=new d(s.E.P,!0);
H.data={e:s.U.jO,T:this.id,Sz:this.Vj};S.m(H);H.data={e:s.U.il,tf:"default"};S.m(H)};G.Xh.prototype.disable=function(Z,S,b,Y){if(this.jw)this.iM(Z,S,!0)};
G.Xh.prototype.Gi=function(Z){var S=this.jw;this.Ik=[];for(var D=0;D<S.length;D++){var b=S[D];for(var Y=0;
Y<b.C.length;Y++)this.Ik.push([D,b.C[D]]);b.B6=T.yF.Kt(b);if(Z)T.yF.R7(b)}};G.Xh.prototype.aa=function(Z,S,b,Y){if(Z.Pp=="commit")this.iM(b,S,!0);
else if(Z.Pp=="cancel")this.Jj(b,S,!0);else if(Z.Pp=="prm"){var P=!1;for(var D=0;D<3;D++)if(this.Vj[D]!=Z.Sz[D])P=!0;
this.Vj=Z.Sz;if(P){this.u5=G.Xh.PE(this.wd,this.Vj,this.u5);this.jw=G.Xh.h6(this.u5,this.Vj);this.Gi(!0);
this.T2(S)}this._5(b)}else if(Z.Pp=="moveDepth"){var w=this.jw;for(var f=0;f<w.length;f++){var h=w[f];
for(var D=0;D<h.C.length;D++){var Q=h.C[D];h.PF[Q]+=Z.a0J?1:-1}}this.T2(S)}};G.Xh.prototype.jo=function(Z,S){return Z==U.Qz||Z==U.pR};
G.Xh.prototype.XF=function(Z,S,b,Y){var P=Y.sh();if(Y.q(U.n5))this.iM(Z,S,!0);else if(Y.q(U.eZ))this.Jj(Z,S,!0);
else if(Y.q(U.Qz)||Y.q(U.pR)){var w=this.jw;for(var f=0;f<w.length;f++){var h=w[f];h.C.sort(function(l,O){return O-l});
for(var D=0;D<h.C.length;D++){var Q=h.C[D],e=Q*2;h.PF.splice(Q,1);h.aW.splice(Q,1);h.Za.splice(Q,1);
h.YG.splice(Q,1);h.Lk.splice(e,2);h.he.splice(e,2)}h.C=[];if(h.YG.length==0){h.Fh=h.Bh.slice(0);h.Tn=h.Bh.slice(0)}}this.Gi(!0);
this.T2(S);this._5(Z)}else if(P.x!=0||P.y!=0){this.dk(Z,P.x,P.y,S);this.OV=null}};G.Xh.prototype.iM=function(Z,S,b){this.a8("confirm",S);
this.escape(Z,S,b)};G.Xh.prototype.Jj=function(Z,S,b){this.a8("cancel",S);this.escape(Z,S,b)};G.Xh.prototype.escape=function(Z,S,b){Z.M.LG=null;
Z.M.IK=[];Z.nd=!0;this.jw=null;var Y=new d(s.E.P,!0);Y.data={e:s.U.zM};if(b)S.m(Y)};G.Xh.prototype.Os=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y),f=w.x,h=w.y,Q=this.jw,e=null,l=[0,2,4,1.2,1.2,1.2],O=-1,m=s.Z()*5/Z.a.S;
for(var D=0;D<Q.length;D++){var V=Q[D],q=T.z.zw(V.he,f,h,m);if(q!=-1)e=[D,q];if(O==-1&&T.yF.Uu.a3N(V.Tn,V.ZG,f,h))O=D}if(e==null&&O!=-1){var V=Q[O];
G.Xh.J_(V,f,h,f,h,0);e=[O,V.YG.length-1];V.B6=T.yF.Kt(V)}this.B5=w;if(e){var K=Q[e[0]].C.indexOf(e[1])!=-1;
if(Y.q(U.Lo)&&!K){Q[e[0]].C.push(e[1]);this.Ik.push(e)}else if(!K){Q[e[0]].C=[e[1]];this.Ik=[e]}}this._5(Z)};
G.Xh.J_=function(Z,S,b,Y,P,w){var f=T.z.zw(Z.Tn,S,b);Z.YG.push(f);Z.he.push(Y,P);Z.Lk.push(Z.Tn[f*2]-S,Z.Tn[f*2+1]-b);
Z.Za.push(0);Z.aW.push(!1);Z.PF.push(w)};G.Xh.prototype.Zq=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y),f=this.B5;
if(f)this.dk(Z,w.x-f.x,w.y-f.y,S)};G.Xh.prototype.dk=function(Z,S,b,Y){var P={},w=this.Ik,f=this.jw;
if(this.OV==null){this.OV=[];for(var D=0;D<f.length;D++)this.OV.push(f[D].he.slice(0))}for(var D=0;D<w.length;
D++){var h=this.Ik[D],Q=h[0],e=f[h[0]],l=h[1]*2;e.he[l+0]=this.OV[Q][l+0]+S;e.he[l+1]=this.OV[Q][l+1]+b;
P[Q]=Q}for(var Q in P)T.yF.R7(this.jw[P[Q]]);this._5(Z);this.T2(Y)};G.Xh.prototype.a8=function(Z,S){var b=new d(s.E.s,!0);
b.T=G.$n;b.data={e:Z,r$:this.a5P,fb:this.fb,$0:this.u5};S.m(b)};G.Xh.prototype.Xa=function(Z,S,b,Y,P){this.B5=null;
this.OV=null};G.Xh.prototype.T2=function(Z){G.Xh.aL(this.jw,this.Vj,this.u5);this.a8("edit",Z)};G.Xh.prototype._5=function(Z){var S=this.jw,b=this.u5;
Z.M.LG={H:[],K:[]};Z.M.IK=[];Z.M.ac=[];for(var D=0;D<S.length;D++){var Y=S[D];for(var P=0;P<Y.C.length;
P++)Z.M.ac.push((Z.M.IK.length>>>1)+Y.C[P]);Z.M.IK=Z.M.IK.concat(Y.he);if(this.Vj[3])T.z.concat(Z.M.LG,T.z.a96(Y.Tn,Y.ZG))}Z.nd=!0};
G.Xh.PE=function(Z,S,b){var Y=Z.buffer,P=Z.rect,w=Z.a0U,f=cL.VS("rigidTransform");if(w)for(var D=0;D<4;
D++){f["PuX"+D].v=w[D*2];f["PuY"+D].v=w[D*2+1]}var h=f.puppetShapeList.v,Q=T.yF.a8A(Y,P.c,P.v,S[1],S[2]),e=[];
for(var l=0;l<Q.length;l++){var O={classID:"puppetShape",rigidType:{t:"bool",v:!0},VrsM:{t:"long",v:1},VrsN:{t:"long",v:0},originalVertexArray:{t:"tdta",v:[]},deformedVertexArray:{t:"tdta",v:[]},indexArray:{t:"tdta",v:[]},pinOffsets:{t:"VlLs",v:[]},posFinalPins:{t:"VlLs",v:[]},pinVertexIndices:{t:"VlLs",v:[]},PinP:{t:"VlLs",v:[]},PnRt:{t:"VlLs",v:[]},PnOv:{t:"VlLs",v:[]},PnDp:{t:"VlLs",v:[]},meshQuality:{t:"long",v:2},meshExpansion:{t:"long",v:2},meshRigidity:{t:"long",v:2},imageResolution:{t:"doub",v:72},selectedPin:{t:"VlLs",v:[]}};
O.meshBoundaryPath={t:"Objc",v:{classID:"pathClass",pathComponents:{t:"VlLs",v:[{t:"Objc",v:{classID:"PaCm",shapeOperation:{t:"enum",v:{shapeOperation:"xor"}},SbpL:{t:"VlLs",v:[{t:"Objc",v:{classID:"Sbpl",Clsp:{t:"bool",v:!0},Pts:{t:"VlLs",v:[]}}}]}}}]}}};
var m=Q[l];h.push({t:"Objc",v:O});var V=m.Bh.slice(0);T.z.A(V,new fR(1,0,0,1,P.x,P.y),V);var q=m.ZG;
for(var D=0;D<q.length;D+=3){var K=q[D+1];q[D+1]=q[D+2];q[D+2]=K}e.push({ZG:q,Bh:V,Fh:V,Tn:V,YG:[],Lk:[],he:[],B6:null,C:[],Za:[],aW:[],PF:[]})}if(b){var z=G.Xh.h6(b,[]),t=e[0];
for(var D=0;D<z.length;D++){var H=z[D];for(var i=0;i<H.C.length;i++)t.C.push((t.he.length>>>1)+H.C[i]);
for(var i=0;i<H.YG.length;i++){var y=H.YG[i]*2,j=H.Bh[y]-H.Lk[i*2],J=H.Bh[y+1]-H.Lk[i*2+1];G.Xh.J_(t,j,J,H.he[i*2],H.he[i*2+1],H.PF[i])}}}G.Xh.aL(e,S,f);
return f};G.Xh.h6=function(Z,S){var b=G.V.Nt,Y=Z.puppetShapeList.v,P=[];for(var w=0;w<Y.length;w++){var f=Y[w].v;
S[0]=f.meshRigidity.v-1;S[1]=f.meshQuality.v-1;S[2]=f.meshExpansion.v;var h=f.pinVertexIndices.v.length,Q=f.meshBoundaryPath.v.pathComponents.v;
if(Q.length!=0){var e=Q[0].v.SbpL.v[0].v.Pts;e.v=[]}var l=new Uint32Array(new Uint8Array(f.indexArray.v).buffer),O=new Float32Array(new Uint8Array(f.originalVertexArray.v).buffer),m=new Float32Array(new Uint8Array(f.deformedVertexArray.v).buffer),V=[],q=[],K=[];
for(var D=0;D<l.length;D++)V.push(l[D]);for(var D=0;D<O.length;D++){q.push(O[D]);K.push(m[D])}var z=b(f.pinVertexIndices),t=b(f.pinOffsets),H=b(f.posFinalPins),i=b(f.PnRt),y=b(f.PnOv),j=b(f.PnDp),J=b(f.selectedPin);
P.push({ZG:V,Bh:q,Fh:K.slice(0),Tn:K,YG:z,Lk:t,he:H,B6:null,Za:i,aW:y,PF:j,C:J})}return P};G.Xh.aL=function(Z,S,b){function Y(m,V){var q=[];
for(var D=0;D<m.length;D++)q.push({t:V,v:m[D]});return q}function P(m,V,q){var K=new(q?Uint32Array:Float32Array)(m),z=new Uint8Array(K.buffer);
for(var D=0;D<z.length;D++)V[D]=z[D]}var w=b.puppetShapeList.v;for(var f=0;f<w.length;f++){var h=Z[f],Q=w[f].v;
Q.meshRigidity.v=S[0]+1;Q.meshQuality.v=S[1]+1;Q.meshExpansion.v=S[2];P(h.ZG,Q.indexArray.v,!0);P(h.Bh,Q.originalVertexArray.v);
P(h.Tn,Q.deformedVertexArray.v);var e=[];for(var D=0;D<h.YG.length;D++){var l=h.YG[D]*2,O=D*2;e[O]=h.Bh[l]-h.Lk[O];
e[O+1]=h.Bh[l+1]-h.Lk[O+1]}Q.PinP.v=Y(e,"doub");Q.pinVertexIndices.v=Y(h.YG,"long");Q.pinOffsets.v=Y(h.Lk,"doub");
Q.posFinalPins.v=Y(h.he,"doub");Q.PnRt.v=Y(h.Za,"long");Q.PnOv.v=Y(h.aW,"bool");Q.PnDp.v=Y(h.PF,"doub");
Q.selectedPin.v=Y(h.C,"long")}};G.cd=function(Z,S,b){G.$W.call(this,Z?Z:[10,40],S?S:G.ee,b?b:"tools/slice");
this.Mc=null;this.$o=null;this.Q4=null;this.agJ=null;this.Ao=null;this._8=null};G.cd.prototype=new G.$W;
G.cd.eI=function(Z,S){var b=-1;for(var D=0;D<Z.length;D++){var Y=G.cd.Xs(Z,D);if(Y[0]<=S.x&&S.x<=Y[2]&&Y[1]<=S.y&&S.y<=Y[3]){b=D;
break}}return b};G.cd.prototype.Pf=function(Z,S,b,Y,P){this.iu(b);b.CY[b.m2[0]].v=Z;b.nd=!0;this.rt(b)};
G.cd.prototype.enable=function(Z,S,b,Y,P,w){G.$W.prototype.enable.call(this,Z,S,b,Y,P,w);if(!b.Gg.CY){var f=new d(s.E.P,!0);
f.data={e:s.U.h4,Sz:bp.xY};S.m(f)}};G.cd.prototype.disable=function(){this.Mc=null;this.$o=null};G.cd.prototype.nL=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y),f=G.cd.eI(Z.CY,w);
if(f==-1)return;this.Mc=Z;this.$o=S;Z.m2=[f];Z.nd=!0;if(this._8==null){this._8=new a5([{name:[5,4]},{name:[8,11,1],Ip:!0}]);
this._8.i("select",this.ZV,this)}var h=this._8;h.parent=S;h.B();h.update(Z,b);var Q=new d(s.E.P,!0);
Q.data={e:s.U.Gc,Bq:h,x:P.w$+2,y:P.rE+1};S.m(Q)};G.cd.prototype.ZV=function(Z){var S=this._8.SO()[0],b=this.Mc;
if(S==0){this.iu(b);b.CY.splice(b.m2[0],1);b.m2=[];b.nd=!0;this.rt(b)}if(S==1){var Y=new d(s.E.P,!0);
Y.data={e:s.U.Fy,g9:"soptions",G:b.CY[b.m2[0]].v};this.$o.m(Y)}};G.cd.prototype.Os=function(Z,S,b,Y,P){if(Z==null)return;
this.iu(Z);var w=Z.a._2(P.x,P.y);w=G.sR.yK(Z,w,b,[!0,null,!1]);w.x=Math.round(w.x);w.y=Math.round(w.y);
this.Ao=w;Z.CY.unshift(G.cd.Xo());Z.m2=[0];G.cd._x(Z.CY,0,[w.x,w.y,w.x+20,w.y+20]);Z.nd=!0};G.cd.prototype.Zq=function(Z,S,b,Y,P){if(this.Q4==null)return;
var w=Z.a._2(P.x,P.y),f=this.Ao;w=G.sR.yK(Z,w,b,[!0,null,!1]);w.x=Math.round(w.x);w.y=Math.round(w.y);
var h=[f.x,f.y,w.x,w.y];G.cd.n0(h);G.cd._x(Z.CY,0,h);Z.nd=!0};G.cd.prototype.Xa=function(Z,S,b,Y,P){this.rt(Z);
this.Ao=null};G.cd.prototype.iu=function(Z){this.Q4=JSON.stringify(Z.CY);this.agJ=JSON.stringify(Z.m2)};
G.cd.prototype.rt=function(Z){var S=JSON.stringify(Z.CY);if(S!=this.Q4){var b=new iA(this.name,this);
b.data={Zl:this.Q4,Xw:S,a3X:this.agJ,alQ:JSON.stringify(Z.m2)};Z.kz(b)}this.Q4=null};G.cd.prototype.zv=function(Z,S){S.CY=JSON.parse(Z.Zl);
S.m2=JSON.parse(Z.a3X);S.nd=!0};G.cd.prototype.Ed=function(Z,S){S.CY=JSON.parse(Z.Xw);S.m2=JSON.parse(Z.alQ);
S.nd=!0};G.cd.prototype.jo=function(Z,S){return S!=null&&S.m2.length!=0&&(Z==U.Qz||Z==U.pR)};G.cd.prototype.XF=function(Z,S,b,Y){if(Z==null)return;
this.iu(Z);var P=Y.sh();if(P.x!=0||P.y!=0)G.cd.CP(Z,P);if(Y.q(U.Qz)||Y.q(U.pR)){var w=Z.CY.slice(0);
for(var D=0;D<Z.m2.length;D++)Z.CY.splice(Z.CY.indexOf(w[Z.m2[D]]),1);Z.m2=[]}this.rt(Z)};G.cd.prototype.aa=function(Z,S,b,Y,P){if(b==null||b.m2.length==0)return;
this.iu(b);var w=b.CY,f=b.m2;f.sort(function(V,q){return V-q});console.log(f);var h=w.slice(0),Q=[],e=[];
for(var D=0;D<f.length;D++){var l=f[D],O=w[l];e.push(O);h.splice(h.indexOf(O),1)}var m=Math.max(0,Math.min(h.length,f[0]-Z.dir));
for(var D=0;D<e.length;D++){h.splice(m+D,0,e[D]);Q.push(m+D)}b.CY=h;b.m2=Q;this.rt(b)};G.cd.ajA=function(Z,S,b,Y){var P=new ar(-S.x,-S.y),w=S.c/b.c,f=S.v/b.v,h=[0,0,S.c,S.v];
for(var D=0;D<Z.length;D++){var Q=G.cd.Xs(Z,D);if(Y){Q[0]=Math.round(Q[0]*w);Q[1]=Math.round(Q[1]*f);
Q[2]=Math.round(Q[2]*w);Q[3]=Math.round(Q[3]*f)}else{G.cd.Nb(Q,P);G.cd.a4C(Q,h)}if(Q[0]>=Q[2]||Q[1]>=Q[3]){Z.splice(D,1);
D--;continue}G.cd._x(Z,D,Q)}};G.cd.CP=function(Z,S){var b=Z.CY;for(var D=0;D<Z.m2.length;D++){var Y=G.cd.Xs(b,Z.m2[D]);
G.cd.Nb(Y,S);G.cd._x(b,Z.m2[D],Y)}};G.cd.a4C=function(Z,S){if(Z[0]<S[0])Z[0]=S[0];if(Z[1]<S[1])Z[1]=S[1];
if(S[2]<Z[2])Z[2]=S[2];if(S[3]<Z[3])Z[3]=S[3]};G.cd.Nb=function(Z,S){Z[0]=Math.round(Z[0]+S.x);Z[2]=Math.round(Z[2]+S.x);
Z[1]=Math.round(Z[1]+S.y);Z[3]=Math.round(Z[3]+S.y)};G.cd._x=function(Z,D,S){var b=Z[D].v.bounds.v;b.Left.v=S[0];
b.Top.v=S[1];b.Rght.v=S[2];b.Btom.v=S[3]};G.cd.Xs=function(Z,D){var S=Z[D].v.bounds.v;return[S.Left.v,S.Top.v,S.Rght.v,S.Btom.v,D]};
G.cd.n0=function(Z){if(Z[2]<Z[0]){var S=Z[0];Z[0]=Z[2];Z[2]=S}if(Z[2]==Z[0])Z[2]++;if(Z[3]<Z[1]){var S=Z[1];
Z[1]=Z[3];Z[3]=S}if(Z[3]==Z[1])Z[3]++};G.cd.$R=function(Z,S){var b=1e9,Y=-1e9,P=1e9,w=-1e9;for(var D=0;
D<S.length;D++){var f=G.cd.Xs(Z,S[D]);b=Math.min(b,f[0]);P=Math.min(P,f[1]);Y=Math.max(Y,f[2]);w=Math.max(w,f[3])}return[b,P,Y,w]};
G.cd.Xo=function(){return{t:"Objc",v:{classID:"slice",sliceID:{t:"long",v:0},groupID:{t:"long",v:0},origin:{t:"enum",v:{ESliceOrigin:"userGenerated"}},Type:{t:"enum",v:{ESliceType:"Img"}},bounds:{t:"Objc",v:{classID:"Rct1",Top:{t:"long",v:0},Left:{t:"long",v:0},Btom:{t:"long",v:0},Rght:{t:"long",v:0}}},url:{t:"TEXT",v:""},null:{t:"TEXT",v:""},Msge:{t:"TEXT",v:""},altTag:{t:"TEXT",v:""},cellTextIsHTML:{t:"bool",v:!0},cellText:{t:"TEXT",v:""},horzAlign:{t:"enum",v:{ESliceHorzAlign:"default"}},vertAlign:{t:"enum",v:{ESliceVertAlign:"default"}},bgColorType:{t:"enum",v:{ESliceBGColorType:"None"}},topOutset:{t:"long",v:0},leftOutset:{t:"long",v:0},bottomOutset:{t:"long",v:0},rightOutset:{t:"long",v:0}}}};
G.bX=function(){G.cd.call(this,[10,41],G.lQ,"tools/sselect");this.Ao=null;this.an=null;this.NE=null;
this.qy=null;this.y2=!1};G.bX.prototype=new G.cd;G.bX.prototype.Os=function(Z,S,b,Y,P){if(Z==null)return;
var w=Z.a._2(P.x,P.y),f=G.bX.yj(w,4/Z.a.S,Z.CY,Z.m2);f.pop();if(f.length!=0){this.Ao=w;this.NE=f;this.iu(Z);
return}var h=Z.CY,Q=G.cd.eI(h,w);if(Q==-1)Z.m2=[];else{var e=Z.m2.indexOf(Q);if(Y.q(U.Lo)){if(e==-1)Z.m2.push(Q);
else Z.m2.splice(e,1)}else{Z.m2.sort(function(K,z){return K-z});if(e==-1)Z.m2=[Q];this.Ao=w;this.iu(Z);
this.an=G.cd.$R(h,Z.m2);this.qy=[];for(var D=0;D<Z.m2.length;D++)this.qy.push(G.cd.Xs(h,Z.m2[D]));if(Y.q(U.G_)){var l=h.slice(0),O=Z.m2,m=[];
for(var D=0;D<O.length;D++){var Q=O[D],V=l[Q],q=h.indexOf(V);m.push(q);h.splice(q,0,JSON.parse(JSON.stringify(V)))}Z.m2=m}}}Z.nd=!0};
G.bX.prototype.Zq=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y);if(this.Ao==null){var f=G.bX.yj(w,4/Z.a.S,Z.CY,Z.m2),h=f.pop(),Q=f.length==0?"default":["ew","nwse","ns","nesw"][h]+"-resize",e=new d(s.E.P,!0);
e.data={e:s.U.il,tf:Q};S.m(e);return}if(!this.y2&&w.Oh(this.Ao))return;this.y2=!0;var l=Z.CY,f=this.NE;
if(f){w=G.sR.yK(Z,w,b,[!0,null,!1]);var O=Math.round(w.x),m=Math.round(w.y);for(var D=0;D<f.length;D+=2){var V=G.cd.Xs(l,f[D]),q=f[D+1];
V[q]=(q&1)==0?O:m;G.cd.n0(V);G.cd._x(l,f[D],V)}}else{var K=w.jZ(this.Ao),z=this.an.slice(0);G.cd.Nb(z,K);
var t=new b4(z[0],z[1],z[2]-z[0],z[3]-z[1]),H=G.sR.BG(Z,t,b,[!0,null,!1],!0);G.sR.F$(Z,t,H);K.x+=H[0];
K.y+=H[1];for(var D=0;D<Z.m2.length;D++)G.cd._x(l,Z.m2[D],this.qy[D]);G.cd.CP(Z,K)}Z.nd=!0};G.bX.prototype.Xa=function(Z,S,b,Y,P){if(this.Ao==null)return;
this.rt(Z);Z.M.yW=null;Z.nd=!0;this.Ao=null;this.NE=null;this.qy=null;this.y2=!1};G.bX.yj=function(Z,S,b,Y){var P=Z.x,w=Z.y,f=[],h=-1,Q=[];
for(var D=0;D<Y.length;D++){var e=Y[D],l=G.cd.Xs(b,e),O=l[0],m=l[1],V=l[2],q=l[3];if(P<O-S||V+S<P||w<m-S||q+S<w)continue;
var K=[P<O+S,w<m+S,V-S<P,q-S<w],z=-1;for(var t=0;t<4;t++){if(K[t]&&K[t+1&3])z=1+2*(t&1);if(K[t])f.push(e,t)}if(z==-1){if(K[0]||K[2])z=0;
if(K[1]||K[3])z=2}if(z!=-1){h=z;Q.push(e)}}var H=f.length;for(var D=0;D<H;D+=2){var e=f[D],i=f[D+1],y=G.cd.Xs(b,e)[i];
for(var t=0;t<Y.length;t++){var j=Y[t];if(Q.indexOf(j)!=-1)continue;var l=G.cd.Xs(b,j);if(l[i&1]==y)f.push(j,i&1);
if(l[2+(i&1)]==y)f.push(j,2+(i&1))}}f.push(h);return f};G._E=function(){G.Ks.call(this,[10,44],G.a6q,"tools/oselect");
this.Hi="crosshair";this.a7S=0};G._E.prototype=new G.Ks;G._E.prototype.UQ=function(Z,S,b,Y){if(Math.random()<1/(1+this.a7S)){alert("The cross should be fully inside the object.",3500);
this.a7S++}};G._E.prototype.Sw=function(Z,S,b,Y){G.N4.XI(Z,G.Ks.oC,this.$o);if(!Y.ou||!this._A)return;
var P=this.Ij(Z,b,!1),w=P.c,f=P.v,h=P.x,Q=P.y,e=P.x+w,l=P.y+f,O=h+w/2,m=Q+f/2,V=G._E.mr;Z.M.LG={H:[h,Q,e,Q,e,l,h,l,O-w*V,m,O+w*V,m,O,m-f*V,O,m+f*V],K:"M L L L Z M L M L".split(" ")};
Z.nd=!0};G._E.mr=.12;G._E.prototype.LP=function(Z,S,b,Y){Z.M.LG=null;Z.nd=!0;this.finish(Z,S,b,Y)};G._E.prototype.getSelection=function(Z,S,b,Y){if(this.WD.Oh(this.GM)||!this._A)return null;
var P=this.Ij(Z,b,!1),w=Z.t[Z.C[0]];if(P.h3()||!P.U5(w.rect))return null;return G.Ks.qi("ObSl",P)};G.N4=function(){G.px.call(this,[10,37],G.hi,"tools/qselect");
this.L9="qselect"};G.N4.prototype=new G.px;G.N4.prototype.Os=function(Z,S,b,Y,P){this.AG(Z,b,Y,P,1);
if(this.yg==null)return;this.pT(Z)};G.N4.prototype.Zq=function(Z,S,b,Y,P){this.d6(Z,S,b);G.N4.XI(Z,G.Ks.oC,S);
if(this._o)this.j6(Z,b,P);if(this.yg==null)return;if(!P.ou)return;var w=this.b7(Z,b,Y,P);if(w!=1)this.pT(Z)};
G.N4.XI=function(Z,S,b){if(Z&&S.key!=G.N4.RV(Z)){S.key=G.N4.RV(Z);var Y=Z.t[Z.C[0]].rect.X(),w="Image Analysis ...";
if(Y==0)return;var P=Y>1e6,f=new d(s.E.P,!0);f.data={e:s.U.kO,b4:w};if(P)b.m(f);setTimeout(function(){var h=G.N4.YP(Z);
for(var Q in h)S[Q]=h[Q];var f=new d(s.E.P,!0);f.data={e:s.U.P9,b4:w};if(P)b.m(f)},30)}};G.N4.RV=function(Z){var S=Z.C[0],b=Z.t[S],Y=b.rect,P=Y.c,w=Y.v,f=P*w,h=b.buffer;
return[S,Y.x,Y.y,P,w,h[0],h[1],h[2],h[3]].join(",")};G.N4.YP=function(Z){var S=Z.C[0],b=Z.t[S],Y=b.rect,P=Y.c,w=Y.v,f=P*w,h=b.buffer,Q=Date.now(),e=T.f(f);
e.fill(128);var l=T.Or.Ep(h,P,w);console.log(Date.now()-Q);var O={key:G.N4.RV(Z),A1:h,rect:Y.clone(),Yu:P,XE:w,hx:12,a3S:!1,m6:e,o0:l,N:T.f(f),B0:null,YD:null,fu:null};
G.N4.Bj(O);return O};G.N4.Bj=function(Z,S){var b=Z.Yu,Y=Z.XE,P=0,w=0,f=Date.now(),h=Z.B0!=null&&T.Or.ahz(Z.o0.ZG,Z.B0.ZG,Z.B0.EJ,Z.m6);
P=Date.now()-f;f=Date.now();if(!h&&!Z.a3S){Z.B0=T.Or.jx(Z.o0,b,Y,Z.m6,Z.hx);if(!T.Or.ahz(Z.o0.ZG,Z.B0.ZG,Z.B0.EJ,Z.m6)){Z.a3S=!0;
console.log("conflict")}Z.YD=T.Or.ahE(Z.A1,b,Y,Z.B0.ZG,Z.B0.EJ);Z.fu=[Z.YD[0].slice(0),[]];w=Date.now()-f;
f=Date.now()}var f=Date.now();if(S){Z.fu[0].set(Z.YD[0]);var Q=Z.YD[1],e=Z.fu[1];for(var l=0;l<Q.length;
l++)e[l]=Q[l].slice(0);T.Or.amg(Z.B0.ZG,b,Y,Z.B0.EJ,Z.m6,Z.N,Z.fu)}};function ad(Z,S,b,Y,P,w,f,h){this.cv=null;
this.mu=Z?Z.slice(0):null;this.OF=4;this.GM=null;this.Y1=null;this.WT=null;this.yp=-1;this.cn=null;this.a9B=!1;
this.ab8=[];for(var D=0;D<8;D++)this.ab8.push(ab.a7i(0,PIMG.rotate,-.5,-.5,-45-D*45));this.acE=S;this.ams=b;
this.a0q=Y;this.als=P;this.a16=w;this.OK=f;this.agl=h}ad.prototype.kW=function(){return this.yp!=-1};
ad.prototype.WM=function(){return this.mu.slice(0)};ad.prototype.IP=function(Z){this.mu=Z};ad.prototype.akY=function(){return this.mY(this.mu)};
ad.prototype.aoh=function(){return this.OF};ad.prototype.a0R=function(Z){this.OF=Z};ad.prototype.y_=function(Z){if(Z==null)Z=this.mu;
if(this.OF==9)return this.GM;else return this.mY(Z)[this.OF]};ad.prototype.a4Q=function(Z){if(this.OF==9)this.GM=Z.clone();
else{var S=this.y_(),b=new fR(1,0,0,1,Z.x-S.x,Z.y-S.y);T.z.A(this.mu,b,this.mu)}};ad.prototype.jN=function(Z,S,b){var Y=this.Cv(Z,S),P;
if(Y==9)return"default";if(Y==10){if(b)return null;return!this.acE?"move":null}if(Y==-1||Y==4)return null;
if(Y==11){var w=this.y_().jZ(Z);P=90-Math.atan2(w.y,w.x)*180/Math.PI;var f=Math.round(8*(P/360));f=(f+8)%8;
return this.ab8[f]}else{var h=this.cu(Z,this.mu);P=[135,90,45,180,0,0,225,270,315][Y];var Q=T.J.Sy(this.mu);
P+=Math.atan2(-Q[3],Q[0])*180/Math.PI;var e="ew nesw ns nwse ew nesw ns nwse".split(" "),f=Math.round(8*(P/360));
f=(f+8)%8;return e[f]+"-resize"}};ad.prototype.cu=function(Z,S){var b=T.J.oN(T.J.Sy(S)),Y=new Float64Array(2);
T.J.Jc(Z.x,Z.y,b,Y);return new ar(Y[0],Y[1])};ad.prototype.hR=function(Z){var S=this.cu(Z,this.mu);return 0<=S.x&&S.x<=1&&0<=S.y&&S.y<=1};
ad.prototype.Os=function(Z,S,b,Y,P,w){this.a9B=w;this.cn=Y;var f=Z.a.S,h;if(this.mu==null)Y=G.sR.yK(Z,Y,S);
this.WT=Y.clone();if(this.mu==null){this.WT.offset(1,1);var Q=P==null?1:1/P;this.mu=[Y.x,Y.y,Y.x+1,Y.y,Y.x+1,Y.y+Q,Y.x,Y.y+Q];
h=8}else{h=this.Cv(Y,f);if(0<=h&&h<=8)this.WT=this.mY(this.mu)[h]}this.cv=this.mu.slice(0);this.yp=h;
this.tR(Z,S);this.Y1=this.y_();return h!=-1};ad.prototype.Cv=function(Z,S){var b=-1,Y=this.mY(),P=6*s.Z()/S;
if(b==-1)if(ar.VA(this.y_(),Z)<P)b=9;if(b==-1)for(var D=0;D<Y.length;D++)if(D!=4&&ar.VA(Y[D],Z)<P)b=D;
if(b==-1||this.OK==4){if(this.hR(Z)){if(this.acE)b=10}else{var w=this.cu(Z,this.mu),f=new b4(0,0,1,1);
f.lg(.2,.2);b=f.DS(w)&&this.OK!=3?11:10}}return b};ad.prototype.Zq=function(Z,S,b,Y){if(this.yp==-1)return;
this.cn=Y;var P=b.q(U.Lo),w=b.q(U.G_),f=b.q(U.cD),h=Z.a.S,Q=this.WT,e=this.yp,l=this.mY(),O=G.sR.yK(Z,Q,S),m=G.sR.yK(Z,Y,S),V,q;
if(e==9){var l=this.mY(),K=-1;for(var D=0;D<l.length;D++)if(ar.VA(l[D],m)*h<10)K=D;this.OF=K==-1?9:K;
this.GM=P?G.Oa.m1(O,m):m.clone()}else if(e==10){q=T.z.$R(this.cv);var z=q.x,t=q.y;q.offset(Y.x-Q.x,Y.y-Q.y);
if(this.zn()){q.x=Math.round(q.x);q.y=Math.round(q.y)}V=G.sR.BG(Z,q,S);var H=new fR(1,0,0,1,q.x-z+V[0],q.y-t+V[1]);
T.z.A(this.cv,H,this.mu)}else if(e==11){var i=this.y_(this.cv),y=i.jZ(Y),j=i.jZ(Q),J=Math.atan2(y.y,y.x),A=Math.atan2(j.y,j.x),H=new fR(1,0,0,1,-i.x,-i.y),a=Math.PI/12;
if(P)H.rotate(Math.round((A-J)/a)*a);else H.rotate(A-J);H.translate(i.x,i.y);T.z.A(this.cv,H,this.mu)}else{var I,E=this.cv,c=e==0||e==2||e==6||e==8;
if(this.OK==1){if(c)P=w=f=!0}else if(this.OK==2&&c&&this.a9B!=!0)f=!0;if(this.OK==3)f=!1;if(this.a0q&&c&&f){var D=[0,0,2,0,0,0,6,0,4,0][e],u=-1,n=m.x,o=m.y;
if(P){var x=D+6&7,g=D+10&7,v=ad._a(E[D],E[D+1],E[x],E[x+1],m.x,m.y),R=ad._a(E[D],E[D+1],E[g],E[g+1],m.x,m.y),X=v[2]<R[2]?v:R;
n=X[0];o=X[1];if(w)u=v[2]<R[2]?x:g}else if(w)u=D+4&7;I=E.slice(0);if(u!=-1){var B=E[u],M=E[u+1],r=(E[D]+B)/2,N=(E[D+1]+M)/2;
I[u]=r-(n-r);I[u+1]=N-(o-N)}I[D]=n;I[D+1]=o}else if(c&&w){var i=this.Y1,$=i.x,eQ=i.y,hN=O.x-$,bI=O.y-eQ,fq=1,e9=1;
if(Math.abs(hN)>=1)fq=(m.x-$)/hN;if(Math.abs(bI)>=1)e9=(m.y-eQ)/bI;if(P)fq=e9=(fq+e9)/2;var W=new fR;
W.translate(-$,-eQ);W.scale(fq,e9);W.translate($,eQ);I=E.slice(0);T.z.A(I,W,I)}else{if(this.zn()){m.x=Math.round(m.x);
m.y=Math.round(m.y)}var L=[0,1,2,5,8,7,6,3],bd=L[(L.indexOf(e)+4)%8],iw=[];for(var D=0;D<3;D++)for(var u=0;
u<3;u++)iw.push(new ar(u/2,D/2));var i=this.Y1,d7=this.cu(m,E),d0=this.cu(Q,E),gS=w&&(this.OF==4||this.OF==9)?this.cu(i,E):iw[bd],cf=new fR,cT=new fR,fq=(d7.x-gS.x)/(d0.x-gS.x);
if(fq==0)fq=1e-4;var e9=(d7.y-gS.y)/(d0.y-gS.y);if(e9==0)e9=1e-4;if(this.als){fq=Math.max(fq,0);e9=Math.max(e9,0)}if(e==0||e==2||e==6||e==8){if(P||this.a16)cf.scale(fq,fq);
else cf.scale(fq,e9)}if(e==1||e==3||e==5||e==7){var fU=this.a16;if(e==1||e==7)cf.scale(fU?e9:1,e9);else cf.scale(fq,fU?fq:1);
if(this.ams&&f){if(e==1||e==7)cT.tE=(d7.x-gS.x)/(d7.y-gS.y);else cT.O=(d7.y-gS.y)/(d7.x-gS.x)}}var W=new fR;
W.translate(-gS.x,-gS.y);W.concat(cf);W.concat(cT);W.translate(gS.x,gS.y);I=[0,0,1,0,1,1,0,1];T.z.A(I,W,I);
var X=T.J.Sy(E);T.J.A(X,I)}if(ad.z0(I))this.mu=I}this.tR(Z,S);if(V)G.sR.F$(Z,q,V)};ad._a=function(Z,S,b,Y,P,w){var f=b-Z,h=Y-S,Q=P-Z,e=w-S,l=f*f+h*h,O=Q*f+e*h,m=O/l,V=Z+m*f,q=S+m*h,K=P-V,z=w-q;
return[V,q,Math.sqrt(K*K+z*z)]};ad.prototype.zn=function(){var Z=this.mu;return Math.abs(Z[1]-Z[3])<1e-6&&Math.abs(Z[2]-Z[4])<1e-6||Math.abs(Z[0]-Z[2])<1e-6&&Math.abs(Z[3]-Z[5])<1e-6};
ad.z0=function(Z){return T.z.G0(Z)||T.z.G0([Z[6],Z[7],Z[4],Z[5],Z[2],Z[3],Z[0],Z[1]])};ad.prototype.Xa=function(Z,S,b,Y){this.yp=-1;
this.cn=null;Z.M.yW=null;Z.M.ag=[];Z.nd=!0};ad.prototype.XF=function(Z,S,b){var Y=b.sh();if(Y.x||Y.y){var P=new fR(1,0,0,1,Y.x,Y.y);
T.z.A(this.mu,P,this.mu);this.tR(Z,S);return!0}return!1};ad.prototype.mY=function(Z){if(Z==null)Z=this.mu;
var S=Z[6]-Z[0],b=Z[7]-Z[1],Y=Z[4]-Z[2],P=Z[5]-Z[3],w=[Z[0],Z[1],Z[2],Z[3],Z[0]+S/2,Z[1]+b/2,Z[2]+Y/2,Z[3]+P/2,Z[6],Z[7],Z[4],Z[5]],f=[];
for(var D=0;D<3;D++){var h=D*4,Q=w[h+0],e=w[h+1],l=w[h+2],O=w[h+3];f.push(new ar(Q,e));f.push(new ar(Q+(l-Q)/2,e+(O-e)/2));
f.push(new ar(l,O))}return f};ad.prototype.tR=function(Z,S,b){if(b==null)b=!1;var Y=this.mY(),P=Y[0],w=Y[2],f=Y[6],h=Y[8];
Z.M.LG={K:[],H:[]};Z.M.LG.K.push("M","L","L","L","Z");Z.M.LG.H.push(P.x,P.y,w.x,w.y,h.x,h.y,f.x,f.y);
if(this.agl){var Q=w.jZ(P),e=f.jZ(P),l=h.jZ(w),O=h.jZ(f);for(var D=0;D<3;D++){Z.M.LG.K.push("M","L","M","L");
var m=(D+1)*.25;Z.M.LG.H.push(P.x+Q.x*m,P.y+Q.y*m,f.x+O.x*m,f.y+O.y*m);Z.M.LG.H.push(P.x+e.x*m,P.y+e.y*m,w.x+l.x*m,w.y+l.y*m)}}Z.a.dl=new b4(0,0,ar.VA(Y[0],Y[2]),ar.VA(Y[0],Y[6]));
if(this.yp!=-1&&this.yp<9&&this.cn){var V=Z.a.pg(this.cn.x,this.cn.y);G.$W.i8(V.x+10,V.y-10,Z.a.dl,Z,S)}if(!b){Z.M.k_=[];
for(var D=0;D<Y.length;D++)if(D!=4)Z.M.k_.push(Y[D].x,Y[D].y);var q=this.y_();Z.M.k_.push(q.x,q.y)}Z.nd=!0};
ad.prototype.clear=function(Z){Z.a.dl=null;Z.M.yW=null;Z.M.LG=null;Z.M.k_=[];Z.nd=!0};function b9(Z,S){this.$e=null;
this.yp=-1;this.tY(Z)}b9.prototype.MD=function(){return JSON.parse(JSON.stringify(this.$e))};b9.prototype.tY=function(Z){this.$e=JSON.parse(JSON.stringify(Z))};
b9.prototype.hR=function(Z){return!0};b9.prototype.jN=function(Z,S){var b=this.Cv(Z,S);if(b==-1)return"default";
return"pointer"};b9.prototype.Os=function(Z,S,b,Y){this.yp=this.Cv(Y,Z.a.S);return this.yp!=-1};b9.prototype.Cv=function(Z,S){var b=-1,Y=20*s.Z(),P=this.JG();
for(var D=0;D<P.length;D++)if(ar.VA(P[D],Z)*S<Y)b=D;return b};b9.prototype.Zq=function(Z,S,b,Y){if(this.yp==-1)return;
var P=Z.a.S,w=this.yp,f=T.$e.dm(this.$e);f[w*2]=Y.x;f[w*2+1]=Y.y;T.$e.bG(f,this.$e)};b9.prototype.Xa=function(Z,S,b,Y){this.yp=-1;
Z.nd=!0};b9.prototype.XF=function(Z,S,b){var Y=b.sh();if(Y.x||Y.y){var P=new fR(1,0,0,1,Y.x,Y.y);T.z.A(this.mu,P,this.mu);
this.tR(Z)}};b9.prototype.JG=function(Z){var S=T.$e.dm(this.$e),b=[];for(var D=0;D<S.length;D+=2)b.push(new ar(S[D],S[D+1]));
return b};b9.prototype.tR=function(Z){var S=this.JG();Z.M.LG={K:[],H:[]};Z.M.LG.K.push("M","C","C","C","C");
var b=[0,1,2,3,7,11,15,14,13,12,8,4,0];for(var D=0;D<b.length;D++)Z.M.LG.H.push(S[b[D]].x,S[b[D]].y);
Z.M.LG.K.push("M","L","L","M","L","L","M","L","L","M","L","L");b=[4,0,1,2,3,7,11,15,14,13,12,8];for(var D=0;
D<b.length;D++)Z.M.LG.H.push(S[b[D]].x,S[b[D]].y);Z.M.k_=[];for(var D=0;D<S.length;D++)Z.M.k_.push(S[D].x,S[D].y);
Z.nd=!0};b9.prototype.clear=function(Z){Z.M.LG=null;Z.M.k_=[];Z.nd=!0};var dK={};dK.bd=function(Z){this.id=Z;
this.$o=null};dK.bd.prototype.Pf=function(Z,S,b,Y,P){};dK.bd.prototype.Ed=function(Z,S){};dK.bd.prototype.zv=function(Z,S){};
dK.bd.prototype.track=function(Z){var S=new d(s.E.TH,!0);S.data=Z;Z.$i=!0;this.$o.m(S)};dK.History=function(){dK.bd.call(this,G._H);
this.BV=!0;this.ahr=0};dK.History.prototype=new dK.bd;dK.History.prototype.Pf=function(Z,S,b,Y){b.Pd=!0;
if(Z.e=="h_itemchange"){if(Z.index<b.Hc)for(var D=b.Hc;D>Z.index;D--)this.fr(b);if(Z.index>b.Hc)for(var D=b.Hc;
D<Z.index;D++)this.lR(b)}if(Z.e=="h_stepfwd")this.lR(b);if(Z.e=="h_stepbck")this.fr(b);if(Z.e=="h_undoredo"){var P=this.BV||this.ahr!=b.Hc;
if(P){this.fr(b);P=!1}else{this.lR(b);P=!0}this.BV=P;this.ahr=b.Hc}else this.BV=!0};dK.History.prototype.fr=function(Z){if(Z.Hc==0)return;
var S=Z.history[Z.Hc];S.T.zv(S.data,Z);Z.Hc--};dK.History.prototype.lR=function(Z){if(Z.Hc==Z.history.length-1)return;
var S=Z.history[Z.Hc+1];S.T.Ed(S.data,Z);Z.Hc++};dK.AK=function(){dK.bd.call(this,G.kd);this.$o=null};
dK.AK.prototype=new dK.bd;dK.AK.prototype.Pf=function(Z,S,b,Y,P){this.$o=S;var w=Z.e,f=Z.$!=null?Z.$:b.C.length!=0?b.C[0]:b.t.length-1,h=b.t[f];
b.Vc=!0;if(w==F.WW&&b.N==null)w=F.GG;if(w==F.fk){var Q=new iA([6,33],this),e=h.W$()?["pass"].concat(is.KP):is.KP,l=Z.$!=null?[Z.$]:b.C,O=JSON.stringify(l),m=[];
for(var D=0;D<l.length;D++)m.push(b.t[l[D]].WL);Q.data={e:w,U0:O,OA:m,u$:e[Z.u$]};b.kz(Q);this.Ed(Q.data,b);
this.track(a3.Si("Md",{t:"enum",v:{BlnM:is.JO[Z.u$]}}))}if(w==F.XB){var Q,V=b.Yl(),l=Z.$!=null?[Z.$]:b.C,O=JSON.stringify(l);
if(V&&V.data&&V.data.e==w&&V.data.U0==O)Q=V;else{var q=a3.Si("Opct",{t:"UntF",v:{type:"#Prc",val:0}});
this.track(q);var m=[];for(var D=0;D<l.length;D++)m.push(b.t[l[D]].opacity);Q=new iA([6,32],this);Q.data={e:w,U0:O,OA:m,u$:Z.u$,xb:q.V1};
b.kz(Q)}Q.data.u$=Z.u$;Q.data.xb.T.v.Opct.v.val=Math.round(Z.u$*100/255);this.Ed(Q.data,b)}if(w==F.Cd){if(h.add.iOpa==null)h.add.iOpa=255;
var Q,V=b.Yl();if(V&&V.data&&V.data.e==w&&V.data.$==f)Q=V;else{Q=new iA("Fill Opacity Change",this);
Q.data={e:w,$:f,OA:h.add.iOpa,u$:Z.u$};b.kz(Q)}Q.data.u$=Z.u$;this.Ed(Q.data,b)}if(w==F.EQ){var K=Z.u$,z=Z.$!=null?[Z.$]:b.C.slice(0),t=[],H=[],Q;
for(var i=0;i<z.length;i++){var y=b.t[z[i]];if(y.add.lspf==null)y.add.lspf=0;var m=y.add.lspf,j=m;for(var D=0;
D<K[0].length;D++){var J=K[1][D],A=1<<J;if((j&A)==0&&K[0][D])j^=A;else if((j&A)!=0&&!K[0][D])j^=A}t.push(m);
H.push(j)}var V=b.Yl(),l=JSON.stringify(z);if(V&&V.data&&V.data.e==w&&JSON.stringify(V.data.U0)==l){Q=V;
Q.data.u$=H}else{var Q=new iA([6,57,1],this);Q.data={e:w,U0:l,OA:t,u$:H};b.kz(Q)}this.Ed(Q.data,b)}if(w==F.R5){var a="----",I=Z.xh,j=null;
for(var D=0;D<aM.Er.XS.length;D++)if(h.add[aM.Er.XS[D]])a=aM.Er.XS[D];var E=h.add[a];if(I=="TySh")j=eO.nR(50,50,P.pA);
var Q=new iA("Layer Type",this);Q.data={e:w,$:f,ag7:[a,E],xh:[I,j]};b.kz(Q);this.Ed(Q.data,b)}if(w==F.qk){var z=[];
if(Y.q(U.G_)){var c=b.Yl(),u=c?c.data:null;if(c!=null&&c.T==this&&u.e==F.qk&&u.U0.length!=1){var n=new d(s.E.s);
n.T=G._H;n.data={e:"h_stepbck"};S.m(n);if(u.$==f)return}var o=b.root.zO(f),x=b.IM(null,f);while(o.parent!=b.root){x.push(o.parent.index);
o=o.parent}for(var D=0;D<b.t.length;D++){var g=b.t[D],v=g._7(),R=x.indexOf(D)!=-1;if(!R&&v)z.push(D);
if(D==f&&!v)z.push(D)}}else{z.push(f);var v=b.t[f]._7(),q={uf:v?"hide":"show",V1:{classID:v?"Hd":"Shw",null:{t:"VlLs",v:[a3.h$("Lyr",!0)]}}};
this.track(q)}var Q=new iA("Layer visibility",this,!0);Q.data={e:w,U0:z,$:f};b.kz(Q);this.Ed(Q.data,b)}if(w==F.lx){var q={uf:"select",V1:{classID:"null",MkVs:{t:"bool",v:!1}}},X,escape=!1;
if(b.a.o.join("")!="111"){b.a.o=[1,1,1];b.nd=!0}if(Y.q(U.cD)||Z.a4y==0){var B=b.C.indexOf(f);if(B==-1)b.C.push(f);
else if(b.C.length>1)b.C.splice(B,1);b.C.sort(function(Q,f7){return Q-f7});q.V1.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelection"}};
X=f}else if(Y.q(U.Lo)&&!Y.q(U.G_)&&Z.s0>0){w=Z.s0==1?F.pa:Z.s0==2?F.cf:F.Wt;escape=!0}else if((Y.q(U.Lo)||Z.a4y==1)&&b.C.length>0){var M=Math.min(f,b.C[0]),r=Math.max(f,b.C[b.C.length-1]);
b.C=[];for(var D=M;D<=r;D++)if(b.t[D].add.lsct!=fr.Ee)b.C.push(D);q.V1.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelectionContinuous"}};
X=f}else{X=f;var g=b.t[f];if(g&&g.W$()&&Z.acJ)g.add.lsct=fr.k8;else if(b.C.length==1&&b.C[0]==f&&Z.s0==g.PC){return}b.C=[f];
b.NW()}if(X!=null&&X<b.t.length){q.V1.null={t:"obj ",v:[{t:"name",v:{classID:"Lyr",val:b.t[X].getName()}}]},this.track(q)}if(!escape){if(b.C.length==1){var N=b.C[0];
for(var D=0;D<b.t.length;D++){if(D==N)continue;var y=b.t[D];y.PC=0;y.PL=!1}var h=b.t[N];if(Z.s0==2){h.PL=!h.PL;
b.ph=[]}else if(h){h.PC=Z.s0<=0?0:Z.s0;if(Z.s0==1||Z.s0==3){var $=Z.s0==3?h.fY(b).d:h.Y6();$.Ag=!1}}}else for(var D=0;
D<b.t.length;D++){var y=b.t[D];y.PC=0;y.PL=!1}b.v6=null;b.Pd=!0}}if(w==F.pa||w==F.Wt){var eQ=w==F.pa,$=eQ?h.Y6():h.fY(b).d;
if($==null)return;var Q=new iA($.isEnabled?eQ?[6,15]:[6,42]:eQ?[6,14]:[6,41],this);Q.data={e:w,$:f};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.cf){var $=h.add.vmsk;if($==null)return;var Q=new iA($.isEnabled?[6,17]:[6,16],this);
Q.data={e:w,$:f};b.kz(Q);this.Ed(Q.data,b)}if(w==F.Cs){var hN=h.add.lsct==fr.k8?fr.U1:fr.k8;if(Y.q(U.cD)){var bI=b.root.zO(b.t.indexOf(h)).parent;
for(var D=0;D<bI.children.length;D++){var fq=bI.children[D].$;if(fq.W$())fq.add.lsct=hN}}else h.add.lsct=hN;
b.Pd=!0}if(w==F.TA){if(!b.rP(f))return;var Q=new iA(h.gL?[6,19]:[6,18],this);Q.data={e:w,$:f};b.kz(Q);
if(Z.u$==null||Z.u$!=h.gL)this.Ed(Q.data,b);this.track({uf:"groupEvent",V1:{classID:"GrpL",null:{t:"obj ",v:[a3.h$("Lyr",!0)]}}})}if(w==F.fa){if(h.GP())h.NG-=32;
else h.NG+=32;b.Pd=!0}if(w==F.sr||w==F.DZ){var Q;if(w==F.sr)Q=new iA(h.add.lmfx.masterFXSwitch.v?[6,30]:[6,29],this);
if(w==F.DZ)Q=new iA(h.add.SoLd.filterFX.v.enab.v?[6,44]:[6,43],this);Q.data={e:w,$:f};b.kz(Q);this.Ed(Q.data,b)}if(w==F.wp||w==F._J){var N=Z.index,Q;
if(w==F.wp)Q=new iA(h.add.lmfx[a4.Ol[N[0]]].v[N[1]].v.enab.v?[6,30]:[6,29],this);if(w==F._J)Q=new iA(h.add.SoLd.filterFX.v.filterFXList.v[N].v.enab.v?[6,44]:[6,43],this);
Q.data={e:w,$:f,index:Z.index};b.kz(Q);this.Ed(Q.data,b)}if(w==F.fE){if(Z.src==Z.nw)return;var e9=b.t[Z.src],W=b.t[Z.nw],L=e9.add.lmfx?JSON.stringify(e9.add.lmfx):"",bd=W.add.lmfx?JSON.stringify(W.add.lmfx):"";
if(W.add.lmfx==null){W.add.lmfx=JSON.parse(a4.default);for(var D=0;D<a4.order.length;D++)W.add.lmfx[a4.Ol[D]]={t:"VlLs",v:[]}}if(Z.Qn==null){W.add.lmfx=JSON.parse(L);
if(!Z.lW)delete e9.add.lmfx}else{var iw=Z.Qn[0],d7=a4.Ol[iw];if(a4.C1.indexOf(a4.order[iw])==-1)W.add.lmfx[d7].v=[];
W.add.lmfx[d7].v.push(e9.add.lmfx[d7].v[Z.Qn[1]]);if(!Z.lW)e9.add.lmfx[d7].v.splice(Z.Qn[1],1)}var d0=e9.add.lmfx?JSON.stringify(e9.add.lmfx):"",gS=W.add.lmfx?JSON.stringify(W.add.lmfx):"";
if(!W.GP())W.NG+=32;var Q=new iA("Move Layer Styles",this);Q.data={e:w,ur:Z.src,f1:Z.nw,ago:L,adi:bd,a7V:d0,a4k:gS};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.T0){var y=b.t[Z.src],cf=JSON.stringify(y.add.SoLd),cT=JSON.parse(cf),fU=cT.filterFX.v.filterFXList.v;
fU.splice(Z.Qn,1);var Q=new iA([6,53],this);Q.data={e:F.Ws,wS:[{SG:Z.src,U8:[cf,JSON.stringify(cT)]}]};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.yc){var e9=b.t[Z.src],W=b.t[Z.nw],g$=[];if(e9!=W&&W.add.SoLd==null){alert("Target layer is not a smart object!");
return}if(e9==W&&!Z.lW&&(Z.Qn==Z.JV||Z.Qn==-1))return;var bX=e9.fY(b),cf=JSON.stringify(e9.add.SoLd),cT=JSON.parse(cf),fU=cT.filterFX.v.filterFXList.v;
if(e9==W){fU.splice(Z.JV,0,fU[Z.Qn]);if(!Z.lW)fU.splice(Z.Qn+(Z.Qn<Z.JV?0:1),1);g$.push({SG:Z.src,U8:[cf,JSON.stringify(cT)]})}else if(Z.Qn==-1){var aw=cT.filterFX;
if(!Z.lW){delete cT.filterFX;g$.push({SG:Z.src,U8:[cf,JSON.stringify(cT)],yl:[bX,null]})}var hP=W.pL()?W.fY(b):null,eG=gf.la(bX),eB=JSON.stringify(W.add.SoLd),bb=JSON.parse(eB);
bb.placed.v=eG.id;bb.filterFX=aw;g$.push({SG:Z.nw,U8:[eB,JSON.stringify(bb)],yl:[hP,eG]})}else{var gx=fU[Z.Qn];
if(!Z.lW){fU.splice(Z.Qn,1);g$.push({SG:Z.src,U8:[cf,JSON.stringify(cT)]})}var eB=JSON.stringify(W.add.SoLd),bb=JSON.parse(eB);
if(bb.filterFX==null)bb.filterFX=cL.Wd();var er=bb.filterFX.v.filterFXList.v;er.splice(Z.JV,0,gx);var ea={SG:Z.nw,U8:[eB,JSON.stringify(bb)]};
if(!W.pL()){var eG=gf.vf(W.add.SoLd.placed.v);ea.yl=[null,eG]}g$.push(ea)}var Q=new iA([6,52],this);
Q.data={e:F.Ws,wS:g$};b.kz(Q);this.Ed(Q.data,b)}if(w==F.E5){var $=h.Y6(),Q=new iA($.kF?[6,26]:[6,25],this);
Q.data={e:w,$:f};b.kz(Q);this.Ed(Q.data,b);this.track({uf:"set",V1:{classID:"setd",null:{t:"obj ",v:[a3.h$("Lyr",!0)]},T:{t:"Objc",v:{classID:"Lyr",Usrs:{t:"bool",v:$.kF}}}}})}if(w==F.Rx){var $=h.add.vmsk,Q=new iA($.kF?[6,28]:[6,27],this);
Q.data={e:w,$:f};b.kz(Q);this.Ed(Q.data,b)}if(w==F.r5){var hD=[],Q;for(var D=0;D<b.C.length;D++){var i=b.C[D],g=b.t[i];
if(g.add.vogk)hD.push(i,JSON.stringify(g.add.vogk))}for(var D=0;D<b.ph.length;D++){var i=b.ph[D],g=b.Bf[i];
if(g.add.vogk)hD.push(-1-i,JSON.stringify(g.add.vogk))}T.AZ.ae6(b,Z.NA,Z.abE);var bP=[];for(var D=0;
D<b.C.length;D++){var i=b.C[D],g=b.t[i];if(g.add.vogk)bP.push(i,JSON.stringify(g.add.vogk))}for(var D=0;
D<b.ph.length;D++){var i=b.ph[D],g=b.Bf[i];if(g.add.vogk)bP.push(-1-i,JSON.stringify(g.add.vogk))}var V=b.Yl();
if(V&&V.data&&V.data.e==w){var iz=!0;for(var D=0;D<hD.length;D+=2)if(hD[D]!=V.data.pj[D])iz=!1;if(iz){Q=V;
Q.data.iF=bP}}if(Q==null){var Q=new iA([12,91,1],this);Q.data={e:w,pj:hD,iF:bP};b.kz(Q)}this.Ed(Q.data,b)}if(w==F.bs){var Q,V=b.Yl();
if(V&&V.data&&V.data.e==w&&V.data.$==f){Q=V;Q.data.hG=JSON.stringify(Z.hG)}if(Q==null){var Q=new iA("Editing Artboard",this);
Q.data={e:w,$:f,ac4:JSON.stringify(h.add.artb),hG:JSON.stringify(Z.hG)};b.kz(Q)}this.Ed(Q.data,b)}if(w==F.c0){var bP=b.eP.slice(0),iq=b.k9.slice(0),cU=b.N,aH=b.N;
if(Z.Ox=="fromAction"){var eK=Z.G.uf,h6=Z.G.V1;if(eK=="make"||eK=="duplicate"){var co=bP.length,cX=!1,eY=!1;
if(b.oz())co--;var dh=new F.bN;dh.name="Alpha "+(co+1);if(eK=="make"){var ga=h6.Nw.v;dh.color=255;iq=[co];
dh.Ag=!0;dh.Xe=ga.Opct.v;if(ga.Nm)dh.name=ga.Nm.v;if(ga.classID=="SCch"){cX=!0;aH=null;dh.vp=1}}else{var h0=h6.null.v[0].v;
if(h0.keyID=="fsel")cX=!0;else{var a8=G.Ks._$(b);aH=G.Ks.A8(b,a8);dh.color=0;dh.rect=aH.rect;dh.channel=aH.channel}}if(cX){dh.color=0;
if(b.N){dh.rect=b.N.rect.clone();dh.channel=b.N.channel.slice(0)}if(eY){dh.color=255-dh.color;T.oN(dh.channel)}}bP.splice(co,0,dh)}else if(eK=="delete"){var x=b.k9;
x.sort(function(Q,f7){return f7-Q});if(x.length==0)return;for(var D=0;D<x.length;D++)bP.splice(x[D],1);
iq=[]}else if(eK=="hide"){bP[iq[0]]=bP[iq[0]].clone();bP[iq[0]].Ag=!1}}if(Z.Ox=="rnm"){bP[Z.SU]=bP[Z.SU].clone();
bP[Z.SU].name=Z.name}var Q=new iA("Channel Edit",this);Q.data={e:w,pj:b.eP.slice(0),jp:b.k9.slice(0),iF:bP,Kw:iq,O1:cU,iH:aH};
this.Ed(Q.data,b);b.kz(Q)}if(w==F.Kb){var Q=new iA(Z.ep,this);Q.data={e:F.Kb,i3:b.t.slice(0),gR:Z.gR,qV:b.C.slice(0),nV:Z.iH};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.ak){var cc=b.IM(null,Z.$),em=1e10;if(cc.length==0)return;if(b.t.length==cc.length){alert("Project must have at least 1 layer");
return}var hW=[];for(var D=0;D<b.t.length;D++)if(cc.indexOf(D)==-1)hW.push(b.t[D]);for(var D=0;D<cc.length;
D++)em=Math.min(em,cc[D]);em=Math.max(em-1,0);while(hW[em].name=="</Layer group>")em++;this.track({uf:"delete",V1:{classID:"Dlt",null:a3.h$("Lyr",!0)}});
var Q=new iA([6,31],this);Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:[em]};b.kz(Q);this.Ed(Q.data,b)}if(w==F.sg){var x=Z.abj?Z.abj:b.C,br=0,bM=!1;
if(x.length==0)return;if(x.length==1&&b.t[x[0]].QG==0){alert(aV.get([15,7,5]));return}var cF=[];for(var D=0;
D<b.t.length;D++){var cW=b.t[D].QG;cF.push(cW);br=Math.max(br,cW)}var ct=-1,aQ=-1;for(var D=0;D<x.length;
D++){var cW=b.t[x[D]].QG;if(cW==0)bM=!0;else if(ct==-1||ct==cW)ct=cW;else aQ=cW}if(!bM)for(var D=0;D<x.length;
D++)b.t[x[D]].QG=0;else if(ct!=-1&&aQ==-1)for(var D=0;D<x.length;D++)b.t[x[D]].QG=ct;else for(var D=0;
D<x.length;D++)b.t[x[D]].QG=br+1;var eA=[];for(var D=0;D<b.t.length;D++){var cW=b.t[D].QG;if(eA[cW]==null)eA[cW]=0;
eA[cW]++}for(var D=0;D<b.t.length;D++){var cW=b.t[D].QG;if(eA[cW]==1)b.t[D].QG=0}var gQ=cF;cF=[];for(var D=0;
D<b.t.length;D++){var cW=b.t[D].QG;cF.push(cW);br=Math.max(br,cW)}var Q=new iA(bM?[6,54,0]:[6,54,1],this);
Q.data={e:F.sg,a9S:gQ,ajr:cF};b.kz(Q);this.Ed(Q.data,b)}if(w==F.GG&&(Z.$!=null||b.C.length!=0)||w==F.UB){var eE=b.Ac(w==F.GG?Z.$:f,null,Z.a5c);
if(w==F.UB){var y=eE[0],eK=y.add.SoLd.Idnt.v,a1=b.IG(eK).clone();y.add.SoLd.Idnt.v=a1.sx=gf.uc()+eK.slice(8);
b.add.lnk2.push(a1)}if(w==F.GG){var fA={uf:"duplicate",V1:{classID:"null",null:a3.h$("Lyr",!0)}};if(Z.VT){eE[0].wc(Z.VT);
fA.Nm={t:"TEXT",v:Z.VT}}this.track(fA);Z.a70=Z.$}w=F.Fd;Z.t=eE;Z.UY=b;Z.Zn=b}if(w==F.Fd){var eH,gd,ey=Z.UY,hx=Z.Zn;
if(ey!=hx){console.log("ADDLAYERS different projs");var eH=new b4(0,0,ey.c,ey.v),gd=new b4(0,0,hx.c,hx.v),ew=[],am=[];
for(var D=0;D<Z.t.length;D++){var y=Z.t[D];if(y.add.SoLd==null)continue;var eK=y.add.SoLd.Idnt.v;if(ew.indexOf(eK)==-1){ew.push(eK);
am.push(gf.uc()+eK.slice(8))}y.add.SoLd.Idnt.v=am[ew.indexOf(eK)];var bX=y.fY(ey);if(bX){ey.Qm(bX);hx.HM(bX)}}if(ew.length>0){if(hx.add.lnk2==null)hx.add.lnk2=[];
for(var D=0;D<ew.length;D++){var dI=ey.IG(ew[D]),a1=dI.clone();a1.sx=am[D];hx.add.lnk2.push(a1)}}}var cU=hx.C.slice(0);
cU.sort(function(Q,f7){return Q-f7});var hW=hx.t.slice(0),aH=[],bs=-1;for(var D=0;D<cU.length;D++)bs=Math.max(bs,cU[D]);
if(Z.a70!=null)bs=Z.a70;bs++;for(var D=0;D<Z.t.length;D++){var g=Z.t[D];hW.splice(bs,0,g);aH.push(bs);
bs++}if(Z.t[Z.t.length-1].W$())aH=[bs-1];var Q=new iA([6,0],this);Q.data={e:F.Kb,i3:hx.t.slice(0),gR:hW,qV:cU,nV:aH};
hx.kz(Q);this.Ed(Q.data,hx)}if(w==F.A6){var fE=Z.$!=null?[Z.$]:b.IM(),hW=b.t.slice(0);for(var D=0;D<fE.length;
D++){var g=b.t[fE[D]].clone();g.Yq(b);hW.splice(fE[D],1,g)}var Q=new iA([6,8],this);Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:b.C.slice(0)};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.gg){var hW=b.t.slice(0),g=hW[b.C[0]]=hW[b.C[0]].clone(),gg=g.add.lmfx,gR=0;
delete g.add.lmfx;var bT=T.f(g.rect.X());T.to(g.buffer,bT,3);var aa=eg.HP(gg,null,bT,g.rect,b,g.rect).type;
for(var D=0;D<a4.order.length;D++){var gb=a4.order[D],bH=aa[gb],dW=D>7;for(var cj=0;cj<bH.length;cj++){var bm=bH[cj],l=b.Dl();
l.WL=bm.yf;l.opacity=Math.round(255*bm.e5);l.gL=!dW;l.buffer=bm.j$;l.rect=bm.Wx;l.rect.offset(g.rect.x,g.rect.y);
l.wc(g.getName()+"'s "+aV.get(a4.names[D]));hW.splice(b.C[0]+(dW?0:1),0,l);if(dW)gR++}}var Q=new iA("Styles to Layers",this);
Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:[b.C[0]+gR]};b.kz(Q);this.Ed(Q.data,b)}if(w==F.zR){var fE=b.IM(),hW=b.t.slice(0),ge=new b4(0,0,b.c,b.v);
for(var D=0;D<fE.length;D++){var dc=b.t[fE[D]],eT=dc._7();dc.Ba(!0);var fg=b.root.zO(fE[D]);if(dc.W$())continue;
if(fg==null)continue;var g=dc.clone();g.Yq(b);var gL=fg.Ij(b,!0),f4=b.t;b.vM([dc]);b.D();b.j8();g.buffer=T.f(gL.X()*4);
T.uH(b.Zd(),ge,g.buffer,gL);g.rect=gL;g.opacity=255;g.add.iOpa=255;g.WL="norm";g.D();g.VW.Ft=!0;b.vM(f4);
if(g.add.lmfx)delete g.add.lmfx;g.d=g.Wr=null;hW.splice(fE[D],1,g);g.Ba(eT);dc.Ba(eT)}var Q=new iA([6,34],this);
Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:b.C.slice(0)};b.kz(Q);this.Ed(Q.data,b)}if(w==F.kj){var fE=b.IM(),hW=b.t.slice(0);
for(var D=0;D<fE.length;D++){var g=b.t[fE[D]],eu=g.add.TySh;if(eu==null)continue;var y=new io(eu.HK,P.S9),f5=T.z.Py(gU.L7(y,eu));
for(var bf in f5){var iL=f5[bf],fq=g.clone();delete fq.add.TySh;fq.NG=fq.NG|1<<4;fq.add.SoCo=JSON.parse(JSON.stringify(a4.BH[0]));
var hB=fq.add.SoCo.Clr.v;hB.Rd.v=parseInt(bf.slice(1,3),16);hB.Grn.v=parseInt(bf.slice(3,5),16);hB.Bl.v=parseInt(bf.slice(5,7),16);
var aR=new F.NS;aR.b=T.z.Cp(iL,!1);if(fq.add.vmsk!=null){fq.add.vmsk.ak_();aR.concat(fq.add.vmsk)}fq.add.vmsk=aR;
fq.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));fq.AU();fq.vK(b);hW.splice(hW.indexOf(g),0,fq)}hW.splice(hW.indexOf(g),1)}var aH=b.C.slice(0);
for(var D=aH.length-1;D>=0;D--)if(aH[D]>=hW.length)aH.splice(D,1);var Q=new iA([6,40],this);Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:aH};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.ki){var bJ=b.C.length;if(bJ<2){alert("Select two or more layers.");
return}if(!b.Xy())return;var fq=b.t[b.C[0]].clone(),hW=[];for(var D=0;D<b.t.length;D++)if(b.C.indexOf(D)==-1)hW.push(b.t[D]);
hW.splice(b.C[0],0,fq);for(var D=1;D<bJ;D++)if(b.t[b.C[D]].rect.X()>2e6){alert("Blended areas are too large.");
return}for(var D=1;D<bJ;D++){var g=b.t[b.C[D]],dM=g.rect.clone();dM.lg(1,1);var f7=T.f(dM.X()*4);T.uH(g.buffer,g.rect,f7,dM);
fq.extend(dM);var dA=T.f(dM.X()*4);T.uH(fq.buffer,fq.rect,dA,dM);var Q=T.f(dM.X());T.to(f7,Q,3);T.round(Q,200);
T.y8(Q,f7,3);T.p.xJ("norm",f7,dM,dA,dM,dM,1);T.Ar.Ci(dA,Q,dM);T.uH(dA,dM,fq.buffer,fq.rect)}var Q=new iA([2,10,0],this);
Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:[b.C[0]]};b.kz(Q);this.Ed(Q.data,b)}if(w==F.P2){var hW=b.t.slice(0),iq=b.C.slice(0);
for(var D=0;D<hW.length;D++){var g=hW[D],ie=g.add.vmsk;if(g.q3()&&ie&&g.add.vstk.strokeEnabled.v&&!g.add.vstk.fillEnabled.v){var bO=ie.b,e4=0,i2=-1;
for(var cj=0;cj<bO.length;cj++){if((bO[cj].type==0||bO[cj].type==3)&&bO[cj].qU!=-1){e4++;if(bO[cj].type==3&&i2==-1){bO[cj].oY=bO[cj].qU=1;
i2=cj}}}if(e4>1&&i2!=-1){console.log("separating an open path into a new layer");g=g.clone();ie=g.add.vmsk;
bO=ie.b;var l=bO[i2].length,b8=g.clone();b8.add.lyid=b.Tm();ie.b=bO.slice(0,2).concat(bO.slice(i2,i2+l+1));
ie.C=[];g.vK(b);g.D();var dH=b8.add.vmsk.b;b8.add.vmsk.b=dH.slice(0,i2).concat(dH.slice(i2+l+1,dH.length));
b8.add.vmsk.C=[];b8.vK(b);hW[D]=g;hW.splice(D+1,0,b8);for(var cj=0;cj<iq.length;cj++)if(iq[cj]>D)iq[cj]++;
var gr=iq.indexOf(D);if(gr!=-1){iq.splice(gr+1,0,D+1)}}}}if(hW.length!=b.t.length){var Q=new iA("Splitting open paths",this);
Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:iq};b.kz(Q);this.Ed(Q.data,b)}}if(w==F.Rc){this.Pf({e:F.P2},S,b,Y,P);
var cU=b.C.slice(0),f4=b.t.slice(0),fE=b.IM();if(fE.length==0)return;b.Qw(fE,!1,Z.vh);var Q=new iA([6,36,0],this);
Q.data={e:F.Kb,i3:f4,gR:b.t.slice(),qV:cU,nV:b.C.slice(0)};b.kz(Q);this.Ed(Q.data,b)}if(w==F.m$){var cf=h.add.SoLd;
if(cf==null)return;var eK=cf.Idnt.v,hd=b.IG(eK);hd.Zd(!1);var f9=hd.Qf[0],dM=hd.Qf[1];if(T.PV(f9)){alert("The smart object contains transparency.");
return}var d$=ab.iZ("jpg").$b([[f9.buffer]],dM.c,dM.v,[90]);this.Pf({e:F.dX,hp:b,data:new Uint8Array(d$),id:eK,vh:"jpg"},S,b,Y,P);
console.log(b.add);return}if(w==F.dX){var dI=Z.hp.IG(Z.id),a1=dI.clone();a1.raw=Z.data;if(Z.vh){a1.Tw=" ";
a1.uR=" ";a1.JB=a1.JB+"."+Z.vh}else{a1.Tw="8BIM";a1.uR="8BPB";a1.JB=a1.JB+".psd"}a1.Zd(!1);dI.Zd(!1);
var Q=new iA([6,36,1],this);Q.data={e:F.dX,id:Z.id,Lw:dI,t7:a1};Z.hp.kz(Q);this.Ed(Q.data,Z.hp)}if(w==F.Jp){var Q=new iA([6,36,4],this);
Q.data={e:w,$:f,a7:h.add.SoLd.Impr.v.classID,u$:Z.u$};b.kz(Q);this.Ed(Q.data,b)}if(w==F.gK){var aP,bw;
if(Z.NN){aP=Z.hp;bw=Z.NN}else{Z.hp.Wl();Z.hp.mG();Z.hp.D();Z.hp.j8();Z.hp.Zd();aP=ab.iZ("PSD").$b(Z.hp,0,0,[!0,!0]);
bw=Z.hp.name}if(!(aP instanceof ArrayBuffer))throw"e";aP=new Uint8Array(aP);var B=Z.xj!=null?Z.xj:b.C[b.C.length-1]+1,di=b.CL(aP,bw,0,0,!0),hW=b.t.slice(0);
hW.splice(B,0,di);var Q=new iA([6,36,2],this);Q.data={e:F.Kb,i3:b.t.slice(),gR:hW,qV:b.C.slice(0),nV:[hW.indexOf(di)]};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.xG&&Z.Ox=="merge"){var iB=[],a_=b.root.children,iI=0;for(var D=0;D<a_.length;
D++){var o=a_[D],g=o.$,fh=o.children,b2=!0;if(!g.W$()||fh.length==0)continue;for(var cj=0;cj<fh.length;
cj++)if(!fh[cj].$.getName().startsWith("_a_")){b2=!1;break}if(b2)iB.push(b.t.indexOf(g))}var iE=[];for(var D=0;
D<iB.length;D++)if(b.C.indexOf(iB[D])!=-1)iE.push(iB[D]);if(iE.length>=2)iB=iE;if(iB.length<2){alert("At least two animation folders needed (whose layers start with \"_a_\").",3500);
return}var h8=[];for(var D=0;D<iB.length;D++)h8.push(b.t[iB[D]].getName());var bH=[];for(var dg=0;dg<iB.length;
dg++){var o=b.root.zO(iB[dg]),ea=[[],[],0,dg];bH.push(ea);for(var D=0;D<o.children.length;D++){var i=o.children[D].index,g=o.children[D].$,dh=g.getName(),i7=20,h_=dh.split(",");
if(h_.length>1){var h9=parseInt(h_.pop());if(!isNaN(h9)&&h9!=0)i7=h9}ea[0].push(g);ea[1].push(i7);ea[2]+=i7}}bH.sort(function(Q,f7){return f7[2]-Q[2]});
var c8=bH[0],eX=c8[2];for(var hp=1;hp<bH.length;hp++){var ea=bH[hp],fu=1,bB=ea[1].slice(0),gG=0;while((fu+1)*ea[2]<=c8[2]){fu++;
bB=bB.concat(ea[1])}ea[1]=bB;ea[2]*=fu;var dR=c8[2]/ea[2];for(var D=0;D<ea[1].length;D++){var ay=Math.floor(ea[1][D]*dR);
ea[1][D]=ay;gG+=ay}while(gG<eX){gG++;ea[1][ea[1].length-1]++}ea[2]=gG}var hj=[],dy=[],ay=[];for(var D=0;
D<bH.length;D++){hj.push(0);dy.push(0)}while(iI<eX){var iK=1e9,co=-1;for(var D=0;D<bH.length;D++){var ac=bH[D][1],dt=hj[D];
if(dt!=ac.length&&dy[D]+ac[dt]<iI+iK){co=D;iK=dy[D]+ac[dt]-iI}}dy[co]+=bH[co][1][hj[co]];hj[co]++;if(iK!=0){ay.push(iK);
iI+=iK}}for(var D=0;D<ay.length;D++){var c9=ay[D],a6=c9>>>1;if(c9<17){var i=ay.length-1;if(D==0)ay[1]+=c9;
else if(D==ay.length-1)ay[i-1]+=c9;else{ay[D-1]+=a6;ay[D+1]+=c9-a6}ay.splice(D,1);D--}}var eT=[],ge=new b4(0,0,b.c,b.v);
for(var D=0;D<b.t.length;D++){eT[D]=b.t[D]._7();b.t[D].Ba(!1)}var iO=b.C.slice(0);b.C=iB;var cc=b.IM();
cc.sort(function(Q,f7){return Q-f7});var hW=[];for(var D=0;D<b.t.length;D++){if(cc.indexOf(D)==-1)hW.push(b.t[D])}bH.sort(function(Q,f7){return Q[3]-f7[3]});
function hz(ac,gY){var D=0,cl=0;while(cl+ac[D]<=gY){cl+=ac[D];D++}return D}iI=0;hW.splice(cc[0],0,b._z());
for(var eC=0;eC<ay.length;eC++){var z=[];for(var D=0;D<bH.length;D++){var dt=hz(bH[D][1],iI)%bH[D][0].length,g=bH[D][0][dt];
z.push(g)}var g=b.Dl();for(var D=0;D<bH.length;D++){var dx=z[D],bI=b.t[iB[D]];dx.Ba(!0);bI.Ba(!0)}b.D();
b.j8();var f9=b.Zd();g.rect=T.gG(f9,ge);g.buffer=T.f(g.rect.X()*4);T.uH(f9,ge,g.buffer,g.rect);for(var D=0;
D<bH.length;D++){var dx=z[D],bI=b.t[iB[D]];dx.Ba(!1);bI.Ba(!1)}g.Ba(eC==0);g.wc("_a_frm"+eC+","+ay[eC]);
hW.splice(cc[0]+1+eC,0,g);iI+=ay[eC]}var g=b.Dl();g.wc(h8.join(" + "));g.WL="pass";g.add.lsct=fr.U1;
g.NG=24;hW.splice(cc[0]+1+ay.length,0,g);for(var D=0;D<b.t.length;D++)b.t[D].Ba(eT[D]);var Q=new iA([6,12,0],this);
Q.data={e:F.Kb,i3:b.t,gR:hW,qV:iO,nV:[cc[0]+1+ay.length]};b.kz(Q);this.Ed(Q.data,b)}if(w==F.lh||w==F.oy||w==F.MS){var f4=b.t.slice(0),cU=b.C.slice(0),fn=!0,di,aH;
if(w==F.lh)b.C=[f,f-1];if(w==F.MS){b.C=[];for(var D=0;D<b.t.length;D++)if(b.t[D]._7())b.C.push(D)}var fE=b.IM();
fE.sort(function(Q,f7){return Q-f7});var ff=new b4,ge=new b4(0,0,b.c,b.v);for(var D=0;D<fE.length;D++){var i=fE[D],g=b.t[i];
fn=fn&&g.q3()&&g.add.vmsk!=null;ff=ff.VK(b.root.zO(i).Ij(b,!0))}if(fn){di=b.t[fE[0]].clone();var ie=di.add.vmsk;
for(var D=1;D<fE.length;D++){var l=b.t[fE[D]],dH=F.NS.OU(l.add.vmsk.b);ie.b=ie.b.concat(dH.slice(2));
di.add.vogk=di.add.vogk.concat(JSON.parse(JSON.stringify(l.add.vogk)))}di.add.vmsk.Th=!0;di.vK(b)}else if(ge.ls(ff)){di=b.Dl();
di.wc(b.t[fE[fE.length-1]].getName());di.rect=ff;di.buffer=T.f(ff.X()*4);var dD=b.Zd(fE);T.uH(dD,ge,di.buffer,ff);
di.D()}else{b.Qw(fE,!0);di=b.t[b.C[0]];b.t.splice(b.C[0],1);var gq=b.IG(di.add.SoLd.Idnt.v);b.add.lnk2.splice(b.add.lnk2.indexOf(gq),1);
delete di.add.SoLd}var cZ=Y.q(U.G_),g2=-1;if(Z.V1&&Z.V1.Dplc&&Z.V1.Dplc.v)cZ=!0;if(cZ&&w==F.MS&&b.t[cU[0]].bu()&&b.t[cU[0]].rect.h3()){g2=cU[0];
di.wc(b.t[g2].getName())}var hW=[];for(var D=0;D<b.t.length;D++)if(cZ||fE.indexOf(D)==-1)if(D!=g2)hW.push(b.t[D]);
var bL=fE[fE.length-1],cp=bL==b.t.length-1?null:b.t[bL+1],aC=cp?hW.indexOf(cp):hW.length;hW.splice(aC,0,di);
aH=[aC];var Q=new iA([6,12,0],this);Q.data={e:F.Kb,i3:f4,gR:hW,qV:cU,nV:aH};b.kz(Q);this.Ed(Q.data,b)}if(w==F.Dh){var fq=b.Dl();
fq.rect=new b4(0,0,b.c,b.v);fq.buffer=T.f(fq.rect.X()*4);T._U(fq.buffer,4294967295);T.p.xJ("norm",b.Zd(),fq.rect,fq.buffer,fq.rect,fq.rect,1);
fq.wc("Background");fq.add.lspf=1<<2;var Q=new iA([6,12,1],this);Q.data={e:F.Kb,i3:b.t.slice(),gR:[fq],qV:b.C.slice(0),nV:[0]};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.NO||w==F.rM||w==F.Gl||w==F.nC||w==F.WW){var g=w==F.WW?b.t[b.C[0]].clone():b.Dl(),e1=aV.get([0,3]),bZ=Z.VT,d_=!1,h5,cw;
if(w==F.Gl)e1=aV.get([12,76,1]);if(w==F.WW){var dc=b.t[b.C[0]],aS=dc.d5(b,b.N);if(aS==null){alert("Copied area is empty");
return}g.rect=aS.rect;g.buffer=aS.Le;g.Yq(b)}if(w==F.nC){g.rect=dK.AK.up(Z.fZ,b);g.buffer=Z.fZ.buffer.slice(0);
if(Z.ks&&b.N){g.d=new F.bN;g.d.rect=b.N.rect;g.d.color=0;g.d.channel=b.N.channel.slice(0)}}if(w==F.NO){this.track({uf:"make",V1:{classID:"Mk",null:a3.h$("Lyr")}})}if(w==F.rM){g.NG|=16;
var ii=Z.V1.Usng.v,hH=ii.Type.v,fm=g3.rB[hH.classID];e1=aV.get(g3.names[fm]);if(ii.Nm)bZ=ii.Nm.v;g.add[fm]=cL.VS(fm);
if(g.add[fm]==null)g.add[fm]={};for(var iQ in hH)g.add[fm][iQ]=JSON.parse(JSON.stringify(hH[iQ]));g.d=dK.AK.Gn(b)}if(w==F.Gl){g.NG|=16;
var h6=Z.V1,ii=h6.Usng.v,eo=ii.Type.v,g6=ii.Shp;if(g6==null){var g5=b.zl(),f5=g5[0],ci=g5[1];if(ci.length!=0){var ch=f5[ci[0]].add;
g.add.vmsk=ch.vmsk.clone();g.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));g.add.vogk=JSON.parse(JSON.stringify(ch.vogk));
b.ph=[]}else g.d=dK.AK.Gn(b)}else{console.log(ii);g.add.vmsk=new F.NS;g.add.vstk=JSON.parse(JSON.stringify(ii.strokeStyle?ii.strokeStyle.v:a4.m3.default));
g.add.vogk=[];if(g6){var dF=T.AZ.XM(g6);if(dF){g.add.vogk=[dF];g.add.vmsk.b.push({type:0,qU:1,length:0});
T.AZ.BA(g.add.vogk,g.add.vmsk)}else{g6=g6.v;var hh=g6.classID;if(hh=="Plgn"){var aT=g6.Cntr.v,eL=g6.corner.v;
aT=new ar(aT.Hrzn.v.val,aT.Vrtc.v.val);eL=new ar(eL.Hrzn.v.val,eL.Vrtc.v.val);g.add.vmsk.b=T.Y.i9.Fm(aT.x,aT.y,Math.sqrt(eL.x*eL.x+eL.y*eL.y),Math.atan2(eL.y,eL.x),g6.sides.v,0)}else if(hh=="customShape"){var ez=T.AZ.T$(g6),df=ez[2]-ez[0],eb=ez[3]-ez[1],iy=P.Tp,en,cN;
for(var D=0;D<iy.length;D++)if(iy[D].rv==g6.Nm.v)en=iy[D];if(en){cN=F.NS.OU(en.b);T.Y.$d(cN,new fR(df,0,0,eb,ez[0],ez[1]))}else cN=T.Y.i9.Rect(ez[0],ez[1],df,eb,0);
g.add.vmsk.b=cN}g.AU()}}}var bV={solidColorLayer:0,gradientLayer:1,patternLayer:2}[eo.classID],fb=["SoCo","GdFl","PtFl"][bV];
g.add[fb]=JSON.parse(JSON.stringify(a4.BH[bV]));dK.AK.zV(eo,g.add[fb],bV);if(g6==null)e1=aV.get([6,48,0,bV]);
if(fb=="PtFl")b.ij(eg.Xl(g.add[fb].Ptrn.v,P.w6));g.vK(b)}var bJ=dK.AK.KG(b,e1+" ");g.wc(e1+" "+(bJ+1));
if(bZ)g.wc(bZ);var eN=b.C.length==0?b.t.length-1:b.C[b.C.length-1],fV=b.t[eN];if(w==F.Gl&&fV.bu()&&fV.rect.h3()){d_=!0;
g.wc(fV.getName());h5=eN}else{h5=eN+1;if(fV&&fV.add.lsct==fr.k8)h5--}if(Z.a2P)h5=Math.max(0,h5-1);var hW=b.t.slice(0);
hW.splice(h5,d_?1:0,g);var iT=[5,2];if(w==F.NO)iT=[6,13];if(w==F.rM)iT=[6,1];if(w==F.Gl){iT=[6,48,1];
var g6=Z.V1.Usng.v.Shp;if(g6){var ef={Rctn:[10,32],Ln:[10,35],Elps:[10,33],Plgn:[12,93,0],customShape:[10,31]}[g6.v.classID];
if(ef)iT=ef}}if(w==F.WW){iT=[6,49]}if(w==F.WW||w==F.Gl||w==F.nC)if(b.N)cw=[b.N,null];var Q=new iA(iT,this);
Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:[h5],_q:cw};b.kz(Q);this.Ed(Q.data,b);if(w==F.Gl&&g6==null&&bV!=0||w==F.rM){var dB=new d(s.E.P);
dB.data={e:s.U.AO,g9:eS.KV.Ye};S.m(dB)}}if(w==F.D4){var g=b.Dl();g.wc(aV.get([0,4])+" "+b.t.length);
g.WL="pass";g.add.lsct=fr.k8;g.NG=24;var e6=b._z(),eN=f,h5=eN+1,hW=b.t.slice(0);hW.splice(h5,0,e6,g);
var Q=new iA([6,20],this);Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:[h5+1]};b.kz(Q);this.Ed(Q.data,b)}if(w==F.ob||w==F.ho){var an=w==F.ob?Z.source:b.C[0],be,g_,fx=b.C.indexOf(an)!=-1,a7=Y.q(U.G_)|Z.an_,g9;
if(fx)g9=b.IM();else g9=b.op(an);g9.sort(function(Q,f7){return Q-f7});if(w==F.ob){be=Z.target;g_=Z.ZI>.5}else if(Z.target!=null){be=Z.target;
g_=!0;b.ug=!0}else{var b1=Z.Ox;g_=b1>1;if(b1==0){be=b.t.length-1}if(b1==1){be=g9[g9.length-1]+1;var l=b.op(be);
if(l.indexOf(an)==-1)be+=l.length-1}if(b1==2){be=g9[0]-1;var l=b.op(be);if(l.indexOf(an)==-1)be-=l.length-1}if(b1==3){be=0}if(be<0||be>b.t.length-1)return;
b.ug=!0}if(g9.indexOf(be)!=-1&&!a7)return;var hi=b.t[be],hW=[];if(a7)hW=b.t.slice(0);else for(var D=0;
D<b.t.length;D++)if(g9.indexOf(D)==-1)hW.push(b.t[D]);var i3=hW.indexOf(hi);if(w==F.ob&&hi.W$()&&hi.add.lsct==fr.U1&&Z.ZI>.8)i3-=b.op(be).length-1;
var cy=[],cD=a7?b.Ac(fx?null:an):null;for(var D=0;D<g9.length;D++){var dl=i3+(g_?0:1)+D,y=a7?cD[D]:b.t[g9[D]];
hW.splice(dl,0,y);cy.push(dl)}var Q=new iA(a7?[6,0]:[6,35],this);Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:cy};
b.kz(Q);this.Ed(Q.data,b);var h6={classID:"move",null:a3.h$("Lyr",!0),T:{t:"obj ",v:[{t:"indx",v:{classID:"Lyr",val:i3+(g_?0:1)}}]},Adjs:{t:"bool",v:!1},Vrsn:{t:"long",v:5},Dplc:{t:"long",v:a7}};
this.track({uf:"move",V1:h6})}if(w==F.aT){if(Z.r7){if(h==null||!h.W$())return;var o=b.root.zO(f),dT=b.t.indexOf(o.a8H),hW=b.t.slice(0);
hW.splice(f,1);hW.splice(dT,1);var iq=[];for(var D=dT;D<f-1;D++)iq.push(D);var Q=new iA("Ungroup Layers",this);
Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:iq};b.kz(Q);this.Ed(Q.data,b)}else{var g=b.Dl(),fS=aV.get([0,4])+" ";
g.wc(fS+(dK.AK.KG(b,fS)+1));g.WL="pass";if(Z.VT)g.wc(Z.VT);g.add.lsct=b.C.length==1?fr.k8:fr.U1;g.NG=24;
var e6=b._z(),g9=b.IM();if(g9.length==0)return;g9.sort(function(Q,f7){return Q-f7});var hW=[];for(var D=0;
D<b.t.length;D++)if(g9.indexOf(D)==-1)hW.push(b.t[D]);var eN=b.C[b.C.length-1]-g9.length;hW.splice(eN+1,0,e6);
for(var D=0;D<g9.length;D++)hW.splice(eN+2+D,0,b.t[g9[D]]);hW.splice(eN+2+g9.length,0,g);var Q=new iA([6,9],this);
Q.data={e:F.Kb,i3:b.t.slice(0),gR:hW,qV:b.C.slice(0),nV:[hW.indexOf(g)]};b.kz(Q);this.Ed(Q.data,b);var q={uf:"make",$i:!0};
q.V1={classID:"Mk",null:a3.h$("layerSection"),From:a3.h$("Lyr",!0),Usng:{t:"Objc",v:{classID:"layerSection",Nm:{t:"TEXT",v:g.getName()}}}};
this.track(q)}}if(w==F.Zh){if(b.C.length!=1)return;var B=b.C[0],ig=Y.q(U.G_);if(b.t[B].Y6()==null){w=F.q5;
Z.OK=b.N?!ig?"RvlS":"HdSl":!ig?"RvlA":"HdAl"}else w=F.Ow}if(w==F.q5){if(b.C.length!=1)return;var B=b.C[0],g=b.t[B];
if(g.add.vmsk&&g.d==null)g.vK(b);var aK=g.Y6();if(aK==null||Z.a3E){var Q=new iA([6,21],this),ed=new F.bN,iP=Z.OK,du=iP=="RvlS"||iP=="HdSl";
if(iP=="RvlS"||iP=="HdAl"||iP=="Trns")ed.color=0;if(du){ed.channel=b.N.channel.slice(0);ed.rect=b.N.rect.clone();
if(iP=="HdSl")T.oN(ed.channel)}if(iP=="Trns"){ed.rect=g.rect.clone();ed.channel=T.f(g.rect.X());T.to(g.buffer,ed.channel,3)}Q.data={e:w,$:B,d:ed,RY:aK,_q:du?[b.N,null]:null};
b.kz(Q);this.Ed(Q.data,b);b.t[B].PC=1;this.track({uf:"make",V1:{__name:"Make",classID:"Mk",Nw:{t:"type",v:{classID:"Chnl"}},At:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:"Msk"}}]},Usng:{t:"enum",v:{UsrM:iP}}}})}}else if(w==F.Y8){var e9=b.t[Z.src],W=b.t[Z.nw];
if(W.Y6())return;var Q=new iA([6,21],this),ed=e9.Y6();if(Z.lW){var aR=ed.clone();Q.data={e:F.q5,$:Z.nw,d:aR};
if(Y.q(U.Lo)){T.oN(aR.channel);aR.color=255-aR.color}}else{Q.data={e:w,src:Z.src,nw:Z.nw,d:ed}}b.kz(Q);
this.Ed(Q.data,b)}if(w==F.fs){if(b.C.length!=1)return;var B=f;if(b.t[B].Y6()!=null){var Q=new iA([6,22],this);
Q.data={e:w,$:B,d:b.t[B].Y6()};b.kz(Q);this.Ed(Q.data,b)}}if(w==F.ji){var f4=b.t.slice(0),fq=h.clone(),dS=fq.Y6();
T.FD(dS.Zv(fq.rect),fq.rect,fq.buffer,fq.rect);dK.AK.J2(b,fq);b.t[b.C[0]]=fq;var Q=new iA([5,8],this);
Q.data={e:F.Kb,i3:f4,gR:b.t.slice(),qV:b.C.slice(0),nV:b.C.slice(0)};b.kz(Q);this.Ed(Q.data,b)}if(w==F.AJ){if(b.C.length!=1)return;
var B=b.C[0];if(b.t[B].fY(b).d==null){var Q=new iA([6,45],this);Q.data={e:w,$:B,d:new F.bN};b.kz(Q);
this.Ed(Q.data,b)}}if(w==F.aQ){if(b.C.length!=1)return;var B=b.C[0];if(b.t[B].fY(b).d!=null){var Q=new iA([6,46],this);
Q.data={e:w,$:B,d:b.t[B].fY(b).d};b.kz(Q);this.Ed(Q.data,b)}}if(w==F.dF){if(Z.$==null&&b.C.length!=1)return;
if(b.t[f].pL()){var Q=new iA([6,47],this),cf=JSON.stringify(b.t[f].add.SoLd),cT=JSON.parse(cf);delete cT.filterFX;
Q.data={e:F.Ws,wS:[{SG:f,U8:[cf,JSON.stringify(cT)],yl:[b.t[f].fY(b),null]}]};b.kz(Q);this.Ed(Q.data,b)}}if(w==F.Ow){if(b.C.length!=1)return;
if(h.add.vmsk==null){var Q=new iA([6,23],this),bO=b.zl(),x=bO[1],bO=bO[0],ed,dF;if(Z.ab2&&x.length!=0){var ch=bO[x[0]].add;
ed=ch.vmsk.clone();dF=ch.vogk}else{ed=new F.NS;dF=[];ed.b[1].all=Z.a6Q?0:1}Q.data={e:w,$:f,z4:!0,d:ed,AZ:JSON.stringify(dF),m3:null};
if(h.q3()){Q.data.m3=JSON.stringify(a4.m3.default)}b.kz(Q);this.Ed(Q.data,b)}}if(w==F.OG){var e9=b.t[Z.src],W=b.t[Z.nw];
if(W.add.vmsk)return;var Q=new iA([6,23],this),ie=e9.add.vmsk;Q.data={$:Z.nw,z4:e9.PL,d:ie.clone(),AZ:JSON.stringify(e9.add.vogk),m3:e9.add.vstk?JSON.stringify(e9.add.vstk):null};
if(Z.lW){Q.data.e=F.Ow}else{Q.data.e=w;Q.data.src=Z.src;Q.data.nw=Z.nw}b.kz(Q);this.Ed(Q.data,b)}if(w==F.Vw){if(b.C.length!=1)return;
var g=b.t[f],ie=g.add.vmsk;if(ie!=null){var Q=new iA([6,24],this);Q.data={e:w,$:f,z4:g.PL,d:ie,AZ:JSON.stringify(g.add.vogk),m3:g.add.vstk?JSON.stringify(g.add.vstk):null};
b.kz(Q);this.Ed(Q.data,b)}}if(w==F.J4){var Q=new iA("Metadata",this);Q.data={e:w,Zl:JSON.stringify(b.tU),Xw:JSON.stringify(Z.Xw)};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.nA){var cx=Z.nw?Z.nw:b,ir=cx.name,bZ=Z.G+".psd";if(ir==bZ)return;var Q=new iA([6,37],this);
Q.data={e:w,a5o:ir,VT:bZ};if(Z.a6w!=!0)cx.kz(Q);this.Ed(Q.data,cx)}if(w==F.xG&&Z.Ox=="makeframes"){var dq=[];
for(var D=0;D<b.C.length;D++){var i=b.C[D],g=b.t[i],dN=g.getName();if(dN.startsWith("_a_")||g.add.lsct==fr.Ee)continue;
dq.push([i,dN,"_a_"+dN,g.add.lnsr,null])}var Q=new iA([6,37],this);Q.data={e:F.if,Sz:dq};b.kz(Q);this.Ed(Q.data,b)}if(w==F.if){var ir=h.getName(),bZ=Z.name.substring(0,255);
if(ir==bZ)return;var Q=new iA([6,37],this);Q.data={e:w,Sz:[[f,ir,bZ,h.add.lnsr,null]]};b.kz(Q);this.Ed(Q.data,b);
this.track(a3.Si("Nm",{t:"TEXT",v:bZ}))}if(w==F.mw){var go=b.IM(),b7=[],fe=[];for(var D=0;D<go.length;
D++){b7.push(b.t[go[D]].add.lclr);fe.push(Z.ai3)}var Q=new iA([6,38],this);Q.data={e:w,t:go,a7r:b7,abf:fe};
b.kz(Q);this.Ed(Q.data,b)}if(w==F.mS){var Q=b.history[b.Hc];if(Q!=null&&Q.T==this&&Q.data.e==w&&Q.data.$==Z.Wg&&Q.data.u$.oM==Z.gB.oM)Q.data.u$=Z.gB;
else{Q=new iA("Mask Density / Feather",this);Q.data={e:w,$:Z.Wg,a7:b.t[Z.Wg].ti(Z.gB.oM),u$:Z.gB};b.kz(Q)}this.Ed(Q.data,b)}if(w==F.Um){var fd=JSON.stringify(Z.G),ap=JSON.parse(fd),Q=b.history[b.Hc];
if(Q!=null&&Q.T==this&&Q.data.e==w&&Q.data.a1==Z.a1&&Q.data.U0.join(",")==Z.U0.join(",")){for(var D=0;
D<Z.U0.length;D++)Q.data.Om[D]=ap;if(Q.data.V1&&ap.uR!=0)dK.AK.zV(ap.B2,Q.data.V1.T.v,ap.uR-1)}else{Q=new iA([11,6],this);
Q.data={e:w,U0:Z.U0,a1:Z.a1,adJ:[],Om:[]};var bN=!1;for(var D=0;D<Z.U0.length;D++){var i=Z.U0[D],g=b.t[i],hr=Z.a1?G.Da.RS(b,i):JSON.parse(JSON.stringify(g.add.vstk));
Q.data.adJ.push(hr);Q.data.Om.push(ap);if(JSON.stringify(hr)!=fd)bN=!0}if(!bN)return;b.kz(Q);if(Z.a1&&ap.uR>0){var h6=Q.data.V1={classID:"setd",null:a3.h$("contentLayer",!0),T:{t:"Objc",v:{}}},fb=["SoCo","GdFl","PtFl"][ap.uR-1];
dK.AK.zV(ap.B2,h6.T.v,ap.uR-1);this.track({uf:"set",V1:h6})}}if(Z.a1&&ap.uR==3)b.ij(eg.Xl(ap.B2.Ptrn.v,P.w6));
if(!Z.a1){var fN=ap.strokeStyleContent.v;if(fN.classID==a4.m3.Vh[2])b.ij(eg.Xl(fN.Ptrn.v,P.w6))}this.Ed(Q.data,b)}};
dK.AK.zV=function(Z,S,b){var Y=[a4.pe,a4.xz,a4.jl][b];if(S.classID==null)S.classID=["solidColorLayer","gradientLayer","patternLayer"][b];
for(var D=0;D<Y.length;D++)if(Z[Y[D]])S[Y[D]]=JSON.parse(JSON.stringify(Z[Y[D]]))};dK.AK.Gn=function(Z){var S=new F.bN;
if(Z.N!=null){S.color=0;S.channel=Z.N.channel.slice(0);S.rect=Z.N.rect.clone()}return S};dK.AK.T4=function(Z,S,b,Y){var P=Y.c/b.c,w=Y.v/b.v,f=Y.c/2,h=Y.v/2,Q=T.z.X6(Y).H;
for(var D=0;D<Z.t.length;D++){var e=Z.t[D],l=e.add.SoLd;if(l==null||l.Idnt.v!=S)continue;if(P!=1||w!=1){var O=G.V.Nt(l.nonAffineTransform),m=T.J.Sy(O,Y),V=new fR;
V.translate(-f,-h);V.scale(P,w);V.translate(f,h);var q=T.J.Co(m,T.J.GC(V)),K=Q.slice(0);T.J.A(q,K);l.Trnf=G.V.ab(K);
l.nonAffineTransform=G.V.ab(K)}e.JN(Z)}Z.D()};dK.AK.a7a=function(Z,S,b){S.color=255-S.color;T.oN(S.channel);
S.Th=!0;Z.vK(b);b.D()};dK.AK.prototype.zv=function(Z,S){var b=Z.e,Y=S.t[Z.$];S.Vc=!0;if(b==F.dX){S.add.lnk2.splice(S.add.lnk2.indexOf(Z.t7),1,Z.Lw);
dK.AK.T4(S,Z.id,Z.t7.Qf[1],Z.Lw.Qf[1])}if(b==F.Jp){Y.add.SoLd.Impr.v.classID=Z.a7;Y.JN(S)}if(b==F.fk){var P=JSON.parse(Z.U0);
for(var D=0;D<P.length;D++)S.t[P[D]].WL=Z.OA[D];S.D()}if(b==F.XB){var P=JSON.parse(Z.U0);for(var D=0;
D<P.length;D++)S.t[P[D]].opacity=Z.OA[D];S.D()}if(b==F.EQ){var P=JSON.parse(Z.U0);for(var D=0;D<P.length;
D++)if(S.t[P[D]].add.lsct!=fr.Ee)S.t[P[D]].add.lspf=Z.OA[D]}if(b==F.R5){var w=Z.xh,f=Z.ag7;delete Y.add[w[0]];
if(f[0]!="----")Y.add[f[0]]=f[1]}if(b==F.Cd){Y.add.iOpa=Z.OA;S.D()}if(b==F.qk){for(var D=0;D<Z.U0.length;
D++){var h=S.t[Z.U0[D]];h.Ba(!h._7())}S.D()}if(b==F.pa){var Q=Y.Y6();Q.isEnabled=!Q.isEnabled;Y.vK(S);
S.D()}if(b==F.Wt){var Q=Y.fY(S).d;Q.isEnabled=!Q.isEnabled;Y.D();S.D()}if(b==F.cf){var Q=Y.add.vmsk;
Q.isEnabled=!Q.isEnabled;if(!Q.isEnabled){if(Y.Wr){Y.d=Y.Wr;Y.Wr=null}else Y.d=null}else if(Y.d){Y.Wr=Y.d;
Y.d=null}Y.vK(S);S.D()}if(b==F.TA){Y.gL=!Y.gL;S.D()}if(b==F.sr){Y.add.lmfx.masterFXSwitch.v=!Y.add.lmfx.masterFXSwitch.v;
Y.VW.Ft=!0;S.D()}if(b==F.DZ){Y.add.SoLd.filterFX.v.enab.v=!Y.add.SoLd.filterFX.v.enab.v;Y.lZ(S);S.D()}if(b==F.wp){var e=Z.index,l=Y.add.lmfx[a4.Ol[e[0]]].v[e[1]].v;
l.enab.v=!l.enab.v;Y.VW.Ft=!0;S.D()}if(b==F.fE){var O=S.t[Z.ur],m=S.t[Z.f1],V=Z.ago,q=Z.adi;if(V=="")delete O.add.lmfx;
else O.add.lmfx=JSON.parse(V);if(q=="")delete m.add.lmfx;else m.add.lmfx=JSON.parse(q);O.VW.Ft=!0;m.VW.Ft=!0;
S.D()}if(b==F._J){var K=Y.add.SoLd.filterFX.v.filterFXList.v[Z.index].v;K.enab.v=!K.enab.v;Y.lZ(S);S.D()}if(b==F.tb){Y.add.SoLd.filterFX.v=JSON.parse(JSON.stringify(Z.aiX));
Y.lZ(S);S.D()}if(b==F.E5){var Q=Y.Y6();Q.kF=!Q.kF}if(b==F.Rx){var Q=Y.add.vmsk;Q.kF=!Q.kF}if(b==F.r5){var z=Z.pj;
for(var D=0;D<z.length;D+=2){var t=z[D],h=t>=0?S.t[t]:S.Bf[-1-t];h.add.vogk=JSON.parse(z[D+1]);T.AZ.BA(h.add.vogk,h.add.vmsk);
if(t>=0)h.vK(S)}S.D()}if(b==F.bs){Y.add.artb=JSON.parse(Z.ac4);S.D()}if(b==F.c0){S.N=Z.O1;S.eP=Z.pj.slice(0);
S.k9=Z.jp.slice(0);S.nd=S.Pd=!0}if(b==F.sg){var H=Z.a9S;for(var D=0;D<H.length;D++)S.t[D].QG=H[D]}if(b==F.Kb){if(Z.qV)S.C=Z.qV;
if(Z._q)S.N=Z._q[0];S.v6=null;S.D();S.vM(Z.i3)}if(b==F.q5){dK.AK.J2(S,Y);if(Z.RY)dK.AK.C9(S,Y,Z.RY);
if(Z._q){var i=Z._q[0];if(i==null)delete S.N;else S.N=i}}if(b==F.Y8){dK.AK.J2(S,S.t[Z.nw]);dK.AK.C9(S,S.t[Z.src],Z.d)}if(b==F.fs){dK.AK.C9(S,Y,Z.d)}if(b==F.AJ){Y.fY(S).d=null;
Y.D();S.D()}if(b==F.aQ){Y.fY(S).d=Z.d;Y.D();S.D()}if(b==F.Ws){dK.AK.H$(S,Z.wS,0)}if(b==F.Ow){dK.AK.ox(S,Y,!0)}if(b==F.OG){dK.AK.ox(S,S.t[Z.nw],Z.d.isEnabled);
dK.AK.yY(S,S.t[Z.src],Z)}if(b==F.Vw){dK.AK.yY(S,Y,Z)}if(b==F.J4){S.tU=JSON.parse(Z.Zl)}if(b==F.nA){S.name=Z.a5o}if(b==F.if){for(var D=0;
D<Z.Sz.length;D++){var y=Z.Sz[D],h=S.t[y[0]];h.wc(y[1]);if(y[3])h.add.lnsr=y[3];else delete h.add.lnsr}}if(b==F.mw){for(var D=0;
D<Z.t.length;D++)S.t[Z.t[D]].add.lclr=Z.a7r[D]}if(b==F.Um){var j=Z.adJ;for(var D=0;D<Z.U0.length;D++){var h=S.t[Z.U0[D]],J=j[D];
if(!Z.a1)h.add.vstk=JSON.parse(JSON.stringify(J));else G.Da.vO(h,JSON.parse(JSON.stringify(J)));h.WV(S)}S.D()}if(b==F.mS){Y.we(Z.a7);
Y.vK(S);S.D()}S.Pd=!0};dK.AK.prototype.Ed=function(Z,S){var b=Z.e,Y=S.t[Z.$];S.Vc=!0;if(b==F.dX){S.add.lnk2.splice(S.add.lnk2.indexOf(Z.Lw),1,Z.t7);
dK.AK.T4(S,Z.id,Z.Lw.Qf[1],Z.t7.Qf[1])}if(b==F.Jp){Y.add.SoLd.Impr.v.classID=Z.u$;Y.JN(S)}if(b==F.fk){var P=JSON.parse(Z.U0);
for(var D=0;D<P.length;D++)S.t[P[D]].WL=Z.u$;S.D()}if(b==F.XB){var P=JSON.parse(Z.U0);for(var D=0;D<P.length;
D++)S.t[P[D]].opacity=Z.u$;S.D()}if(b==F.EQ){var P=JSON.parse(Z.U0);for(var D=0;D<P.length;D++)if(S.t[P[D]].add.lsct!=fr.Ee)S.t[P[D]].add.lspf=Z.u$[D]}if(b==F.R5){var w=Z.ag7,f=Z.xh;
delete Y.add[w[0]];if(f[0]!="----")Y.add[f[0]]=f[1]}if(b==F.Cd){Y.add.iOpa=Z.u$;S.D()}if(b==F.qk){for(var D=0;
D<Z.U0.length;D++){var h=S.t[Z.U0[D]];h.Ba(!h._7())}S.D()}if(b==F.pa){var Q=Y.Y6();Q.isEnabled=!Q.isEnabled;
Y.vK(S);S.D()}if(b==F.Wt){var Q=Y.fY(S).d;Q.isEnabled=!Q.isEnabled;Y.D();S.D()}if(b==F.cf){var Q=Y.add.vmsk;
Q.isEnabled=!Q.isEnabled;if(!Q.isEnabled){if(Y.Wr){Y.d=Y.Wr;Y.Wr=null}else Y.d=null}else if(Y.d){Y.Wr=Y.d;
Y.d=null}Y.vK(S);S.D()}if(b==F.TA){Y.gL=!Y.gL;S.D()}if(b==F.sr){Y.add.lmfx.masterFXSwitch.v=!Y.add.lmfx.masterFXSwitch.v;
Y.VW.Ft=!0;S.D()}if(b==F.DZ){Y.add.SoLd.filterFX.v.enab.v=!Y.add.SoLd.filterFX.v.enab.v;Y.lZ(S);S.D()}if(b==F.wp){var e=Z.index,l=Y.add.lmfx[a4.Ol[e[0]]].v[e[1]].v;
l.enab.v=!l.enab.v;Y.VW.Ft=!0;S.D()}if(b==F.fE){var O=S.t[Z.ur],m=S.t[Z.f1],V=Z.a7V,q=Z.a4k;if(V=="")delete O.add.lmfx;
else O.add.lmfx=JSON.parse(V);if(q=="")delete m.add.lmfx;else m.add.lmfx=JSON.parse(q);O.VW.Ft=!0;m.VW.Ft=!0;
S.D()}if(b==F._J){var K=Y.add.SoLd.filterFX.v.filterFXList.v[Z.index].v;K.enab.v=!K.enab.v;Y.lZ(S);S.D()}if(b==F.tb){Y.add.SoLd.filterFX.v=JSON.parse(JSON.stringify(Z.ae$));
Y.lZ(S);S.D()}if(b==F.E5){var Q=Y.Y6();Q.kF=!Q.kF}if(b==F.Rx){var Q=Y.add.vmsk;Q.kF=!Q.kF}if(b==F.r5){var z=Z.iF;
for(var D=0;D<z.length;D+=2){var t=z[D],h=t>=0?S.t[t]:S.Bf[-1-t];h.add.vogk=JSON.parse(z[D+1]);T.AZ.BA(h.add.vogk,h.add.vmsk);
if(t>=0)h.vK(S)}S.D()}if(b==F.bs){Y.add.artb=JSON.parse(Z.hG);S.D()}if(b==F.c0){S.N=Z.iH;S.eP=Z.iF.slice(0);
S.k9=Z.Kw.slice(0);S.nd=S.Pd=!0}if(b==F.sg){var H=Z.ajr;for(var D=0;D<H.length;D++)S.t[D].QG=H[D]}if(b==F.Kb){var i=Z.gR,y=0,j;
for(var D=0;D<i.length;D++){var h=i[D],J=h.add.lsct;if(J==fr.Ee)y++;else if(J==fr.k8||J==fr.U1)y--;if(h.add.artb&&y!=0)j="Artboards can not be inside folders."}if(j){S.history.pop();
S.Hc--;alert(j);return}if(Z.nV)S.C=Z.nV;if(Z._q)S.N=Z._q[1];S.v6=null;S.D();S.vM(Z.gR)}if(b==F.q5){if(Z.RY)dK.AK.J2(S,Y);
dK.AK.C9(S,Y,Z.d);if(Z._q){var A=Z._q[1];if(A==null)delete S.N;else S.N=A}}if(b==F.Y8){dK.AK.J2(S,S.t[Z.src]);
dK.AK.C9(S,S.t[Z.nw],Z.d)}if(b==F.fs){dK.AK.J2(S,Y)}if(b==F.AJ){Y.fY(S).d=Z.d;Y.PC=0;Y.D();S.D()}if(b==F.aQ){Y.fY(S).d=null;
Y.PC=0;Y.D();S.D()}if(b==F.Ws){dK.AK.H$(S,Z.wS,1)}if(b==F.Ow){dK.AK.yY(S,Y,Z)}if(b==F.OG){dK.AK.ox(S,S.t[Z.src],Z.d.isEnabled);
dK.AK.yY(S,S.t[Z.nw],Z)}if(b==F.Vw){dK.AK.ox(S,Y,Z.d.isEnabled)}if(b==F.J4){S.tU=JSON.parse(Z.Xw)}if(b==F.nA){S.name=Z.VT}if(b==F.if){for(var D=0;
D<Z.Sz.length;D++){var a=Z.Sz[D],h=S.t[a[0]];h.wc(a[2]);if(a[4])h.add.lnsr=a[4];else delete h.add.lnsr}}if(b==F.mw){for(var D=0;
D<Z.t.length;D++)S.t[Z.t[D]].add.lclr=Z.abf[D]}if(b==F.Um){var I=Z.Om;for(var D=0;D<Z.U0.length;D++){var h=S.t[Z.U0[D]],E=I[D];
if(!Z.a1)h.add.vstk=JSON.parse(JSON.stringify(E));else G.Da.vO(h,JSON.parse(JSON.stringify(E)));h.WV(S)}S.D()}if(b==F.mS){Y.we(Z.u$);
Y.vK(S);S.D()}S.Pd=!0};dK.AK.KG=function(Z,S){var b=0;for(var D=0;D<Z.t.length;D++){var Y=Z.t[D].getName();
if(Y.startsWith(S)){var P=Y.slice(S.length).trim(),w=parseInt(P);if(!isNaN(w)&&w+""==P)b=w}}return b};
dK.AK.H$=function(Z,S,b){for(var D=0;D<S.length;D++){var Y=S[D],P=Z.t[Y.SG];if(Y.U8){P.add.SoLd=JSON.parse(Y.U8[b])}if(Y.yl){if(Y.yl[1-b]!=null)Z.Qm(Y.yl[1-b]);
if(Y.yl[b]!=null)Z.HM(Y.yl[b]);else P.PC=0}P.JN(Z)}};dK.AK.up=function(Z,S){var b=Z.s_,Y=Z.rect.clone();
if(b!=null&&(b.x!=S.c||b.y!=S.v)){Y.x=Math.floor((S.c-Y.c)/2);Y.y=Math.floor((S.v-Y.v)/2)}return Y};
dK.AK.J2=function(Z,S){if(S.Wr)S.Wr=null;else S.d=null;S.vK(Z);Z.D();S.PC=0};dK.AK.C9=function(Z,S,b){if(S.d)S.Wr=b;
else S.d=b;S.vK(Z);Z.D()};dK.AK.ox=function(Z,S,b){if(S.Wr&&b){S.d=S.Wr;S.Wr=null}else if(S.d&&b){S.d=null}delete S.add.vogk;
delete S.add.vstk;delete S.add.vmsk;S.vK(Z);S.PL=!1;Z.v6=[];Z.D()};dK.AK.yY=function(Z,S,b){S.add.vogk=JSON.parse(b.AZ);
if(b.m3)S.add.vstk=JSON.parse(b.m3);else delete S.add.vstk;S.add.vmsk=b.d.clone();if(S.d&&S.add.vmsk.isEnabled)S.Wr=S.d;
S.vK(Z);S.PL=b.z4;Z.v6=[Z.t.indexOf(S)];Z.ph=[];Z.D()};dK.hN=function(){dK.bd.call(this,G.Qj);this.qY=null;
this.nS=null;this.mj=null;this.FT=[];this.cJ=null};dK.hN.prototype=new dK.bd;dK.hN.prototype.Pf=function(Z,S,b,Y,P){var w=Z.$;
if(w==null)w=b.C[0];var f=b.t[w],h=Z.SU;if(this.qY==null){this.mj=dK.hN.TB(b,f);this.qY=JSON.stringify(this.mj);
if(f.add.lmfx)this.nS=JSON.stringify(f.add.lmfx)}if(f.add.lmfx==null){f.add.lmfx=JSON.parse(a4.default);
for(var D=0;D<a4.order.length;D++)f.add.lmfx[a4.Ol[D]]={t:"VlLs",v:[]}}if(Z.e=="scaleeffects"){if(Z.G=="confirm"||Z.G=="cancel"){this.Pf({e:Z.G},S,b,Y,P);
return}f.add.lmfx=JSON.parse(this.nS);eg.sq(f.add.lmfx,Z.G/100)}else if(Z.e=="changeprop"){var Q=null;
if(h!=0){var e=this.FT[h[0]];if(e==null)e=a4.FT[h[0]];e=JSON.parse(e);var l=f.add.lmfx[a4.Ol[h[0]]].v;
if(l[h[1]]==null)l[h[1]]={t:"Objc",v:e};Q=l[h[1]].v;for(var O in e)if(Q[O]==null)Q[O]=e[O]}if(Z.e=="changeprop"){if(h==0){this.mj[Z.aX].v=Z.G;
dK.hN.Cx(b,f,this.mj)}else if(Z.aX=="lagl"){if(Q.uglg&&Q.uglg.v){b.x2(Z.G.val);this.mj.ahl=b.HO()}else Q[Z.aX].v=Z.G}else if(Z.aX=="Lald"){if(Q.uglg.v){b.j7(Z.G.val);
this.mj.a1_=b.wm()}else Q[Z.aX].v=Z.G}else if((h[0]==3||h[0]==8)&&(Z.aX=="Clr"||Z.aX=="Grad")){if(Z.aX=="Clr"){Q.Clr={t:"Objc",v:Z.G};
delete Q.Grad}if(Z.aX=="Grad"){Q.Grad={t:"Objc",v:Z.G};delete Q.Clr}}else{Q[Z.aX].v=Z.G}if(h!=0)this.FT[h[0]]=JSON.stringify(Q)}if(h!=0)if(Q.Ptrn)b.ij(eg.Xl(Q.Ptrn.v,P.w6))}else if(Z.e=="setstl"){var m=Z.G.Lefx;
if(m)eg.JQ(m,b,P.w6);eg.wH(Z.G,f);this.mj=dK.hN.TB(b,f)}else if(Z.e=="st_dupsingle"){var V=f.add.lmfx[a4.Ol[Z.pG[0]]].v;
if(V[Z.pG[1]]==null)return;var q=JSON.parse(JSON.stringify(V[Z.pG[1]]));V.splice(Z.pG[1],0,q)}else if(Z.e=="st_movsingle"){var K=Z.pG[1],V=f.add.lmfx[a4.Ol[Z.pG[0]]].v;
if(V[Z.pG[1]]==null)return;var z=Math.max(0,Math.min(V.length-1,K+Z.anb)),t=V[z];V[z]=V[K];V[K]=t}else if(Z.e=="cancel"){if(this.nS==null)delete f.add.lmfx;
else f.add.lmfx=JSON.parse(this.nS);dK.hN.Cx(b,f,JSON.parse(this.qY));this.qY=null;this.nS=null}else if(Z.e=="confirm"){var H=JSON.stringify(f.add.lmfx),i=new iA([11,6],this);
i.data={t:[w],cG:[this.nS],fx:[H],bc:[this.qY],Hp:[JSON.stringify(this.mj)]};b.kz(i);this.qY=null;this.nS=null;
if(H!=null){var y=JSON.parse(H);ak.Wm(y);y.classID="Lefx";delete y.masterFXSwitch;var j=new d(s.E.TH);
j.j9=!0;j.data={uf:"set",$i:!0};var J=a3.h$("Lyr",!0);J.v.splice(0,0,{t:"prop",v:{classID:"Prpr",keyID:"Lefx"}});
j.data.V1={__name:"Set",classID:"setd",null:J,T:{t:"Objc",v:y}};S.m(j)}}else if(Z.e=="st_copy"){this.cJ=[this.qY,this.nS];
this.qY=null;this.nS=null}else if(Z.e=="st_paste"||Z.e=="st_clear"){if(Z.e=="st_paste"&&this.cJ==null)return;
var A=Z.$!=null?[Z.$]:b.C.slice(0),a=[],I=[],E=[],c=[];for(var D=0;D<A.length;D++){var f=b.t[A[D]],u=dK.hN.TB(b,f);
a.push(f.add.lmfx?JSON.stringify(f.add.lmfx):null);E.push(JSON.stringify(u));if(Z.e=="st_paste"){I.push(this.cJ[1]);
c.push(this.cJ[0])}else{I.push(null);u.lrMd.v=0;u.Opct.v.val=100;u.iOpa.v.val=100;u.blIf={v:[]};for(var n=0;
n<10;n++)u.blIf.v.push(0,0,255,255);c.push(JSON.stringify(u))}}var i=new iA([11,6],this);i.data={t:A,cG:a,fx:I,bc:E,Hp:c};
this.Ed(i.data,b);b.kz(i);this.qY=null;this.nS=null}else{var o=this.mj,y=null;if(Z.e=="st_delsingle"){y=JSON.parse(this.nS);
y[a4.Ol[Z.pG[0]]].v.splice(Z.pG[1],1);y=JSON.stringify(y)}if(y==null)delete f.add.lmfx;else f.add.lmfx=JSON.parse(y);
if(o!=null)dK.hN.Cx(b,f,o);var i=new iA([11,6],this);i.data={t:[Z.$],cG:[this.nS],fx:[y],bc:[this.qY],Hp:[JSON.stringify(o)]};
b.kz(i);this.qY=null;this.nS=null}f.VW.Ft=!0;b.Vc=!0;b.D()};dK.hN.TB=function(Z,S){if(S.add.iOpa==null)S.add.iOpa=255;
if(S.add.brst==null)S.add.brst=[1,1,1];var b=S.W$()?["pass"].concat(is.KP):is.KP;return{lrMd:{v:b.indexOf(S.WL)},Opct:{v:{type:"#Prc",val:Math.round(S.opacity*100/255)},t:"UntF"},iOpa:{v:{type:"#Prc",val:Math.round(S.add.iOpa*100/255)},t:"UntF"},blIf:{v:S.M0.slice(0)},brst:{v:S.add.brst},ahl:Z.HO(),a1_:Z.wm(),W$:S.W$()}};
dK.hN.Cx=function(Z,S,b){var Y=S.W$()?["pass"].concat(is.KP):is.KP;S.WL=Y[b.lrMd.v];S.opacity=Math.round(b.Opct.v.val*255/100);
S.add.iOpa=Math.round(b.iOpa.v.val*255/100);S.M0=b.blIf.v.slice(0);S.add.brst=b.brst.v.slice(0);Z.x2(b.ahl);
Z.j7(b.a1_)};dK.hN.prototype.zv=function(Z,S){for(var D=0;D<Z.t.length;D++){var b=S.t[Z.t[D]],Y=Z.cG[D];
if(Y==null)delete b.add.lmfx;else b.add.lmfx=JSON.parse(Y);dK.hN.Cx(S,b,JSON.parse(Z.bc[D]));b.VW.Ft=!0}S.Vc=!0;
S.D()};dK.hN.prototype.Ed=function(Z,S){for(var D=0;D<Z.t.length;D++){var b=S.t[Z.t[D]],Y=Z.fx[D];if(Y==null)delete b.add.lmfx;
else b.add.lmfx=JSON.parse(Y);dK.hN.Cx(S,b,JSON.parse(Z.Hp[D]));b.VW.Ft=!0}S.Vc=!0;S.D()};dK.L6=function(){dK.bd.call(this,G.ZS)};
dK.L6.prototype=new dK.bd;dK.L6.prototype.Pf=function(Z,S,b,Y){var P=JSON.parse(JSON.stringify(b.TZ)),w=JSON.parse(JSON.stringify(b.TZ)),f=null,h=null,Q=null,e=-1,l=!1;
if(Z.e=="delLC"){var O=dK.L6.Kk(b.TZ,Z.SU),m=b.TZ.lastAppliedComp?b.TZ.lastAppliedComp.v:0;w.list.v.splice(O,1);
if(m==Z.SU)delete w.lastAppliedComp;f="Delete Layer Comp"}if(Z.e=="editLC"){var O=dK.L6.Kk(b.TZ,Z.SU),V=w.list.v[O].v;
if(Z.VT!=null)V.Nm.v=Z.VT;if(Z.amP!=null){var q=Z.amP,K=V.capturedInfo.v,z=K&(1<<q)-1;K=K>>q;if((K&1)==1)K--;
else K++;V.capturedInfo.v=(K<<q)+z}f="Layer Comp properties"}if(Z.e=="setLC"){dK.L6._M(b);if(Z.SU==0)delete w.lastAppliedComp;
else w.lastAppliedComp={t:"long",v:Z.SU};f="Switch Layer Comp";l=!0}if(Z.e=="updLC"){dK.L6._M(b);h=dK.L6.a9F(b,Z.SU);
Q=dK.L6.z5(b,Z.SU);w.lastAppliedComp={t:"long",v:Z.SU};f="Update Layer Comp";e=Z.SU;l=!0}if(Z.e=="addLC"){dK.L6._M(b);
var t=1;for(var D=0;D<w.list.v.length;D++)t=Math.max(t,w.list.v[D].v.compID.v)+1;t+=Math.floor(Math.random()*1e4);
var H={t:"Objc",v:{classID:"Comp",Nm:{t:"TEXT",v:"New Comp "+(w.list.v.length+1)},compID:{t:"long",v:t},capturedInfo:{t:"long",v:7}}};
w.list.v.push(H);w.lastAppliedComp={t:"long",v:t};f="New Layer Comp";var i=dK.L6.z5(b,t);dK.L6.Rm(b,i,t)}var y=new iA(f,this);
y.data={ano:P,a4i:w,a0Z:h,aeO:Q,SU:e,Mn:l};this.Ed(y.data,b);b.kz(y)};dK.L6.prototype.Ed=function(Z,S){S.TZ=Z.a4i;
S.Vc=!0;if(Z.aeO)dK.L6.Rm(S,Z.aeO,Z.SU);if(Z.Mn){var b=S.TZ.lastAppliedComp?S.TZ.lastAppliedComp.v:0,Y=dK.L6.Kk(S.TZ,b),P=Y==-1?null:S.TZ.list.v[Y].v,w=P?P.capturedInfo.v:7;
dK.L6.d1(S,b,w);S.D()}};dK.L6.prototype.zv=function(Z,S){S.TZ=Z.ano;S.Vc=!0;if(Z.a0Z)dK.L6.Rm(S,Z.a0Z,Z.SU);
if(Z.Mn){var b=S.TZ.lastAppliedComp?S.TZ.lastAppliedComp.v:0,Y=dK.L6.Kk(S.TZ,b),P=Y==-1?null:S.TZ.list.v[Y].v,w=P?P.capturedInfo.v:7;
dK.L6.d1(S,b,w);S.D()}};dK.L6._M=function(Z){if(Z.TZ.lastAppliedComp!=null||!Z.IW)return;var S=dK.L6.z5(Z,0);
dK.L6.Rm(Z,S,0);Z.IW=!1};dK.L6.FW=function(Z,S,b){Z.v.Hrzn.v+=S;Z.v.Vrtc.v+=b};dK.L6.Kk=function(Z,S){var b=Z.list.v;
for(var D=0;D<b.length;D++)if(b[D].v.compID.v==S)return D;return-1};dK.L6.a2m=function(Z){var S=Z.layerSettings.v,P=null;
if(S.length==0)return;var b="compList enab Ofst blendOptions Lefx FXRefPoint imageMask vectorMask layerSpecific".split(" "),Y=S[0].v;
if(Y.enab==null)Y.enab={t:"bool",v:!0};if(Y.Ofst==null)Y.Ofst={t:"Objc",v:{classID:"null",Hrzn:{t:"long",v:0},Vrtc:{t:"long",v:0}}};
for(var D=0;D<S.length;D++){var w=S[D].v;if(P==null)P=JSON.parse(JSON.stringify(w));else for(var f=0;
f<b.length;f++){var h=b[f];if(w[h])P[h]=JSON.parse(JSON.stringify(w[h]))}S[D].v=JSON.parse(JSON.stringify(P))}};
dK.L6.Uc=function(Z,S){var b=Z.add.shmd.cmls,Y=b.layerSettings.v;for(var P=0;P<Y.length;P++){var w=Y[P].v,f=w.compList.v[0].v;
if(f==S)return P}return-1};dK.L6.Xc=function(Z,S){var b=dK.L6.Uc(Z,S);return b==-1?null:Z.add.shmd.cmls.layerSettings.v[b].v};
dK.L6.d1=function(Z,S,b){for(var D=0;D<Z.t.length;D++){var Y=Z.t[D],P=Y.add.shmd.cmls;if(P==null)continue;
var w=P.layerSettings.v,f=dK.L6.Xc(Y,S);if(f==null){Y.Ba(!1);continue}if((b&1)!=0){if(f.enab)Y.Ba(f.enab.v);
else Y.Ba(!0)}if((b&2)!=0){if(f.Ofst){var h=f.Ofst.v,Q=Y.qI(Z),e=Math.round(h.Hrzn.v-Q.x),l=Math.round(h.Vrtc.v-Q.y);
if(e!=0||l!=0)G.sR.Av(Z,[D],null,e,l)}}if((b&4)!=0){if(f.Lefx){var O=JSON.parse(JSON.stringify(f.Lefx.v));
ak.mV(O);if(JSON.stringify(O)!=JSON.stringify(Y.add.lmfx)){Y.add.lmfx=O;Y.VW.Ft=!0}}else delete Y.add.lmfx;
if(f.blendOptions){var m=f.blendOptions.v;if(m.Opct)Y.opacity=Math.round(255*m.Opct.v.val/100);if(m.fillOpacity)Y.add.iOpa=Math.round(255*m.fillOpacity.v.val/100);
if(m.Md)Y.WL=Y.add.lsct==fr.Ee?"norm":is.Tk(m.Md.v.BlnM)}else{Y.opacity=255;Y.WL=Y.W$()?"pass":"norm";
Y.add.iOpa=255}}}};dK.L6.a9F=function(Z,S){var b={};for(var D=0;D<Z.t.length;D++){var Y=Z.t[D];if(Y.add.shmd==null||Y.add.shmd.cmls==null)continue;
b["l"+Y.add.lyid]=JSON.parse(JSON.stringify(dK.L6.Xc(Y,S)))}return b};dK.L6.z5=function(Z,S){var b={};
for(var D=0;D<Z.t.length;D++){var Y=Z.t[D],P=Y.add.lyid;b["l"+P]=dK.L6.a$(Z,Y,S)}return b};dK.L6.a$=function(Z,S,b){var Y=S.add.shmd?S.add.shmd.cmls:null,P={classID:"null"},w=S.qI(Z),f={t:"Objc",v:{classID:"null",Hrzn:{t:"long",v:w.x},Vrtc:{t:"long",v:w.y}}};
P.compList={t:"VlLs",v:[{t:"long",v:b}]};P.enab={t:"bool",v:S._7()};P.Ofst=JSON.parse(JSON.stringify(f));
P.FXRefPoint=JSON.parse(JSON.stringify(Y&&Y.origFXRefPoint?Y.origFXRefPoint:f));P.blendOptions={t:"Objc",v:{classID:"null",Md:{t:"enum",v:{BlnM:is.QT(S.WL)}},Opct:{t:"UntF",v:{type:"#Prc",val:100*S.opacity/255}},fillOpacity:{t:"UntF",v:{type:"#Prc",val:S.add.iOpa!=null?100*S.add.iOpa/255:100}}}};
if(S.add.vmsk){P.vectorMask={t:"Objc",v:{classID:"null"}};P.vectorMask.v.Ofst=JSON.parse(JSON.stringify(f))}if(S.add.lmfx){P.Lefx={t:"Objc",v:JSON.parse(JSON.stringify(S.add.lmfx))};
ak.Wm(P.Lefx.v)}return P};dK.L6.aom=function(Z,S){var b=S.add.lyid;if(S.add.shmd==null)S.add.shmd={};
if(S.add.shmd.cmls==null){S.add.shmd.cmls={classID:"null",LyrI:{t:"long",v:b},layerSettings:{t:"VlLs",v:[{t:"Objc",v:dK.L6.a$(Z,S,0)}]}}}};
dK.L6.Rm=function(Z,S,b){for(var D=0;D<Z.t.length;D++){var Y=Z.t[D],P=Y.add.lyid;dK.L6.aom(Z,Y);var w=Y.add.shmd.cmls,f=w.layerSettings.v,h=S["l"+P];
if(h!=null)h={t:"Objc",v:JSON.parse(JSON.stringify(h))};var Q=dK.L6.Uc(Y,b);if(Q==-1){if(h==null)continue;
else f.push(h)}else{if(h==null)f.splice(Q,1);else f[Q]=h}}};dK.L6.Ov=function(Z,S){for(var D=0;D<Z.t.length;
D++){var b=Z.t[D],Y=b.add.lyid;if(b.add.shmd==null||b.add.shmd.cmls==null)continue;var P=b.qI(Z),w=Math.round(P.x),f=Math.round(P.y);
if(!S){w=-w;f=-f}var h=b.add.shmd.cmls,Q=h.layerSettings.v;if(h.origFXRefPoint)dK.L6.FW(h.origFXRefPoint,-w,-f);
for(var e=0;e<Q.length;e++){var l=Q[e].v;dK.L6.FW(l.Ofst,w,f);var O=l.imageMask,m=l.vectorMask;if(O&&O.v.Ofst)dK.L6.FW(O.v.Ofst,w,f);
if(m&&m.v.Ofst)dK.L6.FW(m.v.Ofst,w,f)}}};dK.MX=function(){dK.bd.call(this,G.cC);this.Xw=null;this.Mj=null};
dK.MX.prototype=new dK.bd;dK.MX.k5=function(Z,S,b,Y){if(Y)S/=4;var P=0,w=0,f=255,h=0,Q=0,e=255;while(w+Z[P]<S){w+=Z[P];
P++}while(h+Z[f]<S){h+=Z[f];f--}if(Y){P-=Math.round(Z[P]/(b/32));f+=Math.round(Z[f]/(b/32));if(P<0)Q=Math.round(-P*255/(f-P));
if(f>255)e=255-Math.round((f-255)*255/(f-P))}return[Math.max(P,0),Math.min(f,255),Q,e,100]};dK.MX.prototype.Pf=function(Z,S,b,Y,P){var w=Z.e;
if(w=="auto"){var f=Z.ah,h=dK.MX.getData(b);for(var D=0;D<h.length;D++){var Q=h[D],e;if(f<3){}else{var l=cL.VS("hue2");
iD.D2(l,0,[0,-100,0]);e=g3.uC("hue2",l)}g3.l5(e,Q.Le,Q.xe,Q._)}dK.MX.Lr(b,h);dK.MX.lL(b,h,f<3?[4,16,f]:[19,7,0],this);
b.D()}if(w=="edit_layer")this.abN(Z,S,b,Y);if(w=="edit"||w=="confirm"||w=="cancel")this.Cf(Z,S,b,P,!0);
if(w=="start"){if(b.C.length==0)return;var O=b.t[b.C[0]];if(O.add.SoLd&&O.PC<=0){var m=new d(s.E.s,!0);
m.T=G.$n;m.data={e:"start",fb:Z.Es};S.m(m);return}if(!b.Xy(S,null,!0))return;if(_[Z.Es]&&Z.$0==null){if(b.C.length!=1)alert("Will be applied to "+b.C.length+" layers.");
var m=new d(s.E.P,!0);m.data={e:s.U.Fy,g9:"afw_"+Z.Es};S.m(m)}else{this.Cf({e:"edit",$0:Z.$0,fb:Z.Es},S,b,P);
this.Cf({e:"confirm",fb:Z.Es},S,b,P)}}};dK.MX.prototype.abN=function(Z,S,b,Y){var P=Z.e,w=b.C[0],f=b.t[w],h=g3.get(f.add),Q=JSON.parse(JSON.stringify(Z.G)),O;
for(var e in g3.rB)if(g3.rB[e]==h)Q.classID=e;var l=b.history[b.Hc];if(l&&l.T==this&&l.data.a7!=null&&l.data.$==w)O=l;
else{var m=new d(s.E.TH,!0),V={classID:"setd",null:a3.h$("AdjL",!0),T:{t:"Objc",v:Q}};m.data={$i:!0,uf:"set",V1:V};
S.m(m);var O=new iA([6,39],this);O.data={$:w,a7:f.add[h],u$:Z.G,xb:V};b.kz(O)}O.data.u$=Z.G;O.data.xb.T.v=Q;
this.Ed(O.data,b)};dK.MX.getData=function(Z,S,b){var Y=[],P=new b4(0,0,Z.c,Z.v),w=Z.k9.length!=0?[-1-Z.k9[0]]:Z.C;
for(var D=0;D<w.length;D++){var f=w[D],h=f<0?null:Z.t[f],Q={$:f,D3:f<0?1:h.PC};Y.push(Q);var e=Z.eP[-1-f];
if(0<=f)e=h.PC<=0?null:h.PC==1?h.Y6():h.fY(Z).d;var l=e?e.rect:h.rect;if(Z.N)Q._=e!=null?Z.N.rect.Yz(P):Z.N.rect.Yz(l);
else Q._=S||e!=null?l.VK(P):l.clone();if(b)Q._=b[D]._.clone();var O=Q._.X();Q.Le=T.f(O*4);if(e)G.px.vB(e.channel,e.rect,e.color,Q.Le,Q._);
else T.uH(h.buffer,l,Q.Le,Q._);Q.xe=Q.Le.slice(0);if(Z.N){Q.CR=T.f(O);T.JS(Z.N.channel,Z.N.rect,Q.CR,Q._)}}return Y};
dK.MX.ajI=function(Z,S,b){if(S==null)return S;var Y=g3.Ys(Z,S),w;if(Y==-1)return S;var P=b.length>>>2,f=T.YY(b),h=.001*P;
if(Y==0||Y==2)w=[[0,255,0,255,100],dK.MX.k5(f[1],h,P,Y==2),dK.MX.k5(f[2],h,P,Y==2),dK.MX.k5(f[3],h,P,Y==2)];
if(Y==1)w=[dK.MX.k5(f[0],h*.33,P,!1),[0,255,0,255,100],[0,255,0,255,100],[0,255,0,255,100]];var Q=cL.VS("levl");
for(var D=0;D<4;D++)bY.D2(Q,D,w[D]);return Q};dK.MX.prototype.Cf=function(Z,S,b,Y){if(this.Xw==null){if(Z.fb=="aply")b.t[b.C[0]].extend(new b4(0,0,b.c,b.v));
this.Xw=dK.MX.getData(b,null,Z.fb=="fade"?b.Yl().data:null);if(Z.fb=="aply")this.Xw[0].R3=b.Zd()}if(Z.e=="edit"){this.Mj=[Z.fb,Z.$0];
var P=this.Xw[0],w=dK.MX.ajI(Z.fb,Z.$0,P.Le),f=g3.uC(Z.fb,w);if(Z.fb=="fade"||Z.fb=="aply")f=Z.$0;if(f!=null){for(var D=0;
D<this.Xw.length;D++){var h=this.Xw[D];if(Z.XP)T.Bv(h.Le,h.xe);else if(Z.fb=="fade"){var Q=is.Tk(Z.$0.Md.v.BlnM),e=Z.$0.Opct.v.val/100,l=b.Yl().data[D];
T.Bv(l.Le,h.xe);if(Q=="norm")T.p.VZ(h.Le,h._,h.xe,h._,null,null,null,h._,e);else{var O=eg.xB();O.gd=!0;
for(var D=0;D<l.Le.length;D+=4)if(l.Le[D+3]!=h.Le[D+3]){O=null;break}T.p.xJ(Q,h.Le,h._,h.xe,h._,h._,e,O)}}else if(Z.fb=="aply"){f=f.With.v;
var m=f.T.v,V,q;if(m[1].t=="name"){var K=0;for(var z=0;z<b.t.length;z++)if(b.t[z].getName()==m[1].v.val)K=z;
if(K==h.$){V=h.Le;q=h._}else{var t=b.t[K];V=t.buffer;q=t.rect}}else{q=new b4(0,0,b.c,b.v);V=h.R3}var H=f.Clcl?f.Clcl.v.Clcn:null,Q=H?is.Tk(H):"norm",e=f.Opct?f.Opct.v.val/100:1,i=["RGB","Rd","Grn","Bl","Trsp"].indexOf(m[0].v.enum),w=f.Invr&&f.Invr.v;
if(w||i!=0){V=V.slice(0);if(w)T.a4U(V);if(i!=0){var y=T.f(q.X());T.to(V,y,i-1);if(i==4)T.oN(y);for(var z=0;
z<3;z++)T.y8(y,V,z)}}if(H=="Sbtr"){var j=1/f.Scl.v,J=f.Ofst.v,A=new Uint8ClampedArray(h.xe.buffer);for(var D=0;
D<V.length;D+=4){A[D]=(h.Le[D]-V[D])*j+J;A[D+1]=(h.Le[D+1]-V[D+1])*j+J;A[D+2]=(h.Le[D+2]-V[D+2])*j+J}}else{var O=eg.xB();
O.gd=f.PrsT&&f.PrsT.v;h.xe.fill(0);h.xe.set(h.Le);T.p.xJ(Q,V,q,h.xe,h._,h._,e,O)}}else g3.l5(f,h.Le,h.xe,h._)}dK.MX.Lr(b,this.Xw)}}if(Z.e=="cancel"){dK.MX.DY(b,this.Xw);
this.Xw=null}if(Z.e=="confirm"){var a=Z.fb=="fade"?[2,11]:Z.fb=="aply"?[2,12]:g3.names[Z.fb],I=g3.Ys(Z.fb,this.Mj[1]);
if(I!=-1)a=[4,16,I];dK.MX.lL(b,this.Xw,a,this);this.Xw=null;if(I==-1)dK.MX.eM(S,this.Mj)}b.D()};dK.MX.eM=function(Z,S){var b=S[0],Y=S[1],P,w;
if(g3.OH[b]){P=g3.OH[b];if(_[b])w=Y}if(cL.OH[b]){P=cL.OH[b];if(_[b])w=Y}if(b=="fade"){P="fade";w=Y}if(b=="aply"){P="applyImageEvent";
w=Y}if(P==null)return;var f=new d(s.E.TH,!0);f.data={$i:!0,uf:P};if(w){w=JSON.parse(JSON.stringify(w));
w.classID="null";delete w.__name;f.data.V1=w}Z.m(f)};dK.MX.DY=function(Z,S){dK.MX.$E(Z,S)};dK.MX.lL=function(Z,S,b,Y){for(var D=0;
D<S.length;D++){var P=S[D],w=Z.t[P.$],f=P.$<0?Z.eP[-1-P.$]:P.D3<=0?null:P.D3==1?w.Y6():w.fY(Z).d;if(f){f.gi();
f.Th=!0;if(w)w.vK(Z)}else{w.gi();w.D()}delete P.xe;delete P.CR}var h=new iA(b,Y);h.data=S;Z.kz(h);Z.Vc=!0};
dK.MX.Lr=function(Z,S,b){for(var D=0;D<S.length;D++){var Y=S[D],P=Z.t[Y.$],w=b?Y.Le:Y.xe,f=Y._;if(Y.D3==0){P.extend(f);
if(Y.CR){T.uH(Y.Le,f,P.buffer,P.rect);T.p.VZ(w,f,P.buffer,P.rect,Y.CR,f,0,f,1)}else T.uH(w,f,P.buffer,P.rect)}else{var h=Y.$<0?Z.eP[-1-Y.$]:Y.D3==1?P.Y6():P.fY(Z).d;
h.extend(f);if(Y.CR){var Q=T.f(f.X()*4);T.Bv(Y.Le,Q);T.p.VZ(w,f,Q,f,Y.CR,f,0,f,1);G.px.Sc(Q,f,h)}else G.px.Sc(w,f,h);
h.Th=!0;if(P)P.vK(Z)}if(P)P.D()}if(!b)dK.MX.P6(Z,S)};dK.MX.$E=function(Z,S){for(var D=0;D<S.length;D++){var b=S[D],Y=Z.t[b.$],P=b._,w=T.f(P.X()*4);
if(b.D3==0){T.uH(Y.buffer,Y.rect,w,P);Y.extend(P);T.uH(b.Le,P,Y.buffer,Y.rect);Y.gi()}else{var f=b.$<0?Z.eP[-1-b.$]:b.D3==1?Y.Y6():Y.fY(Z).d;
G.px.vB(f.channel,f.rect,f.color,w,P);f.extend(P);G.px.Sc(b.Le,P,f);f.gi();f.Th=!0;if(Y)Y.vK(Z)}b.Le=w;
if(Y)Y.D()}Z.Vc=!0};dK.MX.P6=function(Z,S){var b=dK.MX.Pl(Z),Y=~b;if(b==16777215)return;for(var D=0;
D<S.length;D++){var P=S[D],w=Z.t[P.$],f=P._;if(P.D3!=0)continue;w.extend(f);var h=f.x-w.rect.x,Q=f.y-w.rect.y,e=w.rect.c,l=new Uint32Array(P.Le.buffer),O=new Uint32Array(w.buffer.buffer);
for(var m=0;m<f.v;m++)for(var V=0;V<f.c;V++){var q=m*f.c+V,K=(m+Q)*e+(V+h);O[K]=O[K]&b|l[q]&Y}w.gi();
w.D()}Z.D()};dK.MX.Pl=function(Z){var S=Z.a.o;return S[2]*16711680|S[1]*65280|S[0]*255};dK.MX.prototype.zv=function(Z,S){var b=S.t[Z.$];
if(Z.a7!=null)b.add[g3.get(b.add)]=Z.a7;else dK.MX.$E(S,Z);S.D()};dK.MX.prototype.Ed=function(Z,S){var b=S.t[Z.$];
if(Z.a7!=null)b.add[g3.get(b.add)]=Z.u$;else dK.MX.$E(S,Z);S.D()};dK.aF=function(){dK.bd.call(this,G.$n);
this.Xw=null;this.jc=null;this.e=null;this.Mj=null};dK.aF.prototype=new dK.bd;dK.aF.prototype.Pf=function(Z,S,b,Y,P){if(Z.e=="start"){if(b.C.length==0)return;
var w=b.t[b.C[0]];if(w.add.SoLd&&w.PC<=0){}else if(!b.Xy(S,null,!0))return;var f=Z.fb;if((_[f]||cL.Yr[f])&&Z.$0==null){if(b.C.length!=1)alert("Will be applied to "+b.C.length+" layers.");
var h=new d(s.E.P,!0);h.data=dK.aF.W_(f,this.aq(b,f));S.m(h)}else{var Q={e:"edit",fb:f,$0:Z.$0,r$:this.aq(b)};
this.Pf(Q,S,b,Y,P);Q.e="confirm";delete Q.$0;this.Pf(Q,S,b,Y,P)}}if(Z.e=="edit"||Z.e=="cancel"||Z.e=="confirm"){if(Z.e=="edit")this.Mj=[Z.fb,Z.$0];
if(Z.r$)this.abM(Z,b,P);else this.adV(Z,S,b,P)}if(Z.e=="applylast"&&this.Mj!=null){var Q={e:"edit",fb:this.Mj[0],$0:this.Mj[1],r$:this.aq(b)};
this.Pf(Q,S,b,Y,P);Q.e="confirm";delete Q.$0;this.Pf(Q,S,b,Y,P)}};dK.aF.W_=function(Z,S){var b=cL.Yr[Z];
if(b)return{e:s.U.cB,T:b,qT:{r$:S}};else return{e:s.U.Fy,g9:"afw_"+Z,r$:S}};dK.aF.prototype.aq=function(Z,S){var b=Z.t[Z.C[0]],Y;
if(b.add.SoLd&&b.PC<=0){Y={$:Z.C[0],index:0};if(b.add.SoLd.filterFX!=null){var P=b.add.SoLd.filterFX.v.filterFXList.v;
Y.index=P.length;for(var D=0;D<P.length;D++)if(cL.sn(P[D].v)==S&&cL.Yr[S])Y.index=D}}return Y};dK.aF.prototype.abM=function(Z,S,b){var Y=S.t[Z.r$.$],P=Z.fb;
if(Z.e=="edit"){if(this.e==null){var w=cL.names[P];if(w==null)w=g3.names[P];if(P=="blendOptions")w=[14,10];
this.e=new iA(w,this);this.e.data={r$:Z.r$,adC:JSON.parse(JSON.stringify(Y.add.SoLd))}}if(!Y.pL()){Y.add.SoLd.filterFX=cL.Wd();
this.e.data.yl=gf.vf(Y.add.SoLd.placed.v);S.HM(this.e.data.yl);Y.JN(S)}var f=Y.add.SoLd.filterFX.v.filterFXList.v;
if(f[Z.r$.index]==null){f.push(cL.VV(P,b))}if(Z.$0){f[Z.r$.index].v.enab.v=Z.XP!=!0;if(P=="blendOptions")f[Z.r$.index].v.blendOptions.v=Z.$0;
else f[Z.r$.index].v.Fltr.v=Z.$0}this.e.data.a9k=JSON.parse(JSON.stringify(Y.add.SoLd));this.Ed(this.e.data,S)}if(Z.e=="cancel"){if(this.e)this.zv(this.e.data,S);
this.e=null}if(Z.e=="confirm"){if(this.e)S.kz(this.e);this.e=null}};dK.aF.prototype.C2=function(Z){return{h:Z>>>16,l:Z>>>8&255,O:Z&255}};
dK.aF.prototype.adV=function(Z,S,b,Y){if(this.Xw==null){var P=cL.K3(Z.fb,Z.$0);this.Xw=dK.MX.getData(b,P.x!=0||P.y!=0)}if(Z.e=="edit"){var w=JSON.stringify(Z.$0);
if((Z.$0==null||w!=this.jc)&&Z.XP!=!0)for(var D=0;D<this.Xw.length;D++){var f=this.Xw[D],h={rect:f._,buffer:f.Le},Q={rect:f._,buffer:f.xe};
cL.l5(Z.fb,h,Z.$0,this.C2(Y.ui),this.C2(Y.VY),Q,[b.add.lnk2?b.add.lnk2:[],b.t[b.C[0]].Y6(),b.eP]);this.jc=w}dK.MX.Lr(b,this.Xw,Z.XP)}if(Z.e=="cancel"){dK.MX.DY(b,this.Xw);
this.Xw=null;this.jc=null}if(Z.e=="confirm"){dK.MX.lL(b,this.Xw,cL.names[Z.fb],this);this.Xw=null;this.jc=null;
dK.MX.eM(S,this.Mj)}b.D();b.Vc=!0};dK.aF.prototype.zv=function(Z,S){if(Z.r$){var b=S.t[Z.r$.$];if(Z.yl)S.Qm(Z.yl);
b.add.SoLd=JSON.parse(JSON.stringify(Z.adC));if(b.pL())b.lZ(S);else{b.JN(S);b.PC=0}}else dK.MX.$E(S,Z);
S.D();S.Vc=!0};dK.aF.prototype.Ed=function(Z,S){if(Z.r$){var b=S.t[Z.r$.$];if(Z.yl)S.HM(Z.yl);b.add.SoLd=JSON.parse(JSON.stringify(Z.a9k));
if(b.pL())b.lZ(S);else b.JN(S);if(!b.GP())b.NG+=32}else dK.MX.$E(S,Z);S.D();S.Vc=!0};var bp={_O:"0",sb:"1",sc:"2",VB:"3",_b:"4",qd:"5",bT:"6",WE:"7",s:"8",dn:"8.5",n$:"8.8",UA:"9",VE:"10",BK:"11",kY:"12",EN:"13",EE:"14",dT:"15",tN:"21",xO:"22",XY:"23",nq:"23.0",rm:"23.1",PX:"23.2",Hy:"23.3",Cy:"23.4",xY:"23.5",L3:"23.6",jf:"30",Mv:"31",X2:"40",NU:"41",C$:"42"};
bp.cM={};bp.cM[bp.sb]=["abr","brushes",fK,[9,3]];bp.cM[bp.sc]=["grd","gradients",aN,[12,37]];bp.cM[bp.VB]=["shc","contours",fD,[12,21]];
bp.cM[bp._b]=["asl","styles",hn,[12,22]];bp.cM[bp.qd]=["pat","patterns",bQ,[12,62]];bp.cM[bp.bT]=["csh","shapes",hF,[12,77]];
bp.cM[bp.WE]=["aco","swatches",hX,[9,8]];bp.cM[bp.s]=["atn","actions",fM,[9,9]];bp.cM[bp.dn]=["tpl","tpresets",ae,[9,12]];
bp.cM[bp.n$]=["icc","profiles",c3,"ICCs"];function iA(Z,S,b){if(b==null)b=!1;this.name=Z;this.T=S;this.z6=b;
this.data=null}var a3={};a3.h$=function(Z,S){var b={t:"Clss",v:{classID:Z}};if(S)b={t:"Enmr",v:{classID:Z,typeID:"Ordn",enum:"Trgt"}};
return{t:"obj ",v:[b]}};a3.Si=function(Z,S){var b={classID:"Lyr"};b[Z]=S;return{uf:"set",V1:{classID:"null",null:a3.h$("Lyr",!0),T:{t:"Objc",v:b}}}};
a3.agX=function(Z,S,b,Y,P){var w=new d(s.E.TH,!0),f=[],D=0,h=a3.vi(S,b,Y,f);while(f.length!=0){var Q=f.pop();
D++;if(!Q.Q)continue;if(Q.uf=="conditional"){var e=Z.t[Z.C[0]],l=Q.V1.null.v.Cndt,O=!1;if(l=="Bckg")O=!1;
else if(l=="Pxel"&&Z.bY(!1))O=!0;else if(l=="Adjs"&&g3.get(e.add))O=!0;else if(l=="Shp"&&e.add.vogk)O=!0;
else if(l=="Grup"&&e.W$())O=!0;var m=Q.V1.then.v;if(O)a3.vi(S,m[0].v.val,m[1].v.val,f)}else if(Q.uf=="stop"){if(Q.V1.Cntn&&Q.V1.Cntn.v==!0)window.confirm(Q.V1.Msge.v);
else{alert(Q.V1.Msge.v);break}}else if(Q.uf=="play"){var V=Q.V1.null.v,q=new d(s.E.P,!0);q.data={e:s.U.Ay,ms:[V[0].v.val,V[1].v.val]};
P.m(q)}else{w.data={uf:Q.uf,V1:Q.V1};P.m(w)}}};a3.vi=function(Z,S,b,Y){var P;for(var D=0;D<Z.length;
D++){if(Z[D].ep!=b)continue;var w=Z[D].a_;for(var f=0;f<w.length;f++){if(w[f].ep!=S)continue;P=w[f].a_}}var h=P.length;
for(var D=0;D<h;D++)Y.push(P[h-1-D])};a3.adT=function(Z){var S=Z.uf,b=Z.V1,Y,f,h,Q,e,l;if(b&&b.null)Y=b.null.v[0];
if(b&&Y==null&&b.At)Y=b.At.v[0];if(Y&&Y.t=="obj ")Y=Y.v[0];var P=Y?Y.v.classID:null,w=["purge"];if(w.indexOf(S)!=-1)return S[0].toUpperCase()+S.slice(1);
l=g3.OH;for(f in l)if(l[f]==S)h=f;l=cL.OH;for(f in l)if(l[f]==S)Q=f;l=cV.OH;for(f in l)if(l[f]==S)e=f;
if(h){var O=g3.Ys(h,b);if(O!=-1)return[4,16,O];return g3.names[h]}if(Q)return cL.names[Q];if(e)return cV.names[e];
var m=a3.T8;if(S=="make"){if(Y){if(P=="AdjL")return[6,1];else if(P=="layerSection")return[6,9];else if(P=="Lyr")return[6,13];
else if(P=="Chnl"&&Y.v.enum=="Msk")return[6,2];else if(P=="contentLayer")return[6,48,1];else if(P=="BckL")return"Make Background Layer";
else if(P=="Path")return"Make Path";else if(P=="TxLr")return"Make Text Layer"}if(b.Nw){P=b.Nw.v.classID;
if(P=="Dcmn")return[11,7];else if(P=="Chnl"||P=="SCch")return"New Channel"}}else if(S=="select"){if(P=="Chnl")return"Select "+(Y.v.enum=="Msk"?"Mask ":"")+"Channel";
else if(P=="Mn")return"Select Panel \""+Y.v.enum+"\"";else if(P=="Lyr"){if(Y.t=="Enmr")return"Select "+{Bckw:"Backward"}[Y.v.enum]+" Layer";
return"Select Layer \""+Y.v.val+"\""}else if(P=="Dcmn")return"Select Document"}else if(m[S]&&P=="Chnl"){var V=Y.v.keyID=="fsel";
return m[S]+" "+(V?"Selection":"Channel")}else if(S=="set"){if(P=="Lyr")return"Set Current Layer";else if(P=="AdjL")return[6,39];
else if(P=="contentLayer")return[6,48,2];else if(P=="Prpr")return[11,6];else if(P=="Clr")return"Set "+(Y.v.keyID=="FrgC"?"Foreground":"Background")+" color";
else if(P=="Brsh")return"Set Brush";else console.log(P)}else if(S=="move"){if(P=="Lyr")return"Move Layer"}else if(S=="show"||S=="hide"){var q="";
if(P=="Lyr")+"Layer";if(P=="Chnl")+"Channel";return(S=="show"?"Show":"Hide")+" "+q}else if(S=="reset"){if(P=="Clr")return"Reset Colors"}else if(S=="exchange"){if(P=="Clr")return[22,7,0]}else if(S=="rotateEventEnum")return[2,5];
else if(S=="flip"){var K=b.Axis.v.Ornt=="Hrzn";return[[2,6],[22,4,K?2:3]]}if(P=="Chnl"){if(S=="duplicate"){if(Y.v.keyID=="fsel")return"Selection to Channel";
else return"Duplicate Channel"}if(S=="delete")return"Delete Channel"}if(S=="transform")return Y.v.keyID=="fsel"?[7,10]:[10,16];
var z={cut:[5,0],copyEvent:[5,1],copyToLayer:[6,49],copyMerged:[5,7],paste:[5,2],close:[1,12],save:[1,2],groupEvent:[6,18],duplicate:[6,0],mergeLayersNew:[6,12,0],mergeVisible:"Merge Visible",flattenImage:[6,12,1],updatePlacedLayer:[6,36,1],fade:[2,11],applyImageEvent:[2,12],fill:[2,3],colorRange:[7,8],desaturate:[19,7,0],delete:b?[6,31]:[2,2],align:[20,4,0],applyLocking:[6,57,1],crop:[11,12,1],placedLayerEditContents:"Edit Contents",convertMode:"Convert Mode",newPlacedLayer:[6,7],canvasSize:[11,3],imageSize:[11,10],rasterizeLayer:[6,8],revealAll:[11,12,2],conditional:"If"},t=z[S];
if(t==null)t=a3.dR[S];if(t)return t;return S};a3.dR={border:[7,9],smoothness:[19,3,0],expand:[7,4],contract:[7,5],feather:[7,6],inverse:[7,2]};
a3.T8={set:"Set",add:"Add Transparency",addTo:"Add To",subtract:"Subtract Transparency",subtractFrom:"Subtract From",interfaceIconFrameDimmed:"Intersect Transparency",interfaceWhite:"Intersect With"};
a3.a0X=function(Z,S,b,Y){var P=Z.uf,w=Z.V1,f=new d(s.E.s,!0),e,l,O,m,V,t;f.T=G.kd;var h=new d(s.E.P,!0),Q=["purge","updatePlacedLayer","convertMode"];
if(Q.indexOf(P)!=-1)return;V=g3.OH;for(e in V)if(V[e]==P)l=e;V=cL.OH;for(e in V)if(V[e]==P)O=e;V=cV.OH;
for(e in V)if(V[e]==P)m=e;if(P=="fade")l=P;if(P=="applyImageEvent")l="aply";if(l){f.T=G.cC;f.data={e:"start",Es:l,$0:w}}else if(O){f.T=G.$n;
f.data={e:"start",fb:O,$0:w}}else if(m){f.T=G.$n;f.data={e:"start",fb:"GEfc",$0:w}}else if(P=="imageSize"||P=="canvasSize"||P=="revealAll"||P=="trim"||P=="crop"){f.T=G.ck;
f.data={e:"fromAction",K4:Z}}else if(P=="fill"||P=="delete"&&w==null){f.T=G.sb;f.data={e:"fromAction",K4:Z}}else if(P=="colorRange"){var q=w.Mnm.v,K=w.Mxm.v;
f.T=G.r9;f.data={e:"crange",Ce:{lq:q.Lmnc.v,w:q.A.v,O:q.B.v},Jz:{lq:K.Lmnc.v,w:K.A.v,O:K.B.v},hx:w.Fzns.v/200}}else if(a3.dR[P]||a3.T8[P]&&(!1||w.With&&w.With.v[0].v.keyID=="fsel"||w.From&&w.From.v[0].v.keyID=="fsel"||w.null&&w.null.v[0].v.keyID=="fsel"||w.T.v[0]&&w.T.v[0].v.keyID=="fsel")){f.T=G.r9;
f.data={e:"fromAction",K4:Z}}var z={copyToLayer:F.WW,mergeLayersNew:Y&&Y.C.length==1?F.lh:F.oy,rasterizeLayer:F.A6,mergeVisible:F.MS,flattenImage:F.Dh,newPlacedLayer:F.Rc};
if(z[P])f.data={e:z[P],V1:w};if(f.data){S.m(f);return}if(P=="desaturate"){f.T=G.cC;f.data={e:"auto",ah:3};
if(Y&&Y.t[Y.C[0]].add.SoLd==null)S.m(f);return}if(P=="close"){if(w.Svng.v.YsN=="Ys"){h.data={e:s.U.e_};
S.m(h)}h.data={e:s.U.sj,G3:Y};S.m(h);return}if(P=="save"){h.data={e:s.U.e_};S.m(h);return}var z={placedLayerEditContents:s.U.Hr,copyEvent:s.U.gl,paste:s.U.GR};
if(z[P])h.data={e:z[P]};if(h.data){S.m(h);return}if(w.null||w.At)t=(w.null?w.null:w.At).v;else t=[{t:"----",v:w}];
if(t[0].t=="obj "){if(t.length!=1)throw"e";t=t[0].v}for(var H=0;H<t.length;H++){var i=t[H],y=i.v.classID;
f.data=null;if(P=="make"){if(w.null==null&&w.Nw)y=w.Nw.v.classID;if(y=="AdjL"){f.data={e:F.rM,V1:w}}else if(y=="layerSection"){f.data={e:F.aT};
if(w.Usng)f.data.VT=w.Usng.v.Nm.v}else if(y=="Lyr"){if(w.Usng&&w.Usng.v.length==2)f.data={e:F.gg};else{f.data={e:F.NO};
if(w.Usng)f.data.VT=w.Usng.v.Nm.v;if(w.below&&w.below.v)f.data.a2P=!0}}else if(y=="Chnl"&&i.v.enum=="Msk"){f.data={e:F.q5,OK:w.Usng.v.UsrM}}else if(y=="Chnl"||y=="SCch"){f.data={e:F.c0,Ox:"fromAction",G:Z}}else if(y=="contentLayer"){f.data={e:F.Gl,V1:w}}else if(y=="BckL"){Y.t[Y.C[0]].a0x();
continue}else if(y=="Dcmn"){var j=w.Nw.v;h.data={e:s.U.hT,hp:gf.ai7(j,b)}}else if(y=="Ptrn")h.data={e:s.U.u3,Sz:0};
else if(y=="Path"){f.T=G.tp;f.data={e:"pathedit",Ox:"fromsel"}}else if(y=="TxLr"){f.T=G.le;f.data={e:"fromAction",K4:Z}}else{console.log(P,y,w);
throw"e"}}else if(P=="select"){var J={PcTl:G.b_,magicWandTool:G.bJ};if(y=="Lyr"){var A=w.selectionModifier,a=A?A.v.selectionModifierType:null,I=a3.O_(Y,i);
if(I==-1){alert("Layer "+i.v.val+" does not exist.");throw"e"}f.data={e:F.lx,$:I,a4y:a?["addToSelection","addToSelectionContinuous"].indexOf(a):null,s0:0,acJ:!0}}else if(y=="Chnl"){f.data={e:F.lx,$:I,s0:1}}else if(y=="Dcmn"){if(S.N7.length<2)return;
h.data={e:s.U.Me,dir:w.null.v[0].v.val}}else if(J[y]){h.data={e:s.U.cB,T:J[y]}}}else if((P=="set"||P=="reset"||P=="exchange")&&y=="Clr"){h.data={e:s.U.h4,Sz:bp.tN,Ox:P=="reset"?3:2};
if(P=="set"){h.data.Ox=i.v.keyID=="FrgC"?0:1;var E=T.W.CD(w.T.v);h.data.G=E.h<<16|E.l<<8|E.O}}else if(P=="set"){if(y=="AdjL"){var c=w.T.v.classID;
c=g3.rB[c];f.T=G.cC;if(c)f.data={e:"edit_layer",G:w.T.v}}else if(y=="Lyr"){var u=w.T.v,I=a3.O_(Y,i);
if(u.Nm)f.data={e:F.if,name:u.Nm.v};else if(u.Opct)f.data={e:F.XB,u$:Math.round(u.Opct.v.val*255/100)};
else if(u.fillOpacity)f.data={e:F.Cd,u$:Math.round(u.fillOpacity.v.val*255/100)};else if(u.Md)f.data={e:F.fk,u$:is.JO.indexOf(u.Md.v.BlnM)+(Y.t[I].W$()?1:0)};
else if(u.Usrs)f.data={e:F.E5,$:I};else if(u.Blnd){f.T=G.Qj;f.data={e:"setstl",$:I,G:{blendOptions:{t:"objc",v:u}}};
S.m(f);f.data={e:"confirm",$:I}}else if(u.Clr){var n={Rd:1,Ylw:3,Vlt:6}[u.Clr.v.Clr];if(n==null)throw u.Clr.v.Clr;
f.data={e:F.mw,ai3:n}}else if(t[0].t=="prop")continue;else{console.log(w);throw"e"}var o=Y.t[I];o.a1V()}else if(y=="Prpr"){var u=JSON.parse(JSON.stringify(w.T.v));
if(i.v.keyID=="TxtS"){var I=a3.O_(Y,w.null.v[1]),o=Y.t[I],x=o.add.TySh,g=JSON.parse(JSON.stringify(x.HK)),v=eO.IU(g),R=eO.SZ(g,0,v.length-2);
if(u.Undl&&u.Undl.v.Undl=="underlineOnLeftInVertical")R.xp.Underline=!0;eO.Yg(g,0,v.length-1,R);f.T=G.le;
f.data={e:"newED",Rq:I,MH:g};H=1e9}else{for(var X in u)if(u[X].v){if(X=="Scl")u[X].v.val=100;if(u[X].v.TrnS&&u[X].v.TrnS.v.Crv==null){u[X].v.TrnS=JSON.parse(a4.FT[9]).TrnS}}ak.mV(u);
if(u.masterFXSwitch==null)u.masterFXSwitch={t:"bool",v:!0};var I=a3.O_(Y,w.null.v[1]);f.T=G.Qj;f.data={e:"setstl",$:I,G:{Lefx:{t:"objc",v:u}}};
S.m(f);f.data={e:"confirm",$:I}}}else if(y=="contentLayer"){var I=a3.O_(Y,i),u=w.T.v;if(u.classID=="shapeStyle")u=u.FlCn.v;
var B={solidColorLayer:0,gradientLayer:1,patternLayer:2}[u.classID],O=JSON.parse(JSON.stringify(a4.BH[B]));
dK.AK.zV(u,O,B);f.data={e:F.Um,U0:[I],a1:!0,G:{uR:B+1,B2:O}}}else if(y=="Brsh"){var M=JSON.parse(JSON.stringify(b.Xg.ut)),N=w.T.v;
if(N.masterDiameter)M.Brsh.v.Dmtr.v.val=N.masterDiameter.v.val;else console.log("unknown brush parameters");
h.data={e:s.U.h4,Sz:bp.EE,Un:M}}else{console.log(i,w);throw y}}else if(P=="move"){if(y=="Lyr"){var u=w.T.v;
if(u.classID=="Ofst"){f.data={e:"trsl",ah7:u.Hrzn.v.val,aeY:u.Vrtc.v.val};f.T=G.hK}else{var $,eQ;if(u[0].t=="Enmr"){if(u[0].v.enum=="Frnt")eQ=0;
else if(u[0].v.enum=="Prvs")eQ=2;else if(u[0].v.enum=="Back")eQ=3;else throw"e"}else $=u[0].v.val;f.data={e:F.ho,target:$,Ox:eQ,an_:w.Dplc?w.Dplc.v:!1}}}}else if(P=="groupEvent")f.data={e:F.TA};
else if(P=="show"||P=="hide"){if(y=="Lyr"){var I=a3.O_(Y,i);if(I==-1)continue;var hN=Y.t[I]._7();if(P=="show"&&hN||P=="hide"&&!hN)continue;
f.data={e:F.qk,$:I}}else if(y=="Chnl"){f.data={e:F.c0,Ox:"fromAction",G:Z}}}else if(P=="rotateEventEnum"){f.T=G.ck;
var bI=w.Angl.v.val;f.data={e:"rot",ep:[2,5],G:-bI*Math.PI/180}}else if(P=="flip"){f.T=G.ck;var fq=w.Axis.v.Ornt=="Hrzn",e9=fq?new ar(-1,1):new ar(1,-1);
f.data={e:"scl",ep:[[2,6],[22,4,fq?2:3]],G:e9}}else if(P=="transform"){var W=1,L=1,bd=0,iw=0,d7=0,d0=0,gS=0;
if(w.Wdth)W=w.Wdth.v.val/100;if(w.Hght)L=w.Hght.v.val/100;if(w.Skew){var cf=w.Skew.v;bd=cf.Hrzn.v.val;
iw=cf.Vrtc.v.val}if(w.Ofst){var cT=w.Ofst.v;d0=cT.Hrzn.v.val;gS=cT.Vrtc.v.val}if(w.Angl)d7=w.Angl.v.val;
var fU=new fR;fU.concat(new fR(W,W*Math.tan(iw*Math.PI/180),L*Math.tan(bd*Math.PI/180),L,0,0));fU.rotate(-d7*Math.PI/180);
fU.translate(d0,gS);var g$={Qcsa:4,Qcs0:0,Qcs1:2,Qcs2:8,Qcs3:6,Qcs4:1,Qcs5:5,Qcs6:7,Qcs7:3}[w.FTcs.v.QCSt];
if(g$==null)throw w.FTcs.v.QCSt;var i=w.null;if(i&&i.v instanceof Array)i=i.v[0];var I=i?a3.O_(Y,i):null;
if(I==-1)I=null;f.T=i&&i.v.keyID=="fsel"?G.Ck:G.ih;f.data={e:"mat",Kn:g$,G:fU,$:I}}else if(y=="Chnl"){f.data={e:F.c0,Ox:"fromAction",G:Z}}else if(P=="duplicate")f.data={e:F.GG,VT:w.Nm?w.Nm.v:null};
else if(P=="delete")f.data={e:F.ak};else if(P=="align"){if(w.Aply&&w.Aply.v.projection=="Auto"){f.T=G.ck;
f.data={e:"auto-align"}}else{f.T=G.hK;var l={AdLf:0}[w.Usng.v.ADSt];if(l==null)throw"e";f.data={e:"algn",G:l}}}else if(P=="applyLocking"){var bX=w.layerLocking.v,aw;
if(bX.protectTransparency)aw=[[bX.protectTransparency.v],[0]];else if(bX.protectNone)aw=[[!1,!1,!1,!1],[0,1,2,31]];
else{console.log(bX);throw"e"}f.data={e:F.EQ,u$:aw}}if(f.data)S.m(f);else if(h.data)S.m(h);else{console.log(Z);
alert("Unknown action \""+P+"\"");throw"e"}}};a3.O_=function(Z,S){var b=S.t,Y=-1;if(b=="name"){var P=S.v.val,Y=-1;
for(var D=0;D<Z.t.length;D++)if(Z.t[D].getName()==P){Y=D;break}}if(b=="Enmr"&&Z.C.length!=0)Y=Z.C[0];
if(b=="Enmr"&&S.v.enum=="Frwr")Y=Z.C[0]+1;if(b=="Enmr"&&S.v.enum=="Bckw")Y=Z.C[0]-1;if(b=="prop"){if(S.v.keyID=="Bckg")Y=0}return Y};
var g3={};g3.get=function(Z){for(var S in g3.names)if(Z[S]!=null)return S;return null};g3.uC=function(Z,S){var b=g3.gS,Y;
if(Z=="brit"){var P=S.Brgh?S.Brgh.v:0,w=S.Cntr?S.Cntr.v:0,f=S.useLegacy?S.useLegacy.v:!1;if(f){var h=P/255,Q=1+w/100;
if(Q>1)Q=1+Math.tan(Math.PI/2*w/101);var e=(1-Q)/2,l=T.sE.Em(h,h,h),O=[Q,0,0,e,0,Q,0,e,0,0,Q,e,0,0,0,1],m=T.sE.multiply(l,O),V=new T.XA(256);
for(var D=0;D<256;D++)V.h[D]=D;T.sE.transform(V,V,m);Y={type:b._f,x0:V.h,Nn:V.h,yf:V.h,kl:!1,nQ:!1}}else{var q=1024,K=-30+60*(w+100)/200,z=[];
for(var D=0;D<4;D++)z.push(T.$F.KX(D/3*255,D/3*255,!0));z[1].v.Hrzn.v=64;z[1].v.Vrtc.v=64-K;z[2].v.Hrzn.v=128+64;
z[2].v.Vrtc.v=128+64+K;z.sort(function(bJ,dM){return bJ.v.Hrzn.v-dM.v.Hrzn.v});var t=T.$F.Dw(z,q);function H(bJ,q){var z=[],C=3;
for(var D=0;D<C+1;D++)z.push(T.$F.KX(D/C*255,D/C*255,!0));z[1].v.Hrzn.v=130-bJ*26;z[1].v.Vrtc.v=130+bJ*51;
z[2].v.Hrzn.v=233-bJ*48;z[2].v.Vrtc.v=233+bJ*10;return T.$F.Dw(z,q)}var i=H(Math.abs(P)/100,q);if(P<0){var y=[],j=1/q;
for(var D=0;D<q;D++){var J=D*j,A=D;while(i[A]>J&&A>1)A--;y[D]=A*j}i=y}var a=new Uint8Array(q);for(var D=0;
D<q;D++){var I=Math.round((q-1)*i[D]);a[D]=Math.round(255*t[I])}Y={type:b._f,x0:a,Nn:a,yf:a,kl:!1,nQ:!1}}}if(Z=="levl"){var E=[],c,u,l,n,o,x;
for(var D=0;D<4;D++)E.push(bY.da(S,D));c=-E[0][0]/255;u=1/(E[0][1]/255-E[0][0]/255);l=T.sE.multiply(T.sE.Tu(u,u,u),T.sE.Em(c,c,c));
n=T.sE.Tu(1/(E[1][1]/255-E[1][0]/255),1/(E[2][1]/255-E[2][0]/255),1/(E[3][1]/255-E[3][0]/255));o=T.sE.Em(-E[1][0]/255,-E[2][0]/255,-E[3][0]/255);
x=T.sE.multiply(n,o);var a=new T.XA(256);for(var D=0;D<256;D++)a.h[D]=a.l[D]=a.O[D]=D;var g=1/(E[0][4]/100),v=1/(E[1][4]/100),R=1/(E[2][4]/100),X=1/(E[3][4]/100);
T.sE.transform(a,a,x);for(var D=0;D<256;D++){a.h[D]=Math.round(Math.max(0,Math.min(255,255*Math.pow(a.h[D]/255,v))));
a.l[D]=Math.round(Math.max(0,Math.min(255,255*Math.pow(a.l[D]/255,R))));a.O[D]=Math.round(Math.max(0,Math.min(255,255*Math.pow(a.O[D]/255,X))))}T.sE.transform(a,a,l);
for(var D=0;D<256;D++){a.h[D]=Math.round(Math.max(0,Math.min(255,255*Math.pow(a.h[D]/255,g))));a.l[D]=Math.round(Math.max(0,Math.min(255,255*Math.pow(a.l[D]/255,g))));
a.O[D]=Math.round(Math.max(0,Math.min(255,255*Math.pow(a.O[D]/255,g))))}c=E[0][2]/255;u=E[0][3]/255-E[0][2]/255;
l=T.sE.multiply(T.sE.Em(c,c,c),T.sE.Tu(u,u,u));n=T.sE.Tu(E[1][3]/255-E[1][2]/255,E[2][3]/255-E[2][2]/255,E[3][3]/255-E[3][2]/255);
o=T.sE.Em(E[1][2]/255,E[2][2]/255,E[3][2]/255);x=T.sE.multiply(o,n);T.sE.transform(a,a,T.sE.multiply(l,x));
Y={type:b._f,x0:a.h,Nn:a.l,yf:a.O,kl:!1,nQ:!1}}if(Z=="curv"){var M=iS.da(S,0).length==256?1:0,r=[];if(M==0){var N=T.$F.L$(iS.da(S,0),256);
for(var D=1;D<4;D++){var $=T.$F.L$(iS.da(S,D),256);r.push(T.$F.Hf($,N))}}else{var hN=[];for(var D=0;
D<4;D++){var bI=new Uint8Array(256);hN.push(bI);var fq=iS.da(S,D);for(var A=0;A<256;A++)bI[A]=fq[A]}for(var D=1;
D<4;D++)r.push(T.$F.Hf(hN[D],hN[0]))}Y={type:b._f,x0:r[0],Nn:r[1],yf:r[2],kl:!1,nQ:!1}}if(Z=="expA"){console.log(S);
var e9=S.Exps,W=S.Ofst,L=S.gammaCorrection,bd=e9?e9.v:0,iw=W?W.v:0,d7=L?L.v:1,a=new Uint8Array(256);
for(var D=0;D<256;D++){var S=D/255,d0=Math.pow(Math.abs(iw),1/(Math.PI/2));if(iw>0){S=Math.max(iw/Math.E,S);
S=S*Math.exp(iw/1.75+bd/Math.PI);S=(1-d0)*S+d0*1}else{S=S*Math.exp(-iw*1.75+bd/Math.PI);S=S+-d0*1.14}S=Math.pow(S,1/d7);
S=Math.max(0,Math.min(1,S));a[D]=Math.round(S*255)}Y={type:b._f,x0:a,Nn:a,yf:a,kl:!1,nQ:!1}}if(Z=="vibA"){Y={type:b.wG,Sz:[S.vibrance?S.vibrance.v:0,S.Strt?S.Strt.v:0]}}if(Z=="hue2"){var cf=[],cT=[],fU=[],dX=S.Clrz?S.Clrz.v:!1;
for(var D=0;D<256;D++){cf[D]=D/255;cT[D]=0;fU[D]=0}var g$=iD.da(S,0),bX=g3.P4(g$[1]/100);if(dX){var aw=g$[0]/360;
for(var D=0;D<256;D++){cf[D]=aw;cT[D]=bX}}else{for(var D=0;D<256;D++){var hP=cf[D],eG=cT[D];cf[D]+=g$[0]/360;
for(var A=0;A<6;A++){var eB=iD.da(S,A+1),bb=eB.tc,gx=eB.B4,d0=0;for(var er=1;er<4;er++)if(gx[er]<gx[0])gx[er]+=360;
var ea=gx[0],hD=gx[1],bP=gx[2],iz=gx[3],iq=hP*360;if(iq<gx[0])iq+=360;var cU=(iq-ea)/(hD-ea),aH=(iq-bP)/(iz-bP);
if(cU<0)d0=0;else if(cU<1)d0=cU;else if(aH<0)d0=1;else if(aH<1)d0=1-aH;else d0=0;var Q=g3.P4(bb[1]/100);
cf[D]+=d0*bb[0]/360;cT[D]+=d0*Q;fU[D]+=d0*bb[2]/100}}for(var D=0;D<256;D++){cT[D]=(1+cT[D])*(1+bX)-1;
fU[D]=Math.max(-1,Math.min(1,fU[D]))}}var eK=new Uint8Array(256),h6=new Uint8Array(256),co=new Uint8Array(256);
for(var D=0;D<256;D++){var dh=cf[D],cX=cT[D],eY=fU[D];if(dh>1)dh--;if(dh<0)dh++;cX=g3.abc(cX);cX=(1+cX)*.5;
eY=(1+eY)*.5;eK[D]=Math.round(255*dh);h6[D]=Math.round(255*cX);co[D]=Math.round(255*eY)}var ga=g$[2]/100,h0=ga<0?-ga:ga,a8=ga<0?0:1;
Y={type:b.UK,amj:eK,$x:h6,a4Y:co,a7_:h0*a8,e9:1-h0,a6e:g$[2]/100,ads:dX?1:0}}if(Z=="nvrt"){var a=new Uint8Array(256);
for(var D=0;D<256;D++)a[D]=255-D;Y={type:b._f,x0:a,Nn:a,yf:a,kl:!1,nQ:!1}}if(Z=="post"){var cc=S.Lvls.v,a=new Uint8Array(256),d0=cc/255.001,hW=255/(cc-1);
for(var D=0;D<256;D++)a[D]=Math.floor(D*d0)*hW;Y={type:b._f,x0:a,Nn:a,yf:a,kl:!1,nQ:!1}}if(Z=="grdm"){var em=S.Grad.v,br=S.Rvrs,cF=T.W.pV(em.Clrs.v,0,0),q=1024,cW=T.W.aj(em,cF,q,br?br.v:!1),bM=T.f(q),ct=T.f(q),aQ=T.f(q);
T.to(cW,bM,0);T.to(cW,ct,1);T.to(cW,aQ,2);Y={type:b._f,x0:bM,Nn:ct,yf:aQ,kl:!0,nQ:!1}}if(Z=="selc"){var eA=new Float32Array(9*3*2),gQ=S.sB,eE=S.Mthd?S.Mthd.v.CrcM=="Absl":!1;
for(var A=0;A<9;A++){var a1=A*6,fA=f_.da(S,A),eH=fA[0]/100,gd=fA[1]/100,ey=fA[2]/100,hx=fA[3]/100;if(eE){eA[a1]=eA[a1+1]=eA[a1+2]=1;
eA[a1+3]=eH*(1+hx)+hx;eA[a1+4]=gd*(1+hx)+hx;eA[a1+5]=ey*(1+hx)+hx}else{eA[a1+0]=(1+eH)*(1+hx);eA[a1+1]=(1+gd)*(1+hx);
eA[a1+2]=(1+ey)*(1+hx)}}Y={type:b.Dv,a2c:eA}}if(Z=="blwh"){var ew="Rd Yllw Grn Cyn Bl Mgnt".split(" "),Y=[],gg=0,bT=0;
for(var D=0;D<6;D++)Y.push(S[ew[D]].v);Y.push(S.useTint.v,S.tintColor.v);var am=[];for(var D=0;D<6;D++)am.push((Y[D]-50)/50);
var dI=T.W.CD(Y[7]);dI.h/=255;dI.l/=255;dI.O/=255;var bs=T.hy(dI.h,dI.l,dI.O),eY=T.oQ(T.E$(bs.XE,1,.5)),fE=bs.zk*bs.$0;
if(eY==.5)gg=bT=.5;else{gg=fE*(.5-eY)/(.5/eY-1);bT=1-fE*(.5-eY)-1/(2*(1-eY));bT/=1-1/(2*(1-eY))}Y={type:b.Sa,aaM:am,BF:Y[6]?1:0,a0r:bs.XE,oQ:eY,a8J:fE,GU:gg,a2G:bT}}if(Z=="blnc"){console.log(S);
var E=[],aa=["ShdL","MdtL","HghL"];for(var D=0;D<3;D++){if(S[aa[D]]==null){E[D]=[0,0,0];continue}var cc=S[aa[D]].v,gR=cc[0].v/100,gb=cc[1].v/100,bH=cc[2].v/100,dW=S.PrsL==null||S.PrsL.v?(Math.min(gR,gb,bH)+Math.max(gR,gb,bH))/2:0;
E[D]=[gR-dW,gb-dW,bH-dW]}var r=[T.f(256),T.f(256),T.f(256)];for(var A=0;A<3;A++)for(var D=0;D<256;D++){var J=D*(1/255),cj=0,K=0,bm=0;
K=E[2][A];bm=Math.abs(K);if(K<0)cj=Math.pow(J,Math.SQRT2);else cj=1.63*(Math.pow(J+.04,.5)-.2);J=bm*cj+(1-bm)*J;
K=E[1][A];bm=Math.abs(K);if(K<0)cj=Math.pow(J,2);else cj=Math.min(2.35*(Math.pow(J+.09,.5)-.3),Math.pow(J,1/2));
J=bm*cj+(1-bm)*J;K=E[0][A];bm=Math.abs(K);if(K<0)cj=J<.4?0:Math.pow((J-.4)/.6,Math.SQRT2);else cj=Math.pow(J,Math.SQRT2/2);
J=bm*cj+(1-bm)*J;J=Math.max(0,Math.min(1,J));r[A][D]=Math.round(J*255)}Y={type:b._f,x0:r[0],Nn:r[1],yf:r[2],kl:!1,nQ:!1}}if(Z=="phfl"){var ge=T.W.CD(S.Clr.v),dc=[ge.h/255,ge.l/255,ge.O/255],eT=S.Dnst.v/100,r=[T.f(256),T.f(256),T.f(256)];
for(var A=0;A<3;A++)for(var D=0;D<256;D++){var J=D*(1/255),fg=J*dc[A];fg=Math.max(0,Math.min(1,fg));
J=eT*fg+(1-eT)*J;r[A][D]=Math.round(J*255)}Y={type:b._f,x0:r[0],Nn:r[1],yf:r[2],kl:!1,nQ:S.PrsL.v}}if(Z=="thrs"){var a=T.f(256);
for(var D=S.Lvl.v;D<256;D++)a[D]=255;Y={type:b._f,x0:a,Nn:a,yf:a,kl:!0,nQ:!1}}if(Z=="mixr"){var gL=g3.kc(S),m=[];
for(var D=0;D<gL.G.length;D++)if(D%5!=3)m.push(gL.G[D]/100);if(gL.hE){for(var f4=1;f4<3;f4++)for(var J=0;
J<4;J++)m[f4*4+J]=m[J]}Y={type:b.eg,Ig:m}}if(Z=="rplc"){var eu=S.Mnm.v,f5=S.Mxm.v;Y={type:b.eo,Ce:[eu.Lmnc.v,eu.A.v,eu.B.v],Jz:[f5.Lmnc.v,f5.A.v,f5.B.v],shift:[S.H.v/360,S.Strt.v/100,S.Lght.v/100],hx:S.Fzns.v/200}}if(Z=="clrL"&&S.profile){var bf=new Uint8Array(S.profile.v),iL=ICC.R(bf.buffer),hB=[],aR=17,hB=ICC.U.sampleLUT(iL,aR);
Y={type:b.VX,Le:ICC.U.rgba8LUT(hB,aR),a4J:hB,pk:aR}}return Y};g3.Ys=function(Z,S){var b=-1;if(Z!="levl"||S==null)b=-1;
else if(S.Auto)b=0;else if(S.AuCo)b=1;else if(S.autoBlackWhite)b=2;return b};g3.gS={_f:0,UK:1,wG:2,Dv:3,Sa:4,eg:5,eo:6,VX:7};
g3.P4=function(Z){if(Z<0)return Z;return Math.pow(Math.tan(Math.PI/2*Z),1.3)};g3.abc=function(Z){if(Z<0)return Z;
Z=Math.pow(Z,1/1.3);return Math.atan2(Z,1)/(Math.PI/2)};g3.l5=function(Z,S,b,Y){var P=g3.gS,w=Date.now();
if(p.lc&&Y.X()>300*300&&Z.type!=P._f&&Z.type!=P.VX){Y=Y.clone();Y.x=Y.y=0;var f=p._w(0,Y.c,Y.v);f.set(S);
p.Kd(f,Y);f.k1(Y);g3.H2(Z,f.J5,Y);f.get(b);return}if(Z.type==P.VX){var h=Z.a4J,Q=Z.pk;ICC.U.applyLUT(h,Q,S,b);
var e=S.length;for(var D=0;D<e;D+=4)b[D+3]=S[D+3]}if(Z.type==P.eg)T.sE.ad(S,b,Z.Ig);if(Z.type==P.Sa){var l=Z.a8J,O=Z.oQ,m=Z.GU,V=Z.a2G,e=S.length;
for(var D=0;D<e;D+=4){var Y=S[D]*(1/255),q=S[D+1]*(1/255),K=S[D+2]*(1/255),z=T.dU(Y,q,K),t=0;for(var H=0;
H<6;H++)t+=Math.min(1,1.7*(1-z.jM))*z.zk*Z.aaM[H]*g3.js(z.XE,H*(1/6));var i=Math.max(0,Math.min(1,z.jM*(1+t)));
if(Z.BF==1){var y=0;if(i<m)y=i*(.5/O);else if(i<V)y=i+l*(.5-O);else y=1-(1-i)*.5/(1-O);z.XE=Z.a0r;z.zk=Math.min(1,l+3*l*Math.abs(i-.5*(m+V)));
z.jM=y}else{z.XE=0;z.zk=0;z.jM=i}var j=T.E$(z.XE,z.zk,z.jM);b[D]=Math.round(j.h*255);b[D+1]=Math.round(j.l*255);
b[D+2]=Math.round(j.O*255)}}if(Z.type==P.Dv){var J=Z.a2c,e=S.length,A=1/255;for(var D=0;D<e;D+=4){var Y=S[D]*A,q=S[D+1]*A,K=S[D+2]*A,z=T.dU(Y,q,K),a=Math.max(Y,Math.max(q,K)),I=Math.min(Y,Math.min(q,K)),E=1-Y,c=1-q,u=1-K,n=0,o=0,x=0;
for(var H=0;H<9;H++){var g=H*6,B=0;if(J[g]==1&&J[g+1]==1&&J[g+2]==1&&J[g+3]==0&&J[g+4]==0&&J[g+5]==0)continue;
var v=E*J[g]+J[g+3],R=c*J[g+1]+J[g+4],X=u*J[g+2]+J[g+5];if(H<6)B=g3.js(z.XE,H*(1/6))*z.zk*2*Math.min(z.jM,1-z.jM);
else if(H==6)B=Math.max(0,I-.5)*2;else if(H==7)B=1-(Math.abs(a-.5)+Math.abs(I-.5));else B=Math.max(0,.5-a)*2;
n+=(Math.max(0,Math.min(1,v))-E)*B;o+=(Math.max(0,Math.min(1,R))-c)*B;x+=(Math.max(0,Math.min(1,X))-u)*B}E=Math.max(0,Math.min(1,E+n));
c=Math.max(0,Math.min(1,c+o));u=Math.max(0,Math.min(1,u+x));Y=1-E;q=1-c;K=1-u;b[D]=Math.round(Y*255);
b[D+1]=Math.round(q*255);b[D+2]=Math.round(K*255)}}if(Z.type==P._f){T.ao2(S,b,Z.x0,Z.Nn,Z.yf,Z.kl,Z.nQ)}if(Z.type==P.UK){var M=new Uint32Array(S.buffer),r=new Uint32Array(b.buffer),e=M.length;
if(g3.YH==null){g3.YH=new Float64Array(256);for(var D=0;D<256;D++)g3.YH[D]=g3.P4(-1+2*D/255)}var N=g3.YH;
for(var D=0;D<e;D++){var $=M[D],Y=($&255)*(1/255),q=($>>>8&255)*(1/255),K=($>>>16&255)*(1/255),eQ=$>>>24,hN=Math.min(Y,q,K),bI=Math.max(Y,q,K),fq=0,e9=0,W=0;
fq=T.dU(Y,q,K).XE;var L=~~(fq*255+.5),bd=Z.amj[L]*(1/255),iw=Z.$x[L]*(1/255)*2-1,d7=Z.a4Y[L]*(1/255)*2-1,t=-d7,d0=hN;
if(0<d7){t=d7;d0=bI}var gS=Z.a7_+Z.e9*t*d0,cf=Z.e9*(1-t);Y=gS+cf*Y;q=gS+cf*q;K=gS+cf*K;bI=Math.max(Y,q,K);
hN=Math.min(Y,q,K);W=(bI+hN)*.5;if(bI!=hN){var cT=bI-hN;e9=W>.5?cT/(2-(bI+hN)):cT/(bI+hN)}var fU=iw;
if(Z.ads==0){iw=N[Math.floor((1+iw)*127.5)];fU=Math.min(e9*(1+iw),1)}var j=T.E$(bd,fU,W);Y=j.h;q=j.l;
K=j.O;r[D]=eQ<<24|K*255<<16|q*255<<8|Y*255}}if(Z.type==P.eo){T.Bv(S,b);var M=new Uint32Array(S.buffer),r=new Uint32Array(b.buffer),e=M.length,dX=Z.hx,g$=1/dX,bX={lq:Z.Ce[0],w:Z.Ce[1],O:Z.Ce[2]},aw={lq:Z.Jz[0],w:Z.Jz[1],O:Z.Jz[2]};
for(var D=0;D<e;D++){var $=M[D],hP=$&255,eG=$>>>8&255,eB=$>>>16&255,Y=hP*(1/255),q=eG*(1/255),K=eB*(1/255),eQ=$>>>24,bb=T.N1(hP,eG,eB),gx=T.c4(bb,bX,aw,dX,g$);
if(gx==0)continue;var z=T.dU(Y,q,K),bd=2+z.XE+gx*Z.shift[0];z.XE=bd-~~bd;z.zk=Math.max(0,Math.min(1,z.zk+gx*Z.shift[1]));
z.jM=Math.max(0,Math.min(1,z.jM+gx*Z.shift[2]));var j=T.E$(z.XE,z.zk,z.jM);Y=j.h;q=j.l;K=j.O;r[D]=eQ<<24|K*255<<16|q*255<<8|Y*255}}if(Z.type==P.wG){var M=new Uint32Array(S.buffer),r=new Uint32Array(b.buffer),e=M.length,er=Z.Sz[0]/100,ea=Z.Sz[1]/100;
for(var D=0;D<e;D++){var $=M[D],Y=($&255)*(1/255),q=($>>>8&255)*(1/255),K=($>>>16&255)*(1/255),eQ=$>>>24,z=T.hy(Y,q,K),fq=z.XE,e9=z.zk,W=z.$0,hD=0,bP=45/360,iz=fq<bP?Math.cos(Math.PI/2*(fq-bP/2)/(bP/2)):0;
e9=e9+.2*(1-.4*iz)*er*Math.max(0,Math.sin(e9*Math.PI));e9=e9*(1+ea);e9=Math.max(0,Math.min(1,e9));var j=T.Ta(fq,e9,W);
Y=j.h;q=j.l;K=j.O;r[D]=eQ<<24|K*255<<16|q*255<<8|Y*255}}};g3.H2=function(Z,S,b){p.Es.H2(Z,S)};g3.js=function(Z,S){var b=T.Ot(S,Z)*6;
return Math.max(0,Math.min(1,b<0?1+b:1-b))};g3.names={brit:[4,0],levl:[4,1],curv:[4,2],expA:[4,3],vibA:[4,4],hue2:[4,5],blnc:[4,6],blwh:[4,7],phfl:[4,8],mixr:[4,9],clrL:[4,10],nvrt:[4,11],post:[4,12],thrs:[4,13],grdm:[4,14],selc:[4,15],rplc:[4,17]};
g3.jD=["expA","clrL","selc"];g3.$L=[[13,1,1],[13,1,3],[13,1,4],[13,1,11],[13,1,5],[13,1,12]];g3.a5d=[[13,1,11],[13,1,12],[13,1,3],[13,1,10]];
g3.Yn=[[13,1,1],[13,1,4],[13,1,5]];g3.Qs={BrgC:"brit",Lvls:"levl",Crvs:"curv",Exps:"expA",vibrance:"vibA",HStr:"hue2",ClrB:"blnc",BanW:"blwh",photoFilter:"phfl",Invr:"nvrt",Pstr:"post",Thrs:"thrs",GrMp:"grdm",SlcC:"selc",ChnM:"mixr",colorLookup:"clrL",rplc:"rplc"};
g3.rB=function(){var Z=JSON.parse(JSON.stringify(g3.Qs));delete Z.GrMp;Z.GdMp="grdm";return Z}();g3.OH={brit:"brightnessEvent",levl:"levels",curv:"curves",expA:"exposure",vibA:"vibrance",hue2:"hueSaturation",blnc:"colorBalance",blwh:"blackAndWhite",phfl:"photoFilter",mixr:"channelMixer",clrL:"colorLookup",nvrt:"invert",post:"posterization",thrs:"thresholdClassEvent",grdm:"gradientMapEvent",selc:"selectiveColor",rplc:"replaceColor"};
g3.keys={levl:[U.cD,U.lq],curv:[U.cD,U.g1],hue2:[U.cD,U.mf],nvrt:[U.cD,U.fF],blnc:[U.cD,U.I_]};g3.Ym=function(Z){var S=cL.VS("mixr");
S.Mnch={t:"bool",v:Z.hE};function b(Y,D){var P={classID:"ChMx"},w={Rd:0,Grn:1,Bl:2,Cnst:4};for(var f in w)P[f]={t:"UntF",v:{type:"#Prc",val:Y[D+w[f]]}};
return{t:"Objc",v:P}}if(Z.hE)S.Gry=b(Z.G,0);else{S.Rd=b(Z.G,0);S.Grn=b(Z.G,5);S.Bl=b(Z.G,10)}return S};
g3.kc=function(Z){function S(Y,P,D){var w={Rd:0,Grn:1,Bl:2,Cnst:4};for(var f in w)if(Y[f])P[D+w[f]]=Y[f].v.val}var b={hE:!1,G:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]};
if(Z.Mnch&&Z.Mnch.v)b.hE=!0;if(b.hE)S(Z.Gry.v,b.G,0);else{S(Z.Rd.v,b.G,0);S(Z.Grn.v,b.G,5);S(Z.Bl.v,b.G,10)}return b};
var cL={};cL.sn=function(Z){var S=Z.filterID.v;return S>16777215?k.aab(S):Z.Fltr.v.classID};cL._h=[{B2:"GEfc"},{B2:"LnCr"},{B2:"LqFy",uJ:!0},{mW:"3D",UF:["lightFilterGradient"]},{mW:[24,2],UF:"Avrg,Blr ,BlrM,boxblur,GsnB,Bokh,MtnB,RdlB,surfaceBlur".split(",")},{mW:[24,4],UF:"Dspl,Pnch,Plr ,Rple,Shr ,Sphr,Twrl,Wave".split(",")},{mW:[24,6],UF:["AdNs","Dspc","DstS","Mdn "]},{mW:[24,8],UF:"ClrH,Crst,Frgm,Mztn,Msc ,Pntl".split(",")},{mW:[24,10],UF:["Clds","DfrC","LnsF"]},{mW:[24,12],UF:["Shrp","ShrE","ShrM","smartSharpen","UnsM"]},{mW:[24,14],UF:"Dfs ,Embs,FndE,oilPaint,Slrz,TrcC,Wnd ".split(",")},{mW:[24,16],UF:"HghP,Mxm ,Mnm ,Ofst,Rept,Ctoa".split(",")},{mW:"Fourier",UF:["dDFT","iDFT"]}];
cL.OH={LqFy:"LqFy",Avrg:"Avrg","Blr ":"blurEvent",BlrM:"blurMethod",boxblur:"boxblur",GsnB:"gaussianBlur",MtnB:"motionBlur",RdlB:"radialBlur",surfaceBlur:"surfaceBlur",lightFilterGradient:"lightFilterGradient",adaptCorrect:"adaptCorrect",Pnch:"pinch","Plr ":"polar",Rple:"ripple","Shr ":"shear",Sphr:"spherize",Twrl:"twirl",Wave:"wave",AdNs:"addNoise",DstS:"dustAndScratches","Mdn ":"median",ClrH:"colorHalftone",Crst:"",Frgm:"",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"};
cL.oG={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"};
cL.Yr={rigidTransform:G.WG};cL.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],Dspc:[24,7,1],DstS:[24,7,2],"Mdn ":[24,7,3],ClrH:[24,9,0],Crst:[24,9,1],Frgm:[24,9,3],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],ShrE:[24,13,1],ShrM:[24,13,2],smartSharpen:[24,13,3],UnsM:[24,13,4],"Dfs ":[24,15,0],Embs:[24,15,1],FndE:[24,15,3],oilPaint:[24,15,4],Slrz:"Solarize",TrcC:"Trace Contour","Wnd ":"Wind",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]]};
cL.VS=function(Z){var S=null;if(Z=="GEfc")S={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:cV.VS("GlwE")}]}};
if(Z=="LqFy"){var b={Yu:5,XE:5,map:new Float32Array(5*5*2)},Y=new Uint8Array(bG.TG(b)),P=[];for(var D=0;
D<Y.length;D++)P.push(Y[D]);S={__name:"Liquify",classID:"LqFy",LqMe:{t:"tdta",v:P}}}if(Z=="rigidTransform"){S={__name:"Puppet Warp",classID:"rigidTransform",null:{t:"obj ",v:[{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Trgt"}}]},rigidType:{t:"bool",v:!0},puppetShapeList:{t:"VlLs",v:[]},PuX0:{t:"doub",v:0},PuX1:{t:"doub",v:1e3},PuX2:{t:"doub",v:1e3},PuX3:{t:"doub",v:0},PuY0:{t:"doub",v:0},PuY1:{t:"doub",v:0},PuY2:{t:"doub",v:1e3},PuY3:{t:"doub",v:1e3}}}if(Z=="LnCr")S={__name:"Lens Correction",classID:"LnCr",LnAg:{t:"bool",v:!0},LnAc:{t:"bool",v:!1},LnAv:{t:"bool",v:!1},LnAs:{t:"bool",v:!1},LnIp:{t:"bool",v:!1},LnFo:{t:"doub",v:0},LnPr:{t:"TEXT",v:""},LnIa:{t:"doub",v:0},LnI0:{t:"doub",v:0},LnI1:{t:"doub",v:0},LnI2:{t:"doub",v:0},LnI3:{t:"doub",v:1},LnRa:{t:"doub",v:0},LnVp:{t:"doub",v:0},LnHp:{t:"doub",v:0},LnSi:{t:"doub",v:100},LnFt:{t:"long",v:2},LnSb:{t:"doub",v:0},LnSt:{t:"long",v:50},LnRc:{t:"doub",v:0},LnGm:{t:"doub",v:0},LnBy:{t:"doub",v:0},LnNa:{t:"long",v:64},LnIh:{t:"long",v:0},LnIv:{t:"long",v:0},LnIs:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:127},Grn:{t:"doub",v:127},Bl:{t:"doub",v:127}}},LnNm:{t:"bool",v:!1}};
if(Z=="adaptCorrect")S={__name:"Shadow/Highlight",classID:"adaptCorrect",sdwM:{t:"Objc",v:{__name:"Parameters",classID:"adaptCorrectTones",Amnt:{t:"UntF",v:{type:"#Prc",val:50}},Wdth:{t:"UntF",v:{type:"#Prc",val:25}},Rds:{t:"long",v:12}}},hglM:{t:"Objc",v:{__name:"Parameters",classID:"adaptCorrectTones",Amnt:{t:"UntF",v:{type:"#Prc",val:0}},Wdth:{t:"UntF",v:{type:"#Prc",val:0}},Rds:{t:"long",v:0}}},BlcC:{t:"doub",v:0},WhtC:{t:"doub",v:0},Cntr:{t:"long",v:0},ClrC:{t:"long",v:0}};
if(Z=="Dfs ")S={__name:"Diffuse",classID:"Dfs",Md:{t:"enum",v:{DfsM:"Nrml"}},FlRs:{t:"long",v:14061024}};
if(Z=="Embs")S={__name:"Emboss",classID:"Embs",Angl:{t:"long",v:45},Hght:{t:"long",v:5},Amnt:{t:"long",v:100}};
if(Z=="oilPaint")S={__name:"Oil Paint",classID:"oilPaint",lightingOn:{t:"bool",v:!0},stylization:{t:"doub",v:3},brushScale:{t:"doub",v:1},microBrush:{t:"doub",v:0},LghD:{t:"long",v:45},specularity:{t:"doub",v:1},cleanliness:{t:"doub",v:2}};
if(Z=="TrcC")S={__name:"Trace Contour",classID:"TrcC",Lvl:{t:"long",v:128},Edg:{t:"enum",v:{CntE:"Lwr"}}};
if(Z=="Wnd ")S={__name:"Wind",classID:"Wnd",WndM:{t:"enum",v:{WndM:"Wnd"}},Drct:{t:"enum",v:{Drct:"Rght"}}};
if(Z=="lightFilterGradient")S={__name:"Generate Normals",classID:"lightFilterGradient",blur:{t:"doub",v:0},textureScale:{t:"doub",v:1},Scl:{t:"doub",v:1},Dtl:{t:"VlLs",v:[{t:"doub",v:1},{t:"doub",v:1},{t:"doub",v:1}]}};
if(Z=="boxblur")S={__name:"Box Blur",classID:"boxblur",Rds:{t:"UntF",v:{type:"#Pxl",val:15}}};if(Z=="GsnB")S={__name:"Gaussian Blur",classID:"GsnB",Rds:{t:"UntF",v:{type:"#Pxl",val:7.2}}};
if(Z=="Bokh")S={__name:"Lens Blur",classID:"Bokh",BkDi:{t:"enum",v:{BtDi:"BeIn"}},BkDp:{t:"long",v:0},BkDs:{t:"bool",v:!1},BkIs:{t:"enum",v:{BtIs:"BeS6"}},BkIb:{t:"doub",v:30},BkIc:{t:"long",v:0},BkIr:{t:"long",v:0},BkSb:{t:"doub",v:0},BkSt:{t:"long",v:255},BkNa:{t:"long",v:0},BkNt:{t:"enum",v:{BtNt:"BeNu"}},BkNm:{t:"bool",v:!1}};
if(Z=="MtnB")S={__name:"Motion Blur",classID:"MtnB",Angl:{t:"long",v:0},Dstn:{t:"UntF",v:{type:"#Pxl",val:4}}};
if(Z=="RdlB")S={__name:"Radial Blur",classID:"RdlB",Amnt:{t:"long",v:10},BlrM:{t:"enum",v:{BlrM:"Spn"}},BlrQ:{t:"enum",v:{BlrQ:"Gd"}},Cntr:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:.5},Vrtc:{t:"doub",v:.5}}}};
if(Z=="surfaceBlur")S={__name:"Surface Blur",classID:"surfaceBlur",Rds:{t:"UntF",v:{type:"#Pxl",val:15}},Thsh:{t:"long",v:15}};
if(Z=="Dspl")S={__name:"Displace",classID:"Dspl",HrzS:{t:"long",v:10},VrtS:{t:"long",v:10},DspM:{t:"enum",v:{DspM:"StrF"}},UndA:{t:"enum",v:{UndA:"RptE"}},DspF:{t:"Pth ",v:{sig:"txtu",pth:"file.psd\0"}}};
if(Z=="Pnch")S={__name:"Pinch",classID:"Pnch",Amnt:{t:"long",v:-100}};if(Z=="Plr ")S={__name:"Polar Coordinates",classID:"Plr",Cnvr:{t:"enum",v:{Cnvr:"RctP"}}};
if(Z=="Rple")S={__name:"Ripple",classID:"Rple",Amnt:{t:"long",v:999},RplS:{t:"enum",v:{RplS:"Mdm"}}};
if(Z=="Shr ")S={__name:"Shear",classID:"Shr",ShrP:{t:"VlLs",v:[{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:0},Vrtc:{t:"doub",v:1}}},{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:0},Vrtc:{t:"doub",v:128}}}]},UndA:{t:"enum",v:{UndA:"WrpA"}},ShrS:{t:"long",v:0},ShrE:{t:"long",v:1}};
if(Z=="Sphr")S={__name:"Spherize",classID:"Sphr",Amnt:{t:"long",v:100},SphM:{t:"enum",v:{SphM:"Nrml"}}};
if(Z=="Twrl")S={__name:"Twirl",classID:"Twrl",Angl:{t:"long",v:90}};if(Z=="Wave")S={__name:"Wave",classID:"Wave",Wvtp:{t:"enum",v:{Wvtp:"WvSn"}},NmbG:{t:"long",v:1},WLMn:{t:"long",v:101},WLMx:{t:"long",v:102},AmMn:{t:"long",v:36},AmMx:{t:"long",v:37},SclH:{t:"long",v:100},SclV:{t:"long",v:100},UndA:{t:"enum",v:{UndA:"WrpA"}},RndS:{t:"long",v:743887}};
if(Z=="AdNs")S={__name:"Add Noise",classID:"AdNs",Dstr:{t:"enum",v:{Dstr:"Unfr"}},Nose:{t:"UntF",v:{type:"#Prc",val:20}},Mnch:{t:"bool",v:!1},FlRs:{t:"long",v:100691320}};
if(Z=="DstS")S={__name:"Dust & Scratches",classID:"DstS",Rds:{t:"long",v:2},Thsh:{t:"long",v:26}};if(Z=="Mdn ")S={__name:"Median",classID:"Mdn",Rds:{t:"UntF",v:{type:"#Pxl",val:7}}};
if(Z=="ClrH")S={__name:"Color Halftone",classID:"ClrH",Rds:{t:"long",v:8},Ang1:{t:"long",v:10},Ang2:{t:"long",v:40},Ang3:{t:"long",v:70},Ang4:{t:"long",v:80}};
if(Z=="Crst")S={__name:"Crystallize",classID:"Crst",ClSz:{t:"long",v:10},FlRs:{t:"long",v:1554929224}};
if(Z=="Mztn")S={__name:"Mezzotint",classID:"Mztn",MztT:{t:"enum",v:{MztT:"FnDt"}},FlRs:{t:"long",v:204994187}};
if(Z=="Msc ")S={__name:"Mosaic",classID:"Msc",ClSz:{t:"UntF",v:{type:"#Pxl",val:12}}};if(Z=="Pntl")S={__name:"Pointillize",classID:"Pntl",ClSz:{t:"long",v:10},FlRs:{t:"long",v:1554929236}};
if(Z=="LnsF")S={__name:"Lens Flare",classID:"LnsF",Brgh:{t:"long",v:100},FlrC:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:.19140625},Vrtc:{t:"doub",v:.185628741979599}}},Lns:{t:"enum",v:{Lns:"Zm"}}};
if(Z=="smartSharpen")S={__name:"Smart Sharpen",classID:"smartSharpen",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},useLegacy:{t:"bool",v:!1},Amnt:{t:"UntF",v:{type:"#Prc",val:150}},Rds:{t:"UntF",v:{type:"#Pxl",val:1}},noiseReduction:{t:"UntF",v:{type:"#Prc",val:0}},blur:{t:"enum",v:{blurType:"GsnB"}}};
if(Z=="UnsM")S={__name:"Unsharp Mask",classID:"UnsM",Amnt:{t:"UntF",v:{type:"#Prc",val:142}},Rds:{t:"UntF",v:{type:"#Pxl",val:4.5}},Thsh:{t:"long",v:0}};
if(Z=="HghP")S={__name:"High Pass",classID:"HghP",Rds:{t:"UntF",v:{type:"#Pxl",val:3}}};if(Z=="Mxm ")S={__name:"Maximum",classID:"Mxm",Rds:{t:"UntF",v:{type:"#Pxl",val:9}}};
if(Z=="Mnm ")S={__name:"Minimum",classID:"Mnm",Rds:{t:"UntF",v:{type:"#Pxl",val:14}}};if(Z=="Ofst")S={__name:"Offset",classID:"Ofst",Hrzn:{t:"long",v:144},Vrtc:{t:"long",v:278},Fl:{t:"enum",v:{FlMd:"Wrp"}}};
if(Z=="Rept")S={__name:"Repeat",classID:"Rept",Scl:{v:{type:"#Prc",val:100},t:"UntF"},Rsft:{v:{type:"#Prc",val:0},t:"UntF"},SpcX:{v:{type:"#Prc",val:0},t:"UntF"},SpcY:{v:{type:"#Prc",val:0},t:"UntF"},SpcC:{t:"bool",v:!1},Angl:{t:"long",v:0}};
if(Z=="Ctoa")S={__name:"Color to Alpha",classID:"Ctoa",Trsp:{v:{type:"#Prc",val:0},t:"UntF"},Opct:{v:{type:"#Prc",val:100},t:"UntF"},Clr:{v:{classID:"RGBC",Rd:{v:0,t:"doub"},Grn:{v:0,t:"doub"},Bl:{v:0,t:"doub"}},t:"Objc"}};
if(Z=="brit")S={__name:"Brightness/Contrast",classID:"BrgC",Brgh:{t:"long",v:0},Cntr:{t:"long",v:0},useLegacy:{t:"bool",v:!1}};
if(Z=="levl")S={__name:"Levels",classID:"Lvls",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Adjs:{t:"VlLs",v:[]}};
if(Z=="curv")S={__name:"Curves",classID:"Crvs",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Adjs:{t:"VlLs",v:[]}};
if(Z=="expA")S={__name:"Exposure",classID:"Exps",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Exps:{t:"doub",v:0},Ofst:{t:"doub",v:0},gammaCorrection:{t:"doub",v:1}};
if(Z=="vibA")S={__name:"Vibrance",classID:"vibrance",vibrance:{t:"long",v:0},Strt:{t:"long",v:0}};if(Z=="hue2")S={__name:"Hue/Saturation",classID:"HStr",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Clrz:{t:"bool",v:!1},Adjs:{t:"VlLs",v:[]}};
if(Z=="blnc")S={__name:"Color Balance",classID:"ClrB",ShdL:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:0}]},MdtL:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:0}]},HghL:{t:"VlLs",v:[{t:"long",v:0},{t:"long",v:0},{t:"long",v:0}]},PrsL:{t:"bool",v:!0}};
if(Z=="blwh")S={__name:"Black & White",classID:"BanW",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Rd:{t:"long",v:40},Yllw:{t:"long",v:85},Grn:{t:"long",v:204},Cyn:{t:"long",v:60},Bl:{t:"long",v:20},Mgnt:{t:"long",v:80},useTint:{t:"bool",v:!0},tintColor:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:0},Grn:{t:"doub",v:0},Bl:{t:"doub",v:0}}}};
if(Z=="phfl")S={__name:"Photo Filter",classID:"photoFilter",Clr:{t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:67.06},A:{t:"doub",v:32},B:{t:"doub",v:120}}},Dnst:{t:"long",v:80},PrsL:{t:"bool",v:!0}};
if(Z=="grdm")S={__name:"Gradient Map",classID:"GrMp",Rvrs:{t:"bool",v:!1},Grad:JSON.parse(a4.FT[6]).Grad};
if(Z=="selc")S={__name:"Selective Color",classID:"SlcC",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Mthd:{t:"enum",v:{CrcM:"Rltv"}},ClrC:{t:"VlLs",v:[]}};
if(Z=="thrs")S={__name:"Threshold",classID:"Thrs",Lvl:{t:"long",v:128}};if(Z=="mixr")S={__name:"Channel Mixer",classID:"ChnM",presetKind:{t:"enum",v:{presetKindType:"presetKindDefault"}},Rd:{t:"Objc",v:{classID:"ChMx",Rd:{t:"UntF",v:{type:"#Prc",val:100}}}},Grn:{t:"Objc",v:{classID:"ChMx",Grn:{t:"UntF",v:{type:"#Prc",val:100}}}},Bl:{t:"Objc",v:{classID:"ChMx",Bl:{t:"UntF",v:{type:"#Prc",val:100}}}}};
if(Z=="clrL")S={__name:"Color Lookup",classID:"colorLookup"};if(Z=="post")S={__name:"Posterize",classID:"Pstr",Lvls:{t:"long",v:3}};
if(Z=="rplc")S={__name:"Replace Color",classID:"RplC",Fzns:{t:"long",v:55},Mnm:{t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:73.1},A:{t:"doub",v:23.95},B:{t:"doub",v:8.03}}},Mxm:{t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:73},A:{t:"doub",v:23},B:{t:"doub",v:8}}},H:{t:"long",v:-22},Strt:{t:"long",v:100},Lght:{t:"long",v:2}};
if(Z=="fade")S={__name:"Fade",classID:"fade",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}};
if(Z=="aply")S={classID:"null",With:{t:"Objc",v:{classID:"Clcl",T:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:"RGB"}},{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Mrgd"}}]},Invr:{t:"bool",v:!1},Clcl:{t:"enum",v:{Clcn:"Nrml"}},Opct:{t:"UntF",v:{type:"#Prc",val:100}},PrsT:{t:"bool",v:!1}}}};
if(Z=="blendOptions")S={classID:"blendOptions",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}};
return S};cL.jC={sAdNs:function(Z,S){S[0]=Z.Nose.v.val;S[1]=["Gsn","Unfr"].indexOf(Z.Dstr.v.Dstr);S[2]=Z.Mnch.v},gAdNs:function(Z,S){Z.Nose.v.val=S[0];
Z.Dstr.v.Dstr=["Gsn","Unfr"][S[1]];Z.Mnch.v=S[2]},sDstS:function(Z,S){S[0]=Z.Rds.v;S[1]=Z.Thsh.v},gDstS:function(Z,S){Z.Rds.v=S[0];
Z.Thsh.v=S[1]},sGsnB:function(Z,S){S[0]=Z.Rds.v.val},gGsnB:function(Z,S){Z.Rds.v.val=S[0]},sHghP:function(Z,S){S[0]=Z.Rds.v.val},gHghP:function(Z,S){Z.Rds.v.val=S[0]},"sMxm ":function(Z,S){S[0]=Z.Rds.v.val},"gMxm ":function(Z,S){Z.Rds.v.val=S[0]},"sMnm ":function(Z,S){S[0]=Z.Rds.v.val},"gMnm ":function(Z,S){Z.Rds.v.val=S[0]},sMtnB:function(Z,S){S[0]=Z.Angl.v;
S[1]=Z.Dstn.v.val},gMtnB:function(Z,S){Z.Angl.v=typeof S[0]=="number"?S[0]:S[0].oc;Z.Dstn.v.val=S[1]},sOfst:function(Z,S){S[0]=Z.Hrzn.v;
S[1]=Z.Vrtc.v;S[2]=["Rpt","Bckg","Wrp"].indexOf(Z.Fl.v.FlMd)},gOfst:function(Z,S){Z.Hrzn.v=S[0];Z.Vrtc.v=S[1];
Z.Fl.v.FlMd=["Rpt","Bckg","Wrp"][S[2]]},sPnch:function(Z,S){S[0]=Z.Amnt.v},gPnch:function(Z,S){Z.Amnt.v=S[0]},"sPlr ":function(Z,S){S[0]=["RctP","PlrR"].indexOf(Z.Cnvr.v.Cnvr)},"gPlr ":function(Z,S){Z.Cnvr.v.Cnvr=["RctP","PlrR"][S[0]]},sRple:function(Z,S){S[0]=Z.Amnt.v;
S[1]=["Sml","Mdm","Lrg"].indexOf(Z.RplS.v.RplS)},gRple:function(Z,S){Z.Amnt.v=S[0];Z.RplS.v.RplS=["Sml","Mdm","Lrg"][S[1]]},sTwrl:function(Z,S){S[0]=Z.Angl.v},gTwrl:function(Z,S){Z.Angl.v=S[0]},sUnsM:function(Z,S){S[0]=Z.Amnt.v.val;
S[1]=Z.Rds.v.val;S[2]=Z.Thsh.v},gUnsM:function(Z,S){Z.Amnt.v.val=S[0];Z.Rds.v.val=S[1];Z.Thsh.v=S[2]}};
cL.aiQ=function(Z){var S=new ar(0,0);if(Z.enab.v==!1)return S;var b=Z.filterFXList.v;for(var D=0;D<b.length;
D++){var Y=b[D].v;if(Y.enab.v==!1)continue;var P=cL.sn(Y),w=cL.K3(P,Y.Fltr?Y.Fltr.v:null);if(w.x>S.x)S.x=w.x;
if(w.y>S.y)S.y=w.y}return S};cL.K3=function(Z,S){var b=0,Y=0;if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(Z)!=-1){var P=S.Rds.v.val;
b=Y=P*2.57}if(Z=="MtnB")b=Y=S.Dstn.v.val;if("Ofst,Rept,LqFy,Dspl,Pnch,Rple,Shr ,Sphr,Twrl,Wave,RdlB,Clds,DfrC,Plr ,LnCr,Wnd ,lightFilterGradient,rigidTransform,Frgm".split(",").indexOf(Z)!=-1){b=Y=1e4}if(Z=="GEfc")return cV.K3(S);
return new ar(Math.ceil(b),Math.ceil(Y))};cL.Wd=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:[]}}}};
cL.VV=function(Z,S){var b={h:S.ui>>16,l:S.ui>>8&255,O:S.ui&255},Y={h:S.VY>>16,l:S.VY>>8&255,O:S.VY&255},P=cL.names[Z];
if(P==null)P=g3.names[Z];var w=Z;for(var f in g3.Qs)if(g3.Qs[f]==Z)w=f;var h={t:"Objc",v:{classID:"filterFX",Nm:{t:"TEXT",v:aV.get(P)},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:T.W.RQ(b)},BckC:{t:"Objc",v:T.W.RQ(Y)},filterID:{t:"long",v:w.length==4?k.anx(w):777}}},Q=cL.VS(Z);
if(Q)h.v.Fltr={t:"Objc",v:Q};return h};cL.k2=function(Z,S,b,Y,P,w,f,h){var Q=b*Y*4;T.gf.a1b(Z,S,b,Y,P,w,f)};
cL.NM=function(Z,S,b,Y){T.pW(b);if(Z<1){var P=Math.round(Z*5),w=[1,2,1,2,[40,26,13,6,4,2][P],2,1,2,1];
w=T.yM.yU(w);var f=b.slice(0);T.yM.Hl(f,b,Y.c,Y.v,w,255)}else S(b,Y,Z);T.rZ(b)};cL.ahK=function(Z,S,b,Y){for(var D=0;
D<Z.length;D++){b[D]=Z[D]*(1/255);Y[D]=0}FFT.fft2d(b,Y);var P=S>>>1,w=16384,f=128,Q=100;while(f<S){f<<=1;
w<<=2}var h=255/Math.log(w),e=-100;for(var l=0;l<S;l++)for(var O=0;O<P;O++){var m=S+P+l&S-1,V=b[m*S+O],q=Y[m*S+O],K=Math.sqrt(V*V+q*q),z=Math.atan2(q,V);
Z[l*S+O]=Math.round(h*Math.log(K+1));Z[l*S+P+O]=Math.round((Math.PI+z)*(255*.5/Math.PI))}};cL.adh=function(Z,S,b,Y){b.fill(0);
Y.fill(0);var P=S>>>1,w=16384,f=128;while(f<S){f<<=1;w<<=2}var h=255/Math.log(w),Q=[],e=[],l=[];for(var D=0;
D<256;D++){Q[D]=Math.exp(D/h)-1;var O=D*(2*Math.PI/255)-Math.PI;e[D]=Math.sin(O);l[D]=Math.cos(O)}for(var m=0;
m<S;m++)for(var V=0;V<P;V++){var q=S+P+m&S-1,K=Q[Z[m*S+V]],O=Z[m*S+P+V],z=K*l[O],t=K*e[O];b[q*S+V]=z;
Y[q*S+V]=t;if(V!=0){var H=q==0?q*S+S-V:(S-q)*S+(S-V);b[H]=z;Y[H]=-t}}FFT.ifft2d(b,Y);for(var D=0;D<Z.length;
D++){Z[D]=Math.max(0,Math.min(255,~~(.5+255*b[D])))}};cL.Id=new ArrayBuffer(512);cL.anH=function(Z){var S=cL.Id,b=Z.length;
if(S.byteLength<b)cL.Id=S=new ArrayBuffer(b);var Y=new Uint8Array(S);for(var D=0;D<b;D+=4){Y[D]=Z[D];
Y[D+1]=Z[D+1];Y[D+2]=Z[D+2];Y[D+3]=Z[D+3]}return S};cL.l5=function(Z,S,b,Y,P,w,f){if(w==null)w={buffer:T.f(S.buffer.length),rect:S.rect.clone()};
T.Bv(S.buffer,w.buffer);if(Z=="GEfc"){var h=[];if(b.GEfs){var Q=b.GEfs.v;for(var D=0;D<Q.length;D++){var e=Q[D].v;
if(e.GELv&&e.GELv.v==!1)continue;h.push(e)}}else h=[b];for(var D=0;D<h.length;D++){var l;if(D==0)cV.l5(Z,S,h[D],Y,P,w,f);
else{if(l==null)l={buffer:T.f(S.buffer.length),rect:S.rect.clone()};T.Bv(w.buffer,l.buffer);cV.l5(Z,l,h[D],Y,P,w,f)}}}if(Z=="adaptCorrect"){var O=S.rect,m=O.c,V=O.v,q=m*V,K=q*4,z=b.sdwM.v,t=z.Amnt.v.val/100,H=z.Wdth.v.val/100,i=z.Rds.v,y=b.hglM.v,j=y.Amnt.v.val/100,J=y.Wdth.v.val/100,A=y.Rds.v;
T.iw.al1(S.buffer,w.buffer,m,V,t,H,i,j,J,A,b.ClrC.v/100,b.Cntr.v/100)}if(Z=="Fbrs"){var O=S.rect,m=O.c,V=O.v,a=T.f(m*V),I=Date.now(),E=1,c=1-E;
for(var D=0;D<m*100;D++){var u=Math.random()*m;for(var n=0;n<V;n++){var o=~~(u+4096)&511;a[n*m+o]=Math.min(255,a[n*m+o]+1);
var x=Math.random();u=u-E+x*2*E}}T.oN(a);w.buffer.fill(255);T.zf(a,w.buffer)}if(Z=="Frgm"){var O=S.rect,m=O.c,V=O.v,g=S.buffer.slice(0);
T.pW(g);T.Ix.amO(g,m,V,w.buffer);T.rZ(w.buffer)}if(Z=="Dfs "){var O=S.rect,m=O.c,V=O.v,v=["Nrml","DrkO","LghO","anisotropic"].indexOf(b.Md.v.DfsM);
if(v<3)T.Ix.a5M(S.buffer,m,V,w.buffer,[v]);else{var R=[1.4,1.6,1,4,!1,2,[0,0,.001]],O=S.rect.clone();
O.x=O.y=0;T.Sj.filter(S.buffer,O,w.buffer,R)}}if(Z=="TrcC"){var O=S.rect,m=O.c,X=m<<2,V=O.v,B=b.Lvl.v,M=b.Edg.v.CntE=="Lwr",r=S.buffer,N=w.buffer;
T._U(N,16777215,4278190080);function eQ(g6,g5){bI(g6,g5);bI(g6+1,g5+1);bI(g6+2,g5+2)}function hN(g6,g5){fq(g6,g5);
fq(g6+1,g5+1);fq(g6+2,g5+2)}function bI(g6,g5){var fF=r[g6],bJ=r[g5];if(fF>=B&&bJ<B)N[g6]=0;if(fF<B&&bJ>=B)N[g5]=0}function fq(g6,g5){var fF=r[g6],bJ=r[g5];
if(fF>B&&bJ<=B)N[g5]=0;if(fF<=B&&bJ>B)N[g6]=0}if(M)for(var n=1;n<V;n++)for(var u=1;u<m;u++){var e9=n*m+u<<2;
eQ(e9,e9-4);eQ(e9,e9-X)}else for(var n=1;n<V;n++)for(var u=1;u<m;u++){var e9=n*m+u<<2;hN(e9,e9-4);hN(e9,e9-X)}}if(Z=="Embs"){var O=S.rect,m=O.c,V=O.v,W=-b.Angl.v*Math.PI/180,L=b.Hght.v,bd=b.Amnt.v/100;
L/=2;var iw=Math.cos(W)*L,d7=Math.sin(W)*L,r=S.buffer,N=w.buffer;N.fill(0);var d0=new Uint32Array(r.buffer),gS=new Uint8Array(4),cf=new Uint32Array(gS.buffer);
for(var n=0;n<V;n++)for(var u=0;u<m;u++){var cT=0,fU=0,dX=0;if(0<=u+iw&&u+iw<m&&0<=n+d7&&n+d7<V){T.J.Lx(u+iw+.5,n+d7+.5,d0,m,V,cf,0,0);
cT+=gS[0]-128;fU+=gS[1]-128;dX+=gS[2]-128}if(0<=u-iw&&u-iw<m&&0<=n-d7&&n-d7<V){T.J.Lx(u-iw+.5,n-d7+.5,d0,m,V,cf,0,0);
cT-=gS[0]-128;fU-=gS[1]-128;dX-=gS[2]-128}var e9=n*m+u<<2;N[e9]=Math.max(0,Math.min(255,cT*bd+128));
N[e9+1]=Math.max(0,Math.min(255,fU*bd+128));N[e9+2]=Math.max(0,Math.min(255,dX*bd+128));N[e9+3]=r[e9+3]}}if(Z=="ShrE"){var O=S.rect,m=O.c,V=O.v;
T.Ix.ags(S.buffer,m,V,w.buffer)}if(Z=="Dspc"){var O=S.rect,m=O.c,V=O.v;T.Ix.aaq(S.buffer,m,V,w.buffer)}if(Z=="Slrz"){var g$=w.buffer,bX=128;
for(var D=0;D<g$.length;D+=4){if(g$[D]>bX)g$[D]=255-g$[D];if(g$[D+1]>bX)g$[D+1]=255-g$[D+1];if(g$[D+2]>bX)g$[D+2]=255-g$[D+2]}}if(Z=="Wnd "){var O=S.rect,m=O.c,V=O.v,aw=["Wnd","Blst","Stgr"],hP=b.WndM.v.WndM;
T.Ix.g9(S.buffer,m,V,w.buffer,[aw.indexOf(hP),b.Drct.v.Drct!="Left"])}if(Z=="Bokh"){var O=S.rect,m=O.c,V=O.v,q=m*V,K=q*4,eG=S.buffer.slice(0),eB=b.BkDi.v.BtDi,bb=b.BkDc,gx=b.BkDp.v/255;
if(eB=="BeIn")gx=0;var er=57*(.3+.7*((m+V)/2)/1750)*(b.BkIb.v/100)*(1+.2*Math.pow(gx,.1)),C=parseInt(b.BkIs.v.BtIs.slice(3)),ea=-b.BkIr.v*Math.PI/180,hD=[];
for(var D=0;D<8;D++){var bP=ea+D*(Math.PI*2/C),iz=ea+(D+1)*(Math.PI*2/C),iq=Math.cos(bP),cU=Math.sin(bP),aH=Math.cos(iz),eK=Math.sin(iz),h6=[0,0,0];
T.Ig.yn([[iq,cU,1,0],[aH,eK,1,0],[1,1,1,1]],h6);if(h6[2]>0){h6[0]*=-1;h6[1]*=-1;h6[2]*=-1}hD.push(h6[0],h6[1],h6[2],0)}if(eB=="BeIn"){T._U(eG,0,16777215);
gx=1}else if(eB=="BeIt"&&bb.v.BtDc=="BeCt"){}else{var co;if(eB=="BeIt"&&bb.v.BtDc=="BeCm")co=f[1];else if(eB=="BeIa")co=f[2][bb.v];
if(co==null){T._U(eG,0,16777215)}else{var dh;if(co.rect.Oh(O))dh=co.channel;else dh=co.Zv(O);T.y8(dh,eG,3)}}if(p.lc){var cX=eG,eY=m,ga=V,h0=1,a8=(b.BkSb.v==0||b.BkSt.v==255)&&eB=="BeIn";
if(!a8){var cc=0;for(var D=0;D<K;D+=4)cc+=Math.abs(gx-eG[D+3]*(1/255));cc=cc/q*er;var hW=3.14*cc*cc*m*V/3e6;
if(hW>2e3){alert("too large radius");return}}while(a8&&3*(er/h0)*(er/h0)*m*V>500*2e3*2e3){var em=T.wg(eG,new b4(0,0,eY,ga));
eG=em.j$;eY=em.rect.c;ga=em.rect.v;h0*=2}var I=Date.now(),br=p._w(0,eY,ga);br.set(eG);var cF=p._w(1,m,V);
p.Kd(cF);p.filter.H2({type:p.filter.M8,ZU:new Float32Array([1/eY,1/ga]),agO:gx,a2$:er/h0,agg:new Float32Array([b.BkSb.v/100,b.BkSt.v/255]),a0H:new Float32Array([b.BkNa.v/100,b.BkNt.v.BtNt=="BeNu"?0:1,b.BkNm.v?1:0]),aeQ:new Float32Array(hD.slice(0,16)),a0A:new Float32Array(hD.slice(16))},br.t_);
cF.get(w.buffer);var cW=w.buffer;for(var D=0;D<K;D+=4)cW[D+3]=S.buffer[D+3]}}if(Z=="rigidTransform"){var I=Date.now(),bM=cL.anH,br=S.buffer.slice(0),a1=0,fA=0;
T.pW(br);T._U(w.buffer,0);var m=S.rect.c,V=S.rect.v,ct=b.puppetShapeList.v,aQ=[],eA=[],gQ=[],eE=[];for(var eH=0;
eH<ct.length;eH++){var gd=ct[eH].v,ey=a1*2,hx=fA*3,ew=gd.originalVertexArray.v.length>>>2,dI=gd.indexArray.v.length>>>2,bs=new Float32Array(bM(gd.originalVertexArray.v));
for(var D=0;D<ew;D++)aQ[ey+D]=bs[D];var fE=new Float32Array(bM(gd.deformedVertexArray.v));for(var D=0;
D<ew;D++)eA[ey+D]=fE[D];var gg=new Uint32Array(bM(gd.indexArray.v));for(var D=0;D<dI;D++)gQ[hx+D]=a1+gg[D];
var bT=[],aa=[],gR=gd.PnDp.v;for(var D=0;D<gR.length;D++){bT.push(gd.pinVertexIndices.v[D].v);aa.push(gR[D].v)}var gb=T.yF.aok(bs,gg,bT,aa);
for(var D=0;D<gb.length;D++)eE[a1+D]=gb[D];a1+=ew>>>1;fA+=~~(dI/3)}var bH=S.rect,m=bH.c,V=bH.v;T.yF.PG(br,m,V,w.buffer,m,V,aQ,eA,eE,gQ);
T.rZ(w.buffer)}if(Z=="lightFilterGradient"){function dW(bO){var fF=1/Math.sqrt(bO[0]*bO[0]+bO[1]*bO[1]+bO[2]*bO[2]);
bO[0]*=fF;bO[1]*=fF;bO[2]*=fF}var m=S.rect.c,V=S.rect.v,q=m*V,I=Date.now(),cj=T.f(q),bJ=.3,dM=.7;T.Mq(w.buffer,cj);
var bm=T.f(q);T.rr.R2(cj,bm,w.rect,16);var ge=T.f(q);T.rr.R2(cj,ge,w.rect,8);var dc=cj,a=new Float32Array(q),eT=b.Dtl.v,fg=eT[2].v,gL=eT[1].v,f4=eT[0].v,eu=b.Scl.v*40*b.textureScale.v/(fg+gL+f4);
fg*=eu;gL*=eu;f4*=eu;for(var D=0;D<q;D++){var f5=bm[D]*(1/255),bf=ge[D]*(1/255),iL=dc[D]*(1/255);iL=iL*iL;
a[D]=fg*f5+gL*bf+f4*iL}var hB=b.blur.v;if(hB!=0){var aR=a.slice(0);T.rr.wr(aR,a,w.rect,hB)}var f7=m-1,dA=V-1;
for(var n=1;n<dA;n++)for(var u=1;u<f7;u++){var D=n*m+u,e9=D*4,ie=a[D],iw=bJ*(a[D+1]-ie)+dM*(ie-a[D-1]),d7=bJ*(a[D+m]-ie)+dM*(ie-a[D-m]),bO=[1,0,iw],e4=[0,1,d7];
dW(bO);dW(e4);var iz=bO[0],i2=bO[2],b8=e4[1],dH=e4[2],gr=-i2*b8,hd=-iz*dH,f9=iz*b8;w.buffer[e9]=~~(127.5+gr*127.5);
w.buffer[e9+1]=~~(127.5+hd*127.5);w.buffer[e9+2]=~~(127.5+f9*127.5)}}if(Z=="dDFT"||Z=="iDFT"){function d$(C){if(C==0)return 1;
C--;C|=C>>1;C|=C>>2;C|=C>>4;C|=C>>8;C|=C>>16;return C+1}var m=S.rect.c,V=S.rect.v,aP=d$(Math.max(m,V)),bw=aP>>>1,di=new b4(0,0,aP,aP),iB=new b4(0,0,m,V);
iB.y=aP-V>>>1;var a_=m>>>1,fh=new b4(0,iB.y,a_,V),b2=new T.XA(m*V);T.Tr(S.buffer,b2);var iE=new Float64Array(aP*aP),h8=new Float64Array(aP*aP),dh=T.f(aP*aP);
FFT.init(aP);var dg=[b2.h,b2.l,b2.O];for(var D=0;D<3;D++){var i7=dg[D];dh.fill(0);if(Z=="dDFT"){T.JS(i7,iB,dh,di);
cL.ahK(dh,aP,iE,h8);T.JS(dh,di,i7,iB,fh);fh.x+=a_;di.x-=bw-a_;T.JS(dh,di,i7,iB,fh);fh.x-=a_;di.x+=bw-a_}else{T.JS(i7,iB,dh,di,fh);
fh.x+=bw;iB.x+=bw-a_;T.JS(i7,iB,dh,di,fh);fh.x-=bw;iB.x-=bw-a_;cL.adh(dh,aP,iE,h8);T.JS(dh,di,i7,iB)}}T.s$(b2,w.buffer)}if(Z=="Avrg"){var h_=0,h9=0,c8=0,eX=0,hp=1;
for(var D=0;D<S.buffer.length;D+=4){var fu=S.buffer[D+3];c8+=S.buffer[D]*fu;h9+=S.buffer[D+1]*fu;h_+=S.buffer[D+2]*fu;
eX+=fu}var bB=1/eX;h_=Math.round(hp*(h_*bB)+(1-hp)*255);h9=Math.round(hp*(h9*bB)+(1-hp)*255);c8=Math.round(hp*(c8*bB)+(1-hp)*255);
T._U(w.buffer,h_<<16|h9<<8|c8,4278190080)}if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(Z)!=-1){var dR=b.Rds.v.val,gG=Z=="boxblur"?T.rr.v8:T.rr.afc;
cL.NM(dR,gG,w.buffer,w.rect);if(Z=="UnsM"||Z=="smartSharpen"){var bd=b.Amnt.v.val/100,ay=0;if(Z=="UnsM")ay=b.Thsh.v;
else bd*=.75;for(var D=0;D<S.buffer.length;D++){if((D&3)==3){w.buffer[D]=S.buffer[D];continue}var iI=S.buffer[D],hj=w.buffer[D],dy=bd*(iI-hj);
if(dy>0)dy=Math.max(0,dy-ay);else dy=Math.min(0,dy+ay);w.buffer[D]=Math.max(0,Math.min(255,iI+dy))}}if(Z=="HghP")for(var D=0;
D<S.buffer.length;D++){if((D&3)==3){w.buffer[D]=S.buffer[D];continue}var iI=S.buffer[D],hj=w.buffer[D];
w.buffer[D]=Math.max(0,Math.min(255,128+iI-hj))}}if(Z=="surfaceBlur"){var bH=b.Rds.v.val,iK=b.Thsh.v,m=S.rect.c,V=S.rect.v;
cL.k2(S.buffer,w.buffer,m,V,bH,T.gf.RE,[iK],2)}if(Z=="AdNs"){var ac=new Uint8ClampedArray(w.buffer.buffer),dt=255*b.Nose.v.val/100,c9;
if(b.Dstr.v.Dstr=="Gsn")c9=function(){return(Math.random()+Math.random()+Math.random()+Math.random()-2)*2};
else c9=function(){return Math.random()*2-1};for(var D=0;D<ac.length;D+=4){var bH=ac[D],a6=ac[D+1],iO=ac[D+2],hz,eC,dx;
if(b.Mnch.v){hz=eC=dx=c9()}else{hz=c9();eC=c9();dx=c9()}bH+=dt*hz;a6+=dt*eC;iO+=dt*dx;ac[D]=bH;ac[D+1]=a6;
ac[D+2]=iO}}if(Z=="Mdn "||Z=="DstS"||Z=="Mxm "||Z=="Mnm "){var bH=0;if(Z=="Mdn "||Z=="Mxm "||Z=="Mnm ")bH=b.Rds.v.val;
if(Z=="DstS")bH=b.Rds.v;T.gf.uF=.5;var gG=T.gf.CM;if(Z=="Mxm ")gG=T.gf.KQ;if(Z=="Mnm ")gG=T.gf.z8;var m=S.rect.c,V=S.rect.v,fn={"Mdn ":0,"Mxm ":1,"Mnm ":1,DstS:2}[Z];
cL.k2(S.buffer,w.buffer,m,V,bH,gG,[],fn);if(Z=="DstS"){var iK=b.Thsh.v;for(var D=0;D<m*V*4;D++){var ff=Math.abs(S.buffer[D]-w.buffer[D]);
if(ff<=iK)w.buffer[D]=S.buffer[D]}}}if(Z=="ClrH"){var fh=S.rect.clone();fh.x=fh.y=0;var bH=b.Rds.v;bH=Math.round(bH*Math.sqrt(2));
var m=fh.c,V=fh.v,b2=new T.XA(m*V);T.Tr(S.buffer,b2);T.oN(b2.h);T.oN(b2.l);T.oN(b2.O);var dD=s.R("canvas","");
dD.width=m;dD.height=V;var gq=dD.getContext("2d"),cW=T.f(m*V*4);for(var cZ=0;cZ<3;cZ++){var dh=cZ==0?b2.h:cZ==1?b2.l:b2.O,W=Math.PI*b["Ang"+(cZ+1)].v/180,g2=new fR(1/bH,0,0,1/bH,0,0);
g2.rotate(W);T.y8(dh,cW,3);var gS=G.V.DP([cW,fh],g2,!0),iB=gS.rect;gq.clearRect(0,0,m,V);var bL=Math.sin(W),fp=Math.cos(W);
for(var D=0;D<iB.v;D++)for(var cp=0;cp<iB.c;cp++){var u=(cp+iB.x+.5)*bH,n=(D+iB.y+.5)*bH,aC=u,e1=n;u=fp*aC-bL*e1;
n=bL*aC+fp*e1;var q=gS.buffer[(D*iB.c+cp<<2)+3]*(1/255),dR=bH*Math.sqrt(q*(1/Math.PI));gq.beginPath();
gq.arc(u,n,dR,0,2*Math.PI);gq.fill()}var bZ=gq.getImageData(0,0,m,V);T.to(bZ.data,dh,3)}T.oN(b2.h);T.oN(b2.l);
T.oN(b2.O);T.s$(b2,w.buffer)}if(Z=="Crst"||Z=="Pntl"){var m=S.rect.c,V=S.rect.v,gG=Z=="Crst"?T.qt.ako:T.qt.abu;
gG(S.buffer,m,V,w.buffer,b.ClSz.v,[Math.round(P.h),Math.round(P.l),Math.round(P.O)])}if(Z=="Mztn"){var m=S.rect.c,V=S.rect.v,q=m*V,b2=new T.XA(q),aS=[b2.h,b2.l,b2.O];
T.Tr(S.buffer,b2);var hP=b.MztT.v.MztT,ii={FnDt:[.1,0,.3,1.4],MdmD:[.9,0,.1,1.4],GrnD:[3,0,.2,1.4],CrsD:[7,0,.1,1.4],ShrL:[0,10,.16,3],MdmL:[0,22,.06,3],LngL:[0,25,.01,4.5],ShSt:[3,10,.05,4.4],MdmS:[4,25,.15,4],LngS:[4,30,.05,4]}[hP],I=Date.now(),hH=[];
for(var D=0;D<q;D++){hH[D]=Math.random()}var q=m*V,fm=Math.round(q*ii[0]),iQ=q-m-1;for(var D=0;D<fm;
D++){var x=Math.random(),eo=1;if(x<.5){eo=m;x*=2}else x=2*(x-.5);var g6=Math.floor(x*iQ),g5=g6+eo;hH[g6]=hH[g5]}var ci=Math.round(m*ii[1]);
for(var n=0;n<V;n++)for(var D=0;D<ci;D++){var x=T.p.Ux(n*q+D),g6=n*m+Math.floor(x*(m-1));hH[g6]=hH[g6+1]}var ch=new Float64Array(256);
for(var D=0;D<256;D++){var dF=D/255,hh=2*(dF<.5?dF:1-dF);hh=ii[2]+Math.pow(hh,ii[3])*(1-ii[2]);dF=dF<.5?hh*.5:1-hh*.5;
ch[D]=dF}for(var aT=0;aT<3;aT++){var dh=aS[aT];for(var n=0;n<V;n++){for(var u=0;u<m;u++){var D=n*m+u,eL=dh[D],dF=ch[eL],x=hH[D];
dh[D]=x>dF?0:255}}}T.s$(b2,w.buffer)}if(Z=="Msc "){var ez=b.ClSz.v.val,m=S.rect.c,V=S.rect.v,df=Math.ceil(m/ez),eb=Math.ceil(V/ez),iy=T.f(df*eb*4);
T.scale.V_(S.buffer,m,V,iy,df,eb,1/ez);T.scale.V_(iy,df,eb,w.buffer,m,V,ez)}if(Z=="Clds"||Z=="DfrC"){var m=w.rect.c,V=w.rect.v,q=m*V,en=T.f(q);
if(Z=="Clds")T._U(w.buffer,4278190080);var cN=T.f(256*4);for(var D=0;D<256;D++){var e9=D<<2,bV=D/255,gg=1-bV;
cN[e9]=Math.round(bV*Y.h+gg*P.h);cN[e9+1]=Math.round(bV*Y.l+gg*P.l);cN[e9+2]=Math.round(bV*Y.O+gg*P.O)}T.Ix.a3W(S.buffer,m,V,en);
var fb=w.buffer;for(var D=0;D<q;D++){var e9=D<<2,aT=en[D]<<2,bH=cN[aT],a6=cN[aT+1],iO=cN[aT+2];if(Z=="Clds"){fb[e9]=bH;
fb[e9+1]=a6;fb[e9+2]=iO}else{fb[e9]=Math.abs(fb[4*D]-bH);fb[e9+1]=Math.abs(fb[4*D+1]-a6);fb[e9+2]=Math.abs(fb[4*D+2]-iO)}}}if(Z=="LnsF"){var m=S.rect.c,V=S.rect.v,hP=["Zm","Nkn","Nkn1","PnVs"].indexOf(b.Lns.v.Lns),eN=b.FlrC.v,fV=[Math.min(hP,2),b.Brgh.v/100,eN.Hrzn.v,eN.Vrtc.v],I=Date.now();
T.a9y(S.buffer,m,V,w.buffer,fV)}var d_=["Blr ","BlrM","Shrp","ShrM"].indexOf(Z);if(d_!=-1){var h5=d_>1,m=S.rect.c,V=S.rect.v,iT=T.yM.zL[d_],cw=S.buffer.slice(0);
if(!h5)T.pW(cw);T.yM.Hl(cw,w.buffer,m,V,iT,255,!1,h5);if(!h5)T.rZ(w.buffer)}if(Z=="MtnB"){var ef=-b.Angl.v*Math.PI/180,dB=b.Dstn.v.val/2,I=Date.now(),m=S.rect.c,V=S.rect.v,O=S.rect.clone();
O.x=O.y=0;if(p.lc){var I=Date.now(),e6=w.buffer;e6.set(S.buffer);T.pW(e6);var an=p._w(0,m,V);an.set(e6);
var r=T.f(4);r[0]=Math.round(128+127*Math.cos(ef));r[1]=Math.round(128+127*Math.sin(ef));new Uint32Array(e6.buffer).fill(new Uint32Array(r.buffer)[0]);
var be=p._w(1,m,V);be.set(e6);p.Kd(an,O);an.k1(O);p.filter.H2({type:p.filter.GL,eq:be.t_,ZU:new Float32Array([1/m,1/V]),an0:dB/2,aiv:1},an.J5);
an.get(e6);T.rZ(e6)}else{var g2=new fR;g2.rotate(ef);var gS=G.V.DP([S.buffer,S.rect],g2,!1,null,!0);
cL.NM(dB,T.rr.Pz,gS.buffer,gS.rect);g2.oN();gS=G.V.DP([gS.buffer,gS.rect],g2,!1,w.buffer.buffer,!0,w.rect)}console.log(Date.now()-I)}if(Z=="RdlB"){var m=S.rect.c,V=S.rect.v,bd=b.Amnt.v,g_=b.BlrM.v.BlrM=="Zm",cZ=b.Cntr.v,fx=cZ.Hrzn.v,a7=cZ.Vrtc.v,iw=Math.max(fx,1-fx)*m,d7=Math.max(a7,1-a7)*V,dR=Math.sqrt(iw*iw+d7*d7),g9=2*Math.PI*dR*1.5,b1=Math.round(g9),hi=Math.round(dR),fh=new b4(0,0,b1,hi),i3=T.f(b1*hi*4),cy=g_?4:1,cD=g_?.6:8*((m+V)/2)/1400,dl=.1,h0=1,dT=1;
T.J._i(S.buffer,m,V,i3,b1,hi,fx,a7,cy,dl,h0,dT);var fS=g_?T.f(b1*hi*4):null;if(g_){T.J.L8(i3,fS,b1,hi);
var ig=fS;fS=i3;i3=ig;fh.c=hi;fh.v=b1}cL.NM(cD*bd,T.rr.Pz,i3,fh);if(g_){T.J.L8(i3,fS,hi,b1);var ig=fS;
fS=i3;i3=ig;fh.c=b1;fh.v=hi}T.J.KC(i3,b1,hi,w.buffer,m,V,fx,a7,cy,dl,h0,dT)}if(Z=="Plr "){var m=S.rect.c,V=S.rect.v;
if(b.Cnvr.v.Cnvr=="RctP")T.J.KC(S.buffer,m,V,w.buffer,m,V,.5,.5,1,0,2,m/V);else T.J._i(S.buffer,m,V,w.buffer,m,V,.5,.5,1,0,2,m/V)}if(Z=="FndE"){var m=S.rect.c,V=S.rect.v;
T.yM.ai(S.buffer,w.buffer,m,V)}if(Z=="oilPaint"){var W=b.LghD.v*Math.PI/180,aK=[Math.cos(W),Math.sin(W),.001],R=[b.stylization.v,b.cleanliness.v,b.brushScale.v,b.microBrush.v,b.lightingOn.v,b.specularity.v,aK],O=S.rect.clone();
O.x=O.y=0;T.Sj.filter(S.buffer,O,w.buffer,R)}if(Z=="Ofst"){var m=S.rect.c,V=S.rect.v,ed=new Uint32Array(S.buffer.buffer),iP=new Uint32Array(w.buffer.buffer),aC=b.Hrzn.v,e1=b.Vrtc.v,dS=b.Fl.v.FlMd;
T._U(iP,0);if(dS=="Bckg"||dS=="Rpt"){var fh=S.rect.clone();fh.offset(aC,e1);T.uH(ed,fh,iP,w.rect)}if(dS=="Rpt"){var iq,cU,aH,eK,cx;
aC=Math.max(-m,Math.min(m,aC));e1=Math.max(-V,Math.min(V,e1));iq=aC>0?aC:0;aH=aC>0?m:m+aC;cU=e1>0?0:e1+V;
eK=e1>0?e1:V;cx=e1>0?0:m*(V-1);for(var n=cU;n<eK;n++)for(var u=iq;u<aH;u++)iP[n*m+u]=ed[cx+u-aC];iq=aC>0?0:m+aC;
aH=aC>0?aC:m;cU=e1>0?e1:0;eK=e1>0?V:V+e1;cx=aC>0?0:m-1;for(var n=cU;n<eK;n++)for(var u=iq;u<aH;u++)iP[n*m+u]=ed[cx+m*(n-e1)];
if(aC>=0&&e1>=0){iq=0;aH=aC;cU=0;eK=e1;cx=0}if(aC>=0&&e1<0){iq=0;aH=aC;cU=V+e1;eK=V;cx=m*(V-1)}if(aC<0&&e1>=0){iq=m+aC;
aH=m;cU=0;eK=e1;cx=m-1}if(aC<0&&e1<0){iq=m+aC;aH=m;cU=V+e1;eK=V;cx=m*V-1}for(var n=cU;n<eK;n++)for(var u=iq;
u<aH;u++)iP[n*m+u]=ed[cx]}if(dS=="Wrp"){aC=(aC+100*m)%m;e1=(e1+100*V)%V;var fh=new b4(aC-m,e1-V,m,V);
T.uH(ed,fh,iP,w.rect);fh.offset(m,0);T.uH(ed,fh,iP,w.rect);fh.offset(0,V);T.uH(ed,fh,iP,w.rect);fh.offset(-m,0);
T.uH(ed,fh,iP,w.rect)}}if(Z=="Rept"){var ir=b.Rsft.v.val/100,dq=b.SpcX.v.val/100;dq=Math.max(dq,-.99);
var dN=b.SpcY.v.val/100;dN=Math.max(dN,-.99);var h0=b.Scl.v.val/100,g2=new fR;g2.rotate(b.Angl.v*Math.PI/180);
g2.scale(h0,h0);var go={buffer:S.buffer,rect:S.rect};T.br(go);if(go.rect.h3()){go.buffer=S.buffer;go.rect=S.rect}var fb=go.buffer,fh=go.rect,b7=T.gG(fb,fh,0),fe=new Uint32Array(fb.buffer)[0];
if(!b7.h3()&&!b7.Oh(fh)){var fd=T.f(b7.X()*4);T.uH(fb,fh,fd,b7);fb=fd;fh=b7}fh.x=fh.y=0;fe=dq==0&&dN==0||b.SpcC.v?fe:0;
function ap(u){return u<0?Math.ceil(u):Math.floor(u)}var eI=g2.YI(new ar(fh.c,0));eI.x=ap(eI.x);eI.y=ap(eI.y);
var hr=g2.YI(new ar(0,fh.v));hr.x=ap(hr.x);hr.y=ap(hr.y);var gS=G.V.DP([fb,fh],g2,!1),iB=gS.rect,N=gS.buffer,fN=Math.round(iB.x),gY=Math.round(iB.y),cl=Math.max(w.rect.c,w.rect.v)/Math.min(fh.c*h0*(1+dq),fh.v*h0*(1+dN));
cl=Math.ceil(cl*1.7);T._U(w.buffer,fe);for(var n=-cl;n<cl;n++){for(var u=-cl;u<cl;u++){var aB=(u+n*ir)*(1+dq),fy=n*(1+dN);
iB.x=fN+Math.round(aB*eI.x+fy*hr.x);iB.y=gY+Math.round(aB*eI.y+fy*hr.y);if(iB.U5(w.rect))T.p.xJ("norm",N,iB,w.buffer,w.rect,iB,1)}}}if(Z=="Ctoa"){var P=T.W.CD(b.Clr.v),iK=b.Trsp.v.val/100,g7=b.Opct.v.val/100;
iK=g7==0?0:iK/g7;var m=S.rect.c,V=S.rect.v,dw=~~P.h,e2=~~P.l,dm=~~P.O,cx=S.buffer,dZ=w.buffer;for(var n=0;
n<V;n++)for(var u=0;u<m;u++){var D=n*m+u,e9=D<<2,fh=cx[e9],gA=cx[e9+1],fb=cx[e9+2],cn=Math.abs(dw-fh),av=Math.abs(e2-gA),c7=Math.abs(dm-fb),bk=Math.max(cn,av,c7)*(1/255);
bk=Math.max(0,Math.min(1,bk/g7));var cm=bk==0?0:1/bk,bD=iK==1?1:Math.max(0,Math.min(1,(bk-iK)/(1-iK)));
dZ[e9]=Math.max(0,Math.min(255,(fh-dw*(1-bk))*cm));dZ[e9+1]=Math.max(0,Math.min(255,(gA-e2*(1-bk))*cm));
dZ[e9+2]=Math.max(0,Math.min(255,(fb-dm*(1-bk))*cm));dZ[e9+3]=~~(.5+bD*255)}}if("LqFy,Dspl,Pnch,Sphr,Twrl,Rple,Shr ,Wave,LnCr".split(",").indexOf(Z)!=-1){var ba=f[0],m=S.rect.c,V=S.rect.v,ch,eU=0;
if(Z=="LqFy")ch=bG.Vq(new Uint8Array(b.LqMe.v).buffer);else{var hc=3;ch={Yu:Math.floor(m/hc),XE:Math.floor(V/hc)};
ch.map=new Float32Array(ch.Yu*ch.XE*2);if(Z=="LnCr"){var fx=.5*(ch.Yu-1),a7=.5*(ch.XE-1),dQ=Math.max(Math.abs(0-fx),Math.abs(1-fx)),as=Math.max(Math.abs(0-a7),Math.abs(1-a7)),ai=Math.sqrt(dQ*dQ+as*as),cB=0,dV=0,hM=-1,iW=2,h0=b.LnSi.v/100,g_=1/h0,b5=b.LnIa.v/100,fH=b5==0?1e-6:b5*4.6,cg=g_/ai;
for(var n=0;n<ch.XE;n++){for(var u=0;u<ch.Yu;u++){var iw=(u-fx)*cg,d7=(n-a7)*cg,bH=Math.sqrt(iw*iw+d7*d7)*fH,aL=Math.atan(bH),he=b5>0?aL/bH:bH/aL,dT=fx+ai*he*iw,cq=a7+ai*he*d7,D=n*ch.Yu+u<<1;
ch.map[D]=dT-u;ch.map[D+1]=cq-n}}}else if(Z=="Dspl"&&ba.length!=0){eU=b.UndA.v.UndA=="WrpA"?2:1;var c4=b.DspF.v.pth,ao;
for(var D=0;D<ba.length;D++)if(ba[D].sx==c4)ao=ba[D];if(ao==null)ao=ba[0];ao.Zd();var cn=ao.Qf[1],fB=T.f(cn.X());
T.Mq(ao.Qf[0],fB);var cI=cn.c,fT=cn.v;ch={Yu:cI,XE:fT};ch.map=new Float32Array(ch.Yu*ch.XE*2);var bF=2.54*b.HrzS.v*cI/m,dG=2.54*b.VrtS.v*fT/V;
for(var n=0;n<ch.XE;n++){for(var u=0;u<ch.Yu;u++){var ff=-.5+fB[n*cI+u]*(1/255),D=n*ch.Yu+u<<1;ch.map[D]=ff*bF;
ch.map[D+1]=ff*dG}}}else if(Z=="Pnch"||Z=="Twrl"||Z=="Sphr"){var bd=1,ef=Math.PI,ej=0,cZ=3,ez=1.53,he=1;
if(Z=="Pnch"||Z=="Sphr")bd=b.Amnt.v/100;if(Z=="Twrl")ef=b.Angl.v*Math.PI/180;if(Z=="Sphr")ej=["Nrml","HrzO","VrtO"].indexOf(b.SphM.v.SphM);
function gG(u){u=Math.pow(u,1-u*.3-u*u*(u*u)*.5);return-.225*Math.sin(u*Math.PI)}function gN(V,fF,bH,iq,cU,aH,eK,he){var iw=aH-iq,d7=eK-cU,c_=iq-V,gs=cU-fF,bV=iw*iw+d7*d7,iO=2*(iw*c_+d7*gs),cZ=c_*c_+gs*gs-bH*bH,cC=Math.sqrt(iO*iO-4*bV*cZ),aY=he/(2*bV),iC=(-iO+cC)*aY,g0=(-iO-cC)*aY;
return he*Math.min(iC,g0)}var df=ch.Yu,eb=ch.XE,fl=ch.Yu/2,dA=ch.XE/2,ex=1/fl,bH=Math.sqrt(cZ*cZ+1)/cZ,i7=cZ+Math.sqrt(1/(cZ*cZ));
if(bd<0){cZ=1.72;bH=1;i7=cZ;ez=-1;he=-1}for(var n=0;n<eb;n++){var d7=(n-dA)/dA;for(var u=0;u<df;u++){var iw=(u-fl)*ex;
if(ej==1)d7=0;else if(ej==2)iw=0;var cH=Math.sqrt(iw*iw+d7*d7);if(cH<1&&cH!=0){var D=n*ch.Yu+u<<1;if(Z=="Pnch"){var gv=-bd*gG(cH)/cH;
ch.map[D]=iw*gv*fl;ch.map[D+1]=d7*gv*dA}else if(Z=="Sphr"){var ig=gN(0,i7,bH,0,0,cH,cZ,he),c5=ez*bd*(ig-1);
ch.map[D]=iw*c5*fl;ch.map[D+1]=d7*c5*dA}else if(Z=="Twrl"){var W=Math.atan2(d7,iw)-ef*(1-cH)*(1-cH),cO=Math.cos(W),dC=Math.sin(W);
ch.map[D]=(cH*cO-iw)*fl;ch.map[D+1]=(cH*dC-d7)*dA}}}}}else if(Z=="Shr "){var d9=JSON.parse(JSON.stringify(b.ShrP.v));
T.$F.A(d9,new fR(0,255/127,255/127,0,-2,0));var aW=T.$F.Dw(d9,ch.XE,!0);eU=b.UndA.v.UndA=="WrpA"?2:1;
for(var n=0;n<ch.XE;n++){var iw=-aW[n]*ch.Yu;for(var u=0;u<ch.Yu;u++){var D=n*ch.Yu+u<<1;ch.map[D]=iw}}}else if(Z=="Wave"){var fC=b.NmbG.v,iu=b.WLMn.v,cQ=b.WLMx.v,hk=b.AmMn.v*(Math.PI/4),gM=b.AmMx.v*(Math.PI/4),hK=b.SclH.v/100,cd=b.SclV.v/100,hP=b.Wvtp.v.Wvtp,ag=Math.sin;
if(hP=="WvTr")ag=function(u){u*=2/Math.PI;return-.5+Math.abs(u%2-1)};if(hP=="WvSq")ag=function(u){u*=2/Math.PI;
return 1+2*Math.floor(u%2-1)};var hu=[],f6=new T.p.Ny(b.RndS.v);for(var D=0;D<fC;D++){hu.push(f6.get()*10);
hu.push(Math.PI*hc/(iu+f6.get()*(cQ-iu)));hu.push(hK*(hk+f6.get()*(gM-hk))/hc);hu.push(f6.get()*10);
hu.push(Math.PI*hc/(iu+f6.get()*(cQ-iu)));hu.push(cd*(hk+f6.get()*(gM-hk))/hc)}var e_=[],bg=[],ek=Math.max(ch.Yu,ch.XE);
for(var D=0;D<ek;D++){var iw=0,d7=0;for(var cp=0;cp<fC;cp++){var eh=cp*6;iw+=hu[eh+2]*ag(hu[eh]+D*hu[eh+1]);
d7+=hu[eh+5]*ag(hu[eh+3]+D*hu[eh+4])}e_[D]=d7;bg[D]=iw}for(var n=0;n<ch.XE;n++){for(var u=0;u<ch.Yu;
u++){var D=n*ch.Yu+u<<1;ch.map[D]=bg[n];ch.map[D+1]=e_[u]}}eU=b.UndA.v.UndA=="WrpA"?2:1}else if(Z=="Rple"){eU=1;
var bd=b.Amnt.v/100,gk=4,dL=[0,-.19,-.29,-.32,.92,.37,.93,.54,-.54,.42,-.29,-.58,-.67,.85,0,.64],fz=1,dJ=1,c_=0,gi=["Sml","Mdm","Lrg"].indexOf(b.RplS.v.RplS);
if(gi==0){fz=1;dJ=.2;c_=3}if(gi==2){fz=1;dJ=2;c_=-1;dL=dL.reverse()}var et=function(u,n){var cZ=Math.cos,eu=0;
for(var D=0;D<gk;D++)for(var cp=0;cp<gk;cp++)eu+=dL[D*gk+cp]*cZ(u*(D+c_)-n*(cp+c_));return eu},db=Math.floor(50/hc),gI=new Float32Array(db*db*2),hO=dJ*bd*.5/hc;
for(var n=0;n<db;n++)for(var u=0;u<db;u++){var fx=fz*u*2*Math.PI/db,a7=fz*n*2*Math.PI/db,iG=et(fx,a7),iw=(et(fx+.01,a7)-iG)*100,d7=(et(fx,a7+.01)-iG)*100,D=(n*db+u)*2;
gI[D]=iw*hO;gI[D+1]=d7*hO}for(var n=0;n<ch.XE;n++)for(var u=0;u<ch.Yu;u++){var dC=n%db,cO=u%db,D=n*ch.Yu+u<<1,aJ=dC*db+cO<<1;
ch.map[D]=gI[aJ];ch.map[D+1]=gI[aJ+1]}}}T.Pq.Jv(S.buffer,w.buffer,m,V,null,ch.map,ch.Yu,ch.XE,eU)}return w};
var cV={};cV.Il="BrSm BrsL BrDR BrsW BrbW BrSp".split(" ");cV.UO="LDBt LDBL LDLf LDTL LDTp LDTR LDRg LDBR".split(" ");
cV.zH=["ScrC","ScrD","ScrL"];cV.po=["SDRD","SDHz","SDLD","SDVt"];cV.Tq="TxBl TxCa TxFr TxTL TxBr TxBu TxSt".split(" ");
cV.OH={PntD:"paintDaubs"};cV._h=["Artistic","Brush Strokes",[24,4],"Sketch",[24,14],[12,67]];cV.names={PntD:[0,"Paint Daubs"],PlsW:[0,"Plastic Wrap"],Spt:[1,"Spatter"],SprS:[1,"Sprayed Strokes"],Gls:[2,"Glass"],OcnR:[2,"Ocean Ripple"],BsRl:[3,"Bas Relief"],Chrc:[3,"Charcoal"],Chrm:[3,"Chrome"],GraP:[3,"Graphic Pen"],HlfS:[3,"Halftone Pattern"],Phtc:[3,"Photocopy"],Stmp:[3,"Stamp"],GlwE:[4,"Glowing Edges"],StnG:[5,"Stained Glass"],Txtz:[5,"Texturizer"]};
cV.VS=function(Z){var S;if(Z=="PntD")S={Sz:{t:"long",v:10},Shrp:{t:"long",v:10},BrsT:{t:"enum",v:{BrsT:"BrSm"}}};
if(Z=="PlsW")S={HghS:{t:"long",v:20},Dtl:{t:"long",v:4},Smth:{t:"long",v:5}};if(Z=="Spt")S={SprR:{t:"long",v:10},Smth:{t:"long",v:5},FlRs:{t:"long",v:10738420}};
if(Z=="SprS")S={StrL:{t:"long",v:12},SprR:{t:"long",v:7},SDir:{t:"enum",v:{StrD:"SDRD"}},FlRs:{t:"long",v:893120664}};
if(Z=="Gls")S={Dstr:{t:"long",v:3},Smth:{t:"long",v:1},TxtT:{t:"enum",v:{TxtT:"TxTL"}},Scln:{t:"long",v:100},InvT:{t:"bool",v:!1}};
if(Z=="OcnR")S={RplS:{t:"long",v:5},RplM:{t:"long",v:15},FlRs:{t:"long",v:64008840}};if(Z=="BsRl")S={Dtl:{t:"long",v:11},Smth:{t:"long",v:7},LghD:{t:"enum",v:{LghD:"LDBt"}}};
if(Z=="Chrc")S={ChAm:{t:"long",v:1},Dtl:{t:"long",v:5},LgDr:{t:"long",v:50},GELv:{t:"bool",v:!0}};if(Z=="Chrm")S={Dtl:{t:"long",v:4},Smth:{t:"long",v:4}};
if(Z=="GraP")S={StrL:{t:"long",v:7},LgDr:{t:"long",v:50},SDir:{t:"enum",v:{StrD:"SDRD"}},FlRs:{t:"long",v:55993248}};
if(Z=="HlfS")S={HlSz:{t:"long",v:1},Cntr:{t:"long",v:5},ScrT:{t:"enum",v:{ScrT:"ScrD"}}};if(Z=="Phtc")S={Dtl:{t:"long",v:10},Drkn:{t:"long",v:4}};
if(Z=="Stmp")S={LgDr:{t:"long",v:25},Smth:{t:"long",v:4}};if(Z=="GlwE")S={EdgW:{t:"long",v:1},EdgB:{t:"long",v:10},Smth:{t:"long",v:1}};
if(Z=="StnG")S={ClSz:{t:"long",v:10},BrdT:{t:"long",v:4},LghI:{t:"long",v:0},FlRs:{t:"long",v:319935998}};
if(Z=="Txtz")S={TxtT:{t:"enum",v:{TxtT:"TxBr"}},Scln:{t:"long",v:100},Rlf:{t:"long",v:10},LghD:{t:"enum",v:{LghD:"LDBL"}},InvT:{t:"bool",v:!1}};
S.__name="Filter Gallery";S.classID="GEfc";S.GEfk={t:"enum",v:{GEft:Z}};S.GELv={t:"bool",v:!0};return S};
cV.kl=function(Z,S){for(var D=0;D<S.length;D++)~~(S[D]=(Z[4*D]+Z[4*D+1]+Z[4*D+2])*(1/3))};cV.l5=function(Z,S,b,Y,P,w,f){Z=b.GEfk.v.GEft;
var h=S.rect,Q=h.c,e=h.v,l=Q*e;console.log(JSON.stringify(Z),JSON.stringify(b));if(Z=="PstE"){}if(Z=="AccE"){}if(Z=="AngS"){}if(Z=="Chrc"){var O=T.f(Q*e),m=T.f(Q*e);
cV.kl(S.buffer,O);T.Ix.acU(O,Q,e,m,[b.ChAm.v,b.Dtl.v,b.LgDr.v]);cV.hX(m,w.buffer,Y,P)}if(Z=="Stmp"){var O=T.f(Q*e),m=T.f(Q*e);
cV.kl(S.buffer,O);T.Ix.aaO(O,Q,e,m,[b.LgDr.v,b.Smth.v]);cV.hX(m,w.buffer,Y,P)}if(Z=="GraP"){var O=T.f(Q*e),m=T.f(Q*e);
T.Mq(S.buffer,O);T.Ix.a4t(O,Q,e,m,[b.StrL.v,b.LgDr.v,["SDRD","SDHz","SDLD","SDVt"].indexOf(b.SDir.v.StrD)]);
cV.hX(m,w.buffer,Y,P)}if(Z=="Phtc"){function V(ea,hD,h,hx){T.rr.dj(ea,hD,h,hx);for(var D=0;D<l;D++)hD[D]=Math.max(0,Math.min(255,128+ea[D]-hD[D]))}var q=b.Dtl.v,K=b.Drkn.v,O=T.f(l);
T.Mq(S.buffer,O);var z=T.f(l);V(O,z,h,1);var t=T.f(l);V(O,t,h,q);for(var D=0;D<l;D++)O[D]=Math.max(0,Math.min(255,255-(z[D]-t[D])*K));
cV.hX(O,w.buffer,Y,P)}if(Z=="Spt"||Z=="SprS"){var H,i=1,y=1;H={Yu:Math.floor(Q/y),XE:Math.floor(e/y)};
H.map=new Float32Array(H.Yu*H.XE*2);var j=new T.p.Ny(b.FlRs.v),J=new Float32Array(8192),A=b.SprR.v,a=A<20?.018*A:.36+(A-20)*.128;
if(Z=="SprS"){a=.07+[0,.02,.04,.06,.08,.1,.12,.14,.16,.18,.2,.22,.24,.26,.28,.3,.34,.38,.5,.65,.75,.85,1,1.5,2.2,3][A]}for(var D=0;
D<8192;D++)J[D]=(-1+2*j.get())*a*70;for(var I=0;I<e;I++)for(var E=0;E<Q;E++){var c=I*Q+E<<1;H.map[c]=J[c%7919];
H.map[c+1]=J[(c+1)%7919]}var u=H.map.slice(0),n=Z=="Spt"?b.Smth.v-1:1;if(Z=="Spt"&&n!=0){cV.zY(H.map,u,Q,e,n);
cV.n9(u,H.map,Q,e,n)}if(Z=="SprS"){var o=b.StrL.v>>>1,x=o==0?2:1;cV.zY(H.map,u,Q,e,x);cV.n9(u,H.map,Q,e,x);
if(o!=0){var g=cV.po.indexOf(b.SDir.v.StrD),v=[1,1,1,0][g],R=[-1,0,1,1][g],X=2*o+1,B=1/X;for(var I=0;
I<e;I++)for(var E=0;E<Q;E++){var c=I*Q+E<<1,M=0,r=0;for(var D=0;D<X;D++){var N=Math.max(0,Math.min(Q-1,E-(o+D)*v)),$=Math.max(0,Math.min(e-1,I-(o+D)*R)),eQ=$*Q+N<<1;
M+=H.map[eQ];r+=H.map[eQ+1]}u[c]=M*B;u[c+1]=r*B}H.map=u}}T.Pq.Jv(S.buffer,w.buffer,Q,e,null,H.map,H.Yu,H.XE,i)}if(Z=="BsRl"||Z=="PlsW"||Z=="Chrm"){var hN=Date.now(),bI=T.f(l),fq=bI.slice(0);
T.Mq(S.buffer,bI);var q=b.Dtl.v,e9=b.Smth.v;if(q!=15){T.rr.R2(bI,fq,h,Math.round((15-q)*.5));T.Bv(fq,bI)}var W=1.4/Q,L=1.4/e,bd=new Float32Array(l),iw=new Float32Array(l),d7=new Float32Array(w.buffer.buffer);
for(var I=0;I<e;I++)for(var E=0;E<Q;E++){var D=I*Q+E,v=E==Q-1?bI[D]-bI[D-1]:bI[D+1]-bI[D],R=I==e-1?bI[D]-bI[D-Q]:bI[D+Q]-bI[D],d0=E*W-.7,gS=I*L-.7;
bd[D]=v==0?d0:v*.4;iw[D]=R==0?gS:R*.4}if(Z=="BsRl"){var cf=(2+cV.UO.indexOf(b.LghD.v.LghD))*Math.PI*.25,M=Math.cos(cf);
if(Math.abs(M)<.1)M=0;M=Math.sign(M);var r=Math.sin(cf);if(Math.abs(r)<.1)r=0;r=Math.sign(r);var cT=1/(M*M+r*r);
for(var I=0;I<e;I++)for(var E=0;E<Q;E++){var D=I*Q+E,fU=Math.max(-1,Math.min(1,M*bd[D])),dX=Math.max(-1,Math.min(1,r*iw[D]));
fq[D]=128+127*(fU+dX)*cT}if(e9!=1){T.rr.R2(fq,bI,h,Math.round((e9-1)*.5));T.Bv(bI,fq)}cV.hX(fq,w.buffer,Y,P)}else{if(Z=="Chrm")e9=5+e9;
if(e9>1)cV.NM(bd,iw,d7,h,e9-1);if(Z=="PlsW"){var g$=new Uint8Array(bd.buffer);for(var D=0;D<l;D++){var bX=D<<2,v=bd[D],R=iw[D],aw=1/(Math.sqrt(1+v*v)*Math.sqrt(1+R*R)),hP=aw*aw,eG=hP*hP,eB=~~(255*(eG*eG*hP));
g$[bX+0]=eB;g$[bX+1]=eB;g$[bX+2]=eB;g$[bX+3]=eB}w.buffer.set(S.buffer);T.p.xJ("norm",g$,h,w.buffer,h,h,b.HghS.v/20)}else if(Z=="Chrm"){var bb=w.buffer,gx=Q>>>1,er=e>>>1;
for(var D=0;D<l;D++){var bX=D<<2,v=bd[D],R=iw[D],ea={x:1,y:0,aE:v};eg.xS(ea);var hD={x:0,y:1,aE:R};eg.xS(hD);
var bP=eg.UC(ea,hD),iz=1/bP.aE,iq=~~Math.max(0,Math.min(Q-1,gx-bP.x*iz*gx)),cU=~~Math.max(0,Math.min(e-1,er-bP.y*iz*er)),eB=bI[cU*Q+iq];
bb[bX+0]=eB;bb[bX+1]=eB;bb[bX+2]=eB}}}}if(Z=="Gls"||Z=="OcnR"||Z=="Txtz"){var aH=Z=="OcnR"?2:cV.Tq.indexOf(b.TxtT.v.TxtT),X=24,ct=0,aQ,eA;
if(aH==6)aH=2;var eK="blocks canvas frosted tinylens brick burlap".split(" ")[aH];if(cV.Qh==null)cV.Qh=[];
if(cV.Qh[aH]==null){var h6,co;if(aH==2){co=new b4(0,0,128,128);var dh=cL.VS("AdNs");dh.Mnch.v=!0;dh.Dstr.v.Dstr="Gsn";
dh.Nose.v.val=50;var h6=T.f(co.X()*4),cX=h6.slice(0);new Uint32Array(cX.buffer).fill(4286611584);cL.l5("AdNs",{buffer:cX,rect:co},dh,0,0,{buffer:h6,rect:co})}else{var eY=ab.w5.get("tex/"+eK,!0)[0];
co=eY.Vl;h6=new Uint8Array(eY.data)}var bI=T.f(co.X());T.to(h6,bI,0);cV.Qh[aH]=[co,bI]}var co=cV.Qh[aH][0],bI=cV.Qh[aH][1],ga=co.c,h0=co.v;
function a8(dM,f7,dA){return~~(cc*(dM+f7)+8192)&127}var bd=new Float32Array(l),iw=new Float32Array(l),d7=new Float32Array(w.buffer.buffer),cc=Z=="OcnR"?1/(1+(b.RplS.v-1)*.1):100/b.Scln.v;
if(aH==3)cc*=32/22.2;var hN=Date.now(),hW=cc,W=1.4/Q,L=1.4/e;if(Z=="Txtz"){hW*=1/255;X=256}for(var I=0;
I<e;I++){var em=a8(I,h.y,h0),$=em+1&127;for(var E=0;E<Q;E++){var D=I*Q+E,br=a8(E,h.x,ga),N=br+1&127,cF=0,cW=0,bM=0;
if(Z=="Txtz"){cF=T.J.FJ(cc*E,cc*I,bI,128,128);cW=T.J.FJ(cc*E,cc*I+1,bI,128,128);bM=T.J.FJ(cc*E+1,cc*I,bI,128,128)}else{cF=bI[em*ga+br];
cW=bI[$*ga+br];bM=bI[em*ga+N]}bd[D]=Math.max(-X,Math.min((bM-cF)*hW,X));iw[D]=Math.max(-X,Math.min((cW-cF)*hW,X))}}if(Z=="Txtz")cV.C7(bd,iw,d7,h,6);
else cV.NM(bd,iw,d7,h,Z=="Txtz"?1:Z=="OcnR"?3.5/cc:b.Smth.v);if(Z=="Txtz")ct=b.InvT.v?-1:1;else if(Z=="Gls"){ct=[1,.4,.5,.5][aH]*(Math.exp(b.Dstr.v*.155)-1);
if(b.InvT.v)ct=-ct}else{ct=.5*(Math.exp(b.RplM.v*.155)-1)}var bb=w.buffer;if(Z=="Txtz"){var cf=(2+cV.UO.indexOf(b.LghD.v.LghD))*Math.PI*.25,M=Math.cos(cf),r=Math.sin(cf);
aQ={x:M,y:r,aE:0};eg.xS(aQ);eA=b.Rlf.v;eA=eA/4+Math.max(0,(eA-35)*2)}function gQ(ea,hD,a1){var aa=T.p.overF(hD,ea,1),dM=(1-a1)*ea+a1*(a1*hD+(1-a1)*aa);
return dM*255}for(var I=0;I<e;I++)for(var E=0;E<Q;E++){var D=I*Q+E,bX=D<<2,v=bd[D],R=iw[D],ea={x:1,y:0,aE:v};
eg.xS(ea);var hD={x:0,y:1,aE:R};eg.xS(hD);var bP=eg.UC(ea,hD);if(Z=="Txtz"){var eE=eg.al0(bP,aQ)*ct,a1=1,eB=1;
if(eE<0){eB=0;eE=-eE}a1=Math.min(1,eE*eA);bb[bX+0]=~~gQ(S.buffer[bX]*(1/255),eB,a1);bb[bX+1]=~~gQ(S.buffer[bX+1]*(1/255),eB,a1);
bb[bX+2]=~~gQ(S.buffer[bX+2]*(1/255),eB,a1)}else{var iz=ct/bP.aE,iq=~~Math.max(0,Math.min(Q-1,E-bP.x*iz)),cU=~~Math.max(0,Math.min(e-1,I-bP.y*iz)),fA=cU*Q+iq<<2;
bb[bX+0]=S.buffer[fA];bb[bX+1]=S.buffer[fA+1];bb[bX+2]=S.buffer[fA+2]}}}if(Z=="PntD"){var eH=b.Shrp.v*.4,gd=b.BrsT.v.BrsT,ey={BrSm:[.75],BrsL:[.85],BrDR:[.68],BrsW:[.75],BrbW:[.78],BrSp:[.62]}[gd],hx=Math.round(b.Sz.v*.5);
T.gf.uF=ey[0];var ew=T.gf.CM;cL.k2(S.buffer,w.buffer,Q,e,hx,ew,[],0);var dI=[-.7,-1,-.7,-1,10,-1,-.7,-1,-.7];
dI=T.yM.yU(dI);var bs=w.buffer.slice(0);T.yM.Hl(bs,w.buffer,Q,e,dI,0);for(var D=0;D<S.buffer.length;
D++){var fE=w.buffer[D]-bs[D];w.buffer[D]=Math.max(0,Math.min(255,bs[D]+eH*fE))}}if(Z=="GlwE"){var gg=w.buffer.slice(0);
T.gf.uF=.5;var ew=T.gf.CM;cL.k2(S.buffer,gg,Q,e,b.Smth.v>>>1,ew,[],0);T.yM.ai(gg,w.buffer,Q,e);T.Bv(w.buffer,gg);
T.oN(gg);T._U(gg,4278190080,16777215);cL.k2(gg,w.buffer,Q,e,b.EdgW.v>>>1,T.gf.KQ,[],0);var bT=b.EdgB.v/10;
for(var D=0;D<gg.length;D++){if((D&3)==3)continue;var aa=w.buffer[D];w.buffer[D]=Math.max(0,Math.min(255,aa*bT))}}if(Z=="StnG"){T.qt.afK(S.buffer,Q,e,w.buffer,b.ClSz.v,[Math.round(Y.h),Math.round(Y.l),Math.round(Y.O)],b.BrdT.v)}if(Z=="HlfS"){var gR=b.HlSz.v,gb=gR*2+1,bH=b.Cntr.v,dW=cV.zH.indexOf(b.ScrT.v.ScrT),l=Q*e,cj=l*4,bm=T.f(l),ge=S.buffer,f4=0,eu=0;
for(var D=0;D<cj;D+=4)bm[D>>>2]=~~(.5+(ge[D]+ge[D+1]+ge[D+2])*(1/3));var dc=bm.slice(0);T.rr.LA(dc,bm,h,gR);
var eT=Math.PI/gb,fg=new Float64Array(Q),M=new Float64Array(Q),gL=new Float64Array(2*Q);for(var E=0;
E<Q;E++){var br=(E-(Q>>>1))*eT;fg[E]=br*br;M[E]=Math.cos(br);var v=E<<1;gL[v]=Math.sin(v*(1/4.5));gL[v+1]=Math.sin((v+1)*(1/4.5))}for(var I=0;
I<e;I++){var em=(I-(e>>>1))*eT,r=Math.cos(em),f5=em*em;for(var E=0;E<Q;E++){var eB=r;if(dW==0){var bf=.5+Math.sqrt(fg[E]+f5)*4.5;
eB=gL[~~bf]}else if(dW==1){eB=M[E]*r}var D=I*Q+E,iL=bm[D]*(.75+.25*eB),a1=ge[(D<<2)+3]*(1/255),hB=Math.max(0,Math.min(255,~~iL));
f4+=hB*a1,eu+=a1;bm[D]=hB}}f4/=eu;var aR=128+1.26*(f4-128),bT=.08+.25*Math.abs((128-f4)/128),bJ=1+bT*bH;
for(var D=0;D<l;D++){var iL=aR+(bm[D]-aR)*bJ;bm[D]=Math.max(0,Math.min(255,~~iL))}if(bH>46)T.round(bm);
cV.hX(bm,w.buffer,Y,P)}for(var D=0;D<S.buffer.length;D+=4)w.buffer[D+3]=S.buffer[D+3]};cV.hX=function(Z,S,b,Y){var P=Z.length,w=b.h,f=b.l,h=b.O,Q=Y.h,e=Y.l,l=Y.O;
for(var D=0;D<P;D++){var O=Z[D]*(1/255),m=1-O,V=D<<2;S[V]=~~(w*m+Q*O);S[V+1]=~~(f*m+e*O);S[V+2]=~~(h*m+l*O)}};
cV.NM=function(Z,S,b,Y,P){if(P<=1){P=Math.round(P);cV.C7(Z,S,b,Y,[1,16,4][P]);return}var w=P*.42;if(Z){T.rr.wr(Z,b,Y,w,3);
Z.set(b)}if(S){T.rr.wr(S,b,Y,w,3);S.set(b)}};cV.C7=function(Z,S,b,Y,P){var w=T.yM.yU([1,2,1,2,P,2,1,2,1]);
if(Z){b.set(Z);T.yM.ZT(Z,b,Y.c,Y.v,w);Z.set(b)}if(S){b.set(S);T.yM.ZT(S,b,Y.c,Y.v,w);S.set(b)}};cV.K3=function(Z){if(Z==null)return new ar(0,0);
var S=0,b=Z.GEfs?Z.GEfs.v:[{v:Z}];for(var D=0;D<b.length;D++){var Y=b[D].v,w=1e4;if(Y.GELv&&!Y.GELv.v)continue;
var P=Y.GEfk.v.GEft;if(P=="GlwE"||P=="Phtc"||P=="BsRl"||P=="PlsW"||P=="Chrm"||P=="Gls"||P=="OcnR")w=0;
S=Math.max(S,w)}return new ar(S,S)};cV.Xb=function(Z){var S=[0,0,0,0,0,0,0,0,0,0,0,0,0],b=[0,.6,.7,.8,1,1.2,1.4,1.6,1.8,2,2.2,2.6,3,4,5][Z];
for(var D=0;D<13;D++){var Y=D-6;S[D]=1/(b*Math.sqrt(2*Math.PI))*Math.exp(-.5*(Y/b)*(Y/b))}return S};
cV.zY=function(Z,S,b,Y,P){var w=cV.Xb(P),f=6,h=13;for(var Q=0;Q<Y;Q++)for(var e=0;e<b;e++){var l=Q*b+e<<1,O=0,m=0;
for(var D=0;D<h;D++){var V=e+D-f,q=V<0?0:V>=b?b-1:V,K=(Q*b+q)*2,z=w[D];O+=z*Z[K];m+=z*Z[K+1]}S[l]=O;
S[l+1]=m}};cV.n9=function(Z,S,b,Y,P){var w=cV.Xb(P),f=6,h=13;for(var Q=0;Q<Y;Q++)for(var e=0;e<b;e++){var l=Q*b+e<<1,O=0,m=0;
for(var D=0;D<h;D++){var V=Q+D-f,q=V<0?0:V>=Y?Y-1:V,K=(q*b+e)*2,z=w[D];O+=z*Z[K];m+=z*Z[K+1]}S[l]=O;
S[l+1]=m}};function is(){}is.JL=[2,5,5,7,4,4];is.KP="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(",");
is.JO="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(" ");
is.dd=[[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]];
is.OM=["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"];
is.Tk=function(Z){if(Z=="passThrough")return"pass";return is.KP[is.JO.indexOf(Z)]};is.QT=function(Z){if(Z=="pass")return"passThrough";
return is.JO[is.KP.indexOf(Z)]};is.getName=function(Z){return is.dd[is.KP.indexOf(Z)]};function F(){this.rect=null;
this.WL="norm";this.opacity=255;this.gL=!1;this.NG=0;this.QG=0;this.M0=[];for(var D=0;D<10;D++)this.M0.push(0,0,255,255);
this.name=null;this.add={};this.buffer=null;this.tt=null;this.jg=null;this.d=null;this.Wr=null;this.afO=30;
this.W7=F.mL();this.a0F=F.mL();this.acR=F.mL();this.afT=F.mL();this.PC=0;this.PL=!1;this.Ns=null;this.VW=new F.fi}F.mL=function(){var Z=s.R("canvas");
Z.width=Z.height=30;return Z.getContext("2d")};F.fi=function(){this.HJ=!0;this.Ft=!0;this.on=T.f(0);
this.ak1=T.f(0);this.h1=null;this._u={};this.ahN=null;this.lp=null;this.rS=null;this.o1=null;this.Wa=null;
this.Rf=null;this.Cu=null;this.ML=null;this.dw=null;this.hr=null;this.Ad=null;this.G$=null;this.QP=!1};
F.fi.prototype.ib=function(){this.HJ=!1;this.Ft=!1;this.h1=null;this.QP=p.lc};F.fi.prototype.a9l=function(){eg.QR(this._u);
this.on=T.f(0);this.ak1=T.f(0);if(this.o1)this.o1.delete();if(this.Wa)this.Wa.delete();this.o1=null;
this.Wa=null;var Z=[this.Rf,this.Cu,this.ML,this.dw,this.hr,this.Ad];for(var D=0;D<6;D++)if(Z[D]!=null&&Z[D]instanceof p.XA)Z[D].delete();
this.Rf=null;this.Cu=null;this.ML=null;this.dw=null;this.hr=null;this.Ad=null};F.prototype.D=function(Z){if(Z==null)Z=this.rect.clone();
if(this.VW.h1==null)this.VW.h1=Z;else this.VW.h1=this.VW.h1.VK(Z)};F.prototype.W$=function(){return this.add.lsct==fr.k8||this.add.lsct==fr.U1};
F.prototype.q3=function(){var Z=this.add;return Z.SoCo!=null||Z.GdFl!=null||Z.PtFl!=null};F.prototype.G5=function(){var Z=this.add.lmfx;
if(Z==null)return;var S=["GrFl","patternFill"];for(var D=0;D<S.length;D++){var b=a4.Ol[a4.order.indexOf(S[D])],Y=Z[b].v;
if(Y.length==0)continue;for(var P=0;P<Y.length;P++){var w=Y[P].v;if(w.enab.v&&(w.Algn==null||!w.Algn.v))this.VW.Ft=!0}}};
F.prototype.YO=function(){var Z=this.d;if(this.q3())Z=this.Y6();if(!p.lc)return Z.F0();if(this.VW.Wa==null||this.VW.HJ||p.lc!=this.VW.QP){if(this.VW.Wa)this.VW.Wa.delete();
this.VW.Wa=new p.vt(Z.Ij().c,Z.Ij().v);this.VW.Wa.set(Z.F0())}return this.VW.Wa};F.prototype.zW=function(Z){var S=this.rect,b=this.buffer;
if(!p.lc){var Y=this.pD(Z,b,S);if(Y){b=Y.j$;S=Y.rect}return b}if(this.VW.h1!=null||p.lc!=this.VW.QP){var Y=this.pD(Z,b,S);
if(Y){b=Y.j$;S=Y.rect}var P=S;if(p.lc!=this.VW.QP||this.VW.o1==null||this.VW.o1.c!=P.c||this.VW.o1.v!=P.v){if(this.VW.o1)this.VW.o1.delete();
this.VW.o1=new p.XA(P.c,P.v);this.VW.o1.set(b)}else{var w=this.VW.h1.clone();w.offset(-S.x,-S.y);this.VW.o1.set(b,w)}}return this.VW.o1};
F.prototype.VG=function(){var Z=this.d;if(this.q3())Z=this.Y6();return Z!=null&&Z.isEnabled&&(Z.CD()==0||Z.CD()!=0&&!Z.rect.h3())};
F.prototype.pD=function(Z,S,b){if(this.pL()){var Y=this.fY(Z);if(Y.d&&Y.d.isEnabled&&(!Y.d.rect.h3()||Y.d.color==0)){var P=this.add.SoLd.filterFX.v;
Y.d.uu=P.filterMaskDensity?P.filterMaskDensity.v:255;Y.d.Mt=P.filterMaskFeather?P.filterMaskFeather.v:0;
var w=Y.buffer,f=Y.d.Zv(b);T.oN(f);S=S.slice(0);T.p.VZ(w,Y.rect,S,b,f,b,0,b,1);return{j$:S,rect:b}}}};
F.prototype.a1o=function(){var Z={fn:!1,dz:!1,T5:0,vC:0};if(this.add.vmsk&&this.add.vmsk.isEnabled)Z.dz=!0;
if(this.Y6()&&this.Y6().isEnabled)Z.fn=!0;if(Z.fn&&Z.dz){Z.T5=this.Y6().rect.x-this.add.vmsk.Y6().rect.x;
Z.vC=this.Y6().rect.y-this.add.vmsk.Y6().rect.y}return Z};F.prototype.vK=function(Z){if(this.add.lsct==fr.Ee)return;
var S=this,b=this.Y6()!=null&&this.Y6().Th,Y=this.add.vmsk!=null&&this.add.vmsk.Th,P=this.a1o(),w=JSON.stringify(P)!=this.VW.ahN||P.fn&&b||P.dz&&Y;
if(w){if(P.dz){var f=this.add.vmsk.Y6();if(P.fn){this.d=this.Y6().Co(f);this.VW.lp=new ar(this.d.rect.x-this.Y6().rect.x,this.d.rect.y-this.Y6().rect.y)}else this.d=f}if(this.d)this.VW.HJ=!0;
if(this.d)this.VW.rS=new ar(this.rect.x-this.d.rect.x,this.rect.y-this.d.rect.y);if(P.fn)this.Y6().Th=!1;
if(P.dz)this.add.vmsk.Th=!1;this.D()}else{if(P.fn&&P.dz){this.d.rect.x=this.Y6().rect.x+this.VW.lp.x;
this.d.rect.y=this.Y6().rect.y+this.VW.lp.y}}if(S.q3()){this.WV(Z)}if(S.bu()){var h;if(this.d)h=new ar(this.rect.x-this.d.rect.x,this.rect.y-this.d.rect.y);
if(this.d&&this.d.isEnabled&&(this.VW.rS==null||!h.Oh(this.VW.rS))){this.VW.rS=h;this.D();this.VW.HJ=!0}}if(g3.get(S.add)!=null)this.VW.HJ=!0;
this.VW.ahN=JSON.stringify(P)};F.prototype.WV=function(Z){var S=this,b=S.add.vstk,Y,P=S.add.vmsk?this.add.vmsk.Y6():null,h=!0;
if(P&&P.isEnabled&&P.CD()==0)Y=P.Ij().clone();else Y=new b4(0,0,Z.c,Z.v);var w=S.Y6();if(w&&w.isEnabled&&w.CD()==0)Y=Y.Yz(S.d.Ij());
var f=P&&b;if(b&&(!b.strokeEnabled.v||b.strokeStyleLineWidth.v.val==0))f=!1;if(b&&!b.fillEnabled.v&&f)h=!1;
var Q=T.f(Y.X()*4);if(h){if(S.add.SoCo)eg.gj(Q,S.add.SoCo.Clr.v);if(S.add.GdFl){var e=P&&P.color==0?T.Y.Al(S.add.vmsk.b,null,!0):null;
eg.JD(S.add.GdFl,Q,Y,Z,null,e)}if(S.add.PtFl)eg.ZO(S.add.PtFl,Q,Y,Z,S.add.fxrp)}if(P){var l=P.uu;if(f)P.uu=255;
var O=T.f(Y.X());if(P.CD()!=0)O.fill(Math.round(P.CD()));if(P&&P.isEnabled){var m=P.Ij(),V=P.F0();if(m.Oh(Y))T.Bv(V,O);
else T.JS(V,m,O,Y)}if(S.add.SoCo&&h){T.y8(O,Q,3)}else T.FD(O,Y,Q,Y);if(f)P.uu=l}S.buffer=Q;S.rect=Y;
if(f){var q=a4.m3.ie.indexOf(b.strokeStyleLineAlignment.v.strokeStyleLineAlignment),K=b.strokeStyleContent.v,z=a4.m3.Vh.indexOf(K.classID),t=this.add.vmsk.Y6(b);
if(S.rect.Oh(new b4(0,0,Z.c,Z.v)))S.rect=S.rect;else if(q!=0){var H=S.rect.VK(t.Ij()),i=T.f(H.X()*4);
T.uH(S.buffer,S.rect,i,H);S.buffer=i;S.rect=H}var l=t.uu;t.uu=255;var y=t.Zv(S.rect);t.uu=l;if(t.color==255)T.oN(y);
var j=T.f(S.rect.X()*4);if(z==0)eg.gj(j,K.Clr.v);if(z==1)eg.JD(K,j,S.rect,Z,null,P.color==0?P.rect:null);
if(z==2)eg.ZO(K,j,S.rect,Z,S.add.fxrp);var J=b.strokeStyleOpacity.v.val/100;if(J!=1)T.ka(y,J);T.y8(y,j,3);
if(t.color==255)q=2-q;if(q==0){T.p.xJ("norm",j,S.rect,S.buffer,S.rect,S.rect,1);T.FD(O,S.rect,S.buffer,S.rect)}if(q==1){T.p.xJ("norm",j,S.rect,S.buffer,S.rect,S.rect,1)}if(q==2){T.oN(O);
T.p.VZ(j,S.rect,S.buffer,S.rect,O,Y,255,S.rect,1,!1);T.oN(O)}if(t.uu!=255){var A=j.slice(0);T._U(A,4278190080,16777215);
T.p.xJ("norm",A,S.rect,S.buffer,S.rect,S.rect,1-t.uu/255)}l=P.uu;P.uu=255;this.ak1=P.Zv(S.rect);P.uu=l}this.D()};
F.prototype.JN=function(Z,S){var b=this,Y=b.add.SoLd.Idnt.v,P=b.add.SoLd,w=T.z.$R(G.V.Nt(P.nonAffineTransform)),f=Z.BY(Y,P.Crop?P.Crop.v:null,[w.c,w.v],P.Impr.v.classID);
if(f==null)return;var h=f.Qf;P.Sz.v.Wdth.v=h[1].c;P.Sz.v.Hght.v=h[1].v;var Q=P.warp.v,e=G.V.Nt(P.nonAffineTransform),l=T.J.Sy(e,h[1]);
if(Q&&!T.$e.iI(Q)){var w=T.z.$R(T.$e.dm(Q)),O=w.x,m=w.y,V=1/w.c,q=1/w.v;l=T.J.Sy(e);l=T.J.Co(l,[V,0,-O*V,0,q,-m*q,0,0])}var K=G.V.u4(h,S?0:1,l,Q,null,null,null,S);
if(K==null){b.buffer=T.f();b.rect=new b4}else if(b.pL()){var z=b.fY(Z);z.buffer=K.buffer;z.rect=K.rect.clone();
this.lZ(Z,S)}else{b.buffer=K.buffer;b.rect=K.rect}b.vK(Z);b.D();Z.D()};F.prototype.lZ=function(Z,S){if(S==null)S=!1;
var b=this.fY(Z),Y=this.add.SoLd.filterFX.v,P=cL.aiQ(Y),w=new b4(0,0,Z.c,Z.v),f=b.rect.VK(w),h=b.rect.clone();
h.lg(P.x,P.y);var Q={buffer:null,rect:f.Yz(h)};Q.buffer=T.f(Q.rect.X()*4);T.uH(b.buffer,b.rect,Q.buffer,Q.rect);
if(Y.enab.v&&S==!1){var e=Y.filterFXList.v;for(var D=0;D<e.length;D++){var l=e[D].v;if(l.enab.v==!1)continue;
var O=l.blendOptions.v,m=is.Tk(O.Md.v.BlnM),V=O.Opct.v.val/100,q=T.W.CD(l.FrgC.v),K=T.W.CD(l.BckC.v),z=cL.sn(l),t={buffer:T.f(Q.buffer.length),rect:Q.rect.clone()},H=l.Fltr?l.Fltr.v:null;
if(g3.Qs[z]!=null){var i=g3.Qs[z],y=g3.uC(i,H);if(y)g3.l5(y,Q.buffer,t.buffer,Q.rect)}else cL.l5(z,Q,H,q,K,t,[Z.add.lnk2?Z.add.lnk2:[],this.Y6(),Z.eP]);
if(m=="norm"&&V==1)Q=t;else if(m=="norm"){T.p.VZ(t.buffer,t.rect,Q.buffer,Q.rect,null,null,null,Q.rect,V)}else{T.p.xJ(m,t.buffer,t.rect,Q.buffer,Q.rect,Q.rect,V)}}}this.rect=Q.rect;
this.buffer=Q.buffer;this.gi();this.D();Z.D()};F.prototype.S0=function(Z,S,b){this.Ns=this.L2(Z,S,b)};
F.prototype.d5=function(Z,S){var b=this.L2(Z,S,!0);if(b==null)return null;var Y={s0:b.PC,Le:b.qG,rect:b.bC};
if(Y.s0==1||Y.s0==3){var P=Y.rect,w=T.f(P.c*P.v*4);T.y8(Y.Le,w,0);T.y8(Y.Le,w,1);T.y8(Y.Le,w,2);T._C(Z.N.channel,Z.N.rect,w,P);
Y.Le=w}return Y};F.prototype.L2=function(Z,S,b){var Y,P,w,f,h,Q,e;if(this.PC<=0){var l=T.f(this.rect.X());
T.to(this.buffer,l,3);Y=T.To.Wj(S,{channel:l,rect:this.rect},"intersection");if(Y==null)return null;
var O=T.fD(Y.channel,Y.rect);f=Y.rect.clone();h=this.rect.clone();P=T.f(f.X()*4);T.uH(this.buffer,h,P,f);
T.y8(Y.channel,P,3);w=this.buffer.slice(0);if(!b){var m=S.channel.slice(0);T.oN(m);T.FD(m,S.rect,w,h)}Q=this.buffer.slice(0);
e=this.rect.clone()}if(this.PC==1||this.PC==3){var V=this.PC==1?this.Y6():this.fY(Z).d;f=S.rect.clone();
h=V.rect.clone();P=V.g6(f);var w=V.channel.slice(0);if(!b)T.p.gX(V.color==255?T.FX(f.X()):T.Nv(f.X()),f,w,h,S.channel,f,1);
Q=V.channel.slice(0);e=V.rect.clone()}return{PC:this.PC,qG:P,bC:f,NA:w,Xv:h,yx:Q,pM:e}};F.prototype.Hb=function(Z,S){var b=this.Ns;
if(b.PC==0){this.rect=b.pM;this.buffer=b.yx;this.D()}if(b.PC==1||b.PC==3){var Y=b.PC==1?this.Y6():this.fY(Z).d;
Y.channel=b.yx;Y.rect=b.pM;if(this.PC==1){Y.Th=!0;this.vK(Z)}if(this.PC==3)this.D()}this.Ns=S};F.prototype.CQ=function(Z,S){if(this.PC<=0&&S.rect.Oh(this.rect)){var b=T.f(this.rect.X());
T.to(this.buffer,b,3);if(T.Oh(Z.N.channel,b)){var Y=this.rect,P=this.buffer;this.Ns={PC:this.PC,qG:P.slice(0),bC:Y.clone(),NA:T.f(0),Xv:new b4,yx:T.f(0),pM:new b4};
return!0}}var w=this.Ns;if(w==null)return!1;if(w.PC!=this.PC)return!1;if(!S.rect.Oh(w.bC))return!1;var f=w.Xv.VK(w.bC);
if(w.PC<=0){if(!f.Oh(this.rect))return!1;var h=T.f(w.qG.length>>2);T.to(w.qG,h,3);if(!T.Oh(S.channel,h))return!1;
var Q=T.f(f.c*f.v*4);T.uH(w.NA,w.Xv,Q,f);T.p.xJ("norm",w.qG,w.bC,Q,f,f,1);return T.Oh(Q,this.buffer)}if(w.PC==1||w.PC==3){var e=w.PC==1?this.Y6():this.fY(Z).d;
if(!f.Oh(e.rect))return!1;var l=T.f(f.X());l.fill(e.color);T.JS(w.NA,w.Xv,l,f);T.p.gX(w.qG,w.bC,l,f,S.channel,f,1);
return T.Oh(l,e.channel)}};F.prototype.$p=function(Z,S,b,Y){var P=this.Ns;P.bC.offset(S,b);var w=P.Xv.VK(P.bC);
if(P.PC<=0){var f=T.f(w.X()*4);T.uH(P.NA,P.Xv,f,w);T.p.xJ("norm",P.qG,P.bC,f,w,w,1);this.buffer=f;this.rect=w;
this.D()}else{var h=this.PC==1?this.Y6():this.fY(Z).d,Q=T.f(w.X());Q.fill(h.color);T.JS(P.NA,P.Xv,Q,w);
T.p.gX(P.qG,P.bC,Q,w,Y.channel,w,1);h.channel=Q;h.rect=w.clone();if(this.PC==1){h.Th=!0;this.vK(Z)}if(this.PC==3)this.D()}};
F.prototype.Jq=function(){var Z=[-1,0,1,2];if(this.d)Z.push(-2);if(this.Wr)Z.push(-3);return Z};F.prototype.getName=function(){return this.add.luni?this.add.luni:this.name};
F.prototype.wc=function(C){this.add.luni=this.name=C};F.prototype.EU=function(Z){var S=this.add.lnsr,b=this.add.TySh;
if(S=="rend"&&b)this.wc(eO.IU(b.HK).replace(/(?:\r\n|\r|\n)/g," ").slice(0,32))};F.prototype._7=function(){return(this.NG&1<<1)==0};
F.prototype.bu=function(){return(this.NG&1<<4)==0};F.prototype.GP=function(){return(this.NG&1<<5)!=0};
F.prototype.a0x=function(){var Z=this;if(Z.add.lnsr!="bgnd"){Z.add.lnsr="bgnd";Z.wc("Background");Z.add.lspf=1<<2}};
F.prototype.a1V=function(){var Z=this;if(Z.add.lnsr=="bgnd"){delete Z.add.lnsr;Z.wc("Layer 0");Z.add.lspf=0}};
F.prototype.vv=function(Z){var S=this.add.lspf;return S==null?!1:(S>>Z&1)!=0};F.prototype.Ba=function(Z){if(Z&&!this._7())this.NG-=2;
if(!Z&&this._7())this.NG+=2};F.prototype.U_=function(){var Z=this.add.lmfx;if(Z==null)return!1;for(var S in Z){if(S=="masterFXSwitch")continue;
if(S=="Scl")continue;if(S=="classID")continue;if(Z[S].v.length>0)return!0}return!1};F.prototype.pL=function(){return this.add.SoLd!=null&&this.add.SoLd.filterFX!=null};
F.prototype.z3=function(){var Z=this.add.lmfx;if(Z==null)return!1;if(!Z.masterFXSwitch.v)return!1;for(var S in Z){if(S=="masterFXSwitch")continue;
if(S=="Scl")continue;if(S=="classID")continue;var b=Z[S].v;for(var D=0;D<b.length;D++)if(b[D].v.enab.v)return!0}return!1};
F.prototype.qI=function(Z,S,b,Y){var P=new b4,w=this.FN(Z,b,Y);if(w.indexOf(0)!=-1)P=P.VK(this.rect);
if(w.indexOf(1)!=-1)P=P.VK(this.Y6().Ij());if(w.indexOf(2)!=-1){var f=this.add.vmsk,h;if(S){if(f.cY.length>1){var Q=T.Y.bM(f.b,null,f.cY);
h=T.z.$R(Q)}else h=T.Y.Al(f.b,f.C.length!=0?f.C:null)}else h=T.Y.Al(f.b);P=P.VK(h)}if(w.indexOf(3)!=-1)P=P.VK(this.fY(Z).d.Ij());
if(w.length==0&&this.q3())P=new b4(0,0,Z.c,Z.v);return P};F.prototype.nE=function(){var Z=this.add.artb,S=Z.artboardBackgroundType.v,b=0;
if(S==1)b=4294967295;else if(S==2)b=4278190080;else if(S==3)b=0;else if(S==4){b=Z.Clr.v;b=255<<24|b.Bl.v<<16|b.Grn.v<<8|b.Rd.v}else throw S;
return b};F.prototype.mb=function(){var Z=this.add.artb.artboardRect.v,S=Z.Btom.v,b=Z.Left.v,Y=Z.Rght.v,top=Z.Top.v;
return new b4(b,top,Y-b,S-top)};F.prototype.PB=function(Z){var S=F.iO(Z);if(this.add.artb==null)this.add.artb={classID:"artboard",artboardRect:{t:"Objc",v:null},artboardBackgroundType:{t:"long",v:1}};
this.add.artb.artboardRect.v=S};F.iO=function(Z){var S={classID:"classFloatRect",Top:{t:"doub",v:0},Left:{t:"doub",v:0},Btom:{t:"doub",v:0},Rght:{t:"doub",v:0}};
S.Btom.v=Z.y+Z.v;S.Left.v=Z.x;S.Rght.v=Z.x+Z.c;S.Top.v=Z.y;return S};F.prototype.FN=function(Z,S,b){var Y=[],P=this,w=this.PL;
if(!S&&P.PL&&b){Y.push(2)}else if(P.PC<=0||S){if(P.bu())if(!this.rect.h3())Y.push(0);if(P.Y6()&&!P.Y6().rect.h3())if(P.Y6().kF||S)Y.push(1);
if(P.add.vmsk)if(P.add.vmsk.kF||S)Y.push(2);if(P.pL()&&P.fY(Z).d&&!P.fY(Z).d.rect.h3())Y.push(3)}else if(P.PC==1){Y.push(1);
if(P.Y6().kF&&!P.Y6().rect.h3()){if(P.bu())if(!this.rect.h3())Y.push(0);if(P.add.vmsk)if(P.add.vmsk.kF)Y.push(2)}}else if(P.PC==3&&!P.fY(Z).d.rect.h3())Y.push(3);
if(P.add.artb&&Y.indexOf(0)==-1)Y.push(0);Y.sort();return Y};F.prototype.Y6=function(){var Z=this;return Z.Wr?Z.Wr:Z.add.vmsk&&Z.add.vmsk.isEnabled?null:Z.d};
F.prototype.fY=function(Z){var S=this.add.SoLd.placed.v,b=Z.add.FEid;if(b==null)return null;for(var D=0;
D<b.length;D++)if(b[D].id==S)return b[D];return null};F.prototype.extend=function(Z){T.aoI(this,Z)};
F.prototype.iq=function(Z,S,b){var Y=Z.clone();if(this.z3()){var P=this.add.lmfx,w=S.root.zO(S.t.indexOf(this)),f=P.gradientFillMulti.v,h=!1;
for(var D=0;D<f.length;D++)if(f[D].v.enab.v&&f[D].v.Algn.v)h=!0;if(h)Y=Y.VK(w.Ij(S,!1));var Q=eg.amH(this,S,b);
Y.offset(Q.x,Q.y);Y.c+=Q.c;Y.v+=Q.v}return Y};F.prototype.gi=function(){if(this.bu())T.br(this);var Z=this.Y6();
if(Z)Z.gi()};F.prototype.clone=function(){var Z=new F;Z.rect=this.rect.clone();Z.buffer=this.buffer.slice(0);
Z.WL=this.WL;Z.opacity=this.opacity;Z.gL=this.gL;Z.NG=this.NG;Z.name=this.name;Z.M0=this.M0.slice(0);
if(this.d)Z.d=this.d.clone();if(this.Wr)Z.Wr=this.Wr.clone();for(var S in this.add)Z.add[S]=ak.clone(S,this.add[S]);
return Z};F.prototype.Yq=function(Z){var S=this;if(S.add.TySh)delete S.add.TySh;if(S.add.SoLd){var b=this.pD(Z,this.buffer,this.rect);
if(b){this.buffer=b.j$;this.rect=b.rect;this.D()}delete S.add.SoLd}if(S.add.SoCo||S.add.GdFl||S.add.PtFl){if(S.add.vogk)delete S.add.vogk;
if(S.add.SoCo)delete S.add.SoCo;if(S.add.GdFl)delete S.add.GdFl;if(S.add.PtFl)delete S.add.PtFl;if(S.add.vmsk){console.log(S.Wr,S.d);
delete S.add.vmsk;if(S.Wr==null&&S.d)delete S.d;else if(S.Wr!=null&&S.d!=null){S.d=S.Wr;delete S.Wr}}}if(!S.W$()&&g3.get(S.add)==null&&!this.bu())this.NG-=16};
F.prototype.ti=function(Z){var S=255,b=0;if(Z==2){var Y=this.add.SoLd.filterFX.v;if(Y.filterMaskDensity)S=Y.filterMaskDensity.v;
if(Y.filterMaskFeather)b=Y.filterMaskFeather.v}else{var P=Z==0?this.Y6():this.add.vmsk;S=P.uu;b=P.Mt}return{oM:Z,Ms:S,ik:b}};
F.prototype.we=function(Z){if(Z.oM==2){var S=this.add.SoLd.filterFX.v;if(Z.Ms==255)delete S.filterMaskDensity;
else S.filterMaskDensity={t:"long",v:Z.Ms};if(Z.ik==0)delete S.filterMaskFeather;else S.filterMaskFeather={t:"doub",v:Z.ik};
this.D()}else{var b=Z.oM==0?this.Y6():this.add.vmsk;b.uu=Z.Ms;b.Mt=Z.ik;b.Th=!0}};F.prototype.AU=function(){var Z=this,S=Z.add.vmsk;
if(S==null)return;Z.add.vogk=F.AU(S.b)};F.AU=function(Z){var S=[],b=T.Y.eu(Z);for(var Y=0;Y<b;Y++)S.push(T.AZ.Nv());
return S};var fr={Dr:0,k8:1,U1:2,Ee:3};F.bN=function(){this.name="Mask";this.Ag=!1;this.gV={h:255,l:0,O:0};
this.Xe=50;this.vp=0;this.color=255;this.kF=!0;this.isEnabled=!0;this._W=!1;this.uu=255;this.Mt=0;this.rect=new b4;
this.channel=T.f(0);this.cm=null;this.aeN=null;this.Th=!0};F.bN.prototype.Co=function(Z){if(!this.isEnabled)return Z;
var S=new F.bN;S.color=Math.round(this.CD()*Z.CD()/255);if(this.CD()==0&&Z.CD()==0)S.rect=this.Ij().Yz(Z.Ij());
else if(Z.CD()==0)S.rect=Z.Ij().clone();else if(this.CD()==0)S.rect=this.Ij().clone();else S.rect=this.Ij().VK(Z.Ij());
S.channel=this.Zv(S.rect);S.uu=255;S.Mt=0;var b=Z.Zv(S.rect);T.aeB(b,S.rect,S.channel,S.rect);return S};
F.bN.prototype.Ij=function(){if(this.Mt==0)return this.rect;var Z=Math.ceil(this.Mt*2.2),S=this.rect.clone();
S.lg(Z,Z);return S};F.bN.prototype.F0=function(){if(this.Mt==0&&this.uu==255)return this.channel;if(this.Mt==0){var Z=this.channel.slice(0);
T.oN(Z);T.ka(Z,this.uu/255);T.oN(Z);return Z}var S=this.Ij(),b=this.g6(S),Z=T.f(S.X());T.rr.R2(b,Z,S,this.Mt);
if(this.uu!=255){T.oN(Z);T.ka(Z,this.uu/255);T.oN(Z)}return Z};F.bN.prototype.CD=function(){return Math.round(255-(255-this.color)*(this.uu/255))};
F.bN.prototype.extend=function(Z){T.extend(this,Z,this.color)};F.bN.prototype.gi=function(){if(this.color==255)T.oN(this.channel);
T.gi(this);if(this.color==255)T.oN(this.channel)};F.bN.prototype.clone=function(){var Z=new F.bN;Z.name=this.name;
Z.Ag=this.Ag;Z.gV=this.gV;Z.Xe=this.Xe;Z.vp=this.vp;Z.color=this.color;Z.kF=this.kF;Z.isEnabled=this.isEnabled;
Z._W=this._W;Z.uu=this.uu;Z.Mt=this.Mt;Z.rect=this.rect.clone();Z.channel=this.channel.slice(0);return Z};
F.bN.prototype.g6=function(Z,S){if(S==null)S=T.f(Z.X());S.fill(this.color);T.JS(this.channel,this.rect,S,Z);
return S};F.bN.prototype.Zv=function(Z,S){var b=this.Ij(),Y=this.F0();if(S==null)S=T.f(Z.X());S.fill(this.CD());
T.JS(Y,b,S,Z);return S};F.NS=function(){this.kF=!0;this.isEnabled=!0;this.uu=255;this.Mt=0;this.b=[{type:6},{type:8,all:0}];
this.mu=[-3,-3];this.No=!1;this.Wr=null;this.Th=!0;this.C=[];this.cY=[]};F.NS.prototype.offset=function(Z,S){this.Wr=this.Y6();
T.Y.$d(this.b,new fR(1,0,0,1,Z,S));this.Wr.rect.offset(Z,S)};F.NS.prototype.Y6=function(Z){if(!this.Th&&this.Wr&&Z==null){this.Wr.isEnabled=this.isEnabled;
return this.Wr}var S=T.Y.Al(this.b),b="strokeStyleLineAlignment",Y="strokeStyleLineJoinType";if(S.X()>3e4*3e4)S=new b4(0,0,100,100);
if(Z&&Z[b].v[b]!="strokeStyleAlignInside"){var P=1;if(Z[Y].v[Y]=="strokeStyleMiterJoin"){var w=T.Y.abi(this.b),f=w/2,h=Math.sin(f),Q=Math.cos(f);
Q/=h;h=1;var P=Math.sqrt(Q*Q+h*h);if(isNaN(P)||P<1)P=1}P*=Z[b].v[b]=="strokeStyleAlignOutside"?1:.5;
var e=Math.ceil(Z.strokeStyleLineWidth.v.val*P);e=Math.min(e,600);S.lg(e,e)}S=T.z.gO(S);var l=new F.bN;
l.color=T.Y.eC(this.b)?0:255;l.kF=this.kF;l.isEnabled=this.isEnabled;l._W=!0;l.rect=S;l.uu=this.uu;l.Mt=this.Mt;
l.channel=T.f(l.rect.X());if(!S.h3())T.Y.a7y(this.b,l.channel,l.rect,Z);if(Z==null){this.Wr=l;this.Th=!1}return l};
F.NS.prototype.clone=function(){var Z=new F.NS;Z.kF=this.kF;Z.isEnabled=this.isEnabled;Z.uu=this.uu;
Z.Mt=this.Mt;Z.b=F.NS.OU(this.b);Z.mu=this.mu.slice(0);Z.No=this.No;Z.C=this.C.slice(0);Z.cY=this.cY.slice(0);
return Z};F.NS.prototype.concat=function(Z){var S=Z.b.slice(2);if(S.length==0)return;S[0].qU=3;this.b=this.b.concat(S)};
F.NS.OU=function(Z){var S=[];for(var D=0;D<Z.length;D++){var b=Z[D];if(b.type>5||b.type==0||b.type==3)S.push(JSON.parse(JSON.stringify(b)));
else S.push({type:b.type,hQ:b.hQ.clone(),I:b.I.clone(),e$:b.e$.clone()})}return S};F.NS.a8K=function(Z,S,b){if(Z.length!=S.length)return!1;
for(var D=2;D<Z.length;D++){var Y=Z[D],P=S[D];if(Y.type!=P.type)return!1;if(Y.type==0||Y.type==3){if(Y.length!=P.length||!b&&Y.qU!=P.qU)return!1}else if(!Y.hQ.Oh(P.hQ)||!Y.I.Oh(P.I)||!Y.e$.Oh(P.e$))return!1}return!0};
F.NS.prototype.ak_=function(){var Z=this.b;for(var D=3;D<Z.length;D++)if(Z[D].type==0||Z[D].type==3)Z[D].qU=-1};
F.yq=function(){this.type=null;this.du=2;this.sx=null;this.JB="";this.uR="";this.Tw="";this.open=0;this.raw=null;
this.Qf=null;this.a1J=""};F.yq.prototype.clone=function(){var Z=new F.yq;Z.type=this.type;Z.du=this.du;
Z.sx=this.sx;Z.JB=this.JB;Z.uR=this.uR;Z.Tw=this.Tw;Z.open=this.open;Z.raw=new Uint8Array(this.raw.buffer.slice(0));
return Z};F.yq.prototype.Zd=function(Z,S,b){if(b==null)b="none";var Y=this,P=ab.fN(Y.raw.buffer),w=P=="svg"||P=="pdf";
if(Y.Qf){var f=S&&w&&Math.max(Y.Qf[1].c,Y.Qf[1].v)<Math.max(S[0],S[1]);if(!f&&b==this.a1J)return}this.a1J=b;
if(!w)Z=0;if(P==null){alert("Unsupported format: "+k.zG(Y.raw,0,4));return null}var h=ab.iZ(P);if(h.Ke){var Q=new gf(name+(P=="psd"?"":"-"+P)+".psd"),e;
h.Gk(Y.raw.buffer,Q,S);var l=new b4(0,0,Q.c,Q.v);if("avrg maxx medn minn rang stdv summ vari".split(" ").indexOf(b)!=-1){var O=[];
for(var D=0;D<Q.t.length;D++){var m=Q.t[D],V=m.buffer;if(!m.rect.Oh(l)){V=T.f(l.X()*4);T.uH(m.buffer,m.rect,V,l);
console.log("resizing")}O.push(V)}e=T.f(l.X()*4);T.stack.stack(O,e,b)}else{for(var D=0;D<Q.t.length;
D++)if(Q.t[D].q3())Q.t[D].vK(Q);Q.Wl();Q.D();Q.j8();e=Q.Zd()}Y.Qf=[e,l]}else if(h){var q=h.Gk(Y.raw.buffer)[0];
Y.Qf=[new Uint8Array(q.data),q.Vl]}if(Y.Qf){if(Z==1){var V=Y.Qf[0],K=Y.Qf[1],z=T.f(K.X());T.to(V,z,3);
var t=T.fD(z,K),H=T.f(t.X()*4);T.uH(V,K,H,t);Y.Qf=[H,t]}T.O9(Y.Qf)}};F.GG="0";F.ak="2";F.sg="2.5";F.Rc="3";
F.dX="4";F.Jp="4.5";F.m$="4.6";F.gK="5";F.UB="5.5";F.A6="6";F.zR="7";F.gg="7.5";F.lh="8";F.oy="9";F.MS="9.3";
F.Dh="9.5";F.xG="9.6";F.pa="10";F.cf="11";F.Wt="12";F.fs="13";F.Y8="13.5";F.ji="13.7";F.Vw="14";F.OG="14.5";
F.q5="15";F.Ow="16";F.E5="17";F.Rx="18";F.Zh="19";F.r5="19.5";F.c0="19.6";F.bs="19.7";F.fk="20";F.XB="21";
F.EQ="21.5";F.Cd="22";F.R5="22.5";F.qk="23";F.a99="24";F.lx="25";F.Cs="26";F.fa="27";F.sr="28";F.wp="29";
F.Fd="30";F.TA="31";F.NO="32";F.D4="33";F.rM="34";F.nC="35";F.ob="36";F.fE="36.5";F.aT="37";F.ho="37.5";
F.alj="37.6";F.if="38";F.nA="38.5";F.J4="38.6";F.Kb="39";F.mw="40";F.kj="41";F.ki="42";F.DZ="50";F._J="51";
F.AJ="52";F.aQ="53";F.dF="54";F.yc="54.5";F.T0="54.6";F.tb="54.7";F.Ws="54.8";F.Um="55";F.Gl="56";F.WW="57";
F.mS="58";F.P2="59";function f3(){this.depth=0;this.index=-1;this.$=null;this.a8H=null;this.Y5=-1;this.children=null;
this.parent=null;this.m5=null}f3.prototype.h_=function(Z,S){if(this.depth!=0)Z.push(this.$.getName());
if(this.children)for(var D=0;D<this.children.length;D++)this.children[D].h_(Z,S);if(Z.length>S.$0.length)S.$0=Z.slice(0);
if(this.depth!=0)Z.pop()};f3.prototype.ac2=function(){var Z=0;if(this.$.W$()){for(var D=0;D<this.children.length;
D++)Z+=this.children[D].ac2()}else if(this.$.buffer)Z+=this.$.buffer.length;return Z};f3.prototype.zO=function(Z){var S=this.m5[Z];
return this.m5[Z]};f3.prototype.kV=function(Z,S){var b=this.$;if(!b._7()||b.vv(2)||b.vv(31))return null;
if(b.VG()){var Y=b.d.rect.U5(Z);if(!Y&&b.d.color==0)return}if(b.W$()){for(var D=0;D<this.children.length;
D++){var C=this.children[D];C.kV(Z,S)}}else if(b.rect.U5(Z))S.push(this.index)};f3.prototype.eI=function(Z,S){var b=this.$;
if(!b._7()||b.vv(2)||b.vv(31))return null;if(b.VG()){if(b.d.rect.DS(Z)){if(!T.eI(Z,b.d.channel,b.d.rect))return null}else if(b.d.color==0)return null}if(b.W$()){for(var D=this.children.length-1;
D>=0;D--){var C=this.children[D],Y=C.eI(Z,S);if(Y&&S==null)return Y}return null}else if(b.add.TySh&&b.rect.DS(Z)||T.a1G(Z,b.buffer,b.rect)){if(S==null)return this;
else S.push(this.index)}return null};f3.prototype.a7H=function(Z){var S=this.$;if(!S._7()||S.vv(2)||S.vv(31))return null;
var b=S.add.vmsk;if(b&&b.isEnabled){var Y=T.Y.eI(b.b,Z).SU;if(Y!=-1)return{a61:this,a4L:Y}}if(S.W$()){for(var D=this.children.length-1;
D>=0;D--){var C=this.children[D],P=C.a7H(Z);if(P)return P}return null}return null};f3.prototype.jE=function(Z,S){Z.push(this.index);
if(this.$.W$()){Z.push(this.Y5);if(S)if(this.$.PC==1&&this.$.Y6().kF==!1)return;for(var D=0;D<this.children.length;
D++)this.children[D].jE(Z)}};f3.prototype.Oy=function(Z,S,b){var Y=this.$,P,w;if(Y.W$()&&Y.add.artb!=null)S=Y.mb();
if(S.c>S.v){P=b;w=Math.floor(b*(S.v/S.c))}else{P=Math.floor(b*(S.c/S.v));w=b}if(Y.q3()&&Y.add.vmsk==null||Y.add.TySh)P=w=Math.max(w,16);
else{P=Math.max(P,6);w=Math.max(w,6)}var f=w,h=Y.q3()&&Y.add.vmsk;if(h){var Q=Y.rect.clone(),O,m;if(Q.h3())Q=new b4(0,0,20,20);
var e=Q.c,l=Q.v;if(e>l){O=b;m=Math.floor(b*(l/e))}else{O=Math.floor(b*(e/l));m=b}if(O*m==0)O=m=16;T.kJ.ii(Y.W7,O,m,Q,Y.buffer,Y.rect,!1);
T.kJ.amR(Y.W7,O,m);f=m}else if(Y.add.TySh){T.kJ.a3e(Y.W7,f,f,Y.add.TySh)}else if(Y.add.SoCo){f=Math.max(16,Math.min(P,w));
T.kJ.a8P(Y.W7,f,f,Y.add.SoCo)}else if(Y.add.GdFl){T.kJ.a6_(Y.W7,f,f,Y.add.GdFl)}else if(Y.add.PtFl){T.kJ.aj6(Y.W7,f,f,Y.add.PtFl,Z)}else if(g3.get(Y.add)!=null){T.kJ.aaE(Y.W7,f,f,Y.add)}else if(Y.add.SoLd){T.kJ.ii(Y.W7,P,w,S,Y.buffer,Y.rect,!1);
T.kJ.a05(Y.W7,P,w,Y.add.SoLd)}else if(Y.W$()){f=16}else{if(Y.bu())T.kJ.ii(Y.W7,P,w,S,Y.buffer,Y.rect,!1);
else{T.kJ.a9s(Y.W7,f,f)}}var V=Y.Y6();if(V)T.kJ.fR(Y.a0F,P,w,S,V);if(Y.pL()&&Y.fY(Z)&&Y.fY(Z).d){var q=Y.fY(Z).d;
T.kJ.fR(Y.afT,P,w,S,q)}if(!h&&Y.add.vmsk){T.kJ.fR(Y.acR,P,w,S,Y.add.vmsk.Y6(),!0)}if(Y.add.vmsk||V)f=Math.max(f,w);
Y.afO=Math.max(f,16);if(Y.W$()&&Y.add.lsct==fr.k8)for(var D=0;D<this.children.length;D++)this.children[D].Oy(Z,S,b)};
f3.prototype.Ly=function(Z,S,b,Y){this.depth=b;var P=Z[S];if(Y==null)Y=[];this.m5=Y;if(P.add.lsct==fr.Ee){this.a8H=P;
this.Y5=S-1;this.children=[];var D=S+1;while(!0){var w=Z[D];if(w==null)console.log(D,Z.length);if(w.add.lsct==fr.k8||w.add.lsct==fr.U1){if(P.add.lyid==w.add.lyid)P.add.lyid+=16777215;
this.$=w;this.index=D-1;Y[this.index]=this;Y[S-1]=this;break}var f=new f3;f.parent=this;D=f.Ly(Z,D,b+1,Y);
this.children.push(f)}return D+1}else{this.$=P;this.index=S-1;Y[this.index]=this;return S+1}};f3.prototype.ri=function(Z,S,b,Y){var P=this.zO(b),w=Z;
while(P.parent!=null){w=P.$.iq(w,S,Y);P=P.parent}return w};f3.prototype.Ij=function(Z,S){var b=this.$,Y=new b4;
if(!b._7())return Y;var P=b.Y6();if(b.W$())for(var D=0;D<this.children.length;D++){var w=this.children[D].Ij(Z,!0);
Y=Y.VK(w)}else if(g3.get(b.add)!=null)Y=b.VG()&&b.d.color==0?b.d.Ij().clone():new b4(0,0,Z.c,Z.v);else if(b.q3()&&b.add.vmsk&&b.add.vmsk.isEnabled&&b.add.vstk){Y=b.rect.clone()}else if(b.q3()&&P&&P.isEnabled&&P.CD()!=0)Y=new b4(0,0,Z.c,Z.v);
else{Y=b.qI(Z,!1,!0);if(b.add.vmsk)Y=T.z.gO(Y)}return S?b.iq(Y,Z):Y};f3.prototype.zZ=function(Z,S,b,Y,P){var w=this.$,f=eg.TB(w);
if(!w._7())return;if(w.opacity==255){this.lY(Z,S,b,Y,P);return}var h=Z.slice(0);this.lY(h,S,b,Y,P);T.p.VZ(h,S,Z,S,null,null,0,b,w.opacity/255,w.WL=="diss")};
f3.prototype.lY=function(Z,S,b,Y,P){var w=this.$,f=eg.TB(w),h=g3.get(w.add)!=null,O,q;if(w.W$()&&w.WL=="pass"&&!w.VG()&&!(P.length>0||f.fill!=1||w.z3())){this.th(Z,S,b,Y);
return}var Q=w.W$()&&w.WL=="pass"&&(P.length>0||f.fill!=1||w.z3()),e=w.rect,l=w.buffer;if(w.W$()){e=this.Ij(Y,!1);
var m=T.f(e.X()*4);O=T.f(e.X());this.th(m,e,b,Y);T.to(m,O,3)}else if(h){e=S.clone();O=T.f(e.X());O.fill(255)}else{e=w.rect;
O=T.f(e.X());T.to(l,O,3)}if(w.VG()){var V=w.d.Zv(e);T.Im(V,O)}if(w.z3())q=eg.HP(w.add.lmfx,w.add.fxrp,O,e,Y);
if(w.z3())eg.OZ(w.add.lmfx,q,e,Z,S,b);if(w.W$()){l=T.f(e.X()*4);if(w.WL=="pass")T.uH(Z,S,l,e);if(Q){var m=T.f(e.X()*4);
this.th(m,e,b,Y);var K=T.f(e.X());T.to(m,K,3);T.FD(K,e,l,e)}this.th(l,e,b,Y)}if(h){l=Z.slice(0);T._U(l,4278190080,16777215);
var z=g3.get(w.add),t=g3.uC(z,w.add[z]);g3.l5(t,l,l,e)}var H=l.slice(0);T._U(H,4278190080,16777215);
for(var D=0;D<P.length;D++)P[D].zZ(H,e,b,Y,[]);var i=T.f(e.X()*4);T.uH(Z,S,i,e);if(h)f.gd=!0;T.p.xJ(w.WL=="pass"?"norm":w.WL,H,e,i,e,b,1,f);
if(w.z3()){var y=w.VW._u.type.FrFX,j=null;if(y.length!=0){j=y[0];for(var D=0;D<y.length;D++)if(y[D].dI.c>j.dI.c)j=y[D];
var J=T.f(j.dI.c*j.dI.v*4);T.uH(Z,S,J,j.dI)}eg.rK(w.add.lmfx,q,e,Z,S,b,i,J,j?j.dI:null)}T.p.VZ(i,e,Z,S,O,e,0,b,1,w.WL=="diss")};
f3.prototype.th=function(Z,S,b,Y){var P=this.children;for(var D=0;D<P.length;D++){var w=[];for(var f=D+1;
f<P.length;f++)if(P[f].$.gL)w.push(P[f]);else break;P[D].zZ(Z,S,b,Y,w);D+=w.length}};f3.mf={delete:function(Z){if(Z&&Z.c)Z.delete()},f:function(Z,S){return p.lc?new p.XA(Z,S):T.f(Z*S*4)},nk:function(Z,S,b){if(p.lc){if(Z==null||Z.c!=S||Z.v!=b){f3.mf.delete(Z);
return new p.XA(S,b)}}else{if(Z==null||!(Z instanceof Uint8Array)||Z.length!=S*b*4){f3.mf.delete(Z);
return T.f(S*b*4)}}return Z},JS:function(Z,S,b,Y,P){(p.lc?p.CF:T.uH)(Z,S,b,Y,P)},VZ:function(Z,S,b,Y,P,w,f,h,D,Q,e){(p.lc?p.p.eV:T.p.VZ)(Z,S,b,Y,P,w,f,h,D,Q,e)},xJ:function(Z,S,b,Y,P,w,f,h){if(p.lc)p.p.UH(Z,S,b,Y,P,w,f,h);
else T.p.xJ(Z,S,b,Y,P,w,f,h)},_U:function(Z,S,b){if(p.lc){p.Kd(Z);p.RO(S,b)}else T._U(Z,S,b)},aoc:function(Z,S,b,Y,P){if(p.lc){p.p.eV(null,null,Y,P,Z,S,b,P,1,!1)}else{if(b==255)T.FD(Z,S,Y,P);
else{var w=T.f(S.X());T.Q6(Y,P,w,S);T.Im(Z,w);T._U(Y,0,16777215);T._C(w,S,Y,P)}}},oA:function(Z,S,b,Y){if(p.lc)p.p.eV(null,null,b,Y,Z,S,0,Y,1,!1);
else T.oA(Z,S,b,Y)}};f3.prototype.pb=function(Z,S,b,Y,P,w){var f=typeof w=="number";if(!this.$.W$()&&(f&&this.index>w||!f&&w.indexOf(this.index)==-1)){return}var h=this.$,Q=eg.TB(h),e=f3.mf,l=h.q3()?h.Y6():h.d;
if(!h._7())return;if(h.VG()&&l.rect.h3()){return}if(h.add.vstk==null&&this.Ij(Y,!1).h3()&&h.add.artb==null){return}var O=this.Ij(Y,!0).Yz(b);
if(!S.Oh(b)&&!b.U5(O)&&h.add.artb==null)return;if(h.W$()&&h.add.artb){var m=h.mb();b=b.Yz(m);var V=h.nE();
if(V!=0){if(p.lc){p.Kd(Z,b);p.RO(V);p.RO(V)}else T.ajR(Z,S,b,V)}}var q=f3.dx(h,P,Q);if(!q){this.VO(Z,S,b,Y,P,w);
return}h.VW.Rf=e.nk(h.VW.Rf,O.c,O.v);e.JS(Z,S,h.VW.Rf,O,b);this.VO(h.VW.Rf,O,b,Y,P,w);e.VZ(h.VW.Rf,O,Z,S,null,null,0,b,h.opacity/255,h.WL=="diss",Q._S)};
f3.dx=function(Z,S,b){if(b._S[0]*b._S[1]*b._S[2]==0)return!0;return Z.opacity!=255&&(S.length!=0||Z.W$()||Z.z3())};
f3.aaI={VW:{}};f3.prototype.VO=function(Z,S,b,Y,P,w){var f=this.$,h=eg.TB(f),Q=g3.get(f.add)!=null,e=f3.mf,l=f3.dx(f,P,h),O=l?1:f.opacity/255,m=f.q3()?f.Y6():f.d,V=f.W$()&&f.WL=="pass"&&!(P.length>0||h.fill!=1||f.z3()),q=!f.W$()&&!Q&&!f.z3()&&P.length==0,K=Q&&!f.z3()&&P.length==0,j=null,J=null,A=null,c;
if(V||q||K){var z=Z,t=S;if(f.VG()){t=this.Ij(Y,!1);z=f.VW.dw=e.nk(f.VW.dw,t.c,t.v);e.JS(Z,S,f.VW.dw,t)}if(V)this.EO(z,t,b,Y,w);
if(q)e.xJ(f.WL,f.zW(Y),f.rect,z,t,b,O,h);if(K){var H=f.VG()&&m.CD()==0?m.Ij().clone():t.clone(),i=f.VW;
if(H.Oh(new b4(0,0,Y.c,Y.v)))i=f3.aaI;i.ML=this.i6(z,t,i.ML,H,f.add);h.gd=!0;e.xJ(f.WL,i.ML,H,z,t,b,O,h)}if(f.VG())e.VZ(z,t,Z,S,f.YO(),m.Ij(),m.CD(),b,1,f.WL=="diss");
f.VW.ib();return}var y=f.W$()&&f.WL=="pass"&&(P.length>0||h.fill!=1||f.z3()),H=f.rect;if(f.W$()){H=this.Ij(Y,!1);
A=f.VW.ML=e.nk(f.VW.ML,H.c,H.v);e._U(A,0);this.EO(A,H,H,Y,w);J=e.nk(f.VW.Cu,H.c,H.v);e.JS(A,H,J,H)}else if(Q){H=f.VG()&&m.CD()==0?m.Ij().clone():S.clone();
J=e.nk(f.VW.Cu,H.c,H.v);e._U(J,4294967295)}else{H=f.rect;j=f.zW(Y);J=e.nk(f.VW.Cu,H.c,H.v);e.JS(j,H,J,H)}f.VW.Cu=J;
if(f.VG())e.aoc(f.YO(),m.Ij(),m.CD(),J,H);if(f.z3())if(f.VW.h1||f.VW.Ft||f.VW.QP!=p.lc||f.VW.HJ||f.W$()){var a=T.f(H.c*H.v);
if(eg.Sd(f.add.lmfx)){if(p.lc){if(!f.W$()&&f.Y6()==null&&f.rect.Oh(H))T.to(f.buffer,a,3);else{var I=T.f(H.c*H.v*4);
J.get(I);T.to(I,a,3)}}else T.to(J,a,3)}if(f.VW.Ft||f.VW.QP!=p.lc||!T.Oh(a,f.VW.on)){var E=null;if(f.q3()&&f.add.vmsk&&f.add.vmsk.isEnabled&&f.add.vmsk.Y6().color==0)E=f.add.vmsk.Y6().rect;
eg.a8X(f.VW._u,a,H,f.add.lmfx,f.add.fxrp,Y,E);f.VW.on=a}}if(f.z3())eg.OZ(f.add.lmfx,f.VW._u,H,Z,S,b);
if(f.W$()){j=e.nk(f.VW.dw,H.c,H.v);e._U(j,0);if(f.WL=="pass")e.JS(Z,S,j,H);if(y)e.oA(A,H,j,H);this.EO(j,H,b,Y,w);
f.VW.dw=j}if(Q){j=f.VW.dw=this.i6(Z,S,f.VW.dw,H,f.add)}if(f.W$()||Q)c=j;else{c=e.nk(f.VW.dw,H.c,H.v);
e.JS(j,H,c,H,b);f.VW.dw=c}e._U(c,4278190080,16777215);for(var D=0;D<P.length;D++)P[D].pb(c,H,b,Y,[],w);
var u=f.VW.hr=e.nk(f.VW.hr,H.c,H.v);e.JS(Z,S,u,H,b);if(Q)h.gd=!0;e.xJ(f.WL=="pass"?"norm":f.WL,c,H,u,H,b,1,h);
if(f.z3()){var n=f.VW._u.type.FrFX,o=null;if(n.length!=0){o=n[0];for(var D=0;D<n.length;D++)if(n[D].dI.c>o.dI.c)o=n[D];
f.VW.Ad=e.nk(f.VW.Ad,o.dI.c,o.dI.v);e.JS(Z,S,f.VW.Ad,o.dI,b);f.VW.G$=e.nk(f.VW.G$,o.dI.c,o.dI.v)}eg.rK(f.add.lmfx,f.VW._u,H,Z,S,b,u,f.VW.Ad,f.VW.G$,o?o.dI:null)}if(!p.lc){var x=T.f(H.X());
T.to(J,x,3);J=x}e.VZ(u,H,Z,S,J,H,0,b,1,f.WL=="diss");f.VW.ib()};f3.prototype.i6=function(Z,S,b,Y,P){var w=g3.get(P),f;
if(w)f=g3.uC(w,P[w]);var h=f3.mf;b=h.nk(b,Y.c,Y.v);if(!(p.lc&&S.Oh(Y)))h.JS(Z,S,b,Y);if(f){if(p.lc){var Q=Y.clone();
Q.x=Q.y=0;if(S.Oh(Y)){p.Kd(b,Q);g3.H2(f,Z.t_,Q)}else{p.Kd(b,Y);b.k1(Y);g3.H2(f,b.J5,Q)}}else g3.l5(f,b,b,Y)}return b};
f3.prototype.EO=function(Z,S,b,Y,P){var w=this.children;for(var D=0;D<w.length;D++){var f=[];for(var h=D+1;
h<w.length;h++)if(w[h].$.gL)f.push(w[h]);else break;w[D].pb(Z,S,b,Y,f,P);D+=f.length}};function gf(Z){this.Dm="psd";
this.tr=!1;this.name=Z;this.W4=-1;this.JH=null;this.JZ=null;this.nP=null;this.kp=null;this.c=0;this.v=0;
this.t=[];this.wu={};this.add={};this.buffer=null;this.pd=4;this.Aw=null;this.GY=72;this.tU={};this.C=[];
this.vE=[[],[]];this.CY=[];this.m2=[];this.Bf=[gf.jq("Work Path")];this.ph=[];this.v6=null;this.TZ={classID:"CompList",list:{t:"VlLs",v:[]}};
this.root=null;this.Yv=null;this.c3=!1;this.ahT=!1;this.a9T=!1;this.IW=!1;this.Zu=!1;this.nd=!1;this.Pd=!1;
this.Vc=!1;this.AV=!1;this.ug=!1;this.h1=null;this.Bz=null;this.Ns={};this.N=null;this.eP=[];this.k9=[];
this.M={$U:{},k_:[],a1l:[],IK:[],ac:[],LG:null,NZ:null,yW:null,_m:null,Hn:[],ag:[]};this.history=[new iA([1,0],null)];
this.Hc=0;this.dB=0;this.a=new fQ(this)}gf.prototype.va=function(Z){var S=this;if(Z[0])S.add.lnk2=Z[0];
else delete S.add.lnk2;if(Z[1])S.add.FEid=Z[1];else delete S.add.FEid;if(Z[2])S.add.Patt=Z[2];else delete S.add.Patt};
gf.prototype.a1A=function(Z){var S=this,b=[],Y=[],P=[],V=null,q=null,K=null;for(var D=0;D<Z.length;D++){var w=Z[D];
if(w.add.SoLd){b.push(w.add.SoLd.Idnt.v);Y.push(w.add.SoLd.placed.v)}if(w.add.PtFl)P.push(w.add.PtFl.Ptrn.v.Idnt.v);
if(w.add.lmfx){for(var f=0;f<a4.Ol.length;f++){var h=w.add.lmfx[a4.Ol[f]].v;for(var Q=0;Q<h.length;Q++)if(h[Q].v.Ptrn)P.push(h[Q].v.Ptrn.v.Idnt.v)}}var e=w.add.vstk;
if(e&&e.strokeStyleContent.v.classID=="patternLayer"){P.push(e.strokeStyleContent.v.Ptrn.v.Idnt.v)}}var l=S.add.lnk2,O=S.add.FEid,m=S.add.Patt;
if(l){V=[];for(var D=0;D<l.length;D++)if(b.indexOf(l[D].sx)!=-1)V.push(l[D]);if(V.length==0)V=null}if(O){q=[];
for(var D=0;D<O.length;D++)if(Y.indexOf(O[D].id)!=-1)q.push(O[D]);if(q.length==0)q=null}if(m){K=[];for(var D=0;
D<m.length;D++)if(P.indexOf(m[D].id)!=-1)K.push(m[D]);if(K.length==0)K=null}return[V,q,K]};gf.prototype.oz=function(){var Z=this.eP,S=this.eP.length;
if(S!=0&&Z[S-1].name=="Quick Mask")return Z[S-1]};gf.prototype.l6=function(){return this.Dm==s.Qk("% |/!)")||this.Dm==s.r3("gP")};
gf.prototype.wX=function(Z){this.add.artd={classID:"null",Cnt:{t:"long",v:Z},autoExpandOffset:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:0},Vrtc:{t:"doub",v:0}}},origin:{t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:0},Vrtc:{t:"doub",v:0}}},canvasColorMode:{t:"enum",v:{canvasColorType:"Cstm"}},canvasColor:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:220},Grn:{t:"doub",v:220},Bl:{t:"doub",v:220}}},autoExpandEnabled:{t:"bool",v:!0},autoNestEnabled:{t:"bool",v:!0},autoPositionEnabled:{t:"bool",v:!0}}};
gf.prototype.HM=function(Z){if(this.add.FEid==null)this.add.FEid=[];if(this.add.FEid.indexOf(Z)==-1)this.add.FEid.push(Z)};
gf.prototype.Qm=function(Z){var S=this.add.FEid.indexOf(Z);this.add.FEid.splice(S,1);if(this.add.FEid.length==0)delete this.add.FEid};
gf.prototype.D=function(Z){if(Z==null)Z=new b4(0,0,this.c,this.v);if(this.h1==null)this.h1=Z;else this.h1=this.h1.VK(Z)};
gf.prototype.ahw=function(Z){return this.h1!=null};gf.prototype.rP=function(Z){var S=this.t[Z],b=this.root.zO(Z);
if(b==null)return!1;if(S.W$()||b.parent.children.indexOf(b)==0)return!1;return!0};gf.a2q=function(Z){if(Z.add.lnk2)for(var D=0;
D<Z.add.lnk2.length;D++){var S=Z.add.lnk2[D].sx;Z.add.lnk2[D].sx=gf.uc()+S.slice(8);for(var b=0;b<Z.t.length;
b++){var Y=Z.t[b].add.SoLd;if(Y&&Y.Idnt.v==S)Y.Idnt.v=Z.add.lnk2[D].sx}}};gf.prototype.Sq=function(Z,S,b){Z.sort(function(O,m){return O-m});
var top=Z[Z.length-1],Y=this.t.slice(0),P=this.C.slice(0),w=[],f=[];for(var D=0;D<this.t.length;D++){if(Z.indexOf(D)!=-1)f.push(this.t[D]);
else w.push(this.t[D])}this.vM(f);this.C=[];var h=this.root.Ij(this,!0);if(S)h=h.Yz(S);if(b)h=h.VK(b);
if(h.h3())h=new b4(0,0,100,100);var Q=new b4(-h.x,-h.y,this.c,this.v),e=new Uint8Array(ab.iZ("PSD").$b(this,0,0,[!0,!1]));
this.vM(Y);this.C=P;var l=new gf(this.t[top].getName());ab.iZ("PSD").Gk(e.buffer,l);delete l.add.artd;
l.vE=[[],[]];l.CY=[];l.vM(l.t);gf.a2q(l);G.PK.l_(l,h);l.D();l.j8();l.Zd();return[l,h,w,top]};gf.prototype.Qw=function(Z,S,b){var Y=this.Sq(Z),P=Y[0],w=Y[1],f=Y[2],top=Y[3],h;
if(b=="jpg")h=new Uint8Array(ab.iZ("JPG").$b([[P.Zd().buffer]],P.c,P.v,[80]));else h=new Uint8Array(ab.iZ("PSD").$b(P,null,null,[!0,!1]));
if(S)f=this.t.slice(0);var Q=this.CL(h,P.name,w.x,w.y);if(top==this.t.length-1)f.push(Q);else f.splice(S?top+1:top-Z.length+1,0,Q);
this.vM(f);this.C=[f.indexOf(Q)]};gf.uc=function(){var Z="";for(var D=0;D<8;D++)Z+=Math.floor(Math.random()*16).toString(16);
return Z};gf.prototype.ij=function(Z){if(Z==null)return;if(this.add.Patt==null)this.add.Patt=[];var S=this.add.Patt;
for(var D=0;D<S.length;D++)if(S[D].id==Z.id)return;S.push(Z)};gf.prototype.CL=function(Z,S,b,Y,P){if(this.add.lnk2==null)this.add.lnk2=[];
var w=null,O=!1;for(var D=0;D<this.add.lnk2.length;D++)if(T.Oh(Z,this.add.lnk2[D].raw)){w=this.add.lnk2[D].sx;
break}if(w==null){var f=ab.fN(Z.buffer);w=gf.uc()+"-d71c-11e5-b1ae-a548a96e5f9f";var h=new F.yq;h.sx=w;
h.Tw=f=="psd"?"8BIM":" ";h.JB=S+"."+f;h.uR=f=="psd"?"8BPB":" ";h.open=0;h.raw=Z;h.type="liFD";
h.du=2;this.add.lnk2.push(h)}var Q=this.BY(w),e=gf.uc()+"-d71c-11e5-b1ae-a548a96e5f9f",l=this.Dl();l.wc(S);
if(Q!=null){var m=l.rect=Q.Qf[1].clone();l.rect.offset(b,Y);var V=Math.max(m.c/this.c,m.v/this.v),O=P&&V>1.0001;
if(O){m.c=Math.round(m.c/V);m.v=Math.round(m.v/V);m.x=Math.round((this.c-m.c)/2);m.y=Math.round((this.v-m.v)/2)}else if(P&&ab.fN(Z.buffer)=="pdf"&&this.GY!=144){var V=144/this.GY;
m.c=Math.round(m.c/V);m.v=Math.round(m.v/V);O=!0}l.buffer=T.f(l.rect.X()*4);if(!O)T.Bv(Q.Qf[0],l.buffer)}l.add.SoLd={classID:"null",Idnt:{t:"TEXT",v:w},Impr:{t:"Objc",v:{__name:"None",classID:"none"}},placed:{t:"TEXT",v:e},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:T.$e.f(l.rect)},Sz:{t:"Objc",v:{classID:"Pnt",Wdth:{t:"doub",v:l.rect.c},Hght:{t:"doub",v:l.rect.v}}},Rslt:{t:"UntF",v:{type:"#Rsl",val:72}}};
var q=T.z.X6(l.rect).H;l.add.SoLd.Trnf=G.V.ab(q);l.add.SoLd.nonAffineTransform=G.V.ab(q);if(O)l.JN(this,!1);
return l};gf.prototype.Zd=function(Z){if(Z!=null){this.D();this.j8(Z);var S=this.buffer;if(p.lc)this.Yv.get(S);
else S=S.slice(0);this.D();this.j8();return S}if(this.h1){this.j8();this.h1=null}if(p.lc&&this.Bz){this.Yv.get(this.buffer);
this.Bz=null;this.Pd=!0}return this.buffer};gf.prototype.N5=function(){for(var D=0;D<this.t.length;D++)this.t[D].G5();
this.D()};gf.prototype.Sf=function(){for(var D=0;D<this.t.length;D++)if(this.t[D].add.lmfx)this.t[D].VW.Ft=!0};
gf.prototype.Tm=function(){var Z=this.wu.r1044;if(Z==null){Z=this.wu.r1044=new Uint8Array(4);var S=0;
for(var D=0;D<this.t.length;D++)S=Math.max(S,this.t[D].add.lyid);k.KI(Z,0,S)}var b=k.r(Z,0);k.KI(Z,0,b+1);
return b+1};gf.prototype.bY=function(Z,S,b){if(Z==null)Z=!0;var Y=this;if(Y.k9.length!=0)return!0;if(Y.C.length!=1){if(Z)alert(Y.C.length==0?"Select a layer first.":"More than one layer selected.");
return!1}return this.Xy(Z,S,b)};gf.prototype.Xy=function(Z,S,b){if(Z==null)Z=!0;if(S==null)S=!1;var Y=this;
if(Y.k9.length!=0)return!0;for(var D=0;D<Y.C.length;D++){var P=Y.t[Y.C[D]],w=S||P.PC<=0;if(P.add.lsct!=null&&P.add.lsct!=fr.Dr&&P.PC!=1){if(Z)alert(aV.get([15,7,2]));
return!1}if(w&&!P.bu()){if(Z)alert(aV.get([15,7,2]));return!1}if(w&&P.add.TySh){return this.Sr(Z,[15,7,3],b)}if(w&&P.add.SoLd){return this.Sr(Z,[15,7,4],b)}if(P.vv(1)||P.vv(31)){if(Z)alert(aV.get([6,57,0]));
return!1}}return!0};gf.prototype.Sr=function(Z,S,b){if(Z&&typeof Z=="object"){var Y=window.confirm(aV.get(S)+". "+aV.get([6,8])+"?");
if(Y){var P=new d(s.E.TH,!0);P.data={uf:"rasterizeLayer",V1:{classID:"rasterizeLayer",null:a3.h$("Lyr",!0)}};
Z.m(P)}return b?Y:!1}if(Z)alert(aV.get(S));return!1};gf.prototype.ub=function(Z){var S=this.root.zO(Z);
if(S.parent)return S.$._7()&&this.ub(S.parent.index);else return S.$._7()};gf.prototype.Nu=function(Z){var S=this.root.zO(Z);
if(S==null)return null;var b=S.$;if(b.add.artb)return b.mb();if(S.parent)return this.Nu(S.parent.index);
return null};gf.prototype.mC=function(){var Z=this.t[this.C[0]];if(Z.PC<=0&&!Z.rect.U5(this.N.rect)){alert("Selected area is empty.");
return!1}if(this.C.length==1&&this.N){var S=T.f(this.N.channel.length);T.Q6(Z.buffer,Z.rect,S,this.N.rect);
T.Im(this.N.channel,S);if(T.BI(S,0)){alert("Selected area is empty.");return!1}}return!0};gf.prototype.HO=function(){if(this.wu["r"+1037]==null)this.x2(30);
return k.Dk(this.wu["r"+1037],0)};gf.prototype.x2=function(Z){if(this.wu["r"+1037]==null)this.wu["r"+1037]=new Uint8Array(4);
if(k.Dk(this.wu["r"+1037],0)==Z)return;k.kQ(this.wu["r"+1037],0,Z);this.Sf()};gf.prototype.wm=function(){if(this.wu["r"+1049]==null)this.j7(30);
return k.Dk(this.wu["r"+1049],0)};gf.prototype.j7=function(Z){if(this.wu["r"+1049]==null)this.wu["r"+1049]=new Uint8Array(4);
if(k.Dk(this.wu["r"+1049],0)==Z)return;k.kQ(this.wu["r"+1049],0,Z);this.Sf()};gf.prototype.IG=function(Z){if(this.add.lnk2==null)return null;
for(var D=0;D<this.add.lnk2.length;D++)if(this.add.lnk2[D].sx==Z)return this.add.lnk2[D];return null};
gf.prototype.al5=function(Z){var S=this.IG(Z);if(S==null)return!1;var b=ab.fN(S.raw.buffer);if(b==null)return!1;
if(ab.iZ(b)!=null||b=="psd")return!0;return!1};gf.prototype.BY=function(Z,S,b,Y){var P=this.IG(Z);if(P==null)return null;
P.Zd(S,b,Y);if(P.Qf)return P};gf.prototype.pc=function(){var Z=this.c,S=this.v;if(p.lc&&this.Yv==null)this.Yv=new p.XA(Z,S,!0);
if(this.buffer==null||this.buffer.length!=Z*S*4||p.lc&&(this.Yv.c!=Z||this.Yv.v!=S)){this.buffer=T.f(Z*S*4);
if(this.Yv)this.Yv.delete();if(p.lc)this.Yv=new p.XA(Z,S,!0)}};gf.prototype.a1k=function(){this.pc();
if(p.lc){this.Yv.set(this.buffer)}};gf.prototype.j8=function(Z){var S=this.c,b=this.v,Y=new b4(0,0,S,b),P=Y.Yz(this.h1);
this.pc();if(P.h3())return;if(!P.Oh(Y)){if(!p.lc){var w=T.Nv(P.X()*4);T.uH(w,P,this.buffer,Y)}if(p.lc){p.Kd(this.Yv,P);
p.RO(0)}}else{if(p.lc){this.Yv.set(null)}else{this.buffer.fill(0)}}var f=Date.now(),h=p.lc?this.Yv:this.buffer;
if(Z==null)Z=1e9;this.root.pb(h,Y,P,this,[],Z);this.Bz=this.h1.clone()};gf.prototype.Dl=function(Z){var S=new F;
S.rect=new b4(0,0,0,0);S.buffer=T.f(1);S.add.luni=new ar(0,0);if(Z!=!0)S.add.lyid=this.Tm();S.add.lsct=fr.Dr;
S.add.lclr=0;S.add.fxrp=new ar(0,0);return S};gf.prototype._z=function(Z){var S=this.Dl(Z);S.wc("</Layer group>");
S.add.lsct=fr.Ee;S.NG=24;return S};gf.prototype.Ev=function(){return this.Hc!=this.dB};gf.prototype.kz=function(Z){while(this.history.length>this.Hc+1)this.history.pop();
if(this.dB>this.Hc)this.dB=-1;if(Z.T.id!=G.ZS){this.IW=!0;if(this.TZ.lastAppliedComp){delete this.TZ.lastAppliedComp;
this.Pd=!0}}this.history.push(Z);this.Hc++;this.Pd=!0;var S=fv.FE()?60:30,b=0;for(var D=this.history.length-1;
D>=0;D--){var Y=this.history[D];if(Y.z6)continue;b++;if(b==S){this.Hc-=D;this.history=this.history.slice(D);
break}}};gf.prototype.Yl=function(){if(this.Hc!=this.history.length-1)return null;return this.history[this.history.length-1]};
gf.prototype.IM=function(Z,S,b,Y){if(Z==null)Z=!1;var P=S!=null?[S]:this.C.slice(0);if(Y){var w=[];for(var D=0;
D<P.length;D++){var f=this.t[P[D]].QG;if(f!=0&&w.indexOf(f)==-1)w.push(f)}for(var D=0;D<this.t.length;
D++){var f=this.t[D].QG;if(f!=0&&w.indexOf(f)!=-1&&P.indexOf(D)==-1)P.push(D)}}var h=[];for(var D=0;
D<P.length;D++){var Q=this.op(P[D],Z);for(var e=0;e<Q.length;e++)if(h.indexOf(Q[e])==-1)h.push(Q[e]);
if(b){var C=this.root.zO(P[D]);while(C.parent!=null&&C.parent.parent!=null){C=C.parent;if(h.indexOf(C.index)==-1){h.push(C.index,C.Y5)}}}}return h};
gf.prototype.Ac=function(Z,S,b){var Y=this,P=Y.IM(!1,Z,null,b);P.sort(function(H,i){return H-i});var w={};
for(var f=0;f<Y.t.length;f++){var h=Y.t[f].getName();w[h]=!0}var Q=[];for(var D=0;D<P.length;D++){var e=Y.t[P[D]].clone(),K,z;
e.add.lyid=Y.Tm();e.add.lspf=0;if(e.pL()){var l=e.fY(Y),O=gf.la(l);Y.HM(O);e.add.SoLd.placed.v=O.id}e.vK(Y);
var m=e.getName(),V=m.length;while(48<=m.charCodeAt(V-1)&&m.charCodeAt(V-1)<=57)V--;var q=parseInt(m.slice(V));
if(isNaN(q)){if(m.endsWith(" copy")){q=1;K=m.slice(0,m.length-5)}else{q=0;K=m}}else if(m.slice(0,V).endsWith(" copy ")){q=q;
K=m.slice(0,V-6)}else{q=0;K=m}q++;while(!0){z=K+" copy"+(q==1?"":" "+q);if(w[z]==null)break;q++}var t=P.indexOf(this.root.zO(P[D]).parent.index)!=-1;
if(S!=!0&&!t)e.wc(z);w[z]=!0;Q.push(e)}return Q};gf.la=function(Z){return{id:gf.uc()+Z.id.slice(8),buffer:Z.buffer.slice(0),rect:Z.rect.clone(),d:Z.d?Z.d.clone():null}};
gf.vf=function(Z){return{id:Z,rect:new b4,buffer:T.f(1),d:new F.bN}};gf.jq=function(Z,S){if(S==null)S={vmsk:new F.NS};
if(S.vogk==null){S.vogk=[];var b=T.Y.eu(S.vmsk.b);for(var Y=0;Y<b;Y++)S.vogk.push(T.AZ.Nv())}return{name:Z,SU:0,add:S}};
gf.prototype.zl=function(Z){var S=[],b=[],Y=this,w=0;for(var D=1;D<Y.Bf.length;D++){var P=Y.Bf[D];P.SU=-1-D;
S.push(P);if(Y.ph.indexOf(D)!=-1)b.push(S.length-1)}if(Y.Bf[0].add.vmsk.b.length>2){var P=Y.Bf[0];P.SU=-1;
S.push(P);if(Y.ph.indexOf(0)!=-1)b.push(S.length-1)}var f=Y.v6==null;if(f)Y.v6=[];for(var D=Y.C.length-1;
D>=0;D--){var h=Y.t[Y.C[D]],Q=h.add.TySh;if(h.add.vmsk!=null&&(h.PL||h.q3())){var P=gf.jq("\""+h.getName()+"\" Shape Path",h.add);
P.SU=Y.C[D];S.push(P);if(f)Y.v6.push(w);if(Y.v6.indexOf(w)!=-1)b.push(S.length-1);w++}if(Z!=!0&&Q&&Q.add&&T.$e.iI(Q.Km)){var P=gf.jq("\""+h.getName().slice(0,10)+"..\" Text Path",Q.add);
P.SU=1e6+Y.C[D];S.push(P);b.push(S.length-1);w++}}if(b.length==0&&Z){Y.Bf[0].SU=-1;Y.ph=[0];b.push(S.length);
S.push(Y.Bf[0])}return[S,b]};gf.prototype.op=function(D,Z){var S=[],C=this.root.zO(D);if(C)C.jE(S,Z);
return S};gf.prototype.mG=function(){this.root.Oy(this,new b4(0,0,this.c,this.v),32)};gf.prototype.vM=function(Z){for(var D=0;
D<this.t.length;D++){var S=this.t[D];if(Z.indexOf(S)==-1){S.VW.a9l();S.D()}}this.t=Z.slice(0);this.Wl()};
gf.prototype.Wl=function(){var Z=this.t,S=Z.length;this.root=new f3;var b=this.Dl(!0);b.WL="pass";b.add.lsct=fr.k8;
var Y=this._z(!0),P=[Y];for(var D=0;D<S;D++)P.push(Z[D]);P.push(b);this.root.Ly(P,0,0);if(this.C.length==0)this.C=[S-1]};
gf.prototype.NW=function(){if(this.C.length!=1)return;var Z=this.root.zO(this.C[0]);while(Z.parent!=null){var S=Z.parent.$;
S.add.lsct=fr.k8;Z=Z.parent}this.nd=this.aa0=!0};gf.prototype.aa4=function(){this.Wl();var Z=[this.root],bj=0;
while(Z.length!=0){var top=Z.pop();bj++;if(top.$.add.lsct==fr.k8)for(var D=0;D<top.children.length;D++)Z.push(top.children[D])}if(bj>1e3){var S=this.root.children;
for(var D=0;D<S.length;D++)if(S[D].$.add.lsct==fr.k8)S[D].$.add.lsct=fr.U1}};gf.M2=function(Z,S,b,Y,P){var w={__name:"Make",classID:"Mk",Nw:{t:"Objc",v:{classID:"Dcmn",Nm:{t:"TEXT",v:Y},Md:{t:"type",v:{classID:"RGBM"}},Wdth:{t:"UntF",v:{type:"#Rlt",val:Z}},Hght:{t:"UntF",v:{type:"#Rlt",val:S}},Rslt:{t:"UntF",v:{type:"#Rsl",val:b}},pixelScaleFactor:{t:"doub",v:1},Fl:{t:"enum",v:{Fl:P}},Dpth:{t:"long",v:8},profile:{t:"TEXT",v:"sRGB IEC61966-2.1"}}}};
return{uf:"make",V1:w}};gf.ai7=function(Z,S){var b=0,Y=0,P=72,w=S.ahV,f=Z.preset&&Z.preset.v=="Clipboard";
if(f){b=w.c;Y=w.v}else{b=Z.Wdth.v.val;Y=Z.Hght.v.val;P=Z.Rslt.v.val}var h=new gf((Z.Nm?Z.Nm.v:aV.get([11,7]))+".psd");
h.c=b;h.v=Y;h.GY=P;var Q=h.Dl();Q.wc("Background");h.vM([Q]);Q.add.lspf=1<<2;var e=Z.Fl?Z.Fl.v.Fl:"Wht";
if(e!="Trns"){var l=S.VY;l=(l&255)<<16|(l>>>8&255)<<8|l>>>16;Q.rect=new b4(0,0,b,Y);Q.buffer=T.f(b*Y*4);
T._U(Q.buffer,{Wht:4294967295,BckC:255<<24|l}[e])}h.buffer=T.f(b*Y*4);return h};function fQ(Z){this.hp=Z;
this.S=0;this.v1=1;this.n=new ar(0,0);this.rY=new ar(0,0);this.W0=0;this.o=[1,1,1];this.a_=new b4(0,0,1,1);
this.an6=new b4(0,0,Z.c,Z.v);this.dl=null;this.og=null;this.Am=new Uint32Array(0);this.HQ=null;this.oL=null;
this.ZN=T.f(0);this.xW=null;this.HU=null}fQ.prototype.Gz=function(Z){var S=new fR,b=this.a_,Y=this.hp,P=Z?this.v1:this.S,w=Z?this.rY:this.n,f=Math.round((b.c-Y.c*P)/2+w.x),h=Math.round((b.v-Y.v*P)/2+w.y);
S.translate(-f,-h);S.scale(1/P,1/P);var Q=Y.c/2,e=Y.v/2;S.translate(-Q,-e);S.rotate(this.W0);S.translate(Q,e);
return S};fQ.prototype.BL=function(Z){var S=this.a_,b=this.hp,Y=Math.atan2(-Z.O,Z.w),P=b.c/2,w=b.v/2;
Z.translate(-P,-w);Z.rotate(-Y);Z.translate(P,w);var f=1/Z.I2();Z.scale(f,f);var h=-Z.RN,Q=-Z.Sv,e=Math.round(h-(S.c-b.c*f)/2),l=Math.round(Q-(S.v-b.v*f)/2);
if(Math.abs(f-Math.round(f))<1e-6)f=Math.round(f);this.W0=Y;this.S=f;this.n=new ar(e,l)};fQ.prototype._2=function(Z,S){var b=this.Gz();
return b.YI(new ar(Z,S))};fQ.prototype.pg=function(Z,S){var b=this.Gz();b.oN();return b.YI(new ar(Z,S))};
function a4(){}a4.order="ebbl FrFX IrSh IrGl ChFX SoFi GrFl patternFill OrGl DrSh".split(" ");a4.Ol="ebblMulti frameFXMulti innerShadowMulti IrGlMulti ChFXMulti solidFillMulti gradientFillMulti patternFillMulti OrGlMulti dropShadowMulti".split(" ");
a4.names=[[14,4],[14,9],[14,1],[14,3],[14,8],[14,5],[14,6],[14,7],[14,2],[14,0]];a4.C1=["DrSh","IrSh","SoFi","GrFl","FrFX"];
a4.pe=["Clr"];a4.xz="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");a4.jl=["Ptrn","Scl","Algn","phase"];
a4.c5={Ge:"{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}}}",Fx:"{\"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\"}}}",Wh:"{\"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}}}]}}}",ez:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"v\":\"orangeslices\",\"t\":\"TEXT\"},\"Idnt\":{\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\",\"t\":\"TEXT\"}}}"};
a4.c5.Ge="\"Clr\": "+a4.c5.Ge;a4.c5.W="\"Grad\":"+a4.c5.Fx+",\"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\"}";
a4.c5.ez="\"Ptrn\":"+a4.c5.ez+",\"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\"}";
a4.default="{ \"classID\": \"null\", \"Scl\": {\"t\": \"UntF\", \"v\": { \"type\": \"#Prc\",\"val\": 100} }, \"masterFXSwitch\": {\"t\": \"bool\",\"v\": true} }";
a4.FT=["{\"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\"},"+a4.c5.Ge+","+a4.c5.W+","+a4.c5.ez+"}","{\"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\"},"+a4.c5.Ge+"}","{\"classID\":\"GrFl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+a4.c5.W+"}","{\"classID\":\"patternFill\",\"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+a4.c5.ez+"}","{\"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\"}}"];
a4.W={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]]};
a4.stroke={types:["InsF","CtrF","OutF"],names:[[19,5,2],[19,5,1],[19,5,0]],qc:["SClr","GrFl","Ptrn"],a9u:[[13,0],[12,37],[12,62]]};
a4.Sp={types:["SfBL","PrBL"],names:[[19,1,0],[19,1,1]],Z_:["SrcC","SrcE"],a5O:[[19,5,1],[12,69]]};a4.zB={types:["OtrB","InrB","Embs","PlEb","strokeEmboss"],style:[[19,2,0],[19,2,1],[19,2,2],[19,2,3],[19,2,4]],Yj:["SfBL","PrBL","Slmt"],aaN:[[19,3,0],[19,3,1],[19,3,2]],dir:[[19,4,0],[19,4,1]]};
a4.m3={oV:["strokeStyleButtCap","strokeStyleRoundCap","strokeStyleSquareCap"],ie:["strokeStyleAlignInside","strokeStyleAlignCenter","strokeStyleAlignOutside"],join:["strokeStyleMiterJoin","strokeStyleRoundJoin","strokeStyleBevelJoin"],Vh:["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\","+a4.c5.Ge+"}")},strokeStyleResolution:{t:"doub",v:72}}};
a4.BH=[{classID:"null",Clr:JSON.parse(a4.FT[5]).Clr},{classID:"null",Grad:JSON.parse(a4.FT[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(a4.FT[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 eg={};eg.un=function(Z,S){function b(Z,m){if(Z==null)return null;var V=Z[m].v,q;if(V.length!=0){q=V[0].v;
if(!q.enab.v)q=null}return q}var Y=S.SoCo,P=S.GdFl,w=b(Z,"solidFillMulti"),f=b(Z,"gradientFillMulti");
if(w==null&&f==null)return[Y,P];var h=eg.a0g;if(Y&&w&&f==null){var Q=JSON.parse(JSON.stringify(Y));Q.Clr.v=h(w.Clr.v,Y.Clr.v,w);
return[Q,null]}if(P&&w&&f==null){var e=JSON.parse(JSON.stringify(P)),l=e.Grad.v.Clrs.v;for(var D=0;D<l.length;
D++){var O=l[D].v.Clr;O.v=h(w.Clr.v,O.v,w)}return[null,e]}if(Y&&f){var e=JSON.parse(JSON.stringify(f)),l=e.Grad.v.Clrs.v;
for(var D=0;D<l.length;D++){var O=l[D].v.Clr;O.v=h(O.v,Y.Clr.v,f)}return[null,e]}return[w,f]};eg.ac0={vP:T.f(4),z7:T.f(4),h:new b4(0,0,1,1)};
eg.a0g=function(Z,S,b){var Y=is.Tk(b.Md.v.BlnM),P=b.Opct.v.val/100,w=eg.ac0;Z=T.W.CD(Z);S=T.W.CD(S);
w.vP[0]=Z.h;w.vP[1]=Z.l;w.vP[2]=Z.O;w.vP[3]=255;w.z7[0]=S.h;w.z7[1]=S.l;w.z7[2]=S.O;w.z7[3]=255;T.p.xJ(Y,w.vP,w.h,w.z7,w.h,w.h,P);
return{classID:"RGBC",Rd:{t:"doub",v:w.z7[0]},Grn:{t:"doub",v:w.z7[1]},Bl:{t:"doub",v:w.z7[2]}}};eg.Yt=function(Z,S,b){var Y=Z;
Z=Z.slice(0);var P=is.KP[is.JO.indexOf(S.Md.v.BlnM)],w=T.W.CD(S.Clr.v),f=4278190080|Math.round(w.O)<<16|Math.round(w.l)<<8|Math.round(w.h),h=T.f(b.X()*4);
T._U(h,f);T.p.xJ(P,h,b,Z,b,b,S.Opct.v.val/100);for(var D=0;D<Z.length;D+=4)Z[D+3]=Y[D+3];return Z};eg.sq=function(Z,S){var b=["Sz","blur","Sftn","Dstn"];
for(var D=0;D<a4.order.length;D++){var Y=a4.order[D],P=Z[a4.Ol[D]].v;for(var w=0;w<P.length;w++){var f=P[w].v;
for(var h=0;h<b.length;h++){var Q=f[b[h]];if(Q){var e=Q.v.val,l=e;l=Math.max(e==0?0:1,l*S);if(Y=="ChFX")l=Math.min(l,250);
if(Y=="ebbl"){if(b[h]=="blur")l=Math.min(l,250);if(b[h]=="Sftn")l=Math.min(l,16)}Q.v.val=Math.round(l)}}if(Y=="ebbl"||Y=="patternFill"||Y=="FrFX")if(f.Ptrn&&f.Scl)f.Scl.v.val=Math.max(1,Math.min(1e3,f.Scl.v.val*S))}}};
eg.amH=function(Z,S,b){var Y=new b4(-.5,-.5,1,1),P=Z.add.lmfx;for(var D=0;D<a4.order.length;D++){var w=a4.order[D],f=P[a4.Ol[D]].v;
for(var h=0;h<f.length;h++){var Q=f[h].v,m;if(!Q.enab.v)continue;var e=Q.blur?Q.blur.v.val+1:0,l=Q.Ckmt?Q.Ckmt.v.val/100:0,O=Math.round(e*l);
if(w=="DrSh"||w=="IrSh"&&b){m=new b4(-.5,-.5,1,1);m.lg(e,e);eg.lE(m,Q,S,0)}if(w=="OrGl"||w=="IrGl"&&b){m=new b4(-.5,-.5,1,1);
m.lg(e,e)}if(w=="FrFX"){var V=eg.jk(Q),q=V[1];if(b)q=Math.max(V[0],q);m=new b4(-.5,-.5,1,1);m.lg(Math.ceil(q),Math.ceil(q))}if(w=="ebbl"){var e=Q.blur.v.val,K=Q.bvlS.v.BESl;
if(K=="Embs"||K=="PlEb")e/=2;var z=["OtrB","InrB","Embs","PlEb","strokeEmboss"],t=["SfBL","PrBL","Slmt"],H=["In","Out"],i=Q.bvlT.v.bvlT!="SfBL"?e:e*.43,y=Math.round(e);
m=new b4(-y-1,-y-1,2*y+2,2*y+2)}if(b&&w=="ChFX"){m=new b4(-.5,-.5,1,1);m.lg(e,e);var j=m.clone();eg.lE(m,Q,S,0);
eg.lE(j,Q,S,Math.PI);m=m.VK(j)}if(m)Y=Y.VK(m)}}if(Y.x!=Math.ceil(Y.x)){Y.x=Math.ceil(Y.x);Y.c-=1}if(Y.y!=Math.ceil(Y.y)){Y.y=Math.ceil(Y.y);
Y.v-=1}Y.c=Math.floor(Y.c);Y.v=Math.floor(Y.v);return Y};eg.jk=function(Z){var S=0,b=0,Y=Z.Styl.v.FStl,P=Z.Sz.v.val;
if(Y=="OutF")b=P;if(Y=="InsF")S=P;if(Y=="CtrF")S=b=P/2;return[S,b]};eg.QR=function(Z){if(Z.all==null)return;
for(var D=0;D<Z.all.length;D++){var S=Z.all[D];if(S.Ei)S.Ei.delete();if(S.E3)S.E3.delete();if(S.KO)S.KO.delete()}};
eg.a8X=function(Z,S,b,Y,P,w,f){eg.QR(Z);var h=eg.HP(Y,P,S,b,w,f);Z.type=h.type,Z.all=h.all;if(p.lc)for(var D=0;
D<Z.all.length;D++){var Q=Z.all[D];Q.Ei=new p.XA(Q.Wx.c,Q.Wx.v);Q.Ei.set(Q.j$);delete Q.j$;if(Q.Xp){Q.E3=new p.vt(Q.Wx.c,Q.Wx.v);
Q.E3.set(Q.Xp);delete Q.Xp}if(Q.Zy){Q.KO=new p.vt(Q.Wx.c,Q.Wx.v);Q.KO.set(Q.Zy);delete Q.Zy}}};eg.Sd=function(Z){for(var D=0;
D<a4.order.length;D++){var S=a4.order[D],b=a4.Ol[D],Y=Z[b].v;for(var P=0;P<Y.length;P++){var w=Y[P].v;
if(w.enab.v&&["patternFill","GrFl","SoFi"].indexOf(S)==-1)return!0}}return!1};eg.HP=function(Z,S,b,Y,P,w){if(w==null)w=Y;
var f=0,h=0;for(var D=0;D<a4.order.length;D++){var Q=a4.order[D],e=a4.Ol[D],l=Z[e].v;for(var O=0;O<l.length;
O++){var m=l[O].v;if(Q=="DrSh"&&m.enab.v&&m.Ckmt.v.val>0&&m.blur.v.val>0)f=Math.max(f,Math.ceil(m.Ckmt.v.val*m.blur.v.val/100));
if(Q=="OrGl"&&m.enab.v&&m.Ckmt.v.val>0&&m.blur.v.val>0&&m.GlwT.v.BETE=="SfBL")f=Math.max(f,Math.ceil(m.Ckmt.v.val*m.blur.v.val/100));
if(Q=="OrGl"&&m.enab.v&&m.blur.v.val>0&&m.GlwT.v.BETE=="PrBL")f=Math.max(f,m.blur.v.val);if(Q=="FrFX"&&m.enab.v&&m.Sz.v.val>0){if(m.Styl.v.FStl=="OutF")f=Math.max(f,m.Sz.v.val);
if(m.Styl.v.FStl=="CtrF")f=Math.max(f,Math.ceil(m.Sz.v.val/2));h=Math.max(h,eg.jk(m)[1])}}}var V=new eg.p$(b,Y,f,eg.Sd(Z)),q=-Y.x,K=-Y.y,z={type:{},all:[]};
for(var t=0;t<a4.order.length;t++){var Q=a4.order[t],e=a4.Ol[t];z.type[Q]=[];for(var H=Z[e].v.length-1;
H>=0;H--){var i=Z[e].v[H].v;if(!i.enab.v)continue;var y=i.blur?i.blur.v.val:0,j=i.Ckmt?i.Ckmt.v.val/100:0,J=y*j;
if(Q=="DrSh"){var A=V.OJ(J,y-J,!0),a=A.sK,I=A._;I.offset(q,K);eg.ov(a,i,!1);eg.lE(I,i,P,0);var E=T.f(I.X()*4);
eg.gj(E,i.Clr.v);T.y8(a,E,3);var c={j$:E,Wx:I,yf:is.Tk(i.Md.v.BlnM),e5:i.Opct.v.val/100,adu:i.layerConceals.v};
z.type[Q].push(c);z.all.push(c)}if(Q=="IrSh"){var A=V.OJ(J,y-J,!1);eg.lE(A._,i,P,0);var I=V.rect().clone(),a=T.f(I.X());
a.fill(255);T.JS(A.sK,A._,a,I);eg.ov(a,i,!0);var E=T.f(I.X()*4);eg.gj(E,i.Clr.v);T.y8(a,E,3);I.offset(q,K);
var c={j$:E,Wx:I,yf:is.Tk(i.Md.v.BlnM),e5:i.Opct.v.val/100};z.type[Q].push(c);z.all.push(c)}if(Q=="GrFl"){var E=T.f(V.rect().X()*4);
eg.JD(i,E,V.rect(),P,null,w);var I=V.rect().clone();I.offset(q,K);var c={j$:E,Wx:I,yf:is.Tk(i.Md.v.BlnM),e5:i.Opct.v.val/100};
z.type[Q].push(c);z.all.push(c)}if(Q=="SoFi"){var E=T.f(V.sK().length*4);eg.gj(E,i.Clr.v);var I=V.rect().clone();
I.offset(q,K);var c={j$:E,Wx:I,yf:is.Tk(i.Md.v.BlnM),e5:i.Opct.v.val/100};z.type[Q].push(c);z.all.push(c)}if(Q=="ebbl"){var u=!1;
if(u)console.log(i);var n=Date.now(),o=i.bvlS.v.BESl;if(o=="strokeEmboss"){var x=Z.frameFXMulti.v;if(x.length==0)continue;
x=x[0].v;if(!x.enab.v)continue;var g=x.Styl.v.FStl;if(g=="OutF")o="OtrB";if(g=="CtrF")o="Embs";if(g=="InsF")o="InrB"}var y=i.blur.v.val;
if(y==0)y=.7;if(o=="Embs"||o=="PlEb")y/=2;var v=["OtrB","InrB","Embs","PlEb","strokeEmboss"],R=["SfBL","PrBL","Slmt"],X=["In","Out"],B=i.bvlT.v.bvlT!="SfBL"?y:y*.45,M=Math.round(y),r=V.rect().clone(),N=r.clone();
N.lg(M,M);var $=N.c,eQ=N.v,hN=$*eQ,fq=T.f(hN);T.JS(V.sK(),r,fq,N);var e9=new Float64Array(hN),W=new Float64Array(hN);
T.style.ED(fq,e9,$,eQ);T.oN(fq);T.style.ED(fq,W,$,eQ);if(u)console.log("distTransform computed",Date.now()-n);
for(var D=0;D<hN;D++)W[D]=W[D]-e9[D];for(var D=0;D<hN;D++){var L=W[D];if(L<-B)W[D]=-B;else if(L>B)W[D]=B}if(u)console.log("summing + cropping",Date.now()-n);
if(i.bvlT.v.bvlT=="SfBL"){var bd=Math.pow(y*.21,1.22);if(!0)bd=Math.max(bd,2);var iw=T.rr.hj(bd,2);T.rr._3(W,e9,N,iw[0]>>>1);
T.rr._3(e9,W,N,iw[1]>>>1)}if(u)console.log("blurring",Date.now()-n);var d7=W,d0=d7.slice(0);if(i.useShape.v){var gS=Math.min(100,i.Inpr.v.val+1)/100;
if(o!="OtrB"&&o!="InrB")gS=1;var cf=T.$F.Dw(i.MpgS.v.Crv.v,2e3),cT=Math.round(2e3/gS);cf=T.$F.a1U(cf,cT,o=="InrB");
var fU=.5/B;for(var D=0;D<hN;D++){var dX=d7[D],g$=.99999*(dX+B)*fU;d7[D]=-B+2*B*cf[~~(g$*(cT-1))]}if(u)console.log("applying shape",Date.now()-n)}if(i.useTexture.v){var bX=T.f($*eQ*4);
eg.ZO(i,bX,N,P,S);var aw=T.f($*eQ);T.Mq(bX,aw);var hP=T.f($*eQ);T.rr.LA(aw,hP,N,1);aw=hP;var eG=y*i.textureDepth.v.val*(1/100)*(1/255);
if(i.InvT.v)eG=-eG;for(var D=0;D<hN;D++)d7[D]+=-eG*aw[D];if(u)console.log("applying texture",Date.now()-n)}var eB=(i.bvlT.v.bvlT=="SfBL"?1:.5)*(i.bvlD.v.BESs=="In"?1:-1)*i.srgR.v.val/100;
for(var D=0;D<hN;D++)d7[D]*=eB;if(u)console.log("scaling",Date.now()-n);var bb=i.uglg&&i.uglg.v?P.HO():i.lagl.v.val;
bb=bb*(Math.PI/180);var gx=i.uglg&&i.uglg.v?P.wm():i.Lald.v.val;gx=gx*(Math.PI/180);var er=Math.cos(bb)*Math.cos(gx),ea=-Math.sin(bb)*Math.cos(gx),hD=Math.sin(gx),bP=new Float64Array(hN),iz=new Float64Array(hN),iq=o=="PlEb";
for(var cU=0;cU<eQ;cU++)for(var aH=0;aH<$;aH++){var D=cU*$+aH,eK=0,h6=0,co=1;if(cU!=0&&cU!=eQ-1&&aH!=0&&aH!=$-1){var dh=d7[D-$-1],cX=d7[D-$+1],eY=d7[D+$-1],ga=d7[D+$+1];
eK=-.125*(cX+2*d7[D+1]+ga-(dh+2*d7[D-1]+eY));h6=-.125*(eY+2*d7[D+$]+ga-(dh+2*d7[D-$]+cX))}else{var h0=d7[D];
h6=-(cU==0?d7[D+$]-h0:cU==eQ-1?h0-d7[D-$]:.5*(d7[D+$]-d7[D-$]));eK=-(aH==0?d7[D+1]-h0:aH==$-1?h0-d7[D-1]:.5*(d7[D+1]-d7[D-1]))}var a8=1/Math.sqrt(eK*eK+h6*h6+1);
eK*=a8;h6*=a8;co*=a8;var cc=eK*er+h6*ea+co*hD,hW=cc;if(iq)hW=-eK*er-h6*ea+co*hD;if(cc>0)bP[D]=cc;if(hW>0)iz[D]=hW}if(u)console.log("raycasting",Date.now()-n);
if(i.Sftn.v.val!=0){T.rr.wr(bP,e9,N,i.Sftn.v.val*.43);var em=e9,e9=bP,bP=em;if(iq){T.rr.wr(iz,e9,N,i.Sftn.v.val*.43);
var em=e9,e9=iz,iz=em}else T.Bv(bP,iz)}if(u)console.log("softening",Date.now()-n);var cf=T.$F.Dw(i.TrnS.v.Crv.v,1024);
for(var D=0;D<hN;D++){bP[D]=cf[~~(bP[D]*1024)];iz[D]=cf[~~(iz[D]*1024)]}if(u)console.log("contour remap",Date.now()-n);
$=Math.round($);eQ=Math.round(eQ);var br=T.f($*eQ*4);eg.gj(br,i.hglC.v);var cF=T.f($*eQ*4);eg.gj(cF,i.sdwC.v);
var cW=T.f($*eQ*4);eg.gj(cW,i.hglC.v);var bM=T.f($*eQ*4);eg.gj(bM,i.sdwC.v);var ct=1/hD,aQ=1/(1-hD),fU=1/B,eA=new Float64Array(1e3);
for(var D=0;D<1e3;D++)eA[D]=Math.pow(D*.001,.2);for(var cU=0;cU<eQ;cU++)for(var aH=0;aH<$;aH++){var D=cU*$+aH,gQ=4*D+3,eE=0,a1=0;
eE=bP[D];a1=iz[D];var fA=Math.max(0,Math.min(.9999,(d0[D]+B*.993)*fU));fA=eA[Math.floor(fA*1e3)];var eH=fA*(1-Math.min(1,eE*ct)),gd=fA*(1-Math.min(1,(1-eE)*aQ)),ey=fA*(1-Math.min(1,a1*ct)),hx=fA*(1-Math.min(1,(1-a1)*aQ));
cF[gQ]=Math.round(255*eH);br[gQ]=Math.round(255*gd);bM[gQ]=Math.round(255*ey);cW[gQ]=Math.round(255*hx)}if(u)console.log("baking textures",Date.now()-n);
N=V.rect().clone();N.lg(M,M);N.offset(q,K);var ew={a3L:i.bvlS.v.BESl=="strokeEmboss"};if(["InrB","Embs","PlEb"].indexOf(o)!=-1){ew.BZ={j$:br,Wx:N,yf:is.Tk(i.hglM.v.BlnM),e5:i.hglO.v.val/100};
ew.q6={j$:cF,Wx:N,yf:is.Tk(i.sdwM.v.BlnM),e5:i.sdwO.v.val/100};z.all.push(ew.BZ,ew.q6)}if(["OtrB","Embs","PlEb"].indexOf(o)!=-1){ew.bm={j$:cW,Wx:N,yf:is.Tk(i.hglM.v.BlnM),e5:i.hglO.v.val/100};
ew.G1={j$:bM,Wx:N,yf:is.Tk(i.sdwM.v.BlnM),e5:i.sdwO.v.val/100};z.all.push(ew.bm,ew.G1)}if(u)console.log(Date.now()-n);
z.type[Q].push(ew)}if(Q=="patternFill"){var am=V.rect(),E=T.f(am.X()*4);eg.ZO(i,E,am,P,S);var I=am.clone();
I.offset(q,K);var c={j$:E,Wx:I,yf:is.Tk(i.Md.v.BlnM),e5:i.Opct.v.val/100};z.type[Q].push(c);z.all.push(c)}if(Q=="ChFX"){var E=T.f(V.sK().length*4);
eg.gj(E,i.Clr.v);var y=i.blur.v.val,dI=V.rect().clone();dI.lg(y,y);var bs=T.f(dI.X()),fE=T.f(dI.X());
T.JS(V.sK(),V.rect(),fE,dI);T.rr.R2(fE,bs,dI,y*.43);var gg=T.$F.L$(i.MpgS.v.Crv.v,256,!0);T.Og(bs,gg);
var bT=T.f(V.sK().length),aa=T.f(V.sK().length),gR=V.rect().clone();eg.lE(gR,i,P,0);T.JS(bs,dI,bT,gR);
gR=V.rect().clone();eg.lE(gR,i,P,Math.PI);T.JS(bs,dI,aa,gR);var gb=bT.length;for(var D=0;D<gb;D++)E[4*D+3]=Math.abs(bT[D]-aa[D]);
if(i.Invr.v)for(var D=0;D<gb;D++)E[4*D+3]=255-E[4*D+3];var I=V.rect().clone();I.offset(q,K);var c={j$:E,Wx:I,yf:is.Tk(i.Md.v.BlnM),e5:i.Opct.v.val/100};
z.type[Q].push(c);z.all.push(c)}if(Q=="OrGl"){var A;if(i.GlwT.v.BETE=="SfBL")A=V.OJ(J,y-J,!0);else A=V.mX(y,j,!0);
var a=A.sK,I=A._,bH=a.slice(0);eg.o4(a,i);var E=T.f(I.X()*4);if(i.Grad==null){eg.gj(E,i.Clr.v);eg.ov(a,i,!1)}else{eg.ov(a,i,null);
var dW={gY:a,eY:255,tI:0,LI:I};eg.JD(i,E,I,P,dW);var cj=i.Nose.v.val/100,bm=I.c;for(var D=0;D<bH.length;
D++){var ge=255,dc=bH[D];if(dc<32){var eT=(dc+bH[D-1]+bH[D+1]+bH[D-bm]+bH[D+bm])*.2-1;ge=Math.min(255,Math.round(Math.max(0,eT)*8))}a[D]=ge}eg.bE(a,i)}T.y8(a,E,3);
I.offset(q,K);var c={j$:E,Wx:I,yf:is.Tk(i.Md.v.BlnM),e5:i.Opct.v.val/100};z.type[Q].push(c);z.all.push(c)}if(Q=="IrGl"){var A;
if(i.GlwT.v.BETE=="SfBL")A=V.OJ(J,y-J,!1);else A=V.mX(y,j,!1);var a=A.sK,I=A._;eg.o4(a,i);if(i.glwS.v.IGSr=="SrcC")T.oN(a);
var E=T.f(I.X()*4);if(i.Grad==null){eg.gj(E,i.Clr.v);eg.ov(a,i,!0)}else{eg.ov(a,i,null);var dW={gY:a,eY:255,tI:0,LI:I};
eg.JD(i,E,I,P,dW);a.fill(255);eg.bE(a,i)}T.y8(a,E,3);I.offset(q,K);var c={j$:E,Wx:I,yf:is.Tk(i.Md.v.BlnM),e5:i.Opct.v.val/100};
z.type[Q].push(c);z.all.push(c)}if(Q=="FrFX"){var fg=eg.jk(i),gL=fg[0],f4=fg[1],I=V.rect().clone(),eu=null,f5=null;
I.lg(Math.ceil(h),Math.ceil(h));if(f4>0){var A=V.OJ(f4,0,!0);f5=A.sK;if(f5.length<I.X()){f5=T.f(I.X());
T.JS(A.sK,A._,f5,I)}}if(gL>0){var A=V.OJ(gL,0,!1);eu=T.f(I.X());eu.fill(255);T.JS(A.sK,A._,eu,I)}I.offset(q,K);
var E=T.f(I.X()*4),bf=i.PntT.v.FrFl;if(bf=="SClr")eg.gj(E,i.Clr.v);if(bf=="GrFl")eg.JD(i,E,I,P,V.afb(gL,f4));
if(bf=="Ptrn")eg.ZO(i,E,I,P,S);var c={j$:E,Wx:I,yf:is.Tk(i.Md.v.BlnM),e5:i.Opct.v.val/100,Zy:f5,Xp:eu};
z.type[Q].push(c);z.all.push(c)}}}return z};eg.xS=function(Z){var S=1/Math.sqrt(Z.x*Z.x+Z.y*Z.y+Z.aE*Z.aE);
Z.x*=S;Z.y*=S;Z.aE*=S};eg.UC=function(Z,S){return{x:Z.y*S.aE-Z.aE*S.y,y:Z.aE*S.x-Z.x*S.aE,aE:Z.x*S.y-Z.y*S.x}};
eg.al0=function(Z,S){return Z.x*S.x+Z.y*S.y+Z.aE*S.aE};eg.bE=function(Z,S){var b=S.Nose.v.val/100;if(b>0)for(var D=0;
D<Z.length;D++){var Y=Z[D];Y=Math.min(510-(1+b)*T.style.Ux(D),Y);Z[D]=Y}};eg.TB=function(Z){var S=eg.xB(),b=Z.M0,Y=!1;
for(var D=0;D<32;D+=8)if(b[D]+b[D+1]+b[4]+b[5]!=0||b[D+2]+b[D+3]+b[6]+b[7]!=1020)Y=!0;if(Y){b=b.slice(0);
for(var D=0;D<40;D+=4){var P=b[D]/255,w=b[D+1]/255,f=b[D+2]/255,h=b[D+3]/255;b[D]=P-1e-4;b[D+1]=P==w?1e9:1/(w-(P-1e-4));
b[D+2]=f==h?-1e9:1/(f-(h+1e-4));b[D+3]=h+1e-4}}var Q=Z.add.iOpa!=null?Z.add.iOpa/255:S.fill,e=Z.add.vstk;
if(e&&!e.fillEnabled.v&&(!e.strokeEnabled.v||e.strokeStyleLineWidth.v.val==0))Q=0;return{fill:Q,lu:Y?b:null,_S:Z.add.brst!=null?Z.add.brst:S._S,a4c:Z.add.knko!=null?Z.add.knko:S.a4c,style:!1,gd:!1}};
eg.xB=function(){return{fill:1,lu:null,_S:[1,1,1],a4c:0,style:!1,gd:!1}};eg.Xl=function(Z,S){if(S==null)return null;
var b=Z.Idnt.v,Y=null;for(var D=0;D<S.length;D++)if(S[D].id==b)return S[D];return null};eg.JQ=function(Z,S,b){var Y=["patternFillMulti","ebblMulti","frameFXMulti"];
for(var D=0;D<Y.length;D++){var P=Z.v[Y[D]].v;for(var w=0;w<P.length;w++)if(P[w].v.Ptrn)S.ij(eg.Xl(P[w].v.Ptrn.v,b))}};
eg.af_=function(Z,S,b){var Y=["patternFillMulti","ebblMulti","frameFXMulti"];for(var D=0;D<Y.length;
D++){var P=Z.v[Y[D]].v;for(var w=0;w<P.length;w++)if(P[w].v.Ptrn){var f=P[w].v.Ptrn.v,h=eg.Xl(f,b),Q=eg.Xl(f,S.add.Patt);
if(h==null&&Q)b.push(Q)}}};eg.ZO=function(Z,S,b,Y,P){var w=eg.Xl(Z.Ptrn.v,Y.add.Patt);if(w!=null&&!b.h3()){var f=w.jL,h=f[0],Q=f[1],e=0;
T.O9(f);var l=Z.Scl.v.val/100;while((l<.3||l==.5)&&f[e+2]){l*=Q.c/f[e+3].c;e+=2;h=f[e];Q=f[e+1]}var O=T.scale.ZO(h,Q.c,Q.v),m=-b.x+Z.phase.v.Hrzn.v-1,V=-b.y+Z.phase.v.Vrtc.v-1;
if(Z.Algn!=null&&!Z.Algn.v){}else{m+=P.x;V+=P.y}T.scale.a1W(O,S,b.c,b.v,l,l,m+1,V+1)}};eg.JD=function(Z,S,b,Y,P,w){if(w==null)w=b;
var f=Z.Type?Z.Type.v.GrdT:"shapeburst",h=Z.Algn&&Z.Algn.v?w:new b4(0,0,Y.c,Y.v),Q=Z.Angl?T.W.E1(Z,h):[new ar(0,0),new ar(100,0)],e=Q[0].x,l=Q[0].y,O=Q[1].x-e,m=Q[1].y-l,V=Math.sqrt(O*O+m*m);
V=1/(2*V*V);var q=[O*V,m*V,-m*V,O*V],K=Z.Rvrs?Z.Rvrs.v:!1,z=Z.Dthr?Z.Dthr.v:!1;T.W.Wz(Z.Grad.v,S,b,q,e,l,K,a4.W.types.indexOf(f),0,0,P,z)};
eg.a0E=function(Z,S){for(var D=0;D<Z.all.length;D++){var b=Z.all[D];b.dI=b.Wx.clone();b.dI.offset(S.x,S.y)}};
eg.OZ=function(Z,S,b,Y,P,w){var f=p.lc?eg.Z8:eg.YJ;eg.a0E(S,b);var h=S.type.DrSh;for(var D=0;D<h.length;
D++)if(!h[D].adu)f(h[D],Y,P,w)};eg.rK=function(Z,S,b,Y,P,w,f,h,Q,e){var l=b,O=p.lc?eg.Z8:eg.YJ,m=p.lc?p.p.eV:T.p.VZ,V;
V=S.type.DrSh;for(var D=0;D<V.length;D++)if(V[D].adu)O(V[D],Y,P,w);V=S.type.OrGl;for(var D=0;D<V.length;
D++)O(V[D],Y,P,w);var q="patternFill GrFl SoFi ChFX IrGl IrSh".split(" ");for(var K=0;K<q.length;K++){var V=S.type[q[K]];
for(var D=0;D<V.length;D++)O(V[D],f,l,w)}var z=S.type.ebbl[0],t=z!=null&&z.a3L;V=S.type.FrFX;for(var D=0;
D<V.length;D++){var H=V[D];f3.mf.JS(h,e,Q,e,w);O(H,Q,e,w);if(t&&D==V.length-1){if(z.G1)O(z.G1,Q,e,w);
if(z.bm)O(z.bm,Q,e,w);if(z.q6)O(z.q6,Q,e,w);if(z.BZ)O(z.BZ,Q,e,w)}if(H.Xp||H.E3)m(Q,e,f,l,p.lc?H.E3:H.Xp,H.dI,0,w,1);
if(H.Zy||H.KO)m(Q,e,Y,P,p.lc?H.KO:H.Zy,H.dI,0,w,1)}if(!t&&z!=null){if(z.G1)O(z.G1,Y,P,w);if(z.bm)O(z.bm,Y,P,w);
if(z.q6)O(z.q6,f,l,w);if(z.BZ)O(z.BZ,f,l,w)}};eg.YJ=function(Z,S,b,Y){var P=eg.xB();P.fill=Z.e5;P.style=!0;
T.p.xJ(Z.yf,Z.j$,Z.dI,S,b,Y,1,P)};eg.Z8=function(Z,S,b,Y){var P=eg.xB();P.fill=Z.e5;P.style=!0;p.p.UH(Z.yf,Z.Ei,Z.dI,S,b,Y,1,P)};
eg.o4=function(Z,S){var b=1-S.Inpr.v.val/100,Y=1+Math.tan(b*(Math.PI/2)),P=Z.length;for(var D=0;D<P;
D++)Z[D]=Math.min(255,Math.round(Z[D]*Y))};eg.ov=function(Z,S,b){var Y=S.blur.v.val,P=Math.round(Y*(S.Ckmt.v.val/100));
if(Y>P){var w=T.$F.L$(S.TrnS.v.Crv.v,256,!0);T.Og(Z,w)}if(b!=null&&S.Nose.v.val>0)T.style.QB(Z,S.Nose.v.val/100,b)};
eg.gj=function(Z,S,b){if(b==null)b=255;var Y=T.W.CD(S),P=b<<24|Y.O<<16|Y.l<<8|Y.h,w=new Uint32Array(Z.buffer);
w.fill(P)};eg.lE=function(Z,S,b,Y){var P=S.uglg&&S.uglg.v?b.HO():S.lagl.v.val;P=P*Math.PI/180+Y;var w=Math.cos(P)*S.Dstn.v.val,f=Math.sin(P)*S.Dstn.v.val;
Z.x-=Math.round(w);Z.y+=Math.round(f)};eg.oi=function(Z){if(Z==null)return null;var S=Z.frameFXMulti.v;
if(S.length==0)return null;S=S[0].v;var b=JSON.parse(JSON.stringify(a4.m3.default));eg.EA(S,b);return b};
eg.EA=function(Z,S){var b=a4.stroke.qc.indexOf(Z.PntT.v.FrFl),Y=[a4.pe,a4.xz,a4.jl][b],P=S.strokeStyleContent.v={classID:a4.m3.Vh[b]};
for(var D=0;D<Y.length;D++)P[Y[D]]=Z[Y[D]];S.strokeEnabled=Z.enab;S.strokeStyleLineWidth=Z.Sz;S.strokeStyleLineAlignment.v.strokeStyleLineAlignment=a4.m3.ie[a4.stroke.types.indexOf(Z.Styl.v.FStl)];
S.strokeStyleOpacity=Z.Opct;S.strokeStyleBlendMode=Z.Md};eg.Fr=function(Z,S){var b=[];for(var D=0;D<Z.length;
D++)b.push({t:"UntF",v:{type:"#Nne",val:Math.round(Z[D]*S)}});return b};eg.p$=function(Z,S,b,Y){this.lM=S.clone();
this.a23=S.clone();this.a23.lg(b,b);if(Y){this.lM.lg(1,1);this.oq=T.f(this.lM.X());T.JS(Z,S,this.oq,this.lM)}else this.oq=Z;
this.go=null;this.dH=null;this.xZ=null};eg.p$.prototype.sK=function(){return this.oq};eg.p$.prototype.rect=function(){return this.lM};
eg.p$.prototype.FL=function(){return this.a23};eg.p$.prototype.r7=function(){if(this.go)return this.go;
this.go=this.sK().slice(0);T.oN(this.go);return this.go};eg.p$.prototype.o3=function(){if(this.dH)return this.dH;
this.dH=new Float64Array(this.rect().X());T.style.ED(this.r7(),this.dH,this.rect().c,this.rect().v);
return this.dH};eg.p$.prototype.qh=function(){if(this.xZ)return this.xZ;var Z=this.FL(),S=T.f(Z.X());
T.JS(this.sK(),this.rect(),S,Z);this.xZ=new Float64Array(Z.X());T.style.ED(S,this.xZ,Z.c,Z.v);return this.xZ};
eg.p$.prototype.afb=function(Z,S){var b={eY:-S,tI:Z,LI:null,gY:null};if(S==0){b.LI=this.rect();b.gY=this.o3();
return b}var Y=this.qh().slice(0),P=this.FL();b.LI=P;b.gY=Y;for(var D=0;D<Y.length;D++)Y[D]=-Y[D];if(Z==0)return b;
var w=this.o3(),f=this.rect();for(var h=0;h<f.v;h++)for(var Q=0;Q<f.c;Q++){var e=h*f.c+Q,l=(h+f.y-P.y)*P.c+Q+f.x-P.x;
Y[l]+=w[e]}return b};eg.p$.prototype.OJ=function(Z,S,b){var Y=Math.ceil(Z+S),P={_:this.rect().clone(),sK:null};
P._.lg(Y,Y);P.sK=T.f(P._.X());if(Z==0&&S==0)T.Bv(b?this.sK():this.r7(),P.sK);else{var w=T.f(P._.X());
T.JS(this.sK(),this.rect(),w,P._);if(!b)T.oN(w);if(Z!=0){if(b)T.style.dK(w,P._,this.qh(),this.FL(),Z);
else T.style.dK(w,P._,this.o3(),this.rect(),Z)}if(S!=0)T.rr.R2(w,P.sK,P._,Math.max(1,S*.43));else P.sK=w}return P};
eg.p$.prototype.mX=function(Z,S,b){var Y=Z*(S-.5),P={_:this.rect().clone(),sK:null};if(b)P._.lg(Z,Z);
P.sK=T.f(P._.X());var w=P._.c,f=P._.v,h=b?this.qh():this.o3(),Q=b?this.FL():this.rect(),e=P._,l=e.Yz(Q),w=l.c,f=l.v,O=l.x-e.x,m=l.y-e.y,V=l.x-Q.x,q=l.y-Q.y,K=1-S*2;
for(var z=0;z<f;z++)for(var t=0;t<w;t++){var H=h[(z+q)*Q.c+t+V],i=H/Z;P.sK[(z+m)*e.c+t+O]=Math.max(0,Math.min(255,255-255*((i+K)/(1+K))))}return P};
eg.wH=function(Z,S,b){var Y=Z.Lefx,P=Z.blendOptions;if(Y){var w=S.add.lmfx;if(b==null)b=w?w.Scl.v.val:100;
S.add.lmfx=JSON.parse(JSON.stringify(Y.v));if(S.add.lmfx.Scl==null)S.add.lmfx.Scl={t:"UntF",v:{type:"#Prc",val:100}};
eg.sq(S.add.lmfx,b/S.add.lmfx.Scl.v.val);if(w)S.add.lmfx.Scl.v.val=w.Scl.v.val}else delete S.add.lmfx;
if(P){P=P.v;if(P.Md)S.WL=is.Tk(P.Md.v.BlnM);if(P.Opct)S.opacity=Math.round(P.Opct.v.val*255/100);if(P.fillOpacity)S.add.iOpa=Math.round(P.fillOpacity.v.val*255/100);
if(P.Blnd){var f=[];for(var D=0;D<10;D++)f.push(0,0,255,255);var h=P.Blnd.v,Q="SrcB Srcl SrcW Srcm DstB Dstl DstW Dstt".split(" ");
for(var D=0;D<h.length;D++){var e=h[D].v,l=8*["Gry","Rd","Grn","Bl"].indexOf(e.Chnl.v[0].v.enum);for(var O=0;
O<8;O++){f[l+O]=e[Q[O]].v}}S.M0=f}}};eg.gA=function(Z){var S="SrcB Srcl SrcW Srcm DstB Dstl DstW Dstt".split(" "),b=[],Y=Z.M0;
for(var D=0;D<4;D++){var P=D*8;if(Y[P]+Y[P+1]+Y[P+4]+Y[P+5]==0&&Y[P+2]+Y[P+3]+Y[P+6]+Y[P+7]==4*255)continue;
var w={t:"Objc",v:{classID:"Blnd",Chnl:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:["Gry","Rd","Grn","Bl"][D]}}]}}};
b.push(w);for(var f=0;f<8;f++)w.v[S[f]]={t:"long",v:Y[D*8+f]}}var h={classID:"blendOptions"};if(Z.WL!="norm")h.Md={t:"enum",v:{BlnM:is.QT(Z.WL)}};
if(Z.opacity!=255)h.Opct={t:"UntF",v:{type:"#Prc",val:Math.round(Z.opacity*100/255)}};if(Z.add.iOpa!=null)h.fillOpacity={t:"UntF",v:{type:"#Prc",val:Math.round(Z.add.iOpa*100/255)}};
if(b.length!=0)h.Blnd={t:"VlLs",v:b};var Q={p2:{classID:"null",Idnt:{t:"TEXT",v:gf.uc()+"-bd9f-11d5-b8ba-b73f8571793d"},Nm:{t:"TEXT",v:"Custom Style"}},WF:{classID:"Styl",blendOptions:{t:"Objc",v:h}}},e=Z.add.lmfx;
if(e)Q.WF.Lefx={t:"Objc",v:e};return Q};function d6(){}d6.w3=function(Z){return JSON.parse(JSON.stringify(Z))};
d6.H0=function(Z){var S=d6.w3(d6.a2F),b=S.Brsh.v;if(Z!=null){delete b.Hrdn;b.classID="sampledBrush";
b.Nm={t:"TEXT",v:"layer.png"},b.sampledData={t:"TEXT",v:Z}}return S};d6.a2F={classID:"brushPreset",Nm:{t:"TEXT",v:"Custom Brush"},Brsh:{t:"Objc",v:{classID:"computedBrush",Dmtr:{t:"UntF",v:{type:"#Pxl",val:15}},Hrdn:{t:"UntF",v:{type:"#Prc",val:100}},Angl:{t:"UntF",v:{type:"#Ang",val:0}},Rndn:{t:"UntF",v:{type:"#Prc",val:100}},Spcn:{t:"UntF",v:{type:"#Prc",val:25}},Intr:{t:"bool",v:!0},flipX:{t:"bool",v:!1},flipY:{t:"bool",v:!1}}},useTipDynamics:{t:"bool",v:!1},useScatter:{t:"bool",v:!1},dualBrush:{t:"Objc",v:{classID:"dualBrush",useDualBrush:{t:"bool",v:!1}}},brushGroup:{t:"Objc",v:{classID:"brushGroup",useBrushGroup:{t:"bool",v:!1}}},useTexture:{t:"bool",v:!1},usePaintDynamics:{t:"bool",v:!1},useColorDynamics:{t:"bool",v:!1},Wtdg:{t:"bool",v:!1},Nose:{t:"bool",v:!1},Rpt:{t:"bool",v:!1}};
d6.xS={};d6.xS.check=function(Z){var S=d6.xS.vr;for(var D=0;D<S.length;D++)if(Z[S[D]]==null)Z[S[D]]=JSON.parse(d6.xS.DG[S[D]]);
var b=[];for(var D=0;D<S.length;D++)b.push(S[D]);var Y=d6.xS.qF;for(var D=0;D<Y.length;D++){var P=Y[D][0],w=Y[D][1],f=!0;
for(var h=0;h<P.length;h++)f=f&&Z[P[h]].v==!0;if(f)for(var h=0;h<w.length;h++){if(Z[w[h]]==null)console.log("Missing conditional parameter "+w[h]);
else b.push(w[h])}}for(var Q in Z)if(b.indexOf(Q)==-1)console.log("Extra parameter "+Q);Z=Z.Brsh.v;S=d6.xS.Un.vr;
for(var D=0;D<S.length;D++)if(Z[S[D]]==null)Z[S[D]]=JSON.parse(d6.xS.Un.DG[S[D]]);b=[];for(var D=0;D<S.length;
D++)if(Z[S[D]])b.push(S[D]);else console.log("Missing default parameter "+S[D]);Y=d6.xS.Un.a3h[Z.classID];
for(var D=0;D<Y.length;D++)if(Z[Y[D]]==null&&Y[D]!="dtipsGridSize"&&Y[D]!="dtipsErodibleTipHeightMap"&&Z.a1M!=1)console.log("Missing conditional parameter "+Y[D]);
else b.push(Y[D]);for(var Q in Z)if(b.indexOf(Q)==-1)console.log("Extra parameter "+Q)};d6.xS.zu=function(Z){var S=d6.xS.qF;
for(var D=0;D<S.length;D++){var b=S[D][0],Y=S[D][1],P=!0;for(var w=0;w<b.length;w++)P=P&&Z[b[w]]&&Z[b[w]].v==!0;
if(P){for(var w=0;w<Y.length;w++)if(Z[Y[w]]==null){Z[Y[w]]=JSON.parse(d6.xS.DG[Y[w]])}}else for(var w=0;
w<Y.length;w++)if(Z[Y[w]]!=null){delete Z[Y[w]]}}};d6.xS.Un={};d6.xS.Un.vr="classID Dmtr Angl Spcn Intr flipX flipY".split(" ");
d6.xS.Un.DG={flipX:"{\"t\":\"bool\",\"v\":false}",flipY:"{\"t\":\"bool\",\"v\":false}"};d6.xS.Un.a3h={computedBrush:["Hrdn","Rndn"],sampledBrush:["Nm","Rndn","sampledData"],dBrush:"Shp Dnst Lngt clumping thickness stiffness physics".split(" "),dTips:"dtipsType Shp dtipsLengthRatio dtipsHardness dtipsGridSize dtipsErodibleTipHeightMap physics dtipsAirbrushCutoffAngle dtipsAirbrushGranularity dtipsAirbrushStreakiness dtipsAirbrushSplatSize dtipsAirbrushSplatCount".split(" ")};
d6.xS.qF=[[["useTipDynamics"],"flipX flipY brushProjection minimumDiameter minimumRoundness tiltScale szVr angleDynamics roundnessDynamics".split(" ")],[["usePaintDynamics"],["prVr","opVr","wtVr","mxVr"]],[["useBrushPose"],"overridePoseAngle overridePoseTiltX overridePoseTiltY overridePosePressure brushPosePressure brushPoseTiltX brushPoseTiltY brushPoseAngle".split(" ")],[["useTexture"],"TxtC interpretation textureBlendMode textureDepth minimumDepth textureDepthDynamics Txtr textureScale InvT textureBrightness textureContrast".split(" ")],[["useColorDynamics"],"clVr H Strt Brgh purity colorDynamicsPerTip".split(" ")],[["useScatter"],["Cnt","countDynamics","bothAxes","scatterDynamics"]],[["useScatter","bothAxes"],["Spcn"]]];
d6.xS.vr="classID Nm Brsh useTipDynamics usePaintDynamics useColorDynamics useScatter useTexture useBrushSize useBrushPose Wtdg Nose Rpt dualBrush brushGroup".split(" ");
d6.xS.DG={useBrushSize:"{\"t\":\"bool\",\"v\":false}",useBrushPose:"{\"t\":\"bool\",\"v\":false}",brushGroup:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brushGroup\",\"useBrushGroup\":{\"t\":\"bool\",\"v\":false}}}",flipX:"{\"t\":\"bool\",\"v\":false}",flipY:"{\"t\":\"bool\",\"v\":false}",brushProjection:"{\"t\":\"bool\",\"v\":false}",minimumDiameter:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}",minimumRoundness:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":25}}",tiltScale:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":200}}",szVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":2},\"fStp\":{\"t\":\"long\",\"v\":1},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",angleDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",roundnessDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",prVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":2},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",opVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",wtVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",mxVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",overridePoseAngle:"{\"t\":\"bool\",\"v\":false}",overridePoseTiltX:"{\"t\":\"bool\",\"v\":true}",overridePoseTiltY:"{\"t\":\"bool\",\"v\":true}",overridePosePressure:"{\"t\":\"bool\",\"v\":true}",brushPosePressure:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":9}}",brushPoseTiltX:"{\"t\":\"long\",\"v\":0}",brushPoseTiltY:"{\"t\":\"long\",\"v\":0}",brushPoseAngle:"{\"t\":\"long\",\"v\":0}",TxtC:"{\"t\":\"bool\",\"v\":false}",interpretation:"{\"t\":\"bool\",\"v\":true}",textureBlendMode:"{\"t\":\"enum\",\"v\":{\"BlnM\":\"CBrn\"}}",textureDepth:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":37}}",minimumDepth:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":97}}",textureDepthDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",Txtr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"t\":\"TEXT\",\"v\":\"$$$/Presets/Patterns/Patterns_pat/Laidhorizontal=Laid-horizontal\"},\"Idnt\":{\"t\":\"TEXT\",\"v\":\"52a93427-f5d6-1172-a989-8dc82a43aa51\"}}}",textureScale:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":99}}",InvT:"{\"t\":\"bool\",\"v\":false}",textureBrightness:"{\"t\":\"long\",\"v\":14}",textureContrast:"{\"t\":\"long\",\"v\":100}",Cnt:"{\"t\":\"doub\",\"v\":4}",countDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":1},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":98}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",bothAxes:"{\"t\":\"bool\",\"v\":false}",scatterDynamics:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":1},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":56}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",clVr:"{\"t\":\"Objc\",\"v\":{\"classID\":\"brVr\",\"bVTy\":{\"t\":\"long\",\"v\":0},\"fStp\":{\"t\":\"long\",\"v\":25},\"jitter\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}},\"Mnm\":{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}}}",H:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}",Strt:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}",Brgh:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":36}}",purity:"{\"t\":\"UntF\",\"v\":{\"type\":\"#Prc\",\"val\":0}}",colorDynamicsPerTip:"{\"t\":\"bool\",\"v\":false}"};
function bv(Z,S){this.agM=Z;this.W0=S==null?0:S;this.dir=0}bv.prototype.Ae=function(Z,S){var b=this.agM,Y=new ar(Z.x-b.x,Z.y-b.y),P=new fR;
P.rotate(-this.W0);Y=P.YI(Y);if(this.dir==0&&!b.Oh(Z))this.dir=Math.abs(Y.x)<Math.abs(Y.y)?1:2;if(S.q(U.Lo)){if(this.dir==1)Y.x=0;
if(this.dir==2)Y.y=0}P.oN();Y=P.YI(Y);var w=new ar(b.x+Y.x,b.y+Y.y);return w};function b6(Z,S,b,Y,P,w,f,h){this.qr=S;
this.kT=b;this.VY=w;this.ms=Y;if(Y.gp==null)Y.gp=[!1,!0];this.HT=null;this.LK=null;this.vT=0;this.a5X=0;
this.a12=0;this.ZD=0;this.Nz=0;this.a8R=f;this.Vl=new b4;this.ud=new b4;this.rect=new b4;if(h!=null){this.j$=h}else{var Q=b6.IZ;
if(Q.length!=f.X()*4)Q=T.f(f.X()*4);else Q.fill(0);this.j$=b6.IZ=Q}this.rect=f.clone();this.B_=[];this.w7=[];
this.GM=null;this.ui=0;this.O=null;this.tB="";this.S7=null;this.eK(Z,P)}b6.IZ=T.f(16);b6.prototype.eK=function(Z,S){this.ui=S;
this.O=Z;this.tB=JSON.stringify(Z)+JSON.stringify(this.ms.Yp);this.S7=b6.a4B(Z,this.qr,this.kT)};b6.prototype.moveTo=function(Z,S,b){b=this.bk(b);
this.vT=b;var Y=new ar(Z,S),P=this.O.Brsh.v.Dmtr.v.val;this.HT=Y.clone();this.LK=Y.clone();this.GM=Y.clone();
this.B_=[Z,S];this.w7=[b];var w=this.ms.gp;if(this.ms.tJ!=b6.ZB)this.Y7(this.Rh(Y,this.Jy()*(w[1]?b:1),this.ms.y6*(w[0]?b*.5:1),new ar(0,0)));
this.ZD=Y.clone()};b6.prototype.lineTo=function(Z,S,b){b=this.bk(b);var Y=this.B_,P=Y.length,w=Y[P-2],f=Y[P-1];
if(Z==w&&S==f)return;var h=this.O.Brsh.v.Dmtr.v.val,Q=Math.ceil(h)+1,e=new b4(Math.round(w),Math.round(f),0,0);
e.lg(Q,Q);var l=new b4(Math.round(Z),Math.round(S),0,0);l.lg(Q,Q);this.V8(e.VK(l));this.B_.push(Z,S);
this.w7.push(b);P+=2;if(P>=6)this.Y7(this.X_(P))};b6.prototype.bk=function(Z){if(Z==null)Z=1;Z=Math.max(.05,Math.min(5,Z));
if(isNaN(Z)){alert("Pressure is not a number");throw"e"}return Z};b6.prototype.Y7=function(Z){this.Vl=Z;
this.ud=this.ud.VK(Z)};b6.prototype.finish=function(){var Z=this.B_,S=Z.length,b;if(S==4)b=this.de(Z[S-2],Z[S-1],this.w7[(S>>1)-1],!0);
if(S>4)b=this.X_(S+2);if(b)this.Y7(b)};b6.prototype.X_=function(Z){var S=this.B_,b=this.w7,Y=S[Z-6],P=S[Z-5],w=S[Z-4],f=S[Z-3],h=b[(Z>>1)-3],Q=b[(Z>>1)-2],e=new ar(0,0),l=new ar(0,0);
if(8<=Z)e=b6.zC(S[Z-8],S[Z-7],Y,P,w,f);if(Z<=S.length)l=b6.zC(S[Z-2],S[Z-1],w,f,Y,P);var O=Y+e.x,m=P+e.y,V=w+l.x,q=f+l.y,K=new b4;
for(var D=0;D<10;D++){var z=(D+1)*.1,t=1-z,H=t*t*t*Y+3*z*t*t*O+3*z*z*t*V+z*z*z*w,i=t*t*t*P+3*z*t*t*m+3*z*z*t*q+z*z*z*f,y=this.de(H,i,h+z*(Q-h));
K=K.VK(y)}return K};b6.zC=function(Z,S,b,Y,P,w){var f=Z-b,h=S-Y,Q=P-b,e=w-Y,l=Math.sqrt(f*f+h*h),O=Math.sqrt(Q*Q+e*e),m=Math.acos((f*Q+h*e)/(l*O))/Math.PI,V=.35,q=.1;
m=q+m*(V-q);var K=P-Z,z=w-S,t=Math.sqrt(K*K+z*z),H=m*O/t;return new ar(K*H,z*H)};b6.prototype.de=function(Z,S,b,Y){var P=new b4,w=this.ms.aaS;
if(w==null)w=0;if(w==0||Y){P=this.ZL(Z,S,b);return P}var f=this.GM,h=Z-f.x,Q=S-f.y,e=Math.sqrt(h*h+Q*Q);
h/=e;Q/=e;if(e>w){var l=f.x+h*(e-w),O=f.y+Q*(e-w);P=this.ZL(l,O,b);this.GM.Ha(l,O)}return P};b6.prototype.ZL=function(Z,S,b){var Y=new b4,P=new ar(Z,S),w=this.O.Brsh.v.Dmtr.v.val,f=this.ms.tJ,h=P.jZ(this.LK);
h.normalize(1);var Q=ar.VA(this.LK,P),e=-this.a5X,l=this.LK.clone(),O=this.ms.gp;while(!0){var m=this.vT+(b-this.vT)*(Math.max(0,e)/Q),V=this.Jy()*(O[1]?m:1),q=this.acj()*(V+this.a12)/2;
if(f==b6.ZB)q=1;if(e+q<Q){e+=q;var K=new ar(this.LK.x+h.x*e,this.LK.y+h.y*e),H=1;if(f==b6.ZB){var z=l.clone();
z.x+=h.x>0?1:-1;var t=l.clone();t.y+=h.y>0?1:-1;if(ar.VA(z,K)<ar.VA(t,K))K=z;else K=t;e=ar.VA(K,this.LK)}if(this.O.useScatter.v==!0){H=this.O.Cnt.v;
var i=this.O.countDynamics.v.jitter.v.val/100,y=i*(-1+2*this.Nj());H+=Math.round(H*y)}for(var D=0;D<H;
D++){var j=this.Rh(K,V,this.ms.y6*(O[0]?m*.5:1),h);Y=Y.VK(j)}l=K}else break}this.a5X=Q-e;this.LK=P;this.vT=b;
return Y};b6.prototype.acj=function(){var Z=this.O.Brsh.v,S=Z.Spcn.v.val,b=Math.max(5,Z.Rndn.v.val);
return b/100*(S/100)};b6.prototype.Jy=function(){var Z=this.O,S=Z.Brsh.v.Dmtr.v.val;if(Z.useTipDynamics.v){var b=S*(Z.minimumDiameter.v.val/100);
S=b+(S-b)*(1-this.Nj()*(Z.szVr.v.jitter.v.val/100))}return S};b6.prototype.Rh=function(Z,S,b,Y){b=Math.min(1,b);
var P=this.O,w=this.O.Brsh.v,f=w.Dmtr.v.val,h=this.ms,Q=h.tJ,e=h.afU,l=new fR;l.translate(-this.S7.Io.c/2,-this.S7.Io.v/2);
l.scale(1/this.S7.a0n,1/this.S7.a0n);l.scale(S/f,S/f);l.scale(1,Math.max(5,w.Rndn.v.val)/100);if(P.useTipDynamics.v){var O=P.minimumRoundness.v.val/100;
l.scale(1,O+(1-O)*Math.round(100-this.Nj()*P.roundnessDynamics.v.jitter.v.val)/100);l.rotate((-.5+this.Nj())*4*Math.PI*(P.angleDynamics.v.jitter.v.val/100))}l.rotate(w.Angl.v.val*(Math.PI/180));
if(P.useScatter.v){var m=(-1+2*this.Nj())*P.scatterDynamics.v.jitter.v.val/100;l.translate(-m*S*Y.y,m*S*Y.x)}l.translate(Z.x,Z.y);
var V=this.a2i(l,Z);this.V8(V.rect);var q=V.rect.clone();if(Q==null){var K=this.CD(P);T._U(V.UU,Math.round(K.O*255)<<16|Math.round(K.l*255)<<8|Math.round(K.h*255)<<0,4278190080);
if(this.ud.h3()&&this.rect.Oh(V.rect)&&b==1)this.j$=V.UU.slice(0);else T.p.agG(V.UU,V.rect,this.j$,this.rect,V.rect,b)}if(Q==b6.ZB){var z=new ar(V.rect.x+V.rect.c/2,V.rect.y+V.rect.v/2),t=Math.round(z.x-this.ZD.x),H=Math.round(z.y-this.ZD.y),i=V.rect.clone();
i.offset(-t,-H);var y=i.Yz(this.rect);y.offset(t,H);T.uH(this.j$,this.rect,V.UU,i);T.p.C4(V.UU,V.rect,this.j$,this.rect,V.m6,V.rect,b)}if(Q==b6.mk||Q==b6.uM||Q==b6.XQ){var j=V.rect.Yz(this.rect),J;
if(j.Oh(V.rect))J=V.m6;else{J=T.f(j.X());T.JS(V.m6,V.rect,J,j)}var A=T.f(j.X()*4);T.uH(this.j$,this.rect,A,j);
if(Q==b6.uM){var a=A.slice(0),I=T.yM.yU([-1,-1,-1,-1,25,-1,-1,-1,-1]);T.yM.Hl(A,a,j.c,j.v,I,0);T.Bv(a,A)}else if(Q==b6.XQ){var E=cL.VS("UnsM");
E.Amnt.v.val=15;E.Thsh.v=0;E.Rds.v.val=5;var a=T.f(A.length);cL.l5("UnsM",{buffer:A,rect:j},E,0,0,{buffer:a,rect:j});
T.Bv(a,A)}else{cL.NM(1,T.rr.v8,A,j)}T.p.C4(A,j,this.j$,this.rect,J,j,b)}this.a12=S;this.ZD=z;return q};
b6.prototype.CD=function(Z){var S=b6.J8(this.ui);if(Z.useColorDynamics&&Z.useColorDynamics.v){var b=1-this.Nj()*Z.clVr.v.jitter.v.val/100,Y=b6.J8(this.VY);
S.h=b*S.h+(1-b)*Y.h;S.l=b*S.l+(1-b)*Y.l;S.O=b*S.O+(1-b)*Y.O;var P=(-.5+this.Nj())*Z.H.v.val/100,w=(-1+2*this.Nj())*Z.Strt.v.val/100,f=(-1+2*this.Nj())*Z.Brgh.v.val/100,h=T.hy(S.h,S.l,S.O);
h.XE=(h.XE+P+1)%1;h.zk=h.zk+w;if(h.zk<0)h.zk=-h.zk;if(h.zk>1)h.zk=1-(h.zk-1);h.$0=h.$0+f;if(h.$0<0)h.$0=-h.$0;
if(h.$0>1)h.$0=1-(h.$0-1);S=T.Ta(h.XE,h.zk,h.$0)}return S};b6.prototype.xS=function(Z){return Math.max(0,Math.min(1,Z))};
b6.prototype.Nj=function(){this.Nz++;return b6.hash(this.Nz)};b6.J8=function(Z){return{h:(Z>>16&255)/255,l:(Z>>8&255)/255,O:(Z>>0&255)/255}};
b6.hash=function(Z){Z=Z^61^Z>>16;Z=Z+(Z<<3);Z=Z^Z>>4;Z=Z*668265261;Z=Z^Z>>15;return(Z&16777215)/16777215};
b6.Bp=[];b6.acd=function(Z,C){var S=Z.I2(),b=C.I2();if(S<b){var Y=S;S=b;b=Y}var P=Z.w-C.w,w=Z.O-C.O,f=Z.tE-C.tE,h=Z.KU-C.KU;
return b!=0&&S-b<.025&&Math.max(P*P,w*w,f*f,h*h)<=.01};b6.prototype.a2i=function(Z,S){var b=null,w;for(var D=0;
D<b6.Bp.length;D++)if(b6.Bp[D].tB==this.tB){b=b6.Bp[D];b6.Bp.splice(D,1)}if(b==null)b={p5:[],tB:this.tB,Mo:0,X:0};
var Y=b.p5,P=this.ms.Yp;if(P){Z=Z.clone();Z.RN=Math.floor(Z.RN);Z.Sv=Math.floor(Z.Sv)}var f=b6.Z5(Z.RN,Z.Sv);
for(var D=0;D<Y.length;D++){var h=Y[D];if(!b6.acd(h.b9,Z))continue;if(b6.ajh(h.wM,f)<.2||h.rect.X()>2500){w=h;
break}}var Q=Math.round(this.O.Brsh.v.Dmtr.v.val);if(w){w.rect.x=Math.round(w.AR.x-w.b9.RN+Z.RN);w.rect.y=Math.round(w.AR.y-w.b9.Sv+Z.Sv);
if(P){w.rect.x=Math.round(S.x-w.rect.c/2);w.rect.y=Math.round(S.y-w.rect.v/2)}w.Mo=Date.now()}else{var e;
if(P&&Q<=3){e={buffer:T.f(Q*Q*4),rect:new b4(Math.round(S.x-Q/2),Math.round(S.y-Q/2),Q,Q)};T._U(e.buffer,4278190080)}else if(Z.w==1&&Z.O==0&&Z.tE==0&&Z.KU==1){e={buffer:this.S7.UU,rect:this.S7.Io.clone()};
e.rect.x=Math.round(Z.RN);e.rect.y=Math.round(Z.Sv)}else e=G.V.DP([this.S7.UU,this.S7.Io],Z);if(P){for(var D=0;
D<e.buffer.length;D++)e.buffer[D]=e.buffer[D]>127?255:0}if(e==null)e={buffer:T.f(0),rect:new b4};var l=Z.RN-Math.floor(Z.RN),O=Z.Sv-Math.floor(Z.Sv);
w={UU:e.buffer,m6:T.f(e.rect.X()),rect:e.rect,AR:e.rect.clone(),b9:Z,wM:b6.Z5(Z.RN,Z.Sv),Mo:Date.now()};
T.to(w.UU,w.m6,3);Y.push(w);b.X+=e.rect.X();if(Y.length>2e3||b.X>100*100*400){console.log("pruning",b.X,Y.length);
Y.sort(function(V,q){return q.Mo-V.Mo});while(Y.length>1e3||b.X>100*100*200){var m=Y.pop();b.X-=m.rect.X()}}}b.p5=Y;
b.Mo=Date.now();b6.Bp.push(b);b6.Bp.sort(function(V,q){return q.Mo-V.Mo});while(b6.Bp.length>3)b6.Bp.pop();
return w};b6.Z5=function(Z,S){return new ar(Z-Math.floor(Z),S-Math.floor(S))};b6.ajh=function(Z,S){var b=S.x,Y=S.y,P=Math.abs(b-Z.x),w=Math.abs(Y-Z.y);
if(Math.abs(b-1-Z.x)<P)b--;else if(Math.abs(b+1-Z.x)<P)b++;if(Math.abs(Y-1-Z.y)<w)Y--;else if(Math.abs(Y+1-Z.y)<w)Y++;
P=Z.x-b;w=Z.y-Y;return Math.sqrt(P*P+w*w)};b6.prototype.V8=function(Z){};b6.a4B=function(Z,S,b){var Y,P,w,f=Z.Brsh.v.Dmtr.v.val;
if(Z.Brsh.v.classID=="computedBrush"){var h=Z.Brsh.v.Hrdn.v.val/100,Q=1+.55*(1-h);w=f<100?1.2:1;var e=Math.round(w*f*Q);
P=new b4(0,0,e,e);Y=T.f(e*e*4);var l=new Uint32Array(Y.buffer),O=e/2,m=Q/O,V=Date.now(),q=b6.T1(h),K=Math.round(8e3/O),S=q[0],z=q[1]-K,t=q[2]+K,H=Math.min(e,(e>>>1)+1);
for(var D=0;D<H;D++){var i=m*(D-O+.25);i*=i;var y=m*(D-O+.75);y*=y;var j=D*e,J=(e-1-D)*e;for(var A=0;
A<H;A++){var a=m*(A-O+.25),I=Math.floor(Math.sqrt(a*a+i)*(4e3/1.55));if(t<I)continue;else if(I<z){var E=4278190080;
while(A<H){var c=e-1-A;l[j+A]=E;l[j+c]=E;l[J+A]=E;l[J+c]=E;A++}break}else{var u=m*(A-O+.75),n=Math.floor(Math.sqrt(u*u+i)*(4e3/1.55)),o=Math.floor(Math.sqrt(a*a+y)*(4e3/1.55)),x=Math.floor(Math.sqrt(u*u+y)*(4e3/1.55)),E=~~(.5+255*.25*(S[I]+S[n]+S[o]+S[x]))<<24,c=e-1-A;
l[j+A]=E;l[j+c]=E;l[J+A]=E;l[J+c]=E}}}}if(Z.Brsh.v.classID=="sampledBrush"){var g;for(var D=0;D<S.length;
D++)if(S[D].id==Z.Brsh.v.sampledData.v)g=S[D];P=new b4(0,0,g._.c,g._.v);w=Math.max(P.c,P.v)/f;Y=T.f(P.X()*4);
T.y8(g.channel,Y,3)}while(Math.min(P.c,P.v)>f*2){var v=new b4(P.x,P.y,Math.floor(P.c/2),Math.floor(P.v/2)),R=G.V.DP([Y,P],new fR(v.c/P.c,0,0,v.v/P.v,0,0));
w*=v.c/P.c;P=R.rect;Y=R.buffer}return{a0n:w,Io:P,UU:Y}};b6.lf=[];b6.T1=function(Z){if(b6.lf[Z])return b6.lf[Z];
var S=Math.pow(Z,.55),b=new Float64Array(8e3),Y=0,P=8e3;for(var D=0;D<8e3;D++){var w=b6.a0h(D*(1.55/4e3),S);
if(w>=1)Y=D;else if(w<=0&&P==8e3)P=D;b[D]=w}var f=[b,Y,P];b6.lf[Z]=f;return f};b6.a0h=function(Z,S){var b=Z<S?1:b6.a4s((Z-S)/Math.pow(1.001-S,.86));
return b};b6.a4s=function(Z){var S=Z*.85;return Math.exp(-(S*S)*(1/(2*.4*.4)))*(1/(.4*Math.sqrt(2*Math.PI)))};
b6.prototype.Ij=function(){return this.rect.clone()};b6.prototype.JE=function(){return this.Vl.Yz(this.rect)};
b6.prototype.tj=function(){return this.ud.Yz(this.rect)};b6.prototype.f9=function(){return this.j$};
b6.QY=null;b6.x_=null;b6.Oy=function(Z,S,b,Y,P,w){var f=b6.QY,h=b6.x_;if(f==null){b6.QY=f=s.R("canvas","");
b6.x_=h=f.getContext("2d")}if(w==null)w=Y;if(f.width!=w||f.height!=P){f.width=w;f.height=P}else h.clearRect(0,0,w,P);
h.fillStyle="#000000";h.font=Math.floor(10*s.Z())+"px sans-serif";var Q=Z.Brsh.v.Dmtr.v.val,e=""+Q,l=h.measureText(e);
h.fillText(e,(Y-l.width)/2,P-2);var O=Y,m=P-10*s.Z(),V=Math.min(O,m),q=Z.Brsh.v.classID;if(q=="computedBrush"){h.translate(O/2,m/2);
h.rotate(-Z.Brsh.v.Angl.v.val*Math.PI/180);h.scale(1,.1+.9*Z.Brsh.v.Rndn.v.val/100);var K=Math.min(.95*V/2,Q/2)+.5,z=.9*Z.Brsh.v.Hrdn.v.val/100,t=h.createRadialGradient(0,0,0,0,0,K);
t.addColorStop(z,"rgba(0,0,0,1)");t.addColorStop((.5+z)/1.5,"rgba(0,0,0,.5)");t.addColorStop(1,"rgba(0,0,0,0)");
h.fillStyle=t;h.fillRect(-K,-K,2*K,2*K);h.setTransform(1,0,0,1,0,0)}else if(q=="sampledBrush"){var H,A=0;
for(var D=0;D<S.length;D++)if(S[D].id==Z.Brsh.v.sampledData.v)H=S[D];var i=H.a2k;if(i==null){i=H.a2k=[H.channel,H._];
T.eW(i)}var y=H.channel,j=H._.c,J=H._.v;while((j>O||J>m)&&i[A+2]){A+=2;y=i[A];j=i[A+1].c;J=i[A+1].v}if(j*J!=0){var a=T.f(j*J*4);
T.y8(y,a,3);var I=new ImageData(new Uint8ClampedArray(a.buffer),j,J);h.putImageData(I,Math.round((O-j)/2),Math.round((m-J)/2))}}else{}return f.toDataURL()};
b6.Fl=function(Z,S,b,Y){if(b==0)b=1;var P=Z.Brsh.v,w=P.Dmtr.v.val,f=P.Dmtr.v.val=Math.min(Y!=null?Math.round(Y*2.6):3e3,w*b),h=P.Hrdn?P.Hrdn.v.val/100:1,Q=Y!=null?Y:Math.round(f*(1+.55*(1-h)))+4,O;
Q=Math.max(15,Math.min(Q,3e3));var e=new b4(0,0,Q,Q),l=new b6(Z,S,null,{y6:1},16711712,0,e);P.Dmtr.v.val=w;
l.moveTo(e.c/2,e.v/2);var m=l.f9(),V=l.Ij();if(e.Oh(V))O=m;else{O=T.f(e.X()*4);T.uH(m,V,O,e)}return[O,e,f]};
b6.vz=function(Z,S,b,Y){var P=b6.Fl(Z,S,b),w=P[0].slice(0),f=P[1],h=P[2],Q=f.X(),e=T.f(Q);T.to(w,e,3);
var l=T.f(Q);T.N.a7h(e,l,f);if(h<3||T.BI(l,0)||Y&&h>12){var O=f.c,m=O>>>1,V=l,q=255;for(var D=0;D<4;
D++){V[O*(m-6+D)+m]=q;V[O*m+m-6+D]=q;V[O*m+m+6-D]=q;V[O*(m+6-D)+m]=q}}var K=[1,2,1,2,8,2,1,2,1];K=T.yM.yU(K);
T.yM.yC(l,e,f.c,f.v,K);T._U(w,4294967295);T.y8(e,w,3);for(var D=0;D<Q;D++)if(l[D]==255){w[D<<2]=w[(D<<2)+1]=w[(D<<2)+2]=0;
w[(D<<2)+3]=255}return{R3:w,_:f,Zw:new ar(f.c/2,f.v/2)}};b6.ZB="0";b6.mk="1";b6.uM="2";b6.XQ="3";var gU={};
gU.QY=document.createElement("canvas");gU.x_=gU.QY.getContext("2d");gU.PG=function(Z,S){var b=Z.Lu(),h;
if(b.x==Infinity||b.h3())return{j$:T.f(0),_:new b4,az:new b4};var Y=Z.Lu(),P=gU.L7(Z,S),w=T.z.Ex(P.H);
if(w.h3())return{j$:T.f(0),_:new b4,az:new b4};var f=T.bo(w.c,w.v);f.translate(-w.x,-w.y);gU.a1m(P,f);
if(Z.xp.length!=0){var Q=eO.PM(S),e=f.getImageData(0,0,w.c,w.v);h=new Uint8Array(e.data.buffer);if(Q==0)for(var D=0;
D<h.length;D+=4)h[D+3]=h[D+3]>80?255:0;if(Q==3)for(var D=0;D<h.length;D+=4)h[D+3]=Math.min(255,h[D+3]*1.5)}else h=T.f(w.X()*4);
f.resetTransform();f.beginPath();return{j$:h,_:w,az:Y}};gU.L7=function(Z,S){var b={K:[],H:[]},Y=S.A,P=eO.PM(S),w=Math.max(Y.O*Y.O,Y.tE*Y.tE)<1e-9?Y:null;
if(P==3||P==4)w=null;gU.afw(Z,b,w);if(!T.$e.iI(S.Km)){var f=T.z.$R(b.H);b=T.z.LD(b);b=T.z.Xt(b,Math.min(f.c,f.v)/8);
var h=eO.Ij(S,Z),Q=T.$e.dm(S.Km,h);T.Ts.A(Q,b.H,h)}T.z.A(b.H,Y,b.H);return b};gU.a1m=function(Z,S){Typr.U.pathToContext({crds:Z.H,cmds:Z.K},S)};
gU.Wu=function(Z,S){if(!io.Vt())return;var b=Z.HK,Y=b.ResourceDict.FontSet,P=b.ResourceDict.StyleSheetSet[0].StyleSheetData,w=b.EngineDict.StyleRun.RunLengthArray,f=b.EngineDict.StyleRun.RunArray,h=eO.IU(b),Q=!0,e={},l=0;
for(var D=0;D<f.length;D++){var O=f[D].StyleSheet.StyleSheetData.Font;if(O==null)O=P.Font;for(var m=0;
m<w[D];m++){var V=h.charCodeAt(l+m),q=O+","+(V>128?V:-1);if(e[q]==null){e[q]=1;if(S.NI(Y[O].Name,V)==null)Q=!1}}l+=w[D]}return Q};
gU.afw=function(Z,S,b){var Y=new fR;for(var D=0;D<Z.jm.length;D++)gU.ajJ(Z.xp,Z.jm[D],S,Y,b)};gU.ajJ=function(Z,S,b,Y,P){Y.translate(S.wM.x,S.wM.y);
for(var D=0;D<S.nZ.length;D++){var w={},f=S.nZ[D];if(!f.QV)break;var h=Y.clone();h.translate(f.wM.x,f.wM.y);
if(P){var Q=P.Sv+h.Sv*P.KU;h.Sv=(Math.round(Q)-P.Sv)/P.KU}for(var e=f.start;e<f.end;e++)gU.amX(Z,S.eO[e],S,w,b,h)}Y.translate(-S.wM.x,-S.wM.y)};
gU.akd="()<>[]{}\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";
gU.amX=function(Z,S,b,Y,P,w){w.translate(S.wM.x,S.wM.y);for(var f=S.m_;f<=S.zx;f++){var h=b.jd[f],Q=h._.c,e=Z[b.a3r+h.Fb];
if(e.qZ=="\n")continue;var l=e.DB.FontSize/e.qP.head.unitsPerEm,O=eO.CD(e.DB),m=(Math.round(O.h)<<16)+(Math.round(O.l)<<8)+Math.round(O.O);
P.K.push("#"+T.T3(m));var V=w.clone();V.translate(h.wM.x+h.T5*l,h.wM.y-h.vC*l);var q=new fR;q.scale(l,-l);
if(e.V2==1&&gU.akd.indexOf(e.qZ)!=-1)q.concat(new fR(-1,0,0,1,Q,0));if(e.DB.FauxItalic)q.concat(new fR(1,0,-Math.tan(.18),1,0,0));
q.translate(0,e.m7);q.scale(e.scale.x,e.scale.y);if(e.DB.BaselineShift!=null)q.translate(0,-e.DB.BaselineShift);
if(h.W0!=0){q.rotate(-h.W0)}q.concat(V);if(h.path.K.length!=0&&e.qZ!="\t"){if(e.DB.FauxBold){var K=e.DB.FontSize/2048*27*e.scale.x;
q.RN+=K;T.z.concat(P,h.path,q);q.RN-=K+K;T.z.concat(P,h.path,q)}else T.z.concat(P,h.path,q)}if(e.qZ!="\n"){if(e.DB.Underline){if(Y.ev==null)Y.ev=e.qP.post.underlineThickness;
if(Y.agj==null)Y.agj=e.qP.post.underlinePosition;var z=0,t=Y.agj-Y.ev/2,H=h.w$*1.05,i=-Y.ev;T.z.concat(P,{K:["M","L","L","L","Z"],H:[z,t,z+H,t,z+H,t+i,z,t+i]},q)}if(e.DB.Strikethrough){var y=e.qP["OS/2"].yStrikeoutSize,j=e.qP["OS/2"].yStrikeoutPosition,z=0,t=j+y/2,H=h.w$*1.05,i=-y;
T.z.concat(P,{K:["M","L","L","L","Z"],H:[z,t,z+H,t,z+H,t+i,z,t+i]},q)}}P.K.push("X")}w.translate(-S.wM.x,-S.wM.y)};
function io(Z,S){var b=eO.O$(Z),Y,P,w=eO.kn(Z),Q;if(Z.Curve)P=io.Nq(Z.Curve);if(b!=0){Y=new b4(w[0],w[1],w[2],w[3]);
if(b==2){Y.c=P[5]-P[4];Y.v=9999}}this.jm=[];this.xp=[];this.vp=b;var f=this.a0Q=eO.IU(Z),h=-1;for(var D=0;
D<f.length;D++){var e=Q,l=eO.KL(Z,D);if(l!=h){h=l;e=Q=eO.a5V(Z,D)}var O={qZ:f.charAt(D),DB:e,qP:null,pO:-1,m7:0,scale:new ar(0,0),El:0,lineHeight:0,V2:0},m=Z.ResourceDict.FontSet[e.Font].Name,V=O.qP=S.NI(m,f.charCodeAt(D));
O.scale.x=e.HorizontalScale==null?1:e.HorizontalScale;O.scale.y=e.VerticalScale==null?1:e.VerticalScale;
var q=V["OS/2"],K=V.hhea;if(e.FontCaps==1&&O.qZ!=O.qZ.toUpperCase()){var z=q.sxHeight?q.sxHeight/q.sTypoAscender:.76;
O.scale.x*=z;O.scale.y*=z}var t=1/V.head.unitsPerEm*e.FontSize;if(e.FontBaseline==1){var z=Z.ResourceDict.SuperscriptSize;
O.scale.x*=z;O.scale.y*=z;O.m7-=Z.ResourceDict.SuperscriptPosition*e.FontSize}if(e.FontBaseline==2){var z=Z.ResourceDict.SubscriptSize;
O.scale.x*=z;O.scale.y*=z;O.m7+=Z.ResourceDict.SubscriptPosition*e.FontSize}O.El=io.El(V,m,e);O.lineHeight=e.FontSize*1.2;
if(e.AutoLeading==!1)O.lineHeight=e.Leading;if(O.lineHeight==0)O.lineHeight=.01;this.xp.push(O)}var H=this.jm,i=[0];
for(var D=0;D<Z.EngineDict.ParagraphRun.RunLengthArray.length;D++){var y=new io.di(Z,S,this.xp,D,Y,i,b==1?P:null);
H.push(y)}if(b==2){var j=Z.Curve.Points,J=P[0],A=P[1],a=P[2],I=P[3],E=P[4],c=P[5];for(var D=0;D<H.length;
D++)for(var u=0;u<H[D].nZ.length;u++)if(!(D==0&&u==0))H[D].nZ[u].QV=!1;var y=H[0],n=y.nZ[0];y.wM.Ha(0,0);
n.wM.Ha(0,0);for(var u=n.start;u<n.end;u++){var o=y.eO[u],x=o.wM.x;o.wM.x=0;for(var g=o.m_;g<=o.zx;g++){var v=y.jd[g],R=v._.c/2;
v.wM.x+=x;var X=io.aju(J,(E+v.wM.x+R)%I);v.wM.x=X[0]-R*X[2];v.wM.y=X[1]-R*X[3];v.W0=Math.atan2(X[3],X[2])}}}}io.El=function(Z,S,b){var Y=Z["OS/2"],P=Z.hhea,w=0,w=0,f=[];
f.push(Y&&Y.sxHeight&&S.toLowerCase().indexOf("capitals")!=-1?Y.sxHeight:0);f.push(Y&&Y.sCapHeight?Y.sCapHeight:0);
f.push(Y&&Y.sTypoAscender?Y.sTypoAscender:0);f.push(P.ascender?P.ascender:0);for(var h=0;h<f.length;
h++)if(f[h]!=0){w=f[h];break}var Q=1/Z.head.unitsPerEm*b.FontSize;w=w*Q;if(w<b.FontSize*.6)w=b.FontSize*.75;
return w};io.prototype.a2r=function(){return!this.JR(0)};io.prototype.amx=function(){return this.JR(1)};
io.prototype.JR=function(Z){var S=this.jm,b=!0,Y=0;for(var D=0;D<S.length;D++){var P=S[D].nZ,w=P.length;
Y+=w;for(var f=0;f<w;f++)b&=P[f].QV}return[b,Y][Z]};io.Nq=function(Z){var S=Z.Points,b=S.length,Y=b>>>3,P=Z.TextOnPathTRange,w=Z.Reversed,l=0,O=0;
if(w){var f=S.slice(0);for(var D=0;D<b;D+=2){f[D]=S[b-2-D];f[D+1]=S[b-1-D]}S=f;P=[Y-P[1]%Y,Y-P[0]%Y]}var h=[],Q=[0],e=[0];
for(var D=0;D<b;D+=8){var m=S[D+6]-S[D+0],V=S[D+7]-S[D+1],q=Math.round(4*Math.sqrt(m*m+V*V));for(var K=0;
K<q;K++){var z=K/q,t=1-z,H=t*t*t*S[D+0]+3*t*t*z*S[D+2]+3*t*z*z*S[D+4]+z*z*z*S[D+6],i=t*t*t*S[D+1]+3*t*t*z*S[D+3]+3*t*z*z*S[D+5]+z*z*z*S[D+7];
h.push(H,i);if(D+K!=0){var m=H-l,V=i-O;e.push(e[e.length-1]+Math.sqrt(m*m+V*V));Q.push((D>>>3)+z)}l=H;
O=i}}var y=e.length,j=e[y-1],J=io.st(P[0],Q),A=io.st(P[1]%Y,Q),a=e[J%y],I=e[A%y];if(a>=I)I+=j;return[h,Q,e,j,a,I]};
io.st=function(Z,S){var D=0;while(S[D]<Z)D++;return D};io.aju=function(Z,S){var b=0,D=0,Y,P,w;while(b<S){Y=Z[D+2]-Z[D];
P=Z[D+3]-Z[D+1];w=Math.sqrt(Y*Y+P*P);b+=w;D+=2}return[Z[D],Z[D+1],Y/w,P/w]};io.prototype.ad0=function(Z){return this.xp[Z]};
io.prototype.ak$=function(Z){for(var S=0;S<this.jm.length;S++){var b=this.jm[S];for(var Y=0;Y<b.nZ.length;
Y++){var P=b.nZ[Y],w=b.eO[P.start].start,f=b.eO[P.end-1].end;if(w<Z&&Z<f)return[w,f-1]}}return[0,1]};
io.prototype.eH=function(Z,S){var b=-1,Y=this.jm;if(this.vp==2){var P=1e9,w=0,f=Y[0],h=f.nZ[0];for(var Q=h.start;
Q<h.end;Q++){var e=f.eO[Q];for(var l=e.m_;l<=e.zx;l++){var O=f.jd[l],m=O._.c,V=Z.x-O.wM.x,q=Z.y-O.wM.y,K=V*V+q*q;
if(K<P){P=K;w=O.Fb}}}if(w!=0&&this.a0Q.codePointAt(w-1)>65535)w--;return w}for(var z=0;z<Y.length;z++){var f=Y[z];
for(var t=0;t<f.nZ.length;t++){b++;var h=f.nZ[t],H=f.nZ[t+1];if(H==null&&z<Y.length-1)H=Y[z+1].nZ[0];
if(S!=null){if(b!=S)continue}else{if(H!=null&&f.wM.y+h.wM.y<Z.y)continue}for(var Q=h.start;Q<h.end;Q++){var e=f.eO[Q];
for(var l=e.m_;l<=e.zx;l++){var O=f.jd[l],m=O._.c,i=f.wM.x+h.wM.x+e.wM.x,y=i+O.wM.x,j=i+(l<e.zx?f.jd[l+1].wM.x:O.wM.x+m);
if(Z.x<=j||Q+1==h.end&&l==e.zx){var J=f.a3r+O.Fb,A=this.xp[J],a=A.V2&1;if(A.qZ!="\n"&&(a==0&&Z.x>y+m/2||a==1&&Z.x<y+m/2))J+=this.a0Q.codePointAt(J)>65535?2:1;
return J}}}}}};io.prototype.aO=function(Z){var S={_:new b4,M9:0},b=0;for(var Y=0;Y<this.jm.length;Y++){var P=this.jm[Y];
for(var w=0;w<P.nZ.length;w++){var f=P.nZ[w];S.M9=b;b++;for(var h=f.start;h<f.end;h++){var Q=P.eO[h];
for(var e=Q.start;e<Q.end;e++){if(e==Z){var l=this.xp[e],O=l.pO,m=P.jd[O].Fb,V=1;while(P.jd[O]!=null&&P.jd[O].Fb==m){var q=P.jd[O],K=P.wM.x+f.wM.x+Q.wM.x+q.wM.x,z=P.wM.y+f.wM.y+Q.wM.y+q.wM.y;
S._=S._.VK(new b4(K,z-l.lineHeight,q._.c,l.lineHeight));S.W0=q.W0;O+=V}return S}}}}}};io.prototype.Lu=function(){var Z=Infinity,S=Infinity,b=-Infinity,Y=-Infinity;
for(var D=0;D<this.jm.length;D++){var P=this.jm[D];for(var w=0;w<P.nZ.length;w++){var f=P.nZ[w];if(!f.QV)break;
for(var h=f.start;h<f.end;h++){var Q=P.eO[h];for(var e=Q.m_;e<=Q.zx;e++){var l=P.jd[e],O=l._,m=P.wM.x+f.wM.x+Q.wM.x+l.wM.x,V=P.wM.y+f.wM.y+Q.wM.y+l.wM.y;
Z=Math.min(Z,m+O.x);S=Math.min(S,V+O.y);b=Math.max(b,m+O.x+O.c);Y=Math.max(Y,V+O.y+O.v)}}}}return new b4(Z,S,b-Z,Y-S)};
io.s7=function(Z){return 19968<=Z&&Z<=40959||12288<=Z&&Z<=12543};io.a2o=function(Z,S,b,Y,P,w,f){var h=[w],Q=0;
for(var D=w;D<f;D++){if(b[D]==null)console.log(D,w,f,b);var e=b[D].qZ,l=e.charCodeAt(0);if(l==32||l==9){h.push(Q,D,1,D+1);
Q=0}else if(l==3851){h.push(Q+1,D+1);Q=0}else if(io.s7(l)){h.push(Q,D);Q=1}else if(D!=w&&b[D].V2!=b[D-1].V2){h.push(Q,D);
Q=1}else Q++}h.push(Q);var O=[];for(var D=0;D<h.length;D+=2){var m=h[D],V=h[D+1];if(V==0)continue;O.push(new io.a6S(Z,S,b,Y,P,m,V))}return O};
io.alK=function(Z,S,b,Y,P,w,f){var h=[0,S?S.c:1e9],Q=[];if(Y){var e=Z[w].El,l=P+(P==0?e:Z[w].lineHeight),O=l-e*.9,m=T.z.cO(Y[0],O),V=m.length,q=T.z.cO(Y[0],l),K=q.length;
if(V!=0&&K!=0){var z=0,t=0;h=[];while(z<V&&t<K){var H=Math.max(m[z],q[t]),i=m[z+1],y=q[t+1],j=Math.min(i,y);
if(H<j)h.push(H,j);if(i<y)z+=2;else t+=2}}}for(var J=0;J<h.length;J+=2){var A=h[J+1]-h[J],a=0,I=w,E=S?A-b.StartIndent-b.EndIndent-(w==0?b.FirstLineIndent:0):Infinity;
while(w!=Z.length){var c=Z[w],u=a==0||(c.xU||c.S6)||a+c._.c<E;if(!u)break;a+=c._.c;w++}Q.push(w-I)}f[0]=Q;
f[1]=h;f[2]=w};io.akQ=function(Z,S){var b=Z.length,Y=new Uint32Array(b),P=new Uint8Array(b),w=0;for(var D=0;
D<b;D++){P[D]=0;var f=Z.charCodeAt(D);Y[D]=f;if(f>w)w=f}if(w>1424)P=io.acG(Y,S);return P};io.di=function(Z,S,b,Y,P,w,f){this.eO=[];
this.nZ=[];this.wM=new ar(0,0);this.jd=null;this.eO=null;this.DB=eO.a0k(Z,Y);var h=this.DB,O=0,q="",i=0,y=1,M=0;
if(Y!=0){var Q=h.SpaceBefore;if(Q!=null)w[0]+=Q}var e=Z.EngineDict.ParagraphRun.RunLengthArray,l=e[Y];
for(var D=0;D<Y;D++)O+=e[D];var m=h._Direction?h._Direction:0;this.a3r=O;var V=eO.IU(Z).slice(O,O+l);
for(var K=0;K<V.length;K++){var z=V.charAt(K);q+=b[O+K].DB.FontCaps==0?z:z.toUpperCase()}V=q;var t=io.akQ(V,m),H=[],j=t[D]&1,J=b[O].qP;
b[O].V2=t[0];for(var D=1;D<V.length;D++){var z=b[O+D],A=t[D];z.V2=A;if(A!=j||z.qP!=J){H.push(i,y);i=D;
y=1;j=A;J=z.qP}else y++}H.push(i,y);var a=this.jd=[];for(var D=0;D<H.length;D+=2){var I=H[D],E=H[D+1],c=(b[O+I].V2&1)==0,u=V.slice(I,I+E),n=Typr.U.shapeHB(b[O+I].qP,u,c),o=[],v=0;
for(var K=0;K<n.length;K++){var x=n[K];o.push({l:x.g,Fb:x.cl,w$:x.ax,rE:x.ay,T5:x.dx,vC:x.dy})}n=o;var g=n.slice(0);
if(!c)g.reverse();for(var K=0;K<u.length;K++){while(v+1<g.length&&g[v+1].Fb<=K){v++}while(v>0&&g[v-1].Fb==K)v--;
b[O+I+K].pO=a.length+(c?v:g.length-v-1)}for(var K=0;K<n.length;K++){a.push(n[K]);n[K].Fb+=I;var z=b[O+n[K].Fb];
if(z.qZ=="\n")n[K].w$=0;if(z.qZ=="\t")n[K].w$=z.qP.head.unitsPerEm*2}}var R=eO.qH(h),X=this.eO=io.a2o(Z,S,b,O,a,O,O+l),B=this.nZ,N=-1,q=[null,null,0];
while(M<X.length){io.alK(X,P,h,f,w[0],M,q);N++;var $={start:M,end:0,_:new b4,wM:new ar(0,0),QV:!0},cT=0,fU=0;
B.push($);$.end=q[2];var eQ=$.end==X.length;function hN(g,I,bX){var aw=bX-I>>>1;for(var D=0;D<aw;D++){var hP=g[I+D];
g[I+D]=g[bX-1-D];g[bX-1-D]=hP}}for(var bI=1;bI<5;bI++){var fq=-1;for(var D=$.start;D<$.end;D++){var A=b[X[D].start].V2;
if(fq==-1&&A>=bI)fq=D;else if(fq!=-1&&A<bI){hN(X,fq,D);fq=-1}}var e9=$.end;if(m==0&&X[e9-1].xU)e9--;
if(fq!=-1)hN(X,fq,e9)}var W=q[0],L=q[1],fq=M,bd=M;for(var iw=0;iw<W.length;iw++){var d7=L[iw*2+1]-L[iw*2],d0=0;
fq=bd;bd+=W[iw];var gS=this.afR(fq,bd,X,m,P!=null);if(P){if(R==1||eQ&&R==4)d0=gS[1]+(d7-gS[0]);if(R==2||eQ&&R==5)d0=gS[1]+(d7-gS[0])/2;
if(N==0)d0+=h.FirstLineIndent;d0+=h.StartIndent}else{if(R==0)d0=h.StartIndent+h.FirstLineIndent;if(R==1)d0=-gS[0]-h.EndIndent;
if(R==2)d0=-gS[0]/2}d0+=L[iw*2];if(P&&R>2&&(R==6||!eQ))this.a8L(fq,bd,X,d7,m,d0);else{var cf=d0;for(var D=fq;
D<bd;D++){X[D].wM.x=cf;cf+=X[D]._.c}}}M=$.end;for(var D=$.start;D<$.end;D++){var dX=X[D]._.clone();dX.b6(X[D].wM);
$._=$._.VK(dX);cT=Math.max(cT,X[D].El);fU=Math.max(fU,X[D].lineHeight)}$.wM.y=N==0?0:B[N-1].wM.y+fU;
if(N==0){if(Y==0&&P)w[0]+=cT;if(Y!=0)w[0]+=fU;this.wM.y=w[0]}else w[0]+=fU;if(P)$.QV=this.wM.y+$.wM.y<P.y+P.v}var g$=h.SpaceAfter;
if(g$!=null)w[0]+=g$};io.di.prototype.afR=function(Z,S,b,Y,P){var w=0,f=0;for(var D=Z;D<S;D++)w+=b[D]._.c;
if(P){if(Y==0)for(var D=S-1;D>=Z;D--)if(b[D].xU||b[D].S6)w-=b[D]._.c;else break;if(Y==1)for(var D=Z;
D<S;D++)if(b[D].xU||b[D].S6){var h=b[D]._.c;w-=h;f-=h}else break}return[w,f]};io.di.prototype.a8L=function(Z,S,b,Y,P,w){var f=0,h=0,Q=0,e=0;
for(var D=Z;D<S;D++)if(b[D].xU)Q++;else{f+=b[D]._.c;h++}if(P==0)for(var D=S-1;D>=Z;D--)if(b[D].xU||b[D].S6){if(b[D].xU){Q--}}else break;
if(P==1)for(var D=Z;D<S;D++)if(b[D].xU||b[D].S6){if(b[D].xU){Q--;e++}}else break;if(h<=1||Q==0){if(h==1)b[Z].wM.x=w;
return}var l=(Y-f)/Q,O=-e*l;for(var D=Z;D<S;D++){if(b[D].xU)this.jd[b[D].m_]._.c=b[D]._.c=l;b[D].wM.x=w+O;
O+=b[D]._.c}};io.a6S=function(Z,S,b,Y,P,w,f){this.mz="";for(var D=0;D<f;D++)this.mz+=b[w+D].qZ;this.xU=f==1&&(b[w].qZ==" "||b[w].qZ=="\t");
this.S6=f==1&&b[w].qZ=="\n";this.start=w;this.end=w+f;this._=new b4;this.wM=new ar(0,0);this.El=0;this.lineHeight=0;
var h=0,Q=0;if(f==0){this.lineHeight=b[w].lineHeight;this.El=b[w].El;this._=new b4(0,-b[w].lineHeight,0,b[w].lineHeight)}var e=b[w].pO,l=b[w+f-1].pO;
if(l<e){var O=e;e=l;l=O}while(l+1<P.length&&P[l].Fb==P[l+1].Fb){l++}this.m_=e;this.zx=l;for(var m=e;
m<=l;m++){var V=P[m],q=b[Y+V.Fb],K=1/q.qP.head.unitsPerEm*q.DB.FontSize,i=0;if(!q.DB.AutoKerning)h+=q.DB.Kerning*2*K*q.scale.x;
var z=V.w$*K*q.scale.x;V.wM=new ar(h,0);V.W0=0;V._=new b4(0,-q.lineHeight,z,q.lineHeight);var t=Typr.U.glyphToPath(q.qP,V.l);
V.path={K:t.cmds,H:t.crds};var H=V._.clone();H.b6(V.wM);if(q.DB.Tracking!=null)i=q.DB.Tracking*.001*q.DB.FontSize;
if(q.DB.FauxBold==!0)i+=.027*q.DB.FontSize;h+=z+i;if(f==1&&(q.qZ==" "||q.qZ=="\t"))H.c+=2*i;else if(f==1&&q.qZ!=null&&io.s7(q.qZ.charCodeAt(0)))H.c+=i;
this._=this._.VK(H);this.El=Math.max(this.El,q.El);this.lineHeight=Math.max(this.lineHeight,q.lineHeight)}};
io.CS=0;io.Vt=function(){if(io.CS==2)return!0;if(io.CS==1)return!1;io.CS=1;function Z(){fetch("code/external/fribidi.wasm").then(function(S){return S.arrayBuffer()}).then(function(S){return WebAssembly.instantiate(S)}).then(function(S){var b=S.instance.exports,Y=b.memory,P=16,w=256,f=1,h=P|w,Q=P|w|f;
io.acG=function(l,O){var m=l.length,V=m*4+4+m*4+m*4+m;ab.BC(b,V+m+1e7);var q=new Uint8Array(Y.buffer),K=new Uint32Array(Y.buffer),z=b.calloc(V,1),t=z+m*4,H=t+4,i=H+m*4,y=i+m*4;
K.set(l,z>>>2);K[t>>>2]=O==0?h:Q;b.fribidi_get_bidi_types(z,m,H);b.fribidi_get_bracket_types(z,m,H,i);
b.fribidi_get_par_embedding_levels_ex(H,i,m,t,y);var j=q.slice(y,y+m);b.free(z);return j};io.CS=2;var e=new d(s.E.P,!0);
e.data={e:s.U.h4,JH:"add",Sz:bp.VE,O3:null};a2.hs.m(e)})}Typr.U.initHB("code/external/hb.wasm",Z);return!1};
function eO(){}eO.w3=function(Z){return JSON.parse(JSON.stringify(Z))};eO.uE=function(Z,S){for(var b in S)Z[b]=S[b]};
eO.nR=function(Z,S,b){var Y=eO.Cw();if(b)eO.Yg(Y,0,0,b);var P={A:new fR(1,0,0,1,Math.round(Z),Math.round(S)),HK:Y};
P.Uh=eO.Kr();P.Km=T.$e.f();P.az=new b4;return P};eO.ss=function(Z){var S=["CharacterDirection",0];for(var D=0;
D<S.length;D+=2){if(Z[S[D]]!=null&&Z[S[D]]!=S[D+1]){throw"e";console.log(S[D],Z[S[D]])}}if(Z instanceof Array)for(var D=0;
D<Z.length;D++)eO.ss(Z[D]);else if(Z instanceof Object)for(var b in Z)eO.ss(Z[b])};eO.qH=function(Z,S){if(S==null)S=Z.Justification;
var b=Z._Direction?Z._Direction:0;if(b==1){if(S==0||S==3)S++;else if(S==1||S==4)S--}return S};eO.lj=function(Z){if(Z.add==null)return;
var S=Z.HK,b=S.Curve,Y=Z.add.vmsk,P=Y.b,w=T.z.o5(P,!0).H,f=Z.A.clone();f.oN();T.z.A(w,f,w);var h=w.slice(0,8);
for(var Q=8;Q<w.length;Q+=6)h.push(w[Q-2],w[Q-1],w[Q],w[Q+1],w[Q+2],w[Q+3],w[Q+4],w[Q+5]);b.Points=h;
b.TextOnPathTRange=Y.mu.slice(0);b.Reversed=Y.No;if(eO.O$(S)==1){var b=io.Nq(S.Curve),e=T.z.$R(b[0]);
eO.oZ(S,[0,0,e.c,e.v].map(Math.round));for(var D=0;D<h.length;D+=2){h[D]-=e.x;h[D+1]-=e.y}var l=new fR(1,0,0,1,e.x,e.y);
l.concat(Z.A);Z.A=l}};eO.LY=function(Z){if(Z.add==null)return;var S=Z.add.vmsk,b=Z.HK.Curve,Y=b.Points,P={K:["M"],H:[Y[0],Y[1]]};
for(var D=0;D<Y.length;D+=8){P.K.push("C");P.H.push(Y[D+2],Y[D+3],Y[D+4],Y[D+5],Y[D+6],Y[D+7])}T.z.A(P.H,Z.A,P.H);
var w=T.z.Cp(P,!0);S.b=w;S.No=b.Reversed;S.mu=b.TextOnPathTRange.slice(0);Z.add.vogk=F.AU(w)};eO.CD=function(Z){var S={h:0,l:0,O:0};
if(Z.FillColor){var b=Z.FillColor,Y=b.Values;if(b.Type==1)S={h:Y[1]*255,l:Y[2]*255,O:Y[3]*255};else if(b.Type==2){var P={classID:"CMYC",Cyn:{t:"doub",v:Y[1]*100},Mgnt:{t:"doub",v:Y[2]*100},Ylw:{t:"doub",v:Y[3]*100},Blck:{t:"doub",v:Y[4]*100}};
S=T.W.CD(P)}else console.log("Unknown color type")}return S};eO.am7=function(Z){for(var D=0;D<Z.length;
D++){var S=Z[D].StyleSheet.StyleSheetData,b=S.FillColor;if(b&&b.Type==2){var Y=eO.CD(S);b.Type=1;b.Values=[1,Y.h/255,Y.l/255,Y.O/255]}}};
eO.Ij=function(Z,S){var b;if(eO.O$(Z.HK)==1){var Y=eO.kn(Z.HK);b=new b4(0,0,Y[2]-Y[0],Y[3]-Y[1])}else b=S.Lu();
return b};eO.Co=function(Z){var S=Z[0];for(var D=0;D<Z.length;D++)S=eO.a3o(S,Z[D]);return S};eO.a3o=function(Z,S){var b={};
for(var Y in Z)if(JSON.stringify(Z[Y])==JSON.stringify(S[Y]))b[Y]=Z[Y];return b};eO.FK=function(Z,S){var b=Z.E2,Y=-1;
for(var D=0;D<b.length;D++)if(b[D].Name==S)Y=D;if(Y==-1){Y=b.length;b.push({FontType:1,Name:S,Script:0,Synthetic:0})}Z.xp.Font=Y};
eO.IU=function(Z){return Z.EngineDict.Editor.Text.replace(/\r/g,"\n").replace(/\u0003/g,"\n")};eO.wL=function(Z,S){Z.EngineDict.Editor.Text=S.replace(/\n/g,"\r")};
eO.O$=function(Z){return Z.Curve&&Z.Curve.TextOnPathTRange[0]>=0?2:Z.EngineDict.Rendered.Shapes.Children[0].ShapeType};
eO.es=function(Z,S){var b=Z.EngineDict.Rendered.Shapes.Children[0];b.ShapeType=S;var Y=b.Cookie.Photoshop;
Y.ShapeType=S;Y.Base.ShapeType=S;if(S==0){delete Y.BoxBounds;Y.PointBase=[0,0]}if(S==1){delete Y.PointBase;
Y.BoxBounds=[0,0,1,1]}};eO.kn=function(Z){return Z.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds};
eO.oZ=function(Z,S){Z.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds=S};eO.a5V=function(Z,S){return eO.a9o(Z,eO.KL(Z,S))};
eO.KL=function(Z,S){var b=Z.EngineDict.StyleRun.RunLengthArray;return eO.gP(b,S).xr};eO.a9o=function(Z,S){var b=Z.ResourceDict.StyleSheetSet[0].StyleSheetData,Y={};
for(var P in b)Y[P]=b[P];var w=Z.EngineDict.StyleRun.RunArray[S].StyleSheet.StyleSheetData;eO.uE(Y,w);
return Y};eO.a0k=function(Z,S){var b=Z.ResourceDict.ParagraphSheetSet[0].Properties,Y={};for(var P in b)Y[P]=b[P];
var w=Z.EngineDict.ParagraphRun.RunArray[S].ParagraphSheet.Properties;eO.uE(Y,w);var f=["StartIndent","EndIndent","FirstLineIndent"];
for(var D=0;D<3;D++)if(Y[f[D]]==null)Y[f[D]]=0;return Y};eO.kk=function(Z,S,b){if(b=="")return;var Y=eO.IU(Z);
eO.wL(Z,Y.substring(0,S)+b+Y.substring(S,Y.length));var P=Z.EngineDict.StyleRun,w=P.RunLengthArray,f=eO.gP(w,S-1);
w[f.xr]+=b.length;var h=Z.EngineDict.ParagraphRun,w=h.RunLengthArray,Q=eO.gP(w,S),e=b.split("\n");if(e.length==1){w[Q.xr]+=b.length;
return}w.splice(Q.xr+1,0,w[Q.xr]-(S-Q.bf));h.RunArray.splice(Q.xr+1,0,eO.w3(h.RunArray[Q.xr]));w[Q.xr]-=w[Q.xr+1];
w[Q.xr]+=e[0].length+1;for(var D=1;D<e.length-1;D++){h.RunArray.splice(Q.xr+D,0,eO.w3(h.RunArray[Q.xr+D-1]));
h.RunLengthArray.splice(Q.xr+D,0,e[D].length+1)}w[Q.xr+e.length-1]+=e[e.length-1].length};eO.hd=function(Z,S,b){var Y=eO.IU(Z);
eO.wL(Z,Y.substring(0,S)+Y.substring(b,Y.length));eO.SX(Z.EngineDict.ParagraphRun,S,b,!0);eO.SX(Z.EngineDict.StyleRun,S,b,!1)};
eO.SX=function(Z,S,b,Y){var P=Z.RunLengthArray,w=eO.gP(P,S),f=eO.gP(P,b),h=[];for(var D=0;D<P.length;
D++)for(var Q=0;Q<P[D];Q++)h.push(D);h.splice(S,b-S);var e=[];for(var D=0;D<P.length;D++)e.push(0);for(var D=0;
D<h.length;D++)e[h[D]]++;for(var D=0;D<P.length;D++){if(e[D]==0){e.splice(D,1);P.splice(D,1);Z.RunArray.splice(D,1);
D--}else if(e[D]<P[D])P[D]=e[D]}if(Y&&w.xr!=f.xr&&w.bf!=S){P[w.xr]+=P[w.xr+1];P.splice(w.xr+1,1);Z.RunArray.splice(w.xr+1,1)}};
eO.Yg=function(Z,S,b,Y){var P=Z.EngineDict.Editor.Text.length;if(b==P-2)b++;if(Y.xp.Font!=null)Z.ResourceDict.FontSet=Y.E2.slice(0);
if(S<=b)eO.Jh(Z.EngineDict.StyleRun,Y.xp,S,b,!0);eO.Jh(Z.EngineDict.ParagraphRun,Y.jm,S,b,!1)};eO.Jh=function(Z,S,b,Y,P){var w=Z.RunLengthArray;
if(P){var f=eO.gP(w,b);if(f.bf!=b){var h=w[f.xr];w.splice(f.xr,0,b-f.bf);w[f.xr+1]=h-w[f.xr];Z.RunArray.splice(f.xr+1,0,eO.w3(Z.RunArray[f.xr]))}var Q=eO.gP(w,Y);
if(Q.bf+w[Q.xr]-1!=Y){var h=w[Q.xr];w.splice(Q.xr,0,Y-Q.bf+1);w[Q.xr+1]=h-w[Q.xr];Z.RunArray.splice(Q.xr+1,0,eO.w3(Z.RunArray[Q.xr]))}}var f=eO.gP(w,b),Q=eO.gP(w,Y);
if(P)for(var D=f.xr;D<=Q.xr;D++)eO.uE(Z.RunArray[D].StyleSheet.StyleSheetData,S);else for(var D=f.xr;
D<=Q.xr;D++)eO.uE(Z.RunArray[D].ParagraphSheet.Properties,S)};eO.a6n=function(Z,S,b){var Y=Z.EngineDict.StyleRun.RunLengthArray,P=[],w=0;
for(var D=0;D<Y.length;D++){var f=Y[D];for(var h=0;h<f;h++)if(S<=w+h&&w+h<b)P.push(D);w+=f}var Q=P[0],e=[];
for(var D=0;D<P.length;D++){var l=P[D]-Q;if(l==e.length)e.push(0);e[l]++}return e};eO.anv=function(Z){var S=Z.EngineDict.StyleRun,b=S.RunArray,Y=S.RunLengthArray;
for(var D=0;D<Y.length-1;D++){var P=b[D].StyleSheet.StyleSheetData,w=b[D+1].StyleSheet.StyleSheetData;
if(JSON.stringify(P)==JSON.stringify(w)){b.splice(D+1,1);Y[D]+=Y[D+1];Y.splice(D+1,1);D--}}};eO.PM=function(Z){var S=Z.Uh.AntA.v.Annt;
S=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"].indexOf(S);if(S==-1)S=1;return S};eO.vF=function(Z,S){Z.Uh.AntA.v.Annt=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"][S]};
eO.SZ=function(Z,S,b){var Y={E2:Z.ResourceDict.FontSet.slice(0),xp:[],jm:[]},P=Z.EngineDict.StyleRun.RunLengthArray,w=eO.gP(P,S).xr,f=eO.gP(P,b).xr;
for(var D=w;D<=f;D++){var h=eO.w3(Z.ResourceDict.StyleSheetSet[0].StyleSheetData),Q=Z.EngineDict.StyleRun.RunArray;
if(Q.length==0)continue;var e=Q[D].StyleSheet.StyleSheetData;eO.uE(h,e);Y.xp.push(h)}var l=Z.EngineDict.ParagraphRun.RunLengthArray,O=eO.gP(l,S).xr,m=eO.gP(l,b).xr;
for(var D=O;D<=m;D++){var V=Z.EngineDict.ParagraphRun.RunArray;if(V.length==0)continue;Y.jm.push(eO.w3(V[D].ParagraphSheet.Properties))}Y.xp=Y.xp.length==0?{}:eO.Co(Y.xp);
Y.jm=Y.jm.length==0?{}:eO.Co(Y.jm);return Y};eO.b2=function(Z,S){var b,Y;b=["FontSize","Leading","BaselineShift"];
Y=Z.xp;for(var D=0;D<b.length;D++)if(Y[b[D]]!=null)Y[b[D]]*=S;b=["StartIndent","EndIndent","FirstLineIndent","SpaceBefore","SpaceAfter"];
Y=Z.jm;for(var D=0;D<b.length;D++)if(Y[b[D]]!=null)Y[b[D]]*=S};eO.anA=function(){return eO.SZ(eO.PT,0,0)};
eO.Kr=function(){return{classID:"TxLr",Txt:{t:"TEXT",v:"\0"},textGridding:{t:"enum",v:{textGridding:"None"}},Ornt:{t:"enum",v:{Ornt:"Hrzn"}},AntA:{t:"enum",v:{Annt:"antiAliasSharp"}},TextIndex:{t:"long",v:0}}};
eO.gP=function(Z,S){var b=0,D=0;while(b+Z[D]<=S){b+=Z[D];D++}return{xr:D,bf:b}};eO.Cw=function(){var Z=eO.w3(this.PT);
return Z};eO._P={Justification:0,FirstLineIndent:0,StartIndent:0,EndIndent:0,SpaceBefore:0,SpaceAfter:0,AutoHyphenate:!1,HyphenatedWordSize:6,PreHyphen:2,PostHyphen:2,ConsecutiveHyphens:8,Zone:36,WordSpacing:[.8,1,1.33],LetterSpacing:[0,0,0],GlyphSpacing:[1,1,1],AutoLeading:1.2,LeadingType:0,Hanging:!1,Burasagari:!1,KinsokuOrder:0,EveryLineComposer:!1,_Direction:0};
eO.adt={Font:0,FontSize:12,FauxBold:!1,FauxItalic:!1,AutoLeading:!0,Leading:0,HorizontalScale:1,VerticalScale:1,Tracking:0,AutoKerning:!0,Kerning:0,BaselineShift:0,FontCaps:0,FontBaseline:0,Underline:!1,Strikethrough:!1,Ligatures:!0,DLigatures:!1,BaselineDirection:2,Tsume:0,StyleRunAlignment:2,Language:0,NoBreak:!1,FillColor:{Type:1,Values:[1,0,0,0]},StrokeColor:{Type:1,Values:[1,0,0,0]},FillFlag:!0,StrokeFlag:!1,FillFirst:!0,YUnderline:1,OutlineWidth:1,CharacterDirection:0,HindiNumbers:!1,Kashida:1,DiacriticPos:2};
eO.PT={EngineDict:{Editor:{Text:"\n"},ParagraphRun:{DefaultRunData:{ParagraphSheet:{DefaultStyleSheet:0,Properties:{}},Adjustments:{Axis:[1,0,1],XY:[0,0]}},RunArray:[{ParagraphSheet:{DefaultStyleSheet:0,Properties:JSON.parse(JSON.stringify(eO._P))},Adjustments:{Axis:[1,0,1],XY:[0,0]}}],RunLengthArray:[1],IsJoinable:1},StyleRun:{DefaultRunData:{StyleSheet:{StyleSheetData:{}}},RunArray:[{StyleSheet:{StyleSheetData:{Font:0,FontSize:24,AutoKerning:!0,Kerning:0}}}],RunLengthArray:[1],IsJoinable:2},GridInfo:{GridIsOn:!1,ShowGrid:!1,GridSize:18,GridLeading:22,GridColor:{Type:1,Values:[0,0,0,1]},GridLeadingFillColor:{Type:1,Values:[0,0,0,1]},AlignLineHeightToGridFlags:!1},AntiAlias:4,UseFractionalGlyphWidths:!0,Rendered:{Version:1,Shapes:{WritingDirection:0,Children:[{ShapeType:0,Procession:0,Lines:{WritingDirection:0,Children:[]},Cookie:{Photoshop:{ShapeType:0,PointBase:[0,0],Base:{ShapeType:0,TransformPoint0:[1,0],TransformPoint1:[0,1],TransformPoint2:[0,0]}}}}]}}},ResourceDict:{KinsokuSet:[{Name:"PhotoshopKinsokuHard",NoStart:"\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u30FC\u2015\u2019\u201D\uFF09\u3015\uFF3D\uFF5D\u3009\u300B\u300D\u300F\u3011\u30FD\u30FE\u309D\u309E\u3005\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u309B\u309C?!)]},.:;\u2103\u2109\xA2\uFF05\u2030",NoEnd:"\u2018\u201C\uFF08\u3014\uFF3B\uFF5B\u3008\u300A\u300C\u300E\u3010([{\uFFE5\uFF04\xA3\uFF20\xA7\u3012\uFF03",Keep:"\u2015\u2025",Hanging:"\u3001\u3002.,"},{Name:"PhotoshopKinsokuSoft",NoStart:"\u3001\u3002\uFF0C\uFF0E\u30FB\uFF1A\uFF1B\uFF1F\uFF01\u2019\u201D\uFF09\u3015\uFF3D\uFF5D\u3009\u300B\u300D\u300F\u3011\u30FD\u30FE\u309D\u309E\u3005",NoEnd:"\u2018\u201C\uFF08\u3014\uFF3B\uFF5B\u3008\u300A\u300C\u300E\u3010",Keep:"\u2015\u2025",Hanging:"\u3001\u3002.,"}],MojiKumiSet:[{InternalName:"Photoshop6MojiKumiSet1"},{InternalName:"Photoshop6MojiKumiSet2"},{InternalName:"Photoshop6MojiKumiSet3"},{InternalName:"Photoshop6MojiKumiSet4"}],TheNormalStyleSheet:0,TheNormalParagraphSheet:0,ParagraphSheetSet:[{Name:"Normal RGB",DefaultStyleSheet:0,Properties:JSON.parse(JSON.stringify(eO._P))}],StyleSheetSet:[{Name:"Normal RGB",StyleSheetData:JSON.parse(JSON.stringify(eO.adt))}],FontSet:[{Name:"DejaVuSans",Script:0,FontType:1,Synthetic:0},{Name:"AdobeInvisFont",Script:0,FontType:0,Synthetic:0},{Name:"MyriadHebrew-Regular",Script:6,FontType:0,Synthetic:0}],SuperscriptSize:.583,SuperscriptPosition:.333,SubscriptSize:.583,SubscriptPosition:.333,SmallCapSize:.7}};
var cs={};cs.ak8=function(Z){var S=cs.a7J(Z._0,Z._1);cs.abg(S,Z._0);return S};cs.a5m=function(Z,S,b){var Y={};
Y._98={_0:"i7"};Y._0=cs.a3J(Z,S,b?b._0:null);Y._1=cs.a3C(Z,S,Y._0,b?b._1:null);return Y};cs.a3J=function(Z,S,b){var Y={};
Y._1=cs.acX(Z,b?b._1:null);Y._2={_0:[{_0:{_0:"s"}}],_1:[{_0:"i0"}]};Y._3=JSON.parse(JSON.stringify(cs.a7X));
Y._4=JSON.parse(JSON.stringify(cs.acp));Y._5=cs.ajw(Z,Y._1._0,b?b._5:null);Y._6=cs.a9a(Z,b?b._6:null);
Y._8=cs.ag$(Z,S,b?b._8:null);Y._9=cs.aj2;return Y};cs.abg=function(Z,S){cs.a2v(Z,S._5,S._1._0)};cs.acX=function(Z,S){var b=[],Y=[];
for(var D=0;D<Z.length;D++){var P=Z[D].ResourceDict.FontSet;for(var w=0;w<P.length;w++){var f=P[w];if(Y.indexOf(f.Name)!=-1)continue;
b.push(f);Y.push(f.Name)}}var h={_0:[]};for(var D=0;D<b.length;D++){var Q=b[D],e={_0:{_99:"/CoolTypeFont",_0:{_0:"s"+Q.Name,_1:"i"+Q.Script,_2:"i"+Q.FontType}}};
if(Q.Script==0)delete e._0._0._1;h._0.push(e)}return h};cs.ajw=function(Z,S,b){var Y={_0:[],_1:[]},P={_0:JSON.parse(JSON.stringify(cs.fX))};
cs.m8(P._0,Z[0].ResourceDict.StyleSheetSet[0],S,Z[0].ResourceDict.FontSet);Y._0.push(P);Y._1.push({_0:"i0"});
Y._0.push({_0:{_0:"sNone",_5:"i0",_6:{}}});Y._1.push({_0:"i1"});return Y};cs.a2v=function(Z,S,b){var Y=S._0[0];
for(var D=0;D<Z.length;D++)cs.f2(Y._0,Z[D].ResourceDict.StyleSheetSet[0],b,Z[D].ResourceDict.FontSet)};
cs.a9a=function(Z,S){var b={_0:[],_1:[]},Y={_0:JSON.parse(JSON.stringify(cs.FC))};cs.y$(Y._0,Z[0].ResourceDict.ParagraphSheetSet[0]);
b._0.push(Y);b._1.push({_0:"i0"});Y={_0:JSON.parse(JSON.stringify(cs.FC))};cs.y$(Y._0,Z[0].ResourceDict.ParagraphSheetSet[0]);
Y._0._0="sBasic Paragraph";Y._0._6="i0";b._0.push(Y);b._1.push({_0:"i1"});return b};cs.ag$=function(Z,S,b){var Y={_0:[]};
for(var D=0;D<Z.length;D++){var P=Z[D].Curve,w={};Y._0.push({_0:w});var f=eO.O$(Z[D]);w._2={};w._2._0="i"+f;
if(f==0){w._2._6=["f-1","f-1"];w._2._11={_4:"i-1",_7:!1}}else if(f==1&&P==null){var h=eO.kn(Z[D]),Q=h[2],e=h[3];
w._1={_0:cs.yr("f",[0,0,0,0,Q,0,Q,0,Q,0,Q,0,Q,e,Q,e,Q,e,Q,e,0,e,0,e,0,e,0,e,0,0,0,0])};w._2._6=["f-2","f-2"];
w._2._11={_4:"i-2",_7:!1}}else if(f==1){var h=eO.kn(Z[D]),Q=h[2],e=h[3];w._1={_0:cs.yr("f",P.Points)};
w._2._6=["f-3","f-3"];w._2._11={_4:"i-3",_7:!1}}else if(f==2){w._1={_0:cs.yr("f",P.Points)};w._2._6=cs.yr("f",P.TextOnPathTRange);
w._2._11={_0:P.Reversed,_3:"i0",_5:"f0",_7:!1}}}return Y};cs.a3C=function(Z,S,b,Y){var P={};P._0=JSON.parse(JSON.stringify(cs.ad9));
P._1=cs.anP(Z,S,b,Y?Y._1:null);P._2=JSON.parse(JSON.stringify(cs.fX._6));P._3=JSON.parse(JSON.stringify(cs.FC._5));
return P};cs.a7J=function(Z,S){return cs.ak5(Z,S._1)};cs.anP=function(Z,S,b,Y){var P=[],w=b._1._0;for(var D=0;
D<Z.length;D++){var f=Z[D],h={_0:{}};P.push(h);var Q=Y?Y[D]:null;h._0._0="s"+f.EngineDict.Editor.Text;
h._0._0=h._0._0;var e={_0:[]};h._0._5=e;var l=f.EngineDict.ParagraphRun;for(var O=0;O<l.RunArray.length;
O++){var m={_0:{}};e._0.push(m);m._0._0={_0:"s",_5:{},_6:"i1"};cs.y$(m._0._0,l.RunArray[O].ParagraphSheet);
m._1="i"+l.RunLengthArray[O]}var V={_0:[]};h._0._6=V;var q=Q?Q._0._6:null;l=f.EngineDict.StyleRun;for(var O=0;
O<l.RunArray.length;O++){var K={_0:{}};V._0.push(K);var z=q?q._0:null;K._0._0={_0:"s",_5:"i1",_6:{}};
cs.m8(K._0._0,l.RunArray[O].StyleSheet,w,f.ResourceDict.FontSet,z?K._0._0:null);K._1="i"+l.RunLengthArray[O]}h._0._10={_0:"i4",_2:!0};
h._1=cs.view.a63(f,null,D,null)}return P};cs.ak5=function(Z,S){var b=[],Y=Z._1._0;for(var D=0;D<S.length;
D++){var P=eO.Cw();b.push(P);var w=S[D];P.EngineDict.Editor.Text=w._0._0.slice(1);var f=P.EngineDict.ParagraphRun.RunArray[0],h=P.EngineDict.ParagraphRun,Q=w._0._5;
for(var e=0;e<Q._0.length;e++){var l=Q._0[e];h.RunLengthArray[e]=parseInt(l._1.slice(1));h.RunArray[e]=JSON.parse(JSON.stringify(f));
cs.a5Z(l._0._0,h.RunArray[e].ParagraphSheet)}var O=w._0._6;h=P.EngineDict.StyleRun;if(O)for(var e=0;
e<O._0.length;e++){var m=O._0[e];h.RunLengthArray[e]=parseInt(m._1.slice(1));h.RunArray[e]={StyleSheet:{StyleSheetData:{}}};
cs.f2(m._0._0,h.RunArray[e].StyleSheet,Y,P.ResourceDict.FontSet)}else{h.RunLengthArray[0]=eO.IU(P).length;
h.RunArray[0]={StyleSheet:{StyleSheetData:{}}}}}return b};cs.m8=function(Z,S,b,Y,P){Z._0="s"+(S.Name?S.Name:"");
var w=Z._6,f=P?P._6:null,h=S.StyleSheetData;if(h.Font==null)return;var Q=Y[h.Font].Name,e=-1;for(var D=0;
D<b.length;D++)if("s"+Q==b[D]._0._0._0){e=D;break}w._0="i"+e;if(h.FontSize!=null)w._1="f"+h.FontSize;
if(h.FauxBold!=null)w._2=h.FauxBold;if(h.FauxItalic!=null)w._3=h.FauxItalic;if(h.AutoLeading!=null)w._4=h.AutoLeading;
if(h.Leading!=null)w._5="f"+h.Leading;if(h.HorizontalScale!=null)w._6="f"+h.HorizontalScale;if(h.VerticalScale!=null)w._7="f"+h.VerticalScale;
if(h.Tracking!=null)w._8="i"+h.Tracking;if(h.BaselineShift!=null)w._9="f"+h.BaselineShift;if(h.AutoKerning!=null)w._11="i"+(h.AutoKerning?1:0);
if(h.FontCaps!=null)w._12="i"+h.FontCaps;if(h.FontBaseline!=null)w._13="i"+h.FontBaseline;if(h.Strikethrough!=null)w._15="i"+(h.Strikethrough?1:0);
if(h.Underline!=null)w._16="i"+(h.Underline?2:0);if(h.Ligatures!=null)w._18=h.Ligatures;if(h.DLigatures!=null)w._19=h.DLigatures;
if(h.Language!=null)w._38="i"+h.Language;if(h.FillColor!=null)w._53={_99:"/SimplePaint",_0:{_0:"i1",_1:cs.yr("f",h.FillColor.Values)}}};
cs.f2=function(Z,S,b,Y){var P=Z._6;if(P==null)return;var w=S.StyleSheetData;if(P._0){var f=parseInt(P._0.slice(1)),h=b[f]._0._0._0.slice(1);
eO.FK({xp:w,E2:Y},h)}if(P._1!=null)w.FontSize=parseFloat(P._1.slice(1));if(P._2!=null)w.FauxBold=P._2;
if(P._3!=null)w.FauxItalic=P._3;if(P._4!=null)w.AutoLeading=P._4;if(P._5!=null)w.Leading=parseFloat(P._5.slice(1));
if(P._6!=null)w.HorizontalScale=parseFloat(P._6.slice(1));if(P._7!=null)w.VerticalScale=parseFloat(P._7.slice(1));
if(P._8!=null)w.Tracking=parseFloat(P._8.slice(1));if(P._9!=null)w.BaselineShift=parseFloat(P._9.slice(1));
if(P._11!=null)w.AutoKerning=parseFloat(P._11.slice(1))==1;if(P._12!=null)w.FontCaps=parseFloat(P._12.slice(1));
if(P._13!=null)w.FontBaseline=parseFloat(P._13.slice(1));if(P._15!=null)w.Strikethrough=parseFloat(P._15.slice(1))==1;
if(P._16!=null)w.Underline=parseFloat(P._16.slice(1))==1;if(P._18!=null)w.Ligatures=P._18;if(P._19!=null)w.DLigatures=P._19;
if(P._38!=null)w.Language=parseFloat(P._38.slice(1));var Q=P._53;if(Q){var e=Q._0._0,l=Q._0._1,O=[1,0,0,0],m=[];
for(var D=0;D<l.length;D++)m[D]=parseFloat(l[D].slice(1));if(e=="i0")O[1]=O[2]=O[3]=m[1];else if(e=="i1")O=m;
else if(e=="i2")O=[1].concat(UDOC.C.cmykToRgb(m.slice(1)));else console.log("unknown color type",e,m);
w.FillColor={Type:1,Values:O}}};cs.y$=function(Z,S){Z._0="s"+(S.Name?S.Name:"");var b=Z._5,Y=S.Properties;
if(Y.Justification!=null)b._0="i"+Y.Justification;if(Y.FirstLineIndent!=null)b._1="f"+Y.FirstLineIndent;
if(Y.StartIndent!=null)b._2="f"+Y.StartIndent;if(Y.EndtIndent!=null)b._3="f"+Y.EndtIndent;if(Y.SpaceBefore!=null)b._4="f"+Y.SpaceBefore;
if(Y.SpaceAfter!=null)b._5="f"+Y.SpaceAfter;if(Y.AutoHyphenate!=null)b._9=Y.AutoHyphenate;if(Y._Direction!=null)b._33="i"+Y._Direction};
cs.a5Z=function(Z,S){var b=Z._5;if(b==null)return;var Y=S.Properties;if(b._0)Y.Justification=parseInt(b._0.slice(1))};
cs.yr=function(Z,S){var b=[];for(var D=0;D<S.length;D++)b.push(Z+S[D]);return b};cs.a7X={_0:[{_0:{_0:"sPhotoshop6MojiKumiSet4",_5:{_0:"i0",_3:"i2"}}},{_0:{_0:"sPhotoshop6MojiKumiSet3",_5:{_0:"i0",_3:"i4"}}},{_0:{_0:"sPhotoshop6MojiKumiSet2",_5:{_0:"i0",_3:"i3"}}},{_0:{_0:"sPhotoshop6MojiKumiSet1",_5:{_0:"i0",_3:"i1"}}},{_0:{_0:"sYakumonoHankaku",_5:{_0:"i0",_3:"i1"}}},{_0:{_0:"sGyomatsuYakumonoHankaku",_5:{_0:"i0",_3:"i3"}}},{_0:{_0:"sGyomatsuYakumonoZenkaku",_5:{_0:"i0",_3:"i4"}}},{_0:{_0:"sYakumonoZenkaku",_5:{_0:"i0",_3:"i2"}}}],_1:[{_0:"i0"},{_0:"i1"},{_0:"i2"},{_0:"i3"},{_0:"i4"},{_0:"i5"},{_0:"i6"},{_0:"i7"}]};
cs.acp={_0:[{_0:{_0:"sNone",_5:{_0:"s",_1:"s",_2:"s",_3:"s",_4:"i0"}}},{_0:{_0:"sPhotoshopKinsokuHard",_5:{_0:"s!),.:;?]}\xA2\u2014\u2019\u201D\u2030\u2103\u2109\u3001\u3002\u3005\u3009\u300B\u300A\u300F\u3011\u3015\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u309B\u309C\u309D\u309E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u30FB\u30FC\u30FD\u30FE\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D",_1:"s([{\xA3\xA7\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3012\u3014\uFF03\uFF04\uFF08\uFF20\uFF3B\uFF5B\uFFE5",_2:"s\u2014\u2025\u2026",_3:"s\u3001\u3002\uFF0C\uFF0E",_4:"i1"}}},{_0:{_0:"sPhotoshopKinsokuSoft",_5:{_0:"s\u2019\u201D\u3001\u3002\u3005\u3009\u300B\u300A\u300F\u3011\u3015\u309D\u309E\u30FB\u30FD\u30FE\uFF01\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D",_1:"s\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B",_2:"s\u2014\u2025\u2026",_3:"s\u3001\u3002\uFF0C\uFF0E",_4:"i2"}}},{_0:{_0:"sHard",_5:{_0:"s!),.:;?]}\xA2\u2014\u2019\u201D\u2030\u2103\u2109\u3001\u3002\u3005\u3009\u300B\u300A\u300F\u3011\u3015\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u309B\u309C\u309D\u309E\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u30FB\u30FC\u30FD\u30FE\uFF01\uFF05\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D",_1:"s([{\xA3\xA7\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3012\u3014\uFF03\uFF04\uFF08\uFF20\uFF3B\uFF5B\uFFE5",_2:"s\u2014\u2025\u2026",_3:"s\u3001\u3002\uFF0C\uFF0E",_4:"i1"}}},{_0:{_0:"sSoft",_5:{_0:"s\u2019\u201D\u3001\u3002\u3005\u3009\u300B\u300A\u300F\u3011\u3015\u309D\u309E\u30FB\u30FD\u30FE\uFF01\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D",_1:"s\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B",_2:"s\u2014\u2025\u2026",_3:"s\u3001\u3002\uFF0C\uFF0E",_4:"i2"}}}],_1:[{_0:"i0"},{_0:"i1"},{_0:"i2"},{_0:"i3"},{_0:"i4"}]};
cs.fX={_0:"sNormal RGB",_6:{_0:"i0",_1:"f12",_2:!1,_3:!1,_4:!0,_5:"f0",_6:"f1",_7:"f1",_8:"i0",_9:"f0",_10:"f0",_11:"i1",_12:"i0",_13:"i0",_14:"i0",_15:"i0",_16:"i0",_17:"f0",_18:!0,_19:!1,_20:!1,_21:!1,_22:!1,_23:!1,_24:!1,_25:!1,_26:!1,_27:!1,_28:!1,_29:!1,_30:"i0",_31:!1,_32:!1,_33:!1,_34:!1,_35:"i2",_36:"f0",_37:"i2",_38:"i0",_39:"i0",_40:!1,_41:"i2",_42:"i0",_43:{_0:"f.5"},_44:"i2",_45:"i2",_46:"i7",_47:"i0",_48:"i0",_49:"f-1",_50:"f-1",_51:"i0",_52:!1,_53:{_99:"/SimplePaint",_0:{_0:"i1",_1:["f1","f0","f0","f0"]}},_54:{_99:"/SimplePaint",_0:{_0:"i1",_1:["f1","f0","f0","f0"]}},_55:{_99:"/SimpleBlender"},_56:!0,_57:!1,_58:!0,_59:!1,_60:!1,_61:"i0",_62:"i0",_63:"f1",_64:"f4",_65:"f0",_66:[],_67:[],_68:"i0",_69:"i0",_70:"i0",_71:"i4",_72:"f0",_73:"f0",_74:!1,_75:!1,_76:!1,_77:!0,_78:!0,_79:{_99:"/SimplePaint",_0:{_0:"i1",_1:["f1","f1","f1","f0"]}},_80:!1,_81:"i0",_82:"f3",_83:"f3",_84:!1,_85:"i0",_86:{_99:"/SimpleCustomFeature"},_87:"f100",_88:!0}};
cs.FC={_0:"sNormal RGB",_5:{_0:"i0",_1:"f0",_2:"f0",_3:"f0",_4:"f0",_5:"f0",_6:"i1",_7:"f1.2",_8:"i0",_9:!0,_10:"i6",_11:"i2",_12:"i2",_13:"i0",_14:"f36",_15:!0,_16:"f.5",_17:["f.8","f1","f1.33"],_18:["f0","f0","f0"],_19:["f1","f1","f1"],_20:"i6",_21:!1,_22:"i0",_23:!0,_24:"i0",_25:"i0",_27:"/nil",_26:!1,_28:"/nil",_29:!1,_30:{},_31:"f36",_32:{},_33:"i0",_34:"i7",_35:"i1",_36:"/nil",_37:"i0",_38:!1,_39:"i0",_40:"i2"}};
cs.aj2={_0:[{_0:{_0:"skPredefinedNumericListStyleTag",_6:"i1"}},{_0:{_0:"skPredefinedUppercaseAlphaListStyleTag",_6:"i2"}},{_0:{_0:"skPredefinedLowercaseAlphaListStyleTag",_6:"i3"}},{_0:{_0:"skPredefinedUppercaseRomanNumListStyleTag",_6:"i4"}},{_0:{_0:"skPredefinedLowercaseRomanNumListStyleTag",_6:"i5"}},{_0:{_0:"skPredefinedBulletListStyleTag",_6:"i6"}}],_1:[{_0:"i0"},{_0:"i1"},{_0:"i2"},{_0:"i3"},{_0:"i4"},{_0:"i5"}]};
cs.ad9={_0:{_0:"i1",_1:[{_0:"s ",_1:"s1"},{_0:"s\r",_1:"s6"},{_0:"s\t",_1:"s0"},{_0:"s\u2029",_1:"s5"},{_0:"s\x03",_1:"s5"},{_0:"s\u3000",_1:"s1"},{_0:"s\xAD",_1:"s3"}]},_1:"i0",_2:"i0",_3:"f.583",_4:"f.333",_5:"f.583",_6:"f.333",_7:"f.7",_8:!0,_9:[{_0:"i0",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i1",_1:"s\u201D",_2:"s\u201D",_3:"s\u2019",_4:"s\u2019"},{_0:"i2",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i3",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i4",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i5",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i6",_1:"s\xAB",_2:"s\xBB",_3:"s\u2039",_4:"s\u203A"},{_0:"i7",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i8",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i9",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i10",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i11",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i12",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i13",_1:"s\u201D",_2:"s\u201D",_3:"s\u2019",_4:"s\u2019"},{_0:"i14",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i15",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i16",_1:"s\u201D",_2:"s\u201D",_3:"s\u2019",_4:"s\u2019"},{_0:"i17",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i18",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i19",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i20",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i21",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i22",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i23",_1:"s\u201E",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i24",_1:"s\u201E",_2:"s\u201D",_3:"s\u201A",_4:"s\u2019"},{_0:"i25",_1:"s\xAB",_2:"s\xBB",_3:"s\u2039",_4:"s\u203A"},{_0:"i26",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i27",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i28",_1:"s\u201E",_2:"s\u201D",_3:"s\u2019",_4:"s\u2019"},{_0:"i29",_1:"s\u301D",_2:"s\u301E"},{_0:"i30",_1:"s\u300C",_2:"s\u300D"},{_0:"i31",_1:"s\u201E",_2:"s\u201C",_3:"s\u2018",_4:"s\u2019"},{_0:"i32",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i33",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i34",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i35",_1:"s\u201C",_2:"s\u201D",_3:"s\u2018",_4:"s\u2019"},{_0:"i36",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i37",_1:"s\xAB",_2:"s\xBB",_3:"s\u2018",_4:"s\u2019"},{_0:"i38",_1:"s\u201E",_2:"s\u201C",_3:"s\u201A",_4:"s\u2018"},{_0:"i39",_1:"s\xAB",_2:"s\xBB",_3:"s<",_4:"s>"},{_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 gP={};gP.akG=function(Z){return gP.hF(Z,gP.t0,0)};gP.a9h=function(Z){return gP.wb(Z,gP.t0)};gP.hF=function(Z,S,b){var Y;
if(typeof Z=="string")return Z;if(Z instanceof Array){Y=[];for(var D=0;D<Z.length;D++)Y[D]=gP.hF(Z[D],S,b+1)}else{Y={};
var P={};for(var w in S){var f=S[w],h="_"+f[0];if(Z[h]!=null){Y[w]=f[1]?gP.hF(Z[h],f[1],b+1):Z[h];P[h]=!0}}for(var w in Z){if(P[w]==null){console.log(S,P);
console.log(w,Z,S);throw"e"}}}return Y};gP.wb=function(Z,S){var b;if(Z instanceof Array){b=[];for(var D=0;
D<Z.length;D++)b[D]=gP.wb(Z[D],S)}else{b={};var Y={};for(var P in S){var w=S[P],f="_"+w[0];if(Z[P]!=null){b[f]=w[1]?gP.wb(Z[P],w[1]):Z[P];
Y[P]=!0}}for(var P in Z){if(Y[P]==null){console.log(S,Y);console.log(P,Z);throw"e"}}}return b};gP.fz={_StreamTag:[99],_5:[5],_Color:[0,{_Type:[0],_Values:[1]}]};
gP.JO={_Font:[0],_FontSize:[1],_FauxBold:[2],_FauxItalic:[3],_AutoLeading:[4],_Leading:[5],_HorizontalScale:[6],_VerticalScale:[7],_Tracking:[8],_BaselineShift:[9],_CharacterRotation:[10],_AutoKern:[11],_FontCaps:[12],_FontBaseline:[13],_FontOTPosition:[14],_StrikethroughPosition:[15],_UnderlinePosition:[16],_UnderlineOffset:[17],_Ligatures:[18],_DiscretionaryLigatures:[19],_ContextualLigatures:[20],_AlternateLigatures:[21],_OldStyle:[22],_Fractions:[23],_Ordinals:[24],_Swash:[25],_Titling:[26],_ConnectionForms:[27],_StylisticAlternates:[28],_Ornaments:[29],_FigureStyle:[30],_ProportionalMetrics:[31],_Kana:[32],_Italics:[33],_Ruby:[34],_BaselineDirection:[35],_Tsume:[36],_StyleRunAlignment:[37],_Language:[38],_JapaneseAlternateFeature:[39],_EnableWariChu:[40],_WariChuLineCount:[41],_WariChuLineGap:[42],_WariChuSubLineAmount:[43,{_WariChuSubLineScale:[0]}],_WariChuWidowAmount:[44],_WariChuOrphanAmount:[45],_WariChuJustification:[46],_TCYUpDownAdjustment:[47],_TCYLeftRightAdjustment:[48],_LeftAki:[49],_RightAki:[50],_JiDori:[51],_NoBreak:[52],_FillColor:[53,gP.fz],_StrokeColor:[54,gP.fz],_Blend:[55,{_StreamTag:[99]}],_FillFlag:[56],_StrokeFlag:[57],_FillFirst:[58],_FillOverPrint:[59],_StrokeOverPrint:[60],_LineCap:[61],_LineJoin:[62],_LineWidth:[63],_MiterLimit:[64],_LineDashOffset:[65],_LineDashArray:[66],_Type1EncodingNames:[67],_Kashidas:[68],_DirOverride:[69],_DigitSet:[70],_DiacVPos:[71],_DiacXOffset:[72],_DiacYOffset:[73],_OverlapSwash:[74],_JustificationAlternates:[75],_StretchedAlternates:[76],_FillVisibleFlag:[77],_StrokeVisibleFlag:[78],_FillBackgroundColor:[79,gP.fz],_FillBackgroundFlag:[80],_UnderlineStyle:[81],_DashedUnderlineGapLength:[82],_DashedUnderlineDashLength:[83],_SlashedZero:[84],_StylisticSets:[85],_CustomFeature:[86,{_StreamTag:[99]}],_MarkYDistFromBaseline:[87],_AutoMydfb:[88]};
gP.V5={_Justification:[0],_FirstLineIndent:[1],_StartIndent:[2],_EndIndent:[3],_SpaceBefore:[4],_SpaceAfter:[5],_DropCaps:[6],_AutoLeading:[7],_LeadingType:[8],_AutoHyphenate:[9],_HyphenatedWordSize:[10],_PreHyphen:[11],_PostHyphen:[12],_ConsecutiveHyphens:[13],_Zone:[14],_HyphenateCapitalized:[15],_HyphenationPreference:[16],_WordSpacing:[17],_LetterSpacing:[18],_GlyphSpacing:[19],_SingleWordJustification:[20],_Hanging:[21],_AutoTCY:[22],_KeepTogether:[23],_BurasagariType:[24],_KinsokuOrder:[25],_Kinsoku:[27],_KurikaeshiMojiShori:[26],_MojiKumiTable:[28],_EveryLineComposer:[29],_TabStops:[30],_DefaultTabWidth:[31],_DefaultStyle:[32,gP.JO],_ParagraphDirection:[33],_JustificationMethod:[34],_ComposerEngine:[35],_ListStyle:[36],_ListTier:[37],_ListSkip:[38],_ListOffset:[39],_KashidaWidth:[40]};
gP.Bm={_Name:[0],_Features:[5,gP.V5],_Parent:[6]};gP.rW={_Name:[0],_Parent:[5],_Features:[6,gP.JO]};
gP.t0={_98:[98,{_0:[0]}],_DocumentResources:[0,{_0:[0],_FontSet:[1,{_Resources:[0,{_Resource:[0,{_StreamTag:[99],_Identifier:[0,{_Name:[0],_ScriptType:[1],_Type:[2],_Synthetic:[3],_4:[4],_MMAxis:[5]}]}]}],_1:[1,{_0:[0]}]}],_MojiKumiCodeToClassSet:[2,{_Resources:[0,{_Resource:[0,{_Name:[0],_Members:[5]}]}],_DisplayList:[1,{_Resource:[0]}]}],_MojiKumiTableSet:[3,{_Resources:[0,{_Resource:[0,{_Name:[0],_Members:[5,{_CodeToClass:[0],_AutoTsume:[1,{_TsumeMappings:[0,{_Before:[0],_After:[1],_Code:[2]}]}],_Table:[2,{_DataArray:[0,{_SparseArray:[0,{_Index:[0],_Elements:[1,{_P:[0],_Data:[1,{_A:[0,{_R:[0],_P:[1]}],_B:[1,{_R:[0],_P:[1]}]}]}]}]}]}],_PredefinedTag:[3]}]}]}],_DisplayList:[1,{_Resource:[0]}]}],_KinsokuSet:[4,{_Resources:[0,{_Resource:[0,{_Name:[0],_Data:[5,{_NoStart:[0],_NoEnd:[1],_Keep:[2],_Hanging:[3],_PredefinedTag:[4]}]}]}],_DisplayList:[1,{_Resource:[0]}]}],_StyleSheetSet:[5,{_Resources:[0,{_Resource:[0,gP.rW]}],_DisplayList:[1,{_Resource:[0]}]}],_ParagraphSheetSet:[6,{_Resources:[0,{_Resource:[0,gP.Bm]}],_DisplayList:[1,{_Resource:[0]}]}],_TextFrameSet:[8,{_Resources:[0,{_Resource:[0,{_0:[0],_Bezier:[1,{_Points:[0]}],_Data:[2,{_Type:[0],_LineOrientation:[1],_FrameMatrix:[2],_TextOnPathTRange:[6],_RowGutter:[7],_ColumnGutter:[8],_FirstBaselineAlignment:[10,{_Flag:[0],_Min:[1]}],_PathData:[11,{_Reversed:[0],_2:[2],_3:[3],_Spacing:[4],_5:[5],_7:[7]}],_12:[12]}]}]}]}],_ListStyleSet:[9,{_Resources:[0,{_Resource:[0,{_Name:[0],_PredefinedTag:[6]}]}],_DisplayList:[1,{_Resource:[0]}]}]}],_DocumentObjects:[1,{_DocumentSettings:[0,{_HiddenGlyphFont:[0,{_AlternateGlyphFont:[0],_WhitespaceCharacterMapping:[1,{_WhitespaceCharacter:[0],_AlternateCharacter:[1]}]}],_NormalStyleSheet:[1],_NormalParagraphSheet:[2],_SuperscriptSize:[3],_SuperscriptPosition:[4],_SubscriptSize:[5],_SubscriptPosition:[6],_SmallCapSize:[7],_UseSmartQuotes:[8],_SmartQuoteSets:[9,{_Language:[0],_OpenDoubleQuote:[1],_CloseDoubleQuote:[2],_OpenSingleQuote:[3],_CloseSingleQuote:[4]}],_11:[11],_LinguisticSettings:[15,{_PreferredProvider:[0],_LinguisticProviderInfo:[1]}],_UseSmartLists:[16],_DefaultStoryDir:[17],_GreekingSize:[20]}],_TextObjects:[1,{_Model:[0,{_Text:[0],_ParagraphRun:[5,{_RunArray:[0,{_RunData:[0,{_ParagraphSheet:[0,gP.Bm]}],_Length:[1]}]}],_StyleRun:[6,{_RunArray:[0,{_RunData:[0,{_StyleSheet:[0,gP.rW]}],_Length:[1]}]}],_FirstKern:[7],_8:[8],_9:[9],_StorySheet:[10,{_AntiAlias:[0],_UseFractionalGlyphWidths:[2],_3:[3],_4:[4]}],_KernRun:[15],_AlternateGlyphRun:[16],_HyperlinkRun:[17]}],_View:[1,{_Frames:[0,{_Resource:[0]}],_RenderedData:[1,{_RunArray:[0,{_RunData:[0,{_0:[0],_LineCount:[1]}],_Length:[1]}]}],_Strikes:[2]}],_OpticalAlignment:[2]}],_OriginalNormalStyleFeatures:[2,gP.JO],_OriginalNormalParagraphFeatures:[3,gP.V5]}]};
cs.view={};cs.view.a63=function(Z,S,b,Y){var P={},w=eO.O$(Z);P._0=[{_0:"i"+b}];return P};function CSS(){}CSS.a98=function(Z,S){var b=Z.add,Y=b.vmsk,P=b.vstk,w=b.lmfx,f=b.TySh,h=[],Q=CSS.a5k(w,b);
if(Z.q3()&&Y){var e=T.Y.Al(Y.b);if(!e.h3()){h.push("width: "+Math.round(e.c)+"px");h.push("height: "+Math.round(e.v)+"px")}var l=T.Y.anU(Y.b);
if(l>0)h.push("border-radius: "+Math.round(l)+"px")}else if(f){var O=f.HK;if(eO.O$(O)==1){var e=eO.kn(O);
h.push("width: "+Math.round(e[2])+"px");h.push("height: "+Math.round(e[3])+"px")}CSS.as(h,eO.SZ(O,0,0),f.A,!1,!1,Q[0])}var m=[],V=w?w.dropShadowMulti.v:0;
for(var D=0;D<V.length;D++){var q=V[D].v;if(q.enab.v){var K=q.Dstn.v.val,z=q.lagl.v.val*Math.PI/180;
if(q.uglg&&q.uglg.v)z=S.HO()*Math.PI/180;var t=K*Math.cos(z),H=K*Math.sin(z);m.push("drop-shadow("+(t==0?"0 ":CSS.ha(-t)+"px ")+(H==0?"0 ":CSS.ha(H)+"px ")+q.blur.v.val/2+"px "+CSS.DI(q.Clr.v,q.Opct.v.val/100)+")")}}if(m.length!=0)h.push("filter: "+m.join(" "));
if(f==null)CSS.a3_(Q,h);if(P==null||!P.strokeEnabled.v)P=eg.oi(w);if(P&&P.strokeEnabled.v){var i=P.strokeStyleContent.v,y=i.classID,j=a4.m3.oV.indexOf(P.strokeStyleLineCapType.v.strokeStyleLineCapType),J=a4.m3.join.indexOf(P.strokeStyleLineJoinType.v.strokeStyleLineJoinType),A=P.strokeStyleOpacity.v.val/100,a=P.strokeStyleLineWidth.v.val,I="";
if(y=="solidColorLayer")I=CSS.DI(i.Clr.v,A);h.push("border: "+a+"px solid "+I)}return h};CSS.a5k=function(Z,S){var b=eg.un(Z,S),Y=b[0],P=b[1],w,f;
if(Y){w=CSS.DI(Y.Clr.v,S.iOpa!=null?S.iOpa/255:1)}else if(P){f=CSS.VD(P)}return[w,f]};CSS.a3_=function(Z,S){if(Z[0])S.push("background-color: "+Z[0]);
if(Z[1])S.push("background-image: "+Z[1])};CSS.fv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};
CSS.ha=function(C){return""+parseFloat(C.toFixed(3))};CSS.R0=function(Z){if(Z==null)return{h:0,l:0,O:0};
var S=Z.indexOf("(");if(S!=-1){var b=Z.slice(S+1,Z.length-1).split(",");for(var D=0;D<b.length;D++){var Y=b[D].trim();
b[D]=parseFloat(Y)*(Y.endsWith("%")?255/100:1)}return{h:b[0],l:b[1],O:b[2]}}if(Z.charAt(0)!="#"){var P=CSS.fv;
if(P[Z])Z=P[Z];else console.log("unknown color "+Z)}Z=Z.slice(1);if(Z.length==3)Z=Z[0]+Z[0]+Z[1]+Z[1]+Z[2]+Z[2];
Z=parseInt(Z,16);return{h:Z>>16&255,l:Z>>8&255,O:Z&255}};CSS.DI=function(Z,S){return CSS.Mh(T.W.CD(Z),S)};
CSS.Mh=function(Z,S){if(S==null)S=1;var b=Math.round(Z.h),Y=Math.round(Z.l),P=Math.round(Z.O),w=b<<16|Y<<8|P;
return S==1?"#"+T.T3(w):"rgba("+b+","+Y+","+P+","+S+")"};CSS.VD=function(Z){var S=Z.Grad.v;if(S.Clrs==null)return"";
var b=S.Clrs.v.slice(0),Y=S.Trns.v.slice(0),P=Z.Ofst.v,w=Z.Type.v.GrdT=="Rdl"?1:0,f=(w==1?"radial":"linear")+"-gradient",h=w==0?Math.round(-Z.Angl.v.val+90)+"deg":"circle at center",Q=Z.Rvrs.v;
if(Q){b.reverse();Y.reverse()}for(var D=0;D<b.length;D++){var e=b[D].v,l=D<Y.length?Y[D].v.Opct.v.val/100:1,O=e.Lctn.v/4096;
if(Q)O=1-O;h+=", "+CSS.DI(e.Clr.v,l)+" "+Math.round(O*100)+"%"}return f+"("+h+")"};CSS.as=function(Z,S,b,Y,P,w){var f=S.xp,h=Y?1:G.V.I2(b),Q=Math.round(f.FontSize*h);
Z.push("font-size: "+Q+"px");var e=f.Tracking;if(!Y&&e!=null&&e!=0)Z.push("letter-spacing: "+Math.round(e*Q/1e3)+"px");
if(!f.AutoLeading)Z.push("line-height: "+Math.round(f.Leading*h)+"px");if(f.Strikethrough)Z.push("text-decoration: line-through");
var l=eO.CD(f);l=[l.h,l.l,l.O].map(Math.round);Z.push((Y?"fill: ":"color: ")+(w?w:"#"+T.T3(l[0]<<16|l[1]<<8|l[2])));
var O=S.E2[f.Font].Name;if(O){var m=a2.hs.NI(O),V="",q=null,K=null;if(m!=null&&O!=a2.o9(m))m=null;if(P&&m)V+="\""+O+"\", ";
var z=O.toLowerCase();if(m){q=a2.lJ(m)[0];if(m["OS/2"])K=m["OS/2"].usWeightClass}else{q=CSS.afP(O);if(z.indexOf("light")!=-1)K=300;
else if(z.indexOf("medium")!=-1)K=500;else if(z.indexOf("black")!=-1||z.indexOf("extrabold")!=-1)K=800;
else if(z.indexOf("bold")!=-1)K="bold"}if(q!=null)V+="\""+q+"\"";if(K!=null)Z.push("font-weight: "+K);
if(z.indexOf("italic")!=-1||z.indexOf("oblique")!=-1)Z.push("font-style: italic");if(V)Z.push("font-family: "+V)}var t=S.jm.Justification;
if(t!=null&&t!=0)if(Y)Z.push("text-anchor: "+["start","end","middle"][t%3]);else Z.push("text-align: "+["left","right","center"][t%3])};
CSS.afP=function(Z){Z=Z.split("-")[0];while(Z.endsWith("MT")||Z.endsWith("PS"))Z=Z.slice(0,Z.length-2);
var S=!0;for(var D=0;D<Z.length;D++){var b=Z.charAt(D);if(!S&&b.toLowerCase()!=b){Z=Z.slice(0,D)+" "+Z.slice(D);
D++;S=!0}else S=!1}return Z};function aM(){}aM.RR={document:!0,parent:!0,top:!0,eval:!0,postMessage:!0,UTIF:!0,PIMG:!0,LNG:!0,FNTS:!0};
aM.p6=function(Z,S){var b=Date.now(),Y;try{Y=acorn.parse(Z)}catch(aV){console.log(aV);return}var P=JSON.parse(JSON.stringify(aM.Er.Ls));
P.__return=!1;P.__break=!1;P.__throw=!1;P.__fs={};P.__window={};aM.eval(Y,S,P);var w=P.__fs;if(Object.keys(w).length!=0){var f=UZIP.encode(w);
fY.save(f,"output.zip")}};aM.eval=function(Z,S,b){var Y=Z.type;if(!1){}else if(Y=="Program"||Y=="BlockStatement"){var P=Z.body;
for(var D=0;D<P.length;D++){var w=P[D].type;if(w=="FunctionDeclaration")b[P[D].id.name]=P[D]}for(var D=0;
D<P.length;D++){var w=P[D].type,f=aM.eval(P[D],S,b);if(b.__return||b.__break||b.__throw)return f}}else if(Y=="ReturnStatement"){b.__return=!0;
return Z.argument?aM.r2(Z.argument,S,b):null}else if(Y=="BreakStatement"){b.__break=!0}else if(Y=="VariableDeclaration"){var h=Z.declarations;
for(var D=0;D<h.length;D++)aM.eval(h[D],S,b)}else if(Y=="VariableDeclarator"){b[Z.id.name]=Z.init?aM.r2(Z.init,S,b):null}else if(Y=="FunctionDeclaration"){b[Z.id.name]=Z}else if(Y=="MemberExpression"){var Q=aM.r2(Z.object,S,b),e=Z.computed?aM.r2(Z.property,S,b):aM.eval(Z.property,S,b),f;
if(Q.o!=null)f=aM.Er.aX(Q,e,S,b);else if(Q==window&&aM.RR[e]){}else f=Q[e];return f}else if(Y=="ArrayExpression"){var l=[],O=Z.elements;
for(var D=0;D<O.length;D++)l.push(aM.r2(O[D],S,b));return l}else if(Y=="ObjectExpression"){var l={},O=Z.properties;
for(var D=0;D<O.length;D++){var m=O[D],V=O[D].key.name?O[D].key.name:O[D].key.value;l[V]=aM.r2(O[D].value,S,b)}return l}else if(Y=="ExpressionStatement"){return aM.eval(Z.expression,S,b)}else if(Y=="NewExpression"){var q=Z.arguments,K=Z.callee,z=K.type,t=[],l=null;
for(var D=0;D<q.length;D++)t.push(aM.r2(q[D],S,b));if(z=="Identifier")l=aM.Er.a3w(K.name,t,S,b);else throw"e";
if(l==null)throw"new "+K.name;return l}else if(Y=="CallExpression"){var q=Z.arguments,K=Z.callee,z=K.type,H={};
for(var i in b)H[i]=b[i];var t=[];for(var D=0;D<q.length;D++)t.push(aM.r2(q[D],S,b));if(z=="Identifier"){var y=K.name,j=b[y];
if(j){if(j.params){var J=j.params;for(var D=0;D<J.length;D++)H[J[D].name]=t[D];return aM.eval(j.body,S,H)}else{return j.apply(null,t)}}else if(aM.Er.a5r.indexOf(y)!=-1)return aM.Er.x7({o:"Application"},y,t,S,b);
else if(window[y]==null)console.log("Unknown function "+y);else if(aM.RR[y])alert(y+"() not available");
else{var A=window[y].apply(window,t);return A}}else if(z=="MemberExpression"){var Q=aM.r2(K.object,S,b),e=K.computed?aM.r2(K.property,S,b):aM.eval(K.property,S,b);
if(Q==window&&aM.RR[e])return;if(Q.o!=null)return aM.Er.x7(Q,e,t,S,b);else return Q[e].apply(Q,t)}else if(z=="FunctionExpression"){return aM.eval(K.body,S,b)}else console.log(Z)}else if(Y=="AssignmentExpression"){var a=Z.operator,I=Z.left,E=I.type,c=aM.r2(I,S,b),u=aM.r2(Z.right,S,b),f=null;
if(!1){}else if(a=="=")f=u;else if(a=="+=")f=c+u;else if(a=="-=")f=c-u;else if(a=="*=")f=c*u;else if(a=="/=")f=c/u;
else if(a=="%=")f=c%u;else if(a=="&=")f=c&u;else if(a=="|=")f=c|u;else if(a=="&&=")f=c&&u;else if(a=="||=")f=c||u;
else console.log(Z);if(E=="Identifier"){var n=I.name;if(b.hasOwnProperty(n))b[n]=f;else b.__window[n]=f}else if(E=="MemberExpression"){var o=aM.eval(I.property,S,b),x=aM.r2(I.object,S,b);
if(x.o!=null)aM.Er.abl(x,o,f,S,b);else x[o]=f}else console.log(Z)}else if(Y=="Identifier")return Z.name;
else if(Y=="Literal")return Z.value;else if(Y=="UpdateExpression"){var a=Z.operator,g=Z.argument.name,l=aM.r2(Z.argument,S,b);
if(!1){}else if(a=="++"){b[g]++;return Z.prefix?b[g]:b[g]-1}else if(a=="--"){b[g]--;return Z.prefix?b[g]:b[g]+1}else console.log(Z)}else if(Y=="UnaryExpression"){var a=Z.operator,v=aM.r2(Z.argument,S,b);
if(v.o=="UnitValue"){if(a=="-")return-v.G;else return aM.a2(v.G,a)}else return aM.a2(v,a)}else if(Y=="BinaryExpression"||Y=="LogicalExpression"){var a=Z.operator,I=aM.r2(Z.left,S,b),v=aM.r2(Z.right,S,b);
if(I==null||v==null)return aM.Ps(I,v,a);else if(I.o=="UnitValue"&&v.o=="UnitValue")return aM.Ps(I.G,v.G,a);
else if(I.o=="UnitValue")return aM.Ps(I.G,v,a);else if(v.o=="UnitValue"){if(a=="-")return-(I-v.G);else return aM.Ps(I,v.G,a)}else return aM.Ps(I,v,a)}else if(Y=="IfStatement"||Y=="ConditionalExpression"){var R=aM.r2(Z.test,S,b);
if(R)return aM.eval(Z.consequent,S,b);else if(Z.alternate)return aM.eval(Z.alternate,S,b)}else if(Y=="ForInStatement"){aM.eval(Z.left,S,b);
var X=Z.left.declarations[0].id.name,B=aM.r2(Z.right,S,b);for(var i in B){b[X]=i;var M=aM.eval(Z.body,S,b);
if(b.__break)break;if(b.__return)return M}b.__break=!1}else if(Y=="ForStatement"){aM.eval(Z.init,S,b);
while(aM.eval(Z.test,S,b)){var M=aM.eval(Z.body,S,b);if(b.__break)break;if(b.__return)return M;aM.eval(Z.update,S,b)}b.__break=!1}else if(Y=="DoWhileStatement"){do{var M=aM.eval(Z.body,S,b);
if(b.__break)break;if(b.__return)return M}while(aM.eval(Z.test,S,b));b.__break=!1}else if(Y=="TryStatement"){aM.eval(Z.block,S,b);
if(b.__throw){var r=Z.handler;b[r.param.name]=b.__throw;b.__throw=!1;aM.eval(r.body,S,b);delete b[r.param.name]}}else if(Y=="EmptyStatement"){}else console.log(Z)};
aM.Ps=function(Z,S,b){if(b=="+")return Z+S;else if(b=="-")return Z-S;else if(b=="*")return Z*S;else if(b=="/")return Z/S;
else if(b=="%")return Z%S;else if(b=="^")return Z^S;else if(b=="&")return Z&S;else if(b=="&&")return Z&&S;
else if(b=="|")return Z|S;else if(b=="||")return Z||S;else if(b=="<")return Z<S;else if(b==">")return Z>S;
else if(b=="==")return Z==S;else if(b=="<=")return Z<=S;else if(b==">=")return Z>=S;else if(b=="!=")return Z!=S;
else if(b=="!==")return Z!==S;else if(b=="<<")return Z<<S;else if(b==">>")return Z>>S;else console.log(b)};
aM.a2=function(Z,S){if(S=="-")return-Z;else if(S=="!")return!Z;else if(S=="~")return~Z;else if(S=="+")return Z;
else console.log(obj)};aM.r2=function(Z,S,b){var Y=Z.type;if(Y=="Identifier")return aM.a3d(Z.name,S,b);
else return aM.eval(Z,S,b)};aM.a3d=function(Z,S,b){if(Z=="undefined")return undefined;else if(b.hasOwnProperty(Z))return b[Z];
else if(Z=="app")return{o:"Application"};else if(Z=="$")return{o:"$"};else if(aM.Er.al7.indexOf(Z)!=-1)return aM.Er.aX({o:"Application"},Z,S,b);
else if(window[Z]&&!aM.RR[Z])return window[Z];else{b[Z]=null;return null}};aM.Er={};aM.Er.a3w=function(Z,S,b,Y){var P;
if(Z=="SolidColor")P={o:Z,G:[1,0,0,0]};if(Z=="RGBColor")P={o:Z,G:[1,0,0,0]};if(Z=="Window")P={o:Z,G:new hL(S[0],S[1],S[2])};
if(Z=="ExportOptionsSaveForWeb")P={o:Z,G:{vh:"png",cc:100}};if(Z=="JPEGSaveOptions")P={o:Z,G:{vh:"jpg",cc:100}};
if(Z=="File")P={o:Z,G:S[0]};if(Z=="ActionReference")P={o:Z,G:[]};if(Z=="ActionDescriptor")P={o:Z,G:{}};
if(Z=="ActionList")P={o:Z,G:[]};if(Z=="UnitValue")P={o:Z,G:S.length==0?0:parseFloat(S[0])};return P};
aM.Er.al7="activeDocument documents fonts preferences displayDialogs foregroundColor backgroundColor".split(" ");
aM.Er.a5r=["charIDToTypeID","stringIDToTypeID","executeAction","executeActionGet","doAction"];aM.Er.aX=function(Z,S,b,Y){var P=b.hO,w=b.eh();
if(!1){}else if(S=="typename"){if(Z.o=="Layer")return Z.G.W$()?"LayerSet":"ArtLayer";else return Z.o}else if(["Document","Layer"].indexOf(Z.o)!=-1&&["layers","artLayers","layerSets"].indexOf(S)!=-1){var f=w.root,h={o:"Layers",cb:S,G:[]};
if(Z.o=="Layer")f=w.root.zO(w.t.indexOf(Z.G));if(f.children==null)return null;for(var D=0;D<f.children.length;
D++){var Q=f.children[D].$,e=Q.W$();if(e&&S=="artLayers"||!e&&S=="layerSets")continue;h.G.push({o:"Layer",G:Q})}h.G.reverse();
return h}else if(Z.o=="Documents"||Z.o=="Layers"||Z.o=="HistoryStates"){if(!1){}else if(S=="length")return Z.G.length;
else if(Number.isInteger(S))return Z.G[S];else console.log(Z.o+": unknown property ",S)}else if(Z.o=="Application"){if(!1){}else if(S=="activeDocument")return{o:"Document",G:b.eh()};
else if(S=="documents"){var h={o:"Documents",G:[]};for(var D=0;D<b.N7.length;D++)h.G.push({o:"Document",G:b.N7[D]});
return h}else if(S=="fonts")return{o:"TextFonts"};else if(S=="preferences")return{o:"Preferences"};else if(S=="displayDialogs")return{o:"DialogModes"};
else if(S=="foregroundColor"||S=="backgroundColor"){var l=S[0]=="f"?P.ui:P.VY;return{o:"SolidColor",G:[1,(l>>>16&255)/255,(l>>>8&255)/255,(l>>>0&255)/255]}}else if(S=="UI")return{o:"UI"};
else console.log(Z,S)}else if(Z.o=="Document"){var w=Z.G;if(!1){}else if(S=="activeLayer"){var Q=w.t[w.C[0]];
return{o:"Layer",G:Q}}else if(S=="resolution")return w.GY;else if(S=="width")return w.c;else if(S=="height")return w.v;
else if(S=="name")return w.name;else if(S=="saved")return!w.Ev();else if(S=="selection")return{o:"Selection"};
else if(S=="activeHistoryState")return{o:"HistoryState",SU:w.Hc};else if(S=="source")return w.JZ;else if(S=="historyStates"){var O=[];
for(var D=0;D<w.history.length;D++)O.push({o:"HistoryState",SU:D});return{o:"HistoryStates",G:O}}else console.log(Z,S)}else if(Z.o=="Layer"){var m={transparentPixelsLocked:0,pixelsLocked:1,positionLocked:2,allLocked:31},Q=Z.G;
if(!1){}else if(S=="visible")return Q._7();else if(S=="selected")return w.C.indexOf(w.t.indexOf(Q))!=-1;
else if(S=="grouped")return Q.gL;else if(m[S]!=null)return Q.vv(m[S]);else if(S=="opacity")return Q.opacity*100/255;
else if(S=="blendMode")return Q.WL;else if(S=="name")return Q.getName();else if(S=="textItem")return{o:"TextItem",G:Q};
else if(S=="bounds"){var V=G.V.Ij(w,[w.t.indexOf(Q)]);return aM.Er.oE(V,w)}else if(S=="parent"){var q=b.N7;
for(var D=0;D<q.length;D++)if(q[D].t.indexOf(Q)!=-1)return{o:"Document",G:q[D]}}else if(S=="kind"){var K=aM.Er.XS;
for(var D=0;D<K.length;D++)if(Q.add[K[D]]!=null)return D;return 0}else console.log(Z,S)}else if(Z.o=="Selection"){if(!1){}else if(S=="bounds")return aM.Er.oE(b.eh().N.rect,w);
else console.log(Z,S)}else if(Z.o=="TextItem"){var z=Z.G.add.TySh,t=z.HK,H=eO.IU(t),i=z.A.I2(),y=eO.SZ(t,0,Math.max(0,H.length-2));
if(S=="contents")return H.slice(0,H.length-1).replace(/\n/g,"\r");else if(S=="font")return y.xp.Font!=null?y.E2[y.xp.Font].Name:null;
else if(S=="size")return aM.Er._G(y.xp.FontSize*i,w);else if(S=="leading")return aM.Er._G(y.xp.Leading*i,w);
else if(S=="tracking")return aM.Er._G(y.xp.Tracking);else if(S=="baselineShift")return aM.Er._G(y.xp.BaselineShift);
else if(S=="fauxBold")return y.xp.FauxBold;else if(S=="fauxItalic")return y.xp.FauxItalic;else if(S=="kind")return 1-eO.O$(t);
else if(S=="useAutoLeading")return y.jm.AutoLeading;else if(S=="hyphenation")return y.jm.AutoHyphenate;
else if(S=="justification")return aM.Er._G(y.jm.Justification);else if(S=="color")return{o:"SolidColor",G:y.xp.FillColor.Values.slice(0)};
else if(S=="width"||S=="height"){var j=eO.kn(t),J=(j[2]-j[0])*i,A=(j[3]-j[1])*i;return aM.Er._G(S=="width"?J:A,w)}else if(S=="position"){var a=z.A;
return aM.Er.GD([a.RN,a.Sv],w)}else if(S=="horizontalScale"||S=="verticalScale"){var I=S[0].toUpperCase()+S.slice(1);
return Math.round(y.xp[I]*100)}else if(S=="antiAliasMethod")eO.PM(z);else console.log(Z,S)}else if(Z.o=="Preferences"){if(S=="rulerUnits")return P.Gg.iJ;
else console.log(Z,S)}else if(Z.o=="SolidColor"){if(S=="rgb")return{o:"RGBColor",G:Z.G};else console.log(Z,S)}else if(Z.o=="RGBColor"){var V=Math.round(255*Z.G[1]),E=Math.round(255*Z.G[2]),c=Math.round(255*Z.G[3]);
if(!1){}else if(S=="red")return V;else if(S=="green")return E;else if(S=="blue")return c;else if(S=="hexValue")return"#"+T.T3(V<<16|E<<8|c).toUpperCase();
else console.log(Z,S)}else if(Z.o=="UnitValue"){if(S=="value")return Z.G;else throw"e"}else if(Z.o=="ExportOptionsSaveForWeb"){if(S=="format")return Z.G.vh;
else if(S=="PNG8")return!1;else if(S=="quality")return Z.G.cc;else throw S}else if(Z.o=="JPEGSaveOptions"){return 0}else console.log(Z,S)};
aM.Er.oE=function(Z,S){return aM.Er.GD([Z.x,Z.y,Z.x+Z.c,Z.y+Z.v],S)};aM.Er.GD=function(Z,S){var b=[];
for(var D=0;D<Z.length;D++)b.push(aM.Er._G(Z[D],S));return b};aM.Er.ok=function(Z){var S=[];for(var D=0;
D<Z.length;D++)S.push(Z[D].o?Z[D].G:Z[D]);return S};aM.Er._G=function(Z,S){return{o:"UnitValue",G:Z}};
aM.Er.ae_=function(Z,S){if(Z.o=="UnitValue")return Z.G;return Z};aM.Er.abl=function(Z,S,b,Y,P){var w=new d(s.E.s,!0),f=new d(s.E.P,!0),h=Y.eh(),Q=Y.hO;
if(!1){}else if(Z.o=="Application"){if(!1){}else if(S=="activeDocument"){f.data={e:s.U.hT,hp:b.G};Y.m(f)}else if(S=="displayDialogs"){}else console.log(Z,S,b)}else if(Z.o=="Document"){var e=Z.G;
if(!1){}else if(S=="name"){w.T=G.kd;w.data={e:F.nA,G:b,a6w:!0,nw:e};h.Pd=!0}else if(S=="source")e.JZ=b;
else if(S=="activeLayer"){e.C=[e.t.indexOf(b.G)]}else if(S=="activeHistoryState"){w.T=G._H;w.data={e:"h_itemchange",index:b.SU}}else console.log(Z,S)}else if(Z.o=="Layer"){w.T=G.kd;
var l={transparentPixelsLocked:0,pixelsLocked:1,positionLocked:2,allLocked:31},O=Z.G,m=h.t.indexOf(O);
if(!1){}else if(S=="visible"){if(O._7()!=b)w.data={e:F.qk,$:m}}else if(S=="opacity"){w.data={e:F.XB,$:m,u$:Math.round(255*b/100)}}else if(S=="blendMode"){w.data={e:F.fk,$:m,u$:is.KP.indexOf(b)}}else if(S=="name"){w.data={e:F.if,$:m,name:b}}else if(l[S]!=null){w.data={e:F.EQ,$:m,u$:[[b],[l[S]]]}}else if(S=="kind"){w.data={e:F.R5,$:m,xh:aM.Er.XS[b]}}else if(S=="grouped"){w.data={e:F.TA,$:m,u$:b}}else console.log(Z,S,b)}else if(Z.o=="TextItem"){w.T=G.le;
var O=Z.G,V=O.add.TySh,q=JSON.parse(JSON.stringify(V.HK)),K=V.A.clone(),z=V.A.I2(),t=eO.IU(q),H=eO.SZ(q,0,t.length-2),i=!1;
if(!1){}else if(S=="contents"){eO.hd(q,0,t.length-1);eO.kk(q,0,b.replace(/\r/g,"\n"))}else if(S=="size"){H.xp.FontSize=(b.G!=null?b.G:b)/z;
i=!0}else if(S=="leading"){H.xp.Leading=(b.G!=null?b.G:b)/z;i=!0}else if(S=="tracking"){H.xp.Tracking=b.G!=null?b.G:b;
i=!0}else if(S=="baselineShift"){H.xp.BaselineShift=b.G!=null?b.G:b;i=!0}else if(S=="fauxBold"){H.xp.FauxBold=b;
i=!0}else if(S=="fauxItalic"){H.xp.FauxItalic=b;i=!0}else if(S=="kind"){var y=eO.O$(q);if(y==1&&b==1){var j=new io(q,Y.hO.S9).jm[0],J=j.nZ[0].end,A=j.eO[J-1].end;
eO.hd(q,0,t.length-1);eO.kk(q,0,t.slice(0,A-1))}if(y==b)eO.es(q,1-b)}else if(S=="useAutoLeading"){H.jm.AutoLeading=b;
i=!0}else if(S=="hyphenation"){H.jm.AutoHyphenate=b;i=!0}else if(S=="justification"){H.jm.Justification=b;
i=!0}else if(S=="font"){eO.FK(H,b);i=!0}else if(S=="color"){H.xp.FillColor.Values=b.G.slice(0);i=!0}else if(S=="width"||S=="height"){var a=eO.kn(q).slice(0),I=aM.Er.ae_(b);
if(S=="width")a[2]=Math.round(a[0]+I/z);else a[3]=Math.round(a[1]+I/z);eO.oZ(q,a)}else if(S=="position"){K.RN=b[0];
K.Sv=b[1]}else if(S=="horizontalScale"||S=="verticalScale"){var E=S[0].toUpperCase()+S.slice(1);H.xp[E]=b/100;
i=!0}else if(S=="antiAliasMethod")eO.vF(V,b);else console.log(Z,S,b);if(i)eO.Yg(q,0,t.length-1,H);w.data={e:"newED",Rq:h.t.indexOf(O),MH:q,A:K}}else if(Z.o=="Preferences"){if(!1){}else if(S=="rulerUnits"){var c=JSON.parse(JSON.stringify(Q.Gg));
c.iJ=b;f.data={e:s.U.h4,Sz:bp.nq,u$:c};Y.m(f)}else console.log(Z,S,b)}else if(Z.o=="SolidColor"){if(S=="rgb")Z.G=b.G;
else throw S}else if(Z.o=="RGBColor"){if(!1){}else if(S=="red")Z.G[1]=b/255;else if(S=="green")Z.G[2]=b/255;
else if(S=="blue")Z.G[3]=b/255;else if(S=="hexValue"){var u=T.sH(b.slice(1));Z.G[1]=(u>>>16&255)/255;
Z.G[2]=(u>>>8&255)/255;Z.G[3]=(u>>>0&255)/255}else console.log(Z,S)}else if(Z.o=="ExportOptionsSaveForWeb"){if(S=="format")Z.G.vh=b;
else if(S=="PNG8"){}else if(S=="quality")Z.G.cc=b;else throw"e"}else if(Z.o=="JPEGSaveOptions"){if(S=="quality")Z.G.cc=Math.round(100*b/12)}else console.log(Z,S,b);
if(w.data!=null)Y.m(w)};aM.Er.x7=function(Z,S,b,Y,P){var w=Z.o,f=null,h=new d(s.E.s,!0),Q=new d(s.E.TH,!0),e=new d(s.E.P,!0),l=Y.eh(),O=Y.N7;
if(!1){}else if(w=="Application"){if(!1){}else if(S=="charIDToTypeID"){var m=b[0].trim(),V={slct:"select",Dlt:"delete",Mk:"make"};
return V[m]?V[m]:m}else if(S=="stringIDToTypeID"){var q=b[0].trim(),V={red:"Rd",blue:"Bl",color:"Clr",RGBColor:"RGBC",type:"Type",using:"Usng"},K=V[q];
return K==null?q:K}else if(S=="executeAction"){console.log(b);var z;if(b[1]){z=b[1].G;z.classID=b[0]}var t={setd:"set"},H=t[b[0]];
if(H==null)H=b[0];var i=g3.Qs[b[0]];if(i&&g3.OH[i])H=g3.OH[i];Q.data={uf:H,V1:z}}else if(S=="executeActionGet"){return{o:"ActionDescriptor",G:{classID:"null",null:{t:"obj ",v:b[0].G}}}}else if(S=="doAction"){e.data={e:s.U.Ay,ms:[b[0],b[1]]}}else if(S=="open"){e.data={e:s.U.LV,Sz:{url:b[0]}};
if(b[2]&&O.length!=0)e.data.Sz.zr=O.indexOf(l)}else if(S=="echoToOE"){e.data={e:s.U.tZ,Sz:b[0]}}else console.log(S)}else if(w=="Document"){var l=Z.G;
if(!1){}else if(S=="crop"){Q.data=G.PK.AP(b[0])}else if(S=="trim"){var y=[];for(var D=0;D<4;D++)y.push(b[D+1]!=null?b[D+1]:!0);
Q.data=G.PK.HR(b[0]!=null?b[0]:0,y)}else if(S=="suspendHistory"){var j=acorn.parse(b[1]);aM.eval(j,Y,P)}else if(S=="save"){e.data={e:s.U.e_}}else if(S=="saveToOE"){e.data={e:s.U.e_,aah:b}}else if(S=="rotateCanvas"){Q.data=G.V.XL(!0,b[0])}else if(S=="resizeImage"||S=="resizeCanvas"){var J=b[0],A=b[1];
if(typeof J!="number"){J=l.c*parseFloat(J.slice(0,J.length-1))/100;A=l.v*parseFloat(A.slice(0,A.length-1))/100}if(S=="resizeCanvas")Q.data=G.PK.K5(Math.round(J),Math.round(A),b[2]);
else Q.data=G.PK.dt(Math.round(J),Math.round(A),null,1)}else if(S=="paste"){e.data={e:s.U.GR,ks:b.length!=0&&b[0]}}else if(S=="close"){e.data={e:s.U.sj,G3:l}}else if(S=="exportDocument"||S=="saveAs"){var a=P.__fs,I=b[0].G.replace(":","").replace("~/",""),E=S=="exportDocument"?b[2].G:b[1].G,c=ab.k$(l,E.vh,null,null,[E.cc],Y.hO);
a[I]=new Uint8Array(c)}else console.log(Z,S,b)}else if(w=="Layer"){var u=Z.G,n=l.t.indexOf(u);if(!1){}else if(S=="copy"){aM.Er.hJ(l,Y,0);
e.data={e:s.U.gl,MU:b[0],SG:n};Y.m(e);delete e.data;aM.Er.hJ(l,Y,1)}else if(S=="clear"){aM.Er.hJ(l,Y,0);
Q.data={uf:"delete"};Y.m(Q);delete Q.data;aM.Er.hJ(l,Y,1)}else if(S=="duplicate"){if(b.length==0){h.data={e:F.GG,$:n};
h.T=G.kd;Y.m(h);h.data=null;f={o:"Layer",G:l.t[l.C[0]]}}else if(b[0].o=="Document"){h.data={e:F.Fd,t:l.Ac(n),UY:l,Zn:b[0].G};
h.T=G.kd}}else if(S=="merge"||S=="remove"){h.data={e:S=="merge"?F.lh:F.ak,$:n};h.T=G.kd;if(S!="remove")f={o:"Layer",G:l.t[l.C[0]]}}else if(S=="move"){h.data={e:F.ob,source:n,target:l.t.indexOf(b[0].G),ZI:b[1]!=3?.6:.3};
h.T=G.kd}else if(S=="rasterize"){Q.data={uf:"rasterizeLayer",V1:{classID:"rasterizeLayer",null:a3.h$("Lyr",!0)}}}else if(S=="rotate"){h.data={e:"rot",ep:[2,5],G:-b[0]*Math.PI/180,Kn:b[1],$:n};
h.T=G.ih}else if(S=="resize"){h.data={e:"scl",ep:[2,4],G:new ar(b[0]/100,b[1]/100),Kn:b[2],$:n};h.T=G.ih}else if(S=="translate"){var o=aM.Er.ok(b);
h.data={e:"trsl",$:n,ah7:o[0],aeY:o[1]};h.T=G.hK}else if(S=="link"){h.data={e:F.sg,abj:[n,l.t.indexOf(b[0].G)]};
h.T=G.kd}else if(S=="invert"){h.T=G.cC;h.data={e:"start",Es:"nvrt"}}else if(S.startsWith("apply")&&cL.oG[S.slice(5)]){var o=aM.Er.ok(b),x=cL.oG[S.slice(5)];
Q.data={uf:cL.OH[x]};var z=cL.VS(x);if(z){cL.jC["g"+x](z,o);Q.data.V1=z}}else console.log(Z,S,b)}else if(w=="Documents"){if(S=="getByName"){for(var D=0;
D<O.length;D++)if(O[D].name==b[0])return{o:"Document",G:O[D]};return null}else if(S=="add"){var g=b[5];
if(g==null)g=1;Q.data=gf.M2(b[0],b[1],b[2],b[3],["Wht","Trns","BckC"][g])}else throw"e"}else if(w=="Layers"){if(S=="getByName"){for(var D=0;
D<Z.G.length;D++)if(Z.G[D].G.getName()==b[0]){f=Z.G[D];break}if(f==null)P.__throw={message:"No layer with a name "+b[0]}}else if(S=="add"){h.data={e:Z.cb=="layerSets"?F.D4:F.NO};
h.T=G.kd;Y.m(h);h.data=null;f={o:"Layer",G:l.t[l.C[0]]}}else console.log(Z,S,b)}else if(Z.o=="Selection"){if(S=="select"){var v=b[0],R=[];
for(var D=0;D<v.length;D++)R.push(v[D][0],v[D][1]);Q.data=G.Ks.M6(R)}else if(S=="selectAll"){Q.data=G.Ks.zP(!0)}else if(S=="invert"){Q.data={uf:"inverse"}}else if(S=="copy"){e.data={e:s.U.gl}}else if(S=="deselect"){Q.data=G.Ks.zP()}else if(S=="fill"){var X=b[0].G;
X=T.W.RQ({h:X[1]*255,l:X[2]*255,O:X[3]*255});Q.data=G.px.uB("Clr",b[1],b[2]==null?1:b[2]/100,X)}else console.log(Z,S,b)}else if(Z.o=="Window"){if(S=="show"){e.data={e:s.U.Fy,g9:Z.G}}else throw"e"}else if(Z.o=="ActionReference"){if(S=="putProperty"){Z.G.push({t:"prop",v:{classID:b[0],keyID:b[1]}})}else if(S=="putClass"){Z.G.push({t:"Clss",v:{classID:b[0]}})}else if(S=="putEnumerated"){Z.G.push({t:"Enmr",v:{classID:b[0],typeID:b[1],enum:b[2]}})}else console.log(S,b)}else if(Z.o=="ActionDescriptor"||Z.o=="ActionList"){if(S=="putReference"){Z.G[b[0]]={t:"obj ",v:b[1].G}}else if(S=="putDouble"){Z.G[b[0]]={t:"doub",v:b[1]}}else if(S=="putUnitDouble"){Z.G[b[0]]={t:"UntF",v:{type:b[1],val:b[2]}}}else if(S=="putObject"){if(Z.o=="ActionList"){var B=b[1].G;
B.classID=b[0];Z.G.push({t:"Objc",v:B})}else{var B=b[2].G;B.classID=b[1];Z.G[b[0]]={t:"Objc",v:B}}}else if(S=="putList"){Z.G[b[0]]={t:"VlLs",v:b[1].G}}else if(S=="putBoolean"){Z.G[b[0]]={t:"bool",v:b[1]}}else if(S=="putInteger"){Z.G[b[0]]={t:"long",v:b[1]}}else if(S=="putString"){Z.G[b[0]]={t:"TEXT",v:b[1]}}else if(S=="putEnumerated"){var M={};
M[b[1]]=b[2];Z.G[b[0]]={t:"enum",v:M}}else if(S=="hasKey"){var r=Z.G.null.v;for(var D=0;D<r.length;D++){if(r[D].v.keyID==b[0]){if(b[0]=="UsrM"){return l.t[l.C[0]].Y6()!=null}else throw b}}}else console.log(S,b)}else if(Z.o=="$"){if(S=="writeln"){console.log(b[0])}else throw S}else if(Z.o=="UI"){var N;
if(S=="zoomIn"||S=="zoomOut"){N={e:"zoom",tK:S=="zoomIn"}}else if(S=="fitTheArea"){N={e:"adapt",G:"fitscr"}}else if(S=="pixelToPixel"){N={e:"adapt",G:"pixel"}}h.T=G.$j;
h.data=N}else console.log(Z,S,b);if(h.data)Y.m(h);if(Q.data)Y.m(Q);if(e.data)Y.m(e);return f};aM.Er.hJ=function(Z,S,b){var Y=new d(s.E.s,!0);
Y.T=G.r9;var P=new d(s.E.TH,!0);if(b==0){aM.Er.y1=Z.N;P.data=G.Ks.zP(!0)}else{var w=aM.Er.y1;if(w)Y.data={e:"setsel",ep:"Restore Selection",N:{rect:w.rect.clone(),channel:w.channel.slice(0)}};
else P.data=G.Ks.zP()}S.m(Y.data?Y:P)};aM.Er.y1=null;aM.Er.Ls={AnchorPosition:{TOPLEFT:0,TOPCENTER:1,TOPRIGHT:2,MIDDLELEFT:3,MIDDLECENTER:4,MIDDLERIGHT:5,BOTTOMLEFT:6,BOTTOMCENTER:7,BOTTOMRIGHT:8},Units:{PIXELS:0,INCHES:1,CM:2,MM:3,PERCENT:4,PICAS:5,POINTS:6},ElementPlacement:{INSIDE:0,PLACEATBEGINNING:1,PLACEATEND:2,PLACEBEFORE:3,PLACEAFTER:4},LayerKind:{NORMAL:0,SMARTOBJECT:1,TEXT:2,SOLIDFILL:3,GRADIENTFILL:4,PATTERNFILL:5},RippleSize:{SMALL:0,MEDIUM:1,LARGE:2},PolarConversionType:{POLARTORECTANGULAR:1,RECTANGULARTOPOLAR:0},OffsetUndefinedAreas:{REPEATEDGEPIXELS:0,SETTOBACKGROUND:1,WRAPAROUND:2},NoiseDistribution:{GAUSSIAN:0,UNIFORM:1},TextType:{PARAGRAPHTEXT:0,POINTTEXT:1},DialogModes:{ALL:0,ERROR:1,NO:2},SaveOptions:{DONOTSAVECHANGES:0,PROMPTTOSAVECHANGES:1,SAVECHANGES:2},SaveDocumentType:{PNG:"png",JPEG:"jpg",COMPUSERVEGIF:"gif"},ExportType:{SAVEFORWEB:0},MatteType:{BACKGROUND:0,BLACK:1,FOREGROUND:2,NETSCAPE:3,NONE:4,SEMIGRAY:5,WHITE:6},FormatOptions:{OPTIMIZEDBASELINE:0,PROGRESSIVE:1,STANDARDBASELINE:3},DocumentMode:{RGB:0},NewDocumentMode:{RGB:0},DocumentFill:{WHITE:0,TRANSPARENT:1,BACKGROUNDCOLOR:2},TrimType:{TOPLEFT:0,BOTTOMRIGHT:1,TRANSPARENT:2},BlendMode:{NORMAL:"norm",DISSOLVE:"diss",DARKEN:"dark",MULTIPLY:"mul ",COLORBURN:"idiv",LINEARBURN:"lbrn",DARKERCOLOR:"dkCl",LIGHTEN:"lite",SCREEN:"scrn",COLORDODGE:"div ",LINEARDODGE:"lddg",LIGHTERCOLOR:"lgCl",OVERLAY:"over",SOFTLIGHT:"sLit",HARDLIGHT:"hLit",VIVIDLIGHT:"vLit",LINEARLIGHT:"lLit",PINLIGHT:"pLit",HARDMIX:"hMix",DIFFERENCE:"diff",EXCLUSION:"smud",SUBTRACT:"fsub",DIVIDE:"fdiv",HUE:"hue ",SATURATION:"sat ",COLOR:"colr",LUMINOSITY:"lum "},Justification:{LEFT:0,RIGHT:1,CENTER:2,LEFTJUSTIFIED:3,RIGHTJUSTIFIED:4,CENTERJUSTIFIED:5,FULLYJUSTIFIED:6},AntiAlias:{NONE:0,SHARP:1,CRISP:2,STRONG:3,SMOOTH:4}};
aM.Er.Ls.ColorBlendMode=aM.Er.Ls.BlendMode;aM.Er.XS="---- SoLd TySh SoCo GdFl PtFl".split(" ");function b_(){}b_.Ap={"dc:Title":["",null,"dc:title"],"tiff:Artist":["",315,"dc:creator"],"tiff:ImageDescription":["",270,"dc:description"],"dc:Keywords":["",null,"dc:subject"],"tiff:Copyright":["",33432],"tiff:Make":["",271],"tiff:Model":["",272],"exif:ExposureTime":[[1,200],33434],"exif:FNumber":[[16,1],33437],"exif:ExposureProgram":[1,34850],"exif:ISOSpeedRatings":[200,34855],"exif:DateTimeOriginal":["",36867],"exif:ShutterSpeedValue":[[1,1],37377],"exif:ApertureValue":[[8,1],37378],"exif:ExposureBiasValue":[[1,1],37380],"exif:MaxApertureValue":[[1,1],37381],"exif:MeteringMode":[5,37383],"exif:LightSource":[0,37384],"exif:Flash":[0,37385],"exif:FocalLength":[[60,1],37386],"exif:PixelXDimension":[1,40962],"exif:PixelYDimension":[1,40963],"exif:FocalPlaneXResolution":[[1,1],41486],"exif:FocalPlaneYResolution":[[1,1],41487],"exif:FocalPlaneResolutionUnit":[2,41488],"exif:DigitalZoomRatio":[[100,100],41988],"exif:FocalLengthIn35mmFilm":[1,41989],"exif:SceneCaptureType":[0,41990],"exif:LensInfo":["",42034],"exif:Lens":["",42036],"exif:LensSerialNumber":["",42037],"exif:SensitivityType":[2,34864],"exif:RecommendedExposureIndex":[100,34866],"exif:GPSVersionID":["2.3.0.0",0],"exif:GPSLatitude":["48,35,57.646N",2],"exif:GPSLongitude":["22,56,42.238E",4],"exif:GPSAltitudeRef":[0,5],"exif:GPSAltitude":[[1,1],6],"exif:GPSStatus":["A",9],"exif:GPSMapDatum":["",18]};
b_.et={"5":"dc:Title","55":"exif:DateTimeOriginal","80":"tiff:Artist","120":"tiff:ImageDescription"};
b_.a1t=function(Z,S){if(S==null)S={};var b=b_.et,Y=[];for(var D=0;D<Z.length;D++){var P=Z[D],w=b[P[0]+""];
if(S[w]==null)S[w]=P[1];else if(P[0]==25)Y.push(P[1])}if(Y.length!=0&&S["dc:Keywords"]==null)S["dc:Keywords"]=Y.join(";");
return S};b_.a35=function(Z){var S=b_.et,b=[];for(var Y in S)if(Z[S[Y]])b.push([parseInt(Y),Z[S[Y]]]);
if(Z["dc:Keywords"]){var P=Z["dc:Keywords"].split(";");for(var D=0;D<P.length;D++)b.push([25,P[D].trim()])}return b};
b_.Hg=function(Z,S){if(S==null)S={};var b=new DOMParser,Y=b.parseFromString(Z,"image/svg+xml"),P=Y.getElementsByTagName("rdf:Description")[0];
if(P==null)return S;var w=b_.Ap;for(var f in w){var h=w[f][2];if(h==null)continue;var Q=P.getElementsByTagName(h)[0];
if(Q==null)continue;var e=Q.getElementsByTagName("rdf:li"),l=[];for(var D=0;D<e.length;D++)l.push(e[D].textContent);
S[f]=l.join("; ")}return S};b_.zK=function(Z){var S=["<?xpacket begin=\"\uFEFF\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>","<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"Adobe XMP Core 5.6-c145 79.163499, 2018/08/13-16:40:22\">","<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">","<rdf:Description rdf:about=\"\" xmlns:xmp=\"http://ns.adobe.com/xap/1.0/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:xmpMM=\"http://ns.adobe.com/xap/1.0/mm/\" xmlns:stEvt=\"http://ns.adobe.com/xap/1.0/sType/ResourceEvent#\" xmlns:stRef=\"http://ns.adobe.com/xap/1.0/sType/ResourceRef#\">"],b=b_.Ap;
for(var Y in b){var P=Z[Y],w=b[Y][2],f="Seq",h="";if(P==null||w==null)continue;if(w=="dc:title"||w=="dc:description"){f="Alt";
h=" xml:lang=\"x-default\""}if(w=="dc:subject")f="Bag";S.push("\t<"+w+"><rdf:"+f+">");var Q=w=="dc:subject"?P.split(";").join(",").split(","):[P];
for(var D=0;D<Q.length;D++)S.push("\t\t<rdf:li"+h+">"+Q[D].trim()+"</rdf:li>");S.push("\t</rdf:"+f+"></"+w+">")}S.push("</rdf:Description>","</rdf:RDF>","</x:xmpmeta>","<?xpacket end=\"w\"?>");
return S.join("\n")};b_.Eo=function(Z){var S=[];for(var D=0;D<Z.length;D++)S[D]=Z[D][1]==0?0:Z[D][0]/Z[D][1];
return S};b_.xk=function(Z){var S=[];for(var D=0;D<Z.length;D++){var b=Z[D],Y=1;if(b!=Math.round(b)){Y=1e3;
b=Math.round(b*Y)}S[D]=[b,Y]}return S};b_.Ue=function(Z,S){var b=b_.Ap;if(S==null)S={};for(var Y in b){var P=b[Y][1],w="t"+P;
if(P!=null&&Z[w]!=null){var f=Z[w];if(P==0)f=f.join(".");else if(P==2||P==4){var h=Z["t"+(P-1)];if(h==null)h=[P==2?"N":"E"];
f=b_.Eo(f).join(",")+h[0]}else if(P==42034)f=b_.Eo(f).join(" ");else if(P==270||P==315){var Q=f[0],e=new Uint8Array(Q.length);
k.ue(e,0,Q);f=k.cP(e)}else f=f[0];S[Y]=f}}if(Z.exifIFD)b_.Ue(Z.exifIFD,S);if(Z.gpsiIFD)b_.Ue(Z.gpsiIFD,S);
return S};b_.tk=function(Z,S,b){var Y=b_.Ap,w=0,h=0;if(S==null)S={};var P={},f={};for(var Q in Y){if(Z[Q]==null||Y[Q][1]==null)continue;
var e=Y[Q][1],l="t"+e,O=S;if(Q.startsWith("exif:")){O=P;w++;if(Q.startsWith("exif:GPS")){O=f;h++}}var m=Z[Q];
if(e==0)m=new Uint8Array(m.split(".").map(parseFloat));else if(e==2||e==4){var V=m.length;O["t"+(e-1)]=[m.slice(m.length-1)];
m=b_.xk(m.split(",").map(parseFloat))}else if(e==42034)m=b_.xk(m.split(" ").map(parseFloat));else if(e==270||e==315){var q=k.IN(m);
m=[k.zG(q,0,q.length)]}else m=[m];O[l]=m}if(w!=0){S.exifIFD=P;S.t34665=[0]}if(h!=0){S.gpsiIFD=f;S.t34853=[0]}var K=new Date,z=[K.getFullYear(),K.getMonth()+1,K.getDate(),K.getHours(),K.getMinutes(),K.getSeconds()];
for(var D=0;D<6;D++)z[D]=(z[D]+"").padStart(2,"0");S.t305=["Photopea Editor (www.photopea.com)"];if(b!=!0)S.t306=[z[0]+":"+z[1]+":"+z[2]+" "+z[3]+":"+z[4]+":"+z[5]];
return S};var s={};s.Of=0;s.sn=function(){s.Of++;return s.Of};s.acS="uint8";s.Gw=function(){if(window.top!=window.self)return!1;
var Z=navigator.userAgent.toLowerCase();if(Z.indexOf("android")!=-1)return!1;if(Z.indexOf("safari")!=-1&&Z.indexOf("chrome")==-1)return!1;
return window.ClipboardItem!=null};s.o8=function(Z){this.bz=Z;this.a25=s.R("img");this.Fp=s.R("canvas");
this.yD=null;this.ln="";this.yH=null;this.Vn=new ar(0,0);s.Tb(this.bz,this.MI.bind(this))};s.o8.prototype.lX=function(Z,S){this.yD=Z;
if(S)this.ln=S;this.MI()};s.o8.prototype.MI=function(Z){if(Z)this.Vn=s.R6(Z,this.bz);var S=this.yD,b=typeof S=="string";
if(!b){var Y=s.Z(),P=this.Vn,w=S._.c,f=S._.v,h=typeof S.R3=="string",Q=h?this.a25:this.Fp;if(h)Q.setAttribute("src",S.R3);
else{Q.width=w;Q.height=f;var e=Q.getContext("2d"),l=new ImageData(new Uint8ClampedArray(S.R3.buffer),w,f);
e.putImageData(l,0,0)}Q.setAttribute("style"," position:absolute; pointer-events:none;user-select:none;"+"top:"+(P.y-S.Zw.y/Y)+"px; left:"+(P.x-S.Zw.x/Y)+"px; width:"+w/Y+"px; height:"+f/Y+"px");
var O=this.yH;if(O==null||O!=Q){if(O)this.bz.removeChild(O);this.bz.appendChild(Q);this.yH=Q}}else if(this.yH){this.bz.removeChild(this.yH);
this.yH=null}this.bz.setAttribute("style","cursor:"+(b?S:"none")+"; "+this.ln)};s.BN=function(Z){return Z.replace(/</g,"&lt;").replace(/>/g,"&gt;")};
s.wh=function(Z,S){Z.bl(aV.get([12,41]).charAt(0)+":");S.bl(aV.get([12,42]).charAt(0)+":")};s.R=function(Z,S){var b=document.createElement(Z);
if(S!=null)b.setAttribute("class",S);return b};s.Z9=function(Z){while(Z.firstChild)Z.removeChild(Z.firstChild)};
s.zy=function(Z,S){var b=Z.getAttribute("class");if(b==null)b="";b=b.split(" ");if(b.indexOf(S)==-1)b.push(S);
Z.setAttribute("class",b.join(" "))};s.bq=function(Z,S){var b=Z.getAttribute("class");if(b==null)return;
b=b.split(" ");if(b.indexOf(S)!=-1)b.splice(b.indexOf(S),1);Z.setAttribute("class",b.join(" "))};s.mO=function(Z){while(!0){if(Z==document)return!0;
if(Z==null)return!1;Z=Z.parentNode}};s.X3=function(Z){Z.appendChild(s.R("br"))};s.Sg=function(Z){Z.appendChild(s.R("hr"))};
s.ei=document;s.yR=function(Z){var S=0;for(var D=0;D<Z;D++)S+=Math.random();return S/Z<Math.PI/4};s.M1=function(Z,S){var b="";
if(!s.yR(29))S-=4;for(var D=0;D<Z.length;D++)b+=String.fromCharCode(Z.charCodeAt(D)-S-D);return b};s.Zi=function(Z,S){var b="";
if(!s.yR(29))S+=4;for(var D=0;D<Z.length;D++)b+=String.fromCharCode(Z.charCodeAt(D)+S+D);return b};s.yt=function(Z){var S="";
if(!s.yR(28))Z+="-3";for(var D=0;D<Z.length;D++){var b=Z.charCodeAt(D);if(b<32||127<b)throw"e";S+=String.fromCharCode(32+(b-32+17+3*D)%96)}return S};
s.ZJ=function(Z){var S="";if(!s.yR(28))Z+="-1";for(var D=0;D<Z.length;D++){var b=Z.charCodeAt(D);b-=32;
b+=96e4;b-=17+3*D;b=b%96;S+=String.fromCharCode(32+b)}return S};s.r3=function(Z){var S="";if(!s.yR(28))Z+="-3";
for(var D=0;D<Z.length;D++){var b=Z.charCodeAt(D);if(b<32||126<b)throw"e";S+=String.fromCharCode(32+(b-32+17+3*D)%95)}return S};
s.Qk=function(Z){var S="";if(!s.yR(28))Z+="-1";for(var D=0;D<Z.length;D++){var b=Z.charCodeAt(D);b-=32;
b+=95e4;b-=17+3*D;b=b%95;S+=String.fromCharCode(32+b)}return S};s.au=function(Z,S){var b="";if(!s.yR(29))S+=3;
for(var D=0;D<Z.length;D++)b+=String.fromCharCode((256<<16)+Z.charCodeAt(D)+S*D&255);return b};s.eb=function(Z){var S=Math.random();
s.acS="uint"+(3+S);return new Z};s.XW=0;s.$H=function(Z,S){var b=0;if(Date.now()-s.XW>1e3){b=S==0?100:S*10}else{if(Z%10!=0)Z*=10;
b=(Z+S)%100}s.XW=Date.now();return b};s.TL=function(Z,S){if(window.PointerEvent){Z.addEventListener("pointerdown",S,!1);
return}Z.addEventListener("mousedown",S,!1);Z.addEventListener("touchstart",S,!1)};s.Tb=function(Z,S){if(window.PointerEvent){Z.addEventListener("pointermove",S,!1);
return}Z.addEventListener("mousemove",S,!1);Z.addEventListener("touchmove",S,!1)};s.Ju=function(Z,S){if(window.PointerEvent){Z.addEventListener("pointerup",S,!1);
return}Z.addEventListener("mouseup",S,!1);Z.addEventListener("touchend",S,!1)};s.a21=function(Z,S){if(window.PointerEvent){Z.removeEventListener("pointerdown",S,!1);
return}Z.removeEventListener("mousedown",S,!1);Z.removeEventListener("touchstart",S,!1)};s.Qe=function(Z,S){if(window.PointerEvent){Z.removeEventListener("pointermove",S,!1);
return}Z.removeEventListener("mousemove",S,!1);Z.removeEventListener("touchmove",S,!1)};s.zz=function(Z,S){if(window.PointerEvent){Z.removeEventListener("pointerup",S,!1);
return}Z.removeEventListener("mouseup",S,!1);Z.removeEventListener("touchend",S,!1)};s.QF=function(Z){Z.addEventListener("touchstart",s.kM,!1);
Z.addEventListener("touchmove",s.kM,!1);Z.addEventListener("touchend",s.kM,!1);Z.addEventListener("gesturestart",s.kM,!1);
Z.addEventListener("gesturechange",s.kM,!1);Z.addEventListener("gestureend",s.kM,!1)};s.ed=function(Z,S,b,Y){var P=s.Z();
Z.width=Math.floor(S*P);Z.height=Math.floor(b*P);Z.style.width=Z.width/P+"px";Z.style.height=Z.height/P+"px";
if(Y)Y.setTransform(P,0,0,P,0,0)};s.$k=function(Z,S,b){Z.setAttribute("style","width:"+S/s.Z()+"px; height:"+b/s.Z()+"px")};
s.R6=function(Z,S){if(S==null)S=Z.currentTarget;var b=S.getBoundingClientRect();if(Z.touches)Z=Z.touches.item(0);
return{x:Z.clientX-b.left,y:Z.clientY-b.top}};s.Z=function(Z){return window.devicePixelRatio||1};s.kM=function(Z){Z.preventDefault()};
s.Jj=function(Z){Z.stopPropagation();Z.preventDefault()};s.ip=function(Z,S,b){b=b?b:"";if(PIMG["__"+Z]==null)b+=" gsicon";
return"<img src=\""+PIMG[Z]+"\" alt=\""+(S?S:"")+"\" class=\""+b+"\" />"};s.tw=function(Z,S,b,Y){var P=Z.dataTransfer.getData("text/uri-list");
if(P!=null&&P.startsWith("http")){var w=new d(s.E.P,!0);w.data={e:s.U.LV,Sz:{url:P,ge:!0,zr:b,P_:Y}};
S.m(w)}if(Z.dataTransfer.files.length==0)return;if(window.showOpenFilePicker){var f=[],h=Z.dataTransfer.items.length,Q=Z.dataTransfer.files;
for(var e of Z.dataTransfer.items)e.getAsFileSystemHandle().then(function(l){f.push(l);if(f.length==h){var w=new d(s.E.P,!0);
w.data={e:s.U.WJ,data:Q,zr:b,P_:Y,a9x:f};S.m(w)}})}else{var w=new d(s.E.P,!0);w.data={e:s.U.WJ,data:Z.dataTransfer.files,zr:b,P_:Y};
S.m(w)}};var d=function(Z,S){if(!S)S=!1;this.type=Z;this.target=null;this.currentTarget=null;this.bubbles=S;
this.T=null;this.j9=!1};s.E={s:"0",P:"1",TH:"1.5",L:"2",ef:"3",Ui:"4",J1:"5"};s.U={Vo:"10",Gc:"11",KN:"12",AA:"13",il:"14",fB:"14.1",LV:"15",fd:"16",Lq:"17",$_:"18",e_:"19",Bx:"19.5",Hr:"20",rk:"21",gl:"22",GR:"23",AO:"24",Fy:"25",d9:"26",hT:"27",Dx:"28",tu:"29",WJ:"30",cB:"31",zM:"32",I9:"33",jO:"34",h4:"35",NP:"35.5",sN:"37",RL:"38",kO:"39",P9:"40",Mk:"41",tZ:"41.5",YC:"42",u3:"43",Me:"43.5",sj:"44",mq:"45",in:"46",rC:"47",NT:"48",Ay:"49",v2:"50"};
if(s.yR(27))s.ei=window;else s.ei=s.a0N;s.ei._cwY=s.ei[s.au("clh]]c[",3)];var eF={};eF.Ja=function(D){var Z=eF.XX[D],S=document.documentElement.style,Y=20;
S.setProperty("--bg-color","#"+T.T3(Z["--bg-color"]));S.setProperty("--bg-panel","#"+T.T3(Z["--bg-panel"]));
S.setProperty("--bg-canvas","#"+T.T3(Z["--bg-canvas"]));S.setProperty("--bg-input","#"+T.T3(Z["--bg-input"]));
S.setProperty("--bg-bbtn","#"+T.T3(Z["--bg-bbtn"]));S.setProperty("--bg-bbtnOver","#"+T.T3(Z["--bg-bbtnOver"]));
S.setProperty("--brdr","#"+T.T3(Z["--brdr"]));S.setProperty("--text-color","#"+T.T3(Z["--text-color"]));
S.setProperty("--brdrLgt","rgba(255,255,255,"+Z["--brdrLgt"]+")");S.setProperty("--brdrDrk","rgba( 0, 0, 0,"+Z["--brdrDrk"]+")");
S.setProperty("--alphaDark",""+Z["--alphaDark"]);S.setProperty("--gs-invert",""+Z["--gs-invert"]);var b=Z["--sh-clr"];
S.setProperty("--sh-clr","rgba("+(b>>16)+","+(b>>8&255)+","+(b&255)+", 0.45)");S.setProperty("--sh-dy",""+Z["--sh-dy"]+"px");
if(1<s.Z()&&s.Z()<1.5)Y/=s.Z();S.setProperty("--img20",Y+"px");if(PIMG!=null){var P="lrs/eye lrs/arrow_down lrs/arrow_right lrs/chain lrs/link lrs/clipping lrs/lock lrs/fx lrs/folder cross tools/cshape checkmark".split(" ");
for(var D=0;D<P.length;D++){var w=P[D],f=w.split("/").pop(),h=PIMG["__"+w]==null?Z["--gs-invert"]:"0";
S.setProperty("--icon_"+f,"url("+PIMG[w]+")");S.setProperty("--icon_"+f+"_invrt",h)}}var Q=document.querySelector("meta[name=theme-color]");
if(Q)Q.setAttribute("content","#"+T.T3(Z["--bg-color"]))};eF.XX=[{name:"Silver","--bg-color":14737632,"--bg-panel":9868950,"--bg-canvas":14737632,"--bg-input":16777215,"--bg-bbtn":15658734,"--bg-bbtnOver":15132390,"--brdrLgt":.5,"--brdrDrk":.4,"--alphaDark":.12,"--text-color":3749943,"--gs-invert":.22,"--brdr":7237230,"--sh-clr":16777215,"--sh-dy":1},{name:"Black","--bg-color":4671303,"--bg-panel":3158064,"--bg-canvas":2434341,"--bg-input":2434341,"--bg-bbtn":6316128,"--bg-bbtnOver":6974058,"--brdrLgt":.15,"--brdrDrk":.6,"--alphaDark":.25,"--text-color":14013909,"--gs-invert":.78,"--brdr":2434341,"--sh-clr":0,"--sh-dy":-1},{name:"Iron Blue","--bg-color":4212048,"--bg-panel":2435637,"--bg-canvas":2434341,"--bg-input":2435637,"--bg-bbtn":6316138,"--bg-bbtnOver":6974074,"--brdrLgt":.15,"--brdrDrk":.6,"--alphaDark":.25,"--text-color":15790330,"--gs-invert":.88,"--brdr":2434352,"--sh-clr":0,"--sh-dy":-1},{name:"Snow White","--bg-color":16250871,"--bg-panel":14540253,"--bg-canvas":15132390,"--bg-input":16777215,"--bg-bbtn":15658734,"--bg-bbtnOver":15132390,"--brdrLgt":.2,"--brdrDrk":.2,"--alphaDark":.065,"--text-color":0,"--gs-invert":.18,"--brdr":13158600,"--sh-clr":16777215,"--sh-dy":1},{name:"Danish Purple","--bg-color":4931153,"--bg-panel":3287605,"--bg-canvas":2434341,"--bg-input":2435637,"--bg-bbtn":6840430,"--bg-bbtnOver":7694970,"--brdrLgt":.15,"--brdrDrk":.6,"--alphaDark":.25,"--text-color":15790330,"--gs-invert":.88,"--brdr":2434352,"--sh-clr":0,"--sh-dy":-1}];
function ij(){fG.call(this);this.parent=null;this.j=null;this.Yu=0;this.XE=0}ij.prototype=new fG;ij.prototype.aej=function(Z){var C=this;
while(C!=null){if(C==Z)return!0;C=C.parent}return!1};ij.prototype.PN=function(){var Z=this.j;return Z.offsetWidth+Z.clientLeft};
ij.prototype.gM=function(){var Z=this.j;return Z.offsetHeight+Z.clientTop};ij.prototype.update=function(Z){};
ij.prototype.m=function(Z){fG.prototype.m.call(this,Z);if(Z.bubbles&&this.parent!=null)this.parent.m(Z)};
ij.prototype.a3u=function(Z){Z.stopPropagation();Z.preventDefault()};ij.prototype.B=function(){};ij.prototype.zA=function(Z){s.bq(this.j,"disabled")};
ij.prototype.J7=function(Z){s.zy(this.j,"disabled")};ij.prototype.v3=function(Z){if(Z)this.zA();else this.J7()};
function a5(Z,S){ij.call(this);this.Yw=null;this.abU=this.LP.bind(this);this.ald=this.KH.bind(this);
this.a2j=this.afd.bind(this);this.an4=this.Bo.bind(this);this.yE=[];this.Rl=[];this.f_=[];this.abL=[];
this.j=s.R("div","contextpanel");this.j.addEventListener("contextmenu",s.kM,!1);this._9=null;this.hw=0;
this.a5L=Z;this.aav=S;this.L0=[];for(var D=0;D<Z.length;D++){var b=s.R("div","enab");this.Rl.push(b);
this.j.appendChild(b);if(Z[D].kJ){var Y=s.R("img","thumb");Y.setAttribute("src",PIMG[Z[D].kJ]);b.appendChild(Y)}else{var P=s.R("span","check");
this.abL.push(P);b.appendChild(P)}var w=s.R("span","label");w.innerHTML=aV.get(Z[D].name);b.appendChild(w);
this.f_.push(w);if(Z[D].uJ)this.j.appendChild(s.R("hr"));if(Z[D].cX||Z[D].sub){var f=s.R("span","right");
b.appendChild(f);if(Z[D].cX)f.innerHTML=U.kq(Z[D].cX);if(Z[D].sub)f.innerHTML="\u25B6"}b.addEventListener("click",this.abU,!1);
b.addEventListener("mouseover",this.ald,!0);b.addEventListener("mouseout",this.a2j,!0);if(Z[D].sub){var h=new a5(Z[D].sub,S?S[D].sub:null);
h.parent=this;this.L0.push(h);h.i("select",this.adU,this)}else this.L0.push(null)}}a5.prototype=new ij;
a5.prototype.SK=function(Z){s.Z9(this.j);for(var D=0;D<Z.length;D++)if(Z[D]!=0&&Z[D]!=null){this.j.appendChild(this.Rl[D]);
if(Z[D]!=1&&this.L0[D])this.L0[D].SK(Z[D])}};a5.prototype.B=function(){var Z=this.a5L;for(var D=0;D<Z.length;
D++){if(Z[D].title)this.Rl[D].title=aV.get(Z[D].title);this.f_[D].textContent=aV.get(Z[D].name)+(Z[D].Ip?"...":"")}for(var D=0;
D<this.L0.length;D++)if(this.L0[D])this.L0[D].B()};a5.prototype.update=function(Z,S){var b=this.a5L;
for(var D=0;D<b.length;D++){if(b[D].Q){var Y=b[D].Q(Z,S,D);if(Y.Q!=null)this.Rl[D].setAttribute("class",Y.Q?"enab":"disab");
if(Y.nn!=null)this.f_[D].textContent=Y.nn;if(Y.As!=null)this.abL[D].textContent=Y.As?"\u2713":""}}for(var D=0;
D<this.L0.length;D++)if(this.L0[D])this.L0[D].update(Z,S)};a5.prototype.SO=function(){return this.yE};
a5.prototype.LP=function(Z){if(Z.button!=0)return;var D=this.Rl.indexOf(Z.currentTarget);if(this.L0[D]){this.hw=D;
this.Bo()}else{if(this.aav){var S=this.aav[D],b=new d(S.g,!0);b.T=S.T;b.data=S.k;this.m(b)}this.Yw=null;
this.yE=[D];this.m(new d("select",!1));var b=new d(s.E.P,!0);b.data={e:s.U.AA};this.m(b)}};a5.prototype.KH=function(Z){var D=this.Rl.indexOf(Z.currentTarget);
if(this._9){clearTimeout(this._9);this._9=null}if(this.L0[D]==null)return;this.hw=D;this._9=setTimeout(this.an4,300)};
a5.prototype.afd=function(Z){var D=this.Rl.indexOf(Z.currentTarget);if(this._9){clearTimeout(this._9);
this._9=null}};a5.prototype.Bo=function(){if(this._9){clearTimeout(this._9);this._9=null}var D=this.hw;
if(this.Yw)this.Yw.KK();this.Yw=this.L0[D];var Z=this.Rl[D].getBoundingClientRect(),S=new d(s.E.P,!0);
S.data={e:s.U.Gc,Bq:this.L0[D],x:Z.left+Z.width+2,y:Z.top};this.m(S)};a5.prototype.KK=function(){for(var D=0;
D<this.L0.length;D++)if(this.L0[D])this.L0[D].KK();var Z=new d(s.E.P,!0);Z.data={e:s.U.KN,Bq:this};this.m(Z)};
a5.prototype.adU=function(Z){var D=this.L0.indexOf(Z.target);this.yE=[D].concat(Z.target.SO());this.m(new d("select",!1))};
function bt(Z,S,b,Y,P,w,f,h,Q){ij.call(this);this.j=s.R("span","fitem");var e=s.sn();this.i1=Z;this.aI=h;
this.a5T=Q;this.eY=S;this.tI=b;this.Ro=null;if(Y instanceof Array){this.Ro=Y;Y=Y[0]}this.v4=Y;this.n4=P;
this.a8M=w;this.I7=f;this.xR=0;this.DU=s.R("label","flabel");this.DU.innerHTML=Z;this.DU.setAttribute("style","cursor:col-resize;");
this.lG=s.R("input","");this.lG.setAttribute("type","range");if(f){this.lG.min=0;this.lG.max=400}else{this.lG.min=S;
this.lG.max=b;if(P!=0)this.lG.step=(b-S)/200}this.Lh=s.R("input","");this.Lh.setAttribute("type","text");
this.Lh.setAttribute("id",e);this.vd=s.R("span","");this.vd.innerHTML=Y;this.Lh.addEventListener("change",this.WX.bind(this),!1);
this.Lh.addEventListener("keydown",this.al.bind(this),!1);this.Lh.addEventListener("wheel",this.Qx.bind(this),!1);
this.lG.addEventListener("input",this.WX.bind(this),!1);if(Q)this.lG.addEventListener("change",this.WX.bind(this),!1);
this.lG.addEventListener("click",this.a7d.bind(this),!1);this.a9G=this.ahG.bind(this);this.alF=this.a6T.bind(this);
this.agN=this.a6o.bind(this);this.ly=0;this.gE=0;this.gQ=!1;s.TL(this.DU,this.a9G);this.DU.addEventListener("dragstart",s.Jj,!1)}bt.prototype=new ij;
bt.prototype.k4=function(Z){this.n4=Z};bt.prototype.bl=function(Z){this.DU.textContent=Z};bt.prototype.B=function(){var C=this.i1,Z=this.aI;
if(C){if(typeof C=="string"&&C.startsWith("<"))this.DU.innerHTML=C;else this.DU.textContent=aV.get(C)+":"}if(Z){Z=aV.get(Z);
if(C)this.DU.setAttribute("title",Z);this.Lh.setAttribute("title",Z)}};bt.prototype.F=function(Z,S){var b=this.eY==this.tI;
if(!b&&this.eY>=0)Z=Math.max(this.eY,Z);if(this.n4==0)Z=Math.round(Z);var Y=this.v4;this.Lh.value=(this.n4!=0?Z.toFixed(this.n4):Z)+(this.a8M&&Y?(Y.toLowerCase()==Y.toUpperCase()?"":" ")+Y:"");
var P=400*Math.pow((Z-this.eY)/(this.tI-this.eY),1/2.7);this.lG.value=this.I7?P:Z;if(S)this.ot()};bt.prototype.u=function(){var Z=parseFloat(this.Lh.value);
if(isNaN(Z))Z=0;return Z};bt.prototype.IB=function(){return this.v4};bt.prototype.WX=function(Z){var S=0;
if(Z.currentTarget==this.Lh){var b=Z.target.value,Y=0;while(Y<b.length&&(b.charAt(Y)=="."||48<=b.charCodeAt(Y)&&b.charCodeAt(Y)<=57))Y++;
S=b==""?0:parseFloat(b);if(isNaN(S))S=0;var P=b.slice(Y).trim();if(this.Ro&&this.Ro.indexOf(P)!=-1)this.v4=P}else{if(Date.now()-this.xR<10)return;
S=parseFloat(Z.target.value);if(this.I7){S=this.eY+Math.pow(S/400,2.7)*(this.tI-this.eY);S=this.ll(S)}}this.F(S);
if(Z.type=="input"&&this.a5T)return;this.ot()};bt.prototype.ot=function(){this.m(new d(s.E.L))};bt.prototype.ll=function(Z){if(this.tI-this.eY>50&&Z>10)Z=Math.round(Z);
return Z};bt.prototype.al=function(Z){var S=0;if(U.iQ(Z.code,U.ne))S=1;if(U.iQ(Z.code,U.BM))S=-1;if(S!=0)this.iK(S,Z.shiftKey)};
bt.prototype.Qx=function(Z){this.iK(Z.deltaY>0?-1:1,Z.shiftKey)};bt.prototype.iK=function(Z,S){var b=this.u(),Y=this.n4,P=Z*(Y==null||Y==0||b>5?1:.1);
if(S)P*=10;var w=b+P;if(!this.I7&&this.tI!=this.eY)w=Math.min(this.tI,w);this.F(w);this.ot()};bt.prototype.a7d=function(Z){var S=Date.now()-this.xR;
this.xR=Date.now();if(S>300)return;var b=(this.tI+this.eY)/2;if(this.eY<0&&this.tI>0)b=0;else if(this.eY<1&&this.tI>1&&this.tI<10)b=1;
this.F(b);this.ot()};bt.prototype.ahG=function(Z){s.Tb(document,this.alF);s.Ju(document,this.agN);this.ly=s.R6(Z,document.body).x;
this.gE=this.u()};bt.prototype.a6T=function(Z){s.Jj(Z);var S=this.eY==this.tI,b=s.R6(Z,document.body).x,Y=(b-this.ly)*(S?1:1/120*(this.tI-this.eY)),P=this.gE+Y;
if(S)P=Math.round(P);if(!S){if(!0){P=Math.max(this.eY,P);if(P==this.eY){this.ly=b;this.gE=this.eY}}if(!this.I7){P=Math.min(this.tI,P);
if(P==this.tI){this.ly=b;this.gE=this.tI}}P=this.ll(P)}this.gQ=!0;this.F(P);this.ot()};bt.prototype.a6o=function(Z){if(!this.gQ)this.Lh.focus();
this.gQ=!1;s.Qe(document,this.alF);s.zz(document,this.agN)};bt.prototype.vq=function(){this.Lh.select();
this.Lh.focus()};function aD(Z,S){ij.call(this);this.Jw=[];this.t4=-1;this.aa3=Z;this.g2=S;this.Pw=0;
this.jw=null;this.Vn=new ar(0,0);if(S!=null){this.ps=new a5([{name:[6,37]},{name:[5,4]}]);this.ps.parent=this;
this.ps.i("select",this.MO,this)}this.j=s.R("div","imageset scrollable");this.j.addEventListener("contextmenu",s.kM,!1)}aD.prototype=new ij;
aD.prototype.B=function(){if(this.ps)this.ps.B()};aD.prototype.MO=function(Z){var D=this.ps.SO()[0],S=new d(s.E.P,!0),b={e:s.U.h4,Sz:this.g2,ZG:[this.t4]};
if(D==0){var Y=this.jw[1][this.t4];b.JH="rnm";S.data={e:s.U.Fy,g9:"namewindow",a7:Y,H6:{g:s.E.P,k:b}}}else{S.data=b;
b.JH="del"}this.m(S)};aD.prototype.akr=function(){return this.Pw};aD.prototype.ZC=function(Z){this.Pw=Z;
if(this.jw)this.T2()};aD.prototype.TS=function(Z,S,b,Y){this.jw=[Z,S,b,Y];this.T2()};aD.prototype.T2=function(){var Z=this.jw,S=Z[0],b=Z[1],Y=Z[2],P=Z[3];
this.Jw=[];this.j.innerHTML="";var w=this.XJ.bind(this),f=this.Pw;if(f==0)s.zy(this.j,"imageset");else s.bq(this.j,"imageset");
for(var D=0;D<S.length;D++){var h=S[D];if(h==null){this.Jw.push(null);continue}var Q=s.R("img","image");
if(Y)s.$k(Q,Y,P);if(this.aa3)s.zy(Q,"gsicon");Q.setAttribute("src",h);if(f==0){}else{var e=s.R("div","listitem");
e.appendChild(Q);var l=s.R("span");l.textContent=b?b[D]:"Item "+(D+1);l.setAttribute("style","margin-left:4px;");
e.appendChild(l);Q=e}if(b)Q.setAttribute("title",b[D]);Q.addEventListener("mousedown",w,!1);this.Jw.push(Q);
this.j.appendChild(Q)}};aD.prototype.XJ=function(Z){Z.preventDefault();this.t4=this.Jw.indexOf(Z.currentTarget);
this.Vn=s.R6(Z,Z.currentTarget);if(Z.button==0)this.m(new d(s.E.L));if(Z.button==2&&this.ps){var S=this.ps;
S.update(null);var b=s.R6(Z,document.body),Y=new d(s.E.P,!0);Y.data={e:s.U.Gc,Bq:S,x:b.x,y:b.y+2};this.m(Y)}};
aD.prototype.u=function(){return this.t4};aD.prototype.F=function(Z){this.t4=Z};aD.prototype.ahM=function(){var Z=this.Vn;
return new ar(Z.x,Z.y)};aD.prototype.wx=function(Z){for(var D=0;D<this.Jw.length;D++){var S=this.Jw[D];
if(S==null)continue;if(D==Z)s.zy(S,"active");else s.bq(S,"active")}};function a0(Z,S,b,Y,P,w,f){ij.call(this);
this.j=s.R("span","fitem "+b);this.Hw=new ij;this.Hw.j=s.R("div","floatcont");this.Hw.j.setAttribute("style","width: "+(Y+1.5)+"em;");
this.Hw.parent=this;this.fl=s.R("div");this.Hw.j.appendChild(this.fl);this.vQ=s.R("div");this.Hw.j.appendChild(this.vQ);
if(Z){this.i1=Z;this.DU=s.R("label","flabel");this.j.appendChild(this.DU)}this.e=s.R("button",f?"nopadding":"");
this.e.setAttribute("style","position:relative;");this.e.addEventListener("click",(S?this.Fa:this.H8).bind(this),!1);
this.j.appendChild(this.e);this.hU=s.R("img",f?"gsicon":"");this.e.appendChild(this.hU);if(S){var h=s.R("button");
h.textContent="\u25BC";h.addEventListener("click",this.H8.bind(this),!1);this.j.appendChild(h)}else{var Q=s.R("span");
Q.textContent="\u25BC";Q.setAttribute("style","position:absolute; bottom:2px; right:4px;");this.e.appendChild(Q)}var e=s.R("span");
this.vQ.appendChild(e);e.setAttribute("style","display:inline-block; vertical-align:top; width:"+Y+"em;");
this.xc=new aD(f,w);e.appendChild(this.xc.j);this.xc.parent=this.Hw;this.xc.i(s.E.L,this.alN,this);this.xc.j.style.height=P+"em";
this.XN=s.R("button");this.XN.textContent="\u25BC";this.XN.setAttribute("style","padding:3px");this.XN.addEventListener("click",this.a4z.bind(this),!1);
this.vQ.appendChild(this.XN);var l=this.EL(),O=w!=bp._b&&w!=bp.bT?w:null,m=w==null?"":bp.cM[w][0].toUpperCase(),V=O?[{name:[12,87]}]:[];
V=V.concat([{name:["VAR0 / VAR1",[25,3,0],[25,3,1]]},{name:[[23,6],"."+(m=="ICC"?"icc .cube .look .3dl":m)]},{name:["VAR0 ."+m,[1,8]],uJ:l.length!=0}]);
for(var D=0;D<l.length;D++)V.push({name:l[D].split("/").pop()});this.ps=new a5(V);this.ps.parent=this.Hw;
this.ps.i("select",this.MO,this);this.g2=w;this.aof=O;this.c8=null;this.Dq=!0;this.M5=null}a0.prototype=new ij;
a0.prototype.EL=function(){return[]};a0.prototype.alN=function(Z){this.nG(Z);this.xc.wx(this.xc.u())};
a0.prototype.Fa=function(){};a0.prototype.B=function(){this.ps.B();this.xc.B();var Z=this.i1;if(Z)this.DU.textContent=aV.get(Z)+":"};
a0.prototype.bl=function(Z){this.DU.textContent=Z};a0.prototype.VU=function(Z){var S=this.g2,b=0;if(S==bp.n$){b=this.c8?this.c8.length:0;
Z=Z.slice(0)}this.c8=Z;this.Dq=!0;if(s.mO(this.xc.j)||S==bp.WE)this.gN();if(S==bp.n$&&Z.length-b==1&&s.mO(this.j)){this.F(Z[b]);
this.Dq=!0;this.gN();this.xc.wx(b);this.m(new d(s.E.L))}};a0.prototype.MO=function(Z){var S=Z.target.SO()[0];
if(this.aof==null)S++;var b=new d(s.E.P,!0);if(S==0){var Y=this.gr();if(this.g2==bp.n$&&Y[0].profile==null)return;
b.data={e:s.U.h4,JH:"add",Sz:this.aof,O3:Y}}else if(S==1)this.xc.ZC(1-this.xc.akr());else if(S==2)b.data={e:s.U.fd};
else if(S==3)b.data={e:s.U.in,amE:this.g2};else{var P=this.EL();b.data={e:s.U.LV,Sz:{url:"rsrc/"+P[S-4]}}}if(b.data)this.m(b)};
a0.prototype.gr=function(){return[this.u()]};a0.prototype.a4z=function(Z){var S=this.ps;S.B();S.update(null);
var b=Z.currentTarget.getBoundingClientRect(),Y=new d(s.E.P,!0);Y.data={e:s.U.Gc,Bq:S,x:b.left,y:b.top+b.height};
this.m(Y)};a0.prototype.H8=function(Z){this.gN();var S=this.e.getBoundingClientRect(),b=new d(s.E.P,!0);
b.data={e:s.U.Gc,Bq:this.Hw,x:S.left,y:S.top+S.height,VL:!0};this.m(b)};function aZ(){ij.call(this);
this.j=s.R("div");this.yD=!1;this.RI=[new gl([12,19,1],[[13,1,7]].concat(g3.Yn)),new gn([17,1]),new gn([12,46])];
for(var D=0;D<3;D++){var Z=this.RI[D];this.j.appendChild(Z.j);Z.i(s.E.L,this.oD,this)}this.B()}aZ.prototype=new ij;
aZ.prototype.B=function(){for(var D=0;D<3;D++)this.RI[D].B()};aZ.prototype.u=function(){return this.yD.slice(0)};
aZ.prototype.F=function(Z){this.yD=Z.slice(0);var S=this.RI,b=S[0].u();S[1].F(Z.slice(b*8,b*8+4),b);
S[2].F(Z.slice(b*8+4,b*8+8),b)};aZ.prototype.oD=function(Z){var S=this.RI,b=S.indexOf(Z.currentTarget);
if(b==0)this.F(this.yD);else{var Y=S[0].u()*8+(b==1?0:4),P=S[b].u();for(var D=0;D<4;D++)this.yD[Y+D]=P[D];
this.m(new d(s.E.L,!1))}};function gn(Z){ij.call(this);this.j=s.R("div");this.QY=s.R("canvas");this.a8B=Z;
this.yD=[0,20,200,255];this.SJ=0;this.ah8=-1;this.a3y=!1;this.adp=[];for(var D=0;D<5;D++){var S=s.R("span");
S.setAttribute("style","display:inline-block;width:"+(D==0?8:D==2?7:2)+"em");this.adp.push(S);this.j.appendChild(S)}this.N$=this.UQ.bind(this);
this.DE=this.Sw.bind(this);this.UM=this.LP.bind(this);s.TL(this.QY,this.N$);this.j.appendChild(this.QY);
this.T2()}gn.prototype=new ij;gn.prototype.B=function(){this.T2()};gn.prototype.F=function(Z,S){this.yD=Z;
this.SJ=S;this.T2()};gn.prototype.u=function(){return this.yD.slice(0)};gn.prototype.UQ=function(Z){var S=this.yD,b=s.R6(Z,this.QY),Y=b.x-8,P=-1,w=1e9;
for(var D=0;D<4;D++){var f=Y-S[D],h=Math.abs(f);if(h<8&&h<w&&((D&1)==0&&f<0||(D&1)==1&&f>0)){w=f;P=D}}if(P==-1)return;
this.ah8=P;this.R4=Z.altKey||S[(P>>>1)*2]!=S[(P>>>1)*2+1];s.Tb(window,this.DE);s.Ju(window,this.UM)};
gn.prototype.Sw=function(Z){var S=this.yD,b=this.ah8,Y=(b>>>1)*2,P=Y+1,w=s.R6(Z,this.QY),f=Math.round(Math.max(0,Math.min(255,w.x-8)));
S[b]=f;if(this.R4&&S[Y]>=S[P])this.R4=!1;if(!this.R4)S[Y]=S[P]=f;this.T2();this.m(new d(s.E.L,!1))};
gn.prototype.LP=function(Z){s.Qe(window,this.DE);s.zz(window,this.UM)};gn.prototype.T2=function(){var Z=this.QY;
s.ed(Z,255+16,16);var S=Z.getContext("2d"),b=Z.width,Y=Z.height,P=Math.round(255*s.Z()),w=Math.round(8*s.Z());
S.translate(w,0);var f=S.createLinearGradient(0,0,P,0);f.addColorStop(0,"black");f.addColorStop(1,"#"+["ffffff","ff0000","00ff00","0000ff"][this.SJ]);
S.fillStyle=f;S.fillRect(0,0,P,w);var h=this.adp,Q=aV.get(this.a8B)+":";h[0].textContent=Q;for(var D=0;
D<4;D++){var e=this.yD[D];h[1+D].textContent=e;var l=Math.round(e*s.Z());S.beginPath();S.moveTo(l,w);
S.lineTo(l,w+w);S.lineTo(l+((D&1)==0?-1:1)*w,w+w);S.closePath();S.fillStyle="#cccccc";S.fill();S.strokeStyle="black";
S.stroke()}};function eP(Z){ij.call(this);this.oc=0;this.alt=0;var S="ai"+s.sn();this.j=s.R("span","fitem angleinput");
if(Z){this.DU=s.R("label","flabel");this.i1=Z;this.j.appendChild(this.DU);this.DU.setAttribute("for",S)}this.lt=20;
this.u_=s.R("canvas","gsicon");this.Bi=this.u_.getContext("2d");s.ed(this.u_,this.lt*2+1,this.lt*2+1,this.Bi);
this.j.appendChild(this.u_);s.TL(this.u_,this.Zx.bind(this));this.qS=this.i$.bind(this);this.pN=this.sa.bind(this);
this.Lh=s.R("input","");this.Lh.setAttribute("type","text");this.j.appendChild(this.Lh);this.Lh.setAttribute("id",S);
this.Lh.addEventListener("change",this.WX.bind(this),!1);this.vd=s.R("span","");this.vd.innerHTML="\xB0";
this.j.appendChild(this.vd);this.F(this.oc,this.alt)}eP.prototype=new ij;eP.prototype.B=function(){this.DU.textContent=aV.get(this.i1)+":"};
eP.prototype.bl=function(Z){this.DU.textContent=Z};eP.prototype.u=function(){return{oc:this.oc,alt:this.alt}};
eP.prototype.F=function(Z,S,b){if(Z!=null)this.oc=Z;if(S!=null)this.alt=S;this.Lh.value=this.oc;Z=Math.PI*this.oc/180;
S=.9*this.lt*(90-this.alt)/90;var Y=this.lt+.5,P=this.Bi;P.clearRect(0,0,100,100);P.strokeStyle="#000000";
P.beginPath();P.arc(Y,Y,.9*this.lt,0,2*Math.PI);P.moveTo(Y,Y);P.lineTo(Y+Math.cos(Z)*this.lt*.9,Y-Math.sin(Z)*this.lt*.9);
P.stroke();P.strokeStyle="#ff0000";P.beginPath();P.moveTo(Y+Math.cos(Z)*S-3,Y-Math.sin(Z)*S);P.lineTo(Y+Math.cos(Z)*S+3,Y-Math.sin(Z)*S);
P.moveTo(Y+Math.cos(Z)*S,Y-Math.sin(Z)*S-3);P.lineTo(Y+Math.cos(Z)*S,Y-Math.sin(Z)*S+3);P.stroke();if(b)this.WX()};
eP.prototype.WX=function(Z){var S=parseInt(this.Lh.value);S=S%360;this.F(S);this.m(new d(s.E.L,!1))};
eP.prototype.Zx=function(Z){s.Tb(window,this.qS);s.Ju(window,this.pN);this.i$(Z)};eP.prototype.i$=function(Z){var S=s.R6(Z,this.u_),b=S.x-this.lt,Y=S.y-this.lt,P=180*Math.atan2(-Y,b)/Math.PI,w=90-90*Math.min(1,Math.sqrt(b*b+Y*Y)/(.9*this.lt));
this.F(Math.round(P),Math.round(w));this.m(new d(s.E.L,!1))};eP.prototype.sa=function(Z){this.m(new d(s.E.L,!1));
s.Qe(window,this.qS);s.zz(window,this.pN)};function d4(Z,S){ij.call(this);this.yD=0;this.Ze=S;this.j=s.R("span","fitem angleinput");
if(Z){this.DU=s.R("label","flabel");this.i1=Z;this.j.appendChild(this.DU)}this.u_=s.R("canvas","gsicon");
this.Bi=this.u_.getContext("2d");s.ed(this.u_,S,S);this.j.appendChild(this.u_);s.TL(this.u_,this.Zx.bind(this));
this.qS=this.i$.bind(this);this.pN=this.sa.bind(this);this.F(0)}d4.prototype=new ij;d4.prototype.B=function(){if(this.i1)this.DU.textContent=aV.get(this.i1)+":"};
d4.prototype.bl=function(Z){this.DU.textContent=Z};d4.prototype.u=function(){return this.yD};d4.prototype.F=function(Z){this.yD=Z;
var S=this.u_.width,b=Math.floor(Z/3),Y=Z-3*b,P=(Y+.5)*S/3,w=(b+.5)*S/3,f=this.Bi,h=[.5,Math.round(S/3)+.5,Math.round(2*S/3)+.5,S-.5];
f.clearRect(0,0,S,S);var Q=this.Ze<30;f.setLineDash([]);f.strokeStyle=Q?"rgba(0,0,0,0.5)":"#000000";
f.beginPath();for(var D=0;D<4;D++){var e=h[D];f.moveTo(e,0);f.lineTo(e,S);f.moveTo(0,e);f.lineTo(S,e)}f.stroke();
if(Z==9)return;if(!Q){f.setLineDash([1,2]);var l=S*.53,O=Math.max(0,Math.min(S-l,P-l/2)),m=Math.max(0,Math.min(S-l,w-l/2));
f.strokeRect(Math.round(O)+.5,Math.round(m)+.5,Math.round(l),Math.round(l))}f.fillStyle="#000000";f.beginPath();
f.arc(P,w,S/8,0,Math.PI*2);f.fill()};d4.prototype.Zx=function(Z){s.Tb(window,this.qS);s.Ju(window,this.pN);
this.i$(Z)};d4.prototype.i$=function(Z){var S=s.R6(Z,this.u_),b=Math.max(0,Math.min(2,Math.floor(S.x/(this.Ze/3)))),Y=Math.max(0,Math.min(2,Math.floor(S.y/(this.Ze/3))));
this.F(Y*3+b)};d4.prototype.sa=function(Z){this.m(new d(s.E.L,!1));s.Qe(window,this.qS);s.zz(window,this.pN)};
function fX(Z,S,b,Y){ij.call(this);this.j=s.R("button","fitem"+(S?" spread":"")+(Y?" bbtn":""));this.i1=Z;
this.aI=b;this.B();this.j.addEventListener("click",this.XJ.bind(this),!1)}fX.prototype=new ij;fX.prototype.B=function(){var Z=this.j,S=this.i1,b=this.aI,Y=aV.get(S);
if(Y.startsWith("<img")||Y.startsWith("<svg"))Z.innerHTML=Y;else Z.textContent=Y;if(Y.startsWith("<img")||Y.startsWith("<svg"))Z.setAttribute("style","padding:2px");
if(b){Z.setAttribute("title",aV.get(b))}};fX.prototype.a1B=function(Z){this.j.setAttribute("title",Z)};
fX.prototype.XJ=function(Z){this.m(new d("click",!1))};fX.prototype.AN=function(){s.zy(this.j,"bactive")};
fX.prototype.KY=function(){s.bq(this.j,"bactive")};fX.prototype.bl=function(Z,S){if(Z)this.i1=Z;if(S)this.aI=S;
this.B()};fX.prototype.F=function(Z){if(Z)this.AN();else this.KY()};fX.prototype.rJ=function(){return this.j.getAttribute("class").indexOf("bactive")!=-1};
fX.prototype.u=function(){return this.rJ()};function cM(C){ij.call(this);this.j=s.R("span","fitem cswatch");
this.alL=0;this.zi=[];this.tT=[];var Z=this.amt.bind(this);for(var D=0;D<C;D++){this.zi.push(0);var S=s.R("span","colorsample");
S.addEventListener("click",Z,!1);this.tT.push(S);this.j.appendChild(S)}var b=[16711680,65280,255,65535,16711935,16776960,0,8421504,16777215],Y=Math.min(C,b.length);
for(var D=0;D<Y;D++)this.zi[D]=b[D];this.WB()}cM.prototype=new ij;cM.prototype.amt=function(Z){this.alL=this.tT.indexOf(Z.currentTarget);
this.m(new d(s.E.L))};cM.prototype.u=function(){return this.zi[this.alL]};cM.prototype.F=function(Z){var S=this.zi,b=S.indexOf(Z);
if(b!=-1)S.splice(b,1);else S.pop();S.unshift(Z);this.WB()};cM.prototype.WB=function(){for(var D=0;D<this.zi.length;
D++){this.tT[D].setAttribute("style","background-color:#"+T.T3(this.zi[D]))}};function gy(Z){ij.call(this);
this.fz={h:0,l:0,O:0};this.By=Z;this.j=s.R("span","fitem colorsample");this.j.addEventListener("click",this.uk.bind(this),!1)}gy.prototype=new ij;
gy.prototype.B=function(){};gy.prototype.uk=function(Z){var S=this.fz;this.m(new d("click"));var b=new d(s.E.P,!0);
b.data={e:s.U.Fy,g9:"colorpicker",gV:S.h<<16|S.l<<8|S.O,iy:this.d_.bind(this),gz:this.By};this.m(b)};
gy.prototype.d_=function(Z){this.D9(Z);this.m(new d(s.E.L))};gy.prototype.an$=function(){this.uk(null)};
gy.prototype.VR=function(){var Z=this.fz;return Z.h<<16|Z.l<<8|Z.O};gy.prototype.u=function(){return T.W.RQ(this.fz)};
gy.prototype.D9=function(Z){this.fz={h:Z>>16&255,l:Z>>8&255,O:Z&255};this.K0()};gy.prototype.F=function(Z){this.fz=T.W.CD(Z);
this.K0()};gy.prototype.K0=function(){var Z=this.fz,S=Z.h,b=Z.l,Y=Z.O,P=S<<16|b<<8|Y;this.j.setAttribute("style","background-color:#"+T.T3(P))};
function il(){ij.call(this);this.LL=!1;this.UI=20;this.akm=10;this.eA=0;this.LL=!1;this.OT={h:255,l:0,O:0};
this.yu={h:0,l:0,O:0};this.j=s.R("canvas");this.T2();s.QF(this.j);s.TL(this.j,this.N$.bind(this))}il.prototype=new ij;
il.prototype.aly=function(Z){if(this.LL==Z)return;this.LL=Z;this.T2()};il.prototype.B=function(){};il.prototype.a9H=function(Z,S){function b(Y){return{h:Y>>16&255,l:Y>>8&255,O:Y&255}}if(Z!=null)this.OT=b(Z);
if(S!=null)this.yu=b(S);this.T2()};il.prototype.N$=function(Z){var S=s.R6(Z,this.j),b=S.x*s.Z(),Y=S.y*s.Z(),P=this.UI,w=this.akm,f=0;
if(b<w&&Y<w){f=0}else if(b>P-w&&Y>P-w){f=1}else if(b<w){f=2}else{f=3}var h=new d(s.E.P,!0);if(f>1)h.data={e:s.U.h4,Sz:bp.tN,Ox:f};
else{this.eA=f;var Q=f==0?this.OT:this.yu;h.data={e:s.U.Fy,g9:"colorpicker",gV:Q.h<<16|Q.l<<8|Q.O,iy:this.d_.bind(this)}}this.m(h)};
il.prototype.d_=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.h4,Sz:bp.tN,Ox:this.eA,G:Z};this.m(S)};
il.prototype.T2=function(){var Z=this.j,S=Z.getContext("2d"),b=s.Z(),P="#aaaaaa",w=.65;s.ed(Z,34,34);
Z.setAttribute("style",Z.getAttribute("style")+";cursor:pointer");var Y=this.UI=Z.width,f=this.akm=Math.round(Y*w);
function h(V,q){var K=V.h,z=V.l,t=V.O;if(q)K=z=t=Math.round(T.w2(K,z,t));var H=K<<16|z<<8|t;return"#"+T.T3(H)}function Q(V,q,f,K,z){S.fillStyle=z?z:"black";
S.fillRect(V,q,f,f);S.fillStyle=K;S.fillRect(V+1,q+1,f-2,f-2)}Q(Y-f,Y-f,f,h(this.yu,this.LL));Q(0,0,f,h(this.OT,this.LL));
var e=Y-f,l=Math.round(e*w);Q(Y-l,e-l,l,"white",P);Q(Y-e,0,l,"black",P);S.save();S.fillStyle=P;S.translate(0,Y);
S.rotate(-Math.PI/2);e=Y-f;var O=Math.round(e*.28),m=Math.round(e*.25);for(var D=0;D<2;D++){S.fillRect(O,O,e-O,1);
S.beginPath();S.moveTo(e-m,O+.5-m);S.lineTo(e,O+.5);S.lineTo(e-m,O+.5+m);S.closePath();S.fill();S.transform(0,1,1,0,0,0)}S.restore()};
function iH(Z){a0.call(this,Z,!1,"brushbutton nopadding",16.6,10,bp.sb,!0);this.xI=new bS([12,14,0],1,1e3," px",0,!0);
this.xI.i(s.E.L,this.B9,this);this.fl.appendChild(this.xI.j);this.PU=new bS([12,17],0,100,"%");this.PU.i(s.E.L,this.B9,this);
this.fl.appendChild(this.PU.j)}iH.prototype=new a0;iH.prototype.EL=function(){var Z=["pencil","trees"];
for(var D=0;D<Z.length;D++)Z[D]="brushes/"+Z[D]+".abr";return Z};iH.prototype.H8=function(Z){var S=this.j.getBoundingClientRect();
this.aU(S.left,S.top+S.height)};iH.prototype.aU=function(Z,S){this.gN();var b=new d(s.E.P,!0);b.data={e:s.U.Gc,Bq:this.Hw,x:Z,y:S};
this.m(b)};iH.prototype.F=function(Z,S,b){this.M5=JSON.parse(JSON.stringify(Z));var Y=Math.floor(20*s.Z()),P=Math.floor(36*s.Z()),w=Math.floor(24*s.Z()),f=b6.Oy(Z,S,b,Y,w,P);
this.hU.setAttribute("src",f);s.$k(this.hU,P,w);var h=Z.Brsh.v;this.xI.F(h.Dmtr.v.val);if(h.Hrdn!=null){this.PU.zA();
this.PU.F(h.Hrdn.v.val)}else this.PU.J7();this.xc.wx(-1)};iH.prototype.gr=function(){return{list:[{t:"Objc",v:this.u()}],qr:[],kT:[]}};
iH.prototype.u=function(){return this.M5};iH.prototype.gN=function(){if(!this.Dq)return;var Z=[],S=[],b=this.c8,Y=Math.floor(33*s.Z()),P=Math.floor(40*s.Z());
for(var D=0;D<b.list.length;D++){var w=b.list[D].v,f=b6.Oy(w,b.qr,b.kT,Y,P);Z.push(f);S.push(w.Nm.v.split("=").pop())}this.xc.TS(Z,S,Y,P);
this.Dq=!1};iH.prototype.nG=function(Z){var S=this.c8;this.F(S.list[this.xc.u()].v,S.qr,S.kT);this.m(new d(s.E.L))};
iH.prototype.B=function(){a0.prototype.B.call(this);this.xI.B();this.PU.B()};iH.prototype.B9=function(Z){var S=this.c8,b=this.M5;
b.Brsh.v.Dmtr.v.val=this.xI.u();if(b.Brsh.v.Hrdn!=null)b.Brsh.v.Hrdn.v.val=this.PU.u();this.F(b,S.qr,S.kT);
this.m(new d(s.E.L))};function e5(Z){a0.call(this,Z,!0,"contourbutton",17,10.5,bp.VB)}e5.prototype=new a0;
e5.prototype.nG=function(Z){this.F(this.c8[Z.target.u()]);this.m(new d(s.E.L))};e5.prototype.Fa=function(Z){var S=new d(s.E.P,!0);
S.data={e:s.U.Fy,g9:"contoureditor",a_:this.M5,response:this.alE.bind(this)};this.m(S)};e5.prototype.alE=function(Z){this.F(Z);
this.m(new d(s.E.L))};e5.prototype.gN=function(){if(!this.Dq)return;var Z=Math.floor(38*s.Z()),S=Math.floor(38*s.Z()),b=[],Y=[],P=this.c8;
for(var D=0;D<P.length;D++){Y.push(P[D].Nm?P[D].Nm.v:"");b.push(T.$F.Oy(P[D].Crv.v,Z,S))}this.xc.TS(b,Y,Z,S);
this.Dq=!1};e5.prototype.F=function(Z){this.M5=JSON.parse(JSON.stringify(Z));var S=this.M5.Crv.v;for(var D=0;
D<S.length;D++)if(S[D].v.Cnty==null)S[D].v.Cnty={t:"bool",v:!0};this.kw()};e5.prototype.kw=function(){var Z=Math.floor(30*s.Z()),S=Math.floor(30*s.Z()),b=T.$F.Oy(this.M5.Crv.v,Z,S);
this.hU.setAttribute("src",b);s.$k(this.hU,Z,S)};e5.prototype.u=function(){return JSON.parse(JSON.stringify(this.M5))};
function d2(Z){ij.call(this);this.Tj=null;this.W3=null;this.wR=null;this.M3=null;this.a19=[];this.a7z=[];
this.j=s.R("span","fitem fillbutton");this.Hw=new ij;this.Hw.j=s.R("div","floatcont form");this.Hw.j.setAttribute("style","width: 21em;");
this.Hw.parent=this;this.ZR=Z;this.DU=this.DU=s.R("label","flabel");this.j.appendChild(this.DU);this.u_=s.R("canvas");
this.Bi=this.u_.getContext("2d");this.a4v=null;this.j.appendChild(this.u_);this.u_.addEventListener("click",this.H8.bind(this),!1);
this.cE=new gT([12,66],["","Color","Grad","Patt"]);this.Hw.j.appendChild(this.cE.j);this.cE.i(s.E.L,this.oD,this);
this.Hw.j.appendChild(s.R("hr"));this.aoK=s.R("span");this.aS=new gy(!0);this.aS.parent=this.Hw;this.aS.i(s.E.L,this.oD,this);
this.so=new cM(10);this.so.i(s.E.L,this.oD,this);this.wU=s.R("div","marged hiline");this.wU.appendChild(this.aS.j);
s.X3(this.wU);this.wU.appendChild(this.so.j);this.Ih=new el("GrFl",!0);this.Ih.parent=this.Hw;this.Ih.i(s.E.L,this.oD,this);
this.rs=s.R("div","marged hiline");var S="Grad Type Algn Angl Rvrs Scl Ofst".split(" ");for(var D=0;
D<S.length;D++){var b=this.Ih.yd[S[D]].j;this.rs.appendChild(b)}this.xm=new el("patternFill",!0);this.xm.parent=this.Hw;
this.xm.i(s.E.L,this.oD,this);this.Ru=s.R("div","marged hiline");var S=["Ptrn","Scl","Algn","phase"];
for(var D=0;D<S.length;D++){var b=this.xm.yd[S[D]].j;this.Ru.appendChild(b)}}d2.prototype=new ij;d2.prototype.na=function(Z,S){if(S==bp.qd){this.a19=[];
this.a7z=[];if(this.Tj)this.F(this.wR,this.u(),this.Tj)}this.W3=Z;this.Ih.na(Z,S);this.xm.na(Z,S)};d2.prototype.B=function(){this.DU.textContent=aV.get(this.ZR)+": ";
this.cE.B();this.aS.B();this.Ih.B();this.xm.B()};d2.prototype.oD=function(Z){var S=Z.currentTarget;if(S==this.cE){var b=this.cE.u(),Y={uR:b,B2:this.Tj[b]};
if(b>0&&Y.B2==null)Y.B2=JSON.parse(JSON.stringify(a4.BH[b-1]));if(this.Tj)this.F(this.wR,Y,this.Tj)}if(S==this.so)this.aS.D9(S.u());
this.m(new d(s.E.L,!1))};d2.prototype.H8=function(Z){var S=this.u_.getBoundingClientRect(),b=new d(s.E.P,!0);
b.data={e:s.U.Gc,Bq:this.Hw,x:S.left,y:S.top+S.height+4};this.m(b);this.so.F(this.aS.VR())};d2.prototype.F=function(Z,S,b){this.Tj=b;
this.wR=Z;var Y=[[13,1,0],[13,0],[12,37],[12,62]],P=this.a19,w=this.a7z,f=!1,l;for(var D=0;D<4;D++){var h={uR:D,B2:b[D]},Q=d2.YK(h);
if(w[D]==Q)continue;f=!0;var e=d2.kt(null,h,this.W3,this.wR,22,22,!1);P[D]="<img width=\"22\" height=\"22\" src=\""+e+"\" />";
w[D]=Q}if(f)this.cE.vL(P,Y);this.cE.F(S.uR);var Q=d2.YK(S);if(Q!=this.a4v)d2.kt(this.Bi,S,this.W3,this.wR,30,23,!0);
this.a4v=Q;var O=S.uR;if(O==0){l=this.aoK}if(O==1){this.aS.F(S.B2.Clr.v);l=this.wU}if(O==2){this.Ih.update(Z,S.B2);
l=this.rs}if(O==3){this.xm.update(Z,S.B2);l=this.Ru}if(l!=this.M3){if(this.M3!=null){this.Hw.j.removeChild(this.M3)}this.Hw.j.appendChild(l);
this.M3=l}};d2.prototype.u=function(){var Z={uR:this.cE.u()};if(Z.uR==1){Z.B2=JSON.parse(JSON.stringify(a4.BH[0]));
Z.B2.Clr.v=this.aS.u()}if(Z.uR==2){Z.B2=this.Ih.u()}if(Z.uR==3){Z.B2=this.xm.u()}return Z};d2.YK=function(Z){var S=Z.uR,b=Z.B2,Y="empty";
if(S==1){Y=T.W.CD(b.Clr.v);Y=Y.h+","+Y.l+","+Y.O}if(S==2)Y=JSON.stringify(b.Grad.v);if(S==3)Y=b.Ptrn.v.Idnt.v;
return Y};d2.kt=function(Z,S,b,Y,P,w,f){if(Z==null)Z=d2.Bi;var h=Math.floor(P*s.Z()),Q=Math.floor(w*s.Z()),e=Z.canvas,l;
e.width=h;e.height=Q;s.$k(e,h,Q);var O=S.uR;if(O==0){Z.fillStyle="#ffffff";Z.fillRect(0,0,h,Q);Z.strokeStyle="#ff0000";
Z.lineWidth=2;Z.moveTo(0,0);Z.lineTo(h,Q);Z.moveTo(0,Q);Z.lineTo(h,0);Z.stroke()}if(O==1){var m=S.B2.Clr.v;
m=T.W.CD(m);Z.fillStyle="#"+T.T3(m.h<<16|m.l<<8|m.O);Z.fillRect(0,0,h,Q)}if(O==2){G.Oa.Oy(S.B2.Grad.v,h,Q,0,b.ui,b.VY,e)}if(O==3){var V=S.B2.Ptrn.v,q;
if(Y!=null)q=eg.Xl(V,Y.add.Patt);if(q==null)q=eg.Xl(V,b.w6);fw.Oy(q,h,Q,e)}if(f){Z.beginPath();Z.strokeStyle="#000000";
Z.fillStyle="#ffffff";Z.lineWidth=2;var K=h*.7,z=Math.floor(Q*.7),t=7*s.Z();Z.moveTo(K,z);Z.lineTo(K+t,z);
Z.lineTo(K+t/2,z+t/2);Z.closePath();Z.stroke();Z.fill()}if(Z==d2.Bi)return e.toDataURL()};d2.Bi=s.R("canvas").getContext("2d");
function fw(Z){a0.call(this,Z,!1,"patternbutton",18,10,bp.qd);this.Vg=null}fw.prototype=new a0;fw.prototype.nG=function(Z){var S=this.c8[this.xc.u()];
this.M5={classID:"Ptrn",Nm:{t:"TEXT",v:S.name},Idnt:{t:"TEXT",v:S.id}};this.m(new d(s.E.L));this.kw()};
fw.uW=!1;fw.prototype.gN=function(){if(!this.Dq)return;var Z=this.c8;if(Z==null||!fw.uW){var S=new d(s.E.P,!0);
S.data={e:s.U.LV,Sz:{url:"rsrc/basic/basic.pat"}};this.m(S);fw.uW=!0;return}var b=Math.floor(34*s.Z()),Y=Math.floor(34*s.Z()),P=[],w=[];
for(var D=0;D<Z.length;D++){P.push(fw.Oy(Z[D],b,Y));w.push(Z[D].name)}this.xc.TS(P,w,b,Y);this.Dq=!1};
fw.prototype.F=function(Z,S){if(this.M5&&Z.Idnt.v==this.M5.Idnt.v)return;this.M5=JSON.parse(JSON.stringify(Z));
this.kw(S)};fw.prototype.u=function(){return JSON.parse(JSON.stringify(this.M5))};fw.prototype.gr=function(){return this.Vg?[this.Vg]:[]};
fw.prototype.kw=function(Z){var S=Math.floor(50*s.Z()),b=Math.floor(50*s.Z()),Y;if(Z!=null)Y=eg.Xl(this.M5,Z.add.Patt);
if(Y==null)Y=eg.Xl(this.M5,this.c8);this.Vg=Y;var P=fw.Oy(Y,S,b);this.hU.setAttribute("src",P);s.$k(this.hU,S,b)};
fw.QY=s.R("canvas","");fw.Oy=function(Z,S,b,Y){if(Y==null)Y=fw.QY;var P=Y.getContext("2d");Y.width=S;
Y.height=b;if(Z){var w=Z.jL[1],f=w.c,h=w.v,Q=Z.jL[0],e=Math.min(S/f,b/h),l=e;if(l*f<2)l=2/f;var O=e;
if(O*h<2)O=2/h;var m=G.V.DP([Q,w],new fR(l,0,0,O,0,0),!1),V=m.rect.c,q=m.rect.v,K=P.createImageData(V,q);
T.Bv(m.buffer,K.data);P.putImageData(K,Math.floor((S-V)/2),Math.floor((b-q)/2))}return Y.toDataURL()};
function hs(Z){a0.call(this,Z,!1,"patternbutton",24.2,17,bp._b);this.kb=""}hs.prototype=new a0;hs.prototype.nG=function(Z){this.M5=JSON.parse(JSON.stringify(this.c8[0][this.xc.u()]));
this.m(new d(s.E.L))};hs.prototype.gN=function(){var Z=this.c8;if(Z==null||!this.Dq)return;var S=Math.floor(50*s.Z()),b=Math.floor(50*s.Z()),Y=[],P=[];
for(var D=0;D<Z[0].length;D++){Y.push(hs.Oy(this.c8[0][D].WF,S,b,this.c8[1]));P.push(Z[0][D].p2.Nm.v.split("=").pop())}this.xc.TS(Y,P,S,b);
this.Dq=!1};hs.prototype.F=function(Z,S,b,Y){var P=JSON.stringify(Z.WF)+","+b+","+Y;if(this.kb!=P){this.kb=P;
this.M5=JSON.parse(JSON.stringify(Z));this.kw(S,b,Y)}this.xc.wx(-1)};hs.prototype.u=function(){return JSON.parse(JSON.stringify(this.M5))};
hs.prototype.kw=function(Z,S,b){var Y=Math.floor(68*s.Z()),P=Math.floor(68*s.Z()),w=hs.Oy(this.M5.WF,Y,P,Z?Z:this.c8[1],S,b);
this.hU.setAttribute("src",w);s.$k(this.hU,Y,P)};hs.Oy=function(Z,S,b,Y,P,w){var f=new gf;f.c=S;f.v=b;
f.buffer=T.f(S*b*4);f.add.Patt=Y;f.x2(P==null?90:P);f.j7(w==null?30:w);var h=new b4(0,0,Math.round(S*.5),Math.round(b*.5));
h.x=Math.round((S-h.c)/2);h.y=Math.round((b-h.v)/2);var Q=f.Dl();Q.rect=h;Q.buffer=T.f(h.X()*4);T._U(Q.buffer,4284045657);
eg.wH(Z,Q,.5*100);f.t.push(Q);f.Wl();f.D();var e=p.lc;p.lc=!1;f.j8();var l=f.Zd();p.lc=e;var O=ab.KA(l.buffer,f.c,f.v);
return O};function bn(Z){a0.call(this,null,!1,"tpresetbutton",18,24,bp.dn,!0);s.bq(this.j,"fitem");this.xc.ZC(1);
this.id=Z;this.kw();this.fe=new ec([15,7,9]);this.fe.F(!0);this.fe.i(s.E.L,this.aiO,this);this.vQ.appendChild(this.fe.j)}bn.prototype=new a0;
bn.prototype.a2a=function(Z){if(this.id==Z)return;this.id=Z;this.VU(this.c8)};bn.prototype.nG=function(Z){var S=this.c8[this.xc.u()],b=new d(s.E.P,!0);
b.data={e:s.U.h4,JH:"set",Sz:bp.dn,O3:S};this.m(b)};bn.prototype.B=function(){a0.prototype.B.call(this);
this.fe.B()};bn.prototype.aiO=function(){this.Dq=!0;this.gN()};bn.prototype.gN=function(){if(!this.Dq)return;
var Z=Math.floor(16*s.Z()),S=Math.floor(16*s.Z()),b=[],Y=[],P=this.c8,w=this.fe.u();for(var D=0;D<P.length;
D++){var f=G.rq(P[D]);if(!w||f==this.id){Y.push(P[D][0]?P[D][0].split("=").pop():"");b.push(f==-1?"":PIMG[G.L1[f][0]])}else{b.push(null);
Y.push(null)}}this.xc.TS(b,Y,Z,S);this.Dq=!1};bn.prototype.kw=function(){var Z=this.hU;Z.setAttribute("src",PIMG[G.L1[this.id][0]]);
s.zy(Z,"toolicon")};bn.prototype.gr=function(){return null};bn.t0={};bn.Oy=function(Z,S,b){var Y=bn.x_,P=bn.t0,w=T.T3(Z.h<<16|Z.l<<8|Z.O);
if(P[w])return P[w];if(Y==null){var f=s.R("canvas");Y=bn.x_=f.getContext("2d")}var f=Y.canvas;f.width=S;
f.height=b;Y.fillStyle="#"+w;Y.fillRect(0,0,S,b);var h=P[w]=f.toDataURL();return h};function fO(Z,S){ij.call(this);
this.j=s.R("span","fitem curveeditor");this.Bp=null;this.afM=0;this.SJ="";this.mode=0;this.Gm=Z;this.a7o=S;
this.Va=null;this.f6=null;this.LK=new ar;this._g=this.i$.bind(this);this.J$=this.sa.bind(this);this.u_=s.R("canvas","");
this.Bi=this.u_.getContext("2d");s.QF(this.u_);s.ed(this.u_,256,256,this.Bi);this.j.appendChild(this.u_);
s.TL(this.u_,this.Zx.bind(this))}fO.prototype=new ij;fO.prototype.F=function(Z,D){var S=JSON.stringify(Z);
if(S==JSON.stringify(this.Va))return;this.mode=Z.length==256?1:0;this.Va=JSON.parse(S);if(D!=null)this.f6=this.Va[D];
this.Mn()};fO.prototype.Oj=function(Z,S,b){this.Bp=Z;this.afM=S;this.SJ=b;this.Mn()};fO.prototype.u=function(){return JSON.parse(JSON.stringify(this.Va))};
fO.prototype.eQ=function(){return this.Va.indexOf(this.f6)};fO.prototype.Zx=function(Z){var S=s.R6(Z,this.u_),b=S.x,Y=256-S.y;
if(this.Gm){var P=b;b=256-Y;Y=P}this.LK.Ha(b,Y);if(this.mode==0){var w=null;for(var D=0;D<this.Va.length;
D++){var f=this.Va[D].v,h=f.Hrzn.v-b,Q=f.Vrtc.v-Y,e=Math.sqrt(h*h+Q*Q);if(e<5)w=this.Va[D]}if(w==null){w=T.$F.KX(b,Y,!0);
this.Va.push(w)}this.f6=w}s.Tb(document.body,this._g);s.Ju(document.body,this.J$);this.i$(Z)};fO.prototype.i$=function(Z){var S=s.R6(Z,this.u_),b=S.x,Y=256-S.y;
if(this.Gm){var P=b;b=256-Y;Y=P}if(this.mode==0){var w=this.Va,f=this.a7o,h=w.indexOf(this.f6),Q=h==0||h==w.length-1,e=0,l=255,O=!0;
if(Q){e=1;l=254}if(!f||!Q)this.f6.v.Hrzn.v=Math.max(e,Math.min(l,Math.round(b)));this.f6.v.Vrtc.v=Math.max(0,Math.min(255,Math.round(Y)));
for(var D=0;D<w.length;D++){if(w[D]==this.f6)continue;if(Math.abs(w[D].v.Hrzn.v-this.f6.v.Hrzn.v)<2)O=!1}if(b<0||b>255||Y<0||Y>255)O=!1;
if(O&&w.indexOf(this.f6)==-1)w.push(this.f6);if(!O&&w.indexOf(this.f6)!=-1&&w.length>2&&(!f||!Q))w.splice(w.indexOf(this.f6),1);
if(w[0].v.Hrzn.v==w[1].v.Hrzn.v)if(w[0].v.Hrzn.v==0)w[1].v.Hrzn.v=1;else w[0].v.Hrzn.v--;w.sort(function(t,H){return t.v.Hrzn.v-H.v.Hrzn.v})}else{b=Math.round(b);
Y=Math.round(Y);b=Math.max(0,Math.min(255,b));Y=Math.max(0,Math.min(255,Y));var m=this.LK.x,V=b,q=this.LK.y,K=Y;
if(b<this.LK.x){V=m;m=b;K=q;q=Y}this.Va[b]=Y;if(m!=V)for(var z=m;z<=V;z++)this.Va[z]=Math.round(q+(z-m)*(K-q)/(V-m))}this.LK.Ha(b,Y);
this.Mn();this.m(new d(s.E.L))};fO.prototype.sa=function(Z){s.Qe(document.body,this._g);s.zz(document.body,this.J$);
this.m(new d(s.E.L))};fO.prototype.Mn=function(){var Z=this.Bi;Z.fillStyle="#ffffff";Z.fillRect(0,0,256,256);
if(this.Bp){Z.translate(0,256);Z.scale(1,-1);hV.Bb(Z,this.Bp,5700/this.afM,this.SJ);Z.scale(1,-1);Z.translate(0,-256)}Z.strokeStyle="#aaaaaa";
Z.lineWidth=1;Z.beginPath();for(var D=1;D<4;D++){Z.moveTo(0,64*D-.5);Z.lineTo(255,64*D-.5);Z.moveTo(64*D-.5,0);
Z.lineTo(64*D-.5,255)}Z.stroke();if(this.Gm){Z.save();Z.transform(0,1,-1,0,256,0)}if(this.mode==0){var S=this.Va,b=T.$F.L$(S,256);
Z.strokeStyle="#000000";Z.beginPath();Z.moveTo(0,255.5-b[0]);for(var D=0;D<256;D++)Z.lineTo(D,255.5-b[D]);
Z.stroke();Z.lineWidth=2;for(var D=0;D<S.length;D++){var Y=S[D].v;Z.fillStyle=this.f6==S[D]?"#333":"#fff";
Z.beginPath();Z.moveTo(Y.Hrzn.v,255.5-Y.Vrtc.v);Z.arc(Y.Hrzn.v,255.5-Y.Vrtc.v,3,0,2*Math.PI);Z.stroke();
Z.fill()}}else{var b=this.Va;Z.strokeStyle="#000000";Z.beginPath();Z.moveTo(0,255.5-b[0]);for(var D=0;
D<256;D++)Z.lineTo(D,255.5-b[D]);Z.stroke()}if(this.Gm)Z.restore()};function hV(Z,S){ij.call(this);this.j=s.R("span","");
this.ni=new gl([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5],[12,82]]);this.ni.i(s.E.L,this.T2,this);this.j.appendChild(this.ni.j);
s.X3(this.j);this.QY=s.R("canvas");var b=this.QY;this.j.appendChild(b);b.width=Math.round(Z*s.Z());b.height=Math.round(100*s.Z());
s.$k(b,b.width,b.height);this.x_=b.getContext("2d");this.Bp=null;this.BE=0;this.aft=null;this.a3n=[];
this.$v=[];var Y=["Mean:","Pixels:"],P=this.j;for(var D=0;D<Y.length;D++){var w=new bE(Y[D]);this.a3n.push(w);
if(S)P.appendChild(w.j);var f=new bE("hi");this.$v.push(f);if(S)P.appendChild(f.j);s.X3(P)}}hV.prototype=new ij;
hV.prototype.B=function(){this.ni.B()};hV.prototype.ZC=function(Z){this.ni.F(Z);this.T2()};hV.prototype.F=function(Z,S){this.Bp=Z;
this.aft=S;this.T2()};hV.prototype.D9=function(Z){if(Z==this.BE)return;this.BE=Z;this.T2()};hV.prototype.T2=function(){if(this.Bp==null)return;
var Z=this.QY,S=this.x_,b=this.Bp,Y=this.aft,P=this.ni.u(),w=6e3/b[4],f="#"+T.T3(this.BE),h=hV.Bb;Z.width=Z.width;
S.setTransform(Z.width/256,0,0,-Z.height/100,0,Z.height);S.globalCompositeOperation="lighter";if(P==0)h(S,b[0],w/3,f);
else if(P<4)h(S,b[P],w,f);else{h(S,b[1],w,"#ff0000");h(S,b[2],w,"#00ff00");h(S,b[3],w,"#0000ff")}S.setTransform(1,0,0,1,0,0);
if(Y!=null){var Q=0;for(var D=0;D<256;D++)Q+=D*b[P][D];if(P==0)Q/=3;this.$v[0].F((Q/Y).toFixed(1)+"");
this.$v[1].F(Y+"")}};hV.Bb=function(Z,S,b,Y){Z.beginPath();Z.moveTo(0,0);for(var P=0;P<256;P++)Z.lineTo(P,S[P]*b);
Z.lineTo(256,0);Z.closePath();Z.fillStyle=Y;Z.fill()};function ho(Z){ij.call(this);this.mB={h:0,l:0,O:0};
if(Math.abs(Z-256/s.Z())<10)Z=256/s.Z();var S=this.j=s.R("div","flexrow");this.g8=new ar;this.rG=new ar;
this.qS=this.Zj.bind(this);this.pN=this.a8T.bind(this);this.u_=s.R("canvas","");this.Bi=this.u_.getContext("2d");
this.u_.width=this.u_.height=256;this.a0$=this.Bi.getImageData(0,0,256,256);this.alo=-1;s.QF(this.u_);
s.TL(this.u_,this.aeE.bind(this));S.appendChild(this.u_);this.ae2=this.Iu.bind(this);this.a6R=this.aol.bind(this);
this.Z7=s.R("canvas","");this.hC=this.Z7.getContext("2d");this.Z7.width=20;this.Z7.height=256;this.a0e=this.hC.getImageData(0,0,20,256);
this.a2K(this.a0e.data,20,256);s.QF(this.Z7);s.TL(this.Z7,this.aj9.bind(this));S.appendChild(this.Z7);
this.u_.setAttribute("style","width:"+Z+"px; height:"+Z+"px");this.Z7.setAttribute("style","width:"+20/s.Z()+"px; height:"+Z+"px")}ho.prototype=new ij;
ho.prototype.Xd=function(Z,S){this.u_.style.width=Z+"px"};ho.prototype.F=function(Z){this.mB=Z;this.update()};
ho.prototype.u=function(){return JSON.parse(JSON.stringify(this.mB))};ho.prototype.update=function(){var Z=this.mB,S=T.hy(Z.h,Z.l,Z.O);
if(S.$0==0)S.zk=this.g8.x/255;if(S.zk==0||S.$0==0)S.XE=(255-this.xS(this.rG.y))/255;if(S.$0!=0)this.g8.x=S.zk*255;
this.g8.y=(1-S.$0)*255;this.rG.y=(1-S.XE)*255;var b=this.a0$;if(Math.abs(S.XE-this.alo)>.002){this.ai$(b.data,256,256,S.XE);
this.alo=S.XE}this.Bi.putImageData(b,0,0);this.Bi.strokeStyle="#000000";this.Bi.beginPath();this.Bi.arc(this.g8.x+1,this.g8.y+1,5,0,2*Math.PI);
this.Bi.stroke();this.Bi.strokeStyle="#ffffff";this.Bi.beginPath();this.Bi.arc(this.g8.x,this.g8.y,5,0,2*Math.PI);
this.Bi.stroke();var b=this.a0e;this.hC.putImageData(b,0,0);this.hC.strokeStyle="#ffffff";this.hC.beginPath();
this.hC.moveTo(0,this.rG.y);this.hC.lineTo(20,this.rG.y);this.hC.lineWidth=2;this.hC.stroke()};ho.prototype.ai$=function(Z,S,b,Y){var P=1/S,w=1/b;
for(var f=0;f<b;f++)for(var h=0;h<S;h++){var Q=T.Ta(Y,h*P,(b-f-1)*w),D=f*S+h<<2;Z[D+0]=~~(Q.h*255);Z[D+1]=~~(Q.l*255);
Z[D+2]=~~(Q.O*255);Z[D+3]=255}};ho.prototype.a2K=function(Z,S,b){var Y=new Uint32Array(Z.buffer);for(var P=0;
P<b;P++){var w=T.Ta(1-P/b,1,1),f=255<<24|w.O*255<<16|w.l*255<<8|w.h*255;for(var h=0;h<S;h++)Y[P*S+h]=f}};
ho.prototype.aeE=function(Z){s.Tb(window,this.qS);s.Ju(window,this.pN);this.Zj(Z)};ho.prototype.a8T=function(Z){s.Qe(window,this.qS);
s.zz(window,this.pN)};ho.prototype.Zj=function(Z){var S=s.R6(Z,this.u_);S.x=S.x*(256/parseFloat(this.u_.style.width));
S.y=S.y*(256/parseFloat(this.u_.style.height));this.g8.Ha(this.xS(S.x),this.xS(S.y));this.ot()};ho.prototype.ot=function(){this.mB=this.a6$();
this.m(new d(s.E.L))};ho.prototype.a6$=function(){var Z=T.Ta((255-this.xS(this.rG.y))/255,this.fA(this.g8.x/255),this.fA(1-this.g8.y/255));
return{h:Z.h,l:Z.l,O:Z.O}};ho.prototype.aj9=function(Z){s.Tb(window,this.ae2);s.Ju(window,this.a6R);
this.Iu(Z)};ho.prototype.aol=function(Z){s.Qe(window,this.ae2);s.zz(window,this.a6R)};ho.prototype.Iu=function(Z){var S=s.R6(Z,this.Z7);
S.y=S.y*(256/parseFloat(this.Z7.style.height));this.rG.Ha(this.xS(S.x),this.xS(S.y));this.ot()};ho.prototype.xS=function(Z){return Math.max(0,Math.min(255,Z))};
ho.prototype.fA=function(Z){return Math.max(0,Math.min(1,Z))};function gT(Z,S,b){ij.call(this);if(!S)return;
this.t4=0;this.j=s.R("span","fitem bbmenu");if(Z){this.i1=Z;this.DU=s.R("label","flabel");this.DU.textContent=Z+":";
this.j.appendChild(this.DU)}this.cv=[];this.wN=null;this.vL(S,b);this.F(0)}gT.prototype=new ij;gT.prototype.bl=function(Z){this.i1=Z;
this.B()};gT.prototype.B=function(){if(this.i1!=null){this.DU.textContent=aV.get(this.i1)+": "}for(var D=0;
D<this.cv.length;D++)this.cv[D].B()};gT.prototype.u=function(){return this.t4};gT.prototype.vL=function(Z,S){while(this.cv.length>0)this.j.removeChild(this.cv.pop().j);
this.wN=Z;for(var D=0;D<Z.length;D++){var b=new fX(Z[D],!1,S?S[D]:null);b.i("click",this.WX,this);this.j.appendChild(b.j);
this.cv.push(b)}this.B()};gT.prototype.F=function(Z){this.t4=Z;for(var D=0;D<this.cv.length;D++)this.cv[D].KY();
this.cv[Z].AN()};gT.prototype.WX=function(Z){var D=this.cv.indexOf(Z.target);this.F(D);this.m(new d(s.E.L,!1))};
function gO(Z,S,b,Y){if(Y==null)Y=16;var P=gO.Fp,w=P.getContext("2d"),f=Y>>>1;P.width=P.height=Y;var h=[];
for(var D=0;D<S.length;D++){if(S[D]=="checker"){w.fillStyle="white";w.fillRect(0,0,Y,Y);w.fillStyle="#bbbbbb";
w.fillRect(f,0,f,f);w.fillRect(0,f,f,f)}else if(S[D].startsWith("#")){w.fillStyle=S[D];w.fillRect(0,0,Y,Y)}if(S[D]=="checker"||S[D].startsWith("#"))h.push("<img src=\""+P.toDataURL()+"\" />");
else h.push("<img src=\""+S[D]+"\" class=\"autoscale gsicon\" />")}gT.call(this,Z,h,b)}gO.prototype=new gT;
gO.Fp=s.R("canvas");function gl(Z,S,b,Y){ij.call(this);if(!S)return;if(b==null)b=!1;this.t4=0;this.aiY=b;
this.i1=Z;this.et=null;this.al9=Y;var P="dd"+s.sn();this.j=s.R("span","fitem ddmenu");if(Z&&!b){this.DU=s.R("label","flabel");
this.j.appendChild(this.DU);this.DU.setAttribute("for",P)}this.zp=s.R("select","bbtn");this.zp.setAttribute("id",P);
this.j.appendChild(this.zp);this.zp.addEventListener("change",this.WX.bind(this),!1);this.cv=[];this.wN=null;
this.vL(S,Y);this.B()}gl.prototype=new ij;gl.prototype.bl=function(Z){this.i1=Z;this.B()};gl.prototype.B=function(){if(this.i1!=null){var Z=aV.get(this.i1);
if(this.aiY)this.zp.setAttribute("title",Z);else this.DU.textContent=Z+":"}if(this.wN)this.vL(this.wN,this.al9);
this.F(this.t4)};gl.prototype.u=function(){return this.t4};gl.prototype.vL=function(Z,S){s.Z9(this.zp);
var b=[],Y=0;if(S){b.push(S[0]);for(var D=1;D<S.length;D++)b.push(b[D-1]+S[D])}this.wN=Z;this.et=[];
this.al9=S;for(var D=0;D<Z.length;D++){var P=s.R("option");P.textContent=aV.get(Z[D]);P.setAttribute("value",D);
this.zp.appendChild(P);this.cv.push(P);this.et.push(D+Y);if(b.indexOf(D+1)!=-1&&D!=Z.length-1){var w=s.R("option");
w.setAttribute("disabled","");w.textContent="";this.zp.appendChild(w);Y++}}};gl.prototype.F=function(Z){this.t4=Z;
this.zp.selectedIndex=this.et[Z]};gl.prototype.WX=function(Z){this.t4=this.et.indexOf(this.zp.selectedIndex);
this.m(new d(s.E.L,!1))};function bh(){ij.call(this);this.Oz=null;this.ZZ=new dr;this.ZZ.i(s.E.L,this.a0_,this);
this.ZZ.parent=this;this.KF=new c2([12,14,0],1,150,"px",0,!0);this.KF.i(s.E.L,this.mA,this);this.KF.parent=this;
this.kv=new c2([16,0],.01,100,"px",2,!0,null,5);this.kv.i(s.E.L,this.mA,this);this.kv.parent=this;this.UP=new ec("Auto");
this.UP.i(s.E.L,this.mA,this);this.Je=new c2([16,1],-500,5e3,"%",0,!0);this.Je.i(s.E.L,this.mA,this);
this.Je.parent=this;this.FY=new c2("\u2B0D",1,300,"%",null,null,null,null,[[2,7],[22,4,3]]);this.FY.i(s.E.L,this.mA,this);
this.FY.parent=this;this.py=new c2("\u2B0C",1,300,"%",null,null,null,null,[[2,7],[22,4,2]]);this.py.i(s.E.L,this.mA,this);
this.py.parent=this;this.wA=new c2([16,2],-10,10,"px");this.wA.i(s.E.L,this.mA,this);this.wA.parent=this;
this.zo=new gy(!0);this.zo.i(s.E.L,this.alh,this);this.zo.parent=this;this.E0=new fX("<img src=\""+PIMG["type/bold"]+"\" class=\"autoscale gsicon\" />");
this.AM=new fX("<img src=\""+PIMG["type/italic"]+"\" class=\"autoscale gsicon\" />");this.FG=new fX("<img src=\""+PIMG["type/caps"]+"\" class=\"autoscale gsicon\" />");
this.$O=new fX("<img src=\""+PIMG["type/scaps"]+"\" class=\"autoscale gsicon\" />");this.rf=new fX("<img src=\""+PIMG["type/sub"]+"\" class=\"autoscale gsicon\" />");
this.uL=new fX("<img src=\""+PIMG["type/sup"]+"\" class=\"autoscale gsicon\" />");this.hh=new fX("<img src=\""+PIMG["type/under"]+"\" class=\"autoscale gsicon\" />");
this.Y3=new fX("<img src=\""+PIMG["type/strike"]+"\" class=\"autoscale gsicon\" />");var Z=[this.E0,this.AM,this.FG,this.$O,this.rf,this.uL,this.hh,this.Y3];
for(var D=0;D<Z.length;D++)Z[D].i("click",this.aho,this);this.$V=new fX("<img src=\""+PIMG["par/left"]+"\" class=\"autoscale gsicon\" />");
this.Wp=new fX("<img src=\""+PIMG["par/right"]+"\" class=\"autoscale gsicon\" />");this.CH=new fX("<img src=\""+PIMG["par/center"]+"\" class=\"autoscale gsicon\" />");
this.acT=new fX("<img src=\""+PIMG["par/jleft"]+"\" class=\"autoscale gsicon\" />");this.a1j=new fX("<img src=\""+PIMG["par/jright"]+"\" class=\"autoscale gsicon\" />");
this.a2L=new fX("<img src=\""+PIMG["par/jcenter"]+"\" class=\"autoscale gsicon\" />");this.amd=new fX("<img src=\""+PIMG["par/jall"]+"\" class=\"autoscale gsicon\" />");
this.GF=[this.$V,this.Wp,this.CH,this.acT,this.a1j,this.a2L,this.amd];for(var D=0;D<this.GF.length;D++)this.GF[D].i("click",this.mA,this);
var S=["lind","rind","flind","bind","aind"],b=[];for(var D=0;D<5;D++)b.push("<img src=\""+PIMG["par/"+S[D]]+"\" class=\"autoscale gsicon\" /> ");
this.Ll=new c2(b[0],-20,20,"px");this.Ll.i(s.E.L,this.mA,this);this.Ll.parent=this;this.TK=new c2(b[1],-20,20,"px");
this.TK.i(s.E.L,this.mA,this);this.TK.parent=this;this.mD=new c2(b[2],-20,20,"px");this.mD.i(s.E.L,this.mA,this);
this.mD.parent=this;this.jQ=new c2(b[3],-20,20,"px");this.jQ.i(s.E.L,this.mA,this);this.jQ.parent=this;
this.ZY=new c2(b[4],-20,20,"px");this.ZY.i(s.E.L,this.mA,this);this.ZY.parent=this;this.h9=new gT([12,33],["Abc ...","... \u0623\u064A \u0628\u064A"]);
this.h9.i(s.E.L,this.mA,this);this.h9.parent=this}bh.prototype=new ij;bh.prototype.B=function(){this.ZZ.B();
this.KF.B();this.kv.B();this.Je.B();this.wA.B();this.FY.B();this.py.B();this.h9.B()};bh.prototype.F=function(Z,S,b){this.pA=JSON.parse(JSON.stringify(Z));
var Y=this.pA,P=Y.xp,w=Y.jm;this.E0.F(P.FauxBold!=null?P.FauxBold:!1);this.AM.F(P.FauxItalic!=null?P.FauxItalic:!1);
this.FG.F(P.FontCaps==2);this.$O.F(P.FontCaps==1);this.uL.F(P.FontBaseline==1);this.rf.F(P.FontBaseline==2);
this.hh.F(P.Underline);this.Y3.F(P.Strikethrough);this.ZZ.F(P.Font==null?null:Y.E2[P.Font].Name,S,b);
var f=P.FontSize==null?20:P.FontSize;this.KF.F(f);var h=P.Tracking;this.Je.F(h==null?0:h);this.kv.F(P.Leading!=null&&P.Leading!=0?P.Leading:f);
this.UP.F(P.AutoLeading);this.FY.F((P.VerticalScale!=null?P.VerticalScale:0)*100);this.py.F((P.HorizontalScale!=null?P.HorizontalScale:0)*100);
this.wA.F(P.BaselineShift!=null?P.BaselineShift:0);if(P.FillColor){var Q=eO.CD(P);this.zo.D9(Math.round(Q.h)<<16|Math.round(Q.l)<<8|Math.round(Q.O))}else this.zo.D9(0);
var e=w._Direction!=null?w._Direction:0,l=eO.qH(w);for(var D=0;D<this.GF.length;D++)this.GF[D].F(l==D);
this.h9.F(e);this.Ll.F(w.StartIndent!=null?w.StartIndent:0);this.TK.F(w.EndIndent!=null?w.EndIndent:0);
this.mD.F(w.FirstLineIndent!=null?w.FirstLineIndent:0);this.jQ.F(w.SpaceBefore!=null?w.SpaceBefore:0);
this.ZY.F(w.SpaceAfter!=null?w.SpaceAfter:0)};bh.prototype.SI=function(){var Z=new d(s.E.P,!0);Z.data={e:s.U.h4,Sz:bp.BK,pA:this.pA};
this.m(Z);var Z=new d(s.E.s,!0);Z.T=G.le;Z.data={e:"updateStyles"};this.m(Z)};bh.prototype.aho=function(Z){var S=this.pA.xp,b=Z.target,Y=!b.rJ();
if(b==this.E0)S.FauxBold=Y;if(b==this.AM)S.FauxItalic=Y;if(b==this.FG)S.FontCaps=Y?2:0;if(b==this.$O)S.FontCaps=Y?1:0;
if(b==this.uL)S.FontBaseline=Y?1:0;if(b==this.rf)S.FontBaseline=Y?2:0;if(b==this.hh)S.Underline=Y;if(b==this.Y3)S.Strikethrough=Y;
this.SI()};bh.prototype.mA=function(Z){var S=this.pA.xp,b=this.pA.jm,Y=Z.target;if(Y==this.Je){var P=this.Je.u();
S.Tracking=P}if(Y==this.kv){S.AutoLeading=!1;S.Leading=this.kv.u()}if(Y==this.UP){S.AutoLeading=this.UP.u()}if(Y==this.KF)S.FontSize=Y.u();
if(Y==this.FY)S.VerticalScale=Y.u()/100;if(Y==this.py)S.HorizontalScale=Y.u()/100;if(Y==this.wA)S.BaselineShift=Y.u();
if(this.GF.indexOf(Y)!=-1){b.Justification=eO.qH(b,this.GF.indexOf(Y))}if(Y==this.Ll)b.StartIndent=Y.u();
if(Y==this.TK)b.EndIndent=Y.u();if(Y==this.mD)b.FirstLineIndent=Y.u();if(Y==this.jQ)b.SpaceBefore=Y.u();
if(Y==this.ZY)b.SpaceAfter=Y.u();if(Y==this.h9)b._Direction=Y.u();this.SI()};bh.prototype.a0_=function(Z){var S=this.pA,b=this.ZZ.u(),Y=-1;
for(var D=0;D<S.E2.length;D++)if(S.E2[D].Name==b)Y=D;if(Y==-1){Y=S.E2.length;var P=JSON.parse(JSON.stringify(S.E2[0]));
P.Name=b;S.E2.splice(Y,0,P)}S.xp.Font=Y;this.SI()};bh.prototype.alh=function(Z){var S=this.zo.VR(),b={Type:1,Values:[1,(S>>16&255)/255,(S>>8&255)/255,(S>>0&255)/255]};
for(var D=0;D<4;D++)b.Values[D]=Math.round(b.Values[D]*1e3)/1e3;this.pA.xp.FillColor=b;this.SI()};function dr(){ij.call(this);
this.j=s.R("span","fontinput");this.tM=null;this._Y=null;this.Fq=null;this.qv="";this.Jw={};this.Qg=[];
this.a6p={};this.RU=!1;this.pq=s.R("button","fitem");this.pq.setAttribute("style","width:9em;");this.pq.textContent="Family Name \u25BC";
this.j.appendChild(this.pq);s.TL(this.pq,this.Hs.bind(this));this._y=new ij;this._y.parent=this;this._y.j=s.R("div","floatcont");
this._y.j.addEventListener("keyup",this.ajV.bind(this),!1);this.tg=new aq(6.8);this._y.j.appendChild(this.tg.ajy());
this.tg.parent=this._y;this.tg.i(s.E.L,this.F_,this);var Z=s.R("div","form");this._y.j.appendChild(Z);
this.cZ=new fX(s.ip("tools/cshape",null,"autoscale"),!1,"Show Favorites Only");this.cZ.i("click",this.a93,this);
Z.appendChild(this.cZ.j);this.QN=new cY([12,86],null,9);this.QN.i("input",this.QO,this);Z.appendChild(this.QN.j);
var S=this.afN=new fX([[23,6],[22,6,0]],!1,"Load OTF / TTF file from your computer",!0);S.i("click",this.a7R,this);
S.j.style.marginLeft="1.5em";Z.appendChild(S.j);this.uP=s.R("span","fitem imageset scrollable marged");
this.uP.style.height="30em";this._y.j.appendChild(this.uP);this.jK=s.R("button","fitem");this.jK.setAttribute("style","width:7em;");
this.jK.textContent="SubFamily Name \u25BC";this.j.appendChild(this.jK);s.TL(this.jK,this.Hs.bind(this));
this.el=new ij;this.el.parent=this;this.el.j=s.R("div","floatcont");this.ro=s.R("span","fitem imageset scrollable marged");
this.el.j.appendChild(this.ro)}dr.prototype=new ij;dr.prototype.ajV=function(Z){var S=0;if(U.iQ(Z.code,U.ne))S=-1;
if(U.iQ(Z.code,U.BM))S=1;if(S!=0){var b=this.Qg,Y=b.length,P=this.tM.tO()[this.Fq];if(P==null&&Y==0)return;
var w=b.indexOf(P[0]);if(w==-1)return;w=(w+S+Y)%Y;this.Jx(b[w],null)}};dr.prototype.a7R=function(){var Z=new d(s.E.P,!0);
Z.data={e:s.U.fd,a2X:".otf,.ttf,.ttc"};this.m(Z)};dr.prototype.B=function(){this.tg.B();this.afN.B();
this.cZ.bl(s.ip("tools/cshape",null,"autoscale"))};dr.prototype.a93=function(Z){this.cZ.F(!this.cZ.rJ());
this.F_()};dr.prototype.QO=function(Z){this.qv=this.QN.u().toLowerCase();this.F_()};dr.prototype.Hs=function(Z){s.Jj(Z);
var S=Z.currentTarget,b=S.getBoundingClientRect(),Y=S==this.pq,P=Y?this._y:this.el;if(s.mO(P.j)){this.Bu(P);
return}if(!Y&&this.tM.tO()[this.Fq]==null)return;var w=new d(s.E.P,!0);w.data={e:s.U.Gc,Bq:P,x:b.left,y:b.top+b.height};
this.m(w);if(Y){this.F_();this.QN.vq()}};dr.prototype.a4w=function(Z){var S=Z.currentTarget.firstChild.nextSibling.textContent;
if(Z.target.tagName.toLowerCase()=="button"){var b=this._Y.slice(0),Y=b.indexOf(S);if(Y==-1){b=b.slice(Math.max(0,b.length-29));
b.push(S)}else b.splice(Y,1);var P=new d(s.E.P,!0);P.data={e:s.U.h4,Sz:bp.dT,u$:b};this.m(P);this.RU=!0;
this.F_()}else{this.Jx(S,null);this.QN.vq()}};dr.prototype.a5f=function(Z){this.Jx(null,Z.currentTarget.firstChild.textContent)};
dr.prototype.Jx=function(Z,S){var b=Z==null?this.el:this._y,Y=this.tM;if(Z==null)Z=Y.tO()[this.Fq][0];
else{var P=Y.nF(Z),w=Y.tO()[this.Fq];S=a2.qf(P,w?w[1]:"regular")}var f=Y.g5(Z,S)[2];this.F(f,Y);this.m(new d(s.E.L,!1));
this.Bu(b);this.F_()};dr.prototype.Bu=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.KN,Bq:Z};this.m(S)};
dr.prototype.u=function(){return this.Fq};dr.prototype.F=function(Z,S,b){var Y=this.tM;if(Z!=null)this.Fq=Z;
else Z=this.Fq;this.tM=S;this._Y=b;if(Z!=null){var P=S.tO()[Z],w,f;if(P==null){w="- "+Z;f="-------"}else{w=P[0];
f=P[1];var h=S.nF(w);h.sort(a2.a8x);var Q=h.indexOf(f),e=this.a5f.bind(this);this.ro.textContent="";
for(var D=0;D<h.length;D++){var P=S.g5(w,h[D]);if(!this.tg.xy(P))continue;var l=this._0(P,P[1],e,!1);
this.ro.appendChild(l)}}this.pq.textContent=w.substring(0,15)+" \u25BC";this.pq.setAttribute("title",w);
this.jK.textContent=f.substring(0,10)+" \u25BC";this.jK.setAttribute("title",f)}};dr.prototype.F_=function(){var Z=this.tM.tO()[this.Fq],S=this._Y,b=null,Y=this.tM.ama(),P=this.a4w.bind(this);
this.Qg=[];for(var w in Y){var f=a2.qf(Y[w],"regular"),h=this.tM.g5(w,f),Q=S.indexOf(w)!=-1,e=!0;if(this.qv.length>0&&h[0].toLowerCase().indexOf(this.qv)==-1)e=!1;
else if(!this.tg.xy(h))e=!1;else if(this.cZ.rJ()&&!Q)e=!1;var l=this.Jw[w];if(l==null){var l=this._0(h,w,P,!0);
this.Jw[w]=l;this.uP.appendChild(l)}if(e)this.Qg.push(w);var O=e?"":"display:none; ",m="opacity: "+(Q?"1":"0.2");
if(Z&&Z[0]==w){O+="background-color:rgba(0,0,0,0.13);";b=l}if(this.a6p[w]!=O+m){l.setAttribute("style",O);
l.firstChild.setAttribute("style",m);this.a6p[w]=O+m}}if(b&&!this.RU)this.uP.scrollTop=b.offsetTop-210;
this.RU=!1};dr.prototype._0=function(Z,S,b,Y){var P=s.R("div","fontitem"),Q="";P.addEventListener("click",b,!1);
if(Y)P.appendChild(s.R("button","star"));var w=s.R("span","label");w.setAttribute("title",S);w.textContent=S;
P.appendChild(w);var f=s.Z(),h=1/f,e=a2.a6*h,l=a2.wk*h;if(1<f&&f<1.5)Q="width:"+e+"px; height:"+l+"px;";
var O=s.R("span","thumb gsicon");if(Z.afE){Q+="background: url("+Z.afE+");";if(1<f&&f<1.5)Q+="background-size: "+e+"px "+l+"px;"}else{var m=Math.ceil(FNTS.list.length/a2.cols),V=Math.floor(Z.SU/m),q=Z.SU%m,K=V*a2.a6,z=q*a2.wk;
if(1<f&&f<1.5){Q+="background-size: "+a2.cols*e+"px "+m*l+"px;";K*=h;z*=h}Q+="background-position:-"+K+"px -"+z+"px;"}O.setAttribute("style",Q);
P.appendChild(O);return P};function aq(Z){ij.call(this);this.j=s.R("button","fitem bbtn");this.j.addEventListener("click",this.a6K.bind(this),!1);
this.Hw=new ij;this.Hw.j=s.R("div","floatcont");this.Hw.parent=this;this.f7=s.R("div","flexrow");this.Hw.j.appendChild(this.f7);
this.nT=[];this.p7=[];var S=this.f7,b=s.R("div",""),Y=s.R("div","");S.appendChild(b);S.appendChild(Y);
this._h=[];for(var D=0;D<FNTS.cats.length;D++)this._h.push({name:FNTS.cats[D],index:D,lv:0});this.tx=new ec([7,0]);
this.tx.i(s.E.L,this.agE,this);b.appendChild(this.tx.j);this.ES=s.R("div","vlist marged scrollable");
this.ES.setAttribute("style","width:10.85em; height:"+Z+"em; ");b.appendChild(this.ES);this.vx=[];for(var D=0;
D<this._h.length;D++){var P=this._h[D],w=new ec(P.name);this.vx.push(w);w.i(s.E.L,this.acA,this);w.F(!0);
this.ES.appendChild(w.j);this.nT.push(1)}this.a5H=new ec([7,0]);this.a5H.i(s.E.L,this.aou,this);this.t1=s.R("div","vlist marged scrollable");
this.t1.setAttribute("style","width:8.6em; height:"+(Z+1.5)+"em; ");Y.appendChild(this.t1);this.We=[];
for(var D=0;D<FNTS.subsetNames.length;D++){var w=new ec(FNTS.subsetNames[D]);this.We.push(w);w.i(s.E.L,this.ao8,this);
w.F(!1);this.t1.appendChild(w.j);this.p7.push(0)}}aq.prototype=new ij;aq.prototype.a78=function(Z){var S=this.We;
for(var D=0;D<S.length;D++){var b=(Z>>>D&1)==1;this.p7[D]=b;S[D].F(b)}};aq.prototype.ajy=function(){return this.f7};
aq.prototype.B=function(){this.j.textContent=aV.get([25,1,0])+" \u25BC";this.tx.B();this.a5H.B()};aq.prototype.a6K=function(Z){var S=this.j.getBoundingClientRect(),b=new d(s.E.P,!0);
b.data={e:s.U.Gc,Bq:this.Hw,x:S.left,y:S.top+S.height,VL:!1};this.m(b)};aq.prototype.xy=function(Z){if(this.nT[Z[4]]==0)return!1;
else for(var S=0;S<this.p7.length;S++)if(this.p7[S]==1&&(Z[3]>>>S&1)==0)return!1;return!0};aq.prototype.agE=function(Z){var S=Z.target.u(),b=this.vx,Y=this.nT;
for(var D=0;D<b.length;D++){b[D].F(S);Y[D]=S?1:0}this.m(new d(s.E.L,!1))};aq.prototype.aou=function(Z){var S=Z.target.u(),b=this.We,Y=this.p7;
for(var D=0;D<b.length;D++){b[D].F(S);Y[D]=S?1:0}this.m(new d(s.E.L,!1))};aq.prototype.acA=function(Z){var D=this.vx.indexOf(Z.target),S=this._h[D].index;
this.nT[S]=1-this.nT[S];this.m(new d(s.E.L,!1))};aq.prototype.ao8=function(Z){var D=this.We.indexOf(Z.target);
this.p7[D]=1-this.p7[D];this.m(new d(s.E.L,!1))};function ax(Z,S,b){a0.call(this,S,!0,"gradientbutton",18,10,bp.sc);
this.ui=-1;this.VY=-1;this.aaa=null;this.a3z=Z;this.By=b}ax.prototype=new a0;ax.prototype.nG=function(Z){var S=this.c8;
this.F(S[this.xc.u()]);this.m(new d(s.E.L))};ax.prototype.Fa=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.Fy,g9:"gradienteditor",W:this.M5,iy:this.a6y.bind(this),gz:this.By};
this.m(S)};ax.prototype.a6y=function(Z){this.F(Z);this.m(new d(s.E.L))};ax.prototype.gN=function(){if(!this.Dq)return;
var Z=Math.floor(36*s.Z()),S=Math.floor(36*s.Z()),b=[],Y=[],P=this.c8;for(var D=0;D<P.length;D++){var w=P[D];
Y.push(w.Nm?w.Nm.v.split("=").pop():"");var f=G.Oa.Oy(w,Z,S,Math.PI/4,this.ui,this.VY);b.push(f)}this.xc.TS(b,Y,Z,S);
this.Dq=!1};ax.prototype.cs=function(Z,S){this.t9(this.M5,Z,S)};ax.prototype.F=function(Z){this.t9(Z,this.ui,this.VY)};
ax.prototype.t9=function(Z,S,b){this.ui=S;this.VY=b;if(Z==null)return;var Y=JSON.stringify(Z),P=Y+S+","+b;
if(P==this.aaa)return;this.aaa=P;this.M5=JSON.parse(Y);var w=Math.floor(80*s.Z()),f=Math.floor(16*s.Z()),h=G.Oa.Oy(this.M5,w,f,0,this.ui,this.VY);
this.hU.setAttribute("src",h);s.$k(this.hU,w,f)};ax.prototype.u=function(){var Z;if(this.a3z)Z=G.Oa.and(this.M5,this.ui,this.VY);
else Z=JSON.parse(JSON.stringify(this.M5));return Z};function dU(Z){a0.call(this,Z,!1,"swatchbutton",16,8.75,bp.WE)}dU.prototype=new a0;
dU.prototype.nG=function(Z){this.F(this.c8[Z.target.u()]);this.m(new d(s.E.L))};dU.prototype.gN=function(){if(!this.Dq)return;
var Z=Date.now(),S=Math.floor(10*s.Z()),b=Math.floor(10*s.Z()),Y=[],P=[],w=this.c8;for(var D=0;D<w.length;
D++){P.push(w[D].mW?w[D].mW.split("=").pop():"");Y.push(dU.Oy(w[D],S,b))}this.xc.TS(Y,P,S,b);this.Dq=!1};
dU.prototype.F=function(Z){this.M5=JSON.parse(JSON.stringify(Z));this.kw()};dU.prototype.kw=function(){var Z=Math.floor(24*s.Z()),S=Math.floor(20*s.Z()),b=dU.Oy(this.M5,Z,S);
this.hU.setAttribute("src",b);s.$k(this.hU,Z,S)};dU.prototype.u=function(){return JSON.parse(JSON.stringify(this.M5))};
dU.t0={};dU.Oy=function(Z,S,b){var Y=dU.x_,P=dU.t0,w=T.T3(Z.h<<16|Z.l<<8|Z.O);if(P[w])return P[w];if(Y==null){var f=s.R("canvas");
Y=dU.x_=f.getContext("2d")}var f=Y.canvas;f.width=S;f.height=b;Y.fillStyle="#"+w;Y.fillRect(0,0,S,b);
var h=P[w]=f.toDataURL();return h};function ec(Z,S,b){ij.call(this);this.j=s.R("span","fitem cbox");
if(S==null)S=!0;if(b==null)b="flabel";var Y="cb"+s.sn();this.Lh=s.R("input","");this.Lh.setAttribute("type","checkbox");
this.Lh.setAttribute("id",Y);this.j.appendChild(this.Lh);this.i1=Z;this.DU=s.R("label",b);if(S)this.DU.setAttribute("for",Y);
this.j.appendChild(this.DU);this.B();this.Lh.addEventListener("change",this.WX.bind(this),!1)}ec.prototype=new ij;
ec.prototype.gZ=function(){return this.i1};ec.prototype.bl=function(Z){this.DU.textContent=Z};ec.prototype.B=function(){var Z=this.i1;
if(typeof Z=="string"&&Z.startsWith("<"))this.DU.innerHTML=Z;else this.DU.textContent=aV.get(Z)};ec.prototype.AN=function(){this.Lh.checked=!0};
ec.prototype.KY=function(){this.Lh.checked=!1};ec.prototype.rJ=function(){return this.Lh.checked};ec.prototype.F=function(Z){this.Lh.checked=Z};
ec.prototype.u=ec.prototype.rJ;ec.prototype.WX=function(Z){this.m(new d(s.E.L,!1))};function eW(Z,S,b,Y){ij.call(this);
this.j=s.R("span","fitem mbox");this.abm=b;if(Z){this.i1=Z;this.DU=s.R("label","flabel");this.j.appendChild(this.DU)}this.pv=S;
this.x1=[];for(var D=0;D<S.length;D++){var P=b?new fX(S[D],!1,Y?Y[D]:null):new ec(S[D],!0,"");P.i(b?"click":s.E.L,this.WX,this);
this.x1.push(P);this.j.appendChild(P.j)}this.B()}eW.prototype=new ij;eW.prototype.F=function(Z){for(var S=0;
S<this.pv.length;S++)this.x1[S].F(Z[S])};eW.prototype.u=function(){var Z=[];for(var S=0;S<this.pv.length;
S++)Z[S]=this.x1[S].u();return Z};eW.prototype.B=function(){if(this.i1)this.DU.innerHTML=aV.get(this.i1)+": ";
for(var Z=0;Z<this.x1.length;Z++)this.x1[Z].B()};eW.prototype.WX=function(Z){var D=this.x1.indexOf(Z.currentTarget);
if(this.abm)this.x1[D].F(!this.x1[D].u());this.m(new d(s.E.L,!1))};function gu(Z,S,b,Y,P,w){bt.call(this,Z,S,b,Y,P,!1,w);
this.j.appendChild(this.DU);var f=s.R("span","rangecont");this.j.appendChild(f);f.appendChild(this.lG);
this.j.appendChild(this.Lh);this.Lh.setAttribute("style","width:3.3em");if(this.v4)this.j.appendChild(this.vd)}gu.prototype=new bt;
function cA(Z,S,b,Y){if(Z==null)Z=!1;if(S==null)S=!1;if(b==null)b=!1;ij.call(this);this.N3=new ar;this.gB=new ar;
this.mR=72;this.vY=72;this.LR=!0;this.j=s.R("span","");this.O0=new c2([12,41],0,0,null,0,!1,!0);this.j.appendChild(this.O0.j);
this.O0.i(s.E.L,this.oD,this);var P=["px","%"];if(Z)P=P.concat(["mm","in"]);this.u0=new gl(null,P);this.j.appendChild(this.u0.j);
s.X3(this.j);this.u0.i(s.E.L,this.oD,this);this.Dd=new c2([12,42],0,0,null,0,!1,!0);this.j.appendChild(this.Dd.j);
this.Dd.i(s.E.L,this.oD,this);var w=new fX("\u21F5",!1,null,!0);w.i("click",this.a3G,this);this._e=new fX("<img src=\""+PIMG["lrs/chain"]+"\" class=\"autoscale gsicon\" />",!1,[12,51]);
this._e.i("click",this.oD,this);this.ab9=new bE("");if(S){this.j.appendChild(this._e.j);this.j.appendChild(this.ab9.j);
this._e.AN()}else this.j.appendChild(w.j);this.pw=new c2("DPI",0,0,null,3,!1,!0,4);if(Z&&Y==null){s.X3(this.j);
this.j.appendChild(this.pw.j)}this.pw.i(s.E.L,this.oD,this);this.jh=new ec([12,23,1]);this.jh.i(s.E.L,this.oD,this);
if(b){s.X3(this.j);this.j.appendChild(this.jh.j)}s.X3(this.j)}cA.prototype=new ij;cA.prototype.a2C=function(){this.LR=!1;
if(this.u0.u()==0){this.u0.F(3);this._R()}};cA.prototype.ac_=function(){this.LR=!0};cA.prototype.a32=function(Z){this._e.F(Z)};
cA.prototype.B=function(){this.O0.B();this.Dd.B();this.pw.B();this._e.B();this.jh.B()};cA.prototype.a3G=function(Z){var S=this.gB.x;
this.gB.x=this.gB.y;this.gB.y=S;this._R();this.m(new d(s.E.L,!1))};cA.prototype.oD=function(Z){if(Z.target==this.u0&&!this.LR&&this.u0.u()==0)this.u0.F(3);
if(Z.target==this.u0||Z.target==this.jh){this._R();return}if(Z.target==this._e)Z.target.F(!Z.target.u());
var S=this.N3,b=parseFloat(this.O0.u());if(isNaN(b))b=1;var Y=parseFloat(this.Dd.u());if(isNaN(Y))Y=1;
var P=this.u0.u();if(this.LR){var w=this.vY;if(P==1){b=this.N3.x*(b/100);Y=this.N3.y*(Y/100)}var f=[1,1,25.4/w,1/w][P];
b/=f;Y/=f;if(this.jh.u()){b+=this.N3.x;Y+=this.N3.y}if(Z.target==this.pw){var h=this.pw.u();if(!0){var Q=h/w;
b*=Q;Y*=Q}w=h}if(this._e.u()){if(Z.target==this.O0)Y=b*(S.y/S.x);else b=Y*(S.x/S.y)}b=Math.max(Math.abs(b),1);
Y=Math.max(Math.abs(Y),1)}else{var w=this.mR;if(Z.target==this.pw)w=this.pw.u();else{if(this._e.u()){if(Z.target==this.O0)Y=b*(S.y/S.x);
else b=Y*(S.x/S.y)}var f=[1,1,25.4/w,1/w][P],e=b/(P==1?100:S.x*f);w=w/e}b=S.x;Y=S.y}this.gB=new ar(Math.round(b),Math.round(Y));
this.vY=w;this._R();this.m(new d(s.E.L,!1))};cA.prototype.a2O=function(D){this.u0.F(D);this._R()};cA.prototype.F=function(Z,S,b){if(b!=!0)this.N3=Z.clone();
this.gB=Z.clone();if(S!=null){this.mR=S;this.vY=S}this._R()};cA.prototype._R=function(){var Z=this.gB.x,S=this.gB.y,b=this.vY,Y=(Z/S).toFixed(3);
while(Y.charAt(Y.length-1)=="0")Y=Y.substring(0,Y.length-1);if(Y.charAt(Y.length-1)==".")Y=Y.substring(0,Y.length-1);
var P=" "+Y+" : 1",w=function(l,O){while(O!=0){var m=O;O=l%O;l=m}return l},f=w(Z,S);if(Math.min(Z,S)/f<10)P=" "+Math.round(Z/f)+" : "+Math.round(S/f);
this.ab9.F(P);if(this.jh.u()){Z-=this.N3.x;S-=this.N3.y}var h=this.u0.u();if(h==1){if(this.LR){Z=100*Z/this.N3.x;
S=100*S/this.N3.y}else{Z=S=100*this.mR/this.vY}}else{Z=Math.round(Z);S=Math.round(S)}var Q=[1,1,25.4/b,1/b][h];
Z*=Q;S*=Q;var e=h==1||h==3?2:0;this.O0.k4(e);this.Dd.k4(e);this.O0.F(Z);this.Dd.F(S);this.pw.F(b)};cA.prototype.u=function(){return this.gB.clone()};
cA.prototype.cW=function(){return this.vY};function i6(){ij.call(this);this.xT=0;this.$v=[0,0,1,1,100,100];
this.j=s.R("span","fitem");this.V9=new gl(null,[[12,89,0],[12,89,1],[12,89,2]]);this.j.appendChild(this.V9.j);
this.V9.i(s.E.L,this.oD,this);this.O0=new c2("W",0,0,null,0,!1,!0);this.j.appendChild(this.O0.j);this.O0.i(s.E.L,this.oD,this);
this.Dd=new c2("H",0,0,null,0,!1,!0);this.j.appendChild(this.Dd.j);this.Dd.i(s.E.L,this.oD,this);this.F({QX:0,x:0,y:0})}i6.prototype=new ij;
i6.prototype.B=function(){s.wh(this.O0,this.Dd);this.V9.B()};i6.prototype.oD=function(Z){if(Z.target==this.V9){var S=this.u(),b=this.$v;
b[this.xT*2]=S.x;b[this.xT*2+1]=S.y;this.xT=S.QX;this.F({QX:S.QX,x:b[S.QX*2],y:b[S.QX*2+1]})}if(this.O0.u()<1)this.O0.F(1);
if(this.Dd.u()<1)this.Dd.F(1);this.m(new d(s.E.L,!1))};i6.prototype.F=function(Z){this.V9.F(Z.QX);this.O0.F(Z.x);
this.Dd.F(Z.y);if(Z.QX==0){this.O0.J7();this.Dd.J7()}else{this.O0.zA();this.Dd.zA()}};i6.prototype.u=function(){return{QX:this.V9.u(),x:this.O0.u(),y:this.Dd.u()}};
function bE(Z,S){ij.call(this);this.i1=Z;this.j=s.R("span","labelitem fitem"+(S?" spread":""));this.B()}bE.prototype=new ij;
bE.prototype.F=function(Z){this.j.textContent=Z};bE.prototype.u=function(){return this.j.textContent};
bE.prototype.zA=function(){this.j.removeAttribute("disabled")};bE.prototype.J7=function(){this.j.setAttribute("disabled","")};
bE.prototype.bl=function(Z){this.j.textContent=Z};bE.prototype.B=function(){this.j.textContent=aV.get(this.i1)};
bE.prototype.gZ=function(){return this.i1};function f0(Z){ij.call(this);this.j=s.R("span","");this.a7l=Z;
this.N9=new gu("Off X",-100,100,Z?"%":"px",0,!1);this.HY=new gu("Off Y",-100,100,Z?"%":"px",0,!1);this.N9.i(s.E.L,this.oD,this);
this.HY.i(s.E.L,this.oD,this);this.j.appendChild(this.N9.j);this.j.appendChild(this.HY.j)}f0.prototype=new ij;
f0.prototype.B=function(){this.N9.B();this.HY.B()};f0.prototype.oD=function(Z){this.m(new d(s.E.L,!1))};
f0.prototype.a6Z=function(Z){this.N9.F(Z.x);this.HY.F(Z.y)};f0.prototype.alO=function(){return new ar(this.N9.u(),this.HY.u())};
f0.prototype.F=function(Z,S){var b=Z.Hrzn.v,Y=Z.Vrtc.v;if(this.a7l){b=b.val;Y=Y.val}this.N9.F(b);this.HY.F(Y);
if(S)this.oD()};f0.prototype.u=function(){var Z=this.N9.u(),S=this.HY.u();if(this.a7l)return{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:Z}},Vrtc:{t:"UntF",v:{type:"#Prc",val:S}}};
else return{classID:"Pnt",Hrzn:{v:Z,t:"doub"},Vrtc:{v:S,t:"doub"}}};function c2(Z,S,b,Y,P,w,f,h,Q){bt.call(this,Z,S,b,Y,P,!0,w,Q);
s.zy(this.j,"rangedropinput");this.j.appendChild(this.DU);this.Lh.setAttribute("style","width:"+(h?h:3.3)+"em");
this.j.appendChild(this.Lh);this.aax=s.R("span","rangecont");this.aax.appendChild(this.lG);this.Y4=s.R("button");
this.Y4.innerHTML="\u25BC";s.TL(this.Y4,this.a8N.bind(this));if(f!=!0)this.j.appendChild(this.Y4);this.em=new ij;
this.em.j=this.aax}c2.prototype=new bt;c2.prototype.a8N=function(Z){if(s.mO(this.em.j))return;Z.stopPropagation();
var S=this.j.getBoundingClientRect();this.lG.setAttribute("style","width:"+S.width+"px;");var b=new d(s.E.P,!0);
b.data={e:s.U.Gc,Bq:this.em,x:S.left,y:S.top+S.height};this.m(b)};function aG(){ij.call(this);this.j=s.R("span","fitem strokebutton");
this.ir=[[null,null,null,""],[null,0,null,"4 2"],[1,1,null,"0 2"]];this.iS=JSON.parse(JSON.stringify(a4.m3.default));
this.Nl=s.R("button");this.j.appendChild(this.Nl);this.Nl.addEventListener("click",this.H8.bind(this),!1);
var Z=s.R("canvas","gsicon");this.Bi=Z.getContext("2d");this.Nl.appendChild(Z);var S=s.R("span");S.textContent=" \u25BC";
this.Nl.appendChild(S);this.Hw=new ij;this.Hw.parent=this;this.Hw.j=s.R("div","floatcont form");var b=this.Hw.j;
b.setAttribute("style","width: 14em;");this.Jw=[new gl([12,40],[[19,5,2],[19,5,1],[19,5,0]]),new gT([19,9,0],["<img src=\""+PIMG["caps/butt"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["caps/round"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["caps/square"]+"\" class=\"autoscale gsicon\" />"]),new gT([19,9,1],["<img src=\""+PIMG["joins/miter"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["joins/round"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["joins/bevel"]+"\" class=\"autoscale gsicon\" />"]),new cY([19,9,2])];
for(var D=0;D<this.Jw.length;D++){var Y=this.Jw[D];b.appendChild(Y.j);var P=D<4?s.E.L:"click";Y.i(P,this.oD,this)}s.X3(b);
this.tT=[];var w=this.a4q.bind(this);for(var D=0;D<this.ir.length;D++){var f=s.R("button","fitem");this.tT.push(f);
b.appendChild(f);f.addEventListener("click",w,!1);var Z=s.R("canvas","gsicon"),h=Z.getContext("2d");
f.appendChild(Z);this.k6(h,40,20,this.ir[D])}}aG.prototype=new ij;aG.prototype.H8=function(Z){var S=this.Nl.getBoundingClientRect(),b=new d(s.E.P,!0);
b.data={e:s.U.Gc,Bq:this.Hw,x:S.left,y:S.top+S.height+4};this.m(b)};aG.prototype.oD=function(Z){var S=this.Jw,b=S.indexOf(Z.target),Y=[];
for(var D=0;D<4;D++)Y.push(S[D].u());this.iS=this.pC(Y);this.m(new d(s.E.L,!1))};aG.prototype.a4q=function(Z){var S=this.tT.indexOf(Z.currentTarget);
this.F(this.pC(this.ir[S]));this.m(new d(s.E.L,!1))};aG.prototype.pC=function(Z){var S=JSON.parse(JSON.stringify(this.iS)),b=Z[0],Y=Z[1],P=Z[2],w=Z[3];
if(b!=null)S.strokeStyleLineAlignment.v.strokeStyleLineAlignment=a4.m3.ie[b];if(Y!=null)S.strokeStyleLineCapType.v.strokeStyleLineCapType=a4.m3.oV[Y];
if(P!=null)S.strokeStyleLineJoinType.v.strokeStyleLineJoinType=a4.m3.join[P];var f=S.strokeStyleLineDashSet.v=[];
w=w.split(" ");while((w.length&1)!=0)w.pop();for(var D=0;D<w.length;D++)f.push({t:"UntF",v:{type:"#Nne",val:parseInt(w[D])}});
return S};aG.prototype.B=function(){for(var D=0;D<this.Jw.length;D++)this.Jw[D].B()};aG.prototype.F=function(Z){this.iS=JSON.parse(JSON.stringify(Z));
var S=a4.m3.ie.indexOf(Z.strokeStyleLineAlignment.v.strokeStyleLineAlignment),b=a4.m3.oV.indexOf(Z.strokeStyleLineCapType.v.strokeStyleLineCapType),Y=a4.m3.join.indexOf(Z.strokeStyleLineJoinType.v.strokeStyleLineJoinType),P=[],w=Z.strokeStyleLineDashSet.v;
for(var f=0;f<w.length;f++)P.push(w[f].v.val);var h=this.Jw;h[0].F(S);h[1].F(b);h[2].F(Y);h[3].F(P.join(" "));
var Q=[];for(var D=0;D<4;D++)Q.push(h[D].u());this.k6(this.Bi,40,16,Q)};aG.prototype.u=function(){return JSON.parse(JSON.stringify(this.iS))};
aG.prototype.k6=function(Z,S,b,Y){var P=Y[0],w=Y[1],f=Y[2],h=Y[3].split(" ").map(parseFloat);s.ed(Z.canvas,S,b);
var Q=Math.min(5,this.iS.strokeStyleLineWidth.v.val);for(var D=0;D<h.length;D++)h[D]*=Q;Z.clearRect(0,0,S,b);
Z.setLineDash(h);Z.lineCap=["butt","round","square"][w];Z.lineJoin=["miter","round","bevel"][f];Z.lineWidth=Q;
Z.beginPath();Z.moveTo(0,b/2);Z.lineTo(S*2,b/2);Z.stroke()};function h7(Z){a0.call(this,Z,!1,"contourbutton",34,16,bp.bT);
this.QN=new cY([12,86],null,16);this.QN.i("input",this.QO,this);this.Hw.j.appendChild(this.QN.j);this.db=null;
this.qv="";this.$s=null;this.F(hF.VS())}h7.prototype=new a0;h7.prototype.B=function(){a0.prototype.B.call(this);
this.QN.B()};h7.prototype.nG=function(Z){this.F(this.db[Z.target.u()]);this.m(new d(s.E.L))};h7.prototype.QO=function(Z){this.qv=this.QN.u().toLowerCase();
this.ce()};h7.uW=!1;h7.prototype.gN=function(){if(!this.Dq)return;var Z=this.c8;if(Z==null||!h7.uW){var S=new d(s.E.P,!0);
S.data={e:s.U.LV,Sz:{url:"rsrc/basic/fa_basic.csh"}};this.m(S);h7.uW=!0}else{var b=Math.floor(38*s.Z()),Y=Math.floor(38*s.Z());
this.$s=[];for(var D=0;D<Z.length;D++)this.$s.push(h7.oR(Z[D],b,Y));this.ce();this.Dq=!1}};h7.prototype.ce=function(){var Z=Math.floor(38*s.Z()),S=Math.floor(38*s.Z());
this.db=[];var b=[],Y=[],P=this.c8;for(var D=0;D<P.length;D++){if(P[D].rv.toLowerCase().indexOf(this.qv)==-1)continue;
this.db.push(P[D]);b.push(this.$s[D]);Y.push(P[D].rv)}this.xc.TS(b,Y,Z,S)};h7.prototype.F=function(Z){this.M5=h7.clone(Z);
this.kw()};h7.prototype.kw=function(){var Z=Math.floor(23*s.Z()),S=Math.floor(23*s.Z()),b=h7.oR(this.M5,Z,S);
this.hU.setAttribute("src",b);s.$k(this.hU,Z,S)};h7.prototype.u=function(){return h7.clone(this.M5)};
h7.clone=function(Z){return{rv:Z.rv,p2:Z.p2,b:F.NS.OU(Z.b),NA:Z.NA.clone()}};h7.QY=null;h7.z1=null;h7.oR=function(Z,S,b){var Y=F.NS.OU(Z.b),P=Z.NA,w=Math.min(S/P.c,b/P.v)*.9,f=new fR;
f.translate(-.5,-.5);f.scale(.95,.95);f.translate(.5,.5);f.scale(w*P.c,w*P.v);T.Y.$d(Y,f);var h=new F.NS;
h.b=Y;var Q=h.Y6();Q.rect.x=Math.floor((S-Q.rect.c)/2);Q.rect.y=Math.floor((b-Q.rect.v)/2);var e=T.f(Q.rect.X()*4);
T._U(e,4278190080);T.oN(Q.channel);T.y8(Q.channel,e,0);T.y8(Q.channel,e,1);T.y8(Q.channel,e,2);var l=h7;
if(l.QY==null)l.QY=s.R("canvas");var O=l.QY,m=O.getContext("2d");if(O.width!=S||O.height!=b||l.z1==null){O.width=S;
O.height=b;l.z1=m.createImageData(S,b)}var V=l.z1;T._U(V.data,4294967295);T.uH(e,Q.rect,V.data,new b4(0,0,S,b));
m.putImageData(V,0,0);return O.toDataURL()};function gj(Z){a0.call(this,Z,!1,"ICCButton",16,12,bp.n$,!0);
this.xc.ZC(1)}gj.prototype=new a0;gj.prototype.EL=function(){var Z="Arabica 12,Ava 614,Azrael 93,Bourbon 64,Byers 11,Clayton 33,Clouseau 54,Cobi 3,Contrail 35,Cubicle 99,Django 25,Domingo 145,Faded 47,Folger 50,Fusion 88,Hyla 68,Chemical 168,Korben 214,Lenox 340,Lucky 64,McKinnon 75,Milo 5,Neon 770,Paladin 1875,Pasadena 21,Pitaya 15,Reeve 38,Remy 24,Sprocket 231,Teigen 28,Trent 18,Tweed 71,Vireo 37,Zed 32,Zeke 39".split(",");
for(var D=0;D<Z.length;D++)Z[D]="luts/"+Z[D]+".CUBE";return Z};gj.prototype.nG=function(Z){this.F(this.c8[Z.target.u()]);
this.m(new d(s.E.L))};gj.prototype.gN=function(){if(!this.Dq)return;var Z=Math.floor(1*s.Z()),S=Math.floor(1*s.Z()),b=[],Y=[],P=this.c8;
for(var D=0;D<P.length;D++){var w=P[D].Nm.v.split("\\").pop().split("/").pop();Y.push(w);b.push(gj.Oy(P[D],Z,S))}this.xc.TS(b,Y,Z,S);
this.Dq=!1};gj.prototype.F=function(Z){this.M5=JSON.parse(JSON.stringify(Z));this.kw()};gj.Oy=function(Z,S,b){var Y=s.R("canvas"),f="ICC / 3DL / look / cube";
Y.width=S;Y.height=b;var P=Y.getContext("2d"),w=Math.floor(14*s.Z());P.font=w+"px sans-serif";if(Z.Nm)f=Z.Nm.v.split("\\").pop().split("/").pop();
P.fillText(f,10,w);return Y.toDataURL()};gj.prototype.kw=function(){var Z=Math.floor(120*s.Z()),S=Math.floor(20*s.Z());
this.hU.setAttribute("src",gj.Oy(this.M5,Z,S));s.$k(this.hU,Z,S)};gj.prototype.u=function(){return JSON.parse(JSON.stringify(this.M5))};
function ce(){ij.call(this);this.mB=null;this.j=s.R("span","fitem");this.Lg=new d2([14,9]);this.kH=new c2(null,0,150,"pt",1,!0,null,null,[19,2,5]);
this.df=new aG;this.cH=[this.Lg,this.kH,this.df];for(var D=0;D<this.cH.length;D++){var Z=this.cH[D];
this.j.appendChild(Z.j);Z.parent=this;Z.i(s.E.L,this.oD,this)}}ce.prototype=new ij;ce.prototype.B=function(){for(var D=0;
D<this.cH.length;D++)this.cH[D].B()};ce.prototype.na=function(Z,S){this.Lg.na(Z,S)};ce.prototype.oD=function(Z){var S=this.mB,b=this.Lg.u(),Y=b.uR;
S.strokeEnabled.v=Y!=0;if(Y!=0){S.strokeStyleContent.v=b.B2;b.B2.classID=a4.m3.Vh[Y-1]}S.strokeStyleLineWidth.v.val=this.kH.u();
if(Z.target==this.df)S=this.df.u();this.mB=S;this.m(new d(s.E.L,!1))};ce.prototype.F=function(Z,S,b){this.mB=JSON.parse(JSON.stringify(S));
var Y=S.strokeEnabled.v,P=S.strokeStyleContent.v,w=Y?{uR:1+a4.m3.Vh.indexOf(P.classID),B2:P}:{uR:0};
this.Lg.F(Z,w,b);this.kH.F(S.strokeStyleLineWidth.v.val);this.df.F(S)};ce.prototype.u=function(){return JSON.parse(JSON.stringify(this.mB))};
function gK(Z){ij.call(this);this.j=s.R("span","fitem");this.Ew=null;if(Z){this.Ew=new bE("");this.j.appendChild(this.Ew.j)}this.l3=["front","union","difference","intersection"];
var S=[[18,0],[18,1],[18,2],[18,3]];this.Rl=[];this.JI=0;for(var D=0;D<this.l3.length;D++){var b=new fX("<img src=\""+PIMG["set/"+this.l3[D]]+"\" class=\"autoscale gsicon\" />",!1,S[D]);
b.i("click",this.adI,this);this.j.appendChild(b.j);this.Rl.push(b)}this.Rl[0].AN()}gK.prototype=new ij;
gK.prototype.ahj=function(){return this.JI};gK.prototype.u=function(){return this.l3[this.JI]};gK.prototype.F=function(Z){this.JI=this.l3.indexOf(Z);
for(var D=0;D<this.Rl.length;D++)this.Rl[D].KY();this.Rl[this.JI].AN()};gK.prototype.adI=function(Z){this.F(this.l3[this.Rl.indexOf(Z.currentTarget)]);
this.m(new d(s.E.L,!1))};gK.prototype.B=function(){if(this.Ew)this.Ew.F(aV.get([12,36])+":");for(var D=0;
D<this.Rl.length;D++)this.Rl[D].B()};function cY(Z,S,b,Y){ij.call(this);var P=s.sn(),w="";this.j=s.R("span","fitem tinput");
if(Z){this.i1=Z;this.DU=s.R("label","flabel");this.j.appendChild(this.DU);this.DU.setAttribute("for",P);
this.B()}if(Y==null){this.Lh=s.R("input","");this.Lh.setAttribute("type","text")}else this.Lh=s.R("textarea","scrollable");
this.Lh.setAttribute("id",P);if(b)w+="width:"+b+"em;";if(Y){this.Lh.setAttribute("rows",Y)}if(w!="")this.Lh.setAttribute("style",w);
this.j.appendChild(this.Lh);if(S){this.vd=s.R("span","");this.vd.textContent=S;this.j.appendChild(this.vd)}this.Lh.addEventListener("change",this.WX.bind(this),!1);
this.Lh.addEventListener("input",this.ag9.bind(this),!1)}cY.prototype=new ij;cY.prototype.B=function(){if(this.i1)this.DU.textContent=aV.get(this.i1)+":"};
cY.prototype.bl=function(Z){this.DU.textContent=Z};cY.prototype.F=function(Z){this.Lh.value=Z==null?"":Z};
cY.prototype.u=function(){return this.Lh.value};cY.prototype.vq=function(){this.Lh.select();this.Lh.focus()};
cY.prototype.WX=function(Z){this.m(new d(s.E.L,!1))};cY.prototype.ag9=function(Z){this.m(new d("input",!1))};
function bS(Z,S,b,Y,P,w,f){bt.call(this,Z,S,b,Y,P,!0,w,null,f);s.zy(this.j,"trangeinput");this.j.appendChild(this.DU);
this.j.appendChild(this.Lh);var h=s.R("span","rangecont");this.j.appendChild(h);h.appendChild(this.lG);
this.lG.setAttribute("style","width:97%;")}bS.prototype=new bt;function iV(){ij.call(this);this.jw=[16,!0,!0];
this.j=s.R("span","");this.RI=[new c2([12,24],0,255),new ec("Anti-alias"),new ec([12,25])];for(var D=0;
D<3;D++){var Z=this.RI[D];Z.parent=this;Z.F(this.jw[D]);this.j.appendChild(Z.j);Z.i(s.E.L,this.oD,this)}}iV.prototype=new ij;
iV.prototype.oD=function(){for(var D=0;D<3;D++)this.jw[D]=this.RI[D].u();this.m(new d(s.E.L,!1))};iV.prototype.F=function(Z){this.jw=Z.slice(0);
for(var D=0;D<3;D++)this.RI[D].F(Z[D])};iV.prototype.u=function(){return this.jw.slice(0)};iV.prototype.B=function(){for(var D=0;
D<3;D++)this.RI[D].B()};function hw(Z,S){ij.call(this);if(S==null)S=!1;this.$s=[];this.a52=0;this.ah5=0;
this.YX=0;this.Df=[];this.dd=[];for(var b in T.$e.type){if(b=="warpCustom"&&!S)continue;this.Df.push(b);
this.dd.push(T.$e.type[b])}this.j=s.R("span","fitem warpbutton");this.Hw=new ij;this.Hw.j=s.R("div","floatcont");
if(Z){this.Ew=Z;this.DU=s.R("label","flabel");this.j.appendChild(this.DU)}this.e=s.R("button");this.j.appendChild(this.e);
this.e.addEventListener("click",this.H8.bind(this),!1);this.Yx=new aD(!0);this.Hw.j.appendChild(this.Yx.j);
this.Yx.i(s.E.L,this.a4W,this);this.B()}hw.prototype=new ij;hw.prototype.bl=function(Z){this.DU.textContent=Z};
hw.prototype.B=function(){if(this.Ew)this.DU.innerHTML=aV.get(this.Ew)+":";this.$s=[];var Z=s.R("canvas",""),S=Z.getContext("2d"),b=0;
S.font=Math.floor(13*s.Z())+"px sans-serif";for(var D=0;D<this.Df.length;D++){b=Math.max(b,S.measureText(aV.get(T.$e.type[this.Df[D]])).width)}var Y=this.a52=Math.floor(50*s.Z()+b),P=this.ah5=Math.floor(23*s.Z());
Z.width=Y;Z.height=P;this.Hw.j.setAttribute("style","width:"+Math.floor(8+Y/s.Z())+"px;");S.font=Math.floor(13*s.Z())+"px sans-serif";
S.lineWidth=1;S.strokeStyle="#000000";var w=Math.floor(16*s.Z()),f=new b4(0,0,w,w);for(var D=0;D<this.Df.length;
D++){var h=this.Df[D];S.clearRect(0,0,Z.width,Z.height);var Q=T.$e.$e(f,h,!0,.3,0,0),e=T.z.X6(f);e.K.push("M","L","M","L");
e.H.push(0,w/2,w,w/2);e.H.push(w/2,0,w/2,w);e=T.z.LD(e);e=T.z.Xt(e,w/5);T.Ts.A(Q,e.H,f);T.z.A(e.H,new fR(1,0,0,1,Math.floor(8*s.Z())+.5,Math.floor(3*s.Z())+.5),e.H);
S.beginPath();Typr.U.pathToContext({cmds:e.K,crds:e.H},S);S.stroke();S.fillText(aV.get(T.$e.type[h]),Math.floor(40*s.Z()),Math.floor(16*s.Z()));
this.$s.push(Z.toDataURL())}this.Yx.TS(this.$s,null,Y,P);this.kw()};hw.prototype.H8=function(Z){var S=this.e.getBoundingClientRect(),b=new d(s.E.P,!0);
b.data={e:s.U.Gc,Bq:this.Hw,x:S.left,y:S.top+S.height+4};this.m(b)};hw.prototype.a4W=function(Z){var S=new d(s.E.P,!0);
S.data={e:s.U.KN,Bq:this.Hw};this.m(S);this.YX=Z.target.u();this.kw();this.m(new d(s.E.L))};hw.prototype.kw=function(){this.Yx.wx(this.YX);
this.e.innerHTML="<img src=\""+this.$s[this.YX]+"\" class=\"gsicon\" />";var Z=this.a52,S=this.ah5;s.$k(this.e.firstChild,Z,S)};
hw.prototype.u=function(){return this.Df[this.YX]};hw.prototype.F=function(Z){this.YX=this.Df.indexOf(Z);
this.kw()};function iU(Z,S,b){ij.call(this);if(Z==null)Z=!1;if(S==null)S=!1;if(b==null)b=!1;this.a5R=S;
this.$e=null;this.hI=new hw([12,22],b);this.hI.parent=this;this.hI.i(s.E.L,this.SI,this);this.g$=new gl([22,0],[[22,4,0],[22,4,1]]);
this.g$.i(s.E.L,this.SI,this);var Y=Z?c2:bS;this.vs=new Y([22,1],-100,100,"%");this.Wc=new Y("Horizontal Distortion:",-100,100,"%");
this.cL=new Y("Vertical Distortion:",-100,100,"%");this.vs.parent=this.Wc.parent=this.cL.parent=this;
this.vs.i(s.E.L,this.SI,this);this.Wc.i(s.E.L,this.SI,this);this.cL.i(s.E.L,this.SI,this)}iU.prototype=new ij;
iU.prototype.B=function(){this.hI.B();this.g$.B();this.vs.B();var Z=this.a5R?1:100;this.Wc.bl(aV.get([22,2]).substring(0,Z)+":");
this.cL.bl(aV.get([22,3]).substring(0,Z)+":")};iU.prototype.SI=function(){var Z=this.$e,S=this.hI.u(),b=Z.warpStyle.v.warpStyle;
if(S=="warpCustom")T.$e.bG(T.$e.dm(Z),Z);else delete Z.customEnvelopeWarp;Z.warpStyle.v.warpStyle=this.hI.u();
Z.warpRotate.v.Ornt=["Hrzn","Vrtc"][this.g$.u()];Z.warpValue.v=this.vs.u();Z.warpPerspective.v=this.Wc.u();
Z.warpPerspectiveOther.v=this.cL.u();if(S=="warpNone"||S=="warpCustom"){Z.warpValue.v=0;Z.warpPerspective.v=0;
Z.warpPerspectiveOther.v=0}else if(b=="warpNone"||b=="warpCustom")Z.warpValue.v=50;this.m(new d(s.E.L,!1));
this.F(Z)};iU.prototype.u=function(Z){return JSON.parse(JSON.stringify(this.$e))};iU.prototype.F=function(Z){this.$e=JSON.parse(JSON.stringify(Z));
this.hI.F(Z.warpStyle.v.warpStyle);this.g$.F(Z.warpRotate.v.Ornt=="Hrzn"?0:1);this.vs.F(Z.warpValue.v);
this.Wc.F(Z.warpPerspective.v);this.cL.F(Z.warpPerspectiveOther.v);var S=Z.warpStyle.v.warpStyle,b=S=="warpNone"||S=="warpCustom",Y=[this.g$,this.vs,this.Wc,this.cL];
for(var D=0;D<Y.length;D++)if(b)Y[D].J7();else Y[D].zA()};function eV(Z){ij.call(this);this.j=s.R("div");
this.wP=Z;this.oP=null;this.Vn=new ar(0,0);this.ln="position:relative;overflow:hidden;";this.Z0=null;
this.Gq=new s.o8(this.j);this.gk("grab");this.OD=s.R("canvas","canv");this.j.appendChild(this.OD);this.Bi=this.OD.getContext("2d");
this.aeW=null;this.$Z=null;this.I1=null;this.$$=0;this.li=0;this.yT=0;this.ak7=this.wt.bind(this);this.aiR=null;
this.a=new fQ({c:1,v:1});this.JY=null;this.O4=null;this.alp=this.UQ.bind(this);this.afj=this.Sw.bind(this);
this.a2g=this.LP.bind(this);this.aeV=this.Qx.bind(this);this.a3f=0;this.ml=null;this.HX(this.OD);this.OQ(this)}eV.prototype=new ij;
eV.prototype.XF=function(Z){var S=this.Z0,b=null;if(Z.q(U.Ah)){b="grab";if(Z.q(U.cD)){b="zoom-in";if(Z.q(U.G_))b="zoom-out"}}this.oP=b;
if(b)S=b;this.Gq.lX(S,this.ln);if(Z.q(U.cD)){var Y=0;if(Z.q(U.G6))Y=1;if(Z.q(U.Zm))Y=-1;if(Y!=0){this.vb(new ar(this.OD.width/2,this.OD.height/2),Y==1)}}};
eV.prototype.gk=function(Z){this.Z0=Z;if(this.oP)return;this.Gq.lX(Z,this.ln)};eV.prototype.HX=function(Z){s.TL(Z,this.alp);
s.QF(Z);Z.addEventListener("wheel",this.aeV,!1)};eV.prototype.OQ=function(Z){Z.i("viewchange",this.akp,this)};
eV.prototype.akp=function(Z){var S=this.a.S,b=Z.currentTarget.Lt();this.a.S=b.S;this.a.n=b.n.clone();
if(S!=b.S)this.Cl();this.Mn()};eV.prototype.Lt=function(){return{S:this.a.S,n:this.a.n}};eV.prototype.F=function(Z,S){var b=Z[0].Vl;
if(this.$Z!=null&&this.$Z[0].Vl.Oh(b)){}else{this.a.hp={c:b.c,v:b.v};this.a.n=new ar(0,0);this.a.S=1}this.$Z=Z;
this.Cl();this._D();this.$$=0;this.li=0;this.yT=S==null?0:S;this.wt()};eV.prototype.Qx=function(Z){Z.preventDefault();
if(Z.deltaY==0||Date.now()-this.a3f<100)return;var S=s.R6(Z);S.x=s.Z()*S.x;S.y=s.Z()*S.y;this.a3f=Date.now();
this.vb(S,Z.deltaY<0)};eV.prototype.vb=function(Z,S){G.IL.n6(this.a,Z,S);this.q9()};eV.prototype.alG=function(){var Z=this.a,S=Z.hp;
this.a.S=G.IL.mZ(S.c,S.v,Z.a_.c,Z.a_.v);this.q9()};eV.prototype.q9=function(){this.Cl();this.m(new d("viewchange"));
this.m(new d("zoom"))};eV.prototype.Cl=function(){this.I1=[];var Z=this.a.S;for(var D=0;D<this.$Z.length;
D++){var S=this.$Z[D],b=new Uint8Array(S.data),Y;if(Z>=1)Y={j$:b,rect:S.Vl};else Y=T.air(b,S.Vl,Z);this.I1.push(Y)}};
eV.prototype._D=function(){clearTimeout(this.aiR)};eV.prototype.Mn=function(){if(this.$Z==null||!s.mO(this.OD))return;
var Z=this.aeW,S=this.OD.width,b=this.OD.height,q,K;if(Z==null||Z.width!=S||Z.height!=b){Z=this.aeW=this.Bi.createImageData(S,b);
console.log("creating image data")}var Y=this.$Z[this.$$],P=this.I1[this.$$],w=this.a,f=w.hp,h=w.a_,Q=h.c,e=h.v,l=f.c*w.S,O=f.v*w.S,m=Math.round((Q-l)/2+w.n.x),V=Math.round((e-O)/2+w.n.y);
if(w.S<=1){K=P.rect.clone();K.x=m;K.y=V;l=K.c;O=K.v;q=P.j$}else{var z=1/w.S,t=new b4(Math.floor((h.x-m)*z),Math.floor((h.y-V)*z),Math.ceil(h.c*z)+1,Math.ceil(h.v*z)+1),H=new b4(0,0,t.c*w.S,t.v*w.S);
H.x=t.x*w.S+m;H.y=t.y*w.S+V;if(w.Am==null||w.Am.length!=t.X()*4){w.Am=T.f(t.X()*4)}if(w.og==null||w.og.length!=H.X()*4){w.og=T.f(H.X()*4)}T._U(w.Am,0);
T.uH(P.j$,P.rect,w.Am,t);T.scale.V_(w.Am,t.c,t.v,w.og,H.c,H.v,w.S);q=w.og;K=H}var i=new Uint8Array(Z.data.buffer);
T.bO(i,Q,e,8,-m,-V);T.p.xJ("norm",q,K,i,h,h,1);this.Bi.setTransform(1,0,0,1,0,0);this.Bi.putImageData(Z,0,0);
this.Bi.clearRect(m-1e3,V,1e3,O);this.Bi.clearRect(m+l,V,1e3,O);this.Bi.clearRect(m-1e3,V-1e3,l+2e3,1e3);
this.Bi.clearRect(m-1e3,V+O,l+2e3,1e3);var y=eV.HN(w.S,"#ffffff");this.Bi.putImageData(y,0,w.a_.v-y.height)};
eV.vN={};eV.HN=function(Z,S){var b="z"+Z+","+S,Y=eV.vN[b];if(Y)return Y;var P=Math.round(50*s.Z()),w=Math.round(18*s.Z()),f=s.R("canvas"),h=f.getContext("2d");
f.width=P;f.height=w;h.fillStyle="rgba(1,1,1,1)";h.fillRect(0,0,P,w);h.font=Math.round(11*s.Z())+"px monospace";
h.fillStyle=S;var Q=Z*100;if(Q<100)Q=Q.toFixed(2);else Q=Math.round(Q);Q=Q+"%";var e=h.measureText(Q).width;
h.fillText(Q,(P-e)/2,Math.round(w*.7));Y=eV.vN[b]=h.getImageData(0,0,P,w);return Y};eV.prototype.wt=function(){var Z=this.$Z,S=Z.length,b=this.$$,Y=this.$Z[b],P=(b+1)%S;
this.Mn();if(S!=1&&Z[P].Vl.Oh(Y.Vl)){var w=Y.qQ?parseInt(Y.qQ.split(",").pop()):30;if(w==0)w=16;if(P==0)this.li++;
if(this.yT==0||this.li<this.yT)this.aiR=setTimeout(this.ak7,w)}this.$$=P};eV.prototype.Xd=function(Z,S){if(Z<=0||S<=0)return;
var b=Math.floor(Z*s.Z()),Y=Math.floor(S*s.Z());this.a.a_=new b4(0,0,b,Y);this.OD.width=b;this.OD.height=Y;
this.OD.setAttribute("style","width:"+b/s.Z()+"px; height:"+Y/s.Z()+"px; display:block;");this.Mn()};
eV.prototype.UQ=function(Z){this.ml=Z.target;s.Tb(window,this.afj);s.Ju(window,this.a2g);this.JY=s.R6(Z,this.OD);
this.JY.x*=s.Z();this.JY.y*=s.Z();this.Vn=this.JY;this.O4=this.a.n.clone();if(this.wP&&this.ml==this.OD&&!this.oP)this.m(new d("mousedown"))};
eV.prototype.Sw=function(Z){var S=this.a,b=this.oP,Y=this.$Z[this.$$].Vl.clone();Y.c*=S.S;Y.v*=S.S;var P=s.R6(Z,this.OD);
P.x*=s.Z();P.y*=s.Z();this.Vn=P;if(this.wP&&this.ml==this.OD&&!b)this.m(new d("mousemove"));else if((b=="grab"||b==null)&&!S.a_.ls(Y)){var w=P.x-this.JY.x,f=P.y-this.JY.y;
S.n.x=this.O4.x+Math.round(w);S.n.y=this.O4.y+Math.round(f);this.m(new d("viewchange"))}};eV.prototype.LP=function(Z){s.Qe(window,this.afj);
s.zz(window,this.a2g);var S=this.oP;if(Z.detail>1){this.a.S=1;this.a.n.Ha(0,0);this.Mn()}if(this.wP&&this.ml==this.OD&&!this.oP)this.m(new d("mouseup"));
else{if(S=="zoom-in"||S=="zoom-out")this.vb(this.Vn,S=="zoom-in")}};eV.prototype.pI=function(){return this.a._2(this.Vn.x,this.Vn.y)};
function gX(){ij.call(this);this.aH=null;this.UI=null;this.Q3=null;this.gv=null;this.acW="";this.IV=[];
this.p_=0;this.AL=[];this.eG=0;this.W3=null;var Z=this.j=s.R("div",""),S=this.am$=s.R("div","form");
S.setAttribute("style","line-height:0; margin-bottom:0.5em;");Z.appendChild(S);var b=this.Ew=s.R("span");
S.appendChild(b);b.setAttribute("style","font-size:1.2em; font-weight:bold; margin-right:3em;");var Y=this.ai0=new ec([25,2,0]);
Y.F(!0);S.appendChild(Y.j);Y.i(s.E.L,this.WB,this);var P=this.DJ=new ec([25,2,1]);P.F(!0);S.appendChild(P.j);
P.i(s.E.L,this.WB,this);var w=new bE(" ");S.appendChild(w.j);var f=this.f5=new cY([25,1,1]);S.appendChild(f.j);
f.i(s.E.L,this.WB,this);this.tg=new aq(14);this.tg.a78(3);S.appendChild(this.tg.j);this.tg.parent=this;
this.tg.i(s.E.L,this.ajO,this);var h=this.aox=new fX([25,1,2],null,null,!0);S.appendChild(h.j);h.i("click",this.nb,this);
this.acC=this.amo.bind(this);this.cp=s.R("div","svggallery scrollable");Z.appendChild(this.cp);this.cp.addEventListener("scroll",this.akC.bind(this))}gX.prototype=new ij;
gX.prototype.na=function(Z){this.aiB=Z};gX.prototype.B=function(){this.Ew.textContent=aV.get([25,0]);
this.tg.B();this.ai0.B();this.DJ.B();this.f5.B();this.aox.B()};gX.prototype.Xd=function(Z,S){S-=26;this.aH=new ar(Z,S);
this.am$.setAttribute("style","width:"+Z+"px");this.cp.setAttribute("style","width:"+Z+"px; height:"+S+"px");
if(s.mO(this.j))this.WB()};gX.prototype.F=function(Z){this.UI=Z;this.WB()};gX.prototype.akC=function(Z){var S=this.cp;
if(S.scrollTop+S.clientHeight+10>=S.scrollHeight){this.WB(!0)}};gX.prototype.ajO=function(Z){this.Q3=null;
this.WB()};gX.prototype.amo=function(Z){if(Date.now()-this.eG<2e3)return;this.eG=Date.now();this.p_=this.AL.indexOf(Z.currentTarget);
var S=this.vW(this.UI.x,this.UI.y);if(S[1]){var b=S[1].largeImageURL,Y=new XMLHttpRequest;Y.responseType="arraybuffer";
Y.open("GET",b,!0);Y.onload=this.abK.bind(this);Y.send();return}this.nN(S)};gX.prototype.abK=function(Z){var S=Z.target.response,b=ab.fN(S),Y=ab.iZ(b),P=Y.Gk(S),w=this.vW(this.UI.x,this.UI.y,[S,P[0].Vl.c,P[0].Vl.v]);
this.nN(w)};gX.prototype.nN=function(Z){var S=Z[0],b=ab.fN(S),Y=ab.iZ(b),P=new gf("template.psd");Y.Gk(S,P);
var w=new d("tempready",!0);w.data={hp:P};this.m(w)};gX.prototype.nb=function(Z){var S=Z.target;this.IV=[];
this.WB()};gX.prototype.akD=function(Z){var S=JSON.parse(Z.target.response);this.gv=S.hits;this.WB()};
gX.prototype.WB=function(Z){if(this.UI==null||this.aH==null||this.aiB==null)return;if(this.aH.x<=0)return;
var S=this.UI.x,b=this.UI.y;if(Math.min(S,b)<50)return;if(Z!=!0){this.AL=[];s.Z9(this.cp);this.cp.scrollTop=0}if(this.AL.length>300)return;
var Y=Math.min(1,300/Math.max(S,b)),P=this.aH.clone();P.x-=20;var w=Math.max(1,Math.floor(P.x/(S*Y))),f=Math.max(1,Math.ceil(P.y/(b*Y)));
Y=P.x/w/S;var h=w*f;if(this.Q3==null){var Q=this.aiB.S9.tO();this.Q3=[];for(var e in Q){var l=Q[e],O=l[3];
if(!this.tg.xy(l))continue;if(l[5]==null||l[5].slice(0,2)=="gf")continue;this.Q3.push(l)}if(this.Q3.length==0)this.Q3.push(Q.DejaVuSans)}var m=this.DJ.u(),V=this.f5.u().trim();
this.f5.v3(m);if(m&&(this.gv==null||V!=this.acW)){var q=new XMLHttpRequest,K="https://pixabay.com/api/?image_type=photo"+(V==""?"":"&q="+encodeURIComponent(V))+"&per_page=200&page=1&key=10554583-a5eacb61c2e61105fdfb6eb88";
if(V=="")K+="&safesearch=true";if(V=="")K="plugins/gallery.json";q.open("GET",K,!0);q.onload=this.akD.bind(this);
q.onerror=function(j){console.log(j.target.response)};q.send();this.acW=V;return}Y*=(S*Y-5)/(S*Y);var z=this.AL.length;
for(var D=0;D<h;D++){var t=this.p_=z+D;if(this.IV[t]==null)this.IV[t]=Math.floor(Math.random()*4294967295);
var H=this.vW(Math.round(S*Y),Math.round(b*Y)),i=H[0];i=k.cP(new Uint8Array(i));var y=s.R("span");y.innerHTML=i;
this.AL.push(y);this.cp.appendChild(y);y.addEventListener("click",this.acC,!1)}};gX.prototype.vW=function(Z,S,b){var Y=this.DJ.u(),P=this.ai0.u(),w=Y&&this.gv.length!=0?this.gv:null;
if(P&&!Y)w=null;if(P&&Y&&(this.p_&1)==0)w=null;return iZ.i9(Z,S,this.IV[this.p_],this.Q3,b?b:w)};function dp(){ij.call(this);
this.j=s.R("div");this.hs=null;this.a5t=null;this.aZ=-1;this.AE={JPG:[{eX:new bS([12,52,0],0,100,"%",null,null,!0),Q0:70},{eX:new ec("attach metadata"),Q0:!1}],TIFF:[{eX:new ec("attach metadata"),Q0:!1}],WEBP:[{eX:new bS([12,52,0],0,100,"%",null,null,!0),Q0:70}],GIF:[{eX:new bS([12,52,0],0,100,"%",null,null,!0),Q0:100}],PNG:[{eX:new bS([12,52,0],0,100,"%",null,null,!0),Q0:100},{eX:new ec("don't use palettes"),Q0:!1}],PDF:[{eX:new cY([12,52,1]),Q0:""},{eX:new bS([12,52,0],0,100,"%",null,null,!0),Q0:100},{eX:new ec("rasterize all"),Q0:!1},{eX:new ec("rasterize text"),Q0:!1},{eX:new ec("vectorize text"),Q0:!1}],EMF:[{eX:new cY([12,52,1]),Q0:""},{eX:new ec("rasterize all"),Q0:!1},{eX:new ec("rasterize text"),Q0:!1},{eX:new ec("vectorize text"),Q0:!1}],SVG:[{eX:new ec("add raster graphics"),Q0:!0},{eX:new ec("add hidden layers"),Q0:!1},{eX:new ec("vectorize text"),Q0:!1},{eX:new ec("rasterize text"),Q0:!1},{eX:new ec("add layer names"),Q0:!0},{eX:new ec("pretty-print"),Q0:!0}],RAW:[{eX:new gT([12,72],["1","3","4"]),Q0:2},{eX:new gT([12,34],["8 Bits","16 Bits"]),Q0:0},{eX:new gT("Byte Order",["12-34","34-12"]),Q0:0}],anim:[{eX:new bS("Speed",10,800,"%",null,!0,!0),Q0:100},{eX:new c2("Repeat (0 = Forever)",0,10," \xD7",0,!1,!0),Q0:0},{eX:new ec("reverse frames"),Q0:!1},{eX:new ec("boomerang"),Q0:!1}],slcs:[{eX:new ec("As Slices"),Q0:!0}]};
for(var Z in this.AE){var S=this.AE[Z];for(var D=0;D<S.length;D++){S[D].eX.F(S[D].Q0);S[D].eX.i(s.E.L,this.yN,this)}}}dp.prototype=new ij;
dp.prototype.agA=function(){this.aZ=-1};dp.prototype.B=function(){for(var Z in this.AE)for(var D=0;D<this.AE[Z].length;
D++)this.AE[Z][D].eX.B()};dp.prototype.yN=function(){this.WB();this.m(new d(s.E.L,!1))};dp.prototype.WB=function(){var Z=this.hs,S=Z[0],b=Z[1],Y=Z[2],P=Z[3],w=this.AE[S];
if(w==null)w=[];else w=w.slice(0);if(b)w=w.concat(this.AE.anim);if(["GIF","PNG","JPG"].indexOf(S)!=-1&&Y)w=w.concat(this.AE.slcs);
if(S+" "+b+" "+P!=this.aZ){this.aZ=S+" "+b+" "+P;s.Z9(this.j);for(var D=0;D<w.length;D++){if(S=="PDF"&&P&&D==0)continue;
this.j.appendChild(w[D].eX.j);s.X3(this.j)}}var f=this.a5t=[];for(var D=0;D<w.length;D++)f.push(w[D].eX.u())};
dp.prototype.y3=function(Z,S,b,Y){this.hs=[Z,S,b,Y];this.WB()};dp.prototype.u=function(){return this.a5t.slice(0)};
function i9(){ij.call(this);this.j=s.R("span","fitem");this.yD=!1;this.P7=new fX("No",!1,"Cancel");this.NC=new fX("Yes",!1,"Confirm");
this.j.appendChild(this.P7.j);this.j.appendChild(this.NC.j);this.P7.i("click",this.K_,this);this.NC.i("click",this.K_,this);
this.B()}i9.prototype=new ij;i9.prototype.B=function(){this.P7.bl(s.ip("cross",null,"autoscale"));this.NC.bl(s.ip("checkmark",null,"autoscale"))};
i9.prototype.K_=function(Z){this.yD=Z.target==this.NC;this.m(new UIEvent("click"))};i9.prototype.u=function(){return this.yD};
function _(Z){ij.call(this);this.Ak=Z;this.j=s.R("div","");this.AH=[];this.a79=[]}_.prototype=new ij;
_.prototype.nK=function(Z){};_.prototype.RX=function(){return!1};_.prototype.Xd=function(Z,S){};_.prototype.na=function(Z,S){};
_.prototype.Oj=function(Z){};_.prototype.F=function(Z,S,b,Y,P,w){var f=[],h=this.AH,Q=0,e=cL.jC["s"+this.Ak];
e?e(Z,f,w):this.$t(Z,f,w);for(var D=0;D<h.length;D++)if(!(h[D]instanceof bE))h[D].F(f[Q++])};_.prototype.u=function(){var Z=cL.VS(this.Ak),S=[],b=this.AH,Y=0;
for(var D=0;D<b.length;D++)if(!(b[D]instanceof bE))S[Y++]=b[D].u();var P=cL.jC["g"+this.Ak];P?P(Z,S):this.jX(Z,S);
return Z};_.prototype.XF=function(Z){};_.prototype.SI=function(Z){var S=this.a79;for(var D=0;D<S.length;
D+=2){var b=this.AH[S[D]],Y=this.AH[S[D+1]],P=b.u(),w=Y.u();if(Z.target==b)Y.F(Math.max(P,w));else b.F(Math.min(P,w))}this.m(new d(s.E.L))};
_.prototype.B=function(){for(var D=0;D<this.AH.length;D++)this.AH[D].B()};_.prototype.wi=function(Z){s.zy(this.j,"form");
var S=this.AH;for(var D=0;D<S.length;D++){var b=S[D];b.parent=this;b.i(s.E.L,this.SI,this);this.j.appendChild(b.j);
if(b instanceof ec&&S[D+1]instanceof gy)continue;if(Z&&Z.indexOf(D)!=-1)s.Sg(this.j);else s.X3(this.j)}};
_.prototype.NK=function(){return!1};_.prototype.Os=function(Z,S,b,Y,P){};_.prototype.Zq=function(Z,S,b,Y,P){};
_.prototype.Xa=function(Z,S,b,Y,P){};_.prototype.jX=function(Z,S){};_.prototype.$t=function(Z,S){};_.Bokh=function(){_.call(this,"Bokh");
this.AH=[new gl("Depth Map",["A","b"]),new bS("Focal Distance",0,255),new gl([12,76,1],"Triangle (3),Square (4),Pentagon (5),Hexagon (6),Heptagon (7),Octagon (8)".split(",")),new bS([12,56],0,100),new bS([12,15],0,360),new bS([12,2],0,100),new bS([4,13],0,255),new bS([24,6],0,100),new gT([12,58],[[12,59,0],[12,59,1]]),new ec([12,60])];
this.wi([4,6])};_.Bokh.prototype=new _;_.Bokh.prototype.$t=function(Z,S,b){var Y=[[22,5,0],[6,5,3],[6,2]],P=Z.BkDi.v.BtDi,w=Z.BkDc,f=0;
if(P=="BeIn")f=0;else if(P=="BeIt"&&w.v.BtDc=="BeCt")f=1;else if(P=="BeIt"&&w.v.BtDc=="BeCm")f=2;else f=3+w.v;
for(var D=0;D<b[1].length;D++)Y.push(b[1][D].name);this.AH[0].vL(Y,[3]);S[0]=f;S[1]=Z.BkDp.v;S[2]=parseInt(Z.BkIs.v.BtIs.slice(3))-3;
S[3]=Z.BkIb.v;S[4]=Z.BkIr.v;S[5]=Z.BkSb.v;S[6]=Z.BkSt.v;S[7]=Z.BkNa.v;S[8]=Z.BkNt.v.BtNt=="BeNu"?0:1;
S[9]=Z.BkNm.v};_.Bokh.prototype.jX=function(Z,S){var b;if(S[0]==0){b="BeIn";delete Z.BkDc}else if(S[0]<3){b="BeIt";
Z.BkDc={t:"enum",v:{BtDc:["BeCt","BeCm"][S[0]-1]}}}else{b="BeIa";Z.BkDc={t:"long",v:S[0]-3}}Z.BkDi.v.BtDi=b;
Z.BkDp.v=S[1];Z.BkIs.v.BtIs="BeS"+(3+S[2]);Z.BkIb.v=S[3];Z.BkIr.v=S[4];Z.BkSb.v=S[5];Z.BkSt.v=S[6];Z.BkNa.v=S[7];
Z.BkNt.v.BtNt=["BeNu","BeNg"][S[8]];Z.BkNm.v=S[9]};_.oilPaint=function(){_.call(this,"oilPaint");this.AH=[new bS([12,56],.1,10,"px",!0),new bS("Cleanliness",0,10,"px",!0),new bS([12,38],.1,10,null,!0),new bS("Bristle Detail",0,10,null,!0),new ec("Lighting"),new bS("Shine",0,10,null,!0),new eP([12,15])];
this.wi()};_.oilPaint.prototype=new _;_.oilPaint.prototype.$t=function(Z,S){var b="stylization cleanliness brushScale microBrush lightingOn specularity".split(" ");
for(var D=0;D<b.length;D++)S[D]=Z[b[D]].v;S[6]=Z.LghD.v};_.oilPaint.prototype.jX=function(Z,S){var b="stylization cleanliness brushScale microBrush lightingOn specularity".split(" ");
for(var D=0;D<b.length;D++)Z[b[D]].v=S[D];Z.LghD.v=S[6].oc};_.TrcC=function(){_.call(this,"TrcC");this.AH=[new bS("Level",0,255),new gT([12,69],[[19,4,1],[19,4,0]])];
this.wi()};_.TrcC.prototype=new _;_.TrcC.prototype.$t=function(Z,S){S[0]=Z.Lvl.v;S[1]=["Lwr","Upr"].indexOf(Z.Edg.v.CntE)};
_.TrcC.prototype.jX=function(Z,S){Z.Lvl.v=S[0];Z.Edg.v.CntE=["Lwr","Upr"][S[1]]};_["Dfs "]=function(){_.call(this,"Dfs ");
this.AH=[new gT([12,36],[[15,10,0],[15,10,6],[15,10,11],"Anisotropic"])];this.wi()};_["Dfs "].prototype=new _;
_["Dfs "].prototype.$t=function(Z,S){S[0]=["Nrml","DrkO","LghO","anisotropic"].indexOf(Z.Md.v.DfsM)};
_["Dfs "].prototype.jX=function(Z,S){Z.Md.v.DfsM=["Nrml","DrkO","LghO","anisotropic"][S[0]]};_.Embs=function(){_.call(this,"Embs");
this.AH=[new eP([12,15]),new bS([12,42],1,100,"px"),new bS([12,57],1,500,"%")];this.wi()};_.Embs.prototype=new _;
_.Embs.prototype.$t=function(Z,S){S[0]=Z.Angl.v;S[1]=Z.Hght.v;S[2]=Z.Amnt.v};_.Embs.prototype.jX=function(Z,S){Z.Angl.v=S[0].oc;
Z.Hght.v=S[1];Z.Amnt.v=S[2]};_["Wnd "]=function(){_.call(this,"Wnd ");this.AH=[new gT([12,32],["Wind","Blast","Stagger"]),new gT([12,33],["From the Right","From the Left"])];
this.wi()};_["Wnd "].prototype=new _;_["Wnd "].prototype.$t=function(Z,S){S[0]=["Wnd","Blst","Stgr"].indexOf(Z.WndM.v.WndM);
S[1]=["Left","Rght"].indexOf(Z.Drct.v.Drct)};_["Wnd "].prototype.jX=function(Z,S){Z.WndM.v.WndM=["Wnd","Blst","Stgr"][S[0]];
Z.Drct.v.Drct=["Left","Rght"][S[1]]};_.lightFilterGradient=function(){_.call(this,"lightFilterGradient");
this.AH=[new bS([24,3,1],0,100,"px",1,!0),new bS([12,38],0,200,"%"),new ec([4,11]),new bS("High",0,100,"%"),new bS("Medium",0,100,"%"),new bS("Low",0,100,"%")];
this.wi()};_.lightFilterGradient.prototype=new _;_.lightFilterGradient.prototype.$t=function(Z,S){S[0]=Z.blur.v;
S[1]=Z.textureScale.v*100;S[2]=Z.Scl.v==-1;var b=Z.Dtl.v;S[3]=b[0].v*100;S[4]=b[1].v*100;S[5]=b[2].v*100};
_.lightFilterGradient.prototype.jX=function(Z,S){Z.blur.v=S[0];Z.textureScale.v=S[1]/100;Z.Scl.v=S[2]?-1:1;
var b=Z.Dtl.v;b[0].v=S[3]/100;b[1].v=S[4]/100;b[2].v=S[5]/100};_.LnsF=function(){_.call(this,"LnsF");
this.AH=[new bS([12,2],10,300,"%"),new gT([12,44],["Lens 1","Lens 2","Lens 3","Lens 4"]),new bS("Position X",0,100,"%"),new bS("Position Y",0,100,"%")];
this.wi()};_.LnsF.prototype=new _;_.LnsF.prototype.$t=function(Z,S){S[0]=Z.Brgh.v;S[1]=["Zm","Nkn","Nkn1","PnVs"].indexOf(Z.Lns.v.Lns);
var b=Z.FlrC.v;S[2]=Math.round(b.Hrzn.v*100);S[3]=Math.round(b.Vrtc.v*100)};_.LnsF.prototype.jX=function(Z,S){Z.Brgh.v=S[0];
Z.Lns.v.Lns=["Zm","Nkn","Nkn1","PnVs"][S[1]];var b=Z.FlrC.v;b.Hrzn.v=S[2]/100;b.Vrtc.v=S[3]/100};_.LnsF.prototype.NK=function(){return!0};
_.LnsF.prototype.Os=function(Z,S,b,Y,P){this.dE=!0;this.hA(Z,P)};_.LnsF.prototype.Zq=function(Z,S,b,Y,P){if(!this.dE)return;
this.hA(Z,P)};_.LnsF.prototype.Xa=function(Z,S,b,Y,P){this.dE=!1};_.LnsF.prototype.hA=function(Z,S){var b=Z.a._2(S.x,S.y);
function Y(P,w){return Math.round(Math.max(0,Math.min(100,100*P/w)))}this.AH[2].F(Y(b.x,Z.c));this.AH[3].F(Y(b.y,Z.v));
this.SI()};_.blendOptions=function(){_.call(this,"blendOptions");this.AH.push(new gl([12,19,0],is.dd,!1,is.JL));
this.AH.push(new bS([12,0],0,100,"%"));this.wi()};_.blendOptions.prototype=new _;_.blendOptions.prototype.$t=function(Z,S){S[0]=is.JO.indexOf(Z.Md.v.BlnM);
S[1]=Z.Opct.v.val};_.blendOptions.prototype.jX=function(Z,S){Z.Md.v.BlnM=is.JO[S[0]];Z.Opct.v.val=S[1]};
_.LnCr=function(){_.call(this,"LnCr");this.AH=[new bS([12,57],-100,100),new bS([12,38],10,150,"%")];
this.wi()};_.LnCr.prototype=new _;_.LnCr.prototype.$t=function(Z,S){S[0]=Z.LnIa.v;S[1]=Z.LnSi.v};_.LnCr.prototype.jX=function(Z,S){Z.LnIa.v=S[0];
Z.LnSi.v=S[1]};_.adaptCorrect=function(){_.call(this,"adaptCorrect");var Z=gu;this.AH=[new bE([19,6,0]),new Z([12,57],0,100,"%"),new Z("Tone",0,100,"%"),new Z([12,56],0,200,"px"),new bE([19,6,2]),new Z([12,57],0,100,"%"),new Z("Tone",0,100,"%"),new Z([12,56],0,200,"px"),new bE([3]),new Z([13,0],-100,100)];
this.wi([3,7])};_.adaptCorrect.prototype=new _;_.adaptCorrect.prototype.$t=function(Z,S){var b=Z.sdwM.v;
S[0]=b.Amnt.v.val;S[1]=b.Wdth.v.val;S[2]=b.Rds.v;var b=Z.hglM.v;S[3]=b.Amnt.v.val;S[4]=b.Wdth.v.val;
S[5]=b.Rds.v;S[6]=Z.ClrC.v};_.adaptCorrect.prototype.jX=function(Z,S){var b=Z.sdwM.v;b.Amnt.v.val=S[0];
b.Wdth.v.val=S[1];b.Rds.v=S[2];var b=Z.hglM.v;b.Amnt.v.val=S[3];b.Wdth.v.val=S[4];b.Rds.v=S[5];Z.ClrC.v=S[6]};
_.boxblur=function(){_.call(this,"boxblur");this.AH=[new bS([12,56],1,200," px")];this.wi()};_.boxblur.prototype=new _;
_.boxblur.prototype.$t=function(Z,S){S[0]=Z.Rds.v.val};_.boxblur.prototype.jX=function(Z,S){Z.Rds.v.val=S[0]};
_.GsnB=function(){_.call(this,"GsnB");this.AH=[new bS([12,56],.1,400,"px",1,!0)];this.wi()};_.GsnB.prototype=new _;
_.MtnB=function(){_.call(this,"MtnB");this.AH=[new eP([12,15]),new bS([12,28],1,100," px")];this.wi()};
_.MtnB.prototype=new _;_.RdlB=function(){_.call(this,"RdlB");this.AH=[new bS([12,57],1,100),new gT([12,36],["Spin","Zoom"]),new gu("Off X",0,1,null,2),new gu("Off Y",0,1,null,2)];
this.wi()};_.RdlB.prototype=new _;_.RdlB.prototype.$t=function(Z,S){S[0]=Z.Amnt.v;S[1]=["Spn","Zm"].indexOf(Z.BlrM.v.BlrM);
S[2]=Z.Cntr.v.Hrzn.v;S[3]=Z.Cntr.v.Vrtc.v};_.RdlB.prototype.jX=function(Z,S){Z.Amnt.v=S[0];Z.BlrM.v.BlrM=["Spn","Zm"][S[1]];
Z.Cntr.v.Hrzn.v=S[2];Z.Cntr.v.Vrtc.v=S[3]};_.Dspl=function(){_.call(this,"Dspl");this.AH=[new gl([6,36,3],["a","b"]),new bS([22,4,0],-100,100,"px"),new bS([22,4,1],-100,100,"px"),new gl([24,18,0],[[24,18,3],[24,18,2]])];
this.wi()};_.Dspl.prototype=new _;_.Dspl.prototype.$t=function(Z,S,b){this.akX=[];this.b3=[];var Y=-1,P=b?b[0]:null;
if(P==null)P=this.a8s;else this.a8s=P;if(P)for(var D=0;D<P.length;D++){var w=P[D];this.akX.push(w.JB.trim());
this.b3.push(w.sx);if(w.sx==Z.DspF.v.pth)Y=D}this.AH[0].vL(this.akX);S[0]=Y==-1?0:Y;S[1]=Z.HrzS.v;S[2]=Z.VrtS.v;
S[3]=["WrpA","RptE"].indexOf(Z.UndA.v.UndA)};_.Dspl.prototype.jX=function(Z,S){if(this.b3.length==0)return;
Z.DspF.v.pth=this.b3[S[0]];Z.HrzS.v=S[1];Z.VrtS.v=S[2];Z.UndA.v.UndA=["WrpA","RptE"][S[3]]};_.Pnch=function(){_.call(this,"Pnch");
this.AH=[new bS([12,57],-100,100,"%")];this.wi()};_.Pnch.prototype=new _;_["Plr "]=function(){_.call(this,"Plr ");
this.AH=[new gT(null,["Rect to Polar","Polar to Rect"])];this.wi()};_["Plr "].prototype=new _;_.Rple=function(){_.call(this,"Rple");
this.AH=[new bS([12,57],-999,999),new gl([12,14,0],[[19,8,0],[19,8,1],[19,8,2]])];this.wi()};_.Rple.prototype=new _;
_["Shr "]=function(){_.call(this,"Shr ");this.AH=[new fO(!0,!0),new gl([24,18,0],[[24,18,3],[24,18,2]])];
this.wi()};_["Shr "].prototype=new _;_["Shr "].prototype.$t=function(Z,S){var b=new fR(0,255/127,255/127,0,-2,128),Y=JSON.parse(JSON.stringify(Z.ShrP.v));
T.$F.A(Y,b);S[0]=Y;S[1]=["WrpA","RptE"].indexOf(Z.UndA.v.UndA)};_["Shr "].prototype.jX=function(Z,S){var b=new fR(0,255/127,255/127,0,-2,128);
b.oN();T.$F.A(S[0],b);Z.ShrP.v=S[0];Z.ShrE.v=S[0].length-1;Z.UndA.v.UndA=["WrpA","RptE"][S[1]]};_.Sphr=function(){_.call(this,"Sphr");
this.AH=[new bS([12,57],-100,100),new gl([12,36],["Normal",[22,4,0],[22,4,1]])];this.wi()};_.Sphr.prototype=new _;
_.Sphr.prototype.$t=function(Z,S){S[0]=Z.Amnt.v;S[1]=["Nrml","HrzO","VrtO"].indexOf(Z.SphM.v.SphM)};
_.Sphr.prototype.jX=function(Z,S){Z.Amnt.v=S[0];Z.SphM.v.SphM=["Nrml","HrzO","VrtO"][S[1]]};_.Twrl=function(){_.call(this,"Twrl");
this.AH=[new bS([12,15],-999,999)];this.wi()};_.Twrl.prototype=new _;_.Wave=function(){_.call(this,"Wave");
this.a79=[1,2,3,4];this.AH=[new bS("Number of Generators",1,100),new gu("Min Length",1,999),new gu("Max Length",1,999),new gu("Min Ampl.",1,999),new gu("Max Ampl.",1,999),new gu("Scale X",1,100,"%"),new gu("Scale Y",1,100,"%"),new gT([12,44],["Sine","Triangle",[12,93,3]]),new gl([24,18,0],[[24,18,3],[24,18,2]]),new cY("Randomizer Seed")];
this.wi()};_.Wave.prototype=new _;_.Wave.prototype.$t=function(Z,S){S[0]=Z.NmbG.v;S[1]=Z.WLMn.v;S[2]=Z.WLMx.v;
S[3]=Z.AmMn.v;S[4]=Z.AmMx.v;S[5]=Z.SclH.v;S[6]=Z.SclV.v;S[7]=["WvSn","WvTr","WvSq"].indexOf(Z.Wvtp.v.Wvtp);
S[8]=["WrpA","RptE"].indexOf(Z.UndA.v.UndA);S[9]=Z.RndS.v};_.Wave.prototype.jX=function(Z,S){Z.NmbG.v=S[0];
Z.WLMn.v=S[1];Z.WLMx.v=S[2];Z.AmMn.v=S[3];Z.AmMx.v=S[4];Z.SclH.v=S[5];Z.SclV.v=S[6];Z.Wvtp.v.Wvtp=["WvSn","WvTr","WvSq"][S[7]];
Z.UndA.v.UndA=["WrpA","RptE"][S[8]];var b=parseInt(S[9]);if(isNaN(b))b=248325464;b=Math.max(0,Math.min(268435455,b));
Z.RndS.v=b;this.AH[9].F(b)};_.surfaceBlur=function(){_.call(this,"surfaceBlur");this.AH=[new bS([12,56],1,200," px"),new bS([4,13],1,255," px")];
this.wi()};_.surfaceBlur.prototype=new _;_.surfaceBlur.prototype.$t=function(Z,S){S[0]=Z.Rds.v.val;S[1]=Z.Thsh.v};
_.surfaceBlur.prototype.jX=function(Z,S){Z.Rds.v.val=S[0];Z.Thsh.v=S[1]};_.AdNs=function(){_.call(this,"AdNs");
this.AH=[new bS([12,57],0,200," %"),new gl([12,58],[[12,59,1],[12,59,0]]),new ec([12,60])];this.wi()};
_.AdNs.prototype=new _;_.DstS=function(){_.call(this,"DstS");this.AH=[new bS([12,56],1,200," px"),new bS([4,13],1,255," px")];
this.wi()};_.DstS.prototype=new _;_["Mdn "]=function(){_.call(this,"Mdn ");this.AH=[new bS([12,56],1,200," px")];
this.wi()};_["Mdn "].prototype=new _;_["Mdn "].prototype.$t=function(Z,S){S[0]=Z.Rds.v.val};_["Mdn "].prototype.jX=function(Z,S){Z.Rds.v.val=S[0]};
_.ClrH=function(){_.call(this,"ClrH");this.AH=[new bS([12,56],4,100," px")];for(var D=1;D<4;D++)this.AH.push(new bS("Angle "+D,0,90," \xB0"));
this.wi()};_.ClrH.prototype=new _;_.ClrH.prototype.$t=function(Z,S){S[0]=Z.Rds.v;for(var D=1;D<4;D++)S[D]=Z["Ang"+D].v};
_.ClrH.prototype.jX=function(Z,S){Z.Rds.v=S[0];for(var D=1;D<4;D++)Z["Ang"+D].v=S[D]};_.ClrH.prototype.B=function(){var Z=this.AH;
Z[0].B();for(var D=1;D<4;D++)Z[D].bl(aV.get([12,15])+" "+D)};_.Crst=function(){_.call(this,"Crst");this.AH=[new bS([12,61],3,100," px")];
this.wi()};_.Crst.prototype=new _;_.Crst.prototype.$t=function(Z,S){S[0]=Z.ClSz.v};_.Crst.prototype.jX=function(Z,S){Z.ClSz.v=S[0]};
_.Mztn=function(){_.call(this,"Mztn");this.AH.push(new gl([12,44],"Fine Dots,Medium Dots,Grainy Dots,Coarse Dots,Short Lines,Medium Lines,Long Lines,Short Strokes,Medium Strokes,Long Strokes".split(","),null,[4,3,3]));
this.b3="FnDt MdmD GrnD CrsD ShrL MdmL LngL ShSt MdmS LngS".split(" ");this.wi()};_.Mztn.prototype=new _;
_.Mztn.prototype.$t=function(Z,S){S[0]=this.b3.indexOf(Z.MztT.v.MztT)};_.Mztn.prototype.jX=function(Z,S){Z.MztT.v.MztT=this.b3[S[0]]};
_["Msc "]=function(){_.call(this,"Msc ");this.AH=[new bS([12,61],2,200," px")];this.wi()};_["Msc "].prototype=new _;
_["Msc "].prototype.$t=function(Z,S){S[0]=Z.ClSz.v.val};_["Msc "].prototype.jX=function(Z,S){Z.ClSz.v.val=S[0]};
_.Pntl=function(){_.call(this,"Pntl");this.AH=[new bS([12,61],3,100," px")];this.wi()};_.Pntl.prototype=new _;
_.Pntl.prototype.$t=function(Z,S){S[0]=Z.ClSz.v};_.Pntl.prototype.jX=function(Z,S){Z.ClSz.v=S[0]};_.smartSharpen=function(){_.call(this,"smartSharpen");
this.AH=[new bS([12,57],1,200,"%"),new bS([12,56],0,200,"px",1,!0)];this.wi()};_.smartSharpen.prototype=new _;
_.smartSharpen.prototype.$t=function(Z,S){S[0]=Z.Amnt.v.val;S[1]=Z.Rds.v.val};_.smartSharpen.prototype.jX=function(Z,S){Z.Amnt.v.val=S[0];
Z.Rds.v.val=S[1]};_.UnsM=function(){_.call(this,"UnsM");this.AH=[new bS([12,57],1,200," %"),new bS([12,56],.1,400,"px",1,!0),new bS([4,13],0,255," ")];
this.wi()};_.UnsM.prototype=new _;_.HghP=function(){_.call(this,"HghP");this.AH=[new bS([12,56],.1,400,"px",1,!0)];
this.wi()};_.HghP.prototype=new _;_["Mxm "]=function(){_.call(this,"Mxm ");this.AH=[new bS([12,56],1,200," px")];
this.wi()};_["Mxm "].prototype=new _;_["Mnm "]=function(){_.call(this,"Mnm ");this.AH=[new bS([12,56],1,200," px")];
this.wi()};_["Mnm "].prototype=new _;_.Ofst=function(){_.call(this,"Ofst");this.AH=[new bS([22,4,0],-1024,1024," px"),new bS([22,4,1],-1024,1024," px"),new gl([24,18,0],[[24,18,2],[24,18,1],[24,18,3]])];
this.wi()};_.Ofst.prototype=new _;_.Rept=function(){_.call(this,"Rept");this.AH=[new gu([12,38],1,300," %"),new gu("Row Shift",-50,50," %"),new gu("Space X",-99,200," %"),new gu("Space Y",-99,200," %"),new ec([4,16,2]),new eP([12,15])];
this.wi()};_.Rept.prototype=new _;_.Rept.prototype.$t=function(Z,S){S[0]=Z.Scl.v.val;S[1]=Z.Rsft.v.val;
S[2]=Z.SpcX.v.val;S[3]=Z.SpcY.v.val;S[4]=Z.SpcC.v;S[5]=Z.Angl.v};_.Rept.prototype.jX=function(Z,S){Z.Scl.v.val=S[0];
Z.Rsft.v.val=S[1];Z.SpcX.v.val=S[2];Z.SpcY.v.val=S[3];Z.SpcC.v=S[4];Z.Angl.v=S[5].oc;return Z};_.Ctoa=function(){_.call(this,"Ctoa");
this.AH=[new bE([13,0]),new gy(!0),new bS(["VAR0 VAR1","Transparency",[4,13]],0,100," %"),new bS(["VAR0 VAR1",[12,0],[4,13]],0,100," %")];
this.wi()};_.Ctoa.prototype=new _;_.Ctoa.prototype.$t=function(Z,S){S[0]=Z.Clr.v;S[1]=Z.Trsp.v.val;S[2]=Z.Opct.v.val};
_.Ctoa.prototype.jX=function(Z,S){Z.Clr.v=S[0];Z.Trsp.v.val=S[1];Z.Opct.v.val=S[2]};_.LqFy=function(){_.call(this,"LqFy");
this.xg=!1;this.cn=null;this.ac7=null;this.T=0;this.Yr={fM:[[{T:{id:0,name:[24,1,0,1,0],z2:"liq/smudge"}}],[{T:{id:1,name:[24,1,0,1,1],z2:"liq/reconstruct"}}],[{T:{id:2,name:[24,1,0,1,2],z2:"liq/smooth"}}],[{T:{id:3,name:[24,1,0,1,3],z2:"liq/twirl"}}],[{T:{id:4,name:[24,1,0,1,4],z2:"liq/shrink"}}],[{T:{id:5,name:[24,1,0,1,5],z2:"liq/blow"}}],[{T:{id:6,name:[24,1,0,1,6],z2:"liq/pleft"}}]],keys:[]};
this.c1=new cP(this.Yr,!1);this.c1.E4(0);this.c1.i(s.E.P,this.aee,this);this.SH=d6.H0();this.t0=null;
this.vo=[];this.g_=-1;this.LI=null;this.afA=null;this.OY=null;this.Ng=null;this.p9=null;var Z=s.R("div","flexrow");
this.bz=Z;this.j.appendChild(Z);Z.appendChild(this.c1.j);this.view=new eV(!0);this.view.Xd(100,100);
this.view.i("mousedown",this.UQ,this);this.view.i("mousemove",this.Sw,this);this.view.i("mouseup",this.LP,this);
this.view.i("zoom",this.uz,this);Z.appendChild(this.view.j);var S=s.R("div","form");Z.appendChild(S);
this.k0=S;S.style.width="230px";this.x1=[new bS([12,14,0],0,1e3,null,!1,!0),new bS([12,74],0,100,null,!1,!1),new bS([12,84],0,100,null,!1,!1),new ec([12,46]),new bS([12,0],0,100,null,!1,!1)];
var b=this.SH.Brsh.v;b.Dmtr.v.val=100;var Y=[100,50,100,!1,100];for(var D=0;D<this.x1.length;D++){var P=this.x1[D];
P.F(Y[D]);P.i(s.E.L,this.a77,this);S.appendChild(P.j)}var w=new fX("Reset",!0,null,!0);w.i("click",this.nb,this);
S.appendChild(w.j);this.AQ=new ij;this.AQ.j=s.R("div","floatcont");this.sM=new fX("Menu",!1,null,!0);
this.sM.i("click",this.aio,this);var f=this.sM.j;f.setAttribute("style","position:absolute; right:13px; top:47px")};
_.LqFy.prototype=new _;_.LqFy.prototype.RX=function(){return!0};_.LqFy.prototype.nK=function(Z){this.k0.appendChild(Z)};
_.LqFy.prototype.aio=function(Z){var S=this.sM.j.getBoundingClientRect();this.AQ.j.appendChild(this.k0);
var b=new d(s.E.P,!0);b.data={e:s.U.Gc,Bq:this.AQ,x:S.right+S.width-290,y:S.top+S.height};this.m(b)};
_.LqFy.prototype.XF=function(Z){this.xg=Z.q(U.G_);var S=G.px.Cq(this.SH,Z);if(S!=null){this.SH=S;this.uz();
this.x1[0].F(S.Brsh.v.Dmtr.v.val)}else if(Z.q(U.cD)&&Z.q(U.ty)){var b=this.vo;if(Z.q(U.Lo)){if(this.g_+1<b.length)this.g_++}else if(this.g_>0)this.g_--;
this.t0.map=b[this.g_].slice(0);this.T2(null)}else this.view.XF(Z)};_.LqFy.prototype.aee=function(Z){if(Z.data.e==s.U.cB){this.T=Z.data.T;
this.c1.E4(this.T)}};_.LqFy.prototype.a77=function(Z){var S=Z.currentTarget,D=this.x1.indexOf(S),b=this.SH.Brsh.v;
if(D==0){b.Dmtr.v.val=S.u();this.uz()}if(D>2)this.T2(null)};_.LqFy.prototype.DQ=function(){var Z=this.vo;
this.g_++;Z[this.g_]=this.t0.map.slice(0);while(Z.length>this.g_+1)Z.pop();while(Z.length>50){Z=Z.slice(1);
this.g_--}};_.LqFy.prototype.UQ=function(Z){this.Tg();this.cn=this.view.pI();this.ac7=new ar(0,0);this.i(s.E.J1,this.C0,this)};
_.LqFy.prototype.Sw=function(Z){var S=this.view.pI(),b=new ar(S.x-this.cn.x,S.y-this.cn.y);if(this.T==0||this.T==6)this.lS(b);
this.cn=S};_.LqFy.prototype.LP=function(Z){this.DQ();this.Tg()};_.LqFy.prototype.Tg=function(){if(this.vw(s.E.J1,this.C0))this.removeEventListener(s.E.J1,this.C0,this)};
_.LqFy.prototype.C0=function(Z){if(this.T!=0&&this.T!=6)this.lS(new ar(0,0))};_.LqFy.prototype.lS=function(Z){var S=this.t0,b=S.Yu/this.LI.c,Y=this.cn,P=this.SH.Brsh.v,w=P.Dmtr.v.val,f=Date.now(),h=S.Yu,Q=S.XE,e=Math.sqrt(Z.x*Z.x+Z.y*Z.y),l=Math.max(1,Math.ceil(e/2)),O=Z.x/l,m=Z.y/l,V=Y.clone(),q=this.T,K=this.x1[1].u()/100,z=this.x1[2].u()/100,t=[.005,.015,0,0,.2,.2,.01,.01,.05,.35,.1,.1,.005,.015],H=t[q*2],i=t[q*2+1],y=(1-K)*H+K*i,j=w*b/2;
for(var D=0;D<l;D++){var J=[];V.x+=O;V.y+=m;T.Pq.am5(S.map,h,Q,q,V.x*b,V.y*b,j,K,z,O*b,m*b,J,this.xg);
T.Pq.alq(h,Q,S.map,J,2*y*z)}var A=new b4(0,0,h,Q),a=new b4(Y.x*b,Y.y*b,0,0);a.lg(w*b*.5,w*b*.5);var I=a.clone();
I.offset(Z.x*b,Z.y*b);a=a.VK(I);var E=new b4(a.x/b,a.y/b,a.c/b,a.v/b);E=T.z.gO(E).Yz(this.LI);this.T2(E)};
_.LqFy.prototype.uz=function(){var Z=b6.vz(this.SH,null,this.view.Lt().S);this.view.gk(Z)};_.LqFy.prototype.F=function(Z,S,b,Y,P){b=b.clone();
if(S==null)return;if(!Y.Oh(b)){var w=b.VK(Y),f=T.f(w.X()*4);T.uH(S,b,f,w);S=f;b=w}b.x=b.y=0;this.OY=S;
this.afA=P;this.p9=S.slice(0);this.Ng=S.slice(0);this.LI=b;this.t0=bG.Vq(new Uint8Array(Z.LqMe.v).buffer);
var h=b.c,Q=b.v;if(this.t0.Yu/h<.22){this.t0={Yu:Math.floor(h/4),XE:Math.floor(Q/4)};this.t0.map=new Float32Array(this.t0.Yu*this.t0.XE*2)}this.vo=[];
this.g_=-1;this.DQ();this.T2(null);this.uz()};_.LqFy.prototype.u=function(){this.Tg();var Z=cL.VS("LqFy"),S=new Uint8Array(bG.TG(this.t0)),b=[];
for(var D=0;D<S.length;D++)b.push(S[D]);Z.LqMe.v=b;return Z};_.LqFy.prototype.Xd=function(Z,S){this.c1.Xd(Z,S);
var b=this.sM.j,Y=this.k0;this.bz.appendChild(Y);this.bz.appendChild(b);if(Z>450){Y.style.marginLeft="1em";
this.bz.removeChild(b);this.view.Xd(Z-238-45,S)}else{Y.style.marginLeft="";this.bz.removeChild(Y);this.view.Xd(Z-40,S)}};
_.LqFy.prototype.B=function(){this.c1.B();for(var D=0;D<this.x1.length;D++)this.x1[D].B()};_.LqFy.prototype.nb=function(){this.Tg();
this.t0.map.fill(0);this.DQ();this.T2(null)};_.LqFy.prototype.T2=function(Z){var S=this.LI,b=this.OY,Y=this.p9,P=this.t0;
T.Pq.Jv(b,this.Ng,S.c,S.v,Z,P.map,P.Yu,P.XE,0);if(this.x1[3].rJ()){T.uH(this.afA,S,Y,S,Z?Z:S);T.p.xJ("norm",this.Ng,S,Y,S,Z?Z:S,this.x1[4].u()/100)}else T.Bv(this.Ng,Y);
this.view.F([{Vl:S,data:Y.buffer}])};_.GEfc=function(){_.call(this,"GEfc");this.cq=0;this.ys=0;this.OY=null;
this.p9=null;this.LI=null;this.W3=null;this.gB=null;this.LQ=0;var Z=s.R("div","flexrow");this.bz=Z;this.j.appendChild(Z);
this.view=new eV;this.view.Xd(100,100);Z.appendChild(this.view.j);this.Uw="";this.Xk=270;var S=this.aj_=s.R("div","form scrollable");
Z.appendChild(S);S.setAttribute("style","width:"+this.Xk+"px; margin-left:1em");var b=s.R("div","form");
Z.appendChild(b);b.setAttribute("style","width:230px; margin-left:1em");this.qp={};for(var Y in cV.names){var P=new _.GEfc.Uq(Y);
this.qp[Y]=P;P.i(s.E.L,this.zD,this)}this.Vz=s.R("div");b.appendChild(this.Vz);this.Vz.style.marginBottom="1.5em";
this.Mw=s.R("div");this.Mw.style.height="16.3em";b.appendChild(this.Mw);s.X3(b);this.Tv=s.R("div","lpbody scrollable");
this.UD=s.R("div","lpfoot");b.appendChild(this.Tv);b.appendChild(this.UD);this.i("click",this.afv,this);
this.Qb=[];h2.c_([[5,3],[5,4]],this.Qb,this.UD,this.yQ.bind(this))};_.GEfc.prototype=new _;_.GEfc.prototype.RX=function(){return!0};
_.GEfc.prototype.nK=function(Z){this.Vz.appendChild(Z)};_.GEfc.prototype.na=function(Z,S){this.W3=Z};
_.GEfc.prototype.Xd=function(Z,S){this.cq=Z;this.ys=S;this.aj_.style.height=S+"px";this.view.Xd(Z-240-this.Xk-10,S);
this.Tv.style.height=S-this.Mw.getBoundingClientRect().height-106+"px"};_.GEfc.prototype.a1D=function(){var Z=ab.w5.get("img/beach",!0)[0],S=Z.Vl,b=this.aj_,Y=Math.floor(s.Z()*(this.Xk-40)/3),P=~~(Y*.7),w=new b4(0,0,Y,P),f=T.f(Y*P*4),h=f.slice(0),Q=Math.round(10*s.Z()),e=new ImageData(new Uint8ClampedArray(h.buffer),Y,P);
T.uH(new Uint8Array(Z.data),S,f,new b4(Math.round((S.c-Y)/2),Math.round((S.v-P)/2),Y,P));var l=s.R("canvas"),O=l.getContext("2d");
l.width=Y;l.height=P+Math.round(Q*1.5);O.font=Q+"px sans-serif";O.fillStyle="white";this.VF={};var m=this.aiH.bind(this);
for(var D=0;D<cV._h.length;D++){var V=cV._h[D],q=s.R("div");b.appendChild(q);q.setAttribute("style","background-color:rgba(0,0,0,0.2); padding:0px 8px; margin-bottom:8px");
q.textContent=aV.get(V);for(var K in cV.names){var z=cV.names[K];if(z[0]!=D)continue;cV.l5(K,{rect:w,buffer:f},cV.VS(K),{h:0,l:0,O:0},{h:255,l:255,O:255},{rect:w,buffer:h},{});
O.clearRect(0,0,500,500);O.putImageData(e,0,0);var t=aV.get(z[1]);O.fillText(t,(Y-O.measureText(t).width)/2,P+Math.round(Q*1.2));
var H=s.R("div");b.appendChild(H);H.setAttribute("style","display:inline-block; cursor:pointer; padding: 5px 5px 0 5px; margin-bottom:5px");
H.addEventListener("click",m,!1);var q=s.R("img");H.appendChild(q);q.setAttribute("src",l.toDataURL());
q.setAttribute("style","width:"+Y/s.Z()+"px; margin-bottom:0px;");this.VF[K]=H}}};_.GEfc.prototype.aiH=function(Z){var S;
for(var b in this.VF)if(this.VF[b]==Z.currentTarget)this.Uw=b;this.zD()};_.GEfc.prototype.yQ=function(Z){var S=h2.ny(this.Qb,Z),b=this.gB.GEfs.v,Y=b[this.LQ].v;
if(S==0){b.push(JSON.parse(JSON.stringify(b[this.LQ])));this.LQ=b.length-1}else if(b.length>1){b.splice(this.LQ,1);
if(this.LQ==b.length)this.LQ--}this.B3();this.T2()};_.GEfc.prototype.zD=function(Z){var S=this.Uw,b;
if(Z==null)b=cV.VS(S);else b=this.qp[S].u();this.gB.GEfs.v[this.LQ].v=b;this.B3();this.T2()};_.GEfc.prototype.F=function(Z,S,b,Y,P){if(this.VF==null)this.a1D();
Z=this.gB=JSON.parse(JSON.stringify(Z));if(Z.GEfs==null)Z=this.gB={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:Z}]}};
var w=Z.GEfs.v;for(var D=0;D<w.length;D++)if(w[D].v.GELv==null)w[D].v.GELv={t:"bool",v:!0};this.LQ=w.length-1;
this.B3();b=b.clone();if(S==null)return;if(!Y.Oh(b)&&cV.K3(Z).x!=0){var f=b.VK(Y),h=T.f(f.X()*4);T.uH(S,b,h,f);
S=h;b=f}b.x=b.y=0;this.OY=S;this.p9=S.slice(0);this.LI=b;this.T2()};_.GEfc.prototype.afv=function(Z){var S=Z.data,D=S.SU,b=this.gB.GEfs.v;
if(S.D8){b[D].v.GELv.v=!b[D].v.GELv.v;this.T2()}else this.LQ=D;this.B3()};_.GEfc.prototype.B3=function(){var Z=this.gB.GEfs.v,S=Z[this.LQ].v,b=S.GEfk.v.GEft,Y=this.Mw;
if(cV.names[b]==null){alert("Unsupported gallery filter");s.Z9(Y)}else{this.Uw=b;for(var P in this.VF)s.bq(this.VF[P],"selected");
s.zy(this.VF[b],"selected");var w=this.qp[b];w.F(S);if(Y.firstChild!=w.j){s.Z9(Y);Y.appendChild(w.j)}}var f=[];
for(var D=0;D<Z.length;D++){var h=Z[D].v,Q=cV.names[h.GEfk.v.GEft],e=new e0(D,!0,!0,null,Q?Q[1]:"Filter",D==this.LQ,h.GELv.v);
e.parent=this;f.push(e.j)}s.Z9(this.Tv);f.reverse();for(var D=0;D<f.length;D++)this.Tv.appendChild(f[D]);
this.Xd(this.cq,this.ys)};_.GEfc.prototype.u=function(){return JSON.parse(JSON.stringify(this.gB))};
_.GEfc.prototype.T2=function(Z){var S=this.LI,b=this.OY,Y=this.p9,P=this.Uw,w=this.gB,f=this.W3;function h(Q){return{h:Q>>>16,l:Q>>>8&255,O:Q&255}}cL.l5("GEfc",{rect:this.LI,buffer:this.OY},w,h(f.ui),h(f.VY),{rect:this.LI,buffer:this.p9},null);
this.view.F([{Vl:S,data:Y.buffer}])};_.GEfc.prototype.B=function(){for(var Z in this.qp)this.qp[Z].B();
h2.uO(this.Qb,["lrs/newlayer","lrs/bin"])};_.GEfc.Uq=function(Z){ij.call(this);this.Vh=Z;this.j=s.R("div");
this.IC={};var S=cV.VS(Z);for(var b in S){var Y;if(b=="__name"||b=="classID"||b=="GEfk"||b=="GELv"||["LghI","FlRs"].indexOf(b)!=-1)continue;
else if(b=="Sz")Y=new bS([12,14,0],1,50);else if(b=="Dtl")Y=Z=="Chrc"?new bS("Detail",0,5):new bS("Detail",1,15);
else if(b=="Shrp")Y=new bS("Sharpness",0,40);else if(b=="TxtT")Y=new gl([12,67],"Blocks,Canvas,Frosted,Tiny Lens,Bricks,Burlap,Sandstone".split(","));
else if(b=="BrsT")Y=new gl("Brush type","Simple,Light Rough,Dark Rough,Wide Sharp,Wide Blurry,Sparkle".split(","));
else if(b=="LghD")Y=new gl("Light","Bottom,Bottom Left,Left,Top Left,Top,Top Right,Right,Bottom Right".split(","));
else if(b=="SDir")Y=new gl([12,33],["Right Diagonal","Horizontal","Left Diagonal","Vertical"]);else if(b=="EdgW")Y=new bS("Edge Width",1,14);
else if(b=="EdgB")Y=new bS("Edge Brightness",0,20);else if(b=="Smth")Y=new bS([19,3,3],1,Z=="Stmp"?50:15);
else if(b=="ClSz")Y=new bS([12,61],3,100);else if(b=="BrdT")Y=new bS([7,9],1,20);else if(b=="HghS")Y=new bS([12,64],0,20);
else if(b=="HlSz")Y=new bS([12,14,0],1,15);else if(b=="Cntr")Y=new bS([12,3,0],0,50);else if(b=="ScrT")Y=new gl([12,62],["Circle","Dot",[10,35]]);
else if(b=="SprR")Y=new bS("Spray Radius",0,25);else if(b=="StrL")Y=new bS("Stroke Length",0,20);else if(b=="LgDr")Y=new bS("Light/Dark Balance",0,Z=="Stmp"?50:100);
else if(b=="Drkn")Y=new bS("Darkness",1,50);else if(b=="Dstr")Y=new bS("Distortion",0,20);else if(b=="Scln")Y=new bS([12,38],50,200);
else if(b=="Rlf")Y=new bS("Relief",0,50);else if(b=="ChAm")Y=new bS("Thickness",1,7);else if(b=="InvT")Y=new ec([4,11]);
else if(b=="RplS")Y=new bS("Ripple Size",1,15);else if(b=="RplM")Y=new bS("Ripple Magnitude",0,20);else console.log(b);
Y.i(s.E.L,this.ot,this);this.IC[b]=Y;this.j.appendChild(Y.j)}};_.GEfc.Uq.prototype=new ij;_.GEfc.Uq.prototype.ot=function(Z){this.m(new d(s.E.L,!1))};
_.GEfc.Uq.prototype.F=function(Z){for(var S in this.IC){var b;if("Sz Dtl Shrp EdgW EdgB Smth ClSz BrdT HghS HlSz Cntr SprR StrL LgDr Drkn Dstr Scln Rlf ChAm InvT RplS RplM".split(" ").indexOf(S)!=-1)b=Z[S].v;
else if(S=="TxtT")b=cV.Tq.indexOf(Z[S].v[S]);else if(S=="BrsT")b=cV.Il.indexOf(Z[S].v[S]);else if(S=="LghD")b=cV.UO.indexOf(Z[S].v[S]);
else if(S=="ScrT")b=cV.zH.indexOf(Z[S].v[S]);else if(S=="SDir")b=cV.po.indexOf(Z[S].v.StrD);this.IC[S].F(b)}};
_.GEfc.Uq.prototype.u=function(){var Z=cV.VS(this.Vh);for(var S in this.IC){var b=this.IC[S].u();if("Sz Dtl Shrp EdgW EdgB Smth ClSz BrdT HghS HlSz Cntr SprR StrL LgDr Drkn Dstr Scln Rlf ChAm InvT RplS RplM".split(" ").indexOf(S)!=-1)Z[S].v=b;
else if(S=="TxtT")Z[S].v[S]=cV.Tq[b];else if(S=="BrsT")Z[S].v[S]=cV.Il[b];else if(S=="LghD")Z[S].v[S]=cV.UO[b];
else if(S=="ScrT")Z[S].v[S]=cV.zH[b];else if(S=="SDir")Z[S].v.StrD=cV.po[b]}return Z};_.GEfc.Uq.prototype.B=function(){for(var Z in this.IC)this.IC[Z].B()};
_.blnc=function(){_.call(this);var Z=this.j;this.yD=null;this.YA=new gl([12,12],[[19,6,0],[19,6,1],[19,6,2]]);
this.YA.i(s.E.L,this.T2,this);Z.appendChild(this.YA.j);this.tc=[];for(var D=0;D<3;D++){var S=new bS(g3.Yn[D],-100,100);
S.i(s.E.L,this.SI,this);this.tc.push(S);Z.appendChild(S.j)}this.Hd=new ec([13,4]);this.Hd.i(s.E.L,this.SI,this);
Z.appendChild(this.Hd.j)};_.blnc.prototype=new _;_.blnc.prototype.B=function(){this.YA.B();for(var D=0;
D<3;D++)this.tc[D].B();this.Hd.B()};_.blnc.prototype.F=function(Z){this.yD=JSON.parse(JSON.stringify(Z));
this.T2()};_.blnc.prototype.u=function(Z){var S=["ShdL","MdtL","HghL"],b=this.yD[S[this.YA.u()]].v;for(var D=0;
D<3;D++)b[D].v=this.tc[D].u();this.yD.PrsL.v=this.Hd.u();return JSON.parse(JSON.stringify(this.yD))};
_.blnc.prototype.T2=function(Z){var S=["ShdL","MdtL","HghL"],b=this.yD[S[this.YA.u()]].v;for(var D=0;
D<3;D++)this.tc[D].F(b[D].v);this.Hd.F(this.yD.PrsL.v)};_.brit=function(){_.call(this,"brit");this.AH.push(new bS([12,2],-150,150,""));
this.AH.push(new bS([12,3,0],-100,100,""));this.AH.push(new ec([12,3,1]));this.wi()};_.brit.prototype=new _;
_.brit.prototype.$t=function(Z,S){S[0]=Z.Brgh?Z.Brgh.v:0;S[1]=Z.Cntr?Z.Cntr.v:0;S[2]=Z.useLegacy?Z.useLegacy.v:!1};
_.brit.prototype.jX=function(Z,S){Z.Brgh.v=S[0];Z.Cntr.v=S[1];Z.useLegacy.v=S[2]};_.curv=function(){_.call(this);
this.value=null;this.p5=null;var Z=this.j;this.jV=new gl([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]);
this.jV.i(s.E.L,this.Mn,this);Z.appendChild(this.jV.j);this.V9=new gl(null,["Spline","Sketch"]);this.V9.i(s.E.L,this.a6l,this);
Z.appendChild(this.V9.j);this.Hq=new fO;this.Hq.i(s.E.L,this.GV,this);Z.appendChild(this.Hq.j);this.l0=new gO("Sample from image",["#000000","#888888","#ffffff"]);
Z.appendChild(this.l0.j)};_.curv.prototype=new _;_.curv.prototype.B=function(){this.jV.B()};_.curv.prototype.a6l=function(Z){var S=iS.da(this.value,0),b=S.length==256?1:0,Y=this.V9.u();
if(b==Y)return;var P=cL.VS("curv");if(Y==1){var w=[];for(var D=0;D<256;D++)w.push(D);iS.D2(P,0,w)}this.F(P);
this.SI()};_.curv.prototype.GV=function(){iS.D2(this.value,this.jV.u(),this.Hq.u());this.SI()};_.curv.prototype.Mn=function(){var Z=this.jV.u(),S=iS.da(this.value,Z),b=S.length==256?1:0;
this.V9.F(b);if(this.p5)this.Hq.Oj(this.p5[Z],this.p5[4]*[1,.33,.33,.33][Z],["#ccc","#fcc","#cfc","#ccf"][Z]);
this.Hq.F(S)};_.curv.prototype.NK=function(){return!0};_.curv.prototype.Xa=function(Z,S,b,Y,P){var w=this.value,f=this.l0.u();
this.value=cL.VS("curv");this.SI();var h=G.B1.mK(Z,P,1),Q=[h>>>16&255,h>>>8&255,h&255];for(var D=0;D<3;
D++){var e=iS.da(w,1+D);if(f==0)e[0].v.Hrzn.v=Q[D];if(f==1){var l=(Q[0]+Q[1]+Q[2])*.333,O=Math.log(Q[D]/255)/Math.log(l/255),m=Math.min(999,Math.max(10,Math.round(100*O)));
if(e.length==2)e.splice(1,0,JSON.parse(JSON.stringify(e[0])));e[1].v.Hrzn.v=127-Math.log(m/100)*127;
e[1].v.Vrtc.v=127}if(f==2)e[e.length-1].v.Hrzn.v=Q[D];iS.D2(w,1+D,e)}this.F(w);this.SI()};_.curv.prototype.F=function(Z){this.value=Z;
this.Mn()};_.curv.prototype.Oj=function(Z){this.p5=Z;this.Mn()};_.curv.prototype.u=function(Z){return JSON.parse(JSON.stringify(this.value))};
_.expA=function(){_.call(this,"expA");this.AH.push(new bS([12,5],-20,20,null,3));this.AH.push(new bS([12,6],-.5,.5,null,3));
this.AH.push(new bS([12,7],.01,6.99,null,3));this.wi()};_.expA.prototype=new _;_.expA.prototype.$t=function(Z,S){S[0]=Z.Exps.v;
S[1]=Z.Ofst.v;S[2]=Z.gammaCorrection.v};_.expA.prototype.jX=function(Z,S){Z.Exps.v=S[0];Z.Ofst.v=S[1];
Z.gammaCorrection.v=S[2]};_.grdm=function(){_.call(this,"grdm");this.AH.push(new ax(!0,null,!0));this.AH.push(new ec([12,23,0]));
this.wi()};_.grdm.prototype=new _;_.grdm.prototype.$t=function(Z,S){S[0]=Z.Grad.v;S[1]=Z.Rvrs?Z.Rvrs.v:!1};
_.grdm.prototype.jX=function(Z,S){Z.Grad.v=S[0];Z.Rvrs={t:"bool",v:S[1]}};_.grdm.prototype.na=function(Z,S){this.AH[0].cs(Z.ui,Z.VY);
if(S==bp._O||S==bp.tN||S==bp.sc)this.AH[0].VU(Z.Yh)};_.selc=function(){_.call(this);var Z=this.j;this.z$=[];
this.vJ=null;this.YA=new gl([12,82],g3.$L.concat([[13,1,8],[13,1,13],[13,1,10]]));this.YA.i(s.E.L,this.ot,this);
Z.appendChild(this.YA.j);for(var D=0;D<4;D++){var S=new bS(g3.a5d[D],-100,100,"%");S.i(s.E.L,this.ot,this);
this.z$.push(S);Z.appendChild(S.j)}this.$K=new ec([13,3]);Z.appendChild(this.$K.j);this.$K.i(s.E.L,this.ot,this)};
_.selc.prototype=new _;_.selc.prototype.B=function(){this.YA.B();this.$K.B();for(var D=0;D<4;D++)this.z$[D].B()};
_.selc.prototype.F=function(Z){this.vJ=JSON.parse(JSON.stringify(Z));this.T2()};_.selc.prototype.u=function(Z){return JSON.parse(JSON.stringify(this.vJ))};
_.selc.prototype.ot=function(Z){if(Z.target!=this.YA){var S=this.vJ,b=[];for(var D=0;D<4;D++)b[D]=this.z$[D].u();
f_.D2(S,this.YA.u(),b);S.Mthd={t:"enum",v:{CrcM:this.$K.u()?"Absl":"Rltv"}}}this.T2();this.SI()};_.selc.prototype.T2=function(){var Z=this.vJ,S=f_.da(Z,this.YA.u());
for(var D=0;D<4;D++)this.z$[D].F(S[D]);this.$K.F(Z.Mthd?Z.Mthd.v.CrcM=="Absl":!1)};_.blwh=function(){_.call(this,"blwh");
this.AH.push(new ec([12,11]));this.AH.push(new gy(!0));for(var D=0;D<6;D++)this.AH.push(new bS(g3.$L[D],-200,300));
this.wi()};_.blwh.prototype=new _;_.blwh.prototype.$t=function(Z,S){S[0]=Z.useTint.v;S[1]=Z.tintColor.v;
var b="Rd Yllw Grn Cyn Bl Mgnt".split(" ");for(var D=0;D<6;D++)S[2+D]=Z[b[D]].v};_.blwh.prototype.jX=function(Z,S){Z.useTint.v=S[0];
Z.tintColor.v=S[1];var b="Rd Yllw Grn Cyn Bl Mgnt".split(" ");for(var D=0;D<6;D++)Z[b[D]].v=S[2+D]};
_.hue2=function(){_.call(this);this.value=null;this.N9=null;this.aik=null;var Z=this.j;this.YA=new gl([12,12],["Master"].concat(g3.$L));
this.YA.i(s.E.L,this.Mn,this);Z.appendChild(this.YA.j);this.bi=new bS([12,8],-180,180);this.bi.i(s.E.L,this.mI,this);
Z.appendChild(this.bi.j);this.rd=new bS([12,9],-100,100);this.rd.i(s.E.L,this.mI,this);Z.appendChild(this.rd.j);
this.Sm=new bS([12,10],-100,100);this.Sm.i(s.E.L,this.mI,this);Z.appendChild(this.Sm.j);this.NV=new ec([12,11]);
this.NV.i(s.E.L,this.a0j,this);Z.appendChild(this.NV.j);this.a9R=new bE("...",!0);Z.appendChild(this.a9R.j)};
_.hue2.prototype=new _;_.hue2.prototype.B=function(){this.bi.B();this.rd.B();this.Sm.B();this.NV.B();
this.YA.B()};_.hue2.prototype.a0j=function(Z){var S=this.NV.u();this.value.Clrz.v=S;if(S)this.YA.F(0);
this.Mn();this.SI()};_.hue2.prototype.mI=function(Z){var S=this.value.Clrz.v,b=this.YA.u(),Y=iD.da(this.value,b),P=b==0?Y:Y.tc;
P[0]=this.bi.u();var w=this.rd.u();P[1]=S?Math.max(0,w):w;P[2]=this.Sm.u();iD.D2(this.value,b,Y);this.Mn();
this.SI()};_.hue2.prototype.Mn=function(){var Z=this.value.Clrz?this.value.Clrz.v:!1,P="";this.NV.F(Z);
if(Z)this.YA.J7();else this.YA.zA();var S=this.YA.u(),b=iD.da(this.value,S),Y=S==0?b:b.tc;this.bi.F(Y[0]);
this.rd.F(Y[1]);this.Sm.F(Y[2]);if(!Z){P+=aV.get([5,8])+": ";var S=this.YA.u();if(S==0)P+=aV.get([13,2]);
else P+=b.B4}this.a9R.F(P)};_.hue2.prototype.NK=function(){return!0};_.hue2.prototype.Os=function(Z,S,b,Y,P){var w=this.value;
this.value=cL.VS("hue2");this.SI();var f=G.B1.mK(Z,P,1),h=[f>>>16&255,f>>>8&255,f&255],Q=T.hy(h[0]/255,h[1]/255,h[2]/255);
this.YA.F(1+Math.round(Q.XE*6)%6);this.F(w);this.SI();this.N9=P.x;this.aik=this.rd.u()};_.hue2.prototype.Zq=function(Z,S,b,Y,P){if(this.N9!=null){var w=P.x-this.N9;
w=Math.max(-100,Math.min(100,this.aik+.5*w));this.rd.F(w);this.mI()}};_.hue2.prototype.Xa=function(Z,S,b,Y,P){this.N9=null};
_.hue2.prototype.F=function(Z){this.value=JSON.parse(JSON.stringify(Z));this.Mn()};_.hue2.prototype.u=function(Z){return JSON.parse(JSON.stringify(this.value))};
_.levl=function(){_.call(this);this.value=null;this.p5=null;this.sI=[new ar(0,0),new ar(0,0),new ar(0,0),new ar(0,0),new ar(0,0)];
this.ol=-1;this._g=this.i$.bind(this);this.J$=this.sa.bind(this);var Z=this.j;this.jV=new gl([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]);
this.jV.i(s.E.L,this.Mn,this);Z.appendChild(this.jV.j);var S=s.R("div","");Z.appendChild(S);var b=s.R("div","");
Z.appendChild(b);this.u_=s.R("canvas");S.appendChild(this.u_);this.Bi=this.u_.getContext("2d");this.q1=new ar(256,120);
this.u_.setAttribute("style","display:block");s.ed(this.u_,this.q1.x,this.q1.y,this.Bi);s.QF(this.u_);
s.TL(this.u_,this.Zx.bind(this));this.Z7=s.R("canvas","");b.appendChild(this.Z7);this.hC=this.Z7.getContext("2d");
this.Ph=new ar(this.q1.x,40);this.Z7.setAttribute("style","display:block");s.ed(this.Z7,this.Ph.x,this.Ph.y,this.hC);
s.QF(this.Z7);s.TL(this.Z7,this.ans.bind(this));var Y=this.a30=[];for(var D=0;D<5;D++){var P=new cY(null,null,3);
Y.push(P);P.i(s.E.L,this.a2A,this);(D<2||D==4?S:b).appendChild(P.j)}S.appendChild(Y[1].j);Y[4].j.setAttribute("style","margin: 0 4.7em");
Y[3].j.setAttribute("style","margin:0 0 0 13em");this.l0=new gO("Sample from image",["#000000","#888888","#ffffff"]);
Z.appendChild(this.l0.j)};_.levl.prototype=new _;_.levl.prototype.B=function(){this.jV.B()};_.levl.prototype.a2A=function(Z){var S=[];
for(var D=0;D<5;D++){var b=255,Y=1;if(D==4){b=999;Y=100}var P=parseFloat(this.a30[D].u());S[D]=Math.max(0,Math.min(b,P*Y))}bY.D2(this.value,this.jV.u(),S);
this.Mn();this.SI()};_.levl.prototype.Mn=function(Z){var S=this.q1.x,b=this.q1.y,Y=this.jV.u(),P=this.Bi;
P.clearRect(0,0,S,b);P.fillStyle="#cccccc";P.fillRect(8,8,S-16,b-16-8);if(this.p5){if(Y==0){this.p5[0].fill(0);
var w=JSON.parse(JSON.stringify(this.value));bY.D2(w,0,[0,255,0,255,100]);var f=g3.uC("levl",w),h=[f.x0,f.Nn,f.yf];
for(var Q=0;Q<3;Q++){var e=this.p5[1+Q],l=h[Q];for(var D=0;D<256;D++)this.p5[0][l[D]]+=e[D]}}var O=this.p5[Y],m=0;
for(var D=0;D<O.length;D++)m+=O[D];P.fillStyle="#333333";P.beginPath();P.moveTo(8,b-16);for(var D=0;
D<256;D++){var V=55*O[D]/m;P.lineTo(8+D/256*(S-16),Math.max(8,b-16-b*V))}P.lineTo(S-8,b-16);P.closePath();
P.fill()}var q=bY.da(this.value,Y);for(var D=0;D<5;D++)this.a30[D].F(q[D]/(D==4?100:1));this.sI[0].Ha(8+q[0]/255*(S-16),b-14);
this.sI[1].Ha(8+q[1]/255*(S-16),b-14);var K=Math.log(q[4]/100)/Math.log(9.99);K=.5-K/2;this.sI[4].Ha(this.sI[0].x+K*(this.sI[1].x-this.sI[0].x),b-14);
this.pm(P,this.sI[0],"#000000");this.pm(P,this.sI[1],"#ffffff");this.pm(P,this.sI[4],"#777777");var S=this.Ph.x,b=this.Ph.y;
P=this.hC;P.clearRect(0,0,S,b);var z=P.createLinearGradient(0,0,S-16,0);z.addColorStop(0,"black");z.addColorStop(1,"white");
P.fillStyle=z;P.fillRect(8,8,S-16,16);this.sI[2].Ha(8+q[2]/255*(S-16),b-14);this.sI[3].Ha(8+q[3]/255*(S-16),b-14);
this.pm(P,this.sI[2],"#000000");this.pm(P,this.sI[3],"#ffffff")};_.levl.prototype.pm=function(Z,S,b){Z.fillStyle=b;
Z.fillRect(S.x-5,S.y,10,10)};_.levl.prototype.Zx=function(Z){var S=s.R6(Z,this.u_);for(var D=0;D<2;D++)if(ar.VA(this.sI[D],S)<10)this.ol=D;
if(ar.VA(this.sI[4],S)<10)this.ol=4;this.qa()};_.levl.prototype.ans=function(Z){var S=s.R6(Z,this.Z7);
for(var D=2;D<4;D++)if(ar.VA(this.sI[D],S)<10)this.ol=D;this.qa()};_.levl.prototype.qa=function(Z){if(this.ol==-1)return;
s.Tb(document.body,this._g);s.Ju(document.body,this.J$)};_.levl.prototype.i$=function(Z){var S=bY.da(this.value,this.jV.u()),b=s.R6(Z,this.ol==2&&this.ol==3?this.Z7:this.u_),Y=255*(b.x-8)/(this.q1.x-16);
Y=Math.max(0,Math.min(255,Y));if(this.ol==0)Y=Math.min(Y,S[1]-2);if(this.ol==1)Y=Math.max(Y,S[0]+2);
if(this.ol!=4)S[this.ol]=Math.round(Y);else{var P=(Y-S[0])/(S[1]-S[0]);P=1-2*P;P=Math.pow(9.99,P);S[4]=Math.min(999,Math.max(10,Math.round(P*100)))}bY.D2(this.value,this.jV.u(),S);
this.Mn();this.SI()};_.levl.prototype.sa=function(Z){s.Qe(document.body,this._g);s.zz(document.body,this.J$);
this.ol=-1};_.levl.prototype.NK=function(){return!0};_.levl.prototype.Xa=function(Z,S,b,Y,P){var w=this.value,f=this.l0.u();
this.value=cL.VS("levl");this.SI();var h=G.B1.mK(Z,P,1),Q=[h>>>16&255,h>>>8&255,h&255];for(var D=0;D<3;
D++){var e=bY.da(w,1+D);if(f==0)e[0]=Q[D];if(f==1){var l=Math.log(Q[D]/255)/Math.log((Q[0]+Q[1]+Q[2])*.333/255);
e[4]=Math.min(999,Math.max(10,Math.round(100*l)))}if(f==2)e[1]=Q[D];bY.D2(w,1+D,e)}this.F(w);this.SI()};
_.levl.prototype.F=function(Z){this.value=Z;this.Mn()};_.levl.prototype.Oj=function(Z){this.p5=Z;this.Mn()};
_.levl.prototype.u=function(Z){return JSON.parse(JSON.stringify(this.value))};_.phfl=function(){_.call(this,"phfl");
this.AH.push(new gy);this.AH.push(new bS([12,74],0,100,"%"));this.AH.push(new ec([13,4]));this.wi()};
_.phfl.prototype=new _;_.phfl.prototype.$t=function(Z,S){S[0]=Z.Clr.v;S[1]=Z.Dnst.v;S[2]=Z.PrsL.v};_.phfl.prototype.jX=function(Z,S){var b=T.W.CD(S[0]),Y=Z.Clr.v,P=T.N1(b.h,b.l,b.O);
Y.Lmnc.v=P.lq;Y.A.v=P.w;Y.B.v=P.O;Z.Dnst.v=S[1];Z.PrsL.v=S[2]};_.vibA=function(){_.call(this,"vibA");
this.AH.push(new bS([12,13],-100,100,null));this.AH.push(new bS([12,9],-100,100,null));this.wi()};_.vibA.prototype=new _;
_.vibA.prototype.$t=function(Z,S){S[0]=Z.vibrance?Z.vibrance.v:0;S[1]=Z.Strt?Z.Strt.v:0};_.vibA.prototype.jX=function(Z,S){Z.vibrance.v=S[0];
Z.Strt.v=S[1]};_.thrs=function(){_.call(this,"thrs");this.AH.push(new bS([4,13],1,255,null));this.wi()};
_.thrs.prototype=new _;_.thrs.prototype.$t=function(Z,S){S[0]=Z.Lvl.v};_.thrs.prototype.jX=function(Z,S){Z.Lvl.v=S[0]};
_.mixr=function(){_.call(this);var Z=this.j;this.z$=[];this.vJ=null;this.YA=new gl([12,4],[[13,1,1],[13,1,4],[13,1,5]]);
this.YA.i(s.E.L,this.ot,this);Z.appendChild(this.YA.j);s.X3(Z);this.hE=new ec([12,60]);Z.appendChild(this.hE.j);
this.hE.i(s.E.L,this.ot,this);for(var D=0;D<4;D++){var S=new bS([[13,1,1],[13,1,4],[13,1,5],[13,2]][D],-200,200,"%");
S.i(s.E.L,this.ot,this);this.z$.push(S);Z.appendChild(S.j)}};_.mixr.prototype=new _;_.mixr.prototype.B=function(){this.YA.B();
this.hE.B();for(var D=0;D<4;D++)this.z$[D].B()};_.mixr.prototype.F=function(Z){this.vJ=JSON.parse(JSON.stringify(Z));
this.T2()};_.mixr.prototype.u=function(Z){return JSON.parse(JSON.stringify(this.vJ))};_.mixr.prototype.ot=function(Z){if(Z.target!=this.YA){var S=g3.kc(this.vJ);
if(Z.target==this.hE){S.hE=this.hE.u();if(S.hE)S.G=[40,40,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];else S.G=[100,0,0,0,0,0,100,0,0,0,0,0,100,0,0,0,0,0,0,0]}else{var b=(S.hE?0:this.YA.u())*5,D=this.z$.indexOf(Z.target);
S.G[b+(D<3?D:4)]=Z.target.u()}this.vJ=g3.Ym(S)}this.T2();this.SI()};_.mixr.prototype.T2=function(){var Z=g3.kc(this.vJ);
this.hE.F(Z.hE);var S=(Z.hE?0:this.YA.u())*5;for(var D=0;D<4;D++)this.z$[D].F(Z.G[S+(D<3?D:4)])};_.post=function(){_.call(this,"post");
this.AH.push(new bS([4,1],2,255,null));this.wi()};_.post.prototype=new _;_.post.prototype.$t=function(Z,S){S[0]=Z.Lvls.v};
_.post.prototype.jX=function(Z,S){Z.Lvls.v=S[0]};_.clrL=function(){_.call(this,"clrL");this.AH.push(new gj("LUTs"));
this.wi()};_.clrL.prototype=new _;_.clrL.prototype.$t=function(Z,S){S[0]=Z};_.clrL.prototype.jX=function(Z,S){var b=S[0];
for(var Y in b)Z[Y]=b[Y]};_.clrL.prototype.na=function(Z,S){if(S==bp._O||S==bp.n$)this.AH[0].VU(Z.aoZ)};
_.rplc=function(){_.call(this,"rplc");this.AH.push(new bS([12,92],0,200));this.AH.push(new gy);this.AH.push(new bS([12,8],-180,180));
this.AH.push(new bS([12,9],-100,100));this.AH.push(new bS([12,10],-100,100));this.wi()};_.rplc.prototype=new _;
_.rplc.prototype.$t=function(Z,S){S[0]=Z.Fzns.v;S[1]=Z.Mxm.v;S[2]=Z.H.v;S[3]=Z.Strt.v;S[4]=Z.Lght.v};
_.rplc.prototype.jX=function(Z,S){function b(P,w){w.Lmnc.v=P.lq;w.A.v=P.w;w.B.v=P.O}Z.Fzns.v=S[0];Z.H.v=S[2];
Z.Strt.v=S[3];Z.Lght.v=S[4];var Y=T.W.CD(S[1]),P=T.N1(Y.h,Y.l,Y.O);b(P,Z.Mnm.v);b(P,Z.Mxm.v)};_.fade=function(){_.call(this,"fade");
this.AH.push(new bS([12,0],0,100,"%"));this.AH.push(new gl([12,19,0],is.dd,!1,is.JL));this.wi()};_.fade.prototype=new _;
_.fade.prototype.$t=function(Z,S){S[0]=Z.Opct.v.val;S[1]=is.JO.indexOf(Z.Md.v.BlnM)};_.fade.prototype.jX=function(Z,S){Z.Opct.v.val=S[0];
Z.Md.v.BlnM=is.JO[S[1]]};_.aply=function(){_.call(this,"aply");this.AH.push(new gl([0,3],[]));this.AH.push(new gl([12,4],["RGB"].concat(g3.Yn).concat(["Transparency"])));
this.AH.push(new ec([4,11]));this.AH.push(new gl([12,19,0],is.dd,!1,is.JL));this.AH.push(new bS([12,0],0,100,"%"));
this.AH.push(new ec("Preserve Transparency"));this.wi([2]);this.b5=null};_.aply.prototype=new _;_.aply.prototype.$t=function(Z,S,b){if(b){var Y=b[2].t,P=this.b5=[];
for(var D=0;D<Y.length;D++)P.push(Y[D].getName());P.reverse();this.AH[0].vL([[5,7]].concat(P),[1,P.length])}else var P=this.b5;
Z=Z.With.v;var w=Z.T.v;S[0]=w[1].t=="name"?1+P.indexOf(w[1].v.val):0;S[1]=["RGB","Rd","Grn","Bl","Trsp"].indexOf(w[0].v.enum);
S[2]=Z.Invr.v;S[3]=is.JO.indexOf(Z.Clcl.v.Clcn);S[4]=Z.Opct.v.val;S[5]=Z.PrsT.v};_.aply.prototype.jX=function(Z,S){Z=Z.With.v;
var b=Z.T.v;if(S[0]==0)b[1]={t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Mrgd"}};else b[1]={t:"name",v:{classID:"Lyr",val:this.b5[this.b5.length-1-S[0]]}};
b[0].v.enum=["RGB","Rd","Grn","Bl","Trsp"][S[1]];Z.Invr.v=S[2];Z.Clcl.v.Clcn=is.JO[S[3]];Z.Opct.v.val=S[4];
Z.PrsT.v=S[5]};function dz(Z,S){ij.call(this);if(Z==null)return;this.id=S;this.af=Z;this.pE=null;this.j=s.R("div","window "+S);
this.a0S=null;this.oB=s.R("div","whead");this.agb=s.R("span","wname");this.oB.appendChild(this.agb);
this.j.appendChild(this.oB);this.N$=this.aci.bind(this);this.DE=this.alx.bind(this);this.UM=this.a9n.bind(this);
s.QF(this.oB);s.TL(this.oB,this.N$);this.xK=s.R("span","cross");this.oB.appendChild(this.xK);dz.prototype.B.call(this);
s.Ju(this.xK,this.zU.bind(this));this.body=s.R("div","body");this.j.appendChild(this.body)}dz.prototype=new ij;
dz.prototype.K7=function(){return!1};dz.prototype.NK=function(){return!1};dz.prototype.B=function(){if(this.af==null)return;
this.agb.textContent=aV.get(this.af);var Z=PIMG.__cross==null?"filter:invert(1);":"";this.xK.setAttribute("style","background-image:url("+PIMG.cross+");"+Z)};
dz.prototype.Os=function(Z,S,b,Y,P){};dz.prototype.vU=function(Z,S,b,Y,P){};dz.prototype.Zq=function(Z,S,b,Y,P){};
dz.prototype.Xa=function(Z,S,b,Y,P){};dz.prototype.nL=function(Z,S,b,Y,P){};dz.prototype.XF=function(Z,S,b,Y){if(Y.q(U.n5)&&this.sw)this.sw();
if(Y.q(U.cD)){var P=new d(s.E.s);P.j9=!0;G.IL.O2(Y,P);if(P.data)S.m(P)}};dz.prototype.jo=function(Z){return!1};
dz.prototype.ZP=function(Z,S){return!0};dz.prototype.lX=function(Z,S,b,Y){};dz.prototype.na=function(Z,S){};
dz.prototype.pn=function(Z,S){return null};dz.prototype.adW=function(Z){return this.a0S};dz.prototype.Xd=function(){};
dz.prototype.close=function(){this.m(new d(s.E.ef))};dz.prototype.aci=function(Z){this.pE=s.R6(Z,this.j);
s.Tb(window,this.DE);s.Ju(window,this.UM)};dz.prototype.alx=function(Z){var S=this.j.parentNode,b=s.R6(Z,S),Y=Math.round(b.x-this.pE.x),P=S.offsetTop+Math.max(0,Math.min(window.innerHeight-36,Math.round(b.y-this.pE.y)));
this.a0S=new ar(Y,P);this.j.style.left=Y+"px";this.j.style.top=P+"px"};dz.prototype.a9n=function(Z){s.Qe(window,this.DE);
s.zz(window,this.UM)};dz.prototype.zU=function(Z){this.m(new d("closebtn"));this.close()};function eJ(){dz.call(this,[0,13,0],"account");
this.sV=s.R("div","form padded scrollable");this.sV.setAttribute("style","max-width:48em; max-height:33em;");
this.body.appendChild(this.sV);this.X8=[new eJ.qg,new eJ.U4(eJ.akw),new eJ.U4(eJ.a7N)];for(var D=0;D<this.X8.length;
D++)this.X8[D].parent=this;this.i("showpage",this.aoE,this)}eJ.prototype=new dz;eJ.prototype.aoE=function(Z){s.Z9(this.sV);
this.sV.scrollTop=0;this.sV.appendChild(this.X8[Z.data.SU].j)};eJ.prototype.B=function(){dz.prototype.B.call(this);
for(var D=0;D<this.X8.length;D++)this.X8[D].B()};eJ.prototype.lX=function(Z,S,b){s.Z9(this.sV);var Y=this.X8[0];
this.sV.appendChild(Y.j);Y.lX();this.B()};eJ.prototype.na=function(Z,S){this.lX(null,null,null)};eJ.qg=function(){ij.call(this);
this.j=s.R("div");var Z=this.j,S,b,Y="background-color: #00aa00; text-shadow:none; padding:3px 7px; font-size:1.2em; font-weight:bold; color:#ffffff; cursor:pointer; margin:4px 0;";
this.S2=s.R("div");Z.appendChild(this.S2);this.cS=new fX([0,11],!1,null,!0);this.cS.j.setAttribute("style","background-color: rgba(200,0,0,1); color:#ffffff; margin:4px 6px 4px 0;");
this.cS.i("click",this.H3,this);Z.appendChild(this.cS.j);this.f8=new fX([0,13,1],!1,null,!0);this.f8.i("click",this.Kz,this);
Z.appendChild(this.f8.j);this.x8=new fX("Business Terms",!1,null,!0);this.x8.i("click",this.af6,this);
Z.appendChild(this.x8.j);S=s.R("h2");S.innerHTML="Account types";Z.appendChild(S);b=s.R("table");b.innerHTML="\t\t\t<table>\t\t\t\t<tr> <th class=\"left\"></th><th>Free</th><th>Premium</th> </tr>\t\t\t\t<tr> <td class=\"left\">Full Functionality</td><td class=\"yes\">\u2713</td><td class=\"yes\">\u2713</td> </tr>\t\t\t\t<tr> <td class=\"left\">No Ads</td><td class=\"no\"> </td><td class=\"yes\">\u2713</td> </tr>\t\t\t\t<tr> <td class=\"left\">Steps in History</td><td class=\"no\" style=\"font-size:1.3em\">30</td><td class=\"yes\">60</td> </tr>\t\t\t\t<!--<tr class=\"lastrow\"> <td class=\"left\">Cost</td><td>Free</td><td><big>$5</big> per month</td> </tr>-->\t\t\t</table>\t\t";
Z.appendChild(b);var P=this.acc=[[9,30,1],[10,90,1],[40,365,1],[15,30,5],[30,90,5],[120,365,5],[50,30,20],[100,90,20],[400,365,20],[40,30,1e3],[80,90,1e3],[300,365,1e3],[100,30,5e3],[200,90,5e3],[700,365,5e3],[200,30,2e4],[400,90,2e4],[1400,365,2e4]];
this.WK=[];for(var D=0;D<P.length;D++)this.WK.push(new fX("Buy: $"+P[D][0],!1,null,!0));for(var D=0;
D<this.WK.length;D++){this.WK[D].j.setAttribute("style",Y);this.WK[D].i("click",this.rQ,this)}S=s.R("h2");
S.innerHTML="Go Premium";Z.appendChild(S);this.AW=new fX("...",!0);this.AW.j.setAttribute("style",Y);
Z.appendChild(this.AW.j);b=this.SQ(3,["Single user",this.WK[0],this.WK[1],this.WK[2],"Team of 5",this.WK[3],this.WK[4],this.WK[5],"Team of 20",this.WK[6],this.WK[7],this.WK[8]]);
Z.appendChild(b);this.a6P=new ec("I accept",!0,"");Z.appendChild(this.a6P.j);this.EH=new fX([0,13,1],!1,null,!0);
this.EH.i("click",this.Kz,this);Z.appendChild(this.EH.j);this.EP=new fX("I have a key",!1,null,!0);this.EP.j.setAttribute("style",Y+" margin-left:18.9em;");
this.EP.i("click",this.rQ,this);Z.appendChild(this.EP.j);S=s.R("h2");S.textContent="Team Settings";Z.appendChild(S);
this.aP=new ec("Join a team");Z.appendChild(this.aP.j);this.aP.i(s.E.L,this.JU,this);this.q2=new cY("Email of a leader",null,14);
Z.appendChild(this.q2.j);s.X3(Z);this.bP=new ec("Start a team");Z.appendChild(this.bP.j);this.bP.i(s.E.L,this.JU,this);
var w=new bE("Emails of other members:");Z.appendChild(w.j);s.X3(Z);this.A3=s.R("textarea");this.A3.setAttribute("rows",3);
this.A3.setAttribute("cols",70);this.A3.setAttribute("style","display:block;tab-size:4;");Z.appendChild(this.A3);
var f=new fX("Save Team Settings",!1,null,!0);Z.appendChild(f.j);f.i("click",this.aoi,this);var h=this.a8I=new fX("More about Teams",!1,null,!0);
Z.appendChild(h.j);h.i("click",this.Bl,this);S=s.R("h2");S.innerHTML="Distributor Account";Z.appendChild(S);
this.e3=new fX("...",!0);this.e3.j.setAttribute("style",Y);Z.appendChild(this.e3.j);b=this.SQ(3,["1000 views/month",this.WK[9],this.WK[10],this.WK[11],"5000 views/month",this.WK[12],this.WK[13],this.WK[14],"20000 views/month",this.WK[15],this.WK[16],this.WK[17]]);
Z.appendChild(b);this.uK=new cY("Domain name (e.g. domain.com)",null,14);Z.appendChild(this.uK.j);s.X3(Z);
var f=new fX("Save Domain Settings",!1,null,!0);f.AN();Z.appendChild(f.j);f.i("click",this.ajP,this);
var h=new fX("More about Distributors",!1,null,!0);Z.appendChild(h.j);h.i("click",this.Bl,this)};eJ.qg.prototype=new ij;
eJ.qg.prototype.Kz=function(Z){var S=new d("showpage",!0);S.data={SU:1};this.m(S)};eJ.qg.prototype.af6=function(Z){var S=new d("showpage",!0);
S.data={SU:2};this.m(S)};eJ.qg.prototype.B=function(){this.cS.bl(fv.gx()?aV.get([0,11]):aV.get([0,10]));
this.EH.B();this.f8.B();this.x8.B()};eJ.qg.prototype.Bl=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.sN,link:"https://www.photopea.com/api/accounts#"+(Z.target==this.a8I?"teams":"distributors")};
this.m(S)};eJ.qg.prototype.JU=function(Z){var S=Z.currentTarget==this.aP;this.aP.F(S);this.bP.F(!S)};
eJ.qg.prototype.aoi=function(Z){var S=this.aP.u(),b=this.q2.u().trim(),Y=this.A3.value.trim();if(b.length>60){alert("Too long email address");
return}if(Y.length>600){alert("Too many team members");return}Y=Y.split(",").join(" ").trim();Y=Y.replace(/\s+/g," ");
if(Y=="")Y=[];else Y=Y.split(" ");var P=fv._s();if(P==null)P={};if(P.acc==null)P.acc={};P.acc.team={jin:S,ldr:b,mmb:Y};
fv.Oi(P,this.Cb.bind(this));alert("Saved!");this.lX()};eJ.qg.prototype.ajP=function(Z){var S=this.uK.u().trim();
if(!fv.gx()){alert("You have to log in first.");return}if(fv.Po().distrib=="0"){alert("Order a distributor account first.");
return}var b=fv._s();if(b==null)b={};if(b.acc==null)b.acc={};if(S=="")delete b.acc.dname;else b.acc.dname=S;
fv.Oi(b,this.Cb.bind(this));alert("Saved!");this.lX()};eJ.qg.prototype.lX=function(){if(fv.gx()){var Z=fv.Po();
if(Z==null)return;this.S2.innerHTML="<span style=\"font-size:1.5em; margin-right:0.7em;\">"+Z.name+"</span> "+Z.email+" <br/>"}else this.S2.innerHTML="Logging In is free. Your environment settings will be synchronized across all devices. <br/>";
var S=fv.gx()&&fv.FE();this.AW.j.style.display=S?"block":"none";if(S){var b=parseInt(Z[s.ZJ("!&|'&50")])-Date.now()*(1/1e3),Y=parseInt(Z.ptype),P;
if(Y==-1)P="member of a team";else if(Y==1)P="Single user";else P="Team of "+Y;this.AW.bl("Premium active for "+Math.round(b/(60*60*24))+" more days! ("+P+")")}var w=fv.gx()&&Z.distrib*1e3>Date.now();
this.e3.j.style.display=w?"block":"none";if(w){var b=parseInt(Z.distrib)-Date.now()/1e3,Y=parseInt(Z.ptype);
this.e3.bl("Distributor active for "+Math.round(b/(60*60*24))+" more days! ("+Y+" visitos)")}var f=fv._s();
if(f&&f.acc&&f.acc.team){var h=f.acc.team;this.aP.F(h.jin);this.bP.F(!h.jin);this.q2.F(h.ldr);this.A3.value=h.mmb.join(", ")}else{this.aP.F(!0);
this.bP.F(!1);this.q2.F("");this.A3.value=""}if(f&&f.acc&&f.acc.dname)this.uK.F(f.acc.dname);else this.uK.F("")};
eJ.qg.prototype.SQ=function(Z,S){var b=s.R("table");b.innerHTML="\t\t\t\t<table>\t\t\t\t\t<tr> <th class=\"left\"></th><th>30 days</th><th>90 days</th> "+(Z==3?"<th>365 days</th>":"")+" </tr>\t\t\t\t</table>\t\t\t";
for(var D=0;D<S.length;D+=Z+1){var Y=s.R("tr"),P;b.appendChild(Y);P=s.R("td","left");Y.appendChild(P);
P.innerHTML="<b>"+S[D]+"</b>";for(var w=0;w<Z;w++){P=s.R("td");Y.appendChild(P);P.appendChild(S[D+1+w].j)}}return b};
eJ.qg.prototype.rQ=function(Z){var S=this.WK.indexOf(Z.currentTarget),Y=30,P=1;if(!fv.gx()){alert("You must log in before buying Premium");
return}if(this.a6P.u()==!1&&S<9){alert("You must accept Terms of Service");return}var b=fv.gx()&&fv.FE();
if(S!=-1){var w=this.acc[S];Y=w[1];P=w[2]}if(b&&P<1e3){alert("You already have premium.");return}if(S==-1){var f=prompt("Please enter your key");
if(f!=null){fv.acP(f,this.Cb.bind(this));this.ia()}return}if(Y==30&&P==1){var h=confirm("You can have a 90 days version for $10. Do you still want a 30 days version for $9?");
if(!h)return}fv.order(Y,P,this.Cb.bind(this));this.ia()};eJ.qg.prototype.Cb=function(Z){if(fv.gx()&&fv.Po().msg)alert(fv.Po().msg);
this.lX();this.ia()};eJ.qg.prototype.H3=function(Z){if(fv.gx()){fv.ajK();this.ia();this.lX(null,null,null)}else fv.H3(this.a04.bind(this))};
eJ.qg.prototype.a04=function(){var Z=new d(s.E.P,!0);Z.data={e:s.U.ahC};this.m(Z)};eJ.qg.prototype.ia=function(){var Z=new d(s.E.P,!0);
Z.data={e:s.U.RL};this.m(Z)};eJ.U4=function(Z){ij.call(this);this.j=s.R("div");var S=this.j,b=this.a64=new fX([0,13,2],!1,null,!0);
b.i("click",this.a5v,this);S.appendChild(b.j);var Y=s.R("div");Y.innerHTML=Z;S.appendChild(Y)};eJ.U4.prototype=new ij;
eJ.U4.prototype.a5v=function(Z){var S=new d("showpage",!0);S.data={SU:0};this.m(S)};eJ.U4.prototype.B=function(){this.a64.B()};
eJ.a7N="\t\t<h1>Contact</h1>\t\t<p>Photopea.com is operated by Ivan Kuckir (I\u010C 04498411, Tax ID CZ9011014309).</p>\t\t<ul>\t\t\t<li><b>Address</b>: H\xE1lkova 483, 517 41 Kostelec nad Orlic\xED, Czech Republic</li>\t\t\t<li><b>E-mail</b>: support@photopea.com, <b>Phone number</b>: +420 604 592 737</li>\t\t</ul>\t\t<h1>Refund Policy</h1>\t\t<p>You can ask for a refund by writing us an email to support@photopea.com and. \t\tWe offer only one kind of service, and if you have been refunded in the past, you can not get another refund.\t\t</p>\t\t<h1>Terms of Delivery</h1>\t\t<p>You can pay with a debit or a credit card. Payments are processed instantly, your Premium account will be activated instantly.</p>\t\t<h1>Payment Provider</h1>\t\t<p>Payments are provided by <a style=\"color:white\" href=\"https://www.comgate.cz/cz/platebni-brana\">ComGate pamyments, a.s</a>.</p>\t\t<ul>\t\t\t<li>ComGate Payments, a.s.</li>\t\t\t<li>Go\u010D\xE1rova t\u0159\xEDda 1754 / 48b, Hradec Kr\xE1lov\xE9</li>\t\t\t<li>E-mail: platby-podpora@comgate.cz, Tel: +420 228 224 267</li>\t\t</ul>\t\t<img src=\"https://www.comgate.cz/files/platebni-brana-comgate-paticka-e-shopu.png\" />\t";
eJ.akw="\t\t<h1>Contact</h1>\t\t<p>Photopea.com is operated by Ivan Kuckir (I\u010C 04498411, Tax ID CZ9011014309).</p>\t\t<ul>\t\t\t<li><b>Address</b>: H\xE1lkova 483, 517 41 Kostelec nad Orlic\xED, Czech Republic</li>\t\t\t<li><b>E-mail</b>: support@photopea.com, <b>Phone number</b>: +420 604 592 737</li>\t\t</ul>\t\t<h1>Terms of Service</h1>\t\t\t\t<h2>What are these Terms?</h2>\t\t<p>\t\tThese terms form a binding contract between you and us (\"these Terms\") regarding your access to and use of any of our web sites, \t\tweb applications, services, products and Software that contain a link to these Terms (individually and collectively, the \"Service\"). \t\t</p>\t\t\t\t<h2>Changes to the Service or these Terms</h2>\t\t<p>\t\tWe may make changes to, update (or not update) or discontinue any part, element, functionality, availability or offering of the Service.\t\tWe may also make changes or updates to these Terms at any time and for any reason in our sole discretion, including complying with applicable law. \t\tIf we make any material changes to these Terms, we\u2019ll provide notice to you in any way we deem reasonable including, for example, \t\tby posting a notice of the change on our web site(s) or in-service, or by sending a notice to your email address if you\u2019ve given it to us.\t\t</p>\t\t\t\t<h2>Your content</h2>\t\t<p>\t\tThese Terms don\u2019t grant us (and we don\u2019t claim) any ownership rights in Your Content.\t\t</p>\t\t<p>\t\t<b>Posting Your Content.</b> By sharing, publishing (e.g. through Imgur), distributing or allowing others to \t\taccess Your Content through the Service You are solely responsible for the consequences of doing so and you acknowledge \t\tand agree that Your Content may be viewed worldwide. If you choose to make your personal information publicly available through the Service, \t\tyou do so at your own risk. You warrant that you have obtained all necessary licenses, \t\trights and permissions to use and grant all of the rights granted in these Terms\t\tto Your Content and that you will comply with any requirements or restrictions imposed by them.\t\t</p>\t\t<!--\t\t<p>\t\tWe have the right (but not the obligation) to pre-screen or monitor any Content or any user's access to the Service,\t\tand to remove or block access to any Content for any reason, or suspend or terminate any user's access to the Service for any reason. \t\tWe have no responsibility or liability with respect to any Content, including for any actions that we may take with respect \t\tto any Content that we determine violates these Terms.\t\t</p>\t\t-->\t\t\t\t<h2>Registering for the Service</h2>\t\t<p>\t\tYou may be required or permitted to register with us to access the Service or certain areas of the Service.\t\tYou agree to immediately notify us of any unauthorized use of your registration information (including all purchases). \t\tYou may also be able to sign into the Service by using a third-party social networking platform account \t\t(such as Facebook, Google+ or Twitter). Your registration information (including your user name and password, \t\tand any social networking account with which you sign into the Service) is for your personal use only, and not for use by any other person. \t\tYou are responsible for maintaining the confidentiality of any password you may use to access the Service, and agree not to transfer your password or user name\t\tto any third party. You are fully responsible for all use of your registration information, \t\tand to ensure that you \"log out\"/exit from your account with the Service (if applicable) \t\tat the end of each session. We are not liable for any loss or damage arising from your failure to comply with any of the foregoing obligations. \t\t</p>\t\t\t\t<h1>Privacy Policy</h1>\t\t\t\t<p>\t\tBy voluntarily providing us with Personal Data, you are consenting to our use of it in accordance with this Privacy Policy. \t\tIf you provide Personal Data to the Service, you acknowledge and agree that such Personal Data may be transferred from your current location to our servers.\t\t</p>\t\t<p>Computer information collected:</p>\t\t\t\t<ul>\t\t\t\t<li><b>Third party tracking tools.</b> We use third party tracking tools to improve the performance and features of the Service (e.g. Google Analytics).\t\t\t\tSuch tools are created and managed by parties outside our control. As such, we are not responsible for what information is actually captured by such third parties \t\t\t\tor how such third parties use and protect that information.</li>\t\t\t\t\t\t\t\t<li><b>Name and email for the authorization.</b> You may use third-party services (such as Facebook or Google) to log into the Service. \t\t\t\tIn such case, we store your name and email address, that were provided to us by third-party services.</li>\t\t\t\t\t\t\t\t<li><b>Environment settings.</b> When you use the Service, environment settings (e.g. current language, current color theme) \t\t\t\tare stored at your computer in \"localData\".\t\t\t\tIt helps us provide you the same environment when you visit the Service next time.<br/>\t\t\t\tWhen you log into the Service, your environemnt settings are stored at our server. \t\t\t\t</li>\t\t\t\t\t\t\t\t<li><b>Payer information.</b> When you make an order inside the Service and you pay through a third-party service (e.g. PayPal), \t\t\t\twe may store the information about the payer, that we may receive from the third-party service \t\t\t\t(it usually contains the name, the email address and the physical address of the payer, but no card nambers or passwords).</li>\t\t</ul>\t\t\t\t";
function gZ(){dz.call(this,[11,14],"addguides");this.Mc;this.W3={Gg:{iJ:0}};this.ws=null;var Z=s.R("div","form");
this.body.appendChild(Z);this.Dd=new cY([22,4,0],null,16);this.Dd.i(s.E.L,this.A_,this);this.Oq=new cY([22,4,1],null,16);
this.Oq.i(s.E.L,this.A_,this);this.oS=new gl(null,T.dp.XV);this.oS.i(s.E.L,this.A_,this);Z.appendChild(this.Dd.j);
Z.appendChild(this.oS.j);s.X3(Z);Z.appendChild(this.Oq.j);this.NC=new fX("OK",!0,null,!0);this.NC.i("click",this.sw,this);
Z.appendChild(this.NC.j);this.i("closebtn",this.a6i,this)}gZ.prototype=new dz;gZ.prototype.ZP=function(Z,S){return Z!=null};
gZ.prototype.K7=function(){return!0};gZ.prototype.B=function(){dz.prototype.B.call(this);this.Dd.B();
this.Oq.B();this.oS.B()};gZ.prototype.na=function(Z,S){var b=Z.Gg.iJ;this.W3.Gg.iJ=b;this.oS.F(b)};gZ.prototype.lX=function(Z,S){this.Mc=Z;
this.ws=JSON.stringify(Z.vE);this.WB()};gZ.prototype.WB=function(){var Z=this.Mc,S=Z.vE,b=function(Y,Z,P,w){var f=[];
for(var D=0;D<Y.length;D++)f.push(T.dp.Rv(Y[D],Z.GY,P,w));return f.join(", ")};this.Dd.F(b(S[1],Z,this.W3,Z.v));
this.Oq.F(b(S[0],Z,this.W3,Z.c))};gZ.prototype.A_=function(Z){if(Z&&Z.currentTarget==this.oS)this.W3.Gg.iJ=this.oS.u();
else{var S=this.jI(this.Dd),b=this.jI(this.Oq),Y=this.Mc;Y.vE=[b,S];Y.nd=!0}this.WB()};gZ.prototype.jI=function(Z){var S=Z==this.Dd?this.Mc.v:this.Mc.c,b=Z.u().replace(/,/g," ").replace(/ +/g," ").trim(),Y=b==""?[]:b.split(" ");
for(var D=0;D<Y.length;D++)Y[D]=T.dp.a6L(Y[D],this.Mc.GY,this.W3,S);return Y};gZ.prototype.a6i=function(Z){var S=this.Mc;
S.vE=JSON.parse(this.ws);S.nd=!0;this.Mc=null};gZ.prototype.sw=function(Z){this.A_(Z);var S=new d(s.E.s,!0);
S.T=G.hK;S.data={e:"gids",WI:JSON.parse(this.ws),If:JSON.parse(JSON.stringify(this.Mc.vE))};this.Mc=null;
this.close();this.m(S)};function aA(Z){var S=cL.names[Z];if(S==null)S=g3.names[Z];if(Z=="aply")S="Apply Image";
if(Z=="fade")S=[2,11];if(Z=="blendOptions")S=[14,10];dz.call(this,S,"afw_"+Z);this.fb=Z;this.r$=null;
this._p=null;this.Hq=new _[Z];this.Hq.i(s.E.L,this.SI,this);this.Hq.parent=this;this.body.appendChild(this.Hq.j);
this.ar=new ec([24,18,5]);this.ar.F(!0);this.ar.i(s.E.L,this.SI,this);this.akJ=new fX("Reset",!0,null,!0);
this.akJ.i("click",this.nb,this);this.NC=new fX("OK",!0,null,!0);this.NC.i("click",this.sw,this);if(this.wv())this.Hq.nK(this.NC.j);
else{s.zy(this.Hq.j,"form");s.zy(this.body,"flexrow");this.Hq.j.setAttribute("style","width:24em");var b=s.R("div");
this.body.appendChild(b);b.setAttribute("style","width:8em; margin-left:1em; line-height:2.3em");b.appendChild(this.NC.j);
b.appendChild(this.akJ.j);b.appendChild(this.ar.j)}this.i("closebtn",this.qK,this)}aA.prototype=new dz;
aA.prototype.K7=function(){return!0};aA.prototype.wv=function(){return this.Hq!=null&&this.Hq.RX()};
aA.prototype.pn=function(){return this.wv()?new ar(0,0):dz.prototype.pn()};aA.prototype.NK=function(){return this.Hq.NK()};
aA.prototype.Os=function(Z,S,b,Y,P){this.Hq.Os(Z,S,b,Y,P)};aA.prototype.Zq=function(Z,S,b,Y,P){this.Hq.Zq(Z,S,b,Y,P)};
aA.prototype.Xa=function(Z,S,b,Y,P){this.Hq.Xa(Z,S,b,Y,P)};aA.prototype.ZP=function(Z,S){if(this.fb=="fade")return aA.UX(Z);
return!0};aA.prototype.nb=function(Z){this.Hq.F(cL.VS(this.fb));this.SI()};aA.prototype.SI=function(Z){this.HZ({e:"edit",$0:this.Hq.u(),XP:!this.ar.u()})};
aA.prototype.qK=function(Z){this.HZ({e:"cancel"})};aA.prototype.sw=function(Z){if(!this.ar.u()){this.ar.F(!0);
this.SI()}this._p=this.Hq.u();if(this.wv())this.SI();this.HZ({e:"confirm"});this.close()};aA.prototype.B=function(){dz.prototype.B.call(this);
this.ar.B();if(this.Hq)this.Hq.B()};aA.prototype.na=function(Z,S){if(this.Hq)this.Hq.na(Z,S)};aA.prototype.XF=function(Z,S,b,Y){if(this.wv())this.Hq.XF(Y);
else dz.prototype.XF.call(this,Z,S,b,Y)};aA.prototype.lX=function(Z,S,b,Y){this.r$=S.r$;var P=Z.add.lnk2?Z.add.lnk2:[],w,f,h=new b4(0,0,Z.c,Z.v),Q=Z.t[Z.C[0]],e=null;
w=Q.buffer;f=Q.rect;if(this.wv())e=Z.Zd(Z.C[0]-1);var l=cL.VS(this.fb),O=[P,Z.eP,Z];if(S.r$==null){this.Hq.F(l,w,f,h,e,O);
if(g3.names[this.fb]){if(Y.q(U.G_)&&this._p)this.Hq.F(this._p);var m=dK.MX.getData(Z),V=T.YY(m[0].Le);
this.Hq.Oj(V)}}else{var q=!1,Q=Z.t[this.r$.$];if(Q.pL()){var K=Q.fY(Z);w=K.buffer;f=K.rect;var z=Q.add.SoLd.filterFX.v.filterFXList.v;
if(z[this.r$.index]){var t=z[this.r$.index].v;this.Hq.F(this.fb=="blendOptions"?t.blendOptions.v:t.Fltr.v,w,f,h,e,O);
this.Hq.Oj(T.YY(w));q=!0}}if(!q){this.Hq.F(l,w,f,h,e,O);this.Hq.Oj(T.YY(w))}}if(!this.wv())this.SI()};
aA.prototype.HZ=function(Z){var S=new d(s.E.s,!0);Z.fb=this.fb;Z.r$=this.r$;S.data=Z;S.T=cL.names[this.fb]||this.r$?G.$n:G.cC;
S.j9=!0;this.m(S)};aA.prototype.Xd=function(Z,S){S=S-26;Z=Z-26;this.Hq.Xd(Z,S)};aA.UX=function(Z){if(Z==null)return!1;
var S=Z.Yl();if(S==null||!(S.data instanceof Array)||S.data.length!=Z.C.length)return!1;for(var D=0;
D<S.data.length;D++){var b=S.data[D];if(b.$<0&&Z.eP[-1-b.$])return!0;if(b.$==null||Z.t[b.$]==null||Z.t[b.$].PC!=b.D3)return!1;
if(Z.C.indexOf(b.$)==-1)return!1}return!0};function ik(){dz.call(this,[11,0],"camera");this.data=null;
this.qX=new ar(1,1);this.a9M=[];var Z=s.R("div","form hbar");this.body.appendChild(Z);this.ah0=new gl(null,[]);
this.hk=new gl([21,0],[[21,2],[21,1]]);Z.appendChild(this.hk.j);this.Zs=new gl(null,[]);this.Zs.i(s.E.L,this.LJ,this);
Z.appendChild(this.Zs.j);this.YW=new fX([11,0],!1,null,!0);this.YW.i("click",this.ak6,this);Z.appendChild(this.YW.j);
this.HW=new bE("");Z.appendChild(this.HW.j);this.stream=null;this.fL=s.R("video","");this.fL.setAttribute("autoplay","true");
this.body.appendChild(this.fL);this.a6V=this.ahL.bind(this);this.ahs=this.abX.bind(this);this.a2w=this.ana.bind(this);
this.i("closebtn",this.d0,this)}ik.prototype=new dz;ik.prototype.B=function(){dz.prototype.B.call(this);
this.hk.B();this.YW.B();this.Xd(this.Yu,this.XE)};ik.prototype.Zd=function(){var Z=this.fL.videoWidth,S=this.fL.videoHeight,b=s.R("canvas","");
b.width=Z;b.height=S;var Y=b.getContext("2d");Y.drawImage(this.fL,0,0,Z,S);var P=Y.getImageData(0,0,Z,S);
return{Vl:new b4(0,0,Z,S),data:P.data.buffer}};ik.prototype.ak6=function(Z){if(this.hk.u()==0)this.a8r();
else this.anT()};ik.prototype.anT=function(){var Z=this.Zd(),S={buffer:new Uint8Array(Z.data),rect:Z.Vl},b=new d(s.E.s,!0);
b.j9=!0;b.T=G.kd;b.data={e:F.nC,fZ:S};this.m(b);alert(aV.get([21,4]))};ik.prototype.a8r=function(){var Z=this.Zd(),S=ab.kR("camera",[Z]),b=new d(s.E.P,!0);
b.data={e:s.U.hT,hp:S};this.m(b);alert(aV.get([21,5]))};ik.prototype.lX=function(Z,S,b){navigator.mediaDevices.enumerateDevices().then(this.aeG.bind(this))};
ik.prototype.aeG=function(Z){var S=this.a9M=[],b=[];for(var D=0;D<Z.length;D++)if(Z[D].kind=="videoinput"){S.push(Z[D]);
b.push("Camera "+S.length)}this.Zs.vL(b);this.Zs.F(0);this.LJ()};ik.prototype.LJ=function(Z){this.d0();
var S={video:{deviceId:this.a9M[this.Zs.u()].deviceId,width:{ideal:8e3},height:{ideal:8e3}}};if(navigator.mediaDevices.getUserMedia)navigator.mediaDevices.getUserMedia(S).then(this.a6V).catch(this.ahs);
else navigator.webkitGetUserMedia(S,this.a6V,this.ahs)};ik.prototype.ahL=function(Z){this.stream=Z;this.fL.srcObject=Z;
this.fL.addEventListener("loadedmetadata",this.a2w,!1)};ik.prototype.ana=function(Z){this.fL.play();
this.Xd(this.Yu,this.XE)};ik.prototype.pn=function(Z,S){return new ar(0,0)};ik.prototype.Xd=function(Z,S){var b=this.fL.videoWidth,Y=this.fL.videoHeight;
this.HW.F(b+" x "+Y+" px");this.HW.j.setAttribute("style","position:absolute; left:14px; bottom:10px; z-index:1;");
this.qX.Ha(b,Y);this.Yu=Z;this.XE=S;var P=Z-28,w=S-28-30,f=this.qX.x/this.qX.y;if(P/w>f)P=w*f;else w=P/f;
this.fL.setAttribute("style","display: block; width: "+Math.round(P)+"px; height:"+Math.round(w)+"px;")};
ik.prototype.abX=function(Z){console.log("error",Z);alert(aV.get([21,6]));this.close()};ik.prototype.d0=function(Z){if(this.stream!=null){var S=this.stream.getTracks();
for(var D=0;D<S.length;D++)S[D].stop();this.stream=null}};function g8(){dz.call(this,[7,8],"crange");
this.Mc=null;this.T6={lq:73,w:4.45,O:4};this.Z2={lq:73,w:4.45,O:4};var Z=s.R("div","form");Z.setAttribute("style","width:18em");
this.body.appendChild(Z);this.rA=new bS([12,92],0,200);this.rA.F(40);this.rA.i(s.E.L,this.T2,this);Z.appendChild(this.rA.j);
this.QY=s.R("canvas");Z.appendChild(this.QY);this.Aa=new gT([12,36],[[18,0],"\uFF0B","\u2014"]);Z.appendChild(this.Aa.j);
this.LT=new fX("OK",!0,null,!0);this.LT.i("click",this.sw,this);this.body.appendChild(this.LT.j)}g8.prototype=new dz;
g8.prototype.ZP=function(Z,S){return Z!=null};g8.prototype.NK=function(){return!0};g8.prototype.K7=function(){return!0};
g8.prototype.B=function(){dz.prototype.B.call(this);this.rA.B();this.Aa.B()};g8.prototype.Os=function(Z,S,b,Y,P){var w=Z.a._2(P.x,P.y);
this.$q(w.x,w.y)};g8.prototype.$q=function(Z,S){var b=Math.min,Y=Math.max,P=this.Mc,w=Y(0,b(P.c-1,Math.floor(Z))),f=Y(0,b(P.v-1,Math.floor(S))),h=P.Zd(),Q=(f*P.c+w)*4,e=h[Q],l=h[Q+1],O=h[Q+2],m=T.N1(e,l,O),V=this.Aa.u(),q=this.T6,K=this.Z2;
if(V==0){this.T6=JSON.parse(JSON.stringify(m));this.Z2=m}else if(V==1){q.lq=b(q.lq,m.lq);q.w=b(q.w,m.w);
q.O=b(q.O,m.O);K.lq=Y(K.lq,m.lq);K.w=Y(K.w,m.w);K.O=Y(K.O,m.O)}else if(V==2){var z=(q.lq+K.lq)/2,t=(q.w+K.w)/2,H=(q.O+K.O)/2;
if(m.lq<z)q.lq=Y(q.lq,m.lq+10);else K.lq=b(K.lq,m.lq-10);if(m.w<t)q.w=Y(q.w,m.w+1);else K.w=b(K.w,m.w-1);
if(m.O<H)q.O=Y(q.O,m.O+1);else K.O=b(K.O,m.O-1)}this.T2()};g8.prototype.sw=function(Z){var S=new d(s.E.s,!0);
S.T=G.r9;S.data={e:"crange",Ce:this.T6,Jz:this.Z2,hx:this.rA.u()/200};S.j9=!0;this.m(S);this.close()};
g8.prototype.lX=function(Z,S){this.Mc=Z;this.$q(0,0)};g8.prototype.T2=function(){var Z=this.Mc,S=G.Ks.zJ(Z,this.T6,this.Z2,this.rA.u()/200),b=S.rect,Y=S.channel,P=this.QY,w=P.getContext("2d"),f=Math.floor(230*s.Z()),h=Math.floor(f*(b.v/b.c));
P.width=f;P.height=h;s.$k(P,f,h);var Q=T.f(Y.length*4);T._U(Q,4294967295);for(var D=0;D<3;D++)T.y8(Y,Q,D);
var e=G.V.DP([Q,b],new fR(f/b.c,0,0,h/b.v,0,0)),l=e.rect,O=new ImageData(new Uint8ClampedArray(e.buffer.buffer),l.c,l.v);
w.putImageData(O,0,0)};function gw(){dz.call(this,[12,76,1],"createshape");this.jw=null;var Z=s.R("div","form");
Z.setAttribute("style","width:20em");this.body.appendChild(Z);this.O0=new c2([12,41],0,0,null,0,!1,!0);
Z.appendChild(this.O0.j);s.X3(Z);this.Dd=new c2([12,42],0,0,null,0,!1,!0);Z.appendChild(this.Dd.j);s.X3(Z);
this.Hj=new ec([19,5,3]);Z.appendChild(this.Hj.j);this.O0.F(100);this.Dd.F(100);this.NC=new fX("OK",!0,null,!0);
this.NC.i("click",this.sw,this);Z.appendChild(this.NC.j)}gw.prototype=new dz;gw.prototype.sw=function(Z){this.jw.a40(this.jw.abe,this.O0.u(),this.Dd.u(),this.Hj.u());
this.close()};gw.prototype.B=function(){if(this.jw)this.af=aV.get([5,3])+": "+aV.get(this.jw.a9g);dz.prototype.B.call(this);
this.O0.B();this.Dd.B();this.Hj.B()};gw.prototype.lX=function(Z,S){this.jw=S;this.B()};function a$(){dz.call(this,[11,1],"colorpicker");
this.rh=null;this.mB=null;this.YN=null;this.Ek=!1;this.By=!1;var Z=s.R("div","flexrow"),w,f;this.body.appendChild(Z);
this.RA=new ho(256);this.RA.i(s.E.L,this.gT,this);Z.appendChild(this.RA.j);var S=s.R("div","form");S.setAttribute("style","width:14.5em; margin-left:1em;");
Z.appendChild(S);this.aeg=s.R("div","full");S.appendChild(this.aeg);this.ai5=s.R("div","full");S.appendChild(this.ai5);
var b=s.R("div","flexrow");S.appendChild(b);var Y=s.R("div"),P=s.R("div");b.appendChild(Y);b.appendChild(P);
w=["R","G","B"];f=Y;this.Iw=[];for(var D=0;D<3;D++){var h=new c2(w[D]+":",0,255,null,0,!1,!0);this.Iw.push(h);
h.i(s.E.L,this.aiS,this);f.appendChild(h.j)}w=["H","S","B"];f=P;this.jY=[];for(var D=0;D<3;D++){var Q=0,e=360,l="\xB0";
if(D!=0){e=100;l="%"}var h=new c2(w[D]+":",Q,e,l,0,!1,!0);this.jY.push(h);h.i(s.E.L,this.a2Z,this);f.appendChild(h.j)}this.Dd=new cY("Hex",null,6);
this.Dd.i(s.E.L,this._l,this);S.appendChild(this.Dd.j);this.t$=s.R("input","fitem");this.t$.setAttribute("type","color");
this.t$.setAttribute("style","width:50px");this.t$.addEventListener("change",this._l.bind(this),!1);
S.appendChild(this.t$);this.fG=new cM(9);this.fG.i(s.E.L,this._l,this);S.appendChild(this.fG.j);this.NC=new fX("OK",!0,null,!0);
this.NC.i("click",this.sw,this);S.appendChild(this.NC.j);this.i("closebtn",this.qK,this);this.rw=!1}a$.prototype=new dz;
a$.prototype.NK=function(){return!0};a$.prototype.Xd=function(Z,S){this.RA.Xd(Math.min(256,Z-250),S)};
a$.prototype.gT=function(Z){this.mB=this.RA.u();this.update()};a$.prototype.Os=function(Z,S,b,Y,P){this.rw=!0;
this.US(Z,P)};a$.prototype.Zq=function(Z,S,b,Y,P){if(!this.rw)return;this.US(Z,P)};a$.prototype.Xa=function(Z,S,b,Y,P){this.rw=!1};
a$.prototype.US=function(Z,S){var b=G.B1.mK(Z,S,1),Y=b&255,P=b>>8&255,w=b>>16&255;this.mB={h:w/255,l:P/255,O:Y/255};
this.update()};a$.prototype.aiS=function(Z){var S=this.Iw,b=this.xS(parseInt(S[0].u())),Y=this.xS(parseInt(S[1].u())),P=this.xS(parseInt(S[2].u()));
this.mB={h:b/255,l:Y/255,O:P/255};this.update()};a$.prototype.a2Z=function(Z){var S=this.jY,b=this.fA(parseInt(S[0].u())/360),Y=this.fA(parseInt(S[1].u())/100),P=this.fA(parseInt(S[2].u())/100);
this.mB=T.Ta(b,Y,P);this.update()};a$.prototype._l=function(Z){var S;if(Z.currentTarget==this.fG)S=this.fG.u();
else{S=Z.currentTarget==this.Dd?this.Dd.u():this.t$.value;if(S.charAt(0)=="#")S=S.slice(1);if(S.length==3)S=S[0]+S[0]+S[1]+S[1]+S[2]+S[2];
S=T.sH(S)}this.mB={h:(S>>16&255)/255,l:(S>>8&255)/255,O:(S&255)/255};this.update()};a$.prototype.CJ=function(Z){var S=Z.h,b=Z.l,Y=Z.O;
return Math.round(S*255)<<16|Math.round(b*255)<<8|Math.round(Y*255)};a$.prototype.sw=function(Z){this.He();
var S=this.CJ(this.mB);this.YN(S);this.close();this.By=!1;this.mB=null};a$.prototype.qK=function(Z){this.He();
if(this.Ek)this.YN(this.CJ(this.rh));this.By=!1;this.mB=null};a$.prototype.He=function(Z){var S=new d(s.E.P,!0);
S.data={e:s.U.fB};this.m(S)};a$.prototype.na=function(Z,S){if(S!=bp.tN)return;var b=Z.ui;this.fG.F(b);
if(this.mB!=null){this.mB={h:(b>>16&255)/255,l:(b>>8&255)/255,O:(b>>0&255)/255};this.update()}};a$.prototype.lX=function(Z,S){var b=S.gV,Y={h:(b>>16&255)/255,l:(b>>8&255)/255,O:(b>>0&255)/255};
if(this.mB==null){var P=new d(s.E.P,!0);P.data={e:s.U.il,tf:"crosshair",push:!0};this.m(P);this.rw=!1;
this.YN=S.iy;this.Ek=!1;this.By=S.gz;this.rh=JSON.parse(JSON.stringify(Y));this.ai5.setAttribute("style","height:3em;background-color:#"+T.T3(b)+";")}this.mB=Y;
this.update()};a$.prototype.update=function(){var Z=this.mB,S=this.CJ(Z),b=this.Iw;b[0].F(Math.round(Z.h*255));
b[1].F(Math.round(Z.l*255));b[2].F(Math.round(Z.O*255));this.Dd.F(T.T3(S));this.t$.value="#"+T.T3(S);
this.aeg.setAttribute("style","height:3em;background-color:#"+T.T3(S)+";");var Y=T.hy(Z.h,Z.l,Z.O);b=this.jY;
b[0].F(Math.round(Y.XE*360));b[1].F(Math.round(Y.zk*100));b[2].F(Math.round(Y.$0*100));this.RA.F(Z);
if(this.By){this.YN(this.CJ(this.mB));this.Ek=!0}};a$.prototype.xS=function(Z){return Math.max(0,Math.min(255,Z))};
a$.prototype.fA=function(Z){return Math.max(0,Math.min(1,Z))};function iM(){dz.call(this,[11,2],"contoureditor");
this.a9K=null;this.I6=null;this.response=null;this.YB=s.R("div","cell");this.body.appendChild(this.YB);
this._8=s.R("div","cell padded");this.body.appendChild(this._8);var Z=s.R("div","bordered padded vmargin");
this.YB.appendChild(Z);this.Hq=new fO;this.Hq.i(s.E.L,this.GV,this);Z.appendChild(this.Hq.j);this.NC=new fX("OK",!0,null,!0);
this.NC.i("click",this.close,this);this._8.appendChild(this.NC.j);this.coords=s.R("div","");this.coords.setAttribute("style","width:250px");
this.YB.appendChild(this.coords);this.W5=new cY("X (in)","%",4);this.pU=new cY("Y (out)","%",4);this.zI=new ec([19,3,0]);
this.W5.i(s.E.L,this.HC,this);this.pU.i(s.E.L,this.HC,this);this.zI.i(s.E.L,this.HC,this);this.coords.appendChild(this.W5.j);
this.coords.appendChild(this.zI.j);this.coords.appendChild(this.pU.j);this.i("closebtn",this.Jj,this)}iM.prototype=new dz;
iM.prototype.B=function(){dz.prototype.B.call(this);this.zI.B()};iM.prototype.GV=function(Z){this.I6.Crv.v=this.Hq.u();
this.response(this.I6);this.YQ()};iM.prototype.Jj=function(Z){this.response(this.a9K)};iM.prototype.lX=function(Z,S){this.a9K=JSON.parse(JSON.stringify(S.a_));
this.I6=S.a_;this.response=S.response;this.Hq.F(this.I6.Crv.v);this.YQ()};iM.prototype.YQ=function(){var D=this.Hq.eQ();
this.coords.setAttribute("class",D==-1?"disabled":"");if(D==-1)return;var Z=this.I6.Crv.v[D].v;this.W5.F(Math.round(Z.Hrzn.v*(100/255)));
this.pU.F(Math.round(Z.Vrtc.v*(100/255)));this.zI.F(Z.Cnty.v)};iM.prototype.HC=function(Z){var D=this.Hq.eQ(),S=this.I6.Crv.v[D];
S.v.Hrzn.v=parseFloat(this.W5.u())*(255/100);S.v.Vrtc.v=parseFloat(this.pU.u())*(255/100);S.v.Cnty.v=this.zI.u();
this.I6.Crv.v.sort(function(b,Y){return b.v.Hrzn.v-Y.v.Hrzn.v});this.Hq.F(this.I6.Crv.v,this.I6.Crv.v.indexOf(S));
this.YQ();this.response(this.I6)};function ei(){dz.call(this,[11,3],"csize");this.co=0;this.sV=s.R("div","form");
this.sV.setAttribute("style","width:22em");this.body.appendChild(this.sV);this.Dg=new cA(!0,!0,!0,!0);
this.Dg.a32(!1);this.sV.appendChild(this.Dg.j);this.ZK=new gT("Align with",[[8,7],[12,6]]);this.ZK.i(s.E.L,this.afk,this);
this.w_=new d4([12,23,2],41);this.sV.appendChild(this.w_.j);this.w_.F(4);this.nz=new f0(!1);this.nz.a6Z(new ar(0,0));
this.LT=new fX("OK",!0,null,!0);this.LT.i("click",this.sw,this);this.body.appendChild(this.LT.j)}ei.prototype=new dz;
ei.prototype.ZP=function(Z,S){return Z!=null};ei.prototype.K7=function(){return!0};ei.prototype.afk=function(){var Z=[this.w_.j,this.nz.j];
this.sV.removeChild(Z[this.co]);this.co=this.ZK.u();this.sV.appendChild(Z[this.co])};ei.prototype.B=function(){dz.prototype.B.call(this);
this.Dg.B();this.ZK.B();this.w_.B();this.nz.B()};ei.prototype.sw=function(Z){var S=this.Dg.u(),b=S.x,Y=S.y,P=new d(s.E.TH,!0);
P.data=G.PK.K5(b,Y,this.w_.u());this.close();this.m(P)};ei.prototype.lX=function(Z,S){this.Dg.F(new ar(Z.c,Z.v),Z.GY)};
function eM(){dz.call(this,[11,4],"duplinto");this.G3=null;this.E7=null;var Z=s.R("div","form");Z.setAttribute("style","max-width:26em");
this.body.appendChild(Z);this.yo=new gl([12,43],["abc","def"]);this.yo.i(s.E.L,this.Zf,this);Z.appendChild(this.yo.j);
s.X3(Z);this.rT=new cY([12,48],null,14);Z.appendChild(this.rT.j);this.NC=new fX("OK",!0,null,!0);this.NC.i("click",this.sw,this);
Z.appendChild(this.NC.j)}eM.prototype=new dz;eM.prototype.K7=function(){return!0};eM.prototype.B=function(){dz.prototype.B.call(this);
this.yo.B();this.rT.B()};eM.prototype.Zf=function(Z){var S=this.yo.u();if(S==this.E7.length)this.rT.zA();
else this.rT.J7()};eM.prototype.lX=function(Z,S,b){this.G3=Z;this.E7=b;this.rT.F(Z.C.length==0?"Layer":Z.t[Z.C[0]].getName());
var Y=[];for(var D=0;D<b.length;D++)Y.push(b[D].name);Y.push([11,7]);this.yo.vL(Y);this.yo.F(b.indexOf(Z));
this.Zf(null)};eM.prototype.sw=function(Z){var S=this.yo.u();if(S==this.E7.length){var b=new gf(this.rT.u()+".psd");
b.c=this.G3.c;b.v=this.G3.v;b.buffer=T.f(b.c*b.v*4);var Y=b.Dl();Y.wc("Background");b.vM([Y]);var P=new d(s.E.P,!0);
P.j9=!0;P.data={e:s.U.hT,hp:b};this.m(P)}var w=this.G3.Ac(null,this.G3!=this.E7[S]),P=new d(s.E.s,!0);
P.data={e:F.Fd,t:w,UY:this.G3,Zn:this.E7[S]};P.T=G.kd;P.j9=!0;this.m(P);this.close()};function hq(){dz.call(this,[1,9],"eassets");
this.W3=null;this.mP=null;var Z=s.R("div","form");Z.setAttribute("style","width:32em");this.body.appendChild(Z);
this.b4=s.R("span");Z.appendChild(this.b4);s.X3(Z);this.OV=[new ec("Only layers / folders, whose name starts with \"-e-\""),new ec("Remove parts outside the canvas"),new ec("Trim transparent parts")];
for(var D=0;D<3;D++){var S=this.OV[D];S.F(!0);S.i(s.E.L,this.WB,this);Z.appendChild(S.j);s.X3(Z)}this.GS=new eW([12,14,0],["1x","2x","3x","4x"]);
this.GS.F([!0,!1,!1,!1]);Z.appendChild(this.GS.j);s.Sg(Z);this.I8=["PNG","JPG","SVG"];this.rl=new gl([12,50],this.I8);
this.rl.i(s.E.L,this.t8,this);Z.appendChild(this.rl.j);this.pl=new dp;Z.appendChild(this.pl.j);this.LT=new fX([1,9],!0,null,!0);
this.LT.i("click",this.sw,this);Z.appendChild(this.LT.j);this.i("closebtn",this.ze,this)}hq.prototype=new dz;
hq.prototype.t8=function(Z){this.pl.y3(this.I8[this.rl.u()])};hq.prototype.ze=function(Z){this.mP=null};
hq.prototype.B=function(){dz.prototype.B.call(this);this.rl.B();this.GS.B();this.LT.B();this.pl.B()};
hq.prototype.lX=function(Z,S,b){this.mP=Z;this.WB()};hq.prototype.WB=function(Z){var S=this.GZ(),b="- - - "+S.length+" exportable layers";
this.b4.textContent=b;this.t8(null)};hq.prototype.GZ=function(){var Z=this.OV[0].u(),S=[],b=this.mP;
for(var D=0;D<b.t.length;D++){var Y=b.t[D],P=Y.getName();if(!Z&&!Y.W$()&&!Y.rect.h3()||P.startsWith("-e"))S.push(D)}return S};
hq.prototype.na=function(Z,S){this.W3=Z};hq.prototype.sw=function(Z){var S=this.mP,b=[this.I8[this.rl.u()]],Y=[this.pl.u()],P=this.GS.u(),w={},f={},h=this.GZ();
if(h.length==0){alert("No layers to export.");return}var Q=[this.OV[1].u(),this.OV[2].u()];for(var D=0;
D<h.length;D++){var e=h[D],l=S.t[e],O=l.getName();if(f[O]!=null){f[O]++;O+=" "+f[O]}else f[O]=1;var m=l._7();
l.Ba(!0);for(var V=0;V<P.length;V++){if(!P[V])continue;var q=V+1,K=G.sR.SA(S,b,q,this.W3,e,Y,Q);for(var z=0;
z<b.length;z++){var t=b[z],H=O.slice(O.startsWith("-e-")?3:0)+(q==1?"":"-"+q+"x")+"."+t.toLowerCase();
if(K[z])w[H]=new Uint8Array(K[z])}}l.Ba(m)}var i=UZIP.encode(w),y=new d(s.E.P,!0);y.data={e:s.U.d9,data:i,name:"assets.zip"};
this.m(y)};function bK(){dz.call(this,"Export Color Lookup Tables","exlut");this.W3=null;this.mP=null;
var Z=s.R("div","form");Z.setAttribute("style","width:20em");this.body.appendChild(Z);this.OV=[new c2("Grid Points",1,256),new gT([12,50],[".CUBE"])];
var S=[16,0];for(var D=0;D<this.OV.length;D++){var b=this.OV[D];b.F(S[D]);b.parent=this;b.i(s.E.L,this.WB,this);
Z.appendChild(b.j);s.X3(Z)}this.LT=new fX("OK",!0,null,!0);this.LT.i("click",this.sw,this);Z.appendChild(this.LT.j);
this.i("closebtn",this.ze,this)}bK.prototype=new dz;bK.prototype.ZP=function(Z,S){if(Math.min(Z.c,Z.v)<16){alert("The document must be at least 16 x 16 pixels.",3200);
return!1}if(Z.t.length<2){alert("There must be a background layer and some adjustment layers.",3200);
return!1}return!0};bK.prototype.ze=function(Z){this.mP=null};bK.prototype.na=function(Z,S){this.W3=Z};
bK.prototype.lX=function(Z,S,b){this.mP=Z};bK.prototype.sw=function(){var Z=this.mP,S=this.OV[0].u(),b=[],Y=new b4(0,0,Z.c,Z.v),P=T.f(S*S*4),w=P.slice(0),f=new b4(Z.c-S>>>1,Z.v-S>>>1,S,S),h=Z.t[0],Q=h.buffer,e=h.rect;
h.rect=f;h.buffer=P;for(var l=0;l<S;l++){this.a6v(S,l,P);h.D(f);Z.D(f);var O=Z.Zd();T.uH(O,Y,w,f);for(var m=0;
m<S;m++)for(var V=0;V<S;V++){var q=m*S+V<<2;b.push(w[q]/255,w[q+1]/255,w[q+2]/255)}}var K=c3.aeu(b,S,Z.name);
fY.save(K,Z.name.split(".")[0]+".CUBE");h.buffer=Q;h.rect=e;h.D();Z.D()};bK.prototype.a6v=function(Z,S,b){var Y=255/(Z-1),P=Math.round(S*Y);
for(var w=0;w<Z;w++)for(var f=0;f<Z;f++){var h=w*Z+f<<2;b[h]=Math.round(f*Y);b[h+1]=Math.round(w*Y);
b[h+2]=P;b[h+3]=255}};bK.prototype.B=function(){dz.prototype.B.call(this);for(var D=0;D<this.OV.length;
D++)this.OV[D].B()};function aI(){dz.call(this,[1,14],"finfo");this.nM=null;this.t0=null;this.Cr=null;
this.sV=s.R("div","form scrollable label12");this.sV.setAttribute("style","width:35em; height:38em; margin-bottom:8px");
this.body.appendChild(this.sV);var Z=s.R("div","form");this.body.appendChild(Z);this.jn=new gl(null,["Hello"]);
Z.appendChild(this.jn.j);this.aj8=new fX("Add Parameter",!1,null,!0);Z.appendChild(this.aj8.j);this.aj8.i("click",this.lm,this);
this.xH=new fX("=== S A V E ===",!1,null,!0);Z.appendChild(this.xH.j);this.xH.i("click",this._F,this);
this.aay=""}aI.prototype=new dz;aI.prototype.pn=function(Z,S){return Z<450||S<450?new ar(0,0):new ar(150,100)};
aI.prototype.lm=function(Z){if(this.Cr.length==0)return;var S=this.Cr[this.jn.u()],b=this.xP();b[S]=b_.Ap[S][0];
this.Lf(b);this.t0[S].j.scrollIntoView();this.t0[S].vq()};aI.prototype.X$=function(Z){var S=this.xP();
delete S[Z.currentTarget.aks];this.Lf(S)};aI.prototype._F=function(Z){var S=this.xP(),b=this.nM,Y=!0;
for(var P in b)if(JSON.stringify(b[P])!=JSON.stringify(S[P]))Y=!1;for(var P in S)if(JSON.stringify(b[P])!=JSON.stringify(S[P]))Y=!1;
if(Y)return;var w=new d(s.E.s,!0);w.T=G.kd;w.data={e:F.J4,Xw:S};this.m(w);this.nM=S;this.Lf(S)};aI.A4=function(Z){function S(P){var w=P.toLowerCase();
return P==w}var b=Z.split(":").pop();for(var Y=1;Y<b.length-1;Y++){if(b[Y]==b[Y].toUpperCase()&&(S(b[Y+1])||S(b[Y-1]))){b=b.slice(0,Y)+" "+b.slice(Y);
Y++}}return b};aI.prototype.lX=function(Z,S){this.nM=Z.tU;this.Lf(Z.tU)};aI.prototype.Lf=function(Z){var S=this.sV,P=0;
s.Z9(S);var b=this.t0={},Y=["tiff","exif","exif:GPS"],w=this.Cr=[],f=[];for(var h in b_.Ap){var Q=aI.A4(h),e=0,l=15,O=null;
if(Z[h]==null){w.push(h);f.push(Q);continue}for(var D=0;D<Y.length;D++)if(h.startsWith(Y[D]))e=D;if(e!=P){s.Sg(S);
P=e}if(h=="tiff:ImageDescription"||h=="dc:Keywords"){l=18.5;O=3}var m=new cY(Q,null,l,O);b[h]=m;var V=Z[h];
if(V instanceof Array)V=V[1]==0?"---":V[0]+"/"+V[1];var q=new fX("\u2716",null,aV.get([5,4]));S.appendChild(q.j);
q.i("click",this.X$,this);q.aks=h;m.F(V);S.appendChild(m.j);s.X3(S);if(h=="exif:GPSLongitude"&&Z["exif:GPSLatitude"]){this.aay=aI.y5(Z["exif:GPSLatitude"])+","+aI.y5(Z["exif:GPSLongitude"]);
var K=new fX("Show on map",!1,null,!0);S.appendChild(K.j);s.X3(S);K.i("click",this.a9I,this)}}this.jn.vL(f);
this.jn.F(0)};aI.prototype.xP=function(){var Z=this.t0,S=b_.Ap,b={};for(var Y in S){var P=S[Y][0],w=typeof P;
if(P==null||Z[Y]==null)continue;var f=Z[Y].u(),h="The value of \""+aI.A4(Y)+"\" must ";if(w=="number"){f=parseFloat(f);
if(isNaN(f)){alert(h+"be a number.");f=P}}else if(P instanceof Array&&P.length==2){if(f.indexOf("/")==-1){alert(h+"be a fraction.");
f=P.slice(0)}else{f=f.split("/").map(parseFloat);if(isNaN(f[0])||isNaN(f[1])){f=P.slice(0)}}}b[Y]=f}return b};
aI.y5=function(Z){var S=Z.length,b=Z.slice(0,S-1).split(",").map(parseFloat),Y=Z.slice(S-1),P=b[0]+b[1]/60+b[2]/3600;
if(Y!="N"&&Y!="E")P=-P;return P};aI.prototype.a9I=function(Z){window.open("https://maps.google.com?q="+this.aay,"Map")};
function b0(){dz.call(this,[11,5],"gradienteditor");this.rh=null;this.mB=null;this.p0=null;this.YN=null;
this.Ek=!1;this.By=!1;s.zy(this.body,"form");this.iG=null;this.rx=null;this.hm=-1;this.Uj=-1;this.xR=0;
this._g=this.i$.bind(this);this.J$=this.sa.bind(this);this.u_=s.R("canvas","");this.Bi=this.u_.getContext("2d");
this.u_.setAttribute("style","display:block");this.Hk=null;s.QF(this.u_);s.TL(this.u_,this.Zx.bind(this));
this.w9=new c2([19,3,3],0,100,"%");this.w9.i(s.E.L,this.JP,this);this.w9.parent=this;this.body.appendChild(this.w9.j);
s.X3(this.body);this.Rp=new bE([12,0]);this.body.appendChild(this.Rp.j);this.DR=s.R("div","bordered padded noalign");
this.body.appendChild(this.DR);this.y6=new c2([12,0],0,100,"%");this.y6.parent=this;this.y6.i(s.E.L,this.JP,this);
this.DR.appendChild(this.y6.j);this.SY=new c2([12,40],0,100,"%");this.SY.parent=this;this.SY.i(s.E.L,this.JP,this);
this.DR.appendChild(this.SY.j);this.yV=new fX([5,4],!1,null,!0);this.yV.i("click",this.d2,this);this.DR.appendChild(this.yV.j);
this.body.appendChild(this.u_);s.X3(this.body);this.a6M=new bE([13,0]);this.body.appendChild(this.a6M.j);
this.d4=s.R("div","bordered padded noalign");this.body.appendChild(this.d4);this.OF=new gl([12,44],[[12,45],[12,46],[12,47]]);
this.OF.i(s.E.L,this.JP,this);this.d4.appendChild(this.OF.j);this.LC=new gy(!0);this.LC.parent=this;
this.LC.i(s.E.L,this.JP,this);this.d4.appendChild(this.LC.j);this.Rd=new c2([12,40],0,100,"%");this.Rd.parent=this;
this.Rd.i(s.E.L,this.JP,this);this.d4.appendChild(this.Rd.j);this.e6=new fX([5,4],!1,null,!0);this.e6.i("click",this.JW,this);
this.d4.appendChild(this.e6.j);this.NC=new fX("OK",!0,null,!0);this.NC.i("click",this.sw,this);this.body.appendChild(this.NC.j);
this.i("closebtn",this.qK,this)}b0.prototype=new dz;b0.prototype.qK=function(Z){if(this.Ek)this.YN(this.rh)};
b0.prototype.B=function(){dz.prototype.B.call(this);this.w9.B();this.Rp.B();this.a6M.B();this.yV.B();
this.e6.B();this.y6.B();this.SY.B();this.OF.B();this.Rd.B()};b0.prototype.na=function(Z,S){this.p0=Z};
b0.prototype.lX=function(Z,S){this.mB=JSON.parse(JSON.stringify(S.W));this.rh=JSON.parse(JSON.stringify(S.W));
this.iG=this.rx=null;this.YN=S.iy;this.Ek=!1;this.By=S.gz;this.Mn();this.WY()};b0.prototype.sw=function(Z){var S=this.mB;
this.YN(S);this.close()};b0.prototype.jo=function(Z){return Z==U.Qz||Z==U.pR};b0.prototype.XF=function(Z,S,b,Y){if(Y.q(U.Qz)||Y.q(U.pR)){if(this.rx)this.d2();
if(this.iG)this.JW()}};b0.prototype.d2=function(Z){var S=this.mB.Trns.v;if(this.rx==null||S.length==2)return;
S.splice(S.indexOf(this.rx),1);this.rx=null;this.Mn();this.WY()};b0.prototype.JW=function(Z){var S=this.mB.Clrs.v;
if(this.iG==null||S.length==2)return;S.splice(S.indexOf(this.iG),1);this.iG=null;this.Mn();this.WY()};
b0.prototype.Mn=function(){var Z=this.u_,S=this.Bi,b=s.Z();Z.width=Math.floor(410*b);Z.height=Math.floor(90*b);
s.$k(Z,Z.width,Z.height);this.Hk=new b4(0,0,Math.floor(380*b),Math.floor(32*b));this.Hk.x=Math.floor((this.u_.width-this.Hk.c)/2);
this.Hk.y=Math.floor((this.u_.height-this.Hk.v)/2);var Y=this.Hk,P=Y.c,w=Y.v,f=Y.x,h=Y.y,Q=new b4(0,0,P,w),e=S.getImageData(0,0,P,w),l=new Uint8Array(e.data.buffer);
T.bO(l,P,w,8);var O=T.f(P*w*4);T.W.Wz(this.mB,O,Q,[1/P,0,0,1/w],P/2,w/2,!1,0,this.p0.ui,this.p0.VY);
T.p.xJ("norm",O,Y,l,Y,Y,1);S.clearRect(0,0,Z.width,Z.height);S.putImageData(e,f,h);var m=this.mB.Trns.v,V=this.mB.Clrs.v,q=T.W.pV(V,this.p0.ui,this.p0.VY),K=Math.round(6*s.Z()),z=Math.round(14*s.Z()),t=this.rx?this.rx.v:null,H=this.iG?this.iG.v:null;
for(var D=0;D<m.length;D++){var i=m[D].v,y=Math.round(255-255*i.Opct.v.val/100);if((i==t||m[D-1]&&m[D-1].v==t||D==this.Uj)&&D!=0){S.fillStyle="#000000";
S.fillRect(f-3+P*(m[D-1].v.Lctn.v+(i.Lctn.v-m[D-1].v.Lctn.v)*i.Mdpn.v/100)/4096,h-6-2,6,6)}if(i==t){S.fillStyle="#ffffff";
S.fillRect(f-K+P*(i.Lctn.v/4096)-2,h-2-z-2,2*K+4,z+4)}S.fillStyle="rgb("+y+","+y+","+y+")";S.fillRect(f-K+P*(i.Lctn.v/4096),h-2-z,2*K,z)}for(var D=0;
D<V.length;D++){var j=V[D].v,J=q[D];if((j==H||V[D-1]&&V[D-1].v==H||D==this.hm)&&D!=0){S.fillStyle="#000000";
S.fillRect(f-3+P*(V[D-1].v.Lctn.v+(j.Lctn.v-V[D-1].v.Lctn.v)*j.Mdpn.v/100)/4096,h+w+2,6,6)}if(j==H){S.fillStyle="#ffffff";
S.fillRect(f-K+P*(j.Lctn.v/4096)-2,h+w+2-2,2*K+4,z+4)}S.fillStyle="rgb("+Math.round(J.h)+", "+Math.round(J.l)+","+Math.round(J.O)+")";
S.fillRect(f-K+P*(j.Lctn.v/4096),h+w+2,2*K,z)}if(this.By){this.YN(this.mB);this.Ek=!0}};b0.prototype.WY=function(){this.w9.F(Math.round(100*this.mB.Intr.v/4096));
var Z=this.mB.Trns.v,S=this.mB.Clrs.v,b=this.rx!=null,Y=this.Uj!=-1;this.y6.v3(b);this.SY.v3(b||Y);this.yV.v3(b);
if(b){this.DR.setAttribute("style","");var P=this.rx.v;this.SY.F(Math.round(100*P.Lctn.v/4096));this.y6.F(P.Opct.v.val)}if(Y)this.SY.F(Z[this.Uj].v.Mdpn.v);
var b=this.iG!=null,Y=this.hm!=-1;this.OF.v3(b);this.LC.v3(b);this.Rd.v3(b||Y);this.e6.v3(b);if(b){this.d4.setAttribute("style","");
var w=this.iG.v;this.Rd.F(Math.round(100*w.Lctn.v/4096));var f=w.Type.v.Clry;this.OF.F(["FrgC","BckC","UsrS"].indexOf(f));
if(f=="FrgC")this.LC.D9(this.p0.ui);if(f=="BckC")this.LC.D9(this.p0.VY);if(f=="UsrS")this.LC.F(w.Clr.v)}if(Y)this.Rd.F(S[this.hm].v.Mdpn.v)};
b0.prototype.JP=function(Z){var S=Math.round(4096*this.w9.u()/100);this.mB.Intr.v=S;var b=this.mB.Trns.v,Y=this.mB.Clrs.v;
if(this.rx!=null){var P=this.rx.v;P.Lctn.v=Math.round(4096*(this.SY.u()/100));P.Opct.v.val=this.y6.u()}if(this.iG!=null){var w=this.iG.v;
w.Lctn.v=Math.round(4096*(this.Rd.u()/100));if(Z.target==this.LC)this.OF.F(2);var f=this.OF.u();w.Type.v.Clry=["FrgC","BckC","UsrS"][f];
if(f==2)w.Clr={t:"Objc",v:this.LC.u()};else if(w.Clr)delete w.Clr}if(this.Uj!=-1)b[this.Uj].v.Mdpn.v=this.SY.u();
if(this.hm!=-1)Y[this.hm].v.Mdpn.v=this.Rd.u();this.Mn()};b0.prototype.Zx=function(Z){var S=s.R6(Z,this.u_),b=(S.x*s.Z()-this.Hk.x)/this.Hk.c,Y=(S.y*s.Z()-this.Hk.y)/this.Hk.v,P=this.mB.Trns.v,w=this.mB.Clrs.v,f=null,h=null,Q=-1,e=-1;
if(Y<1)for(var D=0;D<P.length;D++){var l=P[D].v;if(Math.abs(l.Lctn.v/4096-b)<.02)f=P[D];if(D>0)if(Math.abs((P[D-1].v.Lctn.v+(l.Lctn.v-P[D-1].v.Lctn.v)*l.Mdpn.v/100)/4096-b)<.01)Q=D}if(Y>0)for(var D=0;
D<w.length;D++){var O=w[D].v;if(Math.abs(O.Lctn.v/4096-b)<.02)h=w[D];if(D>0)if(Math.abs((w[D-1].v.Lctn.v+(O.Lctn.v-w[D-1].v.Lctn.v)*O.Mdpn.v/100)/4096-b)<.01)e=D}if(h==null&&f==null&&Q==-1&&e==-1){if(Y<0){var l={t:"Objc",v:{classID:"TrnS",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}};
l.v.Lctn.v=Math.round(b*4096);P.push(l);P.sort(this.J3);f=l}if(Y>1){var w=this.mB.Clrs.v,m=T.W.pV(w,this.p0.ui,this.p0.VY),V=T.W.r2(this.mB,m,b),O={t:"Objc",v:{classID:"Clrt",Clr:{t:"Objc",v:T.W.RQ({h:V&255,l:V>>8&255,O:V>>16&255})},Type:{t:"enum",v:{Clry:"UsrS"}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}};
O.v.Lctn.v=Math.round(b*4096);w.push(O);w.sort(this.J3);h=O}}if(h!=null)e=-1;if(f!=null)Q=-1;if(h!=null||f!=null||Q>-1||e>-1){this.rx=f;
this.iG=h;this.Uj=Q;this.hm=e;this.WY();this.Mn();s.Tb(window,this._g);s.Ju(window,this.J$)}};b0.prototype.i$=function(Z){var S=s.R6(Z,this.u_),b=s.Z()*(S.x-this.Hk.x)/this.Hk.c,Y=s.Z()*(S.y-this.Hk.y)/this.Hk.v;
b=Math.max(0,Math.min(1,b));var P=this.mB.Trns.v,w=this.mB.Clrs.v;if(this.rx!=null){var f=this.rx.v;
f.Lctn.v=Math.round(4096*b);var h=P.indexOf(this.rx);if(h!=-1&&Y<-1&&P.length>2)P.splice(h,1);if(h==-1&&Y>-1)P.push(this.rx);
P.sort(this.J3)}if(this.iG!=null){var Q=this.iG.v;Q.Lctn.v=Math.round(4096*b);var e=w.indexOf(this.iG);
if(e!=-1&&Y>1.5&&w.length>2)w.splice(e,1);if(e==-1&&Y<1.5)w.push(this.iG);w.sort(this.J3)}if(this.Uj>-1){var f=P[this.Uj].v;
f.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*(b*4096-P[this.Uj-1].v.Lctn.v)/(f.Lctn.v-P[this.Uj-1].v.Lctn.v))))}if(this.hm>-1){var Q=w[this.hm].v;
Q.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*(b*4096-w[this.hm-1].v.Lctn.v)/(Q.Lctn.v-w[this.hm-1].v.Lctn.v))))}if(this.rx!=null||this.iG!=null||this.Uj>-1||this.hm>-1){this.WY();
this.Mn()}};b0.prototype.sa=function(Z){s.Qe(window,this._g);s.zz(window,this.J$);if(Date.now()-this.xR<300){if(this.hm!=-1||this.Uj!=-1){var S=(this.hm!=-1?this.mB.Clrs.v[this.hm]:this.mB.Trns.v[this.Uj]).v;
S.Mdpn.v=50;this.WY();this.Mn()}else if(this.iG!=null)this.LC.an$()}this.xR=Date.now()};b0.prototype.J3=function(Z,S){return Z.v.Lctn.v-S.v.Lctn.v};
function cE(){dz.call(this,[11,10],"isize");this.sV=s.R("div","form");this.sV.setAttribute("style","width:20em");
this.body.appendChild(this.sV);this.Dg=new cA(!0,!0);this.sV.appendChild(this.Dg.j);this.ec=new ec("Resample");
this.ec.F(!0);this.sV.appendChild(this.ec.j);this.ec.i(s.E.L,this.a7D,this);this.V9=new gl([12,14,1],[[12,14,2],[12,14,3],"Bicubic Sharper"]);
this.V9.F(1);this.sV.appendChild(this.V9.j);this.LT=new fX("OK",!0,null,!0);this.LT.i("click",this.sw,this);
this.body.appendChild(this.LT.j)}cE.prototype=new dz;cE.prototype.ZP=function(Z,S){return Z!=null};cE.prototype.K7=function(){return!0};
cE.prototype.a7D=function(Z){var S=this.ec.u(),b=this.Dg,Y=this.V9;if(S)Y.zA();else Y.J7();if(S)b.ac_();
else b.a2C()};cE.prototype.B=function(){dz.prototype.B.call(this);this.V9.B();this.Dg.B()};cE.prototype.sw=function(Z){this.close();
var S=this.Dg.u(),b=S.x,Y=S.y,P=this.V9.u();if(!this.ec.u())P=null;var w=new d(s.E.TH,!0);w.data=G.PK.dt(b,Y,this.Dg.cW(),P);
this.m(w)};cE.prototype.lX=function(Z,S){this.Dg.F(new ar(Z.c,Z.v),Z.GY)};function cb(){dz.call(this,"Import RAW","importraw");
var Z=s.R("div","flexrow"),S=s.R("div");S.setAttribute("style","margin-bottom: 1em");this.body.appendChild(Z);
this.body.appendChild(S);var b=s.R("div","form");b.setAttribute("style","width:18em");Z.appendChild(b);
var Y=s.R("div","form");Y.setAttribute("style","width:15em");Z.appendChild(Y);this.jw=null;this.acN=null;
this.hU=null;this.$z=null;this.a58=[];var P=[];for(var D=0;D<cb.E_.length;D++)P.push(cb.E_[D]+" Bits");
var w=this.Vj=[new cA(!0,null,null,!0),new c2([12,72],1,8),new ec("Last one is Transparency"),new gT([12,34],P),new gT("Byte Order",["12-34","34-12"]),new gl("Guesses",[])];
for(var D=0;D<w.length;D++){var f=w[D];f.parent=this;f.i(s.E.L,D==5?this.bB:this.ot,this);var h=D==0?b:D==5?S:Y;
h.appendChild(f.j)}this.QY=s.R("canvas");this.x_=this.QY.getContext("2d");this.body.appendChild(this.QY);
this.LT=new fX("OK",!0,null,!0);this.LT.i("click",this.sw,this);this.body.appendChild(this.LT.j)}cb.prototype=new dz;
cb.prototype.B=function(){dz.prototype.B.call(this);var Z=this.Vj;for(var D=0;D<Z.length;D++)Z[D].B()};
cb.prototype.sw=function(Z){this.close();var S=this.Vj[0].u(),b=ab.kR(this.acN,[{data:this.hU,Vl:new b4(0,0,S.x,S.y)}]);
if(this.$z)b.eP=this.$z;var Y=new d(s.E.P,!0);Y.data={e:!0?s.U.hT:s.U.Dx,hp:b};this.m(Y)};cb.E_=[8,16];
cb.prototype.lX=function(Z,S){this.jw=new Uint8Array(S.hn);this.acN=S.JB;var b=this.jw.length,Y=[1,3,4],P=0,w=0,f=1,h=1,Q=this.a58=[];
for(var e=0;e<3;e++){for(var l=0;l<2;l++){var O=cb.E_[l],m=Y[e],V=m*O,q=Math.round(b*8/V);if(q!=b*8/V)continue;
for(var K=0;K<=4e3;K++)for(var z=0;z<=4e3;z++)if(K*z==q){var t=0;if(K==z)t+=64;if(Math.round(K/100)==K/100&&Math.round(z/100)==z/100)t+=32;
if(Math.round(K/10)==K/10&&Math.round(z/10)==z/10)t+=16;if(Math.round(K/2)==K/2&&Math.round(z/2)==z/2)t+=8;
Q.push([K,z,m,O,t])}}}var H=function(J,A){if(A[4]!=J[4])return A[4]-J[4];var a=Math.max(J[0],J[1])/Math.min(J[0],J[1]),I=Math.max(A[0],A[1])/Math.min(A[0],A[1]);
if(a!=I)return a-I;return A[0]-J[0]};Q.sort(H);var i=this.Vj,y=[];for(var D=0;D<Q.length;D++){var j=Q[D];
y.push(j[0]+" x "+j[1]+", "+j[2]+"ch, "+j[3]+"-bit")}i[5].vL(y);i[5].F(0);this.bB(null)};cb.prototype.bB=function(Z){var S=this.Vj,b=this.a58[this.Vj[5].u()];
S[0].F(new ar(b[0],b[1]),72);S[1].F(b[2]);S[3].F(cb.E_.indexOf(b[3]));this.ot()};cb.prototype.ot=function(Z){var S=this.Vj,b=S[0].u(),Y=b.x,P=b.y,w=cb.E_[S[3].u()],f=this.jw;
if(w==16&&S[4].u()==1){f=f.slice(0);for(var D=0;D<f.length;D+=2){var h=f[D];f[D]=f[D+1];f[D+1]=h}}var Q=this.hU=this.Gk(f,Y,P,S[1].u(),w,S[2].u()),e=this.QY,l=this.x_,O=[Q,new b4(0,0,Y,P)];
T.O9(O);for(var D=0;D<O.length;D+=2)if(O[D+1].v<300){Q=O[D];Y=O[D+1].c;P=O[D+1].v;break}e.width=Y;e.height=P;
s.$k(e,Y,P);var m=new ImageData(new Uint8ClampedArray(Q.buffer),Y,P);l.putImageData(m,0,0)};cb.prototype.Gk=function(Z,S,b,Y,P,w){this.$z=null;
var f=[],h=S*b;for(var Q=0;Q<Y;Q++){var e=T.f(h);f.push(e);if(P==8)for(var D=0;D<h;D++)e[D]=Z[D*Y+Q];
else if(P==16)for(var D=0;D<h;D++)e[D]=Z[(D*Y+Q)*2]}var l=T.f(h*4);new Uint32Array(l.buffer).fill(4278190080);
if(w){T.y8(f.pop(),l,3);Y--}if(Y==0){}else if(Y==1)T.zf(f[0],l);else{T.y8(f[0],l,0);T.y8(f[1],l,1);if(Y>2){T.y8(f[2],l,2);
if(Y>3){this.$z=[];for(var D=3;D<Y;D++){var O=new F.bN;O.name="Alpha "+(D-2);O.rect=new b4(0,0,S,b);
O.channel=f[D];this.$z.push(O)}}}}return l};function el(Z,S,b){ij.call(this);this.j=s.R("div","");this.JO=Z;
this.yd=null;this.LM=S==null?!1:S;this.iY=null;this.L5=b;this.hc=[];this.ZF=[];this.a9=[];this.Jw=[];
this.Ch=0;this.yd=this.any(el.Jw[Z]);this.wi();this.Zt=null;this.acH;this.a6t}el.prototype=new ij;el.prototype.Os=function(Z,S,b,Y,P){this.Zt=P;
this.acH=JSON.parse(JSON.stringify(this.iY));if(this.yd.lagl)this.a6t=this.yd.lagl.u()};el.prototype.Zq=function(Z,S,b,Y,P){var w=this.Zt,f=this.JO,h=this.acH;
if(w==null)return;var Q=(P.x-w.x)/Z.a.S,e=(P.y-w.y)/Z.a.S;if(f=="GrFl"){var l=JSON.parse(JSON.stringify(h.Ofst.v));
l.Hrzn.v.val+=Q*.5;l.Vrtc.v.val+=e*.5;this.yd.Ofst.F(l,!0)}if(f=="patternFill"){var l=JSON.parse(JSON.stringify(h.phase.v));
l.Hrzn.v+=Q;l.Vrtc.v+=e;this.yd.phase.F(l,!0)}if(f=="DrSh"||f=="IrSh"||f=="ChFX"){var O=h.Dstn.v.val,m=this.a6t.oc*Math.PI/180,V=-Math.cos(m)*O+Q,q=Math.sin(m)*O+e;
this.yd.Dstn.F(Math.sqrt(V*V+q*q),!0);this.yd.lagl.F(Math.atan2(q,-V)*180/Math.PI,null,!0)}};el.prototype.Xa=function(Z,S,b,Y,P){this.Zt=null};
el.prototype.ajC=function(){for(var D=0;D<this.Jw.length;D++){s.bq(this.Jw[D],"selected");if(this.a9[D]instanceof ec)this.a9[D].F(!1)}};
el.prototype.af2=function(Z){var S=this.ag1.bind(this);for(var D=0;D<this.a9.length;D++){var b=s.R("div","listitem");
this.Jw.push(b);if(D>0)b.textContent="\u2003";b.appendChild(this.a9[D].j);if(a4.C1.indexOf(this.JO)!=-1){var Y=new fX("+");
Y.AN();Y.j.style.float="right";b.appendChild(Y.j);var P=new fX("\u2B0D");P.AN();P.j.style.float="right";
P.j.style["margin-right"]="2px";b.appendChild(P.j)}b.addEventListener("click",S,!1);Z.appendChild(b)}};
el.g3=function(Z,S){var b=S.getBoundingClientRect();return(Z.clientY-b.top)/b.height};el.prototype.ag1=function(Z){var S=Z.target.tagName.toLowerCase();
if(S=="input"){return}if(S=="button"){var b=new d(s.E.s,!0),Y=Z.target.textContent=="+",P=Y?0:el.g3(Z,Z.target)<.5?-1:1;
if(Y)b.data={e:"st_dupsingle",$:this.parent.data.$,pG:this.L5};else b.data={e:"st_movsingle",$:this.parent.data.$,pG:this.L5,anb:P};
b.T=G.Qj;b.j9=!0;this.m(b);b=new d("redrawall",!0);b.data={anb:P};this.m(b);return}s.Jj(Z);this.LF();
this.Ch=this.Jw.indexOf(Z.currentTarget);this.m(new d("showme"))};el.prototype.LF=function(){if(this.yd.enab&&this.yd.enab.u()==!1)this.HZ({aX:"enab",G:!0})};
el.prototype.a50=function(){var Z=this.Jw[this.Ch];if(Z)s.zy(Z,"selected");return this.ZF[this.Ch]};
el.prototype.any=function(Z){var S={};for(var D=0;D<Z.length;D++){var b=Z[D],Y=null;if(b=="----")Y={j:s.R("hr")};
if(b=="\n")Y={j:s.R("br")};if(b=="blOptions")Y=new bE([14,10]);if(b=="brst")Y=new eW([12,72],["R","G","B"]);
if(b=="knko")Y=new gl("Knockout",[[13,1,0],"Shallow","Deep"]);if(b=="enab")Y=new ec(a4.names[a4.order.indexOf(this.JO)]);
if(b=="lrMd"||b=="Md")Y=new gl([12,19,0],is.dd,!1,is.JL);if(b=="Opct")Y=new gu([12,0],0,100,"%");if(b=="iOpa")Y=new gu([12,26],0,100,"%");
if(b=="blIf")Y=new aZ;if(b=="ShdN")Y=new gu([12,68],0,100,"%");if(b=="lagl"||b=="Angl")Y=new eP([12,15]);
if(b=="uglg")Y=new ec([12,27]);if(b=="Dstn")Y=new gu([12,28],0,200,"px");if(b=="Ckmt")Y=new gu([12,29],0,100,"%");
if(b=="blur")Y=new gu([12,14,0],0,200,"px");if(b=="TrnS"||b=="MpgS")Y=new e5([12,21]);if(b=="Nose")Y=new gu([12,30],0,100,"%");
if(b=="layerConceals")Y=new ec([12,31]);if(b=="AntA"||b=="antialiasGloss")Y=new ec("Anti-alias");if(b=="GlwT")Y=new gl([12,32],a4.Sp.names);
if(b=="glwS")Y=new gl([12,70],a4.Sp.a5O);if(b=="Inpr")Y=new gu([12,12],1,100,"%");if(b=="bvlS")Y=new gl([12,22],a4.zB.style);
if(b=="bvlT")Y=new gl([12,32],a4.zB.aaN);if(b=="bvlD")Y=new gl(null,a4.zB.dir);if(b=="srgR")Y=new gu([12,34],0,1e3,"%");
if(b=="Sftn")Y=new gu([12,35],0,20,"px");if(b=="Lald")Y=S.lagl;if(b=="hglM"||b=="sdwM")Y=new gl([12,36],is.dd,!1,is.JL);
if(b=="hglC"||b=="sdwC")Y=new gy;if(b=="hglO"||b=="sdwO")Y=new gu([12,0],0,100,"%");if(b=="Invr"||b=="InvT")Y=new ec([4,11]);
if(b=="Sz")Y=new gu([12,14,0],1,200,"px");if(b=="Styl")Y=new gl([12,40],a4.stroke.names);if(b=="PntT")Y=new gl([12,66],a4.stroke.a9u);
if(b=="Clr")Y=new gy(!0);if(b=="Grad"){Y=new ax(!0,[12,37],!0);Y.F(JSON.parse(a4.c5.Fx).v)}if(b=="Rvrs")Y=new ec([12,23,0]);
if(b=="Dthr")Y=new ec("Dither");if(b=="Type")Y=new gl([12,22],a4.W.names.slice(0,this.JO=="FrFX"?6:5));
if(b=="Ptrn")Y=new fw([12,62]);if(b=="Scl")Y=new gu([12,38],10,500,"%",0,!0);if(b=="Algn")Y=new ec([12,39]);
if(b=="Ofst")Y=new f0(!0);if(b=="phase")Y=new f0(!1);if(b=="useShape")Y=new ec([12,21]);if(b=="useTexture")Y=new ec([12,67]);
if(b=="textureDepth")Y=new gu([12,34],-300,300,"%");var P=b=="----"||b=="\n"?b+D:b;if(Y!=null)S[P]=Y}return S};
el.prototype.a6F=function(Z){var S=this.ZF[this.Ch];for(var D=0;D<Z.length;D++){var b=this.yd[Z[D]];
if(b&&S.contains(b.j))S.removeChild(b.j)}};el.prototype.aaL=function(Z){var S=this.ZF[this.Ch];for(var D=0;
D<Z.length;D++){var b=this.yd[Z[D]];if(b&&!S.contains(b.j))S.appendChild(b.j)}};el.prototype.na=function(Z,S){if(this.yd==null)return;
var b=S==bp._O;if(this.yd.Grad){this.yd.Grad.cs(Z.ui,Z.VY);if(b||S==bp.tN||S==bp.sc)this.yd.Grad.VU(Z.Yh)}if(this.yd.Ptrn){if(b||S==bp.qd)this.yd.Ptrn.VU(Z.w6)}if(this.yd.TrnS){if(b||S==bp.VB)this.yd.TrnS.VU(Z.Jr)}if(this.yd.MpgS){if(b||S==bp.VB)this.yd.MpgS.VU(Z.Jr)}};
el.prototype.B=function(){for(var D=0;D<this.hc.length;D++)this.hc[D].B();for(var Z in this.yd)if(this.yd[Z]instanceof ij)this.yd[Z].B()};
el.prototype.wi=function(){for(var Z in this.yd){var S=this.yd[Z];S.parent=this;if(S instanceof ij)S.i(s.E.L,this.a1Z,this);
if(this.ZF.length==0||Z=="useShape"||Z=="useTexture"){var b=new bE(S.gZ()),Y=s.R("div","bordered padded");
if(this.LM==!1){Y.appendChild(b.j);Y.appendChild(s.R("hr",""))}this.hc.push(b);this.ZF.push(Y);this.a9.push(S)}else this.ZF[this.ZF.length-1].appendChild(S.j)}};
el.prototype.update=function(Z,S){if(this.yd==null)return;this.iY=JSON.parse(JSON.stringify(S));for(var b in S){if("Opct iOpa hglO sdwO Dstn Ckmt blur Nose Scl Sz Inpr Angl srgR Sftn textureDepth ShdN".split(" ").indexOf(b)!=-1)this.yd[b].F(S[b].v.val);
if("enab brst knko Clr hglC sdwC uglg Grad TrnS MpgS Rvrs Dthr Algn Invr InvT Ptrn layerConceals useShape useTexture Ofst phase blIf".split(" ").indexOf(b)!=-1){this.yd[b].F(S[b].v,Z)}if(["Md","hglM","sdwM"].indexOf(b)!=-1)this.yd[b].F(is.JO.indexOf(S[b].v.BlnM));
if(b=="lrMd"){var Y=(S.W$?[[15,10,27]]:[]).concat(is.dd),P=(S.W$?[1]:[]).concat(is.JL);this.yd[b].vL(Y,P);
this.yd[b].F(S[b].v)}if(b=="lagl"){var w=S.uglg&&S.uglg.v?Z.HO():S.lagl.v.val;this.yd[b].F(w)}if(b=="Lald"){var w=S.uglg&&S.uglg.v?Z.wm():S.Lald.v.val;
this.yd[b].F(null,w)}if(b=="Type")this.yd[b].F(a4.W.types.indexOf(S.Type.v.GrdT));if(b=="Styl")this.yd[b].F(a4.stroke.types.indexOf(S.Styl.v.FStl));
if(b=="PntT"){var f=a4.stroke.qc.indexOf(S.PntT.v.FrFl);this.yd[b].F(f);if(!this.LM){this.a6F(a4.pe.concat(a4.xz.concat(a4.jl)));
this.aaL([a4.pe,a4.xz,a4.jl][f])}}if(b=="GlwT")this.yd[b].F(a4.Sp.types.indexOf(S.GlwT.v.BETE));if(b=="glwS")this.yd[b].F(a4.Sp.Z_.indexOf(S.glwS.v.IGSr));
if(b=="bvlS")this.yd[b].F(a4.zB.types.indexOf(S.bvlS.v.BESl));if(b=="bvlT")this.yd[b].F(a4.zB.Yj.indexOf(S.bvlT.v.bvlT));
if(b=="bvlD")this.yd[b].F(["In","Out"].indexOf(S.bvlD.v.BESs))}};el.prototype.a1Z=function(Z){for(var S in this.yd){if(this.yd[S]!=Z.target)continue;
var b=null,Y=!1;if("Opct iOpa hglO Nose Scl sdwO Inpr srgR textureDepth ShdN".split(" ").indexOf(S)!=-1)b={type:"#Prc",val:Z.target.u()};
if(["Dstn","Ckmt","blur","Sz","Sftn"].indexOf(S)!=-1)b={type:"#Pxl",val:Z.target.u()};if(["Angl","lagl"].indexOf(S)!=-1)b={type:"#Ang",val:Z.target.u().oc};
if("enab brst knko Clr hglC sdwC Grad TrnS MpgS Rvrs Dthr Algn Invr InvT Ptrn layerConceals lrMd useShape useTexture AntA antialiasGloss Ofst phase blIf".split(" ").indexOf(S)!=-1)b=Z.target.u();
if(["Md","hglM","sdwM"].indexOf(S)!=-1)b={BlnM:is.JO[Z.target.u()]};if(S=="uglg"){b=Z.target.u();Y=!0}if(S=="PntT"){b={FrFl:a4.stroke.qc[Z.target.u()]};
Y=!0}if(S=="Lald")b={type:"#Ang",val:Z.target.u().alt};if(S=="Type")b={GrdT:a4.W.types[Z.target.u()]};
if(S=="Styl")b={FStl:a4.stroke.types[Z.target.u()]};if(S=="GlwT")b={BETE:a4.Sp.types[Z.target.u()]};
if(S=="glwS")b={IGSr:a4.Sp.Z_[Z.target.u()]};if(S=="bvlS")b={BESl:a4.zB.types[Z.target.u()]};if(S=="bvlT")b={bvlT:a4.zB.Yj[Z.target.u()]};
if(S=="bvlD")b={BESs:["In","Out"][Z.target.u()]};this.HZ({aX:S,G:b});if(Y){if(this.LM)this.update(null,this.iY);
else{var P=this.parent,w=P.hp,f=this.L5,h=w.t[P.data.$].add.lmfx[a4.Ol[f[0]]].v[f[1]].v;this.update(w,h)}}}};
el.prototype.HZ=function(Z){if(this.iY&&this.iY[Z.aX])this.iY[Z.aX].v=Z.G;if(this.LM){this.m(new d(s.E.L))}else{Z.e="changeprop";
Z.$=this.parent.data.$;Z.SU=this.L5;var S=new d(s.E.s,!0);S.data=Z;S.T=G.Qj;S.j9=!0;this.m(S);this.m(new d("afterchange",!0))}};
el.prototype.u=function(){return JSON.parse(JSON.stringify(this.iY))};el.Jw={bops:"blOptions lrMd Opct ---- iOpa brst ---- blIf".split(" "),DrSh:"enab Md Clr Opct lagl uglg Dstn Ckmt blur TrnS Nose layerConceals".split(" "),IrSh:"enab Md Clr Opct lagl uglg Dstn Ckmt blur TrnS Nose".split(" "),OrGl:["enab","Md","Opct","Nose","\n","Clr","Grad","----","GlwT","Ckmt","blur","TrnS","Inpr","ShdN"],IrGl:["enab","Md","Opct","Nose","\n","Clr","Grad","----","GlwT","glwS","Ckmt","blur","TrnS","Inpr","ShdN"],ebbl:["enab","bvlS","bvlT","bvlD","srgR","blur","Sftn","----","lagl","Lald","uglg","TrnS","\n","hglM","hglC","hglO","sdwM","sdwC","sdwO","useShape","MpgS","Inpr","useTexture","Ptrn","Scl","textureDepth","InvT","Algn","phase"],SoFi:["enab","Md","Opct"].concat(a4.pe),GrFl:["enab","Md","Opct"].concat(a4.xz),patternFill:["enab","Md","Opct"].concat(a4.jl),ChFX:"enab Md Clr Opct lagl Dstn blur MpgS Invr".split(" "),FrFX:["enab","Sz","Styl","\n","Md","Opct","PntT","\n"].concat(a4.pe.concat(a4.xz.concat(a4.jl)))};
function ep(){dz.call(this,[11,6],"layerstyle");this.akO=-1;this.data={};this.hp=null;this.W3=null;this.tW=[];
this.vI=[];s.zy(this.body,"flexrow");this.YB=s.R("div","bordered");this.YB.setAttribute("style","min-width:13em;");
this.body.appendChild(this.YB);this.cy=s.R("div","");this.cy.setAttribute("style","width:25em; padding-left: 1em;");
this.body.appendChild(this.cy);this._8=s.R("div","form");this._8.setAttribute("style","padding-left: 1em; width:7em;");
this.body.appendChild(this._8);this.NC=new fX("OK",!0,null,!0);this.NC.i("click",this.sw,this);this._8.appendChild(this.NC.j);
this.X5=new fX([12,87],!0,null,!0);this.X5.i("click",this.a7f,this);this._8.appendChild(this.X5.j);this.gs=new hs;
this.gs.parent=this;this.gs.i(s.E.L,this.a8F,this);this._8.appendChild(this.gs.j);this.i("closebtn",this.qK,this);
this.i("redrawall",this.UJ,this)}ep.prototype=new dz;ep.prototype.K7=function(){return!0};ep.prototype.NK=function(){return!0};
ep.prototype.Os=function(Z,S,b,Y,P){var w=this.aB();if(w)w.Os(Z,S,b,Y,P)};ep.prototype.Zq=function(Z,S,b,Y,P){var w=this.aB();
if(w)w.Zq(Z,S,b,Y,P)};ep.prototype.Xa=function(Z,S,b,Y,P){var w=this.aB();if(w)w.Xa(Z,S,b,Y,P)};ep.prototype.aB=function(Z){if(Z==null)Z=this.data.index;
return Z==null?null:Z==0?this.tW[0]:this.vI[Z[0]][Z[1]]};ep.prototype.a8F=function(Z){var S=this.gs.u();
this.HZ({e:"setstl",G:S.WF});this.UJ(null)};ep.prototype.a7f=function(Z){var S=this.hp,b=this.data.$;
if(b==null)b=S.C[0];var Y=this.hp.t[b],P=eg.gA(Y),w=new d(s.E.P,!0);w.data={e:s.U.h4,JH:"add",Sz:bp._b,O3:[JSON.parse(JSON.stringify(P))]};
this.m(w)};ep.prototype.anN=function(Z){this.data.index=Z.currentTarget.L5;this.EZ(Z.currentTarget.L5)};
ep.prototype.UJ=function(Z){this.lX(this.hp,this.data)};ep.prototype.EZ=function(Z,S){s.Z9(this.cy);
for(var D=0;D<this.tW.length;D++)this.tW[D].ajC();var b=this.aB(Z);this.cy.appendChild(b.a50());if(S)b.LF();
var Y=this.hp;if(Y){var P=Y.t[this.data.$];this.tW[0].update(Y,dK.hN.TB(Y,P));var w=P.add.lmfx;if(w==null)return;
for(var D=0;D<a4.order.length;D++){var f=w[a4.Ol[D]].v;for(var h=0;h<f.length;h++)this.vI[D][h].update(Y,f[h].v)}}if(S)b.LF()};
ep.prototype.B=function(){dz.prototype.B.call(this);this.X5.B();this.gs.B();for(var D=0;D<this.tW.length;
D++)this.tW[D].B()};ep.prototype.lX=function(Z,S){var b=S.$==null;this.data.$=S.$;this.data.index=S.index;
S=this.data;this.hp=Z;if(b)S.$=Z.C.length==0?Z.t.length-1:Z.C[0];s.Z9(this.YB);var Y=Z.t[S.$].add.lmfx;
this.RT();this.tW=[new el("bops",!1,0)];this.vI=[];for(var D=0;D<a4.order.length;D++){this.vI.push([]);
var P=Y==null?[]:Y[a4.Ol[D]].v;for(var w=0;w<P.length;w++){var f=new el(a4.order[D],!1,[D,w]);this.tW.push(f);
this.vI[D].push(f)}if(P.length==0){var f=new el(a4.order[D],!1,[D,0]);this.tW.push(f);this.vI[D].push(f)}}this.B();
this.wn(this.W3,bp._O);for(var D=0;D<this.tW.length;D++){this.tW[D].parent=this;this.tW[D].af2(this.YB);
this.tW[D].i("showme",this.anN,this)}if(S.index==null||S.index==0||!b&&Y[a4.Ol[S.index[0]]].v.length==0){this.EZ(0)}else this.EZ(S.index,b);
this.i("afterchange",this.RT,this)};ep.prototype.RT=function(Z){var S=this.hp,b=this.data.$;if(b==null)b=S.C[0];
var Y=this.hp.t[b],P=eg.gA(Y);this.gs.F(P,S.add.Patt?S.add.Patt:[],S.HO(),S.wm())};ep.prototype.na=function(Z,S){this.W3=Z;
this.wn(Z,S);if(S==bp._b||S==bp._O){this.gs.VU([Z._u,Z.w6])}if(S==bp.bT){}};ep.prototype.wn=function(Z,S){for(var D=0;
D<this.tW.length;D++)this.tW[D].na(Z,S)};ep.prototype.qK=function(Z){this.HZ({e:"cancel"})};ep.prototype.sw=function(Z){this.HZ({e:"confirm"});
this.close()};ep.prototype.HZ=function(Z){Z.$=this.data.$;var S=new d(s.E.s,!0);S.data=Z;S.T=G.Qj;S.j9=!0;
this.m(S);this.RT()};ep.M4=function(Z){var S=[{name:[14,10],uJ:!0}];for(var D=0;D<a4.names.length;D++)S.push({name:a4.names[D]});
if(Z){S[S.length-1].uJ=!0;S.push({name:"Scale Effects",Q:function(b){return{Q:b!=null&&b.C.length!=0&&b.t[b.C[0]].U_()}}});
S.push({name:["VAR0 VAR1",[12,49],[9,1]],Q:function(b){return{Q:b!=null&&b.C.length!=0&&b.t[b.C[0]].add.lmfx!=null}}})}return S};
ep.C8=function(Z){var S=[{g:s.E.P,k:{e:s.U.Fy,g9:"layerstyle"}}];for(var D=0;D<a4.names.length;D++)S.push({g:s.E.P,k:{e:s.U.Fy,g9:"layerstyle",index:[D,0]}});
if(Z){S.push({g:s.E.P,k:{e:s.U.Fy,g9:"scaleeffects",a7:100,H6:{g:s.E.s,T:G.Qj,k:{e:"scaleeffects"}}}});
var b={classID:"Mk",null:a3.h$("Lyr"),Usng:{t:"obj ",v:[{t:"prop",v:{classID:"Prpr",keyID:"Lefx"}},{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Trgt"}}]}};
S.push({g:s.E.TH,k:{uf:"make",V1:b}})}return S};ep.Gd=function(Z){var S=[];if(Z)S.push({name:[6,48,0,0],Ip:!0},{name:[6,48,0,1],Ip:!0},{name:[6,48,0,2],Ip:!0,uJ:!0});
for(var b in g3.names)S.push({name:g3.names[b],uJ:g3.jD.indexOf(b)!=-1,Ip:_[b]!=null});return S};ep.cN=function(Z){var S=[];
if(Z){S.push({g:s.E.s,T:G.L4,k:{e:"newfill",vp:0}});for(var D=1;D<3;D++)S.push({g:s.E.TH,k:G.cI.uB(D)})}for(var b in g3.names){var Y=cL.VS(b);
if(Y==null)Y={};for(var P in g3.rB)if(g3.rB[P]==b)Y.classID=P;var w={uf:"make",V1:{classID:"Mk",null:a3.h$("AdjL"),Usng:{t:"Objc",v:{classID:"AdjL",Type:{t:"Objc",v:Y}}}}};
S.push({g:s.E.TH,k:w})}return S};function fa(){dz.call(this,"Merge Channels","mergechannels");this.ve=null;
var Z=s.R("div","form");this.body.appendChild(Z);this.Vj=[];for(var D=0;D<3;D++){var S=new gl(g3.Yn[D],[]);
this.Vj.push(S);Z.appendChild(S.j);s.X3(Z)}this.NC=new fX("OK",!0,null,!0);this.NC.i("click",this.sw,this);
Z.appendChild(this.NC.j)}fa.prototype=new dz;fa.prototype.B=function(){dz.prototype.B.call(this);for(var D=0;
D<3;D++)this.Vj[D].B()};fa.prototype.lX=function(Z,S,b,Y){this.ve=b;var P=[];for(var D=0;D<b.length;
D++)P.push(b[D].name);for(var D=0;D<3;D++){var w=this.Vj[D];w.vL(P);w.F(Math.min(D,b.length-1))}};fa.prototype.sw=function(Z){var S=this.ve,b=S[0],Y=new d(s.E.TH,!0);
Y.data=gf.M2(b.c,b.v,b.GY,"Merged Document","Wht");this.m(Y);var P=[];for(var D=0;D<3;D++)P.push(S[this.Vj[D].u()].Zd());
var b=S[S.length-1],w=b.t[0],f=w.buffer;for(var D=0;D<f.length;D+=4){f[D]=P[0][D];f[D+1]=P[1][D];f[D+2]=P[2][D]}w.D();
b.D();this.close()};function fZ(){dz.call(this,[1,10],"script");var Z=s.R("div","form");Z.setAttribute("style","width:44em");
this.body.appendChild(Z);this.W3=null;this.tT=[];this.vG=[];this.adM;var S=this.xH=new fX([1,2],!1,null,!0);
S.i("click",this._F,this);Z.appendChild(S.j);var b=new fX("JS Reference",!1,null,!0);b.i("click",this.a9d,this);
Z.appendChild(b.j);Z.appendChild(new bE("Demos:").j);this.ac5=[];var Y=fZ.s2;for(var D=0;D<Y.length;
D++){var P=new fX(Y[D].EW,!1,null,!0);this.ac5.push(P);Z.appendChild(P.j);P.i("click",this.ahW,this)}this.A3=s.R("textarea");
this.A3.setAttribute("rows",16);this.A3.setAttribute("style","display:block;tab-size:4; font-family:monospace;width:100%;");
Z.appendChild(this.A3);var w=new fX("Run",!0,null,!0);w.i("click",this.sw,this);Z.appendChild(w.j);this.a1q=s.R("div");
Z.appendChild(this.a1q)}fZ.prototype=new dz;fZ.prototype.B=function(){this.xH.B()};fZ.prototype._F=function(){var Z=this.adM;
if(Z==null)Z="script.jsx";var S=new d(s.E.P,!0);S.data={e:s.U.Fy,g9:"namewindow",a7:Z.slice(0,Z.length-4),s6:this.ab3.bind(this)};
this.m(S)};fZ.prototype.ab3=function(Z){var S=this.A3.value,b=k.IN(S),Y=new d(s.E.P,!0);Y.data={e:s.U.rC,hn:b.buffer,um:Z+".jsx",akV:!0};
this.m(Y)};fZ.prototype.aaZ=function(Z){var D=this.tT.indexOf(Z.target),S=this.adM=this.vG[D],b=this.W3.fO.Na[S],Y=new Uint8Array(b),P=k.cP(Y,0,Y.length);
this.A3.value=P};fZ.prototype.lX=function(Z,S,b){this.A3.value=fZ.s2[0].mm;this.Go()};fZ.prototype.Go=function(){var Z=this.W3.fO,S=this.a1q;
s.Z9(S);this.tT=[];this.vG=[];S.textContent="Saved scripts: ";for(var b in Z.Na){if(b.endsWith(".jsx")){var Y=new fX(b,!1,null,!0);
this.tT.push(Y);this.vG.push(b);Y.i("click",this.aaZ,this);S.appendChild(Y.j)}}};fZ.prototype.na=function(Z,S){this.W3=Z;
if(S==bp.C$)this.Go()};fZ.prototype.a9d=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.sN,link:"https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-cc-javascript-ref-2019.pdf"};
this.m(S)};fZ.prototype.sw=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.Mk,zd:this.A3.value};this.m(S)};
fZ.prototype.ahW=function(Z){var S=this.ac5.indexOf(Z.currentTarget);this.A3.value=fZ.s2[S].mm};fZ.s2=[{EW:"Hello",mm:"\nalert(\"Hello Photopea!\");\n"},{EW:"Process Layers",mm:"\nvar lays = app.activeDocument.layers;\n\nfor(var i=0; i<lays.length; i++)\n{\n"+"\t//lays[i].visible = false;\n"+"\t//lays[i].opacity = 50;\n"+"\tlays[i].name = \"My Layer \"+i;\n}"},{EW:"Clone Layers",mm:"\nvar orig = app.activeDocument.activeLayer;\n"+"var cnt = 12;\n"+"var angle = Math.floor(360 / cnt);\n"+"\n"+"for(var i=1; i<cnt; i++)\n"+"{\n"+"\tvar nlay = orig.duplicate();\n"+"\t//nlay.translate(30*i, 20*i);\n"+"\tnlay.rotate(angle * i, AnchorPosition.BOTTOMCENTER);\n"+"}"}];
function gz(){dz.call(this,[11,7],"newproject");this.data=null;this.ve=null;var Z=s.R("div","flexrow");
this.P8=Z;this.body.appendChild(Z);var S=s.R("div","form");this.sV=S;Z.appendChild(S);this.rT=new cY([12,48]);
S.appendChild(this.rT.j);s.X3(S);this.Dg=new cA(!0);this.Dg.F(new ar(1280,720),72);this.Dg.i(s.E.L,this.i_,this);
S.appendChild(this.Dg.j);this.bv=new gl([12,46],[[13,1,8],[13,1,9],[12,46]]);S.appendChild(this.bv.j);
S.appendChild(s.R("hr"));this.LT=new fX([12,49],!0,null,!0);this.LT.i("click",this.sw,this);S.appendChild(this.LT.j);
var b=gz.jw,Y=[];for(var D=0;D<b.length;D++)Y.push(b[D].name);this.e4=new gT(null,Y);this.e4.i(s.E.L,this.rz,this);
S.appendChild(this.e4.j);this.e4.j.style["margin-top"]="1em";this.vD=new aD(!0);this.vD.i(s.E.L,this.a5j,this);
S.appendChild(this.vD.j);this.rz();this.M$=new gX;this.M$.parent=this;this.M$.j.setAttribute("style","margin-left:1em");
this.M$.i("tempready",this.a3p,this)}gz.prototype=new dz;gz.prototype.na=function(Z,S){this.M$.na(Z)};
gz.prototype.pn=function(Z,S){return new ar(Math.max(0,Math.min(70,(Z-690)/2)),Z>S?Math.max(0,Math.min(50,(S-400)/2)):0)};
gz.prototype.Xd=function(Z,S){this.sV.setAttribute("style","width:"+Math.min(Z,338)+"px");this.vD.j.style.height=S-260+"px";
var b=this.M$.j,Y=b.parentNode;if(Z<500){if(Y!=null)this.P8.removeChild(b)}else{if(Y==null)this.P8.appendChild(b)}this.M$.Xd(Z-360,S-35)};
gz.prototype.i_=function(){this.M$.F(this.Dg.u())};gz.prototype.a5j=function(Z){var S=this.vD.u(),b=gz.jw[this.e4.u()].tc[S],Y=b[4];
if(Y==0)Y=72;var P=b[1],w=b[2],f=["px","%","mm","in"].indexOf(b[3]),h=[1,1,25.4/Y,1/Y][f];P/=h;w/=h;
this.Dg.F(new ar(Math.round(P),Math.round(w)),Y);this.Dg.a2O(f);this.vD.wx(S);this.i_()};gz.prototype.rz=function(Z){var S=gz.jw[this.e4.u()].tc,b=[],Y=[],P=Math.round(106*s.Z()),w=Math.round(106*s.Z()),f=0;
for(var D=0;D<S.length;D++)f=Math.max(f,S[D][1],S[D][2]);for(var D=0;D<S.length;D++){var h=S[D],Q=h[1]+" x "+h[2]+" "+h[3];
if(h[3]=="in")Q=(h[1]*25.4).toFixed(0)+" x "+(h[2]*25.4).toFixed(0)+" mm";if(h[3]=="mm")Q=(h[1]/25.4).toFixed(1)+" x "+(h[2]/25.4).toFixed(1)+" in";
if(h[4])Q=Q+" @ "+h[4]+" ppi";Y.push(Q);b.push(gz.Oy(h,P,w,f))}this.vD.TS(b,Y,P,w)};gz.Oy=function(Z,S,b,Y){var P=s.R("canvas",""),w=P.getContext("2d");
P.width=S;P.height=b;var f=Math.round(S/8),h=Math.floor(11*s.Z()),Q=Z[1],e=Z[2];w.fillStyle="#000000";
w.font=Math.round(h*.9)+"px \"Open Sans\", Sans-Serif";var l=Q+" x "+e+" "+Z[3],O=w.measureText(l);w.fillText(l,Math.round((S-O.width)/2),b-Math.round(f/2));
if(Z[0]!=null){w.font="bold "+h+"px \"Open Sans\", Sans-Serif";var l=Z[0],O=w.measureText(l);w.fillText(l,Math.round((S-O.width)/2),b-Math.round(f/2)-Math.round(h*1.3))}b-=Math.round(2.5*h);
var m=Math.min((S-f)/Q,(b-f)/e);m*=.5+.5*(Math.max(Q,e)/Y);var V=(S-Q*m)/2,q=(b-e*m)/2;w.strokeRect(Math.round(V)+.5,Math.round(q)+.5,Math.round(Q*m),Math.round(e*m));
return P.toDataURL()};gz.prototype.B=function(){dz.prototype.B.call(this);this.Dg.B();this.rT.B();this.bv.B();
this.LT.B();this.rT.F(aV.get([11,7]));this.e4.B();this.M$.B()};gz.prototype.sw=function(Z){var S=this.Dg.u(),b=S.x,Y=S.y;
this.close();var P=new d(s.E.TH,!0);P.data=gf.M2(b,Y,this.Dg.cW(),this.rT.u(),["Wht","Trns","BckC"][this.bv.u()]);
this.m(P);this.kI()};gz.prototype.a3p=function(Z){var S=Z.data.hp;S.GY=this.Dg.cW();var b=new d(s.E.P,!0);
b.data={e:s.U.hT,hp:S};this.m(b);this.close();this.kI()};gz.prototype.kI=function(){var Z=this.ve[this.ve.length-1],S=this.data.a7U;
if(S)d3.PA(function(){var b=new XMLHttpRequest,Y="https://www.googleapis.com/drive/v3/files?"+d3.Tf();
b.open("POST",Y,!0);b.setRequestHeader("Content-Type","application/json");b.addEventListener("load",function(P){var w=JSON.parse(P.target.response);
Z.kp={file:w,VJ:"psd"};alert(Z.name+" created in Google Drive")});b.send(JSON.stringify({name:Z.name,an3:[S]}))})};
gz.prototype.lX=function(Z,S,b,Y){this.ve=b;if(Z!=null&&Z.N!=null){var P=new b4(0,0,Z.c,Z.v).Yz(Z.N.rect);
this.Dg.F(new ar(P.c,P.v))}this.data=S;this.i_();this.rT.vq();if(s.Gw())fY.aey(this.aeo.bind(this))};
gz.prototype.aeo=function(Z){if(Z=="granted")fY.$a(this,this.aiy.bind(this))};gz.prototype.aiy=function(Z,S){this.Dg.F(new ar(S.c,S.v))};
gz.jw=[{name:"Social",tc:[["FB Page Cover",1640,664,"px",0],["FB Shared Image",1200,630,"px",0],["FB Event Image",1920,1080,"px",0],["FB Group Header",1640,856,"px",0],["Instagram",1080,1080,"px",0],["Insta Story",1080,1920,"px",0],["Youtube Profile",800,800,"px",0],["Youtube Cover",2560,1440,"px",0],["Twitter Profile",400,400,"px",0],["Twitter Header",1500,500,"px",0]]},{name:[12,88,4],tc:[["A3",297,420,"mm",300],["A4",210,297,"mm",300],["A5",148,210,"mm",300],["B3",353,500,"mm",300],["B4",250,353,"mm",300],["B5",176,250,"mm",300],["Letter",8.5,11,"in",300],["Ledger",11,17,"in",300],["Business Card",3.5,2,"in",300]]},{name:[12,88,0],tc:[["Wallet",2,3,"in",300],["Enprint",3.5,5,"in",300],[null,5,7,"in",300],[null,8,12,"in",300],[null,12,18,"in",300],[null,16,24,"in",300],[null,20,30,"in",300],[null,24,36,"in",300]]},{name:[12,88,1],tc:[["VGA",640,480,"px",0],["XGA",1024,768,"px",0],["HD",1280,720,"px",0],[null,1366,768,"px",0],[null,1600,900,"px",0],["Full HD",1920,1080,"px",0],["2K",2048,1080,"px",0],["UHD",3840,2160,"px",0],["4K",4096,2160,"px",0]]},{name:[12,88,2],tc:[["iPhone 4",640,900,"px",326],["iPhone 5",640,1136,"px",326],["iPhone 6 7 8",750,1334,"px",326],["iPhone 6+ 7+ 8+",1080,1920,"px",401],["iPhone X",1125,2436,"px",458],["Samsung A5",720,1280,"px",0],["Samsung S5",1080,1920,"px",0],["Samsung S6",1440,2560,"px",0],["Samsung S8+",1440,2560,"px",0],["Google Pixel",1080,1920,"px",0],["iPad Mini 4",1536,2048,"px",0],["iPad Air 2",1536,2048,"px",0],["iPad Pro 9.7\"",1536,2048,"px",0],["iPad Pro 10.5\"",1668,2224,"px",0],["iPad Pro 12.9\"",2048,2732,"px",0]]},{name:[12,88,3],tc:[["Small Square",200,200,"px",0],["Square",250,250,"px",0],["Medium Rect",300,250,"px",0],["Large Rect",336,280,"px",0],["Mobile Leaderboard",320,50,"px",0],["Large Mobile",320,100,"px",0],["Banner",468,60,"px",0],["Leaderboard",728,90,"px",0],["Large Leaderboard",970,90,"px",0],["Billboard",970,250,"px",0],["Vertical Rect",240,400,"px",0],["Skyscraper",120,600,"px",0],["Wide Skyscraper",160,600,"px",0],["Half Page",300,600,"px",0],["Portrait",300,1050,"px",0]]},{name:"2\u1D3A",tc:[[null,16,16,"px",0],[null,32,32,"px",0],[null,64,64,"px",0],[null,128,128,"px",0],[null,256,256,"px",0],[null,512,512,"px",0],[null,1024,1024,"px",0],[null,2048,2048,"px",0],[null,4096,4096,"px",0]]}];
function az(Z,S,b){dz.call(this,S,"sel_"+Z);this.e=Z;var Y=s.R("div","form");this.body.appendChild(Y);
this.rT=new c2(S,0,255,null,0,!1,!0);Y.appendChild(this.rT.j);this.rT.F(1);var P=s.R("span");P.textContent=b;
Y.appendChild(P);s.X3(Y);this.a7c=new ec("Apply at canvas bounds");if(Z!="border")Y.appendChild(this.a7c.j);
this.NC=new fX("OK",!0,null,!0);this.NC.i("click",this.sw,this);Y.appendChild(this.NC.j)}az.prototype=new dz;
az.prototype.ZP=function(Z,S){if(Z==null)return;if(Z.N==null)alert("No selection!");return Z.N!=null};
az.prototype.sw=function(Z){var S=new d(s.E.TH,!0);S.data=G.Ks.aiw(this.e,this.rT.u(),this.a7c.u());
S.j9=!0;this.m(S);this.close()};az.prototype.B=function(){dz.prototype.B.call(this);if(this.rT)this.rT.B()};
az.prototype.lX=function(Z,S){};function f1(Z,S,b,Y,P){dz.call(this,b,S);this.By=P;this.jw=null;this.sV=s.R("div","form");
this.body.appendChild(this.sV);this.rT=Z==0?new cY(b):new gu(b,0,500,Y,1);this.rT.i(s.E.L,this.yN,this);
this.sV.appendChild(this.rT.j);this.NC=new fX("OK",!0,null,!0);this.NC.i("click",this.sw,this);this.sV.appendChild(this.NC.j);
this.i("closebtn",this.qK,this)}f1.prototype=new dz;f1.prototype.K7=function(){return!0};f1.prototype.yN=function(Z){var S=this.rT.u();
if(this.By)this.Ry(S)};f1.prototype.qK=function(Z){if(this.By)this.Ry("cancel")};f1.prototype.sw=function(Z){if(this.By)this.Ry("confirm");
else this.Ry(this.rT.u());this.close()};f1.prototype.Ry=function(Z){if(this.jw.s6)this.jw.s6(Z);else if(this.jw.H6){var S=this.jw.H6,b=new d(S.g,!0);
b.T=S.T;b.data=S.k;b.data.G=Z;b.j9=!0;this.m(b)}};f1.prototype.B=function(){dz.prototype.B.call(this);
if(this.rT)this.rT.B()};f1.prototype.lX=function(Z,S){this.jw=S;this.rT.F(S.a7);this.rT.vq();this.yN(null)};
function dP(){dz.call(this,[1,5],"open_from_url");this.zr=null;var Z=s.R("div","form");this.body.appendChild(Z);
this._k=new cY("URL",null,22);Z.appendChild(this._k.j);s.X3(Z);this.sP=new gT([21,0],[[21,2],[21,1]]);
Z.appendChild(this.sP.j);this.LT=new fX("OK",!0,null,!0);this.LT.i("click",this.sw,this);Z.appendChild(this.LT.j)}dP.prototype=new dz;
dP.prototype.B=function(){dz.prototype.B.call(this);this.sP.B()};dP.prototype.lX=function(Z,S,b){this._k.vq();
this.zr=null;if(Z&&b.indexOf(Z)!=-1)this.zr=b.indexOf(Z)};dP.prototype.sw=function(Z){var S=new d(s.E.P,!0),b=this._k.u();
S.data={e:s.U.LV,Sz:{url:b,ge:!0,zr:this.sP.u()==1?this.zr:null}};this.m(S);this.close()};function c6(){dz.call(this,[12,79],"preferences");
this.W3=null;var Z=s.R("div","form");this.body.appendChild(Z);this.Jw=[new ec([8,2]),new ec([8,4]),new gl([12,80,3],[[12,93,3],[12,80,4]]),new gu([12,80,5],1,100,null,2),new gl(null,T.dp.XV),new gl([12,80,6],T.dp.XV)];
for(var D=0;D<this.Jw.length;D++){var S=this.Jw[D];Z.appendChild(S.j);if(D!=3)s.X3(Z);S.i(s.E.L,this.A_,this)}}c6.prototype=new dz;
c6.prototype.B=function(){dz.prototype.B.call(this);for(var D=0;D<this.Jw.length;D++)this.Jw[D].B()};
c6.prototype.lX=function(Z,S,b){};c6.prototype.na=function(Z,S){this.W3=Z;this.Jw[0].F(Z.Gg.vE);this.Jw[1].F(Z.Gg.$M);
this.Jw[2].F(Z.Gg.Sn);this.Jw[3].F(Z.Gg.rV);this.Jw[4].F(Z.Gg.I5);this.Jw[5].F(Z.Gg.iJ)};c6.prototype.A_=function(Z){var S=this.Jw,b=JSON.parse(JSON.stringify(this.W3.Gg));
b.vE=S[0].u();b.$M=S[1].u();b.Sn=S[2].u();b.rV=S[3].u();b.I5=S[4].u();b.iJ=S[5].u();if(b.I5!=4)b.rV=Math.round(b.rV);
var Y=new d(s.E.P,!0);Y.data={e:s.U.h4,Sz:bp.nq,u$:b};this.m(Y)};function gH(){dz.call(this,[11,8],"saveforweb");
this.a3T="";this.i("closebtn",function(){this.ko._D()},this);this.Ze=new ar(512,512);this.hp=null;this.E6=null;
this.acI=null;this.W3=null;s.zy(this.body,"flexrow");var Z=s.R("div"),S=s.R("div");this.body.appendChild(Z);
this.body.appendChild(S);this.d4=s.R("div","imgcont");Z.appendChild(this.d4);this.ko=new eV;this.ko.Xd(this.Ze.x,this.Ze.y);
this.DC=s.R("span");Z.appendChild(this.DC);this.sV=s.R("div","form cell");this.sV.setAttribute("style","width:15em; padding-left:1em;");
S.appendChild(this.sV);this.HI=new gl([12,50],ab.X1());this.sV.appendChild(this.HI.j);this.HI.i(s.E.L,this.WB,this);
this.Dg=new cA(!0,!0,!1,!0);this.Dg.i(s.E.L,this.WB,this);this.sV.appendChild(this.Dg.j);this.pl=new dp;
this.pl.i(s.E.L,this.WB,this);this.sV.appendChild(this.pl.j);this.Ii=new fX([1,2],!0,null,!0);this.Ii.i("click",this.sw,this);
this.sV.appendChild(this.Ii.j)}gH.prototype=new dz;gH.prototype.ZP=function(Z,S){return Z!=null};gH.prototype.B=function(){dz.prototype.B.call(this);
this.Dg.B();this.HI.B();this.pl.B();this.Ii.B()};gH.prototype.sw=function(Z){var S=this.hp.name.split(".")[0],b=ab.X1()[this.HI.u()],Y=this.E6,P=S+"."+b.toLowerCase(),w=this.hp,f=w.CY;
if(f.length!=0&&(b=="JPG"||b=="PNG"||b=="GIF")&&this.pl.u().pop()){var h="<!DOCTYPE html>\n<html>\n<style>div {position:absolute;}</style>\n<head></head>\n<body>\n",Q=[],e={},l=new b4(0,0,w.c,w.v),O=w.Zd();
for(var D=0;D<f.length;D++)Q.push(G.cd.Xs(f,D));Q.reverse();var m=T.rect.b8([0,0,w.c,w.v],Q);for(var D=0;
D<m.length;D++){var V=m[D],q=new b4(V[0],V[1],V[2]-V[0],V[3]-V[1]),K=V.length==5?f[V[4]].v:null,z=T.f(q.X()*4);
T.uH(O,l,z,q);var t="img/img"+(D+1)+"."+b.toLowerCase();e[t]=new Uint8Array(ab.iZ(b).$b([[z.buffer,0]],q.c,q.v,this.pl.u()));
h+="<div style=\"background-image:url('"+t+"'); left:"+q.x+"px; top:"+q.y+"px; width:"+q.c+"px; height:"+q.v+"px\">";
if(K&&K.url.v!="")h+="\n\t<a href=\""+K.url.v+"\" target=\""+K.null.v+"\" style=\"display:block;width:100%;height:100%;\"></a>\n";
h+="</div>\n"}h+="</body>\n</html>\n";var H=T.f(Math.round(h.length*1.5)),i=k.Cz(h,H,0);e["index.html"]=H.slice(0,i);
Y=UZIP.encode(e);P=S+".zip"}if(w.tr){var y=new XMLHttpRequest;y.open("GET","/papi/img/update.php?act=1&id="+w.tr+"&rnd="+Math.random());
y.send()}var j=new d(s.E.P,!0);j.data={e:s.U.d9,data:Y,name:P};this.m(j);this.ko._D();this.close()};
gH.prototype.lX=function(Z,S){if(S.vh!=null)this.HI.F(S.vh);this.hp=Z;var b=Z.c+","+Z.v;if(b!=this.a3T){this.a3T=b;
this.Dg.F(new ar(Z.c,Z.v),Z.GY)}this.pl.agA();this.WB(null,!0)};gH.prototype.pn=function(Z,S){return new ar(Math.max(0,Math.min(150,(Z-770)/2)),Math.max(0,Math.min(150,(S-590)/2)))};
gH.prototype.Xd=function(Z,S){this.Yu=Z;this.XE=S;this.Ze.x=Math.min(512,Z-26-214);this.Ze.y=Math.min(512,S-45);
if(this.hp==null)return;var b=this.Dg.u(),Z=b.x,S=b.y,Y=ab.X1()[this.HI.u()],P=ab.iZ(Y),O="<span style=\"width:",m="display:inline-block; text-align:right;\">";
if(P.Ke){var w=Z,f=S,h;if(Y=="PDF"||P.XP){w=this.Ze.x;f=this.Ze.y}else{w=Math.min(Z+20,this.Ze.x);f=Math.min(S+20,this.Ze.y)}this.d4.firstChild.setAttribute("style","display:block; width:"+w+"px; height:"+f+"px;")}else{if(P.XP){w=this.Ze.x;
f=this.Ze.y}else{var Q=this.acI,e=Q[0].Vl,w=e.c,f=e.v;this.ko.Xd(Math.max(50,Math.min(w/s.Z(),this.Ze.x)),Math.max(50,Math.min(f/s.Z(),this.Ze.y)))}}var l=this.E6.byteLength,V=Y+":"+O+64+"px;"+m+gH.tF(l)+"</span>";
if(this.Ze.x>200)V+=O+90+"px; opacity:"+.5+";"+m+l.toLocaleString()+" B</span>";this.DC.innerHTML=V};
gH.tF=function(Z){var S=Z.toString(2),b=0;while(b+10<S.length)b+=10;var Y=(Z/Math.pow(2,b)).toFixed(1),P="B KB MB GB TB PB".split(" ")[Math.floor(b/10)];
return Y+" "+P};gH.prototype.na=function(Z,S){this.W3=Z};gH.prototype.WB=function(Z,S){var b=this.hp,Y=this.Dg.u(),P=Y.x,w=Y.y,f=this.HI.u(),h=ab.X1()[f],Q=ab.xf(b)[0].length,e=["GIF","PNG","WEBP"].indexOf(h)!=-1&&Q>1,K="";
if(e&&S&&(Q>4&&P*w>1024*1024||P*w*Q>800*800*50)){var l=1;while(Math.max(P>>>l,w>>>l)>800)l++;var O=window.confirm("Your animation is large ("+P+" x "+w+" px). Press \"OK\" to scale it to "+(100>>>l)+"%. Press \"Cancel\" to keep the size.");
if(O){this.Dg.F(new ar(P>>>l,w>>>l),null,!0);P=P>>>l;w=w>>>l}}var m=b.add.artd,V=m==null||m.Cnt.v==1;
this.pl.y3(h,e,b.CY.length!=0,V);var q=this.pl.u();this.E6=ab.k$(b,h,P,w,q,this.W3);if(this.E6==null){this.hp=null;
return}s.Z9(this.d4);this.ko._D();var z=ab.iZ(h);if(z.XP){this.d4.innerHTML="<div></div>";K+="width:0px"}else if(z.Ke){var t=P,H=w,i;
if(h=="PDF"){i=URL.createObjectURL(new Blob([this.E6],{type:"application/pdf"}))}else{i=URL.createObjectURL(new Blob([this.E6],{type:"image/svg+xml"}))}this.d4.innerHTML="<iframe src=\""+i+"\"></iframe>"}else{var y=this.acI=z.Gk(this.E6),j=y[0].Vl,t=j.c,H=j.v;
this.ko.F(y,y.length>1?q[q.length-3]:0);this.d4.appendChild(this.ko.j);K="background: rgba(0,0,0,0);"}this.d4.setAttribute("style","display:block; background-size:"+16/s.Z()+"px;"+K);
this.Xd(this.Yu,this.XE)};function c$(){dz.call(this,[11,13],"shortcuts");var Z=this.P8=s.R("div","scrollable");
Z.setAttribute("style","min-width:700px; max-height:500px; padding:1.5em");this.body.appendChild(Z);
this.N6()}c$.prototype=new dz;c$.prototype.B=function(){dz.prototype.B.call(this);this.N6()};c$.prototype.N6=function(){var Z="<div style=\"line-height:1.4em; column-count:3; column-gap:3em; column-rule-width:1px;\" class=\"\">",S="",b=U,Y=b.cD,P=b.Lo,w=b.G_;
S+="<h2 style=\"margin-top:0;\">Main Menu</h2>";S+=Z;S+=this.Fo([[0,0],"---",[1,0],[Y,b.Vd],[1,2],[Y,b.sG],[1,3],[P,Y,b.sG],[1,8],[w,P,Y,b.sG],[0,1],"---",[2,0],[P,Y,b.ty],[2,1],[Y,b.ty],[5,0],[Y,b.uG],[5,1],[Y,b.C2],[5,2],[Y,b.WR],[2,2],"Delete",[2,3],[w,b.pR],[10,16],[w,Y,b.VW],[12,79],[Y,b.EJ],[3],"---",[4,1],[Y,b.lq],[4,2],[Y,b.g1],[4,5],[Y,b.mf],[4,11],[Y,b.fF],[0,3],"---",[6,0],[Y,b.Rj],[6,6,0],[w,Y,b.ZX],[6,9],[Y,b.ZX],[6,10],[Y,b.E],[0,5],"---",[7,0],[Y,b.U],[7,1],[Y,b.Iy],[7,2],[P,Y,b.fF],[0,7],"---",[8,0],[Y,b.G6],[8,1],[Y,b.Zm],[8,3],[Y,b.KV],[8,2],[Y,b.Re],[8,4],[Y,b.rU],[11,13],"?"]);
S+="</div>";S+="<h2 style=\"margin-top:1.5em;\">Navigation</h2>";S+=Z;S+=this.Fo(["Vertical scroll","Wheel","Horizontal scroll",[Y,"Wheel"],"Zooming",[w,"Wheel"]]);
S+="</div>";S+="<h2 style=\"margin-top:1.5em;\">Quick tools (press to enable, release to disable)</h2>";
S+=Z;S+=this.Fo([[10,11],[Y],[10,7],"Space",[10,17],[Y,b.Ah]]);S+="</div>";S+="<h2 style=\"margin-top:1.5em;\">Tools</h2>";
S+=Z;var f=c$.Yr,h=[];for(var D=0;D<f.length;D+=3)if(f[D+1])h.push(f[D],f[D+1]);h=h.concat([[24,16],"---",[22,7,1],"D",[22,7,0],"X",[6,6,1],"Q","Decrease Brush Size","[","Increase Brush Size","]","Decrease Hardness","{","Increase Hardness","}"]);
S+=this.Fo(h);S+="</div>";this.P8.innerHTML=S};c$.prototype.Fo=function(Z){var S="",b=!0;for(var D=0;
D<Z.length;D+=2){var Y=Z[D],P=U.kq(Z[D+1]);if(P==null){b=!1;continue}var w=s.BN(aV.get(Y));if(P=="---"){if(!b)S+="<br/>";
S+="<div style=\"font-weight:bold; border-bottom: 1px solid;\">"+w+"</div>"}else S+="<div>"+w+" <span style=\"float:right; font-weight:bold;\">"+P+"</span> </div>";
b=!1}return S};c$.Yr=[[10,11],"V",0,[10,15],"M",1,[10,4],"M",2,[10,9],"L",5,[10,14],"L",6,[10,10],"L",7,[10,44],"W",3,[10,37],"W",8,[10,12],"W",9,[10,2],"C",10,[10,39],"C",11,[10,40],"C",12,[10,41],"C",13,[10,5],"I",14,[10,36],"I",16,[10,24],"J",18,[10,25],"J",19,[10,26],"J",20,[10,43],"J",22,[10,0],"B",23,[10,38],"B",24,[10,42],"B",25,[10,1],"S",27,[10,3],"E",31,[10,45],"E",32,[10,6],"G",34,[10,13],"G",35,[10,18],null,36,[10,19],null,37,[10,20],null,38,[10,21],"O",39,[10,22],"O",40,[10,23],"O",41,[10,8],"T",47,[10,29],"P",42,[10,30],"P",43,[10,27],"A",51,[10,28],"A",52,[10,32],"U",54,[10,33],"U",55,[10,35],"U",57,[10,34],"U",56,[10,31],"U",58,[10,7],"H",59,[10,17],"Z",61];
function gh(){dz.call(this,[8,11,1],"soptions");this.gB=null;var Z=s.R("div","form");Z.style.width="20em";
this.body.appendChild(Z);this.u1={Nm:[12,48],url:"URL",null:[12,71]};this.Jw={};for(var S in this.u1){var b=new cY(this.u1[S],null,15);
this.Jw[S]=b;Z.appendChild(b.j)}var Y=new fX("OK",!0,null,!0);Y.i("click",this.sw,this);Z.appendChild(Y.j)}gh.prototype=new dz;
gh.prototype.lX=function(Z,S,b){var Y=S.G;this.gB=JSON.stringify(Y);for(var P in this.u1){if(Y[P])this.Jw[P].F(Y[P].v)}};
gh.prototype.sw=function(Z){var S=JSON.parse(this.gB);for(var b in this.u1){var Y=this.Jw[b].u();S[b]={t:"TEXT",v:Y}}var P=new d(s.E.s,!0);
P.T=G.ee;P.data=S;P.j9=!0;this.m(P);this.close()};function fP(){dz.call(this,[2,3],"fill");this.W3=null;
this.Mc=null;var Z=s.R("div","form padded");Z.style.width="22em";this.body.appendChild(Z);this.y9="FrgC BckC Clr Blck Gry Wht contentAware".split(" ");
this.cE=new gl([2,3],[[12,45],[12,46],[12,47],[13,1,10],[13,1,7],[13,1,8],[6,48,0,3]]);this.cE.i(s.E.L,this.ai1,this);
Z.appendChild(this.cE.j);this.d4=s.R("span");Z.appendChild(this.d4);this.Ge=new gy;this.Ge.parent=this;
this.Ge.D9(0);this.oo=new gl([12,19,0],is.dd,!1,is.JL);Z.appendChild(this.oo.j);this.xE=new gu([12,0],0,100,"%",0,!1);
this.xE.F(100);Z.appendChild(this.xE.j);this.XT=new ec("Preserve Transparency");this.XT.F(!1);Z.appendChild(this.XT.j);
this.LT=new fX("OK",!0,null,!0);this.LT.i("click",this.sw,this);this.body.appendChild(this.LT.j)}fP.prototype=new dz;
fP.prototype.ZP=function(Z,S){return Z!=null};fP.prototype.K7=function(){return!0};fP.prototype.ai1=function(){var Z=this.cE.u()==2,S=this.Ge.j,b=this.d4;
if(Z)b.appendChild(S);else if(b.contains(S))b.removeChild(S)};fP.prototype.B=function(){dz.prototype.B.call(this);
this.cE.B();this.oo.B();this.xE.B()};fP.prototype.sw=function(Z){if(!this.Mc.bY())return;var S=new d(s.E.TH,!0),b=this.cE.u();
S.data=G.px.uB(this.y9[b],is.KP[this.oo.u()],this.xE.u()/100,this.Ge.u(),this.XT.u());this.close();this.m(S)};
fP.prototype.lX=function(Z,S){this.Mc=Z};fP.prototype.na=function(Z,S){this.W3=Z};function f8(){dz.call(this,[14,9],"stroke");
this.W3=null;this.sV=s.R("div","form");this.sV.setAttribute("style","width:24em");this.body.appendChild(this.sV);
this.df=new el("FrFX",!0);this.df.parent=this;var Z=["Sz","Styl","Md","Opct"].concat(a4.pe);for(var D=0;
D<Z.length;D++){var S=this.df.yd[Z[D]].j;this.sV.appendChild(S)}this.MJ=!1;this.LT=new fX("OK",!0,null,!0);
this.LT.i("click",this.sw,this);this.body.appendChild(this.LT.j)}f8.prototype=new dz;f8.prototype.ZP=function(Z,S){return Z!=null};
f8.prototype.K7=function(){return!0};f8.prototype.B=function(){dz.prototype.B.call(this);this.df.B()};
f8.prototype.sw=function(Z){var S=new d(s.E.s,!0);S.T=G.pK;S.data={e:"stroke",ab0:this.df.u()};this.close();
this.m(S)};f8.prototype.lX=function(Z,S){if(!this.MJ){var b=a4.FT[a4.order.indexOf("FrFX")];b=JSON.parse(b);
this.df.update(Z,b);this.MJ=!0}var b=this.df.u(),Y=this.W3.ui;b.Clr.v=T.W.RQ({h:Y>>16&255,l:Y>>8&255,O:Y&255});
this.df.update(Z,b)};f8.prototype.na=function(Z,S){this.W3=Z};function g4(){dz.call(this,[11,9],"textwarp");
this.Jw=new iU;this.Jw.i(s.E.L,this.SI,this);this.Jw.parent=this;this.sV=s.R("div","form");this.sV.setAttribute("style","width:20em");
this.body.appendChild(this.sV);this.sV.appendChild(this.Jw.hI.j);this.sV.appendChild(this.Jw.g$.j);this.sV.appendChild(this.Jw.vs.j);
this.sV.appendChild(this.Jw.Wc.j);this.sV.appendChild(this.Jw.cL.j);this.LT=new fX("OK",!0,null,!0);
this.LT.i("click",this.sw,this);this.sV.appendChild(this.LT.j);this.i("closebtn",this.qK,this)}g4.prototype=new dz;
g4.prototype.K7=function(){return!0};g4.prototype.B=function(){dz.prototype.B.call(this);this.Jw.B()};
g4.prototype.SI=function(Z){var S=this.Jw.u();this.Ry({e:"warp",$e:S})};g4.prototype.Ry=function(Z){var S=new d(s.E.s,!0);
S.T=G.le;S.data=Z;S.j9=!0;this.m(S)};g4.prototype.qK=function(Z){this.Ry({e:"warpCancel"})};g4.prototype.sw=function(Z){this.Ry({e:"warpConfirm"});
this.close()};g4.prototype.lX=function(Z,S){var b=Z.t[Z.C[0]];this.Jw.F(b.add.TySh.Km)};function fs(){dz.call(this,"Raw Photopea","rawpea");
this.hU=null;this.os=null;this.xv=null;this.tL=0;this.V7=null;this.j3=null;this.adc=500;this.ann=500;
this.i("closebtn",this.Jl,this);s.zy(this.body,"flexrow");var Z=s.R("div"),S=s.R("div"),Y="<svg class=\"autoscale gsicon\" viewBox=\"0 0 14 18\" width=\"14\" height=\"18\" fill=\"black\"><path d=\"M14,6 L10,6 L10,0 L4,0 L4,6 L0,6 L7,13 L14,6 L14,6 Z M0,14 L0,16 L14,16 L14,14 Z\" /></svg>";
S.setAttribute("style","padding-left: 1em");this.body.appendChild(Z);this.body.appendChild(S);this.QY=s.R("canvas");
Z.appendChild(this.QY);this.Bp=new hV(225);this.Bp.ZC(4);S.appendChild(this.Bp.j);this.sV=s.R("div");
this.sV.setAttribute("style","width:18em;");S.appendChild(this.sV);this.abv=new bE("Hi",!0);this.sV.appendChild(this.abv.j);
this.IC=[new bS("Temperature",2e3,13e3),new bS("Tint",-150,150),new bS([4,3],-4,4,null,!0),new bS([12,3,0],-100,100)];
for(var D=0;D<this.IC.length;D++){var b=this.IC[D];b.F(0);b.i(s.E.L,this.T2,this);this.sV.appendChild(b.j);
if(D==1)this.sV.appendChild(s.R("hr"))}this.LT=new fX([1,0],!0,null,!0);this.LT.i("click",this.sw,this);
this.sV.appendChild(this.LT.j);this.wE=new fX(Y+" JPG",!0,null,!0);this.wE.i("click",this.ajd,this);
this.sV.appendChild(this.wE.j);this.wE.j.style.marginTop="6px"}fs.prototype=new dz;fs.prototype.pn=function(){return new ar(0,0)};
fs.prototype.Xd=function(Z,S){this.adc=Z-274;this.ann=S-32;if(this.hU)this.Dj()};fs.prototype.B=function(){dz.prototype.B.call(this);
this.LT.B();for(var D=0;D<this.IC.length;D++)this.IC[D].B()};fs.prototype.ajd=function(Z){var S=this.hU,b=this.os,Y=T.f(S.width*S.height*4);
T._U(Y,4294967295);T.raw.lk(b,Y,S,this.Sy());var P=ab.iZ("JPG").$b([[Y.buffer]],b.D_,b.H1,[85]),w=new d(s.E.P,!0);
w.data={e:s.U.d9,data:P,name:"photo.jpg"};this.m(w)};fs.prototype.sw=function(Z){var S=this.hU,b=this.os,Y=T.f(S.width*S.height*4);
T._U(Y,4294967295);T.raw.lk(b,Y,S,this.Sy());var P=b_.Ue(S),S={Vl:new b4(0,0,b.D_,b.H1),data:Y.buffer,tU:P},w=ab.kR("Raw Photo",[S]),f=new d(s.E.P,!0);
f.data={e:s.U.hT,hp:w};this.m(f);this.Jl();this.close()};fs.prototype.Jl=function(){this.hU=null;this.os=null;
this.V7=null;this.j3=null};fs.prototype.lX=function(Z,S,b,Y){this.hU=S.R3;this.os=T.raw.ae8(this.hU);
var P=this.os;this.abv.F(P.D_+" x "+P.H1+", "+(P.D_*P.H1/1e6).toFixed(1)+" MPx");var w=T.raw.aem(S.R3);
this.xv=d5.yv(w);this.IC[0].F(this.xv.OR);this.IC[1].F(this.xv.BF);for(var D=2;D<this.IC.length;D++)this.IC[D].F(0);
this.Dj()};fs.prototype.na=function(Z,S){this.Bp.D9(eF.XX[Z.Ql]["--text-color"])};fs.prototype.Dj=function(){var Z=this.os,S=Z.D_,b=Z.H1,Y=1;
while(S/Y>this.adc*s.Z()||b/Y>this.ann*s.Z())Y++;var P=Math.floor(S/Y),w=Math.floor(b/Y);this.V7={j$:new Float32Array(P*w*3),D_:P,H1:w};
var f=this.QY.getContext("2d");this.j3=f.createImageData(P,w);T._U(this.j3.data,4294967295);var h=1/(Y*Y);
for(var Q=0;Q<w;Q++)for(var e=0;e<P;e++){var l=0,O=0,m=0,V=(e+1)*Y,q=(Q+1)*Y;for(var K=Q*Y;K<q;K++)for(var z=e*Y;
z<V;z++){var t=(K*S+z)*3;l+=this.os.j$[t];O+=this.os.j$[t+1];m+=this.os.j$[t+2]}var H=(Q*P+e)*3;this.V7.j$[H]=l*h;
this.V7.j$[H+1]=O*h;this.V7.j$[H+2]=m*h}this.T2()};fs.prototype.T2=function(){var Z=this.hU,S=this.V7.D_,b=this.V7.H1,Y=S*b,P=this.QY,w=P.getContext("2d");
P.width=S;P.height=b;s.$k(P,S,b);T.raw.lk(this.V7,new Uint8Array(this.j3.data.buffer),Z,this.Sy());w.putImageData(this.j3,0,0);
var f=T.YY(this.j3.data);for(var D=0;D<4;D++)for(var h=1;h<256;h++)if(f[D][h]==0)f[D][h]=f[D][h-1];for(var D=0;
D<4;D++)for(var h=1;h<256;h++)if(f[D][h]==0)f[D][h]=f[D][h-1];this.Bp.F(f)};fs.prototype.Sy=function(){var Z=[];
for(var D=0;D<this.IC.length;D++)Z.push(this.IC[D].u());return Z};function dv(){dz.call(this,[11,11],"vbitmap");
this.jw=null;this.f4=null;this.Ss=null;this.Kv=null;this.mP=null;this.KR=this.Mn.bind(this);this.sV=s.R("div","form hbar");
this.body.appendChild(this.sV);this.n3=new gu([12,82],2,50,null);this.n3.i(s.E.L,this.Mn,this);this.sV.appendChild(this.n3.j);
this.Vj="";this.Ob=new ec([12,81]);this.Ob.i(s.E.L,this.Mn,this);this.sV.appendChild(this.Ob.j);this.L_=new ec("Segmentize");
this.L_.i(s.E.L,this.Mn,this);this.sV.appendChild(this.L_.j);this.LT=new fX("OK",!1,null,!0);this.LT.i("click",this.sw,this);
this.sV.appendChild(this.LT.j);var Z=s.R("div","flexrow"),S=16;this.body.appendChild(Z);this.uZ=new eV;
this.uZ.i("viewchange",this.FU,this);this.OD=s.R("canvas");this.OD.setAttribute("style","margin-left: 1px; cursor:grab;");
this.Bi=this.OD.getContext("2d");var b=T.f(16*16*4);T.bO(b,S,S,8);this.TC=T.scale.ZO(b,S,S);this.uZ.HX(this.OD);
Z.appendChild(this.uZ.j);Z.appendChild(this.OD)}dv.prototype=new dz;dv.prototype.pn=function(){return new ar(0,0)};
dv.prototype.K7=function(){return!0};dv.prototype.Xd=function(Z,S){S=S-26-30;Z=Math.floor((Z-28)/2);
s.ed(this.OD,Z,S);this.uZ.Xd(Z,S)};dv.prototype.XF=function(Z,S,b,Y){this.uZ.XF(Y)};dv.prototype.B=function(){dz.prototype.B.call(this);
this.n3.B();this.Ob.B();this.L_.B();this.LT.B()};dv.prototype.lX=function(Z,S){this.mP=Z;var b=Z.t[Z.C[0]],Y=T.Or.Ln(b.buffer.buffer,b.rect.c,b.rect.v).ag5,P=Y/((b.rect.c-2)*(b.rect.v-2));
this.Ob.F(P<.75);this.L_.F(!1);var w=b.rect.clone();w.x=w.y=0;this.jw={Vl:w,data:b.buffer.buffer.slice(0)};
this.f4=null;this.uZ.F([this.jw]);this.n3.F(20);setTimeout(this.KR,20)};dv.prototype.Mn=function(){var Z=!0,S=Date.now(),b=this.jw,Y=this.Ob.u(),P=this.L_.u(),w=Y||P,f=Y+","+P;
if(w&&(this.f4==null||this.Vj!=f)){this.Vj=f;console.log("recomputing");var h=new Uint8Array(b.data.slice(0)),Q=15,e=35,l=b.Vl.c,O=b.Vl.v;
if(Y){cL.k2(h,h,l,O,Q,T.gf.RE,[e],2)}if(Z){console.log("denoise",Date.now()-S);S=Date.now()}if(P){var m=T.Or.Ep(h,l,O),V=m.EJ,q=new Uint8Array(V*4);
for(var D=0;D<V;D++){var K=D*4,z=D*6,t=1/m.dc[z+5];q[K]=m.dc[z]*t;q[K+1]=m.dc[z+1]*t;q[K+2]=m.dc[z+2]*t}for(var D=0;
D<h.length;D+=4){var H=m.ZG[D>>>2]*4;h[D]=q[H];h[D+1]=q[H+1];h[D+2]=q[H+2]}}this.f4={Vl:b.Vl.clone(),data:h.buffer};
if(Z){console.log("segm",Date.now()-S);S=Date.now()}}if(w)b=this.f4;var h=new Uint8Array(b.data),l=b.Vl.c,O=b.Vl.v;
for(var D=0;D<h.length;D+=4){if(h[D+3]<10)h[D]=h[D+1]=h[D+2]=h[D+3]=0}var i=T.Or.anl(h,l,O,this.n3.u(),w?.1:2e-4);
if(Z){console.log("doclipart",Date.now()-S);S=Date.now()}var y=i.ZG.slice(0);for(var D=0;D<y.length;
D++)y[D]++;var j=new Uint8Array((l+2)*(O+2));T.JS(y,new b4(1,1,l,O),j,new b4(0,0,l+2,O+2));var J=Math.round((l+2)*(O+2)/1e4),A=hQ.Se(j,l+2,O+2,Math.min(12,J)),a=hQ.zl(A),I=new fR(1,0,0,1,-1,-1);
for(var D=0;D<a.length;D++)T.z.A(a[D].path.H,I,a[D].path.H);this.Kv=a;this.Ss=i;if(Z){console.log("trace",Date.now()-S);
S=Date.now()}for(var D=0;D<a.length;D++){var E=a[D];for(var c=D+1;c<a.length;c++){var u=a[c];if(i.B0[u.color-1].est.q[3]>.05||u.parent!=D)continue;
var n=u.path.K.slice(1);n.reverse();n=["M"].concat(n);var o=[],A=u.path.H.length;for(var x=0;x<A;x+=2){o[x]=u.path.H[A-2-x];
o[x+1]=u.path.H[A-2-x+1]}T.z.concat(E.path,{H:o,K:n})}}for(var D=0;D<a.length;D++){var E=a[D],g=i.B0[E.color-1].est.q;
if(g[3]<=.05){a.splice(D,1);D--;continue}}for(var D=1;D<a.length;D++){var v=a[D-1],E=a[D];if(v.color==E.color){T.z.concat(v.path,E.path);
a.splice(D,1);D--;continue}}this.FU()};dv.prototype.FU=function(Z){if(this.Kv==null)return;var S=this.jw.Vl.c,b=this.jw.Vl.v,Y=this.Kv,P=this.Ss.B0,w=this.Bi,f=this.uZ.Lt();
w.setTransform(1,0,0,1,0,0);w.clearRect(0,0,w.canvas.width,w.canvas.height);w.translate(w.canvas.width/2,w.canvas.height/2);
w.scale(f.S,f.S);w.translate(f.n.x/f.S-S/2,f.n.y/f.S-b/2);w.scale(1/f.S,1/f.S);w.fillStyle=this.TC;w.fillRect(0,0,S*f.S,b*f.S);
w.scale(f.S,f.S);var h=[];for(var D=0;D<P.length;D++){var Q=P[D].est.q;h.push({h:Math.round(255*Q[0]),l:Math.round(255*Q[1]),O:Math.round(255*Q[2]),w:Math.round(255*Q[3])})}for(var D=0;
D<Y.length;D++){var e=Y[D],Q=h[e.color-1];if(Q.w==0)continue;w.fillStyle="rgba("+Q.h+","+Q.l+","+Q.O+","+Q.w/255+")";
w.beginPath();Typr.U.pathToContext({crds:e.path.H,cmds:e.path.K},w);w.fill()}};dv.prototype.sw=function(Z){var S=this.Kv,b=S.length==1,Y=this.mP,P=Y.C[0],w=Y.t[P],f=Y.t.slice(0,P);
if(!b)f.push(Y._z());for(var D=0;D<S.length;D++){var h=S[D],Q=this.Ss.B0[h.color-1].est.q;T.z.A(h.path.H,new fR(1,0,0,1,w.rect.x,w.rect.y),h.path.H);
var e=Y.Dl();e.wc("Path "+D);f.push(e);e.opacity=Math.round(Q[3]*255);e.NG|=16;e.add.SoCo={classID:"null",Clr:{t:"Objc",v:T.W.RQ({h:255*Q[0],l:255*Q[1],O:255*Q[2]})}};
e.add.vmsk=new F.NS;e.add.vstk=JSON.parse(JSON.stringify(a4.m3.default));e.add.vmsk.b=T.z.Cp(h.path,!1);
e.add.vogk=[];e.AU();e.vK(Y)}var l=f[f.length-1];if(!b){var e=Y.Dl();e.wc(w.getName());e.add.lsct=fr.k8;
e.WL="pass";e.NG=24;f.push(e);l=e}var O=w.add.lmfx;if(O)l.add.lmfx=JSON.parse(JSON.stringify(O));for(var D=P+1;
D<Y.t.length;D++)f.push(Y.t[D]);var m=new d(s.E.s,!0);m.j9=!0;m.T=G.kd;m.data={e:F.Kb,gR:f,iH:[P+S.length+(b?-1:1)],ep:[11,11]};
this.m(m);this.close()};function gp(Z){dz.call(this,[[7,11],[7,13]][Z],["redge","magiccut"][Z]);this._1=Z;
this.jw={};this.yg=null;this.Oz=null;this.mP=null;this.Px=null;this.B5=null;this.vo=[];this.g_=-1;this.sV=s.R("div","form hbar");
this.body.appendChild(this.sV);this.an=new iH;this.an.parent=this;this.an.i(s.E.L,this.uz,this);this.sV.appendChild(this.an.j);
var S=Z==0?["#ffffff","#888888","#000000"]:["#00dd00","#888888","#ff0000"];S=S.concat(PIMG["tools/hand"],PIMG.zoomIn,PIMG.zoomOut);
var b=Z==0?[[12,45],"Unknown",[12,46]]:[[12,45],"Erase",[12,46]];this.KT=new gO(null,S,b,28);this.KT.i(s.E.L,this.XF,this);
this.sV.appendChild(this.KT.j);this.e8=new c2([7,9],0,50,null);this.e8.parent=this;this.e8.i(s.E.L,[this.rH,this.Mn][Z],this);
this.sV.appendChild(this.e8.j);var Y=this.a6O=new fX([2,2],!1,null,!0);Y.i("click",this.Jl,this);this.sV.appendChild(Y.j);
var P=this.aeR=new fX([12,90],!1,null,!0);P.i("click",function(Q){alert(Z==0?aV.get([15,7,1]):"Mark the object with Green, background with Red. Two colors should never touch.",5e3)},this);
this.sV.appendChild(P.j);var w=new fX("Tutorial",!1,null,!0);w.i("click",this.an1,this);this.sV.appendChild(w.j);
var f=s.R("span","form");this.sV.appendChild(f);f.setAttribute("style","position:absolute; right:0px");
this.t3=new gO([12,46],["checker","#ffffff","#000000"]);this.t3.i(s.E.L,this.jH,this);f.appendChild(this.t3.j);
this.r1=new gl(null,[[6,13],[6,2],[17,2]]);f.appendChild(this.r1.j);this.LT=new fX("OK",!1,null,!0);
this.LT.i("click",this.sw,this);f.appendChild(this.LT.j);var h=s.R("div","flexrow");this.body.appendChild(h);
this.lV=new eV(!0);this.Nc=new eV;this.lV.OQ(this.Nc);this.Nc.OQ(this.lV);this.lV.i("mousedown",this.UQ,this);
this.lV.i("mousemove",this.Sw,this);this.lV.i("mouseup",this.LP,this);this.lV.i("zoom",this.uz,this);
this.Nc.i("zoom",this.uz,this);h.appendChild(this.lV.j);h.appendChild(this.Nc.j)}gp.prototype=new dz;
gp.prototype.ZP=function(Z,S){var b=Z!=null&&!Z.t[Z.C[0]].rect.h3();if(!b)alert("The layer is empty.");
return b};gp.prototype.pn=function(){return new ar(0,0)};gp.prototype.K7=function(){return!0};gp.prototype.Xd=function(Z,S){S=S-26-33;
Z=Math.floor((Z-28)/2);this.lV.Xd(Z,S);this.Nc.Xd(Z,S)};gp.prototype.B=function(){dz.prototype.B.call(this);
this.an.B();this.e8.B();this.LT.B();this.t3.B();this.r1.B();this.a6O.B();this.aeR.B()};gp.prototype.an1=function(Z){window.open("//www.photopea.com/"+["learn/refine-edge","tuts/magic-cut-remove-image-background-online"][this._1],"_blank")};
gp.prototype.na=function(Z,S){this.Oz=Z;if(S==bp.sb||S==bp._O){this.an.VU(Z.Xg);this.an.F(d6.H0(),Z.Xg.qr,Z.Xg.kT)}};
gp.prototype.XF=function(Z,S,b,Y){var P=this.KT.u();if(Y==null){var Y=new U;if(P>=3)Y.hL("Space");if(P>=4){Y.hL("ControlLeft");
if(P==5)Y.hL("AltLeft")}this.lV.XF(Y);return}this.Px=Y;var w=G.px.Cq(this.an.u(),Y);if(w!=null){this.an.F(w);
this.uz()}else if(Y.q(U.cD)&&Y.q(U.ty)){var f=this.vo,h=0;if(Y.q(U.Lo)){if(this.g_+1<f.length)h=1}else if(this.g_>0)h=-1;
if(h!=0){this.g_+=h;var Q=this.g_,e=this.jw;if(h==1)T.uH(f[Q][2],f[Q][0],e.Ie,e.rect);else T.uH(f[Q+1][1],f[Q+1][0],e.Ie,e.rect);
e.Q_=e.rect;this.Mn()}}else if(P<3)this.lV.XF(Y)};gp.prototype.DQ=function(Z){var S=this.jw,b=this.vo,Y=T.f(Z.X()*4);
T.uH(S.aN,S.rect,Y,Z);S.aN=null;var P=T.f(Z.X()*4);T.uH(S.Ie,S.rect,P,Z);this.g_++;b[this.g_]=[Z.clone(),Y,P];
while(b.length>this.g_+1)b.pop();while(b.length>50){b=b.slice(1);this.g_--}};gp.prototype.uz=function(){var Z=this.Oz,S=b6.vz(this.an.u(),Z.Xg.qr,this.lV.Lt().S);
this.lV.gk(S)};gp.prototype.UQ=function(Z){var S=this.Oz,b=this.jw,Y=this.Px,P=this.an.u(),w=this.lV.pI(),f=[16777215,8421504,0][this.KT.u()];
this.yg=new b6(P,S.Xg.list[0].qr,S.Xg.list[0].kT,{y6:1,Yp:!0},f,S.VY,b.rect);b.aN=b.Ie.slice(0);if(Y!=null&&Y.q(U.Lo)&&this.B5){this.yg.moveTo(this.B5.x,this.B5.y);
this.yg.lineTo(w.x,w.y)}else this.yg.moveTo(w.x,w.y);this.Vp()};gp.prototype.Sw=function(Z){var S=this.jw,b=this.lV.pI();
this.yg.lineTo(b.x,b.y);this.Vp()};gp.prototype.LP=function(Z){this.B5=this.lV.pI();this.DQ(this.yg.tj());
this.Mn()};gp.prototype.Vp=function(){var Z=this.jw,S=this.yg,b=S.JE();if(b.h3())return;Z.Q_=b;T.p.xJ("norm",S.f9(),S.Ij(),Z.Ie,Z.rect,b,1);
this.my()};gp.prototype.Jl=function(Z){var S=this.jw;S.aN=S.Ie.slice(0);S.Q_=S.rect;T._U(S.Ie,[4278190080,4292730333][this._1]);
this.DQ(S.rect);this.Mn()};gp.prototype.lX=function(Z,S){this.mP=Z;var b=Z.t[Z.C[0]],Y=b.rect.clone(),P=Y.c,w=Y.v;
this.e8.F(this._1==0?3:P*w<3e6?3:0);this.KT.F(Z.N==null?0:1);this.e8.J7();if(this._1==0&&Z.N!=null||this._1==1)this.e8.zA();
var f=this._1,h=T.f(Y.X()),Q=new Float32Array(Y.X());if(f==0&&Z.N){T.JS(Z.N.channel,Z.N.rect,h,Y);var e=T.f(Y.X());
for(var l=0;l<w;l++)for(var O=0;O<P;O++){var D=l*P+O,m=h[D];if(O>0&&h[D-1]!=m||O<P-1&&h[D+1]!=m||l>0&&h[D-P]!=m||l<w-1&&h[D+P]!=m)e[D]=255}T.style.ED(e,Q,P,w)}else Q.fill(1e9);
Y.x=Y.y=0;this.jw={rect:Y,j$:b.buffer,O1:h,_m:Q,Rf:T.f(Y.X()*4),Cu:T.f(Y.X()*4),Ie:T.f(Y.X()*4),aN:null,QQ:null,Q_:Y,a2d:{}};
if(f==0)this.rH();else{this.jw.a2d=G.N4.YP(Z);var V=this.jw.Ie;T._U(V,4287137928);var q=T.ea.getSelection(b.buffer,P,w),K=Math.round(P/60),z=Math.round(.7*w);
for(var l=0;l<w;l++)for(var O=0;O<P;O++){var t=(l*P+O)*4,H=q[t>>>2];H=H>128?255:128;if(l<K||l<z&&(O<K||O>P-1-K))H=0;
V[t]=V[t+1]=V[t+2]=H}this.Mn()}this.vo=[1];this.g_=0;this.lV.alG();var i=this.an.u();i.Brsh.v.Dmtr.v.val=Math.round(Y.c/(f==0?10:20));
this.an.F(i);this.uz()};gp.prototype.rH=function(){var Z=this.jw,S=Z.rect.X(),b=this.e8.u(),Y=Z.O1.slice(0);
for(var D=0;D<S;D++)if(Z._m[D]<b)Y[D]=128;T._U(Z.Ie,4294967295);T.y8(Y,Z.Ie,0);T.y8(Y,Z.Ie,1);T.y8(Y,Z.Ie,2);
Z.Q_=Z.rect;this.Mn()};gp.prototype.Mn=function(){var Z=this.jw,P,h,Q=0,e=0,l=0;this.my();var S=Z.rect,b=S.c,Y=S.v,w=T.f(S.X()),f=Z.j$;
T.to(Z.Ie,w,0);for(var D=0;D<w.length;D++){if(f[(D<<2)+3]!=255)continue;var O=w[D];if(O==0)Q++;else if(O==255)e++;
else l++}if(Q*e*l!=0){if(this._1==0)h=T.yk.yk(S,f,w);else{var m=this.KT.u();for(var V=1;V<Y;V++)for(var q=1;
q<b;q++){var D=V*b+q,K=w[D],z=w[D-1];if(K==0&&z==255||K==255&&z==0){P="The Red and Green should never touch! Erase it with Grey.";
break}}var t=Date.now(),H=this.jw.a2d;T.Bv(w,H.m6);G.N4.Bj(H,!0);var i=Math.ceil(this.e8.u()/2);if(i==0){h=f.slice(0);
T.y8(H.N,h,3)}else{var y=H.N.slice(0),j=H.N.slice(0);for(var J=0;J<i;J++){for(var V=1;V<Y-1;V++)for(var q=1;
q<b-1;q++){var D=V*S.c+q,A=y[D];if(y[D-b]!=A||y[D-1]!=A||y[D+1]!=A||y[D+b]!=A)j[D]=128;else j[D]=A}var a=y;
y=j;j=a}h=T.yk.yk(S,f,y,20,!1)}}}else{h=f.slice(0);T.y8(w,h,3)}for(var D=3;D<h.length;D+=4)if(h[D]>f[D])h[D]=f[D];
if(S.Oh(Z.rect))Z.QQ=h;else T.uH(h,S,Z.QQ,Z.rect);this.jH();if(P)alert(P,4e3)};gp.prototype.my=function(Z){var S=this.jw,b=S.Q_;
T.uH(S.j$,S.rect,S.Rf,S.rect,b,!0);var Y=S.Ie;if(this._1==1){var P=new Uint32Array(256);P[0]=4278190335;
P[255]=4278255360;var w=S.rect.X();Y=Y.slice(0);var f=new Uint32Array(Y.buffer);for(var D=0;D<w;D+=2){f[D]=P[f[D]&255];
f[D+1]=P[f[D+1]&255]}}T.p.xJ("norm",Y,S.rect,S.Rf,S.rect,b,.3);this.lV.F([{Vl:S.rect,data:S.Rf.buffer}])};
gp.prototype.jH=function(Z){var S=this.jw;T._U(S.Cu,[0,4294967295,4278190080][this.t3.u()]);T.p.xJ("norm",S.QQ,S.rect,S.Cu,S.rect,S.rect,1);
this.Nc.F([{Vl:S.rect,data:S.Cu.buffer}])};gp.prototype.sw=function(Z){var S=this.mP,b=this.jw,Y=this.r1.u(),P=S.t[S.C[0]],w=new d(s.E.s,!0);
w.j9=!0;var f=P.rect.clone();if(Y==0&&P._7()||Y!=0&&!P._7()){w.T=G.kd;w.data={e:F.qk,$:S.C[0]};this.m(w)}if(S.N!=null){w.T=G.r9;
w.data={e:"fromAction",K4:G.Ks.zP()};this.m(w)}if(Y==0){var h=S.t.slice(0),Q=S.Dl();Q.wc(P.getName());
h.splice(S.C[0]+1,0,Q);Q.rect=f;Q.buffer=b.QQ;Q.D();w.T=G.kd;w.data={e:F.Kb,gR:h,iH:[S.C[0]+1],ep:[7,11]};
this.m(w)}if(Y==1){var e=P.Y6();w.T=G.kd;w.data={e:F.q5,a3E:!0};this.m(w);var l=P.Y6();l.channel=T.f(f.X());
l.rect=f;l.color=0;l.Th=!0;T.to(b.QQ,l.channel,3);if(e){var O=l.Co(e);l.rect=O.rect;l.channel=O.channel;
l.color=O.color}l.gi();P.vK()}if(Y==2){var m={rect:f,channel:T.f(f.X())};T.to(b.QQ,m.channel,3);w.T=G.r9;
w.data={e:"setsel",N:m,ep:this.af};this.m(w)}this.close()};function aO(){dz.call(this,[1,13],"locstor");
this.W3=null;this.Df=[];var Z=this.body,S=s.R("p");S.textContent="These files are loaded every time you start Photopea.";
Z.appendChild(S);this.aeP=0;this.u6=s.R("span");Z.appendChild(this.u6);this.u6.setAttribute("style","display:inline-block; width:12em; font-weight:bold;");
var b=s.R("span","form");Z.appendChild(b);this.X$=new fX([5,4],!1,null,!0);this.X$.i("click",this.a7Z,this);
b.appendChild(this.X$.j);this.a38=new fX("Get all as ZIP",!1,null,!0);this.a38.i("click",this._F,this);
b.appendChild(this.a38.j);this.mU=new aD(!0);this.mU.parent=this;this.mU.ZC(1);this.mU.i(s.E.L,this.a45,this);
Z.appendChild(this.mU.j);this.mU.j.setAttribute("style","width: 40em; height: 25em")}aO.prototype=new dz;
aO.prototype.B=function(){dz.prototype.B.call(this);this.u6.textContent=aV.get([13,2])+": "+gH.tF(this.aeP);
this.X$.B()};aO.prototype.na=function(Z,S){this.W3=Z;if(S==bp.C$)this.lX()};aO.prototype.lX=function(Z,S){var b=this.W3.fO.Na,Q=0;
this.Df=[];for(var Y in b)this.Df.push(Y);this.Df.sort(function(l,O){l=l.split(".");O=O.split(".");return l[1]==O[1]?l[0]<O[0]?-1:1:l[1]<O[1]?-1:1});
var P=Math.floor(100*s.Z()),w=Math.floor(16*s.Z()),f=[],h=[];for(var D=0;D<this.Df.length;D++){var Y=this.Df[D],e=aO.Oy(Y,b[Y],P,w);
f.push(e);h.push(Y);Q+=b[Y].byteLength}this.mU.TS(f,h,P,w);this.aeP=Q;this.B()};aO.prototype.a45=function(Z){this.mU.wx(this.mU.u())};
aO.prototype.a7Z=function(Z){var D=this.mU.u();if(D==-1){alert("Select a file first.");return}this.mU.F(-1);
var S=this.W3.fO.Na;delete S[this.Df[D]];var b=new d(s.E.P,!0);b.data={e:s.U.h4,Sz:bp.C$};this.m(b)};
aO.prototype._F=function(Z){var S=this.W3.fO.Na,b={};for(var Y in S)b[Y]=new Uint8Array(S[Y]);var P=UZIP.encode(b);
fY.save(P,"resources.zip")};aO.Oy=function(Z,S,b,Y){var P=s.R("canvas"),h=0;P.width=b;P.height=Y;var w=P.getContext("2d"),f=Z.split(".").pop().toLowerCase();
for(var D=0;D<f.length;D++)h+=f.charCodeAt(D)*613<<8*D;w.fillStyle="#"+T.T3(h&16777215);w.fillRect(0,0,20,Y);
var Q=Math.floor(14*s.Z());w.fillStyle="#000000";w.font="bold "+Q+"px sans-serif";var e=(Y-Q)/2,l=gH.tF(S.byteLength),O=w.measureText(l);
w.fillText(l,b-12-O.width,Y-e);return P.toDataURL()};function hL(Z,S,b){dz.call(this,S,"cwindow");this.a3k=new ar(b[0],b[1]-33);
this.sV=s.R("div","form");this.sV.setAttribute("style","width:"+(b[2]-b[0])+"px; height:"+(b[3]-b[1])+"px");
this.body.appendChild(this.sV)}hL.prototype=new dz;hL.prototype.pn=function(Z,S){return this.a3k.clone()};
function fc(){dz.call(this,["PSD VAR0",[25,0]],"templates");this.cp=null;this.Q9=0;this.wI=null;this.body.setAttribute("style","padding:0");
this.OL=new fX("Add Templates",null,null,!0);this.body.appendChild(this.OL.j);this.OL.i("click",this.fy,this);
this.OL.j.setAttribute("style","position:absolute; margin-top: -28px; margin-left:150px");this.ad3=new fX("New Template",null,null,!0);
this.ad3.i("click",this.aoH,this);this.Xm=s.R("iframe","scrollable");this.Xm.setAttribute("style","border:none; margin:0; padding:0;");
this.B8=s.R("div","form scrollable padded");this.Hq=s.R("div","form scrollable padded label12");var Z=[],S=fc._h;
this.fc=[];for(var b in S){var Y=parseInt(b.slice(1)),P=Y%10==0?"":"\u2800\u2800- ";Z.push(P+S[b]);this.fc.push(Y)}this.mo=[new cY("Name",null,30),new cY("Description",null,30,4),new cY("File"," www.Photopea.com#i...",17),new cY("Thumbnail URL","* Use Imgur.com etc., ratio 3:2",17),new gl("Category",Z),new fX("<< Back",null,null,!0),new fX("Save",null,null,!0),new bE("Publish your PSD: File - Publish Online - PSD. Use that URL as \"File\"."),new bE("Get a Thumbnail URL: File - Publish Online - JPG. At Imgur.com, right-click your image and choose \"Copy Image Address\".")];
for(var D=0;D<this.mo.length;D++){var w=this.mo[D];this.Hq.appendChild(w.j);w.parent=this;if(D!=5)s.X3(this.Hq);
if(w instanceof fX)w.i("click",this.a33,this)}this.body.appendChild(this.Xm)}fc.prototype=new dz;fc.prototype.pn=function(Z,S){return new ar(0,0)};
fc.prototype.Xd=function(Z,S){S=S-4;Z=Z;var b=this.B8;b.style.width=Z-12+"px";b.style.height=S-12+"px";
var b=this.Hq;b.style.width=Z-12+"px";b.style.height=S-12+"px";var b=this.Xm;b.style.width=Z+"px";b.style.height=S+"px"};
fc.prototype.B=function(){dz.prototype.B.call(this)};fc.prototype.lX=function(Z,S,b,Y){this.fy(null,!1)};
fc.prototype.fy=function(Z,S){var b=S!=null?S:s.mO(this.Xm);if(b){if(!fv.gx()){alert("You need to log in first!");
return}var Y=fv._s();this.cp=Y.tpl?Y.tpl.list:[];this.nY()}else{this.Xm.setAttribute("src","");this.Xm.setAttribute("src","plugins/templates.html")}this.body.removeChild(this.body.children[this.body.children.length-1]);
this.body.appendChild(b?this.B8:this.Xm);this.OL.bl(b?"All Templates":"Add Templates")};fc.prototype.nY=function(){var Z=this.cp,S=this.B8;
s.Z9(S);var b=s.R("h1");b.textContent="Share your PSD templates with the world!";var Y=s.R("h3");Y.textContent="Users won't be able to download a PSD, they can only export a JPG or a PNG after editing.";
S.appendChild(b);S.appendChild(Y);S.appendChild(this.ad3.j);for(var D=0;D<Z.length;D++){var P=Z[D],w=s.R("div");
S.appendChild(w);w.setAttribute("style","clear:both;");var f=s.R("img");w.appendChild(f);f.setAttribute("src",P.thmb);
f.setAttribute("style","height:10em; float:left; margin-right: 1em; margin-bottom:1em;");var h=s.R("h3");
w.appendChild(h);h.textContent=P.name;var Q=s.R("p");w.appendChild(Q);Q.textContent=P.desc;for(var e=0;
e<2;e++){var l=new fX(e==0?"Edit":"Delete",null,null,!0);l.a59=D;l.Z6=e==0;l.i("click",this.aib,this);
w.appendChild(l.j)}}};fc.prototype.aoH=function(Z){this.wI={catg:0,desc:"",file:"",name:"",thmb:"",utme:""};
this.Z6()};fc.prototype.aib=function(Z){this.Q9=Z.target.a59;if(!Z.target.Z6){this.cp.splice(this.Q9,1);
this._F();this.nY();return}this.Z6()};fc.prototype.Z6=function(){this.body.removeChild(this.B8);this.body.appendChild(this.Hq);
var Z=["name","desc","file","thmb"],S=this.wI?this.wI:this.cp[this.Q9];for(var D=0;D<4;D++){var b=S[Z[D]];
if(b!=""&&D==2)b="https://photopea.com#i"+b;this.mo[D].F(b)}this.mo[4].F(this.fc.indexOf(S.catg))};fc.prototype.a33=function(Z){if(this.mo.indexOf(Z.target)==6){var S=this.mo[3].u().trim(),b=S.startsWith("http")&&(S.endsWith(".jpeg")||S.endsWith(".jpg")||S.endsWith(".png"));
if(!b){alert("Thumbnail URL is incorrect.");return}var Y=new XMLHttpRequest,P="mirror.php?url="+encodeURIComponent(S);
Y.open("GET",P);Y.responseType="arraybuffer";Y.onload=this.ahA.bind(this);Y.send()}else this.Jl()};fc.prototype.ahA=function(Z){var S=Z.target.response,b=S.byteLength;
if(b>2e5){alert("Thumbnail is too large ("+gH.tF(b)+"). Make it under 200 kB.");return}var Y=["name","desc","file","thmb"],P=this.wI?this.wI:this.cp[this.Q9];
for(var D=0;D<4;D++){var w=this.mo[D].u().trim();if(w.length==0){alert("One of values is empty.");return}if(D==2){var f=w.split("#i");
if(f.length!=2||f[1].length!=8){alert("File ID is incorrect.");return}w=f.pop()}P[Y[D]]=w}P.catg=this.fc[this.mo[4].u()];
if(P.utme.length==0)P.utme=""+Math.round(Date.now()/1e3);if(this.wI)this.cp.push(this.wI);this._F();
this.Jl()};fc.prototype.Jl=function(){this.wI=null;this.body.removeChild(this.Hq);this.body.appendChild(this.B8);
this.nY()};fc.prototype._F=function(){var Z=fv._s();if(this.cp.length==0)delete Z.tpl;else Z.tpl={list:JSON.parse(JSON.stringify(this.cp))};
fv.Oi(Z,function(){alert("Saved.")})};fc._h={c0:"Mockups",c1:"Mobile & Web",c2:"Print",c3:"Product",c10:"Social Media",c11:"Youtube",c12:"Instagram",c13:"Facebook",c20:"Print",c21:"Cards",c22:"Invitations",c23:"Brochures",c30:"Mobile",c40:"Websites",c50:"Presentations",c60:"Other"};
function bq(){dz.call(this,"Make Selection","makesel");this.W3=null;var Z=s.R("div","form");this.body.appendChild(Z);
this.RZ=new ec("Anti-Alias");this.RZ.F(!0);Z.appendChild(this.RZ.j);s.X3(Z);this.ST=new gK(!0);Z.appendChild(this.ST.j);
this.LT=new fX("OK",!0,null,!0);this.LT.i("click",this.sw,this);this.body.appendChild(this.LT.j)}bq.prototype=new dz;
bq.prototype.B=function(){dz.prototype.B.call(this);this.ST.B()};bq.prototype.sw=function(Z){var S=new d(s.E.s,!0);
S.T=G.r9;S.data={e:"frompath",ms:[null,0,this.ST.ahj(),!this.RZ.u()]};this.close();this.m(S)};function c1(){dz.call(this,["VAR0 PSD/PSB",[1,2]],"savepsb");
this.Mc=null;this.c5=null;this.ex=null;var Z=s.R("div","form");Z.setAttribute("style","width:20em");
this.body.appendChild(Z);this.oa=new gT([12,50],["PSD","PSB"]);this.oa.i(s.E.L,this.WB,this);Z.appendChild(this.oa.j);
s.Sg(Z);var S=new bE("Minify the file");Z.appendChild(S.j);s.X3(Z);var b=["Blank preview image","ZIP for pixel data","Remove Smart Object pixels","Put the file into ZIP"];
this.dM=[];for(var D=0;D<b.length;D++){var Y=new ec(b[D]);this.dM.push(Y);Z.appendChild(Y.j);Y.i(s.E.L,this.WB,this)}s.Sg(Z);
this.ur=new bE("aa.psd");this.f1=new bE("10 kB");Z.appendChild(this.f1.j);this.abS=new bE("1000 B");
Z.appendChild(this.abS.j);this.NC=new fX([1,2],!0,null,!0);this.NC.i("click",this.sw,this);Z.appendChild(this.NC.j);
this.i("closebtn",this.qK,this)}c1.prototype=new dz;c1.prototype.lX=function(Z,S,b,Y){for(var D=0;D<this.dM.length;
D++)this.dM[D].F(!1);this.Mc=Z;this.WB()};c1.prototype.sw=function(){fY.save(this.c5,this.ex)};c1.prototype.qK=function(){this.Mc=null;
this.c5=null};c1.prototype.WB=function(){var Z=this.Mc,S=[!1,!1,!1,!1];for(var D=0;D<3;D++)S[D]=this.dM[D].u();
var b=this.dM[3].u(),Y=S[3]=this.oa.u()==1,P=Z.name.slice(0,Z.name.length-3),w=this.c5=ab.iZ("PSD").$b(Z,0,0,S),C=this.ex=P+"ps"+(Y?"b":"d");
if(b){var f={};f[C]=new Uint8Array(w);w=this.c5=UZIP.encode(f);C=this.ex=P+"zip"}this.ur.F(C);this.f1.F(gH.tF(w.byteLength));
this.f1.j.style["font-size"]="2em";this.abS.F(" \u2001 "+w.byteLength+" B");this.NC.bl(aV.get([1,2])+" \""+C+"\"")};
c1.prototype.B=function(){dz.prototype.B.call(this);this.NC.B()};function eS(Z,S,b,Y){ij.call(this);
this.name=Z;this.a82=b;this.pz=Y;this.nD=s.R("div","");this.nD.setAttribute("draggable","true");this.u9=s.R("div","pbody");
this.YV=new fX("",!1,"");this.YV.parent=this;this.am2=s.R("span","cross");this.ZR=s.R("span","label");
var P=this.afi.bind(this);this.nD.addEventListener("mousedown",this.a1e.bind(this),!1);this.nD.addEventListener("contextmenu",P,!1);
this.YV.j.addEventListener("contextmenu",P,!1);this.am2.addEventListener("mousedown",this.ze.bind(this),!1);
this.nD.appendChild(this.ZR);if(S)this.nD.appendChild(this.am2);this.t4=!1;this.lU=new a5([{name:[1,12]}]);
this.lU.i("select",this.ze,this);this.ZR.textContent=Z}eS.prototype=new ij;eS.prototype.EM=function(){return null};
eS.prototype.xV=function(){return new ar(0,0)};eS.prototype.B=function(){var Z=aV.get(this.name),S=this.Yu==0?22:Math.round(2+this.Yu/50),b=Z.length>S;
this.ZR.textContent=b?Z.slice(0,S-2):Z;if(b)for(var Y=0;Y<2;Y++){var P=s.R("span");P.textContent=Z.charAt(S-2+Y);
P.setAttribute("style","opacity:"+(.6-Y*.4));this.ZR.appendChild(P)}var w=Z.split(" "),f=w.length==2?w[0].substring(0,2)+w[1][0]:Z.substring(0,3);
if(f.charCodeAt(0)>=11776)f=f.substring(0,1);var h=this.a82;if(h==null)this.YV.bl(f,Z);else{if(h.indexOf("\"")==-1)this.YV.bl("<img src=\""+h+"\" alt=\""+Z+"\" height=\"20\" />",Z)}};
eS.prototype.enable=function(){this.u9.setAttribute("class","pbody")};eS.prototype.disable=function(){this.u9.setAttribute("class","pbody disabled")};
eS.prototype.na=function(Z,S){};eS.prototype.lX=function(Z,S,b){};eS.prototype.FI=function(Z){};eS.prototype.Xd=function(Z,S){};
eS.prototype.JF=function(Z){this.name=Z;this.B()};eS.prototype.vm=function(){};eS.prototype.a1e=function(Z){if(Z.button==0)this.m(new d("select",!1))};
eS.prototype.afi=function(Z){s.Jj(Z);if(this.pz!=null&&isNaN(this.pz))return;var S=s.R6(Z,document.body),b=this.lU;
b.update(null);b.B();b.parent=this;var Y=new d(s.E.P,!0);Y.data={e:s.U.Gc,Bq:b,x:S.x+1,y:S.y+1};this.m(Y)};
eS.prototype.K9=function(){this.ze({})};eS.prototype.ze=function(Z){if(Z.stopPropagation)Z.stopPropagation();
if(this.pz!=null&&!isNaN(this.pz)){var S=new d(s.E.P,!0);S.data={e:s.U.KN,Bq:this.lU};this.m(S);S.data={e:s.U.h4,Sz:bp.UA,G:parseFloat(this.pz),JH:"del"};
this.m(S)}else if(this.HE())this.m(new d(s.E.ef,!1))};eS.prototype.HE=function(Z){return!0};eS.prototype.Os=function(Z,S,b,Y,P){};
eS.prototype.Zq=function(Z,S,b,Y,P){};eS.prototype.Xa=function(Z,S,b,Y,P){};eS.IO=function(Z,S){if(Z.childElementCount!=0)return;
var b=Z.textContent;this.cl=this.aaT.bind(this);this.amA=this.acy.bind(this);this.mN=S;this.Au=Z;this.aew=b;
var Y=s.R("input","");Y.setAttribute("type","text");Y.setAttribute("size","10");Y.setAttribute("value",b);
s.Z9(Z);Z.appendChild(Y);Y.select();Y.focus();Z.addEventListener("keyup",this.cl,!1);document.body.addEventListener("mousedown",this.amA,!1)};
eS.IO.prototype.aaT=function(Z){var S=U.iQ,b=S(Z.code,U.n5);if(S(Z.code,U.eZ)||b)this.SW(b)};eS.IO.prototype.acy=function(Z){var S=Z.target;
if(S.tagName&&S.tagName.toLowerCase()=="input")return;this.SW(!0)};eS.IO.prototype.SW=function(Z){var S=this.Au;
S.removeEventListener("keyup",this.cl);document.body.removeEventListener("mousedown",this.amA);if(Z){var b=S.firstChild.value;
this.mN(b)}else{s.Z9(S);S.textContent=this.aew}};eS.KV={_H:"0",acb:"1",kd:"2",a1n:"3",akR:"4",Ye:"5",CSS:"6",sb:"7",adB:"8",alV:"9",abO:"10",a2z:"11",acg:"12",tN:"13",dn:"14",afW:"15",aie:"16",Hy:"17",anJ:"19",Te:"20"};
function aE(){eS.call(this,[9,9],!1,null,eS.KV.a2z);this.W3=null;this.u7=[0,0];this.hs=s.R("div","padded scrollable");
this.hs.setAttribute("style","width:260px; height:260px");this.u9.appendChild(this.hs);this.i(s.E.L,this.yN,this);
this.UD=s.R("div","lpfoot");this.u9.appendChild(this.UD);this.tT=[];var Z="<svg class=\"gsicon\" viewBox=\"0 0 14 18\" width=\"14\" height=\"18\" fill=\"black\">",S="</svg>",b=Z+"<path d=\"M14,6 L10,6 L10,0 L4,0 L4,6 L0,6 L7,13 L14,6 L14,6 Z M0,14 L0,16 L14,16 L14,14 Z\" />"+S,Y=Z+"<path d=\"M0,2 L14,9 L0,16 Z\" />"+S;
this.ajL=Z+"<circle cx=\"7\" cy=\"9\" r=\"6\" />"+S;this.agy=Z+"<path d=\"M2,4 L12,4 L12,14 L2,14 Z\" />"+S;
var P=[this.ajL,Y,"lrs/folder","lrs/newlayer","lrs/bin",b],w=[[15,8,0],[5,8],[15,8,1],[15,8,2],[5,4],[1,2]];
for(var D=0;D<P.length;D++){var f=P[D];if(1<D&&D!=P.length-1)f="<img src=\""+PIMG[P[D]]+"\" class=\"gsicon\" />";
var h=new fX(f,!1,w[D]);h.i("click",this.QW,this);this.UD.appendChild(h.j);this.tT.push(h)}}aE.prototype=new eS("");
aE.prototype.B=function(){eS.prototype.B.call(this);for(var D=0;D<this.tT.length;D++)this.tT[D].B()};
aE.prototype.QW=function(Z){var D=this.tT.indexOf(Z.currentTarget),S=this.u7,b=this.W3,Y=b.Pe;if(D==0){var P,w=b.j2;
if(Y.length==0){alert("Create an Action Set first.");return}if(S.length<2){alert("Select a target action first.");
return}if(w==null){P=this.agy;w=this.u7}else{P=this.ajL;w=null}this.tT[0].bl(P);b.j2=w}else if(D==1)this.ahx();
else if(D==2||D==3){var f={ep:"Action Set "+Y.length,a_:[],exp:!0};if(D==2||Y.length==0){S=[Y.length];
Y.push(f)}if(D==3){var h=Y[S[0]].a_;S=[S[0],h.length];h.push({ep:"Action "+h.length,color:0,a_:[],a7I:!1,shift:!1,exp:!0,SU:h.length})}this.u7=S;
this.T2()}else if(D==4){var Q;if(S.length==1)Q=Y;else if(S.length==2)Q=Y[S[0]].a_;else Q=Y[S[0]].a_[S[1]].a_;
var e=S.length-1;Q.splice(S[e],1);if(Q.length==0)S.pop();else while(S[e]>=Q.length)S[e]--;if(S.length==0)S.push(0);
this.T2()}else if(D==5){if(Y.length==0){alert("No Actions Present.");return}var l=new d(s.E.P,!0);l.data={e:s.U.in,amE:bp.s,pG:S[0]};
this.m(l)}};aE.prototype.yN=function(Z){var S=this.W3.Pe,b=Z.data.e,Y=Z.data.Li;if(b=="sel")this.u7=Y;
if(b=="fold"){if(Y.length==1)S[Y[0]].exp=!S[Y[0]].exp;else S[Y[0]].a_[Y[1]].exp=!S[Y[0]].a_[Y[1]].exp}if(b=="enab"){var P=S[Y[0]].a_[Y[1]].a_[Y[2]];
P.Q=!P.Q}if(b=="nchange"){if(Y.length==1)S[Y[0]].ep=Z.data.VT;else S[Y[0]].a_[Y[1]].ep=Z.data.VT}this.T2()};
aE.prototype.na=function(Z,S){this.W3=Z;if(S==bp.s||S==bp._O)this.T2()};aE.prototype.T2=function(){if(this.W3==null)return;
s.Z9(this.hs);var Z=this.W3.Pe;if(Z.length==0)return;var S=JSON.stringify(this.u7);for(var D=0;D<Z.length;
D++){var b=Z[D],Y=new aE.dL([D],S,b.exp,b.ep.split("=").pop());Y.parent=this;this.hs.appendChild(Y.j);
if(!b.exp)continue;for(var P=0;P<b.a_.length;P++){var w=b.a_[P],Y=new aE.dL([D,P],S,w.exp,w.ep.split("=").pop());
Y.parent=this;this.hs.appendChild(Y.j);if(!w.exp)continue;for(var f=0;f<w.a_.length;f++){var h=w.a_[f],Y=new aE.dL([D,P,f],S,null,aV.get(a3.adT(h)),h.Q);
Y.parent=this;this.hs.appendChild(Y.j)}}}};aE.prototype.ahx=function(){var Z=this.W3.Pe,S=this.u7;if(Z.length==0){alert("No Actions Present");
return}if(S.length==1){alert("Select an Action first");return}if(this.W3.j2!=null){alert("You can not apply actions while recording actions");
return}if(S.length==1)S.push(0);var b=Z[S[0]],Y=b.a_[S[1]],P=new d(s.E.P,!0);P.data={e:s.U.Ay,ms:[Y.ep,b.ep]};
this.m(P)};aE.dL=function(Z,S,b,Y,P){ij.call(this);this.Li=Z;var w=this.Li.length-1;this.j=s.R("div","layeritem"+(JSON.stringify(Z)==S?" selected":""));
this.oB=s.R("div","head");this.j.appendChild(this.oB);this.oB.setAttribute("style","height:24px");this.zg=s.R("div","headL");
this.oB.appendChild(this.zg);if(w!=0){var f=s.R("div");f.style.width=w*20+"px";this.zg.appendChild(f)}if(b!=null){var h=this.ahb=s.R("div",b?"open":"closed");
this.zg.appendChild(h)}else{var Q=this.aoY=s.R("div","cmark");Q.setAttribute("style","background-size:12px 12px; opacity:"+(P?1:.3));
this.zg.appendChild(Q)}if(w==0){var e=s.R("div","folder");this.zg.appendChild(e)}var l=this.ZR=s.R("div","label");
l.textContent=Y;this.zg.appendChild(l);this.j.addEventListener("mouseup",this.hv.bind(this),!1)};aE.dL.prototype=new ij;
aE.dL.prototype.hv=function(Z){if(Z.detail==1&&Z.target.tagName.toLowerCase()!="input"){var S="sel";
if(Z.target==this.ahb)S="fold";if(Z.target==this.aoY)S="enab";var b=new d(s.E.L,!0);b.data={e:S,Li:this.Li};
this.m(b)}else if(this.Li.length<3)var Y=new eS.IO(this.ZR,this.mN.bind(this))};aE.dL.prototype.mN=function(Z){var S=new d(s.E.L,!0);
S.data={e:"nchange",VT:Z,Li:this.Li};this.m(S)};function fi(){eS.call(this,[9,3],!1,null,eS.KV.sb);this.c8=null;
this.Un=null;this.W3=null}fi.prototype=new eS("");fi.prototype.jr=function(){var Z=s.R("div","");this.u9.appendChild(Z);
this.YB=s.R("div","bordered cell");this.YB.setAttribute("style","width:10em; height:28.5em;");Z.appendChild(this.YB);
this.Jw=[];this.oe=null;this.OB=[];var S=this.a6m.bind(this);this.tW=[new fi.kU,new fi.bH,new fi.Oc,new fi.sF];
for(var D=0;D<this.tW.length;D++){var b=s.R("div","listitem"),Y=this.tW[D].NN,P=null;if(D==0){this.oe=new bE(Y);
b.appendChild(this.oe.j)}else{P=new ec(Y,!1);P.i(s.E.L,this.amJ,this);b.appendChild(P.j)}this.OB.push(P);
this.YB.appendChild(b);this.Jw.push(b);b.addEventListener("click",S,!1)}this.cy=s.R("div","cell padded");
Z.appendChild(this.cy);for(var D=0;D<this.tW.length;D++)this.tW[D].i("brushchange",this.aeL,this);this.setItem(0);
this.u_=s.R("canvas","");this.u_.width=Math.floor(380*s.Z());this.u_.height=Math.floor(80*s.Z());s.$k(this.u_,this.u_.width,this.u_.height);
Z.appendChild(this.u_);this.Bi=this.u_.getContext("2d");this.Mn()};fi.prototype.vm=function(){if(!s.mO(this.u9))return;
if(this.YB){this.Mn();return}this.jr();this.B();this.na(this.W3,bp._O)};fi.prototype.B=function(){eS.prototype.B.call(this);
if(this.YB==null)return;this.oe.B();for(var D=1;D<this.OB.length;D++)this.OB[D].B();for(var D=0;D<this.tW.length;
D++)this.tW[D].B()};fi.prototype.aeL=function(Z){var S=this.tW.indexOf(Z.currentTarget),b=JSON.parse(JSON.stringify(this.tW[S].Un)),Y=new d(s.E.P,!0);
Y.data={e:s.U.h4,Sz:bp.EE,Un:b};this.m(Y)};fi.prototype.amJ=function(Z){this.Ji(this.OB.indexOf(Z.currentTarget),Z.currentTarget.rJ())};
fi.prototype.a6m=function(Z){var D=this.Jw.indexOf(Z.currentTarget);if(Z.target.tagName.toLowerCase()=="input")return;
if(this.OB[D]&&!this.OB[D].rJ()){this.OB[D].AN();this.Ji(D,!0)}this.setItem(D)};fi.prototype.Ji=function(Z,S){this.tW[Z].LB(S)};
fi.prototype.setItem=function(Z){for(var D=0;D<this.tW.length;D++)this.Jw[D].setAttribute("class","listitem");
if(this.cy.firstChild)this.cy.removeChild(this.cy.firstChild);this.Jw[Z].setAttribute("class","listitem selected");
this.cy.appendChild(this.tW[Z].j)};fi.prototype.na=function(Z,S){this.W3=Z;if(this.YB==null)return;if(S==bp.sb||S==bp._O){this.c8=Z.Xg;
for(var D=0;D<this.tW.length;D++)this.tW[D].VU(this.c8)}if(S==bp.EE||S==bp._O){this.Un=Z.Xg.ut;this.Mn()}if(S==bp.tN)this.Mn()};
fi.prototype.Mn=function(){if(this.Un)this.enable();else{this.disable();return}if(!s.mO(this.u9))return;
var Z=this.W3;for(var D=0;D<this.tW.length;D++){this.tW[D].F(this.Un);if(this.OB[D])this.OB[D].F(this.tW[D].rJ())}var S=JSON.parse(JSON.stringify(this.Un));
S.Brsh.v.Dmtr.v.val=Math.min(S.Brsh.v.Dmtr.v.val,50);var b=new b4(0,0,this.u_.width,this.u_.height),Y=new b6(S,this.c8?this.c8.qr:null,this.c8?this.c8.kT:null,{y6:1},Z.ui,Z.VY,b),P=40*s.Z(),w=300*s.Z();
Y.moveTo(P,P);for(var D=0;D<=w;D+=10)Y.lineTo(P+D,P+20*Math.sin(2*Math.PI*D/w));Y.finish();var f=this.Bi.createImageData(b.c,b.v);
T.uH(Y.f9(),Y.Ij(),f.data,b);this.Bi.putImageData(f,0,0)};fi.z_=function(Z){ij.call(this);this.NN=Z;
this.j=s.R("div","");this.Un=null};fi.z_.prototype=new ij;fi.z_.prototype.VU=function(Z){};fi.z_.prototype.F=function(Z){this.Un=JSON.parse(JSON.stringify(Z));
this.j.setAttribute("class",this.rJ()?"":"disabled");this.Mn()};fi.z_.prototype.LB=function(Z){};fi.z_.prototype.rJ=function(){return!1};
fi.z_.prototype.B=function(){};fi.z_.prototype.Mn=function(){};fi.z_.prototype.ry=function(){this.m(new d("brushchange"))};
fi.kU=function(){fi.z_.call(this,[15,0]);this.c8=null;this.a0Y=null;this.Vf=new aD(!0);this.j.appendChild(this.Vf.j);
this.Vf.i(s.E.L,this.aaP,this);this.Vf.j.style.height="10.7em";this.kE=new bS([12,14,0],1,1e3," px",0,!0);
this.kE.i(s.E.L,this.aba,this);this.yJ=new bS([12,15],0,359," \xB0");this.yJ.i(s.E.L,this.a3m,this);
this.$I=new bS([12,16],0,100," %");this.$I.i(s.E.L,this.aaK,this);this.Nx=new bS([12,17],0,100," %");
this.Nx.i(s.E.L,this.acv,this);this.Br=new bS([12,18],1,300," %");this.Br.i(s.E.L,this.a01,this);this.Jw=[this.kE,this.yJ,this.$I,this.Nx,this.Br]};
fi.kU.prototype=new fi.z_;fi.kU.prototype.B=function(){this.kE.B();this.yJ.B();this.$I.B();this.Nx.B();
this.Br.B()};fi.kU.prototype.rJ=function(){return!0};fi.kU.prototype.VU=function(Z){this.c8=Z;var S=[],b=Math.floor(30*s.Z()),Y=Math.floor(40*s.Z());
for(var D=0;D<Z.list.length;D++){var P=Z.list[D].v,w=b6.Oy(P,Z.qr,Z.kT,b,Y);S.push(w)}this.Vf.TS(S,null,b,Y)};
fi.kU.prototype.Mn=function(){var Z=this.Un.Brsh.v,S=Z.classID!=this.a0Y;this.a0Y=Z.classID;if(S)for(var D=0;
D<this.Jw.length;D++)if(this.j.contains(this.Jw[D].j))this.j.removeChild(this.Jw[D].j);this.kE.F(Z.Dmtr.v.val);
if(S)this.j.appendChild(this.kE.j);this.yJ.F(Z.Angl.v.val);if(S)this.j.appendChild(this.yJ.j);if(Z.classID=="computedBrush"||Z.classID=="sampledBrush"){this.$I.F(Z.Rndn.v.val);
if(S)this.j.appendChild(this.$I.j)}if(Z.classID=="computedBrush"){this.Nx.F(Z.Hrdn.v.val);if(S)this.j.appendChild(this.Nx.j)}this.Br.F(Z.Spcn.v.val);
if(S)this.j.appendChild(this.Br.j)};fi.kU.prototype.aaP=function(Z){this.Un=this.c8.list[this.Vf.u()].v;
this.ry()};fi.kU.prototype.aba=function(Z){this.Un.Brsh.v.Dmtr.v.val=Z.target.u();this.ry()};fi.kU.prototype.a3m=function(Z){this.Un.Brsh.v.Angl.v.val=Z.target.u();
this.ry()};fi.kU.prototype.aaK=function(Z){this.Un.Brsh.v.Rndn.v.val=Z.target.u();this.ry()};fi.kU.prototype.acv=function(Z){this.Un.Brsh.v.Hrdn.v.val=Z.target.u();
this.ry()};fi.kU.prototype.a01=function(Z){this.Un.Brsh.v.Spcn.v.val=Z.target.u();this.ry()};fi.bH=function(){fi.z_.call(this,[15,1]);
this.iW=new bS([15,4,0],0,100," %");this.iW.i(s.E.L,this.a1O,this);this.j.appendChild(this.iW.j);this.cj=new bS([15,4,1],0,100," %");
this.cj.i(s.E.L,this.a8w,this);this.j.appendChild(this.cj.j);this.kf=new bS([15,4,2],0,100," %");this.kf.i(s.E.L,this.amp,this);
this.j.appendChild(this.kf.j);this.$G=new bS([15,4,3],0,100," %");this.$G.i(s.E.L,this.a2W,this);this.j.appendChild(this.$G.j);
this.SF=new bS([15,4,4],0,100," %");this.SF.i(s.E.L,this.af3,this);this.j.appendChild(this.SF.j)};fi.bH.prototype=new fi.z_;
fi.bH.prototype.B=function(){this.iW.B();this.cj.B();this.kf.B();this.$G.B();this.SF.B()};fi.bH.prototype.rJ=function(){return this.Un.useTipDynamics.v};
fi.bH.prototype.LB=function(Z){this.Un.useTipDynamics.v=Z;d6.xS.zu(this.Un);this.ry()};fi.bH.prototype.Mn=function(){var Z=this.Un;
if(Z.useTipDynamics.v==!1)return;this.iW.F(Z.szVr.v.jitter.v.val);this.cj.F(Z.minimumDiameter.v.val);
this.kf.F(Z.angleDynamics.v.jitter.v.val);this.$G.F(Z.roundnessDynamics.v.jitter.v.val);this.SF.F(Z.minimumRoundness.v.val)};
fi.bH.prototype.a1O=function(Z){this.Un.szVr.v.jitter.v.val=Z.target.u();this.ry()};fi.bH.prototype.a8w=function(Z){this.Un.minimumDiameter.v.val=Z.target.u();
this.ry()};fi.bH.prototype.amp=function(Z){this.Un.angleDynamics.v.jitter.v.val=Z.target.u();this.ry()};
fi.bH.prototype.a2W=function(Z){this.Un.roundnessDynamics.v.jitter.v.val=Z.target.u();this.ry()};fi.bH.prototype.af3=function(Z){this.Un.minimumRoundness.v.val=Z.target.u();
this.ry()};fi.Oc=function(){fi.z_.call(this,[15,2]);this.xl=new bS([15,5,0],0,1e3," %");this.xl.i(s.E.L,this.a2B,this);
this.j.appendChild(this.xl.j);this.ey=new bS([15,5,1],1,20);this.ey.i(s.E.L,this.a54,this);this.j.appendChild(this.ey.j);
this.PW=new bS([15,5,2],0,100," %");this.PW.i(s.E.L,this.ak3,this);this.j.appendChild(this.PW.j)};fi.Oc.prototype=new fi.z_;
fi.Oc.prototype.B=function(){this.xl.B();this.ey.B();this.PW.B()};fi.Oc.prototype.rJ=function(){return this.Un.useScatter.v};
fi.Oc.prototype.LB=function(Z){this.Un.useScatter.v=Z;d6.xS.zu(this.Un);this.ry()};fi.Oc.prototype.Mn=function(){var Z=this.Un;
if(Z.useScatter.v==!1)return;this.xl.F(Z.scatterDynamics.v.jitter.v.val);this.ey.F(Z.Cnt.v);this.PW.F(Z.countDynamics.v.jitter.v.val)};
fi.Oc.prototype.a2B=function(Z){this.Un.scatterDynamics.v.jitter.v.val=Z.target.u();this.ry()};fi.Oc.prototype.a54=function(Z){this.Un.Cnt.v=Z.target.u();
this.ry()};fi.Oc.prototype.ak3=function(Z){this.Un.countDynamics.v.jitter.v.val=Z.target.u();this.ry()};
fi.sF=function(){fi.z_.call(this,[15,3]);this.vj=new bS([15,6,0],0,100," %");this.vj.i(s.E.L,this.a7O,this);
this.j.appendChild(this.vj.j);this.bi=new bS([15,6,1],0,100," %");this.bi.i(s.E.L,this.afH,this);this.j.appendChild(this.bi.j);
this.xQ=new bS([15,6,2],0,100," %");this.xQ.i(s.E.L,this.a91,this);this.j.appendChild(this.xQ.j);this.gw=new bS([15,6,3],0,100," %");
this.gw.i(s.E.L,this.a2N,this);this.j.appendChild(this.gw.j)};fi.sF.prototype=new fi.z_;fi.sF.prototype.B=function(){this.vj.B();
this.bi.B();this.xQ.B();this.gw.B()};fi.sF.prototype.rJ=function(){return this.Un.useColorDynamics.v};
fi.sF.prototype.LB=function(Z){this.Un.useColorDynamics.v=Z;d6.xS.zu(this.Un);this.ry()};fi.sF.prototype.Mn=function(){var Z=this.Un;
if(Z.useColorDynamics.v==!1)return;this.vj.F(Z.clVr.v.jitter.v.val);this.bi.F(Z.H.v.val);this.xQ.F(Z.Strt.v.val);
this.gw.F(Z.Brgh.v.val)};fi.sF.prototype.a7O=function(Z){this.Un.clVr.v.jitter.v.val=Z.target.u();this.ry()};
fi.sF.prototype.afH=function(Z){this.Un.H.v.val=Z.target.u();this.ry()};fi.sF.prototype.a91=function(Z){this.Un.Strt.v.val=Z.target.u();
this.ry()};fi.sF.prototype.a2N=function(Z){this.Un.Brgh.v.val=Z.target.u();this.ry()};function d1(){eS.call(this,[9,0],!1,null,eS.KV._H);
this.u9.setAttribute("style","min-width:200px;");this.bz=s.R("div","hpbody scrollable");this.bz.style.height="160px";
this.u9.appendChild(this.bz);this.a85=-1;this.Iv=[];this.Ux=""}d1.prototype=new eS("");d1.prototype.lX=function(Z){if(Z==null){s.Z9(this.bz);
this.Ux="";return}s.Z9(this.bz);var S=0;for(var D=0;D<Z.history.length;D++)if(D<=Z.Hc&&!Z.history[D].z6)S=D;
for(var D=0;D<Z.history.length;D++){var b=Z.history[D];if(b.z6)continue;var Y=new hI(b,D,S);Y.parent=this;
this.bz.appendChild(Y.j);this.Iv.push(Y)}if(Z.Hc==Z.history.length-1)this.vm()};d1.prototype.vm=function(){this.bz.scrollTop=this.bz.scrollHeight};
d1.prototype.B=function(){eS.prototype.B.call(this);for(var D=0;D<this.Iv.length;D++)this.Iv[D].B()};
function hI(Z,D,S){ij.call(this);this.index=D;this.j=s.R("div",D==S?"listitem selected":"listitem");
this.i1=Z.name;this.B();if(D>S)this.j.style.opacity=.4;this.j.addEventListener("click",this.Os.bind(this),!1)}hI.prototype=new ij;
hI.prototype.B=function(){this.j.textContent=aV.get(this.i1)};hI.prototype.Os=function(Z){if(this.index==this.parent.a85)return;
this.HZ({e:"h_itemchange",index:this.index})};hI.prototype.HZ=function(Z){var S=new d(s.E.s,!0);S.data=Z;
S.T=G._H;this.m(S)};function cu(){eS.call(this,[9,10],!1,null,eS.KV.akR);var Z=s.R("div","padded");this.u9.appendChild(Z);
this.Bp=new hV(256,!0);Z.appendChild(this.Bp.j);this.Mc=null}cu.prototype=new eS("");cu.prototype.lX=function(Z){this.Mc=Z;
this.T2()};cu.prototype.T2=function(){var Z=this.Mc;if(!s.mO(this.u9))return;if(Z==null||Z.C.length==0){this.Bp.F(T.YY(T.f(4)));
return}var S=Z.Zd(),b=new b4(0,0,Z.c,Z.v),Y=b.X();if(Z.N){var P=Z.N.rect,w=T.f(P.X()*4);T.uH(S,b,w,P);
T.Dt(Z.N.channel,w);S=w;b=P;var f=Z.N.channel;Y=0;for(var D=0;D<f.length;D++)Y+=f[D];Y=Math.round(Y/255)}var h=T.YY(S);
h[0][255]+=3*(Y-h[5]);for(var D=1;D<4;D++)h[D][255]+=Y-h[5];this.Bp.F(h,Y)};cu.prototype.na=function(Z,S){this.Bp.D9(eF.XX[Z.Ql]["--text-color"])};
cu.prototype.B=function(){eS.prototype.B.call(this);this.Bp.B()};cu.prototype.vm=function(){this.T2()};
function gJ(){eS.call(this,[9,8],!1,null,eS.KV.acb);this.hs=s.R("div","padded");this.u9.appendChild(this.hs);
this.Mj=new cM(10);this.hs.appendChild(this.Mj.j);this.hs.appendChild(s.R("hr"));this.pY=new dU;this.pY.parent=this;
this.hs.appendChild(this.pY.vQ);this.Mj.i(s.E.L,this.G2,this);this.pY.i(s.E.L,this.G2,this)}gJ.prototype=new eS("");
gJ.prototype.G2=function(Z){var S;if(Z.target==this.Mj)S=this.Mj.u();else{var b=this.pY.u();S=Math.round(b.h)<<16|Math.round(b.l)<<8|Math.round(b.O)}var Y=new d(s.E.P,!0);
Y.data={e:s.U.h4,Sz:bp.tN,Ox:0,G:S};this.m(Y)};gJ.prototype.na=function(Z,S){var b=Z.ui,Y=S==bp._O;if(S==bp.tN||Y){this.Mj.F(b);
this.pY.F({h:b>>>16&255,l:b>>>8&255,O:b>>>0&255,mW:"Color #"+T.T3(b)})}if(S==bp.WE||Y){var P=Z.a9O;this.pY.VU(P)}};
function h2(){eS.call(this,[12,72],!1,null,eS.KV.aie);this.uv=null;this.wR=null;this.bz=s.R("div","lpbody scrollable");
this.UD=s.R("div","lpfoot");this.u9.appendChild(this.bz);this.u9.appendChild(this.UD);this.Wk=[];this.i("click",this.qO,this);
this.Qb=[];h2.c_([[17,2],"Save Selection as Channel",[5,3],[5,4]],this.Qb,this.UD,this.yQ.bind(this),this.fI.bind(this));
this.qD=new a5([{name:"Merge Channels",Ip:!0}]);this.qD.i("select",this.MO,this)}h2.prototype=new eS("");
h2.prototype.MO=function(Z){if(this.wR==null)return;var S=new d(s.E.P,!0);S.data={e:s.U.Fy,g9:"mergechannels"};
this.m(S)};h2.prototype.EM=function(){return this.qD};h2.c_=function(Z,S,b,Y,P){for(var D=0;D<Z.length;
D++){var w=new fX("W",!1,Z[D]);S.push(w);s.TL(w.j,Y);b.appendChild(w.j);var f=w.j;f.addEventListener("drop",P,!1);
f.addEventListener("dragover",function(h){h.preventDefault()},!1);f.addEventListener("dragenter",s.Jj,!1)}};
h2.ny=function(Z,S){for(var D=0;D<Z.length;D++)if(Z[D].j==S.currentTarget)return D};h2.prototype.yQ=function(Z){var S=h2.ny(this.Qb,Z);
if(S==0)this.m(e0.C_(!0,null,Z));else{S--;var b=new d(s.E.TH,!0),Y={classID:"null"};if(S==0)Y.null={t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]};
else if(S==1)Y.Nw={t:"Objc",v:{classID:"Chnl",ClrI:{t:"enum",v:{MskI:"SlcA"}},Opct:{t:"long",v:50}}};
else Y.null=a3.h$("Chnl",!0);b.data={uf:["duplicate","make","delete"][S],V1:Y};this.m(b)}};h2.prototype.fI=function(Z){var S=h2.ny(this.Qb,Z);
if(S==2){var b=new d(s.E.TH,!0),Y={classID:"null"};Y.null=a3.h$("Chnl",!0);b.data={uf:"duplicate",V1:Y};
this.m(b)}else this.yQ(Z)};h2.prototype.mL=function(D){var Z=this.Wk,S=Z[D];if(S==null){var b=s.R("canvas");
S=b.getContext("2d");Z.push(S)}return S};h2.prototype.qO=function(Z){var S=this.uv.slice(0),b=Z.data.SU,Y=S[0]+S[1]+S[2],P=this.wR;
if(-5<b&&b<0){var w=-b-1;if(Z.data.D8){if(w==0)S=Y==3?[0,0,0]:[1,1,1];else{if(S[w-1]==0)S[w-1]=1;else if(!0)S[w-1]=0}}else{if(w==0)S=[1,1,1];
else{S=[0,0,0];S[w-1]=1}P.k9=[]}var f=new d(s.E.s,!0);f.T=G.KM;f.data={e:"setcls",o:S};this.m(f);return}if(-1<b){var h=P.t[b],Q=h.PC==1?h.Y6():h.fY(P).d;
if(Z.data.D8)Q.Ag=!Q.Ag;else{for(var D=0;D<P.eP.length;D++)P.eP[D].Ag=!1;P.k9=[]}}else{var e=-b-5,Q=P.eP[e];
if(Z.data.D8)Q.Ag=!Q.Ag;else{for(var D=0;D<P.eP.length;D++)P.eP[D].Ag=!1;Q.Ag=!0;P.k9=[e]}}P.nd=P.Pd=!0};
h2.prototype.vm=function(){this.WB()};h2.prototype.lX=function(Z){this.wR=Z;this.WB()};h2.prototype.WB=function(){var Z=this.wR,S=this.bz,h=34,Q=34,V=4;
s.Z9(S);if(Z==null||!s.mO(S))return;var b=Z.c,Y=Z.v,P=new b4(0,0,b,Y),w=this.uv=Z.a.o.slice(0),f=w[0]+w[1]+w[2];
if(b>Y)Q=Math.round(Q*Y/b);else h=Math.round(h*b/Y);var e=["RGB"].concat(g3.Yn);for(var D=0;D<4;D++){var l=this.mL(D);
T.kJ.ii(l,h,Q,P,Z.Zd(),P,!1,D==0?null:D-1);var O=D==0?f==3:w[D-1]==1,m=new e0(-1-D,!0,!0,l,e[D],O,O);
m.parent=this;S.appendChild(m.j)}for(var D=0;D<Z.C.length;D++){var q=Z.t[Z.C[D]],K=q.PC;if(K!=1&&K!=3)continue;
var z=K==1?q.Y6():q.fY(Z).d,l=this.mL(V+D);V++;T.kJ.fR(l,h,Q,P,z);var m=new e0(Z.C[D],!0,!0,l,q.getName()+(K==1?"":" Filter")+" Mask",!0,z.Ag);
m.parent=this;S.appendChild(m.j)}for(var D=0;D<Z.eP.length;D++){var z=Z.eP[D],l=this.mL(V+D);T.kJ.fR(l,h,Q,P,z);
var m=new e0(-5-D,!0,z.name=="Quick Mask",l,z.name,Z.k9.indexOf(D)!=-1,z.Ag,G.kd,{e:F.c0,Ox:"rnm",SU:D});
m.parent=this;S.appendChild(m.j)}};h2.prototype.Xd=function(Z,S){this.bz.style.height=S-9-25+"px"};h2.prototype.B=function(){eS.prototype.B.call(this);
this.WB();h2.uO(this.Qb,["lrs/makesel","lrs/mask","lrs/newlayer","lrs/bin"])};h2.uO=function(Z,S){for(var D=0;
D<Z.length;D++){var b=Z[D];b.bl(s.ip(S[D]))}};function e0(Z,S,b,Y,P,w,f,h,Q){ij.call(this);this.j=s.R("div","layeritem");
this.aoF=Z;this.amy=S;this.x_=Y;this.a2_=h;this.aaf=Q;this.oB=s.R("div",w?"head selected":"head");this.oB.setAttribute("style","height: "+40+"px");
var e=s.R("div","headL"),l=s.R("div","headR"),O=15;this.j.appendChild(this.oB);this.oB.appendChild(e);
this.oB.appendChild(l);this.WC=s.R("div","eye");if(1<s.Z()&&s.Z()<1.5)O=O/s.Z();this.WC.setAttribute("style","background-size: "+O+"px "+O+"px;");
this.WC.style.opacity=f?1:.2;if(S)e.appendChild(this.WC);this.mF=s.R("div","thumb");if(Y)this.mF.appendChild(Y.canvas);
e.appendChild(this.mF);this.Fs=s.R("div","label");if(b)this.Fs.style.fontStyle="italic";this.Fs.textContent=aV.get(P);
e.appendChild(this.Fs);var m=this.oB;m.setAttribute("draggable","true");this.oB.addEventListener("mousedown",this.ajB.bind(this),!1);
if(!b)this.oB.addEventListener("mouseup",this.ak9.bind(this),!1)}e0.prototype=new ij;e0.prototype.mN=function(Z){var S=new d(s.E.s,!0);
S.T=this.a2_;S.data=this.aaf;S.data.name=Z;this.m(S)};e0.prototype.ajB=function(Z){var S=Z.ctrlKey||Z.metaKey,b=this.aoF;
if(S&&Z.target==this.x_.canvas){this.m(e0.C_(this.amy,b,Z))}else{var Y=new d("click",!0);Y.data={SU:b,D8:Z.target==this.WC,MW:S};
this.m(Y)}};e0.prototype.ak9=function(Z){if(Z.detail==2&&Z.target==this.Fs){var S=new eS.IO(this.Fs,this.mN.bind(this))}};
e0.C_=function(Z,S,b){var Y=0;if(b.shiftKey)Y++;if(b.altKey)Y+=2;var P=new d(s.E.s,!0);P.T=G.r9;if(Z){if(-5<S&&S<0){P=new d(s.E.TH,!0);
P.data=G.Ks.Ec(Y,["RGB","Rd","Grn","Bl"][-1-S])}else P.data={e:"fromchannel",ms:[S,0,Y]}}else P.data={e:"frompath",ms:[S,0,Y]};
return P};function dE(){eS.call(this,[8,9],!1,null,eS.KV.Hy);this.uv=null;this.wR=null;this.bz=s.R("div","lpbody scrollable");
this.UD=s.R("div","lpfoot");this.u9.appendChild(this.bz);this.u9.appendChild(this.UD);this.u9.addEventListener("click",this.a1w.bind(this),!1);
this.Wk=[];this.i("click",this.qO,this);this.Qb=[];h2.c_([[17,2],"Selection to Path",[5,3],[5,4]],this.Qb,this.UD,this.yQ.bind(this),this.fI.bind(this))}dE.prototype=new eS("");
dE.prototype.yQ=function(Z){var S=h2.ny(this.Qb,Z),b;if(S==0)b=e0.C_(!1,null,Z);else if(S==1){b=new d(s.E.TH,!0);
b.data={uf:"make",V1:{classID:"null",null:{t:"obj ",v:[{t:"Clss",v:{classID:"Path"}}]},From:{t:"obj ",v:[{t:"prop",v:{classID:"csel",keyID:"fsel"}}]},Tlrn:{t:"UntF",v:{type:"#Pxl",val:2}}}}}else{var b=new d(s.E.s,!0);
b.T=G.tp;b.data={e:"pathedit",Ox:["new","del"][S-2]}}this.m(b)};dE.prototype.fI=function(Z){this.yQ(Z)};
dE.prototype.mL=function(D){var Z=this.Wk,S=Z[D];if(S==null){var b=s.R("canvas");S=b.getContext("2d");
Z.push(S)}return S};dE.prototype.a1w=function(Z){if(Z.target==this.bz){var S=this.wR;S.ph=[];S.v6=[];
S.Pd=!0;S.nd=!0}};dE.prototype.qO=function(Z){var S=Z.data.SU,b=this.wR,Y=Z.data.MW,P=0,w,f;if(S<0){P=-1-S;
w=b.ph;f=b.v6}else{var h=b.zl()[0];for(var D=0;D<h.length;D++){var Q=h[D].SU;if(Q==S)break;if(Q>=0)P++}w=b.v6;
f=b.ph}if(Y){var e=w.indexOf(P);if(e==-1)w.push(P);else w.splice(e,1)}else{while(w.length!=0)w.pop();
while(f.length!=0)f.pop();w.push(P)}b.Pd=!0;b.nd=!0};dE.prototype.vm=function(){this.WB()};dE.prototype.lX=function(Z){this.wR=Z;
this.WB()};dE.prototype.WB=function(){var Z=this.wR,S=this.bz,h=34,Q=34;s.Z9(S);if(Z==null||!s.mO(S))return;
var b=Z.c,Y=Z.v,P=new b4(0,0,b,Y),w=this.uv=Z.a.o.slice(0),f=w[0]+w[1]+w[2];if(b>Y)Q=Math.round(Q*Y/b);
else h=Math.round(h*b/Y);var e=Z.zl(),l=e[0];for(var D=0;D<l.length;D++){var O=l[D],m=this.mL(D);T.kJ.anC(m,h,Q,P,O.add.vmsk);
var V=new e0(O.SU,!1,O.SU>=0,m,O.name,e[1].indexOf(D)!=-1,!1,G.tp,{e:"pathedit",Ox:"rnm",SU:O.SU});V.parent=this;
S.appendChild(V.j)}};dE.prototype.Xd=function(Z,S){this.bz.style.height=S-9-25+"px"};dE.prototype.B=function(){eS.prototype.B.call(this);
this.WB();h2.uO(this.Qb,["lrs/makesel","lrs/makepath","lrs/newlayer","lrs/bin"])};function gt(Z){eS.call(this,[9,Z?4:5],!1,null,Z?eS.KV.alV:eS.KV.abO);
this.u9.setAttribute("style","min-width:240px;");this.akM=Z;this.wY=null;this.W3=null}gt.prototype=new eS("");
gt.prototype.jr=function(){this.wY=new bh;var Z=this.wY,S=this.u9;Z.parent=this;if(this.akM){var b=s.R("div","marged");
S.appendChild(b);b.appendChild(Z.ZZ.j);S.appendChild(s.R("hr"));var Y=s.R("div","marged");S.appendChild(Y);
Y.appendChild(Z.KF.j);Y.appendChild(Z.Je.j);var P=s.R("div","marged");S.appendChild(P);P.appendChild(Z.kv.j);
P.appendChild(Z.UP.j);S.appendChild(s.R("hr"));var w=s.R("div","marged");S.appendChild(w);w.appendChild(Z.FY.j);
w.appendChild(Z.py.j);var f=s.R("div","marged");S.appendChild(f);f.appendChild(Z.wA.j);f.appendChild(Z.zo.j);
S.appendChild(s.R("hr"));var h=s.R("div","marged");S.appendChild(h);h.appendChild(Z.E0.j);h.appendChild(Z.AM.j);
h.appendChild(Z.FG.j);h.appendChild(Z.$O.j);h.appendChild(Z.uL.j);h.appendChild(Z.rf.j);h.appendChild(Z.hh.j);
h.appendChild(Z.Y3.j)}else{var b=s.R("div","marged");S.appendChild(b);b.appendChild(Z.$V.j);b.appendChild(Z.CH.j);
b.appendChild(Z.Wp.j);b.appendChild(Z.acT.j);b.appendChild(Z.a2L.j);b.appendChild(Z.a1j.j);b.appendChild(Z.amd.j);
S.appendChild(s.R("hr"));var Y=s.R("div","marged");S.appendChild(Y);Y.appendChild(Z.Ll.j);Y.appendChild(Z.TK.j);
Y.appendChild(Z.mD.j);S.appendChild(s.R("hr"));var P=s.R("div","marged");S.appendChild(P);P.appendChild(Z.jQ.j);
P.appendChild(Z.ZY.j);P.appendChild(Z.h9.j)}};gt.prototype.vm=function(){if(!s.mO(this.u9))return;if(this.wY==null){this.jr();
var Z=this.W3;if(Z)this.wY.F(Z.pA,Z.S9,Z.su);this.wY.B()}};gt.prototype.B=function(){eS.prototype.B.call(this);
if(this.wY)this.wY.B()};gt.prototype.na=function(Z,S){this.W3=Z;if(S!=bp._O&&S!=bp.BK&&S!=bp.VE&&S!=bp.dT)return;
if(this.wY)this.wY.F(Z.pA,Z.S9,Z.su)};function fJ(){eS.call(this,[9,13],!1,null,eS.KV.anJ);this.W3=null;
this.acD=null;this.aaz=null;this.$u=null;this.a1f=null;this.ts=Math.round(290*s.Z());this.uD=8;this.a6D=4;
this.mJ=new gl(null,["Hi","Hello"]);this.mJ.i(s.E.L,this.En,this);var Z=this.eY=new fX("-",null,null,!0);
Z.i("click",this.zq,this);var S=this.a03=new fX("+",null,null,!0);S.i("click",this.zq,this);this.xc=new aD(!1);
this.xc.i(s.E.L,this.uk,this);this.xc.j.style.height=20+"em";var b=s.R("div","padded");b.setAttribute("style","width:"+(this.ts+10)/s.Z()+"px;");
this.u9.appendChild(b);var top=s.R("div");top.setAttribute("style","margin-bottom:0.5em");b.appendChild(top);
top.appendChild(this.mJ.j);top.appendChild(Z.j);top.appendChild(S.j);b.appendChild(this.xc.j)}fJ.prototype=new eS("");
fJ.prototype.uk=function(Z){var S=this.xc.u()*this.uD*this.a6D,b=Math.floor(this.ts/this.uD)/s.Z(),Y=this.xc.ahM();
S+=Math.floor(Y.y/b)*this.uD;S+=Math.floor(Y.x/b);var P=this.$u[this.mJ.u()];if(S>=P.length)return;var w=P[S],f=this.a1f[w];
if(f.Ht.length==0){alert("No known character for this glyph");return}var h=String.fromCodePoint(f.Ht[0]),Q=new d(s.E.s,!0);
Q.T=G.le;Q.data={e:"insertText",G:h};this.m(Q)};fJ.prototype.zq=function(Z){this.uD+=Z.target==this.eY?1:-1;
this.uD=Math.max(1,Math.min(20,this.uD));this.En()};fJ.prototype.vm=function(){this.na(this.W3)};fJ.prototype.na=function(Z,S){this.W3=Z;
if(!s.mO(this.u9))return;var b=Z.pA,Y=b.xp.Font,Q=0;if(Y==null)return;var P=b.E2[Y].Name;if(this.acD==P)return;
var Y=Z.S9.NI(P);if(Y==null)return;var w=Y.maxp.numGlyphs,f=this.a1f=new Array(w);for(var D=0;D<w;D++)f[D]={Ht:[]};
var h=Date.now(),e=new Uint8Array(1048575);for(var D=0;D<1048575;D++){var l=Typr.U.codeToGlyph(Y,D);
if(l!=0&&l<w){e[D]=1;if(f[l].Ht.length==0)Q++;f[l].Ht.push(D)}}var O=fJ._h,m=[];for(var D=0;D<O.length;
D++)m.push([]);for(var l=1;l<w;l++){m[0].push(l);var V=f[l].Ht[0];if(V==null){continue}for(var q=1;q<O.length;
q++){var K=O[q].AY;for(var D=0;D<K.length;D+=2)if(K[D]<=V&&V<=K[D+1]){m[q].push(l);break}}}this.$u=m;
var z=[];for(var D=0;D<O.length;D++)z.push(O[D].EW+" ("+m[D].length+")");var t=this.mJ.u();this.mJ.vL(z);
this.mJ.F(t);this.acD=P;this.aaz=Y;this.En()};fJ.prototype.En=function(Z){var S=this.$u[this.mJ.u()],b=S.length,Y=this.aaz,P=Typr.U,w=Math.floor(this.ts/this.uD),f=w,h=f*.8,Q=f*.8/Y.head.unitsPerEm,e=[],l=s.R("canvas"),O=l.getContext("2d"),m=this.uD,V=Math.ceil(b/m),q=this.a6D;
l.width=w*m;l.height=f*q;O.strokeStyle="rgba(0,0,0,0.3)";var K=Date.now();for(var z=0;z<V;z+=q){O.fillStyle="white";
O.fillRect(0,0,m*w,f*q);for(var t=0;t<q;t++){for(var H=0;H<m;H++){var D=S[(z+t)*m+H];if(D==null)break;
var i=P.glyphToPath(Y,D),y=T.z.$R(i.crds);if(!y.h3()){O.fillStyle="#252525";O.beginPath();var j=H*w+(w-y.c*Q)*.5-y.x*Q,J=t*f+h;
O.translate(j,J);O.scale(Q,-Q);P.pathToContext(i,O);O.scale(1/Q,-1/Q);O.translate(-j,-J);O.fill()}}}O.beginPath();
for(var H=0;H<m;H++){var A=H*w+w+.5;O.moveTo(A,0);O.lineTo(A,f*q)}for(var t=0;t<q;t++){var a=t*f+f+.5;
O.moveTo(0,a);O.lineTo(m*w,a)}O.stroke();e.push(l.toDataURL("image/png"))}this.xc.TS(e,null,w*m,f*q)};
fJ._h=[{EW:"All Glyphs"},{EW:"Basic Latin, Latin 1",AY:[0,127,128,143]},{EW:"Latin Extended-A",AY:[256,383]},{EW:"Latin Extended-B",AY:[384,591]},{EW:"Punctuations",AY:[33,35,37,39,42,42,44,44,46,47,58,59,63,63,64,64,92,92,161,161,167,167,182,183,191,191,894,894,903,903,1370,1375,1417,1417,8192,8303,11776,11903]},{EW:"Greek",AY:[880,1023]},{EW:"Cyrillic",AY:[1024,1279]},{EW:"Hebrew",AY:[1424,1535]},{EW:"Arabic",AY:[1536,1791]},{EW:"Emoji",AY:[9728,10095,127744,129535]}];
function eq(){eS.call(this,[13,0],!1,null,eS.KV.tN);this.dS=0;this.akT=0;this.W3=null;var Z=s.R("div","flexrow padded");
this.u9.appendChild(Z);var S=s.R("div");Z.appendChild(S);this.rg=[];for(var D=0;D<2;D++){var b=new gy;
this.rg.push(b);b.i("click",this.ahy,this);S.appendChild(b.j)}this.RA=new ho(192);this.RA.i(s.E.L,this.gT,this);
Z.appendChild(this.RA.j)}eq.prototype=new eS("");eq.prototype.ahy=function(Z){this.dS=this.rg.indexOf(Z.currentTarget);
this.T2()};eq.prototype.gT=function(Z){var S=this.RA.u();this.RA.F(S);var b=Math.round(S.h*255)<<16|Math.round(S.l*255)<<8|Math.round(S.O*255),Y=new d(s.E.P,!0);
Y.data={e:s.U.h4,Sz:bp.tN,Ox:this.dS,G:b};this.m(Y);this.akT=Date.now()};eq.prototype.T2=function(){var Z=this.W3,S=this.dS,b=[Z.ui,Z.VY];
for(var D=0;D<2;D++){var Y=this.rg[D],P=Y.j.style;Y.D9(b[D]);if(D==S)delete P.borderColor;else P.borderColor="var(--bg-color)"}var w=b[S];
if(Date.now()-this.akT>100)this.RA.F({h:(w>>>16)/255,l:(w>>>8&255)/255,O:(w&255)/255})};eq.prototype.na=function(Z,S){this.W3=Z;
if(S==bp._O||S==bp.tN)this.T2()};eq.prototype.vm=function(){this.T2()};function cJ(){eS.call(this,"CSS",!1,null,eS.KV.CSS);
this.Mc=null;var Z=s.R("div","padded");this.u9.appendChild(Z);this.A3=s.R("textarea");this.A3.setAttribute("rows",16);
this.A3.setAttribute("style","display:block;tab-size:4; font-family:monospace; width:98%; min-width:270px;");
Z.appendChild(this.A3)}cJ.prototype=new eS("");cJ.prototype.lX=function(Z){this.Mc=Z;this.T2()};cJ.prototype.na=function(Z,S){if(S==bp.VE)this.T2()};
cJ.prototype.T2=function(){var Z=this.Mc;if(Z==null||Z.C.length==0)return;if(!s.mO(this.u9))return;var S=Z.t[Z.C[0]],b=CSS.a98(S,Z);
if(b.length!=0)this.A3.value=b.join(";\n")+";";else this.A3.value=""};cJ.prototype.vm=function(){this.T2()};
function bo(){eS.call(this,[9,6],!1,null,eS.KV.a1n);this.u9.setAttribute("style","min-width:240px;");
this.Mc=null;this.W3=null;var Z=s.R("div","marged row");this.u9.appendChild(Z);var S=s.R("div","cell");
S.setAttribute("style","width:10em");Z.appendChild(S);var b=s.R("div","cell");b.setAttribute("style","width:10em");
Z.appendChild(b);this.abG=[];for(var D=0;D<4;D++){var Y=new bE("");this.abG.push(Y);S.appendChild(Y.j);
s.X3(S)}this.u9.appendChild(s.R("hr",""));var P=s.R("div","marged row");this.u9.appendChild(P);var S=s.R("div","cell");
S.setAttribute("style","width:10em");var b=s.R("div","cell");b.setAttribute("style","width:10em");P.appendChild(S);
P.appendChild(b);this.W5=new bE("");S.appendChild(this.W5.j);s.X3(S);this.pU=new bE("");S.appendChild(this.pU.j);
this.O0=new bE("");b.appendChild(this.O0.j);s.X3(b);this.Dd=new bE("");b.appendChild(this.Dd.j);this.W5.F("X: 100 px");
this.pU.F("Y: 100 px");this.O0.F("W: 0");this.Dd.F("H: 0")}bo.prototype=new eS("");bo.prototype.Zq=function(Z,S,b,Y,P){if(!s.mO(this.u9)||Z==null)return;
var w=Z.a._2(P.x,P.y),f=new ar(Math.floor(w.x),Math.floor(w.y));if(!P.ou){var h=0,Q=0,e=0,l=0,O=this.abG;
if(!P.ou&&!Z.ahw()&&new b4(0,0,Z.c-1,Z.v-1).DS(f)){var m=Z.Zd(),D=Z.c*f.y+f.x<<2;h=m[D+0];Q=m[D+1];e=m[D+2];
l=m[D+3]}O[0].F("R: "+h);O[1].F("G: "+Q);O[2].F("B: "+e);O[3].F("A: "+l)}this.W5.F("X: "+T.dp.Rv(f.x,Z.GY,b,Z.c));
this.pU.F("Y: "+T.dp.Rv(f.y,Z.GY,b,Z.v));this.d$()};bo.prototype.d$=function(){var Z=this.Mc,S=this.W3,b=0,Y=0;
if(Z&&S){if(Z.a.dl){b=Z.a.dl.c;Y=Z.a.dl.v}else if(Z.N){b=Z.N.rect.c;Y=Z.N.rect.v}b=T.dp.Rv(Math.abs(b),Z.GY,S,Z.c);
Y=T.dp.Rv(Math.abs(Y),Z.GY,S,Z.v)}this.O0.F(aV.get([12,41]).charAt(0)+": "+b);this.Dd.F(aV.get([12,42]).charAt(0)+": "+Y)};
bo.prototype.B=function(){eS.prototype.B.call(this);this.d$()};bo.prototype.lX=function(Z,S,b){this.Mc=Z;
this.W3=b;this.d$()};function bz(){eS.call(this,[9,1],!1,null,eS.KV.kd);this.oH=null;this.hp=null;this.E7=null;
this.oB=s.R("div","lphead");this.bz=s.R("div","lpbody scrollable");this.UD=s.R("div","lpfoot");this.q_=new gl(null,is.dd,!1,is.JL);
this.q_.i(s.E.L,this.acV,this);this.oB.appendChild(this.q_.j);this.fP=new c2([12,0],0,100,"%",0);this.fP.i(s.E.L,this.ad$,this);
this.fP.parent=this;this.oB.appendChild(this.fP.j);this.s9=new eW([6,57,2],["<img src=\""+PIMG.trsp3+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["tools/brush"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.pos+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG["lrs/lock"]+"\" class=\"autoscale gsicon\" />"],!0,["Transparency",[12,76,2],[12,40],[7,0]]);
this.s9.i(s.E.L,this.a4K,this);this.oB.appendChild(this.s9.j);this.RC=new c2([12,26],0,100,"%",0);this.RC.i(s.E.L,this.a83,this);
this.RC.parent=this;this.oB.appendChild(this.RC.j);this.Qb=[];this.c_();this.u9.appendChild(this.oB);
this.u9.appendChild(this.bz);this.bz.addEventListener("dragover",function(b){b.preventDefault()},!1);
this.bz.addEventListener("dragenter",s.Jj,!1);this.bz.addEventListener("drop",this.a0m.bind(this),!1);
this.u9.appendChild(this.UD);this.u9.addEventListener("contextmenu",s.Jj,!1);var Z=ep.M4(!0),S=ep.C8(!0);
this.amG=new a5(Z,S);var Z=[{name:[14,10]},{name:[14,11],uJ:!0},{name:[6,0]},{name:[11,4]},{name:[5,4],uJ:!0},{name:[6,7]},{name:"New Smart Obj. via Copy",Q:function(b){return{Q:b.t[b.C[0]].add.SoLd!=null}},uJ:!0},{name:[6,8],Q:function(b){var Y=b.t[b.C[0]];
if(Y.add.TySh||Y.add.SoLd||Y.add.SoCo||Y.add.GdFl||Y.add.PtFl)return{Q:!0};return{Q:!1}}},{name:[6,34],Q:function(b){var Y=b.t[b.C[0]];
return{Q:Y.add.lmfx!=null&&!Y.W$()}}},{name:[6,40],uJ:!0,Q:function(b){var Y=b.t[b.C[0]];return{Q:Y.add.TySh!=null}}},{name:"",uJ:!0,Q:function(b){var Y=b.t[b.C[0]],P=Y.add.TySh,w=P?P.HK:null;
return{Q:P!=null&&w.Curve==null,nn:aV.get(P&&eO.O$(w)==0?[16,3,1]:[16,3,0])}}},{name:[6,6,0],uJ:!0,Q:function(b){return{Q:b.rP(b.C[0]),As:b.t[b.C[0]].gL}}},{name:[11,6],uJ:!0,sub:[{name:[5,1],Q:function(b){var Y=b.t[b.C[0]];
return{Q:Y.add.lmfx!=null}}},{name:[5,2]},{name:[2,2],Q:function(b){var Y=b.t[b.C[0]];return{Q:Y.add.lmfx!=null}}}]},{name:[6,10],Q:function(b){return{Q:b.C.length==1&&b.C[0]!=0&&!b.t[b.C[0]].W$()}}},{name:[6,12,0],Q:function(b){return{Q:b.C.length>1||b.t[b.C[0]].W$()}}},{name:[6,12,1],uJ:!0},{name:[13,0],sub:function(){var b=[[13,1,0],[13,1,1],[13,1,2],[13,1,3],[13,1,4],[13,1,5],[13,1,6],[13,1,7]],Y=[];
for(var D=0;D<b.length;D++)Y.push({name:b[D]});return Y}()}],S=[{g:s.E.P,k:{e:s.U.Fy,g9:"layerstyle"}},{g:s.E.s,T:G.r9,k:{e:"fromlayer",ms:[null,0,0]}},{g:s.E.s,T:G.kd,k:{e:F.GG}},{g:s.E.P,k:{e:s.U.Fy,g9:"duplinto"}},{g:s.E.s,T:G.kd,k:{e:F.ak}},{g:s.E.TH,k:{uf:"newPlacedLayer"}},{g:s.E.s,T:G.kd,k:{e:F.UB}},{g:s.E.TH,k:{uf:"rasterizeLayer",V1:{classID:"rasterizeLayer",null:a3.h$("Lyr",!0)}}},{g:s.E.s,T:G.kd,k:{e:F.zR}},{g:s.E.s,T:G.kd,k:{e:F.kj}},{g:s.E.s,T:G.le,k:{e:"switchPntPrgr"}},{g:s.E.s,T:G.kd,k:{e:F.TA}},{sub:[{g:s.E.s,T:G.Qj,k:{e:"st_copy"}},{g:s.E.s,T:G.Qj,k:{e:"st_paste"}},{g:s.E.s,T:G.Qj,k:{e:"st_clear"}}]},{g:s.E.s,T:G.kd,k:{e:F.lh}},{g:s.E.s,T:G.kd,k:{e:F.oy}},{g:s.E.s,T:G.kd,k:{e:F.Dh}},{sub:function(){var b=[];
for(var D=0;D<8;D++)b.push({g:s.E.s,T:G.kd,k:{e:F.mw,ai3:D}});return b}()}];this.cy=new a5(Z,S);var Z=[{name:[6,45],Q:function(b){var Y=b.t[b.C[0]];
return{Q:Y.fY(b).d==null}}},{name:[6,47]}],S=[{g:s.E.s,T:G.kd,k:{e:F.AJ}},{g:s.E.s,T:G.kd,k:{e:F.dF}}];
this.ajN=new a5(Z,S);var Z=[{name:"enab/disab",Q:function(b){return{nn:aV.get(b.t[b.C[0]].Y6().isEnabled?[6,15]:[6,14])}}},{name:[6,22]},{name:[5,8],Q:function(b){return{Q:b.bY(!1,!0)}}}],S=[{g:s.E.s,T:G.kd,k:{e:F.pa}},{g:s.E.s,T:G.kd,k:{e:F.fs}},{g:s.E.s,T:G.kd,k:{e:F.ji}}];
this.a3R=new a5(Z,S);var Z=[{name:"enab/disab",Q:function(b){return{nn:aV.get(b.t[b.C[0]].fY(b).d.isEnabled?[6,42]:[6,41])}}},{name:[6,46]}],S=[{g:s.E.s,T:G.kd,k:{e:F.Wt}},{g:s.E.s,T:G.kd,k:{e:F.aQ}}];
this.aiL=new a5(Z,S);var Z=[{name:"enab/disab",Q:function(b){return{nn:aV.get(b.t[b.C[0]].add.vmsk.isEnabled?[6,17]:[6,16])}}},{name:[6,24]}],S=[{g:s.E.s,T:G.kd,k:{e:F.cf}},{g:s.E.s,T:G.kd,k:{e:F.Vw}}];
this.aai=new a5(Z,S);this.a8v=new a5(ep.Gd(!0),ep.cN(!0));this.aj0=new a5(ep.M4(),ep.C8());this.i("rclick",this.a3P,this)}bz.prototype=new eS("");
bz.prototype.a0m=function(Z){s.Jj(Z);var S=Z.dataTransfer.getData("Text"),b=1,Y=0;if(S==""){s.tw(Z,this,this.E7.indexOf(this.hp),Y+(b>.5?0:1))}else if(S!="--panel"){var S=JSON.parse(S),P=S.vp;
if(P=="l")this.HZ({e:F.ob,source:S.pG,target:Y,ZI:b})}};bz.prototype.xV=function(){return new ar(253,0)};
bz.prototype.a3P=function(Z){var S=this.hp,b=Z.data,P;if(S.C.indexOf(b.$)==-1){var Y={e:F.lx,$:Z.target.Au.index,s0:b.PC};
this.HZ(Y)}if(S.C.indexOf(b.$)==-1)return;if(b.PC==1){P=this.a3R}else if(b.PC==2){P=this.aai}else if(b.PC==3){P=this.aiL}else if(b.PC==4){P=this.ajN}else if(b.PC==5){P=this.amG}else{P=this.cy}P.B();
P.update(S);P.parent=this;var w=new d(s.E.P,!0);w.data={e:s.U.Gc,Bq:P,x:b.DA.x+1,y:b.DA.y+1};this.m(w)};
bz.prototype.B=function(){eS.prototype.B.call(this);this.q_.B();this.fP.B();this.s9.B();this.RC.B();
if(this.hp)this.lX(this.hp);var Z="lrs/link lrs/fx lrs/adj lrs/mask lrs/folder lrs/newlayer lrs/bin".split(" ");
for(var D=0;D<this.Qb.length;D++){var S=this.Qb[D];S.bl(s.ip(Z[D]))}};bz.prototype.lX=function(Z,S){if(Z&&!Z.Vc)return;
if(Z==null)s.zy(this.u9,"disabled");else s.bq(this.u9,"disabled");this.hp=Z;this.E7=S;if(this.oH!=null){this.bz.removeChild(this.oH.bz);
this.oH=null}if(Z==null)return;this.oH=new hC(Z.root,this,Z,{gV:0});this.bz.appendChild(this.oH.bz);
if(Z.C.length==0||Z.t[Z.C[0]]==null)s.zy(this.oB,"disabled");else{s.bq(this.oB,"disabled");if(Z.C.length==1&&Z.ug)this.oH.FS(Z.C);
var b=Z.t[Z.C[0]];if(b.W$()){this.q_.vL([[15,10,27]].concat(is.dd),[1].concat(is.JL));var Y=is.KP.indexOf(b.WL);
this.q_.F(Y+1)}else{this.q_.vL(is.dd,is.JL);var Y=is.KP.indexOf(b.WL);this.q_.F(Y)}this.fP.F(Math.round(100*b.opacity/255));
this.s9.F([b.vv(0),b.vv(1),b.vv(2),b.vv(31)]);this.RC.F(Math.round(100*(b.add.iOpa!=null?b.add.iOpa/255:1)))}};
bz.prototype.Xd=function(Z,S){var b=this.oB.getBoundingClientRect().height,Y=59;if(b>70)Y=84;if(b>100)Y=108;
var P=S-(Y+37);this.bz.style.height=P+"px"};bz.prototype.acV=function(Z){this.HZ({e:F.fk,u$:this.q_.u()})};
bz.prototype.ad$=function(Z){this.HZ({e:F.XB,u$:Math.round(255*this.fP.u()/100)})};bz.prototype.a4K=function(Z){this.HZ({e:F.EQ,u$:[this.s9.u(),[0,1,2,31]]})};
bz.prototype.a83=function(Z){this.HZ({e:F.Cd,u$:Math.round(255*this.RC.u()/100)})};bz.prototype.aiu=function(Z){this.lB(Z,this.a8v)};
bz.prototype.aep=function(Z){this.lB(Z,this.aj0)};bz.prototype.lB=function(Z,S){var b=Z.currentTarget;
if(s.mO(S.j))return;Z.stopPropagation();var Y=b.getBoundingClientRect();S.B();S.update(this.hp);S.parent=this;
var P=new d(s.E.P,!0);P.data={e:s.U.Gc,Bq:S,x:Y.left,y:Y.top,aig:!0};this.m(P)};bz.prototype.akl=function(Z){this.HZ({e:F.Zh})};
bz.prototype.a27=function(Z){this.HZ({e:this.hp.C.length>1?F.aT:F.D4})};bz.prototype.ae9=function(Z){this.HZ({e:F.NO})};
bz.prototype.ajH=function(Z){this.HZ({e:F.ak})};bz.prototype.a0f=function(Z){this.HZ({e:F.sg})};bz.prototype.HZ=function(Z){var S=new d(s.E.s,!0);
S.data=Z;S.T=G.kd;this.m(S)};bz.prototype.c_=function(){var Z=[[6,54,0],[11,6],[6,1],[6,21],[6,20],[6,13],[6,31]],S=[this.a0f,this.aep,this.aiu,this.akl,this.a27,this.ae9,this.ajH],b=this.a4S.bind(this);
for(var D=0;D<Z.length;D++){var Y=new fX("W",!1,Z[D]);this.Qb.push(Y);s.TL(Y.j,S[D].bind(this));this.UD.appendChild(Y.j);
if(D>=Z.length-3){var P=Y.j;P.addEventListener("drop",b,!1);P.addEventListener("dragover",function(w){w.preventDefault()},!1);
P.addEventListener("dragenter",s.Jj,!1)}}};bz.prototype.a4S=function(Z){s.Jj(Z);var S=0,b=this.Qb;while(b[S].j!=Z.currentTarget)S++;
b[S].KY();var Y=Z.dataTransfer.getData("Text");if(Y=="")return;var Y=JSON.parse(Y);if(Y.vp=="l"){var P={e:[F.aT,F.GG,F.ak][S-4]};
if(this.hp.C.indexOf(Y.pG)==-1)P.$=Y.pG;this.HZ(P)}if(S!=6)return;if(Y.vp=="sm"||Y.vp=="s"){var w=new d(s.E.s,!0);
w.T=G.Qj;w.data={e:Y.vp=="sm"?"st_clear":"st_delsingle",$:Y.pG,pG:Y.Qn};this.m(w)}if(Y.vp=="fm"||Y.vp=="f"){this.HZ({e:Y.vp=="fm"?F.dF:F.T0,src:Y.pG,Qn:Y.Qn})}if(Y.vp=="m"||Y.vp=="vm"){this.HZ({e:Y.vp=="m"?F.fs:F.Vw,$:Y.pG})}};
function hC(Z,S,b,Y){ij.call(this);this.parent=S;this.Au=Z;this.Cg=[];this.j=s.R("div","layeritem");
var P=Z.$,H=15,N=!1;this.oB=s.R("div",b.C.indexOf(Z.index)!=-1?"head selected":"head");if(Z.$.add.artb!=null)s.zy(this.oB,"artb");
this.oB.setAttribute("style","height: "+(P.afO+10)+"px");var w=s.R("div","headL"),f=s.R("div","headR"),h=s.R("div","lpineck");
this.bz=s.R("div","lpibody");this.j.appendChild(this.oB);this.oB.appendChild(w);this.oB.appendChild(f);
if(P.U_()||P.pL())if(P.GP())this.j.appendChild(h);var Q=this.oB;Q.setAttribute("draggable","true");Q.addEventListener("dragstart",this.MR.bind(this),!1);
Q.addEventListener("drop",this.em.bind(this),!1);Q.addEventListener("dragover",this.T7.bind(this),!1);
Q.addEventListener("dragenter",s.Jj,!1);Q.addEventListener("dragleave",this.hl.bind(this),!1);var e=[],l=[],O=s.R("div");
this.WC=s.R("div","eye");O.appendChild(this.WC);var m=s.R("div","space");this.Fs=s.R("div","label");
this.Fs.setAttribute("style","max-width:calc(100% - "+(96+Z.depth*20)+"px)");this.Fs.textContent=P.getName();
this.Ok=s.R("div","lock");this.aov=s.R("div","lrfx");this.uN=s.R("div","arfx");var V=this.a2D.bind(this),q=this.aa2.bind(this);
this.oB.addEventListener("click",q,!1);this.oB.addEventListener("contextmenu",V,!1);var K=[0,16711680,16748544,16763904,4513024,22015,11141375,7829367],z=P.add.lclr==null?0:K[P.add.lclr];
if(z==0)z=Y.gV;var t=[z>>16,z>>8&255,z&255];for(var D=0;D<3;D++){t[D]=Math.round(.5*t[D]+.5*220)}if(1<s.Z()&&s.Z()<1.5)H=H/s.Z();
O.setAttribute("style","background-color:rgba("+t.join(",")+","+(z==0?0:1)+");");this.WC.setAttribute("style","background-size: "+H+"px "+H+"px;");
var i=this.ajF.bind(this);O.addEventListener("mousedown",i,!1);O.addEventListener("mouseover",i,!1);
this.Fs.addEventListener("pointerup",this.ajY.bind(this),!1);this.uN.addEventListener("click",this.ael.bind(this),!1);
e[0]=O;e[1]=m;e[10]=this.Fs;function y(bI,fq,Q){var e9=fq.canvas;if(Q)bI.setAttribute("draggable","true");
bI.appendChild(e9);e9.setAttribute("style",e9.getAttribute("style")+"; pointer-events:none")}if(P.W$()){var j=s.R("div","arrow"),J=s.R("div","folder");
j.addEventListener("click",this.agd.bind(this),!1);e[2]=j;e[3]=J;if(P.add.lsct==fr.k8){for(var D=Z.children.length-1;
D>=0;D--){var A=new hC(Z.children[D],S,b,{gV:z});this.Cg.push(A);this.bz.appendChild(A.j)}this.j.appendChild(this.bz)}j.setAttribute("class",P.add.lsct==fr.k8?"open":"closed")}else{this.mF=s.R("div","thumb");
e[5]=this.mF;y(this.mF,P.W7)}var a=P.Y6();if(a){this.VI=s.R("div","chain");this.oW=s.R("div","thumb");
y(this.oW,Z.$.a0F,!0);this.VI.style.opacity=a.kF?1:0;this.VI.addEventListener("click",this.af$.bind(this),!1)}var I=P.q3()&&P.add.vmsk;
if(P.add.vmsk&&!I){this.sC=s.R("div","chain");this.IF=s.R("div","thumb");y(this.IF,Z.$.acR,!0);this.sC.style.opacity=P.add.vmsk.kF?1:0;
this.sC.addEventListener("click",this.a5p.bind(this),!1)}if(P.pL()&&P.fY(b).d){this.Ya=s.R("div","thumb");
y(this.Ya,Z.$.afT,!1);this.Ya.addEventListener("click",q,!1);this.Ya.addEventListener("contextmenu",V,!1)}if(P.U_()){this.a8O=h;
h.addEventListener("contextmenu",V,!1);var E=new bz.D$(aV.get([12,1]),"sm","layerstyle",Z.depth,0,null);
E.parent=this;h.appendChild(E.j);var c=P.add.lmfx,u=c.masterFXSwitch.v;E.Ba(u);for(var D=0;D<a4.order.length;
D++){var n=c[a4.Ol[D]].v;if(n.length==0)continue;for(var o=0;o<n.length;o++){var E=new bz.D$(aV.get(a4.names[D]),"s","layerstyle",Z.depth,1,[D,o]);
E.Ba(u&&n[o].v.enab.v);E.parent=this;h.appendChild(E.j)}}}if(P.pL()){var E=new bz.D$(aV.get([12,55]),"fm",null,Z.depth,0,-1,P.fY(b).d?this.Ya:null);
E.parent=this;h.appendChild(E.j);this.a3l=E.j;this.a3l.addEventListener("contextmenu",V,!1);var c=P.add.SoLd.filterFX.v,x=c.filterFXList.v,u=c.enab.v;
E.Ba(u);for(var D=x.length-1;D>=0;D--){var g=x[D].v,v=cL.sn(g);if(g3.Qs[v])v=g3.Qs[v];var R=g.Nm.v;if(cL.names[v])R=aV.get(cL.names[v]);
if(g3.names[v])R=aV.get(g3.names[v]);var X="afw_"+v,E=new bz.D$(R,"f",X,Z.depth,1,D);E.Ba(u&&g.enab.v);
E.parent=this;h.appendChild(E.j)}}if(b.t.indexOf(P)==b.C[0]){var B=P.PC,M;if(B<=0)M=this.mF;else if(B==1)M=this.oW;
else if(B==3)M=this.Ya;if(M)M.setAttribute("class","thumb active");if(P.PL&&this.IF)this.IF.setAttribute("class","thumb active")}O.style.opacity=P._7()?1:.25;
m.setAttribute("style","width:"+Math.max(0,Z.depth-1)*18+"px");var r=P.add.lspf!=null&&P.add.lspf!=0;
this.Ok.style.opacity=P.vv(31)?1:.5;e[4]=P.gL?s.R("div","clipp"):null;e[6]=a?this.VI:null;e[7]=a?this.oW:null;
e[8]=P.add.vmsk&&!I?this.sC:null;e[9]=P.add.vmsk&&!I?this.IF:null;var $=P.QG,eQ=b.C;if($!=0)for(var D=0;
D<eQ.length;D++)if(b.t[eQ[D]].QG==$){N=!0;break}l[0]=N?s.R("div","link"):null;l[1]=r?this.Ok:null;l[2]=P.U_()?this.aov:null;
l[3]=P.U_()||P.pL()?this.uN:null;this.uN.setAttribute("class",P.GP()?"arfx open gsicon":"arfx closed gsicon");
var hN=e;for(var D=0;D<hN.length;D++)if(hN[D])w.appendChild(hN[D]);hN=l;for(var D=0;D<hN.length;D++)if(hN[D])f.appendChild(hN[D])}hC.prototype=new ij;
hC.prototype.FS=function(Z){var S=this.Au.index;if(Z.indexOf(S)!=-1){if(this.j.scrollIntoView)this.j.scrollIntoView({block:"nearest"})}for(var D=0;
D<this.Cg.length;D++)this.Cg[D].FS(Z)};hC.g3=function(Z,S){var b=S.getBoundingClientRect();return(Z.clientY-b.top)/b.height};
hC.prototype.MR=function(Z){Z.stopPropagation();var S=Z.target==this.oW?"m":Z.target==this.IF?"vm":"l";
Z.dataTransfer.setData("Text",JSON.stringify({vp:S,pG:this.Au.index}))};hC.prototype.hl=function(Z){s.Jj(Z);
this._c()};hC.prototype.em=function(Z){s.Jj(Z);this._c();var S=Z.dataTransfer.getData("Text"),b=this.parent.hp,Y=hC.g3(Z,this.oB),P=this.Au.index;
if(Y>.8){var w=!0,f=b.root.zO(P);while(f.parent!=null){var h=f.parent,Q=h.children;if(Q.indexOf(f)!=0)w=!1;
f=f.parent}if(w){P=0;Y=1}}if(S==""){s.tw(Z,this,this.parent.E7.indexOf(b),P+(Y>.5?0:1))}else if(S!="--panel"){var S=JSON.parse(S),e=S.vp;
if(e=="l")this.HZ({e:F.ob,source:S.pG,target:P,ZI:Y});else if(e=="m"||e=="vm")this.HZ({e:e=="m"?F.Y8:F.OG,src:S.pG,nw:P,lW:Z.altKey});
else hC.i7(Z,S,this)}};hC.i7=function(Z,S,b,Y){var P=S.vp,w=b.Au.index,f=S.pG;if(P=="s"||P=="sm")b.HZ({e:F.fE,src:f,nw:w,Qn:S.Qn,lW:Z.altKey});
if(P=="f"||P=="fm")b.HZ({e:F.yc,src:f,nw:w,Qn:S.Qn,JV:Y==null?0:Y,lW:Z.altKey})};hC.prototype.T7=function(Z){s.Jj(Z);
var S=hC.g3(Z,this.oB);this._c();var b=S>.5?"-bottom":"-top";if(this.Au.$.W$()&&.5<S&&S<.8)b="";this.oB.style["border"+b]="3px solid rgba(0,0,0,0.5)";
this.oB.style.margin=b==""?"-3px 0 -3px 0":b=="-top"?"-3px 0 0 0":"0 0 -3px 0"};hC.prototype._c=function(Z){this.oB.style.border="none";
this.oB.style.margin="0"};hC.EK=-1;hC.yh=!1;hC.Pv=function(Z){hC.yh=!1;document.body.removeEventListener("mouseup",hC.Pv)};
hC.prototype.ajF=function(Z){if(Z.button!=0)return;if(Z.type=="mousedown"){hC.yh=!0;document.body.addEventListener("mouseup",hC.Pv,!1)}if(Z.type=="mouseover"&&(!hC.yh||hC.EK==this.Au.index))return;
s.Jj(Z);this.HZ({e:F.qk,$:this.Au.index});hC.EK=this.Au.index};hC.prototype.agd=function(Z){s.Jj(Z);
this.HZ({e:F.Cs,$:this.Au.index})};hC.prototype.af$=function(Z){this.HZ({e:F.E5,$:this.Au.index})};hC.prototype.a5p=function(Z){this.HZ({e:F.Rx,$:this.Au.index})};
hC.eG=0;hC.prototype.ajY=function(Z){var S=hC.eG;hC.eG=Date.now();if(Date.now()-S>300)return;Z.preventDefault();
Z.stopPropagation();this.oB.setAttribute("draggable","false");var b=new eS.IO(this.Fs,this.mN.bind(this))};
hC.prototype.mN=function(Z){this.HZ({e:F.if,$:this.Au.index,name:Z})};hC.prototype.ael=function(Z){this.HZ({e:F.fa,$:this.Au.index})};
hC.prototype.a2D=function(Z){if(this.gF(Z,Z.target,this.PC(Z)))return;var S=Z.sourceCapabilities;if(S)S=S.firesTouchEvents;
if(Z.button!=2&&S!=!0)return;var b=this.PC(Z);if(b!=3&&Z.currentTarget==this.a3l)b=4;if(Z.target==this.aov||Z.currentTarget==this.a8O)b=5;
var Y=new d("rclick",!0);Y.data={$:this.Au.index,PC:b,DA:s.R6(Z,document.body)};this.m(Y)};hC.prototype.PC=function(Z){var S=Z.target,b=S;
return b==this.IF?2:b==this.oW?1:b==this.mF?0:b==this.Ya?3:-1};hC.prototype.aa2=function(Z){var S=Z.target,l;
if(S==this.WC||S==this.uN||S==this.VI||S==this.sC||S.tagName&&S.tagName.toLowerCase()=="input")return;
var b=this.PC(Z),Y=this.parent.hp,P=this.Au.index,w=Y.t[P];if(S==this.Ok){this.HZ({e:F.EQ,$:P,u$:[[!1,!1,!1,!1,!1],[0,1,2,3,31]]});
return}if(Z.button==0&&Z.detail==2){if(S==this.Fs)return;var f=new d(s.E.s,!0),h=new d(s.E.P,!0),Q=new d(s.E.TH,!0);
if(b==0&&w.add.SoCo){var e=T.W.CD(w.add.SoCo.Clr.v);h.data={e:s.U.Fy,g9:"colorpicker",gV:e.h<<16|e.l<<8|e.O,iy:function(V){var q=T.W.RQ({O:V&255,l:V>>>8&255,h:V>>16&255});
q={classID:"null",Clr:{t:"Objc",v:q}};var K=new d(s.E.s,!0);K.T=G.kd;K.data={e:F.Um,U0:[P],a1:!0,G:{uR:1,B2:q}};
this.m(K)}.bind(this),gz:!0}}else if(b==0&&(g3.get(w.add)||w.add.SoCo||w.add.GdFl||w.add.PtFl))h.data={e:s.U.AO,g9:eS.KV.Ye};
else if(b!=0&&b!=-1)h.data={e:s.U.AO,g9:eS.KV.Ye};else if(b==0&&w.add.SoLd)Q.data={uf:"placedLayerEditContents",V1:{classID:"placedLayerEditContents"}};
else if(b==0&&w.add.TySh){f.T=G.le;f.data={e:"editCurr",xj:P}}else h.data={e:s.U.Fy,g9:"layerstyle",$:P};
this.m(Q.data?Q:h.data?h:f);return}if(this.gF(Z,S,b))return;if(Z.button!=0)return;if(b==1||b==3){var O=b==3?w.fY(Y).d:w.Y6();
l=O.Ag?Y.a.o.join("")=="111"?1:2:0}var m={e:F.lx,$:P,s0:b};this.HZ(m);if(Z.altKey){if(b==1||b==3){var f=new d(s.E.s,!0);
f.T=G.$j;f.data={e:"mskView",G:l!=0?0:Z.shiftKey?1:2};this.m(f)}else{this.HZ({e:F.TA,$:P})}return}};
hC.prototype.gF=function(Z,S,b){if((Z.ctrlKey||Z.metaKey)&&(b==0||b==1||b==2)){var Y=0;if(Z.shiftKey)Y++;
if(Z.altKey)Y+=2;var P=new d(s.E.s,!0);P.T=G.r9;P.data={e:"fromlayer",ms:[this.Au.index,b,Y]};this.m(P);
return!0}return!1};hC.prototype.HZ=function(Z){var S=new d(s.E.s,!0);S.data=Z;S.T=G.kd;this.m(S)};bz.D$=function(Z,S,b,Y,P,w,f){ij.call(this);
this.adx=S;this.Zr=b;this.index=w;this.j=s.R("div","styleitem");this.oB=s.R("div","head");this.a17=null;
if(S=="f"){var h=this.a17=s.R("div","headR");h.textContent="\u2699";this.oB.appendChild(h)}this.rO=s.R("div","eye gsicon");
this.Fs=s.R("div","label");this.j.appendChild(this.oB);this.oB.appendChild(this.rO);if(f){this.oW=f;
this.oB.appendChild(this.oW);this.oB.setAttribute("style","height: "+(f.firstChild.height/s.Z()+10)+"px")}this.Fs.innerHTML=Z;
this.j.setAttribute("style","margin-left: "+(24+Y*16+P*22)+"px");this.oB.appendChild(this.Fs);this.rO.addEventListener("click",this.amr.bind(this),!1);
var Q=this.j;Q.setAttribute("draggable","true");Q.addEventListener("dragstart",this.MR.bind(this),!1);
if(!0){Q.addEventListener("drop",this.em.bind(this),!1);Q.addEventListener("dragover",this.T7.bind(this),!1);
Q.addEventListener("dragenter",s.Jj,!1);Q.addEventListener("dragleave",this.hl.bind(this),!1)}this.j.addEventListener("click",this.Xa.bind(this),!1)};
bz.D$.prototype=new ij;bz.D$.prototype.MR=function(Z){Z.stopPropagation();Z.dataTransfer.setData("Text",JSON.stringify({vp:this.adx,pG:this.parent.Au.index,Qn:this.index}))};
bz.D$.prototype.hl=function(Z){s.Jj(Z);this._c()};bz.D$.prototype.em=function(Z){s.Jj(Z);this._c();var S=Z.dataTransfer.getData("Text");
if(S=="")return;var S=JSON.parse(S);hC.i7(Z,S,this.parent,this.index+(hC.g3(Z,this.oB)>.5?0:1))};bz.D$.prototype.T7=function(Z){s.Jj(Z);
var S=hC.g3(Z,this.oB)>.5;this._c();var b="border-"+(S?"bottom":"top");this.oB.style[b]="0.2em solid rgba(0,0,0,0.5)"};
bz.D$.prototype._c=function(Z){this.oB.style.border="none"};bz.D$.prototype.Ba=function(Z){var S=15;
if(1<s.Z()&&s.Z()<1.5)S=S/s.Z();this.rO.setAttribute("style","background-size: "+S+"px "+S+"px;");this.rO.style.opacity=Z?1:.2};
bz.D$.prototype.Xa=function(Z){if(Z.target==this.rO)return;var S=this.parent.Au.index;if(Z.detail!=1&&this.Zr!=null){var S=this.parent.Au.index,b=new d(s.E.P,!0);
if(this.Zr.indexOf("afw_")==0){var Y=this.Zr.slice(4),P=_[Y]||cL.Yr[Y],w=Z.target==this.a17;if(!w&&!P)return;
b.data=dK.aF.W_(w?"blendOptions":Y,{$:S,index:this.index})}else b.data={e:s.U.Fy,g9:this.Zr,$:S,index:this.index};
this.m(b)}else{this.parent.HZ({e:F.lx,$:S,s0:0})}};bz.D$.prototype.amr=function(Z){var S={fm:F.DZ,f:F._J,sm:F.sr,s:F.wp}[this.adx];
this.parent.HZ({e:S,$:this.parent.Au.index,index:this.index})};function dn(){eS.call(this,"Guide Guy",!1,null,eS.KV.afW);
this.Mc=null;this.x1=[];var Z=s.R("div","form padded");this.u9.appendChild(Z);Z.setAttribute("style","width:200px");
this.u9.appendChild(Z);var S=s.R("canvas"),b=S.getContext("2d");S.width=S.height=160;var Y=[32,0,16,160,0,32,160,16,0,112,160,16],P="Margin Left,Margin Top,Margin Right,Margin Bottom,Column Count,Row Count,Column Width,Row Height,Column Gap,Row Gap".split(","),w=[0,0,0,0,0,0,0,0,0,0];
for(var D=0;D<10;D++){b.clearRect(0,0,160,160);b.setTransform(1,0,0,1,80,80);b.rotate((D&3)*Math.PI/2);
b.translate(-80,-80);b.fillStyle="rgba(0,0,0,0.3)";if(D<4){for(var f=0;f<12;f+=4){b.fillStyle=f==0?"#000000":"rgba(0,0,0,0.3)";
b.fillRect(Y[f],Y[f+1],Y[f+2],Y[f+3])}}else if(D<6){var h=8*6;b.fillRect(0,0,h,160);b.fillRect(8*7,0,h,160);
b.fillStyle="#000000";b.fillRect(8*14,0,h,160)}else if(D<8){b.fillRect(0,0,16,160);b.fillRect(160-16,0,16,160);
b.fillRect(32,0,160-64,160);b.fillStyle="#000000";b.fillRect(32,80-8,160-64,8*1)}else{b.fillRect(0,0,8*7,160);
b.fillRect(8*13,0,160,160);b.fillStyle="#000000";b.fillRect(8*7,80-8,8*6,8*1)}var Q="<img src=\""+S.toDataURL()+"\" class=\"autoscale gsicon\" /> ",e=new c2(Q,0,200,D==4||D==5?null:"px",null,null,null,4,P[D]);
e.parent=this;e.i(s.E.L,this.a97,this);e.F(w[D]);e.B();this.x1.push(e);Z.appendChild(e.j)}var l=["Add Guides","Clear Guides"];
this.tT=[];for(var D=0;D<l.length;D++){var O=new fX(l[D],!0,null,!0);this.tT.push(O);O.i("click",this.yB,this);
Z.appendChild(O.j)}for(var D=0;D<6;D++){b.setTransform(1,0,0,1,80,80);b.rotate(Math.floor(D/3)*Math.PI/2);
b.translate(-80,-80);b.clearRect(0,0,160,160);b.fillStyle="rgba(0,0,0,0.3)";b.fillRect(0,0,160,160);
b.clearRect(16,16,128,128);b.fillStyle="#000000";var m=D%3;b.fillRect([0,9,18][m]*8,0,16,160);var Q="<img src=\""+S.toDataURL()+"\" class=\"autoscale gsicon\" /> ",O=new fX(Q,!1,null,!1);
this.tT.push(O);O.i("click",this.yB,this);Z.appendChild(O.j)}}dn.prototype=new eS("");dn.prototype.a97=function(Z){var S=this.x1,b=S.indexOf(Z.target),Y=Math.floor(b/2),P=b&1,w=[];
for(var D=0;D<4;D++)w.push(S[2*D+P].u());var f=-1;if(Y==2&&w[2]!=0&&w[3]!=0&&w[4]!=0)f=4;if(Y==3&&w[3]!=0&&w[2]!=0&&w[4]!=0)f=4;
if(Y==4&&w[4]!=0&&w[2]!=0&&w[3]!=0)f=3;if(f!=-1)S[2*f+P].F(0)};dn.prototype.yB=function(Z){var S=this.Mc,b=this.tT.indexOf(Z.target),Y=[[],[]];
if(S==null)return;var P=S.N?S.N.rect:new b4(0,0,S.c,S.v),w=P.c,f=P.v;if(b==0){var h=[[],[]];for(var D=0;
D<this.x1.length;D++)h[D&1].push(this.x1[D].u());Y=[dn._K(h[0],P.x,P.x+w),dn._K(h[1],P.y,P.y+f)];G.sR.bD(Y,S.vE)}else if(b==1){}else{b-=2;
var Q=Math.floor(b/3),Y=[[],[]];Y[Q].push([P.x,P.x+w/2,P.x+w,P.y,P.y+f/2,P.y+f][b]);G.sR.bD(Y,S.vE)}var e=function(l,O){return l-O};
Y[0].sort(e);Y[1].sort(e);this.ao5(Y)};dn.prototype.a2y=function(Z){var S=this.aoJ.indexOf(Z.target)};
dn.prototype.ao5=function(Z){var S=new d(s.E.s,!0);S.T=G.hK;S.data={e:"gids",If:Z};this.m(S)};dn._K=function(Z,S,b){var Y=[],P=Z[2],w=Z[3],f=Z[4],h=0;
if(P==0)h++;if(w==0)h++;if(f==0)h++;if(h>1&&P==0&&w==0){if(Z[0]!=0)Y.push(S+Z[0]);if(Z[1]!=0)Y.push(b-Z[1]);
return Y}var Q=b-S-Z[0]-Z[1];if(P==0){if(f==0){P=Math.floor(Q/w);f=(Q-P*w)/(P-1)}else{P=1;while(w*P+f*(P-1)+w+f<=Q)P++}}else if(P!=0&&w!=0){if(P*w>Q)P=Math.floor(Q/w);
f=(Q-P*w)/(P-1)}Y.push(S+Z[0],b-Z[1]);var w=(Q-f*(P-1))/P;for(var D=1;D<P;D++){if(f==0)Y.push(S+Z[0]+D*w);
else Y.push(S+Z[0]+D*w+(D-1)*f,S+Z[0]+D*w+D*f)}return Y};dn.prototype.lX=function(Z){this.Mc=Z};function ck(){eS.call(this,[9,2],!1,null,eS.KV.Ye);
this.ab1=null;this.mP=null;this.W3=null;this.a3V=-1}ck.prototype=new eS("");ck.prototype.jr=function(){this.hs=s.R("div","padded");
this.hs.style.width="22em";this.u9.appendChild(this.hs);var Z=s.R("span","fitem");this.hs.appendChild(Z);
this.Bd=[new fX([0,3]),new fX([12,73]),new fX([12,91,0])];for(var D=0;D<this.Bd.length;D++){var S=this.Bd[D];
S.i("click",this.a1E,this);Z.appendChild(S.j)}this.hs.appendChild(s.R("hr"));this.h8=new ck.k7;this.h8.parent=this;
this.VQ=new ck.ta;this.VQ.parent=this;this.iT=new ck.sY;this.iT.parent=this;this.a69=[this.h8,this.VQ,this.iT];
this.hs.appendChild(this.h8.j)};ck.prototype.a1E=function(Z){var D=this.Bd.indexOf(Z.currentTarget);
this.K6(D);this.j_(D==1?this.VQ.aD:-1)};ck.prototype.K6=function(Z){for(var D=0;D<3;D++){this.Bd[D].KY();
var S=this.a69[D].j;if(S.parentNode==this.hs&&D!=Z)this.hs.removeChild(S);if(S.parentNode!=this.hs&&D==Z)this.hs.appendChild(S)}this.Bd[Z].AN()};
ck.prototype.j_=function(Z){var S=this.mP.C[0],b=this.mP.t[S],Y=Z+1;if(Z==1&&b.PL)return;var P=new d(s.E.s,!0);
P.T=G.kd;if(Z!=1&&b.PL){P.data={e:F.lx,$:S,s0:2};this.m(P)}P.data={e:F.lx,$:S,s0:Y};this.m(P)};ck.prototype.B=function(){eS.prototype.B.call(this);
if(this.hs==null)return;this.lX(this.mP);for(var D=0;D<3;D++){this.Bd[D].B();this.a69[D].B()}};ck.prototype.vm=function(){if(!s.mO(this.u9))return;
if(this.hs==null){this.jr();this.na(this.W3,bp._O);this.lX(this.ab1);this.B()}};ck.prototype.lX=function(Z){this.ab1=Z;
if(this.hs==null)return;this.h8.lX(Z);this.VQ.lX(Z);this.iT.lX(Z);if(Z==null||Z.C.length==0||Z.t[Z.C[0]]==null){s.zy(this.u9,"disabled");
this.mP=null;return}else s.bq(this.u9,"disabled");var S=Z.C[0],b=Z.t[S],Y=Z.zl(),P=Y[0],w=Y[1];if(w.length!=0){var f=P[w[0]],h=f.add.vogk,Q=!1;
if(h)for(var D=0;D<h.length;D++){var e=h[D].v,l=e.keyShapeInvalidated;if(l&&l.v||e.keyOriginType==null)continue;
Q=!0;S=f.SU}}if(Z!=this.mP||this.a3V!=S){this.mP=Z;this.a3V=S;if(Q)this.K6(2);else if(b.PC<1&&!b.PL)this.K6(0);
else this.K6(1)}this.Bd[1].v3(this.VQ.aD!=-1);this.Bd[2].v3(Q)};ck.prototype.na=function(Z,S){this.W3=Z;
if(this.h8)this.h8.na(Z,S)};ck.k7=function(){ij.call(this);this.j=s.R("div","form");this.aaA=new bE("Hello");
this.j.appendChild(this.aaA.j);this.JK=null;this.agU=null;this.mP=null;this.ahv=-1;this.af4=null;this.aS=new gy(!0);
this.aS.parent=this;this.aS.i(s.E.L,this.a89,this);this.wU=s.R("div","marged hiline");this.wU.appendChild(this.aS.j);
this.Ih=new el("GrFl",!0);this.Ih.parent=this;this.Ih.i(s.E.L,this.agm,this);this.rs=s.R("div","marged hiline");
var Z="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");for(var D=0;D<Z.length;D++){var S=this.Ih.yd[Z[D]].j;
this.rs.appendChild(S)}this.xm=new el("patternFill",!0);this.xm.parent=this;this.xm.i(s.E.L,this.afa,this);
this.Ru=s.R("div","marged hiline");var Z=["Ptrn","Scl","Algn","phase"];for(var D=0;D<Z.length;D++){var S=this.xm.yd[Z[D]].j;
this.Ru.appendChild(S)}this.PH={};for(var b in g3.names){if(_[b]==null)continue;this.PH[b]=new _[b];
this.PH[b].i(s.E.L,this.ab6,this);this.PH[b].parent=this}var Y=this.afg=s.R("div","marged hiline");this.pi=ck.Dz(["W","H","X","Y"],null,Y,this._L,this);
this.lm=new gl([12,46],[[13,1,8],[13,1,10],[13,1,9],[12,47]]);this.lm.i(s.E.L,this._L,this);Y.appendChild(this.lm.j);
this.nI=new gy(!1);this.nI.parent=this;this.nI.i(s.E.L,this._L,this);Y.appendChild(this.nI.j)};ck.k7.prototype=new ij;
ck.k7.prototype.B=function(){for(var Z in this.PH)this.PH[Z].B();this.Ih.B();this.xm.B();this.lm.B();
for(var D=0;D<4;D++)this.pi[D].B()};ck.k7.prototype._L=function(Z){var S=ck.im(this.pi),b=F.iO(new b4(S[2],S[3],S[0],S[1])),Y=this.lm.u(),P={classID:"artboard",artboardRect:{t:"Objc",v:b},Clr:{t:"Objc",v:this.nI.u()},artboardBackgroundType:{t:"long",v:Y+1}},w=new d(s.E.s,!0);
w.T=G.kd;w.data={e:F.bs,hG:P};this.m(w)};ck.k7.prototype.a89=function(Z){var S=this.mP,b=S.C[0];if(S.t[b].add.SoCo==null)return;
var Y=JSON.parse(JSON.stringify(S.t[b].add.SoCo));Y.Clr.v=this.aS.u();this.jP({uR:1,B2:Y})};ck.k7.prototype.agm=function(Z){var S=this.mP,b=S.C[0];
if(S.t[b].add.GdFl==null)return;this.jP({uR:2,B2:this.Ih.u()})};ck.k7.prototype.afa=function(Z){this.jP({uR:3,B2:this.xm.u()})};
ck.k7.prototype.jP=function(Z){this.DV(G.kd,{e:F.Um,U0:[this.mP.C[0]],a1:!0,G:Z})};ck.k7.prototype.ab6=function(Z){this.DV(G.cC,{e:"edit_layer",G:this.agU.u()})};
ck.k7.prototype.DV=function(Z,S){var b=new d(s.E.s,!0);b.T=Z;b.data=S;this.m(b)};ck.k7.prototype.lX=function(Z){var S=aV.get([0,3]),b=null;
this.mP=Z;if(Z&&Z.t.length>0&&Z.C.length!=0&&Z.t[Z.C[0]]){var Y=Z.t[Z.C[0]],P=g3.get(Y.add);if(P!=null&&this.PH[P]!=null){b=this.PH[P].j;
this.agU=this.PH[P];this.PH[P].F(Y.add[P]);if(Z.C[0]!=this.ahv){var w=Z.Zd(Z.C[0]-1);this.af4=T.YY(w)}this.PH[P].Oj(this.af4);
S=aV.get(g3.names[P])}if(Y.add.SoCo){b=this.wU;this.aS.F(Y.add.SoCo.Clr.v);S=aV.get([6,48,0,0])}if(Y.add.GdFl){b=this.rs;
this.Ih.update(Z,Y.add.GdFl);S=aV.get([6,48,0,1])}if(Y.add.PtFl){b=this.Ru;this.xm.update(Z,Y.add.PtFl);
S=aV.get([6,48,0,2])}if(Y.add.artb){var f=Y.add.artb,h=Y.mb();b=this.afg;this.lm.F(f.artboardBackgroundType.v-1);
if(f.Clr)this.nI.F(f.Clr.v);ck.Ir(this.pi,[h.c,h.v,h.x,h.y]);S="Artboard"}this.ahv=Z.C[0]}if(b!=this.JK){if(this.JK)this.j.removeChild(this.JK);
if(b!=null)this.j.appendChild(b);this.JK=b}this.aaA.F(S)};ck.k7.prototype.na=function(Z,S){this.Ih.na(Z,S);
this.xm.na(Z,S);for(var b in this.PH)this.PH[b].na(Z,S)};ck.ta=function(){ij.call(this);this.j=s.R("div","form");
this.mP=null;this.aD=0;var Z=s.R("span","fitem");this.j.appendChild(Z);this.Bd=[new fX([6,2]),new fX([6,3]),new fX([6,50])];
for(var D=0;D<this.Bd.length;D++){var S=this.Bd[D];S.i("click",this.aga,this);Z.appendChild(S.j)}this.Ms=new bS([12,74],0,255);
this.Ms.i(s.E.L,this.ot,this);this.j.appendChild(this.Ms.j);this.ik=new bS([7,6],0,500,"px",2,!0);this.ik.i(s.E.L,this.ot,this);
this.j.appendChild(this.ik.j);this.tC=new fX([4,11],null,null,!0);this.tC.i("click",this.afz,this)};
ck.ta.prototype=new ij;ck.ta.prototype.afz=function(){var Z=new d(s.E.s,!0);Z.T=G.cC;Z.data={e:"start",Es:"nvrt"};
this.m(Z)};ck.ta.prototype.ot=function(Z){var S=this.Ms.u(),b=this.ik.u(),Y=new d(s.E.s,!0);Y.T=G.kd;
Y.data={e:F.mS,Wg:this.mP.C[0],gB:{oM:this.aD,Ms:S,ik:b}};this.m(Y)};ck.ta.prototype.B=function(){for(var D=0;
D<this.Bd.length;D++)this.Bd[D].B();this.Ms.B();this.ik.B();this.tC.B()};ck.ta.prototype.lX=function(Z){this.mP=Z;
this.WB()};ck.ta.prototype.aga=function(Z){this.WB(this.Bd.indexOf(Z.currentTarget));this.parent.j_(this.aD)};
ck.ta.prototype.WB=function(Z){var S=this.mP,b=this.Bd;for(var D=0;D<3;D++){var Y=b[D];Y.KY();Y.J7()}if(S==null||S.t.length==0||S.C.length==0||S.t[S.C[0]]==null)return;
var P=-1,w=S.t[S.C[0]];if(w.pL()&&w.fY(S).d!=null){b[2].zA();P=2}if(w.add.vmsk){b[1].zA();P=1}if(w.Y6()){b[0].zA();
P=0}if(Z!=null)P=Z;else if(w.PL)P=1;else if(w.PC==3)P=2;else if(w.PC==1)P=0;this.aD=P;if(P==-1){this.Ms.J7();
this.ik.J7();return}var f=w.ti(P);this.Ms.zA();this.ik.zA();this.Ms.F(f.Ms);this.ik.F(f.ik);b[P].AN();
var h=this.tC.j;if(P==0)this.j.appendChild(h);else if(h.parentNode==this.j)this.j.removeChild(h)};ck.sY=function(){ij.call(this);
this.j=s.R("div","form");this.aA=1;this.PO=s.R("div");this.an=ck.Dz(["W","H","X","Y"],[12,51],this.PO,this.Fj,this);
this.Tl=s.R("div");var Z=["\u250F","\u2513","\u2517","\u251B"];this.r8=ck.Dz(Z,[12,91,2],this.Tl,this.Fj,this)};
ck.sY.prototype=new ij;ck.sY.prototype.B=function(){s.wh(this.an[0],this.an[1]);for(var D=2;D<5;D++){this.an[D].B()}this.r8[4].B()};
ck.Dz=function(Z,S,b,Y,P){var w=s.R("div","numlist");b.appendChild(w);var f=[];for(var D=0;D<4;D++){var h=new c2(Z[D],0,0,null,1,!1,!0);
h.i(s.E.L,Y,P);w.appendChild(h.j);f.push(h);if(D==1||D==3)s.X3(w)}if(S){f[4]=new ec(S);f[4].F(!0);b.appendChild(f[4].j)}return f};
ck.Ir=function(Z,S){for(var D=0;D<4;D++)Z[D].F(S[D])};ck.im=function(Z){var S=[];for(var D=0;D<4;D++)S[D]=Z[D].u();
return S};ck.sY.prototype.Fj=function(Z){var S=this.an.indexOf(Z.currentTarget),b=this.r8.indexOf(Z.currentTarget),Y=[null,null,null,null],P=[null,null,null,null];
if(S!=-1){var w=ck.im(this.an),f=this.an[4].u();w[0]=Math.max(1,w[0]);w[1]=Math.max(1,w[1]);if(f&&S==0)w[1]=w[0]/this.aA;
if(f&&S==1)w[0]=w[1]*this.aA;Y[0]=w[2];Y[1]=w[3];Y[2]=Y[0]+w[0];Y[3]=Y[1]+w[1]}if(b!=-1){var w=ck.im(this.r8);
P[b]=Math.max(0,w[b]);if(this.r8[4].u())for(var D=0;D<4;D++)P[D]=P[b];var h=P[3];P[3]=P[2];P[2]=h}var Q=new d(s.E.s,!0);
Q.T=G.kd;Q.data={e:F.r5,NA:Y,abE:P};this.m(Q)};ck.sY.prototype.lX=function(Z){if(Z==null)return;var S=this.PO.parentNode!=null,b=this.Tl.parentNode!=null,Y=T.AZ.Sy(Z),P=Y[0],w=Y[1];
if(P){if(!S)this.j.appendChild(this.PO);this.aA=(P[2]-P[0])/(P[3]-P[1]);ck.Ir(this.an,[P[2]-P[0],P[3]-P[1],P[0],P[1]])}else if(S)this.j.removeChild(this.PO);
if(w){if(!b)this.j.appendChild(this.Tl);var f=w[2];w[2]=w[3];w[3]=f;ck.Ir(this.r8,w)}else if(b)this.j.removeChild(this.Tl)};
function i8(Z){eS.call(this,Z.name,!0);this.hp=Z;this.Oz=null;this.a3=[];this.Tt=!1;this.cn={x:0,y:0,ou:!1};
this.Uk=document.createElement("canvas");this.Mi=this.Uk.getContext("2d");this.OD=document.createElement("canvas");
this.a_=this.OD.getContext("2d");var S=16,b=T.f(16*16*4);T.bO(b,S,S,8);this.TC=T.scale.ZO(b,S,S);this.a76=this.UQ.bind(this);
this.i2=this.Sw.bind(this);this.aa5=this.LP.bind(this);var Y=this.u9;s.TL(Y,this.a76);s.Tb(Y,this.i2);
Y.addEventListener("wheel",this.Qx.bind(this),!1);Y.addEventListener("contextmenu",this.a9i.bind(this),!1);
var P=this.aae.bind(this);Y.addEventListener("gesturestart",P,!1);Y.addEventListener("gesturechange",P,!1);
Y.addEventListener("gestureend",P,!1);this.iX=0;this.a0t="";this.QP=4;s.QF(Y)}i8.prototype=new eS;i8.prototype.aae=function(Z){if(Z.type=="gesturestart")this.tL=Z.scale;
if(Z.type=="gesturechange"){var S=new d("mouse",!0);S.action="scroll";S.MW=!0;this.je(Z,S);var b=(this.tL-Z.scale)/this.tL;
S.FV=new ar(0,100*b);this.tL=Z.scale;this.m(S)}};i8.prototype.HE=function(){if(this.hp.Ev())return window.confirm(aV.get([22,6,3])+" "+this.hp.name+". "+aV.get([22,6,4]));
return!0};i8.prototype.kM=function(Z){Z.preventDefault()};i8.prototype.II=function(Z){var S=-1,b=this.a3;
for(var D=0;D<b.length;D++)if(b[D].pointerId==Z.pointerId)S=D;return S};i8.JA=function(Z){var S=Z.pointerType,b=window.__kb;
return S=="touch"&&b.q(U.a6J)};i8.prototype.UQ=function(Z){if(i8.JA(Z))return;var S=this.II(Z);if(S!=-1)this.a3[S]=Z;
else this.a3.push(Z);if(this.a3.length==1){var b=Z.button!=null&&Z.button!=0?"rdown":"down",Y=new d("mouse",!0);
Y.action=b;this.je(Z,Y);this.m(Y);s.Qe(this.u9,this.i2);s.Tb(window,this.i2);s.Ju(window,this.aa5)}if(this.a3.length==2){this.QD("multidown");
this.Tt=!0}};i8.prototype.Sw=function(Z){if(i8.JA(Z))return;var S=this.II(Z);if(S!=-1)this.a3[S]=Z;if(this.a3.length>1){this.QD("multimove")}if(this.Tt)return;
var b=new d("mouse",!0);b.action="move";this.je(Z,b);this.m(b);if(this.Oz&&this.Oz.pS&&!this.cn.ou)this.T2()};
i8.prototype.LP=function(Z){if(i8.JA(Z))return;var S=this.a3,b=this.II(Z);S.splice(b,1);if(S.length==0){var Y=Z.button!=null&&Z.button>0?"rup":"up",P=new d("mouse",!0);
P.action=Y;this.je(Z,P);this.m(P);s.Qe(window,this.i2);s.zz(window,this.aa5);s.Tb(this.u9,this.i2);this.Tt=!1}};
i8.prototype.Qx=function(Z){this.kM(Z);if(Z.deltaX==0&&Z.deltaY==0)return;var S=new d("mouse",!0);S.action="scroll";
S.MW=Z.ctrlKey;this.je(Z,S);this.m(S)};i8.prototype.a9i=function(Z){s.Jj(Z);var S=Z.sourceCapabilities;
if(S)S=S.firesTouchEvents;if(S){var b=new d("mouse",!0);this.je(Z,b);b.action="rdown";this.m(b);b.action="rup";
this.m(b)}};i8.prototype.QD=function(Z){var S=this.a3,b=s.Z(),Y=[];for(var D=0;D<S.length;D++){var P=Y[D]=s.R6(S[D],this.u9);
P.x*=b;P.y*=b}var w=new d("mouse",!0);w.action=Z;w.JM=Y;this.m(w)};i8.prototype.je=function(Z,S,b){var Y=this.a3.length!=0;
if(S.action!="up"){var P=s.Z();if(b==null)b=s.R6(Z,this.u9);this.cn=S.TX={x:P*b.x,y:P*b.y,ou:Y};var w=s.R6(Z,document.body);
S.TX.w$=w.x;S.TX.rE=w.y}else this.cn=S.TX={x:this.cn.x,y:this.cn.y,ou:Y};S.TX.Ic=.5;if(Z.pressure!=null&&Z.pressure!=0)S.TX.Ic=Z.pressure;
if(Z.pointerType=="mouse")S.TX.Ic*=2;if(Z.deltaX!=null){var f=Z.deltaMode==0?1:40;S.FV=new ar(Z.deltaX*f,Z.deltaY*f)}};
i8.prototype.na=function(Z,S){this.Oz=Z};i8.prototype.lX=function(Z){this.vm();this.T2()};i8.prototype.Xd=function(Z,S){if(Z<=0||S<=0)return;
this.Yu=Z;this.XE=S;var b=this.hp,Y=s.Z();b.a.a_.c=Math.floor(Z*Y);b.a.a_.v=Math.floor(S*Y);s.ed(this.OD,Z,S);
s.ed(this.Uk,Z,S);s.ed(p.bo(),Z,S);if(b.a.S==0)b.a.S=G.IL.mZ(b.c,b.v,Z*Y,S*Y);this.T2()};i8.prototype.vm=function(){var Z=this.u9.firstChild;
if(!p.lc&&Z==p.bo()||p.lc&&Z==this.OD)this.u9.removeChild(Z);var S=p.lc?p.bo():this.OD;if(!s.mO(S))this.u9.appendChild(S)};
i8.prototype.T2=function(){if(p.lc!=this.QP){this.iX=0;this.a0t=""}this.QP=p.lc;if(this.Oz==null)return;
if(p.lc)this.aka();else this.KR();var Z=this.hp;this.iX=Z.a.S;this.a0t=JSON.stringify(Z.a.o)};i8.prototype.aka=function(){if(p.lc&&i8.adf==null)i8.adf=new i8.UN(!1);
if(p.lc&&i8.ain==null)i8.ain=[new i8.UN(!0,2),new i8.UN(!0,8),new i8.UN(!0,32),new i8.UN(!0,128)];var Z=this.hp,e,m=0;
if(Z.Yv==null)return;var S=Z.a,b=S.a_.c,Y=S.a_.v,P=p.x_;this.a_.clearRect(0,0,b,Y);var w=this.kr(Z);
if(S.HU==null)S.HU=new p.XA(b,Y);if(w)S.HU.set(this.OD);else{p.Kd(S.HU);p.RO(1)}var f=S.pg(0,0),h=new fR;
h.scale(b,Y);h.concat(S.Gz(!0));h.scale(1/Z.c,1/Z.v);var Q=[h.w,h.O,0,h.tE,h.KU,0,h.RN,h.Sv,1];if(i8.adX==null)i8.adX=new Float32Array(4*1024);
var l=[0,0,0,0],O=i8.adX;if(Z.add.artd){O.fill(0);l=i8.sJ(Z);var V=Z.c,q=Z.v,H=0;for(var D=0;D<Z.t.length;
D++){var K=Z.t[D],z=K.add.artb;if(z==null||!K._7())continue;var t=K.mb();O[m]=t.x/V;O[m+1]=t.y/q;O[m+2]=t.c/V;
O[m+3]=t.v/q;m+=4;if(m==O.length)break}if(m>2*4)H++;if(m>8*4)H++;if(m>32*4)H++;e=i8.ain[H];O=new Float32Array(O.buffer,0,[2,8,32,128][H]*4)}else e=i8.adf;
p.vk(b,Y);p.RO(0);p.vk(b,Y);e.RF();e.Vx(S.HU.t_,Z.Yv.t_,new Float32Array(Q),new Float32Array([b/8,Y/8,f.x/b,f.y/Y]),Z.c,Z.v,1/Z.a.S,b,Y,new Float32Array(l),O,new Float32Array(T.sE.L8(T.sE.uX(S.o))));
P.drawArrays(P.TRIANGLES,0,6)};i8.sJ=function(Z){var S=Z.add.artd.canvasColor;if(S==null)return[0,0,0,0];
return i8.a1i(S)};i8.a1i=function(Z){var S=T.W.CD(Z.v),b=[S.h/255,S.l/255,S.O/255,1];for(var D=0;D<4;
D++)b[D]=Math.min(1,b[D]);return b};i8.A1=function(Z,S){var b=Z[2]*255;if(p.lc)b=S?0:Math.max(1,b);return"rgba("+Z[0]*255+","+Z[1]*255+","+b+","+Z[3]+")"};
i8.NL=function(Z){if(p.lc)for(var D=0;D<Z.length;D+=4){if(Z[D+2]==0)Z[D+2]=3}};i8.prototype.KR=function(){var Z=this.hp;
if(Z.buffer==null)return;var S=Z.a,b=S.a_,Y=b.c,P=b.v,w=new b4(0,0,Z.c,Z.v);this.Mi.clearRect(0,0,Y,P);
this.a_.clearRect(0,0,Y,P);var f=S.Gz(!0),h=f.clone();h.oN();if(Z.add.artd==null){this.a_.save();var Q=h.YI(new ar(0,0));
h.translate(-Q.x,-Q.y);this.a_.translate(Math.round(Q.x),Math.round(Q.y));this.a_.fillStyle=this.TC;
this.LX(T.z.X6(w),h,this.a_);this.a_.fill();this.a_.restore()}else{this.a_.fillStyle=i8.A1(i8.sJ(Z));
this.a_.fillRect(0,0,Y,P);this.a_.save();this.a_.setTransform(h.w,h.O,h.tE,h.KU,h.RN,h.Sv);var e=Z.root.children;
for(var D=0;D<e.length;D++){var l=e[D].$;if(l.add.artb==null||!l._7())continue;var O=l.mb(),m=l.nE();
if(m!=0)continue;this.a_.fillStyle="white";this.a_.fillRect(O.x,O.y,O.c,O.v)}this.a_.restore()}if(S.ZN.length!=b.X()){S.ZN=T.f(b.X());
S.xW=T.f(b.X()*4)}S.xW.fill(0);T.scale.aos(Z.buffer,w,f,S.xW,b);if(S.o[0]+S.o[1]+S.o[2]!=3)T.sE.ad(S.xW,S.xW,T.sE.uX(S.o));
this.Mi.putImageData(new ImageData(new Uint8ClampedArray(S.xW.buffer),b.c,b.v),0,0);this.a_.drawImage(this.Uk,0,0);
this.a_.getImageData(0,0,1,1);this.kr(Z)};i8.prototype.kr=function(Z){var S=Z.a,b=S.o[0]+S.o[1]+S.o[2],Y=!1,P=[];
for(var D=0;D<Z.C.length;D++){var w=Z.t[Z.C[D]];if(w==null)continue;var f=w.PC;if(f!=1&&f!=3)continue;
var h=f==1?w.Y6():w.fY(Z).d;if(h.Ag)P.push(h)}for(var D=0;D<Z.eP.length;D++)if(Z.eP[D].Ag)P.push(Z.eP[D]);
for(var D=0;D<P.length;D++){var h=P[D];this.gn(h,S,P.length==1&&b==0?2:1,h.color,h.gV);Y=!0}var Q=this.Oz;
Y=this.a8V(Z,this.a_,S)||Y;if(Z.N&&Q.Wb&&Q.Gg.MQ){this.gn(Z.N,S,0,0,null);Y=!0}return Y};i8.prototype.gn=function(Z,S,b,Y,P){var w=0,m,V;
if(P)w=Math.round(P.O)<<16|Math.round(P.l)<<8|Math.round(P.h);var f=S.Gz(!0),h=S.a_,Q=new b4(0,0,S.hp.c,S.hp.v);
if(S.ZN.length!=h.X()){S.ZN=T.f(h.X());S.xW=T.f(h.X()*4)}S.ZN.fill(Y);S.xW.fill(0);var e=Z.channel,l=Z.rect;
T.scale.A(e,l,f,S.ZN,h);if(b==0)T.N.a9q(S.ZN,S.xW,h,h);else T.N.alc(S.ZN,S.xW,h,h,b,w);i8.NL(S.xW);var O=new ImageData(new Uint8ClampedArray(S.xW.buffer),h.c,h.v);
this.Mi.putImageData(O,0,0);this.a_.save();if(b==0){m=h.clone();m.lg(-1,-1);V=new fR}else{m=new b4(0,0,Q.c,Q.v);
V=f.clone();V.oN()}this.LX(T.z.X6(m),V,this.a_);this.a_.clip();this.a_.drawImage(this.Uk,0,0);this.a_.restore()};
i8.prototype.a8V=function(Z,S,b){var Y=Z.M.NZ!=null||Z.M.LG!=null||Z.M.yW!=null||Z.M.Hn.length!=0||Z.M.ag.length!=0,P=this.Oz,w=P.Gg,f=eF.XX[P.Ql],h=Math.round(12*s.Z()),Q=h/Z.a.S,e=b.Gz(!0);
e.oN();S.save();S.setTransform(e.w,e.O,e.tE,e.KU,e.RN,e.Sv);if(Z.add.artd){var l=i8.sJ(Z)[0];l=l<.5?l+.5:l-.5;
l=""+Math.round(l*255).toString(16);while(l.length<2)l="0"+l;S.fillStyle="#"+l+l+l;S.font=Q+"px sans-serif";
for(var D=0;D<Z.t.length;D++){var O=Z.t[D];if(O.add.artb==null||!O._7())continue;var m=O.mb();S.fillText(O.getName(),m.x,m.y-6/b.S);
Y=!0}}var V=i8.A1([.1,.5,1,1]),q=i8.A1([1,1,1,1]);if(P.Wb&&w.Bf){S.fillStyle=S.strokeStyle=V;S.lineWidth=1.5/b.S;
var K=Z.zl(),z=K[0],t=K[1];for(var H=0;H<t.length;H++){var O=z[t[H]],i=O.add.vmsk,y=i.b,j=T.z.o5(y);
this.LX(j,null,S);S.stroke();Y=!0;var J=3*s.Z()/b.S,A=y.length-3;for(var D=0;D<i.mu.length;D++){var a=T.Y.nt(y,i.mu[D]);
if(a==null)continue;var I=a.x,E=a.y;S.beginPath();var c=D==0;if(i.No)c=!c;if(c){S.moveTo(I-J,E-J);S.lineTo(I+J,E+J);
S.moveTo(I-J,E+J);S.lineTo(I+J,E-J);S.stroke()}else{S.arc(I,E,J*1,0,2*Math.PI);S.fill()}Y=!0}if(Z.C.length!=1)continue;
var u=-1;for(var D=0;D<y.length;D++){if(y[D].type>5)continue;if(y[D].type==0||y[D].type==3){if(y[D].qU!=-1)u++;
continue}if(i.C.indexOf(u)!=-1){var I=y[D].I.x,E=y[D].I.y;S.fillRect(I-J*.8,E-J*.8,2*J*.8,2*J*.8)}if(i.cY.indexOf(D)!=-1){var n=[y[D].I];
S.beginPath();S.moveTo(y[D].hQ.x,y[D].hQ.y);S.lineTo(y[D].I.x,y[D].I.y);S.lineTo(y[D].e$.x,y[D].e$.y);
S.stroke();if(!y[D].I.Oh(y[D].hQ))n.push(y[D].hQ);if(!y[D].I.Oh(y[D].e$))n.push(y[D].e$);for(var o=0;
o<n.length;o++){var a=n[o],I=a.x,E=a.y;if(o==0&&(y[D].type==2||y[D].type==5))S.fillRect(I-1.2*J,E-1.2*J,2.4*J,2.4*J);
else{S.beginPath();S.arc(I,E,J*1.2,0,2*Math.PI);S.fill();if(o!=0)S.fillStyle=q;S.beginPath();S.arc(I,E,J*.8,0,2*Math.PI);
S.fill();S.fillStyle=V}}}Y=!0}}}S.fillStyle=S.strokeStyle=i8.A1([0,0,0,1],!0);S.lineWidth=1/b.S;var x=new fR(1,0,0,1,.5/b.S,.5/b.S);
if(Z.M.NZ){this.LX(Z.M.NZ,null,S);S.fill()}if(Z.M.LG){this.LX(Z.M.LG,x,S);S.stroke()}for(var g in Z.M.$U)if(Z.M.$U[g].LG){this.LX(Z.M.$U[g].LG,null,S);
S.stroke();Y=!0}S.beginPath();var J=(4*s.Z()+.5)/b.S,v=Z.M.k_;for(var D=0;D<v.length;D+=2){Y=!0;var I=v[D],E=v[D+1];
S.rect(I-J,E-J,2*J,2*J)}S.stroke();var v=Z.M.a1l;S.beginPath();var J=4*s.Z()/b.S;for(var D=0;D<v.length;
D+=2){Y=!0;var I=v[D],E=v[D+1];S.moveTo(I+J,E);S.arc(I,E,J,0,2*Math.PI)}S.fill();var v=Z.M.IK;S.fillStyle=i8.A1([1,1,1,1]);
S.beginPath();var J=6*s.Z()/b.S;for(var D=0;D<v.length;D+=2){Y=!0;var I=v[D],E=v[D+1];S.moveTo(I+J,E);
S.arc(I,E,J,0,2*Math.PI)}S.fill();var J=4*s.Z()/b.S;for(var D=0;D<v.length;D+=2){Y=!0;var I=v[D],E=v[D+1];
S.fillStyle=i8.A1(Z.M.ac.indexOf(D>>>1)!=-1?[0,.6,1,1]:[.7,.7,.7,1]);S.beginPath();S.moveTo(I+J,E);S.arc(I,E,J,0,2*Math.PI);
S.fill()}if(Z.M.Hn.length!=0){for(var D=0;D<Z.M.Hn.length;D++){var R=Z.M.Hn[D],X=R[1];S.putImageData(new ImageData(new Uint8ClampedArray(R[0].buffer),X.c,X.v),X.x,X.y)}}var B=.5/b.S;
S.lineWidth=1/b.S;if(Z.M._m){Y=!0;var M=Z.M._m,r=M.N_,j={K:[],H:[]};for(var D=0;D<M.HA.length;D++)T.z.concat(j,T.z.X6(M.HA[D]));
j.H=j.H.concat(r);for(var D=0;D<r.length;D+=4){j.K.push("M","L")}for(var D=0;D<j.H.length;D++){j.H[D]+=B}S.strokeStyle=i8.A1([.9,.2,.2,1]);
this.LX(j,null,S);S.stroke();var N=s.Z(),$=2/b.S;S.font=Q*.9+"px sans-serif";for(var D=0;D<r.length;
D+=4){var I=r[D],E=r[D+1],eQ=r[D+2],hN=r[D+3],bI=Math.sqrt((hN-E)*(hN-E)+(eQ-I)*(eQ-I));bI=T.dp.Rv(bI,Z.GY,P,E==hN?Z.c:Z.v);
var fq=new ar((I+eQ)/2,(E+hN)/2);S.fillStyle=i8.A1([.9,.2,.2,1]);var e9=S.measureText(bI).width;S.fillRect(fq.x-e9/2-$*N,fq.y-3.5*$*N,e9+2*$*N,7*$*N);
S.fillStyle=i8.A1([1,1,1,1]);S.save();S.translate(fq.x-e9/2,fq.y+2*$*N);S.scale(.1,.1);S.font=Q*9+"px sans-serif";
S.fillText(bI,0,0);S.restore()}}if(P.Wb){if(w.$M){var W=T.dp.tz(w.rV,Z,w.I5),L=W;if(w.I5==4)L*=Z.v/Z.c;
this.bO(Z,S,W,L,1,w.Sn);Y=!0}if(w.iv&&Z.a.S>7){this.bO(Z,S,1,1,.5,w.Sn);Y=!0}if(w.vE){var bd=Math.max(Z.a.a_.c,Z.a.a_.v)/Z.a.S;
bd=Math.max(Math.max(Z.c,Z.v)*2,bd);S.beginPath();S.strokeStyle=i8.A1([0,1,1,1]);for(var D=0;D<Z.vE[0].length;
D++){var iw=Math.round(Z.vE[0][D])+B;S.moveTo(iw,-bd);S.lineTo(iw,bd)}for(var D=0;D<Z.vE[1].length;D++){var d0=Math.round(Z.vE[1][D])+B;
S.moveTo(-bd,d0);S.lineTo(bd,d0)}S.stroke()}var gS=Z.CY;if(w.CY&&gS.length!=0){S.font=Q*.8+"px sans-serif";
var cf=[],cT=[];for(var D=0;D<gS.length;D++){var fU=G.cd.Xs(gS,D);cf.push(fU);if(Z.m2.indexOf(D)!=-1)cT.push(fU)}cf.reverse();
var dX=Date.now();cf=T.rect.b8([0,0,Z.c,Z.v],cf);for(var o=0;o<2;o++)for(var D=0;D<cf.length;D++){var g$=cf[D],u=g$[4],bX=u!=null?gS[u]:null;
if(bX&&o==0||bX==null&&o==1)continue;var I=Math.round(g$[0]),E=Math.round(g$[1]),eQ=Math.round(g$[2]),hN=Math.round(g$[3]);
S.strokeStyle=S.fillStyle=i8.A1(bX?[0,.7,.7,1]:[.8,.8,.8,1]);S.strokeRect(I+B,E+B,eQ-I,hN-E);var aw=D+1,hP=S.measureText(aw),e9=hP.width;
S.fillRect(I,E,e9+Q/2,Q);S.fillStyle=i8.A1([1,1,1,1]);S.fillText(aw,I+Q/4,E+Q*.8)}var $=2/Z.a.S,eG=2*$;
for(var D=0;D<cT.length;D++){var g$=cT[D],I=Math.round(g$[0]),E=Math.round(g$[1]),eQ=Math.round(g$[2]),hN=Math.round(g$[3]);
S.strokeStyle=S.fillStyle=i8.A1([0,.7,.7,1]);S.strokeRect(I+B,E+B,eQ-I,hN-E);var eB=[I,E,eQ,E,eQ,hN,I,hN];
for(var bb=0;bb<eB.length;bb+=2){var iw=eB[bb],d0=eB[bb+1],gx=eB[bb+2&7],er=eB[bb+3&7];S.fillRect(iw-$,d0-$,eG,eG);
S.fillRect(Math.round((iw+gx)/2)-$,Math.round((d0+er)/2)-$,eG,eG)}}Y=!0}}S.strokeStyle=i8.A1([1,0,0,1]);
if(Z.M.yW){this.LX(Z.M.yW,x,S);S.stroke()}S.restore();if(P.pS){if(Z.a.HQ==null||Z.a.HQ.width!=Z.a.a_.c||Z.a.oL.height!=Z.a.a_.v){Z.a.HQ=S.createImageData(Z.a.a_.c,T.dp.EC);
Z.a.oL=S.createImageData(T.dp.EC,Z.a.a_.v)}var f=eF.XX[P.Ql],b=Z.a,ea=b.S*Z.c/2,hD=b.S*Z.v/2,bP=[1,Z.GY,Z.GY/2.54,Z.GY/25.4,Z.c/100][w.iJ],iz=b.S,iq=b.n.clone(),cU=b.W0;
b.S*=bP;b.n.x+=ea*bP-ea;b.n.y+=hD*bP-hD;b.W0=0;T.dp.a7P(b,f["--text-color"],f["--bg-input"],Math.floor(this.cn.x),Math.floor(this.cn.y));
b.S=iz;b.n=iq;b.W0=cU;var aH=eV.HN(b.S,i8.A1([1,1,1,1]));i8.NL(Z.a.oL.data);i8.NL(Z.a.HQ.data);S.putImageData(Z.a.oL,0,0);
S.putImageData(Z.a.HQ,0,0);S.putImageData(aH,0,Z.a.a_.v-aH.height)}if(Z.M.ag.length!=0){for(var D=0;
D<Z.M.ag.length;D++){var R=Z.M.ag[D],X=R[1];S.putImageData(new ImageData(new Uint8ClampedArray(R[0].buffer),X.c,X.v),X.x,X.y)}}return Y||P.pS||Z.vE[0].length+Z.vE[1].length>0};
i8.prototype.bO=function(Z,S,b,Y,P,w){while(b*Z.a.S<4){b*=2;Y*=2}var f=Z.c,h=Z.v,Q=.5/Z.a.S;S.strokeStyle=i8.A1([.5,.5,.5,P],!0);
S.save();S.rect(0,0,f,h);S.clip();S.beginPath();for(var e=0;e<=f;e+=b){S.moveTo(e+Q,0);S.lineTo(e+Q,h)}if(w==0){for(var l=0;
l<=h;l+=Y){S.moveTo(0,l+Q);S.lineTo(f,l+Q)}}else{Y*=Math.sqrt(4/3);var O=Y*Math.floor(f/Y),m=f*(Y/(2*b));
for(var l=-O;l<=h+O;l+=Y){S.moveTo(0,l);S.lineTo(f,l-m);S.moveTo(0,l);S.lineTo(f,l+m)}}S.stroke();S.restore()};
i8.prototype.LX=function(Z,S,b){b.beginPath();var Y=T.z.clone(Z);if(S)T.z.A(Y.H,S,Y.H);Typr.U.pathToContext({cmds:Y.K,crds:Y.H},b)};
i8.UN=function(Z,S){p.ft.call(this);this.ahm=Z;var b="\t\t\tprecision mediump float;\t\t\t\t\t\tuniform sampler2D source;\t\t\tuniform sampler2D target;\t\t\tuniform vec3 contSizeZoom;\t\t\tuniform vec2 cnvSize;\t\t\tuniform mat4 ctrn; \t\t\t"+(Z?"uniform vec4 bgClr; uniform vec4 ars["+S+"]; ":"")+"\t\t\t\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 gCoord;\t\t\t\t\t\t/* This approximates the error function, needed for the gaussian integral */ \t\t\tvec4 erf(vec4 x) { \t\t\t vec4 s = sign(x), a = abs(x);\t\t\t x = 1.0 + (0.278393 + (0.230389 + 0.078108 * (a * a)) * a) * a;\t\t\t x *= x; \t\t\t return s - s / (x * x); \t\t\t} \t\t\t/* Return the mask for the shadow of a box from lower to upper */ \t\t\tfloat boxShadow(vec2 lower, vec2 upper, vec2 point, float sigma) { \t\t\t vec4 query = vec4(point - lower, point-upper); \t\t\t vec4 integral = 0.5 + 0.5 * erf(query * (sqrt(0.5) / sigma)); \t\t\t return (integral.z - integral.x) * (integral.w - integral.y); \t\t\t} \t\t\t\t\t\tvec4 simpleBlend(vec4 src, vec4 tgt) {\t\t\t\tfloat na = src.w + tgt.w*(1.0-src.w);\t\t\t\t/* avoid division by zero */ \t\t\t\treturn na==0.0 ? vec4(0,0,0,0) : vec4( (src.xyz*src.w + tgt.w*tgt.xyz*(1.0-src.w))*(1.0/na), na);\t\t\t} \t\t\t\t\t\t"+p.lH.Op+"\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 src = texture2D(source, tCoord); \t\t\t\tvec4 tgt = ctrn*texture2D(target, sCoord); "+(Z?"\t\t\t\t\tbool inr = false; vec4 BG = bgClr; \t\t\t\t\tfor(int i=0; i<"+S+"; i++) { \t\t\t\t\t\tvec4 ar = ars[i]; \t\t\t\t\t\tvec2 nsc = sCoord - ar.xy; \t\t\t\t\t\tif( ar.z!=0.0 && in01(nsc/ar.zw) ){\t\t\t\t\t\tinr=true; BG=vec4(1.0,1.0,1.0,1.0); }\t\t\t\t\t}\t\t\t\t":"\t\t\t\t\tfloat shdw = 0.3*boxShadow(vec2(0,0),contSizeZoom.xy, sCoord*contSizeZoom.xy+vec2(0.0,-6.0*contSizeZoom.z) , 10.0*contSizeZoom.z);\t\t\t\t\tvec4 grid = mod(floor(gCoord.x) + floor(gCoord.y), 2.0)==1.0 ? vec4(0.784,0.784,0.784,1) : vec4(1,1,1,1);\t\t\t\t\tvec4 BG = in01(sCoord) ? grid : vec4(0.0,0.0,0.0,shdw); \t\t\t\t")+"\t\t\t\tvec4 outc = in01(sCoord) ? simpleBlend(tgt,BG) : BG ; \t\t\t\tif(src.b == 0.0 && src.a >0.5) gl_FragColor = mix(outc, vec4(vec3(1,1,1)-outc.rgb,1.0), src.w); \t\t\t\telse gl_FragColor = simpleBlend(src,outc); \t\t\t\t\t\t\t}",Y="\t\t\tattribute vec2 verPos;\t\t\tvarying vec2 tCoord;\t\t\tvarying vec2 sCoord;\t\t\tvarying vec2 gCoord;\t\t\t\t\t\tuniform mat3 tmat;\t\t\tuniform vec4 gsize;\t\t\tvoid main(void) {\t\t\t\ttCoord = verPos;\t\t\t\tsCoord = (tmat*vec3(verPos,1.0)).xy;\t\t\t\tgCoord = (verPos-gsize.zw) * gsize.xy ; \t\t\t\tgl_Position = vec4(vec2(-1.0, 1.0) + 2.0*vec2(verPos.x,-verPos.y), 0.0, 1.0);\t\t\t}";
this.wi(b,Y)};i8.UN.prototype=new p.ft;i8.UN.prototype.Vx=function(Z,S,b,Y,P,w,f,h,Q,e,l,O){this.d7("tmat gsize source target contSizeZoom cnvSize bgClr ars ctrn".split(" "));
var m=p.x_,V=this.mf;m.uniformMatrix3fv(V.tmat,!1,b);m.uniform4fv(V.gsize,Y);m.uniform3f(V.contSizeZoom,P,w,f);
m.uniform2f(V.cnvSize,h,Q);m.uniformMatrix4fv(V.ctrn,!1,O);if(this.ahm){m.uniform4fv(V.ars,l);m.uniform4fv(V.bgClr,e)}m.uniform1i(V.source,0);
m.uniform1i(V.target,1);m.activeTexture(m.TEXTURE0);m.bindTexture(m.TEXTURE_2D,Z);m.activeTexture(m.TEXTURE1);
m.bindTexture(m.TEXTURE_2D,S);m.activeTexture(m.TEXTURE0)};function aj(){eS.call(this,[9,7],!1,null,eS.KV.adB);
this.u9.setAttribute("style","min-width:240px;");this.mP=null;this.Z1=-1;this.ajl=[];this.bz=s.R("div","scrollable");
this.bz.style.height="160px";this.u9.appendChild(this.bz);this.UD=s.R("div","lpfoot");this.u9.appendChild(this.UD);
this.tT=[];var Z=["reload","lrs/newlayer","lrs/bin"],S=[[5,10],[5,3],[5,4]];for(var D=0;D<Z.length;D++){var b=new fX("<img src=\""+PIMG[Z[D]]+"\" class=\"gsicon\" />",!1,S[D]);
b.i("click",this.agT,this);this.UD.appendChild(b.j);this.tT.push(b)}}aj.prototype=new eS("");aj.prototype.HZ=function(Z){var S=new d(s.E.s,!0);
S.data=Z;S.T=G.ZS;this.m(S)};aj.prototype.agT=function(Z){var D=this.tT.indexOf(Z.currentTarget);if(D!=1)if(this.Z1==-1)return;
this.HZ({e:["updLC","addLC","delLC"][D],SU:this.Z1});if(D==2)this.Z1=-1};aj.prototype.B=function(){eS.prototype.B.call(this);
for(var D=0;D<this.tT.length;D++)this.tT[D].B()};aj.prototype.lX=function(Z){if(Z==null)s.zy(this.u9,"disabled");
else s.bq(this.u9,"disabled");this.mP=Z;s.Z9(this.bz);if(Z==null)return;var S=Z.TZ.lastAppliedComp?Z.TZ.lastAppliedComp.v:0,b=Z.TZ.list.v.slice(0);
b.unshift({v:{Nm:{v:"Last Document State"},compID:{v:0},capturedInfo:{v:0}}});for(var D=0;D<b.length;
D++){var Y=b[D].v,P=new e3(Y.Nm.v,Y.compID.v,Y.capturedInfo.v,S,this.Z1);P.i("activate",this.hv,this);
P.parent=this;this.bz.appendChild(P.j);this.ajl.push(P)}};aj.prototype.hv=function(Z){this.Z1=Z.currentTarget.SU;
this.lX(this.mP)};function e3(Z,D,S,b,Y){ij.call(this);this.SU=D;this.j=s.R("div","head listitem"+(D==Y?" selected":""));
var P=D==b,w=new fX(P?"\u2713":"\u2014");if(P)w.AN();this.j.appendChild(w.j);w.i("click",this.d1,this);
var f=this.ZR=s.R("span");f.textContent=Z;this.j.appendChild(f);this.tT=[];if(D!=0){this.j.addEventListener("mouseup",this.hv.bind(this),!1);
this.a4_=s.R("span","headR");this.j.appendChild(this.a4_);var h=["lrs/eye","pos","lrs/fx"],Q=["Visibility","Position","Appearance"];
for(var e=0;e<h.length;e++){var l=new fX("<img src=\""+PIMG[h[e]]+"\" class=\"autoscale gsicon\" />",!1,Q[e]);
if((S>>e&1)==0)l.j.setAttribute("style","opacity:0.3");l.i("click",this.afr,this);this.a4_.appendChild(l.j);
this.tT.push(l)}}}e3.prototype=new ij;e3.prototype.hv=function(Z){if(Z.target!=this.ZR&&Z.target!=this.j)return;
if(Z.detail==1)this.m(new d("activate",!1));else{var S=new eS.IO(this.ZR,this.mN.bind(this))}};e3.prototype.afr=function(Z){var D=this.tT.indexOf(Z.currentTarget);
this.HZ({e:"editLC",amP:D,SU:this.SU})};e3.prototype.mN=function(Z){this.HZ({e:"editLC",VT:Z,SU:this.SU})};
e3.prototype.d1=function(Z){this.HZ({e:"setLC",SU:this.SU})};e3.prototype.HZ=function(Z){var S=new d(s.E.s,!0);
S.data=Z;S.T=G.ZS;this.m(S)};function h1(){eS.call(this,[9,11],!1,null,eS.KV.acg);var Z=s.R("div","padded");
Z.setAttribute("style","min-width:15em");this.u9.appendChild(Z);var S=s.R("div");Z.appendChild(S);S.setAttribute("style","cursor:grab;");
this.QY=s.R("canvas");this.QY.width=100;S.appendChild(this.QY);s.QF(this.QY);s.TL(this.QY,this.N$.bind(this));
this.IT=new gu(null,0,G.IL.Qy.length-1);this.IT.i(s.E.L,this.ace,this);Z.appendChild(this.IT.j);this.a0s=this.DE.bind(this);
this.a7v=this.UM.bind(this);this.Mc=null}h1.prototype=new eS("");h1.prototype.Xd=function(Z,S){this.T2()};
h1.prototype.ace=function(Z){var S=this.IT.u(),b=this.Mc,Y=G.IL.Qy[G.IL.Qy.length-1-S],P=new d(s.E.s,!0);
P.T=G.$j;P.data={e:"zoom",S:Y};this.m(P)};h1.prototype.N$=function(Z){if(this.Mc==null)return;s.Tb(window,this.a0s);
s.Ju(window,this.a7v)};h1.prototype.DE=function(Z){var S=s.R6(Z,this.QY),b=this.Mc,Y=this.QY.width,P=this.QY.height,w=(S.x*s.Z()-Y/2)/Y,f=(S.y*s.Z()-P/2)/P,h=s.Z()*b.a.S,Q=Math.round(-b.a.S*b.c*w),e=Math.round(-b.a.S*b.v*f);
G.W2.MZ(b,Q,e)};h1.prototype.UM=function(Z){s.Qe(window,this.a0s);s.zz(window,this.a7v)};h1.prototype.lX=function(Z){if(Z==null&&this.Mc!=null)this.QY.width=100;
this.Mc=Z;this.T2()};h1.prototype.T2=function(){var Z=this.Mc,Y=0;if(Z==null||Z.a.S==0)return;var S=Z.a;
if(!s.mO(this.u9))return;this.IT.F(G.IL.Qy.length-1-G.IL.AC(S.S));var b=300*s.Z(),P=[Z.Zd(),new b4(0,0,Z.c,Z.v)];
T.O9(P);while(Math.max(P[Y+1].c,P[Y+1].v)>b){Y+=2}var w=P[Y],f=P[Y+1],h=f.c,Q=f.v,e=this.QY;e.width=h;
e.height=Q;s.$k(e,h,Q);var l=e.getContext("2d"),O=l.createImageData(h,Q);T.Bv(w,O.data);l.putImageData(O,0,0);
var m=S.a_,V=S._2(m.x,m.y),q=S._2(m.x+m.c,m.y+m.v),K=h/Z.c;l.scale(K,K);l.lineWidth=4/K;l.strokeStyle="#ff0000";
l.strokeRect(V.x,V.y,q.x-V.x,q.y-V.y)};h1.prototype.na=function(Z,S){};h1.prototype.vm=function(){this.T2()};
function hb(Z,S){if(Z==null){eS.call(this);return}eS.call(this,Z.name,!1,Z.icon,S);var b=this.aez=s.R("iframe","padded");
b.setAttribute("src",Z.url);b.setAttribute("style","width:"+Z.width+"px; height:"+Z.height+"px");this.u9.appendChild(b)}hb.prototype=new eS("");
hb.prototype.FI=function(Z){if(s.mO(this.aez))this.aez.contentWindow.postMessage(Z,"*")};function h3(){eS.call(this,[9,12],!1,null,eS.KV.dn);
this.W3=null;this.Yc=new bn(G.sb);this.Yc.parent=this;var Z=s.R("div","padded");Z.setAttribute("style","width:20em");
this.u9.appendChild(Z);Z.appendChild(this.Yc.vQ)}h3.prototype=new eS("");h3.prototype.vm=function(){this.Yc.VU(this.W3.fq)};
h3.prototype.na=function(Z,S){this.W3=Z;if(S==bp._O||S==bp.dn)this.Yc.VU(Z.fq)};h3.prototype.Xd=function(Z,S){this.Yc.a2a(this.W3.pH)};
h3.prototype.B=function(){eS.prototype.B.call(this);this.Yc.B()};var cv=function(){var Z=[],S=null,b=null,Y=null,P=[[100,180,255],[100,255,100],[255,200,100],[200,100,255],[255,100,200]];
function w(){eS.call(this,"Memory",!1,null,eS.KV.Te);var V=s.R("div","padded");this.u9.appendChild(V);
b=new fX(["<< VAR0",[0,13,2]],!1,null,!0);b.addEventListener("click",function(q){Z.pop();h()});V.appendChild(b.j);
S=s.R("div","scrollable");S.setAttribute("style","width:20em; height:26em; margin-top:8px;");V.appendChild(S)}w.prototype=new eS("");
w.prototype.lX=function(V,q,K){Y=q;this.vm()};w.prototype.vm=function(){b.v3(!1);if(!s.mO(S))return;
var V={um:"Total:",PD:[]};for(var D=0;D<Y.length;D++)V.PD.push(e(Y[D]));m(V);Z=[V];h()};w.prototype.B=function(){eS.prototype.B.call(this);
b.B()};function f(V){var q=V.currentTarget,D=0;while((q=q.previousSibling)!=null)D++;Z.push(Z[Z.length-1].PD[D-1]);
h()}function h(){b.v3(Z.length>1);var V=Z[Z.length-1];s.Z9(S);Q(V,S,0);V.PD.sort(function(q,K){return K.$D[0]-q.$D[0]});
for(var D=0;D<V.PD.length;D++)Q(V.PD[D],S,1)}function Q(V,q,K){var z=gH.tF,t=K!=0&&V.PD,H="margin-left:"+K*10+"px; margin-bottom:8px; padding:3px 5px;";
if(t)H+="cursor:pointer;";if(V.vp!=null)H+="background-color:rgba("+P[V.vp].join(",")+",0.2);";var i=s.R("div");
q.appendChild(i);i.setAttribute("style",H);i.innerHTML=l(V.um)+"<br />"+"RAM: <b>"+z(V.$D[0])+"</b>\u2001GPU: <b>"+z(V.$D[1])+"</b>";
if(t)i.addEventListener("click",f,!1)}function e(V){var q={um:V.name,PD:[],vp:0},K=p.lc?1:0,z=1-K,t={um:"Final Image",$D:[V.c*V.v*4,K*V.c*V.v*4],vp:2};
q.PD.push(t);for(var D=0;D<V.t.length;D++){var H=O(V.t[D]);if(H.PD.length!=0)q.PD.push(H)}var i=V.add.lnk2;
if(i)for(var D=0;D<i.length;D++){var H=i[D],y={um:H.JB,PD:[],vp:4},j=0;y.PD.push({um:"Raw file",$D:[H.raw.length,0]});
if(H.Qf)for(var J=0;J<H.Qf.length;J+=2)j+=H.Qf[J].length;if(j!=0)y.PD.push({um:"Decoded pixels",$D:[j,0]});
m(y);q.PD.push(y)}m(q);return q}function l(V){return V.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;")}function O(V){var q={um:V.getName(),PD:[],vp:1},K=p.lc?1:0,z=1-K,t=V.rect.X();
if(t!=0)q.PD.push({um:"Layer pixels",$D:[t*4,K*t*4]});if(V.add.lmfx&&V.VW._u.type){var H=V.VW._u.type,J=0;
for(var i in H){var y=0;for(var j=0;j<H[i].length;j++)if(i=="ebbl"){if(H[i][j].BZ)y+=H[i][j].BZ.Wx.X();
if(H[i][j].q6)y+=H[i][j].q6.Wx.X();if(H[i][j].bm)y+=H[i][j].bm.Wx.X();if(H[i][j].G1)y+=H[i][j].G1.Wx.X()}else y+=H[i][j].Wx.X();
if(y!=0)q.PD.push({um:aV.get(a4.names[a4.order.indexOf(i)]),$D:[z*y*4,K*y*4],vp:3})}if(V.VW.Rf)J+=t;
if(V.VW.Cu)J+=t;if(V.VW.ML)J+=t;if(V.VW.ML)J+=t;if(V.VW.dw)J+=t;if(V.VW.hr)J+=t;var A=V.VW.on?V.VW.on.length:0;
if(J+A!=0)q.PD.push({um:"Additional Blending Data",$D:[z*J*4+A,K*J*4]})}var a=V.Y6(),I=a?a.rect.X():0;
if(I!=0){q.PD.push({um:"Raster Mask",$D:[I,0]})}var a=V.add.vmsk,I=a&&a.Wr?a.Wr.rect.X():0;if(I!=0){q.PD.push({um:"Vector Mask",$D:[I,0]})}m(q);
return q}function m(V){V.$D=[0,0];for(var D=0;D<V.PD.length;D++){V.$D[0]+=V.PD[D].$D[0];V.$D[1]+=V.PD[D].$D[1]}}return w}();
function cz(){ij.call(this);this.T=0;this.z2=null;this.j=s.R("div","toolconf");this.Yc=null;this.qz=null;
this.body=new s.R("div","body")}cz.prototype=new ij;cz.prototype.a2s=function(Z,S){this.T=Z;this.z2=S;
if(G.L1[Z]){var b=this.Yc=new bn(Z);this.j.appendChild(b.j);b.parent=this}else{this.qz=s.R("div");this.j.appendChild(this.qz)}this.j.appendChild(this.body);
this.B()};cz.prototype.TR=function(Z,S){};cz.prototype.sp=function(Z){};cz.prototype.na=function(Z,S){if(S==bp._O||S==bp.dn)if(this.Yc)this.Yc.VU(Z.fq)};
cz.prototype._4=function(Z){};cz.prototype.B=function(){if(this.Yc)this.Yc.B();else this.qz.innerHTML=s.ip(this.z2,null,"toolicon");
this.Mz()};cz.prototype.Mz=function(){};function gW(Z){cz.call(this);if(Z==null)return;this.W3=null;
this.x1={};for(var D=0;D<Z.length;D++){var S=Z[D],b=null;if(S=="brush"){b=new iH}if(S=="bmode"){b=new gl([12,19,0],is.dd,!1,is.JL)}if(S=="bmode0"){b=new gl([12,19,0],is.dd.slice(23),!1)}if(S=="emode"){b=new gl([12,36],[[9,3],[10,38]])}if(S=="opacity"){b=new c2([12,0],0,100,"%");
b.F(100)}if(S=="flow"){b=new c2([12,63],0,100,"%");b.F(100)}if(S=="smth"){b=new c2([19,3,0],0,100,"%");
b.F(0)}if(S=="samp"){b=new gl("Sampling",["Brush Center","Start of Stroke","Background Color"])}if(S=="wconf"){b=new iV;
b.F([40,!0,!0])}if(S=="strn"){b=new c2([12,64],1,100,"%");b.F(50)}if(S=="smode"){b=new gl([12,36],[[19,7,0],[19,7,1]]);
b.F(1)}if(S=="pdetail"){b=new ec([12,65]);b.AN()}if(S=="rng"){b=new gl([12,12],[[19,6,0],[19,6,1],[19,6,2]]);
b.F(1)}if(S=="expo"){b=new c2([12,5],0,100,"%");b.F(50)}if(S=="algnd"){b=new ec([12,75]);b.F(!1)}if(S=="sfrom"){b=new gl([12,70],[[17,1],[17,3],[17,0]])}if(S=="alt"){b=new eW(null,["Alt"],!0,["Select Source"])}if(S=="qsmode"){b=new gT([12,36],["<img src=\""+PIMG["set/front"]+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.zoomIn+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.zoomOut+"\" class=\"autoscale gsicon\" />"],[[5,3],[18,1],[18,2]])}if(S=="redge"){b=new fX([7,11],!1,null,!0)}if(S=="setop"){b=new gK}if(S=="patch"){b=new gT(null,[[12,70],[12,71]])}if(S=="prsr"){b=new eW(null,["<img src=\""+PIMG.prsO+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.prsS+"\" class=\"autoscale gsicon\" />"],!0,[[15,9,0],[15,9,1]]);
b.F([!1,!0])}b.parent=this;this.body.appendChild(b.j);this.x1[S]=b;if(S=="brush")b.i(s.E.L,this.kZ,this);
else if(S=="redge")b.i("click",this.SB,this);else b.i(s.E.L,this.BD,this)}}gW.prototype=new cz;gW.prototype.TR=function(Z,S){Z=Z[1];
var b=this.x1;if(Z.Md)b.bmode.F(is.JO.indexOf(Z.Md.v.BlnM));if(Z.Opct)b.opacity.F(Z.Opct.v);if(Z.flow)b.flow.F(Z.flow.v);
if(Z.Brsh)b.brush.F(Z,S.Xg.qr,S.Xg.kT);if(Z.FrgC){var Y=T.W.CD(Z.FrgC.v),P=new d(s.E.P,!0);P.data={e:s.U.h4,Sz:bp.tN,Ox:0,G:Y.h<<16|Y.l<<8|Y.O};
this.m(P)}this.kZ();this.BD()};gW.prototype.sp=function(){if(G.L1[this.T]==null)return null;var Z=this.x1,S=JSON.parse(JSON.stringify(Z.brush.u()));
S.classID=G.L1[this.T][1][0];if(Z.bmode)S.Md={t:"enum",v:{BlnM:is.JO[Z.bmode.u()]}};if(Z.opacity)S.Opct={t:"long",v:Z.opacity.u()};
if(Z.flow)S.flow={t:"long",v:Z.flow.u()};var b=this.W3.ui;b={h:b>>>16,l:b>>>8&255,O:b&255};S.FrgC={t:"Objc",v:T.W.RQ(b)};
return["Brush Preset "+S.Brsh.v.Dmtr.v.val,S]};gW.prototype.SB=function(){var Z=new d(s.E.P,!0);Z.data={e:s.U.Fy,g9:"redge"};
this.m(Z)};gW.prototype.Mz=function(){for(var Z in this.x1)this.x1[Z].B()};gW.prototype._4=function(Z){if(Z.a6s=="showBrushOpts"){this.x1.brush.aU(Z.DA.x,Z.DA.y)}for(var S in Z.iF){var b=Z.iF[S];
if(S!="qsmode")b*=100;if(this.x1[S])this.x1[S].F(b)}};gW.prototype.na=function(Z,S){cz.prototype.na.call(this,Z,S);
this.W3=Z;var b=this.x1.brush;if(b==null)return;if(S==bp._O||S==bp.sb)b.VU(Z.Xg);if(S==bp.EE){b.F(Z.Xg.ut,Z.Xg.qr,Z.Xg.kT)}};
gW.prototype.kZ=function(){var Z=new d(s.E.P,!0);Z.data={e:s.U.h4,Sz:bp.EE,Un:this.x1.brush.u()};this.m(Z)};
gW.prototype.BD=function(){var Z=new d(s.E.P,!0);Z.data={e:s.U.I9,T:this.T};for(var S in this.x1){if(S=="brush"||S=="redge")continue;
var b=this.x1[S].u();if(["opacity","flow","smth","strn","expo"].indexOf(S)!=-1)Z.data[S]=b/100;else if(S=="bmode")Z.data.bmode=is.KP[b];
else if(S=="bmode0")Z.data.bmode=is.KP[23+b];else Z.data[S]=b}this.m(Z)};function al(Z){cz.call(this);
if(Z)return;this.data={e:s.U.I9,e5:"front",Mt:0,qC:[16,!0,!0],xL:{QX:0,x:1,y:1}};this.ST=new gK;this.body.appendChild(this.ST.j);
this.ST.i(s.E.L,this.WX,this);this.Pi=new c2([7,6],0,100," px");this.Pi.parent=this;this.Pi.F(0);this.body.appendChild(this.Pi.j);
this.Pi.i(s.E.L,this.WX,this);this.DF=new fX([7,11],!1,null,!0);this.body.appendChild(this.DF.j);this.DF.i("click",this.SB,this)}al.prototype=new cz;
al.prototype._4=function(Z){if(Z.e5!=null)this.ST.F(Z.e5);else if(Z.qT){var S=this.data;S.e5=Z.qT.e5;
this.ST.F(S.e5);S.Mt=Z.qT.Mt;this.Pi.F(S.Mt);S.qC=Z.qT.qC;if(this.sT)this.sT.F(S.qC)}else{var b=al.f0;
if(b==null){var Y=bU.ajc(!0);b=al.f0=new a5(Y.items,Y.kP)}b.B();b.parent=this;b.update(Z.o2,Z.Oz);var P=new d(s.E.P,!0);
P.data={e:s.U.Gc,Bq:b,x:Z.tl.w$+2,y:Z.tl.rE+1};this.m(P)}};al.prototype.Mz=function(){this.Pi.B();this.ST.B();
this.DF.B()};al.prototype.SB=function(){var Z=new d(s.E.P,!0);Z.data={e:s.U.Fy,g9:"redge"};this.m(Z)};
al.prototype.WX=function(){var Z=new d(s.E.P,!0);this.data.T=this.T;this.data.e5=this.ST.u();this.data.Mt=this.Pi.u();
Z.data=this.data;this.m(Z)};function dO(){gW.call(this,["brush","strn"])}dO.prototype=new gW;function b$(){gW.call(this,"brush bmode opacity flow smth prsr".split(" "))}b$.prototype=new gW;
function hv(){gW.call(this,["brush","bmode0","samp","wconf"])}hv.prototype=new gW;function aX(){gW.call(this,["brush"])}aX.prototype=new gW;
function f2(){gW.call(this,["brush","bmode","opacity","smth","prsr"])}f2.prototype=new gW;function da(){gW.call(this,["brush","rng","expo"])}da.prototype=new gW;
function au(){gW.call(this,"brush bmode opacity algnd sfrom alt".split(" "))}au.prototype=new gW;function hE(Z){cz.call(this);
if(Z==null)return;var S=s.R("span","fitem");this.body.appendChild(S);var b=[[17,0],[17,1],[11,12,0],[17,2]];
this.Bd=[];for(var D=0;D<b.length;D++){var Y=new fX(b[D],!1,null,!0);this.Bd.push(Y);Y.i("click",this.ajT,this);
if(!Z||D==1)S.appendChild(Y.j)}this.xL=new i6;this.xL.i(s.E.L,this.aR,this);if(!Z)this.body.appendChild(this.xL.j);
this.Ia=new ec("Delete Cropped Pixels");this.Ia.i(s.E.L,this.aR,this);if(!Z)this.body.appendChild(this.Ia.j);
this.xa=new i9;this.xa.i("click",this.K_,this)}hE.prototype=new cz;hE.prototype.Mz=function(){this.xa.B();
for(var D=0;D<this.Bd.length;D++)this.Bd[D].B();this.xL.B();this.Ia.B()};hE.prototype._4=function(Z){var S=this.xa.j;
if(Z.K$)this.body.appendChild(S);else if(this.body.contains(S))this.body.removeChild(S);if(Z.xL)this.xL.F(Z.xL)};
hE.prototype.K_=function(Z){var S={e:s.U.I9,T:this.T,Pp:this.xa.u()?"commit":"cancel"},b=new d(s.E.P,!0);
b.data=S;this.m(b)};hE.prototype.ajT=function(Z){Z.target.j.blur();var S={e:s.U.I9,T:this.T,Pp:"cropby",agH:this.Bd.indexOf(Z.target)},b=new d(s.E.P,!0);
b.data=S;this.m(b)};hE.prototype.aR=function(Z){var S={e:s.U.I9,T:this.T,Pp:"config",d8:{kb:this.xL.u()}};
if(Z.target==this.Ia)S.d8.l_=this.Ia.u();var b=new d(s.E.P,!0);b.data=S;this.m(b)};function f$(){hE.call(this,!1)}f$.prototype=new hE;
function bx(){hE.call(this,!0)}bx.prototype=new hE;function cS(){gW.call(this,["brush","rng","expo"])}cS.prototype=new gW;
function hm(){gW.call(this,"brush emode opacity flow smth prsr".split(" "))}hm.prototype=new gW;function iY(){gW.call(this,["brush","samp","wconf"])}iY.prototype=new gW;
function ha(){al.call(this);this.xL=new i6;this.xL.i(s.E.L,this.Yi,this);this.body.appendChild(this.xL.j)}ha.prototype=new al(!0);
ha.prototype.Yi=function(Z){this.data.xL=this.xL.u();this.WX()};ha.prototype.Mz=function(){al.prototype.Mz.call(this);
this.xL.B()};function cK(){cz.call(this);this.Ax=new gl([12,20],["1x1","3x3","5x5","11x11","31x31"]);
this.Ax.i(s.E.L,this.BD,this);this.body.appendChild(this.Ax.j)}cK.prototype=new cz;cK.prototype.BD=function(Z){var S=new d(s.E.P,!0);
S.data={e:s.U.I9,T:this.T,Uo:[1,3,5,11,31][this.Ax.u()]};this.m(S)};cK.prototype.Mz=function(){this.Ax.B()};
function gm(){cz.call(this);this.Ef=new ax(!1);this.Ef.parent=this;this.Ef.i(s.E.L,this.ot,this);this.body.appendChild(this.Ef.j);
this.Ef.F(JSON.parse(a4.c5.Wh).v);this.qx=new gl(null,a4.W.names.slice(0,5));this.qx.i(s.E.L,this.ot,this);
this.body.appendChild(this.qx.j);this.S8=new gl([12,19,0],is.dd,null,is.JL);this.S8.i(s.E.L,this.ot,this);
this.body.appendChild(this.S8.j);this.Rp=new c2([12,0],0,100,"%");this.Rp.parent=this;this.Rp.i(s.E.L,this.ot,this);
this.body.appendChild(this.Rp.j);this.Rp.F(100);this.K8=new ec([12,23,0]);this.K8.i(s.E.L,this.ot,this);
this.body.appendChild(this.K8.j);this.BT=new ec("Dither");this.BT.i(s.E.L,this.ot,this);this.body.appendChild(this.BT.j)}gm.prototype=new cz;
gm.prototype.Mz=function(){this.qx.B();this.S8.B();this.Rp.B();this.K8.B();this.BT.B()};gm.prototype.na=function(Z,S){cz.prototype.na.call(this,Z,S);
var b=S==bp.tN;this.Ef.cs(Z.ui,Z.VY);if(b||S==bp.sc||S==bp._O)this.Ef.VU(Z.Yh)};gm.prototype.ot=function(){var Z=new d(s.E.P,!0);
Z.data={e:s.U.I9,T:this.T};Z.data.Sz={W:this.Ef.u(),WF:a4.W.types[this.qx.u()],No:this.K8.rJ(),acq:this.BT.rJ(),aa6:is.KP[this.S8.u()],y6:this.Rp.u()/100};
this.m(Z)};function hJ(){cz.call(this)}hJ.prototype=new cz;function fL(){cz.call(this);var Z=s.R("span","fitem");
this.body.appendChild(Z);this.r6=[new c2([12,15],0,0,"\xB0"),new fX("Reset",null,null,!0)];for(var D=0;
D<this.r6.length;D++){var S=this.r6[D];S.parent=this;Z.appendChild(S.j);S.i(D==1?"click":s.E.L,this.yN,this)}}fL.prototype=new cz;
fL.prototype.Mz=function(){for(var D=0;D<this.r6.length;D++)this.r6[D].B()};fL.prototype._4=function(Z){this.r6[0].F(Z.oc*180/Math.PI)};
fL.prototype.yN=function(Z){var S=this.r6.indexOf(Z.target),b=new d(s.E.P,!0);b.data={e:s.U.I9,T:this.T,oc:S==1?0:Z.target.u()*Math.PI/180};
this.m(b)};function gc(){gW.call(this,["brush","algnd","sfrom","alt"])}gc.prototype=new gW;function ht(){cz.call(this);
this.WN=new bh;this.WN.parent=this;this.body.appendChild(this.WN.ZZ.j);this.body.appendChild(this.WN.KF.j);
this.body.appendChild(this.WN.zo.j);var Z=s.R("span","fitem");this.body.appendChild(Z);Z.appendChild(this.WN.$V.j);
Z.appendChild(this.WN.CH.j);Z.appendChild(this.WN.Wp.j);this.dY=new gl("Aa",[[22,5,0],"Sharp","Crisp","Strong","Smooth"]);
this.dY.i(s.E.L,this.K_,this);this.body.appendChild(this.dY.j);this.ZH=new fX([11,9],!1,null,!0);this.ZH.i("click",this.akh,this);
this.body.appendChild(this.ZH.j);this.xa=new i9;this.xa.i("click",this.K_,this)}ht.prototype=new cz;
ht.prototype.Mz=function(){this.xa.B();this.WN.B();this.ZH.B()};ht.prototype.akh=function(Z){var S={e:s.U.I9,T:this.T,Pp:"showwarp"},b=new d(s.E.P,!0);
b.data=S;this.m(b)};ht.prototype._4=function(Z){if(Z.Pp=="showactive")this.body.appendChild(this.xa.j);
if(Z.Pp=="hideactive")this.body.removeChild(this.xa.j);if(Z.Pp=="changeAA")this.dY.F(Z.u$)};ht.prototype.na=function(Z,S){cz.prototype.na.call(this,Z,S);
if(S!=bp._O&&S!=bp.BK&&S!=bp.VE&&S!=bp.dT)return;this.WN.F(Z.pA,Z.S9,Z.su)};ht.prototype.K_=function(Z){var S={e:s.U.I9,T:this.T,Pp:this.xa.u()?"commit":"cancel"};
if(Z.target==this.dY){S.Pp="changeAA";S.u$=this.dY.u()}var b=new d(s.E.P,!0);b.data=S;this.m(b)};function iR(){al.call(this)}iR.prototype=new al(!0);
function at(){cz.call(this);var Z=[],b="<svg class=\"autoscale gsicon\" viewBox=\"0 0 14 18\" width=\"14\" height=\"18\" fill=\"black\"><path d=\"M14,6 L10,6 L10,0 L4,0 L4,6 L0,6 L7,13 L14,6 L14,6 Z M0,14 L0,16 L14,16 L14,14 Z\" /></svg>";
this.Q2=new ec([12,85]);this.Q2.i(s.E.L,this.BD,this);Z.push(this.Q2.j);this.H9=new ec([20,1]);this.H9.i(s.E.L,this.BD,this);
Z.push(this.H9.j);this.oO=new ec([12,83]);this.oO.i(s.E.L,this.BD,this);Z.push(this.oO.j);var S=s.R("span","fitem");
Z.push(S);this.ane=new gl("Scale for exported files",["1x","2x","3x","4x"],!0);S.appendChild(this.ane.j);
this.AF=new fX(b+" PNG",!1,"Save selected layers as PNG",!0);S.appendChild(this.AF.j);this.AF.i("click",this.qE,this);
this.a8u=new fX(b+" SVG",!1,"Save selected layers as SVG",!0);S.appendChild(this.a8u.j);this.a8u.i("click",this.qE,this);
var Y=s.R("span","fitem");Z.push(Y);var P=s.R("span","fitem");Z.push(P);this.tT=[];for(var D=0;D<8;D++){var w=D==3||D==7?[20,4,6]:[20,4,D<3?D:D-1],f=new fX("Hi",!1,w);
(D<4?Y:P).appendChild(f.j);f.i("click",this.qE,this);this.tT.push(f)}for(var D=0;D<Z.length;D++)this.body.appendChild(Z[D]);
this.abD=Z}at.prototype=new cz;at.prototype._4=function(Z){var S=Z.qT,b=Z.aje;this.Q2.F(S.ax);this.H9.F(S.IE);
this.oO.F(S._m);if(b){s.Z9(this.body);for(var D=0;D<b.length;D++)if(b[D]==1&&this.abD[D])this.body.appendChild(this.abD[D])}};
at.prototype.qE=function(Z){var S=this.tT.indexOf(Z.target),b;if(S==-1){b=new d(s.E.P,!0);b.data={e:s.U.I9,T:this.T,Ox:Z.target==this.AF?"getPNG":"getSVG",Wo:this.ane.u()+1}}else{b=new d(s.E.s,!0);
b.T=G.hK;b.data={e:"algn",G:S}}this.m(b)};at.prototype.BD=function(Z){var S=new d(s.E.P,!0);S.data={e:s.U.I9,T:this.T,Ox:"prms",ax:this.Q2.rJ(),IE:this.H9.rJ(),_m:this.oO.rJ()};
this.m(S)};at.prototype.Mz=function(){this.Q2.B();this.H9.B();this.oO.B();var Z="h0 h1 h2 hG v0 v1 v2 vG".split(" ");
for(var D=0;D<8;D++){this.tT[D].bl(s.ip("align/"+Z[D],null,"autoscale"))}};function fk(){al.call(this);
var Z=this.sT=new iV;Z.parent=this;Z.i(s.E.L,this.agq,this);this.body.appendChild(Z.j)}fk.prototype=new al(!0);
fk.prototype.agq=function(Z){this.data.qC=this.sT.u();this.WX()};fk.prototype.Mz=function(){al.prototype.Mz.call(this);
this.sT.B()};function eZ(){gW.call(this,["setop","patch"])}eZ.prototype=new gW;function ah(){gW.call(this,["setop"])}ah.prototype=new gW;
function e$(){gW.call(this,["bmode","opacity","wconf"])}e$.prototype=new gW;function e8(){al.call(this)}e8.prototype=new al(!0);
function ee(){al.call(this)}ee.prototype=new al(!0);function fI(){al.call(this);this.xL=new i6;this.xL.i(s.E.L,this.Yi,this);
this.body.appendChild(this.xL.j)}fI.prototype=new al(!0);fI.prototype.Yi=function(Z){this.data.xL=this.xL.u();
this.WX()};fI.prototype.Mz=function(){al.prototype.Mz.call(this);this.xL.B()};function g1(){cz.call(this);
this.W3=null;this.VC=null;this.pv=[new cY("X",null,3),new cY("Y",null,3),new cY("W",null,3),new cY("H",null,3),new cY([12,15],null,4),new cY([12,80,0],null,4),new fX([15,7,6],!1,null,!0)];
for(var D=0;D<this.pv.length;D++){var Z=this.pv[D];this.body.appendChild(Z.j)}this.pv[6].i("click",this.ahR,this);
this.q7=0}g1.prototype=new cz;g1.prototype.ahR=function(Z){if(this.q7==0){return}var S=new d(s.E.s,!0);
S.T=G.ih;S.data={e:"rot",ep:[2,5],G:-this.q7};this.m(S)};g1.prototype._4=function(Z){if(Z==null)return;
this.VC=Z;var S=Z.ake,b=Z.SP,Y=b.x-S.x,P=b.y-S.y,w=this.pv;this.q7=-Math.atan2(P,Y);w[0].F(S.x);w[1].F(S.y);
w[2].F(Y);w[3].F(P);w[4].F((this.q7*180/Math.PI).toFixed(2));var f=Math.sqrt(Y*Y+P*P);f=T.dp.Rv(f,Z.GY,this.W3,Z.anO,!1);
w[5].F(parseFloat(f).toFixed(2))};g1.prototype.na=function(Z,S){this.W3=Z;this._4(this.VC)};g1.prototype.Mz=function(){var Z=this.pv;
for(var D=0;D<Z.length;D++)Z[D].B();s.wh(Z[2],Z[3])};function gF(){gW.call(this,["brush","strn","pdetail"])}gF.prototype=new gW;
function gB(){gW.call(this,["brush","sfrom"]);this.aiE=[];var Z=[[7,12]];for(var D=0;D<Z.length;D++){var S=new fX(Z[D],!1,null,!0);
this.aiE.push(S);S.parent=this;this.body.appendChild(S.j);S.i("click",this.aiI,this)}}gB.prototype=new gW;
gB.prototype.aiI=function(Z){var S=this.aiE.indexOf(Z.currentTarget),b=new d(s.E.TH,!0);b.data=G.px.uB("contentAware");
this.m(b)};function hZ(){gW.call(this,["brush","strn"])}hZ.prototype=new gW;function hY(){gW.call(this,["brush","flow","smode"])}hY.prototype=new gW;
function ip(){cz.call(this);this.oN=!1;var Z=s.R("span","fitem");this.body.appendChild(Z);this.Jo=new gT(null,["<img src=\""+PIMG.zoomIn+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.zoomOut+"\" class=\"autoscale gsicon\" />"]);
Z.appendChild(this.Jo.j);this.Jo.i(s.E.L,this.BD,this);this.$w=new fX([20,2]);this.body.appendChild(this.$w.j);
this.$w.i("click",this.QM,this);this.EY=new fX([20,3]);this.body.appendChild(this.EY.j);this.EY.i("click",this.QM,this)}ip.prototype=new cz;
ip.prototype.Mz=function(){this.$w.B();this.EY.B()};ip.prototype.BD=function(){var Z={e:s.U.I9,T:this.T,tK:this.Jo.u()==0},S=new d(s.E.P,!0);
S.data=Z;this.m(S)};ip.prototype._4=function(Z){if(this.oN!=Z.oN)this.Jo.F(1-this.Jo.u());this.oN=Z.oN};
ip.prototype.QM=function(Z){var S=new d(s.E.s,!0);S.T=G.$j;S.data={e:"adapt",G:Z.target==this.$w?"pixel":"fitscr"};
this.m(S)};function aF(Z,S){cz.call(this);if(Z==null)return;this.x1={};var b=[[12,76,0],[12,76,1]];if(S==null)b.push([12,76,2]);
for(var D=0;D<Z.length;D++){var Y=Z[D],P=null;if(Y=="tmode"){P=new gl(null,b);P.F(1)}if(Y=="make"){P=new fX("Make Selection",null,null,!0);
P.J7()}if(Y=="binop"){P=new gl(null,[[18,1],[18,2],[18,3],[18,4]]);P.J7()}if(Y=="pshape")P=new gl(null,[[12,93,0],[12,93,1],"Arrow",[12,93,2]]);
if(Y=="shape")P=new h7([12,76,1]);if(Y=="crad"){P=new c2([12,94,0],0,50,"px");P.F(0)}if(Y=="cstr"){P=new i6}if(Y=="irad"){P=new c2([12,94,1],0,100,"%");
P.F(40)}if(Y=="length"){P=new c2([12,80,0],4,40);P.F(4)}if(Y=="sides"){P=new c2([12,78],3,30);P.F(5)}if(Y=="width"){P=new c2([12,41],1,100,"px");
P.F(5)}if(Y=="tsiz"){P=new c2("Tip Size",100,500,"%");P.F(300)}if(Y=="tolr"){P=new c2([12,24],0,100);
P.F(5)}if(Y=="fstyle"){P=new d2([12,26])}if(Y=="sstyle"){P=new ce}if(Y=="psnap"){P=new ec([8,10])}if(Y=="crnr"){P=new fX("\u2312",!1,[12,94,0],!0)}P.parent=this;
this.body.appendChild(P.j);this.x1[Y]=P;P.i(Y=="crnr"||Y=="make"?"click":s.E.L,this.BD,this)}}aF.prototype=new cz;
aF.prototype._4=function(Z){if(Z.Ox=="vals"){for(var S in Z.akA)this.x1[S].F(Z.akA[S]);this.Kl();return}var b=aF.f0;
if(b==null)b=aF.f0=new a5([{name:"Make Selection"}],[{g:s.E.P,k:{e:s.U.Fy,g9:"makesel"}}]);b.parent=this;
b.update(Z.o2,Z.Oz);var Y=new d(s.E.P,!0);Y.data={e:s.U.Gc,Bq:b,x:Z.tl.w$+2,y:Z.tl.rE+1};this.m(Y)};
aF.prototype.O6=function(D){return null};aF.prototype.Kl=function(){if(this.x1.pshape==null)return;var Z=this.O6(this.x1.pshape.u());
if(Z==null)return;s.Z9(this.body);for(var D=0;D<Z.length;D++){var S=Z[D];this.body.appendChild(this.x1[S].j)}};
aF.prototype.Mz=function(){for(var Z in this.x1){this.x1[Z].B()}};aF.prototype.BD=function(Z){if(Z.target==this.x1.crnr){var S=new d(s.E.s,!0);
S.T=G.aG;S.data={e:"crnr"};this.m(S);return}if(Z.target==this.x1.make){var S=new d(s.E.P,!0);S.data={e:s.U.Fy,g9:"makesel"};
this.m(S);return}var S=new d(s.E.P,!0);if(Z.target==this.x1.fstyle){S.data={e:s.U.h4,Sz:bp.kY,G:this.x1.fstyle.u()};
this.m(S);return}if(Z.target==this.x1.sstyle){S.data={e:s.U.h4,Sz:bp.EN,G:this.x1.sstyle.u()};this.m(S);
return}if(this.x1.tmode&&this.x1.binop){var b=this.x1.tmode.u()==0,Y=this.x1.binop,P=this.x1.make;if(Y)Y.v3(b);
if(P)P.v3(b)}S.data={e:s.U.I9,T:this.T};for(var w in this.x1)if(w!="sstyle")S.data[w]=this.x1[w].u();
this.m(S);if(Z.target==this.x1.pshape)this.Kl()};aF.prototype.na=function(Z,S){cz.prototype.na.call(this,Z,S);
var b=this.x1.fstyle,Y=this.x1.sstyle;if(b)b.na(Z,S);if(Y)Y.na(Z,S);if(S==bp._O||S==bp.bT)if(Z.Tp.length!=0&&this.x1.shape){this.x1.shape.VU(Z.Tp)}if(S==bp._O||S==bp.kY)if(b)b.F(null,Z.er,Z.a4I);
if(S==bp._O||S==bp.EN)if(Y)Y.F(null,Z.ET,Z.aau)};function it(){aF.call(this,["tmode","make","fstyle","sstyle","binop"],!0)}it.prototype=new aF;
function ih(){aF.call(this,["tmode","fstyle","sstyle","binop","tolr"])}ih.prototype=new aF;function cG(){aF.call(this,["fstyle","sstyle"]);
this.ajk=null;this.a5D=null;this.acx=null;this.xi=new gl("Path",[[18,1],[18,2],[18,3],[18,4],[18,5]],!1,[4]);
this.dE=new fX("\u25BC");this.dE.AN();this.CZ=new fX("\u25B2");this.CZ.AN();this.md=[this.xi,this.dE,this.CZ];
for(var D=0;D<this.md.length;D++){var Z=this.md[D];this.body.appendChild(Z.j);Z.parent=this;Z.i(D==0?s.E.L:"click",this.oD,this)}}cG.prototype=new aF;
cG.prototype._4=function(Z){if(Z.Pp=="main"){var S=this.md,b=Z.$h;if(b&&b.C.length==1){this.a5D=b.clone();
this.acx=JSON.stringify(Z.AZ);var Y=b.C[0],P=T.Y.eu(b.b);this.xi.zA();if(Y>0)this.dE.zA();else this.dE.J7();
if(Y<P-1)this.CZ.zA();else this.CZ.J7();var w=T.Y.dq(b.b,Y),f=b.b[w];this.xi.bl("Path "+(Y+1));this.xi.F([3,0,1,2][f.qU])}else{for(var D=0;
D<S.length;D++)S[D].J7()}}else aF.prototype._4.call(this,Z)};cG.prototype.Mz=function(){aF.prototype.Mz.call(this);
this.xi.B()};cG.prototype.oD=function(Z){if(Z.target==this.xi||Z.target==this.dE||Z.target==this.CZ){var S={},b=this.a5D,Y=b.b,P=JSON.parse(this.acx),w=b.C[0],f=T.Y.dq(Y,w),h=Y[f];
if(Z.target==this.xi){var Q=this.xi.u();if(Q<4)h.qU=[1,2,3,0][Q];else{if(T.Y.eu(Y)<=1)return;b.b=T.Y.zt(Y);
b.C=b.b.length==2?[]:[0];b.cY=[];P=[T.AZ.Nv()]}}else{var e=Z.target==this.dE?-1:1,l=Math.min(w,w+e),O=Math.max(w,w+e),m=T.Y.dq(Y,l),V=T.Y.dq(Y,O);
if(m==-1||V==-1)return;var q=V+T.Y.HV(Y,O),K=P[l];P[l]=P[O];P[O]=K;var z=Y.slice(0,m),t=Y.slice(m,V),H=Y.slice(V,q),i=Y.slice(q);
b.b=z.concat(H.concat(t.concat(i)));b.C[0]+=e}S.$h=b;S.AZ=P;var y=new d(s.E.P,!0);y.data={e:s.U.I9,T:this.T,ms:S};
this.m(y)}};function h4(){aF.call(this,["fstyle","sstyle","crnr","psnap"])}h4.prototype=new aF;function h$(){aF.call(this,"tmode fstyle sstyle binop cstr crad".split(" "))}h$.prototype=new aF;
function bC(){aF.call(this,["tmode","fstyle","sstyle","binop","cstr"])}bC.prototype=new aF;function eR(){aF.call(this,"tmode fstyle sstyle binop pshape sides irad crad width tsiz length".split(" "));
this.a7G=[["sides","crad"],["sides","irad","crad"],["width","tsiz"],["length"]];this.Kl()}eR.prototype=new aF;
eR.prototype.O6=function(D){return["tmode","fstyle","sstyle","binop","pshape"].concat(this.a7G[D])};
function gV(){aF.call(this,["tmode","fstyle","sstyle","binop","width"])}gV.prototype=new aF;function hy(){aF.call(this,"tmode fstyle sstyle binop cstr shape".split(" "))}hy.prototype=new aF;
function dd(){al.call(this)}dd.prototype=new al(!0);function hS(){gW.call(this,["brush","qsmode","redge"])}hS.prototype=new gW;
function b3(){cz.call(this)}b3.prototype=new cz;function iF(){cz.call(this);this.dE=new fX("\u25BC");
this.dE.AN();this.CZ=new fX("\u25B2");this.CZ.AN();var Z=[this.dE,this.CZ];for(var D=0;D<2;D++){var S=Z[D];
this.body.appendChild(S.j);S.i("click",this.oD,this)}}iF.prototype=new cz;iF.prototype.oD=function(Z){var S=new d(s.E.P,!0);
S.data={e:s.U.I9,T:this.T,Ox:"reorder",dir:Z.target==this.dE?-1:1};this.m(S)};function ds(Z,S){cz.call(this);
if(window.Typr==null||Z)return;this.abB=S;this.ya=null;this.a2n=s.R("span","");this.a1F=s.R("span","");
var b=1;this.Qp={Kn:new d4(null,24),W5:new c2("X",0,0,"px",0,!1,!0,4),pU:new c2("Y",0,0,"px",0,!1,!0,4),O0:new c2("W",0,0,["%","px"],2,!1,!0,5),LT:new fX("\u2261",null,[12,51],null),Dd:new c2("H",0,0,["%","px"],2,!1,!0,5),afs:new c2("\u2221",0,0,"\xB0",b,!1,!0),am8:new c2("\u25B1 H",-85,85,"\xB0",b,!1,!0),acZ:new c2("\u25B1 V",-85,85,"\xB0",b,!1,!0),V9:new gl(null,[[12,14,2],[12,14,3],"Bicubic Sharper"])};
this.Qp.V9.F(1);for(var Y in this.Qp){var P=this.Qp[Y];if(S&&(P==this.Qp.afs||P==this.Qp.am8||P==this.Qp.acZ||P==this.Qp.V9)){}else this.a2n.appendChild(P.j);
var w=P==this.Qp.LT?"click":s.E.L;P.i(w,this.ant,this)}this.sT=new iU(!0,!0,!0);this.sT.i(s.E.L,this.amz,this);
this.sT.parent=this;var f=this.a1F,h=this.sT;f.appendChild(h.hI.j);f.appendChild(h.g$.j);f.appendChild(h.vs.j);
f.appendChild(h.Wc.j);f.appendChild(h.cL.j);this.ZH=new fX([11,9]);this.ZH.i("click",this.a4m,this);
this.xa=new i9;this.xa.i("click",this.K_,this)}ds.prototype=new cz;ds.prototype._4=function(Z){if(Z.tl){var S=ds,b=this.f0;
if(b==null)b=this.f0=new a5(S.EG(),S.Q1(this.T));b.B();b.parent=this;b.update(Z.o2,Z.Oz);var Y=new d(s.E.P,!0);
Y.data={e:s.U.Gc,Bq:b,x:Z.tl.w$+2,y:Z.tl.rE+1};this.m(Y);return}s.Z9(this.body);this.ya=Z;if(Z.Qp){var P=Z.Qp._,w=Z.Qp.Ig.clone(),f=Math.atan2(-w.O,w.w),h=new fR;
h.rotate(-f);w.concat(h);var Q=this.Qp;Q.Kn.F(Z.Qp.B7);Q.W5.F(Z.Qp.Zw.x);Q.pU.F(Z.Qp.Zw.y);Q.O0.F(w.w*(Q.O0.IB()=="%"?100:P.c));
Q.Dd.F(w.KU*(Q.Dd.IB()=="%"?100:P.v));Q.afs.F(-f*180/Math.PI);Q.am8.F(0*180/Math.PI);Q.acZ.F(Math.atan(w.tE)*180/Math.PI);
this.body.appendChild(this.a2n);this.ZH.KY()}if(Z.vZ){this.sT.F(Z.vZ);this.body.appendChild(this.a1F);
this.ZH.AN()}this.body.appendChild(this.xa.j);if(Z.adr&&!this.abB)this.body.appendChild(this.ZH.j)};
ds.prototype.ant=function(Z){var S=this.Qp,b=this.ya.Qp._;if(Z.target==S.LT)S.LT.F(!S.LT.u());if(S.LT.rJ()){var Y=S.Dd,P=S.O0,w=b.v,f=b.c;
if(Z.target==S.O0){Y=S.O0;P=S.Dd;w=b.c;f=b.v}var h=Y.u()/(Y.IB()=="%"?100:w);h*=P.IB()=="%"?100:f;P.F(h)}var Q=[];
for(var e in S)if(S[e]!=S.LT&&S[e]!=S.Kn){var h=S[e].u();if((S[e]==S.O0||S[e]==S.Dd)&&h==0){h=.1;S[e].F(h)}if(S[e]==S.O0&&S[e].IB()=="px")h/=b.c/100;
if(S[e]==S.Dd&&S[e].IB()=="px")h/=b.v/100;Q.push(h)}var l=new ar(Q[0],Q[1]);if(Z.target==S.Kn){this.AD({Pp:"ctyp",B7:S.Kn.u()})}else if(Z.target==S.W5||Z.target==S.pU){this.AD({Pp:"cen",Zw:l})}else{var O=this.ya.Qp.Ig.clone(),m=O.clone(),V=Math.atan2(-O.O,O.w);
m.translate(-l.x,-l.y);m.rotate(-V);var q=new fR(m.w,m.O,m.tE,m.KU,0,0);q.oN();m.concat(q);m.concat(new fR(Q[2]/100,Math.tan(Q[5]*Math.PI/180),Math.tan(Q[6]*Math.PI/180),Q[3]/100,0,0));
m.rotate(-Q[4]*Math.PI/180);m.translate(l.x,l.y);this.ya.Qp.Ig=m;this.AD({Pp:"trn",Qp:m,dG:this.Qp.V9.u()})}};
ds.prototype.amz=function(Z){this.AD({Pp:"wrp",vZ:this.sT.u()})};ds.prototype.a4m=function(Z){this.AD({Pp:"switchWarp"})};
ds.prototype.K_=function(Z){this.AD({Pp:this.xa.u()?"commit":"cancel"})};ds.prototype.AD=function(Z){Z.e=s.U.I9;
Z.T=this.T;var S=new d(s.E.P,!0);S.data=Z;this.m(S)};ds.prototype.Mz=function(){var Z=this.Qp;for(var S in Z)Z[S].B();
s.wh(Z.O0,Z.Dd);this.xa.B();this.sT.B();this.ZH.B()};ds.EG=function(){return[{name:[5,9],cX:"Shift+Alt+Ctrl + T",uJ:!0},{name:[12,38]},{name:[2,5]},{name:[24,4]},{name:[2,9]},{name:[11,9],Q:function(Z){if(Z==null||Z.C.length!=1)return{Q:!1};
var S=Z.t[Z.C[0]];return{Q:S.add.TySh==null&&!S.W$()}},uJ:!0},{name:["VAR0 90\xB0 \u21BB",[2,5]]},{name:["VAR0 90\xB0 \u21BA",[2,5]]},{name:["VAR0 180\xB0",[2,5]]},{name:[[2,6],[22,4,2]]},{name:[[2,6],[22,4,3]]}]};
ds.Q1=function(Z){if(Z==null)Z=G.ih;return[{g:s.E.s,T:Z,k:{e:"again"}},{g:s.E.P,k:{e:s.U.cB,T:Z,qT:{OK:3}}},{g:s.E.P,k:{e:s.U.cB,T:Z,qT:{OK:4}}},{g:s.E.P,k:{e:s.U.cB,T:Z,qT:{OK:2}}},{g:s.E.P,k:{e:s.U.cB,T:Z,qT:{OK:1}}},{g:s.E.P,k:{e:s.U.cB,T:Z,qT:{OK:-1}}},{g:s.E.s,T:Z,k:{e:"rot",ep:[2,5],G:-Math.PI/2}},{g:s.E.s,T:Z,k:{e:"rot",ep:[2,5],G:-3*Math.PI/2}},{g:s.E.s,T:Z,k:{e:"rot",ep:[2,5],G:Math.PI}},{g:s.E.s,T:Z,k:{e:"scl",ep:[[2,6],[22,4,2]],G:new ar(-1,1)}},{g:s.E.s,T:Z,k:{e:"scl",ep:[[2,6],[22,4,3]],G:new ar(1,-1)}}]};
function bW(){ds.call(this)}bW.prototype=new ds(!0);function iX(){ds.call(this)}iX.prototype=new ds(!0);
function hl(){ds.call(this,!1,!0)}hl.prototype=new ds(!0);function de(){cz.call(this);var Z=this.Vj=[new gl([12,36],["Rigid",[15,10,0],[24,4]]),new gl([12,74],[[19,8,0],[19,8,1],[19,8,2]]),new c2([7,4],0,100,"px"),new ec("Show Mesh"),new fX("\u25BC",null,null,!0),new fX("\u25B2",null,null,!0)];
for(var D=0;D<Z.length;D++){var S=Z[D];S.parent=this;this.body.appendChild(S.j);S.i(D<4?s.E.L:"click",this.a13,this)}this.xa=new i9;
this.xa.i("click",this.K_,this);this.body.appendChild(this.xa.j)}de.prototype=new cz;de.prototype.Mz=function(){var Z=this.Vj;
for(var D=0;D<4;D++)Z[D].B();this.xa.B()};de.prototype._4=function(Z){var Z=Z.Sz;for(var D=0;D<4;D++)this.Vj[D].F(Z[D])};
de.prototype.a13=function(Z){var S=[];for(var D=0;D<4;D++)S[D]=this.Vj[D].u();var b=this.Vj.indexOf(Z.target);
if(b<4)this.AD({Pp:"prm",Sz:S});else this.AD({Pp:"moveDepth",a0J:b==5})};de.prototype.K_=function(Z){this.AD({Pp:this.xa.u()?"commit":"cancel"})};
de.prototype.AD=function(Z){Z.e=s.U.I9;Z.T=this.T;var S=new d(s.E.P,!0);S.data=Z;this.m(S)};function ic(){ij.call(this);
this.j=s.R("div","cmanager");window.alert=function(Y,P){this.a2J(Y,P);console.log("Alert: "+Y)}.bind(this);
window.onblur=function(Y){var P=this;P.h2()}.bind(this);this.Yu=0;this.XE=0;this.CU=[];this.XH={};this.CK=s.R("div","alertcont");
this.j.appendChild(this.CK);this.a9U=s.R("div","alertcont");this.j.appendChild(this.a9U);this.CT=s.R("div","alertcont");
this.abJ=0;this._Z=-1;this.aff=null;this.RI=null;var Z=this.a9w=s.R("div","alertpanel");Z.setAttribute("style","padding:0.7em 1em 0.1em 1em;");
this.CT.appendChild(Z);var S=this.Lh=s.R("input");S.setAttribute("type","text");S.setAttribute("style","background-color:white; color:black; font-size:1.2em; width:100%; margin:0;");
S.addEventListener("input",this.a8t.bind(this),!1);S.addEventListener("keydown",this.anr.bind(this),!1);
Z.appendChild(S);var b=this.a1S=s.R("div","contextpanel scrollable");b.setAttribute("style","text-align:left; box-shadow:none; margin:0.5em 0 1em 0;color:#888;");
b.addEventListener("click",this.aan.bind(this),!1);Z.appendChild(b);s.TL(document.body,this.a5y.bind(this))}ic.prototype=new ij;
ic.prototype.Ey=function(){if(s.mO(this.CT))this.j.removeChild(this.CT)};ic.prototype.aet=function(Z,S){var b=this.aff=[];
for(var D=0;D<bU.data.length;D++){var Y=bU.data[D],P=[aV.get(Y.name)],w=[D];ic.pF(Y.items,P,w,b,Z,S)}var f=c$.Yr;
for(var D=0;D<f.length;D+=3){b.push([["Tools",aV.get(f[D])],[-1,f[D+2]]])}this.j.appendChild(this.CT);
var h=this.Lh;h.focus();h.select();this.T2()};ic.prototype.a8t=function(Z){this._Z=-1;this.T2()};ic.prototype.T2=function(){var Z=this.Lh.value.toLowerCase().trim().replace(/ +/g," "),S=this.aff,b=[],Y=[],P=Z.split(" ");
if(Z!="")for(var D=0;D<S.length;D++){var w=S[D][0],f=[],h=0;for(var Q=0;Q<w.length;Q++)f[Q]=-1;for(var e=0;
e<P.length;e++)for(var Q=0;Q<w.length;Q++){var l=w[Q].toLowerCase().indexOf(P[e]);if(l!=-1){f[Q]=[l,l+P[e].length];
h++;break}}if(h==P.length){b.push(S[D]);Y.push(f)}}var O=[],m=this.a1S;s.Z9(m);for(var D=0;D<b.length;
D++){var V=b[D][0],l=Y[D],q="enab",z="";if(D==this._Z)q+=" active";var K=s.R("div",q);O.push(K);m.appendChild(K);
for(var Q=0;Q<V.length;Q++){var t=l[Q],H=P[Q],i=V[Q];if(t!=-1)i=i.slice(0,t[0])+"<span style=\"color:black\">"+i.slice(t[0],t[1])+"</span>"+i.slice(t[1]);
z+=i;if(Q<V.length-1)z+=" \uFE65 "}K.innerHTML=z}this.RI=[b,O]};ic.prototype.anr=function(Z){var S=U.iQ,b=Z.code;
if(S(b,U.eZ))this.Ey();var Y=S(b,U.ne),P=S(b,U.BM),w=S(b,U.n5);if(Y||P){this._Z=Math.max(0,Math.min(this.RI[0].length-1,this._Z+(Y?-1:1)));
this.T2()}if(w&&this._Z!=-1)this.N0(this._Z)};ic.pF=function(Z,S,b,Y,P,w){for(var D=0;D<Z.length;D++){var f=Z[D],h=S.slice(0),Q=b.slice(0),e=aV.get(f.name);
if(f.Q){var l=f.Q(P,w,D);if(l.nn)e=l.nn;if(l.Q==!1)continue}h.push(e);Q.push(D);if(f.sub)ic.pF(f.sub,h,Q,Y,P,w);
else Y.push([h,Q])}};ic.prototype.aan=function(Z){var S=Z.target;if(S.tagName.toLowerCase()=="span")S=S.parentNode;
var b=this.RI[1].indexOf(S);if(b!=-1)this.N0(b)};ic.prototype.N0=function(Z){var S=this.RI[0][Z][1];
if(S[0]==-1){var b=new d(s.E.P,!0);b.data={e:s.U.cB,T:S[1]};this.m(b)}else{var Y=bU.data[S[0]].kP[S[1]];
for(var D=2;D<S.length;D++)Y=Y.sub[S[D]];var P=new d(Y.g,!0);P.T=Y.T;P.data=Y.k;this.m(P)}this.Ey()};
ic.prototype.Xd=function(Z,S){this.Yu=Z;this.XE=S;this.a1S.style["max-height"]=S-120+"px"};ic.prototype.abY=function(Z){var S=s.R("div","alertpanel");
S.textContent=aV.get(Z);this.CK.appendChild(S);this.XH[JSON.stringify(Z)]=S};ic.prototype.a0B=function(Z){var S=this.XH[JSON.stringify(Z)];
this.CK.removeChild(S);delete this.XH[JSON.stringify(Z)]};ic.prototype.a2J=function(Z,S){var b=this.a9U;
for(var D=0;D<b.children.length;D++)if(b.children[D].textContent==Z)return;var Y=s.R("div","alertpanel tpanel");
Y.textContent=Z;Y.setAttribute("style","opacity:0.5; transform:scale(0.9)\t");b.appendChild(Y);if(S==null)S=1500;
var P=S,w=Math.max(Date.now()+P,this.abJ+P);setTimeout(function(){Y.setAttribute("style","transform:scale(1); opacity:1;")},10);
setTimeout(function(){b.setAttribute("style","margin-top: -3.6em; transform: translateY(3.6em);")},w-Date.now()-30);
setTimeout(function(){b.removeChild(b.firstChild);b.setAttribute("style","transition: transform 0.7s; margin-top: 1em; transform: translateY(0em);")},w-Date.now());
this.abJ=w};ic.prototype.a5y=function(Z){var S=this.CU;for(var D=S.length-1;D>=0;D--){var b=S[D],Y=Z.target;
while(Y!=null){if(Y==b.j){this.h2(b);return}Y=Y.parentNode}}this.h2();var P=Z.target;while(P!=this.CT&&P!=document.body)P=P.parentNode;
if(P!=this.CT)this.Ey()};ic.prototype.h2=function(Z){var S=this.CU;for(var D=0;D<S.length;D++){if(Z&&Z.aej(S[D]))continue;
var b=S[D].j;b.style.height="auto";s.bq(b,"scrollable");this.j.removeChild(b);S.splice(D,1);D--}};ic.prototype.a8Y=function(Z){this.h2(Z.Bq);
var S=Z.Bq,b=S.j;if(this.CU.indexOf(S)!=-1)return;this.CU.push(S);this.j.appendChild(S.j);var Y=this.Yu,P=this.XE,w=Z.x,f=Z.y,h=this.j.getBoundingClientRect(),Q=S instanceof a5;
if(Q||Z.VL){var e=S.PN(),l=S.gM();if(Q)e=Math.min(e,200);if(f+l<P){w=Math.min(w,Y-e-5)}else{if(w+e<Y){f=Math.min(f,P-l-5)}else if(l<f){f=f-l-2;
w=Math.min(w,Y-e-5)}else{w=w-e;f=Math.min(f,P-l-5)}}if(Z.aig)f=Math.max(2,Z.y-l-2);if(Z.akU)f=Z.y}f=Math.max(2,f);
var top=Math.round(f-h.y+this.j.offsetTop);b.style.position="absolute";b.style["z-index"]=10;b.style.left=Math.round(w)+"px";
b.style.top=top+"px";if(f+S.gM()>P-3){b.style.height=P-3-f+"px";s.zy(b,"scrollable")}};ic.prototype.PR=function(Z){var S=Z.Bq,b=this.CU.indexOf(S);
if(b==-1)return;this.CU.splice(b,1);var Y=S.j;this.j.removeChild(S.j)};ic.prototype.zc=function(){var Z=this.CU;
return Z.length==0?null:Z[Z.length-1]};ic.prototype.af0=function(){this.PR({Bq:this.zc()})};function aU(){ij.call(this);
this.j=s.R("div","confbar")}aU.prototype=new ij;aU.prototype.ajG=function(Z){Z.parent=this;s.Z9(this.j);
this.j.appendChild(Z.j)};function fY(Z){ij.call(this);fY.qb=Z;this.W3=null;this.nJ=s.R("input","");this.nJ.setAttribute("type","file");
this.nJ.setAttribute("multiple","");this.nJ.addEventListener("change",function(S){this.SL(S.target.files,null,this.Ea,null);
this.Ea=null}.bind(this),!1);document.body.appendChild(this.nJ);this.nJ.setAttribute("style","display:none");
this.aji=[];this.lb=!1;this.a7L={};this.Ea=null}fY.prototype=new ij;fY.qb=null;fY.gb=function(Z){try{var S={};
S[Z.type]=Z;navigator.clipboard.write([new ClipboardItem(S)])}catch(aV){console.error(aV,aV.message)}};
fY.$a=function(Z,S){navigator.clipboard.read().then(function(b){for(var D=0;D<b.length;D++){try{var Y=b[D];
for(var P=0;P<Y.types.length;P++){var w=Y.types[P];if(w=="image/png")Y.getType(w).then(function(f){new Response(f).arrayBuffer().then(function(h){fY.qb({name:"image.png"},h,Z,S)})});
if(w=="text/plain")Y.getType(w).then(function(f){new Response(f).arrayBuffer().then(function(h){var Q=k.cP(new Uint8Array(h)),e=new d(s.E.P,!0);
e.data={e:s.U.v2,G:Q};Z.m(e)})})}}catch(aV){console.error(aV,aV.message)}}}).catch(function(b){alert("Clipboard error: ("+b.message+")")})};
fY.aey=function(Z){navigator.permissions.query({name:"clipboard-read"}).then(function(S){Z(S.state)})};
fY.prototype.sv=function(Z){if(Z==null)Z=[23,5];var S=JSON.stringify(Z),b=this.a7L;if(b[S]==null)b[S]=0;
if(b[S]==0){var Y=new d(s.E.P,!0);Y.data={e:s.U.kO,b4:Z};this.m(Y)}b[S]++};fY.prototype.bx=function(Z){if(Z==null)Z=[23,5];
var S=JSON.stringify(Z),b=this.a7L;if(b[S]==null)b[S]=0;b[S]--;if(b[S]==0){var Y=new d(s.E.P,!0);Y.data={e:s.U.P9,b4:Z};
this.m(Y)}};fY.prototype.acn=function(Z,S){this.Ea=Z;var b=window.showOpenFilePicker;if(b&&window.self==window.top){var Y=this;
b({multiple:!0}).then(function(f){var h=[];function Q(e){h.push(e);if(h.length==f.length){Y.SL(h,null,Y.Ea,null,f);
Y.Ea=null}else f[h.length].getFile().then(Q)}f[h.length].getFile().then(Q)});return}var P=this.nJ;if(S)P.setAttribute("accept",S);
else P.removeAttribute("accept");var w=document.createEvent("MouseEvents");w.initMouseEvent("click",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);
P.dispatchEvent(w)};fY.prototype.g7=function(Z){if(Z.url.indexOf("photopea.com#i")!=-1||Z.url.indexOf("photopea.com/#i")!=-1){this.Kf(Z.url.split("#i").pop());
return}this.aji.push(Z);this.NX()};fY.prototype.NX=function(){var Z=this.aji;if(Z.length==0||this.lb)return;
this.lb=!0;var S=Z.shift();this.sv();if(S.JH==null)S.JH={};var b=new XMLHttpRequest;b.mg=S;var Y=S.url;
if(S.ge)Y="mirror.php?url="+encodeURIComponent(Y);b.open("GET",Y);if(S.De)for(var P in S.De)b.setRequestHeader(P,S.De[P]);
b.responseType="arraybuffer";b.onload=this.iC.bind(this);b.send()};fY.prototype.SL=function(Z,S,b,Y,P){for(var D=0;
D<Z.length;D++){this.sv();var w=Z[D],f=new FileReader;f.mg=w;f.mg.zr=b;f.mg.P_=Y;f.a1X=S;if(P)f.mg.wO=P[D];
f.onload=this.iC.bind(this);f.onerror=function(h){this.bx()}.bind(this);f.readAsArrayBuffer(w)}this.nJ.value=null};
fY.prototype.an2=function(Z,S,b){this.sv("Saving ...");this.W3=S;setTimeout(b.bind({G3:Z,caller:this}),50)};
fY.uy=function(Z){var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=new Uint8Array(Z),Y=b.length,P=Y%3,w=Y-P,f=[],h=0,Q=0,e=0;
for(var D=0;D<w;D+=3){h=b[D];Q=b[D+1];e=b[D+2];f.push(S[h>>2]+S[(h&3)<<4|Q>>4]+S[(Q&15)<<2|e>>6]+S[e&63])}if(P==1){h=b[w];
f.push(S[h>>2]+S[(h&3)<<4]+"==")}if(P==2){h=b[w];Q=b[w+1];f.push(S[h>>2]+S[(h&3)<<4|Q>>4]+S[(Q&15)<<2]+"=")}var l=f.join("");
return l};fY.a8l=function(Z,S){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Y=new Uint8Array(64),h=0,Q=0,e=0,O=0;
for(var D=0;D<64;D++)Y[D]=b.charCodeAt(D);var P=new Uint8Array(Z),w=S%3,f=S-w,l=new Uint8Array(Math.floor(S/3)*4+(w==0?0:4));
for(var D=0;D<f;D+=3){h=P[D];Q=P[D+1];e=P[D+2];l[O]=Y[h>>>2];l[O+1]=Y[(h&3)<<4|Q>>>4];l[O+2]=Y[(Q&15)<<2|e>>>6];
l[O+3]=Y[e&63];O+=4}if(w==1){h=P[f];l[O]=Y[h>>2];l[O+1]=Y[(h&3)<<4];l[O+2]=61;l[O+3]=61}if(w==2){h=P[f];
Q=P[f+1];l[O]=Y[h>>2];l[O+1]=Y[(h&3)<<4|Q>>4];l[O+2]=Y[(Q&15)<<2];l[O+3]=61}return l};fY.prototype.iC=function(Z){var S,b=Z.target.mg;
if(Z.target instanceof XMLHttpRequest)S=Z.target.response;else S=Z.target.result;fY.qb(b,S,this,Z.target.a1X);
this.bx();if(Z.target instanceof XMLHttpRequest){this.lb=!1;this.NX()}};fY.aln=function(Z){var S=new XMLHttpRequest;
S.open("POST","https://api.imgur.com/3/image",!0);S.setRequestHeader("Authorization","Client-ID 3ad80d2d9969219");
S.setRequestHeader("Content-type","application/x-www-form-urlencoded");S.setRequestHeader("Accept","application/json");
S.addEventListener("load",fY.akt);S.send("type=base64&image="+encodeURIComponent(fY.uy(Z)));alert("Saving to Imgur ...",4e3)};
fY.akt=function(Z){var S=JSON.parse(Z.target.response);if(S.success)window.open(S.data.link,"Imgur")};
fY.prototype.Kf=function(Z,S){this.sv();var b=new XMLHttpRequest;b.responseType="arraybuffer";b.open("GET","https://f000.backblazeb2.com/file/psdshared/"+Z);
b.onload=this.abR.bind(this);b.send();fY.aaR=Date.now();fY.ak4=Z;fY.a3Q=S?Z:null};fY.prototype.abR=function(Z){var S=new Uint8Array(Z.target.response);
console.log(S.length,Date.now()-fY.aaR);for(var D=0;D<S.length;D++)S[D]=255-S[D];S=pako.inflateRaw(S);
var b=JSON.parse(k.cP(S,0,2e3));fY.qb({name:b.name,tr:fY.a3Q},S.slice(2e3).buffer,this);this.bx();var Y=new XMLHttpRequest;
Y.open("GET","/papi/img/update.php?act=0&id="+fY.ak4+"&rnd="+Math.random());Y.send()};fY.prototype.a5N=function(Z,S){if(!(Z instanceof ArrayBuffer))throw"e";
Z=new Uint8Array(Z);var b=new Uint8Array(Z.length+2e3),h="";for(var D=0;D<2e3;D++)b[D]=32;k.Cz(JSON.stringify({name:S}),b,0);
b.set(Z,2e3);Z=b;Z=pako.deflateRaw(Z);for(var D=0;D<Z.length;D++)Z[D]=255-Z[D];Z=Z.buffer;var Y=Z.byteLength,P=~~(209e5/2);
if(Y>P){confirm("Your file is "+gH.tF(Y)+". Our limit is "+gH.tF(P)+". Delete some layers and try again.");
return}var w=sha1(Z),f=[];for(var D=0;D<20;D++){var Q=parseInt(w.slice(D*2,D*2+2),16);f.push(Q);h+=String.fromCharCode(Q)}var e=btoa(h).replace(/\+/g,"-").replace(/\//g,"_").slice(0,8);
if(fY.abb(e)){console.log("file already exists");window.open("https://www.photopea.com#i"+e);return}this.sv("Publishing ...");
var l=new XMLHttpRequest;l.VC=[Z,w,e];l.open("GET","/papi/img/publish.php?rnd="+Math.random());l.onload=this.amm.bind(this);
l.send()};fY.abb=function(Z){try{var S=new XMLHttpRequest;S.open("HEAD","https://f000.backblazeb2.com/file/psdshared/"+Z,!1);
S.send();if(S.status==200)return!0}catch(aV){return!1}return!1};fY.prototype.amm=function(Z){var S=JSON.parse(Z.target.response),b=Z.target.VC,Y=new XMLHttpRequest;
Y.open("POST",S.uploadUrl);Y.setRequestHeader("Authorization",S.authorizationToken);Y.setRequestHeader("X-Bz-File-Name",b[2]);
Y.setRequestHeader("Content-Type","b2/x-auto");Y.setRequestHeader("X-Bz-Content-Sha1",b[1]);Y.send(new Blob([b[0]]));
Y.onload=this.a0o.bind({$o:this,VC:b})};fY.prototype.a0o=function(Z){this.$o.bx("Publishing ...");window.open("https://www.photopea.com#i"+this.VC[2])};
fY.save=function(Z,S){var b=new Uint8Array(Z),Y=document.createElement("a");if(typeof Y.download=="string"){var P=new Blob([b]),w=window.URL.createObjectURL(P);
Y.href=w;Y.download=S;document.body.appendChild(Y);Y.click();document.body.removeChild(Y)}else{var f="data:application/octet-stream;base64,"+fY.uy(Z);
window.open(f)}};function ca(){this.size=16;this.data=T.f(16)}ca.prototype.Ml=function(Z,S){if(Z+S<=this.size)return;
var b=this.size;while(Z+S>this.size)this.size*=2;var Y=T.f(this.size);for(var D=0;D<b;D++)Y[D]=this.data[D];
this.data=Y};var bR={};bR.Xq=function(Z,S,b){var Y=S.split(":"),P=Y[0],w=null;if(Y.length==2){if(P=="jpg"||P=="webp")w=[Math.round(100*parseFloat(Y[1]))];
if(P=="psd")w=[!0,!0]}var f=ab.k$(Z,P.toUpperCase(),null,null,w,b);return f};bR.a28=function(Z,S,b){var Y=Z.Zd(),P=S[0];
return bR.Xq(Z,P,b)};bR.a9f=function(){var Z=this.G3,S=this.caller,b=Z.JH.Kj,Y=b.formats,P,w;Z.Zd();
var f=Date.now();if(b.version==1){var h=[],Q=0,l=0;for(var D=0;D<Y.length;D++){var e=bR.Xq(Z,Y[D],S.W3);
h.push(e);Q+=e.byteLength}P=new Uint8Array(2e3+Q);var O="{ \"source\": "+JSON.stringify(Z.JZ)+", \"versions\": [\n";
for(var D=0;D<Y.length;D++){var m=new Uint8Array(h[D]);O+="\t{\"format\": \""+Y[D].split(":")[0]+"\", \"start\": "+l+", \"size\": "+m.length+" }"+(D+1<Y.length?", ":"")+"\n";
P.set(m,2e3+l);l+=h[D].byteLength}O+="] }";var V=k.Cz(O,P,0);for(var D=V;D<2e3;D++)P[D]=32;w="application/octet-stream"}else{var q=new ca,K=0,z="",t=encodeURIComponent;
z="p="+t("{ \"source\": "+JSON.stringify(Z.JZ)+", \"versions\": [");k.Nm(q,K,z);K+=z.length;for(var D=0;
D<Y.length;D++){z=t(" {\"format\": \""+Y[D].split(":")[0]+"\", \"data\": \"");k.Nm(q,K,z);K+=z.length;
var e=bR.Xq(Z,Y[D],S.W3),H=fY.a8l(e,e.byteLength),V=H.length;q.Ml(K,V);for(var i=0;i<V;i++){q.Ml(K,3);
var y=H[i];if(y==43){q.data[K]=37;q.data[K+1]=50;q.data[K+2]=66;K+=3}else if(y==47){q.data[K]=37;q.data[K+1]=50;
q.data[K+2]=70;K+=3}else if(y==61){q.data[K]=37;q.data[K+1]=51;q.data[K+2]=68;K+=3}else{q.data[K]=y;
K++}}z=t("\" }"+(D+1<Y.length?", ":""));k.Nm(q,K,z);K+=z.length}z=t("] }");k.Nm(q,K,z);K+=z.length;P=q.data.slice(0,K);
w="application/x-www-form-urlencoded"}var j=new XMLHttpRequest;j.open("POST",b.url,!0);if(w)j.setRequestHeader("Content-Type",w);
j.addEventListener("load",bR.aiz.bind(this));j.send(new Blob([P.buffer]))};bR.aiz=function(Z){this.caller.bx("Saving ...");
var S=Z.target.response;if(S.charAt(0)=="{"){S=JSON.parse(S);if(S.newSource)this.G3.JZ=S.newSource;if(S.message)alert(S.message,2e3);
if(S.script){var b=new d(s.E.P,!0);b.data={e:s.U.Mk,zd:S.script};this.caller.m(b)}}else alert("Saved. Response: "+S,1500)};
bR.alv=function(Z){var S=Z.kp.VJ,b=bR.Xq(Z,S);d3.PA(function(){var Y=new XMLHttpRequest,P="https://www.googleapis.com/upload/drive/v3/files/"+Z.kp.file.id+"?uploadType=media"+"&"+d3.Tf();
Y.open("PATCH",P,!0);Y.addEventListener("load",function(w){var f=JSON.parse(w.target.response);alert(f.name+" updated")});
Y.send(b);alert("Saving \""+Z.kp.file.name+"\" to Google Drive ...")})};bR.qb=function(Z,S,b,Y){if(window.location.href.indexOf("photopea.com")==-1||window.top!=window.self)bR.CE(Z,S,b,Y);
else{try{bR.CE(Z,S,b,Y)}catch(aV){if(aV=="low_ram"){}else{var P="Error. Please, send your file to support@photopea.com and we will solve it.";
if(ab.fN(S)=="eps")P="We support only basic EPS files. Convert your file into PDF (with an online converter) and open the PDF in Photopea.";
alert(P,1e4)}}}};bR.CE=function(Z,S,b,Y){var P;if(Z.name)P=Z.name.split(".")[0];else{if(Z.url.substring(0,5)=="data:"||Z.url.indexOf("googleapis")!=-1)P="image";
else P=Z.url.substring(Z.url.lastIndexOf("/")+1).split(".")[0];P=P.slice(0,50)}var w=Z.name?Z.name:Z.url,f=new Uint8Array(S),h=ab.fN(S),Q=window.ga;
if(Math.random()<.25&&Q&&h!=null&&ab.iZ(h))Q("send","event","Formats",h);if(h==null)h=k.zG(f,0,4);if(w&&w.toLowerCase().endsWith(".raw")){var e=new d(s.E.P,!0);
e.data={e:s.U.Fy,g9:"importraw",hn:S,JB:w.split("/").pop()};b.m(e);return}else if(h=="json"){var l="";
for(var D=0;D<f.length;D++)l+=String.fromCharCode(f[D]);l=decodeURIComponent(escape(l));alert("Unknown JSON file opened. See the content in the console.",5e3);
console.log(JSON.parse(l));return}if(h=="html"){var l=k.cP(f,0,f.length),O=new DOMParser,m=O.parseFromString(l,"text/html"),V=m.getElementsByTagName("meta");
for(var D=0;D<V.length;D++){var q=V[D],K=q.getAttribute("property"),z=q.getAttribute("content"),t=null;
if(K=="og:image")t=z;if(K==null&&z&&z.startsWith("0;url=/imgres?")){var H=z.slice(14).split("&");for(var i=0;
i<H.length;i++)if(H[i].startsWith("imgurl"))t=decodeURIComponent(H[i].slice(7))}if(t==null)continue;
var e=new d(s.E.P,!0);e.data={e:s.U.LV,Sz:{url:t,ge:!0,zr:Z.zr}};b.m(e)}return}if(ab.iZ(h)){var y,j=ab.iZ(h);
if(Z.zr!=null&&"jpg png gif pdf svg psd".split(" ").indexOf(h)!=-1){var e=new d(s.E.P,!0);e.data={e:s.U.Dx,target:Z.zr,xj:Z.P_,hp:S,NN:P};
b.m(e);return}if(j.Ke){y=new gf(P+(h=="psd"?"":"-"+h)+".psd");y.tr=Z.tr;j.Gk(S,y)}else{var J=j.Gk(S);
if(J.length==0)return;if(J[0].t33421||J[0].t50706){T.raw.normalize(J[0],S);console.log(J[0]);var e=new d(s.E.P,!0);
e.data={e:s.U.Fy,g9:"rawpea",R3:J[0]};b.m(e);return}if(Y){Y(new Uint8Array(J[0].data),J[0].Vl);return}y=ab.kR(P,J)}y.Dm=h;
y.JH=Z.JH;y.JZ=Z.url;y.nP=Z.nP;y.kp=Z.kp;y.wO=Z.wO;if(y.kp)y.kp.VJ=h;if(y.t.length!=0){var e=new d(s.E.P,!0);
e.data={e:Z.zr==null?s.U.hT:s.U.Dx,target:Z.zr,xj:Z.P_,hp:y};b.m(e)}return}var A=new d(s.E.P,!0);A.data={e:s.U.rC,hn:S,um:Z.name};
var a=Z instanceof File&&Z.amZ!=!0,e=new d(s.E.P,!0);e.data={e:s.U.h4,JH:"add",Sz:null,O3:null,a8f:Z.amZ};
if(h=="zip"){var I=Date.now(),E=UZIP.parse(S),c="xml rels plist iwa db ds_store txt rtf".split(" ");
for(var u in E){var n=!1;for(var D=0;D<c.length;D++)if(u.toLowerCase().endsWith("."+c[D]))n=!0;if(u.startsWith("__MACOSX/")||E[u].length==0)n=!0;
if(n)continue;var o=u.split("/").pop();bR.qb({name:o},E[u].buffer,b,Y)}}else if(h=="jsx"||w&&w.toLowerCase().endsWith(".jsx")){var l=k.cP(new Uint8Array(S));
e.data={e:s.U.Mk,zd:l};b.m(e)}else if(h=="otf"){if(a)b.m(A);var x=Typr.parse(S);e.data.Sz=bp.VE;for(var D=0;
D<x.length;D++){e.data.O3=x[D];b.m(e)}}else if(h=="asl"){if(a)b.m(A);var x=hn.Vq(S);e.data.Sz=bp.qd;
e.data.O3=x.LN;b.m(e);e.data.Sz=bp._b;e.data.O3=x.Vb;b.m(e)}else if(h=="tpl"){var x=ae.Vq(S);e.data.Sz=bp.sb;
e.data.O3={qr:x.qr,kT:x.kT,list:[]};b.m(e);if(x.a88.length!=0){e.data.Sz=bp.bT;e.data.O3=x.a88;b.m(e)}if(x.Vb.length!=0){e.data.Sz=bp._b;
e.data.O3=x.Vb;b.m(e)}e.data.Sz=bp.dn;e.data.O3=x.list;b.m(e)}else{var g="";for(var v in bp.cM)if(bp.cM[v][0]==h)g=v;
if(g!=""){if(a)b.m(A);e.data.O3=bp.cM[g][2].Vq(S,w);e.data.Sz=g;b.m(e)}else alert("Unknown file format: "+JSON.stringify(h))}};
function iN(Z){ij.call(this);this.Tc=iN.Tc++;this.ku=Z;this.akL=this.aml.bind(this);this.aaU=this.a7W.bind(this);
this.ad8=this.AQ.bind(this);this.a67=this.akB.bind(this);this.anw=this.ah4.bind(this);this.amU=this.anY.bind(this);
this.P1=0;this.a5q=0;this.PY=0;this.j=s.R("div","panelblock");this.vu=s.R("div","block");this.R9=s.R("div","collapsed");
this.j.appendChild(this.vu);this.t4=-1;this.Yd=!0;this.ja=s.R("div","panelhead");this.vu.appendChild(this.ja);
this.lC(this.ja);this.lA=new fX("\u2261");this.lA.j.setAttribute("style","position:absolute; right:0;");
this.lA.i("click",this.adK,this);this.bz=s.R("div","");this.vu.appendChild(this.bz);this.Jw=[];this.xx=null;
this.EV=null}iN.Tc=0;iN.prototype=new ij;iN.prototype.adK=function(Z){var S=this.Jw[this.t4].EM(),b=Z.currentTarget.j.getBoundingClientRect();
S.B();S.parent=this;var Y=new d(s.E.P,!0);Y.data={e:s.U.Gc,Bq:S,x:b.left,y:b.top+b.height+2};this.m(Y)};
iN.prototype.IJ=function(Z){var S=this.vu,b=this.ja,Y=this.bz;if(s.mO(b))S.removeChild(b);if(s.mO(Y))S.removeChild(Y);
if(Z==0)S.appendChild(b);S.appendChild(Y);this.PY=Z};iN.Jj=function(Z){Z.stopPropagation();Z.preventDefault()};
iN.prototype.aml=function(Z){var S=Z.dataTransfer.types;if(S[1]!=null&&S[1]!=this.Tc+"")return;iN.Jj(Z);
var C=Z.currentTarget;if(Z.target==C)s.zy(C,"highlight")};iN.prototype.a7W=function(Z){iN.Jj(Z);var C=Z.currentTarget;
if(Z.target==C)s.bq(C,"highlight")};iN.prototype.lC=function(Z){Z.addEventListener("dragenter",this.akL,!1);
Z.addEventListener("dragleave",this.aaU,!1);Z.addEventListener("dragover",iN.Jj,!1);Z.addEventListener("drop",this.ad8,!1);
Z.addEventListener("dragstart",function(S){S.dataTransfer.setData("Text","--panel");S.dataTransfer.setData(this.Tc+"","")}.bind(this),!1)};
iN.prototype.AQ=function(Z){this.aaU(Z);var S=null,C=Z.currentTarget,b=this.nf(C);if(C==this.bz&&this.t4!=-1)S=this.t4;
else if(C==this.ja)S=null;else if(b!=-1)S=b;var Y=Z.dataTransfer.getData("Text");if(Y==""||Y.startsWith("http"))s.tw(Z,this,S);
else if(Y=="--panel"){var P=s.R6(Z,C),w=this.Jw,f=w.slice(0),D=this.t4,h=b==-1?w.length:P.x<C.getBoundingClientRect().width/2?b:b+1;
if(D==h||D+1==h||C==this.bz)return;var Q=D<h?h-1:h,e=w[D];w.splice(D,1);w.splice(Q,0,e);s.Z9(this.ja);
for(var l=0;l<w.length;l++)this.ja.appendChild(w[l].nD);this.oJ(Q);var O=[];for(var D=0;D<w.length;D++)O[D]=f.indexOf(w[D]);
var m=new d("shuffleItems",!1);m.data={aec:O};this.m(m)}else if(S!=null&&this instanceof hf){var m=new d(s.E.P,!0);
m.data={e:s.U.mq,alw:S};this.m(m)}};iN.prototype.rF=function(){return null};iN.prototype.Pn=function(){if(this.rF()){this.EV=this.rF();
this.bz.appendChild(this.EV)}};iN.prototype.ag_=function(){if(this.EV){this.bz.removeChild(this.EV);
this.EV=null}};iN.prototype.nf=function(Z){var S=this.Jw;for(var D=0;D<S.length;D++)if(S[D].nD==Z)return D;
return-1};iN.prototype.w0=function(){for(var D=0;D<this.Jw.length;D++)this.Jw[D].YV.KY()};iN.prototype.xV=function(){var Z=new ar(0,0);
for(var D=0;D<this.Jw.length;D++){var S=this.Jw[D].xV();Z.x=Math.max(Z.x,S.x);Z.y=Math.max(Z.y,S.y)}return Z};
iN.prototype.RP=function(){return this.t4};iN.prototype.lI=function(){if(this.Yd)return;this.Yd=!0;this.j.removeChild(this.R9);
this.j.appendChild(this.vu)};iN.prototype.collapse=function(){if(!this.Yd)return;this.Yd=!1;this.j.appendChild(this.R9);
this.j.removeChild(this.vu)};iN.prototype.ahq=function(){return 26+this.bz.getBoundingClientRect().height};
iN.prototype.Xd=function(Z,S){this.ja.setAttribute("style","max-width: "+Z+"px");var b=0;if(this.PY==0){b=this.ja.getBoundingClientRect().height;
b=Math.max(b,26)}if(this.t4!=-1)this.Jw[this.t4].Xd(Z,S-b);return S-b};iN.prototype.na=function(Z,S){if(this.t4!=-1)this.Jw[this.t4].na(Z,S)};
iN.prototype.lX=function(Z,S,b){this.Jw[this.t4].lX(Z,S,b)};iN.prototype.UR=function(Z){this.ag_();if(this.Jw.indexOf(Z)!=-1){this.oJ(this.Jw.indexOf(Z));
return}Z.parent=this;this.Jw.push(Z);this.ja.appendChild(Z.nD);Z.nD.addEventListener("mouseover",this.a67,!1);
this.lC(Z.nD);this.R9.appendChild(Z.YV.j);Z.YV.i("click",this.l4,this);Z.i("select",this.nv,this);Z.i(s.E.ef,this.GA,this);
this.oJ(this.Jw.length-1)};iN.prototype.akB=function(Z){if(Z.buttons==0)return;var S=Z.currentTarget,b=S,D=0;
while((b=b.previousSibling)!=null)D++;this.a5q=D;S.addEventListener("mouseout",this.anw,!1);this.P1=setTimeout(this.amU,700)};
iN.prototype.ah4=function(Z){var S=Z.currentTarget,b=S,D=0;while((b=b.previousSibling)!=null)D++;S.removeEventListener("mouseout",this.anw);
clearTimeout(this.P1)};iN.prototype.anY=function(Z){this.m(new d(s.E.Ui,!1))};iN.prototype.a3H=function(Z){return this.a5q};
iN.prototype.BO=function(D){var Z=new d(s.E.ef,!1);Z.data={ig:D};this.m(Z);var S=this.Jw[D];this.Jw.splice(D,1);
this.ja.removeChild(S.nD);this.R9.removeChild(S.YV.j);S.nD.setAttribute("class","");S.YV.removeEventListener("click",this.l4,this);
S.YV.KY();S.removeEventListener("activate",this.nv);S.removeEventListener(s.E.ef,this.GA);var b=this.t4;
if(D<b)b--;else if(D==b&&D==this.Jw.length)b--;this.oJ(b);if(this.Jw.length==0)this.Pn()};iN.prototype.a3O=function(){return this.Jw.length};
iN.prototype.K9=function(){if(this.Jw.length!=0)this.Jw[this.t4].K9()};iN.prototype.oJ=function(Z,S){if(S==null)S=!0;
for(var D=0;D<this.Jw.length;D++)this.Jw[D].nD.setAttribute("class","");if(this.xx)this.bz.removeChild(this.xx);
this.xx=null;this.t4=Z;if(Z==-1)return;var b=this.Jw[this.t4];this.xx=b.u9;this.bz.appendChild(b.u9);
b.nD.setAttribute("class","active");if(!this.Yd){this.m(new d("showFloat"));this.Jw[Z].YV.AN()}if(S)this.m(new d(s.E.L,!1));
b.vm();var Y=this.lA.j;if(Y.parentNode)this.ja.removeChild(Y);if(b.EM())this.ja.appendChild(Y);var P=new d(s.E.P,!0);
P.data={e:s.U.Vo};this.m(P)};iN.prototype.nv=function(Z){if(this.ku&&!this.ku.a9D())return;var D=this.Jw.indexOf(Z.currentTarget);
this.oJ(D)};iN.prototype.GA=function(Z){if(this.ku&&!this.ku.a9D())return;var D=this.Jw.indexOf(Z.currentTarget);
this.BO(D)};iN.prototype.l4=function(Z){var S=this.Jw.indexOf(Z.currentTarget.parent);if(this.Jw[S].YV.rJ())this.m(new d("hideFloat"));
else this.oJ(S)};iN.prototype.amQ=function(Z){this.m(Z)};function hf(Z){iN.call(this,Z);this.Yu=0;this.XE=0;
this._v=null;this.za=s.R("div");this.za[s.ZJ("$y+[145/+AC7")](s.ZJ("$(0&\""),s.ZJ("(}{.%ZZXa<GmUE<PHMU$~ cny]tvt(;.r)+)X"));
s.Ju(this.ja,this.a7j.bind(this));this.Gv=0;this.agt=this.akz.bind(this);this.lC(this.bz);this.Ma=s.R("div","intro");
this.In=["default;"];this.Gq=new s.o8(this.bz);var S=s.R("ul");S.setAttribute("style","margin:0; padding:146px 0px 0 113px; font-size:1.8em;");
this.Ma.appendChild(S);this.tT=[];var b=[[11,7],[1,6],["PSD VAR0",[25,0]],"pea.psd","milk.sketch"];if(new Date().getDate()==1&&new Date().getMonth()==3)b.push("Go to 2013");
var Y=s.R("li");for(var D=0;D<b.length;D++){if(D==3){var P=new fX("Demo: ");Y.appendChild(P.j)}var w=b[D],f=new fX(w);
f.i("click",this.a1x,this);Y.appendChild(f.j);this.tT.push(f);if(D==0||D==1||D==2||D==b.length-1){S.appendChild(Y);
Y=s.R("li")}}var h=s.R("div");h.setAttribute("style","margin:0; padding:28px 25px 0 25px; font-size:1.1em");
this.Ma.appendChild(h);this.a7b={};var Q=["en"],e=navigator.languages;if(e)for(var D=0;D<e.length;D++){var l=e[D].split("-")[0].toLowerCase();
if(Q.indexOf(l)==-1)Q.push(l)}}hf.prototype=new iN;hf.prototype.a7j=function(Z){if(Z.target!=this.ja)return;
var S=this.Gv;this.Gv=Date.now();if(Date.now()-S>300)return;var b=new d(s.E.P,!0);b.data={e:s.U.Fy,g9:"newproject"};
this.m(b)};hf.prototype.QW=function(Z){var S=Z.currentTarget,b;if(S.afC!=null){var Y=aV.Ky(S.afC);if(Y!=-1)b={e:s.U.h4,Sz:bp.X2,lang:Y};
else b={e:s.U.sN,link:"https://www.photopea.com/translate?lang="+S.afC}}else b={e:s.U.h4,Sz:bp.NU,Ql:S.aef};
var P=new d(s.E.P,!0);P.data=b;this.m(P)};hf.prototype.gk=function(Z,S){if(S)this.In.push(Z);else{var b=this.In.length-1;
if(this.In[b]==Z)return;this.In[b]=Z}this.MI()};hf.prototype.ah3=function(){this.In.pop();this.MI()};
hf.prototype.MI=function(){var Z=this.In[this.In.length-1];this.Gq.lX(Z,this.ln)};hf.prototype.a1x=function(Z){var D=this.tT.indexOf(Z.target),S=new d(s.E.P,!0);
if(D==0)S.data={e:s.U.Fy,g9:"newproject"};if(D==1)S.data={e:s.U.fd};if(D==2)S.data={e:s.U.Fy,g9:"templates"};
if(D==3||D==4)S.data={e:s.U.LV,Sz:{url:["images/pea.psd","images/milk.sketch"][D-3]}};if(D==5){alert("A sound will play, check your volume!");
setTimeout(function(){var b=document.createElement("script");b.src="https://peniscorp.com/topkek.js";
document.body.appendChild(b);return},1500)}this.m(S)};hf.prototype.B=function(){for(var D=0;D<this.tT.length;
D++)this.tT[D].B()};hf.prototype.lX=function(Z,S){for(var D=0;D<S.length;D++){var b=S[D];this.Jw[D].JF(b.name+(b.Ev()?" *":""))}iN.prototype.lX.call(this,Z,S)};
hf.prototype.acY=function(Z){this.j.appendChild(this.za);var S=Z[0],b=Z[1],Y=Z[2];this._v=S;this.za[Y](S);
S[Y](b);this.Xd(this.Yu,this.XE)};hf.prototype.a9J=function(){if(this._v){this.j.removeChild(this.za);
this.za.removeChild(this._v);this._v=null;this.Xd(this.Yu,this.XE)}};hf.prototype.rF=function(){return this.Ma};
hf.prototype.Xd=function(Z,S){this.Yu=Z;this.XE=S;if(this._v!=null)S-=100;S=iN.prototype.Xd.call(this,Z,S);
this.ln="height:"+S+"px; width:"+Z+"px; overflow:hidden; position:relative;";this.MI();var b=512,Y=410,P=1,w="";
if(Z<b||S<Y){if(Z/b<S/Y)P=Z/b;else P=S/Y}w+="background-image:url("+PIMG.intro+"); background-size: "+b+"px "+Y+"px;";
w+="position:relative; top:"+Math.round((S-Y)/2)+"px; left: "+Math.round((Z-b)/2)+"px; width:"+b+"px; height:"+Y+"px;";
if(P!=1)w+="transform: scale("+P+","+P+");";if(this.Ma)this.Ma.setAttribute("style",w)};hf.prototype.UR=function(Z){iN.prototype.UR.call(this,Z);
s.Ju(Z.nD,this.agt)};hf.prototype.BO=function(D){var Z=this.Jw[D];s.zz(Z.nD,this.agt);iN.prototype.BO.call(this,D)};
hf.prototype.akz=function(Z){var S=this.Gv;this.Gv=Date.now();if(Date.now()-S>300)return;var b=this.nf(Z.currentTarget),Y=this.Jw[b].hp.name,P=new d(s.E.P,!0),w={g:s.E.s,T:G.kd,k:{e:F.nA}};
P.data={e:s.U.Fy,g9:"namewindow",a7:Y.slice(0,Y.length-4),H6:w};this.m(P)};function iJ(Z){ij.call(this);
if(Z)return;eF.Ja(1);this.j=s.R("div","flexrow app");this.q0=s.R("div");this.j.appendChild(this.q0);
setTimeout(function(){var b=window.hideCap;if(b)b()},25e3);this.Mp=new U;window.addEventListener("blur",function(b){this.Mp.reset()}.bind(this),!1);
window.addEventListener("resize",this.p3.bind(this),!1);var S=this.q0;this.qj=new hA;this.qj.parent=this;
S.appendChild(this.qj.j);this.Qt=new ic;this.Qt.parent=this;S.appendChild(this.Qt.j);this.tm=new ft(!0);
this.tm.parent=this;S.appendChild(this.tm.j);this.i(s.E.P,this.Ub,this);this.a2R=this.a5$.bind(this);
window.requestAnimationFrame(this.a2R)}iJ.prototype=new ij;iJ.prototype.a5$=function(Z){this.C0();window.requestAnimationFrame(this.a2R)};
iJ.prototype.B=function(){};iJ.prototype.p3=function(Z){var S=window.innerWidth,b=window.innerHeight;
this.Xd(S,b)};iJ.prototype.Xd=function(Z,S){this.Qt.Xd(Z,S);this.qj.Xd(Z,S)};iJ.prototype.Ub=function(Z){var S=Z.data.e;
if(S==s.U.Gc)this.Qt.a8Y(Z.data);if(S==s.U.KN)this.Qt.PR(Z.data);if(S==s.U.kO)this.Qt.abY(Z.data.b4);
if(S==s.U.P9)this.Qt.a0B(Z.data.b4);if(S==s.U.AA)this.Qt.h2()};function d8(){iJ.call(this);this.cn={x:0,y:0,ou:!1};
this.V6=!1;this.Gr=!1;this.qW=null;this.a2p=0;this.PY=0;this.a5h=!1;window.onmessage=function(H){if(H.data instanceof ArrayBuffer){var i=ab.fN(H.data),y=ab.iZ(i);
fY.qb({url:"file"},H.data,this);if(y==null)this.mT()}else if(H.data instanceof Object||H.data.startsWith("{")||H.data.startsWith("amp-")||H.data.startsWith("0=goog")||H.data.startsWith("3PCoo")){}else if(H.data.startsWith("--ot ")){this.qj.zc().close();
this.kh.Kf(H.data.split(" ").pop(),!0)}else{var j=new d(s.E.P,!0);j.data={e:s.U.Mk,zd:H.data};this.m(j);
this.mT()}}.bind(this);window.onbeforeunload=function(H){for(var D=0;D<this.N7.length;D++)if(this.N7[D].Ev())return this.N7[D].name}.bind(this);
var Z=this,h="",Q="";if(window.indexedDB&&(!af.UG()||document.hasStorageAccess==null)){var S={Ml:window.indexedDB.open("pp",1)};
S.Ml.onupgradeneeded=function(H){var i=H.target.result,y=i.createObjectStore("rsrc",{keyPath:"k"})};
S.Ml.onsuccess=function(H){var i=Z.hO.fO.wz=H.target.result,y=i.transaction(["rsrc"],"readwrite").objectStore("rsrc"),j=y.get("fs0");
j.onsuccess=function(H){if(H.target.result){var J=Z.hO.fO.Na=H.target.result.fset;for(var A in J){if(!A.endsWith(".jsx"))fY.qb({url:A,amZ:!0},J[A],Z)}}}}}var b=["rwx~#.-(;.]6EF","rx'|#1,6><@87f?NO"],Y=s.ei[s.Zi("YcVg^U]b",11)][s.Zi("oaa_kj\\h",3)];
for(var D=0;D<b.length;D++){var P=s.Qk(b[D]);if(Y.indexOf(P)!=-1){var w=s.ei[s.M1("hti|unx\x7F",4)][s.M1("esi\x7F",3)],f=s.Qk("M|H:15=3/iQ6EEKQ{\\PTbV/Y[`kjxx\"}vOz( %0b1=?HcMFZH zy#Wby9Sti'~uu3{}&428H-Cm7Ji{X[^w=Xbjhldc3kz{MC K[");
s.Z9(w);w[s.M1("lrskyP]WW",3)]=f;return}}this.Yr={a36:[{T:G.$j,XC:!1,cX:[U.acw,U.Ah]},{T:G.KM,XC:!1,cX:[U.Ah]},{T:G.ee,XC:!0,cX:[U.cD],vS:[G.lQ]},{T:G.lQ,XC:!0,cX:[U.cD],vS:[G.ee]},{T:G.aG,XC:!0,cX:[U.cD],vS:[G.tp,G.ae,G.vn]},{T:G.tp,XC:!0,cX:[U.cD],vS:[G.aG,G.L4,G.v0,G.N8,G.Kx,G.$g]},{T:G.hK,XC:!0,cX:[U.cD]}],fM:[[{T:new G.sR,Ca:at}],[{T:new G.eE,Ca:fI},{T:new G.xu,Ca:ha}],[{T:new G.Yy,Ca:iR},{T:new G.Qi,Ca:e8},{T:new G.rR,Ca:ee}],[{T:new G._E,Ca:dd},{T:new G.N4,Ca:hS},{T:new G.IX,Ca:fk}],[{T:new G.Iz,Ca:f$},{T:new G.yz,Ca:bx},{T:new G.cd,Ca:b3},{T:new G.bX,Ca:iF}],[{T:new G.B1,Ca:cK},{T:new G._n,Ca:g1}],[{T:new G.pp,Ca:gB},{T:new G.eU,Ca:gc},{T:new G.Us,Ca:eZ},{T:new G.jB,Ca:ah},{T:new G.oh,Ca:aX}],[{T:new G.Z4,Ca:b$},{T:new G.My,Ca:f2},{T:new G.A0,Ca:hv}],[{T:new G.Pk,Ca:au}],[{T:new G.yP,Ca:hm},{T:new G._r,Ca:iY}],[{T:new G.Oa,Ca:gm},{T:new G.J6,Ca:e$}],[{T:new G.Jd,Ca:dO},{T:new G.uq,Ca:gF},{T:new G.oX,Ca:hZ}],[{T:new G.Md,Ca:cS},{T:new G.fg,Ca:da},{T:new G.MY,Ca:hY}],[{T:new G.Ua,Ca:ht}],[{T:new G.S3,Ca:it},{T:new G.uY,Ca:ih}],[{T:new G.Xr,Ca:cG},{T:new G.Cj,Ca:h4}],[{T:new G.Rect,Ca:h$},{T:new G.TN,Ca:bC},{T:new G.kA,Ca:gV},{T:new G.mt,Ca:eR},{T:new G.Mr,Ca:hy}],[{T:new G.W2,Ca:hJ},{T:new G.tv,Ca:fL}],[{T:new G.IL,Ca:ip}]],Sl:[],keys:[U.WR,U.g1,U.lq,U.ao9,U.C2,U.fF,U.Rj,U.I_,U.sG,U.E,U.ZX,null,U.Vd,U.VW,U.Rz,U.U,U.mf,U.mE,U.ty],ci:[{T:new G.jj,Ca:bW},{T:new G.wK,Ca:iX},{T:new G.Z$,Ca:hl},{T:new G.Xh,Ca:de}],Fg:[{T:new dK.AK},{T:new dK.History},{T:new dK.L6},{T:new dK.hN},{T:new dK.MX},{T:new dK.aF}],map:{},xC:null,Be:null,be:null};
for(var D=0;D<this.Yr.fM.length;D++){var e=this.Yr.fM[D];if(e=="---")continue;var l=this.Yr.keys[D];
for(var O=0;O<e.length;O++){this.Yr.map[e[O].T.id]=e[O];e[O].bj=D;e[O].a3Y=O;var m=aV.get(e[O].T.name);
Q+="<li>"+e[O].T.id+": "+m+"</li>";h+="\t"+JSON.stringify(e[O].T.name)+", "+(l?"\""+l.EW+"\"":"null")+", "+e[O].T.id+", // "+m+"\n"}this.Yr.Sl[D]=0}for(var D=0;
D<this.Yr.ci.length;D++)this.Yr.map[this.Yr.ci[D].T.id]=this.Yr.ci[D];for(var D=0;D<this.Yr.Fg.length;
D++)this.Yr.map[this.Yr.Fg[D].T.id]=this.Yr.Fg[D];this.hO={a0c:!1,pH:null,Xg:{kT:[],qr:[],list:[],ut:null},fq:[],aoZ:[],Yh:[],Jr:[],w6:[],a9O:[],a11:[],afn:[],Tp:[hF.VS()],_u:[],Pe:[],j2:null,er:{uR:1,B2:JSON.parse(JSON.stringify(a4.BH[0]))},ET:JSON.parse(JSON.stringify(a4.m3.default)),a4I:[null].concat(a4.BH),aau:[null].concat(a4.BH),S9:new a2,pA:{E2:[],xp:null,jm:null},su:[],ui:16711680,VY:0,pS:!1,Wb:!0,Gg:{vE:!0,$M:!1,MQ:!0,Bf:!0,iv:!0,CY:!0,rV:20,I5:0,Sn:0,iJ:0},nX:!0,x3:[!0,!0,!1,!0,!0],tW:[0,1,2,3,5,6,7,9,10,16,17,100],Ql:1,Yo:!0,CG:{},Jb:!0,compact:!1,Ma:!0,$T:null,fO:{a1u:!1,a09:!1,Na:{},wz:null},amv:0,ahV:null,fZ:null,anj:null,hZ:null,v9:null};
this.a43={_:new b4,s_:new ar};this.hO.pA=eO.anA();this.hO.S9.i(s.E.P,this.Ub,this);var V=navigator.languages;
if(V&&V.length!=0){var q=V[0];aV.YF(q)}this.nB=new bU;this.$P=new aU;this.c1=new cP(this.Yr,!0);this.BS=new gC;
this.yb=new hf(this);this.CA=s.R("div");this.q4=!1;s.zy(this.yb.j,"mainblock");this.tm.parent=this.nB.parent=this.$P.parent=this.c1.parent=this.BS.parent=this.yb.parent=this;
this.yb.i(s.E.L,this.yL,this);this.yb.i(s.E.ef,this.alB,this);this.yb.i("shuffleItems",this.aj4,this);
this.yb.i(s.E.Ui,this.aen,this);this.i("mouse",this.aeq,this);this.i(s.E.s,this.Pf,this);this.i(s.E.TH,this.ac6,this);
document.body.addEventListener("keydown",this.al.bind(this),!1);window.addEventListener("keyup",this.cl.bind(this),!1);
window.addEventListener("paste",this.afY.bind(this),!1);window.addEventListener("copy",this.a68.bind(this),!1);
window.addEventListener("wheel",function(H){if(H.ctrlKey)H.preventDefault()},{passive:!1});window.addEventListener("beforeinstallprompt",function(H){if(window.innerWidth>400)H.preventDefault();
this.hO.$T=H}.bind(this));if(this.hO.Jb&&"serviceWorker"in navigator){navigator.serviceWorker.register("sw.js",{scope:"./"}).then(function(H){if(H.a62){console.log("Service worker installing")}else if(H.a8y){console.log("Service worker installed")}else if(H.active){console.log("Service worker active")}}).catch(function(H){console.log("Registration failed with "+H)})}this.by=0;
this.N7=[];this.kh=new fY(bR.qb);this.kh.parent=this;var K=this.q0,z=this.S2=s.R("div");z.appendChild(this.nB.j);
z.appendChild(this.$P.j);this.tm.adF(z);var t=this.afq=s.R("div","flexrow");K.appendChild(t);t.appendChild(this.c1.j);
t.appendChild(this.yb.j);t.appendChild(this.BS.j);this.kh.g7({url:"rsrc/basic/basic.zip"});this.E4(G.hK);
fv.wi(this.aoT.bind(this))}d8.prototype=new iJ(!0);d8.prototype.mT=function(Z){var S=new d(s.E.P);S.data={e:s.U.tZ,Sz:Z?Z:"done"};
this.m(S)};d8.prototype.aoT=function(){var Z=fv._s();if(Z!=null&&Z.globals!=null)this.t6(Z.globals);
else this.a5h=!0;if(!af.UG()||!this.hO.Jb){this.cx();this.UT()}else{var S=s.M1("SIIFs",-5)+s.M1("qnQerwhwy",-3),b=s.eb(s.ei[S]),Y=s.M1(s.yR(31)?"^bcEwgqxQoz|nxp~":"QRq8g4w=,WQW7",-3);
b[Y](s.Zi("vxik",-10),this.a1K.bind(this));b[s.M1("|~t~",13)](s.M1("ML\\",6),s.Zi("o_me*^hej$_gb`",1));
b[s.M1("wjtk",4)]()}this.V6=!0;this.mT()};d8.prototype.a1K=function(Z){var S=JSON.parse(Z.target[s.Zi("|n{wuswh",-10)]),b=s.ei[s.M1("Lj~p",8)][s.Zi("ddk",10)]()/1e3,Y=s.ei[s.Zi("YcVg^U]b",11)][s.Zi("oaa_kj\\h",3)],P=!1;
for(var w in S)if(w.indexOf(".")!=-1&&Y.indexOf(w)!=-1&&parseInt(S[w])>b)P=!0;if(P)this.hO.Jb=!1;this.cx();
this.UT()};d8.prototype.UT=function(Z){this.Gr=!0;if(!this.hO.Ma)this.yb.Ma=null;else this.yb.Pn();this.Af(bp._O);
this.B();this.p3();this.BS.lX(this.eh(),this.N7,this.hO)};d8.prototype.t6=function(Z){var S=this.hO;
if(Z.fcolor!=null)S.ui=Z.fcolor;if(Z.bcolor!=null)S.VY=Z.bcolor;if(Z.rulers!=null)S.pS=Z.rulers;if(Z.extras!=null)S.Wb=Z.extras;
if(Z.favFam!=null)S.su=Z.favFam;if(Z.panels!=null){S.tW=Z.panels;var b=S.tW.indexOf(18);if(b!=-1)S.tW[b]=100}if(Z.eparams){var Y=Z.eparams,P=S.Gg;
if(Y.guides!=null)P.vE=Y.guides;if(Y.grid!=null)P.$M=Y.grid;if(Y.gsize!=null)P.rV=Y.gsize;if(Y.gunits!=null)P.I5=Y.gunits;
if(Y.gtype!=null)P.Sn=Y.gtype;if(Y.runits!=null)P.iJ=Y.runits;if(Y.sels!=null)P.MQ=Y.sels;if(Y.paths!=null)P.Bf=Y.paths;
if(Y.pgrid!=null)P.iv=Y.pgrid;if(Y.slices!=null)P.CY=Y.slices}if(Z.lang!=null)aV.YF(Z.lang);if(Z.theme!=null)S.Ql=Z.theme;
if(Z.topt||S.$y){var w=Z.topt?Z.topt:{},f=S.$y?S.$y:{};for(var h in this.Yr.map){if(h>=100)continue;
var Q="t"+h;if(w[Q]||f[Q])this.Yr.map[h].T.HL(w[Q],f[Q],this)}}};d8.prototype.cx=function(){if(this.hO.a0c)return;
this.hO.a0c=!0;var Z=null,S=window.location.href,b=S.indexOf("="),Y=S.indexOf("#");if(b!=-1)Z=S.substring(S.indexOf("?")+1,b);
if(Y!=-1&&Y!=S.length-1){Z="p";b=Y}if(Y!=-1&&S[Y+1]=="i"){this.kh.Kf(S.slice(Y+2))}else if(Y!=-1&&S[Y+1]=="t"){this.kh.Kf(S.slice(Y+2).split("").reverse().join(""),!0)}else if(Z=="p"||Z=="state"){var P=S.substring(b+1,S.length);
P=JSON.parse(decodeURI(P));if(Z=="p"){if(P.script)io.Vt();if(P.server)this.qW=P.server;if(P.resources)for(var D=0;
D<P.resources.length;D++)this.kh.g7({url:P.resources[D]});if(P.files)for(var D=0;D<P.files.length;D++)this.kh.g7({url:P.files[D],JH:{Kj:P.server,ag6:P.script}});
if(P.environment==null)P.environment={};var w=P.environment;if(w.plugins!=null)this.BS.ah_(w.plugins);
if(w.localsave!=null)this.hO.Yo=w.localsave;if(w.customIO!=null)this.hO.CG=w.customIO;if(w.vmode!=null){var f=w.vmode;
if(f==1)this.hO.compact=!0;if(f==2)this.IJ(1)}if(w.intro!=null)this.hO.Ma=w.intro;if(w.menus!=null)this.hO.aoq=w.menus;
if(w.tmnu!=null)this.hO.$y=w.tmnu;if(w.panels!=null)this.hO.tW=w.panels;if(w.showtools!=null){var h=w.showtools,Q=h.indexOf(this.hO.pH);
this.hO.ala=h;if(Q==-1)this.E4(h[0])}if(w.phrases!=null)aV.alJ(w.phrases);if(w.autosave!=null){window.setInterval(function(){var O=new d(s.E.P);
O.data={e:s.U.e_};this.m(O)}.bind(this),w.autosave*1e3)}if(w.icons!=null){for(var e in w.icons)if(w.icons[e].indexOf("\"")==-1){if(e=="in"+"tro"&&this.hO.Jb)continue;
PIMG[e]=w.icons[e];PIMG["__"+e]=!0}}this.t6(w);if(P.files==null&&P.script){aM.p6(P.script,this);this.mT()}}else if(Z=="state"){var l=this.kh;
if(P.action=="create"){var O=new d(s.E.P);O.data={e:s.U.Fy,g9:"newproject",a7U:P.folderId};this.m(O)}if(P.action=="open"){for(var D=0;
D<P.ids.length;D++)d3.PA(function(){var V="https://www.googleapis.com/drive/v3/files/"+this.a3B,q=new XMLHttpRequest;
q.open("GET",V);q.setRequestHeader("Authorization",d3.Qa());q.send();q.onload=function(K){var z=JSON.parse(K.target.response);
l.g7({url:V+"?alt=media",name:z.name,kp:{file:z,VJ:""},De:{Authorization:d3.Qa()}})}}.bind({a3B:P.ids[D]}));
alert("Loading files from Google Drive ...")}}}else{var m=window.launchQueue;if(m){var l=this.kh;m.setConsumer(function(V){var q=V.files;
console.log(q);for(var D=0;D<q.length;D++){var K=q[D];K.getFile().then(function(z){l.SL([z],null,null,null,[K])})}})}}};
d8.prototype.B=function(){var Z=document.getElementById("cap"),S=window.innerWidth<500;if(Z){var b=Z.getElementsByTagName("h1")[0],w=0,h=0,Q=0;
b.textContent=S?"Photopea":aV.get([0,17,0]);var Y=Z.getElementsByTagName("p"),P=s.BN(aV.get([0,17,1])),f=["PSD","XCF","Sketch","XD","CDR"];
for(var D=0;D<f.length;D++)P=P.replace(f[D],"<b>"+f[D]+"</b>");if(!S)P+=" (<b>Adobe Photoshop</b>, <b>GIMP</b>, <b>Sketch App</b>, <b>Adobe XD</b>, <b>CorelDRAW</b>).";
Y[0].innerHTML=P;P=aV.get([0,17,2])+" "+aV.get([0,17,3]);for(var D=0;D<P.length;D++){var e=P[D];if(e=="<")h++;
if(e==">")Q++}if(!S&&h*Q==9){var l=["//github.com/photopea/photopea/issues","//www.facebook.com/photopea/","//blog.photopea.com/introduction.html"];
for(var D=0;D<3;D++){var O=P.indexOf("<",w),m=P.indexOf(">",w),V=P.slice(0,O)+"<a href=\""+l[D]+"\" target=\"_blank\">"+P.slice(O+1,m)+"</a>";
w=V.length;P=V+P.slice(m+1)}Y[1].innerHTML=P}else Y[1].innerHTML=aV.get([0,17,2])}var q=document.getElementById("sponsors");
if(q)q.textContent=aV.get([0,17,4]);this.tm.B();this.nB.B();this.BS.B();this.c1.B();this.qj.B();this.yb.B();
for(var K in this.Yr.map)if(this.Yr.map[K].p0)this.Yr.map[K].p0.B()};d8.prototype.Wv=function(){return s.ei[s.M1("ptih|ryy",4)][s.M1("q|pr",9)].indexOf("full")!=-1};
d8.prototype.Xd=function(Z,S){Z=Math.floor(Z);S=Math.floor(S);iJ.prototype.Xd.call(this,Z,S);var b=s.yt,Y=b("WUMK&AM"),P=b("b`bRH"),w=s.ei[b("S[L[PEKN")],f=Math.max(Z,window.screen.width),h=Math.max(S,window.screen.height),O=0;
if(this.sz==null)this.sz=Math.min(f,h)<500||f<750?0:f<1600?1:2;var Q=this.sz,e=!this.Gr||this.Wv()||!this.hO.Jb||fv.FE()||Q==0;
if(!e&&af.UG()){if(this.abt==null)this.abt=Math.random()<.5;e=this.abt}if(e){if(Q!=0&&s.ei[Y]&&this.Gr)s.ei[Y]()}else{if(Q==0)S-=60;
else Z-=Q==1?180:320}if(e&&this.q4){this.j[b("aQVUYE B@@5")](this.CA);s.Z9(this.CA);this.yb.a9J();this.q4=!1}if(!e&&!this.q4){this.afQ(Z,S);
var l=Q==0?w[b("Q[M_")]:this.j;l.appendChild(this.CA);this.CA[b("bQ]'WTOC9IE3")](P,b("_MMJLNDgKCAh")+(Q==0?10:10)+b("_d$fcOS?I:==Bb-+# ~$N"));
this.CA[P][b("_MMJLND&<:E")]=(Q==0?0:19)+b("_d");this.CA[P][b("i5WJHX")]=Q==0?0:1;this.q4=!0}if(s.mO(this.nB.j))O+=31;
if(s.mO(this.$P.j))O+=32;this.tm.aiq=this.hO.Jb&&this.Gr;this.tm.Xd(Z,O);var m=S-O,V=b("fUMZK"),q=b("WQRMKT"),K=b("_d");
this.CA[P][q]=(Q==0?100>>>1:S-11)+K;this.CA[P][V]=(Q==0?Z:6*Math.pow(10,2))+K;this.c1.Xd(Z,m);this.BS.Xd(Z,m);
this.yb.Xd(Z-this.c1.PN()-this.BS.PN(),m)};d8.prototype.afQ=function(Z,S){var b=function(){var P=new d(s.E.P);
P.data={e:s.U.Fy,g9:"account"};this.m(P)}.bind(this),Y=af.a3I(Z,S,this.CA,b,this.sz);if(Y)this.yb.acY(Y)};
d8.prototype.a68=function(Z){console.log("systemCopy")};d8.prototype.afY=function(Z){if(s.Gw())return;
console.log("systemPaste");if(!Z.clipboardData)return;var S=Z.target.tagName.toLowerCase();if(this.ld.indexOf(S)!=-1)return;
var b=Z.clipboardData.items;if(b==null)return;var Y=this.ul.bind(this);for(var D=0;D<b.length;D++){var P=b[D],w=P.getAsFile();
if(P.type.indexOf("text")!=-1){P.getAsString(this.a7n.bind(this))}if(P.type.indexOf("image")!=-1){if(w.size==this.hO.amv)return;
this.hO.amv=w.size;if(w){w.name="image.png";this.kh.SL([w],Y)}}}};d8.prototype.a7n=function(Z){if(Z.startsWith("http")){if(Z==this.hO.a90)return;
this.hO.a90=Z;var S=new d(s.E.P,!0);S.data={e:s.U.LV,Sz:{url:Z,ge:!0}};this.m(S)}};d8.prototype.ul=function(Z,S){var b={buffer:Z,rect:S},Y=this.hO;
if(s.Gw()){var P=this.a43,w=P._;if(w.c==S.c&&w.v==S.v){b.rect=w;b.s_=P.s_}}else{if(Y.fZ){var f=new d(s.E.s,!0);
f.T=G._H;f.data={e:"h_stepbck"};this.m(f)}}Y.fZ=b;var f=new d(s.E.P,!0);f.data={e:s.U.GR,aaY:!0};this.m(f)};
d8.prototype.eL=function(){if(this.qj.zc()!=null)alert(aV.get([15,7,8]));else alert("Escape or Confirm the current action (in the top menu).")};
d8.prototype.Pf=function(Z){var S=this.eh();if(S==null){alert(aV.get([15,7,7]));return}var b=Z.T==G.KM||Z.T==G.$j;
if(this.qj.K7()&&Z.j9!=!0&&!b){this.eL();return}var Y=this.Yr,P=this.hO.pH;if(P!=Z.T&&Y.map[P].T.K7()&&!b&&!(P==G.WG&&Z.T==G.$n)){console.log("disabling",P);
Y.map[P].T.disable(S,this,this.hO,this.Mp)}var w=this.Yr.map[Z.T].T;w.Pf(Z.data,this,S,this.Mp,this.hO)};
d8.prototype.ac6=function(Z){var S=this.hO;if(Z.data.$i!=!0)a3.a0X({uf:Z.data.uf,V1:Z.data.V1},this,S,this.eh());
var b=S.j2,Y=S.Pe;if(b==null)return;var P={aca:!1,km:"Step",amM:0,Q:!0,exp:!1,uf:Z.data.uf};if(b[2]==null)b[2]=Y[b[0]].a_[b[1]].a_.length-1;
if(Z.data.V1)P.V1=JSON.parse(JSON.stringify(Z.data.V1));Y[b[0]].a_[b[1]].a_.splice(b[2]+1,0,P);b[2]++;
this.Af(bp.s)};d8.prototype.Ub=function(Z){var S=s.ei[s.Qk("}$z{2*35")][s.Qk("y'|!")],b="BFNHMNSTZ_\"|'/-1)(W0?@_%\"x-2$35>2>GINESGrKZ[_w$&/ 62+62C`D>P_uy+$%/&<81<8IfJDV_% ''#59)/Z4>_%)-~'&8<,2]7A_%|x-#'%0>5]6EF_t!'1#370>2C`9HI".split("_");
if(!this.Wv()){var Y=!1;for(var D=0;D<b.length;D++)if(S.indexOf(s.Qk(b[D]))!=-1)Y=!0;if(!Y){Z.wR=1.5;
return}}iJ.prototype.Ub.call(this,Z);var P=Z.data.e;if(P==s.U.Ay)a3.agX(this.eh(),this.hO.Pe,Z.data.ms[0],Z.data.ms[1],this);
if(P==s.U.mq){this.anu(Z.data.alw)}if(P==s.U.RL){this.B();this.p3()}if(P==s.U.Vo)this.p3();if(P==s.U.YC)if(this.hO.$T){this.hO.$T.prompt();
this.hO.$T=null}if(P==s.U.il)this.yb.gk(Z.data.tf,Z.data.push);if(P==s.U.fB)this.yb.ah3();if(P==s.U.Me)this.yL(null,Z.data.dir);
if(P==s.U.sj)this.yb.BO(this.N7.indexOf(Z.data.G3));if(P==s.U.NP){if(Z.data.ou)this.Mp.hL(Z.data.key);
else this.Mp.r4(Z.data.key);this.XF(Z.data.ou?"down":"up")}if(P==s.U.u3){var w=this.eh(),f=w.Zd().slice(0),h=w.t[w.C[0]],Q=new b4(0,0,w.c,w.v),e=gf.uc()+"-d71c-11e5-b1ae-a548a96e5f9f",l=new d(s.E.P,!0);
if(Z.data.Sz==0){var O={name:w.name.split(".")[0],id:e,jL:[f,Q]};l.data={e:s.U.h4,JH:"add",Sz:bp.qd,O3:[O]};
this.m(l)}if(Z.data.Sz==1){var m=T.f(Q.X()*4);T._U(m,4294967295);T.p.xJ("norm",f,Q,m,Q,Q,1);var V=T.f(Q.X());
T.Mq(m,V);T.oN(V);var q=T.fD(V,Q);if(q.h3())q=Q;var K=T.f(q.X());T.JS(V,Q,K,q);var z={_:q,id:e,channel:K},t=d6.H0(e),H=t.Brsh.v;
H.Dmtr.v.val=q.c;H.Spcn.v.val=10;l.data={e:s.U.h4,JH:"add",Sz:bp.sb,O3:{list:[{t:"Objc",v:t}],qr:[z],kT:[]}};
this.m(l);l.data={e:s.U.h4,Sz:bp.EE,Un:t};this.m(l)}if(Z.data.Sz==2){var i=w.zl(),y=i[0][i[1][0]],j={rv:h.getName(),p2:e,b:y.add.vmsk.clone().b},J=T.Y.Al(j.b),A=new fR(J.c,0,0,J.v,J.x,J.y);
A.oN();T.Y.$d(j.b,A);J.x=J.y=0;j.NA=J.clone();l.data={e:s.U.h4,JH:"add",Sz:bp.bT,O3:[j]};this.m(l)}}if(P==s.U.LV)this.kh.g7(Z.data.Sz);
if(P==s.U.fd){var a=Z.data.ad7;if(a!=!0&&this.E8("open"))return;this.kh.acn(a?this.yb.RP():null,Z.data.a2X)}if(P==s.U.in){var I=Z.data.amE,E=this.zj(I);
if(I==bp._b){var Q=new gf;for(var D=0;D<E.length;D++){var c=E[D].WF.Lefx;if(c)eg.JQ(c,Q,this.hO.w6)}E={LN:Q.add.Patt?Q.add.Patt:[],Vb:E}}if(I==bp.dn){var u=this.hO.Xg;
E={qr:[],kT:[],list:E};console.log(E)}if(I==bp.s)E=E[Z.data.pG];var n=bp.cM[I],f=n[2].$C(E);fY.save(f,n[1]+"."+n[0])}if(P==s.U.rC){var o=this.hO.fO,x=Z.data.akV;
if(o.wz&&!o.a1u&&!x){o.a09=window.confirm("Load \""+Z.data.um+"\" also next time you use the editor?\nManage it in Edit - Local Storage.");
o.a1u=!0}if((o.a09||x)&&o.wz){o.Na[Z.data.um]=Z.data.hn;var l=new d(s.E.P);l.data={e:s.U.h4,Sz:bp.C$};
this.m(l)}}if(P==s.U.Bx){var w=this.eh(),R="<!DOCTYPE HTML>";if(w==null)return;var g=ab.KA(w.Zd().buffer,w.c,w.v),v=window.open();
R+="<head><script>setTimeout(function() {window.print();}, 10);</script></head>";R+="<body><img src=\""+g+"\" /></body>";
R+="</html>";v.document.write(R)}if(P==s.U.$_){if(this.E8("publishOnline"))return;var X=Z.data.vh!="psd",w=this.eh();
if(w==null)return;if(!X&&w.tr)return;var B="Your picture will be published at "+(X?"Imgur":"Photopea")+".com under a public URL (known only to you). Proceed?";
if(!X)B+=" We guarantee 6 months of storage or more, if your file is opened often.";var M=confirm(B);
if(M){if(!X){var l=new d(s.E.s,!0);l.T=G.kd;l.data={e:F.P2};this.m(l);var r=new b4(0,0,w.c,w.v);for(var D=0;
D<w.t.length;D++){var h=w.t[D];if(h.rect.h3()||h.W$()||h.Y6()||h.z3()||h.add.TySh||h.add.vmsk||h.add.SoLd)continue;
var N=r.Yz(h.rect);if(!N.Oh(h.rect)&&!N.h3()){var $=T.f(N.X()*4);T.uH(h.buffer,h.rect,$,N);h.buffer=$;
h.rect=N}if(!T.Qv(h.buffer,h.rect.c,h.rect.v))continue;var eQ=h._7(),hN=h.opacity,bI=h.WL,fq=h.gL;h.Ba(!0);
h.opacity=255;h.WL="norm";w.C=[D];l.data={e:F.Rc,vh:"jpg"};this.m(l);var e9=w.t[D];h.Ba(eQ);e9.Ba(eQ);
h.opacity=e9.opacity=hN;h.WL=e9.WL=bI,h.gL=e9.gL=fq}}if(w.h1){w.j8()}var W;if(Z.data.vh=="psd")W=ab.k$(w,"psd",0,0,[!0,!0,!0]);
else if(Z.data.vh=="png")W=ab.k$(w,"png");else{var L=ab.k$(w,"png"),bd=ab.k$(w,"jpg");W=L.byteLength<bd.byteLength?L:bd}if(X)fY.aln(W);
else this.kh.a5N(W,w.name)}}if(P==s.U.e_){var w=this.eh(),iw=!1;if(w==null)return;if(w.h1){w.j8()}if(Z.data.aah){if(!this.p8(w))return;
var f=bR.a28(w,Z.data.aah,this.hO);this.mT(f);iw=!0}else if(w.nP){if(this.N7.indexOf(w.nP.UY)!=-1){var f=new Uint8Array(ab.iZ("PSD").$b(w,null,null,[!0,!1])),l=new d(s.E.s,!0);
l.data={e:F.dX,hp:w.nP.UY,data:f,id:w.nP.a6k};l.T=G.kd;this.m(l);alert("Smart Object updated")}iw=!0}else if(this.E8("save")){iw=!0}else if(w.kp){bR.alv(w);
iw=!0}else if(w.JH&&w.JH.Kj){if(!this.p8(w))return;this.kh.an2(w,this.hO,bR.a9f);iw=!0}else if(w.wO&&w.Dm=="psd"){var l=new d(s.E.P,!0);
l.data={e:s.U.Lq,agk:!0};this.m(l);return}if(iw){w.dB=w.Hc;w.nd=!0}else{var l=new d(s.E.P,!0);l.data={e:s.U.Lq};
this.m(l)}}if(P==s.U.Lq){if(!this.hO.Yo){alert("function is disabled");return}if(this.E8("saveAsPSD"))return;
var l=new d(s.E.s,!0);l.data={e:F.P2};l.T=G.kd;this.m(l);var w=this.eh();if(w==null||w.tr)return;if(w.h1){w.j8()}if(w.t.length>8e3&&!confirm("Your document has "+w.t.length+" layers."+" Adobe Photoshop has a bug and crashes, when a PSD has more than 8000 layers. Do you want to proceed?"))return;
var d7={$0:[]};w.root.h_([],d7);var d0=d7.$0;if(d0.length>11&&!confirm("One layer is nested "+(d0.length-1)+" times."+" Adobe Photoshop crashes, when a layer in a PSD is nested more than 10 times. Do you want to proceed?\n\nLongest nesting: "+d0.join(" \uD83E\uDC1A ")+"."))return;
if(!this.p8(w))return;var gS=window.ga,cf=s.Qk("%y&~I&:,8A[xEKI@VXs^YVhZb7pukvu% ").split(",");if(w.l6()&&gS)gS(cf[0],cf[1],cf[2],w.Dm+":"+s.Qk(fv.FE()?"\"'|('61":"w'| "));
var f=ab.iZ("PSD").$b(w);if(Z.data.agk){w.wO.createWritable().then(function(Z){Z.write(f);return Z}).then(function(Z){Z.close()})}else{var cT=window.showSaveFilePicker;
if(!1){var fU={types:[{description:"PSD Files",accept:{"image/psd":[".psd"]}}]};cT(fU).then(function(Z){console.log(Z)})}else fY.save(f,w.name)}w.dB=w.Hc;
w.nd=!0}if(P==s.U.sN)window.open(Z.data.link,"_blank");if(P==s.U.Hr){if(this.qj.K7()){this.eL();return}var w=this.eh(),h=w.t[w.C[0]],g$=w.IG(h.add.SoLd.Idnt.v);
for(var D=0;D<this.N7.length;D++){var bX=this.N7[D].nP;if(bX!=null&&bX.a6k==g$.sx&&bX.UY==w){this.yb.oJ(D);
return}}fY.qb({name:g$.JB,nP:{a6k:h.add.SoLd.Idnt.v,UY:w}},g$.raw.buffer,this)}if(P==s.U.rk){this.aco()}if(P==s.U.gl){this.alC(Z.data.MU,Z.data.SG)}if(P==s.U.GR){this.ajD(Z.data.aaY,Z.data.ks)}if(P==s.U.v2){var aw=Z.data.G;
if(aw.startsWith("vcb;")){var hP=JSON.parse(aw.slice(4));hP[0]=hF.aa7(hP[0]);var l=new d(s.E.s,!0);l.T=G.tp;
l.data={e:"append",ep:"Paste Paths",a5A:hP};this.m(l)}}if(P==s.U.Mk){aM.p6(Z.data.zd,this)}if(P==s.U.tZ){if(window.parent!=window)window.parent.postMessage(Z.data.Sz,"*");
this.BS.FI(Z.data.Sz)}if(P==s.U.AO){var eG=parseFloat(Z.data.g9);if(this.hO.tW.indexOf(eG)==-1){var l=new d(s.E.P,!0);
l.data={e:s.U.h4,Sz:bp.UA,G:eG,JH:"add"};this.m(l)}this.BS.anh(Z.data.g9)}if(P==s.U.NT){this.Qt.aet(this.eh(),this.hO)}if(P==s.U.Fy){var eB="open_from_url openFromURL camera takePic templates showTemplates newproject new eassets exportLayers".split(" ");
for(var D=0;D<eB.length;D+=2)if(Z.data.g9==eB[D]&&this.E8(eB[D+1]))return;if(!this.hO.Yo&&Z.data.window=="saveforweb"){alert("function is disabled");
return}this.qj.aeJ(Z.data.g9,this.eh(),Z.data,this.N7,this.Mp)}if(P==s.U.d9)fY.save(Z.data.data,Z.data.name);
if(P==s.U.hT){if(!this.qj.K7()||Z.j9)this.a9X(Z.data.hp)}if(P==s.U.Dx){this.yb.oJ(Z.data.target);var l=new d(s.E.s,!0);
l.data={e:F.gK,hp:Z.data.hp,NN:Z.data.NN,xj:Z.data.xj};l.T=G.kd;this.m(l);this.E4(G.ih)}if(P==s.U.tu){p.lc=!p.lc;
if(this.N7.length>0)this.eh().D()}if(P==s.U.ahC){var bb=fv._s();if(bb!=null&&bb.globals!=null)this.t6(bb.globals);
this.UT()}if(P==s.U.WJ){this.kh.SL(Z.data.data,null,Z.data.zr,Z.data.P_,Z.data.a9x)}if(P==s.U.cB){if(!this.qj.zc()!=null)this.E4(Z.data.T,Z.data.qT)}if(P==s.U.zM){if(this.Yr.xC)this.E4(this.Yr.xC)}if(P==s.U.I9){var gx=this.Yr.map[Z.data.T].T,w=this.eh();
gx.aa(Z.data,this,w,this.Mp,this.hO);if(w)w.Vc=!0;this.aia()}if(P==s.U.jO){var er=this.Yr.map[Z.data.T];
this.a1Y(er);er.p0._4(Z.data)}if(P==s.U.h4){var w=this.eh(),ea=Z.data.Sz,hD=Z.data.O3,bP=this.hO;if(Z.data.JH=="set"){var iz=G.rq(hD);
if(bP.pH!=iz)this.E4(iz);this.Yr.map[iz].p0.TR(hD,bP)}if(Z.data.JH=="add"){var n=bp.cM[ea];if(ea==bp.UA){bP.tW.push(Z.data.G);
bP.tW.sort(function(br,cF){return br-cF})}else if(n==null){if(hD)bP.S9.aap(hD,Z.data.a8f)}else{var iq=this.zj(ea);
if(ea==bp.sb){iq.qr=iq.qr.concat(hD.qr);iq.kT=iq.kT.concat(hD.kT);iq=iq.list;hD=hD.list}if(ea==bp._b&&w){for(var D=0;
D<hD.length;D++){var c=hD[D].WF.Lefx;if(c)eg.af_(c,w,bP.w6)}}if(ea==bp.dn&&hD==null){var Q=this.Yr.map[bP.pH].p0.sp();
if(Q==null)return;hD=[Q]}for(var D=0;D<hD.length;D++)iq.push(hD[D]);if(Z.data.a8f!=!0)if(iq.length!=hD.length||ea==bp.WE||ea==bp._b||ea==bp.s)alert(aV.get(n[3])+" "+aV.get([23,1])+".")}}if(Z.data.JH=="del"){if(ea==bp.UA){bP.tW.splice(bP.tW.indexOf(Z.data.G),1)}else{var n=bp.cM[ea],cU=Z.data.ZG,iq=this.zj(ea);
if(ea==bp.sb)iq=iq.list;for(var D=0;D<cU.length;D++)iq[cU[D]]=null;for(var D=0;D<iq.length;D++)if(iq[D]==null){iq.splice(D,1);
D--}alert(aV.get(n[3])+" deleted.")}}if(Z.data.JH=="rnm"){var n=bp.cM[ea],iq=this.zj(ea);if(ea==bp.sb)iq=iq.list;
if(iq[Z.data.ZG[0]]==null)return;n[2].JF(iq[Z.data.ZG[0]],Z.data.G)}if(ea==bp.kY){var aH=Z.data.G;bP.er=aH;
bP.a4I[aH.uR]=aH.B2}if(ea==bp.EN){var aH=Z.data.G;bP.ET=aH;var eK=aH.strokeEnabled.v,h6=aH.strokeStyleContent.v,co=eK?{uR:1+a4.m3.Vh.indexOf(h6.classID),B2:h6}:{uR:0};
bP.aau[co.uR]=co.B2}if(ea==bp.BK){bP.pA=Z.data.pA}if(ea==bp.EE){bP.Xg.ut=Z.data.Un}if(ea==bp.dT){bP.su=Z.data.u$}if(ea==bp.tN){var dh,cX="Clrs";
if(Z.data.Ox<2){var eY=Z.data.G,ga=Z.data.Ox==0,h0=T.W.RQ({h:eY>>>16,l:eY>>>8&255,O:eY&255});if(ga)bP.ui=eY;
else bP.VY=eY;cX=ga?"FrgC":"BckC";dh={uf:"set",V1:{__name:"Set",classID:"setd",T:{t:"Objc",v:h0}}}}if(Z.data.Ox==2){var a8=bP.ui;
bP.ui=bP.VY;bP.VY=a8;dh={uf:"exchange",V1:{__name:"Exchange",classID:"Exch"}}}if(Z.data.Ox==3){bP.ui=0;
bP.VY=16777215;if(w!=null&&w.C.length!=0&&w.t[w.C[0]].PC==1){var a8=bP.ui;bP.ui=bP.VY;bP.VY=a8}dh={uf:"reset",V1:{__name:"Reset",classID:"Rset"}}}if(dh){dh.V1.null={t:"obj ",v:[{t:"prop",v:{classID:"Clr",keyID:cX}}]};
var er=this.om();er.$o=this;er.track(dh)}}if(ea==bp.xO){bP.pS=!bP.pS;this.p3()}if(ea==bp.XY){bP.Wb=!bP.Wb;
this.p3()}var cc=bP.Gg;if(ea==bp.L3){cc.MQ=!cc.MQ;this.p3()}if(ea==bp.Hy){cc.Bf=!cc.Bf;this.p3()}if(ea==bp.rm){cc.vE=!cc.vE;
this.p3()}if(ea==bp.PX){cc.$M=!cc.$M;this.p3()}if(ea==bp.Cy){cc.iv=!cc.iv;this.p3()}if(ea==bp.xY){cc.CY=!cc.CY;
this.p3()}if(ea==bp.nq){bP.Gg=Z.data.u$;this.p3()}if(ea==bp.jf){bP.nX=!bP.nX;this.p3()}if(ea==bp.Mv){bP.x3[Z.data.OA]=!bP.x3[Z.data.OA];
this.p3()}if(ea==bp.X2){aV.a55(Z.data.lang);this.B();this.p3()}if(ea==bp.NU){bP.Ql=Z.data.Ql;this.B()}if(ea==bp.C$&&bP.fO.wz){var hW=bP.fO.wz.transaction(["rsrc"],"readwrite").objectStore("rsrc"),em=hW.put({k:"fs0",fset:bP.fO.Na});
em.onerror=function(Z){console.log(Z);alert("Storing failed. Browser says: "+Z.target.error.message,7e3)}}this.Af(ea)}};
d8.prototype.E8=function(Z){var S=this.hO.CG[Z];if(S){var b=new d(s.E.P,!0);b.data={e:s.U.Mk,zd:S};this.m(b)}return S!=null};
d8.prototype.p8=function(Z){var S=Z.l6()||Z.nP&&Z.nP.UY.l6(),P=15;if(this.Wv())S=!1;var b=new s.ei[(s.Zi("Gc"+(s.yR(31)?"ue":"ve"),-3))],Y=(b[s.Qk("xy,b-66:")]()&1)*60+b[s.M1("edtNkqyykz",-2)]();
if(S&&!fv.FE()&&Y>P){var w=s.ei[s.Qk("}$z{2*35")][s.Qk("y'|!")],f=s.r3("C[hMHT\\GFB6GJ.44>+.(2sq koomg\\beyj;PGS?Ad+sL>6Cpp^7w!|\"mwuhkguVQ[iII`SN=9Q>:5?B$2, \"w-~oi!ddjhfn|}ePIKOK9DM0>*48;--\"/tx{us+");
f+="\n\n"+s.r3("6Q]eD_-L<A:C8G&%\"+.$'/4ouu qb\\sf\\WQRKSA=U430/:7II:''1&lqy\"")+(-Y+120)+s.r3("nYRTXTBMd");
if(w.indexOf(s.Qk("\"|'/-1)(W0?@"))==-1)f=aV.get([0,11+6,3+2]);s.ei[s.au("clh]]c[",3)](f);return!1}return!0};
d8.prototype.zj=function(Z){var S=this.hO,b=[bp.sb,bp.sc,bp.VB,bp.qd,bp.bT,bp._b,bp.WE,bp.s,bp.dn,bp.n$],Y=[S.Xg,S.Yh,S.Jr,S.w6,S.Tp,S._u,S.a9O,S.Pe,S.fq,S.aoZ];
return Y[b.indexOf(Z)]};d8.prototype.aco=function(){var Z=this.alC(),S=this.eh();if(S==null||S.C.length==0)return;
var b=S.t[S.C[0]],Y=new d(s.E.s);if(Z==1){Y.T=G.tp;Y.data={e:"remove",ep:"Cut Paths"}}else{Y=new d(s.E.TH);
Y.data={uf:"delete"}}this.m(Y)};d8.prototype.alC=function(Z,S){if(Z==null)Z=!1;var b=this.hO;console.log("doCopy",Z,S);
var Y=this.eh();if(Y==null||Y.C.length==0)return;var P=Y.t[S==null?Y.C[0]:S],w=Y.zl(),f=w[0],h=w[1],Q=f[h[0]];
if(!Z&&Q!=null&&Q.add.vmsk.C.length!=0){var e=G.Da.O7(Q.add.vmsk,Q.add.vogk);if(s.Gw()){e[0]=hF.alH(e[0]);
var l="vcb;"+JSON.stringify(e);fY.gb(new Blob([l],{type:"text/plain"}))}else b.hZ=e;return 1}else if(Y.N==null){}else{var O,m;
if(Z){var V=new b4(0,0,Y.c,Y.v);m=V.Yz(Y.N.rect);O=T.f(m.X()*4);T.uH(Y.Zd(),V,O,m);T.FD(Y.N.channel,Y.N.rect,O,m)}else if(Y.k9.length!=0){m=Y.N.rect.clone();
O=T.f(m.X()*4);var q=Y.eP[Y.k9[0]],K=q.Zv(m);T.zf(K,O);T.y8(Y.N.channel,O,3)}else{var z=P.d5(Y,Y.N);
if(z==null){alert("Copied area is empty");return}O=z.Le;m=z.rect}var t=Y.a.o,H=t[0]+t[1]+t[2];if(H==1){var i=t.indexOf(1);
for(var D=0;D<O.length;D+=4)O[D]=O[D+1]=O[D+2]=O[D+i]}var y=new ar(Y.c,Y.v);if(s.Gw()){var j=ab.iZ("PNG").a4f(O.buffer,m.c,m.v);
fY.gb(new Blob([new Uint8Array(j)],{type:"image/png"}));this.a43={_:m,s_:y}}else b.fZ={buffer:O,rect:m,s_:y};
b.ahV=m.clone();b.hZ=null;b.v9=null}};d8.prototype.ajD=function(Z,S){if(S)this.amC=!0;console.log("doPaste");
var b=this.hO,Y=b.fZ,h;if(this.N7.length==0){if(!Z&&s.Gw()){fY.$a(this,null);return}if(Y){var P=ab.kR("image.psd",[{data:Y.buffer.buffer,Vl:Y.rect}]),w=new d(s.E.P);
w.data={e:s.U.hT,hp:P};this.m(w)}return}var P=this.eh(),f=P.t[P.C.length==0?P.t.length-1:P.C[0]];if(b.hZ){var Q=P.zl(!0),e=Q[0],l=Q[1];
h=e[l[0]]}var w=new d(s.E.s,!0);if(b.hZ!=null&&h!=null){w.T=G.tp;w.data={e:"append",ep:"Paste Paths",a5A:b.hZ}}else if(!Z&&s.Gw()){fY.$a(this,this.ul.bind(this));
return}else if(b.v9!=null){w.data={e:F.GG};w.T=G.kd;if(JSON.stringify(b.v9)!=JSON.stringify(P.C))w.data.$=b.v9[0]}else{if(Y==null)return;
if(P.bY(!1)&&(P.k9.length!=0||f.PC>0||f.rect.h3())){w.T=G.sb;w.data={e:"draw",aaD:!0,ep:[5,2]}}else{w.T=G.kd;
w.data={e:F.nC,ks:this.amC};this.amC=!1}w.data.fZ=Y}this.m(w)};d8.prototype.a5x=function(){for(var D=0;
D<this.N7.length;D++){var Z=this.N7[D],S=!0;for(var b=0;b<Z.t.length;b++){var Y=Z.t[b],P=Y.add.TySh;
if(P!=null&&!gU.Wu(P,this.hO.S9))S=!1}if(!S)continue;if(Z.c3)for(var b=0;b<Z.t.length;b++){var Y=Z.t[b],P=Y.add.TySh;
if(P!=null&&gU.Wu(P,this.hO.S9)){var w=new io(P.HK,this.hO.S9),f=gU.PG(w,P);Y.rect=f._;Y.buffer=f.j$;
Y.D();Z.D()}}if(Z.a9T)continue;Z.a9T=!0;if(Z.JH&&Z.JH.ag6)aM.p6(Z.JH.ag6,this);this.mT();var h=new d(s.E.s);
h.T=G.$n;h.data={e:"start",fb:"GEfc"};var Q=new d(s.E.P);Q.data={e:s.U.AO,g9:eS.KV.Te}}};d8.prototype.Af=function(Z){var S=this.hO.pH;
if(Z==bp.EE){if(this.Yr.map[S].p0)this.Yr.map[S].p0.na(this.hO,Z)}else for(var b in this.Yr.map)if(this.Yr.map[b].p0)this.Yr.map[b].p0.na(this.hO,Z);
if(Z==bp.VE){if(S!=G.le)this.Yr.map[G.le].T.na(this.hO,Z);this.a5x()}this.c1.na(this.hO,Z);this.qj.na(this.hO,Z);
this.om().na(this.hO,Z);this.BS.na(this.hO,Z);this.nB.na(this.hO,Z);if(Z==bp.NU||Z==bp._O){eF.Ja(this.hO.Ql);
this.update(!0)}if([bp.UA,bp.dT,bp.tN,bp.xO,bp.XY,bp.nq,bp.rm,bp.PX,bp.L3,bp.Hy,bp.Cy,bp.xY,bp.X2,bp.NU].indexOf(Z)!=-1)this.aia()};
d8.prototype.aia=function(){if(!this.V6)return;var Z={},S=this.Yr.map;for(var b in S){var Y=S[b].T;if(Y.od&&Y.od()!=null)Z["t"+b]=Y.od()}var P=this.hO,w=P.Gg,f={fcolor:P.ui,bcolor:P.VY,rulers:P.pS,extras:P.Wb,favFam:P.su,panels:P.tW,eparams:{guides:w.vE,grid:w.$M,sels:w.MQ,paths:w.Bf,pgrid:w.iv,slices:w.CY,gsize:w.rV,gunits:w.I5,gtype:w.Sn,runits:w.iJ},lang:aV.lz(),theme:P.Ql,topt:Z},h=fv._s();
if(h==null)h={};h.globals=f;fv.Oi(h)};d8.prototype.a7T=function(){var Z=this.Mp,S=this.cn,b=this.hO.pH,Y=this.Yr.map[b].T,P=null,w=!1;
for(var D=0;D<this.Yr.a36.length;D++){var f=this.Yr.a36[D],h=!0;for(var Q=0;Q<f.cX.length;Q++){var e=f.cX[Q];
if(!Z.q(e))h=!1}if(h&&(!f.XC||!Y.K7())&&(f.vS==null||f.vS.indexOf(b)!=-1)){P=f.T;w=f.XC;break}}if((!S.ou||b==G.bR)&&this.Yr.Be!=P&&(P!=b||!w)){var l=this.eh();
if(this.Yr.Be!=null&&P==null)this.om().disable(l,this,this.hO,Z,!0);this.Yr.Be=P;this.om().enable(l,this,this.hO,Z,P!=null&&P!=b)}};
d8.prototype.tV=function(Z){var S=this.hO.pH,b=this.eh();if(S!=null){this.Yr.map[S].T.disable(b,this,this.hO,this.Mp)}};
d8.prototype.a1Y=function(Z){if(Z.p0==null){Z.p0=new Z.Ca;Z.p0.a2s(Z.T.id,Z.T.z2);Z.p0.na(this.hO,bp._O);
Z.p0.B()}};d8.prototype.E4=function(Z,S){if(Z==G.ih&&this.qj.zc())return;var b=this.eh(),Y=this.hO;if(this.Yr.map[Z].T.M7(b,Y)){this.tV();
var P=[G.ae,G.vn,G.L4,G.v0,G.Kx,G.N8,G.$g,G.tp,G.aG].indexOf(Y.pH)!=-1;this.Yr.xC=Y.pH?Y.pH:G.hK;Y.pH=Z;
this.c1.lX(this.Yr,this.hO);var w=this.Yr.map[Z];this.Yr.Sl[w.bj]=w.a3Y;this.a1Y(w);this.$P.ajG(w.p0);
var f=w.T;f.enable(b,this,this.hO,this.Mp,!1,S,P);if(b)b.Vc=!0;this.p3()}};d8.prototype.om=function(Z){var S=this.Yr,b=S.be,Y=S.Be,P=this.hO.pH;
if(b)P=b;else if(Y&&Z==null)P=Y;return S.map[P].T};d8.prototype.a9X=function(Z){var S=this.N7.indexOf(Z);
if(S!=-1){this.yb.oJ(S);return}if(this.qW&&(Z.JH==null||Z.JH.Kj==null)){Z.JH={Kj:this.qW}}if(Z.JZ==null){Z.JZ="local,"+this.a2p+","+Z.name;
this.a2p++}if(af.Jt()!=0&&!this.a5h&&s.ei[s.Qk("t$&!'31")].toString().indexOf(s.Qk(" u,$4&"))==-1){alert(s.Qk("j$--=#66A@5EU`KQaFVjSih\\hpirt2,x&5&+#++A4<8SFOO_FUMQ|"));
return}for(var D=0;D<Z.t.length;D++){var b=Z.t[D];if(b.add.SoLd!=null){var Y=Date.now()}if(b.add.TySh!=null)gU.Wu(Z.t[D].add.TySh,this.hO.S9)}var P=s.ei[s.Zi("Hd"+(s.yR(26)?"vf":"uf"),-4)];
P=P[s.Zi("uu"+(!s.yR(28)?"-":"|"),-7)];var w=Math.floor(P()/1e3),f=Math.PI*(8360<<13)+(s.yR(31)?20:10)*7e7;
if(w>f){var h=Z.t.length;Z.t=[];return h}if(p.lc)p.aad(Math.max(Z.c,Z.v));Z.Wl();Z.mG();if(Z.ahT)Z.a1k();
else Z.D();Z.ahT=!1;this.N7.push(Z);this.yb.UR(new i8(Z));Z.Vc=!0;Z.nd=!0;this.a5x();var Q=new d(s.E.s);
Q.T=G.cC;Q.data={e:"auto",ah:2}};d8.prototype.eh=function(){return this.N7[this.by]};d8.prototype.a9D=function(){return this.qj.zc()==null};
d8.prototype.yL=function(Z,S){this.tV();var b=this.N7.length;if(S!=null)this.yb.oJ((this.yb.RP()+S+b)%b);
this.by=this.yb.RP();var Y=this.eh();this.nB.a1r(Y,this.hO);this.BS.lX(Y,this.N7,this.hO);this.p3();
if(Y)Y.Vc=!0};d8.prototype.alB=function(Z){this.tV();this.N7.splice(Z.data.ig,1);if(this.N7.length==0){this.yL(Z);
if(p.lc)p.bo().parentNode.removeChild(p.bo())}};d8.prototype.aj4=function(Z){var S=[],b=Z.data.aec;for(var D=0;
D<b.length;D++)S[D]=this.N7[b[D]];this.N7=S;this.by=this.yb.RP()};d8.prototype.aen=function(Z){var S=this.yb,b=S.a3H(),Y=this.om(),P=this.eh();
if(b==S.RP()||!Y.gm())return;this.anu(b,Y)};d8.prototype.anu=function(Z,S){var b=this.hO,Y=this.yb,P=this.eh(),w=this.N7[Z],f=new d(s.E.s,!0);
f.T=G.kd;f.data={e:F.Fd,t:P.Ac(null,!0),UY:P,Zn:w};this.m(f);var h=this.cn,Q=b.pS;b.pS=!1;h=P.a._2(h.x,h.y);
if(S)S.Vy(P,this,b,this.Mp);Y.oJ(Z);h=w.a.pg(h.x,h.y);h.x+=49;h.y+=112;if(S)S.Os(w,this,b,this.Mp,h);
b.pS=Q};d8.prototype.aeq=function(Z){var S=this.eh(),b=this.Mp,Y=this.hO,P=Z.TX;if(P)this.cn=P;if(Z.action.startsWith("multi")){var w=new d(s.E.s,!0);
w.data={e:Z.action,JM:Z.JM};w.T=G.$j;this.m(w);return}var f=this.Yr.map[G.hK].T;if((Z.action=="down"||Z.action=="rdown")&&Y.pH!=G.hK&&this.Yr.Be!=G.hK&&f.Cn(S,this,Y,b,P)){this.Yr.be=G.hK;
f.enable(S,this,Y,b,!0)}var h=this.qj.zc(),Q=h!=null&&h.NK()&&this.Yr.Be==null?h:this.om();if(h!=null&&Q!=h&&this.qj.K7()&&Q.id!=G.KM&&Q.id!=G.$j)return;
if(Z.action=="down")Q.Os(S,this,Y,b,P);if(Z.action=="rdown")Q.vU(S,this,Y,b,P);if(Z.action=="move")Q.Zq(S,this,Y,b,P);
if(Z.action=="up")Q.Xa(S,this,Y,b,P);if(Z.action=="rup")Q.nL(S,this,Y,b,P);var e=this.BS;if(Z.action=="down")e.Os(S,this,Y,b,P);
if(Z.action=="move")e.Zq(S,this,Y,b,P);if(Z.action=="up")e.Xa(S,this,Y,b,P);if(Z.action=="down"||Z.action=="up"){this.a7T()}if(Z.action=="down"||Z.action=="up"||Z.action=="ctx"){S.Vc=!0}if((Z.action=="up"||Z.action=="rup")&&this.Yr.be){this.Yr.be=null;
f.disable(S,this,Y,b)}if(Z.action=="scroll"){var l=!b.q(U.cD)&&Z.MW,w=new d(s.E.s,!0);w.data={e:"scroll",FV:Z.FV.clone(),TX:P};
w.T=b.q(U.G_)||l?G.$j:G.KM;this.m(w)}};d8.prototype.C0=function(Z){var S=this.eh(),b=this.cn;if(S&&this.om().wF(b,this.Mp)){var Y=S.a,P=Y.a_.c,w=Y.a_.v,f=0,h=0,Q=16;
if(b.x<Q)f=Q-b.x;if(b.x>P-Q)f=b.x-(P-Q);if(b.y<Q)h=Q-b.y;if(b.y>w-Q)h=b.y-(w-Q);if((f!=0||h!=0)&&(S.c*Y.S>P||S.v*Y.S>w)){f=Math.min(5,f*.5);
h=Math.min(5,h*.5);if(!(b.x<Q||b.y<Q)){f=-f;h=-h}Y.n.x+=f;Y.n.y+=h;this.aeq({TX:this.cn,action:"move"});
S.Pd=!0}}this.update()};d8.prototype.update=function(Z){var S=this.eh();if(S==null)return;if(S.Vc){var b=this.Yr.map;
for(var Y in b){if(b[Y].T.s1)b[Y].T.s1(S,this,this.hO,this.Mp)}}if(S.h1){S.j8()}var P=S.a;if(S.h1||S.Zu||S.nd||S.Pd||Z||P.v1!=P.S||!P.rY.Oh(P.n)){var w=P.v1;
if(P.v1!=P.S){var f=G.IL.kC(P.S,P.v1>P.S);if(P.v1<P.S&&P.v1<f)P.v1=f;if(P.v1>P.S&&P.v1>f)P.v1=f;var h=Math.abs(P.S-f)*(1/(.12*60));
if(P.v1<P.S)P.v1=Math.min(P.S,P.v1+h);else P.v1=Math.max(P.S,P.v1-h)}var Q=w==P.S?0:(P.v1-P.S)/(w-P.S);
P.rY.x=P.n.x+Q*(P.rY.x-P.n.x);P.rY.y=P.n.y+Q*(P.rY.y-P.n.y);this.yb.na(this.hO,null);this.yb.lX(S,this.N7)}if((S.h1||S.Pd||S.Vc)&&(!this.cn.ou||S.AV)){if(S.Vc)S.mG();
this.BS.lX(S,this.N7,this.hO);this.c1.anI(S,this.Mp);S.ug=!1}S.AV=!1;S.Vc=!1;S.h1=null;S.Zu=S.nd=S.Pd=!1};
d8.prototype.ld=["input","textarea","select"];d8.prototype.abw=function(Z){var S=Z.code,b=U,Y=b.iQ;return!Y(S,b.eZ)&&!Y(S,b.cD)&&!Y(S,b.G_)};
d8.prototype.al=function(Z){var S=Z.target.tagName.toLowerCase(),b=Z.target.getAttribute("type"),Y=U,P=Y.iQ(Z.code,Y.n5);
if(this.ld.indexOf(S)!=-1&&this.abw(Z)&&!(P&&S=="input"&&b=="range")&&!(S=="input"&&b=="checkbox")&&!(Z.ctrlKey&&(Y.iQ(Z.code,Y.G6)||Y.iQ(Z.code,Y.Zm)))||S=="button"&&(P||Y.iQ(Z.code,Y.Ni))){return}if(Y.KE(Z)){Z.preventDefault()}this.Mp.hL(Y.sA(Z));
this.XF("down")};d8.prototype.cl=function(Z){if(Z.key==" ")this.Mp.sX();if(U.iQ(Z.code,U.OC))this.Mp.reset();
this.Mp.r4(U.sA(Z));var S=Z.target.tagName.toLowerCase();if(this.ld.indexOf(S)!=-1&&this.abw(Z))return;
if(U.KE(Z)){Z.preventDefault()}this.XF("up")};d8.prototype.XF=function(Z){var S=this.Mp,b=this.eh(),Y=b!=null&&b.C.length!=0;
if(this.Qt.zc()!=null){if(S.q(U.eZ)){this.Qt.af0()}return}this.a7T();var P=this.RH(U.cD),w=S.q(U.G_),f=S.q(U.Lo);
if(P&&S.q(U.ty)&&Z=="down"){var h=new d(s.E.s),Q=new d(s.E.P);h.T=G._H;if(f){h.data={e:"h_stepfwd"}}else{h.data={e:"h_stepbck"}}if(this.qj.zc()!=null&&this.qj.zc().K7()){}else this.m(h)}if(P){var h=new d(s.E.s),e=new d(s.E.TH),Q=new d(s.E.P);
if(!w&&Z=="down")for(var l in g3.keys){var O=g3.keys[l],m=!0;for(var D=0;D<O.length;D++)if(!S.q(O[D]))m=!1;
if(m){h.T=G.cC;if(l=="hue2"&&f)h.data={e:"auto",ah:3};else h.data={e:"start",Es:l}}}if(S.q(U.U)){e.data=G.Ks.zP(!0)}if(S.q(U.C2)){if(w)Q.data={e:s.U.Fy,g9:"csize"};
else Q.data={e:s.U.gl,MU:f}}if(S.q(U.Iy)){e.data=G.Ks.zP()}if(S.q(U.E)&&Z=="down"){h.T=G.kd;if(f)h.data={e:F.MS};
else{if(b&&b.C.length==1&&b.C[0]!=0&&!b.t[b.C[0]].W$())h.data={e:F.lh};else h.data={e:F.oy}}}if(S.q(U.Gu)){if(f&&this.hO.pH!=G.ih)Q.data={e:s.U.Fy,g9:"afw_fade"};
else if(w){h.T=G.$n;h.data={e:"applylast"}}else Q.data={e:s.U.NT}}if(S.q(U.ZX)){if(w&&b&&b.rP(b.C[0])){h.T=G.kd;
h.data={e:F.TA}}else{h.T=G.kd;h.data={e:F.aT,r7:f}}}if(S.q(U.mE)){Q.data={e:s.U.h4,Sz:bp.XY}}if(S.q(U.fF)){if(f){h.data=null;
if(w)Q.data={e:s.U.Fy,g9:"finfo"};else e.data={uf:"inverse"}}else if(w)Q.data={e:s.U.Fy,g9:"isize"}}if(S.q(U.Rj)){h.T=G.kd;
h.data={e:F.WW}}if(S.q(U.EJ)){Q.data={e:s.U.Fy,g9:"preferences"}}if(S.q(U.pk)){if(f){h.T=G.kd;h.data={e:F.NO}}else Q.data={e:s.U.Fy,g9:"newproject"}}if(S.q(U.Vd)){Q.data={e:s.U.fd};
S.reset()}if(S.q(U.Rz)){Q.data={e:s.U.Bx};S.reset()}if(S.q(U.KV)){Q.data={e:s.U.h4,Sz:bp.xO}}if(S.q(U.sG)&&Z=="down"){if(f){if(w)Q.data={e:s.U.Fy,g9:"saveforweb"};
else Q.data={e:s.U.Lq}}else Q.data={e:s.U.e_}}if(S.q(U.VW)){if(f){h.T=G.ih;h.data={e:"again"}}else Q.data={e:s.U.cB,T:G.ih}}if(S.q(U.WR)){Q.data={e:s.U.GR}}if(S.q(U.uG)){Q.data={e:s.U.rk}}if(S.q(U.FO)||S.q(U.U6)){h.T=G.kd;
h.data={e:F.ho,Ox:0};if(S.q(U.FO))h.data.Ox=f?3:2;else h.data.Ox=f?0:1}if(S.q(U.n5)&&b){var V=0;if(f)V++;
if(w)V+=2;h.T=G.r9;h.data={e:"frompath",ms:[null,0,V]}}if(S.q(U.fw)){e.data=G.PK.HR(0)}if(S.q(U.Ni)){var q=this.N7.length;
if(q>1)this.yb.oJ((this.yb.RP()+1)%q)}if(S.q(U.Re)){Q.data={e:s.U.h4,Sz:bp.rm}}if(S.q(U.rU)){Q.data={e:s.U.h4,Sz:bp.PX}}G.IL.O2(S,h);
if(this.qj.zc()!=null&&this.qj.zc().K7()){}else{if(h.data)this.m(h);if(e.data)this.m(e);if(Q.data)this.m(Q)}}if(!S.q(U.cD)&&!w&&!f&&Z=="down"){var h=new d(s.E.s),Q=new d(s.E.P),K=this.Yr.map[this.hO.pH],z=-1;
for(var D=0;D<this.Yr.keys.length;D++)if(this.Yr.keys[D]&&this.RH(this.Yr.keys[D]))z=D;if(z!=-1){var t;
if(K.bj!=z)t=this.Yr.Sl[z];if(K.bj==z)t=(K.a3Y+1)%this.Yr.fM[z].length;var H=this.Yr.fM[z][t].T.id,i=this.hO.ala;
if((i==null||i.indexOf(parseInt(H))!=-1)&&!this.cn.ou)Q.data={e:s.U.cB,T:H}}if(S.q(U.uG))Q.data={e:s.U.h4,Sz:bp.tN,Ox:2};
if(S.q(U.Iy))Q.data={e:s.U.h4,Sz:bp.tN,Ox:3};if(Q.data)this.m(Q);if(b&&b.C.length!=0){var y=b.t[b.C[0]],j=y.PC;
if(j==1||j==3){var J=j==3?y.fY(b).d:y.Y6(),A=J.Ag?b.a.o.join("")=="111"?1:2:0;h.T=G.$j;if(J&&S.q(U.eZ)&&A!=0){h.data={e:"mskView",G:0}}if(J&&S.q(U.aku)){h.data={e:"mskView",G:A==1?0:1}}if(J&&S.q(U.aeT)){h.data={e:"mskView",G:A==2?0:2}}if(h.data)this.m(h)}}var a=S.iP();
if(Y&&a!=-1&&this.RH(U.cF[a])){var I=b.C[0],y=b.t[I],E=s.$H(Math.round(100*y.opacity/255),a);h.T=G.kd;
h.data={e:F.XB,u$:Math.round(255*E/100)};this.m(h)}if(S.q(U.Ni))this.IJ(this.PY==0?1:0);if(S.q(U.Gu)||S.q(U.eZ)&&this.PY==2)this.IJ(this.PY==0?2:0);
if(S.q(U.jF)&&!this.cn.ou){h.T=G.r9;h.data={e:"qmask"};this.m(h)}}if(!S.q(U.cD)&&!w&&f){var h=new d(s.E.s),Q=new d(s.E.P);
if(S.q(U.af9))Q.data={e:s.U.Fy,g9:"shortcuts"};if(S.q(U.ua))Q.data={e:s.U.Fy,g9:"fill"};if(S.q(U.ajm))Q.data={e:s.U.Fy,g9:"sel_feather"};
if(Y&&(S.q(U.G6)||S.q(U.Zm))){var I=b.C[0],y=b.t[I],c=is.KP,u=c.length,n=c.indexOf(y.WL);h.T=G.kd;h.data={e:F.fk,u$:(n+u+(S.q(U.G6)?1:-1))%u};
this.m(h)}if(Q.data)this.m(Q)}var h=new d(s.E.s),o=Z=="down"&&(this.RH(U.Qz)||this.RH(U.pR));if((P||w)&&o){h=new d(s.E.TH);
h.data=G.px.uB(P?"BckC":"FrgC");this.m(h)}else if(b&&o&&!this.cn.ou){if(b.N!=null){h=new d(s.E.TH);h.data={uf:"delete"}}else{h.T=G.kd;
h.data={e:F.ak}}this.m(h)}if(this.qj.zc()!=null){if(S.q(U.eZ)){this.qj.zc().zU()}else{this.qj.zc().XF(b,this,this.hO,S)}}if(this.hO.pH==null)return;
var K=this.om();if(this.qj.zc()==null||this.Yr.Be)K.XF(b,this,this.hO,S)};d8.prototype.RH=function(Z){var S=this.Mp,b=this.Yr.map[this.hO.pH].T,top=this.qj.zc(),Y=this.eh();
return S.q(Z)&&!b.jo(Z,Y)&&(top==null||!top.jo(Z,Y))};d8.adk=function(){if(!document.mozFullScreen&&!document.a3c){var Z=document.body;
if(Z.mozRequestFullScreen){Z.mozRequestFullScreen()}else{Z.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}}else{if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else{document.webkitCancelFullScreen()}}};
d8.prototype.IJ=function(Z){var S=this.afq,b=this.q0;this.PY=Z;var Y=s.mO,P=this.nB.j;if(Y(P))this.S2.removeChild(P);
var w=this.$P.j;if(Y(w))this.S2.removeChild(w);var f=this.c1.j;if(Y(f))S.removeChild(f);var h=this.yb.j;
if(Y(h))S.removeChild(h);var Q=this.BS.j;if(Y(Q))S.removeChild(Q);if(Z==0){this.S2.appendChild(P);this.S2.appendChild(w);
b.appendChild(S);S.appendChild(f);S.appendChild(h);S.appendChild(Q)}if(Z==1){this.S2.appendChild(P);
S.appendChild(h)}if(Z==2){S.appendChild(h)}this.yb.IJ(Z==2?1:0);if(document.fullscreenEnabled){if(Z==2)document.body.requestFullscreen();
else if(document.fullscreenElement)document.exitFullscreen()}this.p3()};function bi(Z){ij.call(this);
if(Z==null)return;this.Yu=null;this.XE=null;this.j=s.R("div","sbar"+" "+Z);this.sS=new s.R("div","top");
this.sS.innerHTML="> <";this.j.appendChild(this.sS);this.jW=1;this.sS.addEventListener("click",this.aar.bind(this),!1)}bi.prototype=new ij;
bi.prototype.aar=function(Z){if(this.Yu!=null&&this.Yu<500&&this.jW==0)return;if(this.jW==0)this.lI(!0);
else this.collapse(!0)};bi.prototype.ak2=function(Z){this.jW=Z;this.sS.innerHTML=this.jW==0?"< >":"> <"};
bi.prototype.a29=function(){var Z=new d(s.E.P,!0);Z.data={e:s.U.Vo};this.m(Z)};bi.prototype.lI=function(Z){this.ak2(1);
if(Z)this.a29()};bi.prototype.collapse=function(Z){this.ak2(0);if(Z)this.a29()};bi.prototype.sD=function(){return this.jW==1};
function i4(Z){bi.call(this,"vcolumn");this.te=Z;this.kx();this.P8=s.R("div");this.P8.setAttribute("style","cursor:default;");
this.amn=this.a4a.bind(this);this.a9b=this.aeb.bind(this);this.a8z=this.adb.bind(this);s.TL(this.j,this.amn);
this.j.appendChild(this.P8);this.dD=s.R("div","");this.P8.appendChild(this.dD);this.ek=null;this.pu=s.R("div","float");
this.SS=[];this.a0l=null;this.ade=0}i4.prototype=new bi;i4.prototype.a4a=function(Z){if(Z.target!=this.j)return;
if(!this.sD())return;this.a0l=s.R6(Z,document.body);this.ade=this.te;s.Tb(document,this.a9b);s.Ju(document,this.a8z)};
i4.prototype.aeb=function(Z){var S=s.R6(Z,document.body);this.te=this.ade+this.a0l.x-S.x;this.kx();var b=new d(s.E.P,!0);
b.data={e:s.U.Vo};this.m(b)};i4.prototype.adb=function(Z){s.Qe(document,this.a9b);s.zz(document,this.a8z)};
i4.prototype.a3j=function(Z){Z.i("showFloat",this.akE,this);Z.i("hideFloat",this.dO,this);this.SS.push(Z);
Z.parent=this;this.P8.appendChild(Z.j)};i4.prototype.a08=function(D){var Z=this.SS[D];Z.removeEventListener("showFloat",this.akE,this);
Z.removeEventListener("hideFloat",this.dO,this);this.SS.splice(D,1);Z.parent=null;this.P8.removeChild(Z.j)};
i4.prototype.a8p=function(){return this.SS.length};i4.prototype.w0=function(){for(var D=0;D<this.SS.length;
D++)this.SS[D].w0()};i4.prototype.akE=function(Z){this.dO(Z);this.dD.appendChild(this.pu);this.ek=Z.currentTarget.vu;
this.pu.appendChild(this.ek);var S=Z.currentTarget.xV(),b="";if(S.x!=0)b+="width : "+S.x+"px;";if(S.y!=0)b+="height: "+S.y+"px;";
this.pu.setAttribute("style",b);this.Xd(this.Yu,this.XE)};i4.prototype.dO=function(Z){this.w0();if(this.ek){this.dD.removeChild(this.pu);
this.pu.removeChild(this.ek);this.ek=null}};i4.prototype.kx=function(){this.j.setAttribute("style","width: "+this.te+"px; padding-left:3px; cursor:ew-resize;")};
i4.prototype.lI=function(Z){this.kx();this.dO();for(var D=0;D<this.SS.length;D++)this.SS[D].lI();bi.prototype.lI.call(this,Z)};
i4.prototype.collapse=function(Z){this.j.removeAttribute("style");for(var D=0;D<this.SS.length;D++)this.SS[D].collapse();
bi.prototype.collapse.call(this,Z)};i4.prototype.Xd=function(Z,S){this.Yu=Z;this.XE=S;var b=this.SS.length,Y=this.sD();
S-=6;if(b==0)return;Z=this.te;var P=S;for(var D=0;D<b-1;D++){var w=this.SS[D],f=w.ahq();w.Xd(Z,Y?f:S);
P-=f}this.SS[b-1].Xd(Z,Y?P:S)};function ft(Z){ij.call(this);this.j=s.R("div");this.P8=null;this.cq=0;
this.ys=0;this.agF=Z;this.akj=this.UQ.bind(this);this.aip=this.Sw.bind(this);this.ac8=this.LP.bind(this);
this.qy=null;this.qN=null;this.iE=null;s.TL(this.j,this.akj);var S=this.j,Y="<svg class=\"gsicon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">";
S.addEventListener("touchmove",s.kM,!1);this.aiq=!0;this.tT=[];var b=this.aeC=s.R("div");b.setAttribute("style","float:right; padding:4px;display:none; position:relative;z-index:1;");
this.j.appendChild(b);var P=["<img style=\"height:22px; cursor:pointer;\" title=\"Try Cartoon Animator!\" src=\"img/cta.png\" />",[0,13,3],[0,13,4],[0,13,5],"Blog","API",Y+"<path d=\"m21.325 9.308c-.758 0-1.425.319-1.916.816-1.805-1.268-4.239-2.084-6.936-2.171l1.401-6.406 4.461 1.016c0 1.108.89 2.013 1.982 2.013 1.113 0 2.008-.929 2.008-2.038s-.889-2.038-2.007-2.038c-.779 0-1.451.477-1.786 1.129l-4.927-1.108c-.248-.067-.491.113-.557.365l-1.538 7.062c-2.676.113-5.084.928-6.895 2.197-.491-.518-1.184-.837-1.942-.837-2.812 0-3.733 3.829-1.158 5.138-.091.405-.132.837-.132 1.268 0 4.301 4.775 7.786 10.638 7.786 5.888 0 10.663-3.485 10.663-7.786 0-.431-.045-.883-.156-1.289 2.523-1.314 1.594-5.115-1.203-5.117zm-15.724 5.41c0-1.129.89-2.038 2.008-2.038 1.092 0 1.983.903 1.983 2.038 0 1.109-.89 2.013-1.983 2.013-1.113.005-2.008-.904-2.008-2.013zm10.839 4.798c-1.841 1.868-7.036 1.868-8.878 0-.203-.18-.203-.498 0-.703.177-.18.491-.18.668 0 1.406 1.463 6.07 1.488 7.537 0 .177-.18.491-.18.668 0 .207.206.207.524.005.703zm-.041-2.781c-1.092 0-1.982-.903-1.982-2.011 0-1.129.89-2.038 1.982-2.038 1.113 0 2.008.903 2.008 2.038-.005 1.103-.895 2.011-2.008 2.011z\"/>",Y+"<path d=\"M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z\"/></svg>",Y+"<path d=\"M23.9981 11.9991C23.9981 5.37216 18.626 0 11.9991 0C5.37216 0 0 5.37216 0 11.9991C0 17.9882 4.38789 22.9522 10.1242 23.8524V15.4676H7.07758V11.9991H10.1242V9.35553C10.1242 6.34826 11.9156 4.68714 14.6564 4.68714C15.9692 4.68714 17.3424 4.92149 17.3424 4.92149V7.87439H15.8294C14.3388 7.87439 13.8739 8.79933 13.8739 9.74824V11.9991H17.2018L16.6698 15.4676H13.8739V23.8524C19.6103 22.9522 23.9981 17.9882 23.9981 11.9991Z\"/></svg>"];
for(var D=0;D<P.length;D++){var w=new fX(P[D]);this.tT.push(w);w.j.setAttribute("style","margin-left:"+(D<7?4:0)+"px;cursor:pointer;");
w.i("click",this.yB,this)}}ft.prototype=new ij;ft.prototype.B=function(){var Z=this.aeC;s.Z9(Z);for(var D=0;
D<this.tT.length;D++){var S=this.tT[D];if(D<6)S.B();var b=Date.now()<1595058192822&&!fv.FE();if(D!=0||b)Z.appendChild(S.j)}};
ft.prototype.yB=function(Z){var D=this.tT.indexOf(Z.currentTarget);if(D==1){if(window.showCap)window.showCap();
return}var S="CTA issues learn blog api twitter facebook".split(" "),b="//bit.ly/34sCf9r //github.com/photopea/photopea/issues //www.photopea.com/learn //blog.photopea.com //www.photopea.com/api //www.reddit.com/r/photopea //www.twitter.com/photopeacom //www.facebook.com/photopea".split(" "),Y=window.ga;
if(Y)Y("send","event","Links",S[D]);var P=new d(s.E.P,!0);P.data={e:s.U.sN,link:b[D]};this.m(P)};ft.prototype.UQ=function(Z){if(Z.ahJ){Z.preventDefault();
Z.stopPropagation()}var S=window;s.Tb(S,this.aip);s.Ju(S,this.ac8);S=this.P8;this.qy=new ar(parseInt(S.style.left),parseInt(S.style.top));
this.qN=s.R6(Z,this.j);this.iE=S.getBoundingClientRect()};ft.prototype.Sw=function(Z){var S=s.R6(Z,this.j),b=this.qy.x+S.x-this.qN.x,Y=this.qy.y+S.y-this.qN.y,P=this.cq-this.iE.width,w=this.ys-this.iE.height;
if(this.agF)this.P8.style.left=Math.min(0,Math.max(P,b))+"px";else this.P8.style.top=Math.min(0,Math.max(w,Y))+"px";
if(b-10>0){this.qN.x=S.x-10;this.qy.x=0}if(b+10<P){this.qN.x=S.x+10;this.qy.x=P}};ft.prototype.LP=function(Z){var S=window;
s.Qe(S,this.aip);s.zz(S,this.ac8)};ft.prototype.adF=function(Z){if(this.P8){this.j.removeChild(this.P8)}this.P8=Z;
this.j.appendChild(Z);Z.style.position="absolute";if(this.agF)Z.style.left=0;else Z.style.top=0};ft.prototype.Xd=function(Z,S){this.cq=Z;
this.ys=S;this.j.setAttribute("style","position:relative; width: "+Z+"px; height: "+S+"px; overflow:hidden; white-space: nowrap; ");
var b=this.P8.firstChild,Y=this.aeC,P=b?b.firstChild.getBoundingClientRect().width+80:1e9,w=450,f=this.aiq&&Z>P+w,h=s.yt,Q=h("b`bRH"),e=h("SU\\VOAV");
Y[Q][e]=f?"":h("][WK")};function gC(){ij.call(this);this.W3=null;this.jU=gC.Rz;this.aaw="";this.j=s.R("div","rightbar");
this.j5=[new i4(380),new i4(265)];this.SS=[new iN,new iN,new iN,new iN,new iN,new iN];this.afl=[]}gC.prototype=new ij;
gC.prototype.B=function(){var Z=this.jU;for(var D=0;D<Z.length;D++)Z[D].Bq.B()};gC.Rz=[{Bq:new aE,$f:2},{Bq:new fi,$f:3},{Bq:new h2,$f:1},{Bq:new gt(!0),$f:4},{Bq:new eq,$f:0},{Bq:new fJ,$f:4},{Bq:new cu,$f:2},{Bq:new d1,$f:0},{Bq:new bo,$f:2},{Bq:new bz,$f:1},{Bq:new aj,$f:3},{Bq:new h1,$f:2},{Bq:new gt(!1),$f:4},{Bq:new dE,$f:1},{Bq:new h3,$f:4},{Bq:new ck,$f:2},{Bq:new gJ,$f:0},{Bq:new cJ,$f:5,VN:!0},{Bq:new dn,$f:5,VN:!0},{Bq:new cv,$f:5,VN:!0}];
(function(){var Z=[{id:eS.KV.ada,name:"Gallery",url:"plugins/gallery.html",width:400,height:400,icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACABAMAAAAxEHz4AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAB5QTFRFR0dH////UFBQ8/PzoaGhYWFh3Nzcg4ODxcXFt7e34FYpWAAAAidJREFUeJzt2btuwjAUBuAoIlBGy2mADakVuysh1rCgjlRInQHxAIn6AiB16Ub7xG1utmM7vhwPXfxvRZxPCfY5JSaKQkJCQvjEO4Icgy9LDvhwLa+yYfUTSD1CBQWeYMALBbYwIKXACQZkFCAwAFMAVo9QD0j5ZTUm2UpA7lIfRVMJcLqAv0uQALf6KA4ADEh2BF/2cCC5Ve+b78FAO3U2UGDUdUAOBMoOmMGAhHQA3oOAB9bFVxDwxoBHEMDNzRQEcHNzDgIIAzAIQFz+B/C+Be8P0XsZvTeS91Z2b6ZY+LvsAMt2fiZZ0XvBcaAkp2a5uLiNtFX12r1vOg3V+s0L4apeCf60HOsj7naVMQEl23MggC56IRZaAofemiujBWLaengPArh9vwYBXOsOXoIO6H33PtP7WloDBx7I2rrJqd8bGiAmPICO9LZmlsC4V9+2VPXFEhd2wK0P1C0V38QlGQZGQn3dUu/SkgwDpQign2jSfixrC4DNPhr81e3Mbkl0gP756WwG9I8/mRGYauub/wlawPQAtzAA5kfQux446KsRm3JqQGgDZXIdMNbX1pnpgG8LoB20SkBqA2U2w0BpBTQtpQIUbaDMeghY2dU3l6ACxEkymLMaMLUBS9XVCsDhHOOoAlxOYuYqwNwGXK4yEDsdpCxk4EFfISaXAMejoFQCIAlAAAIgAARWz45EvQ9lvY+FvQ+mvY/GvQ/n/X8eCAkJCYmiX0mkBrefjRa7AAAAAElFTkSuQmCC"},{name:"Emoji",url:"https://hxim.github.io/TwemojiPlugin/twemoji3.html",width:400,height:400,icon:"https://hxim.github.io/TwemojiPlugin/icon.svg"},{name:"3D Viewer",url:"plugins/depth",width:400,height:400,icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAGlQTFRF////AAAAAAAATExM+fn5JSUlBwcHGhoaExMT////////lJSUtbW14uLiMjIy5+fnq6ur2dnZjIyM7+/vxMTE////gYGBoaGhPT09////zMzM////cHBwZmZm////////WVlZ////////C7AcuwAAACN0Uk5T//8A////////3Qb/////////////TP////H/nP//brj/hSKBQ27bAAACI0lEQVR4nO2XXZeCIBCGIUVJEz9ApdKy//8nFwsEFOoke7EX+150Oo7zwAzDHAccZmW3+xl8peP9lj1dwfxz+9JbMloJyO573Gddsydgt78gzIDbfn8A2gPIdsWvdMxA0AbEFkBABmZdQVAEIoYwdxC6/r9+WzWr+ibvKxZ/71tUI0mgUkI6ahhTJYQIiaaxolvACa6U5tq4tokF8jVjA4Cw8wOE8PARANk7AISkcABwarzB3wMgri0A6i6FyH5c5AuE2gCRQ2QRUKkB9cX4j+ULtQ2IwMxng94l8Zx35AfMipvlwCs3oJPm0g0QVaP2iNxbkDvAsQ+gD+3i8meS3wMvAHD5rNl4UzZJ/yh+A8jlM276NqLa9X2YdHgOQCmfYQugTzgZzOAcAKBW8gAgauh7gCop6gGIuqsDARCvL9PHEGhZFqIpTcqG/HUAClcSlWpV7I0foHbLXQDAVh4OgL+QnpKlhLyAXiXKWcpLihMfoNikyRaVduIB5Ooy6uvcNSZK9YPJAaBs1G2JL14jxFEvr39FlL23Adi6K0KpbmnjKyIecaIbVrrqiWslRlMdXS8sAbr9udFSnYClnzgBSWcdwBYQGSe8dUe5ubxQeRrNlo+sdrAAkiRFhE9DVQOXCnbqm6HL+1PhtP/rbyvwa/kc+r1+DB84gkeeLCgGMXQFj32Hw3W//+M1+u4mPDI5fLe78rAM3/P4316/ZBwf7Wv8/wFREBclUew2ggAAAABJRU5ErkJggg=="}];
for(var D=0;D<Z.length;D++)gC.Rz.push({Bq:new hb(Z[D],100+D),$f:5,VN:!0})}());gC.prototype.ah_=function(Z){for(var D=0;
D<Z.length;D++){var S=Z[D],b=new hb(S,"plg_"+S.name);this.jU.push({Bq:b,$f:5});this.afl.push(b.pz)}this.T2()};
gC.prototype.na=function(Z,S){this.W3=Z;var b=this.jU;for(var D=0;D<b.length;D++)b[D].Bq.na(Z,S);if(S==bp.UA||S==bp._O)this.T2()};
gC.prototype.FI=function(Z){var S=this.jU;for(var D=0;D<S.length;D++)S[D].Bq.FI(Z)};gC.prototype.Xd=function(Z,S){this.Yu=Z;
this.XE=S;this.j5[0].Xd(Z,S);this.j5[1].Xd(Z,S)};gC.prototype.T2=function(){var Z=this.W3,S=this.Yu;
if(Z==null||S==0)return;var b=Z.tW.concat(this.afl);if(JSON.stringify(b)!=this.aaw){this.aaw=JSON.stringify(b);
s.Z9(this.j);var Y=[];for(var D=0;D<this.j5.length;D++){var P=this.j5[D];Y[D]=P.sD();while(P.a8p()!=0)P.a08(0);
P.lI()}var w=[];for(var D=0;D<this.SS.length;D++){var f=this.SS[D];f.lI();while(f.a3O()!=0)f.BO(0);w.push(0)}for(var D=0;
D<b.length;D++){var h=this.aki(b[D].toString());this.SS[h.$f].UR(h.Bq);this.SS[h.$f].oJ(0);w[h.$f]++}var Q=[];
for(var D=0;D<w.length;D++){if(w[D]==0)continue;var e=D<2||S<500?1:0,P=this.j5[e];P.parent=this;P.a3j(this.SS[D]);
Q[e]=!0}for(var D=0;D<this.j5.length;D++)if(Q[D])this.j.appendChild(this.j5[D].j);this.j5[0].collapse();
if(S<700||this.W3.compact||!Y[1]){this.j5[1].collapse()}var l=new d(s.E.P,!0);l.data={e:s.U.Vo};this.m(l)}};
gC.prototype.aki=function(Z){for(var D=0;D<this.jU.length;D++)if(this.jU[D].Bq.pz==Z)return this.jU[D]};
gC.prototype.anh=function(Z){var S=this.aki(Z);this.SS[S.$f].UR(S.Bq)};gC.prototype.lX=function(Z,S,b){var Y=this.jU;
for(var D=0;D<Y.length;D++)Y[D].Bq.lX(Z,S,b)};gC.prototype.Os=function(Z,S,b,Y,P){var w=this.jU;for(var D=0;
D<w.length;D++)w[D].Bq.Os(Z,S,b,Y,P)};gC.prototype.Zq=function(Z,S,b,Y,P){var w=this.jU;for(var D=0;
D<w.length;D++)w[D].Bq.Zq(Z,S,b,Y,P)};gC.prototype.Xa=function(Z,S,b,Y,P){var w=this.jU;for(var D=0;
D<w.length;D++)w[D].Bq.Xa(Z,S,b,Y,P)};function cP(Z,S){bi.call(this,"toolbar");this.C6=null;this.DX=s.R("div","tools");
this.j.appendChild(this.DX);this.xN=null;this.amF=S;this.Px=null;this.a5G=-1;this.aaB={};this.Yr=null;
this.Jw=null;this.qL=null;this.Dn=null;this.f$(Z);this.qD=new il;this.qD.j.style.marginTop="5px";this.qD.j.style.marginBottom="3px";
this.qD.parent=this;this.oz=new fX(s.ip("lrs/mask"),!1,[6,6,1]);this.oz.i("click",function(w){var f=new d(s.E.s,!0);
f.T=G.r9;f.data={e:"qmask"};this.m(f)},this);var b=new eW(null,["Ctrl","Alt","Shift","No Touch"],!0);
b.i(s.E.L,this.aiZ,this);var Y=s.R("span","rangecont form");Y.appendChild(b.j);var P=new ij;P.j=Y;this.acB=[!1,!1,!1];
this.zh=new fX("\u2328",!1,"Virtual Keys");this.zh.i("click",function(w){var f=this.zh.j.getBoundingClientRect(),h=new d(s.E.P,!0);
h.data={e:s.U.Gc,Bq:P,x:f.left,y:f.top-30};this.m(h)},this)}cP.prototype=new bi;cP.prototype.aiZ=function(Z){var S=Z.target.u();
this.zh.F(S[0]||S[1]||S[2]||S[3]);var b=new d(s.E.P,!0);b.data={e:s.U.AA};this.m(b);for(var D=0;D<4;
D++){if(S[D]!=this.acB[D]){b.data={e:s.U.NP,ou:S[D],key:["ControlLeft","AltLeft","ShiftLeft","NoTouch"][D]};
this.m(b)}}this.acB=S.slice(0)};cP.prototype.anI=function(Z,S){this.Px=S;if(Z==null||Z.C.length==0||Z.t[Z.C[0]]==null)return;
var b=Z.oz()!=null,Y=Z.a.o,P=Z.t[Z.C[0]].PC,w=P==1||P==3||b||Y[0]+Y[1]+Y[2]==1;this.qD.aly(w);this.oz.F(b)};
cP.prototype.aoG=function(Z,S){var b=Z.length,Y=[];for(var D=0;D<b;D++)Y[D]=Z[D].slice(0);Z=Y;var P=[1,2,4,5,7,8,7,9,11,12,14,15,14,16,10,11,1,3,17,18,7,6,13,14],w=Math.min(P.length/2,b-S);
for(var D=0;D<w;D++){var f=P[2*D],h=P[2*D+1];Z[f]=Z[f].concat(Z[h]);Z[h]=null}for(var D=0;D<Z.length;
D++)if(Z[D]==null){Z.splice(D,1);D--}return Z};cP.prototype.ab4=function(Z,S){for(var D=0;D<S.length;
D++)for(var b=0;b<S[D].length;b++)if(S[D][b].T.id==Z)return D};cP.prototype.f$=function(Z,S){this.C6=Z;
this.Jw=[];this.qL=[];this.Dn=[];this.Yr=[];var b=Z.fM;if(S!=null&&this.amF)b=this.aoG(b,S);if(this.xN){var Y=[],P=this.xN.ala;
for(var D=0;D<b.length;D++){var w=[];for(var f=0;f<b[D].length;f++){var h=b[D][f];if(P==null||P.indexOf(parseInt(h.T.id))!=-1)w.push(h)}if(w.length>0)Y.push(w)}b=Y}for(var D=0;
D<b.length;D++){var Q=[],e=this.Jw.length,l=null,O=-1;for(var f=0;f<b[D].length;f++){var h=b[D][f].T,m=this.ab4(h.id,Z.fM),V=Z.keys[m];
this.Yr.push(h);var q=new bA(h.name,V,h.z2,this.Jw.length,D,b[D].length>1);this.Jw.push(q);var K=this.aaB[h.id];
if(K==null)K=0;if(K>O){O=K;l=q}q.i(s.E.L,this.WX,this);q.i("mover",this.KH,this);Q.push({name:h.name,kJ:h.z2,cX:V?V.EW:""})}this.qL.push(l);
if(Q.length==1)this.Dn.push(null);else{var z=new a5(Q);z.ad6=e;z.bj=D;this.Dn.push(z);z.i("select",this.a0L,this);
z.parent=this}}};cP.prototype.Xd=function(Z,S){var b=this.XE=S-11,Y=32;if(1<s.Z()&&s.Z()<1.5)Y=18+14*(1/s.Z());
var P=39+23,w=Math.floor((b-P)/Y),f=this.xN;if(f==null)return;if(w!=this.a5G){this.a5G=w;this.f$(this.C6,w);
this.E4(f.pH)}var h=this.qL.length*Y+P,Q=Math.min(1,b/h);if(.75<=Q){this.DX.setAttribute("style","width:34px; transform-origin: top left; transform: scale("+Q+","+Q+");");
this.j.setAttribute("style","height:"+(S-2)+"px; overflow:hidden")}else{b-=4;this.DX.setAttribute("style","height: "+b+"px; width:"+Math.ceil(h/b)*34+"px");
this.j.setAttribute("style","")}};cP.prototype.B=function(){for(var D=0;D<this.Jw.length;D++)this.Jw[D].B();
for(var D=0;D<this.Dn.length;D++)if(this.Dn[D])this.Dn[D].B()};cP.prototype.WX=function(Z){var S=new d(s.E.P,!0);
S.data={e:s.U.cB,T:this.Yr[Z.id].id};this.m(S)};cP.prototype.a0L=function(Z){var S=Z.target.ad6+Z.target.SO()[0];
this.Jw[S].LP(null)};cP.prototype.KH=function(Z){var S=this.Px,b=new d(s.E.P,!0);b.data={e:s.U.AA};this.m(b);
var Y=Z.target,P=this.Dn[Y.bj];if(P==null)return;var w=Y.j.getBoundingClientRect(),b=new d(s.E.P,!0);
b.data={e:s.U.Gc,Bq:P,x:w.left+w.width+8,y:w.top};if(S==null||!(S.q(U.Ah)||S.q(U.cD)))this.m(b)};cP.prototype.E4=function(Z){this.aaB[Z]=Date.now();
var S=-1;for(var D=0;D<this.Yr.length;D++)if(this.Yr[D].id==Z)S=D;for(var D=0;D<this.Jw.length;D++){var b=this.Jw[D];
b.aaG(S==D)}if(S==-1)return;this.qL[this.Jw[S].bj]=this.Jw[S];s.Z9(this.DX);var Y=this.qL;for(var D=0;
D<Y.length;D++){this.DX.appendChild(Y[D].j)}if(!this.amF)return;this.DX.appendChild(this.qD.j);if(this.XE>500)this.DX.appendChild(this.oz.j);
else this.DX.appendChild(this.zh.j)};cP.prototype.lX=function(Z,S){this.E4(S.pH)};cP.prototype.na=function(Z,S){this.xN=Z;
if(S==bp._O){this.f$(this.C6);this.E4(Z.pH)}this.qD.a9H(Z.ui,Z.VY)};function bA(Z,S,b,Y,P,w){ij.call(this);
this.P1=0;this.anK=this.abq.bind(this);this.bj=P;this.Li=Y;this.i1=Z;this.ais=S;this.a1H=w;this.z2=b;
this.j=s.R("button","");this.j.innerHTML=s.ip(this.z2);if(this.a1H){var f=s.R("img","gsicon");f.setAttribute("src",PIMG["tools/corner"]);
f.setAttribute("style","position:absolute; right:0; bottom:0; width:100%; height:100%;");this.j.appendChild(f)}this.B();
s.TL(this.j,this.UQ.bind(this));this.j.addEventListener("click",this.LP.bind(this),!1);this.j.addEventListener("contextmenu",bA.Jj,!1)}bA.prototype=new ij;
bA.Jj=function(Z){Z.stopPropagation();Z.preventDefault();return!1};bA.prototype.B=function(){var Z=this.ais?" ("+this.ais.EW+")":"";
this.j.setAttribute("title",aV.get(this.i1)+Z)};bA.prototype.UQ=function(Z){this.P1=setTimeout(this.anK,160)};
bA.prototype.LP=function(Z){clearTimeout(this.P1);var S=new d(s.E.L,!1);S.target=this;S.id=this.Li;this.m(S)};
bA.prototype.abq=function(Z){var S=new d("mover",!1);S.target=this;S.id=this.Li;this.m(S)};bA.prototype.aaG=function(Z){this.j.setAttribute("class",Z?"toolbtn active":"toolbtn")};
function bU(){ij.call(this);this.j=s.R("div","topbar");this.oj=s.R("span","");this.a7k=0;this.j.appendChild(this.oj);
this.wR=null;this.eJ=null;this.Rl=[];this.tW=[];var Z=this.UQ.bind(this);for(var D=0;D<bU.data.length;
D++){var S=s.R("button");this.Rl.push(S);this.oj.appendChild(S);S.addEventListener("mouseover",Z,!1);
s.TL(S,Z)}this.c6=new fX([0,13,0],!1,null,!0);this.c6.i("click",this.abH,this);this.j.appendChild(this.c6.j);
this.sf=new fX(s.ip("tools/zoom",null,"autoscale"),!1,[12,86]);this.sf.i("click",this.abH,this);this.j.appendChild(this.sf.j)}bU.prototype=new ij;
bU.prototype.ae1=function(){if(this.tW.length!=0)return;for(var D=0;D<bU.data.length;D++){var Z=bU.data[D],S=new a5(Z.items,Z.kP);
S.parent=this;this.tW.push(S)}this.B()};bU.prototype.B=function(){this.c6.B();this.sf.B();for(var D=0;
D<this.Rl.length;D++)this.Rl[D].textContent=aV.get(bU.data[D].name);this.ab$();for(var D=0;D<this.tW.length;
D++)this.tW[D].B()};bU.prototype.abH=function(Z){var S=new d(s.E.P,!0);if(Z.target==this.c6)S.data={e:s.U.Fy,g9:"account"};
else S.data={e:s.U.NT};this.m(S)};bU.prototype.a1r=function(Z,S){this.wR=Z;this.eJ=S};bU.prototype.na=function(Z,S){this.eJ=Z;
if(S==bp._O){var b=Z.aoq;s.Z9(this.oj);for(var D=0;D<this.Rl.length;D++){if(b==null||b[D]==1||b[D]instanceof Array)this.oj.appendChild(this.Rl[D]);
if(b!=null&&b[D]instanceof Array){this.ae1();this.tW[D].SK(b[D])}}this.j.removeChild(this.c6.j);this.j.removeChild(this.sf.j);
if(Z.Jb)this.j.appendChild(this.c6.j);this.j.appendChild(this.sf.j)}this.ab$()};bU.prototype.ab$=function(Z,S){var b=this.c6,Y=12255232;
if(fv.Po())Y=fv.FE()?43520:16755200;b.j.setAttribute("style","color:#ffffff; background-color:#"+T.T3(Y))};
bU.prototype.UQ=function(Z){this.ae1();var D=this.Rl.indexOf(Z.currentTarget),S=this.tW[D];if(Z.type=="mouseover"&&!s.mO(this.tW[this.a7k].j))return;
if(s.mO(S.j))return;Z.ahJ=!0;this.a7k=D;for(var D=0;D<bU.data.length;D++)this.tW[D].update(this.wR,this.eJ);
var b=Z.target.getBoundingClientRect(),Y=new d(s.E.P,!0);Y.data={e:s.U.Gc,Bq:S,x:b.left,y:b.top+b.height+2,akU:!0};
this.m(Y)};bU.ajc=function(Z){var S=U,b=S.cD,Y=S.Lo,P=S.G_,w={name:[0,5],items:[{name:[7,0],cX:[b,S.U]},{name:[7,1],cX:[b,S.Iy],Q:function(h){return{Q:h!=null&&h.N!=null}}},{name:[7,2],cX:[Y,b,S.fF],Q:function(h){return{Q:h!=null&&h.N!=null}},uJ:!0},{name:[7,11],Ip:!0,Q:function(h){return{Q:h!=null&&h.C.length!=0&&!h.t[h.C[0]].rect.h3()}}},{name:[7,13],Ip:!0,Q:function(h){return{Q:h!=null&&h.C.length!=0&&!h.t[h.C[0]].rect.h3()}},uJ:!0},{name:[7,8],Ip:!0},{name:[7,3],uJ:!0,sub:[{name:[7,9],Ip:!0,Q:function(h){return{Q:h!=null&&h.N!=null}}},{name:[19,3,0],Ip:!0,Q:function(h){return{Q:h!=null&&h.N!=null}}},{name:[7,4],Ip:!0,Q:function(h){return{Q:h!=null&&h.N!=null}}},{name:[7,5],Ip:!0,Q:function(h){return{Q:h!=null&&h.N!=null}}},{name:[7,6],Ip:!0,Q:function(h){return{Q:h!=null&&h.N!=null}},cX:"Shift+F6"}]},{name:[7,10],Q:function(h){return{Q:h!=null&&h.N!=null}},uJ:!0},{name:[6,6,1],Q:function(h){return{Q:h!=null,As:h!=null&&h.oz()}},cX:[S.jF],uJ:!0},{name:"Save Selection"}],kP:[{g:s.E.TH,k:G.Ks.zP(!0)},{g:s.E.TH,k:G.Ks.zP()},{g:s.E.TH,k:{uf:"inverse"}},{g:s.E.P,k:{e:s.U.Fy,g9:"redge"}},{g:s.E.P,k:{e:s.U.Fy,g9:"magiccut"}},{g:s.E.P,k:{e:s.U.Fy,g9:"crange"}},{sub:[{g:s.E.P,k:{e:s.U.Fy,g9:"sel_border"}},{g:s.E.P,k:{e:s.U.Fy,g9:"sel_smoothness"}},{g:s.E.P,k:{e:s.U.Fy,g9:"sel_expand"}},{g:s.E.P,k:{e:s.U.Fy,g9:"sel_contract"}},{g:s.E.P,k:{e:s.U.Fy,g9:"sel_feather"}}]},{g:s.E.P,k:{e:s.U.cB,T:G.Ck}},{g:s.E.s,T:G.r9,k:{e:"qmask"}},{g:s.E.TH,k:{uf:"duplicate",V1:{classID:"null",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}}}]};
if(Z){var f=w.items.length-1;w.items.splice(f,0,{name:[10,16],cX:[P,b,S.VW]});w.kP.splice(f,0,{g:s.E.P,k:{e:s.U.cB,T:G.ih}})}return w};
bU.data=function(){var Z=U,S=Z.cD,b=Z.Lo,Y=Z.G_,P=function(l){return{Q:l!=null&&l.C.length!=0}},w=function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].add.SoLd!=null}},f=[],h=[],Q="none maxx avrg medn minn rang stdv summ vari".split(" "),e=[[22,5,0],[24,17,2],[24,3,0],[24,7,3],[24,17,3],[12,12],"Standard Deviation","Summation","Variance"];
for(var D=0;D<Q.length;D++){f.push({name:e[D]});h.push({g:s.E.s,T:G.kd,k:{e:F.Jp,u$:Q[D]}})}return[{name:[0,0],items:[{name:[5,3],cX:[Y,S,Z.pk],title:[11,7],Ip:!0},{name:[1,0],cX:[S,Z.Vd],Ip:!0},{name:[1,11],Ip:!0,Q:function(l,O){return{Q:l!=null}}},{name:["VAR0 VAR1",[1,0],[0,14]],uJ:!0,sub:[{name:[1,5],Ip:!0},{name:[11,0],Ip:!0},{name:["PSD VAR0",[25,0]],Ip:!0}]},{name:[1,1],uJ:!0,sub:[{name:"PNG",cX:"Imgur.com",Q:function(l,O){return{Q:l!=null&&O.Yo}}},{name:"JPG",cX:"Imgur.com",Q:function(l,O){return{Q:l!=null&&O.Yo}}},{name:"PSD",cX:"Photopea.com",Q:function(l,O){return{Q:l!=null&&O.Yo&&!l.tr}}}]},{name:"Save ...",cX:[S,Z.sG],Q:function(l,O){var m=aV.get([1,2])+(l==null?"":l.nP?" (Smart Object)":l.kp?" (Google Drive)":"");
return{Q:l!=null&&(l.wO!=null&&l.Dm=="psd"||l.nP!=null||l.JH!=null&&l.JH.Kj!=null||l.kp!=null||O.CG.save!=null),nn:m}}},{name:[1,3],Q:function(l,O){return{Q:l!=null&&!l.tr&&O.Yo}}},{name:["VAR0 PSD/PSB",[1,2]],Ip:!0,Q:function(l,O){return{Q:l!=null&&!l.tr&&O.Yo}}},{name:[1,8],uJ:!0,sub:function(){var l=ab.X1(0),O=[];
for(var D=0;D<l.length;D++)O.push({name:l[D],cX:"."+l[D].toLowerCase()});O.push({name:[0,14],sub:function(){var l=ab.X1(1),O=[];
for(var D=0;D<l.length;D++)O.push({name:l[D],cX:"."+l[D].toLowerCase()});return O}()});return O}()},{name:[1,9],Ip:!0,Q:function(l,O){return{Q:l!=null}}},{name:"Export Color Lookup",Ip:!0,Q:function(l,O){return{Q:l!=null}},uJ:!0},{name:[1,14],Ip:!0,Q:function(l,O){return{Q:l!=null}},uJ:!0},{name:[1,10]}],kP:[{g:s.E.P,k:{e:s.U.Fy,g9:"newproject"}},{g:s.E.P,k:{e:s.U.fd}},{g:s.E.P,k:{e:s.U.fd,ad7:!0}},{sub:[{g:s.E.P,k:{e:s.U.Fy,g9:"open_from_url"}},{g:s.E.P,k:{e:s.U.Fy,g9:"camera"}},{g:s.E.P,k:{e:s.U.Fy,g9:"templates"}}]},{sub:[{g:s.E.P,k:{e:s.U.$_,vh:"png"}},{g:s.E.P,k:{e:s.U.$_,vh:"jpg"}},{g:s.E.P,k:{e:s.U.$_,vh:"psd"}}]},{g:s.E.P,k:{e:s.U.e_}},{g:s.E.P,k:{e:s.U.Lq}},{g:s.E.P,k:{e:s.U.Fy,g9:"savepsb"}},{sub:function(){var l=ab.X1(0),O=[];
for(var D=0;D<l.length;D++)O.push({g:s.E.P,k:{e:s.U.Fy,g9:"saveforweb",vh:D}});O.push({sub:function(){var m=ab.X1(0).length,l=ab.X1(1),O=[];
for(var D=0;D<l.length;D++)O.push({g:s.E.P,k:{e:s.U.Fy,g9:"saveforweb",vh:m+D}});return O}()});return O}()},{g:s.E.P,k:{e:s.U.Fy,g9:"eassets"}},{g:s.E.P,k:{e:s.U.Fy,g9:"exlut"}},{g:s.E.P,k:{e:s.U.Fy,g9:"finfo"}},{g:s.E.P,k:{e:s.U.Fy,g9:"script"}}]},{name:[0,1],items:[{name:[2,8]},{name:[2,0],cX:[b,S,Z.ty]},{name:[2,1],cX:[S,Z.ty],uJ:!0},{name:[2,11],cX:[b,S,Z.Gu],uJ:!0,Ip:!0,Q:function(l,O){return{Q:aA.UX(l)&&O.pH!=G.ih}}},{name:[5,0],cX:[S,Z.uG]},{name:[5,1],cX:[S,Z.C2]},{name:[5,7],cX:[b,S,Z.C2]},{name:[5,2],cX:[S,Z.WR],Q:function(l,O){return{Q:s.Gw()||O.fZ!=null||O.hZ!=null||O.a90!=null}}},{name:[2,2],Q:function(l){return{Q:l!=null&&l.N!=null}},cX:"Delete",uJ:!0},{name:[2,3],Q:function(l){return{Q:l!=null}},Ip:!0,cX:[b,Z.ua]},{name:[14,9],Q:function(l){return{Q:l!=null}},Ip:!0,uJ:!0},{name:[10,48],Q:function(l){return{Q:l!=null&&l.bY(!1)}}},{name:[10,46],Q:function(l){return{Q:G.Xh.FF(l)}}},{name:[10,16],cX:[Y,S,Z.VW]},{name:[2,4],sub:ds.EG()},{name:[2,10,1]},{name:[2,10,0],uJ:!0},{name:[12,87],sub:[{name:[12,62],Q:function(l){return{Q:l!=null}}},{name:[9,3],Q:function(l){return{Q:l!=null}}},{name:[10,31],Q:function(l){return{Q:l!=null&&l.zl()[1].length!=0}}}]},{name:[12,79],Ip:!0,cX:[S,Z.EJ]},{name:[1,13],Ip:!0}],kP:[{g:s.E.s,T:G._H,k:{e:"h_undoredo"}},{g:s.E.s,T:G._H,k:{e:"h_stepfwd"}},{g:s.E.s,T:G._H,k:{e:"h_stepbck"}},{g:s.E.P,k:{e:s.U.Fy,g9:"afw_fade"}},{g:s.E.P,k:{e:s.U.rk}},{g:s.E.P,k:{e:s.U.gl}},{g:s.E.P,k:{e:s.U.gl,MU:!0}},{g:s.E.P,k:{e:s.U.GR}},{g:s.E.TH,k:{uf:"delete"}},{g:s.E.P,k:{e:s.U.Fy,g9:"fill"}},{g:s.E.P,k:{e:s.U.Fy,g9:"stroke"}},{g:s.E.P,k:{e:s.U.cB,T:G.dZ}},{g:s.E.s,T:G.$n,k:{e:"start",fb:"rigidTransform"}},{g:s.E.P,k:{e:s.U.cB,T:G.ih}},{sub:ds.Q1()},{g:s.E.TH,k:{uf:"align",V1:{classID:"null",null:{t:"obj ",v:[{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Trgt"}}]},Usng:{t:"enum",v:{ADSt:"ADSContent"}},alignToCanvas:{t:"bool",v:!1},Aply:{t:"enum",v:{projection:"Auto"}},vignette:{t:"bool",v:!1},radialDistort:{t:"bool",v:!1}}}},{g:s.E.s,T:G.kd,k:{e:F.ki}},{sub:[{g:s.E.P,k:{e:s.U.u3,Sz:0}},{g:s.E.P,k:{e:s.U.u3,Sz:1}},{g:s.E.P,k:{e:s.U.u3,Sz:2}}]},{g:s.E.P,k:{e:s.U.Fy,g9:"preferences"}},{g:s.E.P,k:{e:s.U.Fy,g9:"locstor"}}]},{name:[0,2],items:[{name:[3],sub:function(){var l=[];
for(var O in g3.names){l.push({name:g3.names[O],Ip:_[O]!=null,cX:U.kq(g3.keys[O]),uJ:g3.jD.indexOf(O)!=-1});
if(O=="selc"){l.push({name:["VAR0/VAR1",[19,6,0],[19,6,2]],Ip:!0,uJ:!0});l.push({name:[19,7,0],cX:[S,b,Z.mf],Q:function(O){return{Q:O&&O.C.length!=0&&O.t[O.C[0]].add.SoLd==null}}})}}return l}()},{name:[4,16,0],Q:function(l){return{Q:l!=null&&l.bY(!1)}}},{name:[4,16,1],Q:function(l){return{Q:l!=null&&l.bY(!1)}}},{name:[4,16,2],Q:function(l){return{Q:l!=null&&l.bY(!1)}},uJ:!0},{name:[11,11],Q:function(l){return{Q:l!=null&&l.bY(!1)}},uJ:!0},{name:[11,3],Ip:!0,cX:[Y,S,Z.C2]},{name:[11,10],Ip:!0,cX:[Y,S,Z.fF]},{name:[2,4],sub:[{name:["VAR0 90\xB0 \u21BB",[2,5]]},{name:["VAR0 90\xB0 \u21BA",[2,5]]},{name:["VAR0 180\xB0",[2,5]]},{name:[[2,6],[22,4,2]]},{name:[[2,6],[22,4,3]]}]},{name:[11,12,1],Q:function(l){return{Q:l!=null&&l.N!=null}}},{name:[11,12,0],Q:function(l){return{Q:l!=null}},cX:[S,Z.fw]},{name:[11,12,2],Q:function(l){return{Q:l!=null}},uJ:!0},{name:[2,12],Q:function(l){return{Q:l!=null&&l.bY(!1)}},Ip:!0}],kP:[{sub:function(){var l=[];
for(var O in g3.names){l.push({g:s.E.s,T:G.cC,k:{e:"start",Es:O}});if(O=="selc"){l.push({g:s.E.s,T:G.$n,k:{e:"start",fb:"adaptCorrect"}});
l.push({g:s.E.TH,k:{uf:"desaturate"}})}}return l}()},{g:s.E.TH,k:{uf:"levels",V1:{classID:"Lvls",Auto:{t:"bool",v:!0}}}},{g:s.E.TH,k:{uf:"levels",V1:{classID:"Lvls",AuCo:{t:"bool",v:!0}}}},{g:s.E.TH,k:{uf:"levels",V1:{classID:"Lvls",autoBlackWhite:{t:"bool",v:!0},autoNeutrals:{t:"bool",v:!0}}}},{g:s.E.P,k:{e:s.U.Fy,g9:"vbitmap"}},{g:s.E.P,k:{e:s.U.Fy,g9:"csize"}},{g:s.E.P,k:{e:s.U.Fy,g9:"isize"}},{sub:[{g:s.E.TH,k:G.V.XL(!0,90)},{g:s.E.TH,k:G.V.XL(!0,-90)},{g:s.E.TH,k:G.V.XL(!0,-180)},{g:s.E.TH,k:G.V.XL(!1,"Hrzn")},{g:s.E.TH,k:G.V.XL(!1,"Vrtc")}]},{g:s.E.s,T:G.ck,k:{e:"cropbysel",aiF:0}},{g:s.E.TH,k:G.PK.HR(0)},{g:s.E.TH,k:{uf:"revealAll",V1:{classID:"RvlA"}}},{g:s.E.s,T:G.cC,k:{e:"start",Es:"aply"}}]},{name:[0,3],items:[{name:[5,3],sub:[{name:[0,3]},{name:[0,4]},{name:[6,49],cX:[S,Z.Rj]}]},{name:[6,0],Q:P,cX:[S,Z.Rj]},{name:[11,4],Q:P},{name:[5,4],Q:P,uJ:!0},{name:[11,6],uJ:!0,Q:P,sub:ep.M4(!0)},{name:[6,48,1],sub:[{name:[6,48,0,0]},{name:[6,48,0,1]},{name:[6,48,0,2]}]},{name:[6,1],uJ:!0,sub:ep.Gd()},{name:[6,2],sub:[{name:[6,4],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].Y6()==null}}},{name:[6,5,0],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].Y6()==null}}},{name:[6,5,1],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].Y6()==null&&l.N!=null}}},{name:[6,5,2],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].Y6()==null&&l.N!=null}}},{name:[6,5,3],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].Y6()==null}},uJ:!0},{name:[5,4],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].Y6()!=null}}},{name:[5,8],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].Y6()!=null&&l.bY(!1,!0)}}},{name:["VAR0/VAR1",[5,5],[5,6]],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].Y6()!=null}}}]},{name:[6,3],sub:[{name:[6,4],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].add.vmsk==null}}},{name:[6,5,0],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].add.vmsk==null}}},{name:"Current Path",Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].add.vmsk==null}},uJ:!0},{name:[5,4],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].add.vmsk!=null}}},{name:["VAR0/VAR1",[5,5],[5,6]],Q:function(l){return{Q:l!=null&&l.C.length!=0&&l.t[l.C[0]].add.vmsk!=null}}}]},{name:[6,6,0],cX:[Y,S,Z.ZX],uJ:!0,Q:function(l){return{As:l!=null&&l.C.length!=0&&l.t[l.C[0]].gL,Q:l!=null&&l.rP(l.C[0])}}},{name:"Smart Object",uJ:!0,sub:[{name:[6,7]},{name:[6,36,4],Q:w,sub:f},{name:[1,0],Q:w,uJ:!0},{name:"Turn into JPG"}]},{name:[6,8],Q:function(l){if(l==null||l.C.length==0)return{Q:!1};
var O=l.t[l.C[0]];if(O.add.TySh||O.add.SoLd||O.add.SoCo||O.add.GdFl||O.add.PtFl)return{Q:!0};return{Q:!1}}},{name:[6,34],uJ:!0,Q:function(l){if(l==null||l.C.length==0)return{Q:!1};
var O=l.t[l.C[0]];return{Q:O.add.lmfx!=null&&!O.W$()}}},{name:[6,9],uJ:!0,cX:[S,Z.ZX]},{name:[6,55],uJ:!0,sub:[{name:[6,56,0],cX:[b,S,Z.U6]},{name:[6,56,1],cX:[S,Z.U6]},{name:[6,56,2],cX:[S,Z.FO]},{name:[6,56,3],cX:[b,S,Z.FO]}]},{name:[6,58],sub:[{name:["Make Frames"]},{name:[18,5]}]},{name:[6,10],Q:function(l){return{Q:l!=null&&l.C.length==1&&l.C[0]!=0&&!l.t[l.C[0]].W$()}},cX:[S,Z.E]},{name:[6,12,0],Q:function(l){return{Q:l!=null&&l.C.length!=0&&(l.C.length>1||l.t[l.C[0]].W$())}}},{name:[6,12,1]}],kP:[{sub:[{g:s.E.s,T:G.kd,k:{e:F.NO}},{g:s.E.s,T:G.kd,k:{e:F.D4}},{g:s.E.s,T:G.kd,k:{e:F.WW}}]},{g:s.E.s,T:G.kd,k:{e:F.GG}},{g:s.E.P,k:{e:s.U.Fy,g9:"duplinto"}},{g:s.E.s,T:G.kd,k:{e:F.ak}},{sub:ep.C8(!0)},{sub:[{g:s.E.s,T:G.L4,k:{e:"newfill",vp:0}},{g:s.E.TH,k:G.cI.uB(1)},{g:s.E.TH,k:G.cI.uB(2)}]},{sub:ep.cN()},{sub:[{g:s.E.s,T:G.kd,k:{e:F.q5,OK:"RvlA"}},{g:s.E.s,T:G.kd,k:{e:F.q5,OK:"HdAl"}},{g:s.E.s,T:G.kd,k:{e:F.q5,OK:"RvlS"}},{g:s.E.s,T:G.kd,k:{e:F.q5,OK:"HdSl"}},{g:s.E.s,T:G.kd,k:{e:F.q5,OK:"Trns"}},{g:s.E.s,T:G.kd,k:{e:F.fs}},{g:s.E.s,T:G.kd,k:{e:F.ji}},{g:s.E.s,T:G.kd,k:{e:F.pa}}]},{sub:[{g:s.E.s,T:G.kd,k:{e:F.Ow,a6Q:!1}},{g:s.E.s,T:G.kd,k:{e:F.Ow,a6Q:!0}},{g:s.E.s,T:G.kd,k:{e:F.Ow,ab2:!0}},{g:s.E.s,T:G.kd,k:{e:F.Vw}},{g:s.E.s,T:G.kd,k:{e:F.cf}}]},{g:s.E.s,T:G.kd,k:{e:F.TA}},{sub:[{g:s.E.TH,k:{uf:"newPlacedLayer"}},{sub:h},{g:s.E.TH,k:{uf:"placedLayerEditContents",V1:{classID:"placedLayerEditContents"}}},{g:s.E.s,T:G.kd,k:{e:F.m$}}]},{g:s.E.TH,k:{uf:"rasterizeLayer",V1:{classID:"rasterizeLayer",null:a3.h$("Lyr",!0)}}},{g:s.E.s,T:G.kd,k:{e:F.zR}},{g:s.E.s,T:G.kd,k:{e:F.aT}},{sub:[{g:s.E.s,T:G.kd,k:{e:F.ho,Ox:0}},{g:s.E.s,T:G.kd,k:{e:F.ho,Ox:1}},{g:s.E.s,T:G.kd,k:{e:F.ho,Ox:2}},{g:s.E.s,T:G.kd,k:{e:F.ho,Ox:3}}]},{sub:[{g:s.E.s,T:G.kd,k:{e:F.xG,Ox:"makeframes"}},{g:s.E.s,T:G.kd,k:{e:F.xG,Ox:"merge"}}]},{g:s.E.s,T:G.kd,k:{e:F.lh}},{g:s.E.s,T:G.kd,k:{e:F.oy}},{g:s.E.TH,k:{uf:"flattenImage"}}]},bU.ajc(!1),function(){var l={name:[0,6],items:[{name:[24,18,4],cX:[Y,S,Z.Gu],uJ:!0}],kP:[{g:s.E.s,T:G.$n,k:{e:"applylast"}}]};
for(var D=0;D<cL._h.length;D++){var O=cL._h[D];if(O.B2!=null){l.items.push({name:cL.names[O.B2],Ip:!0,uJ:O.uJ});
l.kP.push({g:s.E.s,T:G.$n,k:{e:"start",fb:O.B2}});continue}var m={name:O.mW,sub:[]};l.items.push(m);
var V={sub:[]};l.kP.push(V);for(var q=0;q<O.UF.length;q++){var K={name:cL.names[O.UF[q]],Ip:cL.VS(O.UF[q])!=null};
m.sub.push(K);var z={g:s.E.s,T:G.$n,k:{e:"start",fb:O.UF[q]}};V.sub.push(z)}}return l}(),{name:[0,7],items:[{name:[8,0],cX:[S,Z.G6]},{name:[8,1],cX:[S,Z.Zm]},{name:[20,3],cX:[S,Z.tH]},{name:[20,2],cX:[S,Z.Pg],uJ:!0},{name:"Extras",cX:[S,Z.mE],Q:function(l,O){return{As:O.Wb}}},{name:[8,12],uJ:!0,sub:[{name:[17,2],Q:function(l,O){return{Q:O.Wb,As:O.Gg.MQ}}},{name:[8,9],Q:function(l,O){return{Q:O.Wb,As:O.Gg.Bf}}},{name:[8,2],Q:function(l,O){return{Q:O.Wb,As:O.Gg.vE}},cX:[S,Z.Re]},{name:[8,4],Q:function(l,O){return{Q:O.Wb,As:O.Gg.$M}},cX:[S,Z.rU]},{name:[8,8],Q:function(l,O){return{Q:O.Wb,As:O.Gg.iv}}},{name:[8,11,0],Q:function(l,O){return{Q:O.Wb,As:O.Gg.CY}}}]},{name:[8,3],Q:function(l,O){return{As:O.pS}},cX:[S,Z.KV],uJ:!0},{name:[8,5],Q:function(l,O){return{As:O.nX}}},{name:[8,6],uJ:!0,sub:[{name:[8,2],Q:function(l,O){return{As:O.x3[0]}}},{name:[8,4],Q:function(l,O){return{As:O.x3[1]}}},{name:[9,1],Q:function(l,O){return{As:O.x3[2]}}},{name:[8,11,0],Q:function(l,O){return{As:O.x3[3]}}},{name:[8,7],Q:function(l,O){return{As:O.x3[4]}}}]},{name:[11,15,0],Q:function(l,O){return{Q:l!=null}}},{name:[11,14],Q:function(l,O){return{Q:l!=null}},Ip:!0},{name:[11,15,1],Q:function(l,O){return{Q:l!=null&&l.C.length!=0}}}],kP:[{g:s.E.s,T:G.$j,k:{e:"zoom",tK:!0}},{g:s.E.s,T:G.$j,k:{e:"zoom",tK:!1}},{g:s.E.s,T:G.$j,k:{e:"adapt",G:"fitscr"}},{g:s.E.s,T:G.$j,k:{e:"adapt",G:"pixel"}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.XY}},{sub:[{g:s.E.P,k:{e:s.U.h4,Sz:bp.L3}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.Hy}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.rm}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.PX}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.Cy}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.xY}}]},{g:s.E.P,k:{e:s.U.h4,Sz:bp.xO}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.jf}},{sub:[{g:s.E.P,k:{e:s.U.h4,Sz:bp.Mv,OA:0}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.Mv,OA:1}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.Mv,OA:2}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.Mv,OA:3}},{g:s.E.P,k:{e:s.U.h4,Sz:bp.Mv,OA:4}}]},{g:s.E.s,T:G.hK,k:{e:"gids",If:[[],[]]}},{g:s.E.P,k:{e:s.U.Fy,g9:"addguides"}},{g:s.E.s,T:G.hK,k:{e:"gidsFromLayer"}}]},function(){var l={name:[0,8],items:[{name:[0,14],uJ:!0,sub:[]}],kP:[{sub:[]}]};
for(var D=0;D<gC.Rz.length;D++){var O=gC.Rz[D];(O.VN?l.items[0].sub:l.items).push({name:O.Bq.name});
(O.VN?l.kP[0].sub:l.kP).push({g:s.E.P,k:{e:s.U.AO,g9:O.Bq.pz}})}return l}(),function(){var l={name:[0,14],items:[],kP:[]},O={name:[0,9],sub:[]};
l.items.push(O);var m={sub:[]};l.kP.push(m);var V=aV.aed();for(var D=0;D<V.length;D++){var q=V[D],K=q.code,z=aV.Ky(K);
O.sub.push({name:q.name,cX:K,Q:function(t,H){return{As:this.cX==aV.lz()}}});m.sub.push({g:s.E.P,k:{e:s.U.h4,Sz:bp.X2,lang:z}})}O.sub.push({name:[0,12]});
m.sub.push({g:s.E.P,k:{e:s.U.sN,link:"https://www.photopea.com/translate/"}});var O={name:[0,15],sub:[]};
l.items.push(O);var m={sub:[]};l.kP.push(m);for(var D=0;D<eF.XX.length;D++){O.sub.push({name:eF.XX[D].name,Q:function(t,H){return{As:this.name==eF.XX[H.Ql].name}}});
m.sub.push({g:s.E.P,k:{e:s.U.h4,Sz:bp.NU,Ql:D}})}l.items.push({name:[0,17,6],Q:function(t,H){return{Q:H.$T!=null}}});
l.kP.push({g:s.E.P,k:{e:s.U.YC}});l.items.push({name:[11,13]});l.kP.push({g:s.E.P,k:{e:s.U.Fy,g9:"shortcuts"}});
l.items.push({name:[0,16],Q:function(t){return{As:p.lc,Q:p.EF}}});l.kP.push({g:s.E.P,k:{e:s.U.tu}});
return l}()]}();function hA(){ij.call(this);this.j=s.R("div","");this.cq=0;this.ys=0;this.W3=null;this.$f=s.R("div","");
this.$f.setAttribute("style","width:200em; height:100em; position:absolute;");this.I3=[];this.bV=[];
this.MJ={}}hA.prototype=new ij;hA.prototype.jr=function(Z){var S=Date.now(),b=[];if(Z=="-")b=[new eJ,new gZ,new aI,new fa,new gH,new gh,new gz,new dP,new fZ,new ik,new c6,new c$,new a$,new b0,new iM,new ep,new ei,new cE,new cb,new eM,new g4,new g8,new fs,new fP,new f8,new dv,new gp(0),new gp(1),new hq,new bK,new gw,new aO,new fc,new bq,new c1,new az("border",[7,9],"px"),new az("smoothness",[19,3,0],"px"),new az("expand",[7,4],"px"),new az("contract",[7,5],"px"),new az("feather",[7,6],"px"),new f1(0,"namewindow",[12,48]),new f1(1,"cornerradius",[12,94,0],"px",!0),new f1(1,"scaleeffects","Scale Effects","%",!0),new f1(1,"doczoom","Zoom","%",!0)];
else b=[new aA(Z.slice(4))];this.agC(b);this.MJ[Z]=!0};hA.prototype.agC=function(Z){var S=this.W3;for(var D=0;
D<Z.length;D++){var b=Z[D];b.parent=this;this.bV.push(b);this.ff(b);b.B();if(S)b.na(S,bp._O);b.i(s.E.ef,this.u8,this)}};
hA.prototype.Xd=function(Z,S){this.cq=Z;this.ys=S;for(var D=0;D<this.bV.length;D++)this.ff(this.bV[D])};
hA.prototype.B=function(){for(var D=0;D<this.bV.length;D++)this.bV[D].B()};hA.prototype.zc=function(){return this.I3.length==0?null:this.I3[this.I3.length-1]};
hA.prototype.K7=function(){for(var D=0;D<this.I3.length;D++)if(this.I3[D].K7())return!0;return!1};hA.prototype.aeJ=function(Z,S,b,Y,P){var w=Z.startsWith("afw_"),f=null;
if(!w&&!this.MJ["-"])this.jr("-");if(w&&!this.MJ[Z])this.jr(Z);if(typeof Z=="object"){f=Z;if(!f.vw(s.E.ef,this.u8))f.i(s.E.ef,this.u8,this);
f.parent=this}else for(var D=0;D<this.bV.length;D++)if(this.bV[D].id==Z)f=this.bV[D];if(this.K7()&&f.K7()){alert("Finish the current action first");
return}if(!f.ZP(S))return;if(this.I3.indexOf(f)!=-1){if(Z=="colorpicker")f.lX(S,b,Y,P);return}var h=this.I3.length-1;
if(h>=0)s.zy(this.I3[h].j,"wdisabled");this.j.appendChild(f.j);this.I3.push(f);this.ff(f);f.lX(S,b,Y,P)};
hA.prototype.ff=function(Z){var S=this.cq,b=this.ys,Y=Z.pn(S,b),P;if(Y!=null){P=Y}else{Y=new ar(0,0);
P=Z.adW();if(P==null){var w=this.I3.indexOf(Z)+1;if(S<450||b<450)P=new ar(0,0);else P=new ar(w*150,w*150)}}Z.j.style.left=P.x+"px";
Z.j.style.top=this.j.offsetTop+P.y+"px";Z.Xd(this.cq-Y.x*2,this.ys-Y.y*2-34)};hA.prototype.na=function(Z,S){this.W3=Z;
for(var D=0;D<this.bV.length;D++)this.bV[D].na(Z,S)};hA.prototype.u8=function(Z){var S=this.I3.pop();
this.j.removeChild(S.j);var b=this.I3.length-1;if(b>=0)s.bq(this.I3[b].j,"wdisabled");if(this.$f.parentNode==this.j)this.j.removeChild(this.$f)};
window.onload=function(){var Z=new d8;document.body.appendChild(Z.j)}}())