From 3075cbfc86fc127524a971b1781541f8bb851492 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Mon, 14 Aug 2017 20:29:59 -0700 Subject: [PATCH 1/2] fixup on 9794b85 fix node.js compatibility-problems Image was undefined in browser context due to coffeescript declared the Image variable in the first place --- dist/caman.full.js | 1 + dist/caman.full.min.js | 2 +- dist/caman.full.pack.js | 2 +- dist/caman.js | 1 + dist/caman.min.js | 2 +- dist/caman.pack.js | 2 +- src/core/caman.coffee | 1 + 7 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/caman.full.js b/dist/caman.full.js index 772007ff..152ee6a8 100644 --- a/dist/caman.full.js +++ b/dist/caman.full.js @@ -169,6 +169,7 @@ http = require('http'); } else { Root = window; + Image = window.Image; } Caman = (function(_super) { diff --git a/dist/caman.full.min.js b/dist/caman.full.min.js index 437fbcab..46a02a2c 100644 --- a/dist/caman.full.min.js +++ b/dist/caman.full.min.js @@ -16,7 +16,7 @@ _ref=from.attributes;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){attr=_r _results.push(to.setAttribute(attr.nodeName,attr.nodeValue));} return _results;};Util.dataArray=function(length){if(length==null){length=0;} if(Caman.NodeJS||(window.Uint8Array!=null)){return new Uint8Array(length);} -return new Array(length);};return Util;})();if(typeof exports!=="undefined"&&exports!==null){Root=exports;Canvas=require('canvas');Image=Canvas.Image;Fiber=require('fibers');fs=require('fs');http=require('http');}else{Root=window;} +return new Array(length);};return Util;})();if(typeof exports!=="undefined"&&exports!==null){Root=exports;Canvas=require('canvas');Image=Canvas.Image;Fiber=require('fibers');fs=require('fs');http=require('http');}else{Root=window;Image=window.Image;} Caman=(function(_super){__extends(Caman,_super);Caman.version={release:"4.1.2",date:"7/27/2013"};Caman.DEBUG=false;Caman.allowRevert=true;Caman.crossOrigin="anonymous";Caman.remoteProxy="";Caman.proxyParam="camanProxyUrl";Caman.NodeJS=typeof exports!=="undefined"&&exports!==null;Caman.autoload=!Caman.NodeJS;Caman.toString=function(){return"Version "+Caman.version.release+", Released "+Caman.version.date;};Caman.getAttrId=function(canvas){if(Caman.NodeJS){return true;} if(typeof canvas==="string"){canvas=$(canvas);} if(!((canvas!=null)&&(canvas.getAttribute!=null))){return null;} diff --git a/dist/caman.full.pack.js b/dist/caman.full.pack.js index 6087854b..1b1837d2 100644 --- a/dist/caman.full.pack.js +++ b/dist/caman.full.pack.js @@ -1 +1 @@ -eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(A(){M $,4K,2k,2b,D,54,3S,1X,2Q,6B,R,2N,4V,39,1Y,3L,28,2w,1P,7V,32,1v,fs,6y,7Z,5f,9y,6s=[].fb||A(bS){W(M i=0,l=o.P;iE){u E}u 2f};1v.5H=A(4M,3N,G){M 6l,H,1n,K,3T,1o;B(G==L){G={}}K=4M.e6;1o=[];W(H=0,1n=K.P;H<1n;H++){6l=K[H];B((G.8W!=L)&&(3T=6l.9U,6s.1w(G.8W,3T)>=0)){5I}1o.2j(3N.cR(6l.9U,6l.dd))}u 1o};1v.6F=A(P){B(P==L){P=0}B(D.2O||(4N.cC!=L)){u 1y cC(P)}u 1y 5T(P)};u 1v})();B(1r 2g!=="42"&&2g!==L){7V=2g;3S=6x(\'I\');4V=3S.4V;6B=6x(\'eQ\');fs=6x(\'fs\');6y=6x(\'6y\')}S{7V=4N}D=(A(cv){cM(D,cv);D.9w={ct:"4.1.2",cs:"7/27/de"};D.co=2r;D.6r=31;D.9t="cm";D.8t="";D.ck="df";D.2O=1r 2g!=="42"&&2g!==L;D.ci=!D.2O;D.65=A(){u"dg "+D.9w.ct+", dh "+D.9w.cs};D.9m=A(I){B(D.2O){u 31}B(1r I==="3j"){I=$(I)}B(!((I!=L)&&(I.6c!=L))){u L}u I.6c(\'29-3E-2X\')};A D(){o.6d=9x(o.6d,o);M 1k,1N,2X,1D=o;B(1l.P===0){2V"6i 1l";}B(o bY D){o.6k=o.6k.98(o);o.6H=o.6H.98(o);1k=1l[0];B(!D.2O){2X=49(D.9m(1k[0]),10);1N=1r 1k[1]==="A"?1k[1]:1r 1k[2]==="A"?1k[2]:A(){};B(!bQ(2X)&&32.bP(2X)){u 32.3O(2X,1N)}}o.2X=1v.8Z.4i();o.7D=o.5g=L;o.6z={x:0,y:0};o.bH=2r;o.7R=2r;o.6D=[];o.8S=[];o.8P=[];o.6N=L;o.bl=2r;o.du=1y 4K(o);o.4S=1y 1P(o);o.bi(A(){1D.bh(1k);u 1D.bg()});u o}S{u 1y D(1l)}}D.N.bi=A(cb){M 8H,1D=o;B(D.2O){u 8q(A(){u cb.1w(1D)},0)}S{B(2p.9q==="8D"){1Y.2x("aU aT");u 8q(A(){u cb.1w(1D)},0)}S{8H=A(){B(2p.9q==="8D"){1Y.2x("aU aT");u cb.1w(1D)}};u 2p.aS("dE",8H,2r)}}};D.N.bh=A(1k){M 2t,2f,K,1o;B(1k.P===0){2V"6i 1l aQ";}o.3b=L;o.8A=L;o.8z=L;o.1N=A(){};o.aM(1k[0]);B(1k.P===1){u}61(1r 1k[1]){2i"3j":o.8z=1k[1];4Z;2i"A":o.1N=1k[1]}B(1k.P===2){u}o.1N=1k[2];B(1k.P===4){K=1k[4];1o=[];W(2t 5h K){B(!74.1w(K,2t))5I;2f=K[2t];1o.2j(o.1F[2t]=2f)}u 1o}};D.N.aM=A(2C){B(D.2O){o.3b=2C;o.8A=\'ay\';u}B(1r 2C==="44"){o.3b=2C}S{o.3b=$(2C)}B(o.3b==L){2V"dN dO dV 1f d3 I W dX.";}u o.8A=o.3b.9U.6P()};D.N.bg=A(){61(o.8A){2i"ay":u o.cN();2i"1K":u o.cE();2i"I":u o.cx()}};D.N.cN=A(){1Y.2x("e8 W 2O");B(1r o.3b==="3j"&&o.3b.7W(/^ch?:\\/\\//)){u o.cf(o.3b,o.6d)}S B(1r o.3b==="3j"){u fs.eb(o.3b,o.6d)}S{u o.6d(L,o.3b)}};D.N.cf=A(6u,1N){M 9z;1Y.2x("fj 1f 4M "+6u);9z=6y.4i(6u,A(4p){M 7O;7O=\'\';4p.fk(\'aP\');4p.9B(\'29\',A(at){u 7O+=at});u 4p.9B(\'1Q\',A(){u 1N(L,1y fp(7O,\'aP\'))})});u 9z.9B(\'9C\',1N)};D.N.6d=A(6G,29){B(6G){2V 6G;}o.1f=1y 4V();o.1f.1G=29;1Y.2x("4V cS. cD = "+(o.5b())+", cy = "+(o.4W()));o.I=1y 3S(o.5b(),o.4W());u o.6k()};D.N.cE=A(){o.1f=o.3b;o.I=2p.3K(\'I\');o.1i=o.I.3h(\'2d\');1v.5H(o.1f,o.I,{8W:[\'1G\']});B(o.1f.7c!=L){o.1f.7c.9D(o.I,o.1f)}o.9J();u o.9L()};D.N.cx=A(){o.I=o.3b;o.1i=o.I.3h(\'2d\');B(o.8z!=L){o.1f=2p.3K(\'1K\');o.1f.1G=o.8z;o.9J();u o.9L()}S{u o.6k()}};D.N.9J=A(){B(o.9M()){1Y.2x(o.1f.1G,"->",o.8m());o.bd=31;o.1f.1G=o.8m()}B(2N.bb(o.1f)){o.1f.1G=2N.57(o.1f.1G);u 1Y.2x("fu 1f fx, fD cQ = "+o.1f.1G)}};D.N.9L=A(){B(o.cB()){u o.6H()}S{u o.1f.cr=o.6H}};D.N.cB=A(){B(!o.1f.8D){u 2r}B((o.1f.9P!=L)&&o.1f.9P===0){u 2r}u 31};D.N.5b=A(){u o.1f.F||o.1f.9P};D.N.4W=A(){u o.1f.J||o.1f.fN};D.N.6H=A(){1Y.2x("4V cS. cD = "+(o.5b())+", cy = "+(o.4W()));B(o.bd){o.I.F=o.5b()/o.7G();o.I.J=o.4W()/o.7G()}S{o.I.F=o.5b();o.I.J=o.4W()}u o.6k()};D.N.6k=A(){M i,1u,H,1n,K;B(o.1i==L){o.1i=o.I.3h(\'2d\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i=0<=K?++H:--H){2K+=Q[i]}}o.4S.4k({1t:R.3g.a1,1q:1q,Q:Q,2K:2K,3e:3e});u o};D.N.5a=A(4b,1k){o.4S.4k({1t:R.3g.2w,4b:4b,1k:1k});u o};D.N.2Z=A(1N){M 2a;2a=1y 39(o);o.8P.2j(2a);o.4S.4k({1t:R.3g.9Z});1N.1w(2a);o.4S.4k({1t:R.3g.9Y});u o};D.N.bm=A(2a){u o.bn(2a)};D.N.bn=A(2a){o.8S.2j(o.6N);o.6D.2j(o.T);o.6N=2a;u o.T=2a.T};D.N.bx=A(){o.T=o.6D.6o();u o.6N=o.8S.6o()};D.N.bO=A(){u o.6N.bU()};u D})(3L);7V.D=D;D.4K=(A(){A 4K(c){o.c=c}4K.N.fX=A(){M i,3B,71,H,1e,1I,K;3B={r:{},g:{},b:{}};W(i=H=0;H<=E;i=++H){3B.r[i]=0;3B.g[i]=0;3B.b[i]=0}W(i=1e=0,K=o.c.T.P;1e0)){u}1o=[];W(H=0,1n=6Z.P;H<1n;H++){1K=6Z[H];1o.2j(cA=1y 54(1K,A(){o.cI();u o.3O()}))}u 1o};B(D.ci){(A(){B(2p.9q==="8D"){u D.9X()}S{u 2p.aS("fT",D.9X,2r)}})()}54=(A(){M 8g;8g="(\\\\w+)\\\\((.*?)\\\\)";A 54(46,db){o.ab=46.6c(\'29-3E\');o.3E=D(46,db.98(o))}54.N.cI=A(){M 1k,e,1C,5j,9W,9V,m,r,6X,H,1n,K,1o;o.46=o.3E.I;r=1y bf(8g,\'g\');6X=o.ab.7W(r);B(!(6X.P>0)){u}r=1y bf(8g);1o=[];W(H=0,1n=6X.P;H<1n;H++){9W=6X[H];K=9W.7W(r),m=K[0],1C=K[1],1k=K[2];9V=1y fO("u A() { o."+1C+"("+1k+"); };");9S{5j=9V();1o.2j(5j.1w(o.3E))}9R(5C){e=5C;1o.2j(1Y.2x(e))}}u 1o};54.N.3O=A(){M 46;46=o.46;u o.3E.a8(A(){u 46.7c.9D(o.bJ(),46)})};u 54})();D.2k=(A(){A 2k(){}2k.9Q={};2k.V=A(1q,5j){u o.9Q[1q]=5j};2k.3O=A(1q,Z,X){u o.9Q[1q](Z,X)};u 2k})();2k=D.2k;D.2b=(A(){A 2b(){}2b.52=A(6U,6S,6R,6Q){u O.7L(O.1T(6R-6U,2)+O.1T(6Q-6S,2))};2b.ce=A(1M,1c,6M){M 4s;B(6M==L){6M=2r}4s=1M+(O.fL()*(1c-1M));B(6M){u 4s.fH(6M)}S{u O.62(4s)}};2b.6L=A(C){u(0.9O*C.r)+(0.fF*C.g)+(0.fE*C.b)};2b.2h=A(1J,4H,4G,1Q,58,59){M 2h,5r,2F,26,i,j,5s,1S,3G,t,H,1e,K;B(58==L){58=0}B(59==L){59=E}B(1J[0]bY 5T){2F=1J;58=4H;59=4G}S{2F=[1J,4H,4G,1Q]}B(2F.P<2){2V"6i 8s 9K 1l 3N 2h";}2h={};5s=A(a,b,t){u a*(1-t)+b*t};5r=A(a,1M,1c){u O.1M(O.1c(a,1M),1c)};W(i=H=0;H1){1S=[];W(j=1e=0,K=3G.P-2;0<=K?1e<=K:1e>=K;j=0<=K?++1e:--1e){1S.2j([5s(3G[j][0],3G[j+1][0],t),5s(3G[j][1],3G[j+1][1],t)])}3G=1S}2h[O.62(3G[0][0])]=O.62(5r(3G[0][1],58,59))}26=2F[2F.P-1][0];2h=D.2b.9H(2h,26);B(2h[26]==L){2h[26]=2h[26-1]}u 2h};2b.bR=A(2F,58,59){M 4k,5r,9G,26,8C,76,77,78,i,j,5s,9F,9E,4A,p,5A,5B,4u,7g,7i,3p,7k,t,H,1e,K,1D=o;B(2F.P<2){2V"6i 8s 9K 1l 3N bR";}3p={};5s=A(a,b,t){u a*(1-t)+b*t};4k=A(a,b,c,d){u[a[0]+b[0]+c[0]+d[0],a[1]+b[1]+c[1]+d[1]]};4A=A(a,b){u[a[0]*b[0],a[1]*b[1]]};7k=A(a,b){u[a[0]-b[0],a[1]-b[1]]};5r=A(a,1M,1c){u O.1M(O.1c(a,1M),1c)};9G=0;W(i=H=0,K=2F.P-2;0<=K?H<=K:H>=K;i=0<=K?++H:--H){5A=2F[i];5B=2F[i+1];4u=5B[0]-5A[0];7g=1/4u;B(i===2F.P-2){7g=1/(4u-1)}p=i>0?2F[i-1]:5A;9F=4A(7k(5B,p),[0.5,0.5]);p=i<2F.P-2?2F[i+2]:5B;9E=4A(7k(p,5A),[0.5,0.5]);W(j=1e=0;0<=4u?1e<=4u:1e>=4u;j=0<=4u?++1e:--1e){t=j*7g;8C=2.0*t*t*t-3.0*t*t+1.0;76=t*t*t-2.0*t*t+t;77=-2.0*t*t*t+3.0*t*t;78=t*t*t-t*t;7i=4k(4A(5A,[8C,8C]),4A(9F,[76,76]),4A(5B,[77,77]),4A(9E,[78,78]));3p[O.62(7i[0])]=O.62(5r(7i[1],58,59));9G+=1}}26=2F[2F.P-1][0];3p=D.2b.9H(3p,26);u 3p};2b.9H=A(5c,26){M i,j,5F,3p,7s,H,1e;B(bc.ft(5c).P<26+1){3p={};W(i=H=0;0<=26?H<=26:H>=26;i=0<=26?++H:--H){B(5c[i]!=L){3p[i]=5c[i]}S{5F=[i-1,3p[i-1]];W(j=1e=i;i<=26?1e<=26:1e>=26;j=i<=26?++1e:--1e){B(5c[j]!=L){7s=[j,5c[j]];4Z}}3p[i]=5F[1]+((7s[1]-5F[1])/(7s[0]-5F[0]))*(i-5F[0])}}u 3p}u 5c};u 2b})();2b=D.2b;D.1X=(A(){A 1X(){}1X.7u=A(3F){M b,g,r;B(3F.fr(0)==="#"){3F=3F.5d(1)}r=49(3F.5d(0,2),16);g=49(3F.5d(2,2),16);b=49(3F.5d(4,2),16);u{r:r,g:g,b:b}};1X.fq=A(r,g,b){M d,h,l,1c,1M,s;B(1r r==="44"){g=r.g;b=r.b;r=r.r}r/=E;g/=E;b/=E;1c=O.1c(r,g,b);1M=O.1M(r,g,b);l=(1c+1M)/2;B(1c===1M){h=s=0}S{d=1c-1M;s=l>0.5?d/(2-1c-1M):d/(1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z;B(1r l==="44"){a=l.a;b=l.b;l=l.l}y=(l+16)/cF;x=y+(a/cG);z=y-(b/6a);B(x>0.9i){x=x*x*x}S{x=0.9h*(x-0.69)}B(y>0.9i){y=y*y*y}S{y=0.9h*(y-0.69)}B(z>0.9i){z=z*z*z}S{z=0.9h*(z-0.69)}u{x:x*95.cn,y:y*1j.0,z:z*9n.cu}};1X.eZ=A(r,g,b){M 9f;B(1r r==="44"){g=r.g;b=r.b;r=r.r}9f=o.b1(r,g,b);u o.c9(9f)};1X.eY=A(l,a,b){};u 1X})();1X=D.1X;D.2Q=(A(){A 2Q(){}2Q.5n={};2Q.cU=["cV","cW","aX","d0","d1","6g"];2Q.4Y=A(38,1t,29){M 6m,H,1n,K,1o;B(29==L){29=L}B(o.5n[1t]&&o.5n[1t].P){K=o.5n[1t];1o=[];W(H=0,1n=K.P;H<1n;H++){6m=K[H];B(6m.38===L||38.2X===6m.38.2X){1o.2j(6m.fn.1w(38,29))}S{1o.2j(da 0)}}u 1o}};2Q.eX=A(38,1t,fn){M 9e,9d;B(1r 38==="3j"){9d=38;9e=1t;38=L;1t=9d;fn=9e}B(6s.1w(o.cU,1t)<0){u 2r}B(!o.5n[1t]){o.5n[1t]=[]}o.5n[1t].2j({38:38,fn:fn});u 31};u 2Q})();2Q=D.2Q;D.R=(A(){A R(){}R.3g={a2:1,a1:2,9Z:3,9Y:4,9c:5,2w:6};R.V=A(1q,ah){u D.N[1q]=ah};u R})();R=D.R;D.2N=(A(){A 2N(){}2N.aq=/(?:(?:6y|ch):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;2N.bb=A(1K){B(1K==L){u 2r}B(o.as(1K)){u 2r}u o.7j(1K.1G)};2N.as=A(1K){M K;u(1K.9t!=L)&&((K=1K.9t.6P())===\'cm\'||K===\'ax-eW\')};2N.7j=A(6u){M 7l;7l=6u.7W(o.aq);B(7l){u 7l[1]!==2p.eV}S{u 2r}};2N.aK=A(1G){B(o.7j(1G)){B(!D.8t.P){1Y.99("eS 3N eR a aV 1f eN a eM aY. cQ: "+1G)}S{B(D.7j(D.8t)){1Y.99("eL ax a aV aY W eK eI.");u}u o.57(1G)}}};2N.57=A(1G){u""+D.8t+"?"+D.ck+"="+(eG(1G))};2N.eD=A(5k){M 7w;7w={eC:\'eB\',eA:\'ez\',ey:\'ex\',ew:\'ev\'};5k=5k.6P();B(7w[5k]!=L){5k=7w[5k]}u"eu/es."+5k};u 2N})();D.N.bB=A(){B(1r 2g!=="42"&&2g!==L){u o.bC.4r(o,1l)}S{u o.bD.4r(o,1l)}};D.N.bD=A(1t){M 1f;B(1t==L){1t="bG"}1t=1t.6P();1f=o.94(1t).er("1f/"+1t,"1f/eq-ep");u 2p.eo.en=1f};D.N.bC=A(5R,7J,1N){M e,91;B(7J==L){7J=31}B(1N==L){1N=L}9S{91=fs.em(5R);B(91.ek()&&!7J){u 2r}}9R(5C){e=5C;1Y.2x("ej eh 5R "+5R)}u fs.eg(5R,o.I.ef(),A(6G){1Y.2x("ee ed 3N "+5R);B(1N){u 1N.1w(o,6G)}})};D.N.bJ=A(1t){M 1K;1K=1y 4V();1K.1G=o.94(1t);1K.F=o.1d.F;1K.J=o.1d.J;B(4N.4j){1K.F/=4N.4j;1K.J/=4N.4j}u 1K};D.N.94=A(1t){B(1t==L){1t="bG"}1t=1t.6P();u o.I.ec("1f/"+1t)};2N=D.2N;D.39=(A(){A 39(c){o.c=c;o.1C=o.c;o.1F={8Y:\'8X\',2q:1.0};o.ea=1v.8Z.4i();o.I=1r 2g!=="42"&&2g!==L?1y 3S():2p.3K(\'I\');o.I.F=o.c.1d.F;o.I.J=o.c.1d.J;o.1i=o.I.3h(\'2d\');o.1i.e9(o.I.F,o.I.J);o.2y=o.1i.48(0,0,o.I.F,o.I.J);o.T=o.2y.29}39.N.2Z=A(cb){u o.c.2Z.1w(o.c,cb)};39.N.3q=A(cg){o.1F.8Y=cg;u o};39.N.2q=A(2q){o.1F.2q=2q/1j;u o};39.N.4n=A(){M i,2Y,H,K;2Y=o.c.T;W(i=H=0,K=o.c.T.P;Ho.c.T.P||3M<0){u 1y 28(0,0,0,E,o.c)}u o.8O(3M)};28.N.e4=A(8c,8d,C){M cP;B(o.c==L){2V"6b a 67 1i";}cP=o.U+(o.c.1d.F*4*(8d*-1))+(4*8c);B(3M>o.c.T.P||3M<0){u}o.c.T[3M]=C.r;o.c.T[3M+1]=C.g;o.c.T[3M+2]=C.b;o.c.T[3M+3]=C.a;u 31};28.N.e3=A(x,y){M U;B(o.c==L){2V"6b a 67 1i";}U=o.8U(x,y,o.F);u o.8O(U)};28.N.e2=A(x,y,C){M U;B(o.c==L){2V"6b a 67 1i";}U=o.8U(x,y,o.F);o.c.T[U]=C.r;o.c.T[U+1]=C.g;o.c.T[U+2]=C.b;u o.c.T[U+3]=C.a};28.N.65=A(){u o.e1()};28.N.e0=A(8f){M 3F;B(8f==L){8f=2r}3F=\'#\'+o.r.65(16)+o.g.65(16)+o.b.65(16);B(8f){u 3F+o.a.65(16)}S{u 3F}};u 28})();28=D.28;D.2w=(A(){A 2w(){}2w.8N={};2w.V=A(1q,4b){u o.8N[1q]=4b};2w.3O=A(1i,1q,1k){u o.8N[1q].4r(1i,1k)};u 2w})();2w=D.2w;D.1P=(A(){1P.4t=D.2O?6x(\'dZ\').dY().P:4;A 1P(c){o.c=c;o.4l=9x(o.4l,o);o.6I=[];o.53=L}1P.N.4k=A(8M){B(8M==L){u}u o.6I.2j(8M)};1P.N.4l=A(){M 2a;B(o.6I.P===0){2Q.4Y(o,"d0");B(o.8L!=L){o.8L.1w(o.c)}u o}o.2c=o.6I.d4();61(o.2c.1t){2i R.3g.9Z:2a=o.c.8P.d4();o.c.bm(2a);u o.4l();2i R.3g.9Y:o.c.bO();o.c.bx();u o.4l();2i R.3g.9c:u o.d5(o.2c.2a,o.2c.1G);2i R.3g.2w:u o.d6();dW:u o.d8()}};1P.N.3O=A(1N){o.8L=1N;o.53=1v.6F(o.c.T.P);u o.4l()};1P.N.8K=A(fn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,3T;43=1l[0],3J=2<=1l.P?5W.1w(1l,1):[];5X=3J[3J.P-1];B(1r 5X==="A"){6O=5X;3J.6o()}S B(1r 5X==="3j"){6O=2b[5X];3J.6o()}S{6O=2b.2h}B(1r 43==="3j"){43=43.dt("")}B(43[0]==="v"){43=[\'r\',\'g\',\'b\']}B(3J.P<2){2V"6i 8s 9K 1l 3N 2e 1C";}2h=6O(3J,0,E);1J=3J[0];B(1J[0]>0){W(i=H=0,K=1J[0];0<=K?HK;i=0<=K?++H:--H){2h[i]=1J[1]}}1Q=3J[3J.P-1];B(1Q[0]=E;i=3T<=E?++1e:--1e){2h[i]=1Q[1]}}u o.2m("2e",A(C){M 1I,4o;W(i=1I=0,4o=43.P;0<=4o?1I<4o:1I>4o;i=0<=4o?++1I:--1I){C[43[i]]=2h[C[43[i]]]}u C})});R.V("33",A(Q){M 4H,4G,p;p=O.4D(Q)/1j;4H=[0,E*p];4G=[E-(E*p),E];B(Q<0){4H=4H.bq();4G=4G.bq()}u o.2e(\'3f\',[0,0],4H,4G,[E,E])});D.2w.V("8Q",A(F,J,x,y){M I,1W;B(x==L){x=0}B(y==L){y=0}B(1r 2g!=="42"&&2g!==L){I=1y 3S(F,J)}S{I=2p.3K(\'I\');1v.5H(o.I,I);I.F=F;I.J=J}1W=I.3h(\'2d\');1W.5U(o.I,x,y,F,J,0,0,F,J);o.6z={x:x,y:y};o.bH=31;u o.73(I)});D.2w.V("88",A(2B){M I,1W;B(2B==L){2B=L}B(2B===L||((2B.F==L)&&(2B.J==L))){1Y.9C("6i d3 ds 1d aQ W 88");u}B(2B.F==L){2B.F=o.I.F*2B.J/o.I.J}S B(2B.J==L){2B.J=o.I.J*2B.F/o.I.F}B(1r 2g!=="42"&&2g!==L){I=1y 3S(2B.F,2B.J)}S{I=2p.3K(\'I\');1v.5H(o.I,I);I.F=2B.F;I.J=2B.J}1W=I.3h(\'2d\');1W.5U(o.I,0,0,o.I.F,o.I.J,0,0,2B.F,2B.J);o.7R=31;u o.73(I)});D.R.V("8Q",A(){u o.5a("8Q",5T.N.5f.1w(1l,0))});D.R.V("88",A(){u o.5a("88",5T.N.5f.1w(1l,0))});D.R.V("dr",A(){u o.3I("dq 85",[1,1,1,1,1,1,1,1,1])});D.R.V("dp",A(){u o.3I("do dn 85",[0,0,1,0,0,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,0])});D.R.V("dm",A(){u o.3I("dl 85",[1,4,6,4,1,4,16,24,16,4,6,24,36,24,6,4,16,24,16,4,1,4,6,4,1])});D.R.V("dk",A(3C){M 2I;B(3C===0||3C===47){2I=[0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0]}S B((3C>0&&3C<90)||(3C>47&&3C<7K)){2I=[0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0]}S B(3C===90||3C===7K){2I=[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0]}S{2I=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]}u o.3I("dj 85",2I)});D.R.V("6w",A(1p){B(1p==L){1p=1j}1p/=1j;u o.3I("di",[0,-1p,0,-1p,4*1p+1,-1p,0,-1p,0])});9y={3A:A(C,1p,G){C.r=C.r-(C.r*1p*G.3i);C.g=C.g-(C.g*1p*G.3i);C.b=C.b-(C.b*1p*G.3i);u C},2v:A(C,1p,G){C.r=O.1T(C.r/E,O.1c(10*1p*G.3i,1))*E;C.g=O.1T(C.g/E,O.1c(10*1p*G.3i,1))*E;C.b=O.1T(C.b/E,O.1c(10*1p*G.3i,1))*E;u C},4e:A(C,1p,G){C.r-=(C.r-G.3c.r)*1p;C.g-=(C.g-G.3c.g)*1p;C.b-=(C.b-G.3c.b)*1p;u C}};R.V("1V",A(1s,3i){M 2h,3t,1Q,1J;B(3i==L){3i=60}B(1r 1s==="3j"&&1s.5d(-1)==="%"){B(o.1d.J>o.1d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,cj,3Q,cc,8a,ca,3X,bT,7Y,bM,5P,bK,7M,bF,4I,bE,4y,83,5N,5G,7e,84,3u,bA,5q,bz,34,by,7a,bw,4F,86,79,5Y,5K,bu,4w,bo,3y,bj,3P,ba,4O,b9,8y,b8,4z,b7,8x,b6,4L,b5,8j,b4,37,b3,8b,b2,5z,aR,3Q,aO,4x,aJ,7X,aH,5y,aF,7U,aC,3W,az,7S,aw,5x,av,7P,au,4m,ar,4y,83,5w,ao,5G,an,3v,84,7p,ak,5v,5q,7o,aj,34,ag,7d,ad,5u,9O,8B,86,3V,a9,5Y,d7,5t,cZ,4w,cY,4T,3y,89,cX,3P,cT,81,4O];63=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];9o=A(F,J,5J,5M,2H,P,c2){M 3Z,1i,2s,6U,6R,6S,6Q;3Z=1r 2g!=="42"&&2g!==L?1y 3S():2p.3K(\'I\');3Z.F=F;3Z.J=J;6U=5J+O.c0(2H)*P*0.5;6S=5M+O.bZ(2H)*P*0.5;6R=5J-O.c0(2H)*P*0.5;6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A;2E-=1m.r;2D-=1m.g;2A-=1m.b;p=(x+(((p=y+1a)<3U?p:3U)*F))<<2;1R+=(2o+=(1m.r=Y[p]));1L+=(2l+=(1m.g=Y[p+1]));1O+=(2n+=(1m.b=Y[p+2]));1m=1m.1S;2E+=(1A=1H.r);2D+=(1B=1H.g);2A+=(1z=1H.b);2o-=1A;2l-=1B;2n-=1z;1H=1H.1S;1h+=F}}u o});u D.R.V("6f",A(1U){u o.5a("6f",[1U])})})();D.R.V("c3",A(Q){u o.2m("c3",A(C){M 6L;6L=(0.bp*C.r)+(0.bs*C.g)+(0.bv*C.b);B(6L35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(A(){M $,4S,2m,2g,D,54,3S,1X,2M,6B,R,2W,3O,3b,1Y,3D,29,2u,1R,7V,2Z,1v,fs,6y,7Z,5f,9y,6s=[].fb||A(bS){W(M i=0,l=o.P;iE){u E}u 2f};1v.5H=A(4H,3C,G){M 6l,H,1o,K,3P,1n;B(G==L){G={}}K=4H.e6;1n=[];W(H=0,1o=K.P;H<1o;H++){6l=K[H];B((G.8W!=L)&&(3P=6l.9U,6s.1w(G.8W,3P)>=0)){5I}1n.2p(3C.cR(6l.9U,6l.dd))}u 1n};1v.6F=A(P){B(P==L){P=0}B(D.2N||(4o.cC!=L)){u 1x cC(P)}u 1x 5T(P)};u 1v})();B(1r 2h!=="43"&&2h!==L){7V=2h;3S=6x(\'I\');3O=3S.3O;6B=6x(\'eQ\');fs=6x(\'fs\');6y=6x(\'6y\')}S{7V=4o;3O=4o.3O}D=(A(cv){cM(D,cv);D.9w={ct:"4.1.2",cs:"7/27/de"};D.co=2t;D.6r=31;D.9t="cm";D.8t="";D.ck="df";D.2N=1r 2h!=="43"&&2h!==L;D.ci=!D.2N;D.65=A(){u"dg "+D.9w.ct+", dh "+D.9w.cs};D.9m=A(I){B(D.2N){u 31}B(1r I==="3i"){I=$(I)}B(!((I!=L)&&(I.6c!=L))){u L}u I.6c(\'26-3G-2P\')};A D(){o.6d=9x(o.6d,o);M 1l,1P,2P,1H=o;B(1k.P===0){2U"6i 1k";}B(o bY D){o.6k=o.6k.98(o);o.6H=o.6H.98(o);1l=1k[0];B(!D.2N){2P=48(D.9m(1l[0]),10);1P=1r 1l[1]==="A"?1l[1]:1r 1l[2]==="A"?1l[2]:A(){};B(!bQ(2P)&&2Z.bP(2P)){u 2Z.44(2P,1P)}}o.2P=1v.8Z.47();o.7D=o.5g=L;o.6z={x:0,y:0};o.bH=2t;o.7R=2t;o.6D=[];o.8S=[];o.8P=[];o.6N=L;o.bl=2t;o.du=1x 4S(o);o.4K=1x 1R(o);o.bi(A(){1H.bh(1l);u 1H.bg()});u o}S{u 1x D(1k)}}D.N.bi=A(cb){M 8H,1H=o;B(D.2N){u 8q(A(){u cb.1w(1H)},0)}S{B(2o.9q==="8D"){1Y.2r("aU aT");u 8q(A(){u cb.1w(1H)},0)}S{8H=A(){B(2o.9q==="8D"){1Y.2r("aU aT");u cb.1w(1H)}};u 2o.aS("dE",8H,2t)}}};D.N.bh=A(1l){M 2v,2f,K,1n;B(1l.P===0){2U"6i 1k aQ";}o.39=L;o.8A=L;o.8z=L;o.1P=A(){};o.aM(1l[0]);B(1l.P===1){u}61(1r 1l[1]){2c"3i":o.8z=1l[1];4Z;2c"A":o.1P=1l[1]}B(1l.P===2){u}o.1P=1l[2];B(1l.P===4){K=1l[4];1n=[];W(2v 5h K){B(!74.1w(K,2v))5I;2f=K[2v];1n.2p(o.1E[2v]=2f)}u 1n}};D.N.aM=A(2D){B(D.2N){o.39=2D;o.8A=\'ay\';u}B(1r 2D==="46"){o.39=2D}S{o.39=$(2D)}B(o.39==L){2U"dN dO dV 1f d3 I W dX.";}u o.8A=o.39.9U.6P()};D.N.bg=A(){61(o.8A){2c"ay":u o.cN();2c"1M":u o.cE();2c"I":u o.cx()}};D.N.cN=A(){1Y.2r("e8 W 2N");B(1r o.39==="3i"&&o.39.7W(/^ch?:\\/\\//)){u o.cf(o.39,o.6d)}S B(1r o.39==="3i"){u fs.eb(o.39,o.6d)}S{u o.6d(L,o.39)}};D.N.cf=A(6u,1P){M 9z;1Y.2r("fj 1f 4H "+6u);9z=6y.47(6u,A(4r){M 7O;7O=\'\';4r.fk(\'aP\');4r.9B(\'26\',A(at){u 7O+=at});u 4r.9B(\'1N\',A(){u 1P(L,1x fp(7O,\'aP\'))})});u 9z.9B(\'9C\',1P)};D.N.6d=A(6G,26){B(6G){2U 6G;}o.1f=1x 3O();o.1f.1F=26;1Y.2r("3O cS. cD = "+(o.5b())+", cy = "+(o.4W()));o.I=1x 3S(o.5b(),o.4W());u o.6k()};D.N.cE=A(){o.1f=o.39;o.I=2o.3M(\'I\');o.1i=o.I.3f(\'2d\');1v.5H(o.1f,o.I,{8W:[\'1F\']});B(o.1f.7c!=L){o.1f.7c.9D(o.I,o.1f)}o.9J();u o.9L()};D.N.cx=A(){o.I=o.39;o.1i=o.I.3f(\'2d\');B(o.8z!=L){o.1f=2o.3M(\'1M\');o.1f.1F=o.8z;o.9J();u o.9L()}S{u o.6k()}};D.N.9J=A(){B(o.9M()){1Y.2r(o.1f.1F,"->",o.8m());o.bd=31;o.1f.1F=o.8m()}B(2W.bb(o.1f)){o.1f.1F=2W.57(o.1f.1F);u 1Y.2r("fu 1f fx, fD cQ = "+o.1f.1F)}};D.N.9L=A(){B(o.cB()){u o.6H()}S{u o.1f.cr=o.6H}};D.N.cB=A(){B(!o.1f.8D){u 2t}B((o.1f.9P!=L)&&o.1f.9P===0){u 2t}u 31};D.N.5b=A(){u o.1f.F||o.1f.9P};D.N.4W=A(){u o.1f.J||o.1f.fN};D.N.6H=A(){1Y.2r("3O cS. cD = "+(o.5b())+", cy = "+(o.4W()));B(o.bd){o.I.F=o.5b()/o.7G();o.I.J=o.4W()/o.7G()}S{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==1};D.N.9M=A(){B(o.aE()||!o.aZ()){u 2t}u o.8m()!==L};D.N.8m=A(){B(o.1f==L){u L}u o.1f.6c(\'26-3G-cO\')};D.N.73=A(aD){M 7z;7z=o.I;o.I=aD;o.1i=o.I.3f(\'2d\');B(!D.2N){7z.7c.9D(o.I,7z)}o.F=o.I.F;o.J=o.I.J;o.c1();u o.1c={F:o.I.F,J:o.I.J}};D.N.a8=A(1P){M 1H=o;B(1P==L){1P=A(){}}2M.4Y(o,"aX");u o.4K.44(A(){1H.1i.7x(1H.2A,0,0);u 1P.1w(1H)})};D.N.gu=A(8e){M i,1u,H,1o,K;B(8e==L){8e=31}B(!D.6r){2U"a0 7F";}K=o.d2();W(i=H=0,1o=K.P;H<1o;i=++H){1u=K[i];o.T[i]=1u}B(8e){u o.1i.7x(o.2A,0,0)}};D.N.gt=A(){M I,1V,i,2A,1u,T,H,1o,K;I=2o.3M(\'I\');1v.5H(o.I,I);I.F=o.51;I.J=o.5D;1V=I.3f(\'2d\');2A=1V.49(0,0,I.F,I.J);T=2A.26;K=o.7D;W(i=H=0,1o=K.P;H<1o;i=++H){1u=K[i];T[i]=1u}1V.7x(2A,0,0);o.6z={x:0,y:0};o.7R=2t;u o.73(I)};D.N.d2=A(){M I,7E,1V,28,a6,i,2A,1u,T,Y,72,8k,8w,F,H,1e,1o,K,3P,4q,a5;B(!D.6r){2U"a0 7F";}Y=[];8k=o.6z.x;28=8k+o.F;8w=o.6z.y;a6=8w+o.J;B(o.7R){I=2o.3M(\'I\');I.F=o.51;I.J=o.5D;1V=I.3f(\'2d\');2A=1V.49(0,0,I.F,I.J);T=2A.26;K=o.5g;W(i=H=0,1o=K.P;H<1o;i=++H){1u=K[i];T[i]=1u}1V.7x(2A,0,0);72=2o.3M(\'I\');72.F=o.F;72.J=o.J;1V=72.3f(\'2d\');1V.5U(I,0,0,o.51,o.5D,0,0,o.F,o.J);T=1V.49(0,0,o.F,o.J).26;F=o.F}S{T=o.5g;F=o.51}W(i=1e=0,3P=T.P;1e<3P;i=1e+=4){7E=29.cl(i,F);B(((8k<=(4q=7E.x)&&4q<28))&&((8w<=(a5=7E.y)&&a5K;i=0<=K?++H:--H){2T+=Q[i]}}o.4K.4m({1s:R.3c.a1,1q:1q,Q:Q,2T:2T,3g:3g});u o};D.N.5a=A(4d,1l){o.4K.4m({1s:R.3c.2u,4d:4d,1l:1l});u o};D.N.32=A(1P){M 2i;2i=1x 3b(o);o.8P.2p(2i);o.4K.4m({1s:R.3c.9Z});1P.1w(2i);o.4K.4m({1s:R.3c.9Y});u o};D.N.bm=A(2i){u o.bn(2i)};D.N.bn=A(2i){o.8S.2p(o.6N);o.6D.2p(o.T);o.6N=2i;u o.T=2i.T};D.N.bx=A(){o.T=o.6D.6o();u o.6N=o.8S.6o()};D.N.bO=A(){u o.6N.bU()};u D})(3D);7V.D=D;D.4S=(A(){A 4S(c){o.c=c}4S.N.fX=A(){M i,3m,71,H,1e,1G,K;3m={r:{},g:{},b:{}};W(i=H=0;H<=E;i=++H){3m.r[i]=0;3m.g[i]=0;3m.b[i]=0}W(i=1e=0,K=o.c.T.P;1e0)){u}1n=[];W(H=0,1o=6Z.P;H<1o;H++){1M=6Z[H];1n.2p(cA=1x 54(1M,A(){o.cI();u o.44()}))}u 1n};B(D.ci){(A(){B(2o.9q==="8D"){u D.9X()}S{u 2o.aS("fT",D.9X,2t)}})()}54=(A(){M 8g;8g="(\\\\w+)\\\\((.*?)\\\\)";A 54(4g,db){o.ab=4g.6c(\'26-3G\');o.3G=D(4g,db.98(o))}54.N.cI=A(){M 1l,e,1B,5j,9W,9V,m,r,6X,H,1o,K,1n;o.4g=o.3G.I;r=1x bf(8g,\'g\');6X=o.ab.7W(r);B(!(6X.P>0)){u}r=1x bf(8g);1n=[];W(H=0,1o=6X.P;H<1o;H++){9W=6X[H];K=9W.7W(r),m=K[0],1B=K[1],1l=K[2];9V=1x fO("u A() { o."+1B+"("+1l+"); };");9S{5j=9V();1n.2p(5j.1w(o.3G))}9R(5C){e=5C;1n.2p(1Y.2r(e))}}u 1n};54.N.44=A(){M 4g;4g=o.4g;u o.3G.a8(A(){u 4g.7c.9D(o.bJ(),4g)})};u 54})();D.2m=(A(){A 2m(){}2m.9Q={};2m.U=A(1q,5j){u o.9Q[1q]=5j};2m.44=A(1q,Z,X){u o.9Q[1q](Z,X)};u 2m})();2m=D.2m;D.2g=(A(){A 2g(){}2g.52=A(6U,6S,6R,6Q){u O.7L(O.1T(6R-6U,2)+O.1T(6Q-6S,2))};2g.ce=A(1Q,1d,6M){M 4t;B(6M==L){6M=2t}4t=1Q+(O.fL()*(1d-1Q));B(6M){u 4t.fH(6M)}S{u O.62(4t)}};2g.6L=A(C){u(0.9O*C.r)+(0.fF*C.g)+(0.fE*C.b)};2g.2b=A(1J,4F,4E,1N,58,59){M 2b,5r,2z,28,i,j,5s,1K,3I,t,H,1e,K;B(58==L){58=0}B(59==L){59=E}B(1J[0]bY 5T){2z=1J;58=4F;59=4E}S{2z=[1J,4F,4E,1N]}B(2z.P<2){2U"6i 8s 9K 1k 3C 2b";}2b={};5s=A(a,b,t){u a*(1-t)+b*t};5r=A(a,1Q,1d){u O.1Q(O.1d(a,1Q),1d)};W(i=H=0;H1){1K=[];W(j=1e=0,K=3I.P-2;0<=K?1e<=K:1e>=K;j=0<=K?++1e:--1e){1K.2p([5s(3I[j][0],3I[j+1][0],t),5s(3I[j][1],3I[j+1][1],t)])}3I=1K}2b[O.62(3I[0][0])]=O.62(5r(3I[0][1],58,59))}28=2z[2z.P-1][0];2b=D.2g.9H(2b,28);B(2b[28]==L){2b[28]=2b[28-1]}u 2b};2g.bR=A(2z,58,59){M 4m,5r,9G,28,8C,76,77,78,i,j,5s,9F,9E,4y,p,5A,5B,4T,7g,7i,3r,7k,t,H,1e,K,1H=o;B(2z.P<2){2U"6i 8s 9K 1k 3C bR";}3r={};5s=A(a,b,t){u a*(1-t)+b*t};4m=A(a,b,c,d){u[a[0]+b[0]+c[0]+d[0],a[1]+b[1]+c[1]+d[1]]};4y=A(a,b){u[a[0]*b[0],a[1]*b[1]]};7k=A(a,b){u[a[0]-b[0],a[1]-b[1]]};5r=A(a,1Q,1d){u O.1Q(O.1d(a,1Q),1d)};9G=0;W(i=H=0,K=2z.P-2;0<=K?H<=K:H>=K;i=0<=K?++H:--H){5A=2z[i];5B=2z[i+1];4T=5B[0]-5A[0];7g=1/4T;B(i===2z.P-2){7g=1/(4T-1)}p=i>0?2z[i-1]:5A;9F=4y(7k(5B,p),[0.5,0.5]);p=i<2z.P-2?2z[i+2]:5B;9E=4y(7k(p,5A),[0.5,0.5]);W(j=1e=0;0<=4T?1e<=4T:1e>=4T;j=0<=4T?++1e:--1e){t=j*7g;8C=2.0*t*t*t-3.0*t*t+1.0;76=t*t*t-2.0*t*t+t;77=-2.0*t*t*t+3.0*t*t;78=t*t*t-t*t;7i=4m(4y(5A,[8C,8C]),4y(9F,[76,76]),4y(5B,[77,77]),4y(9E,[78,78]));3r[O.62(7i[0])]=O.62(5r(7i[1],58,59));9G+=1}}28=2z[2z.P-1][0];3r=D.2g.9H(3r,28);u 3r};2g.9H=A(5c,28){M i,j,5F,3r,7s,H,1e;B(bc.ft(5c).P<28+1){3r={};W(i=H=0;0<=28?H<=28:H>=28;i=0<=28?++H:--H){B(5c[i]!=L){3r[i]=5c[i]}S{5F=[i-1,3r[i-1]];W(j=1e=i;i<=28?1e<=28:1e>=28;j=i<=28?++1e:--1e){B(5c[j]!=L){7s=[j,5c[j]];4Z}}3r[i]=5F[1]+((7s[1]-5F[1])/(7s[0]-5F[0]))*(i-5F[0])}}u 3r}u 5c};u 2g})();2g=D.2g;D.1X=(A(){A 1X(){}1X.7u=A(3H){M b,g,r;B(3H.fr(0)==="#"){3H=3H.5d(1)}r=48(3H.5d(0,2),16);g=48(3H.5d(2,2),16);b=48(3H.5d(4,2),16);u{r:r,g:g,b:b}};1X.fq=A(r,g,b){M d,h,l,1d,1Q,s;B(1r r==="46"){g=r.g;b=r.b;r=r.r}r/=E;g/=E;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B(z>0.9l){z=O.1T(z,0.9k)}S{z=(7.9j*z)+0.69}l=cF*y-16;a=cG*(x-y);b=6a*(y-z);u{l:l,a:a,b:b}};1X.f0=A(l,a,b){M x,y,z;B(1r l==="46"){a=l.a;b=l.b;l=l.l}y=(l+16)/cF;x=y+(a/cG);z=y-(b/6a);B(x>0.9i){x=x*x*x}S{x=0.9h*(x-0.69)}B(y>0.9i){y=y*y*y}S{y=0.9h*(y-0.69)}B(z>0.9i){z=z*z*z}S{z=0.9h*(z-0.69)}u{x:x*95.cn,y:y*1j.0,z:z*9n.cu}};1X.eZ=A(r,g,b){M 9f;B(1r r==="46"){g=r.g;b=r.b;r=r.r}9f=o.b1(r,g,b);u o.c9(9f)};1X.eY=A(l,a,b){};u 1X})();1X=D.1X;D.2M=(A(){A 2M(){}2M.5n={};2M.cU=["cV","cW","aX","d0","d1","6g"];2M.4Y=A(38,1s,26){M 6m,H,1o,K,1n;B(26==L){26=L}B(o.5n[1s]&&o.5n[1s].P){K=o.5n[1s];1n=[];W(H=0,1o=K.P;H<1o;H++){6m=K[H];B(6m.38===L||38.2P===6m.38.2P){1n.2p(6m.fn.1w(38,26))}S{1n.2p(da 0)}}u 1n}};2M.eX=A(38,1s,fn){M 9e,9d;B(1r 38==="3i"){9d=38;9e=1s;38=L;1s=9d;fn=9e}B(6s.1w(o.cU,1s)<0){u 2t}B(!o.5n[1s]){o.5n[1s]=[]}o.5n[1s].2p({38:38,fn:fn});u 31};u 2M})();2M=D.2M;D.R=(A(){A R(){}R.3c={a2:1,a1:2,9Z:3,9Y:4,9c:5,2u:6};R.U=A(1q,ah){u D.N[1q]=ah};u R})();R=D.R;D.2W=(A(){A 2W(){}2W.aq=/(?:(?:6y|ch):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;2W.bb=A(1M){B(1M==L){u 2t}B(o.as(1M)){u 2t}u o.7j(1M.1F)};2W.as=A(1M){M K;u(1M.9t!=L)&&((K=1M.9t.6P())===\'cm\'||K===\'ax-eW\')};2W.7j=A(6u){M 7l;7l=6u.7W(o.aq);B(7l){u 7l[1]!==2o.eV}S{u 2t}};2W.aK=A(1F){B(o.7j(1F)){B(!D.8t.P){1Y.99("eS 3C eR a aV 1f eN a eM aY. cQ: "+1F)}S{B(D.7j(D.8t)){1Y.99("eL ax a aV aY W eK eI.");u}u o.57(1F)}}};2W.57=A(1F){u""+D.8t+"?"+D.ck+"="+(eG(1F))};2W.eD=A(5k){M 7w;7w={eC:\'eB\',eA:\'ez\',ey:\'ex\',ew:\'ev\'};5k=5k.6P();B(7w[5k]!=L){5k=7w[5k]}u"eu/es."+5k};u 2W})();D.N.bB=A(){B(1r 2h!=="43"&&2h!==L){u o.bC.4u(o,1k)}S{u o.bD.4u(o,1k)}};D.N.bD=A(1s){M 1f;B(1s==L){1s="bG"}1s=1s.6P();1f=o.94(1s).er("1f/"+1s,"1f/eq-ep");u 2o.eo.en=1f};D.N.bC=A(5R,7J,1P){M e,91;B(7J==L){7J=31}B(1P==L){1P=L}9S{91=fs.em(5R);B(91.ek()&&!7J){u 2t}}9R(5C){e=5C;1Y.2r("ej eh 5R "+5R)}u fs.eg(5R,o.I.ef(),A(6G){1Y.2r("ee ed 3C "+5R);B(1P){u 1P.1w(o,6G)}})};D.N.bJ=A(1s){M 1M;1M=1x 3O();1M.1F=o.94(1s);1M.F=o.1c.F;1M.J=o.1c.J;B(4o.4l){1M.F/=4o.4l;1M.J/=4o.4l}u 1M};D.N.94=A(1s){B(1s==L){1s="bG"}1s=1s.6P();u o.I.ec("1f/"+1s)};2W=D.2W;D.3b=(A(){A 3b(c){o.c=c;o.1B=o.c;o.1E={8Y:\'8X\',2q:1.0};o.ea=1v.8Z.47();o.I=1r 2h!=="43"&&2h!==L?1x 3S():2o.3M(\'I\');o.I.F=o.c.1c.F;o.I.J=o.c.1c.J;o.1i=o.I.3f(\'2d\');o.1i.e9(o.I.F,o.I.J);o.2A=o.1i.49(0,0,o.I.F,o.I.J);o.T=o.2A.26}3b.N.32=A(cb){u o.c.32.1w(o.c,cb)};3b.N.3p=A(cg){o.1E.8Y=cg;u o};3b.N.2q=A(2q){o.1E.2q=2q/1j;u o};3b.N.4p=A(){M i,2Y,H,K;2Y=o.c.T;W(i=H=0,K=o.c.T.P;Ho.c.T.P||3N<0){u 1x 29(0,0,0,E,o.c)}u o.8O(3N)};29.N.e4=A(8c,8d,C){M cP;B(o.c==L){2U"6b a 67 1i";}cP=o.V+(o.c.1c.F*4*(8d*-1))+(4*8c);B(3N>o.c.T.P||3N<0){u}o.c.T[3N]=C.r;o.c.T[3N+1]=C.g;o.c.T[3N+2]=C.b;o.c.T[3N+3]=C.a;u 31};29.N.e3=A(x,y){M V;B(o.c==L){2U"6b a 67 1i";}V=o.8U(x,y,o.F);u o.8O(V)};29.N.e2=A(x,y,C){M V;B(o.c==L){2U"6b a 67 1i";}V=o.8U(x,y,o.F);o.c.T[V]=C.r;o.c.T[V+1]=C.g;o.c.T[V+2]=C.b;u o.c.T[V+3]=C.a};29.N.65=A(){u o.e1()};29.N.e0=A(8f){M 3H;B(8f==L){8f=2t}3H=\'#\'+o.r.65(16)+o.g.65(16)+o.b.65(16);B(8f){u 3H+o.a.65(16)}S{u 3H}};u 29})();29=D.29;D.2u=(A(){A 2u(){}2u.8N={};2u.U=A(1q,4d){u o.8N[1q]=4d};2u.44=A(1i,1q,1l){u o.8N[1q].4u(1i,1l)};u 2u})();2u=D.2u;D.1R=(A(){1R.4U=D.2N?6x(\'dZ\').dY().P:4;A 1R(c){o.c=c;o.4n=9x(o.4n,o);o.6I=[];o.53=L}1R.N.4m=A(8M){B(8M==L){u}u o.6I.2p(8M)};1R.N.4n=A(){M 2i;B(o.6I.P===0){2M.4Y(o,"d0");B(o.8L!=L){o.8L.1w(o.c)}u o}o.2a=o.6I.d4();61(o.2a.1s){2c R.3c.9Z:2i=o.c.8P.d4();o.c.bm(2i);u o.4n();2c R.3c.9Y:o.c.bO();o.c.bx();u o.4n();2c R.3c.9c:u o.d5(o.2a.2i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.b+=(E-C.b)*1E.41}S{C.b-=C.b*O.4x(1E.41)}}u C})});R.U("2e",A(){M 6O,2b,42,3L,1N,i,5X,1J,H,1e,K,3P;42=1k[0],3L=2<=1k.P?5W.1w(1k,1):[];5X=3L[3L.P-1];B(1r 5X==="A"){6O=5X;3L.6o()}S B(1r 5X==="3i"){6O=2g[5X];3L.6o()}S{6O=2g.2b}B(1r 42==="3i"){42=42.dt("")}B(42[0]==="v"){42=[\'r\',\'g\',\'b\']}B(3L.P<2){2U"6i 8s 9K 1k 3C 2e 1B";}2b=6O(3L,0,E);1J=3L[0];B(1J[0]>0){W(i=H=0,K=1J[0];0<=K?HK;i=0<=K?++H:--H){2b[i]=1J[1]}}1N=3L[3L.P-1];B(1N[0]=E;i=3P<=E?++1e:--1e){2b[i]=1N[1]}}u o.2n("2e",A(C){M 1G,4q;W(i=1G=0,4q=42.P;0<=4q?1G<4q:1G>4q;i=0<=4q?++1G:--1G){C[42[i]]=2b[C[42[i]]]}u C})});R.U("37",A(Q){M 4F,4E,p;p=O.4x(Q)/1j;4F=[0,E*p];4E=[E-(E*p),E];B(Q<0){4F=4F.bq();4E=4E.bq()}u o.2e(\'3j\',[0,0],4F,4E,[E,E])});D.2u.U("8Q",A(F,J,x,y){M I,1V;B(x==L){x=0}B(y==L){y=0}B(1r 2h!=="43"&&2h!==L){I=1x 3S(F,J)}S{I=2o.3M(\'I\');1v.5H(o.I,I);I.F=F;I.J=J}1V=I.3f(\'2d\');1V.5U(o.I,x,y,F,J,0,0,F,J);o.6z={x:x,y:y};o.bH=31;u o.73(I)});D.2u.U("88",A(2y){M I,1V;B(2y==L){2y=L}B(2y===L||((2y.F==L)&&(2y.J==L))){1Y.9C("6i d3 ds 1c aQ W 88");u}B(2y.F==L){2y.F=o.I.F*2y.J/o.I.J}S B(2y.J==L){2y.J=o.I.J*2y.F/o.I.F}B(1r 2h!=="43"&&2h!==L){I=1x 3S(2y.F,2y.J)}S{I=2o.3M(\'I\');1v.5H(o.I,I);I.F=2y.F;I.J=2y.J}1V=I.3f(\'2d\');1V.5U(o.I,0,0,o.I.F,o.I.J,0,0,2y.F,2y.J);o.7R=31;u o.73(I)});D.R.U("8Q",A(){u o.5a("8Q",5T.N.5f.1w(1k,0))});D.R.U("88",A(){u o.5a("88",5T.N.5f.1w(1k,0))});D.R.U("dr",A(){u o.3J("dq 85",[1,1,1,1,1,1,1,1,1])});D.R.U("dp",A(){u o.3J("do dn 85",[0,0,1,0,0,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,0])});D.R.U("dm",A(){u o.3J("dl 85",[1,4,6,4,1,4,16,24,16,4,6,24,36,24,6,4,16,24,16,4,1,4,6,4,1])});D.R.U("dk",A(3E){M 2H;B(3E===0||3E===4b){2H=[0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0]}S B((3E>0&&3E<90)||(3E>4b&&3E<7K)){2H=[0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0]}S B(3E===90||3E===7K){2H=[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0]}S{2H=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]}u o.3J("dj 85",2H)});D.R.U("6w",A(1p){B(1p==L){1p=1j}1p/=1j;u o.3J("di",[0,-1p,0,-1p,4*1p+1,-1p,0,-1p,0])});9y={3t:A(C,1p,G){C.r=C.r-(C.r*1p*G.3h);C.g=C.g-(C.g*1p*G.3h);C.b=C.b-(C.b*1p*G.3h);u C},2w:A(C,1p,G){C.r=O.1T(C.r/E,O.1d(10*1p*G.3h,1))*E;C.g=O.1T(C.g/E,O.1d(10*1p*G.3h,1))*E;C.b=O.1T(C.b/E,O.1d(10*1p*G.3h,1))*E;u C},4i:A(C,1p,G){C.r-=(C.r-G.3e.r)*1p;C.g-=(C.g-G.3e.g)*1p;C.b-=(C.b-G.3e.b)*1p;u C}};R.U("1U",A(1t,3h){M 2b,3l,1N,1J;B(3h==L){3h=60}B(1r 1t==="3i"&&1t.5d(-1)==="%"){B(o.1c.J>o.1c.F){1t=o.1c.F*(48(1t.5d(0,1t.P-1),10)/1j)}S{1t=o.1c.J*(48(1t.5d(0,1t.P-1),10)/1j)}}3h/=1j;3l=[o.1c.F/2,o.1c.J/2];1J=O.7L(O.1T(3l[0],2)+O.1T(3l[1],2));1N=1J-1t;2b=2g.2b([0,1],[30,30],[70,60],[1j,80]);u o.2n("1U",A(C){M 7m,2J,V;V=C.8R();7m=2g.52(V.x,V.y,3l[0],3l[1]);B(7m>1N){2J=O.1d(1,(2b[O.62(((7m-1N)/1t)*1j)]/10)*3h);C.r=O.1T(C.r/E,2J)*E;C.g=O.1T(C.g/E,2J)*E;C.b=O.1T(C.b/E,2J)*E}u C})});R.U("bX",A(G){M 4a,6j,7h,1t,H,1o,K;4a={3h:50,2I:0,9g:\'3t\',3e:{r:0,g:0,b:0}};G=1v.7N(4a,G);B(!G.1t){u o}S B(1r G.1t==="3i"){7h=48(G.1t,10)/1j;G.1t={F:o.1c.F*7h,J:o.1c.J*7h}}S B(1r G.1t==="46"){K=["F","J"];W(H=0,1o=K.P;H<1o;H++){6j=K[H];B(1r G.1t[6j]==="3i"){G.1t[6j]=o.1c[6j]*(48(G.1t[6j],10)/1j)}}}S B(G.1t==="8s"){1t=G.1t;G.1t={F:1t,J:1t}}B(1r G.2I==="3i"){G.2I=(G.1t.F/2)*(48(G.2I,10)/1j)}G.3h/=1j;G.1t.F=O.2V(G.1t.F);G.1t.J=O.2V(G.1t.J);G.1f={F:o.1c.F,J:o.1c.J};B(G.9g==="4i"&&1r G.3e==="3i"){G.3e=1X.7u(G.3e)}G.1Z={5m:(o.1c.F-G.1t.F)/2,68:o.1c.F-G.1Z.5m,5l:(o.1c.J-G.1t.J)/2,66:o.1c.J-G.1Z.5l};G.1y=[{x:G.1Z.5m+G.2I,y:G.1Z.66-G.2I},{x:G.1Z.68-G.2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y,7S,5x,7P,4k,4G,5w,5G,3y,7p,5v,7o,33,7d,5u,8B,3X,5Y,5t,4D,4C,89,3Q,81,2Q,cK,8u,cw,5Z,4M,8r,cq,4R,cp,8o,cj,3T,cc,8a,ca,3Z,bT,7Y,bM,5P,bK,7M,bF,4Q,bE,4G,83,5N,5G,7e,84,3A,bA,5q,bz,33,by,7a,bw,4P,86,79,5Y,5K,bu,4D,bo,3q,bj,3Q,ba,4V,b9,8y,b8,4O,b7,8x,b6,4M,b5,8j,b4,3a,b3,8b,b2,5z,aR,3T,aO,4I,aJ,7X,aH,5y,aF,7U,aC,3Y,az,7S,aw,5x,av,7P,au,4k,ar,4G,83,5w,ao,5G,an,3y,84,7p,ak,5v,5q,7o,aj,33,ag,7d,ad,5u,9O,8B,86,3X,a9,5Y,d7,5t,cZ,4D,cY,4C,3q,89,cX,3Q,cT,81,4V];63=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];9o=A(F,J,5J,5M,2G,P,c2){M 3V,1i,2s,6U,6R,6S,6Q;3V=1r 2h!=="43"&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3w:--3w){p=1h<<2;Y[p]=(1S*2O)>>2K;Y[p+1]=(1L*2O)>>2K;Y[p+2]=(1O*2O)>>2K;1S-=2E;1L-=2F;1O-=2C;2E-=1m.r;2F-=1m.g;2C-=1m.b;p=(x+(((p=y+1a)<3U?p:3U)*F))<<2;1S+=(2l+=(1m.r=Y[p]));1L+=(2k+=(1m.g=Y[p+1]));1O+=(2j+=(1m.b=Y[p+2]));1m=1m.1K;2E+=(1A=1I.r);2F+=(1z=1I.g);2C+=(1C=1I.b);2l-=1A;2k-=1z;2j-=1C;1I=1I.1K;1h+=F}}u o});u D.R.U("6f",A(1W){u o.5a("6f",[1W])})})();D.R.U("c3",A(Q){u o.2n("c3",A(C){M 6L;6L=(0.bp*C.r)+(0.bs*C.g)+(0.bv*C.b);B(6L35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(o(){I $,2F,1z,1J,B,2Y,30,1p,1O,3X,V,1Q,2I,22,1o,2g,1r,1V,1g,4o,21,1a,3q,49,4G,3r,4g=[].9q||o(7j){T(I i=0,l=8.L;iD){9 D}9 1x};1a.40=o(2R,2l,3Z){I 3W,C,13,F,2q,Y;u(3Z==G){3Z={}}F=2R.aH;Y=[];T(C=0,13=F.L;C<13;C++){3W=F[C];u((3Z.6m!=G)&&(2q=3W.6p,4g.18(3Z.6m,2q)>=0)){42}Y.1A(2l.7G(3W.6p,3W.am))}9 Y};1a.3T=o(L){u(L==G){L=0}u(B.1S||(2T.7B!=G)){9 1m 7B(L)}9 1m 4c(L)};9 1a})();u(1f 1Y!=="36"&&1Y!==G){4o=1Y;30=3S(\'E\');2I=30.2I;3X=3S(\'a0\');3q=3S(\'3q\');49=3S(\'49\')}R{4o=2T}B=(o(7d){6x(B,7d);B.6s={7M:"4.1.2",7s:"7/27/b8"};B.6V=1G;B.44=2c;B.6v="7x";B.5e="";B.7P="aP";B.1S=1f 1Y!=="36"&&1Y!==G;B.82=!B.1S;B.3D=o(){9"a2 "+B.6s.7M+", aO "+B.6s.7s};B.5V=o(E){u(B.1S){9 2c}u(1f E==="2S"){E=$(E)}u(!((E!=G)&&(E.3G!=G))){9 G}9 E.3G(\'1v-2h-1W\')};o B(){8.3n=5k(8.3n,8);I W,1j,1W,1b=8;u(X.L===0){1R"3l X";}u(8 8m B){8.3h=8.3h.5o(8);8.4f=8.4f.5o(8);W=X[0];u(!B.1S){1W=4D(B.5V(W[0]),10);1j=1f W[1]==="o"?W[1]:1f W[2]==="o"?W[2]:o(){};u(!aT(1W)&&21.8z(1W)){9 21.2o(1W,1j)}}8.1W=1a.6e.2t();8.4Q=8.38=G;8.3U={x:0,y:0};8.84=1G;8.4w=1G;8.4b=[];8.63=[];8.5R=[];8.4j=G;8.76=1G;8.aN=1m 2F(8);8.2L=1m 1g(8);8.6L(o(){1b.8v(W);9 1b.86()});9 8}R{9 1m B(X)}}B.H.6L=o(3y){I 5m,1b=8;u(B.1S){9 59(o(){9 3y.18(1b)},0)}R{u(1M.5F==="4P"){1o.1C("6S 6R");9 59(o(){9 3y.18(1b)},0)}R{5m=o(){u(1M.5F==="4P"){1o.1C("6S 6R");9 3y.18(1b)}};9 1M.6B("a4",5m,1G)}}};B.H.8v=o(W){I 1B,1x,F,Y;u(W.L===0){1R"3l X 80";}8.23=G;8.4A=G;8.4F=G;8.1j=o(){};8.8D(W[0]);u(W.L===1){9}3I(1f W[1]){1t"2S":8.4F=W[1];3c;1t"o":8.1j=W[1]}u(W.L===2){9}8.1j=W[2];u(W.L===4){F=W[4];Y=[];T(1B 2X F){u(!3L.18(F,1B))42;1x=F[1B];Y.1A(8.1e[1B]=1x)}9 Y}};B.H.8D=o(1D){u(B.1S){8.23=1D;8.4A=\'7Q\';9}u(1f 1D==="2w"){8.23=1D}R{8.23=$(1D)}u(8.23==G){1R"bb 9F 9X S 85 E T ak.";}9 8.4A=8.23.6p.4m()};B.H.86=o(){3I(8.4A){1t"7Q":9 8.8F();1t"1i":9 8.8B();1t"E":9 8.8t()}};B.H.8F=o(){1o.1C("aU T 1S");u(1f 8.23==="2S"&&8.23.4N(/^8e?:\\/\\//)){9 8.89(8.23,8.3n)}R u(1f 8.23==="2S"){9 3q.9Y(8.23,8.3n)}R{9 8.3n(G,8.23)}};B.H.89=o(3Y,1j){I 6j;1o.1C("ac S 2R "+3Y);6j=49.2t(3Y,o(2r){I 4z;4z=\'\';2r.aK(\'7z\');2r.5X(\'1v\',o(7t){9 4z+=7t});9 2r.5X(\'1q\',o(){9 1j(G,1m aS(4z,\'7z\'))})});9 6j.5X(\'5K\',1j)};B.H.3n=o(4l,1v){u(4l){1R 4l;}8.S=1m 2I();8.S.1c=1v;1o.1C("2I 6E. 8u = "+(8.3f())+", 8j = "+(8.3e()));8.E=1m 30(8.3f(),8.3e());9 8.3h()};B.H.8B=o(){8.S=8.23;8.E=1M.2U(\'E\');8.19=8.E.2p(\'2d\');1a.40(8.S,8.E,{6m:[\'1c\']});u(8.S.58!=G){8.S.58.5S(8.E,8.S)}8.5i();9 8.5Z()};B.H.8t=o(){8.E=8.23;8.19=8.E.2p(\'2d\');u(8.4F!=G){8.S=1M.2U(\'1i\');8.S.1c=8.4F;8.5i();9 8.5Z()}R{9 8.3h()}};B.H.5i=o(){u(8.61()){1o.1C(8.S.1c,"->",8.4L());8.7c=2c;8.S.1c=8.4L()}u(1Q.7l(8.S)){8.S.1c=1Q.3b(8.S.1c);9 1o.1C("90 S 9f, 9j 7m = "+8.S.1c)}};B.H.5Z=o(){u(8.7F()){9 8.4f()}R{9 8.S.6T=8.4f}};B.H.7F=o(){u(!8.S.4P){9 1G}u((8.S.5A!=G)&&8.S.5A===0){9 1G}9 2c};B.H.3f=o(){9 8.S.K||8.S.5A};B.H.3e=o(){9 8.S.P||8.S.ag};B.H.4f=o(){1o.1C("2I 6E. 8u = "+(8.3f())+", 8j = "+(8.3e()));u(8.7c){8.E.K=8.3f()/8.4x();8.E.P=8.3e()/8.4x()}R{8.E.K=8.3f();8.E.P=8.3e()}9 8.3h()};B.H.3h=o(){I i,15,C,13,F;u(8.19==G){8.19=8.E.2p(\'2d\')}8.3J=8.3M=8.K=8.E.K;8.3N=8.3O=8.P=8.E.P;8.7O();u(!8.8d()){8.6J()}u(8.S!=G){8.19.3P(8.S,0,0,8.3f(),8.3e(),0,0,8.3M,8.3O)}8.1H=8.19.3a(0,0,8.E.K,8.E.P);8.M=8.1H.1v;u(B.44){8.4Q=1a.3T(8.M.L);8.38=1a.3T(8.M.L);F=8.M;T(i=C=0,13=F.L;C<13;i=++C){15=F[i];8.4Q[i]=15;8.38[i]=15}}8.1E={K:8.E.K,P:8.E.P};u(!B.1S){21.7f(8.1W,8)}8.1j.18(8,8);9 8.1j=o(){}};B.H.7k=o(){8.1H=8.19.3a(0,0,8.E.K,8.E.P);9 8.M=8.1H.1v};B.H.9r=o(){I i,15,C,13,F,Y;u(!B.44){1R"6u 4V";}8.38=1a.3T(8.M.L);F=8.M;Y=[];T(i=C=0,13=F.L;C<13;i=++C){15=F[i];Y.1A(8.38[i]=15)}9 Y};B.H.8d=o(){9 B.5V(8.E)!=G};B.H.6J=o(){u(B.1S||8.E.3G(\'1v-2h-1W\')){9}9 8.E.7G(\'1v-2h-1W\',8.1W)};B.H.7n=o(){9 8.E.3G(\'1v-2h-7p-4V\')!==G};B.H.7O=o(){I 2s;u(B.1S||!8.61()){9}2s=8.4x();u(2s!==1){1o.1C("a7 2s = "+2s);8.76=2c;8.3M=8.E.K;8.3O=8.E.P;8.E.K=8.3M*2s;8.E.P=8.3O*2s;8.E.7C.K=""+8.3M+"7E";8.E.7C.P=""+8.3O+"7E";8.19.ah(2s,2s);8.K=8.3J=8.E.K;9 8.P=8.3N=8.E.P}};B.H.4x=o(){I 6t,2C;2C=2T.2C||1;6t=8.19.ap||8.19.at||8.19.av||8.19.aG||8.19.aI||1;9 2C/6t};B.H.7N=o(){9(2T.2C!=G)&&2T.2C!==1};B.H.61=o(){u(8.7n()||!8.7N()){9 1G}9 8.4L()!==G};B.H.4L=o(){u(8.S==G){9 G}9 8.S.3G(\'1v-2h-7p\')};B.H.57=o(7V){I 5a;5a=8.E;8.E=7V;8.19=8.E.2p(\'2d\');u(!B.1S){5a.58.5S(8.E,5a)}8.K=8.E.K;8.P=8.E.P;8.7k();9 8.1E={K:8.E.K,P:8.E.P}};B.H.8f=o(1j){I 1b=8;u(1j==G){1j=o(){}}1O.39(8,"6D");9 8.2L.2o(o(){1b.19.5d(1b.1H,0,0);9 1j.18(1b)})};B.H.b5=o(4p){I i,15,C,13,F;u(4p==G){4p=2c}u(!B.44){1R"6u 4V";}F=8.6U();T(i=C=0,13=F.L;C<13;i=++C){15=F[i];8.M[i]=15}u(4p){9 8.19.5d(8.1H,0,0)}};B.H.bm=o(){I E,1K,i,1H,15,M,C,13,F;E=1M.2U(\'E\');1a.40(8.E,E);E.K=8.3J;E.P=8.3N;1K=E.2p(\'2d\');1H=1K.3a(0,0,E.K,E.P);M=1H.1v;F=8.4Q;T(i=C=0,13=F.L;C<13;i=++C){15=F[i];M[i]=15}1K.5d(1H,0,0);8.3U={x:0,y:0};8.4w=1G;9 8.57(E)};B.H.6U=o(){I E,4r,1K,1s,6r,i,1H,15,M,4u,3R,4B,4C,K,C,Z,13,F,2q,2x,6q;u(!B.44){1R"6u 4V";}4u=[];4B=8.3U.x;1s=4B+8.K;4C=8.3U.y;6r=4C+8.P;u(8.4w){E=1M.2U(\'E\');E.K=8.3J;E.P=8.3N;1K=E.2p(\'2d\');1H=1K.3a(0,0,E.K,E.P);M=1H.1v;F=8.38;T(i=C=0,13=F.L;C<13;i=++C){15=F[i];M[i]=15}1K.5d(1H,0,0);3R=1M.2U(\'E\');3R.K=8.K;3R.P=8.P;1K=3R.2p(\'2d\');1K.3P(E,0,0,8.3J,8.3N,0,0,8.K,8.P);M=1K.3a(0,0,8.K,8.P).1v;K=8.K}R{M=8.38;K=8.3J}T(i=Z=0,2q=M.L;Z<2q;i=Z+=4){4r=1r.7u(i,K);u(((4B<=(2x=4r.x)&&2x<1s))&&((4C<=(6q=4r.y)&&6q<6r))){4u.1A(M[i],M[i+1],M[i+2],M[i+3])}}9 4u};B.H.1T=o(11,4M){8.2L.2D({14:V.25.6o,11:11,4M:4M});9 8};B.H.6n=o(11,J,1P,26){I i,C,F;u(1P==G){1P=G}u(26==G){26=0}u(1P==G){1P=0;T(i=C=0,F=J.L;0<=F?CF;i=0<=F?++C:--C){1P+=J[i]}}8.2L.2D({14:V.25.6l,11:11,J:J,1P:1P,26:26});9 8};B.H.6k=o(2v,W){8.2L.2D({14:V.25.1V,2v:2v,W:W});9 8};B.H.6i=o(1j){I 1w;1w=1m 22(8);8.5R.1A(1w);8.2L.2D({14:V.25.6h});1j.18(1w);8.2L.2D({14:V.25.6g});9 8};B.H.6Z=o(1w){9 8.71(1w)};B.H.71=o(1w){8.63.1A(8.4j);8.4b.1A(8.M);8.4j=1w;9 8.M=1w.M};B.H.73=o(){8.M=8.4b.4h();9 8.4j=8.63.4h()};B.H.77=o(){9 8.4j.7b()};9 B})(2g);4o.B=B;B.2F=(o(){o 2F(c){8.c=c}2F.H.8T=o(){I i,2a,3K,C,Z,1N,F;2a={r:{},g:{},b:{}};T(i=C=0;C<=D;i=++C){2a.r[i]=0;2a.g[i]=0;2a.b[i]=0}T(i=Z=0,F=8.c.M.L;Z0)){9}Y=[];T(C=0,13=46.L;C<13;C++){1i=46[C];Y.1A(7q=1m 2Y(1i,o(){8.7r();9 8.2o()}))}9 Y};u(B.82){(o(){u(1M.5F==="4P"){9 B.6d()}R{9 1M.6B("a3",B.6d,1G)}})()}2Y=(o(){I 4y;4y="(\\\\w+)\\\\((.*?)\\\\)";o 2Y(2z,7v){8.7y=2z.3G(\'1v-2h\');8.2h=B(2z,7v.5o(8))}2Y.H.7r=o(){I W,e,47,35,6a,68,m,r,4a,C,13,F,Y;8.2z=8.2h.E;r=1m 7H(4y,\'g\');4a=8.7y.4N(r);u(!(4a.L>0)){9}r=1m 7H(4y);Y=[];T(C=0,13=4a.L;C<13;C++){6a=4a[C];F=6a.4N(r),m=F[0],47=F[1],W=F[2];68=1m az("9 o() { 8."+47+"("+W+"); };");65{35=68();Y.1A(35.18(8.2h))}64(3H){e=3H;Y.1A(1o.1C(e))}}9 Y};2Y.H.2o=o(){I 2z;2z=8.2z;9 8.2h.8f(o(){9 2z.58.5S(8.7R(),2z)})};9 2Y})();B.1z=(o(){o 1z(){}1z.60={};1z.17=o(11,35){9 8.60[11]=35};1z.2o=o(11,O,N){9 8.60[11](O,N)};9 1z})();1z=B.1z;B.1J=(o(){o 1J(){}1J.aQ=o(8l,8w,8x,8A){9 Q.8E(Q.1Z(8x-8l,2)+Q.1Z(8A-8w,2))};1J.6C=o(1h,U,4d){I 2A;u(4d==G){4d=1G}2A=1h+(Q.91()*(U-1h));u(4d){9 2A.9d(4d)}R{9 Q.4e(2A)}};1J.6K=o(A){9(0.9m*A.r)+(0.9o*A.g)+(0.9p*A.b)};1J.1L=o(1k,2Q,2P,1q,32,2V){I 1L,3F,1I,1s,i,j,3E,4U,2f,t,C,Z,F;u(32==G){32=0}u(2V==G){2V=D}u(1k[0]8m 4c){1I=1k;32=2Q;2V=2P}R{1I=[1k,2Q,2P,1q]}u(1I.L<2){1R"3l 5Q 5P X 2l 1L";}1L={};3E=o(a,b,t){9 a*(1-t)+b*t};3F=o(a,1h,U){9 Q.1h(Q.U(a,1h),U)};T(i=C=0;C<7e;i=++C){t=i/7e;2f=1I;ad(2f.L>1){4U=[];T(j=Z=0,F=2f.L-2;0<=F?Z<=F:Z>=F;j=0<=F?++Z:--Z){4U.1A([3E(2f[j][0],2f[j+1][0],t),3E(2f[j][1],2f[j+1][1],t)])}2f=4U}1L[Q.4e(2f[0][0])]=Q.4e(3F(2f[0][1],32,2V))}1s=1I[1I.L-1][0];1L=B.1J.5O(1L,1s);u(1L[1s]==G){1L[1s]=1L[1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9{r:r*D,g:g*D,b:b*D}};1p.8y=o(x,y,z){I a,b,l,5r,5s,5t;u(1f x==="2w"){y=x.y;z=x.z;x=x.x}5r=95.6y;5s=1n.0;5t=6z.6A;x/=5r;y/=5s;z/=5t;u(x>0.5u){x=Q.1Z(x,0.5v)}R{x=(7.5w*x)+0.3w}u(y>0.5u){y=Q.1Z(y,0.5v)}R{y=(7.5w*y)+0.3w}u(z>0.5u){z=Q.1Z(z,0.5v)}R{z=(7.5w*z)+0.3w}l=6F*y-16;a=6G*(x-y);b=6H*(y-z);9{l:l,a:a,b:b}};1p.al=o(l,a,b){I x,y,z;u(1f l==="2w"){a=l.a;b=l.b;l=l.l}y=(l+16)/6F;x=y+(a/6G);z=y-(b/6H);u(x>0.5x){x=x*x*x}R{x=0.5y*(x-0.3w)}u(y>0.5x){y=y*y*y}R{y=0.5y*(y-0.3w)}u(z>0.5x){z=z*z*z}R{z=0.5y*(z-0.3w)}9{x:x*95.6y,y:y*1n.0,z:z*6z.6A}};1p.ao=o(r,g,b){I 5z;u(1f r==="2w"){g=r.g;b=r.b;r=r.r}5z=8.88(r,g,b);9 8.8y(5z)};1p.as=o(l,a,b){};9 1p})();1p=B.1p;B.1O=(o(){o 1O(){}1O.2W={};1O.6M=["6N","6O","6D","6P","6Q","3v"];1O.39=o(24,14,1v){I 4k,C,13,F,Y;u(1v==G){1v=G}u(8.2W[14]&&8.2W[14].L){F=8.2W[14];Y=[];T(C=0,13=F.L;C<13;C++){4k=F[C];u(4k.24===G||24.1W===4k.24.1W){Y.1A(4k.2n.18(24,1v))}R{Y.1A(aL 0)}}9 Y}};1O.aM=o(24,14,2n){I 5C,5D;u(1f 24==="2S"){5D=24;5C=14;24=G;14=5D;2n=5C}u(4g.18(8.6M,14)<0){9 1G}u(!8.2W[14]){8.2W[14]=[]}8.2W[14].1A({24:24,2n:2n});9 2c};9 1O})();1O=B.1O;B.V=(o(){o V(){}V.25={6o:1,6l:2,6h:3,6g:4,5E:5,1V:6};V.17=o(11,6W){9 B.H[11]=6W};9 V})();V=B.V;B.1Q=(o(){o 1Q(){}1Q.6X=/(?:(?:49|8e):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;1Q.7l=o(1i){u(1i==G){9 1G}u(8.6Y(1i)){9 1G}9 8.56(1i.1c)};1Q.6Y=o(1i){I F;9(1i.6v!=G)&&((F=1i.6v.4m())===\'7x\'||F===\'70-aV\')};1Q.56=o(3Y){I 54;54=3Y.4N(8.6X);u(54){9 54[1]!==1M.b6}R{9 1G}};1Q.72=o(1c){u(8.56(1c)){u(!B.5e.L){1o.5H("b9 2l ba a 74 S bc a bd 75. 7m: "+1c)}R{u(B.56(B.5e)){1o.5H("bf 70 a 74 75 T bg bh.");9}9 8.3b(1c)}}};1Q.3b=o(1c){9""+B.5e+"?"+B.7P+"="+(bi(1c))};1Q.bl=o(3d){I 53;53={bn:\'8G\',8H:\'8I\',8J:\'8K\',8L:\'8M\'};3d=3d.4m();u(53[3d]!=G){3d=53[3d]}9"8N/8O."+3d};9 1Q})();B.H.8P=o(){u(1f 1Y!=="36"&&1Y!==G){9 8.78.2u(8,X)}R{9 8.79.2u(8,X)}};B.H.79=o(14){I S;u(14==G){14="7a"}14=14.4m();S=8.5J(14).8U("S/"+14,"S/8V-8W");9 1M.8X.8Y=S};B.H.78=o(3u,4Y,1j){I e,5M;u(4Y==G){4Y=2c}u(1j==G){1j=G}65{5M=3q.93(3u);u(5M.94()&&!4Y){9 1G}}64(3H){e=3H;1o.1C("96 97 3u "+3u)}9 3q.98(3u,8.E.99(),o(4l){1o.1C("9a 9b 2l "+3u);u(1j){9 1j.18(8,4l)}})};B.H.7R=o(14){I 1i;1i=1m 2I();1i.1c=8.5J(14);1i.K=8.1E.K;1i.P=8.1E.P;u(2T.2C){1i.K/=2T.2C;1i.P/=2T.2C}9 1i};B.H.5J=o(14){u(14==G){14="7a"}14=14.4m();9 8.E.9c("S/"+14)};1Q=B.1Q;B.22=(o(){o 22(c){8.c=c;8.47=8.c;8.1e={5N:\'7g\',2K:1.0};8.9g=1a.6e.2t();8.E=1f 1Y!=="36"&&1Y!==G?1m 30():1M.2U(\'E\');8.E.K=8.c.1E.K;8.E.P=8.c.1E.P;8.19=8.E.2p(\'2d\');8.19.9h(8.E.K,8.E.P);8.1H=8.19.3a(0,0,8.E.K,8.E.P);8.M=8.1H.1v}22.H.6i=o(3y){9 8.c.6i.18(8.c,3y)};22.H.9i=o(7i){8.1e.5N=7i;9 8};22.H.2K=o(2K){8.1e.2K=2K/1n;9 8};22.H.9k=o(){I i,20,C,F;20=8.c.M;T(i=C=0,F=8.c.M.L;C8.c.M.L||2k<0){9 1m 1r(0,0,0,D,8.c)}9 8.5Y(2k)};1r.H.9G=o(4O,4I,A){I 7A;u(8.c==G){1R"3t a 3s 19";}7A=8.1l+(8.c.1E.K*4*(4I*-1))+(4*4O);u(2k>8.c.M.L||2k<0){9}8.c.M[2k]=A.r;8.c.M[2k+1]=A.g;8.c.M[2k+2]=A.b;8.c.M[2k+3]=A.a;9 2c};1r.H.9I=o(x,y){I 1l;u(8.c==G){1R"3t a 3s 19";}1l=8.5U(x,y,8.K);9 8.5Y(1l)};1r.H.9J=o(x,y,A){I 1l;u(8.c==G){1R"3t a 3s 19";}1l=8.5U(x,y,8.K);8.c.M[1l]=A.r;8.c.M[1l+1]=A.g;8.c.M[1l+2]=A.b;9 8.c.M[1l+3]=A.a};1r.H.3D=o(){9 8.9K()};1r.H.9L=o(4H){I 2e;u(4H==G){4H=1G}2e=\'#\'+8.r.3D(16)+8.g.3D(16)+8.b.3D(16);u(4H){9 2e+8.a.3D(16)}R{9 2e}};9 1r})();1r=B.1r;B.1V=(o(){o 1V(){}1V.62={};1V.17=o(11,2v){9 8.62[11]=2v};1V.2o=o(19,11,W){9 8.62[11].2u(19,W)};9 1V})();1V=B.1V;B.1g=(o(){1g.2J=B.1S?3S(\'9P\').9Q().L:4;o 1g(c){8.c=c;8.2B=5k(8.2B,8);8.4i=[];8.33=G}1g.H.2D=o(66){u(66==G){9}9 8.4i.1A(66)};1g.H.2B=o(){I 1w;u(8.4i.L===0){1O.39(8,"6P");u(8.67!=G){8.67.18(8.c)}9 8}8.1u=8.4i.7I();3I(8.1u.14){1t V.25.6h:1w=8.c.5R.7I();8.c.6Z(1w);9 8.2B();1t V.25.6g:8.c.77();8.c.73();9 8.2B();1t V.25.5E:9 8.7J(8.1u.1w,8.1u.1c);1t V.25.1V:9 8.7K();9Z:9 8.7L()}};1g.H.2o=o(1j){8.67=1j;8.33=1a.3T(8.c.M.L);9 8.2B()};1g.H.69=o(2n){I 48,6b,1X,1q,f,i,6c,n,1k,C,F,Y,1b=8;8.4v=0;n=8.c.M.L;6b=Q.2E((n/4)/1g.2J);48=6b*4;6c=48+((n/4)%1g.2J)*4;Y=[];T(i=C=0,F=1g.2J;0<=F?CF;i=0<=F?++C:--C){1k=i*48;1q=1k+(i===1g.2J-1?6c:48);u(B.1S){f=3X(o(){9 2n.18(1b,i,1k,1q)});1X=f.a8();Y.1A(8.3v(1X))}R{Y.1A(59((o(i,1k,1q){9 o(){9 2n.18(1b,i,1k,1q)}})(i,1k,1q),0))}}9 Y};1g.H.7L=o(){1O.39(8.c,"6N",8.1u);u(8.1u.14===V.25.6o){9 8.69(8.7T)}R{9 8.69(8.7U)}};1g.H.7K=o(){1o.1C("ab 2v "+8.1u.2v);1V.2o(8.c,8.1u.2v,8.1u.W);1o.1C("1V "+8.1u.2v+" 6f!");9 8.2B()};1g.H.7T=o(1X,1k,1q){I i,15,C;1o.1C("7W #"+1X+" - V: "+8.1u.11+", ae: "+1k+", af: "+1q);1O.39(8.c,"6Q",{7X:1X,7Y:1g.2J,ai:1k,aj:1q});15=1m 1r();15.5W(8.c);T(i=C=1k;C<1q;i=C+=4){15.1l=i;15.r=8.c.M[i];15.g=8.c.M[i+1];15.b=8.c.M[i+2];15.a=8.c.M[i+3];8.1u.4M(15);8.c.M[i]=1a.2j(15.r);8.c.M[i+1]=1a.2j(15.g);8.c.M[i+2]=1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r=(1x.r/1P)+26;1x.g=(1x.g/1P)+26;1x.b=(1x.b/1P)+26;9 1x};1g.H.7J=o(1w,1c){I 1i,3b,1b=8;1i=1m 2I();1i.6T=o(){1w.19.3P(1i,0,0,1b.c.1E.K,1b.c.1E.P);1w.1H=1w.19.3a(0,0,1b.c.1E.K,1b.c.1E.P);1w.M=1w.1H.1v;1b.c.M=1w.M;9 1b.2B()};3b=1Q.72(1c);9 1i.1c=3b!=G?3b:1c};9 1g})();1g=B.1g;B.21=(o(){o 21(){}21.3o={};21.8z=o(2H){9 8.3o[2H]!=G};21.2t=o(2H){9 8.3o[2H]};21.7f=o(11,1D){9 8.3o[11]=1D};21.2o=o(2H,1j){I 1b=8;59(o(){9 1j.18(1b.2t(2H),1b.2t(2H))},0);9 8.2t(2H)};21.au=o(11){u(11==G){11=1G}u(11){9 87 8.3o[11]}R{9 8.3o={}}};9 21})();21=B.21;1z.17("7g",o(O,N){9{r:O.r,g:O.g,b:O.b}});1z.17("aw",o(O,N){9{r:(O.r*N.r)/D,g:(O.g*N.g)/D,b:(O.b*N.b)/D}});1z.17("ax",o(O,N){9{r:D-(((D-O.r)*(D-N.r))/D),g:D-(((D-O.g)*(D-N.g))/D),b:D-(((D-O.b)*(D-N.b))/D)}});1z.17("ay",o(O,N){I 1d;1d={};1d.r=N.r>1y?D-2*(D-O.r)*(D-N.r)/D:(N.r*O.r*2)/D;1d.g=N.g>1y?D-2*(D-O.g)*(D-N.g)/D:(N.g*O.g*2)/D;1d.b=N.b>1y?D-2*(D-O.b)*(D-N.b)/D:(N.b*O.b*2)/D;9 1d});1z.17("aA",o(O,N){9{r:O.r-N.r,g:O.g-N.g,b:O.b-N.b}});1z.17("aB",o(O,N){9{r:N.r+O.r,g:N.g+O.g,b:N.b+O.b}});1z.17("aC",o(O,N){9{r:1y-2*(N.r-1y)*(O.r-1y)/D,g:1y-2*(N.g-1y)*(O.g-1y)/D,b:1y-2*(N.b-1y)*(O.b-1y)/D}});1z.17("aD",o(O,N){I 1d;1d={};1d.r=N.r>1y?D-((D-N.r)*(D-(O.r-1y)))/D:(N.r*(O.r+1y))/D;1d.g=N.g>1y?D-((D-N.g)*(D-(O.g-1y)))/D:(N.g*(O.g+1y))/D;1d.b=N.b>1y?D-((D-N.b)*(D-(O.b-1y)))/D:(N.b*(O.b+1y))/D;9 1d});1z.17("aE",o(O,N){9{r:N.r>O.r?N.r:O.r,g:N.g>O.g?N.g:O.g,b:N.b>O.b?N.b:O.b}});1z.17("aF",o(O,N){9{r:N.r>O.r?O.r:N.r,g:N.g>O.g?O.g:N.g,b:N.b>O.b?O.b:N.b}});V.17("4W",o(){I 3m;u(X.L===1){3m=1p.5l(X[0])}R{3m={r:X[0],g:X[1],b:X[2]}}9 8.1T("4W",o(A){A.r=3m.r;A.g=3m.g;A.b=3m.b;A.a=D;9 A})});V.17("8a",o(J){J=Q.2E(D*(J/1n));9 8.1T("8a",o(A){A.r+=J;A.g+=J;A.b+=J;9 A})});V.17("8b",o(J){J*=-0.aJ;9 8.1T("8b",o(A){I U;U=Q.U(A.r,A.g,A.b);u(A.r!==U){A.r+=(U-A.r)*J}u(A.g!==U){A.g+=(U-A.g)*J}u(A.b!==U){A.b+=(U-A.b)*J}9 A})});V.17("8c",o(J){J*=-1;9 8.1T("8c",o(A){I 3V,2G,U;U=Q.U(A.r,A.g,A.b);2G=(A.r+A.g+A.b)/3;3V=((Q.2M(U-2G)*2/D)*J)/1n;u(A.r!==U){A.r+=(U-A.r)*3V}u(A.g!==U){A.g+=(U-A.g)*3V}u(A.b!==U){A.b+=(U-A.b)*3V}9 A})});V.17("8g",o(J){9 8.1T("8g",o(A){I 2G;2G=1J.6K(A);A.r=2G;A.g=2G;A.b=2G;9 A})});V.17("8h",o(J){J=Q.1Z((J+1n)/1n,2);9 8.1T("8h",o(A){A.r/=D;A.r-=0.5;A.r*=J;A.r+=0.5;A.r*=D;A.g/=D;A.g-=0.5;A.g*=J;A.g+=0.5;A.g*=D;A.b/=D;A.b-=0.5;A.b*=J;A.b+=0.5;A.b*=D;9 A})});V.17("8i",o(J){9 8.1T("8i",o(A){I b,g,h,34,r,F;34=1p.81(A.r,A.g,A.b);h=34.h*1n;h+=Q.2M(J);h=h%1n;h/=1n;34.h=h;F=1p.83(34.h,34.s,34.v),r=F.r,g=F.g,b=F.b;A.r=r;A.g=g;A.b=b;9 A})});V.17("8k",o(){I 3k,31;u(X.L===2){31=1p.5l(X[0]);3k=X[1]}R u(X.L===4){31={r:X[0],g:X[1],b:X[2]};3k=X[3]}9 8.1T("8k",o(A){A.r-=(A.r-31.r)*(3k/1n);A.g-=(A.g-31.g)*(3k/1n);A.b-=(A.b-31.b)*(3k/1n);9 A})});V.17("8n",o(){9 8.1T("8n",o(A){A.r=D-A.r;A.g=D-A.g;A.b=D-A.b;9 A})});V.17("8o",o(J){u(J==G){J=1n}J/=1n;9 8.1T("8o",o(A){A.r=Q.1h(D,(A.r*(1-(0.aW*J)))+(A.g*(0.aX*J))+(A.b*(0.aY*J)));A.g=Q.1h(D,(A.r*(0.aZ*J))+(A.g*(1-(0.b0*J)))+(A.b*(0.b1*J)));A.b=Q.1h(D,(A.r*(0.b2*J))+(A.g*(0.b3*J))+(A.b*(1-(0.b4*J))));9 A})});V.17("8p",o(J){9 8.1T("8p",o(A){A.r=Q.1Z(A.r/D,J)*D;A.g=Q.1Z(A.g/D,J)*D;A.b=Q.1Z(A.b/D,J)*D;9 A})});V.17("8q",o(J){J=Q.2M(J)*2.55;9 8.1T("8q",o(A){I 2A;2A=1J.6C(J*-1,J);A.r+=2A;A.g+=2A;A.b+=2A;9 A})});V.17("8r",o(J){J=Q.2M(J)*2.55;9 8.1T("8r",o(A){u(A.r>D-J){A.r=D}R u(A.rD-J){A.g=D}R u(A.gD-J){A.b=D}R u(A.b0){A.r+=(D-A.r)*1e.4E}R{A.r-=A.r*Q.2M(1e.4E)}}u(1e.4s!=G){u(1e.4s>0){A.g+=(D-A.g)*1e.4s}R{A.g-=A.g*Q.2M(1e.4s)}}u(1e.4q!=G){u(1e.4q>0){A.b+=(D-A.b)*1e.4q}R{A.b-=A.b*Q.2M(1e.4q)}}9 A})});V.17("4X",o(){I 3Q,1L,2m,2i,1q,i,3i,1k,C,Z,F,2q;2m=X[0],2i=2<=X.L?3x.18(X,1):[];3i=2i[2i.L-1];u(1f 3i==="o"){3Q=3i;2i.4h()}R u(1f 3i==="2S"){3Q=1J[3i];2i.4h()}R{3Q=1J.1L}u(1f 2m==="2S"){2m=2m.bj("")}u(2m[0]==="v"){2m=[\'r\',\'g\',\'b\']}u(2i.L<2){1R"3l 5Q 5P X 2l 4X 47";}1L=3Q(2i,0,D);1k=2i[0];u(1k[0]>0){T(i=C=0,F=1k[0];0<=F?CF;i=0<=F?++C:--C){1L[i]=1k[1]}}1q=2i[2i.L-1];u(1q[0]=D;i=2q<=D?++Z:--Z){1L[i]=1q[1]}}9 8.1T("4X",o(A){I 1N,2x;T(i=1N=0,2x=2m.L;0<=2x?1N<2x:1N>2x;i=0<=2x?++1N:--1N){A[2m[i]]=1L[A[2m[i]]]}9 A})});V.17("bk",o(J){I 2Q,2P,p;p=Q.2M(J)/1n;2Q=[0,D*p];2P=[D-(D*p),D];u(J<0){2Q=2Q.8C();2P=2P.8C()}9 8.4X(\'31\',[0,0],2Q,2P,[D,D])});B.1V.17("6w",o(K,P,x,y){I E,1K;u(x==G){x=0}u(y==G){y=0}u(1f 1Y!=="36"&&1Y!==G){E=1m 30(K,P)}R{E=1M.2U(\'E\');1a.40(8.E,E);E.K=K;E.P=P}1K=E.2p(\'2d\');1K.3P(8.E,x,y,K,P,0,0,K,P);8.3U={x:x,y:y};8.84=2c;9 8.57(E)});B.1V.17("4R",o(1F){I E,1K;u(1F==G){1F=G}u(1F===G||((1F.K==G)&&(1F.P==G))){1o.5K("3l 85 an 1E 80 T 4R");9}u(1F.K==G){1F.K=8.E.K*1F.P/8.E.P}R u(1F.P==G){1F.P=8.E.P*1F.K/8.E.K}u(1f 1Y!=="36"&&1Y!==G){E=1m 30(1F.K,1F.P)}R{E=1M.2U(\'E\');1a.40(8.E,E);E.K=1F.K;E.P=1F.P}1K=E.2p(\'2d\');1K.3P(8.E,0,0,8.E.K,8.E.P,0,0,1F.K,1F.P);8.4w=2c;9 8.57(E)});B.V.17("6w",o(){9 8.6k("6w",4c.H.3r.18(X,0))});B.V.17("4R",o(){9 8.6k("4R",4c.H.3r.18(X,0))})}).18(8);',62,707,'||||||||this|return|||||||||||||||function||||||if||||||rgba|Caman|_i|255|canvas|_ref|null|prototype|var|adjust|width|length|pixelData|rgbaParent|rgbaLayer|height|Math|else|image|for|max|Filter|args|arguments|_results|_j||name||_len|type|pixel||register|call|context|Util|_this|src|result|options|typeof|Renderer|min|img|callback|start|loc|new|100|Log|Convert|end|Pixel|endX|case|currentJob|data|layer|val|128|Blender|push|key|debug|obj|dimensions|newDims|false|imageData|controlPoints|Calculate|ctx|bezier|document|_k|Event|divisor|IO|throw|NodeJS|process|builder|Plugin|id|bnum|exports|pow|parentData|Store|Layer|initObj|target|Type|bias||ret|055|levels|kernel|true||hex|prev|Module|caman|cps|clampRGB|newLoc|to|chans|fn|execute|getContext|_ref1|res|ratio|get|apply|plugin|object|_ref2|value|ele|rand|processNext|devicePixelRatio|add|floor|Analyze|avg|search|Image|Blocks|opacity|renderer|abs|pointsPerSegment|mul|ctrl2|ctrl1|from|string|window|createElement|highBound|events|in|CamanParser|values|Canvas|rgb|lowBound|modPixelData|hsv|func|undefined|layerData|originalPixelData|trigger|getImageData|proxyUrl|break|lang|imageHeight|imageWidth|p0|finishInit|last|chan|level|Invalid|color|nodeFileReady|items|builderIndex|fs|slice|CamanJS|Requires|file|blockFinished|1379310345|__slice|cb|child|parent|leftCoord|p1|toString|lerp|clamp|getAttribute|_error|switch|originalWidth|numPixels|__hasProp|preScaledWidth|originalHeight|preScaledHeight|drawImage|algo|scaledCanvas|require|dataArray|cropCoordinates|amt|attr|Fiber|url|opts|copyAttributes|adjustSize|continue|prop|allowRevert|copy|imgs|filter|blockN|http|unparsedInstructions|pixelStack|Array|getFloat|round|imageLoaded|__indexOf|pop|renderQueue|currentLayer|event|err|toLowerCase|pointsPerStep|Root|updateContext|blue|coord|green|dest|pixels|blocksDone|resized|hiDPIRatio|INST_REGEX|buf|initType|startX|startY|parseInt|red|imageUrl|moduleKeywords|includeAlpha|vert|root|sel|hiDPIReplacement|processFn|match|horiz|complete|initializedPixelData|resize|source|Logger|next|disabled|fillColor|curves|overwrite|fac0|fac1|fac2|fac3|langToExt|matches||isURLRemote|replaceCanvas|parentNode|setTimeout|oldCanvas|pos|sub|putImageData|remoteProxy|rightCoord|hueToRGB|substr|imageAdjustments|ctor|__bind|hexToRGB|listener|04045|bind|0031308|4166666667|whiteX|whiteY|whiteZ|008856451679|3333333333|787037037|2068965517|1284185493|xyz|naturalWidth|included|_fn|_type|LoadOverlay|readyState|m1|info|m0|toBase64|error|count|stats|blendingMode|missingValues|of|number|canvasQueue|replaceChild|console|coordinatesToLocation|getAttrId|setContext|on|pixelAtLocation|waitForImageLoaded|blenders|needsHiDPISwap|plugins|layerStack|catch|try|job|finishedFn|instFunc|eachBlock|inst|blockPixelLength|lastBlockN|DOMUpdated|uniqid|finished|LayerFinished|LayerDequeue|newLayer|req|processPlugin|Kernel|except|processKernel|Single|nodeName|_ref3|endY|version|backingStoreRatio|Revert|crossOrigin|crop|__extends|047|108|883|addEventListener|randomRange|renderStart|loaded|116|500|200|Object|assignId|luminance|domIsLoaded|types|processStart|processComplete|renderFinished|blockStarted|initialized|DOM|onload|originalVisiblePixels|DEBUG|filterFunc|domainRegex|corsEnabled|executeLayer|use|pushContext|remoteCheck|popContext|remote|proxy|scaled|applyCurrentLayer|nodeSave|browserSave|png|applyToParent|swapped|_super|1000|put|normal|hermite|mode|item|reloadCanvasData|isRemote|URL|hiDPIDisabled|log|hidpi|parser|parse|date|chunk|locationToCoordinates|ready|getPixelRelative|anonymous|dataStr|binary|nowLoc|Uint8Array|style|extended|px|isImageLoaded|setAttribute|RegExp|shift|loadOverlay|executePlugin|executeFilter|release|hiDPICapable|hiDPIAdjustments|proxyParam|node|toImage|me|renderBlock|renderKernel|newCanvas|Block|blockNum|totalBlocks|yield|given|rgbToHSV|autoload|hsvToRGB|cropped|or|setup|delete|rgbToXYZ|readFromHttp|brightness|saturation|vibrance|hasId|https|render|greyscale|contrast|hue|Height|colorize|x1|instanceof|invert|sepia|gamma|noise|clip|channels|initCanvas|Width|parseArguments|y1|x2|xyzToLab|has|y2|initImage|reverse|setInitObject|sqrt|initNode|rb|python|py|perl|pl|javascript|js|proxies|caman_proxy|save|rgbToHSL|set|defineProperty|calculateLevels|replace|octet|stream|location|href|hslToRGB|Remote|random||statSync|isFile||Creating|output|writeFile|toBuffer|Finished|writing|toDataURL|toFixed|hasOwnProperty|detected|layerID|createImageData|setBlendingMode|using|copyParent|aliasProperty|299|overlayImage|587|114|indexOf|resetOriginalPixelData|aliasFunction|warn|extend|4124|3576|1805|locationXY|2126|7152|0722|0193|1192|9505|not|putPixelRelative|xyzToRGB|getPixel|putPixel|toKey|toHex|2406|5372|4986|os|cpus|9689|8758|0415|0557|2040|0570|find|readFile|default|fibers|querySelectorAll|Version|DOMContentLoaded|readystatechange|delegate|includes|HiDPI|run|querySelector|extends|Executing|Fetching|while|Start|End|naturalHeight|scale|startPixel|endPixel|initialization|labToXYZ|nodeValue|missing|rgbToLab|webkitBackingStorePixelRatio|Rendering|blocksFinished|labToRGB|mozBackingStorePixelRatio|flush|msBackingStorePixelRatio|multiply|screen|overlay|Function|difference|addition|exclusion|softLight|lighten|darken|oBackingStorePixelRatio|attributes|backingStorePixelRatio|01|setEncoding|void|listen|analyze|Released|camanProxyUrl|distance|__super__|Buffer|isNaN|Initializing|credentials|607|769|189|349|314|168|272|534|869|revert|domain|keys|2013|Attempting|load|Could|without|configured|charAt|Cannot|loading|images|encodeURIComponent|split|exposure|useProxy|reset|ruby|constructor'.split('|'),0,{})) \ No newline at end of file +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(o(){I $,2U,1A,1F,B,3b,3e,1p,1S,3L,V,1P,2p,24,1n,2f,1r,1Q,1h,4M,21,19,3y,3M,57,3w,3Y=[].9w||o(8n){U(I i=0,l=8.L;iD){9 D}9 1x};19.49=o(2L,2l,4a){I 4b,C,13,F,2n,X;u(4a==G){4a={}}F=2L.b6;X=[];U(C=0,13=F.L;C<13;C++){4b=F[C];u((4a.5p!=G)&&(2n=4b.5o,3Y.18(4a.5p,2n)>=0)){48}X.1z(2l.7E(4b.5o,4b.b7))}9 X};19.4c=o(L){u(L==G){L=0}u(B.1V||(2w.7x!=G)){9 1k 7x(L)}9 1k 3X(L)};9 19})();u(1f 1Y!=="33"&&1Y!==G){4M=1Y;3e=4d(\'E\');2p=3e.2p;3L=4d(\'b9\');3y=4d(\'3y\');3M=4d(\'3M\')}P{4M=2w;2p=2w.2p}B=(o(75){7c(B,75);B.64={6I:"4.1.2",6z:"7/27/bn"};B.8z=1G;B.4l=2e;B.5H="8B";B.4E="";B.8o="as";B.1V=1f 1Y!=="33"&&1Y!==G;B.8r=!B.1V;B.3r=o(){9"a7 "+B.64.6I+", 9u "+B.64.6z};B.6s=o(E){u(B.1V){9 2e}u(1f E==="2S"){E=$(E)}u(!((E!=G)&&(E.3n!=G))){9 G}9 E.3n(\'1t-2h-1X\')};o B(){8.3v=5Q(8.3v,8);I W,1g,1X,1c=8;u(Y.L===0){1N"3x Y";}u(8 8p B){8.3G=8.3G.61(8);8.4j=8.4j.61(8);W=Y[0];u(!B.1V){1X=4Z(B.6s(W[0]),10);1g=1f W[1]==="o"?W[1]:1f W[2]==="o"?W[2]:o(){};u(!bj(1X)&&21.72(1X)){9 21.2o(1X,1g)}}8.1X=19.5N.2F();8.4p=8.2W=G;8.3P={x:0,y:0};8.6R=1G;8.4G=1G;8.43=[];8.5I=[];8.6k=[];8.3S=G;8.7U=1G;8.aL=1k 2U(8);8.2J=1k 1h(8);8.8f(o(){1c.8g(W);9 1c.8l()});9 8}P{9 1k B(Y)}}B.H.8f=o(3B){I 5j,1c=8;u(B.1V){9 4P(o(){9 3B.18(1c)},0)}P{u(1L.5J==="4R"){1n.1B("7b 7j");9 4P(o(){9 3B.18(1c)},0)}P{5j=o(){u(1L.5J==="4R"){1n.1B("7b 7j");9 3B.18(1c)}};9 1L.7q("9S",5j,1G)}}};B.H.8g=o(W){I 1C,1x,F,X;u(W.L===0){1N"3x Y 7z";}8.23=G;8.58=G;8.5a=G;8.1g=o(){};8.7I(W[0]);u(W.L===1){9}3q(1f W[1]){1w"2S":8.5a=W[1];37;1w"o":8.1g=W[1]}u(W.L===2){9}8.1g=W[2];u(W.L===4){F=W[4];X=[];U(1C 3a F){u(!3O.18(F,1C))48;1x=F[1C];X.1z(8.1d[1C]=1x)}9 X}};B.H.7I=o(1H){u(B.1V){8.23=1H;8.58=\'7Z\';9}u(1f 1H==="2x"){8.23=1H}P{8.23=$(1H)}u(8.23==G){1N"9p 9o 9l S 8A E U 8R.";}9 8.58=8.23.5o.3Z()};B.H.8l=o(){3q(8.58){1w"7Z":9 8.8c();1w"1j":9 8.85();1w"E":9 8.7V()}};B.H.8c=o(){1n.1B("9R U 1V");u(1f 8.23==="2S"&&8.23.56(/^7o?:\\/\\//)){9 8.7n(8.23,8.3v)}P u(1f 8.23==="2S"){9 3y.8G(8.23,8.3v)}P{9 8.3v(G,8.23)}};B.H.7n=o(3Q,1g){I 5R;1n.1B("a6 S 2L "+3Q);5R=3M.2F(3Q,o(2t){I 50;50=\'\';2t.ah(\'6S\');2t.5C(\'1t\',o(6P){9 50+=6P});9 2t.5C(\'1q\',o(){9 1g(G,1k ao(50,\'6S\'))})});9 5R.5C(\'5l\',1g)};B.H.3v=o(3K,1t){u(3K){1N 3K;}8.S=1k 2p();8.S.1e=1t;1n.1B("2p 8y. 8w = "+(8.32())+", 8t = "+(8.2Z()));8.E=1k 3e(8.32(),8.2Z());9 8.3G()};B.H.85=o(){8.S=8.23;8.E=1L.2G(\'E\');8.1a=8.E.2m(\'2d\');19.49(8.S,8.E,{5p:[\'1e\']});u(8.S.4L!=G){8.S.4L.6v(8.E,8.S)}8.6q();9 8.6p()};B.H.7V=o(){8.E=8.23;8.1a=8.E.2m(\'2d\');u(8.5a!=G){8.S=1L.2G(\'1j\');8.S.1e=8.5a;8.6q();9 8.6p()}P{9 8.3G()}};B.H.6q=o(){u(8.63()){1n.1B(8.S.1e,"->",8.4I());8.7l=2e;8.S.1e=8.4I()}u(1P.7d(8.S)){8.S.1e=1P.2X(8.S.1e);9 1n.1B("aQ S aT, aV 6M = "+8.S.1e)}};B.H.6p=o(){u(8.6L()){9 8.4j()}P{9 8.S.6K=8.4j}};B.H.6L=o(){u(!8.S.4R){9 1G}u((8.S.5D!=G)&&8.S.5D===0){9 1G}9 2e};B.H.32=o(){9 8.S.K||8.S.5D};B.H.2Z=o(){9 8.S.R||8.S.b8};B.H.4j=o(){1n.1B("2p 8y. 8w = "+(8.32())+", 8t = "+(8.2Z()));u(8.7l){8.E.K=8.32()/8.4C();8.E.R=8.2Z()/8.4C()}P{8.E.K=8.32();8.E.R=8.2Z()}9 8.3G()};B.H.3G=o(){I i,15,C,13,F;u(8.1a==G){8.1a=8.E.2m(\'2d\')}8.3H=8.4g=8.K=8.E.K;8.4h=8.4i=8.R=8.E.R;8.7O();u(!8.7Q()){8.6A()}u(8.S!=G){8.1a.4m(8.S,0,0,8.32(),8.2Z(),0,0,8.4g,8.4i)}8.1E=8.1a.36(0,0,8.E.K,8.E.R);8.M=8.1E.1t;u(B.4l){8.4p=19.4c(8.M.L);8.2W=19.4c(8.M.L);F=8.M;U(i=C=0,13=F.L;C<13;i=++C){15=F[i];8.4p[i]=15;8.2W[i]=15}}8.1D={K:8.E.K,R:8.E.R};u(!B.1V){21.6N(8.1X,8)}8.1g.18(8,8);9 8.1g=o(){}};B.H.80=o(){8.1E=8.1a.36(0,0,8.E.K,8.E.R);9 8.M=8.1E.1t};B.H.bm=o(){I i,15,C,13,F,X;u(!B.4l){1N"5E 4O";}8.2W=19.4c(8.M.L);F=8.M;X=[];U(i=C=0,13=F.L;C<13;i=++C){15=F[i];X.1z(8.2W[i]=15)}9 X};B.H.7Q=o(){9 B.6s(8.E)!=G};B.H.6A=o(){u(B.1V||8.E.3n(\'1t-2h-1X\')){9}9 8.E.7E(\'1t-2h-1X\',8.1X)};B.H.6U=o(){9 8.E.3n(\'1t-2h-6V-4O\')!==G};B.H.7O=o(){I 2v;u(B.1V||!8.63()){9}2v=8.4C();u(2v!==1){1n.1B("bi 2v = "+2v);8.7U=2e;8.4g=8.E.K;8.4i=8.E.R;8.E.K=8.4g*2v;8.E.R=8.4i*2v;8.E.7f.K=""+8.4g+"7A";8.E.7f.R=""+8.4i+"7A";8.1a.bh(2v,2v);8.K=8.3H=8.E.K;9 8.R=8.4h=8.E.R}};B.H.4C=o(){I 5i,2u;2u=2w.2u||1;5i=8.1a.bg||8.1a.bf||8.1a.be||8.1a.bd||8.1a.bc||1;9 2u/5i};B.H.74=o(){9(2w.2u!=G)&&2w.2u!==1};B.H.63=o(){u(8.6U()||!8.74()){9 1G}9 8.4I()!==G};B.H.4I=o(){u(8.S==G){9 G}9 8.S.3n(\'1t-2h-6V\')};B.H.4u=o(7w){I 4v;4v=8.E;8.E=7w;8.1a=8.E.2m(\'2d\');u(!B.1V){4v.4L.6v(8.E,4v)}8.K=8.E.K;8.R=8.E.R;8.80();9 8.1D={K:8.E.K,R:8.E.R}};B.H.7M=o(1g){I 1c=8;u(1g==G){1g=o(){}}1S.38(8,"7T");9 8.2J.2o(o(){1c.1a.4w(1c.1E,0,0);9 1g.18(1c)})};B.H.bb=o(4x){I i,15,C,13,F;u(4x==G){4x=2e}u(!B.4l){1N"5E 4O";}F=8.8E();U(i=C=0,13=F.L;C<13;i=++C){15=F[i];8.M[i]=15}u(4x){9 8.1a.4w(8.1E,0,0)}};B.H.ba=o(){I E,1K,i,1E,15,M,C,13,F;E=1L.2G(\'E\');19.49(8.E,E);E.K=8.3H;E.R=8.4h;1K=E.2m(\'2d\');1E=1K.36(0,0,E.K,E.R);M=1E.1t;F=8.4p;U(i=C=0,13=F.L;C<13;i=++C){15=F[i];M[i]=15}1K.4w(1E,0,0);8.3P={x:0,y:0};8.4G=1G;9 8.4u(E)};B.H.8E=o(){I E,4y,1K,1s,5x,i,1E,15,M,4z,4e,4A,4B,K,C,Z,13,F,2n,2C,6o;u(!B.4l){1N"5E 4O";}4z=[];4A=8.3P.x;1s=4A+8.K;4B=8.3P.y;5x=4B+8.R;u(8.4G){E=1L.2G(\'E\');E.K=8.3H;E.R=8.4h;1K=E.2m(\'2d\');1E=1K.36(0,0,E.K,E.R);M=1E.1t;F=8.2W;U(i=C=0,13=F.L;C<13;i=++C){15=F[i];M[i]=15}1K.4w(1E,0,0);4e=1L.2G(\'E\');4e.K=8.K;4e.R=8.R;1K=4e.2m(\'2d\');1K.4m(E,0,0,8.3H,8.4h,0,0,8.K,8.R);M=1K.36(0,0,8.K,8.R).1t;K=8.K}P{M=8.2W;K=8.3H}U(i=Z=0,2n=M.L;Z<2n;i=Z+=4){4y=1r.7h(i,K);u(((4A<=(2C=4y.x)&&2C<1s))&&((4B<=(6o=4y.y)&&6o<5x))){4z.1z(M[i],M[i+1],M[i+2],M[i+3])}}9 4z};B.H.1W=o(11,4D){8.2J.2s({14:V.26.5m,11:11,4D:4D});9 8};B.H.5n=o(11,J,1R,25){I i,C,F;u(1R==G){1R=G}u(25==G){25=0}u(1R==G){1R=0;U(i=C=0,F=J.L;0<=F?CF;i=0<=F?++C:--C){1R+=J[i]}}8.2J.2s({14:V.26.5s,11:11,J:J,1R:1R,25:25});9 8};B.H.5t=o(2y,W){8.2J.2s({14:V.26.1Q,2y:2y,W:W});9 8};B.H.5w=o(1g){I 1u;1u=1k 24(8);8.6k.1z(1u);8.2J.2s({14:V.26.5y});1g.18(1u);8.2J.2s({14:V.26.5z});9 8};B.H.6B=o(1u){9 8.6C(1u)};B.H.6C=o(1u){8.5I.1z(8.3S);8.43.1z(8.M);8.3S=1u;9 8.M=1u.M};B.H.6D=o(){8.M=8.43.4k();9 8.3S=8.5I.4k()};B.H.6F=o(){9 8.3S.6G()};9 B})(2f);4M.B=B;B.2U=(o(){o 2U(c){8.c=c}2U.H.aW=o(){I i,28,47,C,Z,1O,F;28={r:{},g:{},b:{}};U(i=C=0;C<=D;i=++C){28.r[i]=0;28.g[i]=0;28.b[i]=0}U(i=Z=0,F=8.c.M.L;Z0)){9}X=[];U(C=0,13=44.L;C<13;C++){1j=44[C];X.1z(6W=1k 3b(1j,o(){8.70();9 8.2o()}))}9 X};u(B.8r){(o(){u(1L.5J==="4R"){9 B.5G()}P{9 1L.7q("aR",B.5G,1G)}})()}3b=(o(){I 4H;4H="(\\\\w+)\\\\((.*?)\\\\)";o 3b(2B,77){8.78=2B.3n(\'1t-2h\');8.2h=B(2B,77.61(8))}3b.H.70=o(){I W,e,41,3c,5P,5U,m,r,40,C,13,F,X;8.2B=8.2h.E;r=1k 7m(4H,\'g\');40=8.78.56(r);u(!(40.L>0)){9}r=1k 7m(4H);X=[];U(C=0,13=40.L;C<13;C++){5P=40[C];F=5P.56(r),m=F[0],41=F[1],W=F[2];5U=1k aP("9 o() { 8."+41+"("+W+"); };");5W{3c=5U();X.1z(3c.18(8.2h))}5Z(3E){e=3E;X.1z(1n.1B(e))}}9 X};3b.H.2o=o(){I 2B;2B=8.2B;9 8.2h.7M(o(){9 2B.4L.6v(8.7y(),2B)})};9 3b})();B.1A=(o(){o 1A(){}1A.62={};1A.17=o(11,3c){9 8.62[11]=3c};1A.2o=o(11,O,N){9 8.62[11](O,N)};9 1A})();1A=B.1A;B.1F=(o(){o 1F(){}1F.aN=o(7F,7H,7J,7K){9 Q.7N(Q.1Z(7J-7F,2)+Q.1Z(7K-7H,2))};1F.7S=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*y}P{y=0.6f*(y-0.3h)}u(z>0.6e){z=z*z*z}P{z=0.6f*(z-0.3h)}9{x:x*95.7P,y:y*1o.0,z:z*6x.7R}};1p.9x=o(r,g,b){I 6h;u(1f r==="2x"){g=r.g;b=r.b;r=r.r}6h=8.7k(r,g,b);9 8.7L(6h)};1p.9v=o(l,a,b){};9 1p})();1p=B.1p;B.1S=(o(){o 1S(){}1S.3f={};1S.86=["87","88","7T","89","8a","3i"];1S.38=o(22,14,1t){I 42,C,13,F,X;u(1t==G){1t=G}u(8.3f[14]&&8.3f[14].L){F=8.3f[14];X=[];U(C=0,13=F.L;C<13;C++){42=F[C];u(42.22===G||22.1X===42.22.1X){X.1z(42.2r.18(22,1t))}P{X.1z(9s 0)}}9 X}};1S.9r=o(22,14,2r){I 6l,6m;u(1f 22==="2S"){6m=22;6l=14;22=G;14=6m;2r=6l}u(3Y.18(8.86,14)<0){9 1G}u(!8.3f[14]){8.3f[14]=[]}8.3f[14].1z({22:22,2r:2r});9 2e};9 1S})();1S=B.1S;B.V=(o(){o V(){}V.26={5m:1,5s:2,5y:3,5z:4,6n:5,1Q:6};V.17=o(11,8i){9 B.H[11]=8i};9 V})();V=B.V;B.1P=(o(){o 1P(){}1P.8j=/(?:(?:3M|7o):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;1P.7d=o(1j){u(1j==G){9 1G}u(8.8k(1j)){9 1G}9 8.5e(1j.1e)};1P.8k=o(1j){I F;9(1j.5H!=G)&&((F=1j.5H.3Z())===\'8B\'||F===\'8m-9q\')};1P.5e=o(3Q){I 5f;5f=3Q.56(8.8j);u(5f){9 5f[1]!==1L.9m}P{9 1G}};1P.8q=o(1e){u(8.5e(1e)){u(!B.4E.L){1n.6r("9j 2l 9f a 8u S 9e a 9d 8x. 6M: "+1e)}P{u(B.5e(B.4E)){1n.6r("91 8m a 8u 8x U 90 8Z.");9}9 8.2X(1e)}}};1P.2X=o(1e){9""+B.4E+"?"+B.8o+"="+(8T(1e))};1P.8S=o(3d){I 4o;4o={8Q:\'8H\',a4:\'8I\',8J:\'8K\',8L:\'8M\'};3d=3d.3Z();u(4o[3d]!=G){3d=4o[3d]}9"8N/8O."+3d};9 1P})();B.H.8P=o(){u(1f 1Y!=="33"&&1Y!==G){9 8.8F.2D(8,Y)}P{9 8.8D.2D(8,Y)}};B.H.8D=o(14){I S;u(14==G){14="8C"}14=14.3Z();S=8.6w(14).8U("S/"+14,"S/8V-8W");9 1L.8X.8Y=S};B.H.8F=o(3J,5h,1g){I e,6u;u(5h==G){5h=2e}u(1g==G){1g=G}5W{6u=3y.93(3J);u(6u.94()&&!5h){9 1G}}5Z(3E){e=3E;1n.1B("96 97 3J "+3J)}9 3y.98(3J,8.E.99(),o(3K){1n.1B("9a 9b 2l "+3J);u(1g){9 1g.18(8,3K)}})};B.H.7y=o(14){I 1j;1j=1k 2p();1j.1e=8.6w(14);1j.K=8.1D.K;1j.R=8.1D.R;u(2w.2u){1j.K/=2w.2u;1j.R/=2w.2u}9 1j};B.H.6w=o(14){u(14==G){14="8C"}14=14.3Z();9 8.E.9c("S/"+14)};1P=B.1P;B.24=(o(){o 24(c){8.c=c;8.41=8.c;8.1d={6t:\'8v\',2T:1.0};8.9g=19.5N.2F();8.E=1f 1Y!=="33"&&1Y!==G?1k 3e():1L.2G(\'E\');8.E.K=8.c.1D.K;8.E.R=8.c.1D.R;8.1a=8.E.2m(\'2d\');8.1a.9h(8.E.K,8.E.R);8.1E=8.1a.36(0,0,8.E.K,8.E.R);8.M=8.1E.1t}24.H.5w=o(3B){9 8.c.5w.18(8.c,3B)};24.H.9i=o(8s){8.1d.6t=8s;9 8};24.H.2T=o(2T){8.1d.2T=2T/1o;9 8};24.H.9k=o(){I i,20,C,F;20=8.c.M;U(i=C=0,F=8.c.M.L;C8.c.M.L||2i<0){9 1k 1r(0,0,0,D,8.c)}9 8.65(2i)};1r.H.9G=o(5c,5b,A){I 7C;u(8.c==G){1N"3j a 3g 1a";}7C=8.1m+(8.c.1D.K*4*(5b*-1))+(4*5c);u(2i>8.c.M.L||2i<0){9}8.c.M[2i]=A.r;8.c.M[2i+1]=A.g;8.c.M[2i+2]=A.b;8.c.M[2i+3]=A.a;9 2e};1r.H.9I=o(x,y){I 1m;u(8.c==G){1N"3j a 3g 1a";}1m=8.6i(x,y,8.K);9 8.65(1m)};1r.H.9J=o(x,y,A){I 1m;u(8.c==G){1N"3j a 3g 1a";}1m=8.6i(x,y,8.K);8.c.M[1m]=A.r;8.c.M[1m+1]=A.g;8.c.M[1m+2]=A.b;9 8.c.M[1m+3]=A.a};1r.H.3r=o(){9 8.9K()};1r.H.9L=o(59){I 2g;u(59==G){59=1G}2g=\'#\'+8.r.3r(16)+8.g.3r(16)+8.b.3r(16);u(59){9 2g+8.a.3r(16)}P{9 2g}};9 1r})();1r=B.1r;B.1Q=(o(){o 1Q(){}1Q.60={};1Q.17=o(11,2y){9 8.60[11]=2y};1Q.2o=o(1a,11,W){9 8.60[11].2D(1a,W)};9 1Q})();1Q=B.1Q;B.1h=(o(){1h.2P=B.1V?4d(\'9P\').9Q().L:4;o 1h(c){8.c=c;8.2A=5Q(8.2A,8);8.3R=[];8.30=G}1h.H.2s=o(5Y){u(5Y==G){9}9 8.3R.1z(5Y)};1h.H.2A=o(){I 1u;u(8.3R.L===0){1S.38(8,"89");u(8.5X!=G){8.5X.18(8.c)}9 8}8.1v=8.3R.7v();3q(8.1v.14){1w V.26.5y:1u=8.c.6k.7v();8.c.6B(1u);9 8.2A();1w V.26.5z:8.c.6F();8.c.6D();9 8.2A();1w V.26.6n:9 8.7u(8.1v.1u,8.1v.1e);1w V.26.1Q:9 8.7t();9Z:9 8.7s()}};1h.H.2o=o(1g){8.5X=1g;8.30=19.4c(8.c.M.L);9 8.2A()};1h.H.5V=o(2r){I 3N,5S,1U,1q,f,i,5O,n,1l,C,F,X,1c=8;8.53=0;n=8.c.M.L;5S=Q.2H((n/4)/1h.2P);3N=5S*4;5O=3N+((n/4)%1h.2P)*4;X=[];U(i=C=0,F=1h.2P;0<=F?CF;i=0<=F?++C:--C){1l=i*3N;1q=1l+(i===1h.2P-1?5O:3N);u(B.1V){f=3L(o(){9 2r.18(1c,i,1l,1q)});1U=f.a8();X.1z(8.3i(1U))}P{X.1z(4P((o(i,1l,1q){9 o(){9 2r.18(1c,i,1l,1q)}})(i,1l,1q),0))}}9 X};1h.H.7s=o(){1S.38(8.c,"87",8.1v);u(8.1v.14===V.26.5m){9 8.5V(8.79)}P{9 8.5V(8.76)}};1h.H.7t=o(){1n.1B("ab 2y "+8.1v.2y);1Q.2o(8.c,8.1v.2y,8.1v.W);1n.1B("1Q "+8.1v.2y+" 5L!");9 8.2A()};1h.H.79=o(1U,1l,1q){I i,15,C;1n.1B("73 #"+1U+" - V: "+8.1v.11+", ae: "+1l+", af: "+1q);1S.38(8.c,"8a",{6Z:1U,6T:1h.2P,ai:1l,aj:1q});15=1k 1r();15.6g(8.c);U(i=C=1l;C<1q;i=C+=4){15.1m=i;15.r=8.c.M[i];15.g=8.c.M[i+1];15.b=8.c.M[i+2];15.a=8.c.M[i+3];8.1v.4D(15);8.c.M[i]=19.2k(15.r);8.c.M[i+1]=19.2k(15.g);8.c.M[i+2]=19.2k(15.b);8.c.M[i+3]=19.2k(15.a)}u(B.1V){9 3L["6Q"](1U)}P{9 8.3i(1U)}};1h.H.76=o(1U,1l,1q){I J,4f,25,1T,3z,1R,i,j,k,2c,n,11,p,15,2t,C,Z,1O;11=8.1v.11;25=8.1v.25;1R=8.1v.1R;n=8.c.M.L;J=8.1v.J;4f=Q.7N(J.L);2c=[];1n.1B("aq 2c - V: "+8.1v.11);1l=Q.T(1l,8.c.1D.K*4*((4f-1)/2));1q=Q.1i(1q,n-(8.c.1D.K*4*((4f-1)/2)));1T=(4f-1)/2;15=1k 1r();15.6g(8.c);U(i=C=1l;C<1q;i=C+=4){15.1m=i;3z=0;U(j=Z=-1T;-1T<=1T?Z<=1T:Z>=1T;j=-1T<=1T?++Z:--Z){U(k=1O=1T;1T<=-1T?1O<=-1T:1O>=-1T;k=1T<=-1T?++1O:--1O){p=15.7G(j,k);2c[3z*3]=p.r;2c[3z*3+1]=p.g;2c[3z*3+2]=p.b;3z++}}2t=8.5n(J,2c,1R,25);8.30[i]=19.2k(2t.r);8.30[i+1]=19.2k(2t.g);8.30[i+2]=19.2k(2t.b);8.30[i+3]=8.c.M[i+3]}u(B.1V){9 3L["6Q"](1U)}P{9 8.3i(1U)}};1h.H.3i=o(1U){I i,C,F;u(1U>=0){1n.1B("73 #"+1U+" 5L! V: "+8.1v.11)}8.53++;1S.38(8.c,"3i",{6Z:1U,ar:8.53,6T:1h.2P});u(8.53===1h.2P){u(8.1v.14===V.26.5s){U(i=C=0,F=8.c.M.L;0<=F?CF;i=0<=F?++C:--C){8.c.M[i]=8.30[i]}}u(1U>=0){1n.1B("V "+8.1v.11+" 5L!")}1S.38(8.c,"88",8.1v);9 8.2A()}};1h.H.5n=o(J,2c,1R,25){I i,1x,C,F;1x={r:0,g:0,b:0};U(i=C=0,F=J.L;0<=F?CF;i=0<=F?++C:--C){1x.r+=J[i]*2c[i*3];1x.g+=J[i]*2c[i*3+1];1x.b+=J[i]*2c[i*3+2]}1x.r=(1x.r/1R)+25;1x.g=(1x.g/1R)+25;1x.b=(1x.b/1R)+25;9 1x};1h.H.7u=o(1u,1e){I 1j,2X,1c=8;1j=1k 2p();1j.6K=o(){1u.1a.4m(1j,0,0,1c.c.1D.K,1c.c.1D.R);1u.1E=1u.1a.36(0,0,1c.c.1D.K,1c.c.1D.R);1u.M=1u.1E.1t;1c.c.M=1u.M;9 1c.2A()};2X=1P.8q(1e);9 1j.1e=2X!=G?2X:1e};9 1h})();1h=B.1h;B.21=(o(){o 21(){}21.3A={};21.72=o(2K){9 8.3A[2K]!=G};21.2F=o(2K){9 8.3A[2K]};21.6N=o(11,1H){9 8.3A[11]=1H};21.2o=o(2K,1g){I 1c=8;4P(o(){9 1g.18(1c.2F(2K),1c.2F(2K))},0);9 8.2F(2K)};21.au=o(11){u(11==G){11=1G}u(11){9 8h 8.3A[11]}P{9 8.3A={}}};9 21})();21=B.21;1A.17("8v",o(O,N){9{r:O.r,g:O.g,b:O.b}});1A.17("aw",o(O,N){9{r:(O.r*N.r)/D,g:(O.g*N.g)/D,b:(O.b*N.b)/D}});1A.17("ax",o(O,N){9{r:D-(((D-O.r)*(D-N.r))/D),g:D-(((D-O.g)*(D-N.g))/D),b:D-(((D-O.b)*(D-N.b))/D)}});1A.17("ay",o(O,N){I 1b;1b={};1b.r=N.r>1y?D-2*(D-O.r)*(D-N.r)/D:(N.r*O.r*2)/D;1b.g=N.g>1y?D-2*(D-O.g)*(D-N.g)/D:(N.g*O.g*2)/D;1b.b=N.b>1y?D-2*(D-O.b)*(D-N.b)/D:(N.b*O.b*2)/D;9 1b});1A.17("aA",o(O,N){9{r:O.r-N.r,g:O.g-N.g,b:O.b-N.b}});1A.17("aB",o(O,N){9{r:N.r+O.r,g:N.g+O.g,b:N.b+O.b}});1A.17("aC",o(O,N){9{r:1y-2*(N.r-1y)*(O.r-1y)/D,g:1y-2*(N.g-1y)*(O.g-1y)/D,b:1y-2*(N.b-1y)*(O.b-1y)/D}});1A.17("aD",o(O,N){I 1b;1b={};1b.r=N.r>1y?D-((D-N.r)*(D-(O.r-1y)))/D:(N.r*(O.r+1y))/D;1b.g=N.g>1y?D-((D-N.g)*(D-(O.g-1y)))/D:(N.g*(O.g+1y))/D;1b.b=N.b>1y?D-((D-N.b)*(D-(O.b-1y)))/D:(N.b*(O.b+1y))/D;9 1b});1A.17("aE",o(O,N){9{r:N.r>O.r?N.r:O.r,g:N.g>O.g?N.g:O.g,b:N.b>O.b?N.b:O.b}});1A.17("aF",o(O,N){9{r:N.r>O.r?O.r:N.r,g:N.g>O.g?O.g:N.g,b:N.b>O.b?O.b:N.b}});V.17("5g",o(){I 3C;u(Y.L===1){3C=1p.5K(Y[0])}P{3C={r:Y[0],g:Y[1],b:Y[2]}}9 8.1W("5g",o(A){A.r=3C.r;A.g=3C.g;A.b=3C.b;A.a=D;9 A})});V.17("83",o(J){J=Q.2H(D*(J/1o));9 8.1W("83",o(A){A.r+=J;A.g+=J;A.b+=J;9 A})});V.17("82",o(J){J*=-0.aJ;9 8.1W("82",o(A){I T;T=Q.T(A.r,A.g,A.b);u(A.r!==T){A.r+=(T-A.r)*J}u(A.g!==T){A.g+=(T-A.g)*J}u(A.b!==T){A.b+=(T-A.b)*J}9 A})});V.17("81",o(J){J*=-1;9 8.1W("81",o(A){I 3W,2I,T;T=Q.T(A.r,A.g,A.b);2I=(A.r+A.g+A.b)/3;3W=((Q.2O(T-2I)*2/D)*J)/1o;u(A.r!==T){A.r+=(T-A.r)*3W}u(A.g!==T){A.g+=(T-A.g)*3W}u(A.b!==T){A.b+=(T-A.b)*3W}9 A})});V.17("7B",o(J){9 8.1W("7B",o(A){I 2I;2I=1F.8b(A);A.r=2I;A.g=2I;A.b=2I;9 A})});V.17("7p",o(J){J=Q.1Z((J+1o)/1o,2);9 8.1W("7p",o(A){A.r/=D;A.r-=0.5;A.r*=J;A.r+=0.5;A.r*=D;A.g/=D;A.g-=0.5;A.g*=J;A.g+=0.5;A.g*=D;A.b/=D;A.b-=0.5;A.b*=J;A.b+=0.5;A.b*=D;9 A})});V.17("7a",o(J){9 8.1W("7a",o(A){I b,g,h,35,r,F;35=1p.7g(A.r,A.g,A.b);h=35.h*1o;h+=Q.2O(J);h=h%1o;h/=1o;35.h=h;F=1p.7i(35.h,35.s,35.v),r=F.r,g=F.g,b=F.b;A.r=r;A.g=g;A.b=b;9 A})});V.17("6X",o(){I 3D,2Y;u(Y.L===2){2Y=1p.5K(Y[0]);3D=Y[1]}P u(Y.L===4){2Y={r:Y[0],g:Y[1],b:Y[2]};3D=Y[3]}9 8.1W("6X",o(A){A.r-=(A.r-2Y.r)*(3D/1o);A.g-=(A.g-2Y.g)*(3D/1o);A.b-=(A.b-2Y.b)*(3D/1o);9 A})});V.17("6O",o(){9 8.1W("6O",o(A){A.r=D-A.r;A.g=D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q=2b[2b.L-1];u(1q[0]=D;i=2n<=D?++Z:--Z){1M[i]=1q[1]}}9 8.1W("4q",o(A){I 1O,2C;U(i=1O=0,2C=2q.L;0<=2C?1O<2C:1O>2C;i=0<=2C?++1O:--1O){A[2q[i]]=1M[A[2q[i]]]}9 A})});V.17("bl",o(J){I 2M,2N,p;p=Q.2O(J)/1o;2M=[0,D*p];2N=[D-(D*p),D];u(J<0){2M=2M.71();2N=2N.71()}9 8.4q(\'2Y\',[0,0],2M,2N,[D,D])});B.1Q.17("5k",o(K,R,x,y){I E,1K;u(x==G){x=0}u(y==G){y=0}u(1f 1Y!=="33"&&1Y!==G){E=1k 3e(K,R)}P{E=1L.2G(\'E\');19.49(8.E,E);E.K=K;E.R=R}1K=E.2m(\'2d\');1K.4m(8.E,x,y,K,R,0,0,K,R);8.3P={x:x,y:y};8.6R=2e;9 8.4u(E)});B.1Q.17("4Q",o(1I){I E,1K;u(1I==G){1I=G}u(1I===G||((1I.K==G)&&(1I.R==G))){1n.5l("3x 8A bo 1D 7z U 4Q");9}u(1I.K==G){1I.K=8.E.K*1I.R/8.E.R}P u(1I.R==G){1I.R=8.E.R*1I.K/8.E.K}u(1f 1Y!=="33"&&1Y!==G){E=1k 3e(1I.K,1I.R)}P{E=1L.2G(\'E\');19.49(8.E,E);E.K=1I.K;E.R=1I.R}1K=E.2m(\'2d\');1K.4m(8.E,0,0,8.E.K,8.E.R,0,0,1I.K,1I.R);8.4G=2e;9 8.4u(E)});B.V.17("5k",o(){9 8.5t("5k",3X.H.3w.18(Y,0))});B.V.17("4Q",o(){9 8.5t("4Q",3X.H.3w.18(Y,0))})}).18(8);',62,707,'||||||||this|return|||||||||||||||function||||||if||||||rgba|Caman|_i|255|canvas|_ref|null|prototype|var|adjust|width|length|pixelData|rgbaParent|rgbaLayer|else|Math|height|image|max|for|Filter|args|_results|arguments|_j||name||_len|type|pixel||register|call|Util|context|result|_this|options|src|typeof|callback|Renderer|min|img|new|start|loc|Log|100|Convert|end|Pixel|endX|data|layer|currentJob|case|val|128|push|Blender|debug|key|dimensions|imageData|Calculate|false|obj|newDims|controlPoints|ctx|document|bezier|throw|_k|IO|Plugin|divisor|Event|builder|bnum|NodeJS|process|id|exports|pow|parentData|Store|target|initObj|Layer|bias|Type||levels|055|ret|cps|kernel||true|Module|hex|caman|newLoc|prev|clampRGB|to|getContext|_ref1|execute|Image|chans|fn|add|res|devicePixelRatio|ratio|window|object|plugin|value|processNext|ele|_ref2|apply|rand|get|createElement|floor|avg|renderer|search|from|ctrl1|ctrl2|abs|Blocks|mul|pointsPerSegment|string|opacity|Analyze|values|originalPixelData|proxyUrl|rgb|imageHeight|modPixelData|lowBound|imageWidth|undefined|highBound|hsv|getImageData|break|trigger|layerData|in|CamanParser|func|lang|Canvas|events|CamanJS|1379310345|blockFinished|Requires|child|parent|leftCoord|getAttribute|p1|p0|switch|toString|lerp|clamp|__slice|nodeFileReady|slice|Invalid|fs|builderIndex|items|cb|color|level|_error|chan|finishInit|originalWidth|last|file|err|Fiber|http|blockN|__hasProp|cropCoordinates|url|renderQueue|currentLayer|algo|round|getFloat|amt|Array|__indexOf|toLowerCase|unparsedInstructions|filter|event|pixelStack|imgs|copy|prop|numPixels|continue|copyAttributes|opts|attr|dataArray|require|scaledCanvas|adjustSize|preScaledWidth|originalHeight|preScaledHeight|imageLoaded|pop|allowRevert|drawImage|source|langToExt|initializedPixelData|curves|blue|green|red|replaceCanvas|oldCanvas|putImageData|updateContext|coord|pixels|startX|startY|hiDPIRatio|processFn|remoteProxy|dest|resized|INST_REGEX|hiDPIReplacement|root|sel|parentNode|Root|next|disabled|setTimeout|resize|complete|fac0|fac1|fac2|fac3|pointsPerStep|pos|sub|parseInt|buf|rightCoord|substr|blocksDone|hueToRGB||match|moduleKeywords|initType|includeAlpha|imageUrl|vert|horiz|Logger|isURLRemote|matches|fillColor|overwrite|backingStoreRatio|listener|crop|error|Single|processKernel|nodeName|except|number|of|Kernel|processPlugin|missingValues|count|newLayer|endY|LayerDequeue|LayerFinished|m0|m1|on|naturalWidth|Revert|included|DOMUpdated|crossOrigin|layerStack|readyState|hexToRGB|finished|ctor|uniqid|lastBlockN|inst|__bind|req|blockPixelLength|04045|instFunc|eachBlock|try|finishedFn|job|catch|plugins|bind|blenders|needsHiDPISwap|version|pixelAtLocation|0031308|4166666667|whiteX|whiteY|whiteZ|008856451679|3333333333|787037037|2068965517|1284185493|setContext|xyz|coordinatesToLocation|console|canvasQueue|_fn|_type|LoadOverlay|_ref3|waitForImageLoaded|imageAdjustments|info|getAttrId|blendingMode|stats|replaceChild|toBase64|108|channels|date|assignId|executeLayer|pushContext|popContext|1000|applyCurrentLayer|applyToParent|hermite|release|sepia|onload|isImageLoaded|URL|put|invert|chunk|yield|cropped|binary|totalBlocks|hiDPIDisabled|hidpi|parser|colorize|extended|blockNum|parse|reverse|has|Block|hiDPICapable|_super|renderKernel|ready|dataStr|renderBlock|hue|DOM|__extends|isRemote|me|style|rgbToHSV|locationToCoordinates|hsvToRGB|initialized|rgbToXYZ|swapped|RegExp|readFromHttp|https|contrast|addEventListener|clip|executeFilter|executePlugin|loadOverlay|shift|newCanvas|Uint8Array|toImage|given|px|greyscale|nowLoc|noise|setAttribute|x1|getPixelRelative|y1|setInitObject|x2|y2|xyzToLab|render|sqrt|hiDPIAdjustments|047|hasId|883|randomRange|renderStart|scaled|initCanvas|116|500|200|node|reloadCanvasData|vibrance|saturation|brightness|gamma|initImage|types|processStart|processComplete|renderFinished|blockStarted|luminance|initNode|log|Object|domIsLoaded|parseArguments|delete|filterFunc|domainRegex|corsEnabled|setup|use|item|proxyParam|instanceof|remoteCheck|autoload|mode|Height|remote|normal|Width|proxy|loaded|DEBUG|or|anonymous|png|browserSave|originalVisiblePixels|nodeSave|readFile|rb|py|perl|pl|javascript|js|proxies|caman_proxy|save|ruby|initialization|useProxy|encodeURIComponent|replace|octet|stream|location|href|images|loading|Cannot||statSync|isFile||Creating|output|writeFile|toBuffer|Finished|writing|toDataURL|configured|without|load|layerID|createImageData|setBlendingMode|Attempting|copyParent|find|domain|overlayImage|not|Could|credentials|listen|void|warn|Released|labToRGB|indexOf|rgbToLab|locationXY|labToXYZ|0570|2040|0557|0415|8758|9689|putPixelRelative|4986|getPixel|putPixel|toKey|toHex|5372|2406|xyzToRGB|os|cpus|Initializing|readystatechange|9505|1192|0193|0722|7152|2126|default|1805|3576|4124|hasOwnProperty|python|hslToRGB|Fetching|Version|run|rgbToHSL|charAt|Executing|constructor|keys|Start|End|__super__|setEncoding|startPixel|endPixel|extends|while|includes|delegate|Buffer|aliasFunction|Rendering|blocksFinished|camanProxyUrl|aliasProperty|flush|114|multiply|screen|overlay|587|difference|addition|exclusion|softLight|lighten|darken|299|toFixed|random|01|defineProperty|analyze|set|distance|querySelector|Function|Remote|DOMContentLoaded|querySelectorAll|detected|extend|using|calculateLevels|607|769|189|349|314|168|272|534|869|attributes|nodeValue|naturalHeight|fibers|reset|revert|backingStorePixelRatio|oBackingStorePixelRatio|msBackingStorePixelRatio|mozBackingStorePixelRatio|webkitBackingStorePixelRatio|scale|HiDPI|isNaN|split|exposure|resetOriginalPixelData|2013|missing'.split('|'),0,{})) \ No newline at end of file diff --git a/src/core/caman.coffee b/src/core/caman.coffee index b52dcf4c..f3269ec0 100644 --- a/src/core/caman.coffee +++ b/src/core/caman.coffee @@ -10,6 +10,7 @@ if exports? http = require 'http' else Root = window + Image = window.Image # Here it begins. Caman is defined. # There are many different initialization for Caman, which are described on the From dfff48f25cbf0220fe6b4a910b6740feb5160a56 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Mon, 14 Aug 2017 20:42:04 -0700 Subject: [PATCH 2/2] Introduce Layer Mask feature An image can be used as a transparency map (white is opaque), similar to Layer Mask in many photo editors --- dist/caman.full.js | 51 ++++++++++++++++++++++++++++++--- dist/caman.full.min.js | 13 +++++---- dist/caman.full.pack.js | 2 +- dist/caman.js | 51 ++++++++++++++++++++++++++++++--- dist/caman.min.js | 13 +++++---- dist/caman.pack.js | 2 +- examples/browser/index.html | 8 +++++- examples/images/test1_mask.jpg | Bin 0 -> 46762 bytes src/core/filter.coffee | 3 +- src/core/layer.coffee | 28 +++++++++++++++--- src/core/renderer.coffee | 21 +++++++++++++- 11 files changed, 165 insertions(+), 27 deletions(-) create mode 100755 examples/images/test1_mask.jpg diff --git a/dist/caman.full.js b/dist/caman.full.js index 152ee6a8..abb4b676 100644 --- a/dist/caman.full.js +++ b/dist/caman.full.js @@ -1438,6 +1438,7 @@ LayerDequeue: 3, LayerFinished: 4, LoadOverlay: 5, + LoadLayerMask: 7, Plugin: 6 }; @@ -1649,10 +1650,28 @@ return this; }; + Layer.prototype.layerMask = function(image) { + if (typeof image === "object") { + image = image.src; + } else if (typeof image === "string" && image[0] === "#") { + image = $(image).src; + } + if (!image) { + return this; + } + this.c.renderer.renderQueue.push({ + type: Filter.Type.LoadLayerMask, + src: image, + layer: this + }); + return this; + }; + Layer.prototype.applyToParent = function() { - var i, layerData, parentData, result, rgbaLayer, rgbaParent, _i, _ref, _results; + var i, layerData, opacity, parentData, result, rgbaLayer, rgbaParent, _i, _ref, _results; parentData = this.c.pixelStack[this.c.pixelStack.length - 1]; layerData = this.c.pixelData; + opacity = this.options.opacity; _results = []; for (i = _i = 0, _ref = layerData.length; _i < _ref; i = _i += 4) { rgbaParent = { @@ -1667,6 +1686,9 @@ b: layerData[i + 2], a: layerData[i + 3] }; + if (this.maskData) { + opacity = this.maskData[i] / 255; + } result = Blender.execute(this.options.blendingMode, rgbaLayer, rgbaParent); result.r = Util.clampRGB(result.r); result.g = Util.clampRGB(result.g); @@ -1674,9 +1696,9 @@ if (result.a == null) { result.a = rgbaLayer.a; } - parentData[i] = rgbaParent.r - ((rgbaParent.r - result.r) * (this.options.opacity * (result.a / 255))); - parentData[i + 1] = rgbaParent.g - ((rgbaParent.g - result.g) * (this.options.opacity * (result.a / 255))); - _results.push(parentData[i + 2] = rgbaParent.b - ((rgbaParent.b - result.b) * (this.options.opacity * (result.a / 255)))); + parentData[i] = rgbaParent.r - ((rgbaParent.r - result.r) * (opacity * (result.a / 255))); + parentData[i + 1] = rgbaParent.g - ((rgbaParent.g - result.g) * (opacity * (result.a / 255))); + _results.push(parentData[i + 2] = rgbaParent.b - ((rgbaParent.b - result.b) * (opacity * (result.a / 255)))); } return _results; }; @@ -1895,6 +1917,8 @@ return this.processNext(); case Filter.Type.LoadOverlay: return this.loadOverlay(this.currentJob.layer, this.currentJob.src); + case Filter.Type.LoadLayerMask: + return this.loadLayerMask(this.currentJob.layer, this.currentJob.src); case Filter.Type.Plugin: return this.executePlugin(); default: @@ -2081,6 +2105,25 @@ return img.src = proxyUrl != null ? proxyUrl : src; }; + Renderer.prototype.loadLayerMask = function(layer, src) { + var img, proxyUrl, + _this = this; + img = new Image(); + img.onload = function() { + var canvas, context, maskData; + canvas = typeof exports !== "undefined" && exports !== null ? new Canvas() : document.createElement('canvas'); + canvas.width = _this.c.dimensions.width; + canvas.height = _this.c.dimensions.height; + context = canvas.getContext('2d'); + context.drawImage(img, 0, 0, _this.c.dimensions.width, _this.c.dimensions.height); + maskData = context.getImageData(0, 0, _this.c.dimensions.width, _this.c.dimensions.height); + layer.maskData = maskData.data; + return _this.processNext(); + }; + proxyUrl = IO.remoteCheck(src); + return img.src = proxyUrl != null ? proxyUrl : src; + }; + return Renderer; })(); diff --git a/dist/caman.full.min.js b/dist/caman.full.min.js index 46a02a2c..f44645d7 100644 --- a/dist/caman.full.min.js +++ b/dist/caman.full.min.js @@ -123,7 +123,7 @@ return _results;}};Event.listen=function(target,type,fn){var _fn,_type;if(typeof if(__indexOf.call(this.types,type)<0){return false;} if(!this.events[type]){this.events[type]=[];} this.events[type].push({target:target,fn:fn});return true;};return Event;})();Event=Caman.Event;Caman.Filter=(function(){function Filter(){} -Filter.Type={Single:1,Kernel:2,LayerDequeue:3,LayerFinished:4,LoadOverlay:5,Plugin:6};Filter.register=function(name,filterFunc){return Caman.prototype[name]=filterFunc;};return Filter;})();Filter=Caman.Filter;Caman.IO=(function(){function IO(){} +Filter.Type={Single:1,Kernel:2,LayerDequeue:3,LayerFinished:4,LoadOverlay:5,LoadLayerMask:7,Plugin:6};Filter.register=function(name,filterFunc){return Caman.prototype[name]=filterFunc;};return Filter;})();Filter=Caman.Filter;Caman.IO=(function(){function IO(){} IO.domainRegex=/(?:(?:http|https):\/\/)((?:\w+)\.(?:(?:\w|\.)+))/;IO.isRemote=function(img){if(img==null){return false;} if(this.corsEnabled(img)){return false;} return this.isURLRemote(img.src);};IO.corsEnabled=function(img){var _ref;return(img.crossOrigin!=null)&&((_ref=img.crossOrigin.toLowerCase())==='anonymous'||_ref==='use-credentials');};IO.isURLRemote=function(url){var matches;matches=url.match(this.domainRegex);if(matches){return matches[1]!==document.domain;}else{return false;}};IO.remoteCheck=function(src){if(this.isURLRemote(src)){if(!Caman.remoteProxy.length){Log.info("Attempting to load a remote image without a configured proxy. URL: "+src);}else{if(Caman.isURLRemote(Caman.remoteProxy)){Log.info("Cannot use a remote proxy for loading images.");return;} @@ -138,8 +138,11 @@ type=type.toLowerCase();return this.canvas.toDataURL("image/"+type);};IO=Caman.I Layer.prototype.newLayer=function(cb){return this.c.newLayer.call(this.c,cb);};Layer.prototype.setBlendingMode=function(mode){this.options.blendingMode=mode;return this;};Layer.prototype.opacity=function(opacity){this.options.opacity=opacity/100;return this;};Layer.prototype.copyParent=function(){var i,parentData,_i,_ref;parentData=this.c.pixelData;for(i=_i=0,_ref=this.c.pixelData.length;_i<_ref;i=_i+=4){this.pixelData[i]=parentData[i];this.pixelData[i+1]=parentData[i+1];this.pixelData[i+2]=parentData[i+2];this.pixelData[i+3]=parentData[i+3];} return this;};Layer.prototype.fillColor=function(){return this.c.fillColor.apply(this.c,arguments);};Layer.prototype.overlayImage=function(image){if(typeof image==="object"){image=image.src;}else if(typeof image==="string"&&image[0]==="#"){image=$(image).src;} if(!image){return this;} -this.c.renderer.renderQueue.push({type:Filter.Type.LoadOverlay,src:image,layer:this});return this;};Layer.prototype.applyToParent=function(){var i,layerData,parentData,result,rgbaLayer,rgbaParent,_i,_ref,_results;parentData=this.c.pixelStack[this.c.pixelStack.length-1];layerData=this.c.pixelData;_results=[];for(i=_i=0,_ref=layerData.length;_i<_ref;i=_i+=4){rgbaParent={r:parentData[i],g:parentData[i+1],b:parentData[i+2],a:parentData[i+3]};rgbaLayer={r:layerData[i],g:layerData[i+1],b:layerData[i+2],a:layerData[i+3]};result=Blender.execute(this.options.blendingMode,rgbaLayer,rgbaParent);result.r=Util.clampRGB(result.r);result.g=Util.clampRGB(result.g);result.b=Util.clampRGB(result.b);if(result.a==null){result.a=rgbaLayer.a;} -parentData[i]=rgbaParent.r-((rgbaParent.r-result.r)*(this.options.opacity*(result.a/255)));parentData[i+1]=rgbaParent.g-((rgbaParent.g-result.g)*(this.options.opacity*(result.a/255)));_results.push(parentData[i+2]=rgbaParent.b-((rgbaParent.b-result.b)*(this.options.opacity*(result.a/255))));} +this.c.renderer.renderQueue.push({type:Filter.Type.LoadOverlay,src:image,layer:this});return this;};Layer.prototype.layerMask=function(image){if(typeof image==="object"){image=image.src;}else if(typeof image==="string"&&image[0]==="#"){image=$(image).src;} +if(!image){return this;} +this.c.renderer.renderQueue.push({type:Filter.Type.LoadLayerMask,src:image,layer:this});return this;};Layer.prototype.applyToParent=function(){var i,layerData,opacity,parentData,result,rgbaLayer,rgbaParent,_i,_ref,_results;parentData=this.c.pixelStack[this.c.pixelStack.length-1];layerData=this.c.pixelData;opacity=this.options.opacity;_results=[];for(i=_i=0,_ref=layerData.length;_i<_ref;i=_i+=4){rgbaParent={r:parentData[i],g:parentData[i+1],b:parentData[i+2],a:parentData[i+3]};rgbaLayer={r:layerData[i],g:layerData[i+1],b:layerData[i+2],a:layerData[i+3]};if(this.maskData){opacity=this.maskData[i]/255;} +result=Blender.execute(this.options.blendingMode,rgbaLayer,rgbaParent);result.r=Util.clampRGB(result.r);result.g=Util.clampRGB(result.g);result.b=Util.clampRGB(result.b);if(result.a==null){result.a=rgbaLayer.a;} +parentData[i]=rgbaParent.r-((rgbaParent.r-result.r)*(opacity*(result.a/255)));parentData[i+1]=rgbaParent.g-((rgbaParent.g-result.g)*(opacity*(result.a/255)));_results.push(parentData[i+2]=rgbaParent.b-((rgbaParent.b-result.b)*(opacity*(result.a/255))));} return _results;};return Layer;})();Layer=Caman.Layer;Caman.Logger=(function(){function Logger(){var name,_i,_len,_ref;_ref=['log','info','warn','error'];for(_i=0,_len=_ref.length;_i<_len;_i++){name=_ref[_i];this[name]=(function(name){return function(){var args,e;args=1<=arguments.length?__slice.call(arguments,0):[];if(!Caman.DEBUG){return;} try{return console[name].apply(console,args);}catch(_error){e=_error;return console[name](args);}};})(name);} this.debug=this.log;} @@ -158,7 +161,7 @@ Plugin.plugins={};Plugin.register=function(name,plugin){return this.plugins[name Renderer.prototype.add=function(job){if(job==null){return;} return this.renderQueue.push(job);};Renderer.prototype.processNext=function(){var layer;if(this.renderQueue.length===0){Event.trigger(this,"renderFinished");if(this.finishedFn!=null){this.finishedFn.call(this.c);} return this;} -this.currentJob=this.renderQueue.shift();switch(this.currentJob.type){case Filter.Type.LayerDequeue:layer=this.c.canvasQueue.shift();this.c.executeLayer(layer);return this.processNext();case Filter.Type.LayerFinished:this.c.applyCurrentLayer();this.c.popContext();return this.processNext();case Filter.Type.LoadOverlay:return this.loadOverlay(this.currentJob.layer,this.currentJob.src);case Filter.Type.Plugin:return this.executePlugin();default:return this.executeFilter();}};Renderer.prototype.execute=function(callback){this.finishedFn=callback;this.modPixelData=Util.dataArray(this.c.pixelData.length);return this.processNext();};Renderer.prototype.eachBlock=function(fn){var blockN,blockPixelLength,bnum,end,f,i,lastBlockN,n,start,_i,_ref,_results,_this=this;this.blocksDone=0;n=this.c.pixelData.length;blockPixelLength=Math.floor((n/4)/Renderer.Blocks);blockN=blockPixelLength*4;lastBlockN=blockN+((n/4)%Renderer.Blocks)*4;_results=[];for(i=_i=0,_ref=Renderer.Blocks;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i){start=i*blockN;end=start+(i===Renderer.Blocks-1?lastBlockN:blockN);if(Caman.NodeJS){f=Fiber(function(){return fn.call(_this,i,start,end);});bnum=f.run();_results.push(this.blockFinished(bnum));}else{_results.push(setTimeout((function(i,start,end){return function(){return fn.call(_this,i,start,end);};})(i,start,end),0));}} +this.currentJob=this.renderQueue.shift();switch(this.currentJob.type){case Filter.Type.LayerDequeue:layer=this.c.canvasQueue.shift();this.c.executeLayer(layer);return this.processNext();case Filter.Type.LayerFinished:this.c.applyCurrentLayer();this.c.popContext();return this.processNext();case Filter.Type.LoadOverlay:return this.loadOverlay(this.currentJob.layer,this.currentJob.src);case Filter.Type.LoadLayerMask:return this.loadLayerMask(this.currentJob.layer,this.currentJob.src);case Filter.Type.Plugin:return this.executePlugin();default:return this.executeFilter();}};Renderer.prototype.execute=function(callback){this.finishedFn=callback;this.modPixelData=Util.dataArray(this.c.pixelData.length);return this.processNext();};Renderer.prototype.eachBlock=function(fn){var blockN,blockPixelLength,bnum,end,f,i,lastBlockN,n,start,_i,_ref,_results,_this=this;this.blocksDone=0;n=this.c.pixelData.length;blockPixelLength=Math.floor((n/4)/Renderer.Blocks);blockN=blockPixelLength*4;lastBlockN=blockN+((n/4)%Renderer.Blocks)*4;_results=[];for(i=_i=0,_ref=Renderer.Blocks;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i){start=i*blockN;end=start+(i===Renderer.Blocks-1?lastBlockN:blockN);if(Caman.NodeJS){f=Fiber(function(){return fn.call(_this,i,start,end);});bnum=f.run();_results.push(this.blockFinished(bnum));}else{_results.push(setTimeout((function(i,start,end){return function(){return fn.call(_this,i,start,end);};})(i,start,end),0));}} return _results;};Renderer.prototype.executeFilter=function(){Event.trigger(this.c,"processStart",this.currentJob);if(this.currentJob.type===Filter.Type.Single){return this.eachBlock(this.renderBlock);}else{return this.eachBlock(this.renderKernel);}};Renderer.prototype.executePlugin=function(){Log.debug("Executing plugin "+this.currentJob.plugin);Plugin.execute(this.c,this.currentJob.plugin,this.currentJob.args);Log.debug("Plugin "+this.currentJob.plugin+" finished!");return this.processNext();};Renderer.prototype.renderBlock=function(bnum,start,end){var i,pixel,_i;Log.debug("Block #"+bnum+" - Filter: "+this.currentJob.name+", Start: "+start+", End: "+end);Event.trigger(this.c,"blockStarted",{blockNum:bnum,totalBlocks:Renderer.Blocks,startPixel:start,endPixel:end});pixel=new Pixel();pixel.setContext(this.c);for(i=_i=start;_i=builder;j=-builder<=builder?++_j:--_j){for(k=_k=builder;builder<=-builder?_k<=-builder:_k>=-builder;k=builder<=-builder?++_k:--_k){p=pixel.getPixelRelative(j,k);kernel[builderIndex*3]=p.r;kernel[builderIndex*3+1]=p.g;kernel[builderIndex*3+2]=p.b;builderIndex++;}} res=this.processKernel(adjust,kernel,divisor,bias);this.modPixelData[i]=Util.clampRGB(res.r);this.modPixelData[i+1]=Util.clampRGB(res.g);this.modPixelData[i+2]=Util.clampRGB(res.b);this.modPixelData[i+3]=this.c.pixelData[i+3];} @@ -166,7 +169,7 @@ if(Caman.NodeJS){return Fiber["yield"](bnum);}else{return this.blockFinished(bnu this.blocksDone++;Event.trigger(this.c,"blockFinished",{blockNum:bnum,blocksFinished:this.blocksDone,totalBlocks:Renderer.Blocks});if(this.blocksDone===Renderer.Blocks){if(this.currentJob.type===Filter.Type.Kernel){for(i=_i=0,_ref=this.c.pixelData.length;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i){this.c.pixelData[i]=this.modPixelData[i];}} if(bnum>=0){Log.debug("Filter "+this.currentJob.name+" finished!");} Event.trigger(this.c,"processComplete",this.currentJob);return this.processNext();}};Renderer.prototype.processKernel=function(adjust,kernel,divisor,bias){var i,val,_i,_ref;val={r:0,g:0,b:0};for(i=_i=0,_ref=adjust.length;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i){val.r+=adjust[i]*kernel[i*3];val.g+=adjust[i]*kernel[i*3+1];val.b+=adjust[i]*kernel[i*3+2];} -val.r=(val.r/divisor)+bias;val.g=(val.g/divisor)+bias;val.b=(val.b/divisor)+bias;return val;};Renderer.prototype.loadOverlay=function(layer,src){var img,proxyUrl,_this=this;img=new Image();img.onload=function(){layer.context.drawImage(img,0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.imageData=layer.context.getImageData(0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.pixelData=layer.imageData.data;_this.c.pixelData=layer.pixelData;return _this.processNext();};proxyUrl=IO.remoteCheck(src);return img.src=proxyUrl!=null?proxyUrl:src;};return Renderer;})();Renderer=Caman.Renderer;Caman.Store=(function(){function Store(){} +val.r=(val.r/divisor)+bias;val.g=(val.g/divisor)+bias;val.b=(val.b/divisor)+bias;return val;};Renderer.prototype.loadOverlay=function(layer,src){var img,proxyUrl,_this=this;img=new Image();img.onload=function(){layer.context.drawImage(img,0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.imageData=layer.context.getImageData(0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.pixelData=layer.imageData.data;_this.c.pixelData=layer.pixelData;return _this.processNext();};proxyUrl=IO.remoteCheck(src);return img.src=proxyUrl!=null?proxyUrl:src;};Renderer.prototype.loadLayerMask=function(layer,src){var img,proxyUrl,_this=this;img=new Image();img.onload=function(){var canvas,context,maskData;canvas=typeof exports!=="undefined"&&exports!==null?new Canvas():document.createElement('canvas');canvas.width=_this.c.dimensions.width;canvas.height=_this.c.dimensions.height;context=canvas.getContext('2d');context.drawImage(img,0,0,_this.c.dimensions.width,_this.c.dimensions.height);maskData=context.getImageData(0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.maskData=maskData.data;return _this.processNext();};proxyUrl=IO.remoteCheck(src);return img.src=proxyUrl!=null?proxyUrl:src;};return Renderer;})();Renderer=Caman.Renderer;Caman.Store=(function(){function Store(){} Store.items={};Store.has=function(search){return this.items[search]!=null;};Store.get=function(search){return this.items[search];};Store.put=function(name,obj){return this.items[name]=obj;};Store.execute=function(search,callback){var _this=this;setTimeout(function(){return callback.call(_this.get(search),_this.get(search));},0);return this.get(search);};Store.flush=function(name){if(name==null){name=false;} if(name){return delete this.items[name];}else{return this.items={};}};return Store;})();Store=Caman.Store;Blender.register("normal",function(rgbaLayer,rgbaParent){return{r:rgbaLayer.r,g:rgbaLayer.g,b:rgbaLayer.b};});Blender.register("multiply",function(rgbaLayer,rgbaParent){return{r:(rgbaLayer.r*rgbaParent.r)/255,g:(rgbaLayer.g*rgbaParent.g)/255,b:(rgbaLayer.b*rgbaParent.b)/255};});Blender.register("screen",function(rgbaLayer,rgbaParent){return{r:255-(((255-rgbaLayer.r)*(255-rgbaParent.r))/255),g:255-(((255-rgbaLayer.g)*(255-rgbaParent.g))/255),b:255-(((255-rgbaLayer.b)*(255-rgbaParent.b))/255)};});Blender.register("overlay",function(rgbaLayer,rgbaParent){var result;result={};result.r=rgbaParent.r>128?255-2*(255-rgbaLayer.r)*(255-rgbaParent.r)/255:(rgbaParent.r*rgbaLayer.r*2)/255;result.g=rgbaParent.g>128?255-2*(255-rgbaLayer.g)*(255-rgbaParent.g)/255:(rgbaParent.g*rgbaLayer.g*2)/255;result.b=rgbaParent.b>128?255-2*(255-rgbaLayer.b)*(255-rgbaParent.b)/255:(rgbaParent.b*rgbaLayer.b*2)/255;return result;});Blender.register("difference",function(rgbaLayer,rgbaParent){return{r:rgbaLayer.r-rgbaParent.r,g:rgbaLayer.g-rgbaParent.g,b:rgbaLayer.b-rgbaParent.b};});Blender.register("addition",function(rgbaLayer,rgbaParent){return{r:rgbaParent.r+rgbaLayer.r,g:rgbaParent.g+rgbaLayer.g,b:rgbaParent.b+rgbaLayer.b};});Blender.register("exclusion",function(rgbaLayer,rgbaParent){return{r:128-2*(rgbaParent.r-128)*(rgbaLayer.r-128)/255,g:128-2*(rgbaParent.g-128)*(rgbaLayer.g-128)/255,b:128-2*(rgbaParent.b-128)*(rgbaLayer.b-128)/255};});Blender.register("softLight",function(rgbaLayer,rgbaParent){var result;result={};result.r=rgbaParent.r>128?255-((255-rgbaParent.r)*(255-(rgbaLayer.r-128)))/255:(rgbaParent.r*(rgbaLayer.r+128))/255;result.g=rgbaParent.g>128?255-((255-rgbaParent.g)*(255-(rgbaLayer.g-128)))/255:(rgbaParent.g*(rgbaLayer.g+128))/255;result.b=rgbaParent.b>128?255-((255-rgbaParent.b)*(255-(rgbaLayer.b-128)))/255:(rgbaParent.b*(rgbaLayer.b+128))/255;return result;});Blender.register("lighten",function(rgbaLayer,rgbaParent){return{r:rgbaParent.r>rgbaLayer.r?rgbaParent.r:rgbaLayer.r,g:rgbaParent.g>rgbaLayer.g?rgbaParent.g:rgbaLayer.g,b:rgbaParent.b>rgbaLayer.b?rgbaParent.b:rgbaLayer.b};});Blender.register("darken",function(rgbaLayer,rgbaParent){return{r:rgbaParent.r>rgbaLayer.r?rgbaLayer.r:rgbaParent.r,g:rgbaParent.g>rgbaLayer.g?rgbaLayer.g:rgbaParent.g,b:rgbaParent.b>rgbaLayer.b?rgbaLayer.b:rgbaParent.b};});Filter.register("fillColor",function(){var color;if(arguments.length===1){color=Convert.hexToRGB(arguments[0]);}else{color={r:arguments[0],g:arguments[1],b:arguments[2]};} return this.process("fillColor",function(rgba){rgba.r=color.r;rgba.g=color.g;rgba.b=color.b;rgba.a=255;return rgba;});});Filter.register("brightness",function(adjust){adjust=Math.floor(255*(adjust/100));return this.process("brightness",function(rgba){rgba.r+=adjust;rgba.g+=adjust;rgba.b+=adjust;return rgba;});});Filter.register("saturation",function(adjust){adjust*=-0.01;return this.process("saturation",function(rgba){var max;max=Math.max(rgba.r,rgba.g,rgba.b);if(rgba.r!==max){rgba.r+=(max-rgba.r)*adjust;} diff --git a/dist/caman.full.pack.js b/dist/caman.full.pack.js index 1b1837d2..4d1cf119 100644 --- a/dist/caman.full.pack.js +++ b/dist/caman.full.pack.js @@ -1 +1 @@ -eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(A(){M $,4S,2m,2g,D,54,3S,1X,2M,6B,R,2W,3O,3b,1Y,3D,29,2u,1R,7V,2Z,1v,fs,6y,7Z,5f,9y,6s=[].fb||A(bS){W(M i=0,l=o.P;iE){u E}u 2f};1v.5H=A(4H,3C,G){M 6l,H,1o,K,3P,1n;B(G==L){G={}}K=4H.e6;1n=[];W(H=0,1o=K.P;H<1o;H++){6l=K[H];B((G.8W!=L)&&(3P=6l.9U,6s.1w(G.8W,3P)>=0)){5I}1n.2p(3C.cR(6l.9U,6l.dd))}u 1n};1v.6F=A(P){B(P==L){P=0}B(D.2N||(4o.cC!=L)){u 1x cC(P)}u 1x 5T(P)};u 1v})();B(1r 2h!=="43"&&2h!==L){7V=2h;3S=6x(\'I\');3O=3S.3O;6B=6x(\'eQ\');fs=6x(\'fs\');6y=6x(\'6y\')}S{7V=4o;3O=4o.3O}D=(A(cv){cM(D,cv);D.9w={ct:"4.1.2",cs:"7/27/de"};D.co=2t;D.6r=31;D.9t="cm";D.8t="";D.ck="df";D.2N=1r 2h!=="43"&&2h!==L;D.ci=!D.2N;D.65=A(){u"dg "+D.9w.ct+", dh "+D.9w.cs};D.9m=A(I){B(D.2N){u 31}B(1r I==="3i"){I=$(I)}B(!((I!=L)&&(I.6c!=L))){u L}u I.6c(\'26-3G-2P\')};A D(){o.6d=9x(o.6d,o);M 1l,1P,2P,1H=o;B(1k.P===0){2U"6i 1k";}B(o bY D){o.6k=o.6k.98(o);o.6H=o.6H.98(o);1l=1k[0];B(!D.2N){2P=48(D.9m(1l[0]),10);1P=1r 1l[1]==="A"?1l[1]:1r 1l[2]==="A"?1l[2]:A(){};B(!bQ(2P)&&2Z.bP(2P)){u 2Z.44(2P,1P)}}o.2P=1v.8Z.47();o.7D=o.5g=L;o.6z={x:0,y:0};o.bH=2t;o.7R=2t;o.6D=[];o.8S=[];o.8P=[];o.6N=L;o.bl=2t;o.du=1x 4S(o);o.4K=1x 1R(o);o.bi(A(){1H.bh(1l);u 1H.bg()});u o}S{u 1x D(1k)}}D.N.bi=A(cb){M 8H,1H=o;B(D.2N){u 8q(A(){u cb.1w(1H)},0)}S{B(2o.9q==="8D"){1Y.2r("aU aT");u 8q(A(){u cb.1w(1H)},0)}S{8H=A(){B(2o.9q==="8D"){1Y.2r("aU aT");u cb.1w(1H)}};u 2o.aS("dE",8H,2t)}}};D.N.bh=A(1l){M 2v,2f,K,1n;B(1l.P===0){2U"6i 1k aQ";}o.39=L;o.8A=L;o.8z=L;o.1P=A(){};o.aM(1l[0]);B(1l.P===1){u}61(1r 1l[1]){2c"3i":o.8z=1l[1];4Z;2c"A":o.1P=1l[1]}B(1l.P===2){u}o.1P=1l[2];B(1l.P===4){K=1l[4];1n=[];W(2v 5h K){B(!74.1w(K,2v))5I;2f=K[2v];1n.2p(o.1E[2v]=2f)}u 1n}};D.N.aM=A(2D){B(D.2N){o.39=2D;o.8A=\'ay\';u}B(1r 2D==="46"){o.39=2D}S{o.39=$(2D)}B(o.39==L){2U"dN dO dV 1f d3 I W dX.";}u o.8A=o.39.9U.6P()};D.N.bg=A(){61(o.8A){2c"ay":u o.cN();2c"1M":u o.cE();2c"I":u o.cx()}};D.N.cN=A(){1Y.2r("e8 W 2N");B(1r o.39==="3i"&&o.39.7W(/^ch?:\\/\\//)){u o.cf(o.39,o.6d)}S B(1r o.39==="3i"){u fs.eb(o.39,o.6d)}S{u o.6d(L,o.39)}};D.N.cf=A(6u,1P){M 9z;1Y.2r("fj 1f 4H "+6u);9z=6y.47(6u,A(4r){M 7O;7O=\'\';4r.fk(\'aP\');4r.9B(\'26\',A(at){u 7O+=at});u 4r.9B(\'1N\',A(){u 1P(L,1x fp(7O,\'aP\'))})});u 9z.9B(\'9C\',1P)};D.N.6d=A(6G,26){B(6G){2U 6G;}o.1f=1x 3O();o.1f.1F=26;1Y.2r("3O cS. cD = "+(o.5b())+", cy = "+(o.4W()));o.I=1x 3S(o.5b(),o.4W());u o.6k()};D.N.cE=A(){o.1f=o.39;o.I=2o.3M(\'I\');o.1i=o.I.3f(\'2d\');1v.5H(o.1f,o.I,{8W:[\'1F\']});B(o.1f.7c!=L){o.1f.7c.9D(o.I,o.1f)}o.9J();u o.9L()};D.N.cx=A(){o.I=o.39;o.1i=o.I.3f(\'2d\');B(o.8z!=L){o.1f=2o.3M(\'1M\');o.1f.1F=o.8z;o.9J();u o.9L()}S{u o.6k()}};D.N.9J=A(){B(o.9M()){1Y.2r(o.1f.1F,"->",o.8m());o.bd=31;o.1f.1F=o.8m()}B(2W.bb(o.1f)){o.1f.1F=2W.57(o.1f.1F);u 1Y.2r("fu 1f fx, fD cQ = "+o.1f.1F)}};D.N.9L=A(){B(o.cB()){u o.6H()}S{u o.1f.cr=o.6H}};D.N.cB=A(){B(!o.1f.8D){u 2t}B((o.1f.9P!=L)&&o.1f.9P===0){u 2t}u 31};D.N.5b=A(){u o.1f.F||o.1f.9P};D.N.4W=A(){u o.1f.J||o.1f.fN};D.N.6H=A(){1Y.2r("3O cS. cD = "+(o.5b())+", cy = "+(o.4W()));B(o.bd){o.I.F=o.5b()/o.7G();o.I.J=o.4W()/o.7G()}S{o.I.F=o.5b();o.I.J=o.4W()}u o.6k()};D.N.6k=A(){M i,1u,H,1o,K;B(o.1i==L){o.1i=o.I.3f(\'2d\')}o.51=o.6W=o.F=o.I.F;o.5D=o.6Y=o.J=o.I.J;o.d9();B(!o.c7()){o.c6()}B(o.1f!=L){o.1i.5U(o.1f,0,0,o.5b(),o.4W(),0,0,o.6W,o.6Y)}o.2A=o.1i.49(0,0,o.I.F,o.I.J);o.T=o.2A.26;B(D.6r){o.7D=1v.6F(o.T.P);o.5g=1v.6F(o.T.P);K=o.T;W(i=H=0,1o=K.P;H<1o;i=++H){1u=K[i];o.7D[i]=1u;o.5g[i]=1u}}o.1c={F:o.I.F,J:o.I.J};B(!D.2N){2Z.c4(o.2P,o)}o.1P.1w(o,o);u o.1P=A(){}};D.N.c1=A(){o.2A=o.1i.49(0,0,o.I.F,o.I.J);u o.T=o.2A.26};D.N.g3=A(){M i,1u,H,1o,K,1n;B(!D.6r){2U"a0 7F";}o.5g=1v.6F(o.T.P);K=o.T;1n=[];W(i=H=0,1o=K.P;H<1o;i=++H){1u=K[i];1n.2p(o.5g[i]=1u)}u 1n};D.N.c7=A(){u D.9m(o.I)!=L};D.N.c6=A(){B(D.2N||o.I.6c(\'26-3G-2P\')){u}u o.I.cR(\'26-3G-2P\',o.2P)};D.N.aE=A(){u o.I.6c(\'26-3G-cO-7F\')!==L};D.N.d9=A(){M 4f;B(D.2N||!o.9M()){u}4f=o.7G();B(4f!==1){1Y.2r("g4 4f = "+4f);o.bl=31;o.6W=o.I.F;o.6Y=o.I.J;o.I.F=o.6W*4f;o.I.J=o.6Y*4f;o.I.c8.F=""+o.6W+"c5";o.I.c8.J=""+o.6Y+"c5";o.1i.g6(4f,4f);o.F=o.51=o.I.F;u o.J=o.5D=o.I.J}};D.N.7G=A(){M a3,4l;4l=4o.4l||1;a3=o.1i.g7||o.1i.gi||o.1i.gk||o.1i.gm||o.1i.go||1;u 4l/a3};D.N.aZ=A(){u(4o.4l!=L)&&4o.4l!==1};D.N.9M=A(){B(o.aE()||!o.aZ()){u 2t}u o.8m()!==L};D.N.8m=A(){B(o.1f==L){u L}u o.1f.6c(\'26-3G-cO\')};D.N.73=A(aD){M 7z;7z=o.I;o.I=aD;o.1i=o.I.3f(\'2d\');B(!D.2N){7z.7c.9D(o.I,7z)}o.F=o.I.F;o.J=o.I.J;o.c1();u o.1c={F:o.I.F,J:o.I.J}};D.N.a8=A(1P){M 1H=o;B(1P==L){1P=A(){}}2M.4Y(o,"aX");u o.4K.44(A(){1H.1i.7x(1H.2A,0,0);u 1P.1w(1H)})};D.N.gu=A(8e){M i,1u,H,1o,K;B(8e==L){8e=31}B(!D.6r){2U"a0 7F";}K=o.d2();W(i=H=0,1o=K.P;H<1o;i=++H){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o();u o.6N=o.8S.6o()};D.N.bO=A(){u o.6N.bU()};u D})(3D);7V.D=D;D.4S=(A(){A 4S(c){o.c=c}4S.N.fX=A(){M i,3m,71,H,1e,1G,K;3m={r:{},g:{},b:{}};W(i=H=0;H<=E;i=++H){3m.r[i]=0;3m.g[i]=0;3m.b[i]=0}W(i=1e=0,K=o.c.T.P;1e0)){u}1n=[];W(H=0,1o=6Z.P;H<1o;H++){1M=6Z[H];1n.2p(cA=1x 54(1M,A(){o.cI();u o.44()}))}u 1n};B(D.ci){(A(){B(2o.9q==="8D"){u D.9X()}S{u 2o.aS("fT",D.9X,2t)}})()}54=(A(){M 8g;8g="(\\\\w+)\\\\((.*?)\\\\)";A 54(4g,db){o.ab=4g.6c(\'26-3G\');o.3G=D(4g,db.98(o))}54.N.cI=A(){M 1l,e,1B,5j,9W,9V,m,r,6X,H,1o,K,1n;o.4g=o.3G.I;r=1x bf(8g,\'g\');6X=o.ab.7W(r);B(!(6X.P>0)){u}r=1x bf(8g);1n=[];W(H=0,1o=6X.P;H<1o;H++){9W=6X[H];K=9W.7W(r),m=K[0],1B=K[1],1l=K[2];9V=1x fO("u A() { o."+1B+"("+1l+"); };");9S{5j=9V();1n.2p(5j.1w(o.3G))}9R(5C){e=5C;1n.2p(1Y.2r(e))}}u 1n};54.N.44=A(){M 4g;4g=o.4g;u o.3G.a8(A(){u 4g.7c.9D(o.bJ(),4g)})};u 54})();D.2m=(A(){A 2m(){}2m.9Q={};2m.U=A(1q,5j){u o.9Q[1q]=5j};2m.44=A(1q,Z,X){u o.9Q[1q](Z,X)};u 2m})();2m=D.2m;D.2g=(A(){A 2g(){}2g.52=A(6U,6S,6R,6Q){u O.7L(O.1T(6R-6U,2)+O.1T(6Q-6S,2))};2g.ce=A(1Q,1d,6M){M 4t;B(6M==L){6M=2t}4t=1Q+(O.fL()*(1d-1Q));B(6M){u 4t.fH(6M)}S{u O.62(4t)}};2g.6L=A(C){u(0.9O*C.r)+(0.fF*C.g)+(0.fE*C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t*t-2.0*t*t+t;77=-2.0*t*t*t+3.0*t*t;78=t*t*t-t*t;7i=4m(4y(5A,[8C,8C]),4y(9F,[76,76]),4y(5B,[77,77]),4y(9E,[78,78]));3r[O.62(7i[0])]=O.62(5r(7i[1],58,59));9G+=1}}28=2z[2z.P-1][0];3r=D.2g.9H(3r,28);u 3r};2g.9H=A(5c,28){M i,j,5F,3r,7s,H,1e;B(bc.ft(5c).P<28+1){3r={};W(i=H=0;0<=28?H<=28:H>=28;i=0<=28?++H:--H){B(5c[i]!=L){3r[i]=5c[i]}S{5F=[i-1,3r[i-1]];W(j=1e=i;i<=28?1e<=28:1e>=28;j=i<=28?++1e:--1e){B(5c[j]!=L){7s=[j,5c[j]];4Z}}3r[i]=5F[1]+((7s[1]-5F[1])/(7s[0]-5F[0]))*(i-5F[0])}}u 3r}u 5c};u 2g})();2g=D.2g;D.1X=(A(){A 1X(){}1X.7u=A(3H){M b,g,r;B(3H.fr(0)==="#"){3H=3H.5d(1)}r=48(3H.5d(0,2),16);g=48(3H.5d(2,2),16);b=48(3H.5d(4,2),16);u{r:r,g:g,b:b}};1X.fq=A(r,g,b){M d,h,l,1d,1Q,s;B(1r r==="46"){g=r.g;b=r.b;r=r.r}r/=E;g/=E;b/=E;1d=O.1d(r,g,b);1Q=O.1Q(r,g,b);l=(1d+1Q)/2;B(1d===1Q){h=s=0}S{d=1d-1Q;s=l>0.5?d/(2-1d-1Q):d/(1d+1Q);h=(A(){61(1d){2c r:u(g-b)/d+(g1){t-=1}B(t<1/6){u p+(q-p)*6*t}B(t<1/2){u q}B(t<2/3){u p+(q-p)*(2/3-t)*6}u p};1X.aL=A(r,g,b){M d,h,1d,1Q,s,v;r/=E;g/=E;b/=E;1d=O.1d(r,g,b);1Q=O.1Q(r,g,b);v=1d;d=1d-1Q;s=1d===0?0:d/1d;B(1d===1Q){h=0}S{h=(A(){61(1d){2c r:u(g-b)/d+(g0.9A){r=O.1T((r+0.3o)/1.3o,2.4)}S{r/=12.92}B(g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u 1X})();1X=D.1X;D.2M=(A(){A 2M(){}2M.5n={};2M.cU=["cV","cW","aX","d0","d1","6g"];2M.4Y=A(38,1s,26){M 6m,H,1o,K,1n;B(26==L){26=L}B(o.5n[1s]&&o.5n[1s].P){K=o.5n[1s];1n=[];W(H=0,1o=K.P;H<1o;H++){6m=K[H];B(6m.38===L||38.2P===6m.38.2P){1n.2p(6m.fn.1w(38,26))}S{1n.2p(da 0)}}u 1n}};2M.eX=A(38,1s,fn){M 9e,9d;B(1r 38==="3i"){9d=38;9e=1s;38=L;1s=9d;fn=9e}B(6s.1w(o.cU,1s)<0){u 2t}B(!o.5n[1s]){o.5n[1s]=[]}o.5n[1s].2p({38:38,fn:fn});u 31};u 2M})();2M=D.2M;D.R=(A(){A R(){}R.3c={a2:1,a1:2,9Z:3,9Y:4,9c:5,2u:6};R.U=A(1q,ah){u D.N[1q]=ah};u R})();R=D.R;D.2W=(A(){A 2W(){}2W.aq=/(?:(?:6y|ch):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;2W.bb=A(1M){B(1M==L){u 2t}B(o.as(1M)){u 2t}u o.7j(1M.1F)};2W.as=A(1M){M K;u(1M.9t!=L)&&((K=1M.9t.6P())===\'cm\'||K===\'ax-eW\')};2W.7j=A(6u){M 7l;7l=6u.7W(o.aq);B(7l){u 7l[1]!==2o.eV}S{u 2t}};2W.aK=A(1F){B(o.7j(1F)){B(!D.8t.P){1Y.99("eS 3C eR a aV 1f eN a eM aY. cQ: "+1F)}S{B(D.7j(D.8t)){1Y.99("eL ax a aV aY W eK eI.");u}u o.57(1F)}}};2W.57=A(1F){u""+D.8t+"?"+D.ck+"="+(eG(1F))};2W.eD=A(5k){M 7w;7w={eC:\'eB\',eA:\'ez\',ey:\'ex\',ew:\'ev\'};5k=5k.6P();B(7w[5k]!=L){5k=7w[5k]}u"eu/es."+5k};u 2W})();D.N.bB=A(){B(1r 2h!=="43"&&2h!==L){u o.bC.4u(o,1k)}S{u o.bD.4u(o,1k)}};D.N.bD=A(1s){M 1f;B(1s==L){1s="bG"}1s=1s.6P();1f=o.94(1s).er("1f/"+1s,"1f/eq-ep");u 2o.eo.en=1f};D.N.bC=A(5R,7J,1P){M e,91;B(7J==L){7J=31}B(1P==L){1P=L}9S{91=fs.em(5R);B(91.ek()&&!7J){u 2t}}9R(5C){e=5C;1Y.2r("ej eh 5R "+5R)}u fs.eg(5R,o.I.ef(),A(6G){1Y.2r("ee ed 3C "+5R);B(1P){u 1P.1w(o,6G)}})};D.N.bJ=A(1s){M 1M;1M=1x 3O();1M.1F=o.94(1s);1M.F=o.1c.F;1M.J=o.1c.J;B(4o.4l){1M.F/=4o.4l;1M.J/=4o.4l}u 1M};D.N.94=A(1s){B(1s==L){1s="bG"}1s=1s.6P();u o.I.ec("1f/"+1s)};2W=D.2W;D.3b=(A(){A 3b(c){o.c=c;o.1B=o.c;o.1E={8Y:\'8X\',2q:1.0};o.ea=1v.8Z.47();o.I=1r 2h!=="43"&&2h!==L?1x 3S():2o.3M(\'I\');o.I.F=o.c.1c.F;o.I.J=o.c.1c.J;o.1i=o.I.3f(\'2d\');o.1i.e9(o.I.F,o.I.J);o.2A=o.1i.49(0,0,o.I.F,o.I.J);o.T=o.2A.26}3b.N.32=A(cb){u o.c.32.1w(o.c,cb)};3b.N.3p=A(cg){o.1E.8Y=cg;u o};3b.N.2q=A(2q){o.1E.2q=2q/1j;u o};3b.N.4p=A(){M i,2Y,H,K;2Y=o.c.T;W(i=H=0,K=o.c.T.P;Ho.c.T.P||3N<0){u 1x 29(0,0,0,E,o.c)}u o.8O(3N)};29.N.e4=A(8c,8d,C){M cP;B(o.c==L){2U"6b a 67 1i";}cP=o.V+(o.c.1c.F*4*(8d*-1))+(4*8c);B(3N>o.c.T.P||3N<0){u}o.c.T[3N]=C.r;o.c.T[3N+1]=C.g;o.c.T[3N+2]=C.b;o.c.T[3N+3]=C.a;u 31};29.N.e3=A(x,y){M V;B(o.c==L){2U"6b a 67 1i";}V=o.8U(x,y,o.F);u o.8O(V)};29.N.e2=A(x,y,C){M V;B(o.c==L){2U"6b a 67 1i";}V=o.8U(x,y,o.F);o.c.T[V]=C.r;o.c.T[V+1]=C.g;o.c.T[V+2]=C.b;u o.c.T[V+3]=C.a};29.N.65=A(){u o.e1()};29.N.e0=A(8f){M 3H;B(8f==L){8f=2t}3H=\'#\'+o.r.65(16)+o.g.65(16)+o.b.65(16);B(8f){u 3H+o.a.65(16)}S{u 3H}};u 29})();29=D.29;D.2u=(A(){A 2u(){}2u.8N={};2u.U=A(1q,4d){u o.8N[1q]=4d};2u.44=A(1i,1q,1l){u o.8N[1q].4u(1i,1l)};u 2u})();2u=D.2u;D.1R=(A(){1R.4U=D.2N?6x(\'dZ\').dY().P:4;A 1R(c){o.c=c;o.4n=9x(o.4n,o);o.6I=[];o.53=L}1R.N.4m=A(8M){B(8M==L){u}u o.6I.2p(8M)};1R.N.4n=A(){M 2i;B(o.6I.P===0){2M.4Y(o,"d0");B(o.8L!=L){o.8L.1w(o.c)}u o}o.2a=o.6I.d4();61(o.2a.1s){2c R.3c.9Z:2i=o.c.8P.d4();o.c.bm(2i);u o.4n();2c R.3c.9Y:o.c.bO();o.c.bx();u o.4n();2c R.3c.9c:u o.d5(o.2a.2i,o.2a.1F);2c R.3c.2u:u o.d6();dW:u o.d8()}};1R.N.44=A(1P){o.8L=1P;o.53=1v.6F(o.c.T.P);u o.4n()};1R.N.8K=A(fn){M 6T,8J,2R,1N,f,i,8I,n,1J,H,K,1n,1H=o;o.8p=0;n=o.c.T.P;8J=O.2V((n/4)/1R.4U);6T=8J*4;8I=6T+((n/4)%1R.4U)*4;1n=[];W(i=H=0,K=1R.4U;0<=K?HK;i=0<=K?++H:--H){1J=i*6T;1N=1J+(i===1R.4U-1?8I:6T);B(D.2N){f=6B(A(){u fn.1w(1H,i,1J,1N)});2R=f.dU();1n.2p(o.6g(2R))}S{1n.2p(8q((A(i,1J,1N){u A(){u fn.1w(1H,i,1J,1N)}})(i,1J,1N),0))}}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;i=3P<=E?++1e:--1e){2b[i]=1N[1]}}u o.2n("2e",A(C){M 1G,4q;W(i=1G=0,4q=42.P;0<=4q?1G<4q:1G>4q;i=0<=4q?++1G:--1G){C[42[i]]=2b[C[42[i]]]}u C})});R.U("37",A(Q){M 4F,4E,p;p=O.4x(Q)/1j;4F=[0,E*p];4E=[E-(E*p),E];B(Q<0){4F=4F.bq();4E=4E.bq()}u o.2e(\'3j\',[0,0],4F,4E,[E,E])});D.2u.U("8Q",A(F,J,x,y){M I,1V;B(x==L){x=0}B(y==L){y=0}B(1r 2h!=="43"&&2h!==L){I=1x 3S(F,J)}S{I=2o.3M(\'I\');1v.5H(o.I,I);I.F=F;I.J=J}1V=I.3f(\'2d\');1V.5U(o.I,x,y,F,J,0,0,F,J);o.6z={x:x,y:y};o.bH=31;u o.73(I)});D.2u.U("88",A(2y){M I,1V;B(2y==L){2y=L}B(2y===L||((2y.F==L)&&(2y.J==L))){1Y.9C("6i d3 ds 1c aQ W 88");u}B(2y.F==L){2y.F=o.I.F*2y.J/o.I.J}S B(2y.J==L){2y.J=o.I.J*2y.F/o.I.F}B(1r 2h!=="43"&&2h!==L){I=1x 3S(2y.F,2y.J)}S{I=2o.3M(\'I\');1v.5H(o.I,I);I.F=2y.F;I.J=2y.J}1V=I.3f(\'2d\');1V.5U(o.I,0,0,o.I.F,o.I.J,0,0,2y.F,2y.J);o.7R=31;u o.73(I)});D.R.U("8Q",A(){u o.5a("8Q",5T.N.5f.1w(1k,0))});D.R.U("88",A(){u o.5a("88",5T.N.5f.1w(1k,0))});D.R.U("dr",A(){u o.3J("dq 85",[1,1,1,1,1,1,1,1,1])});D.R.U("dp",A(){u o.3J("do dn 85",[0,0,1,0,0,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,0])});D.R.U("dm",A(){u o.3J("dl 85",[1,4,6,4,1,4,16,24,16,4,6,24,36,24,6,4,16,24,16,4,1,4,6,4,1])});D.R.U("dk",A(3E){M 2H;B(3E===0||3E===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d,ad,5u,9O,8B,86,3X,a9,5Y,d7,5t,cZ,4D,cY,4C,3q,89,cX,3Q,cT,81,4V];63=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];9o=A(F,J,5J,5M,2G,P,c2){M 3V,1i,2s,6U,6R,6S,6Q;3V=1r 2h!=="43"&&2h!==L?1x 3S():2o.3M(\'I\');3V.F=F;3V.J=J;6U=5J+O.c0(2G)*P*0.5;6S=5M+O.bZ(2G)*P*0.5;6R=5J-O.c0(2G)*P*0.5;6Q=5M-O.bZ(2G)*P*0.5;1i=3V.3f("2d");2s=1i.el(6U,6S,6R,6Q);B(!c2){2s.5e(0,"7H");2s.5e(1,"93")}S{2s.5e(0,"7H");2s.5e(0.5,"93");2s.5e(1,"7H")}1i.bN=2s;1i.bL(0,0,F,J);u 1i.49(0,0,F,J)};9p=A(F,J,5J,5M,6v,6t){M 3V,1i,2s;3V=1r 2h!=="43"&&2h!==L?1x 3S():2o.3M(\'I\');3V.F=F;3V.J=J;1i=3V.3f("2d");2s=1i.et(5J,5M,6v,5J,5M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.bs*C.g)+(0.bv*C.b);B(6L35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(A(){M $,4A,2o,2k,D,54,3L,28,2L,73,Q,2J,3I,33,29,3K,2e,2u,1K,8d,2Z,1x,fs,6H,7h,57,a1,76=[].gy||A(c9){W(M i=0,l=o.P;iE){u E}u 2l};1x.69=A(4M,3N,G){M 6q,I,1n,L,46,1o;B(G==K){G={}}L=4M.fX;1o=[];W(I=0,1n=L.P;I<1n;I++){6q=L[I];B((G.9S!=K)&&(46=6q.9M,76.1z(G.9S,46)>=0)){6h}1o.2g(3N.ae(6q.9M,6q.fS))}u 1o};1x.6r=A(P){B(P==K){P=0}B(D.2V||(4e.bd!=K)){u 1y bd(P)}u 1y 5Z(P)};u 1x})();B(1p 2a!=="3P"&&2a!==K){8d=2a;3L=6s(\'H\');3I=3L.3I;73=6s(\'fR\');fs=6s(\'fs\');6H=6s(\'6H\')}S{8d=4e;3I=4e.3I}D=(A(c6){cY(D,c6);D.9H={cl:"4.1.2",cF:"7/27/fM"};D.ac=2r;D.6t=31;D.9E="aT";D.8h="";D.b1="fK";D.2V=1p 2a!=="3P"&&2a!==K;D.be=!D.2V;D.5q=A(){u"fJ "+D.9H.cl+", fI "+D.9H.cF};D.9z=A(H){B(D.2V){u 31}B(1p H==="3a"){H=$(H)}B(!((H!=K)&&(H.5L!=K))){u K}u H.5L(\'1Z-3E-2U\')};A D(){o.5Q=a9(o.5Q,o);M 1k,1R,2U,1u=o;B(1l.P===0){2O"5U 1l";}B(o d2 D){o.5X=o.5X.9y(o);o.6w=o.6w.9y(o);1k=1l[0];B(!D.2V){2U=4d(D.9z(1k[0]),10);1R=1p 1k[1]==="A"?1k[1]:1p 1k[2]==="A"?1k[2]:A(){};B(!aH(2U)&&2Z.aQ(2U)){u 2Z.3U(2U,1R)}}o.2U=1x.9I.4l();o.8g=o.5m=K;o.6x={x:0,y:0};o.bM=2r;o.8f=2r;o.6y=[];o.9s=[];o.9r=[];o.6A=K;o.cd=2r;o.fC=1y 4A(o);o.4h=1y 1K(o);o.cs(A(){1u.cy(1k);u 1u.cz()});u o}S{u 1y D(1l)}}D.N.cs=A(cb){M 9p,1u=o;B(D.2V){u 8c(A(){u cb.1z(1u)},0)}S{B(2j.9n==="8b"){29.2t("d3 d4");u 8c(A(){u cb.1z(1u)},0)}S{9p=A(){B(2j.9n==="8b"){29.2t("d3 d4");u cb.1z(1u)}};u 2j.d5("fz",9p,2r)}}};D.N.cy=A(1k){M 2s,2l,L,1o;B(1k.P===0){2O"5U 1l dd";}o.3b=K;o.8a=K;o.89=K;o.1R=A(){};o.ax(1k[0]);B(1k.P===1){u}64(1p 1k[1]){2c"3a":o.89=1k[1];5n;2c"A":o.1R=1k[1]}B(1k.P===2){u}o.1R=1k[2];B(1k.P===4){L=1k[4];1o=[];W(2s 5h L){B(!71.1z(L,2s))6h;2l=L[2s];1o.2g(o.1Q[2s]=2l)}u 1o}};D.N.ax=A(2A){B(D.2V){o.3b=2A;o.8a=\'aS\';u}B(1p 2A==="3G"){o.3b=2A}S{o.3b=$(2A)}B(o.3b==K){2O"fy fx fw 1a b2 H W fv.";}u o.8a=o.3b.9M.6B()};D.N.cz=A(){64(o.8a){2c"aS":u o.bf();2c"1A":u o.bJ();2c"H":u o.bK()}};D.N.bf=A(){29.2t("ft W 2V");B(1p o.3b==="3a"&&o.3b.83(/^bQ?:\\/\\//)){u o.bU(o.3b,o.5Q)}S B(1p o.3b==="3a"){u fs.fq(o.3b,o.5Q)}S{u o.5Q(K,o.3b)}};D.N.bU=A(6D,1R){M 98;29.2t("fp 1a 4M "+6D);98=6H.4l(6D,A(4u){M 82;82=\'\';4u.fo(\'cn\');4u.97(\'1Z\',A(ct){u 82+=ct});u 4u.97(\'1N\',A(){u 1R(K,1y fm(82,\'cn\'))})});u 98.97(\'96\',1R)};D.N.5Q=A(6E,1Z){B(6E){2O 6E;}o.1a=1y 3I();o.1a.1s=1Z;29.2t("3I cK. cN = "+(o.5e())+", cP = "+(o.5d()));o.H=1y 3L(o.5e(),o.5d());u o.5X()};D.N.bJ=A(){o.1a=o.3b;o.H=2j.3A(\'H\');o.1h=o.H.3e(\'2d\');1x.69(o.1a,o.H,{9S:[\'1s\']});B(o.1a.81!=K){o.1a.81.8Y(o.H,o.1a)}o.8X();u o.8W()};D.N.bK=A(){o.H=o.3b;o.1h=o.H.3e(\'2d\');B(o.89!=K){o.1a=2j.3A(\'1A\');o.1a.1s=o.89;o.8X();u o.8W()}S{u o.5X()}};D.N.8X=A(){B(o.8U()){29.2t(o.1a.1s,"->",o.7W());o.ag=31;o.1a.1s=o.7W()}B(2J.aw(o.1a)){o.1a.1s=2J.3O(o.1a.1s);u 29.2t("fl 1a fk, fj aO = "+o.1a.1s)}};D.N.8W=A(){B(o.aP()){u o.6w()}S{u o.1a.8R=o.6w}};D.N.aP=A(){B(!o.1a.8b){u 2r}B((o.1a.8Q!=K)&&o.1a.8Q===0){u 2r}u 31};D.N.5e=A(){u o.1a.F||o.1a.8Q};D.N.5d=A(){u o.1a.J||o.1a.fi};D.N.6w=A(){29.2t("3I cK. cN = "+(o.5e())+", cP = "+(o.5d()));B(o.ag){o.H.F=o.5e()/o.7V();o.H.J=o.5d()/o.7V()}S{o.H.F=o.5e();o.H.J=o.5d()}u o.5X()};D.N.5X=A(){M i,1w,I,1n,L;B(o.1h==K){o.1h=o.H.3e(\'2d\')}o.5a=o.6F=o.F=o.H.F;o.5H=o.6G=o.J=o.H.J;o.bk();B(!o.bu()){o.bG()}B(o.1a!=K){o.1h.59(o.1a,0,0,o.5e(),o.5d(),0,0,o.6F,o.6G)}o.2z=o.1h.42(0,0,o.H.F,o.H.J);o.T=o.2z.1Z;B(D.6t){o.8g=1x.6r(o.T.P);o.5m=1x.6r(o.T.P);L=o.T;W(i=I=0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N+=R[i]}}o.4h.4f({1t:Q.34.9t,1q:1q,R:R,2N:2N,3i:3i});u o};D.N.5f=A(4s,1k){o.4h.4f({1t:Q.34.2u,4s:4s,1k:1k});u o};D.N.2Y=A(1R){M 1T;1T=1y 33(o);o.9r.2g(1T);o.4h.4f({1t:Q.34.9q});1R.1z(1T);o.4h.4f({1t:Q.34.9o});u o};D.N.bl=A(1T){u o.bn(1T)};D.N.bn=A(1T){o.9s.2g(o.6A);o.6y.2g(o.T);o.6A=1T;u o.T=1T.T};D.N.bo=A(){o.T=o.6y.6N();u o.6A=o.9s.6N()};D.N.bp=A(){u o.6A.bq()};u D})(3K);8d.D=D;D.4A=(A(){A 4A(c){o.c=c}4A.N.f7=A(){M i,3B,6P,I,1e,1H,L;3B={r:{},g:{},b:{}};W(i=I=0;I<=E;i=++I){3B.r[i]=0;3B.g[i]=0;3B.b[i]=0}W(i=1e=0,L=o.c.T.P;1e0)){u}1o=[];W(I=0,1n=6Q.P;I<1n;I++){1A=6Q[I];1o.2g(bV=1y 54(1A,A(){o.bX();u o.3U()}))}u 1o};B(D.be){(A(){B(2j.9n==="8b"){u D.9h()}S{u 2j.d5("f5",D.9h,2r)}})()}54=(A(){M 7s;7s="(\\\\w+)\\\\((.*?)\\\\)";A 54(4q,c7){o.c8=4q.5L(\'1Z-3E\');o.3E=D(4q,c7.9y(o))}54.N.bX=A(){M 1k,e,1E,5c,91,8Z,m,r,6R,I,1n,L,1o;o.4q=o.3E.H;r=1y cf(7s,\'g\');6R=o.c8.83(r);B(!(6R.P>0)){u}r=1y cf(7s);1o=[];W(I=0,1n=6R.P;I<1n;I++){91=6R[I];L=91.83(r),m=L[0],1E=L[1],1k=L[2];8Z=1y f4("u A() { o."+1E+"("+1k+"); };");8S{5c=8Z();1o.2g(5c.1z(o.3E))}8M(5J){e=5J;1o.2g(29.2t(e))}}u 1o};54.N.3U=A(){M 4q;4q=o.4q;u o.3E.cG(A(){u 4q.81.8Y(o.cw(),4q)})};u 54})();D.2o=(A(){A 2o(){}2o.8J={};2o.V=A(1q,5c){u o.8J[1q]=5c};2o.3U=A(1q,Z,X){u o.8J[1q](Z,X)};u 2o})();2o=D.2o;D.2k=(A(){A 2k(){}2k.5b=A(6W,6X,6Y,6Z){u O.7i(O.1U(6Y-6W,2)+O.1U(6Z-6X,2))};2k.cW=A(1P,1f,72){M 4m;B(72==K){72=2r}4m=1P+(O.f3()*(1f-1P));B(72){u 4m.f2(72)}S{u O.63(4m)}};2k.74=A(C){u(0.8N*C.r)+(0.f1*C.g)+(0.f0*C.b)};2k.2i=A(1J,4z,4K,1N,53,4X){M 2i,6g,2y,2f,i,j,6j,1L,3R,t,I,1e,L;B(53==K){53=0}B(4X==K){4X=E}B(1J[0]d2 5Z){2y=1J;53=4z;4X=4K}S{2y=[1J,4z,4K,1N]}B(2y.P<2){2O"5U 7c 9X 1l 3N 2i";}2i={};6j=A(a,b,t){u a*(1-t)+b*t};6g=A(a,1P,1f){u O.1P(O.1f(a,1P),1f)};W(i=I=0;I1){1L=[];W(j=1e=0,L=3R.P-2;0<=L?1e<=L:1e>=L;j=0<=L?++1e:--1e){1L.2g([6j(3R[j][0],3R[j+1][0],t),6j(3R[j][1],3R[j+1][1],t)])}3R=1L}2i[O.63(3R[0][0])]=O.63(6g(3R[0][1],53,4X))}2f=2y[2y.P-1][0];2i=D.2k.8V(2i,2f);B(2i[2f]==K){2i[2f]=2i[2f-1]}u 2i};2k.de=A(2y,53,4X){M 4f,6g,9Q,2f,7a,79,7Q,7M,i,j,6j,9c,9W,4H,p,5F,5G,4I,7d,7e,3z,7f,t,I,1e,L,1u=o;B(2y.P<2){2O"5U 7c 9X 1l 3N de";}3z={};6j=A(a,b,t){u a*(1-t)+b*t};4f=A(a,b,c,d){u[a[0]+b[0]+c[0]+d[0],a[1]+b[1]+c[1]+d[1]]};4H=A(a,b){u[a[0]*b[0],a[1]*b[1]]};7f=A(a,b){u[a[0]-b[0],a[1]-b[1]]};6g=A(a,1P,1f){u O.1P(O.1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:b}};28.eF=A(l,a,b){M x,y,z;B(1p l==="3G"){a=l.a;b=l.b;l=l.l}y=(l+16)/aE;x=y+(a/aG);z=y-(b/6c);B(x>0.9d){x=x*x*x}S{x=0.9a*(x-0.6d)}B(y>0.9d){y=y*y*y}S{y=0.9a*(y-0.6d)}B(z>0.9d){z=z*z*z}S{z=0.9a*(z-0.6d)}u{x:x*95.at,y:y*1j.0,z:z*9C.av}};28.eE=A(r,g,b){M 93;B(1p r==="3G"){g=r.g;b=r.b;r=r.r}93=o.cu(r,g,b);u o.ad(93)};28.eD=A(l,a,b){};u 28})();28=D.28;D.2L=(A(){A 2L(){}2L.58={};2L.aW=["aX","aY","cL","aZ","b0","5W"];2L.4Z=A(3d,1t,1Z){M 6I,I,1n,L,1o;B(1Z==K){1Z=K}B(o.58[1t]&&o.58[1t].P){L=o.58[1t];1o=[];W(I=0,1n=L.P;I<1n;I++){6I=L[I];B(6I.3d===K||3d.2U===6I.3d.2U){1o.2g(6I.fn.1z(3d,1Z))}S{1o.2g(b4 0)}}u 1o}};2L.eC=A(3d,1t,fn){M 8L,a5;B(1p 3d==="3a"){a5=3d;8L=1t;3d=K;1t=a5;fn=8L}B(76.1z(o.aW,1t)<0){u 2r}B(!o.58[1t]){o.58[1t]=[]}o.58[1t].2g({3d:3d,fn:fn});u 31};u 2L})();2L=D.2L;D.Q=(A(){A Q(){}Q.34={9w:1,9t:2,9q:3,9o:4,a3:5,9Y:7,2u:6};Q.V=A(1q,bg){u D.N[1q]=bg};u Q})();Q=D.Q;D.2J=(A(){A 2J(){}2J.bh=/(?:(?:6H|bQ):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;2J.aw=A(1A){B(1A==K){u 2r}B(o.bi(1A)){u 2r}u o.7y(1A.1s)};2J.bi=A(1A){M L;u(1A.9E!=K)&&((L=1A.9E.6B())===\'aT\'||L===\'bj-eB\')};2J.7y=A(6D){M 7v;7v=6D.83(o.bh);B(7v){u 7v[1]!==2j.eA}S{u 2r}};2J.9g=A(1s){B(o.7y(1s)){B(!D.8h.P){29.8T("ez 3N ex a bs 1a ew a ev bw. aO: "+1s)}S{B(D.7y(D.8h)){29.8T("eu bj a bs bw W et es.");u}u o.3O(1s)}}};2J.3O=A(1s){u""+D.8h+"?"+D.b1+"="+(er(1s))};2J.ep=A(5l){M 7m;7m={eo:\'en\',em:\'el\',ek:\'ej\',ei:\'eh\'};5l=5l.6B();B(7m[5l]!=K){5l=7m[5l]}u"eg/ef."+5l};u 2J})();D.N.bZ=A(){B(1p 2a!=="3P"&&2a!==K){u o.c1.4b(o,1l)}S{u o.c2.4b(o,1l)}};D.N.c2=A(1t){M 1a;B(1t==K){1t="c3"}1t=1t.6B();1a=o.9G(1t).ee("1a/"+1t,"1a/ed-ec");u 2j.eb.ea=1a};D.N.c1=A(5t,7b,1R){M e,9j;B(7b==K){7b=31}B(1R==K){1R=K}8S{9j=fs.e9(5t);B(9j.e8()&&!7b){u 2r}}8M(5J){e=5J;29.2t("e7 e6 5t "+5t)}u fs.e5(5t,o.H.e4(),A(6E){29.2t("e3 e2 3N "+5t);B(1R){u 1R.1z(o,6E)}})};D.N.cw=A(1t){M 1A;1A=1y 3I();1A.1s=o.9G(1t);1A.F=o.1c.F;1A.J=o.1c.J;B(4e.4j){1A.F/=4e.4j;1A.J/=4e.4j}u 1A};D.N.9G=A(1t){B(1t==K){1t="c3"}1t=1t.6B();u o.H.e1("1a/"+1t)};2J=D.2J;D.33=(A(){A 33(c){o.c=c;o.1E=o.c;o.1Q={9T:\'9V\',1Y:1.0};o.e0=1x.9I.4l();o.H=1p 2a!=="3P"&&2a!==K?1y 3L():2j.3A(\'H\');o.H.F=o.c.1c.F;o.H.J=o.c.1c.J;o.1h=o.H.3e(\'2d\');o.1h.dZ(o.H.F,o.H.J);o.2z=o.1h.42(0,0,o.H.F,o.H.J);o.T=o.2z.1Z}33.N.2Y=A(cb){u o.c.2Y.1z(o.c,cb)};33.N.3n=A(cr){o.1Q.9T=cr;u o};33.N.1Y=A(1Y){o.1Q.1Y=1Y/1j;u o};33.N.4r=A(){M i,32,I,L;32=o.c.T;W(i=I=0,L=o.c.T.P;Io.c.T.P||3M<0){u 1y 2e(0,0,0,E,o.c)}u o.9R(3M)};2e.N.dV=A(7k,7l,C){M cR;B(o.c==K){2O"5T a 5S 1h";}cR=o.U+(o.c.1c.F*4*(7l*-1))+(4*7k);B(3M>o.c.T.P||3M<0){u}o.c.T[3M]=C.r;o.c.T[3M+1]=C.g;o.c.T[3M+2]=C.b;o.c.T[3M+3]=C.a;u 31};2e.N.dU=A(x,y){M U;B(o.c==K){2O"5T a 5S 1h";}U=o.9D(x,y,o.F);u o.9R(U)};2e.N.dT=A(x,y,C){M U;B(o.c==K){2O"5T a 5S 1h";}U=o.9D(x,y,o.F);o.c.T[U]=C.r;o.c.T[U+1]=C.g;o.c.T[U+2]=C.b;u o.c.T[U+3]=C.a};2e.N.5q=A(){u o.dS()};2e.N.dR=A(7n){M 3Q;B(7n==K){7n=2r}3Q=\'#\'+o.r.5q(16)+o.g.5q(16)+o.b.5q(16);B(7n){u 3Q+o.a.5q(16)}S{u 3Q}};u 2e})();2e=D.2e;D.2u=(A(){A 2u(){}2u.a0={};2u.V=A(1q,4s){u o.a0[1q]=4s};2u.3U=A(1h,1q,1k){u o.a0[1q].4b(1h,1k)};u 2u})();2u=D.2u;D.1K=(A(){1K.4D=D.2V?6s(\'dQ\').dP().P:4;A 1K(c){o.c=c;o.3W=a9(o.3W,o);o.66=[];o.56=K}1K.N.4f=A(a7){B(a7==K){u}u o.66.2g(a7)};1K.N.3W=A(){M 1T;B(o.66.P===0){2L.4Z(o,"aZ");B(o.a8!=K){o.a8.1z(o.c)}u o}o.2b=o.66.d6();64(o.2b.1t){2c Q.34.9q:1T=o.c.9r.d6();o.c.bl(1T);u o.3W();2c Q.34.9o:o.c.bp();o.c.bo();u o.3W();2c Q.34.a3:u o.d7(o.2b.1T,o.2b.1s);2c Q.34.9Y:u o.d8(o.2b.1T,o.2b.1s);2c Q.34.2u:u o.d9();dO:u o.db()}};1K.N.3U=A(1R){o.a8=1R;o.56=1x.6r(o.c.T.P);u o.3W()};1K.N.aa=A(fn){M 6V,8H,2P,1N,f,i,8K,n,1J,I,L,1o,1u=o;o.7r=0;n=o.c.T.P;8H=O.2X((n/4)/1K.4D);6V=8H*4;8K=6V+((n/4)%1K.4D)*4;1o=[];W(i=I=0,L=1K.4D;0<=L?IL;i=0<=L?++I:--I){1J=i*6V;1N=1J+(i===1K.4D-1?8K:6V);B(D.2V){f=73(A(){u fn.1z(1u,i,1J,1N)});2P=f.dN();1o.2g(o.5W(2P))}S{1o.2g(8c((A(i,1J,1N){u A(){u fn.1z(1u,i,1J,1N)}})(i,1J,1N),0))}}u 1o};1K.N.db=A(){2L.4Z(o.c,"aX",o.2b);B(o.2b.1t===Q.34.9w){u o.aa(o.ai)}S{u o.aa(o.aj)}};1K.N.d9=A(){29.2t("dM 4s "+o.2b.4s);2u.3U(o.c,o.2b.4s,o.2b.1k);29.2t("2u "+o.2b.4s+" 8O!");u o.3W()};1K.N.ai=A(2P,1J,1N){M i,1w,I;29.2t("al #"+2P+" - Q: "+o.2b.1q+", dL: "+1J+", dK: "+1N);2L.4Z(o.c,"b0",{ao:2P,ap:1K.4D,dJ:1J,dI:1N});1w=1y 2e();1w.9N(o.c);W(i=I=1J;I<1N;i=I+=4){1w.U=i;1w.r=o.c.T[i];1w.g=o.c.T[i+1];1w.b=o.c.T[i+2];1w.a=o.c.T[i+3];o.2b.7x(1w);o.c.T[i]=1x.3J(1w.r);o.c.T[i+1]=1x.3J(1w.g);o.c.T[i+2]=1x.3J(1w.b);o.c.T[i+3]=1x.3J(1w.a)}B(D.2V){u 73["as"](2P)}S{u o.5W(2P)}};1K.N.aj=A(2P,1J,1N){M R,6S,3i,2T,5B,2N,i,j,k,2I,n,1q,p,1w,4u,I,1e,1H;1q=o.2b.1q;3i=o.2b.3i;2N=o.2b.2N;n=o.c.T.P;R=o.2b.R;6S=O.7i(R.P);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F;4F=2k.74(C);C.r=4F;C.g=4F;C.b=4F;u C})});Q.V("2w",A(R){R=O.1U((R+1j)/1j,2);u o.2p("2w",A(C){C.r/=E;C.r-=0.5;C.r*=R;C.r+=0.5;C.r*=E;C.g/=E;C.g-=0.5;C.g*=R;C.g+=0.5;C.g*=E;C.b/=E;C.b-=0.5;C.b*=R;C.b+=0.5;C.b*=E;u C})});Q.V("9u",A(R){u o.2p("9u",A(C){M b,g,h,5g,r,L;5g=28.cm(C.r,C.g,C.b);h=5g.h*1j;h+=O.4G(R);h=h%1j;h/=1j;5g.h=h;L=28.cq(5g.h,5g.s,5g.v),r=L.r,g=L.g,b=L.b;C.r=r;C.g=g;C.b=b;u C})});Q.V("4g",A(){M 5N,3f;B(1l.P===2){3f=28.7p(1l[0]);5N=1l[1]}S B(1l.P===4){3f={r:1l[0],g:1l[1],b:1l[2]};5N=1l[3]}u o.2p("4g",A(C){C.r-=(C.r-3f.r)*(5N/1j);C.g-=(C.g-3f.g)*(5N/1j);C.b-=(C.b-3f.b)*(5N/1j);u C})});Q.V("b3",A(){u o.2p("b3",A(C){C.r=E-C.r;C.g=E-C.g;C.b=E-C.b;u C})});Q.V("4a",A(R){B(R==K){R=1j}R/=1j;u o.2p("4a",A(C){C.r=O.1P(E,(C.r*(1-(0.dy*R)))+(C.g*(0.dx*R))+(C.b*(0.dw*R)));C.g=O.1P(E,(C.r*(0.dv*R))+(C.g*(1-(0.du*R)))+(C.b*(0.dt*R)));C.b=O.1P(E,(C.r*(0.ds*R))+(C.g*(0.dr*R))+(C.b*(1-(0.dq*R))));u C})});Q.V("2x",A(R){u o.2p("2x",A(C){C.r=O.1U(C.r/E,R)*E;C.g=O.1U(C.g/E,R)*E;C.b=O.1U(C.b/E,R)*E;u C})});Q.V("7D",A(R){R=O.4G(R)*2.55;u o.2p("7D",A(C){M 4m;4m=2k.cW(R*-1,R);C.r+=4m;C.g+=4m;C.b+=4m;u C})});Q.V("7E",A(R){R=O.4G(R)*2.55;u o.2p("7E",A(C){B(C.r>E-R){C.r=E}S B(C.rE-R){C.g=E}S B(C.gE-R){C.b=E}S B(C.b0){C.r+=(E-C.r)*1Q.3h}S{C.r-=C.r*O.4G(1Q.3h)}}B(1Q.4L!=K){B(1Q.4L>0){C.g+=(E-C.g)*1Q.4L}S{C.g-=C.g*O.4G(1Q.4L)}}B(1Q.44!=K){B(1Q.44>0){C.b+=(E-C.b)*1Q.44}S{C.b-=C.b*O.4G(1Q.44)}}u C})});Q.V("2h",A(){M 6L,2i,47,3S,1N,i,6a,1J,I,1e,L,46;47=1l[0],3S=2<=1l.P?65.1z(1l,1):[];6a=3S[3S.P-1];B(1p 6a==="A"){6L=6a;3S.6N()}S B(1p 6a==="3a"){6L=2k[6a];3S.6N()}S{6L=2k.2i}B(1p 47==="3a"){47=47.dp("")}B(47[0]==="v"){47=[\'r\',\'g\',\'b\']}B(3S.P<2){2O"5U 7c 9X 1l 3N 2h 1E";}2i=6L(3S,0,E);1J=3S[0];B(1J[0]>0){W(i=I=0,L=1J[0];0<=L?IL;i=0<=L?++I:--I){2i[i]=1J[1]}}1N=3S[3S.P-1];B(1N[0]=E;i=46<=E?++1e:--1e){2i[i]=1N[1]}}u o.2p("2h",A(C){M 1H,4p;W(i=1H=0,4p=47.P;0<=4p?1H<4p:1H>4p;i=0<=4p?++1H:--1H){C[47[i]]=2i[C[47[i]]]}u C})});Q.V("37",A(R){M 4z,4K,p;p=O.4G(R)/1j;4z=[0,E*p];4K=[E-(E*p),E];B(R<0){4z=4z.bt();4K=4K.bt()}u o.2h(\'3f\',[0,0],4z,4K,[E,E])});D.2u.V("ab",A(F,J,x,y){M H,1X;B(x==K){x=0}B(y==K){y=0}B(1p 2a!=="3P"&&2a!==K){H=1y 3L(F,J)}S{H=2j.3A(\'H\');1x.69(o.H,H);H.F=F;H.J=J}1X=H.3e(\'2d\');1X.59(o.H,x,y,F,J,0,0,F,J);o.6x={x:x,y:y};o.bM=31;u o.6K(H)});D.2u.V("7N",A(2D){M H,1X;B(2D==K){2D=K}B(2D===K||((2D.F==K)&&(2D.J==K))){29.96("5U b2 do 1c dd W 7N");u}B(2D.F==K){2D.F=o.H.F*2D.J/o.H.J}S B(2D.J==K){2D.J=o.H.J*2D.F/o.H.F}B(1p 2a!=="3P"&&2a!==K){H=1y 3L(2D.F,2D.J)}S{H=2j.3A(\'H\');1x.69(o.H,H);H.F=2D.F;H.J=2D.J}1X=H.3e(\'2d\');1X.59(o.H,0,0,o.H.F,o.H.J,0,0,2D.F,2D.J);o.8f=31;u o.6K(H)});D.Q.V("ab",A(){u o.5f("ab",5Z.N.57.1z(1l,0))});D.Q.V("7N",A(){u o.5f("7N",5Z.N.57.1z(1l,0))});D.Q.V("dn",A(){u o.3H("dm 7O",[1,1,1,1,1,1,1,1,1])});D.Q.V("dl",A(){u o.3H("dk dj 7O",[0,0,1,0,0,0,1,1,1,0,1,1,1,1,1,0,1,1,1,0,0,0,1,0,0])});D.Q.V("di",A(){u o.3H("dh 7O",[1,4,6,4,1,4,16,24,16,4,6,24,36,24,6,4,16,24,16,4,1,4,6,4,1])});D.Q.V("dg",A(3D){M 2I;B(3D===0||3D===4n){2I=[0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0]}S B((3D>0&&3D<90)||(3D>4n&&3D<7R)){2I=[0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0]}S B(3D===90||3D===7R){2I=[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0]}S{2I=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]}u o.3H("df 7O",2I)});D.Q.V("6J",A(1r){B(1r==K){1r=1j}1r/=1j;u o.3H("eU",[0,-1r,0,-1r,4*1r+1,-1r,0,-1r,0])});a1={3y:A(C,1r,G){C.r=C.r-(C.r*1r*G.3j);C.g=C.g-(C.g*1r*G.3j);C.b=C.b-(C.b*1r*G.3j);u C},2x:A(C,1r,G){C.r=O.1U(C.r/E,O.1f(10*1r*G.3j,1))*E;C.g=O.1U(C.g/E,O.1f(10*1r*G.3j,1))*E;C.b=O.1U(C.b/E,O.1f(10*1r*G.3j,1))*E;u C},4g:A(C,1r,G){C.r-=(C.r-G.3g.r)*1r;C.g-=(C.g-G.3g.g)*1r;C.b-=(C.b-G.3g.b)*1r;u C}};Q.V("1V",A(1v,3j){M 2i,3p,1N,1J;B(3j==K){3j=60}B(1p 1v==="3a"&&1v.51(-1)==="%"){B(o.1c.J>o.1c.F){1v=o.1c.F*(4d(1v.51(0,1v.P-1),10)/1j)}S{1v=o.1c.J*(4d(1v.51(0,1v.P-1),10)/1j)}}3j/=1j;3p=[o.1c.F/2,o.1c.J/2];1J=O.7i(O.1U(3p[0],2)+O.1U(3p[1],2));1N=1J-1v;2i=2k.2i([0,1],[30,30],[70,60],[1j,80]);u o.2p("1V",A(C){M 7Y,2G,U;U=C.9P();7Y=2k.5b(U.x,U.y,3p[0],3p[1]);B(7Y>1N){2G=O.1f(1,(2i[O.63(((7Y-1N)/1v)*1j)]/10)*3j);C.r=O.1U(C.r/E,2G)*E;C.g=O.1U(C.g/E,2G)*E;C.b=O.1U(C.b/E,2G)*E}u C})});Q.V("c0",A(G){M 4k,67,7Z,1v,I,1n,L;4k={3j:50,2K:0,94:\'3y\',3g:{r:0,g:0,b:0}};G=1x.8s(4k,G);B(!G.1v){u o}S B(1p G.1v==="3a"){7Z=4d(G.1v,10)/1j;G.1v={F:o.1c.F*7Z,J:o.1c.J*7Z}}S B(1p G.1v==="3G"){L=["F","J"];W(I=0,1n=L.P;I<1n;I++){67=L[I];B(1p G.1v[67]==="3a"){G.1v[67]=o.1c[67]*(4d(G.1v[67],10)/1j)}}}S B(G.1v==="7c"){1v=G.1v;G.1v={F:1v,J:1v}}B(1p G.2K==="3a"){G.2K=(G.1v.F/2)*(4d(G.2K,10)/1j)}G.3j/=1j;G.1v.F=O.2X(G.1v.F);G.1v.J=O.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6e,4P,62,49,5P,4v,5M,3q,5x,39,6f,3X,6b,4W,3Z,2M,8j,61,8k,4U,8l,41,8m,43,8n,5s,8o,4S,4T,5r,8p,3u,6l,39,8q,4R,8r,5p,4x,3k,3Z,4B,8t,4Q,8u,4y,8v,3c,8w,6e,41,4P,8x,62,8y,49,8z,5P,8A,4v,4T,5M,5R,3q,8B,5x,8C,39,8D,6f,8E,3X,5E,6b,4x,4W,7X,3Z,7S,2M,bN,8j,bI,61,4y,8k,bH,4U,bF,8l,bE,41,bD,8m,bC,43,bB,8n,bz,5s,by,8o,bx,4S,br,4T,7B,5r,5R,8p,7A,3u,bb,6l,ba,39,b9,8q,b8,4R,7z,8r,5E,5p,b6,4x,b5,3k,aR,3Z,aN,4B,aM,8t,aK,4Q,aI,8u,aF,4y,aC,8v,az,3c,ay,8w,ar,6e,aq,41,an,4P,am,8x,ak,62,ah,8y,da,49,d0,8z,cZ,5P,cV,8A,cU,4v,cT,4T,7B,5M,cS,5R,cQ,3q,7A,8B,cD,5x,6l,8C,cx,39,cv,8D,cp,6f,8N,8E,7z,3X,co,5E,ck,6b,cj,4x,ci,4W,3k,7X,ch,3Z,cg,7S,4B];6i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,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+x)<<2;1O+=(1d.r=(1D=Y[1i]))*(38=1b-i);1M+=(1d.g=(1C=Y[1i+1]))*38;1S+=(1d.b=(1F=Y[1i+2]))*38;2m+=1D;2q+=1C;2n+=1F;1d=1d.1L;B(i<48){4N+=F}}1i=x;1m=2R;1I=4o;W(y=3s=0;0<=J?3sJ;y=0<=J?++3s:--3s){p=1i<<2;Y[p]=(1O*2Q)>>2W;Y[p+1]=(1M*2Q)>>2W;Y[p+2]=(1S*2Q)>>2W;1O-=2F;1M-=2B;1S-=2C;2F-=1m.r;2B-=1m.g;2C-=1m.b;p=(x+(((p=y+1b)<48?p:48)*F))<<2;1O+=(2m+=(1m.r=Y[p]));1M+=(2q+=(1m.g=Y[p+1]));1S+=(2n+=(1m.b=Y[p+2]));1m=1m.1L;2F+=(1D=1I.r);2B+=(1C=1I.g);2C+=(1F=1I.b);2m-=1D;2q-=1C;2n-=1F;1I=1I.1L;1i+=F}}u o});u D.Q.V("5V",A(1W){u o.5f("5V",[1W])})})();D.Q.V("cB",A(R){u o.2p("cB",A(C){M 74;74=(0.cH*C.r)+(0.cI*C.g)+(0.cJ*C.b);B(74_ref;i=0<=_ref?++_i:--_i){start=i*blockN;end=start+(i===Renderer.Blocks-1?lastBlockN:blockN);if(Caman.NodeJS){f=Fiber(function(){return fn.call(_this,i,start,end);});bnum=f.run();_results.push(this.blockFinished(bnum));}else{_results.push(setTimeout((function(i,start,end){return function(){return fn.call(_this,i,start,end);};})(i,start,end),0));}} +this.currentJob=this.renderQueue.shift();switch(this.currentJob.type){case Filter.Type.LayerDequeue:layer=this.c.canvasQueue.shift();this.c.executeLayer(layer);return this.processNext();case Filter.Type.LayerFinished:this.c.applyCurrentLayer();this.c.popContext();return this.processNext();case Filter.Type.LoadOverlay:return this.loadOverlay(this.currentJob.layer,this.currentJob.src);case Filter.Type.LoadLayerMask:return this.loadLayerMask(this.currentJob.layer,this.currentJob.src);case Filter.Type.Plugin:return this.executePlugin();default:return this.executeFilter();}};Renderer.prototype.execute=function(callback){this.finishedFn=callback;this.modPixelData=Util.dataArray(this.c.pixelData.length);return this.processNext();};Renderer.prototype.eachBlock=function(fn){var blockN,blockPixelLength,bnum,end,f,i,lastBlockN,n,start,_i,_ref,_results,_this=this;this.blocksDone=0;n=this.c.pixelData.length;blockPixelLength=Math.floor((n/4)/Renderer.Blocks);blockN=blockPixelLength*4;lastBlockN=blockN+((n/4)%Renderer.Blocks)*4;_results=[];for(i=_i=0,_ref=Renderer.Blocks;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i){start=i*blockN;end=start+(i===Renderer.Blocks-1?lastBlockN:blockN);if(Caman.NodeJS){f=Fiber(function(){return fn.call(_this,i,start,end);});bnum=f.run();_results.push(this.blockFinished(bnum));}else{_results.push(setTimeout((function(i,start,end){return function(){return fn.call(_this,i,start,end);};})(i,start,end),0));}} return _results;};Renderer.prototype.executeFilter=function(){Event.trigger(this.c,"processStart",this.currentJob);if(this.currentJob.type===Filter.Type.Single){return this.eachBlock(this.renderBlock);}else{return this.eachBlock(this.renderKernel);}};Renderer.prototype.executePlugin=function(){Log.debug("Executing plugin "+this.currentJob.plugin);Plugin.execute(this.c,this.currentJob.plugin,this.currentJob.args);Log.debug("Plugin "+this.currentJob.plugin+" finished!");return this.processNext();};Renderer.prototype.renderBlock=function(bnum,start,end){var i,pixel,_i;Log.debug("Block #"+bnum+" - Filter: "+this.currentJob.name+", Start: "+start+", End: "+end);Event.trigger(this.c,"blockStarted",{blockNum:bnum,totalBlocks:Renderer.Blocks,startPixel:start,endPixel:end});pixel=new Pixel();pixel.setContext(this.c);for(i=_i=start;_i=builder;j=-builder<=builder?++_j:--_j){for(k=_k=builder;builder<=-builder?_k<=-builder:_k>=-builder;k=builder<=-builder?++_k:--_k){p=pixel.getPixelRelative(j,k);kernel[builderIndex*3]=p.r;kernel[builderIndex*3+1]=p.g;kernel[builderIndex*3+2]=p.b;builderIndex++;}} res=this.processKernel(adjust,kernel,divisor,bias);this.modPixelData[i]=Util.clampRGB(res.r);this.modPixelData[i+1]=Util.clampRGB(res.g);this.modPixelData[i+2]=Util.clampRGB(res.b);this.modPixelData[i+3]=this.c.pixelData[i+3];} @@ -166,7 +169,7 @@ if(Caman.NodeJS){return Fiber["yield"](bnum);}else{return this.blockFinished(bnu this.blocksDone++;Event.trigger(this.c,"blockFinished",{blockNum:bnum,blocksFinished:this.blocksDone,totalBlocks:Renderer.Blocks});if(this.blocksDone===Renderer.Blocks){if(this.currentJob.type===Filter.Type.Kernel){for(i=_i=0,_ref=this.c.pixelData.length;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i){this.c.pixelData[i]=this.modPixelData[i];}} if(bnum>=0){Log.debug("Filter "+this.currentJob.name+" finished!");} Event.trigger(this.c,"processComplete",this.currentJob);return this.processNext();}};Renderer.prototype.processKernel=function(adjust,kernel,divisor,bias){var i,val,_i,_ref;val={r:0,g:0,b:0};for(i=_i=0,_ref=adjust.length;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i){val.r+=adjust[i]*kernel[i*3];val.g+=adjust[i]*kernel[i*3+1];val.b+=adjust[i]*kernel[i*3+2];} -val.r=(val.r/divisor)+bias;val.g=(val.g/divisor)+bias;val.b=(val.b/divisor)+bias;return val;};Renderer.prototype.loadOverlay=function(layer,src){var img,proxyUrl,_this=this;img=new Image();img.onload=function(){layer.context.drawImage(img,0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.imageData=layer.context.getImageData(0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.pixelData=layer.imageData.data;_this.c.pixelData=layer.pixelData;return _this.processNext();};proxyUrl=IO.remoteCheck(src);return img.src=proxyUrl!=null?proxyUrl:src;};return Renderer;})();Renderer=Caman.Renderer;Caman.Store=(function(){function Store(){} +val.r=(val.r/divisor)+bias;val.g=(val.g/divisor)+bias;val.b=(val.b/divisor)+bias;return val;};Renderer.prototype.loadOverlay=function(layer,src){var img,proxyUrl,_this=this;img=new Image();img.onload=function(){layer.context.drawImage(img,0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.imageData=layer.context.getImageData(0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.pixelData=layer.imageData.data;_this.c.pixelData=layer.pixelData;return _this.processNext();};proxyUrl=IO.remoteCheck(src);return img.src=proxyUrl!=null?proxyUrl:src;};Renderer.prototype.loadLayerMask=function(layer,src){var img,proxyUrl,_this=this;img=new Image();img.onload=function(){var canvas,context,maskData;canvas=typeof exports!=="undefined"&&exports!==null?new Canvas():document.createElement('canvas');canvas.width=_this.c.dimensions.width;canvas.height=_this.c.dimensions.height;context=canvas.getContext('2d');context.drawImage(img,0,0,_this.c.dimensions.width,_this.c.dimensions.height);maskData=context.getImageData(0,0,_this.c.dimensions.width,_this.c.dimensions.height);layer.maskData=maskData.data;return _this.processNext();};proxyUrl=IO.remoteCheck(src);return img.src=proxyUrl!=null?proxyUrl:src;};return Renderer;})();Renderer=Caman.Renderer;Caman.Store=(function(){function Store(){} Store.items={};Store.has=function(search){return this.items[search]!=null;};Store.get=function(search){return this.items[search];};Store.put=function(name,obj){return this.items[name]=obj;};Store.execute=function(search,callback){var _this=this;setTimeout(function(){return callback.call(_this.get(search),_this.get(search));},0);return this.get(search);};Store.flush=function(name){if(name==null){name=false;} if(name){return delete this.items[name];}else{return this.items={};}};return Store;})();Store=Caman.Store;Blender.register("normal",function(rgbaLayer,rgbaParent){return{r:rgbaLayer.r,g:rgbaLayer.g,b:rgbaLayer.b};});Blender.register("multiply",function(rgbaLayer,rgbaParent){return{r:(rgbaLayer.r*rgbaParent.r)/255,g:(rgbaLayer.g*rgbaParent.g)/255,b:(rgbaLayer.b*rgbaParent.b)/255};});Blender.register("screen",function(rgbaLayer,rgbaParent){return{r:255-(((255-rgbaLayer.r)*(255-rgbaParent.r))/255),g:255-(((255-rgbaLayer.g)*(255-rgbaParent.g))/255),b:255-(((255-rgbaLayer.b)*(255-rgbaParent.b))/255)};});Blender.register("overlay",function(rgbaLayer,rgbaParent){var result;result={};result.r=rgbaParent.r>128?255-2*(255-rgbaLayer.r)*(255-rgbaParent.r)/255:(rgbaParent.r*rgbaLayer.r*2)/255;result.g=rgbaParent.g>128?255-2*(255-rgbaLayer.g)*(255-rgbaParent.g)/255:(rgbaParent.g*rgbaLayer.g*2)/255;result.b=rgbaParent.b>128?255-2*(255-rgbaLayer.b)*(255-rgbaParent.b)/255:(rgbaParent.b*rgbaLayer.b*2)/255;return result;});Blender.register("difference",function(rgbaLayer,rgbaParent){return{r:rgbaLayer.r-rgbaParent.r,g:rgbaLayer.g-rgbaParent.g,b:rgbaLayer.b-rgbaParent.b};});Blender.register("addition",function(rgbaLayer,rgbaParent){return{r:rgbaParent.r+rgbaLayer.r,g:rgbaParent.g+rgbaLayer.g,b:rgbaParent.b+rgbaLayer.b};});Blender.register("exclusion",function(rgbaLayer,rgbaParent){return{r:128-2*(rgbaParent.r-128)*(rgbaLayer.r-128)/255,g:128-2*(rgbaParent.g-128)*(rgbaLayer.g-128)/255,b:128-2*(rgbaParent.b-128)*(rgbaLayer.b-128)/255};});Blender.register("softLight",function(rgbaLayer,rgbaParent){var result;result={};result.r=rgbaParent.r>128?255-((255-rgbaParent.r)*(255-(rgbaLayer.r-128)))/255:(rgbaParent.r*(rgbaLayer.r+128))/255;result.g=rgbaParent.g>128?255-((255-rgbaParent.g)*(255-(rgbaLayer.g-128)))/255:(rgbaParent.g*(rgbaLayer.g+128))/255;result.b=rgbaParent.b>128?255-((255-rgbaParent.b)*(255-(rgbaLayer.b-128)))/255:(rgbaParent.b*(rgbaLayer.b+128))/255;return result;});Blender.register("lighten",function(rgbaLayer,rgbaParent){return{r:rgbaParent.r>rgbaLayer.r?rgbaParent.r:rgbaLayer.r,g:rgbaParent.g>rgbaLayer.g?rgbaParent.g:rgbaLayer.g,b:rgbaParent.b>rgbaLayer.b?rgbaParent.b:rgbaLayer.b};});Blender.register("darken",function(rgbaLayer,rgbaParent){return{r:rgbaParent.r>rgbaLayer.r?rgbaLayer.r:rgbaParent.r,g:rgbaParent.g>rgbaLayer.g?rgbaLayer.g:rgbaParent.g,b:rgbaParent.b>rgbaLayer.b?rgbaLayer.b:rgbaParent.b};});Filter.register("fillColor",function(){var color;if(arguments.length===1){color=Convert.hexToRGB(arguments[0]);}else{color={r:arguments[0],g:arguments[1],b:arguments[2]};} return this.process("fillColor",function(rgba){rgba.r=color.r;rgba.g=color.g;rgba.b=color.b;rgba.a=255;return rgba;});});Filter.register("brightness",function(adjust){adjust=Math.floor(255*(adjust/100));return this.process("brightness",function(rgba){rgba.r+=adjust;rgba.g+=adjust;rgba.b+=adjust;return rgba;});});Filter.register("saturation",function(adjust){adjust*=-0.01;return this.process("saturation",function(rgba){var max;max=Math.max(rgba.r,rgba.g,rgba.b);if(rgba.r!==max){rgba.r+=(max-rgba.r)*adjust;} diff --git a/dist/caman.pack.js b/dist/caman.pack.js index c13c861d..b5fc7fc9 100644 --- a/dist/caman.pack.js +++ b/dist/caman.pack.js @@ -1 +1 @@ -eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(o(){I $,2U,1A,1F,B,3b,3e,1p,1S,3L,V,1P,2p,24,1n,2f,1r,1Q,1h,4M,21,19,3y,3M,57,3w,3Y=[].9w||o(8n){U(I i=0,l=8.L;iD){9 D}9 1x};19.49=o(2L,2l,4a){I 4b,C,13,F,2n,X;u(4a==G){4a={}}F=2L.b6;X=[];U(C=0,13=F.L;C<13;C++){4b=F[C];u((4a.5p!=G)&&(2n=4b.5o,3Y.18(4a.5p,2n)>=0)){48}X.1z(2l.7E(4b.5o,4b.b7))}9 X};19.4c=o(L){u(L==G){L=0}u(B.1V||(2w.7x!=G)){9 1k 7x(L)}9 1k 3X(L)};9 19})();u(1f 1Y!=="33"&&1Y!==G){4M=1Y;3e=4d(\'E\');2p=3e.2p;3L=4d(\'b9\');3y=4d(\'3y\');3M=4d(\'3M\')}P{4M=2w;2p=2w.2p}B=(o(75){7c(B,75);B.64={6I:"4.1.2",6z:"7/27/bn"};B.8z=1G;B.4l=2e;B.5H="8B";B.4E="";B.8o="as";B.1V=1f 1Y!=="33"&&1Y!==G;B.8r=!B.1V;B.3r=o(){9"a7 "+B.64.6I+", 9u "+B.64.6z};B.6s=o(E){u(B.1V){9 2e}u(1f E==="2S"){E=$(E)}u(!((E!=G)&&(E.3n!=G))){9 G}9 E.3n(\'1t-2h-1X\')};o B(){8.3v=5Q(8.3v,8);I W,1g,1X,1c=8;u(Y.L===0){1N"3x Y";}u(8 8p B){8.3G=8.3G.61(8);8.4j=8.4j.61(8);W=Y[0];u(!B.1V){1X=4Z(B.6s(W[0]),10);1g=1f W[1]==="o"?W[1]:1f W[2]==="o"?W[2]:o(){};u(!bj(1X)&&21.72(1X)){9 21.2o(1X,1g)}}8.1X=19.5N.2F();8.4p=8.2W=G;8.3P={x:0,y:0};8.6R=1G;8.4G=1G;8.43=[];8.5I=[];8.6k=[];8.3S=G;8.7U=1G;8.aL=1k 2U(8);8.2J=1k 1h(8);8.8f(o(){1c.8g(W);9 1c.8l()});9 8}P{9 1k B(Y)}}B.H.8f=o(3B){I 5j,1c=8;u(B.1V){9 4P(o(){9 3B.18(1c)},0)}P{u(1L.5J==="4R"){1n.1B("7b 7j");9 4P(o(){9 3B.18(1c)},0)}P{5j=o(){u(1L.5J==="4R"){1n.1B("7b 7j");9 3B.18(1c)}};9 1L.7q("9S",5j,1G)}}};B.H.8g=o(W){I 1C,1x,F,X;u(W.L===0){1N"3x Y 7z";}8.23=G;8.58=G;8.5a=G;8.1g=o(){};8.7I(W[0]);u(W.L===1){9}3q(1f W[1]){1w"2S":8.5a=W[1];37;1w"o":8.1g=W[1]}u(W.L===2){9}8.1g=W[2];u(W.L===4){F=W[4];X=[];U(1C 3a F){u(!3O.18(F,1C))48;1x=F[1C];X.1z(8.1d[1C]=1x)}9 X}};B.H.7I=o(1H){u(B.1V){8.23=1H;8.58=\'7Z\';9}u(1f 1H==="2x"){8.23=1H}P{8.23=$(1H)}u(8.23==G){1N"9p 9o 9l S 8A E U 8R.";}9 8.58=8.23.5o.3Z()};B.H.8l=o(){3q(8.58){1w"7Z":9 8.8c();1w"1j":9 8.85();1w"E":9 8.7V()}};B.H.8c=o(){1n.1B("9R U 1V");u(1f 8.23==="2S"&&8.23.56(/^7o?:\\/\\//)){9 8.7n(8.23,8.3v)}P u(1f 8.23==="2S"){9 3y.8G(8.23,8.3v)}P{9 8.3v(G,8.23)}};B.H.7n=o(3Q,1g){I 5R;1n.1B("a6 S 2L "+3Q);5R=3M.2F(3Q,o(2t){I 50;50=\'\';2t.ah(\'6S\');2t.5C(\'1t\',o(6P){9 50+=6P});9 2t.5C(\'1q\',o(){9 1g(G,1k ao(50,\'6S\'))})});9 5R.5C(\'5l\',1g)};B.H.3v=o(3K,1t){u(3K){1N 3K;}8.S=1k 2p();8.S.1e=1t;1n.1B("2p 8y. 8w = "+(8.32())+", 8t = "+(8.2Z()));8.E=1k 3e(8.32(),8.2Z());9 8.3G()};B.H.85=o(){8.S=8.23;8.E=1L.2G(\'E\');8.1a=8.E.2m(\'2d\');19.49(8.S,8.E,{5p:[\'1e\']});u(8.S.4L!=G){8.S.4L.6v(8.E,8.S)}8.6q();9 8.6p()};B.H.7V=o(){8.E=8.23;8.1a=8.E.2m(\'2d\');u(8.5a!=G){8.S=1L.2G(\'1j\');8.S.1e=8.5a;8.6q();9 8.6p()}P{9 8.3G()}};B.H.6q=o(){u(8.63()){1n.1B(8.S.1e,"->",8.4I());8.7l=2e;8.S.1e=8.4I()}u(1P.7d(8.S)){8.S.1e=1P.2X(8.S.1e);9 1n.1B("aQ S aT, aV 6M = "+8.S.1e)}};B.H.6p=o(){u(8.6L()){9 8.4j()}P{9 8.S.6K=8.4j}};B.H.6L=o(){u(!8.S.4R){9 1G}u((8.S.5D!=G)&&8.S.5D===0){9 1G}9 2e};B.H.32=o(){9 8.S.K||8.S.5D};B.H.2Z=o(){9 8.S.R||8.S.b8};B.H.4j=o(){1n.1B("2p 8y. 8w = "+(8.32())+", 8t = "+(8.2Z()));u(8.7l){8.E.K=8.32()/8.4C();8.E.R=8.2Z()/8.4C()}P{8.E.K=8.32();8.E.R=8.2Z()}9 8.3G()};B.H.3G=o(){I i,15,C,13,F;u(8.1a==G){8.1a=8.E.2m(\'2d\')}8.3H=8.4g=8.K=8.E.K;8.4h=8.4i=8.R=8.E.R;8.7O();u(!8.7Q()){8.6A()}u(8.S!=G){8.1a.4m(8.S,0,0,8.32(),8.2Z(),0,0,8.4g,8.4i)}8.1E=8.1a.36(0,0,8.E.K,8.E.R);8.M=8.1E.1t;u(B.4l){8.4p=19.4c(8.M.L);8.2W=19.4c(8.M.L);F=8.M;U(i=C=0,13=F.L;C<13;i=++C){15=F[i];8.4p[i]=15;8.2W[i]=15}}8.1D={K:8.E.K,R:8.E.R};u(!B.1V){21.6N(8.1X,8)}8.1g.18(8,8);9 8.1g=o(){}};B.H.80=o(){8.1E=8.1a.36(0,0,8.E.K,8.E.R);9 8.M=8.1E.1t};B.H.bm=o(){I i,15,C,13,F,X;u(!B.4l){1N"5E 4O";}8.2W=19.4c(8.M.L);F=8.M;X=[];U(i=C=0,13=F.L;C<13;i=++C){15=F[i];X.1z(8.2W[i]=15)}9 X};B.H.7Q=o(){9 B.6s(8.E)!=G};B.H.6A=o(){u(B.1V||8.E.3n(\'1t-2h-1X\')){9}9 8.E.7E(\'1t-2h-1X\',8.1X)};B.H.6U=o(){9 8.E.3n(\'1t-2h-6V-4O\')!==G};B.H.7O=o(){I 2v;u(B.1V||!8.63()){9}2v=8.4C();u(2v!==1){1n.1B("bi 2v = "+2v);8.7U=2e;8.4g=8.E.K;8.4i=8.E.R;8.E.K=8.4g*2v;8.E.R=8.4i*2v;8.E.7f.K=""+8.4g+"7A";8.E.7f.R=""+8.4i+"7A";8.1a.bh(2v,2v);8.K=8.3H=8.E.K;9 8.R=8.4h=8.E.R}};B.H.4C=o(){I 5i,2u;2u=2w.2u||1;5i=8.1a.bg||8.1a.bf||8.1a.be||8.1a.bd||8.1a.bc||1;9 2u/5i};B.H.74=o(){9(2w.2u!=G)&&2w.2u!==1};B.H.63=o(){u(8.6U()||!8.74()){9 1G}9 8.4I()!==G};B.H.4I=o(){u(8.S==G){9 G}9 8.S.3n(\'1t-2h-6V\')};B.H.4u=o(7w){I 4v;4v=8.E;8.E=7w;8.1a=8.E.2m(\'2d\');u(!B.1V){4v.4L.6v(8.E,4v)}8.K=8.E.K;8.R=8.E.R;8.80();9 8.1D={K:8.E.K,R:8.E.R}};B.H.7M=o(1g){I 1c=8;u(1g==G){1g=o(){}}1S.38(8,"7T");9 8.2J.2o(o(){1c.1a.4w(1c.1E,0,0);9 1g.18(1c)})};B.H.bb=o(4x){I i,15,C,13,F;u(4x==G){4x=2e}u(!B.4l){1N"5E 4O";}F=8.8E();U(i=C=0,13=F.L;C<13;i=++C){15=F[i];8.M[i]=15}u(4x){9 8.1a.4w(8.1E,0,0)}};B.H.ba=o(){I E,1K,i,1E,15,M,C,13,F;E=1L.2G(\'E\');19.49(8.E,E);E.K=8.3H;E.R=8.4h;1K=E.2m(\'2d\');1E=1K.36(0,0,E.K,E.R);M=1E.1t;F=8.4p;U(i=C=0,13=F.L;C<13;i=++C){15=F[i];M[i]=15}1K.4w(1E,0,0);8.3P={x:0,y:0};8.4G=1G;9 8.4u(E)};B.H.8E=o(){I E,4y,1K,1s,5x,i,1E,15,M,4z,4e,4A,4B,K,C,Z,13,F,2n,2C,6o;u(!B.4l){1N"5E 4O";}4z=[];4A=8.3P.x;1s=4A+8.K;4B=8.3P.y;5x=4B+8.R;u(8.4G){E=1L.2G(\'E\');E.K=8.3H;E.R=8.4h;1K=E.2m(\'2d\');1E=1K.36(0,0,E.K,E.R);M=1E.1t;F=8.2W;U(i=C=0,13=F.L;C<13;i=++C){15=F[i];M[i]=15}1K.4w(1E,0,0);4e=1L.2G(\'E\');4e.K=8.K;4e.R=8.R;1K=4e.2m(\'2d\');1K.4m(E,0,0,8.3H,8.4h,0,0,8.K,8.R);M=1K.36(0,0,8.K,8.R).1t;K=8.K}P{M=8.2W;K=8.3H}U(i=Z=0,2n=M.L;Z<2n;i=Z+=4){4y=1r.7h(i,K);u(((4A<=(2C=4y.x)&&2C<1s))&&((4B<=(6o=4y.y)&&6o<5x))){4z.1z(M[i],M[i+1],M[i+2],M[i+3])}}9 4z};B.H.1W=o(11,4D){8.2J.2s({14:V.26.5m,11:11,4D:4D});9 8};B.H.5n=o(11,J,1R,25){I i,C,F;u(1R==G){1R=G}u(25==G){25=0}u(1R==G){1R=0;U(i=C=0,F=J.L;0<=F?CF;i=0<=F?++C:--C){1R+=J[i]}}8.2J.2s({14:V.26.5s,11:11,J:J,1R:1R,25:25});9 8};B.H.5t=o(2y,W){8.2J.2s({14:V.26.1Q,2y:2y,W:W});9 8};B.H.5w=o(1g){I 1u;1u=1k 24(8);8.6k.1z(1u);8.2J.2s({14:V.26.5y});1g.18(1u);8.2J.2s({14:V.26.5z});9 8};B.H.6B=o(1u){9 8.6C(1u)};B.H.6C=o(1u){8.5I.1z(8.3S);8.43.1z(8.M);8.3S=1u;9 8.M=1u.M};B.H.6D=o(){8.M=8.43.4k();9 8.3S=8.5I.4k()};B.H.6F=o(){9 8.3S.6G()};9 B})(2f);4M.B=B;B.2U=(o(){o 2U(c){8.c=c}2U.H.aW=o(){I i,28,47,C,Z,1O,F;28={r:{},g:{},b:{}};U(i=C=0;C<=D;i=++C){28.r[i]=0;28.g[i]=0;28.b[i]=0}U(i=Z=0,F=8.c.M.L;Z0)){9}X=[];U(C=0,13=44.L;C<13;C++){1j=44[C];X.1z(6W=1k 3b(1j,o(){8.70();9 8.2o()}))}9 X};u(B.8r){(o(){u(1L.5J==="4R"){9 B.5G()}P{9 1L.7q("aR",B.5G,1G)}})()}3b=(o(){I 4H;4H="(\\\\w+)\\\\((.*?)\\\\)";o 3b(2B,77){8.78=2B.3n(\'1t-2h\');8.2h=B(2B,77.61(8))}3b.H.70=o(){I W,e,41,3c,5P,5U,m,r,40,C,13,F,X;8.2B=8.2h.E;r=1k 7m(4H,\'g\');40=8.78.56(r);u(!(40.L>0)){9}r=1k 7m(4H);X=[];U(C=0,13=40.L;C<13;C++){5P=40[C];F=5P.56(r),m=F[0],41=F[1],W=F[2];5U=1k aP("9 o() { 8."+41+"("+W+"); };");5W{3c=5U();X.1z(3c.18(8.2h))}5Z(3E){e=3E;X.1z(1n.1B(e))}}9 X};3b.H.2o=o(){I 2B;2B=8.2B;9 8.2h.7M(o(){9 2B.4L.6v(8.7y(),2B)})};9 3b})();B.1A=(o(){o 1A(){}1A.62={};1A.17=o(11,3c){9 8.62[11]=3c};1A.2o=o(11,O,N){9 8.62[11](O,N)};9 1A})();1A=B.1A;B.1F=(o(){o 1F(){}1F.aN=o(7F,7H,7J,7K){9 Q.7N(Q.1Z(7J-7F,2)+Q.1Z(7K-7H,2))};1F.7S=o(1i,T,3V){I 2E;u(3V==G){3V=1G}2E=1i+(Q.aI()*(T-1i));u(3V){9 2E.aH(3V)}P{9 Q.3U(2E)}};1F.8b=o(A){9(0.aG*A.r)+(0.az*A.g)+(0.av*A.b)};1F.1M=o(1l,2M,2N,1q,31,34){I 1M,3t,1J,1s,i,j,3s,4N,2j,t,C,Z,F;u(31==G){31=0}u(34==G){34=D}u(1l[0]8p 3X){1J=1l;31=2M;34=2N}P{1J=[1l,2M,2N,1q]}u(1J.L<2){1N"3x 5q 5r Y 2l 1M";}1M={};3s=o(a,b,t){9 a*(1-t)+b*t};3t=o(a,1i,T){9 Q.1i(Q.T(a,1i),T)};U(i=C=0;C<6E;i=++C){t=i/6E;2j=1J;al(2j.L>1){4N=[];U(j=Z=0,F=2j.L-2;0<=F?Z<=F:Z>=F;j=0<=F?++Z:--Z){4N.1z([3s(2j[j][0],2j[j+1][0],t),3s(2j[j][1],2j[j+1][1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=(1.29*Q.1Z(r,0.67))-0.29}P{r*=12.92}u(g>0.66){g=(1.29*Q.1Z(g,0.67))-0.29}P{g*=12.92}u(b>0.66){b=(1.29*Q.1Z(b,0.67))-0.29}P{b*=12.92}9{r:r*D,g:g*D,b:b*D}};1p.7L=o(x,y,z){I a,b,l,68,69,6a;u(1f x==="2x"){y=x.y;z=x.z;x=x.x}68=95.7P;69=1o.0;6a=6x.7R;x/=68;y/=69;z/=6a;u(x>0.6b){x=Q.1Z(x,0.6c)}P{x=(7.6d*x)+0.3h}u(y>0.6b){y=Q.1Z(y,0.6c)}P{y=(7.6d*y)+0.3h}u(z>0.6b){z=Q.1Z(z,0.6c)}P{z=(7.6d*z)+0.3h}l=7W*y-16;a=7X*(x-y);b=7Y*(y-z);9{l:l,a:a,b:b}};1p.9z=o(l,a,b){I x,y,z;u(1f l==="2x"){a=l.a;b=l.b;l=l.l}y=(l+16)/7W;x=y+(a/7X);z=y-(b/7Y);u(x>0.6e){x=x*x*x}P{x=0.6f*(x-0.3h)}u(y>0.6e){y=y*y*y}P{y=0.6f*(y-0.3h)}u(z>0.6e){z=z*z*z}P{z=0.6f*(z-0.3h)}9{x:x*95.7P,y:y*1o.0,z:z*6x.7R}};1p.9x=o(r,g,b){I 6h;u(1f r==="2x"){g=r.g;b=r.b;r=r.r}6h=8.7k(r,g,b);9 8.7L(6h)};1p.9v=o(l,a,b){};9 1p})();1p=B.1p;B.1S=(o(){o 1S(){}1S.3f={};1S.86=["87","88","7T","89","8a","3i"];1S.38=o(22,14,1t){I 42,C,13,F,X;u(1t==G){1t=G}u(8.3f[14]&&8.3f[14].L){F=8.3f[14];X=[];U(C=0,13=F.L;C<13;C++){42=F[C];u(42.22===G||22.1X===42.22.1X){X.1z(42.2r.18(22,1t))}P{X.1z(9s 0)}}9 X}};1S.9r=o(22,14,2r){I 6l,6m;u(1f 22==="2S"){6m=22;6l=14;22=G;14=6m;2r=6l}u(3Y.18(8.86,14)<0){9 1G}u(!8.3f[14]){8.3f[14]=[]}8.3f[14].1z({22:22,2r:2r});9 2e};9 1S})();1S=B.1S;B.V=(o(){o V(){}V.26={5m:1,5s:2,5y:3,5z:4,6n:5,1Q:6};V.17=o(11,8i){9 B.H[11]=8i};9 V})();V=B.V;B.1P=(o(){o 1P(){}1P.8j=/(?:(?:3M|7o):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;1P.7d=o(1j){u(1j==G){9 1G}u(8.8k(1j)){9 1G}9 8.5e(1j.1e)};1P.8k=o(1j){I F;9(1j.5H!=G)&&((F=1j.5H.3Z())===\'8B\'||F===\'8m-9q\')};1P.5e=o(3Q){I 5f;5f=3Q.56(8.8j);u(5f){9 5f[1]!==1L.9m}P{9 1G}};1P.8q=o(1e){u(8.5e(1e)){u(!B.4E.L){1n.6r("9j 2l 9f a 8u S 9e a 9d 8x. 6M: "+1e)}P{u(B.5e(B.4E)){1n.6r("91 8m a 8u 8x U 90 8Z.");9}9 8.2X(1e)}}};1P.2X=o(1e){9""+B.4E+"?"+B.8o+"="+(8T(1e))};1P.8S=o(3d){I 4o;4o={8Q:\'8H\',a4:\'8I\',8J:\'8K\',8L:\'8M\'};3d=3d.3Z();u(4o[3d]!=G){3d=4o[3d]}9"8N/8O."+3d};9 1P})();B.H.8P=o(){u(1f 1Y!=="33"&&1Y!==G){9 8.8F.2D(8,Y)}P{9 8.8D.2D(8,Y)}};B.H.8D=o(14){I S;u(14==G){14="8C"}14=14.3Z();S=8.6w(14).8U("S/"+14,"S/8V-8W");9 1L.8X.8Y=S};B.H.8F=o(3J,5h,1g){I e,6u;u(5h==G){5h=2e}u(1g==G){1g=G}5W{6u=3y.93(3J);u(6u.94()&&!5h){9 1G}}5Z(3E){e=3E;1n.1B("96 97 3J "+3J)}9 3y.98(3J,8.E.99(),o(3K){1n.1B("9a 9b 2l "+3J);u(1g){9 1g.18(8,3K)}})};B.H.7y=o(14){I 1j;1j=1k 2p();1j.1e=8.6w(14);1j.K=8.1D.K;1j.R=8.1D.R;u(2w.2u){1j.K/=2w.2u;1j.R/=2w.2u}9 1j};B.H.6w=o(14){u(14==G){14="8C"}14=14.3Z();9 8.E.9c("S/"+14)};1P=B.1P;B.24=(o(){o 24(c){8.c=c;8.41=8.c;8.1d={6t:\'8v\',2T:1.0};8.9g=19.5N.2F();8.E=1f 1Y!=="33"&&1Y!==G?1k 3e():1L.2G(\'E\');8.E.K=8.c.1D.K;8.E.R=8.c.1D.R;8.1a=8.E.2m(\'2d\');8.1a.9h(8.E.K,8.E.R);8.1E=8.1a.36(0,0,8.E.K,8.E.R);8.M=8.1E.1t}24.H.5w=o(3B){9 8.c.5w.18(8.c,3B)};24.H.9i=o(8s){8.1d.6t=8s;9 8};24.H.2T=o(2T){8.1d.2T=2T/1o;9 8};24.H.9k=o(){I i,20,C,F;20=8.c.M;U(i=C=0,F=8.c.M.L;C8.c.M.L||2i<0){9 1k 1r(0,0,0,D,8.c)}9 8.65(2i)};1r.H.9G=o(5c,5b,A){I 7C;u(8.c==G){1N"3j a 3g 1a";}7C=8.1m+(8.c.1D.K*4*(5b*-1))+(4*5c);u(2i>8.c.M.L||2i<0){9}8.c.M[2i]=A.r;8.c.M[2i+1]=A.g;8.c.M[2i+2]=A.b;8.c.M[2i+3]=A.a;9 2e};1r.H.9I=o(x,y){I 1m;u(8.c==G){1N"3j a 3g 1a";}1m=8.6i(x,y,8.K);9 8.65(1m)};1r.H.9J=o(x,y,A){I 1m;u(8.c==G){1N"3j a 3g 1a";}1m=8.6i(x,y,8.K);8.c.M[1m]=A.r;8.c.M[1m+1]=A.g;8.c.M[1m+2]=A.b;9 8.c.M[1m+3]=A.a};1r.H.3r=o(){9 8.9K()};1r.H.9L=o(59){I 2g;u(59==G){59=1G}2g=\'#\'+8.r.3r(16)+8.g.3r(16)+8.b.3r(16);u(59){9 2g+8.a.3r(16)}P{9 2g}};9 1r})();1r=B.1r;B.1Q=(o(){o 1Q(){}1Q.60={};1Q.17=o(11,2y){9 8.60[11]=2y};1Q.2o=o(1a,11,W){9 8.60[11].2D(1a,W)};9 1Q})();1Q=B.1Q;B.1h=(o(){1h.2P=B.1V?4d(\'9P\').9Q().L:4;o 1h(c){8.c=c;8.2A=5Q(8.2A,8);8.3R=[];8.30=G}1h.H.2s=o(5Y){u(5Y==G){9}9 8.3R.1z(5Y)};1h.H.2A=o(){I 1u;u(8.3R.L===0){1S.38(8,"89");u(8.5X!=G){8.5X.18(8.c)}9 8}8.1v=8.3R.7v();3q(8.1v.14){1w V.26.5y:1u=8.c.6k.7v();8.c.6B(1u);9 8.2A();1w V.26.5z:8.c.6F();8.c.6D();9 8.2A();1w V.26.6n:9 8.7u(8.1v.1u,8.1v.1e);1w V.26.1Q:9 8.7t();9Z:9 8.7s()}};1h.H.2o=o(1g){8.5X=1g;8.30=19.4c(8.c.M.L);9 8.2A()};1h.H.5V=o(2r){I 3N,5S,1U,1q,f,i,5O,n,1l,C,F,X,1c=8;8.53=0;n=8.c.M.L;5S=Q.2H((n/4)/1h.2P);3N=5S*4;5O=3N+((n/4)%1h.2P)*4;X=[];U(i=C=0,F=1h.2P;0<=F?CF;i=0<=F?++C:--C){1l=i*3N;1q=1l+(i===1h.2P-1?5O:3N);u(B.1V){f=3L(o(){9 2r.18(1c,i,1l,1q)});1U=f.a8();X.1z(8.3i(1U))}P{X.1z(4P((o(i,1l,1q){9 o(){9 2r.18(1c,i,1l,1q)}})(i,1l,1q),0))}}9 X};1h.H.7s=o(){1S.38(8.c,"87",8.1v);u(8.1v.14===V.26.5m){9 8.5V(8.79)}P{9 8.5V(8.76)}};1h.H.7t=o(){1n.1B("ab 2y "+8.1v.2y);1Q.2o(8.c,8.1v.2y,8.1v.W);1n.1B("1Q "+8.1v.2y+" 5L!");9 8.2A()};1h.H.79=o(1U,1l,1q){I i,15,C;1n.1B("73 #"+1U+" - V: "+8.1v.11+", ae: "+1l+", af: "+1q);1S.38(8.c,"8a",{6Z:1U,6T:1h.2P,ai:1l,aj:1q});15=1k 1r();15.6g(8.c);U(i=C=1l;C<1q;i=C+=4){15.1m=i;15.r=8.c.M[i];15.g=8.c.M[i+1];15.b=8.c.M[i+2];15.a=8.c.M[i+3];8.1v.4D(15);8.c.M[i]=19.2k(15.r);8.c.M[i+1]=19.2k(15.g);8.c.M[i+2]=19.2k(15.b);8.c.M[i+3]=19.2k(15.a)}u(B.1V){9 3L["6Q"](1U)}P{9 8.3i(1U)}};1h.H.76=o(1U,1l,1q){I J,4f,25,1T,3z,1R,i,j,k,2c,n,11,p,15,2t,C,Z,1O;11=8.1v.11;25=8.1v.25;1R=8.1v.1R;n=8.c.M.L;J=8.1v.J;4f=Q.7N(J.L);2c=[];1n.1B("aq 2c - V: "+8.1v.11);1l=Q.T(1l,8.c.1D.K*4*((4f-1)/2));1q=Q.1i(1q,n-(8.c.1D.K*4*((4f-1)/2)));1T=(4f-1)/2;15=1k 1r();15.6g(8.c);U(i=C=1l;C<1q;i=C+=4){15.1m=i;3z=0;U(j=Z=-1T;-1T<=1T?Z<=1T:Z>=1T;j=-1T<=1T?++Z:--Z){U(k=1O=1T;1T<=-1T?1O<=-1T:1O>=-1T;k=1T<=-1T?++1O:--1O){p=15.7G(j,k);2c[3z*3]=p.r;2c[3z*3+1]=p.g;2c[3z*3+2]=p.b;3z++}}2t=8.5n(J,2c,1R,25);8.30[i]=19.2k(2t.r);8.30[i+1]=19.2k(2t.g);8.30[i+2]=19.2k(2t.b);8.30[i+3]=8.c.M[i+3]}u(B.1V){9 3L["6Q"](1U)}P{9 8.3i(1U)}};1h.H.3i=o(1U){I i,C,F;u(1U>=0){1n.1B("73 #"+1U+" 5L! V: "+8.1v.11)}8.53++;1S.38(8.c,"3i",{6Z:1U,ar:8.53,6T:1h.2P});u(8.53===1h.2P){u(8.1v.14===V.26.5s){U(i=C=0,F=8.c.M.L;0<=F?CF;i=0<=F?++C:--C){8.c.M[i]=8.30[i]}}u(1U>=0){1n.1B("V "+8.1v.11+" 5L!")}1S.38(8.c,"88",8.1v);9 8.2A()}};1h.H.5n=o(J,2c,1R,25){I i,1x,C,F;1x={r:0,g:0,b:0};U(i=C=0,F=J.L;0<=F?CF;i=0<=F?++C:--C){1x.r+=J[i]*2c[i*3];1x.g+=J[i]*2c[i*3+1];1x.b+=J[i]*2c[i*3+2]}1x.r=(1x.r/1R)+25;1x.g=(1x.g/1R)+25;1x.b=(1x.b/1R)+25;9 1x};1h.H.7u=o(1u,1e){I 1j,2X,1c=8;1j=1k 2p();1j.6K=o(){1u.1a.4m(1j,0,0,1c.c.1D.K,1c.c.1D.R);1u.1E=1u.1a.36(0,0,1c.c.1D.K,1c.c.1D.R);1u.M=1u.1E.1t;1c.c.M=1u.M;9 1c.2A()};2X=1P.8q(1e);9 1j.1e=2X!=G?2X:1e};9 1h})();1h=B.1h;B.21=(o(){o 21(){}21.3A={};21.72=o(2K){9 8.3A[2K]!=G};21.2F=o(2K){9 8.3A[2K]};21.6N=o(11,1H){9 8.3A[11]=1H};21.2o=o(2K,1g){I 1c=8;4P(o(){9 1g.18(1c.2F(2K),1c.2F(2K))},0);9 8.2F(2K)};21.au=o(11){u(11==G){11=1G}u(11){9 8h 8.3A[11]}P{9 8.3A={}}};9 21})();21=B.21;1A.17("8v",o(O,N){9{r:O.r,g:O.g,b:O.b}});1A.17("aw",o(O,N){9{r:(O.r*N.r)/D,g:(O.g*N.g)/D,b:(O.b*N.b)/D}});1A.17("ax",o(O,N){9{r:D-(((D-O.r)*(D-N.r))/D),g:D-(((D-O.g)*(D-N.g))/D),b:D-(((D-O.b)*(D-N.b))/D)}});1A.17("ay",o(O,N){I 1b;1b={};1b.r=N.r>1y?D-2*(D-O.r)*(D-N.r)/D:(N.r*O.r*2)/D;1b.g=N.g>1y?D-2*(D-O.g)*(D-N.g)/D:(N.g*O.g*2)/D;1b.b=N.b>1y?D-2*(D-O.b)*(D-N.b)/D:(N.b*O.b*2)/D;9 1b});1A.17("aA",o(O,N){9{r:O.r-N.r,g:O.g-N.g,b:O.b-N.b}});1A.17("aB",o(O,N){9{r:N.r+O.r,g:N.g+O.g,b:N.b+O.b}});1A.17("aC",o(O,N){9{r:1y-2*(N.r-1y)*(O.r-1y)/D,g:1y-2*(N.g-1y)*(O.g-1y)/D,b:1y-2*(N.b-1y)*(O.b-1y)/D}});1A.17("aD",o(O,N){I 1b;1b={};1b.r=N.r>1y?D-((D-N.r)*(D-(O.r-1y)))/D:(N.r*(O.r+1y))/D;1b.g=N.g>1y?D-((D-N.g)*(D-(O.g-1y)))/D:(N.g*(O.g+1y))/D;1b.b=N.b>1y?D-((D-N.b)*(D-(O.b-1y)))/D:(N.b*(O.b+1y))/D;9 1b});1A.17("aE",o(O,N){9{r:N.r>O.r?N.r:O.r,g:N.g>O.g?N.g:O.g,b:N.b>O.b?N.b:O.b}});1A.17("aF",o(O,N){9{r:N.r>O.r?O.r:N.r,g:N.g>O.g?O.g:N.g,b:N.b>O.b?O.b:N.b}});V.17("5g",o(){I 3C;u(Y.L===1){3C=1p.5K(Y[0])}P{3C={r:Y[0],g:Y[1],b:Y[2]}}9 8.1W("5g",o(A){A.r=3C.r;A.g=3C.g;A.b=3C.b;A.a=D;9 A})});V.17("83",o(J){J=Q.2H(D*(J/1o));9 8.1W("83",o(A){A.r+=J;A.g+=J;A.b+=J;9 A})});V.17("82",o(J){J*=-0.aJ;9 8.1W("82",o(A){I T;T=Q.T(A.r,A.g,A.b);u(A.r!==T){A.r+=(T-A.r)*J}u(A.g!==T){A.g+=(T-A.g)*J}u(A.b!==T){A.b+=(T-A.b)*J}9 A})});V.17("81",o(J){J*=-1;9 8.1W("81",o(A){I 3W,2I,T;T=Q.T(A.r,A.g,A.b);2I=(A.r+A.g+A.b)/3;3W=((Q.2O(T-2I)*2/D)*J)/1o;u(A.r!==T){A.r+=(T-A.r)*3W}u(A.g!==T){A.g+=(T-A.g)*3W}u(A.b!==T){A.b+=(T-A.b)*3W}9 A})});V.17("7B",o(J){9 8.1W("7B",o(A){I 2I;2I=1F.8b(A);A.r=2I;A.g=2I;A.b=2I;9 A})});V.17("7p",o(J){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){1I=G}u(1I===G||((1I.K==G)&&(1I.R==G))){1n.5l("3x 8A bo 1D 7z U 4Q");9}u(1I.K==G){1I.K=8.E.K*1I.R/8.E.R}P u(1I.R==G){1I.R=8.E.R*1I.K/8.E.K}u(1f 1Y!=="33"&&1Y!==G){E=1k 3e(1I.K,1I.R)}P{E=1L.2G(\'E\');19.49(8.E,E);E.K=1I.K;E.R=1I.R}1K=E.2m(\'2d\');1K.4m(8.E,0,0,8.E.K,8.E.R,0,0,1I.K,1I.R);8.4G=2e;9 8.4u(E)});B.V.17("5k",o(){9 8.5t("5k",3X.H.3w.18(Y,0))});B.V.17("4Q",o(){9 8.5t("4Q",3X.H.3w.18(Y,0))})}).18(8);',62,707,'||||||||this|return|||||||||||||||function||||||if||||||rgba|Caman|_i|255|canvas|_ref|null|prototype|var|adjust|width|length|pixelData|rgbaParent|rgbaLayer|else|Math|height|image|max|for|Filter|args|_results|arguments|_j||name||_len|type|pixel||register|call|Util|context|result|_this|options|src|typeof|callback|Renderer|min|img|new|start|loc|Log|100|Convert|end|Pixel|endX|data|layer|currentJob|case|val|128|push|Blender|debug|key|dimensions|imageData|Calculate|false|obj|newDims|controlPoints|ctx|document|bezier|throw|_k|IO|Plugin|divisor|Event|builder|bnum|NodeJS|process|id|exports|pow|parentData|Store|target|initObj|Layer|bias|Type||levels|055|ret|cps|kernel||true|Module|hex|caman|newLoc|prev|clampRGB|to|getContext|_ref1|execute|Image|chans|fn|add|res|devicePixelRatio|ratio|window|object|plugin|value|processNext|ele|_ref2|apply|rand|get|createElement|floor|avg|renderer|search|from|ctrl1|ctrl2|abs|Blocks|mul|pointsPerSegment|string|opacity|Analyze|values|originalPixelData|proxyUrl|rgb|imageHeight|modPixelData|lowBound|imageWidth|undefined|highBound|hsv|getImageData|break|trigger|layerData|in|CamanParser|func|lang|Canvas|events|CamanJS|1379310345|blockFinished|Requires|child|parent|leftCoord|getAttribute|p1|p0|switch|toString|lerp|clamp|__slice|nodeFileReady|slice|Invalid|fs|builderIndex|items|cb|color|level|_error|chan|finishInit|originalWidth|last|file|err|Fiber|http|blockN|__hasProp|cropCoordinates|url|renderQueue|currentLayer|algo|round|getFloat|amt|Array|__indexOf|toLowerCase|unparsedInstructions|filter|event|pixelStack|imgs|copy|prop|numPixels|continue|copyAttributes|opts|attr|dataArray|require|scaledCanvas|adjustSize|preScaledWidth|originalHeight|preScaledHeight|imageLoaded|pop|allowRevert|drawImage|source|langToExt|initializedPixelData|curves|blue|green|red|replaceCanvas|oldCanvas|putImageData|updateContext|coord|pixels|startX|startY|hiDPIRatio|processFn|remoteProxy|dest|resized|INST_REGEX|hiDPIReplacement|root|sel|parentNode|Root|next|disabled|setTimeout|resize|complete|fac0|fac1|fac2|fac3|pointsPerStep|pos|sub|parseInt|buf|rightCoord|substr|blocksDone|hueToRGB||match|moduleKeywords|initType|includeAlpha|imageUrl|vert|horiz|Logger|isURLRemote|matches|fillColor|overwrite|backingStoreRatio|listener|crop|error|Single|processKernel|nodeName|except|number|of|Kernel|processPlugin|missingValues|count|newLayer|endY|LayerDequeue|LayerFinished|m0|m1|on|naturalWidth|Revert|included|DOMUpdated|crossOrigin|layerStack|readyState|hexToRGB|finished|ctor|uniqid|lastBlockN|inst|__bind|req|blockPixelLength|04045|instFunc|eachBlock|try|finishedFn|job|catch|plugins|bind|blenders|needsHiDPISwap|version|pixelAtLocation|0031308|4166666667|whiteX|whiteY|whiteZ|008856451679|3333333333|787037037|2068965517|1284185493|setContext|xyz|coordinatesToLocation|console|canvasQueue|_fn|_type|LoadOverlay|_ref3|waitForImageLoaded|imageAdjustments|info|getAttrId|blendingMode|stats|replaceChild|toBase64|108|channels|date|assignId|executeLayer|pushContext|popContext|1000|applyCurrentLayer|applyToParent|hermite|release|sepia|onload|isImageLoaded|URL|put|invert|chunk|yield|cropped|binary|totalBlocks|hiDPIDisabled|hidpi|parser|colorize|extended|blockNum|parse|reverse|has|Block|hiDPICapable|_super|renderKernel|ready|dataStr|renderBlock|hue|DOM|__extends|isRemote|me|style|rgbToHSV|locationToCoordinates|hsvToRGB|initialized|rgbToXYZ|swapped|RegExp|readFromHttp|https|contrast|addEventListener|clip|executeFilter|executePlugin|loadOverlay|shift|newCanvas|Uint8Array|toImage|given|px|greyscale|nowLoc|noise|setAttribute|x1|getPixelRelative|y1|setInitObject|x2|y2|xyzToLab|render|sqrt|hiDPIAdjustments|047|hasId|883|randomRange|renderStart|scaled|initCanvas|116|500|200|node|reloadCanvasData|vibrance|saturation|brightness|gamma|initImage|types|processStart|processComplete|renderFinished|blockStarted|luminance|initNode|log|Object|domIsLoaded|parseArguments|delete|filterFunc|domainRegex|corsEnabled|setup|use|item|proxyParam|instanceof|remoteCheck|autoload|mode|Height|remote|normal|Width|proxy|loaded|DEBUG|or|anonymous|png|browserSave|originalVisiblePixels|nodeSave|readFile|rb|py|perl|pl|javascript|js|proxies|caman_proxy|save|ruby|initialization|useProxy|encodeURIComponent|replace|octet|stream|location|href|images|loading|Cannot||statSync|isFile||Creating|output|writeFile|toBuffer|Finished|writing|toDataURL|configured|without|load|layerID|createImageData|setBlendingMode|Attempting|copyParent|find|domain|overlayImage|not|Could|credentials|listen|void|warn|Released|labToRGB|indexOf|rgbToLab|locationXY|labToXYZ|0570|2040|0557|0415|8758|9689|putPixelRelative|4986|getPixel|putPixel|toKey|toHex|5372|2406|xyzToRGB|os|cpus|Initializing|readystatechange|9505|1192|0193|0722|7152|2126|default|1805|3576|4124|hasOwnProperty|python|hslToRGB|Fetching|Version|run|rgbToHSL|charAt|Executing|constructor|keys|Start|End|__super__|setEncoding|startPixel|endPixel|extends|while|includes|delegate|Buffer|aliasFunction|Rendering|blocksFinished|camanProxyUrl|aliasProperty|flush|114|multiply|screen|overlay|587|difference|addition|exclusion|softLight|lighten|darken|299|toFixed|random|01|defineProperty|analyze|set|distance|querySelector|Function|Remote|DOMContentLoaded|querySelectorAll|detected|extend|using|calculateLevels|607|769|189|349|314|168|272|534|869|attributes|nodeValue|naturalHeight|fibers|reset|revert|backingStorePixelRatio|oBackingStorePixelRatio|msBackingStorePixelRatio|mozBackingStorePixelRatio|webkitBackingStorePixelRatio|scale|HiDPI|isNaN|split|exposure|resetOriginalPixelData|2013|missing'.split('|'),0,{})) \ No newline at end of file +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(o(){I $,2U,1B,1E,B,2Z,2Q,1s,1S,3P,V,1N,2p,22,1q,2i,1w,1P,1g,4A,1Z,1e,3A,3Q,52,3o,3S=[].br||o(7b){U(I i=0,l=8.L;iD){9 D}9 1A};1e.4f=o(2W,2f,4g){I 4i,C,13,F,2v,X;u(4g==G){4g={}}F=2W.bc;X=[];U(C=0,13=F.L;C<13;C++){4i=F[C];u((4g.5v!=G)&&(2v=4i.5u,3S.1c(4g.5v,2v)>=0)){4a}X.1y(2f.6L(4i.5u,4i.bb))}9 X};1e.4j=o(L){u(L==G){L=0}u(B.1U||(2B.7u!=G)){9 1h 7u(L)}9 1h 44(L)};9 1e})();u(1d 1M!=="2T"&&1M!==G){4A=1M;2Q=4l(\'E\');2p=2Q.2p;3P=4l(\'ba\');3A=4l(\'3A\');3Q=4l(\'3Q\')}R{4A=2B;2p=2B.2p}B=(o(8B){8g(B,8B);B.5o={6G:"4.1.2",6K:"7/27/b9"};B.6X=1I;B.4n=2o;B.5l="7m";B.5f="";B.7w="aZ";B.1U=1d 1M!=="2T"&&1M!==G;B.7G=!B.1U;B.3v=o(){9"aY "+B.5o.6G+", aX "+B.5o.6K};B.5j=o(E){u(B.1U){9 2o}u(1d E==="2E"){E=$(E)}u(!((E!=G)&&(E.3C!=G))){9 G}9 E.3C(\'1x-2g-1W\')};o B(){8.3F=6e(8.3F,8);I W,1i,1W,17=8;u(Y.L===0){1Q"3J Y";}u(8 6N B){8.3K=8.3K.5W(8);8.3O=8.3O.5W(8);W=Y[0];u(!B.1U){1W=5d(B.5j(W[0]),10);1i=1d W[1]==="o"?W[1]:1d W[2]==="o"?W[2]:o(){};u(!aW(1W)&&1Z.7e(1W)){9 1Z.2q(1W,1i)}}8.1W=1e.5F.2y();8.4o=8.3e=G;8.4m={x:0,y:0};8.7K=1I;8.4Z=1I;8.4k=[];8.5t=[];8.5w=[];8.4h=G;8.8A=1I;8.aV=1h 2U(8);8.2G=1h 1g(8);8.8D(o(){17.6B(W);9 17.6D()});9 8}R{9 1h B(Y)}}B.H.8D=o(3y){I 5x,17=8;u(B.1U){9 4S(o(){9 3y.1c(17)},0)}R{u(1J.5y==="4Q"){1q.1D("6O 6P");9 4S(o(){9 3y.1c(17)},0)}R{5x=o(){u(1J.5y==="4Q"){1q.1D("6O 6P");9 3y.1c(17)}};9 1J.6Q("aU",5x,1I)}}};B.H.6B=o(W){I 1C,1A,F,X;u(W.L===0){1Q"3J Y 6U";}8.24=G;8.4P=G;8.4O=G;8.1i=o(){};8.71(W[0]);u(W.L===1){9}3H(1d W[1]){1v"2E":8.4O=W[1];36;1v"o":8.1i=W[1]}u(W.L===2){9}8.1i=W[2];u(W.L===4){F=W[4];X=[];U(1C 3b F){u(!3T.1c(F,1C))4a;1A=F[1C];X.1y(8.1k[1C]=1A)}9 X}};B.H.71=o(1K){u(B.1U){8.24=1K;8.4P=\'7f\';9}u(1d 1K==="2t"){8.24=1K}R{8.24=$(1K)}u(8.24==G){1Q"aT aS aR Q 7t E U aQ.";}9 8.4P=8.24.5u.4e()};B.H.6D=o(){3H(8.4P){1v"7f":9 8.7x();1v"1b":9 8.7D();1v"E":9 8.7F()}};B.H.7x=o(){1q.1D("aP U 1U");u(1d 8.24==="2E"&&8.24.4H(/^7L?:\\/\\//)){9 8.7P(8.24,8.3F)}R u(1d 8.24==="2E"){9 3A.aO(8.24,8.3F)}R{9 8.3F(G,8.24)}};B.H.7P=o(49,1i){I 5B;1q.1D("aM Q 2W "+49);5B=3Q.2y(49,o(2C){I 4D;4D=\'\';2C.aL(\'8r\');2C.5C(\'1x\',o(8z){9 4D+=8z});9 2C.5C(\'1t\',o(){9 1i(G,1h aK(4D,\'8r\'))})});9 5B.5C(\'5D\',1i)};B.H.3F=o(45,1x){u(45){1Q 45;}8.Q=1h 2p();8.Q.15=1x;1q.1D("2p 8E. 8F = "+(8.32())+", 6C = "+(8.33()));8.E=1h 2Q(8.32(),8.33());9 8.3K()};B.H.7D=o(){8.Q=8.24;8.E=1J.2A(\'E\');8.1a=8.E.2k(\'2d\');1e.4f(8.Q,8.E,{5v:[\'15\']});u(8.Q.4z!=G){8.Q.4z.5H(8.E,8.Q)}8.5L();9 8.5P()};B.H.7F=o(){8.E=8.24;8.1a=8.E.2k(\'2d\');u(8.4O!=G){8.Q=1J.2A(\'1b\');8.Q.15=8.4O;8.5L();9 8.5P()}R{9 8.3K()}};B.H.5L=o(){u(8.5S()){1q.1D(8.Q.15,"->",8.5a());8.6S=2o;8.Q.15=8.5a()}u(1N.6T(8.Q)){8.Q.15=1N.2n(8.Q.15);9 1q.1D("aD Q az, ax 6Y = "+8.Q.15)}};B.H.5P=o(){u(8.6Z()){9 8.3O()}R{9 8.Q.5U=8.3O}};B.H.6Z=o(){u(!8.Q.4Q){9 1I}u((8.Q.6a!=G)&&8.Q.6a===0){9 1I}9 2o};B.H.32=o(){9 8.Q.J||8.Q.6a};B.H.33=o(){9 8.Q.P||8.Q.aw};B.H.3O=o(){1q.1D("2p 8E. 8F = "+(8.32())+", 6C = "+(8.33()));u(8.6S){8.E.J=8.32()/8.4T();8.E.P=8.33()/8.4T()}R{8.E.J=8.32();8.E.P=8.33()}9 8.3K()};B.H.3K=o(){I i,18,C,13,F;u(8.1a==G){8.1a=8.E.2k(\'2d\')}8.3k=8.3Y=8.J=8.E.J;8.3X=8.3V=8.P=8.E.P;8.7n();u(!8.7r()){8.7s()}u(8.Q!=G){8.1a.3g(8.Q,0,0,8.32(),8.33(),0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8.7B();9 8.1o={J:8.E.J,P:8.E.P}};B.H.8m=o(1i){I 17=8;u(1i==G){1i=o(){}}1S.38(8,"8q");9 8.2G.2q(o(){17.1a.4N(17.1F,0,0);9 1i.1c(17)})};B.H.ah=o(4L){I i,18,C,13,F;u(4L==G){4L=2o}u(!B.4n){1Q"6f 4F";}F=8.8w();U(i=C=0,13=F.L;C<13;i=++C){18=F[i];8.M[i]=18}u(4L){9 8.1a.4N(8.1F,0,0)}};B.H.ag=o(){I E,1L,i,1F,18,M,C,13,F;E=1J.2A(\'E\');1e.4f(8.E,E);E.J=8.3k;E.P=8.3X;1L=E.2k(\'2d\');1F=1L.2S(0,0,E.J,E.P);M=1F.1x;F=8.4o;U(i=C=0,13=F.L;C<13;i=++C){18=F[i];M[i]=18}1L.4N(1F,0,0);8.4m={x:0,y:0};8.4Z=1I;9 8.54(E)};B.H.8w=o(){I E,4G,1L,1u,6x,i,1F,18,M,4W,46,4p,5c,J,C,Z,13,F,2v,2K,6z;u(!B.4n){1Q"6f 4F";}4W=[];4p=8.4m.x;1u=4p+8.J;5c=8.4m.y;6x=5c+8.P;u(8.4Z){E=1J.2A(\'E\');E.J=8.3k;E.P=8.3X;1L=E.2k(\'2d\');1F=1L.2S(0,0,E.J,E.P);M=1F.1x;F=8.3e;U(i=C=0,13=F.L;C<13;i=++C){18=F[i];M[i]=18}1L.4N(1F,0,0);46=1J.2A(\'E\');46.J=8.J;46.P=8.P;1L=46.2k(\'2d\');1L.3g(E,0,0,8.3k,8.3X,0,0,8.J,8.P);M=1L.2S(0,0,8.J,8.P).1x;J=8.J}R{M=8.3e;J=8.3k}U(i=Z=0,2v=M.L;Z<2v;i=Z+=4){4G=1w.6J(i,J);u(((4p<=(2K=4G.x)&&2K<1u))&&((5c<=(6z=4G.y)&&6z<6x))){4W.1y(M[i],M[i+1],M[i+2],M[i+3])}}9 4W};B.H.1Y=o(11,4K){8.2G.2F({14:V.23.6t,11:11,4K:4K});9 8};B.H.6s=o(11,K,1V,26){I i,C,F;u(1V==G){1V=G}u(26==G){26=0}u(1V==G){1V=0;U(i=C=0,F=K.L;0<=F?CF;i=0<=F?++C:--C){1V+=K[i]}}8.2G.2F({14:V.23.6o,11:11,K:K,1V:1V,26:26});9 8};B.H.6n=o(2I,W){8.2G.2F({14:V.23.1P,2I:2I,W:W});9 8};B.H.6m=o(1i){I 1l;1l=1h 22(8);8.5w.1y(1l);8.2G.2F({14:V.23.6h});1i.1c(1l);8.2G.2F({14:V.23.6g});9 8};B.H.74=o(1l){9 8.75(1l)};B.H.75=o(1l){8.5t.1y(8.4h);8.4k.1y(8.M);8.4h=1l;9 8.M=1l.M};B.H.77=o(){8.M=8.4k.40();9 8.4h=8.5t.40()};B.H.78=o(){9 8.4h.7a()};9 B})(2i);4A.B=B;B.2U=(o(){o 2U(c){8.c=c}2U.H.ae=o(){I i,28,3W,C,Z,1R,F;28={r:{},g:{},b:{}};U(i=C=0;C<=D;i=++C){28.r[i]=0;28.g[i]=0;28.b[i]=0}U(i=Z=0,F=8.c.M.L;Z0)){9}X=[];U(C=0,13=3Z.L;C<13;C++){1b=3Z[C];X.1y(7o=1h 2Z(1b,o(){8.7q();9 8.2q()}))}9 X};u(B.7G){(o(){u(1J.5y==="4Q"){9 B.6A()}R{9 1J.6Q("ab",B.6A,1I)}})()}2Z=(o(){I 51;51="(\\\\w+)\\\\((.*?)\\\\)";o 2Z(2x,7v){8.7k=2x.3C(\'1x-2g\');8.2g=B(2x,7v.5W(8))}2Z.H.7q=o(){I W,e,42,39,5R,5Q,m,r,43,C,13,F,X;8.2x=8.2g.E;r=1h 7E(51,\'g\');43=8.7k.4H(r);u(!(43.L>0)){9}r=1h 7E(51);X=[];U(C=0,13=43.L;C<13;C++){5R=43[C];F=5R.4H(r),m=F[0],42=F[1],W=F[2];5Q=1h aa("9 o() { 8."+42+"("+W+"); };");5O{39=5Q();X.1y(39.1c(8.2g))}5M(3D){e=3D;X.1y(1q.1D(e))}}9 X};2Z.H.2q=o(){I 2x;2x=8.2x;9 8.2g.8m(o(){9 2x.4z.5H(8.7J(),2x)})};9 2Z})();B.1B=(o(){o 1B(){}1B.5K={};1B.19=o(11,39){9 8.5K[11]=39};1B.2q=o(11,O,N){9 8.5K[11](O,N)};9 1B})();1B=B.1B;B.1E=(o(){o 1E(){}1E.a9=o(7T,7U,7V,7W){9 S.82(S.21(7V-7T,2)+S.21(7W-7U,2))};1E.84=o(1j,T,48){I 2D;u(48==G){48=1I}2D=1j+(S.8J()*(T-1j));u(48){9 2D.a7(48)}R{9 S.4b(2D)}};1E.8h=o(A){9(0.a6*A.r)+(0.a5*A.g)+(0.a4*A.b)};1E.1O=o(1n,2O,2P,1t,3a,37){I 1O,3z,1G,1u,i,j,3r,4X,2e,t,C,Z,F;u(3a==G){3a=0}u(37==G){37=D}u(1n[0]6N 44){1G=1n;3a=2O;37=2P}R{1G=[1n,2O,2P,1t]}u(1G.L<2){1Q"3J 5s 5r Y 2f 1O";}1O={};3r=o(a,b,t){9 a*(1-t)+b*t};3z=o(a,1j,T){9 S.1j(S.T(a,1j),T)};U(i=C=0;C<6E;i=++C){t=i/6E;2e=1G;a2(2e.L>1){4X=[];U(j=Z=0,F=2e.L-2;0<=F?Z<=F:Z>=F;j=0<=F?++Z:--Z){4X.1y([3r(2e[j][0],2e[j+1][0],t),3r(2e[j][1],2e[j+1][1],t)])}2e=4X}1O[S.4b(2e[0][0])]=S.4b(3z(2e[0][1],3a,37))}1u=1G[1G.L-1][0];1O=B.1E.5p(1O,1u);u(1O[1u]==G){1O[1u]=1O[1u-1]}9 1O};1E.6H=o(1G,3a,37){I 2F,3z,5n,1u,56,57,58,59,i,j,3r,5m,5k,2Y,p,3M,3L,2V,5h,5g,2b,5b,t,C,Z,F,17=8;u(1G.L<2){1Q"3J 5s 5r Y 2f 6H";}2b={};3r=o(a,b,t){9 a*(1-t)+b*t};2F=o(a,b,c,d){9[a[0]+b[0]+c[0]+d[0],a[1]+b[1]+c[1]+d[1]]};2Y=o(a,b){9[a[0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*(y-z);9{l:l,a:a,b:b}};1s.9v=o(l,a,b){I x,y,z;u(1d l==="2t"){a=l.a;b=l.b;l=l.l}y=(l+16)/7X;x=y+(a/7Y);z=y-(b/7Z);u(x>0.68){x=x*x*x}R{x=0.69*(x-0.3p)}u(y>0.68){y=y*y*y}R{y=0.69*(y-0.3p)}u(z>0.68){z=z*z*z}R{z=0.69*(z-0.3p)}9{x:x*95.7Q,y:y*1r.0,z:z*7R.7S}};1s.9u=o(r,g,b){I 6b;u(1d r==="2t"){g=r.g;b=r.b;r=r.r}6b=8.7l(r,g,b);9 8.7M(6b)};1s.9t=o(l,a,b){};9 1s})();1s=B.1s;B.1S=(o(){o 1S(){}1S.3c={};1S.87=["88","89","8q","8a","8b","3n"];1S.38=o(25,14,1x){I 3U,C,13,F,X;u(1x==G){1x=G}u(8.3c[14]&&8.3c[14].L){F=8.3c[14];X=[];U(C=0,13=F.L;C<13;C++){3U=F[C];u(3U.25===G||25.1W===3U.25.1W){X.1y(3U.2r.1c(25,1x))}R{X.1y(9s 0)}}9 X}};1S.9r=o(25,14,2r){I 6i,6j;u(1d 25==="2E"){6j=25;6i=14;25=G;14=6j;2r=6i}u(3S.1c(8.87,14)<0){9 1I}u(!8.3c[14]){8.3c[14]=[]}8.3c[14].1y({25:25,2r:2r});9 2o};9 1S})();1S=B.1S;B.V=(o(){o V(){}V.23={6t:1,6o:2,6h:3,6g:4,6k:5,6l:7,1P:6};V.19=o(11,8j){9 B.H[11]=8j};9 V})();V=B.V;B.1N=(o(){o 1N(){}1N.8k=/(?:(?:3Q|7L):\\/\\/)((?:\\w+)\\.(?:(?:\\w|\\.)+))/;1N.6T=o(1b){u(1b==G){9 1I}u(8.8l(1b)){9 1I}9 8.4E(1b.15)};1N.8l=o(1b){I F;9(1b.5l!=G)&&((F=1b.5l.4e())===\'7m\'||F===\'8n-9p\')};1N.4E=o(49){I 4w;4w=49.4H(8.8k);u(4w){9 4w[1]!==1J.9n}R{9 1I}};1N.6q=o(15){u(8.4E(15)){u(!B.5f.L){1q.6r("9m 2f 9k a 8v Q 9g a 9f 8y. 6Y: "+15)}R{u(B.4E(B.5f)){1q.6r("9e 8n a 8v 8y U 93 91.");9}9 8.2n(15)}}};1N.2n=o(15){9""+B.5f+"?"+B.7w+"="+(90(15))};1N.8U=o(34){I 5i;5i={8T:\'8S\',8R:\'8K\',a8:\'8L\',8M:\'8N\'};34=34.4e();u(5i[34]!=G){34=5i[34]}9"8O/8P."+34};9 1N})();B.H.8Q=o(){u(1d 1M!=="2T"&&1M!==G){9 8.8I.2J(8,Y)}R{9 8.8H.2J(8,Y)}};B.H.8H=o(14){I Q;u(14==G){14="8G"}14=14.4e();Q=8.6y(14).8V("Q/"+14,"Q/8W-8X");9 1J.8Y.8Z=Q};B.H.8I=o(3j,4J,1i){I e,6v;u(4J==G){4J=2o}u(1i==G){1i=G}5O{6v=3A.94(3j);u(6v.96()&&!4J){9 1I}}5M(3D){e=3D;1q.1D("97 98 3j "+3j)}9 3A.99(3j,8.E.9a(),o(45){1q.1D("9b 9c 2f "+3j);u(1i){9 1i.1c(8,45)}})};B.H.7J=o(14){I 1b;1b=1h 2p();1b.15=8.6y(14);1b.J=8.1o.J;1b.P=8.1o.P;u(2B.2H){1b.J/=2B.2H;1b.P/=2B.2H}9 1b};B.H.6y=o(14){u(14==G){14="8G"}14=14.4e();9 8.E.9d("Q/"+14)};1N=B.1N;B.22=(o(){o 22(c){8.c=c;8.42=8.c;8.1k={6u:\'8x\',29:1.0};8.9h=1e.5F.2y();8.E=1d 1M!=="2T"&&1M!==G?1h 2Q():1J.2A(\'E\');8.E.J=8.c.1o.J;8.E.P=8.c.1o.P;8.1a=8.E.2k(\'2d\');8.1a.9i(8.E.J,8.E.P);8.1F=8.1a.2S(0,0,8.E.J,8.E.P);8.M=8.1F.1x}22.H.6m=o(3y){9 8.c.6m.1c(8.c,3y)};22.H.9j=o(8u){8.1k.6u=8u;9 8};22.H.29=o(29){8.1k.29=29/1r;9 8};22.H.9l=o(){I i,20,C,F;20=8.c.M;U(i=C=0,F=8.c.M.L;C8.c.M.L||2j<0){9 1h 1w(0,0,0,D,8.c)}9 8.5T(2j)};1w.H.9J=o(5e,4q,A){I 7y;u(8.c==G){1Q"3t a 3w 1a";}7y=8.1m+(8.c.1o.J*4*(4q*-1))+(4*5e);u(2j>8.c.M.L||2j<0){9}8.c.M[2j]=A.r;8.c.M[2j+1]=A.g;8.c.M[2j+2]=A.b;8.c.M[2j+3]=A.a;9 2o};1w.H.9L=o(x,y){I 1m;u(8.c==G){1Q"3t a 3w 1a";}1m=8.5X(x,y,8.J);9 8.5T(1m)};1w.H.9M=o(x,y,A){I 1m;u(8.c==G){1Q"3t a 3w 1a";}1m=8.5X(x,y,8.J);8.c.M[1m]=A.r;8.c.M[1m+1]=A.g;8.c.M[1m+2]=A.b;9 8.c.M[1m+3]=A.a};1w.H.3v=o(){9 8.9N()};1w.H.9O=o(4u){I 2c;u(4u==G){4u=1I}2c=\'#\'+8.r.3v(16)+8.g.3v(16)+8.b.3v(16);u(4u){9 2c+8.a.3v(16)}R{9 2c}};9 1w})();1w=B.1w;B.1P=(o(){o 1P(){}1P.5N={};1P.19=o(11,2I){9 8.5N[11]=2I};1P.2q=o(1a,11,W){9 8.5N[11].2J(1a,W)};9 1P})();1P=B.1P;B.1g=(o(){1g.2X=B.1U?4l(\'9S\').9T().L:4;o 1g(c){8.c=c;8.2u=6e(8.2u,8);8.3u=[];8.3f=G}1g.H.2F=o(5J){u(5J==G){9}9 8.3u.1y(5J)};1g.H.2u=o(){I 1l;u(8.3u.L===0){1S.38(8,"8a");u(8.5I!=G){8.5I.1c(8.c)}9 8}8.1p=8.3u.79();3H(8.1p.14){1v V.23.6h:1l=8.c.5w.79();8.c.74(1l);9 8.2u();1v V.23.6g:8.c.78();8.c.77();9 8.2u();1v V.23.6k:9 8.76(8.1p.1l,8.1p.15);1v V.23.6l:9 8.73(8.1p.1l,8.1p.15);1v V.23.1P:9 8.6F();a3:9 8.8o()}};1g.H.2q=o(1i){8.5I=1i;8.3f=1e.4j(8.c.M.L);9 8.2u()};1g.H.5z=o(2r){I 4d,5A,1T,1t,f,i,5G,n,1n,C,F,X,17=8;8.4Y=0;n=8.c.M.L;5A=S.2M((n/4)/1g.2X);4d=5A*4;5G=4d+((n/4)%1g.2X)*4;X=[];U(i=C=0,F=1g.2X;0<=F?CF;i=0<=F?++C:--C){1n=i*4d;1t=1n+(i===1g.2X-1?5G:4d);u(B.1U){f=3P(o(){9 2r.1c(17,i,1n,1t)});1T=f.ac();X.1y(8.3n(1T))}R{X.1y(4S((o(i,1n,1t){9 o(){9 2r.1c(17,i,1n,1t)}})(i,1n,1t),0))}}9 X};1g.H.8o=o(){1S.38(8.c,"88",8.1p);u(8.1p.14===V.23.6t){9 8.5z(8.7p)}R{9 8.5z(8.7c)}};1g.H.6F=o(){1q.1D("af 2I "+8.1p.2I);1P.2q(8.c,8.1p.2I,8.1p.W);1q.1D("1P "+8.1p.2I+" 6w!");9 8.2u()};1g.H.7p=o(1T,1n,1t){I i,18,C;1q.1D("8s #"+1T+" - V: "+8.1p.11+", ai: "+1n+", aj: "+1t);1S.38(8.c,"8b",{8e:1T,8d:1g.2X,am:1n,an:1t});18=1h 1w();18.5V(8.c);U(i=C=1n;C<1t;i=C+=4){18.1m=i;18.r=8.c.M[i];18.g=8.c.M[i+1];18.b=8.c.M[i+2];18.a=8.c.M[i+3];8.1p.4K(18);8.c.M[i]=1e.2h(18.r);8.c.M[i+1]=1e.2h(18.g);8.c.M[i+2]=1e.2h(18.b);8.c.M[i+3]=1e.2h(18.a)}u(B.1U){9 3P["8c"](1T)}R{9 8.3n(1T)}};1g.H.7c=o(1T,1n,1t){I K,3R,26,1X,3x,1V,i,j,k,2m,n,11,p,18,2C,C,Z,1R;11=8.1p.11;26=8.1p.26;1V=8.1p.1V;n=8.c.M.L;K=8.1p.K;3R=S.82(K.L);2m=[];1q.1D("au 2m - V: "+8.1p.11);1n=S.T(1n,8.c.1o.J*4*((3R-1)/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l,15){I 1b,2n,17=8;1b=1h 2p();1b.5U=o(){I E,1a,3l;E=1d 1M!=="2T"&&1M!==G?1h 2Q():1J.2A(\'E\');E.J=17.c.1o.J;E.P=17.c.1o.P;1a=E.2k(\'2d\');1a.3g(1b,0,0,17.c.1o.J,17.c.1o.P);3l=1a.2S(0,0,17.c.1o.J,17.c.1o.P);1l.3l=3l.1x;9 17.2u()};2n=1N.6q(15);9 1b.15=2n!=G?2n:15};9 1g})();1g=B.1g;B.1Z=(o(){o 1Z(){}1Z.3h={};1Z.7e=o(2L){9 8.3h[2L]!=G};1Z.2y=o(2L){9 8.3h[2L]};1Z.7A=o(11,1K){9 8.3h[11]=1K};1Z.2q=o(2L,1i){I 17=8;4S(o(){9 1i.1c(17.2y(2L),17.2y(2L))},0);9 8.2y(2L)};1Z.ay=o(11){u(11==G){11=1I}u(11){9 6W 8.3h[11]}R{9 8.3h={}}};9 1Z})();1Z=B.1Z;1B.19("8x",o(O,N){9{r:O.r,g:O.g,b:O.b}});1B.19("aA",o(O,N){9{r:(O.r*N.r)/D,g:(O.g*N.g)/D,b:(O.b*N.b)/D}});1B.19("aB",o(O,N){9{r:D-(((D-O.r)*(D-N.r))/D),g:D-(((D-O.g)*(D-N.g))/D),b:D-(((D-O.b)*(D-N.b))/D)}});1B.19("aC",o(O,N){I 1f;1f={};1f.r=N.r>1z?D-2*(D-O.r)*(D-N.r)/D:(N.r*O.r*2)/D;1f.g=N.g>1z?D-2*(D-O.g)*(D-N.g)/D:(N.g*O.g*2)/D;1f.b=N.b>1z?D-2*(D-O.b)*(D-N.b)/D:(N.b*O.b*2)/D;9 1f});1B.19("aE",o(O,N){9{r:O.r-N.r,g:O.g-N.g,b:O.b-N.b}});1B.19("aF",o(O,N){9{r:N.r+O.r,g:N.g+O.g,b:N.b+O.b}});1B.19("aG",o(O,N){9{r:1z-2*(N.r-1z)*(O.r-1z)/D,g:1z-2*(N.g-1z)*(O.g-1z)/D,b:1z-2*(N.b-1z)*(O.b-1z)/D}});1B.19("aH",o(O,N){I 1f;1f={};1f.r=N.r>1z?D-((D-N.r)*(D-(O.r-1z)))/D:(N.r*(O.r+1z))/D;1f.g=N.g>1z?D-((D-N.g)*(D-(O.g-1z)))/D:(N.g*(O.g+1z))/D;1f.b=N.b>1z?D-((D-N.b)*(D-(O.b-1z)))/D:(N.b*(O.b+1z))/D;9 1f});1B.19("aI",o(O,N){9{r:N.r>O.r?N.r:O.r,g:N.g>O.g?N.g:O.g,b:N.b>O.b?N.b:O.b}});1B.19("aJ",o(O,N){9{r:N.r>O.r?O.r:N.r,g:N.g>O.g?O.g:N.g,b:N.b>O.b?O.b:N.b}});V.19("4s",o(){I 3s;u(Y.L===1){3s=1s.5q(Y[0])}R{3s={r:Y[0],g:Y[1],b:Y[2]}}9 8.1Y("4s",o(A){A.r=3s.r;A.g=3s.g;A.b=3s.b;A.a=D;9 A})});V.19("8p",o(K){K=S.2M(D*(K/1r));9 8.1Y("8p",o(A){A.r+=K;A.g+=K;A.b+=K;9 A})});V.19("86",o(K){K*=-0.aN;9 8.1Y("86",o(A){I T;T=S.T(A.r,A.g,A.b);u(A.r!==T){A.r+=(T-A.r)*K}u(A.g!==T){A.g+=(T-A.g)*K}u(A.b!==T){A.b+=(T-A.b)*K}9 A})});V.19("81",o(K){K*=-1;9 8.1Y("81",o(A){I 4c,2N,T;T=S.T(A.r,A.g,A.b);2N=(A.r+A.g+A.b)/3;4c=((S.2R(T-2N)*2/D)*K)/1r;u(A.r!==T){A.r+=(T-A.r)*4c}u(A.g!==T){A.g+=(T-A.g)*4c}u(A.b!==T){A.b+=(T-A.b)*4c}9 A})});V.19("7j",o(K){9 8.1Y("7j",o(A){I 2N;2N=1E.8h(A);A.r=2N;A.g=2N;A.b=2N;9 A})});V.19("7h",o(K){K=S.21((K+1r)/1r,2);9 8.1Y("7h",o(A){A.r/=D;A.r-=0.5;A.r*=K;A.r+=0.5;A.r*=D;A.g/=D;A.g-=0.5;A.g*=K;A.g+=0.5;A.g*=D;A.b/=D;A.b-=0.5;A.b*=K;A.b+=0.5;A.b*=D;9 A})});V.19("6R",o(K){9 8.1Y("6R",o(A){I b,g,h,31,r,F;31=1s.7g(A.r,A.g,A.b);h=31.h*1r;h+=S.2R(K);h=h%1r;h/=1r;31.h=h;F=1s.7i(31.h,31.s,31.v),r=F.r,g=F.g,b=F.b;A.r=r;A.g=g;A.b=b;9 A})});V.19("7d",o(){I 3i,35;u(Y.L===2){35=1s.5q(Y[0]);3i=Y[1]}R u(Y.L===4){35={r:Y[0],g:Y[1],b:Y[2]};3i=Y[3]}9 8.1Y("7d",o(A){A.r-=(A.r-35.r)*(3i/1r);A.g-=(A.g-35.g)*(3i/1r);A.b-=(A.b-35.b)*(3i/1r);9 A})});V.19("85",o(){9 8.1Y("85",o(A){A.r=D-A.r;A.g=D-A.g;A.b=D-A.b;9 A})});V.19("7z",o(K){u(K==G){K=1r}K/=1r;9 8.1Y("7z",o(A){A.r=S.1j(D,(A.r*(1-(0.b0*K)))+(A.g*(0.b1*K))+(A.b*(0.b2*K)));A.g=S.1j(D,(A.r*(0.b3*K))+(A.g*(1-(0.b4*K)))+(A.b*(0.b5*K)));A.b=S.1j(D,(A.r*(0.b6*K))+(A.g*(0.b7*K))+(A.b*(1-(0.b8*K))));9 A})});V.19("6V",o(K){9 8.1Y("6V",o(A){A.r=S.21(A.r/D,K)*D;A.g=S.21(A.g/D,K)*D;A.b=S.21(A.b/D,K)*D;9 A})});V.19("6M",o(K){K=S.2R(K)*2.55;9 8.1Y("6M",o(A){I 2D;2D=1E.84(K*-1,K);A.r+=2D;A.g+=2D;A.b+=2D;9 A})});V.19("70",o(K){K=S.2R(K)*2.55;9 8.1Y("70",o(A){u(A.r>D-K){A.r=D}R u(A.rD-K){A.g=D}R u(A.gD-K){A.b=D}R u(A.b0){A.r+=(D-A.r)*1k.4B}R{A.r-=A.r*S.2R(1k.4B)}}u(1k.4v!=G){u(1k.4v>0){A.g+=(D-A.g)*1k.4v}R{A.g-=A.g*S.2R(1k.4v)}}u(1k.4t!=G){u(1k.4t>0){A.b+=(D-A.b)*1k.4t}R{A.b-=A.b*S.2R(1k.4t)}}9 A})});V.19("4r",o(){I 41,1O,2s,2l,1t,i,3q,1n,C,Z,F,2v;2s=Y[0],2l=2<=Y.L?3G.1c(Y,1):[];3q=2l[2l.L-1];u(1d 3q==="o"){41=3q;2l.40()}R u(1d 3q==="2E"){41=1E[3q];2l.40()}R{41=1E.1O}u(1d 2s==="2E"){2s=2s.bm("")}u(2s[0]==="v"){2s=[\'r\',\'g\',\'b\']}u(2l.L<2){1Q"3J 5s 5r Y 2f 4r 42";}1O=41(2l,0,D);1n=2l[0];u(1n[0]>0){U(i=C=0,F=1n[0];0<=F?CF;i=0<=F?++C:--C){1O[i]=1n[1]}}1t=2l[2l.L-1];u(1t[0]=D;i=2v<=D?++Z:--Z){1O[i]=1t[1]}}9 8.1Y("4r",o(A){I 1R,2K;U(i=1R=0,2K=2s.L;0<=2K?1R<2K:1R>2K;i=0<=2K?++1R:--1R){A[2s[i]]=1O[A[2s[i]]]}9 A})});V.19("bn",o(K){I 2O,2P,p;p=S.2R(K)/1r;2O=[0,D*p];2P=[D-(D*p),D];u(K<0){2O=2O.8C();2P=2P.8C()}9 8.4r(\'35\',[0,0],2O,2P,[D,D])});B.1P.19("6c",o(J,P,x,y){I E,1L;u(x==G){x=0}u(y==G){y=0}u(1d 1M!=="2T"&&1M!==G){E=1h 2Q(J,P)}R{E=1J.2A(\'E\');1e.4f(8.E,E);E.J=J;E.P=P}1L=E.2k(\'2d\');1L.3g(8.E,x,y,J,P,0,0,J,P);8.4m={x:x,y:y};8.7K=2o;9 8.54(E)});B.1P.19("4I",o(1H){I E,1L;u(1H==G){1H=G}u(1H===G||((1H.J==G)&&(1H.P==G))){1q.5D("3J 7t bs 1o 6U U 4I");9}u(1H.J==G){1H.J=8.E.J*1H.P/8.E.P}R u(1H.P==G){1H.P=8.E.P*1H.J/8.E.J}u(1d 1M!=="2T"&&1M!==G){E=1h 2Q(1H.J,1H.P)}R{E=1J.2A(\'E\');1e.4f(8.E,E);E.J=1H.J;E.P=1H.P}1L=E.2k(\'2d\');1L.3g(8.E,0,0,8.E.J,8.E.P,0,0,1H.J,1H.P);8.4Z=2o;9 8.54(E)});B.V.19("6c",o(){9 8.6n("6c",44.H.3o.1c(Y,0))});B.V.19("4I",o(){9 8.6n("4I",44.H.3o.1c(Y,0))})}).1c(8);',62,711,'||||||||this|return|||||||||||||||function||||||if||||||rgba|Caman|_i|255|canvas|_ref|null|prototype|var|width|adjust|length|pixelData|rgbaParent|rgbaLayer|height|image|else|Math|max|for|Filter|args|_results|arguments|_j||name||_len|type|src||_this|pixel|register|context|img|call|typeof|Util|result|Renderer|new|callback|min|options|layer|loc|start|dimensions|currentJob|Log|100|Convert|end|endX|case|Pixel|data|push|128|val|Blender|key|debug|Calculate|imageData|controlPoints|newDims|false|document|obj|ctx|exports|IO|bezier|Plugin|throw|_k|Event|bnum|NodeJS|divisor|id|builder|process|Store|parentData|pow|Layer|Type|initObj|target|bias||levels|opacity|055|ret|hex||prev|to|caman|clampRGB|Module|newLoc|getContext|cps|kernel|proxyUrl|true|Image|execute|fn|chans|object|processNext|_ref1|ratio|ele|get|value|createElement|window|res|rand|string|add|renderer|devicePixelRatio|plugin|apply|_ref2|search|floor|avg|ctrl1|ctrl2|Canvas|abs|getImageData|undefined|Analyze|pointsPerSegment|from|Blocks|mul|CamanParser|values|hsv|imageWidth|imageHeight|lang|rgb|break|highBound|trigger|func|lowBound|in|events|layerData|originalPixelData|modPixelData|drawImage|items|level|file|originalWidth|maskData|leftCoord|blockFinished|slice|1379310345|last|lerp|color|Requires|renderQueue|toString|CamanJS|builderIndex|cb|clamp|fs|child|getAttribute|_error|parent|nodeFileReady|__slice|switch|chan|Invalid|finishInit|p1|p0|copy|imageLoaded|Fiber|http|adjustSize|__indexOf|__hasProp|event|preScaledHeight|numPixels|originalHeight|preScaledWidth|imgs|pop|algo|filter|unparsedInstructions|Array|err|scaledCanvas|prop|getFloat|url|continue|round|amt|blockN|toLowerCase|copyAttributes|opts|currentLayer|attr|dataArray|pixelStack|require|cropCoordinates|allowRevert|initializedPixelData|startX|vert|curves|fillColor|blue|includeAlpha|green|matches|sel|root|parentNode|Root|red|dest|buf|isURLRemote|disabled|coord|match|resize|overwrite|processFn|updateContext|hueToRGB|putImageData|imageUrl|initType|complete|oldCanvas|setTimeout|hiDPIRatio|Logger|source|pixels|next|blocksDone|resized|substr|INST_REGEX|moduleKeywords|rightCoord|replaceCanvas||fac0|fac1|fac2|fac3|hiDPIReplacement|sub|startY|parseInt|horiz|remoteProxy|pos|pointsPerStep|langToExt|getAttrId|m1|crossOrigin|m0|count|version|missingValues|hexToRGB|of|number|layerStack|nodeName|except|canvasQueue|listener|readyState|eachBlock|blockPixelLength|req|on|error|04045|uniqid|lastBlockN|replaceChild|finishedFn|job|blenders|imageAdjustments|catch|plugins|try|waitForImageLoaded|instFunc|inst|needsHiDPISwap|pixelAtLocation|onload|setContext|bind|coordinatesToLocation|console|0031308|4166666667|whiteX|whiteY|whiteZ|008856451679|3333333333|787037037|included|2068965517|1284185493|naturalWidth|xyz|crop|ctor|__bind|Revert|LayerFinished|LayerDequeue|_fn|_type|LoadOverlay|LoadLayerMask|newLayer|processPlugin|Kernel|backingStoreRatio|remoteCheck|info|processKernel|Single|blendingMode|stats|finished|endY|toBase64|_ref3|DOMUpdated|parseArguments|Height|setup|1000|executePlugin|release|hermite|extended|locationToCoordinates|date|setAttribute|noise|instanceof|DOM|initialized|addEventListener|hue|swapped|isRemote|given|gamma|delete|DEBUG|URL|isImageLoaded|clip|setInitObject|me|loadLayerMask|executeLayer|pushContext|loadOverlay|popContext|applyCurrentLayer|shift|applyToParent|item|renderKernel|colorize|has|node|rgbToHSV|contrast|hsvToRGB|greyscale|dataStr|rgbToXYZ|anonymous|hiDPIAdjustments|parser|renderBlock|parse|hasId|assignId|or|Uint8Array|ready|proxyParam|initNode|nowLoc|sepia|put|reloadCanvasData|getPixelRelative|initImage|RegExp|initCanvas|autoload|hiDPIDisabled|hidpi|toImage|cropped|https|xyzToLab|style|px|readFromHttp|047|108|883|x1|y1|x2|y2|116|500|200|log|vibrance|sqrt|Object|randomRange|invert|saturation|types|processStart|processComplete|renderFinished|blockStarted|yield|totalBlocks|blockNum|hiDPICapable|__extends|luminance|newCanvas|filterFunc|domainRegex|corsEnabled|render|use|executeFilter|brightness|renderStart|binary|Block|channels|mode|remote|originalVisiblePixels|normal|proxy|chunk|scaled|_super|reverse|domIsLoaded|loaded|Width|png|browserSave|nodeSave|random|py|pl|javascript|js|proxies|caman_proxy|save|python|rb|ruby|useProxy|replace|octet|stream|location|href|encodeURIComponent|images||loading|statSync||isFile|Creating|output|writeFile|toBuffer|Finished|writing|toDataURL|Cannot|configured|without|layerID|createImageData|setBlendingMode|load|copyParent|Attempting|domain|overlayImage|credentials|layerMask|listen|void|labToRGB|rgbToLab|labToXYZ|warn|0570|2040|0557|0415|locationXY|8758|9689|4986|5372|2406|xyzToRGB|9505|putPixelRelative|1192|getPixel|putPixel|toKey|toHex|0193|0722|7152|os|cpus|2126|1805|3576|4124|hslToRGB|rgbToHSL|charAt|keys|while|default|114|587|299|toFixed|perl|distance|Function|DOMContentLoaded|run|querySelectorAll|calculateLevels|Executing|reset|revert|Start|End|backingStorePixelRatio|oBackingStorePixelRatio|startPixel|endPixel|msBackingStorePixelRatio|mozBackingStorePixelRatio|webkitBackingStorePixelRatio|scale|HiDPI|resetOriginalPixelData|Rendering|blocksFinished|naturalHeight|using|flush|detected|multiply|screen|overlay|Remote|difference|addition|exclusion|softLight|lighten|darken|Buffer|setEncoding|Fetching|01|readFile|Initializing|initialization|find|not|Could|readystatechange|analyze|isNaN|Released|Version|camanProxyUrl|607|769|189|349|314|168|272|534|869|2013|fibers|nodeValue|attributes|extend|querySelector|set|defineProperty|aliasProperty|aliasFunction|delegate|includes|extends|split|exposure|__super__|constructor|hasOwnProperty|indexOf|missing'.split('|'),0,{})) \ No newline at end of file diff --git a/examples/browser/index.html b/examples/browser/index.html index 9f1d5d1c..9c37604e 100644 --- a/examples/browser/index.html +++ b/examples/browser/index.html @@ -7,6 +7,12 @@