reacthub-pixitweenjs 0.2.109-alpha.3 → 0.2.109-alpha.4

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/dist/index.umd.js CHANGED
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var f$5=React,k$2=Symbol.for("react.element"),l$6=Symbol.for("react.fragment"),m$4=Object.prototype.hasOwnProperty,n$6=f$5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$4={key:!0,ref:!0,__self:!0,__source:!0};function q(A,E,C){var R,I={},B=null,U=null;C!==void 0&&(B=""+C),E.key!==void 0&&(B=""+E.key),E.ref!==void 0&&(U=E.ref);for(R in E)m$4.call(E,R)&&!p$4.hasOwnProperty(R)&&(I[R]=E[R]);if(A&&A.defaultProps)for(R in E=A.defaultProps,E)I[R]===void 0&&(I[R]=E[R]);return{$$typeof:k$2,type:A,key:B,ref:U,props:I,_owner:n$6.current}}reactJsxRuntime_production_min.Fragment=l$6,reactJsxRuntime_production_min.jsx=q,reactJsxRuntime_production_min.jsxs=q,jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,Effects=(A=>(A.BlackAndWhite="BlackAndWhite",A.Sepia="Sepia",A.RetroVintage="RetroVintage",A.NightVision="NightVision",A.Normal="Normal",A.Vignette="Vignette",A.None="Normal",A))(Effects||{}),Waveforms=(A=>(A.NONE="none",A.EQUALIZER="equalizer",A.ROUNDBARS="roundbars",A.LED="led",A.RADIAL_SPECTRUM="radial_spectrum",A.LUMI_BARS="lumi_bars",A))(Waveforms||{});let targetElement;function getElement(){return targetElement=document.body,targetElement}function useCustomEventListener(A,E,C){let R;return React.useEffect(()=>{R=R||getElement();const I=B=>{const U=B.detail;E(U)};return R.addEventListener(A,I,!1),()=>{R==null||R.removeEventListener(A,I,!1)}},C),I=>{R=I}}function emitCustomEvent(A,E){const C=getElement(),R=new CustomEvent(A,{detail:E});C.dispatchEvent(R)}function newCustomEventEmitter(){let A;function E(C){A=C}return E.emit=function(C,R){const I=new CustomEvent(C,{bubbles:!0,detail:R});A==null||A.dispatchEvent(I)},E}const GsapPixieContext=React__namespace.createContext({}),Events={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE",SCRUBBER_CLICKED:"GSAP_SCRUBBER_CLICKED",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END",REVERSE_MODE_START:"REVERSE_MODE_START",REVERSE_MODE_END:"REVERSE_MODE_END",FONTS_LOADED:"FONTS_LOADED"},GsapPixieContextProvider=({children:A})=>{const[E,C]=React.useState(0),R=React.useRef(),I=React.useRef(),B=React.useRef(0),U=React.useRef(!1),V=React.useRef(!1),[X,K]=React.useState(!1);React.useLayoutEffect(()=>(I.current=gsap$2.context(()=>{R.current&&R.current.progress(0).kill(),R.current&&R.current.clear(),R.current&&gsap$2.killTweensOf(R.current),R.current=gsap$2.timeline({paused:!0,defaults:{duration:0}})}),()=>{R.current&&R.current.revert(),I.current.revert()}),[]);const J=React.useCallback(()=>{if(R.current){let we=R.current.time();we<B.current?U.current=!0:U.current=!1,B.current=we}},[]);React.useEffect(()=>{if(R.current){const Te=R.current;Te.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){Te.pause(),J()}).eventCallback("onUpdate",function(){J()}).eventCallback("onRepeat",function(){console.log("onrepeat",Te.progress())}).eventCallback("onReverseComplete",function(){console.log("onReverseComplete",Te.progress())}).eventCallback("onComplete",function(){Te.seek(0),Te.pause(),emitCustomEvent(Events.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),J()})}},[]);const Y=React.useCallback(()=>{R.current&&R.current.revert()},[]),Z=React.useCallback(()=>{R.current&&R.current.restart()},[]),_e=React.useCallback(()=>{if(R.current){const Te=R.current;Te.repeat(1),Te.restart()}},[]),xe=React.useCallback(Te=>{R.current&&R.current.seek(Te)},[]),Se=React.useCallback(()=>{R.current&&R.current.seek(4)},[]),Pe=React.useCallback(()=>{const Te=R.current;return Te?Te.totalDuration():0},[]),Ee=()=>{R.current&&(R.current.pause(),emitCustomEvent(Events.PAUSE))},Ae=()=>{R.current&&(R.current.resume(),emitCustomEvent(Events.RESUME))};return useCustomEventListener(Events.SEEK_START,()=>{V.current=!0}),useCustomEventListener(Events.SCRUBBER_PLAY,()=>{Ae()}),useCustomEventListener(Events.SCRUBBER_PAUSE,()=>{Ee()}),useCustomEventListener(Events.SCRUBBER_SEEK,Te=>{xe(Te)}),useCustomEventListener(Events.SEEK_END,()=>{V.current=!1}),useCustomEventListener(Events.REVERSE_MODE_START,()=>{U.current=!0}),useCustomEventListener(Events.REVERSE_MODE_END,()=>{U.current=!1}),useCustomEventListener(Events.SCRUBBER_PROGRESS_UPDATE,Te=>{}),jsxRuntimeExports.jsx(GsapPixieContext.Provider,{value:{gsapCtx:I,tl:R,handlePlay:Ae,handlePause:Ee,handleReset:Y,handleSeek:xe,handleSeekTest:Se,handleRestart:Z,handleRepeat:_e,playerTimeRef:B,getTimelineDuration:Pe,totalDuration:E,setTotalDuration:C,reverseModeRef:U,dragModeRef:V,isRemotion:X,setIsRemotion:K},children:A})},PixiTransformer=({pixiTransformerRef:A,imageRef:E,isMounted:C,transformCommit:R,transformChange:I,mouseoverEvent:B,onDoubleClick:U,uniqueId:V="",isText:X=!1})=>{const K=PIXI__namespace.utils.string2hex("#F3C409"),J=PIXI__namespace.utils.string2hex("#F3C409"),Y=React__namespace.useRef({isDragging:!1}),Z=react.useApp(),_e=Z.screen.width,xe=Z.screen.height,Se=React__namespace.useMemo(()=>{const ke=Math.min(_e,xe)/800;return 1.5*ke<6?6:1.5*ke},[_e,xe]),Pe=300,Ee=React__namespace.useRef(0),Ae=React__namespace.useCallback(()=>{B&&!Y.current.isDragging&&B(!0)},[B]),Te=React__namespace.useCallback(()=>{B&&!Y.current.isDragging&&B(!1)},[B]),we=React__namespace.useCallback(()=>{Y.current.isDragging=!0;const ke=new Date().getTime();ke-Ee.current<Pe&&U&&U(),Ee.current=ke},[]),Ie=React__namespace.useCallback(ke=>{Y.current.isDragging=!0,I&&I(ke),emitCustomEvent(Events.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[I]),Fe=React__namespace.useCallback(()=>{if(E.current===null)return;const ke=E.current.x,Le=E.current.y,Ge=E.current.width,He=E.current.height,Be=E.current.rotation,je=[E.current.scale.x,E.current.scale.y],Ue=je[0]<0?-1:1,ze=je[1]<0?-1:1;R&&(R({uniqueId:V,transformation:{x:Math.round(ke),y:Math.round(Le),width:Math.round(Math.max(5,Ge)),height:Math.round(Math.max(5,He)),rotation:Be,scale:X?je:[Ue,ze]}}),emitCustomEvent(Events.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),Y.current.isDragging=!1},[R]);return React__namespace.useEffect(()=>(A.current&&(A.current.on("mouseover",Ae),A.current.on("mouseout",Te),A.current.on("mousedown",we)),()=>{A.current&&(A.current.off("mouseover",Ae),A.current.off("mouseout",Te),A.current.off("mousedown",we))}),[]),jsxRuntimeExports.jsx(reacthubReactBindings.Transformer,{ref:A,group:C?[E.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:Se,color:J},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:K,shape:"circle",radius:10},transformchange:Ie,transformcommit:Fe})};var objectProto$c=Object.prototype;function isPrototype$2(A){var E=A&&A.constructor,C=typeof E=="function"&&E.prototype||objectProto$c;return A===C}var _isPrototype=isPrototype$2;function overArg$1(A,E){return function(C){return A(E(C))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function baseKeys$2(A){if(!isPrototype$1(A))return nativeKeys(A);var E=[];for(var C in Object(A))hasOwnProperty$9.call(A,C)&&C!="constructor"&&E.push(C);return E}var _baseKeys=baseKeys$2,freeGlobal$1=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty,nativeObjectToString$1=objectProto$a.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(A){var E=hasOwnProperty$8.call(A,symToStringTag$1),C=A[symToStringTag$1];try{A[symToStringTag$1]=void 0;var R=!0}catch{}var I=nativeObjectToString$1.call(A);return R&&(E?A[symToStringTag$1]=C:delete A[symToStringTag$1]),I}var _getRawTag=getRawTag$1,objectProto$9=Object.prototype,nativeObjectToString=objectProto$9.toString;function objectToString$2(A){return nativeObjectToString.call(A)}var _objectToString=objectToString$2,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString$1=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(A){return A==null?A===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(A)?getRawTag(A):objectToString$1(A)}var _baseGetTag=baseGetTag$5;function isObject$5(A){var E=typeof A;return A!=null&&(E=="object"||E=="function")}var isObject_1=isObject$5,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(A){if(!isObject$4(A))return!1;var E=baseGetTag$4(A);return E==funcTag$1||E==genTag||E==asyncTag||E==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var A=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function isMasked$1(A){return!!maskSrcKey&&maskSrcKey in A}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(A){if(A!=null){try{return funcToString$1.call(A)}catch{}try{return A+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$8=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$7=objectProto$8.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(A){if(!isObject$3(A)||isMasked(A))return!1;var E=isFunction$1(A)?reIsNative:reIsHostCtor;return E.test(toSource$1(A))}var _baseIsNative=baseIsNative$1;function getValue$1(A,E){return A==null?void 0:A[E]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(A,E){var C=getValue(A,E);return baseIsNative(C)?C:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$6=_root,DataView$2=getNative$5(root$6,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$5=_root,Map$4=getNative$4(root$5,"Map"),_Map=Map$4,getNative$3=_getNative,root$4=_root,Promise$2=getNative$3(root$4,"Promise"),_Promise=Promise$2,getNative$2=_getNative,root$3=_root,Set$2=getNative$2(root$3,"Set"),_Set=Set$2,getNative$1=_getNative,root$2=_root,WeakMap$2=getNative$1(root$2,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$3=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$3=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$3),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$2=baseGetTag$3;(DataView$1&&getTag$2(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$3&&getTag$2(new Map$3)!=mapTag$3||Promise$1&&getTag$2(Promise$1.resolve())!=promiseTag||Set$1&&getTag$2(new Set$1)!=setTag$3||WeakMap$1&&getTag$2(new WeakMap$1)!=weakMapTag$1)&&(getTag$2=function(A){var E=baseGetTag$3(A),C=E==objectTag$2?A.constructor:void 0,R=C?toSource(C):"";if(R)switch(R){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return E});var _getTag=getTag$2;function isObjectLike$5(A){return A!=null&&typeof A=="object"}var isObjectLike_1=isObjectLike$5,baseGetTag$2=_baseGetTag,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(A){return isObjectLike$4(A)&&baseGetTag$2(A)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$3=baseIsArguments(function(){return arguments}())?baseIsArguments:function(A){return isObjectLike$3(A)&&hasOwnProperty$6.call(A,"callee")&&!propertyIsEnumerable$1.call(A,"callee")},isArguments_1=isArguments$3,isArray$e=Array.isArray,isArray_1=isArray$e,MAX_SAFE_INTEGER$1=9007199254740991;function isLength$3(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=MAX_SAFE_INTEGER$1}var isLength_1=isLength$3,isFunction=isFunction_1,isLength$2=isLength_1;function isArrayLike$4(A){return A!=null&&isLength$2(A.length)&&!isFunction(A)}var isArrayLike_1=isArrayLike$4,isBuffer$4={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$4.exports,function(A,E){var C=_root,R=stubFalse_1,I=E&&!E.nodeType&&E,B=I&&!0&&A&&!A.nodeType&&A,U=B&&B.exports===I,V=U?C.Buffer:void 0,X=V?V.isBuffer:void 0,K=X||R;A.exports=K}(isBuffer$4,isBuffer$4.exports);var isBufferExports=isBuffer$4.exports,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$1]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag]=!1;function baseIsTypedArray$1(A){return isObjectLike$2(A)&&isLength$1(A.length)&&!!typedArrayTags[baseGetTag$1(A)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(A){return function(E){return A(E)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports,function(A,E){var C=_freeGlobal,R=E&&!E.nodeType&&E,I=R&&!0&&A&&!A.nodeType&&A,B=I&&I.exports===R,U=B&&C.process,V=function(){try{var X=I&&I.require&&I.require("util").types;return X||U&&U.binding&&U.binding("util")}catch{}}();A.exports=V}(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$3=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$3,baseKeys$1=_baseKeys,getTag$1=_getTag,isArguments$2=isArguments_1,isArray$d=isArray_1,isArrayLike$3=isArrayLike_1,isBuffer$3=isBufferExports,isPrototype=_isPrototype,isTypedArray$2=isTypedArray_1,mapTag$1="[object Map]",setTag$1="[object Set]",objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function isEmpty$1(A){if(A==null)return!0;if(isArrayLike$3(A)&&(isArray$d(A)||typeof A=="string"||typeof A.splice=="function"||isBuffer$3(A)||isTypedArray$2(A)||isArguments$2(A)))return!A.length;var E=getTag$1(A);if(E==mapTag$1||E==setTag$1)return!A.size;if(isPrototype(A))return!baseKeys$1(A).length;for(var C in A)if(hasOwnProperty$5.call(A,C))return!1;return!0}var isEmpty_1=isEmpty$1;const isEmpty$2=getDefaultExportFromCjs(isEmpty_1);var OverlayTypes=(A=>(A.NONE="none",A.NORMAL="normal",A.LENSFLARE="lensflare",A.FILMSTRIP="filmstrip",A.GRUNGE="grunge",A.BRICKS="bricks",A))(OverlayTypes||{});const overlays={normal:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:0},lensflare:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:1},filmstrip:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/frames_filmstrip_5.png",blendmode:"ADD",alpha:1},grunge:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/pixi_overlay_grunge_60.jpg",blendmode:"ADD",alpha:1},bricks:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/bricks_Overlay_100.jpg",blendmode:"MULTIPLY",alpha:1}},PixiOverlayTilingSprite=A=>{const{overlay:E,width:C,height:R,x:I,y:B}=A,{src:U,blendmode:V}=overlays[E]||overlays.normal;return jsxRuntimeExports.jsx(react.TilingSprite,{image:U,width:C,height:R,x:I,y:B,tilePosition:{x:0,y:0},tileScale:.5,alpha:.5,anchor:.5})};/*!
9
+ */var f$5=React,k$2=Symbol.for("react.element"),l$6=Symbol.for("react.fragment"),m$4=Object.prototype.hasOwnProperty,n$6=f$5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$4={key:!0,ref:!0,__self:!0,__source:!0};function q(A,E,C){var R,I={},B=null,U=null;C!==void 0&&(B=""+C),E.key!==void 0&&(B=""+E.key),E.ref!==void 0&&(U=E.ref);for(R in E)m$4.call(E,R)&&!p$4.hasOwnProperty(R)&&(I[R]=E[R]);if(A&&A.defaultProps)for(R in E=A.defaultProps,E)I[R]===void 0&&(I[R]=E[R]);return{$$typeof:k$2,type:A,key:B,ref:U,props:I,_owner:n$6.current}}reactJsxRuntime_production_min.Fragment=l$6,reactJsxRuntime_production_min.jsx=q,reactJsxRuntime_production_min.jsxs=q,jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,Effects=(A=>(A.BlackAndWhite="BlackAndWhite",A.Sepia="Sepia",A.RetroVintage="RetroVintage",A.NightVision="NightVision",A.Normal="Normal",A.Vignette="Vignette",A.None="Normal",A.CYAN="CYAN",A))(Effects||{}),Waveforms=(A=>(A.NONE="none",A.EQUALIZER="equalizer",A.ROUNDBARS="roundbars",A.LED="led",A.RADIAL_SPECTRUM="radial_spectrum",A.LUMI_BARS="lumi_bars",A))(Waveforms||{});let targetElement;function getElement(){return targetElement=document.body,targetElement}function useCustomEventListener(A,E,C){let R;return React.useEffect(()=>{R=R||getElement();const I=B=>{const U=B.detail;E(U)};return R.addEventListener(A,I,!1),()=>{R==null||R.removeEventListener(A,I,!1)}},C),I=>{R=I}}function emitCustomEvent(A,E){const C=getElement(),R=new CustomEvent(A,{detail:E});C.dispatchEvent(R)}function newCustomEventEmitter(){let A;function E(C){A=C}return E.emit=function(C,R){const I=new CustomEvent(C,{bubbles:!0,detail:R});A==null||A.dispatchEvent(I)},E}const GsapPixieContext=React__namespace.createContext({}),Events={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE",SCRUBBER_CLICKED:"GSAP_SCRUBBER_CLICKED",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END",REVERSE_MODE_START:"REVERSE_MODE_START",REVERSE_MODE_END:"REVERSE_MODE_END",FONTS_LOADED:"FONTS_LOADED"},GsapPixieContextProvider=({children:A})=>{const[E,C]=React.useState(0),R=React.useRef(),I=React.useRef(),B=React.useRef(0),U=React.useRef(!1),V=React.useRef(!1),[X,K]=React.useState(!1);React.useLayoutEffect(()=>(I.current=gsap$2.context(()=>{R.current&&R.current.progress(0).kill(),R.current&&R.current.clear(),R.current&&gsap$2.killTweensOf(R.current),R.current=gsap$2.timeline({paused:!0,defaults:{duration:0}})}),()=>{R.current&&R.current.revert(),I.current.revert()}),[]);const J=React.useCallback(()=>{if(R.current){let we=R.current.time();we<B.current?U.current=!0:U.current=!1,B.current=we}},[]);React.useEffect(()=>{if(R.current){const Te=R.current;Te.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){Te.pause(),J()}).eventCallback("onUpdate",function(){J()}).eventCallback("onRepeat",function(){console.log("onrepeat",Te.progress())}).eventCallback("onReverseComplete",function(){console.log("onReverseComplete",Te.progress())}).eventCallback("onComplete",function(){Te.seek(0),Te.pause(),emitCustomEvent(Events.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),J()})}},[]);const Y=React.useCallback(()=>{R.current&&R.current.revert()},[]),Z=React.useCallback(()=>{R.current&&R.current.restart()},[]),_e=React.useCallback(()=>{if(R.current){const Te=R.current;Te.repeat(1),Te.restart()}},[]),xe=React.useCallback(Te=>{R.current&&R.current.seek(Te)},[]),Se=React.useCallback(()=>{R.current&&R.current.seek(4)},[]),Pe=React.useCallback(()=>{const Te=R.current;return Te?Te.totalDuration():0},[]),Ee=()=>{R.current&&(R.current.pause(),emitCustomEvent(Events.PAUSE))},Ae=()=>{R.current&&(R.current.resume(),emitCustomEvent(Events.RESUME))};return useCustomEventListener(Events.SEEK_START,()=>{V.current=!0}),useCustomEventListener(Events.SCRUBBER_PLAY,()=>{Ae()}),useCustomEventListener(Events.SCRUBBER_PAUSE,()=>{Ee()}),useCustomEventListener(Events.SCRUBBER_SEEK,Te=>{xe(Te)}),useCustomEventListener(Events.SEEK_END,()=>{V.current=!1}),useCustomEventListener(Events.REVERSE_MODE_START,()=>{U.current=!0}),useCustomEventListener(Events.REVERSE_MODE_END,()=>{U.current=!1}),useCustomEventListener(Events.SCRUBBER_PROGRESS_UPDATE,Te=>{}),jsxRuntimeExports.jsx(GsapPixieContext.Provider,{value:{gsapCtx:I,tl:R,handlePlay:Ae,handlePause:Ee,handleReset:Y,handleSeek:xe,handleSeekTest:Se,handleRestart:Z,handleRepeat:_e,playerTimeRef:B,getTimelineDuration:Pe,totalDuration:E,setTotalDuration:C,reverseModeRef:U,dragModeRef:V,isRemotion:X,setIsRemotion:K},children:A})},PixiTransformer=({pixiTransformerRef:A,imageRef:E,isMounted:C,transformCommit:R,transformChange:I,mouseoverEvent:B,onDoubleClick:U,uniqueId:V="",isText:X=!1})=>{const K=PIXI__namespace.utils.string2hex("#F3C409"),J=PIXI__namespace.utils.string2hex("#F3C409"),Y=React__namespace.useRef({isDragging:!1}),Z=react.useApp(),_e=Z.screen.width,xe=Z.screen.height,Se=React__namespace.useMemo(()=>{const ke=Math.min(_e,xe)/800;return 1.5*ke<6?6:1.5*ke},[_e,xe]),Pe=300,Ee=React__namespace.useRef(0),Ae=React__namespace.useCallback(()=>{B&&!Y.current.isDragging&&B(!0)},[B]),Te=React__namespace.useCallback(()=>{B&&!Y.current.isDragging&&B(!1)},[B]),we=React__namespace.useCallback(()=>{Y.current.isDragging=!0;const ke=new Date().getTime();ke-Ee.current<Pe&&U&&U(),Ee.current=ke},[]),Ie=React__namespace.useCallback(ke=>{Y.current.isDragging=!0,I&&I(ke),emitCustomEvent(Events.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[I]),Fe=React__namespace.useCallback(()=>{if(E.current===null)return;const ke=E.current.x,Le=E.current.y,Ge=E.current.width,Ue=E.current.height,Be=E.current.rotation,je=[E.current.scale.x,E.current.scale.y],Ve=je[0]<0?-1:1,ze=je[1]<0?-1:1;R&&(R({uniqueId:V,transformation:{x:Math.round(ke),y:Math.round(Le),width:Math.round(Math.max(5,Ge)),height:Math.round(Math.max(5,Ue)),rotation:Be,scale:X?je:[Ve,ze]}}),emitCustomEvent(Events.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),Y.current.isDragging=!1},[R]);return React__namespace.useEffect(()=>(A.current&&(A.current.on("mouseover",Ae),A.current.on("mouseout",Te),A.current.on("mousedown",we)),()=>{A.current&&(A.current.off("mouseover",Ae),A.current.off("mouseout",Te),A.current.off("mousedown",we))}),[]),jsxRuntimeExports.jsx(reacthubReactBindings.Transformer,{ref:A,group:C?[E.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:Se,color:J},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:K,shape:"circle",radius:10},transformchange:Ie,transformcommit:Fe})};var objectProto$c=Object.prototype;function isPrototype$2(A){var E=A&&A.constructor,C=typeof E=="function"&&E.prototype||objectProto$c;return A===C}var _isPrototype=isPrototype$2;function overArg$1(A,E){return function(C){return A(E(C))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty;function baseKeys$2(A){if(!isPrototype$1(A))return nativeKeys(A);var E=[];for(var C in Object(A))hasOwnProperty$9.call(A,C)&&C!="constructor"&&E.push(C);return E}var _baseKeys=baseKeys$2,freeGlobal$1=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty,nativeObjectToString$1=objectProto$a.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(A){var E=hasOwnProperty$8.call(A,symToStringTag$1),C=A[symToStringTag$1];try{A[symToStringTag$1]=void 0;var R=!0}catch{}var I=nativeObjectToString$1.call(A);return R&&(E?A[symToStringTag$1]=C:delete A[symToStringTag$1]),I}var _getRawTag=getRawTag$1,objectProto$9=Object.prototype,nativeObjectToString=objectProto$9.toString;function objectToString$2(A){return nativeObjectToString.call(A)}var _objectToString=objectToString$2,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString$1=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(A){return A==null?A===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(A)?getRawTag(A):objectToString$1(A)}var _baseGetTag=baseGetTag$5;function isObject$5(A){var E=typeof A;return A!=null&&(E=="object"||E=="function")}var isObject_1=isObject$5,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(A){if(!isObject$4(A))return!1;var E=baseGetTag$4(A);return E==funcTag$1||E==genTag||E==asyncTag||E==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var A=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function isMasked$1(A){return!!maskSrcKey&&maskSrcKey in A}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(A){if(A!=null){try{return funcToString$1.call(A)}catch{}try{return A+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$8=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$7=objectProto$8.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(A){if(!isObject$3(A)||isMasked(A))return!1;var E=isFunction$1(A)?reIsNative:reIsHostCtor;return E.test(toSource$1(A))}var _baseIsNative=baseIsNative$1;function getValue$1(A,E){return A==null?void 0:A[E]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(A,E){var C=getValue(A,E);return baseIsNative(C)?C:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$6=_root,DataView$2=getNative$5(root$6,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$5=_root,Map$4=getNative$4(root$5,"Map"),_Map=Map$4,getNative$3=_getNative,root$4=_root,Promise$2=getNative$3(root$4,"Promise"),_Promise=Promise$2,getNative$2=_getNative,root$3=_root,Set$2=getNative$2(root$3,"Set"),_Set=Set$2,getNative$1=_getNative,root$2=_root,WeakMap$2=getNative$1(root$2,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$3=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag$3=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$3),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$2=baseGetTag$3;(DataView$1&&getTag$2(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$3&&getTag$2(new Map$3)!=mapTag$3||Promise$1&&getTag$2(Promise$1.resolve())!=promiseTag||Set$1&&getTag$2(new Set$1)!=setTag$3||WeakMap$1&&getTag$2(new WeakMap$1)!=weakMapTag$1)&&(getTag$2=function(A){var E=baseGetTag$3(A),C=E==objectTag$2?A.constructor:void 0,R=C?toSource(C):"";if(R)switch(R){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return E});var _getTag=getTag$2;function isObjectLike$5(A){return A!=null&&typeof A=="object"}var isObjectLike_1=isObjectLike$5,baseGetTag$2=_baseGetTag,isObjectLike$4=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(A){return isObjectLike$4(A)&&baseGetTag$2(A)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$3=baseIsArguments(function(){return arguments}())?baseIsArguments:function(A){return isObjectLike$3(A)&&hasOwnProperty$6.call(A,"callee")&&!propertyIsEnumerable$1.call(A,"callee")},isArguments_1=isArguments$3,isArray$e=Array.isArray,isArray_1=isArray$e,MAX_SAFE_INTEGER$1=9007199254740991;function isLength$3(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=MAX_SAFE_INTEGER$1}var isLength_1=isLength$3,isFunction=isFunction_1,isLength$2=isLength_1;function isArrayLike$4(A){return A!=null&&isLength$2(A.length)&&!isFunction(A)}var isArrayLike_1=isArrayLike$4,isBuffer$4={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$4.exports,function(A,E){var C=_root,R=stubFalse_1,I=E&&!E.nodeType&&E,B=I&&!0&&A&&!A.nodeType&&A,U=B&&B.exports===I,V=U?C.Buffer:void 0,X=V?V.isBuffer:void 0,K=X||R;A.exports=K}(isBuffer$4,isBuffer$4.exports);var isBufferExports=isBuffer$4.exports,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$1]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag]=!1;function baseIsTypedArray$1(A){return isObjectLike$2(A)&&isLength$1(A.length)&&!!typedArrayTags[baseGetTag$1(A)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(A){return function(E){return A(E)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports,function(A,E){var C=_freeGlobal,R=E&&!E.nodeType&&E,I=R&&!0&&A&&!A.nodeType&&A,B=I&&I.exports===R,U=B&&C.process,V=function(){try{var X=I&&I.require&&I.require("util").types;return X||U&&U.binding&&U.binding("util")}catch{}}();A.exports=V}(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$3=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$3,baseKeys$1=_baseKeys,getTag$1=_getTag,isArguments$2=isArguments_1,isArray$d=isArray_1,isArrayLike$3=isArrayLike_1,isBuffer$3=isBufferExports,isPrototype=_isPrototype,isTypedArray$2=isTypedArray_1,mapTag$1="[object Map]",setTag$1="[object Set]",objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function isEmpty$1(A){if(A==null)return!0;if(isArrayLike$3(A)&&(isArray$d(A)||typeof A=="string"||typeof A.splice=="function"||isBuffer$3(A)||isTypedArray$2(A)||isArguments$2(A)))return!A.length;var E=getTag$1(A);if(E==mapTag$1||E==setTag$1)return!A.size;if(isPrototype(A))return!baseKeys$1(A).length;for(var C in A)if(hasOwnProperty$5.call(A,C))return!1;return!0}var isEmpty_1=isEmpty$1;const isEmpty$2=getDefaultExportFromCjs(isEmpty_1);var OverlayTypes=(A=>(A.NONE="none",A.NORMAL="normal",A.LENSFLARE="lensflare",A.FILMSTRIP="filmstrip",A.GRUNGE="grunge",A.BRICKS="bricks",A))(OverlayTypes||{});const overlays={normal:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:0},lensflare:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:1},filmstrip:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/frames_filmstrip_5.png",blendmode:"ADD",alpha:1},grunge:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/pixi_overlay_grunge_60.jpg",blendmode:"ADD",alpha:1},bricks:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/bricks_Overlay_100.jpg",blendmode:"MULTIPLY",alpha:1}},PixiOverlayTilingSprite=A=>{const{overlay:E,width:C,height:R,x:I,y:B}=A,{src:U,blendmode:V}=overlays[E]||overlays.normal;return jsxRuntimeExports.jsx(react.TilingSprite,{image:U,width:C,height:R,x:I,y:B,tilePosition:{x:0,y:0},tileScale:.5,alpha:.5,anchor:.5})};/*!
10
10
  * paths 3.11.5
11
11
  * https://greensock.com
12
12
  *
@@ -14,7 +14,7 @@
14
14
  * Subject to the terms at https://greensock.com/standard-license or for
15
15
  * Club GreenSock members, the agreement issued with that membership.
16
16
  * @author: Jack Doyle, jack@greensock.com
17
- */var _svgPathExp=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,_scientific=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,_DEG2RAD$1=Math.PI/180,_sin=Math.sin,_cos=Math.cos,_abs=Math.abs,_sqrt=Math.sqrt,_isNumber=function(E){return typeof E=="number"},_roundingNum=1e5,_round$1=function(E){return Math.round(E*_roundingNum)/_roundingNum||0};function transformRawPath(A,E,C,R,I,B,U){for(var V=A.length,X,K,J,Y,Z;--V>-1;)for(X=A[V],K=X.length,J=0;J<K;J+=2)Y=X[J],Z=X[J+1],X[J]=Y*E+Z*R+B,X[J+1]=Y*C+Z*I+U;return A._dirty=1,A}function arcToSegment(A,E,C,R,I,B,U,V,X){if(!(A===V&&E===X)){C=_abs(C),R=_abs(R);var K=I%360*_DEG2RAD$1,J=_cos(K),Y=_sin(K),Z=Math.PI,_e=Z*2,xe=(A-V)/2,Se=(E-X)/2,Pe=J*xe+Y*Se,Ee=-Y*xe+J*Se,Ae=Pe*Pe,Te=Ee*Ee,we=Ae/(C*C)+Te/(R*R);we>1&&(C=_sqrt(we)*C,R=_sqrt(we)*R);var Ie=C*C,Fe=R*R,ke=(Ie*Fe-Ie*Te-Fe*Ae)/(Ie*Te+Fe*Ae);ke<0&&(ke=0);var Le=(B===U?-1:1)*_sqrt(ke),Ge=Le*(C*Ee/R),He=Le*-(R*Pe/C),Be=(A+V)/2,je=(E+X)/2,Ue=Be+(J*Ge-Y*He),ze=je+(Y*Ge+J*He),Ve=(Pe-Ge)/C,Oe=(Ee-He)/R,$e=(-Pe-Ge)/C,Re=(-Ee-He)/R,Me=Ve*Ve+Oe*Oe,Ne=(Oe<0?-1:1)*Math.acos(Ve/_sqrt(Me)),De=(Ve*Re-Oe*$e<0?-1:1)*Math.acos((Ve*$e+Oe*Re)/_sqrt(Me*($e*$e+Re*Re)));isNaN(De)&&(De=Z),!U&&De>0?De-=_e:U&&De<0&&(De+=_e),Ne%=_e,De%=_e;var Xe=Math.ceil(_abs(De)/(_e/4)),qe=[],Ye=De/Xe,Je=4/3*_sin(Ye/2)/(1+_cos(Ye/2)),Ke=J*C,rt=Y*C,nt=Y*-R,Qe=J*R,Ze;for(Ze=0;Ze<Xe;Ze++)I=Ne+Ze*Ye,Pe=_cos(I),Ee=_sin(I),Ve=_cos(I+=Ye),Oe=_sin(I),qe.push(Pe-Je*Ee,Ee+Je*Pe,Ve+Je*Oe,Oe-Je*Ve,Ve,Oe);for(Ze=0;Ze<qe.length;Ze+=2)Pe=qe[Ze],Ee=qe[Ze+1],qe[Ze]=Pe*Ke+Ee*nt+Ue,qe[Ze+1]=Pe*rt+Ee*Qe+ze;return qe[Ze-2]=V,qe[Ze-1]=X,qe}}function stringToRawPath(A){var E=(A+"").replace(_scientific,function(Ge){var He=+Ge;return He<1e-4&&He>-1e-4?0:He}).match(_svgPathExp)||[],C=[],R=0,I=0,B=2/3,U=E.length,V=0,X="ERROR: malformed path: "+A,K,J,Y,Z,_e,xe,Se,Pe,Ee,Ae,Te,we,Ie,Fe,ke,Le=function(He,Be,je,Ue){Ae=(je-He)/3,Te=(Ue-Be)/3,Se.push(He+Ae,Be+Te,je-Ae,Ue-Te,je,Ue)};if(!A||!isNaN(E[0])||isNaN(E[1]))return console.log(X),C;for(K=0;K<U;K++)if(Ie=_e,isNaN(E[K])?(_e=E[K].toUpperCase(),xe=_e!==E[K]):K--,Y=+E[K+1],Z=+E[K+2],xe&&(Y+=R,Z+=I),K||(Pe=Y,Ee=Z),_e==="M")Se&&(Se.length<8?C.length-=1:V+=Se.length),R=Pe=Y,I=Ee=Z,Se=[Y,Z],C.push(Se),K+=2,_e="L";else if(_e==="C")Se||(Se=[0,0]),xe||(R=I=0),Se.push(Y,Z,R+E[K+3]*1,I+E[K+4]*1,R+=E[K+5]*1,I+=E[K+6]*1),K+=6;else if(_e==="S")Ae=R,Te=I,(Ie==="C"||Ie==="S")&&(Ae+=R-Se[Se.length-4],Te+=I-Se[Se.length-3]),xe||(R=I=0),Se.push(Ae,Te,Y,Z,R+=E[K+3]*1,I+=E[K+4]*1),K+=4;else if(_e==="Q")Ae=R+(Y-R)*B,Te=I+(Z-I)*B,xe||(R=I=0),R+=E[K+3]*1,I+=E[K+4]*1,Se.push(Ae,Te,R+(Y-R)*B,I+(Z-I)*B,R,I),K+=4;else if(_e==="T")Ae=R-Se[Se.length-4],Te=I-Se[Se.length-3],Se.push(R+Ae,I+Te,Y+(R+Ae*1.5-Y)*B,Z+(I+Te*1.5-Z)*B,R=Y,I=Z),K+=2;else if(_e==="H")Le(R,I,R=Y,I),K+=1;else if(_e==="V")Le(R,I,R,I=Y+(xe?I-R:0)),K+=1;else if(_e==="L"||_e==="Z")_e==="Z"&&(Y=Pe,Z=Ee,Se.closed=!0),(_e==="L"||_abs(R-Y)>.5||_abs(I-Z)>.5)&&(Le(R,I,Y,Z),_e==="L"&&(K+=2)),R=Y,I=Z;else if(_e==="A"){if(Fe=E[K+4],ke=E[K+5],Ae=E[K+6],Te=E[K+7],J=7,Fe.length>1&&(Fe.length<3?(Te=Ae,Ae=ke,J--):(Te=ke,Ae=Fe.substr(2),J-=2),ke=Fe.charAt(1),Fe=Fe.charAt(0)),we=arcToSegment(R,I,+E[K+1],+E[K+2],+E[K+3],+Fe,+ke,(xe?R:0)+Ae*1,(xe?I:0)+Te*1),K+=J,we)for(J=0;J<we.length;J++)Se.push(we[J]);R=Se[Se.length-2],I=Se[Se.length-1]}else console.log(X);return K=Se.length,K<6?(C.pop(),K=0):Se[0]===Se[K-2]&&Se[1]===Se[K-1]&&(Se.closed=!0),C.totalPoints=V+K,C}function rawPathToString(A){_isNumber(A[0])&&(A=[A]);var E="",C=A.length,R,I,B,U;for(I=0;I<C;I++){for(U=A[I],E+="M"+_round$1(U[0])+","+_round$1(U[1])+" C",R=U.length,B=2;B<R;B++)E+=_round$1(U[B++])+","+_round$1(U[B++])+" "+_round$1(U[B++])+","+_round$1(U[B++])+" "+_round$1(U[B++])+","+_round$1(U[B])+" ";U.closed&&(E+="z")}return E}/*!
17
+ */var _svgPathExp=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,_scientific=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,_DEG2RAD$1=Math.PI/180,_sin=Math.sin,_cos=Math.cos,_abs=Math.abs,_sqrt=Math.sqrt,_isNumber=function(E){return typeof E=="number"},_roundingNum=1e5,_round$1=function(E){return Math.round(E*_roundingNum)/_roundingNum||0};function transformRawPath(A,E,C,R,I,B,U){for(var V=A.length,X,K,J,Y,Z;--V>-1;)for(X=A[V],K=X.length,J=0;J<K;J+=2)Y=X[J],Z=X[J+1],X[J]=Y*E+Z*R+B,X[J+1]=Y*C+Z*I+U;return A._dirty=1,A}function arcToSegment(A,E,C,R,I,B,U,V,X){if(!(A===V&&E===X)){C=_abs(C),R=_abs(R);var K=I%360*_DEG2RAD$1,J=_cos(K),Y=_sin(K),Z=Math.PI,_e=Z*2,xe=(A-V)/2,Se=(E-X)/2,Pe=J*xe+Y*Se,Ee=-Y*xe+J*Se,Ae=Pe*Pe,Te=Ee*Ee,we=Ae/(C*C)+Te/(R*R);we>1&&(C=_sqrt(we)*C,R=_sqrt(we)*R);var Ie=C*C,Fe=R*R,ke=(Ie*Fe-Ie*Te-Fe*Ae)/(Ie*Te+Fe*Ae);ke<0&&(ke=0);var Le=(B===U?-1:1)*_sqrt(ke),Ge=Le*(C*Ee/R),Ue=Le*-(R*Pe/C),Be=(A+V)/2,je=(E+X)/2,Ve=Be+(J*Ge-Y*Ue),ze=je+(Y*Ge+J*Ue),He=(Pe-Ge)/C,Oe=(Ee-Ue)/R,$e=(-Pe-Ge)/C,Re=(-Ee-Ue)/R,Me=He*He+Oe*Oe,Ne=(Oe<0?-1:1)*Math.acos(He/_sqrt(Me)),De=(He*Re-Oe*$e<0?-1:1)*Math.acos((He*$e+Oe*Re)/_sqrt(Me*($e*$e+Re*Re)));isNaN(De)&&(De=Z),!U&&De>0?De-=_e:U&&De<0&&(De+=_e),Ne%=_e,De%=_e;var Xe=Math.ceil(_abs(De)/(_e/4)),qe=[],Ye=De/Xe,Je=4/3*_sin(Ye/2)/(1+_cos(Ye/2)),Ke=J*C,rt=Y*C,nt=Y*-R,Qe=J*R,Ze;for(Ze=0;Ze<Xe;Ze++)I=Ne+Ze*Ye,Pe=_cos(I),Ee=_sin(I),He=_cos(I+=Ye),Oe=_sin(I),qe.push(Pe-Je*Ee,Ee+Je*Pe,He+Je*Oe,Oe-Je*He,He,Oe);for(Ze=0;Ze<qe.length;Ze+=2)Pe=qe[Ze],Ee=qe[Ze+1],qe[Ze]=Pe*Ke+Ee*nt+Ve,qe[Ze+1]=Pe*rt+Ee*Qe+ze;return qe[Ze-2]=V,qe[Ze-1]=X,qe}}function stringToRawPath(A){var E=(A+"").replace(_scientific,function(Ge){var Ue=+Ge;return Ue<1e-4&&Ue>-1e-4?0:Ue}).match(_svgPathExp)||[],C=[],R=0,I=0,B=2/3,U=E.length,V=0,X="ERROR: malformed path: "+A,K,J,Y,Z,_e,xe,Se,Pe,Ee,Ae,Te,we,Ie,Fe,ke,Le=function(Ue,Be,je,Ve){Ae=(je-Ue)/3,Te=(Ve-Be)/3,Se.push(Ue+Ae,Be+Te,je-Ae,Ve-Te,je,Ve)};if(!A||!isNaN(E[0])||isNaN(E[1]))return console.log(X),C;for(K=0;K<U;K++)if(Ie=_e,isNaN(E[K])?(_e=E[K].toUpperCase(),xe=_e!==E[K]):K--,Y=+E[K+1],Z=+E[K+2],xe&&(Y+=R,Z+=I),K||(Pe=Y,Ee=Z),_e==="M")Se&&(Se.length<8?C.length-=1:V+=Se.length),R=Pe=Y,I=Ee=Z,Se=[Y,Z],C.push(Se),K+=2,_e="L";else if(_e==="C")Se||(Se=[0,0]),xe||(R=I=0),Se.push(Y,Z,R+E[K+3]*1,I+E[K+4]*1,R+=E[K+5]*1,I+=E[K+6]*1),K+=6;else if(_e==="S")Ae=R,Te=I,(Ie==="C"||Ie==="S")&&(Ae+=R-Se[Se.length-4],Te+=I-Se[Se.length-3]),xe||(R=I=0),Se.push(Ae,Te,Y,Z,R+=E[K+3]*1,I+=E[K+4]*1),K+=4;else if(_e==="Q")Ae=R+(Y-R)*B,Te=I+(Z-I)*B,xe||(R=I=0),R+=E[K+3]*1,I+=E[K+4]*1,Se.push(Ae,Te,R+(Y-R)*B,I+(Z-I)*B,R,I),K+=4;else if(_e==="T")Ae=R-Se[Se.length-4],Te=I-Se[Se.length-3],Se.push(R+Ae,I+Te,Y+(R+Ae*1.5-Y)*B,Z+(I+Te*1.5-Z)*B,R=Y,I=Z),K+=2;else if(_e==="H")Le(R,I,R=Y,I),K+=1;else if(_e==="V")Le(R,I,R,I=Y+(xe?I-R:0)),K+=1;else if(_e==="L"||_e==="Z")_e==="Z"&&(Y=Pe,Z=Ee,Se.closed=!0),(_e==="L"||_abs(R-Y)>.5||_abs(I-Z)>.5)&&(Le(R,I,Y,Z),_e==="L"&&(K+=2)),R=Y,I=Z;else if(_e==="A"){if(Fe=E[K+4],ke=E[K+5],Ae=E[K+6],Te=E[K+7],J=7,Fe.length>1&&(Fe.length<3?(Te=Ae,Ae=ke,J--):(Te=ke,Ae=Fe.substr(2),J-=2),ke=Fe.charAt(1),Fe=Fe.charAt(0)),we=arcToSegment(R,I,+E[K+1],+E[K+2],+E[K+3],+Fe,+ke,(xe?R:0)+Ae*1,(xe?I:0)+Te*1),K+=J,we)for(J=0;J<we.length;J++)Se.push(we[J]);R=Se[Se.length-2],I=Se[Se.length-1]}else console.log(X);return K=Se.length,K<6?(C.pop(),K=0):Se[0]===Se[K-2]&&Se[1]===Se[K-1]&&(Se.closed=!0),C.totalPoints=V+K,C}function rawPathToString(A){_isNumber(A[0])&&(A=[A]);var E="",C=A.length,R,I,B,U;for(I=0;I<C;I++){for(U=A[I],E+="M"+_round$1(U[0])+","+_round$1(U[1])+" C",R=U.length,B=2;B<R;B++)E+=_round$1(U[B++])+","+_round$1(U[B++])+" "+_round$1(U[B++])+","+_round$1(U[B++])+" "+_round$1(U[B++])+","+_round$1(U[B])+" ";U.closed&&(E+="z")}return E}/*!
18
18
  * CustomEase 3.11.5
19
19
  * https://greensock.com
20
20
  *
@@ -22,7 +22,7 @@
22
22
  * Subject to the terms at https://greensock.com/standard-license or for
23
23
  * Club GreenSock members, the agreement issued with that membership.
24
24
  * @author: Jack Doyle, jack@greensock.com
25
- */var gsap$1,_coreInitted,_getGSAP$1=function(){return gsap$1||typeof window<"u"&&(gsap$1=window.gsap)&&gsap$1.registerPlugin&&gsap$1},_initCore$1=function(){gsap$1=_getGSAP$1(),gsap$1?(gsap$1.registerEase("_CE",CustomEase.create),_coreInitted=1):console.warn("Please gsap.registerPlugin(CustomEase)")},_bigNum=1e20,_round=function(E){return~~(E*1e3+(E<0?-.5:.5))/1e3},_numExp=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,_needsParsingExp=/[cLlsSaAhHvVtTqQ]/g,_findMinimum=function(E){var C=E.length,R=_bigNum,I;for(I=1;I<C;I+=6)+E[I]<R&&(R=+E[I]);return R},_normalize=function(E,C,R){!R&&R!==0&&(R=Math.max(+E[E.length-1],+E[1]));var I=+E[0]*-1,B=-R,U=E.length,V=1/(+E[U-2]+I),X=-C||(Math.abs(+E[U-1]-+E[1])<.01*(+E[U-2]-+E[0])?_findMinimum(E)+B:+E[U-1]+B),K;for(X?X=1/X:X=-V,K=0;K<U;K+=2)E[K]=(+E[K]+I)*V,E[K+1]=(+E[K+1]+B)*X},_bezierToPoints=function A(E,C,R,I,B,U,V,X,K,J,Y){var Z=(E+R)/2,_e=(C+I)/2,xe=(R+B)/2,Se=(I+U)/2,Pe=(B+V)/2,Ee=(U+X)/2,Ae=(Z+xe)/2,Te=(_e+Se)/2,we=(xe+Pe)/2,Ie=(Se+Ee)/2,Fe=(Ae+we)/2,ke=(Te+Ie)/2,Le=V-E,Ge=X-C,He=Math.abs((R-V)*Ge-(I-X)*Le),Be=Math.abs((B-V)*Ge-(U-X)*Le),je;return J||(J=[{x:E,y:C},{x:V,y:X}],Y=1),J.splice(Y||J.length-1,0,{x:Fe,y:ke}),(He+Be)*(He+Be)>K*(Le*Le+Ge*Ge)&&(je=J.length,A(E,C,Z,_e,Ae,Te,Fe,ke,K,J,Y),A(Fe,ke,we,Ie,Pe,Ee,V,X,K,J,Y+1+(J.length-je))),J},CustomEase=function(){function A(C,R,I){_coreInitted||_initCore$1(),this.id=C,this.setData(R,I)}var E=A.prototype;return E.setData=function(R,I){I=I||{},R=R||"0,0,1,1";var B=R.match(_numExp),U=1,V=[],X=[],K=I.precision||1,J=K<=1,Y,Z,_e,xe,Se,Pe,Ee,Ae,Te;if(this.data=R,(_needsParsingExp.test(R)||~R.indexOf("M")&&R.indexOf("C")<0)&&(B=stringToRawPath(R)[0]),Y=B.length,Y===4)B.unshift(0,0),B.push(1,1),Y=8;else if((Y-2)%6)throw"Invalid CustomEase";for((+B[0]!=0||+B[Y-2]!=1)&&_normalize(B,I.height,I.originY),this.segment=B,xe=2;xe<Y;xe+=6)Z={x:+B[xe-2],y:+B[xe-1]},_e={x:+B[xe+4],y:+B[xe+5]},V.push(Z,_e),_bezierToPoints(Z.x,Z.y,+B[xe],+B[xe+1],+B[xe+2],+B[xe+3],_e.x,_e.y,1/(K*2e5),V,V.length-1);for(Y=V.length,xe=0;xe<Y;xe++)Ee=V[xe],Ae=V[xe-1]||Ee,(Ee.x>Ae.x||Ae.y!==Ee.y&&Ae.x===Ee.x||Ee===Ae)&&Ee.x<=1?(Ae.cx=Ee.x-Ae.x,Ae.cy=Ee.y-Ae.y,Ae.n=Ee,Ae.nx=Ee.x,J&&xe>1&&Math.abs(Ae.cy/Ae.cx-V[xe-2].cy/V[xe-2].cx)>2&&(J=0),Ae.cx<U&&(Ae.cx?U=Ae.cx:(Ae.cx=.001,xe===Y-1&&(Ae.x-=.001,U=Math.min(U,.001),J=0)))):(V.splice(xe--,1),Y--);if(Y=1/U+1|0,Se=1/Y,Pe=0,Ee=V[0],J){for(xe=0;xe<Y;xe++)Te=xe*Se,Ee.nx<Te&&(Ee=V[++Pe]),Z=Ee.y+(Te-Ee.x)/Ee.cx*Ee.cy,X[xe]={x:Te,cx:Se,y:Z,cy:0,nx:9},xe&&(X[xe-1].cy=Z-X[xe-1].y);X[Y-1].cy=V[V.length-1].y-Z}else{for(xe=0;xe<Y;xe++)Ee.nx<xe*Se&&(Ee=V[++Pe]),X[xe]=Ee;Pe<V.length-1&&(X[xe-1]=V[V.length-2])}return this.ease=function(we){var Ie=X[we*Y|0]||X[Y-1];return Ie.nx<we&&(Ie=Ie.n),Ie.y+(we-Ie.x)/Ie.cx*Ie.cy},this.ease.custom=this,this.id&&gsap$1&&gsap$1.registerEase(this.id,this.ease),this},E.getSVGData=function(R){return A.getSVGData(this,R)},A.create=function(R,I,B){return new A(R,I,B).ease},A.register=function(R){gsap$1=R,_initCore$1()},A.get=function(R){return gsap$1.parseEase(R)},A.getSVGData=function(R,I){I=I||{};var B=I.width||100,U=I.height||100,V=I.x||0,X=(I.y||0)+U,K=gsap$1.utils.toArray(I.path)[0],J,Y,Z,_e,xe,Se,Pe,Ee,Ae,Te;if(I.invert&&(U=-U,X=0),typeof R=="string"&&(R=gsap$1.parseEase(R)),R.custom&&(R=R.custom),R instanceof A)J=rawPathToString(transformRawPath([R.segment],B,0,0,-U,V,X));else{for(J=[V,X],Pe=Math.max(5,(I.precision||1)*200),_e=1/Pe,Pe+=2,Ee=5/Pe,Ae=_round(V+_e*B),Te=_round(X+R(_e)*-U),Y=(Te-X)/(Ae-V),Z=2;Z<Pe;Z++)xe=_round(V+Z*_e*B),Se=_round(X+R(Z*_e)*-U),(Math.abs((Se-Te)/(xe-Ae)-Y)>Ee||Z===Pe-1)&&(J.push(Ae,Te),Y=(Se-Te)/(xe-Ae)),Ae=xe,Te=Se;J="M"+J.join(",")}return K&&K.setAttribute("d",J),J},A}();_getGSAP$1()&&gsap$1.registerPlugin(CustomEase),CustomEase.version="3.11.5";/*!
25
+ */var gsap$1,_coreInitted,_getGSAP$1=function(){return gsap$1||typeof window<"u"&&(gsap$1=window.gsap)&&gsap$1.registerPlugin&&gsap$1},_initCore$1=function(){gsap$1=_getGSAP$1(),gsap$1?(gsap$1.registerEase("_CE",CustomEase.create),_coreInitted=1):console.warn("Please gsap.registerPlugin(CustomEase)")},_bigNum=1e20,_round=function(E){return~~(E*1e3+(E<0?-.5:.5))/1e3},_numExp=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,_needsParsingExp=/[cLlsSaAhHvVtTqQ]/g,_findMinimum=function(E){var C=E.length,R=_bigNum,I;for(I=1;I<C;I+=6)+E[I]<R&&(R=+E[I]);return R},_normalize=function(E,C,R){!R&&R!==0&&(R=Math.max(+E[E.length-1],+E[1]));var I=+E[0]*-1,B=-R,U=E.length,V=1/(+E[U-2]+I),X=-C||(Math.abs(+E[U-1]-+E[1])<.01*(+E[U-2]-+E[0])?_findMinimum(E)+B:+E[U-1]+B),K;for(X?X=1/X:X=-V,K=0;K<U;K+=2)E[K]=(+E[K]+I)*V,E[K+1]=(+E[K+1]+B)*X},_bezierToPoints=function A(E,C,R,I,B,U,V,X,K,J,Y){var Z=(E+R)/2,_e=(C+I)/2,xe=(R+B)/2,Se=(I+U)/2,Pe=(B+V)/2,Ee=(U+X)/2,Ae=(Z+xe)/2,Te=(_e+Se)/2,we=(xe+Pe)/2,Ie=(Se+Ee)/2,Fe=(Ae+we)/2,ke=(Te+Ie)/2,Le=V-E,Ge=X-C,Ue=Math.abs((R-V)*Ge-(I-X)*Le),Be=Math.abs((B-V)*Ge-(U-X)*Le),je;return J||(J=[{x:E,y:C},{x:V,y:X}],Y=1),J.splice(Y||J.length-1,0,{x:Fe,y:ke}),(Ue+Be)*(Ue+Be)>K*(Le*Le+Ge*Ge)&&(je=J.length,A(E,C,Z,_e,Ae,Te,Fe,ke,K,J,Y),A(Fe,ke,we,Ie,Pe,Ee,V,X,K,J,Y+1+(J.length-je))),J},CustomEase=function(){function A(C,R,I){_coreInitted||_initCore$1(),this.id=C,this.setData(R,I)}var E=A.prototype;return E.setData=function(R,I){I=I||{},R=R||"0,0,1,1";var B=R.match(_numExp),U=1,V=[],X=[],K=I.precision||1,J=K<=1,Y,Z,_e,xe,Se,Pe,Ee,Ae,Te;if(this.data=R,(_needsParsingExp.test(R)||~R.indexOf("M")&&R.indexOf("C")<0)&&(B=stringToRawPath(R)[0]),Y=B.length,Y===4)B.unshift(0,0),B.push(1,1),Y=8;else if((Y-2)%6)throw"Invalid CustomEase";for((+B[0]!=0||+B[Y-2]!=1)&&_normalize(B,I.height,I.originY),this.segment=B,xe=2;xe<Y;xe+=6)Z={x:+B[xe-2],y:+B[xe-1]},_e={x:+B[xe+4],y:+B[xe+5]},V.push(Z,_e),_bezierToPoints(Z.x,Z.y,+B[xe],+B[xe+1],+B[xe+2],+B[xe+3],_e.x,_e.y,1/(K*2e5),V,V.length-1);for(Y=V.length,xe=0;xe<Y;xe++)Ee=V[xe],Ae=V[xe-1]||Ee,(Ee.x>Ae.x||Ae.y!==Ee.y&&Ae.x===Ee.x||Ee===Ae)&&Ee.x<=1?(Ae.cx=Ee.x-Ae.x,Ae.cy=Ee.y-Ae.y,Ae.n=Ee,Ae.nx=Ee.x,J&&xe>1&&Math.abs(Ae.cy/Ae.cx-V[xe-2].cy/V[xe-2].cx)>2&&(J=0),Ae.cx<U&&(Ae.cx?U=Ae.cx:(Ae.cx=.001,xe===Y-1&&(Ae.x-=.001,U=Math.min(U,.001),J=0)))):(V.splice(xe--,1),Y--);if(Y=1/U+1|0,Se=1/Y,Pe=0,Ee=V[0],J){for(xe=0;xe<Y;xe++)Te=xe*Se,Ee.nx<Te&&(Ee=V[++Pe]),Z=Ee.y+(Te-Ee.x)/Ee.cx*Ee.cy,X[xe]={x:Te,cx:Se,y:Z,cy:0,nx:9},xe&&(X[xe-1].cy=Z-X[xe-1].y);X[Y-1].cy=V[V.length-1].y-Z}else{for(xe=0;xe<Y;xe++)Ee.nx<xe*Se&&(Ee=V[++Pe]),X[xe]=Ee;Pe<V.length-1&&(X[xe-1]=V[V.length-2])}return this.ease=function(we){var Ie=X[we*Y|0]||X[Y-1];return Ie.nx<we&&(Ie=Ie.n),Ie.y+(we-Ie.x)/Ie.cx*Ie.cy},this.ease.custom=this,this.id&&gsap$1&&gsap$1.registerEase(this.id,this.ease),this},E.getSVGData=function(R){return A.getSVGData(this,R)},A.create=function(R,I,B){return new A(R,I,B).ease},A.register=function(R){gsap$1=R,_initCore$1()},A.get=function(R){return gsap$1.parseEase(R)},A.getSVGData=function(R,I){I=I||{};var B=I.width||100,U=I.height||100,V=I.x||0,X=(I.y||0)+U,K=gsap$1.utils.toArray(I.path)[0],J,Y,Z,_e,xe,Se,Pe,Ee,Ae,Te;if(I.invert&&(U=-U,X=0),typeof R=="string"&&(R=gsap$1.parseEase(R)),R.custom&&(R=R.custom),R instanceof A)J=rawPathToString(transformRawPath([R.segment],B,0,0,-U,V,X));else{for(J=[V,X],Pe=Math.max(5,(I.precision||1)*200),_e=1/Pe,Pe+=2,Ee=5/Pe,Ae=_round(V+_e*B),Te=_round(X+R(_e)*-U),Y=(Te-X)/(Ae-V),Z=2;Z<Pe;Z++)xe=_round(V+Z*_e*B),Se=_round(X+R(Z*_e)*-U),(Math.abs((Se-Te)/(xe-Ae)-Y)>Ee||Z===Pe-1)&&(J.push(Ae,Te),Y=(Se-Te)/(xe-Ae)),Ae=xe,Te=Se;J="M"+J.join(",")}return K&&K.setAttribute("d",J),J},A}();_getGSAP$1()&&gsap$1.registerPlugin(CustomEase),CustomEase.version="3.11.5";/*!
26
26
  * PixiPlugin 3.11.5
27
27
  * https://greensock.com
28
28
  *
@@ -30,11 +30,11 @@
30
30
  * Subject to the terms at https://greensock.com/standard-license or for
31
31
  * Club GreenSock members, the agreement issued with that membership.
32
32
  * @author: Jack Doyle, jack@greensock.com
33
- */var gsap,_win,_splitColor,_PIXI,PropTween,_getSetter,_isV4,_windowExists=function(){return typeof window<"u"},_getGSAP=function(){return gsap||_windowExists()&&(gsap=window.gsap)&&gsap.registerPlugin&&gsap},_isFunction=function(E){return typeof E=="function"},_warn=function(E){return console.warn(E)},_idMatrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],_lumR=.212671,_lumG=.71516,_lumB=.072169,_applyMatrix=function(E,C){var R=[],I=0,B=0,U,V;for(U=0;U<4;U++){for(V=0;V<5;V++)B=V===4?E[I+4]:0,R[I+V]=E[I]*C[V]+E[I+1]*C[V+5]+E[I+2]*C[V+10]+E[I+3]*C[V+15]+B;I+=5}return R},_setSaturation=function(E,C){var R=1-C,I=R*_lumR,B=R*_lumG,U=R*_lumB;return _applyMatrix([I+C,B,U,0,0,I,B+C,U,0,0,I,B,U+C,0,0,0,0,0,1,0],E)},_colorize=function(E,C,R){var I=_splitColor(C),B=I[0]/255,U=I[1]/255,V=I[2]/255,X=1-R;return _applyMatrix([X+R*B*_lumR,R*B*_lumG,R*B*_lumB,0,0,R*U*_lumR,X+R*U*_lumG,R*U*_lumB,0,0,R*V*_lumR,R*V*_lumG,X+R*V*_lumB,0,0,0,0,0,1,0],E)},_setHue=function(E,C){C*=Math.PI/180;var R=Math.cos(C),I=Math.sin(C);return _applyMatrix([_lumR+R*(1-_lumR)+I*-_lumR,_lumG+R*-_lumG+I*-_lumG,_lumB+R*-_lumB+I*(1-_lumB),0,0,_lumR+R*-_lumR+I*.143,_lumG+R*(1-_lumG)+I*.14,_lumB+R*-_lumB+I*-.283,0,0,_lumR+R*-_lumR+I*-(1-_lumR),_lumG+R*-_lumG+I*_lumG,_lumB+R*(1-_lumB)+I*_lumB,0,0,0,0,0,1,0,0,0,0,0,1],E)},_setContrast=function(E,C){return _applyMatrix([C,0,0,0,.5*(1-C),0,C,0,0,.5*(1-C),0,0,C,0,.5*(1-C),0,0,0,1,0],E)},_getFilter=function(E,C){var R=_PIXI.filters[C],I=E.filters||[],B=I.length,U;for(R||_warn(C+" not found. PixiPlugin.registerPIXI(PIXI)");--B>-1;)if(I[B]instanceof R)return I[B];return U=new R,C==="BlurFilter"&&(U.blur=0),I.push(U),E.filters=I,U},_addColorMatrixFilterCacheTween=function(E,C,R,I){C.add(R,E,R[E],I[E]),C._props.push(E)},_applyBrightnessToMatrix=function(E,C){var R=new _PIXI.filters.ColorMatrixFilter;return R.matrix=C,R.brightness(E,!0),R.matrix},_copy=function(E){var C={},R;for(R in E)C[R]=E[R];return C},_CMFdefaults={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_parseColorMatrixFilter=function(E,C,R){var I=_getFilter(E,"ColorMatrixFilter"),B=E._gsColorMatrixFilter=E._gsColorMatrixFilter||_copy(_CMFdefaults),U=C.combineCMF&&!("colorMatrixFilter"in C&&!C.colorMatrixFilter),V,X,K;for(K=I.matrix,C.resolution&&(I.resolution=C.resolution),C.matrix&&C.matrix.length===K.length?(X=C.matrix,B.contrast!==1&&_addColorMatrixFilterCacheTween("contrast",R,B,_CMFdefaults),B.hue&&_addColorMatrixFilterCacheTween("hue",R,B,_CMFdefaults),B.brightness!==1&&_addColorMatrixFilterCacheTween("brightness",R,B,_CMFdefaults),B.colorizeAmount&&(_addColorMatrixFilterCacheTween("colorize",R,B,_CMFdefaults),_addColorMatrixFilterCacheTween("colorizeAmount",R,B,_CMFdefaults)),B.saturation!==1&&_addColorMatrixFilterCacheTween("saturation",R,B,_CMFdefaults)):(X=_idMatrix.slice(),C.contrast!=null?(X=_setContrast(X,+C.contrast),_addColorMatrixFilterCacheTween("contrast",R,B,C)):B.contrast!==1&&(U?X=_setContrast(X,B.contrast):_addColorMatrixFilterCacheTween("contrast",R,B,_CMFdefaults)),C.hue!=null?(X=_setHue(X,+C.hue),_addColorMatrixFilterCacheTween("hue",R,B,C)):B.hue&&(U?X=_setHue(X,B.hue):_addColorMatrixFilterCacheTween("hue",R,B,_CMFdefaults)),C.brightness!=null?(X=_applyBrightnessToMatrix(+C.brightness,X),_addColorMatrixFilterCacheTween("brightness",R,B,C)):B.brightness!==1&&(U?X=_applyBrightnessToMatrix(B.brightness,X):_addColorMatrixFilterCacheTween("brightness",R,B,_CMFdefaults)),C.colorize!=null?(C.colorizeAmount="colorizeAmount"in C?+C.colorizeAmount:1,X=_colorize(X,C.colorize,C.colorizeAmount),_addColorMatrixFilterCacheTween("colorize",R,B,C),_addColorMatrixFilterCacheTween("colorizeAmount",R,B,C)):B.colorizeAmount&&(U?X=_colorize(X,B.colorize,B.colorizeAmount):(_addColorMatrixFilterCacheTween("colorize",R,B,_CMFdefaults),_addColorMatrixFilterCacheTween("colorizeAmount",R,B,_CMFdefaults))),C.saturation!=null?(X=_setSaturation(X,+C.saturation),_addColorMatrixFilterCacheTween("saturation",R,B,C)):B.saturation!==1&&(U?X=_setSaturation(X,B.saturation):_addColorMatrixFilterCacheTween("saturation",R,B,_CMFdefaults))),V=X.length;--V>-1;)X[V]!==K[V]&&R.add(K,V,K[V],X[V],"colorMatrixFilter");R._props.push("colorMatrixFilter")},_renderColor=function(E,C){var R=C.t,I=C.p,B=C.color,U=C.set;U(R,I,B[0]<<16|B[1]<<8|B[2])},_renderDirtyCache=function(E,C){var R=C.g;R&&(R.dirty++,R.clearDirty++)},_renderAutoAlpha=function(E,C){C.t.visible=!!C.t.alpha},_addColorTween=function(E,C,R,I){var B=E[C],U=_splitColor(_isFunction(B)?E[C.indexOf("set")||!_isFunction(E["get"+C.substr(3)])?C:"get"+C.substr(3)]():B),V=_splitColor(R);I._pt=new PropTween(I._pt,E,C,0,0,_renderColor,{t:E,p:C,color:U,set:_getSetter(E,C)}),I.add(U,0,U[0],V[0]),I.add(U,1,U[1],V[1]),I.add(U,2,U[2],V[2])},_colorProps={tint:1,lineColor:1,fillColor:1},_xyContexts="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),_contexts={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},_colorMatrixFilterProps={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},_DEG2RAD=Math.PI/180,_isString=function(E){return typeof E=="string"},_degreesToRadians=function(E){return _isString(E)&&E.charAt(1)==="="?E.substr(0,2)+parseFloat(E.substr(2))*_DEG2RAD:E*_DEG2RAD},_renderPropWithEnd=function(E,C){return C.set(C.t,C.p,E===1?C.e:Math.round((C.s+C.c*E)*1e5)/1e5,C)},_addRotationalPropTween=function(E,C,R,I,B,U){var V=360*(U?_DEG2RAD:1),X=_isString(B),K=X&&B.charAt(1)==="="?+(B.charAt(0)+"1"):0,J=parseFloat(K?B.substr(2):B)*(U?_DEG2RAD:1),Y=K?J*K:J-I,Z=I+Y,_e,xe;return X&&(_e=B.split("_")[1],_e==="short"&&(Y%=V,Y!==Y%(V/2)&&(Y+=Y<0?V:-V)),_e==="cw"&&Y<0?Y=(Y+V*1e10)%V-~~(Y/V)*V:_e==="ccw"&&Y>0&&(Y=(Y-V*1e10)%V-~~(Y/V)*V)),E._pt=xe=new PropTween(E._pt,C,R,I,Y,_renderPropWithEnd),xe.e=Z,xe},_initCore=function(){_windowExists()&&(_win=window,gsap=_getGSAP(),_PIXI=_PIXI||_win.PIXI,_isV4=_PIXI&&_PIXI.VERSION&&_PIXI.VERSION.charAt(0)==="4",_splitColor=function(C){return gsap.utils.splitColor((C+"").substr(0,2)==="0x"?"#"+C.substr(2):C)})},i$7,p$3;for(i$7=0;i$7<_xyContexts.length;i$7++)p$3=_xyContexts[i$7],_contexts[p$3+"X"]=p$3,_contexts[p$3+"Y"]=p$3;var PixiPlugin={version:"3.11.5",name:"pixi",register:function(E,C,R){gsap=E,PropTween=R,_getSetter=C.getSetter,_initCore()},registerPIXI:function(E){_PIXI=E},init:function(E,C,R,I,B){if(_PIXI||_initCore(),!_PIXI||!(E instanceof _PIXI.DisplayObject))return console.warn(E,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var U,V,X,K,J,Y,Z,_e,xe;for(Y in C){if(U=_contexts[Y],X=C[Y],U)V=~Y.charAt(Y.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(E[U],V,E[U][V],U==="skew"?_degreesToRadians(X):X,0,0,0,0,0,1);else if(Y==="scale"||Y==="anchor"||Y==="pivot"||Y==="tileScale")this.add(E[Y],"x",E[Y].x,X),this.add(E[Y],"y",E[Y].y,X);else if(Y==="rotation"||Y==="angle")_addRotationalPropTween(this,E,Y,E[Y],X,Y==="rotation");else if(_colorMatrixFilterProps[Y])K||(_parseColorMatrixFilter(E,C.colorMatrixFilter||C,this),K=!0);else if(Y==="blur"||Y==="blurX"||Y==="blurY"||Y==="blurPadding"){if(J=_getFilter(E,"BlurFilter"),this.add(J,Y,J[Y],X),C.blurPadding!==0)for(Z=C.blurPadding||Math.max(J[Y],X)*2,_e=E.filters.length;--_e>-1;)E.filters[_e].padding=Math.max(E.filters[_e].padding,Z)}else if(_colorProps[Y])if((Y==="lineColor"||Y==="fillColor")&&E instanceof _PIXI.Graphics)for(xe=(E.geometry||E).graphicsData,this._pt=new PropTween(this._pt,E,Y,0,0,_renderDirtyCache,{g:E.geometry||E}),_e=xe.length;--_e>-1;)_addColorTween(_isV4?xe[_e]:xe[_e][Y.substr(0,4)+"Style"],_isV4?Y:"color",X,this);else _addColorTween(E,Y,X,this);else Y==="autoAlpha"?(this._pt=new PropTween(this._pt,E,"visible",0,0,_renderAutoAlpha),this.add(E,"alpha",E.alpha,X),this._props.push("alpha","visible")):Y!=="resolution"&&this.add(E,Y,"get",X);this._props.push(Y)}}};_getGSAP()&&gsap.registerPlugin(PixiPlugin),gsap$2.registerPlugin(PixiPlugin),PixiPlugin.registerPIXI(PIXI__namespace),gsap$2.registerPlugin(CustomEase),CustomEase.create("springBounce","0.32, 1.06, 0.61, 0.93"),gsap$2.registerEffect({name:"PULSE",effect(A,E){return gsap$2.timeline().fromTo(A,{pixi:{scaleX:.9,scaleY:.9}},{pixi:{scaleX:1.2,scaleY:1.2},duration:.5,ease:"slow"}).to(A,{pixi:{scaleX:1,scaleY:1,...E},duration:.5})}}),gsap$2.registerEffect({name:"SHAKE",effect(A,E){return gsap$2.timeline().to(A,{duration:.1,pixi:{x:"+=5"}}).to(A,{duration:.1,pixi:{x:"-=10"}}).to(A,{duration:.1,pixi:{x:"+=10"}}).to(A,{duration:.1,pixi:{x:"-=10"}}).to(A,{duration:.1,pixi:{x:"+=5"}}).to(A,{pixi:{...E},duration:.5})}}),gsap$2.registerEffect({name:"SWING",effect(A,E){return gsap$2.timeline().to(A,{duration:.5,pixi:{rotation:1}}).to(A,{duration:.5,pixi:{rotation:-1.5}}).to(A,{pixi:{rotation:0,...E},duration:.5})}}),gsap$2.registerEffect({name:"JELLO",effect(A,E){return gsap$2.timeline().to(A,{duration:.3,pixi:{scaleX:.5,rotation:-1}}).to(A,{duration:.4,pixi:{scaleX:1.5,rotation:1}}).to(A,{duration:.3,pixi:{scaleX:1,rotation:0}}).to(A,{pixi:{rotation:0,...E},duration:.5})}}),gsap$2.registerEffect({name:"WOOBLE",effect(A,E){return gsap$2.timeline().to(A,{duration:.3,pixi:{scaleX:.5,x:E.x*-.5}}).to(A,{duration:.3,pixi:{scaleX:1.5,x:E.x*1.5}}).to(A,{duration:.3,pixi:{scaleX:.5,x:E.x*-.01}}).to(A,{duration:.3,pixi:{scaleX:1,x:E.x}}).to(A,{rotation:0,pixi:{...E,rotation:0},duration:.5})}}),gsap$2.registerEffect({name:"NONE",effect(A,E){return gsap$2.timeline().to(A,{duration:0})}}),gsap$2.registerEffect({name:"FLASH",effect(A,E){return gsap$2.timeline().to(A,{duration:.2,alpha:0}).to(A,{duration:.2,alpha:1}).to(A,{duration:.2,alpha:0}).to(A,{duration:.2,alpha:1}).to(A,{duration:.2,alpha:0}).to(A,{duration:.2,alpha:1,...E})}}),gsap$2.registerEffect({name:"BOUNCE_IN",effect(A,E){return gsap$2.timeline().fromTo(A,{pixi:{scaleX:1.5,scaleY:1.5}},{...E,pixi:{x:E==null?void 0:E.x,y:E==null?void 0:E.y,scaleX:1,scaleY:1},duration:2,ease:"bounce.out"})}}),gsap$2.registerEffect({name:"BOUNCE_IN_DOWN",effect(A,E){return gsap$2.timeline().from(A,{duration:2,ease:"bounce.out",immediateRender:!0,pixi:{...E,x:E==null?void 0:E.x,y:-2500,alpha:0}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_LEFT",effect(A,E){return gsap$2.timeline().from(A,{ease:"bounce.out",duration:2,pixi:{...E,x:-1500,alpha:0}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_RIGHT",effect(A,E){const C=Math.max(1e3,(E==null?void 0:E.maxX)+500);return gsap$2.timeline().from(A,{ease:"bounce.out",duration:2,pixi:{...E,x:C}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_UP",effect(A,E){return gsap$2.timeline().from(A,{ease:"bounce.out",pixi:{...E,y:2e3},duration:2})}}),gsap$2.registerEffect({name:"BOUNCE_OUT",effect(A,E){return gsap$2.timeline().from(A,{...E,ease:"bounce.in",pixi:{y:2e3},duration:1.5})}}),gsap$2.registerEffect({name:"FADE_IN",effect(A){return gsap$2.timeline().fromTo(A,{alpha:0},{ease:"power4.in",alpha:1,duration:1})}}),gsap$2.registerEffect({name:"FADE_IN_DOWN",effect(A,E){return gsap$2.timeline().fromTo(A,{pixi:{y:-1500,alpha:0}},{duration:1,ease:"power4.in",pixi:{y:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"FADE_IN_LEFT",effect(A,E){return gsap$2.timeline().fromTo(A,{pixi:{alpha:0,x:-2e3}},{ease:"power4.in",pixi:{x:0,alpha:1,...E},duration:1})}}),gsap$2.registerEffect({name:"FADE_IN_RIGHT",effect(A,E){return gsap$2.fromTo(A,{pixi:{x:2e3,alpha:0}},{duration:1,ease:"power4.in",pixi:{x:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"FADE_IN_UP",effect(A,E){return gsap$2.fromTo(A,{pixi:{y:2e3,alpha:0}},{duration:.8,ease:"power4.in",pixi:{y:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"SPIN",effect(A){return gsap$2.to(A,{rotation:(E,C)=>gsap$2.utils.snap(360,Number(gsap$2.getProperty(C,"rotation"))+360)})}});function useGsapEffect(){return{updateEffect:React.useCallback((E,C,R)=>{if(!E)return console.warn("useGsapEffect: Target container is null or undefined"),gsap$2.to({},{duration:0});if(!C||typeof C!="string")return console.warn("useGsapEffect: Invalid effect name provided"),gsap$2.to(E,{duration:0});const I={immediateRender:!1,overwrite:!0,...R};try{return gsap$2.effects[C]?gsap$2.effects[C](E,I):gsap$2.effects.NONE?(console.warn(`useGsapEffect: Effect "${C}" not found, falling back to NONE`),gsap$2.effects.NONE(E,I)):(console.warn("useGsapEffect: NONE effect not found, returning empty tween"),gsap$2.to(E,{duration:0}))}catch(B){return console.error("useGsapEffect: Error applying effect:",B),gsap$2.to(E,{duration:0})}},[])}}var Animations=(A=>(A.NONE="NONE",A.FLASH="FLASH",A.PULSE="PULSE",A.SHAKE="SHAKE",A.SWING="SWING",A.JELLO="JELLO",A.WOOBLE="WOOBLE",A.FADE_IN="FADE_IN",A.FADE_OUT="FADE_OUT",A.FADE_IN_OUT="FADE_IN_OUT",A.SLIDE_IN_LEFT="SLIDE_IN_LEFT",A.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",A.SLIDE_IN_TOP="SLIDE_IN_TOP",A.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",A.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",A.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",A.SLIDE_OUT_TOP="SLIDE_OUT_TOP",A.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",A.ZOOM_IN="ZOOM_IN",A.ZOOM_OUT="ZOOM_OUT",A.ZOOM_IN_OUT="ZOOM_IN_OUT",A.BOUNCE_IN="BOUNCE_IN",A.BOUNCE_OUT="BOUNCE_OUT",A.BOUNCE_IN_OUT="BOUNCE_IN_OUT",A.BOUNCE_IN_DOWN="BOUNCE_IN_DOWN",A.BOUNCE_IN_LEFT="BOUNCE_IN_LEFT",A.BOUNCE_IN_RIGHT="BOUNCE_IN_RIGHT",A.BOUNCE_IN_UP="BOUNCE_IN_UP",A.BOUNCE_OUT_DOWN="BOUNCE_OUT_DOWN",A.BOUNCE_OUT_LEFT="BOUNCE_OUT_LEFT",A.BOUNCE_OUT_RIGHT="BOUNCE_OUT_RIGHT",A.BOUNCE_OUT_UP="BOUNCE_OUT_UP",A.FADE_IN_DOWN="FADE_IN_DOWN",A.FADE_IN_LEFT="FADE_IN_LEFT",A.FADE_IN_RIGHT="FADE_IN_RIGHT",A.FADE_IN_UP="FADE_IN_UP",A.FADE_OUT_DOWN="FADE_OUT_DOWN",A.FADE_OUT_LEFT="FADE_OUT_LEFT",A.FADE_OUT_RIGHT="FADE_OUT_RIGHT",A.FADE_OUT_UP="FADE_OUT_UP",A.ELASTIC_IN="ELASTIC_IN",A.ELASTIC_OUT="ELASTIC_OUT",A.ELASTIC_IN_OUT="ELASTIC_IN_OUT",A.BACK_IN="BACK_IN",A.BACK_OUT="BACK_OUT",A.BACK_IN_OUT="BACK_IN_OUT",A.CIRCULAR_IN="CIRCULAR_IN",A.CIRCULAR_OUT="CIRCULAR_OUT",A.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",A.EXPO_IN="EXPO_IN",A.EXPO_OUT="EXPO_OUT",A.EXPO_IN_OUT="EXPO_IN_OUT",A.SINE_IN="SINE_IN",A.SINE_OUT="SINE_OUT",A.SINE_IN_OUT="SINE_IN_OUT",A.BOUNCE="BOUNCE",A.ELASTIC="ELASTIC",A.BACK="BACK",A.CIRCULAR="CIRCULAR",A.EXPO="EXPO",A.SINE="SINE",A.SPIN="SPIN",A))(Animations||{}),ENV=(A=>(A[A.WEBGL_LEGACY=0]="WEBGL_LEGACY",A[A.WEBGL=1]="WEBGL",A[A.WEBGL2=2]="WEBGL2",A))(ENV||{}),RENDERER_TYPE=(A=>(A[A.UNKNOWN=0]="UNKNOWN",A[A.WEBGL=1]="WEBGL",A[A.CANVAS=2]="CANVAS",A))(RENDERER_TYPE||{}),BUFFER_BITS=(A=>(A[A.COLOR=16384]="COLOR",A[A.DEPTH=256]="DEPTH",A[A.STENCIL=1024]="STENCIL",A))(BUFFER_BITS||{}),BLEND_MODES=(A=>(A[A.NORMAL=0]="NORMAL",A[A.ADD=1]="ADD",A[A.MULTIPLY=2]="MULTIPLY",A[A.SCREEN=3]="SCREEN",A[A.OVERLAY=4]="OVERLAY",A[A.DARKEN=5]="DARKEN",A[A.LIGHTEN=6]="LIGHTEN",A[A.COLOR_DODGE=7]="COLOR_DODGE",A[A.COLOR_BURN=8]="COLOR_BURN",A[A.HARD_LIGHT=9]="HARD_LIGHT",A[A.SOFT_LIGHT=10]="SOFT_LIGHT",A[A.DIFFERENCE=11]="DIFFERENCE",A[A.EXCLUSION=12]="EXCLUSION",A[A.HUE=13]="HUE",A[A.SATURATION=14]="SATURATION",A[A.COLOR=15]="COLOR",A[A.LUMINOSITY=16]="LUMINOSITY",A[A.NORMAL_NPM=17]="NORMAL_NPM",A[A.ADD_NPM=18]="ADD_NPM",A[A.SCREEN_NPM=19]="SCREEN_NPM",A[A.NONE=20]="NONE",A[A.SRC_OVER=0]="SRC_OVER",A[A.SRC_IN=21]="SRC_IN",A[A.SRC_OUT=22]="SRC_OUT",A[A.SRC_ATOP=23]="SRC_ATOP",A[A.DST_OVER=24]="DST_OVER",A[A.DST_IN=25]="DST_IN",A[A.DST_OUT=26]="DST_OUT",A[A.DST_ATOP=27]="DST_ATOP",A[A.ERASE=26]="ERASE",A[A.SUBTRACT=28]="SUBTRACT",A[A.XOR=29]="XOR",A))(BLEND_MODES||{}),DRAW_MODES=(A=>(A[A.POINTS=0]="POINTS",A[A.LINES=1]="LINES",A[A.LINE_LOOP=2]="LINE_LOOP",A[A.LINE_STRIP=3]="LINE_STRIP",A[A.TRIANGLES=4]="TRIANGLES",A[A.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",A[A.TRIANGLE_FAN=6]="TRIANGLE_FAN",A))(DRAW_MODES||{}),FORMATS=(A=>(A[A.RGBA=6408]="RGBA",A[A.RGB=6407]="RGB",A[A.RG=33319]="RG",A[A.RED=6403]="RED",A[A.RGBA_INTEGER=36249]="RGBA_INTEGER",A[A.RGB_INTEGER=36248]="RGB_INTEGER",A[A.RG_INTEGER=33320]="RG_INTEGER",A[A.RED_INTEGER=36244]="RED_INTEGER",A[A.ALPHA=6406]="ALPHA",A[A.LUMINANCE=6409]="LUMINANCE",A[A.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",A[A.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",A[A.DEPTH_STENCIL=34041]="DEPTH_STENCIL",A))(FORMATS||{}),TARGETS=(A=>(A[A.TEXTURE_2D=3553]="TEXTURE_2D",A[A.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",A[A.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",A[A.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",A[A.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",A[A.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",A[A.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",A[A.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",A[A.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",A))(TARGETS||{}),TYPES=(A=>(A[A.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",A[A.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",A[A.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",A[A.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",A[A.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",A[A.UNSIGNED_INT=5125]="UNSIGNED_INT",A[A.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",A[A.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",A[A.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",A[A.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",A[A.BYTE=5120]="BYTE",A[A.SHORT=5122]="SHORT",A[A.INT=5124]="INT",A[A.FLOAT=5126]="FLOAT",A[A.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",A[A.HALF_FLOAT=36193]="HALF_FLOAT",A))(TYPES||{}),SAMPLER_TYPES=(A=>(A[A.FLOAT=0]="FLOAT",A[A.INT=1]="INT",A[A.UINT=2]="UINT",A))(SAMPLER_TYPES||{}),SCALE_MODES=(A=>(A[A.NEAREST=0]="NEAREST",A[A.LINEAR=1]="LINEAR",A))(SCALE_MODES||{}),WRAP_MODES=(A=>(A[A.CLAMP=33071]="CLAMP",A[A.REPEAT=10497]="REPEAT",A[A.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",A))(WRAP_MODES||{}),MIPMAP_MODES=(A=>(A[A.OFF=0]="OFF",A[A.POW2=1]="POW2",A[A.ON=2]="ON",A[A.ON_MANUAL=3]="ON_MANUAL",A))(MIPMAP_MODES||{}),ALPHA_MODES=(A=>(A[A.NPM=0]="NPM",A[A.UNPACK=1]="UNPACK",A[A.PMA=2]="PMA",A[A.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",A[A.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",A[A.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",A))(ALPHA_MODES||{}),CLEAR_MODES=(A=>(A[A.NO=0]="NO",A[A.YES=1]="YES",A[A.AUTO=2]="AUTO",A[A.BLEND=0]="BLEND",A[A.CLEAR=1]="CLEAR",A[A.BLIT=2]="BLIT",A))(CLEAR_MODES||{}),GC_MODES=(A=>(A[A.AUTO=0]="AUTO",A[A.MANUAL=1]="MANUAL",A))(GC_MODES||{}),PRECISION=(A=>(A.LOW="lowp",A.MEDIUM="mediump",A.HIGH="highp",A))(PRECISION||{}),MASK_TYPES=(A=>(A[A.NONE=0]="NONE",A[A.SCISSOR=1]="SCISSOR",A[A.STENCIL=2]="STENCIL",A[A.SPRITE=3]="SPRITE",A[A.COLOR=4]="COLOR",A))(MASK_TYPES||{}),MSAA_QUALITY=(A=>(A[A.NONE=0]="NONE",A[A.LOW=2]="LOW",A[A.MEDIUM=4]="MEDIUM",A[A.HIGH=8]="HIGH",A))(MSAA_QUALITY||{}),BUFFER_TYPE=(A=>(A[A.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",A[A.ARRAY_BUFFER=34962]="ARRAY_BUFFER",A[A.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",A))(BUFFER_TYPE||{});const BrowserAdapter={createCanvas:(A,E)=>{const C=document.createElement("canvas");return C.width=A,C.height=E,C},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(A,E)=>fetch(A,E),parseXML:A=>new DOMParser().parseFromString(A,"text/xml")},settings={ADAPTER:BrowserAdapter,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(A){return typeof A<"u"&&A.platform==="MacIntel"&&typeof A.maxTouchPoints=="number"&&A.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(A){return function(E){return E.test(A)}}function isMobile$1(A){var E={userAgent:"",platform:"",maxTouchPoints:0};!A&&typeof navigator<"u"?E={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof A=="string"?E.userAgent=A:A&&A.userAgent&&(E={userAgent:A.userAgent,platform:A.platform,maxTouchPoints:A.maxTouchPoints||0});var C=E.userAgent,R=C.split("[FBAN");typeof R[1]<"u"&&(C=R[0]),R=C.split("Twitter"),typeof R[1]<"u"&&(C=R[0]);var I=createMatch(C),B={apple:{phone:I(appleIphone)&&!I(windowsPhone),ipod:I(appleIpod),tablet:!I(appleIphone)&&(I(appleTablet)||isAppleTabletOnIos13(E))&&!I(windowsPhone),universal:I(appleUniversal),device:(I(appleIphone)||I(appleIpod)||I(appleTablet)||I(appleUniversal)||isAppleTabletOnIos13(E))&&!I(windowsPhone)},amazon:{phone:I(amazonPhone),tablet:!I(amazonPhone)&&I(amazonTablet),device:I(amazonPhone)||I(amazonTablet)},android:{phone:!I(windowsPhone)&&I(amazonPhone)||!I(windowsPhone)&&I(androidPhone),tablet:!I(windowsPhone)&&!I(amazonPhone)&&!I(androidPhone)&&(I(amazonTablet)||I(androidTablet)),device:!I(windowsPhone)&&(I(amazonPhone)||I(amazonTablet)||I(androidPhone)||I(androidTablet))||I(/\bokhttp\b/i)},windows:{phone:I(windowsPhone),tablet:I(windowsTablet),device:I(windowsPhone)||I(windowsTablet)},other:{blackberry:I(otherBlackBerry),blackberry10:I(otherBlackBerry10),opera:I(otherOpera),firefox:I(otherFirefox),chrome:I(otherChrome),device:I(otherBlackBerry)||I(otherBlackBerry10)||I(otherOpera)||I(otherFirefox)||I(otherChrome)},any:!1,phone:!1,tablet:!1};return B.any=B.apple.device||B.android.device||B.windows.device||B.other.device,B.phone=B.apple.phone||B.android.phone||B.windows.phone,B.tablet=B.apple.tablet||B.android.tablet||B.windows.tablet,B}const isMobileCall=isMobile$1.default??isMobile$1,isMobile=isMobileCall(globalThis.navigator);settings.RETINA_PREFIX=/@([0-9\.]+)x/,settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var eventemitter3={exports:{}};(function(A){var E=Object.prototype.hasOwnProperty,C="~";function R(){}Object.create&&(R.prototype=Object.create(null),new R().__proto__||(C=!1));function I(X,K,J){this.fn=X,this.context=K,this.once=J||!1}function B(X,K,J,Y,Z){if(typeof J!="function")throw new TypeError("The listener must be a function");var _e=new I(J,Y||X,Z),xe=C?C+K:K;return X._events[xe]?X._events[xe].fn?X._events[xe]=[X._events[xe],_e]:X._events[xe].push(_e):(X._events[xe]=_e,X._eventsCount++),X}function U(X,K){--X._eventsCount===0?X._events=new R:delete X._events[K]}function V(){this._events=new R,this._eventsCount=0}V.prototype.eventNames=function(){var K=[],J,Y;if(this._eventsCount===0)return K;for(Y in J=this._events)E.call(J,Y)&&K.push(C?Y.slice(1):Y);return Object.getOwnPropertySymbols?K.concat(Object.getOwnPropertySymbols(J)):K},V.prototype.listeners=function(K){var J=C?C+K:K,Y=this._events[J];if(!Y)return[];if(Y.fn)return[Y.fn];for(var Z=0,_e=Y.length,xe=new Array(_e);Z<_e;Z++)xe[Z]=Y[Z].fn;return xe},V.prototype.listenerCount=function(K){var J=C?C+K:K,Y=this._events[J];return Y?Y.fn?1:Y.length:0},V.prototype.emit=function(K,J,Y,Z,_e,xe){var Se=C?C+K:K;if(!this._events[Se])return!1;var Pe=this._events[Se],Ee=arguments.length,Ae,Te;if(Pe.fn){switch(Pe.once&&this.removeListener(K,Pe.fn,void 0,!0),Ee){case 1:return Pe.fn.call(Pe.context),!0;case 2:return Pe.fn.call(Pe.context,J),!0;case 3:return Pe.fn.call(Pe.context,J,Y),!0;case 4:return Pe.fn.call(Pe.context,J,Y,Z),!0;case 5:return Pe.fn.call(Pe.context,J,Y,Z,_e),!0;case 6:return Pe.fn.call(Pe.context,J,Y,Z,_e,xe),!0}for(Te=1,Ae=new Array(Ee-1);Te<Ee;Te++)Ae[Te-1]=arguments[Te];Pe.fn.apply(Pe.context,Ae)}else{var we=Pe.length,Ie;for(Te=0;Te<we;Te++)switch(Pe[Te].once&&this.removeListener(K,Pe[Te].fn,void 0,!0),Ee){case 1:Pe[Te].fn.call(Pe[Te].context);break;case 2:Pe[Te].fn.call(Pe[Te].context,J);break;case 3:Pe[Te].fn.call(Pe[Te].context,J,Y);break;case 4:Pe[Te].fn.call(Pe[Te].context,J,Y,Z);break;default:if(!Ae)for(Ie=1,Ae=new Array(Ee-1);Ie<Ee;Ie++)Ae[Ie-1]=arguments[Ie];Pe[Te].fn.apply(Pe[Te].context,Ae)}}return!0},V.prototype.on=function(K,J,Y){return B(this,K,J,Y,!1)},V.prototype.once=function(K,J,Y){return B(this,K,J,Y,!0)},V.prototype.removeListener=function(K,J,Y,Z){var _e=C?C+K:K;if(!this._events[_e])return this;if(!J)return U(this,_e),this;var xe=this._events[_e];if(xe.fn)xe.fn===J&&(!Z||xe.once)&&(!Y||xe.context===Y)&&U(this,_e);else{for(var Se=0,Pe=[],Ee=xe.length;Se<Ee;Se++)(xe[Se].fn!==J||Z&&!xe[Se].once||Y&&xe[Se].context!==Y)&&Pe.push(xe[Se]);Pe.length?this._events[_e]=Pe.length===1?Pe[0]:Pe:U(this,_e)}return this},V.prototype.removeAllListeners=function(K){var J;return K?(J=C?C+K:K,this._events[J]&&U(this,J)):(this._events=new R,this._eventsCount=0),this},V.prototype.off=V.prototype.removeListener,V.prototype.addListener=V.prototype.on,V.prefixed=C,V.EventEmitter=V,A.exports=V})(eventemitter3);var eventemitter3Exports=eventemitter3.exports;const EventEmitter=getDefaultExportFromCjs(eventemitter3Exports);var earcut$2={exports:{}};earcut$2.exports=earcut,earcut$2.exports.default=earcut;function earcut(A,E,C){C=C||2;var R=E&&E.length,I=R?E[0]*C:A.length,B=linkedList(A,0,I,C,!0),U=[];if(!B||B.next===B.prev)return U;var V,X,K,J,Y,Z,_e;if(R&&(B=eliminateHoles(A,E,B,C)),A.length>80*C){V=K=A[0],X=J=A[1];for(var xe=C;xe<I;xe+=C)Y=A[xe],Z=A[xe+1],Y<V&&(V=Y),Z<X&&(X=Z),Y>K&&(K=Y),Z>J&&(J=Z);_e=Math.max(K-V,J-X),_e=_e!==0?32767/_e:0}return earcutLinked(B,U,C,V,X,_e,0),U}function linkedList(A,E,C,R,I){var B,U;if(I===signedArea(A,E,C,R)>0)for(B=E;B<C;B+=R)U=insertNode(B,A[B],A[B+1],U);else for(B=C-R;B>=E;B-=R)U=insertNode(B,A[B],A[B+1],U);return U&&equals(U,U.next)&&(removeNode(U),U=U.next),U}function filterPoints(A,E){if(!A)return A;E||(E=A);var C=A,R;do if(R=!1,!C.steiner&&(equals(C,C.next)||area(C.prev,C,C.next)===0)){if(removeNode(C),C=E=C.prev,C===C.next)break;R=!0}else C=C.next;while(R||C!==E);return E}function earcutLinked(A,E,C,R,I,B,U){if(A){!U&&B&&indexCurve(A,R,I,B);for(var V=A,X,K;A.prev!==A.next;){if(X=A.prev,K=A.next,B?isEarHashed(A,R,I,B):isEar(A)){E.push(X.i/C|0),E.push(A.i/C|0),E.push(K.i/C|0),removeNode(A),A=K.next,V=K.next;continue}if(A=K,A===V){U?U===1?(A=cureLocalIntersections(filterPoints(A),E,C),earcutLinked(A,E,C,R,I,B,2)):U===2&&splitEarcut(A,E,C,R,I,B):earcutLinked(filterPoints(A),E,C,R,I,B,1);break}}}}function isEar(A){var E=A.prev,C=A,R=A.next;if(area(E,C,R)>=0)return!1;for(var I=E.x,B=C.x,U=R.x,V=E.y,X=C.y,K=R.y,J=I<B?I<U?I:U:B<U?B:U,Y=V<X?V<K?V:K:X<K?X:K,Z=I>B?I>U?I:U:B>U?B:U,_e=V>X?V>K?V:K:X>K?X:K,xe=R.next;xe!==E;){if(xe.x>=J&&xe.x<=Z&&xe.y>=Y&&xe.y<=_e&&pointInTriangle(I,V,B,X,U,K,xe.x,xe.y)&&area(xe.prev,xe,xe.next)>=0)return!1;xe=xe.next}return!0}function isEarHashed(A,E,C,R){var I=A.prev,B=A,U=A.next;if(area(I,B,U)>=0)return!1;for(var V=I.x,X=B.x,K=U.x,J=I.y,Y=B.y,Z=U.y,_e=V<X?V<K?V:K:X<K?X:K,xe=J<Y?J<Z?J:Z:Y<Z?Y:Z,Se=V>X?V>K?V:K:X>K?X:K,Pe=J>Y?J>Z?J:Z:Y>Z?Y:Z,Ee=zOrder(_e,xe,E,C,R),Ae=zOrder(Se,Pe,E,C,R),Te=A.prevZ,we=A.nextZ;Te&&Te.z>=Ee&&we&&we.z<=Ae;){if(Te.x>=_e&&Te.x<=Se&&Te.y>=xe&&Te.y<=Pe&&Te!==I&&Te!==U&&pointInTriangle(V,J,X,Y,K,Z,Te.x,Te.y)&&area(Te.prev,Te,Te.next)>=0||(Te=Te.prevZ,we.x>=_e&&we.x<=Se&&we.y>=xe&&we.y<=Pe&&we!==I&&we!==U&&pointInTriangle(V,J,X,Y,K,Z,we.x,we.y)&&area(we.prev,we,we.next)>=0))return!1;we=we.nextZ}for(;Te&&Te.z>=Ee;){if(Te.x>=_e&&Te.x<=Se&&Te.y>=xe&&Te.y<=Pe&&Te!==I&&Te!==U&&pointInTriangle(V,J,X,Y,K,Z,Te.x,Te.y)&&area(Te.prev,Te,Te.next)>=0)return!1;Te=Te.prevZ}for(;we&&we.z<=Ae;){if(we.x>=_e&&we.x<=Se&&we.y>=xe&&we.y<=Pe&&we!==I&&we!==U&&pointInTriangle(V,J,X,Y,K,Z,we.x,we.y)&&area(we.prev,we,we.next)>=0)return!1;we=we.nextZ}return!0}function cureLocalIntersections(A,E,C){var R=A;do{var I=R.prev,B=R.next.next;!equals(I,B)&&intersects(I,R,R.next,B)&&locallyInside(I,B)&&locallyInside(B,I)&&(E.push(I.i/C|0),E.push(R.i/C|0),E.push(B.i/C|0),removeNode(R),removeNode(R.next),R=A=B),R=R.next}while(R!==A);return filterPoints(R)}function splitEarcut(A,E,C,R,I,B){var U=A;do{for(var V=U.next.next;V!==U.prev;){if(U.i!==V.i&&isValidDiagonal(U,V)){var X=splitPolygon(U,V);U=filterPoints(U,U.next),X=filterPoints(X,X.next),earcutLinked(U,E,C,R,I,B,0),earcutLinked(X,E,C,R,I,B,0);return}V=V.next}U=U.next}while(U!==A)}function eliminateHoles(A,E,C,R){var I=[],B,U,V,X,K;for(B=0,U=E.length;B<U;B++)V=E[B]*R,X=B<U-1?E[B+1]*R:A.length,K=linkedList(A,V,X,R,!1),K===K.next&&(K.steiner=!0),I.push(getLeftmost(K));for(I.sort(compareX),B=0;B<I.length;B++)C=eliminateHole(I[B],C);return C}function compareX(A,E){return A.x-E.x}function eliminateHole(A,E){var C=findHoleBridge(A,E);if(!C)return E;var R=splitPolygon(C,A);return filterPoints(R,R.next),filterPoints(C,C.next)}function findHoleBridge(A,E){var C=E,R=A.x,I=A.y,B=-1/0,U;do{if(I<=C.y&&I>=C.next.y&&C.next.y!==C.y){var V=C.x+(I-C.y)*(C.next.x-C.x)/(C.next.y-C.y);if(V<=R&&V>B&&(B=V,U=C.x<C.next.x?C:C.next,V===R))return U}C=C.next}while(C!==E);if(!U)return null;var X=U,K=U.x,J=U.y,Y=1/0,Z;C=U;do R>=C.x&&C.x>=K&&R!==C.x&&pointInTriangle(I<J?R:B,I,K,J,I<J?B:R,I,C.x,C.y)&&(Z=Math.abs(I-C.y)/(R-C.x),locallyInside(C,A)&&(Z<Y||Z===Y&&(C.x>U.x||C.x===U.x&&sectorContainsSector(U,C)))&&(U=C,Y=Z)),C=C.next;while(C!==X);return U}function sectorContainsSector(A,E){return area(A.prev,A,E.prev)<0&&area(E.next,A,A.next)<0}function indexCurve(A,E,C,R){var I=A;do I.z===0&&(I.z=zOrder(I.x,I.y,E,C,R)),I.prevZ=I.prev,I.nextZ=I.next,I=I.next;while(I!==A);I.prevZ.nextZ=null,I.prevZ=null,sortLinked(I)}function sortLinked(A){var E,C,R,I,B,U,V,X,K=1;do{for(C=A,A=null,B=null,U=0;C;){for(U++,R=C,V=0,E=0;E<K&&(V++,R=R.nextZ,!!R);E++);for(X=K;V>0||X>0&&R;)V!==0&&(X===0||!R||C.z<=R.z)?(I=C,C=C.nextZ,V--):(I=R,R=R.nextZ,X--),B?B.nextZ=I:A=I,I.prevZ=B,B=I;C=R}B.nextZ=null,K*=2}while(U>1);return A}function zOrder(A,E,C,R,I){return A=(A-C)*I|0,E=(E-R)*I|0,A=(A|A<<8)&16711935,A=(A|A<<4)&252645135,A=(A|A<<2)&858993459,A=(A|A<<1)&1431655765,E=(E|E<<8)&16711935,E=(E|E<<4)&252645135,E=(E|E<<2)&858993459,E=(E|E<<1)&1431655765,A|E<<1}function getLeftmost(A){var E=A,C=A;do(E.x<C.x||E.x===C.x&&E.y<C.y)&&(C=E),E=E.next;while(E!==A);return C}function pointInTriangle(A,E,C,R,I,B,U,V){return(I-U)*(E-V)>=(A-U)*(B-V)&&(A-U)*(R-V)>=(C-U)*(E-V)&&(C-U)*(B-V)>=(I-U)*(R-V)}function isValidDiagonal(A,E){return A.next.i!==E.i&&A.prev.i!==E.i&&!intersectsPolygon(A,E)&&(locallyInside(A,E)&&locallyInside(E,A)&&middleInside(A,E)&&(area(A.prev,A,E.prev)||area(A,E.prev,E))||equals(A,E)&&area(A.prev,A,A.next)>0&&area(E.prev,E,E.next)>0)}function area(A,E,C){return(E.y-A.y)*(C.x-E.x)-(E.x-A.x)*(C.y-E.y)}function equals(A,E){return A.x===E.x&&A.y===E.y}function intersects(A,E,C,R){var I=sign$2(area(A,E,C)),B=sign$2(area(A,E,R)),U=sign$2(area(C,R,A)),V=sign$2(area(C,R,E));return!!(I!==B&&U!==V||I===0&&onSegment(A,C,E)||B===0&&onSegment(A,R,E)||U===0&&onSegment(C,A,R)||V===0&&onSegment(C,E,R))}function onSegment(A,E,C){return E.x<=Math.max(A.x,C.x)&&E.x>=Math.min(A.x,C.x)&&E.y<=Math.max(A.y,C.y)&&E.y>=Math.min(A.y,C.y)}function sign$2(A){return A>0?1:A<0?-1:0}function intersectsPolygon(A,E){var C=A;do{if(C.i!==A.i&&C.next.i!==A.i&&C.i!==E.i&&C.next.i!==E.i&&intersects(C,C.next,A,E))return!0;C=C.next}while(C!==A);return!1}function locallyInside(A,E){return area(A.prev,A,A.next)<0?area(A,E,A.next)>=0&&area(A,A.prev,E)>=0:area(A,E,A.prev)<0||area(A,A.next,E)<0}function middleInside(A,E){var C=A,R=!1,I=(A.x+E.x)/2,B=(A.y+E.y)/2;do C.y>B!=C.next.y>B&&C.next.y!==C.y&&I<(C.next.x-C.x)*(B-C.y)/(C.next.y-C.y)+C.x&&(R=!R),C=C.next;while(C!==A);return R}function splitPolygon(A,E){var C=new Node$1(A.i,A.x,A.y),R=new Node$1(E.i,E.x,E.y),I=A.next,B=E.prev;return A.next=E,E.prev=A,C.next=I,I.prev=C,R.next=C,C.prev=R,B.next=R,R.prev=B,R}function insertNode(A,E,C,R){var I=new Node$1(A,E,C);return R?(I.next=R.next,I.prev=R,R.next.prev=I,R.next=I):(I.prev=I,I.next=I),I}function removeNode(A){A.next.prev=A.prev,A.prev.next=A.next,A.prevZ&&(A.prevZ.nextZ=A.nextZ),A.nextZ&&(A.nextZ.prevZ=A.prevZ)}function Node$1(A,E,C){this.i=A,this.x=E,this.y=C,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}earcut.deviation=function(A,E,C,R){var I=E&&E.length,B=I?E[0]*C:A.length,U=Math.abs(signedArea(A,0,B,C));if(I)for(var V=0,X=E.length;V<X;V++){var K=E[V]*C,J=V<X-1?E[V+1]*C:A.length;U-=Math.abs(signedArea(A,K,J,C))}var Y=0;for(V=0;V<R.length;V+=3){var Z=R[V]*C,_e=R[V+1]*C,xe=R[V+2]*C;Y+=Math.abs((A[Z]-A[xe])*(A[_e+1]-A[Z+1])-(A[Z]-A[_e])*(A[xe+1]-A[Z+1]))}return U===0&&Y===0?0:Math.abs((Y-U)/U)};function signedArea(A,E,C,R){for(var I=0,B=E,U=C-R;B<C;B+=R)I+=(A[U]-A[B])*(A[B+1]+A[U+1]),U=B;return I}earcut.flatten=function(A){for(var E=A[0][0].length,C={vertices:[],holes:[],dimensions:E},R=0,I=0;I<A.length;I++){for(var B=0;B<A[I].length;B++)for(var U=0;U<E;U++)C.vertices.push(A[I][B][U]);I>0&&(R+=A[I-1].length,C.holes.push(R))}return C};var earcutExports=earcut$2.exports;const earcut$1=getDefaultExportFromCjs(earcutExports);var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports,function(A,E){(function(C){var R=E&&!E.nodeType&&E,I=A&&!A.nodeType&&A,B=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1;(B.global===B||B.window===B||B.self===B)&&(C=B);var U,V=2147483647,X=36,K=1,J=26,Y=38,Z=700,_e=72,xe=128,Se="-",Pe=/^xn--/,Ee=/[^\x20-\x7E]/,Ae=/[\x2E\u3002\uFF0E\uFF61]/g,Te={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},we=X-K,Ie=Math.floor,Fe=String.fromCharCode,ke;function Le(Ne){throw new RangeError(Te[Ne])}function Ge(Ne,De){for(var Xe=Ne.length,qe=[];Xe--;)qe[Xe]=De(Ne[Xe]);return qe}function He(Ne,De){var Xe=Ne.split("@"),qe="";Xe.length>1&&(qe=Xe[0]+"@",Ne=Xe[1]),Ne=Ne.replace(Ae,".");var Ye=Ne.split("."),Je=Ge(Ye,De).join(".");return qe+Je}function Be(Ne){for(var De=[],Xe=0,qe=Ne.length,Ye,Je;Xe<qe;)Ye=Ne.charCodeAt(Xe++),Ye>=55296&&Ye<=56319&&Xe<qe?(Je=Ne.charCodeAt(Xe++),(Je&64512)==56320?De.push(((Ye&1023)<<10)+(Je&1023)+65536):(De.push(Ye),Xe--)):De.push(Ye);return De}function je(Ne){return Ge(Ne,function(De){var Xe="";return De>65535&&(De-=65536,Xe+=Fe(De>>>10&1023|55296),De=56320|De&1023),Xe+=Fe(De),Xe}).join("")}function Ue(Ne){return Ne-48<10?Ne-22:Ne-65<26?Ne-65:Ne-97<26?Ne-97:X}function ze(Ne,De){return Ne+22+75*(Ne<26)-((De!=0)<<5)}function Ve(Ne,De,Xe){var qe=0;for(Ne=Xe?Ie(Ne/Z):Ne>>1,Ne+=Ie(Ne/De);Ne>we*J>>1;qe+=X)Ne=Ie(Ne/we);return Ie(qe+(we+1)*Ne/(Ne+Y))}function Oe(Ne){var De=[],Xe=Ne.length,qe,Ye=0,Je=xe,Ke=_e,rt,nt,Qe,Ze,tt,st,et,We,it;for(rt=Ne.lastIndexOf(Se),rt<0&&(rt=0),nt=0;nt<rt;++nt)Ne.charCodeAt(nt)>=128&&Le("not-basic"),De.push(Ne.charCodeAt(nt));for(Qe=rt>0?rt+1:0;Qe<Xe;){for(Ze=Ye,tt=1,st=X;Qe>=Xe&&Le("invalid-input"),et=Ue(Ne.charCodeAt(Qe++)),(et>=X||et>Ie((V-Ye)/tt))&&Le("overflow"),Ye+=et*tt,We=st<=Ke?K:st>=Ke+J?J:st-Ke,!(et<We);st+=X)it=X-We,tt>Ie(V/it)&&Le("overflow"),tt*=it;qe=De.length+1,Ke=Ve(Ye-Ze,qe,Ze==0),Ie(Ye/qe)>V-Je&&Le("overflow"),Je+=Ie(Ye/qe),Ye%=qe,De.splice(Ye++,0,Je)}return je(De)}function $e(Ne){var De,Xe,qe,Ye,Je,Ke,rt,nt,Qe,Ze,tt,st=[],et,We,it,ot;for(Ne=Be(Ne),et=Ne.length,De=xe,Xe=0,Je=_e,Ke=0;Ke<et;++Ke)tt=Ne[Ke],tt<128&&st.push(Fe(tt));for(qe=Ye=st.length,Ye&&st.push(Se);qe<et;){for(rt=V,Ke=0;Ke<et;++Ke)tt=Ne[Ke],tt>=De&&tt<rt&&(rt=tt);for(We=qe+1,rt-De>Ie((V-Xe)/We)&&Le("overflow"),Xe+=(rt-De)*We,De=rt,Ke=0;Ke<et;++Ke)if(tt=Ne[Ke],tt<De&&++Xe>V&&Le("overflow"),tt==De){for(nt=Xe,Qe=X;Ze=Qe<=Je?K:Qe>=Je+J?J:Qe-Je,!(nt<Ze);Qe+=X)ot=nt-Ze,it=X-Ze,st.push(Fe(ze(Ze+ot%it,0))),nt=Ie(ot/it);st.push(Fe(ze(nt,0))),Je=Ve(Xe,We,qe==Ye),Xe=0,++qe}++Xe,++De}return st.join("")}function Re(Ne){return He(Ne,function(De){return Pe.test(De)?Oe(De.slice(4).toLowerCase()):De})}function Me(Ne){return He(Ne,function(De){return Ee.test(De)?"xn--"+$e(De):De})}if(U={version:"1.4.1",ucs2:{decode:Be,encode:je},decode:Oe,encode:$e,toASCII:Me,toUnicode:Re},R&&I)if(A.exports==R)I.exports=U;else for(ke in U)U.hasOwnProperty(ke)&&(R[ke]=U[ke]);else C.punycode=U})(commonjsGlobal$1)}(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports,type=TypeError;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize$1=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace$1=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat$1=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(A){return A.__proto__}:null);function addNumericSeparator(A,E){if(A===1/0||A===-1/0||A!==A||A&&A>-1e3&&A<1e3||$test.call(/e/,E))return E;var C=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof A=="number"){var R=A<0?-$floor(-A):$floor(A);if(R!==A){var I=String(R),B=$slice.call(E,I.length+1);return $replace$1.call(I,C,"$&_")+"."+$replace$1.call($replace$1.call(B,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace$1.call(E,C,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$5(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},objectInspect=function A(E,C,R,I){var B=C||{};if(has$3(B,"quoteStyle")&&!has$3(quotes,B.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(B,"maxStringLength")&&(typeof B.maxStringLength=="number"?B.maxStringLength<0&&B.maxStringLength!==1/0:B.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var U=has$3(B,"customInspect")?B.customInspect:!0;if(typeof U!="boolean"&&U!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(B,"indent")&&B.indent!==null&&B.indent!==" "&&!(parseInt(B.indent,10)===B.indent&&B.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(B,"numericSeparator")&&typeof B.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var V=B.numericSeparator;if(typeof E>"u")return"undefined";if(E===null)return"null";if(typeof E=="boolean")return E?"true":"false";if(typeof E=="string")return inspectString(E,B);if(typeof E=="number"){if(E===0)return 1/0/E>0?"0":"-0";var X=String(E);return V?addNumericSeparator(E,X):X}if(typeof E=="bigint"){var K=String(E)+"n";return V?addNumericSeparator(E,K):K}var J=typeof B.depth>"u"?5:B.depth;if(typeof R>"u"&&(R=0),R>=J&&J>0&&typeof E=="object")return isArray$c(E)?"[Array]":"[Object]";var Y=getIndent(B,R);if(typeof I>"u")I=[];else if(indexOf(I,E)>=0)return"[Circular]";function Z(Ue,ze,Ve){if(ze&&(I=$arrSlice.call(I),I.push(ze)),Ve){var Oe={depth:B.depth};return has$3(B,"quoteStyle")&&(Oe.quoteStyle=B.quoteStyle),A(Ue,Oe,R+1,I)}return A(Ue,B,R+1,I)}if(typeof E=="function"&&!isRegExp$1(E)){var _e=nameOf(E),xe=arrObjKeys(E,Z);return"[Function"+(_e?": "+_e:" (anonymous)")+"]"+(xe.length>0?" { "+$join.call(xe,", ")+" }":"")}if(isSymbol$5(E)){var Se=hasShammedSymbols?$replace$1.call(String(E),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(E);return typeof E=="object"&&!hasShammedSymbols?markBoxed(Se):Se}if(isElement(E)){for(var Pe="<"+$toLowerCase.call(String(E.nodeName)),Ee=E.attributes||[],Ae=0;Ae<Ee.length;Ae++)Pe+=" "+Ee[Ae].name+"="+wrapQuotes(quote(Ee[Ae].value),"double",B);return Pe+=">",E.childNodes&&E.childNodes.length&&(Pe+="..."),Pe+="</"+$toLowerCase.call(String(E.nodeName))+">",Pe}if(isArray$c(E)){if(E.length===0)return"[]";var Te=arrObjKeys(E,Z);return Y&&!singleLineValues(Te)?"["+indentedJoin(Te,Y)+"]":"[ "+$join.call(Te,", ")+" ]"}if(isError(E)){var we=arrObjKeys(E,Z);return!("cause"in Error.prototype)&&"cause"in E&&!isEnumerable.call(E,"cause")?"{ ["+String(E)+"] "+$join.call($concat$1.call("[cause]: "+Z(E.cause),we),", ")+" }":we.length===0?"["+String(E)+"]":"{ ["+String(E)+"] "+$join.call(we,", ")+" }"}if(typeof E=="object"&&U){if(inspectSymbol&&typeof E[inspectSymbol]=="function"&&utilInspect)return utilInspect(E,{depth:J-R});if(U!=="symbol"&&typeof E.inspect=="function")return E.inspect()}if(isMap(E)){var Ie=[];return mapForEach&&mapForEach.call(E,function(Ue,ze){Ie.push(Z(ze,E,!0)+" => "+Z(Ue,E))}),collectionOf("Map",mapSize$1.call(E),Ie,Y)}if(isSet(E)){var Fe=[];return setForEach&&setForEach.call(E,function(Ue){Fe.push(Z(Ue,E))}),collectionOf("Set",setSize.call(E),Fe,Y)}if(isWeakMap(E))return weakCollectionOf("WeakMap");if(isWeakSet(E))return weakCollectionOf("WeakSet");if(isWeakRef(E))return weakCollectionOf("WeakRef");if(isNumber(E))return markBoxed(Z(Number(E)));if(isBigInt(E))return markBoxed(Z(bigIntValueOf.call(E)));if(isBoolean(E))return markBoxed(booleanValueOf.call(E));if(isString(E))return markBoxed(Z(String(E)));if(typeof window<"u"&&E===window)return"{ [object Window] }";if(typeof globalThis<"u"&&E===globalThis||typeof commonjsGlobal$1<"u"&&E===commonjsGlobal$1)return"{ [object globalThis] }";if(!isDate(E)&&!isRegExp$1(E)){var ke=arrObjKeys(E,Z),Le=gPO?gPO(E)===Object.prototype:E instanceof Object||E.constructor===Object,Ge=E instanceof Object?"":"null prototype",He=!Le&&toStringTag&&Object(E)===E&&toStringTag in E?$slice.call(toStr(E),8,-1):Ge?"Object":"",Be=Le||typeof E.constructor!="function"?"":E.constructor.name?E.constructor.name+" ":"",je=Be+(He||Ge?"["+$join.call($concat$1.call([],He||[],Ge||[]),": ")+"] ":"");return ke.length===0?je+"{}":Y?je+"{"+indentedJoin(ke,Y)+"}":je+"{ "+$join.call(ke,", ")+" }"}return String(E)};function wrapQuotes(A,E,C){var R=C.quoteStyle||E,I=quotes[R];return I+A+I}function quote(A){return $replace$1.call(String(A),/"/g,"&quot;")}function canTrustToString(A){return!toStringTag||!(typeof A=="object"&&(toStringTag in A||typeof A[toStringTag]<"u"))}function isArray$c(A){return toStr(A)==="[object Array]"&&canTrustToString(A)}function isDate(A){return toStr(A)==="[object Date]"&&canTrustToString(A)}function isRegExp$1(A){return toStr(A)==="[object RegExp]"&&canTrustToString(A)}function isError(A){return toStr(A)==="[object Error]"&&canTrustToString(A)}function isString(A){return toStr(A)==="[object String]"&&canTrustToString(A)}function isNumber(A){return toStr(A)==="[object Number]"&&canTrustToString(A)}function isBoolean(A){return toStr(A)==="[object Boolean]"&&canTrustToString(A)}function isSymbol$5(A){if(hasShammedSymbols)return A&&typeof A=="object"&&A instanceof Symbol;if(typeof A=="symbol")return!0;if(!A||typeof A!="object"||!symToString)return!1;try{return symToString.call(A),!0}catch{}return!1}function isBigInt(A){if(!A||typeof A!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(A),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(A){return A in this};function has$3(A,E){return hasOwn$1.call(A,E)}function toStr(A){return objectToString.call(A)}function nameOf(A){if(A.name)return A.name;var E=$match.call(functionToString.call(A),/^function\s*([\w$]+)/);return E?E[1]:null}function indexOf(A,E){if(A.indexOf)return A.indexOf(E);for(var C=0,R=A.length;C<R;C++)if(A[C]===E)return C;return-1}function isMap(A){if(!mapSize$1||!A||typeof A!="object")return!1;try{mapSize$1.call(A);try{setSize.call(A)}catch{return!0}return A instanceof Map}catch{}return!1}function isWeakMap(A){if(!weakMapHas||!A||typeof A!="object")return!1;try{weakMapHas.call(A,weakMapHas);try{weakSetHas.call(A,weakSetHas)}catch{return!0}return A instanceof WeakMap}catch{}return!1}function isWeakRef(A){if(!weakRefDeref||!A||typeof A!="object")return!1;try{return weakRefDeref.call(A),!0}catch{}return!1}function isSet(A){if(!setSize||!A||typeof A!="object")return!1;try{setSize.call(A);try{mapSize$1.call(A)}catch{return!0}return A instanceof Set}catch{}return!1}function isWeakSet(A){if(!weakSetHas||!A||typeof A!="object")return!1;try{weakSetHas.call(A,weakSetHas);try{weakMapHas.call(A,weakMapHas)}catch{return!0}return A instanceof WeakSet}catch{}return!1}function isElement(A){return!A||typeof A!="object"?!1:typeof HTMLElement<"u"&&A instanceof HTMLElement?!0:typeof A.nodeName=="string"&&typeof A.getAttribute=="function"}function inspectString(A,E){if(A.length>E.maxStringLength){var C=A.length-E.maxStringLength,R="... "+C+" more character"+(C>1?"s":"");return inspectString($slice.call(A,0,E.maxStringLength),E)+R}var I=quoteREs[E.quoteStyle||"single"];I.lastIndex=0;var B=$replace$1.call($replace$1.call(A,I,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(B,"single",E)}function lowbyte(A){var E=A.charCodeAt(0),C={8:"b",9:"t",10:"n",12:"f",13:"r"}[E];return C?"\\"+C:"\\x"+(E<16?"0":"")+$toUpperCase.call(E.toString(16))}function markBoxed(A){return"Object("+A+")"}function weakCollectionOf(A){return A+" { ? }"}function collectionOf(A,E,C,R){var I=R?indentedJoin(C,R):$join.call(C,", ");return A+" ("+E+") {"+I+"}"}function singleLineValues(A){for(var E=0;E<A.length;E++)if(indexOf(A[E],`
33
+ */var gsap,_win,_splitColor,_PIXI,PropTween,_getSetter,_isV4,_windowExists=function(){return typeof window<"u"},_getGSAP=function(){return gsap||_windowExists()&&(gsap=window.gsap)&&gsap.registerPlugin&&gsap},_isFunction=function(E){return typeof E=="function"},_warn=function(E){return console.warn(E)},_idMatrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],_lumR=.212671,_lumG=.71516,_lumB=.072169,_applyMatrix=function(E,C){var R=[],I=0,B=0,U,V;for(U=0;U<4;U++){for(V=0;V<5;V++)B=V===4?E[I+4]:0,R[I+V]=E[I]*C[V]+E[I+1]*C[V+5]+E[I+2]*C[V+10]+E[I+3]*C[V+15]+B;I+=5}return R},_setSaturation=function(E,C){var R=1-C,I=R*_lumR,B=R*_lumG,U=R*_lumB;return _applyMatrix([I+C,B,U,0,0,I,B+C,U,0,0,I,B,U+C,0,0,0,0,0,1,0],E)},_colorize=function(E,C,R){var I=_splitColor(C),B=I[0]/255,U=I[1]/255,V=I[2]/255,X=1-R;return _applyMatrix([X+R*B*_lumR,R*B*_lumG,R*B*_lumB,0,0,R*U*_lumR,X+R*U*_lumG,R*U*_lumB,0,0,R*V*_lumR,R*V*_lumG,X+R*V*_lumB,0,0,0,0,0,1,0],E)},_setHue=function(E,C){C*=Math.PI/180;var R=Math.cos(C),I=Math.sin(C);return _applyMatrix([_lumR+R*(1-_lumR)+I*-_lumR,_lumG+R*-_lumG+I*-_lumG,_lumB+R*-_lumB+I*(1-_lumB),0,0,_lumR+R*-_lumR+I*.143,_lumG+R*(1-_lumG)+I*.14,_lumB+R*-_lumB+I*-.283,0,0,_lumR+R*-_lumR+I*-(1-_lumR),_lumG+R*-_lumG+I*_lumG,_lumB+R*(1-_lumB)+I*_lumB,0,0,0,0,0,1,0,0,0,0,0,1],E)},_setContrast=function(E,C){return _applyMatrix([C,0,0,0,.5*(1-C),0,C,0,0,.5*(1-C),0,0,C,0,.5*(1-C),0,0,0,1,0],E)},_getFilter=function(E,C){var R=_PIXI.filters[C],I=E.filters||[],B=I.length,U;for(R||_warn(C+" not found. PixiPlugin.registerPIXI(PIXI)");--B>-1;)if(I[B]instanceof R)return I[B];return U=new R,C==="BlurFilter"&&(U.blur=0),I.push(U),E.filters=I,U},_addColorMatrixFilterCacheTween=function(E,C,R,I){C.add(R,E,R[E],I[E]),C._props.push(E)},_applyBrightnessToMatrix=function(E,C){var R=new _PIXI.filters.ColorMatrixFilter;return R.matrix=C,R.brightness(E,!0),R.matrix},_copy=function(E){var C={},R;for(R in E)C[R]=E[R];return C},_CMFdefaults={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_parseColorMatrixFilter=function(E,C,R){var I=_getFilter(E,"ColorMatrixFilter"),B=E._gsColorMatrixFilter=E._gsColorMatrixFilter||_copy(_CMFdefaults),U=C.combineCMF&&!("colorMatrixFilter"in C&&!C.colorMatrixFilter),V,X,K;for(K=I.matrix,C.resolution&&(I.resolution=C.resolution),C.matrix&&C.matrix.length===K.length?(X=C.matrix,B.contrast!==1&&_addColorMatrixFilterCacheTween("contrast",R,B,_CMFdefaults),B.hue&&_addColorMatrixFilterCacheTween("hue",R,B,_CMFdefaults),B.brightness!==1&&_addColorMatrixFilterCacheTween("brightness",R,B,_CMFdefaults),B.colorizeAmount&&(_addColorMatrixFilterCacheTween("colorize",R,B,_CMFdefaults),_addColorMatrixFilterCacheTween("colorizeAmount",R,B,_CMFdefaults)),B.saturation!==1&&_addColorMatrixFilterCacheTween("saturation",R,B,_CMFdefaults)):(X=_idMatrix.slice(),C.contrast!=null?(X=_setContrast(X,+C.contrast),_addColorMatrixFilterCacheTween("contrast",R,B,C)):B.contrast!==1&&(U?X=_setContrast(X,B.contrast):_addColorMatrixFilterCacheTween("contrast",R,B,_CMFdefaults)),C.hue!=null?(X=_setHue(X,+C.hue),_addColorMatrixFilterCacheTween("hue",R,B,C)):B.hue&&(U?X=_setHue(X,B.hue):_addColorMatrixFilterCacheTween("hue",R,B,_CMFdefaults)),C.brightness!=null?(X=_applyBrightnessToMatrix(+C.brightness,X),_addColorMatrixFilterCacheTween("brightness",R,B,C)):B.brightness!==1&&(U?X=_applyBrightnessToMatrix(B.brightness,X):_addColorMatrixFilterCacheTween("brightness",R,B,_CMFdefaults)),C.colorize!=null?(C.colorizeAmount="colorizeAmount"in C?+C.colorizeAmount:1,X=_colorize(X,C.colorize,C.colorizeAmount),_addColorMatrixFilterCacheTween("colorize",R,B,C),_addColorMatrixFilterCacheTween("colorizeAmount",R,B,C)):B.colorizeAmount&&(U?X=_colorize(X,B.colorize,B.colorizeAmount):(_addColorMatrixFilterCacheTween("colorize",R,B,_CMFdefaults),_addColorMatrixFilterCacheTween("colorizeAmount",R,B,_CMFdefaults))),C.saturation!=null?(X=_setSaturation(X,+C.saturation),_addColorMatrixFilterCacheTween("saturation",R,B,C)):B.saturation!==1&&(U?X=_setSaturation(X,B.saturation):_addColorMatrixFilterCacheTween("saturation",R,B,_CMFdefaults))),V=X.length;--V>-1;)X[V]!==K[V]&&R.add(K,V,K[V],X[V],"colorMatrixFilter");R._props.push("colorMatrixFilter")},_renderColor=function(E,C){var R=C.t,I=C.p,B=C.color,U=C.set;U(R,I,B[0]<<16|B[1]<<8|B[2])},_renderDirtyCache=function(E,C){var R=C.g;R&&(R.dirty++,R.clearDirty++)},_renderAutoAlpha=function(E,C){C.t.visible=!!C.t.alpha},_addColorTween=function(E,C,R,I){var B=E[C],U=_splitColor(_isFunction(B)?E[C.indexOf("set")||!_isFunction(E["get"+C.substr(3)])?C:"get"+C.substr(3)]():B),V=_splitColor(R);I._pt=new PropTween(I._pt,E,C,0,0,_renderColor,{t:E,p:C,color:U,set:_getSetter(E,C)}),I.add(U,0,U[0],V[0]),I.add(U,1,U[1],V[1]),I.add(U,2,U[2],V[2])},_colorProps={tint:1,lineColor:1,fillColor:1},_xyContexts="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),_contexts={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},_colorMatrixFilterProps={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},_DEG2RAD=Math.PI/180,_isString=function(E){return typeof E=="string"},_degreesToRadians=function(E){return _isString(E)&&E.charAt(1)==="="?E.substr(0,2)+parseFloat(E.substr(2))*_DEG2RAD:E*_DEG2RAD},_renderPropWithEnd=function(E,C){return C.set(C.t,C.p,E===1?C.e:Math.round((C.s+C.c*E)*1e5)/1e5,C)},_addRotationalPropTween=function(E,C,R,I,B,U){var V=360*(U?_DEG2RAD:1),X=_isString(B),K=X&&B.charAt(1)==="="?+(B.charAt(0)+"1"):0,J=parseFloat(K?B.substr(2):B)*(U?_DEG2RAD:1),Y=K?J*K:J-I,Z=I+Y,_e,xe;return X&&(_e=B.split("_")[1],_e==="short"&&(Y%=V,Y!==Y%(V/2)&&(Y+=Y<0?V:-V)),_e==="cw"&&Y<0?Y=(Y+V*1e10)%V-~~(Y/V)*V:_e==="ccw"&&Y>0&&(Y=(Y-V*1e10)%V-~~(Y/V)*V)),E._pt=xe=new PropTween(E._pt,C,R,I,Y,_renderPropWithEnd),xe.e=Z,xe},_initCore=function(){_windowExists()&&(_win=window,gsap=_getGSAP(),_PIXI=_PIXI||_win.PIXI,_isV4=_PIXI&&_PIXI.VERSION&&_PIXI.VERSION.charAt(0)==="4",_splitColor=function(C){return gsap.utils.splitColor((C+"").substr(0,2)==="0x"?"#"+C.substr(2):C)})},i$7,p$3;for(i$7=0;i$7<_xyContexts.length;i$7++)p$3=_xyContexts[i$7],_contexts[p$3+"X"]=p$3,_contexts[p$3+"Y"]=p$3;var PixiPlugin={version:"3.11.5",name:"pixi",register:function(E,C,R){gsap=E,PropTween=R,_getSetter=C.getSetter,_initCore()},registerPIXI:function(E){_PIXI=E},init:function(E,C,R,I,B){if(_PIXI||_initCore(),!_PIXI||!(E instanceof _PIXI.DisplayObject))return console.warn(E,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var U,V,X,K,J,Y,Z,_e,xe;for(Y in C){if(U=_contexts[Y],X=C[Y],U)V=~Y.charAt(Y.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(E[U],V,E[U][V],U==="skew"?_degreesToRadians(X):X,0,0,0,0,0,1);else if(Y==="scale"||Y==="anchor"||Y==="pivot"||Y==="tileScale")this.add(E[Y],"x",E[Y].x,X),this.add(E[Y],"y",E[Y].y,X);else if(Y==="rotation"||Y==="angle")_addRotationalPropTween(this,E,Y,E[Y],X,Y==="rotation");else if(_colorMatrixFilterProps[Y])K||(_parseColorMatrixFilter(E,C.colorMatrixFilter||C,this),K=!0);else if(Y==="blur"||Y==="blurX"||Y==="blurY"||Y==="blurPadding"){if(J=_getFilter(E,"BlurFilter"),this.add(J,Y,J[Y],X),C.blurPadding!==0)for(Z=C.blurPadding||Math.max(J[Y],X)*2,_e=E.filters.length;--_e>-1;)E.filters[_e].padding=Math.max(E.filters[_e].padding,Z)}else if(_colorProps[Y])if((Y==="lineColor"||Y==="fillColor")&&E instanceof _PIXI.Graphics)for(xe=(E.geometry||E).graphicsData,this._pt=new PropTween(this._pt,E,Y,0,0,_renderDirtyCache,{g:E.geometry||E}),_e=xe.length;--_e>-1;)_addColorTween(_isV4?xe[_e]:xe[_e][Y.substr(0,4)+"Style"],_isV4?Y:"color",X,this);else _addColorTween(E,Y,X,this);else Y==="autoAlpha"?(this._pt=new PropTween(this._pt,E,"visible",0,0,_renderAutoAlpha),this.add(E,"alpha",E.alpha,X),this._props.push("alpha","visible")):Y!=="resolution"&&this.add(E,Y,"get",X);this._props.push(Y)}}};_getGSAP()&&gsap.registerPlugin(PixiPlugin),gsap$2.registerPlugin(PixiPlugin),PixiPlugin.registerPIXI(PIXI__namespace),gsap$2.registerPlugin(CustomEase),CustomEase.create("springBounce","0.32, 1.06, 0.61, 0.93"),gsap$2.registerEffect({name:"PULSE",effect(A,E){return gsap$2.timeline().fromTo(A,{pixi:{scaleX:.9,scaleY:.9}},{pixi:{scaleX:1.2,scaleY:1.2},duration:.5,ease:"slow"}).to(A,{pixi:{scaleX:1,scaleY:1,...E},duration:.5})}}),gsap$2.registerEffect({name:"SHAKE",effect(A,E){return gsap$2.timeline().to(A,{duration:.1,pixi:{x:"+=5"}}).to(A,{duration:.1,pixi:{x:"-=10"}}).to(A,{duration:.1,pixi:{x:"+=10"}}).to(A,{duration:.1,pixi:{x:"-=10"}}).to(A,{duration:.1,pixi:{x:"+=5"}}).to(A,{pixi:{...E},duration:.5})}}),gsap$2.registerEffect({name:"SWING",effect(A,E){return gsap$2.timeline().to(A,{duration:.5,pixi:{rotation:1}}).to(A,{duration:.5,pixi:{rotation:-1.5}}).to(A,{pixi:{rotation:0,...E},duration:.5})}}),gsap$2.registerEffect({name:"JELLO",effect(A,E){return gsap$2.timeline().to(A,{duration:.3,pixi:{scaleX:.5,rotation:-1}}).to(A,{duration:.4,pixi:{scaleX:1.5,rotation:1}}).to(A,{duration:.3,pixi:{scaleX:1,rotation:0}}).to(A,{pixi:{rotation:0,...E},duration:.5})}}),gsap$2.registerEffect({name:"WOOBLE",effect(A,E){return gsap$2.timeline().to(A,{duration:.3,pixi:{scaleX:.5,x:E.x*-.5}}).to(A,{duration:.3,pixi:{scaleX:1.5,x:E.x*1.5}}).to(A,{duration:.3,pixi:{scaleX:.5,x:E.x*-.01}}).to(A,{duration:.3,pixi:{scaleX:1,x:E.x}}).to(A,{rotation:0,pixi:{...E,rotation:0},duration:.5})}}),gsap$2.registerEffect({name:"NONE",effect(A,E){return gsap$2.timeline().to(A,{duration:0})}}),gsap$2.registerEffect({name:"FLASH",effect(A,E){return gsap$2.timeline().to(A,{duration:.2,alpha:0}).to(A,{duration:.2,alpha:1}).to(A,{duration:.2,alpha:0}).to(A,{duration:.2,alpha:1}).to(A,{duration:.2,alpha:0}).to(A,{duration:.2,alpha:1,...E})}}),gsap$2.registerEffect({name:"BOUNCE_IN",effect(A,E){return gsap$2.timeline().fromTo(A,{pixi:{scaleX:1.5,scaleY:1.5}},{...E,pixi:{x:E==null?void 0:E.x,y:E==null?void 0:E.y,scaleX:1,scaleY:1},duration:2,ease:"bounce.out"})}}),gsap$2.registerEffect({name:"BOUNCE_IN_DOWN",effect(A,E){return gsap$2.timeline().from(A,{duration:2,ease:"bounce.out",immediateRender:!0,pixi:{...E,x:E==null?void 0:E.x,y:-2500,alpha:0}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_LEFT",effect(A,E){return gsap$2.timeline().from(A,{ease:"bounce.out",duration:2,pixi:{...E,x:-1500,alpha:0}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_RIGHT",effect(A,E){const C=Math.max(1e3,(E==null?void 0:E.maxX)+500);return gsap$2.timeline().from(A,{ease:"bounce.out",duration:2,pixi:{...E,x:C}})}}),gsap$2.registerEffect({name:"BOUNCE_IN_UP",effect(A,E){return gsap$2.timeline().from(A,{ease:"bounce.out",pixi:{...E,y:2e3},duration:2})}}),gsap$2.registerEffect({name:"BOUNCE_OUT",effect(A,E){return gsap$2.timeline().from(A,{...E,ease:"bounce.in",pixi:{y:2e3},duration:1.5})}}),gsap$2.registerEffect({name:"FADE_IN",effect(A){return gsap$2.timeline().fromTo(A,{alpha:0},{ease:"power4.in",alpha:1,duration:1})}}),gsap$2.registerEffect({name:"FADE_IN_DOWN",effect(A,E){return gsap$2.timeline().fromTo(A,{pixi:{y:-1500,alpha:0}},{duration:1,ease:"power4.in",pixi:{y:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"FADE_IN_LEFT",effect(A,E){return gsap$2.timeline().fromTo(A,{pixi:{alpha:0,x:-2e3}},{ease:"power4.in",pixi:{x:0,alpha:1,...E},duration:1})}}),gsap$2.registerEffect({name:"FADE_IN_RIGHT",effect(A,E){return gsap$2.fromTo(A,{pixi:{x:2e3,alpha:0}},{duration:1,ease:"power4.in",pixi:{x:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"FADE_IN_UP",effect(A,E){return gsap$2.fromTo(A,{pixi:{y:2e3,alpha:0}},{duration:.8,ease:"power4.in",pixi:{y:0,alpha:1,...E}})}}),gsap$2.registerEffect({name:"SPIN",effect(A){return gsap$2.to(A,{rotation:(E,C)=>gsap$2.utils.snap(360,Number(gsap$2.getProperty(C,"rotation"))+360)})}});function useGsapEffect(){return{updateEffect:React.useCallback((E,C,R)=>{if(!E)return console.warn("useGsapEffect: Target container is null or undefined"),gsap$2.to({},{duration:0});if(!C||typeof C!="string")return console.warn("useGsapEffect: Invalid effect name provided"),gsap$2.to(E,{duration:0});const I={immediateRender:!1,overwrite:!0,...R};try{return gsap$2.effects[C]?gsap$2.effects[C](E,I):gsap$2.effects.NONE?(console.warn(`useGsapEffect: Effect "${C}" not found, falling back to NONE`),gsap$2.effects.NONE(E,I)):(console.warn("useGsapEffect: NONE effect not found, returning empty tween"),gsap$2.to(E,{duration:0}))}catch(B){return console.error("useGsapEffect: Error applying effect:",B),gsap$2.to(E,{duration:0})}},[])}}var Animations=(A=>(A.NONE="NONE",A.FLASH="FLASH",A.PULSE="PULSE",A.SHAKE="SHAKE",A.SWING="SWING",A.JELLO="JELLO",A.WOOBLE="WOOBLE",A.FADE_IN="FADE_IN",A.FADE_OUT="FADE_OUT",A.FADE_IN_OUT="FADE_IN_OUT",A.SLIDE_IN_LEFT="SLIDE_IN_LEFT",A.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",A.SLIDE_IN_TOP="SLIDE_IN_TOP",A.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",A.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",A.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",A.SLIDE_OUT_TOP="SLIDE_OUT_TOP",A.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",A.ZOOM_IN="ZOOM_IN",A.ZOOM_OUT="ZOOM_OUT",A.ZOOM_IN_OUT="ZOOM_IN_OUT",A.BOUNCE_IN="BOUNCE_IN",A.BOUNCE_OUT="BOUNCE_OUT",A.BOUNCE_IN_OUT="BOUNCE_IN_OUT",A.BOUNCE_IN_DOWN="BOUNCE_IN_DOWN",A.BOUNCE_IN_LEFT="BOUNCE_IN_LEFT",A.BOUNCE_IN_RIGHT="BOUNCE_IN_RIGHT",A.BOUNCE_IN_UP="BOUNCE_IN_UP",A.BOUNCE_OUT_DOWN="BOUNCE_OUT_DOWN",A.BOUNCE_OUT_LEFT="BOUNCE_OUT_LEFT",A.BOUNCE_OUT_RIGHT="BOUNCE_OUT_RIGHT",A.BOUNCE_OUT_UP="BOUNCE_OUT_UP",A.FADE_IN_DOWN="FADE_IN_DOWN",A.FADE_IN_LEFT="FADE_IN_LEFT",A.FADE_IN_RIGHT="FADE_IN_RIGHT",A.FADE_IN_UP="FADE_IN_UP",A.FADE_OUT_DOWN="FADE_OUT_DOWN",A.FADE_OUT_LEFT="FADE_OUT_LEFT",A.FADE_OUT_RIGHT="FADE_OUT_RIGHT",A.FADE_OUT_UP="FADE_OUT_UP",A.ELASTIC_IN="ELASTIC_IN",A.ELASTIC_OUT="ELASTIC_OUT",A.ELASTIC_IN_OUT="ELASTIC_IN_OUT",A.BACK_IN="BACK_IN",A.BACK_OUT="BACK_OUT",A.BACK_IN_OUT="BACK_IN_OUT",A.CIRCULAR_IN="CIRCULAR_IN",A.CIRCULAR_OUT="CIRCULAR_OUT",A.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",A.EXPO_IN="EXPO_IN",A.EXPO_OUT="EXPO_OUT",A.EXPO_IN_OUT="EXPO_IN_OUT",A.SINE_IN="SINE_IN",A.SINE_OUT="SINE_OUT",A.SINE_IN_OUT="SINE_IN_OUT",A.BOUNCE="BOUNCE",A.ELASTIC="ELASTIC",A.BACK="BACK",A.CIRCULAR="CIRCULAR",A.EXPO="EXPO",A.SINE="SINE",A.SPIN="SPIN",A))(Animations||{}),ENV=(A=>(A[A.WEBGL_LEGACY=0]="WEBGL_LEGACY",A[A.WEBGL=1]="WEBGL",A[A.WEBGL2=2]="WEBGL2",A))(ENV||{}),RENDERER_TYPE=(A=>(A[A.UNKNOWN=0]="UNKNOWN",A[A.WEBGL=1]="WEBGL",A[A.CANVAS=2]="CANVAS",A))(RENDERER_TYPE||{}),BUFFER_BITS=(A=>(A[A.COLOR=16384]="COLOR",A[A.DEPTH=256]="DEPTH",A[A.STENCIL=1024]="STENCIL",A))(BUFFER_BITS||{}),BLEND_MODES=(A=>(A[A.NORMAL=0]="NORMAL",A[A.ADD=1]="ADD",A[A.MULTIPLY=2]="MULTIPLY",A[A.SCREEN=3]="SCREEN",A[A.OVERLAY=4]="OVERLAY",A[A.DARKEN=5]="DARKEN",A[A.LIGHTEN=6]="LIGHTEN",A[A.COLOR_DODGE=7]="COLOR_DODGE",A[A.COLOR_BURN=8]="COLOR_BURN",A[A.HARD_LIGHT=9]="HARD_LIGHT",A[A.SOFT_LIGHT=10]="SOFT_LIGHT",A[A.DIFFERENCE=11]="DIFFERENCE",A[A.EXCLUSION=12]="EXCLUSION",A[A.HUE=13]="HUE",A[A.SATURATION=14]="SATURATION",A[A.COLOR=15]="COLOR",A[A.LUMINOSITY=16]="LUMINOSITY",A[A.NORMAL_NPM=17]="NORMAL_NPM",A[A.ADD_NPM=18]="ADD_NPM",A[A.SCREEN_NPM=19]="SCREEN_NPM",A[A.NONE=20]="NONE",A[A.SRC_OVER=0]="SRC_OVER",A[A.SRC_IN=21]="SRC_IN",A[A.SRC_OUT=22]="SRC_OUT",A[A.SRC_ATOP=23]="SRC_ATOP",A[A.DST_OVER=24]="DST_OVER",A[A.DST_IN=25]="DST_IN",A[A.DST_OUT=26]="DST_OUT",A[A.DST_ATOP=27]="DST_ATOP",A[A.ERASE=26]="ERASE",A[A.SUBTRACT=28]="SUBTRACT",A[A.XOR=29]="XOR",A))(BLEND_MODES||{}),DRAW_MODES=(A=>(A[A.POINTS=0]="POINTS",A[A.LINES=1]="LINES",A[A.LINE_LOOP=2]="LINE_LOOP",A[A.LINE_STRIP=3]="LINE_STRIP",A[A.TRIANGLES=4]="TRIANGLES",A[A.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",A[A.TRIANGLE_FAN=6]="TRIANGLE_FAN",A))(DRAW_MODES||{}),FORMATS=(A=>(A[A.RGBA=6408]="RGBA",A[A.RGB=6407]="RGB",A[A.RG=33319]="RG",A[A.RED=6403]="RED",A[A.RGBA_INTEGER=36249]="RGBA_INTEGER",A[A.RGB_INTEGER=36248]="RGB_INTEGER",A[A.RG_INTEGER=33320]="RG_INTEGER",A[A.RED_INTEGER=36244]="RED_INTEGER",A[A.ALPHA=6406]="ALPHA",A[A.LUMINANCE=6409]="LUMINANCE",A[A.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",A[A.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",A[A.DEPTH_STENCIL=34041]="DEPTH_STENCIL",A))(FORMATS||{}),TARGETS=(A=>(A[A.TEXTURE_2D=3553]="TEXTURE_2D",A[A.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",A[A.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",A[A.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",A[A.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",A[A.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",A[A.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",A[A.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",A[A.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",A))(TARGETS||{}),TYPES=(A=>(A[A.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",A[A.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",A[A.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",A[A.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",A[A.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",A[A.UNSIGNED_INT=5125]="UNSIGNED_INT",A[A.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",A[A.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",A[A.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",A[A.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",A[A.BYTE=5120]="BYTE",A[A.SHORT=5122]="SHORT",A[A.INT=5124]="INT",A[A.FLOAT=5126]="FLOAT",A[A.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",A[A.HALF_FLOAT=36193]="HALF_FLOAT",A))(TYPES||{}),SAMPLER_TYPES=(A=>(A[A.FLOAT=0]="FLOAT",A[A.INT=1]="INT",A[A.UINT=2]="UINT",A))(SAMPLER_TYPES||{}),SCALE_MODES=(A=>(A[A.NEAREST=0]="NEAREST",A[A.LINEAR=1]="LINEAR",A))(SCALE_MODES||{}),WRAP_MODES=(A=>(A[A.CLAMP=33071]="CLAMP",A[A.REPEAT=10497]="REPEAT",A[A.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",A))(WRAP_MODES||{}),MIPMAP_MODES=(A=>(A[A.OFF=0]="OFF",A[A.POW2=1]="POW2",A[A.ON=2]="ON",A[A.ON_MANUAL=3]="ON_MANUAL",A))(MIPMAP_MODES||{}),ALPHA_MODES=(A=>(A[A.NPM=0]="NPM",A[A.UNPACK=1]="UNPACK",A[A.PMA=2]="PMA",A[A.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",A[A.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",A[A.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",A))(ALPHA_MODES||{}),CLEAR_MODES=(A=>(A[A.NO=0]="NO",A[A.YES=1]="YES",A[A.AUTO=2]="AUTO",A[A.BLEND=0]="BLEND",A[A.CLEAR=1]="CLEAR",A[A.BLIT=2]="BLIT",A))(CLEAR_MODES||{}),GC_MODES=(A=>(A[A.AUTO=0]="AUTO",A[A.MANUAL=1]="MANUAL",A))(GC_MODES||{}),PRECISION=(A=>(A.LOW="lowp",A.MEDIUM="mediump",A.HIGH="highp",A))(PRECISION||{}),MASK_TYPES=(A=>(A[A.NONE=0]="NONE",A[A.SCISSOR=1]="SCISSOR",A[A.STENCIL=2]="STENCIL",A[A.SPRITE=3]="SPRITE",A[A.COLOR=4]="COLOR",A))(MASK_TYPES||{}),MSAA_QUALITY=(A=>(A[A.NONE=0]="NONE",A[A.LOW=2]="LOW",A[A.MEDIUM=4]="MEDIUM",A[A.HIGH=8]="HIGH",A))(MSAA_QUALITY||{}),BUFFER_TYPE=(A=>(A[A.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",A[A.ARRAY_BUFFER=34962]="ARRAY_BUFFER",A[A.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",A))(BUFFER_TYPE||{});const BrowserAdapter={createCanvas:(A,E)=>{const C=document.createElement("canvas");return C.width=A,C.height=E,C},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(A,E)=>fetch(A,E),parseXML:A=>new DOMParser().parseFromString(A,"text/xml")},settings={ADAPTER:BrowserAdapter,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var appleIphone=/iPhone/i,appleIpod=/iPod/i,appleTablet=/iPad/i,appleUniversal=/\biOS-universal(?:.+)Mac\b/i,androidPhone=/\bAndroid(?:.+)Mobile\b/i,androidTablet=/Android/i,amazonPhone=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,amazonTablet=/Silk/i,windowsPhone=/Windows Phone/i,windowsTablet=/\bWindows(?:.+)ARM\b/i,otherBlackBerry=/BlackBerry/i,otherBlackBerry10=/BB10/i,otherOpera=/Opera Mini/i,otherChrome=/\b(CriOS|Chrome)(?:.+)Mobile/i,otherFirefox=/Mobile(?:.+)Firefox\b/i,isAppleTabletOnIos13=function(A){return typeof A<"u"&&A.platform==="MacIntel"&&typeof A.maxTouchPoints=="number"&&A.maxTouchPoints>1&&typeof MSStream>"u"};function createMatch(A){return function(E){return E.test(A)}}function isMobile$1(A){var E={userAgent:"",platform:"",maxTouchPoints:0};!A&&typeof navigator<"u"?E={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof A=="string"?E.userAgent=A:A&&A.userAgent&&(E={userAgent:A.userAgent,platform:A.platform,maxTouchPoints:A.maxTouchPoints||0});var C=E.userAgent,R=C.split("[FBAN");typeof R[1]<"u"&&(C=R[0]),R=C.split("Twitter"),typeof R[1]<"u"&&(C=R[0]);var I=createMatch(C),B={apple:{phone:I(appleIphone)&&!I(windowsPhone),ipod:I(appleIpod),tablet:!I(appleIphone)&&(I(appleTablet)||isAppleTabletOnIos13(E))&&!I(windowsPhone),universal:I(appleUniversal),device:(I(appleIphone)||I(appleIpod)||I(appleTablet)||I(appleUniversal)||isAppleTabletOnIos13(E))&&!I(windowsPhone)},amazon:{phone:I(amazonPhone),tablet:!I(amazonPhone)&&I(amazonTablet),device:I(amazonPhone)||I(amazonTablet)},android:{phone:!I(windowsPhone)&&I(amazonPhone)||!I(windowsPhone)&&I(androidPhone),tablet:!I(windowsPhone)&&!I(amazonPhone)&&!I(androidPhone)&&(I(amazonTablet)||I(androidTablet)),device:!I(windowsPhone)&&(I(amazonPhone)||I(amazonTablet)||I(androidPhone)||I(androidTablet))||I(/\bokhttp\b/i)},windows:{phone:I(windowsPhone),tablet:I(windowsTablet),device:I(windowsPhone)||I(windowsTablet)},other:{blackberry:I(otherBlackBerry),blackberry10:I(otherBlackBerry10),opera:I(otherOpera),firefox:I(otherFirefox),chrome:I(otherChrome),device:I(otherBlackBerry)||I(otherBlackBerry10)||I(otherOpera)||I(otherFirefox)||I(otherChrome)},any:!1,phone:!1,tablet:!1};return B.any=B.apple.device||B.android.device||B.windows.device||B.other.device,B.phone=B.apple.phone||B.android.phone||B.windows.phone,B.tablet=B.apple.tablet||B.android.tablet||B.windows.tablet,B}const isMobileCall=isMobile$1.default??isMobile$1,isMobile=isMobileCall(globalThis.navigator);settings.RETINA_PREFIX=/@([0-9\.]+)x/,settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var eventemitter3={exports:{}};(function(A){var E=Object.prototype.hasOwnProperty,C="~";function R(){}Object.create&&(R.prototype=Object.create(null),new R().__proto__||(C=!1));function I(X,K,J){this.fn=X,this.context=K,this.once=J||!1}function B(X,K,J,Y,Z){if(typeof J!="function")throw new TypeError("The listener must be a function");var _e=new I(J,Y||X,Z),xe=C?C+K:K;return X._events[xe]?X._events[xe].fn?X._events[xe]=[X._events[xe],_e]:X._events[xe].push(_e):(X._events[xe]=_e,X._eventsCount++),X}function U(X,K){--X._eventsCount===0?X._events=new R:delete X._events[K]}function V(){this._events=new R,this._eventsCount=0}V.prototype.eventNames=function(){var K=[],J,Y;if(this._eventsCount===0)return K;for(Y in J=this._events)E.call(J,Y)&&K.push(C?Y.slice(1):Y);return Object.getOwnPropertySymbols?K.concat(Object.getOwnPropertySymbols(J)):K},V.prototype.listeners=function(K){var J=C?C+K:K,Y=this._events[J];if(!Y)return[];if(Y.fn)return[Y.fn];for(var Z=0,_e=Y.length,xe=new Array(_e);Z<_e;Z++)xe[Z]=Y[Z].fn;return xe},V.prototype.listenerCount=function(K){var J=C?C+K:K,Y=this._events[J];return Y?Y.fn?1:Y.length:0},V.prototype.emit=function(K,J,Y,Z,_e,xe){var Se=C?C+K:K;if(!this._events[Se])return!1;var Pe=this._events[Se],Ee=arguments.length,Ae,Te;if(Pe.fn){switch(Pe.once&&this.removeListener(K,Pe.fn,void 0,!0),Ee){case 1:return Pe.fn.call(Pe.context),!0;case 2:return Pe.fn.call(Pe.context,J),!0;case 3:return Pe.fn.call(Pe.context,J,Y),!0;case 4:return Pe.fn.call(Pe.context,J,Y,Z),!0;case 5:return Pe.fn.call(Pe.context,J,Y,Z,_e),!0;case 6:return Pe.fn.call(Pe.context,J,Y,Z,_e,xe),!0}for(Te=1,Ae=new Array(Ee-1);Te<Ee;Te++)Ae[Te-1]=arguments[Te];Pe.fn.apply(Pe.context,Ae)}else{var we=Pe.length,Ie;for(Te=0;Te<we;Te++)switch(Pe[Te].once&&this.removeListener(K,Pe[Te].fn,void 0,!0),Ee){case 1:Pe[Te].fn.call(Pe[Te].context);break;case 2:Pe[Te].fn.call(Pe[Te].context,J);break;case 3:Pe[Te].fn.call(Pe[Te].context,J,Y);break;case 4:Pe[Te].fn.call(Pe[Te].context,J,Y,Z);break;default:if(!Ae)for(Ie=1,Ae=new Array(Ee-1);Ie<Ee;Ie++)Ae[Ie-1]=arguments[Ie];Pe[Te].fn.apply(Pe[Te].context,Ae)}}return!0},V.prototype.on=function(K,J,Y){return B(this,K,J,Y,!1)},V.prototype.once=function(K,J,Y){return B(this,K,J,Y,!0)},V.prototype.removeListener=function(K,J,Y,Z){var _e=C?C+K:K;if(!this._events[_e])return this;if(!J)return U(this,_e),this;var xe=this._events[_e];if(xe.fn)xe.fn===J&&(!Z||xe.once)&&(!Y||xe.context===Y)&&U(this,_e);else{for(var Se=0,Pe=[],Ee=xe.length;Se<Ee;Se++)(xe[Se].fn!==J||Z&&!xe[Se].once||Y&&xe[Se].context!==Y)&&Pe.push(xe[Se]);Pe.length?this._events[_e]=Pe.length===1?Pe[0]:Pe:U(this,_e)}return this},V.prototype.removeAllListeners=function(K){var J;return K?(J=C?C+K:K,this._events[J]&&U(this,J)):(this._events=new R,this._eventsCount=0),this},V.prototype.off=V.prototype.removeListener,V.prototype.addListener=V.prototype.on,V.prefixed=C,V.EventEmitter=V,A.exports=V})(eventemitter3);var eventemitter3Exports=eventemitter3.exports;const EventEmitter=getDefaultExportFromCjs(eventemitter3Exports);var earcut$2={exports:{}};earcut$2.exports=earcut,earcut$2.exports.default=earcut;function earcut(A,E,C){C=C||2;var R=E&&E.length,I=R?E[0]*C:A.length,B=linkedList(A,0,I,C,!0),U=[];if(!B||B.next===B.prev)return U;var V,X,K,J,Y,Z,_e;if(R&&(B=eliminateHoles(A,E,B,C)),A.length>80*C){V=K=A[0],X=J=A[1];for(var xe=C;xe<I;xe+=C)Y=A[xe],Z=A[xe+1],Y<V&&(V=Y),Z<X&&(X=Z),Y>K&&(K=Y),Z>J&&(J=Z);_e=Math.max(K-V,J-X),_e=_e!==0?32767/_e:0}return earcutLinked(B,U,C,V,X,_e,0),U}function linkedList(A,E,C,R,I){var B,U;if(I===signedArea(A,E,C,R)>0)for(B=E;B<C;B+=R)U=insertNode(B,A[B],A[B+1],U);else for(B=C-R;B>=E;B-=R)U=insertNode(B,A[B],A[B+1],U);return U&&equals(U,U.next)&&(removeNode(U),U=U.next),U}function filterPoints(A,E){if(!A)return A;E||(E=A);var C=A,R;do if(R=!1,!C.steiner&&(equals(C,C.next)||area(C.prev,C,C.next)===0)){if(removeNode(C),C=E=C.prev,C===C.next)break;R=!0}else C=C.next;while(R||C!==E);return E}function earcutLinked(A,E,C,R,I,B,U){if(A){!U&&B&&indexCurve(A,R,I,B);for(var V=A,X,K;A.prev!==A.next;){if(X=A.prev,K=A.next,B?isEarHashed(A,R,I,B):isEar(A)){E.push(X.i/C|0),E.push(A.i/C|0),E.push(K.i/C|0),removeNode(A),A=K.next,V=K.next;continue}if(A=K,A===V){U?U===1?(A=cureLocalIntersections(filterPoints(A),E,C),earcutLinked(A,E,C,R,I,B,2)):U===2&&splitEarcut(A,E,C,R,I,B):earcutLinked(filterPoints(A),E,C,R,I,B,1);break}}}}function isEar(A){var E=A.prev,C=A,R=A.next;if(area(E,C,R)>=0)return!1;for(var I=E.x,B=C.x,U=R.x,V=E.y,X=C.y,K=R.y,J=I<B?I<U?I:U:B<U?B:U,Y=V<X?V<K?V:K:X<K?X:K,Z=I>B?I>U?I:U:B>U?B:U,_e=V>X?V>K?V:K:X>K?X:K,xe=R.next;xe!==E;){if(xe.x>=J&&xe.x<=Z&&xe.y>=Y&&xe.y<=_e&&pointInTriangle(I,V,B,X,U,K,xe.x,xe.y)&&area(xe.prev,xe,xe.next)>=0)return!1;xe=xe.next}return!0}function isEarHashed(A,E,C,R){var I=A.prev,B=A,U=A.next;if(area(I,B,U)>=0)return!1;for(var V=I.x,X=B.x,K=U.x,J=I.y,Y=B.y,Z=U.y,_e=V<X?V<K?V:K:X<K?X:K,xe=J<Y?J<Z?J:Z:Y<Z?Y:Z,Se=V>X?V>K?V:K:X>K?X:K,Pe=J>Y?J>Z?J:Z:Y>Z?Y:Z,Ee=zOrder(_e,xe,E,C,R),Ae=zOrder(Se,Pe,E,C,R),Te=A.prevZ,we=A.nextZ;Te&&Te.z>=Ee&&we&&we.z<=Ae;){if(Te.x>=_e&&Te.x<=Se&&Te.y>=xe&&Te.y<=Pe&&Te!==I&&Te!==U&&pointInTriangle(V,J,X,Y,K,Z,Te.x,Te.y)&&area(Te.prev,Te,Te.next)>=0||(Te=Te.prevZ,we.x>=_e&&we.x<=Se&&we.y>=xe&&we.y<=Pe&&we!==I&&we!==U&&pointInTriangle(V,J,X,Y,K,Z,we.x,we.y)&&area(we.prev,we,we.next)>=0))return!1;we=we.nextZ}for(;Te&&Te.z>=Ee;){if(Te.x>=_e&&Te.x<=Se&&Te.y>=xe&&Te.y<=Pe&&Te!==I&&Te!==U&&pointInTriangle(V,J,X,Y,K,Z,Te.x,Te.y)&&area(Te.prev,Te,Te.next)>=0)return!1;Te=Te.prevZ}for(;we&&we.z<=Ae;){if(we.x>=_e&&we.x<=Se&&we.y>=xe&&we.y<=Pe&&we!==I&&we!==U&&pointInTriangle(V,J,X,Y,K,Z,we.x,we.y)&&area(we.prev,we,we.next)>=0)return!1;we=we.nextZ}return!0}function cureLocalIntersections(A,E,C){var R=A;do{var I=R.prev,B=R.next.next;!equals(I,B)&&intersects(I,R,R.next,B)&&locallyInside(I,B)&&locallyInside(B,I)&&(E.push(I.i/C|0),E.push(R.i/C|0),E.push(B.i/C|0),removeNode(R),removeNode(R.next),R=A=B),R=R.next}while(R!==A);return filterPoints(R)}function splitEarcut(A,E,C,R,I,B){var U=A;do{for(var V=U.next.next;V!==U.prev;){if(U.i!==V.i&&isValidDiagonal(U,V)){var X=splitPolygon(U,V);U=filterPoints(U,U.next),X=filterPoints(X,X.next),earcutLinked(U,E,C,R,I,B,0),earcutLinked(X,E,C,R,I,B,0);return}V=V.next}U=U.next}while(U!==A)}function eliminateHoles(A,E,C,R){var I=[],B,U,V,X,K;for(B=0,U=E.length;B<U;B++)V=E[B]*R,X=B<U-1?E[B+1]*R:A.length,K=linkedList(A,V,X,R,!1),K===K.next&&(K.steiner=!0),I.push(getLeftmost(K));for(I.sort(compareX),B=0;B<I.length;B++)C=eliminateHole(I[B],C);return C}function compareX(A,E){return A.x-E.x}function eliminateHole(A,E){var C=findHoleBridge(A,E);if(!C)return E;var R=splitPolygon(C,A);return filterPoints(R,R.next),filterPoints(C,C.next)}function findHoleBridge(A,E){var C=E,R=A.x,I=A.y,B=-1/0,U;do{if(I<=C.y&&I>=C.next.y&&C.next.y!==C.y){var V=C.x+(I-C.y)*(C.next.x-C.x)/(C.next.y-C.y);if(V<=R&&V>B&&(B=V,U=C.x<C.next.x?C:C.next,V===R))return U}C=C.next}while(C!==E);if(!U)return null;var X=U,K=U.x,J=U.y,Y=1/0,Z;C=U;do R>=C.x&&C.x>=K&&R!==C.x&&pointInTriangle(I<J?R:B,I,K,J,I<J?B:R,I,C.x,C.y)&&(Z=Math.abs(I-C.y)/(R-C.x),locallyInside(C,A)&&(Z<Y||Z===Y&&(C.x>U.x||C.x===U.x&&sectorContainsSector(U,C)))&&(U=C,Y=Z)),C=C.next;while(C!==X);return U}function sectorContainsSector(A,E){return area(A.prev,A,E.prev)<0&&area(E.next,A,A.next)<0}function indexCurve(A,E,C,R){var I=A;do I.z===0&&(I.z=zOrder(I.x,I.y,E,C,R)),I.prevZ=I.prev,I.nextZ=I.next,I=I.next;while(I!==A);I.prevZ.nextZ=null,I.prevZ=null,sortLinked(I)}function sortLinked(A){var E,C,R,I,B,U,V,X,K=1;do{for(C=A,A=null,B=null,U=0;C;){for(U++,R=C,V=0,E=0;E<K&&(V++,R=R.nextZ,!!R);E++);for(X=K;V>0||X>0&&R;)V!==0&&(X===0||!R||C.z<=R.z)?(I=C,C=C.nextZ,V--):(I=R,R=R.nextZ,X--),B?B.nextZ=I:A=I,I.prevZ=B,B=I;C=R}B.nextZ=null,K*=2}while(U>1);return A}function zOrder(A,E,C,R,I){return A=(A-C)*I|0,E=(E-R)*I|0,A=(A|A<<8)&16711935,A=(A|A<<4)&252645135,A=(A|A<<2)&858993459,A=(A|A<<1)&1431655765,E=(E|E<<8)&16711935,E=(E|E<<4)&252645135,E=(E|E<<2)&858993459,E=(E|E<<1)&1431655765,A|E<<1}function getLeftmost(A){var E=A,C=A;do(E.x<C.x||E.x===C.x&&E.y<C.y)&&(C=E),E=E.next;while(E!==A);return C}function pointInTriangle(A,E,C,R,I,B,U,V){return(I-U)*(E-V)>=(A-U)*(B-V)&&(A-U)*(R-V)>=(C-U)*(E-V)&&(C-U)*(B-V)>=(I-U)*(R-V)}function isValidDiagonal(A,E){return A.next.i!==E.i&&A.prev.i!==E.i&&!intersectsPolygon(A,E)&&(locallyInside(A,E)&&locallyInside(E,A)&&middleInside(A,E)&&(area(A.prev,A,E.prev)||area(A,E.prev,E))||equals(A,E)&&area(A.prev,A,A.next)>0&&area(E.prev,E,E.next)>0)}function area(A,E,C){return(E.y-A.y)*(C.x-E.x)-(E.x-A.x)*(C.y-E.y)}function equals(A,E){return A.x===E.x&&A.y===E.y}function intersects(A,E,C,R){var I=sign$2(area(A,E,C)),B=sign$2(area(A,E,R)),U=sign$2(area(C,R,A)),V=sign$2(area(C,R,E));return!!(I!==B&&U!==V||I===0&&onSegment(A,C,E)||B===0&&onSegment(A,R,E)||U===0&&onSegment(C,A,R)||V===0&&onSegment(C,E,R))}function onSegment(A,E,C){return E.x<=Math.max(A.x,C.x)&&E.x>=Math.min(A.x,C.x)&&E.y<=Math.max(A.y,C.y)&&E.y>=Math.min(A.y,C.y)}function sign$2(A){return A>0?1:A<0?-1:0}function intersectsPolygon(A,E){var C=A;do{if(C.i!==A.i&&C.next.i!==A.i&&C.i!==E.i&&C.next.i!==E.i&&intersects(C,C.next,A,E))return!0;C=C.next}while(C!==A);return!1}function locallyInside(A,E){return area(A.prev,A,A.next)<0?area(A,E,A.next)>=0&&area(A,A.prev,E)>=0:area(A,E,A.prev)<0||area(A,A.next,E)<0}function middleInside(A,E){var C=A,R=!1,I=(A.x+E.x)/2,B=(A.y+E.y)/2;do C.y>B!=C.next.y>B&&C.next.y!==C.y&&I<(C.next.x-C.x)*(B-C.y)/(C.next.y-C.y)+C.x&&(R=!R),C=C.next;while(C!==A);return R}function splitPolygon(A,E){var C=new Node$1(A.i,A.x,A.y),R=new Node$1(E.i,E.x,E.y),I=A.next,B=E.prev;return A.next=E,E.prev=A,C.next=I,I.prev=C,R.next=C,C.prev=R,B.next=R,R.prev=B,R}function insertNode(A,E,C,R){var I=new Node$1(A,E,C);return R?(I.next=R.next,I.prev=R,R.next.prev=I,R.next=I):(I.prev=I,I.next=I),I}function removeNode(A){A.next.prev=A.prev,A.prev.next=A.next,A.prevZ&&(A.prevZ.nextZ=A.nextZ),A.nextZ&&(A.nextZ.prevZ=A.prevZ)}function Node$1(A,E,C){this.i=A,this.x=E,this.y=C,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}earcut.deviation=function(A,E,C,R){var I=E&&E.length,B=I?E[0]*C:A.length,U=Math.abs(signedArea(A,0,B,C));if(I)for(var V=0,X=E.length;V<X;V++){var K=E[V]*C,J=V<X-1?E[V+1]*C:A.length;U-=Math.abs(signedArea(A,K,J,C))}var Y=0;for(V=0;V<R.length;V+=3){var Z=R[V]*C,_e=R[V+1]*C,xe=R[V+2]*C;Y+=Math.abs((A[Z]-A[xe])*(A[_e+1]-A[Z+1])-(A[Z]-A[_e])*(A[xe+1]-A[Z+1]))}return U===0&&Y===0?0:Math.abs((Y-U)/U)};function signedArea(A,E,C,R){for(var I=0,B=E,U=C-R;B<C;B+=R)I+=(A[U]-A[B])*(A[B+1]+A[U+1]),U=B;return I}earcut.flatten=function(A){for(var E=A[0][0].length,C={vertices:[],holes:[],dimensions:E},R=0,I=0;I<A.length;I++){for(var B=0;B<A[I].length;B++)for(var U=0;U<E;U++)C.vertices.push(A[I][B][U]);I>0&&(R+=A[I-1].length,C.holes.push(R))}return C};var earcutExports=earcut$2.exports;const earcut$1=getDefaultExportFromCjs(earcutExports);var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports,function(A,E){(function(C){var R=E&&!E.nodeType&&E,I=A&&!A.nodeType&&A,B=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1;(B.global===B||B.window===B||B.self===B)&&(C=B);var U,V=2147483647,X=36,K=1,J=26,Y=38,Z=700,_e=72,xe=128,Se="-",Pe=/^xn--/,Ee=/[^\x20-\x7E]/,Ae=/[\x2E\u3002\uFF0E\uFF61]/g,Te={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},we=X-K,Ie=Math.floor,Fe=String.fromCharCode,ke;function Le(Ne){throw new RangeError(Te[Ne])}function Ge(Ne,De){for(var Xe=Ne.length,qe=[];Xe--;)qe[Xe]=De(Ne[Xe]);return qe}function Ue(Ne,De){var Xe=Ne.split("@"),qe="";Xe.length>1&&(qe=Xe[0]+"@",Ne=Xe[1]),Ne=Ne.replace(Ae,".");var Ye=Ne.split("."),Je=Ge(Ye,De).join(".");return qe+Je}function Be(Ne){for(var De=[],Xe=0,qe=Ne.length,Ye,Je;Xe<qe;)Ye=Ne.charCodeAt(Xe++),Ye>=55296&&Ye<=56319&&Xe<qe?(Je=Ne.charCodeAt(Xe++),(Je&64512)==56320?De.push(((Ye&1023)<<10)+(Je&1023)+65536):(De.push(Ye),Xe--)):De.push(Ye);return De}function je(Ne){return Ge(Ne,function(De){var Xe="";return De>65535&&(De-=65536,Xe+=Fe(De>>>10&1023|55296),De=56320|De&1023),Xe+=Fe(De),Xe}).join("")}function Ve(Ne){return Ne-48<10?Ne-22:Ne-65<26?Ne-65:Ne-97<26?Ne-97:X}function ze(Ne,De){return Ne+22+75*(Ne<26)-((De!=0)<<5)}function He(Ne,De,Xe){var qe=0;for(Ne=Xe?Ie(Ne/Z):Ne>>1,Ne+=Ie(Ne/De);Ne>we*J>>1;qe+=X)Ne=Ie(Ne/we);return Ie(qe+(we+1)*Ne/(Ne+Y))}function Oe(Ne){var De=[],Xe=Ne.length,qe,Ye=0,Je=xe,Ke=_e,rt,nt,Qe,Ze,tt,st,et,We,it;for(rt=Ne.lastIndexOf(Se),rt<0&&(rt=0),nt=0;nt<rt;++nt)Ne.charCodeAt(nt)>=128&&Le("not-basic"),De.push(Ne.charCodeAt(nt));for(Qe=rt>0?rt+1:0;Qe<Xe;){for(Ze=Ye,tt=1,st=X;Qe>=Xe&&Le("invalid-input"),et=Ve(Ne.charCodeAt(Qe++)),(et>=X||et>Ie((V-Ye)/tt))&&Le("overflow"),Ye+=et*tt,We=st<=Ke?K:st>=Ke+J?J:st-Ke,!(et<We);st+=X)it=X-We,tt>Ie(V/it)&&Le("overflow"),tt*=it;qe=De.length+1,Ke=He(Ye-Ze,qe,Ze==0),Ie(Ye/qe)>V-Je&&Le("overflow"),Je+=Ie(Ye/qe),Ye%=qe,De.splice(Ye++,0,Je)}return je(De)}function $e(Ne){var De,Xe,qe,Ye,Je,Ke,rt,nt,Qe,Ze,tt,st=[],et,We,it,lt;for(Ne=Be(Ne),et=Ne.length,De=xe,Xe=0,Je=_e,Ke=0;Ke<et;++Ke)tt=Ne[Ke],tt<128&&st.push(Fe(tt));for(qe=Ye=st.length,Ye&&st.push(Se);qe<et;){for(rt=V,Ke=0;Ke<et;++Ke)tt=Ne[Ke],tt>=De&&tt<rt&&(rt=tt);for(We=qe+1,rt-De>Ie((V-Xe)/We)&&Le("overflow"),Xe+=(rt-De)*We,De=rt,Ke=0;Ke<et;++Ke)if(tt=Ne[Ke],tt<De&&++Xe>V&&Le("overflow"),tt==De){for(nt=Xe,Qe=X;Ze=Qe<=Je?K:Qe>=Je+J?J:Qe-Je,!(nt<Ze);Qe+=X)lt=nt-Ze,it=X-Ze,st.push(Fe(ze(Ze+lt%it,0))),nt=Ie(lt/it);st.push(Fe(ze(nt,0))),Je=He(Xe,We,qe==Ye),Xe=0,++qe}++Xe,++De}return st.join("")}function Re(Ne){return Ue(Ne,function(De){return Pe.test(De)?Oe(De.slice(4).toLowerCase()):De})}function Me(Ne){return Ue(Ne,function(De){return Ee.test(De)?"xn--"+$e(De):De})}if(U={version:"1.4.1",ucs2:{decode:Be,encode:je},decode:Oe,encode:$e,toASCII:Me,toUnicode:Re},R&&I)if(A.exports==R)I.exports=U;else for(ke in U)U.hasOwnProperty(ke)&&(R[ke]=U[ke]);else C.punycode=U})(commonjsGlobal$1)}(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports,type=TypeError;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize$1=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace$1=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat$1=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(A){return A.__proto__}:null);function addNumericSeparator(A,E){if(A===1/0||A===-1/0||A!==A||A&&A>-1e3&&A<1e3||$test.call(/e/,E))return E;var C=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof A=="number"){var R=A<0?-$floor(-A):$floor(A);if(R!==A){var I=String(R),B=$slice.call(E,I.length+1);return $replace$1.call(I,C,"$&_")+"."+$replace$1.call($replace$1.call(B,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace$1.call(E,C,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol$5(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},objectInspect=function A(E,C,R,I){var B=C||{};if(has$3(B,"quoteStyle")&&!has$3(quotes,B.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(B,"maxStringLength")&&(typeof B.maxStringLength=="number"?B.maxStringLength<0&&B.maxStringLength!==1/0:B.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var U=has$3(B,"customInspect")?B.customInspect:!0;if(typeof U!="boolean"&&U!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(B,"indent")&&B.indent!==null&&B.indent!==" "&&!(parseInt(B.indent,10)===B.indent&&B.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(B,"numericSeparator")&&typeof B.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var V=B.numericSeparator;if(typeof E>"u")return"undefined";if(E===null)return"null";if(typeof E=="boolean")return E?"true":"false";if(typeof E=="string")return inspectString(E,B);if(typeof E=="number"){if(E===0)return 1/0/E>0?"0":"-0";var X=String(E);return V?addNumericSeparator(E,X):X}if(typeof E=="bigint"){var K=String(E)+"n";return V?addNumericSeparator(E,K):K}var J=typeof B.depth>"u"?5:B.depth;if(typeof R>"u"&&(R=0),R>=J&&J>0&&typeof E=="object")return isArray$c(E)?"[Array]":"[Object]";var Y=getIndent(B,R);if(typeof I>"u")I=[];else if(indexOf(I,E)>=0)return"[Circular]";function Z(Ve,ze,He){if(ze&&(I=$arrSlice.call(I),I.push(ze)),He){var Oe={depth:B.depth};return has$3(B,"quoteStyle")&&(Oe.quoteStyle=B.quoteStyle),A(Ve,Oe,R+1,I)}return A(Ve,B,R+1,I)}if(typeof E=="function"&&!isRegExp$1(E)){var _e=nameOf(E),xe=arrObjKeys(E,Z);return"[Function"+(_e?": "+_e:" (anonymous)")+"]"+(xe.length>0?" { "+$join.call(xe,", ")+" }":"")}if(isSymbol$5(E)){var Se=hasShammedSymbols?$replace$1.call(String(E),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(E);return typeof E=="object"&&!hasShammedSymbols?markBoxed(Se):Se}if(isElement(E)){for(var Pe="<"+$toLowerCase.call(String(E.nodeName)),Ee=E.attributes||[],Ae=0;Ae<Ee.length;Ae++)Pe+=" "+Ee[Ae].name+"="+wrapQuotes(quote(Ee[Ae].value),"double",B);return Pe+=">",E.childNodes&&E.childNodes.length&&(Pe+="..."),Pe+="</"+$toLowerCase.call(String(E.nodeName))+">",Pe}if(isArray$c(E)){if(E.length===0)return"[]";var Te=arrObjKeys(E,Z);return Y&&!singleLineValues(Te)?"["+indentedJoin(Te,Y)+"]":"[ "+$join.call(Te,", ")+" ]"}if(isError(E)){var we=arrObjKeys(E,Z);return!("cause"in Error.prototype)&&"cause"in E&&!isEnumerable.call(E,"cause")?"{ ["+String(E)+"] "+$join.call($concat$1.call("[cause]: "+Z(E.cause),we),", ")+" }":we.length===0?"["+String(E)+"]":"{ ["+String(E)+"] "+$join.call(we,", ")+" }"}if(typeof E=="object"&&U){if(inspectSymbol&&typeof E[inspectSymbol]=="function"&&utilInspect)return utilInspect(E,{depth:J-R});if(U!=="symbol"&&typeof E.inspect=="function")return E.inspect()}if(isMap(E)){var Ie=[];return mapForEach&&mapForEach.call(E,function(Ve,ze){Ie.push(Z(ze,E,!0)+" => "+Z(Ve,E))}),collectionOf("Map",mapSize$1.call(E),Ie,Y)}if(isSet(E)){var Fe=[];return setForEach&&setForEach.call(E,function(Ve){Fe.push(Z(Ve,E))}),collectionOf("Set",setSize.call(E),Fe,Y)}if(isWeakMap(E))return weakCollectionOf("WeakMap");if(isWeakSet(E))return weakCollectionOf("WeakSet");if(isWeakRef(E))return weakCollectionOf("WeakRef");if(isNumber(E))return markBoxed(Z(Number(E)));if(isBigInt(E))return markBoxed(Z(bigIntValueOf.call(E)));if(isBoolean(E))return markBoxed(booleanValueOf.call(E));if(isString(E))return markBoxed(Z(String(E)));if(typeof window<"u"&&E===window)return"{ [object Window] }";if(typeof globalThis<"u"&&E===globalThis||typeof commonjsGlobal$1<"u"&&E===commonjsGlobal$1)return"{ [object globalThis] }";if(!isDate(E)&&!isRegExp$1(E)){var ke=arrObjKeys(E,Z),Le=gPO?gPO(E)===Object.prototype:E instanceof Object||E.constructor===Object,Ge=E instanceof Object?"":"null prototype",Ue=!Le&&toStringTag&&Object(E)===E&&toStringTag in E?$slice.call(toStr(E),8,-1):Ge?"Object":"",Be=Le||typeof E.constructor!="function"?"":E.constructor.name?E.constructor.name+" ":"",je=Be+(Ue||Ge?"["+$join.call($concat$1.call([],Ue||[],Ge||[]),": ")+"] ":"");return ke.length===0?je+"{}":Y?je+"{"+indentedJoin(ke,Y)+"}":je+"{ "+$join.call(ke,", ")+" }"}return String(E)};function wrapQuotes(A,E,C){var R=C.quoteStyle||E,I=quotes[R];return I+A+I}function quote(A){return $replace$1.call(String(A),/"/g,"&quot;")}function canTrustToString(A){return!toStringTag||!(typeof A=="object"&&(toStringTag in A||typeof A[toStringTag]<"u"))}function isArray$c(A){return toStr(A)==="[object Array]"&&canTrustToString(A)}function isDate(A){return toStr(A)==="[object Date]"&&canTrustToString(A)}function isRegExp$1(A){return toStr(A)==="[object RegExp]"&&canTrustToString(A)}function isError(A){return toStr(A)==="[object Error]"&&canTrustToString(A)}function isString(A){return toStr(A)==="[object String]"&&canTrustToString(A)}function isNumber(A){return toStr(A)==="[object Number]"&&canTrustToString(A)}function isBoolean(A){return toStr(A)==="[object Boolean]"&&canTrustToString(A)}function isSymbol$5(A){if(hasShammedSymbols)return A&&typeof A=="object"&&A instanceof Symbol;if(typeof A=="symbol")return!0;if(!A||typeof A!="object"||!symToString)return!1;try{return symToString.call(A),!0}catch{}return!1}function isBigInt(A){if(!A||typeof A!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(A),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(A){return A in this};function has$3(A,E){return hasOwn$1.call(A,E)}function toStr(A){return objectToString.call(A)}function nameOf(A){if(A.name)return A.name;var E=$match.call(functionToString.call(A),/^function\s*([\w$]+)/);return E?E[1]:null}function indexOf(A,E){if(A.indexOf)return A.indexOf(E);for(var C=0,R=A.length;C<R;C++)if(A[C]===E)return C;return-1}function isMap(A){if(!mapSize$1||!A||typeof A!="object")return!1;try{mapSize$1.call(A);try{setSize.call(A)}catch{return!0}return A instanceof Map}catch{}return!1}function isWeakMap(A){if(!weakMapHas||!A||typeof A!="object")return!1;try{weakMapHas.call(A,weakMapHas);try{weakSetHas.call(A,weakSetHas)}catch{return!0}return A instanceof WeakMap}catch{}return!1}function isWeakRef(A){if(!weakRefDeref||!A||typeof A!="object")return!1;try{return weakRefDeref.call(A),!0}catch{}return!1}function isSet(A){if(!setSize||!A||typeof A!="object")return!1;try{setSize.call(A);try{mapSize$1.call(A)}catch{return!0}return A instanceof Set}catch{}return!1}function isWeakSet(A){if(!weakSetHas||!A||typeof A!="object")return!1;try{weakSetHas.call(A,weakSetHas);try{weakMapHas.call(A,weakMapHas)}catch{return!0}return A instanceof WeakSet}catch{}return!1}function isElement(A){return!A||typeof A!="object"?!1:typeof HTMLElement<"u"&&A instanceof HTMLElement?!0:typeof A.nodeName=="string"&&typeof A.getAttribute=="function"}function inspectString(A,E){if(A.length>E.maxStringLength){var C=A.length-E.maxStringLength,R="... "+C+" more character"+(C>1?"s":"");return inspectString($slice.call(A,0,E.maxStringLength),E)+R}var I=quoteREs[E.quoteStyle||"single"];I.lastIndex=0;var B=$replace$1.call($replace$1.call(A,I,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(B,"single",E)}function lowbyte(A){var E=A.charCodeAt(0),C={8:"b",9:"t",10:"n",12:"f",13:"r"}[E];return C?"\\"+C:"\\x"+(E<16?"0":"")+$toUpperCase.call(E.toString(16))}function markBoxed(A){return"Object("+A+")"}function weakCollectionOf(A){return A+" { ? }"}function collectionOf(A,E,C,R){var I=R?indentedJoin(C,R):$join.call(C,", ");return A+" ("+E+") {"+I+"}"}function singleLineValues(A){for(var E=0;E<A.length;E++)if(indexOf(A[E],`
34
34
  `)>=0)return!1;return!0}function getIndent(A,E){var C;if(A.indent===" ")C=" ";else if(typeof A.indent=="number"&&A.indent>0)C=$join.call(Array(A.indent+1)," ");else return null;return{base:C,prev:$join.call(Array(E+1),C)}}function indentedJoin(A,E){if(A.length===0)return"";var C=`
35
35
  `+E.prev+E.base;return C+$join.call(A,","+C)+`
36
- `+E.prev}function arrObjKeys(A,E){var C=isArray$c(A),R=[];if(C){R.length=A.length;for(var I=0;I<A.length;I++)R[I]=has$3(A,I)?E(A[I],A):""}var B=typeof gOPS=="function"?gOPS(A):[],U;if(hasShammedSymbols){U={};for(var V=0;V<B.length;V++)U["$"+B[V]]=B[V]}for(var X in A)has$3(A,X)&&(C&&String(Number(X))===X&&X<A.length||hasShammedSymbols&&U["$"+X]instanceof Symbol||($test.call(/[^\w$]/,X)?R.push(E(X,A)+": "+E(A[X],A)):R.push(X+": "+E(A[X],A))));if(typeof gOPS=="function")for(var K=0;K<B.length;K++)isEnumerable.call(A,B[K])&&R.push("["+E(B[K])+"]: "+E(A[B[K]],A));return R}var inspect$3=objectInspect,$TypeError$5=type,listGetNode=function(A,E,C){for(var R=A,I;(I=R.next)!=null;R=I)if(I.key===E)return R.next=I.next,C||(I.next=A.next,A.next=I),I},listGet=function(A,E){if(A){var C=listGetNode(A,E);return C&&C.value}},listSet=function(A,E,C){var R=listGetNode(A,E);R?R.value=C:A.next={key:E,next:A.next,value:C}},listHas=function(A,E){return A?!!listGetNode(A,E):!1},listDelete=function(A,E){if(A)return listGetNode(A,E,!0)},sideChannelList=function(){var E,C={assert:function(R){if(!C.has(R))throw new $TypeError$5("Side channel does not contain "+inspect$3(R))},delete:function(R){var I=E&&E.next,B=listDelete(E,R);return B&&I&&I===B&&(E=void 0),!!B},get:function(R){return listGet(E,R)},has:function(R){return listHas(E,R)},set:function(R,I){E||(E={next:void 0}),listSet(E,R,I)}};return C},esObjectAtoms=Object,esErrors=Error,_eval=EvalError,range=RangeError,ref=ReferenceError,syntax=SyntaxError,uri=URIError,abs$1=Math.abs,floor$1=Math.floor,max$1=Math.max,min$1=Math.min,pow$1=Math.pow,round$2=Math.round,_isNaN=Number.isNaN||function(E){return E!==E},$isNaN=_isNaN,sign$1=function(E){return $isNaN(E)||E===0?E:E<0?-1:1},gOPD=Object.getOwnPropertyDescriptor,$gOPD$1=gOPD;if($gOPD$1)try{$gOPD$1([],"length")}catch{$gOPD$1=null}var gopd=$gOPD$1,$defineProperty$1=Object.defineProperty||!1;if($defineProperty$1)try{$defineProperty$1({},"a",{value:1})}catch{$defineProperty$1=!1}var esDefineProperty=$defineProperty$1,shams,hasRequiredShams;function requireShams(){return hasRequiredShams||(hasRequiredShams=1,shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var E={},C=Symbol("test"),R=Object(C);if(typeof C=="string"||Object.prototype.toString.call(C)!=="[object Symbol]"||Object.prototype.toString.call(R)!=="[object Symbol]")return!1;var I=42;E[C]=I;for(var B in E)return!1;if(typeof Object.keys=="function"&&Object.keys(E).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(E).length!==0)return!1;var U=Object.getOwnPropertySymbols(E);if(U.length!==1||U[0]!==C||!Object.prototype.propertyIsEnumerable.call(E,C))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var V=Object.getOwnPropertyDescriptor(E,C);if(V.value!==I||V.enumerable!==!0)return!1}return!0}),shams}var hasSymbols$1,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols$1;hasRequiredHasSymbols=1;var A=typeof Symbol<"u"&&Symbol,E=requireShams();return hasSymbols$1=function(){return typeof A!="function"||typeof Symbol!="function"||typeof A("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:E()},hasSymbols$1}var Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf||(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Reflect_getPrototypeOf}var Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var A=esObjectAtoms;return Object_getPrototypeOf=A.getPrototypeOf||null,Object_getPrototypeOf}var implementation,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var A="Function.prototype.bind called on incompatible ",E=Object.prototype.toString,C=Math.max,R="[object Function]",I=function(X,K){for(var J=[],Y=0;Y<X.length;Y+=1)J[Y]=X[Y];for(var Z=0;Z<K.length;Z+=1)J[Z+X.length]=K[Z];return J},B=function(X,K){for(var J=[],Y=K||0,Z=0;Y<X.length;Y+=1,Z+=1)J[Z]=X[Y];return J},U=function(V,X){for(var K="",J=0;J<V.length;J+=1)K+=V[J],J+1<V.length&&(K+=X);return K};return implementation=function(X){var K=this;if(typeof K!="function"||E.apply(K)!==R)throw new TypeError(A+K);for(var J=B(arguments,1),Y,Z=function(){if(this instanceof Y){var Ee=K.apply(this,I(J,arguments));return Object(Ee)===Ee?Ee:this}return K.apply(X,I(J,arguments))},_e=C(0,K.length-J.length),xe=[],Se=0;Se<_e;Se++)xe[Se]="$"+Se;if(Y=Function("binder","return function ("+U(xe,",")+"){ return binder.apply(this,arguments); }")(Z),K.prototype){var Pe=function(){};Pe.prototype=K.prototype,Y.prototype=new Pe,Pe.prototype=null}return Y},implementation}var functionBind,hasRequiredFunctionBind;function requireFunctionBind(){if(hasRequiredFunctionBind)return functionBind;hasRequiredFunctionBind=1;var A=requireImplementation();return functionBind=Function.prototype.bind||A,functionBind}var functionCall,hasRequiredFunctionCall;function requireFunctionCall(){return hasRequiredFunctionCall||(hasRequiredFunctionCall=1,functionCall=Function.prototype.call),functionCall}var functionApply,hasRequiredFunctionApply;function requireFunctionApply(){return hasRequiredFunctionApply||(hasRequiredFunctionApply=1,functionApply=Function.prototype.apply),functionApply}var reflectApply=typeof Reflect<"u"&&Reflect&&Reflect.apply,bind$2=requireFunctionBind(),$apply$1=requireFunctionApply(),$call$2=requireFunctionCall(),$reflectApply=reflectApply,actualApply=$reflectApply||bind$2.call($call$2,$apply$1),bind$1=requireFunctionBind(),$TypeError$4=type,$call$1=requireFunctionCall(),$actualApply=actualApply,callBindApplyHelpers=function(E){if(E.length<1||typeof E[0]!="function")throw new $TypeError$4("a function is required");return $actualApply(bind$1,$call$1,E)},get$2,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get$2;hasRequiredGet=1;var A=callBindApplyHelpers,E=gopd,C;try{C=[].__proto__===Array.prototype}catch(U){if(!U||typeof U!="object"||!("code"in U)||U.code!=="ERR_PROTO_ACCESS")throw U}var R=!!C&&E&&E(Object.prototype,"__proto__"),I=Object,B=I.getPrototypeOf;return get$2=R&&typeof R.get=="function"?A([R.get]):typeof B=="function"?function(V){return B(V==null?V:I(V))}:!1,get$2}var getProto$1,hasRequiredGetProto;function requireGetProto(){if(hasRequiredGetProto)return getProto$1;hasRequiredGetProto=1;var A=requireReflect_getPrototypeOf(),E=requireObject_getPrototypeOf(),C=requireGet();return getProto$1=A?function(I){return A(I)}:E?function(I){if(!I||typeof I!="object"&&typeof I!="function")throw new TypeError("getProto: not an object");return E(I)}:C?function(I){return C(I)}:null,getProto$1}var hasown,hasRequiredHasown;function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var A=Function.prototype.call,E=Object.prototype.hasOwnProperty,C=requireFunctionBind();return hasown=C.call(A,E),hasown}var undefined$1,$Object=esObjectAtoms,$Error=esErrors,$EvalError=_eval,$RangeError=range,$ReferenceError=ref,$SyntaxError=syntax,$TypeError$3=type,$URIError=uri,abs=abs$1,floor=floor$1,max=max$1,min=min$1,pow=pow$1,round$1=round$2,sign=sign$1,$Function=Function,getEvalledConstructor=function(A){try{return $Function('"use strict"; return ('+A+").constructor;")()}catch{}},$gOPD=gopd,$defineProperty=esDefineProperty,throwTypeError=function(){throw new $TypeError$3},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=requireHasSymbols()(),getProto=requireGetProto(),$ObjectGPO=requireObject_getPrototypeOf(),$ReflectGPO=requireReflect_getPrototypeOf(),$apply=requireFunctionApply(),$call=requireFunctionCall(),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":typeof Float16Array>"u"?undefined$1:Float16Array,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply,"%Object.defineProperty%":$defineProperty,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round$1,"%Math.sign%":sign,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto)try{null.error}catch(A){var errorProto=getProto(getProto(A));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function A(E){var C;if(E==="%AsyncFunction%")C=getEvalledConstructor("async function () {}");else if(E==="%GeneratorFunction%")C=getEvalledConstructor("function* () {}");else if(E==="%AsyncGeneratorFunction%")C=getEvalledConstructor("async function* () {}");else if(E==="%AsyncGenerator%"){var R=A("%AsyncGeneratorFunction%");R&&(C=R.prototype)}else if(E==="%AsyncIteratorPrototype%"){var I=A("%AsyncGenerator%");I&&getProto&&(C=getProto(I.prototype))}return INTRINSICS[E]=C,C},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=requireFunctionBind(),hasOwn=requireHasown(),$concat=bind.call($call,Array.prototype.concat),$spliceApply=bind.call($apply,Array.prototype.splice),$replace=bind.call($call,String.prototype.replace),$strSlice=bind.call($call,String.prototype.slice),$exec=bind.call($call,RegExp.prototype.exec),rePropName$1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=function(E){var C=$strSlice(E,0,1),R=$strSlice(E,-1);if(C==="%"&&R!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(R==="%"&&C!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var I=[];return $replace(E,rePropName$1,function(B,U,V,X){I[I.length]=V?$replace(X,reEscapeChar$1,"$1"):U||B}),I},getBaseIntrinsic=function(E,C){var R=E,I;if(hasOwn(LEGACY_ALIASES,R)&&(I=LEGACY_ALIASES[R],R="%"+I[0]+"%"),hasOwn(INTRINSICS,R)){var B=INTRINSICS[R];if(B===needsEval&&(B=doEval(R)),typeof B>"u"&&!C)throw new $TypeError$3("intrinsic "+E+" exists, but is not available. Please file an issue!");return{alias:I,name:R,value:B}}throw new $SyntaxError("intrinsic "+E+" does not exist!")},getIntrinsic=function(E,C){if(typeof E!="string"||E.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof C!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,E)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var R=stringToPath$2(E),I=R.length>0?R[0]:"",B=getBaseIntrinsic("%"+I+"%",C),U=B.name,V=B.value,X=!1,K=B.alias;K&&(I=K[0],$spliceApply(R,$concat([0,1],K)));for(var J=1,Y=!0;J<R.length;J+=1){var Z=R[J],_e=$strSlice(Z,0,1),xe=$strSlice(Z,-1);if((_e==='"'||_e==="'"||_e==="`"||xe==='"'||xe==="'"||xe==="`")&&_e!==xe)throw new $SyntaxError("property names with quotes must have matching quotes");if((Z==="constructor"||!Y)&&(X=!0),I+="."+Z,U="%"+I+"%",hasOwn(INTRINSICS,U))V=INTRINSICS[U];else if(V!=null){if(!(Z in V)){if(!C)throw new $TypeError$3("base intrinsic for "+E+" exists, but the property is not available.");return}if($gOPD&&J+1>=R.length){var Se=$gOPD(V,Z);Y=!!Se,Y&&"get"in Se&&!("originalValue"in Se.get)?V=Se.get:V=V[Z]}else Y=hasOwn(V,Z),V=V[Z];Y&&!X&&(INTRINSICS[U]=V)}}return V},GetIntrinsic$2=getIntrinsic,callBindBasic=callBindApplyHelpers,$indexOf=callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]),callBound$2=function(E,C){var R=GetIntrinsic$2(E,!!C);return typeof R=="function"&&$indexOf(E,".prototype.")>-1?callBindBasic([R]):R},GetIntrinsic$1=getIntrinsic,callBound$1=callBound$2,inspect$2=objectInspect,$TypeError$2=type,$Map=GetIntrinsic$1("%Map%",!0),$mapGet=callBound$1("Map.prototype.get",!0),$mapSet=callBound$1("Map.prototype.set",!0),$mapHas=callBound$1("Map.prototype.has",!0),$mapDelete=callBound$1("Map.prototype.delete",!0),$mapSize=callBound$1("Map.prototype.size",!0),sideChannelMap=!!$Map&&function(){var E,C={assert:function(R){if(!C.has(R))throw new $TypeError$2("Side channel does not contain "+inspect$2(R))},delete:function(R){if(E){var I=$mapDelete(E,R);return $mapSize(E)===0&&(E=void 0),I}return!1},get:function(R){if(E)return $mapGet(E,R)},has:function(R){return E?$mapHas(E,R):!1},set:function(R,I){E||(E=new $Map),$mapSet(E,R,I)}};return C},GetIntrinsic=getIntrinsic,callBound=callBound$2,inspect$1=objectInspect,getSideChannelMap$1=sideChannelMap,$TypeError$1=type,$WeakMap=GetIntrinsic("%WeakMap%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$weakMapDelete=callBound("WeakMap.prototype.delete",!0),sideChannelWeakmap=$WeakMap?function(){var E,C,R={assert:function(I){if(!R.has(I))throw new $TypeError$1("Side channel does not contain "+inspect$1(I))},delete:function(I){if($WeakMap&&I&&(typeof I=="object"||typeof I=="function")){if(E)return $weakMapDelete(E,I)}else if(getSideChannelMap$1&&C)return C.delete(I);return!1},get:function(I){return $WeakMap&&I&&(typeof I=="object"||typeof I=="function")&&E?$weakMapGet(E,I):C&&C.get(I)},has:function(I){return $WeakMap&&I&&(typeof I=="object"||typeof I=="function")&&E?$weakMapHas(E,I):!!C&&C.has(I)},set:function(I,B){$WeakMap&&I&&(typeof I=="object"||typeof I=="function")?(E||(E=new $WeakMap),$weakMapSet(E,I,B)):getSideChannelMap$1&&(C||(C=getSideChannelMap$1()),C.set(I,B))}};return R}:getSideChannelMap$1,$TypeError=type,inspect=objectInspect,getSideChannelList=sideChannelList,getSideChannelMap=sideChannelMap,getSideChannelWeakMap=sideChannelWeakmap,makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList,sideChannel=function(){var E,C={assert:function(R){if(!C.has(R))throw new $TypeError("Side channel does not contain "+inspect(R))},delete:function(R){return!!E&&E.delete(R)},get:function(R){return E&&E.get(R)},has:function(R){return!!E&&E.has(R)},set:function(R,I){E||(E=makeChannel()),E.set(R,I)}};return C},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(A){return replace.call(A,percentTwenties,"+")},RFC3986:function(A){return String(A)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$b=Array.isArray,hexTable=function(){for(var A=[],E=0;E<256;++E)A.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return A}(),compactQueue=function(E){for(;E.length>1;){var C=E.pop(),R=C.obj[C.prop];if(isArray$b(R)){for(var I=[],B=0;B<R.length;++B)typeof R[B]<"u"&&I.push(R[B]);C.obj[C.prop]=I}}},arrayToObject=function(E,C){for(var R=C&&C.plainObjects?{__proto__:null}:{},I=0;I<E.length;++I)typeof E[I]<"u"&&(R[I]=E[I]);return R},merge=function A(E,C,R){if(!C)return E;if(typeof C!="object"&&typeof C!="function"){if(isArray$b(E))E.push(C);else if(E&&typeof E=="object")(R&&(R.plainObjects||R.allowPrototypes)||!has$2.call(Object.prototype,C))&&(E[C]=!0);else return[E,C];return E}if(!E||typeof E!="object")return[E].concat(C);var I=E;return isArray$b(E)&&!isArray$b(C)&&(I=arrayToObject(E,R)),isArray$b(E)&&isArray$b(C)?(C.forEach(function(B,U){if(has$2.call(E,U)){var V=E[U];V&&typeof V=="object"&&B&&typeof B=="object"?E[U]=A(V,B,R):E.push(B)}else E[U]=B}),E):Object.keys(C).reduce(function(B,U){var V=C[U];return has$2.call(B,U)?B[U]=A(B[U],V,R):B[U]=V,B},I)},assign=function(E,C){return Object.keys(C).reduce(function(R,I){return R[I]=C[I],R},E)},decode=function(A,E,C){var R=A.replace(/\+/g," ");if(C==="iso-8859-1")return R.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(R)}catch{return R}},limit=1024,encode=function(E,C,R,I,B){if(E.length===0)return E;var U=E;if(typeof E=="symbol"?U=Symbol.prototype.toString.call(E):typeof E!="string"&&(U=String(E)),R==="iso-8859-1")return escape(U).replace(/%u[0-9a-f]{4}/gi,function(_e){return"%26%23"+parseInt(_e.slice(2),16)+"%3B"});for(var V="",X=0;X<U.length;X+=limit){for(var K=U.length>=limit?U.slice(X,X+limit):U,J=[],Y=0;Y<K.length;++Y){var Z=K.charCodeAt(Y);if(Z===45||Z===46||Z===95||Z===126||Z>=48&&Z<=57||Z>=65&&Z<=90||Z>=97&&Z<=122||B===formats$2.RFC1738&&(Z===40||Z===41)){J[J.length]=K.charAt(Y);continue}if(Z<128){J[J.length]=hexTable[Z];continue}if(Z<2048){J[J.length]=hexTable[192|Z>>6]+hexTable[128|Z&63];continue}if(Z<55296||Z>=57344){J[J.length]=hexTable[224|Z>>12]+hexTable[128|Z>>6&63]+hexTable[128|Z&63];continue}Y+=1,Z=65536+((Z&1023)<<10|K.charCodeAt(Y)&1023),J[J.length]=hexTable[240|Z>>18]+hexTable[128|Z>>12&63]+hexTable[128|Z>>6&63]+hexTable[128|Z&63]}V+=J.join("")}return V},compact=function(E){for(var C=[{obj:{o:E},prop:"o"}],R=[],I=0;I<C.length;++I)for(var B=C[I],U=B.obj[B.prop],V=Object.keys(U),X=0;X<V.length;++X){var K=V[X],J=U[K];typeof J=="object"&&J!==null&&R.indexOf(J)===-1&&(C.push({obj:U,prop:K}),R.push(J))}return compactQueue(C),E},isRegExp=function(E){return Object.prototype.toString.call(E)==="[object RegExp]"},isBuffer$2=function(E){return!E||typeof E!="object"?!1:!!(E.constructor&&E.constructor.isBuffer&&E.constructor.isBuffer(E))},combine$1=function(E,C){return[].concat(E,C)},maybeMap=function(E,C){if(isArray$b(E)){for(var R=[],I=0;I<E.length;I+=1)R.push(C(E[I]));return R}return C(E)},utils$2={arrayToObject,assign,combine:combine$1,compact,decode,encode,isBuffer:isBuffer$2,isRegExp,maybeMap,merge},getSideChannel=sideChannel,utils$1=utils$2,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,C){return E+"["+C+"]"},repeat:function(E){return E}},isArray$a=Array.isArray,push=Array.prototype.push,pushToArray=function(A,E){push.apply(A,isArray$a(E)?E:[E])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$1={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils$1.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(E){return toISO.call(E)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},sentinel={},stringify$1=function A(E,C,R,I,B,U,V,X,K,J,Y,Z,_e,xe,Se,Pe,Ee,Ae){for(var Te=E,we=Ae,Ie=0,Fe=!1;(we=we.get(sentinel))!==void 0&&!Fe;){var ke=we.get(E);if(Ie+=1,typeof ke<"u"){if(ke===Ie)throw new RangeError("Cyclic object value");Fe=!0}typeof we.get(sentinel)>"u"&&(Ie=0)}if(typeof J=="function"?Te=J(C,Te):Te instanceof Date?Te=_e(Te):R==="comma"&&isArray$a(Te)&&(Te=utils$1.maybeMap(Te,function(Ne){return Ne instanceof Date?_e(Ne):Ne})),Te===null){if(U)return K&&!Pe?K(C,defaults$1.encoder,Ee,"key",xe):C;Te=""}if(isNonNullishPrimitive(Te)||utils$1.isBuffer(Te)){if(K){var Le=Pe?C:K(C,defaults$1.encoder,Ee,"key",xe);return[Se(Le)+"="+Se(K(Te,defaults$1.encoder,Ee,"value",xe))]}return[Se(C)+"="+Se(String(Te))]}var Ge=[];if(typeof Te>"u")return Ge;var He;if(R==="comma"&&isArray$a(Te))Pe&&K&&(Te=utils$1.maybeMap(Te,K)),He=[{value:Te.length>0?Te.join(",")||null:void 0}];else if(isArray$a(J))He=J;else{var Be=Object.keys(Te);He=Y?Be.sort(Y):Be}var je=X?String(C).replace(/\./g,"%2E"):String(C),Ue=I&&isArray$a(Te)&&Te.length===1?je+"[]":je;if(B&&isArray$a(Te)&&Te.length===0)return Ue+"[]";for(var ze=0;ze<He.length;++ze){var Ve=He[ze],Oe=typeof Ve=="object"&&Ve&&typeof Ve.value<"u"?Ve.value:Te[Ve];if(!(V&&Oe===null)){var $e=Z&&X?String(Ve).replace(/\./g,"%2E"):String(Ve),Re=isArray$a(Te)?typeof R=="function"?R(Ue,$e):Ue:Ue+(Z?"."+$e:"["+$e+"]");Ae.set(E,Ie);var Me=getSideChannel();Me.set(sentinel,Ae),pushToArray(Ge,A(Oe,Re,R,I,B,U,V,X,R==="comma"&&Pe&&isArray$a(Te)?null:K,J,Y,Z,_e,xe,Se,Pe,Ee,Me))}}return Ge},normalizeStringifyOptions=function(E){if(!E)return defaults$1;if(typeof E.allowEmptyArrays<"u"&&typeof E.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof E.encodeDotInKeys<"u"&&typeof E.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(E.encoder!==null&&typeof E.encoder<"u"&&typeof E.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=E.charset||defaults$1.charset;if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var R=formats$1.default;if(typeof E.format<"u"){if(!has$1.call(formats$1.formatters,E.format))throw new TypeError("Unknown format option provided.");R=E.format}var I=formats$1.formatters[R],B=defaults$1.filter;(typeof E.filter=="function"||isArray$a(E.filter))&&(B=E.filter);var U;if(E.arrayFormat in arrayPrefixGenerators?U=E.arrayFormat:"indices"in E?U=E.indices?"indices":"repeat":U=defaults$1.arrayFormat,"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var V=typeof E.allowDots>"u"?E.encodeDotInKeys===!0?!0:defaults$1.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:V,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:defaults$1.allowEmptyArrays,arrayFormat:U,charset:C,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:defaults$1.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?defaults$1.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:defaults$1.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:defaults$1.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:defaults$1.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:B,format:R,formatter:I,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:defaults$1.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:defaults$1.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(A,E){var C=A,R=normalizeStringifyOptions(E),I,B;typeof R.filter=="function"?(B=R.filter,C=B("",C)):isArray$a(R.filter)&&(B=R.filter,I=B);var U=[];if(typeof C!="object"||C===null)return"";var V=arrayPrefixGenerators[R.arrayFormat],X=V==="comma"&&R.commaRoundTrip;I||(I=Object.keys(C)),R.sort&&I.sort(R.sort);for(var K=getSideChannel(),J=0;J<I.length;++J){var Y=I[J],Z=C[Y];R.skipNulls&&Z===null||pushToArray(U,stringify$1(Z,Y,V,X,R.allowEmptyArrays,R.strictNullHandling,R.skipNulls,R.encodeDotInKeys,R.encode?R.encoder:null,R.filter,R.sort,R.allowDots,R.serializeDate,R.format,R.formatter,R.encodeValuesOnly,R.charset,K))}var _e=U.join(R.delimiter),xe=R.addQueryPrefix===!0?"?":"";return R.charsetSentinel&&(R.charset==="iso-8859-1"?xe+="utf8=%26%2310003%3B&":xe+="utf8=%E2%9C%93&"),_e.length>0?xe+_e:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray$9=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(A){return A.replace(/&#(\d+);/g,function(E,C){return String.fromCharCode(parseInt(C,10))})},parseArrayValue=function(A,E,C){if(A&&typeof A=="string"&&E.comma&&A.indexOf(",")>-1)return A.split(",");if(E.throwOnLimitExceeded&&C>=E.arrayLimit)throw new RangeError("Array limit exceeded. Only "+E.arrayLimit+" element"+(E.arrayLimit===1?"":"s")+" allowed in an array.");return A},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(E,C){var R={__proto__:null},I=C.ignoreQueryPrefix?E.replace(/^\?/,""):E;I=I.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var B=C.parameterLimit===1/0?void 0:C.parameterLimit,U=I.split(C.delimiter,C.throwOnLimitExceeded?B+1:B);if(C.throwOnLimitExceeded&&U.length>B)throw new RangeError("Parameter limit exceeded. Only "+B+" parameter"+(B===1?"":"s")+" allowed.");var V=-1,X,K=C.charset;if(C.charsetSentinel)for(X=0;X<U.length;++X)U[X].indexOf("utf8=")===0&&(U[X]===charsetSentinel?K="utf-8":U[X]===isoSentinel&&(K="iso-8859-1"),V=X,X=U.length);for(X=0;X<U.length;++X)if(X!==V){var J=U[X],Y=J.indexOf("]="),Z=Y===-1?J.indexOf("="):Y+1,_e,xe;Z===-1?(_e=C.decoder(J,defaults.decoder,K,"key"),xe=C.strictNullHandling?null:""):(_e=C.decoder(J.slice(0,Z),defaults.decoder,K,"key"),xe=utils.maybeMap(parseArrayValue(J.slice(Z+1),C,isArray$9(R[_e])?R[_e].length:0),function(Pe){return C.decoder(Pe,defaults.decoder,K,"value")})),xe&&C.interpretNumericEntities&&K==="iso-8859-1"&&(xe=interpretNumericEntities(String(xe))),J.indexOf("[]=")>-1&&(xe=isArray$9(xe)?[xe]:xe);var Se=has.call(R,_e);Se&&C.duplicates==="combine"?R[_e]=utils.combine(R[_e],xe):(!Se||C.duplicates==="last")&&(R[_e]=xe)}return R},parseObject=function(A,E,C,R){var I=0;if(A.length>0&&A[A.length-1]==="[]"){var B=A.slice(0,-1).join("");I=Array.isArray(E)&&E[B]?E[B].length:0}for(var U=R?E:parseArrayValue(E,C,I),V=A.length-1;V>=0;--V){var X,K=A[V];if(K==="[]"&&C.parseArrays)X=C.allowEmptyArrays&&(U===""||C.strictNullHandling&&U===null)?[]:utils.combine([],U);else{X=C.plainObjects?{__proto__:null}:{};var J=K.charAt(0)==="["&&K.charAt(K.length-1)==="]"?K.slice(1,-1):K,Y=C.decodeDotInKeys?J.replace(/%2E/g,"."):J,Z=parseInt(Y,10);!C.parseArrays&&Y===""?X={0:U}:!isNaN(Z)&&K!==Y&&String(Z)===Y&&Z>=0&&C.parseArrays&&Z<=C.arrayLimit?(X=[],X[Z]=U):Y!=="__proto__"&&(X[Y]=U)}U=X}return U},parseKeys=function(E,C,R,I){if(E){var B=R.allowDots?E.replace(/\.([^.[]+)/g,"[$1]"):E,U=/(\[[^[\]]*])/,V=/(\[[^[\]]*])/g,X=R.depth>0&&U.exec(B),K=X?B.slice(0,X.index):B,J=[];if(K){if(!R.plainObjects&&has.call(Object.prototype,K)&&!R.allowPrototypes)return;J.push(K)}for(var Y=0;R.depth>0&&(X=V.exec(B))!==null&&Y<R.depth;){if(Y+=1,!R.plainObjects&&has.call(Object.prototype,X[1].slice(1,-1))&&!R.allowPrototypes)return;J.push(X[1])}if(X){if(R.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+R.depth+" and strictDepth is true");J.push("["+B.slice(X.index)+"]")}return parseObject(J,C,R,I)}},normalizeParseOptions=function(E){if(!E)return defaults;if(typeof E.allowEmptyArrays<"u"&&typeof E.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof E.decodeDotInKeys<"u"&&typeof E.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(E.decoder!==null&&typeof E.decoder<"u"&&typeof E.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof E.throwOnLimitExceeded<"u"&&typeof E.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var C=typeof E.charset>"u"?defaults.charset:E.charset,R=typeof E.duplicates>"u"?defaults.duplicates:E.duplicates;if(R!=="combine"&&R!=="first"&&R!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var I=typeof E.allowDots>"u"?E.decodeDotInKeys===!0?!0:defaults.allowDots:!!E.allowDots;return{allowDots:I,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:typeof E.allowPrototypes=="boolean"?E.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof E.allowSparse=="boolean"?E.allowSparse:defaults.allowSparse,arrayLimit:typeof E.arrayLimit=="number"?E.arrayLimit:defaults.arrayLimit,charset:C,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:defaults.charsetSentinel,comma:typeof E.comma=="boolean"?E.comma:defaults.comma,decodeDotInKeys:typeof E.decodeDotInKeys=="boolean"?E.decodeDotInKeys:defaults.decodeDotInKeys,decoder:typeof E.decoder=="function"?E.decoder:defaults.decoder,delimiter:typeof E.delimiter=="string"||utils.isRegExp(E.delimiter)?E.delimiter:defaults.delimiter,depth:typeof E.depth=="number"||E.depth===!1?+E.depth:defaults.depth,duplicates:R,ignoreQueryPrefix:E.ignoreQueryPrefix===!0,interpretNumericEntities:typeof E.interpretNumericEntities=="boolean"?E.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof E.parameterLimit=="number"?E.parameterLimit:defaults.parameterLimit,parseArrays:E.parseArrays!==!1,plainObjects:typeof E.plainObjects=="boolean"?E.plainObjects:defaults.plainObjects,strictDepth:typeof E.strictDepth=="boolean"?!!E.strictDepth:defaults.strictDepth,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:defaults.strictNullHandling,throwOnLimitExceeded:typeof E.throwOnLimitExceeded=="boolean"?E.throwOnLimitExceeded:!1}},parse$2=function(A,E){var C=normalizeParseOptions(E);if(A===""||A===null||typeof A>"u")return C.plainObjects?{__proto__:null}:{};for(var R=typeof A=="string"?parseValues(A,C):A,I=C.plainObjects?{__proto__:null}:{},B=Object.keys(R),U=0;U<B.length;++U){var V=B[U],X=parseKeys(V,R[V],C,typeof A=="string");I=utils.merge(I,X,C)}return C.allowSparse===!0?I:utils.compact(I)},stringify=stringify_1,parse$1=parse$2,formats=formats$3,lib$2={formats,parse:parse$1,stringify},punycode=punycodeExports;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
37
- `," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=lib$2;function urlParse(A,E,C){if(A&&typeof A=="object"&&A instanceof Url)return A;var R=new Url;return R.parse(A,E,C),R}Url.prototype.parse=function(A,E,C){if(typeof A!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var R=A.indexOf("?"),I=R!==-1&&R<A.indexOf("#")?"?":"#",B=A.split(I),U=/\\/g;B[0]=B[0].replace(U,"/"),A=B.join(I);var V=A;if(V=V.trim(),!C&&A.split("#").length===1){var X=simplePathPattern.exec(V);if(X)return this.path=V,this.href=V,this.pathname=X[1],X[2]?(this.search=X[2],E?this.query=querystring.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var K=protocolPattern.exec(V);if(K){K=K[0];var J=K.toLowerCase();this.protocol=J,V=V.substr(K.length)}if(C||K||V.match(/^\/\/[^@/]+@[^@/]+/)){var Y=V.substr(0,2)==="//";Y&&!(K&&hostlessProtocol[K])&&(V=V.substr(2),this.slashes=!0)}if(!hostlessProtocol[K]&&(Y||K&&!slashedProtocol[K])){for(var Z=-1,_e=0;_e<hostEndingChars.length;_e++){var xe=V.indexOf(hostEndingChars[_e]);xe!==-1&&(Z===-1||xe<Z)&&(Z=xe)}var Se,Pe;Z===-1?Pe=V.lastIndexOf("@"):Pe=V.lastIndexOf("@",Z),Pe!==-1&&(Se=V.slice(0,Pe),V=V.slice(Pe+1),this.auth=decodeURIComponent(Se)),Z=-1;for(var _e=0;_e<nonHostChars.length;_e++){var xe=V.indexOf(nonHostChars[_e]);xe!==-1&&(Z===-1||xe<Z)&&(Z=xe)}Z===-1&&(Z=V.length),this.host=V.slice(0,Z),V=V.slice(Z),this.parseHost(),this.hostname=this.hostname||"";var Ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ee)for(var Ae=this.hostname.split(/\./),_e=0,Te=Ae.length;_e<Te;_e++){var we=Ae[_e];if(we&&!we.match(hostnamePartPattern)){for(var Ie="",Fe=0,ke=we.length;Fe<ke;Fe++)we.charCodeAt(Fe)>127?Ie+="x":Ie+=we[Fe];if(!Ie.match(hostnamePartPattern)){var Le=Ae.slice(0,_e),Ge=Ae.slice(_e+1),He=we.match(hostnamePartStart);He&&(Le.push(He[1]),Ge.unshift(He[2])),Ge.length&&(V="/"+Ge.join(".")+V),this.hostname=Le.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ee||(this.hostname=punycode.toASCII(this.hostname));var Be=this.port?":"+this.port:"",je=this.hostname||"";this.host=je+Be,this.href+=this.host,Ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),V[0]!=="/"&&(V="/"+V))}if(!unsafeProtocol[J])for(var _e=0,Te=autoEscape.length;_e<Te;_e++){var Ue=autoEscape[_e];if(V.indexOf(Ue)!==-1){var ze=encodeURIComponent(Ue);ze===Ue&&(ze=escape(Ue)),V=V.split(Ue).join(ze)}}var Ve=V.indexOf("#");Ve!==-1&&(this.hash=V.substr(Ve),V=V.slice(0,Ve));var Oe=V.indexOf("?");if(Oe!==-1?(this.search=V.substr(Oe),this.query=V.substr(Oe+1),E&&(this.query=querystring.parse(this.query)),V=V.slice(0,Oe)):E&&(this.search="",this.query={}),V&&(this.pathname=V),slashedProtocol[J]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Be=this.pathname||"",$e=this.search||"";this.path=Be+$e}return this.href=this.format(),this},Url.prototype.format=function(){var A=this.auth||"";A&&(A=encodeURIComponent(A),A=A.replace(/%3A/i,":"),A+="@");var E=this.protocol||"",C=this.pathname||"",R=this.hash||"",I=!1,B="";this.host?I=A+this.host:this.hostname&&(I=A+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(B=querystring.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var U=this.search||B&&"?"+B||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||slashedProtocol[E])&&I!==!1?(I="//"+(I||""),C&&C.charAt(0)!=="/"&&(C="/"+C)):I||(I=""),R&&R.charAt(0)!=="#"&&(R="#"+R),U&&U.charAt(0)!=="?"&&(U="?"+U),C=C.replace(/[?#]/g,function(V){return encodeURIComponent(V)}),U=U.replace("#","%23"),E+I+C+U+R},Url.prototype.resolve=function(A){return this.resolveObject(urlParse(A,!1,!0)).format()},Url.prototype.resolveObject=function(A){if(typeof A=="string"){var E=new Url;E.parse(A,!1,!0),A=E}for(var C=new Url,R=Object.keys(this),I=0;I<R.length;I++){var B=R[I];C[B]=this[B]}if(C.hash=A.hash,A.href==="")return C.href=C.format(),C;if(A.slashes&&!A.protocol){for(var U=Object.keys(A),V=0;V<U.length;V++){var X=U[V];X!=="protocol"&&(C[X]=A[X])}return slashedProtocol[C.protocol]&&C.hostname&&!C.pathname&&(C.pathname="/",C.path=C.pathname),C.href=C.format(),C}if(A.protocol&&A.protocol!==C.protocol){if(!slashedProtocol[A.protocol]){for(var K=Object.keys(A),J=0;J<K.length;J++){var Y=K[J];C[Y]=A[Y]}return C.href=C.format(),C}if(C.protocol=A.protocol,!A.host&&!hostlessProtocol[A.protocol]){for(var Te=(A.pathname||"").split("/");Te.length&&!(A.host=Te.shift()););A.host||(A.host=""),A.hostname||(A.hostname=""),Te[0]!==""&&Te.unshift(""),Te.length<2&&Te.unshift(""),C.pathname=Te.join("/")}else C.pathname=A.pathname;if(C.search=A.search,C.query=A.query,C.host=A.host||"",C.auth=A.auth,C.hostname=A.hostname||A.host,C.port=A.port,C.pathname||C.search){var Z=C.pathname||"",_e=C.search||"";C.path=Z+_e}return C.slashes=C.slashes||A.slashes,C.href=C.format(),C}var xe=C.pathname&&C.pathname.charAt(0)==="/",Se=A.host||A.pathname&&A.pathname.charAt(0)==="/",Pe=Se||xe||C.host&&A.pathname,Ee=Pe,Ae=C.pathname&&C.pathname.split("/")||[],Te=A.pathname&&A.pathname.split("/")||[],we=C.protocol&&!slashedProtocol[C.protocol];if(we&&(C.hostname="",C.port=null,C.host&&(Ae[0]===""?Ae[0]=C.host:Ae.unshift(C.host)),C.host="",A.protocol&&(A.hostname=null,A.port=null,A.host&&(Te[0]===""?Te[0]=A.host:Te.unshift(A.host)),A.host=null),Pe=Pe&&(Te[0]===""||Ae[0]==="")),Se)C.host=A.host||A.host===""?A.host:C.host,C.hostname=A.hostname||A.hostname===""?A.hostname:C.hostname,C.search=A.search,C.query=A.query,Ae=Te;else if(Te.length)Ae||(Ae=[]),Ae.pop(),Ae=Ae.concat(Te),C.search=A.search,C.query=A.query;else if(A.search!=null){if(we){C.host=Ae.shift(),C.hostname=C.host;var Ie=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;Ie&&(C.auth=Ie.shift(),C.hostname=Ie.shift(),C.host=C.hostname)}return C.search=A.search,C.query=A.query,(C.pathname!==null||C.search!==null)&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!Ae.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var Fe=Ae.slice(-1)[0],ke=(C.host||A.host||Ae.length>1)&&(Fe==="."||Fe==="..")||Fe==="",Le=0,Ge=Ae.length;Ge>=0;Ge--)Fe=Ae[Ge],Fe==="."?Ae.splice(Ge,1):Fe===".."?(Ae.splice(Ge,1),Le++):Le&&(Ae.splice(Ge,1),Le--);if(!Pe&&!Ee)for(;Le--;Le)Ae.unshift("..");Pe&&Ae[0]!==""&&(!Ae[0]||Ae[0].charAt(0)!=="/")&&Ae.unshift(""),ke&&Ae.join("/").substr(-1)!=="/"&&Ae.push("");var He=Ae[0]===""||Ae[0]&&Ae[0].charAt(0)==="/";if(we){C.hostname=He?"":Ae.length?Ae.shift():"",C.host=C.hostname;var Ie=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;Ie&&(C.auth=Ie.shift(),C.hostname=Ie.shift(),C.host=C.hostname)}return Pe=Pe||C.host&&Ae.length,Pe&&!He&&Ae.unshift(""),Ae.length>0?C.pathname=Ae.join("/"):(C.pathname=null,C.path=null),(C.pathname!==null||C.search!==null)&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=A.auth||C.auth,C.slashes=C.slashes||A.slashes,C.href=C.format(),C},Url.prototype.parseHost=function(){var A=this.host,E=portPattern.exec(A);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),A=A.substr(0,A.length-E.length)),A&&(this.hostname=A)};const warnings={};function deprecation(A,E,C=3){if(warnings[E])return;let R=new Error().stack;typeof R>"u"?console.warn("PixiJS Deprecation Warning: ",`${E}
36
+ `+E.prev}function arrObjKeys(A,E){var C=isArray$c(A),R=[];if(C){R.length=A.length;for(var I=0;I<A.length;I++)R[I]=has$3(A,I)?E(A[I],A):""}var B=typeof gOPS=="function"?gOPS(A):[],U;if(hasShammedSymbols){U={};for(var V=0;V<B.length;V++)U["$"+B[V]]=B[V]}for(var X in A)has$3(A,X)&&(C&&String(Number(X))===X&&X<A.length||hasShammedSymbols&&U["$"+X]instanceof Symbol||($test.call(/[^\w$]/,X)?R.push(E(X,A)+": "+E(A[X],A)):R.push(X+": "+E(A[X],A))));if(typeof gOPS=="function")for(var K=0;K<B.length;K++)isEnumerable.call(A,B[K])&&R.push("["+E(B[K])+"]: "+E(A[B[K]],A));return R}var inspect$3=objectInspect,$TypeError$5=type,listGetNode=function(A,E,C){for(var R=A,I;(I=R.next)!=null;R=I)if(I.key===E)return R.next=I.next,C||(I.next=A.next,A.next=I),I},listGet=function(A,E){if(A){var C=listGetNode(A,E);return C&&C.value}},listSet=function(A,E,C){var R=listGetNode(A,E);R?R.value=C:A.next={key:E,next:A.next,value:C}},listHas=function(A,E){return A?!!listGetNode(A,E):!1},listDelete=function(A,E){if(A)return listGetNode(A,E,!0)},sideChannelList=function(){var E,C={assert:function(R){if(!C.has(R))throw new $TypeError$5("Side channel does not contain "+inspect$3(R))},delete:function(R){var I=E&&E.next,B=listDelete(E,R);return B&&I&&I===B&&(E=void 0),!!B},get:function(R){return listGet(E,R)},has:function(R){return listHas(E,R)},set:function(R,I){E||(E={next:void 0}),listSet(E,R,I)}};return C},esObjectAtoms=Object,esErrors=Error,_eval=EvalError,range=RangeError,ref=ReferenceError,syntax=SyntaxError,uri=URIError,abs$1=Math.abs,floor$1=Math.floor,max$1=Math.max,min$1=Math.min,pow$1=Math.pow,round$2=Math.round,_isNaN=Number.isNaN||function(E){return E!==E},$isNaN=_isNaN,sign$1=function(E){return $isNaN(E)||E===0?E:E<0?-1:1},gOPD=Object.getOwnPropertyDescriptor,$gOPD$1=gOPD;if($gOPD$1)try{$gOPD$1([],"length")}catch{$gOPD$1=null}var gopd=$gOPD$1,$defineProperty$1=Object.defineProperty||!1;if($defineProperty$1)try{$defineProperty$1({},"a",{value:1})}catch{$defineProperty$1=!1}var esDefineProperty=$defineProperty$1,shams,hasRequiredShams;function requireShams(){return hasRequiredShams||(hasRequiredShams=1,shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var E={},C=Symbol("test"),R=Object(C);if(typeof C=="string"||Object.prototype.toString.call(C)!=="[object Symbol]"||Object.prototype.toString.call(R)!=="[object Symbol]")return!1;var I=42;E[C]=I;for(var B in E)return!1;if(typeof Object.keys=="function"&&Object.keys(E).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(E).length!==0)return!1;var U=Object.getOwnPropertySymbols(E);if(U.length!==1||U[0]!==C||!Object.prototype.propertyIsEnumerable.call(E,C))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var V=Object.getOwnPropertyDescriptor(E,C);if(V.value!==I||V.enumerable!==!0)return!1}return!0}),shams}var hasSymbols$1,hasRequiredHasSymbols;function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols$1;hasRequiredHasSymbols=1;var A=typeof Symbol<"u"&&Symbol,E=requireShams();return hasSymbols$1=function(){return typeof A!="function"||typeof Symbol!="function"||typeof A("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:E()},hasSymbols$1}var Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf;function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf||(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Reflect_getPrototypeOf}var Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireObject_getPrototypeOf(){if(hasRequiredObject_getPrototypeOf)return Object_getPrototypeOf;hasRequiredObject_getPrototypeOf=1;var A=esObjectAtoms;return Object_getPrototypeOf=A.getPrototypeOf||null,Object_getPrototypeOf}var implementation,hasRequiredImplementation;function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var A="Function.prototype.bind called on incompatible ",E=Object.prototype.toString,C=Math.max,R="[object Function]",I=function(X,K){for(var J=[],Y=0;Y<X.length;Y+=1)J[Y]=X[Y];for(var Z=0;Z<K.length;Z+=1)J[Z+X.length]=K[Z];return J},B=function(X,K){for(var J=[],Y=K||0,Z=0;Y<X.length;Y+=1,Z+=1)J[Z]=X[Y];return J},U=function(V,X){for(var K="",J=0;J<V.length;J+=1)K+=V[J],J+1<V.length&&(K+=X);return K};return implementation=function(X){var K=this;if(typeof K!="function"||E.apply(K)!==R)throw new TypeError(A+K);for(var J=B(arguments,1),Y,Z=function(){if(this instanceof Y){var Ee=K.apply(this,I(J,arguments));return Object(Ee)===Ee?Ee:this}return K.apply(X,I(J,arguments))},_e=C(0,K.length-J.length),xe=[],Se=0;Se<_e;Se++)xe[Se]="$"+Se;if(Y=Function("binder","return function ("+U(xe,",")+"){ return binder.apply(this,arguments); }")(Z),K.prototype){var Pe=function(){};Pe.prototype=K.prototype,Y.prototype=new Pe,Pe.prototype=null}return Y},implementation}var functionBind,hasRequiredFunctionBind;function requireFunctionBind(){if(hasRequiredFunctionBind)return functionBind;hasRequiredFunctionBind=1;var A=requireImplementation();return functionBind=Function.prototype.bind||A,functionBind}var functionCall,hasRequiredFunctionCall;function requireFunctionCall(){return hasRequiredFunctionCall||(hasRequiredFunctionCall=1,functionCall=Function.prototype.call),functionCall}var functionApply,hasRequiredFunctionApply;function requireFunctionApply(){return hasRequiredFunctionApply||(hasRequiredFunctionApply=1,functionApply=Function.prototype.apply),functionApply}var reflectApply=typeof Reflect<"u"&&Reflect&&Reflect.apply,bind$2=requireFunctionBind(),$apply$1=requireFunctionApply(),$call$2=requireFunctionCall(),$reflectApply=reflectApply,actualApply=$reflectApply||bind$2.call($call$2,$apply$1),bind$1=requireFunctionBind(),$TypeError$4=type,$call$1=requireFunctionCall(),$actualApply=actualApply,callBindApplyHelpers=function(E){if(E.length<1||typeof E[0]!="function")throw new $TypeError$4("a function is required");return $actualApply(bind$1,$call$1,E)},get$2,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get$2;hasRequiredGet=1;var A=callBindApplyHelpers,E=gopd,C;try{C=[].__proto__===Array.prototype}catch(U){if(!U||typeof U!="object"||!("code"in U)||U.code!=="ERR_PROTO_ACCESS")throw U}var R=!!C&&E&&E(Object.prototype,"__proto__"),I=Object,B=I.getPrototypeOf;return get$2=R&&typeof R.get=="function"?A([R.get]):typeof B=="function"?function(V){return B(V==null?V:I(V))}:!1,get$2}var getProto$1,hasRequiredGetProto;function requireGetProto(){if(hasRequiredGetProto)return getProto$1;hasRequiredGetProto=1;var A=requireReflect_getPrototypeOf(),E=requireObject_getPrototypeOf(),C=requireGet();return getProto$1=A?function(I){return A(I)}:E?function(I){if(!I||typeof I!="object"&&typeof I!="function")throw new TypeError("getProto: not an object");return E(I)}:C?function(I){return C(I)}:null,getProto$1}var hasown,hasRequiredHasown;function requireHasown(){if(hasRequiredHasown)return hasown;hasRequiredHasown=1;var A=Function.prototype.call,E=Object.prototype.hasOwnProperty,C=requireFunctionBind();return hasown=C.call(A,E),hasown}var undefined$1,$Object=esObjectAtoms,$Error=esErrors,$EvalError=_eval,$RangeError=range,$ReferenceError=ref,$SyntaxError=syntax,$TypeError$3=type,$URIError=uri,abs=abs$1,floor=floor$1,max=max$1,min=min$1,pow=pow$1,round$1=round$2,sign=sign$1,$Function=Function,getEvalledConstructor=function(A){try{return $Function('"use strict"; return ('+A+").constructor;")()}catch{}},$gOPD=gopd,$defineProperty=esDefineProperty,throwTypeError=function(){throw new $TypeError$3},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=requireHasSymbols()(),getProto=requireGetProto(),$ObjectGPO=requireObject_getPrototypeOf(),$ReflectGPO=requireReflect_getPrototypeOf(),$apply=requireFunctionApply(),$call=requireFunctionCall(),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":typeof Float16Array>"u"?undefined$1:Float16Array,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$3,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply,"%Object.defineProperty%":$defineProperty,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round$1,"%Math.sign%":sign,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto)try{null.error}catch(A){var errorProto=getProto(getProto(A));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function A(E){var C;if(E==="%AsyncFunction%")C=getEvalledConstructor("async function () {}");else if(E==="%GeneratorFunction%")C=getEvalledConstructor("function* () {}");else if(E==="%AsyncGeneratorFunction%")C=getEvalledConstructor("async function* () {}");else if(E==="%AsyncGenerator%"){var R=A("%AsyncGeneratorFunction%");R&&(C=R.prototype)}else if(E==="%AsyncIteratorPrototype%"){var I=A("%AsyncGenerator%");I&&getProto&&(C=getProto(I.prototype))}return INTRINSICS[E]=C,C},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=requireFunctionBind(),hasOwn=requireHasown(),$concat=bind.call($call,Array.prototype.concat),$spliceApply=bind.call($apply,Array.prototype.splice),$replace=bind.call($call,String.prototype.replace),$strSlice=bind.call($call,String.prototype.slice),$exec=bind.call($call,RegExp.prototype.exec),rePropName$1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=function(E){var C=$strSlice(E,0,1),R=$strSlice(E,-1);if(C==="%"&&R!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(R==="%"&&C!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var I=[];return $replace(E,rePropName$1,function(B,U,V,X){I[I.length]=V?$replace(X,reEscapeChar$1,"$1"):U||B}),I},getBaseIntrinsic=function(E,C){var R=E,I;if(hasOwn(LEGACY_ALIASES,R)&&(I=LEGACY_ALIASES[R],R="%"+I[0]+"%"),hasOwn(INTRINSICS,R)){var B=INTRINSICS[R];if(B===needsEval&&(B=doEval(R)),typeof B>"u"&&!C)throw new $TypeError$3("intrinsic "+E+" exists, but is not available. Please file an issue!");return{alias:I,name:R,value:B}}throw new $SyntaxError("intrinsic "+E+" does not exist!")},getIntrinsic=function(E,C){if(typeof E!="string"||E.length===0)throw new $TypeError$3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof C!="boolean")throw new $TypeError$3('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,E)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var R=stringToPath$2(E),I=R.length>0?R[0]:"",B=getBaseIntrinsic("%"+I+"%",C),U=B.name,V=B.value,X=!1,K=B.alias;K&&(I=K[0],$spliceApply(R,$concat([0,1],K)));for(var J=1,Y=!0;J<R.length;J+=1){var Z=R[J],_e=$strSlice(Z,0,1),xe=$strSlice(Z,-1);if((_e==='"'||_e==="'"||_e==="`"||xe==='"'||xe==="'"||xe==="`")&&_e!==xe)throw new $SyntaxError("property names with quotes must have matching quotes");if((Z==="constructor"||!Y)&&(X=!0),I+="."+Z,U="%"+I+"%",hasOwn(INTRINSICS,U))V=INTRINSICS[U];else if(V!=null){if(!(Z in V)){if(!C)throw new $TypeError$3("base intrinsic for "+E+" exists, but the property is not available.");return}if($gOPD&&J+1>=R.length){var Se=$gOPD(V,Z);Y=!!Se,Y&&"get"in Se&&!("originalValue"in Se.get)?V=Se.get:V=V[Z]}else Y=hasOwn(V,Z),V=V[Z];Y&&!X&&(INTRINSICS[U]=V)}}return V},GetIntrinsic$2=getIntrinsic,callBindBasic=callBindApplyHelpers,$indexOf=callBindBasic([GetIntrinsic$2("%String.prototype.indexOf%")]),callBound$2=function(E,C){var R=GetIntrinsic$2(E,!!C);return typeof R=="function"&&$indexOf(E,".prototype.")>-1?callBindBasic([R]):R},GetIntrinsic$1=getIntrinsic,callBound$1=callBound$2,inspect$2=objectInspect,$TypeError$2=type,$Map=GetIntrinsic$1("%Map%",!0),$mapGet=callBound$1("Map.prototype.get",!0),$mapSet=callBound$1("Map.prototype.set",!0),$mapHas=callBound$1("Map.prototype.has",!0),$mapDelete=callBound$1("Map.prototype.delete",!0),$mapSize=callBound$1("Map.prototype.size",!0),sideChannelMap=!!$Map&&function(){var E,C={assert:function(R){if(!C.has(R))throw new $TypeError$2("Side channel does not contain "+inspect$2(R))},delete:function(R){if(E){var I=$mapDelete(E,R);return $mapSize(E)===0&&(E=void 0),I}return!1},get:function(R){if(E)return $mapGet(E,R)},has:function(R){return E?$mapHas(E,R):!1},set:function(R,I){E||(E=new $Map),$mapSet(E,R,I)}};return C},GetIntrinsic=getIntrinsic,callBound=callBound$2,inspect$1=objectInspect,getSideChannelMap$1=sideChannelMap,$TypeError$1=type,$WeakMap=GetIntrinsic("%WeakMap%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$weakMapDelete=callBound("WeakMap.prototype.delete",!0),sideChannelWeakmap=$WeakMap?function(){var E,C,R={assert:function(I){if(!R.has(I))throw new $TypeError$1("Side channel does not contain "+inspect$1(I))},delete:function(I){if($WeakMap&&I&&(typeof I=="object"||typeof I=="function")){if(E)return $weakMapDelete(E,I)}else if(getSideChannelMap$1&&C)return C.delete(I);return!1},get:function(I){return $WeakMap&&I&&(typeof I=="object"||typeof I=="function")&&E?$weakMapGet(E,I):C&&C.get(I)},has:function(I){return $WeakMap&&I&&(typeof I=="object"||typeof I=="function")&&E?$weakMapHas(E,I):!!C&&C.has(I)},set:function(I,B){$WeakMap&&I&&(typeof I=="object"||typeof I=="function")?(E||(E=new $WeakMap),$weakMapSet(E,I,B)):getSideChannelMap$1&&(C||(C=getSideChannelMap$1()),C.set(I,B))}};return R}:getSideChannelMap$1,$TypeError=type,inspect=objectInspect,getSideChannelList=sideChannelList,getSideChannelMap=sideChannelMap,getSideChannelWeakMap=sideChannelWeakmap,makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList,sideChannel=function(){var E,C={assert:function(R){if(!C.has(R))throw new $TypeError("Side channel does not contain "+inspect(R))},delete:function(R){return!!E&&E.delete(R)},get:function(R){return E&&E.get(R)},has:function(R){return!!E&&E.has(R)},set:function(R,I){E||(E=makeChannel()),E.set(R,I)}};return C},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(A){return replace.call(A,percentTwenties,"+")},RFC3986:function(A){return String(A)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$b=Array.isArray,hexTable=function(){for(var A=[],E=0;E<256;++E)A.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return A}(),compactQueue=function(E){for(;E.length>1;){var C=E.pop(),R=C.obj[C.prop];if(isArray$b(R)){for(var I=[],B=0;B<R.length;++B)typeof R[B]<"u"&&I.push(R[B]);C.obj[C.prop]=I}}},arrayToObject=function(E,C){for(var R=C&&C.plainObjects?{__proto__:null}:{},I=0;I<E.length;++I)typeof E[I]<"u"&&(R[I]=E[I]);return R},merge=function A(E,C,R){if(!C)return E;if(typeof C!="object"&&typeof C!="function"){if(isArray$b(E))E.push(C);else if(E&&typeof E=="object")(R&&(R.plainObjects||R.allowPrototypes)||!has$2.call(Object.prototype,C))&&(E[C]=!0);else return[E,C];return E}if(!E||typeof E!="object")return[E].concat(C);var I=E;return isArray$b(E)&&!isArray$b(C)&&(I=arrayToObject(E,R)),isArray$b(E)&&isArray$b(C)?(C.forEach(function(B,U){if(has$2.call(E,U)){var V=E[U];V&&typeof V=="object"&&B&&typeof B=="object"?E[U]=A(V,B,R):E.push(B)}else E[U]=B}),E):Object.keys(C).reduce(function(B,U){var V=C[U];return has$2.call(B,U)?B[U]=A(B[U],V,R):B[U]=V,B},I)},assign=function(E,C){return Object.keys(C).reduce(function(R,I){return R[I]=C[I],R},E)},decode=function(A,E,C){var R=A.replace(/\+/g," ");if(C==="iso-8859-1")return R.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(R)}catch{return R}},limit=1024,encode=function(E,C,R,I,B){if(E.length===0)return E;var U=E;if(typeof E=="symbol"?U=Symbol.prototype.toString.call(E):typeof E!="string"&&(U=String(E)),R==="iso-8859-1")return escape(U).replace(/%u[0-9a-f]{4}/gi,function(_e){return"%26%23"+parseInt(_e.slice(2),16)+"%3B"});for(var V="",X=0;X<U.length;X+=limit){for(var K=U.length>=limit?U.slice(X,X+limit):U,J=[],Y=0;Y<K.length;++Y){var Z=K.charCodeAt(Y);if(Z===45||Z===46||Z===95||Z===126||Z>=48&&Z<=57||Z>=65&&Z<=90||Z>=97&&Z<=122||B===formats$2.RFC1738&&(Z===40||Z===41)){J[J.length]=K.charAt(Y);continue}if(Z<128){J[J.length]=hexTable[Z];continue}if(Z<2048){J[J.length]=hexTable[192|Z>>6]+hexTable[128|Z&63];continue}if(Z<55296||Z>=57344){J[J.length]=hexTable[224|Z>>12]+hexTable[128|Z>>6&63]+hexTable[128|Z&63];continue}Y+=1,Z=65536+((Z&1023)<<10|K.charCodeAt(Y)&1023),J[J.length]=hexTable[240|Z>>18]+hexTable[128|Z>>12&63]+hexTable[128|Z>>6&63]+hexTable[128|Z&63]}V+=J.join("")}return V},compact=function(E){for(var C=[{obj:{o:E},prop:"o"}],R=[],I=0;I<C.length;++I)for(var B=C[I],U=B.obj[B.prop],V=Object.keys(U),X=0;X<V.length;++X){var K=V[X],J=U[K];typeof J=="object"&&J!==null&&R.indexOf(J)===-1&&(C.push({obj:U,prop:K}),R.push(J))}return compactQueue(C),E},isRegExp=function(E){return Object.prototype.toString.call(E)==="[object RegExp]"},isBuffer$2=function(E){return!E||typeof E!="object"?!1:!!(E.constructor&&E.constructor.isBuffer&&E.constructor.isBuffer(E))},combine$1=function(E,C){return[].concat(E,C)},maybeMap=function(E,C){if(isArray$b(E)){for(var R=[],I=0;I<E.length;I+=1)R.push(C(E[I]));return R}return C(E)},utils$2={arrayToObject,assign,combine:combine$1,compact,decode,encode,isBuffer:isBuffer$2,isRegExp,maybeMap,merge},getSideChannel=sideChannel,utils$1=utils$2,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(E){return E+"[]"},comma:"comma",indices:function(E,C){return E+"["+C+"]"},repeat:function(E){return E}},isArray$a=Array.isArray,push=Array.prototype.push,pushToArray=function(A,E){push.apply(A,isArray$a(E)?E:[E])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$1={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils$1.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(E){return toISO.call(E)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(E){return typeof E=="string"||typeof E=="number"||typeof E=="boolean"||typeof E=="symbol"||typeof E=="bigint"},sentinel={},stringify$1=function A(E,C,R,I,B,U,V,X,K,J,Y,Z,_e,xe,Se,Pe,Ee,Ae){for(var Te=E,we=Ae,Ie=0,Fe=!1;(we=we.get(sentinel))!==void 0&&!Fe;){var ke=we.get(E);if(Ie+=1,typeof ke<"u"){if(ke===Ie)throw new RangeError("Cyclic object value");Fe=!0}typeof we.get(sentinel)>"u"&&(Ie=0)}if(typeof J=="function"?Te=J(C,Te):Te instanceof Date?Te=_e(Te):R==="comma"&&isArray$a(Te)&&(Te=utils$1.maybeMap(Te,function(Ne){return Ne instanceof Date?_e(Ne):Ne})),Te===null){if(U)return K&&!Pe?K(C,defaults$1.encoder,Ee,"key",xe):C;Te=""}if(isNonNullishPrimitive(Te)||utils$1.isBuffer(Te)){if(K){var Le=Pe?C:K(C,defaults$1.encoder,Ee,"key",xe);return[Se(Le)+"="+Se(K(Te,defaults$1.encoder,Ee,"value",xe))]}return[Se(C)+"="+Se(String(Te))]}var Ge=[];if(typeof Te>"u")return Ge;var Ue;if(R==="comma"&&isArray$a(Te))Pe&&K&&(Te=utils$1.maybeMap(Te,K)),Ue=[{value:Te.length>0?Te.join(",")||null:void 0}];else if(isArray$a(J))Ue=J;else{var Be=Object.keys(Te);Ue=Y?Be.sort(Y):Be}var je=X?String(C).replace(/\./g,"%2E"):String(C),Ve=I&&isArray$a(Te)&&Te.length===1?je+"[]":je;if(B&&isArray$a(Te)&&Te.length===0)return Ve+"[]";for(var ze=0;ze<Ue.length;++ze){var He=Ue[ze],Oe=typeof He=="object"&&He&&typeof He.value<"u"?He.value:Te[He];if(!(V&&Oe===null)){var $e=Z&&X?String(He).replace(/\./g,"%2E"):String(He),Re=isArray$a(Te)?typeof R=="function"?R(Ve,$e):Ve:Ve+(Z?"."+$e:"["+$e+"]");Ae.set(E,Ie);var Me=getSideChannel();Me.set(sentinel,Ae),pushToArray(Ge,A(Oe,Re,R,I,B,U,V,X,R==="comma"&&Pe&&isArray$a(Te)?null:K,J,Y,Z,_e,xe,Se,Pe,Ee,Me))}}return Ge},normalizeStringifyOptions=function(E){if(!E)return defaults$1;if(typeof E.allowEmptyArrays<"u"&&typeof E.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof E.encodeDotInKeys<"u"&&typeof E.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(E.encoder!==null&&typeof E.encoder<"u"&&typeof E.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=E.charset||defaults$1.charset;if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var R=formats$1.default;if(typeof E.format<"u"){if(!has$1.call(formats$1.formatters,E.format))throw new TypeError("Unknown format option provided.");R=E.format}var I=formats$1.formatters[R],B=defaults$1.filter;(typeof E.filter=="function"||isArray$a(E.filter))&&(B=E.filter);var U;if(E.arrayFormat in arrayPrefixGenerators?U=E.arrayFormat:"indices"in E?U=E.indices?"indices":"repeat":U=defaults$1.arrayFormat,"commaRoundTrip"in E&&typeof E.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var V=typeof E.allowDots>"u"?E.encodeDotInKeys===!0?!0:defaults$1.allowDots:!!E.allowDots;return{addQueryPrefix:typeof E.addQueryPrefix=="boolean"?E.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:V,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:defaults$1.allowEmptyArrays,arrayFormat:U,charset:C,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:defaults$1.charsetSentinel,commaRoundTrip:!!E.commaRoundTrip,delimiter:typeof E.delimiter>"u"?defaults$1.delimiter:E.delimiter,encode:typeof E.encode=="boolean"?E.encode:defaults$1.encode,encodeDotInKeys:typeof E.encodeDotInKeys=="boolean"?E.encodeDotInKeys:defaults$1.encodeDotInKeys,encoder:typeof E.encoder=="function"?E.encoder:defaults$1.encoder,encodeValuesOnly:typeof E.encodeValuesOnly=="boolean"?E.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:B,format:R,formatter:I,serializeDate:typeof E.serializeDate=="function"?E.serializeDate:defaults$1.serializeDate,skipNulls:typeof E.skipNulls=="boolean"?E.skipNulls:defaults$1.skipNulls,sort:typeof E.sort=="function"?E.sort:null,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(A,E){var C=A,R=normalizeStringifyOptions(E),I,B;typeof R.filter=="function"?(B=R.filter,C=B("",C)):isArray$a(R.filter)&&(B=R.filter,I=B);var U=[];if(typeof C!="object"||C===null)return"";var V=arrayPrefixGenerators[R.arrayFormat],X=V==="comma"&&R.commaRoundTrip;I||(I=Object.keys(C)),R.sort&&I.sort(R.sort);for(var K=getSideChannel(),J=0;J<I.length;++J){var Y=I[J],Z=C[Y];R.skipNulls&&Z===null||pushToArray(U,stringify$1(Z,Y,V,X,R.allowEmptyArrays,R.strictNullHandling,R.skipNulls,R.encodeDotInKeys,R.encode?R.encoder:null,R.filter,R.sort,R.allowDots,R.serializeDate,R.format,R.formatter,R.encodeValuesOnly,R.charset,K))}var _e=U.join(R.delimiter),xe=R.addQueryPrefix===!0?"?":"";return R.charsetSentinel&&(R.charset==="iso-8859-1"?xe+="utf8=%26%2310003%3B&":xe+="utf8=%E2%9C%93&"),_e.length>0?xe+_e:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray$9=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(A){return A.replace(/&#(\d+);/g,function(E,C){return String.fromCharCode(parseInt(C,10))})},parseArrayValue=function(A,E,C){if(A&&typeof A=="string"&&E.comma&&A.indexOf(",")>-1)return A.split(",");if(E.throwOnLimitExceeded&&C>=E.arrayLimit)throw new RangeError("Array limit exceeded. Only "+E.arrayLimit+" element"+(E.arrayLimit===1?"":"s")+" allowed in an array.");return A},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(E,C){var R={__proto__:null},I=C.ignoreQueryPrefix?E.replace(/^\?/,""):E;I=I.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var B=C.parameterLimit===1/0?void 0:C.parameterLimit,U=I.split(C.delimiter,C.throwOnLimitExceeded?B+1:B);if(C.throwOnLimitExceeded&&U.length>B)throw new RangeError("Parameter limit exceeded. Only "+B+" parameter"+(B===1?"":"s")+" allowed.");var V=-1,X,K=C.charset;if(C.charsetSentinel)for(X=0;X<U.length;++X)U[X].indexOf("utf8=")===0&&(U[X]===charsetSentinel?K="utf-8":U[X]===isoSentinel&&(K="iso-8859-1"),V=X,X=U.length);for(X=0;X<U.length;++X)if(X!==V){var J=U[X],Y=J.indexOf("]="),Z=Y===-1?J.indexOf("="):Y+1,_e,xe;Z===-1?(_e=C.decoder(J,defaults.decoder,K,"key"),xe=C.strictNullHandling?null:""):(_e=C.decoder(J.slice(0,Z),defaults.decoder,K,"key"),xe=utils.maybeMap(parseArrayValue(J.slice(Z+1),C,isArray$9(R[_e])?R[_e].length:0),function(Pe){return C.decoder(Pe,defaults.decoder,K,"value")})),xe&&C.interpretNumericEntities&&K==="iso-8859-1"&&(xe=interpretNumericEntities(String(xe))),J.indexOf("[]=")>-1&&(xe=isArray$9(xe)?[xe]:xe);var Se=has.call(R,_e);Se&&C.duplicates==="combine"?R[_e]=utils.combine(R[_e],xe):(!Se||C.duplicates==="last")&&(R[_e]=xe)}return R},parseObject=function(A,E,C,R){var I=0;if(A.length>0&&A[A.length-1]==="[]"){var B=A.slice(0,-1).join("");I=Array.isArray(E)&&E[B]?E[B].length:0}for(var U=R?E:parseArrayValue(E,C,I),V=A.length-1;V>=0;--V){var X,K=A[V];if(K==="[]"&&C.parseArrays)X=C.allowEmptyArrays&&(U===""||C.strictNullHandling&&U===null)?[]:utils.combine([],U);else{X=C.plainObjects?{__proto__:null}:{};var J=K.charAt(0)==="["&&K.charAt(K.length-1)==="]"?K.slice(1,-1):K,Y=C.decodeDotInKeys?J.replace(/%2E/g,"."):J,Z=parseInt(Y,10);!C.parseArrays&&Y===""?X={0:U}:!isNaN(Z)&&K!==Y&&String(Z)===Y&&Z>=0&&C.parseArrays&&Z<=C.arrayLimit?(X=[],X[Z]=U):Y!=="__proto__"&&(X[Y]=U)}U=X}return U},parseKeys=function(E,C,R,I){if(E){var B=R.allowDots?E.replace(/\.([^.[]+)/g,"[$1]"):E,U=/(\[[^[\]]*])/,V=/(\[[^[\]]*])/g,X=R.depth>0&&U.exec(B),K=X?B.slice(0,X.index):B,J=[];if(K){if(!R.plainObjects&&has.call(Object.prototype,K)&&!R.allowPrototypes)return;J.push(K)}for(var Y=0;R.depth>0&&(X=V.exec(B))!==null&&Y<R.depth;){if(Y+=1,!R.plainObjects&&has.call(Object.prototype,X[1].slice(1,-1))&&!R.allowPrototypes)return;J.push(X[1])}if(X){if(R.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+R.depth+" and strictDepth is true");J.push("["+B.slice(X.index)+"]")}return parseObject(J,C,R,I)}},normalizeParseOptions=function(E){if(!E)return defaults;if(typeof E.allowEmptyArrays<"u"&&typeof E.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof E.decodeDotInKeys<"u"&&typeof E.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(E.decoder!==null&&typeof E.decoder<"u"&&typeof E.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof E.charset<"u"&&E.charset!=="utf-8"&&E.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof E.throwOnLimitExceeded<"u"&&typeof E.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var C=typeof E.charset>"u"?defaults.charset:E.charset,R=typeof E.duplicates>"u"?defaults.duplicates:E.duplicates;if(R!=="combine"&&R!=="first"&&R!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var I=typeof E.allowDots>"u"?E.decodeDotInKeys===!0?!0:defaults.allowDots:!!E.allowDots;return{allowDots:I,allowEmptyArrays:typeof E.allowEmptyArrays=="boolean"?!!E.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:typeof E.allowPrototypes=="boolean"?E.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof E.allowSparse=="boolean"?E.allowSparse:defaults.allowSparse,arrayLimit:typeof E.arrayLimit=="number"?E.arrayLimit:defaults.arrayLimit,charset:C,charsetSentinel:typeof E.charsetSentinel=="boolean"?E.charsetSentinel:defaults.charsetSentinel,comma:typeof E.comma=="boolean"?E.comma:defaults.comma,decodeDotInKeys:typeof E.decodeDotInKeys=="boolean"?E.decodeDotInKeys:defaults.decodeDotInKeys,decoder:typeof E.decoder=="function"?E.decoder:defaults.decoder,delimiter:typeof E.delimiter=="string"||utils.isRegExp(E.delimiter)?E.delimiter:defaults.delimiter,depth:typeof E.depth=="number"||E.depth===!1?+E.depth:defaults.depth,duplicates:R,ignoreQueryPrefix:E.ignoreQueryPrefix===!0,interpretNumericEntities:typeof E.interpretNumericEntities=="boolean"?E.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof E.parameterLimit=="number"?E.parameterLimit:defaults.parameterLimit,parseArrays:E.parseArrays!==!1,plainObjects:typeof E.plainObjects=="boolean"?E.plainObjects:defaults.plainObjects,strictDepth:typeof E.strictDepth=="boolean"?!!E.strictDepth:defaults.strictDepth,strictNullHandling:typeof E.strictNullHandling=="boolean"?E.strictNullHandling:defaults.strictNullHandling,throwOnLimitExceeded:typeof E.throwOnLimitExceeded=="boolean"?E.throwOnLimitExceeded:!1}},parse$2=function(A,E){var C=normalizeParseOptions(E);if(A===""||A===null||typeof A>"u")return C.plainObjects?{__proto__:null}:{};for(var R=typeof A=="string"?parseValues(A,C):A,I=C.plainObjects?{__proto__:null}:{},B=Object.keys(R),U=0;U<B.length;++U){var V=B[U],X=parseKeys(V,R[V],C,typeof A=="string");I=utils.merge(I,X,C)}return C.allowSparse===!0?I:utils.compact(I)},stringify=stringify_1,parse$1=parse$2,formats=formats$3,lib$2={formats,parse:parse$1,stringify},punycode=punycodeExports;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
37
+ `," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=lib$2;function urlParse(A,E,C){if(A&&typeof A=="object"&&A instanceof Url)return A;var R=new Url;return R.parse(A,E,C),R}Url.prototype.parse=function(A,E,C){if(typeof A!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var R=A.indexOf("?"),I=R!==-1&&R<A.indexOf("#")?"?":"#",B=A.split(I),U=/\\/g;B[0]=B[0].replace(U,"/"),A=B.join(I);var V=A;if(V=V.trim(),!C&&A.split("#").length===1){var X=simplePathPattern.exec(V);if(X)return this.path=V,this.href=V,this.pathname=X[1],X[2]?(this.search=X[2],E?this.query=querystring.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var K=protocolPattern.exec(V);if(K){K=K[0];var J=K.toLowerCase();this.protocol=J,V=V.substr(K.length)}if(C||K||V.match(/^\/\/[^@/]+@[^@/]+/)){var Y=V.substr(0,2)==="//";Y&&!(K&&hostlessProtocol[K])&&(V=V.substr(2),this.slashes=!0)}if(!hostlessProtocol[K]&&(Y||K&&!slashedProtocol[K])){for(var Z=-1,_e=0;_e<hostEndingChars.length;_e++){var xe=V.indexOf(hostEndingChars[_e]);xe!==-1&&(Z===-1||xe<Z)&&(Z=xe)}var Se,Pe;Z===-1?Pe=V.lastIndexOf("@"):Pe=V.lastIndexOf("@",Z),Pe!==-1&&(Se=V.slice(0,Pe),V=V.slice(Pe+1),this.auth=decodeURIComponent(Se)),Z=-1;for(var _e=0;_e<nonHostChars.length;_e++){var xe=V.indexOf(nonHostChars[_e]);xe!==-1&&(Z===-1||xe<Z)&&(Z=xe)}Z===-1&&(Z=V.length),this.host=V.slice(0,Z),V=V.slice(Z),this.parseHost(),this.hostname=this.hostname||"";var Ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ee)for(var Ae=this.hostname.split(/\./),_e=0,Te=Ae.length;_e<Te;_e++){var we=Ae[_e];if(we&&!we.match(hostnamePartPattern)){for(var Ie="",Fe=0,ke=we.length;Fe<ke;Fe++)we.charCodeAt(Fe)>127?Ie+="x":Ie+=we[Fe];if(!Ie.match(hostnamePartPattern)){var Le=Ae.slice(0,_e),Ge=Ae.slice(_e+1),Ue=we.match(hostnamePartStart);Ue&&(Le.push(Ue[1]),Ge.unshift(Ue[2])),Ge.length&&(V="/"+Ge.join(".")+V),this.hostname=Le.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ee||(this.hostname=punycode.toASCII(this.hostname));var Be=this.port?":"+this.port:"",je=this.hostname||"";this.host=je+Be,this.href+=this.host,Ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),V[0]!=="/"&&(V="/"+V))}if(!unsafeProtocol[J])for(var _e=0,Te=autoEscape.length;_e<Te;_e++){var Ve=autoEscape[_e];if(V.indexOf(Ve)!==-1){var ze=encodeURIComponent(Ve);ze===Ve&&(ze=escape(Ve)),V=V.split(Ve).join(ze)}}var He=V.indexOf("#");He!==-1&&(this.hash=V.substr(He),V=V.slice(0,He));var Oe=V.indexOf("?");if(Oe!==-1?(this.search=V.substr(Oe),this.query=V.substr(Oe+1),E&&(this.query=querystring.parse(this.query)),V=V.slice(0,Oe)):E&&(this.search="",this.query={}),V&&(this.pathname=V),slashedProtocol[J]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Be=this.pathname||"",$e=this.search||"";this.path=Be+$e}return this.href=this.format(),this},Url.prototype.format=function(){var A=this.auth||"";A&&(A=encodeURIComponent(A),A=A.replace(/%3A/i,":"),A+="@");var E=this.protocol||"",C=this.pathname||"",R=this.hash||"",I=!1,B="";this.host?I=A+this.host:this.hostname&&(I=A+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(B=querystring.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var U=this.search||B&&"?"+B||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||slashedProtocol[E])&&I!==!1?(I="//"+(I||""),C&&C.charAt(0)!=="/"&&(C="/"+C)):I||(I=""),R&&R.charAt(0)!=="#"&&(R="#"+R),U&&U.charAt(0)!=="?"&&(U="?"+U),C=C.replace(/[?#]/g,function(V){return encodeURIComponent(V)}),U=U.replace("#","%23"),E+I+C+U+R},Url.prototype.resolve=function(A){return this.resolveObject(urlParse(A,!1,!0)).format()},Url.prototype.resolveObject=function(A){if(typeof A=="string"){var E=new Url;E.parse(A,!1,!0),A=E}for(var C=new Url,R=Object.keys(this),I=0;I<R.length;I++){var B=R[I];C[B]=this[B]}if(C.hash=A.hash,A.href==="")return C.href=C.format(),C;if(A.slashes&&!A.protocol){for(var U=Object.keys(A),V=0;V<U.length;V++){var X=U[V];X!=="protocol"&&(C[X]=A[X])}return slashedProtocol[C.protocol]&&C.hostname&&!C.pathname&&(C.pathname="/",C.path=C.pathname),C.href=C.format(),C}if(A.protocol&&A.protocol!==C.protocol){if(!slashedProtocol[A.protocol]){for(var K=Object.keys(A),J=0;J<K.length;J++){var Y=K[J];C[Y]=A[Y]}return C.href=C.format(),C}if(C.protocol=A.protocol,!A.host&&!hostlessProtocol[A.protocol]){for(var Te=(A.pathname||"").split("/");Te.length&&!(A.host=Te.shift()););A.host||(A.host=""),A.hostname||(A.hostname=""),Te[0]!==""&&Te.unshift(""),Te.length<2&&Te.unshift(""),C.pathname=Te.join("/")}else C.pathname=A.pathname;if(C.search=A.search,C.query=A.query,C.host=A.host||"",C.auth=A.auth,C.hostname=A.hostname||A.host,C.port=A.port,C.pathname||C.search){var Z=C.pathname||"",_e=C.search||"";C.path=Z+_e}return C.slashes=C.slashes||A.slashes,C.href=C.format(),C}var xe=C.pathname&&C.pathname.charAt(0)==="/",Se=A.host||A.pathname&&A.pathname.charAt(0)==="/",Pe=Se||xe||C.host&&A.pathname,Ee=Pe,Ae=C.pathname&&C.pathname.split("/")||[],Te=A.pathname&&A.pathname.split("/")||[],we=C.protocol&&!slashedProtocol[C.protocol];if(we&&(C.hostname="",C.port=null,C.host&&(Ae[0]===""?Ae[0]=C.host:Ae.unshift(C.host)),C.host="",A.protocol&&(A.hostname=null,A.port=null,A.host&&(Te[0]===""?Te[0]=A.host:Te.unshift(A.host)),A.host=null),Pe=Pe&&(Te[0]===""||Ae[0]==="")),Se)C.host=A.host||A.host===""?A.host:C.host,C.hostname=A.hostname||A.hostname===""?A.hostname:C.hostname,C.search=A.search,C.query=A.query,Ae=Te;else if(Te.length)Ae||(Ae=[]),Ae.pop(),Ae=Ae.concat(Te),C.search=A.search,C.query=A.query;else if(A.search!=null){if(we){C.host=Ae.shift(),C.hostname=C.host;var Ie=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;Ie&&(C.auth=Ie.shift(),C.hostname=Ie.shift(),C.host=C.hostname)}return C.search=A.search,C.query=A.query,(C.pathname!==null||C.search!==null)&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!Ae.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var Fe=Ae.slice(-1)[0],ke=(C.host||A.host||Ae.length>1)&&(Fe==="."||Fe==="..")||Fe==="",Le=0,Ge=Ae.length;Ge>=0;Ge--)Fe=Ae[Ge],Fe==="."?Ae.splice(Ge,1):Fe===".."?(Ae.splice(Ge,1),Le++):Le&&(Ae.splice(Ge,1),Le--);if(!Pe&&!Ee)for(;Le--;Le)Ae.unshift("..");Pe&&Ae[0]!==""&&(!Ae[0]||Ae[0].charAt(0)!=="/")&&Ae.unshift(""),ke&&Ae.join("/").substr(-1)!=="/"&&Ae.push("");var Ue=Ae[0]===""||Ae[0]&&Ae[0].charAt(0)==="/";if(we){C.hostname=Ue?"":Ae.length?Ae.shift():"",C.host=C.hostname;var Ie=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;Ie&&(C.auth=Ie.shift(),C.hostname=Ie.shift(),C.host=C.hostname)}return Pe=Pe||C.host&&Ae.length,Pe&&!Ue&&Ae.unshift(""),Ae.length>0?C.pathname=Ae.join("/"):(C.pathname=null,C.path=null),(C.pathname!==null||C.search!==null)&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=A.auth||C.auth,C.slashes=C.slashes||A.slashes,C.href=C.format(),C},Url.prototype.parseHost=function(){var A=this.host,E=portPattern.exec(A);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),A=A.substr(0,A.length-E.length)),A&&(this.hostname=A)};const warnings={};function deprecation(A,E,C=3){if(warnings[E])return;let R=new Error().stack;typeof R>"u"?console.warn("PixiJS Deprecation Warning: ",`${E}
38
38
  Deprecated since v${A}`):(R=R.split(`
39
39
  `).splice(C).join(`
40
40
  `),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${E}
@@ -864,7 +864,7 @@ void main(void)
864
864
  vTextureCoord = aTextureCoord;
865
865
  vFilterCoord = vTextureCoord * inputSize.xy / outputFrame.zw;
866
866
  }
867
- `,v$1=v$1||{};v$1.stringify=function(){var A={"visit_linear-gradient":function(E){return A.visit_gradient(E)},"visit_repeating-linear-gradient":function(E){return A.visit_gradient(E)},"visit_radial-gradient":function(E){return A.visit_gradient(E)},"visit_repeating-radial-gradient":function(E){return A.visit_gradient(E)},visit_gradient:function(E){var C=A.visit(E.orientation);return C&&(C+=", "),E.type+"("+C+A.visit(E.colorStops)+")"},visit_shape:function(E){var C=E.value,R=A.visit(E.at),I=A.visit(E.style);return I&&(C+=" "+I),R&&(C+=" at "+R),C},"visit_default-radial":function(E){var C="",R=A.visit(E.at);return R&&(C+=R),C},"visit_extent-keyword":function(E){var C=E.value,R=A.visit(E.at);return R&&(C+=" at "+R),C},"visit_position-keyword":function(E){return E.value},visit_position:function(E){return A.visit(E.value.x)+" "+A.visit(E.value.y)},"visit_%":function(E){return E.value+"%"},visit_em:function(E){return E.value+"em"},visit_px:function(E){return E.value+"px"},visit_literal:function(E){return A.visit_color(E.value,E)},visit_hex:function(E){return A.visit_color("#"+E.value,E)},visit_rgb:function(E){return A.visit_color("rgb("+E.value.join(", ")+")",E)},visit_rgba:function(E){return A.visit_color("rgba("+E.value.join(", ")+")",E)},visit_color:function(E,C){var R=E,I=A.visit(C.length);return I&&(R+=" "+I),R},visit_angular:function(E){return E.value+"deg"},visit_directional:function(E){return"to "+E.value},visit_array:function(E){var C="",R=E.length;return E.forEach(function(I,B){C+=A.visit(I),B<R-1&&(C+=", ")}),C},visit:function(E){if(!E)return"";var C="";if(E instanceof Array)return A.visit_array(E,C);if(E.type){var R=A["visit_"+E.type];if(R)return R(E);throw Error("Missing visitor visit_"+E.type)}else throw Error("Invalid node.")}};return function(E){return A.visit(E)}}();var v$1=v$1||{};v$1.parse=function(){var A={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},E="";function C($e){var Re=new Error(E+": "+$e);throw Re.source=E,Re}function R(){var $e=I();return E.length>0&&C("Invalid input not EOF"),$e}function I(){return Te(B)}function B(){return U("linear-gradient",A.linearGradient,X)||U("repeating-linear-gradient",A.repeatingLinearGradient,X)||U("radial-gradient",A.radialGradient,Y)||U("repeating-radial-gradient",A.repeatingRadialGradient,Y)}function U($e,Re,Me){return V(Re,function(Ne){var De=Me();return De&&(Ve(A.comma)||C("Missing comma before color stops")),{type:$e,orientation:De,colorStops:Te(we)}})}function V($e,Re){var Me=Ve($e);if(Me){Ve(A.startCall)||C("Missing (");var Ne=Re(Me);return Ve(A.endCall)||C("Missing )"),Ne}}function X(){return K()||J()}function K(){return ze("directional",A.sideOrCorner,1)}function J(){return ze("angular",A.angleValue,1)}function Y(){var $e,Re=Z(),Me;return Re&&($e=[],$e.push(Re),Me=E,Ve(A.comma)&&(Re=Z(),Re?$e.push(Re):E=Me)),$e}function Z(){var $e=_e()||xe();if($e)$e.at=Pe();else{var Re=Se();if(Re){$e=Re;var Me=Pe();Me&&($e.at=Me)}else{var Ne=Ee();Ne&&($e={type:"default-radial",at:Ne})}}return $e}function _e(){var $e=ze("shape",/^(circle)/i,0);return $e&&($e.style=Ue()||Se()),$e}function xe(){var $e=ze("shape",/^(ellipse)/i,0);return $e&&($e.style=Be()||Se()),$e}function Se(){return ze("extent-keyword",A.extentKeywords,1)}function Pe(){if(ze("position",/^at/,0)){var $e=Ee();return $e||C("Missing positioning value"),$e}}function Ee(){var $e=Ae();if($e.x||$e.y)return{type:"position",value:$e}}function Ae(){return{x:Be(),y:Be()}}function Te($e){var Re=$e(),Me=[];if(Re)for(Me.push(Re);Ve(A.comma);)Re=$e(),Re?Me.push(Re):C("One extra comma");return Me}function we(){var $e=Ie();return $e||C("Expected color definition"),$e.length=Be(),$e}function Ie(){return ke()||Ge()||Le()||Fe()}function Fe(){return ze("literal",A.literalColor,0)}function ke(){return ze("hex",A.hexColor,1)}function Le(){return V(A.rgbColor,function(){return{type:"rgb",value:Te(He)}})}function Ge(){return V(A.rgbaColor,function(){return{type:"rgba",value:Te(He)}})}function He(){return Ve(A.number)[1]}function Be(){return ze("%",A.percentageValue,1)||je()||Ue()}function je(){return ze("position-keyword",A.positionKeywords,1)}function Ue(){return ze("px",A.pixelValue,1)||ze("em",A.emValue,1)}function ze($e,Re,Me){var Ne=Ve(Re);if(Ne)return{type:$e,value:Ne[Me]}}function Ve($e){var Re,Me;return Me=/^[\n\r\t\s]+/.exec(E),Me&&Oe(Me[0].length),Re=$e.exec(E),Re&&Oe(Re[0].length),Re}function Oe($e){E=E.substr($e)}return function($e){return E=$e.toString(),R()}}();var ee=v$1.parse;v$1.stringify;var j={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},G={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function te(A){var E,C=[],R=1,I;if(typeof A=="string")if(j[A])C=j[A].slice(),I="rgb";else if(A==="transparent")R=0,I="rgb",C=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(A)){var B=A.slice(1),U=B.length,V=U<=4;R=1,V?(C=[parseInt(B[0]+B[0],16),parseInt(B[1]+B[1],16),parseInt(B[2]+B[2],16)],U===4&&(R=parseInt(B[3]+B[3],16)/255)):(C=[parseInt(B[0]+B[1],16),parseInt(B[2]+B[3],16),parseInt(B[4]+B[5],16)],U===8&&(R=parseInt(B[6]+B[7],16)/255)),C[0]||(C[0]=0),C[1]||(C[1]=0),C[2]||(C[2]=0),I="rgb"}else if(E=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(A)){var X=E[1],K=X==="rgb",B=X.replace(/a$/,"");I=B;var U=B==="cmyk"?4:B==="gray"?1:3;C=E[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(Z,_e){if(/%$/.test(Z))return _e===U?parseFloat(Z)/100:B==="rgb"?parseFloat(Z)*255/100:parseFloat(Z);if(B[_e]==="h"){if(/deg$/.test(Z))return parseFloat(Z);if(G[Z]!==void 0)return G[Z]}return parseFloat(Z)}),X===B&&C.push(1),R=K||C[U]===void 0?1:C[U],C=C.slice(0,U)}else A.length>10&&/[0-9](?:\s|\/)/.test(A)&&(C=A.match(/([0-9]+)/g).map(function(J){return parseFloat(J)}),I=A.match(/([a-z])/ig).join("").toLowerCase());else isNaN(A)?Array.isArray(A)||A.length?(C=[A[0],A[1],A[2]],I="rgb",R=A.length===4?A[3]:1):A instanceof Object&&(A.r!=null||A.red!=null||A.R!=null?(I="rgb",C=[A.r||A.red||A.R||0,A.g||A.green||A.G||0,A.b||A.blue||A.B||0]):(I="hsl",C=[A.h||A.hue||A.H||0,A.s||A.saturation||A.S||0,A.l||A.lightness||A.L||A.b||A.brightness]),R=A.a||A.alpha||A.opacity||1,A.opacity!=null&&(R/=100)):(I="rgb",C=[A>>>16,(A&65280)>>>8,A&255]);return{space:I,values:C,alpha:R}}var S={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},k={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(A){var E=A[0]/360,C=A[1]/100,R=A[2]/100,I,B,U,V,X;if(C===0)return X=R*255,[X,X,X];R<.5?B=R*(1+C):B=R+C-R*C,I=2*R-B,V=[0,0,0];for(var K=0;K<3;K++)U=E+1/3*-(K-1),U<0?U++:U>1&&U--,6*U<1?X=I+(B-I)*6*U:2*U<1?X=B:3*U<2?X=I+(B-I)*(2/3-U)*6:X=I,V[K]=X*255;return V}};S.hsl=function(A){var E=A[0]/255,C=A[1]/255,R=A[2]/255,I=Math.min(E,C,R),B=Math.max(E,C,R),U=B-I,V,X,K;return B===I?V=0:E===B?V=(C-R)/U:C===B?V=2+(R-E)/U:R===B&&(V=4+(E-C)/U),V=Math.min(V*60,360),V<0&&(V+=360),K=(I+B)/2,B===I?X=0:K<=.5?X=U/(B+I):X=U/(2-B-I),[V,X*100,K*100]};function re(A){Array.isArray(A)&&A.raw&&(A=String.raw(...arguments));var E,C=te(A);if(!C.space)return[];const R=C.space[0]==="h"?k.min:S.min,I=C.space[0]==="h"?k.max:S.max;return E=Array(3),E[0]=Math.min(Math.max(C.values[0],R[0]),I[0]),E[1]=Math.min(Math.max(C.values[1],R[1]),I[1]),E[2]=Math.min(Math.max(C.values[2],R[2]),I[2]),C.space[0]==="h"&&(E=k.rgb(E)),E.push(Math.min(Math.max(C.alpha,0),1)),E}function L(A){switch(typeof A){case"string":return ne(A);case"number":return hex2rgb(A);default:return A}}function ne(A){const E=re(A);if(!E)throw new Error(`Unable to parse color "${A}" as RGBA.`);return[E[0]/255,E[1]/255,E[2]/255,E[3]]}function ie(A){const E=ee(ge(A));if(E.length===0)throw new Error("Invalid CSS gradient.");if(E.length!==1)throw new Error("Unsupported CSS gradient (multiple gradients is not supported).");const C=E[0],R=oe(C.type),I=ae(C.colorStops),B=ce(C.orientation);return{type:R,stops:I,angle:B}}function oe(A){const E={"linear-gradient":0,"radial-gradient":1};if(!(A in E))throw new Error(`Unsupported gradient type "${A}"`);return E[A]}function ae(A){const E=ue(A),C=[];for(let R=0;R<A.length;R++){const I=le(A[R]);C.push({offset:E[R],color:I.slice(0,3),alpha:I[3]})}return C}function le(A){return L(se(A))}function se(A){switch(A.type){case"hex":return`#${A.value}`;case"literal":return A.value;default:return`${A.type}(${A.value.join(",")})`}}function ue(A){const E=[];for(let I=0;I<A.length;I++){const B=A[I];let U=-1;B.type==="literal"&&B.length&&"type"in B.length&&B.length.type==="%"&&"value"in B.length&&(U=parseFloat(B.length.value)/100),E.push(U)}const C=I=>{for(let B=I;B<E.length;B++)if(E[B]!==-1)return{indexDelta:B-I,offset:E[B]};return{indexDelta:E.length-1-I,offset:1}};let R=0;for(let I=0;I<E.length;I++){const B=E[I];if(B!==-1)R=B;else if(I===0)E[I]=0;else if(I+1===E.length)E[I]=1;else{const U=C(I),V=(U.offset-R)/(1+U.indexDelta);for(let X=0;X<=U.indexDelta;X++)E[I+X]=R+(X+1)*V;I+=U.indexDelta,R=E[I]}}return E.map(fe)}function fe(A){return A.toString().length>6?parseFloat(A.toString().substring(0,6)):A}function ce(A){if(typeof A>"u")return 0;if("type"in A&&"value"in A)switch(A.type){case"angular":return parseFloat(A.value);case"directional":return pe(A.value)}return 0}function pe(A){const E={left:270,top:0,bottom:180,right:90,"left top":315,"top left":315,"left bottom":225,"bottom left":225,"right top":45,"top right":45,"right bottom":135,"bottom right":135};if(!(A in E))throw new Error(`Unsupported directional value "${A}"`);return E[A]}function ge(A){let E=A.replace(/\s{2,}/gu," ");return E=E.replace(/;/g,""),E=E.replace(/ ,/g,","),E=E.replace(/\( /g,"("),E=E.replace(/ \)/g,")"),E.trim()}var he=Object.defineProperty,me=Object.defineProperties,de=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,z$1=(A,E,C)=>E in A?he(A,E,{enumerable:!0,configurable:!0,writable:!0,value:C}):A[E]=C,P$1=(A,E)=>{for(var C in E||(E={}))ve.call(E,C)&&z$1(A,C,E[C]);if(N)for(var C of N(E))ye.call(E,C)&&z$1(A,C,E[C]);return A},be=(A,E)=>me(A,de(E));const D=90;function Ce(A){return[...A].sort((E,C)=>E.offset-C.offset)}const y=class extends Filter{constructor(A){var E,C;let R;if(A&&"css"in A?R=be(P$1({},ie(A.css||"")),{alpha:(E=A.alpha)!=null?E:y.defaults.alpha,maxColors:(C=A.maxColors)!=null?C:y.defaults.maxColors}):R=P$1(P$1({},y.defaults),A),!R.stops||R.stops.length<2)throw new Error("ColorGradientFilter requires at least 2 color stops.");super(W,Q),this._stops=[],this.autoFit=!1,Object.assign(this,R)}get stops(){return this._stops}set stops(A){const E=Ce(A),C=new Float32Array(E.length*3),R=0,I=1,B=2;for(let U=0;U<E.length;U++){const V=L(E[U].color),X=U*3;C[X+R]=V[R],C[X+I]=V[I],C[X+B]=V[B]}this.uniforms.uColors=C,this.uniforms.uOffsets=E.map(U=>U.offset),this.uniforms.uAlphas=E.map(U=>U.alpha),this.uniforms.uNumStops=E.length,this._stops=E}set type(A){this.uniforms.uType=A}get type(){return this.uniforms.uType}set angle(A){this.uniforms.uAngle=A-D}get angle(){return this.uniforms.uAngle+D}set alpha(A){this.uniforms.uAlpha=A}get alpha(){return this.uniforms.uAlpha}set maxColors(A){this.uniforms.uMaxColors=A}get maxColors(){return this.uniforms.uMaxColors}set replace(A){this.uniforms.uReplace=A}get replace(){return this.uniforms.uReplace}};let b$1=y;b$1.LINEAR=0,b$1.RADIAL=1,b$1.CONIC=2,b$1.defaults={type:y.LINEAR,stops:[{offset:0,color:16711680,alpha:1},{offset:1,color:255,alpha:1}],alpha:1,angle:90,maxColors:0,replace:!1};var o$3=`attribute vec2 aVertexPosition;
867
+ `,v$1=v$1||{};v$1.stringify=function(){var A={"visit_linear-gradient":function(E){return A.visit_gradient(E)},"visit_repeating-linear-gradient":function(E){return A.visit_gradient(E)},"visit_radial-gradient":function(E){return A.visit_gradient(E)},"visit_repeating-radial-gradient":function(E){return A.visit_gradient(E)},visit_gradient:function(E){var C=A.visit(E.orientation);return C&&(C+=", "),E.type+"("+C+A.visit(E.colorStops)+")"},visit_shape:function(E){var C=E.value,R=A.visit(E.at),I=A.visit(E.style);return I&&(C+=" "+I),R&&(C+=" at "+R),C},"visit_default-radial":function(E){var C="",R=A.visit(E.at);return R&&(C+=R),C},"visit_extent-keyword":function(E){var C=E.value,R=A.visit(E.at);return R&&(C+=" at "+R),C},"visit_position-keyword":function(E){return E.value},visit_position:function(E){return A.visit(E.value.x)+" "+A.visit(E.value.y)},"visit_%":function(E){return E.value+"%"},visit_em:function(E){return E.value+"em"},visit_px:function(E){return E.value+"px"},visit_literal:function(E){return A.visit_color(E.value,E)},visit_hex:function(E){return A.visit_color("#"+E.value,E)},visit_rgb:function(E){return A.visit_color("rgb("+E.value.join(", ")+")",E)},visit_rgba:function(E){return A.visit_color("rgba("+E.value.join(", ")+")",E)},visit_color:function(E,C){var R=E,I=A.visit(C.length);return I&&(R+=" "+I),R},visit_angular:function(E){return E.value+"deg"},visit_directional:function(E){return"to "+E.value},visit_array:function(E){var C="",R=E.length;return E.forEach(function(I,B){C+=A.visit(I),B<R-1&&(C+=", ")}),C},visit:function(E){if(!E)return"";var C="";if(E instanceof Array)return A.visit_array(E,C);if(E.type){var R=A["visit_"+E.type];if(R)return R(E);throw Error("Missing visitor visit_"+E.type)}else throw Error("Invalid node.")}};return function(E){return A.visit(E)}}();var v$1=v$1||{};v$1.parse=function(){var A={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},E="";function C($e){var Re=new Error(E+": "+$e);throw Re.source=E,Re}function R(){var $e=I();return E.length>0&&C("Invalid input not EOF"),$e}function I(){return Te(B)}function B(){return U("linear-gradient",A.linearGradient,X)||U("repeating-linear-gradient",A.repeatingLinearGradient,X)||U("radial-gradient",A.radialGradient,Y)||U("repeating-radial-gradient",A.repeatingRadialGradient,Y)}function U($e,Re,Me){return V(Re,function(Ne){var De=Me();return De&&(He(A.comma)||C("Missing comma before color stops")),{type:$e,orientation:De,colorStops:Te(we)}})}function V($e,Re){var Me=He($e);if(Me){He(A.startCall)||C("Missing (");var Ne=Re(Me);return He(A.endCall)||C("Missing )"),Ne}}function X(){return K()||J()}function K(){return ze("directional",A.sideOrCorner,1)}function J(){return ze("angular",A.angleValue,1)}function Y(){var $e,Re=Z(),Me;return Re&&($e=[],$e.push(Re),Me=E,He(A.comma)&&(Re=Z(),Re?$e.push(Re):E=Me)),$e}function Z(){var $e=_e()||xe();if($e)$e.at=Pe();else{var Re=Se();if(Re){$e=Re;var Me=Pe();Me&&($e.at=Me)}else{var Ne=Ee();Ne&&($e={type:"default-radial",at:Ne})}}return $e}function _e(){var $e=ze("shape",/^(circle)/i,0);return $e&&($e.style=Ve()||Se()),$e}function xe(){var $e=ze("shape",/^(ellipse)/i,0);return $e&&($e.style=Be()||Se()),$e}function Se(){return ze("extent-keyword",A.extentKeywords,1)}function Pe(){if(ze("position",/^at/,0)){var $e=Ee();return $e||C("Missing positioning value"),$e}}function Ee(){var $e=Ae();if($e.x||$e.y)return{type:"position",value:$e}}function Ae(){return{x:Be(),y:Be()}}function Te($e){var Re=$e(),Me=[];if(Re)for(Me.push(Re);He(A.comma);)Re=$e(),Re?Me.push(Re):C("One extra comma");return Me}function we(){var $e=Ie();return $e||C("Expected color definition"),$e.length=Be(),$e}function Ie(){return ke()||Ge()||Le()||Fe()}function Fe(){return ze("literal",A.literalColor,0)}function ke(){return ze("hex",A.hexColor,1)}function Le(){return V(A.rgbColor,function(){return{type:"rgb",value:Te(Ue)}})}function Ge(){return V(A.rgbaColor,function(){return{type:"rgba",value:Te(Ue)}})}function Ue(){return He(A.number)[1]}function Be(){return ze("%",A.percentageValue,1)||je()||Ve()}function je(){return ze("position-keyword",A.positionKeywords,1)}function Ve(){return ze("px",A.pixelValue,1)||ze("em",A.emValue,1)}function ze($e,Re,Me){var Ne=He(Re);if(Ne)return{type:$e,value:Ne[Me]}}function He($e){var Re,Me;return Me=/^[\n\r\t\s]+/.exec(E),Me&&Oe(Me[0].length),Re=$e.exec(E),Re&&Oe(Re[0].length),Re}function Oe($e){E=E.substr($e)}return function($e){return E=$e.toString(),R()}}();var ee=v$1.parse;v$1.stringify;var j={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},G={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function te(A){var E,C=[],R=1,I;if(typeof A=="string")if(j[A])C=j[A].slice(),I="rgb";else if(A==="transparent")R=0,I="rgb",C=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(A)){var B=A.slice(1),U=B.length,V=U<=4;R=1,V?(C=[parseInt(B[0]+B[0],16),parseInt(B[1]+B[1],16),parseInt(B[2]+B[2],16)],U===4&&(R=parseInt(B[3]+B[3],16)/255)):(C=[parseInt(B[0]+B[1],16),parseInt(B[2]+B[3],16),parseInt(B[4]+B[5],16)],U===8&&(R=parseInt(B[6]+B[7],16)/255)),C[0]||(C[0]=0),C[1]||(C[1]=0),C[2]||(C[2]=0),I="rgb"}else if(E=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(A)){var X=E[1],K=X==="rgb",B=X.replace(/a$/,"");I=B;var U=B==="cmyk"?4:B==="gray"?1:3;C=E[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(Z,_e){if(/%$/.test(Z))return _e===U?parseFloat(Z)/100:B==="rgb"?parseFloat(Z)*255/100:parseFloat(Z);if(B[_e]==="h"){if(/deg$/.test(Z))return parseFloat(Z);if(G[Z]!==void 0)return G[Z]}return parseFloat(Z)}),X===B&&C.push(1),R=K||C[U]===void 0?1:C[U],C=C.slice(0,U)}else A.length>10&&/[0-9](?:\s|\/)/.test(A)&&(C=A.match(/([0-9]+)/g).map(function(J){return parseFloat(J)}),I=A.match(/([a-z])/ig).join("").toLowerCase());else isNaN(A)?Array.isArray(A)||A.length?(C=[A[0],A[1],A[2]],I="rgb",R=A.length===4?A[3]:1):A instanceof Object&&(A.r!=null||A.red!=null||A.R!=null?(I="rgb",C=[A.r||A.red||A.R||0,A.g||A.green||A.G||0,A.b||A.blue||A.B||0]):(I="hsl",C=[A.h||A.hue||A.H||0,A.s||A.saturation||A.S||0,A.l||A.lightness||A.L||A.b||A.brightness]),R=A.a||A.alpha||A.opacity||1,A.opacity!=null&&(R/=100)):(I="rgb",C=[A>>>16,(A&65280)>>>8,A&255]);return{space:I,values:C,alpha:R}}var S={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},k={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(A){var E=A[0]/360,C=A[1]/100,R=A[2]/100,I,B,U,V,X;if(C===0)return X=R*255,[X,X,X];R<.5?B=R*(1+C):B=R+C-R*C,I=2*R-B,V=[0,0,0];for(var K=0;K<3;K++)U=E+1/3*-(K-1),U<0?U++:U>1&&U--,6*U<1?X=I+(B-I)*6*U:2*U<1?X=B:3*U<2?X=I+(B-I)*(2/3-U)*6:X=I,V[K]=X*255;return V}};S.hsl=function(A){var E=A[0]/255,C=A[1]/255,R=A[2]/255,I=Math.min(E,C,R),B=Math.max(E,C,R),U=B-I,V,X,K;return B===I?V=0:E===B?V=(C-R)/U:C===B?V=2+(R-E)/U:R===B&&(V=4+(E-C)/U),V=Math.min(V*60,360),V<0&&(V+=360),K=(I+B)/2,B===I?X=0:K<=.5?X=U/(B+I):X=U/(2-B-I),[V,X*100,K*100]};function re(A){Array.isArray(A)&&A.raw&&(A=String.raw(...arguments));var E,C=te(A);if(!C.space)return[];const R=C.space[0]==="h"?k.min:S.min,I=C.space[0]==="h"?k.max:S.max;return E=Array(3),E[0]=Math.min(Math.max(C.values[0],R[0]),I[0]),E[1]=Math.min(Math.max(C.values[1],R[1]),I[1]),E[2]=Math.min(Math.max(C.values[2],R[2]),I[2]),C.space[0]==="h"&&(E=k.rgb(E)),E.push(Math.min(Math.max(C.alpha,0),1)),E}function L(A){switch(typeof A){case"string":return ne(A);case"number":return hex2rgb(A);default:return A}}function ne(A){const E=re(A);if(!E)throw new Error(`Unable to parse color "${A}" as RGBA.`);return[E[0]/255,E[1]/255,E[2]/255,E[3]]}function ie(A){const E=ee(ge(A));if(E.length===0)throw new Error("Invalid CSS gradient.");if(E.length!==1)throw new Error("Unsupported CSS gradient (multiple gradients is not supported).");const C=E[0],R=oe(C.type),I=ae(C.colorStops),B=ce(C.orientation);return{type:R,stops:I,angle:B}}function oe(A){const E={"linear-gradient":0,"radial-gradient":1};if(!(A in E))throw new Error(`Unsupported gradient type "${A}"`);return E[A]}function ae(A){const E=ue(A),C=[];for(let R=0;R<A.length;R++){const I=le(A[R]);C.push({offset:E[R],color:I.slice(0,3),alpha:I[3]})}return C}function le(A){return L(se(A))}function se(A){switch(A.type){case"hex":return`#${A.value}`;case"literal":return A.value;default:return`${A.type}(${A.value.join(",")})`}}function ue(A){const E=[];for(let I=0;I<A.length;I++){const B=A[I];let U=-1;B.type==="literal"&&B.length&&"type"in B.length&&B.length.type==="%"&&"value"in B.length&&(U=parseFloat(B.length.value)/100),E.push(U)}const C=I=>{for(let B=I;B<E.length;B++)if(E[B]!==-1)return{indexDelta:B-I,offset:E[B]};return{indexDelta:E.length-1-I,offset:1}};let R=0;for(let I=0;I<E.length;I++){const B=E[I];if(B!==-1)R=B;else if(I===0)E[I]=0;else if(I+1===E.length)E[I]=1;else{const U=C(I),V=(U.offset-R)/(1+U.indexDelta);for(let X=0;X<=U.indexDelta;X++)E[I+X]=R+(X+1)*V;I+=U.indexDelta,R=E[I]}}return E.map(fe)}function fe(A){return A.toString().length>6?parseFloat(A.toString().substring(0,6)):A}function ce(A){if(typeof A>"u")return 0;if("type"in A&&"value"in A)switch(A.type){case"angular":return parseFloat(A.value);case"directional":return pe(A.value)}return 0}function pe(A){const E={left:270,top:0,bottom:180,right:90,"left top":315,"top left":315,"left bottom":225,"bottom left":225,"right top":45,"top right":45,"right bottom":135,"bottom right":135};if(!(A in E))throw new Error(`Unsupported directional value "${A}"`);return E[A]}function ge(A){let E=A.replace(/\s{2,}/gu," ");return E=E.replace(/;/g,""),E=E.replace(/ ,/g,","),E=E.replace(/\( /g,"("),E=E.replace(/ \)/g,")"),E.trim()}var he=Object.defineProperty,me=Object.defineProperties,de=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,z$1=(A,E,C)=>E in A?he(A,E,{enumerable:!0,configurable:!0,writable:!0,value:C}):A[E]=C,P$1=(A,E)=>{for(var C in E||(E={}))ve.call(E,C)&&z$1(A,C,E[C]);if(N)for(var C of N(E))ye.call(E,C)&&z$1(A,C,E[C]);return A},be=(A,E)=>me(A,de(E));const D=90;function Ce(A){return[...A].sort((E,C)=>E.offset-C.offset)}const y=class extends Filter{constructor(A){var E,C;let R;if(A&&"css"in A?R=be(P$1({},ie(A.css||"")),{alpha:(E=A.alpha)!=null?E:y.defaults.alpha,maxColors:(C=A.maxColors)!=null?C:y.defaults.maxColors}):R=P$1(P$1({},y.defaults),A),!R.stops||R.stops.length<2)throw new Error("ColorGradientFilter requires at least 2 color stops.");super(W,Q),this._stops=[],this.autoFit=!1,Object.assign(this,R)}get stops(){return this._stops}set stops(A){const E=Ce(A),C=new Float32Array(E.length*3),R=0,I=1,B=2;for(let U=0;U<E.length;U++){const V=L(E[U].color),X=U*3;C[X+R]=V[R],C[X+I]=V[I],C[X+B]=V[B]}this.uniforms.uColors=C,this.uniforms.uOffsets=E.map(U=>U.offset),this.uniforms.uAlphas=E.map(U=>U.alpha),this.uniforms.uNumStops=E.length,this._stops=E}set type(A){this.uniforms.uType=A}get type(){return this.uniforms.uType}set angle(A){this.uniforms.uAngle=A-D}get angle(){return this.uniforms.uAngle+D}set alpha(A){this.uniforms.uAlpha=A}get alpha(){return this.uniforms.uAlpha}set maxColors(A){this.uniforms.uMaxColors=A}get maxColors(){return this.uniforms.uMaxColors}set replace(A){this.uniforms.uReplace=A}get replace(){return this.uniforms.uReplace}};let b$1=y;b$1.LINEAR=0,b$1.RADIAL=1,b$1.CONIC=2,b$1.defaults={type:y.LINEAR,stops:[{offset:0,color:16711680,alpha:1},{offset:1,color:255,alpha:1}],alpha:1,angle:90,maxColors:0,replace:!1};var o$3=`attribute vec2 aVertexPosition;
868
868
  attribute vec2 aTextureCoord;
869
869
 
870
870
  uniform mat3 projectionMatrix;
@@ -1927,44 +1927,7 @@ void main() {
1927
1927
 
1928
1928
  gl_FragColor = color;
1929
1929
  }
1930
- `,i=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,c=(A,E)=>{var C={};for(var R in A)d.call(A,R)&&E.indexOf(R)<0&&(C[R]=A[R]);if(A!=null&&i)for(var R of i(A))E.indexOf(R)<0&&f.call(A,R)&&(C[R]=A[R]);return C};const a=class extends Filter{constructor(A){const E=Object.assign(a.defaults,A),{maxKernelSize:C}=E,R=c(E,["maxKernelSize"]);super(l,u.replace("${maxKernelSize}",C.toFixed(1))),Object.assign(this,R)}get center(){return this.uniforms.uCenter}set center(A){this.uniforms.uCenter=A}get strength(){return this.uniforms.uStrength}set strength(A){this.uniforms.uStrength=A}get innerRadius(){return this.uniforms.uInnerRadius}set innerRadius(A){this.uniforms.uInnerRadius=A}get radius(){return this.uniforms.uRadius}set radius(A){(A<0||A===1/0)&&(A=-1),this.uniforms.uRadius=A}};let o=a;o.defaults={strength:.1,center:[0,0],innerRadius:0,radius:-1,maxKernelSize:32};function _extends(){return _extends=Object.assign?Object.assign.bind():function(A){for(var E=1;E<arguments.length;E++){var C=arguments[E];for(var R in C)({}).hasOwnProperty.call(C,R)&&(A[R]=C[R])}return A},_extends.apply(null,arguments)}function _objectWithoutPropertiesLoose(A,E){if(A==null)return{};var C={};for(var R in A)if({}.hasOwnProperty.call(A,R)){if(E.indexOf(R)!==-1)continue;C[R]=A[R]}return C}var RGB_MAX=255,SV_MAX=100,rgbaToHsva=A=>{var{r:E,g:C,b:R,a:I}=A,B=Math.max(E,C,R),U=B-Math.min(E,C,R),V=U?B===E?(C-R)/U:B===C?2+(R-E)/U:4+(E-C)/U:0;return{h:60*(V<0?V+6:V),s:B?U/B*SV_MAX:0,v:B/RGB_MAX*SV_MAX,a:I}},hsvaToHslaString=A=>{var{h:E,s:C,l:R,a:I}=hsvaToHsla(A);return"hsla("+E+", "+C+"%, "+R+"%, "+I+")"},hsvaToHsla=A=>{var{h:E,s:C,v:R,a:I}=A,B=(200-C)*R/SV_MAX;return{h:E,s:B>0&&B<200?C*R/SV_MAX/(B<=SV_MAX?B:200-B)*SV_MAX:0,l:B/2,a:I}},rgbaToHex$1=A=>{var{r:E,g:C,b:R}=A,I=E<<16|C<<8|R;return"#"+(B=>new Array(7-B.length).join("0")+B)(I.toString(16))},rgbaToHexa=A=>{var{r:E,g:C,b:R,a:I}=A,B=typeof I=="number"&&(I*255|256).toString(16).slice(1);return""+rgbaToHex$1({r:E,g:C,b:R,a:I})+(B||"")},hexToHsva=A=>rgbaToHsva(hexToRgba(A)),hexToRgba=A=>{var E=A.replace("#","");/^#?/.test(A)&&E.length===3&&(A="#"+E.charAt(0)+E.charAt(0)+E.charAt(1)+E.charAt(1)+E.charAt(2)+E.charAt(2));var C=new RegExp("[A-Za-z0-9]{2}","g"),[R,I,B=0,U]=A.match(C).map(V=>parseInt(V,16));return{r:R,g:I,b:B,a:(U??255)/RGB_MAX}},hsvaToRgba=A=>{var{h:E,s:C,v:R,a:I}=A,B=E/60,U=C/SV_MAX,V=R/SV_MAX,X=Math.floor(B)%6,K=B-Math.floor(B),J=RGB_MAX*V*(1-U),Y=RGB_MAX*V*(1-U*K),Z=RGB_MAX*V*(1-U*(1-K));V*=RGB_MAX;var _e={};switch(X){case 0:_e.r=V,_e.g=Z,_e.b=J;break;case 1:_e.r=Y,_e.g=V,_e.b=J;break;case 2:_e.r=J,_e.g=V,_e.b=Z;break;case 3:_e.r=J,_e.g=Y,_e.b=V;break;case 4:_e.r=Z,_e.g=J,_e.b=V;break;case 5:_e.r=V,_e.g=J,_e.b=Y;break}return _e.r=Math.round(_e.r),_e.g=Math.round(_e.g),_e.b=Math.round(_e.b),_extends({},_e,{a:I})},hsvaToRgbaString=A=>{var{r:E,g:C,b:R,a:I}=hsvaToRgba(A);return"rgba("+E+", "+C+", "+R+", "+I+")"},rgbaToRgb=A=>{var{r:E,g:C,b:R}=A;return{r:E,g:C,b:R}},hslaToHsl=A=>{var{h:E,s:C,l:R}=A;return{h:E,s:C,l:R}},hsvaToHex=A=>rgbaToHex$1(hsvaToRgba(A)),hsvaToHsv=A=>{var{h:E,s:C,v:R}=A;return{h:E,s:C,v:R}},rgbToXY=A=>{var{r:E,g:C,b:R}=A,I=function(J){return J<=.04045?J/12.92:Math.pow((J+.055)/1.055,2.4)},B=I(E/255),U=I(C/255),V=I(R/255),X={};return X.x=B*.4124+U*.3576+V*.1805,X.y=B*.2126+U*.7152+V*.0722,X.bri=B*.0193+U*.1192+V*.9505,X},color=A=>{var E,C,R,I,B,U,V,X,K;return typeof A=="string"&&validHex$1(A)?(U=hexToHsva(A),X=A):typeof A!="string"&&(U=A),U&&(R=hsvaToHsv(U),B=hsvaToHsla(U),I=hsvaToRgba(U),K=rgbaToHexa(I),X=hsvaToHex(U),C=hslaToHsl(B),E=rgbaToRgb(I),V=rgbToXY(E)),{rgb:E,hsl:C,hsv:R,rgba:I,hsla:B,hsva:U,hex:X,hexa:K,xy:V}},validHex$1=A=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(A);function useEventCallback$1(A){var E=React.useRef(A);return React.useEffect(()=>{E.current=A}),React.useCallback((C,R)=>E.current&&E.current(C,R),[])}var isTouch=A=>"touches"in A,preventDefaultMove=A=>{!isTouch(A)&&A.preventDefault&&A.preventDefault()},clamp=function(E,C,R){return C===void 0&&(C=0),R===void 0&&(R=1),E>R?R:E<C?C:E},getRelativePosition=(A,E)=>{var C=A.getBoundingClientRect(),R=isTouch(E)?E.touches[0]:E;return{left:clamp((R.pageX-(C.left+window.pageXOffset))/C.width),top:clamp((R.pageY-(C.top+window.pageYOffset))/C.height),width:C.width,height:C.height,x:R.pageX-(C.left+window.pageXOffset),y:R.pageY-(C.top+window.pageYOffset)}},_excluded$8=["prefixCls","className","onMove","onDown"],Interactive=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-interactive",className:R,onMove:I,onDown:B}=A,U=_objectWithoutPropertiesLoose(A,_excluded$8),V=React.useRef(null),X=React.useRef(!1),[K,J]=React.useState(!1),Y=useEventCallback$1(I),Z=useEventCallback$1(B),_e=Ae=>X.current&&!isTouch(Ae)?!1:(X.current=isTouch(Ae),!0),xe=React.useCallback(Ae=>{if(preventDefaultMove(Ae),!!V.current){var Te=isTouch(Ae)?Ae.touches.length>0:Ae.buttons>0;if(!Te){J(!1);return}Y==null||Y(getRelativePosition(V.current,Ae),Ae)}},[Y]),Se=React.useCallback(()=>J(!1),[]),Pe=React.useCallback(Ae=>{Ae?(window.addEventListener(X.current?"touchmove":"mousemove",xe),window.addEventListener(X.current?"touchend":"mouseup",Se)):(window.removeEventListener("mousemove",xe),window.removeEventListener("mouseup",Se),window.removeEventListener("touchmove",xe),window.removeEventListener("touchend",Se))},[xe,Se]);React.useEffect(()=>(Pe(K),()=>{Pe(!1)}),[K,xe,Se,Pe]);var Ee=React.useCallback(Ae=>{preventDefaultMove(Ae.nativeEvent),_e(Ae.nativeEvent)&&V.current&&(Z==null||Z(getRelativePosition(V.current,Ae.nativeEvent),Ae.nativeEvent),J(!0))},[Z]);return jsxRuntimeExports.jsx("div",_extends({},U,{className:[C,R||""].filter(Boolean).join(" "),style:_extends({},U.style,{touchAction:"none"}),ref:V,tabIndex:0,onMouseDown:Ee,onTouchStart:Ee}))});Interactive.displayName="Interactive";const Interactive$1=Interactive;var Pointer$1=A=>{var{className:E,color:C,left:R,top:I,prefixCls:B}=A,U={position:"absolute",top:I,left:R},V={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:C};return React.useMemo(()=>jsxRuntimeExports.jsx("div",{className:B+"-pointer "+(E||""),style:U,children:jsxRuntimeExports.jsx("div",{className:B+"-fill",style:V})}),[I,R,C,E,B])},_excluded$7=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],Saturation=React.forwardRef((A,E)=>{var C,{prefixCls:R="w-color-saturation",radius:I=0,pointer:B,className:U,hue:V=0,style:X,hsva:K,onChange:J}=A,Y=_objectWithoutPropertiesLoose(A,_excluded$7),Z=_extends({width:200,height:200,borderRadius:I},X,{position:"relative"}),[_e,xe]=React.useState({left:0,top:0,x:0,y:0,width:0,height:0}),Se=(Ee,Ae)=>{xe(Ee),J&&K&&J({h:K.h,s:Ee.left*100,v:(1-Ee.top)*100,a:K.a})},Pe=React.useMemo(()=>{if(!K)return null;var Ee=clamp(_e.x,0,_e.width)+"px",Ae=clamp(_e.y,0,_e.height)+"px";(_e.width===0||_e.height===0)&&(Ee=K.s+"%",Ae=100-K.v+"%");var Te={top:Ae,left:Ee,color:hsvaToHslaString(K)};return B&&typeof B=="function"?B(_extends({prefixCls:R},Te)):jsxRuntimeExports.jsx(Pointer$1,_extends({prefixCls:R},Te))},[K,_e,B,R]);return jsxRuntimeExports.jsx(Interactive$1,_extends({className:[R,U||""].filter(Boolean).join(" ")},Y,{style:_extends({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((C=K==null?void 0:K.h)!=null?C:V)+", 100%, 50%))"},Z),ref:E,onMove:Se,onDown:Se,children:Pe}))});Saturation.displayName="Saturation";const Saturation$1=Saturation;var _excluded$6=["className","prefixCls","left","top","style","fillProps"],Pointer=A=>{var{className:E,prefixCls:C,left:R,top:I,style:B,fillProps:U}=A,V=_objectWithoutPropertiesLoose(A,_excluded$6),X=_extends({},B,{position:"absolute",left:R,top:I}),K=_extends({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},U==null?void 0:U.style,{transform:R?"translate(-9px, -1px)":"translate(-1px, -9px)"});return jsxRuntimeExports.jsx("div",_extends({className:C+"-pointer "+(E||""),style:X},V,{children:jsxRuntimeExports.jsx("div",_extends({className:C+"-fill"},U,{style:K}))}))},_excluded$5=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],BACKGROUND_IMG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",Alpha=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-alpha",className:R,hsva:I,background:B,bgProps:U={},innerProps:V={},pointerProps:X={},radius:K=0,width:J,height:Y=16,direction:Z="horizontal",style:_e,onChange:xe,pointer:Se}=A,Pe=_objectWithoutPropertiesLoose(A,_excluded$5),Ee=ke=>{xe&&xe(_extends({},I,{a:Z==="horizontal"?ke.left:ke.top}),ke)},Ae=hsvaToHslaString(Object.assign({},I,{a:1})),Te="linear-gradient(to "+(Z==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+Ae+" 100%)",we={};Z==="horizontal"?we.left=I.a*100+"%":we.top=I.a*100+"%";var Ie=_extends({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:K,background:"url("+BACKGROUND_IMG+") left center",backgroundColor:"var(--alpha-background-color)"},{width:J,height:Y},_e,{position:"relative"}),Fe=Se&&typeof Se=="function"?Se(_extends({prefixCls:C},X,we)):jsxRuntimeExports.jsx(Pointer,_extends({},X,{prefixCls:C},we));return jsxRuntimeExports.jsxs("div",_extends({},Pe,{className:[C,C+"-"+Z,R||""].filter(Boolean).join(" "),style:Ie,ref:E,children:[jsxRuntimeExports.jsx("div",_extends({},U,{style:_extends({inset:0,position:"absolute",background:B||Te,borderRadius:K},U.style)})),jsxRuntimeExports.jsx(Interactive$1,_extends({},V,{style:_extends({},V.style,{inset:0,zIndex:1,position:"absolute"}),onMove:Ee,onDown:Ee,children:Fe}))]}))});Alpha.displayName="Alpha";const Alpha$1=Alpha;var _excluded$4=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],validHex=A=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(A),getNumberValue=A=>Number(String(A).replace(/%/g,"")),EditableInput=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-editable-input",placement:R="bottom",label:I,value:B,className:U,style:V,labelStyle:X,inputStyle:K,onChange:J,onBlur:Y,renderInput:Z}=A,_e=_objectWithoutPropertiesLoose(A,_excluded$4),[xe,Se]=React.useState(B),Pe=React.useRef(!1);React.useEffect(()=>{A.value!==xe&&(Pe.current||Se(A.value))},[A.value]);function Ee(ke,Le){var Ge=(Le||ke.target.value).trim().replace(/^#/,"");validHex(Ge)&&J&&J(ke,Ge);var He=getNumberValue(Ge);isNaN(He)||J&&J(ke,He),Se(Ge)}function Ae(ke){Pe.current=!1,Se(A.value),Y&&Y(ke)}var Te={};R==="bottom"&&(Te.flexDirection="column"),R==="top"&&(Te.flexDirection="column-reverse"),R==="left"&&(Te.flexDirection="row-reverse");var we=_extends({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},Te,V),Ie=_extends({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},K),Fe=_extends({value:xe,onChange:Ee,onBlur:Ae,autoComplete:"off",onFocus:()=>Pe.current=!0},_e,{style:Ie});return jsxRuntimeExports.jsxs("div",{className:[C,U||""].filter(Boolean).join(" "),style:we,children:[Z?Z(Fe,E):jsxRuntimeExports.jsx("input",_extends({ref:E},Fe)),I&&jsxRuntimeExports.jsx("span",{style:_extends({color:"var(--editable-input-label-color)",textTransform:"capitalize"},X),children:I})]})});EditableInput.displayName="EditableInput";const EditableInput$1=EditableInput;var _excluded$3=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],EditableInputRGBA=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-editable-input-rgba",hsva:R,placement:I="bottom",rProps:B={},gProps:U={},bProps:V={},aProps:X={},className:K,style:J,onChange:Y}=A,Z=_objectWithoutPropertiesLoose(A,_excluded$3),_e=R?hsvaToRgba(R):{};function xe(Pe){var Ee=Number(Pe.target.value);Ee&&Ee>255&&(Pe.target.value="255"),Ee&&Ee<0&&(Pe.target.value="0")}var Se=(Pe,Ee,Ae)=>{typeof Pe=="number"&&(Ee==="a"&&(Pe<0&&(Pe=0),Pe>100&&(Pe=100),Y&&Y(color(rgbaToHsva(_extends({},_e,{a:Pe/100}))))),Pe>255&&(Pe=255,Ae.target.value="255"),Pe<0&&(Pe=0,Ae.target.value="0"),Ee==="r"&&Y&&Y(color(rgbaToHsva(_extends({},_e,{r:Pe})))),Ee==="g"&&Y&&Y(color(rgbaToHsva(_extends({},_e,{g:Pe})))),Ee==="b"&&Y&&Y(color(rgbaToHsva(_extends({},_e,{b:Pe})))))};return jsxRuntimeExports.jsxs("div",_extends({ref:E,className:[C,K||""].filter(Boolean).join(" ")},Z,{style:_extends({fontSize:11,display:"flex"},J),children:[jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"R",value:_e.r||0,onBlur:xe,placement:I,onChange:(Pe,Ee)=>Se(Ee,"r",Pe)},B,{style:_extends({},B.style)})),jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"G",value:_e.g||0,onBlur:xe,placement:I,onChange:(Pe,Ee)=>Se(Ee,"g",Pe)},U,{style:_extends({marginLeft:5},B.style)})),jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"B",value:_e.b||0,onBlur:xe,placement:I,onChange:(Pe,Ee)=>Se(Ee,"b",Pe)},V,{style:_extends({marginLeft:5},V.style)})),X&&jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"A",value:_e.a?parseInt(String(_e.a*100),10):0,onBlur:xe,placement:I,onChange:(Pe,Ee)=>Se(Ee,"a",Pe)},X,{style:_extends({marginLeft:5},X.style)}))]}))});EditableInputRGBA.displayName="EditableInputRGBA";const RGBA=EditableInputRGBA;var _excluded$2=["prefixCls","className","hue","onChange","direction"],Hue=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-hue",className:R,hue:I=0,onChange:B,direction:U="horizontal"}=A,V=_objectWithoutPropertiesLoose(A,_excluded$2);return jsxRuntimeExports.jsx(Alpha$1,_extends({ref:E,className:C+" "+(R||"")},V,{direction:U,background:"linear-gradient(to "+(U==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:I,s:100,v:100,a:I/360},onChange:(X,K)=>{B&&B({h:U==="horizontal"?360*K.left:360*K.top})}}))});Hue.displayName="Hue";const Hue$1=Hue;var _excluded$1=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],Swatch=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-swatch",className:R,color:I,colors:B=[],style:U,rectProps:V={},onChange:X,addonAfter:K,addonBefore:J,rectRender:Y}=A,Z=_objectWithoutPropertiesLoose(A,_excluded$1),_e=_extends({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},V.style),xe=(Se,Pe)=>{X&&X(hexToHsva(Se),color(hexToHsva(Se)),Pe)};return jsxRuntimeExports.jsxs("div",_extends({ref:E},Z,{className:[C,R||""].filter(Boolean).join(" "),style:_extends({display:"flex",flexWrap:"wrap",position:"relative"},U),children:[J&&React.isValidElement(J)&&J,B&&Array.isArray(B)&&B.map((Se,Pe)=>{var Ee="",Ae="";typeof Se=="string"&&(Ee=Se,Ae=Se),typeof Se=="object"&&Se.color&&(Ee=Se.title||Se.color,Ae=Se.color);var Te=I&&I.toLocaleLowerCase()===Ae.toLocaleLowerCase(),we=Y&&Y({title:Ee,color:Ae,checked:!!Te,style:_extends({},_e,{background:Ae}),onClick:Fe=>xe(Ae,Fe)});if(we)return jsxRuntimeExports.jsx(React.Fragment,{children:we},Pe);var Ie=V.children&&React.isValidElement(V.children)?React.cloneElement(V.children,{color:Ae,checked:Te}):null;return jsxRuntimeExports.jsx("div",_extends({tabIndex:0,title:Ee,onClick:Fe=>xe(Ae,Fe)},V,{children:Ie,style:_extends({},_e,{background:Ae})}),Pe)}),K&&React.isValidElement(K)&&K]}))});Swatch.displayName="Swatch";const Swatch$1=Swatch;var _excluded=["prefixCls","className","onChange","width","presetColors","color","editableDisable","disableAlpha","style"],PRESET_COLORS=["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],Bar=A=>jsxRuntimeExports.jsx("div",{style:{boxShadow:"rgb(0 0 0 / 60%) 0px 0px 2px",width:4,top:1,bottom:1,left:A.left,borderRadius:1,position:"absolute",backgroundColor:"#fff"}}),Sketch=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-sketch",className:R,onChange:I,width:B=218,presetColors:U=PRESET_COLORS,color:V,editableDisable:X=!0,disableAlpha:K=!1,style:J}=A,Y=_objectWithoutPropertiesLoose(A,_excluded),[Z,_e]=React.useState({h:209,s:36,v:90,a:1});React.useEffect(()=>{typeof V=="string"&&validHex$1(V)&&_e(hexToHsva(V)),typeof V=="object"&&_e(V)},[V]);var xe=Fe=>{_e(Fe),I&&I(color(Fe))},Se=(Fe,ke)=>{typeof Fe=="string"&&validHex$1(Fe)&&/(3|6)/.test(String(Fe.length))&&xe(hexToHsva(Fe))},Pe=Fe=>xe(_extends({},Z,{a:Fe.a})),Ee=Fe=>xe(_extends({},Z,Fe,{a:Z.a})),Ae=_extends({"--sketch-background":"rgb(255, 255, 255)","--sketch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px","--sketch-swatch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset","--sketch-alpha-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset","--sketch-swatch-border-top":"1px solid rgb(238, 238, 238)",background:"var(--sketch-background)",borderRadius:4,boxShadow:"var(--sketch-box-shadow)",width:B},J),Te={borderRadius:2,background:hsvaToRgbaString(Z),boxShadow:"var(--sketch-alpha-box-shadow)"},we={borderTop:"var(--sketch-swatch-border-top)",paddingTop:10,paddingLeft:10},Ie={marginRight:10,marginBottom:10,borderRadius:3,boxShadow:"var(--sketch-swatch-box-shadow)"};return jsxRuntimeExports.jsxs("div",_extends({},Y,{className:C+" "+(R||""),ref:E,style:Ae,children:[jsxRuntimeExports.jsxs("div",{style:{padding:"10px 10px 8px"},children:[jsxRuntimeExports.jsx(Saturation$1,{hsva:Z,style:{width:"auto",height:150},onChange:Ee}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",marginTop:4},children:[jsxRuntimeExports.jsxs("div",{style:{flex:1},children:[jsxRuntimeExports.jsx(Hue$1,{width:"auto",height:10,hue:Z.h,pointer:Bar,innerProps:{style:{marginLeft:1,marginRight:5}},onChange:Fe=>xe(_extends({},Z,Fe))}),!K&&jsxRuntimeExports.jsx(Alpha$1,{width:"auto",height:10,hsva:Z,pointer:Bar,style:{marginTop:4},innerProps:{style:{marginLeft:1,marginRight:5}},onChange:Pe})]}),!K&&jsxRuntimeExports.jsx(Alpha$1,{width:24,height:24,hsva:Z,radius:2,style:{marginLeft:4},bgProps:{style:{background:"transparent"}},innerProps:{style:Te},pointer:()=>jsxRuntimeExports.jsx(React.Fragment,{})})]})]}),X&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",margin:"0 10px 3px 10px"},children:[jsxRuntimeExports.jsx(EditableInput$1,{label:"Hex",value:hsvaToHex(Z).replace(/^#/,"").toLocaleUpperCase(),onChange:(Fe,ke)=>Se(ke),style:{minWidth:58}}),jsxRuntimeExports.jsx(RGBA,{hsva:Z,style:{marginLeft:6},aProps:K?!1:{},onChange:Fe=>xe(Fe.hsva)})]}),U&&U.length>0&&jsxRuntimeExports.jsx(Swatch$1,{style:we,colors:U,color:hsvaToHex(Z),onChange:Fe=>xe(Fe),rectProps:{style:Ie}})]}))});Sketch.displayName="Sketch";const Sketch$1=Sketch,ColorPickerPortal=({position:A,color:E,onChange:C,onClose:R})=>{const I=React__namespace.useCallback(X=>{C(X.hex)},[C]);React__namespace.useEffect(()=>{const X=K=>{var J;K.target instanceof Node&&!((J=document.getElementById("color-picker-portal"))!=null&&J.contains(K.target))&&R()};return document.addEventListener("mousedown",X),()=>{document.removeEventListener("mousedown",X)}},[R]);const B=React__namespace.useCallback(()=>{const Y=window.innerWidth,Z=window.innerHeight;let{x:_e,y:xe}=A;return _e+220+10>Y&&(_e=Y-220-10),xe+300+10>Z&&(xe=xe-300-10),{x:_e,y:xe}},[A]),{x:U,y:V}=B();return reactDom.createPortal(jsxRuntimeExports.jsxs("div",{style:{position:"fixed",left:U,top:V,zIndex:9999,backgroundColor:"white",borderRadius:"8px",boxShadow:"0 10px 15px rgba(0, 0, 0, 0.1)",padding:"8px"},children:[jsxRuntimeExports.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:-1},onClick:R}),jsxRuntimeExports.jsx(Sketch$1,{color:E,onChange:I})]}),document.body)},MENUS_ICONS={ARROW_DOWN:"▼",ARROW_UP:"▲",COLOR:"🎨",COPY:"📋",DELETE:"❌",TRASH:"🗑️",EYE:"👁️",EYE_SLASH:"👁️‍🗨️",LOCK:"🔒",UNLOCK:"🔓",PASTE:"📋",PENCIL:"✏️",PLUS:"➕",MINUS:"➖",ROTATE:"🔄",SCALE:"⚖️",SAVE:"💾",RESET:"🔄",SETTINGS:"⚙️",ZOOM_IN:"🔍",ZOOM_OUT:"🔍",ALIGN_LEFT:"☰",ALIGN_CENTER:"≣",ALIGN_RIGHT:"⋰",DISTRIBUTE_HORIZONTALLY:"↔️",DISTRIBUTE_VERTICALLY:"↕️",FLIP_HORIZONTAL:"↔️",FLIP_VERTICAL:"↕️",ROTATE_LEFT:"↺",ROTATE_RIGHT:"↻",SCALE_DOWN:"➖",SCALE_UP:"➕",ADJUST_EQUALISER:"🔊",ADJUST_EQUALISER_SLIDERS:"🎚️",ADJUST_HORIZONTAL_SLIDERS:"🔲",COLOR_FILL:"🎨"},MAX_RECENT_COLORS=10,useDropDownMenu=A=>{const E=React.useRef(null),C=react.useApp();return{createMenu:React.useCallback((I,B,U)=>{if(!I||!C)return;const V=new PIXI__namespace.Container;C.stage.addChild(V),E.current=V;const X=132,K=(32+4)*B.length+8,J=new PIXI__namespace.Graphics;J.beginFill(16777215,.95),J.lineStyle(1,14540253),J.drawRoundedRect(0,0,X,K,4),J.endFill(),V.addChild(J);const Y=new F;Y.alpha=.2,Y.blur=2,Y.distance=3,V.filters=[Y],B.forEach((_e,xe)=>{const Se=new PIXI__namespace.Container;Se.eventMode="static";const Pe=new PIXI__namespace.Graphics;Pe.beginFill(16777215,0),Pe.drawRect(0,0,X,32),Pe.endFill(),Se.addChild(Pe);const Ee=new PIXI__namespace.Text(_e.icon,{fontSize:14,fontFamily:"Arial",fill:3355443});Ee.x=8,Ee.y=32/2-Ee.height/2,Se.addChild(Ee);const Ae=new PIXI__namespace.Text(_e.label,{fontSize:12,fontFamily:"Arial",fill:3355443});Ae.x=32+4,Ae.y=32/2-Ae.height/2,Se.addChild(Ae),Se.y=xe*(32+4)+4,Se.on("pointerover",()=>{Pe.clear(),Pe.beginFill(15790320),Pe.drawRect(0,0,X,32),Pe.endFill()}).on("pointerout",()=>{Pe.clear(),Pe.beginFill(16777215,0),Pe.drawRect(0,0,X,32),Pe.endFill()}).on("pointerup",()=>{_e.action(),A(!1)}),V.addChild(Se)}),V.x=U.x,V.y=U.y;const Z=_e=>{const xe=new PIXI__namespace.Point(_e.global.x,_e.global.y);V.getBounds().contains(xe.x,xe.y)||A(!1)};return C.stage.on("pointerdown",Z),()=>{C.stage.off("pointerdown",Z),V.parent&&V.parent.removeChild(V)}},[]),dropdownRef:E}},TransformerMenu=({PixiTransformer:A})=>{const E=React.useRef(null),C=React.useRef(null),R=React.useRef(null),I=react.useApp(),[B,U]=React.useState(!1),[V,X]=React.useState({x:0,y:0}),[,K]=React.useState(!1),[J,Y]=React.useState("#000000"),[,Z]=React.useState({x:0,y:0}),[_e,xe]=React.useState(!1),[Se,Pe]=React.useState({x:0,y:0}),[Ee,Ae]=React.useState(()=>{const Me=localStorage.getItem("recentColors");return Me?JSON.parse(Me):[]}),{createMenu:Te,dropdownRef:we}=useDropDownMenu(xe),Ie=32,Fe=4,ke=8,Le=[{icon:"B",action:()=>{},tooltip:"Bold"},{icon:"I",action:()=>{},tooltip:"Italic"},{icon:"U",action:()=>{},tooltip:"Underline"},{icon:"🎨",action:(Me,Ne)=>{const De={x:V.x+Me,y:V.y+Ne+33},Xe=I.view.getBoundingClientRect(),qe=Xe.left+De.x,Ye=Xe.top+De.y;$e(qe,Ye)},tooltip:"Color",withPreview:!0},{icon:MENUS_ICONS.ARROW_DOWN,action:(Me,Ne)=>{je(Me,Ne)},tooltip:"Alignment Options"}],Ge=[{icon:MENUS_ICONS.ALIGN_LEFT,action:()=>console.log("Align Left"),label:"Left"},{icon:MENUS_ICONS.ALIGN_CENTER,action:()=>console.log("Align Center"),label:"Center"},{icon:MENUS_ICONS.ALIGN_RIGHT,action:()=>console.log("Align Right"),label:"Right"},{icon:"↑",action:()=>console.log("bring forward"),label:"Bring Forward"},{icon:"↓",action:()=>console.log("send backward"),label:"Send Backward"}],He=(Ie+Fe)*Le.length+ke*2-Fe,Be=Ie+ke*2,je=React.useCallback((Me,Ne)=>{xe(De=>!De),Pe({x:V.x+Me,y:V.y+Ne+Ie+5})},[V,Ie]),Ue=React.useCallback(()=>{R.current&&(R.current.unmount(),K(!1)),we.current&&we.current.parent&&(we.current.parent.removeChild(we.current),we.current=null,xe(!1))},[]),ze=React.useCallback(()=>{const Me=document.createElement("div");return Me.id="color-picker-portal",document.body.appendChild(Me),C.current=Me,R.current=client.createRoot(Me),()=>{Me&&Me.parentNode&&document.body.removeChild(Me)}},[]);React.useEffect(()=>{ze()},[]);const Ve=React.useCallback(Me=>{Y(Me),Ae(Ne=>{const De=[Me,...Ne.filter(Xe=>Xe!==Me)].slice(0,MAX_RECENT_COLORS);return localStorage.setItem("recentColors",JSON.stringify(De)),De})},[]),Oe=React.useCallback(()=>{K(!1),R.current&&R.current.unmount()},[]),$e=React.useCallback((Me,Ne)=>{C.current&&R.current&&(Z({x:Me,y:Ne}),K(!0),(!R.current||!R.current._internalRoot)&&ze(),R.current.render(jsxRuntimeExports.jsx(ColorPickerPortal,{position:{x:Me,y:Ne},color:J,onChange:Ve,onClose:Oe,recentColors:Ee})))},[J,Ve,Oe]);React.useEffect(()=>{const Me=()=>{if(A.current){const De=A.current.getBounds();X({x:De.x+De.width/2-He/2,y:De.y+De.height})}},Ne=setTimeout(()=>{E.current&&(Me(),U(!0))},300);return()=>{clearTimeout(Ne)}},[]);const Re=React.useCallback(()=>{if(Ue(),A.current){const Me=A.current.getBounds();X({x:Me.x+Me.width/2-He/2,y:Me.y+Me.height})}},[Ue]);return React.useEffect(()=>{const Me=Ne=>{if(C.current){const De=C.current.firstChild;De&&!De.contains(Ne.target)&&Ue()}(Ne.type==="resize"||Ne.type==="scroll")&&Ue()};return window.addEventListener("click",Me),window.addEventListener("resize",Me),window.addEventListener("scroll",Me),()=>{window.removeEventListener("click",Me),window.removeEventListener("resize",Me),window.removeEventListener("scroll",Me)}},[Ue]),React.useEffect(()=>{var qe;if(!I||!B||!A.current||!E.current)return;const Me=A.current,Ne=new PIXI__namespace.Container;(qe=E.current)==null||qe.addChild(Ne),Me.addListener("transformchange",Re);const De=new PIXI__namespace.Graphics;De.beginFill(16777215,.9),De.lineStyle(1,14540253),De.drawRoundedRect(0,0,He,Be,4),De.endFill(),Ne.addChild(De);const Xe=new F;return Xe.alpha=.2,Xe.blur=2,Xe.distance=3,Ne.filters=[Xe],Le.forEach((Ye,Je)=>{const Ke=new PIXI__namespace.Container,rt=ke+(Ie+Fe)*Je,nt=ke,Qe=new PIXI__namespace.Graphics;Qe.beginFill(16119285),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill(),Ke.addChild(Qe);const Ze=new PIXI__namespace.Text(Ye.icon,{fontSize:14,fontFamily:"Arial",fill:Ye.icon==="🎨"?J:3355443,fontWeight:"bold"});Ze.x=Ie/2-Ze.width/2,Ze.y=Ie/2-Ze.height/2,Ke.addChild(Ze),Ke.x=rt,Ke.y=nt,Ke.interactive=!0,Ke.eventMode="static",Ke.on("pointerover",()=>{Qe.clear(),Qe.beginFill(15658734),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill(),Ye.icon!=="🎨"&&(Ze.style.fill=0)}),Ke.on("pointerout",()=>{Qe.clear(),Qe.beginFill(16119285),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill(),Ye.icon!=="🎨"&&(Ze.style.fill=3355443)}),Ke.on("pointerdown",()=>{Qe.clear(),Qe.beginFill(14737632),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill()}),Ke.on("pointerup",()=>{Qe.clear(),Qe.beginFill(16119285),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill(),Ye.action(rt,nt)}),Ne.addChild(Ke)}),Ne.x=V.x,Ne.y=V.y,Ne.visible=Me.visible,()=>{E.current&&E.current.removeChild(Ne),A.current&&A.current.removeListener("transformchange",Re)}},[I,B,V,Le,He,Be,J]),React.useEffect(()=>Te(_e,Ge,Se),[_e,Ge,Se]),React.useEffect(()=>()=>{Ue()},[Ue]),jsxRuntimeExports.jsx(react.Sprite,{texture:PIXI__namespace.Texture.EMPTY,ref:E,x:10,y:10})},CYAN=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],initalTransforms$1={x:0,y:0,width:0,height:0,anchor:.5,animation:Animations.NONE,maxX:0,maxY:0,scale:1,rotation:0,effect:Effects.Normal,overlay:OverlayTypes.NONE,fontSize:10},AbstractContainer=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(!1),[I]=React.useState(!1),[B,U]=React.useState(!1),[V,X]=React.useState(),K=React.useRef(null),J=React.useRef(null),Y=React.useRef(null),Z=React.useRef(null),_e=React.useRef(null),xe=React.useRef(null),Se=React.useRef({isDragging:!1}),{tl:Pe}=React.useContext(GsapPixieContext),Ee=react.useApp(),Ae=Ee.screen.width,Te=Ee.screen.height,{uniqueId:we,visible:Ie,startAt:Fe,transformation:ke=initalTransforms$1,applyTransformer:Le,disabled:Ge,pointerdown:He,pointerout:Be,pointerover:je,isText:Ue,isDragging:ze,isGif:Ve,onDoubleClick:Oe,isTextEditMode:$e,handleDragFontSize:Re,handleDragWordWrap:Me}=A,{x:Ne=0,y:De=0,width:Xe,height:qe,scale:Ye=[1,1],rotation:Je=0,effect:Ke,overlay:rt,animation:nt=Animations.NONE,fontSize:Qe=16}=ke,Ze=useGsapEffect();useCustomEventListener(Events.COMPLETE,()=>{K.current}),React__namespace.useImperativeHandle(E,()=>({getIsTransformerDragging:()=>I,getIsMouseOverTransformer:()=>B}),[I,B]),React__namespace.useEffect(()=>{K.current&&R(!0)},[]),React__namespace.useEffect(()=>{X({x:Ne,y:De,width:Xe,height:qe,animation:nt,maxX:Ae,maxY:Te})},[nt,Ne,De,Xe,qe,Ae,Te]),React__namespace.useEffect(()=>{if(J.current){if(Pe.current&&V){console.log("transforms 1001",V);const{x:ot,y:ht,animation:gt,maxX:pt,maxY:ft}=V||{},mt=Pe.current.progress(),ct=Ze.updateEffect(K.current,gt,{immediateRender:!1,x:ot,y:ht,overwrite:!0,maxX:pt,maxY:ft});console.log("transforms 10012x",V),_e.current&&(Pe.current.remove(_e.current),_e.current.progress(0).kill()),mt>.1?(ct.eventCallback("onComplete",()=>{ct.remove("onComplete"),Pe.current.add(ct,Fe),_e.current=ct}),ct.play()):(ct.progress(1),Pe.current.add(ct,Fe),_e.current=ct)}else _e.current&&_e.current.progress(0).kill();return()=>{}}},[Fe,V]);const tt=React__namespace.useCallback(()=>{U(!0),je&&!Se.current.isDragging&&je()},[]),st=ot=>parseFloat(ot.toFixed(2)),et=React__namespace.useCallback(()=>{var gt,pt;Se.current.isDragging=!0;const{width:ot}=K.current,ht={x:st(Number((gt=K.current)==null?void 0:gt.scale.x)),y:st(Number((pt=K.current)==null?void 0:pt.scale.y))};if(Ue){if(ht.x!==1&&ht.y!==1&&Y.current){const ft=Qe*ht.x;Re&&Re(ot,ft,ht)}else if(ht.x!==1)Me&&Me(ot,ht);else if(ht.y!==1){const ft=Qe*ht.x;Re&&Re(ot,ft,ht)}}},[Ue,Qe,Re,Me]),We=React__namespace.useCallback(ot=>{var bt,It;const{x:ht,y:gt,width:pt,height:ft,rotation:mt}=K.current,ct={x:st(Number((bt=K.current)==null?void 0:bt.scale.x)),y:st(Number((It=K.current)==null?void 0:It.scale.y))};let xt=Qe;Ue&&ct.x!==1&&ct.y!==1?(xt=Qe*ct.x,Re&&Re(pt,xt,ct)):Ue&&ct.x!==1&&Me&&Me(pt,ct),A.onAnchorTransformationEnd&&A.onAnchorTransformationEnd({uniqueId:we,transformation:{...ot.transformation,fontSize:xt}}),Se.current.isDragging=!1},[Ue,we,Qe,Re,Me]),it=react.withFilters(react.Container,{matrix:PIXI__namespace.filters.ColorMatrixFilter});return jsxRuntimeExports.jsxs(react.Container,{ref:J,children:[jsxRuntimeExports.jsx(react.Container,{ref:K,position:[Ne,De],pivot:[Ne,De],width:Xe,height:qe,scale:Ye,rotation:Je,...!Ge&&Ie&&!I&&!ze&&{interactive:!0,buttonMode:!0,pointerdown:He,pointerover:je,pointerout:Be},children:jsxRuntimeExports.jsxs(react.Container,{ref:xe,children:[!Ve&&jsxRuntimeExports.jsx(it,{scale:1,apply:({matrix:ot})=>{Ke===Effects.BlackAndWhite?ot.desaturate():Ke===Effects.Sepia?ot.sepia():Ke===Effects.RetroVintage||Ke===Effects.NightVision?ot.negative():Ke===Effects.Normal&&ot.reset()},matrix:{enabled:!0,matrix:CYAN},children:jsxRuntimeExports.jsx(react.Container,{ref:Y,children:A.children})}),Ve&&jsxRuntimeExports.jsx(react.Container,{ref:Y,children:A.children}),!isEmpty$2(rt)&&rt!==OverlayTypes.NONE&&rt!==OverlayTypes.NORMAL&&jsxRuntimeExports.jsx(PixiOverlayTilingSprite,{overlay:rt,width:Xe,height:qe,x:Ne,y:De}),jsxRuntimeExports.jsx(react.Sprite,{texture:PIXI__namespace.Texture.WHITE,alpha:0,x:Ne,y:De,width:Xe,height:qe,scale:Ye,rotation:Je})]})}),Le&&Ie&&!$e&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PixiTransformer,{pixiTransformerRef:Z,imageRef:K,isMounted:C,transformCommit:We,transformChange:et,mouseoverEvent:tt,uniqueId:we,isText:Ue,onDoubleClick:Oe}),jsxRuntimeExports.jsx(TransformerMenu,{PixiTransformer:Z,uniqueId:we,isText:!!Ue})]})]})}),withFiltersHook=A=>{const{contrast:E=1,saturation:C=1,brightness:R=1,alpha:I=1,red:B=1,blue:U=1,gamma:V=1,green:X=1,blurRadius:K=0,temperature:J=0,hue:Y=0,sharpness:Z=0,vignette:_e=0,noise:xe=0}=A||{},Se=new PIXI__namespace.Filter(null,`
1931
- precision mediump float;
1932
- varying vec2 vTextureCoord;
1933
- uniform sampler2D uSampler;
1934
- uniform float temperature;
1935
-
1936
- void main() {
1937
- vec4 color = texture2D(uSampler, vTextureCoord);
1938
- color.r = color.r + (temperature / 100.0);
1939
- color.b = color.b - (temperature / 100.0);
1940
- gl_FragColor = color;
1941
- }
1942
- `);Se.uniforms.temperature=J;const Pe=new n$3([0,-Z,0,-Z,1+4*Z,-Z,0,-Z,0]),Ee=new PIXI__namespace.filters.ColorMatrixFilter;Ee.hue(Y,!1);const Ae=new _$1(K,1,!0),Te=new r$2({vignetting:_e}),we=new PIXI__namespace.filters.NoiseFilter(xe);return{adjustmentFilter:new s$4({...V&&{gamma:V},...R&&{brightness:R},...E&&{contrast:E},...C&&{saturation:C},...B&&{red:B},...X&&{green:X},...U&&{blue:U},...I&&{alpha:I}}),blurFilter:Ae,hueFilter:Ee,sharpnessFilter:Pe,temperatureFilter:Se,vignetteFilter:Te,noiseFilter:we}},withEffectsHooks=()=>{const A=new PIXI__namespace.Filter(null,`
1943
- precision mediump float;
1944
- uniform mat3 uNightVisionMatrix;
1945
- varying vec2 vTextureCoord;
1946
- uniform sampler2D uSampler;
1947
-
1948
- void main(void) {
1949
- vec4 texColor = texture2D(uSampler, vTextureCoord);
1950
- vec3 color = texColor.rgb;
1951
- gl_FragColor = vec4(uNightVisionMatrix * vec3(color), texColor.a);
1952
- }
1953
- `),E=[.393,.769,.189,.349,.686,.168,.272,.534,.131];A.uniforms.uNightVisionMatrix=E;const C=new PIXI__namespace.Filter(null,`
1954
- precision mediump float;
1955
- varying vec2 vTextureCoord;
1956
- uniform sampler2D uSampler;
1957
- uniform vec4 vignetteColor;
1958
- uniform float vignetteSize;
1959
- uniform float vignetteStrength;
1960
-
1961
- void main(void) {
1962
- vec4 texColor = texture2D(uSampler, vTextureCoord);
1963
- vec2 delta = vTextureCoord - vec2(0.5);
1964
- float vignette = 1.0 - smoothstep(vignetteSize, 0.5, length(delta));
1965
- gl_FragColor = texColor * vignetteColor * vignetteStrength * vignette;
1966
- }
1967
- `);return C.uniforms.vignetteColor=[0,0,0,1],C.uniforms.vignetteSize=.7,C.uniforms.vignetteStrength=.6,{nightVisionFilter:A,vignetteFilter:C}},PixiImageSprite=React__namespace.forwardRef((A,E)=>{const C=React.useRef(null),R=React.useRef(null),{src:I,visible:B,disabled:U,transformation:{x:V,y:X,width:K,height:J,anchor:Y,colorCorrection:Z={},effect:_e},pointerdown:xe}=A,{blurRadius:Se=0,vignette:Pe=0,noise:Ee=0}=Z,{temperatureFilter:Ae,sharpnessFilter:Te,hueFilter:we,blurFilter:Ie,adjustmentFilter:Fe,vignetteFilter:ke,noiseFilter:Le}=withFiltersHook(Z),{nightVisionFilter:Ge}=withEffectsHooks();return React__namespace.useEffect(()=>()=>{console.log("PixiImageSprite unmounting")},[]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,children:jsxRuntimeExports.jsx(react.Container,{ref:R,children:jsxRuntimeExports.jsx(react.Sprite,{image:I,width:K,height:J,anchor:Y,ref:C,alpha:B?1:0,x:V,y:X,...!U&&B&&{interactive:!0,pointerdown:xe},filters:[Ae,Te,we,Fe,...Se>0?[Ie]:[],..._e===Effects.NightVision?[Ge]:[],...Pe>0?[ke]:[],...Ee>0?[Le]:[]]})})})});PixiImageSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"ImageSprite"};const buildCircle={build(A){const E=A.points;let C,R,I,B,U,V;if(A.type===SHAPES.CIRC){const xe=A.shape;C=xe.x,R=xe.y,U=V=xe.radius,I=B=0}else if(A.type===SHAPES.ELIP){const xe=A.shape;C=xe.x,R=xe.y,U=xe.width,V=xe.height,I=B=0}else{const xe=A.shape,Se=xe.width/2,Pe=xe.height/2;C=xe.x+Se,R=xe.y+Pe,U=V=Math.max(0,Math.min(xe.radius,Math.min(Se,Pe))),I=Se-U,B=Pe-V}if(!(U>=0&&V>=0&&I>=0&&B>=0)){E.length=0;return}const X=Math.ceil(2.3*Math.sqrt(U+V)),K=X*8+(I?4:0)+(B?4:0);if(E.length=K,K===0)return;if(X===0){E.length=8,E[0]=E[6]=C+I,E[1]=E[3]=R+B,E[2]=E[4]=C-I,E[5]=E[7]=R-B;return}let J=0,Y=X*4+(I?2:0)+2,Z=Y,_e=K;{const xe=I+U,Se=B,Pe=C+xe,Ee=C-xe,Ae=R+Se;if(E[J++]=Pe,E[J++]=Ae,E[--Y]=Ae,E[--Y]=Ee,B){const Te=R-Se;E[Z++]=Ee,E[Z++]=Te,E[--_e]=Te,E[--_e]=Pe}}for(let xe=1;xe<X;xe++){const Se=Math.PI/2*(xe/X),Pe=I+Math.cos(Se)*U,Ee=B+Math.sin(Se)*V,Ae=C+Pe,Te=C-Pe,we=R+Ee,Ie=R-Ee;E[J++]=Ae,E[J++]=we,E[--Y]=we,E[--Y]=Te,E[Z++]=Te,E[Z++]=Ie,E[--_e]=Ie,E[--_e]=Ae}{const xe=I,Se=B+V,Pe=C+xe,Ee=C-xe,Ae=R+Se,Te=R-Se;E[J++]=Pe,E[J++]=Ae,E[--_e]=Te,E[--_e]=Pe,I&&(E[J++]=Ee,E[J++]=Ae,E[--_e]=Te,E[--_e]=Ee)}},triangulate(A,E){const C=A.points,R=E.points,I=E.indices;if(C.length===0)return;let B=R.length/2;const U=B;let V,X;if(A.type!==SHAPES.RREC){const J=A.shape;V=J.x,X=J.y}else{const J=A.shape;V=J.x+J.width/2,X=J.y+J.height/2}const K=A.matrix;R.push(A.matrix?K.a*V+K.c*X+K.tx:V,A.matrix?K.b*V+K.d*X+K.ty:X),B++,R.push(C[0],C[1]);for(let J=2;J<C.length;J+=2)R.push(C[J],C[J+1]),I.push(B++,U,B);I.push(U+1,U,B)}};function fixOrientation(A,E=!1){const C=A.length;if(C<6)return;let R=0;for(let I=0,B=A[C-2],U=A[C-1];I<C;I+=2){const V=A[I],X=A[I+1];R+=(V-B)*(X+U),B=V,U=X}if(!E&&R>0||E&&R<=0){const I=C/2;for(let B=I+I%2;B<C;B+=2){const U=C-B-2,V=C-B-1,X=B,K=B+1;[A[U],A[X]]=[A[X],A[U]],[A[V],A[K]]=[A[K],A[V]]}}}const buildPoly={build(A){A.points=A.shape.points.slice()},triangulate(A,E){let C=A.points;const R=A.holes,I=E.points,B=E.indices;if(C.length>=6){fixOrientation(C,!1);const U=[];for(let K=0;K<R.length;K++){const J=R[K];fixOrientation(J.points,!0),U.push(C.length/2),C=C.concat(J.points)}const V=earcut$1(C,U,2);if(!V)return;const X=I.length/2;for(let K=0;K<V.length;K+=3)B.push(V[K]+X),B.push(V[K+1]+X),B.push(V[K+2]+X);for(let K=0;K<C.length;K++)I.push(C[K])}}},buildRectangle={build(A){const E=A.shape,C=E.x,R=E.y,I=E.width,B=E.height,U=A.points;U.length=0,I>=0&&B>=0&&U.push(C,R,C+I,R,C+I,R+B,C,R+B)},triangulate(A,E){const C=A.points,R=E.points;if(C.length===0)return;const I=R.length/2;R.push(C[0],C[1],C[2],C[3],C[6],C[7],C[4],C[5]),E.indices.push(I,I+1,I+2,I+1,I+2,I+3)}},buildRoundedRectangle={build(A){buildCircle.build(A)},triangulate(A,E){buildCircle.triangulate(A,E)}};var LINE_JOIN=(A=>(A.MITER="miter",A.BEVEL="bevel",A.ROUND="round",A))(LINE_JOIN||{}),LINE_CAP=(A=>(A.BUTT="butt",A.ROUND="round",A.SQUARE="square",A))(LINE_CAP||{});const curves={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(A,E=20){if(!this.adaptive||!A||isNaN(A))return E;let C=Math.ceil(A/this.maxLength);return C<this.minSegments?C=this.minSegments:C>this.maxSegments&&(C=this.maxSegments),C}};class ArcUtils{static curveTo(E,C,R,I,B,U){const V=U[U.length-2],X=U[U.length-1]-C,K=V-E,J=I-C,Y=R-E,Z=Math.abs(X*Y-K*J);if(Z<1e-8||B===0)return(U[U.length-2]!==E||U[U.length-1]!==C)&&U.push(E,C),null;const _e=X*X+K*K,xe=J*J+Y*Y,Se=X*J+K*Y,Pe=B*Math.sqrt(_e)/Z,Ee=B*Math.sqrt(xe)/Z,Ae=Pe*Se/_e,Te=Ee*Se/xe,we=Pe*Y+Ee*K,Ie=Pe*J+Ee*X,Fe=K*(Ee+Ae),ke=X*(Ee+Ae),Le=Y*(Pe+Te),Ge=J*(Pe+Te),He=Math.atan2(ke-Ie,Fe-we),Be=Math.atan2(Ge-Ie,Le-we);return{cx:we+E,cy:Ie+C,radius:B,startAngle:He,endAngle:Be,anticlockwise:K*J>Y*X}}static arc(E,C,R,I,B,U,V,X,K){const J=V-U,Y=curves._segmentsCount(Math.abs(J)*B,Math.ceil(Math.abs(J)/PI_2)*40),Z=J/(Y*2),_e=Z*2,xe=Math.cos(Z),Se=Math.sin(Z),Pe=Y-1,Ee=Pe%1/Pe;for(let Ae=0;Ae<=Pe;++Ae){const Te=Ae+Ee*Ae,we=Z+U+_e*Te,Ie=Math.cos(we),Fe=-Math.sin(we);K.push((xe*Ie+Se*Fe)*B+R,(xe*-Fe+Se*Ie)*B+I)}}}class BatchPart{constructor(){this.reset()}begin(E,C,R){this.reset(),this.style=E,this.start=C,this.attribStart=R}end(E,C){this.attribSize=C-this.attribStart,this.size=E-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class BezierUtils{static curveLength(E,C,R,I,B,U,V,X){let K=0,J=0,Y=0,Z=0,_e=0,xe=0,Se=0,Pe=0,Ee=0,Ae=0,Te=0,we=E,Ie=C;for(let Fe=1;Fe<=10;++Fe)J=Fe/10,Y=J*J,Z=Y*J,_e=1-J,xe=_e*_e,Se=xe*_e,Pe=Se*E+3*xe*J*R+3*_e*Y*B+Z*V,Ee=Se*C+3*xe*J*I+3*_e*Y*U+Z*X,Ae=we-Pe,Te=Ie-Ee,we=Pe,Ie=Ee,K+=Math.sqrt(Ae*Ae+Te*Te);return K}static curveTo(E,C,R,I,B,U,V){const X=V[V.length-2],K=V[V.length-1];V.length-=2;const J=curves._segmentsCount(BezierUtils.curveLength(X,K,E,C,R,I,B,U));let Y=0,Z=0,_e=0,xe=0,Se=0;V.push(X,K);for(let Pe=1,Ee=0;Pe<=J;++Pe)Ee=Pe/J,Y=1-Ee,Z=Y*Y,_e=Z*Y,xe=Ee*Ee,Se=xe*Ee,V.push(_e*X+3*Z*Ee*E+3*Y*xe*R+Se*B,_e*K+3*Z*Ee*C+3*Y*xe*I+Se*U)}}function square(A,E,C,R,I,B,U,V){const X=A-C*I,K=E-R*I,J=A+C*B,Y=E+R*B;let Z,_e;U?(Z=R,_e=-C):(Z=-R,_e=C);const xe=X+Z,Se=K+_e,Pe=J+Z,Ee=Y+_e;return V.push(xe,Se,Pe,Ee),2}function round(A,E,C,R,I,B,U,V){const X=C-A,K=R-E;let J=Math.atan2(X,K),Y=Math.atan2(I-A,B-E);V&&J<Y?J+=Math.PI*2:!V&&J>Y&&(Y+=Math.PI*2);let Z=J;const _e=Y-J,xe=Math.abs(_e),Se=Math.sqrt(X*X+K*K),Pe=(15*xe*Math.sqrt(Se)/Math.PI>>0)+1,Ee=_e/Pe;if(Z+=Ee,V){U.push(A,E,C,R);for(let Ae=1,Te=Z;Ae<Pe;Ae++,Te+=Ee)U.push(A,E,A+Math.sin(Te)*Se,E+Math.cos(Te)*Se);U.push(A,E,I,B)}else{U.push(C,R,A,E);for(let Ae=1,Te=Z;Ae<Pe;Ae++,Te+=Ee)U.push(A+Math.sin(Te)*Se,E+Math.cos(Te)*Se,A,E);U.push(I,B,A,E)}return Pe*2}function buildNonNativeLine(A,E){const C=A.shape;let R=A.points||C.points.slice();const I=E.closePointEps;if(R.length===0)return;const B=A.lineStyle,U=new Point(R[0],R[1]),V=new Point(R[R.length-2],R[R.length-1]),X=C.type!==SHAPES.POLY||C.closeStroke,K=Math.abs(U.x-V.x)<I&&Math.abs(U.y-V.y)<I;if(X){R=R.slice(),K&&(R.pop(),R.pop(),V.set(R[R.length-2],R[R.length-1]));const $e=(U.x+V.x)*.5,Re=(V.y+U.y)*.5;R.unshift($e,Re),R.push($e,Re)}const J=E.points,Y=R.length/2;let Z=R.length;const _e=J.length/2,xe=B.width/2,Se=xe*xe,Pe=B.miterLimit*B.miterLimit;let Ee=R[0],Ae=R[1],Te=R[2],we=R[3],Ie=0,Fe=0,ke=-(Ae-we),Le=Ee-Te,Ge=0,He=0,Be=Math.sqrt(ke*ke+Le*Le);ke/=Be,Le/=Be,ke*=xe,Le*=xe;const je=B.alignment,Ue=(1-je)*2,ze=je*2;X||(B.cap===LINE_CAP.ROUND?Z+=round(Ee-ke*(Ue-ze)*.5,Ae-Le*(Ue-ze)*.5,Ee-ke*Ue,Ae-Le*Ue,Ee+ke*ze,Ae+Le*ze,J,!0)+2:B.cap===LINE_CAP.SQUARE&&(Z+=square(Ee,Ae,ke,Le,Ue,ze,!0,J))),J.push(Ee-ke*Ue,Ae-Le*Ue,Ee+ke*ze,Ae+Le*ze);for(let $e=1;$e<Y-1;++$e){Ee=R[($e-1)*2],Ae=R[($e-1)*2+1],Te=R[$e*2],we=R[$e*2+1],Ie=R[($e+1)*2],Fe=R[($e+1)*2+1],ke=-(Ae-we),Le=Ee-Te,Be=Math.sqrt(ke*ke+Le*Le),ke/=Be,Le/=Be,ke*=xe,Le*=xe,Ge=-(we-Fe),He=Te-Ie,Be=Math.sqrt(Ge*Ge+He*He),Ge/=Be,He/=Be,Ge*=xe,He*=xe;const Re=Te-Ee,Me=Ae-we,Ne=Te-Ie,De=Fe-we,Xe=Re*Ne+Me*De,qe=Me*Ne-De*Re,Ye=qe<0;if(Math.abs(qe)<.001*Math.abs(Xe)){J.push(Te-ke*Ue,we-Le*Ue,Te+ke*ze,we+Le*ze),Xe>=0&&(B.join===LINE_JOIN.ROUND?Z+=round(Te,we,Te-ke*Ue,we-Le*Ue,Te-Ge*Ue,we-He*Ue,J,!1)+4:Z+=2,J.push(Te-Ge*ze,we-He*ze,Te+Ge*Ue,we+He*Ue));continue}const Je=(-ke+Ee)*(-Le+we)-(-ke+Te)*(-Le+Ae),Ke=(-Ge+Ie)*(-He+we)-(-Ge+Te)*(-He+Fe),rt=(Re*Ke-Ne*Je)/qe,nt=(De*Je-Me*Ke)/qe,Qe=(rt-Te)*(rt-Te)+(nt-we)*(nt-we),Ze=Te+(rt-Te)*Ue,tt=we+(nt-we)*Ue,st=Te-(rt-Te)*ze,et=we-(nt-we)*ze,We=Math.min(Re*Re+Me*Me,Ne*Ne+De*De),it=Ye?Ue:ze,ot=We+it*it*Se,ht=Qe<=ot;let gt=B.join;if(gt===LINE_JOIN.MITER&&Qe/Se>Pe&&(gt=LINE_JOIN.BEVEL),ht)switch(gt){case LINE_JOIN.MITER:{J.push(Ze,tt,st,et);break}case LINE_JOIN.BEVEL:{Ye?J.push(Ze,tt,Te+ke*ze,we+Le*ze,Ze,tt,Te+Ge*ze,we+He*ze):J.push(Te-ke*Ue,we-Le*Ue,st,et,Te-Ge*Ue,we-He*Ue,st,et),Z+=2;break}case LINE_JOIN.ROUND:{Ye?(J.push(Ze,tt,Te+ke*ze,we+Le*ze),Z+=round(Te,we,Te+ke*ze,we+Le*ze,Te+Ge*ze,we+He*ze,J,!0)+4,J.push(Ze,tt,Te+Ge*ze,we+He*ze)):(J.push(Te-ke*Ue,we-Le*Ue,st,et),Z+=round(Te,we,Te-ke*Ue,we-Le*Ue,Te-Ge*Ue,we-He*Ue,J,!1)+4,J.push(Te-Ge*Ue,we-He*Ue,st,et));break}}else{switch(J.push(Te-ke*Ue,we-Le*Ue,Te+ke*ze,we+Le*ze),gt){case LINE_JOIN.MITER:{Ye?J.push(st,et,st,et):J.push(Ze,tt,Ze,tt),Z+=2;break}case LINE_JOIN.ROUND:{Ye?Z+=round(Te,we,Te+ke*ze,we+Le*ze,Te+Ge*ze,we+He*ze,J,!0)+2:Z+=round(Te,we,Te-ke*Ue,we-Le*Ue,Te-Ge*Ue,we-He*Ue,J,!1)+2;break}}J.push(Te-Ge*Ue,we-He*Ue,Te+Ge*ze,we+He*ze),Z+=2}}Ee=R[(Y-2)*2],Ae=R[(Y-2)*2+1],Te=R[(Y-1)*2],we=R[(Y-1)*2+1],ke=-(Ae-we),Le=Ee-Te,Be=Math.sqrt(ke*ke+Le*Le),ke/=Be,Le/=Be,ke*=xe,Le*=xe,J.push(Te-ke*Ue,we-Le*Ue,Te+ke*ze,we+Le*ze),X||(B.cap===LINE_CAP.ROUND?Z+=round(Te-ke*(Ue-ze)*.5,we-Le*(Ue-ze)*.5,Te-ke*Ue,we-Le*Ue,Te+ke*ze,we+Le*ze,J,!1)+2:B.cap===LINE_CAP.SQUARE&&(Z+=square(Te,we,ke,Le,Ue,ze,!1,J)));const Ve=E.indices,Oe=curves.epsilon*curves.epsilon;for(let $e=_e;$e<Z+_e-2;++$e)Ee=J[$e*2],Ae=J[$e*2+1],Te=J[($e+1)*2],we=J[($e+1)*2+1],Ie=J[($e+2)*2],Fe=J[($e+2)*2+1],!(Math.abs(Ee*(we-Fe)+Te*(Fe-Ae)+Ie*(Ae-we))<Oe)&&Ve.push($e,$e+1,$e+2)}function buildNativeLine(A,E){let C=0;const R=A.shape,I=A.points||R.points,B=R.type!==SHAPES.POLY||R.closeStroke;if(I.length===0)return;const U=E.points,V=E.indices,X=I.length/2,K=U.length/2;let J=K;for(U.push(I[0],I[1]),C=1;C<X;C++)U.push(I[C*2],I[C*2+1]),V.push(J,J+1),J++;B&&V.push(J,K)}function buildLine(A,E){A.lineStyle.native?buildNativeLine(A,E):buildNonNativeLine(A,E)}class QuadraticUtils{static curveLength(E,C,R,I,B,U){const V=E-2*R+B,X=C-2*I+U,K=2*R-2*E,J=2*I-2*C,Y=4*(V*V+X*X),Z=4*(V*K+X*J),_e=K*K+J*J,xe=2*Math.sqrt(Y+Z+_e),Se=Math.sqrt(Y),Pe=2*Y*Se,Ee=2*Math.sqrt(_e),Ae=Z/Se;return(Pe*xe+Se*Z*(xe-Ee)+(4*_e*Y-Z*Z)*Math.log((2*Se+Ae+xe)/(Ae+Ee)))/(4*Pe)}static curveTo(E,C,R,I,B){const U=B[B.length-2],V=B[B.length-1],X=curves._segmentsCount(QuadraticUtils.curveLength(U,V,E,C,R,I));let K=0,J=0;for(let Y=1;Y<=X;++Y){const Z=Y/X;K=U+(E-U)*Z,J=V+(C-V)*Z,B.push(K+(E+(R-E)*Z-K)*Z,J+(C+(I-C)*Z-J)*Z)}}}const FILL_COMMANDS={[SHAPES.POLY]:buildPoly,[SHAPES.CIRC]:buildCircle,[SHAPES.ELIP]:buildCircle,[SHAPES.RECT]:buildRectangle,[SHAPES.RREC]:buildRoundedRectangle},BATCH_POOL=[],DRAW_CALL_POOL=[];class Bounds{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(E){return this.minX>this.maxX||this.minY>this.maxY?Rectangle.EMPTY:(E=E||new Rectangle(0,0,1,1),E.x=this.minX,E.y=this.minY,E.width=this.maxX-this.minX,E.height=this.maxY-this.minY,E)}addPoint(E){this.minX=Math.min(this.minX,E.x),this.maxX=Math.max(this.maxX,E.x),this.minY=Math.min(this.minY,E.y),this.maxY=Math.max(this.maxY,E.y)}addPointMatrix(E,C){const{a:R,b:I,c:B,d:U,tx:V,ty:X}=E,K=R*C.x+B*C.y+V,J=I*C.x+U*C.y+X;this.minX=Math.min(this.minX,K),this.maxX=Math.max(this.maxX,K),this.minY=Math.min(this.minY,J),this.maxY=Math.max(this.maxY,J)}addQuad(E){let C=this.minX,R=this.minY,I=this.maxX,B=this.maxY,U=E[0],V=E[1];C=U<C?U:C,R=V<R?V:R,I=U>I?U:I,B=V>B?V:B,U=E[2],V=E[3],C=U<C?U:C,R=V<R?V:R,I=U>I?U:I,B=V>B?V:B,U=E[4],V=E[5],C=U<C?U:C,R=V<R?V:R,I=U>I?U:I,B=V>B?V:B,U=E[6],V=E[7],C=U<C?U:C,R=V<R?V:R,I=U>I?U:I,B=V>B?V:B,this.minX=C,this.minY=R,this.maxX=I,this.maxY=B}addFrame(E,C,R,I,B){this.addFrameMatrix(E.worldTransform,C,R,I,B)}addFrameMatrix(E,C,R,I,B){const U=E.a,V=E.b,X=E.c,K=E.d,J=E.tx,Y=E.ty;let Z=this.minX,_e=this.minY,xe=this.maxX,Se=this.maxY,Pe=U*C+X*R+J,Ee=V*C+K*R+Y;Z=Pe<Z?Pe:Z,_e=Ee<_e?Ee:_e,xe=Pe>xe?Pe:xe,Se=Ee>Se?Ee:Se,Pe=U*I+X*R+J,Ee=V*I+K*R+Y,Z=Pe<Z?Pe:Z,_e=Ee<_e?Ee:_e,xe=Pe>xe?Pe:xe,Se=Ee>Se?Ee:Se,Pe=U*C+X*B+J,Ee=V*C+K*B+Y,Z=Pe<Z?Pe:Z,_e=Ee<_e?Ee:_e,xe=Pe>xe?Pe:xe,Se=Ee>Se?Ee:Se,Pe=U*I+X*B+J,Ee=V*I+K*B+Y,Z=Pe<Z?Pe:Z,_e=Ee<_e?Ee:_e,xe=Pe>xe?Pe:xe,Se=Ee>Se?Ee:Se,this.minX=Z,this.minY=_e,this.maxX=xe,this.maxY=Se}addVertexData(E,C,R){let I=this.minX,B=this.minY,U=this.maxX,V=this.maxY;for(let X=C;X<R;X+=2){const K=E[X],J=E[X+1];I=K<I?K:I,B=J<B?J:B,U=K>U?K:U,V=J>V?J:V}this.minX=I,this.minY=B,this.maxX=U,this.maxY=V}addVertices(E,C,R,I){this.addVerticesMatrix(E.worldTransform,C,R,I)}addVerticesMatrix(E,C,R,I,B=0,U=B){const V=E.a,X=E.b,K=E.c,J=E.d,Y=E.tx,Z=E.ty;let _e=this.minX,xe=this.minY,Se=this.maxX,Pe=this.maxY;for(let Ee=R;Ee<I;Ee+=2){const Ae=C[Ee],Te=C[Ee+1],we=V*Ae+K*Te+Y,Ie=J*Te+X*Ae+Z;_e=Math.min(_e,we-B),Se=Math.max(Se,we+B),xe=Math.min(xe,Ie-U),Pe=Math.max(Pe,Ie+U)}this.minX=_e,this.minY=xe,this.maxX=Se,this.maxY=Pe}addBounds(E){const C=this.minX,R=this.minY,I=this.maxX,B=this.maxY;this.minX=E.minX<C?E.minX:C,this.minY=E.minY<R?E.minY:R,this.maxX=E.maxX>I?E.maxX:I,this.maxY=E.maxY>B?E.maxY:B}addBoundsMask(E,C){const R=E.minX>C.minX?E.minX:C.minX,I=E.minY>C.minY?E.minY:C.minY,B=E.maxX<C.maxX?E.maxX:C.maxX,U=E.maxY<C.maxY?E.maxY:C.maxY;if(R<=B&&I<=U){const V=this.minX,X=this.minY,K=this.maxX,J=this.maxY;this.minX=R<V?R:V,this.minY=I<X?I:X,this.maxX=B>K?B:K,this.maxY=U>J?U:J}}addBoundsMatrix(E,C){this.addFrameMatrix(C,E.minX,E.minY,E.maxX,E.maxY)}addBoundsArea(E,C){const R=E.minX>C.x?E.minX:C.x,I=E.minY>C.y?E.minY:C.y,B=E.maxX<C.x+C.width?E.maxX:C.x+C.width,U=E.maxY<C.y+C.height?E.maxY:C.y+C.height;if(R<=B&&I<=U){const V=this.minX,X=this.minY,K=this.maxX,J=this.maxY;this.minX=R<V?R:V,this.minY=I<X?I:X,this.maxX=B>K?B:K,this.maxY=U>J?U:J}}pad(E=0,C=E){this.isEmpty()||(this.minX-=E,this.maxX+=E,this.minY-=C,this.maxY+=C)}addFramePad(E,C,R,I,B,U){E-=B,C-=U,R+=B,I+=U,this.minX=this.minX<E?this.minX:E,this.maxX=this.maxX>R?this.maxX:R,this.minY=this.minY<C?this.minY:C,this.maxY=this.maxY>I?this.maxY:I}}class DisplayObject extends EventEmitter{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new Transform,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new Bounds,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(E){const C=Object.keys(E);for(let R=0;R<C.length;++R){const I=C[R];Object.defineProperty(DisplayObject.prototype,I,Object.getOwnPropertyDescriptor(E,I))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(E,C){return E||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),C||(this._boundsRect||(this._boundsRect=new Rectangle),C=this._boundsRect),this._bounds.getRectangle(C)}getLocalBounds(E){E||(this._localBoundsRect||(this._localBoundsRect=new Rectangle),E=this._localBoundsRect),this._localBounds||(this._localBounds=new Bounds);const C=this.transform,R=this.parent;this.parent=null,this._tempDisplayObjectParent.worldAlpha=(R==null?void 0:R.worldAlpha)??1,this.transform=this._tempDisplayObjectParent.transform;const I=this._bounds,B=this._boundsID;this._bounds=this._localBounds;const U=this.getBounds(!1,E);return this.parent=R,this.transform=C,this._bounds=I,this._bounds.updateID+=this._boundsID-B,U}toGlobal(E,C,R=!1){return R||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(E,C)}toLocal(E,C,R,I){return C&&(E=C.toGlobal(E,R,I)),I||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(E,R)}setParent(E){if(!E||!E.addChild)throw new Error("setParent: Argument must be a Container");return E.addChild(this),E}removeFromParent(){var E;(E=this.parent)==null||E.removeChild(this)}setTransform(E=0,C=0,R=1,I=1,B=0,U=0,V=0,X=0,K=0){return this.position.x=E,this.position.y=C,this.scale.x=R||1,this.scale.y=I||1,this.rotation=B,this.skew.x=U,this.skew.y=V,this.pivot.x=X,this.pivot.y=K,this}destroy(E){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new TemporaryDisplayObject),this.tempDisplayObjectParent}enableTempParent(){const E=this.parent;return this.parent=this._tempDisplayObjectParent,E}disableTempParent(E){this.parent=E}get x(){return this.position.x}set x(E){this.transform.position.x=E}get y(){return this.position.y}set y(E){this.transform.position.y=E}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(E){this.transform.position.copyFrom(E)}get scale(){return this.transform.scale}set scale(E){this.transform.scale.copyFrom(E)}get pivot(){return this.transform.pivot}set pivot(E){this.transform.pivot.copyFrom(E)}get skew(){return this.transform.skew}set skew(E){this.transform.skew.copyFrom(E)}get rotation(){return this.transform.rotation}set rotation(E){this.transform.rotation=E}get angle(){return this.transform.rotation*RAD_TO_DEG}set angle(E){this.transform.rotation=E*DEG_TO_RAD}get zIndex(){return this._zIndex}set zIndex(E){this._zIndex!==E&&(this._zIndex=E,this.parent&&(this.parent.sortDirty=!0))}get worldVisible(){let E=this;do{if(!E.visible)return!1;E=E.parent}while(E);return!0}get mask(){return this._mask}set mask(E){if(this._mask!==E){if(this._mask){const C=this._mask.isMaskData?this._mask.maskObject:this._mask;C&&(C._maskRefCount--,C._maskRefCount===0&&(C.renderable=!0,C.isMask=!1))}if(this._mask=E,this._mask){const C=this._mask.isMaskData?this._mask.maskObject:this._mask;C&&(C._maskRefCount===0&&(C.renderable=!1,C.isMask=!0),C._maskRefCount++)}}}}class TemporaryDisplayObject extends DisplayObject{constructor(){super(...arguments),this.sortDirty=null}}DisplayObject.prototype.displayObjectUpdateTransform=DisplayObject.prototype.updateTransform;const tempMatrix=new Matrix$2;function sortChildren(A,E){return A.zIndex===E.zIndex?A._lastSortedIndex-E._lastSortedIndex:A.zIndex-E.zIndex}const _Container=class br extends DisplayObject{constructor(){super(),this.children=[],this.sortableChildren=br.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(E){}addChild(...E){if(E.length>1)for(let C=0;C<E.length;C++)this.addChild(E[C]);else{const C=E[0];C.parent&&C.parent.removeChild(C),C.parent=this,this.sortDirty=!0,C.transform._parentID=-1,this.children.push(C),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",C,this,this.children.length-1),C.emit("added",this)}return E[0]}addChildAt(E,C){if(C<0||C>this.children.length)throw new Error(`${E}addChildAt: The index ${C} supplied is out of bounds ${this.children.length}`);return E.parent&&E.parent.removeChild(E),E.parent=this,this.sortDirty=!0,E.transform._parentID=-1,this.children.splice(C,0,E),this._boundsID++,this.onChildrenChange(C),E.emit("added",this),this.emit("childAdded",E,this,C),E}swapChildren(E,C){if(E===C)return;const R=this.getChildIndex(E),I=this.getChildIndex(C);this.children[R]=C,this.children[I]=E,this.onChildrenChange(R<I?R:I)}getChildIndex(E){const C=this.children.indexOf(E);if(C===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return C}setChildIndex(E,C){if(C<0||C>=this.children.length)throw new Error(`The index ${C} supplied is out of bounds ${this.children.length}`);const R=this.getChildIndex(E);removeItems(this.children,R,1),this.children.splice(C,0,E),this.onChildrenChange(C)}getChildAt(E){if(E<0||E>=this.children.length)throw new Error(`getChildAt: Index (${E}) does not exist.`);return this.children[E]}removeChild(...E){if(E.length>1)for(let C=0;C<E.length;C++)this.removeChild(E[C]);else{const C=E[0],R=this.children.indexOf(C);if(R===-1)return null;C.parent=null,C.transform._parentID=-1,removeItems(this.children,R,1),this._boundsID++,this.onChildrenChange(R),C.emit("removed",this),this.emit("childRemoved",C,this,R)}return E[0]}removeChildAt(E){const C=this.getChildAt(E);return C.parent=null,C.transform._parentID=-1,removeItems(this.children,E,1),this._boundsID++,this.onChildrenChange(E),C.emit("removed",this),this.emit("childRemoved",C,this,E),C}removeChildren(E=0,C=this.children.length){const R=E,I=C,B=I-R;let U;if(B>0&&B<=I){U=this.children.splice(R,B);for(let V=0;V<U.length;++V)U[V].parent=null,U[V].transform&&(U[V].transform._parentID=-1);this._boundsID++,this.onChildrenChange(E);for(let V=0;V<U.length;++V)U[V].emit("removed",this),this.emit("childRemoved",U[V],this,V);return U}else if(B===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let E=!1;for(let C=0,R=this.children.length;C<R;++C){const I=this.children[C];I._lastSortedIndex=C,!E&&I.zIndex!==0&&(E=!0)}E&&this.children.length>1&&this.children.sort(sortChildren),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let E=0,C=this.children.length;E<C;++E){const R=this.children[E];R.visible&&R.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let E=0;E<this.children.length;E++){const C=this.children[E];if(!(!C.visible||!C.renderable))if(C.calculateBounds(),C._mask){const R=C._mask.isMaskData?C._mask.maskObject:C._mask;R?(R.calculateBounds(),this._bounds.addBoundsMask(C._bounds,R._bounds)):this._bounds.addBounds(C._bounds)}else C.filterArea?this._bounds.addBoundsArea(C._bounds,C.filterArea):this._bounds.addBounds(C._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(E,C=!1){const R=super.getLocalBounds(E);if(!C)for(let I=0,B=this.children.length;I<B;++I){const U=this.children[I];U.visible&&U.updateTransform()}return R}_calculateBounds(){}_renderWithCulling(E){const C=E.renderTexture.sourceFrame;if(!(C.width>0&&C.height>0))return;let R,I;this.cullArea?(R=this.cullArea,I=this.worldTransform):this._render!==br.prototype._render&&(R=this.getBounds(!0));const B=E.projection.transform;if(B&&(I?(I=tempMatrix.copyFrom(I),I.prepend(B)):I=B),R&&C.intersects(R,I))this._render(E);else if(this.cullArea)return;for(let U=0,V=this.children.length;U<V;++U){const X=this.children[U],K=X.cullable;X.cullable=K||!this.cullArea,X.render(E),X.cullable=K}}render(E){var C;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(C=this.filters)!=null&&C.length)this.renderAdvanced(E);else if(this.cullable)this._renderWithCulling(E);else{this._render(E);for(let R=0,I=this.children.length;R<I;++R)this.children[R].render(E)}}renderAdvanced(E){var B,U,V;const C=this.filters,R=this._mask;if(C){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let X=0;X<C.length;X++)C[X].enabled&&this._enabledFilters.push(C[X])}const I=C&&((B=this._enabledFilters)==null?void 0:B.length)||R&&(!R.isMaskData||R.enabled&&(R.autoDetect||R.type!==MASK_TYPES.NONE));if(I&&E.batch.flush(),C&&((U=this._enabledFilters)!=null&&U.length)&&E.filter.push(this,this._enabledFilters),R&&E.mask.push(this,this._mask),this.cullable)this._renderWithCulling(E);else{this._render(E);for(let X=0,K=this.children.length;X<K;++X)this.children[X].render(E)}I&&E.batch.flush(),R&&E.mask.pop(this),C&&((V=this._enabledFilters)!=null&&V.length)&&E.filter.pop()}_render(E){}destroy(E){super.destroy(),this.sortDirty=!1;const C=typeof E=="boolean"?E:E==null?void 0:E.children,R=this.removeChildren(0,this.children.length);if(C)for(let I=0;I<R.length;++I)R[I].destroy(E)}get width(){return this.scale.x*this.getLocalBounds().width}set width(E){const C=this.getLocalBounds().width;C!==0?this.scale.x=E/C:this.scale.x=1,this._width=E}get height(){return this.scale.y*this.getLocalBounds().height}set height(E){const C=this.getLocalBounds().height;C!==0?this.scale.y=E/C:this.scale.y=1,this._height=E}};_Container.defaultSortableChildren=!1;let Container=_Container;Container.prototype.containerUpdateTransform=Container.prototype.updateTransform,Object.defineProperties(settings,{SORTABLE_CHILDREN:{get(){return Container.defaultSortableChildren},set(A){deprecation("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Container.defaultSortableChildren=A}}});class GraphicsData{constructor(E,C=null,R=null,I=null){this.points=[],this.holes=[],this.shape=E,this.lineStyle=R,this.fillStyle=C,this.matrix=I,this.type=E.type}clone(){return new GraphicsData(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const tmpPoint=new Point,_GraphicsGeometry=class Rr extends BatchGeometry{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new Bounds,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let E=0;E<this.drawCalls.length;E++)this.drawCalls[E].texArray.clear(),DRAW_CALL_POOL.push(this.drawCalls[E]);this.drawCalls.length=0;for(let E=0;E<this.batches.length;E++){const C=this.batches[E];C.reset(),BATCH_POOL.push(C)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(E,C=null,R=null,I=null){const B=new GraphicsData(E,C,R,I);return this.graphicsData.push(B),this.dirty++,this}drawHole(E,C=null){if(!this.graphicsData.length)return null;const R=new GraphicsData(E,null,null,C),I=this.graphicsData[this.graphicsData.length-1];return R.lineStyle=I.lineStyle,I.holes.push(R),this.dirty++,this}destroy(){super.destroy();for(let E=0;E<this.graphicsData.length;++E)this.graphicsData[E].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(E){const C=this.graphicsData;for(let R=0;R<C.length;++R){const I=C[R];if(I.fillStyle.visible&&I.shape&&(I.matrix?I.matrix.applyInverse(E,tmpPoint):tmpPoint.copyFrom(E),I.shape.contains(tmpPoint.x,tmpPoint.y))){let B=!1;if(I.holes){for(let U=0;U<I.holes.length;U++)if(I.holes[U].shape.contains(tmpPoint.x,tmpPoint.y)){B=!0;break}}if(!B)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const E=this.uvs,C=this.graphicsData;let R=null,I=null;this.batches.length>0&&(R=this.batches[this.batches.length-1],I=R.style);for(let X=this.shapeIndex;X<C.length;X++){this.shapeIndex++;const K=C[X],J=K.fillStyle,Y=K.lineStyle;FILL_COMMANDS[K.type].build(K),K.matrix&&this.transformPoints(K.points,K.matrix),(J.visible||Y.visible)&&this.processHoles(K.holes);for(let Z=0;Z<2;Z++){const _e=Z===0?J:Y;if(!_e.visible)continue;const xe=_e.texture.baseTexture,Se=this.indices.length,Pe=this.points.length/2;xe.wrapMode=WRAP_MODES.REPEAT,Z===0?this.processFill(K):this.processLine(K);const Ee=this.points.length/2-Pe;Ee!==0&&(R&&!this._compareStyles(I,_e)&&(R.end(Se,Pe),R=null),R||(R=BATCH_POOL.pop()||new BatchPart,R.begin(_e,Se,Pe),this.batches.push(R),I=_e),this.addUvs(this.points,E,_e.texture,Pe,Ee,_e.matrix))}}const B=this.indices.length,U=this.points.length/2;if(R&&R.end(B,U),this.batches.length===0){this.batchable=!0;return}const V=U>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&V===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=V?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(E,C){return!(!E||!C||E.texture.baseTexture!==C.texture.baseTexture||E.color+E.alpha!==C.color+C.alpha||!!E.native!=!!C.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let E=0,C=this.graphicsData.length;E<C;E++){const R=this.graphicsData[E],I=R.fillStyle,B=R.lineStyle;if(I&&!I.texture.baseTexture.valid||B&&!B.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const E=this.batches;for(let C=0,R=E.length;C<R;C++){const I=E[C];for(let B=0;B<I.size;B++){const U=I.start+B;this.indicesUint16[U]=this.indicesUint16[U]-I.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const E=this.batches;for(let C=0;C<E.length;C++)if(E[C].style.native)return!1;return this.points.length<Rr.BATCHABLE_SIZE*2}buildDrawCalls(){let E=++BaseTexture._globalBatch;for(let Y=0;Y<this.drawCalls.length;Y++)this.drawCalls[Y].texArray.clear(),DRAW_CALL_POOL.push(this.drawCalls[Y]);this.drawCalls.length=0;const C=this.colors,R=this.textureIds;let I=DRAW_CALL_POOL.pop();I||(I=new BatchDrawCall,I.texArray=new BatchTextureArray),I.texArray.count=0,I.start=0,I.size=0,I.type=DRAW_MODES.TRIANGLES;let B=0,U=null,V=0,X=!1,K=DRAW_MODES.TRIANGLES,J=0;this.drawCalls.push(I);for(let Y=0;Y<this.batches.length;Y++){const Z=this.batches[Y],_e=8,xe=Z.style,Se=xe.texture.baseTexture;X!==!!xe.native&&(X=!!xe.native,K=X?DRAW_MODES.LINES:DRAW_MODES.TRIANGLES,U=null,B=_e,E++),U!==Se&&(U=Se,Se._batchEnabled!==E&&(B===_e&&(E++,B=0,I.size>0&&(I=DRAW_CALL_POOL.pop(),I||(I=new BatchDrawCall,I.texArray=new BatchTextureArray),this.drawCalls.push(I)),I.start=J,I.size=0,I.texArray.count=0,I.type=K),Se.touched=1,Se._batchEnabled=E,Se._batchLocation=B,Se.wrapMode=WRAP_MODES.REPEAT,I.texArray.elements[I.texArray.count++]=Se,B++)),I.size+=Z.size,J+=Z.size,V=Se._batchLocation,this.addColors(C,xe.color,xe.alpha,Z.attribSize,Z.attribStart),this.addTextureIds(R,V,Z.attribSize,Z.attribStart)}BaseTexture._globalBatch=E,this.packAttributes()}packAttributes(){const E=this.points,C=this.uvs,R=this.colors,I=this.textureIds,B=new ArrayBuffer(E.length*3*4),U=new Float32Array(B),V=new Uint32Array(B);let X=0;for(let K=0;K<E.length/2;K++)U[X++]=E[K*2],U[X++]=E[K*2+1],U[X++]=C[K*2],U[X++]=C[K*2+1],V[X++]=R[K],U[X++]=I[K];this._buffer.update(B),this._indexBuffer.update(this.indicesUint16)}processFill(E){E.holes.length?buildPoly.triangulate(E,this):FILL_COMMANDS[E.type].triangulate(E,this)}processLine(E){buildLine(E,this);for(let C=0;C<E.holes.length;C++)buildLine(E.holes[C],this)}processHoles(E){for(let C=0;C<E.length;C++){const R=E[C];FILL_COMMANDS[R.type].build(R),R.matrix&&this.transformPoints(R.points,R.matrix)}}calculateBounds(){const E=this._bounds;E.clear(),E.addVertexData(this.points,0,this.points.length),E.pad(this.boundsPadding,this.boundsPadding)}transformPoints(E,C){for(let R=0;R<E.length/2;R++){const I=E[R*2],B=E[R*2+1];E[R*2]=C.a*I+C.c*B+C.tx,E[R*2+1]=C.b*I+C.d*B+C.ty}}addColors(E,C,R,I,B=0){const U=Color.shared.setValue(C).toLittleEndianNumber(),V=Color.shared.setValue(U).toPremultiplied(R);E.length=Math.max(E.length,B+I);for(let X=0;X<I;X++)E[B+X]=V}addTextureIds(E,C,R,I=0){E.length=Math.max(E.length,I+R);for(let B=0;B<R;B++)E[I+B]=C}addUvs(E,C,R,I,B,U=null){let V=0;const X=C.length,K=R.frame;for(;V<B;){let Y=E[(I+V)*2],Z=E[(I+V)*2+1];if(U){const _e=U.a*Y+U.c*Z+U.tx;Z=U.b*Y+U.d*Z+U.ty,Y=_e}V++,C.push(Y/K.width,Z/K.height)}const J=R.baseTexture;(K.width<J.width||K.height<J.height)&&this.adjustUvs(C,R,X,B)}adjustUvs(E,C,R,I){const B=C.baseTexture,U=1e-6,V=R+I*2,X=C.frame,K=X.width/B.width,J=X.height/B.height;let Y=X.x/X.width,Z=X.y/X.height,_e=Math.floor(E[R]+U),xe=Math.floor(E[R+1]+U);for(let Se=R+2;Se<V;Se+=2)_e=Math.min(_e,Math.floor(E[Se]+U)),xe=Math.min(xe,Math.floor(E[Se+1]+U));Y-=_e,Z-=xe;for(let Se=R;Se<V;Se+=2)E[Se]=(E[Se]+Y)*K,E[Se+1]=(E[Se+1]+Z)*J}};_GraphicsGeometry.BATCHABLE_SIZE=100;let GraphicsGeometry=_GraphicsGeometry;class FillStyle{constructor(){this.color=16777215,this.alpha=1,this.texture=Texture.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const E=new FillStyle;return E.color=this.color,E.alpha=this.alpha,E.texture=this.texture,E.matrix=this.matrix,E.visible=this.visible,E}reset(){this.color=16777215,this.alpha=1,this.texture=Texture.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class LineStyle extends FillStyle{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=LINE_CAP.BUTT,this.join=LINE_JOIN.MITER,this.miterLimit=10}clone(){const E=new LineStyle;return E.color=this.color,E.alpha=this.alpha,E.texture=this.texture,E.matrix=this.matrix,E.visible=this.visible,E.width=this.width,E.alignment=this.alignment,E.native=this.native,E.cap=this.cap,E.join=this.join,E.miterLimit=this.miterLimit,E}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1,this.cap=LINE_CAP.BUTT,this.join=LINE_JOIN.MITER,this.miterLimit=10}}const DEFAULT_SHADERS={},_Graphics=class cr extends Container{constructor(E=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new FillStyle,this._lineStyle=new LineStyle,this._matrix=null,this._holeMode=!1,this.state=State$1.for2d(),this._geometry=E||new GraphicsGeometry,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Color(16777215),this.blendMode=BLEND_MODES.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new cr(this._geometry)}set blendMode(E){this.state.blendMode=E}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(E){this._tintColor.setValue(E)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(E=null,C=0,R,I=.5,B=!1){return typeof E=="number"&&(E={width:E,color:C,alpha:R,alignment:I,native:B}),this.lineTextureStyle(E)}lineTextureStyle(E){const C={width:0,texture:Texture.WHITE,color:E!=null&&E.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:LINE_CAP.BUTT,join:LINE_JOIN.MITER,miterLimit:10};E=Object.assign(C,E),this.normalizeColor(E),this.currentPath&&this.startPoly();const R=E.width>0&&E.alpha>0;return R?(E.matrix&&(E.matrix=E.matrix.clone(),E.matrix.invert()),Object.assign(this._lineStyle,{visible:R},E)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const E=this.currentPath.points,C=this.currentPath.points.length;C>2&&(this.drawShape(this.currentPath),this.currentPath=new Polygon,this.currentPath.closeStroke=!1,this.currentPath.points.push(E[C-2],E[C-1]))}else this.currentPath=new Polygon,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(E,C){return this.startPoly(),this.currentPath.points[0]=E,this.currentPath.points[1]=C,this}lineTo(E,C){this.currentPath||this.moveTo(0,0);const R=this.currentPath.points,I=R[R.length-2],B=R[R.length-1];return(I!==E||B!==C)&&R.push(E,C),this}_initCurve(E=0,C=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[E,C]):this.moveTo(E,C)}quadraticCurveTo(E,C,R,I){this._initCurve();const B=this.currentPath.points;return B.length===0&&this.moveTo(0,0),QuadraticUtils.curveTo(E,C,R,I,B),this}bezierCurveTo(E,C,R,I,B,U){return this._initCurve(),BezierUtils.curveTo(E,C,R,I,B,U,this.currentPath.points),this}arcTo(E,C,R,I,B){this._initCurve(E,C);const U=this.currentPath.points,V=ArcUtils.curveTo(E,C,R,I,B,U);if(V){const{cx:X,cy:K,radius:J,startAngle:Y,endAngle:Z,anticlockwise:_e}=V;this.arc(X,K,J,Y,Z,_e)}return this}arc(E,C,R,I,B,U=!1){if(I===B)return this;if(!U&&B<=I?B+=PI_2:U&&I<=B&&(I+=PI_2),B-I===0)return this;const V=E+Math.cos(I)*R,X=C+Math.sin(I)*R,K=this._geometry.closePointEps;let J=this.currentPath?this.currentPath.points:null;if(J){const Y=Math.abs(J[J.length-2]-V),Z=Math.abs(J[J.length-1]-X);Y<K&&Z<K||J.push(V,X)}else this.moveTo(V,X),J=this.currentPath.points;return ArcUtils.arc(V,X,E,C,R,I,B,U,J),this}beginFill(E=0,C){return this.beginTextureFill({texture:Texture.WHITE,color:E,alpha:C})}normalizeColor(E){const C=Color.shared.setValue(E.color??0);E.color=C.toNumber(),E.alpha??(E.alpha=C.alpha)}beginTextureFill(E){const C={texture:Texture.WHITE,color:16777215,matrix:null};E=Object.assign(C,E),this.normalizeColor(E),this.currentPath&&this.startPoly();const R=E.alpha>0;return R?(E.matrix&&(E.matrix=E.matrix.clone(),E.matrix.invert()),Object.assign(this._fillStyle,{visible:R},E)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(E,C,R,I){return this.drawShape(new Rectangle(E,C,R,I))}drawRoundedRect(E,C,R,I,B){return this.drawShape(new RoundedRectangle(E,C,R,I,B))}drawCircle(E,C,R){return this.drawShape(new Circle(E,C,R))}drawEllipse(E,C,R,I){return this.drawShape(new Ellipse$1(E,C,R,I))}drawPolygon(...E){let C,R=!0;const I=E[0];I.points?(R=I.closeStroke,C=I.points):Array.isArray(E[0])?C=E[0]:C=E;const B=new Polygon(C);return B.closeStroke=R,this.drawShape(B),this}drawShape(E){return this._holeMode?this._geometry.drawHole(E,this._matrix):this._geometry.drawShape(E,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const E=this._geometry.graphicsData;return E.length===1&&E[0].shape.type===SHAPES.RECT&&!E[0].matrix&&!E[0].holes.length&&!(E[0].lineStyle.visible&&E[0].lineStyle.width)}_render(E){this.finishPoly();const C=this._geometry;C.updateBatches(),C.batchable?(this.batchDirty!==C.batchDirty&&this._populateBatches(),this._renderBatched(E)):(E.batch.flush(),this._renderDirect(E))}_populateBatches(){const E=this._geometry,C=this.blendMode,R=E.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=E.batchDirty,this.batches.length=R,this.vertexData=new Float32Array(E.points);for(let I=0;I<R;I++){const B=E.batches[I],U=B.style.color,V=new Float32Array(this.vertexData.buffer,B.attribStart*4*2,B.attribSize*2),X=new Float32Array(E.uvsFloat32.buffer,B.attribStart*4*2,B.attribSize*2),K=new Uint16Array(E.indicesUint16.buffer,B.start*2,B.size),J={vertexData:V,blendMode:C,indices:K,uvs:X,_batchRGB:Color.shared.setValue(U).toRgbArray(),_tintRGB:U,_texture:B.style.texture,alpha:B.style.alpha,worldAlpha:1};this.batches[I]=J}}_renderBatched(E){if(this.batches.length){E.batch.setObjectRenderer(E.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let C=0,R=this.batches.length;C<R;C++){const I=this.batches[C];I.worldAlpha=this.worldAlpha*I.alpha,E.plugins[this.pluginName].render(I)}}}_renderDirect(E){const C=this._resolveDirectShader(E),R=this._geometry,I=this.worldAlpha,B=C.uniforms,U=R.drawCalls;B.translationMatrix=this.transform.worldTransform,Color.shared.setValue(this._tintColor).premultiply(I).toArray(B.tint),E.shader.bind(C),E.geometry.bind(R,C),E.state.set(this.state);for(let V=0,X=U.length;V<X;V++)this._renderDrawCallDirect(E,R.drawCalls[V])}_renderDrawCallDirect(E,C){const{texArray:R,type:I,size:B,start:U}=C,V=R.count;for(let X=0;X<V;X++)E.texture.bind(R.elements[X],X);E.geometry.draw(I,B,U)}_resolveDirectShader(E){let C=this.shader;const R=this.pluginName;if(!C){if(!DEFAULT_SHADERS[R]){const{maxTextures:I}=E.plugins[R],B=new Int32Array(I);for(let X=0;X<I;X++)B[X]=X;const U={tint:new Float32Array([1,1,1,1]),translationMatrix:new Matrix$2,default:UniformGroup.from({uSamplers:B},!0)},V=E.plugins[R]._shader.program;DEFAULT_SHADERS[R]=new Shader(V,U)}C=DEFAULT_SHADERS[R]}return C}_calculateBounds(){this.finishPoly();const E=this._geometry;if(!E.graphicsData.length)return;const{minX:C,minY:R,maxX:I,maxY:B}=E.bounds;this._bounds.addFrame(this.transform,C,R,I,B)}containsPoint(E){return this.worldTransform.applyInverse(E,cr._TEMP_POINT),this._geometry.containsPoint(cr._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let E=0;E<this.batches.length;E++){const C=this.batches[E];C._tintRGB=Color.shared.setValue(this._tintColor).multiply(C._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const E=this.transform._worldID;if(this._transformID===E)return;this._transformID=E;const C=this.transform.worldTransform,R=C.a,I=C.b,B=C.c,U=C.d,V=C.tx,X=C.ty,K=this._geometry.points,J=this.vertexData;let Y=0;for(let Z=0;Z<K.length;Z+=2){const _e=K[Z],xe=K[Z+1];J[Y++]=R*_e+B*xe+V,J[Y++]=U*xe+I*_e+X}}closePath(){const E=this.currentPath;return E&&(E.closeStroke=!0,this.finishPoly()),this}setMatrix(E){return this._matrix=E,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(E){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(E)}};_Graphics.curves=curves,_Graphics._TEMP_POINT=new Point;let Graphics=_Graphics;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},parserExports={},parser={get exports(){return parserExports},set exports(A){parserExports=A}};/*!
1930
+ `,i=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,c=(A,E)=>{var C={};for(var R in A)d.call(A,R)&&E.indexOf(R)<0&&(C[R]=A[R]);if(A!=null&&i)for(var R of i(A))E.indexOf(R)<0&&f.call(A,R)&&(C[R]=A[R]);return C};const a=class extends Filter{constructor(A){const E=Object.assign(a.defaults,A),{maxKernelSize:C}=E,R=c(E,["maxKernelSize"]);super(l,u.replace("${maxKernelSize}",C.toFixed(1))),Object.assign(this,R)}get center(){return this.uniforms.uCenter}set center(A){this.uniforms.uCenter=A}get strength(){return this.uniforms.uStrength}set strength(A){this.uniforms.uStrength=A}get innerRadius(){return this.uniforms.uInnerRadius}set innerRadius(A){this.uniforms.uInnerRadius=A}get radius(){return this.uniforms.uRadius}set radius(A){(A<0||A===1/0)&&(A=-1),this.uniforms.uRadius=A}};let o=a;o.defaults={strength:.1,center:[0,0],innerRadius:0,radius:-1,maxKernelSize:32};function _extends(){return _extends=Object.assign?Object.assign.bind():function(A){for(var E=1;E<arguments.length;E++){var C=arguments[E];for(var R in C)({}).hasOwnProperty.call(C,R)&&(A[R]=C[R])}return A},_extends.apply(null,arguments)}function _objectWithoutPropertiesLoose(A,E){if(A==null)return{};var C={};for(var R in A)if({}.hasOwnProperty.call(A,R)){if(E.indexOf(R)!==-1)continue;C[R]=A[R]}return C}var RGB_MAX=255,SV_MAX=100,rgbaToHsva=A=>{var{r:E,g:C,b:R,a:I}=A,B=Math.max(E,C,R),U=B-Math.min(E,C,R),V=U?B===E?(C-R)/U:B===C?2+(R-E)/U:4+(E-C)/U:0;return{h:60*(V<0?V+6:V),s:B?U/B*SV_MAX:0,v:B/RGB_MAX*SV_MAX,a:I}},hsvaToHslaString=A=>{var{h:E,s:C,l:R,a:I}=hsvaToHsla(A);return"hsla("+E+", "+C+"%, "+R+"%, "+I+")"},hsvaToHsla=A=>{var{h:E,s:C,v:R,a:I}=A,B=(200-C)*R/SV_MAX;return{h:E,s:B>0&&B<200?C*R/SV_MAX/(B<=SV_MAX?B:200-B)*SV_MAX:0,l:B/2,a:I}},rgbaToHex$1=A=>{var{r:E,g:C,b:R}=A,I=E<<16|C<<8|R;return"#"+(B=>new Array(7-B.length).join("0")+B)(I.toString(16))},rgbaToHexa=A=>{var{r:E,g:C,b:R,a:I}=A,B=typeof I=="number"&&(I*255|256).toString(16).slice(1);return""+rgbaToHex$1({r:E,g:C,b:R,a:I})+(B||"")},hexToHsva=A=>rgbaToHsva(hexToRgba(A)),hexToRgba=A=>{var E=A.replace("#","");/^#?/.test(A)&&E.length===3&&(A="#"+E.charAt(0)+E.charAt(0)+E.charAt(1)+E.charAt(1)+E.charAt(2)+E.charAt(2));var C=new RegExp("[A-Za-z0-9]{2}","g"),[R,I,B=0,U]=A.match(C).map(V=>parseInt(V,16));return{r:R,g:I,b:B,a:(U??255)/RGB_MAX}},hsvaToRgba=A=>{var{h:E,s:C,v:R,a:I}=A,B=E/60,U=C/SV_MAX,V=R/SV_MAX,X=Math.floor(B)%6,K=B-Math.floor(B),J=RGB_MAX*V*(1-U),Y=RGB_MAX*V*(1-U*K),Z=RGB_MAX*V*(1-U*(1-K));V*=RGB_MAX;var _e={};switch(X){case 0:_e.r=V,_e.g=Z,_e.b=J;break;case 1:_e.r=Y,_e.g=V,_e.b=J;break;case 2:_e.r=J,_e.g=V,_e.b=Z;break;case 3:_e.r=J,_e.g=Y,_e.b=V;break;case 4:_e.r=Z,_e.g=J,_e.b=V;break;case 5:_e.r=V,_e.g=J,_e.b=Y;break}return _e.r=Math.round(_e.r),_e.g=Math.round(_e.g),_e.b=Math.round(_e.b),_extends({},_e,{a:I})},hsvaToRgbaString=A=>{var{r:E,g:C,b:R,a:I}=hsvaToRgba(A);return"rgba("+E+", "+C+", "+R+", "+I+")"},rgbaToRgb=A=>{var{r:E,g:C,b:R}=A;return{r:E,g:C,b:R}},hslaToHsl=A=>{var{h:E,s:C,l:R}=A;return{h:E,s:C,l:R}},hsvaToHex=A=>rgbaToHex$1(hsvaToRgba(A)),hsvaToHsv=A=>{var{h:E,s:C,v:R}=A;return{h:E,s:C,v:R}},rgbToXY=A=>{var{r:E,g:C,b:R}=A,I=function(J){return J<=.04045?J/12.92:Math.pow((J+.055)/1.055,2.4)},B=I(E/255),U=I(C/255),V=I(R/255),X={};return X.x=B*.4124+U*.3576+V*.1805,X.y=B*.2126+U*.7152+V*.0722,X.bri=B*.0193+U*.1192+V*.9505,X},color=A=>{var E,C,R,I,B,U,V,X,K;return typeof A=="string"&&validHex$1(A)?(U=hexToHsva(A),X=A):typeof A!="string"&&(U=A),U&&(R=hsvaToHsv(U),B=hsvaToHsla(U),I=hsvaToRgba(U),K=rgbaToHexa(I),X=hsvaToHex(U),C=hslaToHsl(B),E=rgbaToRgb(I),V=rgbToXY(E)),{rgb:E,hsl:C,hsv:R,rgba:I,hsla:B,hsva:U,hex:X,hexa:K,xy:V}},validHex$1=A=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(A);function useEventCallback$1(A){var E=React.useRef(A);return React.useEffect(()=>{E.current=A}),React.useCallback((C,R)=>E.current&&E.current(C,R),[])}var isTouch=A=>"touches"in A,preventDefaultMove=A=>{!isTouch(A)&&A.preventDefault&&A.preventDefault()},clamp=function(E,C,R){return C===void 0&&(C=0),R===void 0&&(R=1),E>R?R:E<C?C:E},getRelativePosition=(A,E)=>{var C=A.getBoundingClientRect(),R=isTouch(E)?E.touches[0]:E;return{left:clamp((R.pageX-(C.left+window.pageXOffset))/C.width),top:clamp((R.pageY-(C.top+window.pageYOffset))/C.height),width:C.width,height:C.height,x:R.pageX-(C.left+window.pageXOffset),y:R.pageY-(C.top+window.pageYOffset)}},_excluded$8=["prefixCls","className","onMove","onDown"],Interactive=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-interactive",className:R,onMove:I,onDown:B}=A,U=_objectWithoutPropertiesLoose(A,_excluded$8),V=React.useRef(null),X=React.useRef(!1),[K,J]=React.useState(!1),Y=useEventCallback$1(I),Z=useEventCallback$1(B),_e=Ae=>X.current&&!isTouch(Ae)?!1:(X.current=isTouch(Ae),!0),xe=React.useCallback(Ae=>{if(preventDefaultMove(Ae),!!V.current){var Te=isTouch(Ae)?Ae.touches.length>0:Ae.buttons>0;if(!Te){J(!1);return}Y==null||Y(getRelativePosition(V.current,Ae),Ae)}},[Y]),Se=React.useCallback(()=>J(!1),[]),Pe=React.useCallback(Ae=>{Ae?(window.addEventListener(X.current?"touchmove":"mousemove",xe),window.addEventListener(X.current?"touchend":"mouseup",Se)):(window.removeEventListener("mousemove",xe),window.removeEventListener("mouseup",Se),window.removeEventListener("touchmove",xe),window.removeEventListener("touchend",Se))},[xe,Se]);React.useEffect(()=>(Pe(K),()=>{Pe(!1)}),[K,xe,Se,Pe]);var Ee=React.useCallback(Ae=>{preventDefaultMove(Ae.nativeEvent),_e(Ae.nativeEvent)&&V.current&&(Z==null||Z(getRelativePosition(V.current,Ae.nativeEvent),Ae.nativeEvent),J(!0))},[Z]);return jsxRuntimeExports.jsx("div",_extends({},U,{className:[C,R||""].filter(Boolean).join(" "),style:_extends({},U.style,{touchAction:"none"}),ref:V,tabIndex:0,onMouseDown:Ee,onTouchStart:Ee}))});Interactive.displayName="Interactive";const Interactive$1=Interactive;var Pointer$1=A=>{var{className:E,color:C,left:R,top:I,prefixCls:B}=A,U={position:"absolute",top:I,left:R},V={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:C};return React.useMemo(()=>jsxRuntimeExports.jsx("div",{className:B+"-pointer "+(E||""),style:U,children:jsxRuntimeExports.jsx("div",{className:B+"-fill",style:V})}),[I,R,C,E,B])},_excluded$7=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],Saturation=React.forwardRef((A,E)=>{var C,{prefixCls:R="w-color-saturation",radius:I=0,pointer:B,className:U,hue:V=0,style:X,hsva:K,onChange:J}=A,Y=_objectWithoutPropertiesLoose(A,_excluded$7),Z=_extends({width:200,height:200,borderRadius:I},X,{position:"relative"}),[_e,xe]=React.useState({left:0,top:0,x:0,y:0,width:0,height:0}),Se=(Ee,Ae)=>{xe(Ee),J&&K&&J({h:K.h,s:Ee.left*100,v:(1-Ee.top)*100,a:K.a})},Pe=React.useMemo(()=>{if(!K)return null;var Ee=clamp(_e.x,0,_e.width)+"px",Ae=clamp(_e.y,0,_e.height)+"px";(_e.width===0||_e.height===0)&&(Ee=K.s+"%",Ae=100-K.v+"%");var Te={top:Ae,left:Ee,color:hsvaToHslaString(K)};return B&&typeof B=="function"?B(_extends({prefixCls:R},Te)):jsxRuntimeExports.jsx(Pointer$1,_extends({prefixCls:R},Te))},[K,_e,B,R]);return jsxRuntimeExports.jsx(Interactive$1,_extends({className:[R,U||""].filter(Boolean).join(" ")},Y,{style:_extends({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((C=K==null?void 0:K.h)!=null?C:V)+", 100%, 50%))"},Z),ref:E,onMove:Se,onDown:Se,children:Pe}))});Saturation.displayName="Saturation";const Saturation$1=Saturation;var _excluded$6=["className","prefixCls","left","top","style","fillProps"],Pointer=A=>{var{className:E,prefixCls:C,left:R,top:I,style:B,fillProps:U}=A,V=_objectWithoutPropertiesLoose(A,_excluded$6),X=_extends({},B,{position:"absolute",left:R,top:I}),K=_extends({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},U==null?void 0:U.style,{transform:R?"translate(-9px, -1px)":"translate(-1px, -9px)"});return jsxRuntimeExports.jsx("div",_extends({className:C+"-pointer "+(E||""),style:X},V,{children:jsxRuntimeExports.jsx("div",_extends({className:C+"-fill"},U,{style:K}))}))},_excluded$5=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],BACKGROUND_IMG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",Alpha=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-alpha",className:R,hsva:I,background:B,bgProps:U={},innerProps:V={},pointerProps:X={},radius:K=0,width:J,height:Y=16,direction:Z="horizontal",style:_e,onChange:xe,pointer:Se}=A,Pe=_objectWithoutPropertiesLoose(A,_excluded$5),Ee=ke=>{xe&&xe(_extends({},I,{a:Z==="horizontal"?ke.left:ke.top}),ke)},Ae=hsvaToHslaString(Object.assign({},I,{a:1})),Te="linear-gradient(to "+(Z==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+Ae+" 100%)",we={};Z==="horizontal"?we.left=I.a*100+"%":we.top=I.a*100+"%";var Ie=_extends({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:K,background:"url("+BACKGROUND_IMG+") left center",backgroundColor:"var(--alpha-background-color)"},{width:J,height:Y},_e,{position:"relative"}),Fe=Se&&typeof Se=="function"?Se(_extends({prefixCls:C},X,we)):jsxRuntimeExports.jsx(Pointer,_extends({},X,{prefixCls:C},we));return jsxRuntimeExports.jsxs("div",_extends({},Pe,{className:[C,C+"-"+Z,R||""].filter(Boolean).join(" "),style:Ie,ref:E,children:[jsxRuntimeExports.jsx("div",_extends({},U,{style:_extends({inset:0,position:"absolute",background:B||Te,borderRadius:K},U.style)})),jsxRuntimeExports.jsx(Interactive$1,_extends({},V,{style:_extends({},V.style,{inset:0,zIndex:1,position:"absolute"}),onMove:Ee,onDown:Ee,children:Fe}))]}))});Alpha.displayName="Alpha";const Alpha$1=Alpha;var _excluded$4=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],validHex=A=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(A),getNumberValue=A=>Number(String(A).replace(/%/g,"")),EditableInput=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-editable-input",placement:R="bottom",label:I,value:B,className:U,style:V,labelStyle:X,inputStyle:K,onChange:J,onBlur:Y,renderInput:Z}=A,_e=_objectWithoutPropertiesLoose(A,_excluded$4),[xe,Se]=React.useState(B),Pe=React.useRef(!1);React.useEffect(()=>{A.value!==xe&&(Pe.current||Se(A.value))},[A.value]);function Ee(ke,Le){var Ge=(Le||ke.target.value).trim().replace(/^#/,"");validHex(Ge)&&J&&J(ke,Ge);var Ue=getNumberValue(Ge);isNaN(Ue)||J&&J(ke,Ue),Se(Ge)}function Ae(ke){Pe.current=!1,Se(A.value),Y&&Y(ke)}var Te={};R==="bottom"&&(Te.flexDirection="column"),R==="top"&&(Te.flexDirection="column-reverse"),R==="left"&&(Te.flexDirection="row-reverse");var we=_extends({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},Te,V),Ie=_extends({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},K),Fe=_extends({value:xe,onChange:Ee,onBlur:Ae,autoComplete:"off",onFocus:()=>Pe.current=!0},_e,{style:Ie});return jsxRuntimeExports.jsxs("div",{className:[C,U||""].filter(Boolean).join(" "),style:we,children:[Z?Z(Fe,E):jsxRuntimeExports.jsx("input",_extends({ref:E},Fe)),I&&jsxRuntimeExports.jsx("span",{style:_extends({color:"var(--editable-input-label-color)",textTransform:"capitalize"},X),children:I})]})});EditableInput.displayName="EditableInput";const EditableInput$1=EditableInput;var _excluded$3=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],EditableInputRGBA=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-editable-input-rgba",hsva:R,placement:I="bottom",rProps:B={},gProps:U={},bProps:V={},aProps:X={},className:K,style:J,onChange:Y}=A,Z=_objectWithoutPropertiesLoose(A,_excluded$3),_e=R?hsvaToRgba(R):{};function xe(Pe){var Ee=Number(Pe.target.value);Ee&&Ee>255&&(Pe.target.value="255"),Ee&&Ee<0&&(Pe.target.value="0")}var Se=(Pe,Ee,Ae)=>{typeof Pe=="number"&&(Ee==="a"&&(Pe<0&&(Pe=0),Pe>100&&(Pe=100),Y&&Y(color(rgbaToHsva(_extends({},_e,{a:Pe/100}))))),Pe>255&&(Pe=255,Ae.target.value="255"),Pe<0&&(Pe=0,Ae.target.value="0"),Ee==="r"&&Y&&Y(color(rgbaToHsva(_extends({},_e,{r:Pe})))),Ee==="g"&&Y&&Y(color(rgbaToHsva(_extends({},_e,{g:Pe})))),Ee==="b"&&Y&&Y(color(rgbaToHsva(_extends({},_e,{b:Pe})))))};return jsxRuntimeExports.jsxs("div",_extends({ref:E,className:[C,K||""].filter(Boolean).join(" ")},Z,{style:_extends({fontSize:11,display:"flex"},J),children:[jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"R",value:_e.r||0,onBlur:xe,placement:I,onChange:(Pe,Ee)=>Se(Ee,"r",Pe)},B,{style:_extends({},B.style)})),jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"G",value:_e.g||0,onBlur:xe,placement:I,onChange:(Pe,Ee)=>Se(Ee,"g",Pe)},U,{style:_extends({marginLeft:5},B.style)})),jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"B",value:_e.b||0,onBlur:xe,placement:I,onChange:(Pe,Ee)=>Se(Ee,"b",Pe)},V,{style:_extends({marginLeft:5},V.style)})),X&&jsxRuntimeExports.jsx(EditableInput$1,_extends({label:"A",value:_e.a?parseInt(String(_e.a*100),10):0,onBlur:xe,placement:I,onChange:(Pe,Ee)=>Se(Ee,"a",Pe)},X,{style:_extends({marginLeft:5},X.style)}))]}))});EditableInputRGBA.displayName="EditableInputRGBA";const RGBA=EditableInputRGBA;var _excluded$2=["prefixCls","className","hue","onChange","direction"],Hue=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-hue",className:R,hue:I=0,onChange:B,direction:U="horizontal"}=A,V=_objectWithoutPropertiesLoose(A,_excluded$2);return jsxRuntimeExports.jsx(Alpha$1,_extends({ref:E,className:C+" "+(R||"")},V,{direction:U,background:"linear-gradient(to "+(U==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:I,s:100,v:100,a:I/360},onChange:(X,K)=>{B&&B({h:U==="horizontal"?360*K.left:360*K.top})}}))});Hue.displayName="Hue";const Hue$1=Hue;var _excluded$1=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],Swatch=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-swatch",className:R,color:I,colors:B=[],style:U,rectProps:V={},onChange:X,addonAfter:K,addonBefore:J,rectRender:Y}=A,Z=_objectWithoutPropertiesLoose(A,_excluded$1),_e=_extends({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},V.style),xe=(Se,Pe)=>{X&&X(hexToHsva(Se),color(hexToHsva(Se)),Pe)};return jsxRuntimeExports.jsxs("div",_extends({ref:E},Z,{className:[C,R||""].filter(Boolean).join(" "),style:_extends({display:"flex",flexWrap:"wrap",position:"relative"},U),children:[J&&React.isValidElement(J)&&J,B&&Array.isArray(B)&&B.map((Se,Pe)=>{var Ee="",Ae="";typeof Se=="string"&&(Ee=Se,Ae=Se),typeof Se=="object"&&Se.color&&(Ee=Se.title||Se.color,Ae=Se.color);var Te=I&&I.toLocaleLowerCase()===Ae.toLocaleLowerCase(),we=Y&&Y({title:Ee,color:Ae,checked:!!Te,style:_extends({},_e,{background:Ae}),onClick:Fe=>xe(Ae,Fe)});if(we)return jsxRuntimeExports.jsx(React.Fragment,{children:we},Pe);var Ie=V.children&&React.isValidElement(V.children)?React.cloneElement(V.children,{color:Ae,checked:Te}):null;return jsxRuntimeExports.jsx("div",_extends({tabIndex:0,title:Ee,onClick:Fe=>xe(Ae,Fe)},V,{children:Ie,style:_extends({},_e,{background:Ae})}),Pe)}),K&&React.isValidElement(K)&&K]}))});Swatch.displayName="Swatch";const Swatch$1=Swatch;var _excluded=["prefixCls","className","onChange","width","presetColors","color","editableDisable","disableAlpha","style"],PRESET_COLORS=["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],Bar=A=>jsxRuntimeExports.jsx("div",{style:{boxShadow:"rgb(0 0 0 / 60%) 0px 0px 2px",width:4,top:1,bottom:1,left:A.left,borderRadius:1,position:"absolute",backgroundColor:"#fff"}}),Sketch=React.forwardRef((A,E)=>{var{prefixCls:C="w-color-sketch",className:R,onChange:I,width:B=218,presetColors:U=PRESET_COLORS,color:V,editableDisable:X=!0,disableAlpha:K=!1,style:J}=A,Y=_objectWithoutPropertiesLoose(A,_excluded),[Z,_e]=React.useState({h:209,s:36,v:90,a:1});React.useEffect(()=>{typeof V=="string"&&validHex$1(V)&&_e(hexToHsva(V)),typeof V=="object"&&_e(V)},[V]);var xe=Fe=>{_e(Fe),I&&I(color(Fe))},Se=(Fe,ke)=>{typeof Fe=="string"&&validHex$1(Fe)&&/(3|6)/.test(String(Fe.length))&&xe(hexToHsva(Fe))},Pe=Fe=>xe(_extends({},Z,{a:Fe.a})),Ee=Fe=>xe(_extends({},Z,Fe,{a:Z.a})),Ae=_extends({"--sketch-background":"rgb(255, 255, 255)","--sketch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px","--sketch-swatch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset","--sketch-alpha-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset","--sketch-swatch-border-top":"1px solid rgb(238, 238, 238)",background:"var(--sketch-background)",borderRadius:4,boxShadow:"var(--sketch-box-shadow)",width:B},J),Te={borderRadius:2,background:hsvaToRgbaString(Z),boxShadow:"var(--sketch-alpha-box-shadow)"},we={borderTop:"var(--sketch-swatch-border-top)",paddingTop:10,paddingLeft:10},Ie={marginRight:10,marginBottom:10,borderRadius:3,boxShadow:"var(--sketch-swatch-box-shadow)"};return jsxRuntimeExports.jsxs("div",_extends({},Y,{className:C+" "+(R||""),ref:E,style:Ae,children:[jsxRuntimeExports.jsxs("div",{style:{padding:"10px 10px 8px"},children:[jsxRuntimeExports.jsx(Saturation$1,{hsva:Z,style:{width:"auto",height:150},onChange:Ee}),jsxRuntimeExports.jsxs("div",{style:{display:"flex",marginTop:4},children:[jsxRuntimeExports.jsxs("div",{style:{flex:1},children:[jsxRuntimeExports.jsx(Hue$1,{width:"auto",height:10,hue:Z.h,pointer:Bar,innerProps:{style:{marginLeft:1,marginRight:5}},onChange:Fe=>xe(_extends({},Z,Fe))}),!K&&jsxRuntimeExports.jsx(Alpha$1,{width:"auto",height:10,hsva:Z,pointer:Bar,style:{marginTop:4},innerProps:{style:{marginLeft:1,marginRight:5}},onChange:Pe})]}),!K&&jsxRuntimeExports.jsx(Alpha$1,{width:24,height:24,hsva:Z,radius:2,style:{marginLeft:4},bgProps:{style:{background:"transparent"}},innerProps:{style:Te},pointer:()=>jsxRuntimeExports.jsx(React.Fragment,{})})]})]}),X&&jsxRuntimeExports.jsxs("div",{style:{display:"flex",margin:"0 10px 3px 10px"},children:[jsxRuntimeExports.jsx(EditableInput$1,{label:"Hex",value:hsvaToHex(Z).replace(/^#/,"").toLocaleUpperCase(),onChange:(Fe,ke)=>Se(ke),style:{minWidth:58}}),jsxRuntimeExports.jsx(RGBA,{hsva:Z,style:{marginLeft:6},aProps:K?!1:{},onChange:Fe=>xe(Fe.hsva)})]}),U&&U.length>0&&jsxRuntimeExports.jsx(Swatch$1,{style:we,colors:U,color:hsvaToHex(Z),onChange:Fe=>xe(Fe),rectProps:{style:Ie}})]}))});Sketch.displayName="Sketch";const Sketch$1=Sketch,ColorPickerPortal=({position:A,color:E,onChange:C,onClose:R})=>{const I=React__namespace.useCallback(X=>{C(X.hex)},[C]);React__namespace.useEffect(()=>{const X=K=>{var J;K.target instanceof Node&&!((J=document.getElementById("color-picker-portal"))!=null&&J.contains(K.target))&&R()};return document.addEventListener("mousedown",X),()=>{document.removeEventListener("mousedown",X)}},[R]);const B=React__namespace.useCallback(()=>{const Y=window.innerWidth,Z=window.innerHeight;let{x:_e,y:xe}=A;return _e+220+10>Y&&(_e=Y-220-10),xe+300+10>Z&&(xe=xe-300-10),{x:_e,y:xe}},[A]),{x:U,y:V}=B();return reactDom.createPortal(jsxRuntimeExports.jsxs("div",{style:{position:"fixed",left:U,top:V,zIndex:9999,backgroundColor:"white",borderRadius:"8px",boxShadow:"0 10px 15px rgba(0, 0, 0, 0.1)",padding:"8px"},children:[jsxRuntimeExports.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:-1},onClick:R}),jsxRuntimeExports.jsx(Sketch$1,{color:E,onChange:I})]}),document.body)},MENUS_ICONS={ARROW_DOWN:"▼",ARROW_UP:"▲",COLOR:"🎨",COPY:"📋",DELETE:"❌",TRASH:"🗑️",EYE:"👁️",EYE_SLASH:"👁️‍🗨️",LOCK:"🔒",UNLOCK:"🔓",PASTE:"📋",PENCIL:"✏️",PLUS:"➕",MINUS:"➖",ROTATE:"🔄",SCALE:"⚖️",SAVE:"💾",RESET:"🔄",SETTINGS:"⚙️",ZOOM_IN:"🔍",ZOOM_OUT:"🔍",ALIGN_LEFT:"☰",ALIGN_CENTER:"≣",ALIGN_RIGHT:"⋰",DISTRIBUTE_HORIZONTALLY:"↔️",DISTRIBUTE_VERTICALLY:"↕️",FLIP_HORIZONTAL:"↔️",FLIP_VERTICAL:"↕️",ROTATE_LEFT:"↺",ROTATE_RIGHT:"↻",SCALE_DOWN:"➖",SCALE_UP:"➕",ADJUST_EQUALISER:"🔊",ADJUST_EQUALISER_SLIDERS:"🎚️",ADJUST_HORIZONTAL_SLIDERS:"🔲",COLOR_FILL:"🎨"},MAX_RECENT_COLORS=10,useDropDownMenu=A=>{const E=React.useRef(null),C=react.useApp();return{createMenu:React.useCallback((I,B,U)=>{if(!I||!C)return;const V=new PIXI__namespace.Container;C.stage.addChild(V),E.current=V;const X=132,K=(32+4)*B.length+8,J=new PIXI__namespace.Graphics;J.beginFill(16777215,.95),J.lineStyle(1,14540253),J.drawRoundedRect(0,0,X,K,4),J.endFill(),V.addChild(J);const Y=new F;Y.alpha=.2,Y.blur=2,Y.distance=3,V.filters=[Y],B.forEach((_e,xe)=>{const Se=new PIXI__namespace.Container;Se.eventMode="static";const Pe=new PIXI__namespace.Graphics;Pe.beginFill(16777215,0),Pe.drawRect(0,0,X,32),Pe.endFill(),Se.addChild(Pe);const Ee=new PIXI__namespace.Text(_e.icon,{fontSize:14,fontFamily:"Arial",fill:3355443});Ee.x=8,Ee.y=32/2-Ee.height/2,Se.addChild(Ee);const Ae=new PIXI__namespace.Text(_e.label,{fontSize:12,fontFamily:"Arial",fill:3355443});Ae.x=32+4,Ae.y=32/2-Ae.height/2,Se.addChild(Ae),Se.y=xe*(32+4)+4,Se.on("pointerover",()=>{Pe.clear(),Pe.beginFill(15790320),Pe.drawRect(0,0,X,32),Pe.endFill()}).on("pointerout",()=>{Pe.clear(),Pe.beginFill(16777215,0),Pe.drawRect(0,0,X,32),Pe.endFill()}).on("pointerup",()=>{_e.action(),A(!1)}),V.addChild(Se)}),V.x=U.x,V.y=U.y;const Z=_e=>{const xe=new PIXI__namespace.Point(_e.global.x,_e.global.y);V.getBounds().contains(xe.x,xe.y)||A(!1)};return C.stage.on("pointerdown",Z),()=>{C.stage.off("pointerdown",Z),V.parent&&V.parent.removeChild(V)}},[]),dropdownRef:E}},TransformerMenu=({PixiTransformer:A})=>{const E=React.useRef(null),C=React.useRef(null),R=React.useRef(null),I=react.useApp(),[B,U]=React.useState(!1),[V,X]=React.useState({x:0,y:0}),[,K]=React.useState(!1),[J,Y]=React.useState("#000000"),[,Z]=React.useState({x:0,y:0}),[_e,xe]=React.useState(!1),[Se,Pe]=React.useState({x:0,y:0}),[Ee,Ae]=React.useState(()=>{const Me=localStorage.getItem("recentColors");return Me?JSON.parse(Me):[]}),{createMenu:Te,dropdownRef:we}=useDropDownMenu(xe),Ie=32,Fe=4,ke=8,Le=[{icon:"B",action:()=>{},tooltip:"Bold"},{icon:"I",action:()=>{},tooltip:"Italic"},{icon:"U",action:()=>{},tooltip:"Underline"},{icon:"🎨",action:(Me,Ne)=>{const De={x:V.x+Me,y:V.y+Ne+33},Xe=I.view.getBoundingClientRect(),qe=Xe.left+De.x,Ye=Xe.top+De.y;$e(qe,Ye)},tooltip:"Color",withPreview:!0},{icon:MENUS_ICONS.ARROW_DOWN,action:(Me,Ne)=>{je(Me,Ne)},tooltip:"Alignment Options"}],Ge=[{icon:MENUS_ICONS.ALIGN_LEFT,action:()=>console.log("Align Left"),label:"Left"},{icon:MENUS_ICONS.ALIGN_CENTER,action:()=>console.log("Align Center"),label:"Center"},{icon:MENUS_ICONS.ALIGN_RIGHT,action:()=>console.log("Align Right"),label:"Right"},{icon:"↑",action:()=>console.log("bring forward"),label:"Bring Forward"},{icon:"↓",action:()=>console.log("send backward"),label:"Send Backward"}],Ue=(Ie+Fe)*Le.length+ke*2-Fe,Be=Ie+ke*2,je=React.useCallback((Me,Ne)=>{xe(De=>!De),Pe({x:V.x+Me,y:V.y+Ne+Ie+5})},[V,Ie]),Ve=React.useCallback(()=>{R.current&&(R.current.unmount(),K(!1)),we.current&&we.current.parent&&(we.current.parent.removeChild(we.current),we.current=null,xe(!1))},[]),ze=React.useCallback(()=>{const Me=document.createElement("div");return Me.id="color-picker-portal",document.body.appendChild(Me),C.current=Me,R.current=client.createRoot(Me),()=>{Me&&Me.parentNode&&document.body.removeChild(Me)}},[]);React.useEffect(()=>{ze()},[]);const He=React.useCallback(Me=>{Y(Me),Ae(Ne=>{const De=[Me,...Ne.filter(Xe=>Xe!==Me)].slice(0,MAX_RECENT_COLORS);return localStorage.setItem("recentColors",JSON.stringify(De)),De})},[]),Oe=React.useCallback(()=>{K(!1),R.current&&R.current.unmount()},[]),$e=React.useCallback((Me,Ne)=>{C.current&&R.current&&(Z({x:Me,y:Ne}),K(!0),(!R.current||!R.current._internalRoot)&&ze(),R.current.render(jsxRuntimeExports.jsx(ColorPickerPortal,{position:{x:Me,y:Ne},color:J,onChange:He,onClose:Oe,recentColors:Ee})))},[J,He,Oe]);React.useEffect(()=>{const Me=()=>{if(A.current){const De=A.current.getBounds();X({x:De.x+De.width/2-Ue/2,y:De.y+De.height})}},Ne=setTimeout(()=>{E.current&&(Me(),U(!0))},300);return()=>{clearTimeout(Ne)}},[]);const Re=React.useCallback(()=>{if(Ve(),A.current){const Me=A.current.getBounds();X({x:Me.x+Me.width/2-Ue/2,y:Me.y+Me.height})}},[Ve]);return React.useEffect(()=>{const Me=Ne=>{if(C.current){const De=C.current.firstChild;De&&!De.contains(Ne.target)&&Ve()}(Ne.type==="resize"||Ne.type==="scroll")&&Ve()};return window.addEventListener("click",Me),window.addEventListener("resize",Me),window.addEventListener("scroll",Me),()=>{window.removeEventListener("click",Me),window.removeEventListener("resize",Me),window.removeEventListener("scroll",Me)}},[Ve]),React.useEffect(()=>{var qe;if(!I||!B||!A.current||!E.current)return;const Me=A.current,Ne=new PIXI__namespace.Container;(qe=E.current)==null||qe.addChild(Ne),Me.addListener("transformchange",Re);const De=new PIXI__namespace.Graphics;De.beginFill(16777215,.9),De.lineStyle(1,14540253),De.drawRoundedRect(0,0,Ue,Be,4),De.endFill(),Ne.addChild(De);const Xe=new F;return Xe.alpha=.2,Xe.blur=2,Xe.distance=3,Ne.filters=[Xe],Le.forEach((Ye,Je)=>{const Ke=new PIXI__namespace.Container,rt=ke+(Ie+Fe)*Je,nt=ke,Qe=new PIXI__namespace.Graphics;Qe.beginFill(16119285),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill(),Ke.addChild(Qe);const Ze=new PIXI__namespace.Text(Ye.icon,{fontSize:14,fontFamily:"Arial",fill:Ye.icon==="🎨"?J:3355443,fontWeight:"bold"});Ze.x=Ie/2-Ze.width/2,Ze.y=Ie/2-Ze.height/2,Ke.addChild(Ze),Ke.x=rt,Ke.y=nt,Ke.interactive=!0,Ke.eventMode="static",Ke.on("pointerover",()=>{Qe.clear(),Qe.beginFill(15658734),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill(),Ye.icon!=="🎨"&&(Ze.style.fill=0)}),Ke.on("pointerout",()=>{Qe.clear(),Qe.beginFill(16119285),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill(),Ye.icon!=="🎨"&&(Ze.style.fill=3355443)}),Ke.on("pointerdown",()=>{Qe.clear(),Qe.beginFill(14737632),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill()}),Ke.on("pointerup",()=>{Qe.clear(),Qe.beginFill(16119285),Qe.drawRoundedRect(0,0,Ie,Ie,4),Qe.endFill(),Ye.action(rt,nt)}),Ne.addChild(Ke)}),Ne.x=V.x,Ne.y=V.y,Ne.visible=Me.visible,()=>{E.current&&E.current.removeChild(Ne),A.current&&A.current.removeListener("transformchange",Re)}},[I,B,V,Le,Ue,Be,J]),React.useEffect(()=>Te(_e,Ge,Se),[_e,Ge,Se]),React.useEffect(()=>()=>{Ve()},[Ve]),jsxRuntimeExports.jsx(react.Sprite,{texture:PIXI__namespace.Texture.EMPTY,ref:E,x:10,y:10})},CYAN_MATRIX=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],withFiltersHook=A=>{const{contrast:E=1,saturation:C=1,brightness:R=1,alpha:I=1,red:B=1,blue:U=1,gamma:V=1,green:X=1,blurRadius:K=0,temperature:J=0,hue:Y=0,sharpness:Z=0,vignette:_e=0,noise:xe=0,effect:Se=Effects.Normal}=A||{},Pe=new PIXI__namespace.ColorMatrixFilter;if(J!==0){const $e=Pe.matrix,Re=J/100;$e[0]+=Re,$e[10]-=Re,Pe.matrix=$e}const Ee=new n$3([0,-Z,0,-Z,1+4*Z,-Z,0,-Z,0]),Ae=new n$2({hue:Y,saturation:0,lightness:0}),Te=new _$1(K,1,!0),we=new r$2({vignetting:_e}),Ie=new PIXI__namespace.NoiseFilter(xe),Fe=new n$2({hue:0,saturation:-1,lightness:0}),ke=new PIXI__namespace.ColorMatrixFilter;ke.sepia(!0);const Le=new PIXI__namespace.ColorMatrixFilter;Le.negative(!1),Le.sepia(!0);const Ge=new l$3({distance:10,outerStrength:1,innerStrength:1,color:65280,quality:.5}),Ue=new PIXI__namespace.ColorMatrixFilter,Be=[.1,.5,.1,0,0,.1,.8,.1,0,0,.1,.5,.1,0,0,0,0,0,1,0];Ue.matrix[0]=Be[0],Ue.matrix[1]=Be[1],Ue.matrix[2]=Be[2],Ue.matrix[3]=Be[3],Ue.matrix[4]=Be[4],Ue.matrix[5]=Be[5],Ue.matrix[6]=Be[6],Ue.matrix[7]=Be[7],Ue.matrix[8]=Be[8],Ue.matrix[9]=Be[9],Ue.matrix[10]=Be[10],Ue.matrix[11]=Be[11],Ue.matrix[12]=Be[12],Ue.matrix[13]=Be[13],Ue.matrix[14]=Be[14],Ue.matrix[15]=Be[15],Ue.matrix[16]=Be[16],Ue.matrix[17]=Be[17],Ue.matrix[18]=Be[18],Ue.matrix[19]=Be[19];const je=new PIXI__namespace.ColorMatrixFilter;for(let $e=0;$e<CYAN_MATRIX.length;$e++)je.matrix[$e]=CYAN_MATRIX[$e];const Ve=new PIXI__namespace.ColorMatrixFilter;Ve.reset();const ze=new s$4({...V&&{gamma:V},...R&&{brightness:R},...E&&{contrast:E},...C&&{saturation:C},...B&&{red:B},...X&&{green:X},...U&&{blue:U},...I&&{alpha:I}}),Oe=(()=>{switch(Se){case Effects.BlackAndWhite:return Fe;case Effects.Sepia:return ke;case Effects.RetroVintage:return Le;case Effects.NightVision:return[Ge,Ue];case Effects.Normal:case Effects.None:return Ve;case Effects.Vignette:return we;case Effects.CYAN:return je;default:return null}})();return{adjustmentFilter:ze,blurFilter:Te,hslFilter:Ae,sharpnessFilter:Ee,temperatureFilter:Pe,vignetteFilter:we,noiseFilter:Ie,effectFilter:Oe,blackAndWhiteFilter:Fe,sepiaFilter:ke,retroVintageFilter:Le,nightVisionFilter:Ge,nightVisionColorMatrix:Ue,cyanFilter:je,normalFilter:Ve}},initalTransforms$1={x:0,y:0,width:0,height:0,anchor:.5,animation:Animations.NONE,maxX:0,maxY:0,scale:1,rotation:0,effect:Effects.Normal,overlay:OverlayTypes.NONE,fontSize:10},AbstractContainer=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(!1),[I]=React.useState(!1),[B,U]=React.useState(!1),[V,X]=React.useState(),K=React.useRef(null),J=React.useRef(null),Y=React.useRef(null),Z=React.useRef(null),_e=React.useRef(null),xe=React.useRef(null),Se=React.useRef({isDragging:!1}),{tl:Pe}=React.useContext(GsapPixieContext),Ee=react.useApp(),Ae=Ee.screen.width,Te=Ee.screen.height,{uniqueId:we,visible:Ie,startAt:Fe,transformation:ke=initalTransforms$1,applyTransformer:Le,disabled:Ge,pointerdown:Ue,pointerout:Be,pointerover:je,isText:Ve,isDragging:ze,isGif:He,onDoubleClick:Oe,isTextEditMode:$e,handleDragFontSize:Re,handleDragWordWrap:Me}=A,{x:Ne=0,y:De=0,width:Xe,height:qe,scale:Ye=[1,1],rotation:Je=0,effect:Ke,overlay:rt,animation:nt=Animations.NONE,fontSize:Qe=16}=ke,Ze=useGsapEffect();useCustomEventListener(Events.COMPLETE,()=>{K.current}),React__namespace.useImperativeHandle(E,()=>({getIsTransformerDragging:()=>I,getIsMouseOverTransformer:()=>B}),[I,B]),React__namespace.useEffect(()=>{K.current&&R(!0)},[]),React__namespace.useEffect(()=>{X({x:Ne,y:De,width:Xe,height:qe,animation:nt,maxX:Ae,maxY:Te})},[nt,Ne,De,Xe,qe,Ae,Te]),React__namespace.useEffect(()=>{if(J.current){if(Pe.current&&V){console.log("transforms 1001",V);const{x:ht,y:dt,animation:mt,maxX:ct,maxY:pt}=V||{},yt=Pe.current.progress(),gt=Ze.updateEffect(K.current,mt,{immediateRender:!1,x:ht,y:dt,overwrite:!0,maxX:ct,maxY:pt});console.log("transforms 10012x",V),_e.current&&(Pe.current.remove(_e.current),_e.current.progress(0).kill()),yt>.1?(gt.eventCallback("onComplete",()=>{gt.remove("onComplete"),Pe.current.add(gt,Fe),_e.current=gt}),gt.play()):(gt.progress(1),Pe.current.add(gt,Fe),_e.current=gt)}else _e.current&&_e.current.progress(0).kill();return()=>{}}},[Fe,V]);const tt=React__namespace.useCallback(()=>{U(!0),je&&!Se.current.isDragging&&je()},[]),st=ht=>parseFloat(ht.toFixed(2)),et=React__namespace.useCallback(()=>{var mt,ct;Se.current.isDragging=!0;const{width:ht}=K.current,dt={x:st(Number((mt=K.current)==null?void 0:mt.scale.x)),y:st(Number((ct=K.current)==null?void 0:ct.scale.y))};if(Ve){if(dt.x!==1&&dt.y!==1&&Y.current){const pt=Qe*dt.x;Re&&Re(ht,pt,dt)}else if(dt.x!==1)Me&&Me(ht,dt);else if(dt.y!==1){const pt=Qe*dt.x;Re&&Re(ht,pt,dt)}}},[Ve,Qe,Re,Me]),We=React__namespace.useCallback(ht=>{var It,St;const{x:dt,y:mt,width:ct,height:pt,rotation:yt}=K.current,gt={x:st(Number((It=K.current)==null?void 0:It.scale.x)),y:st(Number((St=K.current)==null?void 0:St.scale.y))};let xt=Qe;Ve&&gt.x!==1&&gt.y!==1?(xt=Qe*gt.x,Re&&Re(ct,xt,gt)):Ve&&gt.x!==1&&Me&&Me(ct,gt),A.onAnchorTransformationEnd&&A.onAnchorTransformationEnd({uniqueId:we,transformation:{...ht.transformation,fontSize:xt}}),Se.current.isDragging=!1},[Ve,we,Qe,Re,Me]),{effectFilter:it}=withFiltersHook({effect:Ke}),lt=React__namespace.useMemo(()=>it?Array.isArray(it)?it.filter(ht=>ht!=null):[it]:[],[it]);return jsxRuntimeExports.jsxs(react.Container,{ref:J,children:[jsxRuntimeExports.jsx(react.Container,{ref:K,position:[Ne,De],pivot:[Ne,De],width:Xe,height:qe,scale:Ye,rotation:Je,...!Ge&&Ie&&!I&&!ze&&{interactive:!0,buttonMode:!0,pointerdown:Ue,pointerover:je,pointerout:Be},children:jsxRuntimeExports.jsxs(react.Container,{ref:xe,children:[!He&&jsxRuntimeExports.jsx(react.Container,{scale:1,filters:lt,children:jsxRuntimeExports.jsx(react.Container,{ref:Y,children:A.children})}),He&&jsxRuntimeExports.jsx(react.Container,{ref:Y,children:A.children}),!isEmpty$2(rt)&&rt!==OverlayTypes.NONE&&rt!==OverlayTypes.NORMAL&&jsxRuntimeExports.jsx(PixiOverlayTilingSprite,{overlay:rt,width:Xe,height:qe,x:Ne,y:De}),jsxRuntimeExports.jsx(react.Sprite,{texture:PIXI__namespace.Texture.WHITE,alpha:0,x:Ne,y:De,width:Xe,height:qe,scale:Ye,rotation:Je})]})}),Le&&Ie&&!$e&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PixiTransformer,{pixiTransformerRef:Z,imageRef:K,isMounted:C,transformCommit:We,transformChange:et,mouseoverEvent:tt,uniqueId:we,isText:Ve,onDoubleClick:Oe}),jsxRuntimeExports.jsx(TransformerMenu,{PixiTransformer:Z,uniqueId:we,isText:!!Ve})]})]})}),PixiImageSprite=React__namespace.forwardRef((A,E)=>{const C=React.useRef(null),R=React.useRef(null),{src:I,visible:B,disabled:U,transformation:{x:V,y:X,width:K,height:J,anchor:Y,colorCorrection:Z={},effect:_e},pointerdown:xe}=A,{blurRadius:Se=0,vignette:Pe=0,noise:Ee=0}=Z,Ae={...Z,effect:_e},{temperatureFilter:Te,sharpnessFilter:we,hslFilter:Ie,blurFilter:Fe,adjustmentFilter:ke,vignetteFilter:Le,noiseFilter:Ge,effectFilter:Ue}=withFiltersHook(Ae);React__namespace.useEffect(()=>()=>{console.log("PixiImageSprite unmounting")},[]);const Be=()=>{const je=[Te,we,Ie,ke];return Ue&&(Array.isArray(Ue)?je.push(...Ue):je.push(Ue)),Se>0&&je.push(Fe),Pe>0&&!Ue&&je.push(Le),Ee>0&&je.push(Ge),je};return jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,children:jsxRuntimeExports.jsx(react.Container,{ref:R,children:jsxRuntimeExports.jsx(react.Sprite,{image:I,width:K,height:J,anchor:Y,ref:C,alpha:B?1:0,x:V,y:X,...!U&&B&&{interactive:!0,pointerdown:xe},filters:Be()})})})});PixiImageSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"ImageSprite"};const buildCircle={build(A){const E=A.points;let C,R,I,B,U,V;if(A.type===SHAPES.CIRC){const xe=A.shape;C=xe.x,R=xe.y,U=V=xe.radius,I=B=0}else if(A.type===SHAPES.ELIP){const xe=A.shape;C=xe.x,R=xe.y,U=xe.width,V=xe.height,I=B=0}else{const xe=A.shape,Se=xe.width/2,Pe=xe.height/2;C=xe.x+Se,R=xe.y+Pe,U=V=Math.max(0,Math.min(xe.radius,Math.min(Se,Pe))),I=Se-U,B=Pe-V}if(!(U>=0&&V>=0&&I>=0&&B>=0)){E.length=0;return}const X=Math.ceil(2.3*Math.sqrt(U+V)),K=X*8+(I?4:0)+(B?4:0);if(E.length=K,K===0)return;if(X===0){E.length=8,E[0]=E[6]=C+I,E[1]=E[3]=R+B,E[2]=E[4]=C-I,E[5]=E[7]=R-B;return}let J=0,Y=X*4+(I?2:0)+2,Z=Y,_e=K;{const xe=I+U,Se=B,Pe=C+xe,Ee=C-xe,Ae=R+Se;if(E[J++]=Pe,E[J++]=Ae,E[--Y]=Ae,E[--Y]=Ee,B){const Te=R-Se;E[Z++]=Ee,E[Z++]=Te,E[--_e]=Te,E[--_e]=Pe}}for(let xe=1;xe<X;xe++){const Se=Math.PI/2*(xe/X),Pe=I+Math.cos(Se)*U,Ee=B+Math.sin(Se)*V,Ae=C+Pe,Te=C-Pe,we=R+Ee,Ie=R-Ee;E[J++]=Ae,E[J++]=we,E[--Y]=we,E[--Y]=Te,E[Z++]=Te,E[Z++]=Ie,E[--_e]=Ie,E[--_e]=Ae}{const xe=I,Se=B+V,Pe=C+xe,Ee=C-xe,Ae=R+Se,Te=R-Se;E[J++]=Pe,E[J++]=Ae,E[--_e]=Te,E[--_e]=Pe,I&&(E[J++]=Ee,E[J++]=Ae,E[--_e]=Te,E[--_e]=Ee)}},triangulate(A,E){const C=A.points,R=E.points,I=E.indices;if(C.length===0)return;let B=R.length/2;const U=B;let V,X;if(A.type!==SHAPES.RREC){const J=A.shape;V=J.x,X=J.y}else{const J=A.shape;V=J.x+J.width/2,X=J.y+J.height/2}const K=A.matrix;R.push(A.matrix?K.a*V+K.c*X+K.tx:V,A.matrix?K.b*V+K.d*X+K.ty:X),B++,R.push(C[0],C[1]);for(let J=2;J<C.length;J+=2)R.push(C[J],C[J+1]),I.push(B++,U,B);I.push(U+1,U,B)}};function fixOrientation(A,E=!1){const C=A.length;if(C<6)return;let R=0;for(let I=0,B=A[C-2],U=A[C-1];I<C;I+=2){const V=A[I],X=A[I+1];R+=(V-B)*(X+U),B=V,U=X}if(!E&&R>0||E&&R<=0){const I=C/2;for(let B=I+I%2;B<C;B+=2){const U=C-B-2,V=C-B-1,X=B,K=B+1;[A[U],A[X]]=[A[X],A[U]],[A[V],A[K]]=[A[K],A[V]]}}}const buildPoly={build(A){A.points=A.shape.points.slice()},triangulate(A,E){let C=A.points;const R=A.holes,I=E.points,B=E.indices;if(C.length>=6){fixOrientation(C,!1);const U=[];for(let K=0;K<R.length;K++){const J=R[K];fixOrientation(J.points,!0),U.push(C.length/2),C=C.concat(J.points)}const V=earcut$1(C,U,2);if(!V)return;const X=I.length/2;for(let K=0;K<V.length;K+=3)B.push(V[K]+X),B.push(V[K+1]+X),B.push(V[K+2]+X);for(let K=0;K<C.length;K++)I.push(C[K])}}},buildRectangle={build(A){const E=A.shape,C=E.x,R=E.y,I=E.width,B=E.height,U=A.points;U.length=0,I>=0&&B>=0&&U.push(C,R,C+I,R,C+I,R+B,C,R+B)},triangulate(A,E){const C=A.points,R=E.points;if(C.length===0)return;const I=R.length/2;R.push(C[0],C[1],C[2],C[3],C[6],C[7],C[4],C[5]),E.indices.push(I,I+1,I+2,I+1,I+2,I+3)}},buildRoundedRectangle={build(A){buildCircle.build(A)},triangulate(A,E){buildCircle.triangulate(A,E)}};var LINE_JOIN=(A=>(A.MITER="miter",A.BEVEL="bevel",A.ROUND="round",A))(LINE_JOIN||{}),LINE_CAP=(A=>(A.BUTT="butt",A.ROUND="round",A.SQUARE="square",A))(LINE_CAP||{});const curves={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(A,E=20){if(!this.adaptive||!A||isNaN(A))return E;let C=Math.ceil(A/this.maxLength);return C<this.minSegments?C=this.minSegments:C>this.maxSegments&&(C=this.maxSegments),C}};class ArcUtils{static curveTo(E,C,R,I,B,U){const V=U[U.length-2],X=U[U.length-1]-C,K=V-E,J=I-C,Y=R-E,Z=Math.abs(X*Y-K*J);if(Z<1e-8||B===0)return(U[U.length-2]!==E||U[U.length-1]!==C)&&U.push(E,C),null;const _e=X*X+K*K,xe=J*J+Y*Y,Se=X*J+K*Y,Pe=B*Math.sqrt(_e)/Z,Ee=B*Math.sqrt(xe)/Z,Ae=Pe*Se/_e,Te=Ee*Se/xe,we=Pe*Y+Ee*K,Ie=Pe*J+Ee*X,Fe=K*(Ee+Ae),ke=X*(Ee+Ae),Le=Y*(Pe+Te),Ge=J*(Pe+Te),Ue=Math.atan2(ke-Ie,Fe-we),Be=Math.atan2(Ge-Ie,Le-we);return{cx:we+E,cy:Ie+C,radius:B,startAngle:Ue,endAngle:Be,anticlockwise:K*J>Y*X}}static arc(E,C,R,I,B,U,V,X,K){const J=V-U,Y=curves._segmentsCount(Math.abs(J)*B,Math.ceil(Math.abs(J)/PI_2)*40),Z=J/(Y*2),_e=Z*2,xe=Math.cos(Z),Se=Math.sin(Z),Pe=Y-1,Ee=Pe%1/Pe;for(let Ae=0;Ae<=Pe;++Ae){const Te=Ae+Ee*Ae,we=Z+U+_e*Te,Ie=Math.cos(we),Fe=-Math.sin(we);K.push((xe*Ie+Se*Fe)*B+R,(xe*-Fe+Se*Ie)*B+I)}}}class BatchPart{constructor(){this.reset()}begin(E,C,R){this.reset(),this.style=E,this.start=C,this.attribStart=R}end(E,C){this.attribSize=C-this.attribStart,this.size=E-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class BezierUtils{static curveLength(E,C,R,I,B,U,V,X){let K=0,J=0,Y=0,Z=0,_e=0,xe=0,Se=0,Pe=0,Ee=0,Ae=0,Te=0,we=E,Ie=C;for(let Fe=1;Fe<=10;++Fe)J=Fe/10,Y=J*J,Z=Y*J,_e=1-J,xe=_e*_e,Se=xe*_e,Pe=Se*E+3*xe*J*R+3*_e*Y*B+Z*V,Ee=Se*C+3*xe*J*I+3*_e*Y*U+Z*X,Ae=we-Pe,Te=Ie-Ee,we=Pe,Ie=Ee,K+=Math.sqrt(Ae*Ae+Te*Te);return K}static curveTo(E,C,R,I,B,U,V){const X=V[V.length-2],K=V[V.length-1];V.length-=2;const J=curves._segmentsCount(BezierUtils.curveLength(X,K,E,C,R,I,B,U));let Y=0,Z=0,_e=0,xe=0,Se=0;V.push(X,K);for(let Pe=1,Ee=0;Pe<=J;++Pe)Ee=Pe/J,Y=1-Ee,Z=Y*Y,_e=Z*Y,xe=Ee*Ee,Se=xe*Ee,V.push(_e*X+3*Z*Ee*E+3*Y*xe*R+Se*B,_e*K+3*Z*Ee*C+3*Y*xe*I+Se*U)}}function square(A,E,C,R,I,B,U,V){const X=A-C*I,K=E-R*I,J=A+C*B,Y=E+R*B;let Z,_e;U?(Z=R,_e=-C):(Z=-R,_e=C);const xe=X+Z,Se=K+_e,Pe=J+Z,Ee=Y+_e;return V.push(xe,Se,Pe,Ee),2}function round(A,E,C,R,I,B,U,V){const X=C-A,K=R-E;let J=Math.atan2(X,K),Y=Math.atan2(I-A,B-E);V&&J<Y?J+=Math.PI*2:!V&&J>Y&&(Y+=Math.PI*2);let Z=J;const _e=Y-J,xe=Math.abs(_e),Se=Math.sqrt(X*X+K*K),Pe=(15*xe*Math.sqrt(Se)/Math.PI>>0)+1,Ee=_e/Pe;if(Z+=Ee,V){U.push(A,E,C,R);for(let Ae=1,Te=Z;Ae<Pe;Ae++,Te+=Ee)U.push(A,E,A+Math.sin(Te)*Se,E+Math.cos(Te)*Se);U.push(A,E,I,B)}else{U.push(C,R,A,E);for(let Ae=1,Te=Z;Ae<Pe;Ae++,Te+=Ee)U.push(A+Math.sin(Te)*Se,E+Math.cos(Te)*Se,A,E);U.push(I,B,A,E)}return Pe*2}function buildNonNativeLine(A,E){const C=A.shape;let R=A.points||C.points.slice();const I=E.closePointEps;if(R.length===0)return;const B=A.lineStyle,U=new Point(R[0],R[1]),V=new Point(R[R.length-2],R[R.length-1]),X=C.type!==SHAPES.POLY||C.closeStroke,K=Math.abs(U.x-V.x)<I&&Math.abs(U.y-V.y)<I;if(X){R=R.slice(),K&&(R.pop(),R.pop(),V.set(R[R.length-2],R[R.length-1]));const $e=(U.x+V.x)*.5,Re=(V.y+U.y)*.5;R.unshift($e,Re),R.push($e,Re)}const J=E.points,Y=R.length/2;let Z=R.length;const _e=J.length/2,xe=B.width/2,Se=xe*xe,Pe=B.miterLimit*B.miterLimit;let Ee=R[0],Ae=R[1],Te=R[2],we=R[3],Ie=0,Fe=0,ke=-(Ae-we),Le=Ee-Te,Ge=0,Ue=0,Be=Math.sqrt(ke*ke+Le*Le);ke/=Be,Le/=Be,ke*=xe,Le*=xe;const je=B.alignment,Ve=(1-je)*2,ze=je*2;X||(B.cap===LINE_CAP.ROUND?Z+=round(Ee-ke*(Ve-ze)*.5,Ae-Le*(Ve-ze)*.5,Ee-ke*Ve,Ae-Le*Ve,Ee+ke*ze,Ae+Le*ze,J,!0)+2:B.cap===LINE_CAP.SQUARE&&(Z+=square(Ee,Ae,ke,Le,Ve,ze,!0,J))),J.push(Ee-ke*Ve,Ae-Le*Ve,Ee+ke*ze,Ae+Le*ze);for(let $e=1;$e<Y-1;++$e){Ee=R[($e-1)*2],Ae=R[($e-1)*2+1],Te=R[$e*2],we=R[$e*2+1],Ie=R[($e+1)*2],Fe=R[($e+1)*2+1],ke=-(Ae-we),Le=Ee-Te,Be=Math.sqrt(ke*ke+Le*Le),ke/=Be,Le/=Be,ke*=xe,Le*=xe,Ge=-(we-Fe),Ue=Te-Ie,Be=Math.sqrt(Ge*Ge+Ue*Ue),Ge/=Be,Ue/=Be,Ge*=xe,Ue*=xe;const Re=Te-Ee,Me=Ae-we,Ne=Te-Ie,De=Fe-we,Xe=Re*Ne+Me*De,qe=Me*Ne-De*Re,Ye=qe<0;if(Math.abs(qe)<.001*Math.abs(Xe)){J.push(Te-ke*Ve,we-Le*Ve,Te+ke*ze,we+Le*ze),Xe>=0&&(B.join===LINE_JOIN.ROUND?Z+=round(Te,we,Te-ke*Ve,we-Le*Ve,Te-Ge*Ve,we-Ue*Ve,J,!1)+4:Z+=2,J.push(Te-Ge*ze,we-Ue*ze,Te+Ge*Ve,we+Ue*Ve));continue}const Je=(-ke+Ee)*(-Le+we)-(-ke+Te)*(-Le+Ae),Ke=(-Ge+Ie)*(-Ue+we)-(-Ge+Te)*(-Ue+Fe),rt=(Re*Ke-Ne*Je)/qe,nt=(De*Je-Me*Ke)/qe,Qe=(rt-Te)*(rt-Te)+(nt-we)*(nt-we),Ze=Te+(rt-Te)*Ve,tt=we+(nt-we)*Ve,st=Te-(rt-Te)*ze,et=we-(nt-we)*ze,We=Math.min(Re*Re+Me*Me,Ne*Ne+De*De),it=Ye?Ve:ze,lt=We+it*it*Se,ht=Qe<=lt;let dt=B.join;if(dt===LINE_JOIN.MITER&&Qe/Se>Pe&&(dt=LINE_JOIN.BEVEL),ht)switch(dt){case LINE_JOIN.MITER:{J.push(Ze,tt,st,et);break}case LINE_JOIN.BEVEL:{Ye?J.push(Ze,tt,Te+ke*ze,we+Le*ze,Ze,tt,Te+Ge*ze,we+Ue*ze):J.push(Te-ke*Ve,we-Le*Ve,st,et,Te-Ge*Ve,we-Ue*Ve,st,et),Z+=2;break}case LINE_JOIN.ROUND:{Ye?(J.push(Ze,tt,Te+ke*ze,we+Le*ze),Z+=round(Te,we,Te+ke*ze,we+Le*ze,Te+Ge*ze,we+Ue*ze,J,!0)+4,J.push(Ze,tt,Te+Ge*ze,we+Ue*ze)):(J.push(Te-ke*Ve,we-Le*Ve,st,et),Z+=round(Te,we,Te-ke*Ve,we-Le*Ve,Te-Ge*Ve,we-Ue*Ve,J,!1)+4,J.push(Te-Ge*Ve,we-Ue*Ve,st,et));break}}else{switch(J.push(Te-ke*Ve,we-Le*Ve,Te+ke*ze,we+Le*ze),dt){case LINE_JOIN.MITER:{Ye?J.push(st,et,st,et):J.push(Ze,tt,Ze,tt),Z+=2;break}case LINE_JOIN.ROUND:{Ye?Z+=round(Te,we,Te+ke*ze,we+Le*ze,Te+Ge*ze,we+Ue*ze,J,!0)+2:Z+=round(Te,we,Te-ke*Ve,we-Le*Ve,Te-Ge*Ve,we-Ue*Ve,J,!1)+2;break}}J.push(Te-Ge*Ve,we-Ue*Ve,Te+Ge*ze,we+Ue*ze),Z+=2}}Ee=R[(Y-2)*2],Ae=R[(Y-2)*2+1],Te=R[(Y-1)*2],we=R[(Y-1)*2+1],ke=-(Ae-we),Le=Ee-Te,Be=Math.sqrt(ke*ke+Le*Le),ke/=Be,Le/=Be,ke*=xe,Le*=xe,J.push(Te-ke*Ve,we-Le*Ve,Te+ke*ze,we+Le*ze),X||(B.cap===LINE_CAP.ROUND?Z+=round(Te-ke*(Ve-ze)*.5,we-Le*(Ve-ze)*.5,Te-ke*Ve,we-Le*Ve,Te+ke*ze,we+Le*ze,J,!1)+2:B.cap===LINE_CAP.SQUARE&&(Z+=square(Te,we,ke,Le,Ve,ze,!1,J)));const He=E.indices,Oe=curves.epsilon*curves.epsilon;for(let $e=_e;$e<Z+_e-2;++$e)Ee=J[$e*2],Ae=J[$e*2+1],Te=J[($e+1)*2],we=J[($e+1)*2+1],Ie=J[($e+2)*2],Fe=J[($e+2)*2+1],!(Math.abs(Ee*(we-Fe)+Te*(Fe-Ae)+Ie*(Ae-we))<Oe)&&He.push($e,$e+1,$e+2)}function buildNativeLine(A,E){let C=0;const R=A.shape,I=A.points||R.points,B=R.type!==SHAPES.POLY||R.closeStroke;if(I.length===0)return;const U=E.points,V=E.indices,X=I.length/2,K=U.length/2;let J=K;for(U.push(I[0],I[1]),C=1;C<X;C++)U.push(I[C*2],I[C*2+1]),V.push(J,J+1),J++;B&&V.push(J,K)}function buildLine(A,E){A.lineStyle.native?buildNativeLine(A,E):buildNonNativeLine(A,E)}class QuadraticUtils{static curveLength(E,C,R,I,B,U){const V=E-2*R+B,X=C-2*I+U,K=2*R-2*E,J=2*I-2*C,Y=4*(V*V+X*X),Z=4*(V*K+X*J),_e=K*K+J*J,xe=2*Math.sqrt(Y+Z+_e),Se=Math.sqrt(Y),Pe=2*Y*Se,Ee=2*Math.sqrt(_e),Ae=Z/Se;return(Pe*xe+Se*Z*(xe-Ee)+(4*_e*Y-Z*Z)*Math.log((2*Se+Ae+xe)/(Ae+Ee)))/(4*Pe)}static curveTo(E,C,R,I,B){const U=B[B.length-2],V=B[B.length-1],X=curves._segmentsCount(QuadraticUtils.curveLength(U,V,E,C,R,I));let K=0,J=0;for(let Y=1;Y<=X;++Y){const Z=Y/X;K=U+(E-U)*Z,J=V+(C-V)*Z,B.push(K+(E+(R-E)*Z-K)*Z,J+(C+(I-C)*Z-J)*Z)}}}const FILL_COMMANDS={[SHAPES.POLY]:buildPoly,[SHAPES.CIRC]:buildCircle,[SHAPES.ELIP]:buildCircle,[SHAPES.RECT]:buildRectangle,[SHAPES.RREC]:buildRoundedRectangle},BATCH_POOL=[],DRAW_CALL_POOL=[];class Bounds{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(E){return this.minX>this.maxX||this.minY>this.maxY?Rectangle.EMPTY:(E=E||new Rectangle(0,0,1,1),E.x=this.minX,E.y=this.minY,E.width=this.maxX-this.minX,E.height=this.maxY-this.minY,E)}addPoint(E){this.minX=Math.min(this.minX,E.x),this.maxX=Math.max(this.maxX,E.x),this.minY=Math.min(this.minY,E.y),this.maxY=Math.max(this.maxY,E.y)}addPointMatrix(E,C){const{a:R,b:I,c:B,d:U,tx:V,ty:X}=E,K=R*C.x+B*C.y+V,J=I*C.x+U*C.y+X;this.minX=Math.min(this.minX,K),this.maxX=Math.max(this.maxX,K),this.minY=Math.min(this.minY,J),this.maxY=Math.max(this.maxY,J)}addQuad(E){let C=this.minX,R=this.minY,I=this.maxX,B=this.maxY,U=E[0],V=E[1];C=U<C?U:C,R=V<R?V:R,I=U>I?U:I,B=V>B?V:B,U=E[2],V=E[3],C=U<C?U:C,R=V<R?V:R,I=U>I?U:I,B=V>B?V:B,U=E[4],V=E[5],C=U<C?U:C,R=V<R?V:R,I=U>I?U:I,B=V>B?V:B,U=E[6],V=E[7],C=U<C?U:C,R=V<R?V:R,I=U>I?U:I,B=V>B?V:B,this.minX=C,this.minY=R,this.maxX=I,this.maxY=B}addFrame(E,C,R,I,B){this.addFrameMatrix(E.worldTransform,C,R,I,B)}addFrameMatrix(E,C,R,I,B){const U=E.a,V=E.b,X=E.c,K=E.d,J=E.tx,Y=E.ty;let Z=this.minX,_e=this.minY,xe=this.maxX,Se=this.maxY,Pe=U*C+X*R+J,Ee=V*C+K*R+Y;Z=Pe<Z?Pe:Z,_e=Ee<_e?Ee:_e,xe=Pe>xe?Pe:xe,Se=Ee>Se?Ee:Se,Pe=U*I+X*R+J,Ee=V*I+K*R+Y,Z=Pe<Z?Pe:Z,_e=Ee<_e?Ee:_e,xe=Pe>xe?Pe:xe,Se=Ee>Se?Ee:Se,Pe=U*C+X*B+J,Ee=V*C+K*B+Y,Z=Pe<Z?Pe:Z,_e=Ee<_e?Ee:_e,xe=Pe>xe?Pe:xe,Se=Ee>Se?Ee:Se,Pe=U*I+X*B+J,Ee=V*I+K*B+Y,Z=Pe<Z?Pe:Z,_e=Ee<_e?Ee:_e,xe=Pe>xe?Pe:xe,Se=Ee>Se?Ee:Se,this.minX=Z,this.minY=_e,this.maxX=xe,this.maxY=Se}addVertexData(E,C,R){let I=this.minX,B=this.minY,U=this.maxX,V=this.maxY;for(let X=C;X<R;X+=2){const K=E[X],J=E[X+1];I=K<I?K:I,B=J<B?J:B,U=K>U?K:U,V=J>V?J:V}this.minX=I,this.minY=B,this.maxX=U,this.maxY=V}addVertices(E,C,R,I){this.addVerticesMatrix(E.worldTransform,C,R,I)}addVerticesMatrix(E,C,R,I,B=0,U=B){const V=E.a,X=E.b,K=E.c,J=E.d,Y=E.tx,Z=E.ty;let _e=this.minX,xe=this.minY,Se=this.maxX,Pe=this.maxY;for(let Ee=R;Ee<I;Ee+=2){const Ae=C[Ee],Te=C[Ee+1],we=V*Ae+K*Te+Y,Ie=J*Te+X*Ae+Z;_e=Math.min(_e,we-B),Se=Math.max(Se,we+B),xe=Math.min(xe,Ie-U),Pe=Math.max(Pe,Ie+U)}this.minX=_e,this.minY=xe,this.maxX=Se,this.maxY=Pe}addBounds(E){const C=this.minX,R=this.minY,I=this.maxX,B=this.maxY;this.minX=E.minX<C?E.minX:C,this.minY=E.minY<R?E.minY:R,this.maxX=E.maxX>I?E.maxX:I,this.maxY=E.maxY>B?E.maxY:B}addBoundsMask(E,C){const R=E.minX>C.minX?E.minX:C.minX,I=E.minY>C.minY?E.minY:C.minY,B=E.maxX<C.maxX?E.maxX:C.maxX,U=E.maxY<C.maxY?E.maxY:C.maxY;if(R<=B&&I<=U){const V=this.minX,X=this.minY,K=this.maxX,J=this.maxY;this.minX=R<V?R:V,this.minY=I<X?I:X,this.maxX=B>K?B:K,this.maxY=U>J?U:J}}addBoundsMatrix(E,C){this.addFrameMatrix(C,E.minX,E.minY,E.maxX,E.maxY)}addBoundsArea(E,C){const R=E.minX>C.x?E.minX:C.x,I=E.minY>C.y?E.minY:C.y,B=E.maxX<C.x+C.width?E.maxX:C.x+C.width,U=E.maxY<C.y+C.height?E.maxY:C.y+C.height;if(R<=B&&I<=U){const V=this.minX,X=this.minY,K=this.maxX,J=this.maxY;this.minX=R<V?R:V,this.minY=I<X?I:X,this.maxX=B>K?B:K,this.maxY=U>J?U:J}}pad(E=0,C=E){this.isEmpty()||(this.minX-=E,this.maxX+=E,this.minY-=C,this.maxY+=C)}addFramePad(E,C,R,I,B,U){E-=B,C-=U,R+=B,I+=U,this.minX=this.minX<E?this.minX:E,this.maxX=this.maxX>R?this.maxX:R,this.minY=this.minY<C?this.minY:C,this.maxY=this.maxY>I?this.maxY:I}}class DisplayObject extends EventEmitter{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new Transform,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new Bounds,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(E){const C=Object.keys(E);for(let R=0;R<C.length;++R){const I=C[R];Object.defineProperty(DisplayObject.prototype,I,Object.getOwnPropertyDescriptor(E,I))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(E,C){return E||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),C||(this._boundsRect||(this._boundsRect=new Rectangle),C=this._boundsRect),this._bounds.getRectangle(C)}getLocalBounds(E){E||(this._localBoundsRect||(this._localBoundsRect=new Rectangle),E=this._localBoundsRect),this._localBounds||(this._localBounds=new Bounds);const C=this.transform,R=this.parent;this.parent=null,this._tempDisplayObjectParent.worldAlpha=(R==null?void 0:R.worldAlpha)??1,this.transform=this._tempDisplayObjectParent.transform;const I=this._bounds,B=this._boundsID;this._bounds=this._localBounds;const U=this.getBounds(!1,E);return this.parent=R,this.transform=C,this._bounds=I,this._bounds.updateID+=this._boundsID-B,U}toGlobal(E,C,R=!1){return R||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(E,C)}toLocal(E,C,R,I){return C&&(E=C.toGlobal(E,R,I)),I||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(E,R)}setParent(E){if(!E||!E.addChild)throw new Error("setParent: Argument must be a Container");return E.addChild(this),E}removeFromParent(){var E;(E=this.parent)==null||E.removeChild(this)}setTransform(E=0,C=0,R=1,I=1,B=0,U=0,V=0,X=0,K=0){return this.position.x=E,this.position.y=C,this.scale.x=R||1,this.scale.y=I||1,this.rotation=B,this.skew.x=U,this.skew.y=V,this.pivot.x=X,this.pivot.y=K,this}destroy(E){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new TemporaryDisplayObject),this.tempDisplayObjectParent}enableTempParent(){const E=this.parent;return this.parent=this._tempDisplayObjectParent,E}disableTempParent(E){this.parent=E}get x(){return this.position.x}set x(E){this.transform.position.x=E}get y(){return this.position.y}set y(E){this.transform.position.y=E}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(E){this.transform.position.copyFrom(E)}get scale(){return this.transform.scale}set scale(E){this.transform.scale.copyFrom(E)}get pivot(){return this.transform.pivot}set pivot(E){this.transform.pivot.copyFrom(E)}get skew(){return this.transform.skew}set skew(E){this.transform.skew.copyFrom(E)}get rotation(){return this.transform.rotation}set rotation(E){this.transform.rotation=E}get angle(){return this.transform.rotation*RAD_TO_DEG}set angle(E){this.transform.rotation=E*DEG_TO_RAD}get zIndex(){return this._zIndex}set zIndex(E){this._zIndex!==E&&(this._zIndex=E,this.parent&&(this.parent.sortDirty=!0))}get worldVisible(){let E=this;do{if(!E.visible)return!1;E=E.parent}while(E);return!0}get mask(){return this._mask}set mask(E){if(this._mask!==E){if(this._mask){const C=this._mask.isMaskData?this._mask.maskObject:this._mask;C&&(C._maskRefCount--,C._maskRefCount===0&&(C.renderable=!0,C.isMask=!1))}if(this._mask=E,this._mask){const C=this._mask.isMaskData?this._mask.maskObject:this._mask;C&&(C._maskRefCount===0&&(C.renderable=!1,C.isMask=!0),C._maskRefCount++)}}}}class TemporaryDisplayObject extends DisplayObject{constructor(){super(...arguments),this.sortDirty=null}}DisplayObject.prototype.displayObjectUpdateTransform=DisplayObject.prototype.updateTransform;const tempMatrix=new Matrix$2;function sortChildren(A,E){return A.zIndex===E.zIndex?A._lastSortedIndex-E._lastSortedIndex:A.zIndex-E.zIndex}const _Container=class br extends DisplayObject{constructor(){super(),this.children=[],this.sortableChildren=br.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(E){}addChild(...E){if(E.length>1)for(let C=0;C<E.length;C++)this.addChild(E[C]);else{const C=E[0];C.parent&&C.parent.removeChild(C),C.parent=this,this.sortDirty=!0,C.transform._parentID=-1,this.children.push(C),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",C,this,this.children.length-1),C.emit("added",this)}return E[0]}addChildAt(E,C){if(C<0||C>this.children.length)throw new Error(`${E}addChildAt: The index ${C} supplied is out of bounds ${this.children.length}`);return E.parent&&E.parent.removeChild(E),E.parent=this,this.sortDirty=!0,E.transform._parentID=-1,this.children.splice(C,0,E),this._boundsID++,this.onChildrenChange(C),E.emit("added",this),this.emit("childAdded",E,this,C),E}swapChildren(E,C){if(E===C)return;const R=this.getChildIndex(E),I=this.getChildIndex(C);this.children[R]=C,this.children[I]=E,this.onChildrenChange(R<I?R:I)}getChildIndex(E){const C=this.children.indexOf(E);if(C===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return C}setChildIndex(E,C){if(C<0||C>=this.children.length)throw new Error(`The index ${C} supplied is out of bounds ${this.children.length}`);const R=this.getChildIndex(E);removeItems(this.children,R,1),this.children.splice(C,0,E),this.onChildrenChange(C)}getChildAt(E){if(E<0||E>=this.children.length)throw new Error(`getChildAt: Index (${E}) does not exist.`);return this.children[E]}removeChild(...E){if(E.length>1)for(let C=0;C<E.length;C++)this.removeChild(E[C]);else{const C=E[0],R=this.children.indexOf(C);if(R===-1)return null;C.parent=null,C.transform._parentID=-1,removeItems(this.children,R,1),this._boundsID++,this.onChildrenChange(R),C.emit("removed",this),this.emit("childRemoved",C,this,R)}return E[0]}removeChildAt(E){const C=this.getChildAt(E);return C.parent=null,C.transform._parentID=-1,removeItems(this.children,E,1),this._boundsID++,this.onChildrenChange(E),C.emit("removed",this),this.emit("childRemoved",C,this,E),C}removeChildren(E=0,C=this.children.length){const R=E,I=C,B=I-R;let U;if(B>0&&B<=I){U=this.children.splice(R,B);for(let V=0;V<U.length;++V)U[V].parent=null,U[V].transform&&(U[V].transform._parentID=-1);this._boundsID++,this.onChildrenChange(E);for(let V=0;V<U.length;++V)U[V].emit("removed",this),this.emit("childRemoved",U[V],this,V);return U}else if(B===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let E=!1;for(let C=0,R=this.children.length;C<R;++C){const I=this.children[C];I._lastSortedIndex=C,!E&&I.zIndex!==0&&(E=!0)}E&&this.children.length>1&&this.children.sort(sortChildren),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let E=0,C=this.children.length;E<C;++E){const R=this.children[E];R.visible&&R.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let E=0;E<this.children.length;E++){const C=this.children[E];if(!(!C.visible||!C.renderable))if(C.calculateBounds(),C._mask){const R=C._mask.isMaskData?C._mask.maskObject:C._mask;R?(R.calculateBounds(),this._bounds.addBoundsMask(C._bounds,R._bounds)):this._bounds.addBounds(C._bounds)}else C.filterArea?this._bounds.addBoundsArea(C._bounds,C.filterArea):this._bounds.addBounds(C._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(E,C=!1){const R=super.getLocalBounds(E);if(!C)for(let I=0,B=this.children.length;I<B;++I){const U=this.children[I];U.visible&&U.updateTransform()}return R}_calculateBounds(){}_renderWithCulling(E){const C=E.renderTexture.sourceFrame;if(!(C.width>0&&C.height>0))return;let R,I;this.cullArea?(R=this.cullArea,I=this.worldTransform):this._render!==br.prototype._render&&(R=this.getBounds(!0));const B=E.projection.transform;if(B&&(I?(I=tempMatrix.copyFrom(I),I.prepend(B)):I=B),R&&C.intersects(R,I))this._render(E);else if(this.cullArea)return;for(let U=0,V=this.children.length;U<V;++U){const X=this.children[U],K=X.cullable;X.cullable=K||!this.cullArea,X.render(E),X.cullable=K}}render(E){var C;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(C=this.filters)!=null&&C.length)this.renderAdvanced(E);else if(this.cullable)this._renderWithCulling(E);else{this._render(E);for(let R=0,I=this.children.length;R<I;++R)this.children[R].render(E)}}renderAdvanced(E){var B,U,V;const C=this.filters,R=this._mask;if(C){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let X=0;X<C.length;X++)C[X].enabled&&this._enabledFilters.push(C[X])}const I=C&&((B=this._enabledFilters)==null?void 0:B.length)||R&&(!R.isMaskData||R.enabled&&(R.autoDetect||R.type!==MASK_TYPES.NONE));if(I&&E.batch.flush(),C&&((U=this._enabledFilters)!=null&&U.length)&&E.filter.push(this,this._enabledFilters),R&&E.mask.push(this,this._mask),this.cullable)this._renderWithCulling(E);else{this._render(E);for(let X=0,K=this.children.length;X<K;++X)this.children[X].render(E)}I&&E.batch.flush(),R&&E.mask.pop(this),C&&((V=this._enabledFilters)!=null&&V.length)&&E.filter.pop()}_render(E){}destroy(E){super.destroy(),this.sortDirty=!1;const C=typeof E=="boolean"?E:E==null?void 0:E.children,R=this.removeChildren(0,this.children.length);if(C)for(let I=0;I<R.length;++I)R[I].destroy(E)}get width(){return this.scale.x*this.getLocalBounds().width}set width(E){const C=this.getLocalBounds().width;C!==0?this.scale.x=E/C:this.scale.x=1,this._width=E}get height(){return this.scale.y*this.getLocalBounds().height}set height(E){const C=this.getLocalBounds().height;C!==0?this.scale.y=E/C:this.scale.y=1,this._height=E}};_Container.defaultSortableChildren=!1;let Container=_Container;Container.prototype.containerUpdateTransform=Container.prototype.updateTransform,Object.defineProperties(settings,{SORTABLE_CHILDREN:{get(){return Container.defaultSortableChildren},set(A){deprecation("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Container.defaultSortableChildren=A}}});class GraphicsData{constructor(E,C=null,R=null,I=null){this.points=[],this.holes=[],this.shape=E,this.lineStyle=R,this.fillStyle=C,this.matrix=I,this.type=E.type}clone(){return new GraphicsData(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const tmpPoint=new Point,_GraphicsGeometry=class Rr extends BatchGeometry{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new Bounds,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let E=0;E<this.drawCalls.length;E++)this.drawCalls[E].texArray.clear(),DRAW_CALL_POOL.push(this.drawCalls[E]);this.drawCalls.length=0;for(let E=0;E<this.batches.length;E++){const C=this.batches[E];C.reset(),BATCH_POOL.push(C)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(E,C=null,R=null,I=null){const B=new GraphicsData(E,C,R,I);return this.graphicsData.push(B),this.dirty++,this}drawHole(E,C=null){if(!this.graphicsData.length)return null;const R=new GraphicsData(E,null,null,C),I=this.graphicsData[this.graphicsData.length-1];return R.lineStyle=I.lineStyle,I.holes.push(R),this.dirty++,this}destroy(){super.destroy();for(let E=0;E<this.graphicsData.length;++E)this.graphicsData[E].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(E){const C=this.graphicsData;for(let R=0;R<C.length;++R){const I=C[R];if(I.fillStyle.visible&&I.shape&&(I.matrix?I.matrix.applyInverse(E,tmpPoint):tmpPoint.copyFrom(E),I.shape.contains(tmpPoint.x,tmpPoint.y))){let B=!1;if(I.holes){for(let U=0;U<I.holes.length;U++)if(I.holes[U].shape.contains(tmpPoint.x,tmpPoint.y)){B=!0;break}}if(!B)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const E=this.uvs,C=this.graphicsData;let R=null,I=null;this.batches.length>0&&(R=this.batches[this.batches.length-1],I=R.style);for(let X=this.shapeIndex;X<C.length;X++){this.shapeIndex++;const K=C[X],J=K.fillStyle,Y=K.lineStyle;FILL_COMMANDS[K.type].build(K),K.matrix&&this.transformPoints(K.points,K.matrix),(J.visible||Y.visible)&&this.processHoles(K.holes);for(let Z=0;Z<2;Z++){const _e=Z===0?J:Y;if(!_e.visible)continue;const xe=_e.texture.baseTexture,Se=this.indices.length,Pe=this.points.length/2;xe.wrapMode=WRAP_MODES.REPEAT,Z===0?this.processFill(K):this.processLine(K);const Ee=this.points.length/2-Pe;Ee!==0&&(R&&!this._compareStyles(I,_e)&&(R.end(Se,Pe),R=null),R||(R=BATCH_POOL.pop()||new BatchPart,R.begin(_e,Se,Pe),this.batches.push(R),I=_e),this.addUvs(this.points,E,_e.texture,Pe,Ee,_e.matrix))}}const B=this.indices.length,U=this.points.length/2;if(R&&R.end(B,U),this.batches.length===0){this.batchable=!0;return}const V=U>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&V===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=V?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(E,C){return!(!E||!C||E.texture.baseTexture!==C.texture.baseTexture||E.color+E.alpha!==C.color+C.alpha||!!E.native!=!!C.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let E=0,C=this.graphicsData.length;E<C;E++){const R=this.graphicsData[E],I=R.fillStyle,B=R.lineStyle;if(I&&!I.texture.baseTexture.valid||B&&!B.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const E=this.batches;for(let C=0,R=E.length;C<R;C++){const I=E[C];for(let B=0;B<I.size;B++){const U=I.start+B;this.indicesUint16[U]=this.indicesUint16[U]-I.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const E=this.batches;for(let C=0;C<E.length;C++)if(E[C].style.native)return!1;return this.points.length<Rr.BATCHABLE_SIZE*2}buildDrawCalls(){let E=++BaseTexture._globalBatch;for(let Y=0;Y<this.drawCalls.length;Y++)this.drawCalls[Y].texArray.clear(),DRAW_CALL_POOL.push(this.drawCalls[Y]);this.drawCalls.length=0;const C=this.colors,R=this.textureIds;let I=DRAW_CALL_POOL.pop();I||(I=new BatchDrawCall,I.texArray=new BatchTextureArray),I.texArray.count=0,I.start=0,I.size=0,I.type=DRAW_MODES.TRIANGLES;let B=0,U=null,V=0,X=!1,K=DRAW_MODES.TRIANGLES,J=0;this.drawCalls.push(I);for(let Y=0;Y<this.batches.length;Y++){const Z=this.batches[Y],_e=8,xe=Z.style,Se=xe.texture.baseTexture;X!==!!xe.native&&(X=!!xe.native,K=X?DRAW_MODES.LINES:DRAW_MODES.TRIANGLES,U=null,B=_e,E++),U!==Se&&(U=Se,Se._batchEnabled!==E&&(B===_e&&(E++,B=0,I.size>0&&(I=DRAW_CALL_POOL.pop(),I||(I=new BatchDrawCall,I.texArray=new BatchTextureArray),this.drawCalls.push(I)),I.start=J,I.size=0,I.texArray.count=0,I.type=K),Se.touched=1,Se._batchEnabled=E,Se._batchLocation=B,Se.wrapMode=WRAP_MODES.REPEAT,I.texArray.elements[I.texArray.count++]=Se,B++)),I.size+=Z.size,J+=Z.size,V=Se._batchLocation,this.addColors(C,xe.color,xe.alpha,Z.attribSize,Z.attribStart),this.addTextureIds(R,V,Z.attribSize,Z.attribStart)}BaseTexture._globalBatch=E,this.packAttributes()}packAttributes(){const E=this.points,C=this.uvs,R=this.colors,I=this.textureIds,B=new ArrayBuffer(E.length*3*4),U=new Float32Array(B),V=new Uint32Array(B);let X=0;for(let K=0;K<E.length/2;K++)U[X++]=E[K*2],U[X++]=E[K*2+1],U[X++]=C[K*2],U[X++]=C[K*2+1],V[X++]=R[K],U[X++]=I[K];this._buffer.update(B),this._indexBuffer.update(this.indicesUint16)}processFill(E){E.holes.length?buildPoly.triangulate(E,this):FILL_COMMANDS[E.type].triangulate(E,this)}processLine(E){buildLine(E,this);for(let C=0;C<E.holes.length;C++)buildLine(E.holes[C],this)}processHoles(E){for(let C=0;C<E.length;C++){const R=E[C];FILL_COMMANDS[R.type].build(R),R.matrix&&this.transformPoints(R.points,R.matrix)}}calculateBounds(){const E=this._bounds;E.clear(),E.addVertexData(this.points,0,this.points.length),E.pad(this.boundsPadding,this.boundsPadding)}transformPoints(E,C){for(let R=0;R<E.length/2;R++){const I=E[R*2],B=E[R*2+1];E[R*2]=C.a*I+C.c*B+C.tx,E[R*2+1]=C.b*I+C.d*B+C.ty}}addColors(E,C,R,I,B=0){const U=Color.shared.setValue(C).toLittleEndianNumber(),V=Color.shared.setValue(U).toPremultiplied(R);E.length=Math.max(E.length,B+I);for(let X=0;X<I;X++)E[B+X]=V}addTextureIds(E,C,R,I=0){E.length=Math.max(E.length,I+R);for(let B=0;B<R;B++)E[I+B]=C}addUvs(E,C,R,I,B,U=null){let V=0;const X=C.length,K=R.frame;for(;V<B;){let Y=E[(I+V)*2],Z=E[(I+V)*2+1];if(U){const _e=U.a*Y+U.c*Z+U.tx;Z=U.b*Y+U.d*Z+U.ty,Y=_e}V++,C.push(Y/K.width,Z/K.height)}const J=R.baseTexture;(K.width<J.width||K.height<J.height)&&this.adjustUvs(C,R,X,B)}adjustUvs(E,C,R,I){const B=C.baseTexture,U=1e-6,V=R+I*2,X=C.frame,K=X.width/B.width,J=X.height/B.height;let Y=X.x/X.width,Z=X.y/X.height,_e=Math.floor(E[R]+U),xe=Math.floor(E[R+1]+U);for(let Se=R+2;Se<V;Se+=2)_e=Math.min(_e,Math.floor(E[Se]+U)),xe=Math.min(xe,Math.floor(E[Se+1]+U));Y-=_e,Z-=xe;for(let Se=R;Se<V;Se+=2)E[Se]=(E[Se]+Y)*K,E[Se+1]=(E[Se+1]+Z)*J}};_GraphicsGeometry.BATCHABLE_SIZE=100;let GraphicsGeometry=_GraphicsGeometry;class FillStyle{constructor(){this.color=16777215,this.alpha=1,this.texture=Texture.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const E=new FillStyle;return E.color=this.color,E.alpha=this.alpha,E.texture=this.texture,E.matrix=this.matrix,E.visible=this.visible,E}reset(){this.color=16777215,this.alpha=1,this.texture=Texture.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class LineStyle extends FillStyle{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=LINE_CAP.BUTT,this.join=LINE_JOIN.MITER,this.miterLimit=10}clone(){const E=new LineStyle;return E.color=this.color,E.alpha=this.alpha,E.texture=this.texture,E.matrix=this.matrix,E.visible=this.visible,E.width=this.width,E.alignment=this.alignment,E.native=this.native,E.cap=this.cap,E.join=this.join,E.miterLimit=this.miterLimit,E}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1,this.cap=LINE_CAP.BUTT,this.join=LINE_JOIN.MITER,this.miterLimit=10}}const DEFAULT_SHADERS={},_Graphics=class cr extends Container{constructor(E=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new FillStyle,this._lineStyle=new LineStyle,this._matrix=null,this._holeMode=!1,this.state=State$1.for2d(),this._geometry=E||new GraphicsGeometry,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Color(16777215),this.blendMode=BLEND_MODES.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new cr(this._geometry)}set blendMode(E){this.state.blendMode=E}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(E){this._tintColor.setValue(E)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(E=null,C=0,R,I=.5,B=!1){return typeof E=="number"&&(E={width:E,color:C,alpha:R,alignment:I,native:B}),this.lineTextureStyle(E)}lineTextureStyle(E){const C={width:0,texture:Texture.WHITE,color:E!=null&&E.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:LINE_CAP.BUTT,join:LINE_JOIN.MITER,miterLimit:10};E=Object.assign(C,E),this.normalizeColor(E),this.currentPath&&this.startPoly();const R=E.width>0&&E.alpha>0;return R?(E.matrix&&(E.matrix=E.matrix.clone(),E.matrix.invert()),Object.assign(this._lineStyle,{visible:R},E)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const E=this.currentPath.points,C=this.currentPath.points.length;C>2&&(this.drawShape(this.currentPath),this.currentPath=new Polygon,this.currentPath.closeStroke=!1,this.currentPath.points.push(E[C-2],E[C-1]))}else this.currentPath=new Polygon,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(E,C){return this.startPoly(),this.currentPath.points[0]=E,this.currentPath.points[1]=C,this}lineTo(E,C){this.currentPath||this.moveTo(0,0);const R=this.currentPath.points,I=R[R.length-2],B=R[R.length-1];return(I!==E||B!==C)&&R.push(E,C),this}_initCurve(E=0,C=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[E,C]):this.moveTo(E,C)}quadraticCurveTo(E,C,R,I){this._initCurve();const B=this.currentPath.points;return B.length===0&&this.moveTo(0,0),QuadraticUtils.curveTo(E,C,R,I,B),this}bezierCurveTo(E,C,R,I,B,U){return this._initCurve(),BezierUtils.curveTo(E,C,R,I,B,U,this.currentPath.points),this}arcTo(E,C,R,I,B){this._initCurve(E,C);const U=this.currentPath.points,V=ArcUtils.curveTo(E,C,R,I,B,U);if(V){const{cx:X,cy:K,radius:J,startAngle:Y,endAngle:Z,anticlockwise:_e}=V;this.arc(X,K,J,Y,Z,_e)}return this}arc(E,C,R,I,B,U=!1){if(I===B)return this;if(!U&&B<=I?B+=PI_2:U&&I<=B&&(I+=PI_2),B-I===0)return this;const V=E+Math.cos(I)*R,X=C+Math.sin(I)*R,K=this._geometry.closePointEps;let J=this.currentPath?this.currentPath.points:null;if(J){const Y=Math.abs(J[J.length-2]-V),Z=Math.abs(J[J.length-1]-X);Y<K&&Z<K||J.push(V,X)}else this.moveTo(V,X),J=this.currentPath.points;return ArcUtils.arc(V,X,E,C,R,I,B,U,J),this}beginFill(E=0,C){return this.beginTextureFill({texture:Texture.WHITE,color:E,alpha:C})}normalizeColor(E){const C=Color.shared.setValue(E.color??0);E.color=C.toNumber(),E.alpha??(E.alpha=C.alpha)}beginTextureFill(E){const C={texture:Texture.WHITE,color:16777215,matrix:null};E=Object.assign(C,E),this.normalizeColor(E),this.currentPath&&this.startPoly();const R=E.alpha>0;return R?(E.matrix&&(E.matrix=E.matrix.clone(),E.matrix.invert()),Object.assign(this._fillStyle,{visible:R},E)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(E,C,R,I){return this.drawShape(new Rectangle(E,C,R,I))}drawRoundedRect(E,C,R,I,B){return this.drawShape(new RoundedRectangle(E,C,R,I,B))}drawCircle(E,C,R){return this.drawShape(new Circle(E,C,R))}drawEllipse(E,C,R,I){return this.drawShape(new Ellipse$1(E,C,R,I))}drawPolygon(...E){let C,R=!0;const I=E[0];I.points?(R=I.closeStroke,C=I.points):Array.isArray(E[0])?C=E[0]:C=E;const B=new Polygon(C);return B.closeStroke=R,this.drawShape(B),this}drawShape(E){return this._holeMode?this._geometry.drawHole(E,this._matrix):this._geometry.drawShape(E,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const E=this._geometry.graphicsData;return E.length===1&&E[0].shape.type===SHAPES.RECT&&!E[0].matrix&&!E[0].holes.length&&!(E[0].lineStyle.visible&&E[0].lineStyle.width)}_render(E){this.finishPoly();const C=this._geometry;C.updateBatches(),C.batchable?(this.batchDirty!==C.batchDirty&&this._populateBatches(),this._renderBatched(E)):(E.batch.flush(),this._renderDirect(E))}_populateBatches(){const E=this._geometry,C=this.blendMode,R=E.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=E.batchDirty,this.batches.length=R,this.vertexData=new Float32Array(E.points);for(let I=0;I<R;I++){const B=E.batches[I],U=B.style.color,V=new Float32Array(this.vertexData.buffer,B.attribStart*4*2,B.attribSize*2),X=new Float32Array(E.uvsFloat32.buffer,B.attribStart*4*2,B.attribSize*2),K=new Uint16Array(E.indicesUint16.buffer,B.start*2,B.size),J={vertexData:V,blendMode:C,indices:K,uvs:X,_batchRGB:Color.shared.setValue(U).toRgbArray(),_tintRGB:U,_texture:B.style.texture,alpha:B.style.alpha,worldAlpha:1};this.batches[I]=J}}_renderBatched(E){if(this.batches.length){E.batch.setObjectRenderer(E.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let C=0,R=this.batches.length;C<R;C++){const I=this.batches[C];I.worldAlpha=this.worldAlpha*I.alpha,E.plugins[this.pluginName].render(I)}}}_renderDirect(E){const C=this._resolveDirectShader(E),R=this._geometry,I=this.worldAlpha,B=C.uniforms,U=R.drawCalls;B.translationMatrix=this.transform.worldTransform,Color.shared.setValue(this._tintColor).premultiply(I).toArray(B.tint),E.shader.bind(C),E.geometry.bind(R,C),E.state.set(this.state);for(let V=0,X=U.length;V<X;V++)this._renderDrawCallDirect(E,R.drawCalls[V])}_renderDrawCallDirect(E,C){const{texArray:R,type:I,size:B,start:U}=C,V=R.count;for(let X=0;X<V;X++)E.texture.bind(R.elements[X],X);E.geometry.draw(I,B,U)}_resolveDirectShader(E){let C=this.shader;const R=this.pluginName;if(!C){if(!DEFAULT_SHADERS[R]){const{maxTextures:I}=E.plugins[R],B=new Int32Array(I);for(let X=0;X<I;X++)B[X]=X;const U={tint:new Float32Array([1,1,1,1]),translationMatrix:new Matrix$2,default:UniformGroup.from({uSamplers:B},!0)},V=E.plugins[R]._shader.program;DEFAULT_SHADERS[R]=new Shader(V,U)}C=DEFAULT_SHADERS[R]}return C}_calculateBounds(){this.finishPoly();const E=this._geometry;if(!E.graphicsData.length)return;const{minX:C,minY:R,maxX:I,maxY:B}=E.bounds;this._bounds.addFrame(this.transform,C,R,I,B)}containsPoint(E){return this.worldTransform.applyInverse(E,cr._TEMP_POINT),this._geometry.containsPoint(cr._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let E=0;E<this.batches.length;E++){const C=this.batches[E];C._tintRGB=Color.shared.setValue(this._tintColor).multiply(C._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const E=this.transform._worldID;if(this._transformID===E)return;this._transformID=E;const C=this.transform.worldTransform,R=C.a,I=C.b,B=C.c,U=C.d,V=C.tx,X=C.ty,K=this._geometry.points,J=this.vertexData;let Y=0;for(let Z=0;Z<K.length;Z+=2){const _e=K[Z],xe=K[Z+1];J[Y++]=R*_e+B*xe+V,J[Y++]=U*xe+I*_e+X}}closePath(){const E=this.currentPath;return E&&(E.closeStroke=!0,this.finishPoly()),this}setMatrix(E){return this._matrix=E,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(E){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(E)}};_Graphics.curves=curves,_Graphics._TEMP_POINT=new Point;let Graphics=_Graphics;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},parserExports={},parser={get exports(){return parserExports},set exports(A){parserExports=A}};/*!
1968
1931
  * d-path-parser - v1.0.0
1969
1932
  * by Massimo Artizzu (MaxArt2501)
1970
1933
  *
@@ -1972,10 +1935,10 @@ void main() {
1972
1935
  *
1973
1936
  * Licensed under the MIT License
1974
1937
  * See LICENSE for details
1975
- */(function(A,E){(function(C,R){A.exports=R()})(commonjsGlobal,function(){return function(R){for(var I={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},B={number:function(Se){return+_e("number",Se)},"coordinate pair":function(Se){var Pe=_e("number",Se);if(Pe===null&&!Se)return null;_e("comma");var Ee=_e("number",!0);return{x:+Pe,y:+Ee}},"arc definition":function(Se){var Pe=B["coordinate pair"](Se);if(!Pe&&!Se)return null;_e("comma");var Ee=+_e("number",!0);_e("comma",!0);var Ae=!!+_e("flag",!0);_e("comma");var Te=!!+_e("flag",!0);_e("comma");var we=B["coordinate pair"](!0);return{radii:Pe,rotation:Ee,large:Ae,clockwise:Te,end:we}}},U=0,V=[];U<R.length;){var X=_e("command"),K=X.toUpperCase(),J=X!==K,Y;switch(K){case"M":Y=xe("coordinate pair").map(function(Se,Pe){return Pe===1&&(X=J?"l":"L"),Z({end:Se})});break;case"L":case"T":Y=xe("coordinate pair").map(function(Se){return Z({end:Se})});break;case"C":if(Y=xe("coordinate pair"),Y.length%3)throw Error("Expected coordinate pair triplet at position "+U);Y=Y.reduce(function(Se,Pe,Ee){var Ae=Ee%3;if(!Ae)Se.push(Z({cp1:Pe}));else{var Te=Se[Se.length-1];Te[Ae===1?"cp2":"end"]=Pe}return Se},[]);break;case"Q":case"S":if(Y=xe("coordinate pair"),Y.length&1)throw Error("Expected coordinate pair couple at position "+U);Y=Y.reduce(function(Se,Pe,Ee){var Ae=Ee&1;if(!Ae)Se.push(Z({cp:Pe}));else{var Te=Se[Se.length-1];Te.end=Pe}return Se},[]);break;case"H":case"V":Y=xe("number").map(function(Se){return Z({value:Se})});break;case"A":Y=xe("arc definition").map(Z);break;case"Z":Y=[{code:"Z"}];break}V.push.apply(V,Y)}return V;function Z(Se){return Se.code=X,Se.relative=J,Se}function _e(Se,Pe){I[Se].lastIndex=U;var Ee=I[Se].exec(R);if(!Ee||Ee.index!==U){if(!Pe)return null;throw Error("Expected "+Se+" at position "+U)}return U=I[Se].lastIndex,Ee[1]}function xe(Se){for(var Pe=[],Ee,Ae=!0;Ee=B[Se](Ae);)Pe.push(Ee),Ae=!!_e("comma");return Pe}}})})(parser);const trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(A,E){if(A=A||"",E=E||{},A instanceof tinycolor)return A;if(!(this instanceof tinycolor))return new tinycolor(A,E);var C=inputToRGB(A);this._originalInput=A,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=Math.round(100*this._a)/100,this._format=E.format||C.format,this._gradientType=E.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=C.ok}tinycolor.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var A=this.toRgb();return(A.r*299+A.g*587+A.b*114)/1e3},getLuminance:function(){var A=this.toRgb(),E,C,R,I,B,U;return E=A.r/255,C=A.g/255,R=A.b/255,E<=.03928?I=E/12.92:I=Math.pow((E+.055)/1.055,2.4),C<=.03928?B=C/12.92:B=Math.pow((C+.055)/1.055,2.4),R<=.03928?U=R/12.92:U=Math.pow((R+.055)/1.055,2.4),.2126*I+.7152*B+.0722*U},setAlpha:function(A){return this._a=boundAlpha(A),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var A=rgbToHsv(this._r,this._g,this._b);return{h:A.h*360,s:A.s,v:A.v,a:this._a}},toHsvString:function(){var A=rgbToHsv(this._r,this._g,this._b),E=Math.round(A.h*360),C=Math.round(A.s*100),R=Math.round(A.v*100);return this._a==1?"hsv("+E+", "+C+"%, "+R+"%)":"hsva("+E+", "+C+"%, "+R+"%, "+this._roundA+")"},toHsl:function(){var A=rgbToHsl(this._r,this._g,this._b);return{h:A.h*360,s:A.s,l:A.l,a:this._a}},toHslString:function(){var A=rgbToHsl(this._r,this._g,this._b),E=Math.round(A.h*360),C=Math.round(A.s*100),R=Math.round(A.l*100);return this._a==1?"hsl("+E+", "+C+"%, "+R+"%)":"hsla("+E+", "+C+"%, "+R+"%, "+this._roundA+")"},toHex:function(A){return rgbToHex(this._r,this._g,this._b,A)},toHexString:function(A){return"#"+this.toHex(A)},toHex8:function(A){return rgbaToHex(this._r,this._g,this._b,this._a,A)},toHex8String:function(A){return"#"+this.toHex8(A)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(A){var E="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),C=E,R=this._gradientType?"GradientType = 1, ":"";if(A){var I=tinycolor(A);C="#"+rgbaToArgbHex(I._r,I._g,I._b,I._a)}return"progid:DXImageTransform.Microsoft.gradient("+R+"startColorstr="+E+",endColorstr="+C+")"},toString:function(A){var E=!!A;A=A||this._format;var C=!1,R=this._a<1&&this._a>=0,I=!E&&R&&(A==="hex"||A==="hex6"||A==="hex3"||A==="hex4"||A==="hex8"||A==="name");return I?A==="name"&&this._a===0?this.toName():this.toRgbString():(A==="rgb"&&(C=this.toRgbString()),A==="prgb"&&(C=this.toPercentageRgbString()),(A==="hex"||A==="hex6")&&(C=this.toHexString()),A==="hex3"&&(C=this.toHexString(!0)),A==="hex4"&&(C=this.toHex8String(!0)),A==="hex8"&&(C=this.toHex8String()),A==="name"&&(C=this.toName()),A==="hsl"&&(C=this.toHslString()),A==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(A,E){var C=A.apply(null,[this].concat([].slice.call(E)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(lighten,arguments)},brighten:function(){return this._applyModification(brighten,arguments)},darken:function(){return this._applyModification(darken,arguments)},desaturate:function(){return this._applyModification(desaturate,arguments)},saturate:function(){return this._applyModification(saturate,arguments)},greyscale:function(){return this._applyModification(greyscale,arguments)},spin:function(){return this._applyModification(spin,arguments)},_applyCombination:function(A,E){return A.apply(null,[this].concat([].slice.call(E)))},analogous:function(){return this._applyCombination(analogous,arguments)},complement:function(){return this._applyCombination(complement,arguments)},monochromatic:function(){return this._applyCombination(monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(A,E){if(typeof A=="object"){var C={};for(var R in A)A.hasOwnProperty(R)&&(R==="a"?C[R]=A[R]:C[R]=convertToPercentage(A[R]));A=C}return tinycolor(A,E)};function inputToRGB(A){var E={r:0,g:0,b:0},C=1,R=null,I=null,B=null,U=!1,V=!1;return typeof A=="string"&&(A=stringInputToObject(A)),typeof A=="object"&&(isValidCSSUnit(A.r)&&isValidCSSUnit(A.g)&&isValidCSSUnit(A.b)?(E=rgbToRgb(A.r,A.g,A.b),U=!0,V=String(A.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(A.h)&&isValidCSSUnit(A.s)&&isValidCSSUnit(A.v)?(R=convertToPercentage(A.s),I=convertToPercentage(A.v),E=hsvToRgb(A.h,R,I),U=!0,V="hsv"):isValidCSSUnit(A.h)&&isValidCSSUnit(A.s)&&isValidCSSUnit(A.l)&&(R=convertToPercentage(A.s),B=convertToPercentage(A.l),E=hslToRgb(A.h,R,B),U=!0,V="hsl"),A.hasOwnProperty("a")&&(C=A.a)),C=boundAlpha(C),{ok:U,format:A.format||V,r:Math.min(255,Math.max(E.r,0)),g:Math.min(255,Math.max(E.g,0)),b:Math.min(255,Math.max(E.b,0)),a:C}}function rgbToRgb(A,E,C){return{r:bound01(A,255)*255,g:bound01(E,255)*255,b:bound01(C,255)*255}}function rgbToHsl(A,E,C){A=bound01(A,255),E=bound01(E,255),C=bound01(C,255);var R=Math.max(A,E,C),I=Math.min(A,E,C),B,U,V=(R+I)/2;if(R==I)B=U=0;else{var X=R-I;switch(U=V>.5?X/(2-R-I):X/(R+I),R){case A:B=(E-C)/X+(E<C?6:0);break;case E:B=(C-A)/X+2;break;case C:B=(A-E)/X+4;break}B/=6}return{h:B,s:U,l:V}}function hslToRgb(A,E,C){var R,I,B;A=bound01(A,360),E=bound01(E,100),C=bound01(C,100);function U(K,J,Y){return Y<0&&(Y+=1),Y>1&&(Y-=1),Y<1/6?K+(J-K)*6*Y:Y<1/2?J:Y<2/3?K+(J-K)*(2/3-Y)*6:K}if(E===0)R=I=B=C;else{var V=C<.5?C*(1+E):C+E-C*E,X=2*C-V;R=U(X,V,A+1/3),I=U(X,V,A),B=U(X,V,A-1/3)}return{r:R*255,g:I*255,b:B*255}}function rgbToHsv(A,E,C){A=bound01(A,255),E=bound01(E,255),C=bound01(C,255);var R=Math.max(A,E,C),I=Math.min(A,E,C),B,U,V=R,X=R-I;if(U=R===0?0:X/R,R==I)B=0;else{switch(R){case A:B=(E-C)/X+(E<C?6:0);break;case E:B=(C-A)/X+2;break;case C:B=(A-E)/X+4;break}B/=6}return{h:B,s:U,v:V}}function hsvToRgb(A,E,C){A=bound01(A,360)*6,E=bound01(E,100),C=bound01(C,100);var R=Math.floor(A),I=A-R,B=C*(1-E),U=C*(1-I*E),V=C*(1-(1-I)*E),X=R%6,K=[C,U,B,B,V,C][X],J=[V,C,C,U,B,B][X],Y=[B,B,V,C,C,U][X];return{r:K*255,g:J*255,b:Y*255}}function rgbToHex(A,E,C,R){var I=[pad2(Math.round(A).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(C).toString(16))];return R&&I[0].charAt(0)==I[0].charAt(1)&&I[1].charAt(0)==I[1].charAt(1)&&I[2].charAt(0)==I[2].charAt(1)?I[0].charAt(0)+I[1].charAt(0)+I[2].charAt(0):I.join("")}function rgbaToHex(A,E,C,R,I){var B=[pad2(Math.round(A).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(C).toString(16)),pad2(convertDecimalToHex(R))];return I&&B[0].charAt(0)==B[0].charAt(1)&&B[1].charAt(0)==B[1].charAt(1)&&B[2].charAt(0)==B[2].charAt(1)&&B[3].charAt(0)==B[3].charAt(1)?B[0].charAt(0)+B[1].charAt(0)+B[2].charAt(0)+B[3].charAt(0):B.join("")}function rgbaToArgbHex(A,E,C,R){var I=[pad2(convertDecimalToHex(R)),pad2(Math.round(A).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(C).toString(16))];return I.join("")}tinycolor.equals=function(A,E){return!A||!E?!1:tinycolor(A).toRgbString()==tinycolor(E).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function desaturate(A,E){E=E===0?0:E||10;var C=tinycolor(A).toHsl();return C.s-=E/100,C.s=clamp01(C.s),tinycolor(C)}function saturate(A,E){E=E===0?0:E||10;var C=tinycolor(A).toHsl();return C.s+=E/100,C.s=clamp01(C.s),tinycolor(C)}function greyscale(A){return tinycolor(A).desaturate(100)}function lighten(A,E){E=E===0?0:E||10;var C=tinycolor(A).toHsl();return C.l+=E/100,C.l=clamp01(C.l),tinycolor(C)}function brighten(A,E){E=E===0?0:E||10;var C=tinycolor(A).toRgb();return C.r=Math.max(0,Math.min(255,C.r-Math.round(255*-(E/100)))),C.g=Math.max(0,Math.min(255,C.g-Math.round(255*-(E/100)))),C.b=Math.max(0,Math.min(255,C.b-Math.round(255*-(E/100)))),tinycolor(C)}function darken(A,E){E=E===0?0:E||10;var C=tinycolor(A).toHsl();return C.l-=E/100,C.l=clamp01(C.l),tinycolor(C)}function spin(A,E){var C=tinycolor(A).toHsl(),R=(C.h+E)%360;return C.h=R<0?360+R:R,tinycolor(C)}function complement(A){var E=tinycolor(A).toHsl();return E.h=(E.h+180)%360,tinycolor(E)}function polyad(A,E){if(isNaN(E)||E<=0)throw new Error("Argument to polyad must be a positive number");for(var C=tinycolor(A).toHsl(),R=[tinycolor(A)],I=360/E,B=1;B<E;B++)R.push(tinycolor({h:(C.h+B*I)%360,s:C.s,l:C.l}));return R}function splitcomplement(A){var E=tinycolor(A).toHsl(),C=E.h;return[tinycolor(A),tinycolor({h:(C+72)%360,s:E.s,l:E.l}),tinycolor({h:(C+216)%360,s:E.s,l:E.l})]}function analogous(A,E,C){E=E||6,C=C||30;var R=tinycolor(A).toHsl(),I=360/C,B=[tinycolor(A)];for(R.h=(R.h-(I*E>>1)+720)%360;--E;)R.h=(R.h+I)%360,B.push(tinycolor(R));return B}function monochromatic(A,E){E=E||6;for(var C=tinycolor(A).toHsv(),R=C.h,I=C.s,B=C.v,U=[],V=1/E;E--;)U.push(tinycolor({h:R,s:I,v:B})),B=(B+V)%1;return U}tinycolor.mix=function(A,E,C){C=C===0?0:C||50;var R=tinycolor(A).toRgb(),I=tinycolor(E).toRgb(),B=C/100,U={r:(I.r-R.r)*B+R.r,g:(I.g-R.g)*B+R.g,b:(I.b-R.b)*B+R.b,a:(I.a-R.a)*B+R.a};return tinycolor(U)},tinycolor.readability=function(A,E){var C=tinycolor(A),R=tinycolor(E);return(Math.max(C.getLuminance(),R.getLuminance())+.05)/(Math.min(C.getLuminance(),R.getLuminance())+.05)},tinycolor.isReadable=function(A,E,C){var R=tinycolor.readability(A,E),I,B;switch(B=!1,I=validateWCAG2Parms(C),I.level+I.size){case"AAsmall":case"AAAlarge":B=R>=4.5;break;case"AAlarge":B=R>=3;break;case"AAAsmall":B=R>=7;break}return B},tinycolor.mostReadable=function(A,E,C){var R=null,I=0,B,U,V,X;C=C||{},U=C.includeFallbackColors,V=C.level,X=C.size;for(var K=0;K<E.length;K++)B=tinycolor.readability(A,E[K]),B>I&&(I=B,R=tinycolor(E[K]));return tinycolor.isReadable(A,R,{level:V,size:X})||!U?R:(C.includeFallbackColors=!1,tinycolor.mostReadable(A,["#fff","#000"],C))};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=flip(names);function flip(A){var E={};for(var C in A)A.hasOwnProperty(C)&&(E[A[C]]=C);return E}function boundAlpha(A){return A=parseFloat(A),(isNaN(A)||A<0||A>1)&&(A=1),A}function bound01(A,E){isOnePointZero(A)&&(A="100%");var C=isPercentage(A);return A=Math.min(E,Math.max(0,parseFloat(A))),C&&(A=parseInt(A*E,10)/100),Math.abs(A-E)<1e-6?1:A%E/parseFloat(E)}function clamp01(A){return Math.min(1,Math.max(0,A))}function parseIntFromHex(A){return parseInt(A,16)}function isOnePointZero(A){return typeof A=="string"&&A.indexOf(".")!=-1&&parseFloat(A)===1}function isPercentage(A){return typeof A=="string"&&A.indexOf("%")!=-1}function pad2(A){return A.length==1?"0"+A:""+A}function convertToPercentage(A){return A<=1&&(A=A*100+"%"),A}function convertDecimalToHex(A){return Math.round(parseFloat(A)*255).toString(16)}function convertHexToDecimal(A){return parseIntFromHex(A)/255}var matchers=function(){var A="[-\\+]?\\d+%?",E="[-\\+]?\\d*\\.\\d+%?",C="(?:"+E+")|(?:"+A+")",R="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",I="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function isValidCSSUnit(A){return!!matchers.CSS_UNIT.exec(A)}function stringInputToObject(A){A=A.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var E=!1;if(names[A])A=names[A],E=!0;else if(A=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=matchers.rgb.exec(A))?{r:C[1],g:C[2],b:C[3]}:(C=matchers.rgba.exec(A))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=matchers.hsl.exec(A))?{h:C[1],s:C[2],l:C[3]}:(C=matchers.hsla.exec(A))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=matchers.hsv.exec(A))?{h:C[1],s:C[2],v:C[3]}:(C=matchers.hsva.exec(A))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=matchers.hex8.exec(A))?{r:parseIntFromHex(C[1]),g:parseIntFromHex(C[2]),b:parseIntFromHex(C[3]),a:convertHexToDecimal(C[4]),format:E?"name":"hex8"}:(C=matchers.hex6.exec(A))?{r:parseIntFromHex(C[1]),g:parseIntFromHex(C[2]),b:parseIntFromHex(C[3]),format:E?"name":"hex"}:(C=matchers.hex4.exec(A))?{r:parseIntFromHex(C[1]+""+C[1]),g:parseIntFromHex(C[2]+""+C[2]),b:parseIntFromHex(C[3]+""+C[3]),a:convertHexToDecimal(C[4]+""+C[4]),format:E?"name":"hex8"}:(C=matchers.hex3.exec(A))?{r:parseIntFromHex(C[1]+""+C[1]),g:parseIntFromHex(C[2]+""+C[2]),b:parseIntFromHex(C[3]+""+C[3]),format:E?"name":"hex"}:!1}function validateWCAG2Parms(A){var E,C;return A=A||{level:"AA",size:"small"},E=(A.level||"AA").toUpperCase(),C=(A.size||"small").toLowerCase(),E!=="AA"&&E!=="AAA"&&(E="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:E,size:C}}var _slicedToArray=function(){function A(E,C){var R=[],I=!0,B=!1,U=void 0;try{for(var V=E[Symbol.iterator](),X;!(I=(X=V.next()).done)&&(R.push(X.value),!(C&&R.length===C));I=!0);}catch(K){B=!0,U=K}finally{try{!I&&V.return&&V.return()}finally{if(B)throw U}}return R}return function(E,C){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return A(E,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),TAU$2=Math.PI*2,mapToEllipse=function(E,C,R,I,B,U,V){var X=E.x,K=E.y;X*=C,K*=R;var J=I*X-B*K,Y=B*X+I*K;return{x:J+U,y:Y+V}},approxUnitArc=function(E,C){var R=C===1.5707963267948966?.551915024494:C===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(C/4),I=Math.cos(E),B=Math.sin(E),U=Math.cos(E+C),V=Math.sin(E+C);return[{x:I-B*R,y:B+I*R},{x:U+V*R,y:V-U*R},{x:U,y:V}]},vectorAngle=function(E,C,R,I){var B=E*I-C*R<0?-1:1,U=E*R+C*I;return U>1&&(U=1),U<-1&&(U=-1),B*Math.acos(U)},getArcCenter=function(E,C,R,I,B,U,V,X,K,J,Y,Z){var _e=Math.pow(B,2),xe=Math.pow(U,2),Se=Math.pow(Y,2),Pe=Math.pow(Z,2),Ee=_e*xe-_e*Pe-xe*Se;Ee<0&&(Ee=0),Ee/=_e*Pe+xe*Se,Ee=Math.sqrt(Ee)*(V===X?-1:1);var Ae=Ee*B/U*Z,Te=Ee*-U/B*Y,we=J*Ae-K*Te+(E+R)/2,Ie=K*Ae+J*Te+(C+I)/2,Fe=(Y-Ae)/B,ke=(Z-Te)/U,Le=(-Y-Ae)/B,Ge=(-Z-Te)/U,He=vectorAngle(1,0,Fe,ke),Be=vectorAngle(Fe,ke,Le,Ge);return X===0&&Be>0&&(Be-=TAU$2),X===1&&Be<0&&(Be+=TAU$2),[we,Ie,He,Be]},arcToBezier=function(E){var C=E.px,R=E.py,I=E.cx,B=E.cy,U=E.rx,V=E.ry,X=E.xAxisRotation,K=X===void 0?0:X,J=E.largeArcFlag,Y=J===void 0?0:J,Z=E.sweepFlag,_e=Z===void 0?0:Z,xe=[];if(U===0||V===0)return[];var Se=Math.sin(K*TAU$2/360),Pe=Math.cos(K*TAU$2/360),Ee=Pe*(C-I)/2+Se*(R-B)/2,Ae=-Se*(C-I)/2+Pe*(R-B)/2;if(Ee===0&&Ae===0)return[];U=Math.abs(U),V=Math.abs(V);var Te=Math.pow(Ee,2)/Math.pow(U,2)+Math.pow(Ae,2)/Math.pow(V,2);Te>1&&(U*=Math.sqrt(Te),V*=Math.sqrt(Te));var we=getArcCenter(C,R,I,B,U,V,Y,_e,Se,Pe,Ee,Ae),Ie=_slicedToArray(we,4),Fe=Ie[0],ke=Ie[1],Le=Ie[2],Ge=Ie[3],He=Math.abs(Ge)/(TAU$2/4);Math.abs(1-He)<1e-7&&(He=1);var Be=Math.max(Math.ceil(He),1);Ge/=Be;for(var je=0;je<Be;je++)xe.push(approxUnitArc(Le,Ge)),Le+=Ge;return xe.map(function(Ue){var ze=mapToEllipse(Ue[0],U,V,Pe,Se,Fe,ke),Ve=ze.x,Oe=ze.y,$e=mapToEllipse(Ue[1],U,V,Pe,Se,Fe,ke),Re=$e.x,Me=$e.y,Ne=mapToEllipse(Ue[2],U,V,Pe,Se,Fe,ke),De=Ne.x,Xe=Ne.y;return{x1:Ve,y1:Oe,x2:Re,y2:Me,x:De,y:Xe}})};class SVG extends Graphics{constructor(E){super(),this.lineColor=null,E&&this.drawSVG(E)}drawSVG(E){if(typeof E=="string"){const C=document.createElement("div");C.innerHTML=E.trim(),E=C.querySelector("svg")}if(!E)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(E),this._svgChildren(E.children),this}_svgChildren(E,C=!1){for(let R=0;R<E.length;R++){const I=E[R];switch(this._svgFill(I,C),I.nodeName.toLowerCase()){case"path":{this._svgPath(I);break}case"circle":case"ellipse":{this._svgCircle(I);break}case"rect":{this._svgRect(I);break}case"polygon":{this._svgPoly(I,!0);break}case"polyline":{this._svgPoly(I);break}case"g":break;default:{console.info(`[PIXI.SVG] <${I.nodeName}> elements unsupported`);break}}this._svgChildren(I.children,!0)}}_hexToUint(E){if(E[0]==="#")return E=E.substr(1),E.length===3&&(E=E.replace(/([a-f0-9])/ig,"$1$1")),parseInt(E,16);const{r:C,g:R,b:I}=tinycolor(E).toRgb();return(C<<16)+(R<<8)+I}_svgCircle(E){let C="r",R="r";const I=E.nodeName==="elipse";I&&(C+="x",R+="y");const B=parseFloat(E.getAttribute(R)),U=parseFloat(E.getAttribute(C)),V=E.getAttribute("cx"),X=E.getAttribute("cy");let K=0,J=0;V!==null&&(K=parseFloat(V)),X!==null&&(J=parseFloat(X)),I?this.drawEllipse(K,J,B,U):this.drawCircle(K,J,B)}_svgRect(E){const C=parseFloat(E.getAttribute("x")),R=parseFloat(E.getAttribute("y")),I=parseFloat(E.getAttribute("width")),B=parseFloat(E.getAttribute("height")),U=parseFloat(E.getAttribute("rx"));U?this.drawRoundedRect(C,R,I,B,U):this.drawRect(C,R,I,B)}_convertStyleName(E){return E.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(E){const C=E.getAttribute("style"),R=E.getAttribute("opacity"),I={fill:E.getAttribute("fill"),opacity:R||E.getAttribute("fill-opacity"),stroke:E.getAttribute("stroke"),strokeOpacity:R||E.getAttribute("stroke-opacity"),strokeWidth:E.getAttribute("stroke-width"),cap:E.getAttribute("stroke-linecap"),join:E.getAttribute("stroke-linejoin"),miterLimit:E.getAttribute("stroke-miterlimit")};return C!==null&&C.split(";").forEach(B=>{const[U,V]=B.split(":");if(U){const X=this._convertStyleName(U);I[X]||(I[X]=V.trim())}}),I}_svgPoly(E,C){const R=E.getAttribute("points").split(/[ ,]/g).map(I=>parseInt(I,10));this.drawPolygon(R),C&&this.closePath()}_svgFill(E,C){const{fill:R,opacity:I,stroke:B,strokeOpacity:U,strokeWidth:V,cap:X,join:K,miterLimit:J}=this._svgStyle(E),Z=V!==null?parseFloat(V):B!==null?1:0,_e=B!==null?this._hexToUint(B):this.lineColor;R?R==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(R),I!==null?parseFloat(I):1):C||this.beginFill(0),this.lineStyle({width:B===null&&V===null&&C?this.line.width:Z,alpha:U===null?this.line.alpha:parseFloat(U),color:B===null&&C?this.line.color:_e,cap:X===null&&C?this.line.cap:X,join:K===null&&C?this.line.join:K,miterLimit:J===null&&C?this.line.miterLimit:parseFloat(J)}),E.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(E){const C=E.getAttribute("d");let R=0,I=0;const B=parserExports(C.trim());for(let U=0;U<B.length;U++){const V=B[U];switch(V.code){case"m":{this.moveTo(R+=V.end.x,I+=V.end.y);break}case"M":{this.moveTo(R=V.end.x,I=V.end.y);break}case"H":{this.lineTo(R=V.value,I);break}case"h":{this.lineTo(R+=V.value,I);break}case"V":{this.lineTo(R,I=V.value);break}case"v":{this.lineTo(R,I+=V.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(R=V.end.x,I=V.end.y);break}case"l":{this.lineTo(R+=V.end.x,I+=V.end.y);break}case"C":{this.bezierCurveTo(V.cp1.x,V.cp1.y,V.cp2.x,V.cp2.y,R=V.end.x,I=V.end.y);break}case"c":{const X=R,K=I;this.bezierCurveTo(X+V.cp1.x,K+V.cp1.y,X+V.cp2.x,K+V.cp2.y,R+=V.end.x,I+=V.end.y);break}case"s":case"q":{const X=R,K=I;this.quadraticCurveTo(X+V.cp.x,K+V.cp.y,R+=V.end.x,I+=V.end.y);break}case"S":case"Q":{this.quadraticCurveTo(V.cp.x,V.cp.y,R=V.end.x,I=V.end.y);break}case"a":{arcToBezier({px:R,py:I,cx:R+=V.end.x,cy:I+=V.end.y,rx:V.radii.x,ry:V.radii.y,xAxisRotation:V.rotation,largeArcFlag:V.large?1:0,sweepFlag:V.clockwise?1:0}).forEach(({x1:X,y1:K,x2:J,y2:Y,x:Z,y:_e})=>this.bezierCurveTo(X,K,J,Y,Z,_e));break}case"A":{arcToBezier({px:R,py:I,cx:R=V.end.x,cy:I=V.end.y,rx:V.radii.x,ry:V.radii.y,xAxisRotation:V.rotation,largeArcFlag:V.large?1:0,sweepFlag:V.clockwise?1:0}).forEach(({x1:X,y1:K,x2:J,y2:Y,x:Z,y:_e})=>this.bezierCurveTo(X,K,J,Y,Z,_e));break}default:{console.info("[PIXI.SVG] Draw command not supported:",V.code,V);break}}}}}var paramCounts={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},SPECIAL_SPACES=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isSpace(A){return A===10||A===13||A===8232||A===8233||A===32||A===9||A===11||A===12||A===160||A>=5760&&SPECIAL_SPACES.indexOf(A)>=0}function isCommand(A){switch(A|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function isArc(A){return(A|32)===97}function isDigit(A){return A>=48&&A<=57}function isDigitStart(A){return A>=48&&A<=57||A===43||A===45||A===46}function State(A){this.index=0,this.path=A,this.max=A.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(A){for(;A.index<A.max&&isSpace(A.path.charCodeAt(A.index));)A.index++}function scanFlag(A){var E=A.path.charCodeAt(A.index);if(E===48){A.param=0,A.index++;return}if(E===49){A.param=1,A.index++;return}A.err="SvgPath: arc flag can be 0 or 1 only (at pos "+A.index+")"}function scanParam(A){var E=A.index,C=E,R=A.max,I=!1,B=!1,U=!1,V=!1,X;if(C>=R){A.err="SvgPath: missed param (at pos "+C+")";return}if(X=A.path.charCodeAt(C),(X===43||X===45)&&(C++,X=C<R?A.path.charCodeAt(C):0),!isDigit(X)&&X!==46){A.err="SvgPath: param should start with 0..9 or `.` (at pos "+C+")";return}if(X!==46){if(I=X===48,C++,X=C<R?A.path.charCodeAt(C):0,I&&C<R&&X&&isDigit(X)){A.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+E+")";return}for(;C<R&&isDigit(A.path.charCodeAt(C));)C++,B=!0;X=C<R?A.path.charCodeAt(C):0}if(X===46){for(V=!0,C++;isDigit(A.path.charCodeAt(C));)C++,U=!0;X=C<R?A.path.charCodeAt(C):0}if(X===101||X===69){if(V&&!B&&!U){A.err="SvgPath: invalid float exponent (at pos "+C+")";return}if(C++,X=C<R?A.path.charCodeAt(C):0,(X===43||X===45)&&C++,C<R&&isDigit(A.path.charCodeAt(C)))for(;C<R&&isDigit(A.path.charCodeAt(C));)C++;else{A.err="SvgPath: invalid float exponent (at pos "+C+")";return}}A.index=C,A.param=parseFloat(A.path.slice(E,C))+0}function finalizeSegment(A){var E,C;E=A.path[A.segmentStart],C=E.toLowerCase();var R=A.data;if(C==="m"&&R.length>2&&(A.result.push([E,R[0],R[1]]),R=R.slice(2),C="l",E=E==="m"?"l":"L"),C==="r")A.result.push([E].concat(R));else for(;R.length>=paramCounts[C]&&(A.result.push([E].concat(R.splice(0,paramCounts[C]))),!!paramCounts[C]););}function scanSegment(A){var E=A.max,C,R,I,B,U;if(A.segmentStart=A.index,C=A.path.charCodeAt(A.index),R=isArc(C),!isCommand(C)){A.err="SvgPath: bad command "+A.path[A.index]+" (at pos "+A.index+")";return}if(B=paramCounts[A.path[A.index].toLowerCase()],A.index++,skipSpaces(A),A.data=[],!B){finalizeSegment(A);return}for(I=!1;;){for(U=B;U>0;U--){if(R&&(U===3||U===4)?scanFlag(A):scanParam(A),A.err.length){finalizeSegment(A);return}A.data.push(A.param),skipSpaces(A),I=!1,A.index<E&&A.path.charCodeAt(A.index)===44&&(A.index++,skipSpaces(A),I=!0)}if(!I&&(A.index>=A.max||!isDigitStart(A.path.charCodeAt(A.index))))break}finalizeSegment(A)}var path_parse=function(E){var C=new State(E),R=C.max;for(skipSpaces(C);C.index<R&&!C.err.length;)scanSegment(C);return C.result.length&&("mM".indexOf(C.result[0][0])<0?(C.err="SvgPath: string should start with `M` or `m`",C.result=[]):C.result[0][0]="M"),{err:C.err,segments:C.result}};function combine(A,E){return[A[0]*E[0]+A[2]*E[1],A[1]*E[0]+A[3]*E[1],A[0]*E[2]+A[2]*E[3],A[1]*E[2]+A[3]*E[3],A[0]*E[4]+A[2]*E[5]+A[4],A[1]*E[4]+A[3]*E[5]+A[5]]}function Matrix$1(){if(!(this instanceof Matrix$1))return new Matrix$1;this.queue=[],this.cache=null}Matrix$1.prototype.matrix=function(A){return A[0]===1&&A[1]===0&&A[2]===0&&A[3]===1&&A[4]===0&&A[5]===0?this:(this.cache=null,this.queue.push(A),this)},Matrix$1.prototype.translate=function(A,E){return(A!==0||E!==0)&&(this.cache=null,this.queue.push([1,0,0,1,A,E])),this},Matrix$1.prototype.scale=function(A,E){return(A!==1||E!==1)&&(this.cache=null,this.queue.push([A,0,0,E,0,0])),this},Matrix$1.prototype.rotate=function(A,E,C){var R,I,B;return A!==0&&(this.translate(E,C),R=A*Math.PI/180,I=Math.cos(R),B=Math.sin(R),this.queue.push([I,B,-B,I,0,0]),this.cache=null,this.translate(-E,-C)),this},Matrix$1.prototype.skewX=function(A){return A!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(A*Math.PI/180),1,0,0])),this},Matrix$1.prototype.skewY=function(A){return A!==0&&(this.cache=null,this.queue.push([1,Math.tan(A*Math.PI/180),0,1,0,0])),this},Matrix$1.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var A=1;A<this.queue.length;A++)this.cache=combine(this.cache,this.queue[A]);return this.cache},Matrix$1.prototype.calc=function(A,E,C){var R;return this.queue.length?(this.cache||(this.cache=this.toArray()),R=this.cache,[A*R[0]+E*R[2]+(C?0:R[4]),A*R[1]+E*R[3]+(C?0:R[5])]):[A,E]};var matrix$1=Matrix$1,Matrix=matrix$1,operations={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},CMD_SPLIT_RE=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,PARAMS_SPLIT_RE=/[\s,]+/,transform_parse=function(E){var C=new Matrix,R,I;return E.split(CMD_SPLIT_RE).forEach(function(B){if(B.length){if(typeof operations[B]<"u"){R=B;return}switch(I=B.split(PARAMS_SPLIT_RE).map(function(U){return+U||0}),R){case"matrix":I.length===6&&C.matrix(I);return;case"scale":I.length===1?C.scale(I[0],I[0]):I.length===2&&C.scale(I[0],I[1]);return;case"rotate":I.length===1?C.rotate(I[0],0,0):I.length===3&&C.rotate(I[0],I[1],I[2]);return;case"translate":I.length===1?C.translate(I[0],0):I.length===2&&C.translate(I[0],I[1]);return;case"skewX":I.length===1&&C.skewX(I[0]);return;case"skewY":I.length===1&&C.skewY(I[0]);return}}}),C},TAU$1=Math.PI*2;function unit_vector_angle(A,E,C,R){var I=A*R-E*C<0?-1:1,B=A*C+E*R;return B>1&&(B=1),B<-1&&(B=-1),I*Math.acos(B)}function get_arc_center(A,E,C,R,I,B,U,V,X,K){var J=K*(A-C)/2+X*(E-R)/2,Y=-X*(A-C)/2+K*(E-R)/2,Z=U*U,_e=V*V,xe=J*J,Se=Y*Y,Pe=Z*_e-Z*Se-_e*xe;Pe<0&&(Pe=0),Pe/=Z*Se+_e*xe,Pe=Math.sqrt(Pe)*(I===B?-1:1);var Ee=Pe*U/V*Y,Ae=Pe*-V/U*J,Te=K*Ee-X*Ae+(A+C)/2,we=X*Ee+K*Ae+(E+R)/2,Ie=(J-Ee)/U,Fe=(Y-Ae)/V,ke=(-J-Ee)/U,Le=(-Y-Ae)/V,Ge=unit_vector_angle(1,0,Ie,Fe),He=unit_vector_angle(Ie,Fe,ke,Le);return B===0&&He>0&&(He-=TAU$1),B===1&&He<0&&(He+=TAU$1),[Te,we,Ge,He]}function approximate_unit_arc(A,E){var C=1.3333333333333333*Math.tan(E/4),R=Math.cos(A),I=Math.sin(A),B=Math.cos(A+E),U=Math.sin(A+E);return[R,I,R-I*C,I+R*C,B+U*C,U-B*C,B,U]}var a2c$1=function(E,C,R,I,B,U,V,X,K){var J=Math.sin(K*TAU$1/360),Y=Math.cos(K*TAU$1/360),Z=Y*(E-R)/2+J*(C-I)/2,_e=-J*(E-R)/2+Y*(C-I)/2;if(Z===0&&_e===0)return[];if(V===0||X===0)return[];V=Math.abs(V),X=Math.abs(X);var xe=Z*Z/(V*V)+_e*_e/(X*X);xe>1&&(V*=Math.sqrt(xe),X*=Math.sqrt(xe));var Se=get_arc_center(E,C,R,I,B,U,V,X,J,Y),Pe=[],Ee=Se[2],Ae=Se[3],Te=Math.max(Math.ceil(Math.abs(Ae)/(TAU$1/4)),1);Ae/=Te;for(var we=0;we<Te;we++)Pe.push(approximate_unit_arc(Ee,Ae)),Ee+=Ae;return Pe.map(function(Ie){for(var Fe=0;Fe<Ie.length;Fe+=2){var ke=Ie[Fe+0],Le=Ie[Fe+1];ke*=V,Le*=X;var Ge=Y*ke-J*Le,He=J*ke+Y*Le;Ie[Fe+0]=Ge+Se[0],Ie[Fe+1]=He+Se[1]}return Ie})},epsilon=1e-10,torad=Math.PI/180;function Ellipse(A,E,C){if(!(this instanceof Ellipse))return new Ellipse(A,E,C);this.rx=A,this.ry=E,this.ax=C}Ellipse.prototype.transform=function(A){var E=Math.cos(this.ax*torad),C=Math.sin(this.ax*torad),R=[this.rx*(A[0]*E+A[2]*C),this.rx*(A[1]*E+A[3]*C),this.ry*(-A[0]*C+A[2]*E),this.ry*(-A[1]*C+A[3]*E)],I=R[0]*R[0]+R[2]*R[2],B=R[1]*R[1]+R[3]*R[3],U=((R[0]-R[3])*(R[0]-R[3])+(R[2]+R[1])*(R[2]+R[1]))*((R[0]+R[3])*(R[0]+R[3])+(R[2]-R[1])*(R[2]-R[1])),V=(I+B)/2;if(U<epsilon*V)return this.rx=this.ry=Math.sqrt(V),this.ax=0,this;var X=R[0]*R[1]+R[2]*R[3];U=Math.sqrt(U);var K=V+U/2,J=V-U/2;return this.ax=Math.abs(X)<epsilon&&Math.abs(K-B)<epsilon?90:Math.atan(Math.abs(X)>Math.abs(K-B)?(K-I)/X:X/(K-B))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(K),this.ry=Math.sqrt(J)):(this.ax+=90,this.rx=Math.sqrt(J),this.ry=Math.sqrt(K)),this},Ellipse.prototype.isDegenerate=function(){return this.rx<epsilon*this.ry||this.ry<epsilon*this.rx};var ellipse$1=Ellipse,pathParse=path_parse,transformParse=transform_parse,matrix=matrix$1,a2c=a2c$1,ellipse=ellipse$1;function SvgPath(A){if(!(this instanceof SvgPath))return new SvgPath(A);var E=pathParse(A);this.segments=E.segments,this.err=E.err,this.__stack=[]}SvgPath.from=function(A){if(typeof A=="string")return new SvgPath(A);if(A instanceof SvgPath){var E=new SvgPath("");return E.err=A.err,E.segments=A.segments.map(function(C){return C.slice()}),E.__stack=A.__stack.map(function(C){return matrix().matrix(C.toArray())}),E}throw new Error("SvgPath.from: invalid param type "+A)},SvgPath.prototype.__matrix=function(A){var E=this,C;A.queue.length&&this.iterate(function(R,I,B,U){var V,X,K,J;switch(R[0]){case"v":V=A.calc(0,R[1],!0),X=V[0]===0?["v",V[1]]:["l",V[0],V[1]];break;case"V":V=A.calc(B,R[1],!1),X=V[0]===A.calc(B,U,!1)[0]?["V",V[1]]:["L",V[0],V[1]];break;case"h":V=A.calc(R[1],0,!0),X=V[1]===0?["h",V[0]]:["l",V[0],V[1]];break;case"H":V=A.calc(R[1],U,!1),X=V[1]===A.calc(B,U,!1)[1]?["H",V[0]]:["L",V[0],V[1]];break;case"a":case"A":var Y=A.toArray(),Z=ellipse(R[1],R[2],R[3]).transform(Y);if(Y[0]*Y[3]-Y[1]*Y[2]<0&&(R[5]=R[5]?"0":"1"),V=A.calc(R[6],R[7],R[0]==="a"),R[0]==="A"&&R[6]===B&&R[7]===U||R[0]==="a"&&R[6]===0&&R[7]===0){X=[R[0]==="a"?"l":"L",V[0],V[1]];break}Z.isDegenerate()?X=[R[0]==="a"?"l":"L",V[0],V[1]]:X=[R[0],Z.rx,Z.ry,Z.ax,R[4],R[5],V[0],V[1]];break;case"m":J=I>0,V=A.calc(R[1],R[2],J),X=["m",V[0],V[1]];break;default:for(K=R[0],X=[K],J=K.toLowerCase()===K,C=1;C<R.length;C+=2)V=A.calc(R[C],R[C+1],J),X.push(V[0],V[1])}E.segments[I]=X},!0)},SvgPath.prototype.__evaluateStack=function(){var A,E;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(A=matrix(),E=this.__stack.length;--E>=0;)A.matrix(this.__stack[E].toArray());this.__matrix(A),this.__stack=[]}},SvgPath.prototype.toString=function(){var A="",E="",C=!1;this.__evaluateStack();for(var R=0,I=this.segments.length;R<I;R++){var B=this.segments[R],U=B[0];U!==E||U==="m"||U==="M"?(U==="m"&&E==="z"&&(A+=" "),A+=U,C=!1):C=!0;for(var V=1;V<B.length;V++){var X=B[V];V===1?C&&X>=0&&(A+=" "):X>=0&&(A+=" "),A+=X}E=U}return A},SvgPath.prototype.translate=function(A,E){return this.__stack.push(matrix().translate(A,E||0)),this},SvgPath.prototype.scale=function(A,E){return this.__stack.push(matrix().scale(A,!E&&E!==0?A:E)),this},SvgPath.prototype.rotate=function(A,E,C){return this.__stack.push(matrix().rotate(A,E||0,C||0)),this},SvgPath.prototype.skewX=function(A){return this.__stack.push(matrix().skewX(A)),this},SvgPath.prototype.skewY=function(A){return this.__stack.push(matrix().skewY(A)),this},SvgPath.prototype.matrix=function(A){return this.__stack.push(matrix().matrix(A)),this},SvgPath.prototype.transform=function(A){return A.trim()?(this.__stack.push(transformParse(A)),this):this},SvgPath.prototype.round=function(A){var E=0,C=0,R=0,I=0,B;return A=A||0,this.__evaluateStack(),this.segments.forEach(function(U){var V=U[0].toLowerCase()===U[0];switch(U[0]){case"H":case"h":V&&(U[1]+=R),R=U[1]-U[1].toFixed(A),U[1]=+U[1].toFixed(A);return;case"V":case"v":V&&(U[1]+=I),I=U[1]-U[1].toFixed(A),U[1]=+U[1].toFixed(A);return;case"Z":case"z":R=E,I=C;return;case"M":case"m":V&&(U[1]+=R,U[2]+=I),R=U[1]-U[1].toFixed(A),I=U[2]-U[2].toFixed(A),E=R,C=I,U[1]=+U[1].toFixed(A),U[2]=+U[2].toFixed(A);return;case"A":case"a":V&&(U[6]+=R,U[7]+=I),R=U[6]-U[6].toFixed(A),I=U[7]-U[7].toFixed(A),U[1]=+U[1].toFixed(A),U[2]=+U[2].toFixed(A),U[3]=+U[3].toFixed(A+2),U[6]=+U[6].toFixed(A),U[7]=+U[7].toFixed(A);return;default:B=U.length,V&&(U[B-2]+=R,U[B-1]+=I),R=U[B-2]-U[B-2].toFixed(A),I=U[B-1]-U[B-1].toFixed(A),U.forEach(function(X,K){K&&(U[K]=+U[K].toFixed(A))});return}}),this},SvgPath.prototype.iterate=function(A,E){var C=this.segments,R={},I=!1,B=0,U=0,V=0,X=0,K,J,Y;if(E||this.__evaluateStack(),C.forEach(function(Z,_e){var xe=A(Z,_e,B,U);Array.isArray(xe)&&(R[_e]=xe,I=!0);var Se=Z[0]===Z[0].toLowerCase();switch(Z[0]){case"m":case"M":B=Z[1]+(Se?B:0),U=Z[2]+(Se?U:0),V=B,X=U;return;case"h":case"H":B=Z[1]+(Se?B:0);return;case"v":case"V":U=Z[1]+(Se?U:0);return;case"z":case"Z":B=V,U=X;return;default:B=Z[Z.length-2]+(Se?B:0),U=Z[Z.length-1]+(Se?U:0)}}),!I)return this;for(Y=[],K=0;K<C.length;K++)if(typeof R[K]<"u")for(J=0;J<R[K].length;J++)Y.push(R[K][J]);else Y.push(C[K]);return this.segments=Y,this},SvgPath.prototype.abs=function(){return this.iterate(function(A,E,C,R){var I=A[0],B=I.toUpperCase(),U;if(I!==B)switch(A[0]=B,I){case"v":A[1]+=R;return;case"a":A[6]+=C,A[7]+=R;return;default:for(U=1;U<A.length;U++)A[U]+=U%2?C:R}},!0),this},SvgPath.prototype.rel=function(){return this.iterate(function(A,E,C,R){var I=A[0],B=I.toLowerCase(),U;if(I!==B&&!(E===0&&I==="M"))switch(A[0]=B,I){case"V":A[1]-=R;return;case"A":A[6]-=C,A[7]-=R;return;default:for(U=1;U<A.length;U++)A[U]-=U%2?C:R}},!0),this},SvgPath.prototype.unarc=function(){return this.iterate(function(A,E,C,R){var I,B,U,V=[],X=A[0];return X!=="A"&&X!=="a"?null:(X==="a"?(B=C+A[6],U=R+A[7]):(B=A[6],U=A[7]),I=a2c(C,R,B,U,A[4],A[5],A[1],A[2],A[3]),I.length===0?[[A[0]==="a"?"l":"L",A[6],A[7]]]:(I.forEach(function(K){V.push(["C",K[2],K[3],K[4],K[5],K[6],K[7]])}),V))}),this},SvgPath.prototype.unshort=function(){var A=this.segments,E,C,R,I,B;return this.iterate(function(U,V,X,K){var J=U[0],Y=J.toUpperCase(),Z;V&&(Y==="T"?(Z=J==="t",R=A[V-1],R[0]==="Q"?(E=R[1]-X,C=R[2]-K):R[0]==="q"?(E=R[1]-R[3],C=R[2]-R[4]):(E=0,C=0),I=-E,B=-C,Z||(I+=X,B+=K),A[V]=[Z?"q":"Q",I,B,U[1],U[2]]):Y==="S"&&(Z=J==="s",R=A[V-1],R[0]==="C"?(E=R[3]-X,C=R[4]-K):R[0]==="c"?(E=R[3]-R[5],C=R[4]-R[6]):(E=0,C=0),I=-E,B=-C,Z||(I+=X,B+=K),A[V]=[Z?"c":"C",I,B,U[1],U[2],U[3],U[4]]))}),this};var svgpath$2=SvgPath,svgpath=svgpath$2;const svgpath$1=getDefaultExportFromCjs(svgpath),PixiSvgPathSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(null),I=React.useRef(null),B=React.useRef(null),U=React.useRef(null),{path:V,visible:X,disabled:K,transformation:{x:J,y:Y,width:Z,height:_e,anchor:xe,hexColor:Se,fill:Pe,stroke:Ee="none",strokeWidth:Ae=0,colorCorrection:Te={}},pointerdown:we,pointerup:Ie}=A,Fe=react.useApp(),{temperatureFilter:ke,sharpnessFilter:Le,hueFilter:Ge,blurFilter:He,adjustmentFilter:Be,vignetteFilter:je,noiseFilter:Ue}=withFiltersHook(Te),{blurRadius:ze=0,vignette:Ve=0,noise:Oe=0}=Te;return React__namespace.useEffect(()=>{const $e=svgpath$1(V).scale(5).translate(0,0).toString(),Re=`<svg xmlns="http://www.w3.org/2000/svg" width="${Z}" height="${_e}">
1938
+ */(function(A,E){(function(C,R){A.exports=R()})(commonjsGlobal,function(){return function(R){for(var I={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},B={number:function(Se){return+_e("number",Se)},"coordinate pair":function(Se){var Pe=_e("number",Se);if(Pe===null&&!Se)return null;_e("comma");var Ee=_e("number",!0);return{x:+Pe,y:+Ee}},"arc definition":function(Se){var Pe=B["coordinate pair"](Se);if(!Pe&&!Se)return null;_e("comma");var Ee=+_e("number",!0);_e("comma",!0);var Ae=!!+_e("flag",!0);_e("comma");var Te=!!+_e("flag",!0);_e("comma");var we=B["coordinate pair"](!0);return{radii:Pe,rotation:Ee,large:Ae,clockwise:Te,end:we}}},U=0,V=[];U<R.length;){var X=_e("command"),K=X.toUpperCase(),J=X!==K,Y;switch(K){case"M":Y=xe("coordinate pair").map(function(Se,Pe){return Pe===1&&(X=J?"l":"L"),Z({end:Se})});break;case"L":case"T":Y=xe("coordinate pair").map(function(Se){return Z({end:Se})});break;case"C":if(Y=xe("coordinate pair"),Y.length%3)throw Error("Expected coordinate pair triplet at position "+U);Y=Y.reduce(function(Se,Pe,Ee){var Ae=Ee%3;if(!Ae)Se.push(Z({cp1:Pe}));else{var Te=Se[Se.length-1];Te[Ae===1?"cp2":"end"]=Pe}return Se},[]);break;case"Q":case"S":if(Y=xe("coordinate pair"),Y.length&1)throw Error("Expected coordinate pair couple at position "+U);Y=Y.reduce(function(Se,Pe,Ee){var Ae=Ee&1;if(!Ae)Se.push(Z({cp:Pe}));else{var Te=Se[Se.length-1];Te.end=Pe}return Se},[]);break;case"H":case"V":Y=xe("number").map(function(Se){return Z({value:Se})});break;case"A":Y=xe("arc definition").map(Z);break;case"Z":Y=[{code:"Z"}];break}V.push.apply(V,Y)}return V;function Z(Se){return Se.code=X,Se.relative=J,Se}function _e(Se,Pe){I[Se].lastIndex=U;var Ee=I[Se].exec(R);if(!Ee||Ee.index!==U){if(!Pe)return null;throw Error("Expected "+Se+" at position "+U)}return U=I[Se].lastIndex,Ee[1]}function xe(Se){for(var Pe=[],Ee,Ae=!0;Ee=B[Se](Ae);)Pe.push(Ee),Ae=!!_e("comma");return Pe}}})})(parser);const trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(A,E){if(A=A||"",E=E||{},A instanceof tinycolor)return A;if(!(this instanceof tinycolor))return new tinycolor(A,E);var C=inputToRGB(A);this._originalInput=A,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=Math.round(100*this._a)/100,this._format=E.format||C.format,this._gradientType=E.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=C.ok}tinycolor.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var A=this.toRgb();return(A.r*299+A.g*587+A.b*114)/1e3},getLuminance:function(){var A=this.toRgb(),E,C,R,I,B,U;return E=A.r/255,C=A.g/255,R=A.b/255,E<=.03928?I=E/12.92:I=Math.pow((E+.055)/1.055,2.4),C<=.03928?B=C/12.92:B=Math.pow((C+.055)/1.055,2.4),R<=.03928?U=R/12.92:U=Math.pow((R+.055)/1.055,2.4),.2126*I+.7152*B+.0722*U},setAlpha:function(A){return this._a=boundAlpha(A),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var A=rgbToHsv(this._r,this._g,this._b);return{h:A.h*360,s:A.s,v:A.v,a:this._a}},toHsvString:function(){var A=rgbToHsv(this._r,this._g,this._b),E=Math.round(A.h*360),C=Math.round(A.s*100),R=Math.round(A.v*100);return this._a==1?"hsv("+E+", "+C+"%, "+R+"%)":"hsva("+E+", "+C+"%, "+R+"%, "+this._roundA+")"},toHsl:function(){var A=rgbToHsl(this._r,this._g,this._b);return{h:A.h*360,s:A.s,l:A.l,a:this._a}},toHslString:function(){var A=rgbToHsl(this._r,this._g,this._b),E=Math.round(A.h*360),C=Math.round(A.s*100),R=Math.round(A.l*100);return this._a==1?"hsl("+E+", "+C+"%, "+R+"%)":"hsla("+E+", "+C+"%, "+R+"%, "+this._roundA+")"},toHex:function(A){return rgbToHex(this._r,this._g,this._b,A)},toHexString:function(A){return"#"+this.toHex(A)},toHex8:function(A){return rgbaToHex(this._r,this._g,this._b,this._a,A)},toHex8String:function(A){return"#"+this.toHex8(A)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(A){var E="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),C=E,R=this._gradientType?"GradientType = 1, ":"";if(A){var I=tinycolor(A);C="#"+rgbaToArgbHex(I._r,I._g,I._b,I._a)}return"progid:DXImageTransform.Microsoft.gradient("+R+"startColorstr="+E+",endColorstr="+C+")"},toString:function(A){var E=!!A;A=A||this._format;var C=!1,R=this._a<1&&this._a>=0,I=!E&&R&&(A==="hex"||A==="hex6"||A==="hex3"||A==="hex4"||A==="hex8"||A==="name");return I?A==="name"&&this._a===0?this.toName():this.toRgbString():(A==="rgb"&&(C=this.toRgbString()),A==="prgb"&&(C=this.toPercentageRgbString()),(A==="hex"||A==="hex6")&&(C=this.toHexString()),A==="hex3"&&(C=this.toHexString(!0)),A==="hex4"&&(C=this.toHex8String(!0)),A==="hex8"&&(C=this.toHex8String()),A==="name"&&(C=this.toName()),A==="hsl"&&(C=this.toHslString()),A==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(A,E){var C=A.apply(null,[this].concat([].slice.call(E)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(lighten,arguments)},brighten:function(){return this._applyModification(brighten,arguments)},darken:function(){return this._applyModification(darken,arguments)},desaturate:function(){return this._applyModification(desaturate,arguments)},saturate:function(){return this._applyModification(saturate,arguments)},greyscale:function(){return this._applyModification(greyscale,arguments)},spin:function(){return this._applyModification(spin,arguments)},_applyCombination:function(A,E){return A.apply(null,[this].concat([].slice.call(E)))},analogous:function(){return this._applyCombination(analogous,arguments)},complement:function(){return this._applyCombination(complement,arguments)},monochromatic:function(){return this._applyCombination(monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(A,E){if(typeof A=="object"){var C={};for(var R in A)A.hasOwnProperty(R)&&(R==="a"?C[R]=A[R]:C[R]=convertToPercentage(A[R]));A=C}return tinycolor(A,E)};function inputToRGB(A){var E={r:0,g:0,b:0},C=1,R=null,I=null,B=null,U=!1,V=!1;return typeof A=="string"&&(A=stringInputToObject(A)),typeof A=="object"&&(isValidCSSUnit(A.r)&&isValidCSSUnit(A.g)&&isValidCSSUnit(A.b)?(E=rgbToRgb(A.r,A.g,A.b),U=!0,V=String(A.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(A.h)&&isValidCSSUnit(A.s)&&isValidCSSUnit(A.v)?(R=convertToPercentage(A.s),I=convertToPercentage(A.v),E=hsvToRgb(A.h,R,I),U=!0,V="hsv"):isValidCSSUnit(A.h)&&isValidCSSUnit(A.s)&&isValidCSSUnit(A.l)&&(R=convertToPercentage(A.s),B=convertToPercentage(A.l),E=hslToRgb(A.h,R,B),U=!0,V="hsl"),A.hasOwnProperty("a")&&(C=A.a)),C=boundAlpha(C),{ok:U,format:A.format||V,r:Math.min(255,Math.max(E.r,0)),g:Math.min(255,Math.max(E.g,0)),b:Math.min(255,Math.max(E.b,0)),a:C}}function rgbToRgb(A,E,C){return{r:bound01(A,255)*255,g:bound01(E,255)*255,b:bound01(C,255)*255}}function rgbToHsl(A,E,C){A=bound01(A,255),E=bound01(E,255),C=bound01(C,255);var R=Math.max(A,E,C),I=Math.min(A,E,C),B,U,V=(R+I)/2;if(R==I)B=U=0;else{var X=R-I;switch(U=V>.5?X/(2-R-I):X/(R+I),R){case A:B=(E-C)/X+(E<C?6:0);break;case E:B=(C-A)/X+2;break;case C:B=(A-E)/X+4;break}B/=6}return{h:B,s:U,l:V}}function hslToRgb(A,E,C){var R,I,B;A=bound01(A,360),E=bound01(E,100),C=bound01(C,100);function U(K,J,Y){return Y<0&&(Y+=1),Y>1&&(Y-=1),Y<1/6?K+(J-K)*6*Y:Y<1/2?J:Y<2/3?K+(J-K)*(2/3-Y)*6:K}if(E===0)R=I=B=C;else{var V=C<.5?C*(1+E):C+E-C*E,X=2*C-V;R=U(X,V,A+1/3),I=U(X,V,A),B=U(X,V,A-1/3)}return{r:R*255,g:I*255,b:B*255}}function rgbToHsv(A,E,C){A=bound01(A,255),E=bound01(E,255),C=bound01(C,255);var R=Math.max(A,E,C),I=Math.min(A,E,C),B,U,V=R,X=R-I;if(U=R===0?0:X/R,R==I)B=0;else{switch(R){case A:B=(E-C)/X+(E<C?6:0);break;case E:B=(C-A)/X+2;break;case C:B=(A-E)/X+4;break}B/=6}return{h:B,s:U,v:V}}function hsvToRgb(A,E,C){A=bound01(A,360)*6,E=bound01(E,100),C=bound01(C,100);var R=Math.floor(A),I=A-R,B=C*(1-E),U=C*(1-I*E),V=C*(1-(1-I)*E),X=R%6,K=[C,U,B,B,V,C][X],J=[V,C,C,U,B,B][X],Y=[B,B,V,C,C,U][X];return{r:K*255,g:J*255,b:Y*255}}function rgbToHex(A,E,C,R){var I=[pad2(Math.round(A).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(C).toString(16))];return R&&I[0].charAt(0)==I[0].charAt(1)&&I[1].charAt(0)==I[1].charAt(1)&&I[2].charAt(0)==I[2].charAt(1)?I[0].charAt(0)+I[1].charAt(0)+I[2].charAt(0):I.join("")}function rgbaToHex(A,E,C,R,I){var B=[pad2(Math.round(A).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(C).toString(16)),pad2(convertDecimalToHex(R))];return I&&B[0].charAt(0)==B[0].charAt(1)&&B[1].charAt(0)==B[1].charAt(1)&&B[2].charAt(0)==B[2].charAt(1)&&B[3].charAt(0)==B[3].charAt(1)?B[0].charAt(0)+B[1].charAt(0)+B[2].charAt(0)+B[3].charAt(0):B.join("")}function rgbaToArgbHex(A,E,C,R){var I=[pad2(convertDecimalToHex(R)),pad2(Math.round(A).toString(16)),pad2(Math.round(E).toString(16)),pad2(Math.round(C).toString(16))];return I.join("")}tinycolor.equals=function(A,E){return!A||!E?!1:tinycolor(A).toRgbString()==tinycolor(E).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function desaturate(A,E){E=E===0?0:E||10;var C=tinycolor(A).toHsl();return C.s-=E/100,C.s=clamp01(C.s),tinycolor(C)}function saturate(A,E){E=E===0?0:E||10;var C=tinycolor(A).toHsl();return C.s+=E/100,C.s=clamp01(C.s),tinycolor(C)}function greyscale(A){return tinycolor(A).desaturate(100)}function lighten(A,E){E=E===0?0:E||10;var C=tinycolor(A).toHsl();return C.l+=E/100,C.l=clamp01(C.l),tinycolor(C)}function brighten(A,E){E=E===0?0:E||10;var C=tinycolor(A).toRgb();return C.r=Math.max(0,Math.min(255,C.r-Math.round(255*-(E/100)))),C.g=Math.max(0,Math.min(255,C.g-Math.round(255*-(E/100)))),C.b=Math.max(0,Math.min(255,C.b-Math.round(255*-(E/100)))),tinycolor(C)}function darken(A,E){E=E===0?0:E||10;var C=tinycolor(A).toHsl();return C.l-=E/100,C.l=clamp01(C.l),tinycolor(C)}function spin(A,E){var C=tinycolor(A).toHsl(),R=(C.h+E)%360;return C.h=R<0?360+R:R,tinycolor(C)}function complement(A){var E=tinycolor(A).toHsl();return E.h=(E.h+180)%360,tinycolor(E)}function polyad(A,E){if(isNaN(E)||E<=0)throw new Error("Argument to polyad must be a positive number");for(var C=tinycolor(A).toHsl(),R=[tinycolor(A)],I=360/E,B=1;B<E;B++)R.push(tinycolor({h:(C.h+B*I)%360,s:C.s,l:C.l}));return R}function splitcomplement(A){var E=tinycolor(A).toHsl(),C=E.h;return[tinycolor(A),tinycolor({h:(C+72)%360,s:E.s,l:E.l}),tinycolor({h:(C+216)%360,s:E.s,l:E.l})]}function analogous(A,E,C){E=E||6,C=C||30;var R=tinycolor(A).toHsl(),I=360/C,B=[tinycolor(A)];for(R.h=(R.h-(I*E>>1)+720)%360;--E;)R.h=(R.h+I)%360,B.push(tinycolor(R));return B}function monochromatic(A,E){E=E||6;for(var C=tinycolor(A).toHsv(),R=C.h,I=C.s,B=C.v,U=[],V=1/E;E--;)U.push(tinycolor({h:R,s:I,v:B})),B=(B+V)%1;return U}tinycolor.mix=function(A,E,C){C=C===0?0:C||50;var R=tinycolor(A).toRgb(),I=tinycolor(E).toRgb(),B=C/100,U={r:(I.r-R.r)*B+R.r,g:(I.g-R.g)*B+R.g,b:(I.b-R.b)*B+R.b,a:(I.a-R.a)*B+R.a};return tinycolor(U)},tinycolor.readability=function(A,E){var C=tinycolor(A),R=tinycolor(E);return(Math.max(C.getLuminance(),R.getLuminance())+.05)/(Math.min(C.getLuminance(),R.getLuminance())+.05)},tinycolor.isReadable=function(A,E,C){var R=tinycolor.readability(A,E),I,B;switch(B=!1,I=validateWCAG2Parms(C),I.level+I.size){case"AAsmall":case"AAAlarge":B=R>=4.5;break;case"AAlarge":B=R>=3;break;case"AAAsmall":B=R>=7;break}return B},tinycolor.mostReadable=function(A,E,C){var R=null,I=0,B,U,V,X;C=C||{},U=C.includeFallbackColors,V=C.level,X=C.size;for(var K=0;K<E.length;K++)B=tinycolor.readability(A,E[K]),B>I&&(I=B,R=tinycolor(E[K]));return tinycolor.isReadable(A,R,{level:V,size:X})||!U?R:(C.includeFallbackColors=!1,tinycolor.mostReadable(A,["#fff","#000"],C))};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor.hexNames=flip(names);function flip(A){var E={};for(var C in A)A.hasOwnProperty(C)&&(E[A[C]]=C);return E}function boundAlpha(A){return A=parseFloat(A),(isNaN(A)||A<0||A>1)&&(A=1),A}function bound01(A,E){isOnePointZero(A)&&(A="100%");var C=isPercentage(A);return A=Math.min(E,Math.max(0,parseFloat(A))),C&&(A=parseInt(A*E,10)/100),Math.abs(A-E)<1e-6?1:A%E/parseFloat(E)}function clamp01(A){return Math.min(1,Math.max(0,A))}function parseIntFromHex(A){return parseInt(A,16)}function isOnePointZero(A){return typeof A=="string"&&A.indexOf(".")!=-1&&parseFloat(A)===1}function isPercentage(A){return typeof A=="string"&&A.indexOf("%")!=-1}function pad2(A){return A.length==1?"0"+A:""+A}function convertToPercentage(A){return A<=1&&(A=A*100+"%"),A}function convertDecimalToHex(A){return Math.round(parseFloat(A)*255).toString(16)}function convertHexToDecimal(A){return parseIntFromHex(A)/255}var matchers=function(){var A="[-\\+]?\\d+%?",E="[-\\+]?\\d*\\.\\d+%?",C="(?:"+E+")|(?:"+A+")",R="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",I="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function isValidCSSUnit(A){return!!matchers.CSS_UNIT.exec(A)}function stringInputToObject(A){A=A.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var E=!1;if(names[A])A=names[A],E=!0;else if(A=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=matchers.rgb.exec(A))?{r:C[1],g:C[2],b:C[3]}:(C=matchers.rgba.exec(A))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=matchers.hsl.exec(A))?{h:C[1],s:C[2],l:C[3]}:(C=matchers.hsla.exec(A))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=matchers.hsv.exec(A))?{h:C[1],s:C[2],v:C[3]}:(C=matchers.hsva.exec(A))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=matchers.hex8.exec(A))?{r:parseIntFromHex(C[1]),g:parseIntFromHex(C[2]),b:parseIntFromHex(C[3]),a:convertHexToDecimal(C[4]),format:E?"name":"hex8"}:(C=matchers.hex6.exec(A))?{r:parseIntFromHex(C[1]),g:parseIntFromHex(C[2]),b:parseIntFromHex(C[3]),format:E?"name":"hex"}:(C=matchers.hex4.exec(A))?{r:parseIntFromHex(C[1]+""+C[1]),g:parseIntFromHex(C[2]+""+C[2]),b:parseIntFromHex(C[3]+""+C[3]),a:convertHexToDecimal(C[4]+""+C[4]),format:E?"name":"hex8"}:(C=matchers.hex3.exec(A))?{r:parseIntFromHex(C[1]+""+C[1]),g:parseIntFromHex(C[2]+""+C[2]),b:parseIntFromHex(C[3]+""+C[3]),format:E?"name":"hex"}:!1}function validateWCAG2Parms(A){var E,C;return A=A||{level:"AA",size:"small"},E=(A.level||"AA").toUpperCase(),C=(A.size||"small").toLowerCase(),E!=="AA"&&E!=="AAA"&&(E="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:E,size:C}}var _slicedToArray=function(){function A(E,C){var R=[],I=!0,B=!1,U=void 0;try{for(var V=E[Symbol.iterator](),X;!(I=(X=V.next()).done)&&(R.push(X.value),!(C&&R.length===C));I=!0);}catch(K){B=!0,U=K}finally{try{!I&&V.return&&V.return()}finally{if(B)throw U}}return R}return function(E,C){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return A(E,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),TAU$2=Math.PI*2,mapToEllipse=function(E,C,R,I,B,U,V){var X=E.x,K=E.y;X*=C,K*=R;var J=I*X-B*K,Y=B*X+I*K;return{x:J+U,y:Y+V}},approxUnitArc=function(E,C){var R=C===1.5707963267948966?.551915024494:C===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(C/4),I=Math.cos(E),B=Math.sin(E),U=Math.cos(E+C),V=Math.sin(E+C);return[{x:I-B*R,y:B+I*R},{x:U+V*R,y:V-U*R},{x:U,y:V}]},vectorAngle=function(E,C,R,I){var B=E*I-C*R<0?-1:1,U=E*R+C*I;return U>1&&(U=1),U<-1&&(U=-1),B*Math.acos(U)},getArcCenter=function(E,C,R,I,B,U,V,X,K,J,Y,Z){var _e=Math.pow(B,2),xe=Math.pow(U,2),Se=Math.pow(Y,2),Pe=Math.pow(Z,2),Ee=_e*xe-_e*Pe-xe*Se;Ee<0&&(Ee=0),Ee/=_e*Pe+xe*Se,Ee=Math.sqrt(Ee)*(V===X?-1:1);var Ae=Ee*B/U*Z,Te=Ee*-U/B*Y,we=J*Ae-K*Te+(E+R)/2,Ie=K*Ae+J*Te+(C+I)/2,Fe=(Y-Ae)/B,ke=(Z-Te)/U,Le=(-Y-Ae)/B,Ge=(-Z-Te)/U,Ue=vectorAngle(1,0,Fe,ke),Be=vectorAngle(Fe,ke,Le,Ge);return X===0&&Be>0&&(Be-=TAU$2),X===1&&Be<0&&(Be+=TAU$2),[we,Ie,Ue,Be]},arcToBezier=function(E){var C=E.px,R=E.py,I=E.cx,B=E.cy,U=E.rx,V=E.ry,X=E.xAxisRotation,K=X===void 0?0:X,J=E.largeArcFlag,Y=J===void 0?0:J,Z=E.sweepFlag,_e=Z===void 0?0:Z,xe=[];if(U===0||V===0)return[];var Se=Math.sin(K*TAU$2/360),Pe=Math.cos(K*TAU$2/360),Ee=Pe*(C-I)/2+Se*(R-B)/2,Ae=-Se*(C-I)/2+Pe*(R-B)/2;if(Ee===0&&Ae===0)return[];U=Math.abs(U),V=Math.abs(V);var Te=Math.pow(Ee,2)/Math.pow(U,2)+Math.pow(Ae,2)/Math.pow(V,2);Te>1&&(U*=Math.sqrt(Te),V*=Math.sqrt(Te));var we=getArcCenter(C,R,I,B,U,V,Y,_e,Se,Pe,Ee,Ae),Ie=_slicedToArray(we,4),Fe=Ie[0],ke=Ie[1],Le=Ie[2],Ge=Ie[3],Ue=Math.abs(Ge)/(TAU$2/4);Math.abs(1-Ue)<1e-7&&(Ue=1);var Be=Math.max(Math.ceil(Ue),1);Ge/=Be;for(var je=0;je<Be;je++)xe.push(approxUnitArc(Le,Ge)),Le+=Ge;return xe.map(function(Ve){var ze=mapToEllipse(Ve[0],U,V,Pe,Se,Fe,ke),He=ze.x,Oe=ze.y,$e=mapToEllipse(Ve[1],U,V,Pe,Se,Fe,ke),Re=$e.x,Me=$e.y,Ne=mapToEllipse(Ve[2],U,V,Pe,Se,Fe,ke),De=Ne.x,Xe=Ne.y;return{x1:He,y1:Oe,x2:Re,y2:Me,x:De,y:Xe}})};class SVG extends Graphics{constructor(E){super(),this.lineColor=null,E&&this.drawSVG(E)}drawSVG(E){if(typeof E=="string"){const C=document.createElement("div");C.innerHTML=E.trim(),E=C.querySelector("svg")}if(!E)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(E),this._svgChildren(E.children),this}_svgChildren(E,C=!1){for(let R=0;R<E.length;R++){const I=E[R];switch(this._svgFill(I,C),I.nodeName.toLowerCase()){case"path":{this._svgPath(I);break}case"circle":case"ellipse":{this._svgCircle(I);break}case"rect":{this._svgRect(I);break}case"polygon":{this._svgPoly(I,!0);break}case"polyline":{this._svgPoly(I);break}case"g":break;default:{console.info(`[PIXI.SVG] <${I.nodeName}> elements unsupported`);break}}this._svgChildren(I.children,!0)}}_hexToUint(E){if(E[0]==="#")return E=E.substr(1),E.length===3&&(E=E.replace(/([a-f0-9])/ig,"$1$1")),parseInt(E,16);const{r:C,g:R,b:I}=tinycolor(E).toRgb();return(C<<16)+(R<<8)+I}_svgCircle(E){let C="r",R="r";const I=E.nodeName==="elipse";I&&(C+="x",R+="y");const B=parseFloat(E.getAttribute(R)),U=parseFloat(E.getAttribute(C)),V=E.getAttribute("cx"),X=E.getAttribute("cy");let K=0,J=0;V!==null&&(K=parseFloat(V)),X!==null&&(J=parseFloat(X)),I?this.drawEllipse(K,J,B,U):this.drawCircle(K,J,B)}_svgRect(E){const C=parseFloat(E.getAttribute("x")),R=parseFloat(E.getAttribute("y")),I=parseFloat(E.getAttribute("width")),B=parseFloat(E.getAttribute("height")),U=parseFloat(E.getAttribute("rx"));U?this.drawRoundedRect(C,R,I,B,U):this.drawRect(C,R,I,B)}_convertStyleName(E){return E.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(E){const C=E.getAttribute("style"),R=E.getAttribute("opacity"),I={fill:E.getAttribute("fill"),opacity:R||E.getAttribute("fill-opacity"),stroke:E.getAttribute("stroke"),strokeOpacity:R||E.getAttribute("stroke-opacity"),strokeWidth:E.getAttribute("stroke-width"),cap:E.getAttribute("stroke-linecap"),join:E.getAttribute("stroke-linejoin"),miterLimit:E.getAttribute("stroke-miterlimit")};return C!==null&&C.split(";").forEach(B=>{const[U,V]=B.split(":");if(U){const X=this._convertStyleName(U);I[X]||(I[X]=V.trim())}}),I}_svgPoly(E,C){const R=E.getAttribute("points").split(/[ ,]/g).map(I=>parseInt(I,10));this.drawPolygon(R),C&&this.closePath()}_svgFill(E,C){const{fill:R,opacity:I,stroke:B,strokeOpacity:U,strokeWidth:V,cap:X,join:K,miterLimit:J}=this._svgStyle(E),Z=V!==null?parseFloat(V):B!==null?1:0,_e=B!==null?this._hexToUint(B):this.lineColor;R?R==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(R),I!==null?parseFloat(I):1):C||this.beginFill(0),this.lineStyle({width:B===null&&V===null&&C?this.line.width:Z,alpha:U===null?this.line.alpha:parseFloat(U),color:B===null&&C?this.line.color:_e,cap:X===null&&C?this.line.cap:X,join:K===null&&C?this.line.join:K,miterLimit:J===null&&C?this.line.miterLimit:parseFloat(J)}),E.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(E){const C=E.getAttribute("d");let R=0,I=0;const B=parserExports(C.trim());for(let U=0;U<B.length;U++){const V=B[U];switch(V.code){case"m":{this.moveTo(R+=V.end.x,I+=V.end.y);break}case"M":{this.moveTo(R=V.end.x,I=V.end.y);break}case"H":{this.lineTo(R=V.value,I);break}case"h":{this.lineTo(R+=V.value,I);break}case"V":{this.lineTo(R,I=V.value);break}case"v":{this.lineTo(R,I+=V.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(R=V.end.x,I=V.end.y);break}case"l":{this.lineTo(R+=V.end.x,I+=V.end.y);break}case"C":{this.bezierCurveTo(V.cp1.x,V.cp1.y,V.cp2.x,V.cp2.y,R=V.end.x,I=V.end.y);break}case"c":{const X=R,K=I;this.bezierCurveTo(X+V.cp1.x,K+V.cp1.y,X+V.cp2.x,K+V.cp2.y,R+=V.end.x,I+=V.end.y);break}case"s":case"q":{const X=R,K=I;this.quadraticCurveTo(X+V.cp.x,K+V.cp.y,R+=V.end.x,I+=V.end.y);break}case"S":case"Q":{this.quadraticCurveTo(V.cp.x,V.cp.y,R=V.end.x,I=V.end.y);break}case"a":{arcToBezier({px:R,py:I,cx:R+=V.end.x,cy:I+=V.end.y,rx:V.radii.x,ry:V.radii.y,xAxisRotation:V.rotation,largeArcFlag:V.large?1:0,sweepFlag:V.clockwise?1:0}).forEach(({x1:X,y1:K,x2:J,y2:Y,x:Z,y:_e})=>this.bezierCurveTo(X,K,J,Y,Z,_e));break}case"A":{arcToBezier({px:R,py:I,cx:R=V.end.x,cy:I=V.end.y,rx:V.radii.x,ry:V.radii.y,xAxisRotation:V.rotation,largeArcFlag:V.large?1:0,sweepFlag:V.clockwise?1:0}).forEach(({x1:X,y1:K,x2:J,y2:Y,x:Z,y:_e})=>this.bezierCurveTo(X,K,J,Y,Z,_e));break}default:{console.info("[PIXI.SVG] Draw command not supported:",V.code,V);break}}}}}var paramCounts={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},SPECIAL_SPACES=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isSpace(A){return A===10||A===13||A===8232||A===8233||A===32||A===9||A===11||A===12||A===160||A>=5760&&SPECIAL_SPACES.indexOf(A)>=0}function isCommand(A){switch(A|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function isArc(A){return(A|32)===97}function isDigit(A){return A>=48&&A<=57}function isDigitStart(A){return A>=48&&A<=57||A===43||A===45||A===46}function State(A){this.index=0,this.path=A,this.max=A.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(A){for(;A.index<A.max&&isSpace(A.path.charCodeAt(A.index));)A.index++}function scanFlag(A){var E=A.path.charCodeAt(A.index);if(E===48){A.param=0,A.index++;return}if(E===49){A.param=1,A.index++;return}A.err="SvgPath: arc flag can be 0 or 1 only (at pos "+A.index+")"}function scanParam(A){var E=A.index,C=E,R=A.max,I=!1,B=!1,U=!1,V=!1,X;if(C>=R){A.err="SvgPath: missed param (at pos "+C+")";return}if(X=A.path.charCodeAt(C),(X===43||X===45)&&(C++,X=C<R?A.path.charCodeAt(C):0),!isDigit(X)&&X!==46){A.err="SvgPath: param should start with 0..9 or `.` (at pos "+C+")";return}if(X!==46){if(I=X===48,C++,X=C<R?A.path.charCodeAt(C):0,I&&C<R&&X&&isDigit(X)){A.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+E+")";return}for(;C<R&&isDigit(A.path.charCodeAt(C));)C++,B=!0;X=C<R?A.path.charCodeAt(C):0}if(X===46){for(V=!0,C++;isDigit(A.path.charCodeAt(C));)C++,U=!0;X=C<R?A.path.charCodeAt(C):0}if(X===101||X===69){if(V&&!B&&!U){A.err="SvgPath: invalid float exponent (at pos "+C+")";return}if(C++,X=C<R?A.path.charCodeAt(C):0,(X===43||X===45)&&C++,C<R&&isDigit(A.path.charCodeAt(C)))for(;C<R&&isDigit(A.path.charCodeAt(C));)C++;else{A.err="SvgPath: invalid float exponent (at pos "+C+")";return}}A.index=C,A.param=parseFloat(A.path.slice(E,C))+0}function finalizeSegment(A){var E,C;E=A.path[A.segmentStart],C=E.toLowerCase();var R=A.data;if(C==="m"&&R.length>2&&(A.result.push([E,R[0],R[1]]),R=R.slice(2),C="l",E=E==="m"?"l":"L"),C==="r")A.result.push([E].concat(R));else for(;R.length>=paramCounts[C]&&(A.result.push([E].concat(R.splice(0,paramCounts[C]))),!!paramCounts[C]););}function scanSegment(A){var E=A.max,C,R,I,B,U;if(A.segmentStart=A.index,C=A.path.charCodeAt(A.index),R=isArc(C),!isCommand(C)){A.err="SvgPath: bad command "+A.path[A.index]+" (at pos "+A.index+")";return}if(B=paramCounts[A.path[A.index].toLowerCase()],A.index++,skipSpaces(A),A.data=[],!B){finalizeSegment(A);return}for(I=!1;;){for(U=B;U>0;U--){if(R&&(U===3||U===4)?scanFlag(A):scanParam(A),A.err.length){finalizeSegment(A);return}A.data.push(A.param),skipSpaces(A),I=!1,A.index<E&&A.path.charCodeAt(A.index)===44&&(A.index++,skipSpaces(A),I=!0)}if(!I&&(A.index>=A.max||!isDigitStart(A.path.charCodeAt(A.index))))break}finalizeSegment(A)}var path_parse=function(E){var C=new State(E),R=C.max;for(skipSpaces(C);C.index<R&&!C.err.length;)scanSegment(C);return C.result.length&&("mM".indexOf(C.result[0][0])<0?(C.err="SvgPath: string should start with `M` or `m`",C.result=[]):C.result[0][0]="M"),{err:C.err,segments:C.result}};function combine(A,E){return[A[0]*E[0]+A[2]*E[1],A[1]*E[0]+A[3]*E[1],A[0]*E[2]+A[2]*E[3],A[1]*E[2]+A[3]*E[3],A[0]*E[4]+A[2]*E[5]+A[4],A[1]*E[4]+A[3]*E[5]+A[5]]}function Matrix$1(){if(!(this instanceof Matrix$1))return new Matrix$1;this.queue=[],this.cache=null}Matrix$1.prototype.matrix=function(A){return A[0]===1&&A[1]===0&&A[2]===0&&A[3]===1&&A[4]===0&&A[5]===0?this:(this.cache=null,this.queue.push(A),this)},Matrix$1.prototype.translate=function(A,E){return(A!==0||E!==0)&&(this.cache=null,this.queue.push([1,0,0,1,A,E])),this},Matrix$1.prototype.scale=function(A,E){return(A!==1||E!==1)&&(this.cache=null,this.queue.push([A,0,0,E,0,0])),this},Matrix$1.prototype.rotate=function(A,E,C){var R,I,B;return A!==0&&(this.translate(E,C),R=A*Math.PI/180,I=Math.cos(R),B=Math.sin(R),this.queue.push([I,B,-B,I,0,0]),this.cache=null,this.translate(-E,-C)),this},Matrix$1.prototype.skewX=function(A){return A!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(A*Math.PI/180),1,0,0])),this},Matrix$1.prototype.skewY=function(A){return A!==0&&(this.cache=null,this.queue.push([1,Math.tan(A*Math.PI/180),0,1,0,0])),this},Matrix$1.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var A=1;A<this.queue.length;A++)this.cache=combine(this.cache,this.queue[A]);return this.cache},Matrix$1.prototype.calc=function(A,E,C){var R;return this.queue.length?(this.cache||(this.cache=this.toArray()),R=this.cache,[A*R[0]+E*R[2]+(C?0:R[4]),A*R[1]+E*R[3]+(C?0:R[5])]):[A,E]};var matrix$1=Matrix$1,Matrix=matrix$1,operations={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},CMD_SPLIT_RE=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,PARAMS_SPLIT_RE=/[\s,]+/,transform_parse=function(E){var C=new Matrix,R,I;return E.split(CMD_SPLIT_RE).forEach(function(B){if(B.length){if(typeof operations[B]<"u"){R=B;return}switch(I=B.split(PARAMS_SPLIT_RE).map(function(U){return+U||0}),R){case"matrix":I.length===6&&C.matrix(I);return;case"scale":I.length===1?C.scale(I[0],I[0]):I.length===2&&C.scale(I[0],I[1]);return;case"rotate":I.length===1?C.rotate(I[0],0,0):I.length===3&&C.rotate(I[0],I[1],I[2]);return;case"translate":I.length===1?C.translate(I[0],0):I.length===2&&C.translate(I[0],I[1]);return;case"skewX":I.length===1&&C.skewX(I[0]);return;case"skewY":I.length===1&&C.skewY(I[0]);return}}}),C},TAU$1=Math.PI*2;function unit_vector_angle(A,E,C,R){var I=A*R-E*C<0?-1:1,B=A*C+E*R;return B>1&&(B=1),B<-1&&(B=-1),I*Math.acos(B)}function get_arc_center(A,E,C,R,I,B,U,V,X,K){var J=K*(A-C)/2+X*(E-R)/2,Y=-X*(A-C)/2+K*(E-R)/2,Z=U*U,_e=V*V,xe=J*J,Se=Y*Y,Pe=Z*_e-Z*Se-_e*xe;Pe<0&&(Pe=0),Pe/=Z*Se+_e*xe,Pe=Math.sqrt(Pe)*(I===B?-1:1);var Ee=Pe*U/V*Y,Ae=Pe*-V/U*J,Te=K*Ee-X*Ae+(A+C)/2,we=X*Ee+K*Ae+(E+R)/2,Ie=(J-Ee)/U,Fe=(Y-Ae)/V,ke=(-J-Ee)/U,Le=(-Y-Ae)/V,Ge=unit_vector_angle(1,0,Ie,Fe),Ue=unit_vector_angle(Ie,Fe,ke,Le);return B===0&&Ue>0&&(Ue-=TAU$1),B===1&&Ue<0&&(Ue+=TAU$1),[Te,we,Ge,Ue]}function approximate_unit_arc(A,E){var C=1.3333333333333333*Math.tan(E/4),R=Math.cos(A),I=Math.sin(A),B=Math.cos(A+E),U=Math.sin(A+E);return[R,I,R-I*C,I+R*C,B+U*C,U-B*C,B,U]}var a2c$1=function(E,C,R,I,B,U,V,X,K){var J=Math.sin(K*TAU$1/360),Y=Math.cos(K*TAU$1/360),Z=Y*(E-R)/2+J*(C-I)/2,_e=-J*(E-R)/2+Y*(C-I)/2;if(Z===0&&_e===0)return[];if(V===0||X===0)return[];V=Math.abs(V),X=Math.abs(X);var xe=Z*Z/(V*V)+_e*_e/(X*X);xe>1&&(V*=Math.sqrt(xe),X*=Math.sqrt(xe));var Se=get_arc_center(E,C,R,I,B,U,V,X,J,Y),Pe=[],Ee=Se[2],Ae=Se[3],Te=Math.max(Math.ceil(Math.abs(Ae)/(TAU$1/4)),1);Ae/=Te;for(var we=0;we<Te;we++)Pe.push(approximate_unit_arc(Ee,Ae)),Ee+=Ae;return Pe.map(function(Ie){for(var Fe=0;Fe<Ie.length;Fe+=2){var ke=Ie[Fe+0],Le=Ie[Fe+1];ke*=V,Le*=X;var Ge=Y*ke-J*Le,Ue=J*ke+Y*Le;Ie[Fe+0]=Ge+Se[0],Ie[Fe+1]=Ue+Se[1]}return Ie})},epsilon=1e-10,torad=Math.PI/180;function Ellipse(A,E,C){if(!(this instanceof Ellipse))return new Ellipse(A,E,C);this.rx=A,this.ry=E,this.ax=C}Ellipse.prototype.transform=function(A){var E=Math.cos(this.ax*torad),C=Math.sin(this.ax*torad),R=[this.rx*(A[0]*E+A[2]*C),this.rx*(A[1]*E+A[3]*C),this.ry*(-A[0]*C+A[2]*E),this.ry*(-A[1]*C+A[3]*E)],I=R[0]*R[0]+R[2]*R[2],B=R[1]*R[1]+R[3]*R[3],U=((R[0]-R[3])*(R[0]-R[3])+(R[2]+R[1])*(R[2]+R[1]))*((R[0]+R[3])*(R[0]+R[3])+(R[2]-R[1])*(R[2]-R[1])),V=(I+B)/2;if(U<epsilon*V)return this.rx=this.ry=Math.sqrt(V),this.ax=0,this;var X=R[0]*R[1]+R[2]*R[3];U=Math.sqrt(U);var K=V+U/2,J=V-U/2;return this.ax=Math.abs(X)<epsilon&&Math.abs(K-B)<epsilon?90:Math.atan(Math.abs(X)>Math.abs(K-B)?(K-I)/X:X/(K-B))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(K),this.ry=Math.sqrt(J)):(this.ax+=90,this.rx=Math.sqrt(J),this.ry=Math.sqrt(K)),this},Ellipse.prototype.isDegenerate=function(){return this.rx<epsilon*this.ry||this.ry<epsilon*this.rx};var ellipse$1=Ellipse,pathParse=path_parse,transformParse=transform_parse,matrix=matrix$1,a2c=a2c$1,ellipse=ellipse$1;function SvgPath(A){if(!(this instanceof SvgPath))return new SvgPath(A);var E=pathParse(A);this.segments=E.segments,this.err=E.err,this.__stack=[]}SvgPath.from=function(A){if(typeof A=="string")return new SvgPath(A);if(A instanceof SvgPath){var E=new SvgPath("");return E.err=A.err,E.segments=A.segments.map(function(C){return C.slice()}),E.__stack=A.__stack.map(function(C){return matrix().matrix(C.toArray())}),E}throw new Error("SvgPath.from: invalid param type "+A)},SvgPath.prototype.__matrix=function(A){var E=this,C;A.queue.length&&this.iterate(function(R,I,B,U){var V,X,K,J;switch(R[0]){case"v":V=A.calc(0,R[1],!0),X=V[0]===0?["v",V[1]]:["l",V[0],V[1]];break;case"V":V=A.calc(B,R[1],!1),X=V[0]===A.calc(B,U,!1)[0]?["V",V[1]]:["L",V[0],V[1]];break;case"h":V=A.calc(R[1],0,!0),X=V[1]===0?["h",V[0]]:["l",V[0],V[1]];break;case"H":V=A.calc(R[1],U,!1),X=V[1]===A.calc(B,U,!1)[1]?["H",V[0]]:["L",V[0],V[1]];break;case"a":case"A":var Y=A.toArray(),Z=ellipse(R[1],R[2],R[3]).transform(Y);if(Y[0]*Y[3]-Y[1]*Y[2]<0&&(R[5]=R[5]?"0":"1"),V=A.calc(R[6],R[7],R[0]==="a"),R[0]==="A"&&R[6]===B&&R[7]===U||R[0]==="a"&&R[6]===0&&R[7]===0){X=[R[0]==="a"?"l":"L",V[0],V[1]];break}Z.isDegenerate()?X=[R[0]==="a"?"l":"L",V[0],V[1]]:X=[R[0],Z.rx,Z.ry,Z.ax,R[4],R[5],V[0],V[1]];break;case"m":J=I>0,V=A.calc(R[1],R[2],J),X=["m",V[0],V[1]];break;default:for(K=R[0],X=[K],J=K.toLowerCase()===K,C=1;C<R.length;C+=2)V=A.calc(R[C],R[C+1],J),X.push(V[0],V[1])}E.segments[I]=X},!0)},SvgPath.prototype.__evaluateStack=function(){var A,E;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(A=matrix(),E=this.__stack.length;--E>=0;)A.matrix(this.__stack[E].toArray());this.__matrix(A),this.__stack=[]}},SvgPath.prototype.toString=function(){var A="",E="",C=!1;this.__evaluateStack();for(var R=0,I=this.segments.length;R<I;R++){var B=this.segments[R],U=B[0];U!==E||U==="m"||U==="M"?(U==="m"&&E==="z"&&(A+=" "),A+=U,C=!1):C=!0;for(var V=1;V<B.length;V++){var X=B[V];V===1?C&&X>=0&&(A+=" "):X>=0&&(A+=" "),A+=X}E=U}return A},SvgPath.prototype.translate=function(A,E){return this.__stack.push(matrix().translate(A,E||0)),this},SvgPath.prototype.scale=function(A,E){return this.__stack.push(matrix().scale(A,!E&&E!==0?A:E)),this},SvgPath.prototype.rotate=function(A,E,C){return this.__stack.push(matrix().rotate(A,E||0,C||0)),this},SvgPath.prototype.skewX=function(A){return this.__stack.push(matrix().skewX(A)),this},SvgPath.prototype.skewY=function(A){return this.__stack.push(matrix().skewY(A)),this},SvgPath.prototype.matrix=function(A){return this.__stack.push(matrix().matrix(A)),this},SvgPath.prototype.transform=function(A){return A.trim()?(this.__stack.push(transformParse(A)),this):this},SvgPath.prototype.round=function(A){var E=0,C=0,R=0,I=0,B;return A=A||0,this.__evaluateStack(),this.segments.forEach(function(U){var V=U[0].toLowerCase()===U[0];switch(U[0]){case"H":case"h":V&&(U[1]+=R),R=U[1]-U[1].toFixed(A),U[1]=+U[1].toFixed(A);return;case"V":case"v":V&&(U[1]+=I),I=U[1]-U[1].toFixed(A),U[1]=+U[1].toFixed(A);return;case"Z":case"z":R=E,I=C;return;case"M":case"m":V&&(U[1]+=R,U[2]+=I),R=U[1]-U[1].toFixed(A),I=U[2]-U[2].toFixed(A),E=R,C=I,U[1]=+U[1].toFixed(A),U[2]=+U[2].toFixed(A);return;case"A":case"a":V&&(U[6]+=R,U[7]+=I),R=U[6]-U[6].toFixed(A),I=U[7]-U[7].toFixed(A),U[1]=+U[1].toFixed(A),U[2]=+U[2].toFixed(A),U[3]=+U[3].toFixed(A+2),U[6]=+U[6].toFixed(A),U[7]=+U[7].toFixed(A);return;default:B=U.length,V&&(U[B-2]+=R,U[B-1]+=I),R=U[B-2]-U[B-2].toFixed(A),I=U[B-1]-U[B-1].toFixed(A),U.forEach(function(X,K){K&&(U[K]=+U[K].toFixed(A))});return}}),this},SvgPath.prototype.iterate=function(A,E){var C=this.segments,R={},I=!1,B=0,U=0,V=0,X=0,K,J,Y;if(E||this.__evaluateStack(),C.forEach(function(Z,_e){var xe=A(Z,_e,B,U);Array.isArray(xe)&&(R[_e]=xe,I=!0);var Se=Z[0]===Z[0].toLowerCase();switch(Z[0]){case"m":case"M":B=Z[1]+(Se?B:0),U=Z[2]+(Se?U:0),V=B,X=U;return;case"h":case"H":B=Z[1]+(Se?B:0);return;case"v":case"V":U=Z[1]+(Se?U:0);return;case"z":case"Z":B=V,U=X;return;default:B=Z[Z.length-2]+(Se?B:0),U=Z[Z.length-1]+(Se?U:0)}}),!I)return this;for(Y=[],K=0;K<C.length;K++)if(typeof R[K]<"u")for(J=0;J<R[K].length;J++)Y.push(R[K][J]);else Y.push(C[K]);return this.segments=Y,this},SvgPath.prototype.abs=function(){return this.iterate(function(A,E,C,R){var I=A[0],B=I.toUpperCase(),U;if(I!==B)switch(A[0]=B,I){case"v":A[1]+=R;return;case"a":A[6]+=C,A[7]+=R;return;default:for(U=1;U<A.length;U++)A[U]+=U%2?C:R}},!0),this},SvgPath.prototype.rel=function(){return this.iterate(function(A,E,C,R){var I=A[0],B=I.toLowerCase(),U;if(I!==B&&!(E===0&&I==="M"))switch(A[0]=B,I){case"V":A[1]-=R;return;case"A":A[6]-=C,A[7]-=R;return;default:for(U=1;U<A.length;U++)A[U]-=U%2?C:R}},!0),this},SvgPath.prototype.unarc=function(){return this.iterate(function(A,E,C,R){var I,B,U,V=[],X=A[0];return X!=="A"&&X!=="a"?null:(X==="a"?(B=C+A[6],U=R+A[7]):(B=A[6],U=A[7]),I=a2c(C,R,B,U,A[4],A[5],A[1],A[2],A[3]),I.length===0?[[A[0]==="a"?"l":"L",A[6],A[7]]]:(I.forEach(function(K){V.push(["C",K[2],K[3],K[4],K[5],K[6],K[7]])}),V))}),this},SvgPath.prototype.unshort=function(){var A=this.segments,E,C,R,I,B;return this.iterate(function(U,V,X,K){var J=U[0],Y=J.toUpperCase(),Z;V&&(Y==="T"?(Z=J==="t",R=A[V-1],R[0]==="Q"?(E=R[1]-X,C=R[2]-K):R[0]==="q"?(E=R[1]-R[3],C=R[2]-R[4]):(E=0,C=0),I=-E,B=-C,Z||(I+=X,B+=K),A[V]=[Z?"q":"Q",I,B,U[1],U[2]]):Y==="S"&&(Z=J==="s",R=A[V-1],R[0]==="C"?(E=R[3]-X,C=R[4]-K):R[0]==="c"?(E=R[3]-R[5],C=R[4]-R[6]):(E=0,C=0),I=-E,B=-C,Z||(I+=X,B+=K),A[V]=[Z?"c":"C",I,B,U[1],U[2],U[3],U[4]]))}),this};var svgpath$2=SvgPath,svgpath=svgpath$2;const svgpath$1=getDefaultExportFromCjs(svgpath),PixiSvgPathSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(null),I=React.useRef(null),B=React.useRef(null),U=React.useRef(null),{path:V,visible:X,disabled:K,transformation:{x:J,y:Y,width:Z,height:_e,anchor:xe,hexColor:Se,fill:Pe,stroke:Ee="none",strokeWidth:Ae=0,colorCorrection:Te={}},pointerdown:we,pointerup:Ie}=A,Fe=react.useApp(),{temperatureFilter:ke,sharpnessFilter:Le,hslFilter:Ge,blurFilter:Ue,adjustmentFilter:Be,vignetteFilter:je,noiseFilter:Ve}=withFiltersHook(Te),{blurRadius:ze=0,vignette:He=0,noise:Oe=0}=Te;return React__namespace.useEffect(()=>{const $e=svgpath$1(V).scale(5).translate(0,0).toString(),Re=`<svg xmlns="http://www.w3.org/2000/svg" width="${Z}" height="${_e}">
1976
1939
  <path stroke="${Ee}" stroke-width="${Ae}" fill="${Se||Pe}" d="${$e}">
1977
1940
  </path>
1978
- </svg>`,Me=new SVG(Re),Ne=Fe.renderer.generateTexture(Me);return R(Ne),()=>{}},[Fe,V,Ee,Ae,Se,Pe]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,children:jsxRuntimeExports.jsx(react.Container,{ref:B,children:jsxRuntimeExports.jsx(react.Container,{ref:U,children:C&&jsxRuntimeExports.jsx(react.Sprite,{texture:C,width:Z,height:_e,anchor:xe,ref:I,x:J,y:Y,alpha:X?1:0,...!K&&X&&{interactive:!0,pointerdown:we,pointerup:Ie},filters:[ke,Le,Ge,Be,...ze>0?[He]:[],...Ve>0?[je]:[],...Oe>0?[Ue]:[]]})})})})});var howler={};/*!
1941
+ </svg>`,Me=new SVG(Re),Ne=Fe.renderer.generateTexture(Me);return R(Ne),()=>{}},[Fe,V,Ee,Ae,Se,Pe]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,children:jsxRuntimeExports.jsx(react.Container,{ref:B,children:jsxRuntimeExports.jsx(react.Container,{ref:U,children:C&&jsxRuntimeExports.jsx(react.Sprite,{texture:C,width:Z,height:_e,anchor:xe,ref:I,x:J,y:Y,alpha:X?1:0,...!K&&X&&{interactive:!0,pointerdown:we,pointerup:Ie},filters:[ke,Le,Ge,Be,...ze>0?[Ue]:[],...He>0?[je]:[],...Oe>0?[Ve]:[]]})})})})});var howler={};/*!
1979
1942
  * howler.js v2.2.4
1980
1943
  * howlerjs.com
1981
1944
  *
@@ -1983,7 +1946,7 @@ void main() {
1983
1946
  * goldfirestudios.com
1984
1947
  *
1985
1948
  * MIT License
1986
- */(function(A){(function(){var E=function(){this.init()};E.prototype={init:function(){var Y=this||C;return Y._counter=1e3,Y._html5AudioPool=[],Y.html5PoolSize=10,Y._codecs={},Y._howls=[],Y._muted=!1,Y._volume=1,Y._canPlayEvent="canplaythrough",Y._navigator=typeof window<"u"&&window.navigator?window.navigator:null,Y.masterGain=null,Y.noAudio=!1,Y.usingWebAudio=!0,Y.autoSuspend=!0,Y.ctx=null,Y.autoUnlock=!0,Y._setup(),Y},volume:function(Y){var Z=this||C;if(Y=parseFloat(Y),Z.ctx||J(),typeof Y<"u"&&Y>=0&&Y<=1){if(Z._volume=Y,Z._muted)return Z;Z.usingWebAudio&&Z.masterGain.gain.setValueAtTime(Y,C.ctx.currentTime);for(var _e=0;_e<Z._howls.length;_e++)if(!Z._howls[_e]._webAudio)for(var xe=Z._howls[_e]._getSoundIds(),Se=0;Se<xe.length;Se++){var Pe=Z._howls[_e]._soundById(xe[Se]);Pe&&Pe._node&&(Pe._node.volume=Pe._volume*Y)}return Z}return Z._volume},mute:function(Y){var Z=this||C;Z.ctx||J(),Z._muted=Y,Z.usingWebAudio&&Z.masterGain.gain.setValueAtTime(Y?0:Z._volume,C.ctx.currentTime);for(var _e=0;_e<Z._howls.length;_e++)if(!Z._howls[_e]._webAudio)for(var xe=Z._howls[_e]._getSoundIds(),Se=0;Se<xe.length;Se++){var Pe=Z._howls[_e]._soundById(xe[Se]);Pe&&Pe._node&&(Pe._node.muted=Y?!0:Pe._muted)}return Z},stop:function(){for(var Y=this||C,Z=0;Z<Y._howls.length;Z++)Y._howls[Z].stop();return Y},unload:function(){for(var Y=this||C,Z=Y._howls.length-1;Z>=0;Z--)Y._howls[Z].unload();return Y.usingWebAudio&&Y.ctx&&typeof Y.ctx.close<"u"&&(Y.ctx.close(),Y.ctx=null,J()),Y},codecs:function(Y){return(this||C)._codecs[Y.replace(/^x-/,"")]},_setup:function(){var Y=this||C;if(Y.state=Y.ctx&&Y.ctx.state||"suspended",Y._autoSuspend(),!Y.usingWebAudio)if(typeof Audio<"u")try{var Z=new Audio;typeof Z.oncanplaythrough>"u"&&(Y._canPlayEvent="canplay")}catch{Y.noAudio=!0}else Y.noAudio=!0;try{var Z=new Audio;Z.muted&&(Y.noAudio=!0)}catch{}return Y.noAudio||Y._setupCodecs(),Y},_setupCodecs:function(){var Y=this||C,Z=null;try{Z=typeof Audio<"u"?new Audio:null}catch{return Y}if(!Z||typeof Z.canPlayType!="function")return Y;var _e=Z.canPlayType("audio/mpeg;").replace(/^no$/,""),xe=Y._navigator?Y._navigator.userAgent:"",Se=xe.match(/OPR\/(\d+)/g),Pe=Se&&parseInt(Se[0].split("/")[1],10)<33,Ee=xe.indexOf("Safari")!==-1&&xe.indexOf("Chrome")===-1,Ae=xe.match(/Version\/(.*?) /),Te=Ee&&Ae&&parseInt(Ae[1],10)<15;return Y._codecs={mp3:!!(!Pe&&(_e||Z.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!_e,opus:!!Z.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!Z.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!Z.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(Z.canPlayType('audio/wav; codecs="1"')||Z.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!Z.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!Z.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(Z.canPlayType("audio/x-m4a;")||Z.canPlayType("audio/m4a;")||Z.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(Z.canPlayType("audio/x-m4b;")||Z.canPlayType("audio/m4b;")||Z.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(Z.canPlayType("audio/x-mp4;")||Z.canPlayType("audio/mp4;")||Z.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!Te&&Z.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!Te&&Z.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!Z.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(Z.canPlayType("audio/x-flac;")||Z.canPlayType("audio/flac;")).replace(/^no$/,"")},Y},_unlockAudio:function(){var Y=this||C;if(!(Y._audioUnlocked||!Y.ctx)){Y._audioUnlocked=!1,Y.autoUnlock=!1,!Y._mobileUnloaded&&Y.ctx.sampleRate!==44100&&(Y._mobileUnloaded=!0,Y.unload()),Y._scratchBuffer=Y.ctx.createBuffer(1,1,22050);var Z=function(_e){for(;Y._html5AudioPool.length<Y.html5PoolSize;)try{var xe=new Audio;xe._unlocked=!0,Y._releaseHtml5Audio(xe)}catch{Y.noAudio=!0;break}for(var Se=0;Se<Y._howls.length;Se++)if(!Y._howls[Se]._webAudio)for(var Pe=Y._howls[Se]._getSoundIds(),Ee=0;Ee<Pe.length;Ee++){var Ae=Y._howls[Se]._soundById(Pe[Ee]);Ae&&Ae._node&&!Ae._node._unlocked&&(Ae._node._unlocked=!0,Ae._node.load())}Y._autoResume();var Te=Y.ctx.createBufferSource();Te.buffer=Y._scratchBuffer,Te.connect(Y.ctx.destination),typeof Te.start>"u"?Te.noteOn(0):Te.start(0),typeof Y.ctx.resume=="function"&&Y.ctx.resume(),Te.onended=function(){Te.disconnect(0),Y._audioUnlocked=!0,document.removeEventListener("touchstart",Z,!0),document.removeEventListener("touchend",Z,!0),document.removeEventListener("click",Z,!0),document.removeEventListener("keydown",Z,!0);for(var we=0;we<Y._howls.length;we++)Y._howls[we]._emit("unlock")}};return document.addEventListener("touchstart",Z,!0),document.addEventListener("touchend",Z,!0),document.addEventListener("click",Z,!0),document.addEventListener("keydown",Z,!0),Y}},_obtainHtml5Audio:function(){var Y=this||C;if(Y._html5AudioPool.length)return Y._html5AudioPool.pop();var Z=new Audio().play();return Z&&typeof Promise<"u"&&(Z instanceof Promise||typeof Z.then=="function")&&Z.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(Y){var Z=this||C;return Y._unlocked&&Z._html5AudioPool.push(Y),Z},_autoSuspend:function(){var Y=this;if(!(!Y.autoSuspend||!Y.ctx||typeof Y.ctx.suspend>"u"||!C.usingWebAudio)){for(var Z=0;Z<Y._howls.length;Z++)if(Y._howls[Z]._webAudio){for(var _e=0;_e<Y._howls[Z]._sounds.length;_e++)if(!Y._howls[Z]._sounds[_e]._paused)return Y}return Y._suspendTimer&&clearTimeout(Y._suspendTimer),Y._suspendTimer=setTimeout(function(){if(Y.autoSuspend){Y._suspendTimer=null,Y.state="suspending";var xe=function(){Y.state="suspended",Y._resumeAfterSuspend&&(delete Y._resumeAfterSuspend,Y._autoResume())};Y.ctx.suspend().then(xe,xe)}},3e4),Y}},_autoResume:function(){var Y=this;if(!(!Y.ctx||typeof Y.ctx.resume>"u"||!C.usingWebAudio))return Y.state==="running"&&Y.ctx.state!=="interrupted"&&Y._suspendTimer?(clearTimeout(Y._suspendTimer),Y._suspendTimer=null):Y.state==="suspended"||Y.state==="running"&&Y.ctx.state==="interrupted"?(Y.ctx.resume().then(function(){Y.state="running";for(var Z=0;Z<Y._howls.length;Z++)Y._howls[Z]._emit("resume")}),Y._suspendTimer&&(clearTimeout(Y._suspendTimer),Y._suspendTimer=null)):Y.state==="suspending"&&(Y._resumeAfterSuspend=!0),Y}};var C=new E,R=function(Y){var Z=this;if(!Y.src||Y.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}Z.init(Y)};R.prototype={init:function(Y){var Z=this;return C.ctx||J(),Z._autoplay=Y.autoplay||!1,Z._format=typeof Y.format!="string"?Y.format:[Y.format],Z._html5=Y.html5||!1,Z._muted=Y.mute||!1,Z._loop=Y.loop||!1,Z._pool=Y.pool||5,Z._preload=typeof Y.preload=="boolean"||Y.preload==="metadata"?Y.preload:!0,Z._rate=Y.rate||1,Z._sprite=Y.sprite||{},Z._src=typeof Y.src!="string"?Y.src:[Y.src],Z._volume=Y.volume!==void 0?Y.volume:1,Z._xhr={method:Y.xhr&&Y.xhr.method?Y.xhr.method:"GET",headers:Y.xhr&&Y.xhr.headers?Y.xhr.headers:null,withCredentials:Y.xhr&&Y.xhr.withCredentials?Y.xhr.withCredentials:!1},Z._duration=0,Z._state="unloaded",Z._sounds=[],Z._endTimers={},Z._queue=[],Z._playLock=!1,Z._onend=Y.onend?[{fn:Y.onend}]:[],Z._onfade=Y.onfade?[{fn:Y.onfade}]:[],Z._onload=Y.onload?[{fn:Y.onload}]:[],Z._onloaderror=Y.onloaderror?[{fn:Y.onloaderror}]:[],Z._onplayerror=Y.onplayerror?[{fn:Y.onplayerror}]:[],Z._onpause=Y.onpause?[{fn:Y.onpause}]:[],Z._onplay=Y.onplay?[{fn:Y.onplay}]:[],Z._onstop=Y.onstop?[{fn:Y.onstop}]:[],Z._onmute=Y.onmute?[{fn:Y.onmute}]:[],Z._onvolume=Y.onvolume?[{fn:Y.onvolume}]:[],Z._onrate=Y.onrate?[{fn:Y.onrate}]:[],Z._onseek=Y.onseek?[{fn:Y.onseek}]:[],Z._onunlock=Y.onunlock?[{fn:Y.onunlock}]:[],Z._onresume=[],Z._webAudio=C.usingWebAudio&&!Z._html5,typeof C.ctx<"u"&&C.ctx&&C.autoUnlock&&C._unlockAudio(),C._howls.push(Z),Z._autoplay&&Z._queue.push({event:"play",action:function(){Z.play()}}),Z._preload&&Z._preload!=="none"&&Z.load(),Z},load:function(){var Y=this,Z=null;if(C.noAudio){Y._emit("loaderror",null,"No audio support.");return}typeof Y._src=="string"&&(Y._src=[Y._src]);for(var _e=0;_e<Y._src.length;_e++){var xe,Se;if(Y._format&&Y._format[_e])xe=Y._format[_e];else{if(Se=Y._src[_e],typeof Se!="string"){Y._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}xe=/^data:audio\/([^;,]+);/i.exec(Se),xe||(xe=/\.([^.]+)$/.exec(Se.split("?",1)[0])),xe&&(xe=xe[1].toLowerCase())}if(xe||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),xe&&C.codecs(xe)){Z=Y._src[_e];break}}if(!Z){Y._emit("loaderror",null,"No codec support for selected audio sources.");return}return Y._src=Z,Y._state="loading",window.location.protocol==="https:"&&Z.slice(0,5)==="http:"&&(Y._html5=!0,Y._webAudio=!1),new I(Y),Y._webAudio&&U(Y),Y},play:function(Y,Z){var _e=this,xe=null;if(typeof Y=="number")xe=Y,Y=null;else{if(typeof Y=="string"&&_e._state==="loaded"&&!_e._sprite[Y])return null;if(typeof Y>"u"&&(Y="__default",!_e._playLock)){for(var Se=0,Pe=0;Pe<_e._sounds.length;Pe++)_e._sounds[Pe]._paused&&!_e._sounds[Pe]._ended&&(Se++,xe=_e._sounds[Pe]._id);Se===1?Y=null:xe=null}}var Ee=xe?_e._soundById(xe):_e._inactiveSound();if(!Ee)return null;if(xe&&!Y&&(Y=Ee._sprite||"__default"),_e._state!=="loaded"){Ee._sprite=Y,Ee._ended=!1;var Ae=Ee._id;return _e._queue.push({event:"play",action:function(){_e.play(Ae)}}),Ae}if(xe&&!Ee._paused)return Z||_e._loadQueue("play"),Ee._id;_e._webAudio&&C._autoResume();var Te=Math.max(0,Ee._seek>0?Ee._seek:_e._sprite[Y][0]/1e3),we=Math.max(0,(_e._sprite[Y][0]+_e._sprite[Y][1])/1e3-Te),Ie=we*1e3/Math.abs(Ee._rate),Fe=_e._sprite[Y][0]/1e3,ke=(_e._sprite[Y][0]+_e._sprite[Y][1])/1e3;Ee._sprite=Y,Ee._ended=!1;var Le=function(){Ee._paused=!1,Ee._seek=Te,Ee._start=Fe,Ee._stop=ke,Ee._loop=!!(Ee._loop||_e._sprite[Y][2])};if(Te>=ke){_e._ended(Ee);return}var Ge=Ee._node;if(_e._webAudio){var He=function(){_e._playLock=!1,Le(),_e._refreshBuffer(Ee);var ze=Ee._muted||_e._muted?0:Ee._volume;Ge.gain.setValueAtTime(ze,C.ctx.currentTime),Ee._playStart=C.ctx.currentTime,typeof Ge.bufferSource.start>"u"?Ee._loop?Ge.bufferSource.noteGrainOn(0,Te,86400):Ge.bufferSource.noteGrainOn(0,Te,we):Ee._loop?Ge.bufferSource.start(0,Te,86400):Ge.bufferSource.start(0,Te,we),Ie!==1/0&&(_e._endTimers[Ee._id]=setTimeout(_e._ended.bind(_e,Ee),Ie)),Z||setTimeout(function(){_e._emit("play",Ee._id),_e._loadQueue()},0)};C.state==="running"&&C.ctx.state!=="interrupted"?He():(_e._playLock=!0,_e.once("resume",He),_e._clearTimer(Ee._id))}else{var Be=function(){Ge.currentTime=Te,Ge.muted=Ee._muted||_e._muted||C._muted||Ge.muted,Ge.volume=Ee._volume*C.volume(),Ge.playbackRate=Ee._rate;try{var ze=Ge.play();if(ze&&typeof Promise<"u"&&(ze instanceof Promise||typeof ze.then=="function")?(_e._playLock=!0,Le(),ze.then(function(){_e._playLock=!1,Ge._unlocked=!0,Z?_e._loadQueue():_e._emit("play",Ee._id)}).catch(function(){_e._playLock=!1,_e._emit("playerror",Ee._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),Ee._ended=!0,Ee._paused=!0})):Z||(_e._playLock=!1,Le(),_e._emit("play",Ee._id)),Ge.playbackRate=Ee._rate,Ge.paused){_e._emit("playerror",Ee._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}Y!=="__default"||Ee._loop?_e._endTimers[Ee._id]=setTimeout(_e._ended.bind(_e,Ee),Ie):(_e._endTimers[Ee._id]=function(){_e._ended(Ee),Ge.removeEventListener("ended",_e._endTimers[Ee._id],!1)},Ge.addEventListener("ended",_e._endTimers[Ee._id],!1))}catch(Ve){_e._emit("playerror",Ee._id,Ve)}};Ge.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(Ge.src=_e._src,Ge.load());var je=window&&window.ejecta||!Ge.readyState&&C._navigator.isCocoonJS;if(Ge.readyState>=3||je)Be();else{_e._playLock=!0,_e._state="loading";var Ue=function(){_e._state="loaded",Be(),Ge.removeEventListener(C._canPlayEvent,Ue,!1)};Ge.addEventListener(C._canPlayEvent,Ue,!1),_e._clearTimer(Ee._id)}}return Ee._id},pause:function(Y){var Z=this;if(Z._state!=="loaded"||Z._playLock)return Z._queue.push({event:"pause",action:function(){Z.pause(Y)}}),Z;for(var _e=Z._getSoundIds(Y),xe=0;xe<_e.length;xe++){Z._clearTimer(_e[xe]);var Se=Z._soundById(_e[xe]);if(Se&&!Se._paused&&(Se._seek=Z.seek(_e[xe]),Se._rateSeek=0,Se._paused=!0,Z._stopFade(_e[xe]),Se._node))if(Z._webAudio){if(!Se._node.bufferSource)continue;typeof Se._node.bufferSource.stop>"u"?Se._node.bufferSource.noteOff(0):Se._node.bufferSource.stop(0),Z._cleanBuffer(Se._node)}else(!isNaN(Se._node.duration)||Se._node.duration===1/0)&&Se._node.pause();arguments[1]||Z._emit("pause",Se?Se._id:null)}return Z},stop:function(Y,Z){var _e=this;if(_e._state!=="loaded"||_e._playLock)return _e._queue.push({event:"stop",action:function(){_e.stop(Y)}}),_e;for(var xe=_e._getSoundIds(Y),Se=0;Se<xe.length;Se++){_e._clearTimer(xe[Se]);var Pe=_e._soundById(xe[Se]);Pe&&(Pe._seek=Pe._start||0,Pe._rateSeek=0,Pe._paused=!0,Pe._ended=!0,_e._stopFade(xe[Se]),Pe._node&&(_e._webAudio?Pe._node.bufferSource&&(typeof Pe._node.bufferSource.stop>"u"?Pe._node.bufferSource.noteOff(0):Pe._node.bufferSource.stop(0),_e._cleanBuffer(Pe._node)):(!isNaN(Pe._node.duration)||Pe._node.duration===1/0)&&(Pe._node.currentTime=Pe._start||0,Pe._node.pause(),Pe._node.duration===1/0&&_e._clearSound(Pe._node))),Z||_e._emit("stop",Pe._id))}return _e},mute:function(Y,Z){var _e=this;if(_e._state!=="loaded"||_e._playLock)return _e._queue.push({event:"mute",action:function(){_e.mute(Y,Z)}}),_e;if(typeof Z>"u")if(typeof Y=="boolean")_e._muted=Y;else return _e._muted;for(var xe=_e._getSoundIds(Z),Se=0;Se<xe.length;Se++){var Pe=_e._soundById(xe[Se]);Pe&&(Pe._muted=Y,Pe._interval&&_e._stopFade(Pe._id),_e._webAudio&&Pe._node?Pe._node.gain.setValueAtTime(Y?0:Pe._volume,C.ctx.currentTime):Pe._node&&(Pe._node.muted=C._muted?!0:Y),_e._emit("mute",Pe._id))}return _e},volume:function(){var Y=this,Z=arguments,_e,xe;if(Z.length===0)return Y._volume;if(Z.length===1||Z.length===2&&typeof Z[1]>"u"){var Se=Y._getSoundIds(),Pe=Se.indexOf(Z[0]);Pe>=0?xe=parseInt(Z[0],10):_e=parseFloat(Z[0])}else Z.length>=2&&(_e=parseFloat(Z[0]),xe=parseInt(Z[1],10));var Ee;if(typeof _e<"u"&&_e>=0&&_e<=1){if(Y._state!=="loaded"||Y._playLock)return Y._queue.push({event:"volume",action:function(){Y.volume.apply(Y,Z)}}),Y;typeof xe>"u"&&(Y._volume=_e),xe=Y._getSoundIds(xe);for(var Ae=0;Ae<xe.length;Ae++)Ee=Y._soundById(xe[Ae]),Ee&&(Ee._volume=_e,Z[2]||Y._stopFade(xe[Ae]),Y._webAudio&&Ee._node&&!Ee._muted?Ee._node.gain.setValueAtTime(_e,C.ctx.currentTime):Ee._node&&!Ee._muted&&(Ee._node.volume=_e*C.volume()),Y._emit("volume",Ee._id))}else return Ee=xe?Y._soundById(xe):Y._sounds[0],Ee?Ee._volume:0;return Y},fade:function(Y,Z,_e,xe){var Se=this;if(Se._state!=="loaded"||Se._playLock)return Se._queue.push({event:"fade",action:function(){Se.fade(Y,Z,_e,xe)}}),Se;Y=Math.min(Math.max(0,parseFloat(Y)),1),Z=Math.min(Math.max(0,parseFloat(Z)),1),_e=parseFloat(_e),Se.volume(Y,xe);for(var Pe=Se._getSoundIds(xe),Ee=0;Ee<Pe.length;Ee++){var Ae=Se._soundById(Pe[Ee]);if(Ae){if(xe||Se._stopFade(Pe[Ee]),Se._webAudio&&!Ae._muted){var Te=C.ctx.currentTime,we=Te+_e/1e3;Ae._volume=Y,Ae._node.gain.setValueAtTime(Y,Te),Ae._node.gain.linearRampToValueAtTime(Z,we)}Se._startFadeInterval(Ae,Y,Z,_e,Pe[Ee],typeof xe>"u")}}return Se},_startFadeInterval:function(Y,Z,_e,xe,Se,Pe){var Ee=this,Ae=Z,Te=_e-Z,we=Math.abs(Te/.01),Ie=Math.max(4,we>0?xe/we:xe),Fe=Date.now();Y._fadeTo=_e,Y._interval=setInterval(function(){var ke=(Date.now()-Fe)/xe;Fe=Date.now(),Ae+=Te*ke,Ae=Math.round(Ae*100)/100,Te<0?Ae=Math.max(_e,Ae):Ae=Math.min(_e,Ae),Ee._webAudio?Y._volume=Ae:Ee.volume(Ae,Y._id,!0),Pe&&(Ee._volume=Ae),(_e<Z&&Ae<=_e||_e>Z&&Ae>=_e)&&(clearInterval(Y._interval),Y._interval=null,Y._fadeTo=null,Ee.volume(_e,Y._id),Ee._emit("fade",Y._id))},Ie)},_stopFade:function(Y){var Z=this,_e=Z._soundById(Y);return _e&&_e._interval&&(Z._webAudio&&_e._node.gain.cancelScheduledValues(C.ctx.currentTime),clearInterval(_e._interval),_e._interval=null,Z.volume(_e._fadeTo,Y),_e._fadeTo=null,Z._emit("fade",Y)),Z},loop:function(){var Y=this,Z=arguments,_e,xe,Se;if(Z.length===0)return Y._loop;if(Z.length===1)if(typeof Z[0]=="boolean")_e=Z[0],Y._loop=_e;else return Se=Y._soundById(parseInt(Z[0],10)),Se?Se._loop:!1;else Z.length===2&&(_e=Z[0],xe=parseInt(Z[1],10));for(var Pe=Y._getSoundIds(xe),Ee=0;Ee<Pe.length;Ee++)Se=Y._soundById(Pe[Ee]),Se&&(Se._loop=_e,Y._webAudio&&Se._node&&Se._node.bufferSource&&(Se._node.bufferSource.loop=_e,_e&&(Se._node.bufferSource.loopStart=Se._start||0,Se._node.bufferSource.loopEnd=Se._stop,Y.playing(Pe[Ee])&&(Y.pause(Pe[Ee],!0),Y.play(Pe[Ee],!0)))));return Y},rate:function(){var Y=this,Z=arguments,_e,xe;if(Z.length===0)xe=Y._sounds[0]._id;else if(Z.length===1){var Se=Y._getSoundIds(),Pe=Se.indexOf(Z[0]);Pe>=0?xe=parseInt(Z[0],10):_e=parseFloat(Z[0])}else Z.length===2&&(_e=parseFloat(Z[0]),xe=parseInt(Z[1],10));var Ee;if(typeof _e=="number"){if(Y._state!=="loaded"||Y._playLock)return Y._queue.push({event:"rate",action:function(){Y.rate.apply(Y,Z)}}),Y;typeof xe>"u"&&(Y._rate=_e),xe=Y._getSoundIds(xe);for(var Ae=0;Ae<xe.length;Ae++)if(Ee=Y._soundById(xe[Ae]),Ee){Y.playing(xe[Ae])&&(Ee._rateSeek=Y.seek(xe[Ae]),Ee._playStart=Y._webAudio?C.ctx.currentTime:Ee._playStart),Ee._rate=_e,Y._webAudio&&Ee._node&&Ee._node.bufferSource?Ee._node.bufferSource.playbackRate.setValueAtTime(_e,C.ctx.currentTime):Ee._node&&(Ee._node.playbackRate=_e);var Te=Y.seek(xe[Ae]),we=(Y._sprite[Ee._sprite][0]+Y._sprite[Ee._sprite][1])/1e3-Te,Ie=we*1e3/Math.abs(Ee._rate);(Y._endTimers[xe[Ae]]||!Ee._paused)&&(Y._clearTimer(xe[Ae]),Y._endTimers[xe[Ae]]=setTimeout(Y._ended.bind(Y,Ee),Ie)),Y._emit("rate",Ee._id)}}else return Ee=Y._soundById(xe),Ee?Ee._rate:Y._rate;return Y},seek:function(){var Y=this,Z=arguments,_e,xe;if(Z.length===0)Y._sounds.length&&(xe=Y._sounds[0]._id);else if(Z.length===1){var Se=Y._getSoundIds(),Pe=Se.indexOf(Z[0]);Pe>=0?xe=parseInt(Z[0],10):Y._sounds.length&&(xe=Y._sounds[0]._id,_e=parseFloat(Z[0]))}else Z.length===2&&(_e=parseFloat(Z[0]),xe=parseInt(Z[1],10));if(typeof xe>"u")return 0;if(typeof _e=="number"&&(Y._state!=="loaded"||Y._playLock))return Y._queue.push({event:"seek",action:function(){Y.seek.apply(Y,Z)}}),Y;var Ee=Y._soundById(xe);if(Ee)if(typeof _e=="number"&&_e>=0){var Ae=Y.playing(xe);Ae&&Y.pause(xe,!0),Ee._seek=_e,Ee._ended=!1,Y._clearTimer(xe),!Y._webAudio&&Ee._node&&!isNaN(Ee._node.duration)&&(Ee._node.currentTime=_e);var Te=function(){Ae&&Y.play(xe,!0),Y._emit("seek",xe)};if(Ae&&!Y._webAudio){var we=function(){Y._playLock?setTimeout(we,0):Te()};setTimeout(we,0)}else Te()}else if(Y._webAudio){var Ie=Y.playing(xe)?C.ctx.currentTime-Ee._playStart:0,Fe=Ee._rateSeek?Ee._rateSeek-Ee._seek:0;return Ee._seek+(Fe+Ie*Math.abs(Ee._rate))}else return Ee._node.currentTime;return Y},playing:function(Y){var Z=this;if(typeof Y=="number"){var _e=Z._soundById(Y);return _e?!_e._paused:!1}for(var xe=0;xe<Z._sounds.length;xe++)if(!Z._sounds[xe]._paused)return!0;return!1},duration:function(Y){var Z=this,_e=Z._duration,xe=Z._soundById(Y);return xe&&(_e=Z._sprite[xe._sprite][1]/1e3),_e},state:function(){return this._state},unload:function(){for(var Y=this,Z=Y._sounds,_e=0;_e<Z.length;_e++)Z[_e]._paused||Y.stop(Z[_e]._id),Y._webAudio||(Y._clearSound(Z[_e]._node),Z[_e]._node.removeEventListener("error",Z[_e]._errorFn,!1),Z[_e]._node.removeEventListener(C._canPlayEvent,Z[_e]._loadFn,!1),Z[_e]._node.removeEventListener("ended",Z[_e]._endFn,!1),C._releaseHtml5Audio(Z[_e]._node)),delete Z[_e]._node,Y._clearTimer(Z[_e]._id);var xe=C._howls.indexOf(Y);xe>=0&&C._howls.splice(xe,1);var Se=!0;for(_e=0;_e<C._howls.length;_e++)if(C._howls[_e]._src===Y._src||Y._src.indexOf(C._howls[_e]._src)>=0){Se=!1;break}return B&&Se&&delete B[Y._src],C.noAudio=!1,Y._state="unloaded",Y._sounds=[],Y=null,null},on:function(Y,Z,_e,xe){var Se=this,Pe=Se["_on"+Y];return typeof Z=="function"&&Pe.push(xe?{id:_e,fn:Z,once:xe}:{id:_e,fn:Z}),Se},off:function(Y,Z,_e){var xe=this,Se=xe["_on"+Y],Pe=0;if(typeof Z=="number"&&(_e=Z,Z=null),Z||_e)for(Pe=0;Pe<Se.length;Pe++){var Ee=_e===Se[Pe].id;if(Z===Se[Pe].fn&&Ee||!Z&&Ee){Se.splice(Pe,1);break}}else if(Y)xe["_on"+Y]=[];else{var Ae=Object.keys(xe);for(Pe=0;Pe<Ae.length;Pe++)Ae[Pe].indexOf("_on")===0&&Array.isArray(xe[Ae[Pe]])&&(xe[Ae[Pe]]=[])}return xe},once:function(Y,Z,_e){var xe=this;return xe.on(Y,Z,_e,1),xe},_emit:function(Y,Z,_e){for(var xe=this,Se=xe["_on"+Y],Pe=Se.length-1;Pe>=0;Pe--)(!Se[Pe].id||Se[Pe].id===Z||Y==="load")&&(setTimeout((function(Ee){Ee.call(this,Z,_e)}).bind(xe,Se[Pe].fn),0),Se[Pe].once&&xe.off(Y,Se[Pe].fn,Se[Pe].id));return xe._loadQueue(Y),xe},_loadQueue:function(Y){var Z=this;if(Z._queue.length>0){var _e=Z._queue[0];_e.event===Y&&(Z._queue.shift(),Z._loadQueue()),Y||_e.action()}return Z},_ended:function(Y){var Z=this,_e=Y._sprite;if(!Z._webAudio&&Y._node&&!Y._node.paused&&!Y._node.ended&&Y._node.currentTime<Y._stop)return setTimeout(Z._ended.bind(Z,Y),100),Z;var xe=!!(Y._loop||Z._sprite[_e][2]);if(Z._emit("end",Y._id),!Z._webAudio&&xe&&Z.stop(Y._id,!0).play(Y._id),Z._webAudio&&xe){Z._emit("play",Y._id),Y._seek=Y._start||0,Y._rateSeek=0,Y._playStart=C.ctx.currentTime;var Se=(Y._stop-Y._start)*1e3/Math.abs(Y._rate);Z._endTimers[Y._id]=setTimeout(Z._ended.bind(Z,Y),Se)}return Z._webAudio&&!xe&&(Y._paused=!0,Y._ended=!0,Y._seek=Y._start||0,Y._rateSeek=0,Z._clearTimer(Y._id),Z._cleanBuffer(Y._node),C._autoSuspend()),!Z._webAudio&&!xe&&Z.stop(Y._id,!0),Z},_clearTimer:function(Y){var Z=this;if(Z._endTimers[Y]){if(typeof Z._endTimers[Y]!="function")clearTimeout(Z._endTimers[Y]);else{var _e=Z._soundById(Y);_e&&_e._node&&_e._node.removeEventListener("ended",Z._endTimers[Y],!1)}delete Z._endTimers[Y]}return Z},_soundById:function(Y){for(var Z=this,_e=0;_e<Z._sounds.length;_e++)if(Y===Z._sounds[_e]._id)return Z._sounds[_e];return null},_inactiveSound:function(){var Y=this;Y._drain();for(var Z=0;Z<Y._sounds.length;Z++)if(Y._sounds[Z]._ended)return Y._sounds[Z].reset();return new I(Y)},_drain:function(){var Y=this,Z=Y._pool,_e=0,xe=0;if(!(Y._sounds.length<Z)){for(xe=0;xe<Y._sounds.length;xe++)Y._sounds[xe]._ended&&_e++;for(xe=Y._sounds.length-1;xe>=0;xe--){if(_e<=Z)return;Y._sounds[xe]._ended&&(Y._webAudio&&Y._sounds[xe]._node&&Y._sounds[xe]._node.disconnect(0),Y._sounds.splice(xe,1),_e--)}}},_getSoundIds:function(Y){var Z=this;if(typeof Y>"u"){for(var _e=[],xe=0;xe<Z._sounds.length;xe++)_e.push(Z._sounds[xe]._id);return _e}else return[Y]},_refreshBuffer:function(Y){var Z=this;return Y._node.bufferSource=C.ctx.createBufferSource(),Y._node.bufferSource.buffer=B[Z._src],Y._panner?Y._node.bufferSource.connect(Y._panner):Y._node.bufferSource.connect(Y._node),Y._node.bufferSource.loop=Y._loop,Y._loop&&(Y._node.bufferSource.loopStart=Y._start||0,Y._node.bufferSource.loopEnd=Y._stop||0),Y._node.bufferSource.playbackRate.setValueAtTime(Y._rate,C.ctx.currentTime),Z},_cleanBuffer:function(Y){var Z=this,_e=C._navigator&&C._navigator.vendor.indexOf("Apple")>=0;if(!Y.bufferSource)return Z;if(C._scratchBuffer&&Y.bufferSource&&(Y.bufferSource.onended=null,Y.bufferSource.disconnect(0),_e))try{Y.bufferSource.buffer=C._scratchBuffer}catch{}return Y.bufferSource=null,Z},_clearSound:function(Y){var Z=/MSIE |Trident\//.test(C._navigator&&C._navigator.userAgent);Z||(Y.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var I=function(Y){this._parent=Y,this.init()};I.prototype={init:function(){var Y=this,Z=Y._parent;return Y._muted=Z._muted,Y._loop=Z._loop,Y._volume=Z._volume,Y._rate=Z._rate,Y._seek=0,Y._paused=!0,Y._ended=!0,Y._sprite="__default",Y._id=++C._counter,Z._sounds.push(Y),Y.create(),Y},create:function(){var Y=this,Z=Y._parent,_e=C._muted||Y._muted||Y._parent._muted?0:Y._volume;return Z._webAudio?(Y._node=typeof C.ctx.createGain>"u"?C.ctx.createGainNode():C.ctx.createGain(),Y._node.gain.setValueAtTime(_e,C.ctx.currentTime),Y._node.paused=!0,Y._node.connect(C.masterGain)):C.noAudio||(Y._node=C._obtainHtml5Audio(),Y._errorFn=Y._errorListener.bind(Y),Y._node.addEventListener("error",Y._errorFn,!1),Y._loadFn=Y._loadListener.bind(Y),Y._node.addEventListener(C._canPlayEvent,Y._loadFn,!1),Y._endFn=Y._endListener.bind(Y),Y._node.addEventListener("ended",Y._endFn,!1),Y._node.src=Z._src,Y._node.preload=Z._preload===!0?"auto":Z._preload,Y._node.volume=_e*C.volume(),Y._node.load()),Y},reset:function(){var Y=this,Z=Y._parent;return Y._muted=Z._muted,Y._loop=Z._loop,Y._volume=Z._volume,Y._rate=Z._rate,Y._seek=0,Y._rateSeek=0,Y._paused=!0,Y._ended=!0,Y._sprite="__default",Y._id=++C._counter,Y},_errorListener:function(){var Y=this;Y._parent._emit("loaderror",Y._id,Y._node.error?Y._node.error.code:0),Y._node.removeEventListener("error",Y._errorFn,!1)},_loadListener:function(){var Y=this,Z=Y._parent;Z._duration=Math.ceil(Y._node.duration*10)/10,Object.keys(Z._sprite).length===0&&(Z._sprite={__default:[0,Z._duration*1e3]}),Z._state!=="loaded"&&(Z._state="loaded",Z._emit("load"),Z._loadQueue()),Y._node.removeEventListener(C._canPlayEvent,Y._loadFn,!1)},_endListener:function(){var Y=this,Z=Y._parent;Z._duration===1/0&&(Z._duration=Math.ceil(Y._node.duration*10)/10,Z._sprite.__default[1]===1/0&&(Z._sprite.__default[1]=Z._duration*1e3),Z._ended(Y)),Y._node.removeEventListener("ended",Y._endFn,!1)}};var B={},U=function(Y){var Z=Y._src;if(B[Z]){Y._duration=B[Z].duration,K(Y);return}if(/^data:[^;]+;base64,/.test(Z)){for(var _e=atob(Z.split(",")[1]),xe=new Uint8Array(_e.length),Se=0;Se<_e.length;++Se)xe[Se]=_e.charCodeAt(Se);X(xe.buffer,Y)}else{var Pe=new XMLHttpRequest;Pe.open(Y._xhr.method,Z,!0),Pe.withCredentials=Y._xhr.withCredentials,Pe.responseType="arraybuffer",Y._xhr.headers&&Object.keys(Y._xhr.headers).forEach(function(Ee){Pe.setRequestHeader(Ee,Y._xhr.headers[Ee])}),Pe.onload=function(){var Ee=(Pe.status+"")[0];if(Ee!=="0"&&Ee!=="2"&&Ee!=="3"){Y._emit("loaderror",null,"Failed loading audio file with status: "+Pe.status+".");return}X(Pe.response,Y)},Pe.onerror=function(){Y._webAudio&&(Y._html5=!0,Y._webAudio=!1,Y._sounds=[],delete B[Z],Y.load())},V(Pe)}},V=function(Y){try{Y.send()}catch{Y.onerror()}},X=function(Y,Z){var _e=function(){Z._emit("loaderror",null,"Decoding audio data failed.")},xe=function(Se){Se&&Z._sounds.length>0?(B[Z._src]=Se,K(Z,Se)):_e()};typeof Promise<"u"&&C.ctx.decodeAudioData.length===1?C.ctx.decodeAudioData(Y).then(xe).catch(_e):C.ctx.decodeAudioData(Y,xe,_e)},K=function(Y,Z){Z&&!Y._duration&&(Y._duration=Z.duration),Object.keys(Y._sprite).length===0&&(Y._sprite={__default:[0,Y._duration*1e3]}),Y._state!=="loaded"&&(Y._state="loaded",Y._emit("load"),Y._loadQueue())},J=function(){if(C.usingWebAudio){try{typeof AudioContext<"u"?C.ctx=new AudioContext:typeof webkitAudioContext<"u"?C.ctx=new webkitAudioContext:C.usingWebAudio=!1}catch{C.usingWebAudio=!1}C.ctx||(C.usingWebAudio=!1);var Y=/iP(hone|od|ad)/.test(C._navigator&&C._navigator.platform),Z=C._navigator&&C._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),_e=Z?parseInt(Z[1],10):null;if(Y&&_e&&_e<9){var xe=/safari/.test(C._navigator&&C._navigator.userAgent.toLowerCase());C._navigator&&!xe&&(C.usingWebAudio=!1)}C.usingWebAudio&&(C.masterGain=typeof C.ctx.createGain>"u"?C.ctx.createGainNode():C.ctx.createGain(),C.masterGain.gain.setValueAtTime(C._muted?0:C._volume,C.ctx.currentTime),C.masterGain.connect(C.ctx.destination)),C._setup()}};A.Howler=C,A.Howl=R,typeof commonjsGlobal$1<"u"?(commonjsGlobal$1.HowlerGlobal=E,commonjsGlobal$1.Howler=C,commonjsGlobal$1.Howl=R,commonjsGlobal$1.Sound=I):typeof window<"u"&&(window.HowlerGlobal=E,window.Howler=C,window.Howl=R,window.Sound=I)})();/*!
1949
+ */(function(A){(function(){var E=function(){this.init()};E.prototype={init:function(){var Y=this||C;return Y._counter=1e3,Y._html5AudioPool=[],Y.html5PoolSize=10,Y._codecs={},Y._howls=[],Y._muted=!1,Y._volume=1,Y._canPlayEvent="canplaythrough",Y._navigator=typeof window<"u"&&window.navigator?window.navigator:null,Y.masterGain=null,Y.noAudio=!1,Y.usingWebAudio=!0,Y.autoSuspend=!0,Y.ctx=null,Y.autoUnlock=!0,Y._setup(),Y},volume:function(Y){var Z=this||C;if(Y=parseFloat(Y),Z.ctx||J(),typeof Y<"u"&&Y>=0&&Y<=1){if(Z._volume=Y,Z._muted)return Z;Z.usingWebAudio&&Z.masterGain.gain.setValueAtTime(Y,C.ctx.currentTime);for(var _e=0;_e<Z._howls.length;_e++)if(!Z._howls[_e]._webAudio)for(var xe=Z._howls[_e]._getSoundIds(),Se=0;Se<xe.length;Se++){var Pe=Z._howls[_e]._soundById(xe[Se]);Pe&&Pe._node&&(Pe._node.volume=Pe._volume*Y)}return Z}return Z._volume},mute:function(Y){var Z=this||C;Z.ctx||J(),Z._muted=Y,Z.usingWebAudio&&Z.masterGain.gain.setValueAtTime(Y?0:Z._volume,C.ctx.currentTime);for(var _e=0;_e<Z._howls.length;_e++)if(!Z._howls[_e]._webAudio)for(var xe=Z._howls[_e]._getSoundIds(),Se=0;Se<xe.length;Se++){var Pe=Z._howls[_e]._soundById(xe[Se]);Pe&&Pe._node&&(Pe._node.muted=Y?!0:Pe._muted)}return Z},stop:function(){for(var Y=this||C,Z=0;Z<Y._howls.length;Z++)Y._howls[Z].stop();return Y},unload:function(){for(var Y=this||C,Z=Y._howls.length-1;Z>=0;Z--)Y._howls[Z].unload();return Y.usingWebAudio&&Y.ctx&&typeof Y.ctx.close<"u"&&(Y.ctx.close(),Y.ctx=null,J()),Y},codecs:function(Y){return(this||C)._codecs[Y.replace(/^x-/,"")]},_setup:function(){var Y=this||C;if(Y.state=Y.ctx&&Y.ctx.state||"suspended",Y._autoSuspend(),!Y.usingWebAudio)if(typeof Audio<"u")try{var Z=new Audio;typeof Z.oncanplaythrough>"u"&&(Y._canPlayEvent="canplay")}catch{Y.noAudio=!0}else Y.noAudio=!0;try{var Z=new Audio;Z.muted&&(Y.noAudio=!0)}catch{}return Y.noAudio||Y._setupCodecs(),Y},_setupCodecs:function(){var Y=this||C,Z=null;try{Z=typeof Audio<"u"?new Audio:null}catch{return Y}if(!Z||typeof Z.canPlayType!="function")return Y;var _e=Z.canPlayType("audio/mpeg;").replace(/^no$/,""),xe=Y._navigator?Y._navigator.userAgent:"",Se=xe.match(/OPR\/(\d+)/g),Pe=Se&&parseInt(Se[0].split("/")[1],10)<33,Ee=xe.indexOf("Safari")!==-1&&xe.indexOf("Chrome")===-1,Ae=xe.match(/Version\/(.*?) /),Te=Ee&&Ae&&parseInt(Ae[1],10)<15;return Y._codecs={mp3:!!(!Pe&&(_e||Z.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!_e,opus:!!Z.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!Z.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!Z.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(Z.canPlayType('audio/wav; codecs="1"')||Z.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!Z.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!Z.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(Z.canPlayType("audio/x-m4a;")||Z.canPlayType("audio/m4a;")||Z.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(Z.canPlayType("audio/x-m4b;")||Z.canPlayType("audio/m4b;")||Z.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(Z.canPlayType("audio/x-mp4;")||Z.canPlayType("audio/mp4;")||Z.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!Te&&Z.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!Te&&Z.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!Z.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(Z.canPlayType("audio/x-flac;")||Z.canPlayType("audio/flac;")).replace(/^no$/,"")},Y},_unlockAudio:function(){var Y=this||C;if(!(Y._audioUnlocked||!Y.ctx)){Y._audioUnlocked=!1,Y.autoUnlock=!1,!Y._mobileUnloaded&&Y.ctx.sampleRate!==44100&&(Y._mobileUnloaded=!0,Y.unload()),Y._scratchBuffer=Y.ctx.createBuffer(1,1,22050);var Z=function(_e){for(;Y._html5AudioPool.length<Y.html5PoolSize;)try{var xe=new Audio;xe._unlocked=!0,Y._releaseHtml5Audio(xe)}catch{Y.noAudio=!0;break}for(var Se=0;Se<Y._howls.length;Se++)if(!Y._howls[Se]._webAudio)for(var Pe=Y._howls[Se]._getSoundIds(),Ee=0;Ee<Pe.length;Ee++){var Ae=Y._howls[Se]._soundById(Pe[Ee]);Ae&&Ae._node&&!Ae._node._unlocked&&(Ae._node._unlocked=!0,Ae._node.load())}Y._autoResume();var Te=Y.ctx.createBufferSource();Te.buffer=Y._scratchBuffer,Te.connect(Y.ctx.destination),typeof Te.start>"u"?Te.noteOn(0):Te.start(0),typeof Y.ctx.resume=="function"&&Y.ctx.resume(),Te.onended=function(){Te.disconnect(0),Y._audioUnlocked=!0,document.removeEventListener("touchstart",Z,!0),document.removeEventListener("touchend",Z,!0),document.removeEventListener("click",Z,!0),document.removeEventListener("keydown",Z,!0);for(var we=0;we<Y._howls.length;we++)Y._howls[we]._emit("unlock")}};return document.addEventListener("touchstart",Z,!0),document.addEventListener("touchend",Z,!0),document.addEventListener("click",Z,!0),document.addEventListener("keydown",Z,!0),Y}},_obtainHtml5Audio:function(){var Y=this||C;if(Y._html5AudioPool.length)return Y._html5AudioPool.pop();var Z=new Audio().play();return Z&&typeof Promise<"u"&&(Z instanceof Promise||typeof Z.then=="function")&&Z.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(Y){var Z=this||C;return Y._unlocked&&Z._html5AudioPool.push(Y),Z},_autoSuspend:function(){var Y=this;if(!(!Y.autoSuspend||!Y.ctx||typeof Y.ctx.suspend>"u"||!C.usingWebAudio)){for(var Z=0;Z<Y._howls.length;Z++)if(Y._howls[Z]._webAudio){for(var _e=0;_e<Y._howls[Z]._sounds.length;_e++)if(!Y._howls[Z]._sounds[_e]._paused)return Y}return Y._suspendTimer&&clearTimeout(Y._suspendTimer),Y._suspendTimer=setTimeout(function(){if(Y.autoSuspend){Y._suspendTimer=null,Y.state="suspending";var xe=function(){Y.state="suspended",Y._resumeAfterSuspend&&(delete Y._resumeAfterSuspend,Y._autoResume())};Y.ctx.suspend().then(xe,xe)}},3e4),Y}},_autoResume:function(){var Y=this;if(!(!Y.ctx||typeof Y.ctx.resume>"u"||!C.usingWebAudio))return Y.state==="running"&&Y.ctx.state!=="interrupted"&&Y._suspendTimer?(clearTimeout(Y._suspendTimer),Y._suspendTimer=null):Y.state==="suspended"||Y.state==="running"&&Y.ctx.state==="interrupted"?(Y.ctx.resume().then(function(){Y.state="running";for(var Z=0;Z<Y._howls.length;Z++)Y._howls[Z]._emit("resume")}),Y._suspendTimer&&(clearTimeout(Y._suspendTimer),Y._suspendTimer=null)):Y.state==="suspending"&&(Y._resumeAfterSuspend=!0),Y}};var C=new E,R=function(Y){var Z=this;if(!Y.src||Y.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}Z.init(Y)};R.prototype={init:function(Y){var Z=this;return C.ctx||J(),Z._autoplay=Y.autoplay||!1,Z._format=typeof Y.format!="string"?Y.format:[Y.format],Z._html5=Y.html5||!1,Z._muted=Y.mute||!1,Z._loop=Y.loop||!1,Z._pool=Y.pool||5,Z._preload=typeof Y.preload=="boolean"||Y.preload==="metadata"?Y.preload:!0,Z._rate=Y.rate||1,Z._sprite=Y.sprite||{},Z._src=typeof Y.src!="string"?Y.src:[Y.src],Z._volume=Y.volume!==void 0?Y.volume:1,Z._xhr={method:Y.xhr&&Y.xhr.method?Y.xhr.method:"GET",headers:Y.xhr&&Y.xhr.headers?Y.xhr.headers:null,withCredentials:Y.xhr&&Y.xhr.withCredentials?Y.xhr.withCredentials:!1},Z._duration=0,Z._state="unloaded",Z._sounds=[],Z._endTimers={},Z._queue=[],Z._playLock=!1,Z._onend=Y.onend?[{fn:Y.onend}]:[],Z._onfade=Y.onfade?[{fn:Y.onfade}]:[],Z._onload=Y.onload?[{fn:Y.onload}]:[],Z._onloaderror=Y.onloaderror?[{fn:Y.onloaderror}]:[],Z._onplayerror=Y.onplayerror?[{fn:Y.onplayerror}]:[],Z._onpause=Y.onpause?[{fn:Y.onpause}]:[],Z._onplay=Y.onplay?[{fn:Y.onplay}]:[],Z._onstop=Y.onstop?[{fn:Y.onstop}]:[],Z._onmute=Y.onmute?[{fn:Y.onmute}]:[],Z._onvolume=Y.onvolume?[{fn:Y.onvolume}]:[],Z._onrate=Y.onrate?[{fn:Y.onrate}]:[],Z._onseek=Y.onseek?[{fn:Y.onseek}]:[],Z._onunlock=Y.onunlock?[{fn:Y.onunlock}]:[],Z._onresume=[],Z._webAudio=C.usingWebAudio&&!Z._html5,typeof C.ctx<"u"&&C.ctx&&C.autoUnlock&&C._unlockAudio(),C._howls.push(Z),Z._autoplay&&Z._queue.push({event:"play",action:function(){Z.play()}}),Z._preload&&Z._preload!=="none"&&Z.load(),Z},load:function(){var Y=this,Z=null;if(C.noAudio){Y._emit("loaderror",null,"No audio support.");return}typeof Y._src=="string"&&(Y._src=[Y._src]);for(var _e=0;_e<Y._src.length;_e++){var xe,Se;if(Y._format&&Y._format[_e])xe=Y._format[_e];else{if(Se=Y._src[_e],typeof Se!="string"){Y._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}xe=/^data:audio\/([^;,]+);/i.exec(Se),xe||(xe=/\.([^.]+)$/.exec(Se.split("?",1)[0])),xe&&(xe=xe[1].toLowerCase())}if(xe||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),xe&&C.codecs(xe)){Z=Y._src[_e];break}}if(!Z){Y._emit("loaderror",null,"No codec support for selected audio sources.");return}return Y._src=Z,Y._state="loading",window.location.protocol==="https:"&&Z.slice(0,5)==="http:"&&(Y._html5=!0,Y._webAudio=!1),new I(Y),Y._webAudio&&U(Y),Y},play:function(Y,Z){var _e=this,xe=null;if(typeof Y=="number")xe=Y,Y=null;else{if(typeof Y=="string"&&_e._state==="loaded"&&!_e._sprite[Y])return null;if(typeof Y>"u"&&(Y="__default",!_e._playLock)){for(var Se=0,Pe=0;Pe<_e._sounds.length;Pe++)_e._sounds[Pe]._paused&&!_e._sounds[Pe]._ended&&(Se++,xe=_e._sounds[Pe]._id);Se===1?Y=null:xe=null}}var Ee=xe?_e._soundById(xe):_e._inactiveSound();if(!Ee)return null;if(xe&&!Y&&(Y=Ee._sprite||"__default"),_e._state!=="loaded"){Ee._sprite=Y,Ee._ended=!1;var Ae=Ee._id;return _e._queue.push({event:"play",action:function(){_e.play(Ae)}}),Ae}if(xe&&!Ee._paused)return Z||_e._loadQueue("play"),Ee._id;_e._webAudio&&C._autoResume();var Te=Math.max(0,Ee._seek>0?Ee._seek:_e._sprite[Y][0]/1e3),we=Math.max(0,(_e._sprite[Y][0]+_e._sprite[Y][1])/1e3-Te),Ie=we*1e3/Math.abs(Ee._rate),Fe=_e._sprite[Y][0]/1e3,ke=(_e._sprite[Y][0]+_e._sprite[Y][1])/1e3;Ee._sprite=Y,Ee._ended=!1;var Le=function(){Ee._paused=!1,Ee._seek=Te,Ee._start=Fe,Ee._stop=ke,Ee._loop=!!(Ee._loop||_e._sprite[Y][2])};if(Te>=ke){_e._ended(Ee);return}var Ge=Ee._node;if(_e._webAudio){var Ue=function(){_e._playLock=!1,Le(),_e._refreshBuffer(Ee);var ze=Ee._muted||_e._muted?0:Ee._volume;Ge.gain.setValueAtTime(ze,C.ctx.currentTime),Ee._playStart=C.ctx.currentTime,typeof Ge.bufferSource.start>"u"?Ee._loop?Ge.bufferSource.noteGrainOn(0,Te,86400):Ge.bufferSource.noteGrainOn(0,Te,we):Ee._loop?Ge.bufferSource.start(0,Te,86400):Ge.bufferSource.start(0,Te,we),Ie!==1/0&&(_e._endTimers[Ee._id]=setTimeout(_e._ended.bind(_e,Ee),Ie)),Z||setTimeout(function(){_e._emit("play",Ee._id),_e._loadQueue()},0)};C.state==="running"&&C.ctx.state!=="interrupted"?Ue():(_e._playLock=!0,_e.once("resume",Ue),_e._clearTimer(Ee._id))}else{var Be=function(){Ge.currentTime=Te,Ge.muted=Ee._muted||_e._muted||C._muted||Ge.muted,Ge.volume=Ee._volume*C.volume(),Ge.playbackRate=Ee._rate;try{var ze=Ge.play();if(ze&&typeof Promise<"u"&&(ze instanceof Promise||typeof ze.then=="function")?(_e._playLock=!0,Le(),ze.then(function(){_e._playLock=!1,Ge._unlocked=!0,Z?_e._loadQueue():_e._emit("play",Ee._id)}).catch(function(){_e._playLock=!1,_e._emit("playerror",Ee._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),Ee._ended=!0,Ee._paused=!0})):Z||(_e._playLock=!1,Le(),_e._emit("play",Ee._id)),Ge.playbackRate=Ee._rate,Ge.paused){_e._emit("playerror",Ee._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}Y!=="__default"||Ee._loop?_e._endTimers[Ee._id]=setTimeout(_e._ended.bind(_e,Ee),Ie):(_e._endTimers[Ee._id]=function(){_e._ended(Ee),Ge.removeEventListener("ended",_e._endTimers[Ee._id],!1)},Ge.addEventListener("ended",_e._endTimers[Ee._id],!1))}catch(He){_e._emit("playerror",Ee._id,He)}};Ge.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(Ge.src=_e._src,Ge.load());var je=window&&window.ejecta||!Ge.readyState&&C._navigator.isCocoonJS;if(Ge.readyState>=3||je)Be();else{_e._playLock=!0,_e._state="loading";var Ve=function(){_e._state="loaded",Be(),Ge.removeEventListener(C._canPlayEvent,Ve,!1)};Ge.addEventListener(C._canPlayEvent,Ve,!1),_e._clearTimer(Ee._id)}}return Ee._id},pause:function(Y){var Z=this;if(Z._state!=="loaded"||Z._playLock)return Z._queue.push({event:"pause",action:function(){Z.pause(Y)}}),Z;for(var _e=Z._getSoundIds(Y),xe=0;xe<_e.length;xe++){Z._clearTimer(_e[xe]);var Se=Z._soundById(_e[xe]);if(Se&&!Se._paused&&(Se._seek=Z.seek(_e[xe]),Se._rateSeek=0,Se._paused=!0,Z._stopFade(_e[xe]),Se._node))if(Z._webAudio){if(!Se._node.bufferSource)continue;typeof Se._node.bufferSource.stop>"u"?Se._node.bufferSource.noteOff(0):Se._node.bufferSource.stop(0),Z._cleanBuffer(Se._node)}else(!isNaN(Se._node.duration)||Se._node.duration===1/0)&&Se._node.pause();arguments[1]||Z._emit("pause",Se?Se._id:null)}return Z},stop:function(Y,Z){var _e=this;if(_e._state!=="loaded"||_e._playLock)return _e._queue.push({event:"stop",action:function(){_e.stop(Y)}}),_e;for(var xe=_e._getSoundIds(Y),Se=0;Se<xe.length;Se++){_e._clearTimer(xe[Se]);var Pe=_e._soundById(xe[Se]);Pe&&(Pe._seek=Pe._start||0,Pe._rateSeek=0,Pe._paused=!0,Pe._ended=!0,_e._stopFade(xe[Se]),Pe._node&&(_e._webAudio?Pe._node.bufferSource&&(typeof Pe._node.bufferSource.stop>"u"?Pe._node.bufferSource.noteOff(0):Pe._node.bufferSource.stop(0),_e._cleanBuffer(Pe._node)):(!isNaN(Pe._node.duration)||Pe._node.duration===1/0)&&(Pe._node.currentTime=Pe._start||0,Pe._node.pause(),Pe._node.duration===1/0&&_e._clearSound(Pe._node))),Z||_e._emit("stop",Pe._id))}return _e},mute:function(Y,Z){var _e=this;if(_e._state!=="loaded"||_e._playLock)return _e._queue.push({event:"mute",action:function(){_e.mute(Y,Z)}}),_e;if(typeof Z>"u")if(typeof Y=="boolean")_e._muted=Y;else return _e._muted;for(var xe=_e._getSoundIds(Z),Se=0;Se<xe.length;Se++){var Pe=_e._soundById(xe[Se]);Pe&&(Pe._muted=Y,Pe._interval&&_e._stopFade(Pe._id),_e._webAudio&&Pe._node?Pe._node.gain.setValueAtTime(Y?0:Pe._volume,C.ctx.currentTime):Pe._node&&(Pe._node.muted=C._muted?!0:Y),_e._emit("mute",Pe._id))}return _e},volume:function(){var Y=this,Z=arguments,_e,xe;if(Z.length===0)return Y._volume;if(Z.length===1||Z.length===2&&typeof Z[1]>"u"){var Se=Y._getSoundIds(),Pe=Se.indexOf(Z[0]);Pe>=0?xe=parseInt(Z[0],10):_e=parseFloat(Z[0])}else Z.length>=2&&(_e=parseFloat(Z[0]),xe=parseInt(Z[1],10));var Ee;if(typeof _e<"u"&&_e>=0&&_e<=1){if(Y._state!=="loaded"||Y._playLock)return Y._queue.push({event:"volume",action:function(){Y.volume.apply(Y,Z)}}),Y;typeof xe>"u"&&(Y._volume=_e),xe=Y._getSoundIds(xe);for(var Ae=0;Ae<xe.length;Ae++)Ee=Y._soundById(xe[Ae]),Ee&&(Ee._volume=_e,Z[2]||Y._stopFade(xe[Ae]),Y._webAudio&&Ee._node&&!Ee._muted?Ee._node.gain.setValueAtTime(_e,C.ctx.currentTime):Ee._node&&!Ee._muted&&(Ee._node.volume=_e*C.volume()),Y._emit("volume",Ee._id))}else return Ee=xe?Y._soundById(xe):Y._sounds[0],Ee?Ee._volume:0;return Y},fade:function(Y,Z,_e,xe){var Se=this;if(Se._state!=="loaded"||Se._playLock)return Se._queue.push({event:"fade",action:function(){Se.fade(Y,Z,_e,xe)}}),Se;Y=Math.min(Math.max(0,parseFloat(Y)),1),Z=Math.min(Math.max(0,parseFloat(Z)),1),_e=parseFloat(_e),Se.volume(Y,xe);for(var Pe=Se._getSoundIds(xe),Ee=0;Ee<Pe.length;Ee++){var Ae=Se._soundById(Pe[Ee]);if(Ae){if(xe||Se._stopFade(Pe[Ee]),Se._webAudio&&!Ae._muted){var Te=C.ctx.currentTime,we=Te+_e/1e3;Ae._volume=Y,Ae._node.gain.setValueAtTime(Y,Te),Ae._node.gain.linearRampToValueAtTime(Z,we)}Se._startFadeInterval(Ae,Y,Z,_e,Pe[Ee],typeof xe>"u")}}return Se},_startFadeInterval:function(Y,Z,_e,xe,Se,Pe){var Ee=this,Ae=Z,Te=_e-Z,we=Math.abs(Te/.01),Ie=Math.max(4,we>0?xe/we:xe),Fe=Date.now();Y._fadeTo=_e,Y._interval=setInterval(function(){var ke=(Date.now()-Fe)/xe;Fe=Date.now(),Ae+=Te*ke,Ae=Math.round(Ae*100)/100,Te<0?Ae=Math.max(_e,Ae):Ae=Math.min(_e,Ae),Ee._webAudio?Y._volume=Ae:Ee.volume(Ae,Y._id,!0),Pe&&(Ee._volume=Ae),(_e<Z&&Ae<=_e||_e>Z&&Ae>=_e)&&(clearInterval(Y._interval),Y._interval=null,Y._fadeTo=null,Ee.volume(_e,Y._id),Ee._emit("fade",Y._id))},Ie)},_stopFade:function(Y){var Z=this,_e=Z._soundById(Y);return _e&&_e._interval&&(Z._webAudio&&_e._node.gain.cancelScheduledValues(C.ctx.currentTime),clearInterval(_e._interval),_e._interval=null,Z.volume(_e._fadeTo,Y),_e._fadeTo=null,Z._emit("fade",Y)),Z},loop:function(){var Y=this,Z=arguments,_e,xe,Se;if(Z.length===0)return Y._loop;if(Z.length===1)if(typeof Z[0]=="boolean")_e=Z[0],Y._loop=_e;else return Se=Y._soundById(parseInt(Z[0],10)),Se?Se._loop:!1;else Z.length===2&&(_e=Z[0],xe=parseInt(Z[1],10));for(var Pe=Y._getSoundIds(xe),Ee=0;Ee<Pe.length;Ee++)Se=Y._soundById(Pe[Ee]),Se&&(Se._loop=_e,Y._webAudio&&Se._node&&Se._node.bufferSource&&(Se._node.bufferSource.loop=_e,_e&&(Se._node.bufferSource.loopStart=Se._start||0,Se._node.bufferSource.loopEnd=Se._stop,Y.playing(Pe[Ee])&&(Y.pause(Pe[Ee],!0),Y.play(Pe[Ee],!0)))));return Y},rate:function(){var Y=this,Z=arguments,_e,xe;if(Z.length===0)xe=Y._sounds[0]._id;else if(Z.length===1){var Se=Y._getSoundIds(),Pe=Se.indexOf(Z[0]);Pe>=0?xe=parseInt(Z[0],10):_e=parseFloat(Z[0])}else Z.length===2&&(_e=parseFloat(Z[0]),xe=parseInt(Z[1],10));var Ee;if(typeof _e=="number"){if(Y._state!=="loaded"||Y._playLock)return Y._queue.push({event:"rate",action:function(){Y.rate.apply(Y,Z)}}),Y;typeof xe>"u"&&(Y._rate=_e),xe=Y._getSoundIds(xe);for(var Ae=0;Ae<xe.length;Ae++)if(Ee=Y._soundById(xe[Ae]),Ee){Y.playing(xe[Ae])&&(Ee._rateSeek=Y.seek(xe[Ae]),Ee._playStart=Y._webAudio?C.ctx.currentTime:Ee._playStart),Ee._rate=_e,Y._webAudio&&Ee._node&&Ee._node.bufferSource?Ee._node.bufferSource.playbackRate.setValueAtTime(_e,C.ctx.currentTime):Ee._node&&(Ee._node.playbackRate=_e);var Te=Y.seek(xe[Ae]),we=(Y._sprite[Ee._sprite][0]+Y._sprite[Ee._sprite][1])/1e3-Te,Ie=we*1e3/Math.abs(Ee._rate);(Y._endTimers[xe[Ae]]||!Ee._paused)&&(Y._clearTimer(xe[Ae]),Y._endTimers[xe[Ae]]=setTimeout(Y._ended.bind(Y,Ee),Ie)),Y._emit("rate",Ee._id)}}else return Ee=Y._soundById(xe),Ee?Ee._rate:Y._rate;return Y},seek:function(){var Y=this,Z=arguments,_e,xe;if(Z.length===0)Y._sounds.length&&(xe=Y._sounds[0]._id);else if(Z.length===1){var Se=Y._getSoundIds(),Pe=Se.indexOf(Z[0]);Pe>=0?xe=parseInt(Z[0],10):Y._sounds.length&&(xe=Y._sounds[0]._id,_e=parseFloat(Z[0]))}else Z.length===2&&(_e=parseFloat(Z[0]),xe=parseInt(Z[1],10));if(typeof xe>"u")return 0;if(typeof _e=="number"&&(Y._state!=="loaded"||Y._playLock))return Y._queue.push({event:"seek",action:function(){Y.seek.apply(Y,Z)}}),Y;var Ee=Y._soundById(xe);if(Ee)if(typeof _e=="number"&&_e>=0){var Ae=Y.playing(xe);Ae&&Y.pause(xe,!0),Ee._seek=_e,Ee._ended=!1,Y._clearTimer(xe),!Y._webAudio&&Ee._node&&!isNaN(Ee._node.duration)&&(Ee._node.currentTime=_e);var Te=function(){Ae&&Y.play(xe,!0),Y._emit("seek",xe)};if(Ae&&!Y._webAudio){var we=function(){Y._playLock?setTimeout(we,0):Te()};setTimeout(we,0)}else Te()}else if(Y._webAudio){var Ie=Y.playing(xe)?C.ctx.currentTime-Ee._playStart:0,Fe=Ee._rateSeek?Ee._rateSeek-Ee._seek:0;return Ee._seek+(Fe+Ie*Math.abs(Ee._rate))}else return Ee._node.currentTime;return Y},playing:function(Y){var Z=this;if(typeof Y=="number"){var _e=Z._soundById(Y);return _e?!_e._paused:!1}for(var xe=0;xe<Z._sounds.length;xe++)if(!Z._sounds[xe]._paused)return!0;return!1},duration:function(Y){var Z=this,_e=Z._duration,xe=Z._soundById(Y);return xe&&(_e=Z._sprite[xe._sprite][1]/1e3),_e},state:function(){return this._state},unload:function(){for(var Y=this,Z=Y._sounds,_e=0;_e<Z.length;_e++)Z[_e]._paused||Y.stop(Z[_e]._id),Y._webAudio||(Y._clearSound(Z[_e]._node),Z[_e]._node.removeEventListener("error",Z[_e]._errorFn,!1),Z[_e]._node.removeEventListener(C._canPlayEvent,Z[_e]._loadFn,!1),Z[_e]._node.removeEventListener("ended",Z[_e]._endFn,!1),C._releaseHtml5Audio(Z[_e]._node)),delete Z[_e]._node,Y._clearTimer(Z[_e]._id);var xe=C._howls.indexOf(Y);xe>=0&&C._howls.splice(xe,1);var Se=!0;for(_e=0;_e<C._howls.length;_e++)if(C._howls[_e]._src===Y._src||Y._src.indexOf(C._howls[_e]._src)>=0){Se=!1;break}return B&&Se&&delete B[Y._src],C.noAudio=!1,Y._state="unloaded",Y._sounds=[],Y=null,null},on:function(Y,Z,_e,xe){var Se=this,Pe=Se["_on"+Y];return typeof Z=="function"&&Pe.push(xe?{id:_e,fn:Z,once:xe}:{id:_e,fn:Z}),Se},off:function(Y,Z,_e){var xe=this,Se=xe["_on"+Y],Pe=0;if(typeof Z=="number"&&(_e=Z,Z=null),Z||_e)for(Pe=0;Pe<Se.length;Pe++){var Ee=_e===Se[Pe].id;if(Z===Se[Pe].fn&&Ee||!Z&&Ee){Se.splice(Pe,1);break}}else if(Y)xe["_on"+Y]=[];else{var Ae=Object.keys(xe);for(Pe=0;Pe<Ae.length;Pe++)Ae[Pe].indexOf("_on")===0&&Array.isArray(xe[Ae[Pe]])&&(xe[Ae[Pe]]=[])}return xe},once:function(Y,Z,_e){var xe=this;return xe.on(Y,Z,_e,1),xe},_emit:function(Y,Z,_e){for(var xe=this,Se=xe["_on"+Y],Pe=Se.length-1;Pe>=0;Pe--)(!Se[Pe].id||Se[Pe].id===Z||Y==="load")&&(setTimeout((function(Ee){Ee.call(this,Z,_e)}).bind(xe,Se[Pe].fn),0),Se[Pe].once&&xe.off(Y,Se[Pe].fn,Se[Pe].id));return xe._loadQueue(Y),xe},_loadQueue:function(Y){var Z=this;if(Z._queue.length>0){var _e=Z._queue[0];_e.event===Y&&(Z._queue.shift(),Z._loadQueue()),Y||_e.action()}return Z},_ended:function(Y){var Z=this,_e=Y._sprite;if(!Z._webAudio&&Y._node&&!Y._node.paused&&!Y._node.ended&&Y._node.currentTime<Y._stop)return setTimeout(Z._ended.bind(Z,Y),100),Z;var xe=!!(Y._loop||Z._sprite[_e][2]);if(Z._emit("end",Y._id),!Z._webAudio&&xe&&Z.stop(Y._id,!0).play(Y._id),Z._webAudio&&xe){Z._emit("play",Y._id),Y._seek=Y._start||0,Y._rateSeek=0,Y._playStart=C.ctx.currentTime;var Se=(Y._stop-Y._start)*1e3/Math.abs(Y._rate);Z._endTimers[Y._id]=setTimeout(Z._ended.bind(Z,Y),Se)}return Z._webAudio&&!xe&&(Y._paused=!0,Y._ended=!0,Y._seek=Y._start||0,Y._rateSeek=0,Z._clearTimer(Y._id),Z._cleanBuffer(Y._node),C._autoSuspend()),!Z._webAudio&&!xe&&Z.stop(Y._id,!0),Z},_clearTimer:function(Y){var Z=this;if(Z._endTimers[Y]){if(typeof Z._endTimers[Y]!="function")clearTimeout(Z._endTimers[Y]);else{var _e=Z._soundById(Y);_e&&_e._node&&_e._node.removeEventListener("ended",Z._endTimers[Y],!1)}delete Z._endTimers[Y]}return Z},_soundById:function(Y){for(var Z=this,_e=0;_e<Z._sounds.length;_e++)if(Y===Z._sounds[_e]._id)return Z._sounds[_e];return null},_inactiveSound:function(){var Y=this;Y._drain();for(var Z=0;Z<Y._sounds.length;Z++)if(Y._sounds[Z]._ended)return Y._sounds[Z].reset();return new I(Y)},_drain:function(){var Y=this,Z=Y._pool,_e=0,xe=0;if(!(Y._sounds.length<Z)){for(xe=0;xe<Y._sounds.length;xe++)Y._sounds[xe]._ended&&_e++;for(xe=Y._sounds.length-1;xe>=0;xe--){if(_e<=Z)return;Y._sounds[xe]._ended&&(Y._webAudio&&Y._sounds[xe]._node&&Y._sounds[xe]._node.disconnect(0),Y._sounds.splice(xe,1),_e--)}}},_getSoundIds:function(Y){var Z=this;if(typeof Y>"u"){for(var _e=[],xe=0;xe<Z._sounds.length;xe++)_e.push(Z._sounds[xe]._id);return _e}else return[Y]},_refreshBuffer:function(Y){var Z=this;return Y._node.bufferSource=C.ctx.createBufferSource(),Y._node.bufferSource.buffer=B[Z._src],Y._panner?Y._node.bufferSource.connect(Y._panner):Y._node.bufferSource.connect(Y._node),Y._node.bufferSource.loop=Y._loop,Y._loop&&(Y._node.bufferSource.loopStart=Y._start||0,Y._node.bufferSource.loopEnd=Y._stop||0),Y._node.bufferSource.playbackRate.setValueAtTime(Y._rate,C.ctx.currentTime),Z},_cleanBuffer:function(Y){var Z=this,_e=C._navigator&&C._navigator.vendor.indexOf("Apple")>=0;if(!Y.bufferSource)return Z;if(C._scratchBuffer&&Y.bufferSource&&(Y.bufferSource.onended=null,Y.bufferSource.disconnect(0),_e))try{Y.bufferSource.buffer=C._scratchBuffer}catch{}return Y.bufferSource=null,Z},_clearSound:function(Y){var Z=/MSIE |Trident\//.test(C._navigator&&C._navigator.userAgent);Z||(Y.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var I=function(Y){this._parent=Y,this.init()};I.prototype={init:function(){var Y=this,Z=Y._parent;return Y._muted=Z._muted,Y._loop=Z._loop,Y._volume=Z._volume,Y._rate=Z._rate,Y._seek=0,Y._paused=!0,Y._ended=!0,Y._sprite="__default",Y._id=++C._counter,Z._sounds.push(Y),Y.create(),Y},create:function(){var Y=this,Z=Y._parent,_e=C._muted||Y._muted||Y._parent._muted?0:Y._volume;return Z._webAudio?(Y._node=typeof C.ctx.createGain>"u"?C.ctx.createGainNode():C.ctx.createGain(),Y._node.gain.setValueAtTime(_e,C.ctx.currentTime),Y._node.paused=!0,Y._node.connect(C.masterGain)):C.noAudio||(Y._node=C._obtainHtml5Audio(),Y._errorFn=Y._errorListener.bind(Y),Y._node.addEventListener("error",Y._errorFn,!1),Y._loadFn=Y._loadListener.bind(Y),Y._node.addEventListener(C._canPlayEvent,Y._loadFn,!1),Y._endFn=Y._endListener.bind(Y),Y._node.addEventListener("ended",Y._endFn,!1),Y._node.src=Z._src,Y._node.preload=Z._preload===!0?"auto":Z._preload,Y._node.volume=_e*C.volume(),Y._node.load()),Y},reset:function(){var Y=this,Z=Y._parent;return Y._muted=Z._muted,Y._loop=Z._loop,Y._volume=Z._volume,Y._rate=Z._rate,Y._seek=0,Y._rateSeek=0,Y._paused=!0,Y._ended=!0,Y._sprite="__default",Y._id=++C._counter,Y},_errorListener:function(){var Y=this;Y._parent._emit("loaderror",Y._id,Y._node.error?Y._node.error.code:0),Y._node.removeEventListener("error",Y._errorFn,!1)},_loadListener:function(){var Y=this,Z=Y._parent;Z._duration=Math.ceil(Y._node.duration*10)/10,Object.keys(Z._sprite).length===0&&(Z._sprite={__default:[0,Z._duration*1e3]}),Z._state!=="loaded"&&(Z._state="loaded",Z._emit("load"),Z._loadQueue()),Y._node.removeEventListener(C._canPlayEvent,Y._loadFn,!1)},_endListener:function(){var Y=this,Z=Y._parent;Z._duration===1/0&&(Z._duration=Math.ceil(Y._node.duration*10)/10,Z._sprite.__default[1]===1/0&&(Z._sprite.__default[1]=Z._duration*1e3),Z._ended(Y)),Y._node.removeEventListener("ended",Y._endFn,!1)}};var B={},U=function(Y){var Z=Y._src;if(B[Z]){Y._duration=B[Z].duration,K(Y);return}if(/^data:[^;]+;base64,/.test(Z)){for(var _e=atob(Z.split(",")[1]),xe=new Uint8Array(_e.length),Se=0;Se<_e.length;++Se)xe[Se]=_e.charCodeAt(Se);X(xe.buffer,Y)}else{var Pe=new XMLHttpRequest;Pe.open(Y._xhr.method,Z,!0),Pe.withCredentials=Y._xhr.withCredentials,Pe.responseType="arraybuffer",Y._xhr.headers&&Object.keys(Y._xhr.headers).forEach(function(Ee){Pe.setRequestHeader(Ee,Y._xhr.headers[Ee])}),Pe.onload=function(){var Ee=(Pe.status+"")[0];if(Ee!=="0"&&Ee!=="2"&&Ee!=="3"){Y._emit("loaderror",null,"Failed loading audio file with status: "+Pe.status+".");return}X(Pe.response,Y)},Pe.onerror=function(){Y._webAudio&&(Y._html5=!0,Y._webAudio=!1,Y._sounds=[],delete B[Z],Y.load())},V(Pe)}},V=function(Y){try{Y.send()}catch{Y.onerror()}},X=function(Y,Z){var _e=function(){Z._emit("loaderror",null,"Decoding audio data failed.")},xe=function(Se){Se&&Z._sounds.length>0?(B[Z._src]=Se,K(Z,Se)):_e()};typeof Promise<"u"&&C.ctx.decodeAudioData.length===1?C.ctx.decodeAudioData(Y).then(xe).catch(_e):C.ctx.decodeAudioData(Y,xe,_e)},K=function(Y,Z){Z&&!Y._duration&&(Y._duration=Z.duration),Object.keys(Y._sprite).length===0&&(Y._sprite={__default:[0,Y._duration*1e3]}),Y._state!=="loaded"&&(Y._state="loaded",Y._emit("load"),Y._loadQueue())},J=function(){if(C.usingWebAudio){try{typeof AudioContext<"u"?C.ctx=new AudioContext:typeof webkitAudioContext<"u"?C.ctx=new webkitAudioContext:C.usingWebAudio=!1}catch{C.usingWebAudio=!1}C.ctx||(C.usingWebAudio=!1);var Y=/iP(hone|od|ad)/.test(C._navigator&&C._navigator.platform),Z=C._navigator&&C._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),_e=Z?parseInt(Z[1],10):null;if(Y&&_e&&_e<9){var xe=/safari/.test(C._navigator&&C._navigator.userAgent.toLowerCase());C._navigator&&!xe&&(C.usingWebAudio=!1)}C.usingWebAudio&&(C.masterGain=typeof C.ctx.createGain>"u"?C.ctx.createGainNode():C.ctx.createGain(),C.masterGain.gain.setValueAtTime(C._muted?0:C._volume,C.ctx.currentTime),C.masterGain.connect(C.ctx.destination)),C._setup()}};A.Howler=C,A.Howl=R,typeof commonjsGlobal$1<"u"?(commonjsGlobal$1.HowlerGlobal=E,commonjsGlobal$1.Howler=C,commonjsGlobal$1.Howl=R,commonjsGlobal$1.Sound=I):typeof window<"u"&&(window.HowlerGlobal=E,window.Howler=C,window.Howl=R,window.Sound=I)})();/*!
1987
1950
  * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
1988
1951
  *
1989
1952
  * howler.js v2.2.4
@@ -2000,12 +1963,12 @@ void main() {
2000
1963
  * @version 4.5.0
2001
1964
  * @author Henrique Avila Vianna <hvianna@gmail.com> <https://henriquevianna.com>
2002
1965
  * @license AGPL-3.0-or-later
2003
- */const VERSION="4.5.0",PI=Math.PI,TAU=2*PI,HALF_PI=PI/2,C_1=8.17579892,CHANNEL_COMBINED="dual-combined",CHANNEL_HORIZONTAL="dual-horizontal",CHANNEL_SINGLE="single",CHANNEL_VERTICAL="dual-vertical",COLOR_BAR_INDEX="bar-index",COLOR_BAR_LEVEL="bar-level",COLOR_GRADIENT="gradient",DEBOUNCE_TIMEOUT=60,EVENT_CLICK="click",EVENT_FULLSCREENCHANGE="fullscreenchange",EVENT_RESIZE="resize",GRADIENT_DEFAULT_BGCOLOR="#111",FILTER_NONE="",FILTER_A="A",FILTER_B="B",FILTER_C="C",FILTER_D="D",FILTER_468="468",FONT_FAMILY="sans-serif",FPS_COLOR="#0f0",LEDS_UNLIT_COLOR="#7f7f7f22",MODE_GRAPH=10,REASON_CREATE="create",REASON_FSCHANGE="fschange",REASON_LORES="lores",REASON_RESIZE=EVENT_RESIZE,REASON_USER="user",SCALEX_BACKGROUND_COLOR="#000c",SCALEX_LABEL_COLOR="#fff",SCALEX_HIGHLIGHT_COLOR="#4f4",SCALEY_LABEL_COLOR="#888",SCALEY_MIDLINE_COLOR="#555",SCALE_BARK="bark",SCALE_LINEAR="linear",SCALE_LOG="log",SCALE_MEL="mel",PRISM=["#a35","#c66","#e94","#ed0","#9d5","#4d8","#2cb","#0bc","#09c","#36b"],GRADIENTS=[["classic",{colorStops:["red",{color:"yellow",level:.85,pos:.6},{color:"lime",level:.475}]}],["prism",{colorStops:PRISM}],["rainbow",{dir:"h",colorStops:["#817",...PRISM,"#639"]}],["orangered",{bgColor:"#3e2f29",colorStops:["OrangeRed"]}],["steelblue",{bgColor:"#222c35",colorStops:["SteelBlue"]}]],DEFAULT_SETTINGS={alphaBars:!1,ansiBands:!1,barSpace:.1,bgAlpha:.7,channelLayout:CHANNEL_SINGLE,colorMode:COLOR_GRADIENT,fadePeaks:!1,fftSize:8192,fillAlpha:1,frequencyScale:SCALE_LOG,gradient:GRADIENTS[0][0],gravity:3.8,height:void 0,ledBars:!1,linearAmplitude:!1,linearBoost:1,lineWidth:0,loRes:!1,lumiBars:!1,maxDecibels:-25,maxFPS:0,maxFreq:22e3,minDecibels:-85,minFreq:20,mirror:0,mode:0,noteLabels:!1,outlineBars:!1,overlay:!1,peakFadeTime:750,peakHoldTime:500,peakLine:!1,radial:!1,radialInvert:!1,radius:.3,reflexAlpha:.15,reflexBright:1,reflexFit:!0,reflexRatio:0,roundBars:!1,showBgColor:!0,showFPS:!1,showPeaks:!0,showScaleX:!0,showScaleY:!1,smoothing:.5,spinSpeed:0,splitGradient:!1,start:!0,trueLeds:!1,useCanvas:!0,volume:1,weightingFilter:FILTER_NONE,width:void 0},ERR_AUDIO_CONTEXT_FAIL=["ERR_AUDIO_CONTEXT_FAIL","Could not create audio context. Web Audio API not supported?"],ERR_INVALID_AUDIO_CONTEXT=["ERR_INVALID_AUDIO_CONTEXT","Provided audio context is not valid"],ERR_UNKNOWN_GRADIENT=["ERR_UNKNOWN_GRADIENT","Unknown gradient"],ERR_FREQUENCY_TOO_LOW=["ERR_FREQUENCY_TOO_LOW","Frequency values must be >= 1"],ERR_INVALID_MODE=["ERR_INVALID_MODE","Invalid mode"],ERR_REFLEX_OUT_OF_RANGE=["ERR_REFLEX_OUT_OF_RANGE","Reflex ratio must be >= 0 and < 1"],ERR_INVALID_AUDIO_SOURCE=["ERR_INVALID_AUDIO_SOURCE","Audio source must be an instance of HTMLMediaElement or AudioNode"],ERR_GRADIENT_INVALID_NAME=["ERR_GRADIENT_INVALID_NAME","Gradient name must be a non-empty string"],ERR_GRADIENT_NOT_AN_OBJECT=["ERR_GRADIENT_NOT_AN_OBJECT","Gradient options must be an object"],ERR_GRADIENT_MISSING_COLOR=["ERR_GRADIENT_MISSING_COLOR","Gradient colorStops must be a non-empty array"];class AudioMotionError extends Error{constructor(E,C){const[R,I]=E;super(I+(C!==void 0?`: ${C}`:"")),this.name="AudioMotionError",this.code=R}}const deprecate=(A,E)=>console.warn(`${A} is deprecated. Use ${E} instead.`),isEmpty=A=>{for(const E in A)return!1;return!0},validateFromList=(A,E,C="toLowerCase")=>E[Math.max(0,E.indexOf((""+A)[C]()))],findY=(A,E,C,R,I)=>E+(R-E)*(I-A)/(C-A);Array.prototype.findLastIndex||(Array.prototype.findLastIndex=function(A){let E=this.length;for(;E-- >0;)if(A(this[E]))return E;return-1});class AudioMotionAnalyzer{constructor(E,C={}){this._ready=!1,this._aux={},this._canvasGradients=[],this._destroyed=!1,this._energy={val:0,peak:0,hold:0},this._flg={},this._fps=0,this._gradients={},this._last=0,this._outNodes=[],this._ownContext=!1,this._selectedGrads=[],this._sources=[],E instanceof Element||(isEmpty(C)&&!isEmpty(E)&&(C=E),E=null),this._ownCanvas=!(C.canvas instanceof HTMLCanvasElement);const R=this._ownCanvas?document.createElement("canvas"):C.canvas;R.style="max-width: 100%;",this._ctx=R.getContext("2d");for(const[Y,Z]of GRADIENTS)this.registerGradient(Y,Z);this._container=E||!this._ownCanvas&&R.parentElement||document.body,this._defaultWidth=this._container.clientWidth||640,this._defaultHeight=this._container.clientHeight||270;let I;if(!(C.source&&(I=C.source.context))){if(!(I=C.audioCtx))try{I=new(window.AudioContext||window.webkitAudioContext),this._ownContext=!0}catch{throw new AudioMotionError(ERR_AUDIO_CONTEXT_FAIL)}}if(!I.createGain)throw new AudioMotionError(ERR_INVALID_AUDIO_CONTEXT);const B=this._analyzer=[I.createAnalyser(),I.createAnalyser()],U=this._splitter=I.createChannelSplitter(2),V=this._merger=I.createChannelMerger(2);this._input=I.createGain(),this._output=I.createGain(),C.source&&this.connectInput(C.source);for(const Y of[0,1])U.connect(B[Y],Y);V.connect(this._output),C.connectSpeakers!==!1&&this.connectOutput();for(const Y of["_scaleX","_scaleR"])this[Y]=document.createElement("canvas").getContext("2d");this._fsEl=C.fsElement||R;const X=()=>{this._fsTimeout||(this._fsTimeout=window.setTimeout(()=>{this._fsChanging||(this._setCanvas(REASON_RESIZE),this._fsTimeout=0)},DEBOUNCE_TIMEOUT))};window.ResizeObserver&&(this._observer=new ResizeObserver(X),this._observer.observe(this._container)),this._controller=new AbortController;const K=this._controller.signal;window.addEventListener(EVENT_RESIZE,X,{signal:K}),R.addEventListener(EVENT_FULLSCREENCHANGE,()=>{this._fsChanging=!0,this._fsTimeout&&window.clearTimeout(this._fsTimeout),this._setCanvas(REASON_FSCHANGE),this._fsTimeout=window.setTimeout(()=>{this._fsChanging=!1,this._fsTimeout=0},DEBOUNCE_TIMEOUT)},{signal:K});const J=()=>{I.state=="suspended"&&I.resume(),window.removeEventListener(EVENT_CLICK,J)};window.addEventListener(EVENT_CLICK,J),document.addEventListener("visibilitychange",()=>{document.visibilityState!="hidden"&&(this._frames=0,this._time=performance.now())},{signal:K}),this._setProps(C,!0),this.useCanvas&&this._ownCanvas&&this._container.appendChild(R),this._ready=!0,this._setCanvas(REASON_CREATE)}get alphaBars(){return this._alphaBars}set alphaBars(E){this._alphaBars=!!E,this._calcBars()}get ansiBands(){return this._ansiBands}set ansiBands(E){this._ansiBands=!!E,this._calcBars()}get barSpace(){return this._barSpace}set barSpace(E){this._barSpace=+E||0,this._calcBars()}get channelLayout(){return this._chLayout}set channelLayout(E){this._chLayout=validateFromList(E,[CHANNEL_SINGLE,CHANNEL_HORIZONTAL,CHANNEL_VERTICAL,CHANNEL_COMBINED]),this._input.disconnect(),this._input.connect(this._chLayout!=CHANNEL_SINGLE?this._splitter:this._analyzer[0]),this._analyzer[0].disconnect(),this._outNodes.length&&this._analyzer[0].connect(this._chLayout!=CHANNEL_SINGLE?this._merger:this._output),this._calcBars(),this._makeGrad()}get colorMode(){return this._colorMode}set colorMode(E){this._colorMode=validateFromList(E,[COLOR_GRADIENT,COLOR_BAR_INDEX,COLOR_BAR_LEVEL])}get fadePeaks(){return this._fadePeaks}set fadePeaks(E){this._fadePeaks=!!E}get fftSize(){return this._analyzer[0].fftSize}set fftSize(E){for(const R of[0,1])this._analyzer[R].fftSize=E;const C=this._analyzer[0].frequencyBinCount;this._fftData=[new Float32Array(C),new Float32Array(C)],this._calcBars()}get frequencyScale(){return this._frequencyScale}set frequencyScale(E){this._frequencyScale=validateFromList(E,[SCALE_LOG,SCALE_BARK,SCALE_MEL,SCALE_LINEAR]),this._calcBars()}get gradient(){return this._selectedGrads[0]}set gradient(E){this._setGradient(E)}get gradientLeft(){return this._selectedGrads[0]}set gradientLeft(E){this._setGradient(E,0)}get gradientRight(){return this._selectedGrads[1]}set gradientRight(E){this._setGradient(E,1)}get gravity(){return this._gravity}set gravity(E){this._gravity=E>0?+E:this._gravity||DEFAULT_SETTINGS.gravity}get height(){return this._height}set height(E){this._height=E,this._setCanvas(REASON_USER)}get ledBars(){return this._showLeds}set ledBars(E){this._showLeds=!!E,this._calcBars()}get linearAmplitude(){return this._linearAmplitude}set linearAmplitude(E){this._linearAmplitude=!!E}get linearBoost(){return this._linearBoost}set linearBoost(E){this._linearBoost=E>=1?+E:1}get lineWidth(){return this._lineWidth}set lineWidth(E){this._lineWidth=+E||0}get loRes(){return this._loRes}set loRes(E){this._loRes=!!E,this._setCanvas(REASON_LORES)}get lumiBars(){return this._lumiBars}set lumiBars(E){this._lumiBars=!!E,this._calcBars(),this._makeGrad()}get maxDecibels(){return this._analyzer[0].maxDecibels}set maxDecibels(E){for(const C of[0,1])this._analyzer[C].maxDecibels=E}get maxFPS(){return this._maxFPS}set maxFPS(E){this._maxFPS=E<0?0:+E||0}get maxFreq(){return this._maxFreq}set maxFreq(E){if(E<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._maxFreq=Math.min(E,this.audioCtx.sampleRate/2),this._calcBars()}get minDecibels(){return this._analyzer[0].minDecibels}set minDecibels(E){for(const C of[0,1])this._analyzer[C].minDecibels=E}get minFreq(){return this._minFreq}set minFreq(E){if(E<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._minFreq=+E,this._calcBars()}get mirror(){return this._mirror}set mirror(E){this._mirror=Math.sign(E)|0,this._calcBars(),this._makeGrad()}get mode(){return this._mode}set mode(E){const C=E|0;if(C>=0&&C<=10&&C!=9)this._mode=C,this._calcBars(),this._makeGrad();else throw new AudioMotionError(ERR_INVALID_MODE,E)}get noteLabels(){return this._noteLabels}set noteLabels(E){this._noteLabels=!!E,this._createScales()}get outlineBars(){return this._outlineBars}set outlineBars(E){this._outlineBars=!!E,this._calcBars()}get peakFadeTime(){return this._peakFadeTime}set peakFadeTime(E){this._peakFadeTime=E>=0?+E:this._peakFadeTime||DEFAULT_SETTINGS.peakFadeTime}get peakHoldTime(){return this._peakHoldTime}set peakHoldTime(E){this._peakHoldTime=+E||0}get peakLine(){return this._peakLine}set peakLine(E){this._peakLine=!!E}get radial(){return this._radial}set radial(E){this._radial=!!E,this._calcBars(),this._makeGrad()}get radialInvert(){return this._radialInvert}set radialInvert(E){this._radialInvert=!!E,this._calcBars(),this._makeGrad()}get radius(){return this._radius}set radius(E){this._radius=+E||0,this._calcBars(),this._makeGrad()}get reflexRatio(){return this._reflexRatio}set reflexRatio(E){if(E=+E||0,E<0||E>=1)throw new AudioMotionError(ERR_REFLEX_OUT_OF_RANGE);this._reflexRatio=E,this._calcBars(),this._makeGrad()}get roundBars(){return this._roundBars}set roundBars(E){this._roundBars=!!E,this._calcBars()}get smoothing(){return this._analyzer[0].smoothingTimeConstant}set smoothing(E){for(const C of[0,1])this._analyzer[C].smoothingTimeConstant=E}get spinSpeed(){return this._spinSpeed}set spinSpeed(E){E=+E||0,(this._spinSpeed===void 0||E==0)&&(this._spinAngle=-HALF_PI),this._spinSpeed=E}get splitGradient(){return this._splitGradient}set splitGradient(E){this._splitGradient=!!E,this._makeGrad()}get stereo(){return deprecate("stereo","channelLayout"),this._chLayout!=CHANNEL_SINGLE}set stereo(E){deprecate("stereo","channelLayout"),this.channelLayout=E?CHANNEL_VERTICAL:CHANNEL_SINGLE}get trueLeds(){return this._trueLeds}set trueLeds(E){this._trueLeds=!!E}get volume(){return this._output.gain.value}set volume(E){this._output.gain.value=E}get weightingFilter(){return this._weightingFilter}set weightingFilter(E){this._weightingFilter=validateFromList(E,[FILTER_NONE,FILTER_A,FILTER_B,FILTER_C,FILTER_D,FILTER_468],"toUpperCase")}get width(){return this._width}set width(E){this._width=E,this._setCanvas(REASON_USER)}get audioCtx(){return this._input.context}get canvas(){return this._ctx.canvas}get canvasCtx(){return this._ctx}get connectedSources(){return this._sources}get connectedTo(){return this._outNodes}get fps(){return this._fps}get fsHeight(){return this._fsHeight}get fsWidth(){return this._fsWidth}get isAlphaBars(){return this._flg.isAlpha}get isBandsMode(){return this._flg.isBands}get isDestroyed(){return this._destroyed}get isFullscreen(){return this._fsEl&&(document.fullscreenElement||document.webkitFullscreenElement)===this._fsEl}get isLedBars(){return this._flg.isLeds}get isLumiBars(){return this._flg.isLumi}get isOctaveBands(){return this._flg.isOctaves}get isOn(){return!!this._runId}get isOutlineBars(){return this._flg.isOutline}get pixelRatio(){return this._pixelRatio}get isRoundBars(){return this._flg.isRound}static get version(){return VERSION}connectInput(E){const C=E instanceof HTMLMediaElement;if(!(C||E.connect))throw new AudioMotionError(ERR_INVALID_AUDIO_SOURCE);const R=C?this.audioCtx.createMediaElementSource(E):E;return this._sources.includes(R)||(R.connect(this._input),this._sources.push(R)),R}connectOutput(E=this.audioCtx.destination){if(!this._outNodes.includes(E)&&(this._output.connect(E),this._outNodes.push(E),this._outNodes.length==1))for(const C of[0,1])this._analyzer[C].connect(this._chLayout==CHANNEL_SINGLE&&!C?this._output:this._merger,0,C)}destroy(){if(!this._ready)return;const{audioCtx:E,canvas:C,_controller:R,_input:I,_merger:B,_observer:U,_ownCanvas:V,_ownContext:X,_splitter:K}=this;this._destroyed=!0,this._ready=!1,this.stop(),R.abort(),U&&U.disconnect(),this.onCanvasResize=null,this.onCanvasDraw=null,this._fsEl=null,this.disconnectInput(),this.disconnectOutput(),I.disconnect(),K.disconnect(),B.disconnect(),X&&E.close(),V&&C.remove(),this._calcBars()}disconnectInput(E,C){E?Array.isArray(E)||(E=[E]):E=Array.from(this._sources);for(const R of E){const I=this._sources.indexOf(R);if(C&&R.mediaStream)for(const B of R.mediaStream.getAudioTracks())B.stop();I>=0&&(R.disconnect(this._input),this._sources.splice(I,1))}}disconnectOutput(E){if(!(E&&!this._outNodes.includes(E))&&(this._output.disconnect(E),this._outNodes=E?this._outNodes.filter(C=>C!==E):[],this._outNodes.length==0))for(const C of[0,1])this._analyzer[C].disconnect()}getBars(){return Array.from(this._bars,({posX:E,freq:C,freqLo:R,freqHi:I,hold:B,peak:U,value:V})=>({posX:E,freq:C,freqLo:R,freqHi:I,hold:B,peak:U,value:V}))}getEnergy(E,C){if(E===void 0)return this._energy.val;if(E!=+E){if(E=="peak")return this._energy.peak;const V={bass:[20,250],lowMid:[250,500],mid:[500,2e3],highMid:[2e3,4e3],treble:[4e3,16e3]};if(!V[E])return null;[E,C]=V[E]}const R=this._freqToBin(E),I=C?this._freqToBin(C):R,B=this._chLayout==CHANNEL_SINGLE?1:2;let U=0;for(let V=0;V<B;V++)for(let X=R;X<=I;X++)U+=this._normalizedB(this._fftData[V][X]);return U/(I-R+1)/B}getOptions(E){Array.isArray(E)||(E=[E]);let C={};for(const R of Object.keys(DEFAULT_SETTINGS))E.includes(R)||(R=="gradient"&&this.gradientLeft!=this.gradientRight?(C.gradientLeft=this.gradientLeft,C.gradientRight=this.gradientRight):R!="start"&&(C[R]=this[R]));return C}registerGradient(E,C){if(typeof E!="string"||E.trim().length==0)throw new AudioMotionError(ERR_GRADIENT_INVALID_NAME);if(typeof C!="object")throw new AudioMotionError(ERR_GRADIENT_NOT_AN_OBJECT);const{colorStops:R}=C;if(!Array.isArray(R)||!R.length)throw new AudioMotionError(ERR_GRADIENT_MISSING_COLOR);const I=R.length,B=U=>+U!=U||U<0||U>1;R.forEach((U,V)=>{const X=V/Math.max(1,I-1);typeof U!="object"?R[V]={pos:X,color:U}:B(U.pos)&&(U.pos=X),B(U.level)&&(R[V].level=1-V/I)}),R.sort((U,V)=>U.level<V.level?1:U.level>V.level?-1:0),R[0].level=1,this._gradients[E]={bgColor:C.bgColor||GRADIENT_DEFAULT_BGCOLOR,dir:C.dir,colorStops:R},this._selectedGrads.includes(E)&&this._makeGrad()}setCanvasSize(E,C){this._width=E,this._height=C,this._setCanvas(REASON_USER)}setFreqRange(E,C){if(E<1||C<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._minFreq=Math.min(E,C),this.maxFreq=Math.max(E,C)}setLedParams(E){let C,R,I;E&&(C=E.maxLeds|0,R=+E.spaceV,I=+E.spaceH),this._ledParams=C>0&&R>0&&I>=0?[C,R,I]:void 0,this._calcBars()}setOptions(E){this._setProps(E)}setSensitivity(E,C){for(const R of[0,1])this._analyzer[R].minDecibels=Math.min(E,C),this._analyzer[R].maxDecibels=Math.max(E,C)}start(){this.toggleAnalyzer(!0)}stop(){this.toggleAnalyzer(!1)}toggleAnalyzer(E){const C=this.isOn;return E===void 0&&(E=!C),C&&!E?(cancelAnimationFrame(this._runId),this._runId=0):!C&&E&&!this._destroyed&&(this._frames=0,this._time=performance.now(),this._runId=requestAnimationFrame(R=>this._draw(R))),this.isOn}toggleFullscreen(){if(this.isFullscreen)document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();else{const E=this._fsEl;if(!E)return;E.requestFullscreen?E.requestFullscreen():E.webkitRequestFullscreen&&E.webkitRequestFullscreen()}}_binToFreq(E){return E*this.audioCtx.sampleRate/this.fftSize||1}_calcBars(){const E=this._bars=[];if(!this._ready){this._flg={isAlpha:!1,isBands:!1,isLeds:!1,isLumi:!1,isOctaves:!1,isOutline:!1,isRound:!1,noLedGap:!1};return}const{_ansiBands:C,_barSpace:R,canvas:I,_chLayout:B,_maxFreq:U,_minFreq:V,_mirror:X,_mode:K,_radial:J,_radialInvert:Y,_reflexRatio:Z}=this,_e=I.width>>1,xe=I.height>>1,Se=B==CHANNEL_VERTICAL&&!J,Pe=B==CHANNEL_HORIZONTAL,Ee=K%10!=0,Ae=Ee&&this._frequencyScale==SCALE_LOG,Te=this._showLeds&&Ee&&!J,we=this._lumiBars&&Ee&&!J,Ie=this._alphaBars&&!we&&K!=MODE_GRAPH,Fe=this._outlineBars&&Ee&&!we&&!Te,ke=this._roundBars&&Ee&&!we&&!Te,Le=B!=CHANNEL_VERTICAL||Z>0&&!we,Ge=I.height-(Se&&!Te?.5:0)>>Se,He=Ge*(we||J?1:1-Z)|0,Be=I.width-_e*(Pe||X!=0),je=Se?I.height-Ge*2:0,Ue=_e*(X==-1&&!Pe&&!J);let ze=Math.min(I.width,I.height)*.375*(B==CHANNEL_VERTICAL?1:this._radius)|0,Ve=Math.min(_e,xe);Y&&B!=CHANNEL_VERTICAL&&([ze,Ve]=[Ve,ze]);const Oe=Je=>E.push({...Je,peak:[0,0],hold:[0],alpha:[0],value:[0]}),$e=Je=>{const Ke=this._freqToBin(Je,"floor"),rt=this._binToFreq(Ke),nt=this._binToFreq(Ke+1),Qe=Math.log2(Je/rt)/Math.log2(nt/rt);return[Ke,Qe]};let Re,Me,Ne;if(Ae){const Je=(et,We,it)=>+et.toPrecision(it?Math.max(We,1+Math.log10(et)|0):We),Ke=et=>{const We=[1,1.12,1.25,1.4,1.6,1.8,2,2.24,2.5,2.8,3.15,3.55,4,4.5,5,5.6,6.3,7.1,8,9,10],it=Math.log10(et)|0,ot=et/10**it;let ht=1;for(;ht<We.length&&ot>We[ht];)ht++;return ot-We[ht-1]<We[ht]-ot&&ht--,(We[ht]*10**(it+5)|0)/1e5},rt=[0,24,12,8,6,4,3,2,1][K],nt=C?10**(3/(rt*10)):2**(1/rt),Qe=nt**.5;let Ze=C?7.94328235/(rt%2?1:Qe):C_1;do{let et=Ze;const We=Je(et/Qe,4,!0),it=Je(et*Qe,4,!0),[ot,ht]=$e(We),[gt,pt]=$e(it);C?et=rt<4?Ke(et):Je(et,et.toString()[0]<5?3:2):et=Je(et,4,!0),et>=V&&Oe({posX:0,freq:et,freqLo:We,freqHi:it,binLo:ot,binHi:gt,ratioLo:ht,ratioHi:pt}),Ze*=nt}while(Ze<=U);Re=Be/E.length,E.forEach((et,We)=>et.posX=Ue+We*Re);const tt=E[0],st=E[E.length-1];Me=this._freqScaling(tt.freqLo),Ne=Be/(this._freqScaling(st.freqHi)-Me),tt.freqLo<V&&(tt.freqLo=V,[tt.binLo,tt.ratioLo]=$e(V)),st.freqHi>U&&(st.freqHi=U,[st.binHi,st.ratioHi]=$e(U))}else if(Ee){const Je=[0,24,12,8,6,4,3,2,1][K]*10,Ke=rt=>{switch(this._frequencyScale){case SCALE_BARK:return 1960/(26.81/(rt+.53)-1);case SCALE_MEL:return 700*(2**rt-1);case SCALE_LINEAR:return rt}};Re=Be/Je,Me=this._freqScaling(V),Ne=Be/(this._freqScaling(U)-Me);for(let rt=0,nt=0;rt<Je;rt++,nt+=Re){const Qe=Ke(Me+nt/Ne),Ze=Ke(Me+(nt+Re/2)/Ne),tt=Ke(Me+(nt+Re)/Ne),[st,et]=$e(Qe),[We,it]=$e(tt);Oe({posX:Ue+nt,freq:Ze,freqLo:Qe,freqHi:tt,binLo:st,binHi:We,ratioLo:et,ratioHi:it})}}else{Re=1,Me=this._freqScaling(V),Ne=Be/(this._freqScaling(U)-Me);const Je=this._freqToBin(V,"floor"),Ke=this._freqToBin(U);let rt=-999;for(let nt=Je;nt<=Ke;nt++){const Qe=this._binToFreq(nt),Ze=Ue+Math.round(Ne*(this._freqScaling(Qe)-Me));if(Ze>rt)Oe({posX:Ze,freq:Qe,freqLo:Qe,freqHi:Qe,binLo:nt,binHi:nt,ratioLo:0,ratioHi:0}),rt=Ze;else if(E.length){const tt=E[E.length-1];tt.binHi=nt,tt.freqHi=Qe,tt.freq=(tt.freqLo*Qe)**.5}}}let De=0,Xe=0;if(Te){const Je=this._pixelRatio/(window.devicePixelRatio>1&&window.screen.height<=540?2:1),Ke=[[],[128,3,.45],[128,4,.225],[96,6,.225],[80,6,.225],[80,6,.125],[64,6,.125],[48,8,.125],[24,16,.125]],rt=this._ledParams,[nt,Qe,Ze]=rt||Ke[K];let tt,st=He;if(rt){const et=2*Je;let We;tt=nt+1;do tt--,We=st/tt/(1+Qe),Xe=We*Qe;while((We<et||Xe<et)&&tt>1)}else{const et=540/Qe;Xe=Math.min(Qe*Je,Math.max(2,st/et+.1|0))}Le&&(st+=Xe),rt||(tt=Math.min(nt,st/(Xe*2)|0)),De=Ze>=1?Ze:Re*Ze,this._leds=[tt,De,Xe,st/tt-Xe]}const qe=Math.min(Re-1,R*(R>0&&R<1?Re:1));Ee&&(Re-=Math.max(Te?De:0,qe)),E.forEach((Je,Ke)=>{let rt=Je.posX,nt=Re;Ee&&(R==0&&!Te?(rt|=0,nt|=0,Ke>0&&rt>E[Ke-1].posX+E[Ke-1].width&&(rt--,nt++)):rt+=Math.max(Te?De:0,qe)/2,Je.posX=rt),Je.barCenter=rt+(Re==1?0:nt/2),Je.width=nt});const Ye=[];for(const Je of[0,1]){const Ke=B==CHANNEL_VERTICAL?(Ge+je)*Je:0,rt=Ke+Ge,nt=Ke+He-(!Te||Le?0:Xe);Ye.push({channelTop:Ke,channelBottom:rt,analyzerBottom:nt})}this._aux={analyzerHeight:He,analyzerWidth:Be,centerX:_e,centerY:xe,channelCoords:Ye,channelHeight:Ge,channelGap:je,initialX:Ue,innerRadius:ze,outerRadius:Ve,scaleMin:Me,unitWidth:Ne},this._flg={isAlpha:Ie,isBands:Ee,isLeds:Te,isLumi:we,isOctaves:Ae,isOutline:Fe,isRound:ke,noLedGap:Le},this._createScales()}_createScales(){if(!this._ready)return;const{analyzerWidth:E,initialX:C,innerRadius:R,scaleMin:I,unitWidth:B}=this._aux,{canvas:U,_frequencyScale:V,_mirror:X,_noteLabels:K,_radial:J,_scaleX:Y,_scaleR:Z}=this,_e=Y.canvas,xe=Z.canvas,Se=[],Pe=this._chLayout==CHANNEL_HORIZONTAL,Ee=this._chLayout==CHANNEL_VERTICAL,Ae=Math.min(U.width,U.height),Te=["C",,"D",,"E","F",,"G",,"A",,"B"],we=Ae/34|0,Ie=_e.height>>1,Fe=we>>1,ke=Ie*(K?.7:1.5),Le=Fe*(K?1:2),Ge=2**(1/12);if(!K&&(this._ansiBands||V!=SCALE_LOG))Se.push(16,31.5,63,125,250,500,1e3,2e3,4e3),V==SCALE_LINEAR?Se.push(6e3,8e3,1e4,12e3,14e3,16e3,18e3,2e4,22e3):Se.push(8e3,16e3);else{let Ve=C_1;for(let Oe=-1;Oe<11;Oe++)for(let $e=0;$e<12;$e++){if(Ve>=this._minFreq&&Ve<=this._maxFreq){const Re=Te[$e],Me=Re=="C";(Re&&K&&!X&&!Pe||Me)&&Se.push(K?[Ve,Re+(Me?Oe:"")]:Ve)}Ve*=Ge}}xe.width=xe.height=Math.max(Ae*.15,(R<<1)+Ee*we);const He=xe.width>>1,Be=He-we*.7,je=(Ve,Oe)=>{const $e=TAU*(Ve/U.width),Re=$e-HALF_PI,Me=Be*Math.cos(Re),Ne=Be*Math.sin(Re);Z.save(),Z.translate(He+Me,He+Ne),Z.rotate($e),Z.fillText(Oe,0,0),Z.restore()};_e.width|=0,Y.fillStyle=Z.strokeStyle=SCALEX_BACKGROUND_COLOR,Y.fillRect(0,0,_e.width,_e.height),Z.arc(He,He,He-we/2,0,TAU),Z.lineWidth=we,Z.stroke(),Y.fillStyle=Z.fillStyle=SCALEX_LABEL_COLOR,Y.font=`${Ie}px ${FONT_FAMILY}`,Z.font=`${Fe}px ${FONT_FAMILY}`,Y.textAlign=Z.textAlign="center";let Ue=-ke/4,ze=-Le;for(const Ve of Se){const[Oe,$e]=Array.isArray(Ve)?Ve:[Ve,Ve<1e3?Ve|0:`${(Ve/100|0)/10}k`],Re=B*(this._freqScaling(Oe)-I),Me=_e.height*.75,Ne=$e[0]=="C",De=Ie*(K&&!X&&!Pe?Ne?1.2:.6:3);if(Y.fillStyle=Z.fillStyle=Ne&&!X&&!Pe?SCALEX_HIGHLIGHT_COLOR:SCALEX_LABEL_COLOR,K){const Xe=V==SCALE_LOG,qe=V==SCALE_LINEAR;let Ye=["C"];if((Xe||Oe>2e3||!qe&&Oe>250||(!J||Ee)&&(!qe&&Oe>125||Oe>1e3))&&Ye.push("G"),(Xe||Oe>4e3||!qe&&Oe>500||(!J||Ee)&&(!qe&&Oe>250||Oe>2e3))&&Ye.push("E"),(qe&&Oe>4e3||(!J||Ee)&&(Xe||Oe>2e3||!qe&&Oe>500))&&Ye.push("D","F","A","B"),!Ye.includes($e[0]))continue}Re>=Ue+ke/2&&Re<=E&&(Y.fillText($e,Pe&&X==-1?E-Re:C+Re,Me,De),(Pe||X&&(Re>ke||X==1))&&Y.fillText($e,Pe&&X!=1?E+Re:(C||U.width)-Re,Me,De),Ue=Re+Math.min(De,Y.measureText($e).width)/2),Re>=ze+Le&&Re<E-Le&&(je(Pe&&X==1?E-Re:Re,$e),(Pe||X&&(Re>Le||X==1))&&je(Pe&&X!=-1?E+Re:-Re,$e),ze=Re)}}_draw(E){this._runId=requestAnimationFrame(at=>this._draw(at));const C=E-this._time,R=E-this._last,I=this._maxFPS?975/this._maxFPS:0;if(R<I)return;this._last=E-(I?R%I:0),this._frames++,C>=1e3&&(this._fps=this._frames/C*1e3,this._frames=0,this._time=E);const{isAlpha:B,isBands:U,isLeds:V,isLumi:X,isOctaves:K,isOutline:J,isRound:Y,noLedGap:Z}=this._flg,{analyzerHeight:_e,centerX:xe,centerY:Se,channelCoords:Pe,channelHeight:Ee,channelGap:Ae,initialX:Te,innerRadius:we,outerRadius:Ie}=this._aux,{_bars:Fe,canvas:ke,_canvasGradients:Le,_chLayout:Ge,_colorMode:He,_ctx:Be,_energy:je,_fadePeaks:Ue,fillAlpha:ze,_fps:Ve,_linearAmplitude:Oe,_lineWidth:$e,maxDecibels:Re,minDecibels:Me,_mirror:Ne,_mode:De,overlay:Xe,_radial:qe,showBgColor:Ye,showPeaks:Je,useCanvas:Ke,_weightingFilter:rt}=this,nt=this._scaleX.canvas,Qe=this._scaleR.canvas,Ze=Ve*this._peakFadeTime/1e3,tt=Ve**2,st=this._gravity*1e3,et=Ve*this._peakHoldTime/1e3,We=Ge==CHANNEL_COMBINED,it=Ge==CHANNEL_HORIZONTAL,ot=Ge==CHANNEL_VERTICAL,ht=Ge==CHANNEL_SINGLE,gt=V&&this._trueLeds&&He==COLOR_GRADIENT,pt=qe?ke.width:this._aux.analyzerWidth,ft=Te+pt,mt=Je&&this._peakLine&&De==MODE_GRAPH,ct=qe?Ie-we:_e,xt=ct/this._pixelRatio,[bt,It,Et,Ft]=this._leds||[];je.val>0&&Ve>0&&(this._spinAngle+=this._spinSpeed*TAU/60/Ve);const qt=at=>{if(this._reflexRatio>0&&!X&&!qe){let vt,Lt;this.reflexFit||ot?(vt=ot&&at==0?Ee+Ae:0,Lt=Ee-_e):(vt=ke.height-_e*2,Lt=_e),Be.save(),Be.globalAlpha=this.reflexAlpha,this.reflexBright!=1&&(Be.filter=`brightness(${this.reflexBright})`),Be.setTransform(1,0,0,-1,0,ke.height),Be.drawImage(ke,0,Pe[at].channelTop,ke.width,_e,0,vt,ke.width,Lt),Be.restore()}},Wt=()=>{this.showScaleX&&(qe?(Be.save(),Be.translate(xe,Se),this._spinSpeed&&Be.rotate(this._spinAngle+HALF_PI),Be.drawImage(Qe,-Qe.width>>1,-Qe.width>>1),Be.restore()):Be.drawImage(nt,0,ke.height-nt.height))},Yt=at=>{const vt=at**2,Lt=424.36,At=11599.29,ir=25122.25,Dt=544496.41,Nt=148693636,Vt=Ht=>20*Math.log10(Ht);switch(rt){case FILTER_A:const Ht=Nt*vt**2/((vt+Lt)*Math.sqrt((vt+At)*(vt+Dt))*(vt+Nt));return 2+Vt(Ht);case FILTER_B:const zt=Nt*vt*at/((vt+Lt)*Math.sqrt(vt+ir)*(vt+Nt));return .17+Vt(zt);case FILTER_C:const pr=Nt*vt/((vt+Lt)*(vt+Nt));return .06+Vt(pr);case FILTER_D:const nr=((103791848e-2-vt)**2+108076816e-2*vt)/((9837328-vt)**2+11723776*vt),mr=at/68966888496476e-18*Math.sqrt(nr/((vt+79919.29)*(vt+1345600)));return Vt(mr);case FILTER_468:const sr=-4737338981378384e-39*at**6+2043828333606125e-30*at**4-1363894795463638e-22*vt+1,jt=1306612257412824e-34*at**5-2118150887518656e-26*at**3+.0005559488023498642*at,wt=.0001246332637532143*at/Math.hypot(sr,jt);return 18.2+Vt(wt)}return 0},fr=(at,vt,Lt)=>{Be.beginPath(),Be.moveTo(at,vt),Be.lineTo(at,Lt),Be.stroke()},dr=at=>{if(at&&$e){const vt=Be.globalAlpha;Be.globalAlpha=1,Be.stroke(),Be.globalAlpha=vt}},Ut=at=>Math.max(0,(at*bt|0)*(Ft+Et)-Et),Ir=at=>{je.val=at,je.peak>0&&(je.hold--,je.hold<0&&(je.peak+=je.hold*st/tt/ke.height*this._pixelRatio)),at>=je.peak&&(je.peak=at,je.hold=et)};Xe&&Be.clearRect(0,0,ke.width,ke.height);let Sr=0;const Er=Fe.length,Tr=ht?1:2;for(let at=0;at<Tr;at++){const{channelTop:vt,channelBottom:Lt,analyzerBottom:At}=Pe[at],ir=this._gradients[this._selectedGrads[at]],Dt=ir.colorStops,Nt=Dt.length,Vt=!Ye||V&&!Xe?"#000":ir.bgColor,Ht=ot&&qe&&at?-1:1,zt=!at&&Ne==-1||at&&Ne==1,pr=!it||at&&Ne!=1?0:pt>>(at||!zt),nr=it&&zt?-1:1,mr=()=>{const lt=nt.height,ut=lt>>1,dt=Oe?100:Re,_t=Oe?0:Me,St=Oe?20:5,Pt=_e/(dt-_t),$t=Ne!=-1&&(!it||at==0||Ne==1),Bt=Ne!=1&&(!it||at!=Ne);Be.save(),Be.fillStyle=SCALEY_LABEL_COLOR,Be.font=`${ut}px ${FONT_FAMILY}`,Be.textAlign="right",Be.lineWidth=1;for(let Gt=dt;Gt>_t;Gt-=St){const Kt=vt+(dt-Gt)*Pt,Tt=Gt%2==0|0;if(Tt){const Ct=Kt+ut*(Kt==vt?.8:.35);$t&&Be.fillText(Gt,lt*.85,Ct),Bt&&Be.fillText(Gt,(it?pt:ke.width)-lt*.1,Ct),Be.strokeStyle=SCALEY_LABEL_COLOR,Be.setLineDash([2,4]),Be.lineDashOffset=0}else Be.strokeStyle=SCALEY_MIDLINE_COLOR,Be.setLineDash([2,8]),Be.lineDashOffset=1;Be.beginPath(),Be.moveTo(Te+lt*Tt*$t,~~Kt+.5),Be.lineTo(ft-lt*Tt*Bt,~~Kt+.5),Be.stroke()}Be.restore()},sr=(lt,ut)=>{const dt=kt[lt]+(lt<kt.length-1?(kt[lt+1]-kt[lt])*ut:0);return isNaN(dt)?-1/0:dt},jt=(lt,ut=nr)=>ut*TAU*((lt+pr)/ke.width)+this._spinAngle,wt=(lt,ut,dt)=>{const _t=we+ut*Ht,St=jt(lt,dt);return[xe+_t*Math.cos(St),Se+_t*Math.sin(St)]},gr=(lt,ut,dt,_t,St)=>{Be.beginPath();for(const Pt of Ne&&!it?[1,-1]:[nr]){const[$t,Bt]=Y?[jt(lt,Pt),jt(lt+dt,Pt)]:[];Be.moveTo(...wt(lt,ut,Pt)),Be.lineTo(...wt(lt,ut+_t,Pt)),Y?Be.arc(xe,Se,we+(ut+_t)*Ht,$t,Bt,Pt!=1):Be.lineTo(...wt(lt+dt,ut+_t,Pt)),Be.lineTo(...wt(lt+dt,ut,Pt)),Y&&!St&&Be.arc(xe,Se,we+ut*Ht,Bt,$t,Pt==1)}dr(St),Be.fill()},vr=(lt=0,ut=0)=>{let dt;if(He==COLOR_GRADIENT&&!gt||De==MODE_GRAPH)dt=Le[at];else{const _t=He==COLOR_BAR_INDEX?ut%Nt:Dt.findLastIndex(St=>V?Ut(lt)<=Ut(St.level):lt<=St.level);dt=Dt[_t].color}Be.fillStyle=Be.strokeStyle=dt};if(Ke){if(it&&!qe){const lt=pt*(at+zt),ut=zt?-1:1;Be.setTransform(ut,0,0,1,lt,0)}if((!Xe||Ye)&&(Xe&&(Be.globalAlpha=this.bgAlpha),Be.fillStyle=Vt,(at==0||!qe&&!We)&&Be.fillRect(Te,vt-Ae,pt,(Xe&&this.reflexAlpha==1?_e:Ee)+Ae),Be.globalAlpha=1),this.showScaleY&&!X&&!qe&&(at==0||!We)&&mr(),V?(Be.setLineDash([Ft,Et]),Be.lineWidth=Fe[0].width):Be.lineWidth=J?Math.min($e,Fe[0].width/2):$e,Be.save(),!qe){const lt=new Path2D;lt.rect(0,vt,ke.width,_e),Be.clip(lt)}}let kt=this._fftData[at];this._analyzer[at].getFloatFrequencyData(kt),rt&&(kt=kt.map((lt,ut)=>lt+Yt(this._binToFreq(ut)))),Be.beginPath();let er=[];for(let lt=0;lt<Er;lt++){const ut=Fe[lt],{posX:dt,barCenter:_t,width:St,freq:Pt,binLo:$t,binHi:Bt,ratioLo:Gt,ratioHi:Kt}=ut;let Tt=Math.max(sr($t,Gt),sr(Bt,Kt));for(let yt=$t+1;yt<Bt;yt++)kt[yt]>Tt&&(Tt=kt[yt]);if(Tt=this._normalizedB(Tt),ut.value[at]=Tt,Sr+=Tt,ut.peak[at]>0&&ut.alpha[at]>0&&(ut.hold[at]--,ut.hold[at]<0)){if(Ue&&!mt){const yt=!B||J&&$e>0?1:B?ut.peak[at]:ze;ut.alpha[at]=yt*(1+ut.hold[at]/Ze)}else ut.peak[at]+=ut.hold[at]*st/tt/xt;ut.alpha[at]<=0&&(ut.peak[at]=0)}if(Tt>=ut.peak[at]&&(ut.peak[at]=Tt,ut.hold[at]=et,ut.alpha[at]=!B||J&&$e>0?1:B?Tt:ze),!Ke)continue;Be.globalAlpha=X||B?Tt:J?ze:1,vr(Tt,lt);const Ct=X?ct:V?Ut(Tt):Tt*ct|0;if(De==MODE_GRAPH){const yt=lt?0:(this._normalizedB(kt[Fe[1].binLo])*ct+Ct)/2;if(qe){if(lt==0&&(it&&Be.moveTo(...wt(0,0)),Be.lineTo(...wt(0,dt<0?yt:Ct))),dt>=0){const Mt=[dt,Ct];Be.lineTo(...wt(...Mt)),er.push(Mt)}}else{if(lt==0)if(Ne==-1&&!it)Be.moveTo(Te,At-(dt<Te?yt:Ct));else{const Mt=$t?this._normalizedB(kt[$t-1])*ct:Ct;Be.moveTo(Te-$e,At-Mt)}(it||Ne!=-1||dt>=Te)&&Be.lineTo(dt,At-Ct)}}else if(V){if(Ye&&!Xe&&(at==0||!We)){const yt=Be.globalAlpha;Be.strokeStyle=LEDS_UNLIT_COLOR,Be.globalAlpha=1,fr(_t,vt,At),Be.strokeStyle=Be.fillStyle,Be.globalAlpha=yt}if(gt){const yt=X?0:Dt.findLastIndex(Xt=>Ut(Tt)<=Ut(Xt.level));let Mt=At;for(let Xt=Nt-1;Xt>=yt;Xt--){Be.strokeStyle=Dt[Xt].color;let Cr=At-(Xt==yt?Ct:Ut(Dt[Xt].level));fr(_t,Mt,Cr),Mt=Cr-Et}}else fr(_t,At,At-Ct)}else if(dt>=Te)if(qe)gr(dt,0,St,Ct,J);else if(Y){const yt=St/2,Mt=At+yt;Be.beginPath(),Be.moveTo(dt,Mt),Be.lineTo(dt,Mt-Ct),Be.arc(_t,Mt-Ct,yt,PI,TAU),Be.lineTo(dt+St,Mt),dr(J),Be.fill()}else{const yt=J?Be.lineWidth:0;Be.beginPath(),Be.rect(dt,At+yt,St,-Ct-yt),dr(J),Be.fill()}const Zt=ut.peak[at],Ar=ut.alpha[at];if(Zt>0&&Ar>0&&Je&&!mt&&!X&&dt>=Te&&dt<ft){if(Ue?Be.globalAlpha=Ar:J&&$e>0?Be.globalAlpha=1:B&&(Be.globalAlpha=Zt),(He==COLOR_BAR_LEVEL||gt)&&vr(Zt),V){const yt=Ut(Zt);yt>=Et&&Be.fillRect(dt,At-yt,St,Ft)}else if(!qe)Be.fillRect(dt,At-Zt*ct,St,2);else if(De!=MODE_GRAPH){const yt=Zt*ct;gr(dt,yt,St,!this._radialInvert||ot||yt+we>=2?-2:2)}}}if(Ke){if(Be.globalAlpha=1,De==MODE_GRAPH){if(vr(),qe&&!it){if(Ne){let lt;for(;lt=er.pop();)Be.lineTo(...wt(...lt,-1))}Be.closePath()}if($e>0&&Be.stroke(),ze>0){if(qe){const lt=it?jt(pt>>1):0,ut=it?jt(pt):TAU;Be.moveTo(...wt(it?pt>>1:0,0)),Be.arc(xe,Se,we,lt,ut,it?!zt:!0)}else Be.lineTo(ft,At),Be.lineTo(Te,At);Be.globalAlpha=ze,Be.fill(),Be.globalAlpha=1}if((mt||qe&&Je)&&(er=[],Be.beginPath(),Fe.forEach((lt,ut)=>{let dt=lt.posX,_t=lt.peak[at],St=ut?"lineTo":"moveTo";if(qe&&dt<0){const Pt=Fe[ut+1];_t=findY(dt,_t,Pt.posX,Pt.peak[at],0),dt=0}_t*=ct,mt?(Be[St](...qe?wt(dt,_t):[dt,At-_t]),qe&&Ne&&!it&&er.push([dt,_t])):_t>0&&gr(dt,_t,1,-2)}),mt)){let lt;for(;lt=er.pop();)Be.lineTo(...wt(...lt,-1));Be.lineWidth=1,Be.stroke()}}Be.restore(),it&&!qe&&Be.setTransform(1,0,0,1,0,0),(!it&&!We||at)&&qt(at)}}if(Ir(Sr/(Er<<Tr-1)),Ke&&(Ne&&!qe&&!it&&(Be.setTransform(-1,0,0,1,ke.width-Te,0),Be.drawImage(ke,Te,0,xe,ke.height,0,0,xe,ke.height),Be.setTransform(1,0,0,1,0,0)),Be.setLineDash([]),Wt()),this.showFPS){const at=nt.height;Be.font=`bold ${at}px ${FONT_FAMILY}`,Be.fillStyle=FPS_COLOR,Be.textAlign="right",Be.fillText(Math.round(Ve),ke.width-at,at*2)}this.onCanvasDraw&&(Be.save(),Be.fillStyle=Be.strokeStyle=Le[0],this.onCanvasDraw(this,{timestamp:E,canvasGradients:Le}),Be.restore())}_freqScaling(E){switch(this._frequencyScale){case SCALE_LOG:return Math.log2(E);case SCALE_BARK:return 26.81*E/(1960+E)-.53;case SCALE_MEL:return Math.log2(1+E/700);case SCALE_LINEAR:return E}}_freqToBin(E,C="round"){const R=this._analyzer[0].frequencyBinCount-1,I=Math[C](E*this.fftSize/this.audioCtx.sampleRate);return I<R?I:R}_makeGrad(){if(!this._ready)return;const{canvas:E,_ctx:C,_radial:R,_reflexRatio:I}=this,{analyzerWidth:B,centerX:U,centerY:V,initialX:X,innerRadius:K,outerRadius:J}=this._aux,{isLumi:Y}=this._flg,Z=this._chLayout==CHANNEL_VERTICAL,_e=1-I,xe=Y?E.height:E.height*(1-I*!Z)|0;for(const Se of[0,1]){const Pe=this._gradients[this._selectedGrads[Se]],Ee=Pe.colorStops,Ae=Pe.dir=="h";let Te;if(R?Te=C.createRadialGradient(U,V,J,U,V,K-(J-K)*Z):Te=C.createLinearGradient(...Ae?[X,0,X+B,0]:[0,0,0,xe]),Ee){const we=Z&&!this._splitGradient&&(!Ae||R);for(let Ie=0;Ie<1+we;Ie++){const Fe=Ee.length-1;Ee.forEach((ke,Le)=>{let Ge=ke.pos;if(we&&(Ge/=2),Z&&!Y&&!R&&!Ae&&(Ge*=_e,!we&&Ge>.5*_e&&(Ge+=.5*I)),Ie==1)if(R||Y){const He=Fe-Le;ke=Ee[He],Ge=1-ke.pos/2}else Le==0&&Ge>0&&Te.addColorStop(.5,ke.color),Ge+=.5;Te.addColorStop(Ge,ke.color),Z&&Le==Fe&&Ge<.5&&Te.addColorStop(.5,ke.color)})}}this._canvasGradients[Se]=Te}}_normalizedB(E){const C=this._linearAmplitude,R=C?1/this._linearBoost:1,I=(X,K,J)=>X<=K?K:X>=J?J:X,B=X=>10**(X/20);let U=this.maxDecibels,V=this.minDecibels;return C&&(U=B(U),V=B(V),E=B(E)**R),I((E-V)/(U-V)**R,0,1)}_setCanvas(E){if(!this._ready)return;const{canvas:C,_ctx:R}=this,I=this._scaleX.canvas,B=window.devicePixelRatio/(this._loRes+1);let U=window.screen.width*B,V=window.screen.height*B;Math.abs(window.orientation)==90&&U<V&&([U,V]=[V,U]);const X=this.isFullscreen,K=X&&this._fsEl==C,J=K?U:(this._width||this._container.clientWidth||this._defaultWidth)*B|0,Y=K?V:(this._height||this._container.clientHeight||this._defaultHeight)*B|0;this._pixelRatio=B,this._fsWidth=U,this._fsHeight=V,!(E!=REASON_CREATE&&C.width==J&&C.height==Y)&&(C.width=J,C.height=Y,this.overlay||(R.fillStyle="#000",R.fillRect(0,0,J,Y)),R.lineJoin="bevel",I.width=J,I.height=Math.max(20*B,Math.min(J,Y)/32|0),this._calcBars(),this._makeGrad(),this._fsStatus!==void 0&&this._fsStatus!==X&&(E=REASON_FSCHANGE),this._fsStatus=X,this.onCanvasResize&&this.onCanvasResize(E,this))}_setGradient(E,C){if(!this._gradients.hasOwnProperty(E))throw new AudioMotionError(ERR_UNKNOWN_GRADIENT,E);[0,1].includes(C)||(this._selectedGrads[1]=E,C=0),this._selectedGrads[C]=E,this._makeGrad()}_setProps(E,C){const R=["onCanvasDraw","onCanvasResize"],I=["gradientLeft","gradientRight","stereo"],B=Object.keys(DEFAULT_SETTINGS).filter(U=>U!="start").concat(R,I);(C||E===void 0)&&(E={...DEFAULT_SETTINGS,...E});for(const U of Object.keys(E))R.includes(U)&&typeof E[U]!="function"?this[U]=void 0:B.includes(U)&&(this[U]=E[U]);E.start!==void 0&&this.toggleAnalyzer(E.start)}}const waveConfig={[Waveforms.NONE]:{mode:2},[Waveforms.ROUNDBARS]:{mode:2,alphaBars:!1,ansiBands:!1,barSpace:.25,channelLayout:"single",colorMode:"bar-level",frequencyScale:"log",gradient:"prism",ledBars:!1,linearAmplitude:!0,linearBoost:1.6,lumiBars:!1,maxFreq:16e3,minFreq:30,mirror:0,radial:!1,reflexRatio:.3,reflexAlpha:1,roundBars:!0,showPeaks:!1,showScaleX:!1,showScaleY:!1,smoothing:.7,weightingFilter:"D"},[Waveforms.LED]:{mode:3,barSpace:.6,ledBars:!0,showScaleX:!1,showScaleY:!1},[Waveforms.RADIAL_SPECTRUM]:{mode:3,barSpace:.25,bgAlpha:.5,fillAlpha:.5,gradient:"prism",ledBars:!1,linearAmplitude:!0,linearBoost:1.8,lineWidth:1.5,maxDecibels:-30,maxFreq:16e3,radial:!0,showBgColor:!0,showPeaks:!0,spinSpeed:2,outlineBars:!0,showScaleX:!1,showScaleY:!1,reflexFit:!0},[Waveforms.LUMI_BARS]:{mode:3,barSpace:.6,lumiBars:!0,reflexRatio:.5,fillAlpha:.3,frequencyScale:"bark",gradientLeft:"steelblue",gradientRight:"orangered",showScaleX:!1,showScaleY:!1},[Waveforms.EQUALIZER]:{mode:2,gradient:"rainbow",lineWidth:1.5,fillAlpha:.5,showPeaks:!1,showScaleX:!1,showScaleY:!1}},initalTransforms={x:0,y:0,width:0,height:0,anchor:.5,maxX:0,maxY:0,scale:1,rotation:0,waveform:Waveforms.NONE},useAudioVisualizer=A=>{const E=React__namespace.useRef(),C=React.useRef(document.body),R=React__namespace.useRef(),[I,B]=React__namespace.useState(""),{uniqueId:U,src:V,transformation:X=initalTransforms}=A,{waveform:K=Waveforms.NONE,width:J=300,height:Y=300}=X,Z=async _e=>{try{return await fetch(_e,{mode:"cors",referrerPolicy:"no-referrer-when-downgrade"})}catch(xe){const Se=xe;throw Se.message.includes("Failed to fetch")||Se.message.includes("Load failed")||Se.message.includes("NetworkError when attempting to fetch resource")?new TypeError(`Failed to read from ${_e}: ${Se.message}. Does the resource support CORS?`):xe}};return React__namespace.useEffect(()=>()=>{isEmpty$2(I)||URL.revokeObjectURL(I),R.current},[I]),React__namespace.useEffect(()=>{const _e=waveConfig[K]||{};if(console.log("waveFormCOnfig",_e),E.current&&(C.current.removeChild(E.current),E.current=void 0),K!==Waveforms.NONE){E.current=document.createElement("div"),E.current.setAttribute("id",`${U}${K}audioContainer`),C.current.appendChild(E.current);const Se=new AudioMotionAnalyzer(E.current,{audioCtx:Howler.ctx,height:Y,width:J,..._e});R.current=Se}return(async()=>{if(!isEmpty$2(V)){const Pe=await(await Z(V)).arrayBuffer(),Ee=new Blob([Pe]),Ae=URL.createObjectURL(Ee);B(Ae),E.current&&(E.current.style.display="none")}})(),()=>{E.current&&C.current&&(console.log("clearing the canvas",E.current),C.current.removeChild(E.current),E.current=void 0)}},[K,V,U,J,Y]),{audioMotionRef:R,blobUrl:I,canvasRef:E}},PixiAudioSprite=React__namespace.forwardRef((A,E)=>{const C={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,R]=React__namespace.useState(!1),[I,B]=React__namespace.useState(!1),U=React.useRef(null),V=React.useRef(C),X=React.useRef(null),K=React__namespace.useRef(null),J=React.useRef(null),Y=React__namespace.useRef(),{tl:Z,dragModeRef:_e}=React.useContext(GsapPixieContext),{uniqueId:xe,src:Se,startAt:Pe,endAt:Ee,mute:Ae,speed:Te,audioStartAt:we,audioEndAt:Ie,visible:Fe=!1,transformation:ke}=A,{width:Le=300,height:Ge=300,x:He=100,y:Be=100,waveform:je=Waveforms.NONE}=ke||{},{audioMotionRef:Ue,blobUrl:ze,canvasRef:Ve}=useAudioVisualizer({uniqueId:xe,src:Se,transformation:ke});useCustomEventListener(Events.PAUSE,()=>{var Ne;U.current&&K.current&&((Ne=K.current)==null||Ne.pause(),V.current.isPlaying=!1)}),useCustomEventListener(Events.COMPLETE,()=>{we>0&&K.current&&K.current.seek(we)}),useCustomEventListener(Events.SCRUBBER_CLICKED,()=>{var Ne;U.current&&K.current&&((Ne=K.current)==null||Ne.pause(),V.current.isPlaying=!1)}),React__namespace.useEffect(()=>{K.current&&(_e.current?(K.current.pause(),V.current.isPlaying=!1,V.current.isDragging=!0):V.current.isDragging=!1)},[_e]);const Oe=(Ne,De)=>{Z.current&&Z.current.isActive()&&X.current&&X.current.isActive()&&!_e.current&&K.current&&(console.log("gsap on start 0020",xe,Ne,De),K.current.play(),V.current.isPlaying=!0)},$e=()=>{var Ne;U.current&&((Ne=K.current)==null||Ne.stop(),V.current.isPlaying=!1,V.current.completed=!0)},Re=Ne=>{var Xe,qe;const De=Ne+((Xe=X.current)==null?void 0:Xe.time());K.current&&_e.current?(K.current.seek(De),K.current.pause(),V.current.isPlaying=!1):U.current&&!V.current.isPlaying&&((qe=Z.current)!=null&&qe.isActive())&&K.current&&(K.current.seek(De),K.current.play(),V.current.isPlaying=!0),Y.current&&Y.current.update()},Me=()=>{};return React.useEffect(()=>{let Ne=gsap$2.context(()=>{});if(U.current&&Z.current){const De={duration:Number(Ie)-Number(we),onStart:Oe,onComplete:$e,onStartParams:[we,Ie],onCompleteParams:[],onInterrupt:Me,onUpdate:Re,onUpdateParams:[we,Ie],id:xe};Ne=gsap$2.context(()=>{X.current=gsap$2.from(U.current,De,we),Z.current.to(U.current,{alpha:1,duration:.01},Pe).to(U.current,{alpha:0,duration:.1},Number(Ee)),Z.current.add(X.current,Pe)})}return()=>{X.current&&(X.current.kill(),gsap$2.killTweensOf(X.current)),Ne.revert()}},[Pe,Ee,we,Ie,xe]),React__namespace.useEffect(()=>(U.current&&R(!0),()=>{console.log("unmounting audio sprite",xe),console.log("audioContainerRef.current",K.current)}),[]),React__namespace.useEffect(()=>(Y.current&&Y.current.update(),()=>{}),[I]),React__namespace.useEffect(()=>(isEmpty$2(ze)||(K.current=new howler.Howl({src:[ze],format:["mp3"],html5:!0,autoplay:!1,loop:!1,rate:Te||1,onload:()=>{var Ne;if(V.current.loaded=!0,K.current&&(we>0&&K.current.seek(we),K.current.volume(!Ae&&Fe?1:0),K.current.rate(Te||1),K.current.pause(),V.current.isPlaying=!1,V.current.completed=!1,Ue.current&&K.current)){console.log("reconnecting the audio motion analyser");try{Ue.current.connectInput(K.current._sounds[0]._node)}catch(Xe){console.log("error connecting audio motion"),console.log(Xe)}const De=PIXI__namespace.Texture.from(Ue.current._fsEl,{pixiIdPrefix:`${(Ne=Ue.current._container)==null?void 0:Ne.id}`});Y.current=De,Ve.current&&Ve.current.setAttribute("style","display:none"),B(!0)}},onend:()=>{console.log("end of playing audio sprite"+xe),V.current.isPlaying=!1,V.current.completed=!0},onplay:()=>{console.log("play of playing audio sprite"+xe),V.current.isPlaying=!0},onpause:()=>{console.log("pause of playing audio sprite"+xe),V.current.isPlaying=!1},onstop:()=>{console.log("stop of playing audio sprite"+xe),V.current.isPlaying=!1}}),Howler.ctx.resume().then(()=>{console.log("audio ctx resumed")})),()=>{console.log("unmounting the howler useeffect"),Ue.current,K.current&&(K.current.stop(),K.current.unload(),K.current=void 0)}),[xe,Se,Pe,Ee,we,Ie,Ae,Fe,Te,ze]),React__namespace.useEffect(()=>{K.current&&(console.log("running updateEffect 2002",xe,Ie),K.current.volume(!Ae&&Fe?1:0),K.current.rate(Te||1),V.current.isPlaying=!0)},[Ae,Fe,Te]),jsxRuntimeExports.jsx(react.Container,{ref:U,children:je!==Waveforms.NONE&&I&&Y.current&&jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,isGif:!0,children:jsxRuntimeExports.jsx(react.Sprite,{texture:Y.current,width:Le,height:Ge,anchor:.5,x:He,y:Be,ref:J,alpha:Fe?1:0})})})});function arrayMap$2(A,E){for(var C=-1,R=A==null?0:A.length,I=Array(R);++C<R;)I[C]=E(A[C],C,A);return I}var _arrayMap=arrayMap$2;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(A,E){return A===E||A!==A&&E!==E}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(A,E){for(var C=A.length;C--;)if(eq$1(A[C][0],E))return C;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(A){var E=this.__data__,C=assocIndexOf$3(E,A);if(C<0)return!1;var R=E.length-1;return C==R?E.pop():splice.call(E,C,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(A){var E=this.__data__,C=assocIndexOf$2(E,A);return C<0?void 0:E[C][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(A){return assocIndexOf$1(this.__data__,A)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(A,E){var C=this.__data__,R=assocIndexOf(C,A);return R<0?(++this.size,C.push([A,E])):C[R][1]=E,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(A){var E=-1,C=A==null?0:A.length;for(this.clear();++E<C;){var R=A[E];this.set(R[0],R[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(A){var E=this.__data__,C=E.delete(A);return this.size=E.size,C}var _stackDelete=stackDelete$1;function stackGet$1(A){return this.__data__.get(A)}var _stackGet=stackGet$1;function stackHas$1(A){return this.__data__.has(A)}var _stackHas=stackHas$1,getNative=_getNative,nativeCreate$4=getNative(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(A){var E=this.has(A)&&delete this.__data__[A];return this.size-=E?1:0,E}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashGet$1(A){var E=this.__data__;if(nativeCreate$2){var C=E[A];return C===HASH_UNDEFINED$2?void 0:C}return hasOwnProperty$4.call(E,A)?E[A]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashHas$1(A){var E=this.__data__;return nativeCreate$1?E[A]!==void 0:hasOwnProperty$3.call(E,A)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(A,E){var C=this.__data__;return this.size+=this.has(A)?0:1,C[A]=nativeCreate&&E===void 0?HASH_UNDEFINED$1:E,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(A){var E=-1,C=A==null?0:A.length;for(this.clear();++E<C;){var R=A[E];this.set(R[0],R[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$2=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(A){var E=typeof A;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?A!=="__proto__":A===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(A,E){var C=A.__data__;return isKeyable(E)?C[typeof E=="string"?"string":"hash"]:C.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(A){var E=getMapData$3(this,A).delete(A);return this.size-=E?1:0,E}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(A){return getMapData$2(this,A).get(A)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(A){return getMapData$1(this,A).has(A)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(A,E){var C=getMapData(this,A),R=C.size;return C.set(A,E),this.size+=C.size==R?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(A){var E=-1,C=A==null?0:A.length;for(this.clear();++E<C;){var R=A[E];this.set(R[0],R[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,ListCache$1=_ListCache,Map$1=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(A,E){var C=this.__data__;if(C instanceof ListCache$1){var R=C.__data__;if(!Map$1||R.length<LARGE_ARRAY_SIZE-1)return R.push([A,E]),this.size=++C.size,this;C=this.__data__=new MapCache$2(R)}return C.set(A,E),this.size=C.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(A){var E=this.__data__=new ListCache(A);this.size=E.size}Stack$2.prototype.clear=stackClear,Stack$2.prototype.delete=stackDelete,Stack$2.prototype.get=stackGet,Stack$2.prototype.has=stackHas,Stack$2.prototype.set=stackSet;var _Stack=Stack$2,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(A){return this.__data__.set(A,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(A){return this.__data__.has(A)}var _setCacheHas=setCacheHas$1,MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(A){var E=-1,C=A==null?0:A.length;for(this.__data__=new MapCache$1;++E<C;)this.add(A[E])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(A,E){for(var C=-1,R=A==null?0:A.length;++C<R;)if(E(A[C],C,A))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(A,E){return A.has(E)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(A,E,C,R,I,B){var U=C&COMPARE_PARTIAL_FLAG$5,V=A.length,X=E.length;if(V!=X&&!(U&&X>V))return!1;var K=B.get(A),J=B.get(E);if(K&&J)return K==E&&J==A;var Y=-1,Z=!0,_e=C&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(B.set(A,E),B.set(E,A);++Y<V;){var xe=A[Y],Se=E[Y];if(R)var Pe=U?R(Se,xe,Y,E,A,B):R(xe,Se,Y,A,E,B);if(Pe!==void 0){if(Pe)continue;Z=!1;break}if(_e){if(!arraySome(E,function(Ee,Ae){if(!cacheHas(_e,Ae)&&(xe===Ee||I(xe,Ee,C,R,B)))return _e.push(Ae)})){Z=!1;break}}else if(!(xe===Se||I(xe,Se,C,R,B))){Z=!1;break}}return B.delete(A),B.delete(E),Z}var _equalArrays=equalArrays$2,root$1=_root,Uint8Array$2=root$1.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(A){var E=-1,C=Array(A.size);return A.forEach(function(R,I){C[++E]=[I,R]}),C}var _mapToArray=mapToArray$1;function setToArray$1(A){var E=-1,C=Array(A.size);return A.forEach(function(R){C[++E]=R}),C}var _setToArray=setToArray$1,Symbol$2=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag$1(A,E,C,R,I,B,U){switch(C){case dataViewTag:if(A.byteLength!=E.byteLength||A.byteOffset!=E.byteOffset)return!1;A=A.buffer,E=E.buffer;case arrayBufferTag:return!(A.byteLength!=E.byteLength||!B(new Uint8Array$1(A),new Uint8Array$1(E)));case boolTag:case dateTag:case numberTag:return eq(+A,+E);case errorTag:return A.name==E.name&&A.message==E.message;case regexpTag:case stringTag:return A==E+"";case mapTag:var V=mapToArray;case setTag:var X=R&COMPARE_PARTIAL_FLAG$4;if(V||(V=setToArray),A.size!=E.size&&!X)return!1;var K=U.get(A);if(K)return K==E;R|=COMPARE_UNORDERED_FLAG$2,U.set(A,E);var J=equalArrays$1(V(A),V(E),R,I,B,U);return U.delete(A),J;case symbolTag$1:if(symbolValueOf)return symbolValueOf.call(A)==symbolValueOf.call(E)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(A,E){for(var C=-1,R=E.length,I=A.length;++C<R;)A[I+C]=E[C];return A}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$8=isArray_1;function baseGetAllKeys$1(A,E,C){var R=E(A);return isArray$8(A)?R:arrayPush(R,C(A))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(A,E){for(var C=-1,R=A==null?0:A.length,I=0,B=[];++C<R;){var U=A[C];E(U,C,A)&&(B[I++]=U)}return B}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(A){return A==null?[]:(A=Object(A),arrayFilter(nativeGetSymbols(A),function(E){return propertyIsEnumerable.call(A,E)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(A,E){for(var C=-1,R=Array(A);++C<A;)R[C]=E(C);return R}var _baseTimes=baseTimes$1,MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(A,E){var C=typeof A;return E=E??MAX_SAFE_INTEGER,!!E&&(C=="number"||C!="symbol"&&reIsUint.test(A))&&A>-1&&A%1==0&&A<E}var _isIndex=isIndex$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$1=isBufferExports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function arrayLikeKeys$1(A,E){var C=isArray$7(A),R=!C&&isArguments$1(A),I=!C&&!R&&isBuffer$1(A),B=!C&&!R&&!I&&isTypedArray$1(A),U=C||R||I||B,V=U?baseTimes(A.length,String):[],X=V.length;for(var K in A)(E||hasOwnProperty$2.call(A,K))&&!(U&&(K=="length"||I&&(K=="offset"||K=="parent")||B&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||isIndex$1(K,X)))&&V.push(K);return V}var _arrayLikeKeys=arrayLikeKeys$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$2=isArrayLike_1;function keys$3(A){return isArrayLike$2(A)?arrayLikeKeys(A):baseKeys(A)}var keys_1=keys$3,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(A){return baseGetAllKeys(A,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects$1(A,E,C,R,I,B){var U=C&COMPARE_PARTIAL_FLAG$3,V=getAllKeys(A),X=V.length,K=getAllKeys(E),J=K.length;if(X!=J&&!U)return!1;for(var Y=X;Y--;){var Z=V[Y];if(!(U?Z in E:hasOwnProperty$1.call(E,Z)))return!1}var _e=B.get(A),xe=B.get(E);if(_e&&xe)return _e==E&&xe==A;var Se=!0;B.set(A,E),B.set(E,A);for(var Pe=U;++Y<X;){Z=V[Y];var Ee=A[Z],Ae=E[Z];if(R)var Te=U?R(Ae,Ee,Z,E,A,B):R(Ee,Ae,Z,A,E,B);if(!(Te===void 0?Ee===Ae||I(Ee,Ae,C,R,B):Te)){Se=!1;break}Pe||(Pe=Z=="constructor")}if(Se&&!Pe){var we=A.constructor,Ie=E.constructor;we!=Ie&&"constructor"in A&&"constructor"in E&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(Se=!1)}return B.delete(A),B.delete(E),Se}var _equalObjects=equalObjects$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$6=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep$1(A,E,C,R,I,B){var U=isArray$6(A),V=isArray$6(E),X=U?arrayTag:getTag(A),K=V?arrayTag:getTag(E);X=X==argsTag?objectTag:X,K=K==argsTag?objectTag:K;var J=X==objectTag,Y=K==objectTag,Z=X==K;if(Z&&isBuffer(A)){if(!isBuffer(E))return!1;U=!0,J=!1}if(Z&&!J)return B||(B=new Stack$1),U||isTypedArray(A)?equalArrays(A,E,C,R,I,B):equalByTag(A,E,X,C,R,I,B);if(!(C&COMPARE_PARTIAL_FLAG$2)){var _e=J&&hasOwnProperty.call(A,"__wrapped__"),xe=Y&&hasOwnProperty.call(E,"__wrapped__");if(_e||xe){var Se=_e?A.value():A,Pe=xe?E.value():E;return B||(B=new Stack$1),I(Se,Pe,C,R,B)}}return Z?(B||(B=new Stack$1),equalObjects(A,E,C,R,I,B)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$2(A,E,C,R,I){return A===E?!0:A==null||E==null||!isObjectLike$1(A)&&!isObjectLike$1(E)?A!==A&&E!==E:baseIsEqualDeep(A,E,C,R,baseIsEqual$2,I)}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(A,E,C,R){var I=C.length,B=I,U=!R;if(A==null)return!B;for(A=Object(A);I--;){var V=C[I];if(U&&V[2]?V[1]!==A[V[0]]:!(V[0]in A))return!1}for(;++I<B;){V=C[I];var X=V[0],K=A[X],J=V[1];if(U&&V[2]){if(K===void 0&&!(X in A))return!1}else{var Y=new Stack;if(R)var Z=R(K,J,X,A,E,Y);if(!(Z===void 0?baseIsEqual$1(J,K,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,R,Y):Z))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject$2=isObject_1;function isStrictComparable$2(A){return A===A&&!isObject$2(A)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$1=keys_1;function getMatchData$1(A){for(var E=keys$1(A),C=E.length;C--;){var R=E[C],I=A[R];E[C]=[R,I,isStrictComparable$1(I)]}return E}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(A,E){return function(C){return C==null?!1:C[A]===E&&(E!==void 0||A in Object(C))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(A){var E=getMatchData(A);return E.length==1&&E[0][2]?matchesStrictComparable$1(E[0][0],E[0][1]):function(C){return C===A||baseIsMatch(C,A,E)}}var _baseMatches=baseMatches$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$4(A){return typeof A=="symbol"||isObjectLike(A)&&baseGetTag(A)==symbolTag}var isSymbol_1=isSymbol$4,isArray$5=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(A,E){if(isArray$5(A))return!1;var C=typeof A;return C=="number"||C=="symbol"||C=="boolean"||A==null||isSymbol$3(A)?!0:reIsPlainProp.test(A)||!reIsDeepProp.test(A)||E!=null&&A in Object(E)}var _isKey=isKey$3,MapCache=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(A,E){if(typeof A!="function"||E!=null&&typeof E!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var C=function(){var R=arguments,I=E?E.apply(this,R):R[0],B=C.cache;if(B.has(I))return B.get(I);var U=A.apply(this,R);return C.cache=B.set(I,U)||B,U};return C.cache=new(memoize$1.Cache||MapCache),C}memoize$1.Cache=MapCache;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(A){var E=memoize(A,function(R){return C.size===MAX_MEMOIZE_SIZE&&C.clear(),R}),C=E.cache;return E}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(A){var E=[];return A.charCodeAt(0)===46&&E.push(""),A.replace(rePropName,function(C,R,I,B){E.push(I?B.replace(reEscapeChar,"$1"):R||C)}),E}),_stringToPath=stringToPath$1,Symbol$1=_Symbol,arrayMap$1=_arrayMap,isArray$4=isArray_1,isSymbol$2=isSymbol_1,INFINITY$1=1/0,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString$1(A){if(typeof A=="string")return A;if(isArray$4(A))return arrayMap$1(A,baseToString$1)+"";if(isSymbol$2(A))return symbolToString?symbolToString.call(A):"";var E=A+"";return E=="0"&&1/A==-INFINITY$1?"-0":E}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$1(A){return A==null?"":baseToString(A)}var toString_1=toString$1,isArray$3=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString=toString_1;function castPath$2(A,E){return isArray$3(A)?A:isKey$2(A,E)?[A]:stringToPath(toString(A))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY=1/0;function toKey$4(A){if(typeof A=="string"||isSymbol$1(A))return A;var E=A+"";return E=="0"&&1/A==-INFINITY?"-0":E}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(A,E){E=castPath$1(E,A);for(var C=0,R=E.length;A!=null&&C<R;)A=A[toKey$3(E[C++])];return C&&C==R?A:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(A,E,C){var R=A==null?void 0:baseGet$1(A,E);return R===void 0?C:R}var get_1=get$1;function baseHasIn$1(A,E){return A!=null&&E in Object(A)}var _baseHasIn=baseHasIn$1,castPath=_castPath,isArguments=isArguments_1,isArray$2=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;function hasPath$1(A,E,C){E=castPath(E,A);for(var R=-1,I=E.length,B=!1;++R<I;){var U=toKey$2(E[R]);if(!(B=A!=null&&C(A,U)))break;A=A[U]}return B||++R!=I?B:(I=A==null?0:A.length,!!I&&isLength(I)&&isIndex(U,I)&&(isArray$2(A)||isArguments(A)))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(A,E){return A!=null&&hasPath(A,E,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(A,E){return isKey$1(A)&&isStrictComparable(E)?matchesStrictComparable(toKey$1(A),E):function(C){var R=get(C,A);return R===void 0&&R===E?hasIn(C,A):baseIsEqual(E,R,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(A){return A}var identity_1=identity$1;function baseProperty$1(A){return function(E){return E==null?void 0:E[A]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(A){return function(E){return baseGet(E,A)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(A){return isKey(A)?baseProperty(toKey(A)):basePropertyDeep(A)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray$1=isArray_1,property=property_1;function baseIteratee$1(A){return typeof A=="function"?A:A==null?identity:typeof A=="object"?isArray$1(A)?baseMatchesProperty(A[0],A[1]):baseMatches(A):property(A)}var _baseIteratee=baseIteratee$1;function createBaseFor$1(A){return function(E,C,R){for(var I=-1,B=Object(E),U=R(E),V=U.length;V--;){var X=U[A?V:++I];if(C(B[X],X,B)===!1)break}return E}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(A,E){return A&&baseFor(A,E,keys)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(A,E){return function(C,R){if(C==null)return C;if(!isArrayLike$1(C))return A(C,R);for(var I=C.length,B=E?I:-1,U=Object(C);(E?B--:++B<I)&&R(U[B],B,U)!==!1;);return C}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(A,E){var C=-1,R=isArrayLike(A)?Array(A.length):[];return baseEach(A,function(I,B,U){R[++C]=E(I,B,U)}),R}var _baseMap=baseMap$1,arrayMap=_arrayMap,baseIteratee=_baseIteratee,baseMap=_baseMap,isArray=isArray_1;function map(A,E){var C=isArray(A)?arrayMap:baseMap;return C(A,baseIteratee(E))}var map_1=map;const map$1=getDefaultExportFromCjs(map_1);var lib$1={},gif={},lib={};Object.defineProperty(lib,"__esModule",{value:!0}),lib.loop=lib.conditional=lib.parse=void 0;var parse=function A(E,C){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:R;if(Array.isArray(C))C.forEach(function(U){return A(E,U,R,I)});else if(typeof C=="function")C(E,R,I,A);else{var B=Object.keys(C)[0];Array.isArray(C[B])?(I[B]={},A(E,C[B],R,I[B])):I[B]=C[B](E,R,I,A)}return R};lib.parse=parse;var conditional=function(E,C){return function(R,I,B,U){C(R,I,B)&&U(R,E,I,B)}};lib.conditional=conditional;var loop=function(E,C){return function(R,I,B,U){for(var V=[],X=R.pos;C(R,I,B);){var K={};if(U(R,E,I,K),R.pos===X)break;X=R.pos,V.push(K)}return V}};lib.loop=loop;var uint8={};Object.defineProperty(uint8,"__esModule",{value:!0}),uint8.readBits=uint8.readArray=uint8.readUnsigned=uint8.readString=uint8.peekBytes=uint8.readBytes=uint8.peekByte=uint8.readByte=uint8.buildStream=void 0;var buildStream=function(E){return{data:E,pos:0}};uint8.buildStream=buildStream;var readByte=function(){return function(E){return E.data[E.pos++]}};uint8.readByte=readByte;var peekByte=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(C){return C.data[C.pos+E]}};uint8.peekByte=peekByte;var readBytes=function(E){return function(C){return C.data.subarray(C.pos,C.pos+=E)}};uint8.readBytes=readBytes;var peekBytes=function(E){return function(C){return C.data.subarray(C.pos,C.pos+E)}};uint8.peekBytes=peekBytes;var readString=function(E){return function(C){return Array.from(readBytes(E)(C)).map(function(R){return String.fromCharCode(R)}).join("")}};uint8.readString=readString;var readUnsigned=function(E){return function(C){var R=readBytes(2)(C);return E?(R[1]<<8)+R[0]:(R[0]<<8)+R[1]}};uint8.readUnsigned=readUnsigned;var readArray=function(E,C){return function(R,I,B){for(var U=typeof C=="function"?C(R,I,B):C,V=readBytes(E),X=new Array(U),K=0;K<U;K++)X[K]=V(R);return X}};uint8.readArray=readArray;var subBitsTotal=function(E,C,R){for(var I=0,B=0;B<R;B++)I+=E[C+B]&&Math.pow(2,R-B-1);return I},readBits=function(E){return function(C){for(var R=readByte()(C),I=new Array(8),B=0;B<8;B++)I[7-B]=!!(R&1<<B);return Object.keys(E).reduce(function(U,V){var X=E[V];return X.length?U[V]=subBitsTotal(I,X.index,X.length):U[V]=I[X.index],U},{})}};uint8.readBits=readBits,function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var E=lib,C=uint8,R={blocks:function(Z){for(var _e=0,xe=[],Se=Z.data.length,Pe=0,Ee=(0,C.readByte)()(Z);Ee!==_e&&Ee;Ee=(0,C.readByte)()(Z)){if(Z.pos+Ee>=Se){var Ae=Se-Z.pos;xe.push((0,C.readBytes)(Ae)(Z)),Pe+=Ae;break}xe.push((0,C.readBytes)(Ee)(Z)),Pe+=Ee}for(var Te=new Uint8Array(Pe),we=0,Ie=0;Ie<xe.length;Ie++)Te.set(xe[Ie],we),we+=xe[Ie].length;return Te}},I=(0,E.conditional)({gce:[{codes:(0,C.readBytes)(2)},{byteSize:(0,C.readByte)()},{extras:(0,C.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,C.readUnsigned)(!0)},{transparentColorIndex:(0,C.readByte)()},{terminator:(0,C.readByte)()}]},function(Y){var Z=(0,C.peekBytes)(2)(Y);return Z[0]===33&&Z[1]===249}),B=(0,E.conditional)({image:[{code:(0,C.readByte)()},{descriptor:[{left:(0,C.readUnsigned)(!0)},{top:(0,C.readUnsigned)(!0)},{width:(0,C.readUnsigned)(!0)},{height:(0,C.readUnsigned)(!0)},{lct:(0,C.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,E.conditional)({lct:(0,C.readArray)(3,function(Y,Z,_e){return Math.pow(2,_e.descriptor.lct.size+1)})},function(Y,Z,_e){return _e.descriptor.lct.exists}),{data:[{minCodeSize:(0,C.readByte)()},R]}]},function(Y){return(0,C.peekByte)()(Y)===44}),U=(0,E.conditional)({text:[{codes:(0,C.readBytes)(2)},{blockSize:(0,C.readByte)()},{preData:function(Z,_e,xe){return(0,C.readBytes)(xe.text.blockSize)(Z)}},R]},function(Y){var Z=(0,C.peekBytes)(2)(Y);return Z[0]===33&&Z[1]===1}),V=(0,E.conditional)({application:[{codes:(0,C.readBytes)(2)},{blockSize:(0,C.readByte)()},{id:function(Z,_e,xe){return(0,C.readString)(xe.blockSize)(Z)}},R]},function(Y){var Z=(0,C.peekBytes)(2)(Y);return Z[0]===33&&Z[1]===255}),X=(0,E.conditional)({comment:[{codes:(0,C.readBytes)(2)},R]},function(Y){var Z=(0,C.peekBytes)(2)(Y);return Z[0]===33&&Z[1]===254}),K=[{header:[{signature:(0,C.readString)(3)},{version:(0,C.readString)(3)}]},{lsd:[{width:(0,C.readUnsigned)(!0)},{height:(0,C.readUnsigned)(!0)},{gct:(0,C.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,C.readByte)()},{pixelAspectRatio:(0,C.readByte)()}]},(0,E.conditional)({gct:(0,C.readArray)(3,function(Y,Z){return Math.pow(2,Z.lsd.gct.size+1)})},function(Y,Z){return Z.lsd.gct.exists}),{frames:(0,E.loop)([I,V,X,B,U],function(Y){var Z=(0,C.peekByte)()(Y);return Z===33||Z===44})}],J=K;A.default=J}(gif);var deinterlace$1={};Object.defineProperty(deinterlace$1,"__esModule",{value:!0}),deinterlace$1.deinterlace=void 0;var deinterlace=function(E,C){for(var R=new Array(E.length),I=E.length/C,B=function(Z,_e){var xe=E.slice(_e*C,(_e+1)*C);R.splice.apply(R,[Z*C,C].concat(xe))},U=[0,4,2,1],V=[8,8,4,2],X=0,K=0;K<4;K++)for(var J=U[K];J<I;J+=V[K])B(J,X),X++;return R};deinterlace$1.deinterlace=deinterlace;var lzw$1={};Object.defineProperty(lzw$1,"__esModule",{value:!0}),lzw$1.lzw=void 0;var lzw=function(E,C,R){var I=4096,B=-1,U=R,V,X,K,J,Y,Z,_e,Fe,xe,Se,Ie,Pe,ke,Le,He,Ge,Ee=new Array(R),Ae=new Array(I),Te=new Array(I),we=new Array(I+1);for(Pe=E,X=1<<Pe,Y=X+1,V=X+2,_e=B,J=Pe+1,K=(1<<J)-1,xe=0;xe<X;xe++)Ae[xe]=0,Te[xe]=xe;var Ie,Fe,ke,Le,Ge,He;for(Ie=Fe=ke=Le=Ge=He=0,Se=0;Se<U;){if(Le===0){if(Fe<J){Ie+=C[He]<<Fe,Fe+=8,He++;continue}if(xe=Ie&K,Ie>>=J,Fe-=J,xe>V||xe==Y)break;if(xe==X){J=Pe+1,K=(1<<J)-1,V=X+2,_e=B;continue}if(_e==B){we[Le++]=Te[xe],_e=xe,ke=xe;continue}for(Z=xe,xe==V&&(we[Le++]=ke,xe=_e);xe>X;)we[Le++]=Te[xe],xe=Ae[xe];ke=Te[xe]&255,we[Le++]=ke,V<I&&(Ae[V]=_e,Te[V]=ke,V++,!(V&K)&&V<I&&(J++,K+=V)),_e=Z}Le--,Ee[Ge++]=we[Le],Se++}for(Se=Ge;Se<U;Se++)Ee[Se]=0;return Ee};lzw$1.lzw=lzw,Object.defineProperty(lib$1,"__esModule",{value:!0}),lib$1.decompressFrames=lib$1.decompressFrame=lib$1.parseGIF=void 0;var _gif=_interopRequireDefault(gif),_jsBinarySchemaParser=lib,_uint=uint8,_deinterlace=deinterlace$1,_lzw=lzw$1;function _interopRequireDefault(A){return A&&A.__esModule?A:{default:A}}var parseGIF=function(E){var C=new Uint8Array(E);return(0,_jsBinarySchemaParser.parse)((0,_uint.buildStream)(C),_gif.default)};lib$1.parseGIF=parseGIF;var generatePatch=function(E){for(var C=E.pixels.length,R=new Uint8ClampedArray(C*4),I=0;I<C;I++){var B=I*4,U=E.pixels[I],V=E.colorTable[U]||[0,0,0];R[B]=V[0],R[B+1]=V[1],R[B+2]=V[2],R[B+3]=U!==E.transparentIndex?255:0}return R},decompressFrame=function(E,C,R){if(!E.image){console.warn("gif frame does not have associated image.");return}var I=E.image,B=I.descriptor.width*I.descriptor.height,U=(0,_lzw.lzw)(I.data.minCodeSize,I.data.blocks,B);I.descriptor.lct.interlaced&&(U=(0,_deinterlace.deinterlace)(U,I.descriptor.width));var V={pixels:U,dims:{top:E.image.descriptor.top,left:E.image.descriptor.left,width:E.image.descriptor.width,height:E.image.descriptor.height}};return I.descriptor.lct&&I.descriptor.lct.exists?V.colorTable=I.lct:V.colorTable=C,E.gce&&(V.delay=(E.gce.delay||10)*10,V.disposalType=E.gce.extras.disposal,E.gce.extras.transparentColorGiven&&(V.transparentIndex=E.gce.transparentColorIndex)),R&&(V.patch=generatePatch(V)),V};lib$1.decompressFrame=decompressFrame;var decompressFrames=function(E,C){return E.frames.filter(function(R){return R.image}).map(function(R){return decompressFrame(R,E.gct,C)})};lib$1.decompressFrames=decompressFrames;const reducer=(A,E={})=>{typeof E=="function"&&(E=E(A));const C=E.loaded&&A.loaded!==E.loaded,{playing:R,...I}=E,B={...A,...I};return C&&Object.assign(B,{playing:B.autoPlay&&B.loaded}),(E.delays!=null||E.frames!=null)&&Object.assign(B,{length:B.frames.length}),(E.index!=null||E.frames!=null)&&Object.assign(B,{index:B.length===0?0:(B.length+B.index)%B.length}),E.playing!=null&&Object.assign(B,B.loaded?{playing:R}:{autoPlay:R}),B},initializer=A=>reducer({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},A),usePlayerState=A=>React.useReducer(reducer,A,initializer);var code='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function WorkerFactory(A){const E=new Blob([code],{type:"application/javascript"}),C=URL.createObjectURL(E),R=new Worker(C,A);return URL.revokeObjectURL(C),R}const genearate=A=>({...A,frames:A.frames.map(E=>{const C=new ImageData(A.width,A.height);return C.data.set(new Uint8ClampedArray(E)),C})}),createSingleton=(A,E)=>{const C={};return()=>(C.instance||(C.instance=A()),React.useLayoutEffect(()=>(C.timeout?(clearTimeout(C.timeout),delete C.timeout):C.usageCount=(C.usageCount||0)+1,()=>{C.timeout=setTimeout(()=>{C.usageCount=C.usageCount-1,C.usageCount===0&&(E&&E(C.instance),delete C.instance,delete C.timeout)})}),[C,E]),C.instance)},useUpdatedRef=A=>{const E=React.useRef(A);return React.useEffect(()=>{E.current=A},[A]),E},useEventCallback=A=>{const E=useUpdatedRef(A);return React.useCallback(C=>E.current&&E.current(C),[])},useWorkerSingleton=createSingleton(()=>new WorkerFactory,A=>A.terminate()),useWorkerParser=(A,E)=>{const C=useEventCallback(E),R=useWorkerSingleton();React.useEffect(()=>{if(typeof A=="string"){const I=B=>{const U=B.data||B;if(U.src===A){const V=U.error?U:genearate(U);C(V)}};return R.addEventListener("message",I),R.postMessage({src:A,type:"parse"}),()=>{R.postMessage({src:A,type:"cancel"}),R.removeEventListener("message",I)}}},[R,A])},PixiAnimatedSpriteComp=({isPlaying:A,forwardRef:E,...C})=>{const R=React__namespace.useRef(null);return React__namespace.useImperativeHandle(E,()=>R.current,[R]),React__namespace.useEffect(()=>{if(R.current===null)return;const I=R.current;I[A?"gotoAndPlay":"gotoAndStop"](I.currentFrame)},[A]),jsxRuntimeExports.jsx(react.AnimatedSprite,{ref:R,...C,isPlaying:A})},PixiAnimatedSprite=React__namespace.memo(PixiAnimatedSpriteComp),initialState$2={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0,currentFrame:0},PixiGifSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(0),[I,B]=React__namespace.useState([]),[,U]=React.useState(!1),V=React.useRef(null),X=React.useRef(null),K=React.useRef(initialState$2),J=React.useRef(),[Y,Z]=usePlayerState({autoPlay:!1}),{tl:_e}=React.useContext(GsapPixieContext),{src:xe,uniqueId:Se,startAt:Pe,endAt:Ee,frameStartAt:Ae,frameEndAt:Te,loop:we,visible:Ie,disabled:Fe,transformation:{width:ke=0,height:Le=0,x:Ge,y:He,colorCorrection:Be={}},pointerdown:je}=A,{frames:Ue,delays:ze}=Y;useWorkerParser(xe,Z);const{temperatureFilter:Ve,sharpnessFilter:Oe,hueFilter:$e,blurFilter:Re,adjustmentFilter:Me,vignetteFilter:Ne,noiseFilter:De}=withFiltersHook(Be),{blurRadius:Xe=0,vignette:qe=0,noise:Ye=0}=Be,Je=.1;React__namespace.useEffect(()=>{if(!isEmpty$2(Ue)){const Ze=map$1(Ue,st=>{const{data:et,width:We,height:it}=st,ot=new Uint8Array(et);return PIXI__namespace.Texture.fromBuffer(ot,We,it)}).map((st,et)=>({texture:st,time:ze[et]}));B(Ze);let tt=0;ze.forEach(st=>{tt+=st}),R(tt/1e3),K.current.totalDuration=tt,K.current.totalFrames=Ue.length}},[Se,Ue,ze]);const Ke=()=>{V.current&&(V.current.stop(),K.current.isPlaying=!1)},rt=()=>{if(V.current&&J.current){const Qe=J.current.time();let Ze=Qe===0?0:Qe/Je;Ze=isNaN(Ze)?0:Ze;const tt=K.current.totalFrames;Ze=Ze>tt?tt:Ze,Ze=Math.round(Ze),Ze>=tt?(V.current.gotoAndStop(0),K.current.isPlaying=!1):(V.current.currentFrame=Ze,K.current.isPlaying=!0)}},nt=()=>{U(!0)};return React.useEffect(()=>{let Qe=gsap$2.context(()=>{});if(X.current&&_e.current&&C>0){const Ze={duration:Number(C),onInterrupt:Ke,onUpdate:rt,onUpdateParams:[Ae,Te]},tt=Number(Ee)-Number(Pe),st=Math.max(0,Math.floor(tt/C)-1);J.current&&J.current.kill(),Qe=gsap$2.context(()=>{J.current=gsap$2.timeline({repeat:we?st:0,repeatDelay:0}).from(X.current,Ze,Ae),_e.current.add(J.current,Pe)})}return()=>{J.current&&(J.current.kill(),gsap$2.killTweensOf(J.current)),Qe.revert()}},[xe,Se,Pe,Ee,Ae,Te,C,we]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,isGif:!0,children:jsxRuntimeExports.jsx(react.Container,{ref:X,children:!isEmpty$2(I)&&jsxRuntimeExports.jsx(PixiAnimatedSprite,{x:Ge,y:He,width:ke,height:Le,animationSpeed:1,alpha:Ie?1:0,loop:we,textures:I,onComplete:nt,anchor:.5,forwardRef:V,...!Fe&&Ie&&{interactive:!0,pointerdown:je},filters:[Ve,Oe,$e,Me,...Xe>0?[Re]:[],...qe>0?[Ne]:[],...Ye>0?[De]:[]]})})})}),PixiTextSprite=React__namespace.forwardRef((A,E)=>{const R=React.useRef(0),I=React.useRef(null),B=React.useRef(16),U=React.useRef(null),V=React.useRef(null),X=react.useApp(),{visible:K,text:J,disabled:Y,transformation:Z,pointerdown:_e,onDobuleClick:xe,uniqueId:Se,startAt:Pe,endAt:Ee}=A,{x:Ae,y:Te,fontFamily:we="Arial",fontWeight:Ie="normal",fontStyle:Fe="normal",fontSize:ke=16,fontVariant:Le="normal",fill:Ge="black",stroke:He,strokeThickness:Be=0,blurRadius:je=0,blurEnabled:Ue=!1,dropShadowColor:ze=null,dropShadow:Ve=!1,dropShadowBlur:Oe=0,wordWrapWidth:$e=5e7,leading:Re=0,letterSpacing:Me,colorCorrection:Ne={},backgroundColor:De="transparent",width:Xe,height:qe}=Z,{temperatureFilter:Ye,sharpnessFilter:Je,hueFilter:Ke,blurFilter:rt,adjustmentFilter:nt}=withFiltersHook(Ne),{blurRadius:Qe=0}=Ne;useCustomEventListener(Events.FONTS_LOADED,()=>{I.current&&I.current.updateText&&I.current.updateText(!0)}),React__namespace.useEffect(()=>{B.current=Number(ke)},[ke]);const Ze=["italic","oblique"].includes(Fe)?Fe:void 0,tt=["small-caps"].includes(Le),st=["bold","bolder","lighter","100","200","300"].includes(Ie)?Ie:void 0,et=Number(Me)>0?Me:void 0,We=De==="transparent"?null:PIXI__namespace.utils.string2hex(De),it=React__namespace.useMemo(()=>new PIXI__namespace.TextStyle({fontFamily:we,fontSize:ke,fill:Ge||"white",...He&&Be>0&&{stroke:He,strokeThickness:Be},...Ze&&{fontStyle:Ze},...tt&&{fontVariant:tt},...st&&{fontWeight:st},...et&&{letterSpacing:et},...Ue&&{dropShadow:!0,dropShadowBlur:Number(je),dropShadowColor:(ze==null?void 0:ze.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...Ve&&{dropShadow:!0,dropShadowBlur:Number(Oe),dropShadowColor:(ze==null?void 0:ze.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:$e||500,leading:Re||0}),[Ue,je,Ge,we,ke,Fe,Re,Ze,st,tt,et,ze,He,Be,$e,Ve,Oe]);React__namespace.useEffect(()=>{U.current={...Z}},[Z]),React__namespace.useImperativeHandle(E,()=>({setWordWrap:(ft,mt={x:1,y:1})=>{if(I.current){I.current.style.wordWrapWidth=ft,I.current.dirty=!0;const ct=1/mt.x,xt=1/mt.y;I.current.scale.set(ct,xt),I.current.updateText(!0)}},setFontSizeAndTransform:(ft,mt,ct={x:1,y:1})=>{if(I.current){I.current.style.wordWrapWidth=ft,I.current.style.fontSize=mt,I.current.dirty=!0;const xt=1/ct.x,bt=1/ct.y;I.current.scale.set(xt,bt),I.current.updateText(!0)}},resetScale:()=>{I.current&&I.current.scale.set(1,1)}}),[Se,Pe,Ee]);const ot=React__namespace.useCallback((ft,mt={x:1,y:1})=>{if(I.current){I.current.style.wordWrapWidth=ft,I.current.dirty=!0;const ct=1/mt.x,xt=1/mt.y;I.current.scale.set(ct,xt),I.current.updateText(!0)}},[I.current]),ht=React__namespace.useCallback((ft,mt,ct={x:1,y:1})=>{if(I.current){I.current.style.wordWrapWidth=ft,I.current.style.fontSize=mt,I.current.dirty=!0;const xt=1/ct.x,bt=1/ct.y;I.current.scale.set(xt,bt),I.current.updateText(!0)}},[I.current,U.current]);React__namespace.useEffect(()=>{if(We===null||We===0)return;const ft=new PIXI__namespace.Graphics;ft.beginFill(We||16724736),ft.drawRect(0,0,Xe,qe),ft.endFill(),V.current&&(V.current.texture=X.renderer.generateTexture(ft),V.current.texture.update())},[We,Xe,qe]);const gt=()=>{const ft=new Date().getTime();ft-R.current<300&&xe?xe():_e&&_e(),R.current=ft},pt=()=>{!Y&&xe&&xe()};return jsxRuntimeExports.jsxs(AbstractContainer,{...A,ref:E,isText:!0,onDoubleClick:pt,handleDragWordWrap:ot,handleDragFontSize:ht,children:[jsxRuntimeExports.jsx(react.Sprite,{texture:PIXI__namespace.Texture.WHITE,x:Ae,y:Te,width:Xe||100,height:qe||100,anchor:.5,alpha:K&&We?1:0,ref:V}),jsxRuntimeExports.jsx(react.Text,{style:it,x:Ae,y:Te,anchor:.5,text:J,alpha:K?1:0,...K&&!Y&&{interactive:!0,buttonMode:!0,pointerdown:gt},ref:I,filters:[Ye,Je,Ke,nt,...Qe>0?[rt]:[]]})]})});var root=_root,now$1=function(){return root.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(A){for(var E=A.length;E--&&reWhitespace.test(A.charAt(E)););return E}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(A){return A&&A.slice(0,trimmedEndIndex(A)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$1=isObject_1,isSymbol=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(A){if(typeof A=="number")return A;if(isSymbol(A))return NAN;if(isObject$1(A)){var E=typeof A.valueOf=="function"?A.valueOf():A;A=isObject$1(E)?E+"":E}if(typeof A!="string")return A===0?A:+A;A=baseTrim(A);var C=reIsBinary.test(A);return C||reIsOctal.test(A)?freeParseInt(A.slice(2),C?2:8):reIsBadHex.test(A)?NAN:+A}var toNumber_1=toNumber$1,isObject=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(A,E,C){var R,I,B,U,V,X,K=0,J=!1,Y=!1,Z=!0;if(typeof A!="function")throw new TypeError(FUNC_ERROR_TEXT);E=toNumber(E)||0,isObject(C)&&(J=!!C.leading,Y="maxWait"in C,B=Y?nativeMax(toNumber(C.maxWait)||0,E):B,Z="trailing"in C?!!C.trailing:Z);function _e(Fe){var ke=R,Le=I;return R=I=void 0,K=Fe,U=A.apply(Le,ke),U}function xe(Fe){return K=Fe,V=setTimeout(Ee,E),J?_e(Fe):U}function Se(Fe){var ke=Fe-X,Le=Fe-K,Ge=E-ke;return Y?nativeMin(Ge,B-Le):Ge}function Pe(Fe){var ke=Fe-X,Le=Fe-K;return X===void 0||ke>=E||ke<0||Y&&Le>=B}function Ee(){var Fe=now();if(Pe(Fe))return Ae(Fe);V=setTimeout(Ee,Se(Fe))}function Ae(Fe){return V=void 0,Z&&R?_e(Fe):(R=I=void 0,U)}function Te(){V!==void 0&&clearTimeout(V),K=0,R=X=I=V=void 0}function we(){return V===void 0?U:Ae(now())}function Ie(){var Fe=now(),ke=Pe(Fe);if(R=arguments,I=this,X=Fe,ke){if(V===void 0)return xe(X);if(Y)return clearTimeout(V),V=setTimeout(Ee,E),_e(X)}return V===void 0&&(V=setTimeout(Ee,E)),U}return Ie.cancel=Te,Ie.flush=we,Ie}var debounce_1=debounce;const debounce$1=getDefaultExportFromCjs(debounce_1),useDebouncedPointerEvents=(A,E,C,R)=>{const I=React.useCallback(debounce$1(A,R),[A,R]),B=React.useCallback(debounce$1(E,R),[E,R]),U=React.useCallback(debounce$1(C,R),[C,R]),V=React.useCallback(()=>{I()},[I]),X=React.useCallback(()=>{B()},[B]),K=React.useCallback(()=>{U()},[U]);return{onPointerOver:V,onPointerDown:X,onPointerOut:K}},initialState$1={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},PixiVideoSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(!1),I=React__namespace.useRef(),B=React.useRef(null),U=React.useRef(null),V=React.useRef(null),X=React.useRef(initialState$1),K=React.useRef(),{uniqueId:J,mute:Y=!1,src:Z,startAt:_e,endAt:xe,frameStartAt:Se,frameEndAt:Pe,visible:Ee,disabled:Ae,transformation:{x:Te,y:we,width:Ie,height:Fe,animation:ke,colorCorrection:Le={}},pointerdown:Ge=()=>{},pointerout:He=()=>{},pointerover:Be=()=>{},fps:je=0}=A,{tl:Ue,dragModeRef:ze,isRemotion:Ve}=React.useContext(GsapPixieContext),{onPointerDown:Oe,onPointerOut:$e,onPointerOver:Re}=useDebouncedPointerEvents(Be,Ge,He,1),{blurRadius:Me=0,vignette:Ne=0,noise:De=0}=Le,{temperatureFilter:Xe,sharpnessFilter:qe,hueFilter:Ye,blurFilter:Je,adjustmentFilter:Ke,vignetteFilter:rt,noiseFilter:nt}=withFiltersHook(Le),Qe=Z||"",Ze=React__namespace.useMemo(()=>{const it=document.createElement("video");return it.src=Z,it.crossOrigin="Anonymus",it.autoplay=!1,it.currentTime=Se===0?.001:Se,it},[Z,Se]);useCustomEventListener(Events.PAUSE,()=>{V.current&&(V.current.pause(),X.current.isPlaying=!1)}),useCustomEventListener(Events.SCRUBBER_CLICKED,()=>{V.current&&(V.current.pause(),X.current.isPlaying=!1)}),useCustomEventListener(Events.REVERSE_MODE_END,()=>{V.current&&(V.current.pause(),X.current.isPlaying=!1)});const tt=it=>{if(V.current){if(V.current.currentTime=Number(it),!ze.current){const ot=V.current,ht=ot.currentTime>0&&!ot.paused&&!ot.ended&&ot.readyState>ot.HAVE_CURRENT_DATA;Ue.current&&Ue.current.isActive()&&K.current&&K.current.isActive()&&(ht||V.current.play(),X.current.isPlaying=!0)}X.current.progress=0}},st=()=>{if(V.current){const it=V.current;it.currentTime>0&&!it.paused&&!it.ended&&it.readyState>it.HAVE_CURRENT_DATA&&V.current.pause(),X.current.isPlaying=!1,K.current&&(X.current.progress=K.current.progress())}},et=()=>{},We=()=>{var it,ot;if(K.current&&(X.current.progress=K.current.progress()),V.current&&K.current){const ht=Se+((it=K==null?void 0:K.current)==null?void 0:it.time()),gt=Math.abs(V.current.currentTime-ht),pt=V.current,ft=pt.currentTime>0&&!pt.paused&&!pt.ended&&pt.readyState>pt.HAVE_CURRENT_DATA;ze.current&&I.current?(V.current.currentTime=ht,I.current.update(),X.current.isPlaying=!1):(ft!==X.current.isPlaying||!ft)&&X.current.progress>.01&&X.current.progress<.99?(ot=Ue.current)!=null&&ot.isActive()&&K.current&&K.current.isActive()&&(ft||V.current.play(),X.current.isPlaying=!0):gt>.3&&X.current.progress>.01&&X.current.progress<.99&&(V.current.currentTime=ht)}};return React.useEffect(()=>{let it=gsap$2.context(()=>{});if(U.current&&Ue.current){const ot={duration:Number(xe)-Number(_e),onStart:tt,onComplete:st,onStartParams:[Se,Pe],onCompleteParams:[],onInterrupt:et,onUpdate:We,onUpdateParams:[Se,Pe],onPause:()=>{console.log("onPause video sprite pause",J)},onResume:()=>{console.log("onResume video sprite resume",J)},onReverseComplete:()=>{console.log("onReverseComplete video sprite reverse complete",J)},onKill:()=>{console.log("onKill video sprite kill",J)}};K.current&&(K.current.kill(),Ue.current.remove(K.current)),it=gsap$2.context(()=>{K.current=gsap$2.to(U.current,ot,Se),Ue.current.add(K.current,_e)})}return()=>{K.current&&(K.current.kill(),gsap$2.killTweensOf(K.current)),it.revert()}},[ke,_e,xe,Se,Pe,J]),React__namespace.useEffect(()=>{V.current&&(V.current.muted=Y,X.current.isMuted=Y);const it=setTimeout(()=>{V.current&&(V.current.muted=Y,X.current.isMuted=Y)},1500);return()=>{clearTimeout(it)}},[Y]),React__namespace.useEffect(()=>{const it=Math.round((Number(Se)+Number.EPSILON)*100)/100,ot=function(){V.current&&(V.current.currentTime=it,V.current.muted=Y)},ht=function(){X.current.isWaiting=!1,X.current.isStalled=!1},gt=function(){X.current.isWaiting=!0,X.current.isStalled=!1},pt=function(){X.current.isWaiting=!1,X.current.isStalled=!1},ft=function(){X.current.isWaiting=!1,X.current.isStalled=!0},mt=Math.round((Number(Se)+Number.EPSILON)*100)/100,ct=Math.round((Number(Pe)+Number.EPSILON)*100)/100,xt=`${Qe}#t=${mt},${ct}`;return PIXI__namespace.Texture.fromLoader(Ze,xt,J,{pixiIdPrefix:J,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:je?Math.max(120,Number(je)):30}}).then(bt=>{bt&&(I.current=bt,R(!0),V.current=bt.baseTexture.resource.source,V.current.id=J,V.current.addEventListener("loadedmetadata",ot),V.current.addEventListener("ended",ht),V.current.addEventListener("loadstart",gt),V.current.addEventListener("canplaythrough",pt),V.current.addEventListener("stalled",ft))}),()=>{V.current&&(V.current.pause(),V.current.removeEventListener("loadedmetadata",ot),V.current.removeEventListener("ended",ht),V.current.removeEventListener("loadstart",gt),V.current.removeEventListener("canplaythrough",pt),V.current.removeEventListener("stalled",ft))}},[Qe,J,Se,Pe,Ze]),React__namespace.useEffect(()=>{const it=setTimeout(()=>{C&&I.current&&K.current&&Ue.current&&K.current.progress()<.1&&V.current&&!K.current.isActive()&&!Ve&&(V.current.currentTime=Se,I.current.update())},30);return()=>{clearTimeout(it)}},[C]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,pointerdown:Oe,pointerover:Re,pointerout:$e,children:jsxRuntimeExports.jsx(react.Container,{ref:U,children:I.current&&jsxRuntimeExports.jsx(react.Sprite,{texture:I.current,width:Ie,height:Fe,anchor:.5,x:Te,y:we,ref:B,alpha:Ee?1:0,...!Ae&&Ee&&{interactive:!0,pointerdown:Ge},filters:[Xe,qe,Ye,Ke,...Me>0?[Je]:[],...Ne>0?[rt]:[],...De>0?[nt]:[]]})})})});PixiVideoSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};const PixiVideoCanvasSyncSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(),I=React.useRef(null),B=React.useRef(null),{visible:U,disabled:V,transformation:{x:X,y:K,width:J,height:Y,colorCorrection:Z={}},pointerdown:_e=()=>{},pointerout:xe=()=>{},pointerover:Se=()=>{},canvasImageRef:Pe}=A,Ee=Pe&&(Pe==null?void 0:Pe.getCanvas()),Ae=react.useApp(),{onPointerDown:Te,onPointerOut:we,onPointerOver:Ie}=useDebouncedPointerEvents(Se,_e,xe,1),{blurRadius:Fe=0,vignette:ke=0,noise:Le=0}=Z,{temperatureFilter:Ge,sharpnessFilter:He,hueFilter:Be,blurFilter:je,adjustmentFilter:Ue,vignetteFilter:ze,noiseFilter:Ve}=withFiltersHook(Z);return react.useTick(()=>{if(I.current&&I.current.texture){const Oe=I.current.texture.baseTexture;Oe&&Oe.update(),B.current&&Ae.renderer.render(B.current)}}),React__namespace.useEffect(()=>{if(!isEmpty$2(Ee)){const Oe=PIXI__namespace.Texture.from(Ee);R(Oe)}},[Ee]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,pointerdown:Te,pointerover:Ie,pointerout:we,children:jsxRuntimeExports.jsx(react.Container,{ref:B,children:C&&jsxRuntimeExports.jsx(react.Sprite,{texture:C,width:J,height:Y,anchor:.5,x:X,y:K,ref:I,alpha:U?1:0,...!V&&U&&{interactive:!0,pointerdown:_e},filters:[Ge,He,Be,Ue,...Fe>0?[je]:[],...ke>0?[ze]:[],...Le>0?[Ve]:[]]})})})}),PixiSequence=A=>{const{startAt:E,endAt:C,uniqueId:R}=A,I=React.useRef(null),B=React.useRef(null),U=React.useRef(null),V=React.useRef(null),{tl:X,totalDuration:K=0}=React.useContext(GsapPixieContext);return React__namespace.useEffect(()=>{const J=gsap$2.context(()=>{if(I.current&&X.current){V.current&&(V.current.kill(),X.current.remove(V.current));const Y=E<.2?1:0;V.current=gsap$2.timeline().set(I.current,{alpha:Y}).set(I.current,{pixi:{alpha:1,eventMode:"static"}},.01).to(I.current,{pixi:{},duration:Number(C)-Number(E)}).set(I.current,{alpha:0,eventMode:"none"}),X.current.add([V.current],E)}});return()=>{V.current&&(X.current.remove(V.current),V.current.progress(0).kill()),J.revert()}},[E,C,K,R]),jsxRuntimeExports.jsx(react.Container,{ref:I,alpha:E<.2?1:0,eventMode:E<.2?"static":"none",children:jsxRuntimeExports.jsx(react.Container,{ref:U,children:jsxRuntimeExports.jsx(react.Container,{ref:B,alpha:1,children:A.children})})})},PixiSequenceWrapper=A=>{const{startAt:E,endAt:C}=A,{setTotalDuration:R}=React.useContext(GsapPixieContext);return React__namespace.useEffect(()=>{R&&R(Number(C)+.2)},[E,C]),A.children},PixiRemotionSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(),I=React.useRef(null),B=React.useRef(null),{visible:U,disabled:V,transformation:{x:X,y:K,width:J,height:Y,colorCorrection:Z={}},pointerdown:_e=()=>{},pointerout:xe=()=>{},pointerover:Se=()=>{},canvasImageRef:Pe}=A,Ee=Pe&&(Pe==null?void 0:Pe.getCanvas()),Ae=react.useApp(),{onPointerDown:Te,onPointerOut:we,onPointerOver:Ie}=useDebouncedPointerEvents(Se,_e,xe,1),{blurRadius:Fe=0,vignette:ke=0,noise:Le=0}=Z,{temperatureFilter:Ge,sharpnessFilter:He,hueFilter:Be,blurFilter:je,adjustmentFilter:Ue,vignetteFilter:ze,noiseFilter:Ve}=withFiltersHook(Z);return react.useTick(()=>{if(I.current&&I.current.texture){const Oe=I.current.texture.baseTexture;Oe&&Oe.update(),B.current&&Ae.renderer.render(B.current)}}),React__namespace.useEffect(()=>{if(!isEmpty$2(Ee)){const Oe=PIXI__namespace.Texture.from(Ee);R(Oe)}},[Ee]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,pointerdown:Te,pointerover:Ie,pointerout:we,children:jsxRuntimeExports.jsx(react.Container,{ref:B,children:C&&jsxRuntimeExports.jsx(react.Sprite,{texture:C,width:J,height:Y,anchor:.5,x:X,y:K,ref:I,alpha:U?1:0,...!V&&U&&{interactive:!0,pointerdown:_e},filters:[Ge,He,Be,Ue,...Fe>0?[je]:[],...ke>0?[ze]:[],...Le>0?[Ve]:[]]})})})});var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(A,E){module.exports=E()}(commonjsGlobal$1,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(E){_useWebWorker=!!E},getWebWorker=function(){return _useWebWorker},setLocationHref=function(E){locationHref=E},getLocationHref=function(){return locationHref};function createTag(A){return document.createElement(A)}function extendPrototype(A,E){var C,R=A.length,I;for(C=0;C<R;C+=1){I=A[C].prototype;for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&(E.prototype[B]=I[B])}}function getDescriptor(A,E){return Object.getOwnPropertyDescriptor(A,E)}function createProxyFunction(A){function E(){}return E.prototype=A,E}var audioControllerFactory=function(){function A(E){this.audios=[],this.audioFactory=E,this._volume=1,this._isMuted=!1}return A.prototype={addAudio:function(C){this.audios.push(C)},pause:function(){var C,R=this.audios.length;for(C=0;C<R;C+=1)this.audios[C].pause()},resume:function(){var C,R=this.audios.length;for(C=0;C<R;C+=1)this.audios[C].resume()},setRate:function(C){var R,I=this.audios.length;for(R=0;R<I;R+=1)this.audios[R].setRate(C)},createAudio:function(C){return this.audioFactory?this.audioFactory(C):window.Howl?new window.Howl({src:[C]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(C){this.audioFactory=C},setVolume:function(C){this._volume=C,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var C,R=this.audios.length;for(C=0;C<R;C+=1)this.audios[C].volume(this._volume*(this._isMuted?0:1))}},function(){return new A}}(),createTypedArray=function(){function A(C,R){var I=0,B=[],U;switch(C){case"int16":case"uint8c":U=1;break;default:U=1.1;break}for(I=0;I<R;I+=1)B.push(U);return B}function E(C,R){return C==="float32"?new Float32Array(R):C==="int16"?new Int16Array(R):C==="uint8c"?new Uint8ClampedArray(R):A(C,R)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?E:A}();function createSizedArray(A){return Array.apply(null,{length:A})}function _typeof$6(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(C){return typeof C}:_typeof$6=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$6(A)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var A=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],E,C=A.length;for(E=0;E<C;E+=1)BMMath[A[E]]=Math[A[E]]})(),BMMath.random=Math.random,BMMath.abs=function(A){var E=_typeof$6(A);if(E==="object"&&A.length){var C=createSizedArray(A.length),R,I=A.length;for(R=0;R<I;R+=1)C[R]=Math.abs(A[R]);return C}return Math.abs(A)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(A){A.style.position="absolute",A.style.top=0,A.style.left=0,A.style.display="block",A.style.transformOrigin="0 0",A.style.webkitTransformOrigin="0 0",A.style.backfaceVisibility="visible",A.style.webkitBackfaceVisibility="visible",A.style.transformStyle="preserve-3d",A.style.webkitTransformStyle="preserve-3d",A.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(A,E,C,R){this.type=A,this.currentTime=E,this.totalTime=C,this.direction=R<0?-1:1}function BMCompleteEvent(A,E){this.type=A,this.direction=E<0?-1:1}function BMCompleteLoopEvent(A,E,C,R){this.type=A,this.currentLoop=C,this.totalLoops=E,this.direction=R<0?-1:1}function BMSegmentStartEvent(A,E,C){this.type=A,this.firstFrame=E,this.totalFrames=C}function BMDestroyEvent(A,E){this.type=A,this.target=E}function BMRenderFrameErrorEvent(A,E){this.type="renderFrameError",this.nativeError=A,this.currentTime=E}function BMConfigErrorEvent(A){this.type="configError",this.nativeError=A}var createElementID=function(){var A=0;return function(){return A+=1,idPrefix$1+"__lottie_element_"+A}}();function HSVtoRGB(A,E,C){var R,I,B,U,V,X,K,J;switch(U=Math.floor(A*6),V=A*6-U,X=C*(1-E),K=C*(1-V*E),J=C*(1-(1-V)*E),U%6){case 0:R=C,I=J,B=X;break;case 1:R=K,I=C,B=X;break;case 2:R=X,I=C,B=J;break;case 3:R=X,I=K,B=C;break;case 4:R=J,I=X,B=C;break;case 5:R=C,I=X,B=K;break}return[R,I,B]}function RGBtoHSV(A,E,C){var R=Math.max(A,E,C),I=Math.min(A,E,C),B=R-I,U,V=R===0?0:B/R,X=R/255;switch(R){case I:U=0;break;case A:U=E-C+B*(E<C?6:0),U/=6*B;break;case E:U=C-A+B*2,U/=6*B;break;case C:U=A-E+B*4,U/=6*B;break}return[U,V,X]}function addSaturationToRGB(A,E){var C=RGBtoHSV(A[0]*255,A[1]*255,A[2]*255);return C[1]+=E,C[1]>1?C[1]=1:C[1]<=0&&(C[1]=0),HSVtoRGB(C[0],C[1],C[2])}function addBrightnessToRGB(A,E){var C=RGBtoHSV(A[0]*255,A[1]*255,A[2]*255);return C[2]+=E,C[2]>1?C[2]=1:C[2]<0&&(C[2]=0),HSVtoRGB(C[0],C[1],C[2])}function addHueToRGB(A,E){var C=RGBtoHSV(A[0]*255,A[1]*255,A[2]*255);return C[0]+=E/360,C[0]>1?C[0]-=1:C[0]<0&&(C[0]+=1),HSVtoRGB(C[0],C[1],C[2])}var rgbToHex=function(){var A=[],E,C;for(E=0;E<256;E+=1)C=E.toString(16),A[E]=C.length===1?"0"+C:C;return function(R,I,B){return R<0&&(R=0),I<0&&(I=0),B<0&&(B=0),"#"+A[R]+A[I]+A[B]}}(),setSubframeEnabled=function(E){subframeEnabled=!!E},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(E){expressionsPlugin=E},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(E){expressionsInterfaces=E},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(E){defaultCurveSegments=E},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(E){idPrefix$1=E};function createNS(A){return document.createElementNS(svgNS,A)}function _typeof$5(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(C){return typeof C}:_typeof$5=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$5(A)}var dataManager=function(){var A=1,E=[],C,R,I={onmessage:function(){},postMessage:function(_e){C({data:_e})}},B={postMessage:function(_e){I.onmessage({data:_e})}};function U(Z){if(window.Worker&&window.Blob&&getWebWorker()){var _e=new Blob(["var _workerSelf = self; self.onmessage = ",Z.toString()],{type:"text/javascript"}),xe=URL.createObjectURL(_e);return new Worker(xe)}return C=Z,I}function V(){R||(R=U(function(_e){function xe(){function Pe(Ve,Oe){var $e,Re,Me=Ve.length,Ne,De,Xe,qe;for(Re=0;Re<Me;Re+=1)if($e=Ve[Re],"ks"in $e&&!$e.completed){if($e.completed=!0,$e.hasMask){var Ye=$e.masksProperties;for(De=Ye.length,Ne=0;Ne<De;Ne+=1)if(Ye[Ne].pt.k.i)Ie(Ye[Ne].pt.k);else for(qe=Ye[Ne].pt.k.length,Xe=0;Xe<qe;Xe+=1)Ye[Ne].pt.k[Xe].s&&Ie(Ye[Ne].pt.k[Xe].s[0]),Ye[Ne].pt.k[Xe].e&&Ie(Ye[Ne].pt.k[Xe].e[0])}$e.ty===0?($e.layers=Te($e.refId,Oe),Pe($e.layers,Oe)):$e.ty===4?we($e.shapes):$e.ty===5&&Ue($e)}}function Ee(Ve,Oe){if(Ve){var $e=0,Re=Ve.length;for($e=0;$e<Re;$e+=1)Ve[$e].t===1&&(Ve[$e].data.layers=Te(Ve[$e].data.refId,Oe),Pe(Ve[$e].data.layers,Oe))}}function Ae(Ve,Oe){for(var $e=0,Re=Oe.length;$e<Re;){if(Oe[$e].id===Ve)return Oe[$e];$e+=1}return null}function Te(Ve,Oe){var $e=Ae(Ve,Oe);return $e?$e.layers.__used?JSON.parse(JSON.stringify($e.layers)):($e.layers.__used=!0,$e.layers):null}function we(Ve){var Oe,$e=Ve.length,Re,Me;for(Oe=$e-1;Oe>=0;Oe-=1)if(Ve[Oe].ty==="sh")if(Ve[Oe].ks.k.i)Ie(Ve[Oe].ks.k);else for(Me=Ve[Oe].ks.k.length,Re=0;Re<Me;Re+=1)Ve[Oe].ks.k[Re].s&&Ie(Ve[Oe].ks.k[Re].s[0]),Ve[Oe].ks.k[Re].e&&Ie(Ve[Oe].ks.k[Re].e[0]);else Ve[Oe].ty==="gr"&&we(Ve[Oe].it)}function Ie(Ve){var Oe,$e=Ve.i.length;for(Oe=0;Oe<$e;Oe+=1)Ve.i[Oe][0]+=Ve.v[Oe][0],Ve.i[Oe][1]+=Ve.v[Oe][1],Ve.o[Oe][0]+=Ve.v[Oe][0],Ve.o[Oe][1]+=Ve.v[Oe][1]}function Fe(Ve,Oe){var $e=Oe?Oe.split("."):[100,100,100];return Ve[0]>$e[0]?!0:$e[0]>Ve[0]?!1:Ve[1]>$e[1]?!0:$e[1]>Ve[1]?!1:Ve[2]>$e[2]?!0:$e[2]>Ve[2]?!1:null}var ke=function(){var Ve=[4,4,14];function Oe(Re){var Me=Re.t.d;Re.t.d={k:[{s:Me,t:0}]}}function $e(Re){var Me,Ne=Re.length;for(Me=0;Me<Ne;Me+=1)Re[Me].ty===5&&Oe(Re[Me])}return function(Re){if(Fe(Ve,Re.v)&&($e(Re.layers),Re.assets)){var Me,Ne=Re.assets.length;for(Me=0;Me<Ne;Me+=1)Re.assets[Me].layers&&$e(Re.assets[Me].layers)}}}(),Le=function(){var Ve=[4,7,99];return function(Oe){if(Oe.chars&&!Fe(Ve,Oe.v)){var $e,Re=Oe.chars.length;for($e=0;$e<Re;$e+=1){var Me=Oe.chars[$e];Me.data&&Me.data.shapes&&(we(Me.data.shapes),Me.data.ip=0,Me.data.op=99999,Me.data.st=0,Me.data.sr=1,Me.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Oe.chars[$e].t||(Me.data.shapes.push({ty:"no"}),Me.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Ge=function(){var Ve=[5,7,15];function Oe(Re){var Me=Re.t.p;typeof Me.a=="number"&&(Me.a={a:0,k:Me.a}),typeof Me.p=="number"&&(Me.p={a:0,k:Me.p}),typeof Me.r=="number"&&(Me.r={a:0,k:Me.r})}function $e(Re){var Me,Ne=Re.length;for(Me=0;Me<Ne;Me+=1)Re[Me].ty===5&&Oe(Re[Me])}return function(Re){if(Fe(Ve,Re.v)&&($e(Re.layers),Re.assets)){var Me,Ne=Re.assets.length;for(Me=0;Me<Ne;Me+=1)Re.assets[Me].layers&&$e(Re.assets[Me].layers)}}}(),He=function(){var Ve=[4,1,9];function Oe(Re){var Me,Ne=Re.length,De,Xe;for(Me=0;Me<Ne;Me+=1)if(Re[Me].ty==="gr")Oe(Re[Me].it);else if(Re[Me].ty==="fl"||Re[Me].ty==="st")if(Re[Me].c.k&&Re[Me].c.k[0].i)for(Xe=Re[Me].c.k.length,De=0;De<Xe;De+=1)Re[Me].c.k[De].s&&(Re[Me].c.k[De].s[0]/=255,Re[Me].c.k[De].s[1]/=255,Re[Me].c.k[De].s[2]/=255,Re[Me].c.k[De].s[3]/=255),Re[Me].c.k[De].e&&(Re[Me].c.k[De].e[0]/=255,Re[Me].c.k[De].e[1]/=255,Re[Me].c.k[De].e[2]/=255,Re[Me].c.k[De].e[3]/=255);else Re[Me].c.k[0]/=255,Re[Me].c.k[1]/=255,Re[Me].c.k[2]/=255,Re[Me].c.k[3]/=255}function $e(Re){var Me,Ne=Re.length;for(Me=0;Me<Ne;Me+=1)Re[Me].ty===4&&Oe(Re[Me].shapes)}return function(Re){if(Fe(Ve,Re.v)&&($e(Re.layers),Re.assets)){var Me,Ne=Re.assets.length;for(Me=0;Me<Ne;Me+=1)Re.assets[Me].layers&&$e(Re.assets[Me].layers)}}}(),Be=function(){var Ve=[4,4,18];function Oe(Re){var Me,Ne=Re.length,De,Xe;for(Me=Ne-1;Me>=0;Me-=1)if(Re[Me].ty==="sh")if(Re[Me].ks.k.i)Re[Me].ks.k.c=Re[Me].closed;else for(Xe=Re[Me].ks.k.length,De=0;De<Xe;De+=1)Re[Me].ks.k[De].s&&(Re[Me].ks.k[De].s[0].c=Re[Me].closed),Re[Me].ks.k[De].e&&(Re[Me].ks.k[De].e[0].c=Re[Me].closed);else Re[Me].ty==="gr"&&Oe(Re[Me].it)}function $e(Re){var Me,Ne,De=Re.length,Xe,qe,Ye,Je;for(Ne=0;Ne<De;Ne+=1){if(Me=Re[Ne],Me.hasMask){var Ke=Me.masksProperties;for(qe=Ke.length,Xe=0;Xe<qe;Xe+=1)if(Ke[Xe].pt.k.i)Ke[Xe].pt.k.c=Ke[Xe].cl;else for(Je=Ke[Xe].pt.k.length,Ye=0;Ye<Je;Ye+=1)Ke[Xe].pt.k[Ye].s&&(Ke[Xe].pt.k[Ye].s[0].c=Ke[Xe].cl),Ke[Xe].pt.k[Ye].e&&(Ke[Xe].pt.k[Ye].e[0].c=Ke[Xe].cl)}Me.ty===4&&Oe(Me.shapes)}}return function(Re){if(Fe(Ve,Re.v)&&($e(Re.layers),Re.assets)){var Me,Ne=Re.assets.length;for(Me=0;Me<Ne;Me+=1)Re.assets[Me].layers&&$e(Re.assets[Me].layers)}}}();function je(Ve){Ve.__complete||(He(Ve),ke(Ve),Le(Ve),Ge(Ve),Be(Ve),Pe(Ve.layers,Ve.assets),Ee(Ve.chars,Ve.assets),Ve.__complete=!0)}function Ue(Ve){Ve.t.a.length===0&&"m"in Ve.t.p}var ze={};return ze.completeData=je,ze.checkColors=He,ze.checkChars=Le,ze.checkPathProperties=Ge,ze.checkShapes=Be,ze.completeLayers=Pe,ze}if(B.dataManager||(B.dataManager=xe()),B.assetLoader||(B.assetLoader=function(){function Pe(Ae){var Te=Ae.getResponseHeader("content-type");return Te&&Ae.responseType==="json"&&Te.indexOf("json")!==-1||Ae.response&&_typeof$5(Ae.response)==="object"?Ae.response:Ae.response&&typeof Ae.response=="string"?JSON.parse(Ae.response):Ae.responseText?JSON.parse(Ae.responseText):null}function Ee(Ae,Te,we,Ie){var Fe,ke=new XMLHttpRequest;try{ke.responseType="json"}catch{}ke.onreadystatechange=function(){if(ke.readyState===4)if(ke.status===200)Fe=Pe(ke),we(Fe);else try{Fe=Pe(ke),we(Fe)}catch(Le){Ie&&Ie(Le)}};try{ke.open(["G","E","T"].join(""),Ae,!0)}catch{ke.open(["G","E","T"].join(""),Te+"/"+Ae,!0)}ke.send()}return{load:Ee}}()),_e.data.type==="loadAnimation")B.assetLoader.load(_e.data.path,_e.data.fullPath,function(Pe){B.dataManager.completeData(Pe),B.postMessage({id:_e.data.id,payload:Pe,status:"success"})},function(){B.postMessage({id:_e.data.id,status:"error"})});else if(_e.data.type==="complete"){var Se=_e.data.animation;B.dataManager.completeData(Se),B.postMessage({id:_e.data.id,payload:Se,status:"success"})}else _e.data.type==="loadData"&&B.assetLoader.load(_e.data.path,_e.data.fullPath,function(Pe){B.postMessage({id:_e.data.id,payload:Pe,status:"success"})},function(){B.postMessage({id:_e.data.id,status:"error"})})}),R.onmessage=function(Z){var _e=Z.data,xe=_e.id,Se=E[xe];E[xe]=null,_e.status==="success"?Se.onComplete(_e.payload):Se.onError&&Se.onError()})}function X(Z,_e){A+=1;var xe="processId_"+A;return E[xe]={onComplete:Z,onError:_e},xe}function K(Z,_e,xe){V();var Se=X(_e,xe);R.postMessage({type:"loadAnimation",path:Z,fullPath:window.location.origin+window.location.pathname,id:Se})}function J(Z,_e,xe){V();var Se=X(_e,xe);R.postMessage({type:"loadData",path:Z,fullPath:window.location.origin+window.location.pathname,id:Se})}function Y(Z,_e,xe){V();var Se=X(_e,xe);R.postMessage({type:"complete",animation:Z,id:Se})}return{loadAnimation:K,loadData:J,completeAnimation:Y}}(),ImagePreloader=function(){var A=function(){var Ee=createTag("canvas");Ee.width=1,Ee.height=1;var Ae=Ee.getContext("2d");return Ae.fillStyle="rgba(0,0,0,0)",Ae.fillRect(0,0,1,1),Ee}();function E(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function C(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function R(Ee,Ae,Te){var we="";if(Ee.e)we=Ee.p;else if(Ae){var Ie=Ee.p;Ie.indexOf("images/")!==-1&&(Ie=Ie.split("/")[1]),we=Ae+Ie}else we=Te,we+=Ee.u?Ee.u:"",we+=Ee.p;return we}function I(Ee){var Ae=0,Te=setInterval((function(){var we=Ee.getBBox();(we.width||Ae>500)&&(this._imageLoaded(),clearInterval(Te)),Ae+=1}).bind(this),50)}function B(Ee){var Ae=R(Ee,this.assetsPath,this.path),Te=createNS("image");isSafari?this.testImageLoaded(Te):Te.addEventListener("load",this._imageLoaded,!1),Te.addEventListener("error",(function(){we.img=A,this._imageLoaded()}).bind(this),!1),Te.setAttributeNS("http://www.w3.org/1999/xlink","href",Ae),this._elementHelper.append?this._elementHelper.append(Te):this._elementHelper.appendChild(Te);var we={img:Te,assetData:Ee};return we}function U(Ee){var Ae=R(Ee,this.assetsPath,this.path),Te=createTag("img");Te.crossOrigin="anonymous",Te.addEventListener("load",this._imageLoaded,!1),Te.addEventListener("error",(function(){we.img=A,this._imageLoaded()}).bind(this),!1),Te.src=Ae;var we={img:Te,assetData:Ee};return we}function V(Ee){var Ae={assetData:Ee},Te=R(Ee,this.assetsPath,this.path);return dataManager.loadData(Te,(function(we){Ae.img=we,this._footageLoaded()}).bind(this),(function(){Ae.img={},this._footageLoaded()}).bind(this)),Ae}function X(Ee,Ae){this.imagesLoadedCb=Ae;var Te,we=Ee.length;for(Te=0;Te<we;Te+=1)Ee[Te].layers||(!Ee[Te].t||Ee[Te].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Ee[Te]))):Ee[Te].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Ee[Te]))))}function K(Ee){this.path=Ee||""}function J(Ee){this.assetsPath=Ee||""}function Y(Ee){for(var Ae=0,Te=this.images.length;Ae<Te;){if(this.images[Ae].assetData===Ee)return this.images[Ae].img;Ae+=1}return null}function Z(){this.imagesLoadedCb=null,this.images.length=0}function _e(){return this.totalImages===this.loadedAssets}function xe(){return this.totalFootages===this.loadedFootagesCount}function Se(Ee,Ae){Ee==="svg"?(this._elementHelper=Ae,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Pe(){this._imageLoaded=E.bind(this),this._footageLoaded=C.bind(this),this.testImageLoaded=I.bind(this),this.createFootageData=V.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Pe.prototype={loadAssets:X,setAssetsPath:J,setPath:K,loadedImages:_e,loadedFootages:xe,destroy:Z,getAsset:Y,createImgData:U,createImageData:B,imageLoaded:E,footageLoaded:C,setCacheType:Se},Pe}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(E,C){if(this._cbs[E])for(var R=this._cbs[E],I=0;I<R.length;I+=1)R[I](C)},addEventListener:function(E,C){return this._cbs[E]||(this._cbs[E]=[]),this._cbs[E].push(C),(function(){this.removeEventListener(E,C)}).bind(this)},removeEventListener:function(E,C){if(!C)this._cbs[E]=null;else if(this._cbs[E]){for(var R=0,I=this._cbs[E].length;R<I;)this._cbs[E][R]===C&&(this._cbs[E].splice(R,1),R-=1,I-=1),R+=1;this._cbs[E].length||(this._cbs[E]=null)}}};var markerParser=function(){function A(E){for(var C=E.split(`\r
2004
- `),R={},I,B=0,U=0;U<C.length;U+=1)I=C[U].split(":"),I.length===2&&(R[I[0]]=I[1].trim(),B+=1);if(B===0)throw new Error;return R}return function(E){for(var C=[],R=0;R<E.length;R+=1){var I=E[R],B={time:I.tm,duration:I.dr};try{B.payload=JSON.parse(E[R].cm)}catch{try{B.payload=A(E[R].cm)}catch{B.payload={name:E[R].cm}}}C.push(B)}return C}}(),ProjectInterface=function(){function A(E){this.compositions.push(E)}return function(){function E(C){for(var R=0,I=this.compositions.length;R<I;){if(this.compositions[R].data&&this.compositions[R].data.nm===C)return this.compositions[R].prepareFrame&&this.compositions[R].data.xt&&this.compositions[R].prepareFrame(this.currentFrame),this.compositions[R].compInterface;R+=1}return null}return E.compositions=[],E.currentFrame=0,E.registerComposition=A,E}}(),renderers={},registerRenderer=function(E,C){renderers[E]=C};function getRenderer(A){return renderers[A]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var A in renderers)if(renderers[A])return A;return""}function _typeof$4(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(C){return typeof C}:_typeof$4=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$4(A)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(A){(A.wrapper||A.container)&&(this.wrapper=A.wrapper||A.container);var E="svg";A.animType?E=A.animType:A.renderer&&(E=A.renderer);var C=getRenderer(E);this.renderer=new C(this,A.rendererSettings),this.imagePreloader.setCacheType(E,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=E,A.loop===""||A.loop===null||A.loop===void 0||A.loop===!0?this.loop=!0:A.loop===!1?this.loop=!1:this.loop=parseInt(A.loop,10),this.autoplay="autoplay"in A?A.autoplay:!0,this.name=A.name?A.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(A,"autoloadSegments")?A.autoloadSegments:!0,this.assetsPath=A.assetsPath,this.initialSegment=A.initialSegment,A.audioFactory&&this.audioController.setAudioFactory(A.audioFactory),A.animationData?this.setupAnimation(A.animationData):A.path&&(A.path.lastIndexOf("\\")!==-1?this.path=A.path.substr(0,A.path.lastIndexOf("\\")+1):this.path=A.path.substr(0,A.path.lastIndexOf("/")+1),this.fileName=A.path.substr(A.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(A.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(A){dataManager.completeAnimation(A,this.configAnimation)},AnimationItem.prototype.setData=function(A,E){E&&_typeof$4(E)!=="object"&&(E=JSON.parse(E));var C={wrapper:A,animationData:E},R=A.attributes;C.path=R.getNamedItem("data-animation-path")?R.getNamedItem("data-animation-path").value:R.getNamedItem("data-bm-path")?R.getNamedItem("data-bm-path").value:R.getNamedItem("bm-path")?R.getNamedItem("bm-path").value:"",C.animType=R.getNamedItem("data-anim-type")?R.getNamedItem("data-anim-type").value:R.getNamedItem("data-bm-type")?R.getNamedItem("data-bm-type").value:R.getNamedItem("bm-type")?R.getNamedItem("bm-type").value:R.getNamedItem("data-bm-renderer")?R.getNamedItem("data-bm-renderer").value:R.getNamedItem("bm-renderer")?R.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var I=R.getNamedItem("data-anim-loop")?R.getNamedItem("data-anim-loop").value:R.getNamedItem("data-bm-loop")?R.getNamedItem("data-bm-loop").value:R.getNamedItem("bm-loop")?R.getNamedItem("bm-loop").value:"";I==="false"?C.loop=!1:I==="true"?C.loop=!0:I!==""&&(C.loop=parseInt(I,10));var B=R.getNamedItem("data-anim-autoplay")?R.getNamedItem("data-anim-autoplay").value:R.getNamedItem("data-bm-autoplay")?R.getNamedItem("data-bm-autoplay").value:R.getNamedItem("bm-autoplay")?R.getNamedItem("bm-autoplay").value:!0;C.autoplay=B!=="false",C.name=R.getNamedItem("data-name")?R.getNamedItem("data-name").value:R.getNamedItem("data-bm-name")?R.getNamedItem("data-bm-name").value:R.getNamedItem("bm-name")?R.getNamedItem("bm-name").value:"";var U=R.getNamedItem("data-anim-prerender")?R.getNamedItem("data-anim-prerender").value:R.getNamedItem("data-bm-prerender")?R.getNamedItem("data-bm-prerender").value:R.getNamedItem("bm-prerender")?R.getNamedItem("bm-prerender").value:"";U==="false"&&(C.prerender=!1),C.path?this.setParams(C):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(A){A.op>this.animationData.op&&(this.animationData.op=A.op,this.totalFrames=Math.floor(A.op-this.animationData.ip));var E=this.animationData.layers,C,R=E.length,I=A.layers,B,U=I.length;for(B=0;B<U;B+=1)for(C=0;C<R;){if(E[C].id===I[B].id){E[C]=I[B];break}C+=1}if((A.chars||A.fonts)&&(this.renderer.globalData.fontManager.addChars(A.chars),this.renderer.globalData.fontManager.addFonts(A.fonts,this.renderer.globalData.defs)),A.assets)for(R=A.assets.length,C=0;C<R;C+=1)this.animationData.assets.push(A.assets[C]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(A){this.animationData=A;var E=getExpressionsPlugin();E&&E.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var A=this.animationData.segments;if(!A||A.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var E=A.shift();this.timeCompleted=E.time*this.frameRate;var C=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(C,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var A=this.animationData.segments;A||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(A){if(this.renderer)try{this.animationData=A,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(A),A.assets||(A.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(A.assets),this.markers=markerParser(A.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(E){this.triggerConfigError(E)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var A=getExpressionsPlugin();A&&A.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(A,E){var C=typeof A=="number"?A:void 0,R=typeof E=="number"?E:void 0;this.renderer.updateContainerSize(C,R)},AnimationItem.prototype.setSubframe=function(A){this.isSubframeEnabled=!!A},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(A){this.triggerRenderFrameError(A)}},AnimationItem.prototype.play=function(A){A&&this.name!==A||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(A){A&&this.name!==A||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(A){A&&this.name!==A||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(A){A&&this.name!==A||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(A){for(var E,C=0;C<this.markers.length;C+=1)if(E=this.markers[C],E.payload&&E.payload.name===A)return E;return null},AnimationItem.prototype.goToAndStop=function(A,E,C){if(!(C&&this.name!==C)){var R=Number(A);if(isNaN(R)){var I=this.getMarkerData(A);I&&this.goToAndStop(I.time,!0)}else E?this.setCurrentRawFrameValue(A):this.setCurrentRawFrameValue(A*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(A,E,C){if(!(C&&this.name!==C)){var R=Number(A);if(isNaN(R)){var I=this.getMarkerData(A);I&&(I.duration?this.playSegments([I.time,I.time+I.duration],!0):this.goToAndStop(I.time,!0))}else this.goToAndStop(R,E,C);this.play()}},AnimationItem.prototype.advanceTime=function(A){if(!(this.isPaused===!0||this.isLoaded===!1)){var E=this.currentRawFrame+A*this.frameModifier,C=!1;E>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(E>this.totalFrames?E%this.totalFrames:0)||(C=!0,E=this.totalFrames-1):E>=this.totalFrames?(this.playCount+=1,this.checkSegments(E%this.totalFrames)||(this.setCurrentRawFrameValue(E%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(E):E<0?this.checkSegments(E%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+E%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(C=!0,E=0)):this.setCurrentRawFrameValue(E),C&&(this.setCurrentRawFrameValue(E),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(A,E){this.playCount=0,A[1]<A[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=A[0]-A[1],this.timeCompleted=this.totalFrames,this.firstFrame=A[1],this.setCurrentRawFrameValue(this.totalFrames-.001-E)):A[1]>A[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=A[1]-A[0],this.timeCompleted=this.totalFrames,this.firstFrame=A[0],this.setCurrentRawFrameValue(.001+E)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(A,E){var C=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<A?C=A:this.currentRawFrame+this.firstFrame>E&&(C=E-A)),this.firstFrame=A,this.totalFrames=E-A,this.timeCompleted=this.totalFrames,C!==-1&&this.goToAndStop(C,!0)},AnimationItem.prototype.playSegments=function(A,E){if(E&&(this.segments.length=0),_typeof$4(A[0])==="object"){var C,R=A.length;for(C=0;C<R;C+=1)this.segments.push(A[C])}else this.segments.push(A);this.segments.length&&E&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(A){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),A&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(A){return this.segments.length?(this.adjustSegment(this.segments.shift(),A),!0):!1},AnimationItem.prototype.destroy=function(A){A&&this.name!==A||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(A){this.currentRawFrame=A,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(A){this.playSpeed=A,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(A){this.playDirection=A<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(A){this.loop=A},AnimationItem.prototype.setVolume=function(A,E){E&&this.name!==E||this.audioController.setVolume(A)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(A){A&&this.name!==A||this.audioController.mute()},AnimationItem.prototype.unmute=function(A){A&&this.name!==A||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(A){var E="";if(A.e)E=A.p;else if(this.assetsPath){var C=A.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),E=this.assetsPath+C}else E=this.path,E+=A.u?A.u:"",E+=A.p;return E},AnimationItem.prototype.getAssetData=function(A){for(var E=0,C=this.assets.length;E<C;){if(A===this.assets[E].id)return this.assets[E];E+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(A){return A?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(A,E,C){try{var R=this.renderer.getElementByPath(A);R.updateDocumentData(E,C)}catch{}},AnimationItem.prototype.trigger=function(A){if(this._cbs&&this._cbs[A])switch(A){case"enterFrame":this.triggerEvent(A,new BMEnterFrameEvent(A,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(A,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(A,new BMCompleteLoopEvent(A,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(A,new BMCompleteEvent(A,this.frameMult));break;case"segmentStart":this.triggerEvent(A,new BMSegmentStartEvent(A,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(A,new BMDestroyEvent(A,this));break;default:this.triggerEvent(A)}A==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(A,this.currentFrame,this.totalFrames,this.frameMult)),A==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(A,this.loop,this.playCount,this.frameMult)),A==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(A,this.frameMult)),A==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(A,this.firstFrame,this.totalFrames)),A==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(A,this))},AnimationItem.prototype.triggerRenderFrameError=function(A){var E=new BMRenderFrameErrorEvent(A,this.currentFrame);this.triggerEvent("error",E),this.onError&&this.onError.call(this,E)},AnimationItem.prototype.triggerConfigError=function(A){var E=new BMConfigErrorEvent(A,this.currentFrame);this.triggerEvent("error",E),this.onError&&this.onError.call(this,E)};var animationManager=function(){var A={},E=[],C=0,R=0,I=0,B=!0,U=!1;function V(Oe){for(var $e=0,Re=Oe.target;$e<R;)E[$e].animation===Re&&(E.splice($e,1),$e-=1,R-=1,Re.isPaused||Y()),$e+=1}function X(Oe,$e){if(!Oe)return null;for(var Re=0;Re<R;){if(E[Re].elem===Oe&&E[Re].elem!==null)return E[Re].animation;Re+=1}var Me=new AnimationItem;return Z(Me,Oe),Me.setData(Oe,$e),Me}function K(){var Oe,$e=E.length,Re=[];for(Oe=0;Oe<$e;Oe+=1)Re.push(E[Oe].animation);return Re}function J(){I+=1,He()}function Y(){I-=1}function Z(Oe,$e){Oe.addEventListener("destroy",V),Oe.addEventListener("_active",J),Oe.addEventListener("_idle",Y),E.push({elem:$e,animation:Oe}),R+=1}function _e(Oe){var $e=new AnimationItem;return Z($e,null),$e.setParams(Oe),$e}function xe(Oe,$e){var Re;for(Re=0;Re<R;Re+=1)E[Re].animation.setSpeed(Oe,$e)}function Se(Oe,$e){var Re;for(Re=0;Re<R;Re+=1)E[Re].animation.setDirection(Oe,$e)}function Pe(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.play(Oe)}function Ee(Oe){var $e=Oe-C,Re;for(Re=0;Re<R;Re+=1)E[Re].animation.advanceTime($e);C=Oe,I&&!U?window.requestAnimationFrame(Ee):B=!0}function Ae(Oe){C=Oe,window.requestAnimationFrame(Ee)}function Te(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.pause(Oe)}function we(Oe,$e,Re){var Me;for(Me=0;Me<R;Me+=1)E[Me].animation.goToAndStop(Oe,$e,Re)}function Ie(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.stop(Oe)}function Fe(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.togglePause(Oe)}function ke(Oe){var $e;for($e=R-1;$e>=0;$e-=1)E[$e].animation.destroy(Oe)}function Le(Oe,$e,Re){var Me=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ne,De=Me.length;for(Ne=0;Ne<De;Ne+=1)Re&&Me[Ne].setAttribute("data-bm-type",Re),X(Me[Ne],Oe);if($e&&De===0){Re||(Re="svg");var Xe=document.getElementsByTagName("body")[0];Xe.innerText="";var qe=createTag("div");qe.style.width="100%",qe.style.height="100%",qe.setAttribute("data-bm-type",Re),Xe.appendChild(qe),X(qe,Oe)}}function Ge(){var Oe;for(Oe=0;Oe<R;Oe+=1)E[Oe].animation.resize()}function He(){!U&&I&&B&&(window.requestAnimationFrame(Ae),B=!1)}function Be(){U=!0}function je(){U=!1,He()}function Ue(Oe,$e){var Re;for(Re=0;Re<R;Re+=1)E[Re].animation.setVolume(Oe,$e)}function ze(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.mute(Oe)}function Ve(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.unmute(Oe)}return A.registerAnimation=X,A.loadAnimation=_e,A.setSpeed=xe,A.setDirection=Se,A.play=Pe,A.pause=Te,A.stop=Ie,A.togglePause=Fe,A.searchAnimations=Le,A.resize=Ge,A.goToAndStop=we,A.destroy=ke,A.freeze=Be,A.unfreeze=je,A.setVolume=Ue,A.mute=ze,A.unmute=Ve,A.getRegisteredAnimations=K,A}(),BezierFactory=function(){var A={};A.getBezierEasing=C;var E={};function C(Ae,Te,we,Ie,Fe){var ke=Fe||("bez_"+Ae+"_"+Te+"_"+we+"_"+Ie).replace(/\./g,"p");if(E[ke])return E[ke];var Le=new Ee([Ae,Te,we,Ie]);return E[ke]=Le,Le}var R=4,I=.001,B=1e-7,U=10,V=11,X=1/(V-1),K=typeof Float32Array=="function";function J(Ae,Te){return 1-3*Te+3*Ae}function Y(Ae,Te){return 3*Te-6*Ae}function Z(Ae){return 3*Ae}function _e(Ae,Te,we){return((J(Te,we)*Ae+Y(Te,we))*Ae+Z(Te))*Ae}function xe(Ae,Te,we){return 3*J(Te,we)*Ae*Ae+2*Y(Te,we)*Ae+Z(Te)}function Se(Ae,Te,we,Ie,Fe){var ke,Le,Ge=0;do Le=Te+(we-Te)/2,ke=_e(Le,Ie,Fe)-Ae,ke>0?we=Le:Te=Le;while(Math.abs(ke)>B&&++Ge<U);return Le}function Pe(Ae,Te,we,Ie){for(var Fe=0;Fe<R;++Fe){var ke=xe(Te,we,Ie);if(ke===0)return Te;var Le=_e(Te,we,Ie)-Ae;Te-=Le/ke}return Te}function Ee(Ae){this._p=Ae,this._mSampleValues=K?new Float32Array(V):new Array(V),this._precomputed=!1,this.get=this.get.bind(this)}return Ee.prototype={get:function(Te){var we=this._p[0],Ie=this._p[1],Fe=this._p[2],ke=this._p[3];return this._precomputed||this._precompute(),we===Ie&&Fe===ke?Te:Te===0?0:Te===1?1:_e(this._getTForX(Te),Ie,ke)},_precompute:function(){var Te=this._p[0],we=this._p[1],Ie=this._p[2],Fe=this._p[3];this._precomputed=!0,(Te!==we||Ie!==Fe)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Te=this._p[0],we=this._p[2],Ie=0;Ie<V;++Ie)this._mSampleValues[Ie]=_e(Ie*X,Te,we)},_getTForX:function(Te){for(var we=this._p[0],Ie=this._p[2],Fe=this._mSampleValues,ke=0,Le=1,Ge=V-1;Le!==Ge&&Fe[Le]<=Te;++Le)ke+=X;--Le;var He=(Te-Fe[Le])/(Fe[Le+1]-Fe[Le]),Be=ke+He*X,je=xe(Be,we,Ie);return je>=I?Pe(Te,Be,we,Ie):je===0?Be:Se(Te,ke,ke+X,we,Ie)}},A}(),pooling=function(){function A(E){return E.concat(createSizedArray(E.length))}return{double:A}}(),poolFactory=function(){return function(A,E,C){var R=0,I=A,B=createSizedArray(I),U={newElement:V,release:X};function V(){var K;return R?(R-=1,K=B[R]):K=E(),K}function X(K){R===I&&(B=pooling.double(B),I*=2),C&&C(K),B[R]=K,R+=1}return U}}(),bezierLengthPool=function(){function A(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,A)}(),segmentsLengthPool=function(){function A(){return{lengths:[],totalLength:0}}function E(C){var R,I=C.lengths.length;for(R=0;R<I;R+=1)bezierLengthPool.release(C.lengths[R]);C.lengths.length=0}return poolFactory(8,A,E)}();function bezFunction(){var A=Math;function E(Z,_e,xe,Se,Pe,Ee){var Ae=Z*Se+_e*Pe+xe*Ee-Pe*Se-Ee*Z-xe*_e;return Ae>-.001&&Ae<.001}function C(Z,_e,xe,Se,Pe,Ee,Ae,Te,we){if(xe===0&&Ee===0&&we===0)return E(Z,_e,Se,Pe,Ae,Te);var Ie=A.sqrt(A.pow(Se-Z,2)+A.pow(Pe-_e,2)+A.pow(Ee-xe,2)),Fe=A.sqrt(A.pow(Ae-Z,2)+A.pow(Te-_e,2)+A.pow(we-xe,2)),ke=A.sqrt(A.pow(Ae-Se,2)+A.pow(Te-Pe,2)+A.pow(we-Ee,2)),Le;return Ie>Fe?Ie>ke?Le=Ie-Fe-ke:Le=ke-Fe-Ie:ke>Fe?Le=ke-Fe-Ie:Le=Fe-Ie-ke,Le>-1e-4&&Le<1e-4}var R=function(){return function(Z,_e,xe,Se){var Pe=getDefaultCurveSegments(),Ee,Ae,Te,we,Ie,Fe=0,ke,Le=[],Ge=[],He=bezierLengthPool.newElement();for(Te=xe.length,Ee=0;Ee<Pe;Ee+=1){for(Ie=Ee/(Pe-1),ke=0,Ae=0;Ae<Te;Ae+=1)we=bmPow(1-Ie,3)*Z[Ae]+3*bmPow(1-Ie,2)*Ie*xe[Ae]+3*(1-Ie)*bmPow(Ie,2)*Se[Ae]+bmPow(Ie,3)*_e[Ae],Le[Ae]=we,Ge[Ae]!==null&&(ke+=bmPow(Le[Ae]-Ge[Ae],2)),Ge[Ae]=Le[Ae];ke&&(ke=bmSqrt(ke),Fe+=ke),He.percents[Ee]=Ie,He.lengths[Ee]=Fe}return He.addedLength=Fe,He}}();function I(Z){var _e=segmentsLengthPool.newElement(),xe=Z.c,Se=Z.v,Pe=Z.o,Ee=Z.i,Ae,Te=Z._length,we=_e.lengths,Ie=0;for(Ae=0;Ae<Te-1;Ae+=1)we[Ae]=R(Se[Ae],Se[Ae+1],Pe[Ae],Ee[Ae+1]),Ie+=we[Ae].addedLength;return xe&&Te&&(we[Ae]=R(Se[Ae],Se[0],Pe[Ae],Ee[0]),Ie+=we[Ae].addedLength),_e.totalLength=Ie,_e}function B(Z){this.segmentLength=0,this.points=new Array(Z)}function U(Z,_e){this.partialLength=Z,this.point=_e}var V=function(){var Z={};return function(_e,xe,Se,Pe){var Ee=(_e[0]+"_"+_e[1]+"_"+xe[0]+"_"+xe[1]+"_"+Se[0]+"_"+Se[1]+"_"+Pe[0]+"_"+Pe[1]).replace(/\./g,"p");if(!Z[Ee]){var Ae=getDefaultCurveSegments(),Te,we,Ie,Fe,ke,Le=0,Ge,He,Be=null;_e.length===2&&(_e[0]!==xe[0]||_e[1]!==xe[1])&&E(_e[0],_e[1],xe[0],xe[1],_e[0]+Se[0],_e[1]+Se[1])&&E(_e[0],_e[1],xe[0],xe[1],xe[0]+Pe[0],xe[1]+Pe[1])&&(Ae=2);var je=new B(Ae);for(Ie=Se.length,Te=0;Te<Ae;Te+=1){for(He=createSizedArray(Ie),ke=Te/(Ae-1),Ge=0,we=0;we<Ie;we+=1)Fe=bmPow(1-ke,3)*_e[we]+3*bmPow(1-ke,2)*ke*(_e[we]+Se[we])+3*(1-ke)*bmPow(ke,2)*(xe[we]+Pe[we])+bmPow(ke,3)*xe[we],He[we]=Fe,Be!==null&&(Ge+=bmPow(He[we]-Be[we],2));Ge=bmSqrt(Ge),Le+=Ge,je.points[Te]=new U(Ge,He),Be=He}je.segmentLength=Le,Z[Ee]=je}return Z[Ee]}}();function X(Z,_e){var xe=_e.percents,Se=_e.lengths,Pe=xe.length,Ee=bmFloor((Pe-1)*Z),Ae=Z*_e.addedLength,Te=0;if(Ee===Pe-1||Ee===0||Ae===Se[Ee])return xe[Ee];for(var we=Se[Ee]>Ae?-1:1,Ie=!0;Ie;)if(Se[Ee]<=Ae&&Se[Ee+1]>Ae?(Te=(Ae-Se[Ee])/(Se[Ee+1]-Se[Ee]),Ie=!1):Ee+=we,Ee<0||Ee>=Pe-1){if(Ee===Pe-1)return xe[Ee];Ie=!1}return xe[Ee]+(xe[Ee+1]-xe[Ee])*Te}function K(Z,_e,xe,Se,Pe,Ee){var Ae=X(Pe,Ee),Te=1-Ae,we=A.round((Te*Te*Te*Z[0]+(Ae*Te*Te+Te*Ae*Te+Te*Te*Ae)*xe[0]+(Ae*Ae*Te+Te*Ae*Ae+Ae*Te*Ae)*Se[0]+Ae*Ae*Ae*_e[0])*1e3)/1e3,Ie=A.round((Te*Te*Te*Z[1]+(Ae*Te*Te+Te*Ae*Te+Te*Te*Ae)*xe[1]+(Ae*Ae*Te+Te*Ae*Ae+Ae*Te*Ae)*Se[1]+Ae*Ae*Ae*_e[1])*1e3)/1e3;return[we,Ie]}var J=createTypedArray("float32",8);function Y(Z,_e,xe,Se,Pe,Ee,Ae){Pe<0?Pe=0:Pe>1&&(Pe=1);var Te=X(Pe,Ae);Ee=Ee>1?1:Ee;var we=X(Ee,Ae),Ie,Fe=Z.length,ke=1-Te,Le=1-we,Ge=ke*ke*ke,He=Te*ke*ke*3,Be=Te*Te*ke*3,je=Te*Te*Te,Ue=ke*ke*Le,ze=Te*ke*Le+ke*Te*Le+ke*ke*we,Ve=Te*Te*Le+ke*Te*we+Te*ke*we,Oe=Te*Te*we,$e=ke*Le*Le,Re=Te*Le*Le+ke*we*Le+ke*Le*we,Me=Te*we*Le+ke*we*we+Te*Le*we,Ne=Te*we*we,De=Le*Le*Le,Xe=we*Le*Le+Le*we*Le+Le*Le*we,qe=we*we*Le+Le*we*we+we*Le*we,Ye=we*we*we;for(Ie=0;Ie<Fe;Ie+=1)J[Ie*4]=A.round((Ge*Z[Ie]+He*xe[Ie]+Be*Se[Ie]+je*_e[Ie])*1e3)/1e3,J[Ie*4+1]=A.round((Ue*Z[Ie]+ze*xe[Ie]+Ve*Se[Ie]+Oe*_e[Ie])*1e3)/1e3,J[Ie*4+2]=A.round(($e*Z[Ie]+Re*xe[Ie]+Me*Se[Ie]+Ne*_e[Ie])*1e3)/1e3,J[Ie*4+3]=A.round((De*Z[Ie]+Xe*xe[Ie]+qe*Se[Ie]+Ye*_e[Ie])*1e3)/1e3;return J}return{getSegmentsLength:I,getNewSegment:Y,getPointInSegment:K,buildBezierData:V,pointOnLine2D:E,pointOnLine3D:C}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(A,E){var C=this.offsetTime,R;this.propType==="multidimensional"&&(R=createTypedArray("float32",this.pv.length));for(var I=E.lastIndex,B=I,U=this.keyframes.length-1,V=!0,X,K,J;V;){if(X=this.keyframes[B],K=this.keyframes[B+1],B===U-1&&A>=K.t-C){X.h&&(X=K),I=0;break}if(K.t-C>A){I=B;break}B<U-1?B+=1:(I=0,V=!1)}J=this.keyframesMetadata[B]||{};var Y,Z,_e,xe,Se,Pe,Ee=K.t-C,Ae=X.t-C,Te;if(X.to){J.bezierData||(J.bezierData=bez.buildBezierData(X.s,K.s||X.e,X.to,X.ti));var we=J.bezierData;if(A>=Ee||A<Ae){var Ie=A>=Ee?we.points.length-1:0;for(Z=we.points[Ie].point.length,Y=0;Y<Z;Y+=1)R[Y]=we.points[Ie].point[Y]}else{J.__fnct?Pe=J.__fnct:(Pe=BezierFactory.getBezierEasing(X.o.x,X.o.y,X.i.x,X.i.y,X.n).get,J.__fnct=Pe),_e=Pe((A-Ae)/(Ee-Ae));var Fe=we.segmentLength*_e,ke,Le=E.lastFrame<A&&E._lastKeyframeIndex===B?E._lastAddedLength:0;for(Se=E.lastFrame<A&&E._lastKeyframeIndex===B?E._lastPoint:0,V=!0,xe=we.points.length;V;){if(Le+=we.points[Se].partialLength,Fe===0||_e===0||Se===we.points.length-1){for(Z=we.points[Se].point.length,Y=0;Y<Z;Y+=1)R[Y]=we.points[Se].point[Y];break}else if(Fe>=Le&&Fe<Le+we.points[Se+1].partialLength){for(ke=(Fe-Le)/we.points[Se+1].partialLength,Z=we.points[Se].point.length,Y=0;Y<Z;Y+=1)R[Y]=we.points[Se].point[Y]+(we.points[Se+1].point[Y]-we.points[Se].point[Y])*ke;break}Se<xe-1?Se+=1:V=!1}E._lastPoint=Se,E._lastAddedLength=Le-we.points[Se].partialLength,E._lastKeyframeIndex=B}}else{var Ge,He,Be,je,Ue;if(U=X.s.length,Te=K.s||X.e,this.sh&&X.h!==1)if(A>=Ee)R[0]=Te[0],R[1]=Te[1],R[2]=Te[2];else if(A<=Ae)R[0]=X.s[0],R[1]=X.s[1],R[2]=X.s[2];else{var ze=createQuaternion(X.s),Ve=createQuaternion(Te),Oe=(A-Ae)/(Ee-Ae);quaternionToEuler(R,slerp(ze,Ve,Oe))}else for(B=0;B<U;B+=1)X.h!==1&&(A>=Ee?_e=1:A<Ae?_e=0:(X.o.x.constructor===Array?(J.__fnct||(J.__fnct=[]),J.__fnct[B]?Pe=J.__fnct[B]:(Ge=X.o.x[B]===void 0?X.o.x[0]:X.o.x[B],He=X.o.y[B]===void 0?X.o.y[0]:X.o.y[B],Be=X.i.x[B]===void 0?X.i.x[0]:X.i.x[B],je=X.i.y[B]===void 0?X.i.y[0]:X.i.y[B],Pe=BezierFactory.getBezierEasing(Ge,He,Be,je).get,J.__fnct[B]=Pe)):J.__fnct?Pe=J.__fnct:(Ge=X.o.x,He=X.o.y,Be=X.i.x,je=X.i.y,Pe=BezierFactory.getBezierEasing(Ge,He,Be,je).get,X.keyframeMetadata=Pe),_e=Pe((A-Ae)/(Ee-Ae)))),Te=K.s||X.e,Ue=X.h===1?X.s[B]:X.s[B]+(Te[B]-X.s[B])*_e,this.propType==="multidimensional"?R[B]=Ue:R=Ue}return E.lastIndex=I,R}function slerp(A,E,C){var R=[],I=A[0],B=A[1],U=A[2],V=A[3],X=E[0],K=E[1],J=E[2],Y=E[3],Z,_e,xe,Se,Pe;return _e=I*X+B*K+U*J+V*Y,_e<0&&(_e=-_e,X=-X,K=-K,J=-J,Y=-Y),1-_e>1e-6?(Z=Math.acos(_e),xe=Math.sin(Z),Se=Math.sin((1-C)*Z)/xe,Pe=Math.sin(C*Z)/xe):(Se=1-C,Pe=C),R[0]=Se*I+Pe*X,R[1]=Se*B+Pe*K,R[2]=Se*U+Pe*J,R[3]=Se*V+Pe*Y,R}function quaternionToEuler(A,E){var C=E[0],R=E[1],I=E[2],B=E[3],U=Math.atan2(2*R*B-2*C*I,1-2*R*R-2*I*I),V=Math.asin(2*C*R+2*I*B),X=Math.atan2(2*C*B-2*R*I,1-2*C*C-2*I*I);A[0]=U/degToRads,A[1]=V/degToRads,A[2]=X/degToRads}function createQuaternion(A){var E=A[0]*degToRads,C=A[1]*degToRads,R=A[2]*degToRads,I=Math.cos(E/2),B=Math.cos(C/2),U=Math.cos(R/2),V=Math.sin(E/2),X=Math.sin(C/2),K=Math.sin(R/2),J=I*B*U-V*X*K,Y=V*X*U+I*B*K,Z=V*B*U+I*X*K,_e=I*X*U-V*B*K;return[Y,Z,_e,J]}function getValueAtCurrentTime(){var A=this.comp.renderedFrame-this.offsetTime,E=this.keyframes[0].t-this.offsetTime,C=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(A===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=C&&A>=C||this._caching.lastFrame<E&&A<E))){this._caching.lastFrame>=A&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var R=this.interpolateValue(A,this._caching);this.pv=R}return this._caching.lastFrame=A,this.pv}function setVValue(A){var E;if(this.propType==="unidimensional")E=A*this.mult,mathAbs(this.v-E)>1e-5&&(this.v=E,this._mdf=!0);else for(var C=0,R=this.v.length;C<R;)E=A[C]*this.mult,mathAbs(this.v[C]-E)>1e-5&&(this.v[C]=E,this._mdf=!0),C+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var A,E=this.effectsSequence.length,C=this.kf?this.pv:this.data.k;for(A=0;A<E;A+=1)C=this.effectsSequence[A](C);this.setVValue(C),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(A){this.effectsSequence.push(A),this.container.addDynamicProperty(this)}function ValueProperty(A,E,C,R){this.propType="unidimensional",this.mult=C||1,this.data=E,this.v=C?E.k*C:E.k,this.pv=E.k,this._mdf=!1,this.elem=A,this.container=R,this.comp=A.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(A,E,C,R){this.propType="multidimensional",this.mult=C||1,this.data=E,this._mdf=!1,this.elem=A,this.container=R,this.comp=A.comp,this.k=!1,this.kf=!1,this.frameId=-1;var I,B=E.k.length;for(this.v=createTypedArray("float32",B),this.pv=createTypedArray("float32",B),this.vel=createTypedArray("float32",B),I=0;I<B;I+=1)this.v[I]=E.k[I]*this.mult,this.pv[I]=E.k[I];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(A,E,C,R){this.propType="unidimensional",this.keyframes=E.k,this.keyframesMetadata=[],this.offsetTime=A.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=E,this.mult=C||1,this.elem=A,this.container=R,this.comp=A.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(A,E,C,R){this.propType="multidimensional";var I,B=E.k.length,U,V,X,K;for(I=0;I<B-1;I+=1)E.k[I].to&&E.k[I].s&&E.k[I+1]&&E.k[I+1].s&&(U=E.k[I].s,V=E.k[I+1].s,X=E.k[I].to,K=E.k[I].ti,(U.length===2&&!(U[0]===V[0]&&U[1]===V[1])&&bez.pointOnLine2D(U[0],U[1],V[0],V[1],U[0]+X[0],U[1]+X[1])&&bez.pointOnLine2D(U[0],U[1],V[0],V[1],V[0]+K[0],V[1]+K[1])||U.length===3&&!(U[0]===V[0]&&U[1]===V[1]&&U[2]===V[2])&&bez.pointOnLine3D(U[0],U[1],U[2],V[0],V[1],V[2],U[0]+X[0],U[1]+X[1],U[2]+X[2])&&bez.pointOnLine3D(U[0],U[1],U[2],V[0],V[1],V[2],V[0]+K[0],V[1]+K[1],V[2]+K[2]))&&(E.k[I].to=null,E.k[I].ti=null),U[0]===V[0]&&U[1]===V[1]&&X[0]===0&&X[1]===0&&K[0]===0&&K[1]===0&&(U.length===2||U[2]===V[2]&&X[2]===0&&K[2]===0)&&(E.k[I].to=null,E.k[I].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=E,this.keyframes=E.k,this.keyframesMetadata=[],this.offsetTime=A.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=C||1,this.elem=A,this.container=R,this.comp=A.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var J=E.k[0].s.length;for(this.v=createTypedArray("float32",J),this.pv=createTypedArray("float32",J),I=0;I<J;I+=1)this.v[I]=initFrame,this.pv[I]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",J)},this.addEffect=addEffect}var PropertyFactory=function(){function A(C,R,I,B,U){R.sid&&(R=C.globalData.slotManager.getProp(R));var V;if(!R.k.length)V=new ValueProperty(C,R,B,U);else if(typeof R.k[0]=="number")V=new MultiDimensionalProperty(C,R,B,U);else switch(I){case 0:V=new KeyframedValueProperty(C,R,B,U);break;case 1:V=new KeyframedMultidimensionalProperty(C,R,B,U);break}return V.effectsSequence.length&&U.addDynamicProperty(V),V}var E={getProp:A};return E}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(E){this.dynamicProperties.indexOf(E)===-1&&(this.dynamicProperties.push(E),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var E,C=this.dynamicProperties.length;for(E=0;E<C;E+=1)this.dynamicProperties[E].getValue(),this.dynamicProperties[E]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(E){this.container=E,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function A(){return createTypedArray("float32",2)}return poolFactory(8,A)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(A,E){this.c=A,this.setLength(E);for(var C=0;C<E;)this.v[C]=pointPool.newElement(),this.o[C]=pointPool.newElement(),this.i[C]=pointPool.newElement(),C+=1},ShapePath.prototype.setLength=function(A){for(;this._maxLength<A;)this.doubleArrayLength();this._length=A},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(A,E,C,R,I){var B;switch(this._length=Math.max(this._length,R+1),this._length>=this._maxLength&&this.doubleArrayLength(),C){case"v":B=this.v;break;case"i":B=this.i;break;case"o":B=this.o;break;default:B=[];break}(!B[R]||B[R]&&!I)&&(B[R]=pointPool.newElement()),B[R][0]=A,B[R][1]=E},ShapePath.prototype.setTripleAt=function(A,E,C,R,I,B,U,V){this.setXYAt(A,E,"v",U,V),this.setXYAt(C,R,"o",U,V),this.setXYAt(I,B,"i",U,V)},ShapePath.prototype.reverse=function(){var A=new ShapePath;A.setPathData(this.c,this._length);var E=this.v,C=this.o,R=this.i,I=0;this.c&&(A.setTripleAt(E[0][0],E[0][1],R[0][0],R[0][1],C[0][0],C[0][1],0,!1),I=1);var B=this._length-1,U=this._length,V;for(V=I;V<U;V+=1)A.setTripleAt(E[B][0],E[B][1],R[B][0],R[B][1],C[B][0],C[B][1],V,!1),B-=1;return A},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function A(){return new ShapePath}function E(I){var B=I._length,U;for(U=0;U<B;U+=1)pointPool.release(I.v[U]),pointPool.release(I.i[U]),pointPool.release(I.o[U]),I.v[U]=null,I.i[U]=null,I.o[U]=null;I._length=0,I.c=!1}function C(I){var B=R.newElement(),U,V=I._length===void 0?I.v.length:I._length;for(B.setLength(V),B.c=I.c,U=0;U<V;U+=1)B.setTripleAt(I.v[U][0],I.v[U][1],I.o[U][0],I.o[U][1],I.i[U][0],I.i[U][1],U);return B}var R=poolFactory(4,A,E);return R.clone=C,R}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(A){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=A,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var A;for(A=0;A<this._length;A+=1)shapePool.release(this.shapes[A]);this._length=0};var shapeCollectionPool=function(){var A={newShapeCollection:I,release:B},E=0,C=4,R=createSizedArray(C);function I(){var U;return E?(E-=1,U=R[E]):U=new ShapeCollection,U}function B(U){var V,X=U._length;for(V=0;V<X;V+=1)shapePool.release(U.shapes[V]);U._length=0,E===C&&(R=pooling.double(R),C*=2),R[E]=U,E+=1}return A}(),ShapePropertyFactory=function(){var A=-999999;function E(Ee,Ae,Te){var we=Te.lastIndex,Ie,Fe,ke,Le,Ge,He,Be,je,Ue,ze=this.keyframes;if(Ee<ze[0].t-this.offsetTime)Ie=ze[0].s[0],ke=!0,we=0;else if(Ee>=ze[ze.length-1].t-this.offsetTime)Ie=ze[ze.length-1].s?ze[ze.length-1].s[0]:ze[ze.length-2].e[0],ke=!0;else{for(var Ve=we,Oe=ze.length-1,$e=!0,Re,Me,Ne;$e&&(Re=ze[Ve],Me=ze[Ve+1],!(Me.t-this.offsetTime>Ee));)Ve<Oe-1?Ve+=1:$e=!1;if(Ne=this.keyframesMetadata[Ve]||{},ke=Re.h===1,we=Ve,!ke){if(Ee>=Me.t-this.offsetTime)je=1;else if(Ee<Re.t-this.offsetTime)je=0;else{var De;Ne.__fnct?De=Ne.__fnct:(De=BezierFactory.getBezierEasing(Re.o.x,Re.o.y,Re.i.x,Re.i.y).get,Ne.__fnct=De),je=De((Ee-(Re.t-this.offsetTime))/(Me.t-this.offsetTime-(Re.t-this.offsetTime)))}Fe=Me.s?Me.s[0]:Re.e[0]}Ie=Re.s[0]}for(He=Ae._length,Be=Ie.i[0].length,Te.lastIndex=we,Le=0;Le<He;Le+=1)for(Ge=0;Ge<Be;Ge+=1)Ue=ke?Ie.i[Le][Ge]:Ie.i[Le][Ge]+(Fe.i[Le][Ge]-Ie.i[Le][Ge])*je,Ae.i[Le][Ge]=Ue,Ue=ke?Ie.o[Le][Ge]:Ie.o[Le][Ge]+(Fe.o[Le][Ge]-Ie.o[Le][Ge])*je,Ae.o[Le][Ge]=Ue,Ue=ke?Ie.v[Le][Ge]:Ie.v[Le][Ge]+(Fe.v[Le][Ge]-Ie.v[Le][Ge])*je,Ae.v[Le][Ge]=Ue}function C(){var Ee=this.comp.renderedFrame-this.offsetTime,Ae=this.keyframes[0].t-this.offsetTime,Te=this.keyframes[this.keyframes.length-1].t-this.offsetTime,we=this._caching.lastFrame;return we!==A&&(we<Ae&&Ee<Ae||we>Te&&Ee>Te)||(this._caching.lastIndex=we<Ee?this._caching.lastIndex:0,this.interpolateShape(Ee,this.pv,this._caching)),this._caching.lastFrame=Ee,this.pv}function R(){this.paths=this.localShapeCollection}function I(Ee,Ae){if(Ee._length!==Ae._length||Ee.c!==Ae.c)return!1;var Te,we=Ee._length;for(Te=0;Te<we;Te+=1)if(Ee.v[Te][0]!==Ae.v[Te][0]||Ee.v[Te][1]!==Ae.v[Te][1]||Ee.o[Te][0]!==Ae.o[Te][0]||Ee.o[Te][1]!==Ae.o[Te][1]||Ee.i[Te][0]!==Ae.i[Te][0]||Ee.i[Te][1]!==Ae.i[Te][1])return!1;return!0}function B(Ee){I(this.v,Ee)||(this.v=shapePool.clone(Ee),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function U(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var Ee;this.kf?Ee=this.pv:this.data.ks?Ee=this.data.ks.k:Ee=this.data.pt.k;var Ae,Te=this.effectsSequence.length;for(Ae=0;Ae<Te;Ae+=1)Ee=this.effectsSequence[Ae](Ee);this.setVValue(Ee),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function V(Ee,Ae,Te){this.propType="shape",this.comp=Ee.comp,this.container=Ee,this.elem=Ee,this.data=Ae,this.k=!1,this.kf=!1,this._mdf=!1;var we=Te===3?Ae.pt.k:Ae.ks.k;this.v=shapePool.clone(we),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=R,this.effectsSequence=[]}function X(Ee){this.effectsSequence.push(Ee),this.container.addDynamicProperty(this)}V.prototype.interpolateShape=E,V.prototype.getValue=U,V.prototype.setVValue=B,V.prototype.addEffect=X;function K(Ee,Ae,Te){this.propType="shape",this.comp=Ee.comp,this.elem=Ee,this.container=Ee,this.offsetTime=Ee.data.st,this.keyframes=Te===3?Ae.pt.k:Ae.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var we=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,we),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=A,this.reset=R,this._caching={lastFrame:A,lastIndex:0},this.effectsSequence=[C.bind(this)]}K.prototype.getValue=U,K.prototype.interpolateShape=E,K.prototype.setVValue=B,K.prototype.addEffect=X;var J=function(){var Ee=roundCorner;function Ae(Te,we){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=we.d,this.elem=Te,this.comp=Te.comp,this.frameId=-1,this.initDynamicPropertyContainer(Te),this.p=PropertyFactory.getProp(Te,we.p,1,0,this),this.s=PropertyFactory.getProp(Te,we.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Ae.prototype={reset:R,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var we=this.p.v[0],Ie=this.p.v[1],Fe=this.s.v[0]/2,ke=this.s.v[1]/2,Le=this.d!==3,Ge=this.v;Ge.v[0][0]=we,Ge.v[0][1]=Ie-ke,Ge.v[1][0]=Le?we+Fe:we-Fe,Ge.v[1][1]=Ie,Ge.v[2][0]=we,Ge.v[2][1]=Ie+ke,Ge.v[3][0]=Le?we-Fe:we+Fe,Ge.v[3][1]=Ie,Ge.i[0][0]=Le?we-Fe*Ee:we+Fe*Ee,Ge.i[0][1]=Ie-ke,Ge.i[1][0]=Le?we+Fe:we-Fe,Ge.i[1][1]=Ie-ke*Ee,Ge.i[2][0]=Le?we+Fe*Ee:we-Fe*Ee,Ge.i[2][1]=Ie+ke,Ge.i[3][0]=Le?we-Fe:we+Fe,Ge.i[3][1]=Ie+ke*Ee,Ge.o[0][0]=Le?we+Fe*Ee:we-Fe*Ee,Ge.o[0][1]=Ie-ke,Ge.o[1][0]=Le?we+Fe:we-Fe,Ge.o[1][1]=Ie+ke*Ee,Ge.o[2][0]=Le?we-Fe*Ee:we+Fe*Ee,Ge.o[2][1]=Ie+ke,Ge.o[3][0]=Le?we-Fe:we+Fe,Ge.o[3][1]=Ie-ke*Ee}},extendPrototype([DynamicPropertyContainer],Ae),Ae}(),Y=function(){function Ee(Ae,Te){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=Ae,this.comp=Ae.comp,this.data=Te,this.frameId=-1,this.d=Te.d,this.initDynamicPropertyContainer(Ae),Te.sy===1?(this.ir=PropertyFactory.getProp(Ae,Te.ir,0,0,this),this.is=PropertyFactory.getProp(Ae,Te.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(Ae,Te.pt,0,0,this),this.p=PropertyFactory.getProp(Ae,Te.p,1,0,this),this.r=PropertyFactory.getProp(Ae,Te.r,0,degToRads,this),this.or=PropertyFactory.getProp(Ae,Te.or,0,0,this),this.os=PropertyFactory.getProp(Ae,Te.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Ee.prototype={reset:R,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var Te=Math.floor(this.pt.v)*2,we=Math.PI*2/Te,Ie=!0,Fe=this.or.v,ke=this.ir.v,Le=this.os.v,Ge=this.is.v,He=2*Math.PI*Fe/(Te*2),Be=2*Math.PI*ke/(Te*2),je,Ue,ze,Ve,Oe=-Math.PI/2;Oe+=this.r.v;var $e=this.data.d===3?-1:1;for(this.v._length=0,je=0;je<Te;je+=1){Ue=Ie?Fe:ke,ze=Ie?Le:Ge,Ve=Ie?He:Be;var Re=Ue*Math.cos(Oe),Me=Ue*Math.sin(Oe),Ne=Re===0&&Me===0?0:Me/Math.sqrt(Re*Re+Me*Me),De=Re===0&&Me===0?0:-Re/Math.sqrt(Re*Re+Me*Me);Re+=+this.p.v[0],Me+=+this.p.v[1],this.v.setTripleAt(Re,Me,Re-Ne*Ve*ze*$e,Me-De*Ve*ze*$e,Re+Ne*Ve*ze*$e,Me+De*Ve*ze*$e,je,!0),Ie=!Ie,Oe+=we*$e}},convertPolygonToPath:function(){var Te=Math.floor(this.pt.v),we=Math.PI*2/Te,Ie=this.or.v,Fe=this.os.v,ke=2*Math.PI*Ie/(Te*4),Le,Ge=-Math.PI*.5,He=this.data.d===3?-1:1;for(Ge+=this.r.v,this.v._length=0,Le=0;Le<Te;Le+=1){var Be=Ie*Math.cos(Ge),je=Ie*Math.sin(Ge),Ue=Be===0&&je===0?0:je/Math.sqrt(Be*Be+je*je),ze=Be===0&&je===0?0:-Be/Math.sqrt(Be*Be+je*je);Be+=+this.p.v[0],je+=+this.p.v[1],this.v.setTripleAt(Be,je,Be-Ue*ke*Fe*He,je-ze*ke*Fe*He,Be+Ue*ke*Fe*He,je+ze*ke*Fe*He,Le,!0),Ge+=we*He}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Ee),Ee}(),Z=function(){function Ee(Ae,Te){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Ae,this.comp=Ae.comp,this.frameId=-1,this.d=Te.d,this.initDynamicPropertyContainer(Ae),this.p=PropertyFactory.getProp(Ae,Te.p,1,0,this),this.s=PropertyFactory.getProp(Ae,Te.s,1,0,this),this.r=PropertyFactory.getProp(Ae,Te.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Ee.prototype={convertRectToPath:function(){var Te=this.p.v[0],we=this.p.v[1],Ie=this.s.v[0]/2,Fe=this.s.v[1]/2,ke=bmMin(Ie,Fe,this.r.v),Le=ke*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Te+Ie,we-Fe+ke,Te+Ie,we-Fe+ke,Te+Ie,we-Fe+Le,0,!0),this.v.setTripleAt(Te+Ie,we+Fe-ke,Te+Ie,we+Fe-Le,Te+Ie,we+Fe-ke,1,!0),ke!==0?(this.v.setTripleAt(Te+Ie-ke,we+Fe,Te+Ie-ke,we+Fe,Te+Ie-Le,we+Fe,2,!0),this.v.setTripleAt(Te-Ie+ke,we+Fe,Te-Ie+Le,we+Fe,Te-Ie+ke,we+Fe,3,!0),this.v.setTripleAt(Te-Ie,we+Fe-ke,Te-Ie,we+Fe-ke,Te-Ie,we+Fe-Le,4,!0),this.v.setTripleAt(Te-Ie,we-Fe+ke,Te-Ie,we-Fe+Le,Te-Ie,we-Fe+ke,5,!0),this.v.setTripleAt(Te-Ie+ke,we-Fe,Te-Ie+ke,we-Fe,Te-Ie+Le,we-Fe,6,!0),this.v.setTripleAt(Te+Ie-ke,we-Fe,Te+Ie-Le,we-Fe,Te+Ie-ke,we-Fe,7,!0)):(this.v.setTripleAt(Te-Ie,we+Fe,Te-Ie+Le,we+Fe,Te-Ie,we+Fe,2),this.v.setTripleAt(Te-Ie,we-Fe,Te-Ie,we-Fe+Le,Te-Ie,we-Fe,3))):(this.v.setTripleAt(Te+Ie,we-Fe+ke,Te+Ie,we-Fe+Le,Te+Ie,we-Fe+ke,0,!0),ke!==0?(this.v.setTripleAt(Te+Ie-ke,we-Fe,Te+Ie-ke,we-Fe,Te+Ie-Le,we-Fe,1,!0),this.v.setTripleAt(Te-Ie+ke,we-Fe,Te-Ie+Le,we-Fe,Te-Ie+ke,we-Fe,2,!0),this.v.setTripleAt(Te-Ie,we-Fe+ke,Te-Ie,we-Fe+ke,Te-Ie,we-Fe+Le,3,!0),this.v.setTripleAt(Te-Ie,we+Fe-ke,Te-Ie,we+Fe-Le,Te-Ie,we+Fe-ke,4,!0),this.v.setTripleAt(Te-Ie+ke,we+Fe,Te-Ie+ke,we+Fe,Te-Ie+Le,we+Fe,5,!0),this.v.setTripleAt(Te+Ie-ke,we+Fe,Te+Ie-Le,we+Fe,Te+Ie-ke,we+Fe,6,!0),this.v.setTripleAt(Te+Ie,we+Fe-ke,Te+Ie,we+Fe-ke,Te+Ie,we+Fe-Le,7,!0)):(this.v.setTripleAt(Te-Ie,we-Fe,Te-Ie+Le,we-Fe,Te-Ie,we-Fe,1,!0),this.v.setTripleAt(Te-Ie,we+Fe,Te-Ie,we+Fe-Le,Te-Ie,we+Fe,2,!0),this.v.setTripleAt(Te+Ie,we+Fe,Te+Ie-Le,we+Fe,Te+Ie,we+Fe,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:R},extendPrototype([DynamicPropertyContainer],Ee),Ee}();function _e(Ee,Ae,Te){var we;if(Te===3||Te===4){var Ie=Te===3?Ae.pt:Ae.ks,Fe=Ie.k;Fe.length?we=new K(Ee,Ae,Te):we=new V(Ee,Ae,Te)}else Te===5?we=new Z(Ee,Ae):Te===6?we=new J(Ee,Ae):Te===7&&(we=new Y(Ee,Ae));return we.k&&Ee.addDynamicProperty(we),we}function xe(){return V}function Se(){return K}var Pe={};return Pe.getShapeProp=_e,Pe.getConstructorFunction=xe,Pe.getKeyframedConstructorFunction=Se,Pe}();/*!
1966
+ */const VERSION="4.5.0",PI=Math.PI,TAU=2*PI,HALF_PI=PI/2,C_1=8.17579892,CHANNEL_COMBINED="dual-combined",CHANNEL_HORIZONTAL="dual-horizontal",CHANNEL_SINGLE="single",CHANNEL_VERTICAL="dual-vertical",COLOR_BAR_INDEX="bar-index",COLOR_BAR_LEVEL="bar-level",COLOR_GRADIENT="gradient",DEBOUNCE_TIMEOUT=60,EVENT_CLICK="click",EVENT_FULLSCREENCHANGE="fullscreenchange",EVENT_RESIZE="resize",GRADIENT_DEFAULT_BGCOLOR="#111",FILTER_NONE="",FILTER_A="A",FILTER_B="B",FILTER_C="C",FILTER_D="D",FILTER_468="468",FONT_FAMILY="sans-serif",FPS_COLOR="#0f0",LEDS_UNLIT_COLOR="#7f7f7f22",MODE_GRAPH=10,REASON_CREATE="create",REASON_FSCHANGE="fschange",REASON_LORES="lores",REASON_RESIZE=EVENT_RESIZE,REASON_USER="user",SCALEX_BACKGROUND_COLOR="#000c",SCALEX_LABEL_COLOR="#fff",SCALEX_HIGHLIGHT_COLOR="#4f4",SCALEY_LABEL_COLOR="#888",SCALEY_MIDLINE_COLOR="#555",SCALE_BARK="bark",SCALE_LINEAR="linear",SCALE_LOG="log",SCALE_MEL="mel",PRISM=["#a35","#c66","#e94","#ed0","#9d5","#4d8","#2cb","#0bc","#09c","#36b"],GRADIENTS=[["classic",{colorStops:["red",{color:"yellow",level:.85,pos:.6},{color:"lime",level:.475}]}],["prism",{colorStops:PRISM}],["rainbow",{dir:"h",colorStops:["#817",...PRISM,"#639"]}],["orangered",{bgColor:"#3e2f29",colorStops:["OrangeRed"]}],["steelblue",{bgColor:"#222c35",colorStops:["SteelBlue"]}]],DEFAULT_SETTINGS={alphaBars:!1,ansiBands:!1,barSpace:.1,bgAlpha:.7,channelLayout:CHANNEL_SINGLE,colorMode:COLOR_GRADIENT,fadePeaks:!1,fftSize:8192,fillAlpha:1,frequencyScale:SCALE_LOG,gradient:GRADIENTS[0][0],gravity:3.8,height:void 0,ledBars:!1,linearAmplitude:!1,linearBoost:1,lineWidth:0,loRes:!1,lumiBars:!1,maxDecibels:-25,maxFPS:0,maxFreq:22e3,minDecibels:-85,minFreq:20,mirror:0,mode:0,noteLabels:!1,outlineBars:!1,overlay:!1,peakFadeTime:750,peakHoldTime:500,peakLine:!1,radial:!1,radialInvert:!1,radius:.3,reflexAlpha:.15,reflexBright:1,reflexFit:!0,reflexRatio:0,roundBars:!1,showBgColor:!0,showFPS:!1,showPeaks:!0,showScaleX:!0,showScaleY:!1,smoothing:.5,spinSpeed:0,splitGradient:!1,start:!0,trueLeds:!1,useCanvas:!0,volume:1,weightingFilter:FILTER_NONE,width:void 0},ERR_AUDIO_CONTEXT_FAIL=["ERR_AUDIO_CONTEXT_FAIL","Could not create audio context. Web Audio API not supported?"],ERR_INVALID_AUDIO_CONTEXT=["ERR_INVALID_AUDIO_CONTEXT","Provided audio context is not valid"],ERR_UNKNOWN_GRADIENT=["ERR_UNKNOWN_GRADIENT","Unknown gradient"],ERR_FREQUENCY_TOO_LOW=["ERR_FREQUENCY_TOO_LOW","Frequency values must be >= 1"],ERR_INVALID_MODE=["ERR_INVALID_MODE","Invalid mode"],ERR_REFLEX_OUT_OF_RANGE=["ERR_REFLEX_OUT_OF_RANGE","Reflex ratio must be >= 0 and < 1"],ERR_INVALID_AUDIO_SOURCE=["ERR_INVALID_AUDIO_SOURCE","Audio source must be an instance of HTMLMediaElement or AudioNode"],ERR_GRADIENT_INVALID_NAME=["ERR_GRADIENT_INVALID_NAME","Gradient name must be a non-empty string"],ERR_GRADIENT_NOT_AN_OBJECT=["ERR_GRADIENT_NOT_AN_OBJECT","Gradient options must be an object"],ERR_GRADIENT_MISSING_COLOR=["ERR_GRADIENT_MISSING_COLOR","Gradient colorStops must be a non-empty array"];class AudioMotionError extends Error{constructor(E,C){const[R,I]=E;super(I+(C!==void 0?`: ${C}`:"")),this.name="AudioMotionError",this.code=R}}const deprecate=(A,E)=>console.warn(`${A} is deprecated. Use ${E} instead.`),isEmpty=A=>{for(const E in A)return!1;return!0},validateFromList=(A,E,C="toLowerCase")=>E[Math.max(0,E.indexOf((""+A)[C]()))],findY=(A,E,C,R,I)=>E+(R-E)*(I-A)/(C-A);Array.prototype.findLastIndex||(Array.prototype.findLastIndex=function(A){let E=this.length;for(;E-- >0;)if(A(this[E]))return E;return-1});class AudioMotionAnalyzer{constructor(E,C={}){this._ready=!1,this._aux={},this._canvasGradients=[],this._destroyed=!1,this._energy={val:0,peak:0,hold:0},this._flg={},this._fps=0,this._gradients={},this._last=0,this._outNodes=[],this._ownContext=!1,this._selectedGrads=[],this._sources=[],E instanceof Element||(isEmpty(C)&&!isEmpty(E)&&(C=E),E=null),this._ownCanvas=!(C.canvas instanceof HTMLCanvasElement);const R=this._ownCanvas?document.createElement("canvas"):C.canvas;R.style="max-width: 100%;",this._ctx=R.getContext("2d");for(const[Y,Z]of GRADIENTS)this.registerGradient(Y,Z);this._container=E||!this._ownCanvas&&R.parentElement||document.body,this._defaultWidth=this._container.clientWidth||640,this._defaultHeight=this._container.clientHeight||270;let I;if(!(C.source&&(I=C.source.context))){if(!(I=C.audioCtx))try{I=new(window.AudioContext||window.webkitAudioContext),this._ownContext=!0}catch{throw new AudioMotionError(ERR_AUDIO_CONTEXT_FAIL)}}if(!I.createGain)throw new AudioMotionError(ERR_INVALID_AUDIO_CONTEXT);const B=this._analyzer=[I.createAnalyser(),I.createAnalyser()],U=this._splitter=I.createChannelSplitter(2),V=this._merger=I.createChannelMerger(2);this._input=I.createGain(),this._output=I.createGain(),C.source&&this.connectInput(C.source);for(const Y of[0,1])U.connect(B[Y],Y);V.connect(this._output),C.connectSpeakers!==!1&&this.connectOutput();for(const Y of["_scaleX","_scaleR"])this[Y]=document.createElement("canvas").getContext("2d");this._fsEl=C.fsElement||R;const X=()=>{this._fsTimeout||(this._fsTimeout=window.setTimeout(()=>{this._fsChanging||(this._setCanvas(REASON_RESIZE),this._fsTimeout=0)},DEBOUNCE_TIMEOUT))};window.ResizeObserver&&(this._observer=new ResizeObserver(X),this._observer.observe(this._container)),this._controller=new AbortController;const K=this._controller.signal;window.addEventListener(EVENT_RESIZE,X,{signal:K}),R.addEventListener(EVENT_FULLSCREENCHANGE,()=>{this._fsChanging=!0,this._fsTimeout&&window.clearTimeout(this._fsTimeout),this._setCanvas(REASON_FSCHANGE),this._fsTimeout=window.setTimeout(()=>{this._fsChanging=!1,this._fsTimeout=0},DEBOUNCE_TIMEOUT)},{signal:K});const J=()=>{I.state=="suspended"&&I.resume(),window.removeEventListener(EVENT_CLICK,J)};window.addEventListener(EVENT_CLICK,J),document.addEventListener("visibilitychange",()=>{document.visibilityState!="hidden"&&(this._frames=0,this._time=performance.now())},{signal:K}),this._setProps(C,!0),this.useCanvas&&this._ownCanvas&&this._container.appendChild(R),this._ready=!0,this._setCanvas(REASON_CREATE)}get alphaBars(){return this._alphaBars}set alphaBars(E){this._alphaBars=!!E,this._calcBars()}get ansiBands(){return this._ansiBands}set ansiBands(E){this._ansiBands=!!E,this._calcBars()}get barSpace(){return this._barSpace}set barSpace(E){this._barSpace=+E||0,this._calcBars()}get channelLayout(){return this._chLayout}set channelLayout(E){this._chLayout=validateFromList(E,[CHANNEL_SINGLE,CHANNEL_HORIZONTAL,CHANNEL_VERTICAL,CHANNEL_COMBINED]),this._input.disconnect(),this._input.connect(this._chLayout!=CHANNEL_SINGLE?this._splitter:this._analyzer[0]),this._analyzer[0].disconnect(),this._outNodes.length&&this._analyzer[0].connect(this._chLayout!=CHANNEL_SINGLE?this._merger:this._output),this._calcBars(),this._makeGrad()}get colorMode(){return this._colorMode}set colorMode(E){this._colorMode=validateFromList(E,[COLOR_GRADIENT,COLOR_BAR_INDEX,COLOR_BAR_LEVEL])}get fadePeaks(){return this._fadePeaks}set fadePeaks(E){this._fadePeaks=!!E}get fftSize(){return this._analyzer[0].fftSize}set fftSize(E){for(const R of[0,1])this._analyzer[R].fftSize=E;const C=this._analyzer[0].frequencyBinCount;this._fftData=[new Float32Array(C),new Float32Array(C)],this._calcBars()}get frequencyScale(){return this._frequencyScale}set frequencyScale(E){this._frequencyScale=validateFromList(E,[SCALE_LOG,SCALE_BARK,SCALE_MEL,SCALE_LINEAR]),this._calcBars()}get gradient(){return this._selectedGrads[0]}set gradient(E){this._setGradient(E)}get gradientLeft(){return this._selectedGrads[0]}set gradientLeft(E){this._setGradient(E,0)}get gradientRight(){return this._selectedGrads[1]}set gradientRight(E){this._setGradient(E,1)}get gravity(){return this._gravity}set gravity(E){this._gravity=E>0?+E:this._gravity||DEFAULT_SETTINGS.gravity}get height(){return this._height}set height(E){this._height=E,this._setCanvas(REASON_USER)}get ledBars(){return this._showLeds}set ledBars(E){this._showLeds=!!E,this._calcBars()}get linearAmplitude(){return this._linearAmplitude}set linearAmplitude(E){this._linearAmplitude=!!E}get linearBoost(){return this._linearBoost}set linearBoost(E){this._linearBoost=E>=1?+E:1}get lineWidth(){return this._lineWidth}set lineWidth(E){this._lineWidth=+E||0}get loRes(){return this._loRes}set loRes(E){this._loRes=!!E,this._setCanvas(REASON_LORES)}get lumiBars(){return this._lumiBars}set lumiBars(E){this._lumiBars=!!E,this._calcBars(),this._makeGrad()}get maxDecibels(){return this._analyzer[0].maxDecibels}set maxDecibels(E){for(const C of[0,1])this._analyzer[C].maxDecibels=E}get maxFPS(){return this._maxFPS}set maxFPS(E){this._maxFPS=E<0?0:+E||0}get maxFreq(){return this._maxFreq}set maxFreq(E){if(E<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._maxFreq=Math.min(E,this.audioCtx.sampleRate/2),this._calcBars()}get minDecibels(){return this._analyzer[0].minDecibels}set minDecibels(E){for(const C of[0,1])this._analyzer[C].minDecibels=E}get minFreq(){return this._minFreq}set minFreq(E){if(E<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._minFreq=+E,this._calcBars()}get mirror(){return this._mirror}set mirror(E){this._mirror=Math.sign(E)|0,this._calcBars(),this._makeGrad()}get mode(){return this._mode}set mode(E){const C=E|0;if(C>=0&&C<=10&&C!=9)this._mode=C,this._calcBars(),this._makeGrad();else throw new AudioMotionError(ERR_INVALID_MODE,E)}get noteLabels(){return this._noteLabels}set noteLabels(E){this._noteLabels=!!E,this._createScales()}get outlineBars(){return this._outlineBars}set outlineBars(E){this._outlineBars=!!E,this._calcBars()}get peakFadeTime(){return this._peakFadeTime}set peakFadeTime(E){this._peakFadeTime=E>=0?+E:this._peakFadeTime||DEFAULT_SETTINGS.peakFadeTime}get peakHoldTime(){return this._peakHoldTime}set peakHoldTime(E){this._peakHoldTime=+E||0}get peakLine(){return this._peakLine}set peakLine(E){this._peakLine=!!E}get radial(){return this._radial}set radial(E){this._radial=!!E,this._calcBars(),this._makeGrad()}get radialInvert(){return this._radialInvert}set radialInvert(E){this._radialInvert=!!E,this._calcBars(),this._makeGrad()}get radius(){return this._radius}set radius(E){this._radius=+E||0,this._calcBars(),this._makeGrad()}get reflexRatio(){return this._reflexRatio}set reflexRatio(E){if(E=+E||0,E<0||E>=1)throw new AudioMotionError(ERR_REFLEX_OUT_OF_RANGE);this._reflexRatio=E,this._calcBars(),this._makeGrad()}get roundBars(){return this._roundBars}set roundBars(E){this._roundBars=!!E,this._calcBars()}get smoothing(){return this._analyzer[0].smoothingTimeConstant}set smoothing(E){for(const C of[0,1])this._analyzer[C].smoothingTimeConstant=E}get spinSpeed(){return this._spinSpeed}set spinSpeed(E){E=+E||0,(this._spinSpeed===void 0||E==0)&&(this._spinAngle=-HALF_PI),this._spinSpeed=E}get splitGradient(){return this._splitGradient}set splitGradient(E){this._splitGradient=!!E,this._makeGrad()}get stereo(){return deprecate("stereo","channelLayout"),this._chLayout!=CHANNEL_SINGLE}set stereo(E){deprecate("stereo","channelLayout"),this.channelLayout=E?CHANNEL_VERTICAL:CHANNEL_SINGLE}get trueLeds(){return this._trueLeds}set trueLeds(E){this._trueLeds=!!E}get volume(){return this._output.gain.value}set volume(E){this._output.gain.value=E}get weightingFilter(){return this._weightingFilter}set weightingFilter(E){this._weightingFilter=validateFromList(E,[FILTER_NONE,FILTER_A,FILTER_B,FILTER_C,FILTER_D,FILTER_468],"toUpperCase")}get width(){return this._width}set width(E){this._width=E,this._setCanvas(REASON_USER)}get audioCtx(){return this._input.context}get canvas(){return this._ctx.canvas}get canvasCtx(){return this._ctx}get connectedSources(){return this._sources}get connectedTo(){return this._outNodes}get fps(){return this._fps}get fsHeight(){return this._fsHeight}get fsWidth(){return this._fsWidth}get isAlphaBars(){return this._flg.isAlpha}get isBandsMode(){return this._flg.isBands}get isDestroyed(){return this._destroyed}get isFullscreen(){return this._fsEl&&(document.fullscreenElement||document.webkitFullscreenElement)===this._fsEl}get isLedBars(){return this._flg.isLeds}get isLumiBars(){return this._flg.isLumi}get isOctaveBands(){return this._flg.isOctaves}get isOn(){return!!this._runId}get isOutlineBars(){return this._flg.isOutline}get pixelRatio(){return this._pixelRatio}get isRoundBars(){return this._flg.isRound}static get version(){return VERSION}connectInput(E){const C=E instanceof HTMLMediaElement;if(!(C||E.connect))throw new AudioMotionError(ERR_INVALID_AUDIO_SOURCE);const R=C?this.audioCtx.createMediaElementSource(E):E;return this._sources.includes(R)||(R.connect(this._input),this._sources.push(R)),R}connectOutput(E=this.audioCtx.destination){if(!this._outNodes.includes(E)&&(this._output.connect(E),this._outNodes.push(E),this._outNodes.length==1))for(const C of[0,1])this._analyzer[C].connect(this._chLayout==CHANNEL_SINGLE&&!C?this._output:this._merger,0,C)}destroy(){if(!this._ready)return;const{audioCtx:E,canvas:C,_controller:R,_input:I,_merger:B,_observer:U,_ownCanvas:V,_ownContext:X,_splitter:K}=this;this._destroyed=!0,this._ready=!1,this.stop(),R.abort(),U&&U.disconnect(),this.onCanvasResize=null,this.onCanvasDraw=null,this._fsEl=null,this.disconnectInput(),this.disconnectOutput(),I.disconnect(),K.disconnect(),B.disconnect(),X&&E.close(),V&&C.remove(),this._calcBars()}disconnectInput(E,C){E?Array.isArray(E)||(E=[E]):E=Array.from(this._sources);for(const R of E){const I=this._sources.indexOf(R);if(C&&R.mediaStream)for(const B of R.mediaStream.getAudioTracks())B.stop();I>=0&&(R.disconnect(this._input),this._sources.splice(I,1))}}disconnectOutput(E){if(!(E&&!this._outNodes.includes(E))&&(this._output.disconnect(E),this._outNodes=E?this._outNodes.filter(C=>C!==E):[],this._outNodes.length==0))for(const C of[0,1])this._analyzer[C].disconnect()}getBars(){return Array.from(this._bars,({posX:E,freq:C,freqLo:R,freqHi:I,hold:B,peak:U,value:V})=>({posX:E,freq:C,freqLo:R,freqHi:I,hold:B,peak:U,value:V}))}getEnergy(E,C){if(E===void 0)return this._energy.val;if(E!=+E){if(E=="peak")return this._energy.peak;const V={bass:[20,250],lowMid:[250,500],mid:[500,2e3],highMid:[2e3,4e3],treble:[4e3,16e3]};if(!V[E])return null;[E,C]=V[E]}const R=this._freqToBin(E),I=C?this._freqToBin(C):R,B=this._chLayout==CHANNEL_SINGLE?1:2;let U=0;for(let V=0;V<B;V++)for(let X=R;X<=I;X++)U+=this._normalizedB(this._fftData[V][X]);return U/(I-R+1)/B}getOptions(E){Array.isArray(E)||(E=[E]);let C={};for(const R of Object.keys(DEFAULT_SETTINGS))E.includes(R)||(R=="gradient"&&this.gradientLeft!=this.gradientRight?(C.gradientLeft=this.gradientLeft,C.gradientRight=this.gradientRight):R!="start"&&(C[R]=this[R]));return C}registerGradient(E,C){if(typeof E!="string"||E.trim().length==0)throw new AudioMotionError(ERR_GRADIENT_INVALID_NAME);if(typeof C!="object")throw new AudioMotionError(ERR_GRADIENT_NOT_AN_OBJECT);const{colorStops:R}=C;if(!Array.isArray(R)||!R.length)throw new AudioMotionError(ERR_GRADIENT_MISSING_COLOR);const I=R.length,B=U=>+U!=U||U<0||U>1;R.forEach((U,V)=>{const X=V/Math.max(1,I-1);typeof U!="object"?R[V]={pos:X,color:U}:B(U.pos)&&(U.pos=X),B(U.level)&&(R[V].level=1-V/I)}),R.sort((U,V)=>U.level<V.level?1:U.level>V.level?-1:0),R[0].level=1,this._gradients[E]={bgColor:C.bgColor||GRADIENT_DEFAULT_BGCOLOR,dir:C.dir,colorStops:R},this._selectedGrads.includes(E)&&this._makeGrad()}setCanvasSize(E,C){this._width=E,this._height=C,this._setCanvas(REASON_USER)}setFreqRange(E,C){if(E<1||C<1)throw new AudioMotionError(ERR_FREQUENCY_TOO_LOW);this._minFreq=Math.min(E,C),this.maxFreq=Math.max(E,C)}setLedParams(E){let C,R,I;E&&(C=E.maxLeds|0,R=+E.spaceV,I=+E.spaceH),this._ledParams=C>0&&R>0&&I>=0?[C,R,I]:void 0,this._calcBars()}setOptions(E){this._setProps(E)}setSensitivity(E,C){for(const R of[0,1])this._analyzer[R].minDecibels=Math.min(E,C),this._analyzer[R].maxDecibels=Math.max(E,C)}start(){this.toggleAnalyzer(!0)}stop(){this.toggleAnalyzer(!1)}toggleAnalyzer(E){const C=this.isOn;return E===void 0&&(E=!C),C&&!E?(cancelAnimationFrame(this._runId),this._runId=0):!C&&E&&!this._destroyed&&(this._frames=0,this._time=performance.now(),this._runId=requestAnimationFrame(R=>this._draw(R))),this.isOn}toggleFullscreen(){if(this.isFullscreen)document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();else{const E=this._fsEl;if(!E)return;E.requestFullscreen?E.requestFullscreen():E.webkitRequestFullscreen&&E.webkitRequestFullscreen()}}_binToFreq(E){return E*this.audioCtx.sampleRate/this.fftSize||1}_calcBars(){const E=this._bars=[];if(!this._ready){this._flg={isAlpha:!1,isBands:!1,isLeds:!1,isLumi:!1,isOctaves:!1,isOutline:!1,isRound:!1,noLedGap:!1};return}const{_ansiBands:C,_barSpace:R,canvas:I,_chLayout:B,_maxFreq:U,_minFreq:V,_mirror:X,_mode:K,_radial:J,_radialInvert:Y,_reflexRatio:Z}=this,_e=I.width>>1,xe=I.height>>1,Se=B==CHANNEL_VERTICAL&&!J,Pe=B==CHANNEL_HORIZONTAL,Ee=K%10!=0,Ae=Ee&&this._frequencyScale==SCALE_LOG,Te=this._showLeds&&Ee&&!J,we=this._lumiBars&&Ee&&!J,Ie=this._alphaBars&&!we&&K!=MODE_GRAPH,Fe=this._outlineBars&&Ee&&!we&&!Te,ke=this._roundBars&&Ee&&!we&&!Te,Le=B!=CHANNEL_VERTICAL||Z>0&&!we,Ge=I.height-(Se&&!Te?.5:0)>>Se,Ue=Ge*(we||J?1:1-Z)|0,Be=I.width-_e*(Pe||X!=0),je=Se?I.height-Ge*2:0,Ve=_e*(X==-1&&!Pe&&!J);let ze=Math.min(I.width,I.height)*.375*(B==CHANNEL_VERTICAL?1:this._radius)|0,He=Math.min(_e,xe);Y&&B!=CHANNEL_VERTICAL&&([ze,He]=[He,ze]);const Oe=Je=>E.push({...Je,peak:[0,0],hold:[0],alpha:[0],value:[0]}),$e=Je=>{const Ke=this._freqToBin(Je,"floor"),rt=this._binToFreq(Ke),nt=this._binToFreq(Ke+1),Qe=Math.log2(Je/rt)/Math.log2(nt/rt);return[Ke,Qe]};let Re,Me,Ne;if(Ae){const Je=(et,We,it)=>+et.toPrecision(it?Math.max(We,1+Math.log10(et)|0):We),Ke=et=>{const We=[1,1.12,1.25,1.4,1.6,1.8,2,2.24,2.5,2.8,3.15,3.55,4,4.5,5,5.6,6.3,7.1,8,9,10],it=Math.log10(et)|0,lt=et/10**it;let ht=1;for(;ht<We.length&&lt>We[ht];)ht++;return lt-We[ht-1]<We[ht]-lt&&ht--,(We[ht]*10**(it+5)|0)/1e5},rt=[0,24,12,8,6,4,3,2,1][K],nt=C?10**(3/(rt*10)):2**(1/rt),Qe=nt**.5;let Ze=C?7.94328235/(rt%2?1:Qe):C_1;do{let et=Ze;const We=Je(et/Qe,4,!0),it=Je(et*Qe,4,!0),[lt,ht]=$e(We),[dt,mt]=$e(it);C?et=rt<4?Ke(et):Je(et,et.toString()[0]<5?3:2):et=Je(et,4,!0),et>=V&&Oe({posX:0,freq:et,freqLo:We,freqHi:it,binLo:lt,binHi:dt,ratioLo:ht,ratioHi:mt}),Ze*=nt}while(Ze<=U);Re=Be/E.length,E.forEach((et,We)=>et.posX=Ve+We*Re);const tt=E[0],st=E[E.length-1];Me=this._freqScaling(tt.freqLo),Ne=Be/(this._freqScaling(st.freqHi)-Me),tt.freqLo<V&&(tt.freqLo=V,[tt.binLo,tt.ratioLo]=$e(V)),st.freqHi>U&&(st.freqHi=U,[st.binHi,st.ratioHi]=$e(U))}else if(Ee){const Je=[0,24,12,8,6,4,3,2,1][K]*10,Ke=rt=>{switch(this._frequencyScale){case SCALE_BARK:return 1960/(26.81/(rt+.53)-1);case SCALE_MEL:return 700*(2**rt-1);case SCALE_LINEAR:return rt}};Re=Be/Je,Me=this._freqScaling(V),Ne=Be/(this._freqScaling(U)-Me);for(let rt=0,nt=0;rt<Je;rt++,nt+=Re){const Qe=Ke(Me+nt/Ne),Ze=Ke(Me+(nt+Re/2)/Ne),tt=Ke(Me+(nt+Re)/Ne),[st,et]=$e(Qe),[We,it]=$e(tt);Oe({posX:Ve+nt,freq:Ze,freqLo:Qe,freqHi:tt,binLo:st,binHi:We,ratioLo:et,ratioHi:it})}}else{Re=1,Me=this._freqScaling(V),Ne=Be/(this._freqScaling(U)-Me);const Je=this._freqToBin(V,"floor"),Ke=this._freqToBin(U);let rt=-999;for(let nt=Je;nt<=Ke;nt++){const Qe=this._binToFreq(nt),Ze=Ve+Math.round(Ne*(this._freqScaling(Qe)-Me));if(Ze>rt)Oe({posX:Ze,freq:Qe,freqLo:Qe,freqHi:Qe,binLo:nt,binHi:nt,ratioLo:0,ratioHi:0}),rt=Ze;else if(E.length){const tt=E[E.length-1];tt.binHi=nt,tt.freqHi=Qe,tt.freq=(tt.freqLo*Qe)**.5}}}let De=0,Xe=0;if(Te){const Je=this._pixelRatio/(window.devicePixelRatio>1&&window.screen.height<=540?2:1),Ke=[[],[128,3,.45],[128,4,.225],[96,6,.225],[80,6,.225],[80,6,.125],[64,6,.125],[48,8,.125],[24,16,.125]],rt=this._ledParams,[nt,Qe,Ze]=rt||Ke[K];let tt,st=Ue;if(rt){const et=2*Je;let We;tt=nt+1;do tt--,We=st/tt/(1+Qe),Xe=We*Qe;while((We<et||Xe<et)&&tt>1)}else{const et=540/Qe;Xe=Math.min(Qe*Je,Math.max(2,st/et+.1|0))}Le&&(st+=Xe),rt||(tt=Math.min(nt,st/(Xe*2)|0)),De=Ze>=1?Ze:Re*Ze,this._leds=[tt,De,Xe,st/tt-Xe]}const qe=Math.min(Re-1,R*(R>0&&R<1?Re:1));Ee&&(Re-=Math.max(Te?De:0,qe)),E.forEach((Je,Ke)=>{let rt=Je.posX,nt=Re;Ee&&(R==0&&!Te?(rt|=0,nt|=0,Ke>0&&rt>E[Ke-1].posX+E[Ke-1].width&&(rt--,nt++)):rt+=Math.max(Te?De:0,qe)/2,Je.posX=rt),Je.barCenter=rt+(Re==1?0:nt/2),Je.width=nt});const Ye=[];for(const Je of[0,1]){const Ke=B==CHANNEL_VERTICAL?(Ge+je)*Je:0,rt=Ke+Ge,nt=Ke+Ue-(!Te||Le?0:Xe);Ye.push({channelTop:Ke,channelBottom:rt,analyzerBottom:nt})}this._aux={analyzerHeight:Ue,analyzerWidth:Be,centerX:_e,centerY:xe,channelCoords:Ye,channelHeight:Ge,channelGap:je,initialX:Ve,innerRadius:ze,outerRadius:He,scaleMin:Me,unitWidth:Ne},this._flg={isAlpha:Ie,isBands:Ee,isLeds:Te,isLumi:we,isOctaves:Ae,isOutline:Fe,isRound:ke,noLedGap:Le},this._createScales()}_createScales(){if(!this._ready)return;const{analyzerWidth:E,initialX:C,innerRadius:R,scaleMin:I,unitWidth:B}=this._aux,{canvas:U,_frequencyScale:V,_mirror:X,_noteLabels:K,_radial:J,_scaleX:Y,_scaleR:Z}=this,_e=Y.canvas,xe=Z.canvas,Se=[],Pe=this._chLayout==CHANNEL_HORIZONTAL,Ee=this._chLayout==CHANNEL_VERTICAL,Ae=Math.min(U.width,U.height),Te=["C",,"D",,"E","F",,"G",,"A",,"B"],we=Ae/34|0,Ie=_e.height>>1,Fe=we>>1,ke=Ie*(K?.7:1.5),Le=Fe*(K?1:2),Ge=2**(1/12);if(!K&&(this._ansiBands||V!=SCALE_LOG))Se.push(16,31.5,63,125,250,500,1e3,2e3,4e3),V==SCALE_LINEAR?Se.push(6e3,8e3,1e4,12e3,14e3,16e3,18e3,2e4,22e3):Se.push(8e3,16e3);else{let He=C_1;for(let Oe=-1;Oe<11;Oe++)for(let $e=0;$e<12;$e++){if(He>=this._minFreq&&He<=this._maxFreq){const Re=Te[$e],Me=Re=="C";(Re&&K&&!X&&!Pe||Me)&&Se.push(K?[He,Re+(Me?Oe:"")]:He)}He*=Ge}}xe.width=xe.height=Math.max(Ae*.15,(R<<1)+Ee*we);const Ue=xe.width>>1,Be=Ue-we*.7,je=(He,Oe)=>{const $e=TAU*(He/U.width),Re=$e-HALF_PI,Me=Be*Math.cos(Re),Ne=Be*Math.sin(Re);Z.save(),Z.translate(Ue+Me,Ue+Ne),Z.rotate($e),Z.fillText(Oe,0,0),Z.restore()};_e.width|=0,Y.fillStyle=Z.strokeStyle=SCALEX_BACKGROUND_COLOR,Y.fillRect(0,0,_e.width,_e.height),Z.arc(Ue,Ue,Ue-we/2,0,TAU),Z.lineWidth=we,Z.stroke(),Y.fillStyle=Z.fillStyle=SCALEX_LABEL_COLOR,Y.font=`${Ie}px ${FONT_FAMILY}`,Z.font=`${Fe}px ${FONT_FAMILY}`,Y.textAlign=Z.textAlign="center";let Ve=-ke/4,ze=-Le;for(const He of Se){const[Oe,$e]=Array.isArray(He)?He:[He,He<1e3?He|0:`${(He/100|0)/10}k`],Re=B*(this._freqScaling(Oe)-I),Me=_e.height*.75,Ne=$e[0]=="C",De=Ie*(K&&!X&&!Pe?Ne?1.2:.6:3);if(Y.fillStyle=Z.fillStyle=Ne&&!X&&!Pe?SCALEX_HIGHLIGHT_COLOR:SCALEX_LABEL_COLOR,K){const Xe=V==SCALE_LOG,qe=V==SCALE_LINEAR;let Ye=["C"];if((Xe||Oe>2e3||!qe&&Oe>250||(!J||Ee)&&(!qe&&Oe>125||Oe>1e3))&&Ye.push("G"),(Xe||Oe>4e3||!qe&&Oe>500||(!J||Ee)&&(!qe&&Oe>250||Oe>2e3))&&Ye.push("E"),(qe&&Oe>4e3||(!J||Ee)&&(Xe||Oe>2e3||!qe&&Oe>500))&&Ye.push("D","F","A","B"),!Ye.includes($e[0]))continue}Re>=Ve+ke/2&&Re<=E&&(Y.fillText($e,Pe&&X==-1?E-Re:C+Re,Me,De),(Pe||X&&(Re>ke||X==1))&&Y.fillText($e,Pe&&X!=1?E+Re:(C||U.width)-Re,Me,De),Ve=Re+Math.min(De,Y.measureText($e).width)/2),Re>=ze+Le&&Re<E-Le&&(je(Pe&&X==1?E-Re:Re,$e),(Pe||X&&(Re>Le||X==1))&&je(Pe&&X!=-1?E+Re:-Re,$e),ze=Re)}}_draw(E){this._runId=requestAnimationFrame(at=>this._draw(at));const C=E-this._time,R=E-this._last,I=this._maxFPS?975/this._maxFPS:0;if(R<I)return;this._last=E-(I?R%I:0),this._frames++,C>=1e3&&(this._fps=this._frames/C*1e3,this._frames=0,this._time=E);const{isAlpha:B,isBands:U,isLeds:V,isLumi:X,isOctaves:K,isOutline:J,isRound:Y,noLedGap:Z}=this._flg,{analyzerHeight:_e,centerX:xe,centerY:Se,channelCoords:Pe,channelHeight:Ee,channelGap:Ae,initialX:Te,innerRadius:we,outerRadius:Ie}=this._aux,{_bars:Fe,canvas:ke,_canvasGradients:Le,_chLayout:Ge,_colorMode:Ue,_ctx:Be,_energy:je,_fadePeaks:Ve,fillAlpha:ze,_fps:He,_linearAmplitude:Oe,_lineWidth:$e,maxDecibels:Re,minDecibels:Me,_mirror:Ne,_mode:De,overlay:Xe,_radial:qe,showBgColor:Ye,showPeaks:Je,useCanvas:Ke,_weightingFilter:rt}=this,nt=this._scaleX.canvas,Qe=this._scaleR.canvas,Ze=He*this._peakFadeTime/1e3,tt=He**2,st=this._gravity*1e3,et=He*this._peakHoldTime/1e3,We=Ge==CHANNEL_COMBINED,it=Ge==CHANNEL_HORIZONTAL,lt=Ge==CHANNEL_VERTICAL,ht=Ge==CHANNEL_SINGLE,dt=V&&this._trueLeds&&Ue==COLOR_GRADIENT,mt=qe?ke.width:this._aux.analyzerWidth,ct=Te+mt,pt=Je&&this._peakLine&&De==MODE_GRAPH,yt=qe?Ie-we:_e,gt=yt/this._pixelRatio,[xt,It,St,Mt]=this._leds||[];je.val>0&&He>0&&(this._spinAngle+=this._spinSpeed*TAU/60/He);const qt=at=>{if(this._reflexRatio>0&&!X&&!qe){let vt,Lt;this.reflexFit||lt?(vt=lt&&at==0?Ee+Ae:0,Lt=Ee-_e):(vt=ke.height-_e*2,Lt=_e),Be.save(),Be.globalAlpha=this.reflexAlpha,this.reflexBright!=1&&(Be.filter=`brightness(${this.reflexBright})`),Be.setTransform(1,0,0,-1,0,ke.height),Be.drawImage(ke,0,Pe[at].channelTop,ke.width,_e,0,vt,ke.width,Lt),Be.restore()}},Wt=()=>{this.showScaleX&&(qe?(Be.save(),Be.translate(xe,Se),this._spinSpeed&&Be.rotate(this._spinAngle+HALF_PI),Be.drawImage(Qe,-Qe.width>>1,-Qe.width>>1),Be.restore()):Be.drawImage(nt,0,ke.height-nt.height))},Yt=at=>{const vt=at**2,Lt=424.36,At=11599.29,ir=25122.25,Dt=544496.41,Nt=148693636,Vt=Ht=>20*Math.log10(Ht);switch(rt){case FILTER_A:const Ht=Nt*vt**2/((vt+Lt)*Math.sqrt((vt+At)*(vt+Dt))*(vt+Nt));return 2+Vt(Ht);case FILTER_B:const zt=Nt*vt*at/((vt+Lt)*Math.sqrt(vt+ir)*(vt+Nt));return .17+Vt(zt);case FILTER_C:const pr=Nt*vt/((vt+Lt)*(vt+Nt));return .06+Vt(pr);case FILTER_D:const nr=((103791848e-2-vt)**2+108076816e-2*vt)/((9837328-vt)**2+11723776*vt),mr=at/68966888496476e-18*Math.sqrt(nr/((vt+79919.29)*(vt+1345600)));return Vt(mr);case FILTER_468:const sr=-4737338981378384e-39*at**6+2043828333606125e-30*at**4-1363894795463638e-22*vt+1,jt=1306612257412824e-34*at**5-2118150887518656e-26*at**3+.0005559488023498642*at,wt=.0001246332637532143*at/Math.hypot(sr,jt);return 18.2+Vt(wt)}return 0},fr=(at,vt,Lt)=>{Be.beginPath(),Be.moveTo(at,vt),Be.lineTo(at,Lt),Be.stroke()},dr=at=>{if(at&&$e){const vt=Be.globalAlpha;Be.globalAlpha=1,Be.stroke(),Be.globalAlpha=vt}},Ut=at=>Math.max(0,(at*xt|0)*(Mt+St)-St),Ir=at=>{je.val=at,je.peak>0&&(je.hold--,je.hold<0&&(je.peak+=je.hold*st/tt/ke.height*this._pixelRatio)),at>=je.peak&&(je.peak=at,je.hold=et)};Xe&&Be.clearRect(0,0,ke.width,ke.height);let Sr=0;const Er=Fe.length,Tr=ht?1:2;for(let at=0;at<Tr;at++){const{channelTop:vt,channelBottom:Lt,analyzerBottom:At}=Pe[at],ir=this._gradients[this._selectedGrads[at]],Dt=ir.colorStops,Nt=Dt.length,Vt=!Ye||V&&!Xe?"#000":ir.bgColor,Ht=lt&&qe&&at?-1:1,zt=!at&&Ne==-1||at&&Ne==1,pr=!it||at&&Ne!=1?0:mt>>(at||!zt),nr=it&&zt?-1:1,mr=()=>{const ot=nt.height,ut=ot>>1,ft=Oe?100:Re,bt=Oe?0:Me,Et=Oe?20:5,Pt=_e/(ft-bt),$t=Ne!=-1&&(!it||at==0||Ne==1),Bt=Ne!=1&&(!it||at!=Ne);Be.save(),Be.fillStyle=SCALEY_LABEL_COLOR,Be.font=`${ut}px ${FONT_FAMILY}`,Be.textAlign="right",Be.lineWidth=1;for(let Gt=ft;Gt>bt;Gt-=Et){const Kt=vt+(ft-Gt)*Pt,Tt=Gt%2==0|0;if(Tt){const Ct=Kt+ut*(Kt==vt?.8:.35);$t&&Be.fillText(Gt,ot*.85,Ct),Bt&&Be.fillText(Gt,(it?mt:ke.width)-ot*.1,Ct),Be.strokeStyle=SCALEY_LABEL_COLOR,Be.setLineDash([2,4]),Be.lineDashOffset=0}else Be.strokeStyle=SCALEY_MIDLINE_COLOR,Be.setLineDash([2,8]),Be.lineDashOffset=1;Be.beginPath(),Be.moveTo(Te+ot*Tt*$t,~~Kt+.5),Be.lineTo(ct-ot*Tt*Bt,~~Kt+.5),Be.stroke()}Be.restore()},sr=(ot,ut)=>{const ft=kt[ot]+(ot<kt.length-1?(kt[ot+1]-kt[ot])*ut:0);return isNaN(ft)?-1/0:ft},jt=(ot,ut=nr)=>ut*TAU*((ot+pr)/ke.width)+this._spinAngle,wt=(ot,ut,ft)=>{const bt=we+ut*Ht,Et=jt(ot,ft);return[xe+bt*Math.cos(Et),Se+bt*Math.sin(Et)]},gr=(ot,ut,ft,bt,Et)=>{Be.beginPath();for(const Pt of Ne&&!it?[1,-1]:[nr]){const[$t,Bt]=Y?[jt(ot,Pt),jt(ot+ft,Pt)]:[];Be.moveTo(...wt(ot,ut,Pt)),Be.lineTo(...wt(ot,ut+bt,Pt)),Y?Be.arc(xe,Se,we+(ut+bt)*Ht,$t,Bt,Pt!=1):Be.lineTo(...wt(ot+ft,ut+bt,Pt)),Be.lineTo(...wt(ot+ft,ut,Pt)),Y&&!Et&&Be.arc(xe,Se,we+ut*Ht,Bt,$t,Pt==1)}dr(Et),Be.fill()},vr=(ot=0,ut=0)=>{let ft;if(Ue==COLOR_GRADIENT&&!dt||De==MODE_GRAPH)ft=Le[at];else{const bt=Ue==COLOR_BAR_INDEX?ut%Nt:Dt.findLastIndex(Et=>V?Ut(ot)<=Ut(Et.level):ot<=Et.level);ft=Dt[bt].color}Be.fillStyle=Be.strokeStyle=ft};if(Ke){if(it&&!qe){const ot=mt*(at+zt),ut=zt?-1:1;Be.setTransform(ut,0,0,1,ot,0)}if((!Xe||Ye)&&(Xe&&(Be.globalAlpha=this.bgAlpha),Be.fillStyle=Vt,(at==0||!qe&&!We)&&Be.fillRect(Te,vt-Ae,mt,(Xe&&this.reflexAlpha==1?_e:Ee)+Ae),Be.globalAlpha=1),this.showScaleY&&!X&&!qe&&(at==0||!We)&&mr(),V?(Be.setLineDash([Mt,St]),Be.lineWidth=Fe[0].width):Be.lineWidth=J?Math.min($e,Fe[0].width/2):$e,Be.save(),!qe){const ot=new Path2D;ot.rect(0,vt,ke.width,_e),Be.clip(ot)}}let kt=this._fftData[at];this._analyzer[at].getFloatFrequencyData(kt),rt&&(kt=kt.map((ot,ut)=>ot+Yt(this._binToFreq(ut)))),Be.beginPath();let er=[];for(let ot=0;ot<Er;ot++){const ut=Fe[ot],{posX:ft,barCenter:bt,width:Et,freq:Pt,binLo:$t,binHi:Bt,ratioLo:Gt,ratioHi:Kt}=ut;let Tt=Math.max(sr($t,Gt),sr(Bt,Kt));for(let _t=$t+1;_t<Bt;_t++)kt[_t]>Tt&&(Tt=kt[_t]);if(Tt=this._normalizedB(Tt),ut.value[at]=Tt,Sr+=Tt,ut.peak[at]>0&&ut.alpha[at]>0&&(ut.hold[at]--,ut.hold[at]<0)){if(Ve&&!pt){const _t=!B||J&&$e>0?1:B?ut.peak[at]:ze;ut.alpha[at]=_t*(1+ut.hold[at]/Ze)}else ut.peak[at]+=ut.hold[at]*st/tt/gt;ut.alpha[at]<=0&&(ut.peak[at]=0)}if(Tt>=ut.peak[at]&&(ut.peak[at]=Tt,ut.hold[at]=et,ut.alpha[at]=!B||J&&$e>0?1:B?Tt:ze),!Ke)continue;Be.globalAlpha=X||B?Tt:J?ze:1,vr(Tt,ot);const Ct=X?yt:V?Ut(Tt):Tt*yt|0;if(De==MODE_GRAPH){const _t=ot?0:(this._normalizedB(kt[Fe[1].binLo])*yt+Ct)/2;if(qe){if(ot==0&&(it&&Be.moveTo(...wt(0,0)),Be.lineTo(...wt(0,ft<0?_t:Ct))),ft>=0){const Ft=[ft,Ct];Be.lineTo(...wt(...Ft)),er.push(Ft)}}else{if(ot==0)if(Ne==-1&&!it)Be.moveTo(Te,At-(ft<Te?_t:Ct));else{const Ft=$t?this._normalizedB(kt[$t-1])*yt:Ct;Be.moveTo(Te-$e,At-Ft)}(it||Ne!=-1||ft>=Te)&&Be.lineTo(ft,At-Ct)}}else if(V){if(Ye&&!Xe&&(at==0||!We)){const _t=Be.globalAlpha;Be.strokeStyle=LEDS_UNLIT_COLOR,Be.globalAlpha=1,fr(bt,vt,At),Be.strokeStyle=Be.fillStyle,Be.globalAlpha=_t}if(dt){const _t=X?0:Dt.findLastIndex(Xt=>Ut(Tt)<=Ut(Xt.level));let Ft=At;for(let Xt=Nt-1;Xt>=_t;Xt--){Be.strokeStyle=Dt[Xt].color;let Cr=At-(Xt==_t?Ct:Ut(Dt[Xt].level));fr(bt,Ft,Cr),Ft=Cr-St}}else fr(bt,At,At-Ct)}else if(ft>=Te)if(qe)gr(ft,0,Et,Ct,J);else if(Y){const _t=Et/2,Ft=At+_t;Be.beginPath(),Be.moveTo(ft,Ft),Be.lineTo(ft,Ft-Ct),Be.arc(bt,Ft-Ct,_t,PI,TAU),Be.lineTo(ft+Et,Ft),dr(J),Be.fill()}else{const _t=J?Be.lineWidth:0;Be.beginPath(),Be.rect(ft,At+_t,Et,-Ct-_t),dr(J),Be.fill()}const Zt=ut.peak[at],Ar=ut.alpha[at];if(Zt>0&&Ar>0&&Je&&!pt&&!X&&ft>=Te&&ft<ct){if(Ve?Be.globalAlpha=Ar:J&&$e>0?Be.globalAlpha=1:B&&(Be.globalAlpha=Zt),(Ue==COLOR_BAR_LEVEL||dt)&&vr(Zt),V){const _t=Ut(Zt);_t>=St&&Be.fillRect(ft,At-_t,Et,Mt)}else if(!qe)Be.fillRect(ft,At-Zt*yt,Et,2);else if(De!=MODE_GRAPH){const _t=Zt*yt;gr(ft,_t,Et,!this._radialInvert||lt||_t+we>=2?-2:2)}}}if(Ke){if(Be.globalAlpha=1,De==MODE_GRAPH){if(vr(),qe&&!it){if(Ne){let ot;for(;ot=er.pop();)Be.lineTo(...wt(...ot,-1))}Be.closePath()}if($e>0&&Be.stroke(),ze>0){if(qe){const ot=it?jt(mt>>1):0,ut=it?jt(mt):TAU;Be.moveTo(...wt(it?mt>>1:0,0)),Be.arc(xe,Se,we,ot,ut,it?!zt:!0)}else Be.lineTo(ct,At),Be.lineTo(Te,At);Be.globalAlpha=ze,Be.fill(),Be.globalAlpha=1}if((pt||qe&&Je)&&(er=[],Be.beginPath(),Fe.forEach((ot,ut)=>{let ft=ot.posX,bt=ot.peak[at],Et=ut?"lineTo":"moveTo";if(qe&&ft<0){const Pt=Fe[ut+1];bt=findY(ft,bt,Pt.posX,Pt.peak[at],0),ft=0}bt*=yt,pt?(Be[Et](...qe?wt(ft,bt):[ft,At-bt]),qe&&Ne&&!it&&er.push([ft,bt])):bt>0&&gr(ft,bt,1,-2)}),pt)){let ot;for(;ot=er.pop();)Be.lineTo(...wt(...ot,-1));Be.lineWidth=1,Be.stroke()}}Be.restore(),it&&!qe&&Be.setTransform(1,0,0,1,0,0),(!it&&!We||at)&&qt(at)}}if(Ir(Sr/(Er<<Tr-1)),Ke&&(Ne&&!qe&&!it&&(Be.setTransform(-1,0,0,1,ke.width-Te,0),Be.drawImage(ke,Te,0,xe,ke.height,0,0,xe,ke.height),Be.setTransform(1,0,0,1,0,0)),Be.setLineDash([]),Wt()),this.showFPS){const at=nt.height;Be.font=`bold ${at}px ${FONT_FAMILY}`,Be.fillStyle=FPS_COLOR,Be.textAlign="right",Be.fillText(Math.round(He),ke.width-at,at*2)}this.onCanvasDraw&&(Be.save(),Be.fillStyle=Be.strokeStyle=Le[0],this.onCanvasDraw(this,{timestamp:E,canvasGradients:Le}),Be.restore())}_freqScaling(E){switch(this._frequencyScale){case SCALE_LOG:return Math.log2(E);case SCALE_BARK:return 26.81*E/(1960+E)-.53;case SCALE_MEL:return Math.log2(1+E/700);case SCALE_LINEAR:return E}}_freqToBin(E,C="round"){const R=this._analyzer[0].frequencyBinCount-1,I=Math[C](E*this.fftSize/this.audioCtx.sampleRate);return I<R?I:R}_makeGrad(){if(!this._ready)return;const{canvas:E,_ctx:C,_radial:R,_reflexRatio:I}=this,{analyzerWidth:B,centerX:U,centerY:V,initialX:X,innerRadius:K,outerRadius:J}=this._aux,{isLumi:Y}=this._flg,Z=this._chLayout==CHANNEL_VERTICAL,_e=1-I,xe=Y?E.height:E.height*(1-I*!Z)|0;for(const Se of[0,1]){const Pe=this._gradients[this._selectedGrads[Se]],Ee=Pe.colorStops,Ae=Pe.dir=="h";let Te;if(R?Te=C.createRadialGradient(U,V,J,U,V,K-(J-K)*Z):Te=C.createLinearGradient(...Ae?[X,0,X+B,0]:[0,0,0,xe]),Ee){const we=Z&&!this._splitGradient&&(!Ae||R);for(let Ie=0;Ie<1+we;Ie++){const Fe=Ee.length-1;Ee.forEach((ke,Le)=>{let Ge=ke.pos;if(we&&(Ge/=2),Z&&!Y&&!R&&!Ae&&(Ge*=_e,!we&&Ge>.5*_e&&(Ge+=.5*I)),Ie==1)if(R||Y){const Ue=Fe-Le;ke=Ee[Ue],Ge=1-ke.pos/2}else Le==0&&Ge>0&&Te.addColorStop(.5,ke.color),Ge+=.5;Te.addColorStop(Ge,ke.color),Z&&Le==Fe&&Ge<.5&&Te.addColorStop(.5,ke.color)})}}this._canvasGradients[Se]=Te}}_normalizedB(E){const C=this._linearAmplitude,R=C?1/this._linearBoost:1,I=(X,K,J)=>X<=K?K:X>=J?J:X,B=X=>10**(X/20);let U=this.maxDecibels,V=this.minDecibels;return C&&(U=B(U),V=B(V),E=B(E)**R),I((E-V)/(U-V)**R,0,1)}_setCanvas(E){if(!this._ready)return;const{canvas:C,_ctx:R}=this,I=this._scaleX.canvas,B=window.devicePixelRatio/(this._loRes+1);let U=window.screen.width*B,V=window.screen.height*B;Math.abs(window.orientation)==90&&U<V&&([U,V]=[V,U]);const X=this.isFullscreen,K=X&&this._fsEl==C,J=K?U:(this._width||this._container.clientWidth||this._defaultWidth)*B|0,Y=K?V:(this._height||this._container.clientHeight||this._defaultHeight)*B|0;this._pixelRatio=B,this._fsWidth=U,this._fsHeight=V,!(E!=REASON_CREATE&&C.width==J&&C.height==Y)&&(C.width=J,C.height=Y,this.overlay||(R.fillStyle="#000",R.fillRect(0,0,J,Y)),R.lineJoin="bevel",I.width=J,I.height=Math.max(20*B,Math.min(J,Y)/32|0),this._calcBars(),this._makeGrad(),this._fsStatus!==void 0&&this._fsStatus!==X&&(E=REASON_FSCHANGE),this._fsStatus=X,this.onCanvasResize&&this.onCanvasResize(E,this))}_setGradient(E,C){if(!this._gradients.hasOwnProperty(E))throw new AudioMotionError(ERR_UNKNOWN_GRADIENT,E);[0,1].includes(C)||(this._selectedGrads[1]=E,C=0),this._selectedGrads[C]=E,this._makeGrad()}_setProps(E,C){const R=["onCanvasDraw","onCanvasResize"],I=["gradientLeft","gradientRight","stereo"],B=Object.keys(DEFAULT_SETTINGS).filter(U=>U!="start").concat(R,I);(C||E===void 0)&&(E={...DEFAULT_SETTINGS,...E});for(const U of Object.keys(E))R.includes(U)&&typeof E[U]!="function"?this[U]=void 0:B.includes(U)&&(this[U]=E[U]);E.start!==void 0&&this.toggleAnalyzer(E.start)}}const waveConfig={[Waveforms.NONE]:{mode:2},[Waveforms.ROUNDBARS]:{mode:2,alphaBars:!1,ansiBands:!1,barSpace:.25,channelLayout:"single",colorMode:"bar-level",frequencyScale:"log",gradient:"prism",ledBars:!1,linearAmplitude:!0,linearBoost:1.6,lumiBars:!1,maxFreq:16e3,minFreq:30,mirror:0,radial:!1,reflexRatio:.3,reflexAlpha:1,roundBars:!0,showPeaks:!1,showScaleX:!1,showScaleY:!1,smoothing:.7,weightingFilter:"D"},[Waveforms.LED]:{mode:3,barSpace:.6,ledBars:!0,showScaleX:!1,showScaleY:!1},[Waveforms.RADIAL_SPECTRUM]:{mode:3,barSpace:.25,bgAlpha:.5,fillAlpha:.5,gradient:"prism",ledBars:!1,linearAmplitude:!0,linearBoost:1.8,lineWidth:1.5,maxDecibels:-30,maxFreq:16e3,radial:!0,showBgColor:!0,showPeaks:!0,spinSpeed:2,outlineBars:!0,showScaleX:!1,showScaleY:!1,reflexFit:!0},[Waveforms.LUMI_BARS]:{mode:3,barSpace:.6,lumiBars:!0,reflexRatio:.5,fillAlpha:.3,frequencyScale:"bark",gradientLeft:"steelblue",gradientRight:"orangered",showScaleX:!1,showScaleY:!1},[Waveforms.EQUALIZER]:{mode:2,gradient:"rainbow",lineWidth:1.5,fillAlpha:.5,showPeaks:!1,showScaleX:!1,showScaleY:!1}},initalTransforms={x:0,y:0,width:0,height:0,anchor:.5,maxX:0,maxY:0,scale:1,rotation:0,waveform:Waveforms.NONE},useAudioVisualizer=A=>{const E=React__namespace.useRef(),C=React.useRef(document.body),R=React__namespace.useRef(),[I,B]=React__namespace.useState(""),{uniqueId:U,src:V,transformation:X=initalTransforms}=A,{waveform:K=Waveforms.NONE,width:J=300,height:Y=300}=X,Z=async _e=>{try{return await fetch(_e,{mode:"cors",referrerPolicy:"no-referrer-when-downgrade"})}catch(xe){const Se=xe;throw Se.message.includes("Failed to fetch")||Se.message.includes("Load failed")||Se.message.includes("NetworkError when attempting to fetch resource")?new TypeError(`Failed to read from ${_e}: ${Se.message}. Does the resource support CORS?`):xe}};return React__namespace.useEffect(()=>()=>{isEmpty$2(I)||URL.revokeObjectURL(I),R.current},[I]),React__namespace.useEffect(()=>{const _e=waveConfig[K]||{};if(console.log("waveFormCOnfig",_e),E.current&&(C.current.removeChild(E.current),E.current=void 0),K!==Waveforms.NONE){E.current=document.createElement("div"),E.current.setAttribute("id",`${U}${K}audioContainer`),C.current.appendChild(E.current);const Se=new AudioMotionAnalyzer(E.current,{audioCtx:Howler.ctx,height:Y,width:J,..._e});R.current=Se}return(async()=>{if(!isEmpty$2(V)){const Pe=await(await Z(V)).arrayBuffer(),Ee=new Blob([Pe]),Ae=URL.createObjectURL(Ee);B(Ae),E.current&&(E.current.style.display="none")}})(),()=>{E.current&&C.current&&(console.log("clearing the canvas",E.current),C.current.removeChild(E.current),E.current=void 0)}},[K,V,U,J,Y]),{audioMotionRef:R,blobUrl:I,canvasRef:E}},PixiAudioSprite=React__namespace.forwardRef((A,E)=>{const C={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,R]=React__namespace.useState(!1),[I,B]=React__namespace.useState(!1),U=React.useRef(null),V=React.useRef(C),X=React.useRef(null),K=React__namespace.useRef(null),J=React.useRef(null),Y=React__namespace.useRef(),{tl:Z,dragModeRef:_e}=React.useContext(GsapPixieContext),{uniqueId:xe,src:Se,startAt:Pe,endAt:Ee,mute:Ae,speed:Te,audioStartAt:we,audioEndAt:Ie,visible:Fe=!1,transformation:ke}=A,{width:Le=300,height:Ge=300,x:Ue=100,y:Be=100,waveform:je=Waveforms.NONE}=ke||{},{audioMotionRef:Ve,blobUrl:ze,canvasRef:He}=useAudioVisualizer({uniqueId:xe,src:Se,transformation:ke});useCustomEventListener(Events.PAUSE,()=>{var Ne;U.current&&K.current&&((Ne=K.current)==null||Ne.pause(),V.current.isPlaying=!1)}),useCustomEventListener(Events.COMPLETE,()=>{we>0&&K.current&&K.current.seek(we)}),useCustomEventListener(Events.SCRUBBER_CLICKED,()=>{var Ne;U.current&&K.current&&((Ne=K.current)==null||Ne.pause(),V.current.isPlaying=!1)}),React__namespace.useEffect(()=>{K.current&&(_e.current?(K.current.pause(),V.current.isPlaying=!1,V.current.isDragging=!0):V.current.isDragging=!1)},[_e]);const Oe=(Ne,De)=>{Z.current&&Z.current.isActive()&&X.current&&X.current.isActive()&&!_e.current&&K.current&&(console.log("gsap on start 0020",xe,Ne,De),K.current.play(),V.current.isPlaying=!0)},$e=()=>{var Ne;U.current&&((Ne=K.current)==null||Ne.stop(),V.current.isPlaying=!1,V.current.completed=!0)},Re=Ne=>{var Xe,qe;const De=Ne+((Xe=X.current)==null?void 0:Xe.time());K.current&&_e.current?(K.current.seek(De),K.current.pause(),V.current.isPlaying=!1):U.current&&!V.current.isPlaying&&((qe=Z.current)!=null&&qe.isActive())&&K.current&&(K.current.seek(De),K.current.play(),V.current.isPlaying=!0),Y.current&&Y.current.update()},Me=()=>{};return React.useEffect(()=>{let Ne=gsap$2.context(()=>{});if(U.current&&Z.current){const De={duration:Number(Ie)-Number(we),onStart:Oe,onComplete:$e,onStartParams:[we,Ie],onCompleteParams:[],onInterrupt:Me,onUpdate:Re,onUpdateParams:[we,Ie],id:xe};Ne=gsap$2.context(()=>{X.current=gsap$2.from(U.current,De,we),Z.current.to(U.current,{alpha:1,duration:.01},Pe).to(U.current,{alpha:0,duration:.1},Number(Ee)),Z.current.add(X.current,Pe)})}return()=>{X.current&&(X.current.kill(),gsap$2.killTweensOf(X.current)),Ne.revert()}},[Pe,Ee,we,Ie,xe]),React__namespace.useEffect(()=>(U.current&&R(!0),()=>{console.log("unmounting audio sprite",xe),console.log("audioContainerRef.current",K.current)}),[]),React__namespace.useEffect(()=>(Y.current&&Y.current.update(),()=>{}),[I]),React__namespace.useEffect(()=>(isEmpty$2(ze)||(K.current=new howler.Howl({src:[ze],format:["mp3"],html5:!0,autoplay:!1,loop:!1,rate:Te||1,onload:()=>{var Ne;if(V.current.loaded=!0,K.current&&(we>0&&K.current.seek(we),K.current.volume(!Ae&&Fe?1:0),K.current.rate(Te||1),K.current.pause(),V.current.isPlaying=!1,V.current.completed=!1,Ve.current&&K.current)){console.log("reconnecting the audio motion analyser");try{Ve.current.connectInput(K.current._sounds[0]._node)}catch(Xe){console.log("error connecting audio motion"),console.log(Xe)}const De=PIXI__namespace.Texture.from(Ve.current._fsEl,{pixiIdPrefix:`${(Ne=Ve.current._container)==null?void 0:Ne.id}`});Y.current=De,He.current&&He.current.setAttribute("style","display:none"),B(!0)}},onend:()=>{console.log("end of playing audio sprite"+xe),V.current.isPlaying=!1,V.current.completed=!0},onplay:()=>{console.log("play of playing audio sprite"+xe),V.current.isPlaying=!0},onpause:()=>{console.log("pause of playing audio sprite"+xe),V.current.isPlaying=!1},onstop:()=>{console.log("stop of playing audio sprite"+xe),V.current.isPlaying=!1}}),Howler.ctx.resume().then(()=>{console.log("audio ctx resumed")})),()=>{console.log("unmounting the howler useeffect"),Ve.current,K.current&&(K.current.stop(),K.current.unload(),K.current=void 0)}),[xe,Se,Pe,Ee,we,Ie,Ae,Fe,Te,ze]),React__namespace.useEffect(()=>{K.current&&(console.log("running updateEffect 2002",xe,Ie),K.current.volume(!Ae&&Fe?1:0),K.current.rate(Te||1),V.current.isPlaying=!0)},[Ae,Fe,Te]),jsxRuntimeExports.jsx(react.Container,{ref:U,children:je!==Waveforms.NONE&&I&&Y.current&&jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,isGif:!0,children:jsxRuntimeExports.jsx(react.Sprite,{texture:Y.current,width:Le,height:Ge,anchor:.5,x:Ue,y:Be,ref:J,alpha:Fe?1:0})})})});function arrayMap$2(A,E){for(var C=-1,R=A==null?0:A.length,I=Array(R);++C<R;)I[C]=E(A[C],C,A);return I}var _arrayMap=arrayMap$2;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(A,E){return A===E||A!==A&&E!==E}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(A,E){for(var C=A.length;C--;)if(eq$1(A[C][0],E))return C;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(A){var E=this.__data__,C=assocIndexOf$3(E,A);if(C<0)return!1;var R=E.length-1;return C==R?E.pop():splice.call(E,C,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(A){var E=this.__data__,C=assocIndexOf$2(E,A);return C<0?void 0:E[C][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(A){return assocIndexOf$1(this.__data__,A)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(A,E){var C=this.__data__,R=assocIndexOf(C,A);return R<0?(++this.size,C.push([A,E])):C[R][1]=E,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(A){var E=-1,C=A==null?0:A.length;for(this.clear();++E<C;){var R=A[E];this.set(R[0],R[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(A){var E=this.__data__,C=E.delete(A);return this.size=E.size,C}var _stackDelete=stackDelete$1;function stackGet$1(A){return this.__data__.get(A)}var _stackGet=stackGet$1;function stackHas$1(A){return this.__data__.has(A)}var _stackHas=stackHas$1,getNative=_getNative,nativeCreate$4=getNative(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(A){var E=this.has(A)&&delete this.__data__[A];return this.size-=E?1:0,E}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty;function hashGet$1(A){var E=this.__data__;if(nativeCreate$2){var C=E[A];return C===HASH_UNDEFINED$2?void 0:C}return hasOwnProperty$4.call(E,A)?E[A]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function hashHas$1(A){var E=this.__data__;return nativeCreate$1?E[A]!==void 0:hasOwnProperty$3.call(E,A)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(A,E){var C=this.__data__;return this.size+=this.has(A)?0:1,C[A]=nativeCreate&&E===void 0?HASH_UNDEFINED$1:E,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(A){var E=-1,C=A==null?0:A.length;for(this.clear();++E<C;){var R=A[E];this.set(R[0],R[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$2=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(A){var E=typeof A;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?A!=="__proto__":A===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(A,E){var C=A.__data__;return isKeyable(E)?C[typeof E=="string"?"string":"hash"]:C.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(A){var E=getMapData$3(this,A).delete(A);return this.size-=E?1:0,E}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(A){return getMapData$2(this,A).get(A)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(A){return getMapData$1(this,A).has(A)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(A,E){var C=getMapData(this,A),R=C.size;return C.set(A,E),this.size+=C.size==R?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(A){var E=-1,C=A==null?0:A.length;for(this.clear();++E<C;){var R=A[E];this.set(R[0],R[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,ListCache$1=_ListCache,Map$1=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(A,E){var C=this.__data__;if(C instanceof ListCache$1){var R=C.__data__;if(!Map$1||R.length<LARGE_ARRAY_SIZE-1)return R.push([A,E]),this.size=++C.size,this;C=this.__data__=new MapCache$2(R)}return C.set(A,E),this.size=C.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(A){var E=this.__data__=new ListCache(A);this.size=E.size}Stack$2.prototype.clear=stackClear,Stack$2.prototype.delete=stackDelete,Stack$2.prototype.get=stackGet,Stack$2.prototype.has=stackHas,Stack$2.prototype.set=stackSet;var _Stack=Stack$2,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(A){return this.__data__.set(A,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(A){return this.__data__.has(A)}var _setCacheHas=setCacheHas$1,MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(A){var E=-1,C=A==null?0:A.length;for(this.__data__=new MapCache$1;++E<C;)this.add(A[E])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(A,E){for(var C=-1,R=A==null?0:A.length;++C<R;)if(E(A[C],C,A))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(A,E){return A.has(E)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(A,E,C,R,I,B){var U=C&COMPARE_PARTIAL_FLAG$5,V=A.length,X=E.length;if(V!=X&&!(U&&X>V))return!1;var K=B.get(A),J=B.get(E);if(K&&J)return K==E&&J==A;var Y=-1,Z=!0,_e=C&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(B.set(A,E),B.set(E,A);++Y<V;){var xe=A[Y],Se=E[Y];if(R)var Pe=U?R(Se,xe,Y,E,A,B):R(xe,Se,Y,A,E,B);if(Pe!==void 0){if(Pe)continue;Z=!1;break}if(_e){if(!arraySome(E,function(Ee,Ae){if(!cacheHas(_e,Ae)&&(xe===Ee||I(xe,Ee,C,R,B)))return _e.push(Ae)})){Z=!1;break}}else if(!(xe===Se||I(xe,Se,C,R,B))){Z=!1;break}}return B.delete(A),B.delete(E),Z}var _equalArrays=equalArrays$2,root$1=_root,Uint8Array$2=root$1.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(A){var E=-1,C=Array(A.size);return A.forEach(function(R,I){C[++E]=[I,R]}),C}var _mapToArray=mapToArray$1;function setToArray$1(A){var E=-1,C=Array(A.size);return A.forEach(function(R){C[++E]=R}),C}var _setToArray=setToArray$1,Symbol$2=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag$1(A,E,C,R,I,B,U){switch(C){case dataViewTag:if(A.byteLength!=E.byteLength||A.byteOffset!=E.byteOffset)return!1;A=A.buffer,E=E.buffer;case arrayBufferTag:return!(A.byteLength!=E.byteLength||!B(new Uint8Array$1(A),new Uint8Array$1(E)));case boolTag:case dateTag:case numberTag:return eq(+A,+E);case errorTag:return A.name==E.name&&A.message==E.message;case regexpTag:case stringTag:return A==E+"";case mapTag:var V=mapToArray;case setTag:var X=R&COMPARE_PARTIAL_FLAG$4;if(V||(V=setToArray),A.size!=E.size&&!X)return!1;var K=U.get(A);if(K)return K==E;R|=COMPARE_UNORDERED_FLAG$2,U.set(A,E);var J=equalArrays$1(V(A),V(E),R,I,B,U);return U.delete(A),J;case symbolTag$1:if(symbolValueOf)return symbolValueOf.call(A)==symbolValueOf.call(E)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(A,E){for(var C=-1,R=E.length,I=A.length;++C<R;)A[I+C]=E[C];return A}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$8=isArray_1;function baseGetAllKeys$1(A,E,C){var R=E(A);return isArray$8(A)?R:arrayPush(R,C(A))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(A,E){for(var C=-1,R=A==null?0:A.length,I=0,B=[];++C<R;){var U=A[C];E(U,C,A)&&(B[I++]=U)}return B}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(A){return A==null?[]:(A=Object(A),arrayFilter(nativeGetSymbols(A),function(E){return propertyIsEnumerable.call(A,E)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(A,E){for(var C=-1,R=Array(A);++C<A;)R[C]=E(C);return R}var _baseTimes=baseTimes$1,MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(A,E){var C=typeof A;return E=E??MAX_SAFE_INTEGER,!!E&&(C=="number"||C!="symbol"&&reIsUint.test(A))&&A>-1&&A%1==0&&A<E}var _isIndex=isIndex$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$1=isBufferExports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function arrayLikeKeys$1(A,E){var C=isArray$7(A),R=!C&&isArguments$1(A),I=!C&&!R&&isBuffer$1(A),B=!C&&!R&&!I&&isTypedArray$1(A),U=C||R||I||B,V=U?baseTimes(A.length,String):[],X=V.length;for(var K in A)(E||hasOwnProperty$2.call(A,K))&&!(U&&(K=="length"||I&&(K=="offset"||K=="parent")||B&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||isIndex$1(K,X)))&&V.push(K);return V}var _arrayLikeKeys=arrayLikeKeys$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$2=isArrayLike_1;function keys$3(A){return isArrayLike$2(A)?arrayLikeKeys(A):baseKeys(A)}var keys_1=keys$3,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(A){return baseGetAllKeys(A,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects$1(A,E,C,R,I,B){var U=C&COMPARE_PARTIAL_FLAG$3,V=getAllKeys(A),X=V.length,K=getAllKeys(E),J=K.length;if(X!=J&&!U)return!1;for(var Y=X;Y--;){var Z=V[Y];if(!(U?Z in E:hasOwnProperty$1.call(E,Z)))return!1}var _e=B.get(A),xe=B.get(E);if(_e&&xe)return _e==E&&xe==A;var Se=!0;B.set(A,E),B.set(E,A);for(var Pe=U;++Y<X;){Z=V[Y];var Ee=A[Z],Ae=E[Z];if(R)var Te=U?R(Ae,Ee,Z,E,A,B):R(Ee,Ae,Z,A,E,B);if(!(Te===void 0?Ee===Ae||I(Ee,Ae,C,R,B):Te)){Se=!1;break}Pe||(Pe=Z=="constructor")}if(Se&&!Pe){var we=A.constructor,Ie=E.constructor;we!=Ie&&"constructor"in A&&"constructor"in E&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(Se=!1)}return B.delete(A),B.delete(E),Se}var _equalObjects=equalObjects$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$6=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep$1(A,E,C,R,I,B){var U=isArray$6(A),V=isArray$6(E),X=U?arrayTag:getTag(A),K=V?arrayTag:getTag(E);X=X==argsTag?objectTag:X,K=K==argsTag?objectTag:K;var J=X==objectTag,Y=K==objectTag,Z=X==K;if(Z&&isBuffer(A)){if(!isBuffer(E))return!1;U=!0,J=!1}if(Z&&!J)return B||(B=new Stack$1),U||isTypedArray(A)?equalArrays(A,E,C,R,I,B):equalByTag(A,E,X,C,R,I,B);if(!(C&COMPARE_PARTIAL_FLAG$2)){var _e=J&&hasOwnProperty.call(A,"__wrapped__"),xe=Y&&hasOwnProperty.call(E,"__wrapped__");if(_e||xe){var Se=_e?A.value():A,Pe=xe?E.value():E;return B||(B=new Stack$1),I(Se,Pe,C,R,B)}}return Z?(B||(B=new Stack$1),equalObjects(A,E,C,R,I,B)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$2(A,E,C,R,I){return A===E?!0:A==null||E==null||!isObjectLike$1(A)&&!isObjectLike$1(E)?A!==A&&E!==E:baseIsEqualDeep(A,E,C,R,baseIsEqual$2,I)}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(A,E,C,R){var I=C.length,B=I,U=!R;if(A==null)return!B;for(A=Object(A);I--;){var V=C[I];if(U&&V[2]?V[1]!==A[V[0]]:!(V[0]in A))return!1}for(;++I<B;){V=C[I];var X=V[0],K=A[X],J=V[1];if(U&&V[2]){if(K===void 0&&!(X in A))return!1}else{var Y=new Stack;if(R)var Z=R(K,J,X,A,E,Y);if(!(Z===void 0?baseIsEqual$1(J,K,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,R,Y):Z))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject$2=isObject_1;function isStrictComparable$2(A){return A===A&&!isObject$2(A)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys$1=keys_1;function getMatchData$1(A){for(var E=keys$1(A),C=E.length;C--;){var R=E[C],I=A[R];E[C]=[R,I,isStrictComparable$1(I)]}return E}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(A,E){return function(C){return C==null?!1:C[A]===E&&(E!==void 0||A in Object(C))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(A){var E=getMatchData(A);return E.length==1&&E[0][2]?matchesStrictComparable$1(E[0][0],E[0][1]):function(C){return C===A||baseIsMatch(C,A,E)}}var _baseMatches=baseMatches$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$4(A){return typeof A=="symbol"||isObjectLike(A)&&baseGetTag(A)==symbolTag}var isSymbol_1=isSymbol$4,isArray$5=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(A,E){if(isArray$5(A))return!1;var C=typeof A;return C=="number"||C=="symbol"||C=="boolean"||A==null||isSymbol$3(A)?!0:reIsPlainProp.test(A)||!reIsDeepProp.test(A)||E!=null&&A in Object(E)}var _isKey=isKey$3,MapCache=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(A,E){if(typeof A!="function"||E!=null&&typeof E!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var C=function(){var R=arguments,I=E?E.apply(this,R):R[0],B=C.cache;if(B.has(I))return B.get(I);var U=A.apply(this,R);return C.cache=B.set(I,U)||B,U};return C.cache=new(memoize$1.Cache||MapCache),C}memoize$1.Cache=MapCache;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(A){var E=memoize(A,function(R){return C.size===MAX_MEMOIZE_SIZE&&C.clear(),R}),C=E.cache;return E}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(A){var E=[];return A.charCodeAt(0)===46&&E.push(""),A.replace(rePropName,function(C,R,I,B){E.push(I?B.replace(reEscapeChar,"$1"):R||C)}),E}),_stringToPath=stringToPath$1,Symbol$1=_Symbol,arrayMap$1=_arrayMap,isArray$4=isArray_1,isSymbol$2=isSymbol_1,INFINITY$1=1/0,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString$1(A){if(typeof A=="string")return A;if(isArray$4(A))return arrayMap$1(A,baseToString$1)+"";if(isSymbol$2(A))return symbolToString?symbolToString.call(A):"";var E=A+"";return E=="0"&&1/A==-INFINITY$1?"-0":E}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$1(A){return A==null?"":baseToString(A)}var toString_1=toString$1,isArray$3=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString=toString_1;function castPath$2(A,E){return isArray$3(A)?A:isKey$2(A,E)?[A]:stringToPath(toString(A))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY=1/0;function toKey$4(A){if(typeof A=="string"||isSymbol$1(A))return A;var E=A+"";return E=="0"&&1/A==-INFINITY?"-0":E}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(A,E){E=castPath$1(E,A);for(var C=0,R=E.length;A!=null&&C<R;)A=A[toKey$3(E[C++])];return C&&C==R?A:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(A,E,C){var R=A==null?void 0:baseGet$1(A,E);return R===void 0?C:R}var get_1=get$1;function baseHasIn$1(A,E){return A!=null&&E in Object(A)}var _baseHasIn=baseHasIn$1,castPath=_castPath,isArguments=isArguments_1,isArray$2=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;function hasPath$1(A,E,C){E=castPath(E,A);for(var R=-1,I=E.length,B=!1;++R<I;){var U=toKey$2(E[R]);if(!(B=A!=null&&C(A,U)))break;A=A[U]}return B||++R!=I?B:(I=A==null?0:A.length,!!I&&isLength(I)&&isIndex(U,I)&&(isArray$2(A)||isArguments(A)))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(A,E){return A!=null&&hasPath(A,E,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(A,E){return isKey$1(A)&&isStrictComparable(E)?matchesStrictComparable(toKey$1(A),E):function(C){var R=get(C,A);return R===void 0&&R===E?hasIn(C,A):baseIsEqual(E,R,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(A){return A}var identity_1=identity$1;function baseProperty$1(A){return function(E){return E==null?void 0:E[A]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(A){return function(E){return baseGet(E,A)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(A){return isKey(A)?baseProperty(toKey(A)):basePropertyDeep(A)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray$1=isArray_1,property=property_1;function baseIteratee$1(A){return typeof A=="function"?A:A==null?identity:typeof A=="object"?isArray$1(A)?baseMatchesProperty(A[0],A[1]):baseMatches(A):property(A)}var _baseIteratee=baseIteratee$1;function createBaseFor$1(A){return function(E,C,R){for(var I=-1,B=Object(E),U=R(E),V=U.length;V--;){var X=U[A?V:++I];if(C(B[X],X,B)===!1)break}return E}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseFor=_baseFor,keys=keys_1;function baseForOwn$1(A,E){return A&&baseFor(A,E,keys)}var _baseForOwn=baseForOwn$1,isArrayLike$1=isArrayLike_1;function createBaseEach$1(A,E){return function(C,R){if(C==null)return C;if(!isArrayLike$1(C))return A(C,R);for(var I=C.length,B=E?I:-1,U=Object(C);(E?B--:++B<I)&&R(U[B],B,U)!==!1;);return C}}var _createBaseEach=createBaseEach$1,baseForOwn=_baseForOwn,createBaseEach=_createBaseEach,baseEach$1=createBaseEach(baseForOwn),_baseEach=baseEach$1,baseEach=_baseEach,isArrayLike=isArrayLike_1;function baseMap$1(A,E){var C=-1,R=isArrayLike(A)?Array(A.length):[];return baseEach(A,function(I,B,U){R[++C]=E(I,B,U)}),R}var _baseMap=baseMap$1,arrayMap=_arrayMap,baseIteratee=_baseIteratee,baseMap=_baseMap,isArray=isArray_1;function map(A,E){var C=isArray(A)?arrayMap:baseMap;return C(A,baseIteratee(E))}var map_1=map;const map$1=getDefaultExportFromCjs(map_1);var lib$1={},gif={},lib={};Object.defineProperty(lib,"__esModule",{value:!0}),lib.loop=lib.conditional=lib.parse=void 0;var parse=function A(E,C){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:R;if(Array.isArray(C))C.forEach(function(U){return A(E,U,R,I)});else if(typeof C=="function")C(E,R,I,A);else{var B=Object.keys(C)[0];Array.isArray(C[B])?(I[B]={},A(E,C[B],R,I[B])):I[B]=C[B](E,R,I,A)}return R};lib.parse=parse;var conditional=function(E,C){return function(R,I,B,U){C(R,I,B)&&U(R,E,I,B)}};lib.conditional=conditional;var loop=function(E,C){return function(R,I,B,U){for(var V=[],X=R.pos;C(R,I,B);){var K={};if(U(R,E,I,K),R.pos===X)break;X=R.pos,V.push(K)}return V}};lib.loop=loop;var uint8={};Object.defineProperty(uint8,"__esModule",{value:!0}),uint8.readBits=uint8.readArray=uint8.readUnsigned=uint8.readString=uint8.peekBytes=uint8.readBytes=uint8.peekByte=uint8.readByte=uint8.buildStream=void 0;var buildStream=function(E){return{data:E,pos:0}};uint8.buildStream=buildStream;var readByte=function(){return function(E){return E.data[E.pos++]}};uint8.readByte=readByte;var peekByte=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(C){return C.data[C.pos+E]}};uint8.peekByte=peekByte;var readBytes=function(E){return function(C){return C.data.subarray(C.pos,C.pos+=E)}};uint8.readBytes=readBytes;var peekBytes=function(E){return function(C){return C.data.subarray(C.pos,C.pos+E)}};uint8.peekBytes=peekBytes;var readString=function(E){return function(C){return Array.from(readBytes(E)(C)).map(function(R){return String.fromCharCode(R)}).join("")}};uint8.readString=readString;var readUnsigned=function(E){return function(C){var R=readBytes(2)(C);return E?(R[1]<<8)+R[0]:(R[0]<<8)+R[1]}};uint8.readUnsigned=readUnsigned;var readArray=function(E,C){return function(R,I,B){for(var U=typeof C=="function"?C(R,I,B):C,V=readBytes(E),X=new Array(U),K=0;K<U;K++)X[K]=V(R);return X}};uint8.readArray=readArray;var subBitsTotal=function(E,C,R){for(var I=0,B=0;B<R;B++)I+=E[C+B]&&Math.pow(2,R-B-1);return I},readBits=function(E){return function(C){for(var R=readByte()(C),I=new Array(8),B=0;B<8;B++)I[7-B]=!!(R&1<<B);return Object.keys(E).reduce(function(U,V){var X=E[V];return X.length?U[V]=subBitsTotal(I,X.index,X.length):U[V]=I[X.index],U},{})}};uint8.readBits=readBits,function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var E=lib,C=uint8,R={blocks:function(Z){for(var _e=0,xe=[],Se=Z.data.length,Pe=0,Ee=(0,C.readByte)()(Z);Ee!==_e&&Ee;Ee=(0,C.readByte)()(Z)){if(Z.pos+Ee>=Se){var Ae=Se-Z.pos;xe.push((0,C.readBytes)(Ae)(Z)),Pe+=Ae;break}xe.push((0,C.readBytes)(Ee)(Z)),Pe+=Ee}for(var Te=new Uint8Array(Pe),we=0,Ie=0;Ie<xe.length;Ie++)Te.set(xe[Ie],we),we+=xe[Ie].length;return Te}},I=(0,E.conditional)({gce:[{codes:(0,C.readBytes)(2)},{byteSize:(0,C.readByte)()},{extras:(0,C.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,C.readUnsigned)(!0)},{transparentColorIndex:(0,C.readByte)()},{terminator:(0,C.readByte)()}]},function(Y){var Z=(0,C.peekBytes)(2)(Y);return Z[0]===33&&Z[1]===249}),B=(0,E.conditional)({image:[{code:(0,C.readByte)()},{descriptor:[{left:(0,C.readUnsigned)(!0)},{top:(0,C.readUnsigned)(!0)},{width:(0,C.readUnsigned)(!0)},{height:(0,C.readUnsigned)(!0)},{lct:(0,C.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,E.conditional)({lct:(0,C.readArray)(3,function(Y,Z,_e){return Math.pow(2,_e.descriptor.lct.size+1)})},function(Y,Z,_e){return _e.descriptor.lct.exists}),{data:[{minCodeSize:(0,C.readByte)()},R]}]},function(Y){return(0,C.peekByte)()(Y)===44}),U=(0,E.conditional)({text:[{codes:(0,C.readBytes)(2)},{blockSize:(0,C.readByte)()},{preData:function(Z,_e,xe){return(0,C.readBytes)(xe.text.blockSize)(Z)}},R]},function(Y){var Z=(0,C.peekBytes)(2)(Y);return Z[0]===33&&Z[1]===1}),V=(0,E.conditional)({application:[{codes:(0,C.readBytes)(2)},{blockSize:(0,C.readByte)()},{id:function(Z,_e,xe){return(0,C.readString)(xe.blockSize)(Z)}},R]},function(Y){var Z=(0,C.peekBytes)(2)(Y);return Z[0]===33&&Z[1]===255}),X=(0,E.conditional)({comment:[{codes:(0,C.readBytes)(2)},R]},function(Y){var Z=(0,C.peekBytes)(2)(Y);return Z[0]===33&&Z[1]===254}),K=[{header:[{signature:(0,C.readString)(3)},{version:(0,C.readString)(3)}]},{lsd:[{width:(0,C.readUnsigned)(!0)},{height:(0,C.readUnsigned)(!0)},{gct:(0,C.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,C.readByte)()},{pixelAspectRatio:(0,C.readByte)()}]},(0,E.conditional)({gct:(0,C.readArray)(3,function(Y,Z){return Math.pow(2,Z.lsd.gct.size+1)})},function(Y,Z){return Z.lsd.gct.exists}),{frames:(0,E.loop)([I,V,X,B,U],function(Y){var Z=(0,C.peekByte)()(Y);return Z===33||Z===44})}],J=K;A.default=J}(gif);var deinterlace$1={};Object.defineProperty(deinterlace$1,"__esModule",{value:!0}),deinterlace$1.deinterlace=void 0;var deinterlace=function(E,C){for(var R=new Array(E.length),I=E.length/C,B=function(Z,_e){var xe=E.slice(_e*C,(_e+1)*C);R.splice.apply(R,[Z*C,C].concat(xe))},U=[0,4,2,1],V=[8,8,4,2],X=0,K=0;K<4;K++)for(var J=U[K];J<I;J+=V[K])B(J,X),X++;return R};deinterlace$1.deinterlace=deinterlace;var lzw$1={};Object.defineProperty(lzw$1,"__esModule",{value:!0}),lzw$1.lzw=void 0;var lzw=function(E,C,R){var I=4096,B=-1,U=R,V,X,K,J,Y,Z,_e,Fe,xe,Se,Ie,Pe,ke,Le,Ue,Ge,Ee=new Array(R),Ae=new Array(I),Te=new Array(I),we=new Array(I+1);for(Pe=E,X=1<<Pe,Y=X+1,V=X+2,_e=B,J=Pe+1,K=(1<<J)-1,xe=0;xe<X;xe++)Ae[xe]=0,Te[xe]=xe;var Ie,Fe,ke,Le,Ge,Ue;for(Ie=Fe=ke=Le=Ge=Ue=0,Se=0;Se<U;){if(Le===0){if(Fe<J){Ie+=C[Ue]<<Fe,Fe+=8,Ue++;continue}if(xe=Ie&K,Ie>>=J,Fe-=J,xe>V||xe==Y)break;if(xe==X){J=Pe+1,K=(1<<J)-1,V=X+2,_e=B;continue}if(_e==B){we[Le++]=Te[xe],_e=xe,ke=xe;continue}for(Z=xe,xe==V&&(we[Le++]=ke,xe=_e);xe>X;)we[Le++]=Te[xe],xe=Ae[xe];ke=Te[xe]&255,we[Le++]=ke,V<I&&(Ae[V]=_e,Te[V]=ke,V++,!(V&K)&&V<I&&(J++,K+=V)),_e=Z}Le--,Ee[Ge++]=we[Le],Se++}for(Se=Ge;Se<U;Se++)Ee[Se]=0;return Ee};lzw$1.lzw=lzw,Object.defineProperty(lib$1,"__esModule",{value:!0}),lib$1.decompressFrames=lib$1.decompressFrame=lib$1.parseGIF=void 0;var _gif=_interopRequireDefault(gif),_jsBinarySchemaParser=lib,_uint=uint8,_deinterlace=deinterlace$1,_lzw=lzw$1;function _interopRequireDefault(A){return A&&A.__esModule?A:{default:A}}var parseGIF=function(E){var C=new Uint8Array(E);return(0,_jsBinarySchemaParser.parse)((0,_uint.buildStream)(C),_gif.default)};lib$1.parseGIF=parseGIF;var generatePatch=function(E){for(var C=E.pixels.length,R=new Uint8ClampedArray(C*4),I=0;I<C;I++){var B=I*4,U=E.pixels[I],V=E.colorTable[U]||[0,0,0];R[B]=V[0],R[B+1]=V[1],R[B+2]=V[2],R[B+3]=U!==E.transparentIndex?255:0}return R},decompressFrame=function(E,C,R){if(!E.image){console.warn("gif frame does not have associated image.");return}var I=E.image,B=I.descriptor.width*I.descriptor.height,U=(0,_lzw.lzw)(I.data.minCodeSize,I.data.blocks,B);I.descriptor.lct.interlaced&&(U=(0,_deinterlace.deinterlace)(U,I.descriptor.width));var V={pixels:U,dims:{top:E.image.descriptor.top,left:E.image.descriptor.left,width:E.image.descriptor.width,height:E.image.descriptor.height}};return I.descriptor.lct&&I.descriptor.lct.exists?V.colorTable=I.lct:V.colorTable=C,E.gce&&(V.delay=(E.gce.delay||10)*10,V.disposalType=E.gce.extras.disposal,E.gce.extras.transparentColorGiven&&(V.transparentIndex=E.gce.transparentColorIndex)),R&&(V.patch=generatePatch(V)),V};lib$1.decompressFrame=decompressFrame;var decompressFrames=function(E,C){return E.frames.filter(function(R){return R.image}).map(function(R){return decompressFrame(R,E.gct,C)})};lib$1.decompressFrames=decompressFrames;const reducer=(A,E={})=>{typeof E=="function"&&(E=E(A));const C=E.loaded&&A.loaded!==E.loaded,{playing:R,...I}=E,B={...A,...I};return C&&Object.assign(B,{playing:B.autoPlay&&B.loaded}),(E.delays!=null||E.frames!=null)&&Object.assign(B,{length:B.frames.length}),(E.index!=null||E.frames!=null)&&Object.assign(B,{index:B.length===0?0:(B.length+B.index)%B.length}),E.playing!=null&&Object.assign(B,B.loaded?{playing:R}:{autoPlay:R}),B},initializer=A=>reducer({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},A),usePlayerState=A=>React.useReducer(reducer,A,initializer);var code='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function WorkerFactory(A){const E=new Blob([code],{type:"application/javascript"}),C=URL.createObjectURL(E),R=new Worker(C,A);return URL.revokeObjectURL(C),R}const genearate=A=>({...A,frames:A.frames.map(E=>{const C=new ImageData(A.width,A.height);return C.data.set(new Uint8ClampedArray(E)),C})}),createSingleton=(A,E)=>{const C={};return()=>(C.instance||(C.instance=A()),React.useLayoutEffect(()=>(C.timeout?(clearTimeout(C.timeout),delete C.timeout):C.usageCount=(C.usageCount||0)+1,()=>{C.timeout=setTimeout(()=>{C.usageCount=C.usageCount-1,C.usageCount===0&&(E&&E(C.instance),delete C.instance,delete C.timeout)})}),[C,E]),C.instance)},useUpdatedRef=A=>{const E=React.useRef(A);return React.useEffect(()=>{E.current=A},[A]),E},useEventCallback=A=>{const E=useUpdatedRef(A);return React.useCallback(C=>E.current&&E.current(C),[])},useWorkerSingleton=createSingleton(()=>new WorkerFactory,A=>A.terminate()),useWorkerParser=(A,E)=>{const C=useEventCallback(E),R=useWorkerSingleton();React.useEffect(()=>{if(typeof A=="string"){const I=B=>{const U=B.data||B;if(U.src===A){const V=U.error?U:genearate(U);C(V)}};return R.addEventListener("message",I),R.postMessage({src:A,type:"parse"}),()=>{R.postMessage({src:A,type:"cancel"}),R.removeEventListener("message",I)}}},[R,A])},PixiAnimatedSpriteComp=({isPlaying:A,forwardRef:E,...C})=>{const R=React__namespace.useRef(null);return React__namespace.useImperativeHandle(E,()=>R.current,[R]),React__namespace.useEffect(()=>{if(R.current===null)return;const I=R.current;I[A?"gotoAndPlay":"gotoAndStop"](I.currentFrame)},[A]),jsxRuntimeExports.jsx(react.AnimatedSprite,{ref:R,...C,isPlaying:A})},PixiAnimatedSprite=React__namespace.memo(PixiAnimatedSpriteComp),initialState$2={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0,currentFrame:0},PixiGifSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(0),[I,B]=React__namespace.useState([]),[,U]=React.useState(!1),V=React.useRef(null),X=React.useRef(null),K=React.useRef(initialState$2),J=React.useRef(),[Y,Z]=usePlayerState({autoPlay:!1}),{tl:_e}=React.useContext(GsapPixieContext),{src:xe,uniqueId:Se,startAt:Pe,endAt:Ee,frameStartAt:Ae,frameEndAt:Te,loop:we,visible:Ie,disabled:Fe,transformation:{width:ke=0,height:Le=0,x:Ge,y:Ue,colorCorrection:Be={}},pointerdown:je}=A,{frames:Ve,delays:ze}=Y;useWorkerParser(xe,Z);const{temperatureFilter:He,sharpnessFilter:Oe,hslFilter:$e,blurFilter:Re,adjustmentFilter:Me,vignetteFilter:Ne,noiseFilter:De}=withFiltersHook(Be),{blurRadius:Xe=0,vignette:qe=0,noise:Ye=0}=Be,Je=.1;React__namespace.useEffect(()=>{if(!isEmpty$2(Ve)){const Ze=map$1(Ve,st=>{const{data:et,width:We,height:it}=st,lt=new Uint8Array(et);return PIXI__namespace.Texture.fromBuffer(lt,We,it)}).map((st,et)=>({texture:st,time:ze[et]}));B(Ze);let tt=0;ze.forEach(st=>{tt+=st}),R(tt/1e3),K.current.totalDuration=tt,K.current.totalFrames=Ve.length}},[Se,Ve,ze]);const Ke=()=>{V.current&&(V.current.stop(),K.current.isPlaying=!1)},rt=()=>{if(V.current&&J.current){const Qe=J.current.time();let Ze=Qe===0?0:Qe/Je;Ze=isNaN(Ze)?0:Ze;const tt=K.current.totalFrames;Ze=Ze>tt?tt:Ze,Ze=Math.round(Ze),Ze>=tt?(V.current.gotoAndStop(0),K.current.isPlaying=!1):(V.current.currentFrame=Ze,K.current.isPlaying=!0)}},nt=()=>{U(!0)};return React.useEffect(()=>{let Qe=gsap$2.context(()=>{});if(X.current&&_e.current&&C>0){const Ze={duration:Number(C),onInterrupt:Ke,onUpdate:rt,onUpdateParams:[Ae,Te]},tt=Number(Ee)-Number(Pe),st=Math.max(0,Math.floor(tt/C)-1);J.current&&J.current.kill(),Qe=gsap$2.context(()=>{J.current=gsap$2.timeline({repeat:we?st:0,repeatDelay:0}).from(X.current,Ze,Ae),_e.current.add(J.current,Pe)})}return()=>{J.current&&(J.current.kill(),gsap$2.killTweensOf(J.current)),Qe.revert()}},[xe,Se,Pe,Ee,Ae,Te,C,we]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,isGif:!0,children:jsxRuntimeExports.jsx(react.Container,{ref:X,children:!isEmpty$2(I)&&jsxRuntimeExports.jsx(PixiAnimatedSprite,{x:Ge,y:Ue,width:ke,height:Le,animationSpeed:1,alpha:Ie?1:0,loop:we,textures:I,onComplete:nt,anchor:.5,forwardRef:V,...!Fe&&Ie&&{interactive:!0,pointerdown:je},filters:[He,Oe,$e,Me,...Xe>0?[Re]:[],...qe>0?[Ne]:[],...Ye>0?[De]:[]]})})})}),PixiTextSprite=React__namespace.forwardRef((A,E)=>{const R=React.useRef(0),I=React.useRef(null),B=React.useRef(16),U=React.useRef(null),V=React.useRef(null),X=react.useApp(),{visible:K,text:J,disabled:Y,transformation:Z,pointerdown:_e,onDobuleClick:xe,uniqueId:Se,startAt:Pe,endAt:Ee}=A,{x:Ae,y:Te,fontFamily:we="Arial",fontWeight:Ie="normal",fontStyle:Fe="normal",fontSize:ke=16,fontVariant:Le="normal",fill:Ge="black",stroke:Ue,strokeThickness:Be=0,blurRadius:je=0,blurEnabled:Ve=!1,dropShadowColor:ze=null,dropShadow:He=!1,dropShadowBlur:Oe=0,wordWrapWidth:$e=5e7,leading:Re=0,letterSpacing:Me,colorCorrection:Ne={},backgroundColor:De="transparent",width:Xe,height:qe}=Z,{temperatureFilter:Ye,sharpnessFilter:Je,hslFilter:Ke,blurFilter:rt,adjustmentFilter:nt}=withFiltersHook(Ne),{blurRadius:Qe=0}=Ne;useCustomEventListener(Events.FONTS_LOADED,()=>{I.current&&I.current.updateText&&I.current.updateText(!0)}),React__namespace.useEffect(()=>{B.current=Number(ke)},[ke]);const Ze=["italic","oblique"].includes(Fe)?Fe:void 0,tt=["small-caps"].includes(Le),st=["bold","bolder","lighter","100","200","300"].includes(Ie)?Ie:void 0,et=Number(Me)>0?Me:void 0,We=De==="transparent"?null:PIXI__namespace.utils.string2hex(De),it=React__namespace.useMemo(()=>new PIXI__namespace.TextStyle({fontFamily:we,fontSize:ke,fill:Ge||"white",...Ue&&Be>0&&{stroke:Ue,strokeThickness:Be},...Ze&&{fontStyle:Ze},...tt&&{fontVariant:tt},...st&&{fontWeight:st},...et&&{letterSpacing:et},...Ve&&{dropShadow:!0,dropShadowBlur:Number(je),dropShadowColor:(ze==null?void 0:ze.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...He&&{dropShadow:!0,dropShadowBlur:Number(Oe),dropShadowColor:(ze==null?void 0:ze.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:$e||500,leading:Re||0}),[Ve,je,Ge,we,ke,Fe,Re,Ze,st,tt,et,ze,Ue,Be,$e,He,Oe]);React__namespace.useEffect(()=>{U.current={...Z}},[Z]),React__namespace.useImperativeHandle(E,()=>({setWordWrap:(ct,pt={x:1,y:1})=>{if(I.current){I.current.style.wordWrapWidth=ct,I.current.dirty=!0;const yt=1/pt.x,gt=1/pt.y;I.current.scale.set(yt,gt),I.current.updateText(!0)}},setFontSizeAndTransform:(ct,pt,yt={x:1,y:1})=>{if(I.current){I.current.style.wordWrapWidth=ct,I.current.style.fontSize=pt,I.current.dirty=!0;const gt=1/yt.x,xt=1/yt.y;I.current.scale.set(gt,xt),I.current.updateText(!0)}},resetScale:()=>{I.current&&I.current.scale.set(1,1)}}),[Se,Pe,Ee]);const lt=React__namespace.useCallback((ct,pt={x:1,y:1})=>{if(I.current){I.current.style.wordWrapWidth=ct,I.current.dirty=!0;const yt=1/pt.x,gt=1/pt.y;I.current.scale.set(yt,gt),I.current.updateText(!0)}},[I.current]),ht=React__namespace.useCallback((ct,pt,yt={x:1,y:1})=>{if(I.current){I.current.style.wordWrapWidth=ct,I.current.style.fontSize=pt,I.current.dirty=!0;const gt=1/yt.x,xt=1/yt.y;I.current.scale.set(gt,xt),I.current.updateText(!0)}},[I.current,U.current]);React__namespace.useEffect(()=>{if(We===null||We===0)return;const ct=new PIXI__namespace.Graphics;ct.beginFill(We||16724736),ct.drawRect(0,0,Xe,qe),ct.endFill(),V.current&&(V.current.texture=X.renderer.generateTexture(ct),V.current.texture.update())},[We,Xe,qe]);const dt=()=>{const ct=new Date().getTime();ct-R.current<300&&xe?xe():_e&&_e(),R.current=ct},mt=()=>{!Y&&xe&&xe()};return jsxRuntimeExports.jsxs(AbstractContainer,{...A,ref:E,isText:!0,onDoubleClick:mt,handleDragWordWrap:lt,handleDragFontSize:ht,children:[jsxRuntimeExports.jsx(react.Sprite,{texture:PIXI__namespace.Texture.WHITE,x:Ae,y:Te,width:Xe||100,height:qe||100,anchor:.5,alpha:K&&We?1:0,ref:V}),jsxRuntimeExports.jsx(react.Text,{style:it,x:Ae,y:Te,anchor:.5,text:J,alpha:K?1:0,...K&&!Y&&{interactive:!0,buttonMode:!0,pointerdown:dt},ref:I,filters:[Ye,Je,Ke,nt,...Qe>0?[rt]:[]]})]})});var root=_root,now$1=function(){return root.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(A){for(var E=A.length;E--&&reWhitespace.test(A.charAt(E)););return E}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(A){return A&&A.slice(0,trimmedEndIndex(A)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$1=isObject_1,isSymbol=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(A){if(typeof A=="number")return A;if(isSymbol(A))return NAN;if(isObject$1(A)){var E=typeof A.valueOf=="function"?A.valueOf():A;A=isObject$1(E)?E+"":E}if(typeof A!="string")return A===0?A:+A;A=baseTrim(A);var C=reIsBinary.test(A);return C||reIsOctal.test(A)?freeParseInt(A.slice(2),C?2:8):reIsBadHex.test(A)?NAN:+A}var toNumber_1=toNumber$1,isObject=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(A,E,C){var R,I,B,U,V,X,K=0,J=!1,Y=!1,Z=!0;if(typeof A!="function")throw new TypeError(FUNC_ERROR_TEXT);E=toNumber(E)||0,isObject(C)&&(J=!!C.leading,Y="maxWait"in C,B=Y?nativeMax(toNumber(C.maxWait)||0,E):B,Z="trailing"in C?!!C.trailing:Z);function _e(Fe){var ke=R,Le=I;return R=I=void 0,K=Fe,U=A.apply(Le,ke),U}function xe(Fe){return K=Fe,V=setTimeout(Ee,E),J?_e(Fe):U}function Se(Fe){var ke=Fe-X,Le=Fe-K,Ge=E-ke;return Y?nativeMin(Ge,B-Le):Ge}function Pe(Fe){var ke=Fe-X,Le=Fe-K;return X===void 0||ke>=E||ke<0||Y&&Le>=B}function Ee(){var Fe=now();if(Pe(Fe))return Ae(Fe);V=setTimeout(Ee,Se(Fe))}function Ae(Fe){return V=void 0,Z&&R?_e(Fe):(R=I=void 0,U)}function Te(){V!==void 0&&clearTimeout(V),K=0,R=X=I=V=void 0}function we(){return V===void 0?U:Ae(now())}function Ie(){var Fe=now(),ke=Pe(Fe);if(R=arguments,I=this,X=Fe,ke){if(V===void 0)return xe(X);if(Y)return clearTimeout(V),V=setTimeout(Ee,E),_e(X)}return V===void 0&&(V=setTimeout(Ee,E)),U}return Ie.cancel=Te,Ie.flush=we,Ie}var debounce_1=debounce;const debounce$1=getDefaultExportFromCjs(debounce_1),useDebouncedPointerEvents=(A,E,C,R)=>{const I=React.useCallback(debounce$1(A,R),[A,R]),B=React.useCallback(debounce$1(E,R),[E,R]),U=React.useCallback(debounce$1(C,R),[C,R]),V=React.useCallback(()=>{I()},[I]),X=React.useCallback(()=>{B()},[B]),K=React.useCallback(()=>{U()},[U]);return{onPointerOver:V,onPointerDown:X,onPointerOut:K}},initialState$1={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},PixiVideoSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(!1),I=React__namespace.useRef(),B=React.useRef(null),U=React.useRef(null),V=React.useRef(null),X=React.useRef(initialState$1),K=React.useRef(),{uniqueId:J,mute:Y=!1,src:Z,startAt:_e,endAt:xe,frameStartAt:Se,frameEndAt:Pe,visible:Ee,disabled:Ae,transformation:{x:Te,y:we,width:Ie,height:Fe,animation:ke,colorCorrection:Le={}},pointerdown:Ge=()=>{},pointerout:Ue=()=>{},pointerover:Be=()=>{},fps:je=0}=A,{tl:Ve,dragModeRef:ze,isRemotion:He}=React.useContext(GsapPixieContext),{onPointerDown:Oe,onPointerOut:$e,onPointerOver:Re}=useDebouncedPointerEvents(Be,Ge,Ue,1),{blurRadius:Me=0,vignette:Ne=0,noise:De=0}=Le,{temperatureFilter:Xe,sharpnessFilter:qe,hslFilter:Ye,blurFilter:Je,adjustmentFilter:Ke,vignetteFilter:rt,noiseFilter:nt}=withFiltersHook(Le),Qe=Z||"",Ze=React__namespace.useMemo(()=>{const it=document.createElement("video");return it.src=Z,it.crossOrigin="Anonymus",it.autoplay=!1,it.currentTime=Se===0?.001:Se,it},[Z,Se]);useCustomEventListener(Events.PAUSE,()=>{V.current&&(V.current.pause(),X.current.isPlaying=!1)}),useCustomEventListener(Events.SCRUBBER_CLICKED,()=>{V.current&&(V.current.pause(),X.current.isPlaying=!1)}),useCustomEventListener(Events.REVERSE_MODE_END,()=>{V.current&&(V.current.pause(),X.current.isPlaying=!1)});const tt=it=>{if(V.current){if(V.current.currentTime=Number(it),!ze.current){const lt=V.current,ht=lt.currentTime>0&&!lt.paused&&!lt.ended&&lt.readyState>lt.HAVE_CURRENT_DATA;Ve.current&&Ve.current.isActive()&&K.current&&K.current.isActive()&&(ht||V.current.play(),X.current.isPlaying=!0)}X.current.progress=0}},st=()=>{if(V.current){const it=V.current;it.currentTime>0&&!it.paused&&!it.ended&&it.readyState>it.HAVE_CURRENT_DATA&&V.current.pause(),X.current.isPlaying=!1,K.current&&(X.current.progress=K.current.progress())}},et=()=>{},We=()=>{var it,lt;if(K.current&&(X.current.progress=K.current.progress()),V.current&&K.current){const ht=Se+((it=K==null?void 0:K.current)==null?void 0:it.time()),dt=Math.abs(V.current.currentTime-ht),mt=V.current,ct=mt.currentTime>0&&!mt.paused&&!mt.ended&&mt.readyState>mt.HAVE_CURRENT_DATA;ze.current&&I.current?(V.current.currentTime=ht,I.current.update(),X.current.isPlaying=!1):(ct!==X.current.isPlaying||!ct)&&X.current.progress>.01&&X.current.progress<.99?(lt=Ve.current)!=null&&lt.isActive()&&K.current&&K.current.isActive()&&(ct||V.current.play(),X.current.isPlaying=!0):dt>.3&&X.current.progress>.01&&X.current.progress<.99&&(V.current.currentTime=ht)}};return React.useEffect(()=>{let it=gsap$2.context(()=>{});if(U.current&&Ve.current){const lt={duration:Number(xe)-Number(_e),onStart:tt,onComplete:st,onStartParams:[Se,Pe],onCompleteParams:[],onInterrupt:et,onUpdate:We,onUpdateParams:[Se,Pe],onPause:()=>{console.log("onPause video sprite pause",J)},onResume:()=>{console.log("onResume video sprite resume",J)},onReverseComplete:()=>{console.log("onReverseComplete video sprite reverse complete",J)},onKill:()=>{console.log("onKill video sprite kill",J)}};K.current&&(K.current.kill(),Ve.current.remove(K.current)),it=gsap$2.context(()=>{K.current=gsap$2.to(U.current,lt,Se),Ve.current.add(K.current,_e)})}return()=>{K.current&&(K.current.kill(),gsap$2.killTweensOf(K.current)),it.revert()}},[ke,_e,xe,Se,Pe,J]),React__namespace.useEffect(()=>{V.current&&(V.current.muted=Y,X.current.isMuted=Y);const it=setTimeout(()=>{V.current&&(V.current.muted=Y,X.current.isMuted=Y)},1500);return()=>{clearTimeout(it)}},[Y]),React__namespace.useEffect(()=>{const it=Math.round((Number(Se)+Number.EPSILON)*100)/100,lt=function(){V.current&&(V.current.currentTime=it,V.current.muted=Y)},ht=function(){X.current.isWaiting=!1,X.current.isStalled=!1},dt=function(){X.current.isWaiting=!0,X.current.isStalled=!1},mt=function(){X.current.isWaiting=!1,X.current.isStalled=!1},ct=function(){X.current.isWaiting=!1,X.current.isStalled=!0},pt=Math.round((Number(Se)+Number.EPSILON)*100)/100,yt=Math.round((Number(Pe)+Number.EPSILON)*100)/100,gt=`${Qe}#t=${pt},${yt}`;return PIXI__namespace.Texture.fromLoader(Ze,gt,J,{pixiIdPrefix:J,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:je?Math.max(120,Number(je)):30}}).then(xt=>{xt&&(I.current=xt,R(!0),V.current=xt.baseTexture.resource.source,V.current.id=J,V.current.addEventListener("loadedmetadata",lt),V.current.addEventListener("ended",ht),V.current.addEventListener("loadstart",dt),V.current.addEventListener("canplaythrough",mt),V.current.addEventListener("stalled",ct))}),()=>{V.current&&(V.current.pause(),V.current.removeEventListener("loadedmetadata",lt),V.current.removeEventListener("ended",ht),V.current.removeEventListener("loadstart",dt),V.current.removeEventListener("canplaythrough",mt),V.current.removeEventListener("stalled",ct))}},[Qe,J,Se,Pe,Ze]),React__namespace.useEffect(()=>{const it=setTimeout(()=>{C&&I.current&&K.current&&Ve.current&&K.current.progress()<.1&&V.current&&!K.current.isActive()&&!He&&(V.current.currentTime=Se,I.current.update())},30);return()=>{clearTimeout(it)}},[C]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,pointerdown:Oe,pointerover:Re,pointerout:$e,children:jsxRuntimeExports.jsx(react.Container,{ref:U,children:I.current&&jsxRuntimeExports.jsx(react.Sprite,{texture:I.current,width:Ie,height:Fe,anchor:.5,x:Te,y:we,ref:B,alpha:Ee?1:0,...!Ae&&Ee&&{interactive:!0,pointerdown:Ge},filters:[Xe,qe,Ye,Ke,...Me>0?[Je]:[],...Ne>0?[rt]:[],...De>0?[nt]:[]]})})})});PixiVideoSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};const PixiVideoCanvasSyncSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(),I=React.useRef(null),B=React.useRef(null),{visible:U,disabled:V,transformation:{x:X,y:K,width:J,height:Y,colorCorrection:Z={}},pointerdown:_e=()=>{},pointerout:xe=()=>{},pointerover:Se=()=>{},canvasImageRef:Pe}=A,Ee=Pe&&(Pe==null?void 0:Pe.getCanvas()),Ae=react.useApp(),{onPointerDown:Te,onPointerOut:we,onPointerOver:Ie}=useDebouncedPointerEvents(Se,_e,xe,1),{blurRadius:Fe=0,vignette:ke=0,noise:Le=0}=Z,{temperatureFilter:Ge,sharpnessFilter:Ue,hslFilter:Be,blurFilter:je,adjustmentFilter:Ve,vignetteFilter:ze,noiseFilter:He}=withFiltersHook(Z);return react.useTick(()=>{if(I.current&&I.current.texture){const Oe=I.current.texture.baseTexture;Oe&&Oe.update(),B.current&&Ae.renderer.render(B.current)}}),React__namespace.useEffect(()=>{if(!isEmpty$2(Ee)){const Oe=PIXI__namespace.Texture.from(Ee);R(Oe)}},[Ee]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,pointerdown:Te,pointerover:Ie,pointerout:we,children:jsxRuntimeExports.jsx(react.Container,{ref:B,children:C&&jsxRuntimeExports.jsx(react.Sprite,{texture:C,width:J,height:Y,anchor:.5,x:X,y:K,ref:I,alpha:U?1:0,...!V&&U&&{interactive:!0,pointerdown:_e},filters:[Ge,Ue,Be,Ve,...Fe>0?[je]:[],...ke>0?[ze]:[],...Le>0?[He]:[]]})})})}),PixiSequence=A=>{const{startAt:E,endAt:C,uniqueId:R}=A,I=React.useRef(null),B=React.useRef(null),U=React.useRef(null),V=React.useRef(null),{tl:X,totalDuration:K=0}=React.useContext(GsapPixieContext);return React__namespace.useEffect(()=>{const J=gsap$2.context(()=>{if(I.current&&X.current){V.current&&(V.current.kill(),X.current.remove(V.current));const Y=E<.2?1:0;V.current=gsap$2.timeline().set(I.current,{alpha:Y}).set(I.current,{pixi:{alpha:1,eventMode:"static"}},.01).to(I.current,{pixi:{},duration:Number(C)-Number(E)}).set(I.current,{alpha:0,eventMode:"none"}),X.current.add([V.current],E)}});return()=>{V.current&&(X.current.remove(V.current),V.current.progress(0).kill()),J.revert()}},[E,C,K,R]),jsxRuntimeExports.jsx(react.Container,{ref:I,alpha:E<.2?1:0,eventMode:E<.2?"static":"none",children:jsxRuntimeExports.jsx(react.Container,{ref:U,children:jsxRuntimeExports.jsx(react.Container,{ref:B,alpha:1,children:A.children})})})},PixiSequenceWrapper=A=>{const{startAt:E,endAt:C}=A,{setTotalDuration:R}=React.useContext(GsapPixieContext);return React__namespace.useEffect(()=>{R&&R(Number(C)+.2)},[E,C]),A.children},PixiRemotionSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(),I=React.useRef(null),B=React.useRef(null),{visible:U,disabled:V,transformation:{x:X,y:K,width:J,height:Y,colorCorrection:Z={}},pointerdown:_e=()=>{},pointerout:xe=()=>{},pointerover:Se=()=>{},canvasImageRef:Pe}=A,Ee=Pe&&(Pe==null?void 0:Pe.getCanvas()),Ae=react.useApp(),{onPointerDown:Te,onPointerOut:we,onPointerOver:Ie}=useDebouncedPointerEvents(Se,_e,xe,1),{blurRadius:Fe=0,vignette:ke=0,noise:Le=0}=Z,{temperatureFilter:Ge,sharpnessFilter:Ue,hslFilter:Be,blurFilter:je,adjustmentFilter:Ve,vignetteFilter:ze,noiseFilter:He}=withFiltersHook(Z);return react.useTick(()=>{if(I.current&&I.current.texture){const Oe=I.current.texture.baseTexture;Oe&&Oe.update(),B.current&&Ae.renderer.render(B.current)}}),React__namespace.useEffect(()=>{if(!isEmpty$2(Ee)){const Oe=PIXI__namespace.Texture.from(Ee);R(Oe)}},[Ee]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,pointerdown:Te,pointerover:Ie,pointerout:we,children:jsxRuntimeExports.jsx(react.Container,{ref:B,children:C&&jsxRuntimeExports.jsx(react.Sprite,{texture:C,width:J,height:Y,anchor:.5,x:X,y:K,ref:I,alpha:U?1:0,...!V&&U&&{interactive:!0,pointerdown:_e},filters:[Ge,Ue,Be,Ve,...Fe>0?[je]:[],...ke>0?[ze]:[],...Le>0?[He]:[]]})})})});var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(A,E){module.exports=E()}(commonjsGlobal$1,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(E){_useWebWorker=!!E},getWebWorker=function(){return _useWebWorker},setLocationHref=function(E){locationHref=E},getLocationHref=function(){return locationHref};function createTag(A){return document.createElement(A)}function extendPrototype(A,E){var C,R=A.length,I;for(C=0;C<R;C+=1){I=A[C].prototype;for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&(E.prototype[B]=I[B])}}function getDescriptor(A,E){return Object.getOwnPropertyDescriptor(A,E)}function createProxyFunction(A){function E(){}return E.prototype=A,E}var audioControllerFactory=function(){function A(E){this.audios=[],this.audioFactory=E,this._volume=1,this._isMuted=!1}return A.prototype={addAudio:function(C){this.audios.push(C)},pause:function(){var C,R=this.audios.length;for(C=0;C<R;C+=1)this.audios[C].pause()},resume:function(){var C,R=this.audios.length;for(C=0;C<R;C+=1)this.audios[C].resume()},setRate:function(C){var R,I=this.audios.length;for(R=0;R<I;R+=1)this.audios[R].setRate(C)},createAudio:function(C){return this.audioFactory?this.audioFactory(C):window.Howl?new window.Howl({src:[C]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(C){this.audioFactory=C},setVolume:function(C){this._volume=C,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var C,R=this.audios.length;for(C=0;C<R;C+=1)this.audios[C].volume(this._volume*(this._isMuted?0:1))}},function(){return new A}}(),createTypedArray=function(){function A(C,R){var I=0,B=[],U;switch(C){case"int16":case"uint8c":U=1;break;default:U=1.1;break}for(I=0;I<R;I+=1)B.push(U);return B}function E(C,R){return C==="float32"?new Float32Array(R):C==="int16"?new Int16Array(R):C==="uint8c"?new Uint8ClampedArray(R):A(C,R)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?E:A}();function createSizedArray(A){return Array.apply(null,{length:A})}function _typeof$6(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(C){return typeof C}:_typeof$6=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$6(A)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var A=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],E,C=A.length;for(E=0;E<C;E+=1)BMMath[A[E]]=Math[A[E]]})(),BMMath.random=Math.random,BMMath.abs=function(A){var E=_typeof$6(A);if(E==="object"&&A.length){var C=createSizedArray(A.length),R,I=A.length;for(R=0;R<I;R+=1)C[R]=Math.abs(A[R]);return C}return Math.abs(A)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(A){A.style.position="absolute",A.style.top=0,A.style.left=0,A.style.display="block",A.style.transformOrigin="0 0",A.style.webkitTransformOrigin="0 0",A.style.backfaceVisibility="visible",A.style.webkitBackfaceVisibility="visible",A.style.transformStyle="preserve-3d",A.style.webkitTransformStyle="preserve-3d",A.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(A,E,C,R){this.type=A,this.currentTime=E,this.totalTime=C,this.direction=R<0?-1:1}function BMCompleteEvent(A,E){this.type=A,this.direction=E<0?-1:1}function BMCompleteLoopEvent(A,E,C,R){this.type=A,this.currentLoop=C,this.totalLoops=E,this.direction=R<0?-1:1}function BMSegmentStartEvent(A,E,C){this.type=A,this.firstFrame=E,this.totalFrames=C}function BMDestroyEvent(A,E){this.type=A,this.target=E}function BMRenderFrameErrorEvent(A,E){this.type="renderFrameError",this.nativeError=A,this.currentTime=E}function BMConfigErrorEvent(A){this.type="configError",this.nativeError=A}var createElementID=function(){var A=0;return function(){return A+=1,idPrefix$1+"__lottie_element_"+A}}();function HSVtoRGB(A,E,C){var R,I,B,U,V,X,K,J;switch(U=Math.floor(A*6),V=A*6-U,X=C*(1-E),K=C*(1-V*E),J=C*(1-(1-V)*E),U%6){case 0:R=C,I=J,B=X;break;case 1:R=K,I=C,B=X;break;case 2:R=X,I=C,B=J;break;case 3:R=X,I=K,B=C;break;case 4:R=J,I=X,B=C;break;case 5:R=C,I=X,B=K;break}return[R,I,B]}function RGBtoHSV(A,E,C){var R=Math.max(A,E,C),I=Math.min(A,E,C),B=R-I,U,V=R===0?0:B/R,X=R/255;switch(R){case I:U=0;break;case A:U=E-C+B*(E<C?6:0),U/=6*B;break;case E:U=C-A+B*2,U/=6*B;break;case C:U=A-E+B*4,U/=6*B;break}return[U,V,X]}function addSaturationToRGB(A,E){var C=RGBtoHSV(A[0]*255,A[1]*255,A[2]*255);return C[1]+=E,C[1]>1?C[1]=1:C[1]<=0&&(C[1]=0),HSVtoRGB(C[0],C[1],C[2])}function addBrightnessToRGB(A,E){var C=RGBtoHSV(A[0]*255,A[1]*255,A[2]*255);return C[2]+=E,C[2]>1?C[2]=1:C[2]<0&&(C[2]=0),HSVtoRGB(C[0],C[1],C[2])}function addHueToRGB(A,E){var C=RGBtoHSV(A[0]*255,A[1]*255,A[2]*255);return C[0]+=E/360,C[0]>1?C[0]-=1:C[0]<0&&(C[0]+=1),HSVtoRGB(C[0],C[1],C[2])}var rgbToHex=function(){var A=[],E,C;for(E=0;E<256;E+=1)C=E.toString(16),A[E]=C.length===1?"0"+C:C;return function(R,I,B){return R<0&&(R=0),I<0&&(I=0),B<0&&(B=0),"#"+A[R]+A[I]+A[B]}}(),setSubframeEnabled=function(E){subframeEnabled=!!E},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(E){expressionsPlugin=E},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(E){expressionsInterfaces=E},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(E){defaultCurveSegments=E},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(E){idPrefix$1=E};function createNS(A){return document.createElementNS(svgNS,A)}function _typeof$5(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(C){return typeof C}:_typeof$5=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$5(A)}var dataManager=function(){var A=1,E=[],C,R,I={onmessage:function(){},postMessage:function(_e){C({data:_e})}},B={postMessage:function(_e){I.onmessage({data:_e})}};function U(Z){if(window.Worker&&window.Blob&&getWebWorker()){var _e=new Blob(["var _workerSelf = self; self.onmessage = ",Z.toString()],{type:"text/javascript"}),xe=URL.createObjectURL(_e);return new Worker(xe)}return C=Z,I}function V(){R||(R=U(function(_e){function xe(){function Pe(He,Oe){var $e,Re,Me=He.length,Ne,De,Xe,qe;for(Re=0;Re<Me;Re+=1)if($e=He[Re],"ks"in $e&&!$e.completed){if($e.completed=!0,$e.hasMask){var Ye=$e.masksProperties;for(De=Ye.length,Ne=0;Ne<De;Ne+=1)if(Ye[Ne].pt.k.i)Ie(Ye[Ne].pt.k);else for(qe=Ye[Ne].pt.k.length,Xe=0;Xe<qe;Xe+=1)Ye[Ne].pt.k[Xe].s&&Ie(Ye[Ne].pt.k[Xe].s[0]),Ye[Ne].pt.k[Xe].e&&Ie(Ye[Ne].pt.k[Xe].e[0])}$e.ty===0?($e.layers=Te($e.refId,Oe),Pe($e.layers,Oe)):$e.ty===4?we($e.shapes):$e.ty===5&&Ve($e)}}function Ee(He,Oe){if(He){var $e=0,Re=He.length;for($e=0;$e<Re;$e+=1)He[$e].t===1&&(He[$e].data.layers=Te(He[$e].data.refId,Oe),Pe(He[$e].data.layers,Oe))}}function Ae(He,Oe){for(var $e=0,Re=Oe.length;$e<Re;){if(Oe[$e].id===He)return Oe[$e];$e+=1}return null}function Te(He,Oe){var $e=Ae(He,Oe);return $e?$e.layers.__used?JSON.parse(JSON.stringify($e.layers)):($e.layers.__used=!0,$e.layers):null}function we(He){var Oe,$e=He.length,Re,Me;for(Oe=$e-1;Oe>=0;Oe-=1)if(He[Oe].ty==="sh")if(He[Oe].ks.k.i)Ie(He[Oe].ks.k);else for(Me=He[Oe].ks.k.length,Re=0;Re<Me;Re+=1)He[Oe].ks.k[Re].s&&Ie(He[Oe].ks.k[Re].s[0]),He[Oe].ks.k[Re].e&&Ie(He[Oe].ks.k[Re].e[0]);else He[Oe].ty==="gr"&&we(He[Oe].it)}function Ie(He){var Oe,$e=He.i.length;for(Oe=0;Oe<$e;Oe+=1)He.i[Oe][0]+=He.v[Oe][0],He.i[Oe][1]+=He.v[Oe][1],He.o[Oe][0]+=He.v[Oe][0],He.o[Oe][1]+=He.v[Oe][1]}function Fe(He,Oe){var $e=Oe?Oe.split("."):[100,100,100];return He[0]>$e[0]?!0:$e[0]>He[0]?!1:He[1]>$e[1]?!0:$e[1]>He[1]?!1:He[2]>$e[2]?!0:$e[2]>He[2]?!1:null}var ke=function(){var He=[4,4,14];function Oe(Re){var Me=Re.t.d;Re.t.d={k:[{s:Me,t:0}]}}function $e(Re){var Me,Ne=Re.length;for(Me=0;Me<Ne;Me+=1)Re[Me].ty===5&&Oe(Re[Me])}return function(Re){if(Fe(He,Re.v)&&($e(Re.layers),Re.assets)){var Me,Ne=Re.assets.length;for(Me=0;Me<Ne;Me+=1)Re.assets[Me].layers&&$e(Re.assets[Me].layers)}}}(),Le=function(){var He=[4,7,99];return function(Oe){if(Oe.chars&&!Fe(He,Oe.v)){var $e,Re=Oe.chars.length;for($e=0;$e<Re;$e+=1){var Me=Oe.chars[$e];Me.data&&Me.data.shapes&&(we(Me.data.shapes),Me.data.ip=0,Me.data.op=99999,Me.data.st=0,Me.data.sr=1,Me.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Oe.chars[$e].t||(Me.data.shapes.push({ty:"no"}),Me.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Ge=function(){var He=[5,7,15];function Oe(Re){var Me=Re.t.p;typeof Me.a=="number"&&(Me.a={a:0,k:Me.a}),typeof Me.p=="number"&&(Me.p={a:0,k:Me.p}),typeof Me.r=="number"&&(Me.r={a:0,k:Me.r})}function $e(Re){var Me,Ne=Re.length;for(Me=0;Me<Ne;Me+=1)Re[Me].ty===5&&Oe(Re[Me])}return function(Re){if(Fe(He,Re.v)&&($e(Re.layers),Re.assets)){var Me,Ne=Re.assets.length;for(Me=0;Me<Ne;Me+=1)Re.assets[Me].layers&&$e(Re.assets[Me].layers)}}}(),Ue=function(){var He=[4,1,9];function Oe(Re){var Me,Ne=Re.length,De,Xe;for(Me=0;Me<Ne;Me+=1)if(Re[Me].ty==="gr")Oe(Re[Me].it);else if(Re[Me].ty==="fl"||Re[Me].ty==="st")if(Re[Me].c.k&&Re[Me].c.k[0].i)for(Xe=Re[Me].c.k.length,De=0;De<Xe;De+=1)Re[Me].c.k[De].s&&(Re[Me].c.k[De].s[0]/=255,Re[Me].c.k[De].s[1]/=255,Re[Me].c.k[De].s[2]/=255,Re[Me].c.k[De].s[3]/=255),Re[Me].c.k[De].e&&(Re[Me].c.k[De].e[0]/=255,Re[Me].c.k[De].e[1]/=255,Re[Me].c.k[De].e[2]/=255,Re[Me].c.k[De].e[3]/=255);else Re[Me].c.k[0]/=255,Re[Me].c.k[1]/=255,Re[Me].c.k[2]/=255,Re[Me].c.k[3]/=255}function $e(Re){var Me,Ne=Re.length;for(Me=0;Me<Ne;Me+=1)Re[Me].ty===4&&Oe(Re[Me].shapes)}return function(Re){if(Fe(He,Re.v)&&($e(Re.layers),Re.assets)){var Me,Ne=Re.assets.length;for(Me=0;Me<Ne;Me+=1)Re.assets[Me].layers&&$e(Re.assets[Me].layers)}}}(),Be=function(){var He=[4,4,18];function Oe(Re){var Me,Ne=Re.length,De,Xe;for(Me=Ne-1;Me>=0;Me-=1)if(Re[Me].ty==="sh")if(Re[Me].ks.k.i)Re[Me].ks.k.c=Re[Me].closed;else for(Xe=Re[Me].ks.k.length,De=0;De<Xe;De+=1)Re[Me].ks.k[De].s&&(Re[Me].ks.k[De].s[0].c=Re[Me].closed),Re[Me].ks.k[De].e&&(Re[Me].ks.k[De].e[0].c=Re[Me].closed);else Re[Me].ty==="gr"&&Oe(Re[Me].it)}function $e(Re){var Me,Ne,De=Re.length,Xe,qe,Ye,Je;for(Ne=0;Ne<De;Ne+=1){if(Me=Re[Ne],Me.hasMask){var Ke=Me.masksProperties;for(qe=Ke.length,Xe=0;Xe<qe;Xe+=1)if(Ke[Xe].pt.k.i)Ke[Xe].pt.k.c=Ke[Xe].cl;else for(Je=Ke[Xe].pt.k.length,Ye=0;Ye<Je;Ye+=1)Ke[Xe].pt.k[Ye].s&&(Ke[Xe].pt.k[Ye].s[0].c=Ke[Xe].cl),Ke[Xe].pt.k[Ye].e&&(Ke[Xe].pt.k[Ye].e[0].c=Ke[Xe].cl)}Me.ty===4&&Oe(Me.shapes)}}return function(Re){if(Fe(He,Re.v)&&($e(Re.layers),Re.assets)){var Me,Ne=Re.assets.length;for(Me=0;Me<Ne;Me+=1)Re.assets[Me].layers&&$e(Re.assets[Me].layers)}}}();function je(He){He.__complete||(Ue(He),ke(He),Le(He),Ge(He),Be(He),Pe(He.layers,He.assets),Ee(He.chars,He.assets),He.__complete=!0)}function Ve(He){He.t.a.length===0&&"m"in He.t.p}var ze={};return ze.completeData=je,ze.checkColors=Ue,ze.checkChars=Le,ze.checkPathProperties=Ge,ze.checkShapes=Be,ze.completeLayers=Pe,ze}if(B.dataManager||(B.dataManager=xe()),B.assetLoader||(B.assetLoader=function(){function Pe(Ae){var Te=Ae.getResponseHeader("content-type");return Te&&Ae.responseType==="json"&&Te.indexOf("json")!==-1||Ae.response&&_typeof$5(Ae.response)==="object"?Ae.response:Ae.response&&typeof Ae.response=="string"?JSON.parse(Ae.response):Ae.responseText?JSON.parse(Ae.responseText):null}function Ee(Ae,Te,we,Ie){var Fe,ke=new XMLHttpRequest;try{ke.responseType="json"}catch{}ke.onreadystatechange=function(){if(ke.readyState===4)if(ke.status===200)Fe=Pe(ke),we(Fe);else try{Fe=Pe(ke),we(Fe)}catch(Le){Ie&&Ie(Le)}};try{ke.open(["G","E","T"].join(""),Ae,!0)}catch{ke.open(["G","E","T"].join(""),Te+"/"+Ae,!0)}ke.send()}return{load:Ee}}()),_e.data.type==="loadAnimation")B.assetLoader.load(_e.data.path,_e.data.fullPath,function(Pe){B.dataManager.completeData(Pe),B.postMessage({id:_e.data.id,payload:Pe,status:"success"})},function(){B.postMessage({id:_e.data.id,status:"error"})});else if(_e.data.type==="complete"){var Se=_e.data.animation;B.dataManager.completeData(Se),B.postMessage({id:_e.data.id,payload:Se,status:"success"})}else _e.data.type==="loadData"&&B.assetLoader.load(_e.data.path,_e.data.fullPath,function(Pe){B.postMessage({id:_e.data.id,payload:Pe,status:"success"})},function(){B.postMessage({id:_e.data.id,status:"error"})})}),R.onmessage=function(Z){var _e=Z.data,xe=_e.id,Se=E[xe];E[xe]=null,_e.status==="success"?Se.onComplete(_e.payload):Se.onError&&Se.onError()})}function X(Z,_e){A+=1;var xe="processId_"+A;return E[xe]={onComplete:Z,onError:_e},xe}function K(Z,_e,xe){V();var Se=X(_e,xe);R.postMessage({type:"loadAnimation",path:Z,fullPath:window.location.origin+window.location.pathname,id:Se})}function J(Z,_e,xe){V();var Se=X(_e,xe);R.postMessage({type:"loadData",path:Z,fullPath:window.location.origin+window.location.pathname,id:Se})}function Y(Z,_e,xe){V();var Se=X(_e,xe);R.postMessage({type:"complete",animation:Z,id:Se})}return{loadAnimation:K,loadData:J,completeAnimation:Y}}(),ImagePreloader=function(){var A=function(){var Ee=createTag("canvas");Ee.width=1,Ee.height=1;var Ae=Ee.getContext("2d");return Ae.fillStyle="rgba(0,0,0,0)",Ae.fillRect(0,0,1,1),Ee}();function E(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function C(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function R(Ee,Ae,Te){var we="";if(Ee.e)we=Ee.p;else if(Ae){var Ie=Ee.p;Ie.indexOf("images/")!==-1&&(Ie=Ie.split("/")[1]),we=Ae+Ie}else we=Te,we+=Ee.u?Ee.u:"",we+=Ee.p;return we}function I(Ee){var Ae=0,Te=setInterval((function(){var we=Ee.getBBox();(we.width||Ae>500)&&(this._imageLoaded(),clearInterval(Te)),Ae+=1}).bind(this),50)}function B(Ee){var Ae=R(Ee,this.assetsPath,this.path),Te=createNS("image");isSafari?this.testImageLoaded(Te):Te.addEventListener("load",this._imageLoaded,!1),Te.addEventListener("error",(function(){we.img=A,this._imageLoaded()}).bind(this),!1),Te.setAttributeNS("http://www.w3.org/1999/xlink","href",Ae),this._elementHelper.append?this._elementHelper.append(Te):this._elementHelper.appendChild(Te);var we={img:Te,assetData:Ee};return we}function U(Ee){var Ae=R(Ee,this.assetsPath,this.path),Te=createTag("img");Te.crossOrigin="anonymous",Te.addEventListener("load",this._imageLoaded,!1),Te.addEventListener("error",(function(){we.img=A,this._imageLoaded()}).bind(this),!1),Te.src=Ae;var we={img:Te,assetData:Ee};return we}function V(Ee){var Ae={assetData:Ee},Te=R(Ee,this.assetsPath,this.path);return dataManager.loadData(Te,(function(we){Ae.img=we,this._footageLoaded()}).bind(this),(function(){Ae.img={},this._footageLoaded()}).bind(this)),Ae}function X(Ee,Ae){this.imagesLoadedCb=Ae;var Te,we=Ee.length;for(Te=0;Te<we;Te+=1)Ee[Te].layers||(!Ee[Te].t||Ee[Te].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Ee[Te]))):Ee[Te].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Ee[Te]))))}function K(Ee){this.path=Ee||""}function J(Ee){this.assetsPath=Ee||""}function Y(Ee){for(var Ae=0,Te=this.images.length;Ae<Te;){if(this.images[Ae].assetData===Ee)return this.images[Ae].img;Ae+=1}return null}function Z(){this.imagesLoadedCb=null,this.images.length=0}function _e(){return this.totalImages===this.loadedAssets}function xe(){return this.totalFootages===this.loadedFootagesCount}function Se(Ee,Ae){Ee==="svg"?(this._elementHelper=Ae,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Pe(){this._imageLoaded=E.bind(this),this._footageLoaded=C.bind(this),this.testImageLoaded=I.bind(this),this.createFootageData=V.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Pe.prototype={loadAssets:X,setAssetsPath:J,setPath:K,loadedImages:_e,loadedFootages:xe,destroy:Z,getAsset:Y,createImgData:U,createImageData:B,imageLoaded:E,footageLoaded:C,setCacheType:Se},Pe}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(E,C){if(this._cbs[E])for(var R=this._cbs[E],I=0;I<R.length;I+=1)R[I](C)},addEventListener:function(E,C){return this._cbs[E]||(this._cbs[E]=[]),this._cbs[E].push(C),(function(){this.removeEventListener(E,C)}).bind(this)},removeEventListener:function(E,C){if(!C)this._cbs[E]=null;else if(this._cbs[E]){for(var R=0,I=this._cbs[E].length;R<I;)this._cbs[E][R]===C&&(this._cbs[E].splice(R,1),R-=1,I-=1),R+=1;this._cbs[E].length||(this._cbs[E]=null)}}};var markerParser=function(){function A(E){for(var C=E.split(`\r
1967
+ `),R={},I,B=0,U=0;U<C.length;U+=1)I=C[U].split(":"),I.length===2&&(R[I[0]]=I[1].trim(),B+=1);if(B===0)throw new Error;return R}return function(E){for(var C=[],R=0;R<E.length;R+=1){var I=E[R],B={time:I.tm,duration:I.dr};try{B.payload=JSON.parse(E[R].cm)}catch{try{B.payload=A(E[R].cm)}catch{B.payload={name:E[R].cm}}}C.push(B)}return C}}(),ProjectInterface=function(){function A(E){this.compositions.push(E)}return function(){function E(C){for(var R=0,I=this.compositions.length;R<I;){if(this.compositions[R].data&&this.compositions[R].data.nm===C)return this.compositions[R].prepareFrame&&this.compositions[R].data.xt&&this.compositions[R].prepareFrame(this.currentFrame),this.compositions[R].compInterface;R+=1}return null}return E.compositions=[],E.currentFrame=0,E.registerComposition=A,E}}(),renderers={},registerRenderer=function(E,C){renderers[E]=C};function getRenderer(A){return renderers[A]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var A in renderers)if(renderers[A])return A;return""}function _typeof$4(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(C){return typeof C}:_typeof$4=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$4(A)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(A){(A.wrapper||A.container)&&(this.wrapper=A.wrapper||A.container);var E="svg";A.animType?E=A.animType:A.renderer&&(E=A.renderer);var C=getRenderer(E);this.renderer=new C(this,A.rendererSettings),this.imagePreloader.setCacheType(E,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=E,A.loop===""||A.loop===null||A.loop===void 0||A.loop===!0?this.loop=!0:A.loop===!1?this.loop=!1:this.loop=parseInt(A.loop,10),this.autoplay="autoplay"in A?A.autoplay:!0,this.name=A.name?A.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(A,"autoloadSegments")?A.autoloadSegments:!0,this.assetsPath=A.assetsPath,this.initialSegment=A.initialSegment,A.audioFactory&&this.audioController.setAudioFactory(A.audioFactory),A.animationData?this.setupAnimation(A.animationData):A.path&&(A.path.lastIndexOf("\\")!==-1?this.path=A.path.substr(0,A.path.lastIndexOf("\\")+1):this.path=A.path.substr(0,A.path.lastIndexOf("/")+1),this.fileName=A.path.substr(A.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(A.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(A){dataManager.completeAnimation(A,this.configAnimation)},AnimationItem.prototype.setData=function(A,E){E&&_typeof$4(E)!=="object"&&(E=JSON.parse(E));var C={wrapper:A,animationData:E},R=A.attributes;C.path=R.getNamedItem("data-animation-path")?R.getNamedItem("data-animation-path").value:R.getNamedItem("data-bm-path")?R.getNamedItem("data-bm-path").value:R.getNamedItem("bm-path")?R.getNamedItem("bm-path").value:"",C.animType=R.getNamedItem("data-anim-type")?R.getNamedItem("data-anim-type").value:R.getNamedItem("data-bm-type")?R.getNamedItem("data-bm-type").value:R.getNamedItem("bm-type")?R.getNamedItem("bm-type").value:R.getNamedItem("data-bm-renderer")?R.getNamedItem("data-bm-renderer").value:R.getNamedItem("bm-renderer")?R.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var I=R.getNamedItem("data-anim-loop")?R.getNamedItem("data-anim-loop").value:R.getNamedItem("data-bm-loop")?R.getNamedItem("data-bm-loop").value:R.getNamedItem("bm-loop")?R.getNamedItem("bm-loop").value:"";I==="false"?C.loop=!1:I==="true"?C.loop=!0:I!==""&&(C.loop=parseInt(I,10));var B=R.getNamedItem("data-anim-autoplay")?R.getNamedItem("data-anim-autoplay").value:R.getNamedItem("data-bm-autoplay")?R.getNamedItem("data-bm-autoplay").value:R.getNamedItem("bm-autoplay")?R.getNamedItem("bm-autoplay").value:!0;C.autoplay=B!=="false",C.name=R.getNamedItem("data-name")?R.getNamedItem("data-name").value:R.getNamedItem("data-bm-name")?R.getNamedItem("data-bm-name").value:R.getNamedItem("bm-name")?R.getNamedItem("bm-name").value:"";var U=R.getNamedItem("data-anim-prerender")?R.getNamedItem("data-anim-prerender").value:R.getNamedItem("data-bm-prerender")?R.getNamedItem("data-bm-prerender").value:R.getNamedItem("bm-prerender")?R.getNamedItem("bm-prerender").value:"";U==="false"&&(C.prerender=!1),C.path?this.setParams(C):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(A){A.op>this.animationData.op&&(this.animationData.op=A.op,this.totalFrames=Math.floor(A.op-this.animationData.ip));var E=this.animationData.layers,C,R=E.length,I=A.layers,B,U=I.length;for(B=0;B<U;B+=1)for(C=0;C<R;){if(E[C].id===I[B].id){E[C]=I[B];break}C+=1}if((A.chars||A.fonts)&&(this.renderer.globalData.fontManager.addChars(A.chars),this.renderer.globalData.fontManager.addFonts(A.fonts,this.renderer.globalData.defs)),A.assets)for(R=A.assets.length,C=0;C<R;C+=1)this.animationData.assets.push(A.assets[C]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(A){this.animationData=A;var E=getExpressionsPlugin();E&&E.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var A=this.animationData.segments;if(!A||A.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var E=A.shift();this.timeCompleted=E.time*this.frameRate;var C=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(C,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var A=this.animationData.segments;A||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(A){if(this.renderer)try{this.animationData=A,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(A),A.assets||(A.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(A.assets),this.markers=markerParser(A.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(E){this.triggerConfigError(E)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var A=getExpressionsPlugin();A&&A.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(A,E){var C=typeof A=="number"?A:void 0,R=typeof E=="number"?E:void 0;this.renderer.updateContainerSize(C,R)},AnimationItem.prototype.setSubframe=function(A){this.isSubframeEnabled=!!A},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(A){this.triggerRenderFrameError(A)}},AnimationItem.prototype.play=function(A){A&&this.name!==A||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(A){A&&this.name!==A||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(A){A&&this.name!==A||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(A){A&&this.name!==A||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(A){for(var E,C=0;C<this.markers.length;C+=1)if(E=this.markers[C],E.payload&&E.payload.name===A)return E;return null},AnimationItem.prototype.goToAndStop=function(A,E,C){if(!(C&&this.name!==C)){var R=Number(A);if(isNaN(R)){var I=this.getMarkerData(A);I&&this.goToAndStop(I.time,!0)}else E?this.setCurrentRawFrameValue(A):this.setCurrentRawFrameValue(A*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(A,E,C){if(!(C&&this.name!==C)){var R=Number(A);if(isNaN(R)){var I=this.getMarkerData(A);I&&(I.duration?this.playSegments([I.time,I.time+I.duration],!0):this.goToAndStop(I.time,!0))}else this.goToAndStop(R,E,C);this.play()}},AnimationItem.prototype.advanceTime=function(A){if(!(this.isPaused===!0||this.isLoaded===!1)){var E=this.currentRawFrame+A*this.frameModifier,C=!1;E>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(E>this.totalFrames?E%this.totalFrames:0)||(C=!0,E=this.totalFrames-1):E>=this.totalFrames?(this.playCount+=1,this.checkSegments(E%this.totalFrames)||(this.setCurrentRawFrameValue(E%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(E):E<0?this.checkSegments(E%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+E%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(C=!0,E=0)):this.setCurrentRawFrameValue(E),C&&(this.setCurrentRawFrameValue(E),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(A,E){this.playCount=0,A[1]<A[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=A[0]-A[1],this.timeCompleted=this.totalFrames,this.firstFrame=A[1],this.setCurrentRawFrameValue(this.totalFrames-.001-E)):A[1]>A[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=A[1]-A[0],this.timeCompleted=this.totalFrames,this.firstFrame=A[0],this.setCurrentRawFrameValue(.001+E)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(A,E){var C=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<A?C=A:this.currentRawFrame+this.firstFrame>E&&(C=E-A)),this.firstFrame=A,this.totalFrames=E-A,this.timeCompleted=this.totalFrames,C!==-1&&this.goToAndStop(C,!0)},AnimationItem.prototype.playSegments=function(A,E){if(E&&(this.segments.length=0),_typeof$4(A[0])==="object"){var C,R=A.length;for(C=0;C<R;C+=1)this.segments.push(A[C])}else this.segments.push(A);this.segments.length&&E&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(A){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),A&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(A){return this.segments.length?(this.adjustSegment(this.segments.shift(),A),!0):!1},AnimationItem.prototype.destroy=function(A){A&&this.name!==A||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(A){this.currentRawFrame=A,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(A){this.playSpeed=A,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(A){this.playDirection=A<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(A){this.loop=A},AnimationItem.prototype.setVolume=function(A,E){E&&this.name!==E||this.audioController.setVolume(A)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(A){A&&this.name!==A||this.audioController.mute()},AnimationItem.prototype.unmute=function(A){A&&this.name!==A||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(A){var E="";if(A.e)E=A.p;else if(this.assetsPath){var C=A.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),E=this.assetsPath+C}else E=this.path,E+=A.u?A.u:"",E+=A.p;return E},AnimationItem.prototype.getAssetData=function(A){for(var E=0,C=this.assets.length;E<C;){if(A===this.assets[E].id)return this.assets[E];E+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(A){return A?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(A,E,C){try{var R=this.renderer.getElementByPath(A);R.updateDocumentData(E,C)}catch{}},AnimationItem.prototype.trigger=function(A){if(this._cbs&&this._cbs[A])switch(A){case"enterFrame":this.triggerEvent(A,new BMEnterFrameEvent(A,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(A,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(A,new BMCompleteLoopEvent(A,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(A,new BMCompleteEvent(A,this.frameMult));break;case"segmentStart":this.triggerEvent(A,new BMSegmentStartEvent(A,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(A,new BMDestroyEvent(A,this));break;default:this.triggerEvent(A)}A==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(A,this.currentFrame,this.totalFrames,this.frameMult)),A==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(A,this.loop,this.playCount,this.frameMult)),A==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(A,this.frameMult)),A==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(A,this.firstFrame,this.totalFrames)),A==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(A,this))},AnimationItem.prototype.triggerRenderFrameError=function(A){var E=new BMRenderFrameErrorEvent(A,this.currentFrame);this.triggerEvent("error",E),this.onError&&this.onError.call(this,E)},AnimationItem.prototype.triggerConfigError=function(A){var E=new BMConfigErrorEvent(A,this.currentFrame);this.triggerEvent("error",E),this.onError&&this.onError.call(this,E)};var animationManager=function(){var A={},E=[],C=0,R=0,I=0,B=!0,U=!1;function V(Oe){for(var $e=0,Re=Oe.target;$e<R;)E[$e].animation===Re&&(E.splice($e,1),$e-=1,R-=1,Re.isPaused||Y()),$e+=1}function X(Oe,$e){if(!Oe)return null;for(var Re=0;Re<R;){if(E[Re].elem===Oe&&E[Re].elem!==null)return E[Re].animation;Re+=1}var Me=new AnimationItem;return Z(Me,Oe),Me.setData(Oe,$e),Me}function K(){var Oe,$e=E.length,Re=[];for(Oe=0;Oe<$e;Oe+=1)Re.push(E[Oe].animation);return Re}function J(){I+=1,Ue()}function Y(){I-=1}function Z(Oe,$e){Oe.addEventListener("destroy",V),Oe.addEventListener("_active",J),Oe.addEventListener("_idle",Y),E.push({elem:$e,animation:Oe}),R+=1}function _e(Oe){var $e=new AnimationItem;return Z($e,null),$e.setParams(Oe),$e}function xe(Oe,$e){var Re;for(Re=0;Re<R;Re+=1)E[Re].animation.setSpeed(Oe,$e)}function Se(Oe,$e){var Re;for(Re=0;Re<R;Re+=1)E[Re].animation.setDirection(Oe,$e)}function Pe(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.play(Oe)}function Ee(Oe){var $e=Oe-C,Re;for(Re=0;Re<R;Re+=1)E[Re].animation.advanceTime($e);C=Oe,I&&!U?window.requestAnimationFrame(Ee):B=!0}function Ae(Oe){C=Oe,window.requestAnimationFrame(Ee)}function Te(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.pause(Oe)}function we(Oe,$e,Re){var Me;for(Me=0;Me<R;Me+=1)E[Me].animation.goToAndStop(Oe,$e,Re)}function Ie(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.stop(Oe)}function Fe(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.togglePause(Oe)}function ke(Oe){var $e;for($e=R-1;$e>=0;$e-=1)E[$e].animation.destroy(Oe)}function Le(Oe,$e,Re){var Me=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ne,De=Me.length;for(Ne=0;Ne<De;Ne+=1)Re&&Me[Ne].setAttribute("data-bm-type",Re),X(Me[Ne],Oe);if($e&&De===0){Re||(Re="svg");var Xe=document.getElementsByTagName("body")[0];Xe.innerText="";var qe=createTag("div");qe.style.width="100%",qe.style.height="100%",qe.setAttribute("data-bm-type",Re),Xe.appendChild(qe),X(qe,Oe)}}function Ge(){var Oe;for(Oe=0;Oe<R;Oe+=1)E[Oe].animation.resize()}function Ue(){!U&&I&&B&&(window.requestAnimationFrame(Ae),B=!1)}function Be(){U=!0}function je(){U=!1,Ue()}function Ve(Oe,$e){var Re;for(Re=0;Re<R;Re+=1)E[Re].animation.setVolume(Oe,$e)}function ze(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.mute(Oe)}function He(Oe){var $e;for($e=0;$e<R;$e+=1)E[$e].animation.unmute(Oe)}return A.registerAnimation=X,A.loadAnimation=_e,A.setSpeed=xe,A.setDirection=Se,A.play=Pe,A.pause=Te,A.stop=Ie,A.togglePause=Fe,A.searchAnimations=Le,A.resize=Ge,A.goToAndStop=we,A.destroy=ke,A.freeze=Be,A.unfreeze=je,A.setVolume=Ve,A.mute=ze,A.unmute=He,A.getRegisteredAnimations=K,A}(),BezierFactory=function(){var A={};A.getBezierEasing=C;var E={};function C(Ae,Te,we,Ie,Fe){var ke=Fe||("bez_"+Ae+"_"+Te+"_"+we+"_"+Ie).replace(/\./g,"p");if(E[ke])return E[ke];var Le=new Ee([Ae,Te,we,Ie]);return E[ke]=Le,Le}var R=4,I=.001,B=1e-7,U=10,V=11,X=1/(V-1),K=typeof Float32Array=="function";function J(Ae,Te){return 1-3*Te+3*Ae}function Y(Ae,Te){return 3*Te-6*Ae}function Z(Ae){return 3*Ae}function _e(Ae,Te,we){return((J(Te,we)*Ae+Y(Te,we))*Ae+Z(Te))*Ae}function xe(Ae,Te,we){return 3*J(Te,we)*Ae*Ae+2*Y(Te,we)*Ae+Z(Te)}function Se(Ae,Te,we,Ie,Fe){var ke,Le,Ge=0;do Le=Te+(we-Te)/2,ke=_e(Le,Ie,Fe)-Ae,ke>0?we=Le:Te=Le;while(Math.abs(ke)>B&&++Ge<U);return Le}function Pe(Ae,Te,we,Ie){for(var Fe=0;Fe<R;++Fe){var ke=xe(Te,we,Ie);if(ke===0)return Te;var Le=_e(Te,we,Ie)-Ae;Te-=Le/ke}return Te}function Ee(Ae){this._p=Ae,this._mSampleValues=K?new Float32Array(V):new Array(V),this._precomputed=!1,this.get=this.get.bind(this)}return Ee.prototype={get:function(Te){var we=this._p[0],Ie=this._p[1],Fe=this._p[2],ke=this._p[3];return this._precomputed||this._precompute(),we===Ie&&Fe===ke?Te:Te===0?0:Te===1?1:_e(this._getTForX(Te),Ie,ke)},_precompute:function(){var Te=this._p[0],we=this._p[1],Ie=this._p[2],Fe=this._p[3];this._precomputed=!0,(Te!==we||Ie!==Fe)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Te=this._p[0],we=this._p[2],Ie=0;Ie<V;++Ie)this._mSampleValues[Ie]=_e(Ie*X,Te,we)},_getTForX:function(Te){for(var we=this._p[0],Ie=this._p[2],Fe=this._mSampleValues,ke=0,Le=1,Ge=V-1;Le!==Ge&&Fe[Le]<=Te;++Le)ke+=X;--Le;var Ue=(Te-Fe[Le])/(Fe[Le+1]-Fe[Le]),Be=ke+Ue*X,je=xe(Be,we,Ie);return je>=I?Pe(Te,Be,we,Ie):je===0?Be:Se(Te,ke,ke+X,we,Ie)}},A}(),pooling=function(){function A(E){return E.concat(createSizedArray(E.length))}return{double:A}}(),poolFactory=function(){return function(A,E,C){var R=0,I=A,B=createSizedArray(I),U={newElement:V,release:X};function V(){var K;return R?(R-=1,K=B[R]):K=E(),K}function X(K){R===I&&(B=pooling.double(B),I*=2),C&&C(K),B[R]=K,R+=1}return U}}(),bezierLengthPool=function(){function A(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,A)}(),segmentsLengthPool=function(){function A(){return{lengths:[],totalLength:0}}function E(C){var R,I=C.lengths.length;for(R=0;R<I;R+=1)bezierLengthPool.release(C.lengths[R]);C.lengths.length=0}return poolFactory(8,A,E)}();function bezFunction(){var A=Math;function E(Z,_e,xe,Se,Pe,Ee){var Ae=Z*Se+_e*Pe+xe*Ee-Pe*Se-Ee*Z-xe*_e;return Ae>-.001&&Ae<.001}function C(Z,_e,xe,Se,Pe,Ee,Ae,Te,we){if(xe===0&&Ee===0&&we===0)return E(Z,_e,Se,Pe,Ae,Te);var Ie=A.sqrt(A.pow(Se-Z,2)+A.pow(Pe-_e,2)+A.pow(Ee-xe,2)),Fe=A.sqrt(A.pow(Ae-Z,2)+A.pow(Te-_e,2)+A.pow(we-xe,2)),ke=A.sqrt(A.pow(Ae-Se,2)+A.pow(Te-Pe,2)+A.pow(we-Ee,2)),Le;return Ie>Fe?Ie>ke?Le=Ie-Fe-ke:Le=ke-Fe-Ie:ke>Fe?Le=ke-Fe-Ie:Le=Fe-Ie-ke,Le>-1e-4&&Le<1e-4}var R=function(){return function(Z,_e,xe,Se){var Pe=getDefaultCurveSegments(),Ee,Ae,Te,we,Ie,Fe=0,ke,Le=[],Ge=[],Ue=bezierLengthPool.newElement();for(Te=xe.length,Ee=0;Ee<Pe;Ee+=1){for(Ie=Ee/(Pe-1),ke=0,Ae=0;Ae<Te;Ae+=1)we=bmPow(1-Ie,3)*Z[Ae]+3*bmPow(1-Ie,2)*Ie*xe[Ae]+3*(1-Ie)*bmPow(Ie,2)*Se[Ae]+bmPow(Ie,3)*_e[Ae],Le[Ae]=we,Ge[Ae]!==null&&(ke+=bmPow(Le[Ae]-Ge[Ae],2)),Ge[Ae]=Le[Ae];ke&&(ke=bmSqrt(ke),Fe+=ke),Ue.percents[Ee]=Ie,Ue.lengths[Ee]=Fe}return Ue.addedLength=Fe,Ue}}();function I(Z){var _e=segmentsLengthPool.newElement(),xe=Z.c,Se=Z.v,Pe=Z.o,Ee=Z.i,Ae,Te=Z._length,we=_e.lengths,Ie=0;for(Ae=0;Ae<Te-1;Ae+=1)we[Ae]=R(Se[Ae],Se[Ae+1],Pe[Ae],Ee[Ae+1]),Ie+=we[Ae].addedLength;return xe&&Te&&(we[Ae]=R(Se[Ae],Se[0],Pe[Ae],Ee[0]),Ie+=we[Ae].addedLength),_e.totalLength=Ie,_e}function B(Z){this.segmentLength=0,this.points=new Array(Z)}function U(Z,_e){this.partialLength=Z,this.point=_e}var V=function(){var Z={};return function(_e,xe,Se,Pe){var Ee=(_e[0]+"_"+_e[1]+"_"+xe[0]+"_"+xe[1]+"_"+Se[0]+"_"+Se[1]+"_"+Pe[0]+"_"+Pe[1]).replace(/\./g,"p");if(!Z[Ee]){var Ae=getDefaultCurveSegments(),Te,we,Ie,Fe,ke,Le=0,Ge,Ue,Be=null;_e.length===2&&(_e[0]!==xe[0]||_e[1]!==xe[1])&&E(_e[0],_e[1],xe[0],xe[1],_e[0]+Se[0],_e[1]+Se[1])&&E(_e[0],_e[1],xe[0],xe[1],xe[0]+Pe[0],xe[1]+Pe[1])&&(Ae=2);var je=new B(Ae);for(Ie=Se.length,Te=0;Te<Ae;Te+=1){for(Ue=createSizedArray(Ie),ke=Te/(Ae-1),Ge=0,we=0;we<Ie;we+=1)Fe=bmPow(1-ke,3)*_e[we]+3*bmPow(1-ke,2)*ke*(_e[we]+Se[we])+3*(1-ke)*bmPow(ke,2)*(xe[we]+Pe[we])+bmPow(ke,3)*xe[we],Ue[we]=Fe,Be!==null&&(Ge+=bmPow(Ue[we]-Be[we],2));Ge=bmSqrt(Ge),Le+=Ge,je.points[Te]=new U(Ge,Ue),Be=Ue}je.segmentLength=Le,Z[Ee]=je}return Z[Ee]}}();function X(Z,_e){var xe=_e.percents,Se=_e.lengths,Pe=xe.length,Ee=bmFloor((Pe-1)*Z),Ae=Z*_e.addedLength,Te=0;if(Ee===Pe-1||Ee===0||Ae===Se[Ee])return xe[Ee];for(var we=Se[Ee]>Ae?-1:1,Ie=!0;Ie;)if(Se[Ee]<=Ae&&Se[Ee+1]>Ae?(Te=(Ae-Se[Ee])/(Se[Ee+1]-Se[Ee]),Ie=!1):Ee+=we,Ee<0||Ee>=Pe-1){if(Ee===Pe-1)return xe[Ee];Ie=!1}return xe[Ee]+(xe[Ee+1]-xe[Ee])*Te}function K(Z,_e,xe,Se,Pe,Ee){var Ae=X(Pe,Ee),Te=1-Ae,we=A.round((Te*Te*Te*Z[0]+(Ae*Te*Te+Te*Ae*Te+Te*Te*Ae)*xe[0]+(Ae*Ae*Te+Te*Ae*Ae+Ae*Te*Ae)*Se[0]+Ae*Ae*Ae*_e[0])*1e3)/1e3,Ie=A.round((Te*Te*Te*Z[1]+(Ae*Te*Te+Te*Ae*Te+Te*Te*Ae)*xe[1]+(Ae*Ae*Te+Te*Ae*Ae+Ae*Te*Ae)*Se[1]+Ae*Ae*Ae*_e[1])*1e3)/1e3;return[we,Ie]}var J=createTypedArray("float32",8);function Y(Z,_e,xe,Se,Pe,Ee,Ae){Pe<0?Pe=0:Pe>1&&(Pe=1);var Te=X(Pe,Ae);Ee=Ee>1?1:Ee;var we=X(Ee,Ae),Ie,Fe=Z.length,ke=1-Te,Le=1-we,Ge=ke*ke*ke,Ue=Te*ke*ke*3,Be=Te*Te*ke*3,je=Te*Te*Te,Ve=ke*ke*Le,ze=Te*ke*Le+ke*Te*Le+ke*ke*we,He=Te*Te*Le+ke*Te*we+Te*ke*we,Oe=Te*Te*we,$e=ke*Le*Le,Re=Te*Le*Le+ke*we*Le+ke*Le*we,Me=Te*we*Le+ke*we*we+Te*Le*we,Ne=Te*we*we,De=Le*Le*Le,Xe=we*Le*Le+Le*we*Le+Le*Le*we,qe=we*we*Le+Le*we*we+we*Le*we,Ye=we*we*we;for(Ie=0;Ie<Fe;Ie+=1)J[Ie*4]=A.round((Ge*Z[Ie]+Ue*xe[Ie]+Be*Se[Ie]+je*_e[Ie])*1e3)/1e3,J[Ie*4+1]=A.round((Ve*Z[Ie]+ze*xe[Ie]+He*Se[Ie]+Oe*_e[Ie])*1e3)/1e3,J[Ie*4+2]=A.round(($e*Z[Ie]+Re*xe[Ie]+Me*Se[Ie]+Ne*_e[Ie])*1e3)/1e3,J[Ie*4+3]=A.round((De*Z[Ie]+Xe*xe[Ie]+qe*Se[Ie]+Ye*_e[Ie])*1e3)/1e3;return J}return{getSegmentsLength:I,getNewSegment:Y,getPointInSegment:K,buildBezierData:V,pointOnLine2D:E,pointOnLine3D:C}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(A,E){var C=this.offsetTime,R;this.propType==="multidimensional"&&(R=createTypedArray("float32",this.pv.length));for(var I=E.lastIndex,B=I,U=this.keyframes.length-1,V=!0,X,K,J;V;){if(X=this.keyframes[B],K=this.keyframes[B+1],B===U-1&&A>=K.t-C){X.h&&(X=K),I=0;break}if(K.t-C>A){I=B;break}B<U-1?B+=1:(I=0,V=!1)}J=this.keyframesMetadata[B]||{};var Y,Z,_e,xe,Se,Pe,Ee=K.t-C,Ae=X.t-C,Te;if(X.to){J.bezierData||(J.bezierData=bez.buildBezierData(X.s,K.s||X.e,X.to,X.ti));var we=J.bezierData;if(A>=Ee||A<Ae){var Ie=A>=Ee?we.points.length-1:0;for(Z=we.points[Ie].point.length,Y=0;Y<Z;Y+=1)R[Y]=we.points[Ie].point[Y]}else{J.__fnct?Pe=J.__fnct:(Pe=BezierFactory.getBezierEasing(X.o.x,X.o.y,X.i.x,X.i.y,X.n).get,J.__fnct=Pe),_e=Pe((A-Ae)/(Ee-Ae));var Fe=we.segmentLength*_e,ke,Le=E.lastFrame<A&&E._lastKeyframeIndex===B?E._lastAddedLength:0;for(Se=E.lastFrame<A&&E._lastKeyframeIndex===B?E._lastPoint:0,V=!0,xe=we.points.length;V;){if(Le+=we.points[Se].partialLength,Fe===0||_e===0||Se===we.points.length-1){for(Z=we.points[Se].point.length,Y=0;Y<Z;Y+=1)R[Y]=we.points[Se].point[Y];break}else if(Fe>=Le&&Fe<Le+we.points[Se+1].partialLength){for(ke=(Fe-Le)/we.points[Se+1].partialLength,Z=we.points[Se].point.length,Y=0;Y<Z;Y+=1)R[Y]=we.points[Se].point[Y]+(we.points[Se+1].point[Y]-we.points[Se].point[Y])*ke;break}Se<xe-1?Se+=1:V=!1}E._lastPoint=Se,E._lastAddedLength=Le-we.points[Se].partialLength,E._lastKeyframeIndex=B}}else{var Ge,Ue,Be,je,Ve;if(U=X.s.length,Te=K.s||X.e,this.sh&&X.h!==1)if(A>=Ee)R[0]=Te[0],R[1]=Te[1],R[2]=Te[2];else if(A<=Ae)R[0]=X.s[0],R[1]=X.s[1],R[2]=X.s[2];else{var ze=createQuaternion(X.s),He=createQuaternion(Te),Oe=(A-Ae)/(Ee-Ae);quaternionToEuler(R,slerp(ze,He,Oe))}else for(B=0;B<U;B+=1)X.h!==1&&(A>=Ee?_e=1:A<Ae?_e=0:(X.o.x.constructor===Array?(J.__fnct||(J.__fnct=[]),J.__fnct[B]?Pe=J.__fnct[B]:(Ge=X.o.x[B]===void 0?X.o.x[0]:X.o.x[B],Ue=X.o.y[B]===void 0?X.o.y[0]:X.o.y[B],Be=X.i.x[B]===void 0?X.i.x[0]:X.i.x[B],je=X.i.y[B]===void 0?X.i.y[0]:X.i.y[B],Pe=BezierFactory.getBezierEasing(Ge,Ue,Be,je).get,J.__fnct[B]=Pe)):J.__fnct?Pe=J.__fnct:(Ge=X.o.x,Ue=X.o.y,Be=X.i.x,je=X.i.y,Pe=BezierFactory.getBezierEasing(Ge,Ue,Be,je).get,X.keyframeMetadata=Pe),_e=Pe((A-Ae)/(Ee-Ae)))),Te=K.s||X.e,Ve=X.h===1?X.s[B]:X.s[B]+(Te[B]-X.s[B])*_e,this.propType==="multidimensional"?R[B]=Ve:R=Ve}return E.lastIndex=I,R}function slerp(A,E,C){var R=[],I=A[0],B=A[1],U=A[2],V=A[3],X=E[0],K=E[1],J=E[2],Y=E[3],Z,_e,xe,Se,Pe;return _e=I*X+B*K+U*J+V*Y,_e<0&&(_e=-_e,X=-X,K=-K,J=-J,Y=-Y),1-_e>1e-6?(Z=Math.acos(_e),xe=Math.sin(Z),Se=Math.sin((1-C)*Z)/xe,Pe=Math.sin(C*Z)/xe):(Se=1-C,Pe=C),R[0]=Se*I+Pe*X,R[1]=Se*B+Pe*K,R[2]=Se*U+Pe*J,R[3]=Se*V+Pe*Y,R}function quaternionToEuler(A,E){var C=E[0],R=E[1],I=E[2],B=E[3],U=Math.atan2(2*R*B-2*C*I,1-2*R*R-2*I*I),V=Math.asin(2*C*R+2*I*B),X=Math.atan2(2*C*B-2*R*I,1-2*C*C-2*I*I);A[0]=U/degToRads,A[1]=V/degToRads,A[2]=X/degToRads}function createQuaternion(A){var E=A[0]*degToRads,C=A[1]*degToRads,R=A[2]*degToRads,I=Math.cos(E/2),B=Math.cos(C/2),U=Math.cos(R/2),V=Math.sin(E/2),X=Math.sin(C/2),K=Math.sin(R/2),J=I*B*U-V*X*K,Y=V*X*U+I*B*K,Z=V*B*U+I*X*K,_e=I*X*U-V*B*K;return[Y,Z,_e,J]}function getValueAtCurrentTime(){var A=this.comp.renderedFrame-this.offsetTime,E=this.keyframes[0].t-this.offsetTime,C=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(A===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=C&&A>=C||this._caching.lastFrame<E&&A<E))){this._caching.lastFrame>=A&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var R=this.interpolateValue(A,this._caching);this.pv=R}return this._caching.lastFrame=A,this.pv}function setVValue(A){var E;if(this.propType==="unidimensional")E=A*this.mult,mathAbs(this.v-E)>1e-5&&(this.v=E,this._mdf=!0);else for(var C=0,R=this.v.length;C<R;)E=A[C]*this.mult,mathAbs(this.v[C]-E)>1e-5&&(this.v[C]=E,this._mdf=!0),C+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var A,E=this.effectsSequence.length,C=this.kf?this.pv:this.data.k;for(A=0;A<E;A+=1)C=this.effectsSequence[A](C);this.setVValue(C),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(A){this.effectsSequence.push(A),this.container.addDynamicProperty(this)}function ValueProperty(A,E,C,R){this.propType="unidimensional",this.mult=C||1,this.data=E,this.v=C?E.k*C:E.k,this.pv=E.k,this._mdf=!1,this.elem=A,this.container=R,this.comp=A.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(A,E,C,R){this.propType="multidimensional",this.mult=C||1,this.data=E,this._mdf=!1,this.elem=A,this.container=R,this.comp=A.comp,this.k=!1,this.kf=!1,this.frameId=-1;var I,B=E.k.length;for(this.v=createTypedArray("float32",B),this.pv=createTypedArray("float32",B),this.vel=createTypedArray("float32",B),I=0;I<B;I+=1)this.v[I]=E.k[I]*this.mult,this.pv[I]=E.k[I];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(A,E,C,R){this.propType="unidimensional",this.keyframes=E.k,this.keyframesMetadata=[],this.offsetTime=A.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=E,this.mult=C||1,this.elem=A,this.container=R,this.comp=A.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(A,E,C,R){this.propType="multidimensional";var I,B=E.k.length,U,V,X,K;for(I=0;I<B-1;I+=1)E.k[I].to&&E.k[I].s&&E.k[I+1]&&E.k[I+1].s&&(U=E.k[I].s,V=E.k[I+1].s,X=E.k[I].to,K=E.k[I].ti,(U.length===2&&!(U[0]===V[0]&&U[1]===V[1])&&bez.pointOnLine2D(U[0],U[1],V[0],V[1],U[0]+X[0],U[1]+X[1])&&bez.pointOnLine2D(U[0],U[1],V[0],V[1],V[0]+K[0],V[1]+K[1])||U.length===3&&!(U[0]===V[0]&&U[1]===V[1]&&U[2]===V[2])&&bez.pointOnLine3D(U[0],U[1],U[2],V[0],V[1],V[2],U[0]+X[0],U[1]+X[1],U[2]+X[2])&&bez.pointOnLine3D(U[0],U[1],U[2],V[0],V[1],V[2],V[0]+K[0],V[1]+K[1],V[2]+K[2]))&&(E.k[I].to=null,E.k[I].ti=null),U[0]===V[0]&&U[1]===V[1]&&X[0]===0&&X[1]===0&&K[0]===0&&K[1]===0&&(U.length===2||U[2]===V[2]&&X[2]===0&&K[2]===0)&&(E.k[I].to=null,E.k[I].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=E,this.keyframes=E.k,this.keyframesMetadata=[],this.offsetTime=A.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=C||1,this.elem=A,this.container=R,this.comp=A.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var J=E.k[0].s.length;for(this.v=createTypedArray("float32",J),this.pv=createTypedArray("float32",J),I=0;I<J;I+=1)this.v[I]=initFrame,this.pv[I]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",J)},this.addEffect=addEffect}var PropertyFactory=function(){function A(C,R,I,B,U){R.sid&&(R=C.globalData.slotManager.getProp(R));var V;if(!R.k.length)V=new ValueProperty(C,R,B,U);else if(typeof R.k[0]=="number")V=new MultiDimensionalProperty(C,R,B,U);else switch(I){case 0:V=new KeyframedValueProperty(C,R,B,U);break;case 1:V=new KeyframedMultidimensionalProperty(C,R,B,U);break}return V.effectsSequence.length&&U.addDynamicProperty(V),V}var E={getProp:A};return E}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(E){this.dynamicProperties.indexOf(E)===-1&&(this.dynamicProperties.push(E),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var E,C=this.dynamicProperties.length;for(E=0;E<C;E+=1)this.dynamicProperties[E].getValue(),this.dynamicProperties[E]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(E){this.container=E,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function A(){return createTypedArray("float32",2)}return poolFactory(8,A)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(A,E){this.c=A,this.setLength(E);for(var C=0;C<E;)this.v[C]=pointPool.newElement(),this.o[C]=pointPool.newElement(),this.i[C]=pointPool.newElement(),C+=1},ShapePath.prototype.setLength=function(A){for(;this._maxLength<A;)this.doubleArrayLength();this._length=A},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(A,E,C,R,I){var B;switch(this._length=Math.max(this._length,R+1),this._length>=this._maxLength&&this.doubleArrayLength(),C){case"v":B=this.v;break;case"i":B=this.i;break;case"o":B=this.o;break;default:B=[];break}(!B[R]||B[R]&&!I)&&(B[R]=pointPool.newElement()),B[R][0]=A,B[R][1]=E},ShapePath.prototype.setTripleAt=function(A,E,C,R,I,B,U,V){this.setXYAt(A,E,"v",U,V),this.setXYAt(C,R,"o",U,V),this.setXYAt(I,B,"i",U,V)},ShapePath.prototype.reverse=function(){var A=new ShapePath;A.setPathData(this.c,this._length);var E=this.v,C=this.o,R=this.i,I=0;this.c&&(A.setTripleAt(E[0][0],E[0][1],R[0][0],R[0][1],C[0][0],C[0][1],0,!1),I=1);var B=this._length-1,U=this._length,V;for(V=I;V<U;V+=1)A.setTripleAt(E[B][0],E[B][1],R[B][0],R[B][1],C[B][0],C[B][1],V,!1),B-=1;return A},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function A(){return new ShapePath}function E(I){var B=I._length,U;for(U=0;U<B;U+=1)pointPool.release(I.v[U]),pointPool.release(I.i[U]),pointPool.release(I.o[U]),I.v[U]=null,I.i[U]=null,I.o[U]=null;I._length=0,I.c=!1}function C(I){var B=R.newElement(),U,V=I._length===void 0?I.v.length:I._length;for(B.setLength(V),B.c=I.c,U=0;U<V;U+=1)B.setTripleAt(I.v[U][0],I.v[U][1],I.o[U][0],I.o[U][1],I.i[U][0],I.i[U][1],U);return B}var R=poolFactory(4,A,E);return R.clone=C,R}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(A){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=A,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var A;for(A=0;A<this._length;A+=1)shapePool.release(this.shapes[A]);this._length=0};var shapeCollectionPool=function(){var A={newShapeCollection:I,release:B},E=0,C=4,R=createSizedArray(C);function I(){var U;return E?(E-=1,U=R[E]):U=new ShapeCollection,U}function B(U){var V,X=U._length;for(V=0;V<X;V+=1)shapePool.release(U.shapes[V]);U._length=0,E===C&&(R=pooling.double(R),C*=2),R[E]=U,E+=1}return A}(),ShapePropertyFactory=function(){var A=-999999;function E(Ee,Ae,Te){var we=Te.lastIndex,Ie,Fe,ke,Le,Ge,Ue,Be,je,Ve,ze=this.keyframes;if(Ee<ze[0].t-this.offsetTime)Ie=ze[0].s[0],ke=!0,we=0;else if(Ee>=ze[ze.length-1].t-this.offsetTime)Ie=ze[ze.length-1].s?ze[ze.length-1].s[0]:ze[ze.length-2].e[0],ke=!0;else{for(var He=we,Oe=ze.length-1,$e=!0,Re,Me,Ne;$e&&(Re=ze[He],Me=ze[He+1],!(Me.t-this.offsetTime>Ee));)He<Oe-1?He+=1:$e=!1;if(Ne=this.keyframesMetadata[He]||{},ke=Re.h===1,we=He,!ke){if(Ee>=Me.t-this.offsetTime)je=1;else if(Ee<Re.t-this.offsetTime)je=0;else{var De;Ne.__fnct?De=Ne.__fnct:(De=BezierFactory.getBezierEasing(Re.o.x,Re.o.y,Re.i.x,Re.i.y).get,Ne.__fnct=De),je=De((Ee-(Re.t-this.offsetTime))/(Me.t-this.offsetTime-(Re.t-this.offsetTime)))}Fe=Me.s?Me.s[0]:Re.e[0]}Ie=Re.s[0]}for(Ue=Ae._length,Be=Ie.i[0].length,Te.lastIndex=we,Le=0;Le<Ue;Le+=1)for(Ge=0;Ge<Be;Ge+=1)Ve=ke?Ie.i[Le][Ge]:Ie.i[Le][Ge]+(Fe.i[Le][Ge]-Ie.i[Le][Ge])*je,Ae.i[Le][Ge]=Ve,Ve=ke?Ie.o[Le][Ge]:Ie.o[Le][Ge]+(Fe.o[Le][Ge]-Ie.o[Le][Ge])*je,Ae.o[Le][Ge]=Ve,Ve=ke?Ie.v[Le][Ge]:Ie.v[Le][Ge]+(Fe.v[Le][Ge]-Ie.v[Le][Ge])*je,Ae.v[Le][Ge]=Ve}function C(){var Ee=this.comp.renderedFrame-this.offsetTime,Ae=this.keyframes[0].t-this.offsetTime,Te=this.keyframes[this.keyframes.length-1].t-this.offsetTime,we=this._caching.lastFrame;return we!==A&&(we<Ae&&Ee<Ae||we>Te&&Ee>Te)||(this._caching.lastIndex=we<Ee?this._caching.lastIndex:0,this.interpolateShape(Ee,this.pv,this._caching)),this._caching.lastFrame=Ee,this.pv}function R(){this.paths=this.localShapeCollection}function I(Ee,Ae){if(Ee._length!==Ae._length||Ee.c!==Ae.c)return!1;var Te,we=Ee._length;for(Te=0;Te<we;Te+=1)if(Ee.v[Te][0]!==Ae.v[Te][0]||Ee.v[Te][1]!==Ae.v[Te][1]||Ee.o[Te][0]!==Ae.o[Te][0]||Ee.o[Te][1]!==Ae.o[Te][1]||Ee.i[Te][0]!==Ae.i[Te][0]||Ee.i[Te][1]!==Ae.i[Te][1])return!1;return!0}function B(Ee){I(this.v,Ee)||(this.v=shapePool.clone(Ee),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function U(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var Ee;this.kf?Ee=this.pv:this.data.ks?Ee=this.data.ks.k:Ee=this.data.pt.k;var Ae,Te=this.effectsSequence.length;for(Ae=0;Ae<Te;Ae+=1)Ee=this.effectsSequence[Ae](Ee);this.setVValue(Ee),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function V(Ee,Ae,Te){this.propType="shape",this.comp=Ee.comp,this.container=Ee,this.elem=Ee,this.data=Ae,this.k=!1,this.kf=!1,this._mdf=!1;var we=Te===3?Ae.pt.k:Ae.ks.k;this.v=shapePool.clone(we),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=R,this.effectsSequence=[]}function X(Ee){this.effectsSequence.push(Ee),this.container.addDynamicProperty(this)}V.prototype.interpolateShape=E,V.prototype.getValue=U,V.prototype.setVValue=B,V.prototype.addEffect=X;function K(Ee,Ae,Te){this.propType="shape",this.comp=Ee.comp,this.elem=Ee,this.container=Ee,this.offsetTime=Ee.data.st,this.keyframes=Te===3?Ae.pt.k:Ae.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var we=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,we),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=A,this.reset=R,this._caching={lastFrame:A,lastIndex:0},this.effectsSequence=[C.bind(this)]}K.prototype.getValue=U,K.prototype.interpolateShape=E,K.prototype.setVValue=B,K.prototype.addEffect=X;var J=function(){var Ee=roundCorner;function Ae(Te,we){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=we.d,this.elem=Te,this.comp=Te.comp,this.frameId=-1,this.initDynamicPropertyContainer(Te),this.p=PropertyFactory.getProp(Te,we.p,1,0,this),this.s=PropertyFactory.getProp(Te,we.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Ae.prototype={reset:R,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var we=this.p.v[0],Ie=this.p.v[1],Fe=this.s.v[0]/2,ke=this.s.v[1]/2,Le=this.d!==3,Ge=this.v;Ge.v[0][0]=we,Ge.v[0][1]=Ie-ke,Ge.v[1][0]=Le?we+Fe:we-Fe,Ge.v[1][1]=Ie,Ge.v[2][0]=we,Ge.v[2][1]=Ie+ke,Ge.v[3][0]=Le?we-Fe:we+Fe,Ge.v[3][1]=Ie,Ge.i[0][0]=Le?we-Fe*Ee:we+Fe*Ee,Ge.i[0][1]=Ie-ke,Ge.i[1][0]=Le?we+Fe:we-Fe,Ge.i[1][1]=Ie-ke*Ee,Ge.i[2][0]=Le?we+Fe*Ee:we-Fe*Ee,Ge.i[2][1]=Ie+ke,Ge.i[3][0]=Le?we-Fe:we+Fe,Ge.i[3][1]=Ie+ke*Ee,Ge.o[0][0]=Le?we+Fe*Ee:we-Fe*Ee,Ge.o[0][1]=Ie-ke,Ge.o[1][0]=Le?we+Fe:we-Fe,Ge.o[1][1]=Ie+ke*Ee,Ge.o[2][0]=Le?we-Fe*Ee:we+Fe*Ee,Ge.o[2][1]=Ie+ke,Ge.o[3][0]=Le?we-Fe:we+Fe,Ge.o[3][1]=Ie-ke*Ee}},extendPrototype([DynamicPropertyContainer],Ae),Ae}(),Y=function(){function Ee(Ae,Te){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=Ae,this.comp=Ae.comp,this.data=Te,this.frameId=-1,this.d=Te.d,this.initDynamicPropertyContainer(Ae),Te.sy===1?(this.ir=PropertyFactory.getProp(Ae,Te.ir,0,0,this),this.is=PropertyFactory.getProp(Ae,Te.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(Ae,Te.pt,0,0,this),this.p=PropertyFactory.getProp(Ae,Te.p,1,0,this),this.r=PropertyFactory.getProp(Ae,Te.r,0,degToRads,this),this.or=PropertyFactory.getProp(Ae,Te.or,0,0,this),this.os=PropertyFactory.getProp(Ae,Te.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Ee.prototype={reset:R,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var Te=Math.floor(this.pt.v)*2,we=Math.PI*2/Te,Ie=!0,Fe=this.or.v,ke=this.ir.v,Le=this.os.v,Ge=this.is.v,Ue=2*Math.PI*Fe/(Te*2),Be=2*Math.PI*ke/(Te*2),je,Ve,ze,He,Oe=-Math.PI/2;Oe+=this.r.v;var $e=this.data.d===3?-1:1;for(this.v._length=0,je=0;je<Te;je+=1){Ve=Ie?Fe:ke,ze=Ie?Le:Ge,He=Ie?Ue:Be;var Re=Ve*Math.cos(Oe),Me=Ve*Math.sin(Oe),Ne=Re===0&&Me===0?0:Me/Math.sqrt(Re*Re+Me*Me),De=Re===0&&Me===0?0:-Re/Math.sqrt(Re*Re+Me*Me);Re+=+this.p.v[0],Me+=+this.p.v[1],this.v.setTripleAt(Re,Me,Re-Ne*He*ze*$e,Me-De*He*ze*$e,Re+Ne*He*ze*$e,Me+De*He*ze*$e,je,!0),Ie=!Ie,Oe+=we*$e}},convertPolygonToPath:function(){var Te=Math.floor(this.pt.v),we=Math.PI*2/Te,Ie=this.or.v,Fe=this.os.v,ke=2*Math.PI*Ie/(Te*4),Le,Ge=-Math.PI*.5,Ue=this.data.d===3?-1:1;for(Ge+=this.r.v,this.v._length=0,Le=0;Le<Te;Le+=1){var Be=Ie*Math.cos(Ge),je=Ie*Math.sin(Ge),Ve=Be===0&&je===0?0:je/Math.sqrt(Be*Be+je*je),ze=Be===0&&je===0?0:-Be/Math.sqrt(Be*Be+je*je);Be+=+this.p.v[0],je+=+this.p.v[1],this.v.setTripleAt(Be,je,Be-Ve*ke*Fe*Ue,je-ze*ke*Fe*Ue,Be+Ve*ke*Fe*Ue,je+ze*ke*Fe*Ue,Le,!0),Ge+=we*Ue}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Ee),Ee}(),Z=function(){function Ee(Ae,Te){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Ae,this.comp=Ae.comp,this.frameId=-1,this.d=Te.d,this.initDynamicPropertyContainer(Ae),this.p=PropertyFactory.getProp(Ae,Te.p,1,0,this),this.s=PropertyFactory.getProp(Ae,Te.s,1,0,this),this.r=PropertyFactory.getProp(Ae,Te.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Ee.prototype={convertRectToPath:function(){var Te=this.p.v[0],we=this.p.v[1],Ie=this.s.v[0]/2,Fe=this.s.v[1]/2,ke=bmMin(Ie,Fe,this.r.v),Le=ke*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Te+Ie,we-Fe+ke,Te+Ie,we-Fe+ke,Te+Ie,we-Fe+Le,0,!0),this.v.setTripleAt(Te+Ie,we+Fe-ke,Te+Ie,we+Fe-Le,Te+Ie,we+Fe-ke,1,!0),ke!==0?(this.v.setTripleAt(Te+Ie-ke,we+Fe,Te+Ie-ke,we+Fe,Te+Ie-Le,we+Fe,2,!0),this.v.setTripleAt(Te-Ie+ke,we+Fe,Te-Ie+Le,we+Fe,Te-Ie+ke,we+Fe,3,!0),this.v.setTripleAt(Te-Ie,we+Fe-ke,Te-Ie,we+Fe-ke,Te-Ie,we+Fe-Le,4,!0),this.v.setTripleAt(Te-Ie,we-Fe+ke,Te-Ie,we-Fe+Le,Te-Ie,we-Fe+ke,5,!0),this.v.setTripleAt(Te-Ie+ke,we-Fe,Te-Ie+ke,we-Fe,Te-Ie+Le,we-Fe,6,!0),this.v.setTripleAt(Te+Ie-ke,we-Fe,Te+Ie-Le,we-Fe,Te+Ie-ke,we-Fe,7,!0)):(this.v.setTripleAt(Te-Ie,we+Fe,Te-Ie+Le,we+Fe,Te-Ie,we+Fe,2),this.v.setTripleAt(Te-Ie,we-Fe,Te-Ie,we-Fe+Le,Te-Ie,we-Fe,3))):(this.v.setTripleAt(Te+Ie,we-Fe+ke,Te+Ie,we-Fe+Le,Te+Ie,we-Fe+ke,0,!0),ke!==0?(this.v.setTripleAt(Te+Ie-ke,we-Fe,Te+Ie-ke,we-Fe,Te+Ie-Le,we-Fe,1,!0),this.v.setTripleAt(Te-Ie+ke,we-Fe,Te-Ie+Le,we-Fe,Te-Ie+ke,we-Fe,2,!0),this.v.setTripleAt(Te-Ie,we-Fe+ke,Te-Ie,we-Fe+ke,Te-Ie,we-Fe+Le,3,!0),this.v.setTripleAt(Te-Ie,we+Fe-ke,Te-Ie,we+Fe-Le,Te-Ie,we+Fe-ke,4,!0),this.v.setTripleAt(Te-Ie+ke,we+Fe,Te-Ie+ke,we+Fe,Te-Ie+Le,we+Fe,5,!0),this.v.setTripleAt(Te+Ie-ke,we+Fe,Te+Ie-Le,we+Fe,Te+Ie-ke,we+Fe,6,!0),this.v.setTripleAt(Te+Ie,we+Fe-ke,Te+Ie,we+Fe-ke,Te+Ie,we+Fe-Le,7,!0)):(this.v.setTripleAt(Te-Ie,we-Fe,Te-Ie+Le,we-Fe,Te-Ie,we-Fe,1,!0),this.v.setTripleAt(Te-Ie,we+Fe,Te-Ie,we+Fe-Le,Te-Ie,we+Fe,2,!0),this.v.setTripleAt(Te+Ie,we+Fe,Te+Ie-Le,we+Fe,Te+Ie,we+Fe,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:R},extendPrototype([DynamicPropertyContainer],Ee),Ee}();function _e(Ee,Ae,Te){var we;if(Te===3||Te===4){var Ie=Te===3?Ae.pt:Ae.ks,Fe=Ie.k;Fe.length?we=new K(Ee,Ae,Te):we=new V(Ee,Ae,Te)}else Te===5?we=new Z(Ee,Ae):Te===6?we=new J(Ee,Ae):Te===7&&(we=new Y(Ee,Ae));return we.k&&Ee.addDynamicProperty(we),we}function xe(){return V}function Se(){return K}var Pe={};return Pe.getShapeProp=_e,Pe.getConstructorFunction=xe,Pe.getKeyframedConstructorFunction=Se,Pe}();/*!
2005
1968
  Transformation Matrix v2.0
2006
1969
  (c) Epistemex 2014-2015
2007
1970
  www.epistemex.com
2008
1971
  By Ken Fyrstenberg
2009
1972
  Contributions by leeoniya.
2010
1973
  License: MIT, header required.
2011
- */var Matrix=function(){var A=Math.cos,E=Math.sin,C=Math.tan,R=Math.round;function I(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function B(Re){if(Re===0)return this;var Me=A(Re),Ne=E(Re);return this._t(Me,-Ne,0,0,Ne,Me,0,0,0,0,1,0,0,0,0,1)}function U(Re){if(Re===0)return this;var Me=A(Re),Ne=E(Re);return this._t(1,0,0,0,0,Me,-Ne,0,0,Ne,Me,0,0,0,0,1)}function V(Re){if(Re===0)return this;var Me=A(Re),Ne=E(Re);return this._t(Me,0,Ne,0,0,1,0,0,-Ne,0,Me,0,0,0,0,1)}function X(Re){if(Re===0)return this;var Me=A(Re),Ne=E(Re);return this._t(Me,-Ne,0,0,Ne,Me,0,0,0,0,1,0,0,0,0,1)}function K(Re,Me){return this._t(1,Me,Re,1,0,0)}function J(Re,Me){return this.shear(C(Re),C(Me))}function Y(Re,Me){var Ne=A(Me),De=E(Me);return this._t(Ne,De,0,0,-De,Ne,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,C(Re),1,0,0,0,0,1,0,0,0,0,1)._t(Ne,-De,0,0,De,Ne,0,0,0,0,1,0,0,0,0,1)}function Z(Re,Me,Ne){return!Ne&&Ne!==0&&(Ne=1),Re===1&&Me===1&&Ne===1?this:this._t(Re,0,0,0,0,Me,0,0,0,0,Ne,0,0,0,0,1)}function _e(Re,Me,Ne,De,Xe,qe,Ye,Je,Ke,rt,nt,Qe,Ze,tt,st,et){return this.props[0]=Re,this.props[1]=Me,this.props[2]=Ne,this.props[3]=De,this.props[4]=Xe,this.props[5]=qe,this.props[6]=Ye,this.props[7]=Je,this.props[8]=Ke,this.props[9]=rt,this.props[10]=nt,this.props[11]=Qe,this.props[12]=Ze,this.props[13]=tt,this.props[14]=st,this.props[15]=et,this}function xe(Re,Me,Ne){return Ne=Ne||0,Re!==0||Me!==0||Ne!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Re,Me,Ne,1):this}function Se(Re,Me,Ne,De,Xe,qe,Ye,Je,Ke,rt,nt,Qe,Ze,tt,st,et){var We=this.props;if(Re===1&&Me===0&&Ne===0&&De===0&&Xe===0&&qe===1&&Ye===0&&Je===0&&Ke===0&&rt===0&&nt===1&&Qe===0)return We[12]=We[12]*Re+We[15]*Ze,We[13]=We[13]*qe+We[15]*tt,We[14]=We[14]*nt+We[15]*st,We[15]*=et,this._identityCalculated=!1,this;var it=We[0],ot=We[1],ht=We[2],gt=We[3],pt=We[4],ft=We[5],mt=We[6],ct=We[7],xt=We[8],bt=We[9],It=We[10],Et=We[11],Ft=We[12],qt=We[13],Wt=We[14],Yt=We[15];return We[0]=it*Re+ot*Xe+ht*Ke+gt*Ze,We[1]=it*Me+ot*qe+ht*rt+gt*tt,We[2]=it*Ne+ot*Ye+ht*nt+gt*st,We[3]=it*De+ot*Je+ht*Qe+gt*et,We[4]=pt*Re+ft*Xe+mt*Ke+ct*Ze,We[5]=pt*Me+ft*qe+mt*rt+ct*tt,We[6]=pt*Ne+ft*Ye+mt*nt+ct*st,We[7]=pt*De+ft*Je+mt*Qe+ct*et,We[8]=xt*Re+bt*Xe+It*Ke+Et*Ze,We[9]=xt*Me+bt*qe+It*rt+Et*tt,We[10]=xt*Ne+bt*Ye+It*nt+Et*st,We[11]=xt*De+bt*Je+It*Qe+Et*et,We[12]=Ft*Re+qt*Xe+Wt*Ke+Yt*Ze,We[13]=Ft*Me+qt*qe+Wt*rt+Yt*tt,We[14]=Ft*Ne+qt*Ye+Wt*nt+Yt*st,We[15]=Ft*De+qt*Je+Wt*Qe+Yt*et,this._identityCalculated=!1,this}function Pe(Re){var Me=Re.props;return this.transform(Me[0],Me[1],Me[2],Me[3],Me[4],Me[5],Me[6],Me[7],Me[8],Me[9],Me[10],Me[11],Me[12],Me[13],Me[14],Me[15])}function Ee(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function Ae(Re){for(var Me=0;Me<16;){if(Re.props[Me]!==this.props[Me])return!1;Me+=1}return!0}function Te(Re){var Me;for(Me=0;Me<16;Me+=1)Re.props[Me]=this.props[Me];return Re}function we(Re){var Me;for(Me=0;Me<16;Me+=1)this.props[Me]=Re[Me]}function Ie(Re,Me,Ne){return{x:Re*this.props[0]+Me*this.props[4]+Ne*this.props[8]+this.props[12],y:Re*this.props[1]+Me*this.props[5]+Ne*this.props[9]+this.props[13],z:Re*this.props[2]+Me*this.props[6]+Ne*this.props[10]+this.props[14]}}function Fe(Re,Me,Ne){return Re*this.props[0]+Me*this.props[4]+Ne*this.props[8]+this.props[12]}function ke(Re,Me,Ne){return Re*this.props[1]+Me*this.props[5]+Ne*this.props[9]+this.props[13]}function Le(Re,Me,Ne){return Re*this.props[2]+Me*this.props[6]+Ne*this.props[10]+this.props[14]}function Ge(){var Re=this.props[0]*this.props[5]-this.props[1]*this.props[4],Me=this.props[5]/Re,Ne=-this.props[1]/Re,De=-this.props[4]/Re,Xe=this.props[0]/Re,qe=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Re,Ye=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Re,Je=new Matrix;return Je.props[0]=Me,Je.props[1]=Ne,Je.props[4]=De,Je.props[5]=Xe,Je.props[12]=qe,Je.props[13]=Ye,Je}function He(Re){var Me=this.getInverseMatrix();return Me.applyToPointArray(Re[0],Re[1],Re[2]||0)}function Be(Re){var Me,Ne=Re.length,De=[];for(Me=0;Me<Ne;Me+=1)De[Me]=He(Re[Me]);return De}function je(Re,Me,Ne){var De=createTypedArray("float32",6);if(this.isIdentity())De[0]=Re[0],De[1]=Re[1],De[2]=Me[0],De[3]=Me[1],De[4]=Ne[0],De[5]=Ne[1];else{var Xe=this.props[0],qe=this.props[1],Ye=this.props[4],Je=this.props[5],Ke=this.props[12],rt=this.props[13];De[0]=Re[0]*Xe+Re[1]*Ye+Ke,De[1]=Re[0]*qe+Re[1]*Je+rt,De[2]=Me[0]*Xe+Me[1]*Ye+Ke,De[3]=Me[0]*qe+Me[1]*Je+rt,De[4]=Ne[0]*Xe+Ne[1]*Ye+Ke,De[5]=Ne[0]*qe+Ne[1]*Je+rt}return De}function Ue(Re,Me,Ne){var De;return this.isIdentity()?De=[Re,Me,Ne]:De=[Re*this.props[0]+Me*this.props[4]+Ne*this.props[8]+this.props[12],Re*this.props[1]+Me*this.props[5]+Ne*this.props[9]+this.props[13],Re*this.props[2]+Me*this.props[6]+Ne*this.props[10]+this.props[14]],De}function ze(Re,Me){if(this.isIdentity())return Re+","+Me;var Ne=this.props;return Math.round((Re*Ne[0]+Me*Ne[4]+Ne[12])*100)/100+","+Math.round((Re*Ne[1]+Me*Ne[5]+Ne[13])*100)/100}function Ve(){for(var Re=0,Me=this.props,Ne="matrix3d(",De=1e4;Re<16;)Ne+=R(Me[Re]*De)/De,Ne+=Re===15?")":",",Re+=1;return Ne}function Oe(Re){var Me=1e4;return Re<1e-6&&Re>0||Re>-1e-6&&Re<0?R(Re*Me)/Me:Re}function $e(){var Re=this.props,Me=Oe(Re[0]),Ne=Oe(Re[1]),De=Oe(Re[4]),Xe=Oe(Re[5]),qe=Oe(Re[12]),Ye=Oe(Re[13]);return"matrix("+Me+","+Ne+","+De+","+Xe+","+qe+","+Ye+")"}return function(){this.reset=I,this.rotate=B,this.rotateX=U,this.rotateY=V,this.rotateZ=X,this.skew=J,this.skewFromAxis=Y,this.shear=K,this.scale=Z,this.setTransform=_e,this.translate=xe,this.transform=Se,this.multiply=Pe,this.applyToPoint=Ie,this.applyToX=Fe,this.applyToY=ke,this.applyToZ=Le,this.applyToPointArray=Ue,this.applyToTriplePoints=je,this.applyToPointStringified=ze,this.toCSS=Ve,this.to2dCSS=$e,this.clone=Te,this.cloneFromProps=we,this.equals=Ae,this.inversePoints=Be,this.inversePoint=He,this.getInverseMatrix=Ge,this._t=this.transform,this.isIdentity=Ee,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(C){return typeof C}:_typeof$3=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$3(A)}var lottie={};function setLocation(A){setLocationHref(A)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(A){setSubframeEnabled(A)}function setPrefix(A){setIdPrefix(A)}function loadAnimation(A){return animationManager.loadAnimation(A)}function setQuality(A){if(typeof A=="string")switch(A){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(A)&&A>1&&setDefaultCurveSegments(A)}function inBrowser(){return typeof navigator<"u"}function installPlugin(A,E){A==="expressions"&&setExpressionsPlugin(E)}function getFactory(A){switch(A){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(A){for(var E=queryString.split("&"),C=0;C<E.length;C+=1){var R=E[C].split("=");if(decodeURIComponent(R[0])==A)return decodeURIComponent(R[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(A){}var ShapeModifiers=function(){var A={},E={};A.registerModifier=C,A.getModifier=R;function C(I,B){E[I]||(E[I]=B)}function R(I,B,U){return new E[I](B,U)}return A}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(A){if(!this.closed){A.sh.container.addDynamicProperty(A.sh);var E={shape:A.sh,data:A,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(E),this.addShapeToModifier(E),this._isAnimated&&A.setAsAnimated()}},ShapeModifier.prototype.init=function(A,E){this.shapes=[],this.elem=A,this.initDynamicPropertyContainer(A),this.initModifierProperties(A,E),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(A,E){this.s=PropertyFactory.getProp(A,E.s,0,.01,this),this.e=PropertyFactory.getProp(A,E.e,0,.01,this),this.o=PropertyFactory.getProp(A,E.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=E.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(A){A.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(A,E,C,R,I){var B=[];E<=1?B.push({s:A,e:E}):A>=1?B.push({s:A-1,e:E-1}):(B.push({s:A,e:1}),B.push({s:0,e:E-1}));var U=[],V,X=B.length,K;for(V=0;V<X;V+=1)if(K=B[V],!(K.e*I<R||K.s*I>R+C)){var J,Y;K.s*I<=R?J=0:J=(K.s*I-R)/C,K.e*I>=R+C?Y=1:Y=(K.e*I-R)/C,U.push([J,Y])}return U.length||U.push([0,0]),U},TrimModifier.prototype.releasePathsData=function(A){var E,C=A.length;for(E=0;E<C;E+=1)segmentsLengthPool.release(A[E]);return A.length=0,A},TrimModifier.prototype.processShapes=function(A){var E,C;if(this._mdf||A){var R=this.o.v%360/360;if(R<0&&(R+=1),this.s.v>1?E=1+R:this.s.v<0?E=0+R:E=this.s.v+R,this.e.v>1?C=1+R:this.e.v<0?C=0+R:C=this.e.v+R,E>C){var I=E;E=C,C=I}E=Math.round(E*1e4)*1e-4,C=Math.round(C*1e4)*1e-4,this.sValue=E,this.eValue=C}else E=this.sValue,C=this.eValue;var B,U,V=this.shapes.length,X,K,J,Y,Z,_e=0;if(C===E)for(U=0;U<V;U+=1)this.shapes[U].localShapeCollection.releaseShapes(),this.shapes[U].shape._mdf=!0,this.shapes[U].shape.paths=this.shapes[U].localShapeCollection,this._mdf&&(this.shapes[U].pathsData.length=0);else if(C===1&&E===0||C===0&&E===1){if(this._mdf)for(U=0;U<V;U+=1)this.shapes[U].pathsData.length=0,this.shapes[U].shape._mdf=!0}else{var xe=[],Se,Pe;for(U=0;U<V;U+=1)if(Se=this.shapes[U],!Se.shape._mdf&&!this._mdf&&!A&&this.m!==2)Se.shape.paths=Se.localShapeCollection;else{if(B=Se.shape.paths,K=B._length,Z=0,!Se.shape._mdf&&Se.pathsData.length)Z=Se.totalShapeLength;else{for(J=this.releasePathsData(Se.pathsData),X=0;X<K;X+=1)Y=bez.getSegmentsLength(B.shapes[X]),J.push(Y),Z+=Y.totalLength;Se.totalShapeLength=Z,Se.pathsData=J}_e+=Z,Se.shape._mdf=!0}var Ee=E,Ae=C,Te=0,we;for(U=V-1;U>=0;U-=1)if(Se=this.shapes[U],Se.shape._mdf){for(Pe=Se.localShapeCollection,Pe.releaseShapes(),this.m===2&&V>1?(we=this.calculateShapeEdges(E,C,Se.totalShapeLength,Te,_e),Te+=Se.totalShapeLength):we=[[Ee,Ae]],K=we.length,X=0;X<K;X+=1){Ee=we[X][0],Ae=we[X][1],xe.length=0,Ae<=1?xe.push({s:Se.totalShapeLength*Ee,e:Se.totalShapeLength*Ae}):Ee>=1?xe.push({s:Se.totalShapeLength*(Ee-1),e:Se.totalShapeLength*(Ae-1)}):(xe.push({s:Se.totalShapeLength*Ee,e:Se.totalShapeLength}),xe.push({s:0,e:Se.totalShapeLength*(Ae-1)}));var Ie=this.addShapes(Se,xe[0]);if(xe[0].s!==xe[0].e){if(xe.length>1){var Fe=Se.shape.paths.shapes[Se.shape.paths._length-1];if(Fe.c){var ke=Ie.pop();this.addPaths(Ie,Pe),Ie=this.addShapes(Se,xe[1],ke)}else this.addPaths(Ie,Pe),Ie=this.addShapes(Se,xe[1])}this.addPaths(Ie,Pe)}}Se.shape.paths=Pe}}},TrimModifier.prototype.addPaths=function(A,E){var C,R=A.length;for(C=0;C<R;C+=1)E.addShape(A[C])},TrimModifier.prototype.addSegment=function(A,E,C,R,I,B,U){I.setXYAt(E[0],E[1],"o",B),I.setXYAt(C[0],C[1],"i",B+1),U&&I.setXYAt(A[0],A[1],"v",B),I.setXYAt(R[0],R[1],"v",B+1)},TrimModifier.prototype.addSegmentFromArray=function(A,E,C,R){E.setXYAt(A[1],A[5],"o",C),E.setXYAt(A[2],A[6],"i",C+1),R&&E.setXYAt(A[0],A[4],"v",C),E.setXYAt(A[3],A[7],"v",C+1)},TrimModifier.prototype.addShapes=function(A,E,C){var R=A.pathsData,I=A.shape.paths.shapes,B,U=A.shape.paths._length,V,X,K=0,J,Y,Z,_e,xe=[],Se,Pe=!0;for(C?(Y=C._length,Se=C._length):(C=shapePool.newElement(),Y=0,Se=0),xe.push(C),B=0;B<U;B+=1){for(Z=R[B].lengths,C.c=I[B].c,X=I[B].c?Z.length:Z.length+1,V=1;V<X;V+=1)if(J=Z[V-1],K+J.addedLength<E.s)K+=J.addedLength,C.c=!1;else if(K>E.e){C.c=!1;break}else E.s<=K&&E.e>=K+J.addedLength?(this.addSegment(I[B].v[V-1],I[B].o[V-1],I[B].i[V],I[B].v[V],C,Y,Pe),Pe=!1):(_e=bez.getNewSegment(I[B].v[V-1],I[B].v[V],I[B].o[V-1],I[B].i[V],(E.s-K)/J.addedLength,(E.e-K)/J.addedLength,Z[V-1]),this.addSegmentFromArray(_e,C,Y,Pe),Pe=!1,C.c=!1),K+=J.addedLength,Y+=1;if(I[B].c&&Z.length){if(J=Z[V-1],K<=E.e){var Ee=Z[V-1].addedLength;E.s<=K&&E.e>=K+Ee?(this.addSegment(I[B].v[V-1],I[B].o[V-1],I[B].i[0],I[B].v[0],C,Y,Pe),Pe=!1):(_e=bez.getNewSegment(I[B].v[V-1],I[B].v[0],I[B].o[V-1],I[B].i[0],(E.s-K)/Ee,(E.e-K)/Ee,Z[V-1]),this.addSegmentFromArray(_e,C,Y,Pe),Pe=!1,C.c=!1)}else C.c=!1;K+=J.addedLength,Y+=1}if(C._length&&(C.setXYAt(C.v[Se][0],C.v[Se][1],"i",Se),C.setXYAt(C.v[C._length-1][0],C.v[C._length-1][1],"o",C._length-1)),K>E.e)break;B<U-1&&(C=shapePool.newElement(),Pe=!0,xe.push(C),Y=0)}return xe};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(A,E.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(A,E){var C=E/100,R=[0,0],I=A._length,B=0;for(B=0;B<I;B+=1)R[0]+=A.v[B][0],R[1]+=A.v[B][1];R[0]/=I,R[1]/=I;var U=shapePool.newElement();U.c=A.c;var V,X,K,J,Y,Z;for(B=0;B<I;B+=1)V=A.v[B][0]+(R[0]-A.v[B][0])*C,X=A.v[B][1]+(R[1]-A.v[B][1])*C,K=A.o[B][0]+(R[0]-A.o[B][0])*-C,J=A.o[B][1]+(R[1]-A.o[B][1])*-C,Y=A.i[B][0]+(R[0]-A.i[B][0])*-C,Z=A.i[B][1]+(R[1]-A.i[B][1])*-C,U.setTripleAt(V,X,K,J,Y,Z,B);return U},PuckerAndBloatModifier.prototype.processShapes=function(A){var E,C,R=this.shapes.length,I,B,U=this.amount.v;if(U!==0){var V,X;for(C=0;C<R;C+=1){if(V=this.shapes[C],X=V.localShapeCollection,!(!V.shape._mdf&&!this._mdf&&!A))for(X.releaseShapes(),V.shape._mdf=!0,E=V.shape.paths.shapes,B=V.shape.paths._length,I=0;I<B;I+=1)X.addShape(this.processPath(E[I],U));V.shape.paths=V.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var A=[0,0];function E(X){var K=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||K,this.a&&X.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&X.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&X.skewFromAxis(-this.sk.v,this.sa.v),this.r?X.rotate(-this.r.v):X.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?X.translate(this.px.v,this.py.v,-this.pz.v):X.translate(this.px.v,this.py.v,0):X.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function C(X){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||X){var K;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var J,Y;if(K=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(J=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/K,0),Y=this.p.getValueAtTime(this.p.keyframes[0].t/K,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(J=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/K,0),Y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/K,0)):(J=this.p.pv,Y=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/K,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){J=[],Y=[];var Z=this.px,_e=this.py;Z._caching.lastFrame+Z.offsetTime<=Z.keyframes[0].t?(J[0]=Z.getValueAtTime((Z.keyframes[0].t+.01)/K,0),J[1]=_e.getValueAtTime((_e.keyframes[0].t+.01)/K,0),Y[0]=Z.getValueAtTime(Z.keyframes[0].t/K,0),Y[1]=_e.getValueAtTime(_e.keyframes[0].t/K,0)):Z._caching.lastFrame+Z.offsetTime>=Z.keyframes[Z.keyframes.length-1].t?(J[0]=Z.getValueAtTime(Z.keyframes[Z.keyframes.length-1].t/K,0),J[1]=_e.getValueAtTime(_e.keyframes[_e.keyframes.length-1].t/K,0),Y[0]=Z.getValueAtTime((Z.keyframes[Z.keyframes.length-1].t-.01)/K,0),Y[1]=_e.getValueAtTime((_e.keyframes[_e.keyframes.length-1].t-.01)/K,0)):(J=[Z.pv,_e.pv],Y[0]=Z.getValueAtTime((Z._caching.lastFrame+Z.offsetTime-.01)/K,Z.offsetTime),Y[1]=_e.getValueAtTime((_e._caching.lastFrame+_e.offsetTime-.01)/K,_e.offsetTime))}else Y=A,J=Y;this.v.rotate(-Math.atan2(J[1]-Y[1],J[0]-Y[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function R(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function I(){}function B(X){this._addDynamicProperty(X),this.elem.addDynamicProperty(X),this._isDirty=!0}function U(X,K,J){if(this.elem=X,this.frameId=-1,this.propType="transform",this.data=K,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(J||X),K.p&&K.p.s?(this.px=PropertyFactory.getProp(X,K.p.x,0,0,this),this.py=PropertyFactory.getProp(X,K.p.y,0,0,this),K.p.z&&(this.pz=PropertyFactory.getProp(X,K.p.z,0,0,this))):this.p=PropertyFactory.getProp(X,K.p||{k:[0,0,0]},1,0,this),K.rx){if(this.rx=PropertyFactory.getProp(X,K.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(X,K.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(X,K.rz,0,degToRads,this),K.or.k[0].ti){var Y,Z=K.or.k.length;for(Y=0;Y<Z;Y+=1)K.or.k[Y].to=null,K.or.k[Y].ti=null}this.or=PropertyFactory.getProp(X,K.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(X,K.r||{k:0},0,degToRads,this);K.sk&&(this.sk=PropertyFactory.getProp(X,K.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(X,K.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(X,K.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(X,K.s||{k:[100,100,100]},1,.01,this),K.o?this.o=PropertyFactory.getProp(X,K.o,0,.01,X):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}U.prototype={applyToMatrix:E,getValue:C,precalculateMatrix:R,autoOrient:I},extendPrototype([DynamicPropertyContainer],U),U.prototype.addDynamicProperty=B,U.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function V(X,K,J){return new U(X,K,J)}return{getTransformProperty:V}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(A,E.c,0,null,this),this.o=PropertyFactory.getProp(A,E.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(A,E.tr,this),this.so=PropertyFactory.getProp(A,E.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(A,E.tr.eo,0,.01,this),this.data=E,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(A,E,C,R,I,B){var U=B?-1:1,V=R.s.v[0]+(1-R.s.v[0])*(1-I),X=R.s.v[1]+(1-R.s.v[1])*(1-I);A.translate(R.p.v[0]*U*I,R.p.v[1]*U*I,R.p.v[2]),E.translate(-R.a.v[0],-R.a.v[1],R.a.v[2]),E.rotate(-R.r.v*U*I),E.translate(R.a.v[0],R.a.v[1],R.a.v[2]),C.translate(-R.a.v[0],-R.a.v[1],R.a.v[2]),C.scale(B?1/V:V,B?1/X:X),C.translate(R.a.v[0],R.a.v[1],R.a.v[2])},RepeaterModifier.prototype.init=function(A,E,C,R){for(this.elem=A,this.arr=E,this.pos=C,this.elemsData=R,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(A),this.initModifierProperties(A,E[C]);C>0;)C-=1,this._elements.unshift(E[C]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(A){var E,C=A.length;for(E=0;E<C;E+=1)A[E]._processed=!1,A[E].ty==="gr"&&this.resetElements(A[E].it)},RepeaterModifier.prototype.cloneElements=function(A){var E=JSON.parse(JSON.stringify(A));return this.resetElements(E),E},RepeaterModifier.prototype.changeGroupRender=function(A,E){var C,R=A.length;for(C=0;C<R;C+=1)A[C]._render=E,A[C].ty==="gr"&&this.changeGroupRender(A[C].it,E)},RepeaterModifier.prototype.processShapes=function(A){var E,C,R,I,B,U=!1;if(this._mdf||A){var V=Math.ceil(this.c.v);if(this._groups.length<V){for(;this._groups.length<V;){var X={it:this.cloneElements(this._elements),ty:"gr"};X.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,X),this._groups.splice(0,0,X),this._currentCopies+=1}this.elem.reloadShapes(),U=!0}B=0;var K;for(R=0;R<=this._groups.length-1;R+=1){if(K=B<V,this._groups[R]._render=K,this.changeGroupRender(this._groups[R].it,K),!K){var J=this.elemsData[R].it,Y=J[J.length-1];Y.transform.op.v!==0?(Y.transform.op._mdf=!0,Y.transform.op.v=0):Y.transform.op._mdf=!1}B+=1}this._currentCopies=V;var Z=this.o.v,_e=Z%1,xe=Z>0?Math.floor(Z):Math.ceil(Z),Se=this.pMatrix.props,Pe=this.rMatrix.props,Ee=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Ae=0;if(Z>0){for(;Ae<xe;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Ae+=1;_e&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,_e,!1),Ae+=_e)}else if(Z<0){for(;Ae>xe;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Ae-=1;_e&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-_e,!0),Ae-=_e)}R=this.data.m===1?0:this._currentCopies-1,I=this.data.m===1?1:-1,B=this._currentCopies;for(var Te,we;B;){if(E=this.elemsData[R].it,C=E[E.length-1].transform.mProps.v.props,we=C.length,E[E.length-1].transform.mProps._mdf=!0,E[E.length-1].transform.op._mdf=!0,E[E.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(R/(this._currentCopies-1)),Ae!==0){for((R!==0&&I===1||R!==this._currentCopies-1&&I===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],Pe[8],Pe[9],Pe[10],Pe[11],Pe[12],Pe[13],Pe[14],Pe[15]),this.matrix.transform(Ee[0],Ee[1],Ee[2],Ee[3],Ee[4],Ee[5],Ee[6],Ee[7],Ee[8],Ee[9],Ee[10],Ee[11],Ee[12],Ee[13],Ee[14],Ee[15]),this.matrix.transform(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],Se[8],Se[9],Se[10],Se[11],Se[12],Se[13],Se[14],Se[15]),Te=0;Te<we;Te+=1)C[Te]=this.matrix.props[Te];this.matrix.reset()}else for(this.matrix.reset(),Te=0;Te<we;Te+=1)C[Te]=this.matrix.props[Te];Ae+=1,B-=1,R+=I}}else for(B=this._currentCopies,R=0,I=1;B;)E=this.elemsData[R].it,C=E[E.length-1].transform.mProps.v.props,E[E.length-1].transform.mProps._mdf=!1,E[E.length-1].transform.op._mdf=!1,B-=1,R+=I;return U},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(A,E.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(A,E){var C=shapePool.newElement();C.c=A.c;var R,I=A._length,B,U,V,X,K,J,Y=0,Z,_e,xe,Se,Pe,Ee;for(R=0;R<I;R+=1)B=A.v[R],V=A.o[R],U=A.i[R],B[0]===V[0]&&B[1]===V[1]&&B[0]===U[0]&&B[1]===U[1]?(R===0||R===I-1)&&!A.c?(C.setTripleAt(B[0],B[1],V[0],V[1],U[0],U[1],Y),Y+=1):(R===0?X=A.v[I-1]:X=A.v[R-1],K=Math.sqrt(Math.pow(B[0]-X[0],2)+Math.pow(B[1]-X[1],2)),J=K?Math.min(K/2,E)/K:0,Pe=B[0]+(X[0]-B[0])*J,Z=Pe,Ee=B[1]-(B[1]-X[1])*J,_e=Ee,xe=Z-(Z-B[0])*roundCorner,Se=_e-(_e-B[1])*roundCorner,C.setTripleAt(Z,_e,xe,Se,Pe,Ee,Y),Y+=1,R===I-1?X=A.v[0]:X=A.v[R+1],K=Math.sqrt(Math.pow(B[0]-X[0],2)+Math.pow(B[1]-X[1],2)),J=K?Math.min(K/2,E)/K:0,xe=B[0]+(X[0]-B[0])*J,Z=xe,Se=B[1]+(X[1]-B[1])*J,_e=Se,Pe=Z-(Z-B[0])*roundCorner,Ee=_e-(_e-B[1])*roundCorner,C.setTripleAt(Z,_e,xe,Se,Pe,Ee,Y),Y+=1):(C.setTripleAt(A.v[R][0],A.v[R][1],A.o[R][0],A.o[R][1],A.i[R][0],A.i[R][1],Y),Y+=1);return C},RoundCornersModifier.prototype.processShapes=function(A){var E,C,R=this.shapes.length,I,B,U=this.rd.v;if(U!==0){var V,X;for(C=0;C<R;C+=1){if(V=this.shapes[C],X=V.localShapeCollection,!(!V.shape._mdf&&!this._mdf&&!A))for(X.releaseShapes(),V.shape._mdf=!0,E=V.shape.paths.shapes,B=V.shape.paths._length,I=0;I<B;I+=1)X.addShape(this.processPath(E[I],U));V.shape.paths=V.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(A,E){return Math.abs(A-E)*1e5<=Math.min(Math.abs(A),Math.abs(E))}function floatZero(A){return Math.abs(A)<=1e-5}function lerp(A,E,C){return A*(1-C)+E*C}function lerpPoint(A,E,C){return[lerp(A[0],E[0],C),lerp(A[1],E[1],C)]}function quadRoots(A,E,C){if(A===0)return[];var R=E*E-4*A*C;if(R<0)return[];var I=-E/(2*A);if(R===0)return[I];var B=Math.sqrt(R)/(2*A);return[I-B,I+B]}function polynomialCoefficients(A,E,C,R){return[-A+3*E-3*C+R,3*A-6*E+3*C,-3*A+3*E,A]}function singlePoint(A){return new PolynomialBezier(A,A,A,A,!1)}function PolynomialBezier(A,E,C,R,I){I&&pointEqual(A,E)&&(E=lerpPoint(A,R,1/3)),I&&pointEqual(C,R)&&(C=lerpPoint(A,R,2/3));var B=polynomialCoefficients(A[0],E[0],C[0],R[0]),U=polynomialCoefficients(A[1],E[1],C[1],R[1]);this.a=[B[0],U[0]],this.b=[B[1],U[1]],this.c=[B[2],U[2]],this.d=[B[3],U[3]],this.points=[A,E,C,R]}PolynomialBezier.prototype.point=function(A){return[((this.a[0]*A+this.b[0])*A+this.c[0])*A+this.d[0],((this.a[1]*A+this.b[1])*A+this.c[1])*A+this.d[1]]},PolynomialBezier.prototype.derivative=function(A){return[(3*A*this.a[0]+2*this.b[0])*A+this.c[0],(3*A*this.a[1]+2*this.b[1])*A+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(A){var E=this.derivative(A);return Math.atan2(E[1],E[0])},PolynomialBezier.prototype.normalAngle=function(A){var E=this.derivative(A);return Math.atan2(E[0],E[1])},PolynomialBezier.prototype.inflectionPoints=function(){var A=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(A))return[];var E=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/A,C=E*E-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/A;if(C<0)return[];var R=Math.sqrt(C);return floatZero(R)?R>0&&R<1?[E]:[]:[E-R,E+R].filter(function(I){return I>0&&I<1})},PolynomialBezier.prototype.split=function(A){if(A<=0)return[singlePoint(this.points[0]),this];if(A>=1)return[this,singlePoint(this.points[this.points.length-1])];var E=lerpPoint(this.points[0],this.points[1],A),C=lerpPoint(this.points[1],this.points[2],A),R=lerpPoint(this.points[2],this.points[3],A),I=lerpPoint(E,C,A),B=lerpPoint(C,R,A),U=lerpPoint(I,B,A);return[new PolynomialBezier(this.points[0],E,I,U,!0),new PolynomialBezier(U,B,R,this.points[3],!0)]};function extrema(A,E){var C=A.points[0][E],R=A.points[A.points.length-1][E];if(C>R){var I=R;R=C,C=I}for(var B=quadRoots(3*A.a[E],2*A.b[E],A.c[E]),U=0;U<B.length;U+=1)if(B[U]>0&&B[U]<1){var V=A.point(B[U])[E];V<C?C=V:V>R&&(R=V)}return{min:C,max:R}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var A=this.bounds();return{left:A.x.min,right:A.x.max,top:A.y.min,bottom:A.y.max,width:A.x.max-A.x.min,height:A.y.max-A.y.min,cx:(A.x.max+A.x.min)/2,cy:(A.y.max+A.y.min)/2}};function intersectData(A,E,C){var R=A.boundingBox();return{cx:R.cx,cy:R.cy,width:R.width,height:R.height,bez:A,t:(E+C)/2,t1:E,t2:C}}function splitData(A){var E=A.bez.split(.5);return[intersectData(E[0],A.t1,A.t),intersectData(E[1],A.t,A.t2)]}function boxIntersect(A,E){return Math.abs(A.cx-E.cx)*2<A.width+E.width&&Math.abs(A.cy-E.cy)*2<A.height+E.height}function intersectsImpl(A,E,C,R,I,B){if(boxIntersect(A,E)){if(C>=B||A.width<=R&&A.height<=R&&E.width<=R&&E.height<=R){I.push([A.t,E.t]);return}var U=splitData(A),V=splitData(E);intersectsImpl(U[0],V[0],C+1,R,I,B),intersectsImpl(U[0],V[1],C+1,R,I,B),intersectsImpl(U[1],V[0],C+1,R,I,B),intersectsImpl(U[1],V[1],C+1,R,I,B)}}PolynomialBezier.prototype.intersections=function(A,E,C){E===void 0&&(E=2),C===void 0&&(C=7);var R=[];return intersectsImpl(intersectData(this,0,1),intersectData(A,0,1),0,E,R,C),R},PolynomialBezier.shapeSegment=function(A,E){var C=(E+1)%A.length();return new PolynomialBezier(A.v[E],A.o[E],A.i[C],A.v[C],!0)},PolynomialBezier.shapeSegmentInverted=function(A,E){var C=(E+1)%A.length();return new PolynomialBezier(A.v[C],A.i[C],A.o[E],A.v[E],!0)};function crossProduct(A,E){return[A[1]*E[2]-A[2]*E[1],A[2]*E[0]-A[0]*E[2],A[0]*E[1]-A[1]*E[0]]}function lineIntersection(A,E,C,R){var I=[A[0],A[1],1],B=[E[0],E[1],1],U=[C[0],C[1],1],V=[R[0],R[1],1],X=crossProduct(crossProduct(I,B),crossProduct(U,V));return floatZero(X[2])?null:[X[0]/X[2],X[1]/X[2]]}function polarOffset(A,E,C){return[A[0]+Math.cos(E)*C,A[1]-Math.sin(E)*C]}function pointDistance(A,E){return Math.hypot(A[0]-E[0],A[1]-E[1])}function pointEqual(A,E){return floatEqual(A[0],E[0])&&floatEqual(A[1],E[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(A,E.s,0,null,this),this.frequency=PropertyFactory.getProp(A,E.r,0,null,this),this.pointsType=PropertyFactory.getProp(A,E.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(A,E,C,R,I,B,U){var V=C-Math.PI/2,X=C+Math.PI/2,K=E[0]+Math.cos(C)*R*I,J=E[1]-Math.sin(C)*R*I;A.setTripleAt(K,J,K+Math.cos(V)*B,J-Math.sin(V)*B,K+Math.cos(X)*U,J-Math.sin(X)*U,A.length())}function getPerpendicularVector(A,E){var C=[E[0]-A[0],E[1]-A[1]],R=-Math.PI*.5,I=[Math.cos(R)*C[0]-Math.sin(R)*C[1],Math.sin(R)*C[0]+Math.cos(R)*C[1]];return I}function getProjectingAngle(A,E){var C=E===0?A.length()-1:E-1,R=(E+1)%A.length(),I=A.v[C],B=A.v[R],U=getPerpendicularVector(I,B);return Math.atan2(0,1)-Math.atan2(U[1],U[0])}function zigZagCorner(A,E,C,R,I,B,U){var V=getProjectingAngle(E,C),X=E.v[C%E._length],K=E.v[C===0?E._length-1:C-1],J=E.v[(C+1)%E._length],Y=B===2?Math.sqrt(Math.pow(X[0]-K[0],2)+Math.pow(X[1]-K[1],2)):0,Z=B===2?Math.sqrt(Math.pow(X[0]-J[0],2)+Math.pow(X[1]-J[1],2)):0;setPoint(A,E.v[C%E._length],V,U,R,Z/((I+1)*2),Y/((I+1)*2))}function zigZagSegment(A,E,C,R,I,B){for(var U=0;U<R;U+=1){var V=(U+1)/(R+1),X=I===2?Math.sqrt(Math.pow(E.points[3][0]-E.points[0][0],2)+Math.pow(E.points[3][1]-E.points[0][1],2)):0,K=E.normalAngle(V),J=E.point(V);setPoint(A,J,K,B,C,X/((R+1)*2),X/((R+1)*2)),B=-B}return B}ZigZagModifier.prototype.processPath=function(A,E,C,R){var I=A._length,B=shapePool.newElement();if(B.c=A.c,A.c||(I-=1),I===0)return B;var U=-1,V=PolynomialBezier.shapeSegment(A,0);zigZagCorner(B,A,0,E,C,R,U);for(var X=0;X<I;X+=1)U=zigZagSegment(B,V,E,C,R,-U),X===I-1&&!A.c?V=null:V=PolynomialBezier.shapeSegment(A,(X+1)%I),zigZagCorner(B,A,X+1,E,C,R,U);return B},ZigZagModifier.prototype.processShapes=function(A){var E,C,R=this.shapes.length,I,B,U=this.amplitude.v,V=Math.max(0,Math.round(this.frequency.v)),X=this.pointsType.v;if(U!==0){var K,J;for(C=0;C<R;C+=1){if(K=this.shapes[C],J=K.localShapeCollection,!(!K.shape._mdf&&!this._mdf&&!A))for(J.releaseShapes(),K.shape._mdf=!0,E=K.shape.paths.shapes,B=K.shape.paths._length,I=0;I<B;I+=1)J.addShape(this.processPath(E[I],U,V,X));K.shape.paths=K.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(A,E,C){var R=Math.atan2(E[0]-A[0],E[1]-A[1]);return[polarOffset(A,R,C),polarOffset(E,R,C)]}function offsetSegment(A,E){var C,R,I,B,U,V,X;X=linearOffset(A.points[0],A.points[1],E),C=X[0],R=X[1],X=linearOffset(A.points[1],A.points[2],E),I=X[0],B=X[1],X=linearOffset(A.points[2],A.points[3],E),U=X[0],V=X[1];var K=lineIntersection(C,R,I,B);K===null&&(K=R);var J=lineIntersection(U,V,I,B);return J===null&&(J=U),new PolynomialBezier(C,K,J,V)}function joinLines(A,E,C,R,I){var B=E.points[3],U=C.points[0];if(R===3||pointEqual(B,U))return B;if(R===2){var V=-E.tangentAngle(1),X=-C.tangentAngle(0)+Math.PI,K=lineIntersection(B,polarOffset(B,V+Math.PI/2,100),U,polarOffset(U,V+Math.PI/2,100)),J=K?pointDistance(K,B):pointDistance(B,U)/2,Y=polarOffset(B,V,2*J*roundCorner);return A.setXYAt(Y[0],Y[1],"o",A.length()-1),Y=polarOffset(U,X,2*J*roundCorner),A.setTripleAt(U[0],U[1],U[0],U[1],Y[0],Y[1],A.length()),U}var Z=pointEqual(B,E.points[2])?E.points[0]:E.points[2],_e=pointEqual(U,C.points[1])?C.points[3]:C.points[1],xe=lineIntersection(Z,B,U,_e);return xe&&pointDistance(xe,B)<I?(A.setTripleAt(xe[0],xe[1],xe[0],xe[1],xe[0],xe[1],A.length()),xe):B}function getIntersection(A,E){var C=A.intersections(E);return C.length&&floatEqual(C[0][0],1)&&C.shift(),C.length?C[0]:null}function pruneSegmentIntersection(A,E){var C=A.slice(),R=E.slice(),I=getIntersection(A[A.length-1],E[0]);return I&&(C[A.length-1]=A[A.length-1].split(I[0])[0],R[0]=E[0].split(I[1])[1]),A.length>1&&E.length>1&&(I=getIntersection(A[0],E[E.length-1]),I)?[[A[0].split(I[0])[0]],[E[E.length-1].split(I[1])[1]]]:[C,R]}function pruneIntersections(A){for(var E,C=1;C<A.length;C+=1)E=pruneSegmentIntersection(A[C-1],A[C]),A[C-1]=E[0],A[C]=E[1];return A.length>1&&(E=pruneSegmentIntersection(A[A.length-1],A[0]),A[A.length-1]=E[0],A[0]=E[1]),A}function offsetSegmentSplit(A,E){var C=A.inflectionPoints(),R,I,B,U;if(C.length===0)return[offsetSegment(A,E)];if(C.length===1||floatEqual(C[1],1))return B=A.split(C[0]),R=B[0],I=B[1],[offsetSegment(R,E),offsetSegment(I,E)];B=A.split(C[0]),R=B[0];var V=(C[1]-C[0])/(1-C[0]);return B=B[1].split(V),U=B[0],I=B[1],[offsetSegment(R,E),offsetSegment(U,E),offsetSegment(I,E)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(A,E.a,0,null,this),this.miterLimit=PropertyFactory.getProp(A,E.ml,0,null,this),this.lineJoin=E.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(A,E,C,R){var I=shapePool.newElement();I.c=A.c;var B=A.length();A.c||(B-=1);var U,V,X,K=[];for(U=0;U<B;U+=1)X=PolynomialBezier.shapeSegment(A,U),K.push(offsetSegmentSplit(X,E));if(!A.c)for(U=B-1;U>=0;U-=1)X=PolynomialBezier.shapeSegmentInverted(A,U),K.push(offsetSegmentSplit(X,E));K=pruneIntersections(K);var J=null,Y=null;for(U=0;U<K.length;U+=1){var Z=K[U];for(Y&&(J=joinLines(I,Y,Z[0],C,R)),Y=Z[Z.length-1],V=0;V<Z.length;V+=1)X=Z[V],J&&pointEqual(X.points[0],J)?I.setXYAt(X.points[1][0],X.points[1][1],"o",I.length()-1):I.setTripleAt(X.points[0][0],X.points[0][1],X.points[1][0],X.points[1][1],X.points[0][0],X.points[0][1],I.length()),I.setTripleAt(X.points[3][0],X.points[3][1],X.points[3][0],X.points[3][1],X.points[2][0],X.points[2][1],I.length()),J=X.points[3]}return K.length&&joinLines(I,Y,K[0][0],C,R),I},OffsetPathModifier.prototype.processShapes=function(A){var E,C,R=this.shapes.length,I,B,U=this.amount.v,V=this.miterLimit.v,X=this.lineJoin;if(U!==0){var K,J;for(C=0;C<R;C+=1){if(K=this.shapes[C],J=K.localShapeCollection,!(!K.shape._mdf&&!this._mdf&&!A))for(J.releaseShapes(),K.shape._mdf=!0,E=K.shape.paths.shapes,B=K.shape.paths._length,I=0;I<B;I+=1)J.addShape(this.processPath(E[I],U,X,V));K.shape.paths=K.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(A){for(var E=A.fStyle?A.fStyle.split(" "):[],C="normal",R="normal",I=E.length,B,U=0;U<I;U+=1)switch(B=E[U].toLowerCase(),B){case"italic":R="italic";break;case"bold":C="700";break;case"black":C="900";break;case"medium":C="500";break;case"regular":case"normal":C="400";break;case"light":case"thin":C="200";break}return{style:R,weight:A.fWeight||C}}var FontManager=function(){var A=5e3,E={w:0,size:0,shapes:[],data:{shapes:[]}},C=[];C=C.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var R=127988,I=917631,B=917601,U=917626,V=65039,X=8205,K=127462,J=127487,Y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function Z(Oe){var $e=Oe.split(","),Re,Me=$e.length,Ne=[];for(Re=0;Re<Me;Re+=1)$e[Re]!=="sans-serif"&&$e[Re]!=="monospace"&&Ne.push($e[Re]);return Ne.join(",")}function _e(Oe,$e){var Re=createTag("span");Re.setAttribute("aria-hidden",!0),Re.style.fontFamily=$e;var Me=createTag("span");Me.innerText="giItT1WQy@!-/#",Re.style.position="absolute",Re.style.left="-10000px",Re.style.top="-10000px",Re.style.fontSize="300px",Re.style.fontVariant="normal",Re.style.fontStyle="normal",Re.style.fontWeight="normal",Re.style.letterSpacing="0",Re.appendChild(Me),document.body.appendChild(Re);var Ne=Me.offsetWidth;return Me.style.fontFamily=Z(Oe)+", "+$e,{node:Me,w:Ne,parent:Re}}function xe(){var Oe,$e=this.fonts.length,Re,Me,Ne=$e;for(Oe=0;Oe<$e;Oe+=1)this.fonts[Oe].loaded?Ne-=1:this.fonts[Oe].fOrigin==="n"||this.fonts[Oe].origin===0?this.fonts[Oe].loaded=!0:(Re=this.fonts[Oe].monoCase.node,Me=this.fonts[Oe].monoCase.w,Re.offsetWidth!==Me?(Ne-=1,this.fonts[Oe].loaded=!0):(Re=this.fonts[Oe].sansCase.node,Me=this.fonts[Oe].sansCase.w,Re.offsetWidth!==Me&&(Ne-=1,this.fonts[Oe].loaded=!0)),this.fonts[Oe].loaded&&(this.fonts[Oe].sansCase.parent.parentNode.removeChild(this.fonts[Oe].sansCase.parent),this.fonts[Oe].monoCase.parent.parentNode.removeChild(this.fonts[Oe].monoCase.parent)));Ne!==0&&Date.now()-this.initTime<A?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Se(Oe,$e){var Re=document.body&&$e?"svg":"canvas",Me,Ne=getFontProperties(Oe);if(Re==="svg"){var De=createNS("text");De.style.fontSize="100px",De.setAttribute("font-family",Oe.fFamily),De.setAttribute("font-style",Ne.style),De.setAttribute("font-weight",Ne.weight),De.textContent="1",Oe.fClass?(De.style.fontFamily="inherit",De.setAttribute("class",Oe.fClass)):De.style.fontFamily=Oe.fFamily,$e.appendChild(De),Me=De}else{var Xe=new OffscreenCanvas(500,500).getContext("2d");Xe.font=Ne.style+" "+Ne.weight+" 100px "+Oe.fFamily,Me=Xe}function qe(Ye){return Re==="svg"?(Me.textContent=Ye,Me.getComputedTextLength()):Me.measureText(Ye).width}return{measureText:qe}}function Pe(Oe,$e){if(!Oe){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Oe.list;return}if(!document.body){this.isLoaded=!0,Oe.list.forEach(function(nt){nt.helper=Se(nt),nt.cache={}}),this.fonts=Oe.list;return}var Re=Oe.list,Me,Ne=Re.length,De=Ne;for(Me=0;Me<Ne;Me+=1){var Xe=!0,qe,Ye;if(Re[Me].loaded=!1,Re[Me].monoCase=_e(Re[Me].fFamily,"monospace"),Re[Me].sansCase=_e(Re[Me].fFamily,"sans-serif"),!Re[Me].fPath)Re[Me].loaded=!0,De-=1;else if(Re[Me].fOrigin==="p"||Re[Me].origin===3){if(qe=document.querySelectorAll('style[f-forigin="p"][f-family="'+Re[Me].fFamily+'"], style[f-origin="3"][f-family="'+Re[Me].fFamily+'"]'),qe.length>0&&(Xe=!1),Xe){var Je=createTag("style");Je.setAttribute("f-forigin",Re[Me].fOrigin),Je.setAttribute("f-origin",Re[Me].origin),Je.setAttribute("f-family",Re[Me].fFamily),Je.type="text/css",Je.innerText="@font-face {font-family: "+Re[Me].fFamily+"; font-style: normal; src: url('"+Re[Me].fPath+"');}",$e.appendChild(Je)}}else if(Re[Me].fOrigin==="g"||Re[Me].origin===1){for(qe=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ye=0;Ye<qe.length;Ye+=1)qe[Ye].href.indexOf(Re[Me].fPath)!==-1&&(Xe=!1);if(Xe){var Ke=createTag("link");Ke.setAttribute("f-forigin",Re[Me].fOrigin),Ke.setAttribute("f-origin",Re[Me].origin),Ke.type="text/css",Ke.rel="stylesheet",Ke.href=Re[Me].fPath,document.body.appendChild(Ke)}}else if(Re[Me].fOrigin==="t"||Re[Me].origin===2){for(qe=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ye=0;Ye<qe.length;Ye+=1)Re[Me].fPath===qe[Ye].src&&(Xe=!1);if(Xe){var rt=createTag("link");rt.setAttribute("f-forigin",Re[Me].fOrigin),rt.setAttribute("f-origin",Re[Me].origin),rt.setAttribute("rel","stylesheet"),rt.setAttribute("href",Re[Me].fPath),$e.appendChild(rt)}}Re[Me].helper=Se(Re[Me],$e),Re[Me].cache={},this.fonts.push(Re[Me])}De===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ee(Oe){if(Oe){this.chars||(this.chars=[]);var $e,Re=Oe.length,Me,Ne=this.chars.length,De;for($e=0;$e<Re;$e+=1){for(Me=0,De=!1;Me<Ne;)this.chars[Me].style===Oe[$e].style&&this.chars[Me].fFamily===Oe[$e].fFamily&&this.chars[Me].ch===Oe[$e].ch&&(De=!0),Me+=1;De||(this.chars.push(Oe[$e]),Ne+=1)}}}function Ae(Oe,$e,Re){for(var Me=0,Ne=this.chars.length;Me<Ne;){if(this.chars[Me].ch===Oe&&this.chars[Me].style===$e&&this.chars[Me].fFamily===Re)return this.chars[Me];Me+=1}return(typeof Oe=="string"&&Oe.charCodeAt(0)!==13||!Oe)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Oe,$e,Re)),E}function Te(Oe,$e,Re){var Me=this.getFontByName($e),Ne=Oe;if(!Me.cache[Ne]){var De=Me.helper;if(Oe===" "){var Xe=De.measureText("|"+Oe+"|"),qe=De.measureText("||");Me.cache[Ne]=(Xe-qe)/100}else Me.cache[Ne]=De.measureText(Oe)/100}return Me.cache[Ne]*Re}function we(Oe){for(var $e=0,Re=this.fonts.length;$e<Re;){if(this.fonts[$e].fName===Oe)return this.fonts[$e];$e+=1}return this.fonts[0]}function Ie(Oe){var $e=0,Re=Oe.charCodeAt(0);if(Re>=55296&&Re<=56319){var Me=Oe.charCodeAt(1);Me>=56320&&Me<=57343&&($e=(Re-55296)*1024+Me-56320+65536)}return $e}function Fe(Oe,$e){var Re=Oe.toString(16)+$e.toString(16);return Y.indexOf(Re)!==-1}function ke(Oe){return Oe===X}function Le(Oe){return Oe===V}function Ge(Oe){var $e=Ie(Oe);return $e>=K&&$e<=J}function He(Oe){return Ge(Oe.substr(0,2))&&Ge(Oe.substr(2,2))}function Be(Oe){return C.indexOf(Oe)!==-1}function je(Oe,$e){var Re=Ie(Oe.substr($e,2));if(Re!==R)return!1;var Me=0;for($e+=2;Me<5;){if(Re=Ie(Oe.substr($e,2)),Re<B||Re>U)return!1;Me+=1,$e+=2}return Ie(Oe.substr($e,2))===I}function Ue(){this.isLoaded=!0}var ze=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ze.isModifier=Fe,ze.isZeroWidthJoiner=ke,ze.isFlagEmoji=He,ze.isRegionalCode=Ge,ze.isCombinedCharacter=Be,ze.isRegionalFlag=je,ze.isVariationSelector=Le,ze.BLACK_FLAG_CODE_POINT=R;var Ve={addChars:Ee,addFonts:Pe,getCharData:Ae,getFontByName:we,measureText:Te,checkLoadedFonts:xe,setIsLoaded:Ue};return ze.prototype=Ve,ze}();function SlotManager(A){this.animationData=A}SlotManager.prototype.getProp=function(A){return this.animationData.slots&&this.animationData.slots[A.sid]?Object.assign(A,this.animationData.slots[A.sid].p):A};function slotFactory(A){return new SlotManager(A)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(E){this.renderableComponents.indexOf(E)===-1&&this.renderableComponents.push(E)},removeRenderableComponent:function(E){this.renderableComponents.indexOf(E)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(E),1)},prepareRenderableFrame:function(E){this.checkLayerLimits(E)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(E){this.data.ip-this.data.st<=E&&this.data.op-this.data.st>E?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var E,C=this.renderableComponents.length;for(E=0;E<C;E+=1)this.renderableComponents[E].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var A={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(E){return A[E]||""}}();function SliderEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function AngleEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function ColorEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,1,0,C)}function PointEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,1,0,C)}function LayerIndexEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function MaskIndexEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function CheckboxEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function NoValueEffect(){this.p={}}function EffectsManager(A,E){var C=A.ef||[];this.effectElements=[];var R,I=C.length,B;for(R=0;R<I;R+=1)B=new GroupEffect(C[R],E),this.effectElements.push(B)}function GroupEffect(A,E){this.init(A,E)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(A,E){this.data=A,this.effectElements=[],this.initDynamicPropertyContainer(E);var C,R=this.data.ef.length,I,B=this.data.ef;for(C=0;C<R;C+=1){switch(I=null,B[C].ty){case 0:I=new SliderEffect(B[C],E,this);break;case 1:I=new AngleEffect(B[C],E,this);break;case 2:I=new ColorEffect(B[C],E,this);break;case 3:I=new PointEffect(B[C],E,this);break;case 4:case 7:I=new CheckboxEffect(B[C],E,this);break;case 10:I=new LayerIndexEffect(B[C],E,this);break;case 11:I=new MaskIndexEffect(B[C],E,this);break;case 5:I=new EffectsManager(B[C],E);break;default:I=new NoValueEffect(B[C]);break}I&&this.effectElements.push(I)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var E=0,C=this.data.masksProperties.length;E<C;){if(this.data.masksProperties[E].mode!=="n"&&this.data.masksProperties[E].cl!==!1)return!0;E+=1}return!1},initExpressions:function(){var E=getExpressionInterfaces();if(E){var C=E("layer"),R=E("effects"),I=E("shape"),B=E("text"),U=E("comp");this.layerInterface=C(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var V=R.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(V),this.data.ty===0||this.data.xt?this.compInterface=U(this):this.data.ty===4?(this.layerInterface.shapeInterface=I(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=B(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var E=getBlendMode(this.data.bm),C=this.baseElement||this.layerElement;C.style["mix-blend-mode"]=E},initBaseData:function(E,C,R){this.globalData=C,this.comp=R,this.data=E,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(E,C){var R,I=this.dynamicProperties.length;for(R=0;R<I;R+=1)(C||this._isParent&&this.dynamicProperties[R].propType==="transform")&&(this.dynamicProperties[R].getValue(),this.dynamicProperties[R]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(E){this.dynamicProperties.indexOf(E)===-1&&this.dynamicProperties.push(E)}};function FootageElement(A,E,C){this.initFrame(),this.initRenderable(),this.assetData=E.getAssetData(A.refId),this.footageData=E.imageLoader.getAsset(this.assetData),this.initBaseData(A,E,C)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var A=getExpressionInterfaces();if(A){var E=A("footage");this.layerInterface=E(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(A,E,C){this.initFrame(),this.initRenderable(),this.assetData=E.getAssetData(A.refId),this.initBaseData(A,E,C),this._isPlaying=!1,this._canPlay=!1;var R=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(R),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=A.tm?PropertyFactory.getProp(this,A.tm,0,E.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,A.au&&A.au.lv?A.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(A){if(this.prepareRenderableFrame(A,!0),this.prepareProperties(A,!0),this.tm._placeholder)this._currentTime=A/this.data.sr;else{var E=this.tm.v;this._currentTime=E}this._volume=this.lv.v[0];var C=this._volume*this._volumeMultiplier;this._previousVolume!==C&&(this._previousVolume=C,this.audio.volume(C))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(A){this.audio.rate(A)},AudioElement.prototype.volume=function(A){this._volumeMultiplier=A,this._previousVolume=A*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(A){var E,C=this.layers.length,R;for(this.completeLayers=!0,E=C-1;E>=0;E-=1)this.elements[E]||(R=this.layers[E],R.ip-R.st<=A-this.layers[E].st&&R.op-R.st>A-this.layers[E].st&&this.buildItem(E)),this.completeLayers=this.elements[E]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(A){switch(A.ty){case 2:return this.createImage(A);case 0:return this.createComp(A);case 1:return this.createSolid(A);case 3:return this.createNull(A);case 4:return this.createShape(A);case 5:return this.createText(A);case 6:return this.createAudio(A);case 13:return this.createCamera(A);case 15:return this.createFootage(A);default:return this.createNull(A)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(A){return new AudioElement(A,this.globalData,this)},BaseRenderer.prototype.createFootage=function(A){return new FootageElement(A,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var A,E=this.layers.length;for(A=0;A<E;A+=1)this.buildItem(A);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(A){this.completeLayers=!1;var E,C=A.length,R,I=this.layers.length;for(E=0;E<C;E+=1)for(R=0;R<I;){if(this.layers[R].id===A[E].id){this.layers[R]=A[E];break}R+=1}},BaseRenderer.prototype.setProjectInterface=function(A){this.globalData.projectInterface=A},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(A,E,C){for(var R=this.elements,I=this.layers,B=0,U=I.length;B<U;)I[B].ind==E&&(!R[B]||R[B]===!0?(this.buildItem(B),this.addPendingElement(A)):(C.push(R[B]),R[B].setAsParent(),I[B].parent!==void 0?this.buildElementParenting(A,I[B].parent,C):A.setHierarchy(C))),B+=1},BaseRenderer.prototype.addPendingElement=function(A){this.pendingElements.push(A)},BaseRenderer.prototype.searchExtraCompositions=function(A){var E,C=A.length;for(E=0;E<C;E+=1)if(A[E].xt){var R=this.createComp(A[E]);R.initExpressions(),this.globalData.projectInterface.registerComposition(R)}},BaseRenderer.prototype.getElementById=function(A){var E,C=this.elements.length;for(E=0;E<C;E+=1)if(this.elements[E].data.ind===A)return this.elements[E];return null},BaseRenderer.prototype.getElementByPath=function(A){var E=A.shift(),C;if(typeof E=="number")C=this.elements[E];else{var R,I=this.elements.length;for(R=0;R<I;R+=1)if(this.elements[R].data.nm===E){C=this.elements[R];break}}return A.length===0?C:C.getElementByPath(A)},BaseRenderer.prototype.setupGlobalData=function(A,E){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(A),this.globalData.fontManager.addChars(A.chars),this.globalData.fontManager.addFonts(A.fonts,E),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=A.fr,this.globalData.nm=A.nm,this.globalData.compSize={w:A.w,h:A.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var E=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:E,localMat:E,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var E,C=this.finalTransform.mat,R=0,I=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;R<I;){if(this.hierarchy[R].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}R+=1}if(this.finalTransform._matMdf)for(E=this.finalTransform.mProp.v.props,C.cloneFromProps(E),R=0;R<I;R+=1)C.multiply(this.hierarchy[R].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var E=0,C=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;E<C;)this.localTransforms[E]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[E]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),E+=1;if(this.finalTransform._localMatMdf){var R=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(R),E=1;E<C;E+=1){var I=this.localTransforms[E].matrix;R.multiply(I)}R.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var B=this.finalTransform.localOpacity;for(E=0;E<C;E+=1)B*=this.localTransforms[E].opacity*.01;this.finalTransform.localOpacity=B}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var E=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(E.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var C=0,R=E.length;for(C=0;C<R;C+=1)this.localTransforms.push(E[C])}}},globalToLocal:function(E){var C=[];C.push(this.finalTransform);for(var R=!0,I=this.comp;R;)I.finalTransform?(I.data.hasMask&&C.splice(0,0,I.finalTransform),I=I.comp):R=!1;var B,U=C.length,V;for(B=0;B<U;B+=1)V=C[B].mat.applyToPointArray(0,0,0),E=[E[0]-V[0],E[1]-V[1],0];return E},mHelper:new Matrix};function MaskElement(A,E,C){this.data=A,this.element=E,this.globalData=C,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var R=this.globalData.defs,I,B=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(B),this.solidPath="";var U,V=this.masksProperties,X=0,K=[],J,Y,Z=createElementID(),_e,xe,Se,Pe,Ee="clipPath",Ae="clip-path";for(I=0;I<B;I+=1)if((V[I].mode!=="a"&&V[I].mode!=="n"||V[I].inv||V[I].o.k!==100||V[I].o.x)&&(Ee="mask",Ae="mask"),(V[I].mode==="s"||V[I].mode==="i")&&X===0?(_e=createNS("rect"),_e.setAttribute("fill","#ffffff"),_e.setAttribute("width",this.element.comp.data.w||0),_e.setAttribute("height",this.element.comp.data.h||0),K.push(_e)):_e=null,U=createNS("path"),V[I].mode==="n")this.viewData[I]={op:PropertyFactory.getProp(this.element,V[I].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,V[I],3),elem:U,lastPath:""},R.appendChild(U);else{X+=1,U.setAttribute("fill",V[I].mode==="s"?"#000000":"#ffffff"),U.setAttribute("clip-rule","nonzero");var Te;if(V[I].x.k!==0?(Ee="mask",Ae="mask",Pe=PropertyFactory.getProp(this.element,V[I].x,0,null,this.element),Te=createElementID(),xe=createNS("filter"),xe.setAttribute("id",Te),Se=createNS("feMorphology"),Se.setAttribute("operator","erode"),Se.setAttribute("in","SourceGraphic"),Se.setAttribute("radius","0"),xe.appendChild(Se),R.appendChild(xe),U.setAttribute("stroke",V[I].mode==="s"?"#000000":"#ffffff")):(Se=null,Pe=null),this.storedData[I]={elem:U,x:Pe,expan:Se,lastPath:"",lastOperator:"",filterId:Te,lastRadius:0},V[I].mode==="i"){Y=K.length;var we=createNS("g");for(J=0;J<Y;J+=1)we.appendChild(K[J]);var Ie=createNS("mask");Ie.setAttribute("mask-type","alpha"),Ie.setAttribute("id",Z+"_"+X),Ie.appendChild(U),R.appendChild(Ie),we.setAttribute("mask","url("+getLocationHref()+"#"+Z+"_"+X+")"),K.length=0,K.push(we)}else K.push(U);V[I].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[I]={elem:U,lastPath:"",op:PropertyFactory.getProp(this.element,V[I].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,V[I],3),invRect:_e},this.viewData[I].prop.k||this.drawPath(V[I],this.viewData[I].prop.v,this.viewData[I])}for(this.maskElement=createNS(Ee),B=K.length,I=0;I<B;I+=1)this.maskElement.appendChild(K[I]);X>0&&(this.maskElement.setAttribute("id",Z),this.element.maskedElement.setAttribute(Ae,"url("+getLocationHref()+"#"+Z+")"),R.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(A){return this.viewData[A].prop},MaskElement.prototype.renderFrame=function(A){var E=this.element.finalTransform.mat,C,R=this.masksProperties.length;for(C=0;C<R;C+=1)if((this.viewData[C].prop._mdf||A)&&this.drawPath(this.masksProperties[C],this.viewData[C].prop.v,this.viewData[C]),(this.viewData[C].op._mdf||A)&&this.viewData[C].elem.setAttribute("fill-opacity",this.viewData[C].op.v),this.masksProperties[C].mode!=="n"&&(this.viewData[C].invRect&&(this.element.finalTransform.mProp._mdf||A)&&this.viewData[C].invRect.setAttribute("transform",E.getInverseMatrix().to2dCSS()),this.storedData[C].x&&(this.storedData[C].x._mdf||A))){var I=this.storedData[C].expan;this.storedData[C].x.v<0?(this.storedData[C].lastOperator!=="erode"&&(this.storedData[C].lastOperator="erode",this.storedData[C].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[C].filterId+")")),I.setAttribute("radius",-this.storedData[C].x.v)):(this.storedData[C].lastOperator!=="dilate"&&(this.storedData[C].lastOperator="dilate",this.storedData[C].elem.setAttribute("filter",null)),this.storedData[C].elem.setAttribute("stroke-width",this.storedData[C].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var A="M0,0 ";return A+=" h"+this.globalData.compSize.w,A+=" v"+this.globalData.compSize.h,A+=" h-"+this.globalData.compSize.w,A+=" v-"+this.globalData.compSize.h+" ",A},MaskElement.prototype.drawPath=function(A,E,C){var R=" M"+E.v[0][0]+","+E.v[0][1],I,B;for(B=E._length,I=1;I<B;I+=1)R+=" C"+E.o[I-1][0]+","+E.o[I-1][1]+" "+E.i[I][0]+","+E.i[I][1]+" "+E.v[I][0]+","+E.v[I][1];if(E.c&&B>1&&(R+=" C"+E.o[I-1][0]+","+E.o[I-1][1]+" "+E.i[0][0]+","+E.i[0][1]+" "+E.v[0][0]+","+E.v[0][1]),C.lastPath!==R){var U="";C.elem&&(E.c&&(U=A.inv?this.solidPath+R:R),C.elem.setAttribute("d",U)),C.lastPath=R}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var A={};A.createFilter=E,A.createAlphaToLuminanceFilter=C;function E(R,I){var B=createNS("filter");return B.setAttribute("id",R),I!==!0&&(B.setAttribute("filterUnits","objectBoundingBox"),B.setAttribute("x","0%"),B.setAttribute("y","0%"),B.setAttribute("width","100%"),B.setAttribute("height","100%")),B}function C(){var R=createNS("feColorMatrix");return R.setAttribute("type","matrix"),R.setAttribute("color-interpolation-filters","sRGB"),R.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),R}return A}(),featureSupport=function(){var A={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(A.maskType=!1),/firefox/i.test(navigator.userAgent)&&(A.svgLumaHidden=!1),A}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(A){var E,C="SourceGraphic",R=A.data.ef?A.data.ef.length:0,I=createElementID(),B=filtersFactory.createFilter(I,!0),U=0;this.filters=[];var V;for(E=0;E<R;E+=1){V=null;var X=A.data.ef[E].ty;if(registeredEffects$1[X]){var K=registeredEffects$1[X].effect;V=new K(B,A.effectsManager.effectElements[E],A,idPrefix+U,C),C=idPrefix+U,registeredEffects$1[X].countsAsEffect&&(U+=1)}V&&this.filters.push(V)}U&&(A.globalData.defs.appendChild(B),A.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+I+")")),this.filters.length&&A.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(A){var E,C=this.filters.length;for(E=0;E<C;E+=1)this.filters[E].renderFrame(A)},SVGEffects.prototype.getEffects=function(A){var E,C=this.filters.length,R=[];for(E=0;E<C;E+=1)this.filters[E].type===A&&R.push(this.filters[E]);return R};function registerEffect$1(A,E,C){registeredEffects$1[A]={effect:E,countsAsEffect:C}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var E=null;if(this.data.td){this.matteMasks={};var C=createNS("g");C.setAttribute("id",this.layerId),C.appendChild(this.layerElement),E=C,this.globalData.defs.appendChild(C)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),E=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var R=createNS("clipPath"),I=createNS("path");I.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var B=createElementID();if(R.setAttribute("id",B),R.appendChild(I),this.globalData.defs.appendChild(R),this.checkMasks()){var U=createNS("g");U.setAttribute("clip-path","url("+getLocationHref()+"#"+B+")"),U.appendChild(this.layerElement),this.transformedElement=U,E?E.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+B+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(E){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[E]){var C=this.layerId+"_"+E,R,I,B,U;if(E===1||E===3){var V=createNS("mask");V.setAttribute("id",C),V.setAttribute("mask-type",E===3?"luminance":"alpha"),B=createNS("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),V.appendChild(B),this.globalData.defs.appendChild(V),!featureSupport.maskType&&E===1&&(V.setAttribute("mask-type","luminance"),R=createElementID(),I=filtersFactory.createFilter(R),this.globalData.defs.appendChild(I),I.appendChild(filtersFactory.createAlphaToLuminanceFilter()),U=createNS("g"),U.appendChild(B),V.appendChild(U),U.setAttribute("filter","url("+getLocationHref()+"#"+R+")"))}else if(E===2){var X=createNS("mask");X.setAttribute("id",C),X.setAttribute("mask-type","alpha");var K=createNS("g");X.appendChild(K),R=createElementID(),I=filtersFactory.createFilter(R);var J=createNS("feComponentTransfer");J.setAttribute("in","SourceGraphic"),I.appendChild(J);var Y=createNS("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),J.appendChild(Y),this.globalData.defs.appendChild(I);var Z=createNS("rect");Z.setAttribute("width",this.comp.data.w),Z.setAttribute("height",this.comp.data.h),Z.setAttribute("x","0"),Z.setAttribute("y","0"),Z.setAttribute("fill","#ffffff"),Z.setAttribute("opacity","0"),K.setAttribute("filter","url("+getLocationHref()+"#"+R+")"),K.appendChild(Z),B=createNS("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),K.appendChild(B),featureSupport.maskType||(X.setAttribute("mask-type","luminance"),I.appendChild(filtersFactory.createAlphaToLuminanceFilter()),U=createNS("g"),K.appendChild(Z),U.appendChild(this.layerElement),K.appendChild(U)),this.globalData.defs.appendChild(X)}this.matteMasks[E]=C}return this.matteMasks[E]},setMatte:function(E){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+E+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(E){this.hierarchy=E},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var A={initElement:function(C,R,I){this.initFrame(),this.initBaseData(C,R,I),this.initTransform(C,R,I),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var C=this.baseElement||this.layerElement;C.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var C=this.baseElement||this.layerElement;C.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(C){this._mdf=!1,this.prepareRenderableFrame(C),this.prepareProperties(C,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(A)],RenderableDOMElement)})();function IImageElement(A,E,C){this.assetData=E.getAssetData(A.refId),this.assetData&&this.assetData.sid&&(this.assetData=E.slotManager.getProp(this.assetData)),this.initElement(A,E,C),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var A=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",A),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(A,E){this.elem=A,this.pos=E}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(E){var C,R=this.shapeModifiers.length;for(C=0;C<R;C+=1)this.shapeModifiers[C].addShape(E)},isShapeInAnimatedModifiers:function(E){for(var C=0,R=this.shapeModifiers.length;C<R;)if(this.shapeModifiers[C].isAnimatedWithShape(E))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var E,C=this.shapes.length;for(E=0;E<C;E+=1)this.shapes[E].sh.reset();C=this.shapeModifiers.length;var R;for(E=C-1;E>=0&&(R=this.shapeModifiers[E].processShapes(this._isFirstFrame),!R);E-=1);}},searchProcessedElement:function(E){for(var C=this.processedElements,R=0,I=C.length;R<I;){if(C[R].elem===E)return C[R].pos;R+=1}return 0},addProcessedElement:function(E,C){for(var R=this.processedElements,I=R.length;I;)if(I-=1,R[I].elem===E){R[I].pos=C;return}R.push(new ProcessedElement(E,C))},prepareFrame:function(E){this.prepareRenderableFrame(E),this.prepareProperties(E,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(A,E,C){this.caches=[],this.styles=[],this.transformers=A,this.lStr="",this.sh=C,this.lvl=E,this._isAnimated=!!C.k;for(var R=0,I=A.length;R<I;){if(A[R].mProps.dynamicProperties.length){this._isAnimated=!0;break}R+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(A,E){this.data=A,this.type=A.ty,this.d="",this.lvl=E,this._mdf=!1,this.closed=A.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(A,E,C,R){this.elem=A,this.frameId=-1,this.dataProps=createSizedArray(E.length),this.renderer=C,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",E.length?E.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(R);var I,B=E.length||0,U;for(I=0;I<B;I+=1)U=PropertyFactory.getProp(A,E[I].v,0,0,this),this.k=U.k||this.k,this.dataProps[I]={n:E[I].n,p:U};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(A){if(!(this.elem.globalData.frameId===this.frameId&&!A)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||A,this._mdf)){var E=0,C=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),E=0;E<C;E+=1)this.dataProps[E].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[E].p.v:this.dashArray[E]=this.dataProps[E].p.v:this.dashoffset[0]=this.dataProps[E].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(A,E.o,0,.01,this),this.w=PropertyFactory.getProp(A,E.w,0,null,this),this.d=new DashProperty(A,E.d||{},"svg",this),this.c=PropertyFactory.getProp(A,E.c,1,255,this),this.style=C,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(A,E.o,0,.01,this),this.c=PropertyFactory.getProp(A,E.c,1,255,this),this.style=C}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.style=C}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(A,E,C){this.data=E,this.c=createTypedArray("uint8c",E.p*4);var R=E.k.k[0].s?E.k.k[0].s.length-E.p*4:E.k.k.length-E.p*4;this.o=createTypedArray("float32",R),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=R,this.initDynamicPropertyContainer(C),this.prop=PropertyFactory.getProp(A,E.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(A,E){for(var C=0,R=this.o.length/2,I;C<R;){if(I=Math.abs(A[C*4]-A[E*4+C*2]),I>.01)return!1;C+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var A=0,E=this.data.k.k.length;A<E;){if(!this.comparePoints(this.data.k.k[A].s,this.data.p))return!1;A+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(A){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||A){var E,C=this.data.p*4,R,I;for(E=0;E<C;E+=1)R=E%4===0?100:255,I=Math.round(this.prop.v[E]*R),this.c[E]!==I&&(this.c[E]=I,this._cmdf=!A);if(this.o.length)for(C=this.prop.v.length,E=this.data.p*4;E<C;E+=1)R=E%2===0?100:1,I=E%2===0?Math.round(this.prop.v[E]*100):this.prop.v[E],this.o[E-this.data.p*4]!==I&&(this.o[E-this.data.p*4]=I,this._omdf=!A);this._mdf=!A}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.initGradientData(A,E,C)}SVGGradientFillStyleData.prototype.initGradientData=function(A,E,C){this.o=PropertyFactory.getProp(A,E.o,0,.01,this),this.s=PropertyFactory.getProp(A,E.s,1,null,this),this.e=PropertyFactory.getProp(A,E.e,1,null,this),this.h=PropertyFactory.getProp(A,E.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(A,E.a||{k:0},0,degToRads,this),this.g=new GradientProperty(A,E.g,this),this.style=C,this.stops=[],this.setGradientData(C.pElem,E),this.setGradientOpacity(E,C),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(A,E){var C=createElementID(),R=createNS(E.t===1?"linearGradient":"radialGradient");R.setAttribute("id",C),R.setAttribute("spreadMethod","pad"),R.setAttribute("gradientUnits","userSpaceOnUse");var I=[],B,U,V;for(V=E.g.p*4,U=0;U<V;U+=4)B=createNS("stop"),R.appendChild(B),I.push(B);A.setAttribute(E.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+C+")"),this.gf=R,this.cst=I},SVGGradientFillStyleData.prototype.setGradientOpacity=function(A,E){if(this.g._hasOpacity&&!this.g._collapsable){var C,R,I,B=createNS("mask"),U=createNS("path");B.appendChild(U);var V=createElementID(),X=createElementID();B.setAttribute("id",X);var K=createNS(A.t===1?"linearGradient":"radialGradient");K.setAttribute("id",V),K.setAttribute("spreadMethod","pad"),K.setAttribute("gradientUnits","userSpaceOnUse"),I=A.g.k.k[0].s?A.g.k.k[0].s.length:A.g.k.k.length;var J=this.stops;for(R=A.g.p*4;R<I;R+=2)C=createNS("stop"),C.setAttribute("stop-color","rgb(255,255,255)"),K.appendChild(C),J.push(C);U.setAttribute(A.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+V+")"),A.ty==="gs"&&(U.setAttribute("stroke-linecap",lineCapEnum[A.lc||2]),U.setAttribute("stroke-linejoin",lineJoinEnum[A.lj||2]),A.lj===1&&U.setAttribute("stroke-miterlimit",A.ml)),this.of=K,this.ms=B,this.ost=J,this.maskId=X,E.msElem=U}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(A,E.w,0,null,this),this.d=new DashProperty(A,E.d||{},"svg",this),this.initGradientData(A,E,C),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(A,E,C){this.transform={mProps:A,op:E,container:C},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(E,C,R,I){if(C===0)return"";var B=E.o,U=E.i,V=E.v,X,K=" M"+I.applyToPointStringified(V[0][0],V[0][1]);for(X=1;X<C;X+=1)K+=" C"+I.applyToPointStringified(B[X-1][0],B[X-1][1])+" "+I.applyToPointStringified(U[X][0],U[X][1])+" "+I.applyToPointStringified(V[X][0],V[X][1]);return R&&C&&(K+=" C"+I.applyToPointStringified(B[X-1][0],B[X-1][1])+" "+I.applyToPointStringified(U[0][0],U[0][1])+" "+I.applyToPointStringified(V[0][0],V[0][1]),K+="z"),K},SVGElementsRenderer=function(){var A=new Matrix,E=new Matrix,C={createRenderFunction:R};function R(Y){switch(Y.ty){case"fl":return V;case"gf":return K;case"gs":return X;case"st":return J;case"sh":case"el":case"rc":case"sr":return U;case"tr":return I;case"no":return B;default:return null}}function I(Y,Z,_e){(_e||Z.transform.op._mdf)&&Z.transform.container.setAttribute("opacity",Z.transform.op.v),(_e||Z.transform.mProps._mdf)&&Z.transform.container.setAttribute("transform",Z.transform.mProps.v.to2dCSS())}function B(){}function U(Y,Z,_e){var xe,Se,Pe,Ee,Ae,Te,we=Z.styles.length,Ie=Z.lvl,Fe,ke,Le,Ge;for(Te=0;Te<we;Te+=1){if(Ee=Z.sh._mdf||_e,Z.styles[Te].lvl<Ie){for(ke=E.reset(),Le=Ie-Z.styles[Te].lvl,Ge=Z.transformers.length-1;!Ee&&Le>0;)Ee=Z.transformers[Ge].mProps._mdf||Ee,Le-=1,Ge-=1;if(Ee)for(Le=Ie-Z.styles[Te].lvl,Ge=Z.transformers.length-1;Le>0;)ke.multiply(Z.transformers[Ge].mProps.v),Le-=1,Ge-=1}else ke=A;if(Fe=Z.sh.paths,Se=Fe._length,Ee){for(Pe="",xe=0;xe<Se;xe+=1)Ae=Fe.shapes[xe],Ae&&Ae._length&&(Pe+=buildShapeString(Ae,Ae._length,Ae.c,ke));Z.caches[Te]=Pe}else Pe=Z.caches[Te];Z.styles[Te].d+=Y.hd===!0?"":Pe,Z.styles[Te]._mdf=Ee||Z.styles[Te]._mdf}}function V(Y,Z,_e){var xe=Z.style;(Z.c._mdf||_e)&&xe.pElem.setAttribute("fill","rgb("+bmFloor(Z.c.v[0])+","+bmFloor(Z.c.v[1])+","+bmFloor(Z.c.v[2])+")"),(Z.o._mdf||_e)&&xe.pElem.setAttribute("fill-opacity",Z.o.v)}function X(Y,Z,_e){K(Y,Z,_e),J(Y,Z,_e)}function K(Y,Z,_e){var xe=Z.gf,Se=Z.g._hasOpacity,Pe=Z.s.v,Ee=Z.e.v;if(Z.o._mdf||_e){var Ae=Y.ty==="gf"?"fill-opacity":"stroke-opacity";Z.style.pElem.setAttribute(Ae,Z.o.v)}if(Z.s._mdf||_e){var Te=Y.t===1?"x1":"cx",we=Te==="x1"?"y1":"cy";xe.setAttribute(Te,Pe[0]),xe.setAttribute(we,Pe[1]),Se&&!Z.g._collapsable&&(Z.of.setAttribute(Te,Pe[0]),Z.of.setAttribute(we,Pe[1]))}var Ie,Fe,ke,Le;if(Z.g._cmdf||_e){Ie=Z.cst;var Ge=Z.g.c;for(ke=Ie.length,Fe=0;Fe<ke;Fe+=1)Le=Ie[Fe],Le.setAttribute("offset",Ge[Fe*4]+"%"),Le.setAttribute("stop-color","rgb("+Ge[Fe*4+1]+","+Ge[Fe*4+2]+","+Ge[Fe*4+3]+")")}if(Se&&(Z.g._omdf||_e)){var He=Z.g.o;for(Z.g._collapsable?Ie=Z.cst:Ie=Z.ost,ke=Ie.length,Fe=0;Fe<ke;Fe+=1)Le=Ie[Fe],Z.g._collapsable||Le.setAttribute("offset",He[Fe*2]+"%"),Le.setAttribute("stop-opacity",He[Fe*2+1])}if(Y.t===1)(Z.e._mdf||_e)&&(xe.setAttribute("x2",Ee[0]),xe.setAttribute("y2",Ee[1]),Se&&!Z.g._collapsable&&(Z.of.setAttribute("x2",Ee[0]),Z.of.setAttribute("y2",Ee[1])));else{var Be;if((Z.s._mdf||Z.e._mdf||_e)&&(Be=Math.sqrt(Math.pow(Pe[0]-Ee[0],2)+Math.pow(Pe[1]-Ee[1],2)),xe.setAttribute("r",Be),Se&&!Z.g._collapsable&&Z.of.setAttribute("r",Be)),Z.e._mdf||Z.h._mdf||Z.a._mdf||_e){Be||(Be=Math.sqrt(Math.pow(Pe[0]-Ee[0],2)+Math.pow(Pe[1]-Ee[1],2)));var je=Math.atan2(Ee[1]-Pe[1],Ee[0]-Pe[0]),Ue=Z.h.v;Ue>=1?Ue=.99:Ue<=-1&&(Ue=-.99);var ze=Be*Ue,Ve=Math.cos(je+Z.a.v)*ze+Pe[0],Oe=Math.sin(je+Z.a.v)*ze+Pe[1];xe.setAttribute("fx",Ve),xe.setAttribute("fy",Oe),Se&&!Z.g._collapsable&&(Z.of.setAttribute("fx",Ve),Z.of.setAttribute("fy",Oe))}}}function J(Y,Z,_e){var xe=Z.style,Se=Z.d;Se&&(Se._mdf||_e)&&Se.dashStr&&(xe.pElem.setAttribute("stroke-dasharray",Se.dashStr),xe.pElem.setAttribute("stroke-dashoffset",Se.dashoffset[0])),Z.c&&(Z.c._mdf||_e)&&xe.pElem.setAttribute("stroke","rgb("+bmFloor(Z.c.v[0])+","+bmFloor(Z.c.v[1])+","+bmFloor(Z.c.v[2])+")"),(Z.o._mdf||_e)&&xe.pElem.setAttribute("stroke-opacity",Z.o.v),(Z.w._mdf||_e)&&(xe.pElem.setAttribute("stroke-width",Z.w.v),xe.msElem&&xe.msElem.setAttribute("stroke-width",Z.w.v))}return C}();function SVGShapeElement(A,E,C){this.shapes=[],this.shapesData=A.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(A,E,C),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var A,E=this.shapes.length,C,R,I=this.stylesList.length,B,U=[],V=!1;for(R=0;R<I;R+=1){for(B=this.stylesList[R],V=!1,U.length=0,A=0;A<E;A+=1)C=this.shapes[A],C.styles.indexOf(B)!==-1&&(U.push(C),V=C._isAnimated||V);U.length>1&&V&&this.setShapesAsAnimated(U)}},SVGShapeElement.prototype.setShapesAsAnimated=function(A){var E,C=A.length;for(E=0;E<C;E+=1)A[E].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(A,E){var C,R=new SVGStyleData(A,E),I=R.pElem;if(A.ty==="st")C=new SVGStrokeStyleData(this,A,R);else if(A.ty==="fl")C=new SVGFillStyleData(this,A,R);else if(A.ty==="gf"||A.ty==="gs"){var B=A.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;C=new B(this,A,R),this.globalData.defs.appendChild(C.gf),C.maskId&&(this.globalData.defs.appendChild(C.ms),this.globalData.defs.appendChild(C.of),I.setAttribute("mask","url("+getLocationHref()+"#"+C.maskId+")"))}else A.ty==="no"&&(C=new SVGNoStyleData(this,A,R));return(A.ty==="st"||A.ty==="gs")&&(I.setAttribute("stroke-linecap",lineCapEnum[A.lc||2]),I.setAttribute("stroke-linejoin",lineJoinEnum[A.lj||2]),I.setAttribute("fill-opacity","0"),A.lj===1&&I.setAttribute("stroke-miterlimit",A.ml)),A.r===2&&I.setAttribute("fill-rule","evenodd"),A.ln&&I.setAttribute("id",A.ln),A.cl&&I.setAttribute("class",A.cl),A.bm&&(I.style["mix-blend-mode"]=getBlendMode(A.bm)),this.stylesList.push(R),this.addToAnimatedContents(A,C),C},SVGShapeElement.prototype.createGroupElement=function(A){var E=new ShapeGroupData;return A.ln&&E.gr.setAttribute("id",A.ln),A.cl&&E.gr.setAttribute("class",A.cl),A.bm&&(E.gr.style["mix-blend-mode"]=getBlendMode(A.bm)),E},SVGShapeElement.prototype.createTransformElement=function(A,E){var C=TransformPropertyFactory.getTransformProperty(this,A,this),R=new SVGTransformData(C,C.o,E);return this.addToAnimatedContents(A,R),R},SVGShapeElement.prototype.createShapeElement=function(A,E,C){var R=4;A.ty==="rc"?R=5:A.ty==="el"?R=6:A.ty==="sr"&&(R=7);var I=ShapePropertyFactory.getShapeProp(this,A,R,this),B=new SVGShapeData(E,C,I);return this.shapes.push(B),this.addShapeToModifiers(B),this.addToAnimatedContents(A,B),B},SVGShapeElement.prototype.addToAnimatedContents=function(A,E){for(var C=0,R=this.animatedContents.length;C<R;){if(this.animatedContents[C].element===E)return;C+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(A),element:E,data:A})},SVGShapeElement.prototype.setElementStyles=function(A){var E=A.styles,C,R=this.stylesList.length;for(C=0;C<R;C+=1)this.stylesList[C].closed||E.push(this.stylesList[C])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var A,E=this.itemsData.length;for(A=0;A<E;A+=1)this.prevViewData[A]=this.itemsData[A];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),E=this.dynamicProperties.length,A=0;A<E;A+=1)this.dynamicProperties[A].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(A,E,C,R,I,B,U){var V=[].concat(B),X,K=A.length-1,J,Y,Z=[],_e=[],xe,Se,Pe;for(X=K;X>=0;X-=1){if(Pe=this.searchProcessedElement(A[X]),Pe?E[X]=C[Pe-1]:A[X]._render=U,A[X].ty==="fl"||A[X].ty==="st"||A[X].ty==="gf"||A[X].ty==="gs"||A[X].ty==="no")Pe?E[X].style.closed=!1:E[X]=this.createStyleElement(A[X],I),A[X]._render&&E[X].style.pElem.parentNode!==R&&R.appendChild(E[X].style.pElem),Z.push(E[X].style);else if(A[X].ty==="gr"){if(!Pe)E[X]=this.createGroupElement(A[X]);else for(Y=E[X].it.length,J=0;J<Y;J+=1)E[X].prevViewData[J]=E[X].it[J];this.searchShapes(A[X].it,E[X].it,E[X].prevViewData,E[X].gr,I+1,V,U),A[X]._render&&E[X].gr.parentNode!==R&&R.appendChild(E[X].gr)}else A[X].ty==="tr"?(Pe||(E[X]=this.createTransformElement(A[X],R)),xe=E[X].transform,V.push(xe)):A[X].ty==="sh"||A[X].ty==="rc"||A[X].ty==="el"||A[X].ty==="sr"?(Pe||(E[X]=this.createShapeElement(A[X],V,I)),this.setElementStyles(E[X])):A[X].ty==="tm"||A[X].ty==="rd"||A[X].ty==="ms"||A[X].ty==="pb"||A[X].ty==="zz"||A[X].ty==="op"?(Pe?(Se=E[X],Se.closed=!1):(Se=ShapeModifiers.getModifier(A[X].ty),Se.init(this,A[X]),E[X]=Se,this.shapeModifiers.push(Se)),_e.push(Se)):A[X].ty==="rp"&&(Pe?(Se=E[X],Se.closed=!0):(Se=ShapeModifiers.getModifier(A[X].ty),E[X]=Se,Se.init(this,A,X,E),this.shapeModifiers.push(Se),U=!1),_e.push(Se));this.addProcessedElement(A[X],X+1)}for(K=Z.length,X=0;X<K;X+=1)Z[X].closed=!0;for(K=_e.length,X=0;X<K;X+=1)_e[X].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var A,E=this.stylesList.length;for(A=0;A<E;A+=1)this.stylesList[A].reset();for(this.renderShape(),A=0;A<E;A+=1)(this.stylesList[A]._mdf||this._isFirstFrame)&&(this.stylesList[A].msElem&&(this.stylesList[A].msElem.setAttribute("d",this.stylesList[A].d),this.stylesList[A].d="M0 0"+this.stylesList[A].d),this.stylesList[A].pElem.setAttribute("d",this.stylesList[A].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var A,E=this.animatedContents.length,C;for(A=0;A<E;A+=1)C=this.animatedContents[A],(this._isFirstFrame||C.element._isAnimated)&&C.data!==!0&&C.fn(C.data,C.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(A,E,C,R,I,B){this.o=A,this.sw=E,this.sc=C,this.fc=R,this.m=I,this.p=B,this._mdf={o:!0,sw:!!E,sc:!!C,fc:!!R,m:!0,p:!0}}LetterProps.prototype.update=function(A,E,C,R,I,B){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var U=!1;return this.o!==A&&(this.o=A,this._mdf.o=!0,U=!0),this.sw!==E&&(this.sw=E,this._mdf.sw=!0,U=!0),this.sc!==C&&(this.sc=C,this._mdf.sc=!0,U=!0),this.fc!==R&&(this.fc=R,this._mdf.fc=!0,U=!0),this.m!==I&&(this.m=I,this._mdf.m=!0,U=!0),B.length&&(this.p[0]!==B[0]||this.p[1]!==B[1]||this.p[4]!==B[4]||this.p[5]!==B[5]||this.p[12]!==B[12]||this.p[13]!==B[13])&&(this.p=B,this._mdf.p=!0,U=!0),U};function TextProperty(A,E){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,E.d&&E.d.sid&&(E.d=A.globalData.slotManager.getProp(E.d)),this.data=E,this.elem=A,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(A,E){for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(A[C]=E[C]);return A},TextProperty.prototype.setCurrentData=function(A){A.__complete||this.completeTextData(A),this.currentData=A,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(A){this.effectsSequence.push(A),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(A){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!A)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var E=this.currentData,C=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var R,I=this.effectsSequence.length,B=A||this.data.d.k[this.keysIndex].s;for(R=0;R<I;R+=1)C!==this.keysIndex?B=this.effectsSequence[R](B,B.t):B=this.effectsSequence[R](this.currentData,B.t);E!==B&&this.setCurrentData(B),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var A=this.data.d.k,E=this.elem.comp.renderedFrame,C=0,R=A.length;C<=R-1&&!(C===R-1||A[C+1].t>E);)C+=1;return this.keysIndex!==C&&(this.keysIndex=C),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(A){for(var E=[],C=0,R=A.length,I,B,U=!1,V=!1,X="";C<R;)U=V,V=!1,I=A.charCodeAt(C),X=A.charAt(C),FontManager.isCombinedCharacter(I)?U=!0:I>=55296&&I<=56319?FontManager.isRegionalFlag(A,C)?X=A.substr(C,14):(B=A.charCodeAt(C+1),B>=56320&&B<=57343&&(FontManager.isModifier(I,B)?(X=A.substr(C,2),U=!0):FontManager.isFlagEmoji(A.substr(C,4))?X=A.substr(C,4):X=A.substr(C,2))):I>56319?(B=A.charCodeAt(C+1),FontManager.isVariationSelector(I)&&(U=!0)):FontManager.isZeroWidthJoiner(I)&&(U=!0,V=!0),U?(E[E.length-1]+=X,U=!1):E.push(X),C+=X.length;return E},TextProperty.prototype.completeTextData=function(A){A.__complete=!0;var E=this.elem.globalData.fontManager,C=this.data,R=[],I,B,U,V=0,X,K=C.m.g,J=0,Y=0,Z=0,_e=[],xe=0,Se=0,Pe,Ee,Ae=E.getFontByName(A.f),Te,we=0,Ie=getFontProperties(Ae);A.fWeight=Ie.weight,A.fStyle=Ie.style,A.finalSize=A.s,A.finalText=this.buildFinalText(A.t),B=A.finalText.length,A.finalLineHeight=A.lh;var Fe=A.tr/1e3*A.finalSize,ke;if(A.sz)for(var Le=!0,Ge=A.sz[0],He=A.sz[1],Be,je;Le;){je=this.buildFinalText(A.t),Be=0,xe=0,B=je.length,Fe=A.tr/1e3*A.finalSize;var Ue=-1;for(I=0;I<B;I+=1)ke=je[I].charCodeAt(0),U=!1,je[I]===" "?Ue=I:(ke===13||ke===3)&&(xe=0,U=!0,Be+=A.finalLineHeight||A.finalSize*1.2),E.chars?(Te=E.getCharData(je[I],Ae.fStyle,Ae.fFamily),we=U?0:Te.w*A.finalSize/100):we=E.measureText(je[I],A.f,A.finalSize),xe+we>Ge&&je[I]!==" "?(Ue===-1?B+=1:I=Ue,Be+=A.finalLineHeight||A.finalSize*1.2,je.splice(I,Ue===I?1:0,"\r"),Ue=-1,xe=0):(xe+=we,xe+=Fe);Be+=Ae.ascent*A.finalSize/100,this.canResize&&A.finalSize>this.minimumFontSize&&He<Be?(A.finalSize-=1,A.finalLineHeight=A.finalSize*A.lh/A.s):(A.finalText=je,B=A.finalText.length,Le=!1)}xe=-Fe,we=0;var ze=0,Ve;for(I=0;I<B;I+=1)if(U=!1,Ve=A.finalText[I],ke=Ve.charCodeAt(0),ke===13||ke===3?(ze=0,_e.push(xe),Se=xe>Se?xe:Se,xe=-2*Fe,X="",U=!0,Z+=1):X=Ve,E.chars?(Te=E.getCharData(Ve,Ae.fStyle,E.getFontByName(A.f).fFamily),we=U?0:Te.w*A.finalSize/100):we=E.measureText(X,A.f,A.finalSize),Ve===" "?ze+=we+Fe:(xe+=we+Fe+ze,ze=0),R.push({l:we,an:we,add:J,n:U,anIndexes:[],val:X,line:Z,animatorJustifyOffset:0}),K==2){if(J+=we,X===""||X===" "||I===B-1){for((X===""||X===" ")&&(J-=we);Y<=I;)R[Y].an=J,R[Y].ind=V,R[Y].extra=we,Y+=1;V+=1,J=0}}else if(K==3){if(J+=we,X===""||I===B-1){for(X===""&&(J-=we);Y<=I;)R[Y].an=J,R[Y].ind=V,R[Y].extra=we,Y+=1;J=0,V+=1}}else R[V].ind=V,R[V].extra=0,V+=1;if(A.l=R,Se=xe>Se?xe:Se,_e.push(xe),A.sz)A.boxWidth=A.sz[0],A.justifyOffset=0;else switch(A.boxWidth=Se,A.j){case 1:A.justifyOffset=-A.boxWidth;break;case 2:A.justifyOffset=-A.boxWidth/2;break;default:A.justifyOffset=0}A.lineWidths=_e;var Oe=C.a,$e,Re;Ee=Oe.length;var Me,Ne,De=[];for(Pe=0;Pe<Ee;Pe+=1){for($e=Oe[Pe],$e.a.sc&&(A.strokeColorAnim=!0),$e.a.sw&&(A.strokeWidthAnim=!0),($e.a.fc||$e.a.fh||$e.a.fs||$e.a.fb)&&(A.fillColorAnim=!0),Ne=0,Me=$e.s.b,I=0;I<B;I+=1)Re=R[I],Re.anIndexes[Pe]=Ne,(Me==1&&Re.val!==""||Me==2&&Re.val!==""&&Re.val!==" "||Me==3&&(Re.n||Re.val==" "||I==B-1)||Me==4&&(Re.n||I==B-1))&&($e.s.rn===1&&De.push(Ne),Ne+=1);C.a[Pe].s.totalChars=Ne;var Xe=-1,qe;if($e.s.rn===1)for(I=0;I<B;I+=1)Re=R[I],Xe!=Re.anIndexes[Pe]&&(Xe=Re.anIndexes[Pe],qe=De.splice(Math.floor(Math.random()*De.length),1)[0]),Re.anIndexes[Pe]=qe}A.yOffset=A.finalLineHeight||A.finalSize*1.2,A.ls=A.ls||0,A.ascent=Ae.ascent*A.finalSize/100},TextProperty.prototype.updateDocumentData=function(A,E){E=E===void 0?this.keysIndex:E;var C=this.copyData({},this.data.d.k[E].s);C=this.copyData(C,A),this.data.d.k[E].s=C,this.recalculate(E),this.setCurrentData(C),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(A){var E=this.data.d.k[A].s;E.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(E)},TextProperty.prototype.canResizeFont=function(A){this.canResize=A,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(A){this.minimumFontSize=Math.floor(A)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var A=Math.max,E=Math.min,C=Math.floor;function R(B,U){this._currentTextLength=-1,this.k=!1,this.data=U,this.elem=B,this.comp=B.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(B),this.s=PropertyFactory.getProp(B,U.s||{k:0},0,0,this),"e"in U?this.e=PropertyFactory.getProp(B,U.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(B,U.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(B,U.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(B,U.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(B,U.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(B,U.a,0,.01,this),this.dynamicProperties.length||this.getValue()}R.prototype={getMult:function(U){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var V=0,X=0,K=1,J=1;this.ne.v>0?V=this.ne.v/100:X=-this.ne.v/100,this.xe.v>0?K=1-this.xe.v/100:J=1+this.xe.v/100;var Y=BezierFactory.getBezierEasing(V,X,K,J).get,Z=0,_e=this.finalS,xe=this.finalE,Se=this.data.sh;if(Se===2)xe===_e?Z=U>=xe?1:0:Z=A(0,E(.5/(xe-_e)+(U-_e)/(xe-_e),1)),Z=Y(Z);else if(Se===3)xe===_e?Z=U>=xe?0:1:Z=1-A(0,E(.5/(xe-_e)+(U-_e)/(xe-_e),1)),Z=Y(Z);else if(Se===4)xe===_e?Z=0:(Z=A(0,E(.5/(xe-_e)+(U-_e)/(xe-_e),1)),Z<.5?Z*=2:Z=1-2*(Z-.5)),Z=Y(Z);else if(Se===5){if(xe===_e)Z=0;else{var Pe=xe-_e;U=E(A(0,U+.5-_e),xe-_e);var Ee=-Pe/2+U,Ae=Pe/2;Z=Math.sqrt(1-Ee*Ee/(Ae*Ae))}Z=Y(Z)}else Se===6?(xe===_e?Z=0:(U=E(A(0,U+.5-_e),xe-_e),Z=(1+Math.cos(Math.PI+Math.PI*2*U/(xe-_e)))/2),Z=Y(Z)):(U>=C(_e)&&(U-_e<0?Z=A(0,E(E(xe,1)-(_e-U),1)):Z=A(0,E(xe-U,1))),Z=Y(Z));if(this.sm.v!==100){var Te=this.sm.v*.01;Te===0&&(Te=1e-8);var we=.5-Te*.5;Z<we?Z=0:(Z=(Z-we)/Te,Z>1&&(Z=1))}return Z*this.a.v},getValue:function(U){this.iterateDynamicProperties(),this._mdf=U||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,U&&this.data.r===2&&(this.e.v=this._currentTextLength);var V=this.data.r===2?1:100/this.data.totalChars,X=this.o.v/V,K=this.s.v/V+X,J=this.e.v/V+X;if(K>J){var Y=K;K=J,J=Y}this.finalS=K,this.finalE=J}},extendPrototype([DynamicPropertyContainer],R);function I(B,U,V){return new R(B,U)}return{getTextSelectorProp:I}}();function TextAnimatorDataProperty(A,E,C){var R={propType:!1},I=PropertyFactory.getProp,B=E.a;this.a={r:B.r?I(A,B.r,0,degToRads,C):R,rx:B.rx?I(A,B.rx,0,degToRads,C):R,ry:B.ry?I(A,B.ry,0,degToRads,C):R,sk:B.sk?I(A,B.sk,0,degToRads,C):R,sa:B.sa?I(A,B.sa,0,degToRads,C):R,s:B.s?I(A,B.s,1,.01,C):R,a:B.a?I(A,B.a,1,0,C):R,o:B.o?I(A,B.o,0,.01,C):R,p:B.p?I(A,B.p,1,0,C):R,sw:B.sw?I(A,B.sw,0,0,C):R,sc:B.sc?I(A,B.sc,1,0,C):R,fc:B.fc?I(A,B.fc,1,0,C):R,fh:B.fh?I(A,B.fh,0,0,C):R,fs:B.fs?I(A,B.fs,0,.01,C):R,fb:B.fb?I(A,B.fb,0,.01,C):R,t:B.t?I(A,B.t,0,0,C):R},this.s=TextSelectorProp.getTextSelectorProp(A,E.s,C),this.s.t=E.s.t}function TextAnimatorProperty(A,E,C){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=A,this._renderType=E,this._elem=C,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(C)}TextAnimatorProperty.prototype.searchProperties=function(){var A,E=this._textData.a.length,C,R=PropertyFactory.getProp;for(A=0;A<E;A+=1)C=this._textData.a[A],this._animatorsData[A]=new TextAnimatorDataProperty(this._elem,C,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:R(this._elem,this._textData.p.a,0,0,this),f:R(this._elem,this._textData.p.f,0,0,this),l:R(this._elem,this._textData.p.l,0,0,this),r:R(this._elem,this._textData.p.r,0,0,this),p:R(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=R(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(A,E){if(this.lettersChangedFlag=E,!(!this._mdf&&!this._isFirstFrame&&!E&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var C=this._moreOptions.alignment.v,R=this._animatorsData,I=this._textData,B=this.mHelper,U=this._renderType,V=this.renderedLetters.length,X,K,J,Y,Z=A.l,_e,xe,Se,Pe,Ee,Ae,Te,we,Ie,Fe,ke,Le,Ge,He,Be;if(this._hasMaskedPath){if(Be=this._pathData.m,!this._pathData.n||this._pathData._mdf){var je=Be.v;this._pathData.r.v&&(je=je.reverse()),_e={tLength:0,segments:[]},Y=je._length-1;var Ue;for(Le=0,J=0;J<Y;J+=1)Ue=bez.buildBezierData(je.v[J],je.v[J+1],[je.o[J][0]-je.v[J][0],je.o[J][1]-je.v[J][1]],[je.i[J+1][0]-je.v[J+1][0],je.i[J+1][1]-je.v[J+1][1]]),_e.tLength+=Ue.segmentLength,_e.segments.push(Ue),Le+=Ue.segmentLength;J=Y,Be.v.c&&(Ue=bez.buildBezierData(je.v[J],je.v[0],[je.o[J][0]-je.v[J][0],je.o[J][1]-je.v[J][1]],[je.i[0][0]-je.v[0][0],je.i[0][1]-je.v[0][1]]),_e.tLength+=Ue.segmentLength,_e.segments.push(Ue),Le+=Ue.segmentLength),this._pathData.pi=_e}if(_e=this._pathData.pi,xe=this._pathData.f.v,Te=0,Ae=1,Pe=0,Ee=!0,Fe=_e.segments,xe<0&&Be.v.c)for(_e.tLength<Math.abs(xe)&&(xe=-Math.abs(xe)%_e.tLength),Te=Fe.length-1,Ie=Fe[Te].points,Ae=Ie.length-1;xe<0;)xe+=Ie[Ae].partialLength,Ae-=1,Ae<0&&(Te-=1,Ie=Fe[Te].points,Ae=Ie.length-1);Ie=Fe[Te].points,we=Ie[Ae-1],Se=Ie[Ae],ke=Se.partialLength}Y=Z.length,X=0,K=0;var ze=A.finalSize*1.2*.714,Ve=!0,Oe,$e,Re,Me,Ne;Me=R.length;var De,Xe=-1,qe,Ye,Je,Ke=xe,rt=Te,nt=Ae,Qe=-1,Ze,tt,st,et,We,it,ot,ht,gt="",pt=this.defaultPropsArray,ft;if(A.j===2||A.j===1){var mt=0,ct=0,xt=A.j===2?-.5:-1,bt=0,It=!0;for(J=0;J<Y;J+=1)if(Z[J].n){for(mt&&(mt+=ct);bt<J;)Z[bt].animatorJustifyOffset=mt,bt+=1;mt=0,It=!0}else{for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.t.propType&&(It&&A.j===2&&(ct+=Oe.t.v*xt),$e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?mt+=Oe.t.v*De[0]*xt:mt+=Oe.t.v*De*xt);It=!1}for(mt&&(mt+=ct);bt<J;)Z[bt].animatorJustifyOffset=mt,bt+=1}for(J=0;J<Y;J+=1){if(B.reset(),Ze=1,Z[J].n)X=0,K+=A.yOffset,K+=Ve?1:0,xe=Ke,Ve=!1,this._hasMaskedPath&&(Te=rt,Ae=nt,Ie=Fe[Te].points,we=Ie[Ae-1],Se=Ie[Ae],ke=Se.partialLength,Pe=0),gt="",ht="",it="",ft="",pt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Qe!==Z[J].line){switch(A.j){case 1:xe+=Le-A.lineWidths[Z[J].line];break;case 2:xe+=(Le-A.lineWidths[Z[J].line])/2;break}Qe=Z[J].line}Xe!==Z[J].ind&&(Z[Xe]&&(xe+=Z[Xe].extra),xe+=Z[J].an/2,Xe=Z[J].ind),xe+=C[0]*Z[J].an*.005;var Et=0;for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.p.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?Et+=Oe.p.v[0]*De[0]:Et+=Oe.p.v[0]*De),Oe.a.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?Et+=Oe.a.v[0]*De[0]:Et+=Oe.a.v[0]*De);for(Ee=!0,this._pathData.a.v&&(xe=Z[0].an*.5+(Le-this._pathData.f.v-Z[0].an*.5-Z[Z.length-1].an*.5)*Xe/(Y-1),xe+=this._pathData.f.v);Ee;)Pe+ke>=xe+Et||!Ie?(Ge=(xe+Et-Pe)/Se.partialLength,Ye=we.point[0]+(Se.point[0]-we.point[0])*Ge,Je=we.point[1]+(Se.point[1]-we.point[1])*Ge,B.translate(-C[0]*Z[J].an*.005,-(C[1]*ze)*.01),Ee=!1):Ie&&(Pe+=Se.partialLength,Ae+=1,Ae>=Ie.length&&(Ae=0,Te+=1,Fe[Te]?Ie=Fe[Te].points:Be.v.c?(Ae=0,Te=0,Ie=Fe[Te].points):(Pe-=Se.partialLength,Ie=null)),Ie&&(we=Se,Se=Ie[Ae],ke=Se.partialLength));qe=Z[J].an/2-Z[J].add,B.translate(-qe,0,0)}else qe=Z[J].an/2-Z[J].add,B.translate(-qe,0,0),B.translate(-C[0]*Z[J].an*.005,-C[1]*ze*.01,0);for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.t.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),(X!==0||A.j!==0)&&(this._hasMaskedPath?De.length?xe+=Oe.t.v*De[0]:xe+=Oe.t.v*De:De.length?X+=Oe.t.v*De[0]:X+=Oe.t.v*De));for(A.strokeWidthAnim&&(st=A.sw||0),A.strokeColorAnim&&(A.sc?tt=[A.sc[0],A.sc[1],A.sc[2]]:tt=[0,0,0]),A.fillColorAnim&&A.fc&&(et=[A.fc[0],A.fc[1],A.fc[2]]),Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.a.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?B.translate(-Oe.a.v[0]*De[0],-Oe.a.v[1]*De[1],Oe.a.v[2]*De[2]):B.translate(-Oe.a.v[0]*De,-Oe.a.v[1]*De,Oe.a.v[2]*De));for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.s.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?B.scale(1+(Oe.s.v[0]-1)*De[0],1+(Oe.s.v[1]-1)*De[1],1):B.scale(1+(Oe.s.v[0]-1)*De,1+(Oe.s.v[1]-1)*De,1));for(Re=0;Re<Me;Re+=1){if(Oe=R[Re].a,$e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),Oe.sk.propType&&(De.length?B.skewFromAxis(-Oe.sk.v*De[0],Oe.sa.v*De[1]):B.skewFromAxis(-Oe.sk.v*De,Oe.sa.v*De)),Oe.r.propType&&(De.length?B.rotateZ(-Oe.r.v*De[2]):B.rotateZ(-Oe.r.v*De)),Oe.ry.propType&&(De.length?B.rotateY(Oe.ry.v*De[1]):B.rotateY(Oe.ry.v*De)),Oe.rx.propType&&(De.length?B.rotateX(Oe.rx.v*De[0]):B.rotateX(Oe.rx.v*De)),Oe.o.propType&&(De.length?Ze+=(Oe.o.v*De[0]-Ze)*De[0]:Ze+=(Oe.o.v*De-Ze)*De),A.strokeWidthAnim&&Oe.sw.propType&&(De.length?st+=Oe.sw.v*De[0]:st+=Oe.sw.v*De),A.strokeColorAnim&&Oe.sc.propType)for(We=0;We<3;We+=1)De.length?tt[We]+=(Oe.sc.v[We]-tt[We])*De[0]:tt[We]+=(Oe.sc.v[We]-tt[We])*De;if(A.fillColorAnim&&A.fc){if(Oe.fc.propType)for(We=0;We<3;We+=1)De.length?et[We]+=(Oe.fc.v[We]-et[We])*De[0]:et[We]+=(Oe.fc.v[We]-et[We])*De;Oe.fh.propType&&(De.length?et=addHueToRGB(et,Oe.fh.v*De[0]):et=addHueToRGB(et,Oe.fh.v*De)),Oe.fs.propType&&(De.length?et=addSaturationToRGB(et,Oe.fs.v*De[0]):et=addSaturationToRGB(et,Oe.fs.v*De)),Oe.fb.propType&&(De.length?et=addBrightnessToRGB(et,Oe.fb.v*De[0]):et=addBrightnessToRGB(et,Oe.fb.v*De))}}for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.p.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),this._hasMaskedPath?De.length?B.translate(0,Oe.p.v[1]*De[0],-Oe.p.v[2]*De[1]):B.translate(0,Oe.p.v[1]*De,-Oe.p.v[2]*De):De.length?B.translate(Oe.p.v[0]*De[0],Oe.p.v[1]*De[1],-Oe.p.v[2]*De[2]):B.translate(Oe.p.v[0]*De,Oe.p.v[1]*De,-Oe.p.v[2]*De));if(A.strokeWidthAnim&&(it=st<0?0:st),A.strokeColorAnim&&(ot="rgb("+Math.round(tt[0]*255)+","+Math.round(tt[1]*255)+","+Math.round(tt[2]*255)+")"),A.fillColorAnim&&A.fc&&(ht="rgb("+Math.round(et[0]*255)+","+Math.round(et[1]*255)+","+Math.round(et[2]*255)+")"),this._hasMaskedPath){if(B.translate(0,-A.ls),B.translate(0,C[1]*ze*.01+K,0),this._pathData.p.v){He=(Se.point[1]-we.point[1])/(Se.point[0]-we.point[0]);var Ft=Math.atan(He)*180/Math.PI;Se.point[0]<we.point[0]&&(Ft+=180),B.rotate(-Ft*Math.PI/180)}B.translate(Ye,Je,0),xe-=C[0]*Z[J].an*.005,Z[J+1]&&Xe!==Z[J+1].ind&&(xe+=Z[J].an/2,xe+=A.tr*.001*A.finalSize)}else{switch(B.translate(X,K,0),A.ps&&B.translate(A.ps[0],A.ps[1]+A.ascent,0),A.j){case 1:B.translate(Z[J].animatorJustifyOffset+A.justifyOffset+(A.boxWidth-A.lineWidths[Z[J].line]),0,0);break;case 2:B.translate(Z[J].animatorJustifyOffset+A.justifyOffset+(A.boxWidth-A.lineWidths[Z[J].line])/2,0,0);break}B.translate(0,-A.ls),B.translate(qe,0,0),B.translate(C[0]*Z[J].an*.005,C[1]*ze*.01,0),X+=Z[J].l+A.tr*.001*A.finalSize}U==="html"?gt=B.toCSS():U==="svg"?gt=B.to2dCSS():pt=[B.props[0],B.props[1],B.props[2],B.props[3],B.props[4],B.props[5],B.props[6],B.props[7],B.props[8],B.props[9],B.props[10],B.props[11],B.props[12],B.props[13],B.props[14],B.props[15]],ft=Ze}V<=J?(Ne=new LetterProps(ft,it,ot,ht,gt,pt),this.renderedLetters.push(Ne),V+=1,this.lettersChangedFlag=!0):(Ne=this.renderedLetters[J],this.lettersChangedFlag=Ne.update(ft,it,ot,ht,gt,pt)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(A,E,C){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(A,E,C),this.textProperty=new TextProperty(this,A.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(A.t,this.renderType,this),this.initTransform(A,E,C),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(A){this._mdf=!1,this.prepareRenderableFrame(A),this.prepareProperties(A,this.isInRange)},ITextElement.prototype.createPathShape=function(A,E){var C,R=E.length,I,B="";for(C=0;C<R;C+=1)E[C].ty==="sh"&&(I=E[C].ks.k,B+=buildShapeString(I,I.i.length,!0,A));return B},ITextElement.prototype.updateDocumentData=function(A,E){this.textProperty.updateDocumentData(A,E)},ITextElement.prototype.canResizeFont=function(A){this.textProperty.canResizeFont(A)},ITextElement.prototype.setMinimumFontSize=function(A){this.textProperty.setMinimumFontSize(A)},ITextElement.prototype.applyTextPropertiesToMatrix=function(A,E,C,R,I){switch(A.ps&&E.translate(A.ps[0],A.ps[1]+A.ascent,0),E.translate(0,-A.ls,0),A.j){case 1:E.translate(A.justifyOffset+(A.boxWidth-A.lineWidths[C]),0,0);break;case 2:E.translate(A.justifyOffset+(A.boxWidth-A.lineWidths[C])/2,0,0);break}E.translate(R,I,0)},ITextElement.prototype.buildColor=function(A){return"rgb("+Math.round(A[0]*255)+","+Math.round(A[1]*255)+","+Math.round(A[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(A,E,C){this.textSpans=[],this.renderType="svg",this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(A){for(var E=0,C=A.length,R=[],I="";E<C;)A[E]===String.fromCharCode(13)||A[E]===String.fromCharCode(3)?(R.push(I),I=""):I+=A[E],E+=1;return R.push(I),R},SVGTextLottieElement.prototype.buildShapeData=function(A,E){if(A.shapes&&A.shapes.length){var C=A.shapes[0];if(C.it){var R=C.it[C.it.length-1];R.s&&(R.s.k[0]=E,R.s.k[1]=E)}}return A},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var A,E,C=this.textProperty.currentData;this.renderedLetters=createSizedArray(C?C.l.length:0),C.fc?this.layerElement.setAttribute("fill",this.buildColor(C.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),C.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(C.sc)),this.layerElement.setAttribute("stroke-width",C.sw)),this.layerElement.setAttribute("font-size",C.finalSize);var R=this.globalData.fontManager.getFontByName(C.f);if(R.fClass)this.layerElement.setAttribute("class",R.fClass);else{this.layerElement.setAttribute("font-family",R.fFamily);var I=C.fWeight,B=C.fStyle;this.layerElement.setAttribute("font-style",B),this.layerElement.setAttribute("font-weight",I)}this.layerElement.setAttribute("aria-label",C.t);var U=C.l||[],V=!!this.globalData.fontManager.chars;E=U.length;var X,K=this.mHelper,J="",Y=this.data.singleShape,Z=0,_e=0,xe=!0,Se=C.tr*.001*C.finalSize;if(Y&&!V&&!C.sz){var Pe=this.textContainer,Ee="start";switch(C.j){case 1:Ee="end";break;case 2:Ee="middle";break;default:Ee="start";break}Pe.setAttribute("text-anchor",Ee),Pe.setAttribute("letter-spacing",Se);var Ae=this.buildTextContents(C.finalText);for(E=Ae.length,_e=C.ps?C.ps[1]+C.ascent:0,A=0;A<E;A+=1)X=this.textSpans[A].span||createNS("tspan"),X.textContent=Ae[A],X.setAttribute("x",0),X.setAttribute("y",_e),X.style.display="inherit",Pe.appendChild(X),this.textSpans[A]||(this.textSpans[A]={span:null,glyph:null}),this.textSpans[A].span=X,_e+=C.finalLineHeight;this.layerElement.appendChild(Pe)}else{var Te=this.textSpans.length,we;for(A=0;A<E;A+=1){if(this.textSpans[A]||(this.textSpans[A]={span:null,childSpan:null,glyph:null}),!V||!Y||A===0){if(X=Te>A?this.textSpans[A].span:createNS(V?"g":"text"),Te<=A){if(X.setAttribute("stroke-linecap","butt"),X.setAttribute("stroke-linejoin","round"),X.setAttribute("stroke-miterlimit","4"),this.textSpans[A].span=X,V){var Ie=createNS("g");X.appendChild(Ie),this.textSpans[A].childSpan=Ie}this.textSpans[A].span=X,this.layerElement.appendChild(X)}X.style.display="inherit"}if(K.reset(),Y&&(U[A].n&&(Z=-Se,_e+=C.yOffset,_e+=xe?1:0,xe=!1),this.applyTextPropertiesToMatrix(C,K,U[A].line,Z,_e),Z+=U[A].l||0,Z+=Se),V){we=this.globalData.fontManager.getCharData(C.finalText[A],R.fStyle,this.globalData.fontManager.getFontByName(C.f).fFamily);var Fe;if(we.t===1)Fe=new SVGCompElement(we.data,this.globalData,this);else{var ke=emptyShapeData;we.data&&we.data.shapes&&(ke=this.buildShapeData(we.data,C.finalSize)),Fe=new SVGShapeElement(ke,this.globalData,this)}if(this.textSpans[A].glyph){var Le=this.textSpans[A].glyph;this.textSpans[A].childSpan.removeChild(Le.layerElement),Le.destroy()}this.textSpans[A].glyph=Fe,Fe._debug=!0,Fe.prepareFrame(0),Fe.renderFrame(),this.textSpans[A].childSpan.appendChild(Fe.layerElement),we.t===1&&this.textSpans[A].childSpan.setAttribute("transform","scale("+C.finalSize/100+","+C.finalSize/100+")")}else Y&&X.setAttribute("transform","translate("+K.props[12]+","+K.props[13]+")"),X.textContent=U[A].val,X.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&X&&X.setAttribute("d",J)}for(;A<this.textSpans.length;)this.textSpans[A].span.style.display="none",A+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var A=this.layerElement.getBBox();this.bbox={top:A.y,left:A.x,width:A.width,height:A.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var A,E=this.textSpans.length,C;for(this.renderedFrame=this.comp.renderedFrame,A=0;A<E;A+=1)C=this.textSpans[A].glyph,C&&(C.prepareFrame(this.comp.renderedFrame-this.data.st),C._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var A,E,C=this.textAnimator.renderedLetters,R=this.textProperty.currentData.l;E=R.length;var I,B,U;for(A=0;A<E;A+=1)R[A].n||(I=C[A],B=this.textSpans[A].span,U=this.textSpans[A].glyph,U&&U.renderFrame(),I._mdf.m&&B.setAttribute("transform",I.m),I._mdf.o&&B.setAttribute("opacity",I.o),I._mdf.sw&&B.setAttribute("stroke-width",I.sw),I._mdf.sc&&B.setAttribute("stroke",I.sc),I._mdf.fc&&B.setAttribute("fill",I.fc))}};function ISolidElement(A,E,C){this.initElement(A,E,C)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var A=createNS("rect");A.setAttribute("width",this.data.sw),A.setAttribute("height",this.data.sh),A.setAttribute("fill",this.data.sc),this.layerElement.appendChild(A)};function NullElement(A,E,C){this.initFrame(),this.initBaseData(A,E,C),this.initFrame(),this.initTransform(A,E,C),this.initHierarchy()}NullElement.prototype.prepareFrame=function(A){this.prepareProperties(A,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(A){return new NullElement(A,this.globalData,this)},SVGRendererBase.prototype.createShape=function(A){return new SVGShapeElement(A,this.globalData,this)},SVGRendererBase.prototype.createText=function(A){return new SVGTextLottieElement(A,this.globalData,this)},SVGRendererBase.prototype.createImage=function(A){return new IImageElement(A,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(A){return new ISolidElement(A,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(A){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+A.w+" "+A.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",A.w),this.svgElement.setAttribute("height",A.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var E=this.globalData.defs;this.setupGlobalData(A,E),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=A;var C=createNS("clipPath"),R=createNS("rect");R.setAttribute("width",A.w),R.setAttribute("height",A.h),R.setAttribute("x",0),R.setAttribute("y",0);var I=createElementID();C.setAttribute("id",I),C.appendChild(R),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+I+")"),E.appendChild(C),this.layers=A.layers,this.elements=createSizedArray(A.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var A,E=this.layers?this.layers.length:0;for(A=0;A<E;A+=1)this.elements[A]&&this.elements[A].destroy&&this.elements[A].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(A){var E=0,C=this.layers.length;for(E=0;E<C;E+=1)if(this.layers[E].ind===A)return E;return-1},SVGRendererBase.prototype.buildItem=function(A){var E=this.elements;if(!(E[A]||this.layers[A].ty===99)){E[A]=!0;var C=this.createItem(this.layers[A]);if(E[A]=C,getExpressionsPlugin()&&(this.layers[A].ty===0&&this.globalData.projectInterface.registerComposition(C),C.initExpressions()),this.appendElementInPos(C,A),this.layers[A].tt){var R="tp"in this.layers[A]?this.findIndexByInd(this.layers[A].tp):A-1;if(R===-1)return;if(!this.elements[R]||this.elements[R]===!0)this.buildItem(R),this.addPendingElement(C);else{var I=E[R],B=I.getMatte(this.layers[A].tt);C.setMatte(B)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var A=this.pendingElements.pop();if(A.checkParenting(),A.data.tt)for(var E=0,C=this.elements.length;E<C;){if(this.elements[E]===A){var R="tp"in A.data?this.findIndexByInd(A.data.tp):E-1,I=this.elements[R],B=I.getMatte(this.layers[E].tt);A.setMatte(B);break}E+=1}}},SVGRendererBase.prototype.renderFrame=function(A){if(!(this.renderedFrame===A||this.destroyed)){A===null?A=this.renderedFrame:this.renderedFrame=A,this.globalData.frameNum=A,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=A,this.globalData._mdf=!1;var E,C=this.layers.length;for(this.completeLayers||this.checkLayers(A),E=C-1;E>=0;E-=1)(this.completeLayers||this.elements[E])&&this.elements[E].prepareFrame(A-this.layers[E].st);if(this.globalData._mdf)for(E=0;E<C;E+=1)(this.completeLayers||this.elements[E])&&this.elements[E].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(A,E){var C=A.getBaseElement();if(C){for(var R=0,I;R<E;)this.elements[R]&&this.elements[R]!==!0&&this.elements[R].getBaseElement()&&(I=this.elements[R].getBaseElement()),R+=1;I?this.layerElement.insertBefore(C,I):this.layerElement.appendChild(C)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(A,E,C){this.initFrame(),this.initBaseData(A,E,C),this.initTransform(A,E,C),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!E.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(A){if(this._mdf=!1,this.prepareRenderableFrame(A),this.prepareProperties(A,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=A/this.data.sr;else{var E=this.tm.v;E===this.data.op&&(E=this.data.op-1),this.renderedFrame=E}var C,R=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),C=R-1;C>=0;C-=1)(this.completeLayers||this.elements[C])&&(this.elements[C].prepareFrame(this.renderedFrame-this.layers[C].st),this.elements[C]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var A,E=this.layers.length;for(A=0;A<E;A+=1)(this.completeLayers||this.elements[A])&&this.elements[A].renderFrame()},ICompElement.prototype.setElements=function(A){this.elements=A},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var A,E=this.layers.length;for(A=0;A<E;A+=1)this.elements[A]&&this.elements[A].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(A,E,C){this.layers=A.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(A,E,C),this.tm=A.tm?PropertyFactory.getProp(this,A.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(A){return new SVGCompElement(A,this.globalData,this)};function SVGRenderer(A,E){this.animationItem=A,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var C="";if(E&&E.title){var R=createNS("title"),I=createElementID();R.setAttribute("id",I),R.textContent=E.title,this.svgElement.appendChild(R),C+=I}if(E&&E.description){var B=createNS("desc"),U=createElementID();B.setAttribute("id",U),B.textContent=E.description,this.svgElement.appendChild(B),C+=" "+U}C&&this.svgElement.setAttribute("aria-labelledby",C);var V=createNS("defs");this.svgElement.appendChild(V);var X=createNS("g");this.svgElement.appendChild(X),this.layerElement=X,this.renderConfig={preserveAspectRatio:E&&E.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:E&&E.contentVisibility||"visible",progressiveLoad:E&&E.progressiveLoad||!1,hideOnTransparent:!(E&&E.hideOnTransparent===!1),viewBoxOnly:E&&E.viewBoxOnly||!1,viewBoxSize:E&&E.viewBoxSize||!1,className:E&&E.className||"",id:E&&E.id||"",focusable:E&&E.focusable,filterSize:{width:E&&E.filterSize&&E.filterSize.width||"100%",height:E&&E.filterSize&&E.filterSize.height||"100%",x:E&&E.filterSize&&E.filterSize.x||"0%",y:E&&E.filterSize&&E.filterSize.y||"0%"},width:E&&E.width,height:E&&E.height,runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:V,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(A){return new SVGCompElement(A,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(E){var C,R=E.length,I="_";for(C=0;C<R;C+=1)I+=E[C].transform.key+"_";var B=this.sequences[I];return B||(B={transforms:[].concat(E),finalTransform:new Matrix,_mdf:!1},this.sequences[I]=B,this.sequenceList.push(B)),B},processSequence:function(E,C){for(var R=0,I=E.transforms.length,B=C;R<I&&!C;){if(E.transforms[R].transform.mProps._mdf){B=!0;break}R+=1}if(B)for(E.finalTransform.reset(),R=I-1;R>=0;R-=1)E.finalTransform.multiply(E.transforms[R].transform.mProps.v);E._mdf=B},processSequences:function(E){var C,R=this.sequenceList.length;for(C=0;C<R;C+=1)this.processSequence(this.sequenceList[C],E)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var E="__lottie_element_luma_buffer",C=null,R=null,I=null;function B(){var X=createNS("svg"),K=createNS("filter"),J=createNS("feColorMatrix");return K.setAttribute("id",E),J.setAttribute("type","matrix"),J.setAttribute("color-interpolation-filters","sRGB"),J.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),K.appendChild(J),X.appendChild(K),X.setAttribute("id",E+"_svg"),featureSupport.svgLumaHidden&&(X.style.display="none"),X}function U(){C||(I=B(),document.body.appendChild(I),C=createTag("canvas"),R=C.getContext("2d"),R.filter="url(#"+E+")",R.fillStyle="rgba(0,0,0,0)",R.fillRect(0,0,1,1))}function V(X){return C||U(),C.width=X.width,C.height=X.height,R.filter="url(#"+E+")",C}return{load:U,get:V}};function createCanvas(A,E){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(A,E);var C=createTag("canvas");return C.width=A,C.height=E,C}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(A){var E,C=A.data.ef?A.data.ef.length:0;this.filters=[];var R;for(E=0;E<C;E+=1){R=null;var I=A.data.ef[E].ty;if(registeredEffects[I]){var B=registeredEffects[I].effect;R=new B(A.effectsManager.effectElements[E],A)}R&&this.filters.push(R)}this.filters.length&&A.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(A){var E,C=this.filters.length;for(E=0;E<C;E+=1)this.filters[E].renderFrame(A)},CVEffects.prototype.getEffects=function(A){var E,C=this.filters.length,R=[];for(E=0;E<C;E+=1)this.filters[E].type===A&&R.push(this.filters[E]);return R};function registerEffect(A,E){registeredEffects[A]={effect:E}}function CVMaskElement(A,E){this.data=A,this.element=E,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var C,R=this.masksProperties.length,I=!1;for(C=0;C<R;C+=1)this.masksProperties[C].mode!=="n"&&(I=!0),this.viewData[C]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[C],3);this.hasMasks=I,I&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var A=this.element.finalTransform.mat,E=this.element.canvasContext,C,R=this.masksProperties.length,I,B,U;for(E.beginPath(),C=0;C<R;C+=1)if(this.masksProperties[C].mode!=="n"){this.masksProperties[C].inv&&(E.moveTo(0,0),E.lineTo(this.element.globalData.compSize.w,0),E.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),E.lineTo(0,this.element.globalData.compSize.h),E.lineTo(0,0)),U=this.viewData[C].v,I=A.applyToPointArray(U.v[0][0],U.v[0][1],0),E.moveTo(I[0],I[1]);var V,X=U._length;for(V=1;V<X;V+=1)B=A.applyToTriplePoints(U.o[V-1],U.i[V],U.v[V]),E.bezierCurveTo(B[0],B[1],B[2],B[3],B[4],B[5]);B=A.applyToTriplePoints(U.o[V-1],U.i[0],U.v[0]),E.bezierCurveTo(B[0],B[1],B[2],B[3],B[4],B[5])}this.element.globalData.renderer.save(!0),E.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var E=this.globalData.canvasContext,C=assetLoader.createCanvas(E.canvas.width,E.canvas.height);this.buffers.push(C);var R=assetLoader.createCanvas(E.canvas.width,E.canvas.height);this.buffers.push(R),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var E=this.globalData;if(E.blendMode!==this.data.bm){E.blendMode=this.data.bm;var C=getBlendMode(this.data.bm);E.canvasContext.globalCompositeOperation=C}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(E){E.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var E=this.buffers[0],C=E.getContext("2d");this.clearCanvas(C),C.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var E=this.buffers[1],C=E.getContext("2d");this.clearCanvas(C),C.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var R=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(R.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var I=assetLoader.getLumaCanvas(this.canvasContext.canvas),B=I.getContext("2d");B.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(I,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(E,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(E){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!E)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var C=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(C),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(C),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(A,E,C,R){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var I=4;E.ty==="rc"?I=5:E.ty==="el"?I=6:E.ty==="sr"&&(I=7),this.sh=ShapePropertyFactory.getShapeProp(A,E,I,A);var B,U=C.length,V;for(B=0;B<U;B+=1)C[B].closed||(V={transforms:R.addTransformSequence(C[B].transforms),trNodes:[]},this.styledShapes.push(V),C[B].elements.push(V))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(A,E,C){this.shapes=[],this.shapesData=A.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(A,E){var C={data:A,type:A.ty,preTransforms:this.transformsManager.addTransformSequence(E),transforms:[],elements:[],closed:A.hd===!0},R={};if(A.ty==="fl"||A.ty==="st"?(R.c=PropertyFactory.getProp(this,A.c,1,255,this),R.c.k||(C.co="rgb("+bmFloor(R.c.v[0])+","+bmFloor(R.c.v[1])+","+bmFloor(R.c.v[2])+")")):(A.ty==="gf"||A.ty==="gs")&&(R.s=PropertyFactory.getProp(this,A.s,1,null,this),R.e=PropertyFactory.getProp(this,A.e,1,null,this),R.h=PropertyFactory.getProp(this,A.h||{k:0},0,.01,this),R.a=PropertyFactory.getProp(this,A.a||{k:0},0,degToRads,this),R.g=new GradientProperty(this,A.g,this)),R.o=PropertyFactory.getProp(this,A.o,0,.01,this),A.ty==="st"||A.ty==="gs"){if(C.lc=lineCapEnum[A.lc||2],C.lj=lineJoinEnum[A.lj||2],A.lj==1&&(C.ml=A.ml),R.w=PropertyFactory.getProp(this,A.w,0,null,this),R.w.k||(C.wi=R.w.v),A.d){var I=new DashProperty(this,A.d,"canvas",this);R.d=I,R.d.k||(C.da=R.d.dashArray,C.do=R.d.dashoffset[0])}}else C.r=A.r===2?"evenodd":"nonzero";return this.stylesList.push(C),R.style=C,R},CVShapeElement.prototype.createGroupElement=function(){var A={it:[],prevViewData:[]};return A},CVShapeElement.prototype.createTransformElement=function(A){var E={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,A.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,A,this)}};return E},CVShapeElement.prototype.createShapeElement=function(A){var E=new CVShapeData(this,A,this.stylesList,this.transformsManager);return this.shapes.push(E),this.addShapeToModifiers(E),E},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var A,E=this.itemsData.length;for(A=0;A<E;A+=1)this.prevViewData[A]=this.itemsData[A];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),E=this.dynamicProperties.length,A=0;A<E;A+=1)this.dynamicProperties[A].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(A){var E,C=this.stylesList.length;for(E=0;E<C;E+=1)this.stylesList[E].closed||this.stylesList[E].transforms.push(A)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var A,E=this.stylesList.length;for(A=0;A<E;A+=1)this.stylesList[A].closed||this.stylesList[A].transforms.pop()},CVShapeElement.prototype.closeStyles=function(A){var E,C=A.length;for(E=0;E<C;E+=1)A[E].closed=!0},CVShapeElement.prototype.searchShapes=function(A,E,C,R,I){var B,U=A.length-1,V,X,K=[],J=[],Y,Z,_e,xe=[].concat(I);for(B=U;B>=0;B-=1){if(Y=this.searchProcessedElement(A[B]),Y?E[B]=C[Y-1]:A[B]._shouldRender=R,A[B].ty==="fl"||A[B].ty==="st"||A[B].ty==="gf"||A[B].ty==="gs")Y?E[B].style.closed=!1:E[B]=this.createStyleElement(A[B],xe),K.push(E[B].style);else if(A[B].ty==="gr"){if(!Y)E[B]=this.createGroupElement(A[B]);else for(X=E[B].it.length,V=0;V<X;V+=1)E[B].prevViewData[V]=E[B].it[V];this.searchShapes(A[B].it,E[B].it,E[B].prevViewData,R,xe)}else A[B].ty==="tr"?(Y||(_e=this.createTransformElement(A[B]),E[B]=_e),xe.push(E[B]),this.addTransformToStyleList(E[B])):A[B].ty==="sh"||A[B].ty==="rc"||A[B].ty==="el"||A[B].ty==="sr"?Y||(E[B]=this.createShapeElement(A[B])):A[B].ty==="tm"||A[B].ty==="rd"||A[B].ty==="pb"||A[B].ty==="zz"||A[B].ty==="op"?(Y?(Z=E[B],Z.closed=!1):(Z=ShapeModifiers.getModifier(A[B].ty),Z.init(this,A[B]),E[B]=Z,this.shapeModifiers.push(Z)),J.push(Z)):A[B].ty==="rp"&&(Y?(Z=E[B],Z.closed=!0):(Z=ShapeModifiers.getModifier(A[B].ty),E[B]=Z,Z.init(this,A,B,E),this.shapeModifiers.push(Z),R=!1),J.push(Z));this.addProcessedElement(A[B],B+1)}for(this.removeTransformFromStyleList(),this.closeStyles(K),U=J.length,B=0;B<U;B+=1)J[B].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(A,E){(A._opMdf||E.op._mdf||this._isFirstFrame)&&(E.opacity=A.opacity,E.opacity*=E.op.v,E._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var A,E=this.stylesList.length,C,R,I,B,U,V,X=this.globalData.renderer,K=this.globalData.canvasContext,J,Y;for(A=0;A<E;A+=1)if(Y=this.stylesList[A],J=Y.type,!((J==="st"||J==="gs")&&Y.wi===0||!Y.data._shouldRender||Y.coOp===0||this.globalData.currentGlobalAlpha===0)){for(X.save(),U=Y.elements,J==="st"||J==="gs"?(X.ctxStrokeStyle(J==="st"?Y.co:Y.grd),X.ctxLineWidth(Y.wi),X.ctxLineCap(Y.lc),X.ctxLineJoin(Y.lj),X.ctxMiterLimit(Y.ml||0)):X.ctxFillStyle(J==="fl"?Y.co:Y.grd),X.ctxOpacity(Y.coOp),J!=="st"&&J!=="gs"&&K.beginPath(),X.ctxTransform(Y.preTransforms.finalTransform.props),R=U.length,C=0;C<R;C+=1){for((J==="st"||J==="gs")&&(K.beginPath(),Y.da&&(K.setLineDash(Y.da),K.lineDashOffset=Y.do)),V=U[C].trNodes,B=V.length,I=0;I<B;I+=1)V[I].t==="m"?K.moveTo(V[I].p[0],V[I].p[1]):V[I].t==="c"?K.bezierCurveTo(V[I].pts[0],V[I].pts[1],V[I].pts[2],V[I].pts[3],V[I].pts[4],V[I].pts[5]):K.closePath();(J==="st"||J==="gs")&&(X.ctxStroke(),Y.da&&K.setLineDash(this.dashResetter))}J!=="st"&&J!=="gs"&&this.globalData.renderer.ctxFill(Y.r),X.restore()}},CVShapeElement.prototype.renderShape=function(A,E,C,R){var I,B=E.length-1,U;for(U=A,I=B;I>=0;I-=1)E[I].ty==="tr"?(U=C[I].transform,this.renderShapeTransform(A,U)):E[I].ty==="sh"||E[I].ty==="el"||E[I].ty==="rc"||E[I].ty==="sr"?this.renderPath(E[I],C[I]):E[I].ty==="fl"?this.renderFill(E[I],C[I],U):E[I].ty==="st"?this.renderStroke(E[I],C[I],U):E[I].ty==="gf"||E[I].ty==="gs"?this.renderGradientFill(E[I],C[I],U):E[I].ty==="gr"?this.renderShape(U,E[I].it,C[I].it):E[I].ty;R&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(A,E){if(this._isFirstFrame||E._mdf||A.transforms._mdf){var C=A.trNodes,R=E.paths,I,B,U,V=R._length;C.length=0;var X=A.transforms.finalTransform;for(U=0;U<V;U+=1){var K=R.shapes[U];if(K&&K.v){for(B=K._length,I=1;I<B;I+=1)I===1&&C.push({t:"m",p:X.applyToPointArray(K.v[0][0],K.v[0][1],0)}),C.push({t:"c",pts:X.applyToTriplePoints(K.o[I-1],K.i[I],K.v[I])});B===1&&C.push({t:"m",p:X.applyToPointArray(K.v[0][0],K.v[0][1],0)}),K.c&&B&&(C.push({t:"c",pts:X.applyToTriplePoints(K.o[I-1],K.i[0],K.v[0])}),C.push({t:"z"}))}}A.trNodes=C}},CVShapeElement.prototype.renderPath=function(A,E){if(A.hd!==!0&&A._shouldRender){var C,R=E.styledShapes.length;for(C=0;C<R;C+=1)this.renderStyledShape(E.styledShapes[C],E.sh)}},CVShapeElement.prototype.renderFill=function(A,E,C){var R=E.style;(E.c._mdf||this._isFirstFrame)&&(R.co="rgb("+bmFloor(E.c.v[0])+","+bmFloor(E.c.v[1])+","+bmFloor(E.c.v[2])+")"),(E.o._mdf||C._opMdf||this._isFirstFrame)&&(R.coOp=E.o.v*C.opacity)},CVShapeElement.prototype.renderGradientFill=function(A,E,C){var R=E.style,I;if(!R.grd||E.g._mdf||E.s._mdf||E.e._mdf||A.t!==1&&(E.h._mdf||E.a._mdf)){var B=this.globalData.canvasContext,U=E.s.v,V=E.e.v;if(A.t===1)I=B.createLinearGradient(U[0],U[1],V[0],V[1]);else{var X=Math.sqrt(Math.pow(U[0]-V[0],2)+Math.pow(U[1]-V[1],2)),K=Math.atan2(V[1]-U[1],V[0]-U[0]),J=E.h.v;J>=1?J=.99:J<=-1&&(J=-.99);var Y=X*J,Z=Math.cos(K+E.a.v)*Y+U[0],_e=Math.sin(K+E.a.v)*Y+U[1];I=B.createRadialGradient(Z,_e,0,U[0],U[1],X)}var xe,Se=A.g.p,Pe=E.g.c,Ee=1;for(xe=0;xe<Se;xe+=1)E.g._hasOpacity&&E.g._collapsable&&(Ee=E.g.o[xe*2+1]),I.addColorStop(Pe[xe*4]/100,"rgba("+Pe[xe*4+1]+","+Pe[xe*4+2]+","+Pe[xe*4+3]+","+Ee+")");R.grd=I}R.coOp=E.o.v*C.opacity},CVShapeElement.prototype.renderStroke=function(A,E,C){var R=E.style,I=E.d;I&&(I._mdf||this._isFirstFrame)&&(R.da=I.dashArray,R.do=I.dashoffset[0]),(E.c._mdf||this._isFirstFrame)&&(R.co="rgb("+bmFloor(E.c.v[0])+","+bmFloor(E.c.v[1])+","+bmFloor(E.c.v[2])+")"),(E.o._mdf||C._opMdf||this._isFirstFrame)&&(R.coOp=E.o.v*C.opacity),(E.w._mdf||this._isFirstFrame)&&(R.wi=E.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(A,E,C){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var A=this.textProperty.currentData;this.renderedLetters=createSizedArray(A.l?A.l.length:0);var E=!1;A.fc?(E=!0,this.values.fill=this.buildColor(A.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=E;var C=!1;A.sc&&(C=!0,this.values.stroke=this.buildColor(A.sc),this.values.sWidth=A.sw);var R=this.globalData.fontManager.getFontByName(A.f),I,B,U=A.l,V=this.mHelper;this.stroke=C,this.values.fValue=A.finalSize+"px "+this.globalData.fontManager.getFontByName(A.f).fFamily,B=A.finalText.length;var X,K,J,Y,Z,_e,xe,Se,Pe,Ee,Ae=this.data.singleShape,Te=A.tr*.001*A.finalSize,we=0,Ie=0,Fe=!0,ke=0;for(I=0;I<B;I+=1){X=this.globalData.fontManager.getCharData(A.finalText[I],R.fStyle,this.globalData.fontManager.getFontByName(A.f).fFamily),K=X&&X.data||{},V.reset(),Ae&&U[I].n&&(we=-Te,Ie+=A.yOffset,Ie+=Fe?1:0,Fe=!1),Z=K.shapes?K.shapes[0].it:[],xe=Z.length,V.scale(A.finalSize/100,A.finalSize/100),Ae&&this.applyTextPropertiesToMatrix(A,V,U[I].line,we,Ie),Pe=createSizedArray(xe-1);var Le=0;for(_e=0;_e<xe;_e+=1)if(Z[_e].ty==="sh"){for(Y=Z[_e].ks.k.i.length,Se=Z[_e].ks.k,Ee=[],J=1;J<Y;J+=1)J===1&&Ee.push(V.applyToX(Se.v[0][0],Se.v[0][1],0),V.applyToY(Se.v[0][0],Se.v[0][1],0)),Ee.push(V.applyToX(Se.o[J-1][0],Se.o[J-1][1],0),V.applyToY(Se.o[J-1][0],Se.o[J-1][1],0),V.applyToX(Se.i[J][0],Se.i[J][1],0),V.applyToY(Se.i[J][0],Se.i[J][1],0),V.applyToX(Se.v[J][0],Se.v[J][1],0),V.applyToY(Se.v[J][0],Se.v[J][1],0));Ee.push(V.applyToX(Se.o[J-1][0],Se.o[J-1][1],0),V.applyToY(Se.o[J-1][0],Se.o[J-1][1],0),V.applyToX(Se.i[0][0],Se.i[0][1],0),V.applyToY(Se.i[0][0],Se.i[0][1],0),V.applyToX(Se.v[0][0],Se.v[0][1],0),V.applyToY(Se.v[0][0],Se.v[0][1],0)),Pe[Le]=Ee,Le+=1}Ae&&(we+=U[I].l,we+=Te),this.textSpans[ke]?this.textSpans[ke].elem=Pe:this.textSpans[ke]={elem:Pe},ke+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var A=this.canvasContext;A.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var E,C,R,I,B,U,V=this.textAnimator.renderedLetters,X=this.textProperty.currentData.l;C=X.length;var K,J=null,Y=null,Z=null,_e,xe,Se=this.globalData.renderer;for(E=0;E<C;E+=1)if(!X[E].n){if(K=V[E],K&&(Se.save(),Se.ctxTransform(K.p),Se.ctxOpacity(K.o)),this.fill){for(K&&K.fc?J!==K.fc&&(Se.ctxFillStyle(K.fc),J=K.fc):J!==this.values.fill&&(J=this.values.fill,Se.ctxFillStyle(this.values.fill)),_e=this.textSpans[E].elem,I=_e.length,this.globalData.canvasContext.beginPath(),R=0;R<I;R+=1)for(xe=_e[R],U=xe.length,this.globalData.canvasContext.moveTo(xe[0],xe[1]),B=2;B<U;B+=6)this.globalData.canvasContext.bezierCurveTo(xe[B],xe[B+1],xe[B+2],xe[B+3],xe[B+4],xe[B+5]);this.globalData.canvasContext.closePath(),Se.ctxFill()}if(this.stroke){for(K&&K.sw?Z!==K.sw&&(Z=K.sw,Se.ctxLineWidth(K.sw)):Z!==this.values.sWidth&&(Z=this.values.sWidth,Se.ctxLineWidth(this.values.sWidth)),K&&K.sc?Y!==K.sc&&(Y=K.sc,Se.ctxStrokeStyle(K.sc)):Y!==this.values.stroke&&(Y=this.values.stroke,Se.ctxStrokeStyle(this.values.stroke)),_e=this.textSpans[E].elem,I=_e.length,this.globalData.canvasContext.beginPath(),R=0;R<I;R+=1)for(xe=_e[R],U=xe.length,this.globalData.canvasContext.moveTo(xe[0],xe[1]),B=2;B<U;B+=6)this.globalData.canvasContext.bezierCurveTo(xe[B],xe[B+1],xe[B+2],xe[B+3],xe[B+4],xe[B+5]);this.globalData.canvasContext.closePath(),Se.ctxStroke()}K&&this.globalData.renderer.restore()}};function CVImageElement(A,E,C){this.assetData=E.getAssetData(A.refId),this.img=E.imageLoader.getAsset(this.assetData),this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var A=createTag("canvas");A.width=this.assetData.w,A.height=this.assetData.h;var E=A.getContext("2d"),C=this.img.width,R=this.img.height,I=C/R,B=this.assetData.w/this.assetData.h,U,V,X=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;I>B&&X==="xMidYMid slice"||I<B&&X!=="xMidYMid slice"?(V=R,U=V*B):(U=C,V=U/B),E.drawImage(this.img,(C-U)/2,(R-V)/2,U,V,0,0,this.assetData.w,this.assetData.h),this.img=A}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(A,E,C){this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(A){return new CVShapeElement(A,this.globalData,this)},CanvasRendererBase.prototype.createText=function(A){return new CVTextElement(A,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(A){return new CVImageElement(A,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(A){return new CVSolidElement(A,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(A){A[0]===1&&A[1]===0&&A[4]===0&&A[5]===1&&A[12]===0&&A[13]===0||this.canvasContext.transform(A[0],A[1],A[4],A[5],A[12],A[13])},CanvasRendererBase.prototype.ctxOpacity=function(A){this.canvasContext.globalAlpha*=A<0?0:A},CanvasRendererBase.prototype.ctxFillStyle=function(A){this.canvasContext.fillStyle=A},CanvasRendererBase.prototype.ctxStrokeStyle=function(A){this.canvasContext.strokeStyle=A},CanvasRendererBase.prototype.ctxLineWidth=function(A){this.canvasContext.lineWidth=A},CanvasRendererBase.prototype.ctxLineCap=function(A){this.canvasContext.lineCap=A},CanvasRendererBase.prototype.ctxLineJoin=function(A){this.canvasContext.lineJoin=A},CanvasRendererBase.prototype.ctxMiterLimit=function(A){this.canvasContext.miterLimit=A},CanvasRendererBase.prototype.ctxFill=function(A){this.canvasContext.fill(A)},CanvasRendererBase.prototype.ctxFillRect=function(A,E,C,R){this.canvasContext.fillRect(A,E,C,R)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(A){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}A&&(this.globalData.blendMode="source-over"),this.contextData.restore(A)},CanvasRendererBase.prototype.configAnimation=function(A){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var E=this.animationItem.container.style;E.width="100%",E.height="100%";var C="0px 0px 0px";E.transformOrigin=C,E.mozTransformOrigin=C,E.webkitTransformOrigin=C,E["-webkit-transform"]=C,E.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=A,this.layers=A.layers,this.transformCanvas={w:A.w,h:A.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(A,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(A.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(A,E){this.reset();var C,R;A?(C=A,R=E,this.canvasContext.canvas.width=C,this.canvasContext.canvas.height=R):(this.animationItem.wrapper&&this.animationItem.container?(C=this.animationItem.wrapper.offsetWidth,R=this.animationItem.wrapper.offsetHeight):(C=this.canvasContext.canvas.width,R=this.canvasContext.canvas.height),this.canvasContext.canvas.width=C*this.renderConfig.dpr,this.canvasContext.canvas.height=R*this.renderConfig.dpr);var I,B;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var U=this.renderConfig.preserveAspectRatio.split(" "),V=U[1]||"meet",X=U[0]||"xMidYMid",K=X.substr(0,4),J=X.substr(4);I=C/R,B=this.transformCanvas.w/this.transformCanvas.h,B>I&&V==="meet"||B<I&&V==="slice"?(this.transformCanvas.sx=C/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=C/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=R/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=R/(this.transformCanvas.h/this.renderConfig.dpr)),K==="xMid"&&(B<I&&V==="meet"||B>I&&V==="slice")?this.transformCanvas.tx=(C-this.transformCanvas.w*(R/this.transformCanvas.h))/2*this.renderConfig.dpr:K==="xMax"&&(B<I&&V==="meet"||B>I&&V==="slice")?this.transformCanvas.tx=(C-this.transformCanvas.w*(R/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,J==="YMid"&&(B>I&&V==="meet"||B<I&&V==="slice")?this.transformCanvas.ty=(R-this.transformCanvas.h*(C/this.transformCanvas.w))/2*this.renderConfig.dpr:J==="YMax"&&(B>I&&V==="meet"||B<I&&V==="slice")?this.transformCanvas.ty=(R-this.transformCanvas.h*(C/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=C/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=R/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var A,E=this.layers?this.layers.length:0;for(A=E-1;A>=0;A-=1)this.elements[A]&&this.elements[A].destroy&&this.elements[A].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(A,E){if(!(this.renderedFrame===A&&this.renderConfig.clearCanvas===!0&&!E||this.destroyed||A===-1)){this.renderedFrame=A,this.globalData.frameNum=A-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||E,this.globalData.projectInterface.currentFrame=A;var C,R=this.layers.length;for(this.completeLayers||this.checkLayers(A),C=R-1;C>=0;C-=1)(this.completeLayers||this.elements[C])&&this.elements[C].prepareFrame(A-this.layers[C].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),C=R-1;C>=0;C-=1)(this.completeLayers||this.elements[C])&&this.elements[C].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(A){var E=this.elements;if(!(E[A]||this.layers[A].ty===99)){var C=this.createItem(this.layers[A],this,this.globalData);E[A]=C,C.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var A=this.pendingElements.pop();A.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var A,E=15;for(A=0;A<E;A+=1){var C=new CanvasContext;this.stack[A]=C}this._length=E,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var A=this._length*2,E=0;for(E=this._length;E<A;E+=1)this.stack[E]=new CanvasContext;this._length=A},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(A){this.cArrPos-=1;var E=this.stack[this.cArrPos],C=E.transform,R,I=this.cTr.props;for(R=0;R<16;R+=1)I[R]=C[R];if(A){this.nativeContext.restore();var B=this.stack[this.cArrPos+1];this.appliedFillStyle=B.fillStyle,this.appliedStrokeStyle=B.strokeStyle,this.appliedLineWidth=B.lineWidth,this.appliedLineCap=B.lineCap,this.appliedLineJoin=B.lineJoin,this.appliedMiterLimit=B.miterLimit}this.nativeContext.setTransform(C[0],C[1],C[4],C[5],C[12],C[13]),(A||E.opacity!==-1&&this.currentOpacity!==E.opacity)&&(this.nativeContext.globalAlpha=E.opacity,this.currentOpacity=E.opacity),this.currentFillStyle=E.fillStyle,this.currentStrokeStyle=E.strokeStyle,this.currentLineWidth=E.lineWidth,this.currentLineCap=E.lineCap,this.currentLineJoin=E.lineJoin,this.currentMiterLimit=E.miterLimit},CVContextData.prototype.save=function(A){A&&this.nativeContext.save();var E=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var C=this.stack[this.cArrPos],R;for(R=0;R<16;R+=1)C.transform[R]=E[R];this.cArrPos+=1;var I=this.stack[this.cArrPos];I.opacity=C.opacity,I.fillStyle=C.fillStyle,I.strokeStyle=C.strokeStyle,I.lineWidth=C.lineWidth,I.lineCap=C.lineCap,I.lineJoin=C.lineJoin,I.miterLimit=C.miterLimit},CVContextData.prototype.setOpacity=function(A){this.stack[this.cArrPos].opacity=A},CVContextData.prototype.setContext=function(A){this.nativeContext=A},CVContextData.prototype.fillStyle=function(A){this.stack[this.cArrPos].fillStyle!==A&&(this.currentFillStyle=A,this.stack[this.cArrPos].fillStyle=A)},CVContextData.prototype.strokeStyle=function(A){this.stack[this.cArrPos].strokeStyle!==A&&(this.currentStrokeStyle=A,this.stack[this.cArrPos].strokeStyle=A)},CVContextData.prototype.lineWidth=function(A){this.stack[this.cArrPos].lineWidth!==A&&(this.currentLineWidth=A,this.stack[this.cArrPos].lineWidth=A)},CVContextData.prototype.lineCap=function(A){this.stack[this.cArrPos].lineCap!==A&&(this.currentLineCap=A,this.stack[this.cArrPos].lineCap=A)},CVContextData.prototype.lineJoin=function(A){this.stack[this.cArrPos].lineJoin!==A&&(this.currentLineJoin=A,this.stack[this.cArrPos].lineJoin=A)},CVContextData.prototype.miterLimit=function(A){this.stack[this.cArrPos].miterLimit!==A&&(this.currentMiterLimit=A,this.stack[this.cArrPos].miterLimit=A)},CVContextData.prototype.transform=function(A){this.transformMat.cloneFromProps(A);var E=this.cTr;this.transformMat.multiply(E),E.cloneFromProps(this.transformMat.props);var C=E.props;this.nativeContext.setTransform(C[0],C[1],C[4],C[5],C[12],C[13])},CVContextData.prototype.opacity=function(A){var E=this.stack[this.cArrPos].opacity;E*=A<0?0:A,this.stack[this.cArrPos].opacity!==E&&(this.currentOpacity!==A&&(this.nativeContext.globalAlpha=A,this.currentOpacity=A),this.stack[this.cArrPos].opacity=E)},CVContextData.prototype.fill=function(A){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(A)},CVContextData.prototype.fillRect=function(A,E,C,R){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(A,E,C,R)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(A,E,C){this.completeLayers=!1,this.layers=A.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(A,E,C),this.tm=A.tm?PropertyFactory.getProp(this,A.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var A=this.canvasContext;A.beginPath(),A.moveTo(0,0),A.lineTo(this.data.w,0),A.lineTo(this.data.w,this.data.h),A.lineTo(0,this.data.h),A.lineTo(0,0),A.clip();var E,C=this.layers.length;for(E=C-1;E>=0;E-=1)(this.completeLayers||this.elements[E])&&this.elements[E].renderFrame()},CVCompElement.prototype.destroy=function(){var A,E=this.layers.length;for(A=E-1;A>=0;A-=1)this.elements[A]&&this.elements[A].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(A){return new CVCompElement(A,this.globalData,this)};function CanvasRenderer(A,E){this.animationItem=A,this.renderConfig={clearCanvas:E&&E.clearCanvas!==void 0?E.clearCanvas:!0,context:E&&E.context||null,progressiveLoad:E&&E.progressiveLoad||!1,preserveAspectRatio:E&&E.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:E&&E.contentVisibility||"visible",className:E&&E.className||"",id:E&&E.id||"",runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.renderConfig.dpr=E&&E.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=E&&E.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(A){return new CVCompElement(A,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var E=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var C=this.finalTransform.mat.toCSS();E.transform=C,E.webkitTransform=C}this.finalTransform._opMdf&&(E.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(A,E,C){this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var A;this.data.hasMask?(A=createNS("rect"),A.setAttribute("width",this.data.sw),A.setAttribute("height",this.data.sh),A.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(A=createTag("div"),A.style.width=this.data.sw+"px",A.style.height=this.data.sh+"px",A.style.backgroundColor=this.data.sc),this.layerElement.appendChild(A)};function HShapeElement(A,E,C){this.shapes=[],this.shapesData=A.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(A,E,C),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var A;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),A=this.svgElement;else{A=createNS("svg");var E=this.comp.data?this.comp.data:this.globalData.compSize;A.setAttribute("width",E.w),A.setAttribute("height",E.h),A.appendChild(this.shapesContainer),this.layerElement.appendChild(A)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=A},HShapeElement.prototype.getTransformedPoint=function(A,E){var C,R=A.length;for(C=0;C<R;C+=1)E=A[C].mProps.v.applyToPointArray(E[0],E[1],0);return E},HShapeElement.prototype.calculateShapeBoundingBox=function(A,E){var C=A.sh.v,R=A.transformers,I,B=C._length,U,V,X,K;if(!(B<=1)){for(I=0;I<B-1;I+=1)U=this.getTransformedPoint(R,C.v[I]),V=this.getTransformedPoint(R,C.o[I]),X=this.getTransformedPoint(R,C.i[I+1]),K=this.getTransformedPoint(R,C.v[I+1]),this.checkBounds(U,V,X,K,E);C.c&&(U=this.getTransformedPoint(R,C.v[I]),V=this.getTransformedPoint(R,C.o[I]),X=this.getTransformedPoint(R,C.i[0]),K=this.getTransformedPoint(R,C.v[0]),this.checkBounds(U,V,X,K,E))}},HShapeElement.prototype.checkBounds=function(A,E,C,R,I){this.getBoundsOfCurve(A,E,C,R);var B=this.shapeBoundingBox;I.x=bmMin(B.left,I.x),I.xMax=bmMax(B.right,I.xMax),I.y=bmMin(B.top,I.y),I.yMax=bmMax(B.bottom,I.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(A,E,C,R){for(var I=[[A[0],R[0]],[A[1],R[1]]],B,U,V,X,K,J,Y,Z=0;Z<2;++Z)U=6*A[Z]-12*E[Z]+6*C[Z],B=-3*A[Z]+9*E[Z]-9*C[Z]+3*R[Z],V=3*E[Z]-3*A[Z],U|=0,B|=0,V|=0,B===0&&U===0||(B===0?(X=-V/U,X>0&&X<1&&I[Z].push(this.calculateF(X,A,E,C,R,Z))):(K=U*U-4*V*B,K>=0&&(J=(-U+bmSqrt(K))/(2*B),J>0&&J<1&&I[Z].push(this.calculateF(J,A,E,C,R,Z)),Y=(-U-bmSqrt(K))/(2*B),Y>0&&Y<1&&I[Z].push(this.calculateF(Y,A,E,C,R,Z)))));this.shapeBoundingBox.left=bmMin.apply(null,I[0]),this.shapeBoundingBox.top=bmMin.apply(null,I[1]),this.shapeBoundingBox.right=bmMax.apply(null,I[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,I[1])},HShapeElement.prototype.calculateF=function(A,E,C,R,I,B){return bmPow(1-A,3)*E[B]+3*bmPow(1-A,2)*A*C[B]+3*(1-A)*bmPow(A,2)*R[B]+bmPow(A,3)*I[B]},HShapeElement.prototype.calculateBoundingBox=function(A,E){var C,R=A.length;for(C=0;C<R;C+=1)A[C]&&A[C].sh?this.calculateShapeBoundingBox(A[C],E):A[C]&&A[C].it?this.calculateBoundingBox(A[C].it,E):A[C]&&A[C].style&&A[C].w&&this.expandStrokeBoundingBox(A[C].w,E)},HShapeElement.prototype.expandStrokeBoundingBox=function(A,E){var C=0;if(A.keyframes){for(var R=0;R<A.keyframes.length;R+=1){var I=A.keyframes[R].s;I>C&&(C=I)}C*=A.mult}else C=A.v*A.mult;E.x-=C,E.xMax+=C,E.y-=C,E.yMax+=C},HShapeElement.prototype.currentBoxContains=function(A){return this.currentBBox.x<=A.x&&this.currentBBox.y<=A.y&&this.currentBBox.width+this.currentBBox.x>=A.x+A.width&&this.currentBBox.height+this.currentBBox.y>=A.y+A.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var A=this.tempBoundingBox,E=999999;if(A.x=E,A.xMax=-E,A.y=E,A.yMax=-E,this.calculateBoundingBox(this.itemsData,A),A.width=A.xMax<A.x?0:A.xMax-A.x,A.height=A.yMax<A.y?0:A.yMax-A.y,this.currentBoxContains(A))return;var C=!1;if(this.currentBBox.w!==A.width&&(this.currentBBox.w=A.width,this.shapeCont.setAttribute("width",A.width),C=!0),this.currentBBox.h!==A.height&&(this.currentBBox.h=A.height,this.shapeCont.setAttribute("height",A.height),C=!0),C||this.currentBBox.x!==A.x||this.currentBBox.y!==A.y){this.currentBBox.w=A.width,this.currentBBox.h=A.height,this.currentBBox.x=A.x,this.currentBBox.y=A.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var R=this.shapeCont.style,I="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";R.transform=I,R.webkitTransform=I}}};function HTextElement(A,E,C){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var A=createNS("g");this.maskedElement.appendChild(A),this.innerElem=A}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var A=this.textProperty.currentData;this.renderedLetters=createSizedArray(A.l?A.l.length:0);var E=this.innerElem.style,C=A.fc?this.buildColor(A.fc):"rgba(0,0,0,0)";E.fill=C,E.color=C,A.sc&&(E.stroke=this.buildColor(A.sc),E.strokeWidth=A.sw+"px");var R=this.globalData.fontManager.getFontByName(A.f);if(!this.globalData.fontManager.chars)if(E.fontSize=A.finalSize+"px",E.lineHeight=A.finalSize+"px",R.fClass)this.innerElem.className=R.fClass;else{E.fontFamily=R.fFamily;var I=A.fWeight,B=A.fStyle;E.fontStyle=B,E.fontWeight=I}var U,V,X=A.l;V=X.length;var K,J,Y,Z=this.mHelper,_e,xe="",Se=0;for(U=0;U<V;U+=1){if(this.globalData.fontManager.chars?(this.textPaths[Se]?K=this.textPaths[Se]:(K=createNS("path"),K.setAttribute("stroke-linecap",lineCapEnum[1]),K.setAttribute("stroke-linejoin",lineJoinEnum[2]),K.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[Se]?(J=this.textSpans[Se],Y=J.children[0]):(J=createTag("div"),J.style.lineHeight=0,Y=createNS("svg"),Y.appendChild(K),styleDiv(J)))):this.isMasked?K=this.textPaths[Se]?this.textPaths[Se]:createNS("text"):this.textSpans[Se]?(J=this.textSpans[Se],K=this.textPaths[Se]):(J=createTag("span"),styleDiv(J),K=createTag("span"),styleDiv(K),J.appendChild(K)),this.globalData.fontManager.chars){var Pe=this.globalData.fontManager.getCharData(A.finalText[U],R.fStyle,this.globalData.fontManager.getFontByName(A.f).fFamily),Ee;if(Pe?Ee=Pe.data:Ee=null,Z.reset(),Ee&&Ee.shapes&&Ee.shapes.length&&(_e=Ee.shapes[0].it,Z.scale(A.finalSize/100,A.finalSize/100),xe=this.createPathShape(Z,_e),K.setAttribute("d",xe)),this.isMasked)this.innerElem.appendChild(K);else{if(this.innerElem.appendChild(J),Ee&&Ee.shapes){document.body.appendChild(Y);var Ae=Y.getBBox();Y.setAttribute("width",Ae.width+2),Y.setAttribute("height",Ae.height+2),Y.setAttribute("viewBox",Ae.x-1+" "+(Ae.y-1)+" "+(Ae.width+2)+" "+(Ae.height+2));var Te=Y.style,we="translate("+(Ae.x-1)+"px,"+(Ae.y-1)+"px)";Te.transform=we,Te.webkitTransform=we,X[U].yOffset=Ae.y-1}else Y.setAttribute("width",1),Y.setAttribute("height",1);J.appendChild(Y)}}else if(K.textContent=X[U].val,K.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(K);else{this.innerElem.appendChild(J);var Ie=K.style,Fe="translate3d(0,"+-A.finalSize/1.2+"px,0)";Ie.transform=Fe,Ie.webkitTransform=Fe}this.isMasked?this.textSpans[Se]=K:this.textSpans[Se]=J,this.textSpans[Se].style.display="block",this.textPaths[Se]=K,Se+=1}for(;Se<this.textSpans.length;)this.textSpans[Se].style.display="none",Se+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var A;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),A=this.svgElement.style;var E="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";A.transform=E,A.webkitTransform=E}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var C,R,I=0,B=this.textAnimator.renderedLetters,U=this.textProperty.currentData.l;R=U.length;var V,X,K;for(C=0;C<R;C+=1)U[C].n?I+=1:(X=this.textSpans[C],K=this.textPaths[C],V=B[I],I+=1,V._mdf.m&&(this.isMasked?X.setAttribute("transform",V.m):(X.style.webkitTransform=V.m,X.style.transform=V.m)),X.style.opacity=V.o,V.sw&&V._mdf.sw&&K.setAttribute("stroke-width",V.sw),V.sc&&V._mdf.sc&&K.setAttribute("stroke",V.sc),V.fc&&V._mdf.fc&&(K.setAttribute("fill",V.fc),K.style.color=V.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var J=this.innerElem.getBBox();this.currentBBox.w!==J.width&&(this.currentBBox.w=J.width,this.svgElement.setAttribute("width",J.width)),this.currentBBox.h!==J.height&&(this.currentBBox.h=J.height,this.svgElement.setAttribute("height",J.height));var Y=1;if(this.currentBBox.w!==J.width+Y*2||this.currentBBox.h!==J.height+Y*2||this.currentBBox.x!==J.x-Y||this.currentBBox.y!==J.y-Y){this.currentBBox.w=J.width+Y*2,this.currentBBox.h=J.height+Y*2,this.currentBBox.x=J.x-Y,this.currentBBox.y=J.y-Y,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),A=this.svgElement.style;var Z="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";A.transform=Z,A.webkitTransform=Z}}}};function HCameraElement(A,E,C){this.initFrame(),this.initBaseData(A,E,C),this.initHierarchy();var R=PropertyFactory.getProp;if(this.pe=R(this,A.pe,0,0,this),A.ks.p.s?(this.px=R(this,A.ks.p.x,1,0,this),this.py=R(this,A.ks.p.y,1,0,this),this.pz=R(this,A.ks.p.z,1,0,this)):this.p=R(this,A.ks.p,1,0,this),A.ks.a&&(this.a=R(this,A.ks.a,1,0,this)),A.ks.or.k.length&&A.ks.or.k[0].to){var I,B=A.ks.or.k.length;for(I=0;I<B;I+=1)A.ks.or.k[I].to=null,A.ks.or.k[I].ti=null}this.or=R(this,A.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=R(this,A.ks.rx,0,degToRads,this),this.ry=R(this,A.ks.ry,0,degToRads,this),this.rz=R(this,A.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var A,E=this.comp.threeDElements.length,C,R,I;for(A=0;A<E;A+=1)if(C=this.comp.threeDElements[A],C.type==="3d"){R=C.perspectiveElem.style,I=C.container.style;var B=this.pe.v+"px",U="0px 0px 0px",V="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";R.perspective=B,R.webkitPerspective=B,I.transformOrigin=U,I.mozTransformOrigin=U,I.webkitTransformOrigin=U,R.transform=V,R.webkitTransform=V}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var A=this._isFirstFrame,E,C;if(this.hierarchy)for(C=this.hierarchy.length,E=0;E<C;E+=1)A=this.hierarchy[E].finalTransform.mProp._mdf||A;if(A||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(C=this.hierarchy.length-1,E=C;E>=0;E-=1){var R=this.hierarchy[E].finalTransform.mProp;this.mat.translate(-R.p.v[0],-R.p.v[1],R.p.v[2]),this.mat.rotateX(-R.or.v[0]).rotateY(-R.or.v[1]).rotateZ(R.or.v[2]),this.mat.rotateX(-R.rx.v).rotateY(-R.ry.v).rotateZ(R.rz.v),this.mat.scale(1/R.s.v[0],1/R.s.v[1],1/R.s.v[2]),this.mat.translate(R.a.v[0],R.a.v[1],R.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var I;this.p?I=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:I=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var B=Math.sqrt(Math.pow(I[0],2)+Math.pow(I[1],2)+Math.pow(I[2],2)),U=[I[0]/B,I[1]/B,I[2]/B],V=Math.sqrt(U[2]*U[2]+U[0]*U[0]),X=Math.atan2(U[1],V),K=Math.atan2(U[0],-U[2]);this.mat.rotateY(K).rotateX(-X)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var J=!this._prevMat.equals(this.mat);if((J||this.pe._mdf)&&this.comp.threeDElements){C=this.comp.threeDElements.length;var Y,Z,_e;for(E=0;E<C;E+=1)if(Y=this.comp.threeDElements[E],Y.type==="3d"){if(J){var xe=this.mat.toCSS();_e=Y.container.style,_e.transform=xe,_e.webkitTransform=xe}this.pe._mdf&&(Z=Y.perspectiveElem.style,Z.perspective=this.pe.v+"px",Z.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(A){this.prepareProperties(A,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(A,E,C){this.assetData=E.getAssetData(A.refId),this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var A=this.globalData.getAssetsPath(this.assetData),E=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",A),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(E),E.crossOrigin="anonymous",E.src=A,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(A,E){this.animationItem=A,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:E&&E.className||"",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(E&&E.hideOnTransparent===!1),filterSize:{width:E&&E.filterSize&&E.filterSize.width||"400%",height:E&&E.filterSize&&E.filterSize.height||"400%",x:E&&E.filterSize&&E.filterSize.x||"-100%",y:E&&E.filterSize&&E.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var A=this.pendingElements.pop();A.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(A,E){var C=A.getBaseElement();if(C){var R=this.layers[E];if(!R.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(C,E);else{for(var I=0,B,U,V;I<E;)this.elements[I]&&this.elements[I]!==!0&&this.elements[I].getBaseElement&&(U=this.elements[I],V=this.layers[I].ddd?this.getThreeDContainerByPos(I):U.getBaseElement(),B=V||B),I+=1;B?(!R.ddd||!this.supports3d)&&this.layerElement.insertBefore(C,B):(!R.ddd||!this.supports3d)&&this.layerElement.appendChild(C)}else this.addTo3dContainer(C,E)}},HybridRendererBase.prototype.createShape=function(A){return this.supports3d?new HShapeElement(A,this.globalData,this):new SVGShapeElement(A,this.globalData,this)},HybridRendererBase.prototype.createText=function(A){return this.supports3d?new HTextElement(A,this.globalData,this):new SVGTextLottieElement(A,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(A){return this.camera=new HCameraElement(A,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(A){return this.supports3d?new HImageElement(A,this.globalData,this):new IImageElement(A,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(A){return this.supports3d?new HSolidElement(A,this.globalData,this):new ISolidElement(A,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(A){for(var E=0,C=this.threeDElements.length;E<C;){if(this.threeDElements[E].startPos<=A&&this.threeDElements[E].endPos>=A)return this.threeDElements[E].perspectiveElem;E+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(A,E){var C=createTag("div"),R,I;styleDiv(C);var B=createTag("div");if(styleDiv(B),E==="3d"){R=C.style,R.width=this.globalData.compSize.w+"px",R.height=this.globalData.compSize.h+"px";var U="50% 50%";R.webkitTransformOrigin=U,R.mozTransformOrigin=U,R.transformOrigin=U,I=B.style;var V="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";I.transform=V,I.webkitTransform=V}C.appendChild(B);var X={container:B,perspectiveElem:C,startPos:A,endPos:A,type:E};return this.threeDElements.push(X),X},HybridRendererBase.prototype.build3dContainers=function(){var A,E=this.layers.length,C,R="";for(A=0;A<E;A+=1)this.layers[A].ddd&&this.layers[A].ty!==3?(R!=="3d"&&(R="3d",C=this.createThreeDContainer(A,"3d")),C.endPos=Math.max(C.endPos,A)):(R!=="2d"&&(R="2d",C=this.createThreeDContainer(A,"2d")),C.endPos=Math.max(C.endPos,A));for(E=this.threeDElements.length,A=E-1;A>=0;A-=1)this.resizerElem.appendChild(this.threeDElements[A].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(A,E){for(var C=0,R=this.threeDElements.length;C<R;){if(E<=this.threeDElements[C].endPos){for(var I=this.threeDElements[C].startPos,B;I<E;)this.elements[I]&&this.elements[I].getBaseElement&&(B=this.elements[I].getBaseElement()),I+=1;B?this.threeDElements[C].container.insertBefore(A,B):this.threeDElements[C].container.appendChild(A);break}C+=1}},HybridRendererBase.prototype.configAnimation=function(A){var E=createTag("div"),C=this.animationItem.wrapper,R=E.style;R.width=A.w+"px",R.height=A.h+"px",this.resizerElem=E,styleDiv(E),R.transformStyle="flat",R.mozTransformStyle="flat",R.webkitTransformStyle="flat",this.renderConfig.className&&E.setAttribute("class",this.renderConfig.className),C.appendChild(E),R.overflow="hidden";var I=createNS("svg");I.setAttribute("width","1"),I.setAttribute("height","1"),styleDiv(I),this.resizerElem.appendChild(I);var B=createNS("defs");I.appendChild(B),this.data=A,this.setupGlobalData(A,I),this.globalData.defs=B,this.layers=A.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var A,E=this.layers?this.layers.length:0;for(A=0;A<E;A+=1)this.elements[A]&&this.elements[A].destroy&&this.elements[A].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var A=this.animationItem.wrapper.offsetWidth,E=this.animationItem.wrapper.offsetHeight,C=A/E,R=this.globalData.compSize.w/this.globalData.compSize.h,I,B,U,V;R>C?(I=A/this.globalData.compSize.w,B=A/this.globalData.compSize.w,U=0,V=(E-this.globalData.compSize.h*(A/this.globalData.compSize.w))/2):(I=E/this.globalData.compSize.h,B=E/this.globalData.compSize.h,U=(A-this.globalData.compSize.w*(E/this.globalData.compSize.h))/2,V=0);var X=this.resizerElem.style;X.webkitTransform="matrix3d("+I+",0,0,0,0,"+B+",0,0,0,0,1,0,"+U+","+V+",0,1)",X.transform=X.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var A=this.globalData.compSize.w,E=this.globalData.compSize.h,C,R=this.threeDElements.length;for(C=0;C<R;C+=1){var I=this.threeDElements[C].perspectiveElem.style;I.webkitPerspective=Math.sqrt(Math.pow(A,2)+Math.pow(E,2))+"px",I.perspective=I.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(A){var E,C=A.length,R=createTag("div");for(E=0;E<C;E+=1)if(A[E].xt){var I=this.createComp(A[E],R,this.globalData.comp,null);I.initExpressions(),this.globalData.projectInterface.registerComposition(I)}};function HCompElement(A,E,C){this.layers=A.layers,this.supports3d=!A.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(A,E,C),this.tm=A.tm?PropertyFactory.getProp(this,A.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(A,E){for(var C=0,R;C<E;)this.elements[C]&&this.elements[C].getBaseElement&&(R=this.elements[C].getBaseElement()),C+=1;R?this.layerElement.insertBefore(A,R):this.layerElement.appendChild(A)},HCompElement.prototype.createComp=function(A){return this.supports3d?new HCompElement(A,this.globalData,this):new SVGCompElement(A,this.globalData,this)};function HybridRenderer(A,E){this.animationItem=A,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:E&&E.className||"",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(E&&E.hideOnTransparent===!1),filterSize:{width:E&&E.filterSize&&E.filterSize.width||"400%",height:E&&E.filterSize&&E.filterSize.height||"400%",x:E&&E.filterSize&&E.filterSize.x||"-100%",y:E&&E.filterSize&&E.filterSize.y||"-100%"},runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(A){return this.supports3d?new HCompElement(A,this.globalData,this):new SVGCompElement(A,this.globalData,this)};var CompExpressionInterface=function(){return function(A){function E(C){for(var R=0,I=A.layers.length;R<I;){if(A.layers[R].nm===C||A.layers[R].ind===C)return A.elements[R].layerInterface;R+=1}return null}return Object.defineProperty(E,"_name",{value:A.data.nm}),E.layer=E,E.pixelAspect=1,E.height=A.data.h||A.globalData.compSize.h,E.width=A.data.w||A.globalData.compSize.w,E.pixelAspect=1,E.frameDuration=1/A.globalData.frameRate,E.displayStartTime=0,E.numLayers=A.layers.length,E}}();function _typeof$2(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(C){return typeof C}:_typeof$2=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$2(A)}function seedRandom(A,E){var C=this,R=256,I=6,B=52,U="random",V=E.pow(R,I),X=E.pow(2,B),K=X*2,J=R-1,Y;function Z(Te,we,Ie){var Fe=[];we=we===!0?{entropy:!0}:we||{};var ke=Pe(Se(we.entropy?[Te,Ae(A)]:Te===null?Ee():Te,3),Fe),Le=new _e(Fe),Ge=function(){for(var Be=Le.g(I),je=V,Ue=0;Be<X;)Be=(Be+Ue)*R,je*=R,Ue=Le.g(1);for(;Be>=K;)Be/=2,je/=2,Ue>>>=1;return(Be+Ue)/je};return Ge.int32=function(){return Le.g(4)|0},Ge.quick=function(){return Le.g(4)/4294967296},Ge.double=Ge,Pe(Ae(Le.S),A),(we.pass||Ie||function(He,Be,je,Ue){return Ue&&(Ue.S&&xe(Ue,Le),He.state=function(){return xe(Le,{})}),je?(E[U]=He,Be):He})(Ge,ke,"global"in we?we.global:this==E,we.state)}E["seed"+U]=Z;function _e(Te){var we,Ie=Te.length,Fe=this,ke=0,Le=Fe.i=Fe.j=0,Ge=Fe.S=[];for(Ie||(Te=[Ie++]);ke<R;)Ge[ke]=ke++;for(ke=0;ke<R;ke++)Ge[ke]=Ge[Le=J&Le+Te[ke%Ie]+(we=Ge[ke])],Ge[Le]=we;Fe.g=function(He){for(var Be,je=0,Ue=Fe.i,ze=Fe.j,Ve=Fe.S;He--;)Be=Ve[Ue=J&Ue+1],je=je*R+Ve[J&(Ve[Ue]=Ve[ze=J&ze+Be])+(Ve[ze]=Be)];return Fe.i=Ue,Fe.j=ze,je}}function xe(Te,we){return we.i=Te.i,we.j=Te.j,we.S=Te.S.slice(),we}function Se(Te,we){var Ie=[],Fe=_typeof$2(Te),ke;if(we&&Fe=="object")for(ke in Te)try{Ie.push(Se(Te[ke],we-1))}catch{}return Ie.length?Ie:Fe=="string"?Te:Te+"\0"}function Pe(Te,we){for(var Ie=Te+"",Fe,ke=0;ke<Ie.length;)we[J&ke]=J&(Fe^=we[J&ke]*19)+Ie.charCodeAt(ke++);return Ae(we)}function Ee(){try{var Te=new Uint8Array(R);return(C.crypto||C.msCrypto).getRandomValues(Te),Ae(Te)}catch{var we=C.navigator,Ie=we&&we.plugins;return[+new Date,C,Ie,C.screen,Ae(A)]}}function Ae(Te){return String.fromCharCode.apply(0,Te)}Pe(E.random(),A)}function initialize$2(A){seedRandom([],A)}var propTypes={SHAPE:"shape"};function _typeof$1(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(C){return typeof C}:_typeof$1=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$1(A)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(A){return A.constructor===Array||A.constructor===Float32Array}function isNumerable(A,E){return A==="number"||E instanceof Number||A==="boolean"||A==="string"}function $bm_neg(A){var E=_typeof$1(A);if(E==="number"||A instanceof Number||E==="boolean")return-A;if($bm_isInstanceOfArray(A)){var C,R=A.length,I=[];for(C=0;C<R;C+=1)I[C]=-A[C];return I}return A.propType?A.v:-A}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(A,E){var C=_typeof$1(A),R=_typeof$1(E);if(isNumerable(C,A)&&isNumerable(R,E)||C==="string"||R==="string")return A+E;if($bm_isInstanceOfArray(A)&&isNumerable(R,E))return A=A.slice(0),A[0]+=E,A;if(isNumerable(C,A)&&$bm_isInstanceOfArray(E))return E=E.slice(0),E[0]=A+E[0],E;if($bm_isInstanceOfArray(A)&&$bm_isInstanceOfArray(E)){for(var I=0,B=A.length,U=E.length,V=[];I<B||I<U;)(typeof A[I]=="number"||A[I]instanceof Number)&&(typeof E[I]=="number"||E[I]instanceof Number)?V[I]=A[I]+E[I]:V[I]=E[I]===void 0?A[I]:A[I]||E[I],I+=1;return V}return 0}var add=sum;function sub(A,E){var C=_typeof$1(A),R=_typeof$1(E);if(isNumerable(C,A)&&isNumerable(R,E))return C==="string"&&(A=parseInt(A,10)),R==="string"&&(E=parseInt(E,10)),A-E;if($bm_isInstanceOfArray(A)&&isNumerable(R,E))return A=A.slice(0),A[0]-=E,A;if(isNumerable(C,A)&&$bm_isInstanceOfArray(E))return E=E.slice(0),E[0]=A-E[0],E;if($bm_isInstanceOfArray(A)&&$bm_isInstanceOfArray(E)){for(var I=0,B=A.length,U=E.length,V=[];I<B||I<U;)(typeof A[I]=="number"||A[I]instanceof Number)&&(typeof E[I]=="number"||E[I]instanceof Number)?V[I]=A[I]-E[I]:V[I]=E[I]===void 0?A[I]:A[I]||E[I],I+=1;return V}return 0}function mul(A,E){var C=_typeof$1(A),R=_typeof$1(E),I;if(isNumerable(C,A)&&isNumerable(R,E))return A*E;var B,U;if($bm_isInstanceOfArray(A)&&isNumerable(R,E)){for(U=A.length,I=createTypedArray("float32",U),B=0;B<U;B+=1)I[B]=A[B]*E;return I}if(isNumerable(C,A)&&$bm_isInstanceOfArray(E)){for(U=E.length,I=createTypedArray("float32",U),B=0;B<U;B+=1)I[B]=A*E[B];return I}return 0}function div(A,E){var C=_typeof$1(A),R=_typeof$1(E),I;if(isNumerable(C,A)&&isNumerable(R,E))return A/E;var B,U;if($bm_isInstanceOfArray(A)&&isNumerable(R,E)){for(U=A.length,I=createTypedArray("float32",U),B=0;B<U;B+=1)I[B]=A[B]/E;return I}if(isNumerable(C,A)&&$bm_isInstanceOfArray(E)){for(U=E.length,I=createTypedArray("float32",U),B=0;B<U;B+=1)I[B]=A/E[B];return I}return 0}function mod(A,E){return typeof A=="string"&&(A=parseInt(A,10)),typeof E=="string"&&(E=parseInt(E,10)),A%E}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(A,E,C){if(E>C){var R=C;C=E,E=R}return Math.min(Math.max(A,E),C)}function radiansToDegrees(A){return A/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(A){return A*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(A,E){if(typeof A=="number"||A instanceof Number)return E=E||0,Math.abs(A-E);E||(E=helperLengthArray);var C,R=Math.min(A.length,E.length),I=0;for(C=0;C<R;C+=1)I+=Math.pow(E[C]-A[C],2);return Math.sqrt(I)}function normalize(A){return div(A,length(A))}function rgbToHsl(A){var E=A[0],C=A[1],R=A[2],I=Math.max(E,C,R),B=Math.min(E,C,R),U,V,X=(I+B)/2;if(I===B)U=0,V=0;else{var K=I-B;switch(V=X>.5?K/(2-I-B):K/(I+B),I){case E:U=(C-R)/K+(C<R?6:0);break;case C:U=(R-E)/K+2;break;case R:U=(E-C)/K+4;break}U/=6}return[U,V,X,A[3]]}function hue2rgb(A,E,C){return C<0&&(C+=1),C>1&&(C-=1),C<1/6?A+(E-A)*6*C:C<1/2?E:C<2/3?A+(E-A)*(2/3-C)*6:A}function hslToRgb(A){var E=A[0],C=A[1],R=A[2],I,B,U;if(C===0)I=R,U=R,B=R;else{var V=R<.5?R*(1+C):R+C-R*C,X=2*R-V;I=hue2rgb(X,V,E+1/3),B=hue2rgb(X,V,E),U=hue2rgb(X,V,E-1/3)}return[I,B,U,A[3]]}function linear(A,E,C,R,I){if((R===void 0||I===void 0)&&(R=E,I=C,E=0,C=1),C<E){var B=C;C=E,E=B}if(A<=E)return R;if(A>=C)return I;var U=C===E?0:(A-E)/(C-E);if(!R.length)return R+(I-R)*U;var V,X=R.length,K=createTypedArray("float32",X);for(V=0;V<X;V+=1)K[V]=R[V]+(I[V]-R[V])*U;return K}function random(A,E){if(E===void 0&&(A===void 0?(A=0,E=1):(E=A,A=void 0)),E.length){var C,R=E.length;A||(A=createTypedArray("float32",R));var I=createTypedArray("float32",R),B=BMMath.random();for(C=0;C<R;C+=1)I[C]=A[C]+B*(E[C]-A[C]);return I}A===void 0&&(A=0);var U=BMMath.random();return A+U*(E-A)}function createPath(A,E,C,R){var I,B=A.length,U=shapePool.newElement();U.setPathData(!!R,B);var V=[0,0],X,K;for(I=0;I<B;I+=1)X=E&&E[I]?E[I]:V,K=C&&C[I]?C[I]:V,U.setTripleAt(A[I][0],A[I][1],K[0]+A[I][0],K[1]+A[I][1],X[0]+A[I][0],X[1]+A[I][1],I,!0);return U}function initiateExpression(elem,data,property){function noOp(A){return A}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function A(E,C){var R,I,B=this.pv.length?this.pv.length:1,U=createTypedArray("float32",B);E=5;var V=Math.floor(time*E);for(R=0,I=0;R<V;){for(I=0;I<B;I+=1)U[I]+=-C+C*2*BMMath.random();R+=1}var X=time*E,K=X-Math.floor(X),J=createTypedArray("float32",B);if(B>1){for(I=0;I<B;I+=1)J[I]=this.pv[I]+U[I]+(-C+C*2*BMMath.random())*K;return J}return this.pv+U[0]+(-C+C*2*BMMath.random())*K}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(A,E){return loopIn(A,E,!0)}function loopOutDuration(A,E){return loopOut(A,E,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(A,E){var C=[E[0]-A[0],E[1]-A[1],E[2]-A[2]],R=Math.atan2(C[0],Math.sqrt(C[1]*C[1]+C[2]*C[2]))/degToRads,I=-Math.atan2(C[1],C[2])/degToRads;return[I,R,0]}function easeOut(A,E,C,R,I){return applyEase(easeOutBez,A,E,C,R,I)}function easeIn(A,E,C,R,I){return applyEase(easeInBez,A,E,C,R,I)}function ease(A,E,C,R,I){return applyEase(easeInOutBez,A,E,C,R,I)}function applyEase(A,E,C,R,I,B){I===void 0?(I=C,B=R):E=(E-C)/(R-C),E>1?E=1:E<0&&(E=0);var U=A(E);if($bm_isInstanceOfArray(I)){var V,X=I.length,K=createTypedArray("float32",X);for(V=0;V<X;V+=1)K[V]=(B[V]-I[V])*U+I[V];return K}return(B-I)*U+I}function nearestKey(A){var E,C=data.k.length,R,I;if(!data.k.length||typeof data.k[0]=="number")R=0,I=0;else if(R=-1,A*=elem.comp.globalData.frameRate,A<data.k[0].t)R=1,I=data.k[0].t;else{for(E=0;E<C-1;E+=1)if(A===data.k[E].t){R=E+1,I=data.k[E].t;break}else if(A>data.k[E].t&&A<data.k[E+1].t){A-data.k[E].t>data.k[E+1].t-A?(R=E+2,I=data.k[E+1].t):(R=E+1,I=data.k[E].t);break}R===-1&&(R=E+1,I=data.k[E].t)}var B={};return B.index=R,B.time=I/elem.comp.globalData.frameRate,B}function key(A){var E,C,R;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+A);A-=1,E={time:data.k[A].t/elem.comp.globalData.frameRate,value:[]};var I=Object.prototype.hasOwnProperty.call(data.k[A],"s")?data.k[A].s:data.k[A-1].e;for(R=I.length,C=0;C<R;C+=1)E[C]=I[C],E.value[C]=I[C];return E}function framesToTime(A,E){return E||(E=elem.comp.globalData.frameRate),A/E}function timeToFrames(A,E){return!A&&A!==0&&(A=time),E||(E=elem.comp.globalData.frameRate),A*E}function seedRandom(A){BMMath.seedrandom(randSeed+A)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(A,E){return typeof value=="string"?E===void 0?value.substring(A):value.substring(A,E):""}function substr(A,E){return typeof value=="string"?E===void 0?value.substr(A):value.substr(A,E):""}function posterizeTime(A){time=A===0?0:Math.floor(time*A)/A,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(A){return value=A,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var A={};A.initExpressions=E,A.resetFrame=ExpressionManager.resetFrame;function E(C){var R=0,I=[];function B(){R+=1}function U(){R-=1,R===0&&X()}function V(K){I.indexOf(K)===-1&&I.push(K)}function X(){var K,J=I.length;for(K=0;K<J;K+=1)I[K].release();I.length=0}C.renderer.compInterface=CompExpressionInterface(C.renderer),C.renderer.globalData.projectInterface.registerComposition(C.renderer),C.renderer.globalData.pushExpression=B,C.renderer.globalData.popExpression=U,C.renderer.globalData.registerExpressionProperty=V}return A}(),MaskManagerInterface=function(){function A(C,R){this._mask=C,this._data=R}Object.defineProperty(A.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(A.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var E=function(R){var I=createSizedArray(R.viewData.length),B,U=R.viewData.length;for(B=0;B<U;B+=1)I[B]=new A(R.viewData[B],R.masksProperties[B]);var V=function(K){for(B=0;B<U;){if(R.masksProperties[B].nm===K)return I[B];B+=1}return null};return V};return E}(),ExpressionPropertyInterface=function(){var A={pv:0,v:0,mult:1},E={pv:[0,0,0],v:[0,0,0],mult:1};function C(U,V,X){Object.defineProperty(U,"velocity",{get:function(){return V.getVelocityAtTime(V.comp.currentFrame)}}),U.numKeys=V.keyframes?V.keyframes.length:0,U.key=function(K){if(!U.numKeys)return 0;var J="";"s"in V.keyframes[K-1]?J=V.keyframes[K-1].s:"e"in V.keyframes[K-2]?J=V.keyframes[K-2].e:J=V.keyframes[K-2].s;var Y=X==="unidimensional"?new Number(J):Object.assign({},J);return Y.time=V.keyframes[K-1].t/V.elem.comp.globalData.frameRate,Y.value=X==="unidimensional"?J[0]:J,Y},U.valueAtTime=V.getValueAtTime,U.speedAtTime=V.getSpeedAtTime,U.velocityAtTime=V.getVelocityAtTime,U.propertyGroup=V.propertyGroup}function R(U){(!U||!("pv"in U))&&(U=A);var V=1/U.mult,X=U.pv*V,K=new Number(X);return K.value=X,C(K,U,"unidimensional"),function(){return U.k&&U.getValue(),X=U.v*V,K.value!==X&&(K=new Number(X),K.value=X,C(K,U,"unidimensional")),K}}function I(U){(!U||!("pv"in U))&&(U=E);var V=1/U.mult,X=U.data&&U.data.l||U.pv.length,K=createTypedArray("float32",X),J=createTypedArray("float32",X);return K.value=J,C(K,U,"multidimensional"),function(){U.k&&U.getValue();for(var Y=0;Y<X;Y+=1)J[Y]=U.v[Y]*V,K[Y]=J[Y];return K}}function B(){return A}return function(U){return U?U.propType==="unidimensional"?R(U):I(U):B}}(),TransformExpressionInterface=function(){return function(A){function E(U){switch(U){case"scale":case"Scale":case"ADBE Scale":case 6:return E.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return E.rotation;case"ADBE Rotate X":return E.xRotation;case"ADBE Rotate Y":return E.yRotation;case"position":case"Position":case"ADBE Position":case 2:return E.position;case"ADBE Position_0":return E.xPosition;case"ADBE Position_1":return E.yPosition;case"ADBE Position_2":return E.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return E.anchorPoint;case"opacity":case"Opacity":case 11:return E.opacity;default:return null}}Object.defineProperty(E,"rotation",{get:ExpressionPropertyInterface(A.r||A.rz)}),Object.defineProperty(E,"zRotation",{get:ExpressionPropertyInterface(A.rz||A.r)}),Object.defineProperty(E,"xRotation",{get:ExpressionPropertyInterface(A.rx)}),Object.defineProperty(E,"yRotation",{get:ExpressionPropertyInterface(A.ry)}),Object.defineProperty(E,"scale",{get:ExpressionPropertyInterface(A.s)});var C,R,I,B;return A.p?B=ExpressionPropertyInterface(A.p):(C=ExpressionPropertyInterface(A.px),R=ExpressionPropertyInterface(A.py),A.pz&&(I=ExpressionPropertyInterface(A.pz))),Object.defineProperty(E,"position",{get:function(){return A.p?B():[C(),R(),I?I():0]}}),Object.defineProperty(E,"xPosition",{get:ExpressionPropertyInterface(A.px)}),Object.defineProperty(E,"yPosition",{get:ExpressionPropertyInterface(A.py)}),Object.defineProperty(E,"zPosition",{get:ExpressionPropertyInterface(A.pz)}),Object.defineProperty(E,"anchorPoint",{get:ExpressionPropertyInterface(A.a)}),Object.defineProperty(E,"opacity",{get:ExpressionPropertyInterface(A.o)}),Object.defineProperty(E,"skew",{get:ExpressionPropertyInterface(A.sk)}),Object.defineProperty(E,"skewAxis",{get:ExpressionPropertyInterface(A.sa)}),Object.defineProperty(E,"orientation",{get:ExpressionPropertyInterface(A.or)}),E}}(),LayerExpressionInterface=function(){function A(K){var J=new Matrix;if(K!==void 0){var Y=this._elem.finalTransform.mProp.getValueAtTime(K);Y.clone(J)}else{var Z=this._elem.finalTransform.mProp;Z.applyToMatrix(J)}return J}function E(K,J){var Y=this.getMatrix(J);return Y.props[12]=0,Y.props[13]=0,Y.props[14]=0,this.applyPoint(Y,K)}function C(K,J){var Y=this.getMatrix(J);return this.applyPoint(Y,K)}function R(K,J){var Y=this.getMatrix(J);return Y.props[12]=0,Y.props[13]=0,Y.props[14]=0,this.invertPoint(Y,K)}function I(K,J){var Y=this.getMatrix(J);return this.invertPoint(Y,K)}function B(K,J){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Y,Z=this._elem.hierarchy.length;for(Y=0;Y<Z;Y+=1)this._elem.hierarchy[Y].finalTransform.mProp.applyToMatrix(K)}return K.applyToPointArray(J[0],J[1],J[2]||0)}function U(K,J){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Y,Z=this._elem.hierarchy.length;for(Y=0;Y<Z;Y+=1)this._elem.hierarchy[Y].finalTransform.mProp.applyToMatrix(K)}return K.inversePoint(J)}function V(K){var J=new Matrix;if(J.reset(),this._elem.finalTransform.mProp.applyToMatrix(J),this._elem.hierarchy&&this._elem.hierarchy.length){var Y,Z=this._elem.hierarchy.length;for(Y=0;Y<Z;Y+=1)this._elem.hierarchy[Y].finalTransform.mProp.applyToMatrix(J);return J.inversePoint(K)}return J.inversePoint(K)}function X(){return[1,1,1,1]}return function(K){var J;function Y(Se){_e.mask=new MaskManagerInterface(Se,K)}function Z(Se){_e.effect=Se}function _e(Se){switch(Se){case"ADBE Root Vectors Group":case"Contents":case 2:return _e.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return J;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return _e.effect;case"ADBE Text Properties":return _e.textInterface;default:return null}}_e.getMatrix=A,_e.invertPoint=U,_e.applyPoint=B,_e.toWorld=C,_e.toWorldVec=E,_e.fromWorld=I,_e.fromWorldVec=R,_e.toComp=C,_e.fromComp=V,_e.sampleImage=X,_e.sourceRectAtTime=K.sourceRectAtTime.bind(K),_e._elem=K,J=TransformExpressionInterface(K.finalTransform.mProp);var xe=getDescriptor(J,"anchorPoint");return Object.defineProperties(_e,{hasParent:{get:function(){return K.hierarchy.length}},parent:{get:function(){return K.hierarchy[0].layerInterface}},rotation:getDescriptor(J,"rotation"),scale:getDescriptor(J,"scale"),position:getDescriptor(J,"position"),opacity:getDescriptor(J,"opacity"),anchorPoint:xe,anchor_point:xe,transform:{get:function(){return J}},active:{get:function(){return K.isInRange}}}),_e.startTime=K.data.st,_e.index=K.data.ind,_e.source=K.data.refId,_e.height=K.data.ty===0?K.data.h:100,_e.width=K.data.ty===0?K.data.w:100,_e.inPoint=K.data.ip/K.comp.globalData.frameRate,_e.outPoint=K.data.op/K.comp.globalData.frameRate,_e._name=K.data.nm,_e.registerMaskInterface=Y,_e.registerEffectsInterface=Z,_e}}(),propertyGroupFactory=function(){return function(A,E){return function(C){return C=C===void 0?1:C,C<=0?A:E(C-1)}}}(),PropertyInterface=function(){return function(A,E){var C={_name:A};function R(I){return I=I===void 0?1:I,I<=0?C:E(I-1)}return R}}(),EffectsExpressionInterface=function(){var A={createEffectsInterface:E};function E(I,B){if(I.effectsManager){var U=[],V=I.data.ef,X,K=I.effectsManager.effectElements.length;for(X=0;X<K;X+=1)U.push(C(V[X],I.effectsManager.effectElements[X],B,I));var J=I.data.ef||[],Y=function(_e){for(X=0,K=J.length;X<K;){if(_e===J[X].nm||_e===J[X].mn||_e===J[X].ix)return U[X];X+=1}return null};return Object.defineProperty(Y,"numProperties",{get:function(){return J.length}}),Y}return null}function C(I,B,U,V){function X(_e){for(var xe=I.ef,Se=0,Pe=xe.length;Se<Pe;){if(_e===xe[Se].nm||_e===xe[Se].mn||_e===xe[Se].ix)return xe[Se].ty===5?J[Se]:J[Se]();Se+=1}throw new Error}var K=propertyGroupFactory(X,U),J=[],Y,Z=I.ef.length;for(Y=0;Y<Z;Y+=1)I.ef[Y].ty===5?J.push(C(I.ef[Y],B.effectElements[Y],B.effectElements[Y].propertyGroup,V)):J.push(R(B.effectElements[Y],I.ef[Y].ty,V,K));return I.mn==="ADBE Color Control"&&Object.defineProperty(X,"color",{get:function(){return J[0]()}}),Object.defineProperties(X,{numProperties:{get:function(){return I.np}},_name:{value:I.nm},propertyGroup:{value:K}}),X.enabled=I.en!==0,X.active=X.enabled,X}function R(I,B,U,V){var X=ExpressionPropertyInterface(I.p);function K(){return B===10?U.comp.compInterface(I.p.v):X()}return I.p.setGroupProperty&&I.p.setGroupProperty(PropertyInterface("",V)),K}return A}(),ShapePathInterface=function(){return function(E,C,R){var I=C.sh;function B(V){return V==="Shape"||V==="shape"||V==="Path"||V==="path"||V==="ADBE Vector Shape"||V===2?B.path:null}var U=propertyGroupFactory(B,R);return I.setGroupProperty(PropertyInterface("Path",U)),Object.defineProperties(B,{path:{get:function(){return I.k&&I.getValue(),I}},shape:{get:function(){return I.k&&I.getValue(),I}},_name:{value:E.nm},ix:{value:E.ix},propertyIndex:{value:E.ix},mn:{value:E.mn},propertyGroup:{value:R}}),B}}(),ShapeExpressionInterface=function(){function A(xe,Se,Pe){var Ee=[],Ae,Te=xe?xe.length:0;for(Ae=0;Ae<Te;Ae+=1)xe[Ae].ty==="gr"?Ee.push(C(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="fl"?Ee.push(R(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="st"?Ee.push(U(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="tm"?Ee.push(V(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="tr"||(xe[Ae].ty==="el"?Ee.push(K(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="sr"?Ee.push(J(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="sh"?Ee.push(ShapePathInterface(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="rc"?Ee.push(Y(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="rd"?Ee.push(Z(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="rp"?Ee.push(_e(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="gf"?Ee.push(I(xe[Ae],Se[Ae],Pe)):Ee.push(B(xe[Ae],Se[Ae])));return Ee}function E(xe,Se,Pe){var Ee,Ae=function(Ie){for(var Fe=0,ke=Ee.length;Fe<ke;){if(Ee[Fe]._name===Ie||Ee[Fe].mn===Ie||Ee[Fe].propertyIndex===Ie||Ee[Fe].ix===Ie||Ee[Fe].ind===Ie)return Ee[Fe];Fe+=1}return typeof Ie=="number"?Ee[Ie-1]:null};Ae.propertyGroup=propertyGroupFactory(Ae,Pe),Ee=A(xe.it,Se.it,Ae.propertyGroup),Ae.numProperties=Ee.length;var Te=X(xe.it[xe.it.length-1],Se.it[Se.it.length-1],Ae.propertyGroup);return Ae.transform=Te,Ae.propertyIndex=xe.cix,Ae._name=xe.nm,Ae}function C(xe,Se,Pe){var Ee=function(Ie){switch(Ie){case"ADBE Vectors Group":case"Contents":case 2:return Ee.content;default:return Ee.transform}};Ee.propertyGroup=propertyGroupFactory(Ee,Pe);var Ae=E(xe,Se,Ee.propertyGroup),Te=X(xe.it[xe.it.length-1],Se.it[Se.it.length-1],Ee.propertyGroup);return Ee.content=Ae,Ee.transform=Te,Object.defineProperty(Ee,"_name",{get:function(){return xe.nm}}),Ee.numProperties=xe.np,Ee.propertyIndex=xe.ix,Ee.nm=xe.nm,Ee.mn=xe.mn,Ee}function R(xe,Se,Pe){function Ee(Ae){return Ae==="Color"||Ae==="color"?Ee.color:Ae==="Opacity"||Ae==="opacity"?Ee.opacity:null}return Object.defineProperties(Ee,{color:{get:ExpressionPropertyInterface(Se.c)},opacity:{get:ExpressionPropertyInterface(Se.o)},_name:{value:xe.nm},mn:{value:xe.mn}}),Se.c.setGroupProperty(PropertyInterface("Color",Pe)),Se.o.setGroupProperty(PropertyInterface("Opacity",Pe)),Ee}function I(xe,Se,Pe){function Ee(Ae){return Ae==="Start Point"||Ae==="start point"?Ee.startPoint:Ae==="End Point"||Ae==="end point"?Ee.endPoint:Ae==="Opacity"||Ae==="opacity"?Ee.opacity:null}return Object.defineProperties(Ee,{startPoint:{get:ExpressionPropertyInterface(Se.s)},endPoint:{get:ExpressionPropertyInterface(Se.e)},opacity:{get:ExpressionPropertyInterface(Se.o)},type:{get:function(){return"a"}},_name:{value:xe.nm},mn:{value:xe.mn}}),Se.s.setGroupProperty(PropertyInterface("Start Point",Pe)),Se.e.setGroupProperty(PropertyInterface("End Point",Pe)),Se.o.setGroupProperty(PropertyInterface("Opacity",Pe)),Ee}function B(){function xe(){return null}return xe}function U(xe,Se,Pe){var Ee=propertyGroupFactory(ke,Pe),Ae=propertyGroupFactory(Fe,Ee);function Te(Le){Object.defineProperty(Fe,xe.d[Le].nm,{get:ExpressionPropertyInterface(Se.d.dataProps[Le].p)})}var we,Ie=xe.d?xe.d.length:0,Fe={};for(we=0;we<Ie;we+=1)Te(we),Se.d.dataProps[we].p.setGroupProperty(Ae);function ke(Le){return Le==="Color"||Le==="color"?ke.color:Le==="Opacity"||Le==="opacity"?ke.opacity:Le==="Stroke Width"||Le==="stroke width"?ke.strokeWidth:null}return Object.defineProperties(ke,{color:{get:ExpressionPropertyInterface(Se.c)},opacity:{get:ExpressionPropertyInterface(Se.o)},strokeWidth:{get:ExpressionPropertyInterface(Se.w)},dash:{get:function(){return Fe}},_name:{value:xe.nm},mn:{value:xe.mn}}),Se.c.setGroupProperty(PropertyInterface("Color",Ee)),Se.o.setGroupProperty(PropertyInterface("Opacity",Ee)),Se.w.setGroupProperty(PropertyInterface("Stroke Width",Ee)),ke}function V(xe,Se,Pe){function Ee(Te){return Te===xe.e.ix||Te==="End"||Te==="end"?Ee.end:Te===xe.s.ix?Ee.start:Te===xe.o.ix?Ee.offset:null}var Ae=propertyGroupFactory(Ee,Pe);return Ee.propertyIndex=xe.ix,Se.s.setGroupProperty(PropertyInterface("Start",Ae)),Se.e.setGroupProperty(PropertyInterface("End",Ae)),Se.o.setGroupProperty(PropertyInterface("Offset",Ae)),Ee.propertyIndex=xe.ix,Ee.propertyGroup=Pe,Object.defineProperties(Ee,{start:{get:ExpressionPropertyInterface(Se.s)},end:{get:ExpressionPropertyInterface(Se.e)},offset:{get:ExpressionPropertyInterface(Se.o)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function X(xe,Se,Pe){function Ee(Te){return xe.a.ix===Te||Te==="Anchor Point"?Ee.anchorPoint:xe.o.ix===Te||Te==="Opacity"?Ee.opacity:xe.p.ix===Te||Te==="Position"?Ee.position:xe.r.ix===Te||Te==="Rotation"||Te==="ADBE Vector Rotation"?Ee.rotation:xe.s.ix===Te||Te==="Scale"?Ee.scale:xe.sk&&xe.sk.ix===Te||Te==="Skew"?Ee.skew:xe.sa&&xe.sa.ix===Te||Te==="Skew Axis"?Ee.skewAxis:null}var Ae=propertyGroupFactory(Ee,Pe);return Se.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",Ae)),Se.transform.mProps.p.setGroupProperty(PropertyInterface("Position",Ae)),Se.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",Ae)),Se.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",Ae)),Se.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",Ae)),Se.transform.mProps.sk&&(Se.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",Ae)),Se.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",Ae))),Se.transform.op.setGroupProperty(PropertyInterface("Opacity",Ae)),Object.defineProperties(Ee,{opacity:{get:ExpressionPropertyInterface(Se.transform.mProps.o)},position:{get:ExpressionPropertyInterface(Se.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(Se.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(Se.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(Se.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(Se.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(Se.transform.mProps.sa)},_name:{value:xe.nm}}),Ee.ty="tr",Ee.mn=xe.mn,Ee.propertyGroup=Pe,Ee}function K(xe,Se,Pe){function Ee(we){return xe.p.ix===we?Ee.position:xe.s.ix===we?Ee.size:null}var Ae=propertyGroupFactory(Ee,Pe);Ee.propertyIndex=xe.ix;var Te=Se.sh.ty==="tm"?Se.sh.prop:Se.sh;return Te.s.setGroupProperty(PropertyInterface("Size",Ae)),Te.p.setGroupProperty(PropertyInterface("Position",Ae)),Object.defineProperties(Ee,{size:{get:ExpressionPropertyInterface(Te.s)},position:{get:ExpressionPropertyInterface(Te.p)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function J(xe,Se,Pe){function Ee(we){return xe.p.ix===we?Ee.position:xe.r.ix===we?Ee.rotation:xe.pt.ix===we?Ee.points:xe.or.ix===we||we==="ADBE Vector Star Outer Radius"?Ee.outerRadius:xe.os.ix===we?Ee.outerRoundness:xe.ir&&(xe.ir.ix===we||we==="ADBE Vector Star Inner Radius")?Ee.innerRadius:xe.is&&xe.is.ix===we?Ee.innerRoundness:null}var Ae=propertyGroupFactory(Ee,Pe),Te=Se.sh.ty==="tm"?Se.sh.prop:Se.sh;return Ee.propertyIndex=xe.ix,Te.or.setGroupProperty(PropertyInterface("Outer Radius",Ae)),Te.os.setGroupProperty(PropertyInterface("Outer Roundness",Ae)),Te.pt.setGroupProperty(PropertyInterface("Points",Ae)),Te.p.setGroupProperty(PropertyInterface("Position",Ae)),Te.r.setGroupProperty(PropertyInterface("Rotation",Ae)),xe.ir&&(Te.ir.setGroupProperty(PropertyInterface("Inner Radius",Ae)),Te.is.setGroupProperty(PropertyInterface("Inner Roundness",Ae))),Object.defineProperties(Ee,{position:{get:ExpressionPropertyInterface(Te.p)},rotation:{get:ExpressionPropertyInterface(Te.r)},points:{get:ExpressionPropertyInterface(Te.pt)},outerRadius:{get:ExpressionPropertyInterface(Te.or)},outerRoundness:{get:ExpressionPropertyInterface(Te.os)},innerRadius:{get:ExpressionPropertyInterface(Te.ir)},innerRoundness:{get:ExpressionPropertyInterface(Te.is)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function Y(xe,Se,Pe){function Ee(we){return xe.p.ix===we?Ee.position:xe.r.ix===we?Ee.roundness:xe.s.ix===we||we==="Size"||we==="ADBE Vector Rect Size"?Ee.size:null}var Ae=propertyGroupFactory(Ee,Pe),Te=Se.sh.ty==="tm"?Se.sh.prop:Se.sh;return Ee.propertyIndex=xe.ix,Te.p.setGroupProperty(PropertyInterface("Position",Ae)),Te.s.setGroupProperty(PropertyInterface("Size",Ae)),Te.r.setGroupProperty(PropertyInterface("Rotation",Ae)),Object.defineProperties(Ee,{position:{get:ExpressionPropertyInterface(Te.p)},roundness:{get:ExpressionPropertyInterface(Te.r)},size:{get:ExpressionPropertyInterface(Te.s)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function Z(xe,Se,Pe){function Ee(we){return xe.r.ix===we||we==="Round Corners 1"?Ee.radius:null}var Ae=propertyGroupFactory(Ee,Pe),Te=Se;return Ee.propertyIndex=xe.ix,Te.rd.setGroupProperty(PropertyInterface("Radius",Ae)),Object.defineProperties(Ee,{radius:{get:ExpressionPropertyInterface(Te.rd)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function _e(xe,Se,Pe){function Ee(we){return xe.c.ix===we||we==="Copies"?Ee.copies:xe.o.ix===we||we==="Offset"?Ee.offset:null}var Ae=propertyGroupFactory(Ee,Pe),Te=Se;return Ee.propertyIndex=xe.ix,Te.c.setGroupProperty(PropertyInterface("Copies",Ae)),Te.o.setGroupProperty(PropertyInterface("Offset",Ae)),Object.defineProperties(Ee,{copies:{get:ExpressionPropertyInterface(Te.c)},offset:{get:ExpressionPropertyInterface(Te.o)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}return function(xe,Se,Pe){var Ee;function Ae(we){if(typeof we=="number")return we=we===void 0?1:we,we===0?Pe:Ee[we-1];for(var Ie=0,Fe=Ee.length;Ie<Fe;){if(Ee[Ie]._name===we)return Ee[Ie];Ie+=1}return null}function Te(){return Pe}return Ae.propertyGroup=propertyGroupFactory(Ae,Te),Ee=A(xe,Se,Ae.propertyGroup),Ae.numProperties=Ee.length,Ae._name="Contents",Ae}}(),TextExpressionInterface=function(){return function(A){var E;function C(R){switch(R){case"ADBE Text Document":return C.sourceText;default:return null}}return Object.defineProperty(C,"sourceText",{get:function(){A.textProperty.getValue();var I=A.textProperty.currentData.t;return(!E||I!==E.value)&&(E=new String(I),E.value=I||new String(I),Object.defineProperty(E,"style",{get:function(){return{fillColor:A.textProperty.currentData.fc}}})),E}}),C}}();function _typeof(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(C){return typeof C}:_typeof=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof(A)}var FootageInterface=function(){var A=function(R){var I="",B=R.getFootageData();function U(){return I="",B=R.getFootageData(),V}function V(X){if(B[X])return I=X,B=B[X],_typeof(B)==="object"?V:B;var K=X.indexOf(I);if(K!==-1){var J=parseInt(X.substr(K+I.length),10);return B=B[J],_typeof(B)==="object"?V:B}return""}return U},E=function(R){function I(B){return B==="Outline"?I.outlineInterface():null}return I._name="Outline",I.outlineInterface=A(R),I};return function(C){function R(I){return I==="Data"?R.dataInterface:null}return R._name="Data",R.dataInterface=E(C),R}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(A){return interfaces[A]||null}var expressionHelpers=function(){function A(U,V,X){V.x&&(X.k=!0,X.x=!0,X.initiateExpression=ExpressionManager.initiateExpression,X.effectsSequence.push(X.initiateExpression(U,V,X).bind(X)))}function E(U){return U*=this.elem.globalData.frameRate,U-=this.offsetTime,U!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<U?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(U,this._cachingAtTime),this._cachingAtTime.lastFrame=U),this._cachingAtTime.value}function C(U){var V=-.01,X=this.getValueAtTime(U),K=this.getValueAtTime(U+V),J=0;if(X.length){var Y;for(Y=0;Y<X.length;Y+=1)J+=Math.pow(K[Y]-X[Y],2);J=Math.sqrt(J)*100}else J=0;return J}function R(U){if(this.vel!==void 0)return this.vel;var V=-.001,X=this.getValueAtTime(U),K=this.getValueAtTime(U+V),J;if(X.length){J=createTypedArray("float32",X.length);var Y;for(Y=0;Y<X.length;Y+=1)J[Y]=(K[Y]-X[Y])/V}else J=(K-X)/V;return J}function I(){return this.pv}function B(U){this.propertyGroup=U}return{searchExpressions:A,getSpeedAtTime:C,getVelocityAtTime:R,getValueAtTime:E,getStaticValueAtTime:I,setGroupProperty:B}}();function addPropertyDecorator(){function A(Z,_e,xe){if(!this.k||!this.keyframes)return this.pv;Z=Z?Z.toLowerCase():"";var Se=this.comp.renderedFrame,Pe=this.keyframes,Ee=Pe[Pe.length-1].t;if(Se<=Ee)return this.pv;var Ae,Te;xe?(_e?Ae=Math.abs(Ee-this.elem.comp.globalData.frameRate*_e):Ae=Math.max(0,Ee-this.elem.data.ip),Te=Ee-Ae):((!_e||_e>Pe.length-1)&&(_e=Pe.length-1),Te=Pe[Pe.length-1-_e].t,Ae=Ee-Te);var we,Ie,Fe;if(Z==="pingpong"){var ke=Math.floor((Se-Te)/Ae);if(ke%2!==0)return this.getValueAtTime((Ae-(Se-Te)%Ae+Te)/this.comp.globalData.frameRate,0)}else if(Z==="offset"){var Le=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),Ge=this.getValueAtTime(Ee/this.comp.globalData.frameRate,0),He=this.getValueAtTime(((Se-Te)%Ae+Te)/this.comp.globalData.frameRate,0),Be=Math.floor((Se-Te)/Ae);if(this.pv.length){for(Fe=new Array(Le.length),Ie=Fe.length,we=0;we<Ie;we+=1)Fe[we]=(Ge[we]-Le[we])*Be+He[we];return Fe}return(Ge-Le)*Be+He}else if(Z==="continue"){var je=this.getValueAtTime(Ee/this.comp.globalData.frameRate,0),Ue=this.getValueAtTime((Ee-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Fe=new Array(je.length),Ie=Fe.length,we=0;we<Ie;we+=1)Fe[we]=je[we]+(je[we]-Ue[we])*((Se-Ee)/this.comp.globalData.frameRate)/5e-4;return Fe}return je+(je-Ue)*((Se-Ee)/.001)}return this.getValueAtTime(((Se-Te)%Ae+Te)/this.comp.globalData.frameRate,0)}function E(Z,_e,xe){if(!this.k)return this.pv;Z=Z?Z.toLowerCase():"";var Se=this.comp.renderedFrame,Pe=this.keyframes,Ee=Pe[0].t;if(Se>=Ee)return this.pv;var Ae,Te;xe?(_e?Ae=Math.abs(this.elem.comp.globalData.frameRate*_e):Ae=Math.max(0,this.elem.data.op-Ee),Te=Ee+Ae):((!_e||_e>Pe.length-1)&&(_e=Pe.length-1),Te=Pe[_e].t,Ae=Te-Ee);var we,Ie,Fe;if(Z==="pingpong"){var ke=Math.floor((Ee-Se)/Ae);if(ke%2===0)return this.getValueAtTime(((Ee-Se)%Ae+Ee)/this.comp.globalData.frameRate,0)}else if(Z==="offset"){var Le=this.getValueAtTime(Ee/this.comp.globalData.frameRate,0),Ge=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),He=this.getValueAtTime((Ae-(Ee-Se)%Ae+Ee)/this.comp.globalData.frameRate,0),Be=Math.floor((Ee-Se)/Ae)+1;if(this.pv.length){for(Fe=new Array(Le.length),Ie=Fe.length,we=0;we<Ie;we+=1)Fe[we]=He[we]-(Ge[we]-Le[we])*Be;return Fe}return He-(Ge-Le)*Be}else if(Z==="continue"){var je=this.getValueAtTime(Ee/this.comp.globalData.frameRate,0),Ue=this.getValueAtTime((Ee+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Fe=new Array(je.length),Ie=Fe.length,we=0;we<Ie;we+=1)Fe[we]=je[we]+(je[we]-Ue[we])*(Ee-Se)/.001;return Fe}return je+(je-Ue)*(Ee-Se)/.001}return this.getValueAtTime((Ae-((Ee-Se)%Ae+Ee))/this.comp.globalData.frameRate,0)}function C(Z,_e){if(!this.k)return this.pv;if(Z=(Z||.4)*.5,_e=Math.floor(_e||5),_e<=1)return this.pv;var xe=this.comp.renderedFrame/this.comp.globalData.frameRate,Se=xe-Z,Pe=xe+Z,Ee=_e>1?(Pe-Se)/(_e-1):1,Ae=0,Te=0,we;this.pv.length?we=createTypedArray("float32",this.pv.length):we=0;for(var Ie;Ae<_e;){if(Ie=this.getValueAtTime(Se+Ae*Ee),this.pv.length)for(Te=0;Te<this.pv.length;Te+=1)we[Te]+=Ie[Te];else we+=Ie;Ae+=1}if(this.pv.length)for(Te=0;Te<this.pv.length;Te+=1)we[Te]/=_e;else we/=_e;return we}function R(Z){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var _e=this._transformCachingAtTime.v;if(_e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var xe=this.a.getValueAtTime(Z);_e.translate(-xe[0]*this.a.mult,-xe[1]*this.a.mult,xe[2]*this.a.mult)}if(this.appliedTransformations<2){var Se=this.s.getValueAtTime(Z);_e.scale(Se[0]*this.s.mult,Se[1]*this.s.mult,Se[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Pe=this.sk.getValueAtTime(Z),Ee=this.sa.getValueAtTime(Z);_e.skewFromAxis(-Pe*this.sk.mult,Ee*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var Ae=this.r.getValueAtTime(Z);_e.rotate(-Ae*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var Te=this.rz.getValueAtTime(Z),we=this.ry.getValueAtTime(Z),Ie=this.rx.getValueAtTime(Z),Fe=this.or.getValueAtTime(Z);_e.rotateZ(-Te*this.rz.mult).rotateY(we*this.ry.mult).rotateX(Ie*this.rx.mult).rotateZ(-Fe[2]*this.or.mult).rotateY(Fe[1]*this.or.mult).rotateX(Fe[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var ke=this.px.getValueAtTime(Z),Le=this.py.getValueAtTime(Z);if(this.data.p.z){var Ge=this.pz.getValueAtTime(Z);_e.translate(ke*this.px.mult,Le*this.py.mult,-Ge*this.pz.mult)}else _e.translate(ke*this.px.mult,Le*this.py.mult,0)}else{var He=this.p.getValueAtTime(Z);_e.translate(He[0]*this.p.mult,He[1]*this.p.mult,-He[2]*this.p.mult)}return _e}function I(){return this.v.clone(new Matrix)}var B=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(Z,_e,xe){var Se=B(Z,_e,xe);return Se.dynamicProperties.length?Se.getValueAtTime=R.bind(Se):Se.getValueAtTime=I.bind(Se),Se.setGroupProperty=expressionHelpers.setGroupProperty,Se};var U=PropertyFactory.getProp;PropertyFactory.getProp=function(Z,_e,xe,Se,Pe){var Ee=U(Z,_e,xe,Se,Pe);Ee.kf?Ee.getValueAtTime=expressionHelpers.getValueAtTime.bind(Ee):Ee.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Ee),Ee.setGroupProperty=expressionHelpers.setGroupProperty,Ee.loopOut=A,Ee.loopIn=E,Ee.smooth=C,Ee.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Ee),Ee.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Ee),Ee.numKeys=_e.a===1?_e.k.length:0,Ee.propertyIndex=_e.ix;var Ae=0;return xe!==0&&(Ae=createTypedArray("float32",_e.a===1?_e.k[0].s.length:_e.k.length)),Ee._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:Ae},expressionHelpers.searchExpressions(Z,_e,Ee),Ee.k&&Pe.addDynamicProperty(Ee),Ee};function V(Z){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),Z*=this.elem.globalData.frameRate,Z-=this.offsetTime,Z!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<Z?this._caching.lastIndex:0,this._cachingAtTime.lastTime=Z,this.interpolateShape(Z,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var X=ShapePropertyFactory.getConstructorFunction(),K=ShapePropertyFactory.getKeyframedConstructorFunction();function J(){}J.prototype={vertices:function(_e,xe){this.k&&this.getValue();var Se=this.v;xe!==void 0&&(Se=this.getValueAtTime(xe,0));var Pe,Ee=Se._length,Ae=Se[_e],Te=Se.v,we=createSizedArray(Ee);for(Pe=0;Pe<Ee;Pe+=1)_e==="i"||_e==="o"?we[Pe]=[Ae[Pe][0]-Te[Pe][0],Ae[Pe][1]-Te[Pe][1]]:we[Pe]=[Ae[Pe][0],Ae[Pe][1]];return we},points:function(_e){return this.vertices("v",_e)},inTangents:function(_e){return this.vertices("i",_e)},outTangents:function(_e){return this.vertices("o",_e)},isClosed:function(){return this.v.c},pointOnPath:function(_e,xe){var Se=this.v;xe!==void 0&&(Se=this.getValueAtTime(xe,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(Se));for(var Pe=this._segmentsLength,Ee=Pe.lengths,Ae=Pe.totalLength*_e,Te=0,we=Ee.length,Ie=0,Fe;Te<we;){if(Ie+Ee[Te].addedLength>Ae){var ke=Te,Le=Se.c&&Te===we-1?0:Te+1,Ge=(Ae-Ie)/Ee[Te].addedLength;Fe=bez.getPointInSegment(Se.v[ke],Se.v[Le],Se.o[ke],Se.i[Le],Ge,Ee[Te]);break}else Ie+=Ee[Te].addedLength;Te+=1}return Fe||(Fe=Se.c?[Se.v[0][0],Se.v[0][1]]:[Se.v[Se._length-1][0],Se.v[Se._length-1][1]]),Fe},vectorOnPath:function(_e,xe,Se){_e==1?_e=this.v.c:_e==0&&(_e=.999);var Pe=this.pointOnPath(_e,xe),Ee=this.pointOnPath(_e+.001,xe),Ae=Ee[0]-Pe[0],Te=Ee[1]-Pe[1],we=Math.sqrt(Math.pow(Ae,2)+Math.pow(Te,2));if(we===0)return[0,0];var Ie=Se==="tangent"?[Ae/we,Te/we]:[-Te/we,Ae/we];return Ie},tangentOnPath:function(_e,xe){return this.vectorOnPath(_e,xe,"tangent")},normalOnPath:function(_e,xe){return this.vectorOnPath(_e,xe,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([J],X),extendPrototype([J],K),K.prototype.getValueAtTime=V,K.prototype.initiateExpression=ExpressionManager.initiateExpression;var Y=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(Z,_e,xe,Se,Pe){var Ee=Y(Z,_e,xe,Se,Pe);return Ee.propertyIndex=_e.ix,Ee.lock=!1,xe===3?expressionHelpers.searchExpressions(Z,_e.pt,Ee):xe===4&&expressionHelpers.searchExpressions(Z,_e.ks,Ee),Ee.k&&Z.addDynamicProperty(Ee),Ee}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function A(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(E,C){var R=this.calculateExpression(C);if(E.t!==R){var I={};return this.copyData(I,E),I.t=R.toString(),I.__complete=!1,I}return E},TextProperty.prototype.searchProperty=function(){var E=this.searchKeyframes(),C=this.searchExpressions();return this.kf=E||C,this.kf},TextProperty.prototype.searchExpressions=A}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function A(E,C){var R=createNS("feMerge");R.setAttribute("result",E);var I,B;for(B=0;B<C.length;B+=1)I=createNS("feMergeNode"),I.setAttribute("in",C[B]),R.appendChild(I),R.appendChild(I);return R}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(A,E,C,R,I){this.filterManager=E;var B=createNS("feColorMatrix");B.setAttribute("type","matrix"),B.setAttribute("color-interpolation-filters","linearRGB"),B.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=B,B.setAttribute("result",R+"_tint_1"),A.appendChild(B),B=createNS("feColorMatrix"),B.setAttribute("type","matrix"),B.setAttribute("color-interpolation-filters","sRGB"),B.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),B.setAttribute("result",R+"_tint_2"),A.appendChild(B),this.matrixFilter=B;var U=this.createMergeNode(R,[I,R+"_tint_1",R+"_tint_2"]);A.appendChild(U)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E=this.filterManager.effectElements[0].p.v,C=this.filterManager.effectElements[1].p.v,R=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+R+" 0"),this.matrixFilter.setAttribute("values",C[0]-E[0]+" 0 0 0 "+E[0]+" "+(C[1]-E[1])+" 0 0 0 "+E[1]+" "+(C[2]-E[2])+" 0 0 0 "+E[2]+" 0 0 0 1 0")}};function SVGFillFilter(A,E,C,R){this.filterManager=E;var I=createNS("feColorMatrix");I.setAttribute("type","matrix"),I.setAttribute("color-interpolation-filters","sRGB"),I.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),I.setAttribute("result",R),A.appendChild(I),this.matrixFilter=I}SVGFillFilter.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E=this.filterManager.effectElements[2].p.v,C=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+E[0]+" 0 0 0 0 "+E[1]+" 0 0 0 0 "+E[2]+" 0 0 0 "+C+" 0")}};function SVGStrokeEffect(A,E,C){this.initialized=!1,this.filterManager=E,this.elem=C,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var A=this.elem.layerElement.children||this.elem.layerElement.childNodes,E,C,R,I;for(this.filterManager.effectElements[1].p.v===1?(I=this.elem.maskManager.masksProperties.length,R=0):(R=this.filterManager.effectElements[0].p.v-1,I=R+1),C=createNS("g"),C.setAttribute("fill","none"),C.setAttribute("stroke-linecap","round"),C.setAttribute("stroke-dashoffset",1),R;R<I;R+=1)E=createNS("path"),C.appendChild(E),this.paths.push({p:E,m:R});if(this.filterManager.effectElements[10].p.v===3){var B=createNS("mask"),U=createElementID();B.setAttribute("id",U),B.setAttribute("mask-type","alpha"),B.appendChild(C),this.elem.globalData.defs.appendChild(B);var V=createNS("g");for(V.setAttribute("mask","url("+getLocationHref()+"#"+U+")");A[0];)V.appendChild(A[0]);this.elem.layerElement.appendChild(V),this.masker=B,C.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(A=this.elem.layerElement.children||this.elem.layerElement.childNodes;A.length;)this.elem.layerElement.removeChild(A[0]);this.elem.layerElement.appendChild(C),this.elem.layerElement.removeAttribute("mask"),C.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=C},SVGStrokeEffect.prototype.renderFrame=function(A){this.initialized||this.initialize();var E,C=this.paths.length,R,I;for(E=0;E<C;E+=1)if(this.paths[E].m!==-1&&(R=this.elem.maskManager.viewData[this.paths[E].m],I=this.paths[E].p,(A||this.filterManager._mdf||R.prop._mdf)&&I.setAttribute("d",R.lastPath),A||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||R.prop._mdf)){var B;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var U=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,V=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,X=I.getTotalLength();B="0 0 0 "+X*U+" ";var K=X*(V-U),J=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Y=Math.floor(K/J),Z;for(Z=0;Z<Y;Z+=1)B+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";B+="0 "+X*10+" 0 0"}else B="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;I.setAttribute("stroke-dasharray",B)}if((A||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(A||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(A||this.filterManager.effectElements[3].p._mdf)){var _e=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(_e[0]*255)+","+bmFloor(_e[1]*255)+","+bmFloor(_e[2]*255)+")")}};function SVGTritoneFilter(A,E,C,R){this.filterManager=E;var I=createNS("feColorMatrix");I.setAttribute("type","matrix"),I.setAttribute("color-interpolation-filters","linearRGB"),I.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),A.appendChild(I);var B=createNS("feComponentTransfer");B.setAttribute("color-interpolation-filters","sRGB"),B.setAttribute("result",R),this.matrixFilter=B;var U=createNS("feFuncR");U.setAttribute("type","table"),B.appendChild(U),this.feFuncR=U;var V=createNS("feFuncG");V.setAttribute("type","table"),B.appendChild(V),this.feFuncG=V;var X=createNS("feFuncB");X.setAttribute("type","table"),B.appendChild(X),this.feFuncB=X,A.appendChild(B)}SVGTritoneFilter.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E=this.filterManager.effectElements[0].p.v,C=this.filterManager.effectElements[1].p.v,R=this.filterManager.effectElements[2].p.v,I=R[0]+" "+C[0]+" "+E[0],B=R[1]+" "+C[1]+" "+E[1],U=R[2]+" "+C[2]+" "+E[2];this.feFuncR.setAttribute("tableValues",I),this.feFuncG.setAttribute("tableValues",B),this.feFuncB.setAttribute("tableValues",U)}};function SVGProLevelsFilter(A,E,C,R){this.filterManager=E;var I=this.filterManager.effectElements,B=createNS("feComponentTransfer");(I[10].p.k||I[10].p.v!==0||I[11].p.k||I[11].p.v!==1||I[12].p.k||I[12].p.v!==1||I[13].p.k||I[13].p.v!==0||I[14].p.k||I[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",B)),(I[17].p.k||I[17].p.v!==0||I[18].p.k||I[18].p.v!==1||I[19].p.k||I[19].p.v!==1||I[20].p.k||I[20].p.v!==0||I[21].p.k||I[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",B)),(I[24].p.k||I[24].p.v!==0||I[25].p.k||I[25].p.v!==1||I[26].p.k||I[26].p.v!==1||I[27].p.k||I[27].p.v!==0||I[28].p.k||I[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",B)),(I[31].p.k||I[31].p.v!==0||I[32].p.k||I[32].p.v!==1||I[33].p.k||I[33].p.v!==1||I[34].p.k||I[34].p.v!==0||I[35].p.k||I[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",B)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(B.setAttribute("color-interpolation-filters","sRGB"),A.appendChild(B)),(I[3].p.k||I[3].p.v!==0||I[4].p.k||I[4].p.v!==1||I[5].p.k||I[5].p.v!==1||I[6].p.k||I[6].p.v!==0||I[7].p.k||I[7].p.v!==1)&&(B=createNS("feComponentTransfer"),B.setAttribute("color-interpolation-filters","sRGB"),B.setAttribute("result",R),A.appendChild(B),this.feFuncRComposed=this.createFeFunc("feFuncR",B),this.feFuncGComposed=this.createFeFunc("feFuncG",B),this.feFuncBComposed=this.createFeFunc("feFuncB",B))}SVGProLevelsFilter.prototype.createFeFunc=function(A,E){var C=createNS(A);return C.setAttribute("type","table"),E.appendChild(C),C},SVGProLevelsFilter.prototype.getTableValue=function(A,E,C,R,I){for(var B=0,U=256,V,X=Math.min(A,E),K=Math.max(A,E),J=Array.call(null,{length:U}),Y,Z=0,_e=I-R,xe=E-A;B<=256;)V=B/256,V<=X?Y=xe<0?I:R:V>=K?Y=xe<0?R:I:Y=R+_e*Math.pow((V-A)/xe,1/C),J[Z]=Y,Z+=1,B+=256/(U-1);return J.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E,C=this.filterManager.effectElements;this.feFuncRComposed&&(A||C[3].p._mdf||C[4].p._mdf||C[5].p._mdf||C[6].p._mdf||C[7].p._mdf)&&(E=this.getTableValue(C[3].p.v,C[4].p.v,C[5].p.v,C[6].p.v,C[7].p.v),this.feFuncRComposed.setAttribute("tableValues",E),this.feFuncGComposed.setAttribute("tableValues",E),this.feFuncBComposed.setAttribute("tableValues",E)),this.feFuncR&&(A||C[10].p._mdf||C[11].p._mdf||C[12].p._mdf||C[13].p._mdf||C[14].p._mdf)&&(E=this.getTableValue(C[10].p.v,C[11].p.v,C[12].p.v,C[13].p.v,C[14].p.v),this.feFuncR.setAttribute("tableValues",E)),this.feFuncG&&(A||C[17].p._mdf||C[18].p._mdf||C[19].p._mdf||C[20].p._mdf||C[21].p._mdf)&&(E=this.getTableValue(C[17].p.v,C[18].p.v,C[19].p.v,C[20].p.v,C[21].p.v),this.feFuncG.setAttribute("tableValues",E)),this.feFuncB&&(A||C[24].p._mdf||C[25].p._mdf||C[26].p._mdf||C[27].p._mdf||C[28].p._mdf)&&(E=this.getTableValue(C[24].p.v,C[25].p.v,C[26].p.v,C[27].p.v,C[28].p.v),this.feFuncB.setAttribute("tableValues",E)),this.feFuncA&&(A||C[31].p._mdf||C[32].p._mdf||C[33].p._mdf||C[34].p._mdf||C[35].p._mdf)&&(E=this.getTableValue(C[31].p.v,C[32].p.v,C[33].p.v,C[34].p.v,C[35].p.v),this.feFuncA.setAttribute("tableValues",E))}};function SVGDropShadowEffect(A,E,C,R,I){var B=E.container.globalData.renderConfig.filterSize,U=E.data.fs||B;A.setAttribute("x",U.x||B.x),A.setAttribute("y",U.y||B.y),A.setAttribute("width",U.width||B.width),A.setAttribute("height",U.height||B.height),this.filterManager=E;var V=createNS("feGaussianBlur");V.setAttribute("in","SourceAlpha"),V.setAttribute("result",R+"_drop_shadow_1"),V.setAttribute("stdDeviation","0"),this.feGaussianBlur=V,A.appendChild(V);var X=createNS("feOffset");X.setAttribute("dx","25"),X.setAttribute("dy","0"),X.setAttribute("in",R+"_drop_shadow_1"),X.setAttribute("result",R+"_drop_shadow_2"),this.feOffset=X,A.appendChild(X);var K=createNS("feFlood");K.setAttribute("flood-color","#00ff00"),K.setAttribute("flood-opacity","1"),K.setAttribute("result",R+"_drop_shadow_3"),this.feFlood=K,A.appendChild(K);var J=createNS("feComposite");J.setAttribute("in",R+"_drop_shadow_3"),J.setAttribute("in2",R+"_drop_shadow_2"),J.setAttribute("operator","in"),J.setAttribute("result",R+"_drop_shadow_4"),A.appendChild(J);var Y=this.createMergeNode(R,[R+"_drop_shadow_4",I]);A.appendChild(Y)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){if((A||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),A||this.filterManager.effectElements[0].p._mdf){var E=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(E[0]*255),Math.round(E[1]*255),Math.round(E[2]*255)))}if((A||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),A||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var C=this.filterManager.effectElements[3].p.v,R=(this.filterManager.effectElements[2].p.v-90)*degToRads,I=C*Math.cos(R),B=C*Math.sin(R);this.feOffset.setAttribute("dx",I),this.feOffset.setAttribute("dy",B)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(A,E,C){this.initialized=!1,this.filterManager=E,this.filterElem=A,this.elem=C,C.matteElement=createNS("g"),C.matteElement.appendChild(C.layerElement),C.matteElement.appendChild(C.transformedElement),C.baseElement=C.matteElement}SVGMatte3Effect.prototype.findSymbol=function(A){for(var E=0,C=_svgMatteSymbols.length;E<C;){if(_svgMatteSymbols[E]===A)return _svgMatteSymbols[E];E+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(A,E){var C=A.layerElement.parentNode;if(C){for(var R=C.children,I=0,B=R.length;I<B&&R[I]!==A.layerElement;)I+=1;var U;I<=B-2&&(U=R[I+1]);var V=createNS("use");V.setAttribute("href","#"+E),U?C.insertBefore(V,U):C.appendChild(V)}},SVGMatte3Effect.prototype.setElementAsMask=function(A,E){if(!this.findSymbol(E)){var C=createElementID(),R=createNS("mask");R.setAttribute("id",E.layerId),R.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(E);var I=A.globalData.defs;I.appendChild(R);var B=createNS("symbol");B.setAttribute("id",C),this.replaceInParent(E,C),B.appendChild(E.layerElement),I.appendChild(B);var U=createNS("use");U.setAttribute("href","#"+C),R.appendChild(U),E.data.hd=!1,E.show()}A.setMatte(E.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var A=this.filterManager.effectElements[0].p.v,E=this.elem.comp.elements,C=0,R=E.length;C<R;)E[C]&&E[C].data.ind===A&&this.setElementAsMask(this.elem,E[C]),C+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(A,E,C,R){A.setAttribute("x","-100%"),A.setAttribute("y","-100%"),A.setAttribute("width","300%"),A.setAttribute("height","300%"),this.filterManager=E;var I=createNS("feGaussianBlur");I.setAttribute("result",R),A.appendChild(I),this.feGaussianBlur=I}SVGGaussianBlurEffect.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E=.3,C=this.filterManager.effectElements[0].p.v*E,R=this.filterManager.effectElements[1].p.v,I=R==3?0:C,B=R==2?0:C;this.feGaussianBlur.setAttribute("stdDeviation",I+" "+B);var U=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",U)}};function TransformEffect(){}TransformEffect.prototype.init=function(A){this.effectsManager=A,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(A){if(this._opMdf=!1,this._mdf=!1,A||this.effectsManager._mdf){var E=this.effectsManager.effectElements,C=E[0].p.v,R=E[1].p.v,I=E[2].p.v===1,B=E[3].p.v,U=I?B:E[4].p.v,V=E[5].p.v,X=E[6].p.v,K=E[7].p.v;this.matrix.reset(),this.matrix.translate(-C[0],-C[1],C[2]),this.matrix.scale(U*.01,B*.01,1),this.matrix.rotate(-K*degToRads),this.matrix.skewFromAxis(-V*degToRads,(X+90)*degToRads),this.matrix.translate(R[0],R[1],0),this._mdf=!0,this.opacity!==E[8].p.v&&(this.opacity=E[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(A,E){this.init(E)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(A){this.init(A)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),initialState={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},PixiLottieSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(0),[I,B]=React__namespace.useState(!1),U=React__namespace.useRef(null),V=React__namespace.useRef(null),X=React__namespace.useRef(),K=React__namespace.useRef(),J=React.useRef(),Y=React.useRef(initialState),Z=React__namespace.useRef(),_e=React.useRef(document.body),{uniqueId:xe,src:Se,startAt:Pe,endAt:Ee,frameStartAt:Ae,frameEndAt:Te,visible:we,disabled:Ie,loop:Fe=!1,transformation:{x:ke,y:Le,width:Ge,height:He,colorCorrection:Be={}},pointerdown:je=()=>{},pointerout:Ue=()=>{},pointerover:ze=()=>{}}=A,{tl:Ve}=React.useContext(GsapPixieContext);useCustomEventListener(Events.PAUSE,()=>{K.current&&K.current.pause()});const{onPointerDown:Oe,onPointerOut:$e,onPointerOver:Re}=useDebouncedPointerEvents(ze,je,Ue,1),{blurRadius:Me=0,vignette:Ne=0,noise:De=0}=Be,{temperatureFilter:Xe,sharpnessFilter:qe,hueFilter:Ye,blurFilter:Je,adjustmentFilter:Ke,vignetteFilter:rt,noiseFilter:nt}=withFiltersHook(Be);React__namespace.useLayoutEffect(()=>{X.current=document.createElement("canvas"),X.current.setAttribute("id","lottieContainersvg"),X.current.setAttribute("id",`${xe}lottieContainer`),X.current.setAttribute("width",`${Ge}`),X.current.setAttribute("height",`${He}`);const Ze=_e.current;return Ze.appendChild(X.current),()=>{X.current&&Ze.removeChild(X.current)}},[]),React__namespace.useEffect(()=>{async function Ze(){K.current&&K.current.destroy(),X.current.removeAttribute("style"),K.current=lottie.loadAnimation({container:X.current||document.getElementById("lottieroot"),renderer:"canvas",loop:!1,autoplay:!1,path:Se,rendererSettings:{context:X.current.getContext("2d"),clearCanvas:!0,progressiveLoad:!1,preserveAspectRatio:"xMaxYMax meet"}}),K.current.addEventListener("data_ready",()=>{if(X.current&&X.current.setAttribute("style","display:none"),K.current&&K.current.renderer.canvasContext){const tt=K.current.totalFrames;Y.current.totalFrames=tt;const st=K.current.getDuration();Y.current.totalDuration=st;const et=K.current.renderer.canvasContext.canvas,We=PIXI__namespace.Texture.from(et);Z.current=We,B(!0),R(st)}}),K.current.addEventListener("loaded_images",()=>{}),K.current.addEventListener("complete",()=>{}),K.current.addEventListener("loopComplete",()=>{}),K.current.addEventListener("enterFrame",()=>{}),K.current.addEventListener("config_ready",()=>{console.log("config_ready",K.current)}),K.current.addEventListener("error",tt=>{console.log("error",tt)})}return Ze(),()=>{K.current&&(K.current.removeEventListener("complete"),K.current.removeEventListener("config_ready"),K.current.removeEventListener("enterFrame"),K.current.removeEventListener("loaded_images"),K.current.removeEventListener("loopComplete"),K.current.removeEventListener("data_ready"),K.current.removeEventListener("error"),K.current.destroy())}},[Se,xe]),React__namespace.useEffect(()=>(Z.current&&Z.current.update(),()=>{}),[I]);const Qe=Ze=>{if(K.current&&U.current&&J.current){const st=Ze(J.current.time())/J.current.duration()*Y.current.totalFrames,et=Y.current.totalFrames;let We=st;We=Math.round(Math.floor(We)),We>=et?(K.current.goToAndStop(0,!0),Z.current&&Z.current.update(),Y.current.isPlaying=!1):(K.current.goToAndStop(We,!0),Z.current&&Z.current.update(),Y.current.isPlaying=!0)}};return React__namespace.useEffect(()=>{let Ze=gsap$2.context(()=>{});if(V.current&&Ve.current&&C>0){const tt=Number(Ee)-Number(Pe);J.current&&(J.current.kill(),Ve.current.remove(J.current)),Ze=gsap$2.context(()=>{const st=gsap$2.utils.wrap(Pe,C);J.current=gsap$2.timeline({}).to(V.current,{duration:Number(tt),onUpdate:Qe,onUpdateParams:[st,Ae,Te]},Ae),Ve.current.add(J.current,Pe)})}return()=>{J.current&&(J.current.kill(),gsap$2.killTweensOf(J.current)),Ze.revert()}},[Pe,Ee,Ae,Te,xe,C,Fe]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,pointerdown:Oe,pointerover:Re,pointerout:$e,children:jsxRuntimeExports.jsx(react.Container,{ref:V,children:Z.current&&jsxRuntimeExports.jsx(react.Sprite,{texture:Z.current,width:Ge,height:He,anchor:.5,x:ke,y:Le,ref:U,alpha:we?1:0,...!Ie&&we&&{interactive:!0,pointerdown:je},filters:[Xe,qe,Ye,Ke,...Me>0?[Je]:[],...Ne>0?[rt]:[],...De>0?[nt]:[]]})})})});PixiLottieSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiLottieSprite"};var BlendModes=(A=>(A[A.NORMAL=0]="NORMAL",A[A.ADD=1]="ADD",A[A.MULTIPLY=2]="MULTIPLY",A[A.SCREEN=3]="SCREEN",A[A.OVERLAY=4]="OVERLAY",A[A.DARKEN=5]="DARKEN",A[A.LIGHTEN=6]="LIGHTEN",A[A.COLOR_DODGE=7]="COLOR_DODGE",A[A.COLOR_BURN=8]="COLOR_BURN",A[A.HARD_LIGHT=9]="HARD_LIGHT",A[A.SOFT_LIGHT=10]="SOFT_LIGHT",A[A.DIFFERENCE=11]="DIFFERENCE",A[A.EXCLUSION=12]="EXCLUSION",A[A.HUE=13]="HUE",A[A.SATURATION=14]="SATURATION",A[A.COLOR=15]="COLOR",A[A.LUMINOSITY=16]="LUMINOSITY",A))(BlendModes||{});exports.Animations=Animations,exports.BlendModes=BlendModes,exports.Events=Events,exports.GsapPixieContext=GsapPixieContext,exports.GsapPixieContextProvider=GsapPixieContextProvider,exports.PixiAnimatedSprite=PixiAnimatedSprite,exports.PixiAudioSprite=PixiAudioSprite,exports.PixiGifSprite=PixiGifSprite,exports.PixiImageSprite=PixiImageSprite,exports.PixiLottieSprite=PixiLottieSprite,exports.PixiRemotionSprite=PixiRemotionSprite,exports.PixiSequence=PixiSequence,exports.PixiSequenceWrapper=PixiSequenceWrapper,exports.PixiSvgPathSprite=PixiSvgPathSprite,exports.PixiTextSprite=PixiTextSprite,exports.PixiVideoCanvasSyncSprite=PixiVideoCanvasSyncSprite,exports.PixiVideoSprite=PixiVideoSprite,exports.emitCustomEvent=emitCustomEvent,exports.newCustomEventEmitter=newCustomEventEmitter,exports.useCustomEventListener=useCustomEventListener,exports.useGsapEffect=useGsapEffect,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});
1974
+ */var Matrix=function(){var A=Math.cos,E=Math.sin,C=Math.tan,R=Math.round;function I(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function B(Re){if(Re===0)return this;var Me=A(Re),Ne=E(Re);return this._t(Me,-Ne,0,0,Ne,Me,0,0,0,0,1,0,0,0,0,1)}function U(Re){if(Re===0)return this;var Me=A(Re),Ne=E(Re);return this._t(1,0,0,0,0,Me,-Ne,0,0,Ne,Me,0,0,0,0,1)}function V(Re){if(Re===0)return this;var Me=A(Re),Ne=E(Re);return this._t(Me,0,Ne,0,0,1,0,0,-Ne,0,Me,0,0,0,0,1)}function X(Re){if(Re===0)return this;var Me=A(Re),Ne=E(Re);return this._t(Me,-Ne,0,0,Ne,Me,0,0,0,0,1,0,0,0,0,1)}function K(Re,Me){return this._t(1,Me,Re,1,0,0)}function J(Re,Me){return this.shear(C(Re),C(Me))}function Y(Re,Me){var Ne=A(Me),De=E(Me);return this._t(Ne,De,0,0,-De,Ne,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,C(Re),1,0,0,0,0,1,0,0,0,0,1)._t(Ne,-De,0,0,De,Ne,0,0,0,0,1,0,0,0,0,1)}function Z(Re,Me,Ne){return!Ne&&Ne!==0&&(Ne=1),Re===1&&Me===1&&Ne===1?this:this._t(Re,0,0,0,0,Me,0,0,0,0,Ne,0,0,0,0,1)}function _e(Re,Me,Ne,De,Xe,qe,Ye,Je,Ke,rt,nt,Qe,Ze,tt,st,et){return this.props[0]=Re,this.props[1]=Me,this.props[2]=Ne,this.props[3]=De,this.props[4]=Xe,this.props[5]=qe,this.props[6]=Ye,this.props[7]=Je,this.props[8]=Ke,this.props[9]=rt,this.props[10]=nt,this.props[11]=Qe,this.props[12]=Ze,this.props[13]=tt,this.props[14]=st,this.props[15]=et,this}function xe(Re,Me,Ne){return Ne=Ne||0,Re!==0||Me!==0||Ne!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Re,Me,Ne,1):this}function Se(Re,Me,Ne,De,Xe,qe,Ye,Je,Ke,rt,nt,Qe,Ze,tt,st,et){var We=this.props;if(Re===1&&Me===0&&Ne===0&&De===0&&Xe===0&&qe===1&&Ye===0&&Je===0&&Ke===0&&rt===0&&nt===1&&Qe===0)return We[12]=We[12]*Re+We[15]*Ze,We[13]=We[13]*qe+We[15]*tt,We[14]=We[14]*nt+We[15]*st,We[15]*=et,this._identityCalculated=!1,this;var it=We[0],lt=We[1],ht=We[2],dt=We[3],mt=We[4],ct=We[5],pt=We[6],yt=We[7],gt=We[8],xt=We[9],It=We[10],St=We[11],Mt=We[12],qt=We[13],Wt=We[14],Yt=We[15];return We[0]=it*Re+lt*Xe+ht*Ke+dt*Ze,We[1]=it*Me+lt*qe+ht*rt+dt*tt,We[2]=it*Ne+lt*Ye+ht*nt+dt*st,We[3]=it*De+lt*Je+ht*Qe+dt*et,We[4]=mt*Re+ct*Xe+pt*Ke+yt*Ze,We[5]=mt*Me+ct*qe+pt*rt+yt*tt,We[6]=mt*Ne+ct*Ye+pt*nt+yt*st,We[7]=mt*De+ct*Je+pt*Qe+yt*et,We[8]=gt*Re+xt*Xe+It*Ke+St*Ze,We[9]=gt*Me+xt*qe+It*rt+St*tt,We[10]=gt*Ne+xt*Ye+It*nt+St*st,We[11]=gt*De+xt*Je+It*Qe+St*et,We[12]=Mt*Re+qt*Xe+Wt*Ke+Yt*Ze,We[13]=Mt*Me+qt*qe+Wt*rt+Yt*tt,We[14]=Mt*Ne+qt*Ye+Wt*nt+Yt*st,We[15]=Mt*De+qt*Je+Wt*Qe+Yt*et,this._identityCalculated=!1,this}function Pe(Re){var Me=Re.props;return this.transform(Me[0],Me[1],Me[2],Me[3],Me[4],Me[5],Me[6],Me[7],Me[8],Me[9],Me[10],Me[11],Me[12],Me[13],Me[14],Me[15])}function Ee(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function Ae(Re){for(var Me=0;Me<16;){if(Re.props[Me]!==this.props[Me])return!1;Me+=1}return!0}function Te(Re){var Me;for(Me=0;Me<16;Me+=1)Re.props[Me]=this.props[Me];return Re}function we(Re){var Me;for(Me=0;Me<16;Me+=1)this.props[Me]=Re[Me]}function Ie(Re,Me,Ne){return{x:Re*this.props[0]+Me*this.props[4]+Ne*this.props[8]+this.props[12],y:Re*this.props[1]+Me*this.props[5]+Ne*this.props[9]+this.props[13],z:Re*this.props[2]+Me*this.props[6]+Ne*this.props[10]+this.props[14]}}function Fe(Re,Me,Ne){return Re*this.props[0]+Me*this.props[4]+Ne*this.props[8]+this.props[12]}function ke(Re,Me,Ne){return Re*this.props[1]+Me*this.props[5]+Ne*this.props[9]+this.props[13]}function Le(Re,Me,Ne){return Re*this.props[2]+Me*this.props[6]+Ne*this.props[10]+this.props[14]}function Ge(){var Re=this.props[0]*this.props[5]-this.props[1]*this.props[4],Me=this.props[5]/Re,Ne=-this.props[1]/Re,De=-this.props[4]/Re,Xe=this.props[0]/Re,qe=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Re,Ye=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Re,Je=new Matrix;return Je.props[0]=Me,Je.props[1]=Ne,Je.props[4]=De,Je.props[5]=Xe,Je.props[12]=qe,Je.props[13]=Ye,Je}function Ue(Re){var Me=this.getInverseMatrix();return Me.applyToPointArray(Re[0],Re[1],Re[2]||0)}function Be(Re){var Me,Ne=Re.length,De=[];for(Me=0;Me<Ne;Me+=1)De[Me]=Ue(Re[Me]);return De}function je(Re,Me,Ne){var De=createTypedArray("float32",6);if(this.isIdentity())De[0]=Re[0],De[1]=Re[1],De[2]=Me[0],De[3]=Me[1],De[4]=Ne[0],De[5]=Ne[1];else{var Xe=this.props[0],qe=this.props[1],Ye=this.props[4],Je=this.props[5],Ke=this.props[12],rt=this.props[13];De[0]=Re[0]*Xe+Re[1]*Ye+Ke,De[1]=Re[0]*qe+Re[1]*Je+rt,De[2]=Me[0]*Xe+Me[1]*Ye+Ke,De[3]=Me[0]*qe+Me[1]*Je+rt,De[4]=Ne[0]*Xe+Ne[1]*Ye+Ke,De[5]=Ne[0]*qe+Ne[1]*Je+rt}return De}function Ve(Re,Me,Ne){var De;return this.isIdentity()?De=[Re,Me,Ne]:De=[Re*this.props[0]+Me*this.props[4]+Ne*this.props[8]+this.props[12],Re*this.props[1]+Me*this.props[5]+Ne*this.props[9]+this.props[13],Re*this.props[2]+Me*this.props[6]+Ne*this.props[10]+this.props[14]],De}function ze(Re,Me){if(this.isIdentity())return Re+","+Me;var Ne=this.props;return Math.round((Re*Ne[0]+Me*Ne[4]+Ne[12])*100)/100+","+Math.round((Re*Ne[1]+Me*Ne[5]+Ne[13])*100)/100}function He(){for(var Re=0,Me=this.props,Ne="matrix3d(",De=1e4;Re<16;)Ne+=R(Me[Re]*De)/De,Ne+=Re===15?")":",",Re+=1;return Ne}function Oe(Re){var Me=1e4;return Re<1e-6&&Re>0||Re>-1e-6&&Re<0?R(Re*Me)/Me:Re}function $e(){var Re=this.props,Me=Oe(Re[0]),Ne=Oe(Re[1]),De=Oe(Re[4]),Xe=Oe(Re[5]),qe=Oe(Re[12]),Ye=Oe(Re[13]);return"matrix("+Me+","+Ne+","+De+","+Xe+","+qe+","+Ye+")"}return function(){this.reset=I,this.rotate=B,this.rotateX=U,this.rotateY=V,this.rotateZ=X,this.skew=J,this.skewFromAxis=Y,this.shear=K,this.scale=Z,this.setTransform=_e,this.translate=xe,this.transform=Se,this.multiply=Pe,this.applyToPoint=Ie,this.applyToX=Fe,this.applyToY=ke,this.applyToZ=Le,this.applyToPointArray=Ve,this.applyToTriplePoints=je,this.applyToPointStringified=ze,this.toCSS=He,this.to2dCSS=$e,this.clone=Te,this.cloneFromProps=we,this.equals=Ae,this.inversePoints=Be,this.inversePoint=Ue,this.getInverseMatrix=Ge,this._t=this.transform,this.isIdentity=Ee,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(C){return typeof C}:_typeof$3=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$3(A)}var lottie={};function setLocation(A){setLocationHref(A)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(A){setSubframeEnabled(A)}function setPrefix(A){setIdPrefix(A)}function loadAnimation(A){return animationManager.loadAnimation(A)}function setQuality(A){if(typeof A=="string")switch(A){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(A)&&A>1&&setDefaultCurveSegments(A)}function inBrowser(){return typeof navigator<"u"}function installPlugin(A,E){A==="expressions"&&setExpressionsPlugin(E)}function getFactory(A){switch(A){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(A){for(var E=queryString.split("&"),C=0;C<E.length;C+=1){var R=E[C].split("=");if(decodeURIComponent(R[0])==A)return decodeURIComponent(R[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(A){}var ShapeModifiers=function(){var A={},E={};A.registerModifier=C,A.getModifier=R;function C(I,B){E[I]||(E[I]=B)}function R(I,B,U){return new E[I](B,U)}return A}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(A){if(!this.closed){A.sh.container.addDynamicProperty(A.sh);var E={shape:A.sh,data:A,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(E),this.addShapeToModifier(E),this._isAnimated&&A.setAsAnimated()}},ShapeModifier.prototype.init=function(A,E){this.shapes=[],this.elem=A,this.initDynamicPropertyContainer(A),this.initModifierProperties(A,E),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(A,E){this.s=PropertyFactory.getProp(A,E.s,0,.01,this),this.e=PropertyFactory.getProp(A,E.e,0,.01,this),this.o=PropertyFactory.getProp(A,E.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=E.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(A){A.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(A,E,C,R,I){var B=[];E<=1?B.push({s:A,e:E}):A>=1?B.push({s:A-1,e:E-1}):(B.push({s:A,e:1}),B.push({s:0,e:E-1}));var U=[],V,X=B.length,K;for(V=0;V<X;V+=1)if(K=B[V],!(K.e*I<R||K.s*I>R+C)){var J,Y;K.s*I<=R?J=0:J=(K.s*I-R)/C,K.e*I>=R+C?Y=1:Y=(K.e*I-R)/C,U.push([J,Y])}return U.length||U.push([0,0]),U},TrimModifier.prototype.releasePathsData=function(A){var E,C=A.length;for(E=0;E<C;E+=1)segmentsLengthPool.release(A[E]);return A.length=0,A},TrimModifier.prototype.processShapes=function(A){var E,C;if(this._mdf||A){var R=this.o.v%360/360;if(R<0&&(R+=1),this.s.v>1?E=1+R:this.s.v<0?E=0+R:E=this.s.v+R,this.e.v>1?C=1+R:this.e.v<0?C=0+R:C=this.e.v+R,E>C){var I=E;E=C,C=I}E=Math.round(E*1e4)*1e-4,C=Math.round(C*1e4)*1e-4,this.sValue=E,this.eValue=C}else E=this.sValue,C=this.eValue;var B,U,V=this.shapes.length,X,K,J,Y,Z,_e=0;if(C===E)for(U=0;U<V;U+=1)this.shapes[U].localShapeCollection.releaseShapes(),this.shapes[U].shape._mdf=!0,this.shapes[U].shape.paths=this.shapes[U].localShapeCollection,this._mdf&&(this.shapes[U].pathsData.length=0);else if(C===1&&E===0||C===0&&E===1){if(this._mdf)for(U=0;U<V;U+=1)this.shapes[U].pathsData.length=0,this.shapes[U].shape._mdf=!0}else{var xe=[],Se,Pe;for(U=0;U<V;U+=1)if(Se=this.shapes[U],!Se.shape._mdf&&!this._mdf&&!A&&this.m!==2)Se.shape.paths=Se.localShapeCollection;else{if(B=Se.shape.paths,K=B._length,Z=0,!Se.shape._mdf&&Se.pathsData.length)Z=Se.totalShapeLength;else{for(J=this.releasePathsData(Se.pathsData),X=0;X<K;X+=1)Y=bez.getSegmentsLength(B.shapes[X]),J.push(Y),Z+=Y.totalLength;Se.totalShapeLength=Z,Se.pathsData=J}_e+=Z,Se.shape._mdf=!0}var Ee=E,Ae=C,Te=0,we;for(U=V-1;U>=0;U-=1)if(Se=this.shapes[U],Se.shape._mdf){for(Pe=Se.localShapeCollection,Pe.releaseShapes(),this.m===2&&V>1?(we=this.calculateShapeEdges(E,C,Se.totalShapeLength,Te,_e),Te+=Se.totalShapeLength):we=[[Ee,Ae]],K=we.length,X=0;X<K;X+=1){Ee=we[X][0],Ae=we[X][1],xe.length=0,Ae<=1?xe.push({s:Se.totalShapeLength*Ee,e:Se.totalShapeLength*Ae}):Ee>=1?xe.push({s:Se.totalShapeLength*(Ee-1),e:Se.totalShapeLength*(Ae-1)}):(xe.push({s:Se.totalShapeLength*Ee,e:Se.totalShapeLength}),xe.push({s:0,e:Se.totalShapeLength*(Ae-1)}));var Ie=this.addShapes(Se,xe[0]);if(xe[0].s!==xe[0].e){if(xe.length>1){var Fe=Se.shape.paths.shapes[Se.shape.paths._length-1];if(Fe.c){var ke=Ie.pop();this.addPaths(Ie,Pe),Ie=this.addShapes(Se,xe[1],ke)}else this.addPaths(Ie,Pe),Ie=this.addShapes(Se,xe[1])}this.addPaths(Ie,Pe)}}Se.shape.paths=Pe}}},TrimModifier.prototype.addPaths=function(A,E){var C,R=A.length;for(C=0;C<R;C+=1)E.addShape(A[C])},TrimModifier.prototype.addSegment=function(A,E,C,R,I,B,U){I.setXYAt(E[0],E[1],"o",B),I.setXYAt(C[0],C[1],"i",B+1),U&&I.setXYAt(A[0],A[1],"v",B),I.setXYAt(R[0],R[1],"v",B+1)},TrimModifier.prototype.addSegmentFromArray=function(A,E,C,R){E.setXYAt(A[1],A[5],"o",C),E.setXYAt(A[2],A[6],"i",C+1),R&&E.setXYAt(A[0],A[4],"v",C),E.setXYAt(A[3],A[7],"v",C+1)},TrimModifier.prototype.addShapes=function(A,E,C){var R=A.pathsData,I=A.shape.paths.shapes,B,U=A.shape.paths._length,V,X,K=0,J,Y,Z,_e,xe=[],Se,Pe=!0;for(C?(Y=C._length,Se=C._length):(C=shapePool.newElement(),Y=0,Se=0),xe.push(C),B=0;B<U;B+=1){for(Z=R[B].lengths,C.c=I[B].c,X=I[B].c?Z.length:Z.length+1,V=1;V<X;V+=1)if(J=Z[V-1],K+J.addedLength<E.s)K+=J.addedLength,C.c=!1;else if(K>E.e){C.c=!1;break}else E.s<=K&&E.e>=K+J.addedLength?(this.addSegment(I[B].v[V-1],I[B].o[V-1],I[B].i[V],I[B].v[V],C,Y,Pe),Pe=!1):(_e=bez.getNewSegment(I[B].v[V-1],I[B].v[V],I[B].o[V-1],I[B].i[V],(E.s-K)/J.addedLength,(E.e-K)/J.addedLength,Z[V-1]),this.addSegmentFromArray(_e,C,Y,Pe),Pe=!1,C.c=!1),K+=J.addedLength,Y+=1;if(I[B].c&&Z.length){if(J=Z[V-1],K<=E.e){var Ee=Z[V-1].addedLength;E.s<=K&&E.e>=K+Ee?(this.addSegment(I[B].v[V-1],I[B].o[V-1],I[B].i[0],I[B].v[0],C,Y,Pe),Pe=!1):(_e=bez.getNewSegment(I[B].v[V-1],I[B].v[0],I[B].o[V-1],I[B].i[0],(E.s-K)/Ee,(E.e-K)/Ee,Z[V-1]),this.addSegmentFromArray(_e,C,Y,Pe),Pe=!1,C.c=!1)}else C.c=!1;K+=J.addedLength,Y+=1}if(C._length&&(C.setXYAt(C.v[Se][0],C.v[Se][1],"i",Se),C.setXYAt(C.v[C._length-1][0],C.v[C._length-1][1],"o",C._length-1)),K>E.e)break;B<U-1&&(C=shapePool.newElement(),Pe=!0,xe.push(C),Y=0)}return xe};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(A,E.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(A,E){var C=E/100,R=[0,0],I=A._length,B=0;for(B=0;B<I;B+=1)R[0]+=A.v[B][0],R[1]+=A.v[B][1];R[0]/=I,R[1]/=I;var U=shapePool.newElement();U.c=A.c;var V,X,K,J,Y,Z;for(B=0;B<I;B+=1)V=A.v[B][0]+(R[0]-A.v[B][0])*C,X=A.v[B][1]+(R[1]-A.v[B][1])*C,K=A.o[B][0]+(R[0]-A.o[B][0])*-C,J=A.o[B][1]+(R[1]-A.o[B][1])*-C,Y=A.i[B][0]+(R[0]-A.i[B][0])*-C,Z=A.i[B][1]+(R[1]-A.i[B][1])*-C,U.setTripleAt(V,X,K,J,Y,Z,B);return U},PuckerAndBloatModifier.prototype.processShapes=function(A){var E,C,R=this.shapes.length,I,B,U=this.amount.v;if(U!==0){var V,X;for(C=0;C<R;C+=1){if(V=this.shapes[C],X=V.localShapeCollection,!(!V.shape._mdf&&!this._mdf&&!A))for(X.releaseShapes(),V.shape._mdf=!0,E=V.shape.paths.shapes,B=V.shape.paths._length,I=0;I<B;I+=1)X.addShape(this.processPath(E[I],U));V.shape.paths=V.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var A=[0,0];function E(X){var K=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||K,this.a&&X.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&X.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&X.skewFromAxis(-this.sk.v,this.sa.v),this.r?X.rotate(-this.r.v):X.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?X.translate(this.px.v,this.py.v,-this.pz.v):X.translate(this.px.v,this.py.v,0):X.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function C(X){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||X){var K;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var J,Y;if(K=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(J=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/K,0),Y=this.p.getValueAtTime(this.p.keyframes[0].t/K,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(J=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/K,0),Y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/K,0)):(J=this.p.pv,Y=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/K,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){J=[],Y=[];var Z=this.px,_e=this.py;Z._caching.lastFrame+Z.offsetTime<=Z.keyframes[0].t?(J[0]=Z.getValueAtTime((Z.keyframes[0].t+.01)/K,0),J[1]=_e.getValueAtTime((_e.keyframes[0].t+.01)/K,0),Y[0]=Z.getValueAtTime(Z.keyframes[0].t/K,0),Y[1]=_e.getValueAtTime(_e.keyframes[0].t/K,0)):Z._caching.lastFrame+Z.offsetTime>=Z.keyframes[Z.keyframes.length-1].t?(J[0]=Z.getValueAtTime(Z.keyframes[Z.keyframes.length-1].t/K,0),J[1]=_e.getValueAtTime(_e.keyframes[_e.keyframes.length-1].t/K,0),Y[0]=Z.getValueAtTime((Z.keyframes[Z.keyframes.length-1].t-.01)/K,0),Y[1]=_e.getValueAtTime((_e.keyframes[_e.keyframes.length-1].t-.01)/K,0)):(J=[Z.pv,_e.pv],Y[0]=Z.getValueAtTime((Z._caching.lastFrame+Z.offsetTime-.01)/K,Z.offsetTime),Y[1]=_e.getValueAtTime((_e._caching.lastFrame+_e.offsetTime-.01)/K,_e.offsetTime))}else Y=A,J=Y;this.v.rotate(-Math.atan2(J[1]-Y[1],J[0]-Y[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function R(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function I(){}function B(X){this._addDynamicProperty(X),this.elem.addDynamicProperty(X),this._isDirty=!0}function U(X,K,J){if(this.elem=X,this.frameId=-1,this.propType="transform",this.data=K,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(J||X),K.p&&K.p.s?(this.px=PropertyFactory.getProp(X,K.p.x,0,0,this),this.py=PropertyFactory.getProp(X,K.p.y,0,0,this),K.p.z&&(this.pz=PropertyFactory.getProp(X,K.p.z,0,0,this))):this.p=PropertyFactory.getProp(X,K.p||{k:[0,0,0]},1,0,this),K.rx){if(this.rx=PropertyFactory.getProp(X,K.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(X,K.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(X,K.rz,0,degToRads,this),K.or.k[0].ti){var Y,Z=K.or.k.length;for(Y=0;Y<Z;Y+=1)K.or.k[Y].to=null,K.or.k[Y].ti=null}this.or=PropertyFactory.getProp(X,K.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(X,K.r||{k:0},0,degToRads,this);K.sk&&(this.sk=PropertyFactory.getProp(X,K.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(X,K.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(X,K.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(X,K.s||{k:[100,100,100]},1,.01,this),K.o?this.o=PropertyFactory.getProp(X,K.o,0,.01,X):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}U.prototype={applyToMatrix:E,getValue:C,precalculateMatrix:R,autoOrient:I},extendPrototype([DynamicPropertyContainer],U),U.prototype.addDynamicProperty=B,U.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function V(X,K,J){return new U(X,K,J)}return{getTransformProperty:V}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(A,E.c,0,null,this),this.o=PropertyFactory.getProp(A,E.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(A,E.tr,this),this.so=PropertyFactory.getProp(A,E.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(A,E.tr.eo,0,.01,this),this.data=E,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(A,E,C,R,I,B){var U=B?-1:1,V=R.s.v[0]+(1-R.s.v[0])*(1-I),X=R.s.v[1]+(1-R.s.v[1])*(1-I);A.translate(R.p.v[0]*U*I,R.p.v[1]*U*I,R.p.v[2]),E.translate(-R.a.v[0],-R.a.v[1],R.a.v[2]),E.rotate(-R.r.v*U*I),E.translate(R.a.v[0],R.a.v[1],R.a.v[2]),C.translate(-R.a.v[0],-R.a.v[1],R.a.v[2]),C.scale(B?1/V:V,B?1/X:X),C.translate(R.a.v[0],R.a.v[1],R.a.v[2])},RepeaterModifier.prototype.init=function(A,E,C,R){for(this.elem=A,this.arr=E,this.pos=C,this.elemsData=R,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(A),this.initModifierProperties(A,E[C]);C>0;)C-=1,this._elements.unshift(E[C]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(A){var E,C=A.length;for(E=0;E<C;E+=1)A[E]._processed=!1,A[E].ty==="gr"&&this.resetElements(A[E].it)},RepeaterModifier.prototype.cloneElements=function(A){var E=JSON.parse(JSON.stringify(A));return this.resetElements(E),E},RepeaterModifier.prototype.changeGroupRender=function(A,E){var C,R=A.length;for(C=0;C<R;C+=1)A[C]._render=E,A[C].ty==="gr"&&this.changeGroupRender(A[C].it,E)},RepeaterModifier.prototype.processShapes=function(A){var E,C,R,I,B,U=!1;if(this._mdf||A){var V=Math.ceil(this.c.v);if(this._groups.length<V){for(;this._groups.length<V;){var X={it:this.cloneElements(this._elements),ty:"gr"};X.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,X),this._groups.splice(0,0,X),this._currentCopies+=1}this.elem.reloadShapes(),U=!0}B=0;var K;for(R=0;R<=this._groups.length-1;R+=1){if(K=B<V,this._groups[R]._render=K,this.changeGroupRender(this._groups[R].it,K),!K){var J=this.elemsData[R].it,Y=J[J.length-1];Y.transform.op.v!==0?(Y.transform.op._mdf=!0,Y.transform.op.v=0):Y.transform.op._mdf=!1}B+=1}this._currentCopies=V;var Z=this.o.v,_e=Z%1,xe=Z>0?Math.floor(Z):Math.ceil(Z),Se=this.pMatrix.props,Pe=this.rMatrix.props,Ee=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Ae=0;if(Z>0){for(;Ae<xe;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Ae+=1;_e&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,_e,!1),Ae+=_e)}else if(Z<0){for(;Ae>xe;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Ae-=1;_e&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-_e,!0),Ae-=_e)}R=this.data.m===1?0:this._currentCopies-1,I=this.data.m===1?1:-1,B=this._currentCopies;for(var Te,we;B;){if(E=this.elemsData[R].it,C=E[E.length-1].transform.mProps.v.props,we=C.length,E[E.length-1].transform.mProps._mdf=!0,E[E.length-1].transform.op._mdf=!0,E[E.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(R/(this._currentCopies-1)),Ae!==0){for((R!==0&&I===1||R!==this._currentCopies-1&&I===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],Pe[8],Pe[9],Pe[10],Pe[11],Pe[12],Pe[13],Pe[14],Pe[15]),this.matrix.transform(Ee[0],Ee[1],Ee[2],Ee[3],Ee[4],Ee[5],Ee[6],Ee[7],Ee[8],Ee[9],Ee[10],Ee[11],Ee[12],Ee[13],Ee[14],Ee[15]),this.matrix.transform(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],Se[8],Se[9],Se[10],Se[11],Se[12],Se[13],Se[14],Se[15]),Te=0;Te<we;Te+=1)C[Te]=this.matrix.props[Te];this.matrix.reset()}else for(this.matrix.reset(),Te=0;Te<we;Te+=1)C[Te]=this.matrix.props[Te];Ae+=1,B-=1,R+=I}}else for(B=this._currentCopies,R=0,I=1;B;)E=this.elemsData[R].it,C=E[E.length-1].transform.mProps.v.props,E[E.length-1].transform.mProps._mdf=!1,E[E.length-1].transform.op._mdf=!1,B-=1,R+=I;return U},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(A,E.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(A,E){var C=shapePool.newElement();C.c=A.c;var R,I=A._length,B,U,V,X,K,J,Y=0,Z,_e,xe,Se,Pe,Ee;for(R=0;R<I;R+=1)B=A.v[R],V=A.o[R],U=A.i[R],B[0]===V[0]&&B[1]===V[1]&&B[0]===U[0]&&B[1]===U[1]?(R===0||R===I-1)&&!A.c?(C.setTripleAt(B[0],B[1],V[0],V[1],U[0],U[1],Y),Y+=1):(R===0?X=A.v[I-1]:X=A.v[R-1],K=Math.sqrt(Math.pow(B[0]-X[0],2)+Math.pow(B[1]-X[1],2)),J=K?Math.min(K/2,E)/K:0,Pe=B[0]+(X[0]-B[0])*J,Z=Pe,Ee=B[1]-(B[1]-X[1])*J,_e=Ee,xe=Z-(Z-B[0])*roundCorner,Se=_e-(_e-B[1])*roundCorner,C.setTripleAt(Z,_e,xe,Se,Pe,Ee,Y),Y+=1,R===I-1?X=A.v[0]:X=A.v[R+1],K=Math.sqrt(Math.pow(B[0]-X[0],2)+Math.pow(B[1]-X[1],2)),J=K?Math.min(K/2,E)/K:0,xe=B[0]+(X[0]-B[0])*J,Z=xe,Se=B[1]+(X[1]-B[1])*J,_e=Se,Pe=Z-(Z-B[0])*roundCorner,Ee=_e-(_e-B[1])*roundCorner,C.setTripleAt(Z,_e,xe,Se,Pe,Ee,Y),Y+=1):(C.setTripleAt(A.v[R][0],A.v[R][1],A.o[R][0],A.o[R][1],A.i[R][0],A.i[R][1],Y),Y+=1);return C},RoundCornersModifier.prototype.processShapes=function(A){var E,C,R=this.shapes.length,I,B,U=this.rd.v;if(U!==0){var V,X;for(C=0;C<R;C+=1){if(V=this.shapes[C],X=V.localShapeCollection,!(!V.shape._mdf&&!this._mdf&&!A))for(X.releaseShapes(),V.shape._mdf=!0,E=V.shape.paths.shapes,B=V.shape.paths._length,I=0;I<B;I+=1)X.addShape(this.processPath(E[I],U));V.shape.paths=V.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(A,E){return Math.abs(A-E)*1e5<=Math.min(Math.abs(A),Math.abs(E))}function floatZero(A){return Math.abs(A)<=1e-5}function lerp(A,E,C){return A*(1-C)+E*C}function lerpPoint(A,E,C){return[lerp(A[0],E[0],C),lerp(A[1],E[1],C)]}function quadRoots(A,E,C){if(A===0)return[];var R=E*E-4*A*C;if(R<0)return[];var I=-E/(2*A);if(R===0)return[I];var B=Math.sqrt(R)/(2*A);return[I-B,I+B]}function polynomialCoefficients(A,E,C,R){return[-A+3*E-3*C+R,3*A-6*E+3*C,-3*A+3*E,A]}function singlePoint(A){return new PolynomialBezier(A,A,A,A,!1)}function PolynomialBezier(A,E,C,R,I){I&&pointEqual(A,E)&&(E=lerpPoint(A,R,1/3)),I&&pointEqual(C,R)&&(C=lerpPoint(A,R,2/3));var B=polynomialCoefficients(A[0],E[0],C[0],R[0]),U=polynomialCoefficients(A[1],E[1],C[1],R[1]);this.a=[B[0],U[0]],this.b=[B[1],U[1]],this.c=[B[2],U[2]],this.d=[B[3],U[3]],this.points=[A,E,C,R]}PolynomialBezier.prototype.point=function(A){return[((this.a[0]*A+this.b[0])*A+this.c[0])*A+this.d[0],((this.a[1]*A+this.b[1])*A+this.c[1])*A+this.d[1]]},PolynomialBezier.prototype.derivative=function(A){return[(3*A*this.a[0]+2*this.b[0])*A+this.c[0],(3*A*this.a[1]+2*this.b[1])*A+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(A){var E=this.derivative(A);return Math.atan2(E[1],E[0])},PolynomialBezier.prototype.normalAngle=function(A){var E=this.derivative(A);return Math.atan2(E[0],E[1])},PolynomialBezier.prototype.inflectionPoints=function(){var A=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(A))return[];var E=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/A,C=E*E-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/A;if(C<0)return[];var R=Math.sqrt(C);return floatZero(R)?R>0&&R<1?[E]:[]:[E-R,E+R].filter(function(I){return I>0&&I<1})},PolynomialBezier.prototype.split=function(A){if(A<=0)return[singlePoint(this.points[0]),this];if(A>=1)return[this,singlePoint(this.points[this.points.length-1])];var E=lerpPoint(this.points[0],this.points[1],A),C=lerpPoint(this.points[1],this.points[2],A),R=lerpPoint(this.points[2],this.points[3],A),I=lerpPoint(E,C,A),B=lerpPoint(C,R,A),U=lerpPoint(I,B,A);return[new PolynomialBezier(this.points[0],E,I,U,!0),new PolynomialBezier(U,B,R,this.points[3],!0)]};function extrema(A,E){var C=A.points[0][E],R=A.points[A.points.length-1][E];if(C>R){var I=R;R=C,C=I}for(var B=quadRoots(3*A.a[E],2*A.b[E],A.c[E]),U=0;U<B.length;U+=1)if(B[U]>0&&B[U]<1){var V=A.point(B[U])[E];V<C?C=V:V>R&&(R=V)}return{min:C,max:R}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var A=this.bounds();return{left:A.x.min,right:A.x.max,top:A.y.min,bottom:A.y.max,width:A.x.max-A.x.min,height:A.y.max-A.y.min,cx:(A.x.max+A.x.min)/2,cy:(A.y.max+A.y.min)/2}};function intersectData(A,E,C){var R=A.boundingBox();return{cx:R.cx,cy:R.cy,width:R.width,height:R.height,bez:A,t:(E+C)/2,t1:E,t2:C}}function splitData(A){var E=A.bez.split(.5);return[intersectData(E[0],A.t1,A.t),intersectData(E[1],A.t,A.t2)]}function boxIntersect(A,E){return Math.abs(A.cx-E.cx)*2<A.width+E.width&&Math.abs(A.cy-E.cy)*2<A.height+E.height}function intersectsImpl(A,E,C,R,I,B){if(boxIntersect(A,E)){if(C>=B||A.width<=R&&A.height<=R&&E.width<=R&&E.height<=R){I.push([A.t,E.t]);return}var U=splitData(A),V=splitData(E);intersectsImpl(U[0],V[0],C+1,R,I,B),intersectsImpl(U[0],V[1],C+1,R,I,B),intersectsImpl(U[1],V[0],C+1,R,I,B),intersectsImpl(U[1],V[1],C+1,R,I,B)}}PolynomialBezier.prototype.intersections=function(A,E,C){E===void 0&&(E=2),C===void 0&&(C=7);var R=[];return intersectsImpl(intersectData(this,0,1),intersectData(A,0,1),0,E,R,C),R},PolynomialBezier.shapeSegment=function(A,E){var C=(E+1)%A.length();return new PolynomialBezier(A.v[E],A.o[E],A.i[C],A.v[C],!0)},PolynomialBezier.shapeSegmentInverted=function(A,E){var C=(E+1)%A.length();return new PolynomialBezier(A.v[C],A.i[C],A.o[E],A.v[E],!0)};function crossProduct(A,E){return[A[1]*E[2]-A[2]*E[1],A[2]*E[0]-A[0]*E[2],A[0]*E[1]-A[1]*E[0]]}function lineIntersection(A,E,C,R){var I=[A[0],A[1],1],B=[E[0],E[1],1],U=[C[0],C[1],1],V=[R[0],R[1],1],X=crossProduct(crossProduct(I,B),crossProduct(U,V));return floatZero(X[2])?null:[X[0]/X[2],X[1]/X[2]]}function polarOffset(A,E,C){return[A[0]+Math.cos(E)*C,A[1]-Math.sin(E)*C]}function pointDistance(A,E){return Math.hypot(A[0]-E[0],A[1]-E[1])}function pointEqual(A,E){return floatEqual(A[0],E[0])&&floatEqual(A[1],E[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(A,E.s,0,null,this),this.frequency=PropertyFactory.getProp(A,E.r,0,null,this),this.pointsType=PropertyFactory.getProp(A,E.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(A,E,C,R,I,B,U){var V=C-Math.PI/2,X=C+Math.PI/2,K=E[0]+Math.cos(C)*R*I,J=E[1]-Math.sin(C)*R*I;A.setTripleAt(K,J,K+Math.cos(V)*B,J-Math.sin(V)*B,K+Math.cos(X)*U,J-Math.sin(X)*U,A.length())}function getPerpendicularVector(A,E){var C=[E[0]-A[0],E[1]-A[1]],R=-Math.PI*.5,I=[Math.cos(R)*C[0]-Math.sin(R)*C[1],Math.sin(R)*C[0]+Math.cos(R)*C[1]];return I}function getProjectingAngle(A,E){var C=E===0?A.length()-1:E-1,R=(E+1)%A.length(),I=A.v[C],B=A.v[R],U=getPerpendicularVector(I,B);return Math.atan2(0,1)-Math.atan2(U[1],U[0])}function zigZagCorner(A,E,C,R,I,B,U){var V=getProjectingAngle(E,C),X=E.v[C%E._length],K=E.v[C===0?E._length-1:C-1],J=E.v[(C+1)%E._length],Y=B===2?Math.sqrt(Math.pow(X[0]-K[0],2)+Math.pow(X[1]-K[1],2)):0,Z=B===2?Math.sqrt(Math.pow(X[0]-J[0],2)+Math.pow(X[1]-J[1],2)):0;setPoint(A,E.v[C%E._length],V,U,R,Z/((I+1)*2),Y/((I+1)*2))}function zigZagSegment(A,E,C,R,I,B){for(var U=0;U<R;U+=1){var V=(U+1)/(R+1),X=I===2?Math.sqrt(Math.pow(E.points[3][0]-E.points[0][0],2)+Math.pow(E.points[3][1]-E.points[0][1],2)):0,K=E.normalAngle(V),J=E.point(V);setPoint(A,J,K,B,C,X/((R+1)*2),X/((R+1)*2)),B=-B}return B}ZigZagModifier.prototype.processPath=function(A,E,C,R){var I=A._length,B=shapePool.newElement();if(B.c=A.c,A.c||(I-=1),I===0)return B;var U=-1,V=PolynomialBezier.shapeSegment(A,0);zigZagCorner(B,A,0,E,C,R,U);for(var X=0;X<I;X+=1)U=zigZagSegment(B,V,E,C,R,-U),X===I-1&&!A.c?V=null:V=PolynomialBezier.shapeSegment(A,(X+1)%I),zigZagCorner(B,A,X+1,E,C,R,U);return B},ZigZagModifier.prototype.processShapes=function(A){var E,C,R=this.shapes.length,I,B,U=this.amplitude.v,V=Math.max(0,Math.round(this.frequency.v)),X=this.pointsType.v;if(U!==0){var K,J;for(C=0;C<R;C+=1){if(K=this.shapes[C],J=K.localShapeCollection,!(!K.shape._mdf&&!this._mdf&&!A))for(J.releaseShapes(),K.shape._mdf=!0,E=K.shape.paths.shapes,B=K.shape.paths._length,I=0;I<B;I+=1)J.addShape(this.processPath(E[I],U,V,X));K.shape.paths=K.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(A,E,C){var R=Math.atan2(E[0]-A[0],E[1]-A[1]);return[polarOffset(A,R,C),polarOffset(E,R,C)]}function offsetSegment(A,E){var C,R,I,B,U,V,X;X=linearOffset(A.points[0],A.points[1],E),C=X[0],R=X[1],X=linearOffset(A.points[1],A.points[2],E),I=X[0],B=X[1],X=linearOffset(A.points[2],A.points[3],E),U=X[0],V=X[1];var K=lineIntersection(C,R,I,B);K===null&&(K=R);var J=lineIntersection(U,V,I,B);return J===null&&(J=U),new PolynomialBezier(C,K,J,V)}function joinLines(A,E,C,R,I){var B=E.points[3],U=C.points[0];if(R===3||pointEqual(B,U))return B;if(R===2){var V=-E.tangentAngle(1),X=-C.tangentAngle(0)+Math.PI,K=lineIntersection(B,polarOffset(B,V+Math.PI/2,100),U,polarOffset(U,V+Math.PI/2,100)),J=K?pointDistance(K,B):pointDistance(B,U)/2,Y=polarOffset(B,V,2*J*roundCorner);return A.setXYAt(Y[0],Y[1],"o",A.length()-1),Y=polarOffset(U,X,2*J*roundCorner),A.setTripleAt(U[0],U[1],U[0],U[1],Y[0],Y[1],A.length()),U}var Z=pointEqual(B,E.points[2])?E.points[0]:E.points[2],_e=pointEqual(U,C.points[1])?C.points[3]:C.points[1],xe=lineIntersection(Z,B,U,_e);return xe&&pointDistance(xe,B)<I?(A.setTripleAt(xe[0],xe[1],xe[0],xe[1],xe[0],xe[1],A.length()),xe):B}function getIntersection(A,E){var C=A.intersections(E);return C.length&&floatEqual(C[0][0],1)&&C.shift(),C.length?C[0]:null}function pruneSegmentIntersection(A,E){var C=A.slice(),R=E.slice(),I=getIntersection(A[A.length-1],E[0]);return I&&(C[A.length-1]=A[A.length-1].split(I[0])[0],R[0]=E[0].split(I[1])[1]),A.length>1&&E.length>1&&(I=getIntersection(A[0],E[E.length-1]),I)?[[A[0].split(I[0])[0]],[E[E.length-1].split(I[1])[1]]]:[C,R]}function pruneIntersections(A){for(var E,C=1;C<A.length;C+=1)E=pruneSegmentIntersection(A[C-1],A[C]),A[C-1]=E[0],A[C]=E[1];return A.length>1&&(E=pruneSegmentIntersection(A[A.length-1],A[0]),A[A.length-1]=E[0],A[0]=E[1]),A}function offsetSegmentSplit(A,E){var C=A.inflectionPoints(),R,I,B,U;if(C.length===0)return[offsetSegment(A,E)];if(C.length===1||floatEqual(C[1],1))return B=A.split(C[0]),R=B[0],I=B[1],[offsetSegment(R,E),offsetSegment(I,E)];B=A.split(C[0]),R=B[0];var V=(C[1]-C[0])/(1-C[0]);return B=B[1].split(V),U=B[0],I=B[1],[offsetSegment(R,E),offsetSegment(U,E),offsetSegment(I,E)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(A,E){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(A,E.a,0,null,this),this.miterLimit=PropertyFactory.getProp(A,E.ml,0,null,this),this.lineJoin=E.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(A,E,C,R){var I=shapePool.newElement();I.c=A.c;var B=A.length();A.c||(B-=1);var U,V,X,K=[];for(U=0;U<B;U+=1)X=PolynomialBezier.shapeSegment(A,U),K.push(offsetSegmentSplit(X,E));if(!A.c)for(U=B-1;U>=0;U-=1)X=PolynomialBezier.shapeSegmentInverted(A,U),K.push(offsetSegmentSplit(X,E));K=pruneIntersections(K);var J=null,Y=null;for(U=0;U<K.length;U+=1){var Z=K[U];for(Y&&(J=joinLines(I,Y,Z[0],C,R)),Y=Z[Z.length-1],V=0;V<Z.length;V+=1)X=Z[V],J&&pointEqual(X.points[0],J)?I.setXYAt(X.points[1][0],X.points[1][1],"o",I.length()-1):I.setTripleAt(X.points[0][0],X.points[0][1],X.points[1][0],X.points[1][1],X.points[0][0],X.points[0][1],I.length()),I.setTripleAt(X.points[3][0],X.points[3][1],X.points[3][0],X.points[3][1],X.points[2][0],X.points[2][1],I.length()),J=X.points[3]}return K.length&&joinLines(I,Y,K[0][0],C,R),I},OffsetPathModifier.prototype.processShapes=function(A){var E,C,R=this.shapes.length,I,B,U=this.amount.v,V=this.miterLimit.v,X=this.lineJoin;if(U!==0){var K,J;for(C=0;C<R;C+=1){if(K=this.shapes[C],J=K.localShapeCollection,!(!K.shape._mdf&&!this._mdf&&!A))for(J.releaseShapes(),K.shape._mdf=!0,E=K.shape.paths.shapes,B=K.shape.paths._length,I=0;I<B;I+=1)J.addShape(this.processPath(E[I],U,X,V));K.shape.paths=K.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(A){for(var E=A.fStyle?A.fStyle.split(" "):[],C="normal",R="normal",I=E.length,B,U=0;U<I;U+=1)switch(B=E[U].toLowerCase(),B){case"italic":R="italic";break;case"bold":C="700";break;case"black":C="900";break;case"medium":C="500";break;case"regular":case"normal":C="400";break;case"light":case"thin":C="200";break}return{style:R,weight:A.fWeight||C}}var FontManager=function(){var A=5e3,E={w:0,size:0,shapes:[],data:{shapes:[]}},C=[];C=C.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var R=127988,I=917631,B=917601,U=917626,V=65039,X=8205,K=127462,J=127487,Y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function Z(Oe){var $e=Oe.split(","),Re,Me=$e.length,Ne=[];for(Re=0;Re<Me;Re+=1)$e[Re]!=="sans-serif"&&$e[Re]!=="monospace"&&Ne.push($e[Re]);return Ne.join(",")}function _e(Oe,$e){var Re=createTag("span");Re.setAttribute("aria-hidden",!0),Re.style.fontFamily=$e;var Me=createTag("span");Me.innerText="giItT1WQy@!-/#",Re.style.position="absolute",Re.style.left="-10000px",Re.style.top="-10000px",Re.style.fontSize="300px",Re.style.fontVariant="normal",Re.style.fontStyle="normal",Re.style.fontWeight="normal",Re.style.letterSpacing="0",Re.appendChild(Me),document.body.appendChild(Re);var Ne=Me.offsetWidth;return Me.style.fontFamily=Z(Oe)+", "+$e,{node:Me,w:Ne,parent:Re}}function xe(){var Oe,$e=this.fonts.length,Re,Me,Ne=$e;for(Oe=0;Oe<$e;Oe+=1)this.fonts[Oe].loaded?Ne-=1:this.fonts[Oe].fOrigin==="n"||this.fonts[Oe].origin===0?this.fonts[Oe].loaded=!0:(Re=this.fonts[Oe].monoCase.node,Me=this.fonts[Oe].monoCase.w,Re.offsetWidth!==Me?(Ne-=1,this.fonts[Oe].loaded=!0):(Re=this.fonts[Oe].sansCase.node,Me=this.fonts[Oe].sansCase.w,Re.offsetWidth!==Me&&(Ne-=1,this.fonts[Oe].loaded=!0)),this.fonts[Oe].loaded&&(this.fonts[Oe].sansCase.parent.parentNode.removeChild(this.fonts[Oe].sansCase.parent),this.fonts[Oe].monoCase.parent.parentNode.removeChild(this.fonts[Oe].monoCase.parent)));Ne!==0&&Date.now()-this.initTime<A?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Se(Oe,$e){var Re=document.body&&$e?"svg":"canvas",Me,Ne=getFontProperties(Oe);if(Re==="svg"){var De=createNS("text");De.style.fontSize="100px",De.setAttribute("font-family",Oe.fFamily),De.setAttribute("font-style",Ne.style),De.setAttribute("font-weight",Ne.weight),De.textContent="1",Oe.fClass?(De.style.fontFamily="inherit",De.setAttribute("class",Oe.fClass)):De.style.fontFamily=Oe.fFamily,$e.appendChild(De),Me=De}else{var Xe=new OffscreenCanvas(500,500).getContext("2d");Xe.font=Ne.style+" "+Ne.weight+" 100px "+Oe.fFamily,Me=Xe}function qe(Ye){return Re==="svg"?(Me.textContent=Ye,Me.getComputedTextLength()):Me.measureText(Ye).width}return{measureText:qe}}function Pe(Oe,$e){if(!Oe){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Oe.list;return}if(!document.body){this.isLoaded=!0,Oe.list.forEach(function(nt){nt.helper=Se(nt),nt.cache={}}),this.fonts=Oe.list;return}var Re=Oe.list,Me,Ne=Re.length,De=Ne;for(Me=0;Me<Ne;Me+=1){var Xe=!0,qe,Ye;if(Re[Me].loaded=!1,Re[Me].monoCase=_e(Re[Me].fFamily,"monospace"),Re[Me].sansCase=_e(Re[Me].fFamily,"sans-serif"),!Re[Me].fPath)Re[Me].loaded=!0,De-=1;else if(Re[Me].fOrigin==="p"||Re[Me].origin===3){if(qe=document.querySelectorAll('style[f-forigin="p"][f-family="'+Re[Me].fFamily+'"], style[f-origin="3"][f-family="'+Re[Me].fFamily+'"]'),qe.length>0&&(Xe=!1),Xe){var Je=createTag("style");Je.setAttribute("f-forigin",Re[Me].fOrigin),Je.setAttribute("f-origin",Re[Me].origin),Je.setAttribute("f-family",Re[Me].fFamily),Je.type="text/css",Je.innerText="@font-face {font-family: "+Re[Me].fFamily+"; font-style: normal; src: url('"+Re[Me].fPath+"');}",$e.appendChild(Je)}}else if(Re[Me].fOrigin==="g"||Re[Me].origin===1){for(qe=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ye=0;Ye<qe.length;Ye+=1)qe[Ye].href.indexOf(Re[Me].fPath)!==-1&&(Xe=!1);if(Xe){var Ke=createTag("link");Ke.setAttribute("f-forigin",Re[Me].fOrigin),Ke.setAttribute("f-origin",Re[Me].origin),Ke.type="text/css",Ke.rel="stylesheet",Ke.href=Re[Me].fPath,document.body.appendChild(Ke)}}else if(Re[Me].fOrigin==="t"||Re[Me].origin===2){for(qe=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ye=0;Ye<qe.length;Ye+=1)Re[Me].fPath===qe[Ye].src&&(Xe=!1);if(Xe){var rt=createTag("link");rt.setAttribute("f-forigin",Re[Me].fOrigin),rt.setAttribute("f-origin",Re[Me].origin),rt.setAttribute("rel","stylesheet"),rt.setAttribute("href",Re[Me].fPath),$e.appendChild(rt)}}Re[Me].helper=Se(Re[Me],$e),Re[Me].cache={},this.fonts.push(Re[Me])}De===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ee(Oe){if(Oe){this.chars||(this.chars=[]);var $e,Re=Oe.length,Me,Ne=this.chars.length,De;for($e=0;$e<Re;$e+=1){for(Me=0,De=!1;Me<Ne;)this.chars[Me].style===Oe[$e].style&&this.chars[Me].fFamily===Oe[$e].fFamily&&this.chars[Me].ch===Oe[$e].ch&&(De=!0),Me+=1;De||(this.chars.push(Oe[$e]),Ne+=1)}}}function Ae(Oe,$e,Re){for(var Me=0,Ne=this.chars.length;Me<Ne;){if(this.chars[Me].ch===Oe&&this.chars[Me].style===$e&&this.chars[Me].fFamily===Re)return this.chars[Me];Me+=1}return(typeof Oe=="string"&&Oe.charCodeAt(0)!==13||!Oe)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Oe,$e,Re)),E}function Te(Oe,$e,Re){var Me=this.getFontByName($e),Ne=Oe;if(!Me.cache[Ne]){var De=Me.helper;if(Oe===" "){var Xe=De.measureText("|"+Oe+"|"),qe=De.measureText("||");Me.cache[Ne]=(Xe-qe)/100}else Me.cache[Ne]=De.measureText(Oe)/100}return Me.cache[Ne]*Re}function we(Oe){for(var $e=0,Re=this.fonts.length;$e<Re;){if(this.fonts[$e].fName===Oe)return this.fonts[$e];$e+=1}return this.fonts[0]}function Ie(Oe){var $e=0,Re=Oe.charCodeAt(0);if(Re>=55296&&Re<=56319){var Me=Oe.charCodeAt(1);Me>=56320&&Me<=57343&&($e=(Re-55296)*1024+Me-56320+65536)}return $e}function Fe(Oe,$e){var Re=Oe.toString(16)+$e.toString(16);return Y.indexOf(Re)!==-1}function ke(Oe){return Oe===X}function Le(Oe){return Oe===V}function Ge(Oe){var $e=Ie(Oe);return $e>=K&&$e<=J}function Ue(Oe){return Ge(Oe.substr(0,2))&&Ge(Oe.substr(2,2))}function Be(Oe){return C.indexOf(Oe)!==-1}function je(Oe,$e){var Re=Ie(Oe.substr($e,2));if(Re!==R)return!1;var Me=0;for($e+=2;Me<5;){if(Re=Ie(Oe.substr($e,2)),Re<B||Re>U)return!1;Me+=1,$e+=2}return Ie(Oe.substr($e,2))===I}function Ve(){this.isLoaded=!0}var ze=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ze.isModifier=Fe,ze.isZeroWidthJoiner=ke,ze.isFlagEmoji=Ue,ze.isRegionalCode=Ge,ze.isCombinedCharacter=Be,ze.isRegionalFlag=je,ze.isVariationSelector=Le,ze.BLACK_FLAG_CODE_POINT=R;var He={addChars:Ee,addFonts:Pe,getCharData:Ae,getFontByName:we,measureText:Te,checkLoadedFonts:xe,setIsLoaded:Ve};return ze.prototype=He,ze}();function SlotManager(A){this.animationData=A}SlotManager.prototype.getProp=function(A){return this.animationData.slots&&this.animationData.slots[A.sid]?Object.assign(A,this.animationData.slots[A.sid].p):A};function slotFactory(A){return new SlotManager(A)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(E){this.renderableComponents.indexOf(E)===-1&&this.renderableComponents.push(E)},removeRenderableComponent:function(E){this.renderableComponents.indexOf(E)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(E),1)},prepareRenderableFrame:function(E){this.checkLayerLimits(E)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(E){this.data.ip-this.data.st<=E&&this.data.op-this.data.st>E?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var E,C=this.renderableComponents.length;for(E=0;E<C;E+=1)this.renderableComponents[E].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var A={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(E){return A[E]||""}}();function SliderEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function AngleEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function ColorEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,1,0,C)}function PointEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,1,0,C)}function LayerIndexEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function MaskIndexEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function CheckboxEffect(A,E,C){this.p=PropertyFactory.getProp(E,A.v,0,0,C)}function NoValueEffect(){this.p={}}function EffectsManager(A,E){var C=A.ef||[];this.effectElements=[];var R,I=C.length,B;for(R=0;R<I;R+=1)B=new GroupEffect(C[R],E),this.effectElements.push(B)}function GroupEffect(A,E){this.init(A,E)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(A,E){this.data=A,this.effectElements=[],this.initDynamicPropertyContainer(E);var C,R=this.data.ef.length,I,B=this.data.ef;for(C=0;C<R;C+=1){switch(I=null,B[C].ty){case 0:I=new SliderEffect(B[C],E,this);break;case 1:I=new AngleEffect(B[C],E,this);break;case 2:I=new ColorEffect(B[C],E,this);break;case 3:I=new PointEffect(B[C],E,this);break;case 4:case 7:I=new CheckboxEffect(B[C],E,this);break;case 10:I=new LayerIndexEffect(B[C],E,this);break;case 11:I=new MaskIndexEffect(B[C],E,this);break;case 5:I=new EffectsManager(B[C],E);break;default:I=new NoValueEffect(B[C]);break}I&&this.effectElements.push(I)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var E=0,C=this.data.masksProperties.length;E<C;){if(this.data.masksProperties[E].mode!=="n"&&this.data.masksProperties[E].cl!==!1)return!0;E+=1}return!1},initExpressions:function(){var E=getExpressionInterfaces();if(E){var C=E("layer"),R=E("effects"),I=E("shape"),B=E("text"),U=E("comp");this.layerInterface=C(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var V=R.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(V),this.data.ty===0||this.data.xt?this.compInterface=U(this):this.data.ty===4?(this.layerInterface.shapeInterface=I(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=B(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var E=getBlendMode(this.data.bm),C=this.baseElement||this.layerElement;C.style["mix-blend-mode"]=E},initBaseData:function(E,C,R){this.globalData=C,this.comp=R,this.data=E,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(E,C){var R,I=this.dynamicProperties.length;for(R=0;R<I;R+=1)(C||this._isParent&&this.dynamicProperties[R].propType==="transform")&&(this.dynamicProperties[R].getValue(),this.dynamicProperties[R]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(E){this.dynamicProperties.indexOf(E)===-1&&this.dynamicProperties.push(E)}};function FootageElement(A,E,C){this.initFrame(),this.initRenderable(),this.assetData=E.getAssetData(A.refId),this.footageData=E.imageLoader.getAsset(this.assetData),this.initBaseData(A,E,C)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var A=getExpressionInterfaces();if(A){var E=A("footage");this.layerInterface=E(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(A,E,C){this.initFrame(),this.initRenderable(),this.assetData=E.getAssetData(A.refId),this.initBaseData(A,E,C),this._isPlaying=!1,this._canPlay=!1;var R=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(R),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=A.tm?PropertyFactory.getProp(this,A.tm,0,E.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,A.au&&A.au.lv?A.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(A){if(this.prepareRenderableFrame(A,!0),this.prepareProperties(A,!0),this.tm._placeholder)this._currentTime=A/this.data.sr;else{var E=this.tm.v;this._currentTime=E}this._volume=this.lv.v[0];var C=this._volume*this._volumeMultiplier;this._previousVolume!==C&&(this._previousVolume=C,this.audio.volume(C))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(A){this.audio.rate(A)},AudioElement.prototype.volume=function(A){this._volumeMultiplier=A,this._previousVolume=A*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(A){var E,C=this.layers.length,R;for(this.completeLayers=!0,E=C-1;E>=0;E-=1)this.elements[E]||(R=this.layers[E],R.ip-R.st<=A-this.layers[E].st&&R.op-R.st>A-this.layers[E].st&&this.buildItem(E)),this.completeLayers=this.elements[E]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(A){switch(A.ty){case 2:return this.createImage(A);case 0:return this.createComp(A);case 1:return this.createSolid(A);case 3:return this.createNull(A);case 4:return this.createShape(A);case 5:return this.createText(A);case 6:return this.createAudio(A);case 13:return this.createCamera(A);case 15:return this.createFootage(A);default:return this.createNull(A)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(A){return new AudioElement(A,this.globalData,this)},BaseRenderer.prototype.createFootage=function(A){return new FootageElement(A,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var A,E=this.layers.length;for(A=0;A<E;A+=1)this.buildItem(A);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(A){this.completeLayers=!1;var E,C=A.length,R,I=this.layers.length;for(E=0;E<C;E+=1)for(R=0;R<I;){if(this.layers[R].id===A[E].id){this.layers[R]=A[E];break}R+=1}},BaseRenderer.prototype.setProjectInterface=function(A){this.globalData.projectInterface=A},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(A,E,C){for(var R=this.elements,I=this.layers,B=0,U=I.length;B<U;)I[B].ind==E&&(!R[B]||R[B]===!0?(this.buildItem(B),this.addPendingElement(A)):(C.push(R[B]),R[B].setAsParent(),I[B].parent!==void 0?this.buildElementParenting(A,I[B].parent,C):A.setHierarchy(C))),B+=1},BaseRenderer.prototype.addPendingElement=function(A){this.pendingElements.push(A)},BaseRenderer.prototype.searchExtraCompositions=function(A){var E,C=A.length;for(E=0;E<C;E+=1)if(A[E].xt){var R=this.createComp(A[E]);R.initExpressions(),this.globalData.projectInterface.registerComposition(R)}},BaseRenderer.prototype.getElementById=function(A){var E,C=this.elements.length;for(E=0;E<C;E+=1)if(this.elements[E].data.ind===A)return this.elements[E];return null},BaseRenderer.prototype.getElementByPath=function(A){var E=A.shift(),C;if(typeof E=="number")C=this.elements[E];else{var R,I=this.elements.length;for(R=0;R<I;R+=1)if(this.elements[R].data.nm===E){C=this.elements[R];break}}return A.length===0?C:C.getElementByPath(A)},BaseRenderer.prototype.setupGlobalData=function(A,E){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(A),this.globalData.fontManager.addChars(A.chars),this.globalData.fontManager.addFonts(A.fonts,E),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=A.fr,this.globalData.nm=A.nm,this.globalData.compSize={w:A.w,h:A.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var E=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:E,localMat:E,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var E,C=this.finalTransform.mat,R=0,I=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;R<I;){if(this.hierarchy[R].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}R+=1}if(this.finalTransform._matMdf)for(E=this.finalTransform.mProp.v.props,C.cloneFromProps(E),R=0;R<I;R+=1)C.multiply(this.hierarchy[R].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var E=0,C=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;E<C;)this.localTransforms[E]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[E]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),E+=1;if(this.finalTransform._localMatMdf){var R=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(R),E=1;E<C;E+=1){var I=this.localTransforms[E].matrix;R.multiply(I)}R.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var B=this.finalTransform.localOpacity;for(E=0;E<C;E+=1)B*=this.localTransforms[E].opacity*.01;this.finalTransform.localOpacity=B}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var E=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(E.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var C=0,R=E.length;for(C=0;C<R;C+=1)this.localTransforms.push(E[C])}}},globalToLocal:function(E){var C=[];C.push(this.finalTransform);for(var R=!0,I=this.comp;R;)I.finalTransform?(I.data.hasMask&&C.splice(0,0,I.finalTransform),I=I.comp):R=!1;var B,U=C.length,V;for(B=0;B<U;B+=1)V=C[B].mat.applyToPointArray(0,0,0),E=[E[0]-V[0],E[1]-V[1],0];return E},mHelper:new Matrix};function MaskElement(A,E,C){this.data=A,this.element=E,this.globalData=C,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var R=this.globalData.defs,I,B=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(B),this.solidPath="";var U,V=this.masksProperties,X=0,K=[],J,Y,Z=createElementID(),_e,xe,Se,Pe,Ee="clipPath",Ae="clip-path";for(I=0;I<B;I+=1)if((V[I].mode!=="a"&&V[I].mode!=="n"||V[I].inv||V[I].o.k!==100||V[I].o.x)&&(Ee="mask",Ae="mask"),(V[I].mode==="s"||V[I].mode==="i")&&X===0?(_e=createNS("rect"),_e.setAttribute("fill","#ffffff"),_e.setAttribute("width",this.element.comp.data.w||0),_e.setAttribute("height",this.element.comp.data.h||0),K.push(_e)):_e=null,U=createNS("path"),V[I].mode==="n")this.viewData[I]={op:PropertyFactory.getProp(this.element,V[I].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,V[I],3),elem:U,lastPath:""},R.appendChild(U);else{X+=1,U.setAttribute("fill",V[I].mode==="s"?"#000000":"#ffffff"),U.setAttribute("clip-rule","nonzero");var Te;if(V[I].x.k!==0?(Ee="mask",Ae="mask",Pe=PropertyFactory.getProp(this.element,V[I].x,0,null,this.element),Te=createElementID(),xe=createNS("filter"),xe.setAttribute("id",Te),Se=createNS("feMorphology"),Se.setAttribute("operator","erode"),Se.setAttribute("in","SourceGraphic"),Se.setAttribute("radius","0"),xe.appendChild(Se),R.appendChild(xe),U.setAttribute("stroke",V[I].mode==="s"?"#000000":"#ffffff")):(Se=null,Pe=null),this.storedData[I]={elem:U,x:Pe,expan:Se,lastPath:"",lastOperator:"",filterId:Te,lastRadius:0},V[I].mode==="i"){Y=K.length;var we=createNS("g");for(J=0;J<Y;J+=1)we.appendChild(K[J]);var Ie=createNS("mask");Ie.setAttribute("mask-type","alpha"),Ie.setAttribute("id",Z+"_"+X),Ie.appendChild(U),R.appendChild(Ie),we.setAttribute("mask","url("+getLocationHref()+"#"+Z+"_"+X+")"),K.length=0,K.push(we)}else K.push(U);V[I].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[I]={elem:U,lastPath:"",op:PropertyFactory.getProp(this.element,V[I].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,V[I],3),invRect:_e},this.viewData[I].prop.k||this.drawPath(V[I],this.viewData[I].prop.v,this.viewData[I])}for(this.maskElement=createNS(Ee),B=K.length,I=0;I<B;I+=1)this.maskElement.appendChild(K[I]);X>0&&(this.maskElement.setAttribute("id",Z),this.element.maskedElement.setAttribute(Ae,"url("+getLocationHref()+"#"+Z+")"),R.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(A){return this.viewData[A].prop},MaskElement.prototype.renderFrame=function(A){var E=this.element.finalTransform.mat,C,R=this.masksProperties.length;for(C=0;C<R;C+=1)if((this.viewData[C].prop._mdf||A)&&this.drawPath(this.masksProperties[C],this.viewData[C].prop.v,this.viewData[C]),(this.viewData[C].op._mdf||A)&&this.viewData[C].elem.setAttribute("fill-opacity",this.viewData[C].op.v),this.masksProperties[C].mode!=="n"&&(this.viewData[C].invRect&&(this.element.finalTransform.mProp._mdf||A)&&this.viewData[C].invRect.setAttribute("transform",E.getInverseMatrix().to2dCSS()),this.storedData[C].x&&(this.storedData[C].x._mdf||A))){var I=this.storedData[C].expan;this.storedData[C].x.v<0?(this.storedData[C].lastOperator!=="erode"&&(this.storedData[C].lastOperator="erode",this.storedData[C].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[C].filterId+")")),I.setAttribute("radius",-this.storedData[C].x.v)):(this.storedData[C].lastOperator!=="dilate"&&(this.storedData[C].lastOperator="dilate",this.storedData[C].elem.setAttribute("filter",null)),this.storedData[C].elem.setAttribute("stroke-width",this.storedData[C].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var A="M0,0 ";return A+=" h"+this.globalData.compSize.w,A+=" v"+this.globalData.compSize.h,A+=" h-"+this.globalData.compSize.w,A+=" v-"+this.globalData.compSize.h+" ",A},MaskElement.prototype.drawPath=function(A,E,C){var R=" M"+E.v[0][0]+","+E.v[0][1],I,B;for(B=E._length,I=1;I<B;I+=1)R+=" C"+E.o[I-1][0]+","+E.o[I-1][1]+" "+E.i[I][0]+","+E.i[I][1]+" "+E.v[I][0]+","+E.v[I][1];if(E.c&&B>1&&(R+=" C"+E.o[I-1][0]+","+E.o[I-1][1]+" "+E.i[0][0]+","+E.i[0][1]+" "+E.v[0][0]+","+E.v[0][1]),C.lastPath!==R){var U="";C.elem&&(E.c&&(U=A.inv?this.solidPath+R:R),C.elem.setAttribute("d",U)),C.lastPath=R}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var A={};A.createFilter=E,A.createAlphaToLuminanceFilter=C;function E(R,I){var B=createNS("filter");return B.setAttribute("id",R),I!==!0&&(B.setAttribute("filterUnits","objectBoundingBox"),B.setAttribute("x","0%"),B.setAttribute("y","0%"),B.setAttribute("width","100%"),B.setAttribute("height","100%")),B}function C(){var R=createNS("feColorMatrix");return R.setAttribute("type","matrix"),R.setAttribute("color-interpolation-filters","sRGB"),R.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),R}return A}(),featureSupport=function(){var A={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(A.maskType=!1),/firefox/i.test(navigator.userAgent)&&(A.svgLumaHidden=!1),A}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(A){var E,C="SourceGraphic",R=A.data.ef?A.data.ef.length:0,I=createElementID(),B=filtersFactory.createFilter(I,!0),U=0;this.filters=[];var V;for(E=0;E<R;E+=1){V=null;var X=A.data.ef[E].ty;if(registeredEffects$1[X]){var K=registeredEffects$1[X].effect;V=new K(B,A.effectsManager.effectElements[E],A,idPrefix+U,C),C=idPrefix+U,registeredEffects$1[X].countsAsEffect&&(U+=1)}V&&this.filters.push(V)}U&&(A.globalData.defs.appendChild(B),A.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+I+")")),this.filters.length&&A.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(A){var E,C=this.filters.length;for(E=0;E<C;E+=1)this.filters[E].renderFrame(A)},SVGEffects.prototype.getEffects=function(A){var E,C=this.filters.length,R=[];for(E=0;E<C;E+=1)this.filters[E].type===A&&R.push(this.filters[E]);return R};function registerEffect$1(A,E,C){registeredEffects$1[A]={effect:E,countsAsEffect:C}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var E=null;if(this.data.td){this.matteMasks={};var C=createNS("g");C.setAttribute("id",this.layerId),C.appendChild(this.layerElement),E=C,this.globalData.defs.appendChild(C)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),E=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var R=createNS("clipPath"),I=createNS("path");I.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var B=createElementID();if(R.setAttribute("id",B),R.appendChild(I),this.globalData.defs.appendChild(R),this.checkMasks()){var U=createNS("g");U.setAttribute("clip-path","url("+getLocationHref()+"#"+B+")"),U.appendChild(this.layerElement),this.transformedElement=U,E?E.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+B+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(E){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[E]){var C=this.layerId+"_"+E,R,I,B,U;if(E===1||E===3){var V=createNS("mask");V.setAttribute("id",C),V.setAttribute("mask-type",E===3?"luminance":"alpha"),B=createNS("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),V.appendChild(B),this.globalData.defs.appendChild(V),!featureSupport.maskType&&E===1&&(V.setAttribute("mask-type","luminance"),R=createElementID(),I=filtersFactory.createFilter(R),this.globalData.defs.appendChild(I),I.appendChild(filtersFactory.createAlphaToLuminanceFilter()),U=createNS("g"),U.appendChild(B),V.appendChild(U),U.setAttribute("filter","url("+getLocationHref()+"#"+R+")"))}else if(E===2){var X=createNS("mask");X.setAttribute("id",C),X.setAttribute("mask-type","alpha");var K=createNS("g");X.appendChild(K),R=createElementID(),I=filtersFactory.createFilter(R);var J=createNS("feComponentTransfer");J.setAttribute("in","SourceGraphic"),I.appendChild(J);var Y=createNS("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),J.appendChild(Y),this.globalData.defs.appendChild(I);var Z=createNS("rect");Z.setAttribute("width",this.comp.data.w),Z.setAttribute("height",this.comp.data.h),Z.setAttribute("x","0"),Z.setAttribute("y","0"),Z.setAttribute("fill","#ffffff"),Z.setAttribute("opacity","0"),K.setAttribute("filter","url("+getLocationHref()+"#"+R+")"),K.appendChild(Z),B=createNS("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),K.appendChild(B),featureSupport.maskType||(X.setAttribute("mask-type","luminance"),I.appendChild(filtersFactory.createAlphaToLuminanceFilter()),U=createNS("g"),K.appendChild(Z),U.appendChild(this.layerElement),K.appendChild(U)),this.globalData.defs.appendChild(X)}this.matteMasks[E]=C}return this.matteMasks[E]},setMatte:function(E){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+E+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(E){this.hierarchy=E},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var A={initElement:function(C,R,I){this.initFrame(),this.initBaseData(C,R,I),this.initTransform(C,R,I),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var C=this.baseElement||this.layerElement;C.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var C=this.baseElement||this.layerElement;C.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(C){this._mdf=!1,this.prepareRenderableFrame(C),this.prepareProperties(C,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(A)],RenderableDOMElement)})();function IImageElement(A,E,C){this.assetData=E.getAssetData(A.refId),this.assetData&&this.assetData.sid&&(this.assetData=E.slotManager.getProp(this.assetData)),this.initElement(A,E,C),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var A=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",A),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(A,E){this.elem=A,this.pos=E}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(E){var C,R=this.shapeModifiers.length;for(C=0;C<R;C+=1)this.shapeModifiers[C].addShape(E)},isShapeInAnimatedModifiers:function(E){for(var C=0,R=this.shapeModifiers.length;C<R;)if(this.shapeModifiers[C].isAnimatedWithShape(E))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var E,C=this.shapes.length;for(E=0;E<C;E+=1)this.shapes[E].sh.reset();C=this.shapeModifiers.length;var R;for(E=C-1;E>=0&&(R=this.shapeModifiers[E].processShapes(this._isFirstFrame),!R);E-=1);}},searchProcessedElement:function(E){for(var C=this.processedElements,R=0,I=C.length;R<I;){if(C[R].elem===E)return C[R].pos;R+=1}return 0},addProcessedElement:function(E,C){for(var R=this.processedElements,I=R.length;I;)if(I-=1,R[I].elem===E){R[I].pos=C;return}R.push(new ProcessedElement(E,C))},prepareFrame:function(E){this.prepareRenderableFrame(E),this.prepareProperties(E,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(A,E,C){this.caches=[],this.styles=[],this.transformers=A,this.lStr="",this.sh=C,this.lvl=E,this._isAnimated=!!C.k;for(var R=0,I=A.length;R<I;){if(A[R].mProps.dynamicProperties.length){this._isAnimated=!0;break}R+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(A,E){this.data=A,this.type=A.ty,this.d="",this.lvl=E,this._mdf=!1,this.closed=A.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(A,E,C,R){this.elem=A,this.frameId=-1,this.dataProps=createSizedArray(E.length),this.renderer=C,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",E.length?E.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(R);var I,B=E.length||0,U;for(I=0;I<B;I+=1)U=PropertyFactory.getProp(A,E[I].v,0,0,this),this.k=U.k||this.k,this.dataProps[I]={n:E[I].n,p:U};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(A){if(!(this.elem.globalData.frameId===this.frameId&&!A)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||A,this._mdf)){var E=0,C=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),E=0;E<C;E+=1)this.dataProps[E].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[E].p.v:this.dashArray[E]=this.dataProps[E].p.v:this.dashoffset[0]=this.dataProps[E].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(A,E.o,0,.01,this),this.w=PropertyFactory.getProp(A,E.w,0,null,this),this.d=new DashProperty(A,E.d||{},"svg",this),this.c=PropertyFactory.getProp(A,E.c,1,255,this),this.style=C,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(A,E.o,0,.01,this),this.c=PropertyFactory.getProp(A,E.c,1,255,this),this.style=C}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.style=C}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(A,E,C){this.data=E,this.c=createTypedArray("uint8c",E.p*4);var R=E.k.k[0].s?E.k.k[0].s.length-E.p*4:E.k.k.length-E.p*4;this.o=createTypedArray("float32",R),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=R,this.initDynamicPropertyContainer(C),this.prop=PropertyFactory.getProp(A,E.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(A,E){for(var C=0,R=this.o.length/2,I;C<R;){if(I=Math.abs(A[C*4]-A[E*4+C*2]),I>.01)return!1;C+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var A=0,E=this.data.k.k.length;A<E;){if(!this.comparePoints(this.data.k.k[A].s,this.data.p))return!1;A+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(A){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||A){var E,C=this.data.p*4,R,I;for(E=0;E<C;E+=1)R=E%4===0?100:255,I=Math.round(this.prop.v[E]*R),this.c[E]!==I&&(this.c[E]=I,this._cmdf=!A);if(this.o.length)for(C=this.prop.v.length,E=this.data.p*4;E<C;E+=1)R=E%2===0?100:1,I=E%2===0?Math.round(this.prop.v[E]*100):this.prop.v[E],this.o[E-this.data.p*4]!==I&&(this.o[E-this.data.p*4]=I,this._omdf=!A);this._mdf=!A}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.initGradientData(A,E,C)}SVGGradientFillStyleData.prototype.initGradientData=function(A,E,C){this.o=PropertyFactory.getProp(A,E.o,0,.01,this),this.s=PropertyFactory.getProp(A,E.s,1,null,this),this.e=PropertyFactory.getProp(A,E.e,1,null,this),this.h=PropertyFactory.getProp(A,E.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(A,E.a||{k:0},0,degToRads,this),this.g=new GradientProperty(A,E.g,this),this.style=C,this.stops=[],this.setGradientData(C.pElem,E),this.setGradientOpacity(E,C),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(A,E){var C=createElementID(),R=createNS(E.t===1?"linearGradient":"radialGradient");R.setAttribute("id",C),R.setAttribute("spreadMethod","pad"),R.setAttribute("gradientUnits","userSpaceOnUse");var I=[],B,U,V;for(V=E.g.p*4,U=0;U<V;U+=4)B=createNS("stop"),R.appendChild(B),I.push(B);A.setAttribute(E.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+C+")"),this.gf=R,this.cst=I},SVGGradientFillStyleData.prototype.setGradientOpacity=function(A,E){if(this.g._hasOpacity&&!this.g._collapsable){var C,R,I,B=createNS("mask"),U=createNS("path");B.appendChild(U);var V=createElementID(),X=createElementID();B.setAttribute("id",X);var K=createNS(A.t===1?"linearGradient":"radialGradient");K.setAttribute("id",V),K.setAttribute("spreadMethod","pad"),K.setAttribute("gradientUnits","userSpaceOnUse"),I=A.g.k.k[0].s?A.g.k.k[0].s.length:A.g.k.k.length;var J=this.stops;for(R=A.g.p*4;R<I;R+=2)C=createNS("stop"),C.setAttribute("stop-color","rgb(255,255,255)"),K.appendChild(C),J.push(C);U.setAttribute(A.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+V+")"),A.ty==="gs"&&(U.setAttribute("stroke-linecap",lineCapEnum[A.lc||2]),U.setAttribute("stroke-linejoin",lineJoinEnum[A.lj||2]),A.lj===1&&U.setAttribute("stroke-miterlimit",A.ml)),this.of=K,this.ms=B,this.ost=J,this.maskId=X,E.msElem=U}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(A,E,C){this.initDynamicPropertyContainer(A),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(A,E.w,0,null,this),this.d=new DashProperty(A,E.d||{},"svg",this),this.initGradientData(A,E,C),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(A,E,C){this.transform={mProps:A,op:E,container:C},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(E,C,R,I){if(C===0)return"";var B=E.o,U=E.i,V=E.v,X,K=" M"+I.applyToPointStringified(V[0][0],V[0][1]);for(X=1;X<C;X+=1)K+=" C"+I.applyToPointStringified(B[X-1][0],B[X-1][1])+" "+I.applyToPointStringified(U[X][0],U[X][1])+" "+I.applyToPointStringified(V[X][0],V[X][1]);return R&&C&&(K+=" C"+I.applyToPointStringified(B[X-1][0],B[X-1][1])+" "+I.applyToPointStringified(U[0][0],U[0][1])+" "+I.applyToPointStringified(V[0][0],V[0][1]),K+="z"),K},SVGElementsRenderer=function(){var A=new Matrix,E=new Matrix,C={createRenderFunction:R};function R(Y){switch(Y.ty){case"fl":return V;case"gf":return K;case"gs":return X;case"st":return J;case"sh":case"el":case"rc":case"sr":return U;case"tr":return I;case"no":return B;default:return null}}function I(Y,Z,_e){(_e||Z.transform.op._mdf)&&Z.transform.container.setAttribute("opacity",Z.transform.op.v),(_e||Z.transform.mProps._mdf)&&Z.transform.container.setAttribute("transform",Z.transform.mProps.v.to2dCSS())}function B(){}function U(Y,Z,_e){var xe,Se,Pe,Ee,Ae,Te,we=Z.styles.length,Ie=Z.lvl,Fe,ke,Le,Ge;for(Te=0;Te<we;Te+=1){if(Ee=Z.sh._mdf||_e,Z.styles[Te].lvl<Ie){for(ke=E.reset(),Le=Ie-Z.styles[Te].lvl,Ge=Z.transformers.length-1;!Ee&&Le>0;)Ee=Z.transformers[Ge].mProps._mdf||Ee,Le-=1,Ge-=1;if(Ee)for(Le=Ie-Z.styles[Te].lvl,Ge=Z.transformers.length-1;Le>0;)ke.multiply(Z.transformers[Ge].mProps.v),Le-=1,Ge-=1}else ke=A;if(Fe=Z.sh.paths,Se=Fe._length,Ee){for(Pe="",xe=0;xe<Se;xe+=1)Ae=Fe.shapes[xe],Ae&&Ae._length&&(Pe+=buildShapeString(Ae,Ae._length,Ae.c,ke));Z.caches[Te]=Pe}else Pe=Z.caches[Te];Z.styles[Te].d+=Y.hd===!0?"":Pe,Z.styles[Te]._mdf=Ee||Z.styles[Te]._mdf}}function V(Y,Z,_e){var xe=Z.style;(Z.c._mdf||_e)&&xe.pElem.setAttribute("fill","rgb("+bmFloor(Z.c.v[0])+","+bmFloor(Z.c.v[1])+","+bmFloor(Z.c.v[2])+")"),(Z.o._mdf||_e)&&xe.pElem.setAttribute("fill-opacity",Z.o.v)}function X(Y,Z,_e){K(Y,Z,_e),J(Y,Z,_e)}function K(Y,Z,_e){var xe=Z.gf,Se=Z.g._hasOpacity,Pe=Z.s.v,Ee=Z.e.v;if(Z.o._mdf||_e){var Ae=Y.ty==="gf"?"fill-opacity":"stroke-opacity";Z.style.pElem.setAttribute(Ae,Z.o.v)}if(Z.s._mdf||_e){var Te=Y.t===1?"x1":"cx",we=Te==="x1"?"y1":"cy";xe.setAttribute(Te,Pe[0]),xe.setAttribute(we,Pe[1]),Se&&!Z.g._collapsable&&(Z.of.setAttribute(Te,Pe[0]),Z.of.setAttribute(we,Pe[1]))}var Ie,Fe,ke,Le;if(Z.g._cmdf||_e){Ie=Z.cst;var Ge=Z.g.c;for(ke=Ie.length,Fe=0;Fe<ke;Fe+=1)Le=Ie[Fe],Le.setAttribute("offset",Ge[Fe*4]+"%"),Le.setAttribute("stop-color","rgb("+Ge[Fe*4+1]+","+Ge[Fe*4+2]+","+Ge[Fe*4+3]+")")}if(Se&&(Z.g._omdf||_e)){var Ue=Z.g.o;for(Z.g._collapsable?Ie=Z.cst:Ie=Z.ost,ke=Ie.length,Fe=0;Fe<ke;Fe+=1)Le=Ie[Fe],Z.g._collapsable||Le.setAttribute("offset",Ue[Fe*2]+"%"),Le.setAttribute("stop-opacity",Ue[Fe*2+1])}if(Y.t===1)(Z.e._mdf||_e)&&(xe.setAttribute("x2",Ee[0]),xe.setAttribute("y2",Ee[1]),Se&&!Z.g._collapsable&&(Z.of.setAttribute("x2",Ee[0]),Z.of.setAttribute("y2",Ee[1])));else{var Be;if((Z.s._mdf||Z.e._mdf||_e)&&(Be=Math.sqrt(Math.pow(Pe[0]-Ee[0],2)+Math.pow(Pe[1]-Ee[1],2)),xe.setAttribute("r",Be),Se&&!Z.g._collapsable&&Z.of.setAttribute("r",Be)),Z.e._mdf||Z.h._mdf||Z.a._mdf||_e){Be||(Be=Math.sqrt(Math.pow(Pe[0]-Ee[0],2)+Math.pow(Pe[1]-Ee[1],2)));var je=Math.atan2(Ee[1]-Pe[1],Ee[0]-Pe[0]),Ve=Z.h.v;Ve>=1?Ve=.99:Ve<=-1&&(Ve=-.99);var ze=Be*Ve,He=Math.cos(je+Z.a.v)*ze+Pe[0],Oe=Math.sin(je+Z.a.v)*ze+Pe[1];xe.setAttribute("fx",He),xe.setAttribute("fy",Oe),Se&&!Z.g._collapsable&&(Z.of.setAttribute("fx",He),Z.of.setAttribute("fy",Oe))}}}function J(Y,Z,_e){var xe=Z.style,Se=Z.d;Se&&(Se._mdf||_e)&&Se.dashStr&&(xe.pElem.setAttribute("stroke-dasharray",Se.dashStr),xe.pElem.setAttribute("stroke-dashoffset",Se.dashoffset[0])),Z.c&&(Z.c._mdf||_e)&&xe.pElem.setAttribute("stroke","rgb("+bmFloor(Z.c.v[0])+","+bmFloor(Z.c.v[1])+","+bmFloor(Z.c.v[2])+")"),(Z.o._mdf||_e)&&xe.pElem.setAttribute("stroke-opacity",Z.o.v),(Z.w._mdf||_e)&&(xe.pElem.setAttribute("stroke-width",Z.w.v),xe.msElem&&xe.msElem.setAttribute("stroke-width",Z.w.v))}return C}();function SVGShapeElement(A,E,C){this.shapes=[],this.shapesData=A.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(A,E,C),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var A,E=this.shapes.length,C,R,I=this.stylesList.length,B,U=[],V=!1;for(R=0;R<I;R+=1){for(B=this.stylesList[R],V=!1,U.length=0,A=0;A<E;A+=1)C=this.shapes[A],C.styles.indexOf(B)!==-1&&(U.push(C),V=C._isAnimated||V);U.length>1&&V&&this.setShapesAsAnimated(U)}},SVGShapeElement.prototype.setShapesAsAnimated=function(A){var E,C=A.length;for(E=0;E<C;E+=1)A[E].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(A,E){var C,R=new SVGStyleData(A,E),I=R.pElem;if(A.ty==="st")C=new SVGStrokeStyleData(this,A,R);else if(A.ty==="fl")C=new SVGFillStyleData(this,A,R);else if(A.ty==="gf"||A.ty==="gs"){var B=A.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;C=new B(this,A,R),this.globalData.defs.appendChild(C.gf),C.maskId&&(this.globalData.defs.appendChild(C.ms),this.globalData.defs.appendChild(C.of),I.setAttribute("mask","url("+getLocationHref()+"#"+C.maskId+")"))}else A.ty==="no"&&(C=new SVGNoStyleData(this,A,R));return(A.ty==="st"||A.ty==="gs")&&(I.setAttribute("stroke-linecap",lineCapEnum[A.lc||2]),I.setAttribute("stroke-linejoin",lineJoinEnum[A.lj||2]),I.setAttribute("fill-opacity","0"),A.lj===1&&I.setAttribute("stroke-miterlimit",A.ml)),A.r===2&&I.setAttribute("fill-rule","evenodd"),A.ln&&I.setAttribute("id",A.ln),A.cl&&I.setAttribute("class",A.cl),A.bm&&(I.style["mix-blend-mode"]=getBlendMode(A.bm)),this.stylesList.push(R),this.addToAnimatedContents(A,C),C},SVGShapeElement.prototype.createGroupElement=function(A){var E=new ShapeGroupData;return A.ln&&E.gr.setAttribute("id",A.ln),A.cl&&E.gr.setAttribute("class",A.cl),A.bm&&(E.gr.style["mix-blend-mode"]=getBlendMode(A.bm)),E},SVGShapeElement.prototype.createTransformElement=function(A,E){var C=TransformPropertyFactory.getTransformProperty(this,A,this),R=new SVGTransformData(C,C.o,E);return this.addToAnimatedContents(A,R),R},SVGShapeElement.prototype.createShapeElement=function(A,E,C){var R=4;A.ty==="rc"?R=5:A.ty==="el"?R=6:A.ty==="sr"&&(R=7);var I=ShapePropertyFactory.getShapeProp(this,A,R,this),B=new SVGShapeData(E,C,I);return this.shapes.push(B),this.addShapeToModifiers(B),this.addToAnimatedContents(A,B),B},SVGShapeElement.prototype.addToAnimatedContents=function(A,E){for(var C=0,R=this.animatedContents.length;C<R;){if(this.animatedContents[C].element===E)return;C+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(A),element:E,data:A})},SVGShapeElement.prototype.setElementStyles=function(A){var E=A.styles,C,R=this.stylesList.length;for(C=0;C<R;C+=1)this.stylesList[C].closed||E.push(this.stylesList[C])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var A,E=this.itemsData.length;for(A=0;A<E;A+=1)this.prevViewData[A]=this.itemsData[A];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),E=this.dynamicProperties.length,A=0;A<E;A+=1)this.dynamicProperties[A].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(A,E,C,R,I,B,U){var V=[].concat(B),X,K=A.length-1,J,Y,Z=[],_e=[],xe,Se,Pe;for(X=K;X>=0;X-=1){if(Pe=this.searchProcessedElement(A[X]),Pe?E[X]=C[Pe-1]:A[X]._render=U,A[X].ty==="fl"||A[X].ty==="st"||A[X].ty==="gf"||A[X].ty==="gs"||A[X].ty==="no")Pe?E[X].style.closed=!1:E[X]=this.createStyleElement(A[X],I),A[X]._render&&E[X].style.pElem.parentNode!==R&&R.appendChild(E[X].style.pElem),Z.push(E[X].style);else if(A[X].ty==="gr"){if(!Pe)E[X]=this.createGroupElement(A[X]);else for(Y=E[X].it.length,J=0;J<Y;J+=1)E[X].prevViewData[J]=E[X].it[J];this.searchShapes(A[X].it,E[X].it,E[X].prevViewData,E[X].gr,I+1,V,U),A[X]._render&&E[X].gr.parentNode!==R&&R.appendChild(E[X].gr)}else A[X].ty==="tr"?(Pe||(E[X]=this.createTransformElement(A[X],R)),xe=E[X].transform,V.push(xe)):A[X].ty==="sh"||A[X].ty==="rc"||A[X].ty==="el"||A[X].ty==="sr"?(Pe||(E[X]=this.createShapeElement(A[X],V,I)),this.setElementStyles(E[X])):A[X].ty==="tm"||A[X].ty==="rd"||A[X].ty==="ms"||A[X].ty==="pb"||A[X].ty==="zz"||A[X].ty==="op"?(Pe?(Se=E[X],Se.closed=!1):(Se=ShapeModifiers.getModifier(A[X].ty),Se.init(this,A[X]),E[X]=Se,this.shapeModifiers.push(Se)),_e.push(Se)):A[X].ty==="rp"&&(Pe?(Se=E[X],Se.closed=!0):(Se=ShapeModifiers.getModifier(A[X].ty),E[X]=Se,Se.init(this,A,X,E),this.shapeModifiers.push(Se),U=!1),_e.push(Se));this.addProcessedElement(A[X],X+1)}for(K=Z.length,X=0;X<K;X+=1)Z[X].closed=!0;for(K=_e.length,X=0;X<K;X+=1)_e[X].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var A,E=this.stylesList.length;for(A=0;A<E;A+=1)this.stylesList[A].reset();for(this.renderShape(),A=0;A<E;A+=1)(this.stylesList[A]._mdf||this._isFirstFrame)&&(this.stylesList[A].msElem&&(this.stylesList[A].msElem.setAttribute("d",this.stylesList[A].d),this.stylesList[A].d="M0 0"+this.stylesList[A].d),this.stylesList[A].pElem.setAttribute("d",this.stylesList[A].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var A,E=this.animatedContents.length,C;for(A=0;A<E;A+=1)C=this.animatedContents[A],(this._isFirstFrame||C.element._isAnimated)&&C.data!==!0&&C.fn(C.data,C.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(A,E,C,R,I,B){this.o=A,this.sw=E,this.sc=C,this.fc=R,this.m=I,this.p=B,this._mdf={o:!0,sw:!!E,sc:!!C,fc:!!R,m:!0,p:!0}}LetterProps.prototype.update=function(A,E,C,R,I,B){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var U=!1;return this.o!==A&&(this.o=A,this._mdf.o=!0,U=!0),this.sw!==E&&(this.sw=E,this._mdf.sw=!0,U=!0),this.sc!==C&&(this.sc=C,this._mdf.sc=!0,U=!0),this.fc!==R&&(this.fc=R,this._mdf.fc=!0,U=!0),this.m!==I&&(this.m=I,this._mdf.m=!0,U=!0),B.length&&(this.p[0]!==B[0]||this.p[1]!==B[1]||this.p[4]!==B[4]||this.p[5]!==B[5]||this.p[12]!==B[12]||this.p[13]!==B[13])&&(this.p=B,this._mdf.p=!0,U=!0),U};function TextProperty(A,E){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,E.d&&E.d.sid&&(E.d=A.globalData.slotManager.getProp(E.d)),this.data=E,this.elem=A,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(A,E){for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(A[C]=E[C]);return A},TextProperty.prototype.setCurrentData=function(A){A.__complete||this.completeTextData(A),this.currentData=A,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(A){this.effectsSequence.push(A),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(A){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!A)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var E=this.currentData,C=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var R,I=this.effectsSequence.length,B=A||this.data.d.k[this.keysIndex].s;for(R=0;R<I;R+=1)C!==this.keysIndex?B=this.effectsSequence[R](B,B.t):B=this.effectsSequence[R](this.currentData,B.t);E!==B&&this.setCurrentData(B),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var A=this.data.d.k,E=this.elem.comp.renderedFrame,C=0,R=A.length;C<=R-1&&!(C===R-1||A[C+1].t>E);)C+=1;return this.keysIndex!==C&&(this.keysIndex=C),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(A){for(var E=[],C=0,R=A.length,I,B,U=!1,V=!1,X="";C<R;)U=V,V=!1,I=A.charCodeAt(C),X=A.charAt(C),FontManager.isCombinedCharacter(I)?U=!0:I>=55296&&I<=56319?FontManager.isRegionalFlag(A,C)?X=A.substr(C,14):(B=A.charCodeAt(C+1),B>=56320&&B<=57343&&(FontManager.isModifier(I,B)?(X=A.substr(C,2),U=!0):FontManager.isFlagEmoji(A.substr(C,4))?X=A.substr(C,4):X=A.substr(C,2))):I>56319?(B=A.charCodeAt(C+1),FontManager.isVariationSelector(I)&&(U=!0)):FontManager.isZeroWidthJoiner(I)&&(U=!0,V=!0),U?(E[E.length-1]+=X,U=!1):E.push(X),C+=X.length;return E},TextProperty.prototype.completeTextData=function(A){A.__complete=!0;var E=this.elem.globalData.fontManager,C=this.data,R=[],I,B,U,V=0,X,K=C.m.g,J=0,Y=0,Z=0,_e=[],xe=0,Se=0,Pe,Ee,Ae=E.getFontByName(A.f),Te,we=0,Ie=getFontProperties(Ae);A.fWeight=Ie.weight,A.fStyle=Ie.style,A.finalSize=A.s,A.finalText=this.buildFinalText(A.t),B=A.finalText.length,A.finalLineHeight=A.lh;var Fe=A.tr/1e3*A.finalSize,ke;if(A.sz)for(var Le=!0,Ge=A.sz[0],Ue=A.sz[1],Be,je;Le;){je=this.buildFinalText(A.t),Be=0,xe=0,B=je.length,Fe=A.tr/1e3*A.finalSize;var Ve=-1;for(I=0;I<B;I+=1)ke=je[I].charCodeAt(0),U=!1,je[I]===" "?Ve=I:(ke===13||ke===3)&&(xe=0,U=!0,Be+=A.finalLineHeight||A.finalSize*1.2),E.chars?(Te=E.getCharData(je[I],Ae.fStyle,Ae.fFamily),we=U?0:Te.w*A.finalSize/100):we=E.measureText(je[I],A.f,A.finalSize),xe+we>Ge&&je[I]!==" "?(Ve===-1?B+=1:I=Ve,Be+=A.finalLineHeight||A.finalSize*1.2,je.splice(I,Ve===I?1:0,"\r"),Ve=-1,xe=0):(xe+=we,xe+=Fe);Be+=Ae.ascent*A.finalSize/100,this.canResize&&A.finalSize>this.minimumFontSize&&Ue<Be?(A.finalSize-=1,A.finalLineHeight=A.finalSize*A.lh/A.s):(A.finalText=je,B=A.finalText.length,Le=!1)}xe=-Fe,we=0;var ze=0,He;for(I=0;I<B;I+=1)if(U=!1,He=A.finalText[I],ke=He.charCodeAt(0),ke===13||ke===3?(ze=0,_e.push(xe),Se=xe>Se?xe:Se,xe=-2*Fe,X="",U=!0,Z+=1):X=He,E.chars?(Te=E.getCharData(He,Ae.fStyle,E.getFontByName(A.f).fFamily),we=U?0:Te.w*A.finalSize/100):we=E.measureText(X,A.f,A.finalSize),He===" "?ze+=we+Fe:(xe+=we+Fe+ze,ze=0),R.push({l:we,an:we,add:J,n:U,anIndexes:[],val:X,line:Z,animatorJustifyOffset:0}),K==2){if(J+=we,X===""||X===" "||I===B-1){for((X===""||X===" ")&&(J-=we);Y<=I;)R[Y].an=J,R[Y].ind=V,R[Y].extra=we,Y+=1;V+=1,J=0}}else if(K==3){if(J+=we,X===""||I===B-1){for(X===""&&(J-=we);Y<=I;)R[Y].an=J,R[Y].ind=V,R[Y].extra=we,Y+=1;J=0,V+=1}}else R[V].ind=V,R[V].extra=0,V+=1;if(A.l=R,Se=xe>Se?xe:Se,_e.push(xe),A.sz)A.boxWidth=A.sz[0],A.justifyOffset=0;else switch(A.boxWidth=Se,A.j){case 1:A.justifyOffset=-A.boxWidth;break;case 2:A.justifyOffset=-A.boxWidth/2;break;default:A.justifyOffset=0}A.lineWidths=_e;var Oe=C.a,$e,Re;Ee=Oe.length;var Me,Ne,De=[];for(Pe=0;Pe<Ee;Pe+=1){for($e=Oe[Pe],$e.a.sc&&(A.strokeColorAnim=!0),$e.a.sw&&(A.strokeWidthAnim=!0),($e.a.fc||$e.a.fh||$e.a.fs||$e.a.fb)&&(A.fillColorAnim=!0),Ne=0,Me=$e.s.b,I=0;I<B;I+=1)Re=R[I],Re.anIndexes[Pe]=Ne,(Me==1&&Re.val!==""||Me==2&&Re.val!==""&&Re.val!==" "||Me==3&&(Re.n||Re.val==" "||I==B-1)||Me==4&&(Re.n||I==B-1))&&($e.s.rn===1&&De.push(Ne),Ne+=1);C.a[Pe].s.totalChars=Ne;var Xe=-1,qe;if($e.s.rn===1)for(I=0;I<B;I+=1)Re=R[I],Xe!=Re.anIndexes[Pe]&&(Xe=Re.anIndexes[Pe],qe=De.splice(Math.floor(Math.random()*De.length),1)[0]),Re.anIndexes[Pe]=qe}A.yOffset=A.finalLineHeight||A.finalSize*1.2,A.ls=A.ls||0,A.ascent=Ae.ascent*A.finalSize/100},TextProperty.prototype.updateDocumentData=function(A,E){E=E===void 0?this.keysIndex:E;var C=this.copyData({},this.data.d.k[E].s);C=this.copyData(C,A),this.data.d.k[E].s=C,this.recalculate(E),this.setCurrentData(C),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(A){var E=this.data.d.k[A].s;E.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(E)},TextProperty.prototype.canResizeFont=function(A){this.canResize=A,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(A){this.minimumFontSize=Math.floor(A)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var A=Math.max,E=Math.min,C=Math.floor;function R(B,U){this._currentTextLength=-1,this.k=!1,this.data=U,this.elem=B,this.comp=B.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(B),this.s=PropertyFactory.getProp(B,U.s||{k:0},0,0,this),"e"in U?this.e=PropertyFactory.getProp(B,U.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(B,U.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(B,U.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(B,U.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(B,U.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(B,U.a,0,.01,this),this.dynamicProperties.length||this.getValue()}R.prototype={getMult:function(U){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var V=0,X=0,K=1,J=1;this.ne.v>0?V=this.ne.v/100:X=-this.ne.v/100,this.xe.v>0?K=1-this.xe.v/100:J=1+this.xe.v/100;var Y=BezierFactory.getBezierEasing(V,X,K,J).get,Z=0,_e=this.finalS,xe=this.finalE,Se=this.data.sh;if(Se===2)xe===_e?Z=U>=xe?1:0:Z=A(0,E(.5/(xe-_e)+(U-_e)/(xe-_e),1)),Z=Y(Z);else if(Se===3)xe===_e?Z=U>=xe?0:1:Z=1-A(0,E(.5/(xe-_e)+(U-_e)/(xe-_e),1)),Z=Y(Z);else if(Se===4)xe===_e?Z=0:(Z=A(0,E(.5/(xe-_e)+(U-_e)/(xe-_e),1)),Z<.5?Z*=2:Z=1-2*(Z-.5)),Z=Y(Z);else if(Se===5){if(xe===_e)Z=0;else{var Pe=xe-_e;U=E(A(0,U+.5-_e),xe-_e);var Ee=-Pe/2+U,Ae=Pe/2;Z=Math.sqrt(1-Ee*Ee/(Ae*Ae))}Z=Y(Z)}else Se===6?(xe===_e?Z=0:(U=E(A(0,U+.5-_e),xe-_e),Z=(1+Math.cos(Math.PI+Math.PI*2*U/(xe-_e)))/2),Z=Y(Z)):(U>=C(_e)&&(U-_e<0?Z=A(0,E(E(xe,1)-(_e-U),1)):Z=A(0,E(xe-U,1))),Z=Y(Z));if(this.sm.v!==100){var Te=this.sm.v*.01;Te===0&&(Te=1e-8);var we=.5-Te*.5;Z<we?Z=0:(Z=(Z-we)/Te,Z>1&&(Z=1))}return Z*this.a.v},getValue:function(U){this.iterateDynamicProperties(),this._mdf=U||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,U&&this.data.r===2&&(this.e.v=this._currentTextLength);var V=this.data.r===2?1:100/this.data.totalChars,X=this.o.v/V,K=this.s.v/V+X,J=this.e.v/V+X;if(K>J){var Y=K;K=J,J=Y}this.finalS=K,this.finalE=J}},extendPrototype([DynamicPropertyContainer],R);function I(B,U,V){return new R(B,U)}return{getTextSelectorProp:I}}();function TextAnimatorDataProperty(A,E,C){var R={propType:!1},I=PropertyFactory.getProp,B=E.a;this.a={r:B.r?I(A,B.r,0,degToRads,C):R,rx:B.rx?I(A,B.rx,0,degToRads,C):R,ry:B.ry?I(A,B.ry,0,degToRads,C):R,sk:B.sk?I(A,B.sk,0,degToRads,C):R,sa:B.sa?I(A,B.sa,0,degToRads,C):R,s:B.s?I(A,B.s,1,.01,C):R,a:B.a?I(A,B.a,1,0,C):R,o:B.o?I(A,B.o,0,.01,C):R,p:B.p?I(A,B.p,1,0,C):R,sw:B.sw?I(A,B.sw,0,0,C):R,sc:B.sc?I(A,B.sc,1,0,C):R,fc:B.fc?I(A,B.fc,1,0,C):R,fh:B.fh?I(A,B.fh,0,0,C):R,fs:B.fs?I(A,B.fs,0,.01,C):R,fb:B.fb?I(A,B.fb,0,.01,C):R,t:B.t?I(A,B.t,0,0,C):R},this.s=TextSelectorProp.getTextSelectorProp(A,E.s,C),this.s.t=E.s.t}function TextAnimatorProperty(A,E,C){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=A,this._renderType=E,this._elem=C,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(C)}TextAnimatorProperty.prototype.searchProperties=function(){var A,E=this._textData.a.length,C,R=PropertyFactory.getProp;for(A=0;A<E;A+=1)C=this._textData.a[A],this._animatorsData[A]=new TextAnimatorDataProperty(this._elem,C,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:R(this._elem,this._textData.p.a,0,0,this),f:R(this._elem,this._textData.p.f,0,0,this),l:R(this._elem,this._textData.p.l,0,0,this),r:R(this._elem,this._textData.p.r,0,0,this),p:R(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=R(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(A,E){if(this.lettersChangedFlag=E,!(!this._mdf&&!this._isFirstFrame&&!E&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var C=this._moreOptions.alignment.v,R=this._animatorsData,I=this._textData,B=this.mHelper,U=this._renderType,V=this.renderedLetters.length,X,K,J,Y,Z=A.l,_e,xe,Se,Pe,Ee,Ae,Te,we,Ie,Fe,ke,Le,Ge,Ue,Be;if(this._hasMaskedPath){if(Be=this._pathData.m,!this._pathData.n||this._pathData._mdf){var je=Be.v;this._pathData.r.v&&(je=je.reverse()),_e={tLength:0,segments:[]},Y=je._length-1;var Ve;for(Le=0,J=0;J<Y;J+=1)Ve=bez.buildBezierData(je.v[J],je.v[J+1],[je.o[J][0]-je.v[J][0],je.o[J][1]-je.v[J][1]],[je.i[J+1][0]-je.v[J+1][0],je.i[J+1][1]-je.v[J+1][1]]),_e.tLength+=Ve.segmentLength,_e.segments.push(Ve),Le+=Ve.segmentLength;J=Y,Be.v.c&&(Ve=bez.buildBezierData(je.v[J],je.v[0],[je.o[J][0]-je.v[J][0],je.o[J][1]-je.v[J][1]],[je.i[0][0]-je.v[0][0],je.i[0][1]-je.v[0][1]]),_e.tLength+=Ve.segmentLength,_e.segments.push(Ve),Le+=Ve.segmentLength),this._pathData.pi=_e}if(_e=this._pathData.pi,xe=this._pathData.f.v,Te=0,Ae=1,Pe=0,Ee=!0,Fe=_e.segments,xe<0&&Be.v.c)for(_e.tLength<Math.abs(xe)&&(xe=-Math.abs(xe)%_e.tLength),Te=Fe.length-1,Ie=Fe[Te].points,Ae=Ie.length-1;xe<0;)xe+=Ie[Ae].partialLength,Ae-=1,Ae<0&&(Te-=1,Ie=Fe[Te].points,Ae=Ie.length-1);Ie=Fe[Te].points,we=Ie[Ae-1],Se=Ie[Ae],ke=Se.partialLength}Y=Z.length,X=0,K=0;var ze=A.finalSize*1.2*.714,He=!0,Oe,$e,Re,Me,Ne;Me=R.length;var De,Xe=-1,qe,Ye,Je,Ke=xe,rt=Te,nt=Ae,Qe=-1,Ze,tt,st,et,We,it,lt,ht,dt="",mt=this.defaultPropsArray,ct;if(A.j===2||A.j===1){var pt=0,yt=0,gt=A.j===2?-.5:-1,xt=0,It=!0;for(J=0;J<Y;J+=1)if(Z[J].n){for(pt&&(pt+=yt);xt<J;)Z[xt].animatorJustifyOffset=pt,xt+=1;pt=0,It=!0}else{for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.t.propType&&(It&&A.j===2&&(yt+=Oe.t.v*gt),$e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?pt+=Oe.t.v*De[0]*gt:pt+=Oe.t.v*De*gt);It=!1}for(pt&&(pt+=yt);xt<J;)Z[xt].animatorJustifyOffset=pt,xt+=1}for(J=0;J<Y;J+=1){if(B.reset(),Ze=1,Z[J].n)X=0,K+=A.yOffset,K+=He?1:0,xe=Ke,He=!1,this._hasMaskedPath&&(Te=rt,Ae=nt,Ie=Fe[Te].points,we=Ie[Ae-1],Se=Ie[Ae],ke=Se.partialLength,Pe=0),dt="",ht="",it="",ct="",mt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Qe!==Z[J].line){switch(A.j){case 1:xe+=Le-A.lineWidths[Z[J].line];break;case 2:xe+=(Le-A.lineWidths[Z[J].line])/2;break}Qe=Z[J].line}Xe!==Z[J].ind&&(Z[Xe]&&(xe+=Z[Xe].extra),xe+=Z[J].an/2,Xe=Z[J].ind),xe+=C[0]*Z[J].an*.005;var St=0;for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.p.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?St+=Oe.p.v[0]*De[0]:St+=Oe.p.v[0]*De),Oe.a.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?St+=Oe.a.v[0]*De[0]:St+=Oe.a.v[0]*De);for(Ee=!0,this._pathData.a.v&&(xe=Z[0].an*.5+(Le-this._pathData.f.v-Z[0].an*.5-Z[Z.length-1].an*.5)*Xe/(Y-1),xe+=this._pathData.f.v);Ee;)Pe+ke>=xe+St||!Ie?(Ge=(xe+St-Pe)/Se.partialLength,Ye=we.point[0]+(Se.point[0]-we.point[0])*Ge,Je=we.point[1]+(Se.point[1]-we.point[1])*Ge,B.translate(-C[0]*Z[J].an*.005,-(C[1]*ze)*.01),Ee=!1):Ie&&(Pe+=Se.partialLength,Ae+=1,Ae>=Ie.length&&(Ae=0,Te+=1,Fe[Te]?Ie=Fe[Te].points:Be.v.c?(Ae=0,Te=0,Ie=Fe[Te].points):(Pe-=Se.partialLength,Ie=null)),Ie&&(we=Se,Se=Ie[Ae],ke=Se.partialLength));qe=Z[J].an/2-Z[J].add,B.translate(-qe,0,0)}else qe=Z[J].an/2-Z[J].add,B.translate(-qe,0,0),B.translate(-C[0]*Z[J].an*.005,-C[1]*ze*.01,0);for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.t.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),(X!==0||A.j!==0)&&(this._hasMaskedPath?De.length?xe+=Oe.t.v*De[0]:xe+=Oe.t.v*De:De.length?X+=Oe.t.v*De[0]:X+=Oe.t.v*De));for(A.strokeWidthAnim&&(st=A.sw||0),A.strokeColorAnim&&(A.sc?tt=[A.sc[0],A.sc[1],A.sc[2]]:tt=[0,0,0]),A.fillColorAnim&&A.fc&&(et=[A.fc[0],A.fc[1],A.fc[2]]),Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.a.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?B.translate(-Oe.a.v[0]*De[0],-Oe.a.v[1]*De[1],Oe.a.v[2]*De[2]):B.translate(-Oe.a.v[0]*De,-Oe.a.v[1]*De,Oe.a.v[2]*De));for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.s.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),De.length?B.scale(1+(Oe.s.v[0]-1)*De[0],1+(Oe.s.v[1]-1)*De[1],1):B.scale(1+(Oe.s.v[0]-1)*De,1+(Oe.s.v[1]-1)*De,1));for(Re=0;Re<Me;Re+=1){if(Oe=R[Re].a,$e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),Oe.sk.propType&&(De.length?B.skewFromAxis(-Oe.sk.v*De[0],Oe.sa.v*De[1]):B.skewFromAxis(-Oe.sk.v*De,Oe.sa.v*De)),Oe.r.propType&&(De.length?B.rotateZ(-Oe.r.v*De[2]):B.rotateZ(-Oe.r.v*De)),Oe.ry.propType&&(De.length?B.rotateY(Oe.ry.v*De[1]):B.rotateY(Oe.ry.v*De)),Oe.rx.propType&&(De.length?B.rotateX(Oe.rx.v*De[0]):B.rotateX(Oe.rx.v*De)),Oe.o.propType&&(De.length?Ze+=(Oe.o.v*De[0]-Ze)*De[0]:Ze+=(Oe.o.v*De-Ze)*De),A.strokeWidthAnim&&Oe.sw.propType&&(De.length?st+=Oe.sw.v*De[0]:st+=Oe.sw.v*De),A.strokeColorAnim&&Oe.sc.propType)for(We=0;We<3;We+=1)De.length?tt[We]+=(Oe.sc.v[We]-tt[We])*De[0]:tt[We]+=(Oe.sc.v[We]-tt[We])*De;if(A.fillColorAnim&&A.fc){if(Oe.fc.propType)for(We=0;We<3;We+=1)De.length?et[We]+=(Oe.fc.v[We]-et[We])*De[0]:et[We]+=(Oe.fc.v[We]-et[We])*De;Oe.fh.propType&&(De.length?et=addHueToRGB(et,Oe.fh.v*De[0]):et=addHueToRGB(et,Oe.fh.v*De)),Oe.fs.propType&&(De.length?et=addSaturationToRGB(et,Oe.fs.v*De[0]):et=addSaturationToRGB(et,Oe.fs.v*De)),Oe.fb.propType&&(De.length?et=addBrightnessToRGB(et,Oe.fb.v*De[0]):et=addBrightnessToRGB(et,Oe.fb.v*De))}}for(Re=0;Re<Me;Re+=1)Oe=R[Re].a,Oe.p.propType&&($e=R[Re].s,De=$e.getMult(Z[J].anIndexes[Re],I.a[Re].s.totalChars),this._hasMaskedPath?De.length?B.translate(0,Oe.p.v[1]*De[0],-Oe.p.v[2]*De[1]):B.translate(0,Oe.p.v[1]*De,-Oe.p.v[2]*De):De.length?B.translate(Oe.p.v[0]*De[0],Oe.p.v[1]*De[1],-Oe.p.v[2]*De[2]):B.translate(Oe.p.v[0]*De,Oe.p.v[1]*De,-Oe.p.v[2]*De));if(A.strokeWidthAnim&&(it=st<0?0:st),A.strokeColorAnim&&(lt="rgb("+Math.round(tt[0]*255)+","+Math.round(tt[1]*255)+","+Math.round(tt[2]*255)+")"),A.fillColorAnim&&A.fc&&(ht="rgb("+Math.round(et[0]*255)+","+Math.round(et[1]*255)+","+Math.round(et[2]*255)+")"),this._hasMaskedPath){if(B.translate(0,-A.ls),B.translate(0,C[1]*ze*.01+K,0),this._pathData.p.v){Ue=(Se.point[1]-we.point[1])/(Se.point[0]-we.point[0]);var Mt=Math.atan(Ue)*180/Math.PI;Se.point[0]<we.point[0]&&(Mt+=180),B.rotate(-Mt*Math.PI/180)}B.translate(Ye,Je,0),xe-=C[0]*Z[J].an*.005,Z[J+1]&&Xe!==Z[J+1].ind&&(xe+=Z[J].an/2,xe+=A.tr*.001*A.finalSize)}else{switch(B.translate(X,K,0),A.ps&&B.translate(A.ps[0],A.ps[1]+A.ascent,0),A.j){case 1:B.translate(Z[J].animatorJustifyOffset+A.justifyOffset+(A.boxWidth-A.lineWidths[Z[J].line]),0,0);break;case 2:B.translate(Z[J].animatorJustifyOffset+A.justifyOffset+(A.boxWidth-A.lineWidths[Z[J].line])/2,0,0);break}B.translate(0,-A.ls),B.translate(qe,0,0),B.translate(C[0]*Z[J].an*.005,C[1]*ze*.01,0),X+=Z[J].l+A.tr*.001*A.finalSize}U==="html"?dt=B.toCSS():U==="svg"?dt=B.to2dCSS():mt=[B.props[0],B.props[1],B.props[2],B.props[3],B.props[4],B.props[5],B.props[6],B.props[7],B.props[8],B.props[9],B.props[10],B.props[11],B.props[12],B.props[13],B.props[14],B.props[15]],ct=Ze}V<=J?(Ne=new LetterProps(ct,it,lt,ht,dt,mt),this.renderedLetters.push(Ne),V+=1,this.lettersChangedFlag=!0):(Ne=this.renderedLetters[J],this.lettersChangedFlag=Ne.update(ct,it,lt,ht,dt,mt)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(A,E,C){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(A,E,C),this.textProperty=new TextProperty(this,A.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(A.t,this.renderType,this),this.initTransform(A,E,C),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(A){this._mdf=!1,this.prepareRenderableFrame(A),this.prepareProperties(A,this.isInRange)},ITextElement.prototype.createPathShape=function(A,E){var C,R=E.length,I,B="";for(C=0;C<R;C+=1)E[C].ty==="sh"&&(I=E[C].ks.k,B+=buildShapeString(I,I.i.length,!0,A));return B},ITextElement.prototype.updateDocumentData=function(A,E){this.textProperty.updateDocumentData(A,E)},ITextElement.prototype.canResizeFont=function(A){this.textProperty.canResizeFont(A)},ITextElement.prototype.setMinimumFontSize=function(A){this.textProperty.setMinimumFontSize(A)},ITextElement.prototype.applyTextPropertiesToMatrix=function(A,E,C,R,I){switch(A.ps&&E.translate(A.ps[0],A.ps[1]+A.ascent,0),E.translate(0,-A.ls,0),A.j){case 1:E.translate(A.justifyOffset+(A.boxWidth-A.lineWidths[C]),0,0);break;case 2:E.translate(A.justifyOffset+(A.boxWidth-A.lineWidths[C])/2,0,0);break}E.translate(R,I,0)},ITextElement.prototype.buildColor=function(A){return"rgb("+Math.round(A[0]*255)+","+Math.round(A[1]*255)+","+Math.round(A[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(A,E,C){this.textSpans=[],this.renderType="svg",this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(A){for(var E=0,C=A.length,R=[],I="";E<C;)A[E]===String.fromCharCode(13)||A[E]===String.fromCharCode(3)?(R.push(I),I=""):I+=A[E],E+=1;return R.push(I),R},SVGTextLottieElement.prototype.buildShapeData=function(A,E){if(A.shapes&&A.shapes.length){var C=A.shapes[0];if(C.it){var R=C.it[C.it.length-1];R.s&&(R.s.k[0]=E,R.s.k[1]=E)}}return A},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var A,E,C=this.textProperty.currentData;this.renderedLetters=createSizedArray(C?C.l.length:0),C.fc?this.layerElement.setAttribute("fill",this.buildColor(C.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),C.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(C.sc)),this.layerElement.setAttribute("stroke-width",C.sw)),this.layerElement.setAttribute("font-size",C.finalSize);var R=this.globalData.fontManager.getFontByName(C.f);if(R.fClass)this.layerElement.setAttribute("class",R.fClass);else{this.layerElement.setAttribute("font-family",R.fFamily);var I=C.fWeight,B=C.fStyle;this.layerElement.setAttribute("font-style",B),this.layerElement.setAttribute("font-weight",I)}this.layerElement.setAttribute("aria-label",C.t);var U=C.l||[],V=!!this.globalData.fontManager.chars;E=U.length;var X,K=this.mHelper,J="",Y=this.data.singleShape,Z=0,_e=0,xe=!0,Se=C.tr*.001*C.finalSize;if(Y&&!V&&!C.sz){var Pe=this.textContainer,Ee="start";switch(C.j){case 1:Ee="end";break;case 2:Ee="middle";break;default:Ee="start";break}Pe.setAttribute("text-anchor",Ee),Pe.setAttribute("letter-spacing",Se);var Ae=this.buildTextContents(C.finalText);for(E=Ae.length,_e=C.ps?C.ps[1]+C.ascent:0,A=0;A<E;A+=1)X=this.textSpans[A].span||createNS("tspan"),X.textContent=Ae[A],X.setAttribute("x",0),X.setAttribute("y",_e),X.style.display="inherit",Pe.appendChild(X),this.textSpans[A]||(this.textSpans[A]={span:null,glyph:null}),this.textSpans[A].span=X,_e+=C.finalLineHeight;this.layerElement.appendChild(Pe)}else{var Te=this.textSpans.length,we;for(A=0;A<E;A+=1){if(this.textSpans[A]||(this.textSpans[A]={span:null,childSpan:null,glyph:null}),!V||!Y||A===0){if(X=Te>A?this.textSpans[A].span:createNS(V?"g":"text"),Te<=A){if(X.setAttribute("stroke-linecap","butt"),X.setAttribute("stroke-linejoin","round"),X.setAttribute("stroke-miterlimit","4"),this.textSpans[A].span=X,V){var Ie=createNS("g");X.appendChild(Ie),this.textSpans[A].childSpan=Ie}this.textSpans[A].span=X,this.layerElement.appendChild(X)}X.style.display="inherit"}if(K.reset(),Y&&(U[A].n&&(Z=-Se,_e+=C.yOffset,_e+=xe?1:0,xe=!1),this.applyTextPropertiesToMatrix(C,K,U[A].line,Z,_e),Z+=U[A].l||0,Z+=Se),V){we=this.globalData.fontManager.getCharData(C.finalText[A],R.fStyle,this.globalData.fontManager.getFontByName(C.f).fFamily);var Fe;if(we.t===1)Fe=new SVGCompElement(we.data,this.globalData,this);else{var ke=emptyShapeData;we.data&&we.data.shapes&&(ke=this.buildShapeData(we.data,C.finalSize)),Fe=new SVGShapeElement(ke,this.globalData,this)}if(this.textSpans[A].glyph){var Le=this.textSpans[A].glyph;this.textSpans[A].childSpan.removeChild(Le.layerElement),Le.destroy()}this.textSpans[A].glyph=Fe,Fe._debug=!0,Fe.prepareFrame(0),Fe.renderFrame(),this.textSpans[A].childSpan.appendChild(Fe.layerElement),we.t===1&&this.textSpans[A].childSpan.setAttribute("transform","scale("+C.finalSize/100+","+C.finalSize/100+")")}else Y&&X.setAttribute("transform","translate("+K.props[12]+","+K.props[13]+")"),X.textContent=U[A].val,X.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&X&&X.setAttribute("d",J)}for(;A<this.textSpans.length;)this.textSpans[A].span.style.display="none",A+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var A=this.layerElement.getBBox();this.bbox={top:A.y,left:A.x,width:A.width,height:A.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var A,E=this.textSpans.length,C;for(this.renderedFrame=this.comp.renderedFrame,A=0;A<E;A+=1)C=this.textSpans[A].glyph,C&&(C.prepareFrame(this.comp.renderedFrame-this.data.st),C._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var A,E,C=this.textAnimator.renderedLetters,R=this.textProperty.currentData.l;E=R.length;var I,B,U;for(A=0;A<E;A+=1)R[A].n||(I=C[A],B=this.textSpans[A].span,U=this.textSpans[A].glyph,U&&U.renderFrame(),I._mdf.m&&B.setAttribute("transform",I.m),I._mdf.o&&B.setAttribute("opacity",I.o),I._mdf.sw&&B.setAttribute("stroke-width",I.sw),I._mdf.sc&&B.setAttribute("stroke",I.sc),I._mdf.fc&&B.setAttribute("fill",I.fc))}};function ISolidElement(A,E,C){this.initElement(A,E,C)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var A=createNS("rect");A.setAttribute("width",this.data.sw),A.setAttribute("height",this.data.sh),A.setAttribute("fill",this.data.sc),this.layerElement.appendChild(A)};function NullElement(A,E,C){this.initFrame(),this.initBaseData(A,E,C),this.initFrame(),this.initTransform(A,E,C),this.initHierarchy()}NullElement.prototype.prepareFrame=function(A){this.prepareProperties(A,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(A){return new NullElement(A,this.globalData,this)},SVGRendererBase.prototype.createShape=function(A){return new SVGShapeElement(A,this.globalData,this)},SVGRendererBase.prototype.createText=function(A){return new SVGTextLottieElement(A,this.globalData,this)},SVGRendererBase.prototype.createImage=function(A){return new IImageElement(A,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(A){return new ISolidElement(A,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(A){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+A.w+" "+A.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",A.w),this.svgElement.setAttribute("height",A.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var E=this.globalData.defs;this.setupGlobalData(A,E),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=A;var C=createNS("clipPath"),R=createNS("rect");R.setAttribute("width",A.w),R.setAttribute("height",A.h),R.setAttribute("x",0),R.setAttribute("y",0);var I=createElementID();C.setAttribute("id",I),C.appendChild(R),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+I+")"),E.appendChild(C),this.layers=A.layers,this.elements=createSizedArray(A.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var A,E=this.layers?this.layers.length:0;for(A=0;A<E;A+=1)this.elements[A]&&this.elements[A].destroy&&this.elements[A].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(A){var E=0,C=this.layers.length;for(E=0;E<C;E+=1)if(this.layers[E].ind===A)return E;return-1},SVGRendererBase.prototype.buildItem=function(A){var E=this.elements;if(!(E[A]||this.layers[A].ty===99)){E[A]=!0;var C=this.createItem(this.layers[A]);if(E[A]=C,getExpressionsPlugin()&&(this.layers[A].ty===0&&this.globalData.projectInterface.registerComposition(C),C.initExpressions()),this.appendElementInPos(C,A),this.layers[A].tt){var R="tp"in this.layers[A]?this.findIndexByInd(this.layers[A].tp):A-1;if(R===-1)return;if(!this.elements[R]||this.elements[R]===!0)this.buildItem(R),this.addPendingElement(C);else{var I=E[R],B=I.getMatte(this.layers[A].tt);C.setMatte(B)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var A=this.pendingElements.pop();if(A.checkParenting(),A.data.tt)for(var E=0,C=this.elements.length;E<C;){if(this.elements[E]===A){var R="tp"in A.data?this.findIndexByInd(A.data.tp):E-1,I=this.elements[R],B=I.getMatte(this.layers[E].tt);A.setMatte(B);break}E+=1}}},SVGRendererBase.prototype.renderFrame=function(A){if(!(this.renderedFrame===A||this.destroyed)){A===null?A=this.renderedFrame:this.renderedFrame=A,this.globalData.frameNum=A,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=A,this.globalData._mdf=!1;var E,C=this.layers.length;for(this.completeLayers||this.checkLayers(A),E=C-1;E>=0;E-=1)(this.completeLayers||this.elements[E])&&this.elements[E].prepareFrame(A-this.layers[E].st);if(this.globalData._mdf)for(E=0;E<C;E+=1)(this.completeLayers||this.elements[E])&&this.elements[E].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(A,E){var C=A.getBaseElement();if(C){for(var R=0,I;R<E;)this.elements[R]&&this.elements[R]!==!0&&this.elements[R].getBaseElement()&&(I=this.elements[R].getBaseElement()),R+=1;I?this.layerElement.insertBefore(C,I):this.layerElement.appendChild(C)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(A,E,C){this.initFrame(),this.initBaseData(A,E,C),this.initTransform(A,E,C),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!E.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(A){if(this._mdf=!1,this.prepareRenderableFrame(A),this.prepareProperties(A,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=A/this.data.sr;else{var E=this.tm.v;E===this.data.op&&(E=this.data.op-1),this.renderedFrame=E}var C,R=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),C=R-1;C>=0;C-=1)(this.completeLayers||this.elements[C])&&(this.elements[C].prepareFrame(this.renderedFrame-this.layers[C].st),this.elements[C]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var A,E=this.layers.length;for(A=0;A<E;A+=1)(this.completeLayers||this.elements[A])&&this.elements[A].renderFrame()},ICompElement.prototype.setElements=function(A){this.elements=A},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var A,E=this.layers.length;for(A=0;A<E;A+=1)this.elements[A]&&this.elements[A].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(A,E,C){this.layers=A.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(A,E,C),this.tm=A.tm?PropertyFactory.getProp(this,A.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(A){return new SVGCompElement(A,this.globalData,this)};function SVGRenderer(A,E){this.animationItem=A,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var C="";if(E&&E.title){var R=createNS("title"),I=createElementID();R.setAttribute("id",I),R.textContent=E.title,this.svgElement.appendChild(R),C+=I}if(E&&E.description){var B=createNS("desc"),U=createElementID();B.setAttribute("id",U),B.textContent=E.description,this.svgElement.appendChild(B),C+=" "+U}C&&this.svgElement.setAttribute("aria-labelledby",C);var V=createNS("defs");this.svgElement.appendChild(V);var X=createNS("g");this.svgElement.appendChild(X),this.layerElement=X,this.renderConfig={preserveAspectRatio:E&&E.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:E&&E.contentVisibility||"visible",progressiveLoad:E&&E.progressiveLoad||!1,hideOnTransparent:!(E&&E.hideOnTransparent===!1),viewBoxOnly:E&&E.viewBoxOnly||!1,viewBoxSize:E&&E.viewBoxSize||!1,className:E&&E.className||"",id:E&&E.id||"",focusable:E&&E.focusable,filterSize:{width:E&&E.filterSize&&E.filterSize.width||"100%",height:E&&E.filterSize&&E.filterSize.height||"100%",x:E&&E.filterSize&&E.filterSize.x||"0%",y:E&&E.filterSize&&E.filterSize.y||"0%"},width:E&&E.width,height:E&&E.height,runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:V,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(A){return new SVGCompElement(A,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(E){var C,R=E.length,I="_";for(C=0;C<R;C+=1)I+=E[C].transform.key+"_";var B=this.sequences[I];return B||(B={transforms:[].concat(E),finalTransform:new Matrix,_mdf:!1},this.sequences[I]=B,this.sequenceList.push(B)),B},processSequence:function(E,C){for(var R=0,I=E.transforms.length,B=C;R<I&&!C;){if(E.transforms[R].transform.mProps._mdf){B=!0;break}R+=1}if(B)for(E.finalTransform.reset(),R=I-1;R>=0;R-=1)E.finalTransform.multiply(E.transforms[R].transform.mProps.v);E._mdf=B},processSequences:function(E){var C,R=this.sequenceList.length;for(C=0;C<R;C+=1)this.processSequence(this.sequenceList[C],E)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var E="__lottie_element_luma_buffer",C=null,R=null,I=null;function B(){var X=createNS("svg"),K=createNS("filter"),J=createNS("feColorMatrix");return K.setAttribute("id",E),J.setAttribute("type","matrix"),J.setAttribute("color-interpolation-filters","sRGB"),J.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),K.appendChild(J),X.appendChild(K),X.setAttribute("id",E+"_svg"),featureSupport.svgLumaHidden&&(X.style.display="none"),X}function U(){C||(I=B(),document.body.appendChild(I),C=createTag("canvas"),R=C.getContext("2d"),R.filter="url(#"+E+")",R.fillStyle="rgba(0,0,0,0)",R.fillRect(0,0,1,1))}function V(X){return C||U(),C.width=X.width,C.height=X.height,R.filter="url(#"+E+")",C}return{load:U,get:V}};function createCanvas(A,E){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(A,E);var C=createTag("canvas");return C.width=A,C.height=E,C}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(A){var E,C=A.data.ef?A.data.ef.length:0;this.filters=[];var R;for(E=0;E<C;E+=1){R=null;var I=A.data.ef[E].ty;if(registeredEffects[I]){var B=registeredEffects[I].effect;R=new B(A.effectsManager.effectElements[E],A)}R&&this.filters.push(R)}this.filters.length&&A.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(A){var E,C=this.filters.length;for(E=0;E<C;E+=1)this.filters[E].renderFrame(A)},CVEffects.prototype.getEffects=function(A){var E,C=this.filters.length,R=[];for(E=0;E<C;E+=1)this.filters[E].type===A&&R.push(this.filters[E]);return R};function registerEffect(A,E){registeredEffects[A]={effect:E}}function CVMaskElement(A,E){this.data=A,this.element=E,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var C,R=this.masksProperties.length,I=!1;for(C=0;C<R;C+=1)this.masksProperties[C].mode!=="n"&&(I=!0),this.viewData[C]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[C],3);this.hasMasks=I,I&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var A=this.element.finalTransform.mat,E=this.element.canvasContext,C,R=this.masksProperties.length,I,B,U;for(E.beginPath(),C=0;C<R;C+=1)if(this.masksProperties[C].mode!=="n"){this.masksProperties[C].inv&&(E.moveTo(0,0),E.lineTo(this.element.globalData.compSize.w,0),E.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),E.lineTo(0,this.element.globalData.compSize.h),E.lineTo(0,0)),U=this.viewData[C].v,I=A.applyToPointArray(U.v[0][0],U.v[0][1],0),E.moveTo(I[0],I[1]);var V,X=U._length;for(V=1;V<X;V+=1)B=A.applyToTriplePoints(U.o[V-1],U.i[V],U.v[V]),E.bezierCurveTo(B[0],B[1],B[2],B[3],B[4],B[5]);B=A.applyToTriplePoints(U.o[V-1],U.i[0],U.v[0]),E.bezierCurveTo(B[0],B[1],B[2],B[3],B[4],B[5])}this.element.globalData.renderer.save(!0),E.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var E=this.globalData.canvasContext,C=assetLoader.createCanvas(E.canvas.width,E.canvas.height);this.buffers.push(C);var R=assetLoader.createCanvas(E.canvas.width,E.canvas.height);this.buffers.push(R),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var E=this.globalData;if(E.blendMode!==this.data.bm){E.blendMode=this.data.bm;var C=getBlendMode(this.data.bm);E.canvasContext.globalCompositeOperation=C}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(E){E.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var E=this.buffers[0],C=E.getContext("2d");this.clearCanvas(C),C.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var E=this.buffers[1],C=E.getContext("2d");this.clearCanvas(C),C.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var R=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(R.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var I=assetLoader.getLumaCanvas(this.canvasContext.canvas),B=I.getContext("2d");B.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(I,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(E,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(E){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!E)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var C=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(C),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(C),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(A,E,C,R){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var I=4;E.ty==="rc"?I=5:E.ty==="el"?I=6:E.ty==="sr"&&(I=7),this.sh=ShapePropertyFactory.getShapeProp(A,E,I,A);var B,U=C.length,V;for(B=0;B<U;B+=1)C[B].closed||(V={transforms:R.addTransformSequence(C[B].transforms),trNodes:[]},this.styledShapes.push(V),C[B].elements.push(V))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(A,E,C){this.shapes=[],this.shapesData=A.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(A,E){var C={data:A,type:A.ty,preTransforms:this.transformsManager.addTransformSequence(E),transforms:[],elements:[],closed:A.hd===!0},R={};if(A.ty==="fl"||A.ty==="st"?(R.c=PropertyFactory.getProp(this,A.c,1,255,this),R.c.k||(C.co="rgb("+bmFloor(R.c.v[0])+","+bmFloor(R.c.v[1])+","+bmFloor(R.c.v[2])+")")):(A.ty==="gf"||A.ty==="gs")&&(R.s=PropertyFactory.getProp(this,A.s,1,null,this),R.e=PropertyFactory.getProp(this,A.e,1,null,this),R.h=PropertyFactory.getProp(this,A.h||{k:0},0,.01,this),R.a=PropertyFactory.getProp(this,A.a||{k:0},0,degToRads,this),R.g=new GradientProperty(this,A.g,this)),R.o=PropertyFactory.getProp(this,A.o,0,.01,this),A.ty==="st"||A.ty==="gs"){if(C.lc=lineCapEnum[A.lc||2],C.lj=lineJoinEnum[A.lj||2],A.lj==1&&(C.ml=A.ml),R.w=PropertyFactory.getProp(this,A.w,0,null,this),R.w.k||(C.wi=R.w.v),A.d){var I=new DashProperty(this,A.d,"canvas",this);R.d=I,R.d.k||(C.da=R.d.dashArray,C.do=R.d.dashoffset[0])}}else C.r=A.r===2?"evenodd":"nonzero";return this.stylesList.push(C),R.style=C,R},CVShapeElement.prototype.createGroupElement=function(){var A={it:[],prevViewData:[]};return A},CVShapeElement.prototype.createTransformElement=function(A){var E={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,A.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,A,this)}};return E},CVShapeElement.prototype.createShapeElement=function(A){var E=new CVShapeData(this,A,this.stylesList,this.transformsManager);return this.shapes.push(E),this.addShapeToModifiers(E),E},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var A,E=this.itemsData.length;for(A=0;A<E;A+=1)this.prevViewData[A]=this.itemsData[A];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),E=this.dynamicProperties.length,A=0;A<E;A+=1)this.dynamicProperties[A].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(A){var E,C=this.stylesList.length;for(E=0;E<C;E+=1)this.stylesList[E].closed||this.stylesList[E].transforms.push(A)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var A,E=this.stylesList.length;for(A=0;A<E;A+=1)this.stylesList[A].closed||this.stylesList[A].transforms.pop()},CVShapeElement.prototype.closeStyles=function(A){var E,C=A.length;for(E=0;E<C;E+=1)A[E].closed=!0},CVShapeElement.prototype.searchShapes=function(A,E,C,R,I){var B,U=A.length-1,V,X,K=[],J=[],Y,Z,_e,xe=[].concat(I);for(B=U;B>=0;B-=1){if(Y=this.searchProcessedElement(A[B]),Y?E[B]=C[Y-1]:A[B]._shouldRender=R,A[B].ty==="fl"||A[B].ty==="st"||A[B].ty==="gf"||A[B].ty==="gs")Y?E[B].style.closed=!1:E[B]=this.createStyleElement(A[B],xe),K.push(E[B].style);else if(A[B].ty==="gr"){if(!Y)E[B]=this.createGroupElement(A[B]);else for(X=E[B].it.length,V=0;V<X;V+=1)E[B].prevViewData[V]=E[B].it[V];this.searchShapes(A[B].it,E[B].it,E[B].prevViewData,R,xe)}else A[B].ty==="tr"?(Y||(_e=this.createTransformElement(A[B]),E[B]=_e),xe.push(E[B]),this.addTransformToStyleList(E[B])):A[B].ty==="sh"||A[B].ty==="rc"||A[B].ty==="el"||A[B].ty==="sr"?Y||(E[B]=this.createShapeElement(A[B])):A[B].ty==="tm"||A[B].ty==="rd"||A[B].ty==="pb"||A[B].ty==="zz"||A[B].ty==="op"?(Y?(Z=E[B],Z.closed=!1):(Z=ShapeModifiers.getModifier(A[B].ty),Z.init(this,A[B]),E[B]=Z,this.shapeModifiers.push(Z)),J.push(Z)):A[B].ty==="rp"&&(Y?(Z=E[B],Z.closed=!0):(Z=ShapeModifiers.getModifier(A[B].ty),E[B]=Z,Z.init(this,A,B,E),this.shapeModifiers.push(Z),R=!1),J.push(Z));this.addProcessedElement(A[B],B+1)}for(this.removeTransformFromStyleList(),this.closeStyles(K),U=J.length,B=0;B<U;B+=1)J[B].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(A,E){(A._opMdf||E.op._mdf||this._isFirstFrame)&&(E.opacity=A.opacity,E.opacity*=E.op.v,E._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var A,E=this.stylesList.length,C,R,I,B,U,V,X=this.globalData.renderer,K=this.globalData.canvasContext,J,Y;for(A=0;A<E;A+=1)if(Y=this.stylesList[A],J=Y.type,!((J==="st"||J==="gs")&&Y.wi===0||!Y.data._shouldRender||Y.coOp===0||this.globalData.currentGlobalAlpha===0)){for(X.save(),U=Y.elements,J==="st"||J==="gs"?(X.ctxStrokeStyle(J==="st"?Y.co:Y.grd),X.ctxLineWidth(Y.wi),X.ctxLineCap(Y.lc),X.ctxLineJoin(Y.lj),X.ctxMiterLimit(Y.ml||0)):X.ctxFillStyle(J==="fl"?Y.co:Y.grd),X.ctxOpacity(Y.coOp),J!=="st"&&J!=="gs"&&K.beginPath(),X.ctxTransform(Y.preTransforms.finalTransform.props),R=U.length,C=0;C<R;C+=1){for((J==="st"||J==="gs")&&(K.beginPath(),Y.da&&(K.setLineDash(Y.da),K.lineDashOffset=Y.do)),V=U[C].trNodes,B=V.length,I=0;I<B;I+=1)V[I].t==="m"?K.moveTo(V[I].p[0],V[I].p[1]):V[I].t==="c"?K.bezierCurveTo(V[I].pts[0],V[I].pts[1],V[I].pts[2],V[I].pts[3],V[I].pts[4],V[I].pts[5]):K.closePath();(J==="st"||J==="gs")&&(X.ctxStroke(),Y.da&&K.setLineDash(this.dashResetter))}J!=="st"&&J!=="gs"&&this.globalData.renderer.ctxFill(Y.r),X.restore()}},CVShapeElement.prototype.renderShape=function(A,E,C,R){var I,B=E.length-1,U;for(U=A,I=B;I>=0;I-=1)E[I].ty==="tr"?(U=C[I].transform,this.renderShapeTransform(A,U)):E[I].ty==="sh"||E[I].ty==="el"||E[I].ty==="rc"||E[I].ty==="sr"?this.renderPath(E[I],C[I]):E[I].ty==="fl"?this.renderFill(E[I],C[I],U):E[I].ty==="st"?this.renderStroke(E[I],C[I],U):E[I].ty==="gf"||E[I].ty==="gs"?this.renderGradientFill(E[I],C[I],U):E[I].ty==="gr"?this.renderShape(U,E[I].it,C[I].it):E[I].ty;R&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(A,E){if(this._isFirstFrame||E._mdf||A.transforms._mdf){var C=A.trNodes,R=E.paths,I,B,U,V=R._length;C.length=0;var X=A.transforms.finalTransform;for(U=0;U<V;U+=1){var K=R.shapes[U];if(K&&K.v){for(B=K._length,I=1;I<B;I+=1)I===1&&C.push({t:"m",p:X.applyToPointArray(K.v[0][0],K.v[0][1],0)}),C.push({t:"c",pts:X.applyToTriplePoints(K.o[I-1],K.i[I],K.v[I])});B===1&&C.push({t:"m",p:X.applyToPointArray(K.v[0][0],K.v[0][1],0)}),K.c&&B&&(C.push({t:"c",pts:X.applyToTriplePoints(K.o[I-1],K.i[0],K.v[0])}),C.push({t:"z"}))}}A.trNodes=C}},CVShapeElement.prototype.renderPath=function(A,E){if(A.hd!==!0&&A._shouldRender){var C,R=E.styledShapes.length;for(C=0;C<R;C+=1)this.renderStyledShape(E.styledShapes[C],E.sh)}},CVShapeElement.prototype.renderFill=function(A,E,C){var R=E.style;(E.c._mdf||this._isFirstFrame)&&(R.co="rgb("+bmFloor(E.c.v[0])+","+bmFloor(E.c.v[1])+","+bmFloor(E.c.v[2])+")"),(E.o._mdf||C._opMdf||this._isFirstFrame)&&(R.coOp=E.o.v*C.opacity)},CVShapeElement.prototype.renderGradientFill=function(A,E,C){var R=E.style,I;if(!R.grd||E.g._mdf||E.s._mdf||E.e._mdf||A.t!==1&&(E.h._mdf||E.a._mdf)){var B=this.globalData.canvasContext,U=E.s.v,V=E.e.v;if(A.t===1)I=B.createLinearGradient(U[0],U[1],V[0],V[1]);else{var X=Math.sqrt(Math.pow(U[0]-V[0],2)+Math.pow(U[1]-V[1],2)),K=Math.atan2(V[1]-U[1],V[0]-U[0]),J=E.h.v;J>=1?J=.99:J<=-1&&(J=-.99);var Y=X*J,Z=Math.cos(K+E.a.v)*Y+U[0],_e=Math.sin(K+E.a.v)*Y+U[1];I=B.createRadialGradient(Z,_e,0,U[0],U[1],X)}var xe,Se=A.g.p,Pe=E.g.c,Ee=1;for(xe=0;xe<Se;xe+=1)E.g._hasOpacity&&E.g._collapsable&&(Ee=E.g.o[xe*2+1]),I.addColorStop(Pe[xe*4]/100,"rgba("+Pe[xe*4+1]+","+Pe[xe*4+2]+","+Pe[xe*4+3]+","+Ee+")");R.grd=I}R.coOp=E.o.v*C.opacity},CVShapeElement.prototype.renderStroke=function(A,E,C){var R=E.style,I=E.d;I&&(I._mdf||this._isFirstFrame)&&(R.da=I.dashArray,R.do=I.dashoffset[0]),(E.c._mdf||this._isFirstFrame)&&(R.co="rgb("+bmFloor(E.c.v[0])+","+bmFloor(E.c.v[1])+","+bmFloor(E.c.v[2])+")"),(E.o._mdf||C._opMdf||this._isFirstFrame)&&(R.coOp=E.o.v*C.opacity),(E.w._mdf||this._isFirstFrame)&&(R.wi=E.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(A,E,C){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var A=this.textProperty.currentData;this.renderedLetters=createSizedArray(A.l?A.l.length:0);var E=!1;A.fc?(E=!0,this.values.fill=this.buildColor(A.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=E;var C=!1;A.sc&&(C=!0,this.values.stroke=this.buildColor(A.sc),this.values.sWidth=A.sw);var R=this.globalData.fontManager.getFontByName(A.f),I,B,U=A.l,V=this.mHelper;this.stroke=C,this.values.fValue=A.finalSize+"px "+this.globalData.fontManager.getFontByName(A.f).fFamily,B=A.finalText.length;var X,K,J,Y,Z,_e,xe,Se,Pe,Ee,Ae=this.data.singleShape,Te=A.tr*.001*A.finalSize,we=0,Ie=0,Fe=!0,ke=0;for(I=0;I<B;I+=1){X=this.globalData.fontManager.getCharData(A.finalText[I],R.fStyle,this.globalData.fontManager.getFontByName(A.f).fFamily),K=X&&X.data||{},V.reset(),Ae&&U[I].n&&(we=-Te,Ie+=A.yOffset,Ie+=Fe?1:0,Fe=!1),Z=K.shapes?K.shapes[0].it:[],xe=Z.length,V.scale(A.finalSize/100,A.finalSize/100),Ae&&this.applyTextPropertiesToMatrix(A,V,U[I].line,we,Ie),Pe=createSizedArray(xe-1);var Le=0;for(_e=0;_e<xe;_e+=1)if(Z[_e].ty==="sh"){for(Y=Z[_e].ks.k.i.length,Se=Z[_e].ks.k,Ee=[],J=1;J<Y;J+=1)J===1&&Ee.push(V.applyToX(Se.v[0][0],Se.v[0][1],0),V.applyToY(Se.v[0][0],Se.v[0][1],0)),Ee.push(V.applyToX(Se.o[J-1][0],Se.o[J-1][1],0),V.applyToY(Se.o[J-1][0],Se.o[J-1][1],0),V.applyToX(Se.i[J][0],Se.i[J][1],0),V.applyToY(Se.i[J][0],Se.i[J][1],0),V.applyToX(Se.v[J][0],Se.v[J][1],0),V.applyToY(Se.v[J][0],Se.v[J][1],0));Ee.push(V.applyToX(Se.o[J-1][0],Se.o[J-1][1],0),V.applyToY(Se.o[J-1][0],Se.o[J-1][1],0),V.applyToX(Se.i[0][0],Se.i[0][1],0),V.applyToY(Se.i[0][0],Se.i[0][1],0),V.applyToX(Se.v[0][0],Se.v[0][1],0),V.applyToY(Se.v[0][0],Se.v[0][1],0)),Pe[Le]=Ee,Le+=1}Ae&&(we+=U[I].l,we+=Te),this.textSpans[ke]?this.textSpans[ke].elem=Pe:this.textSpans[ke]={elem:Pe},ke+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var A=this.canvasContext;A.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var E,C,R,I,B,U,V=this.textAnimator.renderedLetters,X=this.textProperty.currentData.l;C=X.length;var K,J=null,Y=null,Z=null,_e,xe,Se=this.globalData.renderer;for(E=0;E<C;E+=1)if(!X[E].n){if(K=V[E],K&&(Se.save(),Se.ctxTransform(K.p),Se.ctxOpacity(K.o)),this.fill){for(K&&K.fc?J!==K.fc&&(Se.ctxFillStyle(K.fc),J=K.fc):J!==this.values.fill&&(J=this.values.fill,Se.ctxFillStyle(this.values.fill)),_e=this.textSpans[E].elem,I=_e.length,this.globalData.canvasContext.beginPath(),R=0;R<I;R+=1)for(xe=_e[R],U=xe.length,this.globalData.canvasContext.moveTo(xe[0],xe[1]),B=2;B<U;B+=6)this.globalData.canvasContext.bezierCurveTo(xe[B],xe[B+1],xe[B+2],xe[B+3],xe[B+4],xe[B+5]);this.globalData.canvasContext.closePath(),Se.ctxFill()}if(this.stroke){for(K&&K.sw?Z!==K.sw&&(Z=K.sw,Se.ctxLineWidth(K.sw)):Z!==this.values.sWidth&&(Z=this.values.sWidth,Se.ctxLineWidth(this.values.sWidth)),K&&K.sc?Y!==K.sc&&(Y=K.sc,Se.ctxStrokeStyle(K.sc)):Y!==this.values.stroke&&(Y=this.values.stroke,Se.ctxStrokeStyle(this.values.stroke)),_e=this.textSpans[E].elem,I=_e.length,this.globalData.canvasContext.beginPath(),R=0;R<I;R+=1)for(xe=_e[R],U=xe.length,this.globalData.canvasContext.moveTo(xe[0],xe[1]),B=2;B<U;B+=6)this.globalData.canvasContext.bezierCurveTo(xe[B],xe[B+1],xe[B+2],xe[B+3],xe[B+4],xe[B+5]);this.globalData.canvasContext.closePath(),Se.ctxStroke()}K&&this.globalData.renderer.restore()}};function CVImageElement(A,E,C){this.assetData=E.getAssetData(A.refId),this.img=E.imageLoader.getAsset(this.assetData),this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var A=createTag("canvas");A.width=this.assetData.w,A.height=this.assetData.h;var E=A.getContext("2d"),C=this.img.width,R=this.img.height,I=C/R,B=this.assetData.w/this.assetData.h,U,V,X=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;I>B&&X==="xMidYMid slice"||I<B&&X!=="xMidYMid slice"?(V=R,U=V*B):(U=C,V=U/B),E.drawImage(this.img,(C-U)/2,(R-V)/2,U,V,0,0,this.assetData.w,this.assetData.h),this.img=A}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(A,E,C){this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(A){return new CVShapeElement(A,this.globalData,this)},CanvasRendererBase.prototype.createText=function(A){return new CVTextElement(A,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(A){return new CVImageElement(A,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(A){return new CVSolidElement(A,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(A){A[0]===1&&A[1]===0&&A[4]===0&&A[5]===1&&A[12]===0&&A[13]===0||this.canvasContext.transform(A[0],A[1],A[4],A[5],A[12],A[13])},CanvasRendererBase.prototype.ctxOpacity=function(A){this.canvasContext.globalAlpha*=A<0?0:A},CanvasRendererBase.prototype.ctxFillStyle=function(A){this.canvasContext.fillStyle=A},CanvasRendererBase.prototype.ctxStrokeStyle=function(A){this.canvasContext.strokeStyle=A},CanvasRendererBase.prototype.ctxLineWidth=function(A){this.canvasContext.lineWidth=A},CanvasRendererBase.prototype.ctxLineCap=function(A){this.canvasContext.lineCap=A},CanvasRendererBase.prototype.ctxLineJoin=function(A){this.canvasContext.lineJoin=A},CanvasRendererBase.prototype.ctxMiterLimit=function(A){this.canvasContext.miterLimit=A},CanvasRendererBase.prototype.ctxFill=function(A){this.canvasContext.fill(A)},CanvasRendererBase.prototype.ctxFillRect=function(A,E,C,R){this.canvasContext.fillRect(A,E,C,R)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(A){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}A&&(this.globalData.blendMode="source-over"),this.contextData.restore(A)},CanvasRendererBase.prototype.configAnimation=function(A){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var E=this.animationItem.container.style;E.width="100%",E.height="100%";var C="0px 0px 0px";E.transformOrigin=C,E.mozTransformOrigin=C,E.webkitTransformOrigin=C,E["-webkit-transform"]=C,E.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=A,this.layers=A.layers,this.transformCanvas={w:A.w,h:A.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(A,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(A.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(A,E){this.reset();var C,R;A?(C=A,R=E,this.canvasContext.canvas.width=C,this.canvasContext.canvas.height=R):(this.animationItem.wrapper&&this.animationItem.container?(C=this.animationItem.wrapper.offsetWidth,R=this.animationItem.wrapper.offsetHeight):(C=this.canvasContext.canvas.width,R=this.canvasContext.canvas.height),this.canvasContext.canvas.width=C*this.renderConfig.dpr,this.canvasContext.canvas.height=R*this.renderConfig.dpr);var I,B;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var U=this.renderConfig.preserveAspectRatio.split(" "),V=U[1]||"meet",X=U[0]||"xMidYMid",K=X.substr(0,4),J=X.substr(4);I=C/R,B=this.transformCanvas.w/this.transformCanvas.h,B>I&&V==="meet"||B<I&&V==="slice"?(this.transformCanvas.sx=C/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=C/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=R/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=R/(this.transformCanvas.h/this.renderConfig.dpr)),K==="xMid"&&(B<I&&V==="meet"||B>I&&V==="slice")?this.transformCanvas.tx=(C-this.transformCanvas.w*(R/this.transformCanvas.h))/2*this.renderConfig.dpr:K==="xMax"&&(B<I&&V==="meet"||B>I&&V==="slice")?this.transformCanvas.tx=(C-this.transformCanvas.w*(R/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,J==="YMid"&&(B>I&&V==="meet"||B<I&&V==="slice")?this.transformCanvas.ty=(R-this.transformCanvas.h*(C/this.transformCanvas.w))/2*this.renderConfig.dpr:J==="YMax"&&(B>I&&V==="meet"||B<I&&V==="slice")?this.transformCanvas.ty=(R-this.transformCanvas.h*(C/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=C/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=R/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var A,E=this.layers?this.layers.length:0;for(A=E-1;A>=0;A-=1)this.elements[A]&&this.elements[A].destroy&&this.elements[A].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(A,E){if(!(this.renderedFrame===A&&this.renderConfig.clearCanvas===!0&&!E||this.destroyed||A===-1)){this.renderedFrame=A,this.globalData.frameNum=A-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||E,this.globalData.projectInterface.currentFrame=A;var C,R=this.layers.length;for(this.completeLayers||this.checkLayers(A),C=R-1;C>=0;C-=1)(this.completeLayers||this.elements[C])&&this.elements[C].prepareFrame(A-this.layers[C].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),C=R-1;C>=0;C-=1)(this.completeLayers||this.elements[C])&&this.elements[C].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(A){var E=this.elements;if(!(E[A]||this.layers[A].ty===99)){var C=this.createItem(this.layers[A],this,this.globalData);E[A]=C,C.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var A=this.pendingElements.pop();A.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var A,E=15;for(A=0;A<E;A+=1){var C=new CanvasContext;this.stack[A]=C}this._length=E,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var A=this._length*2,E=0;for(E=this._length;E<A;E+=1)this.stack[E]=new CanvasContext;this._length=A},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(A){this.cArrPos-=1;var E=this.stack[this.cArrPos],C=E.transform,R,I=this.cTr.props;for(R=0;R<16;R+=1)I[R]=C[R];if(A){this.nativeContext.restore();var B=this.stack[this.cArrPos+1];this.appliedFillStyle=B.fillStyle,this.appliedStrokeStyle=B.strokeStyle,this.appliedLineWidth=B.lineWidth,this.appliedLineCap=B.lineCap,this.appliedLineJoin=B.lineJoin,this.appliedMiterLimit=B.miterLimit}this.nativeContext.setTransform(C[0],C[1],C[4],C[5],C[12],C[13]),(A||E.opacity!==-1&&this.currentOpacity!==E.opacity)&&(this.nativeContext.globalAlpha=E.opacity,this.currentOpacity=E.opacity),this.currentFillStyle=E.fillStyle,this.currentStrokeStyle=E.strokeStyle,this.currentLineWidth=E.lineWidth,this.currentLineCap=E.lineCap,this.currentLineJoin=E.lineJoin,this.currentMiterLimit=E.miterLimit},CVContextData.prototype.save=function(A){A&&this.nativeContext.save();var E=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var C=this.stack[this.cArrPos],R;for(R=0;R<16;R+=1)C.transform[R]=E[R];this.cArrPos+=1;var I=this.stack[this.cArrPos];I.opacity=C.opacity,I.fillStyle=C.fillStyle,I.strokeStyle=C.strokeStyle,I.lineWidth=C.lineWidth,I.lineCap=C.lineCap,I.lineJoin=C.lineJoin,I.miterLimit=C.miterLimit},CVContextData.prototype.setOpacity=function(A){this.stack[this.cArrPos].opacity=A},CVContextData.prototype.setContext=function(A){this.nativeContext=A},CVContextData.prototype.fillStyle=function(A){this.stack[this.cArrPos].fillStyle!==A&&(this.currentFillStyle=A,this.stack[this.cArrPos].fillStyle=A)},CVContextData.prototype.strokeStyle=function(A){this.stack[this.cArrPos].strokeStyle!==A&&(this.currentStrokeStyle=A,this.stack[this.cArrPos].strokeStyle=A)},CVContextData.prototype.lineWidth=function(A){this.stack[this.cArrPos].lineWidth!==A&&(this.currentLineWidth=A,this.stack[this.cArrPos].lineWidth=A)},CVContextData.prototype.lineCap=function(A){this.stack[this.cArrPos].lineCap!==A&&(this.currentLineCap=A,this.stack[this.cArrPos].lineCap=A)},CVContextData.prototype.lineJoin=function(A){this.stack[this.cArrPos].lineJoin!==A&&(this.currentLineJoin=A,this.stack[this.cArrPos].lineJoin=A)},CVContextData.prototype.miterLimit=function(A){this.stack[this.cArrPos].miterLimit!==A&&(this.currentMiterLimit=A,this.stack[this.cArrPos].miterLimit=A)},CVContextData.prototype.transform=function(A){this.transformMat.cloneFromProps(A);var E=this.cTr;this.transformMat.multiply(E),E.cloneFromProps(this.transformMat.props);var C=E.props;this.nativeContext.setTransform(C[0],C[1],C[4],C[5],C[12],C[13])},CVContextData.prototype.opacity=function(A){var E=this.stack[this.cArrPos].opacity;E*=A<0?0:A,this.stack[this.cArrPos].opacity!==E&&(this.currentOpacity!==A&&(this.nativeContext.globalAlpha=A,this.currentOpacity=A),this.stack[this.cArrPos].opacity=E)},CVContextData.prototype.fill=function(A){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(A)},CVContextData.prototype.fillRect=function(A,E,C,R){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(A,E,C,R)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(A,E,C){this.completeLayers=!1,this.layers=A.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(A,E,C),this.tm=A.tm?PropertyFactory.getProp(this,A.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var A=this.canvasContext;A.beginPath(),A.moveTo(0,0),A.lineTo(this.data.w,0),A.lineTo(this.data.w,this.data.h),A.lineTo(0,this.data.h),A.lineTo(0,0),A.clip();var E,C=this.layers.length;for(E=C-1;E>=0;E-=1)(this.completeLayers||this.elements[E])&&this.elements[E].renderFrame()},CVCompElement.prototype.destroy=function(){var A,E=this.layers.length;for(A=E-1;A>=0;A-=1)this.elements[A]&&this.elements[A].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(A){return new CVCompElement(A,this.globalData,this)};function CanvasRenderer(A,E){this.animationItem=A,this.renderConfig={clearCanvas:E&&E.clearCanvas!==void 0?E.clearCanvas:!0,context:E&&E.context||null,progressiveLoad:E&&E.progressiveLoad||!1,preserveAspectRatio:E&&E.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:E&&E.contentVisibility||"visible",className:E&&E.className||"",id:E&&E.id||"",runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.renderConfig.dpr=E&&E.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=E&&E.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(A){return new CVCompElement(A,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var E=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var C=this.finalTransform.mat.toCSS();E.transform=C,E.webkitTransform=C}this.finalTransform._opMdf&&(E.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(A,E,C){this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var A;this.data.hasMask?(A=createNS("rect"),A.setAttribute("width",this.data.sw),A.setAttribute("height",this.data.sh),A.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(A=createTag("div"),A.style.width=this.data.sw+"px",A.style.height=this.data.sh+"px",A.style.backgroundColor=this.data.sc),this.layerElement.appendChild(A)};function HShapeElement(A,E,C){this.shapes=[],this.shapesData=A.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(A,E,C),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var A;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),A=this.svgElement;else{A=createNS("svg");var E=this.comp.data?this.comp.data:this.globalData.compSize;A.setAttribute("width",E.w),A.setAttribute("height",E.h),A.appendChild(this.shapesContainer),this.layerElement.appendChild(A)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=A},HShapeElement.prototype.getTransformedPoint=function(A,E){var C,R=A.length;for(C=0;C<R;C+=1)E=A[C].mProps.v.applyToPointArray(E[0],E[1],0);return E},HShapeElement.prototype.calculateShapeBoundingBox=function(A,E){var C=A.sh.v,R=A.transformers,I,B=C._length,U,V,X,K;if(!(B<=1)){for(I=0;I<B-1;I+=1)U=this.getTransformedPoint(R,C.v[I]),V=this.getTransformedPoint(R,C.o[I]),X=this.getTransformedPoint(R,C.i[I+1]),K=this.getTransformedPoint(R,C.v[I+1]),this.checkBounds(U,V,X,K,E);C.c&&(U=this.getTransformedPoint(R,C.v[I]),V=this.getTransformedPoint(R,C.o[I]),X=this.getTransformedPoint(R,C.i[0]),K=this.getTransformedPoint(R,C.v[0]),this.checkBounds(U,V,X,K,E))}},HShapeElement.prototype.checkBounds=function(A,E,C,R,I){this.getBoundsOfCurve(A,E,C,R);var B=this.shapeBoundingBox;I.x=bmMin(B.left,I.x),I.xMax=bmMax(B.right,I.xMax),I.y=bmMin(B.top,I.y),I.yMax=bmMax(B.bottom,I.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(A,E,C,R){for(var I=[[A[0],R[0]],[A[1],R[1]]],B,U,V,X,K,J,Y,Z=0;Z<2;++Z)U=6*A[Z]-12*E[Z]+6*C[Z],B=-3*A[Z]+9*E[Z]-9*C[Z]+3*R[Z],V=3*E[Z]-3*A[Z],U|=0,B|=0,V|=0,B===0&&U===0||(B===0?(X=-V/U,X>0&&X<1&&I[Z].push(this.calculateF(X,A,E,C,R,Z))):(K=U*U-4*V*B,K>=0&&(J=(-U+bmSqrt(K))/(2*B),J>0&&J<1&&I[Z].push(this.calculateF(J,A,E,C,R,Z)),Y=(-U-bmSqrt(K))/(2*B),Y>0&&Y<1&&I[Z].push(this.calculateF(Y,A,E,C,R,Z)))));this.shapeBoundingBox.left=bmMin.apply(null,I[0]),this.shapeBoundingBox.top=bmMin.apply(null,I[1]),this.shapeBoundingBox.right=bmMax.apply(null,I[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,I[1])},HShapeElement.prototype.calculateF=function(A,E,C,R,I,B){return bmPow(1-A,3)*E[B]+3*bmPow(1-A,2)*A*C[B]+3*(1-A)*bmPow(A,2)*R[B]+bmPow(A,3)*I[B]},HShapeElement.prototype.calculateBoundingBox=function(A,E){var C,R=A.length;for(C=0;C<R;C+=1)A[C]&&A[C].sh?this.calculateShapeBoundingBox(A[C],E):A[C]&&A[C].it?this.calculateBoundingBox(A[C].it,E):A[C]&&A[C].style&&A[C].w&&this.expandStrokeBoundingBox(A[C].w,E)},HShapeElement.prototype.expandStrokeBoundingBox=function(A,E){var C=0;if(A.keyframes){for(var R=0;R<A.keyframes.length;R+=1){var I=A.keyframes[R].s;I>C&&(C=I)}C*=A.mult}else C=A.v*A.mult;E.x-=C,E.xMax+=C,E.y-=C,E.yMax+=C},HShapeElement.prototype.currentBoxContains=function(A){return this.currentBBox.x<=A.x&&this.currentBBox.y<=A.y&&this.currentBBox.width+this.currentBBox.x>=A.x+A.width&&this.currentBBox.height+this.currentBBox.y>=A.y+A.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var A=this.tempBoundingBox,E=999999;if(A.x=E,A.xMax=-E,A.y=E,A.yMax=-E,this.calculateBoundingBox(this.itemsData,A),A.width=A.xMax<A.x?0:A.xMax-A.x,A.height=A.yMax<A.y?0:A.yMax-A.y,this.currentBoxContains(A))return;var C=!1;if(this.currentBBox.w!==A.width&&(this.currentBBox.w=A.width,this.shapeCont.setAttribute("width",A.width),C=!0),this.currentBBox.h!==A.height&&(this.currentBBox.h=A.height,this.shapeCont.setAttribute("height",A.height),C=!0),C||this.currentBBox.x!==A.x||this.currentBBox.y!==A.y){this.currentBBox.w=A.width,this.currentBBox.h=A.height,this.currentBBox.x=A.x,this.currentBBox.y=A.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var R=this.shapeCont.style,I="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";R.transform=I,R.webkitTransform=I}}};function HTextElement(A,E,C){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var A=createNS("g");this.maskedElement.appendChild(A),this.innerElem=A}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var A=this.textProperty.currentData;this.renderedLetters=createSizedArray(A.l?A.l.length:0);var E=this.innerElem.style,C=A.fc?this.buildColor(A.fc):"rgba(0,0,0,0)";E.fill=C,E.color=C,A.sc&&(E.stroke=this.buildColor(A.sc),E.strokeWidth=A.sw+"px");var R=this.globalData.fontManager.getFontByName(A.f);if(!this.globalData.fontManager.chars)if(E.fontSize=A.finalSize+"px",E.lineHeight=A.finalSize+"px",R.fClass)this.innerElem.className=R.fClass;else{E.fontFamily=R.fFamily;var I=A.fWeight,B=A.fStyle;E.fontStyle=B,E.fontWeight=I}var U,V,X=A.l;V=X.length;var K,J,Y,Z=this.mHelper,_e,xe="",Se=0;for(U=0;U<V;U+=1){if(this.globalData.fontManager.chars?(this.textPaths[Se]?K=this.textPaths[Se]:(K=createNS("path"),K.setAttribute("stroke-linecap",lineCapEnum[1]),K.setAttribute("stroke-linejoin",lineJoinEnum[2]),K.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[Se]?(J=this.textSpans[Se],Y=J.children[0]):(J=createTag("div"),J.style.lineHeight=0,Y=createNS("svg"),Y.appendChild(K),styleDiv(J)))):this.isMasked?K=this.textPaths[Se]?this.textPaths[Se]:createNS("text"):this.textSpans[Se]?(J=this.textSpans[Se],K=this.textPaths[Se]):(J=createTag("span"),styleDiv(J),K=createTag("span"),styleDiv(K),J.appendChild(K)),this.globalData.fontManager.chars){var Pe=this.globalData.fontManager.getCharData(A.finalText[U],R.fStyle,this.globalData.fontManager.getFontByName(A.f).fFamily),Ee;if(Pe?Ee=Pe.data:Ee=null,Z.reset(),Ee&&Ee.shapes&&Ee.shapes.length&&(_e=Ee.shapes[0].it,Z.scale(A.finalSize/100,A.finalSize/100),xe=this.createPathShape(Z,_e),K.setAttribute("d",xe)),this.isMasked)this.innerElem.appendChild(K);else{if(this.innerElem.appendChild(J),Ee&&Ee.shapes){document.body.appendChild(Y);var Ae=Y.getBBox();Y.setAttribute("width",Ae.width+2),Y.setAttribute("height",Ae.height+2),Y.setAttribute("viewBox",Ae.x-1+" "+(Ae.y-1)+" "+(Ae.width+2)+" "+(Ae.height+2));var Te=Y.style,we="translate("+(Ae.x-1)+"px,"+(Ae.y-1)+"px)";Te.transform=we,Te.webkitTransform=we,X[U].yOffset=Ae.y-1}else Y.setAttribute("width",1),Y.setAttribute("height",1);J.appendChild(Y)}}else if(K.textContent=X[U].val,K.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(K);else{this.innerElem.appendChild(J);var Ie=K.style,Fe="translate3d(0,"+-A.finalSize/1.2+"px,0)";Ie.transform=Fe,Ie.webkitTransform=Fe}this.isMasked?this.textSpans[Se]=K:this.textSpans[Se]=J,this.textSpans[Se].style.display="block",this.textPaths[Se]=K,Se+=1}for(;Se<this.textSpans.length;)this.textSpans[Se].style.display="none",Se+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var A;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),A=this.svgElement.style;var E="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";A.transform=E,A.webkitTransform=E}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var C,R,I=0,B=this.textAnimator.renderedLetters,U=this.textProperty.currentData.l;R=U.length;var V,X,K;for(C=0;C<R;C+=1)U[C].n?I+=1:(X=this.textSpans[C],K=this.textPaths[C],V=B[I],I+=1,V._mdf.m&&(this.isMasked?X.setAttribute("transform",V.m):(X.style.webkitTransform=V.m,X.style.transform=V.m)),X.style.opacity=V.o,V.sw&&V._mdf.sw&&K.setAttribute("stroke-width",V.sw),V.sc&&V._mdf.sc&&K.setAttribute("stroke",V.sc),V.fc&&V._mdf.fc&&(K.setAttribute("fill",V.fc),K.style.color=V.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var J=this.innerElem.getBBox();this.currentBBox.w!==J.width&&(this.currentBBox.w=J.width,this.svgElement.setAttribute("width",J.width)),this.currentBBox.h!==J.height&&(this.currentBBox.h=J.height,this.svgElement.setAttribute("height",J.height));var Y=1;if(this.currentBBox.w!==J.width+Y*2||this.currentBBox.h!==J.height+Y*2||this.currentBBox.x!==J.x-Y||this.currentBBox.y!==J.y-Y){this.currentBBox.w=J.width+Y*2,this.currentBBox.h=J.height+Y*2,this.currentBBox.x=J.x-Y,this.currentBBox.y=J.y-Y,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),A=this.svgElement.style;var Z="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";A.transform=Z,A.webkitTransform=Z}}}};function HCameraElement(A,E,C){this.initFrame(),this.initBaseData(A,E,C),this.initHierarchy();var R=PropertyFactory.getProp;if(this.pe=R(this,A.pe,0,0,this),A.ks.p.s?(this.px=R(this,A.ks.p.x,1,0,this),this.py=R(this,A.ks.p.y,1,0,this),this.pz=R(this,A.ks.p.z,1,0,this)):this.p=R(this,A.ks.p,1,0,this),A.ks.a&&(this.a=R(this,A.ks.a,1,0,this)),A.ks.or.k.length&&A.ks.or.k[0].to){var I,B=A.ks.or.k.length;for(I=0;I<B;I+=1)A.ks.or.k[I].to=null,A.ks.or.k[I].ti=null}this.or=R(this,A.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=R(this,A.ks.rx,0,degToRads,this),this.ry=R(this,A.ks.ry,0,degToRads,this),this.rz=R(this,A.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var A,E=this.comp.threeDElements.length,C,R,I;for(A=0;A<E;A+=1)if(C=this.comp.threeDElements[A],C.type==="3d"){R=C.perspectiveElem.style,I=C.container.style;var B=this.pe.v+"px",U="0px 0px 0px",V="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";R.perspective=B,R.webkitPerspective=B,I.transformOrigin=U,I.mozTransformOrigin=U,I.webkitTransformOrigin=U,R.transform=V,R.webkitTransform=V}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var A=this._isFirstFrame,E,C;if(this.hierarchy)for(C=this.hierarchy.length,E=0;E<C;E+=1)A=this.hierarchy[E].finalTransform.mProp._mdf||A;if(A||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(C=this.hierarchy.length-1,E=C;E>=0;E-=1){var R=this.hierarchy[E].finalTransform.mProp;this.mat.translate(-R.p.v[0],-R.p.v[1],R.p.v[2]),this.mat.rotateX(-R.or.v[0]).rotateY(-R.or.v[1]).rotateZ(R.or.v[2]),this.mat.rotateX(-R.rx.v).rotateY(-R.ry.v).rotateZ(R.rz.v),this.mat.scale(1/R.s.v[0],1/R.s.v[1],1/R.s.v[2]),this.mat.translate(R.a.v[0],R.a.v[1],R.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var I;this.p?I=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:I=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var B=Math.sqrt(Math.pow(I[0],2)+Math.pow(I[1],2)+Math.pow(I[2],2)),U=[I[0]/B,I[1]/B,I[2]/B],V=Math.sqrt(U[2]*U[2]+U[0]*U[0]),X=Math.atan2(U[1],V),K=Math.atan2(U[0],-U[2]);this.mat.rotateY(K).rotateX(-X)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var J=!this._prevMat.equals(this.mat);if((J||this.pe._mdf)&&this.comp.threeDElements){C=this.comp.threeDElements.length;var Y,Z,_e;for(E=0;E<C;E+=1)if(Y=this.comp.threeDElements[E],Y.type==="3d"){if(J){var xe=this.mat.toCSS();_e=Y.container.style,_e.transform=xe,_e.webkitTransform=xe}this.pe._mdf&&(Z=Y.perspectiveElem.style,Z.perspective=this.pe.v+"px",Z.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(A){this.prepareProperties(A,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(A,E,C){this.assetData=E.getAssetData(A.refId),this.initElement(A,E,C)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var A=this.globalData.getAssetsPath(this.assetData),E=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",A),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(E),E.crossOrigin="anonymous",E.src=A,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(A,E){this.animationItem=A,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:E&&E.className||"",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(E&&E.hideOnTransparent===!1),filterSize:{width:E&&E.filterSize&&E.filterSize.width||"400%",height:E&&E.filterSize&&E.filterSize.height||"400%",x:E&&E.filterSize&&E.filterSize.x||"-100%",y:E&&E.filterSize&&E.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var A=this.pendingElements.pop();A.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(A,E){var C=A.getBaseElement();if(C){var R=this.layers[E];if(!R.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(C,E);else{for(var I=0,B,U,V;I<E;)this.elements[I]&&this.elements[I]!==!0&&this.elements[I].getBaseElement&&(U=this.elements[I],V=this.layers[I].ddd?this.getThreeDContainerByPos(I):U.getBaseElement(),B=V||B),I+=1;B?(!R.ddd||!this.supports3d)&&this.layerElement.insertBefore(C,B):(!R.ddd||!this.supports3d)&&this.layerElement.appendChild(C)}else this.addTo3dContainer(C,E)}},HybridRendererBase.prototype.createShape=function(A){return this.supports3d?new HShapeElement(A,this.globalData,this):new SVGShapeElement(A,this.globalData,this)},HybridRendererBase.prototype.createText=function(A){return this.supports3d?new HTextElement(A,this.globalData,this):new SVGTextLottieElement(A,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(A){return this.camera=new HCameraElement(A,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(A){return this.supports3d?new HImageElement(A,this.globalData,this):new IImageElement(A,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(A){return this.supports3d?new HSolidElement(A,this.globalData,this):new ISolidElement(A,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(A){for(var E=0,C=this.threeDElements.length;E<C;){if(this.threeDElements[E].startPos<=A&&this.threeDElements[E].endPos>=A)return this.threeDElements[E].perspectiveElem;E+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(A,E){var C=createTag("div"),R,I;styleDiv(C);var B=createTag("div");if(styleDiv(B),E==="3d"){R=C.style,R.width=this.globalData.compSize.w+"px",R.height=this.globalData.compSize.h+"px";var U="50% 50%";R.webkitTransformOrigin=U,R.mozTransformOrigin=U,R.transformOrigin=U,I=B.style;var V="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";I.transform=V,I.webkitTransform=V}C.appendChild(B);var X={container:B,perspectiveElem:C,startPos:A,endPos:A,type:E};return this.threeDElements.push(X),X},HybridRendererBase.prototype.build3dContainers=function(){var A,E=this.layers.length,C,R="";for(A=0;A<E;A+=1)this.layers[A].ddd&&this.layers[A].ty!==3?(R!=="3d"&&(R="3d",C=this.createThreeDContainer(A,"3d")),C.endPos=Math.max(C.endPos,A)):(R!=="2d"&&(R="2d",C=this.createThreeDContainer(A,"2d")),C.endPos=Math.max(C.endPos,A));for(E=this.threeDElements.length,A=E-1;A>=0;A-=1)this.resizerElem.appendChild(this.threeDElements[A].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(A,E){for(var C=0,R=this.threeDElements.length;C<R;){if(E<=this.threeDElements[C].endPos){for(var I=this.threeDElements[C].startPos,B;I<E;)this.elements[I]&&this.elements[I].getBaseElement&&(B=this.elements[I].getBaseElement()),I+=1;B?this.threeDElements[C].container.insertBefore(A,B):this.threeDElements[C].container.appendChild(A);break}C+=1}},HybridRendererBase.prototype.configAnimation=function(A){var E=createTag("div"),C=this.animationItem.wrapper,R=E.style;R.width=A.w+"px",R.height=A.h+"px",this.resizerElem=E,styleDiv(E),R.transformStyle="flat",R.mozTransformStyle="flat",R.webkitTransformStyle="flat",this.renderConfig.className&&E.setAttribute("class",this.renderConfig.className),C.appendChild(E),R.overflow="hidden";var I=createNS("svg");I.setAttribute("width","1"),I.setAttribute("height","1"),styleDiv(I),this.resizerElem.appendChild(I);var B=createNS("defs");I.appendChild(B),this.data=A,this.setupGlobalData(A,I),this.globalData.defs=B,this.layers=A.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var A,E=this.layers?this.layers.length:0;for(A=0;A<E;A+=1)this.elements[A]&&this.elements[A].destroy&&this.elements[A].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var A=this.animationItem.wrapper.offsetWidth,E=this.animationItem.wrapper.offsetHeight,C=A/E,R=this.globalData.compSize.w/this.globalData.compSize.h,I,B,U,V;R>C?(I=A/this.globalData.compSize.w,B=A/this.globalData.compSize.w,U=0,V=(E-this.globalData.compSize.h*(A/this.globalData.compSize.w))/2):(I=E/this.globalData.compSize.h,B=E/this.globalData.compSize.h,U=(A-this.globalData.compSize.w*(E/this.globalData.compSize.h))/2,V=0);var X=this.resizerElem.style;X.webkitTransform="matrix3d("+I+",0,0,0,0,"+B+",0,0,0,0,1,0,"+U+","+V+",0,1)",X.transform=X.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var A=this.globalData.compSize.w,E=this.globalData.compSize.h,C,R=this.threeDElements.length;for(C=0;C<R;C+=1){var I=this.threeDElements[C].perspectiveElem.style;I.webkitPerspective=Math.sqrt(Math.pow(A,2)+Math.pow(E,2))+"px",I.perspective=I.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(A){var E,C=A.length,R=createTag("div");for(E=0;E<C;E+=1)if(A[E].xt){var I=this.createComp(A[E],R,this.globalData.comp,null);I.initExpressions(),this.globalData.projectInterface.registerComposition(I)}};function HCompElement(A,E,C){this.layers=A.layers,this.supports3d=!A.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(A,E,C),this.tm=A.tm?PropertyFactory.getProp(this,A.tm,0,E.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(A,E){for(var C=0,R;C<E;)this.elements[C]&&this.elements[C].getBaseElement&&(R=this.elements[C].getBaseElement()),C+=1;R?this.layerElement.insertBefore(A,R):this.layerElement.appendChild(A)},HCompElement.prototype.createComp=function(A){return this.supports3d?new HCompElement(A,this.globalData,this):new SVGCompElement(A,this.globalData,this)};function HybridRenderer(A,E){this.animationItem=A,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:E&&E.className||"",imagePreserveAspectRatio:E&&E.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(E&&E.hideOnTransparent===!1),filterSize:{width:E&&E.filterSize&&E.filterSize.width||"400%",height:E&&E.filterSize&&E.filterSize.height||"400%",x:E&&E.filterSize&&E.filterSize.x||"-100%",y:E&&E.filterSize&&E.filterSize.y||"-100%"},runExpressions:!E||E.runExpressions===void 0||E.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(A){return this.supports3d?new HCompElement(A,this.globalData,this):new SVGCompElement(A,this.globalData,this)};var CompExpressionInterface=function(){return function(A){function E(C){for(var R=0,I=A.layers.length;R<I;){if(A.layers[R].nm===C||A.layers[R].ind===C)return A.elements[R].layerInterface;R+=1}return null}return Object.defineProperty(E,"_name",{value:A.data.nm}),E.layer=E,E.pixelAspect=1,E.height=A.data.h||A.globalData.compSize.h,E.width=A.data.w||A.globalData.compSize.w,E.pixelAspect=1,E.frameDuration=1/A.globalData.frameRate,E.displayStartTime=0,E.numLayers=A.layers.length,E}}();function _typeof$2(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(C){return typeof C}:_typeof$2=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$2(A)}function seedRandom(A,E){var C=this,R=256,I=6,B=52,U="random",V=E.pow(R,I),X=E.pow(2,B),K=X*2,J=R-1,Y;function Z(Te,we,Ie){var Fe=[];we=we===!0?{entropy:!0}:we||{};var ke=Pe(Se(we.entropy?[Te,Ae(A)]:Te===null?Ee():Te,3),Fe),Le=new _e(Fe),Ge=function(){for(var Be=Le.g(I),je=V,Ve=0;Be<X;)Be=(Be+Ve)*R,je*=R,Ve=Le.g(1);for(;Be>=K;)Be/=2,je/=2,Ve>>>=1;return(Be+Ve)/je};return Ge.int32=function(){return Le.g(4)|0},Ge.quick=function(){return Le.g(4)/4294967296},Ge.double=Ge,Pe(Ae(Le.S),A),(we.pass||Ie||function(Ue,Be,je,Ve){return Ve&&(Ve.S&&xe(Ve,Le),Ue.state=function(){return xe(Le,{})}),je?(E[U]=Ue,Be):Ue})(Ge,ke,"global"in we?we.global:this==E,we.state)}E["seed"+U]=Z;function _e(Te){var we,Ie=Te.length,Fe=this,ke=0,Le=Fe.i=Fe.j=0,Ge=Fe.S=[];for(Ie||(Te=[Ie++]);ke<R;)Ge[ke]=ke++;for(ke=0;ke<R;ke++)Ge[ke]=Ge[Le=J&Le+Te[ke%Ie]+(we=Ge[ke])],Ge[Le]=we;Fe.g=function(Ue){for(var Be,je=0,Ve=Fe.i,ze=Fe.j,He=Fe.S;Ue--;)Be=He[Ve=J&Ve+1],je=je*R+He[J&(He[Ve]=He[ze=J&ze+Be])+(He[ze]=Be)];return Fe.i=Ve,Fe.j=ze,je}}function xe(Te,we){return we.i=Te.i,we.j=Te.j,we.S=Te.S.slice(),we}function Se(Te,we){var Ie=[],Fe=_typeof$2(Te),ke;if(we&&Fe=="object")for(ke in Te)try{Ie.push(Se(Te[ke],we-1))}catch{}return Ie.length?Ie:Fe=="string"?Te:Te+"\0"}function Pe(Te,we){for(var Ie=Te+"",Fe,ke=0;ke<Ie.length;)we[J&ke]=J&(Fe^=we[J&ke]*19)+Ie.charCodeAt(ke++);return Ae(we)}function Ee(){try{var Te=new Uint8Array(R);return(C.crypto||C.msCrypto).getRandomValues(Te),Ae(Te)}catch{var we=C.navigator,Ie=we&&we.plugins;return[+new Date,C,Ie,C.screen,Ae(A)]}}function Ae(Te){return String.fromCharCode.apply(0,Te)}Pe(E.random(),A)}function initialize$2(A){seedRandom([],A)}var propTypes={SHAPE:"shape"};function _typeof$1(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(C){return typeof C}:_typeof$1=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$1(A)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(A){return A.constructor===Array||A.constructor===Float32Array}function isNumerable(A,E){return A==="number"||E instanceof Number||A==="boolean"||A==="string"}function $bm_neg(A){var E=_typeof$1(A);if(E==="number"||A instanceof Number||E==="boolean")return-A;if($bm_isInstanceOfArray(A)){var C,R=A.length,I=[];for(C=0;C<R;C+=1)I[C]=-A[C];return I}return A.propType?A.v:-A}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(A,E){var C=_typeof$1(A),R=_typeof$1(E);if(isNumerable(C,A)&&isNumerable(R,E)||C==="string"||R==="string")return A+E;if($bm_isInstanceOfArray(A)&&isNumerable(R,E))return A=A.slice(0),A[0]+=E,A;if(isNumerable(C,A)&&$bm_isInstanceOfArray(E))return E=E.slice(0),E[0]=A+E[0],E;if($bm_isInstanceOfArray(A)&&$bm_isInstanceOfArray(E)){for(var I=0,B=A.length,U=E.length,V=[];I<B||I<U;)(typeof A[I]=="number"||A[I]instanceof Number)&&(typeof E[I]=="number"||E[I]instanceof Number)?V[I]=A[I]+E[I]:V[I]=E[I]===void 0?A[I]:A[I]||E[I],I+=1;return V}return 0}var add=sum;function sub(A,E){var C=_typeof$1(A),R=_typeof$1(E);if(isNumerable(C,A)&&isNumerable(R,E))return C==="string"&&(A=parseInt(A,10)),R==="string"&&(E=parseInt(E,10)),A-E;if($bm_isInstanceOfArray(A)&&isNumerable(R,E))return A=A.slice(0),A[0]-=E,A;if(isNumerable(C,A)&&$bm_isInstanceOfArray(E))return E=E.slice(0),E[0]=A-E[0],E;if($bm_isInstanceOfArray(A)&&$bm_isInstanceOfArray(E)){for(var I=0,B=A.length,U=E.length,V=[];I<B||I<U;)(typeof A[I]=="number"||A[I]instanceof Number)&&(typeof E[I]=="number"||E[I]instanceof Number)?V[I]=A[I]-E[I]:V[I]=E[I]===void 0?A[I]:A[I]||E[I],I+=1;return V}return 0}function mul(A,E){var C=_typeof$1(A),R=_typeof$1(E),I;if(isNumerable(C,A)&&isNumerable(R,E))return A*E;var B,U;if($bm_isInstanceOfArray(A)&&isNumerable(R,E)){for(U=A.length,I=createTypedArray("float32",U),B=0;B<U;B+=1)I[B]=A[B]*E;return I}if(isNumerable(C,A)&&$bm_isInstanceOfArray(E)){for(U=E.length,I=createTypedArray("float32",U),B=0;B<U;B+=1)I[B]=A*E[B];return I}return 0}function div(A,E){var C=_typeof$1(A),R=_typeof$1(E),I;if(isNumerable(C,A)&&isNumerable(R,E))return A/E;var B,U;if($bm_isInstanceOfArray(A)&&isNumerable(R,E)){for(U=A.length,I=createTypedArray("float32",U),B=0;B<U;B+=1)I[B]=A[B]/E;return I}if(isNumerable(C,A)&&$bm_isInstanceOfArray(E)){for(U=E.length,I=createTypedArray("float32",U),B=0;B<U;B+=1)I[B]=A/E[B];return I}return 0}function mod(A,E){return typeof A=="string"&&(A=parseInt(A,10)),typeof E=="string"&&(E=parseInt(E,10)),A%E}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(A,E,C){if(E>C){var R=C;C=E,E=R}return Math.min(Math.max(A,E),C)}function radiansToDegrees(A){return A/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(A){return A*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(A,E){if(typeof A=="number"||A instanceof Number)return E=E||0,Math.abs(A-E);E||(E=helperLengthArray);var C,R=Math.min(A.length,E.length),I=0;for(C=0;C<R;C+=1)I+=Math.pow(E[C]-A[C],2);return Math.sqrt(I)}function normalize(A){return div(A,length(A))}function rgbToHsl(A){var E=A[0],C=A[1],R=A[2],I=Math.max(E,C,R),B=Math.min(E,C,R),U,V,X=(I+B)/2;if(I===B)U=0,V=0;else{var K=I-B;switch(V=X>.5?K/(2-I-B):K/(I+B),I){case E:U=(C-R)/K+(C<R?6:0);break;case C:U=(R-E)/K+2;break;case R:U=(E-C)/K+4;break}U/=6}return[U,V,X,A[3]]}function hue2rgb(A,E,C){return C<0&&(C+=1),C>1&&(C-=1),C<1/6?A+(E-A)*6*C:C<1/2?E:C<2/3?A+(E-A)*(2/3-C)*6:A}function hslToRgb(A){var E=A[0],C=A[1],R=A[2],I,B,U;if(C===0)I=R,U=R,B=R;else{var V=R<.5?R*(1+C):R+C-R*C,X=2*R-V;I=hue2rgb(X,V,E+1/3),B=hue2rgb(X,V,E),U=hue2rgb(X,V,E-1/3)}return[I,B,U,A[3]]}function linear(A,E,C,R,I){if((R===void 0||I===void 0)&&(R=E,I=C,E=0,C=1),C<E){var B=C;C=E,E=B}if(A<=E)return R;if(A>=C)return I;var U=C===E?0:(A-E)/(C-E);if(!R.length)return R+(I-R)*U;var V,X=R.length,K=createTypedArray("float32",X);for(V=0;V<X;V+=1)K[V]=R[V]+(I[V]-R[V])*U;return K}function random(A,E){if(E===void 0&&(A===void 0?(A=0,E=1):(E=A,A=void 0)),E.length){var C,R=E.length;A||(A=createTypedArray("float32",R));var I=createTypedArray("float32",R),B=BMMath.random();for(C=0;C<R;C+=1)I[C]=A[C]+B*(E[C]-A[C]);return I}A===void 0&&(A=0);var U=BMMath.random();return A+U*(E-A)}function createPath(A,E,C,R){var I,B=A.length,U=shapePool.newElement();U.setPathData(!!R,B);var V=[0,0],X,K;for(I=0;I<B;I+=1)X=E&&E[I]?E[I]:V,K=C&&C[I]?C[I]:V,U.setTripleAt(A[I][0],A[I][1],K[0]+A[I][0],K[1]+A[I][1],X[0]+A[I][0],X[1]+A[I][1],I,!0);return U}function initiateExpression(elem,data,property){function noOp(A){return A}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function A(E,C){var R,I,B=this.pv.length?this.pv.length:1,U=createTypedArray("float32",B);E=5;var V=Math.floor(time*E);for(R=0,I=0;R<V;){for(I=0;I<B;I+=1)U[I]+=-C+C*2*BMMath.random();R+=1}var X=time*E,K=X-Math.floor(X),J=createTypedArray("float32",B);if(B>1){for(I=0;I<B;I+=1)J[I]=this.pv[I]+U[I]+(-C+C*2*BMMath.random())*K;return J}return this.pv+U[0]+(-C+C*2*BMMath.random())*K}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(A,E){return loopIn(A,E,!0)}function loopOutDuration(A,E){return loopOut(A,E,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(A,E){var C=[E[0]-A[0],E[1]-A[1],E[2]-A[2]],R=Math.atan2(C[0],Math.sqrt(C[1]*C[1]+C[2]*C[2]))/degToRads,I=-Math.atan2(C[1],C[2])/degToRads;return[I,R,0]}function easeOut(A,E,C,R,I){return applyEase(easeOutBez,A,E,C,R,I)}function easeIn(A,E,C,R,I){return applyEase(easeInBez,A,E,C,R,I)}function ease(A,E,C,R,I){return applyEase(easeInOutBez,A,E,C,R,I)}function applyEase(A,E,C,R,I,B){I===void 0?(I=C,B=R):E=(E-C)/(R-C),E>1?E=1:E<0&&(E=0);var U=A(E);if($bm_isInstanceOfArray(I)){var V,X=I.length,K=createTypedArray("float32",X);for(V=0;V<X;V+=1)K[V]=(B[V]-I[V])*U+I[V];return K}return(B-I)*U+I}function nearestKey(A){var E,C=data.k.length,R,I;if(!data.k.length||typeof data.k[0]=="number")R=0,I=0;else if(R=-1,A*=elem.comp.globalData.frameRate,A<data.k[0].t)R=1,I=data.k[0].t;else{for(E=0;E<C-1;E+=1)if(A===data.k[E].t){R=E+1,I=data.k[E].t;break}else if(A>data.k[E].t&&A<data.k[E+1].t){A-data.k[E].t>data.k[E+1].t-A?(R=E+2,I=data.k[E+1].t):(R=E+1,I=data.k[E].t);break}R===-1&&(R=E+1,I=data.k[E].t)}var B={};return B.index=R,B.time=I/elem.comp.globalData.frameRate,B}function key(A){var E,C,R;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+A);A-=1,E={time:data.k[A].t/elem.comp.globalData.frameRate,value:[]};var I=Object.prototype.hasOwnProperty.call(data.k[A],"s")?data.k[A].s:data.k[A-1].e;for(R=I.length,C=0;C<R;C+=1)E[C]=I[C],E.value[C]=I[C];return E}function framesToTime(A,E){return E||(E=elem.comp.globalData.frameRate),A/E}function timeToFrames(A,E){return!A&&A!==0&&(A=time),E||(E=elem.comp.globalData.frameRate),A*E}function seedRandom(A){BMMath.seedrandom(randSeed+A)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(A,E){return typeof value=="string"?E===void 0?value.substring(A):value.substring(A,E):""}function substr(A,E){return typeof value=="string"?E===void 0?value.substr(A):value.substr(A,E):""}function posterizeTime(A){time=A===0?0:Math.floor(time*A)/A,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(A){return value=A,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var A={};A.initExpressions=E,A.resetFrame=ExpressionManager.resetFrame;function E(C){var R=0,I=[];function B(){R+=1}function U(){R-=1,R===0&&X()}function V(K){I.indexOf(K)===-1&&I.push(K)}function X(){var K,J=I.length;for(K=0;K<J;K+=1)I[K].release();I.length=0}C.renderer.compInterface=CompExpressionInterface(C.renderer),C.renderer.globalData.projectInterface.registerComposition(C.renderer),C.renderer.globalData.pushExpression=B,C.renderer.globalData.popExpression=U,C.renderer.globalData.registerExpressionProperty=V}return A}(),MaskManagerInterface=function(){function A(C,R){this._mask=C,this._data=R}Object.defineProperty(A.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(A.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var E=function(R){var I=createSizedArray(R.viewData.length),B,U=R.viewData.length;for(B=0;B<U;B+=1)I[B]=new A(R.viewData[B],R.masksProperties[B]);var V=function(K){for(B=0;B<U;){if(R.masksProperties[B].nm===K)return I[B];B+=1}return null};return V};return E}(),ExpressionPropertyInterface=function(){var A={pv:0,v:0,mult:1},E={pv:[0,0,0],v:[0,0,0],mult:1};function C(U,V,X){Object.defineProperty(U,"velocity",{get:function(){return V.getVelocityAtTime(V.comp.currentFrame)}}),U.numKeys=V.keyframes?V.keyframes.length:0,U.key=function(K){if(!U.numKeys)return 0;var J="";"s"in V.keyframes[K-1]?J=V.keyframes[K-1].s:"e"in V.keyframes[K-2]?J=V.keyframes[K-2].e:J=V.keyframes[K-2].s;var Y=X==="unidimensional"?new Number(J):Object.assign({},J);return Y.time=V.keyframes[K-1].t/V.elem.comp.globalData.frameRate,Y.value=X==="unidimensional"?J[0]:J,Y},U.valueAtTime=V.getValueAtTime,U.speedAtTime=V.getSpeedAtTime,U.velocityAtTime=V.getVelocityAtTime,U.propertyGroup=V.propertyGroup}function R(U){(!U||!("pv"in U))&&(U=A);var V=1/U.mult,X=U.pv*V,K=new Number(X);return K.value=X,C(K,U,"unidimensional"),function(){return U.k&&U.getValue(),X=U.v*V,K.value!==X&&(K=new Number(X),K.value=X,C(K,U,"unidimensional")),K}}function I(U){(!U||!("pv"in U))&&(U=E);var V=1/U.mult,X=U.data&&U.data.l||U.pv.length,K=createTypedArray("float32",X),J=createTypedArray("float32",X);return K.value=J,C(K,U,"multidimensional"),function(){U.k&&U.getValue();for(var Y=0;Y<X;Y+=1)J[Y]=U.v[Y]*V,K[Y]=J[Y];return K}}function B(){return A}return function(U){return U?U.propType==="unidimensional"?R(U):I(U):B}}(),TransformExpressionInterface=function(){return function(A){function E(U){switch(U){case"scale":case"Scale":case"ADBE Scale":case 6:return E.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return E.rotation;case"ADBE Rotate X":return E.xRotation;case"ADBE Rotate Y":return E.yRotation;case"position":case"Position":case"ADBE Position":case 2:return E.position;case"ADBE Position_0":return E.xPosition;case"ADBE Position_1":return E.yPosition;case"ADBE Position_2":return E.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return E.anchorPoint;case"opacity":case"Opacity":case 11:return E.opacity;default:return null}}Object.defineProperty(E,"rotation",{get:ExpressionPropertyInterface(A.r||A.rz)}),Object.defineProperty(E,"zRotation",{get:ExpressionPropertyInterface(A.rz||A.r)}),Object.defineProperty(E,"xRotation",{get:ExpressionPropertyInterface(A.rx)}),Object.defineProperty(E,"yRotation",{get:ExpressionPropertyInterface(A.ry)}),Object.defineProperty(E,"scale",{get:ExpressionPropertyInterface(A.s)});var C,R,I,B;return A.p?B=ExpressionPropertyInterface(A.p):(C=ExpressionPropertyInterface(A.px),R=ExpressionPropertyInterface(A.py),A.pz&&(I=ExpressionPropertyInterface(A.pz))),Object.defineProperty(E,"position",{get:function(){return A.p?B():[C(),R(),I?I():0]}}),Object.defineProperty(E,"xPosition",{get:ExpressionPropertyInterface(A.px)}),Object.defineProperty(E,"yPosition",{get:ExpressionPropertyInterface(A.py)}),Object.defineProperty(E,"zPosition",{get:ExpressionPropertyInterface(A.pz)}),Object.defineProperty(E,"anchorPoint",{get:ExpressionPropertyInterface(A.a)}),Object.defineProperty(E,"opacity",{get:ExpressionPropertyInterface(A.o)}),Object.defineProperty(E,"skew",{get:ExpressionPropertyInterface(A.sk)}),Object.defineProperty(E,"skewAxis",{get:ExpressionPropertyInterface(A.sa)}),Object.defineProperty(E,"orientation",{get:ExpressionPropertyInterface(A.or)}),E}}(),LayerExpressionInterface=function(){function A(K){var J=new Matrix;if(K!==void 0){var Y=this._elem.finalTransform.mProp.getValueAtTime(K);Y.clone(J)}else{var Z=this._elem.finalTransform.mProp;Z.applyToMatrix(J)}return J}function E(K,J){var Y=this.getMatrix(J);return Y.props[12]=0,Y.props[13]=0,Y.props[14]=0,this.applyPoint(Y,K)}function C(K,J){var Y=this.getMatrix(J);return this.applyPoint(Y,K)}function R(K,J){var Y=this.getMatrix(J);return Y.props[12]=0,Y.props[13]=0,Y.props[14]=0,this.invertPoint(Y,K)}function I(K,J){var Y=this.getMatrix(J);return this.invertPoint(Y,K)}function B(K,J){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Y,Z=this._elem.hierarchy.length;for(Y=0;Y<Z;Y+=1)this._elem.hierarchy[Y].finalTransform.mProp.applyToMatrix(K)}return K.applyToPointArray(J[0],J[1],J[2]||0)}function U(K,J){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Y,Z=this._elem.hierarchy.length;for(Y=0;Y<Z;Y+=1)this._elem.hierarchy[Y].finalTransform.mProp.applyToMatrix(K)}return K.inversePoint(J)}function V(K){var J=new Matrix;if(J.reset(),this._elem.finalTransform.mProp.applyToMatrix(J),this._elem.hierarchy&&this._elem.hierarchy.length){var Y,Z=this._elem.hierarchy.length;for(Y=0;Y<Z;Y+=1)this._elem.hierarchy[Y].finalTransform.mProp.applyToMatrix(J);return J.inversePoint(K)}return J.inversePoint(K)}function X(){return[1,1,1,1]}return function(K){var J;function Y(Se){_e.mask=new MaskManagerInterface(Se,K)}function Z(Se){_e.effect=Se}function _e(Se){switch(Se){case"ADBE Root Vectors Group":case"Contents":case 2:return _e.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return J;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return _e.effect;case"ADBE Text Properties":return _e.textInterface;default:return null}}_e.getMatrix=A,_e.invertPoint=U,_e.applyPoint=B,_e.toWorld=C,_e.toWorldVec=E,_e.fromWorld=I,_e.fromWorldVec=R,_e.toComp=C,_e.fromComp=V,_e.sampleImage=X,_e.sourceRectAtTime=K.sourceRectAtTime.bind(K),_e._elem=K,J=TransformExpressionInterface(K.finalTransform.mProp);var xe=getDescriptor(J,"anchorPoint");return Object.defineProperties(_e,{hasParent:{get:function(){return K.hierarchy.length}},parent:{get:function(){return K.hierarchy[0].layerInterface}},rotation:getDescriptor(J,"rotation"),scale:getDescriptor(J,"scale"),position:getDescriptor(J,"position"),opacity:getDescriptor(J,"opacity"),anchorPoint:xe,anchor_point:xe,transform:{get:function(){return J}},active:{get:function(){return K.isInRange}}}),_e.startTime=K.data.st,_e.index=K.data.ind,_e.source=K.data.refId,_e.height=K.data.ty===0?K.data.h:100,_e.width=K.data.ty===0?K.data.w:100,_e.inPoint=K.data.ip/K.comp.globalData.frameRate,_e.outPoint=K.data.op/K.comp.globalData.frameRate,_e._name=K.data.nm,_e.registerMaskInterface=Y,_e.registerEffectsInterface=Z,_e}}(),propertyGroupFactory=function(){return function(A,E){return function(C){return C=C===void 0?1:C,C<=0?A:E(C-1)}}}(),PropertyInterface=function(){return function(A,E){var C={_name:A};function R(I){return I=I===void 0?1:I,I<=0?C:E(I-1)}return R}}(),EffectsExpressionInterface=function(){var A={createEffectsInterface:E};function E(I,B){if(I.effectsManager){var U=[],V=I.data.ef,X,K=I.effectsManager.effectElements.length;for(X=0;X<K;X+=1)U.push(C(V[X],I.effectsManager.effectElements[X],B,I));var J=I.data.ef||[],Y=function(_e){for(X=0,K=J.length;X<K;){if(_e===J[X].nm||_e===J[X].mn||_e===J[X].ix)return U[X];X+=1}return null};return Object.defineProperty(Y,"numProperties",{get:function(){return J.length}}),Y}return null}function C(I,B,U,V){function X(_e){for(var xe=I.ef,Se=0,Pe=xe.length;Se<Pe;){if(_e===xe[Se].nm||_e===xe[Se].mn||_e===xe[Se].ix)return xe[Se].ty===5?J[Se]:J[Se]();Se+=1}throw new Error}var K=propertyGroupFactory(X,U),J=[],Y,Z=I.ef.length;for(Y=0;Y<Z;Y+=1)I.ef[Y].ty===5?J.push(C(I.ef[Y],B.effectElements[Y],B.effectElements[Y].propertyGroup,V)):J.push(R(B.effectElements[Y],I.ef[Y].ty,V,K));return I.mn==="ADBE Color Control"&&Object.defineProperty(X,"color",{get:function(){return J[0]()}}),Object.defineProperties(X,{numProperties:{get:function(){return I.np}},_name:{value:I.nm},propertyGroup:{value:K}}),X.enabled=I.en!==0,X.active=X.enabled,X}function R(I,B,U,V){var X=ExpressionPropertyInterface(I.p);function K(){return B===10?U.comp.compInterface(I.p.v):X()}return I.p.setGroupProperty&&I.p.setGroupProperty(PropertyInterface("",V)),K}return A}(),ShapePathInterface=function(){return function(E,C,R){var I=C.sh;function B(V){return V==="Shape"||V==="shape"||V==="Path"||V==="path"||V==="ADBE Vector Shape"||V===2?B.path:null}var U=propertyGroupFactory(B,R);return I.setGroupProperty(PropertyInterface("Path",U)),Object.defineProperties(B,{path:{get:function(){return I.k&&I.getValue(),I}},shape:{get:function(){return I.k&&I.getValue(),I}},_name:{value:E.nm},ix:{value:E.ix},propertyIndex:{value:E.ix},mn:{value:E.mn},propertyGroup:{value:R}}),B}}(),ShapeExpressionInterface=function(){function A(xe,Se,Pe){var Ee=[],Ae,Te=xe?xe.length:0;for(Ae=0;Ae<Te;Ae+=1)xe[Ae].ty==="gr"?Ee.push(C(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="fl"?Ee.push(R(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="st"?Ee.push(U(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="tm"?Ee.push(V(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="tr"||(xe[Ae].ty==="el"?Ee.push(K(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="sr"?Ee.push(J(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="sh"?Ee.push(ShapePathInterface(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="rc"?Ee.push(Y(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="rd"?Ee.push(Z(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="rp"?Ee.push(_e(xe[Ae],Se[Ae],Pe)):xe[Ae].ty==="gf"?Ee.push(I(xe[Ae],Se[Ae],Pe)):Ee.push(B(xe[Ae],Se[Ae])));return Ee}function E(xe,Se,Pe){var Ee,Ae=function(Ie){for(var Fe=0,ke=Ee.length;Fe<ke;){if(Ee[Fe]._name===Ie||Ee[Fe].mn===Ie||Ee[Fe].propertyIndex===Ie||Ee[Fe].ix===Ie||Ee[Fe].ind===Ie)return Ee[Fe];Fe+=1}return typeof Ie=="number"?Ee[Ie-1]:null};Ae.propertyGroup=propertyGroupFactory(Ae,Pe),Ee=A(xe.it,Se.it,Ae.propertyGroup),Ae.numProperties=Ee.length;var Te=X(xe.it[xe.it.length-1],Se.it[Se.it.length-1],Ae.propertyGroup);return Ae.transform=Te,Ae.propertyIndex=xe.cix,Ae._name=xe.nm,Ae}function C(xe,Se,Pe){var Ee=function(Ie){switch(Ie){case"ADBE Vectors Group":case"Contents":case 2:return Ee.content;default:return Ee.transform}};Ee.propertyGroup=propertyGroupFactory(Ee,Pe);var Ae=E(xe,Se,Ee.propertyGroup),Te=X(xe.it[xe.it.length-1],Se.it[Se.it.length-1],Ee.propertyGroup);return Ee.content=Ae,Ee.transform=Te,Object.defineProperty(Ee,"_name",{get:function(){return xe.nm}}),Ee.numProperties=xe.np,Ee.propertyIndex=xe.ix,Ee.nm=xe.nm,Ee.mn=xe.mn,Ee}function R(xe,Se,Pe){function Ee(Ae){return Ae==="Color"||Ae==="color"?Ee.color:Ae==="Opacity"||Ae==="opacity"?Ee.opacity:null}return Object.defineProperties(Ee,{color:{get:ExpressionPropertyInterface(Se.c)},opacity:{get:ExpressionPropertyInterface(Se.o)},_name:{value:xe.nm},mn:{value:xe.mn}}),Se.c.setGroupProperty(PropertyInterface("Color",Pe)),Se.o.setGroupProperty(PropertyInterface("Opacity",Pe)),Ee}function I(xe,Se,Pe){function Ee(Ae){return Ae==="Start Point"||Ae==="start point"?Ee.startPoint:Ae==="End Point"||Ae==="end point"?Ee.endPoint:Ae==="Opacity"||Ae==="opacity"?Ee.opacity:null}return Object.defineProperties(Ee,{startPoint:{get:ExpressionPropertyInterface(Se.s)},endPoint:{get:ExpressionPropertyInterface(Se.e)},opacity:{get:ExpressionPropertyInterface(Se.o)},type:{get:function(){return"a"}},_name:{value:xe.nm},mn:{value:xe.mn}}),Se.s.setGroupProperty(PropertyInterface("Start Point",Pe)),Se.e.setGroupProperty(PropertyInterface("End Point",Pe)),Se.o.setGroupProperty(PropertyInterface("Opacity",Pe)),Ee}function B(){function xe(){return null}return xe}function U(xe,Se,Pe){var Ee=propertyGroupFactory(ke,Pe),Ae=propertyGroupFactory(Fe,Ee);function Te(Le){Object.defineProperty(Fe,xe.d[Le].nm,{get:ExpressionPropertyInterface(Se.d.dataProps[Le].p)})}var we,Ie=xe.d?xe.d.length:0,Fe={};for(we=0;we<Ie;we+=1)Te(we),Se.d.dataProps[we].p.setGroupProperty(Ae);function ke(Le){return Le==="Color"||Le==="color"?ke.color:Le==="Opacity"||Le==="opacity"?ke.opacity:Le==="Stroke Width"||Le==="stroke width"?ke.strokeWidth:null}return Object.defineProperties(ke,{color:{get:ExpressionPropertyInterface(Se.c)},opacity:{get:ExpressionPropertyInterface(Se.o)},strokeWidth:{get:ExpressionPropertyInterface(Se.w)},dash:{get:function(){return Fe}},_name:{value:xe.nm},mn:{value:xe.mn}}),Se.c.setGroupProperty(PropertyInterface("Color",Ee)),Se.o.setGroupProperty(PropertyInterface("Opacity",Ee)),Se.w.setGroupProperty(PropertyInterface("Stroke Width",Ee)),ke}function V(xe,Se,Pe){function Ee(Te){return Te===xe.e.ix||Te==="End"||Te==="end"?Ee.end:Te===xe.s.ix?Ee.start:Te===xe.o.ix?Ee.offset:null}var Ae=propertyGroupFactory(Ee,Pe);return Ee.propertyIndex=xe.ix,Se.s.setGroupProperty(PropertyInterface("Start",Ae)),Se.e.setGroupProperty(PropertyInterface("End",Ae)),Se.o.setGroupProperty(PropertyInterface("Offset",Ae)),Ee.propertyIndex=xe.ix,Ee.propertyGroup=Pe,Object.defineProperties(Ee,{start:{get:ExpressionPropertyInterface(Se.s)},end:{get:ExpressionPropertyInterface(Se.e)},offset:{get:ExpressionPropertyInterface(Se.o)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function X(xe,Se,Pe){function Ee(Te){return xe.a.ix===Te||Te==="Anchor Point"?Ee.anchorPoint:xe.o.ix===Te||Te==="Opacity"?Ee.opacity:xe.p.ix===Te||Te==="Position"?Ee.position:xe.r.ix===Te||Te==="Rotation"||Te==="ADBE Vector Rotation"?Ee.rotation:xe.s.ix===Te||Te==="Scale"?Ee.scale:xe.sk&&xe.sk.ix===Te||Te==="Skew"?Ee.skew:xe.sa&&xe.sa.ix===Te||Te==="Skew Axis"?Ee.skewAxis:null}var Ae=propertyGroupFactory(Ee,Pe);return Se.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",Ae)),Se.transform.mProps.p.setGroupProperty(PropertyInterface("Position",Ae)),Se.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",Ae)),Se.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",Ae)),Se.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",Ae)),Se.transform.mProps.sk&&(Se.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",Ae)),Se.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",Ae))),Se.transform.op.setGroupProperty(PropertyInterface("Opacity",Ae)),Object.defineProperties(Ee,{opacity:{get:ExpressionPropertyInterface(Se.transform.mProps.o)},position:{get:ExpressionPropertyInterface(Se.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(Se.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(Se.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(Se.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(Se.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(Se.transform.mProps.sa)},_name:{value:xe.nm}}),Ee.ty="tr",Ee.mn=xe.mn,Ee.propertyGroup=Pe,Ee}function K(xe,Se,Pe){function Ee(we){return xe.p.ix===we?Ee.position:xe.s.ix===we?Ee.size:null}var Ae=propertyGroupFactory(Ee,Pe);Ee.propertyIndex=xe.ix;var Te=Se.sh.ty==="tm"?Se.sh.prop:Se.sh;return Te.s.setGroupProperty(PropertyInterface("Size",Ae)),Te.p.setGroupProperty(PropertyInterface("Position",Ae)),Object.defineProperties(Ee,{size:{get:ExpressionPropertyInterface(Te.s)},position:{get:ExpressionPropertyInterface(Te.p)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function J(xe,Se,Pe){function Ee(we){return xe.p.ix===we?Ee.position:xe.r.ix===we?Ee.rotation:xe.pt.ix===we?Ee.points:xe.or.ix===we||we==="ADBE Vector Star Outer Radius"?Ee.outerRadius:xe.os.ix===we?Ee.outerRoundness:xe.ir&&(xe.ir.ix===we||we==="ADBE Vector Star Inner Radius")?Ee.innerRadius:xe.is&&xe.is.ix===we?Ee.innerRoundness:null}var Ae=propertyGroupFactory(Ee,Pe),Te=Se.sh.ty==="tm"?Se.sh.prop:Se.sh;return Ee.propertyIndex=xe.ix,Te.or.setGroupProperty(PropertyInterface("Outer Radius",Ae)),Te.os.setGroupProperty(PropertyInterface("Outer Roundness",Ae)),Te.pt.setGroupProperty(PropertyInterface("Points",Ae)),Te.p.setGroupProperty(PropertyInterface("Position",Ae)),Te.r.setGroupProperty(PropertyInterface("Rotation",Ae)),xe.ir&&(Te.ir.setGroupProperty(PropertyInterface("Inner Radius",Ae)),Te.is.setGroupProperty(PropertyInterface("Inner Roundness",Ae))),Object.defineProperties(Ee,{position:{get:ExpressionPropertyInterface(Te.p)},rotation:{get:ExpressionPropertyInterface(Te.r)},points:{get:ExpressionPropertyInterface(Te.pt)},outerRadius:{get:ExpressionPropertyInterface(Te.or)},outerRoundness:{get:ExpressionPropertyInterface(Te.os)},innerRadius:{get:ExpressionPropertyInterface(Te.ir)},innerRoundness:{get:ExpressionPropertyInterface(Te.is)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function Y(xe,Se,Pe){function Ee(we){return xe.p.ix===we?Ee.position:xe.r.ix===we?Ee.roundness:xe.s.ix===we||we==="Size"||we==="ADBE Vector Rect Size"?Ee.size:null}var Ae=propertyGroupFactory(Ee,Pe),Te=Se.sh.ty==="tm"?Se.sh.prop:Se.sh;return Ee.propertyIndex=xe.ix,Te.p.setGroupProperty(PropertyInterface("Position",Ae)),Te.s.setGroupProperty(PropertyInterface("Size",Ae)),Te.r.setGroupProperty(PropertyInterface("Rotation",Ae)),Object.defineProperties(Ee,{position:{get:ExpressionPropertyInterface(Te.p)},roundness:{get:ExpressionPropertyInterface(Te.r)},size:{get:ExpressionPropertyInterface(Te.s)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function Z(xe,Se,Pe){function Ee(we){return xe.r.ix===we||we==="Round Corners 1"?Ee.radius:null}var Ae=propertyGroupFactory(Ee,Pe),Te=Se;return Ee.propertyIndex=xe.ix,Te.rd.setGroupProperty(PropertyInterface("Radius",Ae)),Object.defineProperties(Ee,{radius:{get:ExpressionPropertyInterface(Te.rd)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}function _e(xe,Se,Pe){function Ee(we){return xe.c.ix===we||we==="Copies"?Ee.copies:xe.o.ix===we||we==="Offset"?Ee.offset:null}var Ae=propertyGroupFactory(Ee,Pe),Te=Se;return Ee.propertyIndex=xe.ix,Te.c.setGroupProperty(PropertyInterface("Copies",Ae)),Te.o.setGroupProperty(PropertyInterface("Offset",Ae)),Object.defineProperties(Ee,{copies:{get:ExpressionPropertyInterface(Te.c)},offset:{get:ExpressionPropertyInterface(Te.o)},_name:{value:xe.nm}}),Ee.mn=xe.mn,Ee}return function(xe,Se,Pe){var Ee;function Ae(we){if(typeof we=="number")return we=we===void 0?1:we,we===0?Pe:Ee[we-1];for(var Ie=0,Fe=Ee.length;Ie<Fe;){if(Ee[Ie]._name===we)return Ee[Ie];Ie+=1}return null}function Te(){return Pe}return Ae.propertyGroup=propertyGroupFactory(Ae,Te),Ee=A(xe,Se,Ae.propertyGroup),Ae.numProperties=Ee.length,Ae._name="Contents",Ae}}(),TextExpressionInterface=function(){return function(A){var E;function C(R){switch(R){case"ADBE Text Document":return C.sourceText;default:return null}}return Object.defineProperty(C,"sourceText",{get:function(){A.textProperty.getValue();var I=A.textProperty.currentData.t;return(!E||I!==E.value)&&(E=new String(I),E.value=I||new String(I),Object.defineProperty(E,"style",{get:function(){return{fillColor:A.textProperty.currentData.fc}}})),E}}),C}}();function _typeof(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(C){return typeof C}:_typeof=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof(A)}var FootageInterface=function(){var A=function(R){var I="",B=R.getFootageData();function U(){return I="",B=R.getFootageData(),V}function V(X){if(B[X])return I=X,B=B[X],_typeof(B)==="object"?V:B;var K=X.indexOf(I);if(K!==-1){var J=parseInt(X.substr(K+I.length),10);return B=B[J],_typeof(B)==="object"?V:B}return""}return U},E=function(R){function I(B){return B==="Outline"?I.outlineInterface():null}return I._name="Outline",I.outlineInterface=A(R),I};return function(C){function R(I){return I==="Data"?R.dataInterface:null}return R._name="Data",R.dataInterface=E(C),R}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(A){return interfaces[A]||null}var expressionHelpers=function(){function A(U,V,X){V.x&&(X.k=!0,X.x=!0,X.initiateExpression=ExpressionManager.initiateExpression,X.effectsSequence.push(X.initiateExpression(U,V,X).bind(X)))}function E(U){return U*=this.elem.globalData.frameRate,U-=this.offsetTime,U!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<U?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(U,this._cachingAtTime),this._cachingAtTime.lastFrame=U),this._cachingAtTime.value}function C(U){var V=-.01,X=this.getValueAtTime(U),K=this.getValueAtTime(U+V),J=0;if(X.length){var Y;for(Y=0;Y<X.length;Y+=1)J+=Math.pow(K[Y]-X[Y],2);J=Math.sqrt(J)*100}else J=0;return J}function R(U){if(this.vel!==void 0)return this.vel;var V=-.001,X=this.getValueAtTime(U),K=this.getValueAtTime(U+V),J;if(X.length){J=createTypedArray("float32",X.length);var Y;for(Y=0;Y<X.length;Y+=1)J[Y]=(K[Y]-X[Y])/V}else J=(K-X)/V;return J}function I(){return this.pv}function B(U){this.propertyGroup=U}return{searchExpressions:A,getSpeedAtTime:C,getVelocityAtTime:R,getValueAtTime:E,getStaticValueAtTime:I,setGroupProperty:B}}();function addPropertyDecorator(){function A(Z,_e,xe){if(!this.k||!this.keyframes)return this.pv;Z=Z?Z.toLowerCase():"";var Se=this.comp.renderedFrame,Pe=this.keyframes,Ee=Pe[Pe.length-1].t;if(Se<=Ee)return this.pv;var Ae,Te;xe?(_e?Ae=Math.abs(Ee-this.elem.comp.globalData.frameRate*_e):Ae=Math.max(0,Ee-this.elem.data.ip),Te=Ee-Ae):((!_e||_e>Pe.length-1)&&(_e=Pe.length-1),Te=Pe[Pe.length-1-_e].t,Ae=Ee-Te);var we,Ie,Fe;if(Z==="pingpong"){var ke=Math.floor((Se-Te)/Ae);if(ke%2!==0)return this.getValueAtTime((Ae-(Se-Te)%Ae+Te)/this.comp.globalData.frameRate,0)}else if(Z==="offset"){var Le=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),Ge=this.getValueAtTime(Ee/this.comp.globalData.frameRate,0),Ue=this.getValueAtTime(((Se-Te)%Ae+Te)/this.comp.globalData.frameRate,0),Be=Math.floor((Se-Te)/Ae);if(this.pv.length){for(Fe=new Array(Le.length),Ie=Fe.length,we=0;we<Ie;we+=1)Fe[we]=(Ge[we]-Le[we])*Be+Ue[we];return Fe}return(Ge-Le)*Be+Ue}else if(Z==="continue"){var je=this.getValueAtTime(Ee/this.comp.globalData.frameRate,0),Ve=this.getValueAtTime((Ee-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Fe=new Array(je.length),Ie=Fe.length,we=0;we<Ie;we+=1)Fe[we]=je[we]+(je[we]-Ve[we])*((Se-Ee)/this.comp.globalData.frameRate)/5e-4;return Fe}return je+(je-Ve)*((Se-Ee)/.001)}return this.getValueAtTime(((Se-Te)%Ae+Te)/this.comp.globalData.frameRate,0)}function E(Z,_e,xe){if(!this.k)return this.pv;Z=Z?Z.toLowerCase():"";var Se=this.comp.renderedFrame,Pe=this.keyframes,Ee=Pe[0].t;if(Se>=Ee)return this.pv;var Ae,Te;xe?(_e?Ae=Math.abs(this.elem.comp.globalData.frameRate*_e):Ae=Math.max(0,this.elem.data.op-Ee),Te=Ee+Ae):((!_e||_e>Pe.length-1)&&(_e=Pe.length-1),Te=Pe[_e].t,Ae=Te-Ee);var we,Ie,Fe;if(Z==="pingpong"){var ke=Math.floor((Ee-Se)/Ae);if(ke%2===0)return this.getValueAtTime(((Ee-Se)%Ae+Ee)/this.comp.globalData.frameRate,0)}else if(Z==="offset"){var Le=this.getValueAtTime(Ee/this.comp.globalData.frameRate,0),Ge=this.getValueAtTime(Te/this.comp.globalData.frameRate,0),Ue=this.getValueAtTime((Ae-(Ee-Se)%Ae+Ee)/this.comp.globalData.frameRate,0),Be=Math.floor((Ee-Se)/Ae)+1;if(this.pv.length){for(Fe=new Array(Le.length),Ie=Fe.length,we=0;we<Ie;we+=1)Fe[we]=Ue[we]-(Ge[we]-Le[we])*Be;return Fe}return Ue-(Ge-Le)*Be}else if(Z==="continue"){var je=this.getValueAtTime(Ee/this.comp.globalData.frameRate,0),Ve=this.getValueAtTime((Ee+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Fe=new Array(je.length),Ie=Fe.length,we=0;we<Ie;we+=1)Fe[we]=je[we]+(je[we]-Ve[we])*(Ee-Se)/.001;return Fe}return je+(je-Ve)*(Ee-Se)/.001}return this.getValueAtTime((Ae-((Ee-Se)%Ae+Ee))/this.comp.globalData.frameRate,0)}function C(Z,_e){if(!this.k)return this.pv;if(Z=(Z||.4)*.5,_e=Math.floor(_e||5),_e<=1)return this.pv;var xe=this.comp.renderedFrame/this.comp.globalData.frameRate,Se=xe-Z,Pe=xe+Z,Ee=_e>1?(Pe-Se)/(_e-1):1,Ae=0,Te=0,we;this.pv.length?we=createTypedArray("float32",this.pv.length):we=0;for(var Ie;Ae<_e;){if(Ie=this.getValueAtTime(Se+Ae*Ee),this.pv.length)for(Te=0;Te<this.pv.length;Te+=1)we[Te]+=Ie[Te];else we+=Ie;Ae+=1}if(this.pv.length)for(Te=0;Te<this.pv.length;Te+=1)we[Te]/=_e;else we/=_e;return we}function R(Z){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var _e=this._transformCachingAtTime.v;if(_e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var xe=this.a.getValueAtTime(Z);_e.translate(-xe[0]*this.a.mult,-xe[1]*this.a.mult,xe[2]*this.a.mult)}if(this.appliedTransformations<2){var Se=this.s.getValueAtTime(Z);_e.scale(Se[0]*this.s.mult,Se[1]*this.s.mult,Se[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var Pe=this.sk.getValueAtTime(Z),Ee=this.sa.getValueAtTime(Z);_e.skewFromAxis(-Pe*this.sk.mult,Ee*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var Ae=this.r.getValueAtTime(Z);_e.rotate(-Ae*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var Te=this.rz.getValueAtTime(Z),we=this.ry.getValueAtTime(Z),Ie=this.rx.getValueAtTime(Z),Fe=this.or.getValueAtTime(Z);_e.rotateZ(-Te*this.rz.mult).rotateY(we*this.ry.mult).rotateX(Ie*this.rx.mult).rotateZ(-Fe[2]*this.or.mult).rotateY(Fe[1]*this.or.mult).rotateX(Fe[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var ke=this.px.getValueAtTime(Z),Le=this.py.getValueAtTime(Z);if(this.data.p.z){var Ge=this.pz.getValueAtTime(Z);_e.translate(ke*this.px.mult,Le*this.py.mult,-Ge*this.pz.mult)}else _e.translate(ke*this.px.mult,Le*this.py.mult,0)}else{var Ue=this.p.getValueAtTime(Z);_e.translate(Ue[0]*this.p.mult,Ue[1]*this.p.mult,-Ue[2]*this.p.mult)}return _e}function I(){return this.v.clone(new Matrix)}var B=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(Z,_e,xe){var Se=B(Z,_e,xe);return Se.dynamicProperties.length?Se.getValueAtTime=R.bind(Se):Se.getValueAtTime=I.bind(Se),Se.setGroupProperty=expressionHelpers.setGroupProperty,Se};var U=PropertyFactory.getProp;PropertyFactory.getProp=function(Z,_e,xe,Se,Pe){var Ee=U(Z,_e,xe,Se,Pe);Ee.kf?Ee.getValueAtTime=expressionHelpers.getValueAtTime.bind(Ee):Ee.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Ee),Ee.setGroupProperty=expressionHelpers.setGroupProperty,Ee.loopOut=A,Ee.loopIn=E,Ee.smooth=C,Ee.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Ee),Ee.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Ee),Ee.numKeys=_e.a===1?_e.k.length:0,Ee.propertyIndex=_e.ix;var Ae=0;return xe!==0&&(Ae=createTypedArray("float32",_e.a===1?_e.k[0].s.length:_e.k.length)),Ee._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:Ae},expressionHelpers.searchExpressions(Z,_e,Ee),Ee.k&&Pe.addDynamicProperty(Ee),Ee};function V(Z){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),Z*=this.elem.globalData.frameRate,Z-=this.offsetTime,Z!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<Z?this._caching.lastIndex:0,this._cachingAtTime.lastTime=Z,this.interpolateShape(Z,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var X=ShapePropertyFactory.getConstructorFunction(),K=ShapePropertyFactory.getKeyframedConstructorFunction();function J(){}J.prototype={vertices:function(_e,xe){this.k&&this.getValue();var Se=this.v;xe!==void 0&&(Se=this.getValueAtTime(xe,0));var Pe,Ee=Se._length,Ae=Se[_e],Te=Se.v,we=createSizedArray(Ee);for(Pe=0;Pe<Ee;Pe+=1)_e==="i"||_e==="o"?we[Pe]=[Ae[Pe][0]-Te[Pe][0],Ae[Pe][1]-Te[Pe][1]]:we[Pe]=[Ae[Pe][0],Ae[Pe][1]];return we},points:function(_e){return this.vertices("v",_e)},inTangents:function(_e){return this.vertices("i",_e)},outTangents:function(_e){return this.vertices("o",_e)},isClosed:function(){return this.v.c},pointOnPath:function(_e,xe){var Se=this.v;xe!==void 0&&(Se=this.getValueAtTime(xe,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(Se));for(var Pe=this._segmentsLength,Ee=Pe.lengths,Ae=Pe.totalLength*_e,Te=0,we=Ee.length,Ie=0,Fe;Te<we;){if(Ie+Ee[Te].addedLength>Ae){var ke=Te,Le=Se.c&&Te===we-1?0:Te+1,Ge=(Ae-Ie)/Ee[Te].addedLength;Fe=bez.getPointInSegment(Se.v[ke],Se.v[Le],Se.o[ke],Se.i[Le],Ge,Ee[Te]);break}else Ie+=Ee[Te].addedLength;Te+=1}return Fe||(Fe=Se.c?[Se.v[0][0],Se.v[0][1]]:[Se.v[Se._length-1][0],Se.v[Se._length-1][1]]),Fe},vectorOnPath:function(_e,xe,Se){_e==1?_e=this.v.c:_e==0&&(_e=.999);var Pe=this.pointOnPath(_e,xe),Ee=this.pointOnPath(_e+.001,xe),Ae=Ee[0]-Pe[0],Te=Ee[1]-Pe[1],we=Math.sqrt(Math.pow(Ae,2)+Math.pow(Te,2));if(we===0)return[0,0];var Ie=Se==="tangent"?[Ae/we,Te/we]:[-Te/we,Ae/we];return Ie},tangentOnPath:function(_e,xe){return this.vectorOnPath(_e,xe,"tangent")},normalOnPath:function(_e,xe){return this.vectorOnPath(_e,xe,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([J],X),extendPrototype([J],K),K.prototype.getValueAtTime=V,K.prototype.initiateExpression=ExpressionManager.initiateExpression;var Y=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(Z,_e,xe,Se,Pe){var Ee=Y(Z,_e,xe,Se,Pe);return Ee.propertyIndex=_e.ix,Ee.lock=!1,xe===3?expressionHelpers.searchExpressions(Z,_e.pt,Ee):xe===4&&expressionHelpers.searchExpressions(Z,_e.ks,Ee),Ee.k&&Z.addDynamicProperty(Ee),Ee}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function A(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(E,C){var R=this.calculateExpression(C);if(E.t!==R){var I={};return this.copyData(I,E),I.t=R.toString(),I.__complete=!1,I}return E},TextProperty.prototype.searchProperty=function(){var E=this.searchKeyframes(),C=this.searchExpressions();return this.kf=E||C,this.kf},TextProperty.prototype.searchExpressions=A}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function A(E,C){var R=createNS("feMerge");R.setAttribute("result",E);var I,B;for(B=0;B<C.length;B+=1)I=createNS("feMergeNode"),I.setAttribute("in",C[B]),R.appendChild(I),R.appendChild(I);return R}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(A,E,C,R,I){this.filterManager=E;var B=createNS("feColorMatrix");B.setAttribute("type","matrix"),B.setAttribute("color-interpolation-filters","linearRGB"),B.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=B,B.setAttribute("result",R+"_tint_1"),A.appendChild(B),B=createNS("feColorMatrix"),B.setAttribute("type","matrix"),B.setAttribute("color-interpolation-filters","sRGB"),B.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),B.setAttribute("result",R+"_tint_2"),A.appendChild(B),this.matrixFilter=B;var U=this.createMergeNode(R,[I,R+"_tint_1",R+"_tint_2"]);A.appendChild(U)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E=this.filterManager.effectElements[0].p.v,C=this.filterManager.effectElements[1].p.v,R=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+R+" 0"),this.matrixFilter.setAttribute("values",C[0]-E[0]+" 0 0 0 "+E[0]+" "+(C[1]-E[1])+" 0 0 0 "+E[1]+" "+(C[2]-E[2])+" 0 0 0 "+E[2]+" 0 0 0 1 0")}};function SVGFillFilter(A,E,C,R){this.filterManager=E;var I=createNS("feColorMatrix");I.setAttribute("type","matrix"),I.setAttribute("color-interpolation-filters","sRGB"),I.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),I.setAttribute("result",R),A.appendChild(I),this.matrixFilter=I}SVGFillFilter.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E=this.filterManager.effectElements[2].p.v,C=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+E[0]+" 0 0 0 0 "+E[1]+" 0 0 0 0 "+E[2]+" 0 0 0 "+C+" 0")}};function SVGStrokeEffect(A,E,C){this.initialized=!1,this.filterManager=E,this.elem=C,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var A=this.elem.layerElement.children||this.elem.layerElement.childNodes,E,C,R,I;for(this.filterManager.effectElements[1].p.v===1?(I=this.elem.maskManager.masksProperties.length,R=0):(R=this.filterManager.effectElements[0].p.v-1,I=R+1),C=createNS("g"),C.setAttribute("fill","none"),C.setAttribute("stroke-linecap","round"),C.setAttribute("stroke-dashoffset",1),R;R<I;R+=1)E=createNS("path"),C.appendChild(E),this.paths.push({p:E,m:R});if(this.filterManager.effectElements[10].p.v===3){var B=createNS("mask"),U=createElementID();B.setAttribute("id",U),B.setAttribute("mask-type","alpha"),B.appendChild(C),this.elem.globalData.defs.appendChild(B);var V=createNS("g");for(V.setAttribute("mask","url("+getLocationHref()+"#"+U+")");A[0];)V.appendChild(A[0]);this.elem.layerElement.appendChild(V),this.masker=B,C.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(A=this.elem.layerElement.children||this.elem.layerElement.childNodes;A.length;)this.elem.layerElement.removeChild(A[0]);this.elem.layerElement.appendChild(C),this.elem.layerElement.removeAttribute("mask"),C.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=C},SVGStrokeEffect.prototype.renderFrame=function(A){this.initialized||this.initialize();var E,C=this.paths.length,R,I;for(E=0;E<C;E+=1)if(this.paths[E].m!==-1&&(R=this.elem.maskManager.viewData[this.paths[E].m],I=this.paths[E].p,(A||this.filterManager._mdf||R.prop._mdf)&&I.setAttribute("d",R.lastPath),A||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||R.prop._mdf)){var B;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var U=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,V=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,X=I.getTotalLength();B="0 0 0 "+X*U+" ";var K=X*(V-U),J=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,Y=Math.floor(K/J),Z;for(Z=0;Z<Y;Z+=1)B+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";B+="0 "+X*10+" 0 0"}else B="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;I.setAttribute("stroke-dasharray",B)}if((A||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(A||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(A||this.filterManager.effectElements[3].p._mdf)){var _e=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(_e[0]*255)+","+bmFloor(_e[1]*255)+","+bmFloor(_e[2]*255)+")")}};function SVGTritoneFilter(A,E,C,R){this.filterManager=E;var I=createNS("feColorMatrix");I.setAttribute("type","matrix"),I.setAttribute("color-interpolation-filters","linearRGB"),I.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),A.appendChild(I);var B=createNS("feComponentTransfer");B.setAttribute("color-interpolation-filters","sRGB"),B.setAttribute("result",R),this.matrixFilter=B;var U=createNS("feFuncR");U.setAttribute("type","table"),B.appendChild(U),this.feFuncR=U;var V=createNS("feFuncG");V.setAttribute("type","table"),B.appendChild(V),this.feFuncG=V;var X=createNS("feFuncB");X.setAttribute("type","table"),B.appendChild(X),this.feFuncB=X,A.appendChild(B)}SVGTritoneFilter.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E=this.filterManager.effectElements[0].p.v,C=this.filterManager.effectElements[1].p.v,R=this.filterManager.effectElements[2].p.v,I=R[0]+" "+C[0]+" "+E[0],B=R[1]+" "+C[1]+" "+E[1],U=R[2]+" "+C[2]+" "+E[2];this.feFuncR.setAttribute("tableValues",I),this.feFuncG.setAttribute("tableValues",B),this.feFuncB.setAttribute("tableValues",U)}};function SVGProLevelsFilter(A,E,C,R){this.filterManager=E;var I=this.filterManager.effectElements,B=createNS("feComponentTransfer");(I[10].p.k||I[10].p.v!==0||I[11].p.k||I[11].p.v!==1||I[12].p.k||I[12].p.v!==1||I[13].p.k||I[13].p.v!==0||I[14].p.k||I[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",B)),(I[17].p.k||I[17].p.v!==0||I[18].p.k||I[18].p.v!==1||I[19].p.k||I[19].p.v!==1||I[20].p.k||I[20].p.v!==0||I[21].p.k||I[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",B)),(I[24].p.k||I[24].p.v!==0||I[25].p.k||I[25].p.v!==1||I[26].p.k||I[26].p.v!==1||I[27].p.k||I[27].p.v!==0||I[28].p.k||I[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",B)),(I[31].p.k||I[31].p.v!==0||I[32].p.k||I[32].p.v!==1||I[33].p.k||I[33].p.v!==1||I[34].p.k||I[34].p.v!==0||I[35].p.k||I[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",B)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(B.setAttribute("color-interpolation-filters","sRGB"),A.appendChild(B)),(I[3].p.k||I[3].p.v!==0||I[4].p.k||I[4].p.v!==1||I[5].p.k||I[5].p.v!==1||I[6].p.k||I[6].p.v!==0||I[7].p.k||I[7].p.v!==1)&&(B=createNS("feComponentTransfer"),B.setAttribute("color-interpolation-filters","sRGB"),B.setAttribute("result",R),A.appendChild(B),this.feFuncRComposed=this.createFeFunc("feFuncR",B),this.feFuncGComposed=this.createFeFunc("feFuncG",B),this.feFuncBComposed=this.createFeFunc("feFuncB",B))}SVGProLevelsFilter.prototype.createFeFunc=function(A,E){var C=createNS(A);return C.setAttribute("type","table"),E.appendChild(C),C},SVGProLevelsFilter.prototype.getTableValue=function(A,E,C,R,I){for(var B=0,U=256,V,X=Math.min(A,E),K=Math.max(A,E),J=Array.call(null,{length:U}),Y,Z=0,_e=I-R,xe=E-A;B<=256;)V=B/256,V<=X?Y=xe<0?I:R:V>=K?Y=xe<0?R:I:Y=R+_e*Math.pow((V-A)/xe,1/C),J[Z]=Y,Z+=1,B+=256/(U-1);return J.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E,C=this.filterManager.effectElements;this.feFuncRComposed&&(A||C[3].p._mdf||C[4].p._mdf||C[5].p._mdf||C[6].p._mdf||C[7].p._mdf)&&(E=this.getTableValue(C[3].p.v,C[4].p.v,C[5].p.v,C[6].p.v,C[7].p.v),this.feFuncRComposed.setAttribute("tableValues",E),this.feFuncGComposed.setAttribute("tableValues",E),this.feFuncBComposed.setAttribute("tableValues",E)),this.feFuncR&&(A||C[10].p._mdf||C[11].p._mdf||C[12].p._mdf||C[13].p._mdf||C[14].p._mdf)&&(E=this.getTableValue(C[10].p.v,C[11].p.v,C[12].p.v,C[13].p.v,C[14].p.v),this.feFuncR.setAttribute("tableValues",E)),this.feFuncG&&(A||C[17].p._mdf||C[18].p._mdf||C[19].p._mdf||C[20].p._mdf||C[21].p._mdf)&&(E=this.getTableValue(C[17].p.v,C[18].p.v,C[19].p.v,C[20].p.v,C[21].p.v),this.feFuncG.setAttribute("tableValues",E)),this.feFuncB&&(A||C[24].p._mdf||C[25].p._mdf||C[26].p._mdf||C[27].p._mdf||C[28].p._mdf)&&(E=this.getTableValue(C[24].p.v,C[25].p.v,C[26].p.v,C[27].p.v,C[28].p.v),this.feFuncB.setAttribute("tableValues",E)),this.feFuncA&&(A||C[31].p._mdf||C[32].p._mdf||C[33].p._mdf||C[34].p._mdf||C[35].p._mdf)&&(E=this.getTableValue(C[31].p.v,C[32].p.v,C[33].p.v,C[34].p.v,C[35].p.v),this.feFuncA.setAttribute("tableValues",E))}};function SVGDropShadowEffect(A,E,C,R,I){var B=E.container.globalData.renderConfig.filterSize,U=E.data.fs||B;A.setAttribute("x",U.x||B.x),A.setAttribute("y",U.y||B.y),A.setAttribute("width",U.width||B.width),A.setAttribute("height",U.height||B.height),this.filterManager=E;var V=createNS("feGaussianBlur");V.setAttribute("in","SourceAlpha"),V.setAttribute("result",R+"_drop_shadow_1"),V.setAttribute("stdDeviation","0"),this.feGaussianBlur=V,A.appendChild(V);var X=createNS("feOffset");X.setAttribute("dx","25"),X.setAttribute("dy","0"),X.setAttribute("in",R+"_drop_shadow_1"),X.setAttribute("result",R+"_drop_shadow_2"),this.feOffset=X,A.appendChild(X);var K=createNS("feFlood");K.setAttribute("flood-color","#00ff00"),K.setAttribute("flood-opacity","1"),K.setAttribute("result",R+"_drop_shadow_3"),this.feFlood=K,A.appendChild(K);var J=createNS("feComposite");J.setAttribute("in",R+"_drop_shadow_3"),J.setAttribute("in2",R+"_drop_shadow_2"),J.setAttribute("operator","in"),J.setAttribute("result",R+"_drop_shadow_4"),A.appendChild(J);var Y=this.createMergeNode(R,[R+"_drop_shadow_4",I]);A.appendChild(Y)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){if((A||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),A||this.filterManager.effectElements[0].p._mdf){var E=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(E[0]*255),Math.round(E[1]*255),Math.round(E[2]*255)))}if((A||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),A||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var C=this.filterManager.effectElements[3].p.v,R=(this.filterManager.effectElements[2].p.v-90)*degToRads,I=C*Math.cos(R),B=C*Math.sin(R);this.feOffset.setAttribute("dx",I),this.feOffset.setAttribute("dy",B)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(A,E,C){this.initialized=!1,this.filterManager=E,this.filterElem=A,this.elem=C,C.matteElement=createNS("g"),C.matteElement.appendChild(C.layerElement),C.matteElement.appendChild(C.transformedElement),C.baseElement=C.matteElement}SVGMatte3Effect.prototype.findSymbol=function(A){for(var E=0,C=_svgMatteSymbols.length;E<C;){if(_svgMatteSymbols[E]===A)return _svgMatteSymbols[E];E+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(A,E){var C=A.layerElement.parentNode;if(C){for(var R=C.children,I=0,B=R.length;I<B&&R[I]!==A.layerElement;)I+=1;var U;I<=B-2&&(U=R[I+1]);var V=createNS("use");V.setAttribute("href","#"+E),U?C.insertBefore(V,U):C.appendChild(V)}},SVGMatte3Effect.prototype.setElementAsMask=function(A,E){if(!this.findSymbol(E)){var C=createElementID(),R=createNS("mask");R.setAttribute("id",E.layerId),R.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(E);var I=A.globalData.defs;I.appendChild(R);var B=createNS("symbol");B.setAttribute("id",C),this.replaceInParent(E,C),B.appendChild(E.layerElement),I.appendChild(B);var U=createNS("use");U.setAttribute("href","#"+C),R.appendChild(U),E.data.hd=!1,E.show()}A.setMatte(E.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var A=this.filterManager.effectElements[0].p.v,E=this.elem.comp.elements,C=0,R=E.length;C<R;)E[C]&&E[C].data.ind===A&&this.setElementAsMask(this.elem,E[C]),C+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(A,E,C,R){A.setAttribute("x","-100%"),A.setAttribute("y","-100%"),A.setAttribute("width","300%"),A.setAttribute("height","300%"),this.filterManager=E;var I=createNS("feGaussianBlur");I.setAttribute("result",R),A.appendChild(I),this.feGaussianBlur=I}SVGGaussianBlurEffect.prototype.renderFrame=function(A){if(A||this.filterManager._mdf){var E=.3,C=this.filterManager.effectElements[0].p.v*E,R=this.filterManager.effectElements[1].p.v,I=R==3?0:C,B=R==2?0:C;this.feGaussianBlur.setAttribute("stdDeviation",I+" "+B);var U=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",U)}};function TransformEffect(){}TransformEffect.prototype.init=function(A){this.effectsManager=A,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(A){if(this._opMdf=!1,this._mdf=!1,A||this.effectsManager._mdf){var E=this.effectsManager.effectElements,C=E[0].p.v,R=E[1].p.v,I=E[2].p.v===1,B=E[3].p.v,U=I?B:E[4].p.v,V=E[5].p.v,X=E[6].p.v,K=E[7].p.v;this.matrix.reset(),this.matrix.translate(-C[0],-C[1],C[2]),this.matrix.scale(U*.01,B*.01,1),this.matrix.rotate(-K*degToRads),this.matrix.skewFromAxis(-V*degToRads,(X+90)*degToRads),this.matrix.translate(R[0],R[1],0),this._mdf=!0,this.opacity!==E[8].p.v&&(this.opacity=E[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(A,E){this.init(E)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(A){this.init(A)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),initialState={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},PixiLottieSprite=React__namespace.forwardRef((A,E)=>{const[C,R]=React__namespace.useState(0),[I,B]=React__namespace.useState(!1),U=React__namespace.useRef(null),V=React__namespace.useRef(null),X=React__namespace.useRef(),K=React__namespace.useRef(),J=React.useRef(),Y=React.useRef(initialState),Z=React__namespace.useRef(),_e=React.useRef(document.body),{uniqueId:xe,src:Se,startAt:Pe,endAt:Ee,frameStartAt:Ae,frameEndAt:Te,visible:we,disabled:Ie,loop:Fe=!1,transformation:{x:ke,y:Le,width:Ge,height:Ue,colorCorrection:Be={}},pointerdown:je=()=>{},pointerout:Ve=()=>{},pointerover:ze=()=>{}}=A,{tl:He}=React.useContext(GsapPixieContext);useCustomEventListener(Events.PAUSE,()=>{K.current&&K.current.pause()});const{onPointerDown:Oe,onPointerOut:$e,onPointerOver:Re}=useDebouncedPointerEvents(ze,je,Ve,1),{blurRadius:Me=0,vignette:Ne=0,noise:De=0}=Be,{temperatureFilter:Xe,sharpnessFilter:qe,hslFilter:Ye,blurFilter:Je,adjustmentFilter:Ke,vignetteFilter:rt,noiseFilter:nt}=withFiltersHook(Be);React__namespace.useLayoutEffect(()=>{X.current=document.createElement("canvas"),X.current.setAttribute("id","lottieContainersvg"),X.current.setAttribute("id",`${xe}lottieContainer`),X.current.setAttribute("width",`${Ge}`),X.current.setAttribute("height",`${Ue}`);const Ze=_e.current;return Ze.appendChild(X.current),()=>{X.current&&Ze.removeChild(X.current)}},[]),React__namespace.useEffect(()=>{async function Ze(){K.current&&K.current.destroy(),X.current.removeAttribute("style"),K.current=lottie.loadAnimation({container:X.current||document.getElementById("lottieroot"),renderer:"canvas",loop:!1,autoplay:!1,path:Se,rendererSettings:{context:X.current.getContext("2d"),clearCanvas:!0,progressiveLoad:!1,preserveAspectRatio:"xMaxYMax meet"}}),K.current.addEventListener("data_ready",()=>{if(X.current&&X.current.setAttribute("style","display:none"),K.current&&K.current.renderer.canvasContext){const tt=K.current.totalFrames;Y.current.totalFrames=tt;const st=K.current.getDuration();Y.current.totalDuration=st;const et=K.current.renderer.canvasContext.canvas,We=PIXI__namespace.Texture.from(et);Z.current=We,B(!0),R(st)}}),K.current.addEventListener("loaded_images",()=>{}),K.current.addEventListener("complete",()=>{}),K.current.addEventListener("loopComplete",()=>{}),K.current.addEventListener("enterFrame",()=>{}),K.current.addEventListener("config_ready",()=>{console.log("config_ready",K.current)}),K.current.addEventListener("error",tt=>{console.log("error",tt)})}return Ze(),()=>{K.current&&(K.current.removeEventListener("complete"),K.current.removeEventListener("config_ready"),K.current.removeEventListener("enterFrame"),K.current.removeEventListener("loaded_images"),K.current.removeEventListener("loopComplete"),K.current.removeEventListener("data_ready"),K.current.removeEventListener("error"),K.current.destroy())}},[Se,xe]),React__namespace.useEffect(()=>(Z.current&&Z.current.update(),()=>{}),[I]);const Qe=Ze=>{if(K.current&&U.current&&J.current){const st=Ze(J.current.time())/J.current.duration()*Y.current.totalFrames,et=Y.current.totalFrames;let We=st;We=Math.round(Math.floor(We)),We>=et?(K.current.goToAndStop(0,!0),Z.current&&Z.current.update(),Y.current.isPlaying=!1):(K.current.goToAndStop(We,!0),Z.current&&Z.current.update(),Y.current.isPlaying=!0)}};return React__namespace.useEffect(()=>{let Ze=gsap$2.context(()=>{});if(V.current&&He.current&&C>0){const tt=Number(Ee)-Number(Pe);J.current&&(J.current.kill(),He.current.remove(J.current)),Ze=gsap$2.context(()=>{const st=gsap$2.utils.wrap(Pe,C);J.current=gsap$2.timeline({}).to(V.current,{duration:Number(tt),onUpdate:Qe,onUpdateParams:[st,Ae,Te]},Ae),He.current.add(J.current,Pe)})}return()=>{J.current&&(J.current.kill(),gsap$2.killTweensOf(J.current)),Ze.revert()}},[Pe,Ee,Ae,Te,xe,C,Fe]),jsxRuntimeExports.jsx(AbstractContainer,{...A,ref:E,ignoreTlForVideo:!0,pointerdown:Oe,pointerover:Re,pointerout:$e,children:jsxRuntimeExports.jsx(react.Container,{ref:V,children:Z.current&&jsxRuntimeExports.jsx(react.Sprite,{texture:Z.current,width:Ge,height:Ue,anchor:.5,x:ke,y:Le,ref:U,alpha:we?1:0,...!Ie&&we&&{interactive:!0,pointerdown:je},filters:[Xe,qe,Ye,Ke,...Me>0?[Je]:[],...Ne>0?[rt]:[],...De>0?[nt]:[]]})})})});PixiLottieSprite.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiLottieSprite"};var BlendModes=(A=>(A[A.NORMAL=0]="NORMAL",A[A.ADD=1]="ADD",A[A.MULTIPLY=2]="MULTIPLY",A[A.SCREEN=3]="SCREEN",A[A.OVERLAY=4]="OVERLAY",A[A.DARKEN=5]="DARKEN",A[A.LIGHTEN=6]="LIGHTEN",A[A.COLOR_DODGE=7]="COLOR_DODGE",A[A.COLOR_BURN=8]="COLOR_BURN",A[A.HARD_LIGHT=9]="HARD_LIGHT",A[A.SOFT_LIGHT=10]="SOFT_LIGHT",A[A.DIFFERENCE=11]="DIFFERENCE",A[A.EXCLUSION=12]="EXCLUSION",A[A.HUE=13]="HUE",A[A.SATURATION=14]="SATURATION",A[A.COLOR=15]="COLOR",A[A.LUMINOSITY=16]="LUMINOSITY",A))(BlendModes||{});exports.Animations=Animations,exports.BlendModes=BlendModes,exports.Events=Events,exports.GsapPixieContext=GsapPixieContext,exports.GsapPixieContextProvider=GsapPixieContextProvider,exports.PixiAnimatedSprite=PixiAnimatedSprite,exports.PixiAudioSprite=PixiAudioSprite,exports.PixiGifSprite=PixiGifSprite,exports.PixiImageSprite=PixiImageSprite,exports.PixiLottieSprite=PixiLottieSprite,exports.PixiRemotionSprite=PixiRemotionSprite,exports.PixiSequence=PixiSequence,exports.PixiSequenceWrapper=PixiSequenceWrapper,exports.PixiSvgPathSprite=PixiSvgPathSprite,exports.PixiTextSprite=PixiTextSprite,exports.PixiVideoCanvasSyncSprite=PixiVideoCanvasSyncSprite,exports.PixiVideoSprite=PixiVideoSprite,exports.emitCustomEvent=emitCustomEvent,exports.newCustomEventEmitter=newCustomEventEmitter,exports.useCustomEventListener=useCustomEventListener,exports.useGsapEffect=useGsapEffect,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});