tencentcloud-webar 1.0.23-2 → 1.0.23-21
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.
- package/auth.ts +1 -32
- package/build-esm/450.js +1 -0
- package/build-esm/682.js +1 -0
- package/build-esm/avatar.js +1 -1
- package/build-esm/hand3d.js +1 -0
- package/build-esm/index.js +1 -1
- package/build-esm/lib-3d.js +2 -2
- package/build-esm/sticker3d.js +1 -1
- package/build-umd/avatar.umd.js +3 -3
- package/build-umd/hand-3d.umd.729057d271d28c2b0321.js +6 -0
- package/build-umd/stickers-3d.umd.js +4 -4
- package/build-umd/webar-sdk.umd.js +2 -2
- package/miniprogram_dist/0.wasm.br +0 -0
- package/miniprogram_dist/core.js +1 -1
- package/miniprogram_dist/index.js +1 -1
- package/miniprogram_dist/lib.js +1 -1
- package/miniprogram_dist/plugin-3d.js +1 -1
- package/miniprogram_dist/webar.js +1 -1
- package/miniprogram_dist/worker/tick.worker.js +1 -1
- package/package.json +3 -1
- package/readme.md +9 -9
- package/webpack/esm/hand.dev.js +150 -0
- package/webpack/wx/hand.wx.dev.js +165 -0
- package/build-esm/542.js +0 -1
- package/build-esm/avatar.worker.js +0 -6
- package/build-esm/sticker3d.worker.js +0 -6
- package/miniprogram_dist/0.wasm +0 -0
- package/miniprogram_dist/auth.js +0 -1
- package/miniprogram_dist/lib-3d.js +0 -7
|
Binary file
|
package/miniprogram_dist/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var self = wx;function a4b(a,b){var c=a4a();return a4b=function(d,e){d=d-0xe1;var f=c[d];return f;},a4b(a,b);}function a4a(){var fs=['max','texture','Object\x20is\x20not\x20iterable.','load3d','destroyForConosle','pop','drawCircle','filterTarget','reset','disableEffects','apply3d','lineTo','next','removeBackground','getOwnPropertyDescriptor','_lipVertex','_initLipMask','data','irisBlendMode','_mode3d','_filterTarget','setEffectJSON','_avatar3d','Shader','MIPMAP_MODES','(baseColor.rgb,\x20makeupColor.rgb/makeupColor.a\x20,\x20makeupColor.a);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reject','UNSIGNED_BYTE','value','\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20aVertexPosition;\x0a\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20aUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20mat3\x20translationMatrix;\x0a\x20\x20\x20\x20\x20\x20uniform\x20mat3\x20projectionMatrix;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vUvs\x20=\x20aUvs;\x0a\x20\x20\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\x20\x20}','mouthShut','getUrl','Loader','name','mirror','debugDraw2','_baseRenderTexture','meta','MakeupLayer','baseTexture','__proto__','_faceLandmarks','getCircle','render','RIGHT_IRIS','join','scaleMode','webgl','579BZcUyy','\x0a\x20\x20\x20\x20uniform\x20float\x20parentIntensity;\x0a\x20\x20\x20\x20uniform\x20int\x20enable;\x0a\x20\x20\x20\x20uniform\x20sampler2D\x20baseImage;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20uniform\x20sampler2D\x20uSamplerIris;\x0a\x0a\x20\x20\x20\x20//\x20uniform\x20int\x20mirror;\x0a\x20\x20\x20\x20uniform\x20vec2\x20imageOffset;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20','_loader','\x20*\x20parentIntensity;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20makeupColor\x20=\x20texture2D(uSamplerMakeup','_backgroundVR','uniform\x20float\x20intensity','checkAnimated','Canvas','loadLib3d','renderer\x20apply\x20effect','log','_createFilterSync','initThreeApp','convertTo3d','_getLoader','wxAnchorArea',',\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20a','61212xlrmIn','_maskRenderTexture','mount','resize','\x0a\x20\x20\x20\x20','BaseRenderTexture','destroyed','\x0a\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20varying\x20vec2\x20bUvs;\x0a\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20','_stickerTarget','_removeFilter','blendMode_1','LEFT_EYE_ORDER','initAvatarApp','maskSprite','handleLoading','_angles','_canvas','defineProperty','landmarks','_setup','destroy','_mirrorFilter','add','removeChild','animationSpeed','keys','_renderer\x20waiting\x20for\x20stage','concat','isLivePusher','loadingIconOptions','Graphics','angles','_landmarks','destroyAvatar','_loadLipImage','741556BrJAao','call','latestEffectUrls','getCanvas','lut','uniform\x20sampler2D\x20uSamplerMakeup','getTexture','anchor','isPureFilter','loadImage','657912kKOYvo','findIndex','exclusiveFilter','parentIntensity','removeFromCache','hasOwnProperty','setPlanes','\x20time:','_stage','metadata','_lipMaskIns','LINEAR','preloadEffects','fragmentSrc','image','iterator','addAttribute','_isVR','content.json','localSpriteSheets','\x20is\x20not\x20a\x20constructor\x20or\x20null','_renderer\x20waiting\x20for\x20setup','Effect','preload','getPixels','_filtersActived','_container','_finalContainer','find','removeForConsole','_effects','0015','create','decorate','number','aVertexPosition','lipMask','setIrisProps','_mesh','push','lipVertex','hideLoading','_src','wxAnchorOffset','77XVuIfz','_meshVertex','object','require\x203d\x20lib','162VNYHAj','backgroundType','app3d','beginFill','design:paramtypes','shader','_url','\x20=\x20texture2D(uSamplerMakeup','width','filterActived','error','4588CvGNQx','readJSON','euler','mesh',',\x20vUvs)\x20*\x20realIntensity','catch','_lipMaskMesh','points','_meshVertexTimer','OFF','background','setOptions','src','_getConfig','split','webpackChunktencentcloud_webar','clearTexture','_renderer','blendshapes','Mesh','options','filterActivedEffect',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(makeupColor.a>0.)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20混合\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20baseColor.rgb\x20=\x20blend','_target','clone','\x20=\x20color','[@#$]\x20AR\x20Renderer\x20Constructed','geometry','Texture','_leftIris','intensity','_makeupContainer','function','_intensity','maxLConSize','Spritesheet','forEach','getDisplay','design:type','_filters','19356HpzqMY','_renderer\x20waiting\x20for\x20renderer','_getMask','_getPixelPosition','height','setPrototypeOf','objectSrc','_debug','showLoading','return','debounceTimer','uSamplerMakeup','maxRConSize','irisRenderTexture','_rightIris','mask','prototype','_lipMask','\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20if\x20(enable\x20==\x200)\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\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20todo:适配镜像与非镜像\x0a\x20\x20\x20\x20\x20\x20vec2\x20baseCoord\x20=\x20bUvs;\x0a\x20\x20\x20\x20\x20\x20baseCoord\x20+=\x20imageOffset;\x0a\x20\x20\x20\x20\x20\x20//\x20if\x20(mirror\x20==\x201)\x20{\x0a\x20\x20\x20\x20\x20\x20//\x20\x20\x20baseCoord\x20=\x20vec2(1.0\x20-\x20bUvs.x,\x20bUvs.y);\x0a\x20\x20\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x20\x20vec4\x20baseColor\x20=\x20texture2D(baseImage,\x20\x20baseCoord);\x0a\x0a\x20\x20\x20\x20\x20\x20vec4\x20makeupColor\x20=\x20vec4(0.0);\x0a\x0a\x20\x20\x20\x20\x20\x20','_irises','beautify','renderer\x20resize','includes','_jsonIntensity','timeEnd','Sticker','Class\x20extends\x20value\x20','imageOffset','_config','scale','trigger','position','alpha','resources','setStickerProps','type','label','_applyFilter','throw','loading','_getIris','show','loadFilter','sticker','Sprite','_data','size','iris','createOffscreenCanvas','textures','then','_parentIntensity','Renderer','_dir','_makeup','indexOf','SCALE_MODES','output','resolve','key','load','sticker3d','_name','_stickers','_sticker','_maskGraphics','(baseColor.rgb,\x20irisColor.rgb/irisColor.a\x20,\x20irisColor.a);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20','_baseContainer','renderTexture','renderer\x20parse\x20effect','updateGeometry','enableLoadingIcon','_makeupMeshes','setMakeup','lib3dLoaded','hasFilter','min','Symbol.iterator\x20is\x20not\x20defined.','constructor','_loadImages','getConfigByKeys','IrisLayer','lips','Container','window','debug\x20draw\x202','length','filterCallback','facelandmarks','_key','POINTS_MAP','waiting\x20for\x20AI\x20init...','_baseSprite','left_eye_center','loadStickers','LEFT_IRIS','splice','every','end','map','_options','mipmap','renderer','undefined','_applyMakeup','init','applyBackground','visible','offset','1689985KBQUbX','sent','_removeMakeup','info','clear','from','setExclusiveFilter','switchMode','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color','read\x20texture\x20cache','getBuffer','lineStyle','time','set','reCorrectAvatar','some','faceLandMarks','meshVertex','setup','endFill','done','_drawMaskGraphics','_maskRenderTexure','filterIntensity','Generator\x20is\x20already\x20executing.','_makeupRenderTexture','sticker\x20blend','drawMeshBatch','RIGHT_EYE_ORDER','addToCache','needDetection','appendChild','segmentation','filter','blend','440260FYmmWR','all','update','plugin3d','tickMesh','ReuseableLipMask','floor','_app3d','lipmesh','_applyed','Makeup','blob:','hasEyeMakeup','currentTime','RenderTexture','continue','jsonIntensity','moveTo','initRenderContext','_faceLandMarks','right_eye_center','makeup','default','addChild','apply','getIndeLoader','TextureCache','aUvs','_json','checkSpriteSheetJSON','_maskSprite','loaded','StickerLayer','JSONEffect\x20blob\x20texture','renderMesh','_setEffect','_visible','_camera','uniforms','download','disableExclusiveFilter','utils','\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20sampler2D\x20uSamplerMakeup;\x0a\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20texture2D(uSamplerMakeup,\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20}','remove','Geometry','instance','setAvatar','effect\x20load\x20error','random','enable','WHITE','loadSticker3d','_getMeshLayerByBlendMode','_cacheMask','getDataConfig','SET_INTENSITY_ERROR','logTime','tick','trys','\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20混合美瞳\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20irisColor\x20=\x20texture2D(uSamplerIris,\x20bUvs);\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(irisColor.a\x20>\x200.)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20baseColor.rgb\x20=\x20blend','design:returntype','parse','ops','enableEffects','filters','uSamplerIris','baseImage','_destroyed'];a4a=function(){return fs;};return a4a();}var a4bs=a4b;(function(a,b){var br=a4b,c=a();while(!![]){try{var d=parseInt(br(0x199))/0x1+parseInt(br(0x1bc))/0x2+parseInt(br(0x188))/0x3*(parseInt(br(0x201))/0x4)+parseInt(br(0xf1))/0x5+-parseInt(br(0x229))/0x6*(parseInt(br(0x1f2))/0x7)+parseInt(br(0x1c6))/0x8+-parseInt(br(0x1f6))/0x9*(parseInt(br(0x114))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4a,0x3bf8b),(self['webpackChunktencentcloud_webar']=self[a4bs(0x210)]||[])[a4bs(0x1ed)]([[0x141],{0x1419:(a0,a1,a2)=>{var dk=a4bs;a2['d'](a1,{'g':()=>aT,'b':()=>aS});var a3,a4=a2(0x4b6),a5=a2(0x1f15),a6=a2(0xbe4),a7=a2(0x15a0),a8=a2(0x24f3),a9=a2(0x2558),aa=a2(0x543),ab=a2(0x43c),ac=a2(0xf09),ad=(a3=function(aU,aV){var bt=a4b;return a3=Object[bt(0x22e)]||{'__proto__':[]}instanceof Array&&function(aW,aX){aW['__proto__']=aX;}||function(aW,aX){var bu=bt;for(var aY in aX)Object[bu(0x239)][bu(0x1cb)][bu(0x1bd)](aX,aY)&&(aW[aY]=aX[aY]);},a3(aU,aV);},function(aU,aV){var bv=a4b;if(bv(0x221)!=typeof aV&&null!==aV)throw new TypeError('Class\x20extends\x20value\x20'+String(aV)+bv(0x1da));function aW(){var bw=bv;this[bw(0x277)]=aU;}a3(aU,aV),aU['prototype']=null===aV?Object['create'](aV):(aW[bv(0x239)]=aV[bv(0x239)],new aW());}),ae=function(aU,aV,aW,aX){var bx=a4b,aY,aZ=arguments[bx(0x27f)],b0=aZ<0x3?aV:null===aX?aX=Object['getOwnPropertyDescriptor'](aV,aW):aX;if('object'==typeof Reflect&&'function'==typeof Reflect[bx(0x1e7)])b0=Reflect[bx(0x1e7)](aU,aV,aW,aX);else{for(var b1=aU[bx(0x27f)]-0x1;b1>=0x0;b1--)(aY=aU[b1])&&(b0=(aZ<0x3?aY(b0):aZ>0x3?aY(aV,aW,b0):aY(aV,aW))||b0);}return aZ>0x3&&b0&&Object[bx(0x1aa)](aV,aW,b0),b0;},af=function(aU,aV){var by=a4b;if(by(0x1f4)==typeof Reflect&&'function'==typeof Reflect[by(0x1cf)])return Reflect['metadata'](aU,aV);},ag=(function(){var bA=a4b;function aU(aV,aW,aX,aY,aZ,b0){var bz=a4b;this[bz(0x157)]=!0x1,this[bz(0x24c)]=bz(0x129),this[bz(0x25c)]=0x1,this[bz(0x240)]=0x1,this[bz(0x25a)]=[],this['_dir']=aW,this[bz(0xe8)]=aV,this[bz(0x1e0)]=aX,this['_lipMaskTexture']=b0,this['renderer']=aY,this[bz(0x24c)]=aZ||bz(0x129);}return Object[bA(0x1aa)](aU[bA(0x239)],'parentIntensity',{'get':function(){return this['_parentIntensity'];},'set':function(aV){var bB=bA;this[bB(0x1fb)]&&(this[bB(0x1fb)][bB(0x13a)][bB(0x1c9)]=aV),this[bB(0x25c)]=aV;},'enumerable':!0x1,'configurable':!0x0}),Object[bA(0x1aa)](aU[bA(0x239)],'lipMask',{'set':function(aV){var bC=bA;null===aV?(this[bC(0x1ec)][bC(0x1b0)](this[bC(0x149)]),this[bC(0x1ec)][bC(0x238)]=aV):(this['_mesh'][bC(0x12b)](aV),this['_mesh']['mask']=aV,this['_cacheMask']=aV);},'enumerable':!0x1,'configurable':!0x0}),Object[bA(0x1aa)](aU[bA(0x239)],bA(0xef),{'set':function(aV){var bD=bA;this[bD(0x1fb)]&&(this[bD(0x1fb)][bD(0x13a)][bD(0x145)]=aV?0x1:0x0);},'enumerable':!0x1,'configurable':!0x0}),aU[bA(0x239)][bA(0x26f)]=function(aV){var bE=bA;this[bE(0x157)];},aU[bA(0x239)][bA(0x136)]=function(){},aU[bA(0x239)][bA(0x10c)]=function(aV,aW){var bF=bA,aX=this;if(!this[bF(0x157)]){var aY=Array[bF(0xf6)](aV['reduce'](function(b6,b7){var bG=bF;return b6[bG(0x1af)](b7[bG(0x113)]),b6;},new Set()));this[bF(0x236)]&&!aY[bF(0x23f)](this[bF(0x16a)])&&aY['push'](this[bF(0x16a)]);var aZ=bF(0x1a0)['concat'](aV[bF(0xe7)](function(b6,b7){var bH=bF;return bH(0x1c1)[bH(0x1b4)](b7,';');})[bF(0x185)]('\x0a'),bF(0x19d))['concat'](aV[bF(0xe7)](function(b6,b7){var bI=bF;return bI(0x18d)[bI(0x1b4)](b7,';');})[bF(0x185)]('\x0a'),bF(0x189))[bF(0x1b4)](aY['map'](function(b6){var bJ=bF;return a9['Lc'][b6][bJ(0x1fb)];})[bF(0x185)]('\x0a'),bF(0x23b))[bF(0x1b4)](aV[bF(0xe7)](function(b6,b7){var bK=bF;return bK(0xf9)[bK(0x1b4)](b7,bK(0x1fd))['concat'](b7,bK(0x198))['concat'](b7,bK(0x21a))[bK(0x1b4)](b7,'.a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20realIntensity')['concat'](b7,'\x20=\x20intensity')[bK(0x1b4)](b7,bK(0x18b))[bK(0x1b4)](b7,bK(0x205))[bK(0x1b4)](b7,bK(0x217))['concat'](a9['Lc'][b6['blend']][bK(0x264)],bK(0x171));})[bF(0x185)]('\x0a'),'\x0a\x0a\x20\x20\x20\x20\x20\x20')[bF(0x1b4)](this[bF(0x236)]?bF(0x14f)[bF(0x1b4)](a9['Lc'][this[bF(0x16a)]][bF(0x264)],bF(0x26b)):'','\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20输出\x0a\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20baseColor;\x0a\x20\x20\x20\x20}');console[bF(0x192)](bF(0x1d3),aZ);var b0={'enable':0x1};b0[bF(0x1c9)]=this[bF(0x1c9)];var b1=this[bF(0xe8)],b2=b1[bF(0x1fe)],b3=b1[bF(0x22d)];aV['forEach'](function(b6,b7){var bL=bF,b8='default'===aX[bL(0x25e)]?b6[bL(0x20d)]:''[bL(0x1b4)](aX['_dir'],'|')[bL(0x1b4)](b6['src']),b9=a4[bL(0x13d)]['TextureCache'][b8];b0[bL(0x234)[bL(0x1b4)](b7)]=b9,b0[bL(0x21f)[bL(0x1b4)](b7)]=b6[bL(0x21f)],b0[bL(0x156)]=aS[bL(0x17f)],b0[bL(0x257)]=[b2*b3/aS[bL(0x17f)][bL(0x22d)],b3];var ba=aS[bL(0x17f)]['width']*b3/aS[bL(0x17f)][bL(0x22d)];b0[bL(0x244)]=[(ba-b2)/0x2/ba,0x0],aX[bL(0x236)]&&(b0[bL(0x155)]=aX['irisRenderTexture']),aX['textures']['push'](b9);});var b4=a4[bF(0x16f)][bF(0xf6)]('\x0a\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aVertexPosition;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aUvs;\x0a\x0a\x20\x20\x20\x20uniform\x20mat3\x20translationMatrix;\x0a\x20\x20\x20\x20uniform\x20mat3\x20projectionMatrix;\x0a\x20\x20\x20\x20uniform\x20vec2\x20size;\x0a\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20varying\x20vec2\x20bUvs;\x0a\x0a\x20\x20\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\x20bUvs\x20=\x20aVertexPosition.xy\x20/size;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20lipUvs\x20=\x20lipAuvs;\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}',aZ,b0);this['shader']=b4,ac['t'][bF(0x141)]['on']('mirrorChange',function(b6){});var b5=new a9['Kj'](aW,b4);return this[bF(0x1ec)]=b5,this['_container'][bF(0x12b)](b5),b5;}},aU[bA(0x239)]['destroy']=function(){var bM=bA;this[bM(0x157)]=!0x0,this[bM(0x1ec)]&&(this['_mesh'][bM(0x1ad)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this[bM(0x1ec)][bM(0x238)]=null,this[bM(0x1ec)]=null),this[bM(0x107)]&&this['_maskRenderTexure']['destroy'](!0x1);},ae([(0x0,ab['M'])(bA(0x17e)),af('design:type',Function),af(bA(0x1fa),[Array]),af(bA(0x150),void 0x0)],aU[bA(0x239)],bA(0x26f),null),ae([(0x0,ab['M'])('MakeupLayer'),af('design:type',Function),af(bA(0x1fa),[]),af(bA(0x150),void 0x0)],aU[bA(0x239)],bA(0x1ad),null),aU;}()),ah=function(aU){var bO=a4b;function aV(aY,aZ,b0,b1,b2,b3,b4){var bN=a4b,b5=aU['call'](this,aY,aZ,b4)||this;return b5[bN(0x26a)]=new a4[(bN(0x1b7))](),b5[bN(0x223)]=0x0,b5[bN(0x235)]=0x0,b5[bN(0x25c)]=0x1,b5['jsonIntensity']=b2,b5[bN(0x1c2)](b0,b1),b5['_config']=b3,b5[bN(0x26d)]=a4[bN(0x122)][bN(0x1e6)]({'width':aY['width'],'height':aY[bN(0x22d)]}),b5;}var aW,aX;return ad(aV,aU),Object[bO(0x1aa)](aV['prototype'],bO(0x1c9),{'get':function(){return this['_parentIntensity'];},'set':function(aY){var bP=bO;this['_container']&&(this['_container'][bP(0x249)]=this[bP(0x124)]*aY),this['_parentIntensity']=aY;},'enumerable':!0x1,'configurable':!0x0}),Object[bO(0x1aa)](aV[bO(0x239)],bO(0xef),{'set':function(aY){var bQ=bO;this[bQ(0x1e0)][bQ(0xef)]=aY;},'enumerable':!0x1,'configurable':!0x0}),aV[bO(0x239)]['getTexture']=function(aY,aZ){var bR=bO,b0=bR(0x12a)===this[bR(0x25e)]?aY:''[bR(0x1b4)](this[bR(0x25e)],'|')[bR(0x1b4)](aY),b1=a4['utils'][bR(0x12e)][b0],b2=new a9['jy'](b1),b3=new a9['jy'](b1[bR(0x219)]());b2[bR(0x1c3)][bR(0xfe)](0.5),b3[bR(0x1c3)][bR(0xfe)](0.5),this[bR(0x21e)]=b2,this[bR(0x237)]=b3;var b4=new a4['Container']();this[bR(0x26a)]||(this[bR(0x26a)]=new a4['Graphics']()),b4[bR(0x12b)](this[bR(0x26a)]),b4[bR(0x12b)](b2),b4[bR(0x12b)](b3),b4[bR(0x249)]=this[bR(0x1c9)]*this[bR(0x124)],b4['mask']=this['_maskGraphics'],this[bR(0x1e0)]=b4;},aV[bO(0x239)]['setIrisProps']=function(aY,aZ){var bS=bO;if(aY[bS(0x27f)]){var b0=this[bS(0x245)][bS(0x279)](['POINTS_MAP',bS(0xe3),bS(0x184),bS(0x1a4),bS(0x10d)]),b1=b0[bS(0x283)],b2=(b0['LEFT_IRIS'],b0['RIGHT_IRIS'],b0['LEFT_EYE_ORDER']),b3=b0[bS(0x10d)],b4=(b1[bS(0xe1)],b1[bS(0x128)],(0x0,aa['Sp'])(aY[0x34],aY[0x37])),b5=(0x0,aa['Sp'])(aY[0x3a],aY[0x3d]),b6=Math[bS(0x158)](this[bS(0x223)],(0x0,aa['Sp'])(aY[0x48],aY[0x49])/b4),b7=Math[bS(0x158)](this[bS(0x235)],(0x0,aa['Sp'])(aY[0x4b],aY[0x4c])/b5),b8=b4*b6,b9=b4*b6,ba=b5*b7,bb=b5*b7;this[bS(0x223)]=Math[bS(0x158)](Math[bS(0x275)](b6,0.7),0.4),this[bS(0x235)]=Math[bS(0x158)](Math['min'](b7,0.7),0.4);var bc=aS[bS(0x17f)][bS(0x1fe)]*this['_options'][bS(0x22d)]/aS[bS(0x17f)][bS(0x22d)],bd=(0x0,aa['qg'])(aY[0x4a],aY[0x68]),be=(0x0,aa['qg'])(aY[0x4d],aY[0x69]);console[bS(0x192)](bS(0xf0),(bc-this['_options'][bS(0x1fe)])/0x2),bd['x']-=(bc-this[bS(0xe8)][bS(0x1fe)])/0x2,be['x']-=(bc-this[bS(0xe8)]['width'])/0x2;var bf=this[bS(0x21e)],bg=this[bS(0x237)];bf['width']=b8,bf[bS(0x22d)]=b9,bf['x']=bd['x'],bf['y']=bd['y'],bg[bS(0x1fe)]=ba,bg[bS(0x22d)]=bb,bg['x']=be['x'],bg['y']=be['y'],this[bS(0x26a)][bS(0xf5)](),this['_drawMaskGraphics'](b2,aY),this[bS(0x106)](b3,aY),aZ[bS(0x183)](this[bS(0x1e0)],{'renderTexture':this[bS(0x26d)]});}},aV['prototype'][bO(0x106)]=function(aY,aZ){var bT=bO,b0=this,b1=this[bT(0x26a)];b1[bT(0x1f9)](0xff3300),b1[bT(0xfc)](0x1,0xffd900,0x1);var b2=[];aY[bT(0x225)](function(b3,b4){var bU=bT,b5=aZ[b3],b6=b0[bU(0x22c)](b5['x'],b5['y']),b7=b6['x'],b8=b6['y'];b2['push']({'x':b7,'y':b8}),0x0===b4?b1[bU(0x125)](b7,b8):b4===aY[bU(0x27f)]-0x1?(b1['closePath'](),b1[bU(0x104)]()):b1[bU(0x163)](b7,b8);});},aV[bO(0x239)][bO(0x22c)]=function(aY,aZ){return{'x':aY,'y':aZ};},aV[bO(0x239)]['destroy']=function(){var bV=bO;this['_leftIris']&&this[bV(0x21e)][bV(0x1ad)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this[bV(0x237)]&&this[bV(0x237)]['destroy']({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this[bV(0x26a)]&&this['_maskGraphics'][bV(0x1ad)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1});},ae([(0x0,ab['M'])(bO(0x27a)),af(bO(0x227),Function),af(bO(0x1fa),[bO(0x221)==typeof(aW=bO(0xeb)!=typeof Array&&Array)?aW:Object,'function'==typeof(aX=void 0x0!==a4[bO(0x25d)]&&a4['Renderer'])?aX:Object]),af(bO(0x150),void 0x0)],aV[bO(0x239)],bO(0x1eb),null),aV;}(ag),ai=a2(0xc30),aj=function(aU,aV,aW,aX){var bW=a4b,aY,aZ=arguments[bW(0x27f)],b0=aZ<0x3?aV:null===aX?aX=Object[bW(0x166)](aV,aW):aX;if(bW(0x1f4)==typeof Reflect&&'function'==typeof Reflect[bW(0x1e7)])b0=Reflect['decorate'](aU,aV,aW,aX);else{for(var b1=aU[bW(0x27f)]-0x1;b1>=0x0;b1--)(aY=aU[b1])&&(b0=(aZ<0x3?aY(b0):aZ>0x3?aY(aV,aW,b0):aY(aV,aW))||b0);}return aZ>0x3&&b0&&Object['defineProperty'](aV,aW,b0),b0;},ak=function(aU,aV){var bX=a4b;if(bX(0x1f4)==typeof Reflect&&bX(0x221)==typeof Reflect['metadata'])return Reflect[bX(0x1cf)](aU,aV);},al=function(aU,aV,aW,aX){return new(aW||(aW=Promise))(function(aY,aZ){var bZ=a4b;function b0(b3){try{b2(aX['next'](b3));}catch(b4){aZ(b4);}}function b1(b3){try{b2(aX['throw'](b3));}catch(b4){aZ(b4);}}function b2(b3){var bY=a4b,b4;b3[bY(0x105)]?aY(b3['value']):(b4=b3['value'],b4 instanceof aW?b4:new aW(function(b5){b5(b4);}))[bY(0x25b)](b0,b1);}b2((aX=aX[bZ(0x12c)](aU,aV||[]))['next']());});},am=function(aU,aV){var c0=a4b,aW,aX,aY,aZ,b0={'label':0x0,'sent':function(){if(0x1&aY[0x0])throw aY[0x1];return aY[0x1];},'trys':[],'ops':[]};return aZ={'next':b1(0x0),'throw':b1(0x1),'return':b1(0x2)},'function'==typeof Symbol&&(aZ[Symbol[c0(0x1d5)]]=function(){return this;}),aZ;function b1(b2){return function(b3){return function(b4){var c1=a4b;if(aW)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;b0;)try{if(aW=0x1,aX&&(aY=0x2&b4[0x0]?aX[c1(0x232)]:b4[0x0]?aX[c1(0x24f)]||((aY=aX[c1(0x232)])&&aY['call'](aX),0x0):aX[c1(0x164)])&&!(aY=aY[c1(0x1bd)](aX,b4[0x1]))['done'])return aY;switch(aX=0x0,aY&&(b4=[0x2&b4[0x0],aY['value']]),b4[0x0]){case 0x0:case 0x1:aY=b4;break;case 0x4:return b0[c1(0x24d)]++,{'value':b4[0x1],'done':!0x1};case 0x5:b0['label']++,aX=b4[0x1],b4=[0x0];continue;case 0x7:b4=b0[c1(0x152)][c1(0x15d)](),b0[c1(0x14e)]['pop']();continue;default:if(!(aY=b0['trys'],(aY=aY[c1(0x27f)]>0x0&&aY[aY[c1(0x27f)]-0x1])||0x6!==b4[0x0]&&0x2!==b4[0x0])){b0=0x0;continue;}if(0x3===b4[0x0]&&(!aY||b4[0x1]>aY[0x0]&&b4[0x1]<aY[0x3])){b0[c1(0x24d)]=b4[0x1];break;}if(0x6===b4[0x0]&&b0[c1(0x24d)]<aY[0x1]){b0['label']=aY[0x1],aY=b4;break;}if(aY&&b0[c1(0x24d)]<aY[0x2]){b0[c1(0x24d)]=aY[0x2],b0[c1(0x152)]['push'](b4);break;}aY[0x2]&&b0[c1(0x152)][c1(0x15d)](),b0[c1(0x14e)][c1(0x15d)]();continue;}b4=aV[c1(0x1bd)](aU,b0);}catch(b5){b4=[0x6,b5],aX=0x0;}finally{aW=aY=0x0;}if(0x5&b4[0x0])throw b4[0x1];return{'value':b4[0x0]?b4[0x1]:void 0x0,'done':!0x0};}([b2,b3]);};}},an=function(aU){var c2=a4b,aV=c2(0x221)==typeof Symbol&&Symbol['iterator'],aW=aV&&aU[aV],aX=0x0;if(aW)return aW[c2(0x1bd)](aU);if(aU&&c2(0x1e8)==typeof aU[c2(0x27f)])return{'next':function(){return aU&&aX>=aU['length']&&(aU=void 0x0),{'value':aU&&aU[aX++],'done':!aU};}};throw new TypeError(aV?c2(0x15a):c2(0x276));},ao=(function(){var c4=a4b;function aU(aV,aW,aX){var c3=a4b;aV&&(this[c3(0xe8)]=aV),aW&&(this[c3(0x167)]=aW),aX&&(this['renderer']=aX);}return aU[c4(0x239)][c4(0x1ad)]=function(){var c5=c4,aV=this[c5(0x23a)];this[c5(0x23a)]=null;try{aV[c5(0x1ad)](!0x0);}catch(aW){}try{this[c5(0x207)]['destroy'](!0x0),this[c5(0x207)]=null;}catch(aX){}try{this[c5(0x19a)][c5(0x1ad)](!0x0),this[c5(0x19a)]=null;}catch(aY){}this[c5(0x245)]=null;try{this['_maskSprite'][c5(0x1ad)](!0x0),this['_maskSprite']=null;}catch(aZ){}},aU[c4(0x239)][c4(0x265)]=function(){return al(this,void 0x0,void 0x0,function(){var aV,aW,aX,aY,aZ;return am(this,function(b0){var c6=a4b;switch(b0[c6(0x24d)]){case 0x0:return this['_config']?[0x3,0x2]:(this[c6(0x245)]=new a8['M'](),[0x4,this[c6(0x245)][c6(0x265)]()]);case 0x1:b0[c6(0xf2)](),b0[c6(0x24d)]=0x2;case 0x2:return this[c6(0x23a)]?[0x3,0x4]:[0x4,this[c6(0x22b)]()];case 0x3:b0['sent'](),b0[c6(0x24d)]=0x4;case 0x4:return this[c6(0x132)]&&!this['_maskSprite'][c6(0x19f)]||(aV=this[c6(0xe8)],aW=aV[c6(0x1fe)],aX=aV['height'],aY=new a4[(c6(0x19e))]({'width':aW,'height':aX}),this[c6(0x19a)]=new a4[(c6(0x122))](aY),aZ=new a4['Sprite'](this[c6(0x19a)]),this[c6(0x132)]=aZ),[0x2,{'maskSprite':this[c6(0x132)],'lipmask':this[c6(0x23a)],'lipmaskmesh':this[c6(0x207)]}];}});});},aU[c4(0x239)][c4(0x116)]=function(aV){var c7=c4;this['_lipMaskMesh']&&(this['_lipMaskMesh'][c7(0x21c)][c7(0xfb)]('aVertexPosition')[c7(0x116)](aV),this[c7(0x183)]());},aU[c4(0x239)][c4(0x183)]=function(){var c8=c4;this[c8(0xea)]&&this[c8(0x23a)]&&this['renderer'][c8(0x183)](this[c8(0x23a)],{'renderTexture':this[c8(0x19a)]});},aU['prototype'][c4(0x22b)]=function(){return al(this,void 0x0,void 0x0,function(){var aV,aW,aX,aY,aZ,b0,b1,b2,b3;return am(this,function(b4){var c9=a4b;switch(b4['label']){case 0x0:return this[c9(0x23a)]?[0x2,this[c9(0x23a)]]:(aV=new a4[(c9(0x27c))](),(aW=new a4[(c9(0x255))](a4[c9(0x21d)][c9(0x146)]))[c9(0x1fe)]=this[c9(0xe8)]['width'],aW['height']=this['_options'][c9(0x22d)],aV[c9(0x12b)](aW),aX=this[c9(0x167)],aY=this[c9(0x245)][c9(0x14a)](0x1d),[0x4,this[c9(0x1bb)]()]);case 0x1:return aZ=b4[c9(0xf2)](),b0=new a4[(c9(0x140))]()[c9(0x1d6)](c9(0x1e9),aX)['addAttribute'](c9(0x12f),aY),'\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20aVertexPosition;\x0a\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20aUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20mat3\x20translationMatrix;\x0a\x20\x20\x20\x20\x20\x20uniform\x20mat3\x20projectionMatrix;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vUvs\x20=\x20aUvs;\x0a\x20\x20\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\x20\x20}','\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20sampler2D\x20uSamplerMakeup;\x0a\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20texture2D(uSamplerMakeup,\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20}',b1={'uSamplerMakeup':aZ},b2=a4[c9(0x16f)][c9(0xf6)](c9(0x175),c9(0x13e),b1),b3=new a4[(c9(0x214))](b0,b2),this['_lipMaskMesh']=b3,aV[c9(0x12b)](b3),this[c9(0x23a)]=aV,[0x2,aV];}});});},aU[c4(0x239)][c4(0x1bb)]=function(){return al(this,void 0x0,Promise,function(){var aV=this;return am(this,function(aW){return[0x2,new Promise(function(aX,aY){return al(aV,void 0x0,void 0x0,function(){var aZ,b0,b1;return am(this,function(b2){var ca=a4b;switch(b2[ca(0x24d)]){case 0x0:return[0x4,(aZ=new ai['KI']())[ca(0xed)]()];case 0x1:return b0=b2[ca(0xf2)](),[0x4,aZ[ca(0x1c5)](b0)];case 0x2:return b1=b2['sent'](),aX(b1[ai['X_']]),[0x2];}});});})];});});},aj([(0x0,ab['M'])(c4(0x119)),ak(c4(0x227),Function),ak(c4(0x1fa),[]),ak(c4(0x150),void 0x0)],aU[c4(0x239)],c4(0x1ad),null),aj([(0x0,ab['o'])(c4(0x119)),ak('design:type',Function),ak('design:paramtypes',[]),ak(c4(0x150),Promise)],aU[c4(0x239)],c4(0x22b),null),aU;}()),ap=(function(){var cc=a4b;function aU(aW,aX,aY,aZ,b0,b1,b2,b3){var cb=a4b;void 0x0===b3&&(b3=0x1),this[cb(0x1e0)]=new a4['Container'](),this[cb(0x271)]=[],this[cb(0x138)]=!0x0,this[cb(0x176)]=!0x0,this[cb(0x11d)]=!0x1,this[cb(0x282)]=aW,this[cb(0x256)]=aX,this['_options']=aY,this['mesh']=aZ,this[cb(0x11c)]=b1,this[cb(0x101)]=b0,this[cb(0xea)]=b2,this[cb(0x1c9)]=b3;var b4=new a4['Sprite'](a4[cb(0x21d)]['WHITE']);b4[cb(0x249)]=0x0,b4['width']=aY[cb(0x1fe)],b4['height']=aY[cb(0x22d)],this[cb(0x1e0)]['addChild'](b4);}var aV;return Object['defineProperty'](aU[cc(0x239)],cc(0xef),{'get':function(){var cd=cc;return this[cd(0x138)];},'set':function(aW){var ce=cc,aX=this;this[ce(0x218)]&&aW!==this[ce(0x138)]&&(this['_visible']=aW,this[ce(0x271)][ce(0x225)](function(aY){var cf=ce;aW?aX[cf(0x12c)](aX[cf(0x218)]):aX[cf(0x13f)]();}));},'enumerable':!0x1,'configurable':!0x0}),Object[cc(0x1aa)](aU[cc(0x239)],cc(0x204),{'set':function(aW){var cg=cc;(this['_meshVertex']=aW,this[cg(0x21c)])&&(this[cg(0x21c)][cg(0xfb)](cg(0x1e9))['update'](aW),this[cg(0x271)][cg(0x225)](function(aX){var ch=cg;aX[ch(0x26f)](aW);}));},'enumerable':!0x1,'configurable':!0x0}),Object[cc(0x1aa)](aU[cc(0x239)],cc(0x11c),{'set':function(aW){var ci=cc;this[ci(0x167)]=aW,this['_lipMaskIns']&&this['_lipMaskIns'][ci(0x116)](aW);},'enumerable':!0x1,'configurable':!0x0}),Object[cc(0x1aa)](aU['prototype'],cc(0x101),{'set':function(aW){var cj=cc,aX=this;aW&&aW[cj(0x27f)]&&(this[cj(0x23c)]&&this[cj(0x23c)][cj(0x1eb)](aW,this[cj(0xea)]),(0x0,aa['Sp'])(aW[0x62],aW[0x66])<0.03*(0x0,aa['Sp'])(aW[0x0],aW[0x20])?this[cj(0x176)]||(this[cj(0x271)][cj(0x225)](function(aY){var ck=cj;'lips'===aY['type']&&(aY[ck(0x1ea)]=null);}),this[cj(0x176)]=!0x0):this['mouthShut']&&(this['_makeupMeshes'][cj(0x225)](function(aY){var cl=cj;'lips'===aY[cl(0x24c)]&&aX[cl(0x1d0)]&&(aY['lipMask']=aX[cl(0x1d0)][cl(0x132)]);}),this[cj(0x176)]=!0x1));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aU[cc(0x239)],cc(0x1c9),{'get':function(){var cm=cc;return this[cm(0x222)];},'set':function(aW){var cn=cc;this[cn(0x23c)]&&(this[cn(0x23c)][cn(0x1c9)]=aW),this[cn(0x271)]['forEach'](function(aX){aX['parentIntensity']=aW;}),this[cn(0x222)]=aW;},'enumerable':!0x1,'configurable':!0x0}),aU[cc(0x239)][cc(0x136)]=function(){var co=cc;this[co(0x1d0)]&&this['_lipMaskIns'][co(0x183)](),this['_makeupMeshes'][co(0x225)](function(aW){aW['renderMesh']();});},aU[cc(0x239)][cc(0x265)]=function(){return al(this,void 0x0,void 0x0,function(){var aW,aX,aY,aZ,b0,b1,b2,b3;return am(this,function(b4){var cp=a4b;switch(b4['label']){case 0x0:return this[cp(0x245)]=new a8['M'](),[0x4,this[cp(0x245)]['load']()];case 0x1:if(b4[cp(0xf2)](),aW=this['_data'],aX=[],aW&&aW[cp(0x27f)]){try{for(aY=an(aW),aZ=aY[cp(0x164)]();!aZ['done'];aZ=aY['next']())cp(0x258)===(b0=aZ[cp(0x174)])[cp(0x24c)]?(this[cp(0x23c)]=this[cp(0x251)](b0[cp(0x20d)],b0[cp(0x113)],b0['intensity']),this['irisBlendMode']=b0['blend']):(b0[cp(0x113)]+'',aX['push']({'src':b0[cp(0x20d)],'intensity':b0[cp(0x21f)],'type':b0[cp(0x24c)],'blend':b0[cp(0x113)]}));}catch(b5){b2={'error':b5};}finally{try{aZ&&!aZ['done']&&(b3=aY[cp(0x232)])&&b3[cp(0x1bd)](aY);}finally{if(b2)throw b2[cp(0x200)];}}console[cp(0x192)]('makeupLayersByBlendMode',aX),b1=this['_getMeshLayerByBlendMode'](aX),this[cp(0x271)][cp(0x1ed)](b1);}return[0x4,this['_initLipMask']()];case 0x2:return b4[cp(0xf2)](),[0x2];}});});},aU[cc(0x239)][cc(0x251)]=function(aW,aX,aY){var cq=cc;return new ah(this['_options'],this[cq(0x282)],aW,aX,aY,this[cq(0x245)],this[cq(0x1e0)]);},aU['prototype'][cc(0x148)]=function(aW){var cr=cc,aX=aW[cr(0x100)](function(b1){return'lips'===b1['type'];})?'lips':cr(0x129),aY=new ag(this[cr(0xe8)],this['_key'],this[cr(0x1e0)],this[cr(0xea)],aX);aY[cr(0x1c9)]=this[cr(0x1c9)],this[cr(0x23c)]&&(aY[cr(0x236)]=this[cr(0x23c)][cr(0x26d)]['baseTexture'],aY[cr(0x16a)]=this[cr(0x16a)]);var aZ=this[cr(0x245)]['getDataConfig'](0x1a);if(!this['geometry']){var b0=new a4['Geometry']()[cr(0x1d6)]('aVertexPosition',this['_meshVertex'])[cr(0x1d6)](cr(0x12f),aZ);this[cr(0x21c)]=b0;}return aY[cr(0x10c)](aW,this[cr(0x21c)]),aY;},aU['prototype'][cc(0x12c)]=function(aW){var cs=cc;this[cs(0x218)]=aW,this[cs(0xec)](aW);},aU[cc(0x239)][cc(0x13f)]=function(){var ct=cc;this[ct(0xf3)](this[ct(0x218)]);},aU['prototype'][cc(0xec)]=function(aW){var cu=cc;this[cu(0x11d)]||(this['_applyed']=!0x0,aW[cu(0x154)]||(aW[cu(0x154)]=[]),aW[cu(0x12b)](this[cu(0x1e0)]));},aU[cc(0x239)]['_removeMakeup']=function(aW){var cv=cc;this['_applyed']&&(this[cv(0x11d)]=!0x1,aW[cv(0x154)]&&aW[cv(0x1b0)](this[cv(0x1e0)]));},aU[cc(0x239)][cc(0x168)]=function(){return al(this,void 0x0,void 0x0,function(){var aW,aX,aY=this;return am(this,function(aZ){var cw=a4b;switch(aZ['label']){case 0x0:return(aW=new ao(this['_options'],this[cw(0x167)],this[cw(0xea)]))['_options']=this[cw(0xe8)],aW['_lipVertex']=this['_lipVertex'],aW[cw(0xea)]=this[cw(0xea)],this[cw(0x1d0)]=aW,[0x4,aW[cw(0x265)]()];case 0x1:return aX=aZ[cw(0xf2)]()[cw(0x1a6)],this[cw(0x271)][cw(0x225)](function(b0){var cx=cw;console[cx(0x192)]('是否闭嘴的',aY[cx(0x176)]),cx(0x27b)!==b0[cx(0x24c)]||aY[cx(0x176)]||(b0[cx(0x1ea)]=aX);}),[0x2];}});});},aU['prototype'][cc(0x1ad)]=function(){var cy=cc;this[cy(0x13f)](),this['_makeupMeshes']['forEach'](function(aW){var cz=cy;return aW[cz(0x1ad)]();}),this[cy(0x271)]=[],this[cy(0x23c)]&&this[cy(0x23c)][cy(0x1ad)](),this[cy(0x23c)]=null,this['_container'][cy(0x1ad)](),this[cy(0x218)]=null,this['_lipMaskIns']&&this[cy(0x1d0)][cy(0x1ad)]();},aj([(0x0,ab['M'])(cc(0x11e)),ak(cc(0x227),Function),ak(cc(0x1fa),[cc(0x221)==typeof(aV=void 0x0!==a4[cc(0x27c)]&&a4[cc(0x27c)])?aV:Object]),ak(cc(0x150),void 0x0)],aU[cc(0x239)],cc(0xf3),null),aj([(0x0,ab['M'])(cc(0x11e)),ak(cc(0x227),Function),ak('design:paramtypes',[]),ak(cc(0x150),void 0x0)],aU['prototype'],cc(0x1ad),null),aU;}()),aq=a2(0xc35),ar=a2(0x191),as=function(aU,aV,aW,aX){var cA=a4b,aY,aZ=arguments[cA(0x27f)],b0=aZ<0x3?aV:null===aX?aX=Object['getOwnPropertyDescriptor'](aV,aW):aX;if(cA(0x1f4)==typeof Reflect&&cA(0x221)==typeof Reflect[cA(0x1e7)])b0=Reflect['decorate'](aU,aV,aW,aX);else{for(var b1=aU[cA(0x27f)]-0x1;b1>=0x0;b1--)(aY=aU[b1])&&(b0=(aZ<0x3?aY(b0):aZ>0x3?aY(aV,aW,b0):aY(aV,aW))||b0);}return aZ>0x3&&b0&&Object[cA(0x1aa)](aV,aW,b0),b0;},at=function(aU,aV){var cB=a4b;if(cB(0x1f4)==typeof Reflect&&cB(0x221)==typeof Reflect[cB(0x1cf)])return Reflect['metadata'](aU,aV);},au=(function(){var cD=a4b;function aU(aV,aW,aX,aY,aZ,b0,b1,b2){var cC=a4b;this['_container']=new a4[(cC(0x27c))](),this[cC(0x267)]=aV,this['_src']=aW,this[cC(0x218)]=aY,this[cC(0x245)]=aX,this[cC(0x240)]=aX['intensity'],this[cC(0x1b9)]=aZ,this[cC(0xe8)]=b0,this['_key']=b1,this['_angles']=b2;}return Object[cD(0x1aa)](aU['prototype'],cD(0x1c9),{'get':function(){var cE=cD;return this[cE(0x25c)];},'set':function(aV){var cF=cD;this[cF(0x25c)]=aV,this[cF(0x269)]&&(this[cF(0x269)][cF(0x249)]=this[cF(0x240)]*aV);},'enumerable':!0x1,'configurable':!0x0}),Object[cD(0x1aa)](aU[cD(0x239)],'faceLandMarks',{'set':function(aV){var cG=cD;this['_landmarks']=aV,this[cG(0x269)]&&this[cG(0x24b)]();},'enumerable':!0x1,'configurable':!0x0}),Object[cD(0x1aa)](aU[cD(0x239)],cD(0x1b8),{'set':function(aV){var cH=cD;this[cH(0x1a8)]=aV,this[cH(0x269)]&&this[cH(0x24b)]();},'enumerable':!0x1,'configurable':!0x0}),aU[cD(0x239)][cD(0x182)]=function(aV){var cI=cD;void 0x0===aV&&(aV=0x5);var aW=new a4[(cI(0x1b7))]();return aW['beginFill'](0xff0000),aW[cI(0x15e)](0x0,0x0,aV),aW[cI(0x104)](),aW;},aU[cD(0x239)]['getCircle2']=function(aV){var cJ=cD;void 0x0===aV&&(aV=0x5);var aW=new a4[(cJ(0x1b7))]();return aW[cJ(0x1f9)](0xff),aW[cJ(0x15e)](0x0,0x0,aV),aW[cJ(0x104)](),aW;},aU[cD(0x239)][cD(0x226)]=function(){return this['_container'];},aU['prototype'][cD(0x265)]=function(){var cK=cD,aV,aW=this;if(this[cK(0x18e)]()){var aX=[];this[cK(0x1f0)][cK(0x225)](function(b1){var cL=cK,b2;b2=b1[cL(0x260)]('.json')>-0x1?b1:''[cL(0x1b4)](aW[cL(0x282)],'|')[cL(0x1b4)](JSON['parse'](b1)['meta'][cL(0x1d4)]);var b3=a6['iV'][b2]['textures'],b4=Object[cL(0x1b2)](b3)[cL(0xe7)](function(b5){return b3[b5];});aX=aX[cL(0x1b4)](b4);}),(aV=new a9['Kg'](aX))[cK(0x1b1)]=(this['_config']['fps']||0x1e)/0x3c,aV['play']();}else{var aY=this[cK(0x1f0)][0x0],aZ=a4[cK(0x13d)][cK(0x12e)][aY];aV=new a9['jy'](aZ);}this[cK(0x245)]['blend']&&(console['log'](cK(0x10b),this[cK(0x245)][cK(0x113)]),aV[cK(0x1a3)]=this[cK(0x245)][cK(0x113)]),this[cK(0x245)][cK(0x1f1)],(aV[cK(0x1fe)]=this[cK(0x245)]['width'],aV[cK(0x22d)]=this[cK(0x245)][cK(0x22d)]);var b0=[0.5,0.5];this[cK(0x245)]['anchor']&&(b0=this[cK(0x245)][cK(0x1c3)]),aV[cK(0x1c3)][cK(0xfe)](b0[0x0],b0[0x1]),aV[cK(0x249)]=this[cK(0x240)]*this['parentIntensity'],this[cK(0x269)]=aV,this[cK(0x1e0)][cK(0x12b)](this[cK(0x269)]),this[cK(0x1e0)][cK(0x195)](),this['setStickerProps']();},aU[cD(0x239)]['setStickerProps']=function(){var cM=cD,aV=this[cM(0x245)],aW=this['_landmarks'],aX=ar['Jp'][cM(0xe7)](function(b4){return aW[b4];}),aY=(0x0,aa['Sp'])(aX[0x0],aX[0x1]),aZ=aV[cM(0x197)],b0=(aV['wxAnchorOffset'],aV['wxWeights']),b1=aY/ar['jw'],b2=aZ['map'](function(b4){var b5=aW[b4];return{'x':b5['x'],'y':b5['y'],'z':0x0};});this[cM(0x1e0)][cM(0x246)][cM(0xfe)](b1);var b3={'x':b2[0x0]['x']*b0[0x0]+b2[0x1]['x']*b0[0x1]+b2[0x2]['x']*b0[0x2],'y':b2[0x0]['y']*b0[0x0]+b2[0x1]['y']*b0[0x1]+b2[0x2]['y']*b0[0x2]};this[cM(0x1e0)][cM(0x248)]['x']=b3['x'],this[cM(0x1e0)][cM(0x248)]['y']=b3['y'],this[cM(0x1a8)]&&(this['_container'][cM(0x203)]['z']=this[cM(0x1a8)]['roll'],this[cM(0x1e0)][cM(0x203)]['y']=this[cM(0x1a8)]['yaw'],this[cM(0x1e0)][cM(0x203)]['x']=this[cM(0x1a8)]['pitch']);},aU[cD(0x239)][cD(0x18e)]=function(){var cN=cD;if(this[cN(0x1f0)]instanceof Array&&this['_src'][cN(0x27f)]>0x1)return!0x0;try{return JSON[cN(0x151)](this[cN(0x1f0)][0x0]),!0x0;}catch(aV){return'json'===this[cN(0x1f0)][0x0][cN(0x20f)]('.')[cN(0x15d)]();}},aU['prototype']['tick']=function(){},aU['prototype'][cD(0x12c)]=function(){},aU['prototype'][cD(0x13f)]=function(){},aU[cD(0x239)][cD(0x1ad)]=function(){var cO=cD;this[cO(0x269)][cO(0x1ad)](),this['_container'][cO(0x1ad)](),this[cO(0x269)]=null,this[cO(0x218)]=null;},as([(0x0,ab['M'])(cD(0x134)),at(cD(0x227),Function),at(cD(0x1fa),[]),at('design:returntype',Boolean)],aU['prototype'],'checkAnimated',null),as([(0x0,ab['M'])(cD(0x134)),at(cD(0x227),Function),at(cD(0x1fa),[]),at(cD(0x150),void 0x0)],aU[cD(0x239)],cD(0x1ad),null),aU;}()),av=(function(){var cR=a4b;function aU(aV,aW,aX,aY,aZ,b0,b1){var cP=a4b;void 0x0===b1&&(b1=0x1);var b2=this;this[cP(0x268)]=[],this[cP(0x138)]=!0x0,this[cP(0x25c)]=0x1,this['_target']=aX,this[cP(0xe8)]=aZ,this[cP(0x1b9)]=aY;var b3=new aq['LE']();b3[cP(0x1cc)](0x190,0xa,0x2710,!0x0),this[cP(0x139)]=b3,this[cP(0x268)]=aW[cP(0xe7)](function(b4){var cQ=cP,b5=new au(b4[cQ(0x179)],b4[cQ(0x20d)],b4,aX,aY,aZ,aV,b0);return b5[cQ(0x1c9)]=b2[cQ(0x1c9)],b5[cQ(0x265)](),b2['_camera'][cQ(0x12b)](b5[cQ(0x226)]()),b5;});}return Object[cR(0x1aa)](aU[cR(0x239)],'parentIntensity',{'get':function(){var cS=cR;return this[cS(0x25c)];},'set':function(aV){var cT=cR;this[cT(0x268)][cT(0x225)](function(aW){var cU=cT;aW[cU(0x1c9)]=aV;}),this[cT(0x25c)]=aV;},'enumerable':!0x1,'configurable':!0x0}),Object[cR(0x1aa)](aU[cR(0x239)],cR(0x101),{'set':function(aV){var cV=cR;this[cV(0x268)]['forEach'](function(aW){aW['faceLandMarks']=aV;});},'enumerable':!0x1,'configurable':!0x0}),Object[cR(0x1aa)](aU[cR(0x239)],cR(0x1b8),{'set':function(aV){var cW=cR;this['_stickers'][cW(0x225)](function(aW){var cX=cW;aW[cX(0x1b8)]=aV;});},'enumerable':!0x1,'configurable':!0x0}),Object[cR(0x1aa)](aU[cR(0x239)],cR(0xef),{'get':function(){var cY=cR;return this[cY(0x138)];},'set':function(aV){var cZ=cR;this[cZ(0x218)]&&aV!==this[cZ(0x138)]&&(this[cZ(0x138)]=aV,aV?this['apply']():this[cZ(0x13f)]());},'enumerable':!0x1,'configurable':!0x0}),aU[cR(0x239)]['tick']=function(){var d0=cR;this[d0(0x268)][d0(0x225)](function(aV){var d1=d0;return aV[d1(0x14d)]();});},aU[cR(0x239)][cR(0x12c)]=function(){var d2=cR;this['_target']['addChild'](this[d2(0x139)]);},aU[cR(0x239)][cR(0x13f)]=function(){var d3=cR;this[d3(0x218)][d3(0x1b0)](this[d3(0x139)]);},aU[cR(0x239)][cR(0x1ad)]=function(){var d4=cR;this['remove'](),this[d4(0x268)]['forEach'](function(aV){var d5=d4;return aV[d5(0x1ad)]();}),this[d4(0x139)]['destroy'](),this['_stickers']=[];},aU;}()),aw=a2(0x1ade),ax=a2(0x1adf),ay=a2(0x17dd),az=(function(){var aU=function(aV,aW){return aU=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(aX,aY){var d6=a4b;aX[d6(0x180)]=aY;}||function(aX,aY){var d7=a4b;for(var aZ in aY)Object[d7(0x239)][d7(0x1cb)]['call'](aY,aZ)&&(aX[aZ]=aY[aZ]);},aU(aV,aW);};return function(aV,aW){var d8=a4b;if('function'!=typeof aW&&null!==aW)throw new TypeError(d8(0x243)+String(aW)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function aX(){var d9=d8;this[d9(0x277)]=aV;}aU(aV,aW),aV[d8(0x239)]=null===aW?Object[d8(0x1e6)](aW):(aX['prototype']=aW['prototype'],new aX());};}()),aA=function(aU,aV,aW,aX){var da=a4b,aY,aZ=arguments[da(0x27f)],b0=aZ<0x3?aV:null===aX?aX=Object['getOwnPropertyDescriptor'](aV,aW):aX;if('object'==typeof Reflect&&da(0x221)==typeof Reflect['decorate'])b0=Reflect[da(0x1e7)](aU,aV,aW,aX);else{for(var b1=aU[da(0x27f)]-0x1;b1>=0x0;b1--)(aY=aU[b1])&&(b0=(aZ<0x3?aY(b0):aZ>0x3?aY(aV,aW,b0):aY(aV,aW))||b0);}return aZ>0x3&&b0&&Object[da(0x1aa)](aV,aW,b0),b0;},aB=function(aU,aV){var db=a4b;if(db(0x1f4)==typeof Reflect&&db(0x221)==typeof Reflect['metadata'])return Reflect[db(0x1cf)](aU,aV);},aC=function(aU,aV,aW,aX){return new(aW||(aW=Promise))(function(aY,aZ){var df=a4b;function b0(b3){var dc=a4b;try{b2(aX[dc(0x164)](b3));}catch(b4){aZ(b4);}}function b1(b3){var dd=a4b;try{b2(aX[dd(0x24f)](b3));}catch(b4){aZ(b4);}}function b2(b3){var de=a4b,b4;b3['done']?aY(b3[de(0x174)]):(b4=b3['value'],b4 instanceof aW?b4:new aW(function(b5){b5(b4);}))['then'](b0,b1);}b2((aX=aX[df(0x12c)](aU,aV||[]))[df(0x164)]());});},aD=function(aU,aV){var dg=a4b,aW,aX,aY,aZ,b0={'label':0x0,'sent':function(){if(0x1&aY[0x0])throw aY[0x1];return aY[0x1];},'trys':[],'ops':[]};return aZ={'next':b1(0x0),'throw':b1(0x1),'return':b1(0x2)},dg(0x221)==typeof Symbol&&(aZ[Symbol[dg(0x1d5)]]=function(){return this;}),aZ;function b1(b2){return function(b3){return function(b4){var dh=a4b;if(aW)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;b0;)try{if(aW=0x1,aX&&(aY=0x2&b4[0x0]?aX['return']:b4[0x0]?aX[dh(0x24f)]||((aY=aX[dh(0x232)])&&aY[dh(0x1bd)](aX),0x0):aX[dh(0x164)])&&!(aY=aY[dh(0x1bd)](aX,b4[0x1]))['done'])return aY;switch(aX=0x0,aY&&(b4=[0x2&b4[0x0],aY[dh(0x174)]]),b4[0x0]){case 0x0:case 0x1:aY=b4;break;case 0x4:return b0[dh(0x24d)]++,{'value':b4[0x1],'done':!0x1};case 0x5:b0['label']++,aX=b4[0x1],b4=[0x0];continue;case 0x7:b4=b0[dh(0x152)][dh(0x15d)](),b0[dh(0x14e)][dh(0x15d)]();continue;default:if(!(aY=b0['trys'],(aY=aY[dh(0x27f)]>0x0&&aY[aY['length']-0x1])||0x6!==b4[0x0]&&0x2!==b4[0x0])){b0=0x0;continue;}if(0x3===b4[0x0]&&(!aY||b4[0x1]>aY[0x0]&&b4[0x1]<aY[0x3])){b0[dh(0x24d)]=b4[0x1];break;}if(0x6===b4[0x0]&&b0[dh(0x24d)]<aY[0x1]){b0[dh(0x24d)]=aY[0x1],aY=b4;break;}if(aY&&b0[dh(0x24d)]<aY[0x2]){b0[dh(0x24d)]=aY[0x2],b0[dh(0x152)][dh(0x1ed)](b4);break;}aY[0x2]&&b0['ops'][dh(0x15d)](),b0[dh(0x14e)]['pop']();continue;}b4=aV[dh(0x1bd)](aU,b0);}catch(b5){b4=[0x6,b5],aX=0x0;}finally{aW=aY=0x0;}if(0x5&b4[0x0])throw b4[0x1];return{'value':b4[0x0]?b4[0x1]:void 0x0,'done':!0x0};}([b2,b3]);};}},aE=function(aU){var di=a4b,aV=di(0x221)==typeof Symbol&&Symbol[di(0x1d5)],aW=aV&&aU[aV],aX=0x0;if(aW)return aW[di(0x1bd)](aU);if(aU&&di(0x1e8)==typeof aU['length'])return{'next':function(){var dj=di;return aU&&aX>=aU[dj(0x27f)]&&(aU=void 0x0),{'value':aU&&aU[aX++],'done':!aU};}};throw new TypeError(aV?di(0x15a):di(0x276));},aF=(0x0,ay['jl'])(dk(0x1dc)),aG=(function(){var dm=dk;function aU(aW,aX,aY,aZ,b0,b1,b2,b3,b4,b5,b6){var dl=a4b;this[dl(0x228)]=[],this[dl(0x157)]=!0x1,this[dl(0x138)]=!0x0,this[dl(0x222)]=0x1,this['_filterIntensity']=0x1,this[dl(0x1d9)]={},this['_filtersActived']=!0x0,this['_target']=aX,this[dl(0x1a1)]=aY,this[dl(0x1fc)]=aW,this[dl(0x282)]=aW,this[dl(0xe8)]=b0,this[dl(0x204)]=b1,this[dl(0x11c)]=b3,this[dl(0x101)]=b2,b4&&(this['angles']=b4),void 0x0!==b5&&(this[dl(0x21f)]=b5),this[dl(0x11b)]=aZ,this[dl(0x1a9)]=b6;}var aV;return Object[dm(0x1aa)](aU['prototype'],'isPureFilter',{'get':function(){var dn=dm,aW=this[dn(0x245)];return!!aW&&((!aW[dn(0x129)]||!aW[dn(0x129)][dn(0x27f)])&&((!aW['sticker']||!aW[dn(0x254)][dn(0x27f)])&&((!aW[dn(0x266)]||!aW['sticker3d'][dn(0x27f)])&&(!aW[dn(0x23d)]||!Object[dn(0x1b2)](aW[dn(0x23d)])[dn(0x1e2)](function(aX){var dp=dn;return!!aW[dp(0x23d)][aX];})))));},'enumerable':!0x1,'configurable':!0x0}),Object[dm(0x1aa)](aU[dm(0x239)],dm(0x1ff),{'get':function(){var dq=dm;return this[dq(0x1df)];},'set':function(aW){var dr=dm;aW!==this[dr(0x1df)]&&(this[dr(0x16c)]&&(aW?this[dr(0x24e)](this[dr(0x16c)]):this[dr(0x1a2)](this['_filterTarget'])),this['_filtersActived']=aW);},'enumerable':!0x1,'configurable':!0x0}),Object[dm(0x1aa)](aU['prototype'],'url',{'get':function(){var ds=dm;return this[ds(0x1fc)];},'enumerable':!0x1,'configurable':!0x0}),Object[dm(0x1aa)](aU['prototype'],dm(0x1f8),{'get':function(){return this['_app3d'];},'set':function(aW){this['_app3d']=aW;},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aU[dm(0x239)],dm(0x21f),{'get':function(){var dt=dm;return this[dt(0x222)];},'set':function(aW){var du=dm;aW>0x1&&(aw['N'][du(0x247)](du(0x200),{'message':a5['Z']['t'](du(0x1e5)),'code':ax['U'][du(0x14b)]}),aW=0x1),null!=aW&&(this[du(0x25f)]&&(this[du(0x25f)][du(0x1c9)]=aW),this['_sticker']&&(this[du(0x269)][du(0x1c9)]=aW),this['_intensity']=aW);},'enumerable':!0x1,'configurable':!0x0}),Object[dm(0x1aa)](aU['prototype'],dm(0x108),{'get':function(){return this['_filterIntensity'];},'set':function(aW){var dv=dm;null!=aW&&(this['_filters']&&this[dv(0x228)][dv(0x225)](function(aX){var dw=dv;aX[dw(0x13a)]['parentIntensity']=aW;}),this['_filterIntensity']=aW);},'enumerable':!0x1,'configurable':!0x0}),Object[dm(0x1aa)](aU[dm(0x239)],dm(0xef),{'get':function(){var dx=dm;return this[dx(0x138)];},'set':function(aW){var dy=dm;this[dy(0x157)]||(this[dy(0x138)]=aW,this[dy(0x25f)]&&(this[dy(0x25f)]['visible']=aW),this[dy(0x269)]&&(this[dy(0x269)]['visible']=aW));},'enumerable':!0x1,'configurable':!0x0}),Object[dm(0x1aa)](aU[dm(0x239)],'mesh',{'set':function(aW){var dz=dm;this[dz(0x157)]||(this[dz(0x1f3)]=aW,this[dz(0x25f)]&&(this[dz(0x25f)][dz(0x204)]=aW));},'enumerable':!0x1,'configurable':!0x0}),Object[dm(0x1aa)](aU['prototype'],'lipmesh',{'set':function(aW){var dA=dm;this['_destroyed']||(this['_lipVertex']=aW,this['_makeup']&&(this[dA(0x25f)][dA(0x11c)]=aW));},'enumerable':!0x1,'configurable':!0x0}),Object[dm(0x1aa)](aU[dm(0x239)],dm(0x101),{'get':function(){var dB=dm;return this[dB(0x127)];},'set':function(aW){var dC=dm;this[dC(0x157)]||(this[dC(0x127)]=aW,this[dC(0x25f)]&&(this[dC(0x25f)][dC(0x101)]=aW),this[dC(0x269)]&&(this[dC(0x269)][dC(0x101)]=aW));},'enumerable':!0x1,'configurable':!0x0}),Object[dm(0x1aa)](aU[dm(0x239)],dm(0x1b8),{'set':function(aW){var dD=dm;this[dD(0x1a8)]=aW,this[dD(0x269)]&&(this['_sticker'][dD(0x1b8)]=aW);},'enumerable':!0x1,'configurable':!0x0}),aU['prototype']['download']=function(){return aC(this,void 0x0,Promise,function(){return aD(this,function(aW){var dE=a4b;switch(aW[dE(0x24d)]){case 0x0:return ay['D4'][dE(0xf4)]('download:',this[dE(0x1fc)]),[0x4,this[dE(0x196)]()];case 0x1:return[0x4,aW[dE(0xf2)]()['preload'](this[dE(0x1fc)])];case 0x2:return aW[dE(0xf2)](),[0x4,this[dE(0x20e)]()];case 0x3:return[0x2,aW['sent']()];}});});},aU[dm(0x239)][dm(0x265)]=function(){return aC(this,void 0x0,Promise,function(){var aW,aX,aY,aZ,b0,b1;return aD(this,function(b2){var dF=a4b;switch(b2[dF(0x24d)]){case 0x0:return[0x4,this[dF(0x13b)]()];case 0x1:return aW=b2[dF(0xf2)](),aX=aW[dF(0x112)],aY=aW[dF(0x129)],aZ=aW[dF(0x23d)],b0=aW[dF(0x254)],b1=aW[dF(0x266)],[0x4,this[dF(0x278)](aW)];case 0x2:return b2[dF(0xf2)](),this[dF(0x253)](aX),[0x4,this[dF(0x272)](aY)];case 0x3:return b2[dF(0xf2)](),b0?[0x4,this[dF(0xe2)](b0)]:[0x3,0x5];case 0x4:b2[dF(0xf2)](),b2['label']=0x5;case 0x5:return[0x4,this[dF(0x15b)](b1)];case 0x6:return b2[dF(0xf2)](),this[dF(0x266)]=b1,[0x4,this[dF(0x196)]()];case 0x7:return b2[dF(0xf2)]()[dF(0x1ca)](this[dF(0x1fc)]),[0x2,aZ];}});});},aU['prototype']['_getLoader']=function(){return aC(this,void 0x0,void 0x0,function(){return aD(this,function(aW){var dG=a4b;switch(aW[dG(0x24d)]){case 0x0:return this[dG(0x18a)]?[0x3,0x2]:(this[dG(0x18a)]=new a6['pF'](),[0x4,this['_loader']['init']()]);case 0x1:aW[dG(0xf2)](),aW[dG(0x24d)]=0x2;case 0x2:return[0x2,this[dG(0x18a)]];}});});},aU[dm(0x239)]['_getConfig']=function(){return aC(this,void 0x0,void 0x0,function(){var aW;return aD(this,function(aX){var dH=a4b;switch(aX[dH(0x24d)]){case 0x0:return this[dH(0x245)]?[0x3,0x3]:[0x4,this['_getLoader']()];case 0x1:return[0x4,(aW=aX[dH(0xf2)]())['preload'](this[dH(0x1fc)])];case 0x2:aX['sent'](),this['_config']=aW[dH(0x202)](dH(0x1d8),this[dH(0x282)]),aX[dH(0x24d)]=0x3;case 0x3:return[0x2,this[dH(0x245)]];}});});},aU[dm(0x239)][dm(0x120)]=function(){return aC(this,void 0x0,Promise,function(){var aW,aX,aY,aZ,b0,b1,b2,b3;return aD(this,function(b4){var dI=a4b;switch(b4[dI(0x24d)]){case 0x0:return[0x4,this[dI(0x20e)]()];case 0x1:aW=b4[dI(0xf2)](),aX=aW[dI(0x129)],aY=!0x1;try{for(aZ=aE(aX),b0=aZ[dI(0x164)]();!b0['done'];b0=aZ[dI(0x164)]())if(dI(0x258)===(b1=b0[dI(0x174)])[dI(0x24c)]||'eyes'===b1['type']){aY=!0x0;break;}}catch(b5){b2={'error':b5};}finally{try{b0&&!b0['done']&&(b3=aZ[dI(0x232)])&&b3[dI(0x1bd)](aZ);}finally{if(b2)throw b2['error'];}}return[0x2,aY];}});});},aU['prototype'][dm(0x10f)]=function(){return aC(this,void 0x0,Promise,function(){var aW,aX,aY,aZ;return aD(this,function(b0){var dJ=a4b;switch(b0[dJ(0x24d)]){case 0x0:return[0x4,this[dJ(0x20e)]()];case 0x1:return aW=b0['sent'](),aX=aW[dJ(0x129)],aY=aW[dJ(0x254)],aZ=aW[dJ(0x266)],[0x2,aX&&aX[dJ(0x27f)]||aY&&aY[dJ(0x27f)]||aZ&&aZ['length']];}});});},aU['prototype'][dm(0x274)]=function(){return aC(this,void 0x0,Promise,function(){var aW,aX;return aD(this,function(aY){var dK=a4b;switch(aY[dK(0x24d)]){case 0x0:return[0x4,this[dK(0x20e)]()];case 0x1:return aW=aY['sent'](),[0x2,!(!(aX=aW[dK(0x112)])||!aX['length'])];}});});},aU[dm(0x239)][dm(0xe2)]=function(aW){return aC(this,void 0x0,Promise,function(){var aX;return aD(this,function(aY){var dL=a4b;return aW['length']?((aX=new av(this['_key'],aW,this[dL(0x1a1)],this[dL(0x101)],this[dL(0xe8)],this[dL(0x1a8)]))[dL(0x1c9)]=this['intensity'],this[dL(0x269)]=aX,[0x2]):[0x2,Promise[dL(0x263)]()];});});},aU[dm(0x239)][dm(0x147)]=function(aW){return void 0x0===aW&&(aW=[]),aC(this,void 0x0,Promise,function(){return aD(this,function(aX){return[0x2];});});},aU[dm(0x239)][dm(0x15b)]=function(aW){return aC(this,void 0x0,void 0x0,function(){return aD(this,function(aX){return[0x2];});});},aU[dm(0x239)]['initThreeApp']=function(){return aC(this,void 0x0,void 0x0,function(){return aD(this,function(aW){return[0x2];});});},aU[dm(0x239)][dm(0x162)]=function(){},aU[dm(0x239)][dm(0x1e3)]=function(){},aU[dm(0x239)][dm(0x15c)]=function(){},aU['prototype'][dm(0x272)]=function(aW){var dM=dm;return aW['length']?(this[dM(0x25f)]=new ap(this[dM(0x282)],aW,this[dM(0xe8)],this[dM(0x1f3)],this[dM(0x101)],this[dM(0x167)],this[dM(0xea)],this[dM(0x21f)]),this[dM(0x25f)][dM(0x265)]()):Promise[dM(0x263)]();},aU[dm(0x239)][dm(0x12c)]=function(aW){var dN=dm;this['_destroyed']||this['_applyed']||(this[dN(0x1ff)]&&this['_applyFilter'](aW[dN(0x15f)]),this[dN(0x228)][dN(0x27f)]&&aW[dN(0x280)]&&aW['filterCallback'](),this[dN(0x16c)]=aW[dN(0x15f)],this[dN(0x25f)]&&this[dN(0x25f)]['apply'](this[dN(0x218)]),this[dN(0x269)]&&this[dN(0x269)][dN(0x12c)](),this[dN(0x162)](),this[dN(0x11d)]=!0x0);},aU['prototype'][dm(0x177)]=function(){return this['_url'];},aU[dm(0x239)][dm(0x13f)]=function(){var dO=dm;aF[dO(0xf4)](dO(0x13f),this[dO(0x1fc)],this[dO(0x177)]()),this['_makeup']&&this['_makeup'][dO(0x13f)](),this[dO(0x269)]&&this[dO(0x269)][dO(0x13f)](),this[dO(0x1e3)](),this[dO(0x1a2)](this['_filterTarget']),this[dO(0x11d)]=!0x1;},aU[dm(0x239)][dm(0x14d)]=function(){var dP=dm;this[dP(0x269)]&&this[dP(0x269)]['tick']();},aU[dm(0x239)][dm(0x118)]=function(){var dQ=dm;this[dQ(0x25f)]&&this[dQ(0x25f)][dQ(0x136)]();},aU['prototype'][dm(0x1ad)]=function(){var dR=dm;this[dR(0x157)]=!0x0,this['remove'](),this[dR(0x25f)]&&(this[dR(0x25f)][dR(0x1ad)](),this['_makeup']=null),this[dR(0x269)]&&(this[dR(0x269)][dR(0x1ad)](),this['_sticker']=null),this['destroyForConosle'](),this['_filters']=[],this['clearTexture']();},aU[dm(0x239)][dm(0x253)]=function(aW){var dS=dm,aX=this;this['_destroyed']||aW&&aW['length']&&aW[dS(0x225)](function(aY){var dT=dS,aZ=aX[dT(0x193)](aY[dT(0x20d)],aY[dT(0x21f)],aX[dT(0x108)]);aX['_filters'][dT(0x1ed)](aZ);});},aU[dm(0x239)][dm(0x24e)]=function(aW){var dU=dm;aW[dU(0x154)]||(aW[dU(0x154)]=[]),aW[dU(0x154)]=this['_filters']['concat'](aW[dU(0x154)]);},aU[dm(0x239)][dm(0x1a2)]=function(aW){var dV=dm;aW&&aW['filters']&&aW[dV(0x154)][dV(0x27f)]&&this['_filters'][dV(0x225)](function(aX){var dW=dV,aY=aW[dW(0x154)][dW(0x1c7)](function(aZ){return aZ===aX;});aY>-0x1&&aW[dW(0x154)]['splice'](aY,0x1);});},aU[dm(0x239)][dm(0x193)]=function(aW,aX,aY){var dX=dm,aZ=dX(0x12a)===this[dX(0x282)]?aW:''[dX(0x1b4)](this[dX(0x282)],'|')[dX(0x1b4)](aW),b0=a4['utils'][dX(0x12e)][aZ];return b0[dX(0x17f)][dX(0x186)]=a4[dX(0x261)][dX(0x1d1)],b0['baseTexture'][dX(0xe9)]=a4[dX(0x170)][dX(0x20a)],new a7['f'](dX(0x1c0),this[dX(0xe8)],{'uniforms':{'lut':b0,'intensity':aX,'parentIntensity':aY}});},aU[dm(0x239)][dm(0x211)]=function(){var dY=dm;for(var aW in a4[dY(0x13d)]['TextureCache'])if(aW[dY(0x260)](this['_key'])>-0x1){var aX=a4[dY(0x13d)][dY(0x12e)][aW];a4[dY(0x21d)]['removeFromCache'](aX),aX['destroy'](!0x0);}for(var aW in this[dY(0x1d9)])a6['iV'][aW]&&a6['iV'][aW]instanceof a4[dY(0x224)]&&(a6['iV'][aW][dY(0x1ad)](),delete a6['iV'][aW]);},aU[dm(0x239)][dm(0x278)]=function(aW){var dZ=dm,aX,aY,aZ=this,b0=(aW[dZ(0x112)]||[])[dZ(0x1b4)](aW[dZ(0x129)]||[])[dZ(0x1b4)](aW[dZ(0x254)]||[]),b1=this[dZ(0x18a)][dZ(0x12d)](),b2={};this['localSpriteSheets']=b2;try{for(var b3=aE(b0),b4=b3[dZ(0x164)]();!b4[dZ(0x105)];b4=b3[dZ(0x164)]()){var b5=b4[dZ(0x174)];if(b5[dZ(0x20d)]instanceof Array)b5['src'][dZ(0x225)](function(b8,b9){var e0=dZ,ba=aZ['checkSpriteSheetJSON'](b8);if(ba){var bb=ba[e0(0x17d)][e0(0x1d4)],bc=''['concat'](aZ[e0(0x282)],'|')[e0(0x1b4)](bb);if(a4['utils'][e0(0x12e)][bc])return;if(0x0===bb['indexOf'](e0(0x11f))){var bd=a4[e0(0x21d)]['from'](bb);a4[e0(0x21d)][e0(0x10e)](bd,bc);}else b1[e0(0x1af)](bc,bb);ba[e0(0x17d)][e0(0x1d4)]='',b2[bc]=ba;}else{if(a4['utils'][e0(0x12e)][b8])return;if(b1[e0(0x24a)][b8])return;b1[e0(0x1af)](b8,b8);}});else{var b6=''['concat'](this[dZ(0x282)],'|')[dZ(0x1b4)](b5[dZ(0x20d)]);if(a4[dZ(0x13d)][dZ(0x12e)][b6])continue;if(0x0===b5[dZ(0x20d)]['indexOf'](dZ(0x11f))){var b7=a4['Texture'][dZ(0xf6)](b5[dZ(0x20d)]);a4[dZ(0x21d)][dZ(0x10e)](b7,b6);}else b1['add'](b6,b5[dZ(0x20d)]);}}}catch(b8){aX={'error':b8};}finally{try{b4&&!b4[dZ(0x105)]&&(aY=b3[dZ(0x232)])&&aY[dZ(0x1bd)](b3);}finally{if(aX)throw aX[dZ(0x200)];}}return new Promise(function(b9){var e1=dZ;b1[e1(0x265)](function(ba,bb){return aC(aZ,void 0x0,void 0x0,function(){var bc,bd,be,bf,bg;return aD(this,function(bh){var e2=a4b;switch(bh[e2(0x24d)]){case 0x0:for(be in(bc=function(bi){var bj;return aD(this,function(bk){var e3=a4b;switch(bk[e3(0x24d)]){case 0x0:return a6['iV'][bi]?[0x2,'continue']:b2[bi]?(bj=new a4[(e3(0x224))](a4[e3(0x13d)][e3(0x12e)][bi],b2[bi]),[0x4,new Promise(function(bl){bj['parse'](function(){a6['iV'][bi]=bj,bl();});})]):[0x3,0x2];case 0x1:bk[e3(0xf2)](),bk[e3(0x24d)]=0x2;case 0x2:return[0x2];}});},bd=[],a4[e2(0x13d)][e2(0x12e)]))bd['push'](be);bf=0x0,bh[e2(0x24d)]=0x1;case 0x1:return bf<bd[e2(0x27f)]?(bg=bd[bf],[0x5,bc(bg)]):[0x3,0x4];case 0x2:bh['sent'](),bh['label']=0x3;case 0x3:return bf++,[0x3,0x1];case 0x4:for(bg in bb)a6['iV'][bg]||b2[bg]||(a6['iV'][bg]=bb[bg]);return b9(),[0x2];}});});});});},aU['prototype']['checkSpriteSheetJSON']=function(aW){var e4=dm;try{return JSON[e4(0x151)](aW);}catch(aX){return null;}},aA([(0x0,ab['M'])(dm(0x1dc)),aB('design:type',Function),aB(dm(0x1fa),[]),aB(dm(0x150),void 0x0)],aU[dm(0x239)],dm(0x13f),null),aA([(0x0,ab['M'])(dm(0x1dc)),aB(dm(0x227),Function),aB('design:paramtypes',[]),aB(dm(0x150),void 0x0)],aU['prototype'],dm(0x1ad),null),aA([(0x0,ab['M'])('Effect'),aB(dm(0x227),Function),aB(dm(0x1fa),[dm(0x221)==typeof(aV=void 0x0!==a4[dm(0x27c)]&&a4[dm(0x27c)])?aV:Object]),aB(dm(0x150),void 0x0)],aU[dm(0x239)],dm(0x1a2),null),aU;}()),aH=function(aU){var e6=dk;function aV(aW,aX,aY,aZ,b0,b1,b2,b3){var e5=a4b,b4=aU['call'](this,e5(0x12a),aX,aY,aZ,b0,b1,b2,b3)||this;return b4['_json']=aW,b4[e5(0x11b)]=aZ,b4;}return az(aV,aU),aV[e6(0x239)][e6(0x265)]=function(){return aC(this,void 0x0,Promise,function(){var aW,aX,aY,aZ,b0,b1;return aD(this,function(b2){var e7=a4b;switch(b2[e7(0x24d)]){case 0x0:return aW=this[e7(0x130)],aX=aW[e7(0x112)],aY=aW[e7(0x129)],aZ=aW['beautify'],b0=aW[e7(0x254)],b1=aW[e7(0x266)],[0x4,this[e7(0x278)](aW)];case 0x1:return b2[e7(0xf2)](),this['loadFilter'](aX),[0x4,this[e7(0x272)](aY)];case 0x2:return b2[e7(0xf2)](),b0?[0x4,this['loadStickers'](b0)]:[0x3,0x4];case 0x3:b2[e7(0xf2)](),b2[e7(0x24d)]=0x4;case 0x4:return b1?this[e7(0x11b)]?[0x3,0x6]:[0x4,this[e7(0x194)]()]:[0x3,0x8];case 0x5:b2[e7(0xf2)](),b2['label']=0x6;case 0x6:return[0x4,this[e7(0x147)](b1)];case 0x7:b2[e7(0xf2)](),b2[e7(0x24d)]=0x8;case 0x8:return[0x2,aZ];}});});},aV[e6(0x239)]['loadImage']=function(){return aC(this,void 0x0,void 0x0,function(){return aD(this,function(aW){return[0x2];});});},aV[e6(0x239)][e6(0x278)]=function(aW){var e8=e6,aX,aY,aZ=this,b0=new a4[(e8(0x178))](),b1=(aW[e8(0x112)]||[])['concat'](aW[e8(0x129)]||[])[e8(0x1b4)](aW[e8(0x254)]||[]),b2={},b3=function(b6){var e9=e8;if(b6[e9(0x20d)]instanceof Array)b6['src'][e9(0x225)](function(b8,b9){var ea=e9,ba=aZ[ea(0x131)](b8);if(ba){var bb=ba[ea(0x17d)][ea(0x1d4)],bc=''['concat'](aZ[ea(0x282)],'|')[ea(0x1b4)](bb);if(a4['utils'][ea(0x12e)][bc])return;if(b6['objectSrc']&&b6[ea(0x22f)][ea(0x27f)]){var bd=a4['Texture'][ea(0xf6)](b6[ea(0x22f)][b9]);a4[ea(0x21d)]['addToCache'](bd,bc);}else{if(0x0===bb[ea(0x260)](ea(0x11f)))bd=a4['Texture'][ea(0xf6)](bb),a4[ea(0x21d)]['addToCache'](bd,bc);else b0[ea(0x1af)](bc,bb);}ba['meta'][ea(0x1d4)]='',b2[bc]=ba;}else{if(a4[ea(0x13d)][ea(0x12e)][b8])return;if(b0[ea(0x24a)][b8])return;if(b6['objectSrc']&&b6[ea(0x22f)][ea(0x27f)])bd=a4[ea(0x21d)][ea(0xf6)](b6['objectSrc'][b9]),a4[ea(0x21d)][ea(0x10e)](bd,b8);else b0[ea(0x1af)](b8,b8);}});else{if(a4[e9(0x13d)]['TextureCache'][b6[e9(0x20d)]])return console[e9(0x192)](e9(0xfa)),'continue';if(b0[e9(0x24a)][b6[e9(0x20d)]])return console[e9(0x192)]('already\x20loaded\x20file',b6[e9(0x20d)]),e9(0x123);if(b6[e9(0x22f)]){console['log']('use\x20imagebitmap\x20to\x20create\x20texture');var b7=a4['Texture'][e9(0xf6)](b6[e9(0x22f)]);a4['Texture'][e9(0x10e)](b7,b6[e9(0x20d)]);}else{if(0x0===b6[e9(0x20d)][e9(0x260)](e9(0x11f)))b7=a4['Texture'][e9(0xf6)](b6[e9(0x20d)]),(console['log'](e9(0x135),b7),a4[e9(0x21d)][e9(0x10e)](b7,b6[e9(0x20d)]));else b0['add'](b6[e9(0x20d)]);}}};try{for(var b4=aE(b1),b5=b4[e8(0x164)]();!b5['done'];b5=b4[e8(0x164)]()){b3(b5[e8(0x174)]);}}catch(b6){aX={'error':b6};}finally{try{b5&&!b5['done']&&(aY=b4[e8(0x232)])&&aY[e8(0x1bd)](b4);}finally{if(aX)throw aX[e8(0x200)];}}return new Promise(function(b7){return aC(aZ,void 0x0,void 0x0,function(){var b8=this;return aD(this,function(b9){var eb=a4b;return b0[eb(0x265)](function(ba,bb){return aC(b8,void 0x0,void 0x0,function(){var bc,bd,be,bf,bg;return aD(this,function(bh){var ec=a4b;switch(bh[ec(0x24d)]){case 0x0:for(be in(bc=function(bi){var bj;return aD(this,function(bk){var ed=a4b;switch(bk[ed(0x24d)]){case 0x0:return a6['iV'][bi]?[0x2,ed(0x123)]:b2[bi]?(bj=new a4['Spritesheet'](a4['utils'][ed(0x12e)][bi],b2[bi]),[0x4,new Promise(function(bl){var ee=ed;bj[ee(0x151)](function(){a6['iV'][bi]=bj,bl();});})]):[0x3,0x2];case 0x1:bk['sent'](),bk[ed(0x24d)]=0x2;case 0x2:return[0x2];}});},bd=[],a4[ec(0x13d)][ec(0x12e)]))bd['push'](be);bf=0x0,bh[ec(0x24d)]=0x1;case 0x1:return bf<bd[ec(0x27f)]?(bg=bd[bf],[0x5,bc(bg)]):[0x3,0x4];case 0x2:bh['sent'](),bh['label']=0x3;case 0x3:return bf++,[0x3,0x1];case 0x4:for(bg in bb)a6['iV'][bg]||b2[bg]||(a6['iV'][bg]=bb[bg]);return b7(),[0x2];}});});}),[0x2];});});});},aV[e6(0x239)]['loadSticker3d']=function(aW){return aC(this,void 0x0,Promise,function(){return aD(this,function(aX){return[0x2];});});},aV;}(aG),aI=a2(0x1424),aJ=a2(0x18a5),aK=a2(0x435),aL=(function(){var aU=function(aV,aW){return aU=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(aX,aY){aX['__proto__']=aY;}||function(aX,aY){var ef=a4b;for(var aZ in aY)Object['prototype'][ef(0x1cb)][ef(0x1bd)](aY,aZ)&&(aX[aZ]=aY[aZ]);},aU(aV,aW);};return function(aV,aW){var eg=a4b;if(eg(0x221)!=typeof aW&&null!==aW)throw new TypeError(eg(0x243)+String(aW)+eg(0x1da));function aX(){var eh=eg;this[eh(0x277)]=aV;}aU(aV,aW),aV['prototype']=null===aW?Object[eg(0x1e6)](aW):(aX[eg(0x239)]=aW[eg(0x239)],new aX());};}()),aM=function(aU,aV,aW,aX){var ei=dk,aY,aZ=arguments['length'],b0=aZ<0x3?aV:null===aX?aX=Object[ei(0x166)](aV,aW):aX;if(ei(0x1f4)==typeof Reflect&&ei(0x221)==typeof Reflect[ei(0x1e7)])b0=Reflect[ei(0x1e7)](aU,aV,aW,aX);else{for(var b1=aU[ei(0x27f)]-0x1;b1>=0x0;b1--)(aY=aU[b1])&&(b0=(aZ<0x3?aY(b0):aZ>0x3?aY(aV,aW,b0):aY(aV,aW))||b0);}return aZ>0x3&&b0&&Object[ei(0x1aa)](aV,aW,b0),b0;},aN=function(aU,aV){var ej=dk;if('object'==typeof Reflect&&ej(0x221)==typeof Reflect[ej(0x1cf)])return Reflect['metadata'](aU,aV);},aO=function(aU,aV,aW,aX){return new(aW||(aW=Promise))(function(aY,aZ){var en=a4b;function b0(b3){var ek=a4b;try{b2(aX[ek(0x164)](b3));}catch(b4){aZ(b4);}}function b1(b3){var el=a4b;try{b2(aX[el(0x24f)](b3));}catch(b4){aZ(b4);}}function b2(b3){var em=a4b,b4;b3[em(0x105)]?aY(b3[em(0x174)]):(b4=b3[em(0x174)],b4 instanceof aW?b4:new aW(function(b5){b5(b4);}))[em(0x25b)](b0,b1);}b2((aX=aX[en(0x12c)](aU,aV||[]))[en(0x164)]());});},aP=function(aU,aV){var eo=dk,aW,aX,aY,aZ,b0={'label':0x0,'sent':function(){if(0x1&aY[0x0])throw aY[0x1];return aY[0x1];},'trys':[],'ops':[]};return aZ={'next':b1(0x0),'throw':b1(0x1),'return':b1(0x2)},eo(0x221)==typeof Symbol&&(aZ[Symbol[eo(0x1d5)]]=function(){return this;}),aZ;function b1(b2){return function(b3){return function(b4){var ep=a4b;if(aW)throw new TypeError(ep(0x109));for(;b0;)try{if(aW=0x1,aX&&(aY=0x2&b4[0x0]?aX[ep(0x232)]:b4[0x0]?aX['throw']||((aY=aX[ep(0x232)])&&aY[ep(0x1bd)](aX),0x0):aX['next'])&&!(aY=aY[ep(0x1bd)](aX,b4[0x1]))[ep(0x105)])return aY;switch(aX=0x0,aY&&(b4=[0x2&b4[0x0],aY[ep(0x174)]]),b4[0x0]){case 0x0:case 0x1:aY=b4;break;case 0x4:return b0[ep(0x24d)]++,{'value':b4[0x1],'done':!0x1};case 0x5:b0[ep(0x24d)]++,aX=b4[0x1],b4=[0x0];continue;case 0x7:b4=b0['ops'][ep(0x15d)](),b0[ep(0x14e)][ep(0x15d)]();continue;default:if(!(aY=b0['trys'],(aY=aY[ep(0x27f)]>0x0&&aY[aY[ep(0x27f)]-0x1])||0x6!==b4[0x0]&&0x2!==b4[0x0])){b0=0x0;continue;}if(0x3===b4[0x0]&&(!aY||b4[0x1]>aY[0x0]&&b4[0x1]<aY[0x3])){b0['label']=b4[0x1];break;}if(0x6===b4[0x0]&&b0['label']<aY[0x1]){b0['label']=aY[0x1],aY=b4;break;}if(aY&&b0['label']<aY[0x2]){b0[ep(0x24d)]=aY[0x2],b0[ep(0x152)][ep(0x1ed)](b4);break;}aY[0x2]&&b0[ep(0x152)]['pop'](),b0['trys']['pop']();continue;}b4=aV['call'](aU,b0);}catch(b5){b4=[0x6,b5],aX=0x0;}finally{aW=aY=0x0;}if(0x5&b4[0x0])throw b4[0x1];return{'value':b4[0x0]?b4[0x1]:void 0x0,'done':!0x0};}([b2,b3]);};}},aQ=function(aU){var eq=dk,aV=eq(0x221)==typeof Symbol&&Symbol[eq(0x1d5)],aW=aV&&aU[aV],aX=0x0;if(aW)return aW['call'](aU);if(aU&&eq(0x1e8)==typeof aU[eq(0x27f)])return{'next':function(){return aU&&aX>=aU['length']&&(aU=void 0x0),{'value':aU&&aU[aX++],'done':!aU};}};throw new TypeError(aV?eq(0x15a):eq(0x276));},aR=(0x0,ay['jl'])('Renderer'),aS=function(){},aT=function(aU){var es=dk;function aV(aW){var er=a4b,aX=aU['call'](this,aW)||this;return aX[er(0x1ac)]=!0x1,aX[er(0x1e4)]=[],aX['_debug']=!0x0,aX[er(0x157)]=!0x1,aX[er(0x1d7)]=!0x1,aX[er(0x209)]=0x0,console[er(0x192)](er(0x21b),location),aX[er(0x230)]=!0x1,aW[er(0x262)]?aX['_canvas']=new wx[(er(0x27d))][(er(0x18f))](aW[er(0x262)]):aX['_canvas']=new wx['window']['Canvas'](wx[er(0x259)]({'type':er(0x187),'width':aW['width'],'height':aW[er(0x22d)]})),aX[er(0x1ce)]=new a4['Container'](),aX[er(0xe8)]=aW,aX[er(0x212)]=new a4[(er(0x25d))]({'view':aX['_canvas'],'width':aW[er(0x1fe)],'height':aW[er(0x22d)],'preserveDrawingBuffer':!0x1,'antialias':!0x1}),aX['initRenderContext'](aW),aX[er(0x1a7)](),aX[er(0x103)](),aX;}return aL(aV,aU),Object[es(0x1aa)](aV['prototype'],es(0x17a),{'set':function(aW){},'enumerable':!0x1,'configurable':!0x0}),Object[es(0x1aa)](aV[es(0x239)],'backGroundVR',{'set':function(aW){var et=es;if(aW){this[et(0x18c)]=new a4[(et(0x255))](a4[et(0x21d)][et(0xf6)](aW));var aX=this[et(0x18c)],aY=aX[et(0x1fe)],aZ=aX['height'],b0=Math[et(0x158)](this[et(0xe8)]['width']/aY,this[et(0xe8)]['height']/aZ);this['_backgroundVR']['width']*=b0,this['_backgroundVR'][et(0x22d)]*=b0;}else this[et(0x18c)]=null;},'enumerable':!0x1,'configurable':!0x0}),Object[es(0x1aa)](aV[es(0x239)],es(0x215),{'set':function(aW){var eu=es,aX=aW[eu(0x1fe)],aY=aW[eu(0x22d)];this[eu(0x212)]&&this[eu(0x212)][eu(0x19c)](aX,aY),this[eu(0x285)]&&(this[eu(0x285)][eu(0x1fe)]=aX,this[eu(0x285)][eu(0x22d)]=aY,this[eu(0x285)][eu(0x159)]['update']()),this['_options']=aW;},'enumerable':!0x1,'configurable':!0x0}),Object[es(0x1aa)](aV[es(0x239)],es(0x1f8),{'get':function(){var ev=es;return this[ev(0x11b)];},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV['prototype'],'avatar3d',{'get':function(){var ew=es;return this[ew(0x16e)];},'enumerable':!0x1,'configurable':!0x0}),aV['prototype'][es(0x126)]=function(aW){var ex=es;this[ex(0x26c)]=new a4[(ex(0x27c))](),this[ex(0x220)]=new a4[(ex(0x27c))](),this[ex(0x1e1)]=new a4[(ex(0x27c))](),this['_baseRenderTexture']=a4[ex(0x122)][ex(0x1e6)]({'width':aW[ex(0x1fe)],'height':aW[ex(0x22d)]}),this['_makeupRenderTexture']=a4['RenderTexture'][ex(0x1e6)]({'width':aW[ex(0x1fe)],'height':aW['height']}),this['_makeupContainer'][ex(0x12b)](new a4[(ex(0x255))](this[ex(0x17c)])),aS[ex(0x17f)]=this[ex(0x17c)],this['_finalContainer'][ex(0x12b)](new a4[(ex(0x255))](this['_makeupRenderTexture'])),this['_stage']['addChild'](this[ex(0x1e1)]),this[ex(0x218)]=this[ex(0x1e1)];},aV[es(0x239)]['loadLib3d']=function(){return aO(this,void 0x0,Promise,function(){var aW;return aP(this,function(aX){var ey=a4b;switch(aX['label']){case 0x0:return[0x4,(aW=new aJ['e']({}))[ey(0xed)]()];case 0x1:return aX[ey(0xf2)](),this[ey(0xe8)][ey(0x117)]&&this[ey(0xe8)][ey(0x117)](aG,aH,aW),[0x2];}});});},aV['prototype'][es(0x103)]=function(){return aO(this,void 0x0,void 0x0,function(){return aP(this,function(aW){var ez=a4b;switch(aW[ez(0x24d)]){case 0x0:return this['_setup']?[0x2]:(this[ez(0x245)]=new a8['M'](),[0x4,this[ez(0x245)]['load']()]);case 0x1:return aW['sent'](),this['_setup']=!0x0,[0x2];}});});},Object[es(0x1aa)](aV['prototype'],es(0x102),{'get':function(){var eA=es;return this[eA(0x1f3)];},'set':function(aW){var eB=es;this[eB(0x1f3)]=aW;},'enumerable':!0x1,'configurable':!0x0}),Object[es(0x1aa)](aV[es(0x239)],'mirrorFilter',{'get':function(){var eC=es;return this[eC(0x1ae)]||(this[eC(0x1ae)]=new a7['f']('mirror',{'width':ac['t'][eC(0x141)][eC(0x215)][eC(0x1fe)],'height':ac['t'][eC(0x141)]['options'][eC(0x22d)]})),this['_mirrorFilter'];},'enumerable':!0x1,'configurable':!0x0}),aV[es(0x239)][es(0xf8)]=function(aW){var eD=es;aW!==this[eD(0x16b)]&&(eD(0x242)===aW&&this[eD(0x142)](null),this[eD(0x16b)]=aW);},aV[es(0x239)][es(0x14c)]=function(aW){var eE=es,aX=+new Date();console['log'](''[eE(0x1b4)](aW,eE(0x1cd))[eE(0x1b4)](aX-this[eE(0x121)])),this[eE(0x121)]=aX;},aV[es(0x239)][es(0x14d)]=function(aW){var eF=es,aX=aW[eF(0x1ab)],aY=aW[eF(0x102)],aZ=aW['lipVertex'],b0=aW[eF(0x1d4)],b1=aW[eF(0x1b8)],b2=(aW[eF(0x1f7)],aW[eF(0x20b)],aW[eF(0x111)],aW[eF(0x213)],aW[eF(0x1b5)]);if(!this['_destroyed']){if(this[eF(0x212)]){if(this[eF(0x1ce)]){if(this['_setup']){this[eF(0x121)]=+new Date();try{this['_renderer'][eF(0x160)]();}catch(b9){}if(this[eF(0x1d7)])try{this[eF(0x212)][eF(0x183)](this[eF(0x18c)]);}catch(ba){}else{if(b2){if(this['_baseSprite'])this[eF(0x285)][eF(0x159)]['update']();else b7=a4['Texture'][eF(0xf6)](b0),(this[eF(0x285)]=new a4[(eF(0x255))](b7),this['_baseSprite'][eF(0x1c3)][eF(0xfe)](0.5,0.5),this[eF(0x285)]['position'][eF(0xfe)](this['_options']['width']/0x2,this['_options'][eF(0x22d)]/0x2),this[eF(0x285)][eF(0x246)]['set'](0x1,-0x1),this[eF(0x26c)]['addChild'](this[eF(0x285)]));}else{var b3=b0,b4=b3[eF(0x1fe)],b5=b3[eF(0x22d)],b6=b3['data'];if(this[eF(0x285)])this['_baseSprite'][eF(0x159)][eF(0x17f)]['resource'][eF(0x169)]=new Uint8Array(b6),this['_baseSprite'][eF(0x159)][eF(0x116)]();else{var b7=a4[eF(0x21d)]['fromBuffer'](new Uint8Array(b6),b4,b5);this[eF(0x285)]=new a4[(eF(0x255))](b7),this[eF(0x285)][eF(0x1c3)][eF(0xfe)](0.5,0.5),this['_baseSprite'][eF(0x248)][eF(0xfe)](this[eF(0xe8)]['width']/0x2,this[eF(0xe8)][eF(0x22d)]/0x2);var b8=Math[eF(0x158)](this[eF(0xe8)][eF(0x1fe)]/b4,this[eF(0xe8)][eF(0x22d)]/b5);this[eF(0x285)]['scale'][eF(0xfe)](b8),this[eF(0x26c)][eF(0x12b)](this[eF(0x285)]);}}if(!aX||!aX['length'])return this[eF(0x1e4)][eF(0x225)](function(bb){return bb['visible']=!0x1;}),this[eF(0x1e4)][eF(0x225)](function(bb){bb['tickMesh']();}),new Date(),(this[eF(0x212)][eF(0x183)](this['_baseContainer'],{'renderTexture':this[eF(0x17c)]}),this['_renderer'][eF(0x183)](this[eF(0x220)],{'renderTexture':this[eF(0x10a)]}),void this['_renderer'][eF(0x183)](this[eF(0x1ce)]));this['_faceLandmarks']=aX,this['_angles']=b1,this[eF(0x102)]=aY,this[eF(0x1ee)]=aZ,this[eF(0x1e4)][eF(0x225)](function(bb){var eG=eF;bb[eG(0xef)]||(bb[eG(0xef)]=!0x0),bb[eG(0x11c)]=aZ,bb['mesh']=aY,bb[eG(0x1b8)]=b1,bb[eG(0x101)]=aX,bb[eG(0x14d)]();}),this[eF(0x212)][eF(0x183)](this[eF(0x26c)],{'renderTexture':this[eF(0x17c)]}),this[eF(0x212)][eF(0x183)](this[eF(0x220)],{'renderTexture':this[eF(0x10a)]}),this[eF(0x212)]['render'](this[eF(0x1ce)]),eF(0x242)===this[eF(0x16b)]&&this['_app3d']&&this[eF(0x11b)][eF(0x133)]&&(this[eF(0x11b)][eF(0x281)]=aX,this[eF(0x11b)]['angles']=b1,this[eF(0x11b)][eF(0x183)]());}}else ay['b_'][eF(0xf4)](eF(0x1db));}else ay['b_'][eF(0xf4)](eF(0x1b3));}else ay['b_'][eF(0xf4)](eF(0x22a));}},aV[es(0x239)]['getBaseTexture']=function(){var eH=es;return this['_baseSprite'][eH(0x159)];},aV['prototype'][es(0x165)]=function(){var eI=es;this[eI(0x20b)]&&(this[eI(0x20b)][eI(0x13f)](),this[eI(0x20b)]=null);},aV['prototype'][es(0xee)]=function(aW){var eJ=es;this[eJ(0x20b)];},aV['prototype']['debugDraw']=function(aW){var eK=es;if(!this[eK(0x208)]){for(var aX=[],aY=0x0;0x2*aY<aW[eK(0x27f)];aY++){var aZ=this[eK(0x182)](0x2);aX['push'](aZ),this['_baseContainer'][eK(0x12b)](aZ);}this['points']=aX;}for(aY=0x0;0x2*aY<aW[eK(0x27f)];aY++)this[eK(0x208)][aY]['x']=aW[0x2*aY],this[eK(0x208)][aY]['y']=aW[0x2*aY+0x1];},aV['prototype'][es(0x17b)]=function(aW){var eL=es;if(console[eL(0x192)](eL(0x27e),aW['length']),!this[eL(0x208)]){for(var aX=[],aY=0x0;aY<aW[eL(0x27f)];aY++){var aZ=this[eL(0x182)](0x2);aX[eL(0x1ed)](aZ),this[eL(0x26c)]['addChild'](aZ);}this[eL(0x208)]=aX;}for(aY=0x0;aY<aW[eL(0x27f)];aY++)this[eL(0x208)][aY]['x']=0x21c*aW[aY]['x'],this[eL(0x208)][aY]['y']=0x21c*aW[aY]['y'];},aV['prototype'][es(0x1de)]=function(){var eM=es,aW=this[eM(0xe8)],aX=aW['width'],aY=aW[eM(0x22d)],aZ=new Uint8Array(aX*aY*0x4),b0=this[eM(0x212)]['gl'];return b0['readPixels'](0x0,0x0,aX,aY,b0['RGBA'],b0[eM(0x173)],aZ),{'data':aZ,'width':aX,'height':aY};},aV[es(0x239)]['setEffect']=function(aW,aX,aY,aZ){return aO(this,void 0x0,Promise,function(){var b0,b1=this;return aP(this,function(b2){var eN=a4b;return b0=!0x0,this['latestEffectUrls']&&this[eN(0x1be)]['length']===aW[eN(0x27f)]&&aW[eN(0xe5)](function(b3){var eO=eN;return b1[eO(0x1be)]['indexOf'](b3)>-0x1;})&&(b0=!0x1,this[eN(0x233)]&&(clearTimeout(this[eN(0x233)]),this[eN(0x233)]=null)),this[eN(0x1be)]=aW,[0x2,new Promise(function(b3,b4){var eP=eN;b0?(b1[eP(0x233)]&&(clearTimeout(b1[eP(0x233)]),b1[eP(0x233)]=null),b1['debounceTimer']=setTimeout(function(){var eQ=eP;return b1[eQ(0x137)](aW,aX,aY,aZ)['then'](function(b5){var eR=eQ;clearTimeout(b1[eR(0x233)]),b1[eR(0x233)]=null,b3(b5);});},0x64)):b1[eP(0x137)](aW,aX,aY)[eP(0x25b)](function(b5){b3(b5);});})];});});},aV['prototype'][es(0x137)]=function(aW,aX,aY,aZ){return aO(this,void 0x0,Promise,function(){var b0,b1=this;return aP(this,function(b2){var eS=a4b;return ay['b_'][eS(0xfd)](eS(0x284)),this[eS(0x1f3)]?(ay['b_'][eS(0x241)](eS(0x284)),b0='uid_'+Math[eS(0x11a)](0x5f5e100*Math[eS(0x144)]()),[0x2,new Promise(function(b3,b4){return aO(b1,void 0x0,void 0x0,function(){var b5,b6,b7,b8,b9,ba,bb,bc,bd,be,bf,bg,bh,bi,bj=this;return aP(this,function(bk){var eT=a4b;switch(bk[eT(0x24d)]){case 0x0:for(b5=[][eT(0x1b4)](this[eT(0x1e4)]),b6=[],b7=[],b8=[],b9=[],ba=[],bb=[],aW[eT(0x27f)]||(this[eT(0x216)]=null),bc=function(bl){var eU=eT,bm=b5[eU(0x1c7)](function(bp){return bp['url']===aW[bl];}),bn=void 0x0;if(bm>-0x1)b6[eU(0x1ed)](b5[bm]),bn=b5[bm],b7[eU(0x1ed)](aX[bl]),b8[eU(0x1ed)](aY[bl]),b5[eU(0xe4)](bm,0x1);else{var bo=aW[bl];(bn=new aG(bo,bd[eU(0x220)],bd[eU(0x1e1)],bd['_app3d'],bd[eU(0xe8)],bd[eU(0x1f3)],bd[eU(0x181)],bd['lipVertex'],bd[eU(0x1a8)],aX[bl],bd[eU(0x1a9)]))['filterIntensity']=aY[bl],bn[eU(0xea)]=bd[eU(0x212)],b9[eU(0x1ed)](bn),bb[eU(0x1ed)](bn[eU(0x13b)]());}},bd=this,be=0x0;be<aW['length'];be++)bc(be);return[0x4,Promise[eT(0x115)](bb)];case 0x1:if(bf=bk[eT(0xf2)](),ay['b_'][eT(0xfd)](eT(0x1f5)),this['lib3dLoaded'])return[0x3,0x5];bg=0x0,bk[eT(0x24d)]=0x2;case 0x2:return bg<bf[eT(0x27f)]?(bh=bf[bg],(bi=bh['sticker3d'])&&bi[eT(0x27f)]?aZ&&!aZ()?[0x2]:(console[eT(0x192)]('require\x203d\x20lib'),[0x4,this[eT(0x190)]()]):[0x3,0x4]):[0x3,0x5];case 0x3:bk['sent'](),this[eT(0x273)]=!0x0,bk['label']=0x4;case 0x4:return bg++,[0x3,0x2];case 0x5:return ay['b_'][eT(0x241)]('require\x203d\x20lib'),b9['forEach'](function(bl){var eV=eT;ba[eV(0x1ed)](bl[eV(0x265)]()[eV(0x25b)](function(){var eW=eV;return bj[eW(0x11b)]||(bj[eW(0x11b)]=bl[eW(0x1f8)]),bl;})[eV(0x206)](function(bm){var eX=eV;aR['warn'](eX(0x143),bm);}));}),ay['b_']['time'](eT(0x26e)),Promise[eT(0x115)](ba)[eT(0x25b)](function(bl){var eY=eT;ay['b_'][eY(0x241)](eY(0x26e)),ay['b_'][eY(0xfd)](eY(0x191));for(var bm=!0x1,bn=0x0;bn<b9[eY(0x27f)];bn++){var bo=b9[bn];bj['latestEffectUrls']&&-0x1===bj[eY(0x1be)][eY(0x260)](bo[eY(0x177)]())&&(bo[eY(0x1ad)](),bm=!0x0);}if(bm)aR[eY(0xf4)](b0+eY(0xe6));else{b5[eY(0x225)](function(bp){bp['remove']();}),bj[eY(0x1e4)]=b6,b6['forEach'](function(bp,bq){var eZ=eY;bp[eZ(0x21f)]=b7[bq],bp[eZ(0x108)]=b8[bq];});for(bn=0x0;bn<b9[eY(0x27f)];bn++){bo=b9[bn],(bj[eY(0x1e4)][eY(0x1ed)](bo),bo[eY(0x12c)]({'filterTarget':bj[eY(0x285)],'filterCallback':function(){}}));}b5[eY(0x225)](function(bp){var f0=eY;bp[f0(0x1ad)]();}),ay['b_']['timeEnd'](eY(0x191)),b3(bj[eY(0x1e4)]);}}),[0x2];}});});})]):[0x2,new Promise(function(b3){var f1=eS;clearTimeout(b1['_meshVertexTimer']),b1[f1(0x209)]=setInterval(function(){var f2=f1;ay['b_'][f2(0xf4)](f2(0x284)),b1[f2(0x1f3)]&&(ay['b_'][f2(0xf4)]('waiting\x20for\x20AI\x20init...done'),clearTimeout(b1['_meshVertexTimer']),b1[f2(0x137)](aW,aX,aY,aZ)[f2(0x25b)](function(){var f3=f2;b3(b1[f3(0x1e4)]);}));},0xc8);})];});});},aV['prototype'][es(0x16d)]=function(aW){return aO(this,void 0x0,void 0x0,function(){var aX,aY,aZ,b0=this;return aP(this,function(b1){var f4=a4b;switch(b1[f4(0x24d)]){case 0x0:return this['lib3dLoaded']?[0x3,0x2]:(aY=aW['sticker3d'])&&aY['length']?(console[f4(0x192)](f4(0x1f5)),[0x4,this[f4(0x190)]()]):[0x3,0x2];case 0x1:b1[f4(0xf2)](),this['lib3dLoaded']=!0x0,b1[f4(0x24d)]=0x2;case 0x2:return(aZ=function(){var f5=f4;if(b0[f5(0x1f3)]){aX&&clearTimeout(aX);var b2=new aH(aW,b0[f5(0x220)],b0[f5(0x1e1)],b0[f5(0x11b)],b0[f5(0xe8)],b0[f5(0x1f3)],b0['_faceLandmarks'],b0[f5(0x1ee)]);b2[f5(0xea)]=b0[f5(0x212)],b2[f5(0x265)]()['then'](function(){var f6=f5;b0[f6(0x11b)]||(b0[f6(0x11b)]=b2[f6(0x1f8)]);var b3=[][f6(0x1b4)](b0[f6(0x1e4)]);b0[f6(0x1e4)]=[b2],b2[f6(0x12c)]({'filterTarget':b0['_baseSprite']}),b3[f6(0x225)](function(b4){var f7=f6;b4[f7(0x1ad)]();});});}else aX=setTimeout(aZ,0x14);})(),[0x2];}});});},aV[es(0x239)][es(0xf7)]=function(aW,aX){var aY=this;return void 0x0===aX&&(aX=0x1),new Promise(function(aZ,b0){!(function(){var f8=a4b;if(aY[f8(0x1c8)]&&aY[f8(0x1c8)]['getUrl']()===aW)aY[f8(0x1c8)][f8(0x21f)]=aX,aY[f8(0x1c8)][f8(0x108)]=aX;else{var b1=new aG(aW,aY[f8(0x220)],aY[f8(0x1e1)],aY[f8(0x11b)],aY[f8(0xe8)],aY[f8(0x1f3)],aY[f8(0x181)],aY[f8(0x1ee)],aY[f8(0x1a8)],aX);b1[f8(0x108)]=aX,b1[f8(0x265)]()[f8(0x25b)](function(){var f9=f8;aY[f9(0x1c8)]&&aY[f9(0x1c8)][f9(0x1ad)](),aY['exclusiveFilter']=b1,b1[f9(0xea)]=aY[f9(0x212)],b1[f9(0x12c)]({'filterTarget':aY[f9(0x285)]}),aZ();});}}());});},aV[es(0x239)][es(0x19c)]=function(aW,aX){var fa=es;aU[fa(0x239)][fa(0x19c)][fa(0x1bd)](this,aW,aX),console[fa(0x192)](fa(0x23e),aW,aX),this[fa(0xe8)][fa(0x1fe)]=aW,this[fa(0xe8)][fa(0x22d)]=aX,this['_renderer'][fa(0x19c)](aW,aX),this[fa(0x20b)]&&this[fa(0x20b)][fa(0x19c)](aW,aX),this[fa(0x11b)]?this[fa(0x11b)][fa(0x19c)](aW,aX):this[fa(0x16e)]&&this['_avatar3d']['resize'](aW,aX),this[fa(0x17c)]&&this['_baseRenderTexture']['resize'](aW,aX),this[fa(0x10a)]&&this[fa(0x10a)]['resize'](aW,aX);},aV[es(0x239)][es(0x13c)]=function(){var fb=es;this[fb(0x1c8)]&&this[fb(0x1c8)][fb(0x13f)]();},aV[es(0x239)]['enableExclusiveFilter']=function(){var fc=es;this[fc(0x1c8)]&&this[fc(0x1c8)][fc(0x12c)]({'filterTarget':this['_baseSprite'],'filterCallback':function(){}});},aV[es(0x239)][es(0x161)]=function(){var fd=es;this[fd(0x1e4)][fd(0x225)](function(aW){var fe=fd;console[fe(0x192)]('disableEffect',aW),aW[fe(0x1c4)]||aW['remove']();});},aV[es(0x239)][es(0x153)]=function(){var aW=this;this['_effects']['forEach'](function(aX){var ff=a4b;aX[ff(0x12c)]({'filterTarget':aW[ff(0x285)],'filterCallback':function(){}});});},aV[es(0x239)]['removeExclusiveFilter']=function(){var fg=es;this[fg(0x1c8)]&&(this['exclusiveFilter'][fg(0x1ad)](),this[fg(0x1c8)]=null);},aV[es(0x239)][es(0x1a5)]=function(aW,aX){return aO(this,void 0x0,void 0x0,function(){return aP(this,function(aY){return[0x2];});});},aV[es(0x239)][es(0x142)]=function(aW,aX){return aO(this,void 0x0,void 0x0,function(){return aP(this,function(aY){return[0x2];});});},aV[es(0x239)]['registerAvatar']=function(aW){},aV['prototype'][es(0xff)]=function(){return aO(this,void 0x0,void 0x0,function(){return aP(this,function(aW){return[0x2];});});},aV[es(0x239)][es(0x1bf)]=function(){return this['_canvas'];},aV['prototype'][es(0x20c)]=function(aW){},aV['prototype'][es(0x19b)]=function(aW){var fh=es;this[fh(0x1a9)]&&aW[fh(0x110)](this[fh(0x1a9)]);},aV['prototype'][es(0x182)]=function(aW){var fi=es;void 0x0===aW&&(aW=0x5);var aX=new a4[(fi(0x1b7))]();return aX[fi(0x1f9)](0xff0000),aX[fi(0x15e)](0x0,0x0,aW),aX[fi(0x104)](),aX;},aV[es(0x1d2)]=function(aW){return aO(this,void 0x0,Promise,function(){var aX,aY,aZ,b0,b1,b2,b3;return aP(this,function(b4){var fj=a4b;switch(b4[fj(0x24d)]){case 0x0:return aW[fj(0x27f)]?[0x4,(aX=new a6['pF']())[fj(0xed)]()]:[0x2];case 0x1:b4[fj(0xf2)](),aY=[];try{for(aZ=aQ(aW),b0=aZ[fj(0x164)]();!b0[fj(0x105)];b0=aZ[fj(0x164)]())(b1=b0[fj(0x174)])&&aY['push'](aX[fj(0x1dd)](b1));}catch(b5){b2={'error':b5};}finally{try{b0&&!b0[fj(0x105)]&&(b3=aZ[fj(0x232)])&&b3[fj(0x1bd)](aZ);}finally{if(b2)throw b2[fj(0x200)];}}return[0x2,Promise['all'](aY)[fj(0x25b)](function(){var fk=fj;return Promise[fk(0x263)]();})[fj(0x206)](function(b6){var fl=fj;return Promise[fl(0x172)](b6);})];}});});},aV[es(0x239)][es(0x1a7)]=function(){var fm=es,aW=this[fm(0xe8)],aX=aW[fm(0x270)],aY=aW[fm(0x1b6)],aZ=void 0x0===aY?{}:aY;if(aX){var b0=aV[fm(0x250)]=new aI['Z'](aZ);b0['zIndex']=0x14;var b1=this['_options'],b2=b1[fm(0x1fe)],b3=b1[fm(0x22d)];b0['x']=b2/0x2,b0['y']=b3/0x2,this[fm(0x1ce)]['addChild'](b0);}},aV['prototype'][es(0x231)]=function(){var fn=es;aV[fn(0x250)]&&aV[fn(0x250)][fn(0x252)]();},aV[es(0x239)]['hideLoading']=function(){var fo=es;aV[fo(0x250)]&&aV[fo(0x250)]['hide']();},aV[es(0x239)]['destroy']=function(){var fp=es;this[fp(0x1ef)](),aV[fp(0x250)]&&aV['loading'][fp(0x1ad)](),aS[fp(0x17f)][fp(0x1ad)](!0x0),aS['baseTexture']=null,this[fp(0x157)]=!0x0,this[fp(0x1e4)][fp(0x225)](function(aW){var fq=fp;aW[fq(0x1ad)]();}),this[fp(0x1c8)]&&this[fp(0x1c8)]['destroy'](),this[fp(0x1ce)]&&this[fp(0x1ce)]['destroy'](!0x0),this[fp(0x212)]&&this[fp(0x212)][fp(0x1ad)](!0x0),this[fp(0x20b)]&&this[fp(0x20b)]['destroy'](),this[fp(0x11b)]&&this[fp(0x11b)][fp(0x1ad)](),this[fp(0x209)]&&clearTimeout(this[fp(0x209)]),this[fp(0x1ba)]();},aV[es(0x239)][es(0x1ba)]=function(){var fr=es;this[fr(0x16e)]&&(this[fr(0x16e)]['destroy'](),this[fr(0x16e)]=null);},aM([(0x0,ab['M'])('ArRenderer'),aN(es(0x227),Function),aN(es(0x1fa),[]),aN(es(0x150),void 0x0)],aV[es(0x239)],es(0x1ad),null),aV;}(aK['F']);}}]));
|
|
1
|
+
var self = wx;(self.webpackChunktencentcloud_webar=self.webpackChunktencentcloud_webar||[]).push([[321],{6237:(e,t,n)=>{n.d(t,{g:()=>he,b:()=>ue});var i,r=n(337),o=n(3044),s=n(5536),a=n(1206),c=n(617),u=n(9560),h=n(1084),l=n(3849),p=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=function(){function e(e,t,n,i,r,o){this._destroyed=!1,this.type="makeup",this._parentIntensity=1,this._jsonIntensity=1,this.textures=[],this._dir=t,this._options=e,this._container=n,this._lipMaskTexture=o,this.renderer=i,this.type=r||"makeup"}return Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this.shader&&(this.shader.uniforms.parentIntensity=e);this._parentIntensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lipMask",{set:function(e){null===e?(this._mesh.removeChild(this._cacheMask),this._mesh.mask=e):(this._mesh.addChild(e),this._mesh.mask=e,this._cacheMask=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{set:function(e){this.shader&&(this.shader.uniforms.enable=e?1:0)},enumerable:!1,configurable:!0}),e.prototype.updateGeometry=function(e){this._destroyed},e.prototype.renderMesh=function(){},e.prototype.drawMeshBatch=function(e,t){var n=this;if(!this._destroyed){var i=Array.from(e.reduce((function(e,t){return e.add(t.blend),e}),new Set));this.irisRenderTexture&&!i.includes(this.irisBlendMode)&&i.push(this.irisBlendMode);var r="\n precision mediump float;\n varying vec2 vUvs;\n varying vec2 bUvs;\n \n\n ".concat(e.map((function(e,t){return"uniform sampler2D uSamplerMakeup".concat(t,";")})).join("\n"),"\n ").concat(e.map((function(e,t){return"uniform float intensity".concat(t,";")})).join("\n"),"\n uniform float parentIntensity;\n uniform int enable;\n uniform sampler2D baseImage;\n \n uniform sampler2D uSamplerIris;\n\n // uniform int mirror;\n uniform vec2 imageOffset;\n \n ").concat(i.map((function(e){return u.Lc[e].shader})).join("\n"),"\n \n void main() {\n if (enable == 0) {\n gl_FragColor = vec4(0.0,0.0,0.0,0.0);\n return;\n }\n\n // todo:适配镜像与非镜像\n vec2 baseCoord = bUvs;\n baseCoord += imageOffset;\n // if (mirror == 1) {\n // baseCoord = vec2(1.0 - bUvs.x, bUvs.y);\n // }\n vec4 baseColor = texture2D(baseImage, baseCoord);\n\n vec4 makeupColor = vec4(0.0);\n\n ").concat(e.map((function(e,t){return"\n \n vec4 color".concat(t," = texture2D(uSamplerMakeup").concat(t,", vUvs);\n float a").concat(t," = color").concat(t,".a;\n float realIntensity").concat(t," = intensity").concat(t," * parentIntensity;\n makeupColor = texture2D(uSamplerMakeup").concat(t,", vUvs) * realIntensity").concat(t,";\n if (makeupColor.a>0.) {\n // 混合\n baseColor.rgb = blend").concat(u.Lc[e.blend].key,"(baseColor.rgb, makeupColor.rgb/makeupColor.a , makeupColor.a);\n }\n \n \n \n\n ")})).join("\n"),"\n\n ").concat(this.irisRenderTexture?"\n // 混合美瞳\n vec4 irisColor = texture2D(uSamplerIris, bUvs);\n if (irisColor.a > 0.) {\n baseColor.rgb = blend".concat(u.Lc[this.irisBlendMode].key,"(baseColor.rgb, irisColor.rgb/irisColor.a , irisColor.a);\n }\n "):"","\n \n \n\n // 输出\n gl_FragColor = baseColor;\n }"),o={enable:1};o.parentIntensity=this.parentIntensity;var s=this._options,c=s.width,h=s.height;o.baseImage=ue.baseTexture,o.size=[c*h/ue.baseTexture.height,h];var p=ue.baseTexture.width*h/ue.baseTexture.height;o.imageOffset=[(p-c)/2/p,0],e.forEach((function(e,t){var i="default"===n._dir?e.src:"".concat(n._dir,"|").concat(e.src),r=a.P6.kN[i];o["uSamplerMakeup".concat(t)]=r,o["intensity".concat(t)]=e.intensity,n.textures.push(r)})),this.irisRenderTexture&&(o.uSamplerIris=this.irisRenderTexture);var f=a.ex.from("\n precision mediump float;\n attribute vec2 aVertexPosition;\n attribute vec2 aUvs;\n\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n uniform vec2 size;\n varying vec2 vUvs;\n varying vec2 bUvs;\n\n \n void main() {\n vUvs = aUvs;\n bUvs = aVertexPosition.xy /size;\n // lipUvs = lipAuvs;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n }",r,o);this.shader=f,l.t.instance.on("mirrorChange",(function(e){}));var d=new a.Kj(t,f);return this._mesh=d,this._container.addChild(d),d}},e.prototype.destroy=function(){this._destroyed=!0,this._mesh&&(this._mesh.destroy({children:!0,texture:!1,baseTexture:!1}),this._mesh.mask=null,this._mesh=null),this._maskRenderTexure&&this._maskRenderTexure.destroy(!1)},f([(0,h.M)("MakeupLayer"),d("design:type",Function),d("design:paramtypes",[Array]),d("design:returntype",void 0)],e.prototype,"updateGeometry",null),f([(0,h.M)("MakeupLayer"),d("design:type",Function),d("design:paramtypes",[]),d("design:returntype",void 0)],e.prototype,"destroy",null),e}(),_=function(e){function t(t,n,i,r,o,s,c){var u=e.call(this,t,n,c)||this;return u._maskGraphics=new a.TC,u.maxLConSize=0,u.maxRConSize=0,u._parentIntensity=1,u.jsonIntensity=o,u.getTexture(i,r),u._config=s,u.renderTexture=a.TI.create({width:t.width,height:t.height}),u}var n,i;return p(t,e),Object.defineProperty(t.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this._container&&(this._container.alpha=this.jsonIntensity*e),this._parentIntensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{set:function(e){this._container.visible=e},enumerable:!1,configurable:!0}),t.prototype.getTexture=function(e,t){var n="default"===this._dir?e:"".concat(this._dir,"|").concat(e),i=a.P6.kN[n],r=new a.jy(i),o=new a.jy(i.clone());r.anchor.set(.5),o.anchor.set(.5),this._leftIris=r,this._rightIris=o;var s=new a.W2;this._maskGraphics||(this._maskGraphics=new a.TC),s.addChild(this._maskGraphics),s.addChild(r),s.addChild(o),s.alpha=this.parentIntensity*this.jsonIntensity,s.mask=this._maskGraphics,this._container=s},t.prototype.setIrisProps=function(e,t){if(e.length){var n=this._config.getConfigByKeys(["POINTS_MAP","LEFT_IRIS","RIGHT_IRIS","LEFT_EYE_ORDER","RIGHT_EYE_ORDER"]),i=n.POINTS_MAP,r=(n.LEFT_IRIS,n.RIGHT_IRIS,n.LEFT_EYE_ORDER),o=n.RIGHT_EYE_ORDER,s=(i.left_eye_center,i.right_eye_center,getDistance(e[52],e[55])),a=getDistance(e[58],e[61]),c=Math.max(this.maxLConSize,getDistance(e[72],e[73])/s),u=Math.max(this.maxRConSize,getDistance(e[75],e[76])/a),h=s*c,l=s*c,p=a*u,f=a*u;this.maxLConSize=Math.max(Math.min(c,.7),.4),this.maxRConSize=Math.max(Math.min(u,.7),.4);var d=ue.baseTexture.width*this._options.height/ue.baseTexture.height,y=getCenter(e[74],e[104]),_=getCenter(e[77],e[105]);console.log("offset",(d-this._options.width)/2),y.x-=(d-this._options.width)/2,_.x-=(d-this._options.width)/2;var b=this._leftIris,m=this._rightIris;b.width=h,b.height=l,b.x=y.x,b.y=y.y,m.width=p,m.height=f,m.x=_.x,m.y=_.y,this._maskGraphics.clear(),this._drawMaskGraphics(r,e),this._drawMaskGraphics(o,e),t.render(this._container,{renderTexture:this.renderTexture})}},t.prototype._drawMaskGraphics=function(e,t){var n=this,i=this._maskGraphics;i.beginFill(16724736),i.lineStyle(1,16767232,1);var r=[];e.forEach((function(o,s){var a=t[o],c=n._getPixelPosition(a.x,a.y),u=c.x,h=c.y;r.push({x:u,y:h}),0===s?i.moveTo(u,h):s===e.length-1?(i.closePath(),i.endFill()):i.lineTo(u,h)}))},t.prototype._getPixelPosition=function(e,t){return{x:e,y:t}},t.prototype.destroy=function(){this._leftIris&&this._leftIris.destroy({children:!0,texture:!1,baseTexture:!1}),this._rightIris&&this._rightIris.destroy({children:!0,texture:!1,baseTexture:!1}),this._maskGraphics&&this._maskGraphics.destroy({children:!0,texture:!1,baseTexture:!1})},f([(0,h.M)("IrisLayer"),d("design:type",Function),d("design:paramtypes",["function"==typeof(n="undefined"!=typeof Array&&Array)?n:Object,"function"==typeof(i=void 0!==a.Th&&a.Th)?i:Object]),d("design:returntype",void 0)],t.prototype,"setIrisProps",null),t}(y),b=n(3120),m=n(1347),g=n(6109),v=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},k=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},x=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},w=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},S=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},M=(0,g.jl)("makeup"),T=function(){function e(e,t,n){e&&(this._options=e),t&&(this._lipVertex=t),n&&(this.renderer=n)}return e.prototype.destroy=function(){var e=this._lipMask;this._lipMask=null;try{e.destroy(!0)}catch(e){}try{this._lipMaskMesh.destroy(!0),this._lipMaskMesh=null}catch(e){}try{this._maskRenderTexture.destroy(!0),this._maskRenderTexture=null}catch(e){}this._config=null;try{this._maskSprite.destroy(!0),this._maskSprite=null}catch(e){}},e.prototype.load=function(){return x(this,void 0,void 0,(function(){var e,t,n,i,r;return w(this,(function(o){switch(o.label){case 0:return this._config?[3,2]:(this._config=new c.M,[4,this._config.load()]);case 1:o.sent(),o.label=2;case 2:return this._lipMask?[3,4]:[4,this._getMask()];case 3:o.sent(),o.label=4;case 4:return this._maskSprite&&!this._maskSprite.destroyed||(e=this._options,t=e.width,n=e.height,i=new a.jd({width:t,height:n}),this._maskRenderTexture=new a.TI(i),r=new a.jy(this._maskRenderTexture),this._maskSprite=r),[2,{maskSprite:this._maskSprite,lipmask:this._lipMask,lipmaskmesh:this._lipMaskMesh}]}}))}))},e.prototype.update=function(e){this._lipMaskMesh&&(this._lipMaskMesh.geometry.getBuffer("aVertexPosition").update(e),this.render())},e.prototype.render=function(){this.renderer&&this._lipMask&&this.renderer.render(this._lipMask,{renderTexture:this._maskRenderTexture})},e.prototype._getMask=function(){return x(this,void 0,void 0,(function(){var e,t,n,i,r,o,s,c,u;return w(this,(function(h){switch(h.label){case 0:return this._lipMask?[2,this._lipMask]:(e=new a.W2,(t=new a.jy(a.xE.WHITE)).width=this._options.width,t.height=this._options.height,e.addChild(t),n=this._lipVertex,i=this._config.getDataConfig(29),[4,this._loadLipImage()]);case 1:return r=h.sent(),o=(new a.wG).addAttribute("aVertexPosition",n).addAttribute("aUvs",i),"\n 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 }","\n precision mediump float;\n varying vec2 vUvs;\n uniform sampler2D uSamplerMakeup;\n\n \n void main() {\n gl_FragColor = texture2D(uSamplerMakeup, vUvs);\n }",s={uSamplerMakeup:r},c=a.ex.from("\n 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 }","\n precision mediump float;\n varying vec2 vUvs;\n uniform sampler2D uSamplerMakeup;\n\n \n void main() {\n gl_FragColor = texture2D(uSamplerMakeup, vUvs);\n }",s),u=new a.Kj(o,c),this._lipMaskMesh=u,e.addChild(u),this._lipMask=e,[2,e]}}))}))},e.prototype._loadLipImage=function(){return x(this,void 0,Promise,(function(){var e=this;return w(this,(function(t){return[2,new Promise((function(t,n){return x(e,void 0,void 0,(function(){var e,n,i;return w(this,(function(r){switch(r.label){case 0:return[4,(e=new b.KI).init()];case 1:return n=r.sent(),[4,e.loadImage(n)];case 2:return i=r.sent(),t(i[b.X_]),[2]}}))}))}))]}))}))},v([(0,h.M)("ReuseableLipMask"),k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],e.prototype,"destroy",null),v([(0,h.o)("ReuseableLipMask"),k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",Promise)],e.prototype,"_getMask",null),e}(),P=function(){function e(e,t,n,i,r,o,s,c){void 0===c&&(c=1),this._container=new a.W2,this._makeupMeshes=[],this._visible=!0,this.mouthShut=!0,this._applyed=!1,this._key=e,this._data=t,this._options=n,this.mesh=i,this.lipmesh=o,this.faceLandMarks=r,this.renderer=s,this.parentIntensity=c;var u=new a.jy(a.xE.WHITE);u.alpha=0,u.width=n.width,u.height=n.height,this._container.addChild(u)}var t;return Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){var t=this;this._target&&e!==this._visible&&(this._visible=e,this._makeupMeshes.forEach((function(n){e?t.apply(t._target):t.remove()})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mesh",{set:function(e){(this._meshVertex=e,this.geometry)&&(this.geometry.getBuffer("aVertexPosition").update(e),this._makeupMeshes.forEach((function(t){t.updateGeometry(e)})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lipmesh",{set:function(e){this._lipVertex=e,this._lipMaskIns&&this._lipMaskIns.update(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{set:function(e){var t=this;e&&e.length&&(this._irises&&this._irises.setIrisProps(e,this.renderer),(0,m.Sp)(e[98],e[102])<.03*(0,m.Sp)(e[0],e[32])?this.mouthShut||(this._makeupMeshes.forEach((function(e){"lips"===e.type&&(e.lipMask=null)})),this.mouthShut=!0):this.mouthShut&&(this._makeupMeshes.forEach((function(e){"lips"===e.type&&t._lipMaskIns&&(e.lipMask=t._lipMaskIns._maskSprite)})),this.mouthShut=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._intensity},set:function(e){M.info("set parentIntensity",e),this._irises&&(this._irises.parentIntensity=e),this._makeupMeshes.forEach((function(t){t.parentIntensity=e})),this._intensity=e},enumerable:!1,configurable:!0}),e.prototype.renderMesh=function(){this._lipMaskIns&&this._lipMaskIns.render(),this._makeupMeshes.forEach((function(e){e.renderMesh()}))},e.prototype.load=function(){return x(this,void 0,void 0,(function(){var e,t,n,i,r,o,s,a;return w(this,(function(u){switch(u.label){case 0:return this._config=new c.M,[4,this._config.load()];case 1:if(u.sent(),e=this._data,M.info("makeup info",this._data),t=[],e&&e.length){try{for(n=S(e),i=n.next();!i.done;i=n.next())"iris"===(r=i.value).type?(this._irises=this._getIris(r.src,r.blend,r.intensity),this.irisBlendMode=r.blend):(r.blend+"",t.push({src:r.src,intensity:r.intensity,type:r.type,blend:r.blend}))}catch(e){s={error:e}}finally{try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}}console.log("makeupLayersByBlendMode",t),o=this._getMeshLayerByBlendMode(t),this._makeupMeshes.push(o)}return[4,this._initLipMask()];case 2:return u.sent(),[2]}}))}))},e.prototype._getIris=function(e,t,n){return new _(this._options,this._key,e,t,n,this._config,this._container)},e.prototype._getMeshLayerByBlendMode=function(e){var t=e.some((function(e){return"lips"===e.type}))?"lips":"makeup",n=new y(this._options,this._key,this._container,this.renderer,t);n.parentIntensity=this.parentIntensity,this._irises&&(n.irisRenderTexture=this._irises.renderTexture.baseTexture,n.irisBlendMode=this.irisBlendMode);var i=this._config.getDataConfig(26);if(!this.geometry){var r=(new a.wG).addAttribute("aVertexPosition",this._meshVertex).addAttribute("aUvs",i);this.geometry=r}return n.drawMeshBatch(e,this.geometry),n},e.prototype.apply=function(e){this._target=e,this._applyMakeup(e)},e.prototype.remove=function(){this._removeMakeup(this._target)},e.prototype._applyMakeup=function(e){this._applyed||(this._applyed=!0,e.filters||(e.filters=[]),e.addChild(this._container))},e.prototype._removeMakeup=function(e){this._applyed&&(this._applyed=!1,e.filters&&e.removeChild(this._container))},e.prototype._initLipMask=function(){return x(this,void 0,void 0,(function(){var e,t,n=this;return w(this,(function(i){switch(i.label){case 0:return(e=new T(this._options,this._lipVertex,this.renderer))._options=this._options,e._lipVertex=this._lipVertex,e.renderer=this.renderer,this._lipMaskIns=e,[4,e.load()];case 1:return t=i.sent().maskSprite,this._makeupMeshes.forEach((function(e){console.log("是否闭嘴的",n.mouthShut),"lips"!==e.type||n.mouthShut||(e.lipMask=t)})),[2]}}))}))},e.prototype.destroy=function(){this.remove(),this._makeupMeshes.forEach((function(e){return e.destroy()})),this._makeupMeshes=[],this._irises&&this._irises.destroy(),this._irises=null,this._container.destroy(),this._target=null,this._lipMaskIns&&this._lipMaskIns.destroy()},v([(0,h.M)("Makeup"),k("design:type",Function),k("design:paramtypes",["function"==typeof(t=void 0!==a.W2&&a.W2)?t:Object]),k("design:returntype",void 0)],e.prototype,"_removeMakeup",null),v([(0,h.M)("Makeup"),k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],e.prototype,"destroy",null),e}(),C=n(3125),E=n(401),j=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},I=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},O=function(){function e(e,t,n,i,r,o,s,c){this._container=new a.W2,this._name=e,this._src=t,this._target=i,this._config=n,this._jsonIntensity=n.intensity,this._landmarks=r,this._options=o,this._key=s,this._angles=c}return Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this._parentIntensity=e,this._sticker&&(this._sticker.alpha=this._jsonIntensity*e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{set:function(e){this._landmarks=e,this._sticker&&this.setStickerProps()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angles",{set:function(e){this._angles=e,this._sticker&&this.setStickerProps()},enumerable:!1,configurable:!0}),e.prototype.getCircle=function(e){void 0===e&&(e=5);var t=new a.TC;return t.beginFill(16711680),t.drawCircle(0,0,e),t.endFill(),t},e.prototype.getCircle2=function(e){void 0===e&&(e=5);var t=new a.TC;return t.beginFill(255),t.drawCircle(0,0,e),t.endFill(),t},e.prototype.getDisplay=function(){return this._container},e.prototype.load=function(){var e,t=this;if(this.checkAnimated()){var n=[];this._src.forEach((function(e){var i;i=e.indexOf(".json")>-1?e:"".concat(t._key,"|").concat(JSON.parse(e).meta.image);var r=o.iV[i].textures,s=Object.keys(r).map((function(e){return r[e]}));n=n.concat(s)})),(e=new u.Kg(n)).animationSpeed=(this._config.fps||30)/60,e.play()}else{var i=this._src[0],r=a.P6.kN[i];e=new u.jy(r)}console.log("sticker blend",e),this._config.blend&&(e.blendMode_1=this._config.blend);this._config.wxAnchorOffset;e.width=this._config.width,e.height=this._config.height;var s=[.5,.5];this._config.anchor&&(s=this._config.anchor),e.anchor.set(s[0],s[1]),e.alpha=this._jsonIntensity*this.parentIntensity,this._sticker=e,this._container.addChild(this._sticker),this._container.convertTo3d(),this.setStickerProps()},e.prototype.setStickerProps=function(){var e=this._config,t=this._landmarks,n=E.Jp.map((function(e){return t[e]})),i=(0,m.Sp)(n[0],n[1]),r=e.wxAnchorArea,o=(e.wxAnchorOffset,e.wxWeights),s=i/E.jw,a=r.map((function(e){var n=t[e];return{x:n.x,y:n.y,z:0}}));this._container.scale.set(s);var c={x:a[0].x*o[0]+a[1].x*o[1]+a[2].x*o[2],y:a[0].y*o[0]+a[1].y*o[1]+a[2].y*o[2]};this._container.position.x=c.x,this._container.position.y=c.y,this._angles&&(this._container.euler.z=this._angles.roll,this._container.euler.y=this._angles.yaw,this._container.euler.x=this._angles.pitch)},e.prototype.checkAnimated=function(){if(this._src instanceof Array&&this._src.length>1)return!0;try{return JSON.parse(this._src[0]),!0}catch(e){return"json"===this._src[0].split(".").pop()}},e.prototype.tick=function(){},e.prototype.apply=function(){},e.prototype.remove=function(){},e.prototype.destroy=function(){this._sticker.destroy(),this._container.destroy(),this._sticker=null,this._target=null},j([(0,h.M)("StickerLayer"),I("design:type",Function),I("design:paramtypes",[]),I("design:returntype",Boolean)],e.prototype,"checkAnimated",null),j([(0,h.M)("StickerLayer"),I("design:type",Function),I("design:paramtypes",[]),I("design:returntype",void 0)],e.prototype,"destroy",null),e}(),R=function(){function e(e,t,n,i,r,o,s){void 0===s&&(s=1);var a=this;this._stickers=[],this._visible=!0,this._parentIntensity=1,this._target=n,this._options=r,this._landmarks=i;var c=new C.LE;c.setPlanes(400,10,1e4,!0),this._camera=c,this._stickers=t.map((function(t){var s=new O(t.name,t.src,t,n,i,r,e,o);return s.parentIntensity=a.parentIntensity,s.load(),a._camera.addChild(s.getDisplay()),s}))}return Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this._stickers.forEach((function(t){t.parentIntensity=e})),this._parentIntensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{set:function(e){this._stickers.forEach((function(t){t.faceLandMarks=e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angles",{set:function(e){this._stickers.forEach((function(t){t.angles=e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._target&&e!==this._visible&&(this._visible=e,e?this.apply():this.remove())},enumerable:!1,configurable:!0}),e.prototype.tick=function(){this._stickers.forEach((function(e){return e.tick()}))},e.prototype.apply=function(){this._target.addChild(this._camera)},e.prototype.remove=function(){this._target.removeChild(this._camera)},e.prototype.destroy=function(){this.remove(),this._stickers.forEach((function(e){return e.destroy()})),this._camera.destroy(),this._stickers=[]},e}(),F=n(6878),L=n(6879),V=n(201),A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},U=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},D=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},G=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},H=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},B=((0,g.jl)("Effect"),function(){function e(e,t,n,i,r,o,s,a,c,u,h){this.type="face",this._filters=[],this._destroyed=!1,this._visible=!0,this._intensity=1,this._filterIntensity=1,this.localSpriteSheets={},this._filtersActived=!0,this._target=t,this._stickerTarget=n,this._url=e,this._key=e,this._options=r,this.mesh=o,this.lipmesh=a,this.faceLandMarks=s,c&&(this.angles=c),void 0!==u&&(this.intensity=u),this._app3d=i,this._canvas=h}var t;return Object.defineProperty(e.prototype,"isPureFilter",{get:function(){var e=this._config;return!!e&&((!e.makeup||!e.makeup.length)&&((!e.sticker||!e.sticker.length)&&((!e.sticker3d||!e.sticker3d.length)&&(!e.beautify||!Object.keys(e.beautify).find((function(t){return!!e.beautify[t]}))))))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filterActived",{get:function(){return this._filtersActived},set:function(e){e!==this._filtersActived&&(this._filterTarget&&(e?this._applyFilter(this._filterTarget):this._removeFilter(this._filterTarget)),this._filtersActived=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"app3d",{get:function(){return this._app3d},set:function(e){this._app3d=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},set:function(e){e>1&&(F.Nd.trigger("error",{message:r.Z.t("0015"),code:L.U.SET_INTENSITY_ERROR}),e=1),null!=e&&(this._makeup&&(this._makeup.parentIntensity=e),this._sticker&&(this._sticker.parentIntensity=e),this._intensity=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filterIntensity",{get:function(){return this._filterIntensity},set:function(e){null!=e&&(this._filters&&this._filters.forEach((function(t){t.uniforms.parentIntensity=e})),this._filterIntensity=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._destroyed||(this._visible=e,this._makeup&&(this._makeup.visible=e),this._sticker&&(this._sticker.visible=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mesh",{set:function(e){this._destroyed||(this._meshVertex=e,this._makeup&&(this._makeup.mesh=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lipmesh",{set:function(e){this._destroyed||(this._lipVertex=e,this._makeup&&(this._makeup.lipmesh=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{get:function(){return this._faceLandMarks},set:function(e){this._destroyed||(this._faceLandMarks=e,this._makeup&&(this._makeup.faceLandMarks=e),this._sticker&&(this._sticker.faceLandMarks=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angles",{set:function(e){this._angles=e,this._sticker&&(this._sticker.angles=e)},enumerable:!1,configurable:!0}),e.prototype.download=function(){return D(this,void 0,Promise,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return[4,this._getLoader()];case 1:return[4,t.sent().preload(this._url)];case 2:return t.sent(),[4,this._getConfig()];case 3:return e=t.sent(),g.D4.info("download:",this._url,e),[2,e]}}))}))},e.prototype.load=function(){return D(this,void 0,Promise,(function(){var e,t,n,i,r,o;return G(this,(function(s){switch(s.label){case 0:return[4,this.download()];case 1:return e=s.sent(),t=e.filter,n=e.makeup,i=e.beautify,r=e.sticker,o=e.sticker3d,[4,this._loadImages(e)];case 2:return s.sent(),this.loadFilter(t),[4,this.setMakeup(n)];case 3:return s.sent(),r?[4,this.loadStickers(r)]:[3,5];case 4:s.sent(),s.label=5;case 5:return[4,this.load3d(o)];case 6:return s.sent(),this.sticker3d=o,[4,this._getLoader()];case 7:return s.sent().removeFromCache(this._url),[2,i]}}))}))},e.prototype._getLoader=function(){return D(this,void 0,void 0,(function(){return G(this,(function(e){switch(e.label){case 0:return this._loader?[3,2]:(this._loader=new o.pF,[4,this._loader.init()]);case 1:e.sent(),e.label=2;case 2:return[2,this._loader]}}))}))},e.prototype._getConfig=function(){return D(this,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return this._config?[3,3]:[4,this._getLoader()];case 1:return[4,(e=t.sent()).preload(this._url)];case 2:t.sent(),this._config=e.readJSON("content.json",this._key),t.label=3;case 3:return[2,this._config]}}))}))},e.prototype.hasEyeMakeup=function(){return D(this,void 0,Promise,(function(){var e,t,n,i,r,o,s,a;return G(this,(function(c){switch(c.label){case 0:return[4,this._getConfig()];case 1:e=c.sent(),t=e.makeup,console.log("美妆配置",e),n=!1;try{for(i=H(t),r=i.next();!r.done;r=i.next())if("iris"===(o=r.value).type||"eyes"===o.type){n=!0;break}}catch(e){s={error:e}}finally{try{r&&!r.done&&(a=i.return)&&a.call(i)}finally{if(s)throw s.error}}return[2,n]}}))}))},e.prototype.needDetection=function(){return D(this,void 0,Promise,(function(){var e,t,n,i;return G(this,(function(r){switch(r.label){case 0:return[4,this._getConfig()];case 1:return e=r.sent(),t=e.makeup,n=e.sticker,i=e.sticker3d,[2,t&&t.length||n&&n.length||i&&i.length]}}))}))},e.prototype.hasFilter=function(){return D(this,void 0,Promise,(function(){var e,t;return G(this,(function(n){switch(n.label){case 0:return[4,this._getConfig()];case 1:return e=n.sent(),[2,!(!(t=e.filter)||!t.length)]}}))}))},e.prototype.loadStickers=function(e){return D(this,void 0,Promise,(function(){var t;return G(this,(function(n){return e.length?((t=new R(this._key,e,this._stickerTarget,this.faceLandMarks,this._options,this._angles)).parentIntensity=this.intensity,this._sticker=t,[2]):[2,Promise.resolve()]}))}))},e.prototype.loadSticker3d=function(e){return void 0===e&&(e=[]),D(this,void 0,Promise,(function(){return G(this,(function(e){return[2]}))}))},e.prototype.load3d=function(e){return D(this,void 0,void 0,(function(){return G(this,(function(e){return[2]}))}))},e.prototype.initThreeApp=function(){return D(this,void 0,void 0,(function(){return G(this,(function(e){return[2]}))}))},e.prototype.apply3d=function(){},e.prototype.removeForConsole=function(){},e.prototype.destroyForConosle=function(){},e.prototype.setMakeup=function(e){return e.length?(this._makeup=new P(this._key,e,this._options,this._meshVertex,this.faceLandMarks,this._lipVertex,this.renderer,this.intensity),this._makeup.load()):Promise.resolve()},e.prototype.apply=function(e){this._destroyed||this._applyed||(this.filterActived&&this._applyFilter(e.filterTarget),this._filters.length&&e.filterCallback&&e.filterCallback(),this._filterTarget=e.filterTarget,this._makeup&&this._makeup.apply(this._target),this._sticker&&this._sticker.apply(),this.apply3d(),this._applyed=!0)},e.prototype.getUrl=function(){return this._url},e.prototype.remove=function(){this._makeup&&this._makeup.remove(),this._sticker&&this._sticker.remove(),this.removeForConsole(),this._removeFilter(this._filterTarget),this._applyed=!1},e.prototype.tick=function(){this._sticker&&this._sticker.tick()},e.prototype.tickMesh=function(){this._makeup&&this._makeup.renderMesh()},e.prototype.destroy=function(){this._destroyed=!0,this.remove(),this._makeup&&(this._makeup.destroy(),this._makeup=null),this._sticker&&(this._sticker.destroy(),this._sticker=null),this.destroyForConosle(),this._filters=[],this.clearTexture()},e.prototype.loadFilter=function(e){var t=this;this._destroyed||e&&e.length&&e.forEach((function(e){var n=t._createFilterSync(e.src,e.intensity,t.filterIntensity);t._filters.push(n)}))},e.prototype._applyFilter=function(e){e.filters||(e.filters=[]),e.filters=this._filters.concat(e.filters)},e.prototype._removeFilter=function(e){e&&e.filters&&e.filters.length&&this._filters.forEach((function(t){var n=e.filters.findIndex((function(e){return e===t}));n>-1&&e.filters.splice(n,1)}))},e.prototype._createFilterSync=function(e,t,n){var i="default"===this._key?e:"".concat(this._key,"|").concat(e),r=a.P6.kN[i];return r.baseTexture.scaleMode=a.aH.LINEAR,r.baseTexture.mipmap=a.KI.OFF,new s.f("lut",this._options,{uniforms:{lut:r,intensity:t,parentIntensity:n}})},e.prototype.clearTexture=function(){for(var e in a.P6.kN)if(e.indexOf(this._key)>-1){var t=a.P6.kN[e];a.xE.removeFromCache(t),t.destroy(!0)}for(var e in this.localSpriteSheets)o.iV[e]&&o.iV[e]instanceof a.c2&&(o.iV[e].destroy(),delete o.iV[e])},e.prototype._loadImages=function(e){var t,n,i=this,r=(e.filter||[]).concat(e.makeup||[]).concat(e.sticker||[]),s=this._loader.getIndeLoader(),c={};this.localSpriteSheets=c;try{for(var u=H(r),h=u.next();!h.done;h=u.next()){var l=h.value;if(l.src instanceof Array)l.src.forEach((function(e,t){var n=i.checkSpriteSheetJSON(e);if(n){var r=n.meta.image,o="".concat(i._key,"|").concat(r);if(a.P6.kN[o])return;if(0===r.indexOf("blob:")){var u=a.xE.from(r);a.xE.addToCache(u,o)}else s.add(o,r);n.meta.image="",c[o]=n}else{if(a.P6.kN[e])return;if(s.resources[e])return;s.add(e,e)}}));else{var p="".concat(this._key,"|").concat(l.src);if(a.P6.kN[p])continue;if(0===l.src.indexOf("blob:")){var f=a.xE.from(l.src);a.xE.addToCache(f,p)}else s.add(p,l.src)}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return new Promise((function(e){s.load((function(t,n){return D(i,void 0,void 0,(function(){var t,i,r,s,u;return G(this,(function(h){switch(h.label){case 0:for(r in t=function(e){var t;return G(this,(function(n){switch(n.label){case 0:return o.iV[e]?[2,"continue"]:c[e]?(t=new a.c2(a.P6.kN[e],c[e],"@".concat((0,V.u)(),"x")),[4,new Promise((function(n){t.parse((function(){o.iV[e]=t,n()}))}))]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))},i=[],a.P6.kN)i.push(r);s=0,h.label=1;case 1:return s<i.length?(u=i[s],[5,t(u)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:for(u in n)o.iV[u]||c[u]||(o.iV[u]=n[u]);return e(),[2]}}))}))}))}))},e.prototype.checkSpriteSheetJSON=function(e){try{return JSON.parse(e)}catch(e){return null}},N([(0,h.M)("Effect"),U("design:type",Function),U("design:paramtypes",[]),U("design:returntype",void 0)],e.prototype,"remove",null),N([(0,h.M)("Effect"),U("design:type",Function),U("design:paramtypes",[]),U("design:returntype",void 0)],e.prototype,"destroy",null),N([(0,h.M)("Effect"),U("design:type",Function),U("design:paramtypes",["function"==typeof(t=void 0!==a.W2&&a.W2)?t:Object]),U("design:returntype",void 0)],e.prototype,"_removeFilter",null),e}()),z=function(e){function t(t,n,i,r,o,s,a,c){var u=e.call(this,"default",n,i,r,o,s,a,c)||this;return u._json=t,u._app3d=r,u}return A(t,e),t.prototype.load=function(){return D(this,void 0,Promise,(function(){var e,t,n,i,r,o;return G(this,(function(s){switch(s.label){case 0:return e=this._json,t=e.filter,n=e.makeup,i=e.beautify,r=e.sticker,o=e.sticker3d,[4,this._loadImages(e)];case 1:return s.sent(),this.loadFilter(t),[4,this.setMakeup(n)];case 2:return s.sent(),r?[4,this.loadStickers(r)]:[3,4];case 3:s.sent(),s.label=4;case 4:return o?this._app3d?[3,6]:[4,this.initThreeApp()]:[3,8];case 5:s.sent(),s.label=6;case 6:return[4,this.loadSticker3d(o||[])];case 7:s.sent(),s.label=8;case 8:return[2,i]}}))}))},t.prototype.loadImage=function(){return D(this,void 0,void 0,(function(){return G(this,(function(e){return[2]}))}))},t.prototype._loadImages=function(e){var t,n,i=this,r=new a.aN,s=(e.filter||[]).concat(e.makeup||[]).concat(e.sticker||[]),c={},u=function(e){if(e.src instanceof Array)e.src.forEach((function(t,n){var o=i.checkSpriteSheetJSON(t);if(o){var s=o.meta.image,u="".concat(i._key,"|").concat(s);if(a.P6.kN[u])return;if(e.objectSrc&&e.objectSrc.length){var h=a.xE.from(e.objectSrc[n]);a.xE.addToCache(h,u)}else if(0===s.indexOf("blob:")){h=a.xE.from(s);a.xE.addToCache(h,u)}else r.add(u,s);o.meta.image="",c[u]=o}else{if(a.P6.kN[t])return;if(r.resources[t])return;if(e.objectSrc&&e.objectSrc.length){h=a.xE.from(e.objectSrc[n],{resolution:(0,V.u)()});a.xE.addToCache(h,t)}else r.add(t,t)}}));else{if(a.P6.kN[e.src])return"continue";if(r.resources[e.src])return console.log("already loaded file",e.src),"continue";if(e.objectSrc){console.log("use imagebitmap to create texture");var t=a.xE.from(e.objectSrc);a.xE.addToCache(t,e.src)}else if(0===e.src.indexOf("blob:")){t=a.xE.from(e.src);console.log("JSONEffect blob texture",t),a.xE.addToCache(t,e.src)}else r.add(e.src)}};try{for(var h=H(s),l=h.next();!l.done;l=h.next()){u(l.value)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return new Promise((function(e){return D(i,void 0,void 0,(function(){var t=this;return G(this,(function(n){return r.load((function(n,i){return D(t,void 0,void 0,(function(){var t,n,r,s,u;return G(this,(function(h){switch(h.label){case 0:for(r in t=function(e){var t;return G(this,(function(n){switch(n.label){case 0:return o.iV[e]?[2,"continue"]:c[e]?(t=new a.c2(a.P6.kN[e],c[e],"@".concat((0,V.u)(),"x")),[4,new Promise((function(n){t.parse((function(){o.iV[e]=t,n()}))}))]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))},n=[],a.P6.kN)n.push(r);s=0,h.label=1;case 1:return s<n.length?(u=n[s],[5,t(u)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:for(u in i)o.iV[u]||c[u]||(o.iV[u]=i[u]);return e(),[2]}}))}))})),[2]}))}))}))},t.prototype.loadSticker3d=function(e){return D(this,void 0,Promise,(function(){return G(this,(function(e){return[2]}))}))},t}(B),J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),W=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},K=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Y=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},q=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},X=((0,g.jl)("Effect"),function(){function e(e,t,n,i){this.type="hand",this._destroyed=!1,this._visible=!0,this._intensity=1,this.localSpriteSheets={},this._url=e,this._key=e,this._app3d=t,this._canvas=i,this._options=n}return Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"app3d",{get:function(){return this._app3d},set:function(e){this._app3d=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._destroyed||(this._visible=e)},enumerable:!1,configurable:!0}),e.prototype.download=function(){return Y(this,void 0,Promise,(function(){var e;return q(this,(function(t){switch(t.label){case 0:return[4,this._getLoader()];case 1:return[4,t.sent().preload(this._url)];case 2:return t.sent(),[4,this._getConfig()];case 3:return e=t.sent(),g.D4.info("download:",this._url,e),[2,e]}}))}))},e.prototype.load=function(){return Y(this,void 0,Promise,(function(){var e,t;return q(this,(function(n){switch(n.label){case 0:return[4,this.download()];case 1:return e=n.sent(),t=e.hand,[4,this.load3d(t||[])];case 2:return n.sent(),[4,this._getLoader()];case 3:return n.sent().removeFromCache(this._url),[2,null]}}))}))},e.prototype._getLoader=function(){return Y(this,void 0,void 0,(function(){return q(this,(function(e){switch(e.label){case 0:return this._loader?[3,2]:(this._loader=new o.pF,[4,this._loader.init()]);case 1:e.sent(),e.label=2;case 2:return[2,this._loader]}}))}))},e.prototype._getConfig=function(){return Y(this,void 0,void 0,(function(){var e;return q(this,(function(t){switch(t.label){case 0:return this._config?[3,3]:[4,this._getLoader()];case 1:return[4,(e=t.sent()).preload(this._url)];case 2:t.sent(),this._config=e.readJSON("content.json",this._key),t.label=3;case 3:return[2,this._config]}}))}))},e.prototype.load3d=function(e){return Y(this,void 0,void 0,(function(){return q(this,(function(e){return[2]}))}))},e.prototype.initThreeApp=function(){return Y(this,void 0,void 0,(function(){return q(this,(function(e){return[2]}))}))},e.prototype.apply3d=function(){},e.prototype.removeForConsole=function(){},e.prototype.destroyForConosle=function(){},e.prototype.apply=function(){this._destroyed||this._applyed||(this.apply3d(),this._applyed=!0)},e.prototype.getUrl=function(){return this._url},e.prototype.remove=function(){this.removeForConsole(),this._applyed=!1},e.prototype.tick=function(){},e.prototype.tickMesh=function(){},e.prototype.destroy=function(){this._destroyed=!0,this.remove(),this.destroyForConosle(),this.clearTexture()},e.prototype.clearTexture=function(){for(var e in a.P6.kN)if(e.indexOf(this._key)>-1){var t=a.P6.kN[e];a.xE.removeFromCache(t),t.destroy(!0)}for(var e in this.localSpriteSheets)o.iV[e]&&o.iV[e]instanceof a.c2&&(o.iV[e].destroy(),delete o.iV[e])},e.prototype.checkSpriteSheetJSON=function(e){try{return JSON.parse(e)}catch(e){return null}},W([(0,h.M)("Effect"),K("design:type",Function),K("design:paramtypes",[]),K("design:returntype",void 0)],e.prototype,"remove",null),W([(0,h.M)("Effect"),K("design:type",Function),K("design:paramtypes",[]),K("design:returntype",void 0)],e.prototype,"destroy",null),e}()),Z=function(e){function t(t,n,i,r){var o=e.call(this,"default",n,i,r)||this;return o._json=t,o._app3d=n,o}return J(t,e),t.prototype.load=function(){return Y(this,void 0,Promise,(function(){var e,t;return q(this,(function(n){switch(n.label){case 0:return e=this._json,(t=e.hand)?this._app3d?[3,2]:[4,this.initThreeApp()]:[3,4];case 1:n.sent(),n.label=2;case 2:return[4,this.loadHand3d(t||[])];case 3:n.sent(),n.label=4;case 4:return[2,null]}}))}))},t.prototype.loadImage=function(){return Y(this,void 0,void 0,(function(){return q(this,(function(e){return[2]}))}))},t.prototype.loadSticker3d=function(e){return Y(this,void 0,Promise,(function(){return q(this,(function(e){return[2]}))}))},t.prototype.loadHand3d=function(e){return Y(this,void 0,Promise,(function(){return q(this,(function(e){return[2]}))}))},t}(X),$=n(5156),Q=n(7959),ee=n(6309),te=n(1077),ne=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ie=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},re=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},oe=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},se=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},ae=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ce=(0,g.jl)("Renderer"),ue=function(){};var he=function(e){function t(t){var n=e.call(this,t)||this;return n._setup=!1,n._effects=[],n._debug=!0,n._destroyed=!1,n._isVR=!1,n._meshVertexTimer=0,n.lib3dLoaded=!1,n.libHand3dLoaded=!1,console.log("[@#$] AR Renderer Constructed",location),n._debug=!1,t.output?n._canvas=new wx.window.Canvas(t.output):n._canvas=new wx.window.Canvas(wx.createOffscreenCanvas({type:"webgl",width:t.width,height:t.height})),n._stage=new a.W2,n._options=t,a.Xd.RESOLUTION=(0,V.u)(),a.Xd.FILTER_RESOLUTION=(0,V.u)(),n._renderer=new a.Th({view:n._canvas,width:t.width,height:t.height,useContextAlpha:!1,preserveDrawingBuffer:!1,antialias:!1}),n.setRenderer(),n.initRenderContext(t),n.handleLoading(),n.setup(),n}return ne(t,e),Object.defineProperty(t.prototype,"mirror",{set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backGroundVR",{set:function(e){if(e){this._backgroundVR=new a.jy(a.xE.from(e));var t=this._backgroundVR,n=t.width,i=t.height,r=Math.max(this._options.width/n,this._options.height/i);this._backgroundVR.width*=r,this._backgroundVR.height*=r}else this._backgroundVR=null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{set:function(e){var t=e.width,n=e.height;this._canvas.width=t,this._canvas.height=n,this._renderer&&this.resize(t,n),this._baseSprite&&(this._baseSprite.width=t,this._baseSprite.height=n,this._baseSprite.position.set(t/2,n/2),this._baseSprite.anchor.set(.5,.5)),this._baseRenderTexture.resize(t,n),this._makeupRenderTexture.resize(t,n),this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"app3d",{get:function(){return this._app3d},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"avatar3d",{get:function(){return this._avatar3d},enumerable:!1,configurable:!0}),t.prototype.initRenderContext=function(e){this._baseContainer=new a.W2,this._makeupContainer=new a.W2,this._finalContainer=new a.W2,this._baseRenderTexture=a.TI.create({width:e.width,height:e.height}),this._makeupRenderTexture=a.TI.create({width:e.width,height:e.height}),this._makeupContainer.addChild(new a.jy(this._baseRenderTexture)),ue.baseTexture=this._baseRenderTexture,this._finalContainer.addChild(new a.jy(this._makeupRenderTexture)),this._stage.addChild(this._finalContainer),this._target=this._finalContainer},t.prototype.loadLib3d=function(){return oe(this,void 0,Promise,(function(){var e;return se(this,(function(t){switch(t.label){case 0:return e=new ee.e({}),console.log("+++++loader init"),[4,e.init()];case 1:return t.sent(),console.log("+++++loader init done"),this._options.plugin3d&&this._options.plugin3d(B,z,e,wx.window),[2]}}))}))},t.prototype.loadHand3d=function(){return oe(this,void 0,Promise,(function(){var e;return se(this,(function(t){switch(t.label){case 0:return e=new ee.e({}),console.log("+++++loader init"),[4,e.init()];case 1:return t.sent(),console.log("+++++loader init done"),this._options.plugin3d&&this._options.pluginHand(X,Z,e,wx.window),[2]}}))}))},t.prototype.setup=function(){return oe(this,void 0,void 0,(function(){return se(this,(function(e){switch(e.label){case 0:return this._setup?[2]:(this._config=new c.M,[4,this._config.load()]);case 1:return e.sent(),this._setup=!0,[2]}}))}))},Object.defineProperty(t.prototype,"meshVertex",{get:function(){return this._meshVertex},set:function(e){this._meshVertex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mirrorFilter",{get:function(){return this._mirrorFilter||(this._mirrorFilter=new s.f("mirror",{width:l.t.instance.options.width,height:l.t.instance.options.height})),this._mirrorFilter},enumerable:!1,configurable:!0}),t.prototype.switchMode=function(e){e!==this._mode3d&&("Sticker"===e&&this.setAvatar(null),this._mode3d=e)},t.prototype.logTime=function(e){var t=+new Date;console.log("".concat(e," time:").concat(t-this.currentTime)),this.currentTime=t},t.prototype.tick=function(t,n){var i=t.landmarks,r=t.meshVertex,o=t.lipVertex,s=t.image,c=t.angles,u=(t.backgroundType,t.background,t.segmentation,t.blendshapes,t.isLivePusher);t.hair;if(!this._destroyed)if(this._renderer)if(this._stage)if(this._setup){this.currentTime=+new Date;try{this._renderer.reset()}catch(e){}if(this._isVR)try{this._renderer.render(this._backgroundVR)}catch(e){}else{if(u)if(this._baseSprite)this._baseSprite.texture.update();else{d=a.xE.from(s);this._baseSprite=new a.jy(d),this._baseSprite.anchor.set(.5,.5),this._baseSprite.position.set(this._options.width/2,this._options.height/2),this._baseSprite.scale.set(1,-1),this._baseContainer.addChild(this._baseSprite)}else{var h=s,l=h.width,p=h.height,f=h.data;if(this._baseSprite){if(this._baseSprite.texture.width===l&&this._baseSprite.texture.height===p)this._baseSprite.texture.baseTexture.resource.data=new Uint8Array(f),this._baseSprite.texture.update();else this._baseSprite.texture.destroy(!0),this._baseSprite.texture=a.xE.fromBuffer(new Uint8Array(f),l,p)}else{var d=a.xE.fromBuffer(new Uint8Array(f),l,p);this._baseSprite=new a.jy(d),this._baseSprite.anchor.set(.5,.5),this._baseSprite.position.set(this._options.width/2,this._options.height/2);var y=Math.max(this._options.width/l,this._options.height/p);this._baseSprite.scale.set(y),this._baseContainer.addChild(this._baseSprite)}}(Q.s.checkEnabled("beautify")||Q.s.checkEnabled("segmentation")||Q.s.checkEnabled("hair"))&&(e.prototype.setMesh.call(this,r),e.prototype.setReshapeMarks.call(this,i),i&&i.length?(this._faceLandmarks=i,this._angles=c,this.meshVertex=r,this.lipVertex=o,this._effects.forEach((function(e){e.visible||(e.visible=!0),e.lipmesh=o,e.mesh=r,e.angles=c,e.faceLandMarks=i,e.tick()})),"Sticker"===this._mode3d&&this._app3d&&this._app3d.loaded&&(this._app3d.facelandmarks=i,this._app3d.angles=c)):this.handleNoFace()),this._render()}}else g.b_.info("_renderer waiting for setup");else g.b_.info("_renderer waiting for stage");else g.b_.info("_renderer waiting for renderer")},t.prototype.handleNoFace=function(){this._effects.forEach((function(e){return e.visible=!1})),this._effects.forEach((function(e){e.tickMesh()}));new Date;"AR"===this._mode3d||"Sticker"===this._mode3d&&this._app3d&&this._app3d.loaded&&(this._app3d.facelandmarks=[],this._app3d.angles={})},t.prototype._render=function(){this.renderLayers(),Q.s.checkEnabled("beautify")&&"Sticker"===this._mode3d&&this._app3d&&this._app3d.loaded&&this._app3d.render(),Q.s.checkEnabled("handLandmark")&&this._appHand3d&&this._appHand3d.render()},t.prototype.renderLayers=function(){this._renderer.render(this._baseContainer,{renderTexture:this._baseRenderTexture}),this._renderer.render(this._makeupContainer,{renderTexture:this._makeupRenderTexture}),this._renderer.render(this._stage)},t.prototype.getBaseTexture=function(){return this._baseSprite.texture},t.prototype.removeBackground=function(){this.background&&(this.background.remove(),this.background=null)},t.prototype.applyBackground=function(e){this.background},t.prototype.removeForeground=function(){this.foreground&&this.foreground.parent.removeChild(this.foreground)},t.prototype.addForeground=function(e,t){var n=l.t.instance.options,i=n.width,r=n.height;this.foreground=new u.jy(a.xE.from(e)),"video"===t&&(this.foreground.blendMode_1=6),this.foreground.width=i,this.foreground.height=r,this._finalContainer.addChild(this.foreground)},t.prototype.debugDraw=function(e){if(!this.points){for(var t=[],n=0;2*n<e.length;n++){var i=this.getCircle(2);t.push(i),this._baseContainer.addChild(i)}this.points=t}for(n=0;2*n<e.length;n++)this.points[n].x=e[2*n],this.points[n].y=e[2*n+1]},t.prototype.debugDraw2=function(e){if(console.log("debug draw 2",e.length),!this.points){for(var t=[],n=0;n<e.length;n++){var i=this.getCircle(2);t.push(i),this._baseContainer.addChild(i)}this.points=t}for(n=0;n<e.length;n++)this.points[n].x=540*e[n].x,this.points[n].y=540*e[n].y},t.prototype.getPixels=function(){var e=this._options,t=e.width,n=e.height,i=new Uint8Array(t*n*4),r=this._renderer.gl;return r.readPixels(0,0,t,n,r.RGBA,r.UNSIGNED_BYTE,i),{data:i,width:t,height:n}},t.prototype.setEffect=function(e,t,n,i){return oe(this,void 0,Promise,(function(){var r,o=this;return se(this,(function(s){return r=!0,this.latestEffectUrls&&this.latestEffectUrls.length===e.length&&e.every((function(e){return o.latestEffectUrls.indexOf(e)>-1}))&&(r=!1,this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)),this.latestEffectUrls=e,[2,new Promise((function(s,a){r?(o.debounceTimer&&(clearTimeout(o.debounceTimer),o.debounceTimer=null),o.debounceTimer=setTimeout((function(){return o._setEffect(e,t,n,i).then((function(e){clearTimeout(o.debounceTimer),o.debounceTimer=null,s(e)}))}),100)):o._setEffect(e,t,n).then((function(e){s(e)}))}))]}))}))},t.prototype._setEffect=function(e,t,n,i){return oe(this,void 0,Promise,(function(){var r,s=this;return se(this,(function(a){return g.b_.time("waiting for AI init..."),Q.s.checkEnabled("beautify")&&!this._meshVertex?[2,new Promise((function(r){clearTimeout(s._meshVertexTimer),s._meshVertexTimer=setInterval((function(){g.b_.info("waiting for AI init..."),s._meshVertex&&(g.b_.info("waiting for AI init...done"),clearTimeout(s._meshVertexTimer),s._setEffect(e,t,n,i).then((function(){r(s._effects)})))}),200)}))]:(g.b_.timeEnd("waiting for AI init..."),r="uid_"+Math.floor(1e8*Math.random()),[2,new Promise((function(a,c){return oe(s,void 0,void 0,(function(){var s,c,u,h,l,p,f,d,y,_,b,m,v,k,x,w=this;return se(this,(function(S){switch(S.label){case 0:for(s=[].concat(this._effects),c=[],u=[],h=[],l=[],p=[],f=[],e.length||(this.filterActivedEffect=null),d=[],y=function(i){var r=s.findIndex((function(t){return t.url===e[i]}));if(r>-1)c.push(s[r]),s[r],u.push(t[i]),h.push(n[i]),s.splice(r,1);else{var a=e[i];f.push(function(e){return oe(this,void 0,Promise,(function(){var t,n;return se(this,(function(i){switch(i.label){case 0:return[4,(t=new o.pF).init()];case 1:return i.sent(),[4,t.preload(e)];case 2:return i.sent(),n=t.readJSON("content.json",e),g.D4.info("download:",e,n),[2,n]}}))}))}(a)),d.push(a)}},_=0;_<e.length;_++)y(_);return[4,Promise.all(f)];case 1:for(b=S.sent(),!1,m=!1,v=0;v<b.length;v++)k=d[v],console.log("识别 key",k,d),x=void 0,(x=new B(k,this._makeupContainer,this._finalContainer,this._app3d,this._options,this._meshVertex,this._faceLandmarks,this.lipVertex,this._angles,t[v],this._canvas)).filterIntensity=n[v],b[v].sticker3d&&b[v].sticker3d.length&&(m=!0),x.renderer=this._renderer,l.push(x);return g.b_.time("require 3d lib"),this.lib3dLoaded||!m?[3,3]:i&&!i()?[2]:(console.log("require 3d lib"),[4,this.loadLib3d()]);case 2:S.sent(),this.lib3dLoaded=!0,S.label=3;case 3:return g.b_.timeEnd("require 3d lib"),g.b_.info("check all new Effects",l,s),l.forEach((function(e){p.push(e.load().then((function(){return w._app3d||"face"!==e.type||(w._app3d=e.app3d),w._appHand3d||"hand"!==e.type||(w._appHand3d=e.app3d),e})).catch((function(e){ce.warn("effect load error",e)})))})),g.b_.time("renderer parse effect"),Promise.all(p).then((function(e){g.b_.timeEnd("renderer parse effect"),g.b_.time("renderer apply effect");for(var t=!1,n=0;n<l.length;n++){var i=l[n];w.latestEffectUrls&&-1===w.latestEffectUrls.indexOf(i.getUrl())&&(i.destroy(),t=!0)}if(t)ce.info(r+"end");else{s.forEach((function(e){e.remove()})),w._effects=c,c.forEach((function(e,t){e.intensity=u[t],e.filterIntensity=h[t]}));for(n=0;n<l.length;n++){i=l[n];w._effects.push(i),i.apply({filterTarget:w._baseSprite,filterCallback:function(){}})}s.forEach((function(e){e.destroy()})),g.b_.timeEnd("renderer apply effect"),a(w._effects)}})),[2]}}))}))}))])}))}))},t.prototype.setEffectJSON=function(e){return oe(this,void 0,void 0,(function(){var t,n,i,r,o,s=this;return se(this,(function(a){switch(a.label){case 0:return n=e.sticker3d,i=e.hand,n&&n.length&&!this.lib3dLoaded?(console.log("require 3d lib"),[4,this.loadLib3d()]):[3,2];case 1:a.sent(),this.lib3dLoaded=!0,a.label=2;case 2:return i&&i.length&&!this.libHand3dLoaded?(console.log("require 3d hand lib"),[4,this.loadHand3d()]):[3,4];case 3:a.sent(),this.libHand3dLoaded=!0,a.label=4;case 4:return r=!1,(o=function(){Q.s.checkEnabled("beautify")&&s._meshVertex&&(t&&clearTimeout(t),r=!0,s.getJSONEffectForFace(e)),Q.s.checkEnabled("handLandmark")&&i&&i.length&&(r=!0,s.getJSONEffectForHand(e)),r||(t=setTimeout(o,20))})(),[2]}}))}))},t.prototype.getJSONEffectForHand=function(e){var t=this,n=new Z(e,this._appHand3d,this._options,this._canvas);n.renderer=this._renderer,g.b_.info("getJSONEffectForHand"),n.load().then((function(){t._appHand3d||(t._appHand3d=n.app3d),n.apply()}))},t.prototype.getJSONEffectForFace=function(e){var t=this,n=new z(e,this._makeupContainer,this._finalContainer,this._app3d,this._options,this._meshVertex,this._faceLandmarks,this.lipVertex);return n.renderer=this._renderer,n.load().then((function(){t._app3d||(t._app3d=n.app3d);var e=[].concat(t._effects);t._effects=[n],n.apply({filterTarget:t._baseSprite}),e.forEach((function(e){e.destroy()}))})),n},t.prototype.setExclusiveFilter=function(e,t){var n=this;return void 0===t&&(t=1),new Promise((function(i,r){!function(){if(n.exclusiveFilter&&n.exclusiveFilter.getUrl()===e)n.exclusiveFilter.intensity=t,n.exclusiveFilter.filterIntensity=t;else{var r=new B(e,n._makeupContainer,n._finalContainer,n._app3d,n._options,n._meshVertex,n._faceLandmarks,n.lipVertex,n._angles,t);r.filterIntensity=t,r.load().then((function(){n.exclusiveFilter&&n.exclusiveFilter.destroy(),n.exclusiveFilter=r,r.renderer=n._renderer,r.apply({filterTarget:n._baseSprite}),i()}))}}()}))},t.prototype.resize=function(t,n){e.prototype.resize.call(this,t,n),console.log("renderer resize",t,n),this._options.width=t,this._options.height=n,this._renderer.resize(t,n),this.background&&this.background.resize(t,n),this._app3d?this._app3d.resize(t,n):this._avatar3d&&this._avatar3d.resize(t,n),this._baseRenderTexture&&this._baseRenderTexture.resize(t,n),this._makeupRenderTexture&&this._makeupRenderTexture.resize(t,n)},t.prototype.disableExclusiveFilter=function(){this.exclusiveFilter&&this.exclusiveFilter.remove()},t.prototype.enableExclusiveFilter=function(){this.exclusiveFilter&&this.exclusiveFilter.apply({filterTarget:this._baseSprite,filterCallback:function(){}})},t.prototype.disableEffects=function(){this._effects.forEach((function(e){e.isPureFilter||"hand"===e.type||e.remove()}))},t.prototype.enableEffects=function(){var e=this;this._effects.forEach((function(t){t.apply({filterTarget:e._baseSprite,filterCallback:function(){}})}))},t.prototype.removeExclusiveFilter=function(){this.exclusiveFilter&&(this.exclusiveFilter.destroy(),this.exclusiveFilter=null)},t.prototype.initAvatarApp=function(e,t){return oe(this,void 0,void 0,(function(){return se(this,(function(e){return[2]}))}))},t.prototype.setAvatar=function(e,t){return oe(this,void 0,void 0,(function(){return se(this,(function(e){return[2]}))}))},t.prototype.registerAvatar=function(e){},t.prototype.reCorrectAvatar=function(){return oe(this,void 0,void 0,(function(){return se(this,(function(e){return[2]}))}))},t.prototype.getCanvas=function(){return this._canvas},t.prototype.setOptions=function(e){},t.prototype.mount=function(e){this._canvas&&e.appendChild(this._canvas)},t.prototype.getCircle=function(e){void 0===e&&(e=5);var t=new a.TC;return t.beginFill(16711680),t.drawCircle(0,0,e),t.endFill(),t},t.preloadEffects=function(e){return oe(this,void 0,Promise,(function(){var t,n,i,r,s,a,c;return se(this,(function(u){switch(u.label){case 0:return e.length?[4,(t=new o.pF).init()]:[2];case 1:u.sent(),n=[];try{for(i=ae(e),r=i.next();!r.done;r=i.next())(s=r.value)&&n.push(t.preload(s))}catch(e){a={error:e}}finally{try{r&&!r.done&&(c=i.return)&&c.call(i)}finally{if(a)throw a.error}}return[2,Promise.all(n).then((function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))]}}))}))},t.prototype.handleLoading=function(){var e=this._options,n=e.enableLoadingIcon,i=e.loadingIconOptions,r=void 0===i?{}:i;if(n){var o=t.loading=new $.Z(r);o.zIndex=20;var s=this._options,a=s.width,c=s.height;o.x=a/2,o.y=c/2,this._stage.addChild(o)}},t.prototype.showLoading=function(){t.loading&&t.loading.show()},t.prototype.hideLoading=function(){t.loading&&t.loading.hide()},t.prototype.destroy=function(){this.hideLoading(),t.loading&&t.loading.destroy(),ue.baseTexture&&(ue.baseTexture.destroy(!0),ue.baseTexture=null),this._destroyed=!0,this._effects.forEach((function(e){e.destroy()})),this.exclusiveFilter&&this.exclusiveFilter.destroy(),this._stage&&this._stage.destroy(!0),this._renderer&&this._renderer.destroy(!0),this.background&&this.background.destroy(),this._app3d&&this._app3d.destroy(),this._appHand3d&&this._appHand3d.destroy(),this._meshVertexTimer&&clearTimeout(this._meshVertexTimer),this.destroyAvatar()},t.prototype.destroyAvatar=function(){this._avatar3d&&(this._avatar3d.destroy(),this._avatar3d=null)},ie([(0,h.M)("ArRenderer"),re("design:type",Function),re("design:paramtypes",[]),re("design:returntype",void 0)],t.prototype,"destroy",null),t}(te.F)}}]);
|