tencentcloud-webar 1.0.23-12 → 1.0.23-14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var self = wx;var a0Bd=a0b;(function(b,d){var cP=a0b,f=b();while(!![]){try{var g=-parseInt(cP(0x255))/0x1+-parseInt(cP(0x538))/0x2*(parseInt(cP(0x16c))/0x3)+parseInt(cP(0x66e))/0x4*(parseInt(cP(0x567))/0x5)+-parseInt(cP(0x91b))/0x6*(parseInt(cP(0x373))/0x7)+parseInt(cP(0x7b6))/0x8*(parseInt(cP(0x7e7))/0x9)+parseInt(cP(0x631))/0xa+-parseInt(cP(0x36b))/0xb*(-parseInt(cP(0x782))/0xc);if(g===d)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a0a,0x56e35));var t,e={0xd9b:function(b){var cQ=a0b;b[cQ(0x704)]=(function(){var cZ=cQ,a0=function(bg,bh){var cR=a0b;return(a0=Object[cR(0x43e)]||{'__proto__':[]}instanceof Array&&function(bi,bj){bi['__proto__']=bj;}||function(bi,bj){var cS=cR;for(var bk in bj)Object[cS(0x32e)][cS(0x16f)]['call'](bj,bk)&&(bi[bk]=bj[bk]);})(bg,bh);};function a1(bg,bh){var cT=a0b;function bi(){this['constructor']=bg;}a0(bg,bh),bg[cT(0x32e)]=null===bh?Object['create'](bh):(bi['prototype']=bh[cT(0x32e)],new bi());}var a2=function(){var cV=a0b;return(a2=Object['assign']||function(bg){var cU=a0b;for(var bh,bi=0x1,bj=arguments[cU(0x4ae)];bi<bj;bi++)for(var bk in bh=arguments[bi])Object[cU(0x32e)][cU(0x16f)][cU(0x8fb)](bh,bk)&&(bg[bk]=bh[bk]);return bg;})[cV(0x6e8)](this,arguments);};function a3(bg,bh){var cW=a0b,bi,bj,bk,bl={'label':0x0,'sent':function(){if(0x1&bk[0x0])throw bk[0x1];return bk[0x1];},'trys':[],'ops':[]},bm={'next':bn(0x0),'throw':bn(0x1),'return':bn(0x2)};return'function'==typeof Symbol&&(bm[Symbol[cW(0x28f)]]=function(){return this;}),bm;function bn(bo){return function(bp){var cX=a0b,bq=[bo,bp];if(bi)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;bl;)try{if(bi=0x1,bj&&(bk=0x2&bq[0x0]?bj[cX(0x1bc)]:bq[0x0]?bj[cX(0x626)]||((bk=bj[cX(0x1bc)])&&bk[cX(0x8fb)](bj),0x0):bj['next'])&&!(bk=bk[cX(0x8fb)](bj,bq[0x1]))[cX(0x79a)])return bk;switch(bj=0x0,(bq=bk?[0x2&bq[0x0],bk[cX(0x4a9)]]:bq)[0x0]){case 0x0:case 0x1:bk=bq;break;case 0x4:return bl[cX(0x8a7)]++,{'value':bq[0x1],'done':!0x1};case 0x5:bl[cX(0x8a7)]++,bj=bq[0x1],bq=[0x0];continue;case 0x7:bq=bl[cX(0x22e)]['pop'](),bl[cX(0x1e0)][cX(0x806)]();continue;default:if(!((bk=0x0<(bk=bl['trys'])[cX(0x4ae)]&&bk[bk[cX(0x4ae)]-0x1])||0x6!==bq[0x0]&&0x2!==bq[0x0])){bl=0x0;continue;}if(0x3===bq[0x0]&&(!bk||bq[0x1]>bk[0x0]&&bq[0x1]<bk[0x3]))bl['label']=bq[0x1];else{if(0x6===bq[0x0]&&bl[cX(0x8a7)]<bk[0x1])bl['label']=bk[0x1],bk=bq;else{if(!(bk&&bl['label']<bk[0x2])){bk[0x2]&&bl[cX(0x22e)][cX(0x806)](),bl[cX(0x1e0)][cX(0x806)]();continue;}bl[cX(0x8a7)]=bk[0x2],bl[cX(0x22e)][cX(0x3ef)](bq);}}}bq=bh[cX(0x8fb)](bg,bl);}catch(br){bq=[0x6,br],bj=0x0;}finally{bi=bk=0x0;}if(0x5&bq[0x0])throw bq[0x1];return{'value':bq[0x0]?bq[0x1]:void 0x0,'done':!0x0};};}}function a4(){var cY=a0b;for(var bg=0x0,bh=0x0,bi=arguments[cY(0x4ae)];bh<bi;bh++)bg+=arguments[bh][cY(0x4ae)];var bj=Array(bg),bk=0x0;for(bh=0x0;bh<bi;bh++)for(var bl=arguments[bh],bm=0x0,bn=bl[cY(0x4ae)];bm<bn;bm++,bk++)bj[bk]=bl[bm];return bj;}Object[cZ(0x961)]||Object['defineProperty'](Object,'assign',{'enumerable':!0x1,'configurable':!0x0,'writable':!0x0,'value':function(bg){var d0=cZ;if(null==bg)throw new TypeError(d0(0x417));for(var bh=Object(bg),bi=0x1;bi<arguments[d0(0x4ae)];bi++)if(null!=(bj=arguments[bi]))for(var bj=Object(bj),bk=Object[d0(0x8c8)](Object(bj)),bl=0x0,bm=bk[d0(0x4ae)];bl<bm;bl++){var bn=bk[bl],bo=Object[d0(0x639)](bj,bn);null!=bo&&bo[d0(0x8f9)]&&(bh[bn]=bj[bn]);}return bh;}});var a5=['ext1',cZ(0x521),cZ(0x7ce),cZ(0x7a5),'trace',cZ(0x71b),cZ(0x735),cZ(0x429)],a6=(a8['prototype'][cZ(0x50a)]=function(bg,bh){var d1=cZ;for(var bi=0x0;bi<bg[d1(0x4ae)];bi++)if(bg[bi]['callback']===bh)return bi;return-0x1;},a8[cZ(0x32e)]['on']=function(bg,bh,bi){var d2=cZ,bj;if(void 0x0===bi&&(bi=0x0),this)return(bj=this[d2(0x361)][bg])||(this[d2(0x361)][bg]=[],bj=this[d2(0x361)][bg]),-0x1===this['indexOf'](bj,bh)&&bj['push']({'name':bg,'type':bi||0x0,'callback':bh}),this;},a8[cZ(0x32e)][cZ(0x3c1)]=function(bg,bh){this['on'](bg,bh,0x1);},a8['prototype'][cZ(0x588)]=function(bg,bh){var d3=cZ;if(this){var bi=this[d3(0x361)][bg];if(bi){if(bh)return bi[d3(0x4ae)]&&(bh=this[d3(0x50a)](bi,bh),bi[d3(0x5c3)](bh,0x1)),this;try{delete this[d3(0x361)][bg];}catch(bj){}}return null;}},a8[cZ(0x32e)][cZ(0x515)]=function(){var d4=cZ;this[d4(0x361)]={};},a8),a7=function(bg){var d5=cZ;if(!bg||0x0===bg[d5(0x4ae)])return'{}';bg=Array[d5(0x3b2)](bg)?bg:[bg];var bh=Object[d5(0x8c8)](bg[0x0]),bi={},bj=(bh[d5(0x280)](function(bk){var d6=d5;bi[bk]=bg[d6(0x5bf)](function(bl){return bl[bk];});}),bi[d5(0x86c)]=bg[d5(0x4ae)],bi);if('string'==typeof bj)return bj;try{return JSON[d5(0x975)](bj,aj())||d5(0x30a);}catch(bk){return'error\x20happen\x20when\x20aegis\x20stringify:\x20\x0a\x20'+bk[d5(0x8e7)]+'\x20\x0a\x20'+bk[d5(0x7bd)];}};function a8(){var d8=cZ,bg=this;this['emit']=function(bh,bi){var d7=a0b;if(bg){var bj;if(null!=(bk=bg[d7(0x361)][bh])&&bk[d7(0x4ae)])for(var bk=bk['slice'](),bl=0x0;bl<bk[d7(0x4ae)];bl++){bj=bk[bl];try{var bm=bj[d7(0x78c)][d7(0x6e8)](bg,[bi]);if(0x1===bj[d7(0x9b1)]&&bg[d7(0x588)](bh,bj[d7(0x78c)]),!0x1===bm)break;}catch(bn){throw bn;}}return bg;}},this[d8(0x361)]={};}function a9(bg,bh){var d9=cZ;return'string'==typeof bg?bg[d9(0x329)]('?')[bh?0x1:0x0]||'':bg;}function aa(bg){var da=cZ;return da(0x940)==typeof bg&&bg[da(0x4c5)]('//')?da(0x30a)!=typeof location&&da(0x319)===location[da(0x809)]:/^https/['test'](bg);}function ab(bg,bh,bi){var db=cZ,bj,bk;try{if(db(0x3b5)==typeof(null==bh?void 0x0:bh[db(0x237)]))return{'code':void 0x0===(bl=(bk=bh['retCodeHandler'](bg,null==bi?void 0x0:bi[db(0x90b)],null==bi?void 0x0:bi['ctx'])||{})[db(0x429)])?db(0x192):bl,'isErr':bk[db(0x318)]};db(0x940)==typeof bg&&(bg=JSON[db(0x9d4)](bg)),db(0x3b5)==typeof(null==(bj=null==bh?void 0x0:bh['ret'])?void 0x0:bj[db(0x9ea)])&&(ai=[][db(0x1a4)](bh[db(0x84d)][db(0x5bf)](function(bn){var dc=db;return bn[dc(0x23d)]();})));var bl,bm=Object[db(0x16a)](bg)[db(0x3b7)](function(bn){var dd=db;return-0x1!==ai[dd(0x50a)](bn[dd(0x23d)]());});return bm[db(0x4ae)]?{'code':''+(bl=bg[bm[0x0]]),'isErr':0x0!==bl&&'0'!==bl}:{'code':'unknown','isErr':!0x1};}catch(bn){return{'code':'unknown','isErr':!0x1};}}function ac(bg,bh){var de=cZ;void 0x0===bh&&(bh=0x3);var bi,bj,bk,bl='';return Array['isArray'](bg)?(bl+='[',bi=bg[de(0x4ae)],bg['forEach'](function(bm,bn){var df=de,bo,bp;bl=(bl+='object'==typeof bm&&0x1<bh?ac(bm,bh-0x1):(bp='',bp+=df(0x30a)==(bo=typeof bm)||df(0x49d)==bo||'function'==bo?df(0x27c):'string'==bo||'object'==bo?'\x22'+bm+'\x22':bm))+(bn===bi-0x1?'':',');}),bl+=']'):bg instanceof Object?(bl='{',bj=Object[de(0x8c8)](bg),bk=bj['length'],bj[de(0x280)](function(bm,bn){var dg=de,bo,bp,bq;'object'==typeof bg[bm]&&0x1<bh?bl+='\x22'+bm+'\x22:'+ac(bg[bm],bh-0x1):bl+=(bq='','string'==(bp=typeof(bo=bg[bm]))||dg(0x804)==bp?bq+='\x22'+bm+'\x22:\x22'+bo+'\x22':'function'==typeof bo?bq+='\x22'+bm+dg(0x71f)+bo[dg(0x836)]+'\x22':dg(0x49d)==typeof bo?bq+='\x22'+bm+dg(0x199):dg(0x480)!=typeof bo&&'boolean'!=bp||(bq+='\x22'+bm+dg(0x257)+bo),bq),bl+=bn===bk-0x1||bn<bk-0x1&&void 0x0===bg[bj[bn+0x1]]?'':',';}),bl+='}'):bl+=bg,bl;}var ad,ae,af,ag,ah,ai=['ret','retcode','code',cZ(0x666)],aj=function(){var bg=new WeakSet();return function(bh,bi){var dh=a0b;if(bi instanceof Error)return dh(0x81c)+bi[dh(0x8e7)]+dh(0x309)+bi['stack'];if('object'==typeof bi&&null!==bi){if(bg['has'](bi))return dh(0x7d0)+(bh||dh(0x293))+']';bg['add'](bi);}return bi;};},ak=function(bg){var di=cZ;if('string'==typeof bg)return bg;try{return bg instanceof Error?(JSON[di(0x975)](bg,aj(),0x4)||di(0x30a))[di(0x99b)](/"/gim,''):JSON[di(0x975)](bg,aj(),0x4)||di(0x30a);}catch(bh){return di(0x243)+bh[di(0x8e7)]+di(0x62c)+bh[di(0x7bd)];}};function al(bg,bh){var dj=cZ,bi,bj=[],bk=bg[dj(0x831)];return bg['lifeCycle']['on'](dj(0x815),function(){var dk=dj;bj[dk(0x4ae)]=0x0;}),function(bl,bm){var dl=dj;Array['isArray'](bl)?bj=bj[dl(0x1a4)](bl):bj[dl(0x3ef)](bl),bh&&bj[dl(0x4ae)]>=bh||bg[dl(0x856)]&&0x0<bj['length']?(bj=aE(bj),bm(bj[dl(0x5c3)](0x0,bj[dl(0x4ae)])),bi&&clearTimeout(bi)):(bi&&clearTimeout(bi),bi=setTimeout(function(){var dm=dl;bi=null,0x0<(bj=aE(bj))[dm(0x4ae)]&&bm(bj[dm(0x5c3)](0x0,bj[dm(0x4ae)]));},bk['delay']));};}function am(bg,bh){var dn=cZ;return Array[dn(0x3b2)](bg)?bh(bg[dn(0x5bf)](function(bi){var dp=dn;return bj=a2(a2({},bi),{'msg':dp(0x940)==typeof bi['msg']?bi[dp(0x80b)]:[][dp(0x1a4)](bi[dp(0x80b)])[dp(0x5bf)](ak)[dp(0x9ea)]('\x20')}),a5[dp(0x280)](function(bk){bj[bk]||delete bj[bk];}),bj;var bj;})):bh([a2(a2({},bg),{'msg':dn(0x940)==typeof bg['msg']?bg['msg']:ak(bg['msg'])})]);}function an(bg,bh){return function(bi,bj){var dq=a0b,bk,bl,bm,bn=Array[dq(0x3b2)](bi),bo=bn?bi:[bi],bp=(bg[dq(0x63c)]['emit'](dq(0x4cf),bi),bg[dq(0x831)][dq(0x4cf)]);(bo='function'==typeof bp?bo[dq(0x5bf)](function(bq){var dr=dq;try{var br=bp({'logs':bq,'logType':bh});return(null==br?void 0x0:br[dr(0x722)])===bh&&null!=br&&br[dr(0x8f7)]?br[dr(0x8f7)]:!0x1!==br&&bq;}catch(bs){return bq;}})[dq(0x3b7)](function(bq){return!0x1!==bq;}):bo)[dq(0x4ae)]&&(bk=bo,bi=a5,!Array[dq(0x3b2)](bk)||bk[dq(0x4ae)]<=0x1||(bl=[],bm=[],!(bm='string'==typeof bi?[bi]:bi)||bm[dq(0x4ae)]<=0x0||(bm[dq(0x280)](function(bq){bk['forEach'](function(br){var ds=a0b;null!=br&&br[bq]&&bl[ds(0x3ef)](bq);});}),0x0<bl['length']&&(bk=bk['map'](function(bq){var dt=dq,br={};return bl[dt(0x280)](function(bs){br[bs]='';}),a2(a2({},br),bq);})))),bo=bk,bj(bn?bo:bo[0x0]));};}function ao(bg){return function(bh,bi){var du=a0b;bg[du(0x63c)]['emit']('modifyRequest',bh);var bj=bg[du(0x831)][du(0x1dd)];if(du(0x3b5)==typeof bj)try{var bk=bj(bh);'object'==typeof bk&&du(0x90b)in bk&&(bh=bk);}catch(bl){console[du(0x8e5)](bl);}bi(bh);};}function ap(bg){return function(bh,bi){var dv=a0b;bg['lifeCycle'][dv(0x335)]('afterRequest',bh);var bj=bg[dv(0x831)][dv(0x8a5)];'function'==typeof bj&&!0x1===bj(bh)||bi(bh);};}function aq(bg){var dw=cZ;if(bg&&bg[dw(0x26a)]&&bg[dw(0x4ae)])return 0x1===bg[dw(0x4ae)]?function(bh,bi){bg[0x0](bh,bi||aI);}:bg[dw(0x26a)](function(bh,bi){return function(bj,bk){return void 0x0===bk&&(bk=aI),bh(bj,function(bl){return null==bi?void 0x0:bi(bl,bk);});};});throw new TypeError(dw(0x7ea));}function ar(bg,bh){var dx=cZ;Object[dx(0x16a)](bg)[dx(0x280)](function(bi){var dy=dx;dy(0x3b5)==typeof bg[bi]&&'constructor'!==bi&&(bh?bh[bi]=dy(0x642)===bi?function(){return function(){};}:function(){}:bg[bi]=function(){});});}function as(bg){var dz=cZ;try{var bh,bi,bj,bk='';return bk=bg[dz(0x85a)]||(bi=(bh=getCurrentPages())[bh[dz(0x4ae)]-0x1]||{},bl=bi['options'],bj=Object['keys'](bl)[dz(0x4ae)]?'?'+Object['keys'](bl)[dz(0x5bf)](function(bm){return bm+'='+bl[bm];})[dz(0x9ea)]('&'):'',bi[dz(0x8f8)]?bi[dz(0x8f8)]+bj:''),bk=dz(0x3b5)==typeof bg['urlHandler']?bg[dz(0x490)]():bk;}catch(bm){return'';}var bl;}function au(bg,bh){var dA=cZ;if('string'==typeof bg&&'string'==typeof bh){if(bg===bh)return 0x1;for(var bi=bg['split']('.'),bj=bh[dA(0x329)]('.'),bk=Math[dA(0x3ae)](bi[dA(0x4ae)],bj[dA(0x4ae)]),bl=0x0;bl<bk;bl++){var bm=~~bi[bl],bn=~~bj[bl];if(bm<bn)return;if(bn<bm)return 0x1;}}}function av(bg){var dB=cZ;return au(aM=aM||aL[dB(0x2eb)]()[dB(0x375)],'1.1.1')&&aL[dB(0x7b1)]?aL[dB(0x7b1)](bg):!!aL[bg];}function aw(bg){var dC=cZ;for(var bh,bi={'unknown':/unknown|none/i,'wifi':/wifi/i,'net2g':/2g/i,'net3g':/3g/i,'net4g':/4g/i,'net5g':/5g/i,'net6g':/6g/i},bj=af[dC(0x192)],bk=0x0;bk<Object[dC(0x8c8)](bi)[dC(0x4ae)];bk++){var bl=Object[dC(0x8c8)](bi)[bk];if(null!=(bh=bi[bl])&&bh[dC(0x2e3)](bg)){bj=af[bl];break;}}return bj;}function ax(bg){var dD=cZ,bh=bg[dD(0x63b)],bi=aU[bh];bi?bi[dD(0x3f3)][dD(0x6e2)](bg):(bi=aT[dD(0x72d)][bh],aU[bh]={'hackCloudReq':new aV(bg),'originApi':bi}),aU[bh];}function ay(bg){var dE=cZ,bh=bg['apiName'],bi=aX[bh];bi?bi[dE(0x392)][dE(0x6e2)](bg):(bi=wx[bh],aX[bh]={'hackReq':new aY(bg),'originApi':bi}),aX[bh];}(aJ=ad=ad||{})[cZ(0x3f9)]='-1',aJ['API_RESPONSE']='1',aJ[cZ(0x469)]='2',aJ[cZ(0x289)]='4',aJ['PROMISE_ERROR']='8',aJ[cZ(0x37b)]='16',aJ[cZ(0x730)]='32',aJ[cZ(0x690)]='64',aJ[cZ(0x8ed)]=cZ(0x7c5),aJ[cZ(0x757)]=cZ(0x4c4),aJ[cZ(0x57b)]=cZ(0x6ae),aJ[cZ(0x4ba)]=cZ(0x3e1),aJ[cZ(0x593)]=cZ(0x8e2),aJ['PV']=cZ(0x30c),aJ[cZ(0x541)]='8192',aJ[cZ(0x774)]=cZ(0x81d),aJ['WEBSOCKET_ERROR']='32768',aJ['BRIDGE_ERROR']=cZ(0x81e),(aJ=ae=ae||{})[aJ[cZ(0x44d)]=0x1]='android',aJ[aJ['ios']=0x2]=cZ(0x46c),aJ[aJ[cZ(0x9f8)]=0x3]='windows',aJ[aJ[cZ(0x766)]=0x4]=cZ(0x766),aJ[aJ[cZ(0x276)]=0x5]='linux',aJ[aJ[cZ(0x96f)]=0x6]=cZ(0x96f),aJ[aJ['other']=0x64]=cZ(0x68d),(aJ=af=af||{})[aJ['unknown']=0x64]='unknown',aJ[aJ[cZ(0x77a)]=0x1]=cZ(0x77a),aJ[aJ[cZ(0x215)]=0x2]=cZ(0x215),aJ[aJ[cZ(0x73b)]=0x3]='net3g',aJ[aJ['net4g']=0x4]=cZ(0x78e),aJ[aJ['net5g']=0x5]=cZ(0x5ca),aJ[aJ[cZ(0x34e)]=0x6]=cZ(0x34e),(aJ=ag=ag||{})[cZ(0x9b4)]=cZ(0x5a1),aJ[cZ(0x9b5)]=cZ(0x7c7),aJ[cZ(0x213)]='performance',aJ[cZ(0x49f)]=cZ(0x660),aJ['WHITE_LIST']=cZ(0x939),aJ[cZ(0x5d8)]=cZ(0x9f0),aJ['PV']='pv',aJ[cZ(0x7d4)]='customPV',aJ[cZ(0x541)]=cZ(0x93a),aJ[cZ(0x859)]='custom',aJ[cZ(0x9c4)]=cZ(0x546),aJ[cZ(0x5c6)]='setData',aJ[cZ(0x8e0)]=cZ(0x25a),(aJ=ah=ah||{})[cZ(0x1a3)]=cZ(0x1a3),aJ[cZ(0x61f)]=cZ(0x61f),aJ[cZ(0x2a6)]=cZ(0x2a6),aJ['pre']=cZ(0x65e),aJ[cZ(0x6fd)]=cZ(0x6fd),aJ[cZ(0x2db)]=cZ(0x2db),aJ[cZ(0x2e3)]=cZ(0x2e3),aJ['others']=cZ(0x37e);var az,aA,aB,aC,aD,aE=function(bg){return bg['filter'](function(bh,bi){var dF=a0b;return dF(0x291)!==bh[dF(0x9b1)]||!bg['find'](function(bj,bk){var dG=dF;return bh[dG(0x90b)]===bj['url']&&0xc8===bh[dG(0x965)]&&bi<bk;});});},aF=function(bg){var dH=cZ;bg[dH(0x7a5)]===ad['INFO_ALL']&&(bg[dH(0x7a5)]=ad[dH(0x469)]);},aG=function(bg){var dI=cZ;return(Array[dI(0x3b2)](bg)?bg:[bg])[dI(0x5bf)](function(bh){var dJ=dI;return Object[dJ(0x16a)](bh)[dJ(0x26a)](function(bi,bj){return'ctx'!==bj&&(bi[bj]=bh[bj]),bi;},{'level':ad['INFO'],'msg':''});});},aH=function(bg){return function(bh){var dK=a0b;return bg[dK(0x642)]([function(bi,bj){var dL=dK;return bj({'url':bg[dL(0x831)][dL(0x90b)]||'','data':a7(aG(bi)),'method':dL(0x2ca),'contentType':dL(0x8e3),'type':ag[dL(0x9b4)],'log':bi,'requestConfig':{'timeout':0x1388},'success':function(){var dM=dL,bk=bg[dM(0x831)]['onReport'];dM(0x3b5)==typeof bk&&bi[dM(0x280)](function(bl){bk(bl);}),dM(0x3b5)==typeof bj&&bj([]);},'fail':function(bk){var dN=dL;'403\x20forbidden'===bk&&bg[dN(0x815)]();}});}],ag['LOG'])(bh);};},aI=function(){},aJ=(Object[cZ(0x85d)](bf['prototype'],cZ(0x6ee),{'get':function(){var dO=cZ;return console['warn']('__version__\x20has\x20discard,\x20please\x20use\x20version'),dO(0x1ff);},'enumerable':!0x1,'configurable':!0x0}),Object[cZ(0x85d)](bf['prototype'],cZ(0x769),{'get':function(){var dP=cZ;return console['warn'](dP(0x49e)),ad;},'enumerable':!0x1,'configurable':!0x0}),bf[cZ(0x32e)][cZ(0x3a8)]=function(bg){var dQ=cZ;this['setConfig'](bg);for(var bh=0x0;bh<bf[dQ(0x770)][dQ(0x4ae)];bh++)try{bf[dQ(0x770)][bh][dQ(0x505)](this);}catch(bi){this[dQ(0x1af)](bi);}this[dQ(0x63c)][dQ(0x335)](dQ(0x9aa));},bf['prototype'][cZ(0x6fe)]=function(bg){var dR=cZ;Object['assign'](this[dR(0x831)],bg);var bh=(bg=this[dR(0x831)])['id'],bi=bg['uin'],bj=bg['version'],bk=bg['ext1'],bl=bg[dR(0x521)],bm=bg[dR(0x7ce)],bn=bg['aid'],bo=void 0x0===(bp=bg['env'])?dR(0x1a3):bp,bp=bg['pageUrl'];return bg=this[dR(0x891)]['id']!==bh||this['bean'][dR(0x1b8)]!==bi||this[dR(0x891)]['aid']!==bn,this['bean']['id']=bh||'',this[dR(0x891)][dR(0x1b8)]=bi||'',this[dR(0x891)][dR(0x24b)]=bj||dR(0x1ff),this[dR(0x891)]['aid']=bn||'',this['bean'][dR(0x1ad)]=(function(){var dS=dR;switch(bo){case ah[dS(0x1a3)]:case ah['development']:case ah['gray']:case ah[dS(0x65e)]:case ah[dS(0x6fd)]:case ah[dS(0x2db)]:case ah[dS(0x2e3)]:case ah['others']:return 0x1;default:return;}}())?bo:ah[dR(0x37e)],bp&&this[dR(0x271)](dR(0x615),encodeURIComponent(bp)),bk&&this[dR(0x271)]('ext1',encodeURIComponent(bk)),bl&&this[dR(0x271)](dR(0x521),encodeURIComponent(bl)),bm&&this['extendBean'](dR(0x7ce),encodeURIComponent(bm)),bg&&this['lifeCycle'][dR(0x335)](dR(0x636),this['config']),this[dR(0x831)];},bf[cZ(0x7b9)]=function(bg){var dT=cZ;-0x1===bf[dT(0x770)][dT(0x50a)](bg)&&bg['aegisPlugin']&&bf[dT(0x770)][dT(0x3ef)](bg);},bf[cZ(0x29a)]=function(bg){var dU=cZ;-0x1!==(bg=bf['installedPlugins']['indexOf'](bg))&&bf[dU(0x770)]['splice'](bg,0x1);},bf[cZ(0x32e)][cZ(0x27b)]=function(){var dV=cZ;for(var bg=[],bh=0x0;bh<arguments[dV(0x4ae)];bh++)bg[bh]=arguments[bh];var bi={'level':ad['INFO'],'msg':bg};0x1===bg[dV(0x4ae)]&&bg[0x0][dV(0x80b)]&&Object[dV(0x961)](bi,a2({},bg[0x0]),{'level':ad[dV(0x469)]}),this['normalLogPipeline'](bi);},bf['prototype'][cZ(0x9be)]=function(){var dW=cZ;for(var bg=[],bh=0x0;bh<arguments[dW(0x4ae)];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dW(0x3f9)],'msg':bg};0x1===bg[dW(0x4ae)]&&bg[0x0][dW(0x80b)]&&Object[dW(0x961)](bi,a2({},bg[0x0]),{'level':ad[dW(0x3f9)]}),this[dW(0x2b0)](bi);},bf[cZ(0x32e)][cZ(0x3e6)]=function(){var dX=cZ;for(var bg=[],bh=0x0;bh<arguments['length'];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dX(0x593)],'msg':bg};0x1===bg['length']&&bg[0x0][dX(0x80b)]&&Object['assign'](bi,a2({},bg[0x0])),this['normalLogPipeline'](bi);},bf['prototype']['error']=function(){var dY=cZ;for(var bg=[],bh=0x0;bh<arguments[dY(0x4ae)];bh++)bg[bh]=arguments[bh];var bi={'level':ad[dY(0x289)],'msg':bg};0x1===bg[dY(0x4ae)]&&bg[0x0][dY(0x80b)]&&Object[dY(0x961)](bi,a2({},bg[0x0]),{'level':ad['ERROR']}),this['normalLogPipeline'](bi);},bf[cZ(0x32e)]['speedLogPipeline']=function(bg){var dZ=cZ;throw new Error(dZ(0x7d2));},bf[cZ(0x32e)][cZ(0x384)]=function(bg){var e0=cZ,bh,bi=this;bg&&(console[e0(0x4d7)](e0(0x7f0)),bh=''+Object['getOwnPropertyNames'](this[e0(0x891)])[e0(0x3b7)](function(bj){return'id'!==bj;})[e0(0x5bf)](function(bj){var e1=e0;return bj+'='+bi[e1(0x891)][bj];})[e0(0x9ea)]('&'),this[e0(0x642)]([function(bj,bk){var e2=e0;bk({'url':bi['config'][e2(0x90b)]+'/'+bg+'?'+bh,'addBean':!0x1,'type':ag[e2(0x7d4)],'fail':function(bl){var e3=e2;e3(0x6cd)===bl&&bi[e3(0x815)]();}});}],ag[e0(0x7d4)])(null));},bf[cZ(0x32e)]['reportEvent']=function(bg){var e4=cZ;bg&&((bg=e4(0x940)==typeof bg?{'name':bg,'ext1':this[e4(0x831)][e4(0x92c)]||'','ext2':this['config'][e4(0x521)]||'','ext3':this[e4(0x831)][e4(0x7ce)]||''}:bg)[e4(0x836)]?this['eventPipeline'](bg):console[e4(0x4d7)]('reportEvent\x20params\x20error'));},bf[cZ(0x32e)][cZ(0x8bf)]=function(bg,bh){var e5=cZ;if(e5(0x804)==typeof bg)return this['reportT'](bg);e5(0x940)==typeof bg?e5(0x480)==typeof bh?bh<0x0||0xea60<bh?console[e5(0x4d7)](e5(0x275)):this['submitCustomTime'](bg,bh):console[e5(0x4d7)](e5(0x3ee)):console[e5(0x4d7)](e5(0x9ec));},bf[cZ(0x32e)][cZ(0x8bd)]=function(bg){var e6=cZ,bh=bg[e6(0x836)],bi=bg[e6(0x252)],bj=void 0x0===(bj=bg['ext1'])?'':bj,bk=void 0x0===(bk=bg[e6(0x521)])?'':bk,bl=void 0x0===(bl=bg[e6(0x7ce)])?'':bl;if(bg=bg[e6(0x615)],e6(0x940)==typeof bh&&e6(0x480)==typeof bi&&e6(0x940)==typeof bj&&e6(0x940)==typeof bk&&e6(0x940)==typeof bl){if(!(bi<0x0||0xea60<bi))return this[e6(0x2ab)](bh,bi,bj,bk,bl,void 0x0===bg?'':bg);console[e6(0x4d7)]('reportTime:\x20duration\x20must\x20between\x200\x20and\x2060000');}else console[e6(0x4d7)](e6(0x430));},bf[cZ(0x32e)][cZ(0x897)]=function(bg){var e7=cZ;e7(0x940)==typeof bg?this[e7(0x93b)][bg]?console[e7(0x4d7)](e7(0x7f8)+bg+e7(0x545)):this[e7(0x93b)][bg]=Date['now']():console[e7(0x4d7)](e7(0x6ea));},bf[cZ(0x32e)][cZ(0x4ab)]=function(bg){var e8=cZ;e8(0x940)==typeof bg?this[e8(0x93b)][bg]?(this['submitCustomTime'](bg,Date['now']()-this['timeMap'][bg]),delete this[e8(0x93b)][bg]):console['warn'](e8(0x7f8)+bg+'\x20does\x20not\x20exist'):console[e8(0x4d7)](e8(0x42a));},bf[cZ(0x32e)][cZ(0x2ab)]=function(bg,bh,bi,bj,bk,bl){var e9=cZ;this['customTimePipeline']({'name':bg,'duration':bh,'ext1':bi||this[e9(0x831)][e9(0x92c)],'ext2':bj||this[e9(0x831)][e9(0x521)],'ext3':bk||this[e9(0x831)][e9(0x7ce)],'from':bl||void 0x0});},bf['prototype'][cZ(0x271)]=function(bg,bh){var ea=cZ;this[ea(0x891)][bg]=bh;},bf[cZ(0x32e)]['sendPipeline']=function(bg,bh){var bi,bj=this;return aq(a4([function(bk,bl){var eb=a0b;if(eb(0x480)!=typeof bi['config'][eb(0x39f)]&&(console[eb(0x4d7)](eb(0x495)),bi['config']['random']=0x1),!bi[eb(0x9d3)]||!bi[eb(0x7f6)]){if(bi[eb(0x7f6)])bi[eb(0x9d3)]||bl(bk);else{if(bi[eb(0x7f6)]=!0x0,Math[eb(0x39f)]()<bi[eb(0x831)][eb(0x39f)])return bi[eb(0x9d3)]=!0x1,bl(bk);bi[eb(0x9d3)]=!0x0;}}},an(bi=this,bh)],bg,[ao(this),function(bk,bl){var ec=a0b;bj[ec(0x2c3)](bk,function(){var ed=ec;for(var bm,bn=[],bo=0x0;bo<arguments[ed(0x4ae)];bo++)bn[bo]=arguments[bo];bj['failRequestCount']=0x0,bl({'isErr':!0x1,'result':bn,'logType':null==bk?void 0x0:bk[ed(0x9b1)],'logs':null==bk?void 0x0:bk[ed(0x5a1)]}),null!=(bm=null==bk?void 0x0:bk[ed(0x900)])&&bm[ed(0x8fb)]['apply'](bm,a4([bk],bn));},function(){var ee=ec;for(var bm,bn=[],bo=0x0;bo<arguments[ee(0x4ae)];bo++)bn[bo]=arguments[bo];0xa<=++bj[ee(0x9ce)]&&bj[ee(0x815)](),bl({'isErr':!0x0,'result':bn,'logType':null==bk?void 0x0:bk[ee(0x9b1)],'logs':null==bk?void 0x0:bk['log']}),null!=(bm=null==bk?void 0x0:bk[ee(0x796)])&&bm['call'][ee(0x6e8)](bm,a4([bk],bn));});},ap(this)]));},bf[cZ(0x32e)][cZ(0x200)]=function(bg,bh,bi){var bj=this;return aq([ao(this),function(bk,bl){bj['request'](bk,function(){var ef=a0b;for(var bm=[],bn=0x0;bn<arguments[ef(0x4ae)];bn++)bm[bn]=arguments[bn];bl({'isErr':!0x1,'result':bm,'logType':bk[ef(0x9b1)],'logs':bk[ef(0x5a1)]}),null!=bh&&bh['apply'](void 0x0,bm);},function(){var eg=a0b;for(var bm=[],bn=0x0;bn<arguments[eg(0x4ae)];bn++)bm[bn]=arguments[bn];bl({'isErr':!0x0,'result':bm,'logType':bk[eg(0x9b1)],'logs':bk[eg(0x5a1)]}),null!=bi&&bi[eg(0x6e8)](void 0x0,bm);});},ap(this)])(bg);},bf[cZ(0x32e)][cZ(0x8a1)]=function(bg,bh,bi){throw new Error('You\x20need\x20to\x20override\x20\x22ready\x22\x20method');},bf[cZ(0x32e)][cZ(0x2c3)]=function(bg,bh,bi){var eh=cZ;throw new Error(eh(0x56c));},bf[cZ(0x32e)]['sendSDKError']=function(bg){var bh=this;this['sendPipeline']([function(bi,bj){var ei=a0b;bj({'url':bh[ei(0x831)][ei(0x90b)]+ei(0x360)+encodeURIComponent(ak(bi))+'&level[0]=2&from='+bh[ei(0x831)]['id']+'&count=1&version='+bh['config']['id']+ei(0x176),'addBean':!0x1,'method':ei(0x40e),'type':ag[ei(0x9c4)],'log':bi});}],ag['SDK_ERROR'])(bg);},bf[cZ(0x32e)][cZ(0x815)]=function(bg){var ej=cZ;void 0x0===bg&&(bg=!0x1);var bh,bi,bj=bf['instances']['indexOf'](this);-0x1!==bj&&bf[ej(0x424)]['splice'](bj,0x1);for(var bk=bf[ej(0x770)][ej(0x4ae)]-0x1;0x0<=bk;bk--)try{bf[ej(0x770)][bk][ej(0x94e)](this);}catch(bm){this[ej(0x1af)](bm);}if(this[ej(0x63c)]['emit'](ej(0x815)),this['lifeCycle']['clear'](),bg)bh=this,bi=Object[ej(0x6a1)](bh),Object[ej(0x8c8)](bi)['forEach'](function(bn){var ek=ej;bi[bn][ek(0x4c2)]&&(bh[bn]=null);}),Object['setPrototypeOf'](this,null);else{for(var bl=this;bl[ej(0x1fc)]!==Object&&ar(bl,this),bl=Object[ej(0x161)](bl););0x0===bf[ej(0x424)][ej(0x4ae)]&&(ar(bj=Object[ej(0x161)](this)[ej(0x1fc)]),ar(bf));}},bf[cZ(0x24b)]=cZ(0x1ff),bf[cZ(0x424)]=[],bf[cZ(0x722)]=ad,bf[cZ(0x768)]=ah,bf[cZ(0x770)]=[],bf),aK=(be[cZ(0x32e)][cZ(0x505)]=function(bg){var el=cZ;this['canUse'](bg)&&this[el(0x39b)](bg)&&(this[el(0x424)]['push'](bg),this[el(0x2c7)](bg),this[el(0x273)](bg));},be[cZ(0x32e)][cZ(0x94e)]=function(bg){var em=cZ;-0x1!==(bg=this[em(0x424)][em(0x50a)](bg))&&(this[em(0x424)]['splice'](bg,0x1),0x0===this[em(0x424)][em(0x4ae)]&&this['uninstall']());},be[cZ(0x32e)][cZ(0x435)]=function(){var en=cZ;return this[en(0x424)]['length'];},be[cZ(0x32e)][cZ(0x7e1)]=function(){var eo=cZ,bg;null!=(bg=null==(bg=this['option'])?void 0x0:bg[eo(0x815)])&&bg[eo(0x6e8)](this);},be['prototype'][cZ(0x1e7)]=function(bg){var ep=cZ,bh=this;this[ep(0x424)][ep(0x280)](function(bi){var eq=ep,bj=bh[eq(0x3a4)](bi);bj&&bg(bi,bj);});},be[cZ(0x32e)][cZ(0x3a4)]=function(bg){var er=cZ;return!(!(bg=this[er(0x7b4)](bg))||er(0x804)!=typeof bg)||!!bg;},be['prototype'][cZ(0x7b4)]=function(bg){var es=cZ;return null==(bg=bg[es(0x831)])?void 0x0:bg[this[es(0x836)]];},be[cZ(0x32e)][cZ(0x39b)]=function(bg){var et=cZ;return-0x1===this[et(0x424)][et(0x50a)](bg);},be[cZ(0x32e)]['triggerInit']=function(bg){var eu=cZ,bh;this[eu(0x721)]||(this[eu(0x721)]=!0x0,null!=(bh=null==(bh=this[eu(0x7c6)])?void 0x0:bh[eu(0x3a8)])&&bh[eu(0x8fb)](this[eu(0x7c6)],this[eu(0x7b4)](bg)));},be[cZ(0x32e)][cZ(0x273)]=function(bg){var ev=cZ,bh;null!=(bh=null==(bh=this[ev(0x7c6)])?void 0x0:bh['onNewAegis'])&&bh[ev(0x8fb)](this[ev(0x7c6)],bg,this[ev(0x7b4)](bg));},be),aL=wx||qq,aM='',aN=new aK({'name':'offlineLog','onNewAegis':function(bg){var ew=cZ;if(aL[ew(0x162)])try{var bh=bg[ew(0x831)],bi=bh['id'],bj=void 0x0===bi?'':bi,bk=bh[ew(0x1b8)],bl=void 0x0===bk?0x0:bk,bm=bh['offlineUrl'],bn=void 0x0===bm?'':bm,bo=bh[ew(0x8e1)],bp=new aO({'limit':bo});bg[ew(0x63c)]['on'](ew(0x40c),function(bq){var ex=ew;bp[ex(0x8f5)](bq=void 0x0===bq?[]:bq,bg['config']);}),bp['ready'](function(bq){var ey=ew,br=(bg[ey(0x891)]||{})[ey(0x460)],bs=void 0x0===br?'':br;!bq&&bj&&(bl||bs)&&bg[ey(0x200)]({'url':bn+ey(0x42b),'type':ag['OFFLINE'],'log':ag[ey(0x49f)]},function(bu){var ez=ey,bv=(null==bu?void 0x0:bu[ez(0x8c4)])[ez(0x7f9)];bv&&!bq&&bp[ez(0x448)]({'id':bj,'uin':bl},function(bw,bx){var eA=ez;bw?console['error'](bw):bg[eA(0x200)]({'url':bn+eA(0x6b1),'data':{'logs':bx,'secretKey':bv,'id':bj,'uin':bl,'aid':bs},'method':'post','type':ag[eA(0x49f)],'log':bx},function(){var eB=eA;bp[eB(0x8ef)]();});});});});}catch(bq){console['error'](bq);}else console[ew(0x4d7)](ew(0x7c8));}}),aO=(bd[cZ(0x32e)]['getLogs']=function(bg,bh){var eC=cZ,bi=this[eC(0x719)],bj=this[eC(0x513)];bi[eC(0x60d)]({'filePath':bj,'encoding':eC(0x669),'fail':function(bk){var eD=eC;console[eD(0x8e5)](bk);},'success':function(bk){var eE=eC;bk=(void 0x0===(bk=bk[eE(0x8c4)])?'':bk)[eE(0x5bb)]()[eE(0x329)]('\x0a')[eE(0x3b7)](function(bl){return bl;})['map'](function(bl){var eF=eE;return JSON[eF(0x9d4)](bl);}),bh(null,bk);}});},bd[cZ(0x32e)][cZ(0x294)]=function(bg,bh){var eG=cZ;void 0x0===bh&&(bh=function(){});var bi=this['fileSystem'],bj=this['filePath'],bk=this['limitSize'];bi['readFile']({'filePath':bj,'encoding':eG(0x669),'success':function(bl){var eH=eG;if((bl=(bl=void 0x0===(bl=bl[eH(0x8c4)])?'':bl)['toString']()+bg)[eH(0x4ae)]>bk){for(var bm=bl['split']('\x0a'),bn='',bo=bm['length']-0x1;0x0<=bo&&!(bm[bo]&&(bn=bm[bo]+'\x0a'+bn)[eH(0x4ae)]>bk);bo--);bi['writeFile']({'filePath':bj,'data':bn,'success':bh});}else bi['appendFile']({'data':bg,'filePath':bj,'encoding':eH(0x669),'success':bh,'fail':function(bp){var eI=eH;console[eI(0x8e5)](bp);}});}});},bd),aP=new aK({'name':cZ(0x75d),'onNewAegis':function(bg){return bh=this,bk=function(){return a3(this,function(bl){var eJ=a0b;return this['setSystemInfo'](bg),this[eJ(0x193)](bg),this[eJ(0x325)](bg),[0x2];});},new(bj=(bj=bi=void 0x0)||Promise)(function(bl,bm){var eN=a0b;function bn(bq){var eK=a0b;try{bp(bk[eK(0x479)](bq));}catch(br){bm(br);}}function bo(bq){var eL=a0b;try{bp(bk[eL(0x626)](bq));}catch(br){bm(br);}}function bp(bq){var eM=a0b,br;bq[eM(0x79a)]?bl(bq['value']):((br=bq[eM(0x4a9)])instanceof bj?br:new bj(function(bs){bs(br);}))[eM(0x341)](bn,bo);}bp((bk=bk[eN(0x6e8)](bh,bi||[]))[eN(0x479)]());});var bh,bi,bj,bk;},'setSystemInfo':function(bg){var eO=cZ,bh=this;try{av(eO(0x55a))&&aL[eO(0x55a)]({'success':function(bi){var eP=eO,bj=bi[eP(0x568)],bk=bi['model'],bl=bi['windowHeight'],bm=bi['windowWidth'],bn=void 0x0===(bn=bi[eP(0x9bb)])?0x0:bn;bi=void 0x0===(bi=bi['screenHeight'])?0x0:bi,bg[eP(0x271)]('platform',bh[eP(0x84c)](bj)),bg[eP(0x271)](eP(0x497),bk),bg[eP(0x271)]('vp',Math[eP(0x281)](bm)+'\x20*\x20'+Math['round'](bl)),bg['extendBean']('sr',Math[eP(0x281)](bn)+eP(0x8d4)+Math[eP(0x281)](bi));}});}catch(bi){}},'getPlatFormType':function(bg){var eQ=cZ;for(var bh,bi={'android':/android/i,'ios':/ios/i,'windows':/windows/i,'macos':/mac/i,'devtools':/devtools/i},bj=ae[eQ(0x68d)],bk=0x0;bk<Object['keys'](bi)[eQ(0x4ae)];bk++){var bl=Object['keys'](bi)[bk];if(null!=(bh=bi[bl])&&bh[eQ(0x2e3)](bg)){bj=ae[bl];break;}}return bj;},'setNetworkChange':function(bg){var eR=cZ;av(eR(0x3ad))&&aL[eR(0x3ad)](function(bh){var eS=eR;bh=aw(bh[eS(0x949)]),bg[eS(0x271)](eS(0x20f),bh);});},'setNetworkType':function(bg){var eT=cZ;av(eT(0x3e7))&&aL[eT(0x3e7)]({'success':function(bh){var eU=eT;bh=aw(bh['networkType']),bg[eU(0x271)](eU(0x20f),bh);}});},'refreshNetwork':function(bg){var eV=cZ,bh=this;this[eV(0x9ca)]&&clearTimeout(this[eV(0x9ca)]),this[eV(0x697)](bg),this[eV(0x9ca)]=setTimeout(function(){bh['refreshNetwork'](bg);},0x2710);}}),aQ=aL[cZ(0x2c3)],aR=(a1(bc,aD=aJ),Object[cZ(0x85d)](bc[cZ(0x32e)],'getBean',{'get':function(){var eW=cZ,bg=this;return this['bean']?Object[eW(0x16a)](this[eW(0x891)])['map'](function(bh){var eX=eW;return bh+'='+bg[eX(0x891)][bh];})[eW(0x9ea)]('&')+'&from='+encodeURIComponent(as(this[eW(0x831)])):eW(0x30d)+encodeURIComponent(as(this[eW(0x831)]));},'enumerable':!0x1,'configurable':!0x0}),bc[cZ(0x32e)][cZ(0x938)]=function(){var eY=cZ;bc[eY(0x7b9)](aN);},bc[cZ(0x32e)]['uploadLogs']=function(bg,bh){var eZ=cZ;this['lifeCycle'][eZ(0x335)]('uploadLogs',bg=void 0x0===bg?{}:bg,bh=void 0x0===bh?{}:bh);},bc[cZ(0x32e)][cZ(0x384)]=function(bg){var f0=cZ,bh,bi=this;bg&&(bh=Object[f0(0x16a)](this[f0(0x891)])[f0(0x3b7)](function(bj){return'id'!==bj;})[f0(0x5bf)](function(bj){var f1=f0;return bj+'='+bi[f1(0x891)][bj];})[f0(0x9ea)]('&')+'&from='+encodeURIComponent(as(this[f0(0x831)])),this[f0(0x200)]({'url':this[f0(0x831)][f0(0x90b)]+'/'+bg+'?'+bh,'addBean':!0x1,'type':ag[f0(0x7d4)],'log':ag[f0(0x7d4)]},function(){},function(){}));},bc[cZ(0x52c)]=cZ(0x2fd)+Date[cZ(0x32d)](),bc['asyncPluginIndex']=0x0,aJ=bc,new aK({'name':cZ(0x460),'onNewAegis':function(bg){this['initAid'](function(bh){var f2=a0b;bg['bean'][f2(0x460)]=bh,bg['config']['aid']=bh;});},'initAid':function(bg){aL['getStorage']({'key':'AEGIS_ID','success':function(bh){var f3=a0b;bg(bh[f3(0x8c4)]);},'fail':function(){var f4=a0b,bh='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'[f4(0x99b)](/[xy]/g,function(bi){var f5=f4,bj=0x10*Math['random']()|0x0;return('x'===bi?bj:0x3&bj|0x8)[f5(0x5bb)](0x10);});aL['setStorage']({'key':f4(0x427),'data':bh,'success':function(){bg(bh);}});}});}})),aS=(bb[cZ(0x32e)][cZ(0x6e2)]=function(bg){var f6=cZ;bg&&this[f6(0x560)][f6(0x3ef)](bg);},bb[cZ(0x32e)]['prefixHandler']=function(bg){return a2(a2({},bg),{'aegisRequestStartTime':+new Date()});},bb[cZ(0x32e)]['successHandler']=function(bg,bh){var f7=cZ,bi;this['callbacks'][f7(0x280)](function(bj){var f8=f7,bk;try{null!=(bk=bj[f8(0x900)])&&bk['call'](bj,bg,bh);}catch(bl){}}),null!=(bi=bh[f7(0x900)])&&bi['call'](bh,bg,bh);},bb[cZ(0x32e)][cZ(0x5f3)]=function(bg,bh){var f9=cZ,bi;this[f9(0x560)][f9(0x280)](function(bj){var fa=f9,bk;try{null!=(bk=bj[fa(0x796)])&&bk[fa(0x8fb)](bj,bg,bh);}catch(bl){}}),null!=(bi=bh[f9(0x796)])&&bi[f9(0x8fb)](bh,bg,bh);},bb[cZ(0x32e)][cZ(0x9b6)]=function(bg,bh){var fb=cZ,bi;this[fb(0x560)][fb(0x280)](function(bj){var fc=fb,bk;try{null!=(bk=bj['complete'])&&bk[fc(0x8fb)](bj,bg,bh);}catch(bl){}}),null!=(bi=bh['complete'])&&bi[fb(0x8fb)](bh,bg,bh);},bb[cZ(0x32e)][cZ(0x496)]=function(){var fd=cZ;try{this[fd(0x40a)]();}catch(bg){console[fd(0x4d7)]('cannot\x20override\x20`'+this[fd(0x63b)]+fd(0x3a5)+bg);}finally{this[fd(0x73a)]=!0x0;}},bb),aT=wx||qq,aU={},aV=(a1(ba,aC=aS),ba['prototype'][cZ(0x40a)]=function(){var fe=cZ,bg=this;aT[fe(0x72d)]&&aT[fe(0x72d)][this[fe(0x63b)]]&&Object[fe(0x85d)](aT[fe(0x72d)],this[fe(0x63b)],{'get':function(){var ff=fe;return bg[ff(0x195)][ff(0x3a7)](bg);}});},ba[cZ(0x32e)][cZ(0x195)]=function(bg){var fg=cZ,bh=this,bi=this[fg(0x6ce)](bg);return new Promise(function(bj,bk){var fh=fg,bl=null==(bl=aU[bh[fh(0x63b)]])?void 0x0:bl[fh(0x5f6)];null!=bl&&bl(a2(a2({},bi),{'success':function(bm){bh['successHandler'](bm,bi),bj(bm);},'fail':function(bm){var fi=fh;bh[fi(0x5f3)](bm,bi),bk(bm);},'complete':function(bm){var fj=fh;bh[fj(0x9b6)](bm,bi);}}));});},ba),aW=wx||qq,aX={},aY=(a1(b9,aB=aS),b9[cZ(0x32e)][cZ(0x40a)]=function(){var fk=cZ,bg=this;Object['defineProperty'](aW,this[fk(0x63b)],{'get':function(){var fl=fk;return bg['hackHandler'][fl(0x3a7)](bg);}});},b9[cZ(0x32e)][cZ(0x195)]=function(bg){var fm=cZ,bh=this,bi=this[fm(0x6ce)](bg);return null==(bg=null==(bg=aX[this[fm(0x63b)]])?void 0x0:bg['originApi'])?void 0x0:bg(a2(a2({},bi),{'success':function(bj){bh['successHandler'](bj,bi);},'fail':function(bj){var fn=fm;bh[fn(0x5f3)](bj,bi);},'complete':function(bj){var fo=fm;bh[fo(0x9b6)](bj,bi);}}));},b9),aZ=new aK({'name':cZ(0x172),'override':!0x1,'onNewAegis':function(bg){var fp=cZ;this[fp(0x496)]||(this[fp(0x496)]=!0x0,this[fp(0x918)](bg[fp(0x831)]),this[fp(0x73d)](bg[fp(0x831)]),this['overrideCallContainer'](bg[fp(0x831)]));},'hackRequest':function(bg){var bh=this;ay({'apiName':'request','success':function(bi,bj){var fq=a0b,bk,bl,bm,bn;bg[fq(0x771)]&&-0x1<bj[fq(0x90b)]['indexOf'](bg[fq(0x771)])||(bk={'method':bj[fq(0x7cb)]||fq(0x40e),'url':a9(bj['url']),'duration':Date[fq(0x32d)]()-bj[fq(0x18a)],'status':bi[fq(0x53a)]||0x0,'nextHopProtocol':'','isHttps':aa(bj[fq(0x90b)]),'type':fq(0x212)},bl=null==(bl=bg[fq(0x208)])?void 0x0:bl[fq(0x78b)],bm=(bn=ab(bi[fq(0x8c4)],bg[fq(0x208)],{'url':bj[fq(0x90b)],'ctx':bi})||{})[fq(0x429)],bn=bn[fq(0x318)],bj=fq(0x74c)+bk[fq(0x90b)]+fq(0x44b)+bk['method']+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20'+(bl?ak(bj[fq(0x8c4)]):'')+fq(0x3c8)+bk['duration']+fq(0x359)+(bi['statusCode']||0x0)+fq(0x633)+bm+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20'+(bl?ac(bi[fq(0x8c4)]):''),bh['publishNormalLog']({'msg':bj,'level':ad[fq(0x738)],'ctx':bi}),bk[fq(0x84d)]=bm,bk[fq(0x318)]=+bn,bh[fq(0x3f8)](bk),bn&&bh[fq(0x1e8)]({'msg':bj,'level':ad[fq(0x4ba)],'ctx':bi}));},'fail':function(bi,bj){var fr=a0b;bg[fr(0x771)]&&-0x1<bj[fr(0x90b)][fr(0x50a)](bg['hostUrl'])||(bj={'method':bj[fr(0x7cb)]||fr(0x40e),'url':a9(bj['url']),'duration':Date[fr(0x32d)]()-bj[fr(0x18a)],'status':0x0,'nextHopProtocol':'','isHttps':aa(bj[fr(0x90b)]),'type':fr(0x212)},bh[fr(0x3f8)](bj));}});},'overrideCallFunction':function(bg){var fs=cZ,bh=this;ax({'apiName':fs(0x77d),'success':function(bi,bj){var ft=fs;bh['cloudSuccessCallback'](bg,bj,bi,ft(0x77d));},'fail':function(bi,bj){var fu=fs;bj={'method':'call','url':fu(0x52f)+bj['name'],'duration':Date[fu(0x32d)]()-bj['aegisRequestStartTime'],'status':0x0,'nextHopProtocol':'','type':fu(0x212),'errMsg':bi['errMsg'],'isHttps':!0x0},bh[fu(0x3f8)](bj);}});},'overrideCallContainer':function(bg){var fv=cZ,bh=this;ax({'apiName':fv(0x4bd),'success':function(bi,bj){var fw=fv;bh[fw(0x854)](bg,bj,bi,fw(0x4bd));},'fail':function(bi,bj){var fx=fv;bj={'method':fx(0x8fb),'url':fx(0x5a4)+bj['path'],'duration':Date[fx(0x32d)]()-bj[fx(0x18a)],'status':0x0,'nextHopProtocol':'','type':fx(0x212),'errMsg':bi[fx(0x953)],'isHttps':!0x0},bh[fx(0x3f8)](bj);}});},'cloudSuccessCallback':function(bg,bh,bi,bj){var fy=cZ,bk=fy(0x77d)===bj?bh[fy(0x836)]:bh['path'],bl=fy(0x77d)===bj?bi[fy(0x845)]:bi[fy(0x8c4)],bm=(bk={'method':'call','url':fy(0x51f)+bj+'.'+bk,'duration':Date[fy(0x32d)]()-bh[fy(0x18a)],'status':0xc8,'nextHopProtocol':'','type':'fetch','isHttps':!0x0},[fy(0x63b),fy(0x18a),fy(0x831),fy(0x900),'fail',fy(0x951)]),bn=Object['keys'](bh)['reduce'](function(bq,br){return bm['includes'](br)||(bq[br]=bh[br]),bq;},{}),bo=(bj=fy(0x77d)===bj?(null==(bj=bi[fy(0x8c4)])?void 0x0:bj[fy(0x429)])||0x0:bi[fy(0x53a)],(bp=ab(bl,bg[fy(0x208)],{'url':bk[fy(0x90b)],'ctx':bi})||{})['code']),bp=void 0x0!==(bp=bp[fy(0x318)])&&bp;bk['ret']=bo,bk[fy(0x318)]=+bp,bg=null==(bo=bg[fy(0x208)])?void 0x0:bo[fy(0x78b)],bo=fy(0x74c)+bk['url']+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20type:\x20'+bk['type']+fy(0x502)+(bg?ac(bn):'')+fy(0x40d)+bj+fy(0x387)+bk[fy(0x84d)]+fy(0x4b2)+bk[fy(0x252)]+fy(0x3e4)+(bg?ac(bl):'')+fy(0x837),this[fy(0x1e8)]({'msg':bo,'level':ad[fy(0x738)],'ctx':bi}),this[fy(0x3f8)](bk),bp&&this['publishNormalLog']({'msg':bo,'level':ad[fy(0x4ba)],'ctx':bi});},'publishSpeedLog':function(bg){var fz=cZ;this[fz(0x65f)](function(bh){var fA=fz;bh[fA(0x3eb)](bg);});},'publishNormalLog':function(bg){var fB=cZ;this[fB(0x65f)](function(bh){bh['normalLogPipeline'](bg);});}}),b0=wx||qq,b1=b0['connectSocket'],b2=(b8[cZ(0x32e)][cZ(0x3bf)]=function(bg){var fC=cZ,bh=bg[fC(0x200)];bg=bg['onError'],bh&&this[fC(0x8a8)][fC(0x3ef)](bh),bg&&this['onErrors'][fC(0x3ef)](bg);},b8[cZ(0x32e)][cZ(0x21a)]=function(bg){var fD=cZ,bh=this,bi=(this[fD(0x75f)][fD(0x280)](function(bj){var fE=fD;bg[fE(0x1cc)](bj);}),bg[fD(0x200)]);return Object['defineProperty'](bg,fD(0x200),{'get':function(){return function(bj){return new Promise(function(bk){bi['call'](bg,a2(a2({},bj),{'fail':function(bl){var fF=a0b;bh[fF(0x8a8)][fF(0x280)](function(bm){var fG=fF,bn;null!=(bn=bm[fG(0x796)])&&bn['call'](bm,bl,bj);}),bk(bl);}}));});};}}),bg;},b8),b3=(a1(b7,aA=aS),b7[cZ(0x32e)][cZ(0x25c)]=function(bg){var fH=cZ;this[fH(0x95a)][fH(0x3bf)](bg);},b7['prototype'][cZ(0x40a)]=function(){var fI=cZ,bg=this;Object[fI(0x85d)](b0,fI(0x638),{'get':function(){return bg['hackHandler']['bind'](bg);}});},b7[cZ(0x32e)][cZ(0x195)]=function(bg){var fL=cZ,bh=this,bi=this['prefixHandler'](bg);return bg=b1(a2(a2({},bi),{'success':function(bj){bh['successHandler'](bj,bi);},'fail':function(bj){var fJ=a0b;bh[fJ(0x5f3)](bj,bi);},'complete':function(bj){var fK=a0b;bh[fK(0x9b6)](bj,bi);}})),this[fL(0x95a)][fL(0x21a)](bg),bg;},b7),b4=(aS=new aK({'name':cZ(0x1cc),'onNewAegis':function(bg){var fM=cZ,bh=aL[fM(0x2eb)]()['SDKVersion'];this[fM(0x700)](),this[fM(0x6ed)](bg),this[fM(0x850)](bg),bg[fM(0x831)]['websocketHack']&&au(bh,fM(0x1ac))&&this[fM(0x9eb)]();},'listenError':function(){var fN=cZ,bg=this;fN(0x3b5)==typeof aL[fN(0x1cc)]&&aL[fN(0x1cc)](function(bh){var fO=fN;bh&&bg[fO(0x491)]({'msg':bh,'level':ad[fO(0x289)]});}),av(fN(0x79f))&&aL[fN(0x79f)](function(bh){var fP=fN;!(bh=bh['reason'])||-0x1<JSON['stringify'](bh)[fP(0x50a)](fP(0x842))||bg[fP(0x491)]({'msg':bh,'level':ad[fP(0x5e7)]});}),av(fN(0x4f3))&&aL[fN(0x4f3)](function(bh){var fQ=fN;bh&&bg[fQ(0x491)]({'msg':bh,'level':ad[fQ(0x774)]});});},'publishErrorLog':function(bg){var fR=cZ;this[fR(0x65f)](function(bh){var fS=fR;bh[fS(0x2b0)](bg);});},'hackNetWork':function(bg){var fT=cZ;for(var bh=this,bi=bg[fT(0x831)],bj=0x0,bk=[{'apiName':fT(0x2c3),'complete':function(bm,bn){return bh['requestCompleteError'](bm,bn,bi);}},{'apiName':'uploadFile','complete':function(bm,bn){var fU=fT;return bh[fU(0x531)](bm,bn,bi);}},{'apiName':'downloadFile','complete':function(bm,bn){var fV=fT;return bh[fV(0x346)](bm,bn,bi);}}];bj<bk[fT(0x4ae)];bj++){var bl;ay({'apiName':(bl=bk[bj])[fT(0x63b)],'complete':bl=bl[fT(0x951)]});}},'requestCompleteError':function(bg,bh,bi){var fW=cZ,bj,bk=bg[fW(0x953)],bl=bg[fW(0x53a)];bi['hostUrl']&&-0x1<(null==(bj=bh['url'])?void 0x0:bj[fW(0x50a)](bi[fW(0x771)]))||(bj=this[fW(0x3b9)]({'errMsg':bk,'statusCode':bl}))&&this[fW(0x4b9)]({'apiName':fW(0x2c3),'opts':bh,'res':bg,'config':bi,'type':bj});},'downloadFileCompleteError':function(bg,bh,bi){var fX=cZ,bj=bg[fX(0x953)],bk=bg[fX(0x53a)],bl=bg['filePath'],bm=(bg=bg[fX(0x4d1)],this[fX(0x3b9)]({'errMsg':bj,'statusCode':bk}));bm&&(bi=null==(bi=bi[fX(0x208)])?void 0x0:bi[fX(0x78b)],this[fX(0x491)]({'msg':fX(0x3f6)+bm+fX(0x749)+(bk||0x0)+fX(0x1f5)+(Date[fX(0x32d)]()-bh['aegisRequestStartTime'])+'ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20filePath:\x20'+bl+fX(0x533)+bg+fX(0x5cc)+bh[fX(0x90b)]+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20'+(bh[fX(0x7cb)]||fX(0x40e))+fX(0x602)+(bi?ak(bh[fX(0x8c4)]):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20'+bj['slice'](0x0,0x3e8),'level':ad['AJAX_ERROR']}));},'uploadFileCompleteError':function(bg,bh,bi){var fY=cZ,bj=bg[fY(0x953)],bk=bg['statusCode'];(bj=this[fY(0x3b9)]({'errMsg':bj,'statusCode':bk}))&&this[fY(0x4b9)]({'apiName':'uploadFile','opts':bh,'res':bg,'config':bi,'type':bj});},'hackCloud':function(bg){var fZ=cZ;for(var bh=this,bi=bg['config'],bj=0x0,bk=[{'apiName':fZ(0x77d),'complete':function(bm,bn){return bh['callFunctionCompleteError'](bm,bn,bi);}},{'apiName':fZ(0x4bd),'complete':function(bm,bn){var g0=fZ;return bh[g0(0x23b)](bm,bn,bi);}}];bj<bk['length'];bj++){var bl;ax({'apiName':(bl=bk[bj])['apiName'],'complete':bl=bl[fZ(0x951)]});}},'callFunctionCompleteError':function(bg,bh,bi){var g1=cZ;(-0x1<bg[g1(0x953)]['indexOf'](g1(0x796))||-0x1<bg[g1(0x953)][g1(0x50a)](g1(0x920)))&&(bi=null==(bi=bi[g1(0x208)])?void 0x0:bi['apiDetail'],this[g1(0x491)]({'msg':g1(0x6e9)+(Date[g1(0x32d)]()-bh[g1(0x18a)])+g1(0x988)+(bi?ak(bg):'')+g1(0x8a0)+bh['name']+g1(0x4f6)+(bi?ak(bh[g1(0x8c4)]):'')+g1(0x256)+bg[g1(0x953)][g1(0x2a0)](0x0,0x3e8),'level':ad[g1(0x37b)]}));},'callContainerCompleteError':function(bg,bh,bi){var g2=cZ,bj=bg['errMsg'],bk=bg[g2(0x53a)];(0x190<=bk||-0x1<bj[g2(0x50a)]('fail')||-0x1<bj[g2(0x50a)](g2(0x920)))&&(bi=null==(bi=bi['api'])?void 0x0:bi[g2(0x78b)],this[g2(0x491)]({'msg':g2(0x80f)+(bk||0x0)+g2(0x4b2)+(Date['now']()-bh[g2(0x18a)])+'ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20'+(bi?ak(bg):'')+g2(0x8ae)+bh[g2(0x28d)]+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20'+(bh[g2(0x7cb)]||g2(0x763))+g2(0x3d2)+(bi?ak(bh[g2(0x8c4)]):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20'+bj[g2(0x2a0)](0x0,0x3e8),'level':ad['AJAX_ERROR']}));},'publishNetWorkError':function(bg){var g3=cZ,bh=bg[g3(0x63b)],bi=bg['opts'],bj=bg[g3(0x374)],bk=bg[g3(0x831)],bl=(bg=bg[g3(0x9b1)],bj[g3(0x953)]),bm=bj[g3(0x53a)],bn=bj[g3(0x8c4)],bo=null==(bo=bk[g3(0x208)])?void 0x0:bo[g3(0x78b)],bp='wx.cloud.callFunction.'+bi[g3(0x90b)];bk=ab(bn,bk['api'],{'url':bp,'ctx':bj})[g3(0x429)],this[g3(0x491)]({'msg':'AJAX_ERROR:\x20'+bh+'\x20'+bg+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20'+(bm||0x0)+g3(0x8b5)+bk+g3(0x1f5)+(Date['now']()-bi['aegisRequestStartTime'])+g3(0x70f)+(bo?ak(bn):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20url:\x20'+bi[g3(0x90b)]+g3(0x464)+(bi['method']||g3(0x40e))+g3(0x602)+(bo?ak(bi['data']):'')+g3(0x2cc)+bl[g3(0x2a0)](0x0,0x3e8),'level':ad[g3(0x37b)]});},'getErrorType':function(bg){var g4=cZ,bh=bg[g4(0x953)],bi=(bg=bg[g4(0x53a)],'');return-0x1<bh[g4(0x50a)](g4(0x920))||-0x1<bh[g4(0x50a)]('超时')?bi=g4(0x920):0x190<=bg?bi=g4(0x8e5):(-0x1<bh[g4(0x50a)](g4(0x796))||!bg||bg<0x0)&&(bi=g4(0x343)),bi;},'hackWsConnect':function(){var g5=cZ,bg,bh,bi=this;ay({'apiName':g5(0x65d),'fail':function(bj){var g6=g5;bi[g6(0x616)](bj);}}),bg=(bh={'connectCallback':{'fail':function(bj){var g7=g5;bi[g7(0x616)](bj);}},'taskOpt':{'onError':function(bj){bi['publishSocketError'](bj);},'send':{'fail':function(bj){bi['publishSocketError'](bj);}}}})[g5(0x5ab)],bh=bh['taskOpt'],az?az[g5(0x6e2)](bg):az=new b3(bg),bh&&az[g5(0x25c)](bh);},'publishSocketError':function(bg){var g8=cZ;bg&&this[g8(0x491)]({'msg':bg['errMsg'],'level':ad[g8(0x2c0)]});}}),new aK({'name':cZ(0x945),'isStart':!0x1,'onNewAegis':function(bg){var g9=cZ;this[g9(0x885)]||(this[g9(0x885)]=!0x0,this[g9(0x4fa)](bg));},'start':function(){var ga=cZ,bg=this;aL[ga(0x17d)]&&aL[ga(0x17d)]()[ga(0x89d)](function(bh){var gb=ga;null!=(bh=bh[gb(0x92a)]())&&bh[gb(0x280)](function(bi){var gc=gb;'number'!=typeof bi['duration']||bi['duration']<=0x0||bg[gc(0x2c9)](bi);});})['observe']({'entryTypes':[ga(0x892)]});},'generateLog':function(bg){var gd=cZ;return{'url':''+a9(bg['uri']),'method':gd(0x40e),'duration':Math['round'](0x64*bg[gd(0x252)])/0x64,'status':0xc8,'type':'static','isHttps':!0x0,'urlQuery':'','nextHopProtocol':'','domainLookup':0x0,'connectTime':0x0};},'publishAssetLog':function(bg){var bh=this;this['$walk'](function(bi){var ge=a0b;bi[ge(0x3eb)](bh[ge(0x37c)](bg));});}})),b5=[cZ(0x69a),'onHide','onError',cZ(0x7bf),cZ(0x17a),cZ(0x2f6),cZ(0x5c5)],b6=new aK({'name':cZ(0x2ee),'pageNavigationStartTime':{},'onNewAegis':function(bg){var gf=cZ;try{av(gf(0x17d))&&this[gf(0x6b0)](bg),this[gf(0x547)](bg),this['reportSetDataTiming'](bg);}catch(bh){}},'reportPerformance':function(bg){var gg=cZ,bh=this,bi=null==(bi=aL[gg(0x17d)]())?void 0x0:bi[gg(0x89d)](function(bj){var gh=gg,bk={},bl=null==(bl=bj[gh(0x1a7)](gh(0x5c4)))?void 0x0:bl[0x0],bm=null==(bm=bj[gh(0x1a7)](gh(0x805)))?void 0x0:bm[0x0],bn=null==(bn=bj[gh(0x1a7)](gh(0x62a)))?void 0x0:bn[0x0],bo=null==(bo=bj[gh(0x1a7)]('route'))?void 0x0:bo[0x0],bp=null==(bp=null==(bp=bj[gh(0x1a7)](gh(0x463)))?void 0x0:bp[0x0])?void 0x0:bp[gh(0x7d3)],bq=null==(bq=(null==(bq=bj['getEntriesByName'](gh(0x463)))?void 0x0:bq[0x0])||(null==(bq=bj['getEntriesByName'](gh(0x8f8)))?void 0x0:bq[0x0])||(null==(bq=bj[gh(0x1a7)](gh(0x5c4)))?void 0x0:bq[0x0]))?void 0x0:bq[gh(0x15d)],br=null==(bj=(null==(br=bj['getEntriesByName'](gh(0x8f8)))?void 0x0:br[0x0])||(null==(br=bj[gh(0x1a7)]('appLaunch'))?void 0x0:br[0x0]))?void 0x0:bj[gh(0x7d3)];bq&&(bh['pageNavigationStartTime'][bq]=null,br&&(bh['pageNavigationStartTime'][bq]=br)),bl&&(bk['appLaunch']=bl[gh(0x252)]),bm&&(bk[gh(0x194)]=bm[gh(0x252)]),bn&&(bk[gh(0x279)]=bn['duration']),bo&&(bk[gh(0x693)]=bo[gh(0x252)]),bp&&br?bk['firstPaintTiming']=Math[gh(0x3ae)](bp-br,0x0):bp&&bh[gh(0x947)][bq]&&(bk[gh(0x60f)]=Math['max'](bp-bh[gh(0x947)][bq],0x0)),bh[gh(0x88d)](bk,bg);});null!=bi&&bi['observe']({'entryTypes':[gg(0x794),gg(0x6ca),gg(0x2ef)]});},'publish':function(bg,bh){var gi=cZ,bi,bj,bk,bl=[],bm=bh[gi(0x831)],bn=-0x1===(null==(bi=bh['config'][gi(0x266)])?void 0x0:bi[gi(0x50a)]('?'))?'?':'&';for(bj in bg)bl[gi(0x3ef)](bj+'='+bg[bj]);gi(0x3b5)==typeof bm[gi(0x490)]?(bk=bm['urlHandler']()||window[gi(0x222)][gi(0x57c)],this[gi(0x65f)](function(bo){var gj=gi;bo[gj(0x200)]({'url':bh[gj(0x831)][gj(0x266)]+bn+bl[gj(0x9ea)]('&')+gj(0x367)+encodeURIComponent(bk),'beanFilter':['from'],'type':ag[gj(0x213)],'log':bg});})):this[gi(0x65f)](function(bo){var gk=gi;bo[gk(0x200)]({'url':bh[gk(0x831)][gk(0x266)]+bn+bl[gk(0x9ea)]('&'),'type':ag[gk(0x213)],'log':bg});});},'setPagePV':function(bg){var gl=cZ,bh=this;aL['onAppRoute']&&aL[gl(0x8c1)](function(bi){var gm=gl;gm(0x5c4)!==bi[gm(0x503)]&&(bh[gm(0x65f)](function(bj){var gn=gm;bj[gn(0x200)]({'url':''+bj[gn(0x831)][gn(0x29f)],'type':ag['PV']});}),bh['reportPageLoaded'](bi));});},'reportPageLoaded':function(bg){var go=cZ;bg=go(0x791)+bg[go(0x28d)]+go(0x1fb)+bg[go(0x503)],this[go(0x1e8)]({'msg':bg,'level':ad[go(0x469)]});},'publishNormalLog':function(bg){var gp=cZ;this[gp(0x65f)](function(bh){var gq=gp;bh[gq(0x2b0)](bg);});},'reportSetDataTiming':function(bg){var gr=cZ,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br=this;!0x0!==(bq=(bq=bg[gr(0x831)])['setDataReportConfig']||(null==(bq=bq[gr(0x2ee)])?void 0x0:bq[gr(0x1fd)])||{})[gr(0x173)]&&(bh=bq[gr(0x7e5)],bi=!0x1!==bq[gr(0x559)],bj=bh&&0x0<+bh?+bh:0x1e,bk=aq([al(bg,0xa),function(bs){var gs=gr;bs=bs[gs(0x5bf)](function(bu){var gt=gs;return{'type':ag[gt(0x5c6)],'component':bu[gt(0x615)],'duration':bu[gt(0x252)],'fields':bu['dataPaths']&&bu[gt(0x3da)][gt(0x4ae)]?bu[gt(0x3da)]['sort']()[gt(0x9ea)](';'):void 0x0,'size':bu[gt(0x698)]};}),bg[gs(0x200)]({'url':bg[gs(0x831)][gs(0x7af)]+gs(0x97e)+encodeURIComponent(JSON[gs(0x975)]({'miniProgramData':bs})),'type':ag[gs(0x5c6)],'log':bs});}]),bl=Page,bm=Component,bn=function(bs,bu){var gu=gr,bv=0x0;return null!=bs&&bs[gu(0x8c4)]?(bu[gu(0x280)](function(bw){var gv=gu;for(var bx=bs[gv(0x8c4)][bw[0x0]],by=0x1,bz=bw[gv(0x4ae)];by<bz;by++)bx[bw[by]]&&(bx=bx[bw[by]]);var bA='';try{bA=JSON[gv(0x975)](bx);}catch(bB){bA='';}bv+=0x2*(void 0x0===bA?'':bA)[gv(0x99b)](/[\u4e00-\u9fa5]/g,'aa')[gv(0x4ae)];}),bv=Math[gu(0x3e8)](bv,0xa00000)):bv;},bo=function(bs,bu){var gw=gr,bv=bu[gw(0x9de)],bw=bu['updateEndTimestamp'];bu=void 0x0===(bu=bu[gw(0x3da)])?[]:bu,bw-=bv,isNaN(bw)||bw<bj||(bv={'from':bs['is'],'duration':bw},bi&&0x0<bu[gw(0x4ae)]&&Object[gw(0x961)](bv,{'dataPaths':bu[gw(0x2a0)](0x0,0x1e),'size':bn(bs,bu)}),bk(bv));},bp=function(bs){var gx=gr,bu=gx(0x59d)+Object[gx(0x8c8)](bs[0x0])[gx(0x26a)](function(bv,bw){var gy=gx,bx='';try{bx=bw+':\x20'+JSON[gy(0x975)](bs[0x0][bw]);}catch(by){bx='';}return bv+'\x0a'+bx;},'');br[gx(0x1e8)]({'msg':bu,'level':ad[gx(0x469)]});},Page=function(bs){var gz=gr,bu=bs[gz(0x17a)];return bs[gz(0x17a)]=function(){var gA=gz,bv=this;return gA(0x3b5)==typeof this[gA(0x25e)]&&this[gA(0x25e)]({'withDataPaths':bi},function(bw){bo(bv,bw);}),null==bu?void 0x0:bu[gA(0x8fb)](this);},Object[gz(0x8c8)](bs)['forEach'](function(bv){var bw;'function'!=typeof bs[bv]||b5['includes'](bv)||(bw=bs[bv],bs[bv]=function(){var gB=a0b;for(var bx=[],by=0x0;by<arguments[gB(0x4ae)];by++)bx[by]=arguments[by];return null!=bx&&bx[0x0]&&gB(0x239)===bx[0x0][gB(0x9b1)]&&bp(bx),null==bw?void 0x0:bw['apply'](this,bx);});}),bl(bs);},Component=function(bs){var gC=gr;bs[gC(0x873)]&&bs[gC(0x873)][gC(0x4a5)]?(bu=bs[gC(0x873)][gC(0x4a5)],bs[gC(0x873)]['attached']=function(){var gD=gC,bx=this;return gD(0x3b5)==typeof this[gD(0x25e)]&&this[gD(0x25e)]({'withDataPaths':bi},function(by){bo(bx,by);}),null==bu?void 0x0:bu[gD(0x8fb)](this);}):(bv=bs[gC(0x4a5)],bs[gC(0x4a5)]=function(){var gE=gC,bx=this;return gE(0x3b5)==typeof this['setUpdatePerformanceListener']&&this[gE(0x25e)]({'withDataPaths':bi},function(by){bo(bx,by);}),null==bv?void 0x0:bv[gE(0x8fb)](this);});var bu,bv,bw=bs[gC(0x416)];return bw&&gC(0x905)===Object[gC(0x32e)]['toString'][gC(0x8fb)](bw)&&Object['keys'](bw)[gC(0x280)](function(bx){var gF=gC,by;gF(0x3b5)==typeof bw[bx]&&(by=bw[bx],bw[bx]=function(){var gG=gF;for(var bz=[],bA=0x0;bA<arguments[gG(0x4ae)];bA++)bz[bA]=arguments[bA];return null!=bz&&bz[0x0]&&gG(0x239)===bz[0x0][gG(0x9b1)]&&bp(bz),null==by?void 0x0:by['apply'](this,bz);});}),bm(bs);});}});function b7(bg){var gH=cZ;return(bg=aA['call'](this,bg)||this)[gH(0x95a)]=new b2(),bg;}function b8(){var gI=cZ;this[gI(0x75f)]=[],this[gI(0x8a8)]=[];}function b9(){var gJ=cZ;return null!==aB&&aB[gJ(0x6e8)](this,arguments)||this;}function ba(){var gK=cZ;return null!==aC&&aC[gK(0x6e8)](this,arguments)||this;}function bb(bg){var gL=cZ;this['callbacks']=[],this[gL(0x73a)]=!0x1;var bh=bg[gL(0x63b)];this[gL(0x63b)]=bh,this['isOverride']||this[gL(0x496)](),this[gL(0x560)][gL(0x3ef)](bg);}function bc(bg){var gM=cZ,bh,bi,bj,bk=aD[gM(0x8fb)](this,bg)||this;bk[gM(0x9e6)]=aQ,bk[gM(0x3eb)]=aq([(bi=bk['config'],bj={},function(bl,bm){var gN=gM,bn,bo;bi['speedSample']?(bo=gN(0x804)==typeof bi[gN(0x92b)]?bi[gN(0x92b)]:{'repeat':bi[gN(0x92b)]},bn=+bo['speed']||+bo[gN(0x92b)]||0x5,Array['isArray'](bl)?(bo=bl[gN(0x3b7)](function(bp){var gO=gN,bq=!bj[bp[gO(0x90b)]]||bj[bp['url']]<bn;return bj[bp[gO(0x90b)]]=0x1+~~bj[bp[gO(0x90b)]],bq;}))[gN(0x4ae)]&&bm(bo):(!bj[bl[gN(0x90b)]]||bj[bl[gN(0x90b)]]<bn)&&(bj[bl[gN(0x90b)]]=0x1+~~bj[bl[gN(0x90b)]],bm(bl))):bm(bl);}),al(bk),function(bl,bm){var gP=gM;av(gP(0x3e7))?aL[gP(0x3e7)]({'success':function(bn){var gQ=gP;bn=aw(bn[gQ(0x949)]),bh[gQ(0x271)]('netType',bn),bm(bl);}}):bm(bl);},function(bl,bm){var gR=gM;bk[gR(0x63c)][gR(0x335)](gR(0x767),bl);var bn=bk[gR(0x831)][gR(0x767)];if((bl=gR(0x3b5)==typeof bn?bl['filter'](function(bo){return!0x1!==bn(bo);}):bl)[gR(0x4ae)])return bm(bl);},an(bh=bk,ag[gM(0x9b5)]),function(bl){var gS=gM,bm,bn,bo,bp;bk[gS(0x200)]({'url':''+bk['config'][gS(0x206)],'method':gS(0x2ca),'data':(bm=bk[gS(0x891)],bo={'fetch':[],'static':[],'bridge':[]},bp={},Array[gS(0x3b2)](bl)?bl['forEach'](function(bq){var gT=gS,br;null!=(br=bo[bq['type']])&&br[gT(0x3ef)](bq);}):null!=(bn=bo[bl['type']])&&bn[gS(0x3ef)](bl),bp[gS(0x493)]=JSON[gS(0x975)](a2({'duration':bo},bm)),bp)});}]),bk['requestQueue']=[],bk[gM(0x6ec)]=!0x1,bk[gM(0x2c3)]=function(bl,bm,bn){var gU=gM;if(bl[gU(0x90b)]&&bk[gU(0x891)]['id']){var bo,bp,bq,br,bs;if(/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/[gU(0x2e3)](String(bk[gU(0x891)][gU(0x460)]))&&!(bk[gU(0x6ec)]||av(gU(0x3e7))&&void 0x0===bk[gU(0x891)]['netType']))return bk['requesting']=!0x0,bo=bl[gU(0x90b)],bk[gU(0x831)][gU(0x8d3)]===bo&&(bp=bm,bm=function(bx){var gV=gU;null!=bp&&bp(JSON['stringify'](bx[gV(0x8c4)]));}),!0x1!==bl[gU(0x857)]&&(bo=bo+(-0x1===bo['indexOf']('?')?'?':'&')+bk[gU(0x849)]),bu=bl['method']||gU(0x40e),bq=function(){var gW=gU;bk['requesting']=!0x1;var bx=bk['requestQueue'][gW(0x9f6)]();bx&&bk[gW(0x2c3)](bx[gW(0x35d)],bx[gW(0x900)],bx[gW(0x796)]);},br=bl,(br=(bs=bk[gU(0x831)]['onBeforeRequest'])?bs(bl,bk):br)&&br[gU(0x90b)]?(bs=bk[gU(0x831)]['enableHttp2']||!0x1,gU(0x40e)===bu?(bu=bo,bv=br['data'],bo=gU(0x940)!=typeof bu?'':'object'==typeof bv&&bv?(bw=Object[gU(0x16a)](bv)[gU(0x5bf)](function(bx){var gX=gU,by=bv[bx];return bx+'='+(gX(0x940)==typeof by?encodeURIComponent(by):encodeURIComponent(JSON[gX(0x975)](by)));})[gU(0x9ea)]('&')[gU(0x99b)](/eval/gi,gU(0x9a5)),bu+(-0x1===bu['indexOf']('?')?'?':'&')+bw):bu,bk[gU(0x9e6)](a2({'url':bo,'enableHttp2':bs,'success':bm,'fail':bn,'complete':bq},bl[gU(0x26e)]))):('string'==typeof br[gU(0x8c4)]&&(br[gU(0x8c4)]=br[gU(0x8c4)][gU(0x99b)](/eval/gi,gU(0x9a5))),bk[gU(0x9e6)](a2({'url':bo,'enableHttp2':bs,'header':br[gU(0x3f1)]?{'content-type':br[gU(0x3f1)]}:void 0x0,'method':gU(0x763),'data':br[gU(0x8c4)],'success':bm,'fail':bn,'complete':bq},bl['requestConfig']))),!0x0):(bw='',br&&br[gU(0x90b)]||(bw=gU(0x7d7),console['log'](bw)),null!=bn&&bn(bw),bq(),!0x1);bk['requestQueue'][gU(0x3ef)]({'options':bl,'success':bm,'fail':bn});}var bu,bv,bw;};try{bg['offlineLog']&&bk[gM(0x938)](),bk['init'](bg),bk[gM(0x271)]('sessionId',bc['sessionID']),bk[gM(0x271)](gM(0x21e),(av(gM(0x2f5))?aL[gM(0x2f5)]():{'scene':''})[gM(0x7a2)]||'');}catch(bl){console['warn'](bl),console['log'](gM(0x5a0),'color:\x20red'),bk[gM(0x1af)](bl);}return bk;}function bd(bg){var gY=cZ,bh,bi,bj=this,bk=void 0x0===(bk=(bg=void 0x0===bg?{}:bg)['path'])?gY(0x33b):bk;bg=void 0x0===(bg=bg['limit'])?0x4e20:bg,this[gY(0x9a6)]=[],this[gY(0x919)]=(bh=null,bi=[],function(bl){var gZ=gY;bi=bi[gZ(0x1a4)](bl),bh=bh||setTimeout(function(){var h0=gZ;bh=null;var bm,bn=bj[h0(0x719)],bo=bj['filePath'],bp=bi[h0(0x5bf)](function(bq){var h1=h0;return JSON[h1(0x975)](bq);})[h0(0x9ea)]('\x0a')+'\x0a';bp&&(bm=function(bq){var h2=h0;bq?bj['checkLimit'](bp,function(){bi=[];}):bn[h2(0x618)]({'data':bp,'filePath':bo,'encoding':h2(0x669),'fail':function(br){var h3=h2;console[h3(0x8e5)](br);},'success':function(){bi=[];}});},bn[h0(0x959)]({'path':bo,'success':function(){bm(!0x0);},'fail':function(){bm();}}));},0x7d0);}),this[gY(0x8a1)]=function(bl){var h4=gY;bj[h4(0x719)]?setTimeout(function(){bl(null);},0x0):(bl(new Error(h4(0x9a2))),bj[h4(0x6f1)]=!0x1);},this[gY(0x8ef)]=function(){var h5=gY,bl=bj[h5(0x719)],bm=bj[h5(0x513)];bl[h5(0x618)]({'filePath':bm,'data':'','fail':function(){var h6=h5;bl[h6(0x9da)](bm);}});},this['save2Offline']=function(bl,bm){var h7=gY;bl=(bl=Array[h7(0x3b2)](bl)?bl:[bl])[h7(0x5bf)](function(bn){var h8=h7;return h8(0x940)==typeof bn&&(bn={'msg':bn}),(function(){var h9=h8;for(var bo=[],bp=0x0;bp<arguments['length'];bp++)bo[bp]=arguments[bp];if(0x0===bo[h9(0x4ae)])throw new TypeError(h9(0x7ca));for(var bq=Object(bo[0x0]),br=0x1;br<bo[h9(0x4ae)];br++){var bs=bo[br];if(null!==bs){for(var bu in bs)Object[h9(0x32e)][h9(0x16f)][h9(0x8fb)](bs,bu)&&(bq[bu]=bs[bu]);}}return bq;}({'id':bm['id'],'uin':bm['uin'],'time':+Date[h8(0x32d)](),'version':bm[h8(0x24b)],'from':as(bm)},bn));}),bj[h7(0x719)]?bj[h7(0x919)](bl):(bj[h7(0x719)]||bj[h7(0x9a6)][h7(0x4ae)]||bj[h7(0x8a1)](function(bn){var ha=h7;bn?console[ha(0x8e5)](bn):bj['offlineBuffer'][ha(0x4ae)]&&(bj['addLogs'](bj['offlineBuffer']),bj['offlineBuffer']=[]);}),bj[h7(0x9a6)]=bj[h7(0x9a6)]['concat'](bl));},this['addLogs']=function(bl){var hb=gY;bj[hb(0x719)]&&bj[hb(0x919)](bl);},this[gY(0x513)]=aL[gY(0x1ad)][gY(0x518)]+bk,this[gY(0x719)]=aL[gY(0x162)](),this['limitSize']=bg;}function be(bg){var hc=cZ;this[hc(0x48c)]=!0x0,this[hc(0x836)]='',this[hc(0x424)]=[],this[hc(0x721)]=!0x1,bg[hc(0x65f)]=this['walk'][hc(0x3a7)](this),bg[hc(0x363)]=this[hc(0x7b4)][hc(0x3a7)](this),this['option']=bg,this['name']=bg[hc(0x836)];}function bf(bg){var hd=cZ,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bu,bv,bw,bx=this;this[hd(0x7f6)]=!0x1,this[hd(0x9d3)]=!0x1,this[hd(0x831)]={'version':0x0,'delay':0x3e8,'onError':!0x0,'repeat':0x5,'random':0x1,'aid':!0x0,'device':!0x0,'pagePerformance':!0x0,'webVitals':!0x0,'speedSample':!0x0,'onClose':!0x0,'hostUrl':hd(0x6df),'websocketHack':!0x1,'env':hd(0x1a3),'url':'','offlineUrl':'','whiteListUrl':'','pvUrl':'','speedUrl':'','customTimeUrl':'','performanceUrl':'','webVitalsUrl':'','eventUrl':'','setDataReportUrl':'','reportImmediately':!0x0},this[hd(0x18b)]=!0x1,this[hd(0x63c)]=new a6(),this[hd(0x891)]={},this[hd(0x2b0)]=aq([al(this,0x5),am,function(by,bz){var bA=bh['config'];bz(by=by['map'](function(bB){var he=a0b,bC,bD=bA['maxLength']||0x32000;try{if(!bB[he(0x80b)]||bB[he(0x80b)][he(0x4ae)]<=bD)return bB;bB[he(0x80b)]=null==(bC=bB['msg'])?void 0x0:bC[he(0x758)](0x0,bD);}catch(bE){bB['msg']=ak(bB[he(0x80b)])[he(0x758)](0x0,bA['maxLength']);}return bB;}));},(bv=(bh=this)[hd(0x831)],bw={},function(by,bz){var hf=hd,bA='number'==typeof bv['repeat']?bv[hf(0x92b)]:0x5;if(0x0===bA)return bz(by);bz(by[hf(0x3b7)](function(bB){var hg=hf;return bB[hg(0x7a5)]!==ad['ERROR']&&bB[hg(0x7a5)]!==ad[hg(0x5e7)]&&bB[hg(0x7a5)]!==ad['AJAX_ERROR']&&bB[hg(0x7a5)]!==ad[hg(0x730)]&&bB[hg(0x7a5)]!==ad[hg(0x690)]&&bB[hg(0x7a5)]!==ad[hg(0x8ed)]&&bB[hg(0x7a5)]!==ad[hg(0x57b)]||(bw[bB[hg(0x80b)]]=bw[bB[hg(0x80b)]]||0x0,bw[bB['msg']]+=0x1,!(bw[bB[hg(0x80b)]]>bA));}));}),(bs=this[hd(0x63c)][hd(0x335)],bu=this[hd(0x831)],function(by,bz){var hh=hd,bA,bB=bu[hh(0x915)];return hh(0x3b5)==typeof bB?(bA=by[hh(0x3b7)](function(bC){return!0x1!==bB(bC);}),bs(hh(0x40c),bA),bz(bA)):(bs(hh(0x40c),by),bz(by));}),(br=this,setTimeout(function(){var hi=hd,by=br['config'][hi(0x29f)],bz=void 0x0===by?'':by;bz&&br['sendPipeline']([function(bA,bB){bB({'url':bz,'type':ag['PV'],'fail':function(bC){var hj=a0b;hj(0x6cd)===bC&&br[hj(0x815)]();}});}],ag['PV'])(null);},0x64),function(by,bz){bz(by);}),(bp=bo=bn=!0x1,bq=[],(bl=this)[hd(0x63c)]['on'](hd(0x636),function(){var ho=hd;bm&&clearTimeout(bm),bm=setTimeout(function(){var hk=a0b,by,bz;!bp&&bl['config']&&(bp=!0x0,by=bl[hk(0x831)][hk(0x8d3)],(bz=void 0x0===by?'':by)&&bl[hk(0x642)]([function(bA,bB){var hl=hk;bB({'url':bz,'type':ag[hl(0x6e3)],'success':function(bC){var hm=hl;bo=!0x0;try{var bD=bC[hm(0x8c4)]||JSON['parse'](bC),bE=bD['retcode'],bF=bD['result'],bG=void 0x0===bF?{}:bF;if(0x0===bE){if(bn=bG[hm(0x8eb)],bl[hm(0x18b)]=bn,bG[hm(0x20c)])return void bl[hm(0x815)]();0x0<=bG[hm(0x527)]&&bG[hm(0x527)]<=0x1&&(bl[hm(0x831)][hm(0x39f)]=bG[hm(0x527)],bl['isGetSample']=!0x1);}bl[hm(0x18b)]&&bq[hm(0x4ae)]?aH(bl)(bq[hm(0x5c3)](0x0),function(){}):!bl[hm(0x18b)]&&bq[hm(0x4ae)]&&(bq[hm(0x4ae)]=0x0);var bH=bl['config'][hm(0x2a2)];hm(0x3b5)==typeof bH&&bH(bn);}catch(bI){}},'fail':function(bC){var hn=hl;'403\x20forbidden'===bC&&bl[hn(0x815)](),bo=!0x0;}});}],ag[hk(0x6e3)])(null),bp=!0x1);},bl[ho(0x831)]['uin']?0x32:0x1f4);}),bl[hd(0x63c)]['on'](hd(0x815),function(){var hp=hd;bq[hp(0x4ae)]=0x0;}),function(by,bz){var hq=hd,bA;bn||null!=(bA=null==(bA=bl[hq(0x831)])?void 0x0:bA['api'])&&bA[hq(0x620)]?bz(by[hq(0x1a4)](bq[hq(0x5c3)](0x0))['map'](function(bB){return aF(bB),bB;})):(bA=by['filter'](function(bB){var hr=hq;return bB[hr(0x7a5)]!==ad['INFO']&&bB[hr(0x7a5)]!==ad[hr(0x738)]?(aF(bB),!0x0):(bo||(bq[hr(0x3ef)](bB),0xc8<=bq[hr(0x4ae)]&&(bq[hr(0x4ae)]=0xc8)),!0x1);}))['length']&&bz(bA);}),function(by,bz){var hs=hd;try{var bA=JSON[hs(0x9d4)](JSON['stringify'](by)),bB=(bx[hs(0x63c)][hs(0x335)](hs(0x277),bA),bx[hs(0x831)][hs(0x277)]);(by=hs(0x3b5)==typeof bB?by[hs(0x3b7)](function(bC){return!0x1!==bB(bC);}):by)[hs(0x4ae)]&&bz(by);}catch(bC){}},aH(this)]),this['eventPipeline']=aq([al(this,0xa),(bk=this,function(by){var ht=hd;bk[ht(0x642)]([function(bz,bA){var hv=ht,bB=bz['map'](function(bC){var hu=a0b;return{'name':bC['name'],'ext1':bC['ext1']||bk[hu(0x831)][hu(0x92c)]||'','ext2':bC[hu(0x521)]||bk['config'][hu(0x521)]||'','ext3':bC['ext3']||bk[hu(0x831)][hu(0x7ce)]||''};});bA({'url':bk[hv(0x831)]['eventUrl']+hv(0x97e)+encodeURIComponent(JSON[hv(0x975)](bB)),'type':ag[hv(0x541)],'log':bz,'fail':function(bC){var hw=hv;hw(0x6cd)===bC&&bk[hw(0x815)]();}});}],ag['EVENT'])(by);})]),this[hd(0x93b)]={},this[hd(0x9ce)]=0x0,this['customTimePipeline']=aq([al(this,0xa),(bj=this,function(by){return bj['sendPipeline']([function(bz,bA){var hx=a0b;bA({'url':bj[hx(0x831)][hx(0x8c0)]+hx(0x97e)+encodeURIComponent(JSON[hx(0x975)]({'custom':bz})),'type':ag[hx(0x859)],'log':bz,'fail':function(bB){var hy=hx;'403\x20forbidden'===bB&&bj[hy(0x815)]();}});}],ag['CUSTOM'])(by);})]),this[hd(0x831)]=(bi=this[hd(0x831)],void 0x0===(bg=bg[hd(0x771)])&&(bg=hd(0x6df)),bi[hd(0x90b)]=bi[hd(0x90b)]||bg+hd(0x5d4),bi[hd(0x872)]=bi[hd(0x872)]||bg+'/offline',bi[hd(0x8d3)]=bi['whiteListUrl']||bg+hd(0x184),bi[hd(0x29f)]=bi[hd(0x29f)]||bg+hd(0x2cf),bi[hd(0x46a)]=bi[hd(0x46a)]||bg+hd(0x524),bi[hd(0x206)]=bi[hd(0x206)]||bg+hd(0x321),bi['customTimeUrl']=bi[hd(0x8c0)]||bg+hd(0x90d),bi[hd(0x266)]=bi[hd(0x266)]||bg+hd(0x2d2),bi[hd(0x7ff)]=bi[hd(0x7ff)]||bg+'/speed/webvitals',bi[hd(0x7af)]=bi[hd(0x498)]||bg+'/speed/miniProgramData',bi),bf['instances'][hd(0x3ef)](this);}return aK=new aK({'name':cZ(0x609),'isLoaded':!0x1,'onNewAegis':function(bg){var hz=cZ;this[hz(0x699)]||(this['isLoaded']=!0x0,this[hz(0x4fa)](bg));},'start':function(){var hA=cZ,bg=this;aL[hA(0x17d)]&&aL['getPerformance']()[hA(0x89d)](function(bh){var hB=hA;null!=(bh=bh[hB(0x92a)]())&&bh['forEach'](function(bi){var hC=hB;hC(0x480)!=typeof bi[hC(0x252)]||bi[hC(0x252)]<=0x0||bg[hC(0x269)](bi);});})[hA(0x930)]({'entryTypes':[hA(0x25a)]});},'generateLog':function(bg){var hD=cZ;return[{'type':ag[hD(0x8e0)],'packageName':bg[hD(0x865)],'size':Math[hD(0x281)](0x64*bg[hD(0x295)])/0x64,'duration':Math[hD(0x281)](0x64*bg[hD(0x252)])/0x64}];},'publishPackageLog':function(bg){var bh=this;this['$walk'](function(bi){var hE=a0b,bj=bh[hE(0x37c)](bg);bi[hE(0x200)]({'url':bi[hE(0x831)]['setDataReportUrl']+hE(0x97e)+encodeURIComponent(JSON[hE(0x975)]({'miniProgramData':bj})),'type':ag[hE(0x8e0)],'log':bj});});}}),aJ['use'](aS),aJ[cZ(0x7b9)](aZ),aJ[cZ(0x7b9)](aR),aJ[cZ(0x7b9)](b4),aJ[cZ(0x7b9)](b6),aJ[cZ(0x7b9)](aK),aJ['use'](aP),aJ;}());},0x1933:(b,d,f)=>{var hF=a0b;f['d'](d,{'Z':()=>g});const g={'0001':hF(0x969),'0002':'Please\x20enable\x20the\x20camera\x20and\x20microphone\x20permissions','0003':hF(0x9c8),'0004':'Invalid\x20input','0005':hF(0x349),'0006':hF(0x907),'0007':hF(0x727),'0008':hF(0x4f1),'0009':hF(0x5df),'0010':'Failed\x20to\x20stop\x20the\x20recorder','0011':hF(0x1f1),'0012':hF(0x97c),'0013':hF(0x308),'0014':hF(0x840),'0015':hF(0x6f7),'0016':hF(0x7a7),'0018':hF(0x824),'0019':hF(0x226),'0020':hF(0x557),'0021':hF(0x1de),'0022':hF(0x4e2),'0023':hF(0x487),'0024':hF(0x1cf),'0025':hF(0x9d5),'0026':hF(0x604),'0027':hF(0x511),'0028':'No\x20errors\x20captured','0029':'This\x20browser\x20does\x20not\x20have\x20camera\x20permission,\x20please\x20go\x20to\x20Settings\x20-\x20Privacy\x20turn\x20Camera\x20on','0030':hF(0x54f),'0031':hF(0x3d4),'0032':hF(0x24c),'0033':hF(0x658),'0034':'Unrecognized\x20response\x20data','0035':hF(0x1bd),'0036':hF(0x901),0x3e9:'Makeup',0x3ea:hF(0x598),0x3eb:hF(0x3d8),0x3ec:hF(0x5dd),0x3ed:'VR',0x3ee:'AR'};},0x1d36:(b,d,f)=>{var hG=a0b;f['d'](d,{'Z':()=>g});const g={'0001':'当前环境不支持','0002':hG(0x1cb),'0003':hG(0x62e),'0004':hG(0x6c9),'0005':hG(0x5e9),'0006':hG(0x4f9),'0007':hG(0x35f),'0008':hG(0x9d9),'0009':'录制启动失败','0010':'录制器停止失败','0011':hG(0x183),'0012':'存储空间不足,前往设置-通用-存储空间,清除缓存','0013':hG(0x58b),'0014':hG(0x748),'0015':hG(0x203),'0016':hG(0x4eb),'0018':hG(0x67f),'0019':hG(0x997),'0020':hG(0x944),'0021':hG(0x755),'0022':hG(0x869),'0023':hG(0x603),'0024':hG(0x35f),'0025':hG(0x928),'0026':hG(0x83b),'0027':hG(0x628),'0028':hG(0x3bb),'0029':hG(0x381),'0030':'调起用户摄像头失败','0031':hG(0x2e8),'0032':hG(0x977),'0033':hG(0x60a),'0034':hG(0x9a3),'0035':'已授权,仍无法访问摄像头或麦克风设备','0036':'没有麦克风权限,请到设置-隐私中开启相关权限',0x3e9:'美妆',0x3ea:'贴纸',0x3eb:'滤镜',0x3ec:hG(0x303),0x3ed:hG(0x483),0x3ee:'头像'};},0x64f:(a0,a1,a2)=>{var hH=a0b;a2['d'](a1,{'Z':()=>bf});var a3={};a2['r'](a3),a2['d'](a3,{'Canvas':()=>av,'Element':()=>aq,'HTMLElement':()=>ar,'HTMLMediaElement':()=>as,'HTMLVideoElement':()=>au,'Image':()=>aD,'MouseEvent':()=>aQ,'PointerEvent':()=>aI,'Symbol':()=>aT,'TouchEvent':()=>aG,'WebGLRenderingContext':()=>aE,'XMLHttpRequest':()=>b2,'alert':()=>b4,'blur':()=>b6,'clearInterval':()=>ba,'clearTimeout':()=>b8,'devicePixelRatio':()=>ac,'focus':()=>b5,'getComputedStyle':()=>b3,'innerHeight':()=>ae,'innerWidth':()=>ad,'location':()=>aU,'navigator':()=>aC,'performance':()=>a9,'screen':()=>af,'scrollX':()=>ag,'scrollY':()=>ah,'setInterval':()=>b9,'setTimeout':()=>b7});const a4={0x0:hH(0x7bb),0x1:'animation-direction',0x2:hH(0x8fd),0x3:hH(0x25d),0x4:hH(0x8cf),0x5:hH(0x9c6),0x6:'animation-play-state',0x7:hH(0x5d5),0x8:hH(0x2e1),0x9:hH(0x274),0xa:'background-clip',0xb:hH(0x8b0),0xc:hH(0x994),0xd:hH(0x167),0xe:'background-position',0xf:hH(0x28b),0x10:hH(0x90c),0x11:'border-bottom-color',0x12:'border-bottom-left-radius',0x13:hH(0x351),0x14:'border-bottom-style',0x15:hH(0x481),0x16:hH(0x187),0x17:hH(0x163),0x18:hH(0x5a2),0x19:hH(0x39e),0x1a:'border-image-source',0x1b:hH(0x6b9),0x1c:hH(0x197),0x1d:'border-left-style',0x1e:'border-left-width',0x1f:hH(0x8c6),0x20:'border-right-style',0x21:hH(0x931),0x22:hH(0x6d8),0x23:'border-top-left-radius',0x24:hH(0x841),0x25:hH(0x99c),0x26:'border-top-width',0x27:hH(0x6d3),0x28:hH(0x882),0x29:hH(0x1d1),0x2a:hH(0x220),0x2b:hH(0x899),0x2c:hH(0x98b),0x2d:hH(0x378),0x2e:hH(0x515),0x2f:hH(0x9e0),0x30:hH(0x703),0x31:hH(0x57f),0x32:'cursor',0x33:'direction',0x34:hH(0x168),0x35:'empty-cells',0x36:'float',0x37:hH(0x999),0x38:hH(0x9c0),0x39:hH(0x1d6),0x3a:hH(0x843),0x3b:'font-style',0x3c:'font-variant',0x3d:hH(0x30e),0x3e:hH(0x4dc),0x3f:hH(0x906),0x40:hH(0x15a),0x41:hH(0x772),0x42:hH(0x307),0x43:'image-rendering',0x44:hH(0x2d9),0x45:hH(0x423),0x46:hH(0x336),0x47:hH(0x50d),0x48:hH(0x81a),0x49:'line-height',0x4a:hH(0x16e),0x4b:hH(0x52a),0x4c:hH(0x449),0x4d:hH(0x680),0x4e:hH(0x34b),0x4f:hH(0x23e),0x50:hH(0x912),0x51:hH(0x520),0x52:hH(0x672),0x53:'min-height',0x54:hH(0x677),0x55:hH(0x3f4),0x56:'object-fit',0x57:hH(0x19b),0x58:hH(0x438),0x59:hH(0x8fe),0x5a:hH(0x8d1),0x5b:hH(0x32f),0x5c:'orphans',0x5d:'outline-color',0x5e:hH(0x18e),0x5f:hH(0x733),0x60:hH(0x879),0x61:hH(0x507),0x62:'overflow-wrap',0x63:hH(0x3e2),0x64:hH(0x1e4),0x65:hH(0x8e4),0x66:'padding-left',0x67:hH(0x99a),0x68:hH(0x966),0x69:'pointer-events',0x6a:hH(0x679),0x6b:'resize',0x6c:hH(0x808),0x6d:hH(0x973),0x6e:hH(0x5cb),0x6f:hH(0x2df),0x70:hH(0x9c2),0x71:'text-align',0x72:hH(0x833),0x73:hH(0x87a),0x74:'text-decoration-line',0x75:hH(0x1fa),0x76:'text-decoration-color',0x77:hH(0x5f1),0x78:hH(0x262),0x79:hH(0x987),0x7a:hH(0x283),0x7b:hH(0x357),0x7c:hH(0x5bd),0x7d:hH(0x21d),0x7e:hH(0x985),0x7f:hH(0x484),0x80:hH(0x34c),0x81:hH(0x219),0x82:hH(0x54c),0x83:hH(0x403),0x84:hH(0x442),0x85:hH(0x610),0x86:hH(0x646),0x87:'visibility',0x88:'white-space',0x89:hH(0x47a),0x8a:hH(0x260),0x8b:hH(0x185),0x8c:hH(0x6e0),0x8d:hH(0x7a8),0x8e:hH(0x835),0x8f:'z-index',0x90:'zoom',0x91:hH(0x58f),0x92:hH(0x52e),0x93:hH(0x45c),0x94:'-webkit-border-image',0x95:'-webkit-border-vertical-spacing',0x96:hH(0x7dc),0x97:hH(0x1c8),0x98:hH(0x38d),0x99:hH(0x5cd),0x9a:'-webkit-box-flex-group',0x9b:hH(0x4db),0x9c:hH(0x8f0),0x9d:hH(0x682),0x9e:hH(0x290),0x9f:hH(0x5d9),0xa0:hH(0x198),0xa1:hH(0x3ce),0xa2:hH(0x8a2),0xa3:hH(0x313),0xa4:hH(0x32a),0xa5:hH(0x3ec),0xa6:hH(0x667),0xa7:hH(0x909),0xa8:'align-items',0xa9:'align-self',0xaa:hH(0x472),0xab:hH(0x5a5),0xac:hH(0x461),0xad:hH(0x589),0xae:hH(0x8cb),0xaf:hH(0x734),0xb0:hH(0x44f),0xb1:'grid-auto-columns',0xb2:hH(0x232),0xb3:hH(0x2f1),0xb4:hH(0x69b),0xb5:'grid-column-start',0xb6:hH(0x614),0xb7:hH(0x9c7),0xb8:hH(0x5b5),0xb9:hH(0x526),0xba:hH(0x3fc),0xbb:hH(0x937),0xbc:hH(0x65c),0xbd:'-webkit-highlight',0xbe:hH(0x876),0xbf:hH(0x81b),0xc0:hH(0x66f),0xc1:hH(0x1c0),0xc2:hH(0x4d4),0xc3:hH(0x330),0xc4:hH(0x83c),0xc5:hH(0x1f7),0xc6:hH(0x8ea),0xc7:'-webkit-mask-box-image-repeat',0xc8:'-webkit-mask-box-image-slice',0xc9:hH(0x535),0xca:'-webkit-mask-box-image-width',0xcb:'-webkit-mask-clip',0xcc:hH(0x217),0xcd:'-webkit-mask-image',0xce:hH(0x4df),0xcf:'-webkit-mask-position',0xd0:hH(0x1f6),0xd1:'-webkit-mask-size',0xd2:hH(0x29d),0xd3:hH(0x834),0xd4:'perspective-origin',0xd5:hH(0x51b),0xd6:hH(0x986),0xd7:hH(0x28c),0xd8:hH(0x870),0xd9:'shape-margin',0xda:'-webkit-tap-highlight-color',0xdb:hH(0x867),0xdc:hH(0x838),0xdd:hH(0x20d),0xde:hH(0x890),0xdf:hH(0x21c),0xe0:hH(0x846),0xe1:hH(0x571),0xe2:hH(0x59b),0xe3:'-webkit-text-stroke-color',0xe4:'-webkit-text-stroke-width',0xe5:hH(0x70c),0xe6:hH(0x6bb),0xe7:hH(0x94c),0xe8:hH(0x77f),0xe9:hH(0x431),0xea:hH(0x27a),0xeb:hH(0x554),0xec:hH(0x57a),0xed:'buffered-rendering',0xee:hH(0x5ad),0xef:hH(0x2f7),0xf0:'mask',0xf1:hH(0x3b7),0xf2:hH(0x7d6),0xf3:'flood-opacity',0xf4:hH(0x7f4),0xf5:'stop-color',0xf6:hH(0x825),0xf7:'color-interpolation',0xf8:hH(0x592),0xf9:'color-rendering',0xfa:hH(0x439),0xfb:hH(0x8f3),0xfc:'fill-rule',0xfd:hH(0x847),0xfe:'marker-mid',0xff:hH(0x38b),0x100:hH(0x5db),0x101:hH(0x793),0x102:'stroke',0x103:hH(0x63d),0x104:hH(0x848),0x105:hH(0x87d),0x106:hH(0x63a),0x107:hH(0x3cb),0x108:hH(0x647),0x109:hH(0x3e3),0x10a:hH(0x731),0x10b:hH(0x411),0x10c:hH(0x8b6),0x10d:hH(0x2e9),0x10e:'writing-mode',0x10f:hH(0x2dd),0x110:'paint-order',0x111:'d',0x112:'cx',0x113:'cy',0x114:'x',0x115:'y',0x116:'r',0x117:'rx',0x118:'ry',0x119:hH(0x80c),0x11a:'line-break','display':hH(0x1db),'dominantBaseline':'auto','emptyCells':hH(0x178),'fill':hH(0xa02),'fillOpacity':'1','fillRule':hH(0x3d1),'filter':'none','flex':'0\x201\x20auto','flexBasis':hH(0x8ee),'flexDirection':'row','flexFlow':'row\x20nowrap','flexGrow':'0','flexShrink':'1','flexWrap':hH(0x711),'float':hH(0x352),'floodColor':hH(0xa02),'floodOpacity':'1','font':hH(0x864),'fontDisplay':'','fontFamily':hH(0x7be),'fontFeatureSettings':'normal','fontKerning':'auto','fontSize':'16px','fontStretch':hH(0x91e),'fontStyle':hH(0x61c),'fontVariant':hH(0x61c),'fontVariantCaps':hH(0x61c),'fontVariantEastAsian':hH(0x61c),'fontVariantLigatures':hH(0x61c),'fontVariantNumeric':hH(0x61c),'fontVariationSettings':hH(0x61c),'fontWeight':'400','grid':'none\x20/\x20none\x20/\x20none\x20/\x20row\x20/\x20auto\x20/\x20auto','gridArea':hH(0x6e7),'gridAutoColumns':hH(0x8ee),'gridAutoFlow':hH(0x3be),'gridAutoRows':hH(0x8ee),'gridColumn':hH(0x585),'gridColumnEnd':'auto','gridColumnGap':hH(0x33e),'gridColumnStart':hH(0x8ee),'gridGap':'0px\x200px','gridRow':hH(0x585),'gridRowEnd':hH(0x8ee),'gridRowGap':'0px','gridRowStart':hH(0x8ee),'gridTemplate':hH(0x5ac),'gridTemplateAreas':hH(0x352),'gridTemplateColumns':'none','gridTemplateRows':'none','height':hH(0x33e),'hyphens':'manual','imageRendering':'auto','inlineSize':hH(0x33e),'isolation':hH(0x8ee),'justifyContent':hH(0x61c),'justifyItems':hH(0x61c),'justifySelf':hH(0x8ee),'left':hH(0x8ee),'letterSpacing':'normal','lightingColor':hH(0x396),'lineBreak':'auto','lineHeight':'normal','listStyle':hH(0x6b5),'listStyleImage':hH(0x352),'listStylePosition':hH(0x3dc),'listStyleType':hH(0x26c),'margin':hH(0x33e),'marginBottom':hH(0x33e),'marginLeft':hH(0x33e),'marginRight':hH(0x33e),'marginTop':hH(0x33e),'marker':'','markerEnd':hH(0x352),'markerMid':'none','markerStart':hH(0x352),'mask':hH(0x352),'maskType':hH(0x6d4),'maxBlockSize':hH(0x352),'maxHeight':'none','maxInlineSize':hH(0x352),'maxWidth':hH(0x352),'maxZoom':'','minBlockSize':hH(0x33e),'minHeight':hH(0x33e),'minInlineSize':hH(0x33e),'minWidth':hH(0x33e),'minZoom':'','mixBlendMode':hH(0x61c),'objectFit':hH(0x439),'objectPosition':hH(0x84a),'offset':hH(0x7c3),'offsetDistance':hH(0x33e),'offsetPath':'none','offsetRotate':hH(0x844),'opacity':'1','order':'0','orientation':'','orphans':'2','outline':hH(0x23f),'outlineColor':hH(0xa02),'outlineOffset':'0px','outlineStyle':hH(0x352),'outlineWidth':hH(0x33e),'overflow':hH(0x812),'overflowAnchor':hH(0x8ee),'overflowWrap':hH(0x61c),'overflowX':hH(0x812),'overflowY':hH(0x812),'overscrollBehavior':hH(0x9bc),'overscrollBehaviorX':hH(0x8ee),'overscrollBehaviorY':'auto','padding':hH(0x33e),'paddingBottom':hH(0x33e),'paddingLeft':'0px','paddingRight':'0px','paddingTop':'0px','page':'','pageBreakAfter':hH(0x8ee),'pageBreakBefore':'auto','pageBreakInside':hH(0x8ee),'paintOrder':hH(0x9e1),'perspective':hH(0x352),'perspectiveOrigin':hH(0x79d),'placeContent':'normal\x20normal','placeItems':'normal\x20normal','placeSelf':hH(0x9bc),'pointerEvents':hH(0x8ee),'position':'static','quotes':'','r':hH(0x33e),'resize':'none','right':hH(0x8ee),'rx':hH(0x8ee),'ry':hH(0x8ee),'scrollBehavior':hH(0x8ee),'shapeImageThreshold':'0','shapeMargin':hH(0x33e),'shapeOutside':hH(0x352),'shapeRendering':hH(0x8ee),'size':'','speak':hH(0x61c),'src':'','stopColor':'rgb(0,\x200,\x200)','stopOpacity':'1','stroke':hH(0x352),'strokeDasharray':'none','strokeDashoffset':hH(0x33e),'strokeLinecap':hH(0x2dc),'strokeLinejoin':hH(0x3cf),'strokeMiterlimit':'4','strokeOpacity':'1','strokeWidth':hH(0x22b),'tabSize':'8','tableLayout':hH(0x8ee),'textAlign':hH(0x4fa),'textAlignLast':hH(0x8ee),'textAnchor':hH(0x4fa),'textCombineUpright':'none','textDecoration':hH(0x5f5),'textDecorationColor':hH(0xa02),'textDecorationLine':hH(0x352),'textDecorationSkipInk':'auto','textDecorationStyle':hH(0x80d),'textIndent':hH(0x33e),'textOrientation':'mixed','textOverflow':hH(0x9e0),'textRendering':hH(0x8ee),'textShadow':'none','textSizeAdjust':'auto','textTransform':hH(0x352),'textUnderlinePosition':hH(0x8ee),'top':hH(0x8ee),'touchAction':hH(0x8ee),'transform':hH(0x352),'transformBox':hH(0x91c),'transformOrigin':hH(0x79d),'transformStyle':hH(0x7fe),'transition':hH(0x380),'transitionDelay':'0s','transitionDuration':'0s','transitionProperty':'all','transitionTimingFunction':hH(0x98f),'unicodeBidi':'normal','unicodeRange':'','userSelect':hH(0x8ee),'userZoom':'','vectorEffect':hH(0x352),'verticalAlign':hH(0x77b),'visibility':hH(0x812),'webkitAppRegion':hH(0x543),'webkitAppearance':hH(0x352),'webkitBorderAfter':hH(0x9d0),'webkitBorderAfterColor':hH(0xa02),'webkitBorderAfterStyle':hH(0x352),'webkitBorderAfterWidth':hH(0x33e),'webkitBorderBefore':'0px\x20none\x20rgb(0,\x200,\x200)','webkitBorderBeforeColor':hH(0xa02),'webkitBorderBeforeStyle':hH(0x352),'webkitBorderBeforeWidth':hH(0x33e),'webkitBorderEnd':'0px\x20none\x20rgb(0,\x200,\x200)','webkitBorderEndColor':hH(0xa02),'webkitBorderEndStyle':hH(0x352),'webkitBorderEndWidth':hH(0x33e),'webkitBorderHorizontalSpacing':hH(0x33e),'webkitBorderImage':'none','webkitBorderStart':'0px\x20none\x20rgb(0,\x200,\x200)','webkitBorderStartColor':'rgb(0,\x200,\x200)','webkitBorderStartStyle':hH(0x352),'webkitBorderStartWidth':hH(0x33e),'webkitBorderVerticalSpacing':hH(0x33e),'webkitBoxAlign':hH(0x292),'webkitBoxDecorationBreak':hH(0x2a0),'webkitBoxDirection':hH(0x61c),'webkitBoxFlex':'0','webkitBoxFlexGroup':'1','webkitBoxLines':hH(0x817),'webkitBoxOrdinalGroup':'1','webkitBoxOrient':'horizontal','webkitBoxPack':'start','webkitBoxReflect':'none','webkitColumnBreakAfter':hH(0x8ee),'webkitColumnBreakBefore':hH(0x8ee),'webkitColumnBreakInside':'auto','webkitFontSizeDelta':'','webkitFontSmoothing':hH(0x8ee),'webkitHighlight':hH(0x352),'webkitHyphenateCharacter':hH(0x8ee),'webkitLineBreak':hH(0x8ee),'webkitLineClamp':hH(0x352),'webkitLocale':hH(0x8ee),'webkitLogicalHeight':hH(0x33e),'webkitLogicalWidth':hH(0x33e),'webkitMarginAfter':hH(0x33e),'webkitMarginAfterCollapse':hH(0x696),'webkitMarginBefore':hH(0x33e),'webkitMarginBeforeCollapse':hH(0x696),'webkitMarginBottomCollapse':hH(0x696),'webkitMarginCollapse':'','webkitMarginEnd':hH(0x33e),'webkitMarginStart':hH(0x33e),'webkitMarginTopCollapse':hH(0x696),'webkitMask':'','webkitMaskBoxImage':hH(0x352),'webkitMaskBoxImageOutset':hH(0x33e),'webkitMaskBoxImageRepeat':'stretch','webkitMaskBoxImageSlice':hH(0x51d),'webkitMaskBoxImageSource':hH(0x352),'webkitMaskBoxImageWidth':'auto','webkitMaskClip':'border-box','webkitMaskComposite':hH(0x3c6),'webkitMaskImage':hH(0x352),'webkitMaskOrigin':hH(0x641),'webkitMaskPosition':hH(0x4aa),'webkitMaskPositionX':'0%','webkitMaskPositionY':'0%','webkitMaskRepeat':hH(0x92b),'webkitMaskRepeatX':'','webkitMaskRepeatY':'','webkitMaskSize':'auto','webkitMaxLogicalHeight':hH(0x352),'webkitMaxLogicalWidth':hH(0x352),'webkitMinLogicalHeight':hH(0x33e),'webkitMinLogicalWidth':'0px','webkitPaddingAfter':hH(0x33e),'webkitPaddingBefore':hH(0x33e),'webkitPaddingEnd':hH(0x33e),'webkitPaddingStart':'0px','webkitPerspectiveOriginX':'','webkitPerspectiveOriginY':'','webkitPrintColorAdjust':hH(0x23c),'webkitRtlOrdering':hH(0x1c3),'webkitRubyPosition':'before','webkitTapHighlightColor':'rgba(0,\x200,\x200,\x200.4)','webkitTextCombine':hH(0x352),'webkitTextDecorationsInEffect':hH(0x352),'webkitTextEmphasis':'','webkitTextEmphasisColor':hH(0xa02),'webkitTextEmphasisPosition':hH(0x265),'webkitTextEmphasisStyle':'none','webkitTextFillColor':hH(0xa02),'webkitTextOrientation':hH(0x4ec),'webkitTextSecurity':hH(0x352),'webkitTextStroke':'','webkitTextStrokeColor':'rgb(0,\x200,\x200)','webkitTextStrokeWidth':hH(0x33e),'webkitTransformOriginX':'','webkitTransformOriginY':'','webkitTransformOriginZ':'','webkitUserDrag':hH(0x8ee),'webkitUserModify':'read-only','webkitWritingMode':'horizontal-tb','whiteSpace':'normal','widows':'2','width':hH(0x33e),'willChange':hH(0x8ee),'wordBreak':'normal','wordSpacing':hH(0x33e),'wordWrap':hH(0x61c),'writingMode':hH(0x245),'x':hH(0x33e),'y':hH(0x33e),'zIndex':'auto','zoom':'1'},a5=function(bg){var hI=hH;const bh=bg[hI(0x260)],bi=bg[hI(0x307)];return Object['assign'](a4,{'display':hI(0x1db),'position':hI(0x291),'inlineSize':bh+'px','perspectiveOrigin':bh/0x2+hI(0x8aa)+bi/0x2+'px','transformOrigin':bh/0x2+hI(0x8aa)+bi/0x2+'px','webkitLogicalWidth':bh+'px','webkitLogicalHeight':bi+'px','width':bh+'px','height':bi+'px'});},a6=function(bg){var hJ=hH;const bh=bg[hJ(0x6b4)]();return Object[hJ(0x961)](a4,{'display':hJ(0x1db),'position':'static','inlineSize':bh[hJ(0x260)]+'px','perspectiveOrigin':bh[hJ(0x260)]/0x2+hJ(0x8aa)+bh['height']/0x2+'px','transformOrigin':bh[hJ(0x260)]/0x2+hJ(0x8aa)+bh[hJ(0x307)]/0x2+'px','webkitLogicalWidth':bh[hJ(0x260)]+'px','webkitLogicalHeight':bh[hJ(0x307)]+'px','width':bh[hJ(0x260)]+'px','height':bh[hJ(0x307)]+'px'});};function a7(){}let a8;if(wx[hH(0x17d)]){const {platform:bg}=wx[hH(0x2eb)](),bh=wx[hH(0x17d)](),bi=bh[hH(0x32d)](),bj=Object[hH(0x961)]({},bh,{'now':function(){var hK=hH;return(bh[hK(0x32d)]()-bi)/0x3e8;}});a8='devtools'===bg?bh:bj;}else a8={'timeOrigin':Date[hH(0x32d)](),'now':function(){var hL=hH;return Date[hL(0x32d)]()-this[hL(0x3db)];}};const a9=a8,{screenWidth:aa,screenHeight:ab,devicePixelRatio:ac}=wx[hH(0x2eb)](),ad=aa,ae=ab,af={'width':aa,'height':ab,'availWidth':ad,'availHeight':ae,'availLeft':0x0,'availTop':0x0},ag=0x0,ah=0x0;function ai(bk,bl){var hM=hH;if(!(hM(0x4c9)in bk)){let bm;bm=0x0===bl?function(){return null;}:0x1===bl?function(){var hN=hM;return(a2['g'][hN(0x9fc)]||wx['window'][hN(0x9fc)])[hN(0x608)];}:function(){var hO=hM;if(!a2['g']||!a2['g'][hO(0x9fc)]||!wx[hO(0x71d)][hO(0x9fc)])return;return(a2['g'][hO(0x9fc)]||wx[hO(0x71d)]['document'])['body'];},Object[hM(0x85d)](bk,hM(0x4c9),{'enumerable':!0x0,'get':bm});}if(!('parentElement'in bk)){let bn;bn=0x0===bl?function(){return null;}:0x1===bl?function(){var hP=hM;return document[hP(0x608)];}:function(){var hQ=hM;return(a2['g']['document']||wx['window']['document'])[hQ(0x501)];},Object['defineProperty'](bk,hM(0x1d5),{'enumerable':!0x0,'get':bn});}}function aj(bk){var hR=hH;bk[hR(0x6f6)]=bk['style']||{},Object[hR(0x961)](bk[hR(0x6f6)],{'top':hR(0x33e),'left':hR(0x33e),'width':ad+'px','height':ae+'px','margin':hR(0x33e),'padding':hR(0x33e)});}function ak(bk,bl){var hS=hH;hS(0x9e8)in bk||(bk[hS(0x9e8)]=bk['_left']||0x0,bk['clientTop']=bk['_top']||0x0),hS(0x191)in bk||(bk[hS(0x191)]=bk[hS(0x59e)]||ad,bk[hS(0x764)]=bk[hS(0x8bc)]||ae),'getBoundingClientRect'in bk||(bk['getBoundingClientRect']=function(){var hT=hS;const bm={'x':0x0,'y':0x0,'top':0x0,'left':0x0,'width':bk[hT(0x59e)]||this['clientWidth'],'height':bk[hT(0x8bc)]||this['clientHeight']};return bm[hT(0x808)]=bm[hT(0x260)],bm[hT(0x6d3)]=bm[hT(0x307)],bm;});}function al(bk){var hU=hH;'offsetLeft'in bk||(bk[hU(0x2e7)]=0x0,bk['offsetTop']=0x0),hU(0x1c6)in bk||(bk[hU(0x1c6)]=ad,bk[hU(0x4d6)]=ae);}function am(bk){var hV=hH;const bl=function(){};bk[hV(0x898)]=[],bk[hV(0x898)][hV(0x572)]=bl,bk[hV(0x898)]['remove']=bl,bk[hV(0x898)][hV(0x1b2)]=bl,bk['classList']['toggle']=bl;}const an=new WeakMap();class ao{constructor(){an['set'](this,{});}[hH(0x1a5)](bk,bl,bm={}){var hW=hH;let bn=an[hW(0x40e)](this);bn||(bn={},an[hW(0x3b4)](this,bn)),bn[bk]||(bn[bk]=[]),bn[bk]['push'](bl),bm[hW(0x681)],bm[hW(0x54b)],bm[hW(0x8e9)];}[hH(0x605)](bk,bl,bm={}){var hX=hH;const bn=an[hX(0x40e)](this);if(bn){const bo=bn[bk];if(bo&&bo['length']>0x0){for(let bp=bo['length'];bp--;bp>0x0)if(bo[bp]===bl){bo[hX(0x5c3)](bp,0x1);break;}}}}[hH(0x82c)](bk={}){var hY=hH;const bl=an[hY(0x40e)](this)[bk['type']];if(bl){for(let bm=0x0;bm<bl[hY(0x4ae)];bm++)bl[bm](bk);}}}class ap extends ao{constructor(){super(),this['childNodes']=[];}[hH(0x358)](bk){var hZ=hH;this[hZ(0x287)]['push'](bk);}[hH(0x4e6)](){var i0=hH;const bk=Object[i0(0x92d)](this);return Object[i0(0x961)](bk,this),bk;}[hH(0x3b3)](bk){var i1=hH;const bl=this['childNodes'][i1(0x979)](bm=>bm===bk);return bl>-0x1?this[i1(0x287)]['splice'](bl,0x1):null;}}class aq extends ap{constructor(){var i2=hH;super(),this[i2(0x4f4)]='',this[i2(0x53c)]=[];}['setAttribute'](bk,bl){this[bk]=bl;}[hH(0x5cf)](bk){return this[bk];}[hH(0x406)](bk,bl){this[bk]=bl;}[hH(0x9b2)](bk){return this[bk];}}class ar extends aq{constructor(bk='',bl){var i3=hH,bm;super(),this[i3(0x4f4)]='',this[i3(0x53c)]=[],this['focus']=a7,this[i3(0x20e)]=a7,this[i3(0x5e3)]=a7,this[i3(0x358)]=a7,this['removeChild']=a7,this['remove']=a7,this[i3(0x7f5)]='',this['tagName']=bk[i3(0x665)](),ai(this,bl),aj(this),am(this),ak(this),al(this),i3(0xa09)in(bm=this)||(bm[i3(0xa09)]=0x0,bm['scrollTop']=0x0),i3(0x27d)in bm||(bm[i3(0x27d)]=ad,bm[i3(0x2b2)]=ae);}}class as extends ar{constructor(bk){super(bk);}[hH(0x304)](){}[hH(0x874)](){}[hH(0x9fa)](){}['load'](){}['pause'](){}[hH(0x740)](){}}class au extends as{constructor(){super('video');}}function av(bk){var i4=hH;let bl=bk;bk||(bl=wx[i4(0x4c0)]({'type':i4(0x174)})),i4(0x45a)in bl||(bl[i4(0x45a)]=i4(0x75b)),bl['type']=i4(0x2fc),ai(bl),aj(bl),am(bl),ak(bl),al(bl),bl[i4(0x244)]=function(){},bl[i4(0x20e)]=function(){};let bm={};return bl['addEventListener']=function(bn,bo,bp={}){var i5=i4;void 0x0===bm[bn]&&(bm[bn]=[]),-0x1===bm[bn][i5(0x50a)](bo)&&bm[bn][i5(0x3ef)](bo);},bl['removeEventListener']=function(bn,bo){var i6=i4;const bp=bm[bn];if(void 0x0!==bp){const bq=bp[i6(0x50a)](bo);-0x1!==bq&&bp[i6(0x5c3)](bq,0x1);}},bl['dispatchEvent']=function(bn={}){var i7=i4;const bo=bm[bn['type']];if(void 0x0!==bo){bn['target']=this;const bp=bo[i7(0x2a0)](0x0);for(let bq=0x0,br=bp[i7(0x4ae)];bq<br;bq++)bp[bq][i7(0x8fb)](this,bn);}},bl;}const aw=wx[hH(0x2eb)](),ax=aw[hH(0x6a3)],ay=aw[hH(0x568)],az=aw[hH(0x5f0)],aA=-0x1!==ax[hH(0x23d)]()[hH(0x50a)](hH(0x44d))?'Android;\x20CPU\x20Android\x206.0':hH(0x18c),aB={'platform':ay,'language':az,'appVersion':hH(0x456)+aA+hH(0x48f),'userAgent':'Mozilla/5.0\x20('+aA+hH(0x908)+az,'onLine':!0x0,'geolocation':{'getCurrentPosition':a7,'watchPosition':a7,'clearWatch':a7}};wx[hH(0x3ad)]&&wx['onNetworkStatusChange'](function(bk){var i8=hH;aB[i8(0x790)]=bk['isConnected'];});const aC=aB;function aD(){var i9=hH;try{let bk;return aD[i9(0x29c)],(wx&&wx['createCanvas']&&(bk=wx[i9(0x611)]()[i9(0x795)]()),i9(0x45a)in bk||(bk[i9(0x45a)]='IMG'),ai(bk),am(bk),bk[i9(0x332)][i9(0x332)]=wx[i9(0x611)]()['createImage'][i9(0x32e)],bk);}catch(bl){}}class aE{constructor(){}}class aF{constructor(bk){var ia=hH;this['cancelBubble']=!0x1,this[ia(0x723)]=!0x1,this[ia(0x935)]=null,this[ia(0x8f4)]=null,this[ia(0x306)]=a7,this[ia(0x8d6)]=a7,this[ia(0x9b1)]=bk,this['timeStamp']=Date[ia(0x32d)]();}}class aG extends aF{constructor(bk){var ib=hH;super(bk),this['touches']=[],this['targetTouches']=[],this[ib(0x69c)]=[],this['target']=window['canvas'],this[ib(0x8f4)]=window[ib(0x2fc)];}}function aH(bk){return bl=>{var ic=a0b;const bm=new aG(bk);bm[ic(0x69c)]=bl[ic(0x69c)],bm[ic(0x6eb)]=bl['touches'],bm['targetTouches']=Array[ic(0x32e)][ic(0x2a0)][ic(0x8fb)](bl['touches']),bm[ic(0x751)]=bl[ic(0x751)],document[ic(0x82c)](bm);};}wx[hH(0x9f5)]&&wx[hH(0x9f5)](aH(hH(0x2fe))),wx[hH(0x91f)]&&wx['onTouchMove'](aH(hH(0x4ce))),wx['onTouchEnd']&&wx[hH(0x3a3)](aH(hH(0x58e))),wx[hH(0x41d)]&&wx['onTouchCancel'](aH(hH(0x369)));class aI extends aF{constructor(bk){super(bk);}}const aJ=[hH(0x687),hH(0x723),hH(0x35a),hH(0x56e),'screenX',hH(0x4e4),hH(0x7eb),'clientY',hH(0x6fa),'altKey','shiftKey',hH(0x861),hH(0x202),hH(0x881),hH(0x89a),hH(0x260),hH(0x307),'pressure',hH(0x428),hH(0x9e5),hH(0x9a4),hH(0x6db),'isPrimary','pageX',hH(0x855),hH(0x751)],aK=[!0x1,!0x1,null,null,0x0,0x0,0x0,0x0,!0x1,!0x1,!0x1,!0x1,0x0,null,0x0,0x0,0x0,0x0,0x0,0x0,0x0,'',0x0,!0x1,0x0,0x0,0x0];function aL(bk,bl,bm){var id=hH;const bn=new aI(bk);for(let bo=0x0;bo<aJ['length'];bo++){const bp=aJ[bo];bn[bp]=bl[bp]||aK[bo];}return bn[id(0x9b1)]=bk,bn['target']=window[id(0x2fc)],bn[id(0x8f4)]=window[id(0x2fc)],bn['buttons']=function(bq){var ie=id;let br=0x0;return ie(0x2fe)!==bq&&ie(0x4ce)!==bq&&ie(0x47d)!==bq&&ie(0x9dc)!==bq||(br=0x1),br;}(bk),bn[id(0x18d)]=bn['buttons'],bn['pointerId']=(bl[id(0x6c5)]||0x0)+0x2,bn[id(0x687)]=!0x0,bn[id(0x723)]=!0x0,bn[id(0x202)]=0x0,bn[id(0x260)]=0x2*(bl[id(0x962)]||0.5),bn[id(0x307)]=0x2*(bl[id(0x4b8)]||0.5),bn['pressure']=bl['force']||0.5,bn[id(0x35e)]=function(bq){var ig=id;return aM===bq[ig(0x6c5)];}(bl),bn['pointerType']='touch',bn['altKey']=bm[id(0x670)],bn[id(0x6fa)]=bm[id(0x6fa)],bn['metaKey']=bm[id(0x861)],bn[id(0x485)]=bm[id(0x485)],bm[id(0x306)]&&(bn['preventDefault']=function(){var ih=id;bm[ih(0x306)]();}),bn;}let aM=null;function aN(bk){null===aM&&(aM=bk['identifier']);}function aO(bk){var ii=hH;aM===bk[ii(0x6c5)]&&(aM=null);}function aP(bk){return bl=>{var ij=a0b;console[ij(0x5a1)](ij(0x407),bl);const bm=bl['changedTouches'];for(let bn=0x0;bn<bm['length'];bn++){const bo=bm[bn];0x0===bn&&ij(0x47d)===bk?aN(bo):ij(0x929)!==bk&&ij(0x92f)!==bk||aO(bo);const bp=aL(bk,bo,bl);console[ij(0x5a1)](ij(0x941),bp),document[ij(0x82c)](bp);}};}wx[hH(0x9f5)]&&wx[hH(0x9f5)](aP(hH(0x47d))),wx['onTouchMove']&&wx[hH(0x91f)](aP('pointermove')),wx['onTouchEnd']&&wx[hH(0x3a3)](aP(hH(0x929))),wx[hH(0x41d)]&&wx[hH(0x41d)](aP(hH(0x92f)));class aQ extends aF{constructor(bk){super(bk);}}let aR=0x0;const aS=function(bk){var ik=hH;return'__'+bk+'_'+Math[ik(0x6fb)](0x3b9aca00*Math['random']())+'_'+ ++aR+'__';};aS[hH(0x28f)]=aS(hH(0x971));const aT=aS,aU={'href':'clip.js','reload'(){},'replace'(bk){var il=hH;this[il(0x57c)]=bk;}},aV=new WeakMap(),aW=new WeakMap(),aX=new WeakMap(),aY=new WeakMap(),aZ=new WeakMap();function b0(bk,...bl){var im=hH;'function'==typeof this['on'+bk]&&this['on'+bk][im(0x6e8)](this,bl);}function b1(bk){var io=hH;this[io(0x514)]=bk,b0['call'](this,io(0x61a)),this['dispatchEvent']('readystatechange');}class b2{static ['UNSEND']=0x0;static ['OPENED']=0x1;static [hH(0x2a3)]=0x2;static ['LOADING']=0x3;static ['DONE']=0x4;['onabort']=null;[hH(0x230)]=null;[hH(0x2de)]=null;[hH(0x622)]=null;[hH(0x4fe)]=null;[hH(0x344)]=null;[hH(0x600)]=null;[hH(0x4a1)]=null;[hH(0x514)]=0x0;[hH(0x6f5)]=null;[hH(0x724)]=null;[hH(0x1e3)]='';[hH(0x18f)]=null;[hH(0x965)]=0x0;[hH(0x4d0)]='';[hH(0x2a9)]={};[hH(0x450)]=!0x1;[hH(0x5ed)]={};constructor(){var ip=hH;aX[ip(0x3b4)](this,{'content-type':'application/x-www-form-urlencoded'}),aY[ip(0x3b4)](this,{});}[hH(0x282)](){var iq=hH;const bk=aZ[iq(0x40e)](this);bk&&bk[iq(0x282)]();}[hH(0x830)](){var ir=hH;const bk=aY[ir(0x40e)](this);return Object[ir(0x8c8)](bk)[ir(0x5bf)](bl=>bl+':\x20'+bk[bl])[ir(0x9ea)]('\x0a');}['getResponseHeader'](bk){var is=hH;return aY[is(0x40e)](this)[bk];}['open'](bk,bl){var it=hH;aW[it(0x3b4)](this,bk),aV[it(0x3b4)](this,bl),b1['call'](this,b2[it(0x883)]);}[hH(0x893)](){}['send'](bk=''){var iu=hH;if(this[iu(0x514)]!==b2[iu(0x883)])throw new Error(iu(0x948));if(-0x1===aV[iu(0x40e)](this)['indexOf'](iu(0x95e))){let bl=a2['g']['resourceManager'][iu(0x853)]['readJSONFile'](aV[iu(0x40e)](this)),bm=0xc8,bn={};if(iu(0x940)!=typeof bl&&!(bl instanceof ArrayBuffer))try{bl=JSON['stringify'](bl);}catch(bo){}if(this[iu(0x965)]=bm,aY[iu(0x3b4)](this,bn),b0[iu(0x8fb)](this,'loadstart'),this[iu(0x82c)]('loadstart'),b1[iu(0x8fb)](this,b2['HEADERS_RECEIVED']),b1[iu(0x8fb)](this,b2[iu(0x4be)]),this['response']=bl,bl instanceof ArrayBuffer){this[iu(0x724)]='';const bp=new Uint8Array(bl),bq=bp[iu(0x98e)];for(let br=0x0;br<bq;br++)this[iu(0x724)]+=String[iu(0x284)](bp[br]);}else this[iu(0x724)]=bl;b1['call'](this,b2[iu(0x409)]),b0['call'](this,iu(0x87e)),this[iu(0x82c)](iu(0x87e)),b0['call'](this,iu(0x457)),this[iu(0x82c)](iu(0x457));}else wx[iu(0x2c3)]({'data':bk,'url':aV['get'](this),'method':aW[iu(0x40e)](this),'header':aX[iu(0x40e)](this),'responseType':this['responseType'],'success':({data:bs,statusCode:bu,header:bv})=>{var iv=iu;if(iv(0x940)!=typeof bs&&!(bs instanceof ArrayBuffer))try{bs=JSON['stringify'](bs);}catch(bw){}if(this[iv(0x965)]=bu,aY[iv(0x3b4)](this,bv),b0['call'](this,iv(0x5ea)),this[iv(0x82c)](iv(0x5ea)),b1['call'](this,b2['HEADERS_RECEIVED']),b1[iv(0x8fb)](this,b2['LOADING']),this[iv(0x6f5)]=bs,bs instanceof ArrayBuffer){this[iv(0x724)]='';const bx=new Uint8Array(bs),by=bx[iv(0x98e)];for(let bz=0x0;bz<by;bz++)this[iv(0x724)]+=String[iv(0x284)](bx[bz]);}else this[iv(0x724)]=bs;b1['call'](this,b2[iv(0x409)]),b0[iv(0x8fb)](this,iv(0x87e)),this[iv(0x82c)]('load'),b0['call'](this,iv(0x457)),this[iv(0x82c)](iv(0x457));},'fail':({errMsg:bs})=>{var iw=iu;-0x1!==bs[iw(0x50a)](iw(0x282))?(b0[iw(0x8fb)](this,iw(0x282)),this[iw(0x82c)](iw(0x282))):(b0['call'](this,iw(0x8e5),bs),this['dispatchEvent'](iw(0x8e5),bs)),b0[iw(0x8fb)](this,iw(0x457)),this[iw(0x82c)](iw(0x457));}});}[hH(0x432)](bk,bl){var ix=hH;const bm=aX[ix(0x40e)](this);bm[bk]=bl,aX[ix(0x3b4)](this,bm);}[hH(0x1a5)](bk,bl){var iy=hH;this[iy(0x5ed)][bk]||(this['events'][bk]=[]),this[iy(0x5ed)][bk][iy(0x3ef)](bl);}[hH(0x605)](bk,bl){var iz=hH;const bm=this['events'][bk];if(bm&&bm[iz(0x4ae)]>0x0){for(let bn=bm[iz(0x4ae)];bn--;bn>0x0)if(bm[bn]===bl){bm[iz(0x5c3)](bn,0x1);break;}}}[hH(0x82c)](bk,bl={}){var iA=hH;const bm=this[iA(0x5ed)][bk];if(bm){for(let bn=0x0;bn<bm[iA(0x4ae)];bn++)bm[bn](bl);}}}function b3(bk){var iB=hH;const bl=bk[iB(0x45a)];return iB(0x75b)===bl?a6(bk):iB(0x69e)===bl?a5(bk):a4;}function b4(bk){var iC=hH;console[iC(0x5a1)](bk);}function b5(){}function b6(){}const b7=setTimeout,b8=clearTimeout,b9=setInterval,ba=clearInterval,bb={},bc={'readyState':hH(0x951),'visibilityState':hH(0x812),'hidden':!0x1,'fullscreen':!0x0,'location':aU,'scripts':[],'style':{},'ontouchstart':null,'ontouchmove':null,'ontouchend':null,'onvisibilitychange':null,'parentNode':null,'parentElement':null,'createElement':bk=>hH(0x2fc)===(bk=bk[hH(0x23d)]())?new av():hH(0x946)===bk?new aD():new ar(bk),'createElementNS'(bk,bl){var iD=hH;return this[iD(0x6d2)](bl);},'createTextNode':bk=>bk,'getElementById':bk=>bk===a3['canvas']['id']?a3[hH(0x2fc)]:null,'getElementsByTagName':bk=>hH(0x5c7)===(bk=bk[hH(0x23d)]())?[bc[hH(0x5c7)]]:hH(0x501)===bk?[bc['body']]:hH(0x2fc)===bk?[a3[hH(0x2fc)]]:[],'getElementsByTagNameNS'(bk,bl){var iE=hH;return this[iE(0x5bc)](bl);},'getElementsByName':bk=>hH(0x5c7)===bk?[bc[hH(0x5c7)]]:hH(0x501)===bk?[bc[hH(0x501)]]:hH(0x2fc)===bk?[a3['canvas']]:[],'querySelector':bk=>hH(0x5c7)===bk?bc[hH(0x5c7)]:hH(0x501)===bk?bc['body']:hH(0x2fc)===bk||bk==='#'+a3['canvas']['id']?a3[hH(0x2fc)]:null,'querySelectorAll':bk=>'head'===bk?[bc[hH(0x5c7)]]:hH(0x501)===bk?[bc['body']]:hH(0x2fc)===bk?[a3[hH(0x2fc)]]:[],'addEventListener'(bk,bl){var iF=hH;bb[bk]||(bb[bk]=[]),bb[bk][iF(0x3ef)](bl);},'removeEventListener'(bk,bl){var iG=hH;const bm=bb[bk];if(bm&&bm['length']>0x0){for(let bn=bm['length'];bn--;bn>0x0)if(bm[bn]===bl){bm[iG(0x5c3)](bn,0x1);break;}}},'dispatchEvent'(bk){var iH=hH;const bl=bk['type'],bm=bb[bl];if(bm){for(let bn=0x0;bn<bm['length'];bn++)bm[bn](bk);}bk[iH(0x935)]&&'function'==typeof bk[iH(0x935)]['on'+bl]&&bk[iH(0x935)]['on'+bl](bk);}};function bd(bk){return function(){var iI=a0b;bc[iI(0x74a)]=bk?iI(0x812):iI(0x316);const bl=!bk;if(bc['hidden']===bl)return;bc[iI(0x316)]=bl;const bm=new aF(iI(0x67d));bm[iI(0x935)]=bc,bm[iI(0x751)]=Date[iI(0x32d)](),bc[iI(0x82c)](bm);};}bc[hH(0x608)]=new class extends ar{constructor(){var iJ=hH;super(iJ(0x6b3),0x0);}}(),bc[hH(0x5c7)]=new ar(hH(0x5c7)),bc['body']=new class extends ar{constructor(){var iK=hH;super(iK(0x501),0x0);}}(),wx['onHide']&&wx[hH(0x446)](bd(!0x1)),wx[hH(0x2f6)]&&wx[hH(0x2f6)](bd(!0x0));const be=bc,bf=function(bk){var iL=hH;a3[iL(0x9fc)]=be,a3[iL(0x1a5)]=(bl,bm)=>{var iM=iL;a3[iM(0x9fc)][iM(0x1a5)](bl,bm);},a3[iL(0x605)]=(bl,bm)=>{var iN=iL;a3[iN(0x9fc)][iN(0x605)](bl,bm);},a3[iL(0x82c)]=function(bl={}){},bk[iL(0x45f)]={},bk[iL(0x45f)]['wx']={};for(const bl in a3)bk[bl]=a3[bl];bk[iL(0x71d)]=a3,bk[iL(0x9fc)]=a3[iL(0x9fc)],bk['global'][iL(0x71d)]=a3,bk[iL(0x3c5)][iL(0x29c)]=bk,bk[iL(0x47c)]=bk[iL(0x45f)]['wx'][iL(0x795)];};},0xb0e:(j,q,z)=>{z['d'](q,{'AE':()=>a1,'Bb':()=>K,'CV':()=>F,'Cg':()=>a0,'Ed':()=>M,'Ej':()=>Y,'FC':()=>H,'Fx':()=>a2,'G4':()=>U,'HN':()=>Z,'MX':()=>W,'Nj':()=>L,'Op':()=>a4,'X2':()=>N,'aV':()=>a3,'aW':()=>a6,'aj':()=>Q,'bb':()=>O,'dE':()=>I,'dO':()=>D,'he':()=>J,'m1':()=>V,'mw':()=>A,'oC':()=>X,'rp':()=>G,'sP':()=>B,'zk':()=>a5});const A={'au':'/r','ti':'/m','ef':'/t','ae':'/c'},B=[0x3d,0x3e,0x4c,0x3f,0x3a,0x3b,0x4b,0x3c],D=[0x2a,0x47,0x46,0x45,0x44,0x29,0x28,0x27,0x26],F=[0x34,0x39,0x49,0x38,0x37,0x36,0x48,0x35],G=[0x21,0x40,0x41,0x42,0x43,0x22,0x23,0x24,0x25],H=[0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x79,0x7a,0x76,0x74,0x73,0x72,0x6e,0x6f,0x70,0x71,0x75,0x78,0x77],I=[0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x6a,0x6b,0x6c,0x6d],J=[0x1da,0x1db,0x1dc,0x1dd],K=[0x1d5,0x1d6,0x1d7,0x1d8],L=[0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf],M=[0x14c,0x11c,0xfb,0x185,0x164,0x1c6,0x143,0x169,0x120,0x18d,0x16d,0x17b,0x17a],N=[0x34,0x39,0x49,0x38,0x37,0x36,0x48,0x35],O=[0x3d,0x3e,0x4c,0x3f,0x3a,0x3b,0x4b,0x3c],Q=[0x50,0x52,0x2f,0x30,0x31,0x32,0x33,0x51,0x53],U=[0x2b,0x2c,0x2d,0x2e],V=[[{'y':0x78,'x':0x0},{'y':0x70,'x':0x70},0x6e,{'y':0x73,'x':0x73},{'y':0x7a,'x':0x20}],[{'y':0x6e,'x':0x7a},{'y':0x79,'x':0x79},{'y':0x1c,'x':0x20},{'y':0x18,'x':0x19},{'y':0x10,'x':0x15}],[{'y':0x13,'x':0x15},0x10,{'y':0xd,'x':0xb}],[{'y':0x6e,'x':0x78},{'y':0x77,'x':0x77},{'y':0x4,'x':0x0},{'y':0x8,'x':0x7},{'y':0x10,'x':0xb}]],W=[0x60,0x6a,0x61,0x62,0x63,0x6c,0x64],X=[0x60,0x6b,0x67,0x66,0x65,0x6d,0x64],Y=[0x34,0x35,0x48,0x36,0x37],Z=[0x34,0x39,0x49,0x38,0x37],a0={'contour_left1':0x0,'contour_left2':0x0,'contour_left3':0x0,'contour_left4':0x2,'contour_left5':0x0,'contour_left6':0x0,'contour_left7':0x0,'contour_left8':0x0,'contour_left9':0x9,'contour_left10':0x9,'contour_left11':0x0,'contour_left12':0x0,'contour_right1':0x0,'contour_right2':0x0,'contour_right3':0x0,'contour_right4':0x1e,'contour_right5':0x0,'contour_right6':0x0,'contour_right7':0x0,'contour_right8':0x0,'contour_right9':0x17,'contour_right10':0x17,'contour_right11':0x0,'contour_right12':0x0,'contour_left_limit_point':0x0,'contour_right_limit_point':0x0,'contour_chin':0x10,'mouth_lower_lip_bottom':0x2b,'left_eye_left_corner':0x34,'left_eye_right_corner':0x37,'left_eye_top':0x48,'left_eye_bottom':0x49,'left_eye_center':0x4a,'right_eye_left_corner':0x3a,'right_eye_right_corner':0x3d,'right_eye_top':0x4b,'right_eye_bottom':0x4c,'right_eye_center':0x4d,'nose_bridge1':0x0,'nose_bridge2':0x0,'nose_bridge3':0x0,'nose_bridge4':0x2b,'nose_bridge5':0x2c,'nose_bridge6':0x2d,'nose_bridge7':0x2e,'nose_tip':0x2f,'nose_left1':0x52,'nose_left2':0x30,'nose_right1':0x53,'nose_right2':0x32,'nose_tip1':0x2e,'nose_bottom':0x31,'lip_top_left':0x54,'lip_top_left_target':0x39,'lip_top_right':0x5a,'lip_top_right_target':0x18,'lip_top_center':0x57,'lip_top_center_target':0x31,'lip_bottom_left':0x5e,'lip_bottom_left_target':0xd,'lip_bottom_right':0x5c,'lip_bottom_right_target':0x12,'lip_bottom_center':0x5d,'lip_bottom_center_target':0x10,'lip_inner_top':0x62,'lip_inner_bottom':0x66,'forehead_top_center':0xa,'eyebrow_center':0x2b,'forehead_left':0x71,'left_eyebrow_center':0x23,'forehead_right':0x74,'right_eyebrow_center':0x28,'chin_left':0xd,'chin_right':0x13},a1=[0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a],a2=[0x2b,0x2c,0x4f,0x2b,0x4e,0x2c,0x2c,0x3a,0x4f,0x50,0x2d,0x2c,0x2c,0x51,0x3a,0x3a,0x3b,0x4f,0x4f,0x44,0x2b,0x51,0x3f,0x3a,0x3a,0x3f,0x3b,0x4e,0x37,0x2c,0x3b,0x44,0x4f,0x43,0x36,0x4e,0x4e,0x36,0x37,0x2d,0x51,0x2c,0x43,0x4e,0x2b,0x3f,0x69,0x3b,0x3b,0x45,0x44,0x4d,0x69,0x3f,0x4c,0x4d,0x3f,0x25,0x43,0x2b,0x3c,0x4b,0x69,0x69,0x4b,0x3b,0x51,0x4c,0x3f,0x36,0x38,0x37,0x37,0x50,0x2c,0x45,0x26,0x44,0x44,0x26,0x2b,0x38,0x50,0x37,0x2d,0x2e,0x51,0x50,0x2e,0x2d,0x46,0x45,0x4b,0x4b,0x45,0x3b,0x26,0x25,0x2b,0x48,0x68,0x36,0x36,0x68,0x38,0x38,0x49,0x50,0x48,0x36,0x42,0x68,0x4a,0x38,0x42,0x36,0x43,0x68,0x35,0x4a,0x4c,0x3e,0x4d,0x4d,0x3c,0x69,0x1c,0x3e,0x4c,0x3e,0x3c,0x4d,0x39,0x49,0x4a,0x4a,0x49,0x38,0x33,0x53,0x51,0x51,0x53,0x4c,0x25,0x42,0x43,0x46,0x27,0x45,0x45,0x27,0x26,0x6f,0x24,0x25,0x49,0x52,0x50,0x50,0x30,0x2e,0x32,0x33,0x51,0x32,0x51,0x2e,0x31,0x32,0x2e,0x3c,0x46,0x4b,0x47,0x46,0x3c,0x6e,0x25,0x26,0x25,0x24,0x42,0x35,0x68,0x48,0x35,0x39,0x4a,0x2f,0x30,0x50,0x1e,0x3d,0x3e,0x3e,0x3d,0x3c,0x30,0x31,0x2e,0x52,0x2f,0x50,0x35,0x48,0x41,0x49,0x4,0x52,0x41,0x48,0x42,0x24,0x41,0x42,0x35,0x34,0x39,0x46,0x28,0x27,0x70,0x23,0x24,0x29,0x28,0x46,0x40,0x34,0x35,0x54,0x2f,0x52,0x3d,0x47,0x3c,0x24,0x23,0x41,0x41,0x40,0x35,0x6e,0x26,0x72,0x56,0x31,0x30,0x57,0x58,0x31,0x31,0x58,0x32,0x32,0x59,0x33,0x55,0x30,0x2f,0x55,0x56,0x30,0x55,0x54,0x60,0x56,0x57,0x31,0x47,0x29,0x46,0x6c,0x59,0x63,0x58,0x59,0x32,0x33,0x5a,0x53,0x1d,0x1e,0x3e,0x22,0x40,0x41,0x56,0x62,0x57,0x63,0x59,0x58,0x6a,0x55,0x60,0x20,0x2a,0x3d,0x3d,0x2a,0x47,0x47,0x2a,0x29,0x63,0x62,0x65,0x59,0x5a,0x33,0x63,0x58,0x62,0x63,0x6d,0x6c,0x6c,0x64,0x59,0x62,0x58,0x57,0x63,0x65,0x6d,0x23,0x22,0x41,0x40,0x21,0x34,0x6d,0x64,0x6c,0x64,0x5a,0x59,0x66,0x62,0x67,0x61,0x62,0x56,0x62,0x66,0x65,0x55,0x61,0x56,0x6b,0x67,0x61,0x61,0x67,0x62,0x55,0x2f,0x54,0x55,0x6a,0x61,0x60,0x6b,0x6a,0x6a,0x6b,0x61,0x72,0x27,0x73,0x72,0x26,0x27,0x23,0x71,0x22,0x73,0x28,0x74,0x73,0x27,0x28,0x54,0x52,0x7,0x4,0x49,0x39,0x22,0x21,0x40,0x34,0x2,0x39,0x74,0x28,0x29,0x6d,0x5b,0x64,0x64,0x5b,0x5a,0x65,0x5b,0x6d,0x5c,0x5b,0x65,0x5c,0x65,0x66,0x6e,0x6f,0x25,0x78,0x77,0x21,0x1d,0x3e,0x1c,0x1c,0x4c,0x53,0x1e,0x1f,0x3d,0x1b,0x53,0x1a,0x1b,0x1c,0x53,0x6b,0x5f,0x67,0x67,0x5e,0x66,0x60,0x5f,0x6b,0x54,0x5f,0x60,0x6f,0x70,0x24,0x1f,0x20,0x3d,0x2a,0x7a,0x29,0x20,0x79,0x2a,0x5d,0x5c,0x66,0x76,0x74,0x29,0x73,0x7f,0x72,0x1a,0x53,0x19,0x5f,0x5e,0x67,0x5e,0x5d,0x66,0x79,0x7a,0x2a,0x81,0x7a,0x79,0x1,0x2,0x34,0x2,0x3,0x39,0x54,0xb,0x5f,0x0,0x1,0x34,0x3,0x4,0x39,0x19,0x53,0x5a,0x19,0x5a,0x18,0x75,0x71,0x7b,0x70,0x71,0x23,0x21,0x0,0x34,0x77,0x0,0x21,0x78,0x21,0x22,0x4,0x5,0x52,0x7a,0x76,0x29,0x75,0x78,0x22,0x77,0x89,0x0,0x18,0x5a,0x17,0x5,0x6,0x52,0x5f,0xc,0x5e,0x71,0x75,0x22,0x17,0x5a,0x16,0x6,0x7,0x52,0x16,0x5a,0x15,0x5a,0x5b,0x15,0x7,0x8,0x54,0x15,0x5b,0x14,0x8,0x9,0x54,0x5e,0xf,0x5d,0x9,0xa,0x54,0x14,0x5b,0x13,0x5b,0x5c,0x13,0xa,0xb,0x54,0x13,0x5c,0x12,0xb,0xc,0x5f,0x12,0x5c,0x11,0xc,0xd,0x5e,0x11,0x5c,0x5d,0xd,0xe,0x5e,0x10,0x11,0x5d,0xe,0xf,0x5e,0xf,0x10,0x5d,0x1f,0x81,0x20,0x20,0x81,0x79,0x7a,0x80,0x76,0x82,0x81,0x1f,0x82,0x1f,0x1e,0x82,0x1e,0x1d,0x82,0x1d,0x1c,0x82,0x1c,0x1b,0x82,0x1b,0x83,0x1b,0x1a,0x83,0x1a,0x19,0x83,0x83,0x18,0x84,0x83,0x19,0x18,0x18,0x17,0x84,0x17,0x16,0x84,0x88,0x89,0x78,0x78,0x89,0x77,0x0,0x89,0x1,0x1,0x8a,0x2,0x2,0x8a,0x3,0x3,0x8a,0x4,0x4,0x8a,0x5,0x5,0x8b,0x6,0x6,0x8b,0x7,0x7,0x8b,0x8,0x8,0x8c,0x9,0x84,0x15,0x85,0x84,0x16,0x15,0x15,0x14,0x85,0x89,0x8a,0x1,0x9,0x8c,0xa,0xa,0x8c,0xb,0xb,0x87,0xc,0x8a,0x8b,0x5,0xc,0x87,0xd,0xd,0x87,0xe,0x81,0x80,0x7a,0x76,0x7f,0x74,0x74,0x7f,0x73,0x72,0x7e,0x6e,0x85,0x14,0x13,0x85,0x13,0x12,0x85,0x12,0x11,0x7b,0x88,0x75,0x75,0x88,0x78,0x7b,0x71,0x70,0x7b,0x70,0x6f,0x86,0x11,0x10,0x86,0x85,0x11,0x86,0x10,0xf,0x87,0xf,0xe,0x8b,0x8c,0x8,0x8c,0x87,0xb,0x80,0x7f,0x76,0x7c,0x7b,0x6f,0x87,0x86,0xf,0x7c,0x6f,0x6e,0x7f,0x7e,0x72,0x7e,0x7d,0x6e,0x7d,0x7c,0x6e],a3=[0.488189826866528,0.46679085,0.488189826866528,0.50658295,0.516143625,0.471960025,0.488189826866528,0.46679085,0.4599979375,0.4717894375,0.488189826866528,0.50658295,0.488189826866528,0.50658295,0.5447991249999999,0.48110985,0.516143625,0.471960025,0.4410622,0.565803525,0.488189826866528,0.5462991,0.488189826866528,0.50658295,0.488189826866528,0.50658295,0.5369319124999999,0.5654357875,0.5447991249999999,0.48110985,0.5447991249999999,0.48110985,0.5602547125,0.46035325,0.516143625,0.471960025,0.516143625,0.471960025,0.542807575,0.42128374999999996,0.488189826866528,0.46679085,0.5369319124999999,0.5654357875,0.568110275,0.48251628750000003,0.5447991249999999,0.48110985,0.5447991249999999,0.48110985,0.568110275,0.48251628750000003,0.5602547125,0.46035325,0.4599979375,0.4717894375,0.42883299999999996,0.48068869999999997,0.488189826866528,0.50658295,0.5602547125,0.46035325,0.542807575,0.42128374999999996,0.516143625,0.471960025,0.434630275,0.421406325,0.4135695,0.4596802125,0.4599979375,0.4717894375,0.4599979375,0.4717894375,0.4135695,0.4596802125,0.42883299999999996,0.48068869999999997,0.488189826866528,0.5462991,0.5369319124999999,0.5654357875,0.488189826866528,0.50658295,0.434630275,0.421406325,0.4599979375,0.4717894375,0.488189826866528,0.46679085,0.568110275,0.48251628750000003,0.5865549125,0.4657776625,0.5602547125,0.46035325,0.5602547125,0.46035325,0.57607715,0.4146392875,0.542807575,0.42128374999999996,0.588454125,0.46861568750000004,0.5865549125,0.4657776625,0.568110275,0.48251628750000003,0.5915551,0.4831601,0.588454125,0.46861568750000004,0.568110275,0.48251628750000003,0.4365127125,0.40153225,0.434630275,0.421406325,0.488189826866528,0.46679085,0.6097423125,0.4507424125,0.5838801625,0.449976875,0.5865549125,0.4657776625,0.5865549125,0.4657776625,0.5838801625,0.449976875,0.5602547125,0.46035325,0.5369319124999999,0.5654357875,0.5915551,0.4831601,0.568110275,0.48251628750000003,0.4135695,0.4596802125,0.40557155,0.48211937499999996,0.42883299999999996,0.48068869999999997,0.42883299999999996,0.48068869999999997,0.4410622,0.565803525,0.488189826866528,0.50658295,0.57607715,0.4146392875,0.5406618125,0.40061935,0.542807575,0.42128374999999996,0.542807575,0.42128374999999996,0.5406618125,0.40061935,0.488189826866528,0.46679085,0.40557155,0.48211937499999996,0.4410622,0.565803525,0.42883299999999996,0.48068869999999997,0.488189826866528,0.5462991,0.488189826866528,0.58580675,0.5369319124999999,0.5654357875,0.4410622,0.565803525,0.488189826866528,0.58580675,0.488189826866528,0.5462991,0.60990175,0.4109925,0.57607715,0.4146392875,0.5838801625,0.449976875,0.5838801625,0.449976875,0.57607715,0.4146392875,0.5602547125,0.46035325,0.5406618125,0.40061935,0.4365127125,0.40153225,0.488189826866528,0.46679085,0.38991549999999997,0.4494414125,0.3875146875,0.465458025,0.4135695,0.4596802125,0.4135695,0.4596802125,0.3875146875,0.465458025,0.40557155,0.48211937499999996,0.40557155,0.48211937499999996,0.38226482500000003,0.4827557,0.4410622,0.565803525,0.38991549999999997,0.4494414125,0.4135695,0.4596802125,0.4020055,0.415060875,0.3875146875,0.465458025,0.385898325,0.46785316250000003,0.40557155,0.48211937499999996,0.4020055,0.415060875,0.4135695,0.4596802125,0.434630275,0.421406325,0.3875146875,0.465458025,0.3640840875,0.45055124999999996,0.385898325,0.46785316250000003,0.5915551,0.4831601,0.6139756,0.476639975,0.588454125,0.46861568750000004,0.588454125,0.46861568750000004,0.6097423125,0.4507424125,0.5865549125,0.4657776625,0.6986649375,0.5627347125,0.6139756,0.476639975,0.5915551,0.4831601,0.6139756,0.476639975,0.6097423125,0.4507424125,0.588454125,0.46861568750000004,0.3599488125,0.47632687500000004,0.38226482500000003,0.4827557,0.385898325,0.46785316250000003,0.385898325,0.46785316250000003,0.38226482500000003,0.4827557,0.40557155,0.48211937499999996,0.537402425,0.6126665875,0.5512806,0.592975125,0.5369319124999999,0.5654357875,0.5369319124999999,0.5654357875,0.5512806,0.592975125,0.5915551,0.4831601,0.4365127125,0.40153225,0.4020055,0.415060875,0.434630275,0.421406325,0.60990175,0.4109925,0.5750593125000001,0.39081712500000004,0.57607715,0.4146392875,0.57607715,0.4146392875,0.5750593125000001,0.39081712500000004,0.5406618125,0.40061935,0.4196925125,0.2953909749999999,0.4028723125,0.3915063125,0.4365127125,0.40153225,0.38226482500000003,0.4827557,0.427124375,0.59353005,0.4410622,0.565803525,0.4410622,0.565803525,0.46482735,0.617807575,0.488189826866528,0.58580675,0.5135869249999999,0.617646025,0.537402425,0.6126665875,0.5369319124999999,0.5654357875,0.5135869249999999,0.617646025,0.5369319124999999,0.5654357875,0.488189826866528,0.58580675,0.488189826866528,0.622551,0.5135869249999999,0.617646025,0.488189826866528,0.58580675,0.6097423125,0.4507424125,0.60990175,0.4109925,0.5838801625,0.449976875,0.64358425,0.412451125,0.60990175,0.4109925,0.6097423125,0.4507424125,0.488189826866528,0.2883909749999999,0.4365127125,0.40153225,0.5406618125,0.40061935,0.4365127125,0.40153225,0.4028723125,0.3915063125,0.4020055,0.415060875,0.3640840875,0.45055124999999996,0.3875146875,0.465458025,0.38991549999999997,0.4494414125,0.3640840875,0.45055124999999996,0.3599488125,0.47632687500000004,0.385898325,0.46785316250000003,0.44135155,0.61300865,0.46482735,0.617807575,0.4410622,0.565803525,0.7079557,0.5055197499999999,0.6325640875,0.46274605,0.6139756,0.476639975,0.6139756,0.476639975,0.6325640875,0.46274605,0.6097423125,0.4507424125,0.46482735,0.617807575,0.488189826866528,0.622551,0.488189826866528,0.58580675,0.427124375,0.59353005,0.44135155,0.61300865,0.4410622,0.565803525,0.3640840875,0.45055124999999996,0.38991549999999997,0.4494414125,0.368784175,0.41131387500000005,0.38226482500000003,0.4827557,0.282695775,0.5610828375,0.427124375,0.59353005,0.368784175,0.41131387500000005,0.38991549999999997,0.4494414125,0.4020055,0.415060875,0.4028723125,0.3915063125,0.368784175,0.41131387500000005,0.4020055,0.415060875,0.3640840875,0.45055124999999996,0.3412266875,0.462774925,0.3599488125,0.47632687500000004,0.60990175,0.4109925,0.6109665,0.3861959125,0.5750593125000001,0.39081712500000004,0.38542595,0.3023909749999999,0.3679795875,0.3866262,0.4028723125,0.3915063125,0.6464699500000001,0.39127456250000003,0.6109665,0.3861959125,0.60990175,0.4109925,0.33567349999999996,0.4124759625,0.3412266875,0.462774925,0.3640840875,0.45055124999999996,0.40563065000000004,0.66605925,0.44135155,0.61300865,0.427124375,0.59353005,0.6325640875,0.46274605,0.64358425,0.412451125,0.6097423125,0.4507424125,0.4028723125,0.3915063125,0.3679795875,0.3866262,0.368784175,0.41131387500000005,0.368784175,0.41131387500000005,0.33567349999999996,0.4124759625,0.3640840875,0.45055124999999996,0.488189826866528,0.2883909749999999,0.5406618125,0.40061935,0.5578605625,0.2953909749999999,0.467591,0.6554576874999999,0.488189826866528,0.622551,0.46482735,0.617807575,0.488189826866528,0.660130075,0.505873625,0.6556971749999999,0.488189826866528,0.622551,0.488189826866528,0.622551,0.505873625,0.6556971749999999,0.5135869249999999,0.617646025,0.5135869249999999,0.617646025,0.537864,0.66081345,0.537402425,0.6126665875,0.436492575,0.659831,0.46482735,0.617807575,0.44135155,0.61300865,0.436492575,0.659831,0.467591,0.6554576874999999,0.46482735,0.617807575,0.436492575,0.659831,0.40563065000000004,0.66605925,0.4149069625,0.6694827499999999,0.467591,0.6554576874999999,0.488189826866528,0.660130075,0.488189826866528,0.622551,0.64358425,0.412451125,0.6464699500000001,0.39127456250000003,0.60990175,0.4109925,0.54207058125,0.6724125624999999,0.537864,0.66081345,0.523628625,0.6757999375,0.505873625,0.6556971749999999,0.537864,0.66081345,0.5135869249999999,0.617646025,0.537402425,0.6126665875,0.5699740624999999,0.665637625,0.5512806,0.592975125,0.7040264999999999,0.5342099,0.7079557,0.5055197499999999,0.6139756,0.476639975,0.33314059999999995,0.3906893125,0.33567349999999996,0.4124759625,0.368784175,0.41131387500000005,0.467591,0.6554576874999999,0.488189826866528,0.679725375,0.488189826866528,0.660130075,0.523628625,0.6757999375,0.537864,0.66081345,0.505873625,0.6556971749999999,0.43286249374999997,0.6727749375,0.436492575,0.659831,0.4149069625,0.6694827499999999,0.7120584999999999,0.4479282,0.67428775,0.41762,0.6325640875,0.46274605,0.6325640875,0.46274605,0.67428775,0.41762,0.64358425,0.412451125,0.64358425,0.412451125,0.67428775,0.41762,0.6464699500000001,0.39127456250000003,0x0,0x0,0x0,0x0,0x0,0x0,0.537864,0.66081345,0.5699740624999999,0.665637625,0.537402425,0.6126665875,0.523628625,0.6757999375,0.505873625,0.6556971749999999,0.488189826866528,0.679725375,0x0,0x0,0x0,0x0,0x0,0x0,0.54207058125,0.6724125624999999,0.5605125375,0.6690251875,0.537864,0.66081345,0.488189826866528,0.679725375,0.505873625,0.6556971749999999,0.488189826866528,0.660130075,0x0,0x0,0x0,0x0,0x0,0x0,0.3679795875,0.3866262,0.33314059999999995,0.3906893125,0.368784175,0.41131387500000005,0.33567349999999996,0.4124759625,0.305216575,0.4170092,0.3412266875,0.462774925,0x0,0x0,0x0,0x0,0x0,0x0,0.5605125375,0.6690251875,0.5699740624999999,0.665637625,0.537864,0.66081345,0x0,0x0,0x0,0x0,0x0,0x0,0.450818025,0.676067125,0.488189826866528,0.679725375,0.467591,0.6554576874999999,0x0,0x0,0x0,0x0,0x0,0x0,0.436492575,0.659831,0.450818025,0.676067125,0.467591,0.6554576874999999,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0.436492575,0.659831,0.44135155,0.61300865,0.40563065000000004,0.66605925,0.436492575,0.659831,0.43286249374999997,0.6727749375,0.450818025,0.676067125,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0.5578605625,0.2953909749999999,0.5750593125000001,0.39081712500000004,0.59301290625,0.3023909749999999,0.5578605625,0.2953909749999999,0.5406618125,0.40061935,0.5750593125000001,0.39081712500000004,0.3679795875,0.3866262,0.35056009374999997,0.3093909749999999,0.33314059999999995,0.3906893125,0.59301290625,0.3023909749999999,0.6109665,0.3861959125,0.6287182250000001,0.3093909749999999,0.59301290625,0.3023909749999999,0.5750593125000001,0.39081712500000004,0.6109665,0.3861959125,0.40563065000000004,0.66605925,0.427124375,0.59353005,0.3030863625,0.64445225,0.282695775,0.5610828375,0.38226482500000003,0.4827557,0.3599488125,0.47632687500000004,0.33314059999999995,0.3906893125,0.305216575,0.4170092,0.33567349999999996,0.4124759625,0.3412266875,0.462774925,0.2733915,0.50383525,0.3599488125,0.47632687500000004,0.6287182250000001,0.3093909749999999,0.6109665,0.3861959125,0.6464699500000001,0.39127456250000003,0.54208226875,0.67264515625,0.5469159375,0.6879962500000001,0.5605125375,0.6690251875,0.5605125375,0.6690251875,0.5469159375,0.6879962500000001,0.5699740624999999,0.665637625,0.523652,0.676265125,0.5469159375,0.6879962500000001,0.54208226875,0.67264515625,0.5189354375,0.7045858749999999,0.5469159375,0.6879962500000001,0.523652,0.676265125,0.5189354375,0.7045858749999999,0.523652,0.676265125,0.488189826866528,0.6814735375,0.488189826866528,0.2883909749999999,0.4196925125,0.2953909749999999,0.4365127125,0.40153225,0.28182385833333334,0.3866262,0.27597567916666665,0.4170092,0.305216575,0.4170092,0.7040264999999999,0.5342099,0.6139756,0.476639975,0.6986649375,0.5627347125,0.6986649375,0.5627347125,0.5915551,0.4831601,0.5512806,0.592975125,0.7079557,0.5055197499999999,0.71060725,0.476442525,0.6325640875,0.46274605,0.692903125,0.5908523999999999,0.5512806,0.592975125,0.6857991250000001,0.618673825,0.692903125,0.5908523999999999,0.6986649375,0.5627347125,0.5512806,0.592975125,0.43282999375,0.673484,0.42734125,0.6891803,0.450753025,0.67748525,0.450753025,0.67748525,0.4548121625,0.7055647999999999,0.488189826866528,0.6814735375,0.4149069625,0.6694827499999999,0.42734125,0.6891803,0.43282999375,0.673484,0.40563065000000004,0.66605925,0.42734125,0.6891803,0.4149069625,0.6694827499999999,0.4196925125,0.2953909749999999,0.38542595,0.3023909749999999,0.4028723125,0.3915063125,0.71060725,0.476442525,0.7120584999999999,0.4479282,0.6325640875,0.46274605,0.67428775,0.41762,0.6994682499999999,0.3861959125,0.6464699500000001,0.39127456250000003,0.7120584999999999,0.4479282,0.705763375,0.41762,0.67428775,0.41762,0.488189826866528,0.7103383750000001,0.5189354375,0.7045858749999999,0.488189826866528,0.6814735375,0.67428775,0.33039097499999986,0.6287182250000001,0.3093909749999999,0.6464699500000001,0.39127456250000003,0.59301290625,0.3023909749999999,0.7120584999999999,0.13003558749999994,0.5578605625,0.2953909749999999,0.6857991250000001,0.618673825,0.5512806,0.592975125,0.6774095,0.6461884999999999,0.42734125,0.6891803,0.4548121625,0.7055647999999999,0.450753025,0.67748525,0.4548121625,0.7055647999999999,0.488189826866528,0.7103383750000001,0.488189826866528,0.6814735375,0.705763375,0.41762,0.6994682499999999,0.3861959125,0.67428775,0.41762,0.8383426749999999,0.41762,0.6994682499999999,0.3861959125,0.705763375,0.41762,0.2711788125,0.475080675,0.2733915,0.50383525,0.3412266875,0.462774925,0.2733915,0.50383525,0.27736215000000003,0.53252975,0.3599488125,0.47632687500000004,0.40563065000000004,0.66605925,0.364313,0.738966,0.42734125,0.6891803,0.2701275,0.446433525,0.2711788125,0.475080675,0.3412266875,0.462774925,0.27736215000000003,0.53252975,0.282695775,0.5610828375,0.3599488125,0.47632687500000004,0.6774095,0.6461884999999999,0.5512806,0.592975125,0.5699740624999999,0.665637625,0.6774095,0.6461884999999999,0.5699740624999999,0.665637625,0.66662155,0.6725830875,0.305216575,0.33039097499999986,0.35056009374999997,0.3093909749999999,0.2701275,0.1304658749999999,0.38542595,0.3023909749999999,0.35056009374999997,0.3093909749999999,0.3679795875,0.3866262,0.305216575,0.4170092,0.2701275,0.446433525,0.3412266875,0.462774925,0.27597567916666665,0.4170092,0.2701275,0.446433525,0.305216575,0.4170092,0.28182385833333334,0.3866262,0.305216575,0.4170092,0.33314059999999995,0.3906893125,0.282695775,0.5610828375,0.28838671250000003,0.58901565,0.427124375,0.59353005,0.6994682499999999,0.3861959125,0.67428775,0.33039097499999986,0.6464699500000001,0.39127456250000003,0.305216575,0.33039097499999986,0.28182385833333334,0.3866262,0.33314059999999995,0.3906893125,0.27597567916666665,0.4170092,0.1433963791666667,0.4170092,0.2701275,0.446433525,0.66662155,0.6725830875,0.5699740624999999,0.665637625,0.652230375,0.6970854125,0.28838671250000003,0.58901565,0.29503317500000004,0.6170379625,0.427124375,0.59353005,0.42734125,0.6891803,0.38528327500000004,0.7581624625000001,0.4548121625,0.7055647999999999,0.35056009374999997,0.3093909749999999,0.305216575,0.33039097499999986,0.33314059999999995,0.3906893125,0.652230375,0.6970854125,0.5699740624999999,0.665637625,0.6349819999999999,0.719920125,0.29503317500000004,0.6170379625,0.3030863625,0.64445225,0.427124375,0.59353005,0.6349819999999999,0.719920125,0.5699740624999999,0.665637625,0.615452575,0.7405493125,0.5699740624999999,0.665637625,0.5469159375,0.6879962500000001,0.615452575,0.7405493125,0.3030863625,0.64445225,0.3134811625,0.6709578,0.40563065000000004,0.66605925,0.615452575,0.7405493125,0.5469159375,0.6879962500000001,0.5944185000000001,0.7597992000000001,0.3134811625,0.6709578,0.327658,0.6954898125,0.40563065000000004,0.66605925,0.4548121625,0.7055647999999999,0.46111278749999995,0.797688125,0.488189826866528,0.7103383750000001,0.327658,0.6954898125,0.3447950375,0.7185136249999999,0.40563065000000004,0.66605925,0.5944185000000001,0.7597992000000001,0.5469159375,0.6879962500000001,0.57167145,0.777034625,0.5469159375,0.6879962500000001,0.5189354375,0.7045858749999999,0.57167145,0.777034625,0.3447950375,0.7185136249999999,0.364313,0.738966,0.40563065000000004,0.66605925,0.57167145,0.777034625,0.5189354375,0.7045858749999999,0.54608605,0.79034725,0.364313,0.738966,0.38528327500000004,0.7581624625000001,0.42734125,0.6891803,0.54608605,0.79034725,0.5189354375,0.7045858749999999,0.5180748375,0.798073,0.38528327500000004,0.7581624625000001,0.4080183375,0.7756525375,0.4548121625,0.7055647999999999,0.5180748375,0.798073,0.5189354375,0.7045858749999999,0.488189826866528,0.7103383750000001,0.4080183375,0.7756525375,0.43323218750000003,0.78937325,0.4548121625,0.7055647999999999,0.488189826866528,0.800711625,0.5180748375,0.798073,0.488189826866528,0.7103383750000001,0.43323218750000003,0.78937325,0.46111278749999995,0.797688125,0.4548121625,0.7055647999999999,0.46111278749999995,0.797688125,0.488189826866528,0.800711625,0.488189826866528,0.7103383750000001,0.71060725,0.476442525,0.8383426749999999,0.41762,0.7120584999999999,0.4479282,0.7120584999999999,0.4479282,0.8383426749999999,0.41762,0.705763375,0.41762,0.6994682499999999,0.3861959125,0.8320475499999999,0.2883909749999999,0.67428775,0.33039097499999986,0.8446377999999999,0.5627347125,0.8383426749999999,0.41762,0.71060725,0.476442525,0.8446377999999999,0.5627347125,0.71060725,0.476442525,0.7079557,0.5055197499999999,0.8446377999999999,0.5627347125,0.7079557,0.5055197499999999,0.7040264999999999,0.5342099,0.8446377999999999,0.5627347125,0.7040264999999999,0.5342099,0.6986649375,0.5627347125,0.8446377999999999,0.5627347125,0.6986649375,0.5627347125,0.692903125,0.5908523999999999,0.8446377999999999,0.5627347125,0.692903125,0.5908523999999999,0.8099888,0.6725830875,0.692903125,0.5908523999999999,0.6857991250000001,0.618673825,0.8099888,0.6725830875,0.6857991250000001,0.618673825,0.6774095,0.6461884999999999,0.8099888,0.6725830875,0.8099888,0.6725830875,0.66662155,0.6725830875,0.7480318749999999,0.800711625,0.8099888,0.6725830875,0.6774095,0.6461884999999999,0.66662155,0.6725830875,0.66662155,0.6725830875,0.652230375,0.6970854125,0.7480318749999999,0.800711625,0.652230375,0.6970854125,0.6349819999999999,0.719920125,0.7480318749999999,0.800711625,0.1492445583333334,0.2883909749999999,0.1433963791666667,0.4170092,0.28182385833333334,0.3866262,0.28182385833333334,0.3866262,0.1433963791666667,0.4170092,0.27597567916666665,0.4170092,0.2701275,0.446433525,0.1433963791666667,0.4170092,0.2711788125,0.475080675,0.2711788125,0.475080675,0.13754820000000006,0.5610828375,0.2733915,0.50383525,0.2733915,0.50383525,0.13754820000000006,0.5610828375,0.27736215000000003,0.53252975,0.27736215000000003,0.53252975,0.13754820000000006,0.5610828375,0.282695775,0.5610828375,0.282695775,0.5610828375,0.13754820000000006,0.5610828375,0.28838671250000003,0.58901565,0.28838671250000003,0.58901565,0.17050706250000003,0.6709578,0.29503317500000004,0.6170379625,0.29503317500000004,0.6170379625,0.17050706250000003,0.6709578,0.3030863625,0.64445225,0.3030863625,0.64445225,0.17050706250000003,0.6709578,0.3134811625,0.6709578,0.3134811625,0.6709578,0.23173370000000004,0.800711625,0.327658,0.6954898125,0.7480318749999999,0.800711625,0.615452575,0.7405493125,0.615452575,0.879498755,0.7480318749999999,0.800711625,0.6349819999999999,0.719920125,0.615452575,0.7405493125,0.615452575,0.7405493125,0.5944185000000001,0.7597992000000001,0.615452575,0.879498755,0.1433963791666667,0.4170092,0.13754820000000006,0.5610828375,0.2711788125,0.475080675,0.327658,0.6954898125,0.23173370000000004,0.800711625,0.3447950375,0.7185136249999999,0.3447950375,0.7185136249999999,0.23173370000000004,0.800711625,0.364313,0.738966,0.364313,0.738966,0.364313,0.8781166675000001,0.38528327500000004,0.7581624625000001,0.13754820000000006,0.5610828375,0.17050706250000003,0.6709578,0.28838671250000003,0.58901565,0.38528327500000004,0.7581624625000001,0.364313,0.8781166675000001,0.4080183375,0.7756525375,0.4080183375,0.7756525375,0.364313,0.8781166675000001,0.43323218750000003,0.78937325,0.8383426749999999,0.41762,0.8320475499999999,0.2883909749999999,0.6994682499999999,0.3861959125,0.67428775,0.33039097499999986,0.7120584999999999,0.13003558749999994,0.6287182250000001,0.3093909749999999,0.6287182250000001,0.3093909749999999,0.7120584999999999,0.13003558749999994,0.59301290625,0.3023909749999999,0.5578605625,0.2953909749999999,0.59301290625,0.04623064999999982,0.488189826866528,0.2883909749999999,0.615452575,0.879498755,0.5944185000000001,0.7597992000000001,0.57167145,0.777034625,0.615452575,0.879498755,0.57167145,0.777034625,0.54608605,0.79034725,0.615452575,0.879498755,0.54608605,0.79034725,0.5180748375,0.798073,0.2701275,0.1304658749999999,0.1492445583333334,0.2883909749999999,0.305216575,0.33039097499999986,0.305216575,0.33039097499999986,0.1492445583333334,0.2883909749999999,0.28182385833333334,0.3866262,0.2701275,0.1304658749999999,0.35056009374999997,0.3093909749999999,0.38542595,0.3023909749999999,0.2701275,0.1304658749999999,0.38542595,0.3023909749999999,0.4196925125,0.2953909749999999,0.4895560875,0.9031757550000001,0.5180748375,0.798073,0.488189826866528,0.800711625,0.4895560875,0.9031757550000001,0.615452575,0.879498755,0.5180748375,0.798073,0.4895560875,0.9031757550000001,0.488189826866528,0.800711625,0.46111278749999995,0.797688125,0.364313,0.8781166675000001,0.46111278749999995,0.797688125,0.43323218750000003,0.78937325,0.17050706250000003,0.6709578,0.23173370000000004,0.800711625,0.3134811625,0.6709578,0.23173370000000004,0.800711625,0.364313,0.8781166675000001,0.364313,0.738966,0.8320475499999999,0.2883909749999999,0.7120584999999999,0.13003558749999994,0.67428775,0.33039097499999986,0.38542595,0.04623064999999982,0.2701275,0.1304658749999999,0.4196925125,0.2953909749999999,0.364313,0.8781166675000001,0.4895560875,0.9031757550000001,0.46111278749999995,0.797688125,0.38542595,0.04623064999999982,0.4196925125,0.2953909749999999,0.488189826866528,0.2883909749999999,0.7120584999999999,0.13003558749999994,0.59301290625,0.04623064999999982,0.5578605625,0.2953909749999999,0.59301290625,0.04623064999999982,0.488446575,0.032230649999999805,0.488189826866528,0.2883909749999999,0.488446575,0.032230649999999805,0.38542595,0.04623064999999982,0.488189826866528,0.2883909749999999],a4=[-0.08,-0.05,-0.03,0x0,0x0,0.01,0.015,0.01,0.01,-0.01,-0.03,-0.05,-0.06],a5=[0x12,0xe,0x13,0xe,0xd,0x13,0xe,0x2,0xd,0xe,0x3,0x2,0x14,0x15,0xd,0xd,0x15,0x13,0x1,0x14,0xd,0xb,0xa,0x13,0x13,0xa,0x12,0x2,0x1,0xd,0x15,0xb,0x13,0xc,0xb,0x15,0x3,0x4,0x2,0xe,0x4,0x3,0xf,0x4,0xe,0xa,0x9,0x12,0x11,0xf,0xe,0x11,0xe,0x12,0x8,0x11,0x12,0x1,0xc,0x14,0x14,0xc,0x15,0x9,0x8,0x12,0x1,0x0,0xc,0xc,0x0,0xb,0x17,0xf,0x11,0x16,0x5,0xf,0xf,0x5,0x4,0x7,0x17,0x11,0x17,0x16,0xf,0x8,0x7,0x11,0x17,0x10,0x16,0x7,0x10,0x17,0x16,0x10,0x5,0x7,0x6,0x10,0x10,0x6,0x5],a6=[0.4994956625,0.614281425,0.49966255,0.60233525,0.46424221250000003,0.6089815000000001,0.49966255,0.60233525,0.465096475,0.5992760874999999,0.46424221250000003,0.6089815000000001,0.49966255,0.60233525,0.4818877,0.5826464124999999,0.465096475,0.5992760874999999,0.49966255,0.60233525,0.49910775,0.5864197875,0.4818877,0.5826464124999999,0.4479978375,0.5976933312499999,0.44757070625,0.6025460375,0.465096475,0.5992760874999999,0.465096475,0.5992760874999999,0.44757070625,0.6025460375,0.46424221250000003,0.6089815000000001,0.451843375,0.5873581250000001,0.4479978375,0.5976933312499999,0.465096475,0.5992760874999999,0.44207625,0.6199760875,0.46743702499999995,0.6409725000000001,0.46424221250000003,0.6089815000000001,0.46424221250000003,0.6089815000000001,0.46743702499999995,0.6409725000000001,0.4994956625,0.614281425,0.4818877,0.5826464124999999,0.451843375,0.5873581250000001,0.465096475,0.5992760874999999,0.44757070625,0.6025460375,0.44207625,0.6199760875,0.46424221250000003,0.6089815000000001,0.4308992,0.596110575,0.44207625,0.6199760875,0.44757070625,0.6025460375,0.49910775,0.5864197875,0.5163774999999999,0.5825469625,0.4818877,0.5826464124999999,0.49966255,0.60233525,0.5163774999999999,0.5825469625,0.49910775,0.5864197875,0.5342254625,0.5992902,0.5163774999999999,0.5825469625,0.49966255,0.60233525,0.46743702499999995,0.6409725000000001,0.4997823375,0.64841675,0.4994956625,0.614281425,0.535219575,0.609022,0.5342254625,0.5992902,0.49966255,0.60233525,0.535219575,0.609022,0.49966255,0.60233525,0.4994956625,0.614281425,0.53258415,0.64137075,0.535219575,0.609022,0.4994956625,0.614281425,0.451843375,0.5873581250000001,0.4308992,0.596110575,0.4479978375,0.5976933312499999,0.4479978375,0.5976933312499999,0.4308992,0.596110575,0.44757070625,0.6025460375,0.4997823375,0.64841675,0.53258415,0.64137075,0.4994956625,0.614281425,0.451843375,0.5873581250000001,0.422608125,0.5931778375,0.4308992,0.596110575,0.4308992,0.596110575,0.422608125,0.5931778375,0.44207625,0.6199760875,0.5518993,0.60231035625,0.5342254625,0.5992902,0.535219575,0.609022,0.55140224375,0.59744445625,0.546885375,0.5874255749999999,0.5342254625,0.5992902,0.5342254625,0.5992902,0.546885375,0.5874255749999999,0.5163774999999999,0.5825469625,0.5581709625,0.620002975,0.5518993,0.60231035625,0.535219575,0.609022,0.5518993,0.60231035625,0.55140224375,0.59744445625,0.5342254625,0.5992902,0.53258415,0.64137075,0.5581709625,0.620002975,0.535219575,0.609022,0.5518993,0.60231035625,0.568579025,0.5955987125,0.55140224375,0.59744445625,0.5581709625,0.620002975,0.568579025,0.5955987125,0.5518993,0.60231035625,0.55140224375,0.59744445625,0.568579025,0.5955987125,0.546885375,0.5874255749999999,0.5581709625,0.620002975,0.576995375,0.5925833125,0.568579025,0.5955987125,0.568579025,0.5955987125,0.576995375,0.5925833125,0.546885375,0.5874255749999999];},0x2700:(b,d,f)=>{f['d'](d,{'nH':()=>p,'pe':()=>q,'sN':()=>m});var g=f(0x1f15),h=f(0x1407),j=f(0x1adf);let k=new h['Y']();async function m(v){return new Promise((w,x)=>{var iO=a0b;let y=wx['getFileSystemManager']();y[iO(0x959)]({'path':v,'success':()=>{w(!0x0);},'fail':z=>{var iP=iO;y[iP(0x364)]({'dirPath':v,'success':()=>{w(!0x0);},'fail':A=>{w(!0x1);}});}});});}async function p(v){return new Promise((w,x)=>{var iQ=a0b;wx[iQ(0x162)]()['access']({'path':v,'success':()=>{w(!0x0);},'fail':y=>{w(!0x1);}});});}async function q(v,w){return new Promise(async(x,y)=>{var iR=a0b;const z=wx[iR(0x1ad)]['USER_DATA_PATH']+iR(0x3df),A=z+'/'+v+iR(0x816);await m(z),await p(A)?x():async function(B,C){return new Promise(async(D,E)=>{var iS=a0b;let F=wx[iS(0x162)]();console[iS(0x5a1)](iS(0x22f),B,C);const G=B+'.bin',H=wx[iS(0x1ad)][iS(0x518)]+iS(0x2a5)+G;await p(H)?(console[iS(0x5a1)]('读取本地bin'),F[iS(0x60d)]({'filePath':H,'success':I=>{var iT=iS;D(I[iT(0x8c4)]);},'fail':I=>{var iU=iS;E({'code':j['U']['READ_FILE_CACHE_FAIL'],'message':g['Z']['t'](iU(0x86d))}),console[iU(0x5a1)]('read\x20file\x20cache\x20error',I);}})):(console[iS(0x5a1)](iS(0x3d3)),wx[iS(0x2c3)]({'url':C,'responseType':iS(0x745),'success':I=>{var iV=iS;const {data:J}=I;F[iV(0x618)]({'filePath':H,'data':J,'encoding':'binary','success':K=>{D(J);},'fail':K=>{var iW=iV;let L={'code':j['U']['REQUEST_FILE_FAIL'],'message':K[iW(0x953)]};K['errMsg'][iW(0x50a)](iW(0x880))>-0x1&&(L['message']=g['Z']['t']('0012')),E(L),console['log']('wx\x20cache\x20write\x20eroor',K);}});}}));});}(v,w)[iR(0x341)](B=>{var iX=iR;let C=wx[iX(0x162)](),D=new Uint8Array(B),E=D[iX(0x4ae)],F=D[iX(0x2a0)](0x0,0x400),G=D['slice'](0x400,E);k[iX(0x3a8)]()['then'](()=>{var iY=iX;let H=k[iY(0x4ea)](F,'');k['finish']('');const I=new Uint8Array(E);I[iY(0x3b4)](H),I[iY(0x3b4)](G,H['length']);let J=z+'/'+v+'.zip';C[iY(0x618)]({'filePath':J,'data':I[iY(0x331)],'encoding':iY(0x746),'success':K=>{x(J);},'fail':K=>{var iZ=iY;console[iZ(0x5a1)](iZ(0x820),K);let L={'code':j['U'][iZ(0x877)],'message':K['errMsg']};K[iZ(0x953)]['indexOf'](iZ(0x880))>-0x1&&(L[iZ(0x8e7)]=g['Z']['t']('0012')),y(L);}});});})[iR(0x53e)](B=>{y({'msg':'fail','zip':v,'error':B});});});}},0x170d:function(b,d,f){var g,h;!function(j){var j0=a0b,k,m={};m[j0(0x5a9)]='1.6.1';var q={},v=function(B,C){return function(){var j1=a0b;return C[j1(0x6e8)](B,arguments);};},w=function(){var j2=j0,B,C,D=arguments,E=D[0x0];for(C=0x1;C<D[j2(0x4ae)];C++)for(B in D[C])!(B in E)&&D[C]['hasOwnProperty'](B)&&(E[B]=D[C][B]);return E;},x=function(B,C){return{'value':B,'name':C};};m[j0(0x466)]=x(0x1,'TRACE'),m[j0(0x2ed)]=x(0x2,j0(0x2ed)),m['INFO']=x(0x3,j0(0x469)),m[j0(0x4bc)]=x(0x4,j0(0x4bc)),m[j0(0x640)]=x(0x5,j0(0x640)),m[j0(0x289)]=x(0x8,j0(0x289)),m['OFF']=x(0x63,j0(0x93d));var y=function(B){var j3=j0;this['context']=B,this[j3(0x7d5)](B[j3(0x539)]),this[j3(0x5a1)]=this[j3(0x27b)];};y[j0(0x32e)]={'setLevel':function(B){var j4=j0;B&&'value'in B&&(this['context'][j4(0x539)]=B);},'getLevel':function(){var j5=j0;return this['context'][j5(0x539)];},'enabledFor':function(B){var j6=j0,C=this[j6(0x676)]['filterLevel'];return B['value']>=C[j6(0x4a9)];},'trace':function(){var j7=j0;this[j7(0x752)](m['TRACE'],arguments);},'debug':function(){var j8=j0;this[j8(0x752)](m[j8(0x2ed)],arguments);},'info':function(){var j9=j0;this['invoke'](m[j9(0x469)],arguments);},'warn':function(){var ja=j0;this[ja(0x752)](m[ja(0x640)],arguments);},'error':function(){var jb=j0;this['invoke'](m[jb(0x289)],arguments);},'time':function(B){var jc=j0;jc(0x940)==typeof B&&B[jc(0x4ae)]>0x0&&this['invoke'](m[jc(0x4bc)],[B,jc(0x4fa)]);},'timeEnd':function(B){var jd=j0;'string'==typeof B&&B[jd(0x4ae)]>0x0&&this[jd(0x752)](m[jd(0x4bc)],[B,'end']);},'invoke':function(B,C){var je=j0;k&&this[je(0x8af)](B)&&k(C,w({'level':B},this[je(0x676)]));}};var z,A=new y({'filterLevel':m[j0(0x93d)]});(z=m)['enabledFor']=v(A,A[j0(0x8af)]),z['trace']=v(A,A['trace']),z[j0(0x231)]=v(A,A[j0(0x231)]),z[j0(0x897)]=v(A,A['time']),z[j0(0x4ab)]=v(A,A['timeEnd']),z['info']=v(A,A[j0(0x27b)]),z['warn']=v(A,A['warn']),z['error']=v(A,A[j0(0x8e5)]),z[j0(0x5a1)]=z[j0(0x27b)],m[j0(0x22c)]=function(B){k=B;},m['setLevel']=function(B){var jf=j0;for(var C in(A[jf(0x7d5)](B),q))q['hasOwnProperty'](C)&&q[C]['setLevel'](B);},m[j0(0x8b7)]=function(){return A['getLevel']();},m[j0(0x40e)]=function(B){var jg=j0;return q[B]||(q[B]=new y(w({'name':B},A[jg(0x676)])));},m[j0(0x30b)]=function(B){var jh=j0;(B=B||{})[jh(0xa03)]=B[jh(0xa03)]||function(E,F){var ji=jh;F[ji(0x836)]&&E[ji(0x1f4)]('['+F[ji(0x836)]+']');};var C={},D=function(E,F){var jj=jh;Function[jj(0x32e)][jj(0x6e8)][jj(0x8fb)](E,console,F);};return jh(0x30a)==typeof console?function(){}:function(E,F){var jk=jh;E=Array[jk(0x32e)][jk(0x2a0)][jk(0x8fb)](E);var G,H=console[jk(0x5a1)];F['level']===m[jk(0x4bc)]?(G=(F[jk(0x836)]?'['+F[jk(0x836)]+']\x20':'')+E[0x0],'start'===E[0x1]?console[jk(0x897)]?console[jk(0x897)](G):C[G]=new Date()[jk(0x648)]():console['timeEnd']?console[jk(0x4ab)](G):D(H,[G+':\x20'+(new Date()[jk(0x648)]()-C[G])+'ms'])):(F['level']===m['WARN']&&console[jk(0x4d7)]?H=console['warn']:F[jk(0x7a5)]===m[jk(0x289)]&&console[jk(0x8e5)]?H=console[jk(0x8e5)]:F[jk(0x7a5)]===m[jk(0x469)]&&console[jk(0x27b)]?H=console[jk(0x27b)]:F[jk(0x7a5)]===m['DEBUG']&&console[jk(0x231)]?H=console[jk(0x231)]:F[jk(0x7a5)]===m[jk(0x466)]&&console['trace']&&(H=console['trace']),B[jk(0xa03)](E,F),D(H,E));};},m['useDefaults']=function(B){var jl=j0;m[jl(0x7d5)](B&&B[jl(0x372)]||m[jl(0x2ed)]),m['setHandler'](m[jl(0x30b)](B));},m[j0(0x297)]=m['useDefaults'],void 0x0===(h=j0(0x3b5)==typeof(g=m)?g[j0(0x8fb)](d,f,d,b):g)||(b[j0(0x704)]=h);}();},0xc35:(a0,a1,a2)=>{var jm=a0b;a2['d'](a1,{'LE':()=>aS});var a3=a2(0x2353),a4=a2(0x1deb),a5=a2(0x89a),a6=a2(0x765),a7=a2(0x207),a8=a2(0x810),a9=a2(0x1fcd),aa=a2(0x18c4),ab=a2(0x7a9),ac=a2(0xaea);a2(0x12a7);class ad extends a3[jm(0x69d)]{constructor(bc=!0x1){var jn=jm;super(),this[jn(0x701)]=new a3[(jn(0x71c))](null,bc,!0x1),this['_indexBuffer']=new a3['Buffer'](null,bc,!0x0),this[jn(0x46e)](jn(0x69f),this['_buffer'],0x3,!0x1,a4['vK'][jn(0x579)])[jn(0x46e)](jn(0x1d0),this[jn(0x701)],0x2,!0x1,a4['vK'][jn(0x579)])[jn(0x46e)](jn(0x8b8),this[jn(0x701)],0x4,!0x0,a4['vK']['UNSIGNED_BYTE'])[jn(0x46e)](jn(0x422),this['_buffer'],0x1,!0x0,a4['vK']['FLOAT'])[jn(0x932)](this[jn(0x802)]);}}class ae{constructor(bc,bd=!0x0){var jo=jm;ae[jo(0x32e)][jo(0x445)][jo(0x8fb)](this),this[jo(0x3cd)]=bc,bd&&(this['enabled']=!0x0),this['legacy'][jo(0x66a)]=this;}[jm(0x445)](){this['_enabled']=!0x1;}get[jm(0x94f)](){var jp=jm;return this[jp(0x6d9)];}set['enabled'](bc){var jq=jm;this[jq(0x6d9)]=bc;}[jm(0x515)](){}}var af,ag;function ah(bc){var jr=jm;const bd=this[jr(0x66a)],be=this,bf=bc[jr(0x34f)],bg=be['localTransform'],bh=bd['scaleAfterAffine']&&bd[jr(0x404)]>=0x2;be[jr(0x913)]!==be[jr(0x3b1)]&&(bh?(bg['a']=be[jr(0x468)],bg['b']=be[jr(0x967)],bg['c']=be[jr(0x925)],bg['d']=be[jr(0x393)],bg['tx']=be['position']['_x'],bg['ty']=be['position']['_y']):(bg['a']=be['_cx']*be['scale']['_x'],bg['b']=be[jr(0x967)]*be['scale']['_x'],bg['c']=be[jr(0x925)]*be[jr(0x93f)]['_y'],bg['d']=be[jr(0x393)]*be[jr(0x93f)]['_y'],bg['tx']=be[jr(0x679)]['_x']-(be[jr(0x798)]['_x']*bg['a']+be[jr(0x798)]['_y']*bg['c']),bg['ty']=be[jr(0x679)]['_y']-(be[jr(0x798)]['_x']*bg['b']+be[jr(0x798)]['_y']*bg['d'])),be[jr(0x3b1)]=be[jr(0x913)],bd[jr(0x1e1)]=-0x1);const bi=bd['_projID'];if(bd[jr(0x1e1)]!==bi&&(bd[jr(0x1e1)]=bi,bd[jr(0x5b4)](bg),be[jr(0x5ec)]=-0x1),be[jr(0x5ec)]!==bf){const bj=bc['proj'];bj&&!bj[jr(0x4bb)]?bd[jr(0x694)]['setToMult'](bj[jr(0x694)],bd[jr(0x2db)]):bd[jr(0x694)][jr(0x81f)](bc['worldTransform'],bd[jr(0x2db)]);const bk=be['worldTransform'];bd[jr(0x694)][jr(0x250)](bk,bd['_affine'],bd['affinePreserveOrientation']),bh&&(bk['a']*=be[jr(0x93f)]['_x'],bk['b']*=be[jr(0x93f)]['_x'],bk['c']*=be[jr(0x93f)]['_y'],bk['d']*=be[jr(0x93f)]['_y'],bk['tx']-=be[jr(0x798)]['_x']*bk['a']+be['pivot']['_y']*bk['c'],bk['ty']-=be[jr(0x798)]['_x']*bk['b']+be[jr(0x798)]['_y']*bk['d']),be[jr(0x5ec)]=bf,be[jr(0x34f)]++;}}!function(bc){var js=jm;bc[bc[js(0x398)]=0x0]=js(0x398),bc[bc[js(0x6cc)]=0x4]='BEFORE_PROJ',bc[bc['PROJ']=0x5]=js(0x52d),bc[bc['ALL']=0x9]='ALL';}(af||(af={})),function(bc){var jt=jm;bc[bc[jt(0x398)]=0x0]=jt(0x398),bc[bc['FREE']=0x1]=jt(0x82f),bc[bc[jt(0x789)]=0x2]=jt(0x789),bc[bc[jt(0x818)]=0x3]=jt(0x818),bc[bc['POINT']=0x4]='POINT',bc[bc[jt(0x91d)]=0x5]=jt(0x91d);}(ag||(ag={}));class ai extends ae{constructor(...bc){var ju=jm;super(...bc),ai[ju(0x32e)][ju(0x445)]['call'](this),ai[ju(0x32e)][ju(0x910)][ju(0x8fb)](this),ai[ju(0x32e)][ju(0x8ca)][ju(0x8fb)](this),ai[ju(0x32e)][ju(0x95d)][ju(0x8fb)](this),ai['prototype'][ju(0x166)][ju(0x8fb)](this);}[jm(0x5b4)](bc){}[jm(0x445)](){this['_projID']=0x0;}[jm(0x910)](){var jv=jm;this[jv(0x1e1)]=-0x1;}['__init3'](){var jw=jm;this[jw(0x4bb)]=ag[jw(0x398)];}[jm(0x95d)](){var jx=jm;this[jx(0x889)]=!0x1;}['__init5'](){var jy=jm;this[jy(0x827)]=!0x0;}set[jm(0x404)](bc){var jz=jm;this['_affine']!==bc&&(this[jz(0x4bb)]=bc,this[jz(0x1e1)]=-0x1,this[jz(0x3cd)][jz(0x3b1)]=-0x1);}get['affine'](){var jA=jm;return this[jA(0x4bb)];}set[jm(0x94f)](bc){var jB=jm;bc!==this['_enabled']&&(this['_enabled']=bc,bc?(this[jB(0x3cd)][jB(0x916)]=ah,this[jB(0x3cd)][jB(0x5ec)]=-0x1):(this[jB(0x3cd)][jB(0x916)]=a6['wx'][jB(0x32e)][jB(0x916)],this[jB(0x3cd)][jB(0x5ec)]=-0x1));}[jm(0x515)](){var jC=jm;this[jC(0x1e1)]=-0x1,this[jC(0x509)]=0x0;}}class aj extends a3['AbstractBatchRenderer']{constructor(...bc){var jD=jm;super(...bc),aj['prototype'][jD(0x445)][jD(0x8fb)](this),aj[jD(0x32e)][jD(0x910)][jD(0x8fb)](this);}['__init'](){this['forceMaxTextures']=0x0;}[jm(0x3a2)](bc){var jE=jm;return this[jE(0x41a)];}[jm(0x48b)](bc){var jF=jm;if(!bc)return;const bd=this['_shader'];for(const be in bc)bd[jF(0x71a)][be]=bc[be];}[jm(0x910)](){var jG=jm;this[jG(0x41a)]={};}['buildDrawCalls'](bc,bd,be){var jH=jm;const bf=this,{_bufferedElements:bg,_attributeBuffer:bh,_indexBuffer:bi,vertexSize:bj}=this,bk=a3[jH(0x36d)][jH(0x376)];let bl=this[jH(0x8c5)],bm=this['_aIndex'],bn=this['_iIndex'],bo=bk[bl];bo[jH(0x4fa)]=this[jH(0x99f)],bo['texArray']=bc;for(let bp=bd;bp<be;++bp){const bq=bg[bp],br=bq[jH(0x3c2)][jH(0x8ab)],bs=a5[jH(0x643)][br[jH(0x955)]?0x1:0x0][bq[jH(0x355)]],bt=this[jH(0x3a2)](bq);bg[bp]=null,bd<bp&&(bo[jH(0xa00)]!==bs||bo['uniforms']!==bt)&&(bo[jH(0x698)]=bn-bo[jH(0x4fa)],bd=bp,bo=bk[++bl],bo['texArray']=bc,bo['start']=bn),this['packInterleavedGeometry'](bq,bh,bi,bm,bn),bm+=bq['vertexData'][jH(0x4ae)]/0x2*bj,bn+=bq['indices'][jH(0x4ae)],bo[jH(0xa00)]=bs,bo[jH(0x71a)]=bt;}bd<be&&(bo[jH(0x698)]=bn-bo['start'],++bl),bf[jH(0x8c5)]=bl,bf['_aIndex']=bm,bf[jH(0x99f)]=bn;}[jm(0x741)](){var jI=jm;const bc=this['_dcIndex'],{gl:bd,state:be,shader:bf}=this[jI(0x311)],bg=a3[jI(0x36d)]['_drawCallPool'];let bh=null,bi=null;for(let bj=0x0;bj<bc;bj++){const {texArray:bk,type:bl,size:bm,start:bn,blend:bo,uniforms:bp}=bg[bj];bi!==bk&&(bi=bk,this[jI(0x6a0)](bk)),bh!==bp&&(bh=bp,this[jI(0x48b)](bp),bf['syncUniformGroup'](this[jI(0x6aa)][jI(0x773)])),this[jI(0x2d1)]['blendMode']=bo,be['set'](this[jI(0x2d1)]),bd[jI(0x936)](bl,bm,bd['UNSIGNED_SHORT'],0x2*bn);}}[jm(0x807)](){var jJ=jm;if(!this['forceMaxTextures'])return super[jJ(0x807)](),void this['syncUniforms'](this['defUniforms']);const bc=this;bc[jJ(0x6c3)]=this['forceMaxTextures'],this['_shader']=bc[jJ(0x1ed)]['generateShader'](this[jJ(0x6c3)]),this[jJ(0x48b)](this['defUniforms']);for(let bd=0x0;bd<bc[jJ(0x2d6)];bd++)bc['_packedGeometries'][bd]=new this[(jJ(0x832))]();this[jJ(0x7cd)]();}}a3[jm(0x651)]['registerPlugin'](jm(0x6af),class{static[jm(0x92d)](bc){var jK=jm;const {vertex:bd,fragment:be,vertexSize:bf,geometryClass:bg}=Object['assign']({'vertex':jK(0x97a),'fragment':'\x0avarying\x20vec2\x20vTextureCoord;\x0avarying\x20vec4\x20vColor;\x0avarying\x20float\x20vTextureId;\x0auniform\x20sampler2D\x20uSamplers[%count%];\x0a\x0avoid\x20main(void){\x0avec4\x20color;\x0a%forloop%\x0agl_FragColor\x20=\x20color\x20*\x20vColor;\x0a}','geometryClass':ad,'vertexSize':0x7},bc);return class extends a3['AbstractBatchRenderer']{constructor(bh){var jL=jK;super(bh),this[jL(0x1ed)]=new a3['BatchShaderGenerator'](bd,be),this[jL(0x832)]=bg,this[jL(0x744)]=bf;}[jK(0x1b7)](bh,bi,bj,bk,bl){var jM=jK;const {uint32View:bm,float32View:bn}=bi,bo=bk/this[jM(0x744)],bp=bh['uvs'],bq=bh['indices'],br=bh[jM(0x4f7)],bs=bh[jM(0x7ec)],bt=bh[jM(0x3c2)][jM(0x8ab)]['_batchLocation'],bu=Math[jM(0x3e8)](bh['worldAlpha'],0x1),bv=bu<0x1&&bh[jM(0x3c2)][jM(0x8ab)]['alphaMode']?(0x0,a5[jM(0x64d)])(bh[jM(0x1c4)],bu):bh[jM(0x1c4)]+(0xff*bu<<0x18);if(bs){let bw=0x0;for(let bx=0x0;bx<bs[jM(0x4ae)];bx+=0x3,bw+=0x2)bn[bk++]=bs[bx],bn[bk++]=bs[bx+0x1],bn[bk++]=bs[bx+0x2],bn[bk++]=bp[bw],bn[bk++]=bp[bw+0x1],bm[bk++]=bv,bn[bk++]=bt;}else{for(let by=0x0;by<br['length'];by+=0x2)bn[bk++]=br[by],bn[bk++]=br[by+0x1],bn[bk++]=0x1,bn[bk++]=bp[by],bn[bk++]=bp[by+0x1],bm[bk++]=bv,bn[bk++]=bt;}for(let bz=0x0;bz<bq['length'];bz++)bj[bl++]=bo+bq[bz];}};}}[jm(0x92d)]({}));const ak=[0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1];class al{static[jm(0x7ed)](){var jN=jm;this[jN(0x371)]=new al();}static['__initStatic2'](){var jO=jm;this[jO(0x62f)]=new al();}[jm(0x445)](){this['floatArray']=null;}constructor(bc){var jP=jm;al[jP(0x32e)][jP(0x445)]['call'](this),this['mat3']=new Float64Array(bc||ak);}get['a'](){var jQ=jm;return this[jQ(0x24e)][0x0]/this['mat3'][0x8];}set['a'](bc){var jR=jm;this[jR(0x24e)][0x0]=bc*this[jR(0x24e)][0x8];}get['b'](){var jS=jm;return this[jS(0x24e)][0x1]/this[jS(0x24e)][0x8];}set['b'](bc){var jT=jm;this[jT(0x24e)][0x1]=bc*this['mat3'][0x8];}get['c'](){var jU=jm;return this[jU(0x24e)][0x3]/this[jU(0x24e)][0x8];}set['c'](bc){var jV=jm;this['mat3'][0x3]=bc*this[jV(0x24e)][0x8];}get['d'](){var jW=jm;return this[jW(0x24e)][0x4]/this[jW(0x24e)][0x8];}set['d'](bc){var jX=jm;this[jX(0x24e)][0x4]=bc*this[jX(0x24e)][0x8];}get['tx'](){var jY=jm;return this[jY(0x24e)][0x6]/this[jY(0x24e)][0x8];}set['tx'](bc){var jZ=jm;this[jZ(0x24e)][0x6]=bc*this[jZ(0x24e)][0x8];}get['ty'](){var k0=jm;return this['mat3'][0x7]/this[k0(0x24e)][0x8];}set['ty'](bc){var k1=jm;this[k1(0x24e)][0x7]=bc*this[k1(0x24e)][0x8];}[jm(0x3b4)](bc,bd,be,bf,bg,bh){var k2=jm;const bi=this[k2(0x24e)];return bi[0x0]=bc,bi[0x1]=bd,bi[0x2]=0x0,bi[0x3]=be,bi[0x4]=bf,bi[0x5]=0x0,bi[0x6]=bg,bi[0x7]=bh,bi[0x8]=0x1,this;}[jm(0x529)](bc,bd){var k3=jm;this[k3(0x189)]||(this[k3(0x189)]=new Float32Array(0x9));const be=bd||this['floatArray'],bf=this[k3(0x24e)];return bc?(be[0x0]=bf[0x0],be[0x1]=bf[0x1],be[0x2]=bf[0x2],be[0x3]=bf[0x3],be[0x4]=bf[0x4],be[0x5]=bf[0x5],be[0x6]=bf[0x6],be[0x7]=bf[0x7],be[0x8]=bf[0x8]):(be[0x0]=bf[0x0],be[0x1]=bf[0x3],be[0x2]=bf[0x6],be[0x3]=bf[0x1],be[0x4]=bf[0x4],be[0x5]=bf[0x7],be[0x6]=bf[0x2],be[0x7]=bf[0x5],be[0x8]=bf[0x8]),be;}[jm(0x6e8)](bc,bd){var k4=jm;bd=bd||new a6['E9']();const be=this[k4(0x24e)],bf=bc['x'],bg=bc['y'],bh=0x1/(be[0x2]*bf+be[0x5]*bg+be[0x8]);return bd['x']=bh*(be[0x0]*bf+be[0x3]*bg+be[0x6]),bd['y']=bh*(be[0x1]*bf+be[0x4]*bg+be[0x7]),bd;}[jm(0x15e)](bc,bd){var k5=jm;const be=this[k5(0x24e)];return be[0x0]+=bc*be[0x2],be[0x1]+=bd*be[0x2],be[0x3]+=bc*be[0x5],be[0x4]+=bd*be[0x5],be[0x6]+=bc*be[0x8],be[0x7]+=bd*be[0x8],this;}['scale'](bc,bd){const be=this['mat3'];return be[0x0]*=bc,be[0x1]*=bd,be[0x3]*=bc,be[0x4]*=bd,be[0x6]*=bc,be[0x7]*=bd,this;}[jm(0x1f8)](bc,bd,be,bf){var k6=jm;const bg=this[k6(0x24e)];bg[0x0]=bc*bg[0x0]+be*bg[0x2],bg[0x1]=bd*bg[0x1]+bf*bg[0x2],bg[0x3]=bc*bg[0x3]+be*bg[0x5],bg[0x4]=bd*bg[0x4]+bf*bg[0x5],bg[0x6]=bc*bg[0x6]+be*bg[0x8],bg[0x7]=bd*bg[0x7]+bf*bg[0x8];}[jm(0x4da)](bc,bd){var k7=jm;bd=bd||new a6['E9']();const be=this[k7(0x24e)],bf=bc['x'],bg=bc['y'],bh=be[0x0],bi=be[0x3],bj=be[0x6],bk=be[0x1],bl=be[0x4],bm=be[0x7],bn=be[0x2],bo=be[0x5],bp=be[0x8],bq=(bp*bl-bm*bo)*bf+(-bp*bi+bj*bo)*bg+(bm*bi-bj*bl),br=(-bp*bk+bm*bn)*bf+(bp*bh-bj*bn)*bg+(-bm*bh+bj*bk),bs=(bo*bk-bl*bn)*bf+(-bo*bh+bi*bn)*bg+(bl*bh-bi*bk);return bd['x']=bq/bs,bd['y']=br/bs,bd;}[jm(0x8ac)](){var k8=jm;const bc=this[k8(0x24e)],bd=bc[0x0],be=bc[0x1],bf=bc[0x2],bg=bc[0x3],bh=bc[0x4],bi=bc[0x5],bj=bc[0x6],bk=bc[0x7],bl=bc[0x8],bm=bl*bh-bi*bk,bn=-bl*bg+bi*bj,bo=bk*bg-bh*bj;let bp=bd*bm+be*bn+bf*bo;return bp?(bp=0x1/bp,bc[0x0]=bm*bp,bc[0x1]=(-bl*be+bf*bk)*bp,bc[0x2]=(bi*be-bf*bh)*bp,bc[0x3]=bn*bp,bc[0x4]=(bl*bd-bf*bj)*bp,bc[0x5]=(-bi*bd+bf*bg)*bp,bc[0x6]=bo*bp,bc[0x7]=(-bk*bd+be*bj)*bp,bc[0x8]=(bh*bd-be*bg)*bp,this):this;}['identity'](){const bc=this['mat3'];return bc[0x0]=0x1,bc[0x1]=0x0,bc[0x2]=0x0,bc[0x3]=0x0,bc[0x4]=0x1,bc[0x5]=0x0,bc[0x6]=0x0,bc[0x7]=0x0,bc[0x8]=0x1,this;}['clone'](){var k9=jm;return new al(this[k9(0x24e)]);}[jm(0x6d1)](bc){var ka=jm;const bd=this[ka(0x24e)],be=bc[ka(0x24e)];return be[0x0]=bd[0x0],be[0x1]=bd[0x1],be[0x2]=bd[0x2],be[0x3]=bd[0x3],be[0x4]=bd[0x4],be[0x5]=bd[0x5],be[0x6]=bd[0x6],be[0x7]=bd[0x7],be[0x8]=bd[0x8],bc;}['copyTo'](bc,bd,be){var kb=jm;const bf=this[kb(0x24e)],bg=0x1/bf[0x8],bh=bf[0x6]*bg,bi=bf[0x7]*bg;if(bc['a']=(bf[0x0]-bf[0x2]*bh)*bg,bc['b']=(bf[0x1]-bf[0x2]*bi)*bg,bc['c']=(bf[0x3]-bf[0x5]*bh)*bg,bc['d']=(bf[0x4]-bf[0x5]*bi)*bg,bc['tx']=bh,bc['ty']=bi,bd>=0x2){let bj=bc['a']*bc['d']-bc['b']*bc['c'];be||(bj=Math['abs'](bj)),bd===ag[kb(0x1b5)]?(bj=bj>0x0?0x1:-0x1,bc['a']=bj,bc['b']=0x0,bc['c']=0x0,bc['d']=bj):bd===ag[kb(0x789)]?(bj/=Math[kb(0x258)](bc['b']*bc['b']+bc['d']*bc['d']),bc['c']=0x0,bc['d']=bj):bd===ag[kb(0x818)]?(bj/=Math[kb(0x258)](bc['a']*bc['a']+bc['c']*bc['c']),bc['a']=bj,bc['c']=0x0):bd===ag[kb(0x91d)]&&(bc['a']=bc['d']*bj,bc['c']=-bc['b']*bj);}return bc;}['copyFrom'](bc){var kc=jm;const bd=this[kc(0x24e)];return bd[0x0]=bc['a'],bd[0x1]=bc['b'],bd[0x2]=0x0,bd[0x3]=bc['c'],bd[0x4]=bc['d'],bd[0x5]=0x0,bd[0x6]=bc['tx'],bd[0x7]=bc['ty'],bd[0x8]=0x1,this;}[jm(0x81f)](bc,bd){var kd=jm;const be=this[kd(0x24e)],bf=bd['mat3'],bg=bc['a'],bh=bc['b'],bi=bc['c'],bj=bc['d'],bk=bc['tx'],bl=bc['ty'],bm=bf[0x0],bn=bf[0x1],bo=bf[0x2],bp=bf[0x3],bq=bf[0x4],br=bf[0x5],bs=bf[0x6],bt=bf[0x7],bu=bf[0x8];return be[0x0]=bm*bg+bn*bi+bo*bk,be[0x1]=bm*bh+bn*bj+bo*bl,be[0x2]=bo,be[0x3]=bp*bg+bq*bi+br*bk,be[0x4]=bp*bh+bq*bj+br*bl,be[0x5]=br,be[0x6]=bs*bg+bt*bi+bu*bk,be[0x7]=bs*bh+bt*bj+bu*bl,be[0x8]=bu,this;}['setToMultLegacy2'](bc,bd){var ke=jm;const be=this[ke(0x24e)],bf=bc['mat3'],bg=bf[0x0],bh=bf[0x1],bi=bf[0x2],bj=bf[0x3],bk=bf[0x4],bl=bf[0x5],bm=bf[0x6],bn=bf[0x7],bo=bf[0x8],bp=bd['a'],bq=bd['b'],br=bd['c'],bs=bd['d'],bt=bd['tx'],bu=bd['ty'];return be[0x0]=bp*bg+bq*bj,be[0x1]=bp*bh+bq*bk,be[0x2]=bp*bi+bq*bl,be[0x3]=br*bg+bs*bj,be[0x4]=br*bh+bs*bk,be[0x5]=br*bi+bs*bl,be[0x6]=bt*bg+bu*bj+bm,be[0x7]=bt*bh+bu*bk+bn,be[0x8]=bt*bi+bu*bl+bo,this;}[jm(0x3d9)](bc,bd){var kf=jm;const be=this[kf(0x24e)],bf=bc['mat3'],bg=bd['mat3'],bh=bf[0x0],bi=bf[0x1],bj=bf[0x2],bk=bf[0x3],bl=bf[0x4],bm=bf[0x5],bn=bf[0x6],bo=bf[0x7],bp=bf[0x8],bq=bg[0x0],br=bg[0x1],bs=bg[0x2],bt=bg[0x3],bu=bg[0x4],bv=bg[0x5],bw=bg[0x6],bx=bg[0x7],by=bg[0x8];return be[0x0]=bq*bh+br*bk+bs*bn,be[0x1]=bq*bi+br*bl+bs*bo,be[0x2]=bq*bj+br*bm+bs*bp,be[0x3]=bt*bh+bu*bk+bv*bn,be[0x4]=bt*bi+bu*bl+bv*bo,be[0x5]=bt*bj+bu*bm+bv*bp,be[0x6]=bw*bh+bx*bk+by*bn,be[0x7]=bw*bi+bx*bl+by*bo,be[0x8]=bw*bj+bx*bm+by*bp,this;}[jm(0x2bd)](bc){var kg=jm;return bc[kg(0x24e)]?this[kg(0x3d9)](bc,this):this[kg(0x81f)](bc,this);}}al[jm(0x7ed)](),al[jm(0x9e2)]();const am='attribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0auniform\x20mat3\x20translationMatrix;\x0auniform\x20mat3\x20uTransform;\x0a\x0avarying\x20vec3\x20vTextureCoord;\x0a\x0avoid\x20main(void)\x0a{\x0agl_Position.xyw\x20=\x20projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0);\x0a\x0avTextureCoord\x20=\x20uTransform\x20*\x20vec3(aTextureCoord,\x201.0);\x0a}\x0a',an=new al();class ao extends a3[jm(0x55f)]{constructor(bc){var kh=jm;super(bc),ao[kh(0x32e)][kh(0x445)]['call'](this);const bd={'globals':this['renderer'][kh(0x5a6)]};this[kh(0x342)]=a3[kh(0x235)]['from'](am,kh(0x4ee),bd),this[kh(0x7c4)]=a3['Shader'][kh(0x615)](am,kh(0x9f9),bd);}[jm(0x445)](){var ki=jm;this[ki(0x922)]=new a3[(ki(0xa04))]();}[jm(0x6ca)](bc){var kj=jm;const bd=this[kj(0x311)],be=this['quad'];let bf=be[kj(0x968)];bf[0x0]=bf[0x6]=bc[kj(0x59e)]*-bc[kj(0x1ce)]['x'],bf[0x1]=bf[0x3]=bc[kj(0x8bc)]*-bc[kj(0x1ce)]['y'],bf[0x2]=bf[0x4]=bc[kj(0x59e)]*(0x1-bc[kj(0x1ce)]['x']),bf[0x5]=bf[0x7]=bc[kj(0x8bc)]*(0x1-bc[kj(0x1ce)]['y']),bc[kj(0x5a3)]&&(bf=be[kj(0x1d4)],bf[0x0]=bf[0x6]=-bc[kj(0x1ce)]['x'],bf[0x1]=bf[0x3]=-bc['anchor']['y'],bf[0x2]=bf[0x4]=0x1-bc[kj(0x1ce)]['x'],bf[0x5]=bf[0x7]=0x1-bc[kj(0x1ce)]['y']),be[kj(0xa08)]();const bg=bc[kj(0x3c2)],bh=bg[kj(0x8ab)],bi=bc[kj(0x89b)][kj(0x694)],bj=bc[kj(0x17c)];let bk=bh[kj(0x54e)]&&bg[kj(0x31e)][kj(0x260)]===bh[kj(0x260)]&&bg[kj(0x31e)]['height']===bh['height'];bk&&(bh[kj(0x4a0)][bd[kj(0x685)]]?bk=bh['wrapMode']!==a4['Nt']['CLAMP']:bh['wrapMode']===a4['Nt'][kj(0x216)]&&(bh['wrapMode']=a4['Nt'][kj(0x38c)]));const bl=bk?this[kj(0x7c4)]:this[kj(0x342)];an['identity'](),an[kj(0x93f)](bg[kj(0x260)],bg[kj(0x307)]),an['prepend'](bi),an[kj(0x93f)](0x1/bc[kj(0x59e)],0x1/bc[kj(0x8bc)]),an[kj(0x8ac)](),bk?an[kj(0x2bd)](bj[kj(0x2e2)]):(bl['uniforms'][kj(0x753)]=bj[kj(0x2e2)][kj(0x529)](!0x0),bl[kj(0x71a)]['uClampFrame']=bj[kj(0x819)],bl['uniforms'][kj(0x678)]=bj[kj(0x678)]),bl[kj(0x71a)]['uTransform']=an[kj(0x529)](!0x0),bl[kj(0x71a)][kj(0x5f2)]=(0x0,a5[kj(0x914)])(bc[kj(0x1d3)],bc[kj(0x84f)],bl['uniforms'][kj(0x5f2)],bh['premultiplyAlpha']),bl[kj(0x71a)][kj(0x45e)]=bc[kj(0x58c)]['toArray'](!0x0),bl['uniforms'][kj(0x391)]=bg,bd[kj(0x342)][kj(0x3a7)](bl,!0x1),bd[kj(0x234)][kj(0x3a7)](be,void 0x0),bd[kj(0x2d1)][kj(0x739)]((0x0,a5[kj(0x229)])(bc['blendMode'],bh['premultiplyAlpha'])),bd['geometry'][kj(0x6da)](a4['lg'][kj(0x453)],0x6,0x0);}}const ap=new a6['E9'](),aq=[new a6['E9'](),new a6['E9'](),new a6['E9'](),new a6['E9']()],ar=new a6['Ae'](),as=new al();class au extends ai{constructor(bc,bd){var kk=jm;super(bc,bd),au[kk(0x32e)][kk(0x445)][kk(0x8fb)](this),au['prototype'][kk(0x910)][kk(0x8fb)](this),au['prototype'][kk(0x8ca)][kk(0x8fb)](this),this[kk(0x2db)]=new al(),this[kk(0x694)]=new al();}[jm(0x445)](){this['matrix']=new al();}[jm(0x910)](){var kl=jm;this['pivot']=new a6['AB'](this[kl(0x440)],this,0x0,0x0);}[jm(0x8ca)](){this['reverseLocalOrder']=!0x1;}[jm(0x440)](){var km=jm;const bc=this[km(0x798)],bd=this[km(0x85f)][km(0x24e)];bd[0x6]=-(bc['_x']*bd[0x0]+bc['_y']*bd[0x3]),bd[0x7]=-(bc['_x']*bd[0x1]+bc['_y']*bd[0x4]),this[km(0x509)]++;}[jm(0x66b)](bc,bd=0x1){var kn=jm;const be=bc['x'],bf=bc['y'],bg=Math['sqrt'](be*be+bf*bf),bh=this[kn(0x85f)]['mat3'];bh[0x0]=be/bg,bh[0x1]=bf/bg,bh[0x2]=bd/bg,this['onChange']();}[jm(0x7c1)](bc,bd=0x1){var ko=jm;const be=bc['x'],bf=bc['y'],bg=Math[ko(0x258)](be*be+bf*bf),bh=this[ko(0x85f)]['mat3'];bh[0x3]=be/bg,bh[0x4]=bf/bg,bh[0x5]=bd/bg,this[ko(0x440)]();}[jm(0x5ce)](bc,bd){var kp=jm;const be=bc[kp(0x26b)];ar['x']=-bc[kp(0x1ce)]['x']*be[kp(0x706)][kp(0x260)],ar['y']=-bc[kp(0x1ce)]['y']*be['orig']['height'],ar[kp(0x260)]=be['orig'][kp(0x260)],ar[kp(0x307)]=be['orig'][kp(0x307)],this[kp(0x370)](ar,bd);}[jm(0x370)](bc,bd){var kq=jm;aq[0x0][kq(0x3b4)](bc['x'],bc['y']),aq[0x1][kq(0x3b4)](bc['x']+bc['width'],bc['y']),aq[0x2][kq(0x3b4)](bc['x']+bc[kq(0x260)],bc['y']+bc[kq(0x307)]),aq[0x3][kq(0x3b4)](bc['x'],bc['y']+bc[kq(0x307)]);let be=0x1,bf=0x2,bg=0x3;if(0x0===function(bp,bq,br,bs,bt){var kr=kq;const bu=bq['x']-bp['x'],bv=br['x']-bs['x'],bw=br['x']-bp['x'],bx=bq['y']-bp['y'],by=br['y']-bs['y'],bz=br['y']-bp['y'],bA=bu*by-bx*bv;if(Math[kr(0x76a)](bA)<1e-7)return bt['x']=bu,bt['y']=bx,0x0;const bB=(bw*by-bz*bv)/bA,bC=(bu*bz-bx*bw)/bA;return bC<0.000001||bC-0x1>-0.000001?-0x1:(bt['x']=bp['x']+bB*(bq['x']-bp['x']),bt['y']=bp['y']+bB*(bq['y']-bp['y']),0x1);}(bd[0x0],bd[0x2],bd[0x1],bd[0x3],ap))return;be=0x1,bf=0x3,bg=0x2;const bh=Math['sqrt']((bd[0x0]['x']-ap['x'])*(bd[0x0]['x']-ap['x'])+(bd[0x0]['y']-ap['y'])*(bd[0x0]['y']-ap['y'])),bi=Math[kq(0x258)]((bd[be]['x']-ap['x'])*(bd[be]['x']-ap['x'])+(bd[be]['y']-ap['y'])*(bd[be]['y']-ap['y'])),bj=Math[kq(0x258)]((bd[bf]['x']-ap['x'])*(bd[bf]['x']-ap['x'])+(bd[bf]['y']-ap['y'])*(bd[bf]['y']-ap['y'])),bk=Math[kq(0x258)]((bd[bg]['x']-ap['x'])*(bd[bg]['x']-ap['x'])+(bd[bg]['y']-ap['y'])*(bd[bg]['y']-ap['y'])),bl=(bh+bk)/bk,bm=(bi+bj)/bj,bn=(bi+bj)/bi;let bo=this[kq(0x85f)][kq(0x24e)];bo[0x0]=aq[0x0]['x']*bl,bo[0x1]=aq[0x0]['y']*bl,bo[0x2]=bl,bo[0x3]=aq[be]['x']*bm,bo[0x4]=aq[be]['y']*bm,bo[0x5]=bm,bo[0x6]=aq[bf]['x']*bn,bo[0x7]=aq[bf]['y']*bn,bo[0x8]=bn,this[kq(0x85f)][kq(0x8ac)](),bo=as[kq(0x24e)],bo[0x0]=bd[0x0]['x'],bo[0x1]=bd[0x0]['y'],bo[0x2]=0x1,bo[0x3]=bd[be]['x'],bo[0x4]=bd[be]['y'],bo[0x5]=0x1,bo[0x6]=bd[bf]['x'],bo[0x7]=bd[bf]['y'],bo[0x8]=0x1,this['matrix'][kq(0x3d9)](as,this[kq(0x85f)]),this[kq(0x509)]++;}[jm(0x5b4)](bc){var ks=jm;0x0!==this['_projID']?this[ks(0x433)]?this[ks(0x2db)][ks(0x418)](this[ks(0x85f)],bc):this[ks(0x2db)][ks(0x81f)](bc,this['matrix']):this[ks(0x2db)]['copyFrom'](bc);}['clear'](){var kt=jm;super[kt(0x515)](),this[kt(0x85f)][kt(0x6c0)](),this['pivot'][kt(0x3b4)](0x0,0x0);}}function av(){var ku=jm;return this['proj'][ku(0x404)]?this['transform'][ku(0x58c)]:this[ku(0x66a)]['world'];}class aw extends a7['W2']{constructor(){super(),this['proj']=new au(this['transform']);}[jm(0x858)](bc,bd,be,bf,bg=af[jm(0x7b0)]){var kv=jm;return bd&&(bc=bd[kv(0x866)](bc,be,bf)),bf||this['_recursivePostUpdateTransform'](),bg>=af[kv(0x52d)]?(bf||this['displayObjectUpdateTransform'](),this[kv(0x66a)][kv(0x404)]?this['transform'][kv(0x58c)]['applyInverse'](bc,be):this[kv(0x66a)]['world'][kv(0x4da)](bc,be)):(this[kv(0x2bc)]?be=this[kv(0x2bc)]['worldTransform'][kv(0x4da)](bc,be):(be['x']=bc['x'],be['y']=bc['y']),bg===af[kv(0x398)]?be:this['transform']['localTransform'][kv(0x4da)](be,be));}get[jm(0x58c)](){var kw=jm;return this[kw(0x66a)][kw(0x404)]?this['transform'][kw(0x58c)]:this['proj'][kw(0x694)];}}const ax=aw[jm(0x32e)][jm(0x858)];class ay extends a9['Kj']{static[jm(0x7ed)](){var kx=jm;this[kx(0x863)]=kx(0x50e);}static[jm(0x9e2)](){var ky=jm;this[ky(0x338)]=ky(0x2ad);}constructor(bc,bd,be,bf){var kz=jm;super(bc,bd,be,bf),ay[kz(0x32e)][kz(0x445)][kz(0x8fb)](this),this[kz(0x66a)]=new au(this[kz(0x70c)]);}['__init'](){var kA=jm;this[kA(0x7ec)]=null;}['calculateVertices'](){var kB=jm;if(this[kB(0x66a)][kB(0x4bb)])return this[kB(0x7ec)]=null,void super[kB(0x75a)]();const bc=this[kB(0x234)],bd=bc[kB(0x9ed)][0x0][kB(0x8c4)],be=this;if(bc['vertexDirtyId']===be[kB(0x5b1)]&&be[kB(0x9a9)]===be[kB(0x70c)]['_worldID'])return;be[kB(0x9a9)]=be[kB(0x70c)][kB(0x34f)],be['vertexData'][kB(0x4ae)]!==bd['length']&&(be[kB(0x4f7)]=new Float32Array(bd[kB(0x4ae)])),this[kB(0x7ec)]&&this['vertexData2d']['length']===0x3*bd[kB(0x4ae)]/0x2||(this['vertexData2d']=new Float32Array(0x3*bd[kB(0x4ae)]));const bf=this[kB(0x66a)][kB(0x694)]['mat3'],bg=this[kB(0x7ec)],bh=be['vertexData'];for(let bi=0x0;bi<bh[kB(0x4ae)]/0x2;bi++){const bj=bd[0x2*bi],bk=bd[0x2*bi+0x1],bl=bf[0x0]*bj+bf[0x3]*bk+bf[0x6],bm=bf[0x1]*bj+bf[0x4]*bk+bf[0x7],bn=bf[0x2]*bj+bf[0x5]*bk+bf[0x8];bg[0x3*bi]=bl,bg[0x3*bi+0x1]=bm,bg[0x3*bi+0x2]=bn,bh[0x2*bi]=bl/bn,bh[0x2*bi+0x1]=bm/bn;}be[kB(0x5b1)]=bc[kB(0x305)];}[jm(0x1c1)](bc){var kC=jm;const bd=this[kC(0x342)];bd['alpha']=this[kC(0x84f)],bd[kC(0x761)]&&bd[kC(0x761)](),bc['batch'][kC(0x340)](),function(be){var kD=kC;let bf,bg=be[0x0],bh=0x1;for(;bh<be[kD(0x4ae)];){const bi=be[bh],bj=be[bh+0x1];if(bh+=0x2,(kD(0x368)===bi||kD(0x9b9)===bi)&&null==bg)return;kD(0x959)===bi||kD(0x368)===bi?(bf=bg,bg=bj(bg)):kD(0x8fb)!==bi&&kD(0x9b9)!==bi||(bg=bj((...bk)=>bg[kD(0x8fb)](bf,...bk)),bf=void 0x0);}return bg;}([bd,'access',be=>be[kC(0x5f9)],kC(0x959),be=>be[kC(0x5b3)],kC(0x368),be=>be[kC(0x45e)]])&&(bd[kC(0x71a)][kC(0x45e)]=this[kC(0x58c)][kC(0x529)](!0x0)),bc['shader'][kC(0x3a7)](bd,!0x1),bc[kC(0x2d1)][kC(0x3b4)](this['state']),bc['geometry'][kC(0x3a7)](this[kC(0x234)],bd),bc[kC(0x234)][kC(0x6da)](this[kC(0x2bf)],this[kC(0x698)],this[kC(0x4fa)],this[kC(0x234)][kC(0x632)]);}[jm(0x858)](bc,bd,be,bf,bg=af[jm(0x7b0)]){var kE=jm;return ax[kE(0x8fb)](this,bc,bd,be,bf,bg);}get[jm(0x58c)](){var kF=jm;return this[kF(0x66a)][kF(0x404)]?this[kF(0x70c)][kF(0x58c)]:this['proj']['world'];}}ay['__initStatic'](),ay['__initStatic2']();class az extends ab['j']{constructor(bc){var kG=jm;super(bc),az[kG(0x32e)][kG(0x445)]['call'](this),this[kG(0x66a)]=new au(this[kG(0x70c)]),this['pluginName']=kG(0x6af);}[jm(0x445)](){var kH=jm;this[kH(0x7ec)]=null;}['_calculateBounds'](){var kI=jm;this[kI(0x36f)](),this[kI(0x2d7)][kI(0x267)](this[kI(0x253)]);}[jm(0x75a)](){var kJ=jm;const bc=this[kJ(0x3c2)];if(this['proj'][kJ(0x4bb)])return this[kJ(0x7ec)]=null,void super[kJ(0x75a)]();this[kJ(0x7ec)]||(this[kJ(0x7ec)]=new Float32Array(0xc));const bd=this[kJ(0x70c)][kJ(0x34f)],be=bc[kJ(0x9c5)];if(this['_transformID']===bd&&this[kJ(0x7ad)]===be)return;this[kJ(0x7ad)]!==be&&(this[kJ(0x1d4)]=bc[kJ(0x6be)]['uvsFloat32']),this['_transformID']=bd,this[kJ(0x7ad)]=be;const bf=this['proj']['world']['mat3'],bg=this['vertexData2d'],bh=this[kJ(0x4f7)],bi=bc[kJ(0x871)],bj=bc['orig'],bk=this['_anchor'];let bl,bm,bn,bo;bi?(bm=bi['x']-bk['_x']*bj['width'],bl=bm+bi[kJ(0x260)],bo=bi['y']-bk['_y']*bj[kJ(0x307)],bn=bo+bi[kJ(0x307)]):(bm=-bk['_x']*bj[kJ(0x260)],bl=bm+bj[kJ(0x260)],bo=-bk['_y']*bj[kJ(0x307)],bn=bo+bj['height']),bg[0x0]=bf[0x0]*bm+bf[0x3]*bo+bf[0x6],bg[0x1]=bf[0x1]*bm+bf[0x4]*bo+bf[0x7],bg[0x2]=bf[0x2]*bm+bf[0x5]*bo+bf[0x8],bg[0x3]=bf[0x0]*bl+bf[0x3]*bo+bf[0x6],bg[0x4]=bf[0x1]*bl+bf[0x4]*bo+bf[0x7],bg[0x5]=bf[0x2]*bl+bf[0x5]*bo+bf[0x8],bg[0x6]=bf[0x0]*bl+bf[0x3]*bn+bf[0x6],bg[0x7]=bf[0x1]*bl+bf[0x4]*bn+bf[0x7],bg[0x8]=bf[0x2]*bl+bf[0x5]*bn+bf[0x8],bg[0x9]=bf[0x0]*bm+bf[0x3]*bn+bf[0x6],bg[0xa]=bf[0x1]*bm+bf[0x4]*bn+bf[0x7],bg[0xb]=bf[0x2]*bm+bf[0x5]*bn+bf[0x8],bh[0x0]=bg[0x0]/bg[0x2],bh[0x1]=bg[0x1]/bg[0x2],bh[0x2]=bg[0x3]/bg[0x5],bh[0x3]=bg[0x4]/bg[0x5],bh[0x4]=bg[0x6]/bg[0x8],bh[0x5]=bg[0x7]/bg[0x8],bh[0x6]=bg[0x9]/bg[0xb],bh[0x7]=bg[0xa]/bg[0xb];}['calculateTrimmedVertices'](){var kK=jm;if(this[kK(0x66a)][kK(0x4bb)])return void super[kK(0x36f)]();const bc=this[kK(0x70c)][kK(0x34f)],bd=this[kK(0x3c2)][kK(0x9c5)],be=this;if(be[kK(0x253)]){if(be['_transformTrimmedID']===bc&&this['_textureTrimmedID']===bd)return;}else be[kK(0x253)]=new Float32Array(0x8);be[kK(0x6bf)]=bc,this[kK(0x5b7)]=bd;const bf=this[kK(0x3c2)],bg=be[kK(0x253)],bh=bf[kK(0x706)],bi=this[kK(0x89b)]?this[kK(0x59e)]:bh[kK(0x260)],bj=this[kK(0x89b)]?this['_height']:bh[kK(0x307)],bk=this['_anchor'],bl=this[kK(0x66a)][kK(0x694)]['mat3'],bm=-bk['_x']*bi,bn=bm+bi,bo=-bk['_y']*bj,bp=bo+bj;let bq=0x1/(bl[0x2]*bm+bl[0x5]*bo+bl[0x8]);bg[0x0]=bq*(bl[0x0]*bm+bl[0x3]*bo+bl[0x6]),bg[0x1]=bq*(bl[0x1]*bm+bl[0x4]*bo+bl[0x7]),bq=0x1/(bl[0x2]*bn+bl[0x5]*bo+bl[0x8]),bg[0x2]=bq*(bl[0x0]*bn+bl[0x3]*bo+bl[0x6]),bg[0x3]=bq*(bl[0x1]*bn+bl[0x4]*bo+bl[0x7]),bq=0x1/(bl[0x2]*bn+bl[0x5]*bp+bl[0x8]),bg[0x4]=bq*(bl[0x0]*bn+bl[0x3]*bp+bl[0x6]),bg[0x5]=bq*(bl[0x1]*bn+bl[0x4]*bp+bl[0x7]),bq=0x1/(bl[0x2]*bm+bl[0x5]*bp+bl[0x8]),bg[0x6]=bq*(bl[0x0]*bm+bl[0x3]*bp+bl[0x6]),bg[0x7]=bq*(bl[0x1]*bm+bl[0x4]*bp+bl[0x7]);}[jm(0x858)](bc,bd,be,bf,bg=af[jm(0x7b0)]){var kL=jm;return ax[kL(0x8fb)](this,bc,bd,be,bf,bg);}get[jm(0x58c)](){var kM=jm;return this[kM(0x66a)][kM(0x404)]?this['transform'][kM(0x58c)]:this['proj']['world'];}}const aA=new a6['wx']();class aB extends a8['o']{constructor(bc,bd,be){var kN=jm;super(bc,bd,be),this[kN(0x89b)]=new au(this[kN(0x444)]),this['tileProj']['reverseLocalOrder']=!0x0,this[kN(0x66a)]=new au(this[kN(0x70c)]),this[kN(0x8a6)]=kN(0x300),this[kN(0x5a3)]=!0x0;}get[jm(0x58c)](){var kO=jm;return this[kO(0x66a)][kO(0x404)]?this[kO(0x70c)][kO(0x58c)]:this[kO(0x66a)]['world'];}[jm(0x858)](bc,bd,be,bf,bg=af[jm(0x7b0)]){var kP=jm;return ax[kP(0x8fb)](this,bc,bd,be,bf,bg);}[jm(0x214)](bc){var kQ=jm;const bd=this[kQ(0x3c2)];bd&&bd['valid']&&(this[kQ(0x444)][kQ(0x916)](aA),this[kQ(0x17c)]['update'](),bc[kQ(0x7ac)][kQ(0x3aa)](bc[kQ(0x525)][this[kQ(0x8a6)]]),bc[kQ(0x525)][this[kQ(0x8a6)]][kQ(0x6ca)](this));}}function aC(){var kR=jm;this[kR(0x66a)]||(this[kR(0x66a)]=new au(this['transform']),this[kR(0x858)]=aw[kR(0x32e)][kR(0x858)],Object[kR(0x85d)](this,'worldTransform',{'get':av,'enumerable':!0x0,'configurable':!0x0}));}a7['W2'][jm(0x32e)][jm(0x8b9)]=aC,ab['j'][jm(0x32e)][jm(0x8b9)]=function(){var kS=jm;this['proj']||(this['calculateVertices']=az[kS(0x32e)][kS(0x75a)],this[kS(0x36f)]=az[kS(0x32e)][kS(0x36f)],this[kS(0x19c)]=az[kS(0x32e)][kS(0x19c)],this['pluginName']=kS(0x6af),aC[kS(0x8fb)](this));},a7['W2'][jm(0x32e)][jm(0x43c)]=function(){var kT=jm;this['convertTo2d']();for(let bc=0x0;bc<this[kT(0x53c)][kT(0x4ae)];bc++)this['children'][bc][kT(0x43c)]();},aa['AL'][jm(0x32e)]['convertTo2d']=aa['IE']['prototype'][jm(0x8b9)]=function(){var kU=jm;this[kU(0x66a)]||(this[kU(0x75a)]=ay['prototype'][kU(0x75a)],this[kU(0x1c1)]=ay[kU(0x32e)][kU(0x1c1)],kU(0x6af)!==this[kU(0x868)][kU(0x8a6)]&&(this[kU(0x868)]=new a9['rY'](this[kU(0x868)][kU(0x26b)],{'program':a3['Program'][kU(0x615)](ay[kU(0x863)],ay[kU(0x338)]),'pluginName':kU(0x6af)})),aC['call'](this));},a8['o'][jm(0x32e)]['convertTo2d']=function(){var kV=jm;this['proj']||(this[kV(0x89b)]=new au(this[kV(0x444)]),this[kV(0x89b)]['reverseLocalOrder']=!0x0,this['uvRespectAnchor']=!0x0,this['calculateTrimmedVertices']=az[kV(0x32e)][kV(0x36f)],this[kV(0x19c)]=az['prototype'][kV(0x19c)],this[kV(0x214)]=aB['prototype'][kV(0x214)],this[kV(0x8a6)]=kV(0x300),aC[kV(0x8fb)](this));};class aD extends ac['xv']{constructor(bc,bd,be){var kW=jm;super(bc,bd,be),aD[kW(0x32e)][kW(0x445)][kW(0x8fb)](this),this[kW(0x66a)]=new au(this[kW(0x70c)]),this['pluginName']=kW(0x6af);}[jm(0x445)](){var kX=jm;this[kX(0x7ec)]=null;}get[jm(0x58c)](){var kY=jm;return this['proj'][kY(0x404)]?this['transform'][kY(0x58c)]:this[kY(0x66a)][kY(0x694)];}}aD[jm(0x32e)][jm(0x75a)]=az[jm(0x32e)][jm(0x75a)],aD['prototype']['calculateTrimmedVertices']=az[jm(0x32e)][jm(0x36f)],aD[jm(0x32e)][jm(0x19c)]=az[jm(0x32e)]['_calculateBounds'];const aE=new al();class aF extends a3['Filter']{constructor(bc){var kZ=jm;super(kZ(0x7e2),kZ(0x574)),aF[kZ(0x32e)][kZ(0x445)]['call'](this),bc[kZ(0x286)]=!0x1,this[kZ(0x348)]=bc;}[jm(0x445)](){var l0=jm;this[l0(0x41f)]=new al();}[jm(0x6e8)](bc,bd,be,bf){var l1=jm;const bg=this[l1(0x348)],bh=this[l1(0x348)][l1(0x26b)];bh[l1(0x5e2)]&&(bh[l1(0x17c)]||(bh[l1(0x17c)]=new a3[(l1(0x337))](bh,0x0)),bh[l1(0x17c)][l1(0x761)](),this[l1(0x71a)][l1(0x389)]=bh['baseTexture']['alphaMode']?0x0:0x1,this[l1(0x71a)][l1(0x224)]=bg[l1(0x26b)],this[l1(0x71a)][l1(0x786)]=aF[l1(0x7e9)](bd,this[l1(0x41f)],bg)['prepend'](bh[l1(0x17c)][l1(0x2e2)]),this['uniforms']['alpha']=bg['worldAlpha'],this[l1(0x71a)][l1(0x2b3)]=bh['uvMatrix'][l1(0x819)],bc[l1(0x83a)](this,bd,be,bf));}static[jm(0x7e9)](bc,bd,be){var l2=jm;const bf=be[l2(0x66a)],bg=bc[l2(0x26f)],bh=bf&&!bf[l2(0x4bb)]?bf['world'][l2(0x6d1)](aE):aE['copyFrom'](be['transform']['worldTransform']),bi=be[l2(0x26b)][l2(0x706)];return bd[l2(0x3b4)](bc[l2(0x260)],0x0,0x0,bc[l2(0x307)],bg['x'],bg['y']),bh[l2(0x8ac)](),bd[l2(0x3d9)](bh,bd),bd[l2(0x1f8)](0x1/bi[l2(0x260)],0x1/bi['height'],be[l2(0x1ce)]['x'],be['anchor']['y']),bd;}}a3['MaskSystem']['prototype']['pushSpriteMask']=function(bc){var l3=jm;const {maskObject:bd}=bc,be=bc[l3(0x671)];let bf=this['alphaMaskPool'][this['alphaMaskIndex']];bf||(bf=this[l3(0x564)][this[l3(0x7f2)]]=[new aF(bd)]),bf[0x0][l3(0x2ce)]=this[l3(0x311)][l3(0x2ce)],bf[0x0][l3(0x348)]=bd;const bg=be['filterArea'];be[l3(0x9df)]=bd[l3(0x578)](!0x0),this[l3(0x311)]['filter'][l3(0x3ef)](be,bf),be[l3(0x9df)]=bg,this['alphaMaskIndex']++;},a3[jm(0x651)][jm(0x7a4)](jm(0x300),ao);class aG extends a6['E9']{constructor(bc,bd,be){super(bc,bd),this['z']=be;}[jm(0x3b4)](bc,bd,be){return this['x']=bc||0x0,this['y']=void 0x0===bd?this['x']:bd||0x0,this['z']=void 0x0===bd?this['x']:be||0x0,this;}[jm(0x390)](bc){var l4=jm;return this[l4(0x3b4)](bc['x'],bc['y'],bc['z']||0x0),this;}['copyTo'](bc){var l5=jm;return bc[l5(0x3b4)](this['x'],this['y'],this['z']),bc;}}class aH extends a6['AB']{constructor(...bc){var l6=jm;super(...bc),aH[l6(0x32e)]['__init'][l6(0x8fb)](this);}[jm(0x445)](){this['_z']=0x0;}get['z'](){return this['_z'];}set['z'](bc){var l7=jm;this['_z']!==bc&&(this['_z']=bc,this['cb'][l7(0x8fb)](this[l7(0x68f)]));}[jm(0x3b4)](bc,bd,be){var l8=jm;const bf=bc||0x0,bg=void 0x0===bd?bf:bd||0x0,bh=void 0x0===bd?bf:be||0x0;return this['_x']===bf&&this['_y']===bg&&this['_z']===bh||(this['_x']=bf,this['_y']=bg,this['_z']=bh,this['cb'][l8(0x8fb)](this[l8(0x68f)])),this;}[jm(0x390)](bc){var l9=jm;return this[l9(0x3b4)](bc['x'],bc['y'],bc['z']||0x0),this;}[jm(0x250)](bc){var la=jm;return bc[la(0x3b4)](this['_x'],this['_y'],this['_z']),bc;}}class aI{constructor(bc,bd,be){var lb=jm;aI[lb(0x32e)][lb(0x445)][lb(0x8fb)](this),aI['prototype'][lb(0x910)][lb(0x8fb)](this),aI['prototype'][lb(0x8ca)]['call'](this),this['_x']=bc||0x0,this['_y']=bd||0x0,this['_z']=be||0x0,this['quaternion']=new Float64Array(0x4),this[lb(0x800)][0x3]=0x1,this['update']();}['__init'](){var lc=jm;this[lc(0x9af)]=-0x1;}[jm(0x910)](){this['_quatDirtyId']=0x0;}['__init3'](){var ld=jm;this[ld(0x20a)]=0x1;}get['x'](){return this['_x'];}set['x'](bc){var le=jm;this['_x']!==bc&&(this['_x']=bc,this[le(0x553)]++);}get['y'](){return this['_y'];}set['y'](bc){var lf=jm;this['_y']!==bc&&(this['_y']=bc,this[lf(0x553)]++);}get['z'](){return this['_z'];}set['z'](bc){var lg=jm;this['_z']!==bc&&(this['_z']=bc,this[lg(0x553)]++);}get[jm(0x3ab)](){return this['_x'];}set[jm(0x3ab)](bc){var lh=jm;this['_x']!==bc&&(this['_x']=bc,this[lh(0x553)]++);}get[jm(0x3d0)](){return this['_y'];}set[jm(0x3d0)](bc){this['_y']!==bc&&(this['_y']=bc,this['_quatDirtyId']++);}get[jm(0x7e4)](){return this['_z'];}set[jm(0x7e4)](bc){var li=jm;this['_z']!==bc&&(this['_z']=bc,this[li(0x553)]++);}['set'](bc,bd,be){var lj=jm;const bf=bc||0x0,bg=bd||0x0,bh=be||0x0;this['_x']===bf&&this['_y']===bg&&this['_z']===bh||(this['_x']=bf,this['_y']=bg,this['_z']=bh,this[lj(0x553)]++);}[jm(0x390)](bc){const bd=bc['x'],be=bc['y'],bf=bc['z'];return this['_x']===bd&&this['_y']===be&&this['_z']===bf||(this['_x']=bd,this['_y']=be,this['_z']=bf,this['_quatDirtyId']++),this;}[jm(0x250)](bc){var lk=jm;return bc[lk(0x3b4)](this['_x'],this['_y'],this['_z']),bc;}[jm(0x85b)](bc){return this['_x']===bc['x']&&this['_y']===bc['y']&&this['_z']===bc['z'];}[jm(0x3d6)](){return new aI(this['_x'],this['_y'],this['_z']);}[jm(0x761)](){var ll=jm;if(this[ll(0x9af)]===this['_quatDirtyId'])return!0x1;this[ll(0x9af)]=this[ll(0x553)];const bc=Math[ll(0x924)](this['_x']/0x2),bd=Math[ll(0x924)](this['_y']/0x2),be=Math[ll(0x924)](this['_z']/0x2),bf=this[ll(0x20a)],bg=bf*Math[ll(0x566)](this['_x']/0x2),bh=bf*Math[ll(0x566)](this['_y']/0x2),bi=bf*Math['sin'](this['_z']/0x2),bj=this[ll(0x800)];return bj[0x0]=bg*bd*be+bc*bh*bi,bj[0x1]=bc*bh*be-bg*bd*bi,bj[0x2]=bc*bd*bi+bg*bh*be,bj[0x3]=bc*bd*be-bg*bh*bi,!0x0;}}class aJ{constructor(bc,bd,be,bf,bg){var lm=jm;this['cb']=bc,this[lm(0x68f)]=bd,aJ[lm(0x32e)][lm(0x445)]['call'](this),aJ[lm(0x32e)][lm(0x910)][lm(0x8fb)](this),aJ[lm(0x32e)][lm(0x8ca)][lm(0x8fb)](this),this['_x']=be||0x0,this['_y']=bf||0x0,this['_z']=bg||0x0,this['quaternion']=new Float64Array(0x4),this['quaternion'][0x3]=0x1,this[lm(0x761)]();}['__init'](){var ln=jm;this[ln(0x9af)]=-0x1;}[jm(0x910)](){var lo=jm;this[lo(0x553)]=0x0;}[jm(0x8ca)](){var lp=jm;this[lp(0x20a)]=0x1;}get['x'](){return this['_x'];}set['x'](bc){var lq=jm;this['_x']!==bc&&(this['_x']=bc,this['_quatDirtyId']++,this['cb'][lq(0x8fb)](this[lq(0x68f)]));}get['y'](){return this['_y'];}set['y'](bc){var lr=jm;this['_y']!==bc&&(this['_y']=bc,this[lr(0x553)]++,this['cb']['call'](this[lr(0x68f)]));}get['z'](){return this['_z'];}set['z'](bc){var ls=jm;this['_z']!==bc&&(this['_z']=bc,this[ls(0x553)]++,this['cb'][ls(0x8fb)](this['scope']));}get['pitch'](){return this['_x'];}set[jm(0x3ab)](bc){var lt=jm;this['_x']!==bc&&(this['_x']=bc,this[lt(0x553)]++,this['cb']['call'](this[lt(0x68f)]));}get[jm(0x3d0)](){return this['_y'];}set[jm(0x3d0)](bc){var lu=jm;this['_y']!==bc&&(this['_y']=bc,this[lu(0x553)]++,this['cb'][lu(0x8fb)](this[lu(0x68f)]));}get[jm(0x7e4)](){return this['_z'];}set[jm(0x7e4)](bc){var lv=jm;this['_z']!==bc&&(this['_z']=bc,this[lv(0x553)]++,this['cb'][lv(0x8fb)](this[lv(0x68f)]));}[jm(0x3b4)](bc,bd,be){var lw=jm;const bf=bc||0x0,bg=bd||0x0,bh=be||0x0;return this['_x']===bf&&this['_y']===bg&&this['_z']===bh||(this['_x']=bf,this['_y']=bg,this['_z']=bh,this[lw(0x553)]++,this['cb']['call'](this['scope'])),this;}[jm(0x390)](bc){var lx=jm;const bd=bc['x'],be=bc['y'],bf=bc['z'];return this['_x']===bd&&this['_y']===be&&this['_z']===bf||(this['_x']=bd,this['_y']=be,this['_z']=bf,this[lx(0x553)]++,this['cb'][lx(0x8fb)](this['scope'])),this;}[jm(0x250)](bc){var ly=jm;return bc[ly(0x3b4)](this['_x'],this['_y'],this['_z']),bc;}[jm(0x85b)](bc){return this['_x']===bc['x']&&this['_y']===bc['y']&&this['_z']===bc['z'];}[jm(0x3d6)](){return new aI(this['_x'],this['_y'],this['_z']);}[jm(0x761)](){var lz=jm;if(this['_quatUpdateId']===this[lz(0x553)])return!0x1;this['_quatUpdateId']=this[lz(0x553)];const bc=Math[lz(0x924)](this['_x']/0x2),bd=Math[lz(0x924)](this['_y']/0x2),be=Math[lz(0x924)](this['_z']/0x2),bf=this[lz(0x20a)],bg=bf*Math[lz(0x566)](this['_x']/0x2),bh=bf*Math[lz(0x566)](this['_y']/0x2),bi=bf*Math[lz(0x566)](this['_z']/0x2),bj=this['quaternion'];return bj[0x0]=bg*bd*be+bc*bh*bi,bj[0x1]=bc*bh*be-bg*bd*bi,bj[0x2]=bc*bd*bi+bg*bh*be,bj[0x3]=bc*bd*be-bg*bh*bi,!0x0;}}const aK=[0x1,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,0x1];class aL{static['__initStatic'](){var lA=jm;this[lA(0x371)]=new aL();}static['__initStatic2'](){var lB=jm;this[lB(0x62f)]=new aL();}[jm(0x445)](){this['floatArray']=null;}[jm(0x910)](){this['_dirtyId']=0x0;}[jm(0x8ca)](){var lC=jm;this[lC(0x9ff)]=-0x1;}['__init4'](){var lD=jm;this[lD(0xa05)]=null;}[jm(0x166)](){this['cacheInverse']=!0x1;}constructor(bc){var lE=jm;aL[lE(0x32e)][lE(0x445)][lE(0x8fb)](this),aL['prototype'][lE(0x910)][lE(0x8fb)](this),aL['prototype'][lE(0x8ca)][lE(0x8fb)](this),aL['prototype']['__init4'][lE(0x8fb)](this),aL[lE(0x32e)]['__init5'][lE(0x8fb)](this),this[lE(0x73c)]=new Float64Array(bc||aK);}get['a'](){var lF=jm;return this[lF(0x73c)][0x0]/this[lF(0x73c)][0xf];}set['a'](bc){var lG=jm;this[lG(0x73c)][0x0]=bc*this[lG(0x73c)][0xf];}get['b'](){var lH=jm;return this[lH(0x73c)][0x1]/this['mat4'][0xf];}set['b'](bc){var lI=jm;this[lI(0x73c)][0x1]=bc*this[lI(0x73c)][0xf];}get['c'](){var lJ=jm;return this[lJ(0x73c)][0x4]/this[lJ(0x73c)][0xf];}set['c'](bc){var lK=jm;this['mat4'][0x4]=bc*this[lK(0x73c)][0xf];}get['d'](){var lL=jm;return this[lL(0x73c)][0x5]/this[lL(0x73c)][0xf];}set['d'](bc){var lM=jm;this[lM(0x73c)][0x5]=bc*this[lM(0x73c)][0xf];}get['tx'](){var lN=jm;return this[lN(0x73c)][0xc]/this[lN(0x73c)][0xf];}set['tx'](bc){var lO=jm;this[lO(0x73c)][0xc]=bc*this[lO(0x73c)][0xf];}get['ty'](){var lP=jm;return this[lP(0x73c)][0xd]/this['mat4'][0xf];}set['ty'](bc){this['mat4'][0xd]=bc*this['mat4'][0xf];}['set'](bc,bd,be,bf,bg,bh){const bi=this['mat4'];return bi[0x0]=bc,bi[0x1]=bd,bi[0x2]=0x0,bi[0x3]=0x0,bi[0x4]=be,bi[0x5]=bf,bi[0x6]=0x0,bi[0x7]=0x0,bi[0x8]=0x0,bi[0x9]=0x0,bi[0xa]=0x1,bi[0xb]=0x0,bi[0xc]=bg,bi[0xd]=bh,bi[0xe]=0x0,bi[0xf]=0x1,this;}[jm(0x529)](bc,bd){var lQ=jm;this[lQ(0x189)]||(this[lQ(0x189)]=new Float32Array(0x9));const be=bd||this[lQ(0x189)],bf=this[lQ(0x73c)];return bc?(be[0x0]=bf[0x0],be[0x1]=bf[0x1],be[0x2]=bf[0x3],be[0x3]=bf[0x4],be[0x4]=bf[0x5],be[0x5]=bf[0x7],be[0x6]=bf[0xc],be[0x7]=bf[0xd],be[0x8]=bf[0xf]):(be[0x0]=bf[0x0],be[0x1]=bf[0x4],be[0x2]=bf[0xc],be[0x3]=bf[0x2],be[0x4]=bf[0x6],be[0x5]=bf[0xd],be[0x6]=bf[0x3],be[0x7]=bf[0x7],be[0x8]=bf[0xf]),be;}[jm(0x1d2)](bc,bd,be){var lR=jm;const bf=this[lR(0x73c)];bf[0x0]=0x1,bf[0x1]=0x0,bf[0x2]=0x0,bf[0x3]=0x0,bf[0x4]=0x0,bf[0x5]=0x1,bf[0x6]=0x0,bf[0x7]=0x0,bf[0x8]=0x0,bf[0x9]=0x0,bf[0xa]=0x1,bf[0xb]=0x0,bf[0xc]=bc,bf[0xd]=bd,bf[0xe]=be,bf[0xf]=0x1;}['setToRotationTranslationScale'](bc,bd,be,bf,bg,bh,bi){var lS=jm;const bj=this[lS(0x73c)],bk=bc[0x0],bl=bc[0x1],bm=bc[0x2],bn=bc[0x3],bo=bk+bk,bp=bl+bl,bq=bm+bm,br=bk*bo,bs=bk*bp,bt=bk*bq,bu=bl*bp,bv=bl*bq,bw=bm*bq,bx=bn*bo,by=bn*bp,bz=bn*bq;return bj[0x0]=(0x1-(bu+bw))*bg,bj[0x1]=(bs+bz)*bg,bj[0x2]=(bt-by)*bg,bj[0x3]=0x0,bj[0x4]=(bs-bz)*bh,bj[0x5]=(0x1-(br+bw))*bh,bj[0x6]=(bv+bx)*bh,bj[0x7]=0x0,bj[0x8]=(bt+by)*bi,bj[0x9]=(bv-bx)*bi,bj[0xa]=(0x1-(br+bu))*bi,bj[0xb]=0x0,bj[0xc]=bd,bj[0xd]=be,bj[0xe]=bf,bj[0xf]=0x1,bj;}['apply'](bc,bd){bd=bd||new aG();const be=this['mat4'],bf=bc['x'],bg=bc['y'],bh=bc['z']||0x0,bi=0x1/(be[0x3]*bf+be[0x7]*bg+be[0xb]*bh+be[0xf]);return bd['x']=bi*(be[0x0]*bf+be[0x4]*bg+be[0x8]*bh+be[0xc]),bd['y']=bi*(be[0x1]*bf+be[0x5]*bg+be[0x9]*bh+be[0xd]),bd['z']=bi*(be[0x2]*bf+be[0x6]*bg+be[0xa]*bh+be[0xe]),bd;}['translate'](bc,bd,be){var lT=jm;const bf=this[lT(0x73c)];return bf[0xc]=bf[0x0]*bc+bf[0x4]*bd+bf[0x8]*be+bf[0xc],bf[0xd]=bf[0x1]*bc+bf[0x5]*bd+bf[0x9]*be+bf[0xd],bf[0xe]=bf[0x2]*bc+bf[0x6]*bd+bf[0xa]*be+bf[0xe],bf[0xf]=bf[0x3]*bc+bf[0x7]*bd+bf[0xb]*be+bf[0xf],this;}[jm(0x93f)](bc,bd,be){var lU=jm;const bf=this[lU(0x73c)];return bf[0x0]*=bc,bf[0x1]*=bc,bf[0x2]*=bc,bf[0x3]*=bc,bf[0x4]*=bd,bf[0x5]*=bd,bf[0x6]*=bd,bf[0x7]*=bd,void 0x0!==be&&(bf[0x8]*=be,bf[0x9]*=be,bf[0xa]*=be,bf[0xb]*=be),this;}[jm(0x1f8)](bc,bd,be,bf,bg,bh){var lV=jm;const bi=this[lV(0x73c)];bi[0x0]=bc*bi[0x0]+bf*bi[0x3],bi[0x1]=bd*bi[0x1]+bg*bi[0x3],bi[0x2]=be*bi[0x2]+bh*bi[0x3],bi[0x4]=bc*bi[0x4]+bf*bi[0x7],bi[0x5]=bd*bi[0x5]+bg*bi[0x7],bi[0x6]=be*bi[0x6]+bh*bi[0x7],bi[0x8]=bc*bi[0x8]+bf*bi[0xb],bi[0x9]=bd*bi[0x9]+bg*bi[0xb],bi[0xa]=be*bi[0xa]+bh*bi[0xb],bi[0xc]=bc*bi[0xc]+bf*bi[0xf],bi[0xd]=bd*bi[0xd]+bg*bi[0xf],bi[0xe]=be*bi[0xe]+bh*bi[0xf];}['applyInverse'](bc,bd){var lW=jm;bd=bd||new aG(),this[lW(0xa05)]||(this[lW(0xa05)]=new Float64Array(0x10));const be=this[lW(0xa05)],bf=this[lW(0x73c)],bg=bc['x'],bh=bc['y'];let bi=bc['z']||0x0;this['cacheInverse']&&this[lW(0x9ff)]===this[lW(0x51a)]||(this[lW(0x9ff)]=this[lW(0x51a)],aL[lW(0x6ab)](be,bf));const bj=0x1/(be[0x3]*bg+be[0x7]*bh+be[0xb]*bi+be[0xf]),bk=bj*(be[0x0]*bg+be[0x4]*bh+be[0x8]*bi+be[0xc]),bl=bj*(be[0x1]*bg+be[0x5]*bh+be[0x9]*bi+be[0xd]),bm=bj*(be[0x2]*bg+be[0x6]*bh+be[0xa]*bi+be[0xe]);bi+=0x1;const bn=0x1/(be[0x3]*bg+be[0x7]*bh+be[0xb]*bi+be[0xf]),bo=bn*(be[0x0]*bg+be[0x4]*bh+be[0x8]*bi+be[0xc]),bp=bn*(be[0x1]*bg+be[0x5]*bh+be[0x9]*bi+be[0xd]),bq=bn*(be[0x2]*bg+be[0x6]*bh+be[0xa]*bi+be[0xe]);Math[lW(0x76a)](bm-bq)<1e-10&&bd[lW(0x3b4)](NaN,NaN,0x0);const br=(0x0-bm)/(bq-bm);return bd[lW(0x3b4)]((bo-bk)*br+bk,(bp-bl)*br+bl,0x0),bd;}[jm(0x8ac)](){var lX=jm;return aL[lX(0x6ab)](this[lX(0x73c)],this[lX(0x73c)]),this;}[jm(0x9bd)](bc){var lY=jm;this[lY(0xa05)]||(this[lY(0xa05)]=new Float64Array(0x10));const bd=this['_mat4inv'],be=this[lY(0x73c)];this['cacheInverse']&&this['_updateId']===this['_dirtyId']||(this[lY(0x9ff)]=this[lY(0x51a)],aL[lY(0x6ab)](bd,be)),bc[lY(0x73c)][lY(0x3b4)](bd);}['identity'](){var lZ=jm;const bc=this[lZ(0x73c)];return bc[0x0]=0x1,bc[0x1]=0x0,bc[0x2]=0x0,bc[0x3]=0x0,bc[0x4]=0x0,bc[0x5]=0x1,bc[0x6]=0x0,bc[0x7]=0x0,bc[0x8]=0x0,bc[0x9]=0x0,bc[0xa]=0x1,bc[0xb]=0x0,bc[0xc]=0x0,bc[0xd]=0x0,bc[0xe]=0x0,bc[0xf]=0x1,this;}['clone'](){var m0=jm;return new aL(this[m0(0x73c)]);}['copyTo3d'](bc){var m1=jm;const bd=this[m1(0x73c)],be=bc[m1(0x73c)];return be[0x0]=bd[0x0],be[0x1]=bd[0x1],be[0x2]=bd[0x2],be[0x3]=bd[0x3],be[0x4]=bd[0x4],be[0x5]=bd[0x5],be[0x6]=bd[0x6],be[0x7]=bd[0x7],be[0x8]=bd[0x8],bc;}[jm(0x21b)](bc){var m2=jm;const bd=this['mat4'],be=bc[m2(0x24e)];return be[0x0]=bd[0x0],be[0x1]=bd[0x1],be[0x2]=bd[0x3],be[0x3]=bd[0x4],be[0x4]=bd[0x5],be[0x5]=bd[0x7],be[0x6]=bd[0xc],be[0x7]=bd[0xd],be[0x8]=bd[0xf],bc;}[jm(0x6d1)](bc){var m3=jm;return bc instanceof al?this[m3(0x21b)](bc):this[m3(0x201)](bc);}[jm(0x250)](bc,bd,be){var m4=jm;const bf=this[m4(0x73c)],bg=0x1/bf[0xf],bh=bf[0xc]*bg,bi=bf[0xd]*bg;if(bc['a']=(bf[0x0]-bf[0x3]*bh)*bg,bc['b']=(bf[0x1]-bf[0x3]*bi)*bg,bc['c']=(bf[0x4]-bf[0x7]*bh)*bg,bc['d']=(bf[0x5]-bf[0x7]*bi)*bg,bc['tx']=bh,bc['ty']=bi,bd>=0x2){let bj=bc['a']*bc['d']-bc['b']*bc['c'];be||(bj=Math[m4(0x76a)](bj)),bd===ag[m4(0x1b5)]?(bj=bj>0x0?0x1:-0x1,bc['a']=bj,bc['b']=0x0,bc['c']=0x0,bc['d']=bj):bd===ag[m4(0x789)]?(bj/=Math[m4(0x258)](bc['b']*bc['b']+bc['d']*bc['d']),bc['c']=0x0,bc['d']=bj):bd===ag[m4(0x818)]&&(bj/=Math[m4(0x258)](bc['a']*bc['a']+bc['c']*bc['c']),bc['a']=bj,bc['c']=0x0);}return bc;}[jm(0x390)](bc){var m5=jm;const bd=this['mat4'];return bd[0x0]=bc['a'],bd[0x1]=bc['b'],bd[0x2]=0x0,bd[0x3]=0x0,bd[0x4]=bc['c'],bd[0x5]=bc['d'],bd[0x6]=0x0,bd[0x7]=0x0,bd[0x8]=0x0,bd[0x9]=0x0,bd[0xa]=0x1,bd[0xb]=0x0,bd[0xc]=bc['tx'],bd[0xd]=bc['ty'],bd[0xe]=0x0,bd[0xf]=0x1,this[m5(0x51a)]++,this;}[jm(0x81f)](bc,bd){var m6=jm;const be=this[m6(0x73c)],bf=bd[m6(0x73c)],bg=bc['a'],bh=bc['b'],bi=bc['c'],bj=bc['d'],bk=bc['tx'],bl=bc['ty'];let bm=bf[0x0],bn=bf[0x1],bo=bf[0x2],bp=bf[0x3];return be[0x0]=bm*bg+bn*bi+bp*bk,be[0x1]=bm*bh+bn*bj+bp*bl,be[0x2]=bo,be[0x3]=bp,bm=bf[0x4],bn=bf[0x5],bo=bf[0x6],bp=bf[0x7],be[0x4]=bm*bg+bn*bi+bp*bk,be[0x5]=bm*bh+bn*bj+bp*bl,be[0x6]=bo,be[0x7]=bp,bm=bf[0x8],bn=bf[0x9],bo=bf[0xa],bp=bf[0xb],be[0x8]=bm*bg+bn*bi+bp*bk,be[0x9]=bm*bh+bn*bj+bp*bl,be[0xa]=bo,be[0xb]=bp,bm=bf[0xc],bn=bf[0xd],bo=bf[0xe],bp=bf[0xf],be[0xc]=bm*bg+bn*bi+bp*bk,be[0xd]=bm*bh+bn*bj+bp*bl,be[0xe]=bo,be[0xf]=bp,this['_dirtyId']++,this;}['setToMultLegacy2'](bc,bd){var m7=jm;const be=this['mat4'],bf=bc[m7(0x73c)],bg=bf[0x0],bh=bf[0x1],bi=bf[0x2],bj=bf[0x3],bk=bf[0x4],bl=bf[0x5],bm=bf[0x6],bn=bf[0x7],bo=bd['a'],bp=bd['b'],bq=bd['c'],br=bd['d'],bs=bd['tx'],bt=bd['ty'];return be[0x0]=bo*bg+bp*bk,be[0x1]=bo*bh+bp*bl,be[0x2]=bo*bi+bp*bm,be[0x3]=bo*bj+bp*bn,be[0x4]=bq*bg+br*bk,be[0x5]=bq*bh+br*bl,be[0x6]=bq*bi+br*bm,be[0x7]=bq*bj+br*bn,be[0x8]=bf[0x8],be[0x9]=bf[0x9],be[0xa]=bf[0xa],be[0xb]=bf[0xb],be[0xc]=bs*bg+bt*bk+bf[0xc],be[0xd]=bs*bh+bt*bl+bf[0xd],be[0xe]=bs*bi+bt*bm+bf[0xe],be[0xf]=bs*bj+bt*bn+bf[0xf],this[m7(0x51a)]++,this;}[jm(0x3d9)](bc,bd){var m8=jm;return aL[m8(0x5f7)](this[m8(0x73c)],bc[m8(0x73c)],bd[m8(0x73c)]),this[m8(0x51a)]++,this;}[jm(0x2bd)](bc){var m9=jm;bc['mat4']?this[m9(0x3d9)](bc,this):this[m9(0x81f)](bc,this);}static[jm(0x6ab)](bc,bd){const be=bd[0x0],bf=bd[0x1],bg=bd[0x2],bh=bd[0x3],bi=bd[0x4],bj=bd[0x5],bk=bd[0x6],bl=bd[0x7],bm=bd[0x8],bn=bd[0x9],bo=bd[0xa],bp=bd[0xb],bq=bd[0xc],br=bd[0xd],bs=bd[0xe],bt=bd[0xf],bu=be*bj-bf*bi,bv=be*bk-bg*bi,bw=be*bl-bh*bi,bx=bf*bk-bg*bj,by=bf*bl-bh*bj,bz=bg*bl-bh*bk,bA=bm*br-bn*bq,bB=bm*bs-bo*bq,bC=bm*bt-bp*bq,bD=bn*bs-bo*br,bE=bn*bt-bp*br,bF=bo*bt-bp*bs;let bG=bu*bF-bv*bE+bw*bD+bx*bC-by*bB+bz*bA;return bG?(bG=0x1/bG,bc[0x0]=(bj*bF-bk*bE+bl*bD)*bG,bc[0x1]=(bg*bE-bf*bF-bh*bD)*bG,bc[0x2]=(br*bz-bs*by+bt*bx)*bG,bc[0x3]=(bo*by-bn*bz-bp*bx)*bG,bc[0x4]=(bk*bC-bi*bF-bl*bB)*bG,bc[0x5]=(be*bF-bg*bC+bh*bB)*bG,bc[0x6]=(bs*bw-bq*bz-bt*bv)*bG,bc[0x7]=(bm*bz-bo*bw+bp*bv)*bG,bc[0x8]=(bi*bE-bj*bC+bl*bA)*bG,bc[0x9]=(bf*bC-be*bE-bh*bA)*bG,bc[0xa]=(bq*by-br*bw+bt*bu)*bG,bc[0xb]=(bn*bw-bm*by-bp*bu)*bG,bc[0xc]=(bj*bB-bi*bD-bk*bA)*bG,bc[0xd]=(be*bD-bf*bB+bg*bA)*bG,bc[0xe]=(br*bv-bq*bx-bs*bu)*bG,bc[0xf]=(bm*bx-bn*bv+bo*bu)*bG,bc):null;}static[jm(0x5f7)](bc,bd,be){const bf=bd[0x0],bg=bd[0x1],bh=bd[0x2],bi=bd[0x3],bj=bd[0x4],bk=bd[0x5],bl=bd[0x6],bm=bd[0x7],bn=bd[0x8],bo=bd[0x9],bp=bd[0xa],bq=bd[0xb],br=bd[0xc],bs=bd[0xd],bt=bd[0xe],bu=bd[0xf];let bv=be[0x0],bw=be[0x1],bx=be[0x2],by=be[0x3];return bc[0x0]=bv*bf+bw*bj+bx*bn+by*br,bc[0x1]=bv*bg+bw*bk+bx*bo+by*bs,bc[0x2]=bv*bh+bw*bl+bx*bp+by*bt,bc[0x3]=bv*bi+bw*bm+bx*bq+by*bu,bv=be[0x4],bw=be[0x5],bx=be[0x6],by=be[0x7],bc[0x4]=bv*bf+bw*bj+bx*bn+by*br,bc[0x5]=bv*bg+bw*bk+bx*bo+by*bs,bc[0x6]=bv*bh+bw*bl+bx*bp+by*bt,bc[0x7]=bv*bi+bw*bm+bx*bq+by*bu,bv=be[0x8],bw=be[0x9],bx=be[0xa],by=be[0xb],bc[0x8]=bv*bf+bw*bj+bx*bn+by*br,bc[0x9]=bv*bg+bw*bk+bx*bo+by*bs,bc[0xa]=bv*bh+bw*bl+bx*bp+by*bt,bc[0xb]=bv*bi+bw*bm+bx*bq+by*bu,bv=be[0xc],bw=be[0xd],bx=be[0xe],by=be[0xf],bc[0xc]=bv*bf+bw*bj+bx*bn+by*br,bc[0xd]=bv*bg+bw*bk+bx*bo+by*bs,bc[0xe]=bv*bh+bw*bl+bx*bp+by*bt,bc[0xf]=bv*bi+bw*bm+bx*bq+by*bu,bc;}}aL[jm(0x7ed)](),aL[jm(0x9e2)]();const aM=new aL();class aN extends ai{constructor(bc,bd){var ma=jm;super(bc,bd),aN[ma(0x32e)][ma(0x445)][ma(0x8fb)](this),aN['prototype'][ma(0x910)][ma(0x8fb)](this),aN[ma(0x32e)][ma(0x8ca)]['call'](this),aN[ma(0x32e)][ma(0x95d)][ma(0x8fb)](this),aN['prototype']['__init5'][ma(0x8fb)](this),aN[ma(0x32e)][ma(0x4de)]['call'](this),this[ma(0x2db)]=new aL(),this[ma(0x694)]=new aL(),this[ma(0x2db)][ma(0x5f4)]=!0x0,this[ma(0x694)][ma(0x5f4)]=!0x0,this[ma(0x679)]['_z']=0x0,this[ma(0x93f)]['_z']=0x1,this[ma(0x798)]['_z']=0x0;}[jm(0x445)](){var mb=jm;this[mb(0x9f4)]=null;}['__init2'](){this['_cameraMode']=!0x1;}get[jm(0x668)](){var mc=jm;return this[mc(0x96e)];}set[jm(0x668)](bc){var md=jm;this[md(0x96e)]!==bc&&(this['_cameraMode']=bc,this[md(0x656)][md(0x20a)]=this[md(0x96e)]?-0x1:0x1,this[md(0x656)][md(0x553)]++,bc&&(this[md(0x9f4)]=new aL()));}['__init3'](){this['position']=new aH(this['onChange'],this,0x0,0x0);}[jm(0x95d)](){var me=jm;this[me(0x93f)]=new aH(this[me(0x440)],this,0x1,0x1);}[jm(0x166)](){this['euler']=new aJ(this['onChange'],this,0x0,0x0,0x0);}['__init6'](){var mf=jm;this[mf(0x798)]=new aH(this[mf(0x440)],this,0x0,0x0);}[jm(0x440)](){var mg=jm;this[mg(0x509)]++;}[jm(0x515)](){var mh=jm;this[mh(0x9f4)]&&this[mh(0x9f4)]['identity'](),this[mh(0x679)][mh(0x3b4)](0x0,0x0,0x0),this['scale'][mh(0x3b4)](0x1,0x1,0x1),this['euler'][mh(0x3b4)](0x0,0x0,0x0),this[mh(0x798)][mh(0x3b4)](0x0,0x0,0x0),super[mh(0x515)]();}[jm(0x5b4)](bc){var mi=jm;if(0x0===this[mi(0x509)])return void this[mi(0x2db)]['copyFrom'](bc);const bd=this[mi(0x2db)],be=this[mi(0x656)],bf=this[mi(0x679)],bg=this['scale'],bh=this[mi(0x798)];if(be[mi(0x761)](),!this[mi(0x668)])return bd[mi(0x577)](be['quaternion'],bf['_x'],bf['_y'],bf['_z'],bg['_x'],bg['_y'],bg['_z']),bd[mi(0x15e)](-bh['_x'],-bh['_y'],-bh['_z']),void bd[mi(0x81f)](bc,bd);bd[mi(0x81f)](bc,this[mi(0x9f4)]),bd[mi(0x15e)](bh['_x'],bh['_y'],bh['_z']),bd[mi(0x93f)](0x1/bg['_x'],0x1/bg['_y'],0x1/bg['_z']),aM[mi(0x577)](be['quaternion'],0x0,0x0,0x0,0x1,0x1,0x1),bd[mi(0x3d9)](bd,aM),bd[mi(0x15e)](-bf['_x'],-bf['_y'],-bf['_z']),this['local']['_dirtyId']++;}}class aO extends a7['W2']{constructor(){var mj=jm;super(),this['proj']=new aN(this[mj(0x70c)]);}['isFrontFace'](bc=!0x1){var mk=jm;bc&&(this['_recursivePostUpdateTransform'](),this[mk(0x499)]());const bd=this[mk(0x66a)][mk(0x694)]['mat4'],be=bd[0x0]*bd[0xf]-bd[0x3]*bd[0xc],bf=bd[0x1]*bd[0xf]-bd[0x3]*bd[0xd],bg=bd[0x4]*bd[0xf]-bd[0x7]*bd[0xc];return be*(bd[0x5]*bd[0xf]-bd[0x7]*bd[0xd])-bg*bf>0x0;}[jm(0x5af)](bc=!0x1){var ml=jm;bc&&(this[ml(0x549)](),this[ml(0x499)]());const bd=this[ml(0x66a)]['world'][ml(0x73c)];return bd[0xe]/bd[0xf];}['toLocal'](bc,bd,be,bf,bg=af['ALL']){var mm=jm;return bd&&(bc=bd[mm(0x866)](bc,be,bf)),bf||this['_recursivePostUpdateTransform'](),bg===af[mm(0x7b0)]?(bf||this[mm(0x499)](),this[mm(0x66a)]['affine']?this[mm(0x70c)][mm(0x58c)]['applyInverse'](bc,be):this[mm(0x66a)][mm(0x694)]['applyInverse'](bc,be)):(this[mm(0x2bc)]?be=this[mm(0x2bc)][mm(0x58c)][mm(0x4da)](bc,be):(be['x']=bc['x'],be['y']=bc['y'],be['z']=bc['z']),bg===af[mm(0x398)]||(be=this['transform'][mm(0x60e)][mm(0x4da)](be,be),bg===af[mm(0x52d)]&&this[mm(0x66a)][mm(0x668)]&&(be=this[mm(0x66a)][mm(0x9f4)][mm(0x4da)](be,be))),be);}get['worldTransform'](){var mn=jm;return this[mn(0x66a)]['affine']?this['transform'][mn(0x58c)]:this[mn(0x66a)][mn(0x694)];}get['position3d'](){var mo=jm;return this[mo(0x66a)][mo(0x679)];}set[jm(0x2c1)](bc){var mp=jm;this[mp(0x66a)][mp(0x679)][mp(0x390)](bc);}get[jm(0x591)](){var mq=jm;return this[mq(0x66a)]['scale'];}set[jm(0x591)](bc){var mr=jm;this[mr(0x66a)][mr(0x93f)][mr(0x390)](bc);}get[jm(0x656)](){var ms=jm;return this[ms(0x66a)][ms(0x656)];}set[jm(0x656)](bc){var mt=jm;this['proj'][mt(0x656)][mt(0x390)](bc);}get[jm(0x6c1)](){var mu=jm;return this['proj'][mu(0x798)];}set[jm(0x6c1)](bc){var mv=jm;this[mv(0x66a)][mv(0x798)][mv(0x390)](bc);}}const aP=aO[jm(0x32e)][jm(0x858)],aQ=aO[jm(0x32e)][jm(0x5af)],aR=aO['prototype'][jm(0x4a6)];class aS extends aO{constructor(){var mw=jm;super(),aS[mw(0x32e)][mw(0x445)][mw(0x8fb)](this),aS[mw(0x32e)][mw(0x910)][mw(0x8fb)](this),aS[mw(0x32e)][mw(0x8ca)][mw(0x8fb)](this),aS[mw(0x32e)][mw(0x95d)]['call'](this),this['proj'][mw(0x668)]=!0x0,this[mw(0x24d)](0x190,0xa,0x2710,!0x1);}[jm(0x445)](){var mx=jm;this[mx(0x5aa)]=0x0;}[jm(0x910)](){var my=jm;this[my(0x88a)]=0x0;}[jm(0x8ca)](){var mz=jm;this[mz(0x56b)]=0x0;}['__init4'](){var mA=jm;this[mA(0x963)]=!0x1;}get[jm(0x2b8)](){return this['_far'];}get[jm(0x4c6)](){var mB=jm;return this[mB(0x88a)];}get[jm(0x244)](){var mC=jm;return this[mC(0x56b)];}get[jm(0x353)](){var mD=jm;return this[mD(0x963)];}['setPlanes'](bc,bd=0xa,be=0x2710,bf=!0x1){var mE=jm;this[mE(0x56b)]=bc,this[mE(0x88a)]=bd,this['_far']=be,this[mE(0x963)]=bf;const bg=this['proj'],bh=bg[mE(0x9f4)]['mat4'];bg[mE(0x509)]++,bh[0xa]=0x1/(be-bd),bh[0xe]=(bc-bd)/(be-bd),this[mE(0x963)]?bh[0xb]=0x0:bh[0xb]=0x1/bc;}}class aT extends a9['Kj']{constructor(bc,bd,be,bf){var mF=jm;super(bc,bd,be,bf),aT['prototype'][mF(0x445)][mF(0x8fb)](this),this['proj']=new aN(this[mF(0x70c)]);}[jm(0x445)](){var mG=jm;this[mG(0x7ec)]=null;}[jm(0x75a)](){var mH=jm;if(this[mH(0x66a)][mH(0x4bb)])return this['vertexData2d']=null,void super[mH(0x75a)]();const bc=this[mH(0x234)],bd=bc[mH(0x9ed)][0x0]['data'],be=this;if(bc[mH(0x305)]===be[mH(0x5b1)]&&be[mH(0x9a9)]===be[mH(0x70c)][mH(0x34f)])return;be['_transformID']=be[mH(0x70c)][mH(0x34f)],be[mH(0x4f7)]['length']!==bd[mH(0x4ae)]&&(be[mH(0x4f7)]=new Float32Array(bd[mH(0x4ae)])),this[mH(0x7ec)]&&this[mH(0x7ec)][mH(0x4ae)]===0x3*bd[mH(0x4ae)]/0x2||(this[mH(0x7ec)]=new Float32Array(0x3*bd['length']));const bf=this[mH(0x66a)]['world'][mH(0x73c)],bg=this['vertexData2d'],bh=be[mH(0x4f7)];for(let bi=0x0;bi<bh['length']/0x2;bi++){const bj=bd[0x2*bi],bk=bd[0x2*bi+0x1],bl=bf[0x0]*bj+bf[0x4]*bk+bf[0xc],bm=bf[0x1]*bj+bf[0x5]*bk+bf[0xd],bn=bf[0x3]*bj+bf[0x7]*bk+bf[0xf];bg[0x3*bi]=bl,bg[0x3*bi+0x1]=bm,bg[0x3*bi+0x2]=bn,bh[0x2*bi]=bl/bn,bh[0x2*bi+0x1]=bm/bn;}be[mH(0x5b1)]=bc[mH(0x305)];}get[jm(0x58c)](){var mI=jm;return this[mI(0x66a)][mI(0x404)]?this[mI(0x70c)][mI(0x58c)]:this['proj'][mI(0x694)];}['toLocal'](bc,bd,be,bf,bg=af[jm(0x7b0)]){var mJ=jm;return aP[mJ(0x8fb)](this,bc,bd,be,bf,bg);}[jm(0x4a6)](bc){var mK=jm;return aR[mK(0x8fb)](this,bc);}[jm(0x5af)](bc){var mL=jm;return aQ[mL(0x8fb)](this,bc);}get[jm(0x2c1)](){var mM=jm;return this[mM(0x66a)]['position'];}set[jm(0x2c1)](bc){var mN=jm;this[mN(0x66a)][mN(0x679)][mN(0x390)](bc);}get['scale3d'](){var mO=jm;return this['proj'][mO(0x93f)];}set[jm(0x591)](bc){var mP=jm;this[mP(0x66a)][mP(0x93f)][mP(0x390)](bc);}get[jm(0x656)](){return this['proj']['euler'];}set[jm(0x656)](bc){var mQ=jm;this[mQ(0x66a)]['euler'][mQ(0x390)](bc);}get[jm(0x6c1)](){var mR=jm;return this[mR(0x66a)][mR(0x798)];}set[jm(0x6c1)](bc){var mS=jm;this[mS(0x66a)]['pivot'][mS(0x390)](bc);}}aT[jm(0x32e)][jm(0x1c1)]=ay['prototype'][jm(0x1c1)];class aU extends ab['j']{constructor(bc){var mT=jm;super(bc),aU[mT(0x32e)][mT(0x445)][mT(0x8fb)](this),aU[mT(0x32e)][mT(0x910)]['call'](this),aU[mT(0x32e)]['__init3'][mT(0x8fb)](this),this['proj']=new aN(this[mT(0x70c)]),this['pluginName']=mT(0x6af);}[jm(0x445)](){var mU=jm;this[mU(0x7ec)]=null;}['__init2'](){var mV=jm;this[mV(0x6e6)]=!0x1;}[jm(0x8ca)](){var mW=jm;this[mW(0x5fa)]=!0x1;}[jm(0x75a)](){var mX=jm;const bc=this['_texture'];if(this[mX(0x66a)][mX(0x4bb)])return this[mX(0x7ec)]=null,void super[mX(0x75a)]();this[mX(0x7ec)]||(this[mX(0x7ec)]=new Float32Array(0xc));const bd=this['transform'][mX(0x34f)],be=bc['_updateID'];if(this[mX(0x9a9)]===bd&&this['_textureID']===be)return;this['_textureID']!==be&&(this[mX(0x1d4)]=bc[mX(0x6be)][mX(0x9a8)]),this['_transformID']=bd,this['_textureID']=be;const bf=this[mX(0x66a)][mX(0x694)][mX(0x73c)],bg=this[mX(0x7ec)],bh=this['vertexData'],bi=bc[mX(0x871)],bj=bc[mX(0x706)],bk=this[mX(0x385)];let bl,bm,bn,bo;bi?(bm=bi['x']-bk['_x']*bj[mX(0x260)],bl=bm+bi[mX(0x260)],bo=bi['y']-bk['_y']*bj['height'],bn=bo+bi[mX(0x307)]):(bm=-bk['_x']*bj[mX(0x260)],bl=bm+bj[mX(0x260)],bo=-bk['_y']*bj[mX(0x307)],bn=bo+bj[mX(0x307)]);let bp,bq=!0x1;bg[0x0]=bf[0x0]*bm+bf[0x4]*bo+bf[0xc],bg[0x1]=bf[0x1]*bm+bf[0x5]*bo+bf[0xd],bp=bf[0x2]*bm+bf[0x6]*bo+bf[0xe],bg[0x2]=bf[0x3]*bm+bf[0x7]*bo+bf[0xf],bq=bq||bp<0x0,bg[0x3]=bf[0x0]*bl+bf[0x4]*bo+bf[0xc],bg[0x4]=bf[0x1]*bl+bf[0x5]*bo+bf[0xd],bp=bf[0x2]*bl+bf[0x6]*bo+bf[0xe],bg[0x5]=bf[0x3]*bl+bf[0x7]*bo+bf[0xf],bq=bq||bp<0x0,bg[0x6]=bf[0x0]*bl+bf[0x4]*bn+bf[0xc],bg[0x7]=bf[0x1]*bl+bf[0x5]*bn+bf[0xd],bp=bf[0x2]*bl+bf[0x6]*bn+bf[0xe],bg[0x8]=bf[0x3]*bl+bf[0x7]*bn+bf[0xf],bq=bq||bp<0x0,bg[0x9]=bf[0x0]*bm+bf[0x4]*bn+bf[0xc],bg[0xa]=bf[0x1]*bm+bf[0x5]*bn+bf[0xd],bp=bf[0x2]*bm+bf[0x6]*bn+bf[0xe],bg[0xb]=bf[0x3]*bm+bf[0x7]*bn+bf[0xf],bq=bq||bp<0x0,this[mX(0x6e6)]=bq,bh[0x0]=bg[0x0]/bg[0x2],bh[0x1]=bg[0x1]/bg[0x2],bh[0x2]=bg[0x3]/bg[0x5],bh[0x3]=bg[0x4]/bg[0x5],bh[0x4]=bg[0x6]/bg[0x8],bh[0x5]=bg[0x7]/bg[0x8],bh[0x6]=bg[0x9]/bg[0xb],bh[0x7]=bg[0xa]/bg[0xb];}['calculateTrimmedVertices'](){var mY=jm;if(this[mY(0x66a)][mY(0x4bb)])return void super['calculateTrimmedVertices']();const bc=this[mY(0x70c)][mY(0x34f)],bd=this[mY(0x3c2)][mY(0x9c5)],be=this;if(be[mY(0x253)]){if(be[mY(0x6bf)]===bc&&this['_textureTrimmedID']===bd)return;}else be['vertexTrimmedData']=new Float32Array(0x8);be['_transformTrimmedID']=bc,this[mY(0x5b7)]=bd;const bf=this['_texture'],bg=be[mY(0x253)],bh=bf[mY(0x706)],bi=this[mY(0x385)],bj=this[mY(0x66a)][mY(0x694)][mY(0x73c)],bk=-bi['_x']*bh[mY(0x260)],bl=bk+bh['width'],bm=-bi['_y']*bh[mY(0x307)],bn=bm+bh[mY(0x307)];let bo,bp=!0x1,bq=0x1/(bj[0x3]*bk+bj[0x7]*bm+bj[0xf]);bg[0x0]=bq*(bj[0x0]*bk+bj[0x4]*bm+bj[0xc]),bg[0x1]=bq*(bj[0x1]*bk+bj[0x5]*bm+bj[0xd]),bo=bj[0x2]*bk+bj[0x6]*bm+bj[0xe],bp=bp||bo<0x0,bq=0x1/(bj[0x3]*bl+bj[0x7]*bm+bj[0xf]),bg[0x2]=bq*(bj[0x0]*bl+bj[0x4]*bm+bj[0xc]),bg[0x3]=bq*(bj[0x1]*bl+bj[0x5]*bm+bj[0xd]),bo=bj[0x2]*bl+bj[0x6]*bm+bj[0xe],bp=bp||bo<0x0,bq=0x1/(bj[0x3]*bl+bj[0x7]*bn+bj[0xf]),bg[0x4]=bq*(bj[0x0]*bl+bj[0x4]*bn+bj[0xc]),bg[0x5]=bq*(bj[0x1]*bl+bj[0x5]*bn+bj[0xd]),bo=bj[0x2]*bl+bj[0x6]*bn+bj[0xe],bp=bp||bo<0x0,bq=0x1/(bj[0x3]*bk+bj[0x7]*bn+bj[0xf]),bg[0x6]=bq*(bj[0x0]*bk+bj[0x4]*bn+bj[0xc]),bg[0x7]=bq*(bj[0x1]*bk+bj[0x5]*bn+bj[0xd]),bo=bj[0x2]*bk+bj[0x6]*bn+bj[0xe],bp=bp||bo<0x0,this[mY(0x6e6)]=bp;}[jm(0x19c)](){var mZ=jm;if(this[mZ(0x75a)](),this['culledByFrustrum'])return;const bc=this[mZ(0x3c2)]['trim'],bd=this[mZ(0x3c2)][mZ(0x706)];!bc||bc[mZ(0x260)]===bd['width']&&bc[mZ(0x307)]===bd[mZ(0x307)]?this[mZ(0x2d7)][mZ(0x267)](this['vertexData']):(this[mZ(0x36f)](),this['trimmedCulledByFrustrum']||this[mZ(0x2d7)][mZ(0x267)](this[mZ(0x253)]));}[jm(0x214)](bc){var n0=jm;this[n0(0x75a)](),this[n0(0x6e6)]||(bc[n0(0x7ac)][n0(0x3aa)](bc[n0(0x525)][this[n0(0x8a6)]]),bc[n0(0x525)][this[n0(0x8a6)]][n0(0x6ca)](this));}[jm(0x36a)](bc){var n1=jm;return!this['culledByFrustrum']&&super[n1(0x36a)](bc);}get[jm(0x58c)](){var n2=jm;return this['proj'][n2(0x404)]?this[n2(0x70c)]['worldTransform']:this[n2(0x66a)][n2(0x694)];}[jm(0x858)](bc,bd,be,bf,bg=af['ALL']){return aP['call'](this,bc,bd,be,bf,bg);}[jm(0x4a6)](bc){return aR['call'](this,bc);}['getDepth'](bc){var n3=jm;return aQ[n3(0x8fb)](this,bc);}get['position3d'](){var n4=jm;return this[n4(0x66a)][n4(0x679)];}set[jm(0x2c1)](bc){var n5=jm;this['proj'][n5(0x679)]['copyFrom'](bc);}get['scale3d'](){var n6=jm;return this[n6(0x66a)]['scale'];}set[jm(0x591)](bc){var n7=jm;this[n7(0x66a)][n7(0x93f)][n7(0x390)](bc);}get[jm(0x656)](){var n8=jm;return this[n8(0x66a)]['euler'];}set[jm(0x656)](bc){var n9=jm;this[n9(0x66a)][n9(0x656)][n9(0x390)](bc);}get['pivot3d'](){var na=jm;return this[na(0x66a)]['pivot'];}set[jm(0x6c1)](bc){var nb=jm;this[nb(0x66a)]['pivot'][nb(0x390)](bc);}}const aV={'worldTransform':{'get':function(){var nc=jm;return this[nc(0x66a)]['affine']?this['transform'][nc(0x58c)]:this[nc(0x66a)]['world'];},'enumerable':!0x0,'configurable':!0x0},'position3d':{'get'(){var nd=jm;return this[nd(0x66a)][nd(0x679)];},'set'(bc){var ne=jm;this['proj'][ne(0x679)][ne(0x7fc)](bc);}},'scale3d':{'get'(){var nf=jm;return this[nf(0x66a)]['scale'];},'set'(bc){var ng=jm;this[ng(0x66a)][ng(0x93f)][ng(0x7fc)](bc);}},'pivot3d':{'get'(){var nh=jm;return this['proj'][nh(0x798)];},'set'(bc){var ni=jm;this['proj']['pivot'][ni(0x7fc)](bc);}},'euler':{'get'(){var nj=jm;return this[nj(0x66a)][nj(0x656)];},'set'(bc){var nk=jm;this[nk(0x66a)][nk(0x656)]['copy'](bc);}}};function aW(){var nl=jm;this[nl(0x66a)]||(this[nl(0x66a)]=new aN(this[nl(0x70c)]),this[nl(0x858)]=aO[nl(0x32e)]['toLocal'],this[nl(0x4a6)]=aO['prototype'][nl(0x4a6)],this['getDepth']=aO['prototype']['getDepth'],Object[nl(0x6ad)](this,aV));}a7['W2'][jm(0x32e)][jm(0x48e)]=aW,ab['j'][jm(0x32e)][jm(0x48e)]=function(){var nm=jm;this[nm(0x66a)]||(this[nm(0x75a)]=aU[nm(0x32e)]['calculateVertices'],this[nm(0x36f)]=aU[nm(0x32e)]['calculateTrimmedVertices'],this[nm(0x19c)]=aU[nm(0x32e)][nm(0x19c)],this[nm(0x36a)]=aU[nm(0x32e)]['containsPoint'],this[nm(0x8a6)]=nm(0x6af),aW[nm(0x8fb)](this));},a7['W2'][jm(0x32e)]['convertSubtreeTo3d']=function(){var nn=jm;this['convertTo3d']();for(let bc=0x0;bc<this['children'][nn(0x4ae)];bc++)this['children'][bc][nn(0x451)]();},aa['AL']['prototype'][jm(0x48e)]=aa['IE'][jm(0x32e)][jm(0x48e)]=function(){var no=jm;this[no(0x66a)]||(this[no(0x75a)]=aT[no(0x32e)][no(0x75a)],this[no(0x1c1)]=aT[no(0x32e)]['_renderDefault'],no(0x6af)!==this[no(0x868)][no(0x8a6)]&&(this[no(0x868)]=new a9['rY'](this['material']['texture'],{'program':a3['Program'][no(0x615)](ay[no(0x863)],ay['defaultFragmentShader']),'pluginName':no(0x6af)})),aW[no(0x8fb)](this));};class aX extends ac['xv']{constructor(bc,bd,be){var np=jm;super(bc,bd,be),aX['prototype'][np(0x445)][np(0x8fb)](this),this[np(0x66a)]=new aN(this[np(0x70c)]),this['pluginName']=np(0x6af);}['__init'](){var nq=jm;this[nq(0x7ec)]=null;}get['worldTransform'](){var nr=jm;return this['proj'][nr(0x404)]?this[nr(0x70c)][nr(0x58c)]:this[nr(0x66a)][nr(0x694)];}[jm(0x858)](bc,bd,be,bf,bg=af[jm(0x7b0)]){return aP['call'](this,bc,bd,be,bf,bg);}[jm(0x4a6)](bc){var ns=jm;return aR[ns(0x8fb)](this,bc);}[jm(0x5af)](bc){return aQ['call'](this,bc);}get[jm(0x2c1)](){var nt=jm;return this[nt(0x66a)][nt(0x679)];}set[jm(0x2c1)](bc){var nu=jm;this[nu(0x66a)][nu(0x679)][nu(0x390)](bc);}get[jm(0x591)](){var nv=jm;return this[nv(0x66a)][nv(0x93f)];}set[jm(0x591)](bc){var nw=jm;this[nw(0x66a)][nw(0x93f)][nw(0x390)](bc);}get[jm(0x656)](){var nx=jm;return this[nx(0x66a)][nx(0x656)];}set[jm(0x656)](bc){var ny=jm;this[ny(0x66a)]['euler'][ny(0x390)](bc);}get[jm(0x6c1)](){var nz=jm;return this[nz(0x66a)][nz(0x798)];}set[jm(0x6c1)](bc){var nA=jm;this[nA(0x66a)][nA(0x798)][nA(0x390)](bc);}}var aY;aX[jm(0x32e)]['calculateVertices']=aU[jm(0x32e)][jm(0x75a)],aX['prototype'][jm(0x36f)]=aU[jm(0x32e)][jm(0x36f)],aX[jm(0x32e)][jm(0x19c)]=aU[jm(0x32e)][jm(0x19c)],aX[jm(0x32e)][jm(0x36a)]=aU[jm(0x32e)][jm(0x36a)],aX['prototype'][jm(0x214)]=aU['prototype'][jm(0x214)];class aZ extends a3['Geometry']{constructor(bc=!0x1){var nB=jm;super(),this['_buffer']=new a3['Buffer'](null,bc,!0x1),this[nB(0x802)]=new a3['Buffer'](null,bc,!0x0),this['addAttribute'](nB(0x69f),this[nB(0x701)],0x2,!0x1,a4['vK'][nB(0x579)])[nB(0x46e)]('aTrans1',this['_buffer'],0x3,!0x1,a4['vK'][nB(0x579)])[nB(0x46e)](nB(0x813),this[nB(0x701)],0x3,!0x1,a4['vK'][nB(0x579)])['addAttribute'](nB(0x902),this[nB(0x701)],0x2,!0x1,a4['vK']['FLOAT'])[nB(0x46e)](nB(0x8f6),this[nB(0x701)],0x4,!0x1,a4['vK'][nB(0x579)])[nB(0x46e)](nB(0x8b8),this['_buffer'],0x4,!0x0,a4['vK'][nB(0x7b2)])[nB(0x46e)](nB(0x422),this['_buffer'],0x1,!0x0,a4['vK']['FLOAT'])[nB(0x932)](this[nB(0x802)]);}}const b0=[new a6['E9'](),new a6['E9'](),new a6['E9'](),new a6['E9']()],b1=[0x0,0x0,0x0,0x0];class b2{constructor(){var nC=jm;b2[nC(0x32e)][nC(0x445)][nC(0x8fb)](this),b2['prototype'][nC(0x910)]['call'](this),b2['prototype'][nC(0x8ca)][nC(0x8fb)](this),b2[nC(0x32e)][nC(0x95d)][nC(0x8fb)](this);}[jm(0x445)](){var nD=jm;this['surfaceID']=nD(0x19d);}[jm(0x910)](){var nE=jm;this[nE(0x9c5)]=0x0;}['__init3'](){var nF=jm;this[nF(0x54d)]='';}[jm(0x95d)](){var nG=jm;this[nG(0x747)]='';}[jm(0x413)](bc){}[jm(0x515)](){}[jm(0x9a7)](bc,bd,be){var nH=jm;let bf=bd[0x0],bg=bd[0x1],bh=bd[0x0],bi=bd[0x1];for(let bj=0x2;bj<0x8;bj+=0x2)bf>bd[bj]&&(bf=bd[bj]),bh<bd[bj]&&(bh=bd[bj]),bg>bd[bj+0x1]&&(bg=bd[bj+0x1]),bi<bd[bj+0x1]&&(bi=bd[bj+0x1]);if(b0[0x0]['set'](bf,bg),this[nH(0x6e8)](b0[0x0],b0[0x0]),b0[0x1]['set'](bh,bg),this[nH(0x6e8)](b0[0x1],b0[0x1]),b0[0x2][nH(0x3b4)](bh,bi),this['apply'](b0[0x2],b0[0x2]),b0[0x3][nH(0x3b4)](bf,bi),this[nH(0x6e8)](b0[0x3],b0[0x3]),be)be['apply'](b0[0x0],b0[0x0]),be['apply'](b0[0x1],b0[0x1]),be[nH(0x6e8)](b0[0x2],b0[0x2]),be[nH(0x6e8)](b0[0x3],b0[0x3]),bd[0x0]=b0[0x0]['x'],bd[0x1]=b0[0x0]['y'],bd[0x2]=b0[0x1]['x'],bd[0x3]=b0[0x1]['y'],bd[0x4]=b0[0x2]['x'],bd[0x5]=b0[0x2]['y'],bd[0x6]=b0[0x3]['x'],bd[0x7]=b0[0x3]['y'];else{for(let bk=0x1;bk<=0x3;bk++)if(b0[bk]['y']<b0[0x0]['y']||b0[bk]['y']===b0[0x0]['y']&&b0[bk]['x']<b0[0x0]['x']){const bl=b0[0x0];b0[0x0]=b0[bk],b0[bk]=bl;}for(let bm=0x1;bm<=0x3;bm++)b1[bm]=Math[nH(0x467)](b0[bm]['y']-b0[0x0]['y'],b0[bm]['x']-b0[0x0]['x']);for(let bn=0x1;bn<=0x3;bn++)for(let bo=bn+0x1;bo<=0x3;bo++)if(b1[bn]>b1[bo]){const bp=b0[bn];b0[bn]=b0[bo],b0[bo]=bp;const bq=b1[bn];b1[bn]=b1[bo],b1[bo]=bq;}if(bd[0x0]=b0[0x0]['x'],bd[0x1]=b0[0x0]['y'],bd[0x2]=b0[0x1]['x'],bd[0x3]=b0[0x1]['y'],bd[0x4]=b0[0x2]['x'],bd[0x5]=b0[0x2]['y'],bd[0x6]=b0[0x3]['x'],bd[0x7]=b0[0x3]['y'],(b0[0x3]['x']-b0[0x2]['x'])*(b0[0x1]['y']-b0[0x2]['y'])-(b0[0x1]['x']-b0[0x2]['x'])*(b0[0x3]['y']-b0[0x2]['y'])<0x0)return bd[0x4]=b0[0x3]['x'],void(bd[0x5]=b0[0x3]['y']);}}}const b3=new a6['y3'](),b4=new a6['Ae'](),b5=new a6['E9']();class b6 extends b2{constructor(...bc){var nI=jm;super(...bc),b6[nI(0x32e)]['__init'][nI(0x8fb)](this);}[jm(0x445)](){var nJ=jm;this[nJ(0x551)]=new a6['E9']();}['clear'](){var nK=jm;this[nK(0x551)][nK(0x3b4)](0x0,0x0);}[jm(0x6e8)](bc,bd){var nL=jm;bd=bd||new a6['E9']();const be=this[nL(0x551)],bf=bc['x']*bc['y'];return bd['x']=bc['x']+be['x']*bf,bd['y']=bc['y']+be['y']*bf,bd;}[jm(0x4da)](bc,bd){var nM=jm;bd=bd||new a6['E9']();const be=bc['x'],bf=bc['y'],bg=this[nM(0x551)]['x'],bh=this[nM(0x551)]['y'];if(0x0===bg)bd['x']=be,bd['y']=bf/(0x1+bh*be);else{if(0x0===bh)bd['y']=bf,bd['x']=be/(0x1+bg*bf);else{const bi=0.5*(bf*bg-be*bh+0x1)/bh,bj=bi*bi+be/bh;if(bj<=0.00001)return bd[nM(0x3b4)](NaN,NaN),bd;bd['x']=bh>0x0?-bi+Math['sqrt'](bj):-bi-Math[nM(0x258)](bj),bd['y']=(be/bd['x']-0x1)/bg;}}return bd;}[jm(0x5ce)](bc,bd,be){var nN=jm;const bf=bc['texture'];return b4['x']=-bc[nN(0x1ce)]['x']*bf[nN(0x706)][nN(0x260)],b4['y']=-bc[nN(0x1ce)]['y']*bf[nN(0x706)][nN(0x307)],b4[nN(0x260)]=bf['orig'][nN(0x260)],b4[nN(0x307)]=bf[nN(0x706)]['height'],this[nN(0x370)](b4,bd,be||bc[nN(0x70c)]);}[jm(0x370)](bc,bd,be){var nO=jm;const bf=-bc['x']/bc[nO(0x260)],bg=-bc['y']/bc[nO(0x307)],bh=(0x1-bc['x'])/bc['width'],bi=(0x1-bc['y'])/bc[nO(0x307)],bj=bd[0x0]['x']*(0x1-bf)+bd[0x1]['x']*bf,bk=bd[0x0]['y']*(0x1-bf)+bd[0x1]['y']*bf,bl=bd[0x0]['x']*(0x1-bh)+bd[0x1]['x']*bh,bm=bd[0x0]['y']*(0x1-bh)+bd[0x1]['y']*bh,bn=bd[0x3]['x']*(0x1-bf)+bd[0x2]['x']*bf,bo=bd[0x3]['y']*(0x1-bf)+bd[0x2]['y']*bf,bp=bd[0x3]['x']*(0x1-bh)+bd[0x2]['x']*bh,bq=bd[0x3]['y']*(0x1-bh)+bd[0x2]['y']*bh,br=bj*(0x1-bg)+bn*bg,bs=bk*(0x1-bg)+bo*bg,bt=bl*(0x1-bg)+bp*bg,bu=bm*(0x1-bg)+bq*bg,bv=bj*(0x1-bi)+bn*bi,bw=bk*(0x1-bi)+bo*bi,bx=bl*(0x1-bi)+bp*bi,by=bm*(0x1-bi)+bq*bi,bz=b3;return bz['tx']=br,bz['ty']=bs,bz['a']=bt-br,bz['b']=bu-bs,bz['c']=bv-br,bz['d']=bw-bs,b5[nO(0x3b4)](bx,by),bz[nO(0x4da)](b5,b5),this['distortion'][nO(0x3b4)](b5['x']-0x1,b5['y']-0x1),be['setFromMatrix'](bz),this;}[jm(0x413)](bc){var nP=jm;bc[nP(0x551)]=bc[nP(0x551)]||new Float32Array([0x0,0x0,0x0,0x0]);const bd=Math[nP(0x76a)](this[nP(0x551)]['x']),be=Math['abs'](this[nP(0x551)]['y']);bc[nP(0x551)][0x0]=0x2710*bd<=be?0x0:this[nP(0x551)]['x'],bc[nP(0x551)][0x1]=0x2710*be<=bd?0x0:this[nP(0x551)]['y'],bc[nP(0x551)][0x2]=0x1/bc[nP(0x551)][0x0],bc[nP(0x551)][0x3]=0x1/bc[nP(0x551)][0x1];}}const b7=a6['wx'][jm(0x32e)][jm(0x916)];function b8(bc){var nQ=jm;const bd=this[nQ(0x66a)],be=bc[nQ(0x66a)],bf=this;return be?be[nQ(0x1ba)]?(bd[nQ(0x4d5)]=be,this[nQ(0x5b4)](),this['localTransform']['copyTo'](this[nQ(0x58c)]),void(bf[nQ(0x5ec)]<0x0&&++bf[nQ(0x34f)])):(b7[nQ(0x8fb)](this,bc),void(bd[nQ(0x4d5)]=be[nQ(0x4d5)])):(b7[nQ(0x8fb)](this,bc),void(bd[nQ(0x4d5)]=null));}class b9 extends ae{constructor(...bc){var nR=jm;super(...bc),b9[nR(0x32e)][nR(0x445)][nR(0x8fb)](this),b9['prototype']['__init2']['call'](this),b9[nR(0x32e)][nR(0x8ca)]['call'](this),b9['prototype'][nR(0x95d)][nR(0x8fb)](this),b9[nR(0x32e)][nR(0x166)]['call'](this);}[jm(0x445)](){var nS=jm;this[nS(0x1ba)]=null;}[jm(0x910)](){var nT=jm;this[nT(0x4d5)]=null;}set[jm(0x94f)](bc){var nU=jm;bc!==this[nU(0x6d9)]&&(this['_enabled']=bc,bc?(this[nU(0x3cd)][nU(0x916)]=b8,this[nU(0x3cd)][nU(0x5ec)]=-0x1):(this[nU(0x3cd)][nU(0x916)]=a6['wx']['prototype'][nU(0x916)],this[nU(0x3cd)][nU(0x5ec)]=-0x1));}get[jm(0x21f)](){var nV=jm;return this[nV(0x1ba)];}set[jm(0x21f)](bc){var nW=jm;this[nW(0x1ba)]!==bc&&(this[nW(0x1ba)]=bc||null,this[nW(0x3cd)][nW(0x5ec)]=-0x1);}['applyPartial'](bc,bd){var nX=jm;return null!==this['_activeProjection']?(bd=this[nX(0x3cd)][nX(0x58c)][nX(0x6e8)](bc,bd),this[nX(0x4d5)][nX(0x21f)][nX(0x6e8)](bd,bd)):null!==this[nX(0x1ba)]?this[nX(0x21f)][nX(0x6e8)](bc,bd):this[nX(0x3cd)][nX(0x58c)]['apply'](bc,bd);}[jm(0x6e8)](bc,bd){var nY=jm;return null!==this[nY(0x4d5)]?(bd=this[nY(0x3cd)][nY(0x58c)][nY(0x6e8)](bc,bd),this['_activeProjection'][nY(0x21f)][nY(0x6e8)](bd,bd),this[nY(0x4d5)][nY(0x3cd)][nY(0x58c)]['apply'](bd,bd)):null!==this[nY(0x1ba)]?(bd=this['surface'][nY(0x6e8)](bc,bd),this[nY(0x3cd)][nY(0x58c)][nY(0x6e8)](bd,bd)):this['legacy']['worldTransform']['apply'](bc,bd);}[jm(0x4da)](bc,bd){var nZ=jm;return null!==this[nZ(0x4d5)]?(bd=this[nZ(0x4d5)][nZ(0x3cd)][nZ(0x58c)][nZ(0x4da)](bc,bd),this[nZ(0x4d5)][nZ(0x1ba)][nZ(0x4da)](bd,bd),this['legacy'][nZ(0x58c)][nZ(0x4da)](bd,bd)):null!==this[nZ(0x1ba)]?(bd=this['legacy'][nZ(0x58c)][nZ(0x4da)](bc,bd),this['_surface']['applyInverse'](bd,bd)):this[nZ(0x3cd)][nZ(0x58c)][nZ(0x4da)](bc,bd);}[jm(0x83f)](bc,bd){var o0=jm;this[o0(0x1ba)]instanceof b6||(this[o0(0x21f)]=new b6()),this[o0(0x21f)][o0(0x5ce)](bc,bd,this[o0(0x3cd)]);}[jm(0x8ca)](){var o1=jm;this[o1(0x278)]=-0x1;}['__init4'](){var o2=jm;this[o2(0x23a)]=-0x1;}['__init5'](){var o3=jm;this[o3(0x3e5)]=null;}['clear'](){var o4=jm;this[o4(0x21f)]&&this[o4(0x21f)][o4(0x515)]();}get[jm(0x71a)](){var o5=jm;return this[o5(0x23a)]===this[o5(0x3cd)][o5(0x34f)]&&this['_currentSurfaceID']===this[o5(0x21f)][o5(0x9c5)]||(this[o5(0x3e5)]=this[o5(0x3e5)]||{},this[o5(0x3e5)][o5(0x45e)]=this[o5(0x3cd)][o5(0x58c)],this[o5(0x1ba)]['fillUniforms'](this['_lastUniforms'])),this[o5(0x3e5)];}}class ba extends ab['j']{constructor(bc){var o6=jm;super(bc),ba[o6(0x32e)][o6(0x445)][o6(0x8fb)](this),this['proj']=new b9(this[o6(0x70c)]),this[o6(0x8a6)]=o6(0x8d8);}['__init'](){var o7=jm;this[o7(0x2ff)]=new a6['y3']();}[jm(0x19c)](){var o8=jm;this[o8(0x36f)](),this[o8(0x2d7)][o8(0x267)](this[o8(0x253)]);}[jm(0x75a)](){var o9=jm;const bc=this[o9(0x70c)][o9(0x34f)],bd=this[o9(0x3c2)][o9(0x9c5)];if(this[o9(0x9a9)]===bc&&this[o9(0x7ad)]===bd)return;this[o9(0x9a9)]=bc,this['_textureID']=bd;const be=this[o9(0x3c2)],bf=this[o9(0x4f7)],bg=be[o9(0x871)],bh=be[o9(0x706)],bi=this['_anchor'];let bj,bk,bl,bm;if(bg?(bk=bg['x']-bi['_x']*bh[o9(0x260)],bj=bk+bg[o9(0x260)],bm=bg['y']-bi['_y']*bh[o9(0x307)],bl=bm+bg[o9(0x307)]):(bk=-bi['_x']*bh['width'],bj=bk+bh[o9(0x260)],bm=-bi['_y']*bh[o9(0x307)],bl=bm+bh[o9(0x307)]),this['proj'][o9(0x1ba)])bf[0x0]=bk,bf[0x1]=bm,bf[0x2]=bj,bf[0x3]=bm,bf[0x4]=bj,bf[0x5]=bl,bf[0x6]=bk,bf[0x7]=bl,this[o9(0x66a)][o9(0x1ba)][o9(0x9a7)](bf,bf);else{const bo=this[o9(0x70c)][o9(0x58c)],bp=bo['a'],bq=bo['b'],br=bo['c'],bs=bo['d'],bt=bo['tx'],bu=bo['ty'];bf[0x0]=bp*bk+br*bm+bt,bf[0x1]=bs*bm+bq*bk+bu,bf[0x2]=bp*bj+br*bm+bt,bf[0x3]=bs*bm+bq*bj+bu,bf[0x4]=bp*bj+br*bl+bt,bf[0x5]=bs*bl+bq*bj+bu,bf[0x6]=bp*bk+br*bl+bt,bf[0x7]=bs*bl+bq*bk+bu,this[o9(0x66a)][o9(0x4d5)]&&this['proj'][o9(0x4d5)][o9(0x21f)]['boundsQuad'](bf,bf);}be[o9(0x17c)]||(be['uvMatrix']=new a3['TextureMatrix'](be)),be['uvMatrix']['update']();const bn=this['aTrans'];bn['set'](bh['width'],0x0,0x0,bh[o9(0x307)],bk,bm),null===this[o9(0x66a)][o9(0x1ba)]&&bn[o9(0x2bd)](this[o9(0x70c)][o9(0x58c)]),bn['invert'](),bn[o9(0x2bd)](be[o9(0x17c)][o9(0x2e2)]);}[jm(0x36f)](){var oa=jm;const bc=this['transform']['_worldID'],bd=this[oa(0x3c2)]['_updateID'],be=this;if(be['vertexTrimmedData']){if(be[oa(0x6bf)]===bc&&this['_textureTrimmedID']===bd)return;}else be[oa(0x253)]=new Float32Array(0x8);be[oa(0x6bf)]=bc,this[oa(0x5b7)]=bd;const bf=this[oa(0x3c2)],bg=be[oa(0x253)],bh=bf[oa(0x706)],bi=this[oa(0x385)],bj=-bi['_x']*bh['width'],bk=bj+bh[oa(0x260)],bl=-bi['_y']*bh[oa(0x307)],bm=bl+bh[oa(0x307)];if(this[oa(0x66a)][oa(0x1ba)])bg[0x0]=bj,bg[0x1]=bl,bg[0x2]=bk,bg[0x3]=bl,bg[0x4]=bk,bg[0x5]=bm,bg[0x6]=bj,bg[0x7]=bm,this['proj'][oa(0x1ba)][oa(0x9a7)](bg,bg,this[oa(0x70c)][oa(0x58c)]);else{const bn=this[oa(0x70c)][oa(0x58c)],bo=bn['a'],bp=bn['b'],bq=bn['c'],br=bn['d'],bs=bn['tx'],bt=bn['ty'];bg[0x0]=bo*bj+bq*bl+bs,bg[0x1]=br*bl+bp*bj+bt,bg[0x2]=bo*bk+bq*bl+bs,bg[0x3]=br*bl+bp*bk+bt,bg[0x4]=bo*bk+bq*bm+bs,bg[0x5]=br*bm+bp*bk+bt,bg[0x6]=bo*bj+bq*bm+bs,bg[0x7]=br*bm+bp*bj+bt,this[oa(0x66a)][oa(0x4d5)]&&this[oa(0x66a)][oa(0x4d5)][oa(0x21f)]['boundsQuad'](bg,bg,this[oa(0x66a)]['_activeProjection']['legacy'][oa(0x58c)]);}}get['worldTransform'](){return this['proj'];}}ab['j']['prototype'][jm(0x1ea)]=function(){var ob=jm;this[ob(0x66a)]||(this[ob(0x8a6)]=ob(0x186),this[ob(0x2ff)]=new a6['y3'](),this[ob(0x75a)]=ba[ob(0x32e)][ob(0x75a)],this[ob(0x36f)]=ba[ob(0x32e)][ob(0x36f)],this[ob(0x19c)]=ba['prototype'][ob(0x19c)],a7['W2'][ob(0x32e)]['convertTo2s'][ob(0x8fb)](this));},a7['W2'][jm(0x32e)][jm(0x1ea)]=function(){var oc=jm;this[oc(0x66a)]||(this[oc(0x66a)]=new b9(this[oc(0x70c)]),Object[oc(0x85d)](this,oc(0x58c),{'get'(){return this['proj'];},'enumerable':!0x0,'configurable':!0x0}));},a7['W2'][jm(0x32e)]['convertSubtreeTo2s']=function(){var od=jm;this['convertTo2s']();for(let bc=0x0;bc<this[od(0x53c)][od(0x4ae)];bc++)this[od(0x53c)][bc]['convertSubtreeTo2s']();};class bb extends ac['xv']{constructor(bc,bd,be){var oe=jm;super(bc,bd,be),bb[oe(0x32e)][oe(0x445)][oe(0x8fb)](this),this[oe(0x66a)]=new b9(this[oe(0x70c)]),this[oe(0x8a6)]=oe(0x8d8);}['__init'](){var of=jm;this[of(0x2ff)]=new a6['y3']();}get[jm(0x58c)](){var og=jm;return this[og(0x66a)];}}bb[jm(0x32e)]['calculateVertices']=ba[jm(0x32e)][jm(0x75a)],bb[jm(0x32e)][jm(0x36f)]=ba[jm(0x32e)]['calculateTrimmedVertices'],bb['prototype'][jm(0x19c)]=ba[jm(0x32e)][jm(0x19c)],a3['Renderer'][jm(0x7a4)]('batch_bilinear',class{static['create'](bc){var oh=jm;const {vertex:bd,fragment:be,vertexSize:bf,geometryClass:bg}=Object[oh(0x961)]({'vertex':'precision\x20highp\x20float;\x0aattribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec3\x20aTrans1;\x0aattribute\x20vec3\x20aTrans2;\x0aattribute\x20vec2\x20aSamplerSize;\x0aattribute\x20vec4\x20aFrame;\x0aattribute\x20vec4\x20aColor;\x0aattribute\x20float\x20aTextureId;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0auniform\x20mat3\x20translationMatrix;\x0a\x0avarying\x20vec2\x20vertexPosition;\x0avarying\x20vec3\x20vTrans1;\x0avarying\x20vec3\x20vTrans2;\x0avarying\x20vec2\x20vSamplerSize;\x0avarying\x20vec4\x20vFrame;\x0avarying\x20vec4\x20vColor;\x0avarying\x20float\x20vTextureId;\x0a\x0avoid\x20main(void){\x0agl_Position.xyw\x20=\x20projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0);\x0agl_Position.z\x20=\x200.0;\x0a\x0avertexPosition\x20=\x20aVertexPosition;\x0avTrans1\x20=\x20aTrans1;\x0avTrans2\x20=\x20aTrans2;\x0avTextureId\x20=\x20aTextureId;\x0avColor\x20=\x20aColor;\x0avSamplerSize\x20=\x20aSamplerSize;\x0avFrame\x20=\x20aFrame;\x0a}\x0a','fragment':oh(0x8ba),'geometryClass':aZ,'vertexSize':0x10},bc);return aY=class extends aj{constructor(bh){var oi=oh;super(bh),aY[oi(0x32e)][oi(0x445)][oi(0x8fb)](this),aY['prototype']['__init2'][oi(0x8fb)](this),aY[oi(0x32e)][oi(0x8ca)][oi(0x8fb)](this),this[oi(0x1ed)]=new a3[(oi(0x9e3))](bd,be),this[oi(0x832)]=bg,this[oi(0x744)]=bf;}[oh(0x445)](){var oj=oh;this[oj(0x41a)]={'translationMatrix':new a6['y3'](),'distortion':new Float32Array([0x0,0x0,0x1/0x0,0x1/0x0])};}['__init2'](){var ok=oh;this[ok(0x698)]=0x3e8;}[oh(0x8ca)](){var ol=oh;this[ol(0x6b8)]=0x1;}[oh(0x3a2)](bh){var om=oh;const {proj:bi}=bh;return null!==bi[om(0x21f)]?bi[om(0x71a)]:null!==bi[om(0x4d5)]?bi['_activeProjection'][om(0x71a)]:this[om(0x41a)];}['packInterleavedGeometry'](bh,bi,bj,bk,bl){var on=oh;const {uint32View:bm,float32View:bn}=bi,bo=bk/this[on(0x744)],bp=bh[on(0x5a8)],bq=bh[on(0x4f7)],br=bh[on(0x3c2)][on(0x4f0)],bs=bh[on(0x2ff)],{_batchLocation:bt,realWidth:bu,realHeight:bv,resolution:bw}=bh['_texture'][on(0x8ab)],bx=Math['min'](bh['worldAlpha'],0x1),by=bx<0x1&&bh[on(0x3c2)][on(0x8ab)][on(0x955)]?(0x0,a5[on(0x64d)])(bh['_tintRGB'],bx):bh['_tintRGB']+(0xff*bx<<0x18);for(let bz=0x0;bz<bq['length'];bz+=0x2)bn[bk]=bq[bz],bn[bk+0x1]=bq[bz+0x1],bn[bk+0x2]=bs['a'],bn[bk+0x3]=bs['c'],bn[bk+0x4]=bs['tx'],bn[bk+0x5]=bs['b'],bn[bk+0x6]=bs['d'],bn[bk+0x7]=bs['ty'],bn[bk+0x8]=bu,bn[bk+0x9]=bv,bn[bk+0xa]=br['x']*bw,bn[bk+0xb]=br['y']*bw,bn[bk+0xc]=(br['x']+br[on(0x260)])*bw,bn[bk+0xd]=(br['y']+br[on(0x307)])*bw,bm[bk+0xe]=by,bn[bk+0xf]=bt,bk+=0x10;for(let bA=0x0;bA<bp[on(0x4ae)];bA++)bj[bl++]=bo+bp[bA];}},aY;}}[jm(0x92d)]({}));},0x1ea3:(a0,a1,a2)=>{var oo=a0b;a2['d'](a1,{'ry':()=>b2,'Cz':()=>a3[oo(0x630)],'T$':()=>b9['a'],'Mj':()=>b8,'UZ':()=>b5,'bk':()=>b6});var a3={};a2['r'](a3),a2['d'](a3,{'Mj':()=>b8,'UZ':()=>b5,'bk':()=>b6});var a4=a2(0x1ade),a5=a2(0x543),a6=a2(0x24f3);class a7{constructor(){var op=oo;this[op(0x576)]=new a6['M']();}async[oo(0x3a8)](){return new Promise((ba,bb)=>{var oq=a0b;this[oq(0x400)](),wx[oq(0x5e1)]({'success'(){ba();},'fail'(bc){var or=oq;console[or(0x5a1)](or(0x4c1),bc);const {errMsg:bd}=bc;if(bd['indexOf']('already\x20init')>-0x1)return ba();bb({'errMsg':or(0x4c1)});}});});}[oo(0x200)](ba){var os=oo;const {data:bb,width:bc,height:bd}=ba;new Date(),wx[os(0x9ba)]({'width':bc,'height':bd,'frameBuffer':bb,'enablePoint':!0x0,'enableAngle':!0x0,'success':be=>{var ot=os;const {x:bf,y:bg}=be,bh=be[ot(0x675)],bi=be[ot(0x862)];let bj={'yaw':-bi['yaw']*Math['PI']/0x2,'pitch':bi[ot(0x3ab)],'roll':bi['roll']};const bk=(bf-bc/0x2)/bc;bj[ot(0x3d0)]+=1.4*bk;const bl=(bg-bd/0x2)/(bd/0x2);bj[ot(0x3ab)]-=bl,this[ot(0x684)]=bj,bh['push'](this[ot(0x558)](bh[0x60],bh[0x61])),bh[ot(0x3ef)](this[ot(0x558)](bh[0x60],bh[0x67])),bh[ot(0x3ef)](this[ot(0x558)](bh[0x64],bh[0x63])),bh[ot(0x3ef)](this[ot(0x558)](bh[0x64],bh[0x65]));const bm=this[ot(0x558)](bh[0x4e],bh[0x4f]),bn=1.5*(0x0,a5['Sp'])(bh[0x2c],bh[0x31]),bo=this[ot(0x2fa)](bm,bh[0x31]),bp=Math[ot(0x75e)](bo),bq={'x':bm['x']-bn*Math[ot(0x924)](bp)*(bp/Math['abs'](bp)),'y':bm['y']-bn*Math[ot(0x566)](Math[ot(0x76a)](bp))};bh[ot(0x3ef)](bq);const br=bh[0x0],bs=br['y']-br['x']*bo,bt=bq['y']- -0x1/bo*bq['x'],bu=(bt-bs)/(bo- -0x1/bo),bv={'x':bu,'y':bu*bo+bs},bw=this['twoBezier'](0.14,bq,bv,br),bx=this[ot(0x2a1)](0.28,bq,bv,br),by=this[ot(0x2a1)](0.42,bq,bv,br),bz=this[ot(0x2a1)](0.56,bq,bv,br),bA=this[ot(0x2a1)](0.7,bq,bv,br),bB=this[ot(0x2a1)](0.85,bq,bv,br),bC=bh[0x20],bD=bC['y']-bC['x']*bo,bE={'x':(bt-bD)/(bo- -0x1/bo),'y':(bt-bD)/(bo- -0x1/bo)*bo+bD},bF=this['twoBezier'](0.14,bq,bE,bC),bG=this[ot(0x2a1)](0.28,bq,bE,bC),bH=this['twoBezier'](0.42,bq,bE,bC),bI=this['twoBezier'](0.56,bq,bE,bC),bJ=this[ot(0x2a1)](0.7,bq,bE,bC),bK=this['twoBezier'](0.85,bq,bE,bC);bh['push'](bw,bx,by,bF,bG,bH,bz,bI,bB,bA,bK,bJ);const {meshVertex:bL,lipVertex:bM}=this[ot(0x436)](bh);this[ot(0x8a3)]({'landmarks':bh,'angles':bj,'image':ba,'meshVertex':bL,'lipVertex':bM});},'fail':be=>{var ou=os;this[ou(0x8a3)]({'landmarks':[],'angles':[],'image':ba,'meshVertex':[],'lipVertex':[]});}});}[oo(0x6d0)](ba){var ov=oo;this[ov(0x2bb)]=ba;}['triggerResult'](ba){var ow=oo;this[ow(0x1c2)]||(this['vkstarted']=!0x0),this[ow(0x33c)]=null,this['resultCb']&&this[ow(0x2bb)](ba);}['twoBezier'](ba,bb,bc,bd){const {x:be,y:bf}=bb,{x:bg,y:bh}=bc,{x:bi,y:bj}=bd;return{'x':(0x1-ba)*(0x1-ba)*be+0x2*ba*(0x1-ba)*bg+ba*ba*bi,'y':(0x1-ba)*(0x1-ba)*bf+0x2*ba*(0x1-ba)*bh+ba*ba*bj};}[oo(0x815)](){var ox=oo;console[ox(0x5a1)](ox(0x594)),wx[ox(0x594)]({'success'(){var oy=ox;console[oy(0x5a1)]('face\x20detect\x20stopped');},'fail'(){var oz=ox;console['log'](oz(0x3a0));}});}[oo(0x558)](ba,bb){return{'x':(ba['x']+bb['x'])/0x2,'y':(ba['y']+bb['y'])/0x2};}[oo(0x366)](ba,bb){var oA=oo;return Math[oA(0x76f)]((ba['x']-bb['x'])*(ba['x']-bb['x'])+(ba['y']-bb['y'])*(ba['y']-bb['y']),0.5);}[oo(0x2fa)](ba,bb){var oB=oo;return bb['x']===ba['x']?Number[oB(0x4f2)]:(bb['y']-ba['y'])/(bb['x']-ba['x']);}[oo(0x436)](ba){var oC=oo;const {triangulation:bb,lipsTriangulation:bc,KEY_POINTS:bd,LIPS:be,MOUTH_UPPER:bf}=this[oC(0x49c)],bg=[],bh=[];if(ba){const bj=[],bk=[],bl=this[oC(0x37a)](ba);ba[oC(0x280)]((bn,bo)=>{var oD=oC;if(bd['indexOf'](bo)>=0x0){const bp=bn;bj[oD(0x3ef)]([bl[bo]['x'],bl[bo]['y']]),be[oD(0x50a)](bo)>=0x0&&bk[oD(0x3ef)]([bp['x'],bp['y']]);}}),this[oC(0x6a6)](ba)[oC(0x280)]((bn,bo)=>{bj['push']([bn['x'],bn['y']]);});const bm=bb;for(var bi=0x0;bi<bm[oC(0x4ae)];bi+=0x3){const bn=bm[bi],bo=bm[bi+0x1],bp=bm[bi+0x2];bg[oC(0x3ef)](bj[bn][0x0]),bg[oC(0x3ef)](bj[bn][0x1]),bg[oC(0x3ef)](bj[bo][0x0]),bg[oC(0x3ef)](bj[bo][0x1]),bg['push'](bj[bp][0x0]),bg['push'](bj[bp][0x1]);}for(bi=0x0;bi<bc[oC(0x4ae)];bi+=0x3){const bq=bc[bi],br=bc[bi+0x1],bs=bc[bi+0x2];bh[oC(0x3ef)](bk[bq][0x0]),bh[oC(0x3ef)](bk[bq][0x1]),bh[oC(0x3ef)](bk[br][0x0]),bh[oC(0x3ef)](bk[br][0x1]),bh['push'](bk[bs][0x0]),bh[oC(0x3ef)](bk[bs][0x1]);}}return{'meshVertex':bg,'lipVertex':bh};}[oo(0x37a)](ba){var oE=oo;const bb=JSON[oE(0x9d4)](JSON[oE(0x975)](ba)),{MOUTH_UPPER:bc,MOUTH_LOWER:bd}=this['_dataMap'];return bc['forEach']((be,bf)=>{const bg=bb[be],bh=bb[bd[bf]],bi={'x':(bg['x']+bh['x'])/0x2,'y':(bg['y']+bh['y'])/0x2};bg['y']=bi['y'],bg['x']=bi['x'],bh['y']=bi['y'],bh['x']=bi['x'];}),bb;}[oo(0x441)](){return this['angles'];}[oo(0x6a6)](ba){var oF=oo;const {OUTER_REFERENCE:bb}=this[oF(0x49c)],bc=(0x0,a5['Sp'])(ba[0x20],ba[0x0]),bd=(0x0,a5['Sp'])(ba[0x10],ba[0x6e]),be=[],bf=this[oF(0x441)](ba),bg=Math[oF(0x924)](bf[oF(0x7e4)]),bh=Math[oF(0x566)](bf['roll']),{yaw:bi,pitch:bj}=bf;return bb['forEach']((bk,bl)=>{var oG=oF;bk[oG(0x280)](bm=>{var oH=oG;let bn,bo;oH(0x804)==typeof bm?(bn=ba[bm['x']],bo=ba[bm['y']]):(bn=ba[bm],bo=ba[bm]);const bp=this['getSlope'](ba[0x10],ba[0x6e]),bq=-0x1/bp,br=bn['y']-bn['x']*bp,bs=(br-(bo['y']-bo['x']*bq))/(bq-bp),bt=bs,bu=bs*bp+br,bv=[0.5,0.2];let bw,bx,by;0x0===bl?(by=bv[0x0]*bd,bw=bt+by*bh,bx=bu-by*Math['abs'](bg)):0x1===bl?(by=0.3*bc,bi>0x0&&(by*=Math[oH(0x924)](0x2*bi)),bw=bt+by*Math[oH(0x76a)](bg),bx=bu+by*bh):0x2===bl?(by=bv[0x1]*bd,bw=bt-by*bh,bx=bu+by*Math[oH(0x76a)](bg)):(by=0.3*bc,bi<0x0&&(by*=Math['cos'](0x2*bi)),bw=bt-by*Math[oH(0x76a)](bg),bx=bu-by*bh),be[oH(0x3ef)]({'x':bw,'y':bx,'z':0x0});});}),be;}[oo(0x400)](){var oI=oo;const ba=this['_configCenter'][oI(0x70d)]([oI(0x207),oI(0x991),oI(0x8bb),'KEY_POINTS','LEFT_FACE_OVAL',oI(0x2e4),oI(0x9d6),oI(0x47f),'MOUTH_LOWER',oI(0x683),oI(0x82b)]);this[oI(0x49c)]=ba;}}class a8{[oo(0x5d6)](ba){var oJ=oo;(ba<=0x0||ba>0x1)&&console[oJ(0x5a1)](oJ(0x67e)),this['a']=ba;}constructor(ba,bb=0x0){var oK=oo;this['y']=this['s']=bb,this[oK(0x5d6)](ba),this['initialized']=!0x1;}[oo(0x3b7)](ba){var oL=oo,bb;return this[oL(0x405)]?bb=this['a']*ba+(0x1-this['a'])*this['s']:(bb=ba,this[oL(0x405)]=!0x0),this['y']=ba,this['s']=bb,bb;}[oo(0x65b)](ba,bb){return this['setAlpha'](bb),this['filter'](ba);}['hasLastRawValue'](){var oM=oo;return this[oM(0x405)];}[oo(0x4a4)](){return this['y'];}[oo(0x2d5)](){var oN=oo;this[oN(0x405)]=!0x1;}}const a9=class{[oo(0x5b6)](ba){var oO=oo,bb=0x1/this[oO(0x93c)];return 0x1/(0x1+0x1/(0x2*Math['PI']*ba)/bb);}['setFrequency'](ba){var oP=oo;ba<=0x0&&console[oP(0x5a1)](oP(0x5dc)),this[oP(0x93c)]=ba;}[oo(0x45b)](ba){var oQ=oo;ba<=0x0&&console[oQ(0x5a1)]('mincutoff\x20should\x20be\x20>0'),this[oQ(0x94a)]=ba;}[oo(0x4a7)](ba){var oR=oo;this[oR(0x32b)]=ba;}[oo(0x98c)](ba){var oS=oo;ba<=0x0&&console[oS(0x5a1)]('dcutoff\x20should\x20be\x20>0'),this[oS(0x15c)]=ba;}constructor(ba,bb=0x1,bc=0x0,bd=0x1){var oT=oo;this['setFrequency'](ba),this[oT(0x45b)](bb),this[oT(0x4a7)](bc),this[oT(0x98c)](bd),this['x']=new a8(this[oT(0x5b6)](bb)),this['dx']=new a8(this[oT(0x5b6)](bd)),this[oT(0x4c8)]=void 0x0;}[oo(0x2d5)](){var oU=oo;this['x']['reset'](),this['dx'][oU(0x2d5)](),this[oU(0x4c8)]=void 0x0;}['filter'](ba,bb){var oV=oo;null!=this[oV(0x4c8)]&&null!=bb&&bb!==this['lasttime']&&(this[oV(0x93c)]=0x1/(bb-this[oV(0x4c8)])),this[oV(0x4c8)]=bb;var bc=this['x']['hasLastRawValue']()?(ba-this['x']['lastRawValue']())*this[oV(0x93c)]:0x0,bd=this['dx']['filterWithAlpha'](bc,this[oV(0x5b6)](this['dcutoff'])),be=this[oV(0x94a)]+this['beta_']*Math[oV(0x76a)](bd);return this['x'][oV(0x65b)](ba,this['alpha'](be));}};class aa{[oo(0x7ef)];[oo(0x7f3)]=0x2;['frame1'];[oo(0x7b8)];[oo(0x3af)];constructor(){}[oo(0x3b7)](ba){var oW=oo;if(null===this[oW(0x7ef)]||void 0x0===this[oW(0x7ef)]){for(let bb=0x0;bb<this[oW(0x7f3)];bb++)return this[oW(0x31e)+bb]=ba,ba;}for(let bc=this[oW(0x7f3)]-0x1;bc>0x0;bc--)this['frame'+bc]=this[oW(0x31e)+(bc-0x1)];return this['frame0']=ba,this[oW(0x599)]();}[oo(0x599)](){var oX=oo;let ba=0x0;for(let bb=0x0;bb<this['cacheNum'];bb++)ba+=this[oX(0x31e)+bb]||0x0;return ba/this[oX(0x7f3)];}}class ab{[oo(0x1a8)];['currentResult'];[oo(0x1c2)];[oo(0x8dd)]={};[oo(0x926)]={};[oo(0x78a)]=[];constructor(ba){var oY=oo;this[oY(0x576)]=new a6['M'](),this['_options']=ba;for(let bb=0x0;bb<0x6a;bb++)this['_filterMap'][bb+'_x']=new a9(0x3c,0.05,0x50,0x1),this[oY(0x8dd)][bb+'_y']=new a9(0x3c,0.05,0x50,0x1),this['_filterMap'][bb+'_z']=new a9(0x3c,0.05,0x50,0x1);this['_angleMap']['pitch']=new aa(),this[oY(0x926)]['yaw']=new aa(),this[oY(0x926)][oY(0x7e4)]=new aa();}async[oo(0x3a8)](){var oZ=oo;this[oZ(0x400)]();const ba=wx[oZ(0x53b)]({'track':{'face':{'mode':0x2}},'version':'v1'});this[oZ(0x1a8)]=ba,this[oZ(0x1a8)]['on']('updateAnchors',bb=>{var p0=oZ;this[p0(0x383)]=bb[0x0];const bc=this[p0(0x362)]();bc[p0(0x3fe)]=this[p0(0x31e)],this[p0(0x8a3)](bc);}),this[oZ(0x1a8)]['on'](oZ(0x7b3),bb=>{var p1=oZ;const bc={'landmarks':[],'angles':{},'meshVertex':[],'lipVertex':[]};bc[p1(0x3fe)]=this[p1(0x31e)],this[p1(0x8a3)](bc);}),this[oZ(0x1a8)][oZ(0x4fa)]();}['triggerResult'](ba){var p2=oo;this['vkstarted']||(this[p2(0x1c2)]=!0x0),this['detectId']=null,this['taskPromises'][p2(0x9f6)]()?.(ba);}[oo(0x362)](){var p3=oo;const ba=0.01*new Date()[p3(0x648)](),bb=this[p3(0x383)],bc=bb[p3(0x933)];bc[p3(0x3ab)]=this[p3(0x926)][p3(0x3ab)]['filter'](bc[p3(0x3ab)],ba),bc['yaw']=this[p3(0x926)]['yaw'][p3(0x3b7)](bc['yaw'],ba),bc['roll']=this[p3(0x926)][p3(0x7e4)][p3(0x3b7)](bc['roll'],ba),bc['yaw']=1.1*(bc['yaw']-0.1),bc[p3(0x3ab)]=0.93*(bc[p3(0x3ab)]+0.18),this[p3(0x684)]=bc;const bd=bb[p3(0x3d7)],{width:be,height:bf}=this[p3(0x887)],bg=be/bf,bh=this[p3(0x22d)][p3(0x260)]/this[p3(0x22d)][p3(0x307)];bd['forEach']((bJ,bK)=>{var p4=p3;bh<bg?bJ['x']=0.5+(bJ['x']-0.5)*(this['_options']['height']/bf):bh>bg&&(bJ['y']=0.5+(bJ['y']-0.5)/(this['_options'][p4(0x260)]/be)),this[p4(0x8dd)][bK+'_x']&&(bJ['x']=this[p4(0x8dd)][bK+'_x'][p4(0x3b7)](bJ['x'],ba),bJ['y']=this['_filterMap'][bK+'_y'][p4(0x3b7)](bJ['y'],ba),bJ['z']=this['_filterMap'][bK+'_z'][p4(0x3b7)](bJ['z'],ba)),bJ['x']*=this[p4(0x22d)][p4(0x260)],bJ['y']*=this['_options'][p4(0x307)];}),bd[p3(0x3ef)](this['getCenterOfTwoPoints'](bd[0x60],bd[0x61])),bd['push'](this['getCenterOfTwoPoints'](bd[0x60],bd[0x67])),bd['push'](this['getCenterOfTwoPoints'](bd[0x64],bd[0x63])),bd[p3(0x3ef)](this[p3(0x558)](bd[0x64],bd[0x65]));const bi=this[p3(0x558)](bd[0x4e],bd[0x4f]),bj=1.5*(0x0,a5['Sp'])(bd[0x2c],bd[0x31]),bk=this[p3(0x2fa)](bi,bd[0x31]),bl=Math[p3(0x75e)](bk),bm={'x':bi['x']-bj*Math[p3(0x924)](bl)*(bl/Math[p3(0x76a)](bl)),'y':bi['y']-bj*Math['sin'](Math[p3(0x76a)](bl))};bd[p3(0x3ef)](bm);const bn=bd[0x0],bo=bn['y']-bn['x']*bk,bp=bm['y']- -0x1/bk*bm['x'],bq=(bp-bo)/(bk- -0x1/bk),br={'x':bq,'y':bq*bk+bo},bs=this['twoBezier'](0.14,bm,br,bn),bt=this[p3(0x2a1)](0.28,bm,br,bn),bu=this['twoBezier'](0.42,bm,br,bn),bv=this[p3(0x2a1)](0.56,bm,br,bn),bw=this[p3(0x2a1)](0.7,bm,br,bn),bx=this['twoBezier'](0.85,bm,br,bn),by=bd[0x20],bz=by['y']-by['x']*bk,bA={'x':(bp-bz)/(bk- -0x1/bk),'y':(bp-bz)/(bk- -0x1/bk)*bk+bz},bB=this[p3(0x2a1)](0.14,bm,bA,by),bC=this[p3(0x2a1)](0.28,bm,bA,by),bD=this[p3(0x2a1)](0.42,bm,bA,by),bE=this['twoBezier'](0.56,bm,bA,by),bF=this[p3(0x2a1)](0.7,bm,bA,by),bG=this[p3(0x2a1)](0.85,bm,bA,by);bd['push'](bs,bt,bu,bB,bC,bD,bv,bE,bx,bw,bG,bF);const {meshVertex:bH,lipVertex:bI}=this['getMeshVertex'](bd);return{'landmarks':bd,'angles':this['angles'],'meshVertex':bH,'lipVertex':bI};}['send'](ba){return new Promise(bb=>{var p5=a0b;if(this[p5(0x1c2)]&&this[p5(0x33c)])return;const {data:bc,width:bd,height:be}=ba;this[p5(0x33c)]=+new Date(),this['currentResult']=null,this[p5(0x31e)]=ba,this[p5(0x78a)][p5(0x3ef)](bb),this[p5(0x887)]={'width':bd,'height':be},this[p5(0x1a8)][p5(0x3fa)]({'frameBuffer':bc,'width':bd,'height':be,'scoreThreshold':0.5,'sourceType':0x0,'modelMode':0x1});});}[oo(0x2a1)](ba,bb,bc,bd){const {x:be,y:bf}=bb,{x:bg,y:bh}=bc,{x:bi,y:bj}=bd;return{'x':(0x1-ba)*(0x1-ba)*be+0x2*ba*(0x1-ba)*bg+ba*ba*bi,'y':(0x1-ba)*(0x1-ba)*bf+0x2*ba*(0x1-ba)*bh+ba*ba*bj};}[oo(0x815)](){var p6=oo;this[p6(0x1a8)]&&(this[p6(0x1a8)]=null),this[p6(0x78a)]=[];}[oo(0x558)](ba,bb){return{'x':(ba['x']+bb['x'])/0x2,'y':(ba['y']+bb['y'])/0x2};}[oo(0x366)](ba,bb){return Math['pow']((ba['x']-bb['x'])*(ba['x']-bb['x'])+(ba['y']-bb['y'])*(ba['y']-bb['y']),0.5);}['getSlope'](ba,bb){var p7=oo;return bb['x']===ba['x']?Number[p7(0x4f2)]:(bb['y']-ba['y'])/(bb['x']-ba['x']);}[oo(0x436)](ba){var p8=oo;const {triangulation:bb,lipsTriangulation:bc,KEY_POINTS:bd,LIPS:be,MOUTH_UPPER:bf}=this[p8(0x49c)],bg=[],bh=[];if(ba){const bj=[],bk=[],bl=this[p8(0x37a)](ba);ba[p8(0x280)]((bn,bo)=>{var p9=p8;if(bd[p9(0x50a)](bo)>=0x0){const bp=bn;bj[p9(0x3ef)]([bl[bo]['x'],bl[bo]['y']]),be[p9(0x50a)](bo)>=0x0&&bk['push']([bp['x'],bp['y']]);}}),this[p8(0x6a6)](ba)[p8(0x280)]((bn,bo)=>{var pa=p8;bj[pa(0x3ef)]([bn['x'],bn['y']]);});const bm=bb;for(var bi=0x0;bi<bm['length'];bi+=0x3){const bn=bm[bi],bo=bm[bi+0x1],bp=bm[bi+0x2];bg['push'](bj[bn][0x0]),bg['push'](bj[bn][0x1]),bg[p8(0x3ef)](bj[bo][0x0]),bg[p8(0x3ef)](bj[bo][0x1]),bg[p8(0x3ef)](bj[bp][0x0]),bg['push'](bj[bp][0x1]);}for(bi=0x0;bi<bc['length'];bi+=0x3){const bq=bc[bi],br=bc[bi+0x1],bs=bc[bi+0x2];bh[p8(0x3ef)](bk[bq][0x0]),bh[p8(0x3ef)](bk[bq][0x1]),bh[p8(0x3ef)](bk[br][0x0]),bh[p8(0x3ef)](bk[br][0x1]),bh['push'](bk[bs][0x0]),bh['push'](bk[bs][0x1]);}}return{'meshVertex':bg,'lipVertex':bh};}[oo(0x37a)](ba){var pb=oo;const bb=JSON[pb(0x9d4)](JSON[pb(0x975)](ba)),{MOUTH_UPPER:bc,MOUTH_LOWER:bd}=this['_dataMap'];return bc[pb(0x280)]((be,bf)=>{const bg=bb[be],bh=bb[bd[bf]],bi={'x':(bg['x']+bh['x'])/0x2,'y':(bg['y']+bh['y'])/0x2};bg['y']=bi['y'],bg['x']=bi['x'],bh['y']=bi['y'],bh['x']=bi['x'];}),bb;}[oo(0x441)](){var pc=oo;return this[pc(0x684)];}[oo(0x6a6)](ba){var pd=oo;const {OUTER_REFERENCE:bb}=this[pd(0x49c)],bc=(0x0,a5['Sp'])(ba[0x20],ba[0x0]),bd=(0x0,a5['Sp'])(ba[0x10],ba[0x6e]),be=[],bf=this['getAngles'](ba),bg=Math['cos'](bf['roll']),bh=Math[pd(0x566)](bf[pd(0x7e4)]),{yaw:bi,pitch:bj}=bf;return bb[pd(0x280)]((bk,bl)=>{var pe=pd;bk[pe(0x280)](bm=>{var pf=pe;let bn,bo;'object'==typeof bm?(bn=ba[bm['x']],bo=ba[bm['y']]):(bn=ba[bm],bo=ba[bm]);const bp=this[pf(0x2fa)](ba[0x10],ba[0x6e]),bq=-0x1/bp,br=bn['y']-bn['x']*bp,bs=(br-(bo['y']-bo['x']*bq))/(bq-bp),bt=bs,bu=bs*bp+br,bv=[0.5,0.2];let bw,bx,by;0x0===bl?(by=bv[0x0]*bd,bw=bt+by*bh,bx=bu-by*Math[pf(0x76a)](bg)):0x1===bl?(by=0.3*bc,bi>0x0&&(by*=Math[pf(0x924)](0x2*bi)),bw=bt+by*Math[pf(0x76a)](bg),bx=bu+by*bh):0x2===bl?(by=bv[0x1]*bd,bw=bt-by*bh,bx=bu+by*Math[pf(0x76a)](bg)):(by=0.3*bc,bi<0x0&&(by*=Math[pf(0x924)](0x2*bi)),bw=bt-by*Math[pf(0x76a)](bg),bx=bu-by*bh),be['push']({'x':bw,'y':bx,'z':0x0});});}),be;}['initDataMap'](){var pg=oo;const ba=this[pg(0x576)][pg(0x70d)]([pg(0x207),'OUTER_REFERENCE',pg(0x8bb),'KEY_POINTS',pg(0x2d4),pg(0x2e4),pg(0x9d6),pg(0x47f),pg(0x454),'lipsTriangulation',pg(0x82b)]);this[pg(0x49c)]=ba;}}var ac=a2(0x4b6),ad=a2(0x1f15),ae=a2(0x1adf);let af,ag,ah,ai,aj,ak;if(null==ag){af=wx[oo(0x2eb)]();let {system:ba,version:bb}=af;ai=bb;}if(null==ag){af=wx[oo(0x2eb)]();let {system:bc}=af;aj=af[oo(0x375)],ag=bc[oo(0x23d)]()[oo(0x50a)]('android')>-0x1,ah=!ag,ak=parseFloat(aj)>=2.25;}const al=parseFloat(aj)>=2.29;function am(){var ph=oo;return af[ph(0x9bb)]>af[ph(0x79c)];}class an extends a4['Q4']{[oo(0x70e)];['options'];['pushBuffer'];['stage'];['tag']=!0x0;['realWidth']=0x0;[oo(0x3d5)]=0x0;constructor(bd){var pi=oo;super(),this[pi(0x35d)]=bd;const be=this[pi(0x607)]();this[pi(0x4a8)](),this[pi(0x488)]();const bf=be[pi(0x4c0)]({'type':pi(0x174),'width':this[pi(0x2c8)],'height':this[pi(0x3d5)]});this['gl']=bf['getContext'](pi(0x174)),ah?(this['createFilter'](),this['renderer']=new ac[(pi(0x651))]({'width':this[pi(0x2c8)],'height':this[pi(0x3d5)],'resolution':0x1,'view':new wx['window'][(pi(0x474))](bf)})):this['initGl']();}[oo(0x4a8)](){var pj=oo;const {width:bd,height:be}=this['options'];ah?(this[pj(0x2c8)]=bd,this[pj(0x3d5)]=be):(this['realWidth']=bd/0x4,this['realHeight']=1.5*be);}['createSprite'](){var pk=oo;const bd=am(),{width:be,height:bf}=this[pk(0x35d)],bg=this[pk(0x607)]();console[pk(0x5a1)](':::::::::画面尺寸',bf,be);const bh=bg[pk(0x4c0)]({'type':'2d','width':be,'height':bf});if(this[pk(0x228)]=bh[pk(0x59f)]('2d'),bd){const bk=bf/be;this['ctx2d'][pk(0x15e)](bh[pk(0x260)]/0x2,bh[pk(0x307)]/0x2),ah?this['ctx2d']['rotate'](-Math['PI']/0x2):this[pk(0x228)][pk(0x4ef)](Math['PI']/0x2),this[pk(0x228)][pk(0x15e)](-bh[pk(0x307)]/0x2,-bh[pk(0x260)]/0x2),!ah&&this[pk(0x228)]['scale'](bk,0x1/bk);}const bi=ac['Texture'][pk(0x615)](new wx['window'][(pk(0x474))](bh)),bj=new ac[(pk(0x41b))](bi);bj['anchor'][pk(0x3b4)](0.5,0.5),bj[pk(0x679)][pk(0x3b4)](be/0x2,bf/0x2),(bd?bj[pk(0x93f)][pk(0x3b4)](ah?0x1:-0x1,0x1):bj[pk(0x93f)][pk(0x3b4)](ah?-0x1:1.3333333333333333,-0x1),this[pk(0x70e)]=bj,this['pushBuffer']=ah?new Uint8Array(be*bf*0x4):new Uint8Array(be*bf*1.5));}[oo(0x88e)](){var pl=oo;let bd=new ac[(pl(0x3d8))](null,pl(0x238));this[pl(0x957)]=new ac[(pl(0x434))]();const be=ac[pl(0x2f8)][pl(0x615)](new wx['window'][(pl(0x474))](this['options'][pl(0x595)]));console[pl(0x5a1)](pl(0x15b),this['realWidth'],this[pl(0x3d5)]),this[pl(0x7ab)]=new ac['Sprite'](be),this['pushSprite']['anchor'][pl(0x3b4)](0.5,0.5),this[pl(0x7ab)][pl(0x679)][pl(0x3b4)](this[pl(0x2c8)]/0x2,this[pl(0x3d5)]/0x2),this['pushSprite'][pl(0x260)]=this['realWidth'],this[pl(0x7ab)]['height']=this[pl(0x3d5)],this[pl(0x7ab)]['scale'][pl(0x3b4)](0x1,-0x1),this['pushSprite']['filters']=[bd],this[pl(0x957)][pl(0x7cf)](this[pl(0x7ab)]);}['initGl'](){var pm=oo;const bd=this['gl'],be=bd[pm(0x964)](bd[pm(0x5c0)]),bf=bd[pm(0x964)](bd[pm(0x992)]);bd[pm(0x233)](be,pm(0x57e)),bd[pm(0x233)](bf,pm(0x4a3)),bd['compileShader'](be),bd['compileShader'](bf);const bg=bd[pm(0x88f)]();bd[pm(0x7cc)](bg,be),bd[pm(0x7cc)](bg,bf),bd[pm(0x1da)](bg),bd[pm(0x5e0)](bg),bd['progObj']=bg,bd[pm(0x6c2)](0x0,0x0,this[pm(0x2c8)],this[pm(0x3d5)]);const bh=bd[pm(0x542)]();bd['bindBuffer'](bd['ARRAY_BUFFER'],bh),bd[pm(0x4c7)](bd[pm(0x8b4)],new Float32Array([-0x1,0x1,-0x1,-0x1,0x1,-0x1,0x1,0x1]),bd[pm(0x712)]),bd['vertexBuff']=bh;const bi=bd['createBuffer']();bd['bindBuffer'](bd[pm(0x8b4)],bi),bd[pm(0x4c7)](bd[pm(0x8b4)],new Float32Array([0x0,0x1,0x0,0x0,0x1,0x0,0x1,0x1]),bd[pm(0x712)]),bd[pm(0x4dd)]=bi;const bj=bd[pm(0x179)](bg,pm(0x637)),bk=bd['getAttribLocation'](bg,pm(0x2cb)),bl=bd[pm(0x408)](bg,'height'),bm=bd[pm(0x408)](bg,pm(0x223));bd[pm(0x24a)](bl,this[pm(0x35d)][pm(0x307)]),bd['uniform1f'](bm,0x1/this['options'][pm(0x260)]);const bn=bd[pm(0x93e)]();bd[pm(0x43a)](bd[pm(0x7d9)],bn),bd[pm(0x83d)](bd[pm(0x7d9)],0x0,bd[pm(0x713)],bd['RGBA'],bd[pm(0x7b2)],this['options'][pm(0x595)]),bd[pm(0x4d3)](bd[pm(0x7d9)],bd[pm(0x9c9)],bd['NEAREST']),bd['texParameteri'](bd['TEXTURE_2D'],bd[pm(0x575)],bd[pm(0x38e)]),bd['tex']=bn,bd[pm(0x39d)](bj),bd[pm(0x619)](bd['ARRAY_BUFFER'],bh),bd[pm(0x8a4)](bj,0x2,bd[pm(0x579)],!0x1,0x0,0x0),bd[pm(0x39d)](bk),bd[pm(0x619)](bd[pm(0x8b4)],bi),bd[pm(0x43a)](bd[pm(0x7d9)],bn),bd[pm(0x8a4)](bk,0x2,bd['FLOAT'],!0x1,0x0,0x0);}['getPusherContent'](){var pn=oo;return this['options']?.[pn(0x4b5)]?.[pn(0x72a)]||(this[pn(0x35d)][pn(0x4b5)][pn(0x72a)]=wx[pn(0x736)]()),this[pn(0x35d)][pn(0x4b5)][pn(0x72a)];}async[oo(0x3a8)](){var po=oo;await this[po(0x3e0)](),this['start']();}async[oo(0x3e0)](){var pp=oo;let bd,be;bd=await this[pp(0x6bc)](pp(0x750));const bf=()=>{setTimeout(async bg=>{var pq=a0b;be=await this['authScope'](pq(0x482)),''===be?bf():bd&&be||await this[pq(0x989)]();},0x1f4);};bf();}async[oo(0x989)](){return new Promise((bd,be)=>{var pr=a0b;wx['showModal']({'content':ad['Z']['t']('0002'),'confirmText':ad['Z']['t'](pr(0x471)),'showCancel':!0x1,'success':bf=>{var ps=pr;bf[ps(0x797)]?wx[ps(0x989)]({'success':bg=>{var pt=ps;console[pt(0x5a1)](pt(0x2ba),bg),bg[pt(0x5da)]['scope.record']&&bg[pt(0x5da)][pt(0x482)]&&a4['Nd'][pt(0x3a6)](pt(0x8e5),{'code':ae['U']['AUTH_NEED_RELOAD_PAGE'],'message':ad['Z']['t'](pt(0x420))}),this[pt(0x3e0)]()[pt(0x341)](()=>{bd();});},'fail':()=>{bd();}}):bf[ps(0x3a1)]&&bd();}});});}async[oo(0x6bc)](bd){return new Promise(async be=>{var pu=a0b;const bf=await this[pu(0x80e)]();return'scope.camera'===bd&&void 0x0===bf[bd]?be(''):bf[bd]?be(!0x0):void wx[pu(0x3e0)]({'scope':bd,'success'(){be(!0x0);},'fail'(){be(!0x1);}});});}async[oo(0x80e)](){return new Promise((bd,be)=>{var pv=a0b;wx[pv(0x80e)]({'success':bf=>{bd(bf['authSetting']);},'fail':()=>{be();}});});}['generatePusherData'](){var pw=oo;ah?(this[pw(0x7ab)][pw(0x26b)][pw(0x761)](),this[pw(0x311)][pw(0x6ca)](this['stage'])):(this['gl'][pw(0x4ca)](this['gl'][pw(0x7d9)],0x0,0x0,0x0,this['gl'][pw(0x713)],this['gl'][pw(0x7b2)],this[pw(0x35d)][pw(0x595)]),this['gl'][pw(0x4ac)](this['gl'][pw(0x6e5)],0x0,0x4)),this['gl'][pw(0x339)](0x0,0x0,this[pw(0x2c8)],this['realHeight'],this['gl']['RGBA'],this['gl'][pw(0x7b2)],this[pw(0x65a)]),this[pw(0x8a1)]=!0x0;}[oo(0x4fa)](){var px=oo;const bd=this[px(0x607)]();bd[px(0x3c7)](px(0x31e),()=>{var py=px;if(this[py(0x228)]['drawImage'](bd,0x0,0x0),this[py(0x70e)][py(0x26b)][py(0x761)](),this[py(0x8a1)])return this[py(0x65a)][py(0x331)];});}['stop'](){var pz=oo;this[pz(0x607)]()[pz(0x3c7)]('frame',null);}[oo(0x815)](){var pA=oo;this[pA(0x70e)]=null,this[pA(0x613)](),this['generatePusherData']=null;}}class ao extends a4['Q4']{[oo(0x70e)];[oo(0x2b1)];['options'];['cameraContext'];constructor(bd){var pB=oo;const be={...bd,'width':bd[pB(0x260)]/0x1,'height':bd['height']/0x1};super(),this[pB(0x35d)]=be;}async['init'](){var pC=oo;console['log'](pC(0x19e)),await this['authorize'](),await this[pC(0x2ea)]();}async[oo(0x3e0)](){var pD=oo;let bd,be;bd=await this[pD(0x6bc)](pD(0x750));const bf=()=>{setTimeout(async bg=>{var pE=a0b;be=await this[pE(0x6bc)](pE(0x482)),''===be?bf():bd&&be||await this[pE(0x989)]();},0x1f4);};bf();}async[oo(0x989)](){return new Promise((bd,be)=>{var pF=a0b;wx[pF(0x810)]({'content':ad['Z']['t'](pF(0x32c)),'confirmText':ad['Z']['t'](pF(0x471)),'showCancel':!0x1,'success':bf=>{var pG=pF;bf['confirm']?wx[pG(0x989)]({'success':bg=>{var pH=pG;console[pH(0x5a1)](pH(0x2ba),bg),bg[pH(0x5da)][pH(0x750)]&&bg['authSetting']['scope.camera']&&a4['Nd'][pH(0x3a6)](pH(0x8e5),{'code':ae['U'][pH(0x6cb)],'message':ad['Z']['t'](pH(0x420))}),this['authorize']()[pH(0x341)](()=>{bd();});},'fail':()=>{bd();}}):bf[pG(0x3a1)]&&bd();}});});}async[oo(0x6bc)](bd){return new Promise(async be=>{var pI=a0b;const bf=await this['getSetting']();return pI(0x482)===bd&&void 0x0===bf[bd]?be(''):bf[bd]?be(!0x0):void wx['authorize']({'scope':bd,'success'(){be(!0x0);},'fail'(){be(!0x1);}});});}async[oo(0x80e)](){return new Promise((bd,be)=>{var pJ=a0b;wx[pJ(0x80e)]({'success':bf=>{var pK=pJ;bd(bf[pK(0x5da)]);},'fail':()=>{be();}});});}async['initCameraIns'](){var pL=oo;const bd=wx[pL(0x76b)]();this['cameraContext']=bd;const be=bd[pL(0x7da)](bf=>{this['frame']=bf;});this['listener']=be,this[pL(0x4fa)]();}[oo(0x339)](){var pM=oo;return this[pM(0x31e)];}async[oo(0x756)](bd){return new Promise((be,bf)=>{var pN=a0b;this[pN(0x455)][pN(0x756)]({'timeoutCallback':bg=>{var pO=pN;console['log'](pO(0x4d2),bg),this['trigger']('timeout',bg),be(bg);},'success':bg=>{bd&&bd(),be(bg);},'fail':bg=>{var pP=pN;a4['Nd'][pP(0x3a6)](pP(0x8e5),{'code':ae['U']['START_REACORD_FAIL'],'message':ad['Z']['t']('0009'),'error':bg});}});});}async[oo(0x246)](){return new Promise((bd,be)=>{var pQ=a0b;this[pQ(0x455)][pQ(0x246)]({'success':bf=>{bd(bf);},'fail':bf=>{var pR=pQ;a4['Nd'][pR(0x3a6)](pR(0x8e5),{'code':ae['U'][pR(0x649)],'message':ad['Z']['t'](pR(0x42c)),'error':bf});}});});}[oo(0x4fa)](){var pS=oo;this[pS(0x2b1)]['start']();}['stop'](){var pT=oo;this[pT(0x2b1)][pT(0x613)]();}[oo(0x815)](){var pU=oo;this['listener']&&(this[pU(0x2b1)]['stop'](),this['listener']=null),this[pU(0x70e)]&&(this['sprite']=null),this[pU(0x455)]&&(this['cameraContext']=null);}}class ap{[oo(0x70e)];[oo(0x35d)];constructor(bd){var pV=oo;this[pV(0x35d)]=bd;}[oo(0x815)](){var pW=oo;this['sprite'][pW(0x815)](!0x0);}async[oo(0x3a8)](){var pX=oo;if(!this[pX(0x70e)])return new Promise((bd,be)=>{var pY=pX;const bf=this[pY(0x35d)],{width:bg,height:bh,input:bi}=bf,bj=(new ac[(pY(0x4f8))](),wx[pY(0x4c0)]({'type':'2d','width':0x1,'height':0x1}));let bk=bj[pY(0x795)]();bk['onload']=()=>{var pZ=pY;bj[pZ(0x260)]=bk[pZ(0x260)],bj[pZ(0x307)]=bk['height'];const bl=bj[pZ(0x59f)]('2d');bl[pZ(0x3b6)](bk,0x0,0x0);const {data:bm}=bl[pZ(0x89e)](0x0,0x0,bk[pZ(0x260)],bk['height']),bn=ac[pZ(0x2f8)][pZ(0x777)](new Uint8Array(bm),bk[pZ(0x260)],bk[pZ(0x307)]);this['sprite']=new ac['Sprite'](bn),this[pZ(0x70e)][pZ(0x93f)][pZ(0x3b4)](0x1,-0x1),this[pZ(0x70e)][pZ(0x260)]=bg,this['sprite'][pZ(0x307)]=bh,this[pZ(0x70e)][pZ(0x1ce)][pZ(0x3b4)](0.5,0.5),this['sprite']['x']=bg/0x2,this[pZ(0x70e)]['y']=bh/0x2,bd();},bk[pY(0x489)]=bi;});}}const aq=wx[oo(0x71d)];class ar{[oo(0x2fc)]=null;['_target']=null;['_input']=null;constructor(bd){var q0=oo;const be={...bd,'width':bd[q0(0x260)]/0x1,'height':bd['height']/0x1};if(this[q0(0x22d)]=be,!be[q0(0x803)]){const {width:bf,height:bg}=be;let bh;bh=wx[q0(0x611)](),bh['width']=bf,bh[q0(0x307)]=bg,this['pixels']=new Uint8Array(bf*bg*0x4),this['canvas']=new aq['Canvas'](bh),this[q0(0x671)]=new ac[(q0(0x434))](),this[q0(0x311)]=new ac[(q0(0x651))]({'view':this['canvas'],'width':be[q0(0x260)],'height':be['height']}),this['gl']=this[q0(0x311)]['gl'],this[q0(0x4fd)]=()=>{var q1=q0;this[q1(0x6ca)]();},ac[q0(0x5fe)][q0(0x354)][q0(0x572)](this[q0(0x4fd)]);}}[oo(0x6ca)](){var q2=oo;const bd=this[q2(0x512)];if(bd&&bd[q2(0x6a7)]){if(!bd['tick']())return!0x1;}return this[q2(0x311)]['render'](this[q2(0x671)]),!0x0;}set[oo(0x512)](bd){var q3=oo;if(this['_input']=bd,this['_target']&&bd[q3(0x70e)]){this['_target'][q3(0x53c)][q3(0x280)](be=>{var q4=q3;this['_target'][q4(0x3b3)](be);});try{bd['sprite'][q3(0x93f)]['x']=bd[q3(0x70e)][q3(0x93f)]['x']/0x1,bd[q3(0x70e)]['scale']['y']=bd['sprite'][q3(0x93f)]['y']/0x1,this[q3(0x671)][q3(0x7cf)](bd[q3(0x70e)]);}catch(be){console[q3(0x5a1)](q3(0x4a2),be);}}}get[oo(0x512)](){var q5=oo;return this[q5(0x759)];}async[oo(0x87e)](bd){}[oo(0x815)](){var q6=oo;this[q6(0x4fd)]&&ac[q6(0x5fe)][q6(0x354)]['remove'](this[q6(0x4fd)]),this['renderer']&&this[q6(0x311)][q6(0x815)](!0x0),this[q6(0x671)]&&this[q6(0x671)][q6(0x815)](!0x0),this[q6(0x2fc)]&&(this[q6(0x2fc)]=null);}[oo(0x3a8)](bd){}[oo(0x339)](){var q7=oo;if(this['input'][q7(0x339)])return this[q7(0x512)][q7(0x339)]();const {width:bd,height:be}=this[q7(0x22d)];return this['gl'][q7(0x339)](0x0,0x0,bd,be,this['gl'][q7(0x713)],this['gl'][q7(0x7b2)],this['pixels']),{'data':this[q7(0x5ae)][q7(0x331)],'width':bd,'height':be};}[oo(0x550)](bd){var q8=oo;return bd[q8(0x331)][q8(0x2a0)](bd[q8(0x55c)],bd[q8(0x98e)]+bd['byteOffset']);}async['getCanvasNode'](){return new Promise(bd=>{var q9=a0b;wx['createSelectorQuery']()[q9(0x476)](q9(0x2ec))[q9(0x90e)]()['exec'](be=>{var qa=q9;const bf=be[0x0][qa(0x90e)];bd(bf);});});}}var as=a2(0x1419),au=a2(0x191);class av{['count']=0x0;[oo(0x779)];[oo(0x27e)];[oo(0x562)];[oo(0x1b1)];[oo(0x44e)]=!0x1;[oo(0x365)]=!0x1;['options'];constructor(bd){var qb=oo;this['options']=bd;const {canvas:be,fps:bf,audio:bg={}}=bd;this[qb(0x1e2)](be);const {onStart:bh,onStop:bi}=bg;this[qb(0x562)]=wx[qb(0x4ed)](),this['audioRecorder']['onStop'](bj=>{var qc=qb;this[qc(0x1b1)]=bj[qc(0x4d1)],this[qc(0x44e)]=!0x1,bi&&bi(bj);}),this['audioRecorder'][qb(0x96b)](()=>{var qd=qb;this[qd(0x44e)]=!0x0,bh&&bh();}),this[qb(0x779)]=wx[qb(0x7fd)]();}[oo(0x1e2)](bd){var qe=oo;try{let be={'duration':0x258,'fps':qe(0x8d0)===au['iN']||ag?0x1e:0x3c,'gop':0xc,'timeUpdateInterval':qe(0x8d0)===au['iN']||ag?0x1e:0x3c,'cumulativeStamp':!0x1,'videoBitsPerSecond':0xbb8};console[qe(0x5a1)](qe(0x8ce),be),this[qe(0x27e)]&&this[qe(0x27e)][qe(0x815)]()[qe(0x53e)](bg=>{});const bf=wx[qe(0x9b0)](bd,be);this[qe(0x27e)]=bf,bf['on']('start',()=>{var qf=qe;console[qf(0x5a1)]('recorder\x20start\x20success');});}catch(bg){a4['Nd']['trigger'](qe(0x8e5),{'code':ae['U'][qe(0x6c8)],'message':ad['Z']['t']('0008'),'error':bg});}}async[oo(0x4fa)](){var qg=oo;this[qg(0x27e)]&&(await this[qg(0x27e)][qg(0x4fa)]()[qg(0x53e)](bd=>{var qh=qg;a4['Nd'][qh(0x3a6)](qh(0x8e5),{'code':ae['U'][qh(0x6c8)],'message':ad['Z']['t']('0009')}),console['error'](qh(0x978),bd);}),await this[qg(0x702)](),this[qg(0x4e5)]=+new Date(),this['recording']=!0x0);}async['stop'](bd){var qi=oo;if(!this[qi(0x27e)])return;let be,bf;this['recording']=!0x1,this[qi(0x562)][qi(0x613)]();try{be=(await this[qi(0x27e)][qi(0x613)]())['tempFilePath'];}catch(bg){bd[qi(0x815)]||a4['Nd']['trigger']('error',{'code':ae['U']['STOP_REACORD_FAIL'],'message':ad['Z']['t'](qi(0x42c)),'error':bg});}if(console[qi(0x5a1)]('stop\x20record',be),be)try{const {videoTrack:bh}=await this['getTracks'](be);let bi=[bh];if(bd[qi(0x56f)]){const {audioTrack:bj}=await this['getTracks'](bd[qi(0x56f)])[qi(0x53e)](bk=>{var qj=qi;console[qj(0x5a1)](qj(0x4cb),bk);});console[qi(0x5a1)]('musicTrack',bj),bj[qi(0x92e)]=qi(0x452),bi['push'](bj);}if(bd[qi(0x783)]){const bk=await this[qi(0x9f2)](),{audioTrack:bl}=await this[qi(0x6c6)](bk)[qi(0x53e)](bm=>{});bi[qi(0x3ef)](bl);}bf=await this['mergeTracks'](...bi)[qi(0x53e)](bm=>{});}catch(bm){bf={'tempFilePath':be};}try{this['videoRecorder'][qi(0x815)]();}catch(bn){console[qi(0x5a1)](qi(0x64a),bn);}try{this[qi(0x779)]['destroy']();}catch(bo){console[qi(0x5a1)]('mediaContainer\x20destroy\x20error',bo);}return this['videoRecorder']=null,bf;}async[oo(0x702)](){var qk=oo;const {audio:bd}=this[qk(0x35d)];return console[qk(0x5a1)]('zy\x20sdk\x20startAudioRecorder',bd),new Promise(be=>{var qm=qk;let bf,bg=()=>{var ql=a0b;this[ql(0x44e)]?(be(this[ql(0x44e)]),bf&&clearTimeout(bf)):bf=setTimeout(bg,0xa);};this['audioRecorder'][qm(0x4fa)]({'duration':0x927c0,'format':qm(0x25b),...bd}),bg();});}['getRecorder'](){var qn=oo;return this[qn(0x27e)];}async[oo(0x522)](){var qo=oo;this[qo(0x365)]&&this[qo(0x27e)]&&this[qo(0x44e)]&&await this[qo(0x27e)][qo(0x59a)]();}async[oo(0x6c6)](bd){return new Promise((be,bf)=>{var qp=a0b;this[qp(0x779)][qp(0x523)]({'source':bd,'success':async({tracks:bg})=>{var qq=qp;let bh,bi;for(let bj=0x0;bj<bg[qq(0x4ae)];bj++)qq(0x510)===bg[bj][qq(0x5b9)]?bi=bg[bj]:qq(0x4f5)===bg[bj][qq(0x5b9)]&&(bh=bg[bj]);be({'audioTrack':bi,'videoTrack':bh});},'fail'(bg){var qr=qp;console[qr(0x5a1)]('failed\x20to\x20separate\x20audio\x20track',bg),bf(bg);}});});}async[oo(0x50c)](bd,...be){return new Promise((bf,bg)=>{var qs=a0b;this['mediaContainer'][qs(0x40f)](bd),bd[qs(0x2a0)](0.06,bd['duration']),be['forEach'](bh=>{var qt=qs;this[qt(0x779)][qt(0x40f)](bh),qt(0x452)!==bh['_audioType']&&bh[qt(0x2a0)](bh[qt(0x252)]-bd[qt(0x252)]+0.06,0x2*bh[qt(0x252)]);}),this[qs(0x779)][qs(0x6f8)]({'success':bh=>{var qu=qs;this['mediaContainer'][qu(0x210)](bd),be[qu(0x280)](bi=>{var qv=qu;this[qv(0x779)][qv(0x210)](bi);}),bf(bh);},'fail':bh=>{var qw=qs;console[qw(0x5a1)](qw(0x993),bh),bg(bh);}});});}async[oo(0x9f2)](){return new Promise(bd=>{let be,bf=()=>{var qx=a0b;this[qx(0x1b1)]?(bd(this[qx(0x1b1)]),be&&clearTimeout(be),this['audioPath']=null):be=setTimeout(bf,0x14);};bf();});}}class aw extends a4['Q4']{[oo(0x70e)];[oo(0x35d)];[oo(0x4f5)];constructor(bd){var qy=oo;super(),this[qy(0x35d)]=bd;}['destroy'](){var qz=oo;try{this[qz(0x4f5)]&&this[qz(0x4f5)][qz(0x815)]();}catch(bd){}}async['init'](){var qA=oo;if(!this[qA(0x70e)])return this[qA(0x923)](),await this['start']()[qA(0x53e)](bd=>{var qB=qA;throw new Error(qB(0x95c));}),new Promise(async(bd,be)=>{let bf=async()=>{var qC=a0b;const bg=await this['tick']();if(console[qC(0x5a1)](qC(0x97f),bg),bg)return this[qC(0x259)]=!0x0,bd();setTimeout(()=>{bf();},0x64);};await bf();});}[oo(0x447)](){var qD=oo;return this[qD(0x4f5)][qD(0x1ae)]();}[oo(0x6a7)](){var qE=oo;const bd=this['video'][qE(0x1ae)]();if(!bd)return!0x1;const {width:be,height:bf,data:bg}=bd;if(this[qE(0x70e)])this[qE(0x70e)][qE(0x26b)]['baseTexture']['resource'][qE(0x8c4)]=new Uint8Array(bg),this[qE(0x70e)][qE(0x26b)][qE(0x761)]();else{const bh=ac['Texture'][qE(0x777)](new Uint8Array(bg),be,bf),bi=new ac['Sprite'](bh),bj=Math[qE(0x3ae)](this['options']['width']/be,this[qE(0x35d)][qE(0x307)]/bf);this[qE(0x70e)]=bi,bi['anchor']['set'](0.5,0.5),bi['x']=this[qE(0x35d)][qE(0x260)]/0x2,bi['y']=this[qE(0x35d)][qE(0x307)]/0x2;const bk=wx[qE(0x2eb)]();let {system:bl}=bk;-0x1===bl[qE(0x23d)]()[qE(0x50a)]('android')?bi['scale'][qE(0x3b4)](bj,bj):bi[qE(0x93f)][qE(0x3b4)](bj,-bj);}return!0x0;}[oo(0x923)](){var qF=oo;const bd=wx[qF(0x9d1)]();return this[qF(0x4f5)]=bd,bd;}async[oo(0x4fa)](){return new Promise((bd,be)=>{var qG=a0b;const {input:bf,width:bg,height:bh}=this[qG(0x35d)];this[qG(0x4f5)]['on']('start',()=>{var qH=qG;console[qH(0x5a1)]('decoder\x20start\x20success',bf),bd();}),this['video']['on'](qG(0x536),()=>{var qI=qG;console[qI(0x5a1)]('decoder\x20buffer\x20change');}),this['video']['on'](qG(0x8e5),bi=>{var qJ=qG;console[qJ(0x5a1)](qJ(0x612),bi),be({'errMsg':qJ(0x612)});}),this['video']['on'](qG(0x7a3),()=>{var qK=qG;console[qK(0x5a1)](qK(0x60b)),this[qK(0x3a6)](qK(0x7a3));}),this[qG(0x4f5)][qG(0x4fa)]({'source':bf,'mode':0x1,'abortAudio':!0x0});});}async[oo(0x6cf)](bd){return new Promise((be,bf)=>{var qM=a0b;let bg=wx['createVideoDecoder']();bg['on']('error',bh=>{var qL=a0b;console[qL(0x5a1)](qL(0x310),bh),be(0x1e);}),bg['on'](qM(0x4fa),bh=>{var qN=qM;console['log'](qN(0x2af),bh[qN(0x1be)]),bg&&bg['stop']()[qN(0x53e)](bi=>{}),be(bh['fps']);}),bg['on'](qM(0x613),()=>{var qO=qM;bg&&bg['remove']()[qO(0x53e)](()=>{}),bg=null;}),bg[qM(0x4fa)]({'source':bd,'mode':0x1,'abortAudio':!0x0});});}[oo(0x613)](){var qP=oo;this[qP(0x4f5)][qP(0x613)]();}[oo(0x815)](){var qQ=oo;this[qQ(0x4f5)]['remove']();}}var ax=a2(0xc30),ay=a2(0x18a5),az=a2(0x1407),aA=a2(0xde1),aB=a2(0x218a),aC=a2(0x17dd),aD=function(){var qR=oo;return aD=Object[qR(0x961)]||function(bd){var qS=qR;for(var be,bf=0x1,bg=arguments[qS(0x4ae)];bf<bg;bf++)for(var bh in be=arguments[bf])Object[qS(0x32e)]['hasOwnProperty'][qS(0x8fb)](be,bh)&&(bd[bh]=be[bh]);return bd;},aD['apply'](this,arguments);},aE=function(bd,be,bf,bg){var qT=oo,bh,bi=arguments[qT(0x4ae)],bj=bi<0x3?be:null===bg?bg=Object[qT(0x639)](be,bf):bg;if(qT(0x804)==typeof Reflect&&qT(0x3b5)==typeof Reflect[qT(0x1ec)])bj=Reflect[qT(0x1ec)](bd,be,bf,bg);else{for(var bk=bd[qT(0x4ae)]-0x1;bk>=0x0;bk--)(bh=bd[bk])&&(bj=(bi<0x3?bh(bj):bi>0x3?bh(be,bf,bj):bh(be,bf))||bj);}return bi>0x3&&bj&&Object['defineProperty'](be,bf,bj),bj;},aF=function(bd,be){var qU=oo;if(qU(0x804)==typeof Reflect&&qU(0x3b5)==typeof Reflect['metadata'])return Reflect[qU(0x86b)](bd,be);},aG=function(bd,be,bf,bg){return new(bf||(bf=Promise))(function(bh,bi){var qY=a0b;function bj(bm){var qV=a0b;try{bl(bg[qV(0x479)](bm));}catch(bn){bi(bn);}}function bk(bm){var qW=a0b;try{bl(bg[qW(0x626)](bm));}catch(bn){bi(bn);}}function bl(bm){var qX=a0b,bn;bm[qX(0x79a)]?bh(bm['value']):(bn=bm[qX(0x4a9)],bn instanceof bf?bn:new bf(function(bo){bo(bn);}))[qX(0x341)](bj,bk);}bl((bg=bg[qY(0x6e8)](bd,be||[]))[qY(0x479)]());});},aH=function(bd,be){var qZ=oo,bf,bg,bh,bi,bj={'label':0x0,'sent':function(){if(0x1&bh[0x0])throw bh[0x1];return bh[0x1];},'trys':[],'ops':[]};return bi={'next':bk(0x0),'throw':bk(0x1),'return':bk(0x2)},qZ(0x3b5)==typeof Symbol&&(bi[Symbol[qZ(0x28f)]]=function(){return this;}),bi;function bk(bl){return function(bm){return function(bn){var r0=a0b;if(bf)throw new TypeError(r0(0x268));for(;bj;)try{if(bf=0x1,bg&&(bh=0x2&bn[0x0]?bg['return']:bn[0x0]?bg[r0(0x626)]||((bh=bg[r0(0x1bc)])&&bh[r0(0x8fb)](bg),0x0):bg[r0(0x479)])&&!(bh=bh[r0(0x8fb)](bg,bn[0x1]))[r0(0x79a)])return bh;switch(bg=0x0,bh&&(bn=[0x2&bn[0x0],bh[r0(0x4a9)]]),bn[0x0]){case 0x0:case 0x1:bh=bn;break;case 0x4:return bj[r0(0x8a7)]++,{'value':bn[0x1],'done':!0x1};case 0x5:bj['label']++,bg=bn[0x1],bn=[0x0];continue;case 0x7:bn=bj['ops']['pop'](),bj[r0(0x1e0)][r0(0x806)]();continue;default:if(!(bh=bj[r0(0x1e0)],(bh=bh['length']>0x0&&bh[bh['length']-0x1])||0x6!==bn[0x0]&&0x2!==bn[0x0])){bj=0x0;continue;}if(0x3===bn[0x0]&&(!bh||bn[0x1]>bh[0x0]&&bn[0x1]<bh[0x3])){bj[r0(0x8a7)]=bn[0x1];break;}if(0x6===bn[0x0]&&bj[r0(0x8a7)]<bh[0x1]){bj[r0(0x8a7)]=bh[0x1],bh=bn;break;}if(bh&&bj[r0(0x8a7)]<bh[0x2]){bj['label']=bh[0x2],bj[r0(0x22e)]['push'](bn);break;}bh[0x2]&&bj[r0(0x22e)][r0(0x806)](),bj['trys']['pop']();continue;}bn=be[r0(0x8fb)](bd,bj);}catch(bo){bn=[0x6,bo],bg=0x0;}finally{bf=bh=0x0;}if(0x5&bn[0x0])throw bn[0x1];return{'value':bn[0x0]?bn[0x1]:void 0x0,'done':!0x0};}([bl,bm]);};}},aI=(0x0,aC['jl'])(oo(0x8cd)),aJ=(0x0,au['rR'])('68,74,74,70,73,3a,2f,2f,77,65,62,61,72,2e,71,63,6c,6f,75,64,2e,63,6f,6d,2f,73,64,6b'),aK=(function(){var r2=oo;function bd(be,bf,bg,bh,bi){var r1=a0b;void 0x0===bh&&(bh=''),void 0x0===bi&&(bi=''),this['cd']=new a6['M'](),this[r1(0x956)]=be,this[r1(0x980)]=bf+'',this[r1(0x728)]=bg,this['wechatAppId']=bh,this['c']=new az['Y']();}return Object[r2(0x85d)](bd[r2(0x32e)],r2(0x24b),{'get':function(){var r3=r2,be,bf=r3(0x934)['split']('.');return be=0x0==bf[0x0]&&bf[0x1]<0x3?'v0':0x0==bf[0x0]&&0x3==bf[0x1]&&bf[0x2]<0x4?'v1':'v2',aI['info']('sdk\x20version',be),be;},'enumerable':!0x1,'configurable':!0x0}),Object[r2(0x85d)](bd['prototype'],r2(0x5f0),{'set':function(be){var r4=r2;console[r4(0x5a1)](r4(0x97d),be),ad['Z'][r4(0x3c4)]=be;},'enumerable':!0x1,'configurable':!0x0}),bd[r2(0x32e)][r2(0x657)]=function(){return aG(this,void 0x0,void 0x0,function(){return aH(this,function(be){var r5=a0b;switch(be[r5(0x8a7)]){case 0x0:return[0x4,this[r5(0x728)]()];case 0x1:return[0x2,be['sent']()];}});});},bd[r2(0x32e)][r2(0x7e3)]=function(){return aG(this,void 0x0,void 0x0,function(){var be,bf,bg;return aH(this,function(bh){var r6=a0b;switch(bh[r6(0x8a7)]){case 0x0:return[0x4,this['c']['init']()];case 0x1:return bh[r6(0x475)](),[0x4,this['_ts']()];case 0x2:return be=bh['sent'](),[0x4,this['exsureAuthData']()];case 0x3:return bf=bh[r6(0x475)](),bg=this['c'][r6(0x884)](be+'',this[r6(0x516)],this['appid']),[0x2,aD(aD({},bf),{'key':bg,'sdkts':be})];}});});},bd[r2(0x32e)]['_ts']=function(){return aG(this,void 0x0,void 0x0,function(){var be,bf,bg=this;return aH(this,function(bh){var r7=a0b;switch(bh[r7(0x8a7)]){case 0x0:return[0x4,this['_uc']()];case 0x1:return be=bh[r7(0x475)](),bf=''[r7(0x1a4)](aJ)['concat'](be['ti']),[0x2,new Promise(function(bi,bj){var r8=r7;wx[r8(0x2c3)]({'url':bf,'method':'POST','header':{},'success':function(bk){var r9=r8,bl=bk[r9(0x8c4)],bm=bg['c'][r9(0x36c)](bl),bn=JSON['parse'](bm);bi(bn[(0x0,au['rR'])(au['gz'])]);},'fail':function(bk){var ra=r8;console[ra(0x5a1)](ra(0x31a),bk),bi(bk);}});})];}});});},bd[r2(0x32e)]['_f']=function(be,bf){return aG(this,void 0x0,void 0x0,function(){var bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt=this;return aH(this,function(bu){var rb=a0b;switch(bu[rb(0x8a7)]){case 0x0:return bg=rb(0x7f7)===bf[rb(0x9b7)]&&JSON[rb(0x975)](bf),this[rb(0x75c)]?[0x3,0x2]:(bh=this,[0x4,this[rb(0x7e3)]()]);case 0x1:bh[rb(0x75c)]=bu[rb(0x475)](),bu[rb(0x8a7)]=0x2;case 0x2:return bi=function(){return aG(bt,void 0x0,void 0x0,function(){var bv,bw,bx=this;return aH(this,function(by){var rc=a0b;switch(by[rc(0x8a7)]){case 0x0:return bf[rc(0x1a0)]=this[rc(0x24b)],bv=this['c'][rc(0x170)](JSON[rc(0x975)](Object[rc(0x961)]({'LicenseKey':this['license'],'AccountArea':'en'===ad['Z'][rc(0x3c4)]?0x1:0x0},bf))),bw={'p':bv},[0x4,new Promise(function(bz,bA){var rd=rc;wx[rd(0x2c3)]({'url':be,'method':rd(0x763),'header':{'content-type':rd(0x8e3),'appid':bx[rd(0x980)],'timestamp':bx[rd(0x75c)][rd(0x886)],'signature':bx['had'][rd(0x3e9)],'authorize':bx[rd(0x75c)][rd(0x8c9)],'wechatappid':bx[rd(0x516)],'sdktimestamp':bx[rd(0x75c)][rd(0x44c)]+'','Language':'en'===ad['Z'][rd(0x3c4)]?rd(0x888):'zh-CN'},'data':bw,'success':function(bB){var re=rd,bC=bB['data'],bD=bx['c'][re(0x36c)](bC);bz(JSON[re(0x9d4)](bD));},'fail':function(bB){var rf=rd;console['log'](rf(0x31a),bB),bz(bB);}});})];case 0x1:return[0x2,by[rc(0x475)]()];}});});},bg?[0x3,0x3]:(bk=!0x1,[0x3,0x6]);case 0x3:return rb(0x225)!==aA['Z'][rb(0x40e)](bg)?[0x3,0x5]:(bl=0x0,[0x4,new Promise(function(bv,bw){var bx=function(){bl++,bj=setTimeout(function(){var rg=a0b;rg(0x225)!==aA['Z'][rg(0x40e)](bg)?(clearTimeout(bj),bv(void 0x0),bk=!0x0):bl<0xa?bx():(clearTimeout(bj),bv(void 0x0),bk=!0x1);},0x12c);};bx();})]);case 0x4:return bu[rb(0x475)](),[0x3,0x6];case 0x5:aA['Z']['has'](bg)?(bk=!0x0,bm=aA['Z'][rb(0x40e)](bg),bn=bm[(0x0,au['rR'])(au['Eh'])],((bo=+new Date())-0x3e8*bn>0x927c0||0x3e8*bn>bo+0x927c0)&&(bk=!0x1)):(aA['Z'][rb(0x3b4)](bg,rb(0x225)),bk=!0x1),bu[rb(0x8a7)]=0x6;case 0x6:return bk?(bq=aA['Z'][rb(0x40e)](bg),[0x3,0x9]):[0x3,0x7];case 0x7:return[0x4,bi()];case 0x8:bq=bu[rb(0x475)](),bu[rb(0x8a7)]=0x9;case 0x9:return 0x65!=(bp=bq)[rb(0x9ef)]?[0x3,0xc]:(br=this,[0x4,this[rb(0x7e3)]()]);case 0xa:return br[rb(0x75c)]=bu[rb(0x475)](),[0x4,bi()];case 0xb:return bp=bu['sent'](),[0x3,0x10];case 0xc:return 0x6a!=bp[rb(0x9ef)]?[0x3,0xf]:(bs=this,[0x4,this[rb(0x7e3)]()]);case 0xd:return bs[rb(0x75c)]=bu[rb(0x475)](),[0x4,bi()];case 0xe:return bp=bu[rb(0x475)](),[0x3,0x10];case 0xf:0x0!==bp[rb(0x9ef)]&&(bg&&aA['Z'][rb(0x588)](bg),0x65==bp[rb(0x9ef)]?a4['Nd']['trigger'](rb(0x8e5),{'code':ae['U'][rb(0x4d8)],'message':'Signature\x20timeout,\x20retry\x20failed.'}):0x6a==bp[rb(0x9ef)]?a4['Nd'][rb(0x3a6)](rb(0x8e5),{'code':ae['U'][rb(0x470)],'message':rb(0x164)}):a4['Nd'][rb(0x3a6)](rb(0x8e5),{'code':ae['U'][rb(0x3f0)],'message':bp[rb(0x2c2)]})),bu[rb(0x8a7)]=0x10;case 0x10:return 0x0===bp[rb(0x9ef)]?(bp['WeChatAppId']!==this[rb(0x516)]&&(a4['Nd'][rb(0x3a6)](rb(0x8e5),{'code':ae['U'][rb(0x565)],'message':ad['Z']['t'](rb(0x801))}),bp={'Code':-0x1,'Data':{}}),bg&&aA['Z'][rb(0x3b4)](bg,bp)):aA['Z']['remove'](bg),[0x2,bp];}});});},bd[r2(0x32e)]['_uc']=function(){return aG(this,void 0x0,void 0x0,function(){return aH(this,function(be){var rh=a0b;switch(be[rh(0x8a7)]){case 0x0:return[0x4,this['cd'][rh(0x87e)]()];case 0x1:return be[rh(0x475)](),[0x2,this['cd'][rh(0x41e)](0x1e)];}});});},bd['prototype'][r2(0x42f)]=function(){var ri=r2;return!(ri(0x804)!=typeof navigator||'string'!=typeof navigator[ri(0x42e)]||!/electron/i[ri(0x2e3)](navigator[ri(0x42e)])||location['host']&&(ri(0x940)!=typeof location[ri(0x377)]||!location[ri(0x377)]['startsWith'](ri(0x587))));},bd[r2(0x32e)]['go']=function(){return aG(this,void 0x0,void 0x0,function(){var be,bf,bg,bh,bi,bj;return aH(this,function(bk){var rj=a0b;switch(bk[rj(0x8a7)]){case 0x0:return bk[rj(0x1e0)][rj(0x3ef)]([0x0,0x3,,0x4]),[0x4,this['_uc']()];case 0x1:return be=bk['sent'](),[0x4,this['_f'](''[rj(0x1a4)](aJ)['concat'](be['au']),{})];case 0x2:return bf=bk[rj(0x475)](),bg=(bf[rj(0x345)]||{})[(0x0,au['rR'])(au['hJ'])]||[],bh=[],bi=Object['entries'](au['ty']),bg[rj(0x280)](function(bl){var rk=rj,bm=(0x0,au['$G'])(bl),bn=bi[rk(0x2a4)](function(bo){return bo[0x1]===bm;});bh['push'](bn[0x0]);}),aA['Z'][rj(0x3b4)]((0x0,au['rR'])(au['Ty']),bh),[0x2,bf];case 0x3:return bj=bk['sent'](),console[rj(0x5a1)](rj(0x5e4),bj),[0x2,new Error('fetch\x20auth\x20failed')];case 0x4:return[0x2];}});});},bd['prototype'][r2(0x629)]=function(be){return void 0x0===be&&(be={}),aG(this,void 0x0,void 0x0,function(){var bf,bg,bh,bi;return aH(this,function(bj){var rl=a0b;switch(bj[rl(0x8a7)]){case 0x0:return rl(0x7f7)===be[rl(0x9b7)]&&(void 0x0!==be['Label']&&''!==be[rl(0x2e5)]||(be['Label']=[ad['Z']['t'](rl(0x63f)),ad['Z']['t'](rl(0x894))])),[0x4,this[rl(0x78f)]()];case 0x1:return bf=bj[rl(0x475)](),[0x4,this['_f'](''[rl(0x1a4)](aJ)[rl(0x1a4)](bf['ae']),aD({'Type':rl(0x7e0),'PageNumber':0x0,'PageSize':0x3e8},be))];case 0x2:return(bg=bj['sent']())&&0x0==bg['Code']?(bh=bg[rl(0x345)][rl(0x7fa)],bi=[],(bi=rl(0x7f7)===be[rl(0x9b7)]?bh[rl(0x3b7)](function(bk){var rm=rl;return!(bk[rm(0x2e5)][rm(0x50a)](ad['Z']['t']('1004'))>-0x1&&!aL(rm(0x9b8))||bk[rm(0x2e5)][rm(0x50a)](ad['Z']['t'](rm(0x87f)))>-0x1&&!aL(rm(0x530))||bk['Label'][rm(0x50a)](ad['Z']['t'](rm(0x6d7)))>-0x1&&!aL('avatar_ar'));}):bh)[rl(0x280)](function(bk){var rn=rl;aA['Z'][rn(0x3b4)](bk[rn(0x6ff)],bk);}),[0x2,bi]):[0x2,bg];}});});},bd[r2(0x32e)][r2(0x312)]=function(be){return aG(this,void 0x0,void 0x0,function(){var bf,bg;return aH(this,function(bh){var ro=a0b;switch(bh['label']){case 0x0:return aA['Z'][ro(0x5c2)](be[ro(0x6ff)])?[0x2,aA['Z'][ro(0x40e)](be[ro(0x6ff)])]:[0x4,this['_uc']()];case 0x1:return bf=bh[ro(0x475)](),[0x4,this['_f'](''[ro(0x1a4)](aJ)[ro(0x1a4)](bf['ef']),be)];case 0x2:return(bg=bh[ro(0x475)]())&&0x0==bg[ro(0x9ef)]&&bg[ro(0x345)]&&bg[ro(0x345)][ro(0x177)]?(aA['Z']['set'](be[ro(0x6ff)],bg[ro(0x345)]),[0x2,bg['Data']]):bg[ro(0x345)]&&!bg['Data']['Url']?[0x2,{'message':ro(0x725)}]:[0x2,bg];}});});},bd[r2(0x32e)][r2(0x3ba)]=function(be){return void 0x0===be&&(be={}),aG(this,void 0x0,void 0x0,function(){var bf;return aH(this,function(bg){var rp=a0b;switch(bg['label']){case 0x0:return[0x4,this[rp(0x629)](be)];case 0x1:return(bf=bg['sent']())&&bf[rp(0x811)]&&bf[rp(0x811)][rp(0x4ae)]&&a4['Nd'][rp(0x3a6)]('error',{'code':ae['U'][rp(0x82a)],'message':ad['Z']['t']('0014')}),bf&&bf[rp(0x7fa)]?rp(0x7f7)===be[rp(0x9b7)]?[0x2,bf[rp(0x7fa)]]:[0x2,bf[rp(0x7fa)][rp(0x3b7)](function(bh){return'Custom'===bh['Type'];})]:[0x2,bf];}});});},bd[r2(0x32e)][r2(0x74b)]=function(){return aG(this,void 0x0,void 0x0,function(){var be;return aH(this,function(bf){var rq=a0b;switch(bf[rq(0x8a7)]){case 0x0:return[0x4,this[rq(0x629)]({'Type':rq(0x7f7),'Label':ad['Z']['t'](rq(0x504))})];case 0x1:return(be=bf['sent']())&&be[rq(0x7fa)]?[0x2,be['EffectList']]:[0x2,be];}});});},bd[r2(0x32e)][r2(0x48d)]=function(be){return aG(this,void 0x0,void 0x0,function(){var bf,bg;return aH(this,function(bh){var rr=a0b;switch(bh[rr(0x8a7)]){case 0x0:return bf=ad['Z']['t'](rr(0x6d7)),'VR'===be&&(bf=ad['Z']['t'](rr(0x87f))),[0x4,this[rr(0x629)]({'Type':rr(0x7f7),'Label':bf})];case 0x1:return(bg=bh[rr(0x475)]())&&bg[rr(0x7fa)]?[0x2,bg[rr(0x7fa)]]:[0x2,bg];}});});},bd=aE([aB['e'],aF('design:paramtypes',[String,String,Function,String,String])],bd);}()),aL=function(bd){var rs=oo,be=aA['Z'][rs(0x40e)]((0x0,au['rR'])(au['Ty'])),bf=Object[rs(0x19a)](au['ty'])['find'](function(bg){return bg[0x1]===(0x0,au['$G'])(bd);});return!(!be||!be['find'](function(bg){return bg===bf[0x0];}));},aM=a2(0xbe4),aN=a2(0xd9b),aO=a2['n'](aN),aP=!0x1;function aQ(bd,be){!aP&&bd&&(aP=!0x0,setTimeout(function(){var rt=a0b;new(aO())({'id':rt(0x96a)==bd?rt(0x972):rt(0x822),'uin':bd,'ext1':bd,'ext2':be,'reportApiSpeed':!0x0,'spa':!0x1});},0x3e8));}var aR=a2(0x12c9),aS=a2(0x2700);const {screenWidth:aT,screenHeight:aU}=af,aV=wx[oo(0x1ad)][oo(0x518)]+'/ar';class aW extends a4['Q4']{[oo(0x46f)]=null;[oo(0x72f)]=[];[oo(0x3b7)]=null;[oo(0x173)]=!0x1;constructor(bd){var ru=oo;const {auth:be,live:bf}=bd;super();const {licenseKey:bg,appId:bh,authFunc:bi}=be,bj=wx[ru(0x443)]();this[ru(0x8d7)]=new aK(bg,bh,bi,bj[ru(0x26d)]['appId']),aQ(bh),this['checkReady']=this['auth']['go']()[ru(0x341)](bk=>0x0===bk[ru(0x9ef)]&&(this['trigger'](ru(0x981)),this[ru(0x3a6)](ru(0x8a1)),!0x0))[ru(0x53e)](()=>!0x1),this[ru(0x831)]=bf;}async[oo(0x9cd)](){var rv=oo;this['getPusherContent']()[rv(0x9cd)]();}async['resetStickers'](){var rw=oo;const bd=this[rw(0x607)]();let be,bf;return this[rw(0x9cd)](),this[rw(0x46f)]&&(be=new Promise((bg,bh)=>{var rx=rw;bd['applySticker']({'type':rx(0x663),'stickers':[{'id':this['background']['id'],'title':this[rx(0x46f)]['id'],'len':0x1,'active':-0x1,'path':this['background'][rx(0x28d)],'segtype':0x0}],'success':bi=>{bg(bi);},'fail':bh});})),this[rw(0x72f)][rw(0x4ae)]&&(bf=new Promise((bg,bh)=>{var ry=rw;bd[ry(0x264)]({'type':ry(0x686),'stickers':this[ry(0x72f)][ry(0x5bf)](bi=>({'id':bi['id'],'title':bi['id'],'len':0x1,'active':-0x1,'pos':bi[ry(0x695)],'path':bi[ry(0x28d)],'segtype':0x0})),'success':bi=>{bg(bi);},'fail':bh});})),Promise['all']([be,bf]);}async[oo(0x2da)](bd=[]){var rz=oo;const be=bd[rz(0x5bf)](async bf=>{var rA=rz;const [bg,bh]=this['getFilename'](bf[rA(0x90b)]);return bf['id']=bg,bf[rA(0x28d)]=await this['getZipDataPath'](bf[rA(0x90b)],bg,bh),bf;});return Promise['all'](be);}async[oo(0x312)](bd){var rB=oo;if(rB(0x231)===bd)return{'Url':rB(0x4af)};return await this['auth'][rB(0x312)]({'EffectId':bd});}[oo(0x607)](){var rC=oo;return this['config']['pusherContext']||(this['config']['pusherContext']=wx[rC(0x736)]()),this[rC(0x831)][rC(0x72a)];}[oo(0x673)](bd=''){var rD=oo;const be=bd['split']('/'),bf=be[be['length']-0x1]||rD(0x17f),bg=parseInt(new Date()[rD(0x8be)]()/0x3e8);let [bh=rD(0x2e3),bi=rD(0x654)]=bf[rD(0x329)]('.');return bh=bh[rD(0x99b)](/[^a-zA-Z0-9]/g,'')+bg,[bh,bi];}async['getImageSize'](bd){return new Promise((be,bf)=>{wx['getImageInfo']({'src':bd,'success':bg=>{be({'width':bg['width'],'height':bg['height']});},'fail':bf});});}async[oo(0x324)](bd,be){await(0x0,aS['sN'])(aV);const bf=aV+'/'+bd,bg=await(0x0,aS['nH'])(bf),bh=wx['getFileSystemManager']();if(!bg){const bi=await(0x0,aS['pe'])(bd,be);await new Promise((bj,bk)=>{var rE=a0b;bh[rE(0x401)]({'zipFilePath':bi,'targetPath':bf,'success':bj,'fail':bk,'complete':()=>{bh['unlink']({'filePath':bi});}});});}return new Promise((bj,bk)=>{var rF=a0b;bh[rF(0x60d)]({'filePath':bf+rF(0x556),'encoding':rF(0x669),'success':({data:bl})=>{var rG=rF;const bm=JSON[rG(0x9d4)](bl);bj([bf,bm]);},'fail':bk});});}async[oo(0x3bd)](bd){return new Promise((be,bf)=>{var rH=a0b;wx['request']({'url':bd,'responseType':rH(0x745),'success':bg=>{const {data:bh}=bg;be(bh);},'fail':bg=>{bf(bg);}});});}async[oo(0x3c9)](bd,be,bf){var rI=oo;await(0x0,aS['sN'])(aV);const bg=aV+'/'+be+'.zip';if(await(0x0,aS['nH'])(bg))return bg;const bh=await this[rI(0x3bd)](bd),bi=new Uint8Array(bh),bj=(0x0,aR['Xo'])({[be+rI(0x8df)+bf]:bi});return await new Promise((bk,bl)=>{var rJ=rI;wx[rJ(0x162)]()[rJ(0x618)]({'filePath':bg,'data':bj[rJ(0x331)],'encoding':rJ(0x746),'success':()=>{bk();},'fail':bm=>{bl(bm);}});}),bg;}async[oo(0x5d0)](bd){var rK=oo;const {type:be,src:bf=''}=bd;if(rK(0x3fe)!==be)return new Error(rK(0x160));if(!bf)return this[rK(0x46f)]=null,this[rK(0x227)]();if(!await this[rK(0x4b6)])throw this[rK(0x3a6)](rK(0x8e5),{'code':ae['U'][rK(0x565)],'message':rK(0x896)}),new Error(rK(0x896));return[this[rK(0x46f)]]=await this['transSticker']([{'url':bf}]),this[rK(0x227)]();}async[oo(0x878)](bd){var rL=oo;let be=wx[rL(0x162)]();return new Promise((bf,bg)=>{be['unlink']({'filePath':bd,'success':bf,'fail':bg});});}async[oo(0x652)](bd,be=0x1){var rM=oo;this[rM(0x3b7)]=[bd,be];const bf=this[rM(0x607)]();return new Promise((bg,bh)=>{var rN=rM;bf[rN(0x83a)]({'path':bd,'md5':'','alpha':be,'success':bg,'fail':bh});});}async[oo(0x627)](bd=[]){var rO=oo;if(!bd?.[rO(0x4ae)])return;if(!await this['checkReady'])throw this[rO(0x3a6)](rO(0x8e5),{'code':ae['U'][rO(0x565)],'message':rO(0x896)}),new Error(rO(0x896));if(!nodeId)throw new Error(rO(0x399));return this['stickers']=await this['transSticker'](bd),this[rO(0x227)]();}async['setFilter'](bd,be=0x1){var rP=oo;if(!await this[rP(0x4b6)])throw this[rP(0x3a6)]('error',{'code':ae['U']['AUTH_FAIL'],'message':'Arsdk\x20is\x20not\x20ready'}),new Error(rP(0x896));const {Url:bf}=await this[rP(0x312)](bd),[bg,bh]=await this['preloadVcubeFile'](bd,bf),bi=bg+'/'+bh[rP(0x3b7)][0x0]['src'];return await(0x0,aS['nH'])(bi),this[rP(0x652)](bi,be);}[oo(0x4c3)](){var rQ=oo;if(this[rQ(0x173)])return;this[rQ(0x173)]=!0x0;const bd=this[rQ(0x607)]();bd[rQ(0x9cd)](),bd['clearFilters']();}async[oo(0x4b4)](){var rR=oo;if(this[rR(0x173)])return this['disabled']=!0x1,this[rR(0x3b7)]&&await this[rR(0x652)](...this[rR(0x3b7)]),this['resetStickers']();}}const aX=0x0,aY=0x2,aZ=0x3,b0=0x4,b1={'whiten':0x0,'dermabrasion':0x0,'lift':0x0,'shave':0x0,'eye':0x0,'chin':0x0};class b2 extends a4['Q4']{[oo(0x759)];[oo(0x2b6)];[oo(0x5c8)]=!0x1;[oo(0x970)];[oo(0x22d)];['_renderFunc'];['renderSprite'];['outputCanvas'];['outputRenderer'];[oo(0x775)]=[];[oo(0x53d)]=new Map();[oo(0x87b)];['input_type'];[oo(0x86c)]=0x0;[oo(0x1e9)]=!0x1;[oo(0x921)]=!0x1;['disabled']=!0x1;['el']=new ay['e']({});['takePhotoPromises']=[];get['enableFaceDetect'](){var rS=oo;return!this[rS(0x173)]&&(this[rS(0x1e9)]||this[rS(0x921)]);}[oo(0x4c3)](){var rT=oo;this[rT(0x173)]||(this[rT(0x173)]=!0x0,this[rT(0x970)]&&this[rT(0x970)]['disable']());}[oo(0x4b4)](){var rU=oo;this[rU(0x173)]&&(this[rU(0x173)]=!0x1,this[rU(0x970)]&&this[rU(0x970)][rU(0x4b4)]());}constructor(bd){var rV=oo;ac[rV(0x5de)](),super();const {auth:be,input:bf,live:bg,camera:bh,beautify:bi,loading:bj,output:bk,plugin3d:bl,language:bm}=bd;if(getEventBus(),ad['Z'][rV(0x3c4)]=bm||'zh',bf){if(rV(0x940)!=typeof bf)return void a4['Nd']['trigger'](rV(0x8e5),{'message':ad['Z']['t'](rV(0x17b)),'code':ae['U'][rV(0x3ed)]});this[rV(0x4fb)]=aZ;}else{if(bh)this[rV(0x4fb)]=aX;else{if(!bg||!bg[rV(0x72a)])return void a4['Nd'][rV(0x3a6)](rV(0x8e5),{'message':ad['Z']['t'](rV(0x1f2)),'code':ae['U'][rV(0x3ed)]});if(this[rV(0x4fb)]=b0,rV(0x386)===bg[rV(0x68e)])return new aW(bd);if(!al)throw new Error(rV(0x458));}}this['isReadyPromise']=this[rV(0x8fa)](be);const bn={'input':bf,'live':bg,'mirror':this[rV(0x4fb)]===aX&&bh[rV(0x586)],'beautify':bi,'plugin3d':bl,'output':new wx[(rV(0x71d))][(rV(0x474))](bk)};bj&&bj[rV(0x4b4)]&&(bn[rV(0x1e6)]=bj[rV(0x4b4)],bn[rV(0x9fe)]={'size':bj['size'],'lineWidth':bj[rV(0x6fc)],'strokeColor':bj[rV(0x5be)]}),this['_options']=bn,this[rV(0x7c9)](bf||bh||bg)[rV(0x341)](({width:bo,height:bp})=>{var rW=rV;this[rW(0x22d)]['width']=bo,this[rW(0x22d)][rW(0x307)]=bp,rW(0x8d0)===au['iN']&&this[rW(0x4fb)]!==b0&&(this[rW(0x9d7)]=new wx[(rW(0x71d))][(rW(0x474))](wx[rW(0x4c0)]({'type':rW(0x174),'width':this[rW(0x22d)][rW(0x260)],'height':this[rW(0x22d)][rW(0x307)]})),this[rW(0x839)]=new ac['Renderer']({'view':this[rW(0x9d7)],'width':this['_options'][rW(0x260)],'height':this[rW(0x22d)]['height'],'preserveDrawingBuffer':!0x0,'antialias':!0x1})),this[rW(0x3a8)](),aQ(be[rW(0x35b)],be['sdkAppId']);}),wx[rV(0x996)](()=>{var rX=rV;console[rX(0x5a1)](rX(0x50f)),this['el'][rX(0x5a7)](),(0x0,aM['UI'])();});}async[oo(0x7c9)](bd){var rY=oo;if(this[rY(0x4fb)]===b0){let be=bd?.['pushSize'];return be?.[rY(0x3d5)]&&be?.['realWidth']||(be=b2['getRealSize'](0x2d0)),{'width':be?.[rY(0x2c8)],'height':be?.[rY(0x3d5)]};}return this[rY(0x4fb)]===aX?{'width':bd['width'],'height':bd['height']}:'string'==typeof bd?new Promise((bf,bg)=>{var s0=rY;const bh=wx['createCanvas']('2d')['createImage']();bh['onload']=()=>{var rZ=a0b;bf({'width':bh[rZ(0x260)],'height':bh[rZ(0x307)]});},bh[s0(0x230)]=function(){var s1=s0;a4['Nd'][s1(0x3a6)](s1(0x8e5),{'message':ad['Z']['t'](s1(0x3ff)),'code':ae['U'][s1(0x3ed)]}),bg();},bh['src']=bd;}):void 0x0;}['init'](){var s2=oo;wx[s2(0x5eb)]=this['_options'][s2(0x595)][s2(0x5eb)],wx[s2(0x20b)]=this[s2(0x22d)][s2(0x595)]['cancelAnimationFrame'],this[s2(0x2b6)]=ak?new ab(this[s2(0x22d)]):new a7(),this[s2(0x759)]=new ar({...this[s2(0x22d)],'manual':this[s2(0x4fb)]===aX}),this[s2(0x970)]=new as['g'](this['_options']),this[s2(0x6e4)]=this['getInputNode'](),Promise[s2(0x28a)]([this[s2(0x4e1)][s2(0x341)](()=>this[s2(0x3a6)](s2(0x981))),this['_initCommonResLoader'](),this[s2(0x6e4)][s2(0x3a8)](),this[s2(0x2b6)]['init'](),this['_renderer'][s2(0x16b)]('default',this[s2(0x22d)][s2(0x15f)]||{})])[s2(0x341)](()=>{var s3=s2;this['_input'][s3(0x512)]=this[s3(0x6e4)],this[s3(0x5ef)](this[s3(0x22d)][s3(0x15f)]),this['_ready']||(this[s3(0x3a6)](s3(0x8a1)),this[s3(0x5c8)]=!0x0),this[s3(0x707)]();}),a4['Nd']['on']('error',bd=>{var s4=s2;this[s4(0x3a6)](s4(0x8e5),bd);});}[oo(0x707)](){var s5=oo;this[s5(0x4fd)]=async()=>{var s6=s5;const bd='low'===this[s6(0x22d)][s6(0x4b5)]?.[s6(0x1be)]?0x4:0x2;this[s6(0x86c)]%bd==0x0&&this[s6(0x6ca)]()[s6(0x53e)](be=>console['log'](s6(0x49a),be)),this[s6(0x86c)]++,this[s6(0x86c)]>=0x4&&(this[s6(0x86c)]=0x0);},ac[s5(0x5fe)][s5(0x354)][s5(0x572)](this[s5(0x4fd)]);}[oo(0x5ee)](bd){var s7=oo;const be=+new Date();console[s7(0x5a1)](bd+s7(0x79e)+(be-this['currentTime'])),this[s7(0x561)]=be;}async[oo(0x6ca)](){var s8=oo;if(this[s8(0x74f)])return;const bd=this['_input'][s8(0x339)]();if(this['enableFaceDetect']){if(!bd)return!0x1;const be=await this['_detector'][s8(0x200)](bd),{landmarks:bf,angles:bg,meshVertex:bh,lipVertex:bi}=be;this[s8(0x970)]['setMesh'](bh),this[s8(0x970)][s8(0x1d8)](bf),this[s8(0x970)]['tick']({'landmarks':bf,'meshVertex':bh,'lipVertex':bi,'angles':bg,'image':this[s8(0x4fb)]===b0?this[s8(0x759)][s8(0x2fc)]:bd,'isLivePusher':this['input_type']===b0});}else this[s8(0x970)][s8(0x6a7)]({'landmarks':[],'meshVertex':[],'lipVertex':[],'angles':{},'image':this[s8(0x4fb)]===b0?this[s8(0x759)]['canvas']:bd,'isLivePusher':this[s8(0x4fb)]===b0});this['recordRender'](),this[s8(0x4ff)](),this[s8(0x9d2)]();}[oo(0x51c)](){var s9=oo;if(this[s9(0x365)]){if('offscreen'===au['iN']){if(this[s9(0x851)]=new Date(),this[s9(0x6a4)])this[s9(0x6a4)]['texture']['update']();else{let bd=ac['Texture'][s9(0x615)](this[s9(0x970)][s9(0x39c)]);this[s9(0x6a4)]=new ac[(s9(0x41b))](bd),this['renderSprite'][s9(0x1ce)]['set'](0.5,0.5),this[s9(0x6a4)]['position']['x']=this[s9(0x6a4)][s9(0x260)]/0x2,this[s9(0x6a4)]['position']['y']=this[s9(0x6a4)][s9(0x307)]/0x2,!ag||'8.0.28'!=ai&&s9(0x911)!=ai&&s9(0x5c1)!=ai?this[s9(0x6a4)][s9(0x93f)][s9(0x3b4)](0x1,0x1):this[s9(0x6a4)]['scale'][s9(0x3b4)](0x1,-0x1);}this[s9(0x839)][s9(0x6ca)](this[s9(0x6a4)]),this[s9(0x2f4)]||(this[s9(0x2f4)]=!0x0);}else this[s9(0x821)][s9(0x522)]();}else{if(this['takingPhoto']){const be=this[s9(0x970)][s9(0x1b4)]();this[s9(0x9cb)]=be;}}}async['startAuth'](bd){var sa=oo;const {licenseKey:be,appId:bf,authFunc:bg}=bd,bh=wx['getAccountInfoSync']();this['_a']=new aK(be,bf,bg,bh[sa(0x26d)][sa(0x35b)]);const bi=await this['_a']['go']();return 0x0!==bi?.[sa(0x9ef)]?(this[sa(0x3a6)](sa(0x8e5),{'code':ae['U']['AUTH_FAIL'],'message':bi[sa(0x2c2)]}),Promise[sa(0x852)](bi['Message'])):bi;}async['getEffectList'](bd={}){var sb=oo;return await this['_a'][sb(0x3ba)](bd);}async[oo(0x312)](bd){var sc=oo;if('debug'===bd)return{'Url':'https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin'};const be=await this['_a'][sc(0x312)]({'EffectId':bd});return be['Url']?be:Promise[sc(0x852)](be[sc(0x8e7)]);}async[oo(0x4d9)](){var sd=oo;return await this['_a'][sd(0x74b)]();}async[oo(0x532)](){var se=oo;const bd=new ax['KI']();await bd[se(0x3a8)]();}[oo(0x983)](){var sf=oo;if(this[sf(0x4fb)]===aZ)return new ap(this[sf(0x22d)]);if(this[sf(0x4fb)]===aY){const bd=new aw(this[sf(0x22d)]);return bd['on'](sf(0x7a3),()=>{var sg=sf;this[sg(0x3a6)](sg(0x7a3));}),bd;}return this['input_type']===b0?new an(this[sf(0x22d)]):new ao(this[sf(0x22d)]);}['checkIsBeauti'](bd={}){var sh=oo;Object['keys'](bd)[sh(0x89f)](be=>sh(0x395)!==be&&'dermabrasion'!==be&&bd[be])?this[sh(0x1e9)]=!0x0:this['flag_1']=!0x1;}[oo(0x165)](bd){var si=oo;bd=bd||{},bd={...b1,...bd},aL(si(0x15f))?(this['checkIsBeauti'](bd),this[si(0x4b6)]()[si(0x341)](()=>{var sj=si;this['_renderer']['switchMode'](sj(0x598)),this[sj(0x970)][sj(0x8a9)](sj(0x19d),bd);})):this[si(0x3a6)]('error',{'code':ae['U']['AUTH_API_FAIL'],'message':ad['Z']['t']('0007')});}[oo(0x4cd)](bd,be,bf){var sk=oo;if(!aL(sk(0x6de))||!aL(sk(0x40b)))return void this[sk(0x3a6)]('error',{'code':ae['U'][sk(0x43d)],'message':ad['Z']['t']('0007')});if(!this[sk(0x970)]||!this[sk(0x970)][sk(0x5e5)])return console['log'](sk(0x6bd)),void this['trigger']('error',{'code':ae['U']['SET_EFFECT_ERROR'],'message':'no\x20face\x20detected'});bd[sk(0x4ae)]?this[sk(0x921)]=!0x0:this[sk(0x921)]=!0x1;let bg=[],bh=[],bi=[];if(Array['isArray'](bd))bd[sk(0x280)](bj=>{var sl=sk;if(bj instanceof Object){bg[sl(0x3ef)](bj['id']);let bk=bj[sl(0x7b7)];bk=this[sl(0x87c)](bk)?0x1:bk,bh[sl(0x3ef)](bj[sl(0x7b7)]);let bl=bj[sl(0x8fc)];bi[sl(0x3ef)](this[sl(0x87c)](bl)?bk:bl);}else bg['push'](bj),bh[sl(0x3ef)](0x1),bi[sl(0x3ef)](0x1);});else{if(bd instanceof Object){bg=[bd['id']];let bj=bd['intensity'];bj=this['_checkVoid'](bj)?0x1:bj,bh=[bj],bh=[bd[sk(0x7b7)]];let bk=bd['filterIntensity'];bi=[this[sk(0x87c)](bk)?bj:bk];}else bg=[bd],bh=[0x1],bi=[0x1];}this[sk(0x765)](bg,bh,bi,be,bf);}[oo(0x87c)](bd){return null==bd;}[oo(0x765)](bd,be,bf,bg,bh){var sm=oo;this['el']['clearCache'](),this['lastestEffectIds']=bd,this[sm(0x970)][sm(0x254)](),Promise['all'](bd['map'](bi=>this[sm(0x312)](bi)[sm(0x341)](bj=>bj[sm(0x177)])))[sm(0x341)](async bi=>{var sn=sm;bd[sn(0x89f)](bj=>-0x1===this['lastestEffectIds'][sn(0x50a)](bj))||(await as['g']['preloadEffects'](bi),this['_renderer'][sn(0x394)](),bd[sn(0x89f)](bj=>-0x1===this[sn(0x775)][sn(0x50a)](bj))||(bg&&sn(0x3b5)==typeof bg&&bg(),this[sn(0x970)]['switchMode'](sn(0x598)),this['_renderer'][sn(0x4cd)](bi,be,bf,()=>!!aL('effect_sticker_3d')||(this[sn(0x3a6)](sn(0x8e5),{'code':ae['U'][sn(0x43d)],'message':ad['Z']['t'](sn(0x323))}),!0x1))['then'](bj=>{})));})[sm(0x53e)](bi=>{var so=sm;console[so(0x5a1)](so(0x64c),bd,bi),a4['Nd'][so(0x3a6)](so(0x8e5),{'code':ae['U']['SET_EFFECT_ERROR'],'message':so(0x64c),'error':bi}),this[so(0x970)][so(0x394)](),bh&&'function'==typeof bh&&bh();});}['setFilter'](bd,be=0x1,bf,bg){var sp=oo;if(aL('filter'))return this[sp(0x970)]&&this[sp(0x970)]['meshVertex']?void(bd&&sp(0x352)!==bd?(this[sp(0x53d)][sp(0x5c2)](bd)||this[sp(0x970)]['showLoading'](),this[sp(0x312)](bd)['then'](async bh=>{var sq=sp;this['loadedIdMap'][sq(0x5c2)](bd)||await as['g'][sq(0x6f4)]([bh['Url']]),this[sq(0x970)][sq(0x394)](),this['loadedIdMap']['set'](bd,bh['Url']),bf&&sq(0x3b5)==typeof bf&&bf(),this['_renderer']['switchMode'](sq(0x598)),this[sq(0x970)][sq(0x73f)](bh[sq(0x177)],be);})[sp(0x53e)](bh=>{var sr=sp;a4['Nd'][sr(0x3a6)](sr(0x8e5),{'code':ae['U'][sr(0x776)],'message':'set\x20filter\x20error','error':bh}),this[sr(0x970)][sr(0x394)](),bg&&sr(0x3b5)==typeof bg&&bg();})):this['_renderer'][sp(0x540)]()):(console['log']('set\x20filter\x20no\x20meshVertex'),void this[sp(0x3a6)](sp(0x8e5),{'code':ae['U'][sp(0x776)],'message':sp(0x584)}));this[sp(0x3a6)](sp(0x8e5),{'code':ae['U'][sp(0x43d)],'message':ad['Z']['t'](sp(0x323))});}async[oo(0x4b6)](){return new Promise(bd=>{let be;const bf=()=>{var ss=a0b;this[ss(0x5c8)]?(bd(),be&&clearTimeout(be)):be=setTimeout(bf,0x3e8);};bf();});}async[oo(0x756)](bd={'audio':{'format':oo(0x25b)}}){var st=oo;if(!this[st(0x365)]){if(this[st(0x4fb)]===b0)throw new Error('record\x20in\x20live\x20mode\x20is\x20not\x20support');return this[st(0x365)]=!0x0,this[st(0x821)]=new av({'canvas':'offscreen'===au['iN']?this['outputCanvas']:this['_options'][st(0x595)],...bd}),await this['recorder'][st(0x4fa)](),this[st(0x6a9)]=+new Date(),st(0x8d0)===au['iN']&&(this[st(0x87b)]=wx['createWorker'](au['d9']+'/worker/tick.worker.js'),this[st(0x87b)][st(0x95b)](()=>{var su=st;this[su(0x821)][su(0x522)]();}),this['tickworker'][st(0x828)]('start')),this['recorder'];}}async['stopRecord'](bd={'useOriginAudio':!0x1,'destroy':!0x1}){var sv=oo;if(!this[sv(0x365)])return;if(ag){const bf=0xbb8,bg=bh=>new Promise((bi,bj)=>{var sw=sv;console[sw(0x5a1)](sw(0x2b7),bh),setTimeout(()=>bi(),bh);});await bg(Math[sv(0x3ae)](0x0,bf-(+new Date()-this[sv(0x6a9)])));}this[sv(0x87b)][sv(0x828)](sv(0x613)),this[sv(0x87b)][sv(0x263)]();const be=await this[sv(0x821)][sv(0x613)](bd);return this['recorder']=null,this[sv(0x365)]=!0x1,be;}async['getVideoInfo'](bd){return new Promise((be,bf)=>{var sx=a0b;wx[sx(0x298)]({'src':bd,'success':bg=>{be(bg);},'fail':()=>{bf({'errMsg':'get\x20video\x20info\x20fail'});}});});}async[oo(0x96d)](){return new Promise(bd=>{var sy=a0b;this[sy(0x5b8)][sy(0x3ef)](bd);});}[oo(0x4ff)](){var sz=oo;const bd=this[sz(0x5b8)][sz(0x9f6)]();if(bd){const bl=this[sz(0x9cb)]||this[sz(0x970)][sz(0x1b4)](),{data:bm,width:bn,height:bo}=bl;for(var be=new Uint8ClampedArray(this[sz(0x550)](bm)),bf=bo/0x2|0x0,bg=0x4*bn,bh=new Uint8ClampedArray(0x4*bn),bi=0x0;bi<bf;++bi){var bj=bi*bg,bk=(bo-bi-0x1)*bg;bh[sz(0x3b4)](be[sz(0x7c0)](bj,bj+bg)),be['copyWithin'](bj,bk,bk+bg),be['set'](bh,bk);}bd({'uint8ArrayData':be,'width':bn,'height':bo});}}[oo(0x550)](bd){var sA=oo;return bd[sA(0x331)]['slice'](bd[sA(0x55c)],bd[sA(0x98e)]+bd[sA(0x55c)]);}[oo(0x4fa)](){var sB=oo;ac[sB(0x5fe)][sB(0x354)][sB(0x4fa)]();}[oo(0x613)](){var sC=oo;ac[sC(0x5fe)][sC(0x354)][sC(0x613)]();}['toggleOccluder'](){var sD=oo;this[sD(0x970)][sD(0x50b)][sD(0x3b0)]();}[oo(0x815)](bd=!0x0){var sE=oo;this['_a']['had']=void 0x0,this[sE(0x74f)]=!0x0,(0x0,a4['SZ'])(),this[sE(0x4fd)]&&ac[sE(0x5fe)][sE(0x354)][sE(0x588)](this[sE(0x4fd)]),this[sE(0x2b6)]&&this[sE(0x2b6)][sE(0x815)](),this['_renderer']&&this[sE(0x970)][sE(0x815)](),this[sE(0x759)]&&this[sE(0x759)][sE(0x815)](),this[sE(0x6e4)]&&this[sE(0x6e4)][sE(0x815)](),this['outputRenderer']&&(this[sE(0x839)][sE(0x815)](),this[sE(0x6a4)]&&this[sE(0x6a4)][sE(0x815)](!0x0)),this[sE(0x9d7)]&&(this[sE(0x9d7)]=null),bd&&(async function(){var sF=sE;wx[sF(0x611)]=null;for(let be in ac[sF(0x635)]['TextureCache']){const bf=ac[sF(0x635)][sF(0x952)][be];ac[sF(0x2f8)][sF(0x37f)](bf),bf[sF(0x815)](!0x0);}(0x0,aM['UI'])(),new ay['e']({})['clearCache'](),ac['clearContext'](),ac[sF(0x5fe)][sF(0x354)]['stop']();}());}static[oo(0x4a8)](bd=0x2d0){var sG=oo;bd=bd||0x2d0;const {platform:be,pixelRatio:bf}=af,bg=am(),bh=0x10/0x9;let bi=Math[sG(0x281)](bd*bh);const bj={'width':'0','height':'0','showWidth':0x0,'showHeight':0x0,'realWidth':0x0,'realHeight':0x0};function bk(bl,bm=0x2){var sH=sG;const bn=Math[sH(0x281)](bl*bf);return bn%bm!=0x0?bk(bl-0x1,bm):[bl,bn];}if(sG(0x46c)===be)bd=bd%0x2?bd-0x1:bd,bi=bi%0x2?bi-0x1:bi,bj[sG(0x762)]=bj[sG(0x2c8)]=bg?bi:bd,bj[sG(0x478)]=bj['realHeight']=bg?bd:bi;else{const bl=Math[sG(0x281)](bd/bf),bm=Math[sG(0x281)](bi/bf);[bj['showWidth'],bj[sG(0x2c8)]]=bk(bg?bm:bl,0x4),[bj[sG(0x478)],bj[sG(0x3d5)]]=bk(bg?bl:bm);}return bj[sG(0x260)]=bj['showWidth']+'px',bj[sG(0x307)]=bj[sG(0x478)]+'px',bj[sG(0x717)]=bg?0.5625:bh,bj;}[oo(0x181)](bd,be){var sI=oo;const bf=am();if(!bf&&bd>0x2d0)throw new Error('live-pusher\x20width\x20cannot\x20be\x20greater\x20than\x20720px,currently\x20is\x20'+bd+'px');if(bf&&be>0x2d0)throw new Error(sI(0x1dc)+be+'px');if(ag){if(bd%0x4!=0x0||be%0x2!=0x0)throw new Error(sI(0x984));}else{if(bd%0x2!=0x0||be%0x2!=0x0)throw new Error(sI(0x500));}}['transcodeLive'](){var sJ=oo;this[sJ(0x4fb)]===b0&&this[sJ(0x6e4)]?.[sJ(0x8c2)]();}[oo(0x573)](bd){var sK=oo;if(sK(0x46d)!==bd||'low'!==bd)throw new Error(sK(0x2d8));this[sK(0x22d)][sK(0x4b5)][sK(0x1be)]=bd;}}var b3,b4,b5;!function(bd){var sL=oo;bd[bd[sL(0x2f9)]=0x0]='Default',bd[bd[sL(0x653)]=0x1]=sL(0x653);}(b3||(b3={})),function(bd){bd['2D']='2d',bd['3D']='3d';}(b4||(b4={})),function(bd){var sM=oo;bd[bd[sM(0x31b)]=0x0]=sM(0x31b),bd[bd[sM(0x998)]=0x1]=sM(0x998),bd[bd[sM(0x75b)]=0x2]=sM(0x75b),bd[bd[sM(0x3a9)]=0x3]=sM(0x3a9),bd[bd[sM(0x570)]=0x4]=sM(0x570);}(b5||(b5={}));var b6,b7,b8={'CAMERA':0x0,'CANVAS2D':0x2,'IMAGE':0x3};!function(bd){var sN=oo;bd[bd['CAMERA']=0x0]='CAMERA',bd[bd[sN(0x998)]=0x1]='VIDEO',bd[bd[sN(0x75b)]=0x2]=sN(0x75b),bd[bd[sN(0x3a9)]=0x3]=sN(0x3a9),bd[bd[sN(0x570)]=0x4]=sN(0x570);}(b6||(b6={})),function(bd){var sO=oo;bd[bd[sO(0x624)]=0x0]='WORKER',bd[bd[sO(0x6e1)]=0x1]=sO(0x6e1);}(b7||(b7={}));var b9=a2(0x6c2);},0xde1:(b,d,f)=>{f['d'](d,{'Z':()=>k});var g=f(0x191),h=function(m){var sP=a0b,p=sP(0x3b5)==typeof Symbol&&Symbol[sP(0x28f)],q=p&&m[p],v=0x0;if(q)return q[sP(0x8fb)](m);if(m&&sP(0x480)==typeof m['length'])return{'next':function(){var sQ=sP;return m&&v>=m[sQ(0x4ae)]&&(m=void 0x0),{'value':m&&m[v++],'done':!m};}};throw new TypeError(p?sP(0x2cd):'Symbol.iterator\x20is\x20not\x20defined.');},j=function(m,p){var sR=a0b,q=sR(0x3b5)==typeof Symbol&&m[Symbol[sR(0x28f)]];if(!q)return m;var v,w,x=q['call'](m),y=[];try{for(;(void 0x0===p||p-->0x0)&&!(v=x['next']())[sR(0x79a)];)y[sR(0x3ef)](v[sR(0x4a9)]);}catch(z){w={'error':z};}finally{try{v&&!v['done']&&(q=x[sR(0x1bc)])&&q[sR(0x8fb)](x);}finally{if(w)throw w[sR(0x8e5)];}}return y;};const k=new(function(){var sT=a0b;function m(){var sS=a0b;this['data']=new Map(),this['set'](sS(0x1d9),{'Url':(0x0,g['xb'])()});}return m['prototype'][sT(0x3b4)]=function(p,q){var sU=sT;this[sU(0x8c4)][sU(0x3b4)](p,q);},m[sT(0x32e)][sT(0x40e)]=function(p){var sV=sT;return this[sV(0x8c4)][sV(0x40e)](p);},m[sT(0x32e)]['has']=function(p){var sW=sT;return this[sW(0x8c4)][sW(0x5c2)](p);},m[sT(0x32e)][sT(0x588)]=function(p){var sX=sT;this[sX(0x8c4)][sX(0x2fb)](p);},m['prototype'][sT(0x515)]=function(){var sY=sT;this['data'][sY(0x515)]();},m['prototype'][sT(0x247)]=function(p){var sZ=sT,q,v;try{for(var w=h(this[sZ(0x8c4)]),x=w[sZ(0x479)]();!x[sZ(0x79a)];x=w[sZ(0x479)]()){var y=j(x[sZ(0x4a9)],0x2),z=y[0x0];y[0x1];if(this[sZ(0x8c4)][sZ(0x40e)](z)[sZ(0x177)]===p)return z;}}catch(A){q={'error':A};}finally{try{x&&!x[sZ(0x79a)]&&(v=w['return'])&&v[sZ(0x8fb)](w);}finally{if(q)throw q[sZ(0x8e5)];}}return null;},m;}())();},0xf09:(b,d,f)=>{f['d'](d,{'t':()=>m});var g,h=f(0x1ade),j=f(0x17dd),k=(g=function(p,q){var t0=a0b;return g=Object[t0(0x43e)]||{'__proto__':[]}instanceof Array&&function(v,w){var t1=t0;v[t1(0x332)]=w;}||function(v,w){var t2=t0;for(var x in w)Object['prototype'][t2(0x16f)]['call'](w,x)&&(v[x]=w[x]);},g(p,q);},function(p,q){var t3=a0b;if(t3(0x3b5)!=typeof q&&null!==q)throw new TypeError(t3(0x67a)+String(q)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function v(){var t4=t3;this[t4(0x1fc)]=p;}g(p,q),p['prototype']=null===q?Object['create'](q):(v[t3(0x32e)]=q['prototype'],new v());}),m=function(p){var t6=a0b;function q(){var t5=a0b,v=p[t5(0x8fb)](this)||this;return v[t5(0x22d)]={},v;}return k(q,p),Object['defineProperty'](q[t6(0x32e)],'options',{'get':function(){return this['_options'];},'enumerable':!0x1,'configurable':!0x0}),q['prototype'][t6(0x799)]=function(){var t7=t6;return this[t7(0x22d)];},q['prototype']['setOptions']=function(v){var t8=t6;j['bH']['log'](t8(0x2ac),v[t8(0x586)],this['_options'][t8(0x586)]),void 0x0!==v[t8(0x586)]&&v['mirror']!==this[t8(0x22d)][t8(0x586)]&&(j['bH'][t8(0x5a1)]('mirrorchange',v['mirror']),this[t8(0x3a6)](t8(0x950),{'mirror':v[t8(0x586)]})),this['_options']=v;},q['instance']=new q(),q;}(h['Q4']);},0x435:(j,q,z)=>{var to=a0b;z['d'](q,{'F':()=>a4});var A,B=z(0x4b6),D=z(0x15a0),F=z(0xc30),G=(A=function(a5,a6){var t9=a0b;return A=Object[t9(0x43e)]||{'__proto__':[]}instanceof Array&&function(a7,a8){var ta=t9;a7[ta(0x332)]=a8;}||function(a7,a8){var tb=t9;for(var a9 in a8)Object['prototype'][tb(0x16f)][tb(0x8fb)](a8,a9)&&(a7[a9]=a8[a9]);},A(a5,a6);},function(a5,a6){var tc=a0b;if(tc(0x3b5)!=typeof a6&&null!==a6)throw new TypeError(tc(0x67a)+String(a6)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function a7(){var td=tc;this[td(0x1fc)]=a5;}A(a5,a6),a5[tc(0x32e)]=null===a6?Object[tc(0x92d)](a6):(a7[tc(0x32e)]=a6['prototype'],new a7());}),H=function(a5,a6,a7,a8){return new(a7||(a7=Promise))(function(a9,aa){var th=a0b;function ab(ae){var te=a0b;try{ad(a8[te(0x479)](ae));}catch(af){aa(af);}}function ac(ae){var tf=a0b;try{ad(a8[tf(0x626)](ae));}catch(af){aa(af);}}function ad(ae){var tg=a0b,af;ae['done']?a9(ae[tg(0x4a9)]):(af=ae[tg(0x4a9)],af instanceof a7?af:new a7(function(ag){ag(af);}))[tg(0x341)](ab,ac);}ad((a8=a8['apply'](a5,a6||[]))[th(0x479)]());});},I=function(a5,a6){var ti=a0b,a7,a8,a9,aa,ab={'label':0x0,'sent':function(){if(0x1&a9[0x0])throw a9[0x1];return a9[0x1];},'trys':[],'ops':[]};return aa={'next':ac(0x0),'throw':ac(0x1),'return':ac(0x2)},ti(0x3b5)==typeof Symbol&&(aa[Symbol['iterator']]=function(){return this;}),aa;function ac(ad){return function(ae){return function(af){var tj=a0b;if(a7)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;ab;)try{if(a7=0x1,a8&&(a9=0x2&af[0x0]?a8['return']:af[0x0]?a8[tj(0x626)]||((a9=a8['return'])&&a9[tj(0x8fb)](a8),0x0):a8['next'])&&!(a9=a9[tj(0x8fb)](a8,af[0x1]))['done'])return a9;switch(a8=0x0,a9&&(af=[0x2&af[0x0],a9[tj(0x4a9)]]),af[0x0]){case 0x0:case 0x1:a9=af;break;case 0x4:return ab[tj(0x8a7)]++,{'value':af[0x1],'done':!0x1};case 0x5:ab[tj(0x8a7)]++,a8=af[0x1],af=[0x0];continue;case 0x7:af=ab[tj(0x22e)][tj(0x806)](),ab[tj(0x1e0)][tj(0x806)]();continue;default:if(!(a9=ab[tj(0x1e0)],(a9=a9[tj(0x4ae)]>0x0&&a9[a9[tj(0x4ae)]-0x1])||0x6!==af[0x0]&&0x2!==af[0x0])){ab=0x0;continue;}if(0x3===af[0x0]&&(!a9||af[0x1]>a9[0x0]&&af[0x1]<a9[0x3])){ab[tj(0x8a7)]=af[0x1];break;}if(0x6===af[0x0]&&ab[tj(0x8a7)]<a9[0x1]){ab[tj(0x8a7)]=a9[0x1],a9=af;break;}if(a9&&ab[tj(0x8a7)]<a9[0x2]){ab[tj(0x8a7)]=a9[0x2],ab[tj(0x22e)]['push'](af);break;}a9[0x2]&&ab['ops']['pop'](),ab[tj(0x1e0)]['pop']();continue;}af=a6['call'](a5,ab);}catch(ag){af=[0x6,ag],a8=0x0;}finally{a7=a9=0x0;}if(0x5&af[0x0])throw af[0x1];return{'value':af[0x0]?af[0x1]:void 0x0,'done':!0x0};}([ad,ae]);};}},J=function(a5){var tl=a0b;function a6(a7){var tk=a0b,a8=a5[tk(0x8fb)](this)||this;return a8[tk(0x22d)]=a7,a8;}return G(a6,a5),a6[tl(0x32e)]['getFilterInstance']=function(a7){return H(this,void 0x0,Promise,function(){var a8,a9=this;return I(this,function(aa){var tm=a0b;switch(aa[tm(0x8a7)]){case 0x0:return[0x4,this[tm(0x3a8)]()];case 0x1:return a8=aa[tm(0x475)](),[0x2,this['loadImage'](a8)[tm(0x341)](function(ab){var tn=tm;return ab[F['RY']][tn(0x8ab)][tn(0x315)]=B[tn(0x2f3)][tn(0x320)],ab[F['RY']][tn(0x8ab)]['mipmap']=B[tn(0x55d)]['OFF'],new D['f'](tn(0x552),a9[tn(0x22d)],{'uniforms':{'lut':ab[F['RY']],'lutSize':[0x200,0x200],'intensity':a7}});})];}});});},a6;}(F['KI']),K=z(0x24f3);const L=to(0x31d),M=to(0x780);var N=z(0x191),O=(function(){var a5=function(a6,a7){var tp=a0b;return a5=Object[tp(0x43e)]||{'__proto__':[]}instanceof Array&&function(a8,a9){var tq=tp;a8[tq(0x332)]=a9;}||function(a8,a9){var tr=tp;for(var aa in a9)Object[tr(0x32e)][tr(0x16f)][tr(0x8fb)](a9,aa)&&(a8[aa]=a9[aa]);},a5(a6,a7);};return function(a6,a7){var ts=a0b;if(ts(0x3b5)!=typeof a7&&null!==a7)throw new TypeError('Class\x20extends\x20value\x20'+String(a7)+ts(0x7ae));function a8(){var tt=ts;this[tt(0x1fc)]=a6;}a5(a6,a7),a6[ts(0x32e)]=null===a7?Object[ts(0x92d)](a7):(a8[ts(0x32e)]=a7[ts(0x32e)],new a8());};}()),Q=function(a5,a6,a7,a8){return new(a7||(a7=Promise))(function(a9,aa){var tw=a0b;function ab(ae){var tu=a0b;try{ad(a8[tu(0x479)](ae));}catch(af){aa(af);}}function ac(ae){try{ad(a8['throw'](ae));}catch(af){aa(af);}}function ad(ae){var tv=a0b,af;ae[tv(0x79a)]?a9(ae[tv(0x4a9)]):(af=ae['value'],af instanceof a7?af:new a7(function(ag){ag(af);}))['then'](ab,ac);}ad((a8=a8[tw(0x6e8)](a5,a6||[]))[tw(0x479)]());});},R=function(a5,a6){var tx=to,a7,a8,a9,aa,ab={'label':0x0,'sent':function(){if(0x1&a9[0x0])throw a9[0x1];return a9[0x1];},'trys':[],'ops':[]};return aa={'next':ac(0x0),'throw':ac(0x1),'return':ac(0x2)},tx(0x3b5)==typeof Symbol&&(aa[Symbol[tx(0x28f)]]=function(){return this;}),aa;function ac(ad){return function(ae){return function(af){var ty=a0b;if(a7)throw new TypeError(ty(0x268));for(;ab;)try{if(a7=0x1,a8&&(a9=0x2&af[0x0]?a8['return']:af[0x0]?a8[ty(0x626)]||((a9=a8['return'])&&a9[ty(0x8fb)](a8),0x0):a8[ty(0x479)])&&!(a9=a9[ty(0x8fb)](a8,af[0x1]))['done'])return a9;switch(a8=0x0,a9&&(af=[0x2&af[0x0],a9[ty(0x4a9)]]),af[0x0]){case 0x0:case 0x1:a9=af;break;case 0x4:return ab[ty(0x8a7)]++,{'value':af[0x1],'done':!0x1};case 0x5:ab[ty(0x8a7)]++,a8=af[0x1],af=[0x0];continue;case 0x7:af=ab[ty(0x22e)][ty(0x806)](),ab[ty(0x1e0)][ty(0x806)]();continue;default:if(!(a9=ab['trys'],(a9=a9['length']>0x0&&a9[a9[ty(0x4ae)]-0x1])||0x6!==af[0x0]&&0x2!==af[0x0])){ab=0x0;continue;}if(0x3===af[0x0]&&(!a9||af[0x1]>a9[0x0]&&af[0x1]<a9[0x3])){ab[ty(0x8a7)]=af[0x1];break;}if(0x6===af[0x0]&&ab[ty(0x8a7)]<a9[0x1]){ab[ty(0x8a7)]=a9[0x1],a9=af;break;}if(a9&&ab[ty(0x8a7)]<a9[0x2]){ab[ty(0x8a7)]=a9[0x2],ab[ty(0x22e)][ty(0x3ef)](af);break;}a9[0x2]&&ab['ops'][ty(0x806)](),ab['trys'][ty(0x806)]();continue;}af=a6[ty(0x8fb)](a5,ab);}catch(ag){af=[0x6,ag],a8=0x0;}finally{a7=a9=0x0;}if(0x5&af[0x0])throw af[0x1];return{'value':af[0x0]?af[0x1]:void 0x0,'done':!0x0};}([ad,ae]);};}},U=(function(){var tA=to;function a5(a6){var tz=a0b;this[tz(0x22d)]=a6;}return Object['defineProperty'](a5['prototype'],tA(0x71a),{'set':function(a6){var tB=tA;for(var a7 in a6)this['_filter'][tB(0x71a)][a7]=a6[a7];},'enumerable':!0x1,'configurable':!0x0}),a5[tA(0x32e)][tA(0x9a0)]=function(a6){var tC=tA;a6[tC(0x958)]||(a6[tC(0x958)]=[]),a6[tC(0x958)][tC(0x50a)](this['_filter'])>-0x1||(a6[tC(0x958)][tC(0x3ef)](this[tC(0x6ba)]),this['_container']=a6);},a5[tA(0x32e)][tA(0x1ab)]=function(a6){var tD=tA;if(a6[tD(0x958)]&&-0x1!==a6[tD(0x958)][tD(0x50a)](this[tD(0x6ba)])){var a7=a6['filters'][tD(0x50a)](this[tD(0x6ba)]);a6['filters'][tD(0x5c3)](a7,0x1),this[tD(0x784)]=null;}},a5['prototype']['resize']=function(a6,a7){var tE=tA;this[tE(0x6ba)]&&this[tE(0x6ba)][tE(0x56d)](a6,a7);},a5;}()),V=function(a5){var tG=to;function a6(a7,a8){var tF=a0b,a9=a5[tF(0x8fb)](this,a8)||this;return a9[tF(0x7b7)]=a7,a9;}return O(a6,a5),Object[tG(0x85d)](a6[tG(0x32e)],tG(0x7b7),{'get':function(){var tH=tG;return this[tH(0x5c9)];},'set':function(a7){var tI=tG;this[tI(0x5c9)]=a7,this['_filter']&&(this[tI(0x6ba)]['uniforms']['intensity']=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),a6[tG(0x32e)][tG(0x3a8)]=function(){return Q(this,void 0x0,Promise,function(){var a7;return R(this,function(a8){var tJ=a0b;switch(a8[tJ(0x8a7)]){case 0x0:return[0x4,new J(this[tJ(0x22d)])['getFilterInstance'](this[tJ(0x7b7)])];case 0x1:return a7=a8['sent'](),this[tJ(0x6ba)]=a7,a7['uniforms'][tJ(0x7b7)]=this[tJ(0x5c9)]<0.01?0x0:this['_intensity'],[0x2];}});});},a6;}(U),W=(function(a5){var tL=to;function a6(a7,a8,a9){var tK=a0b,aa=a5['call'](this,a9)||this,ab=aa[tK(0x22d)],ac=ab['width'],ad=ab[tK(0x307)],ae=new B['BaseRenderTexture']({'width':ac,'height':ad});return aa[tK(0x415)]=new B[(tK(0x82e))](ae),aa[tK(0x6ba)]=new D['f'](tK(0x1aa),a9,{'uniforms':{'intensity':0x1,'faceMask':aa[tK(0x415)],'grayTexture':B[tK(0x635)][tK(0x952)][F['lc']],'lookupTexture':B['utils']['TextureCache'][F['M$']],'levelRangeInv':1.040816,'levelBlack':0.01960784}}),aa[tK(0x86a)]=a7,aa[tK(0x2f0)]=a8,aa;}O(a6,a5),Object[tL(0x85d)](a6[tL(0x32e)],tL(0x86a),{'get':function(){var tM=tL;return this[tM(0x56a)];},'set':function(a7){var tN=tL;this['_intensityEye']=a7,this['_shader']&&(this[tN(0x6aa)][tN(0x71a)]['intensity']=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](a6['prototype'],'intensityTeeth',{'get':function(){var tO=tL;return this[tO(0x720)];},'set':function(a7){var tP=tL;this[tP(0x720)]=a7,this[tP(0x6aa)]&&(this[tP(0x6aa)]['uniforms']['intensityTeeth']=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object[tL(0x85d)](a6[tL(0x32e)],tL(0x311),{'get':function(){var tQ=tL;return this[tQ(0x970)];},'set':function(a7){var tR=tL;this[tR(0x970)]=a7;},'enumerable':!0x1,'configurable':!0x0}),a6['prototype'][tL(0x6ca)]=function(){var tS=tL;if(this['geometry']){if(!this[tS(0x8e6)]){var a7={'mask':B[tS(0x635)][tS(0x952)][F['iy']],'intensity':this['intensityEye']<0.01?0x0:this[tS(0x86a)]},a8=B[tS(0x235)]['from'](L,M,a7);this[tS(0x6aa)]=a8,this[tS(0x8e6)]=new B[(tS(0x2c6))](this['geometry'],a8);}this['renderer']&&this[tS(0x311)]['render'](this[tS(0x8e6)],{'renderTexture':this[tS(0x415)]});}};}(U),function(a5){var tU=to;function a6(a7,a8){var tT=a0b,a9=a5['call'](this,a8)||this,aa=a9[tT(0x22d)],ab=aa['width'],ac=aa[tT(0x307)],ad=new B[(tT(0x88b))]({'width':ab,'height':ac});return a9[tT(0x415)]=new B[(tT(0x82e))](ad),a9['_filter']=new D['f']('dermabrasion',a8,{'uniforms':{'intensity':a7<0.01?0x0:a7,'faceMask':a9[tT(0x415)],'enable':0x1}}),a9[tT(0x7b7)]=a7,a9;}return O(a6,a5),Object[tU(0x85d)](a6[tU(0x32e)],tU(0x311),{'get':function(){var tV=tU;return this[tV(0x970)];},'set':function(a7){this['_renderer']=a7;},'enumerable':!0x1,'configurable':!0x0}),a6['prototype']['render']=function(){var tW=tU;if(this[tW(0x234)]){if(!this[tW(0x8e6)]){var a7={'mask':B[tW(0x635)][tW(0x952)][F['L4']],'intensity':0x1},a8=B[tW(0x235)][tW(0x615)](L,M,a7);this[tW(0x8e6)]=new B[(tW(0x2c6))](this[tW(0x234)],a8);}this[tW(0x311)]&&this[tW(0x311)][tW(0x6ca)](this[tW(0x8e6)],{'renderTexture':this[tW(0x415)]});}},a6[tU(0x32e)][tU(0x9a0)]=function(a7){var tX=tU;a5['prototype'][tX(0x9a0)][tX(0x8fb)](this,a7);},Object[tU(0x85d)](a6[tU(0x32e)],tU(0x7b7),{'get':function(){return this['_intensity'];},'set':function(a7){var tY=tU;this['_intensity']=a7,this[tY(0x5c9)]=0.7*a7,this[tY(0x6ba)]&&(this[tY(0x6ba)]['uniforms'][tY(0x7b7)]=this['_intensity']<0.01?0x0:this['_intensity']);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](a6[tU(0x32e)],tU(0x4b4),{'set':function(a7){var tZ=tU;this[tZ(0x6ba)][tZ(0x71a)][tZ(0x4b4)]=a7?0x1:0x0;},'enumerable':!0x1,'configurable':!0x0}),a6;}(U)),X=function(a5){var u1=to;function a6(a7,a8,a9){var u0=a0b,aa=a5[u0(0x8fb)](this,a9)||this,ab=aa[u0(0x22d)],ac=ab[u0(0x260)],ad=ab[u0(0x307)],ae=new B['BaseRenderTexture']({'width':ac,'height':ad});return aa['renderTexture']=new B[(u0(0x82e))](ae),aa[u0(0x6ba)]=new D['f'](u0(0x743),a9,{'uniforms':{'intensity':0x1,'faceMask':aa[u0(0x415)]}}),aa[u0(0x59c)]=a7,aa[u0(0x960)]=a8,aa;}return O(a6,a5),Object[u1(0x85d)](a6[u1(0x32e)],'intensityDarkCircle',{'get':function(){var u2=u1;return this[u2(0x34a)];},'set':function(a7){var u3=u1;this[u3(0x34a)]=a7,this['_shader']&&(this[u3(0x6aa)][u3(0x71a)][u3(0x59c)]=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](a6['prototype'],u1(0x960),{'get':function(){var u4=u1;return this[u4(0x473)];},'set':function(a7){var u5=u1;this[u5(0x473)]=a7,this[u5(0x6aa)]&&(this[u5(0x6aa)][u5(0x71a)][u5(0x960)]=a7<0.01?0x0:a7);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](a6['prototype'],'renderer',{'get':function(){var u6=u1;return this[u6(0x970)];},'set':function(a7){var u7=u1;this[u7(0x970)]=a7;},'enumerable':!0x1,'configurable':!0x0}),a6['prototype'][u1(0x6ca)]=function(){var u8=u1;if(this['geometry']){if(!this[u8(0x8e6)]){var a7={'falingwen':B[u8(0x635)]['TextureCache'][F['F7']],'heiyanquan':B['utils'][u8(0x952)][F['B3']],'intensityDarkCircle':this[u8(0x59c)],'intensityNasolabialFolds':this['intensityNasolabialFolds']},a8=B[u8(0x235)]['from'](L,u8(0x5e8),a7);this[u8(0x6aa)]=a8,this[u8(0x8e6)]=new B[(u8(0x2c6))](this[u8(0x234)],a8);}this['renderer']&&this[u8(0x311)][u8(0x6ca)](this[u8(0x8e6)],{'renderTexture':this['renderTexture']});}},a6;}(U),Y=function(a5){var ua=to;function a6(a7,a8){var u9=a0b,a9=a5['call'](this,a8)||this;return a9['_filter']=new D['f'](u9(0x5b2),a8,{'intensity':a7}),a9['intensity']=a7,a9;}return O(a6,a5),Object['defineProperty'](a6[ua(0x32e)],ua(0x7b7),{'get':function(){var ub=ua;return this[ub(0x5c9)];},'set':function(a7){var uc=ua;this[uc(0x5c9)]=a7,this[uc(0x6ba)][uc(0x71a)]['intensity']=a7<0.01?0x0:a7;},'enumerable':!0x1,'configurable':!0x0}),a6;}(U),Z=[to(0x33d),to(0x6a8),'nose_tip',to(0x236),to(0x954),to(0x84e),to(0x8e8),'contour_right4',to(0x79b),to(0x655),'contour_right10','mouth_lower_lip_bottom','nose_tip1','nose_bottom','nose_left1','nose_left2',to(0x42d),to(0x623),to(0x302),to(0x98d),to(0x322),to(0x621),to(0x2a7),to(0x8b1),to(0x8de),to(0x7bc),to(0x689),'lip_top_center_target',to(0x2c4),to(0x49b),'lip_inner_top',to(0x88c),to(0x4cc),'eyebrow_center',to(0x982),to(0x425),to(0x5ff),'right_eyebrow_center',to(0x7de),to(0x86f),to(0x462),to(0x710),to(0x379),'contour_right3',to(0x732),to(0x33f),to(0x397),'nose_bridge2',to(0x1b3),'chin_left','chin_right'],a0=function(a5){var ue=to;function a6(a7,a8){var ud=a0b,a9=a5[ud(0x8fb)](this,a7)||this;return a9[ud(0x77c)]=0x0,a9[ud(0x6f9)]=a8,a9[ud(0x9f1)]=new K['M']()['getDataConfig'](N['c4'][ud(0x8bb)]),a9;}return O(a6,a5),Object[ue(0x85d)](a6[ue(0x32e)],'landmarks',{'set':function(a7){var uf=ue;if(a7['length']){var a8=Z,a9=this['_getCartesianPointsByKeys'](a7,a8);this[uf(0x582)]={};for(var aa=0x0;aa<a8[uf(0x4ae)];aa++){var ab=a8[aa];this['_keypoints'][ab]=a9[aa];}this[uf(0x7ee)](this[uf(0x582)]);}},'enumerable':!0x1,'configurable':!0x0}),Object[ue(0x85d)](a6[ue(0x32e)],ue(0x6f9),{'set':function(a7){var ug=ue;a7[ug(0x4b4)]=this[ug(0x77c)]?a7[ug(0x4b4)]:this[ug(0x77c)],this[ug(0x7ee)](a7);},'enumerable':!0x1,'configurable':!0x0}),Object[ue(0x85d)](a6[ue(0x32e)],ue(0x4b4),{'set':function(a7){var uh=ue,a8=a7?0x1:0x0;this[uh(0x77c)]!==a8&&(this[uh(0x77c)]=a8,this[uh(0x7ee)]({'enable':this[uh(0x77c)]}));},'enumerable':!0x1,'configurable':!0x0}),a6[ue(0x32e)][ue(0x7ee)]=function(a7){var ui=ue;if(!this[ui(0x6ba)]){var a8={};Z[ui(0x280)](function(aa){a8[aa]=[0x0,0x0];}),a8['enable']=this[ui(0x77c)],this[ui(0x6ba)]=new D['f'](ui(0x7e6),this[ui(0x22d)],{'uniforms':a8});}for(var a9 in a7)this['_filter'][ui(0x71a)][a9]=a7[a9]||0x0;},a6[ue(0x32e)]['_getCartesianPointsByKeys']=function(a7,a8){var uj=ue,a9=this['_keymap'],aa=[];return a8[uj(0x280)](function(ab){var uk=uj;try{var ac=a7[a9[ab]],ad={'x':ac['x'],'y':ac['y']};aa[uk(0x3ef)]([ad['x'],ad['y']]);}catch(ae){console[uk(0x5a1)](uk(0x7dd),ab,a9[ab],ae);}}),aa;},a6;}(U),a1=(function(){var um=to;function a5(a6,a7,a8){var ul=a0b;this[ul(0x4bf)]={'whiten':0x0,'dermabrasion':0x0,'eyeWhiten':0x0,'teethWhiten':0x0,'darkCircle':0x0,'nasolabialFolds':0x0,'lift':0x0,'shave':0x0,'cheekbone':0x0,'head':0x0,'eyeBrightness':0x0,'lip':0x0,'forehead':0x0,'nose':0x0,'eye':0x0,'chin':0x0,'usm':0x0},this[ul(0x67b)]=!0x1,this['id']=a6,this['_target']=a7,this[ul(0x22d)]=a8;}return Object[um(0x85d)](a5[um(0x32e)],um(0x3fd),{'get':function(){var un=um;return this[un(0x67b)];},'set':function(a6){var uo=um;if(this[uo(0x67b)]!==a6){if(this[uo(0x67b)]=a6,this[uo(0x62d)]){var a7=this['_beautify'];this[uo(0x62d)][uo(0x6f9)]={'lift':a7[uo(0x477)],'shave':a7[uo(0x6b7)],'cheekbone':a7[uo(0x64f)],'head':a7[uo(0x5c7)],'eyeBrightness':a7['eyeBrightness'],'lip':a7[uo(0x7a9)],'forehead':a7['forehead'],'nose':a7[uo(0x976)],'eye':a7[uo(0x47b)],'chin':a7[uo(0x9ad)],'darkCircle':a7[uo(0x1fe)],'nasolabialFolds':a7[uo(0x16d)],'enable':a7[uo(0x477)]||a7[uo(0x6b7)]||a7[uo(0x1fe)]||a7['nasolabialFolds']||a7[uo(0x64f)]||a7['head']||a7[uo(0x1b0)]||a7[uo(0x7a9)]||a7['forehead']||a7[uo(0x47b)]||a7['chin']||a7['nose']?0x1:0x0};}this[uo(0x9fd)]&&(this[uo(0x9fd)][uo(0x4b4)]=a6);}},'enumerable':!0x1,'configurable':!0x0}),Object[um(0x85d)](a5[um(0x32e)],um(0x15f),{'set':function(a6){var up=um;this['_beautify']=Object[up(0x961)](this[up(0x4bf)],a6);var a7=this[up(0x4bf)],a8=a7[up(0x395)],a9=a7['dermabrasion'],aa=(a7[up(0x77e)],a7['teethWhiten'],a7[up(0x1fe)]),ab=a7['nasolabialFolds'],ac=a7[up(0x477)],ad=a7[up(0x6b7)],ae=a7[up(0x64f)],af=a7[up(0x5c7)],ag=a7[up(0x1b0)],ah=a7['lip'],ai=a7[up(0x8ff)],aj=a7[up(0x976)],ak=a7['eye'],al=a7[up(0x9ad)],am=a7[up(0x5b2)];this[up(0x188)]&&(this[up(0x188)][up(0x7b7)]=a8),this['_dermabrasion']&&(this[up(0x9fd)][up(0x7b7)]=a9),this['_partialDermabrasion']&&(this[up(0x537)][up(0x59c)]=aa,this[up(0x537)][up(0x960)]=ab),this[up(0x9a1)]&&(this['_usm'][up(0x7b7)]=am),this['_reshape']&&(this[up(0x62d)][up(0x6f9)]={'lift':ac,'shave':ad,'cheekbone':ae,'head':af,'eyeBrightness':ag,'lip':ah,'forehead':ai,'nose':aj,'eye':ak,'chin':al,'darkCircle':aa,'nasolabialFolds':ab,'enable':ac||ad||ae||af||ag||ah||ai||ak||al||ab||ab||aj?0x1:0x0});},'enumerable':!0x1,'configurable':!0x0}),a5['prototype'][um(0x87e)]=function(){return Q(this,void 0x0,Promise,function(){var a6,a7,a8,a9,aa,ab,ac=this;return R(this,function(ad){var uq=a0b;switch(ad[uq(0x8a7)]){case 0x0:return this[uq(0x544)]?[0x2]:(this['loaded']=!0x0,this['_config']?[0x3,0x2]:(this[uq(0x1a6)]=new K['M'](),[0x4,this[uq(0x1a6)]['load']()]));case 0x1:ad[uq(0x475)](),ad['label']=0x2;case 0x2:return a6=Object[uq(0x961)](this[uq(0x4bf)]),a7=void 0x0!==a6[uq(0x395)]&&null!==a6[uq(0x395)]?a6[uq(0x395)]:N['em'],this[uq(0x188)]=new V(a7,this[uq(0x22d)]),a8=void 0x0!==a6[uq(0x55e)]&&null!==a6[uq(0x55e)]?a6['dermabrasion']:N['Ss'],this[uq(0x9fd)]=new W(a8,this['_options']),a9=void 0x0!==a6[uq(0x1fe)]&&null!==a6['darkCircle']?a6['darkCircle']:0x0,aa=void 0x0!==a6['nasolabialFolds']&&null!==a6[uq(0x16d)]?a6[uq(0x16d)]:0x0,this[uq(0x537)]=new X(a9,aa,this[uq(0x22d)]),void 0x0!==a6[uq(0x77e)]&&null!==a6['eyeWhiten']?a6[uq(0x77e)]:0x0,void 0x0!==a6[uq(0x3ea)]&&null!==a6[uq(0x3ea)]?a6[uq(0x3ea)]:0x0,this['_usm']=new Y(a6[uq(0x5b2)]||0x0,this['_options']),ab={'lift':a6[uq(0x477)],'shave':a6[uq(0x6b7)],'cheekbone':a6[uq(0x64f)],'head':a6[uq(0x5c7)],'eyeBrightness':a6[uq(0x1b0)],'lip':a6['lip'],'forehead':a6[uq(0x8ff)],'nose':a6[uq(0x976)],'darkCircle':a6['darkCircle'],'nasolabialFolds':a6[uq(0x16d)],'eye':a6[uq(0x47b)],'chin':a6['chin'],'enable':a6['lift']||a6[uq(0x6b7)]||a6[uq(0x1fe)]||a6['nasolabialFolds']||a6[uq(0x64f)]||a6[uq(0x5c7)]||a6[uq(0x1b0)]||a6['lip']||a6[uq(0x8ff)]||a6['nose']||a6['eye']||a6[uq(0x9ad)]?0x1:0x0},this['_reshape']=new a0(this[uq(0x22d)],ab),[0x2,this['_whiten']['init']()[uq(0x341)](function(){var ur=uq;ac[ur(0x6e8)]();})];}});});},a5['prototype'][um(0x1d8)]=function(a6){var us=um;a6&&a6[us(0x4ae)]?this[us(0x62d)]&&(this['_reshape'][us(0x68c)]=a6,this[us(0x62d)][us(0x4b4)]=!0x0):this['_reshape'][us(0x4b4)]=!0x1;},a5['prototype'][um(0x650)]=function(a6){var ut=um;if(a6&&a6['length']){if(!this[ut(0x234)]){var a7=this[ut(0x1a6)]['getDataConfig'](0x1a),a8=new B[(ut(0x69d))]()['addAttribute'](ut(0x69f),a6)[ut(0x46e)](ut(0x270),a7);this['geometry']=a8;}this[ut(0x234)][ut(0x67c)](ut(0x69f))[ut(0x761)](a6),this[ut(0x9fd)]&&(this[ut(0x9fd)][ut(0x234)]=this[ut(0x234)],this[ut(0x537)][ut(0x234)]=this[ut(0x234)],this[ut(0x9fd)][ut(0x6ca)](),this[ut(0x537)]['render']());}},a5[um(0x32e)][um(0x9f3)]=function(a6){var a7,a8=this,a9=function(){var uu=a0b;a8[uu(0x9fd)]&&a8[uu(0x537)]?(a8[uu(0x9fd)][uu(0x311)]=a6,a8[uu(0x537)][uu(0x311)]=a6,clearTimeout(a7)):a7=setTimeout(a9,0x1e);};a9();},a5[um(0x32e)][um(0x56d)]=function(a6,a7){var uv=um;this[uv(0x188)]&&this[uv(0x188)][uv(0x56d)](a6,a7),this['_dermabrasion']&&this[uv(0x9fd)][uv(0x56d)](a6,a7),this['_partialDermabrasion']&&this[uv(0x537)][uv(0x56d)](a6,a7),this[uv(0x62d)]&&this[uv(0x62d)][uv(0x56d)](a6,a7),this[uv(0x9a1)]&&this['_usm']['resize'](a6,a7);},a5['prototype']['remove']=function(){var uw=um;this[uw(0x299)]&&(this[uw(0x188)]&&this[uw(0x188)][uw(0x1ab)](this['_target']),this[uw(0x9fd)]&&this['_dermabrasion'][uw(0x1ab)](this[uw(0x671)]),this[uw(0x537)]&&this[uw(0x537)][uw(0x1ab)](this[uw(0x671)]),this[uw(0x62d)]&&this[uw(0x62d)]['removeFrom'](this[uw(0x671)]),this[uw(0x9a1)]&&this[uw(0x9a1)]['removeFrom'](this[uw(0x671)]),this[uw(0x299)]=!0x1);},a5[um(0x32e)][um(0x6e8)]=function(){var ux=um;this['_active']||(this[ux(0x188)]&&this[ux(0x188)][ux(0x9a0)](this['_target']),this['_dermabrasion']&&this[ux(0x9fd)]['applyTo'](this[ux(0x671)]),this['_partialDermabrasion']&&this[ux(0x537)][ux(0x9a0)](this[ux(0x671)]),this[ux(0x62d)]&&this[ux(0x62d)][ux(0x9a0)](this[ux(0x671)]),this['_usm']&&this[ux(0x9a1)][ux(0x9a0)](this[ux(0x671)]),this['_active']=!0x0);},a5['prototype'][um(0x815)]=function(){var uy=um;this[uy(0x588)](),this[uy(0x188)]=null,this[uy(0x9fd)]=null,this[uy(0x537)]=null,this[uy(0x62d)]=null;},a5;}()),a2=function(a5,a6,a7,a8){return new(a7||(a7=Promise))(function(a9,aa){var uC=a0b;function ab(ae){var uz=a0b;try{ad(a8[uz(0x479)](ae));}catch(af){aa(af);}}function ac(ae){var uA=a0b;try{ad(a8[uA(0x626)](ae));}catch(af){aa(af);}}function ad(ae){var uB=a0b,af;ae[uB(0x79a)]?a9(ae[uB(0x4a9)]):(af=ae[uB(0x4a9)],af instanceof a7?af:new a7(function(ag){ag(af);}))[uB(0x341)](ab,ac);}ad((a8=a8[uC(0x6e8)](a5,a6||[]))['next']());});},a3=function(a5,a6){var uD=to,a7,a8,a9,aa,ab={'label':0x0,'sent':function(){if(0x1&a9[0x0])throw a9[0x1];return a9[0x1];},'trys':[],'ops':[]};return aa={'next':ac(0x0),'throw':ac(0x1),'return':ac(0x2)},uD(0x3b5)==typeof Symbol&&(aa[Symbol[uD(0x28f)]]=function(){return this;}),aa;function ac(ad){return function(ae){return function(af){var uE=a0b;if(a7)throw new TypeError(uE(0x268));for(;ab;)try{if(a7=0x1,a8&&(a9=0x2&af[0x0]?a8[uE(0x1bc)]:af[0x0]?a8[uE(0x626)]||((a9=a8[uE(0x1bc)])&&a9['call'](a8),0x0):a8[uE(0x479)])&&!(a9=a9[uE(0x8fb)](a8,af[0x1]))['done'])return a9;switch(a8=0x0,a9&&(af=[0x2&af[0x0],a9[uE(0x4a9)]]),af[0x0]){case 0x0:case 0x1:a9=af;break;case 0x4:return ab[uE(0x8a7)]++,{'value':af[0x1],'done':!0x1};case 0x5:ab['label']++,a8=af[0x1],af=[0x0];continue;case 0x7:af=ab[uE(0x22e)][uE(0x806)](),ab['trys'][uE(0x806)]();continue;default:if(!(a9=ab[uE(0x1e0)],(a9=a9[uE(0x4ae)]>0x0&&a9[a9['length']-0x1])||0x6!==af[0x0]&&0x2!==af[0x0])){ab=0x0;continue;}if(0x3===af[0x0]&&(!a9||af[0x1]>a9[0x0]&&af[0x1]<a9[0x3])){ab[uE(0x8a7)]=af[0x1];break;}if(0x6===af[0x0]&&ab[uE(0x8a7)]<a9[0x1]){ab[uE(0x8a7)]=a9[0x1],a9=af;break;}if(a9&&ab[uE(0x8a7)]<a9[0x2]){ab[uE(0x8a7)]=a9[0x2],ab[uE(0x22e)][uE(0x3ef)](af);break;}a9[0x2]&&ab['ops'][uE(0x806)](),ab[uE(0x1e0)][uE(0x806)]();continue;}af=a6['call'](a5,ab);}catch(ag){af=[0x6,ag],a8=0x0;}finally{a7=a9=0x0;}if(0x5&af[0x0])throw af[0x1];return{'value':af[0x0]?af[0x1]:void 0x0,'done':!0x0};}([ad,ae]);};}},a4=(function(){var uG=to;function a5(a6){var uF=a0b;this[uF(0x3ca)]={},this[uF(0x67b)]=!0x1,this[uF(0x22d)]=a6;}return Object[uG(0x85d)](a5[uG(0x32e)],uG(0x311),{'get':function(){var uH=uG;return this[uH(0x970)];},'set':function(a6){var uI=uG;this[uI(0x970)]=a6,this[uI(0x9f3)]();},'enumerable':!0x1,'configurable':!0x0}),Object[uG(0x85d)](a5['prototype'],uG(0x3fd),{'get':function(){return this['_detected'];},'set':function(a6){var uJ=uG;for(var a7 in(this['_detected']=a6,this[uJ(0x3ca)])){this[uJ(0x3ca)][a7][uJ(0x3fd)]=a6;}},'enumerable':!0x1,'configurable':!0x0}),a5[uG(0x32e)][uG(0x8a9)]=function(a6,a7){var uK=uG;this[uK(0x3ca)][a6]?this[uK(0x3f2)](a6,a7):this['addBeauty'](a6,a7);},a5['prototype']['setBeauty']=function(a6,a7){var uL=uG;void 0x0===a6&&(a6='default');var a8=this[uL(0x3ca)][a6];a8&&(a8[uL(0x15f)]=a7);},a5['prototype'][uG(0x590)]=function(a6,a7){var uM=uG;void 0x0===a6&&(a6=uM(0x19d)),void 0x0===a7&&(a7={});var a8=new a1(a6,this[uM(0x671)],this['_options']);a8[uM(0x3fd)]=this[uM(0x3fd)],a7&&(a8['beautify']=a7),this['_beautifies'][a6]&&this[uM(0x4b7)](a6),a8[uM(0x544)]||(a8[uM(0x87e)](),a8['setRenderer'](this[uM(0x311)])),this[uM(0x3ca)][a6]=a8;},a5[uG(0x32e)][uG(0x16b)]=function(a6,a7){return void 0x0===a6&&(a6='default'),void 0x0===a7&&(a7={}),a2(this,void 0x0,void 0x0,function(){var a8,a9;return a3(this,function(aa){var uN=a0b;switch(aa['label']){case 0x0:return a8=+new Date(),console['log']('log::::input\x20node\x20addBeautyAsync',a6,this[uN(0x22d)]),(a9=new a1(a6,this['_target'],this[uN(0x22d)]))[uN(0x3fd)]=this['detected'],a7&&(a9['beautify']=a7),[0x4,a9[uN(0x87e)]()];case 0x1:return aa['sent'](),a9['setRenderer'](this[uN(0x311)]),this[uN(0x3ca)][a6]&&this[uN(0x4b7)](a6),this[uN(0x3ca)][a6]=a9,console[uN(0x5a1)]('log::::input\x20node\x20addBeautyAsync\x20finish',+new Date()-a8),[0x2];}});});},a5[uG(0x32e)][uG(0x4b4)]=function(){var uO=uG;for(var a6 in this[uO(0x3ca)])this[uO(0x3ca)][a6][uO(0x6e8)]();},a5[uG(0x32e)][uG(0x4c3)]=function(){var uP=uG;for(var a6 in this[uP(0x3ca)])console[uP(0x5a1)](uP(0x7ba),a6),this[uP(0x3ca)][a6][uP(0x588)]();},a5['prototype'][uG(0x56d)]=function(a6,a7){var uQ=uG;for(var a8 in this[uQ(0x3ca)])this['_beautifies'][a8][uQ(0x56d)](a6,a7);},a5[uG(0x32e)][uG(0x4b7)]=function(a6){var uR=uG;this[uR(0x3ca)][a6]['destroy'](),delete this[uR(0x3ca)][a6];},a5[uG(0x32e)]['removeEffectBeauties']=function(){var uS=uG;for(var a6 in this[uS(0x3ca)])uS(0x19d)!==a6&&this[uS(0x4b7)](a6);},a5['prototype'][uG(0x1d8)]=function(a6){var uT=uG;for(var a7 in this[uT(0x3ca)])this[uT(0x3ca)][a7][uT(0x1d8)](a6);},a5[uG(0x32e)][uG(0x650)]=function(a6){var uU=uG;for(var a7 in this[uU(0x3ca)])this[uU(0x3ca)][a7][uU(0x650)](a6);},a5['prototype'][uG(0x9f3)]=function(){var uV=uG;for(var a6 in this[uV(0x3ca)])console[uV(0x5a1)](uV(0x9e4)),this[uV(0x3ca)][a6][uV(0x9f3)](this[uV(0x311)]);},a5;}());},0x1424:(b,d,f)=>{var v9=a0b;f['d'](d,{'Z':()=>k});var g,h=f(0x4b6),j=(g=function(m,p){var uW=a0b;return g=Object[uW(0x43e)]||{'__proto__':[]}instanceof Array&&function(q,v){var uX=uW;q[uX(0x332)]=v;}||function(q,v){var uY=uW;for(var w in v)Object[uY(0x32e)]['hasOwnProperty']['call'](v,w)&&(q[w]=v[w]);},g(m,p);},function(m,p){var uZ=a0b;if('function'!=typeof p&&null!==p)throw new TypeError(uZ(0x67a)+String(p)+uZ(0x7ae));function q(){this['constructor']=m;}g(m,p),m[uZ(0x32e)]=null===p?Object[uZ(0x92d)](p):(q[uZ(0x32e)]=p[uZ(0x32e)],new q());});const k=function(m){var v1=a0b;function p(q){var v0=a0b,v=m[v0(0x8fb)](this)||this;v['degreeStart']=-0x5a,v[v0(0x9fb)]=0x10e,v[v0(0x659)]=0xe,v[v0(0x3cc)]=0x2,v[v0(0x1d7)]=!0x1;var w;return w=wx['getSystemInfoSync']()[v0(0x788)],v['size']=(q[v0(0x698)]||0x64)*w,v[v0(0x716)]=v['size']/0x2,v[v0(0x6fc)]=(q['lineWidth']||0x8)*w,v[v0(0x534)]=q[v0(0x5be)]||0x4169e1,v[v0(0x1b9)]={},v[v0(0x31f)]=new h[(v0(0x3f5))](),v[v0(0x31f)][v0(0x93f)][v0(0x3b4)](0x1/w,0x1/w),v[v0(0x7cf)](v[v0(0x31f)]),v[v0(0x99e)]=v[v0(0x6da)][v0(0x3a7)](v),v;}return j(p,m),p['prototype'][v1(0x6da)]=function(){var v2=v1;this['degreeStart']=this[v2(0x83e)]+this[v2(0x659)],this[v2(0x9fb)]=this[v2(0x9fb)]+this[v2(0x3cc)],this[v2(0x83e)]-0x168>this[v2(0x9fb)]&&(this[v2(0x83e)]-=0x2d0);var q=this[v2(0x31f)];q[v2(0x515)](),q[v2(0x6f2)](this['lineWidth'],this[v2(0x534)]),q[v2(0x726)](0x0,0x0,this['radius']-this[v2(0x6fc)]/0x2,(this[v2(0x83e)]<this['degreeEnd']?this[v2(0x83e)]:this[v2(0x9fb)])*Math['PI']/0xb4,(this[v2(0x83e)]<this[v2(0x9fb)]?this[v2(0x9fb)]:this[v2(0x83e)])*Math['PI']/0xb4);},p[v1(0x32e)]['addTicker']=function(){var v3=v1;h[v3(0x5fe)]['shared']['add'](this[v3(0x99e)]);},p[v1(0x32e)][v1(0x7a6)]=function(){var v4=v1;h[v4(0x5fe)][v4(0x354)]['remove'](this[v4(0x99e)]);},p[v1(0x32e)][v1(0x178)]=function(q){var v5=v1;q&&(this['queue'][q]=0x1),this['isVisible']||(clearTimeout(this['t']),this['graphics'][v5(0x812)]=!0x0,this[v5(0x6da)](),this[v5(0x1eb)](),this['isVisible']=!0x0);},p[v1(0x32e)][v1(0x350)]=function(q){var v6=v1;if(q){this[v6(0x1b9)][q]=void 0x0;var v=!0x0;for(var w in this[v6(0x1b9)])this[v6(0x1b9)][w]&&(v=!0x1);v&&this[v6(0x7d1)]();}else this[v6(0x7d1)]();},p['prototype'][v1(0x7d1)]=function(){var v7=v1;this['t']&&clearTimeout(this['t']),this[v7(0x31f)][v7(0x812)]=!0x1,this[v7(0x7a6)](),this[v7(0x1d7)]=!0x1;},p[v1(0x32e)][v1(0x815)]=function(){var v8=v1;this[v8(0x7d1)](),this[v8(0x31f)][v8(0x815)](!0x0);},p;}(h[v9(0x434)]);},0xc30:(b,j,k)=>{var ve=a0b;k['d'](j,{'B3':()=>C,'F7':()=>B,'KI':()=>H,'L4':()=>z,'M$':()=>E,'RY':()=>F,'X_':()=>G,'iy':()=>A,'lc':()=>D});var q=k(0x4b6),v=k(0xbe4),w=k(0x191),x=function(I,J,K,L){return new(K||(K=Promise))(function(M,N){function O(R){try{Q(L['next'](R));}catch(S){N(S);}}function P(R){var va=a0b;try{Q(L[va(0x626)](R));}catch(S){N(S);}}function Q(R){var vb=a0b,S;R[vb(0x79a)]?M(R[vb(0x4a9)]):(S=R['value'],S instanceof K?S:new K(function(T){T(S);}))['then'](O,P);}Q((L=L['apply'](I,J||[]))['next']());});},y=function(I,J){var vc=a0b,K,L,M,N,O={'label':0x0,'sent':function(){if(0x1&M[0x0])throw M[0x1];return M[0x1];},'trys':[],'ops':[]};return N={'next':P(0x0),'throw':P(0x1),'return':P(0x2)},vc(0x3b5)==typeof Symbol&&(N[Symbol[vc(0x28f)]]=function(){return this;}),N;function P(Q){return function(R){return function(S){var vd=a0b;if(K)throw new TypeError(vd(0x268));for(;O;)try{if(K=0x1,L&&(M=0x2&S[0x0]?L[vd(0x1bc)]:S[0x0]?L[vd(0x626)]||((M=L[vd(0x1bc)])&&M[vd(0x8fb)](L),0x0):L['next'])&&!(M=M[vd(0x8fb)](L,S[0x1]))[vd(0x79a)])return M;switch(L=0x0,M&&(S=[0x2&S[0x0],M['value']]),S[0x0]){case 0x0:case 0x1:M=S;break;case 0x4:return O[vd(0x8a7)]++,{'value':S[0x1],'done':!0x1};case 0x5:O[vd(0x8a7)]++,L=S[0x1],S=[0x0];continue;case 0x7:S=O[vd(0x22e)][vd(0x806)](),O[vd(0x1e0)][vd(0x806)]();continue;default:if(!(M=O['trys'],(M=M[vd(0x4ae)]>0x0&&M[M['length']-0x1])||0x6!==S[0x0]&&0x2!==S[0x0])){O=0x0;continue;}if(0x3===S[0x0]&&(!M||S[0x1]>M[0x0]&&S[0x1]<M[0x3])){O[vd(0x8a7)]=S[0x1];break;}if(0x6===S[0x0]&&O['label']<M[0x1]){O[vd(0x8a7)]=M[0x1],M=S;break;}if(M&&O[vd(0x8a7)]<M[0x2]){O['label']=M[0x2],O[vd(0x22e)][vd(0x3ef)](S);break;}M[0x2]&&O['ops'][vd(0x806)](),O[vd(0x1e0)][vd(0x806)]();continue;}S=J[vd(0x8fb)](I,O);}catch(T){S=[0x6,T],L=0x0;}finally{K=M=0x0;}if(0x5&S[0x0])throw S[0x1];return{'value':S[0x0]?S[0x1]:void 0x0,'done':!0x0};}([Q,R]);};}},z=ve(0x486),A=ve(0x70b),B='falingwen.png',C='heiyanquan.png',D=ve(0x4e9),E='skin_lookup.png',F=ve(0x6d5),G='lips-mask-wx2.png',H=(function(){var vf=ve;function I(){}return I['prototype'][vf(0x3a8)]=function(){return x(this,void 0x0,Promise,function(){var J;return y(this,function(K){var vg=a0b;switch(K[vg(0x8a7)]){case 0x0:return[0x4,(J=new v['pF']())[vg(0x3a8)]()];case 0x1:return K[vg(0x475)](),[0x4,J[vg(0x634)]((0x0,w['xb'])())];case 0x2:return K[vg(0x475)](),[0x2,J[vg(0x8db)]()];}});});},I[vf(0x32e)]['loadImage']=function(J){return x(this,void 0x0,Promise,function(){return y(this,function(K){return[0x2,new Promise(function(L,M){var vh=a0b,N={};if(q[vh(0x635)][vh(0x952)][F]&&q[vh(0x635)][vh(0x952)][G]&&q[vh(0x635)][vh(0x952)][z]&&q['utils'][vh(0x952)][A]&&q['utils']['TextureCache'][B]&&q[vh(0x635)][vh(0x952)][C])return N[F]=q['utils'][vh(0x952)][F],N[G]=q[vh(0x635)][vh(0x952)][G],N[z]=q[vh(0x635)][vh(0x952)][z],N[A]=q[vh(0x635)][vh(0x952)][A],N[B]=q[vh(0x635)]['TextureCache'][B],N[C]=q[vh(0x635)][vh(0x952)][C],L(N);J[vh(0x572)](F),J[vh(0x572)](G),J[vh(0x572)](z),J[vh(0x572)](A),J[vh(0x572)](B),J[vh(0x572)](C),J[vh(0x87e)](function(O,P){var vi=vh;return N[F]=q[vi(0x635)][vi(0x952)][F],N[G]=q[vi(0x635)][vi(0x952)][G],N[z]=q[vi(0x635)][vi(0x952)][z],N[A]=q[vi(0x635)][vi(0x952)][A],N[B]=q[vi(0x635)][vi(0x952)][B],N[C]=q[vi(0x635)]['TextureCache'][C],L(N);});})];});});},I;}());},0x15a0:(b,d,f)=>{var vn=a0b;f['d'](d,{'f':()=>m});var g=f(0x4b6),h,j=(h=function(p,q){var vj=a0b;return h=Object[vj(0x43e)]||{'__proto__':[]}instanceof Array&&function(v,w){v['__proto__']=w;}||function(v,w){var vk=vj;for(var x in w)Object[vk(0x32e)]['hasOwnProperty'][vk(0x8fb)](w,x)&&(v[x]=w[x]);},h(p,q);},function(p,q){var vl=a0b;if(vl(0x3b5)!=typeof q&&null!==q)throw new TypeError(vl(0x67a)+String(q)+vl(0x7ae));function v(){var vm=vl;this[vm(0x1fc)]=p;}h(p,q),p[vl(0x32e)]=null===q?Object[vl(0x92d)](q):(v[vl(0x32e)]=q[vl(0x32e)],new v());}),k={'mirror':{'fragment':vn(0x388)},'mirrorVertical':{'fragment':vn(0x38f)},'lut':{'fragment':vn(0x5d3)},'lutSkin':{'fragment':vn(0x1e5)},'partialLutSkin':{'fragment':'precision\x20mediump\x20float;\x0avarying\x20highp\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x20//\x20图像texture\x0auniform\x20sampler2D\x20grayTexture;\x20\x20//\x20灰度查找表\x0auniform\x20sampler2D\x20lookupTexture;\x20//\x20LUT\x0a\x0auniform\x20highp\x20float\x20levelRangeInv;\x20//\x20范围\x0auniform\x20lowp\x20float\x20levelBlack;\x20//\x20灰度level\x20\x0a//\x20uniform\x20lowp\x20float\x20intensity;\x20//\x20肤色程度\x20\x0auniform\x20sampler2D\x20faceMask;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20float\x20mask\x20=\x20texture2D(faceMask,\x20vTextureCoord).a;\x0a\x20\x20\x20\x20lowp\x20vec3\x20textureColor\x20=\x20texture2D(uSampler,\x20vTextureCoord).rgb;\x0a\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20if\x20(mask\x20==\x200.)\x20{\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(textureColor,\x201.0);\x20\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20//\x20};\x0a\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20textureColor\x20=\x20clamp((textureColor\x20-\x20vec3(levelBlack,\x20levelBlack,\x20levelBlack))\x20*\x20levelRangeInv,\x200.0,\x201.0);\x0a\x20\x20\x20\x20textureColor.r\x20=\x20texture2D(grayTexture,\x20vec2(textureColor.r,\x200.5)).r;\x0a\x20\x20\x20\x20textureColor.g\x20=\x20texture2D(grayTexture,\x20vec2(textureColor.g,\x200.5)).g;\x0a\x20\x20\x20\x20textureColor.b\x20=\x20texture2D(grayTexture,\x20vec2(textureColor.b,\x200.5)).b;\x0a\x0a\x20\x20\x20\x20mediump\x20float\x20blueColor\x20=\x20textureColor.b\x20*\x2015.0;\x0a\x0a\x20\x20\x20\x20mediump\x20vec2\x20quad1;\x0a\x20\x20\x20\x20quad1.y\x20=\x20floor(blueColor\x20/\x204.0);\x0a\x20\x20\x20\x20quad1.x\x20=\x20floor(blueColor)\x20-\x20(quad1.y\x20*\x204.0);\x0a\x0a\x20\x20\x20\x20mediump\x20vec2\x20quad2;\x0a\x20\x20\x20\x20quad2.y\x20=\x20floor(ceil(blueColor)\x20/\x204.0);\x0a\x20\x20\x20\x20quad2.x\x20=\x20ceil(blueColor)\x20-\x20(quad2.y\x20*\x204.0);\x0a\x0a\x20\x20\x20\x20highp\x20vec2\x20texPos1;\x0a\x20\x20\x20\x20texPos1.x\x20=\x20(quad1.x\x20*\x200.25)\x20+\x200.5\x20/\x2064.0\x20+\x20((0.25\x20-\x201.0\x20/\x2064.0)\x20*\x20textureColor.r);\x0a\x20\x20\x20\x20texPos1.y\x20=\x20(quad1.y\x20*\x200.25)\x20+\x200.5\x20/\x2064.0\x20+\x20((0.25\x20-\x201.0\x20/\x2064.0)\x20*\x20textureColor.g);\x0a\x0a\x20\x20\x20\x20highp\x20vec2\x20texPos2;\x0a\x20\x20\x20\x20texPos2.x\x20=\x20(quad2.x\x20*\x200.25)\x20+\x200.5\x20/\x2064.0\x20+\x20((0.25\x20-\x201.0\x20/\x2064.0)\x20*\x20textureColor.r);\x0a\x20\x20\x20\x20texPos2.y\x20=\x20(quad2.y\x20*\x200.25)\x20+\x200.5\x20/\x2064.0\x20+\x20((0.25\x20-\x201.0\x20/\x2064.0)\x20*\x20textureColor.g);\x0a\x0a\x20\x20\x20\x20lowp\x20vec4\x20newColor1\x20=\x20texture2D(lookupTexture,\x20texPos1);\x0a\x20\x20\x20\x20lowp\x20vec4\x20newColor2\x20=\x20texture2D(lookupTexture,\x20texPos2);\x0a\x0a\x20\x20\x20\x20lowp\x20vec3\x20newColor\x20=\x20mix(newColor1.rgb,\x20newColor2.rgb,\x20fract(blueColor));\x0a\x0a\x20\x20\x20\x20//\x20textureColor\x20=\x20mix(textureColor,\x20newColor,\x201.0);\x0a\x20\x20\x20\x20textureColor\x20=\x20mix(textureColor,\x20newColor,\x20mask);\x0a\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(textureColor,\x201.0);\x20\x0a}\x0a'},'dermabrasion':{'fragment':vn(0x8ad)},'partialDermabrasion':{'fragment':vn(0x45d)},'faceReshape':{'fragment':vn(0x792)},'maskBlack':{'fragment':'\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0a\x20\x20gl_FragColor\x20=\x20vec4(color.rgb,color.r);\x0a}\x0a'},'usm':{'fragment':vn(0x8f2)}},m=function(p){var vp=vn;function q(v,w,x){var vo=a0b,y=this,z=k[v];(y=p['call'](this,z['vertex']||vo(0x47e),z[vo(0x760)])||this)[vo(0x35d)]=x||{};var A=y[vo(0x35d)][vo(0x71a)];if(A){for(var B in A)y['uniforms'][B]=A[B];}var C=w[vo(0x260)],D=w[vo(0x307)];return y['uniforms'][vo(0x260)]=C,y['uniforms']['height']=D,y[vo(0x71a)]['iResolution']=[C,D],y;}return j(q,p),q['prototype'][vp(0x56d)]=function(v,w){var vq=vp;this['uniforms']['width']=v,this[vq(0x71a)]['height']=w,this['uniforms'][vq(0x7f1)]=[v,w];},q['prototype'][vp(0x426)]=function(v,w){var vr=vp;if('object'==typeof v){for(var x in v)this[vr(0x71a)][x]=v[x];}else this['uniforms'][v]!==w&&(this[vr(0x71a)][v]=w);},q;}(g[vn(0x3d8)]);},0x6c2:(b,d,f)=>{var vt=a0b;f['d'](d,{'a':()=>g,'L':()=>h});var g;!function(j){var vs=a0b;j[j['NORMAL']=0x0]=vs(0x29b),j[j[vs(0x33a)]=0x1]=vs(0x33a),j[j['MULTIPLY']=0x2]=vs(0x27f),j[j[vs(0x9ac)]=0x3]=vs(0x9ac),j[j[vs(0x96c)]=0x4]=vs(0x96c),j[j[vs(0x57d)]=0x5]='LIGHTEN',j[j[vs(0x24f)]=0x6]=vs(0x24f),j[j['COLOR_DODGE']=0x7]=vs(0x72c),j[j[vs(0x54a)]=0x8]=vs(0x54a),j[j['OVERLAY']=0x9]=vs(0x7fb),j[j[vs(0x205)]=0xa]='SOFT_LIGHT',j[j[vs(0x314)]=0xb]=vs(0x314),j[j[vs(0x691)]=0xc]=vs(0x691),j[j[vs(0x6ef)]=0xd]=vs(0x6ef),j[j[vs(0x91a)]=0xe]=vs(0x91a),j[j[vs(0x71e)]=0xf]=vs(0x71e),j[j[vs(0x182)]=0x10]=vs(0x182),j[j[vs(0x2d3)]=0x11]='EXCLUSION',j[j[vs(0x9d8)]=0x12]=vs(0x9d8);}(g||(g={}));var h=[{'name':'普通','key':vt(0x3dd),'shader':vt(0x943)},{'name':'变暗','key':vt(0x76c),'shader':vt(0x6f3)},{'name':vt(0x785),'key':'Multiply','shader':vt(0x5d1)},{'name':'颜色加深','key':vt(0x6d6),'shader':vt(0x72b)},{'name':vt(0x6c7),'key':vt(0x4e3),'shader':vt(0x9ae)},{'name':'变亮','key':'Lighten','shader':vt(0x44a)},{'name':'滤色','key':vt(0x90a),'shader':vt(0x62b)},{'name':'颜色减淡','key':vt(0x1bf),'shader':vt(0x1bb)},{'name':vt(0x5e6),'key':vt(0x204),'shader':vt(0x1a9)},{'name':'叠加','key':'Overlay','shader':vt(0x85c)},{'name':'柔光','key':vt(0x248),'shader':'float\x20blendSoftLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend<0.5)?(2.0*base*blend+base*base*(1.0-2.0*blend)):(sqrt(base)*(2.0*blend-1.0)+2.0*base*(1.0-blend));\x0a}\x0a\x0avec3\x20blendSoftLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendSoftLight(base.r,blend.r),blendSoftLight(base.g,blend.g),blendSoftLight(base.b,blend.b));\x0a}\x0a\x0a\x0avec3\x20blendSoftLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendSoftLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':'强光','key':'HardLight','shader':'float\x20blendOverlay(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));\x0a}\x0avec3\x20blendOverlay(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));\x0a}\x0avec3\x20blendHardLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20blendOverlay(blend,base);\x0a}\x0a\x0avec3\x20blendHardLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendHardLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':'亮光','key':vt(0x74d),'shader':'float\x20blendColorDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==1.0)?blend:min(base/(1.0-blend),1.0);\x0a}\x0a\x0a\x0afloat\x20blendColorBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\x0a}\x0a\x0a\x0a\x0a\x0afloat\x20blendVividLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));\x0a}\x0a\x0avec3\x20blendVividLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendVividLight(base.r,blend.r),blendVividLight(base.g,blend.g),blendVividLight(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendVividLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendVividLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':vt(0x904),'key':vt(0x9ee),'shader':'float\x20blendLinearBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendSubtractf\x0a\x09return\x20max(base+blend-1.0,0.0);\x0a}\x0a\x0afloat\x20blendLinearDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendAddf\x0a\x09return\x20min(base+blend,1.0);\x0a}\x0a\x0a\x0afloat\x20blendLinearLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20blend<0.5?blendLinearBurn(base,(2.0*blend)):blendLinearDodge(base,(2.0*(blend-0.5)));\x0a}\x0a\x0avec3\x20blendLinearLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendLinearLight(base.r,blend.r),blendLinearLight(base.g,blend.g),blendLinearLight(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendLinearLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendLinearLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':'点光','key':vt(0x6b6),'shader':vt(0x597)},{'name':vt(0x9b3),'key':vt(0x94d),'shader':'float\x20blendColorDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==1.0)?blend:min(base/(1.0-blend),1.0);\x0a}\x0a\x0a\x0a\x0afloat\x20blendColorBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\x0a}\x0a\x0a\x0a\x0afloat\x20blendVividLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));\x0a}\x0a\x0a\x0a\x0afloat\x20blendHardMix(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blendVividLight(base,blend)<0.5)?0.0:1.0;\x0a}\x0a\x0avec3\x20blendHardMix(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendHardMix(base.r,blend.r),blendHardMix(base.g,blend.g),blendHardMix(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendHardMix(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendHardMix(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':'差值','key':vt(0x242),'shader':'vec3\x20blendDifference(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20abs(base-blend);\x0a}\x0a\x0avec3\x20blendDifference(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendDifference(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a'},{'name':'排除','key':vt(0x8c3),'shader':vt(0x421)},{'name':'减去','key':vt(0x51e),'shader':vt(0x644)}];},0x2558:(j,q,z)=>{var vA=a0b;z['d'](q,{'Kg':()=>a0,'Lc':()=>L['L'],'Kj':()=>a4,'jy':()=>X});var B,F=z(0x2353),G=(B=function(af,ag){var vu=a0b;return B=Object[vu(0x43e)]||{'__proto__':[]}instanceof Array&&function(ah,ai){var vv=vu;ah[vv(0x332)]=ai;}||function(ah,ai){var vw=vu;for(var aj in ai)Object[vw(0x32e)][vw(0x16f)][vw(0x8fb)](ai,aj)&&(ah[aj]=ai[aj]);},B(af,ag);},function(af,ag){var vx=a0b;if('function'!=typeof ag&&null!==ag)throw new TypeError(vx(0x67a)+String(ag)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function ah(){var vy=vx;this[vy(0x1fc)]=af;}B(af,ag),af[vx(0x32e)]=null===ag?Object[vx(0x92d)](ag):(ah[vx(0x32e)]=ag[vx(0x32e)],new ah());}),H=function(af){function ag(){var vz=a0b,ah=null!==af&&af[vz(0x6e8)](this,arguments)||this;return ah[vz(0x465)]=null,ah[vz(0x356)]=!0x1,ah[vz(0x6c4)]=null,ah;}return G(ag,af),ag;}(F[vA(0x3d8)]),J=function(af){function ag(ah){var vB=a0b,ai=this,aj='\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20sampler2D\x20uBackdrop;\x0auniform\x20vec2\x20uBackdrop_flipY;\x0auniform\x20float\x20intensity;\x0a\x0a%UNIFORM_CODE%\x0a%FUNC_CODE%\x0avoid\x20main(void)\x0a{\x0a\x20\x20\x20\x20vec2\x20backdropCoord\x20=\x20vec2(vTextureCoord.x,\x20vTextureCoord.y);\x0a\x20\x20\x20\x20//\x20vec2\x20backdropCoord\x20=\x20vec2(vTextureCoord.x,\x20uBackdrop_flipY.x\x20+\x20uBackdrop_flipY.y\x20*\x20vTextureCoord.y);\x0a\x20\x20\x20\x20vec4\x20b_src\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x20//\x20精灵\x0a\x20\x20\x20\x20vec4\x20b_dest\x20=\x20texture2D(uBackdrop,\x20backdropCoord);\x20//\x20底图\x0a\x20\x20\x20\x20vec4\x20b_res\x20=\x20b_src;\x0a\x0a\x0a\x20\x20\x20\x20//\x20gl_FragColor\x20=\x20b_dest;\x0a\x20\x20\x20\x20//\x20return;\x0a\x0a\x20\x20\x20\x20if\x20(b_src.a\x20==\x200.0)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(0.0,0.0,0.0,0.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20if\x20(b_dest.a\x20==\x200.0)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(0.0,0.0,0.0,0.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gl_FragColor\x20=\x20b_src;\x0a\x20\x20\x20\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x0a\x20\x20\x20\x20b_res.rgb\x20=\x20blend%FUNC_NAME%(b_dest.rgb\x20/\x20b_dest.a,\x20b_src.rgb\x20/\x20b_src.a,\x20intensity);\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(b_res.rgb\x20*\x20b_src.a,b_src.a);\x0a\x0a}';return aj=(aj=(aj=aj['replace']('%UNIFORM_CODE%',ah[vB(0x63e)]||''))[vB(0x99b)](vB(0x8d2),ah[vB(0x548)]||''))[vB(0x99b)](vB(0x76d),ah[vB(0x9c3)]||''),(ai=af[vB(0x8fb)](this,void 0x0,aj,ah['uniforms'])||this)[vB(0x465)]='uBackdrop',ai;}return G(ag,af),ag;}(H),K=(function(){var af=function(ag,ah){var vC=a0b;return af=Object[vC(0x43e)]||{'__proto__':[]}instanceof Array&&function(ai,aj){ai['__proto__']=aj;}||function(ai,aj){var vD=vC;for(var ak in aj)Object[vD(0x32e)][vD(0x16f)][vD(0x8fb)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vE=a0b;if(vE(0x3b5)!=typeof ah&&null!==ah)throw new TypeError('Class\x20extends\x20value\x20'+String(ah)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function ai(){var vF=vE;this[vF(0x1fc)]=ag;}af(ag,ah),ag['prototype']=null===ah?Object['create'](ah):(ai[vE(0x32e)]=ah[vE(0x32e)],new ai());};}()),L=(function(af){function ag(ah,ai){var vG=a0b,aj=ai||{};return aj[vG(0x1a2)]||(aj['flipY']=new Float32Array([0x0,0x1])),af[vG(0x8fb)](this,vG(0x563),ah,aj)||this;}K(ag,af);}(F[vA(0x3d8)]),z(0x6c2)),M=[],N=[];function Q(af,ag){var vH=vA;return void 0x0===ag&&(ag=0x1),void 0x0===af?null:(M[af]||(M[af]=new J({'funcCode':L['L'][af][vH(0x342)],'funcName':L['L'][af][vH(0x8c9)],'uniforms':{'intensity':ag}})),M[af]);}function U(af,ag){var vI=vA;return void 0x0===ag&&(ag=0x1),void 0x0===af?null:(N[af]||(N[af]=[Q(af,ag)]),N[af][0x0][vI(0x71a)]['intensity']=ag,N[af]);}var V=z(0x7a9),W=(function(){var af=function(ag,ah){return af=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(ai,aj){var vJ=a0b;ai[vJ(0x332)]=aj;}||function(ai,aj){var vK=a0b;for(var ak in aj)Object[vK(0x32e)][vK(0x16f)][vK(0x8fb)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vL=a0b;if(vL(0x3b5)!=typeof ah&&null!==ah)throw new TypeError(vL(0x67a)+String(ah)+vL(0x7ae));function ai(){this['constructor']=ag;}af(ag,ah),ag[vL(0x32e)]=null===ah?Object['create'](ah):(ai[vL(0x32e)]=ah[vL(0x32e)],new ai());};}()),X=function(af){var vM=vA;function ag(){return null!==af&&af['apply'](this,arguments)||this;}return W(ag,af),ag[vM(0x32e)][vM(0x214)]=function(ah){var vN=vM,ai=this[vN(0x3c2)];if(ai&&ai['valid']){var aj=U(this['blendMode_1']);new Date(),aj&&(ah[vN(0x7ac)]['flush'](),!ah[vN(0x3b7)][vN(0x754)](this,aj))||(+new Date(),this[vN(0x75a)](),ah[vN(0x7ac)][vN(0x3aa)](ah[vN(0x525)][this[vN(0x8a6)]]),ah[vN(0x525)][this[vN(0x8a6)]][vN(0x6ca)](this),aj&&(ah[vN(0x7ac)][vN(0x340)](),ah[vN(0x3b7)]['pop']()));}},ag;}(V['j']),Y=z(0xb55),Z=(function(){var af=function(ag,ah){var vO=a0b;return af=Object[vO(0x43e)]||{'__proto__':[]}instanceof Array&&function(ai,aj){var vP=vO;ai[vP(0x332)]=aj;}||function(ai,aj){var vQ=vO;for(var ak in aj)Object['prototype'][vQ(0x16f)][vQ(0x8fb)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var vR=a0b;if('function'!=typeof ah&&null!==ah)throw new TypeError(vR(0x67a)+String(ah)+vR(0x7ae));function ai(){var vS=vR;this[vS(0x1fc)]=ag;}af(ag,ah),ag[vR(0x32e)]=null===ah?Object[vR(0x92d)](ah):(ai[vR(0x32e)]=ah[vR(0x32e)],new ai());};}()),a0=function(af){var vU=vA;function ag(ah,ai){var vT=a0b;void 0x0===ai&&(ai=!0x0);var aj=af[vT(0x8fb)](this,ah[0x0]instanceof F[vT(0x2f8)]?ah[0x0]:ah[0x0][vT(0x26b)])||this;return aj['_textures']=null,aj[vT(0x82d)]=null,aj[vT(0x606)]=ai,aj['_isConnectedToTicker']=!0x1,aj[vT(0x61e)]=0x1,aj[vT(0x522)]=!0x0,aj[vT(0x974)]=!0x1,aj['onComplete']=null,aj[vT(0x7d8)]=null,aj['onLoop']=null,aj[vT(0x326)]=0x0,aj[vT(0x581)]=!0x1,aj[vT(0x180)]=null,aj[vT(0x2b4)]=ah,aj;}return Z(ag,af),ag['prototype'][vU(0x613)]=function(){var vV=vU;this[vV(0x581)]&&(this[vV(0x581)]=!0x1,this[vV(0x606)]&&this[vV(0x4e8)]&&(Y['vB'][vV(0x354)][vV(0x588)](this[vV(0x761)],this),this[vV(0x4e8)]=!0x1));},ag[vU(0x32e)]['play']=function(){var vW=vU;this['_playing']||(this['_playing']=!0x0,this[vW(0x606)]&&!this[vW(0x4e8)]&&(Y['vB'][vW(0x354)][vW(0x572)](this[vW(0x761)],this,Y['uF']['HIGH']),this[vW(0x4e8)]=!0x0));},ag['prototype'][vU(0x1ef)]=function(ah){var vX=vU;this['stop']();var ai=this[vX(0x8b2)];this[vX(0x326)]=ah,ai!==this[vX(0x8b2)]&&this[vX(0x688)]();},ag[vU(0x32e)][vU(0x5d7)]=function(ah){var vY=vU,ai=this['currentFrame'];this[vY(0x326)]=ah,ai!==this[vY(0x8b2)]&&this[vY(0x688)](),this[vY(0x740)]();},ag['prototype']['update']=function(ah){var vZ=vU;if(this['_playing']){var ai=this[vZ(0x61e)]*ah,aj=this[vZ(0x8b2)];if(null!==this[vZ(0x82d)]){var ak=this['_currentTime']%0x1*this[vZ(0x82d)][this[vZ(0x8b2)]];for(ak+=ai/0x3c*0x3e8;ak<0x0;)this[vZ(0x326)]--,ak+=this[vZ(0x82d)][this['currentFrame']];var al=Math['sign'](this[vZ(0x61e)]*ah);for(this['_currentTime']=Math[vZ(0x6fb)](this[vZ(0x326)]);ak>=this[vZ(0x82d)][this['currentFrame']];)ak-=this[vZ(0x82d)][this[vZ(0x8b2)]]*al,this[vZ(0x326)]+=al;this[vZ(0x326)]+=ak/this[vZ(0x82d)][this['currentFrame']];}else this[vZ(0x326)]+=ai;this[vZ(0x326)]<0x0&&!this[vZ(0x522)]?(this[vZ(0x1ef)](0x0),this[vZ(0x6b2)]&&this['onComplete']()):this['_currentTime']>=this[vZ(0x583)]['length']&&!this[vZ(0x522)]?(this[vZ(0x1ef)](this[vZ(0x583)][vZ(0x4ae)]-0x1),this[vZ(0x6b2)]&&this[vZ(0x6b2)]()):aj!==this[vZ(0x8b2)]&&(this[vZ(0x522)]&&this[vZ(0x17e)]&&(this['animationSpeed']>0x0&&this[vZ(0x8b2)]<aj||this[vZ(0x61e)]<0x0&&this['currentFrame']>aj)&&this['onLoop'](),this['updateTexture']());}},ag[vU(0x32e)][vU(0x688)]=function(){var w0=vU,ah=this[w0(0x8b2)];this[w0(0x180)]!==ah&&(this['_previousFrame']=ah,this['_texture']=this[w0(0x583)][ah],this['_textureID']=-0x1,this['_textureTrimmedID']=-0x1,this[w0(0x419)]=0xffffff,this[w0(0x1d4)]=this[w0(0x3c2)][w0(0x6be)][w0(0x9a8)],this[w0(0x974)]&&this[w0(0x385)][w0(0x390)](this[w0(0x3c2)][w0(0x3fb)]),this['onFrameChange']&&this[w0(0x7d8)](this[w0(0x8b2)]));},ag['prototype'][vU(0x815)]=function(ah){var w1=vU;this[w1(0x613)](),af[w1(0x32e)][w1(0x815)][w1(0x8fb)](this,ah),this[w1(0x6b2)]=null,this[w1(0x7d8)]=null,this['onLoop']=null;},ag[vU(0x98a)]=function(ah){var w2=vU;for(var ai=[],aj=0x0;aj<ah[w2(0x4ae)];++aj)ai[w2(0x3ef)](F[w2(0x2f8)][w2(0x615)](ah[aj]));return new ag(ai);},ag[vU(0x7b5)]=function(ah){var w3=vU;for(var ai=[],aj=0x0;aj<ah['length'];++aj)ai['push'](F[w3(0x2f8)]['from'](ah[aj]));return new ag(ai);},Object[vU(0x85d)](ag[vU(0x32e)],vU(0x43f),{'get':function(){var w4=vU;return this['_textures'][w4(0x4ae)];},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](ag[vU(0x32e)],vU(0x2b4),{'get':function(){var w5=vU;return this[w5(0x583)];},'set':function(ah){var w6=vU;if(ah[0x0]instanceof F[w6(0x2f8)])this[w6(0x583)]=ah,this[w6(0x82d)]=null;else{this['_textures']=[],this[w6(0x82d)]=[];for(var ai=0x0;ai<ah[w6(0x4ae)];ai++)this['_textures'][w6(0x3ef)](ah[ai][w6(0x26b)]),this[w6(0x82d)][w6(0x3ef)](ah[ai][w6(0x897)]);}this[w6(0x180)]=null,this[w6(0x1ef)](0x0),this['updateTexture']();},'enumerable':!0x1,'configurable':!0x0}),Object[vU(0x85d)](ag['prototype'],vU(0x8b2),{'get':function(){var w7=vU,ah=Math[w7(0x6fb)](this['_currentTime'])%this[w7(0x583)]['length'];return ah<0x0&&(ah+=this['_textures'][w7(0x4ae)]),ah;},'enumerable':!0x1,'configurable':!0x0}),Object[vU(0x85d)](ag[vU(0x32e)],vU(0x46b),{'get':function(){return this['_playing'];},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](ag['prototype'],vU(0x9db),{'get':function(){var w8=vU;return this[w8(0x606)];},'set':function(ah){var w9=vU;ah!==this[w9(0x606)]&&(this[w9(0x606)]=ah,!this[w9(0x606)]&&this['_isConnectedToTicker']?(Y['vB'][w9(0x354)]['remove'](this['update'],this),this['_isConnectedToTicker']=!0x1):this[w9(0x606)]&&!this[w9(0x4e8)]&&this[w9(0x581)]&&(Y['vB'][w9(0x354)][w9(0x572)](this[w9(0x761)],this),this[w9(0x4e8)]=!0x0));},'enumerable':!0x1,'configurable':!0x0}),ag;}(X),a1=z(0x1fcd),a2=z(0x1deb),a3=(function(){var af=function(ag,ah){var wa=a0b;return af=Object[wa(0x43e)]||{'__proto__':[]}instanceof Array&&function(ai,aj){var wb=wa;ai[wb(0x332)]=aj;}||function(ai,aj){var wc=wa;for(var ak in aj)Object[wc(0x32e)]['hasOwnProperty'][wc(0x8fb)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var wd=a0b;if(wd(0x3b5)!=typeof ah&&null!==ah)throw new TypeError(wd(0x67a)+String(ah)+wd(0x7ae));function ai(){this['constructor']=ag;}af(ag,ah),ag[wd(0x32e)]=null===ah?Object[wd(0x92d)](ah):(ai[wd(0x32e)]=ah['prototype'],new ai());};}()),a4=function(af){var wf=vA;function ag(){var we=a0b;return null!==af&&af[we(0x6e8)](this,arguments)||this;}return a3(ag,af),ag[wf(0x32e)][wf(0x214)]=function(ah){var wg=wf,ai=U(this[wg(0x674)],this[wg(0x7b7)]);if(!ai||(ah[wg(0x7ac)][wg(0x340)](),ah['filter'][wg(0x754)](this,ai))){var aj=this[wg(0x234)]['buffers'][0x0]['data'];this[wg(0x342)][wg(0x196)]&&this[wg(0x2bf)]===a2['lg'][wg(0x453)]&&aj['length']<0x2*ag[wg(0x38a)]?this[wg(0x2d0)](ah):this[wg(0x1c1)](ah),ai&&(ah[wg(0x7ac)][wg(0x340)](),ah[wg(0x3b7)]['pop']());}},ag;}(a1['Kj']),a5=z(0x810),a6=(function(){var af=function(ag,ah){var wh=a0b;return af=Object[wh(0x43e)]||{'__proto__':[]}instanceof Array&&function(ai,aj){var wi=wh;ai[wi(0x332)]=aj;}||function(ai,aj){var wj=wh;for(var ak in aj)Object['prototype'][wj(0x16f)][wj(0x8fb)](aj,ak)&&(ai[ak]=aj[ak]);},af(ag,ah);};return function(ag,ah){var wk=a0b;if(wk(0x3b5)!=typeof ah&&null!==ah)throw new TypeError(wk(0x67a)+String(ah)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function ai(){this['constructor']=ag;}af(ag,ah),ag[wk(0x32e)]=null===ah?Object[wk(0x92d)](ah):(ai[wk(0x32e)]=ah[wk(0x32e)],new ai());};}()),a7=(function(af){var wm=vA;function ag(){var wl=a0b;return null!==af&&af[wl(0x6e8)](this,arguments)||this;}a6(ag,af),ag[wm(0x32e)][wm(0x214)]=function(ah){var wn=wm,ai=this[wn(0x3c2)];if(ai&&ai[wn(0x5e2)]){var aj=U(this[wn(0x674)]);aj&&(ah['batch'][wn(0x340)](),!ah[wn(0x3b7)][wn(0x754)](this,aj))||(this[wn(0x444)][wn(0x5b4)](),this[wn(0x17c)]['update'](),ah[wn(0x7ac)][wn(0x3aa)](ah['plugins'][this[wn(0x8a6)]]),ah[wn(0x525)][this['pluginName']][wn(0x6ca)](this),aj&&(ah[wn(0x7ac)][wn(0x340)](),ah[wn(0x3b7)][wn(0x806)]()));}};}(a5['o']),z(0x765));function a8(af,ag){var wo=vA;void 0x0===ag&&(ag=0x0);var ah=this['gl'];this['currentLocation']!==ag&&(this[wo(0x6f0)]=ag,ah[wo(0x288)](ah[wo(0x261)]+ag)),this[wo(0x3a7)](af,ag);}var a9=new a7['y3']();function aa(af,ag,ah){var wp=vA;void 0x0===ah&&(ah=!0x0);for(var ai=this[wp(0x311)],aj=this['defaultFilterStack'],ak=this[wp(0x1ca)][wp(0x806)]()||new F['FilterState'](),al=this[wp(0x311)][wp(0x415)],am=ag[0x0][wp(0x2ce)],an=ag[0x0][wp(0x7a1)],ao=ag[0x0][wp(0x97b)],ap=ag[0x0][wp(0x3cd)],aq=0x1;aq<ag[wp(0x4ae)];aq++){var ar=ag[aq];am=Math['min'](am,ar['resolution']),an=this['useMaxPadding']?Math[wp(0x3ae)](an,ar[wp(0x7a1)]):an+ar[wp(0x7a1)],ao=ao&&ar[wp(0x97b)],ap=ap||ar[wp(0x3cd)];}0x1===aj[wp(0x4ae)]&&(this[wp(0x1a1)][0x0][wp(0x415)]=al['current']),aj[wp(0x3ef)](ak),ak[wp(0x2ce)]=am,ak[wp(0x3cd)]=ap,ak['target']=af,ak['sourceFrame'][wp(0x390)](af[wp(0x9df)]||af[wp(0x578)](!0x0)),ak['sourceFrame']['pad'](an);var as,at,au,av,aw,ax,ay=!0x0;if(ao){var az=this['tempRect'][wp(0x390)](al[wp(0x580)]);ai[wp(0x3b8)][wp(0x70c)]&&this[wp(0x742)](a9[wp(0x390)](ai[wp(0x3b8)][wp(0x70c)])[wp(0x8ac)](),az),ak[wp(0x580)]['fit'](az);}else as=this[wp(0x311)][wp(0x415)][wp(0x580)],at=ak[wp(0x580)],au=at['x']+at['width'],av=at['y']+at[wp(0x307)],aw=as['x']+as[wp(0x260)],ax=as['y']+as[wp(0x307)],ay=at['x']>=as['x']&&at['x']<=aw&&at['y']>=as['y']&&at['y']<=ax&&au>=as['x']&&au<=aw&&av>=as['y']&&av<=ax;if(ah&&ak[wp(0x580)]['width']<=0x1&&ak['sourceFrame'][wp(0x307)]<=0x1)return aj[wp(0x806)](),ak[wp(0x515)](),this['statePool'][wp(0x3ef)](ak),!0x1;this[wp(0x5b0)](ak['sourceFrame'],al[wp(0x787)]?al[wp(0x787)]['resolution']:ai['resolution'],al[wp(0x580)],al[wp(0x28e)],ai[wp(0x3b8)][wp(0x70c)]),ak[wp(0x580)][wp(0x61d)](am),new Date();if(ay){var aA=null,aB=null;for(aq=0x0;aq<ag['length'];aq++){var aC=ag[aq][wp(0x465)];if(aC){var aD=ag[aq]['uniforms'];aD[aC+wp(0x66c)]||(aD[aC+wp(0x66c)]=new Float32Array([0x0,0x1]));var aE=aD[aC+wp(0x66c)];null===aA?(aA=this['prepareBackdrop'](ak[wp(0x580)],aE),aB=aE):(aE[0x0]=aB[0x0],aE[0x1]=aB[0x1]),aD[aC]=aA,aA&&(ag[aq][wp(0x356)]=!0x0);}}aA&&(am=ak['resolution']=aA[wp(0x2ce)]);}ak[wp(0x415)]=this[wp(0x492)](ak[wp(0x580)][wp(0x260)],ak[wp(0x580)][wp(0x307)],am),ak[wp(0x958)]=ag,ak[wp(0x28e)]['width']=ak[wp(0x415)][wp(0x260)],ak[wp(0x28e)][wp(0x307)]=ak[wp(0x415)]['height'];var aF=this['tempRect'];aF['x']=0x0,aF['y']=0x0,aF[wp(0x260)]=ak[wp(0x580)][wp(0x260)],aF['height']=ak[wp(0x580)][wp(0x307)],ak[wp(0x415)][wp(0x26f)]=ak['sourceFrame'],ak['bindingSourceFrame'][wp(0x390)](al[wp(0x580)]),ak[wp(0x31c)][wp(0x390)](al[wp(0x28e)]),ak[wp(0x70c)]=ai['projection']['transform'],ai[wp(0x3b8)]['transform']=null,al[wp(0x3a7)](ak[wp(0x415)],ak[wp(0x580)],aF);var aG=ag[ag[wp(0x4ae)]-0x1][wp(0x6c4)];return aG?ai[wp(0x6a2)][wp(0x515)](aG[0x0],aG[0x1],aG[0x2],aG[0x3]):ai[wp(0x6a2)][wp(0x515)](0x0,0x0,0x0,0x0),!0x0;}function ab(af,ag){return this['pushWithCheck'](af,ag,!0x1);}function ac(){var wq=vA,af=this[wq(0x1a1)],ag=af[wq(0x806)](),ah=ag['filters'];this[wq(0x705)]=ag;var ai=this[wq(0x5a6)][wq(0x71a)];ai[wq(0x528)]=ag[wq(0x580)],ai['resolution']=ag[wq(0x2ce)];var aj=ai[wq(0x662)],ak=ai[wq(0x70a)],al=ai[wq(0x53f)];if(aj[0x0]=ag[wq(0x28e)][wq(0x260)],aj[0x1]=ag[wq(0x28e)]['height'],aj[0x2]=0x1/aj[0x0],aj[0x3]=0x1/aj[0x1],ak[0x0]=aj[0x0]*ag[wq(0x2ce)],ak[0x1]=aj[0x1]*ag['resolution'],ak[0x2]=0x1/ak[0x0],ak[0x3]=0x1/ak[0x1],al[0x0]=0.5*ak[0x2],al[0x1]=0.5*ak[0x3],al[0x2]=ag['sourceFrame']['width']*aj[0x2]-0.5*ak[0x2],al[0x3]=ag[wq(0x580)][wq(0x307)]*aj[0x3]-0.5*ak[0x3],ag['legacy']){var am=ai[wq(0x9df)];am[0x0]=ag[wq(0x28e)]['width'],am[0x1]=ag[wq(0x28e)][wq(0x307)],am[0x2]=ag[wq(0x580)]['x'],am[0x3]=ag[wq(0x580)]['y'],ai[wq(0x19f)]=ai[wq(0x53f)];}this[wq(0x5a6)][wq(0x761)]();var an=af[af['length']-0x1];if(ag[wq(0x415)][wq(0x6a2)][wq(0x240)]>0x1&&this[wq(0x311)][wq(0x6a2)][wq(0x729)](),0x1===ah[wq(0x4ae)])ah[0x0][wq(0x6e8)](this,ag['renderTexture'],an[wq(0x415)],a2['yl'][wq(0x7e8)],ag),this[wq(0x823)](ag[wq(0x415)]);else{var ao=ag[wq(0x415)],ap=this[wq(0x492)](ao[wq(0x260)],ao['height'],ag[wq(0x2ce)]);ap['filterFrame']=ao[wq(0x26f)];var aq=0x0;for(aq=0x0;aq<ah['length']-0x1;++aq){ah[aq][wq(0x6e8)](this,ao,ap,a2['yl'][wq(0xa01)],ag);var ar=ao;ao=ap,ap=ar;}ah[aq][wq(0x6e8)](this,ao,an[wq(0x415)],a2['yl'][wq(0x7e8)],ag),this[wq(0x823)](ao),this[wq(0x823)](ap);}var as=!0x1;for(aq=0x0;aq<ah[wq(0x4ae)];aq++)if(ah[aq][wq(0x356)]){var at=ah[aq][wq(0x465)];as||(this[wq(0x823)](ah[aq]['uniforms'][at]),as=!0x0),ah[aq]['uniforms'][at]=null,ah[aq]['_backdropActive']=!0x1;}ag[wq(0x515)](),this[wq(0x1ca)][wq(0x3ef)](ag);}var ad=!0x1;function ae(af,ag){var wr=vA,ah=this['renderer'],ai=ah['renderTexture'][wr(0x787)],aj=this[wr(0x311)][wr(0x415)]['sourceFrame'],ak=ah['projection'][wr(0x70c)]||a7['y3'][wr(0x371)],al=0x1;if(ai)al=ai[wr(0x8ab)][wr(0x2ce)],ag[0x1]=0x1;else{if(!ah[wr(0x175)])return ad||(ad=!0x0,console['warn'](wr(0x48a))),null;al=ah['resolution'],ag[0x1]=-0x1;}var am=Math[wr(0x281)]((af['x']-aj['x']+ak['tx'])*al),an=af['y']-aj['y']+ak['ty'],ao=Math[wr(0x281)]((ag[0x1]<0x0?aj[wr(0x307)]-(an+af[wr(0x307)]):an)*al),ap=Math[wr(0x281)](af['width']*al),aq=Math[wr(0x281)](af[wr(0x307)]*al),ar=ah['gl'],as=this[wr(0x492)](ap,aq,0x1);return ag[0x1]<0x0&&(ag[0x0]=aq/as['height']),as[wr(0x26f)]=aj,as[wr(0x249)](al),ah[wr(0x26b)][wr(0x1ee)](as[wr(0x8ab)],0x0),new Date(),(ar[wr(0x43b)](ar[wr(0x7d9)],0x0,0x0,0x0,am,ao,ap,aq),as);}F[vA(0x73e)][vA(0x32e)][vA(0x1ee)]=a8,F[vA(0x317)]['prototype'][vA(0x3ef)]=ab,F[vA(0x317)][vA(0x32e)][vA(0x754)]=aa,F[vA(0x317)][vA(0x32e)][vA(0x806)]=ac,F[vA(0x317)][vA(0x32e)][vA(0x9cc)]=ae;},0x191:(j,k,q)=>{var ws=a0b;q['d'](k,{'$G':()=>M,'Cb':()=>E,'Eh':()=>I,'Gb':()=>F,'Jp':()=>D,'Ss':()=>B,'Ty':()=>G,'c4':()=>z,'c9':()=>w,'d9':()=>O,'em':()=>A,'gz':()=>H,'hJ':()=>J,'iN':()=>N,'jw':()=>C,'rR':()=>L,'ty':()=>K,'xb':()=>x});var w=ws(0x2e6);function x(){var wt=ws;return''[wt(0x1a4)](wt(0x715),'/')[wt(0x1a4)](wt(0x934),'/')[wt(0x1a4)](w);}var z={'POINTS_MAP':0x17,'KEY_POINTS':0x18,'LEFT_FACE_OVAL':0x8,'LEFT_FACE_OVAL2':0x9,'LEFT_FACE_OVAL3':0xa,'RIGHT_FACE_OVAL':0xb,'RIGHT_FACE_OVAL2':0xc,'RIGHT_FACE_OVAL3':0xd,'MOUTH_UPPER':0x13,'MOUTH_LOWER':0x14,'OUTER_REFERENCE':0x12,'outer_offset_ratio':0x1b,'triangulation':0x19,'auvs':0x1a,'LEFT_IRIS':0x7,'RIGHT_IRIS':0x6,'LEFT_EYE_ORDER':0xe,'RIGHT_EYE_ORDER':0xf,'lipsTriangulation':0x1c,'lipsAuvs':0x1d,'LIPS':0x5},A=0x0,B=0x0,C=0x164,D=[0x0,0x20],E=ws(0x895),F=ws(0x9dd),G='61,6c,6c,6f,77,46,75,6e,63,4c,69,73,74',H=ws(0x25f),I=ws(0x251),J=ws(0x829),K={'bu':ws(0x85e),'mu':ws(0x2ae),'s':'65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,32,64','s3':ws(0x1c9),'f':ws(0x7df),'bg':ws(0x494),'a':ws(0x34d),'av':ws(0x2c5)};function L(P){var wu=ws;for(var Q='',R=P[wu(0x329)](','),S=0x0;S<R[wu(0x4ae)];S++)Q+=String['fromCharCode'](parseInt(R[S],0x10));return Q;}function M(P){var wv=ws;for(var Q='',R=0x0;R<P[wv(0x4ae)];R++)''==Q?Q=P['charCodeAt'](R)[wv(0x5bb)](0x10):Q+=','+P[wv(0x1f0)](R)[wv(0x5bb)](0x10);return Q;}var N=ws(0x8d0),O=ws(0x1c7);},0xbe4:(b,g,j)=>{j['d'](g,{'UI':()=>A,'iV':()=>z,'pF':()=>B});var k=j(0x18a5),m=j(0x4b6),p=j(0x12c9),q=j(0x218a),v=function(C,D,E,F){var ww=a0b,G,H=arguments[ww(0x4ae)],I=H<0x3?D:null===F?F=Object['getOwnPropertyDescriptor'](D,E):F;if('object'==typeof Reflect&&ww(0x3b5)==typeof Reflect[ww(0x1ec)])I=Reflect['decorate'](C,D,E,F);else{for(var J=C['length']-0x1;J>=0x0;J--)(G=C[J])&&(I=(H<0x3?G(I):H>0x3?G(D,E,I):G(D,E))||I);}return H>0x3&&I&&Object[ww(0x85d)](D,E,I),I;},w=function(C,D){var wx=a0b;if(wx(0x804)==typeof Reflect&&wx(0x3b5)==typeof Reflect[wx(0x86b)])return Reflect[wx(0x86b)](C,D);},x=function(C,D,E,F){return new(E||(E=Promise))(function(G,H){var wB=a0b;function I(L){var wy=a0b;try{K(F[wy(0x479)](L));}catch(M){H(M);}}function J(L){var wz=a0b;try{K(F[wz(0x626)](L));}catch(M){H(M);}}function K(L){var wA=a0b,M;L[wA(0x79a)]?G(L[wA(0x4a9)]):(M=L['value'],M instanceof E?M:new E(function(N){N(M);}))[wA(0x341)](I,J);}K((F=F[wB(0x6e8)](C,D||[]))[wB(0x479)]());});},y=function(C,D){var E,F,G,H,I={'label':0x0,'sent':function(){if(0x1&G[0x0])throw G[0x1];return G[0x1];},'trys':[],'ops':[]};return H={'next':J(0x0),'throw':J(0x1),'return':J(0x2)},'function'==typeof Symbol&&(H[Symbol['iterator']]=function(){return this;}),H;function J(K){return function(L){return function(M){var wC=a0b;if(E)throw new TypeError(wC(0x268));for(;I;)try{if(E=0x1,F&&(G=0x2&M[0x0]?F[wC(0x1bc)]:M[0x0]?F[wC(0x626)]||((G=F[wC(0x1bc)])&&G[wC(0x8fb)](F),0x0):F['next'])&&!(G=G[wC(0x8fb)](F,M[0x1]))[wC(0x79a)])return G;switch(F=0x0,G&&(M=[0x2&M[0x0],G[wC(0x4a9)]]),M[0x0]){case 0x0:case 0x1:G=M;break;case 0x4:return I['label']++,{'value':M[0x1],'done':!0x1};case 0x5:I[wC(0x8a7)]++,F=M[0x1],M=[0x0];continue;case 0x7:M=I[wC(0x22e)]['pop'](),I['trys'][wC(0x806)]();continue;default:if(!(G=I[wC(0x1e0)],(G=G['length']>0x0&&G[G['length']-0x1])||0x6!==M[0x0]&&0x2!==M[0x0])){I=0x0;continue;}if(0x3===M[0x0]&&(!G||M[0x1]>G[0x0]&&M[0x1]<G[0x3])){I[wC(0x8a7)]=M[0x1];break;}if(0x6===M[0x0]&&I[wC(0x8a7)]<G[0x1]){I['label']=G[0x1],G=M;break;}if(G&&I[wC(0x8a7)]<G[0x2]){I['label']=G[0x2],I[wC(0x22e)][wC(0x3ef)](M);break;}G[0x2]&&I[wC(0x22e)]['pop'](),I[wC(0x1e0)][wC(0x806)]();continue;}M=D[wC(0x8fb)](C,I);}catch(N){M=[0x6,N],F=0x0;}finally{E=G=0x0;}if(0x5&M[0x0])throw M[0x1];return{'value':M[0x0]?M[0x1]:void 0x0,'done':!0x0};}([K,L]);};}},z={};function A(){z={};}var B=(function(){var wE=a0b;function C(){var wD=a0b;this[wD(0x259)]=!0x1,this['_initing']=!0x1;}return C[wE(0x32e)]['getLoader']=function(){var wF=wE;return this[wF(0x6ac)];},C[wE(0x32e)][wE(0x8db)]=function(){var wG=wE;return this[wG(0x9bf)]();},C[wE(0x32e)][wE(0x601)]=function(D,E){var wH=wE,F=this[wH(0x169)][wH(0x4e0)](D,E)['file'];if(F&&F[wH(0x4ae)])return JSON['parse'](p['T8'](F));},C[wE(0x32e)][wE(0x9bf)]=function(){var wI=wE,D=this,E=new m['Loader'](),F=this[wI(0x84b)]();return E['pre'](F),E['use'](function(G,H){var wJ=wI;if(wJ(0x709)!==G[wJ(0x61b)]){var I=G[wJ(0x8c4)];if(m[wJ(0x635)][wJ(0x952)][G[wJ(0x836)]])H();else{var J=m[wJ(0x2f8)][wJ(0x777)](I[wJ(0x410)],I[wJ(0x260)],I[wJ(0x307)],{'alphaMode':m['ALPHA_MODES']['UNPACK']});m[wJ(0x917)][wJ(0x30f)](J['baseTexture'],G[wJ(0x836)]),m[wJ(0x2f8)][wJ(0x30f)](J,G[wJ(0x836)]),H();}}else D['handleSpriteSheet'](E,G,H);}),E;},C[wE(0x32e)][wE(0x37f)]=function(D){var wK=wE;this[wK(0x169)]&&this['encLoader']['removeFromCache'](D);},C['prototype']['init']=function(){return x(this,void 0x0,Promise,function(){var D=this;return y(this,function(E){var wL=a0b;return this[wL(0x259)]?[0x2,Promise[wL(0x8c7)]()]:this[wL(0x90f)]?[0x2,new Promise(function(F,G){var H,I=function(){var wM=a0b;D[wM(0x259)]?(F(),clearTimeout(H)):H=setTimeout(I,0x32);};H=setTimeout(I,0x32);})]:(this['_initing']=!0x0,[0x2,new Promise(function(F,G){var wN=wL,H=new k['e']({});H[wN(0x3a8)]()[wN(0x341)](function(){var wO=wN;D[wO(0x259)]=!0x0,D[wO(0x90f)]=!0x1,D[wO(0x169)]=H,D['_loader']=D[wO(0x9bf)](),F();})[wN(0x53e)](function(I){});})]);});});},C[wE(0x32e)]['preload']=function(D){return x(this,void 0x0,void 0x0,function(){var E;return y(this,function(F){var wP=a0b;switch(F[wP(0x8a7)]){case 0x0:return F[wP(0x1e0)]['push']([0x0,0x2,,0x3]),[0x4,this[wP(0x169)][wP(0x634)](D)];case 0x1:return F[wP(0x475)](),[0x3,0x3];case 0x2:return E=F['sent'](),[0x2,Promise['reject'](E)];case 0x3:return[0x2];}});});},C['prototype'][wE(0x84b)]=function(){var D=this;return function(E,F){var wQ=a0b;if(m&&m[wQ(0x635)]['TextureCache']&&E&&m['utils'][wQ(0x952)][E[wQ(0x836)]])F();else{var G=E['url'],H=D[wQ(0x169)]['getFileFromCache'](G),I=H['zip'],J=H[wQ(0x410)],K=E[wQ(0x836)];if(K[wQ(0x50a)](wQ(0x875))>-0x1&&K[wQ(0x50a)]('|')>-0x1){var L=K[wQ(0x329)]('|')[0x0],M=D[wQ(0x169)][wQ(0x4e0)](G,L);I=M[wQ(0x8b3)],J=M['file'];}if(/\.(json)$/i['test'](G))return E['data']=JSON[wQ(0x9d4)](p['T8'](J)),E[wQ(0x951)](),void F();/\.(gif|jpe?g|tiff?|png|webp|bmp)$/i[wQ(0x2e3)](G)?(E[wQ(0x8c4)]={'file':J,'width':I[wQ(0x89c)][G]?I[wQ(0x89c)][G][wQ(0x260)]:0x320,'height':I[wQ(0x89c)][G]?I['__config'][G]['height']:0x320},E['complete'](),F()):(E[wQ(0x8c4)]={'file':J},E['complete'](),F());}};},C[wE(0x32e)][wE(0x328)]=function(D,E,F){var wR=wE,G=''[wR(0x1a4)](E[wR(0x836)],wR(0x437));if(E[wR(0x8c4)]&&E[wR(0x8c4)]['frames']&&!D[wR(0x2b5)][G]&&!m['utils'][wR(0x952)][G]){var H={'crossOrigin':E['crossOrigin'],'metadata':E[wR(0x8c4)][wR(0x382)]},I=E[wR(0x8c4)][wR(0x382)][wR(0x3fe)],J=E['url'][wR(0x329)]('/');J[wR(0x806)](),J[wR(0x3ef)](I),I=J[wR(0x9ea)]('/');var K=this[wR(0x927)]();K[wR(0x572)](G,I,H,function(L){var wS=wR,M=m[wS(0x2f8)][wS(0x777)](L['data']['file'],L[wS(0x8c4)][wS(0x260)],L[wS(0x8c4)][wS(0x307)],{'alphaMode':m[wS(0x519)][wS(0x52b)]}),N=new m[(wS(0x41c))](M,E['data'],E['url']);N[wS(0x9d4)](function(){var wT=wS;E['spritesheet']=N,E[wT(0x2b4)]=N[wT(0x2b4)],z[E[wT(0x836)]]=E,F();});}),K['load'](function(L,M){});}else F();},C=v([q['e'],w(wE(0x506),[])],C);}());},0x18a5:(j,k,q)=>{q['d'](k,{'e':()=>O});var w=q(0x12c9),x=q(0x1407),z=q(0x218a),A=q(0xde1),B=q(0x1ade);const C=(function(){var wV=a0b;function P(){var wU=a0b;this[wU(0x1df)]=wU(0x4b0),this[wU(0x8d9)]='webar-object-store',wU(0x30a)!=typeof self&&self?this[wU(0x71d)]=self:wU(0x30a)!=typeof window&&window&&(this['window']=window);}return P[wV(0x32e)]['checkSupport']=function(){var wW=wV,Q=this[wW(0x71d)];return!(void 0x0===Q||!Q||!Q['indexedDB']);},P['prototype'][wV(0x3a8)]=function(){var Q=this;return new Promise(function(R,S){var wX=a0b;if(Q['checkSupport']()){if(Q['db'])return void R(Q['db']);var T=Q[wX(0x71d)][wX(0x714)][wX(0x625)](Q[wX(0x1df)],0x1);T['onsuccess']=function(U){var wY=wX;Q['db']=U[wY(0x935)][wY(0x845)],R(Q);},T[wX(0x190)]=function(U){var wZ=wX,V=U[wZ(0x935)][wZ(0x845)];V[wZ(0x334)][wZ(0x1b2)](Q['objectStoreName'])||V[wZ(0x708)](Q[wZ(0x8d9)]);},T[wX(0x230)]=function(U){S(U);};}else S();});},P[wV(0x32e)][wV(0x95f)]=function(Q){var R=this;return new Promise(function(S,T){var x0=a0b;if(R['db']){var U=R['db']['transaction'](R[x0(0x8d9)])['objectStore'](R[x0(0x8d9)])['get'](Q);U['onsuccess']=function(){var x1=x0;return S(U[x1(0x845)]);},U[x0(0x230)]=function(){return T();};}else T();});},P['prototype'][wV(0x22a)]=function(Q,R){var S=this;return new Promise(function(T,U){var x2=a0b;if(S['db']){var V=S['db'][x2(0x78d)](S[x2(0x8d9)],x2(0x36e))[x2(0x241)](S[x2(0x8d9)])[x2(0x737)](R,Q);V[x2(0x76e)]=function(){return T(R);},V[x2(0x230)]=function(){return U();};}else U();});},P['prototype']['removeItem']=function(Q){var R=this;return new Promise(function(S,T){var x3=a0b;if(R['db']){var U=R['db'][x3(0x78d)](R['objectStoreName'],x3(0x36e))['objectStore'](R[x3(0x8d9)])['delete'](Q);U[x3(0x76e)]=function(){return S(null);},U[x3(0x230)]=function(){return T();};}else T();});},P[wV(0x32e)][wV(0x8c8)]=function(){var Q=this;return new Promise(function(R,S){var x4=a0b;if(!Q['db'])return S();var T=Q['db']['transaction'](Q['objectStoreName'])[x4(0x241)](Q[x4(0x8d9)])[x4(0x860)]();T[x4(0x76e)]=function(){var x5=x4;return R(T[x5(0x845)]);},T[x4(0x230)]=function(){return S();};});},P[wV(0x32e)][wV(0x515)]=function(){var Q=this;return new Promise(function(R,S){var x6=a0b;if(!Q['db'])return S();var T=Q['db'][x6(0x78d)](Q[x6(0x8d9)],x6(0x36e))['objectStore'](Q[x6(0x8d9)])['clear']();T[x6(0x76e)]=function(){return R(null);},T[x6(0x230)]=function(){return S();};});},P;}());var D=q(0x191),E=q(0x17dd),F=q(0x2700),G=function(P,Q,R,S){var x7=a0b,T,U=arguments[x7(0x4ae)],V=U<0x3?Q:null===S?S=Object[x7(0x639)](Q,R):S;if(x7(0x804)==typeof Reflect&&'function'==typeof Reflect['decorate'])V=Reflect[x7(0x1ec)](P,Q,R,S);else{for(var W=P[x7(0x4ae)]-0x1;W>=0x0;W--)(T=P[W])&&(V=(U<0x3?T(V):U>0x3?T(Q,R,V):T(Q,R))||V);}return U>0x3&&V&&Object[x7(0x85d)](Q,R,V),V;},H=function(P,Q){var x8=a0b;if(x8(0x804)==typeof Reflect&&'function'==typeof Reflect[x8(0x86b)])return Reflect[x8(0x86b)](P,Q);},I=function(P,Q,R,S){return new(R||(R=Promise))(function(T,U){var xb=a0b;function V(Y){try{X(S['next'](Y));}catch(Z){U(Z);}}function W(Y){var x9=a0b;try{X(S[x9(0x626)](Y));}catch(Z){U(Z);}}function X(Y){var xa=a0b,Z;Y[xa(0x79a)]?T(Y[xa(0x4a9)]):(Z=Y[xa(0x4a9)],Z instanceof R?Z:new R(function(a0){a0(Z);}))[xa(0x341)](V,W);}X((S=S[xb(0x6e8)](P,Q||[]))['next']());});},J=function(P,Q){var xc=a0b,R,S,T,U,V={'label':0x0,'sent':function(){if(0x1&T[0x0])throw T[0x1];return T[0x1];},'trys':[],'ops':[]};return U={'next':W(0x0),'throw':W(0x1),'return':W(0x2)},xc(0x3b5)==typeof Symbol&&(U[Symbol[xc(0x28f)]]=function(){return this;}),U;function W(X){return function(Y){return function(Z){var xd=a0b;if(R)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;V;)try{if(R=0x1,S&&(T=0x2&Z[0x0]?S[xd(0x1bc)]:Z[0x0]?S['throw']||((T=S[xd(0x1bc)])&&T[xd(0x8fb)](S),0x0):S[xd(0x479)])&&!(T=T['call'](S,Z[0x1]))[xd(0x79a)])return T;switch(S=0x0,T&&(Z=[0x2&Z[0x0],T['value']]),Z[0x0]){case 0x0:case 0x1:T=Z;break;case 0x4:return V['label']++,{'value':Z[0x1],'done':!0x1};case 0x5:V[xd(0x8a7)]++,S=Z[0x1],Z=[0x0];continue;case 0x7:Z=V[xd(0x22e)][xd(0x806)](),V[xd(0x1e0)]['pop']();continue;default:if(!(T=V[xd(0x1e0)],(T=T[xd(0x4ae)]>0x0&&T[T['length']-0x1])||0x6!==Z[0x0]&&0x2!==Z[0x0])){V=0x0;continue;}if(0x3===Z[0x0]&&(!T||Z[0x1]>T[0x0]&&Z[0x1]<T[0x3])){V[xd(0x8a7)]=Z[0x1];break;}if(0x6===Z[0x0]&&V[xd(0x8a7)]<T[0x1]){V['label']=T[0x1],T=Z;break;}if(T&&V[xd(0x8a7)]<T[0x2]){V[xd(0x8a7)]=T[0x2],V[xd(0x22e)][xd(0x3ef)](Z);break;}T[0x2]&&V[xd(0x22e)][xd(0x806)](),V[xd(0x1e0)][xd(0x806)]();continue;}Z=Q['call'](P,V);}catch(a0){Z=[0x6,a0],S=0x0;}finally{R=T=0x0;}if(0x5&Z[0x0])throw Z[0x1];return{'value':Z[0x0]?Z[0x1]:void 0x0,'done':!0x0};}([X,Y]);};}},K=function(P){var xe=a0b,Q='function'==typeof Symbol&&Symbol['iterator'],R=Q&&P[Q],S=0x0;if(R)return R[xe(0x8fb)](P);if(P&&xe(0x480)==typeof P[xe(0x4ae)])return{'next':function(){var xf=xe;return P&&S>=P[xf(0x4ae)]&&(P=void 0x0),{'value':P&&P[S++],'done':!P};}};throw new TypeError(Q?xe(0x2cd):xe(0x37d));},L=function(P,Q){var xg=a0b,R=xg(0x3b5)==typeof Symbol&&P[Symbol[xg(0x28f)]];if(!R)return P;var S,T,U=R[xg(0x8fb)](P),V=[];try{for(;(void 0x0===Q||Q-->0x0)&&!(S=U['next']())['done'];)V['push'](S[xg(0x4a9)]);}catch(W){T={'error':W};}finally{try{S&&!S[xg(0x79a)]&&(R=U[xg(0x1bc)])&&R['call'](U);}finally{if(T)throw T[xg(0x8e5)];}}return V;},M=function(P,Q,R){var xh=a0b;if(R||0x2===arguments['length']){for(var S,T=0x0,U=Q[xh(0x4ae)];T<U;T++)!S&&T in Q||(S||(S=Array[xh(0x32e)][xh(0x2a0)][xh(0x8fb)](Q,0x0,T)),S[T]=Q[T]);}return P[xh(0x1a4)](S||Array['prototype'][xh(0x2a0)]['call'](Q));},N=(function(){var xj=a0b;function P(Q){var xi=a0b;this['size']=Q,this[xi(0x8c4)]=new Map();}return P[xj(0x32e)]['put']=function(Q,R){var xk=xj;if(E['D4'][xk(0x27b)]('put',Q),Q[xk(0x50a)](D['c9'])>-0x1&&(this['common_cache']=R,this[xk(0x6dd)]=Q),this[xk(0x8c4)]['has'](Q))return this[xk(0x8c4)][xk(0x2fb)](Q),void this[xk(0x8c4)][xk(0x3b4)](Q,R);if(this['data'][xk(0x698)]>=this[xk(0x698)]){var S=this['data'][xk(0x8c8)]()[xk(0x479)]()[xk(0x4a9)];this['data'][xk(0x2fb)](S);}this[xk(0x8c4)]['set'](Q,R);},P[xj(0x32e)]['get']=function(Q){var xl=xj;if(Q['indexOf'](D['c9'])>-0x1)return this[xl(0x35c)];if(!this['data'][xl(0x5c2)](Q))return!0x1;var R=this[xl(0x8c4)][xl(0x40e)](Q);return this['data'][xl(0x2fb)](Q),this[xl(0x8c4)][xl(0x3b4)](Q,R),R;},Object[xj(0x85d)](P[xj(0x32e)],xj(0x8c8),{'get':function(){var xm=xj;return Array[xm(0x615)](this[xm(0x8c4)][xm(0x8c8)]())['concat']([this[xm(0x6dd)]]);},'enumerable':!0x1,'configurable':!0x0}),P['prototype'][xj(0x2fb)]=function(Q){var xn=xj;this[xn(0x8c4)][xn(0x2fb)](Q);},P['prototype'][xj(0x515)]=function(){var xo=xj;this[xo(0x8c4)][xo(0x515)]();},P;}()),O=(function(){var xq=a0b;function P(Q){var xp=a0b;this[xp(0x259)]=!0x1,this[xp(0x90f)]=!0x1,this[xp(0x327)]=new N(0x7),this[xp(0x64b)]={},Q=Q||{},this['config']=Q,this[xp(0x209)]=new C();}return P[xq(0x32e)][xq(0x3a8)]=function(){return I(this,void 0x0,Promise,function(){var Q=this;return J(this,function(R){var xr=a0b;return this['_inited']?[0x2,Promise[xr(0x8c7)]()]:this[xr(0x90f)]?[0x2,new Promise(function(S,T){var U,V=function(){var xs=a0b;Q[xs(0x259)]?(S(),clearTimeout(U)):U=setTimeout(V,0x32);};U=setTimeout(V,0x32);})]:(this['_initing']=!0x0,this['_c']=new x['Y'](),[0x2,this['_c'][xr(0x3a8)]()[xr(0x341)](function(){var xt=xr;Q[xt(0x259)]=!0x0,Q[xt(0x90f)]=!0x1,setTimeout(function(){var xu=xt;Q[xu(0x3bc)]();},0x270f);})]);});});},P['prototype']['getSingletonWorker']=function(){var xv=xq,Q=this;return this[xv(0x3ac)]||(this['worker']=new Worker(),this[xv(0x3ac)][xv(0x74e)]=function(R){var xw=xv,S=R[xw(0x8c4)],T=S['p1'],U=S['p2'],V=S[xw(0x4ae)],W=(S['i'],S['u']),X=S[xw(0x8e5)];if(X)Q[xw(0x6dc)]=new Error(X[xw(0x8e7)]);else{var Y=new Uint8Array(V);Y['set'](T),Y[xw(0x3b4)](U,T['length']),Q[xw(0x617)](W,Y);var Z=Q['_c'],a0=Z[xw(0x4ea)](T,'');Z[xw(0x171)]('');var a1=new Uint8Array(V);a1['set'](a0),a1['set'](U,a0[xw(0x4ae)]);var a2=w['GZ'](a1);E['D4'][xw(0x27b)](xw(0x72e),W),Q['_setConfig'](a2)['then'](function(){var xx=xw;Q[xx(0x327)][xx(0x737)](W,a2),delete Q[xx(0x64b)][W];});}}),this[xv(0x3ac)];},P[xq(0x32e)][xq(0x634)]=function(Q,R,S){return void 0x0===R&&(R=!0x0),void 0x0===S&&(S=0x1),I(this,void 0x0,Promise,function(){var T,U,V=this;return J(this,function(W){var xy=a0b;if(this[xy(0x64b)][Q])return[0x2,this[xy(0x5f8)](Q)];for(T in(this[xy(0x64b)][Q]=!0x0,this['_loadingMap']))T!==Q&&(this[xy(0x64b)][T]=!0x1);return this[xy(0x327)][xy(0x40e)](Q)?(delete this[xy(0x64b)][Q],[0x2,Promise['resolve']()]):(U=A['Z'][xy(0x247)](Q)||+new Date(),[0x2,new Promise(function(X,Y){return I(V,void 0x0,void 0x0,function(){var Z,a0,a1,a2=this;return J(this,function(a3){var xz=a0b;switch(a3[xz(0x8a7)]){case 0x0:return[0x4,(0x0,F['pe'])(U,Q)[xz(0x53e)](function(a4){var xA=xz;B['Nd'][xA(0x3a6)](xA(0x8e5),a4);})];case 0x1:return a3[xz(0x475)](),Z=wx[xz(0x162)](),a0={},a1=''[xz(0x1a4)](wx[xz(0x1ad)][xz(0x518)],xz(0x2a5))[xz(0x1a4)](U,xz(0x816)),console[xz(0x5a1)](xz(0x60c),a1),Z[xz(0x990)]({'filePath':a1,'entries':xz(0x28a),'success':function(a4){var xB=xz,a5=a4[xB(0x19a)];for(var a6 in a5)a0[a6]=new Uint8Array(a5[a6][xB(0x8c4)]);a2[xB(0x327)][xB(0x737)](Q,a0),delete a2[xB(0x64b)][Q],a2['_setConfig'](a0)[xB(0x341)](function(){var xC=xB;R||Z[xC(0x8dc)]({'filePath':''[xC(0x1a4)](wx[xC(0x1ad)]['USER_DATA_PATH'],'/ar/')[xC(0x1a4)](U,xC(0x692)),'success':function(){},'fail':function(a7){var xD=xC;console[xD(0x5a1)](xD(0x596),a7);}}),X();});},'fail':function(a4){var xE=xz;console['log'](a4[xE(0x953)]);}}),[0x2];}});});})]);});});},P[xq(0x32e)]['getFileFromCache']=function(Q,R){var xF=xq;if(R&&R[xF(0x4ae)]){var S=proxyServerManager[xF(0x831)];S&&S['staticProxy']&&(R=proxyServerManager['getStaticPath'](R));}var T=this[xF(0x826)](Q,R);return{'zip':T['c'],'file':T['f']};},P[xq(0x32e)][xq(0x272)]=function(Q){var xG=xq;return this['_cache'][xG(0x40e)](Q);},P[xq(0x32e)][xq(0x826)]=function(Q,R){var xH=xq,S,T,U,V,W=this[xH(0x327)],X=Q;if(R){var Y=W['get'](R);return Y&&(V=Y[X]),{'c':Y,'f':V};}var Z=W[xH(0x8c8)][xH(0x4ad)]();try{for(var a0=K(Z),a1=a0[xH(0x479)]();!a1[xH(0x79a)];a1=a0[xH(0x479)]()){var a2=a1[xH(0x4a9)];if(V=(U=W[xH(0x40e)](a2))[X])break;}}catch(a3){S={'error':a3};}finally{try{a1&&!a1[xH(0x79a)]&&(T=a0['return'])&&T['call'](a0);}finally{if(S)throw S['error'];}}return{'c':U,'f':V};},P[xq(0x32e)][xq(0x6a5)]=function(Q){return I(this,void 0x0,Promise,function(){return J(this,function(R){return[0x2,new Promise(function(S){var xI=a0b;if(Q['__config'])S();else{var T=Q[xI(0x942)];if(T){var U=JSON['parse'](w['T8'](T));Q[xI(0x89c)]=U,S();}else S();}})];});});},P[xq(0x32e)]['waitUntilPreload']=function(Q){var R=this;return new Promise(function(S,T){var U=setInterval(function(){var xJ=a0b;R[xJ(0x327)][xJ(0x40e)](Q)&&(clearInterval(U),S());},0x32);});},P[xq(0x32e)][xq(0x8f1)]=function(Q){var xK=xq;for(var R=[],S=0x1;S<arguments[xK(0x4ae)];S++)R[S-0x1]=arguments[S];return I(this,void 0x0,Promise,function(){var T=this;return J(this,function(U){return[0x2,new Promise(function(V,W){var xL=a0b,X=T['_cache'][xL(0x8c8)],Y=Q[xL(0x329)]('/')[xL(0x806)]();X[xL(0x280)](function(Z){var xM=xL,a0=T[xM(0x327)][xM(0x40e)](Z),a1=a0[Y];if(a0[Y]){var a2=w['T8'](a1),a3=new Function(''+a2),a4=a3[xM(0x8fb)][xM(0x6e8)](a3,M([null],L(R),!0x1));return V(a4);}});})];});});},P[xq(0x32e)]['hijackFetch']=function(Q,R,S){var T,U=this;return void 0x0===S&&(S=!0x1),R&&'string'==typeof R&&(T=R),new Promise(function(V){var xN=a0b,W,X=U['_cache'][xN(0x8c8)];if(W=S?Q:Q[xN(0x329)]('/')[xN(0x806)](),T){var Y=U[xN(0x327)][xN(0x40e)](T)[W];return Y?V(Y):V();}X[xN(0x280)](function(Z){var xO=xN,a0=U[xO(0x327)][xO(0x40e)](Z)[W];if(a0)return V(a0);});});},P[xq(0x32e)][xq(0x37f)]=function(Q){var xP=xq;console[xP(0x5a1)](xP(0x37f),Q),this['_cache'][xP(0x2fb)](Q);},P['prototype']['clearCache']=function(){var xQ=xq;this[xQ(0x327)]['clear'](),this[xQ(0x3ac)]&&(this[xQ(0x3ac)][xQ(0x263)](),this[xQ(0x3ac)]=null);},P[xq(0x32e)][xq(0x301)]=function(Q){var xR=xq,R,S;void 0x0===Q&&(Q=[]);try{for(var T=K(this[xR(0x327)][xR(0x8c8)]),U=T['next']();!U['done'];U=T['next']()){var V=U[xR(0x4a9)];-0x1===Q['indexOf'](V)&&this['_cache'][xR(0x2fb)](V);}}catch(W){R={'error':W};}finally{try{U&&!U['done']&&(S=T[xR(0x1bc)])&&S[xR(0x8fb)](T);}finally{if(R)throw R['error'];}}},P[xq(0x32e)][xq(0x1f9)]=function(Q,R){return I(this,void 0x0,void 0x0,function(){var S,T,U,V,W,X;return J(this,function(Y){var xS=a0b;switch(Y[xS(0x8a7)]){case 0x0:if(!(R>0x1&&Blob[xS(0x32e)]['arrayBuffer']))return[0x3,0x3];for(T=0x100000,U=[],V=function(Z){var xT=xS,a0=Z*T,a1=a0+T-0x1,a2='bytes='[xT(0x1a4)](a0,'-')[xT(0x1a4)](a1),a3=new Promise(function(a4,a5){var xU=xT;fetch(''[xU(0x1a4)](Q,'?id=00')[xU(0x1a4)](Z),{'method':xU(0x58d),'mode':'cors','headers':{'range':a2}})[xU(0x341)](function(a6){return a6['arrayBuffer']();})[xU(0x341)](function(a6){a4(a6);});});U['push'](a3);},W=0x0;W<R;W++)V(W);return[0x4,Promise[xS(0x28a)](U)];case 0x1:return X=Y[xS(0x475)](),[0x4,new Blob(X)[xS(0x745)]()];case 0x2:return S=Y[xS(0x475)](),[0x3,0x6];case 0x3:return[0x4,fetch(Q,{'method':'GET','mode':xS(0x7db)})['catch'](function(Z){var xV=xS;console['log'](xV(0x99d),Z);})];case 0x4:return[0x4,Y[xS(0x475)]()['arrayBuffer']()[xS(0x53e)](function(Z){var xW=xS;console[xW(0x5a1)](xW(0x7c2),Z);})];case 0x5:S=Y[xS(0x475)](),Y[xS(0x8a7)]=0x6;case 0x6:return[0x2,S];}});});},P[xq(0x32e)][xq(0x781)]=function(Q){return!!{'effect.bin':!0x0}[Q];},P[xq(0x32e)][xq(0x617)]=function(Q,R){var xX=xq,S=this;try{this[xX(0x209)][xX(0x3c0)]()&&this[xX(0x209)][xX(0x3a8)]()[xX(0x341)](function(){var xY=xX,T=Q['split']('/')[xY(0x806)]();if(!S[xY(0x781)](T)){var U=''['concat']('1.0.23-12','/')[xY(0x1a4)](T);S[xY(0x209)][xY(0x22a)](U,R);}});}catch(T){}},P[xq(0x32e)]['fetchFromFileCache']=function(Q){var R=this;return new Promise(function(S,T){var xZ=a0b;R[xZ(0x209)][xZ(0x3c0)]()?R[xZ(0x209)][xZ(0x3a8)]()[xZ(0x341)](function(){var y0=xZ,U=Q[y0(0x329)]('/')['pop'](),V=''[y0(0x1a4)](y0(0x934),'/')[y0(0x1a4)](U);R[y0(0x781)](U)?S(null):R['arCacheStorage'][y0(0x95f)](V)['then'](function(W){S(W||null);});})[xZ(0x53e)](function(){S(null);}):S(null);});},P[xq(0x32e)][xq(0x3bc)]=function(){var y1=xq,Q=this;this[y1(0x209)][y1(0x3c0)]()&&this[y1(0x209)][y1(0x3a8)]()['then'](function(){var y2=y1;Q['arCacheStorage'][y2(0x8c8)]()[y2(0x341)](function(R){var y3=y2;if(R&&R['length'])for(var S=''[y3(0x1a4)](y3(0x934)),T=0x0;T<R['length'];T++){var U=R[T];U&&U[y3(0x50a)](S)<0x0&&Q['arCacheStorage']['removeItem'](U);}});})[y1(0x53e)](function(){});},P=G([z['e'],H(xq(0x506),[Object])],P);}());},0x1f15:(b,d,f)=>{f['d'](d,{'Z':()=>j});var g=f(0x1d36),h=f(0x1933);const j=new(function(){var y5=a0b;function k(m){var y4=a0b;void 0x0===m&&(m='zh'),this[y4(0x1b6)]=m;}return Object[y5(0x85d)](k[y5(0x32e)],y5(0x3c4),{'get':function(){return this['_lang'];},'set':function(m){this['_lang']=m;},'enumerable':!0x1,'configurable':!0x0}),k[y5(0x32e)]['t']=function(m){return'zh'===this['_lang']?g['Z'][m]:h['Z'][m];},k;}())();},0x43c:(b,d,f)=>{f['d'](d,{'M':()=>j,'o':()=>k});var g=function(m,p,q,v){return new(q||(q=Promise))(function(w,x){var y8=a0b;function y(B){var y6=a0b;try{A(v[y6(0x479)](B));}catch(C){x(C);}}function z(B){try{A(v['throw'](B));}catch(C){x(C);}}function A(B){var y7=a0b,C;B[y7(0x79a)]?w(B[y7(0x4a9)]):(C=B[y7(0x4a9)],C instanceof q?C:new q(function(D){D(C);}))[y7(0x341)](y,z);}A((v=v['apply'](m,p||[]))[y8(0x479)]());});},h=function(m,p){var y9=a0b,q,v,w,x,y={'label':0x0,'sent':function(){if(0x1&w[0x0])throw w[0x1];return w[0x1];},'trys':[],'ops':[]};return x={'next':z(0x0),'throw':z(0x1),'return':z(0x2)},y9(0x3b5)==typeof Symbol&&(x[Symbol[y9(0x28f)]]=function(){return this;}),x;function z(A){return function(B){return function(C){var ya=a0b;if(q)throw new TypeError(ya(0x268));for(;y;)try{if(q=0x1,v&&(w=0x2&C[0x0]?v[ya(0x1bc)]:C[0x0]?v['throw']||((w=v[ya(0x1bc)])&&w[ya(0x8fb)](v),0x0):v[ya(0x479)])&&!(w=w[ya(0x8fb)](v,C[0x1]))[ya(0x79a)])return w;switch(v=0x0,w&&(C=[0x2&C[0x0],w[ya(0x4a9)]]),C[0x0]){case 0x0:case 0x1:w=C;break;case 0x4:return y[ya(0x8a7)]++,{'value':C[0x1],'done':!0x1};case 0x5:y[ya(0x8a7)]++,v=C[0x1],C=[0x0];continue;case 0x7:C=y['ops'][ya(0x806)](),y['trys'][ya(0x806)]();continue;default:if(!(w=y['trys'],(w=w[ya(0x4ae)]>0x0&&w[w[ya(0x4ae)]-0x1])||0x6!==C[0x0]&&0x2!==C[0x0])){y=0x0;continue;}if(0x3===C[0x0]&&(!w||C[0x1]>w[0x0]&&C[0x1]<w[0x3])){y['label']=C[0x1];break;}if(0x6===C[0x0]&&y[ya(0x8a7)]<w[0x1]){y[ya(0x8a7)]=w[0x1],w=C;break;}if(w&&y[ya(0x8a7)]<w[0x2]){y[ya(0x8a7)]=w[0x2],y[ya(0x22e)][ya(0x3ef)](C);break;}w[0x2]&&y[ya(0x22e)][ya(0x806)](),y[ya(0x1e0)][ya(0x806)]();continue;}C=p['call'](m,y);}catch(D){C=[0x6,D],v=0x0;}finally{q=w=0x0;}if(0x5&C[0x0])throw C[0x1];return{'value':C[0x0]?C[0x1]:void 0x0,'done':!0x0};}([A,B]);};}};function j(m){return function(p,q,v){var yb=a0b,w=v[yb(0x4a9)];return yb(0x402)===w[yb(0x1fc)][yb(0x836)]?v[yb(0x4a9)]=function(){var yc=yb;for(var x=[],y=0x0;y<arguments[yc(0x4ae)];y++)x[y]=arguments[y];return g(this,void 0x0,void 0x0,function(){return h(this,function(z){var yd=a0b;switch(z[yd(0x8a7)]){case 0x0:return[0x4,w['apply'](this,x)[yd(0x53e)](function(A){var ye=yd;console[ye(0x5a1)](''[ye(0x1a4)](m,'.')[ye(0x1a4)](q,ye(0x2e0)),A);})];case 0x1:return[0x2,z[yd(0x475)]()];}});});}:v[yb(0x4a9)]=function(){var yf=yb;for(var x=[],y=0x0;y<arguments[yf(0x4ae)];y++)x[y]=arguments[y];try{var z=w['apply'](this,x);return z;}catch(A){console[yf(0x5a1)](''[yf(0x1a4)](m,'.')['concat'](q,yf(0x2e0)),A);}},v;};}function k(m){return function(p,q,v){var yg=a0b,w=v[yg(0x4a9)];return v['value']=function(){var yh=yg;for(var x=[],y=0x0;y<arguments[yh(0x4ae)];y++)x[y]=arguments[y];return g(this,void 0x0,void 0x0,function(){return h(this,function(z){var yi=a0b;switch(z[yi(0x8a7)]){case 0x0:return[0x4,w['apply'](this,x)[yi(0x53e)](function(A){var yj=yi;console[yj(0x5a1)](''[yj(0x1a4)](m,'.')[yj(0x1a4)](q,yj(0x2e0)),A);})];case 0x1:return[0x2,z[yi(0x475)]()];}});});},v;};}},0x1407:(b,g,j)=>{var yr=a0b;j['d'](g,{'Y':()=>D});var k=j(0x1f15),m=j(0x1ade),q=j(0x218a),v=j(0x191),w=j(0x12c9),x=j(0x1adf),y=function(E,F,G,H){var yk=a0b,I,J=arguments[yk(0x4ae)],K=J<0x3?F:null===H?H=Object[yk(0x639)](F,G):H;if(yk(0x804)==typeof Reflect&&yk(0x3b5)==typeof Reflect['decorate'])K=Reflect[yk(0x1ec)](E,F,G,H);else{for(var L=E[yk(0x4ae)]-0x1;L>=0x0;L--)(I=E[L])&&(K=(J<0x3?I(K):J>0x3?I(F,G,K):I(F,G))||K);}return J>0x3&&K&&Object[yk(0x85d)](F,G,K),K;},z=function(E,F){var yl=a0b;if(yl(0x804)==typeof Reflect&&yl(0x3b5)==typeof Reflect[yl(0x86b)])return Reflect[yl(0x86b)](E,F);},A=function(E,F,G,H){return new(G||(G=Promise))(function(I,J){var yo=a0b;function K(N){var ym=a0b;try{M(H[ym(0x479)](N));}catch(O){J(O);}}function L(N){try{M(H['throw'](N));}catch(O){J(O);}}function M(N){var yn=a0b,O;N[yn(0x79a)]?I(N[yn(0x4a9)]):(O=N[yn(0x4a9)],O instanceof G?O:new G(function(P){P(O);}))['then'](K,L);}M((H=H[yo(0x6e8)](E,F||[]))[yo(0x479)]());});},B=function(E,F){var yp=a0b,G,H,I,J,K={'label':0x0,'sent':function(){if(0x1&I[0x0])throw I[0x1];return I[0x1];},'trys':[],'ops':[]};return J={'next':L(0x0),'throw':L(0x1),'return':L(0x2)},yp(0x3b5)==typeof Symbol&&(J[Symbol[yp(0x28f)]]=function(){return this;}),J;function L(M){return function(N){return function(O){var yq=a0b;if(G)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;K;)try{if(G=0x1,H&&(I=0x2&O[0x0]?H[yq(0x1bc)]:O[0x0]?H[yq(0x626)]||((I=H['return'])&&I[yq(0x8fb)](H),0x0):H[yq(0x479)])&&!(I=I[yq(0x8fb)](H,O[0x1]))['done'])return I;switch(H=0x0,I&&(O=[0x2&O[0x0],I['value']]),O[0x0]){case 0x0:case 0x1:I=O;break;case 0x4:return K['label']++,{'value':O[0x1],'done':!0x1};case 0x5:K[yq(0x8a7)]++,H=O[0x1],O=[0x0];continue;case 0x7:O=K[yq(0x22e)]['pop'](),K[yq(0x1e0)][yq(0x806)]();continue;default:if(!(I=K[yq(0x1e0)],(I=I[yq(0x4ae)]>0x0&&I[I[yq(0x4ae)]-0x1])||0x6!==O[0x0]&&0x2!==O[0x0])){K=0x0;continue;}if(0x3===O[0x0]&&(!I||O[0x1]>I[0x0]&&O[0x1]<I[0x3])){K['label']=O[0x1];break;}if(0x6===O[0x0]&&K['label']<I[0x1]){K[yq(0x8a7)]=I[0x1],I=O;break;}if(I&&K[yq(0x8a7)]<I[0x2]){K[yq(0x8a7)]=I[0x2],K[yq(0x22e)][yq(0x3ef)](O);break;}I[0x2]&&K[yq(0x22e)][yq(0x806)](),K[yq(0x1e0)]['pop']();continue;}O=F[yq(0x8fb)](E,K);}catch(P){O=[0x6,P],H=0x0;}finally{G=I=0x0;}if(0x5&O[0x0])throw O[0x1];return{'value':O[0x0]?O[0x1]:void 0x0,'done':!0x0};}([M,N]);};}};yr(0x30a)==typeof WXWebAssembly&&m['Nd'][yr(0x3a6)](yr(0x8e5),{'code':x['U'][yr(0x7aa)],'message':k['Z']['t'](yr(0x211))});var C=WXWebAssembly,D=(function(){var yt=yr;function E(){var ys=a0b;this[ys(0x259)]=!0x1,this[ys(0x90f)]=!0x1;}return E[yt(0x32e)]['init']=function(){return A(this,void 0x0,Promise,function(){var F=this;return B(this,function(G){var yu=a0b;return this[yu(0x259)]?[0x2,Promise[yu(0x8c7)]()]:this['_initing']?[0x2,new Promise(function(H,I){var J,K=function(){F['_inited']?(H(),clearTimeout(J)):J=setTimeout(K,0x64);};J=setTimeout(K,0x64);})]:(this[yu(0x90f)]=!0x0,[0x2,new Promise(function(H,I){var yv=yu;C['instantiate']('/'[yv(0x1a4)](v['d9'],yv(0x5ba)),{})['then'](function(J){var yw=yv;F[yw(0x4fc)]=J[yw(0x1cd)]['exports'],F[yw(0x68a)](),F['_inited']=!0x0,F[yw(0x90f)]=!0x1,H();})[yv(0x53e)](function(J){var yx=yv;console[yx(0x5a1)]('wasm\x20instantiate\x20error',J);});})]);});});},E[yt(0x32e)]['_initWasmWrapper']=function(){var yy=yt,F,G=this['_wasm'],H=G[yy(0x664)],I=G[yy(0x555)],J=G[yy(0x8da)];function K(){var yz=yy;return null!=F&&F[yz(0x331)]===H[yz(0x331)]||(F=new Uint8Array(H[yz(0x331)])),F;}var L,M,N=0x0;function O(R){var yA=yy;for(var S=R[yA(0x4ae)],T=I(S),U=K(),V=0x0;V<S;V++){var W=R[yA(0x1f0)](V);if(W>0x7f)break;U[T+V]=W;}if(V!==S){0x0!==V&&(R=R[yA(0x2a0)](V)),T=J(T,S,S=V+0x3*R['length']);var X=K()[yA(0x7c0)](T+V,T+S);V+=L(R,X)['written'];}return N=V,T;}function P(){var yB=yy;return null!=M&&M['buffer']===H[yB(0x331)]||(M=new Int32Array(H[yB(0x331)])),M;}function Q(R,S){var yC=yy;return w['T8'](K()[yC(0x7c0)](R,R+S));}L=function(R,S){var yD=yy,T,U,V=new Array();T=R[yD(0x4ae)];for(var W=0x0;W<T;W++)(U=R['charCodeAt'](W))>=0x10000&&U<=0x10ffff?(V[yD(0x3ef)](U>>0x12&0x7|0xf0),V[yD(0x3ef)](U>>0xc&0x3f|0x80),V[yD(0x3ef)](U>>0x6&0x3f|0x80),V['push'](0x3f&U|0x80)):U>=0x800&&U<=0xffff?(V[yD(0x3ef)](U>>0xc&0xf|0xe0),V[yD(0x3ef)](U>>0x6&0x3f|0x80),V[yD(0x3ef)](0x3f&U|0x80)):U>=0x80&&U<=0x7ff?(V['push'](U>>0x6&0x1f|0xc0),V[yD(0x3ef)](0x3f&U|0x80)):V[yD(0x3ef)](0xff&U);var X=new Int8Array(V[yD(0x4ae)]);for(var W in V)X[W]=V[W];return S[yD(0x3b4)](X),{'read':R['length'],'written':X[yD(0x4ae)]};},this[yy(0x4ea)]=function(R,S){var yE=yy,T,U,V=G[(0x0,v['rR'])(v['Cb'])],W=G[yE(0x8ec)],X=(U=I(0x1*(T=R)['length']),K()[yE(0x3b4)](T,U/0x1),N=T[yE(0x4ae)],U),Y=N;try{V(0x8,X,Y,O(S),N);var Z=P(),a0=function(a1,a2){var yF=yE;return K()[yF(0x7c0)](a1/0x1,a1/0x1+a2);}(Z[0x2],Z[0x3])[yE(0x2a0)]();return W(Z[0x2],0x1*Z[0x3]),a0;}finally{R[yE(0x3b4)](K()[yE(0x7c0)](X/0x1,X/0x1+Y)),W(X,0x1*Y);}},this[yy(0x171)]=function(R){var yG=yy;(0x0,G[yG(0x171)])(O(R),N);},this[yy(0x884)]=function(R,S,T){var yH=yy,U=G[yH(0x8ec)],V=(G[(0x0,v['rR'])(v['Gb'])](0x8,O(R),N,O(S),N,O(T),N),P()),W=Q(V[0x2],V[0x3])[yH(0x2a0)]();return U(V[0x2],0x1*V[0x3]),W;},this[yy(0x36c)]=function(R){var yI=yy,S=G[yI(0x8ec)],T=(G['a_de'](0x8,O(R),N),P()),U=Q(T[0x2],T[0x3])[yI(0x2a0)]();return S(T[0x2],0x1*T[0x3]),U;},this[yy(0x170)]=function(R){var yJ=yy,S=G[yJ(0x8ec)],T=(G[yJ(0x170)](0x8,O(R),N),P()),U=Q(T[0x2],T[0x3])[yJ(0x2a0)]();return S(T[0x2],0x1*T[0x3]),U;};},E=y([q['e'],z(yt(0x506),[])],E);}());},0x1adf:(b,d,f)=>{f['d'](d,{'U':()=>g});var g={'ENVIRAONMENT_NOT_COMPATIBLE':0x989681,'ENVIRAONMENT_NOT_FAST':0x989686,'WEBGL_CONTEXT_LOST':0x989682,'RENDER_SLOW':0x989683,'INPUT_ERROR':0x989685,'PRELOAD_EFFECT_ERROR':0x9896e5,'SET_EFFECT_ERROR':0x989acd,'SET_FILTER_ERROR':0x989ace,'SET_INTENSITY_ERROR':0x989acf,'SDK_DISABLED':0x989ad0,'INVALID_EFFECT':0x989ad1,'GET_CAMERA_ERROR':0x989b31,'MEDIA_INTERRUPT_ERROR':0x989b32,'GET_CAMERA_NOT_ALLOWED':0x989b33,'GET_MEDIA_NOT_FOUND':0x989b34,'GET_MICROPHONE_NOT_ALLOWED':0x989b35,'MEDIA_SIZE_ERROR':0x989b36,'EFFECT_LOAD_ERROR':0x98a239,'CORE_LOAD_ERROR':0x98a23a,'AUTH_NEED_RELOAD_PAGE':0x98a621,'AUTH_LICENSEKEY_MISS':0x13134d1,'AUTH_APPID_MISS':0x13134d1,'AUTH_FAIL':0x13130e9,'REQUEST_FAIL':0x13130ea,'AUTH_API_FAIL':0x13130eb,'SIGNATURE_TIMEOUT':0x13130ec,'AUTHORIZE_TIMEOUT':0x13130ed,'START_REACORD_FAIL':0x1c9c381,'STOP_REACORD_FAIL':0x1c9c382,'READ_FILE_CACHE_FAIL':0x1c9c383,'REQUEST_FILE_FAIL':0x1c9c384,'UNCAUGHT_ERROR':0x2625a00,'SDK_VERSION_LOW_ERROR':0x2625a01,'SEGMENTATION_NOT_AVAILABLE':0x2625a02,'INPUT_NODE_RESIZE':0x2faf081,'RESIZE_EFFECT_LOST':0x2faf082};},0x1ade:(b,d,f)=>{f['d'](d,{'Nd':()=>g,'Q4':()=>h,'SZ':()=>j});var g,h=(function(){var yL=a0b;function k(){var yK=a0b;this[yK(0x778)]={};}return k[yL(0x32e)][yL(0x515)]=function(){var yM=yL;this[yM(0x778)]={};},k[yL(0x32e)]['on']=function(m,p){var yN=yL;return this['_events'][m]||(this[yN(0x778)][m]=[]),this['_events'][m][yN(0x3ef)](p)-0x1;},k['prototype'][yL(0x3a6)]=function(m,p){var yO=yL,q=this;if(yO(0x8e5)!==m){var v=this[yO(0x778)][m];v&&v['length']&&v[yO(0x280)](function(w){w(p);});}else setTimeout(function(w){var yP=yO,x=q[yP(0x778)][m];x&&x[yP(0x4ae)]&&x['forEach'](function(y){y(p);});},0x64);},k[yL(0x32e)]['off']=function(m,p,q){var yQ=yL,v=this[yQ(0x778)][m];if(v&&v[yQ(0x4ae)]){if(void 0x0!==q)v[yQ(0x5c3)](q,0x1);else{var w=v[yQ(0x979)](function(x){return x===p;});w>-0x1&&v[yQ(0x5c3)](w,0x1);}}},k[yL(0x32e)]['once']=function(m,p){var yR=yL,q,v=this;this[yR(0x778)][m]||(this['_events'][m]=[]);var w=function(x){var yS=yR;p(x),v[yS(0x517)](m,w,q);};q=this['on'](m,w);},k;}()),j=function(){var yT=a0b;console[yT(0x5a1)](yT(0x9e9)),g=null;};},0x17dd:(b,d,f)=>{var yU=a0b;f['d'](d,{'D4':()=>m,'bH':()=>p,'b_':()=>k,'jl':()=>j});var g=f(0x170d),h=f['n'](g);h()[yU(0x508)]();function j(q){return h()['get'](q);}var k=j(yU(0x718)),m=j(yU(0xa06)),p=j('debug');},0x543:(b,d,f)=>{function g(j,k){var yV=a0b;j['z']=j['z']||0x0,k['z']=k['z']||0x0;var m=Math[yV(0x76f)](j['x']-k['x'],0x2)+Math[yV(0x76f)](j['y']-k['y'],0x2)+Math[yV(0x76f)](j['z']-k['z'],0x2);return Math[yV(0x76f)](m,0.5);}function h(j,k){return j['z']=j['z']||0x0,k['z']=k['z']||0x0,{'x':(j['x']+k['x'])/0x2,'y':(j['y']+k['y'])/0x2,'z':(j['z']+k['z'])/0x2};}f['d'](d,{'Sp':()=>g,'qg':()=>h});},0x218a:(b,d,f)=>{f['d'](d,{'e':()=>h});var g=Symbol(),h=function(j){return new Proxy(j,{'construct':function(k,m,p){var yW=a0b;return k[yW(0x32e)]!==p['prototype']?Reflect[yW(0x29e)](k,m,p):(k[g]||(k[g]=Reflect[yW(0x29e)](k,m,p)),k[g]);}});};},0x24f3:(b,d,f)=>{f['d'](d,{'M':()=>v});var g=f(0xb0e),h=f(0x191),j=f(0x218a),k=function(w,x,y,z){var yX=a0b,A,B=arguments[yX(0x4ae)],C=B<0x3?x:null===z?z=Object[yX(0x639)](x,y):z;if(yX(0x804)==typeof Reflect&&yX(0x3b5)==typeof Reflect['decorate'])C=Reflect['decorate'](w,x,y,z);else{for(var D=w[yX(0x4ae)]-0x1;D>=0x0;D--)(A=w[D])&&(C=(B<0x3?A(C):B>0x3?A(x,y,C):A(x,y))||C);}return B>0x3&&C&&Object['defineProperty'](x,y,C),C;},m=function(w,x,y,z){return new(y||(y=Promise))(function(A,B){var z1=a0b;function C(F){var yY=a0b;try{E(z[yY(0x479)](F));}catch(G){B(G);}}function D(F){var yZ=a0b;try{E(z[yZ(0x626)](F));}catch(G){B(G);}}function E(F){var z0=a0b,G;F[z0(0x79a)]?A(F[z0(0x4a9)]):(G=F[z0(0x4a9)],G instanceof y?G:new y(function(H){H(G);}))[z0(0x341)](C,D);}E((z=z[z1(0x6e8)](w,x||[]))[z1(0x479)]());});},p=function(w,x){var z2=a0b,y,z,A,B,C={'label':0x0,'sent':function(){if(0x1&A[0x0])throw A[0x1];return A[0x1];},'trys':[],'ops':[]};return B={'next':D(0x0),'throw':D(0x1),'return':D(0x2)},'function'==typeof Symbol&&(B[Symbol[z2(0x28f)]]=function(){return this;}),B;function D(E){return function(F){return function(G){var z3=a0b;if(y)throw new TypeError(z3(0x268));for(;C;)try{if(y=0x1,z&&(A=0x2&G[0x0]?z[z3(0x1bc)]:G[0x0]?z['throw']||((A=z[z3(0x1bc)])&&A[z3(0x8fb)](z),0x0):z[z3(0x479)])&&!(A=A['call'](z,G[0x1]))[z3(0x79a)])return A;switch(z=0x0,A&&(G=[0x2&G[0x0],A[z3(0x4a9)]]),G[0x0]){case 0x0:case 0x1:A=G;break;case 0x4:return C[z3(0x8a7)]++,{'value':G[0x1],'done':!0x1};case 0x5:C['label']++,z=G[0x1],G=[0x0];continue;case 0x7:G=C[z3(0x22e)][z3(0x806)](),C[z3(0x1e0)][z3(0x806)]();continue;default:if(!(A=C[z3(0x1e0)],(A=A['length']>0x0&&A[A[z3(0x4ae)]-0x1])||0x6!==G[0x0]&&0x2!==G[0x0])){C=0x0;continue;}if(0x3===G[0x0]&&(!A||G[0x1]>A[0x0]&&G[0x1]<A[0x3])){C[z3(0x8a7)]=G[0x1];break;}if(0x6===G[0x0]&&C[z3(0x8a7)]<A[0x1]){C['label']=A[0x1],A=G;break;}if(A&&C['label']<A[0x2]){C[z3(0x8a7)]=A[0x2],C['ops'][z3(0x3ef)](G);break;}A[0x2]&&C[z3(0x22e)][z3(0x806)](),C[z3(0x1e0)][z3(0x806)]();continue;}G=x[z3(0x8fb)](w,C);}catch(H){G=[0x6,H],z=0x0;}finally{y=A=0x0;}if(0x5&G[0x0])throw G[0x1];return{'value':G[0x0]?G[0x1]:void 0x0,'done':!0x0};}([E,F]);};}},q=function(w){var z4=a0b,x=z4(0x3b5)==typeof Symbol&&Symbol[z4(0x28f)],y=x&&w[x],z=0x0;if(y)return y[z4(0x8fb)](w);if(w&&z4(0x480)==typeof w[z4(0x4ae)])return{'next':function(){return w&&z>=w['length']&&(w=void 0x0),{'value':w&&w[z++],'done':!w};}};throw new TypeError(x?z4(0x2cd):'Symbol.iterator\x20is\x20not\x20defined.');},v=(function(){var z5=a0b;function w(){}return w['prototype'][z5(0x87e)]=function(){return m(this,void 0x0,void 0x0,function(){return p(this,function(x){var z6=a0b;return[0x2,Promise[z6(0x8c7)]()];});});},w[z5(0x32e)]['getDataConfig']=function(x){return function(y){var z7=a0b;switch(y){case 0x0:return g['sP'];case 0x1:return g['dO'];case 0x2:return g['CV'];case 0x3:return g['rp'];case 0x4:return g['FC'];case 0x5:return g['dE'];case 0x6:return g['he'];case 0x7:return g['Bb'];case 0x8:return g['Nj'];case 0x9:return g[z7(0x2aa)];case 0xa:return g[z7(0x80a)];case 0xb:return g['Ed'];case 0xc:return g[z7(0x2a8)];case 0xd:return g['RIGHT_FACE_OVAL3'];case 0xe:return g['X2'];case 0xf:return g['bb'];case 0x10:return g['aj'];case 0x11:return g['G4'];case 0x12:return g['m1'];case 0x13:return g['MX'];case 0x14:return g['oC'];case 0x15:return g['Ej'];case 0x16:return g['HN'];case 0x17:return g['Cg'];case 0x18:return g['AE'];case 0x19:return g['Fx'];case 0x1a:return g['aV'];case 0x1b:return g['Op'];case 0x1c:return g['zk'];case 0x1d:return g['aW'];case 0x1e:return g['mw'];default:return'';}}(x);},w['prototype']['getConfigByKeys']=function(x){var z8=z5,y,z,A={};try{for(var B=q(x),C=B['next']();!C[z8(0x79a)];C=B[z8(0x479)]()){var D=C['value'],E=h['c4'][D];A[D]=this['getDataConfig'](E);}}catch(F){y={'error':F};}finally{try{C&&!C[z8(0x79a)]&&(z=B[z8(0x1bc)])&&z[z8(0x8fb)](B);}finally{if(y)throw y[z8(0x8e5)];}}return A;},w=k([j['e']],w);}());},0x12c9:(a0,a1,a2)=>{var zc=a0b,a3=a2(0x1ec0),a4=Uint8Array,a5=Uint16Array,a6=Uint32Array,a7=new a4([0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x1,0x1,0x1,0x2,0x2,0x2,0x2,0x3,0x3,0x3,0x3,0x4,0x4,0x4,0x4,0x5,0x5,0x5,0x5,0x0,0x0,0x0,0x0]),a8=new a4([0x0,0x0,0x0,0x0,0x1,0x1,0x2,0x2,0x3,0x3,0x4,0x4,0x5,0x5,0x6,0x6,0x7,0x7,0x8,0x8,0x9,0x9,0xa,0xa,0xb,0xb,0xc,0xc,0xd,0xd,0x0,0x0]),a9=new a4([0x10,0x11,0x12,0x0,0x8,0x7,0x9,0x6,0xa,0x5,0xb,0x4,0xc,0x3,0xd,0x2,0xe,0x1,0xf]),aa=function(c0,c1){for(var c2=new a5(0x1f),c3=0x0;c3<0x1f;++c3)c2[c3]=c1+=0x1<<c0[c3-0x1];var c4=new a6(c2[0x1e]);for(c3=0x1;c3<0x1e;++c3)for(var c5=c2[c3];c5<c2[c3+0x1];++c5)c4[c5]=c5-c2[c3]<<0x5|c3;return[c2,c4];},ab=aa(a7,0x2),ac=ab[0x0],ad=ab[0x1];ac[0x1c]=0x102,ad[0x102]=0x1c;for(var af=aa(a8,0x0),ag=af[0x0],ah=af[0x1],ai=new a5(0x8000),aj=0x0;aj<0x8000;++aj){var ak=(0xaaaa&aj)>>>0x1|(0x5555&aj)<<0x1;ak=(0xf0f0&(ak=(0xcccc&ak)>>>0x2|(0x3333&ak)<<0x2))>>>0x4|(0xf0f&ak)<<0x4,ai[aj]=((0xff00&ak)>>>0x8|(0xff&ak)<<0x8)>>>0x1;}var al=function(c0,c1,c2){var z9=a0b;for(var c3=c0[z9(0x4ae)],c4=0x0,c5=new a5(c1);c4<c3;++c4)++c5[c0[c4]-0x1];var c6,c7=new a5(c1);for(c4=0x0;c4<c1;++c4)c7[c4]=c7[c4-0x1]+c5[c4-0x1]<<0x1;if(c2){c6=new a5(0x1<<c1);var c8=0xf-c1;for(c4=0x0;c4<c3;++c4)if(c0[c4]){for(var c9=c4<<0x4|c0[c4],ca=c1-c0[c4],cb=c7[c0[c4]-0x1]++<<ca,cc=cb|(0x1<<ca)-0x1;cb<=cc;++cb)c6[ai[cb]>>>c8]=c9;}}else{for(c6=new a5(c3),c4=0x0;c4<c3;++c4)c0[c4]&&(c6[c4]=ai[c7[c0[c4]-0x1]++]>>>0xf-c0[c4]);}return c6;},am=new a4(0x120);for(aj=0x0;aj<0x90;++aj)am[aj]=0x8;for(aj=0x90;aj<0x100;++aj)am[aj]=0x9;for(aj=0x100;aj<0x118;++aj)am[aj]=0x7;for(aj=0x118;aj<0x120;++aj)am[aj]=0x8;var an=new a4(0x20);for(aj=0x0;aj<0x20;++aj)an[aj]=0x5;var ao=al(am,0x9,0x0),ap=al(am,0x9,0x1),aq=al(an,0x5,0x0),ar=al(an,0x5,0x1),as=function(c0){var za=a0b;for(var c1=c0[0x0],c2=0x1;c2<c0[za(0x4ae)];++c2)c0[c2]>c1&&(c1=c0[c2]);return c1;},au=function(c0,c1,c2){var c3=c1/0x8|0x0;return(c0[c3]|c0[c3+0x1]<<0x8)>>(0x7&c1)&c2;},av=function(c0,c1){var c2=c1/0x8|0x0;return(c0[c2]|c0[c2+0x1]<<0x8|c0[c2+0x2]<<0x10)>>(0x7&c1);},aw=function(c0){return(c0+0x7)/0x8|0x0;},ax=function(c0,c1,c2){var zb=a0b;(null==c1||c1<0x0)&&(c1=0x0),(null==c2||c2>c0['length'])&&(c2=c0['length']);var c3=new(c0 instanceof a5?a5:c0 instanceof a6?a6:a4)(c2-c1);return c3[zb(0x3b4)](c0[zb(0x7c0)](c1,c2)),c3;},ay=['unexpected\x20EOF',zc(0x66d),zc(0x569),zc(0x995),zc(0x9f7),'no\x20stream\x20handler',,zc(0x55b),'invalid\x20UTF-8\x20data',zc(0x5fb),'date\x20not\x20in\x20range\x201980-2099',zc(0x4b3),zc(0x94b),zc(0x333)],az=function(c0,c1,c2){var zd=zc,c3=new Error(c1||ay[c0]);if(c3[zd(0x429)]=c0,Error['captureStackTrace']&&Error[zd(0xa07)](c3,az),!c2)throw c3;return c3;},aA=function(c0,c1,c2){var ze=zc,c3=c0[ze(0x4ae)];if(!c3||c2&&c2['f']&&!c2['l'])return c1||new a4(0x0);var c4=!c1||c2,c5=!c2||c2['i'];c2||(c2={}),c1||(c1=new a4(0x3*c3));var c6=function(cI){var zf=ze,cJ=c1[zf(0x4ae)];if(cI>cJ){var cK=new a4(Math[zf(0x3ae)](0x2*cJ,cI));cK[zf(0x3b4)](c1),c1=cK;}},c7=c2['f']||0x0,c8=c2['p']||0x0,c9=c2['b']||0x0,ca=c2['l'],cb=c2['d'],cc=c2['m'],cd=c2['n'],cf=0x8*c3;do{if(!ca){c7=au(c0,c8,0x1);var cg=au(c0,c8+0x1,0x3);if(c8+=0x3,!cg){var ch=c0[(cs=aw(c8)+0x4)-0x4]|c0[cs-0x3]<<0x8,ci=cs+ch;if(ci>c3){c5&&az(0x0);break;}c4&&c6(c9+ch),c1[ze(0x3b4)](c0[ze(0x7c0)](cs,ci),c9),c2['b']=c9+=ch,c2['p']=c8=0x8*ci,c2['f']=c7;continue;}if(0x1==cg)ca=ap,cb=ar,cc=0x9,cd=0x5;else{if(0x2==cg){var cj=au(c0,c8,0x1f)+0x101,ck=au(c0,c8+0xa,0xf)+0x4,cl=cj+au(c0,c8+0x5,0x1f)+0x1;c8+=0xe;for(var cm=new a4(cl),cn=new a4(0x13),co=0x0;co<ck;++co)cn[a9[co]]=au(c0,c8+0x3*co,0x7);c8+=0x3*ck;var cp=as(cn),cq=(0x1<<cp)-0x1,cr=al(cn,cp,0x1);for(co=0x0;co<cl;){var cs,cu=cr[au(c0,c8,cq)];if(c8+=0xf&cu,(cs=cu>>>0x4)<0x10)cm[co++]=cs;else{var cv=0x0,cw=0x0;for(0x10==cs?(cw=0x3+au(c0,c8,0x3),c8+=0x2,cv=cm[co-0x1]):0x11==cs?(cw=0x3+au(c0,c8,0x7),c8+=0x3):0x12==cs&&(cw=0xb+au(c0,c8,0x7f),c8+=0x7);cw--;)cm[co++]=cv;}}var cx=cm[ze(0x7c0)](0x0,cj),cy=cm[ze(0x7c0)](cj);cc=as(cx),cd=as(cy),ca=al(cx,cc,0x1),cb=al(cy,cd,0x1);}else az(0x1);}if(c8>cf){c5&&az(0x0);break;}}c4&&c6(c9+0x20000);for(var cz=(0x1<<cc)-0x1,cA=(0x1<<cd)-0x1,cB=c8;;cB=c8){var cC=(cv=ca[av(c0,c8)&cz])>>>0x4;if((c8+=0xf&cv)>cf){c5&&az(0x0);break;}if(cv||az(0x2),cC<0x100)c1[c9++]=cC;else{if(0x100==cC){cB=c8,ca=null;break;}var cD=cC-0xfe;if(cC>0x108){var cE=a7[co=cC-0x101];cD=au(c0,c8,(0x1<<cE)-0x1)+ac[co],c8+=cE;}var cF=cb[av(c0,c8)&cA],cG=cF>>>0x4;cF||az(0x3),c8+=0xf&cF,cy=ag[cG];cG>0x3&&(cE=a8[cG],(cy+=av(c0,c8)&(0x1<<cE)-0x1,c8+=cE));if(c8>cf){c5&&az(0x0);break;}c4&&c6(c9+0x20000);for(var cH=c9+cD;c9<cH;c9+=0x4)c1[c9]=c1[c9-cy],c1[c9+0x1]=c1[c9+0x1-cy],c1[c9+0x2]=c1[c9+0x2-cy],c1[c9+0x3]=c1[c9+0x3-cy];c9=cH;}}c2['l']=ca,c2['p']=cB,c2['b']=c9,c2['f']=c7,ca&&(c7=0x1,c2['m']=cc,c2['d']=cb,c2['n']=cd);}while(!c7);return c9==c1[ze(0x4ae)]?c1:ax(c1,0x0,c9);},aB=function(c0,c1,c2){c2<<=0x7&c1;var c3=c1/0x8|0x0;c0[c3]|=c2,c0[c3+0x1]|=c2>>>0x8;},aC=function(c0,c1,c2){c2<<=0x7&c1;var c3=c1/0x8|0x0;c0[c3]|=c2,c0[c3+0x1]|=c2>>>0x8,c0[c3+0x2]|=c2>>>0x10;},aD=function(c0,c1){var zg=zc;for(var c2=[],c3=0x0;c3<c0[zg(0x4ae)];++c3)c0[c3]&&c2[zg(0x3ef)]({'s':c3,'f':c0[c3]});var c4=c2[zg(0x4ae)],c5=c2[zg(0x2a0)]();if(!c4)return[aK,0x0];if(0x1==c4){var c6=new a4(c2[0x0]['s']+0x1);return c6[c2[0x0]['s']]=0x1,[c6,0x1];}c2[zg(0x903)](function(cm,cn){return cm['f']-cn['f'];}),c2[zg(0x3ef)]({'s':-0x1,'f':0x61a9});var c7=c2[0x0],c8=c2[0x1],c9=0x0,ca=0x1,cb=0x2;for(c2[0x0]={'s':-0x1,'f':c7['f']+c8['f'],'l':c7,'r':c8};ca!=c4-0x1;)c7=c2[c2[c9]['f']<c2[cb]['f']?c9++:cb++],c8=c2[c9!=ca&&c2[c9]['f']<c2[cb]['f']?c9++:cb++],c2[ca++]={'s':-0x1,'f':c7['f']+c8['f'],'l':c7,'r':c8};var cc=c5[0x0]['s'];for(c3=0x1;c3<c4;++c3)c5[c3]['s']>cc&&(cc=c5[c3]['s']);var cd=new a5(cc+0x1),cf=aE(c2[ca-0x1],cd,0x0);if(cf>c1){c3=0x0;var cg=0x0,ch=cf-c1,ci=0x1<<ch;for(c5[zg(0x903)](function(cm,cn){return cd[cn['s']]-cd[cm['s']]||cm['f']-cn['f'];});c3<c4;++c3){var cj=c5[c3]['s'];if(!(cd[cj]>c1))break;cg+=ci-(0x1<<cf-cd[cj]),cd[cj]=c1;}for(cg>>>=ch;cg>0x0;){var ck=c5[c3]['s'];cd[ck]<c1?cg-=0x1<<c1-cd[ck]++-0x1:++c3;}for(;c3>=0x0&&cg;--c3){var cl=c5[c3]['s'];cd[cl]==c1&&(--cd[cl],++cg);}cf=c1;}return[new a4(cd),cf];},aE=function(c0,c1,c2){return-0x1==c0['s']?Math['max'](aE(c0['l'],c1,c2+0x1),aE(c0['r'],c1,c2+0x1)):c1[c0['s']]=c2;},aF=function(c0){var zh=zc;for(var c1=c0[zh(0x4ae)];c1&&!c0[--c1];);for(var c2=new a5(++c1),c3=0x0,c4=c0[0x0],c5=0x1,c6=function(c8){c2[c3++]=c8;},c7=0x1;c7<=c1;++c7)if(c0[c7]==c4&&c7!=c1)++c5;else{if(!c4&&c5>0x2){for(;c5>0x8a;c5-=0x8a)c6(0x7ff2);c5>0x2&&(c6(c5>0xa?c5-0xb<<0x5|0x7012:c5-0x3<<0x5|0x3011),c5=0x0);}else{if(c5>0x3){for(c6(c4),--c5;c5>0x6;c5-=0x6)c6(0x2070);c5>0x2&&(c6(c5-0x3<<0x5|0x2010),c5=0x0);}}for(;c5--;)c6(c4);c5=0x1,c4=c0[c7];}return[c2[zh(0x7c0)](0x0,c3),c1];},aG=function(c0,c1){var zi=zc;for(var c2=0x0,c3=0x0;c3<c1[zi(0x4ae)];++c3)c2+=c0[c3]*c1[c3];return c2;},aH=function(c0,c1,c2){var zj=zc,c3=c2[zj(0x4ae)],c4=aw(c1+0x2);c0[c4]=0xff&c3,c0[c4+0x1]=c3>>>0x8,c0[c4+0x2]=0xff^c0[c4],c0[c4+0x3]=0xff^c0[c4+0x1];for(var c5=0x0;c5<c3;++c5)c0[c4+c5+0x4]=c2[c5];return 0x8*(c4+0x4+c3);},aI=function(c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,ca){var zk=zc;aB(c1,ca++,c2),++c4[0x100];for(var cb=aD(c4,0xf),cc=cb[0x0],cd=cb[0x1],cf=aD(c5,0xf),cg=cf[0x0],ch=cf[0x1],ci=aF(cc),cj=ci[0x0],ck=ci[0x1],cl=aF(cg),cm=cl[0x0],cn=cl[0x1],co=new a5(0x13),cp=0x0;cp<cj[zk(0x4ae)];++cp)co[0x1f&cj[cp]]++;for(cp=0x0;cp<cm[zk(0x4ae)];++cp)co[0x1f&cm[cp]]++;for(var cq=aD(co,0x7),cr=cq[0x0],cs=cq[0x1],cu=0x13;cu>0x4&&!cr[a9[cu-0x1]];--cu);var cv,cw,cx,cy,cz=c9+0x5<<0x3,cA=aG(c4,am)+aG(c5,an)+c6,cB=aG(c4,cc)+aG(c5,cg)+c6+0xe+0x3*cu+aG(co,cr)+(0x2*co[0x10]+0x3*co[0x11]+0x7*co[0x12]);if(cz<=cA&&cz<=cB)return aH(c1,ca,c0[zk(0x7c0)](c8,c8+c9));if(aB(c1,ca,0x1+(cB<cA)),ca+=0x2,cB<cA){cv=al(cc,cd,0x0),cw=cc,cx=al(cg,ch,0x0),cy=cg;var cC=al(cr,cs,0x0);aB(c1,ca,ck-0x101),aB(c1,ca+0x5,cn-0x1),aB(c1,ca+0xa,cu-0x4),ca+=0xe;for(cp=0x0;cp<cu;++cp)aB(c1,ca+0x3*cp,cr[a9[cp]]);ca+=0x3*cu;for(var cD=[cj,cm],cE=0x0;cE<0x2;++cE){var cF=cD[cE];for(cp=0x0;cp<cF[zk(0x4ae)];++cp){var cG=0x1f&cF[cp];aB(c1,ca,cC[cG]),ca+=cr[cG],cG>0xf&&(aB(c1,ca,cF[cp]>>>0x5&0x7f),ca+=cF[cp]>>>0xc);}}}else cv=ao,cw=am,cx=aq,cy=an;for(cp=0x0;cp<c7;++cp)if(c3[cp]>0xff){cG=c3[cp]>>>0x12&0x1f,(aC(c1,ca,cv[cG+0x101]),ca+=cw[cG+0x101],cG>0x7&&(aB(c1,ca,c3[cp]>>>0x17&0x1f),ca+=a7[cG]));var cH=0x1f&c3[cp];aC(c1,ca,cx[cH]),ca+=cy[cH],cH>0x3&&(aC(c1,ca,c3[cp]>>>0x5&0x1fff),ca+=a8[cH]);}else aC(c1,ca,cv[c3[cp]]),ca+=cw[c3[cp]];return aC(c1,ca,cv[0x100]),ca+cw[0x100];},aJ=new a6([0x10004,0x20008,0x20010,0x20020,0x40020,0x100080,0x100100,0x204400,0x205000]),aK=new a4(0x0),aL=function(c0,c1,c2,c3,c4,c5){var zl=zc,c6=c0[zl(0x4ae)],c7=new a4(c3+c6+0x5*(0x1+Math['ceil'](c6/0x1b58))+c4),c8=c7[zl(0x7c0)](c3,c7[zl(0x4ae)]-c4),c9=0x0;if(!c1||c6<0x8)for(var ca=0x0;ca<=c6;ca+=0xffff){var cb=ca+0xffff;cb<c6?c9=aH(c8,c9,c0['subarray'](ca,cb)):(c8[ca]=c5,c9=aH(c8,c9,c0['subarray'](ca,c6)));}else{for(var cc=aJ[c1-0x1],cd=cc>>>0xd,cf=0x1fff&cc,cg=(0x1<<c2)-0x1,ch=new a5(0x8000),ci=new a5(cg+0x1),cj=Math[zl(0x61d)](c2/0x3),ck=0x2*cj,cl=function(cO){return(c0[cO]^c0[cO+0x1]<<cj^c0[cO+0x2]<<ck)&cg;},cm=new a6(0x61a8),cn=new a5(0x120),co=new a5(0x20),cp=0x0,cq=0x0,cr=(ca=0x0,0x0),cs=0x0,cu=0x0;ca<c6;++ca){var cv=cl(ca),cw=0x7fff&ca,cx=ci[cv];if(ch[cw]=cx,ci[cv]=cw,cs<=ca){var cy=c6-ca;if((cp>0x1b58||cr>0x6000)&&cy>0x1a7){c9=aI(c0,c8,0x0,cm,cn,co,cq,cr,cu,ca-cu,c9),cr=cp=cq=0x0,cu=ca;for(var cz=0x0;cz<0x11e;++cz)cn[cz]=0x0;for(cz=0x0;cz<0x1e;++cz)co[cz]=0x0;}var cA=0x2,cB=0x0,cC=cf,cD=cw-cx&0x7fff;if(cy>0x2&&cv==cl(ca-cD))for(var cE=Math[zl(0x3e8)](cd,cy)-0x1,cF=Math['min'](0x7fff,ca),cG=Math[zl(0x3e8)](0x102,cy);cD<=cF&&--cC&&cw!=cx;){if(c0[ca+cA]==c0[ca+cA-cD]){for(var cH=0x0;cH<cG&&c0[ca+cH]==c0[ca+cH-cD];++cH);if(cH>cA){if(cA=cH,cB=cD,cH>cE)break;var cI=Math['min'](cD,cH-0x2),cJ=0x0;for(cz=0x0;cz<cI;++cz){var cK=ca-cD+cz+0x8000&0x7fff,cL=cK-ch[cK]+0x8000&0x7fff;cL>cJ&&(cJ=cL,cx=cK);}}}cD+=(cw=cx)-(cx=ch[cw])+0x8000&0x7fff;}if(cB){cm[cr++]=0x10000000|ad[cA]<<0x12|ah[cB];var cM=0x1f&ad[cA],cN=0x1f&ah[cB];cq+=a7[cM]+a8[cN],++cn[0x101+cM],++co[cN],cs=ca+cA,++cp;}else cm[cr++]=c0[ca],++cn[c0[ca]];}}c9=aI(c0,c8,c5,cm,cn,co,cq,cr,cu,ca-cu,c9),!c5&&0x7&c9&&(c9=aH(c8,c9+0x1,aK));}return ax(c7,0x0,c3+aw(c9)+c4);},aM=(function(){for(var c0=new Int32Array(0x100),c1=0x0;c1<0x100;++c1){for(var c2=c1,c3=0x9;--c3;)c2=(0x1&c2&&-0x12477ce0)^c2>>>0x1;c0[c1]=c2;}return c0;}()),aN=function(){var c0=-0x1;return{'p':function(c1){var zm=a0b;for(var c2=c0,c3=0x0;c3<c1[zm(0x4ae)];++c3)c2=aM[0xff&c2^c1[c3]]^c2>>>0x8;c0=c2;},'d':function(){return~c0;}};},aO=function(){var c0=0x1,c1=0x0;return{'p':function(c2){var zn=a0b;for(var c3=c0,c4=c1,c5=0x0|c2[zn(0x4ae)],c6=0x0;c6!=c5;){for(var c7=Math[zn(0x3e8)](c6+0xa5f,c5);c6<c7;++c6)c4+=c3+=c2[c6];c3=(0xffff&c3)+0xf*(c3>>0x10),c4=(0xffff&c4)+0xf*(c4>>0x10);}c0=c3,c1=c4;},'d':function(){return(0xff&(c0%=0xfff1))<<0x18|c0>>>0x8<<0x10|(0xff&(c1%=0xfff1))<<0x8|c1>>>0x8;}};},aP=function(c0,c1,c2,c3,c4){var zo=zc;return aL(c0,null==c1[zo(0x7a5)]?0x6:c1[zo(0x7a5)],null==c1[zo(0x661)]?Math[zo(0x61d)](1.5*Math[zo(0x3ae)](0x8,Math[zo(0x3e8)](0xd,Math[zo(0x5a1)](c0['length'])))):0xc+c1['mem'],c2,c3,!c4);},aQ=function(c0,c1){var c2={};for(var c3 in c0)c2[c3]=c0[c3];for(var c3 in c1)c2[c3]=c1[c3];return c2;},aR=function(c0,c1,c2){var zp=zc;for(var c3=c0(),c4=c0[zp(0x5bb)](),c5=c4[zp(0x2a0)](c4[zp(0x50a)]('[')+0x1,c4[zp(0x39a)](']'))[zp(0x99b)](/ /g,'')[zp(0x329)](','),c6=0x0;c6<c3[zp(0x4ae)];++c6){var c7=c3[c6],c8=c5[c6];if('function'==typeof c7){c1+=';'+c8+'=';var c9=c7['toString']();if(c7['prototype']){if(-0x1!=c9['indexOf'](zp(0x1f3))){var ca=c9['indexOf']('\x20',0x8)+0x1;c1+=c9[zp(0x2a0)](ca,c9['indexOf']('(',ca));}else{for(var cb in(c1+=c9,c7[zp(0x32e)]))c1+=';'+c8+zp(0x285)+cb+'='+c7['prototype'][cb][zp(0x5bb)]();}}else c1+=c9;}else c2[c8]=c7;}return[c1,c2];},aS=[],aT=function(c0,c1,c2,c3){var zq=zc,c4;if(!aS[c2]){for(var c5='',c6={},c7=c0[zq(0x4ae)]-0x1,c8=0x0;c8<c7;++c8)c5=(c4=aR(c0[c8],c5,c6))[0x0],c6=c4[0x1];aS[c2]=aR(c0[c7],c5,c6);}var c9=aQ({},aS[c2][0x1]);return a3[zq(0x19d)](aS[c2][0x0]+zq(0x218)+c1[zq(0x5bb)]()+'}',c2,c9,function(ca){var zr=zq,cb=[];for(var cc in ca)(ca[cc]instanceof a4||ca[cc]instanceof a5||ca[cc]instanceof a6)&&cb[zr(0x3ef)]((ca[cc]=new ca[cc]['constructor'](ca[cc]))[zr(0x331)]);return cb;}(c9),c3);},aU=function(){return[a4,a5,a6,a7,a8,a9,ac,ag,ap,ar,ai,ay,al,as,au,av,aw,ax,az,aA,bn,b0,b1];},aV=function(){return[a4,a5,a6,a7,a8,a9,ad,ah,ao,am,aq,an,ai,aJ,aK,al,aB,aC,aD,aE,aF,aG,aH,aI,aw,ax,aL,aP,bj,b0];},aW=function(){return[b9,bc,b8,aN,aM];},aX=function(){return[ba,bb];},aY=function(){return[bd,b8,aO];},aZ=function(){return[be];},b0=function(c0){var zs=zc;return postMessage(c0,[c0[zs(0x331)]]);},b1=function(c0){var zt=zc;return c0&&c0['size']&&new a4(c0[zt(0x698)]);},b2=function(c0,c1,c2,c3,c4,c5){var zv=zc,c6=aT(c2,c3,c4,function(c7,c8){var zu=a0b;c6[zu(0x263)](),c5(c7,c8);});return c6[zv(0x828)]([c0,c1],c1['consume']?[c0[zv(0x331)]]:[]),function(){var zw=zv;c6[zw(0x263)]();};},b3=function(c0){var zx=zc;return c0[zx(0x4b1)]=function(c1,c2){var zy=zx;return postMessage([c1,c2],[c1[zy(0x331)]]);},function(c1){var zz=zx;return c0[zz(0x3ef)](c1[zz(0x8c4)][0x0],c1[zz(0x8c4)][0x1]);};},b4=function(c0,c1,c2,c3,c4){var zB=zc,c5,c6=aT(c0,c3,c4,function(c7,c8){var zA=a0b;c7?(c6['terminate'](),c1[zA(0x4b1)]['call'](c1,c7)):(c8[0x1]&&c6[zA(0x263)](),c1[zA(0x4b1)][zA(0x8fb)](c1,c7,c8[0x0],c8[0x1]));});c6[zB(0x828)](c2),c1[zB(0x3ef)]=function(c7,c8){var zC=zB;c1[zC(0x4b1)]||az(0x5),c5&&c1['ondata'](az(0x4,0x0,0x1),null,!!c8),c6[zC(0x828)]([c7,c5=c8],[c7[zC(0x331)]]);},c1[zB(0x263)]=function(){var zD=zB;c6[zD(0x263)]();};},b5=function(c0,c1){return c0[c1]|c0[c1+0x1]<<0x8;},b6=function(c0,c1){return(c0[c1]|c0[c1+0x1]<<0x8|c0[c1+0x2]<<0x10|c0[c1+0x3]<<0x18)>>>0x0;},b7=function(c0,c1){return b6(c0,c1)+0x100000000*b6(c0,c1+0x4);},b8=function(c0,c1,c2){for(;c2;++c1)c0[c1]=c2,c2>>>=0x8;},b9=function(c0,c1){var zE=zc,c2=c1['filename'];if(c0[0x0]=0x1f,c0[0x1]=0x8b,c0[0x2]=0x8,c0[0x8]=c1[zE(0x7a5)]<0x2?0x4:0x9==c1[zE(0x7a5)]?0x2:0x0,c0[0x9]=0x3,0x0!=c1[zE(0x645)]&&b8(c0,0x4,Math[zE(0x6fb)](new Date(c1[zE(0x645)]||Date[zE(0x32d)]())/0x3e8)),c2){c0[0x3]=0x8;for(var c3=0x0;c3<=c2[zE(0x4ae)];++c3)c0[c3+0xa]=c2['charCodeAt'](c3);}},ba=function(c0){var zF=zc;0x1f==c0[0x0]&&0x8b==c0[0x1]&&0x8==c0[0x2]||az(0x6,zF(0x7a0));var c1=c0[0x3],c2=0xa;0x4&c1&&(c2+=c0[0xa]|0x2+(c0[0xb]<<0x8));for(var c3=(c1>>0x3&0x1)+(c1>>0x4&0x1);c3>0x0;c3-=!c0[c2++]);return c2+(0x2&c1);},bb=function(c0){var c1=c0['length'];return(c0[c1-0x4]|c0[c1-0x3]<<0x8|c0[c1-0x2]<<0x10|c0[c1-0x1]<<0x18)>>>0x0;},bc=function(c0){var zG=zc;return 0xa+(c0['filename']&&c0[zG(0x5fd)][zG(0x4ae)]+0x1||0x0);},bd=function(c0,c1){var zH=zc,c2=c1[zH(0x7a5)],c3=0x0==c2?0x0:c2<0x6?0x1:0x9==c2?0x3:0x2;c0[0x0]=0x78,c0[0x1]=c3<<0x6|(c3?0x20-0x2*c3:0x1);},be=function(c0){var zI=zc;(0x8!=(0xf&c0[0x0])||c0[0x0]>>>0x4>0x7||(c0[0x0]<<0x8|c0[0x1])%0x1f)&&az(0x6,zI(0x86e)),0x20&c0[0x1]&&az(0x6,zI(0x2f2));};function bf(c0,c1){var zJ=zc;return c1||zJ(0x3b5)!=typeof c0||(c1=c0,c0={}),this[zJ(0x4b1)]=c1,c0;}var bg=(function(){var zL=zc;function c0(c1,c2){var zK=a0b;c2||'function'!=typeof c1||(c2=c1,c1={}),this[zK(0x4b1)]=c2,this['o']=c1||{};}return c0[zL(0x32e)]['p']=function(c1,c2){var zM=zL;this[zM(0x4b1)](aP(c1,this['o'],0x0,0x0,!c2),c2);},c0[zL(0x32e)][zL(0x3ef)]=function(c1,c2){var zN=zL;this[zN(0x4b1)]||az(0x5),this['d']&&az(0x4),this['d']=c2,this['p'](c1,c2||!0x1);},c0;}()),bh=(function(){return function(c0,c1){var zO=a0b;b4([aV,function(){return[b3,bg];}],this,bf[zO(0x8fb)](this,c0,c1),function(c2){var zP=zO,c3=new bg(c2[zP(0x8c4)]);onmessage=b3(c3);},0x6);};}());function bi(c0,c1,c2){var zQ=zc;return c2||(c2=c1,c1={}),zQ(0x3b5)!=typeof c2&&az(0x7),b2(c0,c1,[aV],function(c3){var zR=zQ;return b0(bj(c3[zR(0x8c4)][0x0],c3['data'][0x1]));},0x0,c2);}function bj(c0,c1){return aP(c0,c1||{},0x0,0x0);}var bk=(function(){var zT=zc;function c0(c1){var zS=a0b;this['s']={},this['p']=new a4(0x0),this[zS(0x4b1)]=c1;}return c0[zT(0x32e)]['e']=function(c1){var zU=zT;this['ondata']||az(0x5),this['d']&&az(0x4);var c2=this['p'][zU(0x4ae)],c3=new a4(c2+c1[zU(0x4ae)]);c3[zU(0x3b4)](this['p']),c3[zU(0x3b4)](c1,c2),this['p']=c3;},c0[zT(0x32e)]['c']=function(c1){var zV=zT;this['d']=this['s']['i']=c1||!0x1;var c2=this['s']['b'],c3=aA(this['p'],this['o'],this['s']);this[zV(0x4b1)](ax(c3,c2,this['s']['b']),this['d']),this['o']=ax(c3,this['s']['b']-0x8000),this['s']['b']=this['o'][zV(0x4ae)],this['p']=ax(this['p'],this['s']['p']/0x8|0x0),this['s']['p']&=0x7;},c0['prototype'][zT(0x3ef)]=function(c1,c2){this['e'](c1),this['c'](c2);},c0;}()),bl=(function(){return function(c0){var zW=a0b;this[zW(0x4b1)]=c0,b4([aU,function(){return[b3,bk];}],this,0x0,function(){var c1=new bk();onmessage=b3(c1);},0x7);};}());function bm(c0,c1,c2){return c2||(c2=c1,c1={}),'function'!=typeof c2&&az(0x7),b2(c0,c1,[aU],function(c3){var zX=a0b;return b0(bn(c3['data'][0x0],b1(c3[zX(0x8c4)][0x1])));},0x1,c2);}function bn(c0,c1){return aA(c0,c1);}var bo=(function(){var zY=zc;function c0(c1,c2){this['c']=aN(),this['l']=0x0,this['v']=0x1,bg['call'](this,c1,c2);}return c0[zY(0x32e)][zY(0x3ef)]=function(c1,c2){var zZ=zY;bg[zZ(0x32e)][zZ(0x3ef)][zZ(0x8fb)](this,c1,c2);},c0[zY(0x32e)]['p']=function(c1,c2){var A0=zY;this['c']['p'](c1),this['l']+=c1[A0(0x4ae)];var c3=aP(c1,this['o'],this['v']&&bc(this['o']),c2&&0x8,!c2);this['v']&&(b9(c3,this['o']),this['v']=0x0),c2&&(b8(c3,c3[A0(0x4ae)]-0x8,this['c']['d']()),b8(c3,c3[A0(0x4ae)]-0x4,this['l'])),this['ondata'](c3,c2);},c0;}()),bp=(function(){return function(c0,c1){var A1=a0b;b4([aV,aW,function(){return[b3,bg,bo];}],this,bf[A1(0x8fb)](this,c0,c1),function(c2){var A2=A1,c3=new bo(c2[A2(0x8c4)]);onmessage=b3(c3);},0x8);};}());function bq(c0,c1,c2){return c2||(c2=c1,c1={}),'function'!=typeof c2&&az(0x7),b2(c0,c1,[aV,aW,function(){return[br];}],function(c3){var A3=a0b;return b0(br(c3[A3(0x8c4)][0x0],c3[A3(0x8c4)][0x1]));},0x2,c2);}function br(c0,c1){var A4=zc;c1||(c1={});var c2=aN(),c3=c0[A4(0x4ae)];c2['p'](c0);var c4=aP(c0,c1,bc(c1),0x8),c5=c4[A4(0x4ae)];return b9(c4,c1),b8(c4,c5-0x8,c2['d']()),b8(c4,c5-0x4,c3),c4;}var bs=(function(){var A6=zc;function c0(c1){var A5=a0b;this['v']=0x1,bk[A5(0x8fb)](this,c1);}return c0['prototype'][A6(0x3ef)]=function(c1,c2){var A7=A6;if(bk[A7(0x32e)]['e']['call'](this,c1),this['v']){var c3=this['p']['length']>0x3?ba(this['p']):0x4;if(c3>=this['p'][A7(0x4ae)]&&!c2)return;this['p']=this['p']['subarray'](c3),this['v']=0x0;}c2&&(this['p']['length']<0x8&&az(0x6,'invalid\x20gzip\x20data'),this['p']=this['p'][A7(0x7c0)](0x0,-0x8)),bk['prototype']['c'][A7(0x8fb)](this,c2);},c0;}()),bu=(function(){return function(c0){var A8=a0b;this[A8(0x4b1)]=c0,b4([aU,aX,function(){return[b3,bk,bs];}],this,0x0,function(){var c1=new bs();onmessage=b3(c1);},0x9);};}());function bv(c0,c1,c2){var A9=zc;return c2||(c2=c1,c1={}),A9(0x3b5)!=typeof c2&&az(0x7),b2(c0,c1,[aU,aX,function(){return[bw];}],function(c3){var Aa=A9;return b0(bw(c3[Aa(0x8c4)][0x0]));},0x3,c2);}function bw(c0,c1){return aA(c0['subarray'](ba(c0),-0x8),c1||new a4(bb(c0)));}var bx=(function(){var Ac=zc;function c0(c1,c2){var Ab=a0b;this['c']=aO(),this['v']=0x1,bg[Ab(0x8fb)](this,c1,c2);}return c0[Ac(0x32e)][Ac(0x3ef)]=function(c1,c2){var Ad=Ac;bg[Ad(0x32e)]['push'][Ad(0x8fb)](this,c1,c2);},c0[Ac(0x32e)]['p']=function(c1,c2){var Ae=Ac;this['c']['p'](c1);var c3=aP(c1,this['o'],this['v']&&0x2,c2&&0x4,!c2);this['v']&&(bd(c3,this['o']),this['v']=0x0),c2&&b8(c3,c3['length']-0x4,this['c']['d']()),this[Ae(0x4b1)](c3,c2);},c0;}());function by(c0,c1){var Af=zc;c1||(c1={});var c2=aO();c2['p'](c0);var c3=aP(c0,c1,0x2,0x4);return bd(c3,c1),b8(c3,c3[Af(0x4ae)]-0x4,c2['d']()),c3;}var bz=(function(){function c0(c1){var Ag=a0b;this['v']=0x1,bk[Ag(0x8fb)](this,c1);}return c0['prototype']['push']=function(c1,c2){var Ah=a0b;if(bk[Ah(0x32e)]['e'][Ah(0x8fb)](this,c1),this['v']){if(this['p'][Ah(0x4ae)]<0x2&&!c2)return;this['p']=this['p'][Ah(0x7c0)](0x2),this['v']=0x0;}c2&&(this['p'][Ah(0x4ae)]<0x4&&az(0x6,Ah(0x86e)),this['p']=this['p'][Ah(0x7c0)](0x0,-0x4)),bk[Ah(0x32e)]['c']['call'](this,c2);},c0;}()),bA=(function(){return function(c0){var Ai=a0b;this[Ai(0x4b1)]=c0,b4([aU,aZ,function(){return[b3,bk,bz];}],this,0x0,function(){var c1=new bz();onmessage=b3(c1);},0xb);};}());function bB(c0,c1,c2){var Aj=zc;return c2||(c2=c1,c1={}),Aj(0x3b5)!=typeof c2&&az(0x7),b2(c0,c1,[aU,aZ,function(){return[bC];}],function(c3){var Ak=Aj;return b0(bC(c3[Ak(0x8c4)][0x0],b1(c3['data'][0x1])));},0x5,c2);}function bC(c0,c1){var Al=zc;return aA((be(c0),c0[Al(0x7c0)](0x2,-0x4)),c1);}var bD=(function(){var Am=zc;function c0(c1){this['G']=bs,this['I']=bk,this['Z']=bz,this['ondata']=c1;}return c0[Am(0x32e)][Am(0x3ef)]=function(c1,c2){var An=Am;if(this[An(0x4b1)]||az(0x5),this['s'])this['s'][An(0x3ef)](c1,c2);else{if(this['p']&&this['p'][An(0x4ae)]){var c3=new a4(this['p'][An(0x4ae)]+c1[An(0x4ae)]);c3['set'](this['p']),c3[An(0x3b4)](c1,this['p'][An(0x4ae)]);}else this['p']=c1;if(this['p']['length']>0x2){var c4=this,c5=function(){var Ao=An;c4['ondata'][Ao(0x6e8)](c4,arguments);};this['s']=0x1f==this['p'][0x0]&&0x8b==this['p'][0x1]&&0x8==this['p'][0x2]?new this['G'](c5):0x8!=(0xf&this['p'][0x0])||this['p'][0x0]>>0x4>0x7||(this['p'][0x0]<<0x8|this['p'][0x1])%0x1f?new this['I'](c5):new this['Z'](c5),this['s']['push'](this['p'],c2),this['p']=null;}}},c0;}()),bE=function(c0,c1,c2,c3){for(var c4 in c0){var c5=c0[c4],c6=c1+c4;c5 instanceof a4?c2[c6]=[c5,c3]:Array['isArray'](c5)?c2[c6]=[c5[0x0],aQ(c3,c5[0x1])]:bE(c5,c6+'/',c2,c3);}},bF=zc(0x30a)!=typeof TextEncoder&&new TextEncoder(),bG=zc(0x30a)!=typeof TextDecoder&&new TextDecoder(),bH=0x0;try{bG[zc(0x9e7)](aK,{'stream':!0x0}),bH=0x1;}catch(c0){}var bI=function(c1){var Ap=zc;for(var c2='',c3=0x0;;){var c4=c1[c3++],c5=(c4>0x7f)+(c4>0xdf)+(c4>0xef);if(c3+c5>c1[Ap(0x4ae)])return[c2,ax(c1,c3-0x1)];c5?0x3==c5?(c4=((0xf&c4)<<0x12|(0x3f&c1[c3++])<<0xc|(0x3f&c1[c3++])<<0x6|0x3f&c1[c3++])-0x10000,c2+=String['fromCharCode'](0xd800|c4>>0xa,0xdc00|0x3ff&c4)):c2+=0x1&c5?String[Ap(0x284)]((0x1f&c4)<<0x6|0x3f&c1[c3++]):String['fromCharCode']((0xf&c4)<<0xc|(0x3f&c1[c3++])<<0x6|0x3f&c1[c3++]):c2+=String[Ap(0x284)](c4);}},bJ=(function(){var Ar=zc;function c1(c2){var Aq=a0b;this[Aq(0x4b1)]=c2,bH?this['t']=new TextDecoder():this['p']=aK;}return c1[Ar(0x32e)][Ar(0x3ef)]=function(c2,c3){var As=Ar;if(this[As(0x4b1)]||az(0x5),c3=!!c3,this['t'])return this[As(0x4b1)](this['t'][As(0x9e7)](c2,{'stream':!0x0}),c3),void(c3&&(this['t']['decode']()[As(0x4ae)]&&az(0x8),this['t']=null));this['p']||az(0x4);var c4=new a4(this['p']['length']+c2[As(0x4ae)]);c4['set'](this['p']),c4[As(0x3b4)](c2,this['p'][As(0x4ae)]);var c5=bI(c4),c6=c5[0x0],c7=c5[0x1];c3?(c7['length']&&az(0x8),this['p']=null):this['p']=c7,this[As(0x4b1)](c6,c3);},c1;}());function bK(c1,c2){var At=zc;if(c2){for(var c3=new a4(c1['length']),c4=0x0;c4<c1[At(0x4ae)];++c4)c3[c4]=c1['charCodeAt'](c4);return c3;}if(bF)return bF[At(0x459)](c1);var c5=c1[At(0x4ae)],c6=new a4(c1[At(0x4ae)]+(c1[At(0x4ae)]>>0x1)),c7=0x0,c8=function(cb){c6[c7++]=cb;};for(c4=0x0;c4<c5;++c4){if(c7+0x5>c6[At(0x4ae)]){var c9=new a4(c7+0x8+(c5-c4<<0x1));c9[At(0x3b4)](c6),c6=c9;}var ca=c1['charCodeAt'](c4);ca<0x80||c2?c8(ca):ca<0x800?(c8(0xc0|ca>>0x6),c8(0x80|0x3f&ca)):ca>0xd7ff&&ca<0xe000?(c8(0xf0|(ca=0x10000+(0xffc00&ca)|0x3ff&c1['charCodeAt'](++c4))>>0x12),c8(0x80|ca>>0xc&0x3f),c8(0x80|ca>>0x6&0x3f),c8(0x80|0x3f&ca)):(c8(0xe0|ca>>0xc),c8(0x80|ca>>0x6&0x3f),c8(0x80|0x3f&ca));}return ax(c6,0x0,c7);}function bL(c1,c2){var Au=zc;if(c2){for(var c3='',c4=0x0;c4<c1[Au(0x4ae)];c4+=0x4000)c3+=String[Au(0x284)]['apply'](null,c1['subarray'](c4,c4+0x4000));return c3;}if(bG)return bG['decode'](c1);var c5=bI(c1),c6=c5[0x0];return c5[0x1][Au(0x4ae)]&&az(0x8),c6;}a1['T8']=bL;var bM=function(c1){return 0x1==c1?0x3:c1<0x6?0x2:0x9==c1?0x1:0x0;},bN=function(c1,c2){return c2+0x1e+b5(c1,c2+0x1a)+b5(c1,c2+0x1c);},bO=function(c1,c2,c3){var c4=b5(c1,c2+0x1c),c5=bL(c1['subarray'](c2+0x2e,c2+0x2e+c4),!(0x800&b5(c1,c2+0x8))),c6=c2+0x2e+c4,c7=b6(c1,c2+0x14),c8=c3&&0xffffffff==c7?bP(c1,c6):[c7,b6(c1,c2+0x18),b6(c1,c2+0x2a)],c9=c8[0x0],ca=c8[0x1],cb=c8[0x2];return[b5(c1,c2+0xa),c9,ca,c5,c6+b5(c1,c2+0x1e)+b5(c1,c2+0x20),cb];},bP=function(c1,c2){for(;0x1!=b5(c1,c2);c2+=0x4+b5(c1,c2+0x2));return[b7(c1,c2+0xc),b7(c1,c2+0x4),b7(c1,c2+0x14)];},bQ=function(c1){var Av=zc,c2=0x0;if(c1)for(var c3 in c1){var c4=c1[c3][Av(0x4ae)];c4>0xffff&&az(0x9),c2+=c4+0x4;}return c2;},bR=function(c1,c2,c3,c4,c5,c6,c7,c8){var Aw=zc,c9=c4[Aw(0x4ae)],ca=c3[Aw(0x2b9)],cb=c8&&c8[Aw(0x4ae)],cc=bQ(ca);b8(c1,c2,null!=c7?0x2014b50:0x4034b50),c2+=0x4,null!=c7&&(c1[c2++]=0x14,c1[c2++]=c3['os']),c1[c2]=0x14,c2+=0x2,c1[c2++]=c3['flag']<<0x1|(null==c6&&0x8),c1[c2++]=c5&&0x8,c1[c2++]=0xff&c3[Aw(0x9cf)],c1[c2++]=c3[Aw(0x9cf)]>>0x8;var cd=new Date(null==c3['mtime']?Date[Aw(0x32d)]():c3['mtime']),cf=cd[Aw(0x3c3)]()-0x7bc;if((cf<0x0||cf>0x77)&&az(0xa),b8(c1,c2,cf<<0x19|cd[Aw(0x3f7)]()+0x1<<0x15|cd[Aw(0x64e)]()<<0x10|cd['getHours']()<<0xb|cd[Aw(0x9ab)]()<<0x5|cd[Aw(0x9c1)]()>>>0x1),c2+=0x4,null!=c6&&(b8(c1,c2,c3[Aw(0x221)]),b8(c1,c2+0x4,c6),b8(c1,c2+0x8,c3[Aw(0x698)])),b8(c1,c2+0xc,c9),b8(c1,c2+0xe,cc),c2+=0x10,null!=c7&&(b8(c1,c2,cb),b8(c1,c2+0x6,c3[Aw(0x414)]),b8(c1,c2+0xa,c7),c2+=0xe),c1['set'](c4,c2),c2+=c9,cc)for(var cg in ca){var ch=ca[cg],ci=ch[Aw(0x4ae)];b8(c1,c2,+cg),b8(c1,c2+0x2,ci),c1[Aw(0x3b4)](ch,c2+0x4),c2+=0x4+ci;}return cb&&(c1[Aw(0x3b4)](c8,c2),c2+=cb),c2;},bS=function(c1,c2,c3,c4,c5){b8(c1,c2,0x6054b50),b8(c1,c2+0x8,c3),b8(c1,c2+0xa,c3),b8(c1,c2+0xc,c4),b8(c1,c2+0x10,c5);},bT=(function(){var Ay=zc;function c1(c2){var Ax=a0b;this[Ax(0x5fd)]=c2,this['c']=aN(),this[Ax(0x698)]=0x0,this[Ax(0x9cf)]=0x0;}return c1[Ay(0x32e)][Ay(0x1c5)]=function(c2,c3){this['ondata'](null,c2,c3);},c1[Ay(0x32e)][Ay(0x3ef)]=function(c2,c3){var Az=Ay;this['ondata']||az(0x5),this['c']['p'](c2),this['size']+=c2[Az(0x4ae)],c3&&(this['crc']=this['c']['d']()),this['process'](c2,c3||!0x1);},c1;}()),bU=(function(){var AC=zc;function c1(c2,c3){var AA=a0b,c4=this;c3||(c3={}),bT[AA(0x8fb)](this,c2),this['d']=new bh(c3,function(c5,c6,c7){var AB=AA;c4[AB(0x4b1)](c5,c6,c7);}),this['cpr']=0x8,this[AA(0x8d5)]=bM(c3['level']),this[AA(0x263)]=this['d'][AA(0x263)];}return c1[AC(0x32e)][AC(0x1c5)]=function(c2,c3){var AD=AC;this['d'][AD(0x3ef)](c2,c3);},c1[AC(0x32e)][AC(0x3ef)]=function(c2,c3){var AE=AC;bT['prototype'][AE(0x3ef)][AE(0x8fb)](this,c2,c3);},c1;}()),bV=(function(){var AG=zc;function c1(c2){var AF=a0b;this[AF(0x4b1)]=c2,this['u']=[],this['d']=0x1;}return c1['prototype'][AG(0x572)]=function(c2){var AH=AG,c3=this;if(this['ondata']||az(0x5),0x2&this['d'])this[AH(0x4b1)](az(0x4+0x8*(0x1&this['d']),0x0,0x1),null,!0x1);else{var c4=bK(c2[AH(0x5fd)]),c5=c4[AH(0x4ae)],c6=c2['comment'],c7=c6&&bK(c6),c8=c5!=c2[AH(0x5fd)][AH(0x4ae)]||c7&&c6['length']!=c7[AH(0x4ae)],c9=c5+bQ(c2[AH(0x2b9)])+0x1e;c5>0xffff&&this[AH(0x4b1)](az(0xb,0x0,0x1),null,!0x1);var ca=new a4(c9);bR(ca,0x0,c2,c4,c8);var cb=[ca],cc=function(){var AI=AH;for(var ci=0x0,cj=cb;ci<cj[AI(0x4ae)];ci++){var ck=cj[ci];c3[AI(0x4b1)](null,ck,!0x1);}cb=[];},cd=this['d'];this['d']=0x0;var cf=this['u'][AH(0x4ae)],cg=aQ(c2,{'f':c4,'u':c8,'o':c7,'t':function(){var AJ=AH;c2[AJ(0x263)]&&c2[AJ(0x263)]();},'r':function(){if(cc(),cd){var ci=c3['u'][cf+0x1];ci?ci['r']():c3['d']=0x1;}cd=0x1;}}),ch=0x0;c2[AH(0x4b1)]=function(ci,cj,ck){var AK=AH;if(ci)c3[AK(0x4b1)](ci,cj,ck),c3['terminate']();else{if(ch+=cj[AK(0x4ae)],cb[AK(0x3ef)](cj),ck){var cl=new a4(0x10);b8(cl,0x0,0x8074b50),b8(cl,0x4,c2[AK(0x221)]),b8(cl,0x8,ch),b8(cl,0xc,c2[AK(0x698)]),cb[AK(0x3ef)](cl),cg['c']=ch,cg['b']=c9+ch+0x10,cg['crc']=c2['crc'],cg[AK(0x698)]=c2['size'],cd&&cg['r'](),cd=0x1;}else cd&&cc();}},this['u']['push'](cg);}},c1[AG(0x32e)][AG(0x814)]=function(){var AL=AG,c2=this;0x2&this['d']?this[AL(0x4b1)](az(0x4+0x8*(0x1&this['d']),0x0,0x1),null,!0x0):(this['d']?this['e']():this['u']['push']({'r':function(){var AM=AL;0x1&c2['d']&&(c2['u'][AM(0x5c3)](-0x1,0x1),c2['e']());},'t':function(){}}),this['d']=0x3);},c1[AG(0x32e)]['e']=function(){var AN=AG;for(var c2=0x0,c3=0x0,c4=0x0,c5=0x0,c6=this['u'];c5<c6[AN(0x4ae)];c5++){c4+=0x2e+(ca=c6[c5])['f']['length']+bQ(ca[AN(0x2b9)])+(ca['o']?ca['o'][AN(0x4ae)]:0x0);}for(var c7=new a4(c4+0x16),c8=0x0,c9=this['u'];c8<c9['length'];c8++){var ca=c9[c8];bR(c7,c2,ca,ca['f'],ca['u'],ca['c'],c3,ca['o']),c2+=0x2e+ca['f'][AN(0x4ae)]+bQ(ca[AN(0x2b9)])+(ca['o']?ca['o']['length']:0x0),c3+=ca['b'];}bS(c7,c2,this['u'][AN(0x4ae)],c4,c3),this[AN(0x4b1)](null,c7,!0x0),this['d']=0x2;},c1[AG(0x32e)][AG(0x263)]=function(){var AO=AG;for(var c2=0x0,c3=this['u'];c2<c3[AO(0x4ae)];c2++){c3[c2]['t']();}this['d']=0x2;},c1;}());a1['Xo']=function(c1,c2){var AP=zc;c2||(c2={});var c3={},c4=[];bE(c1,'',c3,c2);var c5=0x0,c6=0x0;for(var c7 in c3){var c8=c3[c7],c9=c8[0x0],ca=c8[0x1],cb=0x0==ca['level']?0x0:0x8,cc=(cp=bK(c7))[AP(0x4ae)],cd=ca[AP(0x68b)],cf=cd&&bK(cd),cg=cf&&cf[AP(0x4ae)],ch=bQ(ca[AP(0x2b9)]);cc>0xffff&&az(0xb);var ci=cb?bj(c9,ca):c9,cj=ci[AP(0x4ae)],ck=aN();ck['p'](c9),c4[AP(0x3ef)](aQ(ca,{'size':c9['length'],'crc':ck['d'](),'c':ci,'f':cp,'m':cf,'u':cc!=c7[AP(0x4ae)]||cf&&cd['length']!=cg,'o':c5,'cpr':cb})),c5+=0x1e+cc+ch+cj,c6+=0x4c+0x2*(cc+ch)+(cg||0x0)+cj;}for(var cl=new a4(c6+0x16),cm=c5,cn=c6-c5,co=0x0;co<c4[AP(0x4ae)];++co){var cp=c4[co];bR(cl,cp['o'],cp,cp['f'],cp['u'],cp['c'][AP(0x4ae)]);var cq=0x1e+cp['f']['length']+bQ(cp[AP(0x2b9)]);cl[AP(0x3b4)](cp['c'],cp['o']+cq),bR(cl,c5,cp,cp['f'],cp['u'],cp['c'][AP(0x4ae)],cp['o'],cp['m']),c5+=0x10+cq+(cp['m']?cp['m'][AP(0x4ae)]:0x0);}return bS(cl,c5,c4[AP(0x4ae)],cn,cm),cl;};var bW=(function(){var AQ=zc;function c1(){}return c1['prototype'][AQ(0x3ef)]=function(c2,c3){var AR=AQ;this[AR(0x4b1)](null,c2,c3);},c1['cpr']=0x0,c1;}()),bX=(function(){var AU=zc;function c1(c2,c3){var AT=a0b,c4=this;c3<0x4e200?this['i']=new bk(function(c5,c6){var AS=a0b;c4[AS(0x4b1)](null,c5,c6);}):(this['i']=new bl(function(c5,c6,c7){c4['ondata'](c5,c6,c7);}),this[AT(0x263)]=this['i'][AT(0x263)]);}return c1[AU(0x32e)]['push']=function(c2,c3){var AV=AU;this['i'][AV(0x263)]&&(c2=ax(c2,0x0)),this['i'][AV(0x3ef)](c2,c3);},c1['cpr']=0x8,c1;}()),bY=(function(){var AX=zc;function c1(c2){var AW=a0b;this[AW(0x412)]=c2,this['k']=[],this['o']={0x0:bW},this['p']=aK;}return c1[AX(0x32e)]['push']=function(c2,c3){var AY=AX,c4=this;if(this[AY(0x412)]||az(0x5),this['p']||az(0x4),this['c']>0x0){var c5=Math[AY(0x3e8)](this['c'],c2[AY(0x4ae)]),c6=c2[AY(0x7c0)](0x0,c5);if(this['c']-=c5,this['d']?this['d'][AY(0x3ef)](c6,!this['c']):this['k'][0x0][AY(0x3ef)](c6),(c2=c2[AY(0x7c0)](c5))[AY(0x4ae)])return this[AY(0x3ef)](c2,c3);}else{var c7=0x0,c8=0x0,c9=void 0x0,ca=void 0x0;this['p'][AY(0x4ae)]?c2[AY(0x4ae)]?((ca=new a4(this['p'][AY(0x4ae)]+c2['length']))[AY(0x3b4)](this['p']),ca[AY(0x3b4)](c2,this['p'][AY(0x4ae)])):ca=this['p']:ca=c2;for(var cb=ca['length'],cc=this['c'],cd=cc&&this['d'],cf=function(){var AZ=AY,ci,cj=b6(ca,c8);if(0x4034b50==cj){c7=0x1,c9=c8,cg['d']=null,cg['c']=0x0;var ck=b5(ca,c8+0x6),cl=b5(ca,c8+0x8),cm=0x800&ck,cn=0x8&ck,co=b5(ca,c8+0x1a),cp=b5(ca,c8+0x1c);if(cb>c8+0x1e+co+cp){var cq=[];cg['k']['unshift'](cq),c7=0x2;var cr,cs=b6(ca,c8+0x12),cu=b6(ca,c8+0x16),cv=bL(ca[AZ(0x7c0)](c8+0x1e,c8+=0x1e+co),!cm);0xffffffff==cs?(ci=cn?[-0x2]:bP(ca,c8),cs=ci[0x0],cu=ci[0x1]):cn&&(cs=-0x1),c8+=cp,cg['c']=cs;var cw={'name':cv,'cpr':cl,'start':function(){var B0=AZ;if(cw['ondata']||az(0x5),cs){var cx=c4['o'][cl];cx||cw[B0(0x4b1)](az(0xe,'unknown\x20cpr\x20type\x20'+cl,0x1),null,!0x1),(cr=cs<0x0?new cx(cv):new cx(cv,cs,cu))[B0(0x4b1)]=function(cB,cC,cD){var B1=B0;cw[B1(0x4b1)](cB,cC,cD);};for(var cy=0x0,cz=cq;cy<cz[B0(0x4ae)];cy++){var cA=cz[cy];cr[B0(0x3ef)](cA,!0x1);}c4['k'][0x0]==cq&&c4['c']?c4['d']=cr:cr[B0(0x3ef)](aK,!0x0);}else cw['ondata'](null,aK,!0x0);},'terminate':function(){var B2=AZ;cr&&cr[B2(0x263)]&&cr[B2(0x263)]();}};cs>=0x0&&(cw[AZ(0x698)]=cs,cw['ors']=cu),cg[AZ(0x412)](cw);}return AZ(0x296);}if(cc){if(0x8074b50==cj)return c9=c8+=0xc+(-0x2==cc&&0x8),c7=0x3,cg['c']=0x0,AZ(0x296);if(0x2014b50==cj)return c9=c8-=0x4,c7=0x3,cg['c']=0x0,'break';}},cg=this;c8<cb-0x4;++c8){if(AY(0x296)===cf())break;}if(this['p']=aK,cc<0x0){var ch=c7?ca[AY(0x7c0)](0x0,c9-0xc-(-0x2==cc&&0x8)-(0x8074b50==b6(ca,c9-0x10)&&0x4)):ca['subarray'](0x0,c8);cd?cd['push'](ch,!!c7):this['k'][+(0x2==c7)][AY(0x3ef)](ch);}if(0x2&c7)return this[AY(0x3ef)](ca['subarray'](c8),c3);this['p']=ca['subarray'](c8);}c3&&(this['c']&&az(0xd),this['p']=null);},c1['prototype']['register']=function(c2){var B3=AX;this['o'][c2[B3(0x9cf)]]=c2;},c1;}()),bZ=zc(0x3b5)==typeof queueMicrotask?queueMicrotask:'function'==typeof setTimeout?setTimeout:function(c1){c1();};a1['GZ']=function(c1,c2){var B4=zc;for(var c3={},c4=c1[B4(0x4ae)]-0x16;0x6054b50!=b6(c1,c4);--c4)(!c4||c1[B4(0x4ae)]-c4>0x10016)&&az(0xd);var c5=b5(c1,c4+0x8);if(!c5)return{};var c6=b6(c1,c4+0x10),c7=0xffffffff==c6;c7&&(c4=b6(c1,c4-0xc),0x6064b50!=b6(c1,c4)&&az(0xd),c5=b6(c1,c4+0x20),c6=b6(c1,c4+0x30));for(var c8=c2&&c2[B4(0x3b7)],c9=0x0;c9<c5;++c9){var ca=bO(c1,c6,c7),cb=ca[0x0],cc=ca[0x1],cd=ca[0x2],cf=ca[0x3],cg=ca[0x4],ch=ca[0x5],ci=bN(c1,ch);c6=cg,c8&&!c8({'name':cf,'size':cc,'ors':cd,'cpr':cb})||(cb?0x8==cb?c3[cf]=bn(c1['subarray'](ci,ci+cc),new a4(cd)):az(0xe,B4(0x4e7)+cb):c3[cf]=ax(c1,ci,ci+cc));}return c3;};},0x1ec0:(b,d)=>{var B5=a0b,f={};d[B5(0x19d)]=function(g,h,j,k,m){var B6=B5,p=new Worker(f[h]||(f[h]=URL[B6(0x347)](new Blob([g+';addEventListener(\x22error\x22,function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{'type':'text/javascript'}))));return p[B6(0x74e)]=function(q){var B7=B6,v=q[B7(0x8c4)],w=v['$e$'];if(w){var x=new Error(w[0x0]);x[B7(0x429)]=w[0x1],x[B7(0x7bd)]=w[0x2],m(x,null);}else m(null,v);},p['postMessage'](j,k),p;};}},n={};function a0a(){var Bh=['enabled','mirrorChange','complete','TextureCache','errMsg','nose_bridge5','alphaMode','license','stage','filters','access','taskHack','onMessage','decoder\x20start\x20fail','__init4','http','getItem','intensityNasolabialFolds','assign','radiusX','_orthographic','createShader','status','padding-top','_sx','vertices','Unsupported\x20environment','1309122168','onStart','LINEAR_BURN','takePhoto','_cameraMode','devtools','_renderer','Symbol.iterator','j4LDpiL2PlRmZ9ljaJ','scroll-behavior','updateAnchor','stringify','nose','分辨率变化导致特效丢失,请重新设置','recorder\x20start\x20error','findIndex','precision\x20highp\x20float;\x0aattribute\x20vec3\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0aattribute\x20vec4\x20aColor;\x0aattribute\x20float\x20aTextureId;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0a\x0avarying\x20vec2\x20vTextureCoord;\x0avarying\x20vec4\x20vColor;\x0avarying\x20float\x20vTextureId;\x0a\x0avoid\x20main(void){\x0agl_Position.xyw\x20=\x20projectionMatrix\x20*\x20aVertexPosition;\x0agl_Position.z\x20=\x200.0;\x0a\x0avTextureCoord\x20=\x20aTextureCoord;\x0avTextureId\x20=\x20aTextureId;\x0avColor\x20=\x20aColor;\x0a}\x0a','autoFit','Out\x20of\x20storage\x20space,\x20go\x20to\x20Settings\x20-\x20General-Storage\x20Space\x20and\x20clear\x20the\x20cache','wx\x20set\x20language','?payload=','input\x20init\x20res','appid','created','forehead_left','getInputNode','live-pusher\x20width\x20or\x20height\x20is\x20not\x20support.\x20please\x20use\x20Arsdk.getRealSize','text-transform','-webkit-rtl-ordering','text-indent','ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20','openSetting','fromFrames','break-inside','setDerivateCutoff','lip_top_right','byteLength','ease','readZipEntry','OUTER_REFERENCE','FRAGMENT_SHADER','mediaContainer\x20export\x20fail','background-image','invalid\x20distance','onMemoryWarning','当前浏览器不支持,请使用新版\x20Chrome/Safari/微信体验','VIDEO','font-family','padding-right','replace','border-top-style','zy\x20fetchWithSubPackage','_draw','_iIndex','applyTo','_usm','getFileSystemManager\x20file','无法解析的数据','pointerType','evaI','offlineBuffer','boundsQuad','uvsFloat32','_transformID','onInited','getMinutes','COLOR_BURN','chin','float\x20blendLinearBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendSubtractf\x0a\x09return\x20max(base+blend-1.0,0.0);\x0a}\x0a\x0a\x0avec3\x20blendLinearBurn(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendSubtract\x0a\x09return\x20max(base+blend-vec3(1.0),vec3(0.0));\x0a}\x0a\x0avec3\x20blendLinearBurn(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendLinearBurn(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','_quatUpdateId','createMediaRecorder','type','getAttributeNS','实色混合','LOG','SPEED','completeHandler','Type','effect_sticker_3d','optionalCall','faceDetect','screenWidth','auto\x20auto','invertCopyTo','infoAll','_initLoader','font-kerning','getSeconds','tab-size','funcName','SDK_ERROR','_updateID','animation-name','grid-template-columns','Setting','TEXTURE_MIN_FILTER','timer','cacheImage','prepareBackdrop','clearStickers','failRequestCount','cpr','0px\x20none\x20rgb(0,\x200,\x200)','createVideoDecoder','transcodeLive','isHidden','parse','Failed\x20to\x20load\x20the\x20basic\x20libraries','outer_offset_ratio','outputCanvas','SUBSTRACT','创建录制器失败','unlinkSync','autoUpdate','pointermove','61,75,74,68','updateStartTimestamp','filterArea','clip','fill\x20stroke\x20markers','__initStatic2','BatchShaderGenerator','call\x20set\x20renderer','tiltY','originRequest','decode','clientLeft','清理\x20EventBus','join','hackWsConnect','reportTime:\x20first\x20param\x20must\x20be\x20a\x20string','buffers','LinearLight','Code','vitals','_keymap','getAudioPath','setRenderer','cameraMatrix','onTouchStart','shift','stream\x20finished','windows','\x0avarying\x20vec3\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20vec4\x20uColor;\x0a\x0avoid\x20main(void)\x0a{\x0avec4\x20sample\x20=\x20texture2D(uSampler,\x20vTextureCoord.xy\x20/\x20vTextureCoord.z);\x0agl_FragColor\x20=\x20sample\x20*\x20uColor;\x0a}\x0a','fastSeek','degreeEnd','document','_dermabrasion','loadingIconOptions','_updateId','blend','CLEAR','rgb(0,\x200,\x200)','formatter','QuadUv','_mat4inv','resource-load','captureStackTrace','invalidate','scrollLeft','font-variant-east-asian','::::::::createFilter','dcutoff','pageId','translate','beautify','live\x20mode\x20is\x20not\x20supported','getPrototypeOf','getFileSystemManager','border-image-outset','Authorize\x20timeout,\x20retry\x20failed.','setBeautify','__init5','background-origin','display','encLoader','getOwnPropertyNames','addBeautyAsync','87YPSBuO','nasolabialFolds','list-style-image','hasOwnProperty','a_en','finish','reportApiSpeed','disabled','webgl','useContextAlpha','(1.36.3)','Url','show','getAttribLocation','onReady','0004','uvMatrix','getPerformance','onLoop','test.png','_previousFrame','checkPusherSize','DIFFERENCE','小程序读取缓存失败','/collect/whitelist','will-change','sprite_bilinear','border-collapse','_whiten','floatArray','aegisRequestStartTime','isWhiteList','iPhone;\x20CPU\x20iPhone\x20OS\x2010_3_1\x20like\x20Mac\x20OS\x20X','which','outline-offset','responseXML','onupgradeneeded','clientWidth','unknown','refreshNetwork','firstScreenTiming','hackHandler','batchable','border-left-color','column-count','\x22:\x22symbol\x22','entries','object-position','_calculateBounds','default','wx\x20camera\x20init','filterClamp','Version','defaultFilterStack','flipY','production','concat','addEventListener','_config','getEntriesByName','session','float\x20blendLinearDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendAddf\x0a\x09return\x20min(base+blend,1.0);\x0a}\x0a\x0avec3\x20blendLinearDodge(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09//\x20Note\x20:\x20Same\x20implementation\x20as\x20BlendAdd\x0a\x09return\x20min(base+blend,vec3(1.0));\x0a}\x0a\x0avec3\x20blendLinearDodge(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendLinearDodge(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','partialLutSkin','removeFrom','1.7.0','env','getFrameData','sendSDKError','eyeBrightness','audioPath','contains','nose_bridge1','getPixels','POINT','_lang','packInterleavedGeometry','uin','queue','_surface','float\x20blendColorDodge(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==1.0)?blend:min(base/(1.0-blend),1.0);\x0a}\x0a\x0avec3\x20blendColorDodge(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendColorDodge(base.r,blend.r),blendColorDodge(base.g,blend.g),blendColorDodge(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendColorDodge(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendColorDodge(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','return','Authorized,\x20but\x20still\x20unable\x20to\x20access\x20camera\x20or\x20microphone\x20device','fps','ColorDodge','-webkit-line-clamp','_renderDefault','vkstarted','logical','_tintRGB','process','offsetWidth','miniprogram_npm/tencentcloud-webar','-webkit-box-decoration-break','65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,33,64','statePool','请先开启摄像头及麦克风权限','onError','instance','anchor','The\x20interface\x20is\x20not\x20accessible.\x20Please\x20check\x20the\x20License\x20version','aTextureCoord','box-sizing','setToTranslation','tint','uvs','parentElement','font-size','isVisible','setReshapeMarks','common-v3','linkProgram','inline','live-pusher\x20height\x20cannot\x20be\x20greater\x20than\x20720px,currently\x20is\x20','modifyRequest','The\x20authentication\x20parameter\x20\x22licenseKey\x22\x20is\x20missing','projectName','trys','_currentProjID','createRecorder','responseType','overflow-y','precision\x20mediump\x20float;\x0a#define\x20dimension\x2064.0\x0auniform\x20sampler2D\x20uSampler;\x20//\x20底图\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20lut;\x20//\x20lut\x20图\x0auniform\x20float\x20intensity;\x20//\x20强度\x0auniform\x20vec2\x20lutSize;\x20//\x20lut\x20尺寸\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0a\x20\x20\x20\x20float\x20row\x20=\x20floor(sqrt(dimension)\x20+\x200.5);\x0a\x20\x20\x20\x20float\x20blueColor\x20=\x20color.b\x20*\x20(dimension\x20-\x201.0);\x0a\x20\x20\x20\x20vec2\x20quad1;\x0a\x20\x20\x20\x20quad1.y\x20=\x20floor(floor(blueColor)\x20/\x20row);\x0a\x20\x20\x20\x20quad1.x\x20=\x20floor(blueColor)\x20-\x20(quad1.y\x20*\x20row);\x0a\x20\x20\x20\x20vec2\x20quad2;\x0a\x20\x20\x20\x20quad2.y\x20=\x20floor(ceil(blueColor)\x20/\x20row);\x0a\x20\x20\x20\x20quad2.x\x20=\x20ceil(blueColor)\x20-\x20(quad2.y\x20*\x20row);;\x0a\x20\x20\x20\x20vec2\x20texPos1;\x0a\x20\x20\x20\x20texPos1.x\x20=\x20(quad1.x\x20*\x20(1.0/row))\x20+\x200.5/lutSize.x\x20+\x20((1.0/row\x20-\x201.0/lutSize.x)\x20*\x20color.r);\x0a\x20\x20\x20\x20texPos1.y\x20=\x20(quad1.y\x20*\x20(1.0/row))\x20+\x200.5/lutSize.y\x20+\x20((1.0/row\x20-\x201.0/lutSize.y)\x20*\x20color.g);\x0a\x20\x20\x20\x20vec2\x20texPos2;\x0a\x20\x20\x20\x20texPos2.x\x20=\x20(quad2.x\x20*\x20(1.0/row))\x20+\x200.5/lutSize.x\x20+\x20((1.0/row\x20-\x201.0/lutSize.x)\x20*\x20color.r);\x0a\x20\x20\x20\x20texPos2.y\x20=\x20(quad2.y\x20*\x20(1.0/row))\x20+\x200.5/lutSize.y\x20+\x20((1.0/row\x20-\x201.0/lutSize.y)\x20*\x20color.g);\x0a\x20\x20\x20\x20vec4\x20newColor1\x20=\x20texture2D(lut,\x20texPos1);\x0a\x20\x20\x20\x20vec4\x20newColor2\x20=\x20texture2D(lut,\x20texPos2);\x0a\x20\x20\x20\x20vec4\x20newColor\x20=\x20mix(newColor1,\x20newColor2,\x20fract(blueColor));\x0a\x20\x20\x20\x20vec4\x20finalColor\x20=\x20mix(color,\x20vec4(newColor.rgb,\x20color.a),\x20intensity);\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20finalColor;\x0a}\x0a','enableLoadingIcon','walk','publishNormalLog','flag_1','convertTo2s','addTicker','decorate','shaderGenerator','bindForceLocation','gotoAndStop','charCodeAt','Failed\x20to\x20read\x20WX\x20file\x20cache\x20data','0005','[native\x20code]','unshift','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20','-webkit-mask-repeat','-webkit-mask-box-image','scaleAndTranslate','fetchWithSubPackage','text-decoration-style','\x0aopenType:\x20','constructor','setDataReportConfig','darkCircle','1.36.3','send','copyTo3d','button','intensity\x20的值超出范围(0-1),默认为\x201','LinearDodge','SOFT_LIGHT','speedUrl','triangulation','api','arCacheStorage','_sign','cancelAnimationFrame','shutdown','-webkit-text-emphasis-color','blur','netType','removeTrack','0019','fetch','PERFORMANCE','_render','net2g','CLAMP','-webkit-mask-composite',';onmessage=function(e){for(var\x20k\x20in\x20e.data)self[k]=e.data[k];onmessage=','transition-delay','toHack','copyTo2d','-webkit-text-emphasis-style','text-overflow','referer','surface','break-after','crc','location','xUnit','mask','pending','This\x20browser\x20is\x20not\x20supported.\x20Please\x20use\x20the\x20latest\x20version\x20of\x20Chrome,\x20Safari,\x20or\x20WeChat','resetStickers','ctx2d','correctBlendMode','setItem','1px','setHandler','_options','ops','加载资源','onerror','debug','grid-auto-flow','shaderSource','geometry','Shader','contour_chin','retCodeHandler','precision\x20lowp\x20float;varying\x20vec2\x20vTextureCoord;uniform\x20sampler2D\x20uSampler;void\x20main(void){\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x20\x20gl_FragColor\x20=\x20color.bgra;}','tap','_currentLegacyID','callContainerCompleteError','economy','toLowerCase','margin-right','rgb(0,\x200,\x200)\x20none\x200px','multisample','objectStore','Difference','error\x20happen\x20when\x20aegis\x20stringify:\x20\x0a\x20','focus','horizontal-tb','stopRecord','findId','SoftLight','setResolution','uniform1f','version','Resolution\x20changes\x20cause\x20effects\x20to\x20be\x20lost,\x20Please\x20reset','setPlanes','mat3','SCREEN','copyTo','57,65,62,54,69,6d,65,73,74,61,6d,70','duration','vertexTrimmedData','showLoading','304668UWtGUT','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20','\x22:\x20','sqrt','_inited','loadPackage','mp3','addTaskConf','animation-fill-mode','setUpdatePerformanceListener','54,69,6d,65,73,74,61,6d,70','width','TEXTURE0','text-underline-position','terminate','applySticker','over\x20right','performanceUrl','addQuad','Generator\x20is\x20already\x20executing.','publishPackageLog','reduce','texture','disc','miniProgram','requestConfig','filterFrame','aUvs','extendBean','getGroupFromCache','triggerOnNewAegis','background-blend-mode','reportTime:\x20duration\x20must\x20between\x200\x20and\x2060000','linux','beforeReport','_currentSurfaceID','scriptEvaluateTiming','user-select','info','null','scrollWidth','videoRecorder','MULTIPLY','forEach','round','abort','text-rendering','fromCharCode','.prototype.','renderable','childNodes','activeTexture','ERROR','all','background-repeat','shape-outside','path','destinationFrame','iterator','-webkit-box-pack','static','stretch','root','checkLimit','packageSize','break','setDefaults','getVideoInfo','_active','unuse','NORMAL','_context','order','construct','pvUrl','slice','twoBezier','onWhitelist','HEADERS_RECEIVED','find','/ar/','gray','lip_top_left_target','RIGHT_FACE_OVAL2','upload','LEFT_FACE_OVAL2','submitCustomTime','set\x20ar\x20options','\x0avarying\x20vec2\x20vTextureCoord;\x0auniform\x20vec4\x20uColor;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0a\x0avoid\x20main(void)\x0a{\x0agl_FragColor\x20=\x20texture2D(uSampler,\x20vTextureCoord)\x20*\x20uColor;\x0a}','65,66,66,65,63,74,5f,6d,61,6b,65,75,70','player\x20init\x20fps','normalLogPipeline','listener','scrollHeight','maskClamp','textures','resources','_detector','wait\x20time','far','extra','wx\x20auth\x20setting','resultCb','parent','prepend','Module','drawMode','WEBSOCKET_ERROR','position3d','Message','request','lip_bottom_center','61,76,61,74,61,72,5f,76,72','Mesh','triggerInit','realWidth','publishAssetLog','post','aUV','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0aerrMsg:\x20','Object\x20is\x20not\x20iterable.','resolution','/collect/pv','_renderToBatch','state','/speed/performance','EXCLUSION','LEFT_FACE_OVAL','reset','_packedGeometryPoolSize','_bounds','fps\x20must\x20be\x20set\x20to\x20low\x20or\x20high','isolation','transSticker','local','butt','vector-effect','onload','table-layout','\x20call\x20failed','background-attachment','mapCoord','test','RIGHT_FACE_OVAL','Label','c30849f08b1b4841a759a7c7534a2f0c.bin','offsetLeft','摄像头或麦克风中断,请手动刷新页面','text-anchor','initCameraIns','getSystemInfoSync','#input-canvas','DEBUG','pagePerformance','script','intensityTeeth','grid-auto-rows','invalid\x20zlib\x20data:\x20preset\x20dictionaries\x20not\x20supported','SCALE_MODES','recordCanvasRendered','getLaunchOptionsSync','onShow','clip-rule','Texture','Default','getSlope','delete','canvas','session-','touchstart','aTrans','tilingSprite2d','clearCacheTmp','lip_top_left','3D特效','addTextTrack','vertexDirtyId','preventDefault','height','Need\x20to\x20enter\x20the\x20page\x20again\x20for\x20the\x20license\x20to\x20take\x20effect','\x20\x0a\x20\x20Error.stack:\x20','undefined','createDefaultHandler','4096','from=','font-variant-ligatures','addToCache','init\x20fps\x20error','renderer','getEffect','column-rule-style','HARD_LIGHT','scaleMode','hidden','FilterSystem','isErr','https:','wx\x20fetch\x20error','CAMERA','bindingDestinationFrame','precision\x20mediump\x20float;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aVertexPosition;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aUvs;\x0a\x20\x20\x20\x20uniform\x20mat3\x20translationMatrix;\x0a\x20\x20\x20\x20uniform\x20mat3\x20projectionMatrix;\x0a\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x0a\x0a\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20vUvs\x20=\x20aUvs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20vec4((projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x20\x20\x20\x20}','frame','graphics','LINEAR','/speed','lip_bottom_left','0007','preloadVcubeFile','setNetworkChange','_currentTime','_cache','handleSpriteSheet','split','column-rule-width','beta_','0002','now','prototype','opacity','-webkit-margin-before-collapse','buffer','__proto__','invalid\x20zip\x20data','objectStoreNames','emit','justify-self','TextureMatrix','defaultFragmentShader','readPixels','DARKEN','/.aegis.offline.log','detectId','left_eye_center','0px','nose_bridge4','flush','then','shader','failed','ontimeout','Data','downloadFileCompleteError','createObjectURL','maskSprite','Require\x20\x22input\x22\x20or\x20\x22camera\x22\x20paramate','_intensityDarkCircle','margin-left','touch-action','61,76,61,74,61,72,5f,61,72','net6g','_worldID','hide','border-bottom-right-radius','none','ortographic','shared','blendMode','_backdropActive','text-shadow','appendChild','ms\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20','view','appId','common_cache','options','isPrimary','无权访问此接口,请确认License版本信息','?id=1085&msg[0]=','eventsList','processData','$getConfig','mkdir','recording','getDistanceOfTwoPoints','&from=','optionalAccess','touchcancel','containsPoint','11dGDuer','a_de','AbstractBatchRenderer','readwrite','calculateTrimmedVertices','mapQuad','IDENTITY','defaultLevel','11851THAeqH','res','SDKVersion','_drawCallPool','host','caption-side','contour_left3','processLipEdge','AJAX_ERROR','generateLog','Symbol.iterator\x20is\x20not\x20defined.','others','removeFromCache','all\x200s\x20ease\x200s','没有摄像头权限,请到设置-隐私中开启相关权限','meta','currentResult','reportPv','_anchor','native','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20retcode:\x20','\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec2\x20p\x20=\x20vTextureCoord;\x0a\x20\x20p.x\x20=\x201.0\x20-\x20p.x;\x0a\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20p);\x0a\x20\x20gl_FragColor\x20=\x20color;\x0a}\x0a','npmAlpha','BATCHABLE_SIZE','marker-start','REPEAT','-webkit-box-direction','NEAREST','\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec2\x20p\x20=\x20vTextureCoord;\x0a\x20\x20p.y\x20=\x201.0\x20-\x20p.y;\x0a\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20p);\x0a\x20\x20gl_FragColor\x20=\x20color;\x0a}\x0a','copyFrom','uSampler','hackReq','_sy','hideLoading','whiten','rgb(255,\x20255,\x20255)','nose_bridge3','NONE','require\x20paramter:\x20id','lastIndexOf','exist','_canvas','enableVertexAttribArray','border-image-slice','random','face\x20detect\x20stop\x20failed','cancel','getUniforms','onTouchEnd','canUse','`,\x20error\x20is:\x20','trigger','bind','init','IMAGE','setObjectRenderer','pitch','worker','onNetworkStatusChange','max','frame3','toggleOccluder','_currentLocalID','isArray','removeChild','set','function','drawImage','filter','projection','getErrorType','getEffectList','未捕获异常','checkAndClearOldFileCache','download','row','addConfig','checkSupport','one','_texture','getFullYear','lang','Image','source-over','onCustomRendererEvent','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20','getZipDataPath','_beautifies','stroke-miterlimit','stepEnd','legacy','column-gap','miter','yaw','nonzero','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20','拉取远程bin','The\x20camera\x20or\x20microphone\x20is\x20disconnected.\x20Please\x20refresh','realHeight','clone','points','Filter','setToMult','dataPaths','timeOrigin','outside','Normal','toStringTag','/ar','authorize','1024','overflow-x','stroke-width','ms\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20','_lastUniforms','report','getNetworkType','min','signature','teethWhiten','speedLogPipeline','column-span','INPUT_ERROR','reportTime:\x20second\x20param\x20must\x20be\x20number','push','REQUEST_FAIL','contentType','setBeauty','hackCloudReq','mix-blend-mode','Graphics','AJAX_ERROR:\x20downloadFile\x20','getMonth','publishSpeedLog','INFO_ALL','detectFace','defaultAnchor','grid-row-start','detected','image','0006','initDataMap','unzip','AsyncFunction','transition-property','affine','initialized','setAttributeNS','rawEvent','getUniformLocation','DONE','defineApiProperty','effect_sticker_2d','beforeWrite','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20','get','addTrack','file','baseline-shift','onfile','fillUniforms','attrs','renderTexture','methods','Cannot\x20convert\x20first\x20argument\x20to\x20object','setToMultLegacy2','_cachedTint','defUniforms','Sprite','Spritesheet','onTouchCancel','getDataConfig','maskMatrix','0013','vec3\x20blendExclusion(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20base+blend-2.0*base*blend;\x0a}\x0a\x0avec3\x20blendExclusion(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendExclusion(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','aTextureId','justify-items','instances','left_eyebrow_center','setUniforms','AEGIS_ID','tiltX','code','timeEnd:\x20first\x20param\x20must\x20be\x20a\x20string','/offlineAuto','0010','nose_right1','userAgent','_cuid','reportTime:\x20params\x20error','-webkit-user-modify','setRequestHeader','reverseLocalOrder','Container','countInstance','getMeshVertex','_image','offset-distance','fill','bindTexture','copyTexSubImage2D','convertSubtreeTo2d','AUTH_API_FAIL','setPrototypeOf','totalFrames','onChange','getAngles','transition-timing-function','getAccountInfoSync','tileTransform','__init','onHide','read','getLogs','list-style-type','float\x20blendLighten(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20max(blend,base);\x0a}\x0a\x0avec3\x20blendLighten(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendLighten(base.r,blend.r),blendLighten(base.g,blend.g),blendLighten(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendLighten(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendLighten(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20','sdkts','android','audioRecorderStarted','-webkit-font-smoothing','withCredentials','convertSubtreeTo3d','music','TRIANGLES','MOUTH_LOWER','cameraContext','5.0\x20(','loadend','The\x20current\x20WeChat\x20version\x20does\x20not\x20support\x20it.\x20Please\x20upgrade\x20and\x20try\x20again','encode','tagName','setMinCutoff','-webkit-border-horizontal-spacing','precision\x20lowp\x20float;\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20sampler2D\x20faceMask;\x0avarying\x20lowp\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20int\x20width;\x0auniform\x20int\x20height;\x0a\x0a//\x20uniform\x20float\x20intensity;\x0a\x0afloat\x20normpdf(in\x20float\x20x,\x20in\x20float\x20sigma)\x0a{\x0a\x09return\x200.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;\x0a}\x0a\x0afloat\x20normpdf3(in\x20vec3\x20v,\x20in\x20float\x20sigma)\x0a{\x0a\x09return\x200.39894*exp(-0.5*dot(v,v)/(sigma*sigma))/sigma;\x0a}\x0a\x0a\x0a//\x20双边滤波\x0avec3\x20bilateral(in\x20vec2\x20coordinate)\x20{\x0a\x20\x20\x20\x20const\x20float\x20SIGMA\x20=\x2016.;\x0a\x20\x20\x20\x20const\x20float\x20BSIGMA\x20=\x209.;\x0a\x20\x20\x20\x20//\x20const\x20int\x20MSIZE\x20=\x205;\x0a\x20\x20\x20\x20const\x20int\x20mSize\x20=\x2016;\x0a\x0a\x20\x20\x20\x20//\x20float\x20c\x20=\x20getMaskColor(coordinate).a;\x0a\x0a\x20\x20\x20\x20vec3\x20color\x20=\x20texture2D(uSampler,\x20coordinate).rgb;\x0a\x20\x20\x20\x20const\x20int\x20kSize\x20=\x20(mSize-1)/2;\x0a\x20\x20\x20\x20float\x20kernel[mSize];\x0a\x20\x20\x20\x20vec3\x20final_alpha\x20=vec3(0.);\x0a\x20\x20\x20\x20float\x20Z\x20=\x200.;\x0a\x09for\x20(int\x20j\x20=\x200;\x20j\x20<=\x20kSize;\x20++j)\x0a\x09{\x0a\x09\x09kernel[kSize+j]\x20=\x20kernel[kSize-j]\x20=\x20normpdf(float(j),\x20SIGMA);\x0a\x09}\x0a\x0a\x20\x20\x20\x20vec3\x20cc;\x0a\x09float\x20factor;\x0a\x09float\x20bZ\x20=\x201.0/normpdf(0.0,\x20BSIGMA);\x0a\x0a\x09//read\x20out\x20the\x20texels\x0a\x09for\x20(int\x20i=-kSize;\x20i\x20<=\x20kSize;\x20++i)\x0a\x09{\x0a\x09\x09for\x20(int\x20j=-kSize;\x20j\x20<=\x20kSize;\x20++j)\x0a\x09\x09{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec3\x20ccc\x20=\x20texture2D(uSampler,\x20coordinate\x20+\x20vec2(\x20float(i)\x20/\x20float(width),\x20float(j)\x20/\x20float(height)\x20)).rgb;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cc\x20=\x20ccc;\x0a\x09\x09\x09factor\x20=\x20normpdf3(cc-color,\x20BSIGMA)*bZ*kernel[kSize+j]*kernel[kSize+i];\x0a\x09\x09\x09Z\x20+=\x20factor;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20final_alpha\x20+=\x20factor\x20*\x20ccc;\x0a\x09\x09}\x0a\x09}\x0a\x20\x20\x20\x20return\x20final_alpha\x20/\x20Z;\x0a}\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20float\x20mask\x20=\x20texture2D(faceMask,\x20vTextureCoord).r;\x0a\x0a\x20\x20\x20\x20float\x20i\x20=\x20mask;\x0a\x20\x20\x20\x20vec3\x20original\x20=\x20texture2D(uSampler,\x20vTextureCoord).rgb;\x0a\x0a\x20\x20\x20\x20if\x20(i\x20==\x200.)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(original,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20vec3\x20color\x20=\x20bilateral(vTextureCoord).rgb;\x0a\x20\x20\x20\x20vec4\x20c\x20=\x20texture2D(faceMask,\x20vTextureCoord);\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20vec3\x20res\x20=\x20color\x20*\x20i\x20+\x20original\x20*\x20(1.\x20-\x20i);\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(res.rgb,\x201.0);\x0a\x20\x20\x20\x20return;\x0a\x20\x20\x20\x0a\x20}','translationMatrix','global','aid','flex-shrink','right_eye_bottom','firstPaint','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20','backdropUniformName','TRACE','atan2','_cx','INFO','eventUrl','playing','ios','high','addAttribute','background','AUTHORIZE_TIMEOUT','0003','flex-basis','_intensityNasolabialFolds','Canvas','sent','select','lift','showHeight','next','widows','eye','HTMLImageElement','pointerdown','attribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0auniform\x20mat3\x20projectionMatrix;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main(void)\x0a{\x0a\x20\x20gl_Position\x20=\x20vec4((projectionMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x20\x20vTextureCoord\x20=\x20aTextureCoord;\x0a}','MOUTH_UPPER','number','border-bottom-width','scope.camera','VR人像','top','shiftKey','face.png','Require\x20\x22input\x22\x20or\x20\x22camera\x22\x20parameter','createSprite','src','pixi-picture:\x20you\x20are\x20trying\x20to\x20use\x20Blend\x20Filter\x20on\x20main\x20framebuffer!\x20That\x20wont\x20work.','syncUniforms','aegisPlugin','getAvatarList','convertTo3d',')\x20AppleWebKit/601.1.46\x20(KHTML,\x20like\x20Gecko)\x20Version/9.0\x20Mobile/13B143\x20Safari/601.1','urlHandler','publishErrorLog','getOptimalFilterTexture','payload','62,61,63,6b,67,72,6f,75,6e,64','random\x20must\x20in\x20[0,\x201],\x20default\x20is\x201.','override','model','SetDataReportUrl','displayObjectUpdateTransform','render\x20fail','lip_bottom_center_target','_dataMap','symbol','LogType\x20has\x20discard,\x20please\x20use\x20logType','OFFLINE','_glTextures','onreadystatechange','add\x20child\x20fail','\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20uniform\x20sampler2D\x20rgbaTexture;\x0a\x20\x20\x20\x20\x20\x20uniform\x20float\x20height;\x0a\x20\x20\x20\x20\x20\x20uniform\x20float\x20xUnit;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vTex;\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20coeffsY\x20=\x20vec4(0.299,\x200.587,\x200.114,\x200.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20coeffsU\x20=\x20vec4(-0.14713,\x20-0.28886,\x200.436,\x200.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20coeffsV\x20=\x20vec4(0.615,\x20-0.515,\x20-0.100,\x200.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20float\x20V_DIVIDE_LINE\x20=\x205.0\x20/\x206.0;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20float\x20U_DIVIDE_LINE\x20=\x201.0\x20/\x201.5;\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(vTex.y\x20<=\x20U_DIVIDE_LINE)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20pos0\x20=\x20vec2(vTex.x\x20-\x201.5\x20*\x20xUnit,\x20vTex.y\x20*\x201.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor.r\x20=\x20coeffsY.a\x20+\x20dot(coeffsY.rgb,\x20texture2D(rgbaTexture,\x20pos0).rgb);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20pos1\x20=\x20vec2(vTex.x\x20-\x200.5\x20*\x20xUnit,\x20vTex.y\x20*\x201.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor.g\x20=\x20coeffsY.a\x20+\x20dot(coeffsY.rgb,\x20texture2D(rgbaTexture,\x20pos1).rgb);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20pos2\x20=\x20vec2(vTex.x\x20+\x200.5\x20*\x20xUnit,\x20vTex.y\x20*\x201.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor.b\x20=\x20coeffsY.a\x20+\x20dot(coeffsY.rgb,\x20texture2D(rgbaTexture,\x20pos2).rgb);\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20pos3\x20=\x20vec2(vTex.x\x20+\x201.5\x20*\x20xUnit,\x20vTex.y\x20*\x201.5);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor.a\x20=\x20coeffsY.a\x20+\x20dot(coeffsY.rgb,\x20texture2D(rgbaTexture,\x20pos3).rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(vTex.y\x20<=\x20V_DIVIDE_LINE)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20offsetY\x20=\x201.0\x20/\x203.0\x20/\x20height;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20texCoord;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(vTex.x\x20<=\x200.5)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20texCoord\x20=\x20vec2(vTex.x\x20*\x202.0,\x20(vTex.y\x20-\x20U_DIVIDE_LINE)\x20*\x202.0\x20*\x203.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20texCoord\x20=\x20vec2((vTex.x\x20-\x200.5)\x20*\x202.0,\x20((vTex.y\x20-\x20U_DIVIDE_LINE)\x20*\x202.0\x20+\x20offsetY)\x20*\x203.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color0\x20=\x20texture2D(rgbaTexture,\x20texCoord);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color1\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x202.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color2\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x204.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color3\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x206.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u0\x20=\x20coeffsU.a\x20+\x20dot(coeffsU.rgb,\x20color0.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u1\x20=\x20coeffsU.a\x20+\x20dot(coeffsU.rgb,\x20color1.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u2\x20=\x20coeffsU.a\x20+\x20dot(coeffsU.rgb,\x20color2.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u3\x20=\x20coeffsU.a\x20+\x20dot(coeffsU.rgb,\x20color3.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(u0,\x20u1,\x20u2,\x20u3);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20offsetY\x20=\x201.0\x20/\x203.0\x20/\x20height;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20texCoord;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(vTex.x\x20<=\x200.5)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20texCoord\x20=\x20vec2(vTex.x\x20*\x202.0,\x20(vTex.y\x20-\x20V_DIVIDE_LINE)\x20*\x202.0\x20*\x203.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20texCoord\x20=\x20vec2((vTex.x\x20-\x200.5)\x20*\x202.0,\x20((vTex.y\x20-\x20V_DIVIDE_LINE)\x20*\x202.0\x20+\x20offsetY)\x20*\x203.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color0\x20=\x20texture2D(rgbaTexture,\x20texCoord);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color1\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x202.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color2\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x204.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color3\x20=\x20texture2D(rgbaTexture,\x20texCoord\x20+\x20vec2(xUnit\x20*\x206.0,\x200.));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u0\x20=\x20coeffsV.a\x20+\x20dot(coeffsV.rgb,\x20color0.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u1\x20=\x20coeffsV.a\x20+\x20dot(coeffsV.rgb,\x20color1.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u2\x20=\x20coeffsV.a\x20+\x20dot(coeffsV.rgb,\x20color2.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20u3\x20=\x20coeffsV.a\x20+\x20dot(coeffsV.rgb,\x20color3.rgb);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(u0,\x20u1,\x20u2,\x20u3);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20\x20\x20}','lastRawValue','attached','isFrontFace','setBeta','getRealSize','value','0%\x200%','timeEnd','drawArrays','reverse','length','https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin','webar-db','ondata','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20','filename\x20too\x20long','enable','live','checkReady','removeBeauty','radiusY','publishNetWorkError','RET_ERROR','_affine','TIME','callContainer','LOADING','_beautify','createOffscreenCanvas','wx\x20init\x20face\x20fail','writable','disable','256','startsWith','near','bufferData','lasttime','parentNode','texSubImage2D','music\x20separation\x20fail','forehead_top_center','setEffect','touchmove','beforeRequest','statusText','tempFilePath','camera\x20start\x20record\x20timeout','texParameteri','-webkit-locale','_activeProjection','offsetHeight','warn','SIGNATURE_TIMEOUT','getCommonFilter','applyInverse','-webkit-box-lines','font-variant-caps','texBuff','__init6','-webkit-mask-origin','getFileFromCache','isReadyPromise','The\x20authentication\x20parameter\x20\x22appId\x22\x20is\x20missing','LinearBurn','screenY','recordStartTime','cloneNode','unknown\x20cpr\x20type\x20','_isConnectedToTicker','skin_gray.png','run','输入不合法,\x20远程链接只支持输入图片类型','vertical-right','getRecorderManager','\x0avarying\x20vec3\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20vec4\x20uColor;\x0auniform\x20mat3\x20uMapCoord;\x0auniform\x20vec4\x20uClampFrame;\x0auniform\x20vec2\x20uClampOffset;\x0a\x0avoid\x20main(void)\x0a{\x0avec2\x20coord\x20=\x20mod(vTextureCoord.xy\x20/\x20vTextureCoord.z\x20-\x20uClampOffset,\x20vec2(1.0,\x201.0))\x20+\x20uClampOffset;\x0acoord\x20=\x20(uMapCoord\x20*\x20vec3(coord,\x201.0)).xy;\x0acoord\x20=\x20clamp(coord,\x20uClampFrame.xy,\x20uClampFrame.zw);\x0a\x0avec4\x20sample\x20=\x20texture2D(uSampler,\x20coord);\x0agl_FragColor\x20=\x20sample\x20*\x20uColor;\x0a}\x0a','rotate','_frame','Failed\x20to\x20create\x20the\x20recorder','MAX_SAFE_INTEGER','onPageNotFound','className','video','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20method:\x20POST\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20','vertexData','Loader','输入图片不合法','start','input_type','_wasm','_renderFunc','onprogress','_takePhoto','live-pusher\x20width\x20or\x20height\x20cannot\x20is\x20not\x20support.\x20please\x20use\x20Arsdk.getRealSize','body','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20params:\x20','openType','1003','patch','design:paramtypes','overflow-anchor','useDefaults','_projID','indexOf','app3d','mergeTracks','left','precision\x20highp\x20float;\x0aattribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0auniform\x20mat3\x20translationMatrix;\x0auniform\x20mat3\x20uTextureMatrix;\x0a\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main(void)\x0a{\x0agl_Position.xyw\x20=\x20projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0);\x0agl_Position.z\x20=\x200.0;\x0a\x0avTextureCoord\x20=\x20(uTextureMatrix\x20*\x20vec3(aTextureCoord,\x201.0)).xy;\x0a}\x0a','Out\x20of\x20memory!','audio','The\x20rendering\x20took\x20too\x20long.\x20Try\x20reducing\x20the\x20resolution\x20or\x20refreshing\x20the\x20page','input','filePath','readyState','clear','wechatAppId','off','USER_DATA_PATH','ALPHA_MODES','_dirtyId','-webkit-print-color-adjust','recordRender','0\x20fill','Substract','wx.cloud.','max-height','ext2','loop','extractDataSource','/collect/events','plugins','grid-row-end','rate','outputFrame','toArray','list-style-position','UNPACK','sessionID','PROJ','backface-visibility','wx.cloud.callFunction.','avatar_vr','uploadFileCompleteError','_initCommonResLoader','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20tempFilePath:\x20','strokeStyle','-webkit-mask-box-image-source','bufferchange','_partialDermabrasion','32220vpVTsW','filterLevel','statusCode','createVKSession','children','loadedIdMap','catch','inputClamp','removeExclusiveFilter','EVENT','createBuffer','no-drag','loaded','\x20already\x20exists','sdkError','setPagePV','funcCode','_recursivePostUpdateTransform','LINEAR_DODGE','once','transition-duration','vertexSrc','isPowerOfTwo','Failed\x20to\x20start\x20the\x20camera','typedArrayToBuffer','distortion','lutSkin','_quatDirtyId','-webkit-writing-mode','__wbindgen_malloc','/content.json','This\x20browser\x20is\x20not\x20supported.\x20If\x20Chrome\x20is\x20used,\x20enable\x20hardware\x20acceleration\x20for\x20the\x20browser','getCenterOfTwoPoints','withDataPaths','getSystemInfo','no\x20callback','byteOffset','MIPMAP_MODES','dermabrasion','ObjectRenderer','callbacks','currentTime','audioRecorder','\x0aattribute\x20vec2\x20aVertexPosition;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0a\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20vec4\x20inputSize;\x0auniform\x20vec4\x20outputFrame;\x0auniform\x20vec2\x20flipY;\x0a\x0avec4\x20filterVertexPosition(\x20void\x20)\x0a{\x0a\x20\x20\x20\x20vec2\x20position\x20=\x20aVertexPosition\x20*\x20max(outputFrame.zw,\x20vec2(0.))\x20+\x20outputFrame.xy;\x0a\x0a\x20\x20\x20\x20return\x20vec4((projectionMatrix\x20*\x20vec3(position,\x201.0)).xy,\x200.0,\x201.0);\x0a}\x0a\x0avec2\x20filterTextureCoord(\x20void\x20)\x0a{\x0a\x20\x20\x20\x20return\x20aVertexPosition\x20*\x20(outputFrame.zw\x20*\x20inputSize.zw);\x0a}\x0a\x0avoid\x20main(void)\x0a{\x0a\x20\x20\x20\x20gl_Position\x20=\x20filterVertexPosition();\x0a\x20\x20\x20\x20vTextureCoord\x20=\x20filterTextureCoord();\x0a\x20\x20\x20\x20vTextureCoord.y\x20=\x20flipY.x\x20+\x20flipY.y\x20*\x20vTextureCoord.y;\x0a}\x0a\x0a','alphaMaskPool','AUTH_FAIL','sin','1427930fInexA','platform','invalid\x20length/literal','_intensityEye','_focus','You\x20need\x20to\x20override\x20\x22request\x22\x20method','resize','detail','musicPath','MEDIA_STREAM','-webkit-text-orientation','add','changeLiveFps','\x0avarying\x20vec3\x20vMaskCoord;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20sampler2D\x20mask;\x0auniform\x20float\x20alpha;\x0auniform\x20vec4\x20maskClamp;\x0a\x0avoid\x20main(void)\x0a{\x0avec2\x20uv\x20=\x20vMaskCoord.xy\x20/\x20vMaskCoord.z;\x0a\x0afloat\x20clip\x20=\x20step(3.5,\x0a\x20\x20\x20\x20step(maskClamp.x,\x20uv.x)\x20+\x0a\x20\x20\x20\x20step(maskClamp.y,\x20uv.y)\x20+\x0a\x20\x20\x20\x20step(uv.x,\x20maskClamp.z)\x20+\x0a\x20\x20\x20\x20step(uv.y,\x20maskClamp.w));\x0a\x0avec4\x20original\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0avec4\x20masky\x20=\x20texture2D(mask,\x20uv);\x0a\x0aoriginal\x20*=\x20(masky.r\x20*\x20masky.a\x20*\x20alpha\x20*\x20clip);\x0a\x0agl_FragColor\x20=\x20original;\x0a}\x0a','TEXTURE_MAG_FILTER','_configCenter','setToRotationTranslationScale','getBounds','FLOAT','-webkit-app-region','MEDIA_ERROR','href','LIGHTEN','attribute\x20vec2\x20aVertex;attribute\x20vec2\x20aUV;varying\x20vec2\x20vTex;void\x20main(void)\x20{\x20\x20gl_Position\x20=\x20vec4(aVertex,\x200.0,\x201.0);\x20\x20vTex\x20=\x20aUV;}','content','sourceFrame','_playing','_keypoints','_textures','no\x20face\x20detected','auto\x20/\x20auto','mirror','file://','remove','flex-direction','__esModule','需要重新进入页面使授权生效','worldTransform','GET','touchend','-webkit-appearance','addBeauty','scale3d','color-interpolation-filters','REPORT','stopFaceDetect','output','delete\x20local\x20cache\x20fail','float\x20blendLighten(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20max(blend,base);\x0a}\x0afloat\x20blendDarken(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20min(blend,base);\x0a}\x0afloat\x20blendPinLight(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend<0.5)?blendDarken(base,(2.0*blend)):blendLighten(base,(2.0*(blend-0.5)));\x0a}\x0a\x0avec3\x20blendPinLight(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendPinLight(base.r,blend.r),blendPinLight(base.g,blend.g),blendPinLight(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendPinLight(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendPinLight(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','Sticker','average','requestFrame','-webkit-text-security','intensityDarkCircle','infoType:\x20behaviorBacktracking\x0adataType:\x20tapEvent','_width','getContext','%cThe\x20above\x20error\x20occurred\x20in\x20the\x20process\x20of\x20initializing\x20Aegis,\x20which\x20will\x20affect\x20your\x20normal\x20use\x20of\x20Aegis.\x0aIt\x20is\x20recommended\x20that\x20you\x20contact\x20us\x20for\x20feedback\x20and\x20thank\x20you\x20for\x20your\x20support.','log','border-image-repeat','uvRespectAnchor','wx.cloud.callContainer.','flex-grow','globalUniforms','clearCache','indices','VERSION','_far','connectCallback','none\x20/\x20none\x20/\x20none','clip-path','pixels','getDepth','roundFrame','vertexDirty','usm','uniformData','updateLocalTransform','grid-template-rows','alpha','_textureTrimmedID','takePhotoPromises','kind','/0.wasm','toString','getElementsByTagName','text-size-adjust','strokeColor','map','VERTEX_SHADER','8.0.30','has','splice','appLaunch','onUnload','SET_DATA','head','_ready','_intensity','net5g','speak','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20url:\x20','-webkit-box-flex','mapSprite','getAttribute','setBackground','vec3\x20blendMultiply(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20base*blend;\x0a}\x0a\x0a\x0avec3\x20blendMultiply(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendMultiply(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','webpackChunktencentcloud_webar','\x0avarying\x20vec2\x20vTextureCoord;\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20sampler2D\x20lut;\x0auniform\x20lowp\x20float\x20intensity;\x0auniform\x20lowp\x20float\x20parentIntensity;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20vTextureCoord.xy);\x0a\x0a\x20\x20\x20\x20highp\x20float\x20blueColor\x20=\x20color.b\x20*\x2063.0;\x0a\x20\x20\x0a\x20\x20\x20\x20//向下取值\x0a\x20\x20\x20\x20highp\x20vec2\x20quad1;\x0a\x20\x20\x20\x20quad1.y\x20=\x20floor(floor(blueColor)\x20/\x208.0);\x20\x0a\x20\x20\x20\x20quad1.x\x20=\x20floor(blueColor)\x20-\x20(quad1.y\x20*\x208.0);\x0a\x20\x20\x0a\x20\x20\x20\x20//向上取值\x0a\x20\x20\x20\x20highp\x20vec2\x20quad2;\x0a\x20\x20\x20\x20quad2.y\x20=\x20floor(ceil(blueColor)\x20/\x208.0);\x20\x0a\x20\x20\x20\x20quad2.x\x20=\x20ceil(blueColor)\x20-\x20(quad2.y\x20*\x208.0);\x0a\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20//根据小正方形格子和RG通道,获取纹理坐标,每个大格子的大小:1/8=0.125,每个小格子的大小:1/512\x0a\x20\x20\x20\x20highp\x20vec2\x20texPos1;\x0a\x20\x20\x20\x20texPos1.x\x20=\x20(quad1.x\x20*\x200.125)\x20+\x200.5/512.0\x20+\x20((0.125\x20-\x201.0/512.0)\x20*\x20color.r);\x0a\x20\x20\x20\x20texPos1.y\x20=\x20(quad1.y\x20*\x200.125)\x20+\x200.5/512.0\x20+\x20((0.125\x20-\x201.0/512.0)\x20*\x20color.g);\x0a\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20highp\x20vec2\x20texPos2;\x0a\x20\x20\x20\x20texPos2.x\x20=\x20(quad2.x\x20*\x200.125)\x20+\x200.5/512.0\x20+\x20((0.125\x20-\x201.0/512.0)\x20*\x20color.r);\x0a\x20\x20\x20\x20texPos2.y\x20=\x20(quad2.y\x20*\x200.125)\x20+\x200.5/512.0\x20+\x20((0.125\x20-\x201.0/512.0)\x20*\x20color.g);\x0a\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20lowp\x20vec4\x20newColor1\x20=\x20texture2D(lut,\x20texPos1);\x0a\x20\x20\x20\x20lowp\x20vec4\x20newColor2\x20=\x20texture2D(lut,\x20texPos2);\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20lowp\x20vec3\x20newColor\x20=\x20mix(newColor1.rgb,\x20newColor2.rgb,\x20fract(blueColor));\x0a\x0a\x20\x20\x20\x20vec3\x20textureColor\x20=\x20mix(color.rgb,\x20newColor,\x20intensity\x20*\x20parentIntensity\x20*\x201.0);\x0a\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(textureColor,\x201.0);\x0a}\x0a','/collect','animation-timing-function','setAlpha','gotoAndPlay','VITALS','-webkit-box-reflect','authSetting','mask-type','freq\x20should\x20be\x20>0','3D\x20Effect','refreshContext','Failed\x20to\x20start\x20recording','useProgram','initFaceDetect','valid','insertBefore','ar\x20sdk\x20fetch\x20auth\x20error','meshVertex','线性减淡','PROMISE_ERROR','precision\x20mediump\x20float;\x0avarying\x20vec2\x20vUvs;\x0auniform\x20sampler2D\x20falingwen;\x0auniform\x20sampler2D\x20heiyanquan;\x0auniform\x20float\x20intensityNasolabialFolds;\x0auniform\x20float\x20intensityDarkCircle;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec4\x20color\x20=\x20texture2D(falingwen,\x20vUvs)\x20*\x20intensityNasolabialFolds\x20+\x20texture2D(heiyanquan,\x20vUvs)\x20*\x20intensityDarkCircle;\x0a\x20\x0a\x20\x20gl_FragColor\x20=\x20vec4(color.a,\x200.,0.,1.);\x0a}','缺少输入,\x20请设置input或camera参数','loadstart','requestAnimationFrame','_parentID','events','logTime','checkIsBeauti','language','text-decoration-skip-ink','uColor','failHandler','cacheInverse','none\x20solid\x20rgb(0,\x200,\x200)','originApi','glMatrixMat4Multiply','waitUntilPreload','program','trimmedCulledByFrustrum','extra\x20field\x20too\x20long','paths','filename','Ticker','forehead_right','onloadend','readJSON','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20param:\x20','输入不合法,\x20请传input或camera参数','The\x20context\x20is\x20lost.\x20Please\x20reinitialize\x20the\x20SDK\x20again','removeEventListener','_autoUpdate','getPusherContent','documentElement','reportLoadPackageSpeed','特效加载失败','decoder\x20decode\x20ended','zip\x20处理','readFile','localTransform','firstPaintTiming','unicode-bidi','createCanvas','decoder\x20error','stop','grid-template-areas','from','publishSocketError','setFileCache','writeFile','bindBuffer','readystatechange','extension','normal','ceil','animationSpeed','development','reportRequest','lip_bottom_right','onloadstart','nose_right2','WORKER','open','throw','setWatermark','渲染耗时大,请尝试减小分辨率或刷新页面','getAllEffectList','evaluateScript','float\x20blendScreen(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x201.0-((1.0-base)*(1.0-blend));\x0a}\x0a\x0avec3\x20blendScreen(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendScreen(base.r,blend.r),blendScreen(base.g,blend.g),blendScreen(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendScreen(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendScreen(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','\x20\x0a\x20','_reshape','去设置','TEMP_MATRIX','BeautifyOptions','4928980tJLyiF','instanceCount','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20retcode:\x20','preload','utils','onConfigChange','aVertex','connectSocket','getOwnPropertyDescriptor','stroke-linejoin','apiName','lifeCycle','stroke-dasharray','uniformCode','1001','WARN','border-box','sendPipeline','premultiplyBlendMode','float\x20blendSubstract(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20max(base+blend-1.0,0.0);\x0a}\x0a\x0avec3\x20blendSubstract(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20max(base+blend-vec3(1.0),vec3(0.0));\x0a}\x0a\x0avec3\x20blendSubstract(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendSubstract(base,\x20blend)\x20*\x20opacity\x20+\x20blend\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','mtime','vertical-align','stroke-opacity','getTime','STOP_REACORD_FAIL','videoRecorder\x20destroy\x20error','_loadingMap','set\x20effect\x20error','premultiplyTint','getDate','cheekbone','setMesh','Renderer','_setFilter','Preview','png','contour_left10','euler','exsureAuthData','Failed\x20to\x20load\x20the\x20effects','stepStart','pushBuffer','filterWithAlpha','grid-row-gap','sendSocketMessage','pre','$walk','offline','mem','inputSize','back','memory','toUpperCase','errcode','column-width','cameraMode','utf8','proj','setAxisX','_flipY','invalid\x20block\x20type','4dCJfqY','-webkit-line-break','altKey','_target','max-width','getFilename','blendMode_1','pointArray','context','min-width','uClampOffset','position','Class\x20extends\x20value\x20','_detected','getBuffer','visibilitychange','alpha\x20should\x20be\x20in\x20(0.0.,\x201.0]','当前浏览器特性支持不足,可能会出现卡顿情况,请使用新版\x20Chrome/Safari/微信体验','margin-bottom','capture','-webkit-box-orient','lipsTriangulation','angles','CONTEXT_UID','front','bubbles','updateTexture','lip_top_center','_initWasmWrapper','comment','landmarks','other','mode','scope','IMAGE_ERROR','VIVID_LIGHT','.bin','pageRouteTiming','world','pos','collapse','setNetworkType','size','isLoaded','onLaunch','grid-column-end','changedTouches','Geometry','IMG','aVertexPosition','bindAndClearTexArray','getOwnPropertyDescriptors','framebuffer','system','renderSprite','_setConfig','addOuterLandmarks','tick','right_eye_center','_startTime','_shader','glMatrixMat4Invert','_loader','defineProperties','512','batch2d','reportPerformance','/offlineLog','onComplete','html','getBoundingClientRect','disc\x20outside\x20none','PinLight','shave','forceMaxTextures','border-image-width','_filter','transform-origin','authScope','set\x20effect\x20no\x20meshVertex!','_uvs','_transformTrimmedID','identity','pivot3d','viewport','MAX_TEXTURES','clearColor','identifier','getTracks','线性加深','START_REACORD_FAIL','输入不合法','render','AUTH_NEED_RELOAD_PAGE','BEFORE_PROJ','403\x20forbidden','prefixHandler','getFps','onResult','copyTo2dOr3d','createElement','bottom','luminance','whiten.png','ColorBurn','1006','border-top-color','_enabled','draw','hwTimestamp','_error','common_cache_domain','effect_makeup','https://aegis.qq.com','word-break','DEFAULT','addCallback','WHITE_LIST','inputNode','TRIANGLE_FAN','culledByFrustrum','auto\x20/\x20auto\x20/\x20auto\x20/\x20auto','apply','AJAX_ERROR:\x20cloud.callFunction:fail\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20duration:\x20','time:\x20first\x20param\x20must\x20be\x20a\x20string','touches','requesting','hackNetWork','__version__','LINEAR_LIGHT','currentLocation','offlineLog','lineStyle','float\x20blendDarken(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20min(blend,base);\x0a}\x0a\x0avec3\x20blendDarken(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendDarken(base.r,blend.r),blendDarken(base.g,blend.g),blendDarken(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendDarken(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendDarken(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','preloadEffects','response','style','Require\x20a\x20valid\x20value\x20(0-1)\x20for\x20\x22intensity\x22\x20(the\x20default\x20value\x20is\x201)','export','intensities','ctrlKey','floor','lineWidth','daily','setConfig','EffectId','listenError','_buffer','startAudioRecorder','color','exports','activeState','orig','_initMainLoop','createObjectStore','json','inputPixel','eye.png','transform','getConfigByKeys','sprite','ms\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20data:\x20','left_eye_bottom','nowrap','STATIC_DRAW','RGBA','indexedDB','https://webar-static.tencent-cloud.com/ar-sdk/resources','radius','ratio','set-effect','fileSystem','uniforms','tag','Buffer','window','HARD_MIX','\x22:\x22function\x20','_intensityTeeth','inited','logType','cancelable','responseText','invalid\x20id','arc','API\x20not\x20accessible,\x20Please\x20confirm\x20the\x20License\x20version','authFunc','blit','pusherContext','float\x20blendColorBurn(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20(blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\x0a}\x0a\x0avec3\x20blendColorBurn(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3((base.r,blend.r),blendColorBurn(base.g,blend.g),blendColorBurn(base.b,blend.b));\x0a}\x0a\x0a\x0avec3\x20blendColorBurn(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendColorBurn(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','COLOR_DODGE','cloud','preload\x20finish:','stickers','SCRIPT_ERROR','alignment-baseline','nose_bridge6','outline-style','justify-content','seq','createLivePusherContext','put','API_RESPONSE','setBlendMode','isOverride','net3g','mat4','overrideCallFunction','TextureSystem','setExclusiveFilter','play','drawBatches','transformAABB','partialDermabrasion','vertexSize','arrayBuffer','binary','fragmentSrc','当前SDK版本过低,部分特效无法正确显示,请升级SDK版本','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20','visibilityState','getFilterList','req\x20url:\x20','VividLight','onmessage','_destroyed','scope.record','timeStamp','invoke','uMapCoord','pushWithCheck','缺少鉴权参数licenseKey','startRecord','CONSOLE_ERROR','substring','_input','calculateVertices','CANVAS','had','device','atan','onErrors','fragment','update','showWidth','POST','clientHeight','setEffectInner','macos','beforeReportSpeed','environment','LogType','abs','createCameraContext','Darken','%FUNC_NAME%','onsuccess','pow','installedPlugins','hostUrl','font-weight','uniformGroup','PAGE_NOT_FOUND_ERROR','lastestEffectIds','SET_FILTER_ERROR','fromBuffer','_events','mediaContainer','wifi','baseline','_enable','callFunction','eyeWhiten','-webkit-user-drag','precision\x20mediump\x20float;\x0avarying\x20vec2\x20vUvs;\x0auniform\x20sampler2D\x20mask;\x0auniform\x20float\x20intensity;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20vec4\x20color\x20=\x20texture2D(mask,\x20vUvs);\x0a\x20\x20color\x20=\x20vec4(color.rgb,\x20color.a)\x20*\x20intensity;\x0a\x20\x20gl_FragColor\x20=\x20color;\x0a}','checkFileCacheBlackList','6063480nHyfLr','useOriginAudio','_container','正片叠底','otherMatrix','current','pixelRatio','AXIS_X','taskPromises','apiDetail','callback','transaction','net4g','_uc','onLine','infoType:\x20behaviorBacktracking\x0adataType:\x20pageLoadAndRoute\x0apageLoadedPath:\x20','precision\x20highp\x20float;\x0avarying\x20vec2\x20vTextureCoord;\x0auniform\x20sampler2D\x20uSampler;\x0auniform\x20int\x20width;\x0auniform\x20int\x20height;\x0auniform\x20int\x20enable;\x0a\x0auniform\x20vec2\x20left_eye_center;\x0auniform\x20vec2\x20right_eye_center;\x0auniform\x20vec2\x20nose_tip;\x0auniform\x20vec2\x20contour_chin;\x0a\x0auniform\x20vec2\x20nose_bridge5;\x0auniform\x20vec2\x20contour_left4;\x0auniform\x20vec2\x20contour_left9;\x0auniform\x20vec2\x20contour_right4;\x0auniform\x20vec2\x20contour_right9;\x0auniform\x20vec2\x20contour_left10;\x0auniform\x20vec2\x20contour_right10;\x0a//\x20鼻子\x0auniform\x20vec2\x20nose_left1;\x0auniform\x20vec2\x20nose_left2;\x0auniform\x20vec2\x20nose_right1;\x0auniform\x20vec2\x20nose_right2;\x0auniform\x20vec2\x20nose_tip1;\x0auniform\x20vec2\x20nose_bottom;\x0a//\x20嘴唇\x0auniform\x20vec2\x20lip_top_left;\x0auniform\x20vec2\x20lip_top_left_target;\x0auniform\x20vec2\x20lip_top_right;\x0auniform\x20vec2\x20lip_top_right_target;\x0auniform\x20vec2\x20lip_bottom_left;\x0auniform\x20vec2\x20lip_bottom_left_target;\x0auniform\x20vec2\x20lip_bottom_right;\x0auniform\x20vec2\x20lip_bottom_right_target;\x0auniform\x20vec2\x20lip_top_center;\x0auniform\x20vec2\x20lip_top_center_target;\x0auniform\x20vec2\x20lip_bottom_center;\x0auniform\x20vec2\x20lip_bottom_center_target;\x0auniform\x20vec2\x20lip_inner_top;\x0auniform\x20vec2\x20lip_inner_bottom;\x0a//\x20额头\x0auniform\x20vec2\x20forehead_top_center;\x0auniform\x20vec2\x20eyebrow_center;\x0auniform\x20vec2\x20forehead_left;\x0auniform\x20vec2\x20left_eyebrow_center;\x0auniform\x20vec2\x20forehead_right;\x0auniform\x20vec2\x20right_eyebrow_center;\x0a//\x20眼睛\x0auniform\x20vec2\x20right_eye_top;\x0auniform\x20vec2\x20left_eye_top;\x0auniform\x20vec2\x20right_eye_bottom;\x0auniform\x20vec2\x20left_eye_bottom;\x0a//\x20瘦颧骨\x0auniform\x20vec2\x20contour_left3;\x0auniform\x20vec2\x20contour_right3;\x0auniform\x20vec2\x20nose_bridge6;\x0a\x0auniform\x20vec2\x20nose_bridge4;\x0auniform\x20vec2\x20nose_bridge3;\x0auniform\x20vec2\x20nose_bridge2;\x0auniform\x20vec2\x20nose_bridge1;\x0a\x0auniform\x20vec2\x20mouth_lower_lip_bottom;\x0a\x0auniform\x20vec2\x20chin_left;\x0auniform\x20vec2\x20chin_right;\x0a\x0auniform\x20float\x20cheekbone;\x0auniform\x20float\x20lift;\x20//\x20窄脸\x0auniform\x20float\x20shave;\x20//\x20下颌骨\x0auniform\x20float\x20eye;\x20//\x20大眼\x0auniform\x20float\x20chin;\x20//\x20下巴\x0auniform\x20float\x20nose;\x20//\x20鼻子\x0a//\x20uniform\x20float\x20noseBridge;\x0auniform\x20float\x20lip;\x20//\x20嘴唇\x0auniform\x20float\x20forehead;\x20//\x20额头\x0auniform\x20float\x20eyeBrightness;\x20//\x20亮眼\x0auniform\x20float\x20head;\x20//\x20小头\x0a\x0a//\x20曲线形变处理\x0avec2\x20curveWarp(vec2\x20textureCoord,\x20vec2\x20originPosition,\x20vec2\x20targetPosition,\x20float\x20radius)\x0a{\x0a\x20\x20\x20\x20vec2\x20offset\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20result\x20=\x20vec2(0.0);\x0a\x0a\x20\x20\x20\x20vec2\x20direction\x20=\x20targetPosition\x20-\x20originPosition;\x0a\x0a\x20\x20\x20\x20float\x20infect\x20=\x20distance(textureCoord,\x20originPosition)/radius;\x0a\x0a\x20\x20\x20\x20infect\x20=\x201.0\x20-\x20infect;\x0a\x20\x20\x20\x20infect\x20=\x20clamp(infect,\x200.0,\x201.0);\x0a\x20\x20\x20\x20offset\x20=\x20direction\x20*\x20infect;\x0a\x0a\x20\x20\x20\x20result\x20=\x20textureCoord\x20-\x20offset;\x0a\x0a\x20\x20\x20\x20return\x20result;\x0a}\x0a//\x20usm\x0avec4\x20gaussianBlur(vec2\x20uv,\x20float\x20size)\x20{\x0a\x20\x20\x20\x20const\x20float\x20Pi\x20=\x206.28318530718;\x20//\x20Pi*2\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20GAUSSIAN\x20BLUR\x20SETTINGS\x20{{{\x0a\x20\x20\x20\x20const\x20float\x20Directions\x20=\x2016.0;\x20//\x20BLUR\x20DIRECTIONS\x20(Default\x2016.0\x20-\x20More\x20is\x20better\x20but\x20slower)\x0a\x20\x20\x20\x20const\x20float\x20Quality\x20=\x204.0;\x20//\x20BLUR\x20QUALITY\x20(Default\x204.0\x20-\x20More\x20is\x20better\x20but\x20slower)\x0a\x20\x20\x20\x20float\x20Size\x20=\x20size;\x20//\x20BLUR\x20SIZE\x20(Radius)\x0a\x20\x20\x20\x20//\x20GAUSSIAN\x20BLUR\x20SETTINGS\x20}}}\x0a\x20\x20\x20\x0a\x20\x20\x20\x20vec2\x20Radius\x20=\x20Size/vec2(float(width),\x20float(height));\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Pixel\x20colour\x0a\x20\x20\x20\x20vec4\x20Color\x20=\x20texture2D(uSampler,\x20uv);\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Blur\x20calculations\x0a\x20\x20\x20\x20for(\x20float\x20d=0.0;\x20d<Pi;\x20d+=Pi/Directions)\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20for(float\x20i=1.0/Quality;\x20i<=1.0;\x20i+=1.0/Quality)\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Color\x20+=\x20texture2D(\x20uSampler,\x20uv+vec2(cos(d),sin(d))*Radius*i);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Output\x20to\x20screen\x0a\x20\x20\x20\x20Color\x20/=\x20Quality\x20*\x20Directions;\x0a\x20\x20\x20\x20return\x20Color;\x0a}\x0avec4\x20usm(vec2\x20vTextureCoord,\x20float\x20factor)\x20{\x0a\x20\x20\x20\x20vec4\x20originColor\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0a\x20\x20\x20\x20//\x20if\x20(factor\x20==\x200.)\x20{\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return\x20originColor;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20vec4\x20gaussianColor\x20=\x20gaussianBlur(vTextureCoord,\x203.0);\x0a\x20\x20\x20\x20return\x20gaussianColor\x20*\x20-factor\x20+\x20originColor\x20*\x20(1.0\x20+\x20factor);\x0a}\x0a\x0a\x0a//\x20大眼处理\x0avec2\x20enlargeEye(vec2\x20currentCoordinate,\x20vec2\x20circleCenter,\x20float\x20radius,\x20float\x20intensity)\x0a{\x0a\x20\x20\x20\x20//\x20todo:改成椭圆形的放大\x0a\x20\x20\x20\x20float\x20currentDistance\x20=\x20distance(currentCoordinate,\x20circleCenter);\x0a\x20\x20\x20\x20float\x20weight\x20=\x20currentDistance\x20/\x20radius;\x0a\x20\x20\x20\x20weight\x20=\x201.0\x20-\x20intensity\x20*\x20(1.0\x20-\x20weight\x20*\x20weight);\x0a\x20\x20\x20\x20weight\x20=\x20clamp(weight,\x200.0,\x201.0);\x0a\x20\x20\x20\x20currentCoordinate\x20=\x20circleCenter\x20+\x20(currentCoordinate\x20-\x20circleCenter)\x20*\x20weight;\x0a\x0a\x20\x20\x20\x20return\x20currentCoordinate;\x0a}\x0avec2\x20enlargeEyeEllipse(vec2\x20currentCoordinate,\x20vec2\x20eyeCenter,\x20float\x20majorRadius,\x20float\x20minorRadius,\x20float\x20intensity)\x20{\x0a\x20\x20\x20\x20float\x20currentDistance\x20=\x20distance(currentCoordinate,\x20eyeCenter);\x0a\x0a\x20\x20\x20\x20float\x20cosa\x20=\x20(currentCoordinate.x\x20-\x20eyeCenter.x)\x20/\x20currentDistance;\x0a\x20\x20\x20\x20float\x20sina\x20=\x20(currentCoordinate.y\x20-\x20eyeCenter.y)\x20/\x20currentDistance;\x0a\x20\x20\x20\x20float\x20m\x20=\x20pow(majorRadius\x20*\x20majorRadius\x20*cosa*cosa\x20+\x20\x20minorRadius\x20*\x20minorRadius\x20*\x20sina\x20*\x20sina,\x200.5);\x0a\x0a\x20\x20\x20\x20float\x20weight\x20=\x20currentDistance\x20/\x20m;\x0a\x20\x20\x20\x20weight\x20=\x201.0\x20-\x20intensity\x20*\x20(1.0\x20-\x20weight\x20*\x20weight);\x0a\x20\x20\x20\x20weight\x20=\x20clamp(weight,\x200.0,\x201.0);\x0a\x20\x20\x20\x20currentCoordinate\x20=\x20eyeCenter\x20+\x20(currentCoordinate\x20-\x20eyeCenter)\x20*\x20weight;\x0a\x0a\x20\x20\x20\x20return\x20currentCoordinate;\x0a}\x0a//\x20瘦脸\x0avec2\x20faceLift(vec2\x20currentCoordinate,\x20float\x20faceLength)\x0a{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20faceLiftScale\x20=\x20lift\x20*\x200.06;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.5;\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_left4;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bridge5\x20-\x20currentPoint)\x20*\x20faceLiftScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_right4;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bridge5\x20-\x20currentPoint)\x20*\x20faceLiftScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20radius\x20=\x20radius\x20*\x200.8;\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_left9;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_tip\x20-\x20currentPoint)\x20*\x20(faceLiftScale\x20*\x200.6);\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_right9;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_tip\x20-\x20currentPoint)\x20*\x20(faceLiftScale\x20*\x200.6);\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a//\x20鼻子\x0avec2\x20noseShave(vec2\x20currentCoordinate,\x20float\x20faceLength)\x20{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20scale\x20=\x20nose\x20*\x200.2;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.5;\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20nose_left1;\x20//\x20102\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_tip1\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20nose_tip1:1\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20nose_left2;\x20//\x2097\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bottom\x20-\x20currentPoint)\x20*\x20scale;\x20//nose_bottom:\x202\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20nose_right1;\x20//\x20331\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_tip1\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20nose_tip1:1\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20nose_right2;\x20//\x20326\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bottom\x20-\x20currentPoint)\x20*\x20scale;\x20//nose_bottom:\x202\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a//\x20嘴唇\x0avec2\x20handleLip(vec2\x20currentCoordinate,\x20float\x20faceLength)\x20{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20scale\x20=\x20lip\x20*\x200.1;\x0a\x0a\x20\x20\x20\x20vec2\x20circleCenter\x20=\x20(lip_inner_top\x20+\x20lip_inner_bottom)\x20/\x202.0;\x0a\x20\x20\x20\x20//\x20当前点的距离\x0a\x20\x20\x20\x20float\x20currentDistance\x20=\x20distance(currentCoordinate,\x20circleCenter);\x0a\x0a\x20\x20\x20\x20//\x20float\x20radius\x20=\x20distance(lip_top_right,\x20lip_top_left)\x20*\x200.6;\x0a\x20\x20\x20\x20//\x20float\x20radius\x20=\x20distance(lip_top_right,\x20lip_top_left)\x20*\x200.6;\x0a\x20\x20\x20\x20float\x20radiusy\x20=\x20distance(lip_inner_top,\x20circleCenter)\x20*\x202.0;\x0a\x20\x20\x20\x20float\x20radiusx\x20=\x20distance(lip_top_right,\x20lip_top_left)\x20/\x202.0\x20*\x202.0;\x0a\x20\x20\x20\x20float\x20cosa\x20=\x20(currentCoordinate.x\x20-\x20circleCenter.x)\x20/\x20currentDistance;\x0a\x20\x20\x20\x20float\x20sina\x20=\x20(currentCoordinate.y\x20-\x20circleCenter.y)\x20/\x20currentDistance;\x0a\x20\x20\x20\x20float\x20m\x20=\x20pow(radiusx\x20*\x20radiusx*cosa*cosa\x20+\x20\x20radiusy\x20*\x20radiusy\x20*\x20sina\x20*\x20sina,\x200.5);\x0a\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20float\x20weight\x20=\x20currentDistance/m;\x0a\x0a\x20\x20\x20\x20weight\x20=\x201.0\x20-\x20abs(scale)\x20*\x20(1.0\x20-\x20weight);\x0a\x20\x20\x20\x20weight\x20=\x20clamp(weight,\x200.0,\x201.0);\x0a\x0a\x20\x20\x20\x20//\x20处理是放大还是缩小\x0a\x20\x20\x20\x20float\x20neg\x20=\x20step(0.0,lip)\x20*\x202.0\x20-1.0;\x0a\x20\x20\x20\x20weight\x20=\x20pow(weight,\x20neg);\x0a\x20\x20\x20\x20currentCoordinate\x20=\x20circleCenter\x20+\x20(currentCoordinate\x20-\x20circleCenter)\x20*\x20weight;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20return\x20currentCoordinate;\x0a\x0a}\x0a//\x20发际线\x0avec2\x20handleForehead(vec2\x20currentCoordinate,\x20float\x20faceLength)\x20{\x0a\x20\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20scale\x20=\x20forehead\x20*\x200.15;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.7;\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20forehead_top_center\x20+\x20forehead_top_center\x20-\x20eyebrow_center;\x20//\x2010\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(eyebrow_center\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20eyebrow_center:9\x0a\x20\x20\x20\x20destPoint.y\x20=\x20clamp(destPoint.y,\x200.0,\x20float(height));\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20forehead_left\x20+\x20forehead_left\x20-\x20left_eyebrow_center;\x20//\x2067\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(left_eyebrow_center\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20left_eyebrow_center:66\x0a\x20\x20\x20\x20destPoint.y\x20=\x20clamp(destPoint.y,\x200.0,\x20float(height));\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20forehead_right\x20+\x20forehead_right\x20-\x20right_eyebrow_center;\x20//\x20297\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(right_eyebrow_center\x20-\x20currentPoint)\x20*\x20scale;\x20//\x20right_eyebrow_center:296\x0a\x20\x20\x20\x20destPoint.y\x20=\x20clamp(destPoint.y,\x200.0,\x20float(height));\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a\x0a}\x0a//\x20削脸\x0avec2\x20faceShave(vec2\x20currentCoordinate,\x20float\x20faceLength)\x0a{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20faceShaveScale\x20=\x20shave\x20*\x200.09;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x201.0;\x0a\x0a\x20\x20\x20\x20//\x20下巴中心\x0a\x20\x20\x20\x20vec2\x20chinCenter\x20=\x20(contour_chin\x20+\x20mouth_lower_lip_bottom)\x20*\x200.5;\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_left10;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20faceShaveScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_right10;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20faceShaveScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a//\x20曲线形变处理\x0avec2\x20curveWarpVertical(vec2\x20textureCoord,\x20vec2\x20originPosition,\x20vec2\x20targetPosition,\x20float\x20xRadius,\x20float\x20yRadius)\x0a{\x0a\x20\x20\x20\x20vec2\x20offset\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20result\x20=\x20vec2(0.0);\x0a\x0a\x20\x20\x20\x20vec2\x20direction\x20=\x20targetPosition\x20-\x20originPosition;\x0a\x0a\x20\x20\x20\x20float\x20infect\x20=\x20(textureCoord.x\x20-\x20originPosition.x)\x20*\x20(textureCoord.x\x20-\x20originPosition.x)\x20/\x20(xRadius\x20*\x20xRadius)\x20+\x20\x0a\x20\x20\x20\x20(textureCoord.y\x20-\x20originPosition.y)\x20*\x20(textureCoord.y\x20-\x20originPosition.y)\x20/\x20(yRadius\x20*\x20yRadius);\x0a\x0a\x20\x20\x20\x20infect\x20=\x201.0\x20-\x20infect;\x0a\x20\x20\x20\x20infect\x20=\x20clamp(infect,\x200.0,\x201.0);\x0a\x20\x20\x20\x20offset\x20=\x20direction\x20*\x20infect;\x0a\x0a\x20\x20\x20\x20result\x20=\x20textureCoord\x20-\x20offset;\x0a\x0a\x20\x20\x20\x20return\x20result;\x0a}\x0a//\x20处理下巴\x0avec2\x20chinChange(vec2\x20currentCoordinate,\x20float\x20faceLength)\x0a{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20\x20\x20float\x20chinScale\x20=\x20-chin\x20*\x200.4;\x0a\x20\x20\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.3;\x0a\x20\x20\x20\x20vec2\x20chinCenter\x20=\x20contour_chin\x20+\x20(mouth_lower_lip_bottom\x20-\x20contour_chin)\x20*\x200.2;\x0a\x20\x20\x20\x20//\x20下巴尖\x0a\x20\x20\x20\x20currentPoint\x20=\x20contour_chin;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20chinScale;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20//\x20下巴尖左右各取一个点平滑下巴\x0a\x20\x20\x20\x20float\x20r\x20=\x200.3\x20-\x200.1\x20*\x20step(0.0,chin);\x0a\x20\x20\x20\x20currentPoint\x20=\x20chin_left;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20chinScale\x20*\x20r;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20\x20currentPoint\x20=\x20chin_right;\x0a\x20\x20\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(chinCenter\x20-\x20currentPoint)\x20*\x20chinScale\x20*\x20r;\x0a\x20\x20\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a\x0avec2\x20scaleHead(vec2\x20currentCoordinate)\x20{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20\x20\x20float\x20headRadius\x20=\x20distance(contour_chin,\x20nose_bridge5)\x20*\x201.8;\x0a\x20\x20\x20\x20float\x20isWithin\x20=\x201.0-step(headRadius,\x20distance(currentCoordinate,\x20nose_bridge5));\x0a\x20\x20\x20\x20//\x20if\x20(distance(currentCoordinate,\x20nose_bridge5)\x20<=\x20headRadius)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20weight\x20=\x20isWithin\x20*\x20(1.0\x20-\x20distance(currentCoordinate,\x20nose_bridge5)\x20/\x20headRadius);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20coordinate\x20=\x20nose_bridge5\x20+\x20(coordinate\x20-\x20nose_bridge5)\x20*\x20(1.0+weight\x20*\x200.12*head);\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x0a\x20\x20\x20\x20return\x20coordinate;\x0a}\x0a//\x20颧骨\x0avec2\x20handleCheekbone(vec2\x20currentCoordinate,\x20float\x20faceLength)\x20{\x0a\x20\x20vec2\x20coordinate\x20=\x20currentCoordinate;\x0a\x20\x20vec2\x20currentPoint\x20=\x20vec2(0.0);\x0a\x20\x20vec2\x20destPoint\x20=\x20vec2(0.0);\x0a\x20\x20float\x20scale\x20=\x20cheekbone\x20*\x200.05;\x0a\x20\x20float\x20radius\x20=\x20faceLength\x20*\x200.45;\x0a\x0a\x20\x20currentPoint\x20=\x20(contour_left4\x20+\x20contour_left3)\x20*\x200.5;\x0a\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bridge6\x20-\x20currentPoint)\x20*\x20scale;\x0a\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20currentPoint\x20=\x20(contour_right4\x20+\x20contour_right3)\x20*\x200.5;\x0a\x20\x20destPoint\x20=\x20currentPoint\x20+\x20(nose_bridge6\x20-\x20currentPoint)\x20*\x20scale;\x0a\x20\x20coordinate\x20=\x20curveWarp(coordinate,\x20currentPoint,\x20destPoint,\x20radius);\x0a\x0a\x20\x20return\x20coordinate;\x0a\x0a}\x0a\x0avec4\x20eyeBright(vec2\x20currentCoordinate)\x20{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20\x20currentCoordinate\x20*\x20vec2(float(width),\x20float(height));\x0a\x0a\x20\x20\x20\x20float\x20iris_size_size\x20=\x20distance(left_eye_top,\x20left_eye_bottom);\x0a\x20\x20\x20\x20vec2\x20left_center\x20=\x20(left_eye_top\x20+\x20left_eye_bottom)/2.0;\x0a\x20\x20\x20\x20vec2\x20right_center\x20=\x20(right_eye_top\x20+\x20right_eye_bottom)/2.0;\x0a\x20\x20\x20\x20float\x20flag\x20=\x20(1.0-step(iris_size_size,\x20distance(coordinate,\x20left_center)))\x20+\x20(1.0-step(iris_size_size,\x20distance(coordinate,\x20right_center)));\x0a\x20\x20\x20\x20//\x20if\x20((distance(coordinate,\x20left_center)\x20<=\x20iris_size_size\x20||\x20distance(coordinate,\x20right_center)\x20<=\x20iris_size_size))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20usm(currentCoordinate,\x20flag\x20*\x20clamp(eyeBrightness,0.0,1.0));\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20//\x20gl_FragColor\x20=\x20texture2D(uSampler,\x20currentCoordinate);\x0a}\x0a\x0avoid\x20main()\x0a{\x0a\x20\x20\x20\x20vec2\x20coordinate\x20=\x20vTextureCoord.xy;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20禁用美型处理或者鼻子不在图像中,则直接绘制\x0a\x20\x20\x20\x20float\x20enableFlag\x20=\x20step(1.0,\x20float(enable))\x20*\x20(step(0.03,\x20nose_tip.x\x20/\x20float(width))\x20\x20+\x20step(0.03,\x20nose_tip.y\x20/\x20float(height)));\x0a\x20\x20\x20\x20enableFlag\x20=\x20clamp(enableFlag,\x200.0,\x201.0);\x0a\x20\x20\x20\x20//\x20if\x20(enable\x20==\x200\x20||\x20((nose_tip.x\x20/\x20float(width)\x20<=\x200.03)\x20||\x20(nose_tip.y\x20/\x20float(height))\x20<=\x200.03))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color\x20=\x20texture2D(uSampler,\x20coordinate);\x0a\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20gl_FragColor\x20=\x20color;\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x0a\x20\x20\x20\x20//\x20将坐标转成图像大小,这里是为了方便计算\x0a\x20\x20\x20\x20coordinate\x20=\x20vTextureCoord\x20*\x20vec2(float(width),\x20float(height));\x0a\x0a\x20\x20\x20\x20//\x20两个瞳孔的距离\x0a\x20\x20\x20\x20float\x20eyeDistance\x20=\x20distance(left_eye_center,\x20right_eye_center);\x20\x0a\x0a\x20\x20\x20\x20//\x20瘦脸\x0a\x20\x20\x20\x20coordinate\x20=\x20faceLift(coordinate,\x20eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20削脸\x0a\x20\x20\x20\x20coordinate\x20=\x20faceShave(coordinate,\x20eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20下巴\x0a\x20\x20\x20\x20coordinate\x20=\x20chinChange(coordinate,\x20eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20鼻子\x0a\x20\x20\x20\x20coordinate\x20=\x20noseShave(coordinate,eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20嘴唇厚度\x0a\x20\x20\x20\x20coordinate\x20=\x20handleLip(coordinate,eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20发际线\x0a\x20\x20\x20\x20coordinate\x20=\x20handleForehead(coordinate,eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20颧骨\x0a\x20\x20\x20\x20coordinate\x20=\x20handleCheekbone(coordinate,eyeDistance);\x0a\x0a\x20\x20\x20\x20//\x20小头\x0a\x20\x20\x20\x20coordinate\x20=\x20scaleHead(coordinate);\x0a\x0a\x20\x20\x20\x20//\x20大眼\x0a\x20\x20\x20\x20float\x20eyeEnlarge\x20=\x20eye\x20*\x200.16;\x20//\x20放大倍数\x0a\x20\x20\x20\x20eyeEnlarge\x20=\x20clamp(eyeEnlarge,\x200.0,\x201.0);\x0a\x20\x20\x20\x20//\x20if\x20(eyeEnlarge\x20>\x200.0)\x20{\x0a\x20\x20\x20\x20float\x20radius\x20=\x20eyeDistance\x20*\x200.33;\x20//\x20眼睛放大半径\x0a\x20\x20\x20\x20//\x20float\x20radius\x20=\x20eyeDistance\x20*\x200.33;\x20//\x20眼睛放大半径\x0a\x20\x20\x20\x20//\x20coordinate\x20=\x20enlargeEye(coordinate,\x20left_eye_center\x20+\x20(right_eye_center\x20-\x20left_eye_center)\x20*\x200.05,\x20radius,\x20eyeEnlarge);\x0a\x20\x20\x20\x20//\x20coordinate\x20=\x20enlargeEye(coordinate,\x20right_eye_center\x20+\x20(left_eye_center\x20-\x20right_eye_center)\x20*\x200.05,\x20radius,\x20eyeEnlarge);\x0a\x20\x20\x20\x20coordinate\x20=\x20enlargeEyeEllipse(coordinate,\x20left_eye_center\x20+\x20(right_eye_center\x20-\x20left_eye_center)\x20*\x200.05,\x20\x20eyeDistance\x20*\x200.45,\x20eyeDistance\x20*\x200.25,\x20eyeEnlarge);\x0a\x20\x20\x20\x20coordinate\x20=\x20enlargeEyeEllipse(coordinate,\x20right_eye_center\x20+\x20(left_eye_center\x20-\x20right_eye_center)\x20*\x200.05,\x20eyeDistance\x20*\x200.45,\x20eyeDistance\x20*\x200.25,\x20eyeEnlarge);\x0a\x20\x20\x20\x20//\x20}\x0a\x0a\x20\x20\x20\x20//\x20转变回原来的纹理坐标系\x0a\x20\x20\x20\x20coordinate\x20=\x20coordinate\x20/\x20vec2(float(width),\x20float(height));\x0a\x0a\x20\x20\x20\x20//\x20输出图像带上名目\x0a\x20\x20\x20\x20vec4\x20dealedColor\x20=\x20eyeBright(coordinate);\x0a\x0a\x20\x20\x20\x20//\x20输出图像\x0a\x20\x20\x20\x20//\x20gl_FragColor\x20=\x20texture2D(uSampler,\x20coordinate);\x0a\x20\x20\x20\x20gl_FragColor\x20=\x20mix(color,\x20dealedColor,\x20enableFlag);\x0a}','shape-rendering','navigation','createImage','fail','confirm','pivot','getOptions','done','contour_right9','screenHeight','0px\x200px','时间:','onUnhandledRejection','invalid\x20gzip\x20data','padding','scene','ended','registerPlugin','level','removeTicker','Invalid\x20\x22input\x22\x20value,\x20Only\x20the\x20image\x20type\x20can\x20be\x20entered\x20for\x20remote\x20links','word-spacing','lip','ENVIRAONMENT_NOT_COMPATIBLE','pushSprite','batch','_textureID','\x20is\x20not\x20a\x20constructor\x20or\x20null','setDataReportUrl','ALL','canIUse','UNSIGNED_BYTE','removeAnchors','getConfig','fromImages','2083640kMefxq','intensity','frame2','use','disable\x20beautify','animation-delay','lip_bottom_right_target','stack','\x22PingFang\x20SC\x22','onLoad','subarray','setAxisY','get\x20arraybuffer\x20error','none\x200px\x20auto\x200deg','simpleShader','128','option','speed','[aegis-mp-sdk]unsupport\x20getFileSystemManager\x20offline\x20log\x20not\x20work!','getAutoSize','Cannot\x20convert\x20undefined\x20or\x20null\x20to\x20object','method','attachShader','initFlushBuffers','ext3','addChild','[Circular\x20','_hide','You\x20need\x20to\x20override\x20\x22speedLogPipeline\x22\x20method','startTime','CUSTOM_PV','setLevel','flood-color','Sending\x20request\x20blocked.\x20Please\x20handle\x20the\x20parameters\x20reasonably,\x20options.url\x20is\x20necessary','onFrameChange','TEXTURE_2D','onCameraFrame','cors','-webkit-box-align','err','right_eye_top','66,69,6c,74,65,72','Custom','uninstall','\x0aattribute\x20vec2\x20aVertexPosition;\x0aattribute\x20vec2\x20aTextureCoord;\x0a\x0auniform\x20mat3\x20projectionMatrix;\x0auniform\x20mat3\x20otherMatrix;\x0a\x0avarying\x20vec3\x20vMaskCoord;\x0avarying\x20vec2\x20vTextureCoord;\x0a\x0avoid\x20main(void)\x0a{\x0agl_Position\x20=\x20vec4((projectionMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x0avTextureCoord\x20=\x20aTextureCoord;\x0avMaskCoord\x20=\x20otherMatrix\x20*\x20vec3(\x20aTextureCoord,\x201.0);\x0a}\x0a','exsurehad','roll','timeThreshold','faceReshape','9YUIXRV','BLEND','calculateSpriteMatrix','createPipeline\x20need\x20at\x20least\x20one\x20function\x20param','clientX','vertexData2d','__initStatic','_updateFilter','frame0','reportPv\x20is\x20deprecated,\x20please\x20use\x20reportEvent','iResolution','alphaMaskIndex','cacheNum','lighting-color','innerHTML','isGetSample','Preset','Timer\x20','secretKey','EffectList','OVERLAY','copy','createMediaContainer','flat','webVitalsUrl','quaternion','0034','_indexBuffer','manual','object','firstRender','pop','contextChange','right','protocol','LEFT_FACE_OVAL3','msg','caret-color','solid','getSetting','AJAX_ERROR:\x20cloud.callContainer:fail\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20status:\x20','showModal','OtherEffectList','visible','aTrans2','end','destroy','.zip','single','AXIS_Y','uClampFrame','letter-spacing','-webkit-hyphenate-character','Error.message:\x20','16384','65536','setToMultLegacy','\x20temp\x20zip\x20write\x20file\x20error','recorder','Gl3L4fE8vE5bqOVbV0','returnFilterTexture','This\x20browser\x20offers\x20limited\x20support\x20for\x20the\x20SDK,\x20and\x20stutter\x20may\x20occur.\x20Please\x20use\x20the\x20latest\x20version\x20of\x20Chrome,\x20Safari,\x20or\x20WeChat','stop-opacity','_find','scaleAfterAffine','postMessage','4b,65,79,4c,69,73,74','SDK_VERSION_LOW_ERROR','LIPS','dispatchEvent','_durations','RenderTexture','FREE','getAllResponseHeaders','config','geometryClass','text-align-last','perspective','word-wrap','name','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','-webkit-text-decorations-in-effect','outputRenderer','applyFilter','上下文丢失,请重新初始化','-webkit-margin-after-collapse','texImage2D','degreeStart','mapBilinearSprite','SDK\x20version\x20is\x20too\x20old,\x20some\x20features\x20are\x20not\x20available.\x20Please\x20update\x20the\x20SDK','border-top-right-radius','request:fail','font-stretch','auto\x200deg','result','-webkit-text-fill-color','marker-end','stroke-dashoffset','getBean','50%\x2050%','getPreMiddleware','getPlatFormType','ret','contour_left4','worldAlpha','hackCloud','ttt','reject','stickerLoader','cloudSuccessCallback','pageY','sendNow','addBean','toLocal','CUSTOM','pageUrl','equals','float\x20blendOverlay(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));\x0a}\x0a\x0avec3\x20blendOverlay(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));\x0a}\x0a\x0avec3\x20blendOverlay(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendOverlay(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a','defineProperty','62,65,61,75,74,69,66,79','matrix','getAllKeys','metaKey','angleArray','defaultVertexShader','normal\x20normal\x20400\x20normal\x2016px\x20/\x20normal\x20\x22PingFang\x20SC\x22','packageName','toGlobal','-webkit-text-combine','material','缺少鉴权参数appId','intensityEye','metadata','count','0011','invalid\x20zlib\x20data','left_eye_top','shape-image-threshold','trim','offlineUrl','lifetimes','captureStream','https','hyphens','REQUEST_FILE_FAIL','clearFile','outline-width','text-decoration','tickworker','_checkVoid','stroke-linecap','load','1005','maximum\x20size','relatedTarget','box-shadow','OPENED','run2','isStart','timestamp','detectSize','en-US','affinePreserveOrientation','_near','BaseRenderTexture','lip_inner_bottom','publish','createFilter','createProgram','-webkit-text-emphasis-position','bean','resource','overrideMimeType','1002','64,65,63,72,79,70,74','Arsdk\x20is\x20not\x20ready','time','classList','break-before','pointerId','tileProj','__config','createObserver','getImageData','some','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20url:\x20cloud.callFunction.','ready','column-rule-color','triggerResult','vertexAttribPointer','afterRequest','pluginName','label','sends','updateBeauty','px\x20','baseTexture','invert','precision\x20lowp\x20float;\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20lowp\x20vec2\x20vTextureCoord;\x0a\x0auniform\x20int\x20width;\x0auniform\x20int\x20height;\x0a\x0auniform\x20float\x20intensity;\x0a\x0avoid\x20main()\x20{\x0a\x20\x20\x20\x20vec3\x20centralColor;\x0a\x0a\x20\x20\x20\x20centralColor\x20=\x20texture2D(uSampler,\x20vTextureCoord).rgb;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20if(intensity\x20<\x200.01)\x20{\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(centralColor,\x201.0);\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20x_a\x20=\x20float(width);\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20y_a\x20=\x20float(height);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20mul_x\x20=\x202.0\x20/\x20x_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20mul_y\x20=\x202.0\x20/\x20y_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates0\x20=\x20vTextureCoord\x20+\x20vec2(0.0\x20*\x20mul_x,\x20-10.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates2\x20=\x20vTextureCoord\x20+\x20vec2(8.0\x20*\x20mul_x,\x20-5.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates4\x20=\x20vTextureCoord\x20+\x20vec2(8.0\x20*\x20mul_x,\x205.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates6\x20=\x20vTextureCoord\x20+\x20vec2(0.0\x20*\x20mul_x,\x2010.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates8\x20=\x20vTextureCoord\x20+\x20vec2(-8.0\x20*\x20mul_x,\x205.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates10\x20=\x20vTextureCoord\x20+\x20vec2(-8.0\x20*\x20mul_x,\x20-5.0\x20*\x20mul_y);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_x\x20=\x201.8\x20/\x20x_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_y\x20=\x201.8\x20/\x20y_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates1\x20=\x20vTextureCoord\x20+\x20vec2(5.0\x20*\x20mul_x,\x20-8.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates3\x20=\x20vTextureCoord\x20+\x20vec2(10.0\x20*\x20mul_x,\x200.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates5\x20=\x20vTextureCoord\x20+\x20vec2(5.0\x20*\x20mul_x,\x208.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates7\x20=\x20vTextureCoord\x20+\x20vec2(-5.0\x20*\x20mul_x,\x208.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates9\x20=\x20vTextureCoord\x20+\x20vec2(-10.0\x20*\x20mul_x,\x200.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates11\x20=\x20vTextureCoord\x20+\x20vec2(-5.0\x20*\x20mul_x,\x20-8.0\x20*\x20mul_y);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_x\x20=\x201.6\x20/\x20x_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_y\x20=\x201.6\x20/\x20y_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates12\x20=\x20vTextureCoord\x20+\x20vec2(0.0\x20*\x20mul_x,-6.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates14\x20=\x20vTextureCoord\x20+\x20vec2(-6.0\x20*\x20mul_x,0.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20vec2\x20blurCoordinates16\x20=\x20vTextureCoord\x20+\x20vec2(0.0\x20*\x20mul_x,6.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20vec2\x20blurCoordinates18\x20=\x20vTextureCoord\x20+\x20vec2(6.0\x20*\x20mul_x,0.0\x20*\x20mul_y);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_x\x20=\x201.4\x20/\x20x_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20mul_y\x20=\x201.4\x20/\x20y_a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates13\x20=\x20vTextureCoord\x20+\x20vec2(-4.0\x20*\x20mul_x,-4.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec2\x20blurCoordinates15\x20=\x20vTextureCoord\x20+\x20vec2(-4.0\x20*\x20mul_x,4.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20vec2\x20blurCoordinates17\x20=\x20vTextureCoord\x20+\x20vec2(4.0\x20*\x20mul_x,4.0\x20*\x20mul_y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20vec2\x20blurCoordinates19\x20=\x20vTextureCoord\x20+\x20vec2(4.0\x20*\x20mul_x,-4.0\x20*\x20mul_y);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20central;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20gaussianWeightTotal;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20sum;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20sampler;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20distanceFromCentralColor;\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20distanceNormalizationFactor\x20=\x203.6;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20central\x20=\x20texture2D(uSampler,\x20vTextureCoord).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20=\x200.2;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20=\x20central\x20*\x200.2;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates0).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates1).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates2).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates3).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates4).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates5).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates6).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates7).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates8).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates9).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates10).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates11).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.09\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates12).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates13).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates14).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates15).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates16).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates17).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates18).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20texture2D(uSampler,\x20blurCoordinates19).g;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20distanceFromCentralColor\x20=\x20min(abs(central\x20-\x20sampler)\x20*\x20distanceNormalizationFactor,\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeight\x20=\x200.1\x20*\x20(1.0\x20-\x20distanceFromCentralColor);\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20gaussianWeightTotal\x20+=\x20gaussianWeight;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20sum\x20+=\x20sampler\x20*\x20gaussianWeight;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sum\x20=\x20sum/gaussianWeightTotal;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20centralColor.g\x20-\x20sum\x20+\x200.5;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20高反差保留\x0a\x20\x20\x20\x20\x20\x20\x20\x20for(int\x20i\x20=\x200;\x20i\x20<\x205;\x20++i)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sampler\x20=\x20mix(sampler\x20*\x20sampler\x20*\x202.0,\x201.0\x20-\x20((1.0\x20-\x20sampler)*(1.0\x20-\x20sampler)\x20*\x202.0),\x20step(0.5,sampler));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20sampler\x20=\x20sampler\x20<=\x200.5\x20?\x20sampler\x20*\x20sampler\x20*\x202.0\x20:\x201.0\x20-\x20((1.0\x20-\x20sampler)*(1.0\x20-\x20sampler)\x20*\x202.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20if(sampler\x20<=\x200.5)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20sampler\x20=\x20sampler\x20*\x20sampler\x20*\x202.0;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20sampler\x20=\x201.0\x20-\x20((1.0\x20-\x20sampler)*(1.0\x20-\x20sampler)\x20*\x202.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20float\x20aa\x20=\x201.0\x20+\x20pow(sum,\x200.3)\x20*\x200.09;\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec3\x20smoothColor\x20=\x20centralColor\x20*\x20aa\x20-\x20vec3(sampler)\x20*\x20(aa\x20-\x201.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20smoothColor\x20=\x20clamp(smoothColor,\x20vec3(0.0),\x20vec3(1.0));\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20smoothColor\x20=\x20mix(centralColor,\x20smoothColor,\x20pow(centralColor.g,\x200.33));\x0a\x20\x20\x20\x20\x20\x20\x20\x20smoothColor\x20=\x20mix(centralColor,\x20smoothColor,\x20pow(centralColor.g,\x200.39));\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20smoothColor\x20=\x20mix(centralColor,\x20smoothColor,\x20intensity\x20*\x201.5);\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(pow(smoothColor,\x20vec3(0.96)),\x201.0);\x0a\x20\x20\x20\x20\x0a\x20}','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0areq\x20url:\x20','enabledFor','background-color','lip_top_right_target','currentFrame','zip','ARRAY_BUFFER','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0ares\x20retcode:\x20','dominant-baseline','getLevel','aColor','convertTo2d','precision\x20highp\x20float;\x0avarying\x20vec2\x20vertexPosition;\x0avarying\x20vec3\x20vTrans1;\x0avarying\x20vec3\x20vTrans2;\x0avarying\x20vec2\x20vSamplerSize;\x0avarying\x20vec4\x20vFrame;\x0avarying\x20vec4\x20vColor;\x0avarying\x20float\x20vTextureId;\x0a\x0auniform\x20sampler2D\x20uSamplers[%count%];\x0auniform\x20vec4\x20distortion;\x0a\x0avoid\x20main(void){\x0avec2\x20surface;\x0avec2\x20surface2;\x0a\x0afloat\x20vx\x20=\x20vertexPosition.x;\x0afloat\x20vy\x20=\x20vertexPosition.y;\x0afloat\x20dx\x20=\x20distortion.x;\x0afloat\x20dy\x20=\x20distortion.y;\x0afloat\x20revx\x20=\x20distortion.z;\x0afloat\x20revy\x20=\x20distortion.w;\x0a\x0aif\x20(distortion.x\x20==\x200.0)\x20{\x0asurface.x\x20=\x20vx;\x0asurface.y\x20=\x20vy\x20/\x20(1.0\x20+\x20dy\x20*\x20vx);\x0asurface2\x20=\x20surface;\x0a}\x20else\x0aif\x20(distortion.y\x20==\x200.0)\x20{\x0asurface.y\x20=\x20vy;\x0asurface.x\x20=\x20vx\x20/\x20(1.0\x20+\x20dx\x20*\x20vy);\x0asurface2\x20=\x20surface;\x0a}\x20else\x20{\x0afloat\x20c\x20=\x20vy\x20*\x20dx\x20-\x20vx\x20*\x20dy;\x0afloat\x20b\x20=\x20(c\x20+\x201.0)\x20*\x200.5;\x0afloat\x20b2\x20=\x20(-c\x20+\x201.0)\x20*\x200.5;\x0afloat\x20d\x20=\x20b\x20*\x20b\x20+\x20vx\x20*\x20dy;\x0aif\x20(d\x20<\x20-0.00001)\x20{\x0a\x20\x20\x20\x20discard;\x0a}\x0ad\x20=\x20sqrt(max(d,\x200.0));\x0asurface.x\x20=\x20(-\x20b\x20+\x20d)\x20*\x20revy;\x0asurface2.x\x20=\x20(-\x20b\x20-\x20d)\x20*\x20revy;\x0asurface.y\x20=\x20(-\x20b2\x20+\x20d)\x20*\x20revx;\x0asurface2.y\x20=\x20(-\x20b2\x20-\x20d)\x20*\x20revx;\x0a}\x0a\x0avec2\x20uv;\x0auv.x\x20=\x20vTrans1.x\x20*\x20surface.x\x20+\x20vTrans1.y\x20*\x20surface.y\x20+\x20vTrans1.z;\x0auv.y\x20=\x20vTrans2.x\x20*\x20surface.x\x20+\x20vTrans2.y\x20*\x20surface.y\x20+\x20vTrans2.z;\x0a\x0avec2\x20pixels\x20=\x20uv\x20*\x20vSamplerSize;\x0a\x0aif\x20(pixels.x\x20<\x20vFrame.x\x20||\x20pixels.x\x20>\x20vFrame.z\x20||\x0apixels.y\x20<\x20vFrame.y\x20||\x20pixels.y\x20>\x20vFrame.w)\x20{\x0auv.x\x20=\x20vTrans1.x\x20*\x20surface2.x\x20+\x20vTrans1.y\x20*\x20surface2.y\x20+\x20vTrans1.z;\x0auv.y\x20=\x20vTrans2.x\x20*\x20surface2.x\x20+\x20vTrans2.y\x20*\x20surface2.y\x20+\x20vTrans2.z;\x0apixels\x20=\x20uv\x20*\x20vSamplerSize;\x0a\x0aif\x20(pixels.x\x20<\x20vFrame.x\x20||\x20pixels.x\x20>\x20vFrame.z\x20||\x0a\x20\x20\x20pixels.y\x20<\x20vFrame.y\x20||\x20pixels.y\x20>\x20vFrame.w)\x20{\x0a\x20\x20\x20discard;\x0a}\x0a}\x0a\x0avec4\x20edge;\x0aedge.xy\x20=\x20clamp(pixels\x20-\x20vFrame.xy\x20+\x200.5,\x20vec2(0.0,\x200.0),\x20vec2(1.0,\x201.0));\x0aedge.zw\x20=\x20clamp(vFrame.zw\x20-\x20pixels\x20+\x200.5,\x20vec2(0.0,\x200.0),\x20vec2(1.0,\x201.0));\x0a\x0afloat\x20alpha\x20=\x201.0;\x20//edge.x\x20*\x20edge.y\x20*\x20edge.z\x20*\x20edge.w;\x0avec4\x20rColor\x20=\x20vColor\x20*\x20alpha;\x0a\x0afloat\x20textureId\x20=\x20floor(vTextureId+0.5);\x0avec2\x20vTextureCoord\x20=\x20uv;\x0avec4\x20color;\x0a%forloop%\x0agl_FragColor\x20=\x20color\x20*\x20rColor;\x0a}','POINTS_MAP','_height','reportT','valueOf','reportTime','customTimeUrl','onAppRoute','generatePusherData','Exclusion','data','_dcIndex','border-right-color','resolve','keys','key','__init3','flex-wrap','nmd','Auth','recorder\x20options','animation-iteration-count','offscreen','offset-rotate','%FUNC_CODE%','whiteListUrl','\x20*\x20','flag','stopPropagation','auth','batch_bilinear','objectStoreName','__wbindgen_realloc','getIndeLoader','unlink','_filterMap','lip_bottom_left_target','_0.','LOAD_PACKAGE','offlineLogLimit','2048','application/json','padding-bottom','error','faceMesh','message','contour_left9','passive','-webkit-mask-box-image-outset','is_in_white_list','__wbindgen_free','CSS_ERROR','auto','clearLogs','-webkit-box-ordinal-group','loadScript','\x0a\x0aprecision\x20lowp\x20float;\x0auniform\x20sampler2D\x20uSampler;\x0avarying\x20lowp\x20vec2\x20vTextureCoord;\x0auniform\x20int\x20width;\x0auniform\x20int\x20height;\x0auniform\x20float\x20intensity;\x0a\x0avec4\x20gaussianBlur(vec2\x20uv,\x20float\x20size)\x20{\x0a\x20\x20\x20\x20const\x20float\x20Pi\x20=\x206.28318530718;\x20//\x20Pi*2\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20GAUSSIAN\x20BLUR\x20SETTINGS\x20{{{\x0a\x20\x20\x20\x20const\x20float\x20Directions\x20=\x2016.0;\x20//\x20BLUR\x20DIRECTIONS\x20(Default\x2016.0\x20-\x20More\x20is\x20better\x20but\x20slower)\x0a\x20\x20\x20\x20const\x20float\x20Quality\x20=\x204.0;\x20//\x20BLUR\x20QUALITY\x20(Default\x204.0\x20-\x20More\x20is\x20better\x20but\x20slower)\x0a\x20\x20\x20\x20float\x20Size\x20=\x20size;\x20//\x20BLUR\x20SIZE\x20(Radius)\x0a\x20\x20\x20\x20//\x20GAUSSIAN\x20BLUR\x20SETTINGS\x20}}}\x0a\x20\x20\x20\x0a\x20\x20\x20\x20vec2\x20Radius\x20=\x20Size/vec2(float(width),\x20float(height));\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Pixel\x20colour\x0a\x20\x20\x20\x20vec4\x20Color\x20=\x20texture2D(uSampler,\x20uv);\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Blur\x20calculations\x0a\x20\x20\x20\x20for(\x20float\x20d=0.0;\x20d<Pi;\x20d+=Pi/Directions)\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20for(float\x20i=1.0/Quality;\x20i<=1.0;\x20i+=1.0/Quality)\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Color\x20+=\x20texture2D(\x20uSampler,\x20uv+vec2(cos(d),sin(d))*Radius*i);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20//\x20Output\x20to\x20screen\x0a\x20\x20\x20\x20Color\x20/=\x20Quality\x20*\x20Directions;\x0a\x20\x20\x20\x20return\x20Color;\x0a}\x0avec4\x20usm(vec2\x20vTextureCoord,\x20float\x20factor)\x20{\x0a\x20\x20\x20\x20vec4\x20originColor\x20=\x20texture2D(uSampler,\x20vTextureCoord);\x0a\x20\x20\x20\x20//\x20if\x20(factor\x20==\x200.)\x20{\x0a\x20\x20\x20\x20//\x20\x20\x20\x20\x20return\x20originColor;\x0a\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20vec4\x20gaussianColor\x20=\x20gaussianBlur(vTextureCoord,\x203.0);\x0a\x20\x20\x20\x20return\x20gaussianColor\x20*\x20-factor\x20+\x20originColor\x20*\x20(1.0\x20+\x20factor);\x0a}\x0a\x0a\x0avoid\x20main(void)\x0a{\x20\x20\x20\x0a\x0a\x20\x20\x20gl_FragColor\x20=\x20usm(vTextureCoord,\x20intensity);\x0a}\x0a','fill-opacity','currentTarget','save2Offline','aFrame','logs','route','enumerable','startAuth','call','filterIntensity','animation-duration','offset-path','forehead','success','This\x20browser\x20does\x20not\x20have\x20microphone\x20permission,\x20please\x20go\x20to\x20Settings\x20-\x20Privacy\x20turn\x20Microphone\x20on','aSamplerSize','sort','线性光','[object\x20Object]','font-variant-numeric','Invalid\x20image\x20input',')\x20AppleWebKit/603.1.30\x20(KHTML,\x20like\x20Gecko)\x20Mobile/14E8301\x20MicroMessenger/6.6.0\x20MiniGame\x20NetType/WIFI\x20Language/','align-content','Screen','url','background-size','/speed/custom','node','_initing','__init2','8.0.29','margin-top','_localID','premultiplyTintToRgba','logCreated','updateTransform','BaseTexture','hackRequest','insertLog','PIN_LIGHT','1476IuGClf','view-box','AXIS_XR','100%','onTouchMove','timeout','flag_2','quad','getVideoDecoder','cos','_cy','_angleMap','getLoader','基础库加载失败','pointerup','getEntries','repeat','ext1','create','_audioType','pointercancel','observe','border-right-width','addIndex','angle','1.0.23-12','target','drawElements','grid-column-gap','initOfflineLog','whiteList','event','timeMap','freq','OFF','createTexture','scale','string','event\x20dispatch','__config.json','vec3\x20blendNormal(vec3\x20base,\x20vec3\x20blend)\x20{\x0a\x09return\x20blend;\x0a}\x0afloat\x20blendNormal(float\x20base,\x20float\x20blend)\x20{\x0a\x09return\x20blend;\x0a}\x0a\x0avec3\x20blendNormal(vec3\x20base,\x20vec3\x20blend,\x20float\x20opacity)\x20{\x0a\x09return\x20(blendNormal(base,\x20blend)\x20*\x20opacity\x20+\x20base\x20*\x20(1.0\x20-\x20opacity));\x0a}\x0a\x0a\x0a','当前浏览器不支持,若Chrome请开启浏览器硬件加速','reportAssetSpeed','img','pageNavigationStartTime','Failed\x20to\x20execute\x20\x27send\x27\x20on\x20\x27XMLHttpRequest\x27:\x20The\x20object\x27s\x20state\x20must\x20be\x20OPENED.','networkType','mincutoff','stream\x20finishing','transform-style','HardMix','unpatch'];a0a=function(){return Bh;};return a0a();}function r(b){var B8=a0b,d=n[b];if(void 0x0!==d)return d[B8(0x704)];var f=n[b]={'id':b,'loaded':!0x1,'exports':{}};return e[b][B8(0x8fb)](f[B8(0x704)],f,f[B8(0x704)],r),f[B8(0x544)]=!0x0,f[B8(0x704)];}function a0b(a,b){var c=a0a();return a0b=function(d,e){d=d-0x15a;var f=c[d];return f;},a0b(a,b);}r['m']=e,t=[],r['O']=(b,d,f,g)=>{var B9=a0b;if(!d){var h=0x1/0x0;for(p=0x0;p<t['length'];p++){for(var [d,f,g]=t[p],j=!0x0,k=0x0;k<d[B9(0x4ae)];k++)(!0x1&g||h>=g)&&Object[B9(0x8c8)](r['O'])['every'](q=>r['O'][q](d[k]))?d[B9(0x5c3)](k--,0x1):(j=!0x1,g<h&&(h=g));if(j){t[B9(0x5c3)](p--,0x1);var m=f();void 0x0!==m&&(b=m);}}return b;}g=g||0x0;for(var p=t['length'];p>0x0&&t[p-0x1][0x2]>g;p--)t[p]=t[p-0x1];t[p]=[d,f,g];},r['n']=b=>{var Ba=a0b,d=b&&b['__esModule']?()=>b[Ba(0x19d)]:()=>b;return r['d'](d,{'a':d}),d;},r['d']=(b,d)=>{var Bb=a0b;for(var f in d)r['o'](d,f)&&!r['o'](b,f)&&Object[Bb(0x85d)](b,f,{'enumerable':!0x0,'get':d[f]});},r['g']=(function(){var Bc=a0b;if(Bc(0x804)==typeof globalThis)return globalThis;try{return this||new Function('return\x20this')();}catch(b){if(Bc(0x804)==typeof window)return window;}}()),r['o']=(b,d)=>Object['prototype']['hasOwnProperty'][a0Bd(0x8fb)](b,d),r['r']=b=>{var Be=a0Bd;Be(0x30a)!=typeof Symbol&&Symbol[Be(0x3de)]&&Object[Be(0x85d)](b,Symbol[Be(0x3de)],{'value':Be(0x2be)}),Object[Be(0x85d)](b,Be(0x58a),{'value':!0x0});},r[a0Bd(0x8cc)]=b=>(b[a0Bd(0x5fc)]=[],b[a0Bd(0x53c)]||(b[a0Bd(0x53c)]=[]),b),((()=>{var Bg=a0Bd,b={0x33a:0x0};r['O']['j']=g=>0x0===b[g];var d=(g,h)=>{var Bf=a0b,j,k,[m,p,q]=h,v=0x0;if(m[Bf(0x89f)](x=>0x0!==b[x])){for(j in p)r['o'](p,j)&&(r['m'][j]=p[j]);if(q)var w=q(r);}for(g&&g(h);v<m['length'];v++)k=m[v],r['o'](b,k)&&b[k]&&b[k][0x0](),b[k]=0x0;return r['O'](w);},f=self[Bg(0x5d2)]=self[Bg(0x5d2)]||[];f[Bg(0x280)](d[Bg(0x3a7)](null,0x0)),f[Bg(0x3ef)]=d['bind'](null,f[Bg(0x3ef)][Bg(0x3a7)](f));})());var i=r['O'](void 0x0,[0x287,0x141],()=>r(0x1ea3)),o=(i=r['O'](i))['ry'],a=i['Cz'],s=i['T$'],c=i['Mj'],l=i['UZ'],u=i['bk'];export{o as ArSdk,a as BEAUTIFY_OPTIONS,s as BLEND_MODES,c as ENTRY_TYPES,l as EntryType,u as OUTPUT_TYPES};
1
+ var self = wx;var t,e={3483:function(t){t.exports=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};function e(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function r(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){var c=[a,s];if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,(c=i?[2&c[0],i.value]:c)[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((i=0<(i=o.trys).length&&i[i.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3]))o.label=c[1];else if(6===c[0]&&o.label<i[1])o.label=i[1],i=c;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(c)}}c=e.call(t,o)}catch(s){c=[6,s],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function i(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),n=1;n<arguments.length;n++)if(null!=(r=arguments[n]))for(var r=Object(r),i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],c=Object.getOwnPropertyDescriptor(r,s);null!=c&&c.enumerable&&(e[s]=r[s])}return e}});var o=["ext1","ext2","ext3","level","trace","tag","seq","code"],a=(c.prototype.indexOf=function(t,e){for(var n=0;n<t.length;n++)if(t[n].callback===e)return n;return-1},c.prototype.on=function(t,e,n){var r;if(void 0===n&&(n=0),this)return(r=this.eventsList[t])||(this.eventsList[t]=[],r=this.eventsList[t]),-1===this.indexOf(r,e)&&r.push({name:t,type:n||0,callback:e}),this},c.prototype.one=function(t,e){this.on(t,e,1)},c.prototype.remove=function(t,e){if(this){var n=this.eventsList[t];if(n){if(e)return n.length&&(e=this.indexOf(n,e),n.splice(e,1)),this;try{delete this.eventsList[t]}catch(t){}}return null}},c.prototype.clear=function(){this.eventsList={}},c),s=function(t){if(!t||0===t.length)return"{}";t=Array.isArray(t)?t:[t];var e=Object.keys(t[0]),n={},r=(e.forEach((function(e){n[e]=t.map((function(t){return t[e]}))})),n.count=t.length,n);if("string"==typeof r)return r;try{return JSON.stringify(r,_())||"undefined"}catch(r){return"error happen when aegis stringify: \n "+r.message+" \n "+r.stack}};function c(){var t=this;this.emit=function(e,n){if(t){var r;if(null!=(i=t.eventsList[e])&&i.length)for(var i=i.slice(),o=0;o<i.length;o++){r=i[o];try{var a=r.callback.apply(t,[n]);if(1===r.type&&t.remove(e,r.callback),!1===a)break}catch(e){throw e}}return t}},this.eventsList={}}function l(t,e){return"string"==typeof t?t.split("?")[e?1:0]||"":t}function u(t){return"string"==typeof t&&t.startsWith("//")?"undefined"!=typeof location&&"https:"===location.protocol:/^https/.test(t)}function h(t,e,n){var r,i;try{if("function"==typeof(null==e?void 0:e.retCodeHandler))return{code:void 0===(o=(i=e.retCodeHandler(t,null==n?void 0:n.url,null==n?void 0:n.ctx)||{}).code)?"unknown":o,isErr:i.isErr};"string"==typeof t&&(t=JSON.parse(t)),"function"==typeof(null==(r=null==e?void 0:e.ret)?void 0:r.join)&&(v=[].concat(e.ret.map((function(t){return t.toLowerCase()}))));var o,a=Object.getOwnPropertyNames(t).filter((function(t){return-1!==v.indexOf(t.toLowerCase())}));return a.length?{code:""+(o=t[a[0]]),isErr:0!==o&&"0"!==o}:{code:"unknown",isErr:!1}}catch(t){return{code:"unknown",isErr:!1}}}function d(t,e){void 0===e&&(e=3);var n,r,i,o="";return Array.isArray(t)?(o+="[",n=t.length,t.forEach((function(t,r){var i,a;o=(o+="object"==typeof t&&1<e?d(t,e-1):(a="",a+="undefined"==(i=typeof t)||"symbol"==i||"function"==i?"null":"string"==i||"object"==i?'"'+t+'"':t))+(r===n-1?"":",")})),o+="]"):t instanceof Object?(o="{",r=Object.keys(t),i=r.length,r.forEach((function(n,a){var s,c,l;"object"==typeof t[n]&&1<e?o+='"'+n+'":'+d(t[n],e-1):o+=(l="","string"==(c=typeof(s=t[n]))||"object"==c?l+='"'+n+'":"'+s+'"':"function"==typeof s?l+='"'+n+'":"function '+s.name+'"':"symbol"==typeof s?l+='"'+n+'":"symbol"':"number"!=typeof s&&"boolean"!=c||(l+='"'+n+'": '+s),l),o+=a===i-1||a<i-1&&void 0===t[r[a+1]]?"":","})),o+="}"):o+=t,o}var f,p,g,m,y,v=["ret","retcode","code","errcode"],_=function(){var t=new WeakSet;return function(e,n){if(n instanceof Error)return"Error.message: "+n.message+" \n Error.stack: "+n.stack;if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular "+(e||"root")+"]";t.add(n)}return n}},b=function(t){if("string"==typeof t)return t;try{return t instanceof Error?(JSON.stringify(t,_(),4)||"undefined").replace(/"/gim,""):JSON.stringify(t,_(),4)||"undefined"}catch(t){return"error happen when aegis stringify: \n "+t.message+" \n "+t.stack}};function x(t,e){var n,r=[],i=t.config;return t.lifeCycle.on("destroy",(function(){r.length=0})),function(o,a){Array.isArray(o)?r=r.concat(o):r.push(o),e&&r.length>=e||t.sendNow&&0<r.length?(r=U(r),a(r.splice(0,r.length)),n&&clearTimeout(n)):(n&&clearTimeout(n),n=setTimeout((function(){n=null,0<(r=U(r)).length&&a(r.splice(0,r.length))}),i.delay))}}function w(t,e){return Array.isArray(t)?e(t.map((function(t){return e=n(n({},t),{msg:"string"==typeof t.msg?t.msg:[].concat(t.msg).map(b).join(" ")}),o.forEach((function(t){e[t]||delete e[t]})),e;var e}))):e([n(n({},t),{msg:"string"==typeof t.msg?t.msg:b(t.msg)})])}function T(t,e){return function(r,i){var a,s,c,l=Array.isArray(r),u=l?r:[r],h=(t.lifeCycle.emit("beforeRequest",r),t.config.beforeRequest);(u="function"==typeof h?u.map((function(t){try{var n=h({logs:t,logType:e});return(null==n?void 0:n.logType)===e&&null!=n&&n.logs?n.logs:!1!==n&&t}catch(n){return t}})).filter((function(t){return!1!==t})):u).length&&(a=u,r=o,!Array.isArray(a)||a.length<=1||(s=[],c=[],!(c="string"==typeof r?[r]:r)||c.length<=0||(c.forEach((function(t){a.forEach((function(e){null!=e&&e[t]&&s.push(t)}))})),0<s.length&&(a=a.map((function(t){var e={};return s.forEach((function(t){e[t]=""})),n(n({},e),t)}))))),u=a,i(l?u:u[0]))}}function C(t){return function(e,n){t.lifeCycle.emit("modifyRequest",e);var r=t.config.modifyRequest;if("function"==typeof r)try{var i=r(e);"object"==typeof i&&"url"in i&&(e=i)}catch(e){console.error(e)}n(e)}}function S(t){return function(e,n){t.lifeCycle.emit("afterRequest",e);var r=t.config.afterRequest;"function"==typeof r&&!1===r(e)||n(e)}}function E(t){if(t&&t.reduce&&t.length)return 1===t.length?function(e,n){t[0](e,n||V)}:t.reduce((function(t,e){return function(n,r){return void 0===r&&(r=V),t(n,(function(t){return null==e?void 0:e(t,r)}))}}));throw new TypeError("createPipeline need at least one function param")}function k(t,e){Object.getOwnPropertyNames(t).forEach((function(n){"function"==typeof t[n]&&"constructor"!==n&&(e?e[n]="sendPipeline"===n?function(){return function(){}}:function(){}:t[n]=function(){})}))}function P(t){try{var e,n,r,i="";return i=t.pageUrl||(n=(e=getCurrentPages())[e.length-1]||{},o=n.options,r=Object.keys(o).length?"?"+Object.keys(o).map((function(t){return t+"="+o[t]})).join("&"):"",n.route?n.route+r:""),i="function"==typeof t.urlHandler?t.urlHandler():i}catch(t){return""}var o}function R(t,e){if("string"==typeof t&&"string"==typeof e){if(t===e)return 1;for(var n=t.split("."),r=e.split("."),i=Math.max(n.length,r.length),o=0;o<i;o++){var a=~~n[o],s=~~r[o];if(a<s)return;if(s<a)return 1}}}function O(t){return R(Y=Y||G.getSystemInfoSync().SDKVersion,"1.1.1")&&G.canIUse?G.canIUse(t):!!G[t]}function A(t){for(var e,n={unknown:/unknown|none/i,wifi:/wifi/i,net2g:/2g/i,net3g:/3g/i,net4g:/4g/i,net5g:/5g/i,net6g:/6g/i},r=g.unknown,i=0;i<Object.keys(n).length;i++){var o=Object.keys(n)[i];if(null!=(e=n[o])&&e.test(t)){r=g[o];break}}return r}function D(t){var e=t.apiName,n=et[e];n?n.hackCloudReq.addCallback(t):(n=tt.cloud[e],et[e]={hackCloudReq:new nt(t),originApi:n}),et[e]}function I(t){var e=t.apiName,n=it[e];n?n.hackReq.addCallback(t):(n=wx[e],it[e]={hackReq:new ot(t),originApi:n}),it[e]}(q=f=f||{}).INFO_ALL="-1",q.API_RESPONSE="1",q.INFO="2",q.ERROR="4",q.PROMISE_ERROR="8",q.AJAX_ERROR="16",q.SCRIPT_ERROR="32",q.IMAGE_ERROR="64",q.CSS_ERROR="128",q.CONSOLE_ERROR="256",q.MEDIA_ERROR="512",q.RET_ERROR="1024",q.REPORT="2048",q.PV="4096",q.EVENT="8192",q.PAGE_NOT_FOUND_ERROR="16384",q.WEBSOCKET_ERROR="32768",q.BRIDGE_ERROR="65536",(q=p=p||{})[q.android=1]="android",q[q.ios=2]="ios",q[q.windows=3]="windows",q[q.macos=4]="macos",q[q.linux=5]="linux",q[q.devtools=6]="devtools",q[q.other=100]="other",(q=g=g||{})[q.unknown=100]="unknown",q[q.wifi=1]="wifi",q[q.net2g=2]="net2g",q[q.net3g=3]="net3g",q[q.net4g=4]="net4g",q[q.net5g=5]="net5g",q[q.net6g=6]="net6g",(q=m=m||{}).LOG="log",q.SPEED="speed",q.PERFORMANCE="performance",q.OFFLINE="offline",q.WHITE_LIST="whiteList",q.VITALS="vitals",q.PV="pv",q.CUSTOM_PV="customPV",q.EVENT="event",q.CUSTOM="custom",q.SDK_ERROR="sdkError",q.SET_DATA="setData",q.LOAD_PACKAGE="loadPackage",(q=y=y||{}).production="production",q.development="development",q.gray="gray",q.pre="pre",q.daily="daily",q.local="local",q.test="test",q.others="others";var F,L,M,N,j,U=function(t){return t.filter((function(e,n){return"static"!==e.type||!t.find((function(t,r){return e.url===t.url&&200===e.status&&n<r}))}))},B=function(t){t.level===f.INFO_ALL&&(t.level=f.INFO)},z=function(t){return(Array.isArray(t)?t:[t]).map((function(t){return Object.getOwnPropertyNames(t).reduce((function(e,n){return"ctx"!==n&&(e[n]=t[n]),e}),{level:f.INFO,msg:""})}))},W=function(t){return function(e){return t.sendPipeline([function(e,n){return n({url:t.config.url||"",data:s(z(e)),method:"post",contentType:"application/json",type:m.LOG,log:e,requestConfig:{timeout:5e3},success:function(){var r=t.config.onReport;"function"==typeof r&&e.forEach((function(t){r(t)})),"function"==typeof n&&n([])},fail:function(e){"403 forbidden"===e&&t.destroy()}})}],m.LOG)(e)}},V=function(){},q=(Object.defineProperty(wt.prototype,"__version__",{get:function(){return console.warn("__version__ has discard, please use version"),"1.36.3"},enumerable:!1,configurable:!0}),Object.defineProperty(wt.prototype,"LogType",{get:function(){return console.warn("LogType has discard, please use logType"),f},enumerable:!1,configurable:!0}),wt.prototype.init=function(t){this.setConfig(t);for(var e=0;e<wt.installedPlugins.length;e++)try{wt.installedPlugins[e].patch(this)}catch(t){this.sendSDKError(t)}this.lifeCycle.emit("onInited")},wt.prototype.setConfig=function(t){Object.assign(this.config,t);var e=(t=this.config).id,n=t.uin,r=t.version,i=t.ext1,o=t.ext2,a=t.ext3,s=t.aid,c=void 0===(l=t.env)?"production":l,l=t.pageUrl;return t=this.bean.id!==e||this.bean.uin!==n||this.bean.aid!==s,this.bean.id=e||"",this.bean.uin=n||"",this.bean.version=r||"1.36.3",this.bean.aid=s||"",this.bean.env=function(){switch(c){case y.production:case y.development:case y.gray:case y.pre:case y.daily:case y.local:case y.test:case y.others:return 1;default:return}}()?c:y.others,l&&this.extendBean("from",encodeURIComponent(l)),i&&this.extendBean("ext1",encodeURIComponent(i)),o&&this.extendBean("ext2",encodeURIComponent(o)),a&&this.extendBean("ext3",encodeURIComponent(a)),t&&this.lifeCycle.emit("onConfigChange",this.config),this.config},wt.use=function(t){-1===wt.installedPlugins.indexOf(t)&&t.aegisPlugin&&wt.installedPlugins.push(t)},wt.unuse=function(t){-1!==(t=wt.installedPlugins.indexOf(t))&&wt.installedPlugins.splice(t,1)},wt.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={level:f.INFO,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0]),{level:f.INFO}),this.normalLogPipeline(r)},wt.prototype.infoAll=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={level:f.INFO_ALL,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0]),{level:f.INFO_ALL}),this.normalLogPipeline(r)},wt.prototype.report=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={level:f.REPORT,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0])),this.normalLogPipeline(r)},wt.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={level:f.ERROR,msg:t};1===t.length&&t[0].msg&&Object.assign(r,n({},t[0]),{level:f.ERROR}),this.normalLogPipeline(r)},wt.prototype.speedLogPipeline=function(t){throw new Error('You need to override "speedLogPipeline" method')},wt.prototype.reportPv=function(t){var e,n=this;t&&(console.warn("reportPv is deprecated, please use reportEvent"),e=""+Object.getOwnPropertyNames(this.bean).filter((function(t){return"id"!==t})).map((function(t){return t+"="+n.bean[t]})).join("&"),this.sendPipeline([function(r,i){i({url:n.config.url+"/"+t+"?"+e,addBean:!1,type:m.CUSTOM_PV,fail:function(t){"403 forbidden"===t&&n.destroy()}})}],m.CUSTOM_PV)(null))},wt.prototype.reportEvent=function(t){t&&((t="string"==typeof t?{name:t,ext1:this.config.ext1||"",ext2:this.config.ext2||"",ext3:this.config.ext3||""}:t).name?this.eventPipeline(t):console.warn("reportEvent params error"))},wt.prototype.reportTime=function(t,e){if("object"==typeof t)return this.reportT(t);"string"==typeof t?"number"==typeof e?e<0||6e4<e?console.warn("reportTime: duration must between 0 and 60000"):this.submitCustomTime(t,e):console.warn("reportTime: second param must be number"):console.warn("reportTime: first param must be a string")},wt.prototype.reportT=function(t){var e=t.name,n=t.duration,r=void 0===(r=t.ext1)?"":r,i=void 0===(i=t.ext2)?"":i,o=void 0===(o=t.ext3)?"":o;if(t=t.from,"string"==typeof e&&"number"==typeof n&&"string"==typeof r&&"string"==typeof i&&"string"==typeof o){if(!(n<0||6e4<n))return this.submitCustomTime(e,n,r,i,o,void 0===t?"":t);console.warn("reportTime: duration must between 0 and 60000")}else console.warn("reportTime: params error")},wt.prototype.time=function(t){"string"==typeof t?this.timeMap[t]?console.warn("Timer "+t+" already exists"):this.timeMap[t]=Date.now():console.warn("time: first param must be a string")},wt.prototype.timeEnd=function(t){"string"==typeof t?this.timeMap[t]?(this.submitCustomTime(t,Date.now()-this.timeMap[t]),delete this.timeMap[t]):console.warn("Timer "+t+" does not exist"):console.warn("timeEnd: first param must be a string")},wt.prototype.submitCustomTime=function(t,e,n,r,i,o){this.customTimePipeline({name:t,duration:e,ext1:n||this.config.ext1,ext2:r||this.config.ext2,ext3:i||this.config.ext3,from:o||void 0})},wt.prototype.extendBean=function(t,e){this.bean[t]=e},wt.prototype.sendPipeline=function(t,e){var n,r=this;return E(i([function(t,e){if("number"!=typeof n.config.random&&(console.warn("random must in [0, 1], default is 1."),n.config.random=1),!n.isHidden||!n.isGetSample)if(n.isGetSample)n.isHidden||e(t);else{if(n.isGetSample=!0,Math.random()<n.config.random)return n.isHidden=!1,e(t);n.isHidden=!0}},T(n=this,e)],t,[C(this),function(t,e){r.request(t,(function(){for(var n,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];r.failRequestCount=0,e({isErr:!1,result:o,logType:null==t?void 0:t.type,logs:null==t?void 0:t.log}),null!=(n=null==t?void 0:t.success)&&n.call.apply(n,i([t],o))}),(function(){for(var n,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];10<=++r.failRequestCount&&r.destroy(),e({isErr:!0,result:o,logType:null==t?void 0:t.type,logs:null==t?void 0:t.log}),null!=(n=null==t?void 0:t.fail)&&n.call.apply(n,i([t],o))}))},S(this)]))},wt.prototype.send=function(t,e,n){var r=this;return E([C(this),function(t,i){r.request(t,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];i({isErr:!1,result:n,logType:t.type,logs:t.log}),null!=e&&e.apply(void 0,n)}),(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];i({isErr:!0,result:e,logType:t.type,logs:t.log}),null!=n&&n.apply(void 0,e)}))},S(this)])(t)},wt.prototype.ready=function(t,e,n){throw new Error('You need to override "ready" method')},wt.prototype.request=function(t,e,n){throw new Error('You need to override "request" method')},wt.prototype.sendSDKError=function(t){var e=this;this.sendPipeline([function(t,n){n({url:e.config.url+"?id=1085&msg[0]="+encodeURIComponent(b(t))+"&level[0]=2&from="+e.config.id+"&count=1&version="+e.config.id+"(1.36.3)",addBean:!1,method:"get",type:m.SDK_ERROR,log:t})}],m.SDK_ERROR)(t)},wt.prototype.destroy=function(t){void 0===t&&(t=!1);var e,n,r=wt.instances.indexOf(this);-1!==r&&wt.instances.splice(r,1);for(var i=wt.installedPlugins.length-1;0<=i;i--)try{wt.installedPlugins[i].unpatch(this)}catch(t){this.sendSDKError(t)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),t)e=this,n=Object.getOwnPropertyDescriptors(e),Object.keys(n).forEach((function(t){n[t].writable&&(e[t]=null)})),Object.setPrototypeOf(this,null);else{for(var o=this;o.constructor!==Object&&k(o,this),o=Object.getPrototypeOf(o););0===wt.instances.length&&(k(r=Object.getPrototypeOf(this).constructor),k(wt))}},wt.version="1.36.3",wt.instances=[],wt.logType=f,wt.environment=y,wt.installedPlugins=[],wt),H=(xt.prototype.patch=function(t){this.canUse(t)&&this.exist(t)&&(this.instances.push(t),this.triggerInit(t),this.triggerOnNewAegis(t))},xt.prototype.unpatch=function(t){-1!==(t=this.instances.indexOf(t))&&(this.instances.splice(t,1),0===this.instances.length&&this.uninstall())},xt.prototype.countInstance=function(){return this.instances.length},xt.prototype.uninstall=function(){var t;null!=(t=null==(t=this.option)?void 0:t.destroy)&&t.apply(this)},xt.prototype.walk=function(t){var e=this;this.instances.forEach((function(n){var r=e.canUse(n);r&&t(n,r)}))},xt.prototype.canUse=function(t){return!(!(t=this.getConfig(t))||"object"!=typeof t)||!!t},xt.prototype.getConfig=function(t){return null==(t=t.config)?void 0:t[this.name]},xt.prototype.exist=function(t){return-1===this.instances.indexOf(t)},xt.prototype.triggerInit=function(t){var e;this.inited||(this.inited=!0,null!=(e=null==(e=this.option)?void 0:e.init)&&e.call(this.option,this.getConfig(t)))},xt.prototype.triggerOnNewAegis=function(t){var e;null!=(e=null==(e=this.option)?void 0:e.onNewAegis)&&e.call(this.option,t,this.getConfig(t))},xt),G=wx||qq,Y="",Z=new H({name:"offlineLog",onNewAegis:function(t){if(G.getFileSystemManager)try{var e=t.config,n=e.id,r=void 0===n?"":n,i=e.uin,o=void 0===i?0:i,a=e.offlineUrl,s=void 0===a?"":a,c=e.offlineLogLimit,l=new K({limit:c});t.lifeCycle.on("beforeWrite",(function(e){l.save2Offline(e=void 0===e?[]:e,t.config)})),l.ready((function(e){var n=(t.bean||{}).aid,i=void 0===n?"":n;!e&&r&&(o||i)&&t.send({url:s+"/offlineAuto",type:m.OFFLINE,log:m.OFFLINE},(function(n){var a=(null==n?void 0:n.data).secretKey;a&&!e&&l.getLogs({id:r,uin:o},(function(e,n){e?console.error(e):t.send({url:s+"/offlineLog",data:{logs:n,secretKey:a,id:r,uin:o,aid:i},method:"post",type:m.OFFLINE,log:n},(function(){l.clearLogs()}))}))}))}))}catch(t){console.error(t)}else console.warn("[aegis-mp-sdk]unsupport getFileSystemManager offline log not work!")}}),K=(bt.prototype.getLogs=function(t,e){var n=this.fileSystem,r=this.filePath;n.readFile({filePath:r,encoding:"utf8",fail:function(t){console.error(t)},success:function(t){t=(void 0===(t=t.data)?"":t).toString().split("\n").filter((function(t){return t})).map((function(t){return JSON.parse(t)})),e(null,t)}})},bt.prototype.checkLimit=function(t,e){void 0===e&&(e=function(){});var n=this.fileSystem,r=this.filePath,i=this.limitSize;n.readFile({filePath:r,encoding:"utf8",success:function(o){if((o=(o=void 0===(o=o.data)?"":o).toString()+t).length>i){for(var a=o.split("\n"),s="",c=a.length-1;0<=c&&!(a[c]&&(s=a[c]+"\n"+s).length>i);c--);n.writeFile({filePath:r,data:s,success:e})}else n.appendFile({data:t,filePath:r,encoding:"utf8",success:e,fail:function(t){console.error(t)}})}})},bt),X=new H({name:"device",onNewAegis:function(t){return e=this,o=function(){return r(this,(function(e){return this.setSystemInfo(t),this.refreshNetwork(t),this.setNetworkChange(t),[2]}))},new(i=(i=n=void 0)||Promise)((function(t,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i((function(t){t(n)}))).then(a,s)}c((o=o.apply(e,n||[])).next())}));var e,n,i,o},setSystemInfo:function(t){var e=this;try{O("getSystemInfo")&&G.getSystemInfo({success:function(n){var r=n.platform,i=n.model,o=n.windowHeight,a=n.windowWidth,s=void 0===(s=n.screenWidth)?0:s;n=void 0===(n=n.screenHeight)?0:n,t.extendBean("platform",e.getPlatFormType(r)),t.extendBean("model",i),t.extendBean("vp",Math.round(a)+" * "+Math.round(o)),t.extendBean("sr",Math.round(s)+" * "+Math.round(n))}})}catch(t){}},getPlatFormType:function(t){for(var e,n={android:/android/i,ios:/ios/i,windows:/windows/i,macos:/mac/i,devtools:/devtools/i},r=p.other,i=0;i<Object.keys(n).length;i++){var o=Object.keys(n)[i];if(null!=(e=n[o])&&e.test(t)){r=p[o];break}}return r},setNetworkChange:function(t){O("onNetworkStatusChange")&&G.onNetworkStatusChange((function(e){e=A(e.networkType),t.extendBean("netType",e)}))},setNetworkType:function(t){O("getNetworkType")&&G.getNetworkType({success:function(e){e=A(e.networkType),t.extendBean("netType",e)}})},refreshNetwork:function(t){var e=this;this.timer&&clearTimeout(this.timer),this.setNetworkType(t),this.timer=setTimeout((function(){e.refreshNetwork(t)}),1e4)}}),$=G.request,J=(e(_t,j=q),Object.defineProperty(_t.prototype,"getBean",{get:function(){var t=this;return this.bean?Object.getOwnPropertyNames(this.bean).map((function(e){return e+"="+t.bean[e]})).join("&")+"&from="+encodeURIComponent(P(this.config)):"from="+encodeURIComponent(P(this.config))},enumerable:!1,configurable:!0}),_t.prototype.initOfflineLog=function(){_t.use(Z)},_t.prototype.uploadLogs=function(t,e){this.lifeCycle.emit("uploadLogs",t=void 0===t?{}:t,e=void 0===e?{}:e)},_t.prototype.reportPv=function(t){var e,n=this;t&&(e=Object.getOwnPropertyNames(this.bean).filter((function(t){return"id"!==t})).map((function(t){return t+"="+n.bean[t]})).join("&")+"&from="+encodeURIComponent(P(this.config)),this.send({url:this.config.url+"/"+t+"?"+e,addBean:!1,type:m.CUSTOM_PV,log:m.CUSTOM_PV},(function(){}),(function(){})))},_t.sessionID="session-"+Date.now(),_t.asyncPluginIndex=0,q=_t,new H({name:"aid",onNewAegis:function(t){this.initAid((function(e){t.bean.aid=e,t.config.aid=e}))},initAid:function(t){G.getStorage({key:"AEGIS_ID",success:function(e){t(e.data)},fail:function(){var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}));G.setStorage({key:"AEGIS_ID",data:e,success:function(){t(e)}})}})}})),Q=(vt.prototype.addCallback=function(t){t&&this.callbacks.push(t)},vt.prototype.prefixHandler=function(t){return n(n({},t),{aegisRequestStartTime:+new Date})},vt.prototype.successHandler=function(t,e){var n;this.callbacks.forEach((function(n){var r;try{null!=(r=n.success)&&r.call(n,t,e)}catch(n){}})),null!=(n=e.success)&&n.call(e,t,e)},vt.prototype.failHandler=function(t,e){var n;this.callbacks.forEach((function(n){var r;try{null!=(r=n.fail)&&r.call(n,t,e)}catch(n){}})),null!=(n=e.fail)&&n.call(e,t,e)},vt.prototype.completeHandler=function(t,e){var n;this.callbacks.forEach((function(n){var r;try{null!=(r=n.complete)&&r.call(n,t,e)}catch(n){}})),null!=(n=e.complete)&&n.call(e,t,e)},vt.prototype.override=function(){try{this.defineApiProperty()}catch(t){console.warn("cannot override `"+this.apiName+"`, error is: "+t)}finally{this.isOverride=!0}},vt),tt=wx||qq,et={},nt=(e(yt,N=Q),yt.prototype.defineApiProperty=function(){var t=this;tt.cloud&&tt.cloud[this.apiName]&&Object.defineProperty(tt.cloud,this.apiName,{get:function(){return t.hackHandler.bind(t)}})},yt.prototype.hackHandler=function(t){var e=this,r=this.prefixHandler(t);return new Promise((function(t,i){var o=null==(o=et[e.apiName])?void 0:o.originApi;null!=o&&o(n(n({},r),{success:function(n){e.successHandler(n,r),t(n)},fail:function(t){e.failHandler(t,r),i(t)},complete:function(t){e.completeHandler(t,r)}}))}))},yt),rt=wx||qq,it={},ot=(e(mt,M=Q),mt.prototype.defineApiProperty=function(){var t=this;Object.defineProperty(rt,this.apiName,{get:function(){return t.hackHandler.bind(t)}})},mt.prototype.hackHandler=function(t){var e=this,r=this.prefixHandler(t);return null==(t=null==(t=it[this.apiName])?void 0:t.originApi)?void 0:t(n(n({},r),{success:function(t){e.successHandler(t,r)},fail:function(t){e.failHandler(t,r)},complete:function(t){e.completeHandler(t,r)}}))},mt),at=new H({name:"reportApiSpeed",override:!1,onNewAegis:function(t){this.override||(this.override=!0,this.hackRequest(t.config),this.overrideCallFunction(t.config),this.overrideCallContainer(t.config))},hackRequest:function(t){var e=this;I({apiName:"request",success:function(n,r){var i,o,a,s;t.hostUrl&&-1<r.url.indexOf(t.hostUrl)||(i={method:r.method||"get",url:l(r.url),duration:Date.now()-r.aegisRequestStartTime,status:n.statusCode||0,nextHopProtocol:"",isHttps:u(r.url),type:"fetch"},o=null==(o=t.api)?void 0:o.apiDetail,a=(s=h(n.data,t.api,{url:r.url,ctx:n})||{}).code,s=s.isErr,r="req url: "+i.url+" \n \nreq method: "+i.method+" \n \nreq param: "+(o?b(r.data):"")+" \n \nres duration: "+i.duration+"ms \n \nres status: "+(n.statusCode||0)+" \n \nres retcode: "+a+" \n \nres data: "+(o?d(n.data):""),e.publishNormalLog({msg:r,level:f.API_RESPONSE,ctx:n}),i.ret=a,i.isErr=+s,e.publishSpeedLog(i),s&&e.publishNormalLog({msg:r,level:f.RET_ERROR,ctx:n}))},fail:function(n,r){t.hostUrl&&-1<r.url.indexOf(t.hostUrl)||(r={method:r.method||"get",url:l(r.url),duration:Date.now()-r.aegisRequestStartTime,status:0,nextHopProtocol:"",isHttps:u(r.url),type:"fetch"},e.publishSpeedLog(r))}})},overrideCallFunction:function(t){var e=this;D({apiName:"callFunction",success:function(n,r){e.cloudSuccessCallback(t,r,n,"callFunction")},fail:function(t,n){n={method:"call",url:"wx.cloud.callFunction."+n.name,duration:Date.now()-n.aegisRequestStartTime,status:0,nextHopProtocol:"",type:"fetch",errMsg:t.errMsg,isHttps:!0},e.publishSpeedLog(n)}})},overrideCallContainer:function(t){var e=this;D({apiName:"callContainer",success:function(n,r){e.cloudSuccessCallback(t,r,n,"callContainer")},fail:function(t,n){n={method:"call",url:"wx.cloud.callContainer."+n.path,duration:Date.now()-n.aegisRequestStartTime,status:0,nextHopProtocol:"",type:"fetch",errMsg:t.errMsg,isHttps:!0},e.publishSpeedLog(n)}})},cloudSuccessCallback:function(t,e,n,r){var i="callFunction"===r?e.name:e.path,o="callFunction"===r?n.result:n.data,a=(i={method:"call",url:"wx.cloud."+r+"."+i,duration:Date.now()-e.aegisRequestStartTime,status:200,nextHopProtocol:"",type:"fetch",isHttps:!0},["apiName","aegisRequestStartTime","config","success","fail","complete"]),s=Object.keys(e).reduce((function(t,n){return a.includes(n)||(t[n]=e[n]),t}),{}),c=(r="callFunction"===r?(null==(r=n.data)?void 0:r.code)||0:n.statusCode,(l=h(o,t.api,{url:i.url,ctx:n})||{}).code),l=void 0!==(l=l.isErr)&&l;i.ret=c,i.isErr=+l,t=null==(c=t.api)?void 0:c.apiDetail,c="req url: "+i.url+"\n \nreq type: "+i.type+"\n \nreq params: "+(t?d(s):"")+"\n \nres status: "+r+"\n \nres retcode: "+i.ret+"\n \nres duration: "+i.duration+"ms \n \nres data: "+(t?d(o):"")+"\n ",this.publishNormalLog({msg:c,level:f.API_RESPONSE,ctx:n}),this.publishSpeedLog(i),l&&this.publishNormalLog({msg:c,level:f.RET_ERROR,ctx:n})},publishSpeedLog:function(t){this.$walk((function(e){e.speedLogPipeline(t)}))},publishNormalLog:function(t){this.$walk((function(e){e.normalLogPipeline(t)}))}}),st=wx||qq,ct=st.connectSocket,lt=(gt.prototype.addConfig=function(t){var e=t.send;t=t.onError,e&&this.sends.push(e),t&&this.onErrors.push(t)},gt.prototype.toHack=function(t){var e=this,r=(this.onErrors.forEach((function(e){t.onError(e)})),t.send);return Object.defineProperty(t,"send",{get:function(){return function(i){return new Promise((function(o){r.call(t,n(n({},i),{fail:function(t){e.sends.forEach((function(e){var n;null!=(n=e.fail)&&n.call(e,t,i)})),o(t)}}))}))}}}),t},gt),ut=(e(pt,L=Q),pt.prototype.addTaskConf=function(t){this.taskHack.addConfig(t)},pt.prototype.defineApiProperty=function(){var t=this;Object.defineProperty(st,"connectSocket",{get:function(){return t.hackHandler.bind(t)}})},pt.prototype.hackHandler=function(t){var e=this,r=this.prefixHandler(t);return t=ct(n(n({},r),{success:function(t){e.successHandler(t,r)},fail:function(t){e.failHandler(t,r)},complete:function(t){e.completeHandler(t,r)}})),this.taskHack.toHack(t),t},pt),ht=(Q=new H({name:"onError",onNewAegis:function(t){var e=G.getSystemInfoSync().SDKVersion;this.listenError(),this.hackNetWork(t),this.hackCloud(t),t.config.websocketHack&&R(e,"1.7.0")&&this.hackWsConnect()},listenError:function(){var t=this;"function"==typeof G.onError&&G.onError((function(e){e&&t.publishErrorLog({msg:e,level:f.ERROR})})),O("onUnhandledRejection")&&G.onUnhandledRejection((function(e){!(e=e.reason)||-1<JSON.stringify(e).indexOf("request:fail")||t.publishErrorLog({msg:e,level:f.PROMISE_ERROR})})),O("onPageNotFound")&&G.onPageNotFound((function(e){e&&t.publishErrorLog({msg:e,level:f.PAGE_NOT_FOUND_ERROR})}))},publishErrorLog:function(t){this.$walk((function(e){e.normalLogPipeline(t)}))},hackNetWork:function(t){for(var e=this,n=t.config,r=0,i=[{apiName:"request",complete:function(t,r){return e.requestCompleteError(t,r,n)}},{apiName:"uploadFile",complete:function(t,r){return e.uploadFileCompleteError(t,r,n)}},{apiName:"downloadFile",complete:function(t,r){return e.downloadFileCompleteError(t,r,n)}}];r<i.length;r++){var o;I({apiName:(o=i[r]).apiName,complete:o=o.complete})}},requestCompleteError:function(t,e,n){var r,i=t.errMsg,o=t.statusCode;n.hostUrl&&-1<(null==(r=e.url)?void 0:r.indexOf(n.hostUrl))||(r=this.getErrorType({errMsg:i,statusCode:o}))&&this.publishNetWorkError({apiName:"request",opts:e,res:t,config:n,type:r})},downloadFileCompleteError:function(t,e,n){var r=t.errMsg,i=t.statusCode,o=t.filePath,a=(t=t.tempFilePath,this.getErrorType({errMsg:r,statusCode:i}));a&&(n=null==(n=n.api)?void 0:n.apiDetail,this.publishErrorLog({msg:"AJAX_ERROR: downloadFile "+a+"\n \nres status: "+(i||0)+"\n \nres duration: "+(Date.now()-e.aegisRequestStartTime)+"ms\n \nres filePath: "+o+"\n \nres tempFilePath: "+t+"\n \nreq url: "+e.url+"\n \nreq method: "+(e.method||"get")+"\n \nreq param: "+(n?b(e.data):"")+"\n \nerrMsg: "+r.slice(0,1e3),level:f.AJAX_ERROR}))},uploadFileCompleteError:function(t,e,n){var r=t.errMsg,i=t.statusCode;(r=this.getErrorType({errMsg:r,statusCode:i}))&&this.publishNetWorkError({apiName:"uploadFile",opts:e,res:t,config:n,type:r})},hackCloud:function(t){for(var e=this,n=t.config,r=0,i=[{apiName:"callFunction",complete:function(t,r){return e.callFunctionCompleteError(t,r,n)}},{apiName:"callContainer",complete:function(t,r){return e.callContainerCompleteError(t,r,n)}}];r<i.length;r++){var o;D({apiName:(o=i[r]).apiName,complete:o=o.complete})}},callFunctionCompleteError:function(t,e,n){(-1<t.errMsg.indexOf("fail")||-1<t.errMsg.indexOf("timeout"))&&(n=null==(n=n.api)?void 0:n.apiDetail,this.publishErrorLog({msg:"AJAX_ERROR: cloud.callFunction:fail\n \nres status: 0\n \nres duration: "+(Date.now()-e.aegisRequestStartTime)+"ms\n \nres data: "+(n?b(t):"")+"\n \nreq url: cloud.callFunction."+e.name+"\n \nreq method: POST\n \nreq param: "+(n?b(e.data):"")+"\n \nerrMsg: "+t.errMsg.slice(0,1e3),level:f.AJAX_ERROR}))},callContainerCompleteError:function(t,e,n){var r=t.errMsg,i=t.statusCode;(400<=i||-1<r.indexOf("fail")||-1<r.indexOf("timeout"))&&(n=null==(n=n.api)?void 0:n.apiDetail,this.publishErrorLog({msg:"AJAX_ERROR: cloud.callContainer:fail\n \nres status: "+(i||0)+"\n \nres duration: "+(Date.now()-e.aegisRequestStartTime)+"ms\n \nres data: "+(n?b(t):"")+"\n \nreq url: "+e.path+"\n \nreq method: "+(e.method||"POST")+"\n \nreq param: "+(n?b(e.data):"")+"\n \nerrMsg: "+r.slice(0,1e3),level:f.AJAX_ERROR}))},publishNetWorkError:function(t){var e=t.apiName,n=t.opts,r=t.res,i=t.config,o=(t=t.type,r.errMsg),a=r.statusCode,s=r.data,c=null==(c=i.api)?void 0:c.apiDetail,l="wx.cloud.callFunction."+n.url;i=h(s,i.api,{url:l,ctx:r}).code,this.publishErrorLog({msg:"AJAX_ERROR: "+e+" "+t+"\n \nres status: "+(a||0)+"\n \nres retcode: "+i+"\n \nres duration: "+(Date.now()-n.aegisRequestStartTime)+"ms\n \nres data: "+(c?b(s):"")+"\n \nreq url: "+n.url+"\n \nreq method: "+(n.method||"get")+"\n \nreq param: "+(c?b(n.data):"")+"\n \nerrMsg: "+o.slice(0,1e3),level:f.AJAX_ERROR})},getErrorType:function(t){var e=t.errMsg,n=(t=t.statusCode,"");return-1<e.indexOf("timeout")||-1<e.indexOf("超时")?n="timeout":400<=t?n="error":(-1<e.indexOf("fail")||!t||t<0)&&(n="failed"),n},hackWsConnect:function(){var t,e,n=this;I({apiName:"sendSocketMessage",fail:function(t){n.publishSocketError(t)}}),t=(e={connectCallback:{fail:function(t){n.publishSocketError(t)}},taskOpt:{onError:function(t){n.publishSocketError(t)},send:{fail:function(t){n.publishSocketError(t)}}}}).connectCallback,e=e.taskOpt,F?F.addCallback(t):F=new ut(t),e&&F.addTaskConf(e)},publishSocketError:function(t){t&&this.publishErrorLog({msg:t.errMsg,level:f.WEBSOCKET_ERROR})}}),new H({name:"reportAssetSpeed",isStart:!1,onNewAegis:function(t){this.isStart||(this.isStart=!0,this.start(t))},start:function(){var t=this;G.getPerformance&&G.getPerformance().createObserver((function(e){null!=(e=e.getEntries())&&e.forEach((function(e){"number"!=typeof e.duration||e.duration<=0||t.publishAssetLog(e)}))})).observe({entryTypes:["resource"]})},generateLog:function(t){return{url:""+l(t.uri),method:"get",duration:Math.round(100*t.duration)/100,status:200,type:"static",isHttps:!0,urlQuery:"",nextHopProtocol:"",domainLookup:0,connectTime:0}},publishAssetLog:function(t){var e=this;this.$walk((function(n){n.speedLogPipeline(e.generateLog(t))}))}})),dt=["onLaunch","onHide","onError","onLoad","onReady","onShow","onUnload"],ft=new H({name:"pagePerformance",pageNavigationStartTime:{},onNewAegis:function(t){try{O("getPerformance")&&this.reportPerformance(t),this.setPagePV(t),this.reportSetDataTiming(t)}catch(t){}},reportPerformance:function(t){var e=this,n=null==(n=G.getPerformance())?void 0:n.createObserver((function(n){var r={},i=null==(i=n.getEntriesByName("appLaunch"))?void 0:i[0],o=null==(o=n.getEntriesByName("firstRender"))?void 0:o[0],a=null==(a=n.getEntriesByName("evaluateScript"))?void 0:a[0],s=null==(s=n.getEntriesByName("route"))?void 0:s[0],c=null==(c=null==(c=n.getEntriesByName("firstPaint"))?void 0:c[0])?void 0:c.startTime,l=null==(l=(null==(l=n.getEntriesByName("firstPaint"))?void 0:l[0])||(null==(l=n.getEntriesByName("route"))?void 0:l[0])||(null==(l=n.getEntriesByName("appLaunch"))?void 0:l[0]))?void 0:l.pageId,u=null==(n=(null==(u=n.getEntriesByName("route"))?void 0:u[0])||(null==(u=n.getEntriesByName("appLaunch"))?void 0:u[0]))?void 0:n.startTime;l&&(e.pageNavigationStartTime[l]=null,u&&(e.pageNavigationStartTime[l]=u)),i&&(r.appLaunch=i.duration),o&&(r.firstScreenTiming=o.duration),a&&(r.scriptEvaluateTiming=a.duration),s&&(r.pageRouteTiming=s.duration),c&&u?r.firstPaintTiming=Math.max(c-u,0):c&&e.pageNavigationStartTime[l]&&(r.firstPaintTiming=Math.max(c-e.pageNavigationStartTime[l],0)),e.publish(r,t)}));null!=n&&n.observe({entryTypes:["navigation","render","script"]})},publish:function(t,e){var n,r,i,o=[],a=e.config,s=-1===(null==(n=e.config.performanceUrl)?void 0:n.indexOf("?"))?"?":"&";for(r in t)o.push(r+"="+t[r]);"function"==typeof a.urlHandler?(i=a.urlHandler()||window.location.href,this.$walk((function(n){n.send({url:e.config.performanceUrl+s+o.join("&")+"&from="+encodeURIComponent(i),beanFilter:["from"],type:m.PERFORMANCE,log:t})}))):this.$walk((function(n){n.send({url:e.config.performanceUrl+s+o.join("&"),type:m.PERFORMANCE,log:t})}))},setPagePV:function(t){var e=this;G.onAppRoute&&G.onAppRoute((function(t){"appLaunch"!==t.openType&&(e.$walk((function(t){t.send({url:""+t.config.pvUrl,type:m.PV})})),e.reportPageLoaded(t))}))},reportPageLoaded:function(t){t="infoType: behaviorBacktracking\ndataType: pageLoadAndRoute\npageLoadedPath: "+t.path+"\nopenType: "+t.openType,this.publishNormalLog({msg:t,level:f.INFO})},publishNormalLog:function(t){this.$walk((function(e){e.normalLogPipeline(t)}))},reportSetDataTiming:function(t){var e,n,r,i,o,a,s,c,l,u,h=this;!0!==(u=(u=t.config).setDataReportConfig||(null==(u=u.pagePerformance)?void 0:u.setDataReportConfig)||{}).disabled&&(e=u.timeThreshold,n=!1!==u.withDataPaths,r=e&&0<+e?+e:30,i=E([x(t,10),function(e){e=e.map((function(t){return{type:m.SET_DATA,component:t.from,duration:t.duration,fields:t.dataPaths&&t.dataPaths.length?t.dataPaths.sort().join(";"):void 0,size:t.size}})),t.send({url:t.config.setDataReportUrl+"?payload="+encodeURIComponent(JSON.stringify({miniProgramData:e})),type:m.SET_DATA,log:e})}]),o=Page,a=Component,s=function(t,e){var n=0;return null!=t&&t.data?(e.forEach((function(e){for(var r=t.data[e[0]],i=1,o=e.length;i<o;i++)r[e[i]]&&(r=r[e[i]]);var a="";try{a=JSON.stringify(r)}catch(e){a=""}n+=2*(void 0===a?"":a).replace(/[\u4e00-\u9fa5]/g,"aa").length})),n=Math.min(n,10485760)):n},c=function(t,e){var o=e.updateStartTimestamp,a=e.updateEndTimestamp;e=void 0===(e=e.dataPaths)?[]:e,a-=o,isNaN(a)||a<r||(o={from:t.is,duration:a},n&&0<e.length&&Object.assign(o,{dataPaths:e.slice(0,30),size:s(t,e)}),i(o))},l=function(t){var e="infoType: behaviorBacktracking\ndataType: tapEvent"+Object.keys(t[0]).reduce((function(e,n){var r="";try{r=n+": "+JSON.stringify(t[0][n])}catch(e){r=""}return e+"\n"+r}),"");h.publishNormalLog({msg:e,level:f.INFO})},Page=function(t){var e=t.onReady;return t.onReady=function(){var t=this;return"function"==typeof this.setUpdatePerformanceListener&&this.setUpdatePerformanceListener({withDataPaths:n},(function(e){c(t,e)})),null==e?void 0:e.call(this)},Object.keys(t).forEach((function(e){var n;"function"!=typeof t[e]||dt.includes(e)||(n=t[e],t[e]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return null!=t&&t[0]&&"tap"===t[0].type&&l(t),null==n?void 0:n.apply(this,t)})})),o(t)},Component=function(t){t.lifetimes&&t.lifetimes.attached?(e=t.lifetimes.attached,t.lifetimes.attached=function(){var t=this;return"function"==typeof this.setUpdatePerformanceListener&&this.setUpdatePerformanceListener({withDataPaths:n},(function(e){c(t,e)})),null==e?void 0:e.call(this)}):(r=t.attached,t.attached=function(){var t=this;return"function"==typeof this.setUpdatePerformanceListener&&this.setUpdatePerformanceListener({withDataPaths:n},(function(e){c(t,e)})),null==r?void 0:r.call(this)});var e,r,i=t.methods;return i&&"[object Object]"===Object.prototype.toString.call(i)&&Object.keys(i).forEach((function(t){var e;"function"==typeof i[t]&&(e=i[t],i[t]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null!=t&&t[0]&&"tap"===t[0].type&&l(t),null==e?void 0:e.apply(this,t)})})),a(t)})}});function pt(t){return(t=L.call(this,t)||this).taskHack=new lt,t}function gt(){this.onErrors=[],this.sends=[]}function mt(){return null!==M&&M.apply(this,arguments)||this}function yt(){return null!==N&&N.apply(this,arguments)||this}function vt(t){this.callbacks=[],this.isOverride=!1;var e=t.apiName;this.apiName=e,this.isOverride||this.override(),this.callbacks.push(t)}function _t(t){var e,r,i,o=j.call(this,t)||this;o.originRequest=$,o.speedLogPipeline=E([(r=o.config,i={},function(t,e){var n,o;r.speedSample?(o="object"==typeof r.repeat?r.repeat:{repeat:r.repeat},n=+o.speed||+o.repeat||5,Array.isArray(t)?(o=t.filter((function(t){var e=!i[t.url]||i[t.url]<n;return i[t.url]=1+~~i[t.url],e}))).length&&e(o):(!i[t.url]||i[t.url]<n)&&(i[t.url]=1+~~i[t.url],e(t))):e(t)}),x(o),function(t,n){O("getNetworkType")?G.getNetworkType({success:function(r){r=A(r.networkType),e.extendBean("netType",r),n(t)}}):n(t)},function(t,e){o.lifeCycle.emit("beforeReportSpeed",t);var n=o.config.beforeReportSpeed;if((t="function"==typeof n?t.filter((function(t){return!1!==n(t)})):t).length)return e(t)},T(e=o,m.SPEED),function(t){var e,r,i,a;o.send({url:""+o.config.speedUrl,method:"post",data:(e=o.bean,i={fetch:[],static:[],bridge:[]},a={},Array.isArray(t)?t.forEach((function(t){var e;null!=(e=i[t.type])&&e.push(t)})):null!=(r=i[t.type])&&r.push(t),a.payload=JSON.stringify(n({duration:i},e)),a)})}]),o.requestQueue=[],o.requesting=!1,o.request=function(t,e,r){if(t.url&&o.bean.id){var i,a,s,c,l;if(/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/.test(String(o.bean.aid))&&!(o.requesting||O("getNetworkType")&&void 0===o.bean.netType))return o.requesting=!0,i=t.url,o.config.whiteListUrl===i&&(a=e,e=function(t){null!=a&&a(JSON.stringify(t.data))}),!1!==t.addBean&&(i=i+(-1===i.indexOf("?")?"?":"&")+o.getBean),u=t.method||"get",s=function(){o.requesting=!1;var t=o.requestQueue.shift();t&&o.request(t.options,t.success,t.fail)},c=t,(c=(l=o.config.onBeforeRequest)?l(t,o):c)&&c.url?(l=o.config.enableHttp2||!1,"get"===u?(u=i,h=c.data,i="string"!=typeof u?"":"object"==typeof h&&h?(d=Object.getOwnPropertyNames(h).map((function(t){var e=h[t];return t+"="+("string"==typeof e?encodeURIComponent(e):encodeURIComponent(JSON.stringify(e)))})).join("&").replace(/eval/gi,"evaI"),u+(-1===u.indexOf("?")?"?":"&")+d):u,o.originRequest(n({url:i,enableHttp2:l,success:e,fail:r,complete:s},t.requestConfig))):("string"==typeof c.data&&(c.data=c.data.replace(/eval/gi,"evaI")),o.originRequest(n({url:i,enableHttp2:l,header:c.contentType?{"content-type":c.contentType}:void 0,method:"POST",data:c.data,success:e,fail:r,complete:s},t.requestConfig))),!0):(d="",c&&c.url||(d="Sending request blocked. Please handle the parameters reasonably, options.url is necessary",console.log(d)),null!=r&&r(d),s(),!1);o.requestQueue.push({options:t,success:e,fail:r})}var u,h,d};try{t.offlineLog&&o.initOfflineLog(),o.init(t),o.extendBean("sessionId",_t.sessionID),o.extendBean("referer",(O("getLaunchOptionsSync")?G.getLaunchOptionsSync():{scene:""}).scene||"")}catch(t){console.warn(t),console.log("%cThe above error occurred in the process of initializing Aegis, which will affect your normal use of Aegis.\nIt is recommended that you contact us for feedback and thank you for your support.","color: red"),o.sendSDKError(t)}return o}function bt(t){var e,n,r=this,i=void 0===(i=(t=void 0===t?{}:t).path)?"/.aegis.offline.log":i;t=void 0===(t=t.limit)?2e4:t,this.offlineBuffer=[],this.insertLog=(e=null,n=[],function(t){n=n.concat(t),e=e||setTimeout((function(){e=null;var t,i=r.fileSystem,o=r.filePath,a=n.map((function(t){return JSON.stringify(t)})).join("\n")+"\n";a&&(t=function(t){t?r.checkLimit(a,(function(){n=[]})):i.writeFile({data:a,filePath:o,encoding:"utf8",fail:function(t){console.error(t)},success:function(){n=[]}})},i.access({path:o,success:function(){t(!0)},fail:function(){t()}}))}),2e3)}),this.ready=function(t){r.fileSystem?setTimeout((function(){t(null)}),0):(t(new Error("getFileSystemManager file")),r.offlineLog=!1)},this.clearLogs=function(){var t=r.fileSystem,e=r.filePath;t.writeFile({filePath:e,data:"",fail:function(){t.unlinkSync(e)}})},this.save2Offline=function(t,e){t=(t=Array.isArray(t)?t:[t]).map((function(t){return"string"==typeof t&&(t={msg:t}),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t[0]),r=1;r<t.length;r++){var i=t[r];if(null!==i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n}({id:e.id,uin:e.uin,time:+Date.now(),version:e.version,from:P(e)},t)})),r.fileSystem?r.insertLog(t):(r.fileSystem||r.offlineBuffer.length||r.ready((function(t){t?console.error(t):r.offlineBuffer.length&&(r.addLogs(r.offlineBuffer),r.offlineBuffer=[])})),r.offlineBuffer=r.offlineBuffer.concat(t))},this.addLogs=function(t){r.fileSystem&&r.insertLog(t)},this.filePath=G.env.USER_DATA_PATH+i,this.fileSystem=G.getFileSystemManager(),this.limitSize=t}function xt(t){this.aegisPlugin=!0,this.name="",this.instances=[],this.inited=!1,t.$walk=this.walk.bind(this),t.$getConfig=this.getConfig.bind(this),this.option=t,this.name=t.name}function wt(t){var e,n,r,i,o,s,c,l,u,h,d,p,g,y,v,_=this;this.isGetSample=!1,this.isHidden=!1,this.config={version:0,delay:1e3,onError:!0,repeat:5,random:1,aid:!0,device:!0,pagePerformance:!0,webVitals:!0,speedSample:!0,onClose:!0,hostUrl:"https://aegis.qq.com",websocketHack:!1,env:"production",url:"",offlineUrl:"",whiteListUrl:"",pvUrl:"",speedUrl:"",customTimeUrl:"",performanceUrl:"",webVitalsUrl:"",eventUrl:"",setDataReportUrl:"",reportImmediately:!0},this.isWhiteList=!1,this.lifeCycle=new a,this.bean={},this.normalLogPipeline=E([x(this,5),w,function(t,n){var r=e.config;n(t=t.map((function(t){var e,n=r.maxLength||204800;try{if(!t.msg||t.msg.length<=n)return t;t.msg=null==(e=t.msg)?void 0:e.substring(0,n)}catch(e){t.msg=b(t.msg).substring(0,r.maxLength)}return t})))},(y=(e=this).config,v={},function(t,e){var n="number"==typeof y.repeat?y.repeat:5;if(0===n)return e(t);e(t.filter((function(t){return t.level!==f.ERROR&&t.level!==f.PROMISE_ERROR&&t.level!==f.AJAX_ERROR&&t.level!==f.SCRIPT_ERROR&&t.level!==f.IMAGE_ERROR&&t.level!==f.CSS_ERROR&&t.level!==f.MEDIA_ERROR||(v[t.msg]=v[t.msg]||0,v[t.msg]+=1,!(v[t.msg]>n))})))}),(p=this.lifeCycle.emit,g=this.config,function(t,e){var n,r=g.logCreated;return"function"==typeof r?(n=t.filter((function(t){return!1!==r(t)})),p("beforeWrite",n),e(n)):(p("beforeWrite",t),e(t))}),(d=this,setTimeout((function(){var t=d.config.pvUrl,e=void 0===t?"":t;e&&d.sendPipeline([function(t,n){n({url:e,type:m.PV,fail:function(t){"403 forbidden"===t&&d.destroy()}})}],m.PV)(null)}),100),function(t,e){e(t)}),(u=l=c=!1,h=[],(o=this).lifeCycle.on("onConfigChange",(function(){s&&clearTimeout(s),s=setTimeout((function(){var t,e;!u&&o.config&&(u=!0,t=o.config.whiteListUrl,(e=void 0===t?"":t)&&o.sendPipeline([function(t,n){n({url:e,type:m.WHITE_LIST,success:function(t){l=!0;try{var e=t.data||JSON.parse(t),n=e.retcode,r=e.result,i=void 0===r?{}:r;if(0===n){if(c=i.is_in_white_list,o.isWhiteList=c,i.shutdown)return void o.destroy();0<=i.rate&&i.rate<=1&&(o.config.random=i.rate,o.isGetSample=!1)}o.isWhiteList&&h.length?W(o)(h.splice(0),(function(){})):!o.isWhiteList&&h.length&&(h.length=0);var a=o.config.onWhitelist;"function"==typeof a&&a(c)}catch(t){}},fail:function(t){"403 forbidden"===t&&o.destroy(),l=!0}})}],m.WHITE_LIST)(null),u=!1)}),o.config.uin?50:500)})),o.lifeCycle.on("destroy",(function(){h.length=0})),function(t,e){var n;c||null!=(n=null==(n=o.config)?void 0:n.api)&&n.reportRequest?e(t.concat(h.splice(0)).map((function(t){return B(t),t}))):(n=t.filter((function(t){return t.level!==f.INFO&&t.level!==f.API_RESPONSE?(B(t),!0):(l||(h.push(t),200<=h.length&&(h.length=200)),!1)}))).length&&e(n)}),function(t,e){try{var n=JSON.parse(JSON.stringify(t)),r=(_.lifeCycle.emit("beforeReport",n),_.config.beforeReport);(t="function"==typeof r?t.filter((function(t){return!1!==r(t)})):t).length&&e(t)}catch(t){}},W(this)]),this.eventPipeline=E([x(this,10),(i=this,function(t){i.sendPipeline([function(t,e){var n=t.map((function(t){return{name:t.name,ext1:t.ext1||i.config.ext1||"",ext2:t.ext2||i.config.ext2||"",ext3:t.ext3||i.config.ext3||""}}));e({url:i.config.eventUrl+"?payload="+encodeURIComponent(JSON.stringify(n)),type:m.EVENT,log:t,fail:function(t){"403 forbidden"===t&&i.destroy()}})}],m.EVENT)(t)})]),this.timeMap={},this.failRequestCount=0,this.customTimePipeline=E([x(this,10),(r=this,function(t){return r.sendPipeline([function(t,e){e({url:r.config.customTimeUrl+"?payload="+encodeURIComponent(JSON.stringify({custom:t})),type:m.CUSTOM,log:t,fail:function(t){"403 forbidden"===t&&r.destroy()}})}],m.CUSTOM)(t)})]),this.config=(n=this.config,void 0===(t=t.hostUrl)&&(t="https://aegis.qq.com"),n.url=n.url||t+"/collect",n.offlineUrl=n.offlineUrl||t+"/offline",n.whiteListUrl=n.whiteListUrl||t+"/collect/whitelist",n.pvUrl=n.pvUrl||t+"/collect/pv",n.eventUrl=n.eventUrl||t+"/collect/events",n.speedUrl=n.speedUrl||t+"/speed",n.customTimeUrl=n.customTimeUrl||t+"/speed/custom",n.performanceUrl=n.performanceUrl||t+"/speed/performance",n.webVitalsUrl=n.webVitalsUrl||t+"/speed/webvitals",n.setDataReportUrl=n.SetDataReportUrl||t+"/speed/miniProgramData",n),wt.instances.push(this)}return H=new H({name:"reportLoadPackageSpeed",isLoaded:!1,onNewAegis:function(t){this.isLoaded||(this.isLoaded=!0,this.start(t))},start:function(){var t=this;G.getPerformance&&G.getPerformance().createObserver((function(e){null!=(e=e.getEntries())&&e.forEach((function(e){"number"!=typeof e.duration||e.duration<=0||t.publishPackageLog(e)}))})).observe({entryTypes:["loadPackage"]})},generateLog:function(t){return[{type:m.LOAD_PACKAGE,packageName:t.packageName,size:Math.round(100*t.packageSize)/100,duration:Math.round(100*t.duration)/100}]},publishPackageLog:function(t){var e=this;this.$walk((function(n){var r=e.generateLog(t);n.send({url:n.config.setDataReportUrl+"?payload="+encodeURIComponent(JSON.stringify({miniProgramData:r})),type:m.LOAD_PACKAGE,log:r})}))}}),q.use(Q),q.use(at),q.use(J),q.use(ht),q.use(ft),q.use(H),q.use(X),q}()},1615:(t,e,n)=>{n.d(e,{Z:()=>wt});var r={};n.r(r),n.d(r,{Canvas:()=>O,Element:()=>E,HTMLElement:()=>k,HTMLMediaElement:()=>P,HTMLVideoElement:()=>R,Image:()=>j,MouseEvent:()=>$,PointerEvent:()=>V,Symbol:()=>tt,TouchEvent:()=>z,WebGLRenderingContext:()=>U,XMLHttpRequest:()=>lt,alert:()=>ht,blur:()=>ft,clearInterval:()=>yt,clearTimeout:()=>gt,devicePixelRatio:()=>d,focus:()=>dt,getComputedStyle:()=>ut,innerHeight:()=>p,innerWidth:()=>f,location:()=>et,navigator:()=>N,performance:()=>l,screen:()=>g,scrollX:()=>m,scrollY:()=>y,setInterval:()=>mt,setTimeout:()=>pt});const i={0:"animation-delay",1:"animation-direction",2:"animation-duration",3:"animation-fill-mode",4:"animation-iteration-count",5:"animation-name",6:"animation-play-state",7:"animation-timing-function",8:"background-attachment",9:"background-blend-mode",10:"background-clip",11:"background-color",12:"background-image",13:"background-origin",14:"background-position",15:"background-repeat",16:"background-size",17:"border-bottom-color",18:"border-bottom-left-radius",19:"border-bottom-right-radius",20:"border-bottom-style",21:"border-bottom-width",22:"border-collapse",23:"border-image-outset",24:"border-image-repeat",25:"border-image-slice",26:"border-image-source",27:"border-image-width",28:"border-left-color",29:"border-left-style",30:"border-left-width",31:"border-right-color",32:"border-right-style",33:"border-right-width",34:"border-top-color",35:"border-top-left-radius",36:"border-top-right-radius",37:"border-top-style",38:"border-top-width",39:"bottom",40:"box-shadow",41:"box-sizing",42:"break-after",43:"break-before",44:"break-inside",45:"caption-side",46:"clear",47:"clip",48:"color",49:"content",50:"cursor",51:"direction",52:"display",53:"empty-cells",54:"float",55:"font-family",56:"font-kerning",57:"font-size",58:"font-stretch",59:"font-style",60:"font-variant",61:"font-variant-ligatures",62:"font-variant-caps",63:"font-variant-numeric",64:"font-variant-east-asian",65:"font-weight",66:"height",67:"image-rendering",68:"isolation",69:"justify-items",70:"justify-self",71:"left",72:"letter-spacing",73:"line-height",74:"list-style-image",75:"list-style-position",76:"list-style-type",77:"margin-bottom",78:"margin-left",79:"margin-right",80:"margin-top",81:"max-height",82:"max-width",83:"min-height",84:"min-width",85:"mix-blend-mode",86:"object-fit",87:"object-position",88:"offset-distance",89:"offset-path",90:"offset-rotate",91:"opacity",92:"orphans",93:"outline-color",94:"outline-offset",95:"outline-style",96:"outline-width",97:"overflow-anchor",98:"overflow-wrap",99:"overflow-x",100:"overflow-y",101:"padding-bottom",102:"padding-left",103:"padding-right",104:"padding-top",105:"pointer-events",106:"position",107:"resize",108:"right",109:"scroll-behavior",110:"speak",111:"table-layout",112:"tab-size",113:"text-align",114:"text-align-last",115:"text-decoration",116:"text-decoration-line",117:"text-decoration-style",118:"text-decoration-color",119:"text-decoration-skip-ink",120:"text-underline-position",121:"text-indent",122:"text-rendering",123:"text-shadow",124:"text-size-adjust",125:"text-overflow",126:"text-transform",127:"top",128:"touch-action",129:"transition-delay",130:"transition-duration",131:"transition-property",132:"transition-timing-function",133:"unicode-bidi",134:"vertical-align",135:"visibility",136:"white-space",137:"widows",138:"width",139:"will-change",140:"word-break",141:"word-spacing",142:"word-wrap",143:"z-index",144:"zoom",145:"-webkit-appearance",146:"backface-visibility",147:"-webkit-border-horizontal-spacing",148:"-webkit-border-image",149:"-webkit-border-vertical-spacing",150:"-webkit-box-align",151:"-webkit-box-decoration-break",152:"-webkit-box-direction",153:"-webkit-box-flex",154:"-webkit-box-flex-group",155:"-webkit-box-lines",156:"-webkit-box-ordinal-group",157:"-webkit-box-orient",158:"-webkit-box-pack",159:"-webkit-box-reflect",160:"column-count",161:"column-gap",162:"column-rule-color",163:"column-rule-style",164:"column-rule-width",165:"column-span",166:"column-width",167:"align-content",168:"align-items",169:"align-self",170:"flex-basis",171:"flex-grow",172:"flex-shrink",173:"flex-direction",174:"flex-wrap",175:"justify-content",176:"-webkit-font-smoothing",177:"grid-auto-columns",178:"grid-auto-flow",179:"grid-auto-rows",180:"grid-column-end",181:"grid-column-start",182:"grid-template-areas",183:"grid-template-columns",184:"grid-template-rows",185:"grid-row-end",186:"grid-row-start",187:"grid-column-gap",188:"grid-row-gap",189:"-webkit-highlight",190:"hyphens",191:"-webkit-hyphenate-character",192:"-webkit-line-break",193:"-webkit-line-clamp",194:"-webkit-locale",195:"-webkit-margin-before-collapse",196:"-webkit-margin-after-collapse",197:"-webkit-mask-box-image",198:"-webkit-mask-box-image-outset",199:"-webkit-mask-box-image-repeat",200:"-webkit-mask-box-image-slice",201:"-webkit-mask-box-image-source",202:"-webkit-mask-box-image-width",203:"-webkit-mask-clip",204:"-webkit-mask-composite",205:"-webkit-mask-image",206:"-webkit-mask-origin",207:"-webkit-mask-position",208:"-webkit-mask-repeat",209:"-webkit-mask-size",210:"order",211:"perspective",212:"perspective-origin",213:"-webkit-print-color-adjust",214:"-webkit-rtl-ordering",215:"shape-outside",216:"shape-image-threshold",217:"shape-margin",218:"-webkit-tap-highlight-color",219:"-webkit-text-combine",220:"-webkit-text-decorations-in-effect",221:"-webkit-text-emphasis-color",222:"-webkit-text-emphasis-position",223:"-webkit-text-emphasis-style",224:"-webkit-text-fill-color",225:"-webkit-text-orientation",226:"-webkit-text-security",227:"-webkit-text-stroke-color",228:"-webkit-text-stroke-width",229:"transform",230:"transform-origin",231:"transform-style",232:"-webkit-user-drag",233:"-webkit-user-modify",234:"user-select",235:"-webkit-writing-mode",236:"-webkit-app-region",237:"buffered-rendering",238:"clip-path",239:"clip-rule",240:"mask",241:"filter",242:"flood-color",243:"flood-opacity",244:"lighting-color",245:"stop-color",246:"stop-opacity",247:"color-interpolation",248:"color-interpolation-filters",249:"color-rendering",250:"fill",251:"fill-opacity",252:"fill-rule",253:"marker-end",254:"marker-mid",255:"marker-start",256:"mask-type",257:"shape-rendering",258:"stroke",259:"stroke-dasharray",260:"stroke-dashoffset",261:"stroke-linecap",262:"stroke-linejoin",263:"stroke-miterlimit",264:"stroke-opacity",265:"stroke-width",266:"alignment-baseline",267:"baseline-shift",268:"dominant-baseline",269:"text-anchor",270:"writing-mode",271:"vector-effect",272:"paint-order",273:"d",274:"cx",275:"cy",276:"x",277:"y",278:"r",279:"rx",280:"ry",281:"caret-color",282:"line-break",display:"inline",dominantBaseline:"auto",emptyCells:"show",fill:"rgb(0, 0, 0)",fillOpacity:"1",fillRule:"nonzero",filter:"none",flex:"0 1 auto",flexBasis:"auto",flexDirection:"row",flexFlow:"row nowrap",flexGrow:"0",flexShrink:"1",flexWrap:"nowrap",float:"none",floodColor:"rgb(0, 0, 0)",floodOpacity:"1",font:'normal normal 400 normal 16px / normal "PingFang SC"',fontDisplay:"",fontFamily:'"PingFang SC"',fontFeatureSettings:"normal",fontKerning:"auto",fontSize:"16px",fontStretch:"100%",fontStyle:"normal",fontVariant:"normal",fontVariantCaps:"normal",fontVariantEastAsian:"normal",fontVariantLigatures:"normal",fontVariantNumeric:"normal",fontVariationSettings:"normal",fontWeight:"400",grid:"none / none / none / row / auto / auto",gridArea:"auto / auto / auto / auto",gridAutoColumns:"auto",gridAutoFlow:"row",gridAutoRows:"auto",gridColumn:"auto / auto",gridColumnEnd:"auto",gridColumnGap:"0px",gridColumnStart:"auto",gridGap:"0px 0px",gridRow:"auto / auto",gridRowEnd:"auto",gridRowGap:"0px",gridRowStart:"auto",gridTemplate:"none / none / none",gridTemplateAreas:"none",gridTemplateColumns:"none",gridTemplateRows:"none",height:"0px",hyphens:"manual",imageRendering:"auto",inlineSize:"0px",isolation:"auto",justifyContent:"normal",justifyItems:"normal",justifySelf:"auto",left:"auto",letterSpacing:"normal",lightingColor:"rgb(255, 255, 255)",lineBreak:"auto",lineHeight:"normal",listStyle:"disc outside none",listStyleImage:"none",listStylePosition:"outside",listStyleType:"disc",margin:"0px",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",marker:"",markerEnd:"none",markerMid:"none",markerStart:"none",mask:"none",maskType:"luminance",maxBlockSize:"none",maxHeight:"none",maxInlineSize:"none",maxWidth:"none",maxZoom:"",minBlockSize:"0px",minHeight:"0px",minInlineSize:"0px",minWidth:"0px",minZoom:"",mixBlendMode:"normal",objectFit:"fill",objectPosition:"50% 50%",offset:"none 0px auto 0deg",offsetDistance:"0px",offsetPath:"none",offsetRotate:"auto 0deg",opacity:"1",order:"0",orientation:"",orphans:"2",outline:"rgb(0, 0, 0) none 0px",outlineColor:"rgb(0, 0, 0)",outlineOffset:"0px",outlineStyle:"none",outlineWidth:"0px",overflow:"visible",overflowAnchor:"auto",overflowWrap:"normal",overflowX:"visible",overflowY:"visible",overscrollBehavior:"auto auto",overscrollBehaviorX:"auto",overscrollBehaviorY:"auto",padding:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",page:"",pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",paintOrder:"fill stroke markers",perspective:"none",perspectiveOrigin:"0px 0px",placeContent:"normal normal",placeItems:"normal normal",placeSelf:"auto auto",pointerEvents:"auto",position:"static",quotes:"",r:"0px",resize:"none",right:"auto",rx:"auto",ry:"auto",scrollBehavior:"auto",shapeImageThreshold:"0",shapeMargin:"0px",shapeOutside:"none",shapeRendering:"auto",size:"",speak:"normal",src:"",stopColor:"rgb(0, 0, 0)",stopOpacity:"1",stroke:"none",strokeDasharray:"none",strokeDashoffset:"0px",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:"4",strokeOpacity:"1",strokeWidth:"1px",tabSize:"8",tableLayout:"auto",textAlign:"start",textAlignLast:"auto",textAnchor:"start",textCombineUpright:"none",textDecoration:"none solid rgb(0, 0, 0)",textDecorationColor:"rgb(0, 0, 0)",textDecorationLine:"none",textDecorationSkipInk:"auto",textDecorationStyle:"solid",textIndent:"0px",textOrientation:"mixed",textOverflow:"clip",textRendering:"auto",textShadow:"none",textSizeAdjust:"auto",textTransform:"none",textUnderlinePosition:"auto",top:"auto",touchAction:"auto",transform:"none",transformBox:"view-box",transformOrigin:"0px 0px",transformStyle:"flat",transition:"all 0s ease 0s",transitionDelay:"0s",transitionDuration:"0s",transitionProperty:"all",transitionTimingFunction:"ease",unicodeBidi:"normal",unicodeRange:"",userSelect:"auto",userZoom:"",vectorEffect:"none",verticalAlign:"baseline",visibility:"visible",webkitAppRegion:"no-drag",webkitAppearance:"none",webkitBorderAfter:"0px none rgb(0, 0, 0)",webkitBorderAfterColor:"rgb(0, 0, 0)",webkitBorderAfterStyle:"none",webkitBorderAfterWidth:"0px",webkitBorderBefore:"0px none rgb(0, 0, 0)",webkitBorderBeforeColor:"rgb(0, 0, 0)",webkitBorderBeforeStyle:"none",webkitBorderBeforeWidth:"0px",webkitBorderEnd:"0px none rgb(0, 0, 0)",webkitBorderEndColor:"rgb(0, 0, 0)",webkitBorderEndStyle:"none",webkitBorderEndWidth:"0px",webkitBorderHorizontalSpacing:"0px",webkitBorderImage:"none",webkitBorderStart:"0px none rgb(0, 0, 0)",webkitBorderStartColor:"rgb(0, 0, 0)",webkitBorderStartStyle:"none",webkitBorderStartWidth:"0px",webkitBorderVerticalSpacing:"0px",webkitBoxAlign:"stretch",webkitBoxDecorationBreak:"slice",webkitBoxDirection:"normal",webkitBoxFlex:"0",webkitBoxFlexGroup:"1",webkitBoxLines:"single",webkitBoxOrdinalGroup:"1",webkitBoxOrient:"horizontal",webkitBoxPack:"start",webkitBoxReflect:"none",webkitColumnBreakAfter:"auto",webkitColumnBreakBefore:"auto",webkitColumnBreakInside:"auto",webkitFontSizeDelta:"",webkitFontSmoothing:"auto",webkitHighlight:"none",webkitHyphenateCharacter:"auto",webkitLineBreak:"auto",webkitLineClamp:"none",webkitLocale:"auto",webkitLogicalHeight:"0px",webkitLogicalWidth:"0px",webkitMarginAfter:"0px",webkitMarginAfterCollapse:"collapse",webkitMarginBefore:"0px",webkitMarginBeforeCollapse:"collapse",webkitMarginBottomCollapse:"collapse",webkitMarginCollapse:"",webkitMarginEnd:"0px",webkitMarginStart:"0px",webkitMarginTopCollapse:"collapse",webkitMask:"",webkitMaskBoxImage:"none",webkitMaskBoxImageOutset:"0px",webkitMaskBoxImageRepeat:"stretch",webkitMaskBoxImageSlice:"0 fill",webkitMaskBoxImageSource:"none",webkitMaskBoxImageWidth:"auto",webkitMaskClip:"border-box",webkitMaskComposite:"source-over",webkitMaskImage:"none",webkitMaskOrigin:"border-box",webkitMaskPosition:"0% 0%",webkitMaskPositionX:"0%",webkitMaskPositionY:"0%",webkitMaskRepeat:"repeat",webkitMaskRepeatX:"",webkitMaskRepeatY:"",webkitMaskSize:"auto",webkitMaxLogicalHeight:"none",webkitMaxLogicalWidth:"none",webkitMinLogicalHeight:"0px",webkitMinLogicalWidth:"0px",webkitPaddingAfter:"0px",webkitPaddingBefore:"0px",webkitPaddingEnd:"0px",webkitPaddingStart:"0px",webkitPerspectiveOriginX:"",webkitPerspectiveOriginY:"",webkitPrintColorAdjust:"economy",webkitRtlOrdering:"logical",webkitRubyPosition:"before",webkitTapHighlightColor:"rgba(0, 0, 0, 0.4)",webkitTextCombine:"none",webkitTextDecorationsInEffect:"none",webkitTextEmphasis:"",webkitTextEmphasisColor:"rgb(0, 0, 0)",webkitTextEmphasisPosition:"over right",webkitTextEmphasisStyle:"none",webkitTextFillColor:"rgb(0, 0, 0)",webkitTextOrientation:"vertical-right",webkitTextSecurity:"none",webkitTextStroke:"",webkitTextStrokeColor:"rgb(0, 0, 0)",webkitTextStrokeWidth:"0px",webkitTransformOriginX:"",webkitTransformOriginY:"",webkitTransformOriginZ:"",webkitUserDrag:"auto",webkitUserModify:"read-only",webkitWritingMode:"horizontal-tb",whiteSpace:"normal",widows:"2",width:"0px",willChange:"auto",wordBreak:"normal",wordSpacing:"0px",wordWrap:"normal",writingMode:"horizontal-tb",x:"0px",y:"0px",zIndex:"auto",zoom:"1"};const o=function(t){const e=t.width,n=t.height;return Object.assign(i,{display:"inline",position:"static",inlineSize:e+"px",perspectiveOrigin:e/2+"px "+n/2+"px",transformOrigin:e/2+"px "+n/2+"px",webkitLogicalWidth:e+"px",webkitLogicalHeight:n+"px",width:e+"px",height:n+"px"})};const a=function(t){const e=t.getBoundingClientRect();return Object.assign(i,{display:"inline",position:"static",inlineSize:e.width+"px",perspectiveOrigin:e.width/2+"px "+e.height/2+"px",transformOrigin:e.width/2+"px "+e.height/2+"px",webkitLogicalWidth:e.width+"px",webkitLogicalHeight:e.height+"px",width:e.width+"px",height:e.height+"px"})};function s(){}let c;if(wx.getPerformance){const{platform:t}=wx.getSystemInfoSync(),e=wx.getPerformance(),n=e.now(),r=Object.assign({},e,{now:function(){return(e.now()-n)/1e3}});c="devtools"===t?e:r}else c={timeOrigin:Date.now(),now:function(){return Date.now()-this.timeOrigin}};const l=c,{screenWidth:u,screenHeight:h,devicePixelRatio:d}=wx.getSystemInfoSync(),f=u,p=h,g={width:u,height:h,availWidth:f,availHeight:p,availLeft:0,availTop:0},m=0,y=0;function v(t,e){if(!("parentNode"in t)){let r;r=0===e?function(){return null}:1===e?function(){return(n.g.document||wx.window.document).documentElement}:function(){if(!n.g||!n.g.document||!wx.window.document)return;return(n.g.document||wx.window.document).body},Object.defineProperty(t,"parentNode",{enumerable:!0,get:r})}if(!("parentElement"in t)){let r;r=0===e?function(){return null}:1===e?function(){return document.documentElement}:function(){return(n.g.document||wx.window.document).body},Object.defineProperty(t,"parentElement",{enumerable:!0,get:r})}}function _(t){t.style=t.style||{},Object.assign(t.style,{top:"0px",left:"0px",width:f+"px",height:p+"px",margin:"0px",padding:"0px"})}function b(t,e){"clientLeft"in t||(t.clientLeft=t._left||0,t.clientTop=t._top||0),"clientWidth"in t||(t.clientWidth=t._width||f,t.clientHeight=t._height||p),"getBoundingClientRect"in t||(t.getBoundingClientRect=function(){const e={x:0,y:0,top:0,left:0,width:t._width||this.clientWidth,height:t._height||this.clientHeight};return e.right=e.width,e.bottom=e.height,e})}function x(t){"offsetLeft"in t||(t.offsetLeft=0,t.offsetTop=0),"offsetWidth"in t||(t.offsetWidth=f,t.offsetHeight=p)}function w(t){const e=function(){};t.classList=[],t.classList.add=e,t.classList.remove=e,t.classList.contains=e,t.classList.toggle=e}const T=new WeakMap;class C{constructor(){T.set(this,{})}addEventListener(t,e,n={}){let r=T.get(this);r||(r={},T.set(this,r)),r[t]||(r[t]=[]),r[t].push(e),n.capture,n.once,n.passive}removeEventListener(t,e,n={}){const r=T.get(this);if(r){const n=r[t];if(n&&n.length>0)for(let t=n.length;t--;t>0)if(n[t]===e){n.splice(t,1);break}}}dispatchEvent(t={}){const e=T.get(this)[t.type];if(e)for(let n=0;n<e.length;n++)e[n](t)}}class S extends C{constructor(){super(),this.childNodes=[]}appendChild(t){this.childNodes.push(t)}cloneNode(){const t=Object.create(this);return Object.assign(t,this),t}removeChild(t){const e=this.childNodes.findIndex((e=>e===t));return e>-1?this.childNodes.splice(e,1):null}}class E extends S{constructor(){super(),this.className="",this.children=[]}setAttribute(t,e){this[t]=e}getAttribute(t){return this[t]}setAttributeNS(t,e){this[t]=e}getAttributeNS(t){return this[t]}}class k extends E{constructor(t="",e){var n;super(),this.className="",this.children=[],this.focus=s,this.blur=s,this.insertBefore=s,this.appendChild=s,this.removeChild=s,this.remove=s,this.innerHTML="",this.tagName=t.toUpperCase(),v(this,e),_(this),w(this),b(this),x(this),"scrollLeft"in(n=this)||(n.scrollLeft=0,n.scrollTop=0),"scrollWidth"in n||(n.scrollWidth=f,n.scrollHeight=p)}}class P extends k{constructor(t){super(t)}addTextTrack(){}captureStream(){}fastSeek(){}load(){}pause(){}play(){}}class R extends P{constructor(){super("video")}}function O(t){let e=t;t||(e=wx.createOffscreenCanvas({type:"webgl"})),"tagName"in e||(e.tagName="CANVAS"),e.type="canvas",v(e),_(e),w(e),b(e),x(e),e.focus=function(){},e.blur=function(){};let n={};return e.addEventListener=function(t,e,r={}){void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)},e.removeEventListener=function(t,e){const r=n[t];if(void 0!==r){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}},e.dispatchEvent=function(t={}){const e=n[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,r=n.length;e<r;e++)n[e].call(this,t)}},e}const A=wx.getSystemInfoSync(),D=A.system,I=A.platform,F=A.language,L=-1!==D.toLowerCase().indexOf("android")?"Android; CPU Android 6.0":"iPhone; CPU iPhone OS 10_3_1 like Mac OS X",M={platform:I,language:F,appVersion:`5.0 (${L}) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1`,userAgent:`Mozilla/5.0 (${L}) AppleWebKit/603.1.30 (KHTML, like Gecko) Mobile/14E8301 MicroMessenger/6.6.0 MiniGame NetType/WIFI Language/${F}`,onLine:!0,geolocation:{getCurrentPosition:s,watchPosition:s,clearWatch:s}};wx.onNetworkStatusChange&&wx.onNetworkStatusChange((function(t){M.onLine=t.isConnected}));const N=M;function j(){try{let t;j._context;return wx&&wx.createCanvas&&(t=wx.createCanvas().createImage()),"tagName"in t||(t.tagName="IMG"),v(t),w(t),t.__proto__.__proto__=wx.createCanvas().createImage.prototype,t}catch(t){}}class U{constructor(){}}class B{constructor(t){this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=s,this.stopPropagation=s,this.type=t,this.timeStamp=Date.now()}}class z extends B{constructor(t){super(t),this.touches=[],this.targetTouches=[],this.changedTouches=[],this.target=window.canvas,this.currentTarget=window.canvas}}function W(t){return e=>{const n=new z(t);n.changedTouches=e.changedTouches,n.touches=e.touches,n.targetTouches=Array.prototype.slice.call(e.touches),n.timeStamp=e.timeStamp,document.dispatchEvent(n)}}wx.onTouchStart&&wx.onTouchStart(W("touchstart")),wx.onTouchMove&&wx.onTouchMove(W("touchmove")),wx.onTouchEnd&&wx.onTouchEnd(W("touchend")),wx.onTouchCancel&&wx.onTouchCancel(W("touchcancel"));class V extends B{constructor(t){super(t)}}const q=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","pageX","pageY","timeStamp"],H=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,0,0,0];function G(t,e,n){const r=new V(t);for(let t=0;t<q.length;t++){const n=q[t];r[n]=e[n]||H[t]}return r.type=t,r.target=window.canvas,r.currentTarget=window.canvas,r.buttons=function(t){let e=0;"touchstart"!==t&&"touchmove"!==t&&"pointerdown"!==t&&"pointermove"!==t||(e=1);return e}(t),r.which=r.buttons,r.pointerId=(e.identifier||0)+2,r.bubbles=!0,r.cancelable=!0,r.button=0,r.width=2*(e.radiusX||.5),r.height=2*(e.radiusY||.5),r.pressure=e.force||.5,r.isPrimary=function(t){return Y===t.identifier}(e),r.pointerType="touch",r.altKey=n.altKey,r.ctrlKey=n.ctrlKey,r.metaKey=n.metaKey,r.shiftKey=n.shiftKey,n.preventDefault&&(r.preventDefault=function(){n.preventDefault()}),r}let Y=null;function Z(t){null===Y&&(Y=t.identifier)}function K(t){Y===t.identifier&&(Y=null)}function X(t){return e=>{console.log("rawEvent",e);const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];0===r&&"pointerdown"===t?Z(i):"pointerup"!==t&&"pointercancel"!==t||K(i);const o=G(t,i,e);console.log("event dispatch",o),document.dispatchEvent(o)}}}wx.onTouchStart&&wx.onTouchStart(X("pointerdown")),wx.onTouchMove&&wx.onTouchMove(X("pointermove")),wx.onTouchEnd&&wx.onTouchEnd(X("pointerup")),wx.onTouchCancel&&wx.onTouchCancel(X("pointercancel"));class $ extends B{constructor(t){super(t)}}let J=0;const Q=function(t){return`__${t}_${Math.floor(1e9*Math.random())}_${++J}__`};Q.iterator=Q("Symbol.iterator");const tt=Q,et={href:"clip.js",reload(){},replace(t){this.href=t}},nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,at=new WeakMap;function st(t,...e){"function"==typeof this[`on${t}`]&&this[`on${t}`].apply(this,e)}function ct(t){this.readyState=t,st.call(this,"readystatechange"),this.dispatchEvent("readystatechange")}class lt{static UNSEND=0;static OPENED=1;static HEADERS_RECEIVED=2;static LOADING=3;static DONE=4;onabort=null;onerror=null;onload=null;onloadstart=null;onprogress=null;ontimeout=null;onloadend=null;onreadystatechange=null;readyState=0;response=null;responseText=null;responseType="";responseXML=null;status=0;statusText="";upload={};withCredentials=!1;events={};constructor(){it.set(this,{"content-type":"application/x-www-form-urlencoded"}),ot.set(this,{})}abort(){const t=at.get(this);t&&t.abort()}getAllResponseHeaders(){const t=ot.get(this);return Object.keys(t).map((e=>`${e}: ${t[e]}`)).join("\n")}getResponseHeader(t){return ot.get(this)[t]}open(t,e){rt.set(this,t),nt.set(this,e),ct.call(this,lt.OPENED)}overrideMimeType(){}send(t=""){if(this.readyState!==lt.OPENED)throw new Error("Failed to execute 'send' on 'XMLHttpRequest': The object's state must be OPENED.");if(-1===nt.get(this).indexOf("http")){let t=n.g.resourceManager.stickerLoader.readJSONFile(nt.get(this)),e=200,r={};if("string"!=typeof t&&!(t instanceof ArrayBuffer))try{t=JSON.stringify(t)}catch(t){}if(this.status=e,ot.set(this,r),st.call(this,"loadstart"),this.dispatchEvent("loadstart"),ct.call(this,lt.HEADERS_RECEIVED),ct.call(this,lt.LOADING),this.response=t,t instanceof ArrayBuffer){this.responseText="";const e=new Uint8Array(t),n=e.byteLength;for(let t=0;t<n;t++)this.responseText+=String.fromCharCode(e[t])}else this.responseText=t;ct.call(this,lt.DONE),st.call(this,"load"),this.dispatchEvent("load"),st.call(this,"loadend"),this.dispatchEvent("loadend")}else wx.request({data:t,url:nt.get(this),method:rt.get(this),header:it.get(this),responseType:this.responseType,success:({data:t,statusCode:e,header:n})=>{if("string"!=typeof t&&!(t instanceof ArrayBuffer))try{t=JSON.stringify(t)}catch(t){}if(this.status=e,ot.set(this,n),st.call(this,"loadstart"),this.dispatchEvent("loadstart"),ct.call(this,lt.HEADERS_RECEIVED),ct.call(this,lt.LOADING),this.response=t,t instanceof ArrayBuffer){this.responseText="";const e=new Uint8Array(t),n=e.byteLength;for(let t=0;t<n;t++)this.responseText+=String.fromCharCode(e[t])}else this.responseText=t;ct.call(this,lt.DONE),st.call(this,"load"),this.dispatchEvent("load"),st.call(this,"loadend"),this.dispatchEvent("loadend")},fail:({errMsg:t})=>{-1!==t.indexOf("abort")?(st.call(this,"abort"),this.dispatchEvent("abort")):(st.call(this,"error",t),this.dispatchEvent("error",t)),st.call(this,"loadend"),this.dispatchEvent("loadend")}})}setRequestHeader(t,e){const n=it.get(this);n[t]=e,it.set(this,n)}addEventListener(t,e){this.events[t]||(this.events[t]=[]),this.events[t].push(e)}removeEventListener(t,e){const n=this.events[t];if(n&&n.length>0)for(let t=n.length;t--;t>0)if(n[t]===e){n.splice(t,1);break}}dispatchEvent(t,e={}){const n=this.events[t];if(n)for(let t=0;t<n.length;t++)n[t](e)}}function ut(t){const e=t.tagName;return"CANVAS"===e?a(t):"IMG"===e?o(t):i}function ht(t){console.log(t)}function dt(){}function ft(){}const pt=setTimeout,gt=clearTimeout,mt=setInterval,yt=clearInterval;const vt={},_t={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,location:et,scripts:[],style:{},ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,createElement:t=>"canvas"===(t=t.toLowerCase())?new O:"img"===t?new j:new k(t),createElementNS(t,e){return this.createElement(e)},createTextNode:t=>t,getElementById:t=>t===r.canvas.id?r.canvas:null,getElementsByTagName:t=>"head"===(t=t.toLowerCase())?[_t.head]:"body"===t?[_t.body]:"canvas"===t?[r.canvas]:[],getElementsByTagNameNS(t,e){return this.getElementsByTagName(e)},getElementsByName:t=>"head"===t?[_t.head]:"body"===t?[_t.body]:"canvas"===t?[r.canvas]:[],querySelector:t=>"head"===t?_t.head:"body"===t?_t.body:"canvas"===t||t===`#${r.canvas.id}`?r.canvas:null,querySelectorAll:t=>"head"===t?[_t.head]:"body"===t?[_t.body]:"canvas"===t?[r.canvas]:[],addEventListener(t,e){vt[t]||(vt[t]=[]),vt[t].push(e)},removeEventListener(t,e){const n=vt[t];if(n&&n.length>0)for(let t=n.length;t--;t>0)if(n[t]===e){n.splice(t,1);break}},dispatchEvent(t){const e=t.type,n=vt[e];if(n)for(let e=0;e<n.length;e++)n[e](t);t.target&&"function"==typeof t.target["on"+e]&&t.target["on"+e](t)}};function bt(t){return function(){_t.visibilityState=t?"visible":"hidden";const e=!t;if(_t.hidden===e)return;_t.hidden=e;const n=new B("visibilitychange");n.target=_t,n.timeStamp=Date.now(),_t.dispatchEvent(n)}}_t.documentElement=new class extends k{constructor(){super("html",0)}},_t.head=new k("head"),_t.body=new class extends k{constructor(){super("body",0)}},wx.onHide&&wx.onHide(bt(!1)),wx.onShow&&wx.onShow(bt(!0));const xt=_t;const wt=function(t){r.document=xt,r.addEventListener=(t,e)=>{r.document.addEventListener(t,e)},r.removeEventListener=(t,e)=>{r.document.removeEventListener(t,e)},r.dispatchEvent=function(t={}){},t.global={},t.global.wx={};for(const e in r)t[e]=r[e];t.window=r,t.document=r.document,t.global.window=r,t.Image._context=t,t.HTMLImageElement=t.global.wx.createImage}},9984:(t,e,n)=>{n.d(e,{nH:()=>c,pe:()=>l,sN:()=>s});var r=n(337),i=n(5127),o=n(6879);let a=new i.Y;async function s(t){return new Promise(((e,n)=>{let r=wx.getFileSystemManager();r.access({path:t,success:()=>{e(!0)},fail:n=>{r.mkdir({dirPath:t,success:()=>{e(!0)},fail:t=>{e(!1)}})}})}))}async function c(t){return new Promise(((e,n)=>{wx.getFileSystemManager().access({path:t,success:()=>{e(!0)},fail:t=>{e(!1)}})}))}async function l(t,e){return new Promise((async(n,i)=>{const l=`${wx.env.USER_DATA_PATH}/ar`,u=`${l}/${t}.zip`;await s(l),await c(u)?n():async function(t,e){return new Promise((async(n,i)=>{let a=wx.getFileSystemManager();console.log("加载资源",t,e);const s=`${t}.bin`,l=`${wx.env.USER_DATA_PATH}/ar/${s}`;await c(l)?(console.log("读取本地bin"),a.readFile({filePath:l,success:t=>{n(t.data)},fail:t=>{i({code:o.U.READ_FILE_CACHE_FAIL,message:r.Z.t("0011")}),console.log("read file cache error",t)}})):(console.log("拉取远程bin"),wx.request({url:e,responseType:"arrayBuffer",success:t=>{const{data:e}=t;a.writeFile({filePath:l,data:e,encoding:"binary",success:t=>{n(e)},fail:t=>{let e={code:o.U.REQUEST_FILE_FAIL,message:t.errMsg};t.errMsg.indexOf("maximum size")>-1&&(e.message=r.Z.t("0012")),i(e),console.log("wx cache write eroor",t)}})}}))}))}(t,e).then((e=>{let s=wx.getFileSystemManager(),c=new Uint8Array(e),u=c.length,h=c.slice(0,1024),d=c.slice(1024,u);a.init().then((()=>{let e=a.run(h,"");a.finish("");const c=new Uint8Array(u);c.set(e),c.set(d,e.length);let f=`${l}/${t}.zip`;s.writeFile({filePath:f,data:c.buffer,encoding:"binary",success:t=>{n(f)},fail:t=>{console.log(" temp zip write file error",t);let e={code:o.U.REQUEST_FILE_FAIL,message:t.errMsg};t.errMsg.indexOf("maximum size")>-1&&(e.message=r.Z.t("0012")),i(e)}})}))})).catch((e=>{i({msg:"fail",zip:t,error:e})}))}))}},5901:function(t,e,n){var r,i;!function(o){var a,s={};s.VERSION="1.6.1";var c={},l=function(t,e){return function(){return e.apply(t,arguments)}},u=function(){var t,e,n=arguments,r=n[0];for(e=1;e<n.length;e++)for(t in n[e])!(t in r)&&n[e].hasOwnProperty(t)&&(r[t]=n[e][t]);return r},h=function(t,e){return{value:t,name:e}};s.TRACE=h(1,"TRACE"),s.DEBUG=h(2,"DEBUG"),s.INFO=h(3,"INFO"),s.TIME=h(4,"TIME"),s.WARN=h(5,"WARN"),s.ERROR=h(8,"ERROR"),s.OFF=h(99,"OFF");var d=function(t){this.context=t,this.setLevel(t.filterLevel),this.log=this.info};d.prototype={setLevel:function(t){t&&"value"in t&&(this.context.filterLevel=t)},getLevel:function(){return this.context.filterLevel},enabledFor:function(t){var e=this.context.filterLevel;return t.value>=e.value},trace:function(){this.invoke(s.TRACE,arguments)},debug:function(){this.invoke(s.DEBUG,arguments)},info:function(){this.invoke(s.INFO,arguments)},warn:function(){this.invoke(s.WARN,arguments)},error:function(){this.invoke(s.ERROR,arguments)},time:function(t){"string"==typeof t&&t.length>0&&this.invoke(s.TIME,[t,"start"])},timeEnd:function(t){"string"==typeof t&&t.length>0&&this.invoke(s.TIME,[t,"end"])},invoke:function(t,e){a&&this.enabledFor(t)&&a(e,u({level:t},this.context))}};var f,p=new d({filterLevel:s.OFF});(f=s).enabledFor=l(p,p.enabledFor),f.trace=l(p,p.trace),f.debug=l(p,p.debug),f.time=l(p,p.time),f.timeEnd=l(p,p.timeEnd),f.info=l(p,p.info),f.warn=l(p,p.warn),f.error=l(p,p.error),f.log=f.info,s.setHandler=function(t){a=t},s.setLevel=function(t){for(var e in p.setLevel(t),c)c.hasOwnProperty(e)&&c[e].setLevel(t)},s.getLevel=function(){return p.getLevel()},s.get=function(t){return c[t]||(c[t]=new d(u({name:t},p.context)))},s.createDefaultHandler=function(t){(t=t||{}).formatter=t.formatter||function(t,e){e.name&&t.unshift("["+e.name+"]")};var e={},n=function(t,e){Function.prototype.apply.call(t,console,e)};return"undefined"==typeof console?function(){}:function(r,i){r=Array.prototype.slice.call(r);var o,a=console.log;i.level===s.TIME?(o=(i.name?"["+i.name+"] ":"")+r[0],"start"===r[1]?console.time?console.time(o):e[o]=(new Date).getTime():console.timeEnd?console.timeEnd(o):n(a,[o+": "+((new Date).getTime()-e[o])+"ms"])):(i.level===s.WARN&&console.warn?a=console.warn:i.level===s.ERROR&&console.error?a=console.error:i.level===s.INFO&&console.info?a=console.info:i.level===s.DEBUG&&console.debug?a=console.debug:i.level===s.TRACE&&console.trace&&(a=console.trace),t.formatter(r,i),n(a,r))}},s.useDefaults=function(t){s.setLevel(t&&t.defaultLevel||s.DEBUG),s.setHandler(s.createDefaultHandler(t))},s.setDefaults=s.useDefaults,void 0===(i="function"==typeof(r=s)?r.call(e,n,e,t):r)||(t.exports=i)}()},3125:(t,e,n)=>{n.d(e,{LE:()=>Q});var r=n(9043),i=n(7659),o=n(2202),a=n(1893),s=n(519),c=n(2064),l=n(8141),u=n(6340),h=n(1961),d=n(2794);n(4775);class f extends r.Geometry{constructor(t=!1){super(),this._buffer=new r.Buffer(null,t,!1),this._indexBuffer=new r.Buffer(null,t,!0),this.addAttribute("aVertexPosition",this._buffer,3,!1,i.vK.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,i.vK.FLOAT).addAttribute("aColor",this._buffer,4,!0,i.vK.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,i.vK.FLOAT).addIndex(this._indexBuffer)}}class p{constructor(t,e=!0){p.prototype.__init.call(this),this.legacy=t,e&&(this.enabled=!0),this.legacy.proj=this}__init(){this._enabled=!1}get enabled(){return this._enabled}set enabled(t){this._enabled=t}clear(){}}var g,m;function y(t){const e=this.proj,n=this,r=t._worldID,i=n.localTransform,o=e.scaleAfterAffine&&e.affine>=2;n._localID!==n._currentLocalID&&(o?(i.a=n._cx,i.b=n._sx,i.c=n._cy,i.d=n._sy,i.tx=n.position._x,i.ty=n.position._y):(i.a=n._cx*n.scale._x,i.b=n._sx*n.scale._x,i.c=n._cy*n.scale._y,i.d=n._sy*n.scale._y,i.tx=n.position._x-(n.pivot._x*i.a+n.pivot._y*i.c),i.ty=n.position._y-(n.pivot._x*i.b+n.pivot._y*i.d)),n._currentLocalID=n._localID,e._currentProjID=-1);const a=e._projID;if(e._currentProjID!==a&&(e._currentProjID=a,e.updateLocalTransform(i),n._parentID=-1),n._parentID!==r){const i=t.proj;i&&!i._affine?e.world.setToMult(i.world,e.local):e.world.setToMultLegacy(t.worldTransform,e.local);const a=n.worldTransform;e.world.copyTo(a,e._affine,e.affinePreserveOrientation),o&&(a.a*=n.scale._x,a.b*=n.scale._x,a.c*=n.scale._y,a.d*=n.scale._y,a.tx-=n.pivot._x*a.a+n.pivot._y*a.c,a.ty-=n.pivot._x*a.b+n.pivot._y*a.d),n._parentID=r,n._worldID++}}!function(t){t[t.NONE=0]="NONE";t[t.BEFORE_PROJ=4]="BEFORE_PROJ";t[t.PROJ=5]="PROJ";t[t.ALL=9]="ALL"}(g||(g={})),function(t){t[t.NONE=0]="NONE";t[t.FREE=1]="FREE";t[t.AXIS_X=2]="AXIS_X";t[t.AXIS_Y=3]="AXIS_Y";t[t.POINT=4]="POINT";t[t.AXIS_XR=5]="AXIS_XR"}(m||(m={}));class v extends p{constructor(...t){super(...t),v.prototype.__init.call(this),v.prototype.__init2.call(this),v.prototype.__init3.call(this),v.prototype.__init4.call(this),v.prototype.__init5.call(this)}updateLocalTransform(t){}__init(){this._projID=0}__init2(){this._currentProjID=-1}__init3(){this._affine=m.NONE}__init4(){this.affinePreserveOrientation=!1}__init5(){this.scaleAfterAffine=!0}set affine(t){this._affine!==t&&(this._affine=t,this._currentProjID=-1,this.legacy._currentLocalID=-1)}get affine(){return this._affine}set enabled(t){t!==this._enabled&&(this._enabled=t,t?(this.legacy.updateTransform=y,this.legacy._parentID=-1):(this.legacy.updateTransform=a.wx.prototype.updateTransform,this.legacy._parentID=-1))}clear(){this._currentProjID=-1,this._projID=0}}class _ extends r.AbstractBatchRenderer{constructor(...t){super(...t),_.prototype.__init.call(this),_.prototype.__init2.call(this)}__init(){this.forceMaxTextures=0}getUniforms(t){return this.defUniforms}syncUniforms(t){if(!t)return;const e=this._shader;for(const n in t)e.uniforms[n]=t[n]}__init2(){this.defUniforms={}}buildDrawCalls(t,e,n){const i=this,{_bufferedElements:a,_attributeBuffer:s,_indexBuffer:c,vertexSize:l}=this,u=r.AbstractBatchRenderer._drawCallPool;let h=this._dcIndex,d=this._aIndex,f=this._iIndex,p=u[h];p.start=this._iIndex,p.texArray=t;for(let r=e;r<n;++r){const n=a[r],i=n._texture.baseTexture,g=o.premultiplyBlendMode[i.alphaMode?1:0][n.blendMode],m=this.getUniforms(n);a[r]=null,e<r&&(p.blend!==g||p.uniforms!==m)&&(p.size=f-p.start,e=r,p=u[++h],p.texArray=t,p.start=f),this.packInterleavedGeometry(n,s,c,d,f),d+=n.vertexData.length/2*l,f+=n.indices.length,p.blend=g,p.uniforms=m}e<n&&(p.size=f-p.start,++h),i._dcIndex=h,i._aIndex=d,i._iIndex=f}drawBatches(){const t=this._dcIndex,{gl:e,state:n,shader:i}=this.renderer,o=r.AbstractBatchRenderer._drawCallPool;let a=null,s=null;for(let r=0;r<t;r++){const{texArray:t,type:c,size:l,start:u,blend:h,uniforms:d}=o[r];s!==t&&(s=t,this.bindAndClearTexArray(t)),a!==d&&(a=d,this.syncUniforms(d),i.syncUniformGroup(this._shader.uniformGroup)),this.state.blendMode=h,n.set(this.state),e.drawElements(c,l,e.UNSIGNED_SHORT,2*u)}}contextChange(){if(!this.forceMaxTextures)return super.contextChange(),void this.syncUniforms(this.defUniforms);const t=this;t.MAX_TEXTURES=this.forceMaxTextures,this._shader=t.shaderGenerator.generateShader(this.MAX_TEXTURES),this.syncUniforms(this.defUniforms);for(let e=0;e<t._packedGeometryPoolSize;e++)t._packedGeometries[e]=new this.geometryClass;this.initFlushBuffers()}}r.Renderer.registerPlugin("batch2d",class{static create(t){const{vertex:e,fragment:n,vertexSize:i,geometryClass:a}=Object.assign({vertex:"precision highp float;\nattribute vec3 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\ngl_Position.xyw = projectionMatrix * aVertexPosition;\ngl_Position.z = 0.0;\n\nvTextureCoord = aTextureCoord;\nvTextureId = aTextureId;\nvColor = aColor;\n}\n",fragment:"\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\nvec4 color;\n%forloop%\ngl_FragColor = color * vColor;\n}",geometryClass:f,vertexSize:7},t);return class extends r.AbstractBatchRenderer{constructor(t){super(t),this.shaderGenerator=new r.BatchShaderGenerator(e,n),this.geometryClass=a,this.vertexSize=i}packInterleavedGeometry(t,e,n,r,i){const{uint32View:a,float32View:s}=e,c=r/this.vertexSize,l=t.uvs,u=t.indices,h=t.vertexData,d=t.vertexData2d,f=t._texture.baseTexture._batchLocation,p=Math.min(t.worldAlpha,1),g=p<1&&t._texture.baseTexture.alphaMode?(0,o.premultiplyTint)(t._tintRGB,p):t._tintRGB+(255*p<<24);if(d){let t=0;for(let e=0;e<d.length;e+=3,t+=2)s[r++]=d[e],s[r++]=d[e+1],s[r++]=d[e+2],s[r++]=l[t],s[r++]=l[t+1],a[r++]=g,s[r++]=f}else for(let t=0;t<h.length;t+=2)s[r++]=h[t],s[r++]=h[t+1],s[r++]=1,s[r++]=l[t],s[r++]=l[t+1],a[r++]=g,s[r++]=f;for(let t=0;t<u.length;t++)n[i++]=c+u[t]}}}}.create({}));const b=[1,0,0,0,1,0,0,0,1];class x{static __initStatic(){this.IDENTITY=new x}static __initStatic2(){this.TEMP_MATRIX=new x}__init(){this.floatArray=null}constructor(t){x.prototype.__init.call(this),this.mat3=new Float64Array(t||b)}get a(){return this.mat3[0]/this.mat3[8]}set a(t){this.mat3[0]=t*this.mat3[8]}get b(){return this.mat3[1]/this.mat3[8]}set b(t){this.mat3[1]=t*this.mat3[8]}get c(){return this.mat3[3]/this.mat3[8]}set c(t){this.mat3[3]=t*this.mat3[8]}get d(){return this.mat3[4]/this.mat3[8]}set d(t){this.mat3[4]=t*this.mat3[8]}get tx(){return this.mat3[6]/this.mat3[8]}set tx(t){this.mat3[6]=t*this.mat3[8]}get ty(){return this.mat3[7]/this.mat3[8]}set ty(t){this.mat3[7]=t*this.mat3[8]}set(t,e,n,r,i,o){const a=this.mat3;return a[0]=t,a[1]=e,a[2]=0,a[3]=n,a[4]=r,a[5]=0,a[6]=i,a[7]=o,a[8]=1,this}toArray(t,e){this.floatArray||(this.floatArray=new Float32Array(9));const n=e||this.floatArray,r=this.mat3;return t?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3],n[4]=r[4],n[5]=r[5],n[6]=r[6],n[7]=r[7],n[8]=r[8]):(n[0]=r[0],n[1]=r[3],n[2]=r[6],n[3]=r[1],n[4]=r[4],n[5]=r[7],n[6]=r[2],n[7]=r[5],n[8]=r[8]),n}apply(t,e){e=e||new a.E9;const n=this.mat3,r=t.x,i=t.y,o=1/(n[2]*r+n[5]*i+n[8]);return e.x=o*(n[0]*r+n[3]*i+n[6]),e.y=o*(n[1]*r+n[4]*i+n[7]),e}translate(t,e){const n=this.mat3;return n[0]+=t*n[2],n[1]+=e*n[2],n[3]+=t*n[5],n[4]+=e*n[5],n[6]+=t*n[8],n[7]+=e*n[8],this}scale(t,e){const n=this.mat3;return n[0]*=t,n[1]*=e,n[3]*=t,n[4]*=e,n[6]*=t,n[7]*=e,this}scaleAndTranslate(t,e,n,r){const i=this.mat3;i[0]=t*i[0]+n*i[2],i[1]=e*i[1]+r*i[2],i[3]=t*i[3]+n*i[5],i[4]=e*i[4]+r*i[5],i[6]=t*i[6]+n*i[8],i[7]=e*i[7]+r*i[8]}applyInverse(t,e){e=e||new a.E9;const n=this.mat3,r=t.x,i=t.y,o=n[0],s=n[3],c=n[6],l=n[1],u=n[4],h=n[7],d=n[2],f=n[5],p=n[8],g=(p*u-h*f)*r+(-p*s+c*f)*i+(h*s-c*u),m=(-p*l+h*d)*r+(p*o-c*d)*i+(-h*o+c*l),y=(f*l-u*d)*r+(-f*o+s*d)*i+(u*o-s*l);return e.x=g/y,e.y=m/y,e}invert(){const t=this.mat3,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7],l=t[8],u=l*o-a*c,h=-l*i+a*s,d=c*i-o*s;let f=e*u+n*h+r*d;return f?(f=1/f,t[0]=u*f,t[1]=(-l*n+r*c)*f,t[2]=(a*n-r*o)*f,t[3]=h*f,t[4]=(l*e-r*s)*f,t[5]=(-a*e+r*i)*f,t[6]=d*f,t[7]=(-c*e+n*s)*f,t[8]=(o*e-n*i)*f,this):this}identity(){const t=this.mat3;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this}clone(){return new x(this.mat3)}copyTo2dOr3d(t){const e=this.mat3,n=t.mat3;return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],t}copyTo(t,e,n){const r=this.mat3,i=1/r[8],o=r[6]*i,a=r[7]*i;if(t.a=(r[0]-r[2]*o)*i,t.b=(r[1]-r[2]*a)*i,t.c=(r[3]-r[5]*o)*i,t.d=(r[4]-r[5]*a)*i,t.tx=o,t.ty=a,e>=2){let r=t.a*t.d-t.b*t.c;n||(r=Math.abs(r)),e===m.POINT?(r=r>0?1:-1,t.a=r,t.b=0,t.c=0,t.d=r):e===m.AXIS_X?(r/=Math.sqrt(t.b*t.b+t.d*t.d),t.c=0,t.d=r):e===m.AXIS_Y?(r/=Math.sqrt(t.a*t.a+t.c*t.c),t.a=r,t.c=0):e===m.AXIS_XR&&(t.a=t.d*r,t.c=-t.b*r)}return t}copyFrom(t){const e=this.mat3;return e[0]=t.a,e[1]=t.b,e[2]=0,e[3]=t.c,e[4]=t.d,e[5]=0,e[6]=t.tx,e[7]=t.ty,e[8]=1,this}setToMultLegacy(t,e){const n=this.mat3,r=e.mat3,i=t.a,o=t.b,a=t.c,s=t.d,c=t.tx,l=t.ty,u=r[0],h=r[1],d=r[2],f=r[3],p=r[4],g=r[5],m=r[6],y=r[7],v=r[8];return n[0]=u*i+h*a+d*c,n[1]=u*o+h*s+d*l,n[2]=d,n[3]=f*i+p*a+g*c,n[4]=f*o+p*s+g*l,n[5]=g,n[6]=m*i+y*a+v*c,n[7]=m*o+y*s+v*l,n[8]=v,this}setToMultLegacy2(t,e){const n=this.mat3,r=t.mat3,i=r[0],o=r[1],a=r[2],s=r[3],c=r[4],l=r[5],u=r[6],h=r[7],d=r[8],f=e.a,p=e.b,g=e.c,m=e.d,y=e.tx,v=e.ty;return n[0]=f*i+p*s,n[1]=f*o+p*c,n[2]=f*a+p*l,n[3]=g*i+m*s,n[4]=g*o+m*c,n[5]=g*a+m*l,n[6]=y*i+v*s+u,n[7]=y*o+v*c+h,n[8]=y*a+v*l+d,this}setToMult(t,e){const n=this.mat3,r=t.mat3,i=e.mat3,o=r[0],a=r[1],s=r[2],c=r[3],l=r[4],u=r[5],h=r[6],d=r[7],f=r[8],p=i[0],g=i[1],m=i[2],y=i[3],v=i[4],_=i[5],b=i[6],x=i[7],w=i[8];return n[0]=p*o+g*c+m*h,n[1]=p*a+g*l+m*d,n[2]=p*s+g*u+m*f,n[3]=y*o+v*c+_*h,n[4]=y*a+v*l+_*d,n[5]=y*s+v*u+_*f,n[6]=b*o+x*c+w*h,n[7]=b*a+x*l+w*d,n[8]=b*s+x*u+w*f,this}prepend(t){return t.mat3?this.setToMult(t,this):this.setToMultLegacy(t,this)}}x.__initStatic(),x.__initStatic2();const w="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec3 vTextureCoord;\n\nvoid main(void)\n{\ngl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\n\nvTextureCoord = uTransform * vec3(aTextureCoord, 1.0);\n}\n",T=new x;class C extends r.ObjectRenderer{constructor(t){super(t),C.prototype.__init.call(this);const e={globals:this.renderer.globalUniforms};this.shader=r.Shader.from(w,"\nvarying vec3 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\nvec2 coord = mod(vTextureCoord.xy / vTextureCoord.z - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\ncoord = (uMapCoord * vec3(coord, 1.0)).xy;\ncoord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\nvec4 sample = texture2D(uSampler, coord);\ngl_FragColor = sample * uColor;\n}\n",e),this.simpleShader=r.Shader.from(w,"\nvarying vec3 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\nvec4 sample = texture2D(uSampler, vTextureCoord.xy / vTextureCoord.z);\ngl_FragColor = sample * uColor;\n}\n",e)}__init(){this.quad=new r.QuadUv}render(t){const e=this.renderer,n=this.quad;let r=n.vertices;r[0]=r[6]=t._width*-t.anchor.x,r[1]=r[3]=t._height*-t.anchor.y,r[2]=r[4]=t._width*(1-t.anchor.x),r[5]=r[7]=t._height*(1-t.anchor.y),t.uvRespectAnchor&&(r=n.uvs,r[0]=r[6]=-t.anchor.x,r[1]=r[3]=-t.anchor.y,r[2]=r[4]=1-t.anchor.x,r[5]=r[7]=1-t.anchor.y),n.invalidate();const a=t._texture,s=a.baseTexture,c=t.tileProj.world,l=t.uvMatrix;let u=s.isPowerOfTwo&&a.frame.width===s.width&&a.frame.height===s.height;u&&(s._glTextures[e.CONTEXT_UID]?u=s.wrapMode!==i.Nt.CLAMP:s.wrapMode===i.Nt.CLAMP&&(s.wrapMode=i.Nt.REPEAT));const h=u?this.simpleShader:this.shader;T.identity(),T.scale(a.width,a.height),T.prepend(c),T.scale(1/t._width,1/t._height),T.invert(),u?T.prepend(l.mapCoord):(h.uniforms.uMapCoord=l.mapCoord.toArray(!0),h.uniforms.uClampFrame=l.uClampFrame,h.uniforms.uClampOffset=l.uClampOffset),h.uniforms.uTransform=T.toArray(!0),h.uniforms.uColor=(0,o.premultiplyTintToRgba)(t.tint,t.worldAlpha,h.uniforms.uColor,s.premultiplyAlpha),h.uniforms.translationMatrix=t.worldTransform.toArray(!0),h.uniforms.uSampler=a,e.shader.bind(h,!1),e.geometry.bind(n,void 0),e.state.setBlendMode((0,o.correctBlendMode)(t.blendMode,s.premultiplyAlpha)),e.geometry.draw(i.lg.TRIANGLES,6,0)}}const S=new a.E9,E=[new a.E9,new a.E9,new a.E9,new a.E9],k=new a.Ae,P=new x;class R extends v{constructor(t,e){super(t,e),R.prototype.__init.call(this),R.prototype.__init2.call(this),R.prototype.__init3.call(this),this.local=new x,this.world=new x}__init(){this.matrix=new x}__init2(){this.pivot=new a.AB(this.onChange,this,0,0)}__init3(){this.reverseLocalOrder=!1}onChange(){const t=this.pivot,e=this.matrix.mat3;e[6]=-(t._x*e[0]+t._y*e[3]),e[7]=-(t._x*e[1]+t._y*e[4]),this._projID++}setAxisX(t,e=1){const n=t.x,r=t.y,i=Math.sqrt(n*n+r*r),o=this.matrix.mat3;o[0]=n/i,o[1]=r/i,o[2]=e/i,this.onChange()}setAxisY(t,e=1){const n=t.x,r=t.y,i=Math.sqrt(n*n+r*r),o=this.matrix.mat3;o[3]=n/i,o[4]=r/i,o[5]=e/i,this.onChange()}mapSprite(t,e){const n=t.texture;k.x=-t.anchor.x*n.orig.width,k.y=-t.anchor.y*n.orig.height,k.width=n.orig.width,k.height=n.orig.height,this.mapQuad(k,e)}mapQuad(t,e){E[0].set(t.x,t.y),E[1].set(t.x+t.width,t.y),E[2].set(t.x+t.width,t.y+t.height),E[3].set(t.x,t.y+t.height);let n=1,r=2,i=3;if(0===function(t,e,n,r,i){const o=e.x-t.x,a=n.x-r.x,s=n.x-t.x,c=e.y-t.y,l=n.y-r.y,u=n.y-t.y,h=o*l-c*a;if(Math.abs(h)<1e-7)return i.x=o,i.y=c,0;const d=(s*l-u*a)/h,f=(o*u-c*s)/h;return f<1e-6||f-1>-1e-6?-1:(i.x=t.x+d*(e.x-t.x),i.y=t.y+d*(e.y-t.y),1)}(e[0],e[2],e[1],e[3],S))return;n=1,r=3,i=2;const o=Math.sqrt((e[0].x-S.x)*(e[0].x-S.x)+(e[0].y-S.y)*(e[0].y-S.y)),a=Math.sqrt((e[n].x-S.x)*(e[n].x-S.x)+(e[n].y-S.y)*(e[n].y-S.y)),s=Math.sqrt((e[r].x-S.x)*(e[r].x-S.x)+(e[r].y-S.y)*(e[r].y-S.y)),c=Math.sqrt((e[i].x-S.x)*(e[i].x-S.x)+(e[i].y-S.y)*(e[i].y-S.y)),l=(o+c)/c,u=(a+s)/s,h=(a+s)/a;let d=this.matrix.mat3;d[0]=E[0].x*l,d[1]=E[0].y*l,d[2]=l,d[3]=E[n].x*u,d[4]=E[n].y*u,d[5]=u,d[6]=E[r].x*h,d[7]=E[r].y*h,d[8]=h,this.matrix.invert(),d=P.mat3,d[0]=e[0].x,d[1]=e[0].y,d[2]=1,d[3]=e[n].x,d[4]=e[n].y,d[5]=1,d[6]=e[r].x,d[7]=e[r].y,d[8]=1,this.matrix.setToMult(P,this.matrix),this._projID++}updateLocalTransform(t){0!==this._projID?this.reverseLocalOrder?this.local.setToMultLegacy2(this.matrix,t):this.local.setToMultLegacy(t,this.matrix):this.local.copyFrom(t)}clear(){super.clear(),this.matrix.identity(),this.pivot.set(0,0)}}function O(){return this.proj.affine?this.transform.worldTransform:this.proj.world}class A extends s.W2{constructor(){super(),this.proj=new R(this.transform)}toLocal(t,e,n,r,i=g.ALL){return e&&(t=e.toGlobal(t,n,r)),r||this._recursivePostUpdateTransform(),i>=g.PROJ?(r||this.displayObjectUpdateTransform(),this.proj.affine?this.transform.worldTransform.applyInverse(t,n):this.proj.world.applyInverse(t,n)):(this.parent?n=this.parent.worldTransform.applyInverse(t,n):(n.x=t.x,n.y=t.y),i===g.NONE?n:this.transform.localTransform.applyInverse(n,n))}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const D=A.prototype.toLocal;class I extends l.Kj{static __initStatic(){this.defaultVertexShader="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTextureMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\ngl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\ngl_Position.z = 0.0;\n\nvTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\n}\n"}static __initStatic2(){this.defaultFragmentShader="\nvarying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\ngl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}"}constructor(t,e,n,r){super(t,e,n,r),I.prototype.__init.call(this),this.proj=new R(this.transform)}__init(){this.vertexData2d=null}calculateVertices(){if(this.proj._affine)return this.vertexData2d=null,void super.calculateVertices();const t=this.geometry,e=t.buffers[0].data,n=this;if(t.vertexDirtyId===n.vertexDirty&&n._transformID===n.transform._worldID)return;n._transformID=n.transform._worldID,n.vertexData.length!==e.length&&(n.vertexData=new Float32Array(e.length)),this.vertexData2d&&this.vertexData2d.length===3*e.length/2||(this.vertexData2d=new Float32Array(3*e.length));const r=this.proj.world.mat3,i=this.vertexData2d,o=n.vertexData;for(let t=0;t<o.length/2;t++){const n=e[2*t],a=e[2*t+1],s=r[0]*n+r[3]*a+r[6],c=r[1]*n+r[4]*a+r[7],l=r[2]*n+r[5]*a+r[8];i[3*t]=s,i[3*t+1]=c,i[3*t+2]=l,o[2*t]=s/l,o[2*t+1]=c/l}n.vertexDirty=t.vertexDirtyId}_renderDefault(t){const e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),function(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}([e,"access",t=>t.program,"access",t=>t.uniformData,"optionalAccess",t=>t.translationMatrix])&&(e.uniforms.translationMatrix=this.worldTransform.toArray(!0)),t.shader.bind(e,!1),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)}toLocal(t,e,n,r,i=g.ALL){return D.call(this,t,e,n,r,i)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}I.__initStatic(),I.__initStatic2();class F extends h.j{constructor(t){super(t),F.prototype.__init.call(this),this.proj=new R(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}_calculateBounds(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)}calculateVertices(){const t=this._texture;if(this.proj._affine)return this.vertexData2d=null,void super.calculateVertices();this.vertexData2d||(this.vertexData2d=new Float32Array(12));const e=this.transform._worldID,n=t._updateID;if(this._transformID===e&&this._textureID===n)return;this._textureID!==n&&(this.uvs=t._uvs.uvsFloat32),this._transformID=e,this._textureID=n;const r=this.proj.world.mat3,i=this.vertexData2d,o=this.vertexData,a=t.trim,s=t.orig,c=this._anchor;let l,u,h,d;a?(u=a.x-c._x*s.width,l=u+a.width,d=a.y-c._y*s.height,h=d+a.height):(u=-c._x*s.width,l=u+s.width,d=-c._y*s.height,h=d+s.height),i[0]=r[0]*u+r[3]*d+r[6],i[1]=r[1]*u+r[4]*d+r[7],i[2]=r[2]*u+r[5]*d+r[8],i[3]=r[0]*l+r[3]*d+r[6],i[4]=r[1]*l+r[4]*d+r[7],i[5]=r[2]*l+r[5]*d+r[8],i[6]=r[0]*l+r[3]*h+r[6],i[7]=r[1]*l+r[4]*h+r[7],i[8]=r[2]*l+r[5]*h+r[8],i[9]=r[0]*u+r[3]*h+r[6],i[10]=r[1]*u+r[4]*h+r[7],i[11]=r[2]*u+r[5]*h+r[8],o[0]=i[0]/i[2],o[1]=i[1]/i[2],o[2]=i[3]/i[5],o[3]=i[4]/i[5],o[4]=i[6]/i[8],o[5]=i[7]/i[8],o[6]=i[9]/i[11],o[7]=i[10]/i[11]}calculateTrimmedVertices(){if(this.proj._affine)return void super.calculateTrimmedVertices();const t=this.transform._worldID,e=this._texture._updateID,n=this;if(n.vertexTrimmedData){if(n._transformTrimmedID===t&&this._textureTrimmedID===e)return}else n.vertexTrimmedData=new Float32Array(8);n._transformTrimmedID=t,this._textureTrimmedID=e;const r=this._texture,i=n.vertexTrimmedData,o=r.orig,a=this.tileProj?this._width:o.width,s=this.tileProj?this._height:o.height,c=this._anchor,l=this.proj.world.mat3,u=-c._x*a,h=u+a,d=-c._y*s,f=d+s;let p=1/(l[2]*u+l[5]*d+l[8]);i[0]=p*(l[0]*u+l[3]*d+l[6]),i[1]=p*(l[1]*u+l[4]*d+l[7]),p=1/(l[2]*h+l[5]*d+l[8]),i[2]=p*(l[0]*h+l[3]*d+l[6]),i[3]=p*(l[1]*h+l[4]*d+l[7]),p=1/(l[2]*h+l[5]*f+l[8]),i[4]=p*(l[0]*h+l[3]*f+l[6]),i[5]=p*(l[1]*h+l[4]*f+l[7]),p=1/(l[2]*u+l[5]*f+l[8]),i[6]=p*(l[0]*u+l[3]*f+l[6]),i[7]=p*(l[1]*u+l[4]*f+l[7])}toLocal(t,e,n,r,i=g.ALL){return D.call(this,t,e,n,r,i)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}const L=new a.wx;class M extends c.o{constructor(t,e,n){super(t,e,n),this.tileProj=new R(this.tileTransform),this.tileProj.reverseLocalOrder=!0,this.proj=new R(this.transform),this.pluginName="tilingSprite2d",this.uvRespectAnchor=!0}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,n,r,i=g.ALL){return D.call(this,t,e,n,r,i)}_render(t){const e=this._texture;e&&e.valid&&(this.tileTransform.updateTransform(L),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))}}function N(){this.proj||(this.proj=new R(this.transform),this.toLocal=A.prototype.toLocal,Object.defineProperty(this,"worldTransform",{get:O,enumerable:!0,configurable:!0}))}s.W2.prototype.convertTo2d=N,h.j.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=F.prototype.calculateVertices,this.calculateTrimmedVertices=F.prototype.calculateTrimmedVertices,this._calculateBounds=F.prototype._calculateBounds,this.pluginName="batch2d",N.call(this))},s.W2.prototype.convertSubtreeTo2d=function(){this.convertTo2d();for(let t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo2d()},u.AL.prototype.convertTo2d=u.IE.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=I.prototype.calculateVertices,this._renderDefault=I.prototype._renderDefault,"batch2d"!==this.material.pluginName&&(this.material=new l.rY(this.material.texture,{program:r.Program.from(I.defaultVertexShader,I.defaultFragmentShader),pluginName:"batch2d"})),N.call(this))},c.o.prototype.convertTo2d=function(){this.proj||(this.tileProj=new R(this.tileTransform),this.tileProj.reverseLocalOrder=!0,this.uvRespectAnchor=!0,this.calculateTrimmedVertices=F.prototype.calculateTrimmedVertices,this._calculateBounds=F.prototype._calculateBounds,this._render=M.prototype._render,this.pluginName="tilingSprite2d",N.call(this))};class j extends d.xv{constructor(t,e,n){super(t,e,n),j.prototype.__init.call(this),this.proj=new R(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}}j.prototype.calculateVertices=F.prototype.calculateVertices,j.prototype.calculateTrimmedVertices=F.prototype.calculateTrimmedVertices,j.prototype._calculateBounds=F.prototype._calculateBounds;const U=new x;class B extends r.Filter{constructor(t){super("\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\ngl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\nvTextureCoord = aTextureCoord;\nvMaskCoord = otherMatrix * vec3( aTextureCoord, 1.0);\n}\n","\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\nvec2 uv = vMaskCoord.xy / vMaskCoord.z;\n\nfloat clip = step(3.5,\n step(maskClamp.x, uv.x) +\n step(maskClamp.y, uv.y) +\n step(uv.x, maskClamp.z) +\n step(uv.y, maskClamp.w));\n\nvec4 original = texture2D(uSampler, vTextureCoord);\nvec4 masky = texture2D(mask, uv);\n\noriginal *= (masky.r * masky.a * alpha * clip);\n\ngl_FragColor = original;\n}\n"),B.prototype.__init.call(this),t.renderable=!1,this.maskSprite=t}__init(){this.maskMatrix=new x}apply(t,e,n,i){const o=this.maskSprite,a=this.maskSprite.texture;a.valid&&(a.uvMatrix||(a.uvMatrix=new r.TextureMatrix(a,0)),a.uvMatrix.update(),this.uniforms.npmAlpha=a.baseTexture.alphaMode?0:1,this.uniforms.mask=o.texture,this.uniforms.otherMatrix=B.calculateSpriteMatrix(e,this.maskMatrix,o).prepend(a.uvMatrix.mapCoord),this.uniforms.alpha=o.worldAlpha,this.uniforms.maskClamp=a.uvMatrix.uClampFrame,t.applyFilter(this,e,n,i))}static calculateSpriteMatrix(t,e,n){const r=n.proj,i=t.filterFrame,o=r&&!r._affine?r.world.copyTo2dOr3d(U):U.copyFrom(n.transform.worldTransform),a=n.texture.orig;return e.set(t.width,0,0,t.height,i.x,i.y),o.invert(),e.setToMult(o,e),e.scaleAndTranslate(1/a.width,1/a.height,n.anchor.x,n.anchor.y),e}}r.MaskSystem.prototype.pushSpriteMask=function(t){const{maskObject:e}=t,n=t._target;let r=this.alphaMaskPool[this.alphaMaskIndex];r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new B(e)]),r[0].resolution=this.renderer.resolution,r[0].maskSprite=e;const i=n.filterArea;n.filterArea=e.getBounds(!0),this.renderer.filter.push(n,r),n.filterArea=i,this.alphaMaskIndex++},r.Renderer.registerPlugin("tilingSprite2d",C);class z extends a.E9{constructor(t,e,n){super(t,e),this.z=n}set(t,e,n){return this.x=t||0,this.y=void 0===e?this.x:e||0,this.z=void 0===e?this.x:n||0,this}copyFrom(t){return this.set(t.x,t.y,t.z||0),this}copyTo(t){return t.set(this.x,this.y,this.z),t}}class W extends a.AB{constructor(...t){super(...t),W.prototype.__init.call(this)}__init(){this._z=0}get z(){return this._z}set z(t){this._z!==t&&(this._z=t,this.cb.call(this.scope))}set(t,e,n){const r=t||0,i=void 0===e?r:e||0,o=void 0===e?r:n||0;return this._x===r&&this._y===i&&this._z===o||(this._x=r,this._y=i,this._z=o,this.cb.call(this.scope)),this}copyFrom(t){return this.set(t.x,t.y,t.z||0),this}copyTo(t){return t.set(this._x,this._y,this._z),t}}class V{constructor(t,e,n){V.prototype.__init.call(this),V.prototype.__init2.call(this),V.prototype.__init3.call(this),this._x=t||0,this._y=e||0,this._z=n||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}__init(){this._quatUpdateId=-1}__init2(){this._quatDirtyId=0}__init3(){this._sign=1}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this._quatDirtyId++)}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this._quatDirtyId++)}get z(){return this._z}set z(t){this._z!==t&&(this._z=t,this._quatDirtyId++)}get pitch(){return this._x}set pitch(t){this._x!==t&&(this._x=t,this._quatDirtyId++)}get yaw(){return this._y}set yaw(t){this._y!==t&&(this._y=t,this._quatDirtyId++)}get roll(){return this._z}set roll(t){this._z!==t&&(this._z=t,this._quatDirtyId++)}set(t,e,n){const r=t||0,i=e||0,o=n||0;this._x===r&&this._y===i&&this._z===o||(this._x=r,this._y=i,this._z=o,this._quatDirtyId++)}copyFrom(t){const e=t.x,n=t.y,r=t.z;return this._x===e&&this._y===n&&this._z===r||(this._x=e,this._y=n,this._z=r,this._quatDirtyId++),this}copyTo(t){return t.set(this._x,this._y,this._z),t}equals(t){return this._x===t.x&&this._y===t.y&&this._z===t.z}clone(){return new V(this._x,this._y,this._z)}update(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;const t=Math.cos(this._x/2),e=Math.cos(this._y/2),n=Math.cos(this._z/2),r=this._sign,i=r*Math.sin(this._x/2),o=r*Math.sin(this._y/2),a=r*Math.sin(this._z/2),s=this.quaternion;return s[0]=i*e*n+t*o*a,s[1]=t*o*n-i*e*a,s[2]=t*e*a+i*o*n,s[3]=t*e*n-i*o*a,!0}}class q{constructor(t,e,n,r,i){this.cb=t,this.scope=e,q.prototype.__init.call(this),q.prototype.__init2.call(this),q.prototype.__init3.call(this),this._x=n||0,this._y=r||0,this._z=i||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}__init(){this._quatUpdateId=-1}__init2(){this._quatDirtyId=0}__init3(){this._sign=1}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this._quatDirtyId++,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this._quatDirtyId++,this.cb.call(this.scope))}get z(){return this._z}set z(t){this._z!==t&&(this._z=t,this._quatDirtyId++,this.cb.call(this.scope))}get pitch(){return this._x}set pitch(t){this._x!==t&&(this._x=t,this._quatDirtyId++,this.cb.call(this.scope))}get yaw(){return this._y}set yaw(t){this._y!==t&&(this._y=t,this._quatDirtyId++,this.cb.call(this.scope))}get roll(){return this._z}set roll(t){this._z!==t&&(this._z=t,this._quatDirtyId++,this.cb.call(this.scope))}set(t,e,n){const r=t||0,i=e||0,o=n||0;return this._x===r&&this._y===i&&this._z===o||(this._x=r,this._y=i,this._z=o,this._quatDirtyId++,this.cb.call(this.scope)),this}copyFrom(t){const e=t.x,n=t.y,r=t.z;return this._x===e&&this._y===n&&this._z===r||(this._x=e,this._y=n,this._z=r,this._quatDirtyId++,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y,this._z),t}equals(t){return this._x===t.x&&this._y===t.y&&this._z===t.z}clone(){return new V(this._x,this._y,this._z)}update(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;const t=Math.cos(this._x/2),e=Math.cos(this._y/2),n=Math.cos(this._z/2),r=this._sign,i=r*Math.sin(this._x/2),o=r*Math.sin(this._y/2),a=r*Math.sin(this._z/2),s=this.quaternion;return s[0]=i*e*n+t*o*a,s[1]=t*o*n-i*e*a,s[2]=t*e*a+i*o*n,s[3]=t*e*n-i*o*a,!0}}const H=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class G{static __initStatic(){this.IDENTITY=new G}static __initStatic2(){this.TEMP_MATRIX=new G}__init(){this.floatArray=null}__init2(){this._dirtyId=0}__init3(){this._updateId=-1}__init4(){this._mat4inv=null}__init5(){this.cacheInverse=!1}constructor(t){G.prototype.__init.call(this),G.prototype.__init2.call(this),G.prototype.__init3.call(this),G.prototype.__init4.call(this),G.prototype.__init5.call(this),this.mat4=new Float64Array(t||H)}get a(){return this.mat4[0]/this.mat4[15]}set a(t){this.mat4[0]=t*this.mat4[15]}get b(){return this.mat4[1]/this.mat4[15]}set b(t){this.mat4[1]=t*this.mat4[15]}get c(){return this.mat4[4]/this.mat4[15]}set c(t){this.mat4[4]=t*this.mat4[15]}get d(){return this.mat4[5]/this.mat4[15]}set d(t){this.mat4[5]=t*this.mat4[15]}get tx(){return this.mat4[12]/this.mat4[15]}set tx(t){this.mat4[12]=t*this.mat4[15]}get ty(){return this.mat4[13]/this.mat4[15]}set ty(t){this.mat4[13]=t*this.mat4[15]}set(t,e,n,r,i,o){const a=this.mat4;return a[0]=t,a[1]=e,a[2]=0,a[3]=0,a[4]=n,a[5]=r,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=i,a[13]=o,a[14]=0,a[15]=1,this}toArray(t,e){this.floatArray||(this.floatArray=new Float32Array(9));const n=e||this.floatArray,r=this.mat4;return t?(n[0]=r[0],n[1]=r[1],n[2]=r[3],n[3]=r[4],n[4]=r[5],n[5]=r[7],n[6]=r[12],n[7]=r[13],n[8]=r[15]):(n[0]=r[0],n[1]=r[4],n[2]=r[12],n[3]=r[2],n[4]=r[6],n[5]=r[13],n[6]=r[3],n[7]=r[7],n[8]=r[15]),n}setToTranslation(t,e,n){const r=this.mat4;r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=t,r[13]=e,r[14]=n,r[15]=1}setToRotationTranslationScale(t,e,n,r,i,o,a){const s=this.mat4,c=t[0],l=t[1],u=t[2],h=t[3],d=c+c,f=l+l,p=u+u,g=c*d,m=c*f,y=c*p,v=l*f,_=l*p,b=u*p,x=h*d,w=h*f,T=h*p;return s[0]=(1-(v+b))*i,s[1]=(m+T)*i,s[2]=(y-w)*i,s[3]=0,s[4]=(m-T)*o,s[5]=(1-(g+b))*o,s[6]=(_+x)*o,s[7]=0,s[8]=(y+w)*a,s[9]=(_-x)*a,s[10]=(1-(g+v))*a,s[11]=0,s[12]=e,s[13]=n,s[14]=r,s[15]=1,s}apply(t,e){e=e||new z;const n=this.mat4,r=t.x,i=t.y,o=t.z||0,a=1/(n[3]*r+n[7]*i+n[11]*o+n[15]);return e.x=a*(n[0]*r+n[4]*i+n[8]*o+n[12]),e.y=a*(n[1]*r+n[5]*i+n[9]*o+n[13]),e.z=a*(n[2]*r+n[6]*i+n[10]*o+n[14]),e}translate(t,e,n){const r=this.mat4;return r[12]=r[0]*t+r[4]*e+r[8]*n+r[12],r[13]=r[1]*t+r[5]*e+r[9]*n+r[13],r[14]=r[2]*t+r[6]*e+r[10]*n+r[14],r[15]=r[3]*t+r[7]*e+r[11]*n+r[15],this}scale(t,e,n){const r=this.mat4;return r[0]*=t,r[1]*=t,r[2]*=t,r[3]*=t,r[4]*=e,r[5]*=e,r[6]*=e,r[7]*=e,void 0!==n&&(r[8]*=n,r[9]*=n,r[10]*=n,r[11]*=n),this}scaleAndTranslate(t,e,n,r,i,o){const a=this.mat4;a[0]=t*a[0]+r*a[3],a[1]=e*a[1]+i*a[3],a[2]=n*a[2]+o*a[3],a[4]=t*a[4]+r*a[7],a[5]=e*a[5]+i*a[7],a[6]=n*a[6]+o*a[7],a[8]=t*a[8]+r*a[11],a[9]=e*a[9]+i*a[11],a[10]=n*a[10]+o*a[11],a[12]=t*a[12]+r*a[15],a[13]=e*a[13]+i*a[15],a[14]=n*a[14]+o*a[15]}applyInverse(t,e){e=e||new z,this._mat4inv||(this._mat4inv=new Float64Array(16));const n=this._mat4inv,r=this.mat4,i=t.x,o=t.y;let a=t.z||0;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,G.glMatrixMat4Invert(n,r));const s=1/(n[3]*i+n[7]*o+n[11]*a+n[15]),c=s*(n[0]*i+n[4]*o+n[8]*a+n[12]),l=s*(n[1]*i+n[5]*o+n[9]*a+n[13]),u=s*(n[2]*i+n[6]*o+n[10]*a+n[14]);a+=1;const h=1/(n[3]*i+n[7]*o+n[11]*a+n[15]),d=h*(n[0]*i+n[4]*o+n[8]*a+n[12]),f=h*(n[1]*i+n[5]*o+n[9]*a+n[13]),p=h*(n[2]*i+n[6]*o+n[10]*a+n[14]);Math.abs(u-p)<1e-10&&e.set(NaN,NaN,0);const g=(0-u)/(p-u);return e.set((d-c)*g+c,(f-l)*g+l,0),e}invert(){return G.glMatrixMat4Invert(this.mat4,this.mat4),this}invertCopyTo(t){this._mat4inv||(this._mat4inv=new Float64Array(16));const e=this._mat4inv,n=this.mat4;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,G.glMatrixMat4Invert(e,n)),t.mat4.set(e)}identity(){const t=this.mat4;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}clone(){return new G(this.mat4)}copyTo3d(t){const e=this.mat4,n=t.mat4;return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],t}copyTo2d(t){const e=this.mat4,n=t.mat3;return n[0]=e[0],n[1]=e[1],n[2]=e[3],n[3]=e[4],n[4]=e[5],n[5]=e[7],n[6]=e[12],n[7]=e[13],n[8]=e[15],t}copyTo2dOr3d(t){return t instanceof x?this.copyTo2d(t):this.copyTo3d(t)}copyTo(t,e,n){const r=this.mat4,i=1/r[15],o=r[12]*i,a=r[13]*i;if(t.a=(r[0]-r[3]*o)*i,t.b=(r[1]-r[3]*a)*i,t.c=(r[4]-r[7]*o)*i,t.d=(r[5]-r[7]*a)*i,t.tx=o,t.ty=a,e>=2){let r=t.a*t.d-t.b*t.c;n||(r=Math.abs(r)),e===m.POINT?(r=r>0?1:-1,t.a=r,t.b=0,t.c=0,t.d=r):e===m.AXIS_X?(r/=Math.sqrt(t.b*t.b+t.d*t.d),t.c=0,t.d=r):e===m.AXIS_Y&&(r/=Math.sqrt(t.a*t.a+t.c*t.c),t.a=r,t.c=0)}return t}copyFrom(t){const e=this.mat4;return e[0]=t.a,e[1]=t.b,e[2]=0,e[3]=0,e[4]=t.c,e[5]=t.d,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t.tx,e[13]=t.ty,e[14]=0,e[15]=1,this._dirtyId++,this}setToMultLegacy(t,e){const n=this.mat4,r=e.mat4,i=t.a,o=t.b,a=t.c,s=t.d,c=t.tx,l=t.ty;let u=r[0],h=r[1],d=r[2],f=r[3];return n[0]=u*i+h*a+f*c,n[1]=u*o+h*s+f*l,n[2]=d,n[3]=f,u=r[4],h=r[5],d=r[6],f=r[7],n[4]=u*i+h*a+f*c,n[5]=u*o+h*s+f*l,n[6]=d,n[7]=f,u=r[8],h=r[9],d=r[10],f=r[11],n[8]=u*i+h*a+f*c,n[9]=u*o+h*s+f*l,n[10]=d,n[11]=f,u=r[12],h=r[13],d=r[14],f=r[15],n[12]=u*i+h*a+f*c,n[13]=u*o+h*s+f*l,n[14]=d,n[15]=f,this._dirtyId++,this}setToMultLegacy2(t,e){const n=this.mat4,r=t.mat4,i=r[0],o=r[1],a=r[2],s=r[3],c=r[4],l=r[5],u=r[6],h=r[7],d=e.a,f=e.b,p=e.c,g=e.d,m=e.tx,y=e.ty;return n[0]=d*i+f*c,n[1]=d*o+f*l,n[2]=d*a+f*u,n[3]=d*s+f*h,n[4]=p*i+g*c,n[5]=p*o+g*l,n[6]=p*a+g*u,n[7]=p*s+g*h,n[8]=r[8],n[9]=r[9],n[10]=r[10],n[11]=r[11],n[12]=m*i+y*c+r[12],n[13]=m*o+y*l+r[13],n[14]=m*a+y*u+r[14],n[15]=m*s+y*h+r[15],this._dirtyId++,this}setToMult(t,e){return G.glMatrixMat4Multiply(this.mat4,t.mat4,e.mat4),this._dirtyId++,this}prepend(t){t.mat4?this.setToMult(t,this):this.setToMultLegacy(t,this)}static glMatrixMat4Invert(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],m=e[14],y=e[15],v=n*s-r*a,_=n*c-i*a,b=n*l-o*a,x=r*c-i*s,w=r*l-o*s,T=i*l-o*c,C=u*g-h*p,S=u*m-d*p,E=u*y-f*p,k=h*m-d*g,P=h*y-f*g,R=d*y-f*m;let O=v*R-_*P+b*k+x*E-w*S+T*C;return O?(O=1/O,t[0]=(s*R-c*P+l*k)*O,t[1]=(i*P-r*R-o*k)*O,t[2]=(g*T-m*w+y*x)*O,t[3]=(d*w-h*T-f*x)*O,t[4]=(c*E-a*R-l*S)*O,t[5]=(n*R-i*E+o*S)*O,t[6]=(m*b-p*T-y*_)*O,t[7]=(u*T-d*b+f*_)*O,t[8]=(a*P-s*E+l*C)*O,t[9]=(r*E-n*P-o*C)*O,t[10]=(p*w-g*b+y*v)*O,t[11]=(h*b-u*w-f*v)*O,t[12]=(s*S-a*k-c*C)*O,t[13]=(n*k-r*S+i*C)*O,t[14]=(g*_-p*x-m*v)*O,t[15]=(u*x-h*_+d*v)*O,t):null}static glMatrixMat4Multiply(t,e,n){const r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],d=e[9],f=e[10],p=e[11],g=e[12],m=e[13],y=e[14],v=e[15];let _=n[0],b=n[1],x=n[2],w=n[3];return t[0]=_*r+b*s+x*h+w*g,t[1]=_*i+b*c+x*d+w*m,t[2]=_*o+b*l+x*f+w*y,t[3]=_*a+b*u+x*p+w*v,_=n[4],b=n[5],x=n[6],w=n[7],t[4]=_*r+b*s+x*h+w*g,t[5]=_*i+b*c+x*d+w*m,t[6]=_*o+b*l+x*f+w*y,t[7]=_*a+b*u+x*p+w*v,_=n[8],b=n[9],x=n[10],w=n[11],t[8]=_*r+b*s+x*h+w*g,t[9]=_*i+b*c+x*d+w*m,t[10]=_*o+b*l+x*f+w*y,t[11]=_*a+b*u+x*p+w*v,_=n[12],b=n[13],x=n[14],w=n[15],t[12]=_*r+b*s+x*h+w*g,t[13]=_*i+b*c+x*d+w*m,t[14]=_*o+b*l+x*f+w*y,t[15]=_*a+b*u+x*p+w*v,t}}G.__initStatic(),G.__initStatic2();const Y=new G;class Z extends v{constructor(t,e){super(t,e),Z.prototype.__init.call(this),Z.prototype.__init2.call(this),Z.prototype.__init3.call(this),Z.prototype.__init4.call(this),Z.prototype.__init5.call(this),Z.prototype.__init6.call(this),this.local=new G,this.world=new G,this.local.cacheInverse=!0,this.world.cacheInverse=!0,this.position._z=0,this.scale._z=1,this.pivot._z=0}__init(){this.cameraMatrix=null}__init2(){this._cameraMode=!1}get cameraMode(){return this._cameraMode}set cameraMode(t){this._cameraMode!==t&&(this._cameraMode=t,this.euler._sign=this._cameraMode?-1:1,this.euler._quatDirtyId++,t&&(this.cameraMatrix=new G))}__init3(){this.position=new W(this.onChange,this,0,0)}__init4(){this.scale=new W(this.onChange,this,1,1)}__init5(){this.euler=new q(this.onChange,this,0,0,0)}__init6(){this.pivot=new W(this.onChange,this,0,0)}onChange(){this._projID++}clear(){this.cameraMatrix&&this.cameraMatrix.identity(),this.position.set(0,0,0),this.scale.set(1,1,1),this.euler.set(0,0,0),this.pivot.set(0,0,0),super.clear()}updateLocalTransform(t){if(0===this._projID)return void this.local.copyFrom(t);const e=this.local,n=this.euler,r=this.position,i=this.scale,o=this.pivot;if(n.update(),!this.cameraMode)return e.setToRotationTranslationScale(n.quaternion,r._x,r._y,r._z,i._x,i._y,i._z),e.translate(-o._x,-o._y,-o._z),void e.setToMultLegacy(t,e);e.setToMultLegacy(t,this.cameraMatrix),e.translate(o._x,o._y,o._z),e.scale(1/i._x,1/i._y,1/i._z),Y.setToRotationTranslationScale(n.quaternion,0,0,0,1,1,1),e.setToMult(e,Y),e.translate(-r._x,-r._y,-r._z),this.local._dirtyId++}}class K extends s.W2{constructor(){super(),this.proj=new Z(this.transform)}isFrontFace(t=!1){t&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());const e=this.proj.world.mat4,n=e[0]*e[15]-e[3]*e[12],r=e[1]*e[15]-e[3]*e[13],i=e[4]*e[15]-e[7]*e[12];return n*(e[5]*e[15]-e[7]*e[13])-i*r>0}getDepth(t=!1){t&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());const e=this.proj.world.mat4;return e[14]/e[15]}toLocal(t,e,n,r,i=g.ALL){return e&&(t=e.toGlobal(t,n,r)),r||this._recursivePostUpdateTransform(),i===g.ALL?(r||this.displayObjectUpdateTransform(),this.proj.affine?this.transform.worldTransform.applyInverse(t,n):this.proj.world.applyInverse(t,n)):(this.parent?n=this.parent.worldTransform.applyInverse(t,n):(n.x=t.x,n.y=t.y,n.z=t.z),i===g.NONE||(n=this.transform.localTransform.applyInverse(n,n),i===g.PROJ&&this.proj.cameraMode&&(n=this.proj.cameraMatrix.applyInverse(n,n))),n)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}const X=K.prototype.toLocal,$=K.prototype.getDepth,J=K.prototype.isFrontFace;class Q extends K{constructor(){super(),Q.prototype.__init.call(this),Q.prototype.__init2.call(this),Q.prototype.__init3.call(this),Q.prototype.__init4.call(this),this.proj.cameraMode=!0,this.setPlanes(400,10,1e4,!1)}__init(){this._far=0}__init2(){this._near=0}__init3(){this._focus=0}__init4(){this._orthographic=!1}get far(){return this._far}get near(){return this._near}get focus(){return this._focus}get ortographic(){return this._orthographic}setPlanes(t,e=10,n=1e4,r=!1){this._focus=t,this._near=e,this._far=n,this._orthographic=r;const i=this.proj,o=i.cameraMatrix.mat4;i._projID++,o[10]=1/(n-e),o[14]=(t-e)/(n-e),this._orthographic?o[11]=0:o[11]=1/t}}class tt extends l.Kj{constructor(t,e,n,r){super(t,e,n,r),tt.prototype.__init.call(this),this.proj=new Z(this.transform)}__init(){this.vertexData2d=null}calculateVertices(){if(this.proj._affine)return this.vertexData2d=null,void super.calculateVertices();const t=this.geometry,e=t.buffers[0].data,n=this;if(t.vertexDirtyId===n.vertexDirty&&n._transformID===n.transform._worldID)return;n._transformID=n.transform._worldID,n.vertexData.length!==e.length&&(n.vertexData=new Float32Array(e.length)),this.vertexData2d&&this.vertexData2d.length===3*e.length/2||(this.vertexData2d=new Float32Array(3*e.length));const r=this.proj.world.mat4,i=this.vertexData2d,o=n.vertexData;for(let t=0;t<o.length/2;t++){const n=e[2*t],a=e[2*t+1],s=r[0]*n+r[4]*a+r[12],c=r[1]*n+r[5]*a+r[13],l=r[3]*n+r[7]*a+r[15];i[3*t]=s,i[3*t+1]=c,i[3*t+2]=l,o[2*t]=s/l,o[2*t+1]=c/l}n.vertexDirty=t.vertexDirtyId}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,n,r,i=g.ALL){return X.call(this,t,e,n,r,i)}isFrontFace(t){return J.call(this,t)}getDepth(t){return $.call(this,t)}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}tt.prototype._renderDefault=I.prototype._renderDefault;class et extends h.j{constructor(t){super(t),et.prototype.__init.call(this),et.prototype.__init2.call(this),et.prototype.__init3.call(this),this.proj=new Z(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}__init2(){this.culledByFrustrum=!1}__init3(){this.trimmedCulledByFrustrum=!1}calculateVertices(){const t=this._texture;if(this.proj._affine)return this.vertexData2d=null,void super.calculateVertices();this.vertexData2d||(this.vertexData2d=new Float32Array(12));const e=this.transform._worldID,n=t._updateID;if(this._transformID===e&&this._textureID===n)return;this._textureID!==n&&(this.uvs=t._uvs.uvsFloat32),this._transformID=e,this._textureID=n;const r=this.proj.world.mat4,i=this.vertexData2d,o=this.vertexData,a=t.trim,s=t.orig,c=this._anchor;let l,u,h,d;a?(u=a.x-c._x*s.width,l=u+a.width,d=a.y-c._y*s.height,h=d+a.height):(u=-c._x*s.width,l=u+s.width,d=-c._y*s.height,h=d+s.height);let f,p=!1;i[0]=r[0]*u+r[4]*d+r[12],i[1]=r[1]*u+r[5]*d+r[13],f=r[2]*u+r[6]*d+r[14],i[2]=r[3]*u+r[7]*d+r[15],p=p||f<0,i[3]=r[0]*l+r[4]*d+r[12],i[4]=r[1]*l+r[5]*d+r[13],f=r[2]*l+r[6]*d+r[14],i[5]=r[3]*l+r[7]*d+r[15],p=p||f<0,i[6]=r[0]*l+r[4]*h+r[12],i[7]=r[1]*l+r[5]*h+r[13],f=r[2]*l+r[6]*h+r[14],i[8]=r[3]*l+r[7]*h+r[15],p=p||f<0,i[9]=r[0]*u+r[4]*h+r[12],i[10]=r[1]*u+r[5]*h+r[13],f=r[2]*u+r[6]*h+r[14],i[11]=r[3]*u+r[7]*h+r[15],p=p||f<0,this.culledByFrustrum=p,o[0]=i[0]/i[2],o[1]=i[1]/i[2],o[2]=i[3]/i[5],o[3]=i[4]/i[5],o[4]=i[6]/i[8],o[5]=i[7]/i[8],o[6]=i[9]/i[11],o[7]=i[10]/i[11]}calculateTrimmedVertices(){if(this.proj._affine)return void super.calculateTrimmedVertices();const t=this.transform._worldID,e=this._texture._updateID,n=this;if(n.vertexTrimmedData){if(n._transformTrimmedID===t&&this._textureTrimmedID===e)return}else n.vertexTrimmedData=new Float32Array(8);n._transformTrimmedID=t,this._textureTrimmedID=e;const r=this._texture,i=n.vertexTrimmedData,o=r.orig,a=this._anchor,s=this.proj.world.mat4,c=-a._x*o.width,l=c+o.width,u=-a._y*o.height,h=u+o.height;let d,f=!1,p=1/(s[3]*c+s[7]*u+s[15]);i[0]=p*(s[0]*c+s[4]*u+s[12]),i[1]=p*(s[1]*c+s[5]*u+s[13]),d=s[2]*c+s[6]*u+s[14],f=f||d<0,p=1/(s[3]*l+s[7]*u+s[15]),i[2]=p*(s[0]*l+s[4]*u+s[12]),i[3]=p*(s[1]*l+s[5]*u+s[13]),d=s[2]*l+s[6]*u+s[14],f=f||d<0,p=1/(s[3]*l+s[7]*h+s[15]),i[4]=p*(s[0]*l+s[4]*h+s[12]),i[5]=p*(s[1]*l+s[5]*h+s[13]),d=s[2]*l+s[6]*h+s[14],f=f||d<0,p=1/(s[3]*c+s[7]*h+s[15]),i[6]=p*(s[0]*c+s[4]*h+s[12]),i[7]=p*(s[1]*c+s[5]*h+s[13]),d=s[2]*c+s[6]*h+s[14],f=f||d<0,this.culledByFrustrum=f}_calculateBounds(){if(this.calculateVertices(),this.culledByFrustrum)return;const t=this._texture.trim,e=this._texture.orig;!t||t.width===e.width&&t.height===e.height?this._bounds.addQuad(this.vertexData):(this.calculateTrimmedVertices(),this.trimmedCulledByFrustrum||this._bounds.addQuad(this.vertexTrimmedData))}_render(t){this.calculateVertices(),this.culledByFrustrum||(t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))}containsPoint(t){return!this.culledByFrustrum&&super.containsPoint(t)}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,n,r,i=g.ALL){return X.call(this,t,e,n,r,i)}isFrontFace(t){return J.call(this,t)}getDepth(t){return $.call(this,t)}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}const nt={worldTransform:{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0},position3d:{get(){return this.proj.position},set(t){this.proj.position.copy(t)}},scale3d:{get(){return this.proj.scale},set(t){this.proj.scale.copy(t)}},pivot3d:{get(){return this.proj.pivot},set(t){this.proj.pivot.copy(t)}},euler:{get(){return this.proj.euler},set(t){this.proj.euler.copy(t)}}};function rt(){this.proj||(this.proj=new Z(this.transform),this.toLocal=K.prototype.toLocal,this.isFrontFace=K.prototype.isFrontFace,this.getDepth=K.prototype.getDepth,Object.defineProperties(this,nt))}s.W2.prototype.convertTo3d=rt,h.j.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=et.prototype.calculateVertices,this.calculateTrimmedVertices=et.prototype.calculateTrimmedVertices,this._calculateBounds=et.prototype._calculateBounds,this.containsPoint=et.prototype.containsPoint,this.pluginName="batch2d",rt.call(this))},s.W2.prototype.convertSubtreeTo3d=function(){this.convertTo3d();for(let t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo3d()},u.AL.prototype.convertTo3d=u.IE.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=tt.prototype.calculateVertices,this._renderDefault=tt.prototype._renderDefault,"batch2d"!==this.material.pluginName&&(this.material=new l.rY(this.material.texture,{program:r.Program.from(I.defaultVertexShader,I.defaultFragmentShader),pluginName:"batch2d"})),rt.call(this))};class it extends d.xv{constructor(t,e,n){super(t,e,n),it.prototype.__init.call(this),this.proj=new Z(this.transform),this.pluginName="batch2d"}__init(){this.vertexData2d=null}get worldTransform(){return this.proj.affine?this.transform.worldTransform:this.proj.world}toLocal(t,e,n,r,i=g.ALL){return X.call(this,t,e,n,r,i)}isFrontFace(t){return J.call(this,t)}getDepth(t){return $.call(this,t)}get position3d(){return this.proj.position}set position3d(t){this.proj.position.copyFrom(t)}get scale3d(){return this.proj.scale}set scale3d(t){this.proj.scale.copyFrom(t)}get euler(){return this.proj.euler}set euler(t){this.proj.euler.copyFrom(t)}get pivot3d(){return this.proj.pivot}set pivot3d(t){this.proj.pivot.copyFrom(t)}}var ot;it.prototype.calculateVertices=et.prototype.calculateVertices,it.prototype.calculateTrimmedVertices=et.prototype.calculateTrimmedVertices,it.prototype._calculateBounds=et.prototype._calculateBounds,it.prototype.containsPoint=et.prototype.containsPoint,it.prototype._render=et.prototype._render;class at extends r.Geometry{constructor(t=!1){super(),this._buffer=new r.Buffer(null,t,!1),this._indexBuffer=new r.Buffer(null,t,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,i.vK.FLOAT).addAttribute("aTrans1",this._buffer,3,!1,i.vK.FLOAT).addAttribute("aTrans2",this._buffer,3,!1,i.vK.FLOAT).addAttribute("aSamplerSize",this._buffer,2,!1,i.vK.FLOAT).addAttribute("aFrame",this._buffer,4,!1,i.vK.FLOAT).addAttribute("aColor",this._buffer,4,!0,i.vK.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,i.vK.FLOAT).addIndex(this._indexBuffer)}}const st=[new a.E9,new a.E9,new a.E9,new a.E9],ct=[0,0,0,0];class lt{constructor(){lt.prototype.__init.call(this),lt.prototype.__init2.call(this),lt.prototype.__init3.call(this),lt.prototype.__init4.call(this)}__init(){this.surfaceID="default"}__init2(){this._updateID=0}__init3(){this.vertexSrc=""}__init4(){this.fragmentSrc=""}fillUniforms(t){}clear(){}boundsQuad(t,e,n){let r=e[0],i=e[1],o=e[0],a=e[1];for(let t=2;t<8;t+=2)r>e[t]&&(r=e[t]),o<e[t]&&(o=e[t]),i>e[t+1]&&(i=e[t+1]),a<e[t+1]&&(a=e[t+1]);if(st[0].set(r,i),this.apply(st[0],st[0]),st[1].set(o,i),this.apply(st[1],st[1]),st[2].set(o,a),this.apply(st[2],st[2]),st[3].set(r,a),this.apply(st[3],st[3]),n)n.apply(st[0],st[0]),n.apply(st[1],st[1]),n.apply(st[2],st[2]),n.apply(st[3],st[3]),e[0]=st[0].x,e[1]=st[0].y,e[2]=st[1].x,e[3]=st[1].y,e[4]=st[2].x,e[5]=st[2].y,e[6]=st[3].x,e[7]=st[3].y;else{for(let t=1;t<=3;t++)if(st[t].y<st[0].y||st[t].y===st[0].y&&st[t].x<st[0].x){const e=st[0];st[0]=st[t],st[t]=e}for(let t=1;t<=3;t++)ct[t]=Math.atan2(st[t].y-st[0].y,st[t].x-st[0].x);for(let t=1;t<=3;t++)for(let e=t+1;e<=3;e++)if(ct[t]>ct[e]){const n=st[t];st[t]=st[e],st[e]=n;const r=ct[t];ct[t]=ct[e],ct[e]=r}if(e[0]=st[0].x,e[1]=st[0].y,e[2]=st[1].x,e[3]=st[1].y,e[4]=st[2].x,e[5]=st[2].y,e[6]=st[3].x,e[7]=st[3].y,(st[3].x-st[2].x)*(st[1].y-st[2].y)-(st[1].x-st[2].x)*(st[3].y-st[2].y)<0)return e[4]=st[3].x,void(e[5]=st[3].y)}}}const ut=new a.y3,ht=new a.Ae,dt=new a.E9;class ft extends lt{constructor(...t){super(...t),ft.prototype.__init.call(this)}__init(){this.distortion=new a.E9}clear(){this.distortion.set(0,0)}apply(t,e){e=e||new a.E9;const n=this.distortion,r=t.x*t.y;return e.x=t.x+n.x*r,e.y=t.y+n.y*r,e}applyInverse(t,e){e=e||new a.E9;const n=t.x,r=t.y,i=this.distortion.x,o=this.distortion.y;if(0===i)e.x=n,e.y=r/(1+o*n);else if(0===o)e.y=r,e.x=n/(1+i*r);else{const t=.5*(r*i-n*o+1)/o,a=t*t+n/o;if(a<=1e-5)return e.set(NaN,NaN),e;e.x=o>0?-t+Math.sqrt(a):-t-Math.sqrt(a),e.y=(n/e.x-1)/i}return e}mapSprite(t,e,n){const r=t.texture;return ht.x=-t.anchor.x*r.orig.width,ht.y=-t.anchor.y*r.orig.height,ht.width=r.orig.width,ht.height=r.orig.height,this.mapQuad(ht,e,n||t.transform)}mapQuad(t,e,n){const r=-t.x/t.width,i=-t.y/t.height,o=(1-t.x)/t.width,a=(1-t.y)/t.height,s=e[0].x*(1-r)+e[1].x*r,c=e[0].y*(1-r)+e[1].y*r,l=e[0].x*(1-o)+e[1].x*o,u=e[0].y*(1-o)+e[1].y*o,h=e[3].x*(1-r)+e[2].x*r,d=e[3].y*(1-r)+e[2].y*r,f=e[3].x*(1-o)+e[2].x*o,p=e[3].y*(1-o)+e[2].y*o,g=s*(1-i)+h*i,m=c*(1-i)+d*i,y=l*(1-i)+f*i,v=u*(1-i)+p*i,_=s*(1-a)+h*a,b=c*(1-a)+d*a,x=l*(1-a)+f*a,w=u*(1-a)+p*a,T=ut;return T.tx=g,T.ty=m,T.a=y-g,T.b=v-m,T.c=_-g,T.d=b-m,dt.set(x,w),T.applyInverse(dt,dt),this.distortion.set(dt.x-1,dt.y-1),n.setFromMatrix(T),this}fillUniforms(t){t.distortion=t.distortion||new Float32Array([0,0,0,0]);const e=Math.abs(this.distortion.x),n=Math.abs(this.distortion.y);t.distortion[0]=1e4*e<=n?0:this.distortion.x,t.distortion[1]=1e4*n<=e?0:this.distortion.y,t.distortion[2]=1/t.distortion[0],t.distortion[3]=1/t.distortion[1]}}const pt=a.wx.prototype.updateTransform;function gt(t){const e=this.proj,n=t.proj,r=this;return n?n._surface?(e._activeProjection=n,this.updateLocalTransform(),this.localTransform.copyTo(this.worldTransform),void(r._parentID<0&&++r._worldID)):(pt.call(this,t),void(e._activeProjection=n._activeProjection)):(pt.call(this,t),void(e._activeProjection=null))}class mt extends p{constructor(...t){super(...t),mt.prototype.__init.call(this),mt.prototype.__init2.call(this),mt.prototype.__init3.call(this),mt.prototype.__init4.call(this),mt.prototype.__init5.call(this)}__init(){this._surface=null}__init2(){this._activeProjection=null}set enabled(t){t!==this._enabled&&(this._enabled=t,t?(this.legacy.updateTransform=gt,this.legacy._parentID=-1):(this.legacy.updateTransform=a.wx.prototype.updateTransform,this.legacy._parentID=-1))}get surface(){return this._surface}set surface(t){this._surface!==t&&(this._surface=t||null,this.legacy._parentID=-1)}applyPartial(t,e){return null!==this._activeProjection?(e=this.legacy.worldTransform.apply(t,e),this._activeProjection.surface.apply(e,e)):null!==this._surface?this.surface.apply(t,e):this.legacy.worldTransform.apply(t,e)}apply(t,e){return null!==this._activeProjection?(e=this.legacy.worldTransform.apply(t,e),this._activeProjection.surface.apply(e,e),this._activeProjection.legacy.worldTransform.apply(e,e)):null!==this._surface?(e=this.surface.apply(t,e),this.legacy.worldTransform.apply(e,e)):this.legacy.worldTransform.apply(t,e)}applyInverse(t,e){return null!==this._activeProjection?(e=this._activeProjection.legacy.worldTransform.applyInverse(t,e),this._activeProjection._surface.applyInverse(e,e),this.legacy.worldTransform.applyInverse(e,e)):null!==this._surface?(e=this.legacy.worldTransform.applyInverse(t,e),this._surface.applyInverse(e,e)):this.legacy.worldTransform.applyInverse(t,e)}mapBilinearSprite(t,e){this._surface instanceof ft||(this.surface=new ft),this.surface.mapSprite(t,e,this.legacy)}__init3(){this._currentSurfaceID=-1}__init4(){this._currentLegacyID=-1}__init5(){this._lastUniforms=null}clear(){this.surface&&this.surface.clear()}get uniforms(){return this._currentLegacyID===this.legacy._worldID&&this._currentSurfaceID===this.surface._updateID||(this._lastUniforms=this._lastUniforms||{},this._lastUniforms.translationMatrix=this.legacy.worldTransform,this._surface.fillUniforms(this._lastUniforms)),this._lastUniforms}}class yt extends h.j{constructor(t){super(t),yt.prototype.__init.call(this),this.proj=new mt(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new a.y3}_calculateBounds(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)}calculateVertices(){const t=this.transform._worldID,e=this._texture._updateID;if(this._transformID===t&&this._textureID===e)return;this._transformID=t,this._textureID=e;const n=this._texture,i=this.vertexData,o=n.trim,a=n.orig,s=this._anchor;let c,l,u,h;if(o?(l=o.x-s._x*a.width,c=l+o.width,h=o.y-s._y*a.height,u=h+o.height):(l=-s._x*a.width,c=l+a.width,h=-s._y*a.height,u=h+a.height),this.proj._surface)i[0]=l,i[1]=h,i[2]=c,i[3]=h,i[4]=c,i[5]=u,i[6]=l,i[7]=u,this.proj._surface.boundsQuad(i,i);else{const t=this.transform.worldTransform,e=t.a,n=t.b,r=t.c,o=t.d,a=t.tx,s=t.ty;i[0]=e*l+r*h+a,i[1]=o*h+n*l+s,i[2]=e*c+r*h+a,i[3]=o*h+n*c+s,i[4]=e*c+r*u+a,i[5]=o*u+n*c+s,i[6]=e*l+r*u+a,i[7]=o*u+n*l+s,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(i,i)}n.uvMatrix||(n.uvMatrix=new r.TextureMatrix(n)),n.uvMatrix.update();const d=this.aTrans;d.set(a.width,0,0,a.height,l,h),null===this.proj._surface&&d.prepend(this.transform.worldTransform),d.invert(),d.prepend(n.uvMatrix.mapCoord)}calculateTrimmedVertices(){const t=this.transform._worldID,e=this._texture._updateID,n=this;if(n.vertexTrimmedData){if(n._transformTrimmedID===t&&this._textureTrimmedID===e)return}else n.vertexTrimmedData=new Float32Array(8);n._transformTrimmedID=t,this._textureTrimmedID=e;const r=this._texture,i=n.vertexTrimmedData,o=r.orig,a=this._anchor,s=-a._x*o.width,c=s+o.width,l=-a._y*o.height,u=l+o.height;if(this.proj._surface)i[0]=s,i[1]=l,i[2]=c,i[3]=l,i[4]=c,i[5]=u,i[6]=s,i[7]=u,this.proj._surface.boundsQuad(i,i,this.transform.worldTransform);else{const t=this.transform.worldTransform,e=t.a,n=t.b,r=t.c,o=t.d,a=t.tx,h=t.ty;i[0]=e*s+r*l+a,i[1]=o*l+n*s+h,i[2]=e*c+r*l+a,i[3]=o*l+n*c+h,i[4]=e*c+r*u+a,i[5]=o*u+n*c+h,i[6]=e*s+r*u+a,i[7]=o*u+n*s+h,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(i,i,this.proj._activeProjection.legacy.worldTransform)}}get worldTransform(){return this.proj}}h.j.prototype.convertTo2s=function(){this.proj||(this.pluginName="sprite_bilinear",this.aTrans=new a.y3,this.calculateVertices=yt.prototype.calculateVertices,this.calculateTrimmedVertices=yt.prototype.calculateTrimmedVertices,this._calculateBounds=yt.prototype._calculateBounds,s.W2.prototype.convertTo2s.call(this))},s.W2.prototype.convertTo2s=function(){this.proj||(this.proj=new mt(this.transform),Object.defineProperty(this,"worldTransform",{get(){return this.proj},enumerable:!0,configurable:!0}))},s.W2.prototype.convertSubtreeTo2s=function(){this.convertTo2s();for(let t=0;t<this.children.length;t++)this.children[t].convertSubtreeTo2s()};class vt extends d.xv{constructor(t,e,n){super(t,e,n),vt.prototype.__init.call(this),this.proj=new mt(this.transform),this.pluginName="batch_bilinear"}__init(){this.aTrans=new a.y3}get worldTransform(){return this.proj}}vt.prototype.calculateVertices=yt.prototype.calculateVertices,vt.prototype.calculateTrimmedVertices=yt.prototype.calculateTrimmedVertices,vt.prototype._calculateBounds=yt.prototype._calculateBounds,r.Renderer.registerPlugin("batch_bilinear",class{static create(t){const{vertex:e,fragment:n,vertexSize:i,geometryClass:s}=Object.assign({vertex:"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec3 aTrans1;\nattribute vec3 aTrans2;\nattribute vec2 aSamplerSize;\nattribute vec4 aFrame;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\n\nvarying vec2 vertexPosition;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec2 vSamplerSize;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\ngl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\ngl_Position.z = 0.0;\n\nvertexPosition = aVertexPosition;\nvTrans1 = aTrans1;\nvTrans2 = aTrans2;\nvTextureId = aTextureId;\nvColor = aColor;\nvSamplerSize = aSamplerSize;\nvFrame = aFrame;\n}\n",fragment:"precision highp float;\nvarying vec2 vertexPosition;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec2 vSamplerSize;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nuniform sampler2D uSamplers[%count%];\nuniform vec4 distortion;\n\nvoid main(void){\nvec2 surface;\nvec2 surface2;\n\nfloat vx = vertexPosition.x;\nfloat vy = vertexPosition.y;\nfloat dx = distortion.x;\nfloat dy = distortion.y;\nfloat revx = distortion.z;\nfloat revy = distortion.w;\n\nif (distortion.x == 0.0) {\nsurface.x = vx;\nsurface.y = vy / (1.0 + dy * vx);\nsurface2 = surface;\n} else\nif (distortion.y == 0.0) {\nsurface.y = vy;\nsurface.x = vx / (1.0 + dx * vy);\nsurface2 = surface;\n} else {\nfloat c = vy * dx - vx * dy;\nfloat b = (c + 1.0) * 0.5;\nfloat b2 = (-c + 1.0) * 0.5;\nfloat d = b * b + vx * dy;\nif (d < -0.00001) {\n discard;\n}\nd = sqrt(max(d, 0.0));\nsurface.x = (- b + d) * revy;\nsurface2.x = (- b - d) * revy;\nsurface.y = (- b2 + d) * revx;\nsurface2.y = (- b2 - d) * revx;\n}\n\nvec2 uv;\nuv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;\nuv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;\n\nvec2 pixels = uv * vSamplerSize;\n\nif (pixels.x < vFrame.x || pixels.x > vFrame.z ||\npixels.y < vFrame.y || pixels.y > vFrame.w) {\nuv.x = vTrans1.x * surface2.x + vTrans1.y * surface2.y + vTrans1.z;\nuv.y = vTrans2.x * surface2.x + vTrans2.y * surface2.y + vTrans2.z;\npixels = uv * vSamplerSize;\n\nif (pixels.x < vFrame.x || pixels.x > vFrame.z ||\n pixels.y < vFrame.y || pixels.y > vFrame.w) {\n discard;\n}\n}\n\nvec4 edge;\nedge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\nedge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\n\nfloat alpha = 1.0; //edge.x * edge.y * edge.z * edge.w;\nvec4 rColor = vColor * alpha;\n\nfloat textureId = floor(vTextureId+0.5);\nvec2 vTextureCoord = uv;\nvec4 color;\n%forloop%\ngl_FragColor = color * rColor;\n}",geometryClass:at,vertexSize:16},t);return ot=class extends _{constructor(t){super(t),ot.prototype.__init.call(this),ot.prototype.__init2.call(this),ot.prototype.__init3.call(this),this.shaderGenerator=new r.BatchShaderGenerator(e,n),this.geometryClass=s,this.vertexSize=i}__init(){this.defUniforms={translationMatrix:new a.y3,distortion:new Float32Array([0,0,1/0,1/0])}}__init2(){this.size=1e3}__init3(){this.forceMaxTextures=1}getUniforms(t){const{proj:e}=t;return null!==e.surface?e.uniforms:null!==e._activeProjection?e._activeProjection.uniforms:this.defUniforms}packInterleavedGeometry(t,e,n,r,i){const{uint32View:a,float32View:s}=e,c=r/this.vertexSize,l=t.indices,u=t.vertexData,h=t._texture._frame,d=t.aTrans,{_batchLocation:f,realWidth:p,realHeight:g,resolution:m}=t._texture.baseTexture,y=Math.min(t.worldAlpha,1),v=y<1&&t._texture.baseTexture.alphaMode?(0,o.premultiplyTint)(t._tintRGB,y):t._tintRGB+(255*y<<24);for(let t=0;t<u.length;t+=2)s[r]=u[t],s[r+1]=u[t+1],s[r+2]=d.a,s[r+3]=d.c,s[r+4]=d.tx,s[r+5]=d.b,s[r+6]=d.d,s[r+7]=d.ty,s[r+8]=p,s[r+9]=g,s[r+10]=h.x*m,s[r+11]=h.y*m,s[r+12]=(h.x+h.width)*m,s[r+13]=(h.y+h.height)*m,a[r+14]=v,s[r+15]=f,r+=16;for(let t=0;t<l.length;t++)n[i++]=c+l[t]}},ot}}.create({}))},4703:(t,e,n)=>{n.d(e,{ry:()=>lt,Cz:()=>r.BeautifyOptions,T$:()=>vt.a,Mj:()=>yt,UZ:()=>pt,bk:()=>gt,Iq:()=>Y,aR:()=>ht,_$:()=>st});var r={};n.r(r),n.d(r,{Mj:()=>yt,UZ:()=>pt,bk:()=>gt});var i=n(6878),o=n(1347),a=n(617);class s{constructor(){this._configCenter=new a.M}async init(){return new Promise(((t,e)=>{this.initDataMap(),wx.initFaceDetect({success(){t()},fail(n){console.log("wx init face fail",n);const{errMsg:r}=n;if(r.indexOf("already init")>-1)return t();e({errMsg:"wx init face fail"})}})}))}send(t){const{data:e,width:n,height:r}=t;new Date;wx.faceDetect({width:n,height:r,frameBuffer:e,enablePoint:!0,enableAngle:!0,success:e=>{const{x:i,y:a}=e,s=e.pointArray,c=e.angleArray;let l={yaw:-c.yaw*Math.PI/2,pitch:c.pitch,roll:c.roll};const u=(i-n/2)/n;l.yaw+=1.4*u;const h=(a-r/2)/(r/2);l.pitch-=h,this.angles=l,s.push(this.getCenterOfTwoPoints(s[96],s[97])),s.push(this.getCenterOfTwoPoints(s[96],s[103])),s.push(this.getCenterOfTwoPoints(s[100],s[99])),s.push(this.getCenterOfTwoPoints(s[100],s[101]));const d=this.getCenterOfTwoPoints(s[78],s[79]),f=1.5*(0,o.Sp)(s[44],s[49]),p=this.getSlope(d,s[49]),g=Math.atan(p),m={x:d.x-f*Math.cos(g)*(g/Math.abs(g)),y:d.y-f*Math.sin(Math.abs(g))};s.push(m);const y=s[0],v=y.y-y.x*p,_=m.y- -1/p*m.x,b=(_-v)/(p- -1/p),x={x:b,y:b*p+v},w=this.twoBezier(.14,m,x,y),T=this.twoBezier(.28,m,x,y),C=this.twoBezier(.42,m,x,y),S=this.twoBezier(.56,m,x,y),E=this.twoBezier(.7,m,x,y),k=this.twoBezier(.85,m,x,y),P=s[32],R=P.y-P.x*p,O={x:(_-R)/(p- -1/p),y:(_-R)/(p- -1/p)*p+R},A=this.twoBezier(.14,m,O,P),D=this.twoBezier(.28,m,O,P),I=this.twoBezier(.42,m,O,P),F=this.twoBezier(.56,m,O,P),L=this.twoBezier(.7,m,O,P),M=this.twoBezier(.85,m,O,P);s.push(w,T,C,A,D,I,S,F,k,E,M,L);const{meshVertex:N,lipVertex:j}=this.getMeshVertex(s);this.triggerResult({landmarks:s,angles:l,image:t,meshVertex:N,lipVertex:j})},fail:e=>{this.triggerResult({landmarks:[],angles:[],image:t,meshVertex:[],lipVertex:[]})}})}onResult(t){this.resultCb=t}triggerResult(t){this.vkstarted||(this.vkstarted=!0),this.detectId=null,this.resultCb&&this.resultCb(t)}twoBezier(t,e,n,r){const{x:i,y:o}=e,{x:a,y:s}=n,{x:c,y:l}=r;return{x:(1-t)*(1-t)*i+2*t*(1-t)*a+t*t*c,y:(1-t)*(1-t)*o+2*t*(1-t)*s+t*t*l}}destroy(){console.log("stopFaceDetect"),wx.stopFaceDetect({success(){console.log("face detect stopped")},fail(){console.log("face detect stop failed")}})}getCenterOfTwoPoints(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}getDistanceOfTwoPoints(t,e){return Math.pow((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y),.5)}getSlope(t,e){return e.x===t.x?Number.MAX_SAFE_INTEGER:(e.y-t.y)/(e.x-t.x)}getMeshVertex(t){const{triangulation:e,lipsTriangulation:n,KEY_POINTS:r,LIPS:i,MOUTH_UPPER:o}=this._dataMap,a=[],s=[];if(t){const o=[],l=[],u=this.processLipEdge(t);t.forEach(((t,e)=>{if(r.indexOf(e)>=0){const n=t;o.push([u[e].x,u[e].y]),i.indexOf(e)>=0&&l.push([n.x,n.y])}}));this.addOuterLandmarks(t).forEach(((t,e)=>{o.push([t.x,t.y])}));const h=e;for(var c=0;c<h.length;c+=3){const t=h[c],e=h[c+1],n=h[c+2];a.push(o[t][0]),a.push(o[t][1]),a.push(o[e][0]),a.push(o[e][1]),a.push(o[n][0]),a.push(o[n][1])}for(c=0;c<n.length;c+=3){const t=n[c],e=n[c+1],r=n[c+2];s.push(l[t][0]),s.push(l[t][1]),s.push(l[e][0]),s.push(l[e][1]),s.push(l[r][0]),s.push(l[r][1])}}return{meshVertex:a,lipVertex:s}}processLipEdge(t){const e=JSON.parse(JSON.stringify(t)),{MOUTH_UPPER:n,MOUTH_LOWER:r}=this._dataMap;return n.forEach(((t,n)=>{const i=e[t],o=e[r[n]],a={x:(i.x+o.x)/2,y:(i.y+o.y)/2};i.y=a.y,i.x=a.x,o.y=a.y,o.x=a.x})),e}getAngles(){return this.angles}addOuterLandmarks(t){const{OUTER_REFERENCE:e}=this._dataMap,n=(0,o.Sp)(t[32],t[0]),r=(0,o.Sp)(t[16],t[110]),i=[],a=this.getAngles(t),s=Math.cos(a.roll),c=Math.sin(a.roll),{yaw:l,pitch:u}=a;return e.forEach(((e,o)=>{e.forEach((e=>{let a,u;"object"==typeof e?(a=t[e.x],u=t[e.y]):(a=t[e],u=t[e]);const h=this.getSlope(t[16],t[110]),d=-1/h,f=a.y-a.x*h,p=(f-(u.y-u.x*d))/(d-h),g=p,m=p*h+f,y=[.5,.2];let v,_,b;0===o?(b=y[0]*r,v=g+b*c,_=m-b*Math.abs(s)):1===o?(b=.3*n,l>0&&(b*=Math.cos(2*l)),v=g+b*Math.abs(s),_=m+b*c):2===o?(b=y[1]*r,v=g-b*c,_=m+b*Math.abs(s)):(b=.3*n,l<0&&(b*=Math.cos(2*l)),v=g-b*Math.abs(s),_=m-b*c),i.push({x:v,y:_,z:0})}))})),i}initDataMap(){const t=this._configCenter.getConfigByKeys(["triangulation","OUTER_REFERENCE","POINTS_MAP","KEY_POINTS","LEFT_FACE_OVAL","RIGHT_FACE_OVAL","outer_offset_ratio","MOUTH_UPPER","MOUTH_LOWER","lipsTriangulation","LIPS"]);this._dataMap=t}}class c{setAlpha(t){(t<=0||t>1)&&console.log("alpha should be in (0.0., 1.0]"),this.a=t}constructor(t,e=0){this.y=this.s=e,this.setAlpha(t),this.initialized=!1}filter(t){var e;return this.initialized?e=this.a*t+(1-this.a)*this.s:(e=t,this.initialized=!0),this.y=t,this.s=e,e}filterWithAlpha(t,e){return this.setAlpha(e),this.filter(t)}hasLastRawValue(){return this.initialized}lastRawValue(){return this.y}reset(){this.initialized=!1}}const l=class{alpha(t){var e=1/this.freq;return 1/(1+1/(2*Math.PI*t)/e)}setFrequency(t){t<=0&&console.log("freq should be >0"),this.freq=t}setMinCutoff(t){t<=0&&console.log("mincutoff should be >0"),this.mincutoff=t}setBeta(t){this.beta_=t}setDerivateCutoff(t){t<=0&&console.log("dcutoff should be >0"),this.dcutoff=t}constructor(t,e=1,n=0,r=1){this.setFrequency(t),this.setMinCutoff(e),this.setBeta(n),this.setDerivateCutoff(r),this.x=new c(this.alpha(e)),this.dx=new c(this.alpha(r)),this.lasttime=void 0}reset(){this.x.reset(),this.dx.reset(),this.lasttime=void 0}filter(t,e){null!=this.lasttime&&null!=e&&e!==this.lasttime&&(this.freq=1/(e-this.lasttime)),this.lasttime=e;var n=this.x.hasLastRawValue()?(t-this.x.lastRawValue())*this.freq:0,r=this.dx.filterWithAlpha(n,this.alpha(this.dcutoff)),i=this.mincutoff+this.beta_*Math.abs(r);return this.x.filterWithAlpha(t,this.alpha(i))}};class u{frame0;cacheNum=2;frame1;frame2;frame3;constructor(){}filter(t){if(null===this.frame0||void 0===this.frame0)for(let e=0;e<this.cacheNum;e++)return this[`frame${e}`]=t,t;for(let t=this.cacheNum-1;t>0;t--)this[`frame${t}`]=this["frame"+(t-1)];return this.frame0=t,this.average()}average(){let t=0;for(let e=0;e<this.cacheNum;e++)t+=this[`frame${e}`]||0;return t/this.cacheNum}}class h{session;currentResult;vkstarted;_filterMap={};_angleMap={};taskPromises=[];constructor(t){this._configCenter=new a.M,this._options=t;for(let t=0;t<106;t++)this._filterMap[t+"_x"]=new l(60,.05,80,1),this._filterMap[t+"_y"]=new l(60,.05,80,1),this._filterMap[t+"_z"]=new l(60,.05,80,1);this._angleMap.pitch=new u,this._angleMap.yaw=new u,this._angleMap.roll=new u}async init(){this.initDataMap();const t=wx.createVKSession({track:{face:{mode:2}},version:"v1"});this.session=t,this.session.on("updateAnchors",(t=>{this.currentResult=t[0];const e=this.processData();e.image=this.frame,this.triggerResult(e)})),this.session.on("removeAnchors",(t=>{const e={landmarks:[],angles:{},meshVertex:[],lipVertex:[]};e.image=this.frame,this.triggerResult(e)})),this.session.start()}triggerResult(t){this.vkstarted||(this.vkstarted=!0),this.detectId=null;this.taskPromises.shift()?.(t)}processData(){const t=.01*(new Date).getTime(),e=this.currentResult,n=e.angle;n.pitch=this._angleMap.pitch.filter(n.pitch,t),n.yaw=this._angleMap.yaw.filter(n.yaw,t),n.roll=this._angleMap.roll.filter(n.roll,t),n.yaw=1.1*(n.yaw-.1),n.pitch=.93*(n.pitch+.18),this.angles=n;const r=e.points,{width:i,height:a}=this.detectSize,s=i/a,c=this._options.width/this._options.height;r.forEach(((e,n)=>{c<s?e.x=.5+(e.x-.5)*(this._options.height/a):c>s&&(e.y=.5+(e.y-.5)/(s/c)),this._filterMap[n+"_x"]&&(e.x=this._filterMap[n+"_x"].filter(e.x,t),e.y=this._filterMap[n+"_y"].filter(e.y,t),e.z=this._filterMap[n+"_z"].filter(e.z,t)),e.x*=this._options.width,e.y*=this._options.height})),r.push(this.getCenterOfTwoPoints(r[96],r[97])),r.push(this.getCenterOfTwoPoints(r[96],r[103])),r.push(this.getCenterOfTwoPoints(r[100],r[99])),r.push(this.getCenterOfTwoPoints(r[100],r[101]));const l=this.getCenterOfTwoPoints(r[78],r[79]),u=1.5*(0,o.Sp)(r[44],r[49]),h=this.getSlope(l,r[49]),d=Math.atan(h),f={x:l.x-u*Math.cos(d)*(d/Math.abs(d)),y:l.y-u*Math.sin(Math.abs(d))};r.push(f);const p=r[0],g=p.y-p.x*h,m=f.y- -1/h*f.x,y=(m-g)/(h- -1/h),v={x:y,y:y*h+g},_=this.twoBezier(.14,f,v,p),b=this.twoBezier(.28,f,v,p),x=this.twoBezier(.42,f,v,p),w=this.twoBezier(.56,f,v,p),T=this.twoBezier(.7,f,v,p),C=this.twoBezier(.85,f,v,p),S=r[32],E=S.y-S.x*h,k={x:(m-E)/(h- -1/h),y:(m-E)/(h- -1/h)*h+E},P=this.twoBezier(.14,f,k,S),R=this.twoBezier(.28,f,k,S),O=this.twoBezier(.42,f,k,S),A=this.twoBezier(.56,f,k,S),D=this.twoBezier(.7,f,k,S),I=this.twoBezier(.85,f,k,S);r.push(_,b,x,P,R,O,w,A,C,T,I,D);const{meshVertex:F,lipVertex:L}=this.getMeshVertex(r);return{landmarks:r,angles:this.angles,meshVertex:F,lipVertex:L}}send(t){return new Promise((e=>{if(this.vkstarted&&this.detectId)return;const{data:n,width:r,height:i}=t;this.detectId=+new Date,this.currentResult=null,this.frame=t,this.taskPromises.push(e),this.detectSize={width:r,height:i},this.session.detectFace({frameBuffer:n,width:r,height:i,scoreThreshold:.5,sourceType:0,modelMode:1})}))}twoBezier(t,e,n,r){const{x:i,y:o}=e,{x:a,y:s}=n,{x:c,y:l}=r;return{x:(1-t)*(1-t)*i+2*t*(1-t)*a+t*t*c,y:(1-t)*(1-t)*o+2*t*(1-t)*s+t*t*l}}destroy(){this.session&&(this.session=null),this.taskPromises=[]}getCenterOfTwoPoints(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}getDistanceOfTwoPoints(t,e){return Math.pow((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y),.5)}getSlope(t,e){return e.x===t.x?Number.MAX_SAFE_INTEGER:(e.y-t.y)/(e.x-t.x)}getMeshVertex(t){const{triangulation:e,lipsTriangulation:n,KEY_POINTS:r,LIPS:i,MOUTH_UPPER:o}=this._dataMap,a=[],s=[];if(t){const o=[],l=[],u=this.processLipEdge(t);t.forEach(((t,e)=>{if(r.indexOf(e)>=0){const n=t;o.push([u[e].x,u[e].y]),i.indexOf(e)>=0&&l.push([n.x,n.y])}}));this.addOuterLandmarks(t).forEach(((t,e)=>{o.push([t.x,t.y])}));const h=e;for(var c=0;c<h.length;c+=3){const t=h[c],e=h[c+1],n=h[c+2];a.push(o[t][0]),a.push(o[t][1]),a.push(o[e][0]),a.push(o[e][1]),a.push(o[n][0]),a.push(o[n][1])}for(c=0;c<n.length;c+=3){const t=n[c],e=n[c+1],r=n[c+2];s.push(l[t][0]),s.push(l[t][1]),s.push(l[e][0]),s.push(l[e][1]),s.push(l[r][0]),s.push(l[r][1])}}return{meshVertex:a,lipVertex:s}}processLipEdge(t){const e=JSON.parse(JSON.stringify(t)),{MOUTH_UPPER:n,MOUTH_LOWER:r}=this._dataMap;return n.forEach(((t,n)=>{const i=e[t],o=e[r[n]],a={x:(i.x+o.x)/2,y:(i.y+o.y)/2};i.y=a.y,i.x=a.x,o.y=a.y,o.x=a.x})),e}getAngles(){return this.angles}addOuterLandmarks(t){const{OUTER_REFERENCE:e}=this._dataMap,n=(0,o.Sp)(t[32],t[0]),r=(0,o.Sp)(t[16],t[110]),i=[],a=this.getAngles(t),s=Math.cos(a.roll),c=Math.sin(a.roll),{yaw:l,pitch:u}=a;return e.forEach(((e,o)=>{e.forEach((e=>{let a,u;"object"==typeof e?(a=t[e.x],u=t[e.y]):(a=t[e],u=t[e]);const h=this.getSlope(t[16],t[110]),d=-1/h,f=a.y-a.x*h,p=(f-(u.y-u.x*d))/(d-h),g=p,m=p*h+f,y=[.5,.2];let v,_,b;0===o?(b=y[0]*r,v=g+b*c,_=m-b*Math.abs(s)):1===o?(b=.3*n,l>0&&(b*=Math.cos(2*l)),v=g+b*Math.abs(s),_=m+b*c):2===o?(b=y[1]*r,v=g-b*c,_=m+b*Math.abs(s)):(b=.3*n,l<0&&(b*=Math.cos(2*l)),v=g-b*Math.abs(s),_=m-b*c),i.push({x:v,y:_,z:0})}))})),i}initDataMap(){const t=this._configCenter.getConfigByKeys(["triangulation","OUTER_REFERENCE","POINTS_MAP","KEY_POINTS","LEFT_FACE_OVAL","RIGHT_FACE_OVAL","outer_offset_ratio","MOUTH_UPPER","MOUTH_LOWER","lipsTriangulation","LIPS"]);this._dataMap=t}}var d=n(1206),f=n(337),p=n(6879);let g,m,y,v,_,b;if(null==m){g=wx.getSystemInfoSync();let{system:t,version:e}=g;v=e}if(null==m){g=wx.getSystemInfoSync();let{system:t}=g;_=g.SDKVersion,m=t.toLowerCase().indexOf("android")>-1,y=!m,b=parseFloat(_)>=2.25}const x=parseFloat(_)>=2.29;function w(){return g.screenWidth>g.screenHeight}class T extends i.Q4{sprite;options;pushBuffer;stage;tag=!0;realWidth=0;realHeight=0;constructor(t){super(),this.options=t;const e=this.getPusherContent();this.getRealSize(),this.createSprite();const n=e.createOffscreenCanvas({type:"webgl",width:this.realWidth,height:this.realHeight});this.gl=n.getContext("webgl"),y?(this.createFilter(),this.renderer=new d.Renderer({width:this.realWidth,height:this.realHeight,resolution:1,view:new wx.window.Canvas(n)})):this.initGl()}getRealSize(){const{width:t,height:e}=this.options;y?(this.realWidth=t,this.realHeight=e):(this.realWidth=t/4,this.realHeight=1.5*e)}createSprite(){const t=w(),{width:e,height:n}=this.options,r=this.getPusherContent();console.log(":::::::::画面尺寸",n,e);const i=r.createOffscreenCanvas({type:"2d",width:e,height:n});if(this.ctx2d=i.getContext("2d"),t){const t=n/e;this.ctx2d.translate(i.width/2,i.height/2),y?this.ctx2d.rotate(-Math.PI/2):this.ctx2d.rotate(Math.PI/2),this.ctx2d.translate(-i.height/2,-i.width/2),!y&&this.ctx2d.scale(t,1/t)}const o=d.Texture.from(new wx.window.Canvas(i)),a=new d.Sprite(o);a.anchor.set(.5,.5),a.position.set(e/2,n/2);t?a.scale.set(y?1:-1,1):a.scale.set(y?-1:1.3333333333333333,-1),this.sprite=a,this.pushBuffer=y?new Uint8Array(e*n*4):new Uint8Array(e*n*1.5)}createFilter(){let t=new d.Filter(null,"precision lowp float;varying vec2 vTextureCoord;uniform sampler2D uSampler;void main(void){ vec4 color = texture2D(uSampler, vTextureCoord); gl_FragColor = color.bgra;}");this.stage=new d.Container;const e=d.Texture.from(new wx.window.Canvas(this.options.output));console.log("::::::::createFilter",this.realWidth,this.realHeight),this.pushSprite=new d.Sprite(e),this.pushSprite.anchor.set(.5,.5),this.pushSprite.position.set(this.realWidth/2,this.realHeight/2),this.pushSprite.width=this.realWidth,this.pushSprite.height=this.realHeight,this.pushSprite.scale.set(1,-1),this.pushSprite.filters=[t],this.stage.addChild(this.pushSprite)}initGl(){const t=this.gl,e=t.createShader(t.VERTEX_SHADER),n=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(e,"attribute vec2 aVertex;attribute vec2 aUV;varying vec2 vTex;void main(void) { gl_Position = vec4(aVertex, 0.0, 1.0); vTex = aUV;}"),t.shaderSource(n,"\n precision mediump float;\n uniform sampler2D rgbaTexture;\n uniform float height;\n uniform float xUnit;\n varying vec2 vTex;\n \n void main() {\n vec4 coeffsY = vec4(0.299, 0.587, 0.114, 0.0);\n vec4 coeffsU = vec4(-0.14713, -0.28886, 0.436, 0.5);\n vec4 coeffsV = vec4(0.615, -0.515, -0.100, 0.5);\n \n const float V_DIVIDE_LINE = 5.0 / 6.0;\n const float U_DIVIDE_LINE = 1.0 / 1.5;\n \n if (vTex.y <= U_DIVIDE_LINE) {\n vec2 pos0 = vec2(vTex.x - 1.5 * xUnit, vTex.y * 1.5);\n gl_FragColor.r = coeffsY.a + dot(coeffsY.rgb, texture2D(rgbaTexture, pos0).rgb);\n \n vec2 pos1 = vec2(vTex.x - 0.5 * xUnit, vTex.y * 1.5);\n gl_FragColor.g = coeffsY.a + dot(coeffsY.rgb, texture2D(rgbaTexture, pos1).rgb);\n \n vec2 pos2 = vec2(vTex.x + 0.5 * xUnit, vTex.y * 1.5);\n gl_FragColor.b = coeffsY.a + dot(coeffsY.rgb, texture2D(rgbaTexture, pos2).rgb);\n \n vec2 pos3 = vec2(vTex.x + 1.5 * xUnit, vTex.y * 1.5);\n gl_FragColor.a = coeffsY.a + dot(coeffsY.rgb, texture2D(rgbaTexture, pos3).rgb);\n } else if (vTex.y <= V_DIVIDE_LINE) {\n float offsetY = 1.0 / 3.0 / height;\n vec2 texCoord;\n if (vTex.x <= 0.5) {\n texCoord = vec2(vTex.x * 2.0, (vTex.y - U_DIVIDE_LINE) * 2.0 * 3.0);\n } else {\n texCoord = vec2((vTex.x - 0.5) * 2.0, ((vTex.y - U_DIVIDE_LINE) * 2.0 + offsetY) * 3.0);\n }\n vec4 color0 = texture2D(rgbaTexture, texCoord);\n vec4 color1 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 2.0, 0.));\n vec4 color2 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 4.0, 0.));\n vec4 color3 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 6.0, 0.));\n float u0 = coeffsU.a + dot(coeffsU.rgb, color0.rgb);\n float u1 = coeffsU.a + dot(coeffsU.rgb, color1.rgb);\n float u2 = coeffsU.a + dot(coeffsU.rgb, color2.rgb);\n float u3 = coeffsU.a + dot(coeffsU.rgb, color3.rgb);\n gl_FragColor = vec4(u0, u1, u2, u3);\n } else {\n float offsetY = 1.0 / 3.0 / height;\n vec2 texCoord;\n if (vTex.x <= 0.5) {\n texCoord = vec2(vTex.x * 2.0, (vTex.y - V_DIVIDE_LINE) * 2.0 * 3.0);\n } else {\n texCoord = vec2((vTex.x - 0.5) * 2.0, ((vTex.y - V_DIVIDE_LINE) * 2.0 + offsetY) * 3.0);\n }\n vec4 color0 = texture2D(rgbaTexture, texCoord);\n vec4 color1 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 2.0, 0.));\n vec4 color2 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 4.0, 0.));\n vec4 color3 = texture2D(rgbaTexture, texCoord + vec2(xUnit * 6.0, 0.));\n float u0 = coeffsV.a + dot(coeffsV.rgb, color0.rgb);\n float u1 = coeffsV.a + dot(coeffsV.rgb, color1.rgb);\n float u2 = coeffsV.a + dot(coeffsV.rgb, color2.rgb);\n float u3 = coeffsV.a + dot(coeffsV.rgb, color3.rgb);\n gl_FragColor = vec4(u0, u1, u2, u3);\n }\n return;\n }"),t.compileShader(e),t.compileShader(n);const r=t.createProgram();t.attachShader(r,e),t.attachShader(r,n),t.linkProgram(r),t.useProgram(r),t.progObj=r,t.viewport(0,0,this.realWidth,this.realHeight);const i=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,i),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,1,-1,-1,1,-1,1,1]),t.STATIC_DRAW),t.vertexBuff=i;const o=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,new Float32Array([0,1,0,0,1,0,1,1]),t.STATIC_DRAW),t.texBuff=o;const a=t.getAttribLocation(r,"aVertex"),s=t.getAttribLocation(r,"aUV"),c=t.getUniformLocation(r,"height"),l=t.getUniformLocation(r,"xUnit");t.uniform1f(c,this.options.height),t.uniform1f(l,1/this.options.width);const u=t.createTexture();t.bindTexture(t.TEXTURE_2D,u),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,this.options.output),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.tex=u,t.enableVertexAttribArray(a),t.bindBuffer(t.ARRAY_BUFFER,i),t.vertexAttribPointer(a,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(s),t.bindBuffer(t.ARRAY_BUFFER,o),t.bindTexture(t.TEXTURE_2D,u),t.vertexAttribPointer(s,2,t.FLOAT,!1,0,0)}getPusherContent(){if(this.options?.live?.pusherContext||(this.options.live.pusherContext=wx.createLivePusherContext()),!this.options.live.pusherContext)throw new Error("livepusherContext is not available");return this.options.live.pusherContext}async init(){await this.authorize(),this.start()}async authorize(){if(!wx.authorize)return;let t,e;t=await this.authScope("scope.record");const n=()=>{setTimeout((async r=>{e=await this.authScope("scope.camera"),""===e?n():t&&e||await this.openSetting()}),500)};n()}async openSetting(){return new Promise(((t,e)=>{wx.showModal({content:f.Z.t("0002"),confirmText:f.Z.t("0003"),showCancel:!1,success:e=>{e.confirm?wx.openSetting({success:e=>{console.log("wx auth setting",e),e.authSetting["scope.record"]&&e.authSetting["scope.camera"]&&i.Nd.trigger("error",{code:p.U.AUTH_NEED_RELOAD_PAGE,message:f.Z.t("0013")}),this.authorize().then((()=>{t()}))},fail:()=>{t()}}):e.cancel&&t()}})}))}async authScope(t){return new Promise((async e=>{const n=await this.getSetting();return"scope.camera"===t&&void 0===n[t]?e(""):n[t]?e(!0):void wx.authorize({scope:t,success(){e(!0)},fail(){e(!1)}})}))}async getSetting(){return new Promise(((t,e)=>{wx.getSetting({success:e=>{t(e.authSetting)},fail:()=>{e()}})}))}generatePusherData(){y?(this.pushSprite.texture.update(),this.renderer.render(this.stage)):(this.gl.texSubImage2D(this.gl.TEXTURE_2D,0,0,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.options.output),this.gl.drawArrays(this.gl.TRIANGLE_FAN,0,4)),this.gl.readPixels(0,0,this.realWidth,this.realHeight,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.pushBuffer),this.ready=!0}start(){const t=this.getPusherContent();t.onCustomRendererEvent("frame",(()=>{if(this.ctx2d.drawImage(t,0,0),this.sprite.texture.update(),this.ready)return this.pushBuffer.buffer}))}stop(){this.getPusherContent().onCustomRendererEvent("frame",null)}destroy(){this.sprite=null,this.stop(),this.generatePusherData=null}}class C extends i.Q4{sprite;listener;options;cameraContext;constructor(t){const e={...t,width:t.width/1,height:t.height/1};super(),this.options=e,this.cameraContext=t.camera?.cameraContext}async init(){await this.authorize(),await this.initCameraIns(),console.log("wx camera init done")}async authorize(){if(!wx.authorize)return;let t,e;t=await this.authScope("scope.record");const n=()=>{setTimeout((async r=>{e=await this.authScope("scope.camera"),""===e?n():t&&e||await this.openSetting()}),500)};n()}async openSetting(){return new Promise(((t,e)=>{wx.showModal({content:f.Z.t("0002"),confirmText:f.Z.t("0003"),showCancel:!1,success:e=>{e.confirm?wx.openSetting({success:e=>{console.log("wx auth setting",e),e.authSetting["scope.record"]&&e.authSetting["scope.camera"]&&i.Nd.trigger("error",{code:p.U.AUTH_NEED_RELOAD_PAGE,message:f.Z.t("0013")}),this.authorize().then((()=>{t()}))},fail:()=>{t()}}):e.cancel&&t()}})}))}async authScope(t){return new Promise((async e=>{const n=await this.getSetting();return"scope.camera"===t&&void 0===n[t]?e(""):n[t]?e(!0):void wx.authorize({scope:t,success(){e(!0)},fail(){e(!1)}})}))}async getSetting(){return new Promise(((t,e)=>{wx.getSetting({success:e=>{t(e.authSetting)},fail:()=>{e()}})}))}async initCameraIns(){this.cameraContext=this.cameraContext||wx.createCameraContext();const t=this.cameraContext.onCameraFrame((t=>{this.frame=t}));this.listener=t,this.start()}readPixels(){return this.frame}async startRecord(t){return this.recording=!0,new Promise(((e,n)=>{this.cameraContext.startRecord({timeoutCallback:t=>{console.log("camera start record timeout",t),this.trigger("timeout",t),this.recording=!1,e(t)},success:n=>{t&&t(),e(n)},fail:t=>{i.Nd.trigger("error",{code:p.U.START_REACORD_FAIL,message:f.Z.t("0009"),error:t})}})}))}async stopRecord(t=!1){return this.recording=!1,new Promise(((e,n)=>{this.cameraContext.stopRecord({compressed:t,success:t=>{e(t)},fail:t=>{i.Nd.trigger("error",{code:p.U.STOP_REACORD_FAIL,message:f.Z.t("0010"),error:t})}})}))}start(){this.listener.start()}stop(){this.listener.stop()}destroy(){this.listener&&(this.listener.stop(),this.listener=null),this.sprite&&(this.sprite=null),this.cameraContext&&(this.cameraContext=null)}}class S{options;frame;constructor(t){this.options=t,this.canvas=wx.createOffscreenCanvas({type:"2d"})}async init(){const t=this.options,{width:e,height:n,input:r}=t;if(r.src){if(!(r.src instanceof ArrayBuffer))return new Promise(((t,i)=>{this.canvas.width=e,this.canvas.height=n;const o=this.canvas.createImage();o.onload=()=>{const e=this.canvas.getContext("2d");e.drawImage(o,0,0);const{data:n}=e.getImageData(0,0,o.width,o.height);this.frame={data:n.buffer,width:o.width,height:o.height},o.src="",t()},o.src=r.src}));this.frame={data:r.src,width:e,height:n}}}readPixels(){return this.frame}destroy(){}}const E=wx.window;class k{canvas=null;_target=null;_input=null;constructor(t){const e={...t,width:t.width/1,height:t.height/1};if(this._options=e,!e.manual){const{width:t,height:n}=e;let r;r=wx.createCanvas(),r.width=t,r.height=n,this.pixels=new Uint8Array(t*n*4),this.canvas=new E.Canvas(r),this._target=new d.Container,this.renderer=new d.Renderer({view:this.canvas,width:e.width,height:e.height}),this.gl=this.renderer.gl,this._renderFunc=()=>{this.render()},d.Ticker.shared.add(this._renderFunc)}}render(){const t=this.input;if(t&&t.tick){if(!t.tick())return!1}return this.renderer.render(this._target),!0}set input(t){if(this._input=t,this._target&&t.sprite){this._target.children.forEach((t=>{this._target.removeChild(t)}));try{t.sprite.scale.x=t.sprite.scale.x/1,t.sprite.scale.y=t.sprite.scale.y/1,this._target.addChild(t.sprite)}catch(t){console.log("add child fail",t)}}}get input(){return this._input}async load(t){}destroy(){this._renderFunc&&d.Ticker.shared.remove(this._renderFunc),this.renderer&&this.renderer.destroy(!0),this._target&&this._target.destroy(!0),this.canvas&&(this.canvas=null)}init(t){}readPixels(){if(this.input.readPixels)return this.input.readPixels();const{width:t,height:e}=this._options;this.gl.readPixels(0,0,t,e,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.pixels);return{data:this.pixels.buffer,width:t,height:e}}typedArrayToBuffer(t){return t.buffer.slice(t.byteOffset,t.byteLength+t.byteOffset)}async getCanvasNode(){return new Promise((t=>{wx.createSelectorQuery().select("#input-canvas").node().exec((e=>{const n=e[0].node;t(n)}))}))}}var P=n(5145),R=n(401);class O{count=0;mediaContainer;videoRecorder;audioRecorder;audioPath;audioRecorderStarted=!1;recording=!1;options;constructor(t){this.options=t;const{canvas:e,fps:n,audio:r={}}=t;this.createRecorder(e);const{onStart:i,onStop:o}=r;this.audioRecorder=wx.getRecorderManager(),this.audioRecorder.onStop((t=>{this.audioPath=t.tempFilePath,this.audioRecorderStarted=!1,o&&o(t)})),this.audioRecorder.onStart((()=>{this.audioRecorderStarted=!0,i&&i()})),this.mediaContainer=wx.createMediaContainer()}createRecorder(t){try{let e={duration:600,fps:"offscreen"===R.iN||m?30:60,gop:12,timeUpdateInterval:"offscreen"===R.iN||m?30:60,cumulativeStamp:!1,videoBitsPerSecond:3e3};console.log("recorder options",e),this.videoRecorder&&this.videoRecorder.destroy().catch((t=>{}));const n=wx.createMediaRecorder(t,e);this.videoRecorder=n,n.on("start",(()=>{console.log("recorder start success")}))}catch(t){i.Nd.trigger("error",{code:p.U.START_REACORD_FAIL,message:f.Z.t("0008"),error:t})}}async start(){this.videoRecorder&&(await this.videoRecorder.start().catch((t=>{i.Nd.trigger("error",{code:p.U.START_REACORD_FAIL,message:f.Z.t("0009")}),console.error("recorder start error",t)})),await this.startAudioRecorder(),this.recordStartTime=+new Date,this.recording=!0)}async stop(t){if(!this.videoRecorder)return;let e,n;this.recording=!1,this.audioRecorder.stop();try{e=(await this.videoRecorder.stop()).tempFilePath}catch(e){t.destroy||i.Nd.trigger("error",{code:p.U.STOP_REACORD_FAIL,message:f.Z.t("0010"),error:e})}if(console.log("stop record",e),e)try{const{videoTrack:r}=await this.getTracks(e);let i=[r];if(t.musicPath){const{audioTrack:e}=await this.getTracks(t.musicPath).catch((t=>{console.log("music separation fail",t)}));console.log("musicTrack",e),e._audioType="music",i.push(e)}if(t.useOriginAudio){const t=await this.getAudioPath(),{audioTrack:e}=await this.getTracks(t).catch((t=>{}));i.push(e)}n=await this.mergeTracks(...i).catch((t=>{}))}catch(t){n={tempFilePath:e}}try{this.videoRecorder.destroy()}catch(t){console.log("videoRecorder destroy error",t)}try{this.mediaContainer.destroy()}catch(t){console.log("mediaContainer destroy error",t)}return this.videoRecorder=null,n}async startAudioRecorder(){const{audio:t}=this.options;return console.log("zy sdk startAudioRecorder",t),new Promise((e=>{let n,r=()=>{this.audioRecorderStarted?(e(this.audioRecorderStarted),n&&clearTimeout(n)):n=setTimeout(r,10)};this.audioRecorder.start({duration:6e5,format:"mp3",...t}),r()}))}getRecorder(){return this.videoRecorder}async loop(){this.recording&&this.videoRecorder&&this.audioRecorderStarted&&await this.videoRecorder.requestFrame()}async getTracks(t){return new Promise(((e,n)=>{this.mediaContainer.extractDataSource({source:t,success:async({tracks:t})=>{let n,r;for(let e=0;e<t.length;e++)"audio"===t[e].kind?r=t[e]:"video"===t[e].kind&&(n=t[e]);e({audioTrack:r,videoTrack:n})},fail(t){console.log("failed to separate audio track",t),n(t)}})}))}async mergeTracks(t,...e){return new Promise(((n,r)=>{this.mediaContainer.addTrack(t),t.slice(.06,t.duration),e.forEach((e=>{this.mediaContainer.addTrack(e),"music"!==e._audioType&&e.slice(e.duration-t.duration+.06,2*e.duration)})),this.mediaContainer.export({success:r=>{this.mediaContainer.removeTrack(t),e.forEach((t=>{this.mediaContainer.removeTrack(t)})),n(r)},fail:t=>{console.log("mediaContainer export fail",t),r(t)}})}))}async getAudioPath(){return new Promise((t=>{let e,n=()=>{this.audioPath?(t(this.audioPath),e&&clearTimeout(e),this.audioPath=null):e=setTimeout(n,20)};n()}))}}class A extends i.Q4{sprite;options;video;constructor(t){super(),this.options=t}destroy(){try{this.video&&this.video.destroy()}catch(t){}}async init(){if(!this.sprite)return this.getVideoDecoder(),await this.start().catch((t=>{throw new Error("decoder start fail")})),new Promise((async(t,e)=>{let n=async()=>{const e=await this.tick();if(console.log("input init res",e),e)return this._inited=!0,t();setTimeout((()=>{n()}),100)};await n()}))}read(){return this.video.getFrameData()}tick(){const t=this.video.getFrameData();if(!t)return!1;const{width:e,height:n,data:r}=t;if(this.sprite)this.sprite.texture.baseTexture.resource.data=new Uint8Array(r),this.sprite.texture.update();else{const t=d.Texture.fromBuffer(new Uint8Array(r),e,n),i=new d.Sprite(t),o=Math.max(this.options.width/e,this.options.height/n);this.sprite=i,i.anchor.set(.5,.5),i.x=this.options.width/2,i.y=this.options.height/2;const a=wx.getSystemInfoSync();let{system:s}=a;-1===s.toLowerCase().indexOf("android")?i.scale.set(o,o):i.scale.set(o,-o)}return!0}getVideoDecoder(){const t=wx.createVideoDecoder();return this.video=t,t}async start(){return new Promise(((t,e)=>{const{input:n,width:r,height:i}=this.options;this.video.on("start",(()=>{console.log("decoder start success",n),t()})),this.video.on("bufferchange",(()=>{console.log("decoder buffer change")})),this.video.on("error",(t=>{console.log("decoder error",t),e({errMsg:"decoder error"})})),this.video.on("ended",(()=>{console.log("decoder decode ended"),this.trigger("ended")})),this.video.start({source:n,mode:1,abortAudio:!0})}))}async getFps(t){return new Promise(((e,n)=>{let r=wx.createVideoDecoder();r.on("error",(t=>{console.log("init fps error",t),e(30)})),r.on("start",(t=>{console.log("player init fps",t.fps),r&&r.stop().catch((t=>{})),e(t.fps)})),r.on("stop",(()=>{r&&r.remove().catch((()=>{})),r=null})),r.start({source:t,mode:1,abortAudio:!0})}))}stop(){this.video.stop()}destroy(){this.video.remove()}}var D=n(3120),I=n(6309),F=n(5127),L=n(3553),M=n(8586),N=n(6109),j=function(){return j=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},j.apply(this,arguments)},U=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},B=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},z=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},W=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},V=(0,N.jl)("Auth"),q=(0,R.rR)("68,74,74,70,73,3a,2f,2f,77,65,62,61,72,2e,71,63,6c,6f,75,64,2e,63,6f,6d,2f,73,64,6b"),H=function(){function t(t,e,n,r,i){void 0===r&&(r=""),void 0===i&&(i=""),this.cd=new a.M,this.license=t,this.appid=e+"",this.authFunc=n,this.wechatAppId=r,this.c=new F.Y}return Object.defineProperty(t.prototype,"version",{get:function(){var t,e="1.0.23-14".split(".");return t=0==e[0]&&e[1]<3?"v0":0==e[0]&&3==e[1]&&e[2]<4?"v1":"v2",V.info("sdk version",t),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"language",{set:function(t){console.log("wx set language",t),f.Z.lang=t},enumerable:!1,configurable:!0}),t.prototype.exsureAuthData=function(){return z(this,void 0,void 0,(function(){return W(this,(function(t){switch(t.label){case 0:return"102"===this.appid&&(this.authFunc=this.getTemplateAuth.bind(this)),[4,this.authFunc()];case 1:return[2,t.sent()]}}))}))},t.prototype.exsurehad=function(){return z(this,void 0,void 0,(function(){var t,e,n;return W(this,(function(r){switch(r.label){case 0:return[4,this.c.init()];case 1:return r.sent(),[4,this._ts()];case 2:return t=r.sent(),[4,this.exsureAuthData()];case 3:return e=r.sent(),n=this.c.run2(t+"",this.wechatAppId,this.appid),[2,j(j({},e),{key:n,sdkts:t})]}}))}))},t.prototype._ts=function(){return z(this,void 0,void 0,(function(){var t,e,n=this;return W(this,(function(r){switch(r.label){case 0:return[4,this._uc()];case 1:return t=r.sent(),e="".concat(q).concat(t.ti),[2,new Promise((function(t,r){wx.request({url:e,method:"POST",header:{},success:function(e){var r=e.data,i=n.c.a_de(r),o=JSON.parse(i);t(o[(0,R.rR)(R.gz)])},fail:function(e){console.log("wx fetch error",e),t(e)}})}))]}}))}))},t.prototype.getTemplateAuth=function(){var t=this;return new Promise((function(e,n){wx.request({url:"https://1253707637-fkgh1gso7n-gz.scf.tencentcs.com",method:"GET",header:{},success:function(n){var r=n.data,i=t.c.a_de(r),o=JSON.parse(i);e(o)},fail:function(t){console.log("wx fetch error",t),e(t)}})}))},t.prototype._f=function(t,e){return z(this,void 0,void 0,(function(){var n,r,o,a,s,c,l,u,h,d,g,m,y,v=this;return W(this,(function(_){switch(_.label){case 0:return n="Preset"===e.Type&&JSON.stringify(e),this.had?[3,2]:(r=this,[4,this.exsurehad()]);case 1:r.had=_.sent(),_.label=2;case 2:return o=function(){return z(v,void 0,void 0,(function(){var n,r,i=this;return W(this,(function(o){switch(o.label){case 0:return e.Version=this.version,n=this.c.a_en(JSON.stringify(Object.assign({LicenseKey:this.license,AccountArea:"en"===f.Z.lang?1:0},e))),r={p:n},[4,new Promise((function(e,n){wx.request({url:t,method:"POST",header:{"content-type":"application/json",appid:i.appid,timestamp:i.had.timestamp,signature:i.had.signature,authorize:i.had.key,wechatappid:i.wechatAppId,sdktimestamp:i.had.sdkts+"",Language:"en"===f.Z.lang?"en-US":"zh-CN"},data:r,success:function(t){var n=t.data,r=i.c.a_de(n);e(JSON.parse(r))},fail:function(t){console.log("wx fetch error",t),e(t)}})}))];case 1:return[2,o.sent()]}}))}))},n?[3,3]:(s=!1,[3,6]);case 3:return"pending"!==L.Z.get(n)?[3,5]:(c=0,[4,new Promise((function(t,e){var r=function(){c++,a=setTimeout((function(){"pending"!==L.Z.get(n)?(clearTimeout(a),t(void 0),s=!0):c<10?r():(clearTimeout(a),t(void 0),s=!1)}),300)};r()}))]);case 4:return _.sent(),[3,6];case 5:L.Z.has(n)?(s=!0,l=L.Z.get(n),u=l[(0,R.rR)(R.Eh)],((h=+new Date)-1e3*u>6e5||1e3*u>h+6e5)&&(s=!1)):(L.Z.set(n,"pending"),s=!1),_.label=6;case 6:return s?(g=L.Z.get(n),[3,9]):[3,7];case 7:return[4,o()];case 8:g=_.sent(),_.label=9;case 9:return 101!=(d=g).Code?[3,12]:(m=this,[4,this.exsurehad()]);case 10:return m.had=_.sent(),[4,o()];case 11:return d=_.sent(),[3,16];case 12:return 106!=d.Code?[3,15]:(y=this,[4,this.exsurehad()]);case 13:return y.had=_.sent(),[4,o()];case 14:return d=_.sent(),[3,16];case 15:0!==d.Code&&(n&&L.Z.remove(n),101==d.Code?i.Nd.trigger("error",{code:p.U.SIGNATURE_TIMEOUT,message:"Signature timeout, retry failed."}):106==d.Code?i.Nd.trigger("error",{code:p.U.AUTHORIZE_TIMEOUT,message:"Authorize timeout, retry failed."}):i.Nd.trigger("error",{code:p.U.REQUEST_FAIL,message:d.Message})),_.label=16;case 16:return 0===d.Code?(d.WeChatAppId!==this.wechatAppId&&(i.Nd.trigger("error",{code:p.U.AUTH_FAIL,message:f.Z.t("0034")}),d={Code:-1,Data:{}}),n&&L.Z.set(n,d)):L.Z.remove(n),[2,d]}}))}))},t.prototype._uc=function(){return z(this,void 0,void 0,(function(){return W(this,(function(t){switch(t.label){case 0:return[4,this.cd.load()];case 1:return t.sent(),[2,this.cd.getDataConfig(30)]}}))}))},t.prototype._cuid=function(){return!("object"!=typeof navigator||"string"!=typeof navigator.userAgent||!/electron/i.test(navigator.userAgent)||location.host&&("string"!=typeof location.host||!location.host.startsWith("file://")))},t.prototype.go=function(){return z(this,void 0,void 0,(function(){var t,e,n,r,i,o;return W(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,this._uc()];case 1:return t=a.sent(),[4,this._f("".concat(q).concat(t.au),{})];case 2:return e=a.sent(),n=(e.Data||{})[(0,R.rR)(R.hJ)]||[],r=[],i=Object.entries(R.ty),n.forEach((function(t){var e=(0,R.$G)(t),n=i.find((function(t){return t[1]===e}));r.push(n[0])})),L.Z.set((0,R.rR)(R.Ty),r),[2,e];case 3:return o=a.sent(),console.log("ar sdk fetch auth error",o),[2,new Error("fetch auth failed")];case 4:return[2]}}))}))},t.prototype.getAllEffectList=function(t){return void 0===t&&(t={}),z(this,void 0,void 0,(function(){var e,n,r,i;return W(this,(function(o){switch(o.label){case 0:return"Preset"===t.Type&&(void 0!==t.Label&&""!==t.Label||(t.Label=[f.Z.t("1001"),f.Z.t("1002")])),[4,this._uc()];case 1:return e=o.sent(),[4,this._f("".concat(q).concat(e.ae),j({Type:"Custom",PageNumber:0,PageSize:1e3},t))];case 2:return(n=o.sent())&&0==n.Code?(r=n.Data.EffectList,i=[],(i="Preset"===t.Type?r.filter((function(t){return!(t.Label.indexOf(f.Z.t("1004"))>-1&&!G("effect_sticker_3d")||t.Label.indexOf(f.Z.t("1005"))>-1&&!G("avatar_vr")||t.Label.indexOf(f.Z.t("1006"))>-1&&!G("avatar_ar"))})):r).forEach((function(t){L.Z.set(t.EffectId,t)})),[2,i]):[2,n]}}))}))},t.prototype.getEffect=function(t){return z(this,void 0,void 0,(function(){var e,n;return W(this,(function(r){switch(r.label){case 0:return L.Z.has(t.EffectId)?[2,L.Z.get(t.EffectId)]:[4,this._uc()];case 1:return e=r.sent(),[4,this._f("".concat(q).concat(e.ef),t)];case 2:return(n=r.sent())&&0==n.Code&&n.Data&&n.Data.Url?(L.Z.set(t.EffectId,n.Data),[2,n.Data]):n.Data&&!n.Data.Url?[2,{message:"invalid id"}]:[2,n]}}))}))},t.prototype.getEffectList=function(t){return void 0===t&&(t={}),z(this,void 0,void 0,(function(){var e;return W(this,(function(n){switch(n.label){case 0:return[4,this.getAllEffectList(t)];case 1:return(e=n.sent())&&e.OtherEffectList&&e.OtherEffectList.length&&i.Nd.trigger("error",{code:p.U.SDK_VERSION_LOW_ERROR,message:f.Z.t("0014")}),e&&e.EffectList?"Preset"===t.Type?[2,e.EffectList]:[2,e.EffectList.filter((function(t){return"Custom"===t.Type}))]:[2,e]}}))}))},t.prototype.getFilterList=function(){return z(this,void 0,void 0,(function(){var t;return W(this,(function(e){switch(e.label){case 0:return[4,this.getAllEffectList({Type:"Preset",Label:f.Z.t("1003")})];case 1:return(t=e.sent())&&t.EffectList?[2,t.EffectList]:[2,t]}}))}))},t.prototype.getAvatarList=function(t){return z(this,void 0,void 0,(function(){var e,n;return W(this,(function(r){switch(r.label){case 0:return e=f.Z.t("1006"),"VR"===t&&(e=f.Z.t("1005")),[4,this.getAllEffectList({Type:"Preset",Label:e})];case 1:return(n=r.sent())&&n.EffectList?[2,n.EffectList]:[2,n]}}))}))},t=U([M.e,B("design:paramtypes",[String,String,Function,String,String])],t)}(),G=function(t){var e=L.Z.get((0,R.rR)(R.Ty)),n=Object.entries(R.ty).find((function(e){return e[1]===(0,R.$G)(t)}));return!(!e||!e.find((function(t){return t===n[0]})))};function Y(t,e,n,r){return z(this,void 0,void 0,(function(){var o,a,s,c;return W(this,(function(l){switch(l.label){case 0:return(0,i.E5)(),a=wx.getAccountInfoSync(),s=a.miniProgram.appId,o=new H(t,e,n,s),r&&(o.language=r),[4,o.go()];case 1:if(0!==(null==(c=l.sent())?void 0:c.Code))throw new Error(c);return[2,{getEffectList:o.getEffectList.bind(o),getFilterList:o.getFilterList.bind(o)}]}}))}))}var Z=n(3044),K=n(3483),X=n.n(K),$=!1;function J(t,e){!$&&t&&($=!0,setTimeout((function(){new(X())({id:"1309122168"==t?"j4LDpiL2PlRmZ9ljaJ":"Gl3L4fE8vE5bqOVbV0",uin:t,ext1:t,ext2:e,reportApiSpeed:!0,spa:!1})}),1e3))}var Q=n(4809),tt=n(9984);const et=`${wx.env.USER_DATA_PATH}/ar`;class nt extends i.Q4{background=null;stickers=[];filter=null;disabled=!1;constructor(t){super();let{auth:e,live:n}=t;const{licenseKey:r,appId:o,authFunc:a}=e,s=wx.getAccountInfoSync();this.auth=new H(r,o,a,s.miniProgram.appId),i.Nd.on("error",(t=>{this.trigger("error",t)})),J(o),this.checkReady=this.auth.go().then((t=>0===t.Code&&(this.trigger("created"),this.trigger("ready"),!0))).catch((()=>!1)),this.config=n}async clearStickers(){this.getPusherContent().clearStickers()}async resetStickers(){const t=this.getPusherContent();let e,n;return this.clearStickers(),this.background&&(e=new Promise(((e,n)=>{t.applySticker({type:"back",stickers:[{id:this.background.id,title:this.background.id,len:1,active:-1,path:this.background.path,segtype:0}],success:t=>{e(t)},fail:n})}))),this.stickers.length&&(n=new Promise(((e,n)=>{t.applySticker({type:"front",stickers:this.stickers.map((t=>({id:t.id,title:t.id,len:1,active:-1,pos:t.pos,path:t.path,segtype:0}))),success:t=>{e(t)},fail:n})}))),Promise.all([e,n])}async transSticker(t=[]){const e=t.map((async t=>{const[e,n]=this.getFilename(t.url);return t.id=e,t.path=await this.getZipDataPath(t.url,e,n),t}));return Promise.all(e)}async getEffect(t){if("debug"===t)return{Url:"https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin"};return await this.auth.getEffect({EffectId:t})}getPusherContent(){return this.config.pusherContext||(this.config.pusherContext=wx.createLivePusherContext()),this.config.pusherContext}getFilename(t=""){if(t instanceof ArrayBuffer)return["buffer"+Date.now(),"png"];const e=t.split("/"),n=e[e.length-1]||"test.png",r=parseInt((new Date).valueOf()/1e3);let[i="test",o="png"]=n.split(".");return i=i.replace(/[^a-zA-Z0-9]/g,"")+r,[i,o]}async getImageSize(t){return new Promise(((e,n)=>{wx.getImageInfo({src:t,success:t=>{e({width:t.width,height:t.height})},fail:n})}))}async preloadVcubeFile(t,e){await(0,tt.sN)(et);const n=`${et}/${t}`,r=await(0,tt.nH)(n),i=wx.getFileSystemManager();if(!r){const r=await(0,tt.pe)(t,e);await new Promise(((t,e)=>{i.unzip({zipFilePath:r,targetPath:n,success:t,fail:e,complete:()=>{i.unlink({filePath:r})}})}))}return new Promise(((t,e)=>{i.readFile({filePath:`${n}/content.json`,encoding:"utf8",success:({data:e})=>{const r=JSON.parse(e);t([n,r])},fail:e})}))}async download(t){return t instanceof ArrayBuffer?t:new Promise(((e,n)=>{wx.request({url:t,responseType:"arrayBuffer",success:t=>{const{data:n}=t;e(n)},fail:t=>{n(t)}})}))}async getZipDataPath(t,e,n){await(0,tt.sN)(et);const r=`${et}/${e}.zip`;if(await(0,tt.nH)(r))return r;const i=await this.download(t),o=new Uint8Array(i),a=(0,Q.Xo)({[`${e}_0.${n}`]:o});return await new Promise(((t,e)=>{wx.getFileSystemManager().writeFile({filePath:r,data:a.buffer,encoding:"binary",success:()=>{t()},fail:t=>{e(t)}})})),r}async setBackground(t){t=t||{};const{type:e,src:n=""}=t;if("image"!==e&&n)return new Error("live mode is not supported");if(!n)return this.background=null,this.resetStickers();if(!await this.checkReady)throw this.trigger("error",{code:p.U.AUTH_FAIL,message:"Arsdk is not ready"}),new Error("Arsdk is not ready");return[this.background]=await this.transSticker([{url:n}]),this.resetStickers()}async clearFile(t){let e=wx.getFileSystemManager();return new Promise(((n,r)=>{e.unlink({filePath:t,success:n,fail:r})}))}async _setFilter(t,e=1){this.filter=[t,e];const n=this.getPusherContent();return new Promise(((r,i)=>{n.applyFilter({path:t,md5:"",alpha:e,success:r,fail:i})}))}async setWatermark(t=[]){if(!t?.length)return this.stickers=[],this.resetStickers();if(!await this.checkReady)throw this.trigger("error",{code:p.U.AUTH_FAIL,message:"Arsdk is not ready"}),new Error("Arsdk is not ready");return this.stickers=await this.transSticker(t),this.resetStickers()}async setFilter(t,e=1){if(!await this.checkReady)throw this.trigger("error",{code:p.U.AUTH_FAIL,message:"Arsdk is not ready"}),new Error("Arsdk is not ready");const{Url:n}=await this.getEffect(t),[r,i]=await this.preloadVcubeFile(t,n),o=`${r}/${i.filter[0].src}`;await(0,tt.nH)(o);return this._setFilter(o,e)}disable(){if(this.disabled)return;this.disabled=!0;const t=this.getPusherContent();t.clearStickers(),t.clearFilters()}async enable(){if(this.disabled)return this.disabled=!1,this.filter&&await this._setFilter(...this.filter),this.resetStickers()}destroy(){this.disable(),this.auth=null,this.stickers=[],this.filter=null,this.background=null}}const rt=0,it=2,ot=3,at=4;function st(t){t&&(R.F3.defaultRoot=t.replace(/^\/|\/$/g,""))}const ct={whiten:0,dermabrasion:0,lift:0,shave:0,eye:0,chin:0};class lt extends i.Q4{_input;_detector;_ready=!1;_renderer;_options;_renderFunc;renderSprite;outputCanvas;outputRenderer;lastestEffectIds=[];loadedIdMap=new Map;tickworker;input_type;count=0;flag_1=!1;flag_2=!1;disabled=!1;el=new I.e({});takePhotoPromises=[];get enableFaceDetect(){return!this.disabled&&(this.flag_1||this.flag_2)}disable(){this.disabled||(this.disabled=!0,this._renderer&&(this._renderer.disable(),this._renderer.disableExclusiveFilter()))}enable(){this.disabled&&(this.disabled=!1,this._renderer&&(this._renderer.enable(),this._renderer.enableExclusiveFilter()))}constructor(t){d.refreshContext(),super();const{auth:e,input:n,live:r,camera:o,beautify:a,loading:s,output:c,plugin3d:l,language:u}=t;if((0,i.E5)(),f.Z.lang=u||"zh",n){if(!("string"==typeof n||n?.width&&n?.height))return void i.Nd.trigger("error",{message:f.Z.t("0004"),code:p.U.INPUT_ERROR});this.input_type=ot}else if(o)this.input_type=rt;else{if(!r)return void i.Nd.trigger("error",{message:f.Z.t("0005"),code:p.U.INPUT_ERROR});if(this.input_type=at,!x)throw new Error("The current WeChat version does not support it. Please upgrade and try again");if("native"===r.mode)return new nt(t)}this.isReadyPromise=this.startAuth(e);const h={camera:o,input:n,live:r,mirror:this.input_type===rt&&o.mirror,beautify:a,plugin3d:l,output:new wx.window.Canvas(c)};s&&s.enable&&(h.enableLoadingIcon=s.enable,h.loadingIconOptions={size:s.size,lineWidth:s.lineWidth,strokeColor:s.strokeColor}),this._options=h,this.getAutoSize(n||o||r).then((({width:t,height:n})=>{this._options.width=t,this._options.height=n,"offscreen"===R.iN&&this.input_type!==at&&(this.outputCanvas=new wx.window.Canvas(wx.createOffscreenCanvas({type:"webgl",width:this._options.width,height:this._options.height})),this.outputRenderer=new d.Renderer({view:this.outputCanvas,width:this._options.width,height:this._options.height,preserveDrawingBuffer:!0,antialias:!1})),this.init(),J(e.appId,e.sdkAppId)})),wx.onMemoryWarning?.((()=>{console.log("Out of memory!"),this.el.clearCache(),(0,Z.UI)()}))}async getAutoSize(t){if(this.input_type===at){let e=t?.pushSize;return e?.realHeight&&e?.realWidth||(e=lt.getRealSize(720)),{width:e?.realWidth,height:e?.realHeight}}return this.input_type===rt?{width:t.width,height:t.height}:this.input_type===ot?t.width&&t.height?{width:t.width,height:t.height}:new Promise(((e,n)=>{wx.getImageInfo({src:t,success:n=>{e({width:n.width,height:n.height}),this._options.input={src:t,...n}},fail:n})})):void 0}init(){wx.requestAnimationFrame=this._options.output.requestAnimationFrame,wx.cancelAnimationFrame=this._options.output.cancelAnimationFrame,this._detector=b?new h(this._options):new s,this._input=new k({...this._options,manual:this.input_type===rt||this.input_type===ot}),this._renderer=new P.g(this._options),this.inputNode=this.getInputNode(),Promise.all([this.isReadyPromise.then((()=>this.trigger("created"))),this._initCommonResLoader(),this.inputNode.init(),this._detector.init(),this._renderer.addBeautyAsync("default",this._options.beautify||{})]).then((()=>{this._input.input=this.inputNode,this.checkIsBeauti(this._options.beautify),this._ready||(this.trigger("ready"),this._ready=!0),this._initMainLoop()})),i.Nd.on("error",(t=>{this.trigger("error",t)}))}_initMainLoop(){this._renderFunc=async()=>{let t="low"===this._options.live?.fps?4:2;this.input_type===ot&&(t=10),this.count%t==0&&this.render().catch((t=>console.log("render fail",t))),this.count++,this.count>=4&&(this.count=0)},d.Ticker.shared.add(this._renderFunc)}logTime(t){const e=+new Date;console.log(`${t}时间:${e-this.currentTime}`),this.currentTime=e}async setInput(t){const{width:e,height:n}=await this.getAutoSize(t);this._options.width=e,this._options.height=n,this.outputCanvas.width=e,this.outputCanvas.height=n,this.outputRenderer.resize(n,n),this._options.input.src=t?.src||t,this._renderer.options={...this._options},await this.inputNode.init(),this._ready&&this.render()}async render(){if(this._destroyed)return;const t=this._input.readPixels();if(!t?.width)return!1;if(this.enableFaceDetect){const e=await this._detector.send(t),{landmarks:n,angles:r,meshVertex:i,lipVertex:o}=e;this._renderer.setMesh(i),this._renderer.setReshapeMarks(n),this._renderer.tick({landmarks:n,meshVertex:i,lipVertex:o,angles:r,image:this.input_type===at?this._input.canvas:t,isLivePusher:this.input_type===at})}else this._renderer.tick({landmarks:[],meshVertex:[],lipVertex:[],angles:{},image:this.input_type===at?this._input.canvas:t,isLivePusher:this.input_type===at});this.recordRender(),this._takePhoto(),this.transcodeLive()}recordRender(){if(this.recording)if("offscreen"===R.iN){if(this.ttt=new Date,this.renderSprite){this.renderSprite.texture.update()}else{let t=d.Texture.from(this._renderer._canvas);this.renderSprite=new d.Sprite(t),this.renderSprite.anchor.set(.5,.5),this.renderSprite.position.x=this.renderSprite.width/2,this.renderSprite.position.y=this.renderSprite.height/2,!m||"8.0.28"!=v&&"8.0.29"!=v&&"8.0.30"!=v?this.renderSprite.scale.set(1,1):this.renderSprite.scale.set(1,-1)}this.outputRenderer.render(this.renderSprite),this.recordCanvasRendered||(this.recordCanvasRendered=!0)}else this.recorder.loop();else if(this.takingPhoto){const t=this._renderer.getPixels();this.cacheImage=t}}async startAuth(t){const{licenseKey:e,appId:n,authFunc:r}=t,i=wx.getAccountInfoSync();this._a=new H(e,n,r,i.miniProgram.appId);const o=await this._a.go();return 0!==o?.Code?(this.trigger("error",{code:p.U.AUTH_FAIL,message:o.Message}),Promise.reject(o.Message)):o}async getEffectList(t={}){return await this._a.getEffectList(t)}async getEffect(t){if("debug"===t)return{Url:"https://webar-static.tencent-cloud.com/custom-effect/1309122168/1658976205287/effect.bin"};const e=await this._a.getEffect({EffectId:t});return e.Url?e:Promise.reject(e.message)}async getCommonFilter(){return await this._a.getFilterList()}async _initCommonResLoader(){const t=new D.KI;await t.init()}getInputNode(){if(this.input_type===ot)return new S(this._options);if(this.input_type===it){const t=new A(this._options);return t.on("ended",(()=>{this.trigger("ended")})),t}return this.input_type===at?new T(this._options):new C(this._options)}checkIsBeauti(t){t=t||{},Object.keys(t).some((e=>"whiten"!==e&&"dermabrasion"!==e&&t[e]))?this.flag_1=!0:this.flag_1=!1}setBeautify(t){t=t||{},t={...ct,...t},G("beautify")?(this.checkIsBeauti(t),this.checkReady().then((()=>{this._renderer.switchMode("Sticker"),this._renderer.updateBeauty("default",t)}))):this.trigger("error",{code:p.U.AUTH_API_FAIL,message:f.Z.t("0007")})}setEffect(t,e,n){if(!G("effect_makeup")||!G("effect_sticker_2d"))return void this.trigger("error",{code:p.U.AUTH_API_FAIL,message:f.Z.t("0007")});if(!this._renderer)return void this.trigger("error",{code:p.U.SET_EFFECT_ERROR,message:"no face detected"});t.length?this.flag_2=!0:this.flag_2=!1;let r=[],i=[],o=[];if(Array.isArray(t))t.forEach((t=>{if(t instanceof Object){r.push(t.id);let e=t.intensity;e=this._checkVoid(e)?1:e,i.push(t.intensity);let n=t.filterIntensity;o.push(this._checkVoid(n)?e:n)}else r.push(t),i.push(1),o.push(1)}));else if(t instanceof Object){r=[t.id];let e=t.intensity;e=this._checkVoid(e)?1:e,i=[e],i=[t.intensity];let n=t.filterIntensity;o=[this._checkVoid(n)?e:n]}else r=[t],i=[1],o=[1];this.setEffectInner(r,i,o,e,n)}_checkVoid(t){return null==t}setEffectInner(t,e,n,r,o){this.el.clearCache(),this.lastestEffectIds=t,this._renderer.showLoading(),Promise.all(t.map((t=>this.getEffect(t).then((t=>t.Url))))).then((async i=>{t.some((t=>-1===this.lastestEffectIds.indexOf(t)))||(await P.g.preloadEffects(i),this._renderer.hideLoading(),t.some((t=>-1===this.lastestEffectIds.indexOf(t)))||(r&&"function"==typeof r&&r(),this._renderer.switchMode("Sticker"),this._renderer.setEffect(i,e,n,(()=>!!G("effect_sticker_3d")||(this.trigger("error",{code:p.U.AUTH_API_FAIL,message:f.Z.t("0007")}),!1))).then((t=>{}))))})).catch((e=>{console.log("set effect error",t,e),i.Nd.trigger("error",{code:p.U.SET_EFFECT_ERROR,message:"set effect error",error:e}),this._renderer.hideLoading(),o&&"function"==typeof o&&o()}))}setFilter(t,e=1,n,r){G("filter")?this._renderer?t&&"none"!==t?(this.loadedIdMap.has(t)||this._renderer.showLoading(),this.getEffect(t).then((async r=>{this.loadedIdMap.has(t)||await P.g.preloadEffects([r.Url]),this._renderer.hideLoading(),this.loadedIdMap.set(t,r.Url),n&&"function"==typeof n&&n(),this._renderer.switchMode("Sticker"),this._renderer.setExclusiveFilter(r.Url,e)})).catch((t=>{i.Nd.trigger("error",{code:p.U.SET_FILTER_ERROR,message:"set filter error",error:t}),this._renderer.hideLoading(),r&&"function"==typeof r&&r()}))):this._renderer.removeExclusiveFilter():this.trigger("error",{code:p.U.SET_FILTER_ERROR,message:"no face detected"}):this.trigger("error",{code:p.U.AUTH_API_FAIL,message:f.Z.t("0007")})}async checkReady(){return new Promise((t=>{let e;const n=()=>{this._ready?(t(),e&&clearTimeout(e)):e=setTimeout(n,1e3)};n()}))}async startRecord(t={audio:{format:"mp3"},recordCamera:!1}){if(!this.recording){if(this.input_type===at)throw new Error("record in live mode is not support");return this.recording=!0,this.recorder=new O({canvas:"offscreen"===R.iN?this.outputCanvas:this._options.output,...t}),await this.recorder.start(),this._startTime=+new Date,"offscreen"===R.iN&&(this.tickworker=wx.createWorker(`${R.F3.defaultRoot}/worker/tick.worker.js`),this.tickworker.onMessage((()=>{this.recorder.loop()})),this.tickworker.postMessage("start")),t.recordCamera&&this.inputNode.startRecord(),this.recorder}}async stopRecord(t={useOriginAudio:!1,destroy:!1,compressed:!1}){if(!this.recording)return;if(m){const t=3e3,e=t=>new Promise(((e,n)=>{console.log("wait time",t),setTimeout((()=>e()),t)}));await e(Math.max(0,t-(+new Date-this._startTime)))}this.tickworker.postMessage("stop"),this.tickworker.terminate();const e=await this.recorder.stop(t);if(this.recorder=null,this.recording=!1,this.inputNode.recording){const{tempVideoPath:n}=await this.inputNode.stopRecord(t.compressed);e.cameraVideoPath=n}return e}async getVideoInfo(t){return new Promise(((e,n)=>{wx.getVideoInfo({src:t,success:t=>{e(t)},fail:()=>{n({errMsg:"get video info fail"})}})}))}async takePhoto(t=!1){return new Promise((e=>{this.takePhotoPromises.push(e),t&&this.render()}))}_takePhoto(){const t=this.takePhotoPromises.shift();if(t){const c=this.cacheImage||this._renderer.getPixels(),{data:l,width:u,height:h}=c;for(var e=new Uint8ClampedArray(this.typedArrayToBuffer(l)),n=h/2|0,r=4*u,i=new Uint8ClampedArray(4*u),o=0;o<n;++o){var a=o*r,s=(h-o-1)*r;i.set(e.subarray(a,a+r)),e.copyWithin(a,s,s+r),e.set(i,s)}t({uint8ArrayData:e,width:u,height:h})}}typedArrayToBuffer(t){return t.buffer.slice(t.byteOffset,t.byteLength+t.byteOffset)}start(){d.Ticker.shared.start()}stop(){d.Ticker.shared.stop()}toggleOccluder(){this._renderer.app3d.toggleOccluder()}destroy(t=!0){this._a.had=void 0,this._destroyed=!0,(0,i.SZ)(),this._renderFunc&&d.Ticker.shared.remove(this._renderFunc),this._detector&&this._detector.destroy(),this._renderer&&this._renderer.destroy(),this._input&&this._input.destroy(),this.inputNode&&this.inputNode.destroy(),this.outputRenderer&&(this.outputRenderer.destroy(),this.renderSprite&&this.renderSprite.destroy(!0)),this.outputCanvas&&(this.outputCanvas=null),t&&async function(){wx.createCanvas=null;for(let t in d.utils.TextureCache){const e=d.utils.TextureCache[t];d.Texture.removeFromCache(e),e.destroy(!0)}(0,Z.UI)(),new I.e({}).clearCache(),d.clearContext(),d.Ticker.shared.stop()}()}static getRealSize(t=720){t=t||720;const{platform:e,pixelRatio:n}=g,r=w(),i=16/9;let o=Math.round(t*i);const a={width:"0",height:"0",showWidth:0,showHeight:0,realWidth:0,realHeight:0};function s(t,e=2){const r=Math.round(t*n);return r%e!=0?s(t-1,e):[t,r]}if("ios"===e)t=t%2?t-1:t,o=o%2?o-1:o,a.showWidth=a.realWidth=r?o:t,a.showHeight=a.realHeight=r?t:o;else{const e=Math.round(t/n),i=Math.round(o/n);[a.showWidth,a.realWidth]=s(r?i:e,4),[a.showHeight,a.realHeight]=s(r?e:i)}return a.width=a.showWidth+"px",a.height=a.showHeight+"px",a.ratio=r?.5625:i,a}checkPusherSize(t,e){const n=w();if(!n&&t>720)throw new Error(`live-pusher width cannot be greater than 720px,currently is ${t}px`);if(n&&e>720)throw new Error(`live-pusher height cannot be greater than 720px,currently is ${e}px`);if(m){if(t%4!=0||e%2!=0)throw new Error("live-pusher width or height is not support. please use Arsdk.getRealSize")}else if(t%2!=0||e%2!=0)throw new Error("live-pusher width or height cannot is not support. please use Arsdk.getRealSize")}transcodeLive(){this.input_type===at&&this.inputNode?.generatePusherData()}changeLiveFps(t){if("high"!==t||"low"!==t)throw new Error("fps must be set to low or high");this._options.live.fps=t}}async function ut(t){return new Promise((async e=>{const n=await async function(){return new Promise(((t,e)=>{wx.getSetting({success:e=>{t(e.authSetting)},fail:()=>{e()}})}))}();if(n[t])return e(!0);wx.authorize({scope:t,success(){e(!0)},fail(){e(!1)}})}))}async function ht(){let t,e;t=await ut("scope.record"),e=await ut("scope.camera"),t&&e||await async function(){return new Promise(((t,e)=>{wx.showModal({content:f.Z.t("0002"),confirmText:f.Z.t("0003"),showCancel:!1,success:e=>{e.confirm?wx.openSetting({success:e=>{console.log("wx setting auth",e),ht().then((()=>{t()}))},fail:()=>{t()}}):e.cancel&&t()}})}))}()}var dt,ft,pt;!function(t){t[t.Default=0]="Default",t[t.Preview=1]="Preview"}(dt||(dt={})),function(t){t["2D"]="2d",t["3D"]="3d"}(ft||(ft={})),function(t){t[t.CAMERA=0]="CAMERA",t[t.VIDEO=1]="VIDEO",t[t.CANVAS=2]="CANVAS",t[t.IMAGE=3]="IMAGE",t[t.MEDIA_STREAM=4]="MEDIA_STREAM"}(pt||(pt={}));var gt,mt,yt={CAMERA:0,CANVAS2D:2,IMAGE:3};!function(t){t[t.CAMERA=0]="CAMERA",t[t.VIDEO=1]="VIDEO",t[t.CANVAS=2]="CANVAS",t[t.IMAGE=3]="IMAGE",t[t.MEDIA_STREAM=4]="MEDIA_STREAM"}(gt||(gt={})),function(t){t[t.WORKER=0]="WORKER",t[t.DEFAULT=1]="DEFAULT"}(mt||(mt={}));var vt=n(1730)},3553:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(401),i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};const a=new(function(){function t(){this.data=new Map,this.set("common-v3",{Url:(0,r.xb)()})}return t.prototype.set=function(t,e){this.data.set(t,e)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.has=function(t){return this.data.has(t)},t.prototype.remove=function(t){this.data.delete(t)},t.prototype.clear=function(){this.data.clear()},t.prototype.findId=function(t){var e,n;try{for(var r=i(this.data),a=r.next();!a.done;a=r.next()){var s=o(a.value,2),c=s[0];s[1];if(this.data.get(c).Url===t)return c}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t}())},3849:(t,e,n)=>{n.d(e,{t:()=>s});var r,i=n(6878),o=n(6109),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(){var e=t.call(this)||this;return e._options={},e}return a(e,t),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),e.prototype.getOptions=function(){return this._options},e.prototype.setOptions=function(t){o.bH.log("set ar options",t.mirror,this._options.mirror),void 0!==t.mirror&&t.mirror!==this._options.mirror&&(o.bH.log("mirrorchange",t.mirror),this.trigger("mirrorChange",{mirror:t.mirror})),this._options=t},e.instance=new e,e}(i.Q4)},1077:(t,e,n)=>{n.d(e,{F:()=>P});var r,i=n(1206),o=n(5536),a=n(3120),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},l=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u=function(t){function e(e){var n=t.call(this)||this;return n._options=e,n}return s(e,t),e.prototype.getFilterInstance=function(t){return c(this,void 0,Promise,(function(){var e,n=this;return l(this,(function(r){switch(r.label){case 0:return[4,this.init()];case 1:return e=r.sent(),[2,this.loadImage(e).then((function(e){return e[a.RY].baseTexture.scaleMode=i.SCALE_MODES.LINEAR,e[a.RY].baseTexture.mipmap=i.MIPMAP_MODES.OFF,new o.f("lutSkin",n._options,{uniforms:{lut:e[a.RY],lutSize:[512,512],intensity:t}})}))]}}))}))},e}(a.KI),h=n(617);const d="precision mediump float;\n attribute vec2 aVertexPosition;\n attribute vec2 aUvs;\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n varying vec2 vUvs;\n\n\n void main() {\n vUvs = aUvs;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n }",f="precision mediump float;\nvarying vec2 vUvs;\nuniform sampler2D mask;\nuniform float intensity;\n\nvoid main() {\n vec4 color = texture2D(mask, vUvs);\n color = vec4(color.rgb, color.a) * intensity;\n gl_FragColor = color;\n}";var p=n(401),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},y=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},v=function(){function t(t){this._options=t}return Object.defineProperty(t.prototype,"uniforms",{set:function(t){for(var e in t)this._filter.uniforms[e]=t[e]},enumerable:!1,configurable:!0}),t.prototype.applyTo=function(t){t.filters||(t.filters=[]),t.filters.indexOf(this._filter)>-1||(t.filters.push(this._filter),this._container=t)},t.prototype.removeFrom=function(t){if(t.filters&&-1!==t.filters.indexOf(this._filter)){var e=t.filters.indexOf(this._filter);t.filters.splice(e,1),this._container=null}},t.prototype.resize=function(t,e){this._filter&&this._filter.resize(t,e)},t}(),_=function(t){function e(e,n){var r=t.call(this,n)||this;return r.intensity=e,r}return g(e,t),Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},set:function(t){this._intensity=t,this._filter&&(this._filter.uniforms.intensity=t<.01?0:t)},enumerable:!1,configurable:!0}),e.prototype.init=function(){return m(this,void 0,Promise,(function(){var t;return y(this,(function(e){switch(e.label){case 0:return[4,new u(this._options).getFilterInstance(this.intensity)];case 1:return t=e.sent(),this._filter=t,t.uniforms.intensity=this._intensity<.01?0:this._intensity,[2]}}))}))},e}(v),b=(function(t){function e(e,n,r){var s=t.call(this,r)||this,c=s._options,l=c.width,u=c.height,h=new i.BaseRenderTexture({width:l,height:u});return s.renderTexture=new i.RenderTexture(h),s._filter=new o.f("partialLutSkin",r,{uniforms:{intensity:1,faceMask:s.renderTexture,grayTexture:i.utils.TextureCache[a.lc],lookupTexture:i.utils.TextureCache[a.M$],levelRangeInv:1.040816,levelBlack:.01960784}}),s.intensityEye=e,s.intensityTeeth=n,s}g(e,t),Object.defineProperty(e.prototype,"intensityEye",{get:function(){return this._intensityEye},set:function(t){this._intensityEye=t,this._shader&&(this._shader.uniforms.intensity=t<.01?0:t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensityTeeth",{get:function(){return this._intensityTeeth},set:function(t){this._intensityTeeth=t,this._shader&&(this._shader.uniforms.intensityTeeth=t<.01?0:t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){this._renderer=t},enumerable:!1,configurable:!0}),e.prototype.render=function(){if(this.geometry){if(!this.faceMesh){var t={mask:i.utils.TextureCache[a.iy],intensity:this.intensityEye<.01?0:this.intensityEye},e=i.Shader.from(d,f,t);this._shader=e,this.faceMesh=new i.Mesh(this.geometry,e)}this.renderer&&this.renderer.render(this.faceMesh,{renderTexture:this.renderTexture})}}}(v),function(t){function e(e,n){var r=t.call(this,n)||this,a=r._options,s=a.width,c=a.height,l=new i.BaseRenderTexture({width:s,height:c});return r.renderTexture=new i.RenderTexture(l),r._filter=new o.f("dermabrasion",n,{uniforms:{intensity:e<.01?0:e,faceMask:r.renderTexture,enable:1}}),r.intensity=e,r}return g(e,t),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){this._renderer=t},enumerable:!1,configurable:!0}),e.prototype.render=function(){if(this.geometry){if(!this.faceMesh){var t={mask:i.utils.TextureCache[a.L4],intensity:1},e=i.Shader.from(d,f,t);this.faceMesh=new i.Mesh(this.geometry,e)}this.renderer&&this.renderer.render(this.faceMesh,{renderTexture:this.renderTexture})}},e.prototype.applyTo=function(e){t.prototype.applyTo.call(this,e)},Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},set:function(t){this._intensity=t,this._intensity=.7*t,this._filter&&(this._filter.uniforms.intensity=this._intensity<.01?0:this._intensity)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enable",{set:function(t){this._filter.uniforms.enable=t?1:0},enumerable:!1,configurable:!0}),e}(v)),x=function(t){function e(e,n,r){var a=t.call(this,r)||this,s=a._options,c=s.width,l=s.height,u=new i.BaseRenderTexture({width:c,height:l});return a.renderTexture=new i.RenderTexture(u),a._filter=new o.f("partialDermabrasion",r,{uniforms:{intensity:1,faceMask:a.renderTexture}}),a.intensityDarkCircle=e,a.intensityNasolabialFolds=n,a}return g(e,t),Object.defineProperty(e.prototype,"intensityDarkCircle",{get:function(){return this._intensityDarkCircle},set:function(t){this._intensityDarkCircle=t,this._shader&&(this._shader.uniforms.intensityDarkCircle=t<.01?0:t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensityNasolabialFolds",{get:function(){return this._intensityNasolabialFolds},set:function(t){this._intensityNasolabialFolds=t,this._shader&&(this._shader.uniforms.intensityNasolabialFolds=t<.01?0:t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){this._renderer=t},enumerable:!1,configurable:!0}),e.prototype.render=function(){if(this.geometry){if(!this.faceMesh){var t={falingwen:i.utils.TextureCache[a.F7],heiyanquan:i.utils.TextureCache[a.B3],intensityDarkCircle:this.intensityDarkCircle,intensityNasolabialFolds:this.intensityNasolabialFolds},e=i.Shader.from(d,"precision mediump float;\nvarying vec2 vUvs;\nuniform sampler2D falingwen;\nuniform sampler2D heiyanquan;\nuniform float intensityNasolabialFolds;\nuniform float intensityDarkCircle;\n\nvoid main() {\n vec4 color = texture2D(falingwen, vUvs) * intensityNasolabialFolds + texture2D(heiyanquan, vUvs) * intensityDarkCircle;\n \n gl_FragColor = vec4(color.a, 0.,0.,1.);\n}",t);this._shader=e,this.faceMesh=new i.Mesh(this.geometry,e)}this.renderer&&this.renderer.render(this.faceMesh,{renderTexture:this.renderTexture})}},e}(v),w=function(t){function e(e,n){var r=t.call(this,n)||this;return r._filter=new o.f("usm",n,{intensity:e}),r.intensity=e,r}return g(e,t),Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},set:function(t){this._intensity=t,this._filter.uniforms.intensity=t<.01?0:t},enumerable:!1,configurable:!0}),e}(v),T=["left_eye_center","right_eye_center","nose_tip","contour_chin","nose_bridge5","contour_left4","contour_left9","contour_right4","contour_right9","contour_left10","contour_right10","mouth_lower_lip_bottom","nose_tip1","nose_bottom","nose_left1","nose_left2","nose_right1","nose_right2","lip_top_left","lip_top_right","lip_bottom_left","lip_bottom_right","lip_top_left_target","lip_top_right_target","lip_bottom_left_target","lip_bottom_right_target","lip_top_center","lip_top_center_target","lip_bottom_center","lip_bottom_center_target","lip_inner_top","lip_inner_bottom","forehead_top_center","eyebrow_center","forehead_left","left_eyebrow_center","forehead_right","right_eyebrow_center","right_eye_top","left_eye_top","right_eye_bottom","left_eye_bottom","contour_left3","contour_right3","nose_bridge6","nose_bridge4","nose_bridge3","nose_bridge2","nose_bridge1","chin_left","chin_right"],C=function(t){function e(e,n){var r=t.call(this,e)||this;return r._enable=0,r.intensities=n,r._keymap=(new h.M).getDataConfig(p.c4.POINTS_MAP),r}return g(e,t),Object.defineProperty(e.prototype,"landmarks",{set:function(t){if(t.length){var e=T,n=this._getCartesianPointsByKeys(t,e);this._keypoints={};for(var r=0;r<e.length;r++){var i=e[r];this._keypoints[i]=n[r]}this._updateFilter(this._keypoints)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensities",{set:function(t){t.enable=this._enable?t.enable:this._enable,this._updateFilter(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enable",{set:function(t){var e=t?1:0;this._enable!==e&&(this._enable=e,this._updateFilter({enable:this._enable}))},enumerable:!1,configurable:!0}),e.prototype._updateFilter=function(t){if(!this._filter){var e={};T.forEach((function(t){e[t]=[0,0]})),e.enable=this._enable,this._filter=new o.f("faceReshape",this._options,{uniforms:e})}for(var n in t)this._filter.uniforms[n]=t[n]||0},e.prototype._getCartesianPointsByKeys=function(t,e){var n=this._keymap,r=[];return e.forEach((function(e){try{var i=t[n[e]],o={x:i.x,y:i.y};r.push([o.x,o.y])}catch(t){console.log("err",e,n[e],t)}})),r},e}(v),S=function(){function t(t,e,n){this._beautify={whiten:0,dermabrasion:0,eyeWhiten:0,teethWhiten:0,darkCircle:0,nasolabialFolds:0,lift:0,shave:0,cheekbone:0,head:0,eyeBrightness:0,lip:0,forehead:0,nose:0,eye:0,chin:0,usm:0},this._detected=!1,this.id=t,this._target=e,this._options=n}return Object.defineProperty(t.prototype,"detected",{get:function(){return this._detected},set:function(t){if(this._detected!==t){if(this._detected=t,this._reshape){var e=this._beautify;this._reshape.intensities={lift:e.lift,shave:e.shave,cheekbone:e.cheekbone,head:e.head,eyeBrightness:e.eyeBrightness,lip:e.lip,forehead:e.forehead,nose:e.nose,eye:e.eye,chin:e.chin,darkCircle:e.darkCircle,nasolabialFolds:e.nasolabialFolds,enable:e.lift||e.shave||e.darkCircle||e.nasolabialFolds||e.cheekbone||e.head||e.eyeBrightness||e.lip||e.forehead||e.eye||e.chin||e.nose?1:0}}this._dermabrasion&&(this._dermabrasion.enable=t)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"beautify",{set:function(t){this._beautify=Object.assign(this._beautify,t);var e=this._beautify,n=e.whiten,r=e.dermabrasion,i=(e.eyeWhiten,e.teethWhiten,e.darkCircle),o=e.nasolabialFolds,a=e.lift,s=e.shave,c=e.cheekbone,l=e.head,u=e.eyeBrightness,h=e.lip,d=e.forehead,f=e.nose,p=e.eye,g=e.chin,m=e.usm;this._whiten&&(this._whiten.intensity=n),this._dermabrasion&&(this._dermabrasion.intensity=r),this._partialDermabrasion&&(this._partialDermabrasion.intensityDarkCircle=i,this._partialDermabrasion.intensityNasolabialFolds=o),this._usm&&(this._usm.intensity=m),this._reshape&&(this._reshape.intensities={lift:a,shave:s,cheekbone:c,head:l,eyeBrightness:u,lip:h,forehead:d,nose:f,eye:p,chin:g,darkCircle:i,nasolabialFolds:o,enable:a||s||c||l||u||h||d||p||g||o||o||f?1:0})},enumerable:!1,configurable:!0}),t.prototype.load=function(){return m(this,void 0,Promise,(function(){var t,e,n,r,i,o,a=this;return y(this,(function(s){switch(s.label){case 0:return this.loaded?[2]:(this.loaded=!0,this._config?[3,2]:(this._config=new h.M,[4,this._config.load()]));case 1:s.sent(),s.label=2;case 2:return t=Object.assign(this._beautify),e=void 0!==t.whiten&&null!==t.whiten?t.whiten:p.em,this._whiten=new _(e,this._options),n=void 0!==t.dermabrasion&&null!==t.dermabrasion?t.dermabrasion:p.Ss,this._dermabrasion=new b(n,this._options),r=void 0!==t.darkCircle&&null!==t.darkCircle?t.darkCircle:0,i=void 0!==t.nasolabialFolds&&null!==t.nasolabialFolds?t.nasolabialFolds:0,this._partialDermabrasion=new x(r,i,this._options),void 0!==t.eyeWhiten&&null!==t.eyeWhiten?t.eyeWhiten:0,void 0!==t.teethWhiten&&null!==t.teethWhiten?t.teethWhiten:0,this._usm=new w(t.usm||0,this._options),o={lift:t.lift,shave:t.shave,cheekbone:t.cheekbone,head:t.head,eyeBrightness:t.eyeBrightness,lip:t.lip,forehead:t.forehead,nose:t.nose,darkCircle:t.darkCircle,nasolabialFolds:t.nasolabialFolds,eye:t.eye,chin:t.chin,enable:t.lift||t.shave||t.darkCircle||t.nasolabialFolds||t.cheekbone||t.head||t.eyeBrightness||t.lip||t.forehead||t.nose||t.eye||t.chin?1:0},this._reshape=new C(this._options,o),[2,this._whiten.init().then((function(){a.apply()}))]}}))}))},t.prototype.setReshapeMarks=function(t){t&&t.length?this._reshape&&(this._reshape.landmarks=t,this._reshape.enable=!0):this._reshape.enable=!1},t.prototype.setMesh=function(t){if(t&&t.length){if(!this.geometry){var e=this._config.getDataConfig(26),n=(new i.Geometry).addAttribute("aVertexPosition",t).addAttribute("aUvs",e);this.geometry=n}this.geometry.getBuffer("aVertexPosition").update(t),this._dermabrasion&&(this._dermabrasion.geometry=this.geometry,this._partialDermabrasion.geometry=this.geometry,this._dermabrasion.render(),this._partialDermabrasion.render())}},t.prototype.setRenderer=function(t){var e,n=this,r=function(){n._dermabrasion&&n._partialDermabrasion?(n._dermabrasion.renderer=t,n._partialDermabrasion.renderer=t,clearTimeout(e)):e=setTimeout(r,30)};r()},t.prototype.resize=function(t,e){this._whiten&&this._whiten.resize(t,e),this._dermabrasion&&this._dermabrasion.resize(t,e),this._partialDermabrasion&&this._partialDermabrasion.resize(t,e),this._reshape&&this._reshape.resize(t,e),this._usm&&this._usm.resize(t,e)},t.prototype.remove=function(){this._active&&(this._whiten&&this._whiten.removeFrom(this._target),this._dermabrasion&&this._dermabrasion.removeFrom(this._target),this._partialDermabrasion&&this._partialDermabrasion.removeFrom(this._target),this._reshape&&this._reshape.removeFrom(this._target),this._usm&&this._usm.removeFrom(this._target),this._active=!1)},t.prototype.apply=function(){this._active||(this._whiten&&this._whiten.applyTo(this._target),this._dermabrasion&&this._dermabrasion.applyTo(this._target),this._partialDermabrasion&&this._partialDermabrasion.applyTo(this._target),this._reshape&&this._reshape.applyTo(this._target),this._usm&&this._usm.applyTo(this._target),this._active=!0)},t.prototype.destroy=function(){this.remove(),this._whiten=null,this._dermabrasion=null,this._partialDermabrasion=null,this._reshape=null},t}(),E=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},k=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},P=function(){function t(t){this._beautifies={},this._detected=!1,this._options=t}return Object.defineProperty(t.prototype,"renderer",{get:function(){return this._renderer},set:function(t){this._renderer=t,this.setRenderer()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detected",{get:function(){return this._detected},set:function(t){for(var e in this._detected=t,this._beautifies){this._beautifies[e].detected=t}},enumerable:!1,configurable:!0}),t.prototype.updateBeauty=function(t,e){this._beautifies[t]?this.setBeauty(t,e):this.addBeauty(t,e)},t.prototype.setBeauty=function(t,e){void 0===t&&(t="default");var n=this._beautifies[t];n&&(n.beautify=e)},t.prototype.addBeauty=function(t,e){void 0===t&&(t="default"),void 0===e&&(e={});var n=new S(t,this._target,this._options);n.detected=this.detected,e&&(n.beautify=e),this._beautifies[t]&&this.removeBeauty(t),n.loaded||(n.load(),n.setRenderer(this.renderer)),this._beautifies[t]=n},t.prototype.addBeautyAsync=function(t,e){return void 0===t&&(t="default"),void 0===e&&(e={}),E(this,void 0,void 0,(function(){var n,r;return k(this,(function(i){switch(i.label){case 0:return n=+new Date,console.log("log::::input node addBeautyAsync",t,this._options),(r=new S(t,this._target,this._options)).detected=this.detected,e&&(r.beautify=e),[4,r.load()];case 1:return i.sent(),r.setRenderer(this.renderer),this._beautifies[t]&&this.removeBeauty(t),this._beautifies[t]=r,console.log("log::::input node addBeautyAsync finish",+new Date-n),[2]}}))}))},t.prototype.enable=function(){for(var t in this._beautifies)this._beautifies[t].apply()},t.prototype.disable=function(){for(var t in this._beautifies)console.log("disable beautify",t),this._beautifies[t].remove()},t.prototype.resize=function(t,e){for(var n in this._beautifies)this._beautifies[n].resize(t,e)},t.prototype.removeBeauty=function(t){this._beautifies[t].destroy(),delete this._beautifies[t]},t.prototype.removeEffectBeauties=function(){for(var t in this._beautifies)"default"!==t&&this.removeBeauty(t)},t.prototype.setReshapeMarks=function(t){for(var e in this._beautifies)this._beautifies[e].setReshapeMarks(t)},t.prototype.setMesh=function(t){for(var e in this._beautifies)this._beautifies[e].setMesh(t)},t.prototype.setRenderer=function(){for(var t in this._beautifies)console.log("call set renderer"),this._beautifies[t].setRenderer(this.renderer)},t}()},5156:(t,e,n)=>{n.d(e,{Z:()=>a});var r,i=n(1206),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e){var n=t.call(this)||this;n.degreeStart=-90,n.degreeEnd=270,n.stepStart=14,n.stepEnd=2,n.isVisible=!1;var r;return r=wx.getSystemInfoSync().pixelRatio,n.size=(e.size||100)*r,n.radius=n.size/2,n.lineWidth=(e.lineWidth||8)*r,n.strokeStyle=e.strokeColor||4286945,n.queue={},n.graphics=new i.Graphics,n.graphics.scale.set(1/r,1/r),n.addChild(n.graphics),n._draw=n.draw.bind(n),n}return o(e,t),e.prototype.draw=function(){this.degreeStart=this.degreeStart+this.stepStart,this.degreeEnd=this.degreeEnd+this.stepEnd,this.degreeStart-360>this.degreeEnd&&(this.degreeStart-=720);var t=this.graphics;t.clear(),t.lineStyle(this.lineWidth,this.strokeStyle),t.arc(0,0,this.radius-this.lineWidth/2,(this.degreeStart<this.degreeEnd?this.degreeStart:this.degreeEnd)*Math.PI/180,(this.degreeStart<this.degreeEnd?this.degreeEnd:this.degreeStart)*Math.PI/180)},e.prototype.addTicker=function(){i.Ticker.shared.add(this._draw)},e.prototype.removeTicker=function(){i.Ticker.shared.remove(this._draw)},e.prototype.show=function(t){t&&(this.queue[t]=1),this.isVisible||(clearTimeout(this.t),this.graphics.visible=!0,this.draw(),this.addTicker(),this.isVisible=!0)},e.prototype.hide=function(t){if(t){this.queue[t]=void 0;var e=!0;for(var n in this.queue)this.queue[n]&&(e=!1);e&&this._hide()}else this._hide()},e.prototype._hide=function(){this.t&&clearTimeout(this.t),this.graphics.visible=!1,this.removeTicker(),this.isVisible=!1},e.prototype.destroy=function(){this._hide(),this.graphics.destroy(!0)},e}(i.Container)},3120:(t,e,n)=>{n.d(e,{B3:()=>h,F7:()=>u,KI:()=>m,L4:()=>c,M$:()=>f,RY:()=>p,X_:()=>g,iy:()=>l,lc:()=>d});var r=n(1206),i=n(3044),o=n(401),a=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},s=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c="face.png",l="eye.png",u="falingwen.png",h="heiyanquan.png",d="skin_gray.png",f="skin_lookup.png",p="whiten.png",g="lips-mask-wx2.png",m=function(){function t(){}return t.prototype.init=function(){return a(this,void 0,Promise,(function(){var t;return s(this,(function(e){switch(e.label){case 0:return[4,(t=new i.pF).init()];case 1:return e.sent(),[4,t.preload((0,o.xb)())];case 2:return e.sent(),[2,t.getIndeLoader()]}}))}))},t.prototype.loadImage=function(t){return a(this,void 0,Promise,(function(){return s(this,(function(e){return[2,new Promise((function(e,n){var i={};if(r.utils.TextureCache[p]&&r.utils.TextureCache[g]&&r.utils.TextureCache[c]&&r.utils.TextureCache[l]&&r.utils.TextureCache[u]&&r.utils.TextureCache[h])return i[p]=r.utils.TextureCache[p],i[g]=r.utils.TextureCache[g],i[c]=r.utils.TextureCache[c],i[l]=r.utils.TextureCache[l],i[u]=r.utils.TextureCache[u],i[h]=r.utils.TextureCache[h],e(i);t.add(p),t.add(g),t.add(c),t.add(l),t.add(u),t.add(h),t.load((function(t,n){return i[p]=r.utils.TextureCache[p],i[g]=r.utils.TextureCache[g],i[c]=r.utils.TextureCache[c],i[l]=r.utils.TextureCache[l],i[u]=r.utils.TextureCache[u],i[h]=r.utils.TextureCache[h],e(i)}))}))]}))}))},t}()},5536:(t,e,n)=>{n.d(e,{f:()=>s});var r=n(1206);var i,o=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a={mirror:{fragment:"\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nvoid main() {\n vec2 p = vTextureCoord;\n p.x = 1.0 - p.x;\n vec4 color = texture2D(uSampler, p);\n gl_FragColor = color;\n}\n"},mirrorVertical:{fragment:"\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nvoid main() {\n vec2 p = vTextureCoord;\n p.y = 1.0 - p.y;\n vec4 color = texture2D(uSampler, p);\n gl_FragColor = color;\n}\n"},lut:{fragment:"\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D lut;\nuniform lowp float intensity;\nuniform lowp float parentIntensity;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord.xy);\n\n highp float blueColor = color.b * 63.0;\n \n //向下取值\n highp vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0); \n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n \n //向上取值\n highp vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0); \n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n \n //根据小正方形格子和RG通道,获取纹理坐标,每个大格子的大小:1/8=0.125,每个小格子的大小:1/512\n highp vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n \n highp vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n \n lowp vec4 newColor1 = texture2D(lut, texPos1);\n lowp vec4 newColor2 = texture2D(lut, texPos2);\n \n lowp vec3 newColor = mix(newColor1.rgb, newColor2.rgb, fract(blueColor));\n\n vec3 textureColor = mix(color.rgb, newColor, intensity * parentIntensity * 1.0);\n\n gl_FragColor = vec4(textureColor, 1.0);\n}\n"},lutSkin:{fragment:"precision mediump float;\n#define dimension 64.0\nuniform sampler2D uSampler; // 底图\nvarying vec2 vTextureCoord;\n\nuniform sampler2D lut; // lut 图\nuniform float intensity; // 强度\nuniform vec2 lutSize; // lut 尺寸\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n float row = floor(sqrt(dimension) + 0.5);\n float blueColor = color.b * (dimension - 1.0);\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / row);\n quad1.x = floor(blueColor) - (quad1.y * row);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / row);\n quad2.x = ceil(blueColor) - (quad2.y * row);;\n vec2 texPos1;\n texPos1.x = (quad1.x * (1.0/row)) + 0.5/lutSize.x + ((1.0/row - 1.0/lutSize.x) * color.r);\n texPos1.y = (quad1.y * (1.0/row)) + 0.5/lutSize.y + ((1.0/row - 1.0/lutSize.y) * color.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * (1.0/row)) + 0.5/lutSize.x + ((1.0/row - 1.0/lutSize.x) * color.r);\n texPos2.y = (quad2.y * (1.0/row)) + 0.5/lutSize.y + ((1.0/row - 1.0/lutSize.y) * color.g);\n vec4 newColor1 = texture2D(lut, texPos1);\n vec4 newColor2 = texture2D(lut, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n vec4 finalColor = mix(color, vec4(newColor.rgb, color.a), intensity);\n gl_FragColor = finalColor;\n}\n"},partialLutSkin:{fragment:"precision mediump float;\nvarying highp vec2 vTextureCoord;\n\nuniform sampler2D uSampler; // 图像texture\nuniform sampler2D grayTexture; // 灰度查找表\nuniform sampler2D lookupTexture; // LUT\n\nuniform highp float levelRangeInv; // 范围\nuniform lowp float levelBlack; // 灰度level \n// uniform lowp float intensity; // 肤色程度 \nuniform sampler2D faceMask;\n\nvoid main() {\n float mask = texture2D(faceMask, vTextureCoord).a;\n lowp vec3 textureColor = texture2D(uSampler, vTextureCoord).rgb;\n\n \n // if (mask == 0.) {\n // gl_FragColor = vec4(textureColor, 1.0); \n // return;\n // };\n \n\n textureColor = clamp((textureColor - vec3(levelBlack, levelBlack, levelBlack)) * levelRangeInv, 0.0, 1.0);\n textureColor.r = texture2D(grayTexture, vec2(textureColor.r, 0.5)).r;\n textureColor.g = texture2D(grayTexture, vec2(textureColor.g, 0.5)).g;\n textureColor.b = texture2D(grayTexture, vec2(textureColor.b, 0.5)).b;\n\n mediump float blueColor = textureColor.b * 15.0;\n\n mediump vec2 quad1;\n quad1.y = floor(blueColor / 4.0);\n quad1.x = floor(blueColor) - (quad1.y * 4.0);\n\n mediump vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 4.0);\n quad2.x = ceil(blueColor) - (quad2.y * 4.0);\n\n highp vec2 texPos1;\n texPos1.x = (quad1.x * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.r);\n texPos1.y = (quad1.y * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.g);\n\n highp vec2 texPos2;\n texPos2.x = (quad2.x * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.r);\n texPos2.y = (quad2.y * 0.25) + 0.5 / 64.0 + ((0.25 - 1.0 / 64.0) * textureColor.g);\n\n lowp vec4 newColor1 = texture2D(lookupTexture, texPos1);\n lowp vec4 newColor2 = texture2D(lookupTexture, texPos2);\n\n lowp vec3 newColor = mix(newColor1.rgb, newColor2.rgb, fract(blueColor));\n\n // textureColor = mix(textureColor, newColor, 1.0);\n textureColor = mix(textureColor, newColor, mask);\n\n gl_FragColor = vec4(textureColor, 1.0); \n}\n"},dermabrasion:{fragment:"precision lowp float;\nuniform sampler2D uSampler;\nvarying lowp vec2 vTextureCoord;\n\nuniform int width;\nuniform int height;\n\nuniform float intensity;\n\nvoid main() {\n vec3 centralColor;\n\n centralColor = texture2D(uSampler, vTextureCoord).rgb;\n \n // if(intensity < 0.01) {\n // gl_FragColor = vec4(centralColor, 1.0);\n // return;\n // }\n float x_a = float(width);\n float y_a = float(height);\n\n float mul_x = 2.0 / x_a;\n float mul_y = 2.0 / y_a;\n vec2 blurCoordinates0 = vTextureCoord + vec2(0.0 * mul_x, -10.0 * mul_y);\n vec2 blurCoordinates2 = vTextureCoord + vec2(8.0 * mul_x, -5.0 * mul_y);\n vec2 blurCoordinates4 = vTextureCoord + vec2(8.0 * mul_x, 5.0 * mul_y);\n vec2 blurCoordinates6 = vTextureCoord + vec2(0.0 * mul_x, 10.0 * mul_y);\n vec2 blurCoordinates8 = vTextureCoord + vec2(-8.0 * mul_x, 5.0 * mul_y);\n vec2 blurCoordinates10 = vTextureCoord + vec2(-8.0 * mul_x, -5.0 * mul_y);\n\n mul_x = 1.8 / x_a;\n mul_y = 1.8 / y_a;\n vec2 blurCoordinates1 = vTextureCoord + vec2(5.0 * mul_x, -8.0 * mul_y);\n vec2 blurCoordinates3 = vTextureCoord + vec2(10.0 * mul_x, 0.0 * mul_y);\n vec2 blurCoordinates5 = vTextureCoord + vec2(5.0 * mul_x, 8.0 * mul_y);\n vec2 blurCoordinates7 = vTextureCoord + vec2(-5.0 * mul_x, 8.0 * mul_y);\n vec2 blurCoordinates9 = vTextureCoord + vec2(-10.0 * mul_x, 0.0 * mul_y);\n vec2 blurCoordinates11 = vTextureCoord + vec2(-5.0 * mul_x, -8.0 * mul_y);\n\n mul_x = 1.6 / x_a;\n mul_y = 1.6 / y_a;\n vec2 blurCoordinates12 = vTextureCoord + vec2(0.0 * mul_x,-6.0 * mul_y);\n vec2 blurCoordinates14 = vTextureCoord + vec2(-6.0 * mul_x,0.0 * mul_y);\n // vec2 blurCoordinates16 = vTextureCoord + vec2(0.0 * mul_x,6.0 * mul_y);\n // vec2 blurCoordinates18 = vTextureCoord + vec2(6.0 * mul_x,0.0 * mul_y);\n\n mul_x = 1.4 / x_a;\n mul_y = 1.4 / y_a;\n vec2 blurCoordinates13 = vTextureCoord + vec2(-4.0 * mul_x,-4.0 * mul_y);\n vec2 blurCoordinates15 = vTextureCoord + vec2(-4.0 * mul_x,4.0 * mul_y);\n // vec2 blurCoordinates17 = vTextureCoord + vec2(4.0 * mul_x,4.0 * mul_y);\n // vec2 blurCoordinates19 = vTextureCoord + vec2(4.0 * mul_x,-4.0 * mul_y);\n\n float central;\n float gaussianWeightTotal;\n float sum;\n float sampler;\n float distanceFromCentralColor;\n float gaussianWeight;\n\n float distanceNormalizationFactor = 3.6;\n\n central = texture2D(uSampler, vTextureCoord).g;\n gaussianWeightTotal = 0.2;\n sum = central * 0.2;\n\n sampler = texture2D(uSampler, blurCoordinates0).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates1).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates2).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates3).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates4).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates5).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates6).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates7).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates8).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates9).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates10).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates11).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.09 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates12).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates13).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates14).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n sampler = texture2D(uSampler, blurCoordinates15).g;\n distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n gaussianWeightTotal += gaussianWeight;\n sum += sampler * gaussianWeight;\n\n // sampler = texture2D(uSampler, blurCoordinates16).g;\n // distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n // gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n // gaussianWeightTotal += gaussianWeight;\n // sum += sampler * gaussianWeight;\n\n // sampler = texture2D(uSampler, blurCoordinates17).g;\n // distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n // gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n // gaussianWeightTotal += gaussianWeight;\n // sum += sampler * gaussianWeight;\n\n // sampler = texture2D(uSampler, blurCoordinates18).g;\n // distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n // gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n // gaussianWeightTotal += gaussianWeight;\n // sum += sampler * gaussianWeight;\n\n // sampler = texture2D(uSampler, blurCoordinates19).g;\n // distanceFromCentralColor = min(abs(central - sampler) * distanceNormalizationFactor, 1.0);\n // gaussianWeight = 0.1 * (1.0 - distanceFromCentralColor);\n // gaussianWeightTotal += gaussianWeight;\n // sum += sampler * gaussianWeight;\n\n sum = sum/gaussianWeightTotal;\n\n sampler = centralColor.g - sum + 0.5;\n\n // 高反差保留\n for(int i = 0; i < 5; ++i) {\n sampler = mix(sampler * sampler * 2.0, 1.0 - ((1.0 - sampler)*(1.0 - sampler) * 2.0), step(0.5,sampler));\n // sampler = sampler <= 0.5 ? sampler * sampler * 2.0 : 1.0 - ((1.0 - sampler)*(1.0 - sampler) * 2.0);\n // if(sampler <= 0.5) {\n // sampler = sampler * sampler * 2.0;\n // } else {\n // sampler = 1.0 - ((1.0 - sampler)*(1.0 - sampler) * 2.0);\n // }\n }\n\n float aa = 1.0 + pow(sum, 0.3) * 0.09;\n vec3 smoothColor = centralColor * aa - vec3(sampler) * (aa - 1.0);\n smoothColor = clamp(smoothColor, vec3(0.0), vec3(1.0));\n\n smoothColor = mix(centralColor, smoothColor, pow(centralColor.g, 0.33));\n smoothColor = mix(centralColor, smoothColor, pow(centralColor.g, 0.39));\n\n smoothColor = mix(centralColor, smoothColor, intensity * 1.5);\n\n gl_FragColor = vec4(pow(smoothColor, vec3(0.96)), 1.0);\n \n }"},partialDermabrasion:{fragment:"precision lowp float;\nuniform sampler2D uSampler;\nuniform sampler2D faceMask;\nvarying lowp vec2 vTextureCoord;\n\nuniform int width;\nuniform int height;\n\n// uniform float intensity;\n\nfloat normpdf(in float x, in float sigma)\n{\n\treturn 0.39894*exp(-0.5*x*x/(sigma*sigma))/sigma;\n}\n\nfloat normpdf3(in vec3 v, in float sigma)\n{\n\treturn 0.39894*exp(-0.5*dot(v,v)/(sigma*sigma))/sigma;\n}\n\n\n// 双边滤波\nvec3 bilateral(in vec2 coordinate) {\n const float SIGMA = 16.;\n const float BSIGMA = 9.;\n // const int MSIZE = 5;\n const int mSize = 16;\n\n // float c = getMaskColor(coordinate).a;\n\n vec3 color = texture2D(uSampler, coordinate).rgb;\n const int kSize = (mSize-1)/2;\n float kernel[mSize];\n vec3 final_alpha =vec3(0.);\n float Z = 0.;\n\tfor (int j = 0; j <= kSize; ++j)\n\t{\n\t\tkernel[kSize+j] = kernel[kSize-j] = normpdf(float(j), SIGMA);\n\t}\n\n vec3 cc;\n\tfloat factor;\n\tfloat bZ = 1.0/normpdf(0.0, BSIGMA);\n\n\t//read out the texels\n\tfor (int i=-kSize; i <= kSize; ++i)\n\t{\n\t\tfor (int j=-kSize; j <= kSize; ++j)\n\t\t{\n vec3 ccc = texture2D(uSampler, coordinate + vec2( float(i) / float(width), float(j) / float(height) )).rgb;\n cc = ccc;\n\t\t\tfactor = normpdf3(cc-color, BSIGMA)*bZ*kernel[kSize+j]*kernel[kSize+i];\n\t\t\tZ += factor;\n final_alpha += factor * ccc;\n\t\t}\n\t}\n return final_alpha / Z;\n}\n\nvoid main() {\n float mask = texture2D(faceMask, vTextureCoord).r;\n\n float i = mask;\n vec3 original = texture2D(uSampler, vTextureCoord).rgb;\n\n if (i == 0.) {\n gl_FragColor = vec4(original, 1.0);\n return;\n }\n vec3 color = bilateral(vTextureCoord).rgb;\n vec4 c = texture2D(faceMask, vTextureCoord);\n \n vec3 res = color * i + original * (1. - i);\n gl_FragColor = vec4(res.rgb, 1.0);\n return;\n \n }"},faceReshape:{fragment:"precision highp float;\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform int width;\nuniform int height;\nuniform int enable;\n\nuniform vec2 left_eye_center;\nuniform vec2 right_eye_center;\nuniform vec2 nose_tip;\nuniform vec2 contour_chin;\n\nuniform vec2 nose_bridge5;\nuniform vec2 contour_left4;\nuniform vec2 contour_left9;\nuniform vec2 contour_right4;\nuniform vec2 contour_right9;\nuniform vec2 contour_left10;\nuniform vec2 contour_right10;\n// 鼻子\nuniform vec2 nose_left1;\nuniform vec2 nose_left2;\nuniform vec2 nose_right1;\nuniform vec2 nose_right2;\nuniform vec2 nose_tip1;\nuniform vec2 nose_bottom;\n// 嘴唇\nuniform vec2 lip_top_left;\nuniform vec2 lip_top_left_target;\nuniform vec2 lip_top_right;\nuniform vec2 lip_top_right_target;\nuniform vec2 lip_bottom_left;\nuniform vec2 lip_bottom_left_target;\nuniform vec2 lip_bottom_right;\nuniform vec2 lip_bottom_right_target;\nuniform vec2 lip_top_center;\nuniform vec2 lip_top_center_target;\nuniform vec2 lip_bottom_center;\nuniform vec2 lip_bottom_center_target;\nuniform vec2 lip_inner_top;\nuniform vec2 lip_inner_bottom;\n// 额头\nuniform vec2 forehead_top_center;\nuniform vec2 eyebrow_center;\nuniform vec2 forehead_left;\nuniform vec2 left_eyebrow_center;\nuniform vec2 forehead_right;\nuniform vec2 right_eyebrow_center;\n// 眼睛\nuniform vec2 right_eye_top;\nuniform vec2 left_eye_top;\nuniform vec2 right_eye_bottom;\nuniform vec2 left_eye_bottom;\n// 瘦颧骨\nuniform vec2 contour_left3;\nuniform vec2 contour_right3;\nuniform vec2 nose_bridge6;\n\nuniform vec2 nose_bridge4;\nuniform vec2 nose_bridge3;\nuniform vec2 nose_bridge2;\nuniform vec2 nose_bridge1;\n\nuniform vec2 mouth_lower_lip_bottom;\n\nuniform vec2 chin_left;\nuniform vec2 chin_right;\n\nuniform float cheekbone;\nuniform float lift; // 窄脸\nuniform float shave; // 下颌骨\nuniform float eye; // 大眼\nuniform float chin; // 下巴\nuniform float nose; // 鼻子\n// uniform float noseBridge;\nuniform float lip; // 嘴唇\nuniform float forehead; // 额头\nuniform float eyeBrightness; // 亮眼\nuniform float head; // 小头\n\n// 曲线形变处理\nvec2 curveWarp(vec2 textureCoord, vec2 originPosition, vec2 targetPosition, float radius)\n{\n vec2 offset = vec2(0.0);\n vec2 result = vec2(0.0);\n\n vec2 direction = targetPosition - originPosition;\n\n float infect = distance(textureCoord, originPosition)/radius;\n\n infect = 1.0 - infect;\n infect = clamp(infect, 0.0, 1.0);\n offset = direction * infect;\n\n result = textureCoord - offset;\n\n return result;\n}\n// usm\nvec4 gaussianBlur(vec2 uv, float size) {\n const float Pi = 6.28318530718; // Pi*2\n \n // GAUSSIAN BLUR SETTINGS {{{\n const float Directions = 16.0; // BLUR DIRECTIONS (Default 16.0 - More is better but slower)\n const float Quality = 4.0; // BLUR QUALITY (Default 4.0 - More is better but slower)\n float Size = size; // BLUR SIZE (Radius)\n // GAUSSIAN BLUR SETTINGS }}}\n \n vec2 Radius = Size/vec2(float(width), float(height));\n \n // Pixel colour\n vec4 Color = texture2D(uSampler, uv);\n \n // Blur calculations\n for( float d=0.0; d<Pi; d+=Pi/Directions)\n {\n for(float i=1.0/Quality; i<=1.0; i+=1.0/Quality)\n {\n Color += texture2D( uSampler, uv+vec2(cos(d),sin(d))*Radius*i);\n }\n }\n \n // Output to screen\n Color /= Quality * Directions;\n return Color;\n}\nvec4 usm(vec2 vTextureCoord, float factor) {\n vec4 originColor = texture2D(uSampler, vTextureCoord);\n // if (factor == 0.) {\n // return originColor;\n // }\n vec4 gaussianColor = gaussianBlur(vTextureCoord, 3.0);\n return gaussianColor * -factor + originColor * (1.0 + factor);\n}\n\n\n// 大眼处理\nvec2 enlargeEye(vec2 currentCoordinate, vec2 circleCenter, float radius, float intensity)\n{\n // todo:改成椭圆形的放大\n float currentDistance = distance(currentCoordinate, circleCenter);\n float weight = currentDistance / radius;\n weight = 1.0 - intensity * (1.0 - weight * weight);\n weight = clamp(weight, 0.0, 1.0);\n currentCoordinate = circleCenter + (currentCoordinate - circleCenter) * weight;\n\n return currentCoordinate;\n}\nvec2 enlargeEyeEllipse(vec2 currentCoordinate, vec2 eyeCenter, float majorRadius, float minorRadius, float intensity) {\n float currentDistance = distance(currentCoordinate, eyeCenter);\n\n float cosa = (currentCoordinate.x - eyeCenter.x) / currentDistance;\n float sina = (currentCoordinate.y - eyeCenter.y) / currentDistance;\n float m = pow(majorRadius * majorRadius *cosa*cosa + minorRadius * minorRadius * sina * sina, 0.5);\n\n float weight = currentDistance / m;\n weight = 1.0 - intensity * (1.0 - weight * weight);\n weight = clamp(weight, 0.0, 1.0);\n currentCoordinate = eyeCenter + (currentCoordinate - eyeCenter) * weight;\n\n return currentCoordinate;\n}\n// 瘦脸\nvec2 faceLift(vec2 currentCoordinate, float faceLength)\n{\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float faceLiftScale = lift * 0.06;\n float radius = faceLength * 0.5;\n\n currentPoint = contour_left4;\n destPoint = currentPoint + (nose_bridge5 - currentPoint) * faceLiftScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = contour_right4;\n destPoint = currentPoint + (nose_bridge5 - currentPoint) * faceLiftScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n radius = radius * 0.8;\n currentPoint = contour_left9;\n destPoint = currentPoint + (nose_tip - currentPoint) * (faceLiftScale * 0.6);\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = contour_right9;\n destPoint = currentPoint + (nose_tip - currentPoint) * (faceLiftScale * 0.6);\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n}\n// 鼻子\nvec2 noseShave(vec2 currentCoordinate, float faceLength) {\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float scale = nose * 0.2;\n float radius = faceLength * 0.5;\n\n currentPoint = nose_left1; // 102\n destPoint = currentPoint + (nose_tip1 - currentPoint) * scale; // nose_tip1:1\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = nose_left2; // 97\n destPoint = currentPoint + (nose_bottom - currentPoint) * scale; //nose_bottom: 2\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n\n currentPoint = nose_right1; // 331\n destPoint = currentPoint + (nose_tip1 - currentPoint) * scale; // nose_tip1:1\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = nose_right2; // 326\n destPoint = currentPoint + (nose_bottom - currentPoint) * scale; //nose_bottom: 2\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n}\n// 嘴唇\nvec2 handleLip(vec2 currentCoordinate, float faceLength) {\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float scale = lip * 0.1;\n\n vec2 circleCenter = (lip_inner_top + lip_inner_bottom) / 2.0;\n // 当前点的距离\n float currentDistance = distance(currentCoordinate, circleCenter);\n\n // float radius = distance(lip_top_right, lip_top_left) * 0.6;\n // float radius = distance(lip_top_right, lip_top_left) * 0.6;\n float radiusy = distance(lip_inner_top, circleCenter) * 2.0;\n float radiusx = distance(lip_top_right, lip_top_left) / 2.0 * 2.0;\n float cosa = (currentCoordinate.x - circleCenter.x) / currentDistance;\n float sina = (currentCoordinate.y - circleCenter.y) / currentDistance;\n float m = pow(radiusx * radiusx*cosa*cosa + radiusy * radiusy * sina * sina, 0.5);\n\n \n float weight = currentDistance/m;\n\n weight = 1.0 - abs(scale) * (1.0 - weight);\n weight = clamp(weight, 0.0, 1.0);\n\n // 处理是放大还是缩小\n float neg = step(0.0,lip) * 2.0 -1.0;\n weight = pow(weight, neg);\n currentCoordinate = circleCenter + (currentCoordinate - circleCenter) * weight;\n \n return currentCoordinate;\n\n}\n// 发际线\nvec2 handleForehead(vec2 currentCoordinate, float faceLength) {\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float scale = forehead * 0.15;\n float radius = faceLength * 0.7;\n\n currentPoint = forehead_top_center + forehead_top_center - eyebrow_center; // 10\n destPoint = currentPoint + (eyebrow_center - currentPoint) * scale; // eyebrow_center:9\n destPoint.y = clamp(destPoint.y, 0.0, float(height));\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = forehead_left + forehead_left - left_eyebrow_center; // 67\n destPoint = currentPoint + (left_eyebrow_center - currentPoint) * scale; // left_eyebrow_center:66\n destPoint.y = clamp(destPoint.y, 0.0, float(height));\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = forehead_right + forehead_right - right_eyebrow_center; // 297\n destPoint = currentPoint + (right_eyebrow_center - currentPoint) * scale; // right_eyebrow_center:296\n destPoint.y = clamp(destPoint.y, 0.0, float(height));\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n\n\n return coordinate;\n\n}\n// 削脸\nvec2 faceShave(vec2 currentCoordinate, float faceLength)\n{\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float faceShaveScale = shave * 0.09;\n float radius = faceLength * 1.0;\n\n // 下巴中心\n vec2 chinCenter = (contour_chin + mouth_lower_lip_bottom) * 0.5;\n currentPoint = contour_left10;\n destPoint = currentPoint + (chinCenter - currentPoint) * faceShaveScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = contour_right10;\n destPoint = currentPoint + (chinCenter - currentPoint) * faceShaveScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n}\n// 曲线形变处理\nvec2 curveWarpVertical(vec2 textureCoord, vec2 originPosition, vec2 targetPosition, float xRadius, float yRadius)\n{\n vec2 offset = vec2(0.0);\n vec2 result = vec2(0.0);\n\n vec2 direction = targetPosition - originPosition;\n\n float infect = (textureCoord.x - originPosition.x) * (textureCoord.x - originPosition.x) / (xRadius * xRadius) + \n (textureCoord.y - originPosition.y) * (textureCoord.y - originPosition.y) / (yRadius * yRadius);\n\n infect = 1.0 - infect;\n infect = clamp(infect, 0.0, 1.0);\n offset = direction * infect;\n\n result = textureCoord - offset;\n\n return result;\n}\n// 处理下巴\nvec2 chinChange(vec2 currentCoordinate, float faceLength)\n{\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float chinScale = -chin * 0.4;\n float radius = faceLength * 0.3;\n vec2 chinCenter = contour_chin + (mouth_lower_lip_bottom - contour_chin) * 0.2;\n // 下巴尖\n currentPoint = contour_chin;\n destPoint = currentPoint + (chinCenter - currentPoint) * chinScale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n // 下巴尖左右各取一个点平滑下巴\n float r = 0.3 - 0.1 * step(0.0,chin);\n currentPoint = chin_left;\n destPoint = currentPoint + (chinCenter - currentPoint) * chinScale * r;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = chin_right;\n destPoint = currentPoint + (chinCenter - currentPoint) * chinScale * r;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n}\n\nvec2 scaleHead(vec2 currentCoordinate) {\n vec2 coordinate = currentCoordinate;\n float headRadius = distance(contour_chin, nose_bridge5) * 1.8;\n float isWithin = 1.0-step(headRadius, distance(currentCoordinate, nose_bridge5));\n // if (distance(currentCoordinate, nose_bridge5) <= headRadius) {\n float weight = isWithin * (1.0 - distance(currentCoordinate, nose_bridge5) / headRadius);\n \n coordinate = nose_bridge5 + (coordinate - nose_bridge5) * (1.0+weight * 0.12*head);\n // }\n \n \n return coordinate;\n}\n// 颧骨\nvec2 handleCheekbone(vec2 currentCoordinate, float faceLength) {\n vec2 coordinate = currentCoordinate;\n vec2 currentPoint = vec2(0.0);\n vec2 destPoint = vec2(0.0);\n float scale = cheekbone * 0.05;\n float radius = faceLength * 0.45;\n\n currentPoint = (contour_left4 + contour_left3) * 0.5;\n destPoint = currentPoint + (nose_bridge6 - currentPoint) * scale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n currentPoint = (contour_right4 + contour_right3) * 0.5;\n destPoint = currentPoint + (nose_bridge6 - currentPoint) * scale;\n coordinate = curveWarp(coordinate, currentPoint, destPoint, radius);\n\n return coordinate;\n\n}\n\nvec4 eyeBright(vec2 currentCoordinate) {\n vec2 coordinate = currentCoordinate * vec2(float(width), float(height));\n\n float iris_size_size = distance(left_eye_top, left_eye_bottom);\n vec2 left_center = (left_eye_top + left_eye_bottom)/2.0;\n vec2 right_center = (right_eye_top + right_eye_bottom)/2.0;\n float flag = (1.0-step(iris_size_size, distance(coordinate, left_center))) + (1.0-step(iris_size_size, distance(coordinate, right_center)));\n // if ((distance(coordinate, left_center) <= iris_size_size || distance(coordinate, right_center) <= iris_size_size)) {\n return usm(currentCoordinate, flag * clamp(eyeBrightness,0.0,1.0));\n // return;\n // }\n // gl_FragColor = texture2D(uSampler, currentCoordinate);\n}\n\nvoid main()\n{\n vec2 coordinate = vTextureCoord.xy;\n \n // 禁用美型处理或者鼻子不在图像中,则直接绘制\n float enableFlag = step(1.0, float(enable)) * (step(0.03, nose_tip.x / float(width)) + step(0.03, nose_tip.y / float(height)));\n enableFlag = clamp(enableFlag, 0.0, 1.0);\n // if (enable == 0 || ((nose_tip.x / float(width) <= 0.03) || (nose_tip.y / float(height)) <= 0.03)) {\n vec4 color = texture2D(uSampler, coordinate);\n\n // gl_FragColor = color;\n // return;\n // }\n \n \n // 将坐标转成图像大小,这里是为了方便计算\n coordinate = vTextureCoord * vec2(float(width), float(height));\n\n // 两个瞳孔的距离\n float eyeDistance = distance(left_eye_center, right_eye_center); \n\n // 瘦脸\n coordinate = faceLift(coordinate, eyeDistance);\n\n // 削脸\n coordinate = faceShave(coordinate, eyeDistance);\n\n // 下巴\n coordinate = chinChange(coordinate, eyeDistance);\n\n // 鼻子\n coordinate = noseShave(coordinate,eyeDistance);\n\n // 嘴唇厚度\n coordinate = handleLip(coordinate,eyeDistance);\n\n // 发际线\n coordinate = handleForehead(coordinate,eyeDistance);\n\n // 颧骨\n coordinate = handleCheekbone(coordinate,eyeDistance);\n\n // 小头\n coordinate = scaleHead(coordinate);\n\n // 大眼\n float eyeEnlarge = eye * 0.16; // 放大倍数\n eyeEnlarge = clamp(eyeEnlarge, 0.0, 1.0);\n // if (eyeEnlarge > 0.0) {\n float radius = eyeDistance * 0.33; // 眼睛放大半径\n // float radius = eyeDistance * 0.33; // 眼睛放大半径\n // coordinate = enlargeEye(coordinate, left_eye_center + (right_eye_center - left_eye_center) * 0.05, radius, eyeEnlarge);\n // coordinate = enlargeEye(coordinate, right_eye_center + (left_eye_center - right_eye_center) * 0.05, radius, eyeEnlarge);\n coordinate = enlargeEyeEllipse(coordinate, left_eye_center + (right_eye_center - left_eye_center) * 0.05, eyeDistance * 0.45, eyeDistance * 0.25, eyeEnlarge);\n coordinate = enlargeEyeEllipse(coordinate, right_eye_center + (left_eye_center - right_eye_center) * 0.05, eyeDistance * 0.45, eyeDistance * 0.25, eyeEnlarge);\n // }\n\n // 转变回原来的纹理坐标系\n coordinate = coordinate / vec2(float(width), float(height));\n\n // 输出图像带上名目\n vec4 dealedColor = eyeBright(coordinate);\n\n // 输出图像\n // gl_FragColor = texture2D(uSampler, coordinate);\n gl_FragColor = mix(color, dealedColor, enableFlag);\n}"},maskBlack:{fragment:"\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(color.rgb,color.r);\n}\n"},usm:{fragment:"\n\nprecision lowp float;\nuniform sampler2D uSampler;\nvarying lowp vec2 vTextureCoord;\nuniform int width;\nuniform int height;\nuniform float intensity;\n\nvec4 gaussianBlur(vec2 uv, float size) {\n const float Pi = 6.28318530718; // Pi*2\n \n // GAUSSIAN BLUR SETTINGS {{{\n const float Directions = 16.0; // BLUR DIRECTIONS (Default 16.0 - More is better but slower)\n const float Quality = 4.0; // BLUR QUALITY (Default 4.0 - More is better but slower)\n float Size = size; // BLUR SIZE (Radius)\n // GAUSSIAN BLUR SETTINGS }}}\n \n vec2 Radius = Size/vec2(float(width), float(height));\n \n // Pixel colour\n vec4 Color = texture2D(uSampler, uv);\n \n // Blur calculations\n for( float d=0.0; d<Pi; d+=Pi/Directions)\n {\n for(float i=1.0/Quality; i<=1.0; i+=1.0/Quality)\n {\n Color += texture2D( uSampler, uv+vec2(cos(d),sin(d))*Radius*i);\n }\n }\n \n // Output to screen\n Color /= Quality * Directions;\n return Color;\n}\nvec4 usm(vec2 vTextureCoord, float factor) {\n vec4 originColor = texture2D(uSampler, vTextureCoord);\n // if (factor == 0.) {\n // return originColor;\n // }\n vec4 gaussianColor = gaussianBlur(vTextureCoord, 3.0);\n return gaussianColor * -factor + originColor * (1.0 + factor);\n}\n\n\nvoid main(void)\n{ \n\n gl_FragColor = usm(vTextureCoord, intensity);\n}\n"}},s=function(t){function e(e,n,r){var i=this,o=a[e];(i=t.call(this,o.vertex||"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat3 projectionMatrix;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",o.fragment)||this).options=r||{};var s=i.options.uniforms;if(s)for(var c in s)i.uniforms[c]=s[c];var l=n.width,u=n.height;return i.uniforms.width=l,i.uniforms.height=u,i.uniforms.iResolution=[l,u],i}return o(e,t),e.prototype.resize=function(t,e){this.uniforms.width=t,this.uniforms.height=e,this.uniforms.iResolution=[t,e]},e.prototype.setUniforms=function(t,e){if("object"==typeof t)for(var n in t)this.uniforms[n]=t[n];else this.uniforms[t]!==e&&(this.uniforms[t]=e)},e}(r.Filter)},1730:(t,e,n)=>{n.d(e,{a:()=>r,L:()=>i});var r;!function(t){t[t.NORMAL=0]="NORMAL",t[t.DARKEN=1]="DARKEN",t[t.MULTIPLY=2]="MULTIPLY",t[t.COLOR_BURN=3]="COLOR_BURN",t[t.LINEAR_BURN=4]="LINEAR_BURN",t[t.LIGHTEN=5]="LIGHTEN",t[t.SCREEN=6]="SCREEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.LINEAR_DODGE=8]="LINEAR_DODGE",t[t.OVERLAY=9]="OVERLAY",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.HARD_LIGHT=11]="HARD_LIGHT",t[t.VIVID_LIGHT=12]="VIVID_LIGHT",t[t.LINEAR_LIGHT=13]="LINEAR_LIGHT",t[t.PIN_LIGHT=14]="PIN_LIGHT",t[t.HARD_MIX=15]="HARD_MIX",t[t.DIFFERENCE=16]="DIFFERENCE",t[t.EXCLUSION=17]="EXCLUSION",t[t.SUBSTRACT=18]="SUBSTRACT"}(r||(r={}));var i=[{name:"普通",key:"Normal",shader:"vec3 blendNormal(vec3 base, vec3 blend) {\n\treturn blend;\n}\nfloat blendNormal(float base, float blend) {\n\treturn blend;\n}\n\nvec3 blendNormal(vec3 base, vec3 blend, float opacity) {\n\treturn (blendNormal(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n\n"},{name:"变暗",key:"Darken",shader:"float blendDarken(float base, float blend) {\n\treturn min(blend,base);\n}\n\nvec3 blendDarken(vec3 base, vec3 blend) {\n\treturn vec3(blendDarken(base.r,blend.r),blendDarken(base.g,blend.g),blendDarken(base.b,blend.b));\n}\n\nvec3 blendDarken(vec3 base, vec3 blend, float opacity) {\n\treturn (blendDarken(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"正片叠底",key:"Multiply",shader:"vec3 blendMultiply(vec3 base, vec3 blend) {\n\treturn base*blend;\n}\n\n\nvec3 blendMultiply(vec3 base, vec3 blend, float opacity) {\n\treturn (blendMultiply(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"颜色加深",key:"ColorBurn",shader:"float blendColorBurn(float base, float blend) {\n\treturn (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\n}\n\nvec3 blendColorBurn(vec3 base, vec3 blend) {\n\treturn vec3((base.r,blend.r),blendColorBurn(base.g,blend.g),blendColorBurn(base.b,blend.b));\n}\n\n\nvec3 blendColorBurn(vec3 base, vec3 blend, float opacity) {\n\treturn (blendColorBurn(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"线性加深",key:"LinearBurn",shader:"float blendLinearBurn(float base, float blend) {\n\t// Note : Same implementation as BlendSubtractf\n\treturn max(base+blend-1.0,0.0);\n}\n\n\nvec3 blendLinearBurn(vec3 base, vec3 blend) {\n\t// Note : Same implementation as BlendSubtract\n\treturn max(base+blend-vec3(1.0),vec3(0.0));\n}\n\nvec3 blendLinearBurn(vec3 base, vec3 blend, float opacity) {\n\treturn (blendLinearBurn(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"变亮",key:"Lighten",shader:"float blendLighten(float base, float blend) {\n\treturn max(blend,base);\n}\n\nvec3 blendLighten(vec3 base, vec3 blend) {\n\treturn vec3(blendLighten(base.r,blend.r),blendLighten(base.g,blend.g),blendLighten(base.b,blend.b));\n}\n\nvec3 blendLighten(vec3 base, vec3 blend, float opacity) {\n\treturn (blendLighten(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"滤色",key:"Screen",shader:"float blendScreen(float base, float blend) {\n\treturn 1.0-((1.0-base)*(1.0-blend));\n}\n\nvec3 blendScreen(vec3 base, vec3 blend) {\n\treturn vec3(blendScreen(base.r,blend.r),blendScreen(base.g,blend.g),blendScreen(base.b,blend.b));\n}\n\nvec3 blendScreen(vec3 base, vec3 blend, float opacity) {\n\treturn (blendScreen(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"颜色减淡",key:"ColorDodge",shader:"float blendColorDodge(float base, float blend) {\n\treturn (blend==1.0)?blend:min(base/(1.0-blend),1.0);\n}\n\nvec3 blendColorDodge(vec3 base, vec3 blend) {\n\treturn vec3(blendColorDodge(base.r,blend.r),blendColorDodge(base.g,blend.g),blendColorDodge(base.b,blend.b));\n}\n\nvec3 blendColorDodge(vec3 base, vec3 blend, float opacity) {\n\treturn (blendColorDodge(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"线性减淡",key:"LinearDodge",shader:"float blendLinearDodge(float base, float blend) {\n\t// Note : Same implementation as BlendAddf\n\treturn min(base+blend,1.0);\n}\n\nvec3 blendLinearDodge(vec3 base, vec3 blend) {\n\t// Note : Same implementation as BlendAdd\n\treturn min(base+blend,vec3(1.0));\n}\n\nvec3 blendLinearDodge(vec3 base, vec3 blend, float opacity) {\n\treturn (blendLinearDodge(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"叠加",key:"Overlay",shader:"float blendOverlay(float base, float blend) {\n\treturn base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));\n}\n\nvec3 blendOverlay(vec3 base, vec3 blend) {\n\treturn vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));\n}\n\nvec3 blendOverlay(vec3 base, vec3 blend, float opacity) {\n\treturn (blendOverlay(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"柔光",key:"SoftLight",shader:"float blendSoftLight(float base, float blend) {\n\treturn (blend<0.5)?(2.0*base*blend+base*base*(1.0-2.0*blend)):(sqrt(base)*(2.0*blend-1.0)+2.0*base*(1.0-blend));\n}\n\nvec3 blendSoftLight(vec3 base, vec3 blend) {\n\treturn vec3(blendSoftLight(base.r,blend.r),blendSoftLight(base.g,blend.g),blendSoftLight(base.b,blend.b));\n}\n\n\nvec3 blendSoftLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendSoftLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"强光",key:"HardLight",shader:"float blendOverlay(float base, float blend) {\n\treturn base<0.5?(2.0*base*blend):(1.0-2.0*(1.0-base)*(1.0-blend));\n}\nvec3 blendOverlay(vec3 base, vec3 blend) {\n\treturn vec3(blendOverlay(base.r,blend.r),blendOverlay(base.g,blend.g),blendOverlay(base.b,blend.b));\n}\nvec3 blendHardLight(vec3 base, vec3 blend) {\n\treturn blendOverlay(blend,base);\n}\n\nvec3 blendHardLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendHardLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"亮光",key:"VividLight",shader:"float blendColorDodge(float base, float blend) {\n\treturn (blend==1.0)?blend:min(base/(1.0-blend),1.0);\n}\n\n\nfloat blendColorBurn(float base, float blend) {\n\treturn (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\n}\n\n\n\n\nfloat blendVividLight(float base, float blend) {\n\treturn (blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));\n}\n\nvec3 blendVividLight(vec3 base, vec3 blend) {\n\treturn vec3(blendVividLight(base.r,blend.r),blendVividLight(base.g,blend.g),blendVividLight(base.b,blend.b));\n}\n\nvec3 blendVividLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendVividLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"线性光",key:"LinearLight",shader:"float blendLinearBurn(float base, float blend) {\n\t// Note : Same implementation as BlendSubtractf\n\treturn max(base+blend-1.0,0.0);\n}\n\nfloat blendLinearDodge(float base, float blend) {\n\t// Note : Same implementation as BlendAddf\n\treturn min(base+blend,1.0);\n}\n\n\nfloat blendLinearLight(float base, float blend) {\n\treturn blend<0.5?blendLinearBurn(base,(2.0*blend)):blendLinearDodge(base,(2.0*(blend-0.5)));\n}\n\nvec3 blendLinearLight(vec3 base, vec3 blend) {\n\treturn vec3(blendLinearLight(base.r,blend.r),blendLinearLight(base.g,blend.g),blendLinearLight(base.b,blend.b));\n}\n\nvec3 blendLinearLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendLinearLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"点光",key:"PinLight",shader:"float blendLighten(float base, float blend) {\n\treturn max(blend,base);\n}\nfloat blendDarken(float base, float blend) {\n\treturn min(blend,base);\n}\nfloat blendPinLight(float base, float blend) {\n\treturn (blend<0.5)?blendDarken(base,(2.0*blend)):blendLighten(base,(2.0*(blend-0.5)));\n}\n\nvec3 blendPinLight(vec3 base, vec3 blend) {\n\treturn vec3(blendPinLight(base.r,blend.r),blendPinLight(base.g,blend.g),blendPinLight(base.b,blend.b));\n}\n\nvec3 blendPinLight(vec3 base, vec3 blend, float opacity) {\n\treturn (blendPinLight(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"实色混合",key:"HardMix",shader:"float blendColorDodge(float base, float blend) {\n\treturn (blend==1.0)?blend:min(base/(1.0-blend),1.0);\n}\n\n\n\nfloat blendColorBurn(float base, float blend) {\n\treturn (blend==0.0)?blend:max((1.0-((1.0-base)/blend)),0.0);\n}\n\n\n\nfloat blendVividLight(float base, float blend) {\n\treturn (blend<0.5)?blendColorBurn(base,(2.0*blend)):blendColorDodge(base,(2.0*(blend-0.5)));\n}\n\n\n\nfloat blendHardMix(float base, float blend) {\n\treturn (blendVividLight(base,blend)<0.5)?0.0:1.0;\n}\n\nvec3 blendHardMix(vec3 base, vec3 blend) {\n\treturn vec3(blendHardMix(base.r,blend.r),blendHardMix(base.g,blend.g),blendHardMix(base.b,blend.b));\n}\n\nvec3 blendHardMix(vec3 base, vec3 blend, float opacity) {\n\treturn (blendHardMix(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"差值",key:"Difference",shader:"vec3 blendDifference(vec3 base, vec3 blend) {\n\treturn abs(base-blend);\n}\n\nvec3 blendDifference(vec3 base, vec3 blend, float opacity) {\n\treturn (blendDifference(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"排除",key:"Exclusion",shader:"vec3 blendExclusion(vec3 base, vec3 blend) {\n\treturn base+blend-2.0*base*blend;\n}\n\nvec3 blendExclusion(vec3 base, vec3 blend, float opacity) {\n\treturn (blendExclusion(base, blend) * opacity + base * (1.0 - opacity));\n}\n\n"},{name:"减去",key:"Substract",shader:"float blendSubstract(float base, float blend) {\n\treturn max(base+blend-1.0,0.0);\n}\n\nvec3 blendSubstract(vec3 base, vec3 blend) {\n\treturn max(base+blend-vec3(1.0),vec3(0.0));\n}\n\nvec3 blendSubstract(vec3 base, vec3 blend, float opacity) {\n\treturn (blendSubstract(base, blend) * opacity + blend * (1.0 - opacity));\n}\n\n"}]},9560:(t,e,n)=>{n.d(e,{Kg:()=>_,Lc:()=>l.L,Kj:()=>T,jy:()=>m});var r,i=n(9043),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.backdropUniformName=null,e._backdropActive=!1,e.clearColor=null,e}return o(e,t),e}(i.Filter),s=function(t){function e(e){var n=this,r="\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D uBackdrop;\nuniform vec2 uBackdrop_flipY;\nuniform float intensity;\n\n%UNIFORM_CODE%\n%FUNC_CODE%\nvoid main(void)\n{\n vec2 backdropCoord = vec2(vTextureCoord.x, vTextureCoord.y);\n // vec2 backdropCoord = vec2(vTextureCoord.x, uBackdrop_flipY.x + uBackdrop_flipY.y * vTextureCoord.y);\n vec4 b_src = texture2D(uSampler, vTextureCoord); // 精灵\n vec4 b_dest = texture2D(uBackdrop, backdropCoord); // 底图\n vec4 b_res = b_src;\n\n\n // gl_FragColor = b_dest;\n // return;\n\n if (b_src.a == 0.0) {\n gl_FragColor = vec4(0.0,0.0,0.0,0.0);\n return;\n }\n if (b_dest.a == 0.0) {\n gl_FragColor = vec4(0.0,0.0,0.0,0.0);\n // gl_FragColor = b_src;\n return;\n }\n \n \n b_res.rgb = blend%FUNC_NAME%(b_dest.rgb / b_dest.a, b_src.rgb / b_src.a, intensity);\n gl_FragColor = vec4(b_res.rgb * b_src.a,b_src.a);\n\n}";return r=(r=(r=r.replace("%UNIFORM_CODE%",e.uniformCode||"")).replace("%FUNC_CODE%",e.funcCode||"")).replace("%FUNC_NAME%",e.funcName||""),(n=t.call(this,void 0,r,e.uniforms)||this).backdropUniformName="uBackdrop",n}return o(e,t),e}(a),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=(function(t){function e(e,n){var r=n||{};return r.flipY||(r.flipY=new Float32Array([0,1])),t.call(this,"\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\nuniform vec2 flipY;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n vTextureCoord.y = flipY.x + flipY.y * vTextureCoord.y;\n}\n\n",e,r)||this}c(e,t)}(i.Filter),n(1730)),u=[],h=[];function d(t,e){return void 0===e&&(e=1),void 0===t?null:(u[t]||(u[t]=new s({funcCode:l.L[t].shader,funcName:l.L[t].key,uniforms:{intensity:e}})),u[t])}function f(t,e){return void 0===e&&(e=1),void 0===t?null:(h[t]||(h[t]=[d(t,e)]),h[t][0].uniforms.intensity=e,h[t])}var p=n(1961),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g(e,t),e.prototype._render=function(t){var e=this._texture;if(e&&e.valid){var n=f(this.blendMode_1);new Date;n&&(t.batch.flush(),!t.filter.pushWithCheck(this,n))||(+new Date,this.calculateVertices(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this),n&&(t.batch.flush(),t.filter.pop()))}},e}(p.j),y=n(2901),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(t){function e(e,n){void 0===n&&(n=!0);var r=t.call(this,e[0]instanceof i.Texture?e[0]:e[0].texture)||this;return r._textures=null,r._durations=null,r._autoUpdate=n,r._isConnectedToTicker=!1,r.animationSpeed=1,r.loop=!0,r.updateAnchor=!1,r.onComplete=null,r.onFrameChange=null,r.onLoop=null,r._currentTime=0,r._playing=!1,r._previousFrame=null,r.textures=e,r}return v(e,t),e.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(y.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1))},e.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(y.vB.shared.add(this.update,this,y.uF.HIGH),this._isConnectedToTicker=!0))},e.prototype.gotoAndStop=function(t){this.stop();var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()},e.prototype.gotoAndPlay=function(t){var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture(),this.play()},e.prototype.update=function(t){if(this._playing){var e=this.animationSpeed*t,n=this.currentFrame;if(null!==this._durations){var r=this._currentTime%1*this._durations[this.currentFrame];for(r+=e/60*1e3;r<0;)this._currentTime--,r+=this._durations[this.currentFrame];var i=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);r>=this._durations[this.currentFrame];)r-=this._durations[this.currentFrame]*i,this._currentTime+=i;this._currentTime+=r/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):n!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<n||this.animationSpeed<0&&this.currentFrame>n)&&this.onLoop(),this.updateTexture())}},e.prototype.updateTexture=function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},e.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},e.fromFrames=function(t){for(var n=[],r=0;r<t.length;++r)n.push(i.Texture.from(t[r]));return new e(n)},e.fromImages=function(t){for(var n=[],r=0;r<t.length;++r)n.push(i.Texture.from(t[r]));return new e(n)},Object.defineProperty(e.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textures",{get:function(){return this._textures},set:function(t){if(t[0]instanceof i.Texture)this._textures=t,this._durations=null;else{this._textures=[],this._durations=[];for(var e=0;e<t.length;e++)this._textures.push(t[e].texture),this._durations.push(t[e].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentFrame",{get:function(){var t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(y.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(y.vB.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),e}(m),b=n(8141),x=n(7659),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype._render=function(t){var n=f(this.blendMode_1,this.intensity);if(!n||(t.batch.flush(),t.filter.pushWithCheck(this,n))){var r=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===x.lg.TRIANGLES&&r.length<2*e.BATCHABLE_SIZE?this._renderToBatch(t):this._renderDefault(t),n&&(t.batch.flush(),t.filter.pop())}},e}(b.Kj),C=n(2064),S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}S(e,t),e.prototype._render=function(t){var e=this._texture;if(e&&e.valid){var n=f(this.blendMode_1);n&&(t.batch.flush(),!t.filter.pushWithCheck(this,n))||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this),n&&(t.batch.flush(),t.filter.pop()))}}}(C.o),n(1893));function k(t,e){void 0===e&&(e=0);var n=this.gl;this.currentLocation!==e&&(this.currentLocation=e,n.activeTexture(n.TEXTURE0+e)),this.bind(t,e)}var P=new E.y3;function R(t,e,n){void 0===n&&(n=!0);for(var r=this.renderer,o=this.defaultFilterStack,a=this.statePool.pop()||new i.FilterState,s=this.renderer.renderTexture,c=e[0].resolution,l=e[0].padding,u=e[0].autoFit,h=e[0].legacy,d=1;d<e.length;d++){var f=e[d];c=Math.min(c,f.resolution),l=this.useMaxPadding?Math.max(l,f.padding):l+f.padding,u=u&&f.autoFit,h=h||f.legacy}1===o.length&&(this.defaultFilterStack[0].renderTexture=s.current),o.push(a),a.resolution=c,a.legacy=h,a.target=t,a.sourceFrame.copyFrom(t.filterArea||t.getBounds(!0)),a.sourceFrame.pad(l);var p,g,m,y,v,_,b=!0;if(u){var x=this.tempRect.copyFrom(s.sourceFrame);r.projection.transform&&this.transformAABB(P.copyFrom(r.projection.transform).invert(),x),a.sourceFrame.fit(x)}else p=this.renderer.renderTexture.sourceFrame,g=a.sourceFrame,m=g.x+g.width,y=g.y+g.height,v=p.x+p.width,_=p.y+p.height,b=g.x>=p.x&&g.x<=v&&g.y>=p.y&&g.y<=_&&m>=p.x&&m<=v&&y>=p.y&&y<=_;if(n&&a.sourceFrame.width<=1&&a.sourceFrame.height<=1)return o.pop(),a.clear(),this.statePool.push(a),!1;this.roundFrame(a.sourceFrame,s.current?s.current.resolution:r.resolution,s.sourceFrame,s.destinationFrame,r.projection.transform),a.sourceFrame.ceil(c);new Date;if(b){var w=null,T=null;for(d=0;d<e.length;d++){var C=e[d].backdropUniformName;if(C){var S=e[d].uniforms;S[C+"_flipY"]||(S[C+"_flipY"]=new Float32Array([0,1]));var E=S[C+"_flipY"];null===w?(w=this.prepareBackdrop(a.sourceFrame,E),T=E):(E[0]=T[0],E[1]=T[1]),S[C]=w,w&&(e[d]._backdropActive=!0)}}w&&(c=a.resolution=w.resolution)}a.renderTexture=this.getOptimalFilterTexture(a.sourceFrame.width,a.sourceFrame.height,c),a.filters=e,a.destinationFrame.width=a.renderTexture.width,a.destinationFrame.height=a.renderTexture.height;var k=this.tempRect;k.x=0,k.y=0,k.width=a.sourceFrame.width,k.height=a.sourceFrame.height,a.renderTexture.filterFrame=a.sourceFrame,a.bindingSourceFrame.copyFrom(s.sourceFrame),a.bindingDestinationFrame.copyFrom(s.destinationFrame),a.transform=r.projection.transform,r.projection.transform=null,s.bind(a.renderTexture,a.sourceFrame,k);var R=e[e.length-1].clearColor;return R?r.framebuffer.clear(R[0],R[1],R[2],R[3]):r.framebuffer.clear(0,0,0,0),!0}function O(t,e){return this.pushWithCheck(t,e,!1)}function A(){var t=this.defaultFilterStack,e=t.pop(),n=e.filters;this.activeState=e;var r=this.globalUniforms.uniforms;r.outputFrame=e.sourceFrame,r.resolution=e.resolution;var i=r.inputSize,o=r.inputPixel,a=r.inputClamp;if(i[0]=e.destinationFrame.width,i[1]=e.destinationFrame.height,i[2]=1/i[0],i[3]=1/i[1],o[0]=i[0]*e.resolution,o[1]=i[1]*e.resolution,o[2]=1/o[0],o[3]=1/o[1],a[0]=.5*o[2],a[1]=.5*o[3],a[2]=e.sourceFrame.width*i[2]-.5*o[2],a[3]=e.sourceFrame.height*i[3]-.5*o[3],e.legacy){var s=r.filterArea;s[0]=e.destinationFrame.width,s[1]=e.destinationFrame.height,s[2]=e.sourceFrame.x,s[3]=e.sourceFrame.y,r.filterClamp=r.inputClamp}this.globalUniforms.update();var c=t[t.length-1];if(e.renderTexture.framebuffer.multisample>1&&this.renderer.framebuffer.blit(),1===n.length)n[0].apply(this,e.renderTexture,c.renderTexture,x.yl.BLEND,e),this.returnFilterTexture(e.renderTexture);else{var l=e.renderTexture,u=this.getOptimalFilterTexture(l.width,l.height,e.resolution);u.filterFrame=l.filterFrame;var h=0;for(h=0;h<n.length-1;++h){n[h].apply(this,l,u,x.yl.CLEAR,e);var d=l;l=u,u=d}n[h].apply(this,l,c.renderTexture,x.yl.BLEND,e),this.returnFilterTexture(l),this.returnFilterTexture(u)}var f=!1;for(h=0;h<n.length;h++)if(n[h]._backdropActive){var p=n[h].backdropUniformName;f||(this.returnFilterTexture(n[h].uniforms[p]),f=!0),n[h].uniforms[p]=null,n[h]._backdropActive=!1}e.clear(),this.statePool.push(e)}var D=!1;function I(t,e){var n=this.renderer,r=n.renderTexture.current,i=this.renderer.renderTexture.sourceFrame,o=n.projection.transform||E.y3.IDENTITY,a=1;if(r)a=r.baseTexture.resolution,e[1]=1;else{if(!n.useContextAlpha)return D||(D=!0,console.warn("pixi-picture: you are trying to use Blend Filter on main framebuffer! That wont work.")),null;a=n.resolution,e[1]=-1}var s=Math.round((t.x-i.x+o.tx)*a),c=t.y-i.y+o.ty,l=Math.round((e[1]<0?i.height-(c+t.height):c)*a),u=Math.round(t.width*a),h=Math.round(t.height*a),d=n.gl,f=this.getOptimalFilterTexture(u,h,1);e[1]<0&&(e[0]=h/f.height),f.filterFrame=i,f.setResolution(a),n.texture.bindForceLocation(f.baseTexture,0);new Date;return d.copyTexSubImage2D(d.TEXTURE_2D,0,0,0,s,l,u,h),f}i.TextureSystem.prototype.bindForceLocation=k,i.FilterSystem.prototype.push=O,i.FilterSystem.prototype.pushWithCheck=R,i.FilterSystem.prototype.pop=A,i.FilterSystem.prototype.prepareBackdrop=I},401:(t,e,n)=>{n.d(e,{$G:()=>v,Cb:()=>u,Eh:()=>p,F3:()=>b,Gb:()=>h,Jp:()=>l,Ss:()=>s,Ty:()=>d,c4:()=>o,c9:()=>r,em:()=>a,gz:()=>f,hJ:()=>g,iN:()=>_,jw:()=>c,rR:()=>y,ty:()=>m,xb:()=>i});var r="c30849f08b1b4841a759a7c7534a2f0c.bin";function i(){return"".concat("https://webar-static.tencent-cloud.com/ar-sdk/resources","/").concat("1.0.23-14","/").concat(r)}var o={POINTS_MAP:23,KEY_POINTS:24,LEFT_FACE_OVAL:8,LEFT_FACE_OVAL2:9,LEFT_FACE_OVAL3:10,RIGHT_FACE_OVAL:11,RIGHT_FACE_OVAL2:12,RIGHT_FACE_OVAL3:13,MOUTH_UPPER:19,MOUTH_LOWER:20,OUTER_REFERENCE:18,outer_offset_ratio:27,triangulation:25,auvs:26,LEFT_IRIS:7,RIGHT_IRIS:6,LEFT_EYE_ORDER:14,RIGHT_EYE_ORDER:15,lipsTriangulation:28,lipsAuvs:29,LIPS:5},a=0,s=0,c=356,l=[0,32],u="64,65,63,72,79,70,74",h="61,75,74,68",d="61,6c,6c,6f,77,46,75,6e,63,4c,69,73,74",f="54,69,6d,65,73,74,61,6d,70",p="57,65,62,54,69,6d,65,73,74,61,6d,70",g="4b,65,79,4c,69,73,74",m={bu:"62,65,61,75,74,69,66,79",mu:"65,66,66,65,63,74,5f,6d,61,6b,65,75,70",s:"65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,32,64",s3:"65,66,66,65,63,74,5f,73,74,69,63,6b,65,72,5f,33,64",f:"66,69,6c,74,65,72",bg:"62,61,63,6b,67,72,6f,75,6e,64",a:"61,76,61,74,61,72,5f,61,72",av:"61,76,61,74,61,72,5f,76,72"};function y(t){for(var e="",n=t.split(","),r=0;r<n.length;r++)e+=String.fromCharCode(parseInt(n[r],16));return e}function v(t){for(var e="",n=0;n<t.length;n++)""==e?e=t.charCodeAt(n).toString(16):e+=","+t.charCodeAt(n).toString(16);return e}var _="offscreen",b={defaultRoot:"miniprogram_npm/tencentcloud-webar"}},3044:(t,e,n)=>{n.d(e,{UI:()=>d,iV:()=>h,pF:()=>f});var r=n(6309),i=n(1206),o=n(4809),a=n(8586),s=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},c=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},u=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},h={};function d(){h={}}var f=function(){function t(){this._inited=!1,this._initing=!1}return t.prototype.getLoader=function(){return this._loader},t.prototype.getIndeLoader=function(){return this._initLoader()},t.prototype.readJSON=function(t,e){var n=this.encLoader.getFileFromCache(t,e).file;if(n&&n.length)return JSON.parse(o.T8(n))},t.prototype._initLoader=function(){var t=this,e=new i.Loader,n=this.getPreMiddleware();return e.pre(n),e.use((function(n,r){if("json"!==n.extension){var o=n.data;if(i.utils.TextureCache[n.name])r();else{var a=i.Texture.fromBuffer(o.file,o.width,o.height,{alphaMode:i.ALPHA_MODES.UNPACK});i.BaseTexture.addToCache(a.baseTexture,n.name),i.Texture.addToCache(a,n.name),r()}}else t.handleSpriteSheet(e,n,r)})),e},t.prototype.removeFromCache=function(t){this.encLoader&&this.encLoader.removeFromCache(t)},t.prototype.init=function(){return l(this,void 0,Promise,(function(){var t=this;return u(this,(function(e){return this._inited?[2,Promise.resolve()]:this._initing?[2,new Promise((function(e,n){var r,i=function(){t._inited?(e(),clearTimeout(r)):r=setTimeout(i,50)};r=setTimeout(i,50)}))]:(this._initing=!0,[2,new Promise((function(e,n){var i=new r.e({});i.init().then((function(){t._inited=!0,t._initing=!1,t.encLoader=i,t._loader=t._initLoader(),e()})).catch((function(t){}))}))])}))}))},t.prototype.preload=function(t){return l(this,void 0,void 0,(function(){var e;return u(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.encLoader.preload(t)];case 1:return n.sent(),[3,3];case 2:return e=n.sent(),[2,Promise.reject(e)];case 3:return[2]}}))}))},t.prototype.getPreMiddleware=function(){var t=this;return function(e,n){if(i&&i.utils.TextureCache&&e&&i.utils.TextureCache[e.name])n();else{var r=e.url,a=t.encLoader.getFileFromCache(r),s=a.zip,c=a.file,l=e.name;if(l.indexOf("https")>-1&&l.indexOf("|")>-1){var u=l.split("|")[0],h=t.encLoader.getFileFromCache(r,u);s=h.zip,c=h.file}if(/\.(json)$/i.test(r))return e.data=JSON.parse(o.T8(c)),e.complete(),void n();/\.(gif|jpe?g|tiff?|png|webp|bmp)$/i.test(r)?(e.data={file:c,width:s.__config[r]?s.__config[r].width:800,height:s.__config[r]?s.__config[r].height:800},e.complete(),n()):(e.data={file:c},e.complete(),n())}}},t.prototype.handleSpriteSheet=function(t,e,n){var r="".concat(e.name,"_image");if(e.data&&e.data.frames&&!t.resources[r]&&!i.utils.TextureCache[r]){var o={crossOrigin:e.crossOrigin,metadata:e.data.meta},a=e.data.meta.image,s=e.url.split("/");s.pop(),s.push(a),a=s.join("/");var c=this.getLoader();c.add(r,a,o,(function(t){var r=i.Texture.fromBuffer(t.data.file,t.data.width,t.data.height,{alphaMode:i.ALPHA_MODES.UNPACK}),o=new i.Spritesheet(r,e.data,e.url);o.parse((function(){e.spritesheet=o,e.textures=o.textures,h[e.name]=e,n()}))})),c.load((function(t,e){}))}else n()},t=s([a.e,c("design:paramtypes",[])],t)}()},6309:(t,e,n)=>{n.d(e,{e:()=>b});var r=n(4809),i=n(5127),o=n(8586),a=n(3553),s=n(6878);const c=function(){function t(){this.projectName="webar-db",this.objectStoreName="webar-object-store","undefined"!=typeof self&&self?this.window=self:"undefined"!=typeof window&&window&&(this.window=window)}return t.prototype.checkSupport=function(){var t=this.window;return!(void 0===t||!t||!t.indexedDB)},t.prototype.init=function(){var t=this;return new Promise((function(e,n){if(t.checkSupport()){if(t.db)return void e(t.db);var r=t.window.indexedDB.open(t.projectName,1);r.onsuccess=function(n){t.db=n.target.result,e(t)},r.onupgradeneeded=function(e){var n=e.target.result;n.objectStoreNames.contains(t.objectStoreName)||n.createObjectStore(t.objectStoreName)},r.onerror=function(t){n(t)}}else n()}))},t.prototype.getItem=function(t){var e=this;return new Promise((function(n,r){if(e.db){var i=e.db.transaction(e.objectStoreName).objectStore(e.objectStoreName).get(t);i.onsuccess=function(){return n(i.result)},i.onerror=function(){return r()}}else r()}))},t.prototype.setItem=function(t,e){var n=this;return new Promise((function(r,i){if(n.db){var o=n.db.transaction(n.objectStoreName,"readwrite").objectStore(n.objectStoreName).put(e,t);o.onsuccess=function(){return r(e)},o.onerror=function(){return i()}}else i()}))},t.prototype.removeItem=function(t){var e=this;return new Promise((function(n,r){if(e.db){var i=e.db.transaction(e.objectStoreName,"readwrite").objectStore(e.objectStoreName).delete(t);i.onsuccess=function(){return n(null)},i.onerror=function(){return r()}}else r()}))},t.prototype.keys=function(){var t=this;return new Promise((function(e,n){if(!t.db)return n();var r=t.db.transaction(t.objectStoreName).objectStore(t.objectStoreName).getAllKeys();r.onsuccess=function(){return e(r.result)},r.onerror=function(){return n()}}))},t.prototype.clear=function(){var t=this;return new Promise((function(e,n){if(!t.db)return n();var r=t.db.transaction(t.objectStoreName,"readwrite").objectStore(t.objectStoreName).clear();r.onsuccess=function(){return e(null)},r.onerror=function(){return n()}}))},t}();var l=n(401),u=n(6109),h=n(9984),d=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},f=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},g=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},m=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},v=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};var _=function(){function t(t){this.size=t,this.data=new Map}return t.prototype.put=function(t,e){if(u.D4.info("put",t),t.indexOf(l.c9)>-1&&(this.common_cache=e,this.common_cache_domain=t),this.data.has(t))return this.data.delete(t),void this.data.set(t,e);if(this.data.size>=this.size){var n=this.data.keys().next().value;this.data.delete(n)}this.data.set(t,e)},t.prototype.get=function(t){if(t.indexOf(l.c9)>-1)return this.common_cache;if(!this.data.has(t))return!1;var e=this.data.get(t);return this.data.delete(t),this.data.set(t,e),e},Object.defineProperty(t.prototype,"keys",{get:function(){return Array.from(this.data.keys()).concat([this.common_cache_domain])},enumerable:!1,configurable:!0}),t.prototype.delete=function(t){this.data.delete(t)},t.prototype.clear=function(){this.data.clear()},t}(),b=function(){function t(t){this._inited=!1,this._initing=!1,this._cache=new _(7),this._loadingMap={},t=t||{},this.config=t,this.arCacheStorage=new c}return t.prototype.init=function(){return p(this,void 0,Promise,(function(){var t=this;return g(this,(function(e){return this._inited?[2,Promise.resolve()]:this._initing?[2,new Promise((function(e,n){var r,i=function(){t._inited?(e(),clearTimeout(r)):r=setTimeout(i,50)};r=setTimeout(i,50)}))]:(this._initing=!0,this._c=new i.Y,[2,this._c.init().then((function(){t._inited=!0,t._initing=!1,setTimeout((function(){t.checkAndClearOldFileCache()}),9999)}))])}))}))},t.prototype.getSingletonWorker=function(){var t=this;return this.worker||(this.worker=new Worker,this.worker.onmessage=function(e){var n=e.data,i=n.p1,o=n.p2,a=n.length,s=(n.i,n.u),c=n.error;if(c)t._error=new Error(c.message);else{var l=new Uint8Array(a);l.set(i),l.set(o,i.length),t.setFileCache(s,l);var h=t._c,d=h.run(i,"");h.finish("");var f=new Uint8Array(a);f.set(d),f.set(o,d.length);var p=r.GZ(f);u.D4.info("preload finish:",s),t._setConfig(p).then((function(){t._cache.put(s,p),delete t._loadingMap[s]}))}}),this.worker},t.prototype.preload=function(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=1),p(this,void 0,Promise,(function(){var n,r,i=this;return g(this,(function(o){if(this._loadingMap[t])return[2,this.waitUntilPreload(t)];for(n in this._loadingMap[t]=!0,this._loadingMap)n!==t&&(this._loadingMap[n]=!1);return this._cache.get(t)?(delete this._loadingMap[t],[2,Promise.resolve()]):(r=a.Z.findId(t)||+new Date,[2,new Promise((function(n,o){return p(i,void 0,void 0,(function(){var i,o,a,c=this;return g(this,(function(l){switch(l.label){case 0:return[4,(0,h.pe)(r,t).catch((function(t){s.Nd.trigger("error",t)}))];case 1:return l.sent(),i=wx.getFileSystemManager(),o={},a="".concat(wx.env.USER_DATA_PATH,"/ar/").concat(r,".zip"),console.log("zip 处理",a),i.readZipEntry({filePath:a,entries:"all",success:function(a){var s=a.entries;for(var l in s)o[l]=new Uint8Array(s[l].data);c._cache.put(t,o),delete c._loadingMap[t],c._setConfig(o).then((function(){e||i.unlink({filePath:"".concat(wx.env.USER_DATA_PATH,"/ar/").concat(r,".bin"),success:function(){},fail:function(t){console.log("delete local cache fail",t)}}),n()}))},fail:function(t){console.log(t.errMsg)}}),[2]}}))}))}))])}))}))},t.prototype.getFileFromCache=function(t,e){var n=this._find(t,e);return{zip:n.c,file:n.f}},t.prototype.getGroupFromCache=function(t){return this._cache.get(t)},t.prototype._find=function(t,e){var n,r,i,o,a=this._cache,s=t;if(e){var c=a.get(e);return c&&(o=c[s]),{c,f:o}}var l=a.keys.reverse();try{for(var u=m(l),h=u.next();!h.done;h=u.next()){var d=h.value;if(o=(i=a.get(d))[s])break}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return{c:i,f:o}},t.prototype._setConfig=function(t){return p(this,void 0,Promise,(function(){return g(this,(function(e){return[2,new Promise((function(e){if(t.__config)e();else{var n=t["__config.json"];if(n){var i=JSON.parse(r.T8(n));t.__config=i,e()}else e()}}))]}))}))},t.prototype.waitUntilPreload=function(t){var e=this;return new Promise((function(n,r){var i=setInterval((function(){e._cache.get(t)&&(clearInterval(i),n())}),50)}))},t.prototype.loadScript=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return p(this,void 0,Promise,(function(){var n=this;return g(this,(function(i){return[2,new Promise((function(i,o){var a=n._cache.keys,s=t.split("/").pop();a.forEach((function(t){var o=n._cache.get(t),a=o[s];if(o[s]){var c=r.T8(a),l=new Function(""+c),u=l.call.apply(l,v([null],y(e),!1));return i(u)}}))}))]}))}))},t.prototype.hijackFetch=function(t,e,n){var r,i=this;return void 0===n&&(n=!1),e&&"string"==typeof e&&(r=e),new Promise((function(e){var o,a=i._cache.keys;if(o=n?t:t.split("/").pop(),r){var s=i._cache.get(r)[o];return s?e(s):e()}a.forEach((function(t){var n=i._cache.get(t)[o];if(n)return e(n)}))}))},t.prototype.removeFromCache=function(t){console.log("removeFromCache",t),this._cache.delete(t)},t.prototype.clearCache=function(){this._cache.clear(),this.worker&&(this.worker.terminate(),this.worker=null)},t.prototype.clearCacheTmp=function(t){var e,n;void 0===t&&(t=[]);try{for(var r=m(this._cache.keys),i=r.next();!i.done;i=r.next()){var o=i.value;-1===t.indexOf(o)&&this._cache.delete(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.fetchWithSubPackage=function(t,e){return p(this,void 0,void 0,(function(){var n,r,i,o,a,s;return g(this,(function(c){switch(c.label){case 0:if(!(e>1&&Blob.prototype.arrayBuffer))return[3,3];for(r=1048576,i=[],o=function(e){var n=e*r,o=n+r-1,a="bytes=".concat(n,"-").concat(o),s=new Promise((function(n,r){fetch("".concat(t,"?id=00").concat(e),{method:"GET",mode:"cors",headers:{range:a}}).then((function(t){return t.arrayBuffer()})).then((function(t){n(t)}))}));i.push(s)},a=0;a<e;a++)o(a);return[4,Promise.all(i)];case 1:return s=c.sent(),[4,new Blob(s).arrayBuffer()];case 2:return n=c.sent(),[3,6];case 3:return[4,fetch(t,{method:"GET",mode:"cors"}).catch((function(t){console.log("zy fetchWithSubPackage",t)}))];case 4:return[4,c.sent().arrayBuffer().catch((function(t){console.log("get arraybuffer error",t)}))];case 5:n=c.sent(),c.label=6;case 6:return[2,n]}}))}))},t.prototype.checkFileCacheBlackList=function(t){return!!{"effect.bin":!0}[t]},t.prototype.setFileCache=function(t,e){var n=this;try{this.arCacheStorage.checkSupport()&&this.arCacheStorage.init().then((function(){var r=t.split("/").pop();if(!n.checkFileCacheBlackList(r)){var i="".concat("1.0.23-14","/").concat(r);n.arCacheStorage.setItem(i,e)}}))}catch(t){}},t.prototype.fetchFromFileCache=function(t){var e=this;return new Promise((function(n,r){e.arCacheStorage.checkSupport()?e.arCacheStorage.init().then((function(){var r=t.split("/").pop(),i="".concat("1.0.23-14","/").concat(r);e.checkFileCacheBlackList(r)?n(null):e.arCacheStorage.getItem(i).then((function(t){n(t||null)}))})).catch((function(){n(null)})):n(null)}))},t.prototype.checkAndClearOldFileCache=function(){var t=this;this.arCacheStorage.checkSupport()&&this.arCacheStorage.init().then((function(){t.arCacheStorage.keys().then((function(e){if(e&&e.length)for(var n="".concat("1.0.23-14"),r=0;r<e.length;r++){var i=e[r];i&&i.indexOf(n)<0&&t.arCacheStorage.removeItem(i)}}))})).catch((function(){}))},t=d([o.e,f("design:paramtypes",[Object])],t)}()},337:(t,e,n)=>{n.d(e,{Z:()=>o});const r={"0001":"当前环境不支持","0002":"请先开启摄像头及麦克风权限","0003":"去设置","0004":"输入不合法","0005":"缺少输入, 请设置input或camera参数","0006":"输入图片不合法","0007":"无权访问此接口,请确认License版本信息","0008":"创建录制器失败","0009":"录制启动失败","0010":"录制器停止失败","0011":"小程序读取缓存失败","0012":"存储空间不足,前往设置-通用-存储空间,清除缓存","0013":"需要重新进入页面使授权生效","0014":"当前SDK版本过低,部分特效无法正确显示,请升级SDK版本","0015":"intensity 的值超出范围(0-1),默认为 1","0016":"输入不合法, 远程链接只支持输入图片类型","0018":"当前浏览器特性支持不足,可能会出现卡顿情况,请使用新版 Chrome/Safari/微信体验","0019":"当前浏览器不支持,请使用新版 Chrome/Safari/微信体验","0020":"当前浏览器不支持,若Chrome请开启浏览器硬件加速","0021":"缺少鉴权参数licenseKey","0022":"缺少鉴权参数appId","0023":"输入不合法, 请传input或camera参数","0024":"无权访问此接口,请确认License版本信息","0025":"基础库加载失败","0026":"上下文丢失,请重新初始化","0027":"渲染耗时大,请尝试减小分辨率或刷新页面","0028":"未捕获异常","0029":"没有摄像头权限,请到设置-隐私中开启相关权限","0030":"调起用户摄像头失败","0031":"摄像头或麦克风中断,请手动刷新页面","0032":"分辨率变化导致特效丢失,请重新设置","0033":"特效加载失败","0034":"无法解析的数据","0035":"已授权,仍无法访问摄像头或麦克风设备","0036":"没有麦克风权限,请到设置-隐私中开启相关权限",1001:"美妆",1002:"贴纸",1003:"滤镜",1004:"3D特效",1005:"VR人像",1006:"头像"},i={"0001":"Unsupported environment","0002":"Please enable the camera and microphone permissions","0003":"Setting","0004":"Invalid input","0005":'Require "input" or "camera" paramate',"0006":"Invalid image input","0007":"API not accessible, Please confirm the License version","0008":"Failed to create the recorder","0009":"Failed to start recording","0010":"Failed to stop the recorder","0011":"Failed to read WX file cache data","0012":"Out of storage space, go to Settings - General-Storage Space and clear the cache","0013":"Need to enter the page again for the license to take effect","0014":"SDK version is too old, some features are not available. Please update the SDK","0015":'Require a valid value (0-1) for "intensity" (the default value is 1)',"0016":'Invalid "input" value, Only the image type can be entered for remote links',"0018":"This browser offers limited support for the SDK, and stutter may occur. Please use the latest version of Chrome, Safari, or WeChat","0019":"This browser is not supported. Please use the latest version of Chrome, Safari, or WeChat","0020":"This browser is not supported. If Chrome is used, enable hardware acceleration for the browser","0021":'The authentication parameter "licenseKey" is missing',"0022":'The authentication parameter "appId" is missing',"0023":'Require "input" or "camera" parameter',"0024":"The interface is not accessible. Please check the License version","0025":"Failed to load the basic libraries","0026":"The context is lost. Please reinitialize the SDK again","0027":"The rendering took too long. Try reducing the resolution or refreshing the page","0028":"No errors captured","0029":"This browser does not have camera permission, please go to Settings - Privacy turn Camera on","0030":"Failed to start the camera","0031":"The camera or microphone is disconnected. Please refresh","0032":"Resolution changes cause effects to be lost, Please reset","0033":"Failed to load the effects","0034":"Unrecognized response data","0035":"Authorized, but still unable to access camera or microphone device","0036":"This browser does not have microphone permission, please go to Settings - Privacy turn Microphone on",1001:"Makeup",1002:"Sticker",1003:"Filter",1004:"3D Effect",1005:"VR",1006:"AR"};const o=new(function(){function t(t){void 0===t&&(t="zh"),this._lang=t}return Object.defineProperty(t.prototype,"lang",{get:function(){return this._lang},set:function(t){this._lang=t},enumerable:!1,configurable:!0}),t.prototype.t=function(t){return"zh"===this._lang?r[t]:i[t]},t}())},1084:(t,e,n)=>{n.d(e,{M:()=>o,o:()=>a});var r=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},i=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};function o(t){return function(e,n,o){var a=o.value;return"AsyncFunction"===a.constructor.name?o.value=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,a.apply(this,e).catch((function(e){console.log("".concat(t,".").concat(n," call failed"),e)}))];case 1:return[2,r.sent()]}}))}))}:o.value=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{var i=a.apply(this,e);return i}catch(e){console.log("".concat(t,".").concat(n," call failed"),e)}},o}}function a(t){return function(e,n,o){var a=o.value;return o.value=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,a.apply(this,e).catch((function(e){console.log("".concat(t,".").concat(n," call failed"),e)}))];case 1:return[2,r.sent()]}}))}))},o}}},5127:(t,e,n)=>{n.d(e,{Y:()=>p});var r=n(337),i=n(6878),o=n(8586),a=n(401),s=n(4809),c=n(6879),l=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},u=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},d=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};"undefined"==typeof WXWebAssembly&&i.Nd.trigger("error",{code:c.U.ENVIRAONMENT_NOT_COMPATIBLE,message:r.Z.t("0019")});var f=WXWebAssembly,p=function(){function t(){this._inited=!1,this._initing=!1}return t.prototype.init=function(){return h(this,void 0,Promise,(function(){var t=this;return d(this,(function(e){return this._inited?[2,Promise.resolve()]:this._initing?[2,new Promise((function(e,n){var r,i=function(){t._inited?(e(),clearTimeout(r)):r=setTimeout(i,100)};r=setTimeout(i,100)}))]:(this._initing=!0,[2,new Promise((function(e,n){f.instantiate("/".concat(a.F3.defaultRoot,"/0.wasm.br"),{}).then((function(n){t._wasm=n.instance.exports,t._initWasmWrapper(),t._inited=!0,t._initing=!1,e()})).catch((function(t){console.log("wasm instantiate error",t)}))}))])}))}))},t.prototype._initWasmWrapper=function(){var t,e=this._wasm,n=e.memory,r=e.__wbindgen_malloc,i=e.__wbindgen_realloc;function o(){return null!=t&&t.buffer===n.buffer||(t=new Uint8Array(n.buffer)),t}var c,l,u=0;function h(t){for(var e=t.length,n=r(e),a=o(),s=0;s<e;s++){var l=t.charCodeAt(s);if(l>127)break;a[n+s]=l}if(s!==e){0!==s&&(t=t.slice(s)),n=i(n,e,e=s+3*t.length);var h=o().subarray(n+s,n+e);s+=c(t,h).written}return u=s,n}function d(){return null!=l&&l.buffer===n.buffer||(l=new Int32Array(n.buffer)),l}function f(t,e){return s.T8(o().subarray(t,t+e))}c=function(t,e){var n,r,i=new Array;n=t.length;for(var o=0;o<n;o++)(r=t.charCodeAt(o))>=65536&&r<=1114111?(i.push(r>>18&7|240),i.push(r>>12&63|128),i.push(r>>6&63|128),i.push(63&r|128)):r>=2048&&r<=65535?(i.push(r>>12&15|224),i.push(r>>6&63|128),i.push(63&r|128)):r>=128&&r<=2047?(i.push(r>>6&31|192),i.push(63&r|128)):i.push(255&r);var a=new Int8Array(i.length);for(var o in i)a[o]=i[o];return e.set(a),{read:t.length,written:a.length}},this.run=function(t,n){var i,s,c=e[(0,a.rR)(a.Cb)],l=e.__wbindgen_free,f=(s=r(1*(i=t).length),o().set(i,s/1),u=i.length,s),p=u;try{c(8,f,p,h(n),u);var g=d(),m=function(t,e){return o().subarray(t/1,t/1+e)}(g[2],g[3]).slice();return l(g[2],1*g[3]),m}finally{t.set(o().subarray(f/1,f/1+p)),l(f,1*p)}},this.finish=function(t){(0,e.finish)(h(t),u)},this.run2=function(t,n,r){var i=e.__wbindgen_free,o=(e[(0,a.rR)(a.Gb)](8,h(t),u,h(n),u,h(r),u),d()),s=f(o[2],o[3]).slice();return i(o[2],1*o[3]),s},this.a_de=function(t){var n=e.__wbindgen_free,r=(e.a_de(8,h(t),u),d()),i=f(r[2],r[3]).slice();return n(r[2],1*r[3]),i},this.a_en=function(t){var n=e.__wbindgen_free,r=(e.a_en(8,h(t),u),d()),i=f(r[2],r[3]).slice();return n(r[2],1*r[3]),i}},t=l([o.e,u("design:paramtypes",[])],t)}()},6879:(t,e,n)=>{n.d(e,{U:()=>r});var r={ENVIRAONMENT_NOT_COMPATIBLE:10000001,ENVIRAONMENT_NOT_FAST:10000006,WEBGL_CONTEXT_LOST:10000002,RENDER_SLOW:10000003,INPUT_ERROR:10000005,PRELOAD_EFFECT_ERROR:10000101,SET_EFFECT_ERROR:10001101,SET_FILTER_ERROR:10001102,SET_INTENSITY_ERROR:10001103,SDK_DISABLED:10001104,INVALID_EFFECT:10001105,GET_CAMERA_ERROR:10001201,MEDIA_INTERRUPT_ERROR:10001202,GET_CAMERA_NOT_ALLOWED:10001203,GET_MEDIA_NOT_FOUND:10001204,GET_MICROPHONE_NOT_ALLOWED:10001205,MEDIA_SIZE_ERROR:10001206,EFFECT_LOAD_ERROR:10003001,CORE_LOAD_ERROR:10003002,AUTH_NEED_RELOAD_PAGE:10004001,AUTH_LICENSEKEY_MISS:20002001,AUTH_APPID_MISS:20002001,AUTH_FAIL:20001001,REQUEST_FAIL:20001002,AUTH_API_FAIL:20001003,SIGNATURE_TIMEOUT:20001004,AUTHORIZE_TIMEOUT:20001005,START_REACORD_FAIL:30000001,STOP_REACORD_FAIL:30000002,READ_FILE_CACHE_FAIL:30000003,REQUEST_FILE_FAIL:30000004,UNCAUGHT_ERROR:4e7,SDK_VERSION_LOW_ERROR:40000001,SEGMENTATION_NOT_AVAILABLE:40000002,INPUT_NODE_RESIZE:50000001,RESIZE_EFFECT_LOST:50000002}},6878:(t,e,n)=>{n.d(e,{E5:()=>o,Nd:()=>r,Q4:()=>i,SZ:()=>a});var r,i=function(){function t(){this._events={}}return t.prototype.clear=function(){this._events={}},t.prototype.on=function(t,e){return this._events[t]||(this._events[t]=[]),this._events[t].push(e)-1},t.prototype.trigger=function(t,e){var n=this;if("error"!==t){var r=this._events[t];r&&r.length&&r.forEach((function(t){t(e)}))}else setTimeout((function(r){var i=n._events[t];i&&i.length&&i.forEach((function(t){t(e)}))}),100)},t.prototype.off=function(t,e,n){var r=this._events[t];if(r&&r.length)if(void 0!==n)r.splice(n,1);else{var i=r.findIndex((function(t){return t===e}));i>-1&&r.splice(i,1)}},t.prototype.once=function(t,e){var n,r=this;this._events[t]||(this._events[t]=[]);var i=function(o){e(o),r.off(t,i,n)};n=this.on(t,i)},t}(),o=function(){return console.log("获取 EventBus"),r||(r=new i),r},a=function(){console.log("清理 EventBus"),r=null}},6109:(t,e,n)=>{n.d(e,{D4:()=>s,bH:()=>c,b_:()=>a,jl:()=>o});var r=n(5901),i=n.n(r);i().useDefaults();function o(t){return i().get(t)}var a=o("set-effect"),s=o("resource-load"),c=o("debug")},1347:(t,e,n)=>{function r(t,e){t.z=t.z||0,e.z=e.z||0;var n=Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)+Math.pow(t.z-e.z,2);return Math.pow(n,.5)}function i(t,e){return t.z=t.z||0,e.z=e.z||0,{x:(t.x+e.x)/2,y:(t.y+e.y)/2,z:(t.z+e.z)/2}}n.d(e,{Sp:()=>r,qg:()=>i})},8586:(t,e,n)=>{n.d(e,{e:()=>i});var r=Symbol(),i=function(t){return new Proxy(t,{construct:function(t,e,n){return t.prototype!==n.prototype?Reflect.construct(t,e,n):(t[r]||(t[r]=Reflect.construct(t,e,n)),t[r])}})}},617:(t,e,n)=>{n.d(e,{M:()=>N});var r={};n.r(r),n.d(r,{FC:()=>l,CV:()=>s,rp:()=>c,HN:()=>T,X2:()=>g,Ej:()=>w,Nj:()=>f,Bb:()=>d,dE:()=>u,oC:()=>x,MX:()=>b,aj:()=>y,G4:()=>v,m1:()=>_,sP:()=>o,dO:()=>a,bb:()=>m,Ed:()=>p,he:()=>h,aV:()=>k,AE:()=>S,aW:()=>O,zk:()=>R,Op:()=>P,Cg:()=>C,Fx:()=>E,mw:()=>i});const i={au:"/r",ti:"/m",ef:"/t",ae:"/c"},o=[61,62,76,63,58,59,75,60],a=[42,71,70,69,68,41,40,39,38],s=[52,57,73,56,55,54,72,53],c=[33,64,65,66,67,34,35,36,37],l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,121,122,118,116,115,114,110,111,112,113,117,120,119],u=[84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,106,107,108,109],h=[474,475,476,477],d=[469,470,471,472],f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],p=[332,284,251,389,356,454,323,361,288,397,365,379,378],g=[52,57,73,56,55,54,72,53],m=[61,62,76,63,58,59,75,60],y=[80,82,47,48,49,50,51,81,83],v=[43,44,45,46],_=[[{y:120,x:0},{y:112,x:112},110,{y:115,x:115},{y:122,x:32}],[{y:110,x:122},{y:121,x:121},{y:28,x:32},{y:24,x:25},{y:16,x:21}],[{y:19,x:21},16,{y:13,x:11}],[{y:110,x:120},{y:119,x:119},{y:4,x:0},{y:8,x:7},{y:16,x:11}]],b=[96,106,97,98,99,108,100],x=[96,107,103,102,101,109,100],w=[52,53,72,54,55],T=[52,57,73,56,55],C={contour_left1:0,contour_left2:0,contour_left3:0,contour_left4:2,contour_left5:0,contour_left6:0,contour_left7:0,contour_left8:0,contour_left9:9,contour_left10:9,contour_left11:0,contour_left12:0,contour_right1:0,contour_right2:0,contour_right3:0,contour_right4:30,contour_right5:0,contour_right6:0,contour_right7:0,contour_right8:0,contour_right9:23,contour_right10:23,contour_right11:0,contour_right12:0,contour_left_limit_point:0,contour_right_limit_point:0,contour_chin:16,mouth_lower_lip_bottom:43,left_eye_left_corner:52,left_eye_right_corner:55,left_eye_top:72,left_eye_bottom:73,left_eye_center:74,right_eye_left_corner:58,right_eye_right_corner:61,right_eye_top:75,right_eye_bottom:76,right_eye_center:77,nose_bridge1:0,nose_bridge2:0,nose_bridge3:0,nose_bridge4:43,nose_bridge5:44,nose_bridge6:45,nose_bridge7:46,nose_tip:47,nose_left1:82,nose_left2:48,nose_right1:83,nose_right2:50,nose_tip1:46,nose_bottom:49,lip_top_left:84,lip_top_left_target:57,lip_top_right:90,lip_top_right_target:24,lip_top_center:87,lip_top_center_target:49,lip_bottom_left:94,lip_bottom_left_target:13,lip_bottom_right:92,lip_bottom_right_target:18,lip_bottom_center:93,lip_bottom_center_target:16,lip_inner_top:98,lip_inner_bottom:102,forehead_top_center:10,eyebrow_center:43,forehead_left:113,left_eyebrow_center:35,forehead_right:116,right_eyebrow_center:40,chin_left:13,chin_right:19},S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122],E=[43,44,79,43,78,44,44,58,79,80,45,44,44,81,58,58,59,79,79,68,43,81,63,58,58,63,59,78,55,44,59,68,79,67,54,78,78,54,55,45,81,44,67,78,43,63,105,59,59,69,68,77,105,63,76,77,63,37,67,43,60,75,105,105,75,59,81,76,63,54,56,55,55,80,44,69,38,68,68,38,43,56,80,55,45,46,81,80,46,45,70,69,75,75,69,59,38,37,43,72,104,54,54,104,56,56,73,80,72,54,66,104,74,56,66,54,67,104,53,74,76,62,77,77,60,105,28,62,76,62,60,77,57,73,74,74,73,56,51,83,81,81,83,76,37,66,67,70,39,69,69,39,38,111,36,37,73,82,80,80,48,46,50,51,81,50,81,46,49,50,46,60,70,75,71,70,60,110,37,38,37,36,66,53,104,72,53,57,74,47,48,80,30,61,62,62,61,60,48,49,46,82,47,80,53,72,65,73,4,82,65,72,66,36,65,66,53,52,57,70,40,39,112,35,36,41,40,70,64,52,53,84,47,82,61,71,60,36,35,65,65,64,53,110,38,114,86,49,48,87,88,49,49,88,50,50,89,51,85,48,47,85,86,48,85,84,96,86,87,49,71,41,70,108,89,99,88,89,50,51,90,83,29,30,62,34,64,65,86,98,87,99,89,88,106,85,96,32,42,61,61,42,71,71,42,41,99,98,101,89,90,51,99,88,98,99,109,108,108,100,89,98,88,87,99,101,109,35,34,65,64,33,52,109,100,108,100,90,89,102,98,103,97,98,86,98,102,101,85,97,86,107,103,97,97,103,98,85,47,84,85,106,97,96,107,106,106,107,97,114,39,115,114,38,39,35,113,34,115,40,116,115,39,40,84,82,7,4,73,57,34,33,64,52,2,57,116,40,41,109,91,100,100,91,90,101,91,109,92,91,101,92,101,102,110,111,37,120,119,33,29,62,28,28,76,83,30,31,61,27,83,26,27,28,83,107,95,103,103,94,102,96,95,107,84,95,96,111,112,36,31,32,61,42,122,41,32,121,42,93,92,102,118,116,41,115,127,114,26,83,25,95,94,103,94,93,102,121,122,42,129,122,121,1,2,52,2,3,57,84,11,95,0,1,52,3,4,57,25,83,90,25,90,24,117,113,123,112,113,35,33,0,52,119,0,33,120,33,34,4,5,82,122,118,41,117,120,34,119,137,0,24,90,23,5,6,82,95,12,94,113,117,34,23,90,22,6,7,82,22,90,21,90,91,21,7,8,84,21,91,20,8,9,84,94,15,93,9,10,84,20,91,19,91,92,19,10,11,84,19,92,18,11,12,95,18,92,17,12,13,94,17,92,93,13,14,94,16,17,93,14,15,94,15,16,93,31,129,32,32,129,121,122,128,118,130,129,31,130,31,30,130,30,29,130,29,28,130,28,27,130,27,131,27,26,131,26,25,131,131,24,132,131,25,24,24,23,132,23,22,132,136,137,120,120,137,119,0,137,1,1,138,2,2,138,3,3,138,4,4,138,5,5,139,6,6,139,7,7,139,8,8,140,9,132,21,133,132,22,21,21,20,133,137,138,1,9,140,10,10,140,11,11,135,12,138,139,5,12,135,13,13,135,14,129,128,122,118,127,116,116,127,115,114,126,110,133,20,19,133,19,18,133,18,17,123,136,117,117,136,120,123,113,112,123,112,111,134,17,16,134,133,17,134,16,15,135,15,14,139,140,8,140,135,11,128,127,118,124,123,111,135,134,15,124,111,110,127,126,114,126,125,110,125,124,110],k=[.488189826866528,.46679085,.488189826866528,.50658295,.516143625,.471960025,.488189826866528,.46679085,.4599979375,.4717894375,.488189826866528,.50658295,.488189826866528,.50658295,.5447991249999999,.48110985,.516143625,.471960025,.4410622,.565803525,.488189826866528,.5462991,.488189826866528,.50658295,.488189826866528,.50658295,.5369319124999999,.5654357875,.5447991249999999,.48110985,.5447991249999999,.48110985,.5602547125,.46035325,.516143625,.471960025,.516143625,.471960025,.542807575,.42128374999999996,.488189826866528,.46679085,.5369319124999999,.5654357875,.568110275,.48251628750000003,.5447991249999999,.48110985,.5447991249999999,.48110985,.568110275,.48251628750000003,.5602547125,.46035325,.4599979375,.4717894375,.42883299999999996,.48068869999999997,.488189826866528,.50658295,.5602547125,.46035325,.542807575,.42128374999999996,.516143625,.471960025,.434630275,.421406325,.4135695,.4596802125,.4599979375,.4717894375,.4599979375,.4717894375,.4135695,.4596802125,.42883299999999996,.48068869999999997,.488189826866528,.5462991,.5369319124999999,.5654357875,.488189826866528,.50658295,.434630275,.421406325,.4599979375,.4717894375,.488189826866528,.46679085,.568110275,.48251628750000003,.5865549125,.4657776625,.5602547125,.46035325,.5602547125,.46035325,.57607715,.4146392875,.542807575,.42128374999999996,.588454125,.46861568750000004,.5865549125,.4657776625,.568110275,.48251628750000003,.5915551,.4831601,.588454125,.46861568750000004,.568110275,.48251628750000003,.4365127125,.40153225,.434630275,.421406325,.488189826866528,.46679085,.6097423125,.4507424125,.5838801625,.449976875,.5865549125,.4657776625,.5865549125,.4657776625,.5838801625,.449976875,.5602547125,.46035325,.5369319124999999,.5654357875,.5915551,.4831601,.568110275,.48251628750000003,.4135695,.4596802125,.40557155,.48211937499999996,.42883299999999996,.48068869999999997,.42883299999999996,.48068869999999997,.4410622,.565803525,.488189826866528,.50658295,.57607715,.4146392875,.5406618125,.40061935,.542807575,.42128374999999996,.542807575,.42128374999999996,.5406618125,.40061935,.488189826866528,.46679085,.40557155,.48211937499999996,.4410622,.565803525,.42883299999999996,.48068869999999997,.488189826866528,.5462991,.488189826866528,.58580675,.5369319124999999,.5654357875,.4410622,.565803525,.488189826866528,.58580675,.488189826866528,.5462991,.60990175,.4109925,.57607715,.4146392875,.5838801625,.449976875,.5838801625,.449976875,.57607715,.4146392875,.5602547125,.46035325,.5406618125,.40061935,.4365127125,.40153225,.488189826866528,.46679085,.38991549999999997,.4494414125,.3875146875,.465458025,.4135695,.4596802125,.4135695,.4596802125,.3875146875,.465458025,.40557155,.48211937499999996,.40557155,.48211937499999996,.38226482500000003,.4827557,.4410622,.565803525,.38991549999999997,.4494414125,.4135695,.4596802125,.4020055,.415060875,.3875146875,.465458025,.385898325,.46785316250000003,.40557155,.48211937499999996,.4020055,.415060875,.4135695,.4596802125,.434630275,.421406325,.3875146875,.465458025,.3640840875,.45055124999999996,.385898325,.46785316250000003,.5915551,.4831601,.6139756,.476639975,.588454125,.46861568750000004,.588454125,.46861568750000004,.6097423125,.4507424125,.5865549125,.4657776625,.6986649375,.5627347125,.6139756,.476639975,.5915551,.4831601,.6139756,.476639975,.6097423125,.4507424125,.588454125,.46861568750000004,.3599488125,.47632687500000004,.38226482500000003,.4827557,.385898325,.46785316250000003,.385898325,.46785316250000003,.38226482500000003,.4827557,.40557155,.48211937499999996,.537402425,.6126665875,.5512806,.592975125,.5369319124999999,.5654357875,.5369319124999999,.5654357875,.5512806,.592975125,.5915551,.4831601,.4365127125,.40153225,.4020055,.415060875,.434630275,.421406325,.60990175,.4109925,.5750593125000001,.39081712500000004,.57607715,.4146392875,.57607715,.4146392875,.5750593125000001,.39081712500000004,.5406618125,.40061935,.4196925125,.2953909749999999,.4028723125,.3915063125,.4365127125,.40153225,.38226482500000003,.4827557,.427124375,.59353005,.4410622,.565803525,.4410622,.565803525,.46482735,.617807575,.488189826866528,.58580675,.5135869249999999,.617646025,.537402425,.6126665875,.5369319124999999,.5654357875,.5135869249999999,.617646025,.5369319124999999,.5654357875,.488189826866528,.58580675,.488189826866528,.622551,.5135869249999999,.617646025,.488189826866528,.58580675,.6097423125,.4507424125,.60990175,.4109925,.5838801625,.449976875,.64358425,.412451125,.60990175,.4109925,.6097423125,.4507424125,.488189826866528,.2883909749999999,.4365127125,.40153225,.5406618125,.40061935,.4365127125,.40153225,.4028723125,.3915063125,.4020055,.415060875,.3640840875,.45055124999999996,.3875146875,.465458025,.38991549999999997,.4494414125,.3640840875,.45055124999999996,.3599488125,.47632687500000004,.385898325,.46785316250000003,.44135155,.61300865,.46482735,.617807575,.4410622,.565803525,.7079557,.5055197499999999,.6325640875,.46274605,.6139756,.476639975,.6139756,.476639975,.6325640875,.46274605,.6097423125,.4507424125,.46482735,.617807575,.488189826866528,.622551,.488189826866528,.58580675,.427124375,.59353005,.44135155,.61300865,.4410622,.565803525,.3640840875,.45055124999999996,.38991549999999997,.4494414125,.368784175,.41131387500000005,.38226482500000003,.4827557,.282695775,.5610828375,.427124375,.59353005,.368784175,.41131387500000005,.38991549999999997,.4494414125,.4020055,.415060875,.4028723125,.3915063125,.368784175,.41131387500000005,.4020055,.415060875,.3640840875,.45055124999999996,.3412266875,.462774925,.3599488125,.47632687500000004,.60990175,.4109925,.6109665,.3861959125,.5750593125000001,.39081712500000004,.38542595,.3023909749999999,.3679795875,.3866262,.4028723125,.3915063125,.6464699500000001,.39127456250000003,.6109665,.3861959125,.60990175,.4109925,.33567349999999996,.4124759625,.3412266875,.462774925,.3640840875,.45055124999999996,.40563065000000004,.66605925,.44135155,.61300865,.427124375,.59353005,.6325640875,.46274605,.64358425,.412451125,.6097423125,.4507424125,.4028723125,.3915063125,.3679795875,.3866262,.368784175,.41131387500000005,.368784175,.41131387500000005,.33567349999999996,.4124759625,.3640840875,.45055124999999996,.488189826866528,.2883909749999999,.5406618125,.40061935,.5578605625,.2953909749999999,.467591,.6554576874999999,.488189826866528,.622551,.46482735,.617807575,.488189826866528,.660130075,.505873625,.6556971749999999,.488189826866528,.622551,.488189826866528,.622551,.505873625,.6556971749999999,.5135869249999999,.617646025,.5135869249999999,.617646025,.537864,.66081345,.537402425,.6126665875,.436492575,.659831,.46482735,.617807575,.44135155,.61300865,.436492575,.659831,.467591,.6554576874999999,.46482735,.617807575,.436492575,.659831,.40563065000000004,.66605925,.4149069625,.6694827499999999,.467591,.6554576874999999,.488189826866528,.660130075,.488189826866528,.622551,.64358425,.412451125,.6464699500000001,.39127456250000003,.60990175,.4109925,.54207058125,.6724125624999999,.537864,.66081345,.523628625,.6757999375,.505873625,.6556971749999999,.537864,.66081345,.5135869249999999,.617646025,.537402425,.6126665875,.5699740624999999,.665637625,.5512806,.592975125,.7040264999999999,.5342099,.7079557,.5055197499999999,.6139756,.476639975,.33314059999999995,.3906893125,.33567349999999996,.4124759625,.368784175,.41131387500000005,.467591,.6554576874999999,.488189826866528,.679725375,.488189826866528,.660130075,.523628625,.6757999375,.537864,.66081345,.505873625,.6556971749999999,.43286249374999997,.6727749375,.436492575,.659831,.4149069625,.6694827499999999,.7120584999999999,.4479282,.67428775,.41762,.6325640875,.46274605,.6325640875,.46274605,.67428775,.41762,.64358425,.412451125,.64358425,.412451125,.67428775,.41762,.6464699500000001,.39127456250000003,0,0,0,0,0,0,.537864,.66081345,.5699740624999999,.665637625,.537402425,.6126665875,.523628625,.6757999375,.505873625,.6556971749999999,.488189826866528,.679725375,0,0,0,0,0,0,.54207058125,.6724125624999999,.5605125375,.6690251875,.537864,.66081345,.488189826866528,.679725375,.505873625,.6556971749999999,.488189826866528,.660130075,0,0,0,0,0,0,.3679795875,.3866262,.33314059999999995,.3906893125,.368784175,.41131387500000005,.33567349999999996,.4124759625,.305216575,.4170092,.3412266875,.462774925,0,0,0,0,0,0,.5605125375,.6690251875,.5699740624999999,.665637625,.537864,.66081345,0,0,0,0,0,0,.450818025,.676067125,.488189826866528,.679725375,.467591,.6554576874999999,0,0,0,0,0,0,.436492575,.659831,.450818025,.676067125,.467591,.6554576874999999,0,0,0,0,0,0,0,0,0,0,0,0,.436492575,.659831,.44135155,.61300865,.40563065000000004,.66605925,.436492575,.659831,.43286249374999997,.6727749375,.450818025,.676067125,0,0,0,0,0,0,0,0,0,0,0,0,.5578605625,.2953909749999999,.5750593125000001,.39081712500000004,.59301290625,.3023909749999999,.5578605625,.2953909749999999,.5406618125,.40061935,.5750593125000001,.39081712500000004,.3679795875,.3866262,.35056009374999997,.3093909749999999,.33314059999999995,.3906893125,.59301290625,.3023909749999999,.6109665,.3861959125,.6287182250000001,.3093909749999999,.59301290625,.3023909749999999,.5750593125000001,.39081712500000004,.6109665,.3861959125,.40563065000000004,.66605925,.427124375,.59353005,.3030863625,.64445225,.282695775,.5610828375,.38226482500000003,.4827557,.3599488125,.47632687500000004,.33314059999999995,.3906893125,.305216575,.4170092,.33567349999999996,.4124759625,.3412266875,.462774925,.2733915,.50383525,.3599488125,.47632687500000004,.6287182250000001,.3093909749999999,.6109665,.3861959125,.6464699500000001,.39127456250000003,.54208226875,.67264515625,.5469159375,.6879962500000001,.5605125375,.6690251875,.5605125375,.6690251875,.5469159375,.6879962500000001,.5699740624999999,.665637625,.523652,.676265125,.5469159375,.6879962500000001,.54208226875,.67264515625,.5189354375,.7045858749999999,.5469159375,.6879962500000001,.523652,.676265125,.5189354375,.7045858749999999,.523652,.676265125,.488189826866528,.6814735375,.488189826866528,.2883909749999999,.4196925125,.2953909749999999,.4365127125,.40153225,.28182385833333334,.3866262,.27597567916666665,.4170092,.305216575,.4170092,.7040264999999999,.5342099,.6139756,.476639975,.6986649375,.5627347125,.6986649375,.5627347125,.5915551,.4831601,.5512806,.592975125,.7079557,.5055197499999999,.71060725,.476442525,.6325640875,.46274605,.692903125,.5908523999999999,.5512806,.592975125,.6857991250000001,.618673825,.692903125,.5908523999999999,.6986649375,.5627347125,.5512806,.592975125,.43282999375,.673484,.42734125,.6891803,.450753025,.67748525,.450753025,.67748525,.4548121625,.7055647999999999,.488189826866528,.6814735375,.4149069625,.6694827499999999,.42734125,.6891803,.43282999375,.673484,.40563065000000004,.66605925,.42734125,.6891803,.4149069625,.6694827499999999,.4196925125,.2953909749999999,.38542595,.3023909749999999,.4028723125,.3915063125,.71060725,.476442525,.7120584999999999,.4479282,.6325640875,.46274605,.67428775,.41762,.6994682499999999,.3861959125,.6464699500000001,.39127456250000003,.7120584999999999,.4479282,.705763375,.41762,.67428775,.41762,.488189826866528,.7103383750000001,.5189354375,.7045858749999999,.488189826866528,.6814735375,.67428775,.33039097499999986,.6287182250000001,.3093909749999999,.6464699500000001,.39127456250000003,.59301290625,.3023909749999999,.7120584999999999,.13003558749999994,.5578605625,.2953909749999999,.6857991250000001,.618673825,.5512806,.592975125,.6774095,.6461884999999999,.42734125,.6891803,.4548121625,.7055647999999999,.450753025,.67748525,.4548121625,.7055647999999999,.488189826866528,.7103383750000001,.488189826866528,.6814735375,.705763375,.41762,.6994682499999999,.3861959125,.67428775,.41762,.8383426749999999,.41762,.6994682499999999,.3861959125,.705763375,.41762,.2711788125,.475080675,.2733915,.50383525,.3412266875,.462774925,.2733915,.50383525,.27736215000000003,.53252975,.3599488125,.47632687500000004,.40563065000000004,.66605925,.364313,.738966,.42734125,.6891803,.2701275,.446433525,.2711788125,.475080675,.3412266875,.462774925,.27736215000000003,.53252975,.282695775,.5610828375,.3599488125,.47632687500000004,.6774095,.6461884999999999,.5512806,.592975125,.5699740624999999,.665637625,.6774095,.6461884999999999,.5699740624999999,.665637625,.66662155,.6725830875,.305216575,.33039097499999986,.35056009374999997,.3093909749999999,.2701275,.1304658749999999,.38542595,.3023909749999999,.35056009374999997,.3093909749999999,.3679795875,.3866262,.305216575,.4170092,.2701275,.446433525,.3412266875,.462774925,.27597567916666665,.4170092,.2701275,.446433525,.305216575,.4170092,.28182385833333334,.3866262,.305216575,.4170092,.33314059999999995,.3906893125,.282695775,.5610828375,.28838671250000003,.58901565,.427124375,.59353005,.6994682499999999,.3861959125,.67428775,.33039097499999986,.6464699500000001,.39127456250000003,.305216575,.33039097499999986,.28182385833333334,.3866262,.33314059999999995,.3906893125,.27597567916666665,.4170092,.1433963791666667,.4170092,.2701275,.446433525,.66662155,.6725830875,.5699740624999999,.665637625,.652230375,.6970854125,.28838671250000003,.58901565,.29503317500000004,.6170379625,.427124375,.59353005,.42734125,.6891803,.38528327500000004,.7581624625000001,.4548121625,.7055647999999999,.35056009374999997,.3093909749999999,.305216575,.33039097499999986,.33314059999999995,.3906893125,.652230375,.6970854125,.5699740624999999,.665637625,.6349819999999999,.719920125,.29503317500000004,.6170379625,.3030863625,.64445225,.427124375,.59353005,.6349819999999999,.719920125,.5699740624999999,.665637625,.615452575,.7405493125,.5699740624999999,.665637625,.5469159375,.6879962500000001,.615452575,.7405493125,.3030863625,.64445225,.3134811625,.6709578,.40563065000000004,.66605925,.615452575,.7405493125,.5469159375,.6879962500000001,.5944185000000001,.7597992000000001,.3134811625,.6709578,.327658,.6954898125,.40563065000000004,.66605925,.4548121625,.7055647999999999,.46111278749999995,.797688125,.488189826866528,.7103383750000001,.327658,.6954898125,.3447950375,.7185136249999999,.40563065000000004,.66605925,.5944185000000001,.7597992000000001,.5469159375,.6879962500000001,.57167145,.777034625,.5469159375,.6879962500000001,.5189354375,.7045858749999999,.57167145,.777034625,.3447950375,.7185136249999999,.364313,.738966,.40563065000000004,.66605925,.57167145,.777034625,.5189354375,.7045858749999999,.54608605,.79034725,.364313,.738966,.38528327500000004,.7581624625000001,.42734125,.6891803,.54608605,.79034725,.5189354375,.7045858749999999,.5180748375,.798073,.38528327500000004,.7581624625000001,.4080183375,.7756525375,.4548121625,.7055647999999999,.5180748375,.798073,.5189354375,.7045858749999999,.488189826866528,.7103383750000001,.4080183375,.7756525375,.43323218750000003,.78937325,.4548121625,.7055647999999999,.488189826866528,.800711625,.5180748375,.798073,.488189826866528,.7103383750000001,.43323218750000003,.78937325,.46111278749999995,.797688125,.4548121625,.7055647999999999,.46111278749999995,.797688125,.488189826866528,.800711625,.488189826866528,.7103383750000001,.71060725,.476442525,.8383426749999999,.41762,.7120584999999999,.4479282,.7120584999999999,.4479282,.8383426749999999,.41762,.705763375,.41762,.6994682499999999,.3861959125,.8320475499999999,.2883909749999999,.67428775,.33039097499999986,.8446377999999999,.5627347125,.8383426749999999,.41762,.71060725,.476442525,.8446377999999999,.5627347125,.71060725,.476442525,.7079557,.5055197499999999,.8446377999999999,.5627347125,.7079557,.5055197499999999,.7040264999999999,.5342099,.8446377999999999,.5627347125,.7040264999999999,.5342099,.6986649375,.5627347125,.8446377999999999,.5627347125,.6986649375,.5627347125,.692903125,.5908523999999999,.8446377999999999,.5627347125,.692903125,.5908523999999999,.8099888,.6725830875,.692903125,.5908523999999999,.6857991250000001,.618673825,.8099888,.6725830875,.6857991250000001,.618673825,.6774095,.6461884999999999,.8099888,.6725830875,.8099888,.6725830875,.66662155,.6725830875,.7480318749999999,.800711625,.8099888,.6725830875,.6774095,.6461884999999999,.66662155,.6725830875,.66662155,.6725830875,.652230375,.6970854125,.7480318749999999,.800711625,.652230375,.6970854125,.6349819999999999,.719920125,.7480318749999999,.800711625,.1492445583333334,.2883909749999999,.1433963791666667,.4170092,.28182385833333334,.3866262,.28182385833333334,.3866262,.1433963791666667,.4170092,.27597567916666665,.4170092,.2701275,.446433525,.1433963791666667,.4170092,.2711788125,.475080675,.2711788125,.475080675,.13754820000000006,.5610828375,.2733915,.50383525,.2733915,.50383525,.13754820000000006,.5610828375,.27736215000000003,.53252975,.27736215000000003,.53252975,.13754820000000006,.5610828375,.282695775,.5610828375,.282695775,.5610828375,.13754820000000006,.5610828375,.28838671250000003,.58901565,.28838671250000003,.58901565,.17050706250000003,.6709578,.29503317500000004,.6170379625,.29503317500000004,.6170379625,.17050706250000003,.6709578,.3030863625,.64445225,.3030863625,.64445225,.17050706250000003,.6709578,.3134811625,.6709578,.3134811625,.6709578,.23173370000000004,.800711625,.327658,.6954898125,.7480318749999999,.800711625,.615452575,.7405493125,.615452575,.879498755,.7480318749999999,.800711625,.6349819999999999,.719920125,.615452575,.7405493125,.615452575,.7405493125,.5944185000000001,.7597992000000001,.615452575,.879498755,.1433963791666667,.4170092,.13754820000000006,.5610828375,.2711788125,.475080675,.327658,.6954898125,.23173370000000004,.800711625,.3447950375,.7185136249999999,.3447950375,.7185136249999999,.23173370000000004,.800711625,.364313,.738966,.364313,.738966,.364313,.8781166675000001,.38528327500000004,.7581624625000001,.13754820000000006,.5610828375,.17050706250000003,.6709578,.28838671250000003,.58901565,.38528327500000004,.7581624625000001,.364313,.8781166675000001,.4080183375,.7756525375,.4080183375,.7756525375,.364313,.8781166675000001,.43323218750000003,.78937325,.8383426749999999,.41762,.8320475499999999,.2883909749999999,.6994682499999999,.3861959125,.67428775,.33039097499999986,.7120584999999999,.13003558749999994,.6287182250000001,.3093909749999999,.6287182250000001,.3093909749999999,.7120584999999999,.13003558749999994,.59301290625,.3023909749999999,.5578605625,.2953909749999999,.59301290625,.04623064999999982,.488189826866528,.2883909749999999,.615452575,.879498755,.5944185000000001,.7597992000000001,.57167145,.777034625,.615452575,.879498755,.57167145,.777034625,.54608605,.79034725,.615452575,.879498755,.54608605,.79034725,.5180748375,.798073,.2701275,.1304658749999999,.1492445583333334,.2883909749999999,.305216575,.33039097499999986,.305216575,.33039097499999986,.1492445583333334,.2883909749999999,.28182385833333334,.3866262,.2701275,.1304658749999999,.35056009374999997,.3093909749999999,.38542595,.3023909749999999,.2701275,.1304658749999999,.38542595,.3023909749999999,.4196925125,.2953909749999999,.4895560875,.9031757550000001,.5180748375,.798073,.488189826866528,.800711625,.4895560875,.9031757550000001,.615452575,.879498755,.5180748375,.798073,.4895560875,.9031757550000001,.488189826866528,.800711625,.46111278749999995,.797688125,.364313,.8781166675000001,.46111278749999995,.797688125,.43323218750000003,.78937325,.17050706250000003,.6709578,.23173370000000004,.800711625,.3134811625,.6709578,.23173370000000004,.800711625,.364313,.8781166675000001,.364313,.738966,.8320475499999999,.2883909749999999,.7120584999999999,.13003558749999994,.67428775,.33039097499999986,.38542595,.04623064999999982,.2701275,.1304658749999999,.4196925125,.2953909749999999,.364313,.8781166675000001,.4895560875,.9031757550000001,.46111278749999995,.797688125,.38542595,.04623064999999982,.4196925125,.2953909749999999,.488189826866528,.2883909749999999,.7120584999999999,.13003558749999994,.59301290625,.04623064999999982,.5578605625,.2953909749999999,.59301290625,.04623064999999982,.488446575,.032230649999999805,.488189826866528,.2883909749999999,.488446575,.032230649999999805,.38542595,.04623064999999982,.488189826866528,.2883909749999999],P=[-.08,-.05,-.03,0,0,.01,.015,.01,.01,-.01,-.03,-.05,-.06],R=[18,14,19,14,13,19,14,2,13,14,3,2,20,21,13,13,21,19,1,20,13,11,10,19,19,10,18,2,1,13,21,11,19,12,11,21,3,4,2,14,4,3,15,4,14,10,9,18,17,15,14,17,14,18,8,17,18,1,12,20,20,12,21,9,8,18,1,0,12,12,0,11,23,15,17,22,5,15,15,5,4,7,23,17,23,22,15,8,7,17,23,16,22,7,16,23,22,16,5,7,6,16,16,6,5],O=[.4994956625,.614281425,.49966255,.60233525,.46424221250000003,.6089815000000001,.49966255,.60233525,.465096475,.5992760874999999,.46424221250000003,.6089815000000001,.49966255,.60233525,.4818877,.5826464124999999,.465096475,.5992760874999999,.49966255,.60233525,.49910775,.5864197875,.4818877,.5826464124999999,.4479978375,.5976933312499999,.44757070625,.6025460375,.465096475,.5992760874999999,.465096475,.5992760874999999,.44757070625,.6025460375,.46424221250000003,.6089815000000001,.451843375,.5873581250000001,.4479978375,.5976933312499999,.465096475,.5992760874999999,.44207625,.6199760875,.46743702499999995,.6409725000000001,.46424221250000003,.6089815000000001,.46424221250000003,.6089815000000001,.46743702499999995,.6409725000000001,.4994956625,.614281425,.4818877,.5826464124999999,.451843375,.5873581250000001,.465096475,.5992760874999999,.44757070625,.6025460375,.44207625,.6199760875,.46424221250000003,.6089815000000001,.4308992,.596110575,.44207625,.6199760875,.44757070625,.6025460375,.49910775,.5864197875,.5163774999999999,.5825469625,.4818877,.5826464124999999,.49966255,.60233525,.5163774999999999,.5825469625,.49910775,.5864197875,.5342254625,.5992902,.5163774999999999,.5825469625,.49966255,.60233525,.46743702499999995,.6409725000000001,.4997823375,.64841675,.4994956625,.614281425,.535219575,.609022,.5342254625,.5992902,.49966255,.60233525,.535219575,.609022,.49966255,.60233525,.4994956625,.614281425,.53258415,.64137075,.535219575,.609022,.4994956625,.614281425,.451843375,.5873581250000001,.4308992,.596110575,.4479978375,.5976933312499999,.4479978375,.5976933312499999,.4308992,.596110575,.44757070625,.6025460375,.4997823375,.64841675,.53258415,.64137075,.4994956625,.614281425,.451843375,.5873581250000001,.422608125,.5931778375,.4308992,.596110575,.4308992,.596110575,.422608125,.5931778375,.44207625,.6199760875,.5518993,.60231035625,.5342254625,.5992902,.535219575,.609022,.55140224375,.59744445625,.546885375,.5874255749999999,.5342254625,.5992902,.5342254625,.5992902,.546885375,.5874255749999999,.5163774999999999,.5825469625,.5581709625,.620002975,.5518993,.60231035625,.535219575,.609022,.5518993,.60231035625,.55140224375,.59744445625,.5342254625,.5992902,.53258415,.64137075,.5581709625,.620002975,.535219575,.609022,.5518993,.60231035625,.568579025,.5955987125,.55140224375,.59744445625,.5581709625,.620002975,.568579025,.5955987125,.5518993,.60231035625,.55140224375,.59744445625,.568579025,.5955987125,.546885375,.5874255749999999,.5581709625,.620002975,.576995375,.5925833125,.568579025,.5955987125,.568579025,.5955987125,.576995375,.5925833125,.546885375,.5874255749999999];var A=n(401),D=n(8586),I=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},F=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},L=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},M=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var N=function(){function t(){}return t.prototype.load=function(){return F(this,void 0,void 0,(function(){return L(this,(function(t){return[2,Promise.resolve()]}))}))},t.prototype.getDataConfig=function(t){return function(t){switch(t){case 0:return o;case 1:return a;case 2:return s;case 3:return c;case 4:return l;case 5:return u;case 6:return h;case 7:return d;case 8:return f;case 9:return r.LEFT_FACE_OVAL2;case 10:return r.LEFT_FACE_OVAL3;case 11:return p;case 12:return r.RIGHT_FACE_OVAL2;case 13:return r.RIGHT_FACE_OVAL3;case 14:return g;case 15:return m;case 16:return y;case 17:return v;case 18:return _;case 19:return b;case 20:return x;case 21:return w;case 22:return T;case 23:return C;case 24:return S;case 25:return E;case 26:return k;case 27:return P;case 28:return R;case 29:return O;case 30:return i;default:return""}}(t)},t.prototype.getConfigByKeys=function(t){var e,n,r={};try{for(var i=M(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=A.c4[a];r[a]=this.getDataConfig(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},t=I([D.e],t)}()},4809:(t,e,n)=>{var r=n(7872),i=Uint8Array,o=Uint16Array,a=Uint32Array,s=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(t,e){for(var n=new o(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var i=new a(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return[n,i]},h=u(s,2),d=h[0],f=h[1];d[28]=258,f[258]=28;for(var p=u(c,0),g=p[0],m=p[1],y=new o(32768),v=0;v<32768;++v){var _=(43690&v)>>>1|(21845&v)<<1;_=(61680&(_=(52428&_)>>>2|(13107&_)<<2))>>>4|(3855&_)<<4,y[v]=((65280&_)>>>8|(255&_)<<8)>>>1}var b=function(t,e,n){for(var r=t.length,i=0,a=new o(e);i<r;++i)++a[t[i]-1];var s,c=new o(e);for(i=0;i<e;++i)c[i]=c[i-1]+a[i-1]<<1;if(n){s=new o(1<<e);var l=15-e;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],h=e-t[i],d=c[t[i]-1]++<<h,f=d|(1<<h)-1;d<=f;++d)s[y[d]>>>l]=u}else for(s=new o(r),i=0;i<r;++i)t[i]&&(s[i]=y[c[t[i]-1]++]>>>15-t[i]);return s},x=new i(288);for(v=0;v<144;++v)x[v]=8;for(v=144;v<256;++v)x[v]=9;for(v=256;v<280;++v)x[v]=7;for(v=280;v<288;++v)x[v]=8;var w=new i(32);for(v=0;v<32;++v)w[v]=5;var T=b(x,9,0),C=b(x,9,1),S=b(w,5,0),E=b(w,5,1),k=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},P=function(t,e,n){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(7&e)&n},R=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(7&e)},O=function(t){return(t+7)/8|0},A=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var r=new(t instanceof o?o:t instanceof a?a:i)(n-e);return r.set(t.subarray(e,n)),r};var D=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(t,e,n){var r=new Error(e||D[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,I),!n)throw r;return r},F=function(t,e,n){var r=t.length;if(!r||n&&n.f&&!n.l)return e||new i(0);var o=!e||n,a=!n||n.i;n||(n={}),e||(e=new i(3*r));var u=function(t){var n=e.length;if(t>n){var r=new i(Math.max(2*n,t));r.set(e),e=r}},h=n.f||0,f=n.p||0,p=n.b||0,m=n.l,y=n.d,v=n.m,_=n.n,x=8*r;do{if(!m){h=P(t,f,1);var w=P(t,f+1,3);if(f+=3,!w){var T=t[(W=O(f)+4)-4]|t[W-3]<<8,S=W+T;if(S>r){a&&I(0);break}o&&u(p+T),e.set(t.subarray(W,S),p),n.b=p+=T,n.p=f=8*S,n.f=h;continue}if(1==w)m=C,y=E,v=9,_=5;else if(2==w){var D=P(t,f,31)+257,F=P(t,f+10,15)+4,L=D+P(t,f+5,31)+1;f+=14;for(var M=new i(L),N=new i(19),j=0;j<F;++j)N[l[j]]=P(t,f+3*j,7);f+=3*F;var U=k(N),B=(1<<U)-1,z=b(N,U,1);for(j=0;j<L;){var W,V=z[P(t,f,B)];if(f+=15&V,(W=V>>>4)<16)M[j++]=W;else{var q=0,H=0;for(16==W?(H=3+P(t,f,3),f+=2,q=M[j-1]):17==W?(H=3+P(t,f,7),f+=3):18==W&&(H=11+P(t,f,127),f+=7);H--;)M[j++]=q}}var G=M.subarray(0,D),Y=M.subarray(D);v=k(G),_=k(Y),m=b(G,v,1),y=b(Y,_,1)}else I(1);if(f>x){a&&I(0);break}}o&&u(p+131072);for(var Z=(1<<v)-1,K=(1<<_)-1,X=f;;X=f){var $=(q=m[R(t,f)&Z])>>>4;if((f+=15&q)>x){a&&I(0);break}if(q||I(2),$<256)e[p++]=$;else{if(256==$){X=f,m=null;break}var J=$-254;if($>264){var Q=s[j=$-257];J=P(t,f,(1<<Q)-1)+d[j],f+=Q}var tt=y[R(t,f)&K],et=tt>>>4;tt||I(3),f+=15&tt;Y=g[et];if(et>3){Q=c[et];Y+=R(t,f)&(1<<Q)-1,f+=Q}if(f>x){a&&I(0);break}o&&u(p+131072);for(var nt=p+J;p<nt;p+=4)e[p]=e[p-Y],e[p+1]=e[p+1-Y],e[p+2]=e[p+2-Y],e[p+3]=e[p+3-Y];p=nt}}n.l=m,n.p=X,n.b=p,n.f=h,m&&(h=1,n.m=v,n.d=y,n.n=_)}while(!h);return p==e.length?e:A(e,0,p)},L=function(t,e,n){n<<=7&e;var r=e/8|0;t[r]|=n,t[r+1]|=n>>>8},M=function(t,e,n){n<<=7&e;var r=e/8|0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},N=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var a=n.length,s=n.slice();if(!a)return[q,0];if(1==a){var c=new i(n[0].s+1);return c[n[0].s]=1,[c,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var l=n[0],u=n[1],h=0,d=1,f=2;for(n[0]={s:-1,f:l.f+u.f,l,r:u};d!=a-1;)l=n[n[h].f<n[f].f?h++:f++],u=n[h!=d&&n[h].f<n[f].f?h++:f++],n[d++]={s:-1,f:l.f+u.f,l,r:u};var p=s[0].s;for(r=1;r<a;++r)s[r].s>p&&(p=s[r].s);var g=new o(p+1),m=j(n[d-1],g,0);if(m>e){r=0;var y=0,v=m-e,_=1<<v;for(s.sort((function(t,e){return g[e.s]-g[t.s]||t.f-e.f}));r<a;++r){var b=s[r].s;if(!(g[b]>e))break;y+=_-(1<<m-g[b]),g[b]=e}for(y>>>=v;y>0;){var x=s[r].s;g[x]<e?y-=1<<e-g[x]++-1:++r}for(;r>=0&&y;--r){var w=s[r].s;g[w]==e&&(--g[w],++y)}m=e}return[new i(g),m]},j=function(t,e,n){return-1==t.s?Math.max(j(t.l,e,n+1),j(t.r,e,n+1)):e[t.s]=n},U=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new o(++e),r=0,i=t[0],a=1,s=function(t){n[r++]=t},c=1;c<=e;++c)if(t[c]==i&&c!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[c]}return[n.subarray(0,r),e]},B=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},z=function(t,e,n){var r=n.length,i=O(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<r;++o)t[i+o+4]=n[o];return 8*(i+4+r)},W=function(t,e,n,r,i,a,u,h,d,f,p){L(e,p++,n),++i[256];for(var g=N(i,15),m=g[0],y=g[1],v=N(a,15),_=v[0],C=v[1],E=U(m),k=E[0],P=E[1],R=U(_),O=R[0],A=R[1],D=new o(19),I=0;I<k.length;++I)D[31&k[I]]++;for(I=0;I<O.length;++I)D[31&O[I]]++;for(var F=N(D,7),j=F[0],W=F[1],V=19;V>4&&!j[l[V-1]];--V);var q,H,G,Y,Z=f+5<<3,K=B(i,x)+B(a,w)+u,X=B(i,m)+B(a,_)+u+14+3*V+B(D,j)+(2*D[16]+3*D[17]+7*D[18]);if(Z<=K&&Z<=X)return z(e,p,t.subarray(d,d+f));if(L(e,p,1+(X<K)),p+=2,X<K){q=b(m,y,0),H=m,G=b(_,C,0),Y=_;var $=b(j,W,0);L(e,p,P-257),L(e,p+5,A-1),L(e,p+10,V-4),p+=14;for(I=0;I<V;++I)L(e,p+3*I,j[l[I]]);p+=3*V;for(var J=[k,O],Q=0;Q<2;++Q){var tt=J[Q];for(I=0;I<tt.length;++I){var et=31&tt[I];L(e,p,$[et]),p+=j[et],et>15&&(L(e,p,tt[I]>>>5&127),p+=tt[I]>>>12)}}}else q=T,H=x,G=S,Y=w;for(I=0;I<h;++I)if(r[I]>255){et=r[I]>>>18&31;M(e,p,q[et+257]),p+=H[et+257],et>7&&(L(e,p,r[I]>>>23&31),p+=s[et]);var nt=31&r[I];M(e,p,G[nt]),p+=Y[nt],nt>3&&(M(e,p,r[I]>>>5&8191),p+=c[nt])}else M(e,p,q[r[I]]),p+=H[r[I]];return M(e,p,q[256]),p+H[256]},V=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),q=new i(0),H=function(t,e,n,r,l,u){var h=t.length,d=new i(r+h+5*(1+Math.ceil(h/7e3))+l),p=d.subarray(r,d.length-l),g=0;if(!e||h<8)for(var y=0;y<=h;y+=65535){var v=y+65535;v<h?g=z(p,g,t.subarray(y,v)):(p[y]=u,g=z(p,g,t.subarray(y,h)))}else{for(var _=V[e-1],b=_>>>13,x=8191&_,w=(1<<n)-1,T=new o(32768),C=new o(w+1),S=Math.ceil(n/3),E=2*S,k=function(e){return(t[e]^t[e+1]<<S^t[e+2]<<E)&w},P=new a(25e3),R=new o(288),D=new o(32),I=0,F=0,L=(y=0,0),M=0,N=0;y<h;++y){var j=k(y),U=32767&y,B=C[j];if(T[U]=B,C[j]=U,M<=y){var H=h-y;if((I>7e3||L>24576)&&H>423){g=W(t,p,0,P,R,D,F,L,N,y-N,g),L=I=F=0,N=y;for(var G=0;G<286;++G)R[G]=0;for(G=0;G<30;++G)D[G]=0}var Y=2,Z=0,K=x,X=U-B&32767;if(H>2&&j==k(y-X))for(var $=Math.min(b,H)-1,J=Math.min(32767,y),Q=Math.min(258,H);X<=J&&--K&&U!=B;){if(t[y+Y]==t[y+Y-X]){for(var tt=0;tt<Q&&t[y+tt]==t[y+tt-X];++tt);if(tt>Y){if(Y=tt,Z=X,tt>$)break;var et=Math.min(X,tt-2),nt=0;for(G=0;G<et;++G){var rt=y-X+G+32768&32767,it=rt-T[rt]+32768&32767;it>nt&&(nt=it,B=rt)}}}X+=(U=B)-(B=T[U])+32768&32767}if(Z){P[L++]=268435456|f[Y]<<18|m[Z];var ot=31&f[Y],at=31&m[Z];F+=s[ot]+c[at],++R[257+ot],++D[at],M=y+Y,++I}else P[L++]=t[y],++R[t[y]]}}g=W(t,p,u,P,R,D,F,L,N,y-N,g),!u&&7&g&&(g=z(p,g+1,q))}return A(d,0,r+O(g)+l)},G=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var n=e,r=9;--r;)n=(1&n&&-306674912)^n>>>1;t[e]=n}return t}(),Y=function(){var t=-1;return{p:function(e){for(var n=t,r=0;r<e.length;++r)n=G[255&n^e[r]]^n>>>8;t=n},d:function(){return~t}}},Z=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=0|n.length,a=0;a!=o;){for(var s=Math.min(a+2655,o);a<s;++a)i+=r+=n[a];r=(65535&r)+15*(r>>16),i=(65535&i)+15*(i>>16)}t=r,e=i},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(e%=65521))<<8|e>>>8}}},K=function(t,e,n,r,i){return H(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!i)},X=function(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n},$=function(t,e,n){for(var r=t(),i=t.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/ /g,"").split(","),a=0;a<r.length;++a){var s=r[a],c=o[a];if("function"==typeof s){e+=";"+c+"=";var l=s.toString();if(s.prototype)if(-1!=l.indexOf("[native code]")){var u=l.indexOf(" ",8)+1;e+=l.slice(u,l.indexOf("(",u))}else for(var h in e+=l,s.prototype)e+=";"+c+".prototype."+h+"="+s.prototype[h].toString();else e+=l}else n[c]=s}return[e,n]},J=[],Q=function(t,e,n,s){var c;if(!J[n]){for(var l="",u={},h=t.length-1,d=0;d<h;++d)l=(c=$(t[d],l,u))[0],u=c[1];J[n]=$(t[h],l,u)}var f=X({},J[n][1]);return r.default(J[n][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",n,f,function(t){var e=[];for(var n in t)(t[n]instanceof i||t[n]instanceof o||t[n]instanceof a)&&e.push((t[n]=new t[n].constructor(t[n])).buffer);return e}(f),s)},tt=function(){return[i,o,a,s,c,l,d,g,C,E,y,D,b,k,P,R,O,A,I,F,Rt,at,st]},et=function(){return[i,o,a,s,c,l,f,m,T,x,S,w,y,V,q,b,L,M,N,j,U,B,z,W,O,A,H,K,St,at]},nt=function(){return[gt,vt,pt,Y,G]},rt=function(){return[mt,yt]},it=function(){return[_t,pt,Z]},ot=function(){return[bt]},at=function(t){return postMessage(t,[t.buffer])},st=function(t){return t&&t.size&&new i(t.size)},ct=function(t,e,n,r,i,o){var a=Q(n,r,i,(function(t,e){a.terminate(),o(t,e)}));return a.postMessage([t,e],e.consume?[t.buffer]:[]),function(){a.terminate()}},lt=function(t){return t.ondata=function(t,e){return postMessage([t,e],[t.buffer])},function(e){return t.push(e.data[0],e.data[1])}},ut=function(t,e,n,r,i){var o,a=Q(t,r,i,(function(t,n){t?(a.terminate(),e.ondata.call(e,t)):(n[1]&&a.terminate(),e.ondata.call(e,t,n[0],n[1]))}));a.postMessage(n),e.push=function(t,n){e.ondata||I(5),o&&e.ondata(I(4,0,1),null,!!n),a.postMessage([t,o=n],[t.buffer])},e.terminate=function(){a.terminate()}},ht=function(t,e){return t[e]|t[e+1]<<8},dt=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},ft=function(t,e){return dt(t,e)+4294967296*dt(t,e+4)},pt=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},gt=function(t,e){var n=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:9==e.level?2:0,t[9]=3,0!=e.mtime&&pt(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),n){t[3]=8;for(var r=0;r<=n.length;++r)t[r+10]=n.charCodeAt(r)}},mt=function(t){31==t[0]&&139==t[1]&&8==t[2]||I(6,"invalid gzip data");var e=t[3],n=10;4&e&&(n+=t[10]|2+(t[11]<<8));for(var r=(e>>3&1)+(e>>4&1);r>0;r-=!t[n++]);return n+(2&e)},yt=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},vt=function(t){return 10+(t.filename&&t.filename.length+1||0)},_t=function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},bt=function(t){(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&I(6,"invalid zlib data"),32&t[1]&&I(6,"invalid zlib data: preset dictionaries not supported")};function xt(t,e){return e||"function"!=typeof t||(e=t,t={}),this.ondata=e,t}var wt=function(){function t(t,e){e||"function"!=typeof t||(e=t,t={}),this.ondata=e,this.o=t||{}}return t.prototype.p=function(t,e){this.ondata(K(t,this.o,0,0,!e),e)},t.prototype.push=function(t,e){this.ondata||I(5),this.d&&I(4),this.d=e,this.p(t,e||!1)},t}();var Tt=function(){return function(t,e){ut([et,function(){return[lt,wt]}],this,xt.call(this,t,e),(function(t){var e=new wt(t.data);onmessage=lt(e)}),6)}}();function Ct(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[et],(function(t){return at(St(t.data[0],t.data[1]))}),0,n)}function St(t,e){return K(t,e||{},0,0)}var Et=function(){function t(t){this.s={},this.p=new i(0),this.ondata=t}return t.prototype.e=function(t){this.ondata||I(5),this.d&&I(4);var e=this.p.length,n=new i(e+t.length);n.set(this.p),n.set(t,e),this.p=n},t.prototype.c=function(t){this.d=this.s.i=t||!1;var e=this.s.b,n=F(this.p,this.o,this.s);this.ondata(A(n,e,this.s.b),this.d),this.o=A(n,this.s.b-32768),this.s.b=this.o.length,this.p=A(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,e){this.e(t),this.c(e)},t}();var kt=function(){return function(t){this.ondata=t,ut([tt,function(){return[lt,Et]}],this,0,(function(){var t=new Et;onmessage=lt(t)}),7)}}();function Pt(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[tt],(function(t){return at(Rt(t.data[0],st(t.data[1])))}),1,n)}function Rt(t,e){return F(t,e)}var Ot=function(){function t(t,e){this.c=Y(),this.l=0,this.v=1,wt.call(this,t,e)}return t.prototype.push=function(t,e){wt.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){this.c.p(t),this.l+=t.length;var n=K(t,this.o,this.v&&vt(this.o),e&&8,!e);this.v&&(gt(n,this.o),this.v=0),e&&(pt(n,n.length-8,this.c.d()),pt(n,n.length-4,this.l)),this.ondata(n,e)},t}();var At=function(){return function(t,e){ut([et,nt,function(){return[lt,wt,Ot]}],this,xt.call(this,t,e),(function(t){var e=new Ot(t.data);onmessage=lt(e)}),8)}}();function Dt(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[et,nt,function(){return[It]}],(function(t){return at(It(t.data[0],t.data[1]))}),2,n)}function It(t,e){e||(e={});var n=Y(),r=t.length;n.p(t);var i=K(t,e,vt(e),8),o=i.length;return gt(i,e),pt(i,o-8,n.d()),pt(i,o-4,r),i}var Ft=function(){function t(t){this.v=1,Et.call(this,t)}return t.prototype.push=function(t,e){if(Et.prototype.e.call(this,t),this.v){var n=this.p.length>3?mt(this.p):4;if(n>=this.p.length&&!e)return;this.p=this.p.subarray(n),this.v=0}e&&(this.p.length<8&&I(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),Et.prototype.c.call(this,e)},t}();var Lt=function(){return function(t){this.ondata=t,ut([tt,rt,function(){return[lt,Et,Ft]}],this,0,(function(){var t=new Ft;onmessage=lt(t)}),9)}}();function Mt(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[tt,rt,function(){return[Nt]}],(function(t){return at(Nt(t.data[0]))}),3,n)}function Nt(t,e){return F(t.subarray(mt(t),-8),e||new i(yt(t)))}var jt=function(){function t(t,e){this.c=Z(),this.v=1,wt.call(this,t,e)}return t.prototype.push=function(t,e){wt.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){this.c.p(t);var n=K(t,this.o,this.v&&2,e&&4,!e);this.v&&(_t(n,this.o),this.v=0),e&&pt(n,n.length-4,this.c.d()),this.ondata(n,e)},t}();function Ut(t,e){e||(e={});var n=Z();n.p(t);var r=K(t,e,2,4);return _t(r,e),pt(r,r.length-4,n.d()),r}var Bt=function(){function t(t){this.v=1,Et.call(this,t)}return t.prototype.push=function(t,e){if(Et.prototype.e.call(this,t),this.v){if(this.p.length<2&&!e)return;this.p=this.p.subarray(2),this.v=0}e&&(this.p.length<4&&I(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Et.prototype.c.call(this,e)},t}();var zt=function(){return function(t){this.ondata=t,ut([tt,ot,function(){return[lt,Et,Bt]}],this,0,(function(){var t=new Bt;onmessage=lt(t)}),11)}}();function Wt(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&I(7),ct(t,e,[tt,ot,function(){return[Vt]}],(function(t){return at(Vt(t.data[0],st(t.data[1])))}),5,n)}function Vt(t,e){return F((bt(t),t.subarray(2,-4)),e)}var qt=function(){function t(t){this.G=Ft,this.I=Et,this.Z=Bt,this.ondata=t}return t.prototype.push=function(t,e){if(this.ondata||I(5),this.s)this.s.push(t,e);else{if(this.p&&this.p.length){var n=new i(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var r=this,o=function(){r.ondata.apply(r,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(o):new this.Z(o),this.s.push(this.p,e),this.p=null}}},t}();var Ht=function(t,e,n,r){for(var o in t){var a=t[o],s=e+o;a instanceof i?n[s]=[a,r]:Array.isArray(a)?n[s]=[a[0],X(r,a[1])]:Ht(a,s+"/",n,r)}},Gt="undefined"!=typeof TextEncoder&&new TextEncoder,Yt="undefined"!=typeof TextDecoder&&new TextDecoder,Zt=0;try{Yt.decode(q,{stream:!0}),Zt=1}catch(t){}var Kt=function(t){for(var e="",n=0;;){var r=t[n++],i=(r>127)+(r>223)+(r>239);if(n+i>t.length)return[e,A(t,n-1)];i?3==i?(r=((15&r)<<18|(63&t[n++])<<12|(63&t[n++])<<6|63&t[n++])-65536,e+=String.fromCharCode(55296|r>>10,56320|1023&r)):e+=1&i?String.fromCharCode((31&r)<<6|63&t[n++]):String.fromCharCode((15&r)<<12|(63&t[n++])<<6|63&t[n++]):e+=String.fromCharCode(r)}},Xt=function(){function t(t){this.ondata=t,Zt?this.t=new TextDecoder:this.p=q}return t.prototype.push=function(t,e){if(this.ondata||I(5),e=!!e,this.t)return this.ondata(this.t.decode(t,{stream:!0}),e),void(e&&(this.t.decode().length&&I(8),this.t=null));this.p||I(4);var n=new i(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length);var r=Kt(n),o=r[0],a=r[1];e?(a.length&&I(8),this.p=null):this.p=a,this.ondata(o,e)},t}();function $t(t,e){if(e){for(var n=new i(t.length),r=0;r<t.length;++r)n[r]=t.charCodeAt(r);return n}if(Gt)return Gt.encode(t);var o=t.length,a=new i(t.length+(t.length>>1)),s=0,c=function(t){a[s++]=t};for(r=0;r<o;++r){if(s+5>a.length){var l=new i(s+8+(o-r<<1));l.set(a),a=l}var u=t.charCodeAt(r);u<128||e?c(u):u<2048?(c(192|u>>6),c(128|63&u)):u>55295&&u<57344?(c(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++r))>>18),c(128|u>>12&63),c(128|u>>6&63),c(128|63&u)):(c(224|u>>12),c(128|u>>6&63),c(128|63&u))}return A(a,0,s)}function Jt(t,e){if(e){for(var n="",r=0;r<t.length;r+=16384)n+=String.fromCharCode.apply(null,t.subarray(r,r+16384));return n}if(Yt)return Yt.decode(t);var i=Kt(t),o=i[0];return i[1].length&&I(8),o}e.T8=Jt;var Qt=function(t){return 1==t?3:t<6?2:9==t?1:0},te=function(t,e){return e+30+ht(t,e+26)+ht(t,e+28)},ee=function(t,e,n){var r=ht(t,e+28),i=Jt(t.subarray(e+46,e+46+r),!(2048&ht(t,e+8))),o=e+46+r,a=dt(t,e+20),s=n&&4294967295==a?ne(t,o):[a,dt(t,e+24),dt(t,e+42)],c=s[0],l=s[1],u=s[2];return[ht(t,e+10),c,l,i,o+ht(t,e+30)+ht(t,e+32),u]},ne=function(t,e){for(;1!=ht(t,e);e+=4+ht(t,e+2));return[ft(t,e+12),ft(t,e+4),ft(t,e+20)]},re=function(t){var e=0;if(t)for(var n in t){var r=t[n].length;r>65535&&I(9),e+=r+4}return e},ie=function(t,e,n,r,i,o,a,s){var c=r.length,l=n.extra,u=s&&s.length,h=re(l);pt(t,e,null!=a?33639248:67324752),e+=4,null!=a&&(t[e++]=20,t[e++]=n.os),t[e]=20,e+=2,t[e++]=n.flag<<1|(null==o&&8),t[e++]=i&&8,t[e++]=255&n.cpr,t[e++]=n.cpr>>8;var d=new Date(null==n.mtime?Date.now():n.mtime),f=d.getFullYear()-1980;if((f<0||f>119)&&I(10),pt(t,e,f<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>>1),e+=4,null!=o&&(pt(t,e,n.crc),pt(t,e+4,o),pt(t,e+8,n.size)),pt(t,e+12,c),pt(t,e+14,h),e+=16,null!=a&&(pt(t,e,u),pt(t,e+6,n.attrs),pt(t,e+10,a),e+=14),t.set(r,e),e+=c,h)for(var p in l){var g=l[p],m=g.length;pt(t,e,+p),pt(t,e+2,m),t.set(g,e+4),e+=4+m}return u&&(t.set(s,e),e+=u),e},oe=function(t,e,n,r,i){pt(t,e,101010256),pt(t,e+8,n),pt(t,e+10,n),pt(t,e+12,r),pt(t,e+16,i)},ae=function(){function t(t){this.filename=t,this.c=Y(),this.size=0,this.cpr=0}return t.prototype.process=function(t,e){this.ondata(null,t,e)},t.prototype.push=function(t,e){this.ondata||I(5),this.c.p(t),this.size+=t.length,e&&(this.crc=this.c.d()),this.process(t,e||!1)},t}();var se=function(){function t(t,e){var n=this;e||(e={}),ae.call(this,t),this.d=new Tt(e,(function(t,e,r){n.ondata(t,e,r)})),this.cpr=8,this.flag=Qt(e.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,e){this.d.push(t,e)},t.prototype.push=function(t,e){ae.prototype.push.call(this,t,e)},t}();var ce=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var e=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+8*(1&this.d),0,1),null,!1);else{var n=$t(t.filename),r=n.length,o=t.comment,a=o&&$t(o),s=r!=t.filename.length||a&&o.length!=a.length,c=r+re(t.extra)+30;r>65535&&this.ondata(I(11,0,1),null,!1);var l=new i(c);ie(l,0,t,n,s);var u=[l],h=function(){for(var t=0,n=u;t<n.length;t++){var r=n[t];e.ondata(null,r,!1)}u=[]},d=this.d;this.d=0;var f=this.u.length,p=X(t,{f:n,u:s,o:a,t:function(){t.terminate&&t.terminate()},r:function(){if(h(),d){var t=e.u[f+1];t?t.r():e.d=1}d=1}}),g=0;t.ondata=function(n,r,o){if(n)e.ondata(n,r,o),e.terminate();else if(g+=r.length,u.push(r),o){var a=new i(16);pt(a,0,134695760),pt(a,4,t.crc),pt(a,8,g),pt(a,12,t.size),u.push(a),p.c=g,p.b=c+g+16,p.crc=t.crc,p.size=t.size,d&&p.r(),d=1}else d&&h()},this.u.push(p)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(I(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,e=0,n=0,r=0,o=this.u;r<o.length;r++){n+=46+(l=o[r]).f.length+re(l.extra)+(l.o?l.o.length:0)}for(var a=new i(n+22),s=0,c=this.u;s<c.length;s++){var l=c[s];ie(a,t,l,l.f,l.u,l.c,e,l.o),t+=46+l.f.length+re(l.extra)+(l.o?l.o.length:0),e+=l.b}oe(a,t,this.u.length,n,e),this.ondata(null,a,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,e=this.u;t<e.length;t++){e[t].t()}this.d=2},t}();e.Xo=function(t,e){e||(e={});var n={},r=[];Ht(t,"",n,e);var o=0,a=0;for(var s in n){var c=n[s],l=c[0],u=c[1],h=0==u.level?0:8,d=(C=$t(s)).length,f=u.comment,p=f&&$t(f),g=p&&p.length,m=re(u.extra);d>65535&&I(11);var y=h?St(l,u):l,v=y.length,_=Y();_.p(l),r.push(X(u,{size:l.length,crc:_.d(),c:y,f:C,m:p,u:d!=s.length||p&&f.length!=g,o,cpr:h})),o+=30+d+m+v,a+=76+2*(d+m)+(g||0)+v}for(var b=new i(a+22),x=o,w=a-o,T=0;T<r.length;++T){var C=r[T];ie(b,C.o,C,C.f,C.u,C.c.length);var S=30+C.f.length+re(C.extra);b.set(C.c,C.o+S),ie(b,o,C,C.f,C.u,C.c.length,C.o,C.m),o+=16+S+(C.m?C.m.length:0)}return oe(b,o,r.length,w,x),b};var le=function(){function t(){}return t.prototype.push=function(t,e){this.ondata(null,t,e)},t.cpr=0,t}();var ue=function(){function t(t,e){var n=this;e<32e4?this.i=new Et((function(t,e){n.ondata(null,t,e)})):(this.i=new kt((function(t,e,r){n.ondata(t,e,r)})),this.terminate=this.i.terminate)}return t.prototype.push=function(t,e){this.i.terminate&&(t=A(t,0)),this.i.push(t,e)},t.cpr=8,t}();var he=function(){function t(t){this.onfile=t,this.k=[],this.o={0:le},this.p=q}return t.prototype.push=function(t,e){var n=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var r=Math.min(this.c,t.length),o=t.subarray(0,r);if(this.c-=r,this.d?this.d.push(o,!this.c):this.k[0].push(o),(t=t.subarray(r)).length)return this.push(t,e)}else{var a=0,s=0,c=void 0,l=void 0;this.p.length?t.length?((l=new i(this.p.length+t.length)).set(this.p),l.set(t,this.p.length)):l=this.p:l=t;for(var u=l.length,h=this.c,d=h&&this.d,f=function(){var t,e=dt(l,s);if(67324752==e){a=1,c=s,p.d=null,p.c=0;var r=ht(l,s+6),i=ht(l,s+8),o=2048&r,d=8&r,f=ht(l,s+26),g=ht(l,s+28);if(u>s+30+f+g){var m=[];p.k.unshift(m),a=2;var y,v=dt(l,s+18),_=dt(l,s+22),b=Jt(l.subarray(s+30,s+=30+f),!o);4294967295==v?(t=d?[-2]:ne(l,s),v=t[0],_=t[1]):d&&(v=-1),s+=g,p.c=v;var x={name:b,cpr:i,start:function(){if(x.ondata||I(5),v){var t=n.o[i];t||x.ondata(I(14,"unknown cpr type "+i,1),null,!1),(y=v<0?new t(b):new t(b,v,_)).ondata=function(t,e,n){x.ondata(t,e,n)};for(var e=0,r=m;e<r.length;e++){var o=r[e];y.push(o,!1)}n.k[0]==m&&n.c?n.d=y:y.push(q,!0)}else x.ondata(null,q,!0)},terminate:function(){y&&y.terminate&&y.terminate()}};v>=0&&(x.size=v,x.ors=_),p.onfile(x)}return"break"}if(h){if(134695760==e)return c=s+=12+(-2==h&&8),a=3,p.c=0,"break";if(33639248==e)return c=s-=4,a=3,p.c=0,"break"}},p=this;s<u-4;++s){if("break"===f())break}if(this.p=q,h<0){var g=a?l.subarray(0,c-12-(-2==h&&8)-(134695760==dt(l,c-16)&&4)):l.subarray(0,s);d?d.push(g,!!a):this.k[+(2==a)].push(g)}if(2&a)return this.push(l.subarray(s),e);this.p=l.subarray(s)}e&&(this.c&&I(13),this.p=null)},t.prototype.register=function(t){this.o[t.cpr]=t},t}();var de="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};e.GZ=function(t,e){for(var n={},r=t.length-22;101010256!=dt(t,r);--r)(!r||t.length-r>65558)&&I(13);var o=ht(t,r+8);if(!o)return{};var a=dt(t,r+16),s=4294967295==a;s&&(r=dt(t,r-12),101075792!=dt(t,r)&&I(13),o=dt(t,r+32),a=dt(t,r+48));for(var c=e&&e.filter,l=0;l<o;++l){var u=ee(t,a,s),h=u[0],d=u[1],f=u[2],p=u[3],g=u[4],m=u[5],y=te(t,m);a=g,c&&!c({name:p,size:d,ors:f,cpr:h})||(h?8==h?n[p]=Rt(t.subarray(y,y+d),new i(f)):I(14,"unknown cpr type "+h):n[p]=A(t,y,y+d))}return n}},7872:(t,e)=>{var n={};e.default=function(t,e,r,i,o){var a=new Worker(n[e]||(n[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var e=t.data,n=e.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],o(r,null)}else o(null,e)},a.postMessage(r,i),a}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=e,t=[],r.O=(e,n,i,o)=>{if(!n){var a=1/0;for(u=0;u<t.length;u++){for(var[n,i,o]=t[u],s=!0,c=0;c<n.length;c++)(!1&o||a>=o)&&Object.keys(r.O).every((t=>r.O[t](n[c])))?n.splice(c--,1):(s=!1,o<a&&(a=o));if(s){t.splice(u--,1);var l=i();void 0!==l&&(e=l)}}return e}o=o||0;for(var u=t.length;u>0&&t[u-1][2]>o;u--)t[u]=t[u-1];t[u]=[n,i,o]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t={826:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var i,o,[a,s,c]=n,l=0;if(a.some((e=>0!==t[e]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(c)var u=c(r)}for(e&&e(n);l<a.length;l++)o=a[l],r.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return r.O(u)},n=self.webpackChunktencentcloud_webar=self.webpackChunktencentcloud_webar||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var i=r.O(void 0,[647,321],(()=>r(4703))),o=(i=r.O(i)).ry,a=i.Cz,s=i.T$,c=i.Mj,l=i.UZ,u=i.bk,h=i.Iq,d=i.aR,f=i._$;export{o as ArSdk,a as BEAUTIFY_OPTIONS,s as BLEND_MODES,c as ENTRY_TYPES,l as EntryType,u as OUTPUT_TYPES,h as authorize,d as authorizeWxCamera,f as setRootPath};