reacthub-pixitweenjs 0.2.96 → 0.2.97
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.es.js
CHANGED
|
@@ -107,7 +107,7 @@ const Ui = wt.createContext({}), Pe = {
|
|
|
107
107
|
SCRUBBER_PAUSE: "GSAP_SCRUBBER_PAUSE",
|
|
108
108
|
TRANSFORMER_DRAG_START: "TRANSFORMER_DRAG_START",
|
|
109
109
|
TRANSFORMER_DRAG_END: "TRANSFORMER_DRAG_END",
|
|
110
|
-
|
|
110
|
+
REVERSE_MODE_START: "REVERSE_MODE_START",
|
|
111
111
|
REVERSE_MODE_END: "REVERSE_MODE_END"
|
|
112
112
|
}, vB = ({
|
|
113
113
|
children: e
|
|
@@ -171,7 +171,7 @@ const Ui = wt.createContext({}), Pe = {
|
|
|
171
171
|
v(w);
|
|
172
172
|
}), pr(Pe.SEEK_END, () => {
|
|
173
173
|
r(!1);
|
|
174
|
-
}), pr(Pe.
|
|
174
|
+
}), pr(Pe.REVERSE_MODE_START, () => {
|
|
175
175
|
f.current = !0;
|
|
176
176
|
}), pr(Pe.REVERSE_MODE_END, () => {
|
|
177
177
|
f.current = !1;
|
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 fy=yt,cy=Symbol.for("react.element"),hy=Symbol.for("react.fragment"),dy=Object.prototype.hasOwnProperty,py=fy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vy={key:!0,ref:!0,__self:!0,__source:!0};function cc(e,t,r){var n,i={},o=null,l=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)dy.call(t,n)&&!vy.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:cy,type:e,key:o,ref:l,props:i,_owner:py.current}}$s.Fragment=hy,$s.jsx=cc,$s.jsxs=cc,fc.exports=$s;var Vt=fc.exports,Sn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Sn||{});let hc;function dc(){return hc=document.body,hc}function Ze(e,t,r){let n;return yt.useEffect(()=>{n=n||dc();const i=o=>{const l=o.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function ti(e,t){const r=dc(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function gy(){let e;function t(r){e=r}return t.emit=function(r,n){const i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}const An=Tt.createContext({}),Oe={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",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END",REVERSE_MODE:"REVERSE_MODE",REVERSE_MODE_END:"REVERSE_MODE_END"},my=({children:e})=>{const[t,r]=yt.useState(!1),[n,i]=yt.useState(0),o=yt.useRef(),l=yt.useRef(),u=yt.useRef(.001),f=yt.useRef(!1);yt.useLayoutEffect(()=>(l.current=_e.context(()=>{o.current&&o.current.progress(0).kill(),o.current&&o.current.clear(),o.current&&_e.killTweensOf(o.current),o.current=_e.timeline({paused:!0,defaults:{duration:0}})}),()=>{o.current&&(o.current.progress(0).kill(),_e.killTweensOf(o.current)),l.current.revert()}),[]);const h=yt.useCallback(()=>{if(o.current){let T=o.current.time();T<u.current?f.current=!0:f.current=!1,u.current=T}},[]);yt.useEffect(()=>{if(o.current){const w=o.current;w.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){w.pause(),h()}).eventCallback("onUpdate",function(){h()}).eventCallback("onComplete",function(){w.pause(),w.revert(),ti(Oe.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),h()})}},[]);const d=yt.useCallback(()=>{o.current&&o.current.revert()},[]),p=yt.useCallback(()=>{o.current&&o.current.restart()},[]),c=yt.useCallback(()=>{if(o.current){const w=o.current;w.repeat(1),w.restart()}},[]),v=yt.useCallback(w=>{o.current&&o.current.seek(w)},[]),m=yt.useCallback(()=>{o.current&&o.current.seek(4)},[]),b=yt.useCallback(()=>{const w=o.current;return w?w.totalDuration():0},[]),_=()=>{o.current&&(o.current.pause(),ti(Oe.PAUSE))},y=()=>{o.current&&(o.current.resume(),ti(Oe.RESUME))};return Ze(Oe.SEEK_START,()=>{r(!0)}),Ze(Oe.SCRUBBER_PLAY,()=>{y()}),Ze(Oe.SCRUBBER_PAUSE,()=>{_()}),Ze(Oe.SCRUBBER_SEEK,w=>{v(w)}),Ze(Oe.SEEK_END,()=>{r(!1)}),Ze(Oe.REVERSE_MODE,()=>{f.current=!0}),Ze(Oe.REVERSE_MODE_END,()=>{f.current=!1}),Ze(Oe.SCRUBBER_PROGRESS_UPDATE,w=>{}),Vt.jsx(An.Provider,{value:{gsapCtx:l,tl:o,handlePlay:y,handlePause:_,handleReset:d,handleSeek:v,handleSeekTest:m,handleRestart:p,handleRepeat:c,playerTimeRef:u,isDragging:t,getTimelineDuration:b,totalDuration:n,setTotalDuration:i,reverseModeRef:f},children:e})},yy=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:o,onDoubleClick:l,uniqueId:u="",isText:f=!1})=>{const h=zr.utils.string2hex("#F3C409"),d=zr.utils.string2hex("#F3C409"),p=Tt.useRef({isDragging:!1}),c=300,v=Tt.useRef(0),m=Tt.useCallback(()=>{o&&!p.current.isDragging&&o(!0)},[o]),b=Tt.useCallback(()=>{o&&!p.current.isDragging&&o(!1)},[o]),_=Tt.useCallback(()=>{p.current.isDragging=!0;const T=new Date().getTime();T-v.current<c&&l&&l(),v.current=T},[]),y=Tt.useCallback(T=>{p.current.isDragging=!0,i&&i(T),ti(Oe.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[i]),w=Tt.useCallback(()=>{if(t.current===null)return;const T=t.current.x,x=t.current.y,E=t.current.width,I=t.current.height,A=t.current.rotation,O=[t.current.scale.x,t.current.scale.y],L=O[0]<0?-1:1,R=O[1]<0?-1:1;n&&(n({uniqueId:u,transformation:{x:Math.round(T),y:Math.round(x),width:Math.round(Math.max(5,E)),height:Math.round(Math.max(5,I)),rotation:A,scale:f?O:[L,R]}}),ti(Oe.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),p.current.isDragging=!1},[n]);return Tt.useEffect(()=>(e.current&&(e.current.on("mouseover",m),e.current.on("mouseout",b),e.current.on("mousedown",_)),()=>{e.current&&(e.current.off("mouseover",m),e.current.off("mouseout",b),e.current.off("mousedown",_))}),[]),Vt.jsx(ay.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:d},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:h,shape:"circle",radius:10},transformchange:y,transformcommit:w})};var _y=Object.prototype;function by(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_y;return e===r}var pc=by;function xy(e,t){return function(r){return e(t(r))}}var wy=xy,Ty=wy,Ey=Ty(Object.keys,Object),Sy=Ey,Ay=pc,Oy=Sy,Cy=Object.prototype,Ry=Cy.hasOwnProperty;function Iy(e){if(!Ay(e))return Oy(e);var t=[];for(var r in Object(e))Ry.call(e,r)&&r!="constructor"&&t.push(r);return t}var vc=Iy,Py=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,gc=Py,Ny=gc,My=typeof self=="object"&&self&&self.Object===Object&&self,ky=Ny||My||Function("return this")(),Mr=ky,Ly=Mr,Fy=Ly.Symbol,Gs=Fy,mc=Gs,yc=Object.prototype,By=yc.hasOwnProperty,Dy=yc.toString,Xi=mc?mc.toStringTag:void 0;function Uy(e){var t=By.call(e,Xi),r=e[Xi];try{e[Xi]=void 0;var n=!0}catch{}var i=Dy.call(e);return n&&(t?e[Xi]=r:delete e[Xi]),i}var $y=Uy,Gy=Object.prototype,jy=Gy.toString;function qy(e){return jy.call(e)}var zy=qy,_c=Gs,Hy=$y,Vy=zy,Wy="[object Null]",Xy="[object Undefined]",bc=_c?_c.toStringTag:void 0;function Ky(e){return e==null?e===void 0?Xy:Wy:bc&&bc in Object(e)?Hy(e):Vy(e)}var Ki=Ky;function Yy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yi=Yy,Zy=Ki,Qy=Yi,Jy="[object AsyncFunction]",t0="[object Function]",e0="[object GeneratorFunction]",r0="[object Proxy]";function n0(e){if(!Qy(e))return!1;var t=Zy(e);return t==t0||t==e0||t==Jy||t==r0}var xc=n0,i0=Mr,s0=i0["__core-js_shared__"],o0=s0,Ha=o0,wc=function(){var e=/[^.]+$/.exec(Ha&&Ha.keys&&Ha.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function a0(e){return!!wc&&wc in e}var l0=a0,u0=Function.prototype,f0=u0.toString;function c0(e){if(e!=null){try{return f0.call(e)}catch{}try{return e+""}catch{}}return""}var Tc=c0,h0=xc,d0=l0,p0=Yi,v0=Tc,g0=/[\\^$.*+?()[\]{}|]/g,m0=/^\[object .+?Constructor\]$/,y0=Function.prototype,_0=Object.prototype,b0=y0.toString,x0=_0.hasOwnProperty,w0=RegExp("^"+b0.call(x0).replace(g0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T0(e){if(!p0(e)||d0(e))return!1;var t=h0(e)?w0:m0;return t.test(v0(e))}var E0=T0;function S0(e,t){return e==null?void 0:e[t]}var A0=S0,O0=E0,C0=A0;function R0(e,t){var r=C0(e,t);return O0(r)?r:void 0}var ei=R0,I0=ei,P0=Mr,N0=I0(P0,"DataView"),M0=N0,k0=ei,L0=Mr,F0=k0(L0,"Map"),Va=F0,B0=ei,D0=Mr,U0=B0(D0,"Promise"),$0=U0,G0=ei,j0=Mr,q0=G0(j0,"Set"),z0=q0,H0=ei,V0=Mr,W0=H0(V0,"WeakMap"),X0=W0,Wa=M0,Xa=Va,Ka=$0,Ya=z0,Za=X0,Ec=Ki,ri=Tc,Sc="[object Map]",K0="[object Object]",Ac="[object Promise]",Oc="[object Set]",Cc="[object WeakMap]",Rc="[object DataView]",Y0=ri(Wa),Z0=ri(Xa),Q0=ri(Ka),J0=ri(Ya),t1=ri(Za),On=Ec;(Wa&&On(new Wa(new ArrayBuffer(1)))!=Rc||Xa&&On(new Xa)!=Sc||Ka&&On(Ka.resolve())!=Ac||Ya&&On(new Ya)!=Oc||Za&&On(new Za)!=Cc)&&(On=function(e){var t=Ec(e),r=t==K0?e.constructor:void 0,n=r?ri(r):"";if(n)switch(n){case Y0:return Rc;case Z0:return Sc;case Q0:return Ac;case J0:return Oc;case t1:return Cc}return t});var Ic=On;function e1(e){return e!=null&&typeof e=="object"}var Zi=e1,r1=Ki,n1=Zi,i1="[object Arguments]";function s1(e){return n1(e)&&r1(e)==i1}var o1=s1,Pc=o1,a1=Zi,Nc=Object.prototype,l1=Nc.hasOwnProperty,u1=Nc.propertyIsEnumerable,f1=Pc(function(){return arguments}())?Pc:function(e){return a1(e)&&l1.call(e,"callee")&&!u1.call(e,"callee")},Qa=f1,c1=Array.isArray,kr=c1,h1=9007199254740991;function d1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=h1}var Ja=d1,p1=xc,v1=Ja;function g1(e){return e!=null&&v1(e.length)&&!p1(e)}var js=g1,qs={exports:{}};function m1(){return!1}var y1=m1;qs.exports,function(e,t){var r=Mr,n=y1,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(qs,qs.exports);var tl=qs.exports,_1=Ki,b1=Ja,x1=Zi,w1="[object Arguments]",T1="[object Array]",E1="[object Boolean]",S1="[object Date]",A1="[object Error]",O1="[object Function]",C1="[object Map]",R1="[object Number]",I1="[object Object]",P1="[object RegExp]",N1="[object Set]",M1="[object String]",k1="[object WeakMap]",L1="[object ArrayBuffer]",F1="[object DataView]",B1="[object Float32Array]",D1="[object Float64Array]",U1="[object Int8Array]",$1="[object Int16Array]",G1="[object Int32Array]",j1="[object Uint8Array]",q1="[object Uint8ClampedArray]",z1="[object Uint16Array]",H1="[object Uint32Array]",ue={};ue[B1]=ue[D1]=ue[U1]=ue[$1]=ue[G1]=ue[j1]=ue[q1]=ue[z1]=ue[H1]=!0,ue[w1]=ue[T1]=ue[L1]=ue[E1]=ue[F1]=ue[S1]=ue[A1]=ue[O1]=ue[C1]=ue[R1]=ue[I1]=ue[P1]=ue[N1]=ue[M1]=ue[k1]=!1;function V1(e){return x1(e)&&b1(e.length)&&!!ue[_1(e)]}var W1=V1;function X1(e){return function(t){return e(t)}}var K1=X1,zs={exports:{}};zs.exports,function(e,t){var r=gc,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,l=o&&r.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}}();e.exports=u}(zs,zs.exports);var Y1=zs.exports,Z1=W1,Q1=K1,Mc=Y1,kc=Mc&&Mc.isTypedArray,J1=kc?Q1(kc):Z1,el=J1,t_=vc,e_=Ic,r_=Qa,n_=kr,i_=js,s_=tl,o_=pc,a_=el,l_="[object Map]",u_="[object Set]",f_=Object.prototype,c_=f_.hasOwnProperty;function h_(e){if(e==null)return!0;if(i_(e)&&(n_(e)||typeof e=="string"||typeof e.splice=="function"||s_(e)||a_(e)||r_(e)))return!e.length;var t=e_(e);if(t==l_||t==u_)return!e.size;if(o_(e))return!t_(e).length;for(var r in e)if(c_.call(e,r))return!1;return!0}var d_=h_;const rl=En(d_);var nl=(e=>(e.NONE="none",e.NORMAL="normal",e.LENSFLARE="lensflare",e.FILMSTRIP="filmstrip",e.GRUNGE="grunge",e.BRICKS="bricks",e))(nl||{});const Lc={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}},p_=e=>{const{overlay:t,width:r,height:n,x:i,y:o}=e,{src:l,blendmode:u}=Lc[t]||Lc.normal;return Vt.jsx(le.TilingSprite,{image:l,width:r,height:n,x:i,y:o,tilePosition:{x:0,y:0},tileScale:.5,alpha:.5,anchor:.5})},v_=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ni=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState(!1),[i,o]=yt.useState(!1),[l,u]=yt.useState(!1),f=yt.useRef(null),h=yt.useRef(null),d=yt.useRef(null),p=yt.useRef(null),{uniqueId:c,transformation:{x:v,y:m,width:b,height:_,scale:y=[1,1],rotation:w=0,effect:T,overlay:x},applyTransformer:E,disabled:I,pointerdown:A,pointerout:O,pointerover:L,isText:R,isDragging:C,isGif:P,onDoubleClick:M,isTextEditMode:F}=e;Ze(Oe.COMPLETE,()=>{f.current}),Tt.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Tt.useEffect(()=>{f.current&&n(!0)},[]);const q=Tt.useCallback(()=>{u(!0),L&&L()},[]),Z=Tt.useCallback(()=>{o(!0)},[]),z=Tt.useCallback(W=>{e.onAnchorTransformationEnd&&e.onAnchorTransformationEnd(W),o(!1)},[]),nt=le.withFilters(le.Container,{matrix:zr.filters.ColorMatrixFilter});return Vt.jsxs(le.Container,{ref:h,children:[Vt.jsxs(le.Container,{ref:f,position:[v,m],pivot:[v,m],width:b,height:_,scale:y,rotation:w,...!I&&!i&&!C&&{interactive:!0,buttonMode:!0,pointerdown:A,pointerover:L,pointerout:O},children:[!P&&Vt.jsx(nt,{scale:1,apply:({matrix:W})=>{T===Sn.BlackAndWhite?W.desaturate():T===Sn.Sepia?W.sepia():T===Sn.RetroVintage||T===Sn.NightVision?W.negative():T===Sn.Normal&&W.reset()},matrix:{enabled:!0,matrix:v_},children:Vt.jsx(le.Container,{ref:d,children:e.children})}),P&&Vt.jsx(le.Container,{ref:d,children:e.children}),!rl(x)&&x!==nl.NONE&&x!==nl.NORMAL&&Vt.jsx(p_,{overlay:x,width:b,height:_,x:v,y:m})]}),E&&!F&&Vt.jsx(yy,{pixiTransformerRef:p,imageRef:f,isMounted:r,transformCommit:z,transformChange:Z,mouseoverEvent:q,uniqueId:c,isText:R,onDoubleClick:M})]})});ni.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};var Cn=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(Cn||{}),Fc=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Fc||{}),il=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(il||{}),Rt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Rt||{}),an=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(an||{}),_t=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(_t||{}),ii=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(ii||{}),Xt=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Xt||{}),sl=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(sl||{}),Lr=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(Lr||{}),Qi=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Qi||{}),Rn=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(Rn||{}),ln=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(ln||{}),In=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(In||{}),ol=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(ol||{}),ar=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(ar||{}),Ee=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(Ee||{}),Te=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(Te||{}),Fr=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Fr||{});const Dt={ADAPTER:{createCanvas:(e,t)=>{const r=document.createElement("canvas");return r.width=e,r.height=t,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var al=/iPhone/i,Bc=/iPod/i,Dc=/iPad/i,Uc=/\biOS-universal(?:.+)Mac\b/i,ll=/\bAndroid(?:.+)Mobile\b/i,$c=/Android/i,si=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Hs=/Silk/i,Hr=/Windows Phone/i,Gc=/\bWindows(?:.+)ARM\b/i,jc=/BlackBerry/i,qc=/BB10/i,zc=/Opera Mini/i,Hc=/\b(CriOS|Chrome)(?:.+)Mobile/i,Vc=/Mobile(?:.+)Firefox\b/i,Wc=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function g_(e){return function(t){return t.test(e)}}function Xc(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var r=t.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=g_(r),o={apple:{phone:i(al)&&!i(Hr),ipod:i(Bc),tablet:!i(al)&&(i(Dc)||Wc(t))&&!i(Hr),universal:i(Uc),device:(i(al)||i(Bc)||i(Dc)||i(Uc)||Wc(t))&&!i(Hr)},amazon:{phone:i(si),tablet:!i(si)&&i(Hs),device:i(si)||i(Hs)},android:{phone:!i(Hr)&&i(si)||!i(Hr)&&i(ll),tablet:!i(Hr)&&!i(si)&&!i(ll)&&(i(Hs)||i($c)),device:!i(Hr)&&(i(si)||i(Hs)||i(ll)||i($c))||i(/\bokhttp\b/i)},windows:{phone:i(Hr),tablet:i(Gc),device:i(Hr)||i(Gc)},other:{blackberry:i(jc),blackberry10:i(qc),opera:i(zc),firefox:i(Vc),chrome:i(Hc),device:i(jc)||i(qc)||i(zc)||i(Vc)||i(Hc)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const oi=(Xc.default??Xc)(globalThis.navigator);Dt.RETINA_PREFIX=/@([0-9\.]+)x/,Dt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Kc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(f,h,d){this.fn=f,this.context=h,this.once=d||!1}function o(f,h,d,p,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,p||f,c),m=r?r+h:h;return f._events[m]?f._events[m].fn?f._events[m]=[f._events[m],v]:f._events[m].push(v):(f._events[m]=v,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new n:delete f._events[h]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var h=[],d,p;if(this._eventsCount===0)return h;for(p in d=this._events)t.call(d,p)&&h.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},u.prototype.listeners=function(h){var d=r?r+h:h,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var c=0,v=p.length,m=new Array(v);c<v;c++)m[c]=p[c].fn;return m},u.prototype.listenerCount=function(h){var d=r?r+h:h,p=this._events[d];return p?p.fn?1:p.length:0},u.prototype.emit=function(h,d,p,c,v,m){var b=r?r+h:h;if(!this._events[b])return!1;var _=this._events[b],y=arguments.length,w,T;if(_.fn){switch(_.once&&this.removeListener(h,_.fn,void 0,!0),y){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,d),!0;case 3:return _.fn.call(_.context,d,p),!0;case 4:return _.fn.call(_.context,d,p,c),!0;case 5:return _.fn.call(_.context,d,p,c,v),!0;case 6:return _.fn.call(_.context,d,p,c,v,m),!0}for(T=1,w=new Array(y-1);T<y;T++)w[T-1]=arguments[T];_.fn.apply(_.context,w)}else{var x=_.length,E;for(T=0;T<x;T++)switch(_[T].once&&this.removeListener(h,_[T].fn,void 0,!0),y){case 1:_[T].fn.call(_[T].context);break;case 2:_[T].fn.call(_[T].context,d);break;case 3:_[T].fn.call(_[T].context,d,p);break;case 4:_[T].fn.call(_[T].context,d,p,c);break;default:if(!w)for(E=1,w=new Array(y-1);E<y;E++)w[E-1]=arguments[E];_[T].fn.apply(_[T].context,w)}}return!0},u.prototype.on=function(h,d,p){return o(this,h,d,p,!1)},u.prototype.once=function(h,d,p){return o(this,h,d,p,!0)},u.prototype.removeListener=function(h,d,p,c){var v=r?r+h:h;if(!this._events[v])return this;if(!d)return l(this,v),this;var m=this._events[v];if(m.fn)m.fn===d&&(!c||m.once)&&(!p||m.context===p)&&l(this,v);else{for(var b=0,_=[],y=m.length;b<y;b++)(m[b].fn!==d||c&&!m[b].once||p&&m[b].context!==p)&&_.push(m[b]);_.length?this._events[v]=_.length===1?_[0]:_:l(this,v)}return this},u.prototype.removeAllListeners=function(h){var d;return h?(d=r?r+h:h,this._events[d]&&l(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Kc);var m_=Kc.exports;const Vs=En(m_);var ul={exports:{}};ul.exports=Ws,ul.exports.default=Ws;function Ws(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,o=Yc(e,0,i,r,!0),l=[];if(!o||o.next===o.prev)return l;var u,f,h,d,p,c,v;if(n&&(o=w_(e,t,o,r)),e.length>80*r){u=h=e[0],f=d=e[1];for(var m=r;m<i;m+=r)p=e[m],c=e[m+1],p<u&&(u=p),c<f&&(f=c),p>h&&(h=p),c>d&&(d=c);v=Math.max(h-u,d-f),v=v!==0?32767/v:0}return Ji(o,l,r,u,f,v,0),l}function Yc(e,t,r,n,i){var o,l;if(i===hl(e,t,r,n)>0)for(o=t;o<r;o+=n)l=Jc(o,e[o],e[o+1],l);else for(o=r-n;o>=t;o-=n)l=Jc(o,e[o],e[o+1],l);return l&&Xs(l,l.next)&&(es(l),l=l.next),l}function Pn(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Xs(r,r.next)||pe(r.prev,r,r.next)===0)){if(es(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Ji(e,t,r,n,i,o,l){if(e){!l&&o&&O_(e,n,i,o);for(var u=e,f,h;e.prev!==e.next;){if(f=e.prev,h=e.next,o?__(e,n,i,o):y_(e)){t.push(f.i/r|0),t.push(e.i/r|0),t.push(h.i/r|0),es(e),e=h.next,u=h.next;continue}if(e=h,e===u){l?l===1?(e=b_(Pn(e),t,r),Ji(e,t,r,n,i,o,2)):l===2&&x_(e,t,r,n,i,o):Ji(Pn(e),t,r,n,i,o,1);break}}}}function y_(e){var t=e.prev,r=e,n=e.next;if(pe(t,r,n)>=0)return!1;for(var i=t.x,o=r.x,l=n.x,u=t.y,f=r.y,h=n.y,d=i<o?i<l?i:l:o<l?o:l,p=u<f?u<h?u:h:f<h?f:h,c=i>o?i>l?i:l:o>l?o:l,v=u>f?u>h?u:h:f>h?f:h,m=n.next;m!==t;){if(m.x>=d&&m.x<=c&&m.y>=p&&m.y<=v&&ai(i,u,o,f,l,h,m.x,m.y)&&pe(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function __(e,t,r,n){var i=e.prev,o=e,l=e.next;if(pe(i,o,l)>=0)return!1;for(var u=i.x,f=o.x,h=l.x,d=i.y,p=o.y,c=l.y,v=u<f?u<h?u:h:f<h?f:h,m=d<p?d<c?d:c:p<c?p:c,b=u>f?u>h?u:h:f>h?f:h,_=d>p?d>c?d:c:p>c?p:c,y=fl(v,m,t,r,n),w=fl(b,_,t,r,n),T=e.prevZ,x=e.nextZ;T&&T.z>=y&&x&&x.z<=w;){if(T.x>=v&&T.x<=b&&T.y>=m&&T.y<=_&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&pe(T.prev,T,T.next)>=0||(T=T.prevZ,x.x>=v&&x.x<=b&&x.y>=m&&x.y<=_&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&pe(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;T&&T.z>=y;){if(T.x>=v&&T.x<=b&&T.y>=m&&T.y<=_&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&pe(T.prev,T,T.next)>=0)return!1;T=T.prevZ}for(;x&&x.z<=w;){if(x.x>=v&&x.x<=b&&x.y>=m&&x.y<=_&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&pe(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function b_(e,t,r){var n=e;do{var i=n.prev,o=n.next.next;!Xs(i,o)&&Zc(i,n,n.next,o)&&ts(i,o)&&ts(o,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(o.i/r|0),es(n),es(n.next),n=e=o),n=n.next}while(n!==e);return Pn(n)}function x_(e,t,r,n,i,o){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&I_(l,u)){var f=Qc(l,u);l=Pn(l,l.next),f=Pn(f,f.next),Ji(l,t,r,n,i,o,0),Ji(f,t,r,n,i,o,0);return}u=u.next}l=l.next}while(l!==e)}function w_(e,t,r,n){var i=[],o,l,u,f,h;for(o=0,l=t.length;o<l;o++)u=t[o]*n,f=o<l-1?t[o+1]*n:e.length,h=Yc(e,u,f,n,!1),h===h.next&&(h.steiner=!0),i.push(R_(h));for(i.sort(T_),o=0;o<i.length;o++)r=E_(i[o],r);return r}function T_(e,t){return e.x-t.x}function E_(e,t){var r=S_(e,t);if(!r)return t;var n=Qc(r,e);return Pn(n,n.next),Pn(r,r.next)}function S_(e,t){var r=t,n=e.x,i=e.y,o=-1/0,l;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>o&&(o=u,l=r.x<r.next.x?r:r.next,u===n))return l}r=r.next}while(r!==t);if(!l)return null;var f=l,h=l.x,d=l.y,p=1/0,c;r=l;do n>=r.x&&r.x>=h&&n!==r.x&&ai(i<d?n:o,i,h,d,i<d?o:n,i,r.x,r.y)&&(c=Math.abs(i-r.y)/(n-r.x),ts(r,e)&&(c<p||c===p&&(r.x>l.x||r.x===l.x&&A_(l,r)))&&(l=r,p=c)),r=r.next;while(r!==f);return l}function A_(e,t){return pe(e.prev,e,t.prev)<0&&pe(t.next,e,e.next)<0}function O_(e,t,r,n){var i=e;do i.z===0&&(i.z=fl(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,C_(i)}function C_(e){var t,r,n,i,o,l,u,f,h=1;do{for(r=e,e=null,o=null,l=0;r;){for(l++,n=r,u=0,t=0;t<h&&(u++,n=n.nextZ,!!n);t++);for(f=h;u>0||f>0&&n;)u!==0&&(f===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,f--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;r=n}o.nextZ=null,h*=2}while(l>1);return e}function fl(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function R_(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function ai(e,t,r,n,i,o,l,u){return(i-l)*(t-u)>=(e-l)*(o-u)&&(e-l)*(n-u)>=(r-l)*(t-u)&&(r-l)*(o-u)>=(i-l)*(n-u)}function I_(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!P_(e,t)&&(ts(e,t)&&ts(t,e)&&N_(e,t)&&(pe(e.prev,e,t.prev)||pe(e,t.prev,t))||Xs(e,t)&&pe(e.prev,e,e.next)>0&&pe(t.prev,t,t.next)>0)}function pe(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Xs(e,t){return e.x===t.x&&e.y===t.y}function Zc(e,t,r,n){var i=Ys(pe(e,t,r)),o=Ys(pe(e,t,n)),l=Ys(pe(r,n,e)),u=Ys(pe(r,n,t));return!!(i!==o&&l!==u||i===0&&Ks(e,r,t)||o===0&&Ks(e,n,t)||l===0&&Ks(r,e,n)||u===0&&Ks(r,t,n))}function Ks(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Ys(e){return e>0?1:e<0?-1:0}function P_(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Zc(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function ts(e,t){return pe(e.prev,e,e.next)<0?pe(e,t,e.next)>=0&&pe(e,e.prev,t)>=0:pe(e,t,e.prev)<0||pe(e,e.next,t)<0}function N_(e,t){var r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function Qc(e,t){var r=new cl(e.i,e.x,e.y),n=new cl(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function Jc(e,t,r,n){var i=new cl(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function es(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function cl(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Ws.deviation=function(e,t,r,n){var i=t&&t.length,o=i?t[0]*r:e.length,l=Math.abs(hl(e,0,o,r));if(i)for(var u=0,f=t.length;u<f;u++){var h=t[u]*r,d=u<f-1?t[u+1]*r:e.length;l-=Math.abs(hl(e,h,d,r))}var p=0;for(u=0;u<n.length;u+=3){var c=n[u]*r,v=n[u+1]*r,m=n[u+2]*r;p+=Math.abs((e[c]-e[m])*(e[v+1]-e[c+1])-(e[c]-e[v])*(e[m+1]-e[c+1]))}return l===0&&p===0?0:Math.abs((p-l)/l)};function hl(e,t,r,n){for(var i=0,o=t,l=r-n;o<r;o+=n)i+=(e[l]-e[o])*(e[o+1]+e[l+1]),l=o;return i}Ws.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var l=0;l<t;l++)r.vertices.push(e[i][o][l]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var M_=ul.exports;const k_=En(M_);var Zs={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Zs.exports,function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Ye=="object"&&Ye;(o.global===o||o.window===o||o.self===o)&&(r=o);var l,u=2147483647,f=36,h=1,d=26,p=38,c=700,v=72,m=128,b="-",_=/^xn--/,y=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,E=Math.floor,I=String.fromCharCode,A;function O(U){throw new RangeError(T[U])}function L(U,k){for(var G=U.length,j=[];G--;)j[G]=k(U[G]);return j}function R(U,k){var G=U.split("@"),j="";G.length>1&&(j=G[0]+"@",U=G[1]),U=U.replace(w,".");var V=U.split("."),X=L(V,k).join(".");return j+X}function C(U){for(var k=[],G=0,j=U.length,V,X;G<j;)V=U.charCodeAt(G++),V>=55296&&V<=56319&&G<j?(X=U.charCodeAt(G++),(X&64512)==56320?k.push(((V&1023)<<10)+(X&1023)+65536):(k.push(V),G--)):k.push(V);return k}function P(U){return L(U,function(k){var G="";return k>65535&&(k-=65536,G+=I(k>>>10&1023|55296),k=56320|k&1023),G+=I(k),G}).join("")}function M(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:f}function F(U,k){return U+22+75*(U<26)-((k!=0)<<5)}function q(U,k,G){var j=0;for(U=G?E(U/c):U>>1,U+=E(U/k);U>x*d>>1;j+=f)U=E(U/x);return E(j+(x+1)*U/(U+p))}function Z(U){var k=[],G=U.length,j,V=0,X=m,$=v,K,tt,Q,it,lt,pt,vt,xt,At;for(K=U.lastIndexOf(b),K<0&&(K=0),tt=0;tt<K;++tt)U.charCodeAt(tt)>=128&&O("not-basic"),k.push(U.charCodeAt(tt));for(Q=K>0?K+1:0;Q<G;){for(it=V,lt=1,pt=f;Q>=G&&O("invalid-input"),vt=M(U.charCodeAt(Q++)),(vt>=f||vt>E((u-V)/lt))&&O("overflow"),V+=vt*lt,xt=pt<=$?h:pt>=$+d?d:pt-$,!(vt<xt);pt+=f)At=f-xt,lt>E(u/At)&&O("overflow"),lt*=At;j=k.length+1,$=q(V-it,j,it==0),E(V/j)>u-X&&O("overflow"),X+=E(V/j),V%=j,k.splice(V++,0,X)}return P(k)}function z(U){var k,G,j,V,X,$,K,tt,Q,it,lt,pt=[],vt,xt,At,oe;for(U=C(U),vt=U.length,k=m,G=0,X=v,$=0;$<vt;++$)lt=U[$],lt<128&&pt.push(I(lt));for(j=V=pt.length,V&&pt.push(b);j<vt;){for(K=u,$=0;$<vt;++$)lt=U[$],lt>=k&<<K&&(K=lt);for(xt=j+1,K-k>E((u-G)/xt)&&O("overflow"),G+=(K-k)*xt,k=K,$=0;$<vt;++$)if(lt=U[$],lt<k&&++G>u&&O("overflow"),lt==k){for(tt=G,Q=f;it=Q<=X?h:Q>=X+d?d:Q-X,!(tt<it);Q+=f)oe=tt-it,At=f-it,pt.push(I(F(it+oe%At,0))),tt=E(oe/At);pt.push(I(F(tt,0))),X=q(G,xt,j==V),G=0,++j}++G,++k}return pt.join("")}function nt(U){return R(U,function(k){return _.test(k)?Z(k.slice(4).toLowerCase()):k})}function W(U){return R(U,function(k){return y.test(k)?"xn--"+z(k):k})}if(l={version:"1.4.1",ucs2:{decode:C,encode:P},decode:Z,encode:z,toASCII:W,toUnicode:nt},n&&i)if(e.exports==n)i.exports=l;else for(A in l)l.hasOwnProperty(A)&&(n[A]=l[A]);else r.punycode=l})(Ye)}(Zs,Zs.exports);var L_=Zs.exports,F_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},th=typeof Symbol<"u"&&Symbol,B_=F_,D_=function(){return typeof th!="function"||typeof Symbol!="function"||typeof th("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:B_()},eh={foo:{}},U_=Object,$_=function(){return{__proto__:eh}.foo===eh.foo&&!({__proto__:null}instanceof U_)},G_="Function.prototype.bind called on incompatible ",dl=Array.prototype.slice,j_=Object.prototype.toString,q_="[object Function]",z_=function(t){var r=this;if(typeof r!="function"||j_.call(r)!==q_)throw new TypeError(G_+r);for(var n=dl.call(arguments,1),i,o=function(){if(this instanceof i){var d=r.apply(this,n.concat(dl.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(dl.call(arguments)))},l=Math.max(0,r.length-n.length),u=[],f=0;f<l;f++)u.push("$"+f);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var h=function(){};h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},H_=z_,pl=Function.prototype.bind||H_,V_=pl,W_=V_.call(Function.call,Object.prototype.hasOwnProperty),$t,li=SyntaxError,rh=Function,ui=TypeError,vl=function(e){try{return rh('"use strict"; return ('+e+").constructor;")()}catch{}},Nn=Object.getOwnPropertyDescriptor;if(Nn)try{Nn({},"")}catch{Nn=null}var gl=function(){throw new ui},X_=Nn?function(){try{return arguments.callee,gl}catch{try{return Nn(arguments,"callee").get}catch{return gl}}}():gl,fi=D_(),K_=$_(),Ce=Object.getPrototypeOf||(K_?function(e){return e.__proto__}:null),ci={},Y_=typeof Uint8Array>"u"||!Ce?$t:Ce(Uint8Array),Mn={"%AggregateError%":typeof AggregateError>"u"?$t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$t:ArrayBuffer,"%ArrayIteratorPrototype%":fi&&Ce?Ce([][Symbol.iterator]()):$t,"%AsyncFromSyncIteratorPrototype%":$t,"%AsyncFunction%":ci,"%AsyncGenerator%":ci,"%AsyncGeneratorFunction%":ci,"%AsyncIteratorPrototype%":ci,"%Atomics%":typeof Atomics>"u"?$t:Atomics,"%BigInt%":typeof BigInt>"u"?$t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?$t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$t:FinalizationRegistry,"%Function%":rh,"%GeneratorFunction%":ci,"%Int8Array%":typeof Int8Array>"u"?$t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fi&&Ce?Ce(Ce([][Symbol.iterator]())):$t,"%JSON%":typeof JSON=="object"?JSON:$t,"%Map%":typeof Map>"u"?$t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!fi||!Ce?$t:Ce(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$t:Promise,"%Proxy%":typeof Proxy>"u"?$t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?$t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!fi||!Ce?$t:Ce(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fi&&Ce?Ce(""[Symbol.iterator]()):$t,"%Symbol%":fi?Symbol:$t,"%SyntaxError%":li,"%ThrowTypeError%":X_,"%TypedArray%":Y_,"%TypeError%":ui,"%Uint8Array%":typeof Uint8Array>"u"?$t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?$t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$t:WeakSet};if(Ce)try{null.error}catch(e){var Z_=Ce(Ce(e));Mn["%Error.prototype%"]=Z_}var Q_=function e(t){var r;if(t==="%AsyncFunction%")r=vl("async function () {}");else if(t==="%GeneratorFunction%")r=vl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=vl("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ce&&(r=Ce(i.prototype))}return Mn[t]=r,r},nh={"%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"]},rs=pl,Qs=W_,J_=rs.call(Function.call,Array.prototype.concat),tb=rs.call(Function.apply,Array.prototype.splice),ih=rs.call(Function.call,String.prototype.replace),Js=rs.call(Function.call,String.prototype.slice),eb=rs.call(Function.call,RegExp.prototype.exec),rb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,nb=/\\(\\)?/g,ib=function(t){var r=Js(t,0,1),n=Js(t,-1);if(r==="%"&&n!=="%")throw new li("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new li("invalid intrinsic syntax, expected opening `%`");var i=[];return ih(t,rb,function(o,l,u,f){i[i.length]=u?ih(f,nb,"$1"):l||o}),i},sb=function(t,r){var n=t,i;if(Qs(nh,n)&&(i=nh[n],n="%"+i[0]+"%"),Qs(Mn,n)){var o=Mn[n];if(o===ci&&(o=Q_(n)),typeof o>"u"&&!r)throw new ui("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new li("intrinsic "+t+" does not exist!")},ml=function(t,r){if(typeof t!="string"||t.length===0)throw new ui("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ui('"allowMissing" argument must be a boolean');if(eb(/^%?[^%]*%?$/,t)===null)throw new li("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ib(t),i=n.length>0?n[0]:"",o=sb("%"+i+"%",r),l=o.name,u=o.value,f=!1,h=o.alias;h&&(i=h[0],tb(n,J_([0,1],h)));for(var d=1,p=!0;d<n.length;d+=1){var c=n[d],v=Js(c,0,1),m=Js(c,-1);if((v==='"'||v==="'"||v==="`"||m==='"'||m==="'"||m==="`")&&v!==m)throw new li("property names with quotes must have matching quotes");if((c==="constructor"||!p)&&(f=!0),i+="."+c,l="%"+i+"%",Qs(Mn,l))u=Mn[l];else if(u!=null){if(!(c in u)){if(!r)throw new ui("base intrinsic for "+t+" exists, but the property is not available.");return}if(Nn&&d+1>=n.length){var b=Nn(u,c);p=!!b,p&&"get"in b&&!("originalValue"in b.get)?u=b.get:u=u[c]}else p=Qs(u,c),u=u[c];p&&!f&&(Mn[l]=u)}}return u},sh={exports:{}};(function(e){var t=pl,r=ml,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||t.call(i,n),l=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),f=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(p){var c=o(t,i,arguments);if(l&&u){var v=l(c,"length");v.configurable&&u(c,"length",{value:1+f(0,p.length-(arguments.length-1))})}return c};var h=function(){return o(t,n,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h})(sh);var ob=sh.exports,oh=ml,ah=ob,ab=ah(oh("String.prototype.indexOf")),lb=function(t,r){var n=oh(t,!!r);return typeof n=="function"&&ab(t,".prototype.")>-1?ah(n):n};const ub=uy(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var yl=typeof Map=="function"&&Map.prototype,_l=Object.getOwnPropertyDescriptor&&yl?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,to=yl&&_l&&typeof _l.get=="function"?_l.get:null,lh=yl&&Map.prototype.forEach,bl=typeof Set=="function"&&Set.prototype,xl=Object.getOwnPropertyDescriptor&&bl?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,eo=bl&&xl&&typeof xl.get=="function"?xl.get:null,uh=bl&&Set.prototype.forEach,fb=typeof WeakMap=="function"&&WeakMap.prototype,ns=fb?WeakMap.prototype.has:null,cb=typeof WeakSet=="function"&&WeakSet.prototype,is=cb?WeakSet.prototype.has:null,hb=typeof WeakRef=="function"&&WeakRef.prototype,fh=hb?WeakRef.prototype.deref:null,db=Boolean.prototype.valueOf,pb=Object.prototype.toString,vb=Function.prototype.toString,gb=String.prototype.match,wl=String.prototype.slice,un=String.prototype.replace,mb=String.prototype.toUpperCase,ch=String.prototype.toLowerCase,hh=RegExp.prototype.test,dh=Array.prototype.concat,Br=Array.prototype.join,yb=Array.prototype.slice,ph=Math.floor,Tl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,El=Object.getOwnPropertySymbols,Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hi||"symbol")?Symbol.toStringTag:null,vh=Object.prototype.propertyIsEnumerable,gh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mh(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||hh.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-ph(-e):ph(e);if(n!==e){var i=String(n),o=wl.call(t,i.length+1);return un.call(i,r,"$&_")+"."+un.call(un.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return un.call(t,r,"$&_")}var Al=ub,yh=Al.custom,_h=wh(yh)?yh:null,_b=function e(t,r,n,i){var o=r||{};if(fn(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fn(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=fn(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fn(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fn(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Eh(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var f=String(t);return u?mh(t,f):f}if(typeof t=="bigint"){var h=String(t)+"n";return u?mh(t,h):h}var d=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Ol(t)?"[Array]":"[Object]";var p=Bb(o,n);if(typeof i>"u")i=[];else if(Th(i,t)>=0)return"[Circular]";function c(M,F,q){if(F&&(i=yb.call(i),i.push(F)),q){var Z={depth:o.depth};return fn(o,"quoteStyle")&&(Z.quoteStyle=o.quoteStyle),e(M,Z,n+1,i)}return e(M,o,n+1,i)}if(typeof t=="function"&&!xh(t)){var v=Cb(t),m=ro(t,c);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(m.length>0?" { "+Br.call(m,", ")+" }":"")}if(wh(t)){var b=hi?un.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Sl.call(t);return typeof t=="object"&&!hi?ss(b):b}if(kb(t)){for(var _="<"+ch.call(String(t.nodeName)),y=t.attributes||[],w=0;w<y.length;w++)_+=" "+y[w].name+"="+bh(bb(y[w].value),"double",o);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+ch.call(String(t.nodeName))+">",_}if(Ol(t)){if(t.length===0)return"[]";var T=ro(t,c);return p&&!Fb(T)?"["+Rl(T,p)+"]":"[ "+Br.call(T,", ")+" ]"}if(wb(t)){var x=ro(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!vh.call(t,"cause")?"{ ["+String(t)+"] "+Br.call(dh.call("[cause]: "+c(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Br.call(x,", ")+" }"}if(typeof t=="object"&&l){if(_h&&typeof t[_h]=="function"&&Al)return Al(t,{depth:d-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Rb(t)){var E=[];return lh&&lh.call(t,function(M,F){E.push(c(F,t,!0)+" => "+c(M,t))}),Sh("Map",to.call(t),E,p)}if(Nb(t)){var I=[];return uh&&uh.call(t,function(M){I.push(c(M,t))}),Sh("Set",eo.call(t),I,p)}if(Ib(t))return Cl("WeakMap");if(Mb(t))return Cl("WeakSet");if(Pb(t))return Cl("WeakRef");if(Eb(t))return ss(c(Number(t)));if(Ab(t))return ss(c(Tl.call(t)));if(Sb(t))return ss(db.call(t));if(Tb(t))return ss(c(String(t)));if(!xb(t)&&!xh(t)){var A=ro(t,c),O=gh?gh(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",R=!O&&Le&&Object(t)===t&&Le in t?wl.call(cn(t),8,-1):L?"Object":"",C=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",P=C+(R||L?"["+Br.call(dh.call([],R||[],L||[]),": ")+"] ":"");return A.length===0?P+"{}":p?P+"{"+Rl(A,p)+"}":P+"{ "+Br.call(A,", ")+" }"}return String(t)};function bh(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function bb(e){return un.call(String(e),/"/g,""")}function Ol(e){return cn(e)==="[object Array]"&&(!Le||!(typeof e=="object"&&Le in e))}function xb(e){return cn(e)==="[object Date]"&&(!Le||!(typeof e=="object"&&Le in e))}function xh(e){return cn(e)==="[object RegExp]"&&(!Le||!(typeof e=="object"&&Le in e))}function wb(e){return cn(e)==="[object Error]"&&(!Le||!(typeof e=="object"&&Le in e))}function Tb(e){return cn(e)==="[object String]"&&(!Le||!(typeof e=="object"&&Le in e))}function Eb(e){return cn(e)==="[object Number]"&&(!Le||!(typeof e=="object"&&Le in e))}function Sb(e){return cn(e)==="[object Boolean]"&&(!Le||!(typeof e=="object"&&Le in e))}function wh(e){if(hi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Sl)return!1;try{return Sl.call(e),!0}catch{}return!1}function Ab(e){if(!e||typeof e!="object"||!Tl)return!1;try{return Tl.call(e),!0}catch{}return!1}var Ob=Object.prototype.hasOwnProperty||function(e){return e in this};function fn(e,t){return Ob.call(e,t)}function cn(e){return pb.call(e)}function Cb(e){if(e.name)return e.name;var t=gb.call(vb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Th(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Rb(e){if(!to||!e||typeof e!="object")return!1;try{to.call(e);try{eo.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Ib(e){if(!ns||!e||typeof e!="object")return!1;try{ns.call(e,ns);try{is.call(e,is)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Pb(e){if(!fh||!e||typeof e!="object")return!1;try{return fh.call(e),!0}catch{}return!1}function Nb(e){if(!eo||!e||typeof e!="object")return!1;try{eo.call(e);try{to.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Mb(e){if(!is||!e||typeof e!="object")return!1;try{is.call(e,is);try{ns.call(e,ns)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function kb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Eh(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Eh(wl.call(e,0,t.maxStringLength),t)+n}var i=un.call(un.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Lb);return bh(i,"single",t)}function Lb(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+mb.call(t.toString(16))}function ss(e){return"Object("+e+")"}function Cl(e){return e+" { ? }"}function Sh(e,t,r,n){var i=n?Rl(r,n):Br.call(r,", ");return e+" ("+t+") {"+i+"}"}function Fb(e){for(var t=0;t<e.length;t++)if(Th(e[t],`
|
|
9
|
+
*/var fy=yt,cy=Symbol.for("react.element"),hy=Symbol.for("react.fragment"),dy=Object.prototype.hasOwnProperty,py=fy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vy={key:!0,ref:!0,__self:!0,__source:!0};function cc(e,t,r){var n,i={},o=null,l=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)dy.call(t,n)&&!vy.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:cy,type:e,key:o,ref:l,props:i,_owner:py.current}}$s.Fragment=hy,$s.jsx=cc,$s.jsxs=cc,fc.exports=$s;var Vt=fc.exports,Sn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Sn||{});let hc;function dc(){return hc=document.body,hc}function Ze(e,t,r){let n;return yt.useEffect(()=>{n=n||dc();const i=o=>{const l=o.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function ti(e,t){const r=dc(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function gy(){let e;function t(r){e=r}return t.emit=function(r,n){const i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}const An=Tt.createContext({}),Oe={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",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END",REVERSE_MODE_START:"REVERSE_MODE_START",REVERSE_MODE_END:"REVERSE_MODE_END"},my=({children:e})=>{const[t,r]=yt.useState(!1),[n,i]=yt.useState(0),o=yt.useRef(),l=yt.useRef(),u=yt.useRef(.001),f=yt.useRef(!1);yt.useLayoutEffect(()=>(l.current=_e.context(()=>{o.current&&o.current.progress(0).kill(),o.current&&o.current.clear(),o.current&&_e.killTweensOf(o.current),o.current=_e.timeline({paused:!0,defaults:{duration:0}})}),()=>{o.current&&(o.current.progress(0).kill(),_e.killTweensOf(o.current)),l.current.revert()}),[]);const h=yt.useCallback(()=>{if(o.current){let T=o.current.time();T<u.current?f.current=!0:f.current=!1,u.current=T}},[]);yt.useEffect(()=>{if(o.current){const w=o.current;w.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){w.pause(),h()}).eventCallback("onUpdate",function(){h()}).eventCallback("onComplete",function(){w.pause(),w.revert(),ti(Oe.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),h()})}},[]);const d=yt.useCallback(()=>{o.current&&o.current.revert()},[]),p=yt.useCallback(()=>{o.current&&o.current.restart()},[]),c=yt.useCallback(()=>{if(o.current){const w=o.current;w.repeat(1),w.restart()}},[]),v=yt.useCallback(w=>{o.current&&o.current.seek(w)},[]),m=yt.useCallback(()=>{o.current&&o.current.seek(4)},[]),b=yt.useCallback(()=>{const w=o.current;return w?w.totalDuration():0},[]),_=()=>{o.current&&(o.current.pause(),ti(Oe.PAUSE))},y=()=>{o.current&&(o.current.resume(),ti(Oe.RESUME))};return Ze(Oe.SEEK_START,()=>{r(!0)}),Ze(Oe.SCRUBBER_PLAY,()=>{y()}),Ze(Oe.SCRUBBER_PAUSE,()=>{_()}),Ze(Oe.SCRUBBER_SEEK,w=>{v(w)}),Ze(Oe.SEEK_END,()=>{r(!1)}),Ze(Oe.REVERSE_MODE_START,()=>{f.current=!0}),Ze(Oe.REVERSE_MODE_END,()=>{f.current=!1}),Ze(Oe.SCRUBBER_PROGRESS_UPDATE,w=>{}),Vt.jsx(An.Provider,{value:{gsapCtx:l,tl:o,handlePlay:y,handlePause:_,handleReset:d,handleSeek:v,handleSeekTest:m,handleRestart:p,handleRepeat:c,playerTimeRef:u,isDragging:t,getTimelineDuration:b,totalDuration:n,setTotalDuration:i,reverseModeRef:f},children:e})},yy=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:o,onDoubleClick:l,uniqueId:u="",isText:f=!1})=>{const h=zr.utils.string2hex("#F3C409"),d=zr.utils.string2hex("#F3C409"),p=Tt.useRef({isDragging:!1}),c=300,v=Tt.useRef(0),m=Tt.useCallback(()=>{o&&!p.current.isDragging&&o(!0)},[o]),b=Tt.useCallback(()=>{o&&!p.current.isDragging&&o(!1)},[o]),_=Tt.useCallback(()=>{p.current.isDragging=!0;const T=new Date().getTime();T-v.current<c&&l&&l(),v.current=T},[]),y=Tt.useCallback(T=>{p.current.isDragging=!0,i&&i(T),ti(Oe.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[i]),w=Tt.useCallback(()=>{if(t.current===null)return;const T=t.current.x,x=t.current.y,E=t.current.width,I=t.current.height,A=t.current.rotation,O=[t.current.scale.x,t.current.scale.y],L=O[0]<0?-1:1,R=O[1]<0?-1:1;n&&(n({uniqueId:u,transformation:{x:Math.round(T),y:Math.round(x),width:Math.round(Math.max(5,E)),height:Math.round(Math.max(5,I)),rotation:A,scale:f?O:[L,R]}}),ti(Oe.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),p.current.isDragging=!1},[n]);return Tt.useEffect(()=>(e.current&&(e.current.on("mouseover",m),e.current.on("mouseout",b),e.current.on("mousedown",_)),()=>{e.current&&(e.current.off("mouseover",m),e.current.off("mouseout",b),e.current.off("mousedown",_))}),[]),Vt.jsx(ay.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:d},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:h,shape:"circle",radius:10},transformchange:y,transformcommit:w})};var _y=Object.prototype;function by(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_y;return e===r}var pc=by;function xy(e,t){return function(r){return e(t(r))}}var wy=xy,Ty=wy,Ey=Ty(Object.keys,Object),Sy=Ey,Ay=pc,Oy=Sy,Cy=Object.prototype,Ry=Cy.hasOwnProperty;function Iy(e){if(!Ay(e))return Oy(e);var t=[];for(var r in Object(e))Ry.call(e,r)&&r!="constructor"&&t.push(r);return t}var vc=Iy,Py=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,gc=Py,Ny=gc,My=typeof self=="object"&&self&&self.Object===Object&&self,ky=Ny||My||Function("return this")(),Mr=ky,Ly=Mr,Fy=Ly.Symbol,Gs=Fy,mc=Gs,yc=Object.prototype,By=yc.hasOwnProperty,Dy=yc.toString,Xi=mc?mc.toStringTag:void 0;function Uy(e){var t=By.call(e,Xi),r=e[Xi];try{e[Xi]=void 0;var n=!0}catch{}var i=Dy.call(e);return n&&(t?e[Xi]=r:delete e[Xi]),i}var $y=Uy,Gy=Object.prototype,jy=Gy.toString;function qy(e){return jy.call(e)}var zy=qy,_c=Gs,Hy=$y,Vy=zy,Wy="[object Null]",Xy="[object Undefined]",bc=_c?_c.toStringTag:void 0;function Ky(e){return e==null?e===void 0?Xy:Wy:bc&&bc in Object(e)?Hy(e):Vy(e)}var Ki=Ky;function Yy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yi=Yy,Zy=Ki,Qy=Yi,Jy="[object AsyncFunction]",t0="[object Function]",e0="[object GeneratorFunction]",r0="[object Proxy]";function n0(e){if(!Qy(e))return!1;var t=Zy(e);return t==t0||t==e0||t==Jy||t==r0}var xc=n0,i0=Mr,s0=i0["__core-js_shared__"],o0=s0,Ha=o0,wc=function(){var e=/[^.]+$/.exec(Ha&&Ha.keys&&Ha.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function a0(e){return!!wc&&wc in e}var l0=a0,u0=Function.prototype,f0=u0.toString;function c0(e){if(e!=null){try{return f0.call(e)}catch{}try{return e+""}catch{}}return""}var Tc=c0,h0=xc,d0=l0,p0=Yi,v0=Tc,g0=/[\\^$.*+?()[\]{}|]/g,m0=/^\[object .+?Constructor\]$/,y0=Function.prototype,_0=Object.prototype,b0=y0.toString,x0=_0.hasOwnProperty,w0=RegExp("^"+b0.call(x0).replace(g0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T0(e){if(!p0(e)||d0(e))return!1;var t=h0(e)?w0:m0;return t.test(v0(e))}var E0=T0;function S0(e,t){return e==null?void 0:e[t]}var A0=S0,O0=E0,C0=A0;function R0(e,t){var r=C0(e,t);return O0(r)?r:void 0}var ei=R0,I0=ei,P0=Mr,N0=I0(P0,"DataView"),M0=N0,k0=ei,L0=Mr,F0=k0(L0,"Map"),Va=F0,B0=ei,D0=Mr,U0=B0(D0,"Promise"),$0=U0,G0=ei,j0=Mr,q0=G0(j0,"Set"),z0=q0,H0=ei,V0=Mr,W0=H0(V0,"WeakMap"),X0=W0,Wa=M0,Xa=Va,Ka=$0,Ya=z0,Za=X0,Ec=Ki,ri=Tc,Sc="[object Map]",K0="[object Object]",Ac="[object Promise]",Oc="[object Set]",Cc="[object WeakMap]",Rc="[object DataView]",Y0=ri(Wa),Z0=ri(Xa),Q0=ri(Ka),J0=ri(Ya),t1=ri(Za),On=Ec;(Wa&&On(new Wa(new ArrayBuffer(1)))!=Rc||Xa&&On(new Xa)!=Sc||Ka&&On(Ka.resolve())!=Ac||Ya&&On(new Ya)!=Oc||Za&&On(new Za)!=Cc)&&(On=function(e){var t=Ec(e),r=t==K0?e.constructor:void 0,n=r?ri(r):"";if(n)switch(n){case Y0:return Rc;case Z0:return Sc;case Q0:return Ac;case J0:return Oc;case t1:return Cc}return t});var Ic=On;function e1(e){return e!=null&&typeof e=="object"}var Zi=e1,r1=Ki,n1=Zi,i1="[object Arguments]";function s1(e){return n1(e)&&r1(e)==i1}var o1=s1,Pc=o1,a1=Zi,Nc=Object.prototype,l1=Nc.hasOwnProperty,u1=Nc.propertyIsEnumerable,f1=Pc(function(){return arguments}())?Pc:function(e){return a1(e)&&l1.call(e,"callee")&&!u1.call(e,"callee")},Qa=f1,c1=Array.isArray,kr=c1,h1=9007199254740991;function d1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=h1}var Ja=d1,p1=xc,v1=Ja;function g1(e){return e!=null&&v1(e.length)&&!p1(e)}var js=g1,qs={exports:{}};function m1(){return!1}var y1=m1;qs.exports,function(e,t){var r=Mr,n=y1,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(qs,qs.exports);var tl=qs.exports,_1=Ki,b1=Ja,x1=Zi,w1="[object Arguments]",T1="[object Array]",E1="[object Boolean]",S1="[object Date]",A1="[object Error]",O1="[object Function]",C1="[object Map]",R1="[object Number]",I1="[object Object]",P1="[object RegExp]",N1="[object Set]",M1="[object String]",k1="[object WeakMap]",L1="[object ArrayBuffer]",F1="[object DataView]",B1="[object Float32Array]",D1="[object Float64Array]",U1="[object Int8Array]",$1="[object Int16Array]",G1="[object Int32Array]",j1="[object Uint8Array]",q1="[object Uint8ClampedArray]",z1="[object Uint16Array]",H1="[object Uint32Array]",ue={};ue[B1]=ue[D1]=ue[U1]=ue[$1]=ue[G1]=ue[j1]=ue[q1]=ue[z1]=ue[H1]=!0,ue[w1]=ue[T1]=ue[L1]=ue[E1]=ue[F1]=ue[S1]=ue[A1]=ue[O1]=ue[C1]=ue[R1]=ue[I1]=ue[P1]=ue[N1]=ue[M1]=ue[k1]=!1;function V1(e){return x1(e)&&b1(e.length)&&!!ue[_1(e)]}var W1=V1;function X1(e){return function(t){return e(t)}}var K1=X1,zs={exports:{}};zs.exports,function(e,t){var r=gc,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,l=o&&r.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}}();e.exports=u}(zs,zs.exports);var Y1=zs.exports,Z1=W1,Q1=K1,Mc=Y1,kc=Mc&&Mc.isTypedArray,J1=kc?Q1(kc):Z1,el=J1,t_=vc,e_=Ic,r_=Qa,n_=kr,i_=js,s_=tl,o_=pc,a_=el,l_="[object Map]",u_="[object Set]",f_=Object.prototype,c_=f_.hasOwnProperty;function h_(e){if(e==null)return!0;if(i_(e)&&(n_(e)||typeof e=="string"||typeof e.splice=="function"||s_(e)||a_(e)||r_(e)))return!e.length;var t=e_(e);if(t==l_||t==u_)return!e.size;if(o_(e))return!t_(e).length;for(var r in e)if(c_.call(e,r))return!1;return!0}var d_=h_;const rl=En(d_);var nl=(e=>(e.NONE="none",e.NORMAL="normal",e.LENSFLARE="lensflare",e.FILMSTRIP="filmstrip",e.GRUNGE="grunge",e.BRICKS="bricks",e))(nl||{});const Lc={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}},p_=e=>{const{overlay:t,width:r,height:n,x:i,y:o}=e,{src:l,blendmode:u}=Lc[t]||Lc.normal;return Vt.jsx(le.TilingSprite,{image:l,width:r,height:n,x:i,y:o,tilePosition:{x:0,y:0},tileScale:.5,alpha:.5,anchor:.5})},v_=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ni=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState(!1),[i,o]=yt.useState(!1),[l,u]=yt.useState(!1),f=yt.useRef(null),h=yt.useRef(null),d=yt.useRef(null),p=yt.useRef(null),{uniqueId:c,transformation:{x:v,y:m,width:b,height:_,scale:y=[1,1],rotation:w=0,effect:T,overlay:x},applyTransformer:E,disabled:I,pointerdown:A,pointerout:O,pointerover:L,isText:R,isDragging:C,isGif:P,onDoubleClick:M,isTextEditMode:F}=e;Ze(Oe.COMPLETE,()=>{f.current}),Tt.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Tt.useEffect(()=>{f.current&&n(!0)},[]);const q=Tt.useCallback(()=>{u(!0),L&&L()},[]),Z=Tt.useCallback(()=>{o(!0)},[]),z=Tt.useCallback(W=>{e.onAnchorTransformationEnd&&e.onAnchorTransformationEnd(W),o(!1)},[]),nt=le.withFilters(le.Container,{matrix:zr.filters.ColorMatrixFilter});return Vt.jsxs(le.Container,{ref:h,children:[Vt.jsxs(le.Container,{ref:f,position:[v,m],pivot:[v,m],width:b,height:_,scale:y,rotation:w,...!I&&!i&&!C&&{interactive:!0,buttonMode:!0,pointerdown:A,pointerover:L,pointerout:O},children:[!P&&Vt.jsx(nt,{scale:1,apply:({matrix:W})=>{T===Sn.BlackAndWhite?W.desaturate():T===Sn.Sepia?W.sepia():T===Sn.RetroVintage||T===Sn.NightVision?W.negative():T===Sn.Normal&&W.reset()},matrix:{enabled:!0,matrix:v_},children:Vt.jsx(le.Container,{ref:d,children:e.children})}),P&&Vt.jsx(le.Container,{ref:d,children:e.children}),!rl(x)&&x!==nl.NONE&&x!==nl.NORMAL&&Vt.jsx(p_,{overlay:x,width:b,height:_,x:v,y:m})]}),E&&!F&&Vt.jsx(yy,{pixiTransformerRef:p,imageRef:f,isMounted:r,transformCommit:z,transformChange:Z,mouseoverEvent:q,uniqueId:c,isText:R,onDoubleClick:M})]})});ni.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};var Cn=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(Cn||{}),Fc=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Fc||{}),il=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(il||{}),Rt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Rt||{}),an=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(an||{}),_t=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(_t||{}),ii=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(ii||{}),Xt=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Xt||{}),sl=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(sl||{}),Lr=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(Lr||{}),Qi=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Qi||{}),Rn=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(Rn||{}),ln=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(ln||{}),In=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(In||{}),ol=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(ol||{}),ar=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(ar||{}),Ee=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(Ee||{}),Te=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(Te||{}),Fr=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Fr||{});const Dt={ADAPTER:{createCanvas:(e,t)=>{const r=document.createElement("canvas");return r.width=e,r.height=t,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var al=/iPhone/i,Bc=/iPod/i,Dc=/iPad/i,Uc=/\biOS-universal(?:.+)Mac\b/i,ll=/\bAndroid(?:.+)Mobile\b/i,$c=/Android/i,si=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Hs=/Silk/i,Hr=/Windows Phone/i,Gc=/\bWindows(?:.+)ARM\b/i,jc=/BlackBerry/i,qc=/BB10/i,zc=/Opera Mini/i,Hc=/\b(CriOS|Chrome)(?:.+)Mobile/i,Vc=/Mobile(?:.+)Firefox\b/i,Wc=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function g_(e){return function(t){return t.test(e)}}function Xc(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var r=t.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=g_(r),o={apple:{phone:i(al)&&!i(Hr),ipod:i(Bc),tablet:!i(al)&&(i(Dc)||Wc(t))&&!i(Hr),universal:i(Uc),device:(i(al)||i(Bc)||i(Dc)||i(Uc)||Wc(t))&&!i(Hr)},amazon:{phone:i(si),tablet:!i(si)&&i(Hs),device:i(si)||i(Hs)},android:{phone:!i(Hr)&&i(si)||!i(Hr)&&i(ll),tablet:!i(Hr)&&!i(si)&&!i(ll)&&(i(Hs)||i($c)),device:!i(Hr)&&(i(si)||i(Hs)||i(ll)||i($c))||i(/\bokhttp\b/i)},windows:{phone:i(Hr),tablet:i(Gc),device:i(Hr)||i(Gc)},other:{blackberry:i(jc),blackberry10:i(qc),opera:i(zc),firefox:i(Vc),chrome:i(Hc),device:i(jc)||i(qc)||i(zc)||i(Vc)||i(Hc)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const oi=(Xc.default??Xc)(globalThis.navigator);Dt.RETINA_PREFIX=/@([0-9\.]+)x/,Dt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Kc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(f,h,d){this.fn=f,this.context=h,this.once=d||!1}function o(f,h,d,p,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,p||f,c),m=r?r+h:h;return f._events[m]?f._events[m].fn?f._events[m]=[f._events[m],v]:f._events[m].push(v):(f._events[m]=v,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new n:delete f._events[h]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var h=[],d,p;if(this._eventsCount===0)return h;for(p in d=this._events)t.call(d,p)&&h.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},u.prototype.listeners=function(h){var d=r?r+h:h,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var c=0,v=p.length,m=new Array(v);c<v;c++)m[c]=p[c].fn;return m},u.prototype.listenerCount=function(h){var d=r?r+h:h,p=this._events[d];return p?p.fn?1:p.length:0},u.prototype.emit=function(h,d,p,c,v,m){var b=r?r+h:h;if(!this._events[b])return!1;var _=this._events[b],y=arguments.length,w,T;if(_.fn){switch(_.once&&this.removeListener(h,_.fn,void 0,!0),y){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,d),!0;case 3:return _.fn.call(_.context,d,p),!0;case 4:return _.fn.call(_.context,d,p,c),!0;case 5:return _.fn.call(_.context,d,p,c,v),!0;case 6:return _.fn.call(_.context,d,p,c,v,m),!0}for(T=1,w=new Array(y-1);T<y;T++)w[T-1]=arguments[T];_.fn.apply(_.context,w)}else{var x=_.length,E;for(T=0;T<x;T++)switch(_[T].once&&this.removeListener(h,_[T].fn,void 0,!0),y){case 1:_[T].fn.call(_[T].context);break;case 2:_[T].fn.call(_[T].context,d);break;case 3:_[T].fn.call(_[T].context,d,p);break;case 4:_[T].fn.call(_[T].context,d,p,c);break;default:if(!w)for(E=1,w=new Array(y-1);E<y;E++)w[E-1]=arguments[E];_[T].fn.apply(_[T].context,w)}}return!0},u.prototype.on=function(h,d,p){return o(this,h,d,p,!1)},u.prototype.once=function(h,d,p){return o(this,h,d,p,!0)},u.prototype.removeListener=function(h,d,p,c){var v=r?r+h:h;if(!this._events[v])return this;if(!d)return l(this,v),this;var m=this._events[v];if(m.fn)m.fn===d&&(!c||m.once)&&(!p||m.context===p)&&l(this,v);else{for(var b=0,_=[],y=m.length;b<y;b++)(m[b].fn!==d||c&&!m[b].once||p&&m[b].context!==p)&&_.push(m[b]);_.length?this._events[v]=_.length===1?_[0]:_:l(this,v)}return this},u.prototype.removeAllListeners=function(h){var d;return h?(d=r?r+h:h,this._events[d]&&l(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Kc);var m_=Kc.exports;const Vs=En(m_);var ul={exports:{}};ul.exports=Ws,ul.exports.default=Ws;function Ws(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,o=Yc(e,0,i,r,!0),l=[];if(!o||o.next===o.prev)return l;var u,f,h,d,p,c,v;if(n&&(o=w_(e,t,o,r)),e.length>80*r){u=h=e[0],f=d=e[1];for(var m=r;m<i;m+=r)p=e[m],c=e[m+1],p<u&&(u=p),c<f&&(f=c),p>h&&(h=p),c>d&&(d=c);v=Math.max(h-u,d-f),v=v!==0?32767/v:0}return Ji(o,l,r,u,f,v,0),l}function Yc(e,t,r,n,i){var o,l;if(i===hl(e,t,r,n)>0)for(o=t;o<r;o+=n)l=Jc(o,e[o],e[o+1],l);else for(o=r-n;o>=t;o-=n)l=Jc(o,e[o],e[o+1],l);return l&&Xs(l,l.next)&&(es(l),l=l.next),l}function Pn(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Xs(r,r.next)||pe(r.prev,r,r.next)===0)){if(es(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Ji(e,t,r,n,i,o,l){if(e){!l&&o&&O_(e,n,i,o);for(var u=e,f,h;e.prev!==e.next;){if(f=e.prev,h=e.next,o?__(e,n,i,o):y_(e)){t.push(f.i/r|0),t.push(e.i/r|0),t.push(h.i/r|0),es(e),e=h.next,u=h.next;continue}if(e=h,e===u){l?l===1?(e=b_(Pn(e),t,r),Ji(e,t,r,n,i,o,2)):l===2&&x_(e,t,r,n,i,o):Ji(Pn(e),t,r,n,i,o,1);break}}}}function y_(e){var t=e.prev,r=e,n=e.next;if(pe(t,r,n)>=0)return!1;for(var i=t.x,o=r.x,l=n.x,u=t.y,f=r.y,h=n.y,d=i<o?i<l?i:l:o<l?o:l,p=u<f?u<h?u:h:f<h?f:h,c=i>o?i>l?i:l:o>l?o:l,v=u>f?u>h?u:h:f>h?f:h,m=n.next;m!==t;){if(m.x>=d&&m.x<=c&&m.y>=p&&m.y<=v&&ai(i,u,o,f,l,h,m.x,m.y)&&pe(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function __(e,t,r,n){var i=e.prev,o=e,l=e.next;if(pe(i,o,l)>=0)return!1;for(var u=i.x,f=o.x,h=l.x,d=i.y,p=o.y,c=l.y,v=u<f?u<h?u:h:f<h?f:h,m=d<p?d<c?d:c:p<c?p:c,b=u>f?u>h?u:h:f>h?f:h,_=d>p?d>c?d:c:p>c?p:c,y=fl(v,m,t,r,n),w=fl(b,_,t,r,n),T=e.prevZ,x=e.nextZ;T&&T.z>=y&&x&&x.z<=w;){if(T.x>=v&&T.x<=b&&T.y>=m&&T.y<=_&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&pe(T.prev,T,T.next)>=0||(T=T.prevZ,x.x>=v&&x.x<=b&&x.y>=m&&x.y<=_&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&pe(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;T&&T.z>=y;){if(T.x>=v&&T.x<=b&&T.y>=m&&T.y<=_&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&pe(T.prev,T,T.next)>=0)return!1;T=T.prevZ}for(;x&&x.z<=w;){if(x.x>=v&&x.x<=b&&x.y>=m&&x.y<=_&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&pe(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function b_(e,t,r){var n=e;do{var i=n.prev,o=n.next.next;!Xs(i,o)&&Zc(i,n,n.next,o)&&ts(i,o)&&ts(o,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(o.i/r|0),es(n),es(n.next),n=e=o),n=n.next}while(n!==e);return Pn(n)}function x_(e,t,r,n,i,o){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&I_(l,u)){var f=Qc(l,u);l=Pn(l,l.next),f=Pn(f,f.next),Ji(l,t,r,n,i,o,0),Ji(f,t,r,n,i,o,0);return}u=u.next}l=l.next}while(l!==e)}function w_(e,t,r,n){var i=[],o,l,u,f,h;for(o=0,l=t.length;o<l;o++)u=t[o]*n,f=o<l-1?t[o+1]*n:e.length,h=Yc(e,u,f,n,!1),h===h.next&&(h.steiner=!0),i.push(R_(h));for(i.sort(T_),o=0;o<i.length;o++)r=E_(i[o],r);return r}function T_(e,t){return e.x-t.x}function E_(e,t){var r=S_(e,t);if(!r)return t;var n=Qc(r,e);return Pn(n,n.next),Pn(r,r.next)}function S_(e,t){var r=t,n=e.x,i=e.y,o=-1/0,l;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>o&&(o=u,l=r.x<r.next.x?r:r.next,u===n))return l}r=r.next}while(r!==t);if(!l)return null;var f=l,h=l.x,d=l.y,p=1/0,c;r=l;do n>=r.x&&r.x>=h&&n!==r.x&&ai(i<d?n:o,i,h,d,i<d?o:n,i,r.x,r.y)&&(c=Math.abs(i-r.y)/(n-r.x),ts(r,e)&&(c<p||c===p&&(r.x>l.x||r.x===l.x&&A_(l,r)))&&(l=r,p=c)),r=r.next;while(r!==f);return l}function A_(e,t){return pe(e.prev,e,t.prev)<0&&pe(t.next,e,e.next)<0}function O_(e,t,r,n){var i=e;do i.z===0&&(i.z=fl(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,C_(i)}function C_(e){var t,r,n,i,o,l,u,f,h=1;do{for(r=e,e=null,o=null,l=0;r;){for(l++,n=r,u=0,t=0;t<h&&(u++,n=n.nextZ,!!n);t++);for(f=h;u>0||f>0&&n;)u!==0&&(f===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,f--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;r=n}o.nextZ=null,h*=2}while(l>1);return e}function fl(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function R_(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function ai(e,t,r,n,i,o,l,u){return(i-l)*(t-u)>=(e-l)*(o-u)&&(e-l)*(n-u)>=(r-l)*(t-u)&&(r-l)*(o-u)>=(i-l)*(n-u)}function I_(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!P_(e,t)&&(ts(e,t)&&ts(t,e)&&N_(e,t)&&(pe(e.prev,e,t.prev)||pe(e,t.prev,t))||Xs(e,t)&&pe(e.prev,e,e.next)>0&&pe(t.prev,t,t.next)>0)}function pe(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Xs(e,t){return e.x===t.x&&e.y===t.y}function Zc(e,t,r,n){var i=Ys(pe(e,t,r)),o=Ys(pe(e,t,n)),l=Ys(pe(r,n,e)),u=Ys(pe(r,n,t));return!!(i!==o&&l!==u||i===0&&Ks(e,r,t)||o===0&&Ks(e,n,t)||l===0&&Ks(r,e,n)||u===0&&Ks(r,t,n))}function Ks(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Ys(e){return e>0?1:e<0?-1:0}function P_(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Zc(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function ts(e,t){return pe(e.prev,e,e.next)<0?pe(e,t,e.next)>=0&&pe(e,e.prev,t)>=0:pe(e,t,e.prev)<0||pe(e,e.next,t)<0}function N_(e,t){var r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function Qc(e,t){var r=new cl(e.i,e.x,e.y),n=new cl(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function Jc(e,t,r,n){var i=new cl(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function es(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function cl(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Ws.deviation=function(e,t,r,n){var i=t&&t.length,o=i?t[0]*r:e.length,l=Math.abs(hl(e,0,o,r));if(i)for(var u=0,f=t.length;u<f;u++){var h=t[u]*r,d=u<f-1?t[u+1]*r:e.length;l-=Math.abs(hl(e,h,d,r))}var p=0;for(u=0;u<n.length;u+=3){var c=n[u]*r,v=n[u+1]*r,m=n[u+2]*r;p+=Math.abs((e[c]-e[m])*(e[v+1]-e[c+1])-(e[c]-e[v])*(e[m+1]-e[c+1]))}return l===0&&p===0?0:Math.abs((p-l)/l)};function hl(e,t,r,n){for(var i=0,o=t,l=r-n;o<r;o+=n)i+=(e[l]-e[o])*(e[o+1]+e[l+1]),l=o;return i}Ws.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var l=0;l<t;l++)r.vertices.push(e[i][o][l]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var M_=ul.exports;const k_=En(M_);var Zs={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Zs.exports,function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Ye=="object"&&Ye;(o.global===o||o.window===o||o.self===o)&&(r=o);var l,u=2147483647,f=36,h=1,d=26,p=38,c=700,v=72,m=128,b="-",_=/^xn--/,y=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,E=Math.floor,I=String.fromCharCode,A;function O(U){throw new RangeError(T[U])}function L(U,k){for(var G=U.length,j=[];G--;)j[G]=k(U[G]);return j}function R(U,k){var G=U.split("@"),j="";G.length>1&&(j=G[0]+"@",U=G[1]),U=U.replace(w,".");var V=U.split("."),X=L(V,k).join(".");return j+X}function C(U){for(var k=[],G=0,j=U.length,V,X;G<j;)V=U.charCodeAt(G++),V>=55296&&V<=56319&&G<j?(X=U.charCodeAt(G++),(X&64512)==56320?k.push(((V&1023)<<10)+(X&1023)+65536):(k.push(V),G--)):k.push(V);return k}function P(U){return L(U,function(k){var G="";return k>65535&&(k-=65536,G+=I(k>>>10&1023|55296),k=56320|k&1023),G+=I(k),G}).join("")}function M(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:f}function F(U,k){return U+22+75*(U<26)-((k!=0)<<5)}function q(U,k,G){var j=0;for(U=G?E(U/c):U>>1,U+=E(U/k);U>x*d>>1;j+=f)U=E(U/x);return E(j+(x+1)*U/(U+p))}function Z(U){var k=[],G=U.length,j,V=0,X=m,$=v,K,tt,Q,it,lt,pt,vt,xt,At;for(K=U.lastIndexOf(b),K<0&&(K=0),tt=0;tt<K;++tt)U.charCodeAt(tt)>=128&&O("not-basic"),k.push(U.charCodeAt(tt));for(Q=K>0?K+1:0;Q<G;){for(it=V,lt=1,pt=f;Q>=G&&O("invalid-input"),vt=M(U.charCodeAt(Q++)),(vt>=f||vt>E((u-V)/lt))&&O("overflow"),V+=vt*lt,xt=pt<=$?h:pt>=$+d?d:pt-$,!(vt<xt);pt+=f)At=f-xt,lt>E(u/At)&&O("overflow"),lt*=At;j=k.length+1,$=q(V-it,j,it==0),E(V/j)>u-X&&O("overflow"),X+=E(V/j),V%=j,k.splice(V++,0,X)}return P(k)}function z(U){var k,G,j,V,X,$,K,tt,Q,it,lt,pt=[],vt,xt,At,oe;for(U=C(U),vt=U.length,k=m,G=0,X=v,$=0;$<vt;++$)lt=U[$],lt<128&&pt.push(I(lt));for(j=V=pt.length,V&&pt.push(b);j<vt;){for(K=u,$=0;$<vt;++$)lt=U[$],lt>=k&<<K&&(K=lt);for(xt=j+1,K-k>E((u-G)/xt)&&O("overflow"),G+=(K-k)*xt,k=K,$=0;$<vt;++$)if(lt=U[$],lt<k&&++G>u&&O("overflow"),lt==k){for(tt=G,Q=f;it=Q<=X?h:Q>=X+d?d:Q-X,!(tt<it);Q+=f)oe=tt-it,At=f-it,pt.push(I(F(it+oe%At,0))),tt=E(oe/At);pt.push(I(F(tt,0))),X=q(G,xt,j==V),G=0,++j}++G,++k}return pt.join("")}function nt(U){return R(U,function(k){return _.test(k)?Z(k.slice(4).toLowerCase()):k})}function W(U){return R(U,function(k){return y.test(k)?"xn--"+z(k):k})}if(l={version:"1.4.1",ucs2:{decode:C,encode:P},decode:Z,encode:z,toASCII:W,toUnicode:nt},n&&i)if(e.exports==n)i.exports=l;else for(A in l)l.hasOwnProperty(A)&&(n[A]=l[A]);else r.punycode=l})(Ye)}(Zs,Zs.exports);var L_=Zs.exports,F_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},th=typeof Symbol<"u"&&Symbol,B_=F_,D_=function(){return typeof th!="function"||typeof Symbol!="function"||typeof th("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:B_()},eh={foo:{}},U_=Object,$_=function(){return{__proto__:eh}.foo===eh.foo&&!({__proto__:null}instanceof U_)},G_="Function.prototype.bind called on incompatible ",dl=Array.prototype.slice,j_=Object.prototype.toString,q_="[object Function]",z_=function(t){var r=this;if(typeof r!="function"||j_.call(r)!==q_)throw new TypeError(G_+r);for(var n=dl.call(arguments,1),i,o=function(){if(this instanceof i){var d=r.apply(this,n.concat(dl.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(dl.call(arguments)))},l=Math.max(0,r.length-n.length),u=[],f=0;f<l;f++)u.push("$"+f);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var h=function(){};h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},H_=z_,pl=Function.prototype.bind||H_,V_=pl,W_=V_.call(Function.call,Object.prototype.hasOwnProperty),$t,li=SyntaxError,rh=Function,ui=TypeError,vl=function(e){try{return rh('"use strict"; return ('+e+").constructor;")()}catch{}},Nn=Object.getOwnPropertyDescriptor;if(Nn)try{Nn({},"")}catch{Nn=null}var gl=function(){throw new ui},X_=Nn?function(){try{return arguments.callee,gl}catch{try{return Nn(arguments,"callee").get}catch{return gl}}}():gl,fi=D_(),K_=$_(),Ce=Object.getPrototypeOf||(K_?function(e){return e.__proto__}:null),ci={},Y_=typeof Uint8Array>"u"||!Ce?$t:Ce(Uint8Array),Mn={"%AggregateError%":typeof AggregateError>"u"?$t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$t:ArrayBuffer,"%ArrayIteratorPrototype%":fi&&Ce?Ce([][Symbol.iterator]()):$t,"%AsyncFromSyncIteratorPrototype%":$t,"%AsyncFunction%":ci,"%AsyncGenerator%":ci,"%AsyncGeneratorFunction%":ci,"%AsyncIteratorPrototype%":ci,"%Atomics%":typeof Atomics>"u"?$t:Atomics,"%BigInt%":typeof BigInt>"u"?$t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?$t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$t:FinalizationRegistry,"%Function%":rh,"%GeneratorFunction%":ci,"%Int8Array%":typeof Int8Array>"u"?$t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fi&&Ce?Ce(Ce([][Symbol.iterator]())):$t,"%JSON%":typeof JSON=="object"?JSON:$t,"%Map%":typeof Map>"u"?$t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!fi||!Ce?$t:Ce(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$t:Promise,"%Proxy%":typeof Proxy>"u"?$t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?$t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!fi||!Ce?$t:Ce(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fi&&Ce?Ce(""[Symbol.iterator]()):$t,"%Symbol%":fi?Symbol:$t,"%SyntaxError%":li,"%ThrowTypeError%":X_,"%TypedArray%":Y_,"%TypeError%":ui,"%Uint8Array%":typeof Uint8Array>"u"?$t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?$t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$t:WeakSet};if(Ce)try{null.error}catch(e){var Z_=Ce(Ce(e));Mn["%Error.prototype%"]=Z_}var Q_=function e(t){var r;if(t==="%AsyncFunction%")r=vl("async function () {}");else if(t==="%GeneratorFunction%")r=vl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=vl("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ce&&(r=Ce(i.prototype))}return Mn[t]=r,r},nh={"%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"]},rs=pl,Qs=W_,J_=rs.call(Function.call,Array.prototype.concat),tb=rs.call(Function.apply,Array.prototype.splice),ih=rs.call(Function.call,String.prototype.replace),Js=rs.call(Function.call,String.prototype.slice),eb=rs.call(Function.call,RegExp.prototype.exec),rb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,nb=/\\(\\)?/g,ib=function(t){var r=Js(t,0,1),n=Js(t,-1);if(r==="%"&&n!=="%")throw new li("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new li("invalid intrinsic syntax, expected opening `%`");var i=[];return ih(t,rb,function(o,l,u,f){i[i.length]=u?ih(f,nb,"$1"):l||o}),i},sb=function(t,r){var n=t,i;if(Qs(nh,n)&&(i=nh[n],n="%"+i[0]+"%"),Qs(Mn,n)){var o=Mn[n];if(o===ci&&(o=Q_(n)),typeof o>"u"&&!r)throw new ui("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new li("intrinsic "+t+" does not exist!")},ml=function(t,r){if(typeof t!="string"||t.length===0)throw new ui("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ui('"allowMissing" argument must be a boolean');if(eb(/^%?[^%]*%?$/,t)===null)throw new li("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ib(t),i=n.length>0?n[0]:"",o=sb("%"+i+"%",r),l=o.name,u=o.value,f=!1,h=o.alias;h&&(i=h[0],tb(n,J_([0,1],h)));for(var d=1,p=!0;d<n.length;d+=1){var c=n[d],v=Js(c,0,1),m=Js(c,-1);if((v==='"'||v==="'"||v==="`"||m==='"'||m==="'"||m==="`")&&v!==m)throw new li("property names with quotes must have matching quotes");if((c==="constructor"||!p)&&(f=!0),i+="."+c,l="%"+i+"%",Qs(Mn,l))u=Mn[l];else if(u!=null){if(!(c in u)){if(!r)throw new ui("base intrinsic for "+t+" exists, but the property is not available.");return}if(Nn&&d+1>=n.length){var b=Nn(u,c);p=!!b,p&&"get"in b&&!("originalValue"in b.get)?u=b.get:u=u[c]}else p=Qs(u,c),u=u[c];p&&!f&&(Mn[l]=u)}}return u},sh={exports:{}};(function(e){var t=pl,r=ml,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||t.call(i,n),l=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),f=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(p){var c=o(t,i,arguments);if(l&&u){var v=l(c,"length");v.configurable&&u(c,"length",{value:1+f(0,p.length-(arguments.length-1))})}return c};var h=function(){return o(t,n,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h})(sh);var ob=sh.exports,oh=ml,ah=ob,ab=ah(oh("String.prototype.indexOf")),lb=function(t,r){var n=oh(t,!!r);return typeof n=="function"&&ab(t,".prototype.")>-1?ah(n):n};const ub=uy(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var yl=typeof Map=="function"&&Map.prototype,_l=Object.getOwnPropertyDescriptor&&yl?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,to=yl&&_l&&typeof _l.get=="function"?_l.get:null,lh=yl&&Map.prototype.forEach,bl=typeof Set=="function"&&Set.prototype,xl=Object.getOwnPropertyDescriptor&&bl?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,eo=bl&&xl&&typeof xl.get=="function"?xl.get:null,uh=bl&&Set.prototype.forEach,fb=typeof WeakMap=="function"&&WeakMap.prototype,ns=fb?WeakMap.prototype.has:null,cb=typeof WeakSet=="function"&&WeakSet.prototype,is=cb?WeakSet.prototype.has:null,hb=typeof WeakRef=="function"&&WeakRef.prototype,fh=hb?WeakRef.prototype.deref:null,db=Boolean.prototype.valueOf,pb=Object.prototype.toString,vb=Function.prototype.toString,gb=String.prototype.match,wl=String.prototype.slice,un=String.prototype.replace,mb=String.prototype.toUpperCase,ch=String.prototype.toLowerCase,hh=RegExp.prototype.test,dh=Array.prototype.concat,Br=Array.prototype.join,yb=Array.prototype.slice,ph=Math.floor,Tl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,El=Object.getOwnPropertySymbols,Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hi||"symbol")?Symbol.toStringTag:null,vh=Object.prototype.propertyIsEnumerable,gh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mh(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||hh.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-ph(-e):ph(e);if(n!==e){var i=String(n),o=wl.call(t,i.length+1);return un.call(i,r,"$&_")+"."+un.call(un.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return un.call(t,r,"$&_")}var Al=ub,yh=Al.custom,_h=wh(yh)?yh:null,_b=function e(t,r,n,i){var o=r||{};if(fn(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fn(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=fn(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fn(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fn(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Eh(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var f=String(t);return u?mh(t,f):f}if(typeof t=="bigint"){var h=String(t)+"n";return u?mh(t,h):h}var d=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Ol(t)?"[Array]":"[Object]";var p=Bb(o,n);if(typeof i>"u")i=[];else if(Th(i,t)>=0)return"[Circular]";function c(M,F,q){if(F&&(i=yb.call(i),i.push(F)),q){var Z={depth:o.depth};return fn(o,"quoteStyle")&&(Z.quoteStyle=o.quoteStyle),e(M,Z,n+1,i)}return e(M,o,n+1,i)}if(typeof t=="function"&&!xh(t)){var v=Cb(t),m=ro(t,c);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(m.length>0?" { "+Br.call(m,", ")+" }":"")}if(wh(t)){var b=hi?un.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Sl.call(t);return typeof t=="object"&&!hi?ss(b):b}if(kb(t)){for(var _="<"+ch.call(String(t.nodeName)),y=t.attributes||[],w=0;w<y.length;w++)_+=" "+y[w].name+"="+bh(bb(y[w].value),"double",o);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+ch.call(String(t.nodeName))+">",_}if(Ol(t)){if(t.length===0)return"[]";var T=ro(t,c);return p&&!Fb(T)?"["+Rl(T,p)+"]":"[ "+Br.call(T,", ")+" ]"}if(wb(t)){var x=ro(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!vh.call(t,"cause")?"{ ["+String(t)+"] "+Br.call(dh.call("[cause]: "+c(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Br.call(x,", ")+" }"}if(typeof t=="object"&&l){if(_h&&typeof t[_h]=="function"&&Al)return Al(t,{depth:d-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Rb(t)){var E=[];return lh&&lh.call(t,function(M,F){E.push(c(F,t,!0)+" => "+c(M,t))}),Sh("Map",to.call(t),E,p)}if(Nb(t)){var I=[];return uh&&uh.call(t,function(M){I.push(c(M,t))}),Sh("Set",eo.call(t),I,p)}if(Ib(t))return Cl("WeakMap");if(Mb(t))return Cl("WeakSet");if(Pb(t))return Cl("WeakRef");if(Eb(t))return ss(c(Number(t)));if(Ab(t))return ss(c(Tl.call(t)));if(Sb(t))return ss(db.call(t));if(Tb(t))return ss(c(String(t)));if(!xb(t)&&!xh(t)){var A=ro(t,c),O=gh?gh(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",R=!O&&Le&&Object(t)===t&&Le in t?wl.call(cn(t),8,-1):L?"Object":"",C=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",P=C+(R||L?"["+Br.call(dh.call([],R||[],L||[]),": ")+"] ":"");return A.length===0?P+"{}":p?P+"{"+Rl(A,p)+"}":P+"{ "+Br.call(A,", ")+" }"}return String(t)};function bh(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function bb(e){return un.call(String(e),/"/g,""")}function Ol(e){return cn(e)==="[object Array]"&&(!Le||!(typeof e=="object"&&Le in e))}function xb(e){return cn(e)==="[object Date]"&&(!Le||!(typeof e=="object"&&Le in e))}function xh(e){return cn(e)==="[object RegExp]"&&(!Le||!(typeof e=="object"&&Le in e))}function wb(e){return cn(e)==="[object Error]"&&(!Le||!(typeof e=="object"&&Le in e))}function Tb(e){return cn(e)==="[object String]"&&(!Le||!(typeof e=="object"&&Le in e))}function Eb(e){return cn(e)==="[object Number]"&&(!Le||!(typeof e=="object"&&Le in e))}function Sb(e){return cn(e)==="[object Boolean]"&&(!Le||!(typeof e=="object"&&Le in e))}function wh(e){if(hi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Sl)return!1;try{return Sl.call(e),!0}catch{}return!1}function Ab(e){if(!e||typeof e!="object"||!Tl)return!1;try{return Tl.call(e),!0}catch{}return!1}var Ob=Object.prototype.hasOwnProperty||function(e){return e in this};function fn(e,t){return Ob.call(e,t)}function cn(e){return pb.call(e)}function Cb(e){if(e.name)return e.name;var t=gb.call(vb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Th(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Rb(e){if(!to||!e||typeof e!="object")return!1;try{to.call(e);try{eo.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Ib(e){if(!ns||!e||typeof e!="object")return!1;try{ns.call(e,ns);try{is.call(e,is)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Pb(e){if(!fh||!e||typeof e!="object")return!1;try{return fh.call(e),!0}catch{}return!1}function Nb(e){if(!eo||!e||typeof e!="object")return!1;try{eo.call(e);try{to.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Mb(e){if(!is||!e||typeof e!="object")return!1;try{is.call(e,is);try{ns.call(e,ns)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function kb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Eh(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Eh(wl.call(e,0,t.maxStringLength),t)+n}var i=un.call(un.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Lb);return bh(i,"single",t)}function Lb(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+mb.call(t.toString(16))}function ss(e){return"Object("+e+")"}function Cl(e){return e+" { ? }"}function Sh(e,t,r,n){var i=n?Rl(r,n):Br.call(r,", ");return e+" ("+t+") {"+i+"}"}function Fb(e){for(var t=0;t<e.length;t++)if(Th(e[t],`
|
|
10
10
|
`)>=0)return!1;return!0}function Bb(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Br.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Br.call(Array(t+1),r)}}function Rl(e,t){if(e.length===0)return"";var r=`
|
|
11
11
|
`+t.prev+t.base;return r+Br.call(e,","+r)+`
|
|
12
12
|
`+t.prev}function ro(e,t){var r=Ol(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=fn(e,i)?t(e[i],e):""}var o=typeof El=="function"?El(e):[],l;if(hi){l={};for(var u=0;u<o.length;u++)l["$"+o[u]]=o[u]}for(var f in e)fn(e,f)&&(r&&String(Number(f))===f&&f<e.length||hi&&l["$"+f]instanceof Symbol||(hh.call(/[^\w$]/,f)?n.push(t(f,e)+": "+t(e[f],e)):n.push(f+": "+t(e[f],e))));if(typeof El=="function")for(var h=0;h<o.length;h++)vh.call(e,o[h])&&n.push("["+t(o[h])+"]: "+t(e[o[h]],e));return n}var Il=ml,di=lb,Db=_b,Ub=Il("%TypeError%"),no=Il("%WeakMap%",!0),io=Il("%Map%",!0),$b=di("WeakMap.prototype.get",!0),Gb=di("WeakMap.prototype.set",!0),jb=di("WeakMap.prototype.has",!0),qb=di("Map.prototype.get",!0),zb=di("Map.prototype.set",!0),Hb=di("Map.prototype.has",!0),Pl=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Vb=function(e,t){var r=Pl(e,t);return r&&r.value},Wb=function(e,t,r){var n=Pl(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Xb=function(e,t){return!!Pl(e,t)},Kb=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new Ub("Side channel does not contain "+Db(o))},get:function(o){if(no&&o&&(typeof o=="object"||typeof o=="function")){if(t)return $b(t,o)}else if(io){if(r)return qb(r,o)}else if(n)return Vb(n,o)},has:function(o){if(no&&o&&(typeof o=="object"||typeof o=="function")){if(t)return jb(t,o)}else if(io){if(r)return Hb(r,o)}else if(n)return Xb(n,o);return!1},set:function(o,l){no&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new no),Gb(t,o,l)):io?(r||(r=new io),zb(r,o,l)):(n||(n={key:{},next:null}),Wb(n,o,l))}};return i},Yb=String.prototype.replace,Zb=/%20/g,Nl={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ml={default:Nl.RFC3986,formatters:{RFC1738:function(e){return Yb.call(e,Zb,"+")},RFC3986:function(e){return String(e)}},RFC1738:Nl.RFC1738,RFC3986:Nl.RFC3986},Qb=Ml,kl=Object.prototype.hasOwnProperty,kn=Array.isArray,Dr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Jb=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(kn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},Ah=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},tx=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(kn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!kl.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return kn(t)&&!kn(r)&&(i=Ah(t,n)),kn(t)&&kn(r)?(r.forEach(function(o,l){if(kl.call(t,l)){var u=t[l];u&&typeof u=="object"&&o&&typeof o=="object"?t[l]=e(u,o,n):t.push(o)}else t[l]=o}),t):Object.keys(r).reduce(function(o,l){var u=r[l];return kl.call(o,l)?o[l]=e(o[l],u,n):o[l]=u,o},i)},ex=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},rx=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},nx=function(t,r,n,i,o){if(t.length===0)return t;var l=t;if(typeof t=="symbol"?l=Symbol.prototype.toString.call(t):typeof t!="string"&&(l=String(t)),n==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var u="",f=0;f<l.length;++f){var h=l.charCodeAt(f);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===Qb.RFC1738&&(h===40||h===41)){u+=l.charAt(f);continue}if(h<128){u=u+Dr[h];continue}if(h<2048){u=u+(Dr[192|h>>6]+Dr[128|h&63]);continue}if(h<55296||h>=57344){u=u+(Dr[224|h>>12]+Dr[128|h>>6&63]+Dr[128|h&63]);continue}f+=1,h=65536+((h&1023)<<10|l.charCodeAt(f)&1023),u+=Dr[240|h>>18]+Dr[128|h>>12&63]+Dr[128|h>>6&63]+Dr[128|h&63]}return u},ix=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],l=o.obj[o.prop],u=Object.keys(l),f=0;f<u.length;++f){var h=u[f],d=l[h];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:l,prop:h}),n.push(d))}return Jb(r),t},sx=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},ox=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},ax=function(t,r){return[].concat(t,r)},lx=function(t,r){if(kn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},Oh={arrayToObject:Ah,assign:ex,combine:ax,compact:ix,decode:rx,encode:nx,isBuffer:ox,isRegExp:sx,maybeMap:lx,merge:tx},Ch=Kb,so=Oh,os=Ml,ux=Object.prototype.hasOwnProperty,Rh={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Vr=Array.isArray,fx=Array.prototype.push,Ih=function(e,t){fx.apply(e,Vr(t)?t:[t])},cx=Date.prototype.toISOString,Ph=os.default,Fe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:so.encode,encodeValuesOnly:!1,format:Ph,formatter:os.formatters[Ph],indices:!1,serializeDate:function(t){return cx.call(t)},skipNulls:!1,strictNullHandling:!1},hx=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ll={},dx=function e(t,r,n,i,o,l,u,f,h,d,p,c,v,m,b,_){for(var y=t,w=_,T=0,x=!1;(w=w.get(Ll))!==void 0&&!x;){var E=w.get(t);if(T+=1,typeof E<"u"){if(E===T)throw new RangeError("Cyclic object value");x=!0}typeof w.get(Ll)>"u"&&(T=0)}if(typeof f=="function"?y=f(r,y):y instanceof Date?y=p(y):n==="comma"&&Vr(y)&&(y=so.maybeMap(y,function(Z){return Z instanceof Date?p(Z):Z})),y===null){if(o)return u&&!m?u(r,Fe.encoder,b,"key",c):r;y=""}if(hx(y)||so.isBuffer(y)){if(u){var I=m?r:u(r,Fe.encoder,b,"key",c);return[v(I)+"="+v(u(y,Fe.encoder,b,"value",c))]}return[v(r)+"="+v(String(y))]}var A=[];if(typeof y>"u")return A;var O;if(n==="comma"&&Vr(y))m&&u&&(y=so.maybeMap(y,u)),O=[{value:y.length>0?y.join(",")||null:void 0}];else if(Vr(f))O=f;else{var L=Object.keys(y);O=h?L.sort(h):L}for(var R=i&&Vr(y)&&y.length===1?r+"[]":r,C=0;C<O.length;++C){var P=O[C],M=typeof P=="object"&&typeof P.value<"u"?P.value:y[P];if(!(l&&M===null)){var F=Vr(y)?typeof n=="function"?n(R,P):R:R+(d?"."+P:"["+P+"]");_.set(t,T);var q=Ch();q.set(Ll,_),Ih(A,e(M,F,n,i,o,l,n==="comma"&&m&&Vr(y)?null:u,f,h,d,p,c,v,m,b,q))}}return A},px=function(t){if(!t)return Fe;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Fe.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=os.default;if(typeof t.format<"u"){if(!ux.call(os.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=os.formatters[n],o=Fe.filter;return(typeof t.filter=="function"||Vr(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Fe.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Fe.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Fe.charsetSentinel,delimiter:typeof t.delimiter>"u"?Fe.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Fe.encode,encoder:typeof t.encoder=="function"?t.encoder:Fe.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Fe.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Fe.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Fe.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Fe.strictNullHandling}},vx=function(e,t){var r=e,n=px(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Vr(n.filter)&&(o=n.filter,i=o);var l=[];if(typeof r!="object"||r===null)return"";var u;t&&t.arrayFormat in Rh?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var f=Rh[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=f==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var d=Ch(),p=0;p<i.length;++p){var c=i[p];n.skipNulls&&r[c]===null||Ih(l,dx(r[c],c,f,h,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,d))}var v=l.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),v.length>0?m+v:""},pi=Oh,Fl=Object.prototype.hasOwnProperty,gx=Array.isArray,Re={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:pi.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},mx=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Nh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},yx="utf8=%26%2310003%3B",_x="utf8=%E2%9C%93",bx=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,l=i.split(r.delimiter,o),u=-1,f,h=r.charset;if(r.charsetSentinel)for(f=0;f<l.length;++f)l[f].indexOf("utf8=")===0&&(l[f]===_x?h="utf-8":l[f]===yx&&(h="iso-8859-1"),u=f,f=l.length);for(f=0;f<l.length;++f)if(f!==u){var d=l[f],p=d.indexOf("]="),c=p===-1?d.indexOf("="):p+1,v,m;c===-1?(v=r.decoder(d,Re.decoder,h,"key"),m=r.strictNullHandling?null:""):(v=r.decoder(d.slice(0,c),Re.decoder,h,"key"),m=pi.maybeMap(Nh(d.slice(c+1),r),function(b){return r.decoder(b,Re.decoder,h,"value")})),m&&r.interpretNumericEntities&&h==="iso-8859-1"&&(m=mx(m)),d.indexOf("[]=")>-1&&(m=gx(m)?[m]:m),Fl.call(n,v)?n[v]=pi.combine(n[v],m):n[v]=m}return n},xx=function(e,t,r,n){for(var i=n?t:Nh(t,r),o=e.length-1;o>=0;--o){var l,u=e[o];if(u==="[]"&&r.parseArrays)l=[].concat(i);else{l=r.plainObjects?Object.create(null):{};var f=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,h=parseInt(f,10);!r.parseArrays&&f===""?l={0:i}:!isNaN(h)&&u!==f&&String(h)===f&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(l=[],l[h]=i):f!=="__proto__"&&(l[f]=i)}i=l}return i},wx=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,f=n.depth>0&&l.exec(o),h=f?o.slice(0,f.index):o,d=[];if(h){if(!n.plainObjects&&Fl.call(Object.prototype,h)&&!n.allowPrototypes)return;d.push(h)}for(var p=0;n.depth>0&&(f=u.exec(o))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&Fl.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(f[1])}return f&&d.push("["+o.slice(f.index)+"]"),xx(d,r,n,i)}},Tx=function(t){if(!t)return Re;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Re.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Re.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Re.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Re.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Re.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Re.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Re.comma,decoder:typeof t.decoder=="function"?t.decoder:Re.decoder,delimiter:typeof t.delimiter=="string"||pi.isRegExp(t.delimiter)?t.delimiter:Re.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Re.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Re.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Re.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Re.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Re.strictNullHandling}},Ex=function(e,t){var r=Tx(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?bx(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),l=0;l<o.length;++l){var u=o[l],f=wx(u,n[u],r,typeof e=="string");i=pi.merge(i,f,r)}return r.allowSparse===!0?i:pi.compact(i)},Sx=vx,Ax=Ex,Ox=Ml,Cx={formats:Ox,parse:Ax,stringify:Sx},Rx=L_;function yr(){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 Ix=/^([a-z0-9.+-]+:)/i,Px=/:[0-9]*$/,Nx=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,Mx=["<",">",'"',"`"," ","\r",`
|
|
@@ -35,7 +35,7 @@ declare const Events: {
|
|
|
35
35
|
SCRUBBER_PAUSE: string;
|
|
36
36
|
TRANSFORMER_DRAG_START: string;
|
|
37
37
|
TRANSFORMER_DRAG_END: string;
|
|
38
|
-
|
|
38
|
+
REVERSE_MODE_START: string;
|
|
39
39
|
REVERSE_MODE_END: string;
|
|
40
40
|
};
|
|
41
41
|
declare const GsapPixieContextProvider: React.FC<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reacthub-pixitweenjs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.97",
|
|
4
4
|
"description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
|
|
5
5
|
"author": "khanzzirfan <reacthub.ai@gmail.com>",
|
|
6
6
|
"main": "dist/index.es.js",
|