reacthub-pixitweenjs 0.2.58 → 0.2.59
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 +45 -33
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -7761,48 +7761,52 @@ const Ms = wt.createContext({}), tr = {
|
|
|
7761
7761
|
}) => {
|
|
7762
7762
|
const [t, r] = jn(!1), n = Wt(), i = Wt(), a = Wt(1e-3);
|
|
7763
7763
|
Tv(() => (i.current = nr.context(() => {
|
|
7764
|
-
n.current && n.current.progress(0).kill(), n.current = nr.timeline({
|
|
7764
|
+
n.current && n.current.progress(0).kill(), n.current && n.current.clear(), n.current = nr.timeline({
|
|
7765
7765
|
paused: !0,
|
|
7766
7766
|
defaults: { duration: 0 }
|
|
7767
7767
|
});
|
|
7768
|
-
}), () =>
|
|
7768
|
+
}), () => {
|
|
7769
|
+
n.current && n.current.progress(0).kill(), i.current.revert();
|
|
7770
|
+
}), []);
|
|
7769
7771
|
const l = vn(() => {
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
+
if (n.current) {
|
|
7773
|
+
let b = n.current.time();
|
|
7774
|
+
a.current = b;
|
|
7775
|
+
}
|
|
7772
7776
|
}, []);
|
|
7773
7777
|
Yn(() => {
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
}
|
|
7785
|
-
m.pause(), m.revert(), Nu(tr.COMPLETE, { uniqueId: "timeline" }), console.log("Emitted events"), l();
|
|
7786
|
-
});
|
|
7778
|
+
if (n.current) {
|
|
7779
|
+
const m = n.current;
|
|
7780
|
+
m.eventCallback("onStart", function() {
|
|
7781
|
+
}).eventCallback("onInterrupt", function() {
|
|
7782
|
+
m.pause(), l();
|
|
7783
|
+
}).eventCallback("onUpdate", function() {
|
|
7784
|
+
l();
|
|
7785
|
+
}).eventCallback("onComplete", function() {
|
|
7786
|
+
m.pause(), m.revert(), Nu(tr.COMPLETE, { uniqueId: "timeline" }), console.log("Emitted events"), l();
|
|
7787
|
+
});
|
|
7788
|
+
}
|
|
7787
7789
|
}, []);
|
|
7788
7790
|
const u = vn(() => {
|
|
7789
|
-
n.current.revert();
|
|
7791
|
+
n.current && n.current.revert();
|
|
7790
7792
|
}, []), f = vn(() => {
|
|
7791
|
-
n.current.restart();
|
|
7793
|
+
n.current && n.current.restart();
|
|
7792
7794
|
}, []), h = vn(() => {
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
+
if (n.current) {
|
|
7796
|
+
const m = n.current;
|
|
7797
|
+
m.repeat(1), m.restart();
|
|
7798
|
+
}
|
|
7795
7799
|
}, []), p = vn((m) => {
|
|
7796
|
-
n.current.seek(m);
|
|
7800
|
+
n.current && n.current.seek(m);
|
|
7797
7801
|
}, []), d = vn(() => {
|
|
7798
|
-
n.current.seek(4);
|
|
7802
|
+
n.current && n.current.seek(4);
|
|
7799
7803
|
}, []), c = vn(() => {
|
|
7800
7804
|
const m = n.current;
|
|
7801
7805
|
return m ? m.totalDuration() : 0;
|
|
7802
7806
|
}, []), v = () => {
|
|
7803
|
-
n.current.pause(), Nu(tr.PAUSE);
|
|
7807
|
+
n.current && (n.current.pause(), Nu(tr.PAUSE));
|
|
7804
7808
|
}, y = () => {
|
|
7805
|
-
n.current.resume(), Nu(tr.RESUME);
|
|
7809
|
+
n.current && (n.current.resume(), Nu(tr.RESUME));
|
|
7806
7810
|
};
|
|
7807
7811
|
return Br(tr.SEEK_START, () => {
|
|
7808
7812
|
r(!0);
|
|
@@ -8172,7 +8176,9 @@ const Ai = /* @__PURE__ */ Zn(vR), gR = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
8172
8176
|
) : m.current.to(p.current, { ...Kt.to }, _) : m.current.from(p.current, { ...Kt.from }, _);
|
|
8173
8177
|
});
|
|
8174
8178
|
}
|
|
8175
|
-
return () =>
|
|
8179
|
+
return () => {
|
|
8180
|
+
console.log("unmounting"), m.current && (console.log("1001 kill timeline"), m.current.progress(0).kill()), dt.revert();
|
|
8181
|
+
};
|
|
8176
8182
|
}, [I, _, E, q]);
|
|
8177
8183
|
const tt = wt.useCallback(() => {
|
|
8178
8184
|
a(!0);
|
|
@@ -11381,7 +11387,7 @@ const sv = /* @__PURE__ */ Zn(eC), JF = (e) => {
|
|
|
11381
11387
|
onUpdate: A,
|
|
11382
11388
|
onUpdateParams: [y, m]
|
|
11383
11389
|
};
|
|
11384
|
-
S = nr.context(() => {
|
|
11390
|
+
a.current && a.current.kill(), S = nr.context(() => {
|
|
11385
11391
|
a.current = nr.from(
|
|
11386
11392
|
n.current,
|
|
11387
11393
|
// @ts-ignore
|
|
@@ -11394,7 +11400,9 @@ const sv = /* @__PURE__ */ Zn(eC), JF = (e) => {
|
|
|
11394
11400
|
), l.current.add(a.current, p);
|
|
11395
11401
|
});
|
|
11396
11402
|
}
|
|
11397
|
-
return () =>
|
|
11403
|
+
return () => {
|
|
11404
|
+
a.current && a.current.kill(), S.revert();
|
|
11405
|
+
};
|
|
11398
11406
|
}, [p, d, y, m]), wt.useEffect(() => {
|
|
11399
11407
|
n.current && r(!0);
|
|
11400
11408
|
}, []), wt.useEffect(() => {
|
|
@@ -16283,7 +16291,7 @@ const BF = {
|
|
|
16283
16291
|
onUpdate: $,
|
|
16284
16292
|
onUpdateParams: [N, S]
|
|
16285
16293
|
};
|
|
16286
|
-
U = nr.context(() => {
|
|
16294
|
+
y.current && y.current.kill(), U = nr.context(() => {
|
|
16287
16295
|
y.current = nr.from(
|
|
16288
16296
|
c.current,
|
|
16289
16297
|
// @ts-ignore
|
|
@@ -16292,7 +16300,9 @@ const BF = {
|
|
|
16292
16300
|
), m.current.add(y.current, x);
|
|
16293
16301
|
});
|
|
16294
16302
|
}
|
|
16295
|
-
return () =>
|
|
16303
|
+
return () => {
|
|
16304
|
+
y.current && y.current.kill(), U.revert();
|
|
16305
|
+
};
|
|
16296
16306
|
}, [k, x, A, N, S]), /* @__PURE__ */ te.jsx(qi, { ...e, ref: t, ignoreTlForVideo: !0, children: /* @__PURE__ */ te.jsx(Ue, { ref: c, children: r && r.length > 0 && /* @__PURE__ */ te.jsx(
|
|
16297
16307
|
FF,
|
|
16298
16308
|
{
|
|
@@ -23880,7 +23890,7 @@ const tB = wt.forwardRef((e, t) => {
|
|
|
23880
23890
|
transformation: { x, y: A, width: N, height: S, animation: O }
|
|
23881
23891
|
} = e, L = m || "", R = wt.useMemo(() => {
|
|
23882
23892
|
const q = document.createElement("video");
|
|
23883
|
-
return q.src = m, q.crossOrigin = "Anonymus", q.autoplay = !1, q.currentTime = E, q;
|
|
23893
|
+
return q.src = m, q.crossOrigin = "Anonymus", q.autoplay = !1, q.currentTime = E === 0 ? 1e-3 : E, q;
|
|
23884
23894
|
}, [m, E]);
|
|
23885
23895
|
Br(tr.PAUSE, () => {
|
|
23886
23896
|
if (f.current) {
|
|
@@ -23932,7 +23942,7 @@ const tB = wt.forwardRef((e, t) => {
|
|
|
23932
23942
|
onUpdate: F,
|
|
23933
23943
|
onUpdateParams: [E, w]
|
|
23934
23944
|
};
|
|
23935
|
-
q = nr.context(() => {
|
|
23945
|
+
p.current && p.current.kill(), q = nr.context(() => {
|
|
23936
23946
|
p.current = nr.from(
|
|
23937
23947
|
u.current,
|
|
23938
23948
|
// @ts-ignore
|
|
@@ -23941,7 +23951,9 @@ const tB = wt.forwardRef((e, t) => {
|
|
|
23941
23951
|
), d.current.add(p.current, b);
|
|
23942
23952
|
});
|
|
23943
23953
|
}
|
|
23944
|
-
return () =>
|
|
23954
|
+
return () => {
|
|
23955
|
+
p.current && p.current.kill(), q.revert();
|
|
23956
|
+
};
|
|
23945
23957
|
}, [O, b, _, E, w]), wt.useEffect(() => {
|
|
23946
23958
|
u.current && r(!0);
|
|
23947
23959
|
}, []), wt.useEffect(() => {
|
package/dist/index.umd.js
CHANGED
|
@@ -536,7 +536,7 @@ void main(void)
|
|
|
536
536
|
|
|
537
537
|
gl_FragColor = c * alpha;
|
|
538
538
|
}
|
|
539
|
-
`;class R1 extends Wr{constructor(t){super(O1,I1),this.gamma=1,this.saturation=1,this.contrast=1,this.brightness=1,this.red=1,this.green=1,this.blue=1,this.alpha=1,Object.assign(this,t)}apply(t,r,n,i){this.uniforms.gamma=Math.max(this.gamma,1e-4),this.uniforms.saturation=this.saturation,this.uniforms.contrast=this.contrast,this.uniforms.brightness=this.brightness,this.uniforms.red=this.red,this.uniforms.green=this.green,this.uniforms.blue=this.blue,this.uniforms.alpha=this.alpha,t.applyFilter(this,r,n,i)}}var Bn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Bn||{});const C1=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:a,onDoubleClick:l,uniqueId:u=""})=>{const f=wn.utils.string2hex("#F3C409"),h=wn.utils.string2hex("#F3C409"),p=Tt.useRef({isDragging:!1}),d=Tt.useCallback(()=>{a&&!p.current.isDragging&&a(!0)},[a]),c=Tt.useCallback(()=>{a&&!p.current.isDragging&&a(!1)},[a]),v=Tt.useCallback(()=>{p.current.isDragging=!0},[]),y=Tt.useCallback(()=>{p.current.isDragging=!1},[]),m=Tt.useCallback(()=>{p.current.isDragging=!1},[]),b=Tt.useCallback(()=>{console.log("dobule click in pixi transformer"),l&&l({uniqueId:u})},[l]),_=Tt.useCallback(w=>{p.current.isDragging=!0,i&&i(w)},[i]),E=Tt.useCallback(()=>{if(t.current===null)return;const w=t.current.x,x=t.current.y,A=t.current.width,C=t.current.height,S=t.current.rotation,O=[t.current.scale.x,t.current.scale.y];n&&n({uniqueId:u,transformation:{x:Math.round(w),y:Math.round(x),width:Math.round(Math.max(5,A)),height:Math.round(Math.max(5,C)),rotation:S,scale:O}}),p.current.isDragging=!1},[n]);return Tt.useEffect(()=>(e.current&&(e.current.on("mouseover",d),e.current.on("mouseout",c),e.current.on("mousedown",v),e.current.on("mouseup",y),e.current.on("mouseupoutside",m),e.current.addListener("dblclick",b)),()=>{e.current&&(e.current.off("mouseover",d),e.current.off("mouseout",c),e.current.off("mousedown",v),e.current.off("mouseup",y),e.current.off("mouseupoutside",m),e.current.removeListener("dblclick",b))}),[]),Jt.jsx(gy.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:h},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:f,shape:"circle",radius:10},transformchange:_,transformcommit:E})};let id;function sd(){return id=document.body,id}function wr(e,t,r){let n;return mt.useEffect(()=>{n=n||sd();const i=a=>{const l=a.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function Ea(e,t){const r=sd(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function N1(){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 mi=Tt.createContext({}),qe={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"},P1=({children:e})=>{const[t,r]=mt.useState(!1),n=mt.useRef(),i=mt.useRef(),a=mt.useRef(.001);mt.useLayoutEffect(()=>(i.current=Xe.context(()=>{n.current&&n.current.progress(0).kill(),n.current=Xe.timeline({paused:!0,defaults:{duration:0}})}),()=>i.current.revert()),[]);const l=mt.useCallback(()=>{let b=n.current.time();a.current=b},[]);mt.useEffect(()=>{const m=n.current;m.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){m.pause(),l()}).eventCallback("onUpdate",function(){l()}).eventCallback("onPause",function(){l()}).eventCallback("onResume",function(){l()}).eventCallback("onComplete",function(){m.pause(),m.revert(),Ea(qe.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),l()})},[]);const u=mt.useCallback(()=>{n.current.revert()},[]),f=mt.useCallback(()=>{n.current.restart()},[]),h=mt.useCallback(()=>{const m=n.current;m.repeat(1),m.restart()},[]),p=mt.useCallback(m=>{n.current.seek(m)},[]),d=mt.useCallback(()=>{n.current.seek(4)},[]),c=mt.useCallback(()=>{const m=n.current;return m?m.totalDuration():0},[]),v=()=>{n.current.pause(),Ea(qe.PAUSE)},y=()=>{n.current.resume(),Ea(qe.RESUME)};return wr(qe.SEEK_START,()=>{r(!0)}),wr(qe.SCRUBBER_PLAY,()=>{y()}),wr(qe.SCRUBBER_PAUSE,()=>{v()}),wr(qe.SCRUBBER_SEEK,m=>{p(m)}),wr(qe.SEEK_END,()=>{r(!1)}),wr(qe.SCRUBBER_PROGRESS_UPDATE,m=>{}),Jt.jsx(mi.Provider,{value:{gsapCtx:i,tl:n,handlePlay:y,handlePause:v,handleReset:u,handleSeek:p,handleSeekTest:d,handleRestart:f,handleRepeat:h,playerTimeRef:a,isDragging:t,getTimelineDuration:c},children:e})},M1=e=>{let t={};switch(e){case"NONE":case"none":break;case"BOUNCE_IN":t.from={duration:2,ease:"bounce.out",y:-1500};break;case"BOUNCE_IN_DOWN":t.from={ease:"bounce.out",y:-1500,duration:2};break;case"BOUNCE_IN_LEFT":t.from={ease:"bounce.out",x:-1500,duration:2};break;case"BOUNCE_IN_RIGHT":t.from={ease:"bounce.out",x:1500,duration:2};break;case"BOUNCE_IN_UP":t.from={ease:"bounce.out",y:1500,duration:2};break;case"BOUNCE_OUT":t.from={ease:"bounce.in",y:2,duration:2};break;case"BOUNCE_OUT_DOWN":break;case"BOUNCE_OUT_LEFT":break;case"BOUNCE_OUT_RIGHT":break;case"BOUNCE_OUT_UP":break;case"FADE_IN":t.to={ease:"power4.in",alpha:1,duration:.5};break;case"FADE_IN_DOWN":t.fromTo={from:{y:-1e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break;case"FADE_IN_LEFT":t.fromTo={from:{x:-1e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_RIGHT":t.fromTo={from:{x:2e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_UP":t.fromTo={from:{y:2e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break}return t};var k1=Object.prototype;function L1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||k1;return e===r}var ad=L1;function F1(e,t){return function(r){return e(t(r))}}var B1=F1,U1=B1,D1=U1(Object.keys,Object),$1=D1,G1=ad,q1=$1,j1=Object.prototype,H1=j1.hasOwnProperty;function z1(e){if(!G1(e))return q1(e);var t=[];for(var r in Object(e))H1.call(e,r)&&r!="constructor"&&t.push(r);return t}var od=z1,V1=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,ld=V1,W1=ld,X1=typeof self=="object"&&self&&self.Object===Object&&self,K1=W1||X1||Function("return this")(),Br=K1,Y1=Br,Z1=Y1.Symbol,wa=Z1,ud=wa,fd=Object.prototype,J1=fd.hasOwnProperty,Q1=fd.toString,fs=ud?ud.toStringTag:void 0;function tb(e){var t=J1.call(e,fs),r=e[fs];try{e[fs]=void 0;var n=!0}catch{}var i=Q1.call(e);return n&&(t?e[fs]=r:delete e[fs]),i}var eb=tb,rb=Object.prototype,nb=rb.toString;function ib(e){return nb.call(e)}var sb=ib,cd=wa,ab=eb,ob=sb,lb="[object Null]",ub="[object Undefined]",hd=cd?cd.toStringTag:void 0;function fb(e){return e==null?e===void 0?ub:lb:hd&&hd in Object(e)?ab(e):ob(e)}var cs=fb;function cb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hs=cb,hb=cs,db=hs,pb="[object AsyncFunction]",vb="[object Function]",gb="[object GeneratorFunction]",yb="[object Proxy]";function mb(e){if(!db(e))return!1;var t=hb(e);return t==vb||t==gb||t==pb||t==yb}var dd=mb,_b=Br,bb=_b["__core-js_shared__"],xb=bb,Zl=xb,pd=function(){var e=/[^.]+$/.exec(Zl&&Zl.keys&&Zl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Eb(e){return!!pd&&pd in e}var wb=Eb,Tb=Function.prototype,Ab=Tb.toString;function Sb(e){if(e!=null){try{return Ab.call(e)}catch{}try{return e+""}catch{}}return""}var vd=Sb,Ob=dd,Ib=wb,Rb=hs,Cb=vd,Nb=/[\\^$.*+?()[\]{}|]/g,Pb=/^\[object .+?Constructor\]$/,Mb=Function.prototype,kb=Object.prototype,Lb=Mb.toString,Fb=kb.hasOwnProperty,Bb=RegExp("^"+Lb.call(Fb).replace(Nb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ub(e){if(!Rb(e)||Ib(e))return!1;var t=Ob(e)?Bb:Pb;return t.test(Cb(e))}var Db=Ub;function $b(e,t){return e==null?void 0:e[t]}var Gb=$b,qb=Db,jb=Gb;function Hb(e,t){var r=jb(e,t);return qb(r)?r:void 0}var _i=Hb,zb=_i,Vb=Br,Wb=zb(Vb,"DataView"),Xb=Wb,Kb=_i,Yb=Br,Zb=Kb(Yb,"Map"),Jl=Zb,Jb=_i,Qb=Br,tx=Jb(Qb,"Promise"),ex=tx,rx=_i,nx=Br,ix=rx(nx,"Set"),sx=ix,ax=_i,ox=Br,lx=ax(ox,"WeakMap"),ux=lx,Ql=Xb,tu=Jl,eu=ex,ru=sx,nu=ux,gd=cs,bi=vd,yd="[object Map]",fx="[object Object]",md="[object Promise]",_d="[object Set]",bd="[object WeakMap]",xd="[object DataView]",cx=bi(Ql),hx=bi(tu),dx=bi(eu),px=bi(ru),vx=bi(nu),Un=gd;(Ql&&Un(new Ql(new ArrayBuffer(1)))!=xd||tu&&Un(new tu)!=yd||eu&&Un(eu.resolve())!=md||ru&&Un(new ru)!=_d||nu&&Un(new nu)!=bd)&&(Un=function(e){var t=gd(e),r=t==fx?e.constructor:void 0,n=r?bi(r):"";if(n)switch(n){case cx:return xd;case hx:return yd;case dx:return md;case px:return _d;case vx:return bd}return t});var Ed=Un;function gx(e){return e!=null&&typeof e=="object"}var ds=gx,yx=cs,mx=ds,_x="[object Arguments]";function bx(e){return mx(e)&&yx(e)==_x}var xx=bx,wd=xx,Ex=ds,Td=Object.prototype,wx=Td.hasOwnProperty,Tx=Td.propertyIsEnumerable,Ax=wd(function(){return arguments}())?wd:function(e){return Ex(e)&&wx.call(e,"callee")&&!Tx.call(e,"callee")},iu=Ax,Sx=Array.isArray,Ur=Sx,Ox=9007199254740991;function Ix(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ox}var su=Ix,Rx=dd,Cx=su;function Nx(e){return e!=null&&Cx(e.length)&&!Rx(e)}var Ta=Nx,Aa={exports:{}};function Px(){return!1}var Mx=Px;Aa.exports,function(e,t){var r=Br,n=Mx,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(Aa,Aa.exports);var au=Aa.exports,kx=cs,Lx=su,Fx=ds,Bx="[object Arguments]",Ux="[object Array]",Dx="[object Boolean]",$x="[object Date]",Gx="[object Error]",qx="[object Function]",jx="[object Map]",Hx="[object Number]",zx="[object Object]",Vx="[object RegExp]",Wx="[object Set]",Xx="[object String]",Kx="[object WeakMap]",Yx="[object ArrayBuffer]",Zx="[object DataView]",Jx="[object Float32Array]",Qx="[object Float64Array]",tE="[object Int8Array]",eE="[object Int16Array]",rE="[object Int32Array]",nE="[object Uint8Array]",iE="[object Uint8ClampedArray]",sE="[object Uint16Array]",aE="[object Uint32Array]",ae={};ae[Jx]=ae[Qx]=ae[tE]=ae[eE]=ae[rE]=ae[nE]=ae[iE]=ae[sE]=ae[aE]=!0,ae[Bx]=ae[Ux]=ae[Yx]=ae[Dx]=ae[Zx]=ae[$x]=ae[Gx]=ae[qx]=ae[jx]=ae[Hx]=ae[zx]=ae[Vx]=ae[Wx]=ae[Xx]=ae[Kx]=!1;function oE(e){return Fx(e)&&Lx(e.length)&&!!ae[kx(e)]}var lE=oE;function uE(e){return function(t){return e(t)}}var fE=uE,Sa={exports:{}};Sa.exports,function(e,t){var r=ld,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a&&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}(Sa,Sa.exports);var cE=Sa.exports,hE=lE,dE=fE,Ad=cE,Sd=Ad&&Ad.isTypedArray,pE=Sd?dE(Sd):hE,ou=pE,vE=od,gE=Ed,yE=iu,mE=Ur,_E=Ta,bE=au,xE=ad,EE=ou,wE="[object Map]",TE="[object Set]",AE=Object.prototype,SE=AE.hasOwnProperty;function OE(e){if(e==null)return!0;if(_E(e)&&(mE(e)||typeof e=="string"||typeof e.splice=="function"||bE(e)||EE(e)||yE(e)))return!e.length;var t=gE(e);if(t==wE||t==TE)return!e.size;if(xE(e))return!vE(e).length;for(var r in e)if(SE.call(e,r))return!1;return!0}var IE=OE;const xi=Tn(IE),RE=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],Ei=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState(!1),[i,a]=mt.useState(!1),[l,u]=mt.useState(!1),[f,h]=mt.useState(e.initialAlpha),p=mt.useRef(null),d=mt.useRef(null),c=mt.useRef(null),v=mt.useRef(null),y=mt.useRef(e.initialAlpha),{tl:m}=mt.useContext(mi),{uniqueId:b,startAt:_,endAt:E,initialAlpha:w,transformation:{x,y:A,width:C,height:S,scale:O=[1,1],rotation:L=0,colorCorrection:R,animation:I,effect:N},applyTransformer:k,disabled:F,ignoreTlForVideo:q,pointerdown:X,pointerout:z,pointerover:it}=e;console.log("abstractallProps",e);const{contrast:Z=1,saturation:$=1,brightness:M=1,alpha:U=1,blurRadius:j=0}=R||{},V={...M>1&&{brightness:M},...Z>1&&{contrast:Z},...$>1&&{saturation:$},...U!==0&&{alpha:U}};wr(qe.COMPLETE,()=>{p.current&&(y.current=w,h(w))}),Tt.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Tt.useEffect(()=>{p.current&&n(!0)},[]);const Y=()=>{console.log("reverse complete"),y.current=w},G=dt=>{y.current=dt.alpha},W=dt=>{y.current=dt.alpha};Tt.useEffect(()=>{let dt=Xe.context(()=>{});if(p.current&&m.current){const _t={alpha:1,duration:Number(E)-Number(_)},xt={onStart:G,onReverseComplete:Y,onStartParams:[{alpha:1}]},It={onComplete:W,onCompleteParams:[{alpha:0}]},Kt=M1(I||"None");dt=Xe.context(()=>{var jt,nt;m.current.to(p.current,{alpha:1,duration:.1,...xt},_).to(p.current,{alpha:0,duration:.1,...It},Number(E)-.09),q||m.current.from(p.current,{..._t},_),xi(Kt.from)?xi(Kt.to)?xi(Kt.fromTo)||m.current.fromTo(p.current,(jt=Kt.fromTo)==null?void 0:jt.from,(nt=Kt.fromTo)==null?void 0:nt.to,_):m.current.to(p.current,{...Kt.to},_):m.current.from(p.current,{...Kt.from},_)})}return()=>dt.revert()},[I,_,E,q]);const tt=Tt.useCallback(()=>{a(!0)},[]),et=Tt.useCallback(dt=>{console.log("changeEnd",dt),e.onAnchorTransformationEnd&&(console.log("running onAnchorTransformationEnd"),e.onAnchorTransformationEnd(dt)),a(!1)},[]),st=ve.withFilters(ve.Container,{...j>0&&{blur:wn.filters.BlurFilter},...!xi(V)&&{adjust:R1},matrix:wn.filters.ColorMatrixFilter}),ht=(R==null?void 0:R.enabled)||N&&N!==Bn.Normal;return Jt.jsxs(ve.Container,{ref:d,children:[Jt.jsx(ve.Container,{ref:p,alpha:y.current||f,position:[x,A],pivot:[x,A],width:C,height:S,scale:O,rotation:L,...!F&&!i&&{interactive:!0,buttonMode:!0,pointerdown:X,pointerover:it,pointerout:z},children:Jt.jsxs(ve.Container,{children:[ht&&Jt.jsx(st,{scale:1,blur:{blur:j,quality:4},adjust:V,apply:({matrix:dt})=>{N===Bn.BlackAndWhite?dt.desaturate():N===Bn.Sepia?dt.sepia():N===Bn.RetroVintage||N===Bn.NightVision?dt.negative():N===Bn.Normal&&dt.reset()},matrix:{enabled:!0,matrix:RE},children:Jt.jsx(ve.Container,{ref:c,children:e.children})}),!ht&&Jt.jsx(ve.Container,{ref:c,children:e.children})]})}),k&&Jt.jsx(C1,{pixiTransformerRef:v,imageRef:p,isMounted:r,transformCommit:et,transformChange:tt,mouseoverEvent:u,uniqueId:b})]})});Ei.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};const CE=Tt.forwardRef((e,t)=>{const r=mt.useRef(null),n=mt.useRef(null),{src:i,transformation:{x:a,y:l,width:u,height:f,anchor:h},pointerdown:p,pointerup:d}=e;return Jt.jsx(Ei,{...e,ref:t,children:Jt.jsx(ve.Container,{ref:n,children:Jt.jsx(ve.Sprite,{image:i,width:u,height:f,anchor:h,ref:r,x:a,y:l,interactive:!0,pointerdown:p,pointerup:d})})})}),Oa={build(e){const t=e.points;let r,n,i,a,l,u;if(e.type===Re.CIRC){const y=e.shape;r=y.x,n=y.y,l=u=y.radius,i=a=0}else if(e.type===Re.ELIP){const y=e.shape;r=y.x,n=y.y,l=y.width,u=y.height,i=a=0}else{const y=e.shape,m=y.width/2,b=y.height/2;r=y.x+m,n=y.y+b,l=u=Math.max(0,Math.min(y.radius,Math.min(m,b))),i=m-l,a=b-u}if(!(l>=0&&u>=0&&i>=0&&a>=0)){t.length=0;return}const f=Math.ceil(2.3*Math.sqrt(l+u)),h=f*8+(i?4:0)+(a?4:0);if(t.length=h,h===0)return;if(f===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+a,t[2]=t[4]=r-i,t[5]=t[7]=n-a;return}let p=0,d=f*4+(i?2:0)+2,c=d,v=h;{const y=i+l,m=a,b=r+y,_=r-y,E=n+m;if(t[p++]=b,t[p++]=E,t[--d]=E,t[--d]=_,a){const w=n-m;t[c++]=_,t[c++]=w,t[--v]=w,t[--v]=b}}for(let y=1;y<f;y++){const m=Math.PI/2*(y/f),b=i+Math.cos(m)*l,_=a+Math.sin(m)*u,E=r+b,w=r-b,x=n+_,A=n-_;t[p++]=E,t[p++]=x,t[--d]=x,t[--d]=w,t[c++]=w,t[c++]=A,t[--v]=A,t[--v]=E}{const y=i,m=a+u,b=r+y,_=r-y,E=n+m,w=n-m;t[p++]=b,t[p++]=E,t[--v]=w,t[--v]=b,i&&(t[p++]=_,t[p++]=E,t[--v]=w,t[--v]=_)}},triangulate(e,t){const r=e.points,n=t.points,i=t.indices;if(r.length===0)return;let a=n.length/2;const l=a;let u,f;if(e.type!==Re.RREC){const p=e.shape;u=p.x,f=p.y}else{const p=e.shape;u=p.x+p.width/2,f=p.y+p.height/2}const h=e.matrix;n.push(e.matrix?h.a*u+h.c*f+h.tx:u,e.matrix?h.b*u+h.d*f+h.ty:f),a++,n.push(r[0],r[1]);for(let p=2;p<r.length;p+=2)n.push(r[p],r[p+1]),i.push(a++,l,a);i.push(l+1,l,a)}};function Od(e,t=!1){const r=e.length;if(r<6)return;let n=0;for(let i=0,a=e[r-2],l=e[r-1];i<r;i+=2){const u=e[i],f=e[i+1];n+=(u-a)*(f+l),a=u,l=f}if(!t&&n>0||t&&n<=0){const i=r/2;for(let a=i+i%2;a<r;a+=2){const l=r-a-2,u=r-a-1,f=a,h=a+1;[e[l],e[f]]=[e[f],e[l]],[e[u],e[h]]=[e[h],e[u]]}}}const Id={build(e){e.points=e.shape.points.slice()},triangulate(e,t){let r=e.points;const n=e.holes,i=t.points,a=t.indices;if(r.length>=6){Od(r,!1);const l=[];for(let h=0;h<n.length;h++){const p=n[h];Od(p.points,!0),l.push(r.length/2),r=r.concat(p.points)}const u=jy(r,l,2);if(!u)return;const f=i.length/2;for(let h=0;h<u.length;h+=3)a.push(u[h]+f),a.push(u[h+1]+f),a.push(u[h+2]+f);for(let h=0;h<r.length;h++)i.push(r[h])}}},NE={build(e){const t=e.shape,r=t.x,n=t.y,i=t.width,a=t.height,l=e.points;l.length=0,i>=0&&a>=0&&l.push(r,n,r+i,n,r+i,n+a,r,n+a)},triangulate(e,t){const r=e.points,n=t.points;if(r.length===0)return;const i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},PE={build(e){Oa.build(e)},triangulate(e,t){Oa.triangulate(e,t)}};var Tr=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Tr||{}),Dn=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(Dn||{});const wi={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let r=Math.ceil(e/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}};class Rd{static curveTo(t,r,n,i,a,l){const u=l[l.length-2],h=l[l.length-1]-r,p=u-t,d=i-r,c=n-t,v=Math.abs(h*c-p*d);if(v<1e-8||a===0)return(l[l.length-2]!==t||l[l.length-1]!==r)&&l.push(t,r),null;const y=h*h+p*p,m=d*d+c*c,b=h*d+p*c,_=a*Math.sqrt(y)/v,E=a*Math.sqrt(m)/v,w=_*b/y,x=E*b/m,A=_*c+E*p,C=_*d+E*h,S=p*(E+w),O=h*(E+w),L=c*(_+x),R=d*(_+x),I=Math.atan2(O-C,S-A),N=Math.atan2(R-C,L-A);return{cx:A+t,cy:C+r,radius:a,startAngle:I,endAngle:N,anticlockwise:p*d>c*h}}static arc(t,r,n,i,a,l,u,f,h){const p=u-l,d=wi._segmentsCount(Math.abs(p)*a,Math.ceil(Math.abs(p)/ia)*40),c=p/(d*2),v=c*2,y=Math.cos(c),m=Math.sin(c),b=d-1,_=b%1/b;for(let E=0;E<=b;++E){const w=E+_*E,x=c+l+v*w,A=Math.cos(x),C=-Math.sin(x);h.push((y*A+m*C)*a+n,(y*-C+m*A)*a+i)}}}class ME{constructor(){this.reset()}begin(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n}end(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class lu{static curveLength(t,r,n,i,a,l,u,f){let p=0,d=0,c=0,v=0,y=0,m=0,b=0,_=0,E=0,w=0,x=0,A=t,C=r;for(let S=1;S<=10;++S)d=S/10,c=d*d,v=c*d,y=1-d,m=y*y,b=m*y,_=b*t+3*m*d*n+3*y*c*a+v*u,E=b*r+3*m*d*i+3*y*c*l+v*f,w=A-_,x=C-E,A=_,C=E,p+=Math.sqrt(w*w+x*x);return p}static curveTo(t,r,n,i,a,l,u){const f=u[u.length-2],h=u[u.length-1];u.length-=2;const p=wi._segmentsCount(lu.curveLength(f,h,t,r,n,i,a,l));let d=0,c=0,v=0,y=0,m=0;u.push(f,h);for(let b=1,_=0;b<=p;++b)_=b/p,d=1-_,c=d*d,v=c*d,y=_*_,m=y*_,u.push(v*f+3*c*_*t+3*d*y*n+m*a,v*h+3*c*_*r+3*d*y*i+m*l)}}function Cd(e,t,r,n,i,a,l,u){const f=e-r*i,h=t-n*i,p=e+r*a,d=t+n*a;let c,v;l?(c=n,v=-r):(c=-n,v=r);const y=f+c,m=h+v,b=p+c,_=d+v;return u.push(y,m,b,_),2}function $n(e,t,r,n,i,a,l,u){const f=r-e,h=n-t;let p=Math.atan2(f,h),d=Math.atan2(i-e,a-t);u&&p<d?p+=Math.PI*2:!u&&p>d&&(d+=Math.PI*2);let c=p;const v=d-p,y=Math.abs(v),m=Math.sqrt(f*f+h*h),b=(15*y*Math.sqrt(m)/Math.PI>>0)+1,_=v/b;if(c+=_,u){l.push(e,t,r,n);for(let E=1,w=c;E<b;E++,w+=_)l.push(e,t,e+Math.sin(w)*m,t+Math.cos(w)*m);l.push(e,t,i,a)}else{l.push(r,n,e,t);for(let E=1,w=c;E<b;E++,w+=_)l.push(e+Math.sin(w)*m,t+Math.cos(w)*m,e,t);l.push(i,a,e,t)}return b*2}function kE(e,t){const r=e.shape;let n=e.points||r.points.slice();const i=t.closePointEps;if(n.length===0)return;const a=e.lineStyle,l=new Oe(n[0],n[1]),u=new Oe(n[n.length-2],n[n.length-1]),f=r.type!==Re.POLY||r.closeStroke,h=Math.abs(l.x-u.x)<i&&Math.abs(l.y-u.y)<i;if(f){n=n.slice(),h&&(n.pop(),n.pop(),u.set(n[n.length-2],n[n.length-1]));const z=(l.x+u.x)*.5,it=(u.y+l.y)*.5;n.unshift(z,it),n.push(z,it)}const p=t.points,d=n.length/2;let c=n.length;const v=p.length/2,y=a.width/2,m=y*y,b=a.miterLimit*a.miterLimit;let _=n[0],E=n[1],w=n[2],x=n[3],A=0,C=0,S=-(E-x),O=_-w,L=0,R=0,I=Math.sqrt(S*S+O*O);S/=I,O/=I,S*=y,O*=y;const N=a.alignment,k=(1-N)*2,F=N*2;f||(a.cap===Dn.ROUND?c+=$n(_-S*(k-F)*.5,E-O*(k-F)*.5,_-S*k,E-O*k,_+S*F,E+O*F,p,!0)+2:a.cap===Dn.SQUARE&&(c+=Cd(_,E,S,O,k,F,!0,p))),p.push(_-S*k,E-O*k,_+S*F,E+O*F);for(let z=1;z<d-1;++z){_=n[(z-1)*2],E=n[(z-1)*2+1],w=n[z*2],x=n[z*2+1],A=n[(z+1)*2],C=n[(z+1)*2+1],S=-(E-x),O=_-w,I=Math.sqrt(S*S+O*O),S/=I,O/=I,S*=y,O*=y,L=-(x-C),R=w-A,I=Math.sqrt(L*L+R*R),L/=I,R/=I,L*=y,R*=y;const it=w-_,Z=E-x,$=w-A,M=C-x,U=it*$+Z*M,j=Z*$-M*it,V=j<0;if(Math.abs(j)<.001*Math.abs(U)){p.push(w-S*k,x-O*k,w+S*F,x+O*F),U>=0&&(a.join===Tr.ROUND?c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,p,!1)+4:c+=2,p.push(w-L*F,x-R*F,w+L*k,x+R*k));continue}const Y=(-S+_)*(-O+x)-(-S+w)*(-O+E),G=(-L+A)*(-R+x)-(-L+w)*(-R+C),W=(it*G-$*Y)/j,tt=(M*Y-Z*G)/j,et=(W-w)*(W-w)+(tt-x)*(tt-x),st=w+(W-w)*k,ht=x+(tt-x)*k,dt=w-(W-w)*F,_t=x-(tt-x)*F,xt=Math.min(it*it+Z*Z,$*$+M*M),It=V?k:F,Kt=xt+It*It*m,jt=et<=Kt;let nt=a.join;if(nt===Tr.MITER&&et/m>b&&(nt=Tr.BEVEL),jt)switch(nt){case Tr.MITER:{p.push(st,ht,dt,_t);break}case Tr.BEVEL:{V?p.push(st,ht,w+S*F,x+O*F,st,ht,w+L*F,x+R*F):p.push(w-S*k,x-O*k,dt,_t,w-L*k,x-R*k,dt,_t),c+=2;break}case Tr.ROUND:{V?(p.push(st,ht,w+S*F,x+O*F),c+=$n(w,x,w+S*F,x+O*F,w+L*F,x+R*F,p,!0)+4,p.push(st,ht,w+L*F,x+R*F)):(p.push(w-S*k,x-O*k,dt,_t),c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,p,!1)+4,p.push(w-L*k,x-R*k,dt,_t));break}}else{switch(p.push(w-S*k,x-O*k,w+S*F,x+O*F),nt){case Tr.MITER:{V?p.push(dt,_t,dt,_t):p.push(st,ht,st,ht),c+=2;break}case Tr.ROUND:{V?c+=$n(w,x,w+S*F,x+O*F,w+L*F,x+R*F,p,!0)+2:c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,p,!1)+2;break}}p.push(w-L*k,x-R*k,w+L*F,x+R*F),c+=2}}_=n[(d-2)*2],E=n[(d-2)*2+1],w=n[(d-1)*2],x=n[(d-1)*2+1],S=-(E-x),O=_-w,I=Math.sqrt(S*S+O*O),S/=I,O/=I,S*=y,O*=y,p.push(w-S*k,x-O*k,w+S*F,x+O*F),f||(a.cap===Dn.ROUND?c+=$n(w-S*(k-F)*.5,x-O*(k-F)*.5,w-S*k,x-O*k,w+S*F,x+O*F,p,!1)+2:a.cap===Dn.SQUARE&&(c+=Cd(w,x,S,O,k,F,!1,p)));const q=t.indices,X=wi.epsilon*wi.epsilon;for(let z=v;z<c+v-2;++z)_=p[z*2],E=p[z*2+1],w=p[(z+1)*2],x=p[(z+1)*2+1],A=p[(z+2)*2],C=p[(z+2)*2+1],!(Math.abs(_*(x-C)+w*(C-E)+A*(E-x))<X)&&q.push(z,z+1,z+2)}function LE(e,t){let r=0;const n=e.shape,i=e.points||n.points,a=n.type!==Re.POLY||n.closeStroke;if(i.length===0)return;const l=t.points,u=t.indices,f=i.length/2,h=l.length/2;let p=h;for(l.push(i[0],i[1]),r=1;r<f;r++)l.push(i[r*2],i[r*2+1]),u.push(p,p+1),p++;a&&u.push(p,h)}function Nd(e,t){e.lineStyle.native?LE(e,t):kE(e,t)}class uu{static curveLength(t,r,n,i,a,l){const u=t-2*n+a,f=r-2*i+l,h=2*n-2*t,p=2*i-2*r,d=4*(u*u+f*f),c=4*(u*h+f*p),v=h*h+p*p,y=2*Math.sqrt(d+c+v),m=Math.sqrt(d),b=2*d*m,_=2*Math.sqrt(v),E=c/m;return(b*y+m*c*(y-_)+(4*v*d-c*c)*Math.log((2*m+E+y)/(E+_)))/(4*b)}static curveTo(t,r,n,i,a){const l=a[a.length-2],u=a[a.length-1],f=wi._segmentsCount(uu.curveLength(l,u,t,r,n,i));let h=0,p=0;for(let d=1;d<=f;++d){const c=d/f;h=l+(t-l)*c,p=u+(r-u)*c,a.push(h+(t+(n-t)*c-h)*c,p+(r+(i-r)*c-p)*c)}}}const fu={[Re.POLY]:Id,[Re.CIRC]:Oa,[Re.ELIP]:Oa,[Re.RECT]:NE,[Re.RREC]:PE},Pd=[],Ia=[];class cu{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?re.EMPTY:(t=t||new re(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,r){const{a:n,b:i,c:a,d:l,tx:u,ty:f}=t,h=n*r.x+a*r.y+u,p=i*r.x+l*r.y+f;this.minX=Math.min(this.minX,h),this.maxX=Math.max(this.maxX,h),this.minY=Math.min(this.minY,p),this.maxY=Math.max(this.maxY,p)}addQuad(t){let r=this.minX,n=this.minY,i=this.maxX,a=this.maxY,l=t[0],u=t[1];r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[2],u=t[3],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[4],u=t[5],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[6],u=t[7],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,this.minX=r,this.minY=n,this.maxX=i,this.maxY=a}addFrame(t,r,n,i,a){this.addFrameMatrix(t.worldTransform,r,n,i,a)}addFrameMatrix(t,r,n,i,a){const l=t.a,u=t.b,f=t.c,h=t.d,p=t.tx,d=t.ty;let c=this.minX,v=this.minY,y=this.maxX,m=this.maxY,b=l*r+f*n+p,_=u*r+h*n+d;c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*i+f*n+p,_=u*i+h*n+d,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*r+f*a+p,_=u*r+h*a+d,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*i+f*a+p,_=u*i+h*a+d,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,this.minX=c,this.minY=v,this.maxX=y,this.maxY=m}addVertexData(t,r,n){let i=this.minX,a=this.minY,l=this.maxX,u=this.maxY;for(let f=r;f<n;f+=2){const h=t[f],p=t[f+1];i=h<i?h:i,a=p<a?p:a,l=h>l?h:l,u=p>u?p:u}this.minX=i,this.minY=a,this.maxX=l,this.maxY=u}addVertices(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)}addVerticesMatrix(t,r,n,i,a=0,l=a){const u=t.a,f=t.b,h=t.c,p=t.d,d=t.tx,c=t.ty;let v=this.minX,y=this.minY,m=this.maxX,b=this.maxY;for(let _=n;_<i;_+=2){const E=r[_],w=r[_+1],x=u*E+h*w+d,A=p*w+f*E+c;v=Math.min(v,x-a),m=Math.max(m,x+a),y=Math.min(y,A-l),b=Math.max(b,A+l)}this.minX=v,this.minY=y,this.maxX=m,this.maxY=b}addBounds(t){const r=this.minX,n=this.minY,i=this.maxX,a=this.maxY;this.minX=t.minX<r?t.minX:r,this.minY=t.minY<n?t.minY:n,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>a?t.maxY:a}addBoundsMask(t,r){const n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,a=t.maxX<r.maxX?t.maxX:r.maxX,l=t.maxY<r.maxY?t.maxY:r.maxY;if(n<=a&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,p=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=a>h?a:h,this.maxY=l>p?l:p}}addBoundsMatrix(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,r){const n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,a=t.maxX<r.x+r.width?t.maxX:r.x+r.width,l=t.maxY<r.y+r.height?t.maxY:r.y+r.height;if(n<=a&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,p=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=a>h?a:h,this.maxY=l>p?l:p}}pad(t=0,r=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)}addFramePad(t,r,n,i,a,l){t-=a,r-=l,n+=a,i+=l,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i}}class Ti extends Bs{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new Ul,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new cu,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];Object.defineProperty(Ti.prototype,i,Object.getOwnPropertyDescriptor(t,i))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(t,r){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new re),r=this._boundsRect),this._bounds.getRectangle(r)}getLocalBounds(t){t||(this._localBoundsRect||(this._localBoundsRect=new re),t=this._localBoundsRect),this._localBounds||(this._localBounds=new cu);const r=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const i=this._bounds,a=this._boundsID;this._bounds=this._localBounds;const l=this.getBounds(!1,t);return this.parent=n,this.transform=r,this._bounds=i,this._bounds.updateID+=this._boundsID-a,l}toGlobal(t,r,n=!1){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,r)}toLocal(t,r,n,i){return r&&(t=r.toGlobal(t,n,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,n)}setParent(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t}removeFromParent(){var t;(t=this.parent)==null||t.removeChild(this)}setTransform(t=0,r=0,n=1,i=1,a=0,l=0,u=0,f=0,h=0){return this.position.x=t,this.position.y=r,this.scale.x=n||1,this.scale.y=i||1,this.rotation=a,this.skew.x=l,this.skew.y=u,this.pivot.x=f,this.pivot.y=h,this}destroy(t){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new FE),this.tempDisplayObjectParent}enableTempParent(){const t=this.parent;return this.parent=this._tempDisplayObjectParent,t}disableTempParent(t){this.parent=t}get x(){return this.position.x}set x(t){this.transform.position.x=t}get y(){return this.position.y}set y(t){this.transform.position.y=t}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(t){this.transform.position.copyFrom(t)}get scale(){return this.transform.scale}set scale(t){this.transform.scale.copyFrom(t)}get pivot(){return this.transform.pivot}set pivot(t){this.transform.pivot.copyFrom(t)}get skew(){return this.transform.skew}set skew(t){this.transform.skew.copyFrom(t)}get rotation(){return this.transform.rotation}set rotation(t){this.transform.rotation=t}get angle(){return this.transform.rotation*w_}set angle(t){this.transform.rotation=t*T_}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}get mask(){return this._mask}set mask(t){if(this._mask!==t){if(this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1))}if(this._mask=t,this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++)}}}}class FE extends Ti{constructor(){super(...arguments),this.sortDirty=null}}Ti.prototype.displayObjectUpdateTransform=Ti.prototype.updateTransform;const BE=new Fe;function UE(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}const hu=class extends Ti{constructor(){super(),this.children=[],this.sortableChildren=hu.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(e){}addChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.addChild(e[t]);else{const t=e[0];t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this)}return e[0]}addChildAt(e,t){if(t<0||t>this.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}getChildIndex(e){const t=this.children.indexOf(e);if(t===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return t}setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const r=this.getChildIndex(e);ta(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.removeChild(e[t]);else{const t=e[0],r=this.children.indexOf(t);if(r===-1)return null;t.parent=null,t.transform._parentID=-1,ta(this.children,r,1),this._boundsID++,this.onChildrenChange(r),t.emit("removed",this),this.emit("childRemoved",t,this,r)}return e[0]}removeChildAt(e){const t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,ta(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t}removeChildren(e=0,t=this.children.length){const r=e,n=t,i=n-r;let a;if(i>0&&i<=n){a=this.children.splice(r,i);for(let l=0;l<a.length;++l)a[l].parent=null,a[l].transform&&(a[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(let l=0;l<a.length;++l)a[l].emit("removed",this),this.emit("childRemoved",a[l],this,l);return a}else if(i===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let e=!1;for(let t=0,r=this.children.length;t<r;++t){const n=this.children[t];n._lastSortedIndex=t,!e&&n.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(UE),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e<t;++e){const r=this.children[e];r.visible&&r.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let e=0;e<this.children.length;e++){const t=this.children[e];if(!(!t.visible||!t.renderable))if(t.calculateBounds(),t._mask){const r=t._mask.isMaskData?t._mask.maskObject:t._mask;r?(r.calculateBounds(),this._bounds.addBoundsMask(t._bounds,r._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(e,t=!1){const r=super.getLocalBounds(e);if(!t)for(let n=0,i=this.children.length;n<i;++n){const a=this.children[n];a.visible&&a.updateTransform()}return r}_calculateBounds(){}_renderWithCulling(e){const t=e.renderTexture.sourceFrame;if(!(t.width>0&&t.height>0))return;let r,n;this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==hu.prototype._render&&(r=this.getBounds(!0));const i=e.projection.transform;if(i&&(n?(n=BE.copyFrom(n),n.prepend(i)):n=i),r&&t.intersects(r,n))this._render(e);else if(this.cullArea)return;for(let a=0,l=this.children.length;a<l;++a){const u=this.children[a],f=u.cullable;u.cullable=f||!this.cullArea,u.render(e),u.cullable=f}}render(e){var t;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(t=this.filters)!=null&&t.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(let r=0,n=this.children.length;r<n;++r)this.children[r].render(e)}}renderAdvanced(e){var i,a,l;const t=this.filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let u=0;u<t.length;u++)t[u].enabled&&this._enabledFilters.push(t[u])}const n=t&&((i=this._enabledFilters)==null?void 0:i.length)||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==xe.NONE));if(n&&e.batch.flush(),t&&((a=this._enabledFilters)!=null&&a.length)&&e.filter.push(this,this._enabledFilters),r&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(let u=0,f=this.children.length;u<f;++u)this.children[u].render(e)}n&&e.batch.flush(),r&&e.mask.pop(this),t&&((l=this._enabledFilters)!=null&&l.length)&&e.filter.pop()}_render(e){}destroy(e){super.destroy(),this.sortDirty=!1;const t=typeof e=="boolean"?e:e==null?void 0:e.children,r=this.removeChildren(0,this.children.length);if(t)for(let n=0;n<r.length;++n)r[n].destroy(e)}get width(){return this.scale.x*this.getLocalBounds().width}set width(e){const t=this.getLocalBounds().width;t!==0?this.scale.x=e/t:this.scale.x=1,this._width=e}get height(){return this.scale.y*this.getLocalBounds().height}set height(e){const t=this.getLocalBounds().height;t!==0?this.scale.y=e/t:this.scale.y=1,this._height=e}};let Ai=hu;Ai.defaultSortableChildren=!1,Ai.prototype.containerUpdateTransform=Ai.prototype.updateTransform,Object.defineProperties(Ht,{SORTABLE_CHILDREN:{get(){return Ai.defaultSortableChildren},set(e){Qt("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Ai.defaultSortableChildren=e}}});class Ra{constructor(t,r=null,n=null,i=null){this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}clone(){return new Ra(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const Si=new Oe,Md=class extends ph{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new cu,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Ia.push(this.drawCalls[e]);this.drawCalls.length=0;for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t.reset(),Pd.push(t)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,r=null,n=null){const i=new Ra(e,t,r,n);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const r=new Ra(e,null,null,t),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this}destroy(){super.destroy();for(let e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(e){const t=this.graphicsData;for(let r=0;r<t.length;++r){const n=t[r];if(n.fillStyle.visible&&n.shape&&(n.matrix?n.matrix.applyInverse(e,Si):Si.copyFrom(e),n.shape.contains(Si.x,Si.y))){let i=!1;if(n.holes){for(let a=0;a<n.holes.length;a++)if(n.holes[a].shape.contains(Si.x,Si.y)){i=!0;break}}if(!i)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const e=this.uvs,t=this.graphicsData;let r=null,n=null;this.batches.length>0&&(r=this.batches[this.batches.length-1],n=r.style);for(let u=this.shapeIndex;u<t.length;u++){this.shapeIndex++;const f=t[u],h=f.fillStyle,p=f.lineStyle;fu[f.type].build(f),f.matrix&&this.transformPoints(f.points,f.matrix),(h.visible||p.visible)&&this.processHoles(f.holes);for(let c=0;c<2;c++){const v=c===0?h:p;if(!v.visible)continue;const y=v.texture.baseTexture,m=this.indices.length,b=this.points.length/2;y.wrapMode=Vi.REPEAT,c===0?this.processFill(f):this.processLine(f);const _=this.points.length/2-b;_!==0&&(r&&!this._compareStyles(n,v)&&(r.end(m,b),r=null),r||(r=Pd.pop()||new ME,r.begin(v,m,b),this.batches.push(r),n=v),this.addUvs(this.points,e,v.texture,b,_,v.matrix))}}const i=this.indices.length,a=this.points.length/2;if(r&&r.end(i,a),this.batches.length===0){this.batchable=!0;return}const l=a>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&l===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=l?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e<t;e++){const r=this.graphicsData[e],n=r.fillStyle,i=r.lineStyle;if(n&&!n.texture.baseTexture.valid||i&&!i.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const e=this.batches;for(let t=0,r=e.length;t<r;t++){const n=e[t];for(let i=0;i<n.size;i++){const a=n.start+i;this.indicesUint16[a]=this.indicesUint16[a]-n.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<Md.BATCHABLE_SIZE*2}buildDrawCalls(){let e=++Vt._globalBatch;for(let p=0;p<this.drawCalls.length;p++)this.drawCalls[p].texArray.clear(),Ia.push(this.drawCalls[p]);this.drawCalls.length=0;const t=this.colors,r=this.textureIds;let n=Ia.pop();n||(n=new kl,n.texArray=new $l),n.texArray.count=0,n.start=0,n.size=0,n.type=an.TRIANGLES;let i=0,a=null,l=0,u=!1,f=an.TRIANGLES,h=0;this.drawCalls.push(n);for(let p=0;p<this.batches.length;p++){const d=this.batches[p],c=8,v=d.style,y=v.texture.baseTexture;u!==!!v.native&&(u=!!v.native,f=u?an.LINES:an.TRIANGLES,a=null,i=c,e++),a!==y&&(a=y,y._batchEnabled!==e&&(i===c&&(e++,i=0,n.size>0&&(n=Ia.pop(),n||(n=new kl,n.texArray=new $l),this.drawCalls.push(n)),n.start=h,n.size=0,n.texArray.count=0,n.type=f),y.touched=1,y._batchEnabled=e,y._batchLocation=i,y.wrapMode=Vi.REPEAT,n.texArray.elements[n.texArray.count++]=y,i++)),n.size+=d.size,h+=d.size,l=y._batchLocation,this.addColors(t,v.color,v.alpha,d.attribSize,d.attribStart),this.addTextureIds(r,l,d.attribSize,d.attribStart)}Vt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(e.length*3*4),a=new Float32Array(i),l=new Uint32Array(i);let u=0;for(let f=0;f<e.length/2;f++)a[u++]=e[f*2],a[u++]=e[f*2+1],a[u++]=t[f*2],a[u++]=t[f*2+1],l[u++]=r[f],a[u++]=n[f];this._buffer.update(i),this._indexBuffer.update(this.indicesUint16)}processFill(e){e.holes.length?Id.triangulate(e,this):fu[e.type].triangulate(e,this)}processLine(e){Nd(e,this);for(let t=0;t<e.holes.length;t++)Nd(e.holes[t],this)}processHoles(e){for(let t=0;t<e.length;t++){const r=e[t];fu[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}}calculateBounds(){const e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)}transformPoints(e,t){for(let r=0;r<e.length/2;r++){const n=e[r*2],i=e[r*2+1];e[r*2]=t.a*n+t.c*i+t.tx,e[r*2+1]=t.b*n+t.d*i+t.ty}}addColors(e,t,r,n,i=0){const a=Ge.shared.setValue(t).toLittleEndianNumber(),l=Ge.shared.setValue(a).toPremultiplied(r);e.length=Math.max(e.length,i+n);for(let u=0;u<n;u++)e[i+u]=l}addTextureIds(e,t,r,n=0){e.length=Math.max(e.length,n+r);for(let i=0;i<r;i++)e[n+i]=t}addUvs(e,t,r,n,i,a=null){let l=0;const u=t.length,f=r.frame;for(;l<i;){let p=e[(n+l)*2],d=e[(n+l)*2+1];if(a){const c=a.a*p+a.c*d+a.tx;d=a.b*p+a.d*d+a.ty,p=c}l++,t.push(p/f.width,d/f.height)}const h=r.baseTexture;(f.width<h.width||f.height<h.height)&&this.adjustUvs(t,r,u,i)}adjustUvs(e,t,r,n){const i=t.baseTexture,a=1e-6,l=r+n*2,u=t.frame,f=u.width/i.width,h=u.height/i.height;let p=u.x/u.width,d=u.y/u.height,c=Math.floor(e[r]+a),v=Math.floor(e[r+1]+a);for(let y=r+2;y<l;y+=2)c=Math.min(c,Math.floor(e[y]+a)),v=Math.min(v,Math.floor(e[y+1]+a));p-=c,d-=v;for(let y=r;y<l;y+=2)e[y]=(e[y]+p)*f,e[y+1]=(e[y+1]+d)*h}};let kd=Md;kd.BATCHABLE_SIZE=100;class Ca{constructor(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const t=new Ca;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t}reset(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class du extends Ca{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=Dn.BUTT,this.join=Tr.MITER,this.miterLimit=10}clone(){const t=new du;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const pu={},Na=class extends Ai{constructor(e=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new Ca,this._lineStyle=new du,this._matrix=null,this._holeMode=!1,this.state=ra.for2d(),this._geometry=e||new kd,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Ge(16777215),this.blendMode=Rt.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new Na(this._geometry)}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(e=null,t=0,r,n=.5,i=!1){return typeof e=="number"&&(e={width:e,color:t,alpha:r,alignment:n,native:i}),this.lineTextureStyle(e)}lineTextureStyle(e){const t={width:0,texture:Wt.WHITE,color:e!=null&&e.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:Dn.BUTT,join:Tr.MITER,miterLimit:10};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.width>0&&e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:r},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new is,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new is,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,r,n){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),uu.curveTo(e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,a){return this._initCurve(),lu.curveTo(e,t,r,n,i,a,this.currentPath.points),this}arcTo(e,t,r,n,i){this._initCurve(e,t);const a=this.currentPath.points,l=Rd.curveTo(e,t,r,n,i,a);if(l){const{cx:u,cy:f,radius:h,startAngle:p,endAngle:d,anticlockwise:c}=l;this.arc(u,f,h,p,d,c)}return this}arc(e,t,r,n,i,a=!1){if(n===i)return this;if(!a&&i<=n?i+=ia:a&&n<=i&&(n+=ia),i-n===0)return this;const u=e+Math.cos(n)*r,f=t+Math.sin(n)*r,h=this._geometry.closePointEps;let p=this.currentPath?this.currentPath.points:null;if(p){const d=Math.abs(p[p.length-2]-u),c=Math.abs(p[p.length-1]-f);d<h&&c<h||p.push(u,f)}else this.moveTo(u,f),p=this.currentPath.points;return Rd.arc(u,f,e,t,r,n,i,a,p),this}beginFill(e=0,t){return this.beginTextureFill({texture:Wt.WHITE,color:e,alpha:t})}normalizeColor(e){const t=Ge.shared.setValue(e.color??0);e.color=t.toNumber(),e.alpha??(e.alpha=t.alpha)}beginTextureFill(e){const t={texture:Wt.WHITE,color:16777215,matrix:null};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:r},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,r,n){return this.drawShape(new re(e,t,r,n))}drawRoundedRect(e,t,r,n,i){return this.drawShape(new Fl(e,t,r,n,i))}drawCircle(e,t,r){return this.drawShape(new Ll(e,t,r))}drawEllipse(e,t,r,n){return this.drawShape(new A_(e,t,r,n))}drawPolygon(...e){let t,r=!0;const n=e[0];n.points?(r=n.closeStroke,t=n.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new is(t);return i.closeStroke=r,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Re.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,r=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(e.points);for(let n=0;n<r;n++){const i=e.batches[n],a=i.style.color,l=new Float32Array(this.vertexData.buffer,i.attribStart*4*2,i.attribSize*2),u=new Float32Array(e.uvsFloat32.buffer,i.attribStart*4*2,i.attribSize*2),f=new Uint16Array(e.indicesUint16.buffer,i.start*2,i.size),h={vertexData:l,blendMode:t,indices:f,uvs:u,_batchRGB:Ge.shared.setValue(a).toRgbArray(),_tintRGB:a,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[n]=h}}_renderBatched(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let t=0,r=this.batches.length;t<r;t++){const n=this.batches[t];n.worldAlpha=this.worldAlpha*n.alpha,e.plugins[this.pluginName].render(n)}}}_renderDirect(e){const t=this._resolveDirectShader(e),r=this._geometry,n=this.worldAlpha,i=t.uniforms,a=r.drawCalls;i.translationMatrix=this.transform.worldTransform,Ge.shared.setValue(this._tintColor).premultiply(n).toArray(i.tint),e.shader.bind(t),e.geometry.bind(r,t),e.state.set(this.state);for(let l=0,u=a.length;l<u;l++)this._renderDrawCallDirect(e,r.drawCalls[l])}_renderDrawCallDirect(e,t){const{texArray:r,type:n,size:i,start:a}=t,l=r.count;for(let u=0;u<l;u++)e.texture.bind(r.elements[u],u);e.geometry.draw(n,i,a)}_resolveDirectShader(e){let t=this.shader;const r=this.pluginName;if(!t){if(!pu[r]){const{maxTextures:n}=e.plugins[r],i=new Int32Array(n);for(let u=0;u<n;u++)i[u]=u;const a={tint:new Float32Array([1,1,1,1]),translationMatrix:new Fe,default:mr.from({uSamplers:i},!0)},l=e.plugins[r]._shader.program;pu[r]=new as(l,a)}t=pu[r]}return t}_calculateBounds(){this.finishPoly();const e=this._geometry;if(!e.graphicsData.length)return;const{minX:t,minY:r,maxX:n,maxY:i}=e.bounds;this._bounds.addFrame(this.transform,t,r,n,i)}containsPoint(e){return this.worldTransform.applyInverse(e,Na._TEMP_POINT),this._geometry.containsPoint(Na._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t._tintRGB=Ge.shared.setValue(this._tintColor).multiply(t._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const e=this.transform._worldID;if(this._transformID===e)return;this._transformID=e;const t=this.transform.worldTransform,r=t.a,n=t.b,i=t.c,a=t.d,l=t.tx,u=t.ty,f=this._geometry.points,h=this.vertexData;let p=0;for(let d=0;d<f.length;d+=2){const c=f[d],v=f[d+1];h[p++]=r*c+i*v+l,h[p++]=a*v+n*c+u}}closePath(){const e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this}setMatrix(e){return this._matrix=e,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(e)}};let vu=Na;vu.curves=wi,vu._TEMP_POINT=new Oe;var DE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gu={},$E={get exports(){return gu},set exports(e){gu=e}};/*!
|
|
539
|
+
`;class R1 extends Wr{constructor(t){super(O1,I1),this.gamma=1,this.saturation=1,this.contrast=1,this.brightness=1,this.red=1,this.green=1,this.blue=1,this.alpha=1,Object.assign(this,t)}apply(t,r,n,i){this.uniforms.gamma=Math.max(this.gamma,1e-4),this.uniforms.saturation=this.saturation,this.uniforms.contrast=this.contrast,this.uniforms.brightness=this.brightness,this.uniforms.red=this.red,this.uniforms.green=this.green,this.uniforms.blue=this.blue,this.uniforms.alpha=this.alpha,t.applyFilter(this,r,n,i)}}var Bn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Bn||{});const C1=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:a,onDoubleClick:l,uniqueId:u=""})=>{const f=wn.utils.string2hex("#F3C409"),h=wn.utils.string2hex("#F3C409"),p=Tt.useRef({isDragging:!1}),d=Tt.useCallback(()=>{a&&!p.current.isDragging&&a(!0)},[a]),c=Tt.useCallback(()=>{a&&!p.current.isDragging&&a(!1)},[a]),v=Tt.useCallback(()=>{p.current.isDragging=!0},[]),y=Tt.useCallback(()=>{p.current.isDragging=!1},[]),m=Tt.useCallback(()=>{p.current.isDragging=!1},[]),b=Tt.useCallback(()=>{console.log("dobule click in pixi transformer"),l&&l({uniqueId:u})},[l]),_=Tt.useCallback(w=>{p.current.isDragging=!0,i&&i(w)},[i]),E=Tt.useCallback(()=>{if(t.current===null)return;const w=t.current.x,x=t.current.y,A=t.current.width,C=t.current.height,S=t.current.rotation,O=[t.current.scale.x,t.current.scale.y];n&&n({uniqueId:u,transformation:{x:Math.round(w),y:Math.round(x),width:Math.round(Math.max(5,A)),height:Math.round(Math.max(5,C)),rotation:S,scale:O}}),p.current.isDragging=!1},[n]);return Tt.useEffect(()=>(e.current&&(e.current.on("mouseover",d),e.current.on("mouseout",c),e.current.on("mousedown",v),e.current.on("mouseup",y),e.current.on("mouseupoutside",m),e.current.addListener("dblclick",b)),()=>{e.current&&(e.current.off("mouseover",d),e.current.off("mouseout",c),e.current.off("mousedown",v),e.current.off("mouseup",y),e.current.off("mouseupoutside",m),e.current.removeListener("dblclick",b))}),[]),Jt.jsx(gy.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:h},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:f,shape:"circle",radius:10},transformchange:_,transformcommit:E})};let id;function sd(){return id=document.body,id}function wr(e,t,r){let n;return mt.useEffect(()=>{n=n||sd();const i=a=>{const l=a.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function Ea(e,t){const r=sd(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function N1(){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 mi=Tt.createContext({}),qe={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"},P1=({children:e})=>{const[t,r]=mt.useState(!1),n=mt.useRef(),i=mt.useRef(),a=mt.useRef(.001);mt.useLayoutEffect(()=>(i.current=Xe.context(()=>{n.current&&n.current.progress(0).kill(),n.current&&n.current.clear(),n.current=Xe.timeline({paused:!0,defaults:{duration:0}})}),()=>{n.current&&n.current.progress(0).kill(),i.current.revert()}),[]);const l=mt.useCallback(()=>{if(n.current){let b=n.current.time();a.current=b}},[]);mt.useEffect(()=>{if(n.current){const m=n.current;m.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){m.pause(),l()}).eventCallback("onUpdate",function(){l()}).eventCallback("onComplete",function(){m.pause(),m.revert(),Ea(qe.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),l()})}},[]);const u=mt.useCallback(()=>{n.current&&n.current.revert()},[]),f=mt.useCallback(()=>{n.current&&n.current.restart()},[]),h=mt.useCallback(()=>{if(n.current){const m=n.current;m.repeat(1),m.restart()}},[]),p=mt.useCallback(m=>{n.current&&n.current.seek(m)},[]),d=mt.useCallback(()=>{n.current&&n.current.seek(4)},[]),c=mt.useCallback(()=>{const m=n.current;return m?m.totalDuration():0},[]),v=()=>{n.current&&(n.current.pause(),Ea(qe.PAUSE))},y=()=>{n.current&&(n.current.resume(),Ea(qe.RESUME))};return wr(qe.SEEK_START,()=>{r(!0)}),wr(qe.SCRUBBER_PLAY,()=>{y()}),wr(qe.SCRUBBER_PAUSE,()=>{v()}),wr(qe.SCRUBBER_SEEK,m=>{p(m)}),wr(qe.SEEK_END,()=>{r(!1)}),wr(qe.SCRUBBER_PROGRESS_UPDATE,m=>{}),Jt.jsx(mi.Provider,{value:{gsapCtx:i,tl:n,handlePlay:y,handlePause:v,handleReset:u,handleSeek:p,handleSeekTest:d,handleRestart:f,handleRepeat:h,playerTimeRef:a,isDragging:t,getTimelineDuration:c},children:e})},M1=e=>{let t={};switch(e){case"NONE":case"none":break;case"BOUNCE_IN":t.from={duration:2,ease:"bounce.out",y:-1500};break;case"BOUNCE_IN_DOWN":t.from={ease:"bounce.out",y:-1500,duration:2};break;case"BOUNCE_IN_LEFT":t.from={ease:"bounce.out",x:-1500,duration:2};break;case"BOUNCE_IN_RIGHT":t.from={ease:"bounce.out",x:1500,duration:2};break;case"BOUNCE_IN_UP":t.from={ease:"bounce.out",y:1500,duration:2};break;case"BOUNCE_OUT":t.from={ease:"bounce.in",y:2,duration:2};break;case"BOUNCE_OUT_DOWN":break;case"BOUNCE_OUT_LEFT":break;case"BOUNCE_OUT_RIGHT":break;case"BOUNCE_OUT_UP":break;case"FADE_IN":t.to={ease:"power4.in",alpha:1,duration:.5};break;case"FADE_IN_DOWN":t.fromTo={from:{y:-1e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break;case"FADE_IN_LEFT":t.fromTo={from:{x:-1e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_RIGHT":t.fromTo={from:{x:2e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_UP":t.fromTo={from:{y:2e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break}return t};var k1=Object.prototype;function L1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||k1;return e===r}var ad=L1;function F1(e,t){return function(r){return e(t(r))}}var B1=F1,U1=B1,D1=U1(Object.keys,Object),$1=D1,G1=ad,q1=$1,j1=Object.prototype,H1=j1.hasOwnProperty;function z1(e){if(!G1(e))return q1(e);var t=[];for(var r in Object(e))H1.call(e,r)&&r!="constructor"&&t.push(r);return t}var od=z1,V1=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,ld=V1,W1=ld,X1=typeof self=="object"&&self&&self.Object===Object&&self,K1=W1||X1||Function("return this")(),Br=K1,Y1=Br,Z1=Y1.Symbol,wa=Z1,ud=wa,fd=Object.prototype,J1=fd.hasOwnProperty,Q1=fd.toString,fs=ud?ud.toStringTag:void 0;function tb(e){var t=J1.call(e,fs),r=e[fs];try{e[fs]=void 0;var n=!0}catch{}var i=Q1.call(e);return n&&(t?e[fs]=r:delete e[fs]),i}var eb=tb,rb=Object.prototype,nb=rb.toString;function ib(e){return nb.call(e)}var sb=ib,cd=wa,ab=eb,ob=sb,lb="[object Null]",ub="[object Undefined]",hd=cd?cd.toStringTag:void 0;function fb(e){return e==null?e===void 0?ub:lb:hd&&hd in Object(e)?ab(e):ob(e)}var cs=fb;function cb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hs=cb,hb=cs,db=hs,pb="[object AsyncFunction]",vb="[object Function]",gb="[object GeneratorFunction]",yb="[object Proxy]";function mb(e){if(!db(e))return!1;var t=hb(e);return t==vb||t==gb||t==pb||t==yb}var dd=mb,_b=Br,bb=_b["__core-js_shared__"],xb=bb,Zl=xb,pd=function(){var e=/[^.]+$/.exec(Zl&&Zl.keys&&Zl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Eb(e){return!!pd&&pd in e}var wb=Eb,Tb=Function.prototype,Ab=Tb.toString;function Sb(e){if(e!=null){try{return Ab.call(e)}catch{}try{return e+""}catch{}}return""}var vd=Sb,Ob=dd,Ib=wb,Rb=hs,Cb=vd,Nb=/[\\^$.*+?()[\]{}|]/g,Pb=/^\[object .+?Constructor\]$/,Mb=Function.prototype,kb=Object.prototype,Lb=Mb.toString,Fb=kb.hasOwnProperty,Bb=RegExp("^"+Lb.call(Fb).replace(Nb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ub(e){if(!Rb(e)||Ib(e))return!1;var t=Ob(e)?Bb:Pb;return t.test(Cb(e))}var Db=Ub;function $b(e,t){return e==null?void 0:e[t]}var Gb=$b,qb=Db,jb=Gb;function Hb(e,t){var r=jb(e,t);return qb(r)?r:void 0}var _i=Hb,zb=_i,Vb=Br,Wb=zb(Vb,"DataView"),Xb=Wb,Kb=_i,Yb=Br,Zb=Kb(Yb,"Map"),Jl=Zb,Jb=_i,Qb=Br,tx=Jb(Qb,"Promise"),ex=tx,rx=_i,nx=Br,ix=rx(nx,"Set"),sx=ix,ax=_i,ox=Br,lx=ax(ox,"WeakMap"),ux=lx,Ql=Xb,tu=Jl,eu=ex,ru=sx,nu=ux,gd=cs,bi=vd,yd="[object Map]",fx="[object Object]",md="[object Promise]",_d="[object Set]",bd="[object WeakMap]",xd="[object DataView]",cx=bi(Ql),hx=bi(tu),dx=bi(eu),px=bi(ru),vx=bi(nu),Un=gd;(Ql&&Un(new Ql(new ArrayBuffer(1)))!=xd||tu&&Un(new tu)!=yd||eu&&Un(eu.resolve())!=md||ru&&Un(new ru)!=_d||nu&&Un(new nu)!=bd)&&(Un=function(e){var t=gd(e),r=t==fx?e.constructor:void 0,n=r?bi(r):"";if(n)switch(n){case cx:return xd;case hx:return yd;case dx:return md;case px:return _d;case vx:return bd}return t});var Ed=Un;function gx(e){return e!=null&&typeof e=="object"}var ds=gx,yx=cs,mx=ds,_x="[object Arguments]";function bx(e){return mx(e)&&yx(e)==_x}var xx=bx,wd=xx,Ex=ds,Td=Object.prototype,wx=Td.hasOwnProperty,Tx=Td.propertyIsEnumerable,Ax=wd(function(){return arguments}())?wd:function(e){return Ex(e)&&wx.call(e,"callee")&&!Tx.call(e,"callee")},iu=Ax,Sx=Array.isArray,Ur=Sx,Ox=9007199254740991;function Ix(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ox}var su=Ix,Rx=dd,Cx=su;function Nx(e){return e!=null&&Cx(e.length)&&!Rx(e)}var Ta=Nx,Aa={exports:{}};function Px(){return!1}var Mx=Px;Aa.exports,function(e,t){var r=Br,n=Mx,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(Aa,Aa.exports);var au=Aa.exports,kx=cs,Lx=su,Fx=ds,Bx="[object Arguments]",Ux="[object Array]",Dx="[object Boolean]",$x="[object Date]",Gx="[object Error]",qx="[object Function]",jx="[object Map]",Hx="[object Number]",zx="[object Object]",Vx="[object RegExp]",Wx="[object Set]",Xx="[object String]",Kx="[object WeakMap]",Yx="[object ArrayBuffer]",Zx="[object DataView]",Jx="[object Float32Array]",Qx="[object Float64Array]",tE="[object Int8Array]",eE="[object Int16Array]",rE="[object Int32Array]",nE="[object Uint8Array]",iE="[object Uint8ClampedArray]",sE="[object Uint16Array]",aE="[object Uint32Array]",ae={};ae[Jx]=ae[Qx]=ae[tE]=ae[eE]=ae[rE]=ae[nE]=ae[iE]=ae[sE]=ae[aE]=!0,ae[Bx]=ae[Ux]=ae[Yx]=ae[Dx]=ae[Zx]=ae[$x]=ae[Gx]=ae[qx]=ae[jx]=ae[Hx]=ae[zx]=ae[Vx]=ae[Wx]=ae[Xx]=ae[Kx]=!1;function oE(e){return Fx(e)&&Lx(e.length)&&!!ae[kx(e)]}var lE=oE;function uE(e){return function(t){return e(t)}}var fE=uE,Sa={exports:{}};Sa.exports,function(e,t){var r=ld,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a&&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}(Sa,Sa.exports);var cE=Sa.exports,hE=lE,dE=fE,Ad=cE,Sd=Ad&&Ad.isTypedArray,pE=Sd?dE(Sd):hE,ou=pE,vE=od,gE=Ed,yE=iu,mE=Ur,_E=Ta,bE=au,xE=ad,EE=ou,wE="[object Map]",TE="[object Set]",AE=Object.prototype,SE=AE.hasOwnProperty;function OE(e){if(e==null)return!0;if(_E(e)&&(mE(e)||typeof e=="string"||typeof e.splice=="function"||bE(e)||EE(e)||yE(e)))return!e.length;var t=gE(e);if(t==wE||t==TE)return!e.size;if(xE(e))return!vE(e).length;for(var r in e)if(SE.call(e,r))return!1;return!0}var IE=OE;const xi=Tn(IE),RE=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],Ei=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState(!1),[i,a]=mt.useState(!1),[l,u]=mt.useState(!1),[f,h]=mt.useState(e.initialAlpha),p=mt.useRef(null),d=mt.useRef(null),c=mt.useRef(null),v=mt.useRef(null),y=mt.useRef(e.initialAlpha),{tl:m}=mt.useContext(mi),{uniqueId:b,startAt:_,endAt:E,initialAlpha:w,transformation:{x,y:A,width:C,height:S,scale:O=[1,1],rotation:L=0,colorCorrection:R,animation:I,effect:N},applyTransformer:k,disabled:F,ignoreTlForVideo:q,pointerdown:X,pointerout:z,pointerover:it}=e;console.log("abstractallProps",e);const{contrast:Z=1,saturation:$=1,brightness:M=1,alpha:U=1,blurRadius:j=0}=R||{},V={...M>1&&{brightness:M},...Z>1&&{contrast:Z},...$>1&&{saturation:$},...U!==0&&{alpha:U}};wr(qe.COMPLETE,()=>{p.current&&(y.current=w,h(w))}),Tt.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Tt.useEffect(()=>{p.current&&n(!0)},[]);const Y=()=>{console.log("reverse complete"),y.current=w},G=dt=>{y.current=dt.alpha},W=dt=>{y.current=dt.alpha};Tt.useEffect(()=>{let dt=Xe.context(()=>{});if(p.current&&m.current){const _t={alpha:1,duration:Number(E)-Number(_)},xt={onStart:G,onReverseComplete:Y,onStartParams:[{alpha:1}]},It={onComplete:W,onCompleteParams:[{alpha:0}]},Kt=M1(I||"None");dt=Xe.context(()=>{var jt,nt;m.current.to(p.current,{alpha:1,duration:.1,...xt},_).to(p.current,{alpha:0,duration:.1,...It},Number(E)-.09),q||m.current.from(p.current,{..._t},_),xi(Kt.from)?xi(Kt.to)?xi(Kt.fromTo)||m.current.fromTo(p.current,(jt=Kt.fromTo)==null?void 0:jt.from,(nt=Kt.fromTo)==null?void 0:nt.to,_):m.current.to(p.current,{...Kt.to},_):m.current.from(p.current,{...Kt.from},_)})}return()=>{console.log("unmounting"),m.current&&(console.log("1001 kill timeline"),m.current.progress(0).kill()),dt.revert()}},[I,_,E,q]);const tt=Tt.useCallback(()=>{a(!0)},[]),et=Tt.useCallback(dt=>{console.log("changeEnd",dt),e.onAnchorTransformationEnd&&(console.log("running onAnchorTransformationEnd"),e.onAnchorTransformationEnd(dt)),a(!1)},[]),st=ve.withFilters(ve.Container,{...j>0&&{blur:wn.filters.BlurFilter},...!xi(V)&&{adjust:R1},matrix:wn.filters.ColorMatrixFilter}),ht=(R==null?void 0:R.enabled)||N&&N!==Bn.Normal;return Jt.jsxs(ve.Container,{ref:d,children:[Jt.jsx(ve.Container,{ref:p,alpha:y.current||f,position:[x,A],pivot:[x,A],width:C,height:S,scale:O,rotation:L,...!F&&!i&&{interactive:!0,buttonMode:!0,pointerdown:X,pointerover:it,pointerout:z},children:Jt.jsxs(ve.Container,{children:[ht&&Jt.jsx(st,{scale:1,blur:{blur:j,quality:4},adjust:V,apply:({matrix:dt})=>{N===Bn.BlackAndWhite?dt.desaturate():N===Bn.Sepia?dt.sepia():N===Bn.RetroVintage||N===Bn.NightVision?dt.negative():N===Bn.Normal&&dt.reset()},matrix:{enabled:!0,matrix:RE},children:Jt.jsx(ve.Container,{ref:c,children:e.children})}),!ht&&Jt.jsx(ve.Container,{ref:c,children:e.children})]})}),k&&Jt.jsx(C1,{pixiTransformerRef:v,imageRef:p,isMounted:r,transformCommit:et,transformChange:tt,mouseoverEvent:u,uniqueId:b})]})});Ei.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};const CE=Tt.forwardRef((e,t)=>{const r=mt.useRef(null),n=mt.useRef(null),{src:i,transformation:{x:a,y:l,width:u,height:f,anchor:h},pointerdown:p,pointerup:d}=e;return Jt.jsx(Ei,{...e,ref:t,children:Jt.jsx(ve.Container,{ref:n,children:Jt.jsx(ve.Sprite,{image:i,width:u,height:f,anchor:h,ref:r,x:a,y:l,interactive:!0,pointerdown:p,pointerup:d})})})}),Oa={build(e){const t=e.points;let r,n,i,a,l,u;if(e.type===Re.CIRC){const y=e.shape;r=y.x,n=y.y,l=u=y.radius,i=a=0}else if(e.type===Re.ELIP){const y=e.shape;r=y.x,n=y.y,l=y.width,u=y.height,i=a=0}else{const y=e.shape,m=y.width/2,b=y.height/2;r=y.x+m,n=y.y+b,l=u=Math.max(0,Math.min(y.radius,Math.min(m,b))),i=m-l,a=b-u}if(!(l>=0&&u>=0&&i>=0&&a>=0)){t.length=0;return}const f=Math.ceil(2.3*Math.sqrt(l+u)),h=f*8+(i?4:0)+(a?4:0);if(t.length=h,h===0)return;if(f===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+a,t[2]=t[4]=r-i,t[5]=t[7]=n-a;return}let p=0,d=f*4+(i?2:0)+2,c=d,v=h;{const y=i+l,m=a,b=r+y,_=r-y,E=n+m;if(t[p++]=b,t[p++]=E,t[--d]=E,t[--d]=_,a){const w=n-m;t[c++]=_,t[c++]=w,t[--v]=w,t[--v]=b}}for(let y=1;y<f;y++){const m=Math.PI/2*(y/f),b=i+Math.cos(m)*l,_=a+Math.sin(m)*u,E=r+b,w=r-b,x=n+_,A=n-_;t[p++]=E,t[p++]=x,t[--d]=x,t[--d]=w,t[c++]=w,t[c++]=A,t[--v]=A,t[--v]=E}{const y=i,m=a+u,b=r+y,_=r-y,E=n+m,w=n-m;t[p++]=b,t[p++]=E,t[--v]=w,t[--v]=b,i&&(t[p++]=_,t[p++]=E,t[--v]=w,t[--v]=_)}},triangulate(e,t){const r=e.points,n=t.points,i=t.indices;if(r.length===0)return;let a=n.length/2;const l=a;let u,f;if(e.type!==Re.RREC){const p=e.shape;u=p.x,f=p.y}else{const p=e.shape;u=p.x+p.width/2,f=p.y+p.height/2}const h=e.matrix;n.push(e.matrix?h.a*u+h.c*f+h.tx:u,e.matrix?h.b*u+h.d*f+h.ty:f),a++,n.push(r[0],r[1]);for(let p=2;p<r.length;p+=2)n.push(r[p],r[p+1]),i.push(a++,l,a);i.push(l+1,l,a)}};function Od(e,t=!1){const r=e.length;if(r<6)return;let n=0;for(let i=0,a=e[r-2],l=e[r-1];i<r;i+=2){const u=e[i],f=e[i+1];n+=(u-a)*(f+l),a=u,l=f}if(!t&&n>0||t&&n<=0){const i=r/2;for(let a=i+i%2;a<r;a+=2){const l=r-a-2,u=r-a-1,f=a,h=a+1;[e[l],e[f]]=[e[f],e[l]],[e[u],e[h]]=[e[h],e[u]]}}}const Id={build(e){e.points=e.shape.points.slice()},triangulate(e,t){let r=e.points;const n=e.holes,i=t.points,a=t.indices;if(r.length>=6){Od(r,!1);const l=[];for(let h=0;h<n.length;h++){const p=n[h];Od(p.points,!0),l.push(r.length/2),r=r.concat(p.points)}const u=jy(r,l,2);if(!u)return;const f=i.length/2;for(let h=0;h<u.length;h+=3)a.push(u[h]+f),a.push(u[h+1]+f),a.push(u[h+2]+f);for(let h=0;h<r.length;h++)i.push(r[h])}}},NE={build(e){const t=e.shape,r=t.x,n=t.y,i=t.width,a=t.height,l=e.points;l.length=0,i>=0&&a>=0&&l.push(r,n,r+i,n,r+i,n+a,r,n+a)},triangulate(e,t){const r=e.points,n=t.points;if(r.length===0)return;const i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},PE={build(e){Oa.build(e)},triangulate(e,t){Oa.triangulate(e,t)}};var Tr=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Tr||{}),Dn=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(Dn||{});const wi={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let r=Math.ceil(e/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}};class Rd{static curveTo(t,r,n,i,a,l){const u=l[l.length-2],h=l[l.length-1]-r,p=u-t,d=i-r,c=n-t,v=Math.abs(h*c-p*d);if(v<1e-8||a===0)return(l[l.length-2]!==t||l[l.length-1]!==r)&&l.push(t,r),null;const y=h*h+p*p,m=d*d+c*c,b=h*d+p*c,_=a*Math.sqrt(y)/v,E=a*Math.sqrt(m)/v,w=_*b/y,x=E*b/m,A=_*c+E*p,C=_*d+E*h,S=p*(E+w),O=h*(E+w),L=c*(_+x),R=d*(_+x),I=Math.atan2(O-C,S-A),N=Math.atan2(R-C,L-A);return{cx:A+t,cy:C+r,radius:a,startAngle:I,endAngle:N,anticlockwise:p*d>c*h}}static arc(t,r,n,i,a,l,u,f,h){const p=u-l,d=wi._segmentsCount(Math.abs(p)*a,Math.ceil(Math.abs(p)/ia)*40),c=p/(d*2),v=c*2,y=Math.cos(c),m=Math.sin(c),b=d-1,_=b%1/b;for(let E=0;E<=b;++E){const w=E+_*E,x=c+l+v*w,A=Math.cos(x),C=-Math.sin(x);h.push((y*A+m*C)*a+n,(y*-C+m*A)*a+i)}}}class ME{constructor(){this.reset()}begin(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n}end(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class lu{static curveLength(t,r,n,i,a,l,u,f){let p=0,d=0,c=0,v=0,y=0,m=0,b=0,_=0,E=0,w=0,x=0,A=t,C=r;for(let S=1;S<=10;++S)d=S/10,c=d*d,v=c*d,y=1-d,m=y*y,b=m*y,_=b*t+3*m*d*n+3*y*c*a+v*u,E=b*r+3*m*d*i+3*y*c*l+v*f,w=A-_,x=C-E,A=_,C=E,p+=Math.sqrt(w*w+x*x);return p}static curveTo(t,r,n,i,a,l,u){const f=u[u.length-2],h=u[u.length-1];u.length-=2;const p=wi._segmentsCount(lu.curveLength(f,h,t,r,n,i,a,l));let d=0,c=0,v=0,y=0,m=0;u.push(f,h);for(let b=1,_=0;b<=p;++b)_=b/p,d=1-_,c=d*d,v=c*d,y=_*_,m=y*_,u.push(v*f+3*c*_*t+3*d*y*n+m*a,v*h+3*c*_*r+3*d*y*i+m*l)}}function Cd(e,t,r,n,i,a,l,u){const f=e-r*i,h=t-n*i,p=e+r*a,d=t+n*a;let c,v;l?(c=n,v=-r):(c=-n,v=r);const y=f+c,m=h+v,b=p+c,_=d+v;return u.push(y,m,b,_),2}function $n(e,t,r,n,i,a,l,u){const f=r-e,h=n-t;let p=Math.atan2(f,h),d=Math.atan2(i-e,a-t);u&&p<d?p+=Math.PI*2:!u&&p>d&&(d+=Math.PI*2);let c=p;const v=d-p,y=Math.abs(v),m=Math.sqrt(f*f+h*h),b=(15*y*Math.sqrt(m)/Math.PI>>0)+1,_=v/b;if(c+=_,u){l.push(e,t,r,n);for(let E=1,w=c;E<b;E++,w+=_)l.push(e,t,e+Math.sin(w)*m,t+Math.cos(w)*m);l.push(e,t,i,a)}else{l.push(r,n,e,t);for(let E=1,w=c;E<b;E++,w+=_)l.push(e+Math.sin(w)*m,t+Math.cos(w)*m,e,t);l.push(i,a,e,t)}return b*2}function kE(e,t){const r=e.shape;let n=e.points||r.points.slice();const i=t.closePointEps;if(n.length===0)return;const a=e.lineStyle,l=new Oe(n[0],n[1]),u=new Oe(n[n.length-2],n[n.length-1]),f=r.type!==Re.POLY||r.closeStroke,h=Math.abs(l.x-u.x)<i&&Math.abs(l.y-u.y)<i;if(f){n=n.slice(),h&&(n.pop(),n.pop(),u.set(n[n.length-2],n[n.length-1]));const z=(l.x+u.x)*.5,it=(u.y+l.y)*.5;n.unshift(z,it),n.push(z,it)}const p=t.points,d=n.length/2;let c=n.length;const v=p.length/2,y=a.width/2,m=y*y,b=a.miterLimit*a.miterLimit;let _=n[0],E=n[1],w=n[2],x=n[3],A=0,C=0,S=-(E-x),O=_-w,L=0,R=0,I=Math.sqrt(S*S+O*O);S/=I,O/=I,S*=y,O*=y;const N=a.alignment,k=(1-N)*2,F=N*2;f||(a.cap===Dn.ROUND?c+=$n(_-S*(k-F)*.5,E-O*(k-F)*.5,_-S*k,E-O*k,_+S*F,E+O*F,p,!0)+2:a.cap===Dn.SQUARE&&(c+=Cd(_,E,S,O,k,F,!0,p))),p.push(_-S*k,E-O*k,_+S*F,E+O*F);for(let z=1;z<d-1;++z){_=n[(z-1)*2],E=n[(z-1)*2+1],w=n[z*2],x=n[z*2+1],A=n[(z+1)*2],C=n[(z+1)*2+1],S=-(E-x),O=_-w,I=Math.sqrt(S*S+O*O),S/=I,O/=I,S*=y,O*=y,L=-(x-C),R=w-A,I=Math.sqrt(L*L+R*R),L/=I,R/=I,L*=y,R*=y;const it=w-_,Z=E-x,$=w-A,M=C-x,U=it*$+Z*M,j=Z*$-M*it,V=j<0;if(Math.abs(j)<.001*Math.abs(U)){p.push(w-S*k,x-O*k,w+S*F,x+O*F),U>=0&&(a.join===Tr.ROUND?c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,p,!1)+4:c+=2,p.push(w-L*F,x-R*F,w+L*k,x+R*k));continue}const Y=(-S+_)*(-O+x)-(-S+w)*(-O+E),G=(-L+A)*(-R+x)-(-L+w)*(-R+C),W=(it*G-$*Y)/j,tt=(M*Y-Z*G)/j,et=(W-w)*(W-w)+(tt-x)*(tt-x),st=w+(W-w)*k,ht=x+(tt-x)*k,dt=w-(W-w)*F,_t=x-(tt-x)*F,xt=Math.min(it*it+Z*Z,$*$+M*M),It=V?k:F,Kt=xt+It*It*m,jt=et<=Kt;let nt=a.join;if(nt===Tr.MITER&&et/m>b&&(nt=Tr.BEVEL),jt)switch(nt){case Tr.MITER:{p.push(st,ht,dt,_t);break}case Tr.BEVEL:{V?p.push(st,ht,w+S*F,x+O*F,st,ht,w+L*F,x+R*F):p.push(w-S*k,x-O*k,dt,_t,w-L*k,x-R*k,dt,_t),c+=2;break}case Tr.ROUND:{V?(p.push(st,ht,w+S*F,x+O*F),c+=$n(w,x,w+S*F,x+O*F,w+L*F,x+R*F,p,!0)+4,p.push(st,ht,w+L*F,x+R*F)):(p.push(w-S*k,x-O*k,dt,_t),c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,p,!1)+4,p.push(w-L*k,x-R*k,dt,_t));break}}else{switch(p.push(w-S*k,x-O*k,w+S*F,x+O*F),nt){case Tr.MITER:{V?p.push(dt,_t,dt,_t):p.push(st,ht,st,ht),c+=2;break}case Tr.ROUND:{V?c+=$n(w,x,w+S*F,x+O*F,w+L*F,x+R*F,p,!0)+2:c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,p,!1)+2;break}}p.push(w-L*k,x-R*k,w+L*F,x+R*F),c+=2}}_=n[(d-2)*2],E=n[(d-2)*2+1],w=n[(d-1)*2],x=n[(d-1)*2+1],S=-(E-x),O=_-w,I=Math.sqrt(S*S+O*O),S/=I,O/=I,S*=y,O*=y,p.push(w-S*k,x-O*k,w+S*F,x+O*F),f||(a.cap===Dn.ROUND?c+=$n(w-S*(k-F)*.5,x-O*(k-F)*.5,w-S*k,x-O*k,w+S*F,x+O*F,p,!1)+2:a.cap===Dn.SQUARE&&(c+=Cd(w,x,S,O,k,F,!1,p)));const q=t.indices,X=wi.epsilon*wi.epsilon;for(let z=v;z<c+v-2;++z)_=p[z*2],E=p[z*2+1],w=p[(z+1)*2],x=p[(z+1)*2+1],A=p[(z+2)*2],C=p[(z+2)*2+1],!(Math.abs(_*(x-C)+w*(C-E)+A*(E-x))<X)&&q.push(z,z+1,z+2)}function LE(e,t){let r=0;const n=e.shape,i=e.points||n.points,a=n.type!==Re.POLY||n.closeStroke;if(i.length===0)return;const l=t.points,u=t.indices,f=i.length/2,h=l.length/2;let p=h;for(l.push(i[0],i[1]),r=1;r<f;r++)l.push(i[r*2],i[r*2+1]),u.push(p,p+1),p++;a&&u.push(p,h)}function Nd(e,t){e.lineStyle.native?LE(e,t):kE(e,t)}class uu{static curveLength(t,r,n,i,a,l){const u=t-2*n+a,f=r-2*i+l,h=2*n-2*t,p=2*i-2*r,d=4*(u*u+f*f),c=4*(u*h+f*p),v=h*h+p*p,y=2*Math.sqrt(d+c+v),m=Math.sqrt(d),b=2*d*m,_=2*Math.sqrt(v),E=c/m;return(b*y+m*c*(y-_)+(4*v*d-c*c)*Math.log((2*m+E+y)/(E+_)))/(4*b)}static curveTo(t,r,n,i,a){const l=a[a.length-2],u=a[a.length-1],f=wi._segmentsCount(uu.curveLength(l,u,t,r,n,i));let h=0,p=0;for(let d=1;d<=f;++d){const c=d/f;h=l+(t-l)*c,p=u+(r-u)*c,a.push(h+(t+(n-t)*c-h)*c,p+(r+(i-r)*c-p)*c)}}}const fu={[Re.POLY]:Id,[Re.CIRC]:Oa,[Re.ELIP]:Oa,[Re.RECT]:NE,[Re.RREC]:PE},Pd=[],Ia=[];class cu{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?re.EMPTY:(t=t||new re(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,r){const{a:n,b:i,c:a,d:l,tx:u,ty:f}=t,h=n*r.x+a*r.y+u,p=i*r.x+l*r.y+f;this.minX=Math.min(this.minX,h),this.maxX=Math.max(this.maxX,h),this.minY=Math.min(this.minY,p),this.maxY=Math.max(this.maxY,p)}addQuad(t){let r=this.minX,n=this.minY,i=this.maxX,a=this.maxY,l=t[0],u=t[1];r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[2],u=t[3],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[4],u=t[5],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[6],u=t[7],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,this.minX=r,this.minY=n,this.maxX=i,this.maxY=a}addFrame(t,r,n,i,a){this.addFrameMatrix(t.worldTransform,r,n,i,a)}addFrameMatrix(t,r,n,i,a){const l=t.a,u=t.b,f=t.c,h=t.d,p=t.tx,d=t.ty;let c=this.minX,v=this.minY,y=this.maxX,m=this.maxY,b=l*r+f*n+p,_=u*r+h*n+d;c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*i+f*n+p,_=u*i+h*n+d,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*r+f*a+p,_=u*r+h*a+d,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*i+f*a+p,_=u*i+h*a+d,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,this.minX=c,this.minY=v,this.maxX=y,this.maxY=m}addVertexData(t,r,n){let i=this.minX,a=this.minY,l=this.maxX,u=this.maxY;for(let f=r;f<n;f+=2){const h=t[f],p=t[f+1];i=h<i?h:i,a=p<a?p:a,l=h>l?h:l,u=p>u?p:u}this.minX=i,this.minY=a,this.maxX=l,this.maxY=u}addVertices(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)}addVerticesMatrix(t,r,n,i,a=0,l=a){const u=t.a,f=t.b,h=t.c,p=t.d,d=t.tx,c=t.ty;let v=this.minX,y=this.minY,m=this.maxX,b=this.maxY;for(let _=n;_<i;_+=2){const E=r[_],w=r[_+1],x=u*E+h*w+d,A=p*w+f*E+c;v=Math.min(v,x-a),m=Math.max(m,x+a),y=Math.min(y,A-l),b=Math.max(b,A+l)}this.minX=v,this.minY=y,this.maxX=m,this.maxY=b}addBounds(t){const r=this.minX,n=this.minY,i=this.maxX,a=this.maxY;this.minX=t.minX<r?t.minX:r,this.minY=t.minY<n?t.minY:n,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>a?t.maxY:a}addBoundsMask(t,r){const n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,a=t.maxX<r.maxX?t.maxX:r.maxX,l=t.maxY<r.maxY?t.maxY:r.maxY;if(n<=a&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,p=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=a>h?a:h,this.maxY=l>p?l:p}}addBoundsMatrix(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,r){const n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,a=t.maxX<r.x+r.width?t.maxX:r.x+r.width,l=t.maxY<r.y+r.height?t.maxY:r.y+r.height;if(n<=a&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,p=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=a>h?a:h,this.maxY=l>p?l:p}}pad(t=0,r=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)}addFramePad(t,r,n,i,a,l){t-=a,r-=l,n+=a,i+=l,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i}}class Ti extends Bs{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new Ul,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new cu,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];Object.defineProperty(Ti.prototype,i,Object.getOwnPropertyDescriptor(t,i))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(t,r){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new re),r=this._boundsRect),this._bounds.getRectangle(r)}getLocalBounds(t){t||(this._localBoundsRect||(this._localBoundsRect=new re),t=this._localBoundsRect),this._localBounds||(this._localBounds=new cu);const r=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const i=this._bounds,a=this._boundsID;this._bounds=this._localBounds;const l=this.getBounds(!1,t);return this.parent=n,this.transform=r,this._bounds=i,this._bounds.updateID+=this._boundsID-a,l}toGlobal(t,r,n=!1){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,r)}toLocal(t,r,n,i){return r&&(t=r.toGlobal(t,n,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,n)}setParent(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t}removeFromParent(){var t;(t=this.parent)==null||t.removeChild(this)}setTransform(t=0,r=0,n=1,i=1,a=0,l=0,u=0,f=0,h=0){return this.position.x=t,this.position.y=r,this.scale.x=n||1,this.scale.y=i||1,this.rotation=a,this.skew.x=l,this.skew.y=u,this.pivot.x=f,this.pivot.y=h,this}destroy(t){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new FE),this.tempDisplayObjectParent}enableTempParent(){const t=this.parent;return this.parent=this._tempDisplayObjectParent,t}disableTempParent(t){this.parent=t}get x(){return this.position.x}set x(t){this.transform.position.x=t}get y(){return this.position.y}set y(t){this.transform.position.y=t}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(t){this.transform.position.copyFrom(t)}get scale(){return this.transform.scale}set scale(t){this.transform.scale.copyFrom(t)}get pivot(){return this.transform.pivot}set pivot(t){this.transform.pivot.copyFrom(t)}get skew(){return this.transform.skew}set skew(t){this.transform.skew.copyFrom(t)}get rotation(){return this.transform.rotation}set rotation(t){this.transform.rotation=t}get angle(){return this.transform.rotation*w_}set angle(t){this.transform.rotation=t*T_}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}get mask(){return this._mask}set mask(t){if(this._mask!==t){if(this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1))}if(this._mask=t,this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++)}}}}class FE extends Ti{constructor(){super(...arguments),this.sortDirty=null}}Ti.prototype.displayObjectUpdateTransform=Ti.prototype.updateTransform;const BE=new Fe;function UE(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}const hu=class extends Ti{constructor(){super(),this.children=[],this.sortableChildren=hu.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(e){}addChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.addChild(e[t]);else{const t=e[0];t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this)}return e[0]}addChildAt(e,t){if(t<0||t>this.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}getChildIndex(e){const t=this.children.indexOf(e);if(t===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return t}setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const r=this.getChildIndex(e);ta(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.removeChild(e[t]);else{const t=e[0],r=this.children.indexOf(t);if(r===-1)return null;t.parent=null,t.transform._parentID=-1,ta(this.children,r,1),this._boundsID++,this.onChildrenChange(r),t.emit("removed",this),this.emit("childRemoved",t,this,r)}return e[0]}removeChildAt(e){const t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,ta(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t}removeChildren(e=0,t=this.children.length){const r=e,n=t,i=n-r;let a;if(i>0&&i<=n){a=this.children.splice(r,i);for(let l=0;l<a.length;++l)a[l].parent=null,a[l].transform&&(a[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(let l=0;l<a.length;++l)a[l].emit("removed",this),this.emit("childRemoved",a[l],this,l);return a}else if(i===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let e=!1;for(let t=0,r=this.children.length;t<r;++t){const n=this.children[t];n._lastSortedIndex=t,!e&&n.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(UE),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e<t;++e){const r=this.children[e];r.visible&&r.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let e=0;e<this.children.length;e++){const t=this.children[e];if(!(!t.visible||!t.renderable))if(t.calculateBounds(),t._mask){const r=t._mask.isMaskData?t._mask.maskObject:t._mask;r?(r.calculateBounds(),this._bounds.addBoundsMask(t._bounds,r._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(e,t=!1){const r=super.getLocalBounds(e);if(!t)for(let n=0,i=this.children.length;n<i;++n){const a=this.children[n];a.visible&&a.updateTransform()}return r}_calculateBounds(){}_renderWithCulling(e){const t=e.renderTexture.sourceFrame;if(!(t.width>0&&t.height>0))return;let r,n;this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==hu.prototype._render&&(r=this.getBounds(!0));const i=e.projection.transform;if(i&&(n?(n=BE.copyFrom(n),n.prepend(i)):n=i),r&&t.intersects(r,n))this._render(e);else if(this.cullArea)return;for(let a=0,l=this.children.length;a<l;++a){const u=this.children[a],f=u.cullable;u.cullable=f||!this.cullArea,u.render(e),u.cullable=f}}render(e){var t;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(t=this.filters)!=null&&t.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(let r=0,n=this.children.length;r<n;++r)this.children[r].render(e)}}renderAdvanced(e){var i,a,l;const t=this.filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let u=0;u<t.length;u++)t[u].enabled&&this._enabledFilters.push(t[u])}const n=t&&((i=this._enabledFilters)==null?void 0:i.length)||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==xe.NONE));if(n&&e.batch.flush(),t&&((a=this._enabledFilters)!=null&&a.length)&&e.filter.push(this,this._enabledFilters),r&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(let u=0,f=this.children.length;u<f;++u)this.children[u].render(e)}n&&e.batch.flush(),r&&e.mask.pop(this),t&&((l=this._enabledFilters)!=null&&l.length)&&e.filter.pop()}_render(e){}destroy(e){super.destroy(),this.sortDirty=!1;const t=typeof e=="boolean"?e:e==null?void 0:e.children,r=this.removeChildren(0,this.children.length);if(t)for(let n=0;n<r.length;++n)r[n].destroy(e)}get width(){return this.scale.x*this.getLocalBounds().width}set width(e){const t=this.getLocalBounds().width;t!==0?this.scale.x=e/t:this.scale.x=1,this._width=e}get height(){return this.scale.y*this.getLocalBounds().height}set height(e){const t=this.getLocalBounds().height;t!==0?this.scale.y=e/t:this.scale.y=1,this._height=e}};let Ai=hu;Ai.defaultSortableChildren=!1,Ai.prototype.containerUpdateTransform=Ai.prototype.updateTransform,Object.defineProperties(Ht,{SORTABLE_CHILDREN:{get(){return Ai.defaultSortableChildren},set(e){Qt("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Ai.defaultSortableChildren=e}}});class Ra{constructor(t,r=null,n=null,i=null){this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}clone(){return new Ra(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const Si=new Oe,Md=class extends ph{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new cu,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Ia.push(this.drawCalls[e]);this.drawCalls.length=0;for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t.reset(),Pd.push(t)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,r=null,n=null){const i=new Ra(e,t,r,n);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const r=new Ra(e,null,null,t),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this}destroy(){super.destroy();for(let e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(e){const t=this.graphicsData;for(let r=0;r<t.length;++r){const n=t[r];if(n.fillStyle.visible&&n.shape&&(n.matrix?n.matrix.applyInverse(e,Si):Si.copyFrom(e),n.shape.contains(Si.x,Si.y))){let i=!1;if(n.holes){for(let a=0;a<n.holes.length;a++)if(n.holes[a].shape.contains(Si.x,Si.y)){i=!0;break}}if(!i)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const e=this.uvs,t=this.graphicsData;let r=null,n=null;this.batches.length>0&&(r=this.batches[this.batches.length-1],n=r.style);for(let u=this.shapeIndex;u<t.length;u++){this.shapeIndex++;const f=t[u],h=f.fillStyle,p=f.lineStyle;fu[f.type].build(f),f.matrix&&this.transformPoints(f.points,f.matrix),(h.visible||p.visible)&&this.processHoles(f.holes);for(let c=0;c<2;c++){const v=c===0?h:p;if(!v.visible)continue;const y=v.texture.baseTexture,m=this.indices.length,b=this.points.length/2;y.wrapMode=Vi.REPEAT,c===0?this.processFill(f):this.processLine(f);const _=this.points.length/2-b;_!==0&&(r&&!this._compareStyles(n,v)&&(r.end(m,b),r=null),r||(r=Pd.pop()||new ME,r.begin(v,m,b),this.batches.push(r),n=v),this.addUvs(this.points,e,v.texture,b,_,v.matrix))}}const i=this.indices.length,a=this.points.length/2;if(r&&r.end(i,a),this.batches.length===0){this.batchable=!0;return}const l=a>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&l===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=l?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e<t;e++){const r=this.graphicsData[e],n=r.fillStyle,i=r.lineStyle;if(n&&!n.texture.baseTexture.valid||i&&!i.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const e=this.batches;for(let t=0,r=e.length;t<r;t++){const n=e[t];for(let i=0;i<n.size;i++){const a=n.start+i;this.indicesUint16[a]=this.indicesUint16[a]-n.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<Md.BATCHABLE_SIZE*2}buildDrawCalls(){let e=++Vt._globalBatch;for(let p=0;p<this.drawCalls.length;p++)this.drawCalls[p].texArray.clear(),Ia.push(this.drawCalls[p]);this.drawCalls.length=0;const t=this.colors,r=this.textureIds;let n=Ia.pop();n||(n=new kl,n.texArray=new $l),n.texArray.count=0,n.start=0,n.size=0,n.type=an.TRIANGLES;let i=0,a=null,l=0,u=!1,f=an.TRIANGLES,h=0;this.drawCalls.push(n);for(let p=0;p<this.batches.length;p++){const d=this.batches[p],c=8,v=d.style,y=v.texture.baseTexture;u!==!!v.native&&(u=!!v.native,f=u?an.LINES:an.TRIANGLES,a=null,i=c,e++),a!==y&&(a=y,y._batchEnabled!==e&&(i===c&&(e++,i=0,n.size>0&&(n=Ia.pop(),n||(n=new kl,n.texArray=new $l),this.drawCalls.push(n)),n.start=h,n.size=0,n.texArray.count=0,n.type=f),y.touched=1,y._batchEnabled=e,y._batchLocation=i,y.wrapMode=Vi.REPEAT,n.texArray.elements[n.texArray.count++]=y,i++)),n.size+=d.size,h+=d.size,l=y._batchLocation,this.addColors(t,v.color,v.alpha,d.attribSize,d.attribStart),this.addTextureIds(r,l,d.attribSize,d.attribStart)}Vt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(e.length*3*4),a=new Float32Array(i),l=new Uint32Array(i);let u=0;for(let f=0;f<e.length/2;f++)a[u++]=e[f*2],a[u++]=e[f*2+1],a[u++]=t[f*2],a[u++]=t[f*2+1],l[u++]=r[f],a[u++]=n[f];this._buffer.update(i),this._indexBuffer.update(this.indicesUint16)}processFill(e){e.holes.length?Id.triangulate(e,this):fu[e.type].triangulate(e,this)}processLine(e){Nd(e,this);for(let t=0;t<e.holes.length;t++)Nd(e.holes[t],this)}processHoles(e){for(let t=0;t<e.length;t++){const r=e[t];fu[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}}calculateBounds(){const e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)}transformPoints(e,t){for(let r=0;r<e.length/2;r++){const n=e[r*2],i=e[r*2+1];e[r*2]=t.a*n+t.c*i+t.tx,e[r*2+1]=t.b*n+t.d*i+t.ty}}addColors(e,t,r,n,i=0){const a=Ge.shared.setValue(t).toLittleEndianNumber(),l=Ge.shared.setValue(a).toPremultiplied(r);e.length=Math.max(e.length,i+n);for(let u=0;u<n;u++)e[i+u]=l}addTextureIds(e,t,r,n=0){e.length=Math.max(e.length,n+r);for(let i=0;i<r;i++)e[n+i]=t}addUvs(e,t,r,n,i,a=null){let l=0;const u=t.length,f=r.frame;for(;l<i;){let p=e[(n+l)*2],d=e[(n+l)*2+1];if(a){const c=a.a*p+a.c*d+a.tx;d=a.b*p+a.d*d+a.ty,p=c}l++,t.push(p/f.width,d/f.height)}const h=r.baseTexture;(f.width<h.width||f.height<h.height)&&this.adjustUvs(t,r,u,i)}adjustUvs(e,t,r,n){const i=t.baseTexture,a=1e-6,l=r+n*2,u=t.frame,f=u.width/i.width,h=u.height/i.height;let p=u.x/u.width,d=u.y/u.height,c=Math.floor(e[r]+a),v=Math.floor(e[r+1]+a);for(let y=r+2;y<l;y+=2)c=Math.min(c,Math.floor(e[y]+a)),v=Math.min(v,Math.floor(e[y+1]+a));p-=c,d-=v;for(let y=r;y<l;y+=2)e[y]=(e[y]+p)*f,e[y+1]=(e[y+1]+d)*h}};let kd=Md;kd.BATCHABLE_SIZE=100;class Ca{constructor(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const t=new Ca;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t}reset(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class du extends Ca{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=Dn.BUTT,this.join=Tr.MITER,this.miterLimit=10}clone(){const t=new du;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const pu={},Na=class extends Ai{constructor(e=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new Ca,this._lineStyle=new du,this._matrix=null,this._holeMode=!1,this.state=ra.for2d(),this._geometry=e||new kd,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Ge(16777215),this.blendMode=Rt.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new Na(this._geometry)}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(e=null,t=0,r,n=.5,i=!1){return typeof e=="number"&&(e={width:e,color:t,alpha:r,alignment:n,native:i}),this.lineTextureStyle(e)}lineTextureStyle(e){const t={width:0,texture:Wt.WHITE,color:e!=null&&e.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:Dn.BUTT,join:Tr.MITER,miterLimit:10};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.width>0&&e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:r},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new is,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new is,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,r,n){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),uu.curveTo(e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,a){return this._initCurve(),lu.curveTo(e,t,r,n,i,a,this.currentPath.points),this}arcTo(e,t,r,n,i){this._initCurve(e,t);const a=this.currentPath.points,l=Rd.curveTo(e,t,r,n,i,a);if(l){const{cx:u,cy:f,radius:h,startAngle:p,endAngle:d,anticlockwise:c}=l;this.arc(u,f,h,p,d,c)}return this}arc(e,t,r,n,i,a=!1){if(n===i)return this;if(!a&&i<=n?i+=ia:a&&n<=i&&(n+=ia),i-n===0)return this;const u=e+Math.cos(n)*r,f=t+Math.sin(n)*r,h=this._geometry.closePointEps;let p=this.currentPath?this.currentPath.points:null;if(p){const d=Math.abs(p[p.length-2]-u),c=Math.abs(p[p.length-1]-f);d<h&&c<h||p.push(u,f)}else this.moveTo(u,f),p=this.currentPath.points;return Rd.arc(u,f,e,t,r,n,i,a,p),this}beginFill(e=0,t){return this.beginTextureFill({texture:Wt.WHITE,color:e,alpha:t})}normalizeColor(e){const t=Ge.shared.setValue(e.color??0);e.color=t.toNumber(),e.alpha??(e.alpha=t.alpha)}beginTextureFill(e){const t={texture:Wt.WHITE,color:16777215,matrix:null};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:r},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,r,n){return this.drawShape(new re(e,t,r,n))}drawRoundedRect(e,t,r,n,i){return this.drawShape(new Fl(e,t,r,n,i))}drawCircle(e,t,r){return this.drawShape(new Ll(e,t,r))}drawEllipse(e,t,r,n){return this.drawShape(new A_(e,t,r,n))}drawPolygon(...e){let t,r=!0;const n=e[0];n.points?(r=n.closeStroke,t=n.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new is(t);return i.closeStroke=r,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Re.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,r=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(e.points);for(let n=0;n<r;n++){const i=e.batches[n],a=i.style.color,l=new Float32Array(this.vertexData.buffer,i.attribStart*4*2,i.attribSize*2),u=new Float32Array(e.uvsFloat32.buffer,i.attribStart*4*2,i.attribSize*2),f=new Uint16Array(e.indicesUint16.buffer,i.start*2,i.size),h={vertexData:l,blendMode:t,indices:f,uvs:u,_batchRGB:Ge.shared.setValue(a).toRgbArray(),_tintRGB:a,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[n]=h}}_renderBatched(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let t=0,r=this.batches.length;t<r;t++){const n=this.batches[t];n.worldAlpha=this.worldAlpha*n.alpha,e.plugins[this.pluginName].render(n)}}}_renderDirect(e){const t=this._resolveDirectShader(e),r=this._geometry,n=this.worldAlpha,i=t.uniforms,a=r.drawCalls;i.translationMatrix=this.transform.worldTransform,Ge.shared.setValue(this._tintColor).premultiply(n).toArray(i.tint),e.shader.bind(t),e.geometry.bind(r,t),e.state.set(this.state);for(let l=0,u=a.length;l<u;l++)this._renderDrawCallDirect(e,r.drawCalls[l])}_renderDrawCallDirect(e,t){const{texArray:r,type:n,size:i,start:a}=t,l=r.count;for(let u=0;u<l;u++)e.texture.bind(r.elements[u],u);e.geometry.draw(n,i,a)}_resolveDirectShader(e){let t=this.shader;const r=this.pluginName;if(!t){if(!pu[r]){const{maxTextures:n}=e.plugins[r],i=new Int32Array(n);for(let u=0;u<n;u++)i[u]=u;const a={tint:new Float32Array([1,1,1,1]),translationMatrix:new Fe,default:mr.from({uSamplers:i},!0)},l=e.plugins[r]._shader.program;pu[r]=new as(l,a)}t=pu[r]}return t}_calculateBounds(){this.finishPoly();const e=this._geometry;if(!e.graphicsData.length)return;const{minX:t,minY:r,maxX:n,maxY:i}=e.bounds;this._bounds.addFrame(this.transform,t,r,n,i)}containsPoint(e){return this.worldTransform.applyInverse(e,Na._TEMP_POINT),this._geometry.containsPoint(Na._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t._tintRGB=Ge.shared.setValue(this._tintColor).multiply(t._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const e=this.transform._worldID;if(this._transformID===e)return;this._transformID=e;const t=this.transform.worldTransform,r=t.a,n=t.b,i=t.c,a=t.d,l=t.tx,u=t.ty,f=this._geometry.points,h=this.vertexData;let p=0;for(let d=0;d<f.length;d+=2){const c=f[d],v=f[d+1];h[p++]=r*c+i*v+l,h[p++]=a*v+n*c+u}}closePath(){const e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this}setMatrix(e){return this._matrix=e,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(e)}};let vu=Na;vu.curves=wi,vu._TEMP_POINT=new Oe;var DE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gu={},$E={get exports(){return gu},set exports(e){gu=e}};/*!
|
|
540
540
|
* d-path-parser - v1.0.0
|
|
541
541
|
* by Massimo Artizzu (MaxArt2501)
|
|
542
542
|
*
|
|
@@ -547,7 +547,7 @@ void main(void)
|
|
|
547
547
|
*/(function(e,t){(function(r,n){e.exports=n()})(DE,function(){return function(n){for(var i={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},a={number:function(m){return+v("number",m)},"coordinate pair":function(m){var b=v("number",m);if(b===null&&!m)return null;v("comma");var _=v("number",!0);return{x:+b,y:+_}},"arc definition":function(m){var b=a["coordinate pair"](m);if(!b&&!m)return null;v("comma");var _=+v("number",!0);v("comma",!0);var E=!!+v("flag",!0);v("comma");var w=!!+v("flag",!0);v("comma");var x=a["coordinate pair"](!0);return{radii:b,rotation:_,large:E,clockwise:w,end:x}}},l=0,u=[];l<n.length;){var f=v("command"),h=f.toUpperCase(),p=f!==h,d;switch(h){case"M":d=y("coordinate pair").map(function(m,b){return b===1&&(f=p?"l":"L"),c({end:m})});break;case"L":case"T":d=y("coordinate pair").map(function(m){return c({end:m})});break;case"C":if(d=y("coordinate pair"),d.length%3)throw Error("Expected coordinate pair triplet at position "+l);d=d.reduce(function(m,b,_){var E=_%3;if(!E)m.push(c({cp1:b}));else{var w=m[m.length-1];w[E===1?"cp2":"end"]=b}return m},[]);break;case"Q":case"S":if(d=y("coordinate pair"),d.length&1)throw Error("Expected coordinate pair couple at position "+l);d=d.reduce(function(m,b,_){var E=_&1;if(!E)m.push(c({cp:b}));else{var w=m[m.length-1];w.end=b}return m},[]);break;case"H":case"V":d=y("number").map(function(m){return c({value:m})});break;case"A":d=y("arc definition").map(c);break;case"Z":d=[{code:"Z"}];break}u.push.apply(u,d)}return u;function c(m){return m.code=f,m.relative=p,m}function v(m,b){i[m].lastIndex=l;var _=i[m].exec(n);if(!_||_.index!==l){if(!b)return null;throw Error("Expected "+m+" at position "+l)}return l=i[m].lastIndex,_[1]}function y(m){for(var b=[],_,E=!0;_=a[m](E);)b.push(_),E=!!v("comma");return b}}})})($E);const GE=/^\s+/,qE=/\s+$/;function wt(e,t){if(e=e||"",t=t||{},e instanceof wt)return e;if(!(this instanceof wt))return new wt(e,t);var r=jE(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}wt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,r,n,i,a,l;return t=e.r/255,r=e.g/255,n=e.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),.2126*i+.7152*a+.0722*l},setAlpha:function(e){return this._a=$d(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Fd(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Fd(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=Ld(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Ld(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return Bd(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return WE(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(le(this._r,255)*100)+"%",g:Math.round(le(this._g,255)*100)+"%",b:Math.round(le(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(le(this._r,255)*100)+"%, "+Math.round(le(this._g,255)*100)+"%, "+Math.round(le(this._b,255)*100)+"%)":"rgba("+Math.round(le(this._r,255)*100)+"%, "+Math.round(le(this._g,255)*100)+"%, "+Math.round(le(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:sw[Bd(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+Ud(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=wt(e);r="#"+Ud(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0,i=!t&&n&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return wt(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(ZE,arguments)},brighten:function(){return this._applyModification(JE,arguments)},darken:function(){return this._applyModification(QE,arguments)},desaturate:function(){return this._applyModification(XE,arguments)},saturate:function(){return this._applyModification(KE,arguments)},greyscale:function(){return this._applyModification(YE,arguments)},spin:function(){return this._applyModification(tw,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(nw,arguments)},complement:function(){return this._applyCombination(ew,arguments)},monochromatic:function(){return this._applyCombination(iw,arguments)},splitcomplement:function(){return this._applyCombination(rw,arguments)},triad:function(){return this._applyCombination(Dd,[3])},tetrad:function(){return this._applyCombination(Dd,[4])}},wt.fromRatio=function(e,t){if(typeof e=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=ps(e[n]));e=r}return wt(e,t)};function jE(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,l=!1,u=!1;return typeof e=="string"&&(e=uw(e)),typeof e=="object"&&(Xr(e.r)&&Xr(e.g)&&Xr(e.b)?(t=HE(e.r,e.g,e.b),l=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Xr(e.h)&&Xr(e.s)&&Xr(e.v)?(n=ps(e.s),i=ps(e.v),t=VE(e.h,n,i),l=!0,u="hsv"):Xr(e.h)&&Xr(e.s)&&Xr(e.l)&&(n=ps(e.s),a=ps(e.l),t=zE(e.h,n,a),l=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=$d(r),{ok:l,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function HE(e,t,r){return{r:le(e,255)*255,g:le(t,255)*255,b:le(r,255)*255}}function Ld(e,t,r){e=le(e,255),t=le(t,255),r=le(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a,l,u=(n+i)/2;if(n==i)a=l=0;else{var f=n-i;switch(l=u>.5?f/(2-n-i):f/(n+i),n){case e:a=(t-r)/f+(t<r?6:0);break;case t:a=(r-e)/f+2;break;case r:a=(e-t)/f+4;break}a/=6}return{h:a,s:l,l:u}}function zE(e,t,r){var n,i,a;e=le(e,360),t=le(t,100),r=le(r,100);function l(h,p,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?h+(p-h)*6*d:d<1/2?p:d<2/3?h+(p-h)*(2/3-d)*6:h}if(t===0)n=i=a=r;else{var u=r<.5?r*(1+t):r+t-r*t,f=2*r-u;n=l(f,u,e+1/3),i=l(f,u,e),a=l(f,u,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function Fd(e,t,r){e=le(e,255),t=le(t,255),r=le(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a,l,u=n,f=n-i;if(l=n===0?0:f/n,n==i)a=0;else{switch(n){case e:a=(t-r)/f+(t<r?6:0);break;case t:a=(r-e)/f+2;break;case r:a=(e-t)/f+4;break}a/=6}return{h:a,s:l,v:u}}function VE(e,t,r){e=le(e,360)*6,t=le(t,100),r=le(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),l=r*(1-i*t),u=r*(1-(1-i)*t),f=n%6,h=[r,l,a,a,u,r][f],p=[u,r,r,l,a,a][f],d=[a,a,u,r,r,l][f];return{r:h*255,g:p*255,b:d*255}}function Bd(e,t,r,n){var i=[Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function WE(e,t,r,n,i){var a=[Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16)),Ar(Gd(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Ud(e,t,r,n){var i=[Ar(Gd(n)),Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16))];return i.join("")}wt.equals=function(e,t){return!e||!t?!1:wt(e).toRgbString()==wt(t).toRgbString()},wt.random=function(){return wt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function XE(e,t){t=t===0?0:t||10;var r=wt(e).toHsl();return r.s-=t/100,r.s=Pa(r.s),wt(r)}function KE(e,t){t=t===0?0:t||10;var r=wt(e).toHsl();return r.s+=t/100,r.s=Pa(r.s),wt(r)}function YE(e){return wt(e).desaturate(100)}function ZE(e,t){t=t===0?0:t||10;var r=wt(e).toHsl();return r.l+=t/100,r.l=Pa(r.l),wt(r)}function JE(e,t){t=t===0?0:t||10;var r=wt(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),wt(r)}function QE(e,t){t=t===0?0:t||10;var r=wt(e).toHsl();return r.l-=t/100,r.l=Pa(r.l),wt(r)}function tw(e,t){var r=wt(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,wt(r)}function ew(e){var t=wt(e).toHsl();return t.h=(t.h+180)%360,wt(t)}function Dd(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=wt(e).toHsl(),n=[wt(e)],i=360/t,a=1;a<t;a++)n.push(wt({h:(r.h+a*i)%360,s:r.s,l:r.l}));return n}function rw(e){var t=wt(e).toHsl(),r=t.h;return[wt(e),wt({h:(r+72)%360,s:t.s,l:t.l}),wt({h:(r+216)%360,s:t.s,l:t.l})]}function nw(e,t,r){t=t||6,r=r||30;var n=wt(e).toHsl(),i=360/r,a=[wt(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(wt(n));return a}function iw(e,t){t=t||6;for(var r=wt(e).toHsv(),n=r.h,i=r.s,a=r.v,l=[],u=1/t;t--;)l.push(wt({h:n,s:i,v:a})),a=(a+u)%1;return l}wt.mix=function(e,t,r){r=r===0?0:r||50;var n=wt(e).toRgb(),i=wt(t).toRgb(),a=r/100,l={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return wt(l)},wt.readability=function(e,t){var r=wt(e),n=wt(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},wt.isReadable=function(e,t,r){var n=wt.readability(e,t),i,a;switch(a=!1,i=fw(r),i.level+i.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a},wt.mostReadable=function(e,t,r){var n=null,i=0,a,l,u,f;r=r||{},l=r.includeFallbackColors,u=r.level,f=r.size;for(var h=0;h<t.length;h++)a=wt.readability(e,t[h]),a>i&&(i=a,n=wt(t[h]));return wt.isReadable(e,n,{level:u,size:f})||!l?n:(r.includeFallbackColors=!1,wt.mostReadable(e,["#fff","#000"],r))};var yu=wt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},sw=wt.hexNames=aw(yu);function aw(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function $d(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function le(e,t){ow(e)&&(e="100%");var r=lw(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Pa(e){return Math.min(1,Math.max(0,e))}function Je(e){return parseInt(e,16)}function ow(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function lw(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ar(e){return e.length==1?"0"+e:""+e}function ps(e){return e<=1&&(e=e*100+"%"),e}function Gd(e){return Math.round(parseFloat(e)*255).toString(16)}function qd(e){return Je(e)/255}var Sr=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Xr(e){return!!Sr.CSS_UNIT.exec(e)}function uw(e){e=e.replace(GE,"").replace(qE,"").toLowerCase();var t=!1;if(yu[e])e=yu[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Sr.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Sr.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Sr.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Sr.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Sr.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Sr.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Sr.hex8.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),a:qd(r[4]),format:t?"name":"hex8"}:(r=Sr.hex6.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),format:t?"name":"hex"}:(r=Sr.hex4.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),a:qd(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Sr.hex3.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function fw(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var cw=function(){function e(t,r){var n=[],i=!0,a=!1,l=void 0;try{for(var u=t[Symbol.iterator](),f;!(i=(f=u.next()).done)&&(n.push(f.value),!(r&&n.length===r));i=!0);}catch(h){a=!0,l=h}finally{try{!i&&u.return&&u.return()}finally{if(a)throw l}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),vs=Math.PI*2,mu=function(t,r,n,i,a,l,u){var f=t.x,h=t.y;f*=r,h*=n;var p=i*f-a*h,d=a*f+i*h;return{x:p+l,y:d+u}},hw=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),l=Math.cos(t+r),u=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:l+u*n,y:u-l*n},{x:l,y:u}]},jd=function(t,r,n,i){var a=t*i-r*n<0?-1:1,l=t*n+r*i;return l>1&&(l=1),l<-1&&(l=-1),a*Math.acos(l)},dw=function(t,r,n,i,a,l,u,f,h,p,d,c){var v=Math.pow(a,2),y=Math.pow(l,2),m=Math.pow(d,2),b=Math.pow(c,2),_=v*y-v*b-y*m;_<0&&(_=0),_/=v*b+y*m,_=Math.sqrt(_)*(u===f?-1:1);var E=_*a/l*c,w=_*-l/a*d,x=p*E-h*w+(t+n)/2,A=h*E+p*w+(r+i)/2,C=(d-E)/a,S=(c-w)/l,O=(-d-E)/a,L=(-c-w)/l,R=jd(1,0,C,S),I=jd(C,S,O,L);return f===0&&I>0&&(I-=vs),f===1&&I<0&&(I+=vs),[x,A,R,I]},Hd=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,l=t.rx,u=t.ry,f=t.xAxisRotation,h=f===void 0?0:f,p=t.largeArcFlag,d=p===void 0?0:p,c=t.sweepFlag,v=c===void 0?0:c,y=[];if(l===0||u===0)return[];var m=Math.sin(h*vs/360),b=Math.cos(h*vs/360),_=b*(r-i)/2+m*(n-a)/2,E=-m*(r-i)/2+b*(n-a)/2;if(_===0&&E===0)return[];l=Math.abs(l),u=Math.abs(u);var w=Math.pow(_,2)/Math.pow(l,2)+Math.pow(E,2)/Math.pow(u,2);w>1&&(l*=Math.sqrt(w),u*=Math.sqrt(w));var x=dw(r,n,i,a,l,u,d,v,m,b,_,E),A=cw(x,4),C=A[0],S=A[1],O=A[2],L=A[3],R=Math.abs(L)/(vs/4);Math.abs(1-R)<1e-7&&(R=1);var I=Math.max(Math.ceil(R),1);L/=I;for(var N=0;N<I;N++)y.push(hw(O,L)),O+=L;return y.map(function(k){var F=mu(k[0],l,u,b,m,C,S),q=F.x,X=F.y,z=mu(k[1],l,u,b,m,C,S),it=z.x,Z=z.y,$=mu(k[2],l,u,b,m,C,S),M=$.x,U=$.y;return{x1:q,y1:X,x2:it,y2:Z,x:M,y:U}})};class pw extends vu{constructor(t){super(),this.lineColor=null,t&&this.drawSVG(t)}drawSVG(t){if(typeof t=="string"){const r=document.createElement("div");r.innerHTML=t.trim(),t=r.querySelector("svg")}if(!t)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(t),this._svgChildren(t.children),this}_svgChildren(t,r=!1){for(let n=0;n<t.length;n++){const i=t[n];switch(this._svgFill(i,r),i.nodeName.toLowerCase()){case"path":{this._svgPath(i);break}case"circle":case"ellipse":{this._svgCircle(i);break}case"rect":{this._svgRect(i);break}case"polygon":{this._svgPoly(i,!0);break}case"polyline":{this._svgPoly(i);break}case"g":break;default:{console.info(`[PIXI.SVG] <${i.nodeName}> elements unsupported`);break}}this._svgChildren(i.children,!0)}}_hexToUint(t){if(t[0]==="#")return t=t.substr(1),t.length===3&&(t=t.replace(/([a-f0-9])/ig,"$1$1")),parseInt(t,16);const{r,g:n,b:i}=wt(t).toRgb();return(r<<16)+(n<<8)+i}_svgCircle(t){let r="r",n="r";const i=t.nodeName==="elipse";i&&(r+="x",n+="y");const a=parseFloat(t.getAttribute(n)),l=parseFloat(t.getAttribute(r)),u=t.getAttribute("cx"),f=t.getAttribute("cy");let h=0,p=0;u!==null&&(h=parseFloat(u)),f!==null&&(p=parseFloat(f)),i?this.drawEllipse(h,p,a,l):this.drawCircle(h,p,a)}_svgRect(t){const r=parseFloat(t.getAttribute("x")),n=parseFloat(t.getAttribute("y")),i=parseFloat(t.getAttribute("width")),a=parseFloat(t.getAttribute("height")),l=parseFloat(t.getAttribute("rx"));l?this.drawRoundedRect(r,n,i,a,l):this.drawRect(r,n,i,a)}_convertStyleName(t){return t.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(t){const r=t.getAttribute("style"),n=t.getAttribute("opacity"),i={fill:t.getAttribute("fill"),opacity:n||t.getAttribute("fill-opacity"),stroke:t.getAttribute("stroke"),strokeOpacity:n||t.getAttribute("stroke-opacity"),strokeWidth:t.getAttribute("stroke-width"),cap:t.getAttribute("stroke-linecap"),join:t.getAttribute("stroke-linejoin"),miterLimit:t.getAttribute("stroke-miterlimit")};return r!==null&&r.split(";").forEach(a=>{const[l,u]=a.split(":");if(l){const f=this._convertStyleName(l);i[f]||(i[f]=u.trim())}}),i}_svgPoly(t,r){const n=t.getAttribute("points").split(/[ ,]/g).map(i=>parseInt(i,10));this.drawPolygon(n),r&&this.closePath()}_svgFill(t,r){const{fill:n,opacity:i,stroke:a,strokeOpacity:l,strokeWidth:u,cap:f,join:h,miterLimit:p}=this._svgStyle(t),c=u!==null?parseFloat(u):a!==null?1:0,v=a!==null?this._hexToUint(a):this.lineColor;n?n==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(n),i!==null?parseFloat(i):1):r||this.beginFill(0),this.lineStyle({width:a===null&&u===null&&r?this.line.width:c,alpha:l===null?this.line.alpha:parseFloat(l),color:a===null&&r?this.line.color:v,cap:f===null&&r?this.line.cap:f,join:h===null&&r?this.line.join:h,miterLimit:p===null&&r?this.line.miterLimit:parseFloat(p)}),t.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(t){const r=t.getAttribute("d");let n=0,i=0;const a=gu(r.trim());for(let l=0;l<a.length;l++){const u=a[l];switch(u.code){case"m":{this.moveTo(n+=u.end.x,i+=u.end.y);break}case"M":{this.moveTo(n=u.end.x,i=u.end.y);break}case"H":{this.lineTo(n=u.value,i);break}case"h":{this.lineTo(n+=u.value,i);break}case"V":{this.lineTo(n,i=u.value);break}case"v":{this.lineTo(n,i+=u.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(n=u.end.x,i=u.end.y);break}case"l":{this.lineTo(n+=u.end.x,i+=u.end.y);break}case"C":{this.bezierCurveTo(u.cp1.x,u.cp1.y,u.cp2.x,u.cp2.y,n=u.end.x,i=u.end.y);break}case"c":{const f=n,h=i;this.bezierCurveTo(f+u.cp1.x,h+u.cp1.y,f+u.cp2.x,h+u.cp2.y,n+=u.end.x,i+=u.end.y);break}case"s":case"q":{const f=n,h=i;this.quadraticCurveTo(f+u.cp.x,h+u.cp.y,n+=u.end.x,i+=u.end.y);break}case"S":case"Q":{this.quadraticCurveTo(u.cp.x,u.cp.y,n=u.end.x,i=u.end.y);break}case"a":{Hd({px:n,py:i,cx:n+=u.end.x,cy:i+=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:p,y2:d,x:c,y:v})=>this.bezierCurveTo(f,h,p,d,c,v));break}case"A":{Hd({px:n,py:i,cx:n=u.end.x,cy:i=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:p,y2:d,x:c,y:v})=>this.bezierCurveTo(f,h,p,d,c,v));break}default:{console.info("[PIXI.SVG] Draw command not supported:",u.code,u);break}}}}}var Ma={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},vw=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function gw(e){return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&vw.indexOf(e)>=0}function yw(e){switch(e|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function mw(e){return(e|32)===97}function Oi(e){return e>=48&&e<=57}function _w(e){return e>=48&&e<=57||e===43||e===45||e===46}function bw(e){this.index=0,this.path=e,this.max=e.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function ka(e){for(;e.index<e.max&&gw(e.path.charCodeAt(e.index));)e.index++}function xw(e){var t=e.path.charCodeAt(e.index);if(t===48){e.param=0,e.index++;return}if(t===49){e.param=1,e.index++;return}e.err="SvgPath: arc flag can be 0 or 1 only (at pos "+e.index+")"}function Ew(e){var t=e.index,r=t,n=e.max,i=!1,a=!1,l=!1,u=!1,f;if(r>=n){e.err="SvgPath: missed param (at pos "+r+")";return}if(f=e.path.charCodeAt(r),(f===43||f===45)&&(r++,f=r<n?e.path.charCodeAt(r):0),!Oi(f)&&f!==46){e.err="SvgPath: param should start with 0..9 or `.` (at pos "+r+")";return}if(f!==46){if(i=f===48,r++,f=r<n?e.path.charCodeAt(r):0,i&&r<n&&f&&Oi(f)){e.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+t+")";return}for(;r<n&&Oi(e.path.charCodeAt(r));)r++,a=!0;f=r<n?e.path.charCodeAt(r):0}if(f===46){for(u=!0,r++;Oi(e.path.charCodeAt(r));)r++,l=!0;f=r<n?e.path.charCodeAt(r):0}if(f===101||f===69){if(u&&!a&&!l){e.err="SvgPath: invalid float exponent (at pos "+r+")";return}if(r++,f=r<n?e.path.charCodeAt(r):0,(f===43||f===45)&&r++,r<n&&Oi(e.path.charCodeAt(r)))for(;r<n&&Oi(e.path.charCodeAt(r));)r++;else{e.err="SvgPath: invalid float exponent (at pos "+r+")";return}}e.index=r,e.param=parseFloat(e.path.slice(t,r))+0}function _u(e){var t,r;t=e.path[e.segmentStart],r=t.toLowerCase();var n=e.data;if(r==="m"&&n.length>2&&(e.result.push([t,n[0],n[1]]),n=n.slice(2),r="l",t=t==="m"?"l":"L"),r==="r")e.result.push([t].concat(n));else for(;n.length>=Ma[r]&&(e.result.push([t].concat(n.splice(0,Ma[r]))),!!Ma[r]););}function ww(e){var t=e.max,r,n,i,a,l;if(e.segmentStart=e.index,r=e.path.charCodeAt(e.index),n=mw(r),!yw(r)){e.err="SvgPath: bad command "+e.path[e.index]+" (at pos "+e.index+")";return}if(a=Ma[e.path[e.index].toLowerCase()],e.index++,ka(e),e.data=[],!a){_u(e);return}for(i=!1;;){for(l=a;l>0;l--){if(n&&(l===3||l===4)?xw(e):Ew(e),e.err.length){_u(e);return}e.data.push(e.param),ka(e),i=!1,e.index<t&&e.path.charCodeAt(e.index)===44&&(e.index++,ka(e),i=!0)}if(!i&&(e.index>=e.max||!_w(e.path.charCodeAt(e.index))))break}_u(e)}var Tw=function(t){var r=new bw(t),n=r.max;for(ka(r);r.index<n&&!r.err.length;)ww(r);return r.result.length&&("mM".indexOf(r.result[0][0])<0?(r.err="SvgPath: string should start with `M` or `m`",r.result=[]):r.result[0][0]="M"),{err:r.err,segments:r.result}};function Aw(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function Or(){if(!(this instanceof Or))return new Or;this.queue=[],this.cache=null}Or.prototype.matrix=function(e){return e[0]===1&&e[1]===0&&e[2]===0&&e[3]===1&&e[4]===0&&e[5]===0?this:(this.cache=null,this.queue.push(e),this)},Or.prototype.translate=function(e,t){return(e!==0||t!==0)&&(this.cache=null,this.queue.push([1,0,0,1,e,t])),this},Or.prototype.scale=function(e,t){return(e!==1||t!==1)&&(this.cache=null,this.queue.push([e,0,0,t,0,0])),this},Or.prototype.rotate=function(e,t,r){var n,i,a;return e!==0&&(this.translate(t,r),n=e*Math.PI/180,i=Math.cos(n),a=Math.sin(n),this.queue.push([i,a,-a,i,0,0]),this.cache=null,this.translate(-t,-r)),this},Or.prototype.skewX=function(e){return e!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(e*Math.PI/180),1,0,0])),this},Or.prototype.skewY=function(e){return e!==0&&(this.cache=null,this.queue.push([1,Math.tan(e*Math.PI/180),0,1,0,0])),this},Or.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var e=1;e<this.queue.length;e++)this.cache=Aw(this.cache,this.queue[e]);return this.cache},Or.prototype.calc=function(e,t,r){var n;return this.queue.length?(this.cache||(this.cache=this.toArray()),n=this.cache,[e*n[0]+t*n[2]+(r?0:n[4]),e*n[1]+t*n[3]+(r?0:n[5])]):[e,t]};var zd=Or,Sw=zd,Ow={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},Iw=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,Rw=/[\s,]+/,Cw=function(t){var r=new Sw,n,i;return t.split(Iw).forEach(function(a){if(a.length){if(typeof Ow[a]<"u"){n=a;return}switch(i=a.split(Rw).map(function(l){return+l||0}),n){case"matrix":i.length===6&&r.matrix(i);return;case"scale":i.length===1?r.scale(i[0],i[0]):i.length===2&&r.scale(i[0],i[1]);return;case"rotate":i.length===1?r.rotate(i[0],0,0):i.length===3&&r.rotate(i[0],i[1],i[2]);return;case"translate":i.length===1?r.translate(i[0],0):i.length===2&&r.translate(i[0],i[1]);return;case"skewX":i.length===1&&r.skewX(i[0]);return;case"skewY":i.length===1&&r.skewY(i[0]);return}}}),r},gs=Math.PI*2;function Vd(e,t,r,n){var i=e*n-t*r<0?-1:1,a=e*r+t*n;return a>1&&(a=1),a<-1&&(a=-1),i*Math.acos(a)}function Nw(e,t,r,n,i,a,l,u,f,h){var p=h*(e-r)/2+f*(t-n)/2,d=-f*(e-r)/2+h*(t-n)/2,c=l*l,v=u*u,y=p*p,m=d*d,b=c*v-c*m-v*y;b<0&&(b=0),b/=c*m+v*y,b=Math.sqrt(b)*(i===a?-1:1);var _=b*l/u*d,E=b*-u/l*p,w=h*_-f*E+(e+r)/2,x=f*_+h*E+(t+n)/2,A=(p-_)/l,C=(d-E)/u,S=(-p-_)/l,O=(-d-E)/u,L=Vd(1,0,A,C),R=Vd(A,C,S,O);return a===0&&R>0&&(R-=gs),a===1&&R<0&&(R+=gs),[w,x,L,R]}function Pw(e,t){var r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),a=Math.cos(e+t),l=Math.sin(e+t);return[n,i,n-i*r,i+n*r,a+l*r,l-a*r,a,l]}var Mw=function(t,r,n,i,a,l,u,f,h){var p=Math.sin(h*gs/360),d=Math.cos(h*gs/360),c=d*(t-n)/2+p*(r-i)/2,v=-p*(t-n)/2+d*(r-i)/2;if(c===0&&v===0)return[];if(u===0||f===0)return[];u=Math.abs(u),f=Math.abs(f);var y=c*c/(u*u)+v*v/(f*f);y>1&&(u*=Math.sqrt(y),f*=Math.sqrt(y));var m=Nw(t,r,n,i,a,l,u,f,p,d),b=[],_=m[2],E=m[3],w=Math.max(Math.ceil(Math.abs(E)/(gs/4)),1);E/=w;for(var x=0;x<w;x++)b.push(Pw(_,E)),_+=E;return b.map(function(A){for(var C=0;C<A.length;C+=2){var S=A[C+0],O=A[C+1];S*=u,O*=f;var L=d*S-p*O,R=p*S+d*O;A[C+0]=L+m[0],A[C+1]=R+m[1]}return A})},ys=1e-10,Wd=Math.PI/180;function ms(e,t,r){if(!(this instanceof ms))return new ms(e,t,r);this.rx=e,this.ry=t,this.ax=r}ms.prototype.transform=function(e){var t=Math.cos(this.ax*Wd),r=Math.sin(this.ax*Wd),n=[this.rx*(e[0]*t+e[2]*r),this.rx*(e[1]*t+e[3]*r),this.ry*(-e[0]*r+e[2]*t),this.ry*(-e[1]*r+e[3]*t)],i=n[0]*n[0]+n[2]*n[2],a=n[1]*n[1]+n[3]*n[3],l=((n[0]-n[3])*(n[0]-n[3])+(n[2]+n[1])*(n[2]+n[1]))*((n[0]+n[3])*(n[0]+n[3])+(n[2]-n[1])*(n[2]-n[1])),u=(i+a)/2;if(l<ys*u)return this.rx=this.ry=Math.sqrt(u),this.ax=0,this;var f=n[0]*n[1]+n[2]*n[3];l=Math.sqrt(l);var h=u+l/2,p=u-l/2;return this.ax=Math.abs(f)<ys&&Math.abs(h-a)<ys?90:Math.atan(Math.abs(f)>Math.abs(h-a)?(h-i)/f:f/(h-a))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(h),this.ry=Math.sqrt(p)):(this.ax+=90,this.rx=Math.sqrt(p),this.ry=Math.sqrt(h)),this},ms.prototype.isDegenerate=function(){return this.rx<ys*this.ry||this.ry<ys*this.rx};var kw=ms,Lw=Tw,Fw=Cw,dn=zd,Bw=Mw,Uw=kw;function de(e){if(!(this instanceof de))return new de(e);var t=Lw(e);this.segments=t.segments,this.err=t.err,this.__stack=[]}de.from=function(e){if(typeof e=="string")return new de(e);if(e instanceof de){var t=new de("");return t.err=e.err,t.segments=e.segments.map(function(r){return r.slice()}),t.__stack=e.__stack.map(function(r){return dn().matrix(r.toArray())}),t}throw new Error("SvgPath.from: invalid param type "+e)},de.prototype.__matrix=function(e){var t=this,r;e.queue.length&&this.iterate(function(n,i,a,l){var u,f,h,p;switch(n[0]){case"v":u=e.calc(0,n[1],!0),f=u[0]===0?["v",u[1]]:["l",u[0],u[1]];break;case"V":u=e.calc(a,n[1],!1),f=u[0]===e.calc(a,l,!1)[0]?["V",u[1]]:["L",u[0],u[1]];break;case"h":u=e.calc(n[1],0,!0),f=u[1]===0?["h",u[0]]:["l",u[0],u[1]];break;case"H":u=e.calc(n[1],l,!1),f=u[1]===e.calc(a,l,!1)[1]?["H",u[0]]:["L",u[0],u[1]];break;case"a":case"A":var d=e.toArray(),c=Uw(n[1],n[2],n[3]).transform(d);if(d[0]*d[3]-d[1]*d[2]<0&&(n[5]=n[5]?"0":"1"),u=e.calc(n[6],n[7],n[0]==="a"),n[0]==="A"&&n[6]===a&&n[7]===l||n[0]==="a"&&n[6]===0&&n[7]===0){f=[n[0]==="a"?"l":"L",u[0],u[1]];break}c.isDegenerate()?f=[n[0]==="a"?"l":"L",u[0],u[1]]:f=[n[0],c.rx,c.ry,c.ax,n[4],n[5],u[0],u[1]];break;case"m":p=i>0,u=e.calc(n[1],n[2],p),f=["m",u[0],u[1]];break;default:for(h=n[0],f=[h],p=h.toLowerCase()===h,r=1;r<n.length;r+=2)u=e.calc(n[r],n[r+1],p),f.push(u[0],u[1])}t.segments[i]=f},!0)},de.prototype.__evaluateStack=function(){var e,t;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(e=dn(),t=this.__stack.length;--t>=0;)e.matrix(this.__stack[t].toArray());this.__matrix(e),this.__stack=[]}},de.prototype.toString=function(){var e="",t="",r=!1;this.__evaluateStack();for(var n=0,i=this.segments.length;n<i;n++){var a=this.segments[n],l=a[0];l!==t||l==="m"||l==="M"?(l==="m"&&t==="z"&&(e+=" "),e+=l,r=!1):r=!0;for(var u=1;u<a.length;u++){var f=a[u];u===1?r&&f>=0&&(e+=" "):f>=0&&(e+=" "),e+=f}t=l}return e},de.prototype.translate=function(e,t){return this.__stack.push(dn().translate(e,t||0)),this},de.prototype.scale=function(e,t){return this.__stack.push(dn().scale(e,!t&&t!==0?e:t)),this},de.prototype.rotate=function(e,t,r){return this.__stack.push(dn().rotate(e,t||0,r||0)),this},de.prototype.skewX=function(e){return this.__stack.push(dn().skewX(e)),this},de.prototype.skewY=function(e){return this.__stack.push(dn().skewY(e)),this},de.prototype.matrix=function(e){return this.__stack.push(dn().matrix(e)),this},de.prototype.transform=function(e){return e.trim()?(this.__stack.push(Fw(e)),this):this},de.prototype.round=function(e){var t=0,r=0,n=0,i=0,a;return e=e||0,this.__evaluateStack(),this.segments.forEach(function(l){var u=l[0].toLowerCase()===l[0];switch(l[0]){case"H":case"h":u&&(l[1]+=n),n=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"V":case"v":u&&(l[1]+=i),i=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"Z":case"z":n=t,i=r;return;case"M":case"m":u&&(l[1]+=n,l[2]+=i),n=l[1]-l[1].toFixed(e),i=l[2]-l[2].toFixed(e),t=n,r=i,l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e);return;case"A":case"a":u&&(l[6]+=n,l[7]+=i),n=l[6]-l[6].toFixed(e),i=l[7]-l[7].toFixed(e),l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e),l[3]=+l[3].toFixed(e+2),l[6]=+l[6].toFixed(e),l[7]=+l[7].toFixed(e);return;default:a=l.length,u&&(l[a-2]+=n,l[a-1]+=i),n=l[a-2]-l[a-2].toFixed(e),i=l[a-1]-l[a-1].toFixed(e),l.forEach(function(f,h){h&&(l[h]=+l[h].toFixed(e))});return}}),this},de.prototype.iterate=function(e,t){var r=this.segments,n={},i=!1,a=0,l=0,u=0,f=0,h,p,d;if(t||this.__evaluateStack(),r.forEach(function(c,v){var y=e(c,v,a,l);Array.isArray(y)&&(n[v]=y,i=!0);var m=c[0]===c[0].toLowerCase();switch(c[0]){case"m":case"M":a=c[1]+(m?a:0),l=c[2]+(m?l:0),u=a,f=l;return;case"h":case"H":a=c[1]+(m?a:0);return;case"v":case"V":l=c[1]+(m?l:0);return;case"z":case"Z":a=u,l=f;return;default:a=c[c.length-2]+(m?a:0),l=c[c.length-1]+(m?l:0)}}),!i)return this;for(d=[],h=0;h<r.length;h++)if(typeof n[h]<"u")for(p=0;p<n[h].length;p++)d.push(n[h][p]);else d.push(r[h]);return this.segments=d,this},de.prototype.abs=function(){return this.iterate(function(e,t,r,n){var i=e[0],a=i.toUpperCase(),l;if(i!==a)switch(e[0]=a,i){case"v":e[1]+=n;return;case"a":e[6]+=r,e[7]+=n;return;default:for(l=1;l<e.length;l++)e[l]+=l%2?r:n}},!0),this},de.prototype.rel=function(){return this.iterate(function(e,t,r,n){var i=e[0],a=i.toLowerCase(),l;if(i!==a&&!(t===0&&i==="M"))switch(e[0]=a,i){case"V":e[1]-=n;return;case"A":e[6]-=r,e[7]-=n;return;default:for(l=1;l<e.length;l++)e[l]-=l%2?r:n}},!0),this},de.prototype.unarc=function(){return this.iterate(function(e,t,r,n){var i,a,l,u=[],f=e[0];return f!=="A"&&f!=="a"?null:(f==="a"?(a=r+e[6],l=n+e[7]):(a=e[6],l=e[7]),i=Bw(r,n,a,l,e[4],e[5],e[1],e[2],e[3]),i.length===0?[[e[0]==="a"?"l":"L",e[6],e[7]]]:(i.forEach(function(h){u.push(["C",h[2],h[3],h[4],h[5],h[6],h[7]])}),u))}),this},de.prototype.unshort=function(){var e=this.segments,t,r,n,i,a;return this.iterate(function(l,u,f,h){var p=l[0],d=p.toUpperCase(),c;u&&(d==="T"?(c=p==="t",n=e[u-1],n[0]==="Q"?(t=n[1]-f,r=n[2]-h):n[0]==="q"?(t=n[1]-n[3],r=n[2]-n[4]):(t=0,r=0),i=-t,a=-r,c||(i+=f,a+=h),e[u]=[c?"q":"Q",i,a,l[1],l[2]]):d==="S"&&(c=p==="s",n=e[u-1],n[0]==="C"?(t=n[3]-f,r=n[4]-h):n[0]==="c"?(t=n[3]-n[5],r=n[4]-n[6]):(t=0,r=0),i=-t,a=-r,c||(i+=f,a+=h),e[u]=[c?"c":"C",i,a,l[1],l[2],l[3],l[4]]))}),this};var Dw=de,$w=Dw;const Gw=Tn($w),qw=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState(null),i=mt.useRef(null),a=mt.useRef(null),l=mt.useRef(null),{path:u,transformation:{x:f,y:h,width:p,height:d,anchor:c,hexColor:v,fill:y,stroke:m="none",strokeWidth:b=0},pointerdown:_,pointerup:E}=e,w=ve.useApp();return Tt.useEffect(()=>{const x=Gw(u).scale(5).translate(0,0).toString(),A=`<svg xmlns="http://www.w3.org/2000/svg" width="${p}" height="${d}">
|
|
548
548
|
<path stroke="${m}" stroke-width="${b}" fill="${v||y}" d="${x}">
|
|
549
549
|
</path>
|
|
550
|
-
</svg>`,C=new pw(A),S=w.renderer.generateTexture(C);return n(S),()=>{}},[w,u,m,b,v,y]),Jt.jsx(Ei,{...e,ref:t,children:Jt.jsx(ve.Container,{ref:a,children:Jt.jsx(ve.Container,{ref:l,children:r&&Jt.jsx(ve.Sprite,{texture:r,width:p,height:d,anchor:c,ref:i,x:f,y:h,interactive:!0,pointerdown:_,pointerup:E})})})})});var jw=Br,Hw=function(){return jw.Date.now()},zw=Hw,Vw=/\s/;function Ww(e){for(var t=e.length;t--&&Vw.test(e.charAt(t)););return t}var Xw=Ww,Kw=Xw,Yw=/^\s+/;function Zw(e){return e&&e.slice(0,Kw(e)+1).replace(Yw,"")}var Jw=Zw,Qw=cs,tT=ds,eT="[object Symbol]";function rT(e){return typeof e=="symbol"||tT(e)&&Qw(e)==eT}var La=rT,nT=Jw,Xd=hs,iT=La,Kd=0/0,sT=/^[-+]0x[0-9a-f]+$/i,aT=/^0b[01]+$/i,oT=/^0o[0-7]+$/i,lT=parseInt;function uT(e){if(typeof e=="number")return e;if(iT(e))return Kd;if(Xd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nT(e);var r=aT.test(e);return r||oT.test(e)?lT(e.slice(2),r?2:8):sT.test(e)?Kd:+e}var fT=uT,cT=hs,bu=zw,Yd=fT,hT="Expected a function",dT=Math.max,pT=Math.min;function vT(e,t,r){var n,i,a,l,u,f,h=0,p=!1,d=!1,c=!0;if(typeof e!="function")throw new TypeError(hT);t=Yd(t)||0,cT(r)&&(p=!!r.leading,d="maxWait"in r,a=d?dT(Yd(r.maxWait)||0,t):a,c="trailing"in r?!!r.trailing:c);function v(C){var S=n,O=i;return n=i=void 0,h=C,l=e.apply(O,S),l}function y(C){return h=C,u=setTimeout(_,t),p?v(C):l}function m(C){var S=C-f,O=C-h,L=t-S;return d?pT(L,a-O):L}function b(C){var S=C-f,O=C-h;return f===void 0||S>=t||S<0||d&&O>=a}function _(){var C=bu();if(b(C))return E(C);u=setTimeout(_,m(C))}function E(C){return u=void 0,c&&n?v(C):(n=i=void 0,l)}function w(){u!==void 0&&clearTimeout(u),h=0,n=f=i=u=void 0}function x(){return u===void 0?l:E(bu())}function A(){var C=bu(),S=b(C);if(n=arguments,i=this,f=C,S){if(u===void 0)return y(f);if(d)return clearTimeout(u),u=setTimeout(_,t),v(f)}return u===void 0&&(u=setTimeout(_,t)),l}return A.cancel=w,A.flush=x,A}var gT=vT;const Zd=Tn(gT),yT=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=Tt.useState(!1);console.log("allProps",e);const n=mt.useRef(null),i=mt.useRef(t),a=mt.useRef(null),{tl:l,isDragging:u}=mt.useContext(mi),{uniqueId:f,src:h,startAt:p,endAt:d,mute:c,speed:v}=e,y=e.audioStartAt||p,m=e.audioEndAt||d,b=Tt.useRef(null);wr(qe.PAUSE,()=>{var S;n.current&&b.current&&((S=b.current)==null||S.pause(),i.current.isPlaying=!1)}),Tt.useEffect(()=>{b.current&&(u?(b.current.pause(),i.current.isPlaying=!1,i.current.isDragging=!0):i.current.isDragging=!1)},[u]);const _=S=>{var O,L;n.current&&((O=b.current)==null||O.play({volume:c?0:1,start:S,end:d,speed:v||1}),u?((L=b.current)==null||L.pause(),i.current.isPlaying=!1,i.current.completed=!1):(i.current.isPlaying=!0,i.current.completed=!1))},E=Zd((S,O)=>{var L;b.current&&((L=b.current)==null||L.play({volume:c?0:1,start:S,end:O,speed:v||1}),i.current.isPlaying=!0)},100),w=Zd(()=>{b.current&&(b.current.pause(),i.current.isPlaying=!1)},300),x=()=>{var S;n.current&&(console.log("audio gsapOnStart",p),(S=b.current)==null||S.stop(),i.current.isPlaying=!1,i.current.completed=!0)},A=(S,O)=>{var R,I,N,k;const L=S+((R=a.current)==null?void 0:R.time());b.current&&i.current.isDragging?(E(L,O),w(),i.current.isPlaying=!1):n.current&&!i.current.isPlaying&&((I=b.current)==null||I.refresh(),(N=b.current)==null||N.refreshPaused(),(k=b.current)==null||k.resume(),i.current.isPlaying=!0)},C=()=>{};return mt.useEffect(()=>{let S=Xe.context(()=>{});if(n.current&&l.current){const O={duration:Number(m)-Number(y),onStart:_,onComplete:x,onStartParams:[y,m],onCompleteParams:[],onInterrupt:C,onUpdate:A,onUpdateParams:[y,m]};S=Xe.context(()=>{a.current=Xe.from(n.current,O,y),l.current.to(n.current,{alpha:1,duration:.01},p).to(n.current,{alpha:0,duration:.1},Number(d)-.09),l.current.add(a.current,p)})}return()=>S.revert()},[p,d,y,m]),Tt.useEffect(()=>{n.current&&r(!0)},[]),Tt.useEffect(()=>{n.current&&b.current&&(i.current.mute=c,i.current.speed=v,b.current.volume=c?0:1)},[c,v]),Tt.useEffect(()=>(xi(h)||(b.current=yy.Sound.from({url:h,preload:!0,singleInstance:!0,loaded:()=>{i.current.loaded=!0}})),()=>{}),[f,h]),Jt.jsx(ve.Container,{ref:n})};function mT(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Jd=mT;function _T(){this.__data__=[],this.size=0}var bT=_T;function xT(e,t){return e===t||e!==e&&t!==t}var Qd=xT,ET=Qd;function wT(e,t){for(var r=e.length;r--;)if(ET(e[r][0],t))return r;return-1}var Fa=wT,TT=Fa,AT=Array.prototype,ST=AT.splice;function OT(e){var t=this.__data__,r=TT(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ST.call(t,r,1),--this.size,!0}var IT=OT,RT=Fa;function CT(e){var t=this.__data__,r=RT(t,e);return r<0?void 0:t[r][1]}var NT=CT,PT=Fa;function MT(e){return PT(this.__data__,e)>-1}var kT=MT,LT=Fa;function FT(e,t){var r=this.__data__,n=LT(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var BT=FT,UT=bT,DT=IT,$T=NT,GT=kT,qT=BT;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=UT,Ii.prototype.delete=DT,Ii.prototype.get=$T,Ii.prototype.has=GT,Ii.prototype.set=qT;var Ba=Ii,jT=Ba;function HT(){this.__data__=new jT,this.size=0}var zT=HT;function VT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var WT=VT;function XT(e){return this.__data__.get(e)}var KT=XT;function YT(e){return this.__data__.has(e)}var ZT=YT,JT=_i,QT=JT(Object,"create"),Ua=QT,tp=Ua;function tA(){this.__data__=tp?tp(null):{},this.size=0}var eA=tA;function rA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nA=rA,iA=Ua,sA="__lodash_hash_undefined__",aA=Object.prototype,oA=aA.hasOwnProperty;function lA(e){var t=this.__data__;if(iA){var r=t[e];return r===sA?void 0:r}return oA.call(t,e)?t[e]:void 0}var uA=lA,fA=Ua,cA=Object.prototype,hA=cA.hasOwnProperty;function dA(e){var t=this.__data__;return fA?t[e]!==void 0:hA.call(t,e)}var pA=dA,vA=Ua,gA="__lodash_hash_undefined__";function yA(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=vA&&t===void 0?gA:t,this}var mA=yA,_A=eA,bA=nA,xA=uA,EA=pA,wA=mA;function Ri(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ri.prototype.clear=_A,Ri.prototype.delete=bA,Ri.prototype.get=xA,Ri.prototype.has=EA,Ri.prototype.set=wA;var TA=Ri,ep=TA,AA=Ba,SA=Jl;function OA(){this.size=0,this.__data__={hash:new ep,map:new(SA||AA),string:new ep}}var IA=OA;function RA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var CA=RA,NA=CA;function PA(e,t){var r=e.__data__;return NA(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Da=PA,MA=Da;function kA(e){var t=MA(this,e).delete(e);return this.size-=t?1:0,t}var LA=kA,FA=Da;function BA(e){return FA(this,e).get(e)}var UA=BA,DA=Da;function $A(e){return DA(this,e).has(e)}var GA=$A,qA=Da;function jA(e,t){var r=qA(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var HA=jA,zA=IA,VA=LA,WA=UA,XA=GA,KA=HA;function Ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ci.prototype.clear=zA,Ci.prototype.delete=VA,Ci.prototype.get=WA,Ci.prototype.has=XA,Ci.prototype.set=KA;var xu=Ci,YA=Ba,ZA=Jl,JA=xu,QA=200;function tS(e,t){var r=this.__data__;if(r instanceof YA){var n=r.__data__;if(!ZA||n.length<QA-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new JA(n)}return r.set(e,t),this.size=r.size,this}var eS=tS,rS=Ba,nS=zT,iS=WT,sS=KT,aS=ZT,oS=eS;function Ni(e){var t=this.__data__=new rS(e);this.size=t.size}Ni.prototype.clear=nS,Ni.prototype.delete=iS,Ni.prototype.get=sS,Ni.prototype.has=aS,Ni.prototype.set=oS;var rp=Ni,lS="__lodash_hash_undefined__";function uS(e){return this.__data__.set(e,lS),this}var fS=uS;function cS(e){return this.__data__.has(e)}var hS=cS,dS=xu,pS=fS,vS=hS;function $a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new dS;++t<r;)this.add(e[t])}$a.prototype.add=$a.prototype.push=pS,$a.prototype.has=vS;var gS=$a;function yS(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var mS=yS;function _S(e,t){return e.has(t)}var bS=_S,xS=gS,ES=mS,wS=bS,TS=1,AS=2;function SS(e,t,r,n,i,a){var l=r&TS,u=e.length,f=t.length;if(u!=f&&!(l&&f>u))return!1;var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var d=-1,c=!0,v=r&AS?new xS:void 0;for(a.set(e,t),a.set(t,e);++d<u;){var y=e[d],m=t[d];if(n)var b=l?n(m,y,d,t,e,a):n(y,m,d,e,t,a);if(b!==void 0){if(b)continue;c=!1;break}if(v){if(!ES(t,function(_,E){if(!wS(v,E)&&(y===_||i(y,_,r,n,a)))return v.push(E)})){c=!1;break}}else if(!(y===m||i(y,m,r,n,a))){c=!1;break}}return a.delete(e),a.delete(t),c}var np=SS,OS=Br,IS=OS.Uint8Array,RS=IS;function CS(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var NS=CS;function PS(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var MS=PS,ip=wa,sp=RS,kS=Qd,LS=np,FS=NS,BS=MS,US=1,DS=2,$S="[object Boolean]",GS="[object Date]",qS="[object Error]",jS="[object Map]",HS="[object Number]",zS="[object RegExp]",VS="[object Set]",WS="[object String]",XS="[object Symbol]",KS="[object ArrayBuffer]",YS="[object DataView]",ap=ip?ip.prototype:void 0,Eu=ap?ap.valueOf:void 0;function ZS(e,t,r,n,i,a,l){switch(r){case YS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case KS:return!(e.byteLength!=t.byteLength||!a(new sp(e),new sp(t)));case $S:case GS:case HS:return kS(+e,+t);case qS:return e.name==t.name&&e.message==t.message;case zS:case WS:return e==t+"";case jS:var u=FS;case VS:var f=n&US;if(u||(u=BS),e.size!=t.size&&!f)return!1;var h=l.get(e);if(h)return h==t;n|=DS,l.set(e,t);var p=LS(u(e),u(t),n,i,a,l);return l.delete(e),p;case XS:if(Eu)return Eu.call(e)==Eu.call(t)}return!1}var JS=ZS;function QS(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var tO=QS,eO=tO,rO=Ur;function nO(e,t,r){var n=t(e);return rO(e)?n:eO(n,r(e))}var iO=nO;function sO(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var l=e[r];t(l,r,e)&&(a[i++]=l)}return a}var aO=sO;function oO(){return[]}var lO=oO,uO=aO,fO=lO,cO=Object.prototype,hO=cO.propertyIsEnumerable,op=Object.getOwnPropertySymbols,dO=op?function(e){return e==null?[]:(e=Object(e),uO(op(e),function(t){return hO.call(e,t)}))}:fO,pO=dO;function vO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var gO=vO,yO=9007199254740991,mO=/^(?:0|[1-9]\d*)$/;function _O(e,t){var r=typeof e;return t=t??yO,!!t&&(r=="number"||r!="symbol"&&mO.test(e))&&e>-1&&e%1==0&&e<t}var lp=_O,bO=gO,xO=iu,EO=Ur,wO=au,TO=lp,AO=ou,SO=Object.prototype,OO=SO.hasOwnProperty;function IO(e,t){var r=EO(e),n=!r&&xO(e),i=!r&&!n&&wO(e),a=!r&&!n&&!i&&AO(e),l=r||n||i||a,u=l?bO(e.length,String):[],f=u.length;for(var h in e)(t||OO.call(e,h))&&!(l&&(h=="length"||i&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||TO(h,f)))&&u.push(h);return u}var RO=IO,CO=RO,NO=od,PO=Ta;function MO(e){return PO(e)?CO(e):NO(e)}var wu=MO,kO=iO,LO=pO,FO=wu;function BO(e){return kO(e,FO,LO)}var UO=BO,up=UO,DO=1,$O=Object.prototype,GO=$O.hasOwnProperty;function qO(e,t,r,n,i,a){var l=r&DO,u=up(e),f=u.length,h=up(t),p=h.length;if(f!=p&&!l)return!1;for(var d=f;d--;){var c=u[d];if(!(l?c in t:GO.call(t,c)))return!1}var v=a.get(e),y=a.get(t);if(v&&y)return v==t&&y==e;var m=!0;a.set(e,t),a.set(t,e);for(var b=l;++d<f;){c=u[d];var _=e[c],E=t[c];if(n)var w=l?n(E,_,c,t,e,a):n(_,E,c,e,t,a);if(!(w===void 0?_===E||i(_,E,r,n,a):w)){m=!1;break}b||(b=c=="constructor")}if(m&&!b){var x=e.constructor,A=t.constructor;x!=A&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof A=="function"&&A instanceof A)&&(m=!1)}return a.delete(e),a.delete(t),m}var jO=qO,Tu=rp,HO=np,zO=JS,VO=jO,fp=Ed,cp=Ur,hp=au,WO=ou,XO=1,dp="[object Arguments]",pp="[object Array]",Ga="[object Object]",KO=Object.prototype,vp=KO.hasOwnProperty;function YO(e,t,r,n,i,a){var l=cp(e),u=cp(t),f=l?pp:fp(e),h=u?pp:fp(t);f=f==dp?Ga:f,h=h==dp?Ga:h;var p=f==Ga,d=h==Ga,c=f==h;if(c&&hp(e)){if(!hp(t))return!1;l=!0,p=!1}if(c&&!p)return a||(a=new Tu),l||WO(e)?HO(e,t,r,n,i,a):zO(e,t,f,r,n,i,a);if(!(r&XO)){var v=p&&vp.call(e,"__wrapped__"),y=d&&vp.call(t,"__wrapped__");if(v||y){var m=v?e.value():e,b=y?t.value():t;return a||(a=new Tu),i(m,b,r,n,a)}}return c?(a||(a=new Tu),VO(e,t,r,n,i,a)):!1}var ZO=YO,JO=ZO,gp=ds;function yp(e,t,r,n,i){return e===t?!0:e==null||t==null||!gp(e)&&!gp(t)?e!==e&&t!==t:JO(e,t,r,n,yp,i)}var mp=yp,QO=rp,t2=mp,e2=1,r2=2;function n2(e,t,r,n){var i=r.length,a=i,l=!n;if(e==null)return!a;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=r[i];var f=u[0],h=e[f],p=u[1];if(l&&u[2]){if(h===void 0&&!(f in e))return!1}else{var d=new QO;if(n)var c=n(h,p,f,e,t,d);if(!(c===void 0?t2(p,h,e2|r2,n,d):c))return!1}}return!0}var i2=n2,s2=hs;function a2(e){return e===e&&!s2(e)}var _p=a2,o2=_p,l2=wu;function u2(e){for(var t=l2(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,o2(i)]}return t}var f2=u2;function c2(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var bp=c2,h2=i2,d2=f2,p2=bp;function v2(e){var t=d2(e);return t.length==1&&t[0][2]?p2(t[0][0],t[0][1]):function(r){return r===e||h2(r,e,t)}}var g2=v2,y2=Ur,m2=La,_2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b2=/^\w*$/;function x2(e,t){if(y2(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||m2(e)?!0:b2.test(e)||!_2.test(e)||t!=null&&e in Object(t)}var Au=x2,xp=xu,E2="Expected a function";function Su(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(E2);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var l=e.apply(this,n);return r.cache=a.set(i,l)||a,l};return r.cache=new(Su.Cache||xp),r}Su.Cache=xp;var w2=Su,T2=w2,A2=500;function S2(e){var t=T2(e,function(n){return r.size===A2&&r.clear(),n}),r=t.cache;return t}var O2=S2,I2=O2,R2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C2=/\\(\\)?/g,N2=I2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(R2,function(r,n,i,a){t.push(i?a.replace(C2,"$1"):n||r)}),t}),P2=N2,Ep=wa,M2=Jd,k2=Ur,L2=La,F2=1/0,wp=Ep?Ep.prototype:void 0,Tp=wp?wp.toString:void 0;function Ap(e){if(typeof e=="string")return e;if(k2(e))return M2(e,Ap)+"";if(L2(e))return Tp?Tp.call(e):"";var t=e+"";return t=="0"&&1/e==-F2?"-0":t}var B2=Ap,U2=B2;function D2(e){return e==null?"":U2(e)}var $2=D2,G2=Ur,q2=Au,j2=P2,H2=$2;function z2(e,t){return G2(e)?e:q2(e,t)?[e]:j2(H2(e))}var Sp=z2,V2=La,W2=1/0;function X2(e){if(typeof e=="string"||V2(e))return e;var t=e+"";return t=="0"&&1/e==-W2?"-0":t}var qa=X2,K2=Sp,Y2=qa;function Z2(e,t){t=K2(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Y2(t[r++])];return r&&r==n?e:void 0}var Op=Z2,J2=Op;function Q2(e,t,r){var n=e==null?void 0:J2(e,t);return n===void 0?r:n}var tI=Q2;function eI(e,t){return e!=null&&t in Object(e)}var rI=eI,nI=Sp,iI=iu,sI=Ur,aI=lp,oI=su,lI=qa;function uI(e,t,r){t=nI(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var l=lI(t[n]);if(!(a=e!=null&&r(e,l)))break;e=e[l]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&oI(i)&&aI(l,i)&&(sI(e)||iI(e)))}var fI=uI,cI=rI,hI=fI;function dI(e,t){return e!=null&&hI(e,t,cI)}var pI=dI,vI=mp,gI=tI,yI=pI,mI=Au,_I=_p,bI=bp,xI=qa,EI=1,wI=2;function TI(e,t){return mI(e)&&_I(t)?bI(xI(e),t):function(r){var n=gI(r,e);return n===void 0&&n===t?yI(r,e):vI(t,n,EI|wI)}}var AI=TI;function SI(e){return e}var OI=SI;function II(e){return function(t){return t==null?void 0:t[e]}}var RI=II,CI=Op;function NI(e){return function(t){return CI(t,e)}}var PI=NI,MI=RI,kI=PI,LI=Au,FI=qa;function BI(e){return LI(e)?MI(FI(e)):kI(e)}var UI=BI,DI=g2,$I=AI,GI=OI,qI=Ur,jI=UI;function HI(e){return typeof e=="function"?e:e==null?GI:typeof e=="object"?qI(e)?$I(e[0],e[1]):DI(e):jI(e)}var zI=HI;function VI(e){return function(t,r,n){for(var i=-1,a=Object(t),l=n(t),u=l.length;u--;){var f=l[e?u:++i];if(r(a[f],f,a)===!1)break}return t}}var WI=VI,XI=WI,KI=XI(),YI=KI,ZI=YI,JI=wu;function QI(e,t){return e&&ZI(e,t,JI)}var tR=QI,eR=Ta;function rR(e,t){return function(r,n){if(r==null)return r;if(!eR(r))return e(r,n);for(var i=r.length,a=t?i:-1,l=Object(r);(t?a--:++a<i)&&n(l[a],a,l)!==!1;);return r}}var nR=rR,iR=tR,sR=nR,aR=sR(iR),oR=aR,lR=oR,uR=Ta;function fR(e,t){var r=-1,n=uR(e)?Array(e.length):[];return lR(e,function(i,a,l){n[++r]=t(i,a,l)}),n}var cR=fR,hR=Jd,dR=zI,pR=cR,vR=Ur;function gR(e,t){var r=vR(e)?hR:pR;return r(e,dR(t))}var yR=gR;const mR=Tn(yR);var Gn={},Ip={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.loop=Kr.conditional=Kr.parse=void 0;var _R=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;if(Array.isArray(r))r.forEach(function(l){return e(t,l,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var a=Object.keys(r)[0];Array.isArray(r[a])?(i[a]={},e(t,r[a],n,i[a])):i[a]=r[a](t,n,i,e)}return n};Kr.parse=_R;var bR=function(t,r){return function(n,i,a,l){r(n,i,a)&&l(n,t,i,a)}};Kr.conditional=bR;var xR=function(t,r){return function(n,i,a,l){for(var u=[],f=n.pos;r(n,i,a);){var h={};if(l(n,t,i,h),n.pos===f)break;f=n.pos,u.push(h)}return u}};Kr.loop=xR;var ye={};Object.defineProperty(ye,"__esModule",{value:!0}),ye.readBits=ye.readArray=ye.readUnsigned=ye.readString=ye.peekBytes=ye.readBytes=ye.peekByte=ye.readByte=ye.buildStream=void 0;var ER=function(t){return{data:t,pos:0}};ye.buildStream=ER;var Rp=function(){return function(t){return t.data[t.pos++]}};ye.readByte=Rp;var wR=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};ye.peekByte=wR;var ja=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};ye.readBytes=ja;var TR=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};ye.peekBytes=TR;var AR=function(t){return function(r){return Array.from(ja(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};ye.readString=AR;var SR=function(t){return function(r){var n=ja(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};ye.readUnsigned=SR;var OR=function(t,r){return function(n,i,a){for(var l=typeof r=="function"?r(n,i,a):r,u=ja(t),f=new Array(l),h=0;h<l;h++)f[h]=u(n);return f}};ye.readArray=OR;var IR=function(t,r,n){for(var i=0,a=0;a<n;a++)i+=t[r+a]&&Math.pow(2,n-a-1);return i},RR=function(t){return function(r){for(var n=Rp()(r),i=new Array(8),a=0;a<8;a++)i[7-a]=!!(n&1<<a);return Object.keys(t).reduce(function(l,u){var f=t[u];return f.length?l[u]=IR(i,f.index,f.length):l[u]=i[f.index],l},{})}};ye.readBits=RR,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Kr,r=ye,n={blocks:function(c){for(var v=0,y=[],m=c.data.length,b=0,_=(0,r.readByte)()(c);_!==v&&_;_=(0,r.readByte)()(c)){if(c.pos+_>=m){var E=m-c.pos;y.push((0,r.readBytes)(E)(c)),b+=E;break}y.push((0,r.readBytes)(_)(c)),b+=_}for(var w=new Uint8Array(b),x=0,A=0;A<y.length;A++)w.set(y[A],x),x+=y[A].length;return w}},i=(0,t.conditional)({gce:[{codes:(0,r.readBytes)(2)},{byteSize:(0,r.readByte)()},{extras:(0,r.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,r.readUnsigned)(!0)},{transparentColorIndex:(0,r.readByte)()},{terminator:(0,r.readByte)()}]},function(d){var c=(0,r.peekBytes)(2)(d);return c[0]===33&&c[1]===249}),a=(0,t.conditional)({image:[{code:(0,r.readByte)()},{descriptor:[{left:(0,r.readUnsigned)(!0)},{top:(0,r.readUnsigned)(!0)},{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{lct:(0,r.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,t.conditional)({lct:(0,r.readArray)(3,function(d,c,v){return Math.pow(2,v.descriptor.lct.size+1)})},function(d,c,v){return v.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(d){return(0,r.peekByte)()(d)===44}),l=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(c,v,y){return(0,r.readBytes)(y.text.blockSize)(c)}},n]},function(d){var c=(0,r.peekBytes)(2)(d);return c[0]===33&&c[1]===1}),u=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(c,v,y){return(0,r.readString)(y.blockSize)(c)}},n]},function(d){var c=(0,r.peekBytes)(2)(d);return c[0]===33&&c[1]===255}),f=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(d){var c=(0,r.peekBytes)(2)(d);return c[0]===33&&c[1]===254}),h=[{header:[{signature:(0,r.readString)(3)},{version:(0,r.readString)(3)}]},{lsd:[{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{gct:(0,r.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,r.readByte)()},{pixelAspectRatio:(0,r.readByte)()}]},(0,t.conditional)({gct:(0,r.readArray)(3,function(d,c){return Math.pow(2,c.lsd.gct.size+1)})},function(d,c){return c.lsd.gct.exists}),{frames:(0,t.loop)([i,u,f,a,l],function(d){var c=(0,r.peekByte)()(d);return c===33||c===44})}],p=h;e.default=p}(Ip);var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.deinterlace=void 0;var CR=function(t,r){for(var n=new Array(t.length),i=t.length/r,a=function(c,v){var y=t.slice(v*r,(v+1)*r);n.splice.apply(n,[c*r,r].concat(y))},l=[0,4,2,1],u=[8,8,4,2],f=0,h=0;h<4;h++)for(var p=l[h];p<i;p+=u[h])a(p,f),f++;return n};Ha.deinterlace=CR;var za={};Object.defineProperty(za,"__esModule",{value:!0}),za.lzw=void 0;var NR=function(t,r,n){var i=4096,a=-1,l=n,u,f,h,p,d,c,v,C,y,m,A,b,S,O,R,L,_=new Array(n),E=new Array(i),w=new Array(i),x=new Array(i+1);for(b=t,f=1<<b,d=f+1,u=f+2,v=a,p=b+1,h=(1<<p)-1,y=0;y<f;y++)E[y]=0,w[y]=y;var A,C,S,O,L,R;for(A=C=S=O=L=R=0,m=0;m<l;){if(O===0){if(C<p){A+=r[R]<<C,C+=8,R++;continue}if(y=A&h,A>>=p,C-=p,y>u||y==d)break;if(y==f){p=b+1,h=(1<<p)-1,u=f+2,v=a;continue}if(v==a){x[O++]=w[y],v=y,S=y;continue}for(c=y,y==u&&(x[O++]=S,y=v);y>f;)x[O++]=w[y],y=E[y];S=w[y]&255,x[O++]=S,u<i&&(E[u]=v,w[u]=S,u++,!(u&h)&&u<i&&(p++,h+=u)),v=c}O--,_[L++]=x[O],m++}for(m=L;m<l;m++)_[m]=0;return _};za.lzw=NR,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.decompressFrames=Gn.decompressFrame=Gn.parseGIF=void 0;var PR=BR(Ip),MR=Kr,kR=ye,LR=Ha,FR=za;function BR(e){return e&&e.__esModule?e:{default:e}}var UR=function(t){var r=new Uint8Array(t);return(0,MR.parse)((0,kR.buildStream)(r),PR.default)};Gn.parseGIF=UR;var DR=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var a=i*4,l=t.pixels[i],u=t.colorTable[l]||[0,0,0];n[a]=u[0],n[a+1]=u[1],n[a+2]=u[2],n[a+3]=l!==t.transparentIndex?255:0}return n},Cp=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,a=i.descriptor.width*i.descriptor.height,l=(0,FR.lzw)(i.data.minCodeSize,i.data.blocks,a);i.descriptor.lct.interlaced&&(l=(0,LR.deinterlace)(l,i.descriptor.width));var u={pixels:l,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?u.colorTable=i.lct:u.colorTable=r,t.gce&&(u.delay=(t.gce.delay||10)*10,u.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(u.transparentIndex=t.gce.transparentColorIndex)),n&&(u.patch=DR(u)),u};Gn.decompressFrame=Cp;var $R=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return Cp(n,t.gct,r)})};Gn.decompressFrames=$R;const Np=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,a={...e,...i};return r&&Object.assign(a,{playing:a.autoPlay&&a.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(a,{length:a.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(a,{index:a.length===0?0:(a.length+a.index)%a.length}),t.playing!=null&&Object.assign(a,a.loaded?{playing:n}:{autoPlay:n}),a},GR=e=>Np({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),qR=e=>mt.useReducer(Np,e,GR);var jR='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function HR(e){const t=new Blob([jR],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const zR=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),VR=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),mt.useLayoutEffect(()=>(r.timeout?(clearTimeout(r.timeout),delete r.timeout):r.usageCount=(r.usageCount||0)+1,()=>{r.timeout=setTimeout(()=>{r.usageCount=r.usageCount-1,r.usageCount===0&&(t&&t(r.instance),delete r.instance,delete r.timeout)})}),[r,t]),r.instance)},WR=e=>{const t=mt.useRef(e);return mt.useEffect(()=>{t.current=e},[e]),t},XR=e=>{const t=WR(e);return mt.useCallback(r=>t.current&&t.current(r),[])},KR=VR(()=>new HR,e=>e.terminate()),YR=(e,t)=>{const r=XR(t),n=KR();mt.useEffect(()=>{if(typeof e=="string"){const i=a=>{const l=a.data||a;if(l.src===e){const u=l.error?l:zR(l);r(u)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},ZR=({isPlaying:e,forwardRef:t,...r})=>{const n=Tt.useRef(null);return Tt.useImperativeHandle(t,()=>n.current,[n]),Tt.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),Jt.jsx(ve.AnimatedSprite,{ref:n,...r,isPlaying:e})},Pp=Tt.memo(ZR);var Va={exports:{}};/**
|
|
550
|
+
</svg>`,C=new pw(A),S=w.renderer.generateTexture(C);return n(S),()=>{}},[w,u,m,b,v,y]),Jt.jsx(Ei,{...e,ref:t,children:Jt.jsx(ve.Container,{ref:a,children:Jt.jsx(ve.Container,{ref:l,children:r&&Jt.jsx(ve.Sprite,{texture:r,width:p,height:d,anchor:c,ref:i,x:f,y:h,interactive:!0,pointerdown:_,pointerup:E})})})})});var jw=Br,Hw=function(){return jw.Date.now()},zw=Hw,Vw=/\s/;function Ww(e){for(var t=e.length;t--&&Vw.test(e.charAt(t)););return t}var Xw=Ww,Kw=Xw,Yw=/^\s+/;function Zw(e){return e&&e.slice(0,Kw(e)+1).replace(Yw,"")}var Jw=Zw,Qw=cs,tT=ds,eT="[object Symbol]";function rT(e){return typeof e=="symbol"||tT(e)&&Qw(e)==eT}var La=rT,nT=Jw,Xd=hs,iT=La,Kd=0/0,sT=/^[-+]0x[0-9a-f]+$/i,aT=/^0b[01]+$/i,oT=/^0o[0-7]+$/i,lT=parseInt;function uT(e){if(typeof e=="number")return e;if(iT(e))return Kd;if(Xd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nT(e);var r=aT.test(e);return r||oT.test(e)?lT(e.slice(2),r?2:8):sT.test(e)?Kd:+e}var fT=uT,cT=hs,bu=zw,Yd=fT,hT="Expected a function",dT=Math.max,pT=Math.min;function vT(e,t,r){var n,i,a,l,u,f,h=0,p=!1,d=!1,c=!0;if(typeof e!="function")throw new TypeError(hT);t=Yd(t)||0,cT(r)&&(p=!!r.leading,d="maxWait"in r,a=d?dT(Yd(r.maxWait)||0,t):a,c="trailing"in r?!!r.trailing:c);function v(C){var S=n,O=i;return n=i=void 0,h=C,l=e.apply(O,S),l}function y(C){return h=C,u=setTimeout(_,t),p?v(C):l}function m(C){var S=C-f,O=C-h,L=t-S;return d?pT(L,a-O):L}function b(C){var S=C-f,O=C-h;return f===void 0||S>=t||S<0||d&&O>=a}function _(){var C=bu();if(b(C))return E(C);u=setTimeout(_,m(C))}function E(C){return u=void 0,c&&n?v(C):(n=i=void 0,l)}function w(){u!==void 0&&clearTimeout(u),h=0,n=f=i=u=void 0}function x(){return u===void 0?l:E(bu())}function A(){var C=bu(),S=b(C);if(n=arguments,i=this,f=C,S){if(u===void 0)return y(f);if(d)return clearTimeout(u),u=setTimeout(_,t),v(f)}return u===void 0&&(u=setTimeout(_,t)),l}return A.cancel=w,A.flush=x,A}var gT=vT;const Zd=Tn(gT),yT=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=Tt.useState(!1);console.log("allProps",e);const n=mt.useRef(null),i=mt.useRef(t),a=mt.useRef(null),{tl:l,isDragging:u}=mt.useContext(mi),{uniqueId:f,src:h,startAt:p,endAt:d,mute:c,speed:v}=e,y=e.audioStartAt||p,m=e.audioEndAt||d,b=Tt.useRef(null);wr(qe.PAUSE,()=>{var S;n.current&&b.current&&((S=b.current)==null||S.pause(),i.current.isPlaying=!1)}),Tt.useEffect(()=>{b.current&&(u?(b.current.pause(),i.current.isPlaying=!1,i.current.isDragging=!0):i.current.isDragging=!1)},[u]);const _=S=>{var O,L;n.current&&((O=b.current)==null||O.play({volume:c?0:1,start:S,end:d,speed:v||1}),u?((L=b.current)==null||L.pause(),i.current.isPlaying=!1,i.current.completed=!1):(i.current.isPlaying=!0,i.current.completed=!1))},E=Zd((S,O)=>{var L;b.current&&((L=b.current)==null||L.play({volume:c?0:1,start:S,end:O,speed:v||1}),i.current.isPlaying=!0)},100),w=Zd(()=>{b.current&&(b.current.pause(),i.current.isPlaying=!1)},300),x=()=>{var S;n.current&&(console.log("audio gsapOnStart",p),(S=b.current)==null||S.stop(),i.current.isPlaying=!1,i.current.completed=!0)},A=(S,O)=>{var R,I,N,k;const L=S+((R=a.current)==null?void 0:R.time());b.current&&i.current.isDragging?(E(L,O),w(),i.current.isPlaying=!1):n.current&&!i.current.isPlaying&&((I=b.current)==null||I.refresh(),(N=b.current)==null||N.refreshPaused(),(k=b.current)==null||k.resume(),i.current.isPlaying=!0)},C=()=>{};return mt.useEffect(()=>{let S=Xe.context(()=>{});if(n.current&&l.current){const O={duration:Number(m)-Number(y),onStart:_,onComplete:x,onStartParams:[y,m],onCompleteParams:[],onInterrupt:C,onUpdate:A,onUpdateParams:[y,m]};a.current&&a.current.kill(),S=Xe.context(()=>{a.current=Xe.from(n.current,O,y),l.current.to(n.current,{alpha:1,duration:.01},p).to(n.current,{alpha:0,duration:.1},Number(d)-.09),l.current.add(a.current,p)})}return()=>{a.current&&a.current.kill(),S.revert()}},[p,d,y,m]),Tt.useEffect(()=>{n.current&&r(!0)},[]),Tt.useEffect(()=>{n.current&&b.current&&(i.current.mute=c,i.current.speed=v,b.current.volume=c?0:1)},[c,v]),Tt.useEffect(()=>(xi(h)||(b.current=yy.Sound.from({url:h,preload:!0,singleInstance:!0,loaded:()=>{i.current.loaded=!0}})),()=>{}),[f,h]),Jt.jsx(ve.Container,{ref:n})};function mT(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Jd=mT;function _T(){this.__data__=[],this.size=0}var bT=_T;function xT(e,t){return e===t||e!==e&&t!==t}var Qd=xT,ET=Qd;function wT(e,t){for(var r=e.length;r--;)if(ET(e[r][0],t))return r;return-1}var Fa=wT,TT=Fa,AT=Array.prototype,ST=AT.splice;function OT(e){var t=this.__data__,r=TT(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ST.call(t,r,1),--this.size,!0}var IT=OT,RT=Fa;function CT(e){var t=this.__data__,r=RT(t,e);return r<0?void 0:t[r][1]}var NT=CT,PT=Fa;function MT(e){return PT(this.__data__,e)>-1}var kT=MT,LT=Fa;function FT(e,t){var r=this.__data__,n=LT(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var BT=FT,UT=bT,DT=IT,$T=NT,GT=kT,qT=BT;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=UT,Ii.prototype.delete=DT,Ii.prototype.get=$T,Ii.prototype.has=GT,Ii.prototype.set=qT;var Ba=Ii,jT=Ba;function HT(){this.__data__=new jT,this.size=0}var zT=HT;function VT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var WT=VT;function XT(e){return this.__data__.get(e)}var KT=XT;function YT(e){return this.__data__.has(e)}var ZT=YT,JT=_i,QT=JT(Object,"create"),Ua=QT,tp=Ua;function tA(){this.__data__=tp?tp(null):{},this.size=0}var eA=tA;function rA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nA=rA,iA=Ua,sA="__lodash_hash_undefined__",aA=Object.prototype,oA=aA.hasOwnProperty;function lA(e){var t=this.__data__;if(iA){var r=t[e];return r===sA?void 0:r}return oA.call(t,e)?t[e]:void 0}var uA=lA,fA=Ua,cA=Object.prototype,hA=cA.hasOwnProperty;function dA(e){var t=this.__data__;return fA?t[e]!==void 0:hA.call(t,e)}var pA=dA,vA=Ua,gA="__lodash_hash_undefined__";function yA(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=vA&&t===void 0?gA:t,this}var mA=yA,_A=eA,bA=nA,xA=uA,EA=pA,wA=mA;function Ri(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ri.prototype.clear=_A,Ri.prototype.delete=bA,Ri.prototype.get=xA,Ri.prototype.has=EA,Ri.prototype.set=wA;var TA=Ri,ep=TA,AA=Ba,SA=Jl;function OA(){this.size=0,this.__data__={hash:new ep,map:new(SA||AA),string:new ep}}var IA=OA;function RA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var CA=RA,NA=CA;function PA(e,t){var r=e.__data__;return NA(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Da=PA,MA=Da;function kA(e){var t=MA(this,e).delete(e);return this.size-=t?1:0,t}var LA=kA,FA=Da;function BA(e){return FA(this,e).get(e)}var UA=BA,DA=Da;function $A(e){return DA(this,e).has(e)}var GA=$A,qA=Da;function jA(e,t){var r=qA(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var HA=jA,zA=IA,VA=LA,WA=UA,XA=GA,KA=HA;function Ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ci.prototype.clear=zA,Ci.prototype.delete=VA,Ci.prototype.get=WA,Ci.prototype.has=XA,Ci.prototype.set=KA;var xu=Ci,YA=Ba,ZA=Jl,JA=xu,QA=200;function tS(e,t){var r=this.__data__;if(r instanceof YA){var n=r.__data__;if(!ZA||n.length<QA-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new JA(n)}return r.set(e,t),this.size=r.size,this}var eS=tS,rS=Ba,nS=zT,iS=WT,sS=KT,aS=ZT,oS=eS;function Ni(e){var t=this.__data__=new rS(e);this.size=t.size}Ni.prototype.clear=nS,Ni.prototype.delete=iS,Ni.prototype.get=sS,Ni.prototype.has=aS,Ni.prototype.set=oS;var rp=Ni,lS="__lodash_hash_undefined__";function uS(e){return this.__data__.set(e,lS),this}var fS=uS;function cS(e){return this.__data__.has(e)}var hS=cS,dS=xu,pS=fS,vS=hS;function $a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new dS;++t<r;)this.add(e[t])}$a.prototype.add=$a.prototype.push=pS,$a.prototype.has=vS;var gS=$a;function yS(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var mS=yS;function _S(e,t){return e.has(t)}var bS=_S,xS=gS,ES=mS,wS=bS,TS=1,AS=2;function SS(e,t,r,n,i,a){var l=r&TS,u=e.length,f=t.length;if(u!=f&&!(l&&f>u))return!1;var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var d=-1,c=!0,v=r&AS?new xS:void 0;for(a.set(e,t),a.set(t,e);++d<u;){var y=e[d],m=t[d];if(n)var b=l?n(m,y,d,t,e,a):n(y,m,d,e,t,a);if(b!==void 0){if(b)continue;c=!1;break}if(v){if(!ES(t,function(_,E){if(!wS(v,E)&&(y===_||i(y,_,r,n,a)))return v.push(E)})){c=!1;break}}else if(!(y===m||i(y,m,r,n,a))){c=!1;break}}return a.delete(e),a.delete(t),c}var np=SS,OS=Br,IS=OS.Uint8Array,RS=IS;function CS(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var NS=CS;function PS(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var MS=PS,ip=wa,sp=RS,kS=Qd,LS=np,FS=NS,BS=MS,US=1,DS=2,$S="[object Boolean]",GS="[object Date]",qS="[object Error]",jS="[object Map]",HS="[object Number]",zS="[object RegExp]",VS="[object Set]",WS="[object String]",XS="[object Symbol]",KS="[object ArrayBuffer]",YS="[object DataView]",ap=ip?ip.prototype:void 0,Eu=ap?ap.valueOf:void 0;function ZS(e,t,r,n,i,a,l){switch(r){case YS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case KS:return!(e.byteLength!=t.byteLength||!a(new sp(e),new sp(t)));case $S:case GS:case HS:return kS(+e,+t);case qS:return e.name==t.name&&e.message==t.message;case zS:case WS:return e==t+"";case jS:var u=FS;case VS:var f=n&US;if(u||(u=BS),e.size!=t.size&&!f)return!1;var h=l.get(e);if(h)return h==t;n|=DS,l.set(e,t);var p=LS(u(e),u(t),n,i,a,l);return l.delete(e),p;case XS:if(Eu)return Eu.call(e)==Eu.call(t)}return!1}var JS=ZS;function QS(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var tO=QS,eO=tO,rO=Ur;function nO(e,t,r){var n=t(e);return rO(e)?n:eO(n,r(e))}var iO=nO;function sO(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var l=e[r];t(l,r,e)&&(a[i++]=l)}return a}var aO=sO;function oO(){return[]}var lO=oO,uO=aO,fO=lO,cO=Object.prototype,hO=cO.propertyIsEnumerable,op=Object.getOwnPropertySymbols,dO=op?function(e){return e==null?[]:(e=Object(e),uO(op(e),function(t){return hO.call(e,t)}))}:fO,pO=dO;function vO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var gO=vO,yO=9007199254740991,mO=/^(?:0|[1-9]\d*)$/;function _O(e,t){var r=typeof e;return t=t??yO,!!t&&(r=="number"||r!="symbol"&&mO.test(e))&&e>-1&&e%1==0&&e<t}var lp=_O,bO=gO,xO=iu,EO=Ur,wO=au,TO=lp,AO=ou,SO=Object.prototype,OO=SO.hasOwnProperty;function IO(e,t){var r=EO(e),n=!r&&xO(e),i=!r&&!n&&wO(e),a=!r&&!n&&!i&&AO(e),l=r||n||i||a,u=l?bO(e.length,String):[],f=u.length;for(var h in e)(t||OO.call(e,h))&&!(l&&(h=="length"||i&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||TO(h,f)))&&u.push(h);return u}var RO=IO,CO=RO,NO=od,PO=Ta;function MO(e){return PO(e)?CO(e):NO(e)}var wu=MO,kO=iO,LO=pO,FO=wu;function BO(e){return kO(e,FO,LO)}var UO=BO,up=UO,DO=1,$O=Object.prototype,GO=$O.hasOwnProperty;function qO(e,t,r,n,i,a){var l=r&DO,u=up(e),f=u.length,h=up(t),p=h.length;if(f!=p&&!l)return!1;for(var d=f;d--;){var c=u[d];if(!(l?c in t:GO.call(t,c)))return!1}var v=a.get(e),y=a.get(t);if(v&&y)return v==t&&y==e;var m=!0;a.set(e,t),a.set(t,e);for(var b=l;++d<f;){c=u[d];var _=e[c],E=t[c];if(n)var w=l?n(E,_,c,t,e,a):n(_,E,c,e,t,a);if(!(w===void 0?_===E||i(_,E,r,n,a):w)){m=!1;break}b||(b=c=="constructor")}if(m&&!b){var x=e.constructor,A=t.constructor;x!=A&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof A=="function"&&A instanceof A)&&(m=!1)}return a.delete(e),a.delete(t),m}var jO=qO,Tu=rp,HO=np,zO=JS,VO=jO,fp=Ed,cp=Ur,hp=au,WO=ou,XO=1,dp="[object Arguments]",pp="[object Array]",Ga="[object Object]",KO=Object.prototype,vp=KO.hasOwnProperty;function YO(e,t,r,n,i,a){var l=cp(e),u=cp(t),f=l?pp:fp(e),h=u?pp:fp(t);f=f==dp?Ga:f,h=h==dp?Ga:h;var p=f==Ga,d=h==Ga,c=f==h;if(c&&hp(e)){if(!hp(t))return!1;l=!0,p=!1}if(c&&!p)return a||(a=new Tu),l||WO(e)?HO(e,t,r,n,i,a):zO(e,t,f,r,n,i,a);if(!(r&XO)){var v=p&&vp.call(e,"__wrapped__"),y=d&&vp.call(t,"__wrapped__");if(v||y){var m=v?e.value():e,b=y?t.value():t;return a||(a=new Tu),i(m,b,r,n,a)}}return c?(a||(a=new Tu),VO(e,t,r,n,i,a)):!1}var ZO=YO,JO=ZO,gp=ds;function yp(e,t,r,n,i){return e===t?!0:e==null||t==null||!gp(e)&&!gp(t)?e!==e&&t!==t:JO(e,t,r,n,yp,i)}var mp=yp,QO=rp,t2=mp,e2=1,r2=2;function n2(e,t,r,n){var i=r.length,a=i,l=!n;if(e==null)return!a;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=r[i];var f=u[0],h=e[f],p=u[1];if(l&&u[2]){if(h===void 0&&!(f in e))return!1}else{var d=new QO;if(n)var c=n(h,p,f,e,t,d);if(!(c===void 0?t2(p,h,e2|r2,n,d):c))return!1}}return!0}var i2=n2,s2=hs;function a2(e){return e===e&&!s2(e)}var _p=a2,o2=_p,l2=wu;function u2(e){for(var t=l2(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,o2(i)]}return t}var f2=u2;function c2(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var bp=c2,h2=i2,d2=f2,p2=bp;function v2(e){var t=d2(e);return t.length==1&&t[0][2]?p2(t[0][0],t[0][1]):function(r){return r===e||h2(r,e,t)}}var g2=v2,y2=Ur,m2=La,_2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b2=/^\w*$/;function x2(e,t){if(y2(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||m2(e)?!0:b2.test(e)||!_2.test(e)||t!=null&&e in Object(t)}var Au=x2,xp=xu,E2="Expected a function";function Su(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(E2);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var l=e.apply(this,n);return r.cache=a.set(i,l)||a,l};return r.cache=new(Su.Cache||xp),r}Su.Cache=xp;var w2=Su,T2=w2,A2=500;function S2(e){var t=T2(e,function(n){return r.size===A2&&r.clear(),n}),r=t.cache;return t}var O2=S2,I2=O2,R2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C2=/\\(\\)?/g,N2=I2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(R2,function(r,n,i,a){t.push(i?a.replace(C2,"$1"):n||r)}),t}),P2=N2,Ep=wa,M2=Jd,k2=Ur,L2=La,F2=1/0,wp=Ep?Ep.prototype:void 0,Tp=wp?wp.toString:void 0;function Ap(e){if(typeof e=="string")return e;if(k2(e))return M2(e,Ap)+"";if(L2(e))return Tp?Tp.call(e):"";var t=e+"";return t=="0"&&1/e==-F2?"-0":t}var B2=Ap,U2=B2;function D2(e){return e==null?"":U2(e)}var $2=D2,G2=Ur,q2=Au,j2=P2,H2=$2;function z2(e,t){return G2(e)?e:q2(e,t)?[e]:j2(H2(e))}var Sp=z2,V2=La,W2=1/0;function X2(e){if(typeof e=="string"||V2(e))return e;var t=e+"";return t=="0"&&1/e==-W2?"-0":t}var qa=X2,K2=Sp,Y2=qa;function Z2(e,t){t=K2(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Y2(t[r++])];return r&&r==n?e:void 0}var Op=Z2,J2=Op;function Q2(e,t,r){var n=e==null?void 0:J2(e,t);return n===void 0?r:n}var tI=Q2;function eI(e,t){return e!=null&&t in Object(e)}var rI=eI,nI=Sp,iI=iu,sI=Ur,aI=lp,oI=su,lI=qa;function uI(e,t,r){t=nI(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var l=lI(t[n]);if(!(a=e!=null&&r(e,l)))break;e=e[l]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&oI(i)&&aI(l,i)&&(sI(e)||iI(e)))}var fI=uI,cI=rI,hI=fI;function dI(e,t){return e!=null&&hI(e,t,cI)}var pI=dI,vI=mp,gI=tI,yI=pI,mI=Au,_I=_p,bI=bp,xI=qa,EI=1,wI=2;function TI(e,t){return mI(e)&&_I(t)?bI(xI(e),t):function(r){var n=gI(r,e);return n===void 0&&n===t?yI(r,e):vI(t,n,EI|wI)}}var AI=TI;function SI(e){return e}var OI=SI;function II(e){return function(t){return t==null?void 0:t[e]}}var RI=II,CI=Op;function NI(e){return function(t){return CI(t,e)}}var PI=NI,MI=RI,kI=PI,LI=Au,FI=qa;function BI(e){return LI(e)?MI(FI(e)):kI(e)}var UI=BI,DI=g2,$I=AI,GI=OI,qI=Ur,jI=UI;function HI(e){return typeof e=="function"?e:e==null?GI:typeof e=="object"?qI(e)?$I(e[0],e[1]):DI(e):jI(e)}var zI=HI;function VI(e){return function(t,r,n){for(var i=-1,a=Object(t),l=n(t),u=l.length;u--;){var f=l[e?u:++i];if(r(a[f],f,a)===!1)break}return t}}var WI=VI,XI=WI,KI=XI(),YI=KI,ZI=YI,JI=wu;function QI(e,t){return e&&ZI(e,t,JI)}var tR=QI,eR=Ta;function rR(e,t){return function(r,n){if(r==null)return r;if(!eR(r))return e(r,n);for(var i=r.length,a=t?i:-1,l=Object(r);(t?a--:++a<i)&&n(l[a],a,l)!==!1;);return r}}var nR=rR,iR=tR,sR=nR,aR=sR(iR),oR=aR,lR=oR,uR=Ta;function fR(e,t){var r=-1,n=uR(e)?Array(e.length):[];return lR(e,function(i,a,l){n[++r]=t(i,a,l)}),n}var cR=fR,hR=Jd,dR=zI,pR=cR,vR=Ur;function gR(e,t){var r=vR(e)?hR:pR;return r(e,dR(t))}var yR=gR;const mR=Tn(yR);var Gn={},Ip={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.loop=Kr.conditional=Kr.parse=void 0;var _R=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;if(Array.isArray(r))r.forEach(function(l){return e(t,l,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var a=Object.keys(r)[0];Array.isArray(r[a])?(i[a]={},e(t,r[a],n,i[a])):i[a]=r[a](t,n,i,e)}return n};Kr.parse=_R;var bR=function(t,r){return function(n,i,a,l){r(n,i,a)&&l(n,t,i,a)}};Kr.conditional=bR;var xR=function(t,r){return function(n,i,a,l){for(var u=[],f=n.pos;r(n,i,a);){var h={};if(l(n,t,i,h),n.pos===f)break;f=n.pos,u.push(h)}return u}};Kr.loop=xR;var ye={};Object.defineProperty(ye,"__esModule",{value:!0}),ye.readBits=ye.readArray=ye.readUnsigned=ye.readString=ye.peekBytes=ye.readBytes=ye.peekByte=ye.readByte=ye.buildStream=void 0;var ER=function(t){return{data:t,pos:0}};ye.buildStream=ER;var Rp=function(){return function(t){return t.data[t.pos++]}};ye.readByte=Rp;var wR=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};ye.peekByte=wR;var ja=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};ye.readBytes=ja;var TR=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};ye.peekBytes=TR;var AR=function(t){return function(r){return Array.from(ja(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};ye.readString=AR;var SR=function(t){return function(r){var n=ja(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};ye.readUnsigned=SR;var OR=function(t,r){return function(n,i,a){for(var l=typeof r=="function"?r(n,i,a):r,u=ja(t),f=new Array(l),h=0;h<l;h++)f[h]=u(n);return f}};ye.readArray=OR;var IR=function(t,r,n){for(var i=0,a=0;a<n;a++)i+=t[r+a]&&Math.pow(2,n-a-1);return i},RR=function(t){return function(r){for(var n=Rp()(r),i=new Array(8),a=0;a<8;a++)i[7-a]=!!(n&1<<a);return Object.keys(t).reduce(function(l,u){var f=t[u];return f.length?l[u]=IR(i,f.index,f.length):l[u]=i[f.index],l},{})}};ye.readBits=RR,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Kr,r=ye,n={blocks:function(c){for(var v=0,y=[],m=c.data.length,b=0,_=(0,r.readByte)()(c);_!==v&&_;_=(0,r.readByte)()(c)){if(c.pos+_>=m){var E=m-c.pos;y.push((0,r.readBytes)(E)(c)),b+=E;break}y.push((0,r.readBytes)(_)(c)),b+=_}for(var w=new Uint8Array(b),x=0,A=0;A<y.length;A++)w.set(y[A],x),x+=y[A].length;return w}},i=(0,t.conditional)({gce:[{codes:(0,r.readBytes)(2)},{byteSize:(0,r.readByte)()},{extras:(0,r.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,r.readUnsigned)(!0)},{transparentColorIndex:(0,r.readByte)()},{terminator:(0,r.readByte)()}]},function(d){var c=(0,r.peekBytes)(2)(d);return c[0]===33&&c[1]===249}),a=(0,t.conditional)({image:[{code:(0,r.readByte)()},{descriptor:[{left:(0,r.readUnsigned)(!0)},{top:(0,r.readUnsigned)(!0)},{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{lct:(0,r.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,t.conditional)({lct:(0,r.readArray)(3,function(d,c,v){return Math.pow(2,v.descriptor.lct.size+1)})},function(d,c,v){return v.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(d){return(0,r.peekByte)()(d)===44}),l=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(c,v,y){return(0,r.readBytes)(y.text.blockSize)(c)}},n]},function(d){var c=(0,r.peekBytes)(2)(d);return c[0]===33&&c[1]===1}),u=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(c,v,y){return(0,r.readString)(y.blockSize)(c)}},n]},function(d){var c=(0,r.peekBytes)(2)(d);return c[0]===33&&c[1]===255}),f=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(d){var c=(0,r.peekBytes)(2)(d);return c[0]===33&&c[1]===254}),h=[{header:[{signature:(0,r.readString)(3)},{version:(0,r.readString)(3)}]},{lsd:[{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{gct:(0,r.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,r.readByte)()},{pixelAspectRatio:(0,r.readByte)()}]},(0,t.conditional)({gct:(0,r.readArray)(3,function(d,c){return Math.pow(2,c.lsd.gct.size+1)})},function(d,c){return c.lsd.gct.exists}),{frames:(0,t.loop)([i,u,f,a,l],function(d){var c=(0,r.peekByte)()(d);return c===33||c===44})}],p=h;e.default=p}(Ip);var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.deinterlace=void 0;var CR=function(t,r){for(var n=new Array(t.length),i=t.length/r,a=function(c,v){var y=t.slice(v*r,(v+1)*r);n.splice.apply(n,[c*r,r].concat(y))},l=[0,4,2,1],u=[8,8,4,2],f=0,h=0;h<4;h++)for(var p=l[h];p<i;p+=u[h])a(p,f),f++;return n};Ha.deinterlace=CR;var za={};Object.defineProperty(za,"__esModule",{value:!0}),za.lzw=void 0;var NR=function(t,r,n){var i=4096,a=-1,l=n,u,f,h,p,d,c,v,C,y,m,A,b,S,O,R,L,_=new Array(n),E=new Array(i),w=new Array(i),x=new Array(i+1);for(b=t,f=1<<b,d=f+1,u=f+2,v=a,p=b+1,h=(1<<p)-1,y=0;y<f;y++)E[y]=0,w[y]=y;var A,C,S,O,L,R;for(A=C=S=O=L=R=0,m=0;m<l;){if(O===0){if(C<p){A+=r[R]<<C,C+=8,R++;continue}if(y=A&h,A>>=p,C-=p,y>u||y==d)break;if(y==f){p=b+1,h=(1<<p)-1,u=f+2,v=a;continue}if(v==a){x[O++]=w[y],v=y,S=y;continue}for(c=y,y==u&&(x[O++]=S,y=v);y>f;)x[O++]=w[y],y=E[y];S=w[y]&255,x[O++]=S,u<i&&(E[u]=v,w[u]=S,u++,!(u&h)&&u<i&&(p++,h+=u)),v=c}O--,_[L++]=x[O],m++}for(m=L;m<l;m++)_[m]=0;return _};za.lzw=NR,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.decompressFrames=Gn.decompressFrame=Gn.parseGIF=void 0;var PR=BR(Ip),MR=Kr,kR=ye,LR=Ha,FR=za;function BR(e){return e&&e.__esModule?e:{default:e}}var UR=function(t){var r=new Uint8Array(t);return(0,MR.parse)((0,kR.buildStream)(r),PR.default)};Gn.parseGIF=UR;var DR=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var a=i*4,l=t.pixels[i],u=t.colorTable[l]||[0,0,0];n[a]=u[0],n[a+1]=u[1],n[a+2]=u[2],n[a+3]=l!==t.transparentIndex?255:0}return n},Cp=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,a=i.descriptor.width*i.descriptor.height,l=(0,FR.lzw)(i.data.minCodeSize,i.data.blocks,a);i.descriptor.lct.interlaced&&(l=(0,LR.deinterlace)(l,i.descriptor.width));var u={pixels:l,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?u.colorTable=i.lct:u.colorTable=r,t.gce&&(u.delay=(t.gce.delay||10)*10,u.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(u.transparentIndex=t.gce.transparentColorIndex)),n&&(u.patch=DR(u)),u};Gn.decompressFrame=Cp;var $R=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return Cp(n,t.gct,r)})};Gn.decompressFrames=$R;const Np=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,a={...e,...i};return r&&Object.assign(a,{playing:a.autoPlay&&a.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(a,{length:a.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(a,{index:a.length===0?0:(a.length+a.index)%a.length}),t.playing!=null&&Object.assign(a,a.loaded?{playing:n}:{autoPlay:n}),a},GR=e=>Np({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),qR=e=>mt.useReducer(Np,e,GR);var jR='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function HR(e){const t=new Blob([jR],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const zR=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),VR=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),mt.useLayoutEffect(()=>(r.timeout?(clearTimeout(r.timeout),delete r.timeout):r.usageCount=(r.usageCount||0)+1,()=>{r.timeout=setTimeout(()=>{r.usageCount=r.usageCount-1,r.usageCount===0&&(t&&t(r.instance),delete r.instance,delete r.timeout)})}),[r,t]),r.instance)},WR=e=>{const t=mt.useRef(e);return mt.useEffect(()=>{t.current=e},[e]),t},XR=e=>{const t=WR(e);return mt.useCallback(r=>t.current&&t.current(r),[])},KR=VR(()=>new HR,e=>e.terminate()),YR=(e,t)=>{const r=XR(t),n=KR();mt.useEffect(()=>{if(typeof e=="string"){const i=a=>{const l=a.data||a;if(l.src===e){const u=l.error?l:zR(l);r(u)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},ZR=({isPlaying:e,forwardRef:t,...r})=>{const n=Tt.useRef(null);return Tt.useImperativeHandle(t,()=>n.current,[n]),Tt.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),Jt.jsx(ve.AnimatedSprite,{ref:n,...r,isPlaying:e})},Pp=Tt.memo(ZR);var Va={exports:{}};/**
|
|
551
551
|
* @license
|
|
552
552
|
* Lodash <https://lodash.com/>
|
|
553
553
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -573,7 +573,7 @@ __p += '`),qt&&(ct+=`' +
|
|
|
573
573
|
function print() { __p += __j.call(arguments, '') }
|
|
574
574
|
`:`;
|
|
575
575
|
`)+ct+`return __p
|
|
576
|
-
}`;var Ft=uy(function(){return Xt(D,Et+"return "+ct).apply(r,H)});if(Ft.source=ct,Lf(Ft))throw Ft;return Ft}function z3(s){return Zt(s).toLowerCase()}function V3(s){return Zt(s).toUpperCase()}function W3(s,o,g){if(s=Zt(s),s&&(g||o===r))return mv(s);if(!s||!(o=er(o)))return s;var T=Ir(s),P=Ir(o),D=_v(T,P),H=bv(T,P)+1;return xn(T,D,H).join("")}function X3(s,o,g){if(s=Zt(s),s&&(g||o===r))return s.slice(0,Ev(s)+1);if(!s||!(o=er(o)))return s;var T=Ir(s),P=bv(T,Ir(o))+1;return xn(T,0,P).join("")}function K3(s,o,g){if(s=Zt(s),s&&(g||o===r))return s.replace(ku,"");if(!s||!(o=er(o)))return s;var T=Ir(s),P=_v(T,Ir(o));return xn(T,P).join("")}function Y3(s,o){var g=R,T=I;if(pe(o)){var P="separator"in o?o.separator:P;g="length"in o?kt(o.length):g,T="omission"in o?er(o.omission):T}s=Zt(s);var D=s.length;if(ki(s)){var H=Ir(s);D=H.length}if(g>=D)return s;var K=g-Li(T);if(K<1)return T;var Q=H?xn(H,0,K).join(""):s.slice(0,K);if(P===r)return Q+T;if(H&&(K+=Q.length-K),Ff(P)){if(s.slice(K).search(P)){var lt,ut=Q;for(P.global||(P=Zu(P.source,Zt($p.exec(P))+"g")),P.lastIndex=0;lt=P.exec(ut);)var ct=lt.index;Q=Q.slice(0,ct===r?K:ct)}}else if(s.indexOf(er(P),K)!=K){var gt=Q.lastIndexOf(P);gt>-1&&(Q=Q.slice(0,gt))}return Q+T}function Z3(s){return s=Zt(s),s&&lC.test(s)?s.replace(Bp,SN):s}var J3=qi(function(s,o,g){return s+(g?" ":"")+o.toUpperCase()}),Df=fg("toUpperCase");function ly(s,o,g){return s=Zt(s),o=g?r:o,o===r?xN(s)?RN(s):hN(s):s.match(o)||[]}var uy=Bt(function(s,o){try{return Qe(s,r,o)}catch(g){return Lf(g)?g:new Ct(g)}}),Q3=tn(function(s,o){return ur(o,function(g){g=Gr(g),Jr(s,g,Mf(s[g],s))}),s});function tF(s){var o=s==null?0:s.length,g=At();return s=o?fe(s,function(T){if(typeof T[1]!="function")throw new fr(l);return[g(T[0]),T[1]]}):[],Bt(function(T){for(var P=-1;++P<o;){var D=s[P];if(Qe(D[0],this,T))return Qe(D[1],this,T)}})}function eF(s){return SP(hr(s,d))}function $f(s){return function(){return s}}function rF(s,o){return s==null||s!==s?o:s}var nF=hg(),iF=hg(!0);function We(s){return s}function Gf(s){return qv(typeof s=="function"?s:hr(s,d))}function sF(s){return Hv(hr(s,d))}function aF(s,o){return zv(s,hr(o,d))}var oF=Bt(function(s,o){return function(g){return Is(g,s,o)}}),lF=Bt(function(s,o){return function(g){return Is(s,g,o)}});function qf(s,o,g){var T=Ie(o),P=go(o,T);g==null&&!(pe(o)&&(P.length||!T.length))&&(g=o,o=s,s=this,P=go(o,Ie(o)));var D=!(pe(g)&&"chain"in g)||!!g.chain,H=rn(s);return ur(P,function(K){var Q=o[K];s[K]=Q,H&&(s.prototype[K]=function(){var lt=this.__chain__;if(D||lt){var ut=s(this.__wrapped__),ct=ut.__actions__=He(this.__actions__);return ct.push({func:Q,args:arguments,thisArg:s}),ut.__chain__=lt,ut}return Q.apply(s,vn([this.value()],arguments))})}),s}function uF(){return Ce._===this&&(Ce._=LN),this}function jf(){}function fF(s){return s=kt(s),Bt(function(o){return Vv(o,s)})}var cF=bf(fe),hF=bf(dv),dF=bf(Hu);function fy(s){return Of(s)?zu(Gr(s)):jP(s)}function pF(s){return function(o){return s==null?r:Wn(s,o)}}var vF=pg(),gF=pg(!0);function Hf(){return[]}function zf(){return!1}function yF(){return{}}function mF(){return""}function _F(){return!0}function bF(s,o){if(s=kt(s),s<1||s>it)return[];var g=M,T=ke(s,M);o=At(o),s-=M;for(var P=Xu(T,o);++g<s;)o(g);return P}function xF(s){return Mt(s)?fe(s,Gr):rr(s)?[s]:He(Cg(Zt(s)))}function EF(s){var o=++MN;return Zt(s)+o}var wF=Eo(function(s,o){return s+o},0),TF=xf("ceil"),AF=Eo(function(s,o){return s/o},1),SF=xf("floor");function OF(s){return s&&s.length?vo(s,We,af):r}function IF(s,o){return s&&s.length?vo(s,At(o,2),af):r}function RF(s){return gv(s,We)}function CF(s,o){return gv(s,At(o,2))}function NF(s){return s&&s.length?vo(s,We,ff):r}function PF(s,o){return s&&s.length?vo(s,At(o,2),ff):r}var MF=Eo(function(s,o){return s*o},1),kF=xf("round"),LF=Eo(function(s,o){return s-o},0);function FF(s){return s&&s.length?Wu(s,We):0}function BF(s,o){return s&&s.length?Wu(s,At(o,2)):0}return B.after=sL,B.ary=Gg,B.assign=VL,B.assignIn=ey,B.assignInWith=Lo,B.assignWith=WL,B.at=XL,B.before=qg,B.bind=Mf,B.bindAll=Q3,B.bindKey=jg,B.castArray=yL,B.chain=Ug,B.chunk=SM,B.compact=OM,B.concat=IM,B.cond=tF,B.conforms=eF,B.constant=$f,B.countBy=Fk,B.create=KL,B.curry=Hg,B.curryRight=zg,B.debounce=Vg,B.defaults=YL,B.defaultsDeep=ZL,B.defer=aL,B.delay=oL,B.difference=RM,B.differenceBy=CM,B.differenceWith=NM,B.drop=PM,B.dropRight=MM,B.dropRightWhile=kM,B.dropWhile=LM,B.fill=FM,B.filter=Uk,B.flatMap=Gk,B.flatMapDeep=qk,B.flatMapDepth=jk,B.flatten=kg,B.flattenDeep=BM,B.flattenDepth=UM,B.flip=lL,B.flow=nF,B.flowRight=iF,B.fromPairs=DM,B.functions=i3,B.functionsIn=s3,B.groupBy=Hk,B.initial=GM,B.intersection=qM,B.intersectionBy=jM,B.intersectionWith=HM,B.invert=o3,B.invertBy=l3,B.invokeMap=Vk,B.iteratee=Gf,B.keyBy=Wk,B.keys=Ie,B.keysIn=Ve,B.map=Ro,B.mapKeys=f3,B.mapValues=c3,B.matches=sF,B.matchesProperty=aF,B.memoize=No,B.merge=h3,B.mergeWith=ry,B.method=oF,B.methodOf=lF,B.mixin=qf,B.negate=Po,B.nthArg=fF,B.omit=d3,B.omitBy=p3,B.once=uL,B.orderBy=Xk,B.over=cF,B.overArgs=fL,B.overEvery=hF,B.overSome=dF,B.partial=kf,B.partialRight=Wg,B.partition=Kk,B.pick=v3,B.pickBy=ny,B.property=fy,B.propertyOf=pF,B.pull=XM,B.pullAll=Fg,B.pullAllBy=KM,B.pullAllWith=YM,B.pullAt=ZM,B.range=vF,B.rangeRight=gF,B.rearg=cL,B.reject=Jk,B.remove=JM,B.rest=hL,B.reverse=Nf,B.sampleSize=tL,B.set=y3,B.setWith=m3,B.shuffle=eL,B.slice=QM,B.sortBy=iL,B.sortedUniq=ak,B.sortedUniqBy=ok,B.split=G3,B.spread=dL,B.tail=lk,B.take=uk,B.takeRight=fk,B.takeRightWhile=ck,B.takeWhile=hk,B.tap=Ok,B.throttle=pL,B.thru=Io,B.toArray=Jg,B.toPairs=iy,B.toPairsIn=sy,B.toPath=xF,B.toPlainObject=ty,B.transform=_3,B.unary=vL,B.union=dk,B.unionBy=pk,B.unionWith=vk,B.uniq=gk,B.uniqBy=yk,B.uniqWith=mk,B.unset=b3,B.unzip=Pf,B.unzipWith=Bg,B.update=x3,B.updateWith=E3,B.values=zi,B.valuesIn=w3,B.without=_k,B.words=ly,B.wrap=gL,B.xor=bk,B.xorBy=xk,B.xorWith=Ek,B.zip=wk,B.zipObject=Tk,B.zipObjectDeep=Ak,B.zipWith=Sk,B.entries=iy,B.entriesIn=sy,B.extend=ey,B.extendWith=Lo,qf(B,B),B.add=wF,B.attempt=uy,B.camelCase=O3,B.capitalize=ay,B.ceil=TF,B.clamp=T3,B.clone=mL,B.cloneDeep=bL,B.cloneDeepWith=xL,B.cloneWith=_L,B.conformsTo=EL,B.deburr=oy,B.defaultTo=rF,B.divide=AF,B.endsWith=I3,B.eq=Cr,B.escape=R3,B.escapeRegExp=C3,B.every=Bk,B.find=Dk,B.findIndex=Pg,B.findKey=JL,B.findLast=$k,B.findLastIndex=Mg,B.findLastKey=QL,B.floor=SF,B.forEach=Dg,B.forEachRight=$g,B.forIn=t3,B.forInRight=e3,B.forOwn=r3,B.forOwnRight=n3,B.get=Bf,B.gt=wL,B.gte=TL,B.has=a3,B.hasIn=Uf,B.head=Lg,B.identity=We,B.includes=zk,B.indexOf=$M,B.inRange=A3,B.invoke=u3,B.isArguments=Yn,B.isArray=Mt,B.isArrayBuffer=AL,B.isArrayLike=ze,B.isArrayLikeObject=me,B.isBoolean=SL,B.isBuffer=En,B.isDate=OL,B.isElement=IL,B.isEmpty=RL,B.isEqual=CL,B.isEqualWith=NL,B.isError=Lf,B.isFinite=PL,B.isFunction=rn,B.isInteger=Xg,B.isLength=Mo,B.isMap=Kg,B.isMatch=ML,B.isMatchWith=kL,B.isNaN=LL,B.isNative=FL,B.isNil=UL,B.isNull=BL,B.isNumber=Yg,B.isObject=pe,B.isObjectLike=ge,B.isPlainObject=ks,B.isRegExp=Ff,B.isSafeInteger=DL,B.isSet=Zg,B.isString=ko,B.isSymbol=rr,B.isTypedArray=Hi,B.isUndefined=$L,B.isWeakMap=GL,B.isWeakSet=qL,B.join=zM,B.kebabCase=N3,B.last=pr,B.lastIndexOf=VM,B.lowerCase=P3,B.lowerFirst=M3,B.lt=jL,B.lte=HL,B.max=OF,B.maxBy=IF,B.mean=RF,B.meanBy=CF,B.min=NF,B.minBy=PF,B.stubArray=Hf,B.stubFalse=zf,B.stubObject=yF,B.stubString=mF,B.stubTrue=_F,B.multiply=MF,B.nth=WM,B.noConflict=uF,B.noop=jf,B.now=Co,B.pad=k3,B.padEnd=L3,B.padStart=F3,B.parseInt=B3,B.random=S3,B.reduce=Yk,B.reduceRight=Zk,B.repeat=U3,B.replace=D3,B.result=g3,B.round=kF,B.runInContext=J,B.sample=Qk,B.size=rL,B.snakeCase=$3,B.some=nL,B.sortedIndex=tk,B.sortedIndexBy=ek,B.sortedIndexOf=rk,B.sortedLastIndex=nk,B.sortedLastIndexBy=ik,B.sortedLastIndexOf=sk,B.startCase=q3,B.startsWith=j3,B.subtract=LF,B.sum=FF,B.sumBy=BF,B.template=H3,B.times=bF,B.toFinite=nn,B.toInteger=kt,B.toLength=Qg,B.toLower=z3,B.toNumber=vr,B.toSafeInteger=zL,B.toString=Zt,B.toUpper=V3,B.trim=W3,B.trimEnd=X3,B.trimStart=K3,B.truncate=Y3,B.unescape=Z3,B.uniqueId=EF,B.upperCase=J3,B.upperFirst=Df,B.each=Dg,B.eachRight=$g,B.first=Lg,qf(B,function(){var s={};return Dr(B,function(o,g){ee.call(B.prototype,g)||(s[g]=o)}),s}(),{chain:!1}),B.VERSION=n,ur(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),ur(["drop","take"],function(s,o){$t.prototype[s]=function(g){g=g===r?1:we(kt(g),0);var T=this.__filtered__&&!o?new $t(this):this.clone();return T.__filtered__?T.__takeCount__=ke(g,T.__takeCount__):T.__views__.push({size:ke(g,M),type:s+(T.__dir__<0?"Right":"")}),T},$t.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),ur(["filter","map","takeWhile"],function(s,o){var g=o+1,T=g==F||g==X;$t.prototype[s]=function(P){var D=this.clone();return D.__iteratees__.push({iteratee:At(P,3),type:g}),D.__filtered__=D.__filtered__||T,D}}),ur(["head","last"],function(s,o){var g="take"+(o?"Right":"");$t.prototype[s]=function(){return this[g](1).value()[0]}}),ur(["initial","tail"],function(s,o){var g="drop"+(o?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[g](1)}}),$t.prototype.compact=function(){return this.filter(We)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,o){return typeof s=="function"?new $t(this):this.map(function(g){return Is(g,s,o)})}),$t.prototype.reject=function(s){return this.filter(Po(At(s)))},$t.prototype.slice=function(s,o){s=kt(s);var g=this;return g.__filtered__&&(s>0||o<0)?new $t(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),o!==r&&(o=kt(o),g=o<0?g.dropRight(-o):g.take(o-s)),g)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(M)},Dr($t.prototype,function(s,o){var g=/^(?:filter|find|map|reject)|While$/.test(o),T=/^(?:head|last)$/.test(o),P=B[T?"take"+(o=="last"?"Right":""):o],D=T||/^find/.test(o);P&&(B.prototype[o]=function(){var H=this.__wrapped__,K=T?[1]:arguments,Q=H instanceof $t,lt=K[0],ut=Q||Mt(H),ct=function(Ut){var qt=P.apply(B,vn([Ut],K));return T&>?qt[0]:qt};ut&&g&&typeof lt=="function"&<.length!=1&&(Q=ut=!1);var gt=this.__chain__,Et=!!this.__actions__.length,St=D&&!gt,Ft=Q&&!Et;if(!D&&ut){H=Ft?H:new $t(this);var Ot=s.apply(H,K);return Ot.__actions__.push({func:Io,args:[ct],thisArg:r}),new cr(Ot,gt)}return St&&Ft?s.apply(this,K):(Ot=this.thru(ct),St?T?Ot.value()[0]:Ot.value():Ot)})}),ur(["pop","push","shift","sort","splice","unshift"],function(s){var o=Qa[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",T=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var P=arguments;if(T&&!this.__chain__){var D=this.value();return o.apply(Mt(D)?D:[],P)}return this[g](function(H){return o.apply(Mt(H)?H:[],P)})}}),Dr($t.prototype,function(s,o){var g=B[o];if(g){var T=g.name+"";ee.call(Di,T)||(Di[T]=[]),Di[T].push({name:o,func:g})}}),Di[xo(r,_).name]=[{name:"wrapper",func:r}],$t.prototype.clone=ZN,$t.prototype.reverse=JN,$t.prototype.value=QN,B.prototype.at=Ik,B.prototype.chain=Rk,B.prototype.commit=Ck,B.prototype.next=Nk,B.prototype.plant=Mk,B.prototype.reverse=kk,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Lk,B.prototype.first=B.prototype.head,xs&&(B.prototype[xs]=Pk),B},Fi=CN();qn?((qn.exports=Fi)._=Fi,$u._=Fi):Ce._=Fi}).call(Ke)}(Va,Va.exports);var Mp=Va.exports;const JR={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},QR=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState([]),[,i]=Tt.useState(0),[a,l]=Tt.useState([]),[,u]=mt.useState(0),[,f]=mt.useState(!1),[h,p]=qR({autoPlay:!1}),d=mt.useRef(null),c=mt.useRef(null),v=mt.useRef(JR),y=mt.useRef(),{tl:m,isDragging:b}=mt.useContext(mi),{frames:_,delays:E}=h,{src:w,startAt:x,endAt:A,frameStartAt:C,frameEndAt:S,loop:O,transformation:{width:L=0,height:R=0,x:I,y:N,animation:k}}=e,F=.1;YR(w,p),wr(qe.PAUSE,U=>{console.log("pause event",U),d.current&&(d.current.stop(),v.current.isPlaying=!1)}),Tt.useEffect(()=>{v.current&&d.current&&(b?(d.current.stop(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[b]),Tt.useEffect(()=>{if(!xi(_)){const U=mR(_,Y=>{const{data:G,width:W,height:tt}=Y,et=new Uint8Array(G);return wn.Texture.fromBuffer(et,W,tt)}),j=U.map((Y,G)=>({texture:Y,time:E[G]}));n(U),l(j);let V=0;E.forEach(Y=>{V+=Y*10}),i(V),v.current.totalDuration=V,v.current.totalFrames=_.length}},[_,E]);const q=Mp.debounce(U=>{if(d.current){let j=U===0?0:U/F;const V=v.current.totalFrames;j=j>=V?V:j,d.current.gotoAndPlay(j||0),v.current.isPlaying=!0}},50),X=Mp.debounce(()=>{d.current&&(d.current.stop(),v.current.isPlaying=!1)},150),z=U=>{if(d.current){let j=U===0?0:U/F;const V=v.current.totalFrames;j=j>=V?V:j,d.current.gotoAndPlay(j||0),v.current.isPlaying=!0}},it=()=>{console.log("local gif time complete"),d.current&&(d.current.stop(),v.current.isPlaying=!1)},Z=()=>{d.current&&(d.current.stop(),v.current.isPlaying=!1)},$=U=>{var V;const j=U+((V=y.current)==null?void 0:V.time());d.current&&v.current.isDragging?(q(j),X(),v.current.isPlaying=!1):d.current&&!v.current.isPlaying&&(q(j),v.current.isPlaying=!0)},M=()=>{f(!0)};return mt.useEffect(()=>{let U=Xe.context(()=>{});if(c.current&&m.current){const j={duration:Number(S)-Number(C),onStart:z,onComplete:it,onStartParams:[C,S],onCompleteParams:[],onInterrupt:Z,onUpdate:$,onUpdateParams:[C,S]};U=Xe.context(()=>{y.current=Xe.from(c.current,j,C),m.current.add(y.current,x)})}return()=>U.revert()},[k,x,A,C,S]),Jt.jsx(Ei,{...e,ref:t,ignoreTlForVideo:!0,children:Jt.jsx(ve.Container,{ref:c,children:r&&r.length>0&&Jt.jsx(Pp,{x:I,y:N,width:L,height:R,animationSpeed:1,loop:O,textures:a,onComplete:M,onFrameChange:U=>u(U),anchor:.5,forwardRef:d})})})});var kp={exports:{}};/*!
|
|
576
|
+
}`;var Ft=uy(function(){return Xt(D,Et+"return "+ct).apply(r,H)});if(Ft.source=ct,Lf(Ft))throw Ft;return Ft}function z3(s){return Zt(s).toLowerCase()}function V3(s){return Zt(s).toUpperCase()}function W3(s,o,g){if(s=Zt(s),s&&(g||o===r))return mv(s);if(!s||!(o=er(o)))return s;var T=Ir(s),P=Ir(o),D=_v(T,P),H=bv(T,P)+1;return xn(T,D,H).join("")}function X3(s,o,g){if(s=Zt(s),s&&(g||o===r))return s.slice(0,Ev(s)+1);if(!s||!(o=er(o)))return s;var T=Ir(s),P=bv(T,Ir(o))+1;return xn(T,0,P).join("")}function K3(s,o,g){if(s=Zt(s),s&&(g||o===r))return s.replace(ku,"");if(!s||!(o=er(o)))return s;var T=Ir(s),P=_v(T,Ir(o));return xn(T,P).join("")}function Y3(s,o){var g=R,T=I;if(pe(o)){var P="separator"in o?o.separator:P;g="length"in o?kt(o.length):g,T="omission"in o?er(o.omission):T}s=Zt(s);var D=s.length;if(ki(s)){var H=Ir(s);D=H.length}if(g>=D)return s;var K=g-Li(T);if(K<1)return T;var Q=H?xn(H,0,K).join(""):s.slice(0,K);if(P===r)return Q+T;if(H&&(K+=Q.length-K),Ff(P)){if(s.slice(K).search(P)){var lt,ut=Q;for(P.global||(P=Zu(P.source,Zt($p.exec(P))+"g")),P.lastIndex=0;lt=P.exec(ut);)var ct=lt.index;Q=Q.slice(0,ct===r?K:ct)}}else if(s.indexOf(er(P),K)!=K){var gt=Q.lastIndexOf(P);gt>-1&&(Q=Q.slice(0,gt))}return Q+T}function Z3(s){return s=Zt(s),s&&lC.test(s)?s.replace(Bp,SN):s}var J3=qi(function(s,o,g){return s+(g?" ":"")+o.toUpperCase()}),Df=fg("toUpperCase");function ly(s,o,g){return s=Zt(s),o=g?r:o,o===r?xN(s)?RN(s):hN(s):s.match(o)||[]}var uy=Bt(function(s,o){try{return Qe(s,r,o)}catch(g){return Lf(g)?g:new Ct(g)}}),Q3=tn(function(s,o){return ur(o,function(g){g=Gr(g),Jr(s,g,Mf(s[g],s))}),s});function tF(s){var o=s==null?0:s.length,g=At();return s=o?fe(s,function(T){if(typeof T[1]!="function")throw new fr(l);return[g(T[0]),T[1]]}):[],Bt(function(T){for(var P=-1;++P<o;){var D=s[P];if(Qe(D[0],this,T))return Qe(D[1],this,T)}})}function eF(s){return SP(hr(s,d))}function $f(s){return function(){return s}}function rF(s,o){return s==null||s!==s?o:s}var nF=hg(),iF=hg(!0);function We(s){return s}function Gf(s){return qv(typeof s=="function"?s:hr(s,d))}function sF(s){return Hv(hr(s,d))}function aF(s,o){return zv(s,hr(o,d))}var oF=Bt(function(s,o){return function(g){return Is(g,s,o)}}),lF=Bt(function(s,o){return function(g){return Is(s,g,o)}});function qf(s,o,g){var T=Ie(o),P=go(o,T);g==null&&!(pe(o)&&(P.length||!T.length))&&(g=o,o=s,s=this,P=go(o,Ie(o)));var D=!(pe(g)&&"chain"in g)||!!g.chain,H=rn(s);return ur(P,function(K){var Q=o[K];s[K]=Q,H&&(s.prototype[K]=function(){var lt=this.__chain__;if(D||lt){var ut=s(this.__wrapped__),ct=ut.__actions__=He(this.__actions__);return ct.push({func:Q,args:arguments,thisArg:s}),ut.__chain__=lt,ut}return Q.apply(s,vn([this.value()],arguments))})}),s}function uF(){return Ce._===this&&(Ce._=LN),this}function jf(){}function fF(s){return s=kt(s),Bt(function(o){return Vv(o,s)})}var cF=bf(fe),hF=bf(dv),dF=bf(Hu);function fy(s){return Of(s)?zu(Gr(s)):jP(s)}function pF(s){return function(o){return s==null?r:Wn(s,o)}}var vF=pg(),gF=pg(!0);function Hf(){return[]}function zf(){return!1}function yF(){return{}}function mF(){return""}function _F(){return!0}function bF(s,o){if(s=kt(s),s<1||s>it)return[];var g=M,T=ke(s,M);o=At(o),s-=M;for(var P=Xu(T,o);++g<s;)o(g);return P}function xF(s){return Mt(s)?fe(s,Gr):rr(s)?[s]:He(Cg(Zt(s)))}function EF(s){var o=++MN;return Zt(s)+o}var wF=Eo(function(s,o){return s+o},0),TF=xf("ceil"),AF=Eo(function(s,o){return s/o},1),SF=xf("floor");function OF(s){return s&&s.length?vo(s,We,af):r}function IF(s,o){return s&&s.length?vo(s,At(o,2),af):r}function RF(s){return gv(s,We)}function CF(s,o){return gv(s,At(o,2))}function NF(s){return s&&s.length?vo(s,We,ff):r}function PF(s,o){return s&&s.length?vo(s,At(o,2),ff):r}var MF=Eo(function(s,o){return s*o},1),kF=xf("round"),LF=Eo(function(s,o){return s-o},0);function FF(s){return s&&s.length?Wu(s,We):0}function BF(s,o){return s&&s.length?Wu(s,At(o,2)):0}return B.after=sL,B.ary=Gg,B.assign=VL,B.assignIn=ey,B.assignInWith=Lo,B.assignWith=WL,B.at=XL,B.before=qg,B.bind=Mf,B.bindAll=Q3,B.bindKey=jg,B.castArray=yL,B.chain=Ug,B.chunk=SM,B.compact=OM,B.concat=IM,B.cond=tF,B.conforms=eF,B.constant=$f,B.countBy=Fk,B.create=KL,B.curry=Hg,B.curryRight=zg,B.debounce=Vg,B.defaults=YL,B.defaultsDeep=ZL,B.defer=aL,B.delay=oL,B.difference=RM,B.differenceBy=CM,B.differenceWith=NM,B.drop=PM,B.dropRight=MM,B.dropRightWhile=kM,B.dropWhile=LM,B.fill=FM,B.filter=Uk,B.flatMap=Gk,B.flatMapDeep=qk,B.flatMapDepth=jk,B.flatten=kg,B.flattenDeep=BM,B.flattenDepth=UM,B.flip=lL,B.flow=nF,B.flowRight=iF,B.fromPairs=DM,B.functions=i3,B.functionsIn=s3,B.groupBy=Hk,B.initial=GM,B.intersection=qM,B.intersectionBy=jM,B.intersectionWith=HM,B.invert=o3,B.invertBy=l3,B.invokeMap=Vk,B.iteratee=Gf,B.keyBy=Wk,B.keys=Ie,B.keysIn=Ve,B.map=Ro,B.mapKeys=f3,B.mapValues=c3,B.matches=sF,B.matchesProperty=aF,B.memoize=No,B.merge=h3,B.mergeWith=ry,B.method=oF,B.methodOf=lF,B.mixin=qf,B.negate=Po,B.nthArg=fF,B.omit=d3,B.omitBy=p3,B.once=uL,B.orderBy=Xk,B.over=cF,B.overArgs=fL,B.overEvery=hF,B.overSome=dF,B.partial=kf,B.partialRight=Wg,B.partition=Kk,B.pick=v3,B.pickBy=ny,B.property=fy,B.propertyOf=pF,B.pull=XM,B.pullAll=Fg,B.pullAllBy=KM,B.pullAllWith=YM,B.pullAt=ZM,B.range=vF,B.rangeRight=gF,B.rearg=cL,B.reject=Jk,B.remove=JM,B.rest=hL,B.reverse=Nf,B.sampleSize=tL,B.set=y3,B.setWith=m3,B.shuffle=eL,B.slice=QM,B.sortBy=iL,B.sortedUniq=ak,B.sortedUniqBy=ok,B.split=G3,B.spread=dL,B.tail=lk,B.take=uk,B.takeRight=fk,B.takeRightWhile=ck,B.takeWhile=hk,B.tap=Ok,B.throttle=pL,B.thru=Io,B.toArray=Jg,B.toPairs=iy,B.toPairsIn=sy,B.toPath=xF,B.toPlainObject=ty,B.transform=_3,B.unary=vL,B.union=dk,B.unionBy=pk,B.unionWith=vk,B.uniq=gk,B.uniqBy=yk,B.uniqWith=mk,B.unset=b3,B.unzip=Pf,B.unzipWith=Bg,B.update=x3,B.updateWith=E3,B.values=zi,B.valuesIn=w3,B.without=_k,B.words=ly,B.wrap=gL,B.xor=bk,B.xorBy=xk,B.xorWith=Ek,B.zip=wk,B.zipObject=Tk,B.zipObjectDeep=Ak,B.zipWith=Sk,B.entries=iy,B.entriesIn=sy,B.extend=ey,B.extendWith=Lo,qf(B,B),B.add=wF,B.attempt=uy,B.camelCase=O3,B.capitalize=ay,B.ceil=TF,B.clamp=T3,B.clone=mL,B.cloneDeep=bL,B.cloneDeepWith=xL,B.cloneWith=_L,B.conformsTo=EL,B.deburr=oy,B.defaultTo=rF,B.divide=AF,B.endsWith=I3,B.eq=Cr,B.escape=R3,B.escapeRegExp=C3,B.every=Bk,B.find=Dk,B.findIndex=Pg,B.findKey=JL,B.findLast=$k,B.findLastIndex=Mg,B.findLastKey=QL,B.floor=SF,B.forEach=Dg,B.forEachRight=$g,B.forIn=t3,B.forInRight=e3,B.forOwn=r3,B.forOwnRight=n3,B.get=Bf,B.gt=wL,B.gte=TL,B.has=a3,B.hasIn=Uf,B.head=Lg,B.identity=We,B.includes=zk,B.indexOf=$M,B.inRange=A3,B.invoke=u3,B.isArguments=Yn,B.isArray=Mt,B.isArrayBuffer=AL,B.isArrayLike=ze,B.isArrayLikeObject=me,B.isBoolean=SL,B.isBuffer=En,B.isDate=OL,B.isElement=IL,B.isEmpty=RL,B.isEqual=CL,B.isEqualWith=NL,B.isError=Lf,B.isFinite=PL,B.isFunction=rn,B.isInteger=Xg,B.isLength=Mo,B.isMap=Kg,B.isMatch=ML,B.isMatchWith=kL,B.isNaN=LL,B.isNative=FL,B.isNil=UL,B.isNull=BL,B.isNumber=Yg,B.isObject=pe,B.isObjectLike=ge,B.isPlainObject=ks,B.isRegExp=Ff,B.isSafeInteger=DL,B.isSet=Zg,B.isString=ko,B.isSymbol=rr,B.isTypedArray=Hi,B.isUndefined=$L,B.isWeakMap=GL,B.isWeakSet=qL,B.join=zM,B.kebabCase=N3,B.last=pr,B.lastIndexOf=VM,B.lowerCase=P3,B.lowerFirst=M3,B.lt=jL,B.lte=HL,B.max=OF,B.maxBy=IF,B.mean=RF,B.meanBy=CF,B.min=NF,B.minBy=PF,B.stubArray=Hf,B.stubFalse=zf,B.stubObject=yF,B.stubString=mF,B.stubTrue=_F,B.multiply=MF,B.nth=WM,B.noConflict=uF,B.noop=jf,B.now=Co,B.pad=k3,B.padEnd=L3,B.padStart=F3,B.parseInt=B3,B.random=S3,B.reduce=Yk,B.reduceRight=Zk,B.repeat=U3,B.replace=D3,B.result=g3,B.round=kF,B.runInContext=J,B.sample=Qk,B.size=rL,B.snakeCase=$3,B.some=nL,B.sortedIndex=tk,B.sortedIndexBy=ek,B.sortedIndexOf=rk,B.sortedLastIndex=nk,B.sortedLastIndexBy=ik,B.sortedLastIndexOf=sk,B.startCase=q3,B.startsWith=j3,B.subtract=LF,B.sum=FF,B.sumBy=BF,B.template=H3,B.times=bF,B.toFinite=nn,B.toInteger=kt,B.toLength=Qg,B.toLower=z3,B.toNumber=vr,B.toSafeInteger=zL,B.toString=Zt,B.toUpper=V3,B.trim=W3,B.trimEnd=X3,B.trimStart=K3,B.truncate=Y3,B.unescape=Z3,B.uniqueId=EF,B.upperCase=J3,B.upperFirst=Df,B.each=Dg,B.eachRight=$g,B.first=Lg,qf(B,function(){var s={};return Dr(B,function(o,g){ee.call(B.prototype,g)||(s[g]=o)}),s}(),{chain:!1}),B.VERSION=n,ur(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),ur(["drop","take"],function(s,o){$t.prototype[s]=function(g){g=g===r?1:we(kt(g),0);var T=this.__filtered__&&!o?new $t(this):this.clone();return T.__filtered__?T.__takeCount__=ke(g,T.__takeCount__):T.__views__.push({size:ke(g,M),type:s+(T.__dir__<0?"Right":"")}),T},$t.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),ur(["filter","map","takeWhile"],function(s,o){var g=o+1,T=g==F||g==X;$t.prototype[s]=function(P){var D=this.clone();return D.__iteratees__.push({iteratee:At(P,3),type:g}),D.__filtered__=D.__filtered__||T,D}}),ur(["head","last"],function(s,o){var g="take"+(o?"Right":"");$t.prototype[s]=function(){return this[g](1).value()[0]}}),ur(["initial","tail"],function(s,o){var g="drop"+(o?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[g](1)}}),$t.prototype.compact=function(){return this.filter(We)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,o){return typeof s=="function"?new $t(this):this.map(function(g){return Is(g,s,o)})}),$t.prototype.reject=function(s){return this.filter(Po(At(s)))},$t.prototype.slice=function(s,o){s=kt(s);var g=this;return g.__filtered__&&(s>0||o<0)?new $t(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),o!==r&&(o=kt(o),g=o<0?g.dropRight(-o):g.take(o-s)),g)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(M)},Dr($t.prototype,function(s,o){var g=/^(?:filter|find|map|reject)|While$/.test(o),T=/^(?:head|last)$/.test(o),P=B[T?"take"+(o=="last"?"Right":""):o],D=T||/^find/.test(o);P&&(B.prototype[o]=function(){var H=this.__wrapped__,K=T?[1]:arguments,Q=H instanceof $t,lt=K[0],ut=Q||Mt(H),ct=function(Ut){var qt=P.apply(B,vn([Ut],K));return T&>?qt[0]:qt};ut&&g&&typeof lt=="function"&<.length!=1&&(Q=ut=!1);var gt=this.__chain__,Et=!!this.__actions__.length,St=D&&!gt,Ft=Q&&!Et;if(!D&&ut){H=Ft?H:new $t(this);var Ot=s.apply(H,K);return Ot.__actions__.push({func:Io,args:[ct],thisArg:r}),new cr(Ot,gt)}return St&&Ft?s.apply(this,K):(Ot=this.thru(ct),St?T?Ot.value()[0]:Ot.value():Ot)})}),ur(["pop","push","shift","sort","splice","unshift"],function(s){var o=Qa[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",T=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var P=arguments;if(T&&!this.__chain__){var D=this.value();return o.apply(Mt(D)?D:[],P)}return this[g](function(H){return o.apply(Mt(H)?H:[],P)})}}),Dr($t.prototype,function(s,o){var g=B[o];if(g){var T=g.name+"";ee.call(Di,T)||(Di[T]=[]),Di[T].push({name:o,func:g})}}),Di[xo(r,_).name]=[{name:"wrapper",func:r}],$t.prototype.clone=ZN,$t.prototype.reverse=JN,$t.prototype.value=QN,B.prototype.at=Ik,B.prototype.chain=Rk,B.prototype.commit=Ck,B.prototype.next=Nk,B.prototype.plant=Mk,B.prototype.reverse=kk,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Lk,B.prototype.first=B.prototype.head,xs&&(B.prototype[xs]=Pk),B},Fi=CN();qn?((qn.exports=Fi)._=Fi,$u._=Fi):Ce._=Fi}).call(Ke)}(Va,Va.exports);var Mp=Va.exports;const JR={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},QR=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState([]),[,i]=Tt.useState(0),[a,l]=Tt.useState([]),[,u]=mt.useState(0),[,f]=mt.useState(!1),[h,p]=qR({autoPlay:!1}),d=mt.useRef(null),c=mt.useRef(null),v=mt.useRef(JR),y=mt.useRef(),{tl:m,isDragging:b}=mt.useContext(mi),{frames:_,delays:E}=h,{src:w,startAt:x,endAt:A,frameStartAt:C,frameEndAt:S,loop:O,transformation:{width:L=0,height:R=0,x:I,y:N,animation:k}}=e,F=.1;YR(w,p),wr(qe.PAUSE,U=>{console.log("pause event",U),d.current&&(d.current.stop(),v.current.isPlaying=!1)}),Tt.useEffect(()=>{v.current&&d.current&&(b?(d.current.stop(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[b]),Tt.useEffect(()=>{if(!xi(_)){const U=mR(_,Y=>{const{data:G,width:W,height:tt}=Y,et=new Uint8Array(G);return wn.Texture.fromBuffer(et,W,tt)}),j=U.map((Y,G)=>({texture:Y,time:E[G]}));n(U),l(j);let V=0;E.forEach(Y=>{V+=Y*10}),i(V),v.current.totalDuration=V,v.current.totalFrames=_.length}},[_,E]);const q=Mp.debounce(U=>{if(d.current){let j=U===0?0:U/F;const V=v.current.totalFrames;j=j>=V?V:j,d.current.gotoAndPlay(j||0),v.current.isPlaying=!0}},50),X=Mp.debounce(()=>{d.current&&(d.current.stop(),v.current.isPlaying=!1)},150),z=U=>{if(d.current){let j=U===0?0:U/F;const V=v.current.totalFrames;j=j>=V?V:j,d.current.gotoAndPlay(j||0),v.current.isPlaying=!0}},it=()=>{console.log("local gif time complete"),d.current&&(d.current.stop(),v.current.isPlaying=!1)},Z=()=>{d.current&&(d.current.stop(),v.current.isPlaying=!1)},$=U=>{var V;const j=U+((V=y.current)==null?void 0:V.time());d.current&&v.current.isDragging?(q(j),X(),v.current.isPlaying=!1):d.current&&!v.current.isPlaying&&(q(j),v.current.isPlaying=!0)},M=()=>{f(!0)};return mt.useEffect(()=>{let U=Xe.context(()=>{});if(c.current&&m.current){const j={duration:Number(S)-Number(C),onStart:z,onComplete:it,onStartParams:[C,S],onCompleteParams:[],onInterrupt:Z,onUpdate:$,onUpdateParams:[C,S]};y.current&&y.current.kill(),U=Xe.context(()=>{y.current=Xe.from(c.current,j,C),m.current.add(y.current,x)})}return()=>{y.current&&y.current.kill(),U.revert()}},[k,x,A,C,S]),Jt.jsx(Ei,{...e,ref:t,ignoreTlForVideo:!0,children:Jt.jsx(ve.Container,{ref:c,children:r&&r.length>0&&Jt.jsx(Pp,{x:I,y:N,width:L,height:R,animationSpeed:1,loop:O,textures:a,onComplete:M,onFrameChange:U=>u(U),anchor:.5,forwardRef:d})})})});var kp={exports:{}};/*!
|
|
577
577
|
* Quill Editor v1.3.7
|
|
578
578
|
* https://quilljs.com/
|
|
579
579
|
* Copyright (c) 2014, Jason Chen
|
|
@@ -613,4 +613,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
613
613
|
`),ot}function It(nt,ot){if(G(nt)&&nt.nextElementSibling!=null&&!Y(ot,`
|
|
614
614
|
|
|
615
615
|
`)){var pt=nt.offsetHeight+parseFloat(V(nt).marginTop)+parseFloat(V(nt).marginBottom);nt.nextElementSibling.offsetTop>nt.offsetTop+pt*1.5&&ot.insert(`
|
|
616
|
-
`)}return ot}function Kt(nt,ot){var pt={},vt=nt.style||{};return vt.fontStyle&&V(nt).fontStyle==="italic"&&(pt.italic=!0),vt.fontWeight&&(V(nt).fontWeight.startsWith("bold")||parseInt(V(nt).fontWeight)>=700)&&(pt.bold=!0),Object.keys(pt).length>0&&(ot=j(ot,pt)),parseFloat(vt.textIndent||0)>0&&(ot=new d.default().insert(" ").concat(ot)),ot}function jt(nt,ot){var pt=nt.data;if(nt.parentNode.tagName==="O:P")return ot.insert(pt.trim());if(pt.trim().length===0&&nt.parentNode.classList.contains("ql-clipboard"))return ot;if(!V(nt.parentNode).whiteSpace.startsWith("pre")){var vt=function(Nt,Lt){return Lt=Lt.replace(/[^\u00a0]/g,""),Lt.length<1&&Nt?" ":Lt};pt=pt.replace(/\r\n/g," ").replace(/\n/g," "),pt=pt.replace(/\s\s+/g,vt.bind(vt,!0)),(nt.previousSibling==null&&G(nt.parentNode)||nt.previousSibling!=null&&G(nt.previousSibling))&&(pt=pt.replace(/^\s+/,vt.bind(vt,!1))),(nt.nextSibling==null&&G(nt.parentNode)||nt.nextSibling!=null&&G(nt.nextSibling))&&(pt=pt.replace(/\s+$/,vt.bind(vt,!1)))}return ot.insert(pt)}n.default=U,n.matchAttributor=et,n.matchBlot=st,n.matchNewline=xt,n.matchSpacing=It,n.matchText=jt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return p(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"optimize",value:function(_){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(f.default);v.blotName="bold",v.tagName=["STRONG","B"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var a=function(){function I(N,k){var F=[],q=!0,X=!1,z=void 0;try{for(var it=N[Symbol.iterator](),Z;!(q=(Z=it.next()).done)&&(F.push(Z.value),!(k&&F.length===k));q=!0);}catch($){X=!0,z=$}finally{try{!q&&it.return&&it.return()}finally{if(X)throw z}}return F}return function(N,k){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return I(N,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function I(N,k){for(var F=0;F<k.length;F++){var q=k[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(N,q.key,q)}}return function(N,k,F){return k&&I(N.prototype,k),F&&I(N,F),N}}(),u=i(2),f=_(u),h=i(0),p=_(h),d=i(5),c=_(d),v=i(10),y=_(v),m=i(9),b=_(m);function _(I){return I&&I.__esModule?I:{default:I}}function E(I,N,k){return N in I?Object.defineProperty(I,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):I[N]=k,I}function w(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function x(I,N){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:I}function A(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(I,N):I.__proto__=N)}var C=(0,y.default)("quill:toolbar"),S=function(I){A(N,I);function N(k,F){w(this,N);var q=x(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,k,F));if(Array.isArray(q.options.container)){var X=document.createElement("div");L(X,q.options.container),k.container.parentNode.insertBefore(X,k.container),q.container=X}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var z;return z=C.error("Container required for toolbar",q.options),x(q,z)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(it){q.addHandler(it,q.options.handlers[it])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(it){q.attach(it)}),q.quill.on(c.default.events.EDITOR_CHANGE,function(it,Z){it===c.default.events.SELECTION_CHANGE&&q.update(Z)}),q.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var it=q.quill.selection.getRange(),Z=a(it,1),$=Z[0];q.update($)}),q}return l(N,[{key:"addHandler",value:function(F,q){this.handlers[F]=q}},{key:"attach",value:function(F){var q=this,X=[].find.call(F.classList,function(it){return it.indexOf("ql-")===0});if(X){if(X=X.slice(3),F.tagName==="BUTTON"&&F.setAttribute("type","button"),this.handlers[X]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[X]==null){C.warn("ignoring attaching to disabled format",X,F);return}if(p.default.query(X)==null){C.warn("ignoring attaching to nonexistent format",X,F);return}}var z=F.tagName==="SELECT"?"change":"click";F.addEventListener(z,function(it){var Z=void 0;if(F.tagName==="SELECT"){if(F.selectedIndex<0)return;var $=F.options[F.selectedIndex];$.hasAttribute("selected")?Z=!1:Z=$.value||!1}else F.classList.contains("ql-active")?Z=!1:Z=F.value||!F.hasAttribute("value"),it.preventDefault();q.quill.focus();var M=q.quill.selection.getRange(),U=a(M,1),j=U[0];if(q.handlers[X]!=null)q.handlers[X].call(q,Z);else if(p.default.query(X).prototype instanceof p.default.Embed){if(Z=prompt("Enter "+X),!Z)return;q.quill.updateContents(new f.default().retain(j.index).delete(j.length).insert(E({},X,Z)),c.default.sources.USER)}else q.quill.format(X,Z,c.default.sources.USER);q.update(j)}),this.controls.push([X,F])}}},{key:"update",value:function(F){var q=F==null?{}:this.quill.getFormat(F);this.controls.forEach(function(X){var z=a(X,2),it=z[0],Z=z[1];if(Z.tagName==="SELECT"){var $=void 0;if(F==null)$=null;else if(q[it]==null)$=Z.querySelector("option[selected]");else if(!Array.isArray(q[it])){var M=q[it];typeof M=="string"&&(M=M.replace(/\"/g,'\\"')),$=Z.querySelector('option[value="'+M+'"]')}$==null?(Z.value="",Z.selectedIndex=-1):$.selected=!0}else if(F==null)Z.classList.remove("ql-active");else if(Z.hasAttribute("value")){var U=q[it]===Z.getAttribute("value")||q[it]!=null&&q[it].toString()===Z.getAttribute("value")||q[it]==null&&!Z.getAttribute("value");Z.classList.toggle("ql-active",U)}else Z.classList.toggle("ql-active",q[it]!=null)})}}]),N}(b.default);S.DEFAULTS={};function O(I,N,k){var F=document.createElement("button");F.setAttribute("type","button"),F.classList.add("ql-"+N),k!=null&&(F.value=k),I.appendChild(F)}function L(I,N){Array.isArray(N[0])||(N=[N]),N.forEach(function(k){var F=document.createElement("span");F.classList.add("ql-formats"),k.forEach(function(q){if(typeof q=="string")O(F,q);else{var X=Object.keys(q)[0],z=q[X];Array.isArray(z)?R(F,X,z):O(F,X,z)}}),I.appendChild(F)})}function R(I,N,k){var F=document.createElement("select");F.classList.add("ql-"+N),k.forEach(function(q){var X=document.createElement("option");q!==!1?X.setAttribute("value",q):X.setAttribute("selected","selected"),F.appendChild(X)}),I.appendChild(F)}S.DEFAULTS={container:null,handlers:{clean:function(){var N=this,k=this.quill.getSelection();if(k!=null)if(k.length==0){var F=this.quill.getFormat();Object.keys(F).forEach(function(q){p.default.query(q,p.default.Scope.INLINE)!=null&&N.quill.format(q,!1)})}else this.quill.removeFormat(k,c.default.sources.USER)},direction:function(N){var k=this.quill.getFormat().align;N==="rtl"&&k==null?this.quill.format("align","right",c.default.sources.USER):!N&&k==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",N,c.default.sources.USER)},indent:function(N){var k=this.quill.getSelection(),F=this.quill.getFormat(k),q=parseInt(F.indent||0);if(N==="+1"||N==="-1"){var X=N==="+1"?1:-1;F.direction==="rtl"&&(X*=-1),this.quill.format("indent",q+X,c.default.sources.USER)}},link:function(N){N===!0&&(N=prompt("Enter link URL:")),this.quill.format("link",N,c.default.sources.USER)},list:function(N){var k=this.quill.getSelection(),F=this.quill.getFormat(k);N==="check"?F.list==="checked"||F.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",N,c.default.sources.USER)}}},n.default=S,n.addControls=L},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(b,_){p(this,m);var E=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return E.label.innerHTML=_,E.container.classList.add("ql-color-picker"),[].slice.call(E.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),E}return a(m,[{key:"buildItem",value:function(_){var E=l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,_);return E.style.backgroundColor=_.getAttribute("value")||"",E}},{key:"selectItem",value:function(_,E){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,_,E);var w=this.label.querySelector(".ql-color-label"),x=_&&_.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=x:w.style.fill=x)}}]),m}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(b,_){p(this,m);var E=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return E.container.classList.add("ql-icon-picker"),[].forEach.call(E.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=_[w.getAttribute("data-value")||""]}),E.defaultItem=E.container.querySelector(".ql-selected"),E.selectItem(E.defaultItem),E}return a(m,[{key:"selectItem",value:function(_,E){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,_,E),_=_||this.defaultItem,this.label.innerHTML=_.innerHTML}}]),m}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function f(h,p){for(var d=0;d<p.length;d++){var c=p[d];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,p,d){return p&&f(h.prototype,p),d&&f(h,d),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,p){var d=this;l(this,f),this.quill=h,this.boundsContainer=p||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return a(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var d=p.left+p.width/2-this.root.offsetWidth/2,c=p.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var v=this.boundsContainer.getBoundingClientRect(),y=this.root.getBoundingClientRect(),m=0;if(y.right>v.right&&(m=v.right-y.right,this.root.style.left=d+m+"px"),y.left<v.left&&(m=v.left-y.left,this.root.style.left=d+m+"px"),y.bottom>v.bottom){var b=y.bottom-y.top,_=p.bottom-p.top+b;this.root.style.top=c-_+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function R(I,N){var k=[],F=!0,q=!1,X=void 0;try{for(var z=I[Symbol.iterator](),it;!(F=(it=z.next()).done)&&(k.push(it.value),!(N&&k.length===N));F=!0);}catch(Z){q=!0,X=Z}finally{try{!F&&z.return&&z.return()}finally{if(q)throw X}}return k}return function(I,N){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return R(I,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function R(I,N,k){I===null&&(I=Function.prototype);var F=Object.getOwnPropertyDescriptor(I,N);if(F===void 0){var q=Object.getPrototypeOf(I);return q===null?void 0:R(q,N,k)}else{if("value"in F)return F.value;var X=F.get;return X===void 0?void 0:X.call(k)}},u=function(){function R(I,N){for(var k=0;k<N.length;k++){var F=N[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,F.key,F)}}return function(I,N,k){return N&&R(I.prototype,N),k&&R(I,k),I}}(),f=i(3),h=w(f),p=i(8),d=w(p),c=i(43),v=w(c),y=i(27),m=w(y),b=i(15),_=i(41),E=w(_);function w(R){return R&&R.__esModule?R:{default:R}}function x(R,I){if(!(R instanceof I))throw new TypeError("Cannot call a class as a function")}function A(R,I){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:R}function C(R,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);R.prototype=Object.create(I&&I.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(R,I):R.__proto__=I)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(R){C(I,R);function I(N,k){x(this,I),k.modules.toolbar!=null&&k.modules.toolbar.container==null&&(k.modules.toolbar.container=S);var F=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,N,k));return F.quill.container.classList.add("ql-snow"),F}return u(I,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),E.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),E.default),this.tooltip=new L(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(F,q){k.handlers.link.call(k,!q.format.link)})}}]),I}(v.default);O.DEFAULTS=(0,h.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(I){if(I){var N=this.quill.getSelection();if(N==null||N.length==0)return;var k=this.quill.getText(N);/^\S+@\S+\.\S+$/.test(k)&&k.indexOf("mailto:")!==0&&(k="mailto:"+k);var F=this.quill.theme.tooltip;F.edit("link",k)}else this.quill.format("link",!1)}}}}});var L=function(R){C(I,R);function I(N,k){x(this,I);var F=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,N,k));return F.preview=F.root.querySelector("a.ql-preview"),F}return u(I,[{key:"listen",value:function(){var k=this;l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(F){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),F.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(F){if(k.linkRange!=null){var q=k.linkRange;k.restoreFocus(),k.quill.formatText(q,"link",!1,d.default.sources.USER),delete k.linkRange}F.preventDefault(),k.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(F,q,X){if(F!=null){if(F.length===0&&X===d.default.sources.USER){var z=k.quill.scroll.descendant(m.default,F.index),it=a(z,2),Z=it[0],$=it[1];if(Z!=null){k.linkRange=new b.Range(F.index-$,Z.length());var M=m.default.formats(Z.domNode);k.preview.textContent=M,k.preview.setAttribute("href",M),k.show(),k.position(k.quill.getBounds(k.linkRange));return}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),I}(c.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=O},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(29),l=ft(a),u=i(36),f=i(38),h=i(64),p=i(65),d=ft(p),c=i(66),v=ft(c),y=i(67),m=ft(y),b=i(37),_=i(26),E=i(39),w=i(40),x=i(56),A=ft(x),C=i(68),S=ft(C),O=i(27),L=ft(O),R=i(69),I=ft(R),N=i(70),k=ft(N),F=i(71),q=ft(F),X=i(72),z=ft(X),it=i(73),Z=ft(it),$=i(13),M=ft($),U=i(74),j=ft(U),V=i(75),Y=ft(V),G=i(57),W=ft(G),tt=i(41),et=ft(tt),st=i(28),ht=ft(st),dt=i(59),_t=ft(dt),xt=i(60),It=ft(xt),Kt=i(61),jt=ft(Kt),nt=i(108),ot=ft(nt),pt=i(62),vt=ft(pt);function ft(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}}l.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":u.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":_.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":E.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":u.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":_.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":E.FontStyle,"attributors/style/size":w.SizeStyle},!0),l.default.register({"formats/align":u.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":_.ColorStyle,"formats/font":E.FontClass,"formats/size":w.SizeClass,"formats/blockquote":d.default,"formats/code-block":M.default,"formats/header":v.default,"formats/list":m.default,"formats/bold":A.default,"formats/code":$.Code,"formats/italic":S.default,"formats/link":L.default,"formats/script":I.default,"formats/strike":k.default,"formats/underline":q.default,"formats/image":z.default,"formats/video":Z.default,"formats/list/item":y.ListItem,"modules/formula":j.default,"modules/syntax":Y.default,"modules/toolbar":W.default,"themes/bubble":ot.default,"themes/snow":vt.default,"ui/icons":et.default,"ui/picker":ht.default,"ui/icon-picker":It.default,"ui/color-picker":_t.default,"ui/tooltip":jt.default},!0),n.default=l.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var a=function(){function m(b,_){for(var E=0;E<_.length;E++){var w=_[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,_,E){return _&&m(b.prototype,_),E&&m(b,E),b}}(),l=function m(b,_,E){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,_);if(w===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:m(x,_,E)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(E)}},u=i(0),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function p(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function d(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function c(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var v=function(m){c(b,m);function b(){return p(this,b),d(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"add",value:function(E,w){if(w==="+1"||w==="-1"){var x=this.value(E)||0;w=w==="+1"?x+1:x-1}return w===0?(this.remove(E),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,E,w)}},{key:"canAdd",value:function(E,w){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,E,w)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,E,parseInt(w))}},{key:"value",value:function(E){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,E))||void 0}}]),b}(f.default.Attributor.Class),y=new v("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(4),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function p(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var d=function(c){p(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);d.blotName="blockquote",d.tagName="blockquote",n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function v(y,m){for(var b=0;b<m.length;b++){var _=m[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,m,b){return m&&v(y.prototype,m),b&&v(y,b),y}}(),l=i(4),u=f(l);function f(v){return v&&v.__esModule?v:{default:v}}function h(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function p(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function d(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var c=function(v){d(y,v);function y(){return h(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),y}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var a=function(){function x(A,C){for(var S=0;S<C.length;S++){var O=C[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,C,S){return C&&x(A.prototype,C),S&&x(A,S),A}}(),l=function x(A,C,S){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,C);if(O===void 0){var L=Object.getPrototypeOf(A);return L===null?void 0:x(L,C,S)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(S)}},u=i(0),f=v(u),h=i(4),p=v(h),d=i(25),c=v(d);function v(x){return x&&x.__esModule?x:{default:x}}function y(x,A,C){return A in x?Object.defineProperty(x,A,{value:C,enumerable:!0,configurable:!0,writable:!0}):x[A]=C,x}function m(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}function b(x,A){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:x}function _(x,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);x.prototype=Object.create(A&&A.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(x,A):x.__proto__=A)}var E=function(x){_(A,x);function A(){return m(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return a(A,[{key:"format",value:function(S,O){S===w.blotName&&!O?this.replaceWith(f.default.create(this.statics.scope)):l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,S,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,O){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,O),this):(this.parent.unwrap(),l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,S,O))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:l(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,S)}}]),A}(p.default);E.blotName="list-item",E.tagName="LI";var w=function(x){_(A,x),a(A,null,[{key:"create",value:function(S){var O=S==="ordered"?"OL":"UL",L=l(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,O);return(S==="checked"||S==="unchecked")&&L.setAttribute("data-checked",S==="checked"),L}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(C){m(this,A);var S=b(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,C)),O=function(R){if(R.target.parentNode===C){var I=S.statics.formats(C),N=f.default.find(R.target);I==="checked"?N.format("list","unchecked"):I==="unchecked"&&N.format("list","checked")}};return C.addEventListener("touchstart",O),C.addEventListener("mousedown",O),S}return a(A,[{key:"format",value:function(S,O){this.children.length>0&&this.children.tail.format(S,O)}},{key:"formats",value:function(){return y({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,O){if(S instanceof E)l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,S,O);else{var L=O==null?this.length():O.offset(this),R=this.split(L);R.parent.insertBefore(S,R)}}},{key:"optimize",value:function(S){l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,S);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var O=f.default.create(this.statics.defaultChild);S.moveChildren(O),this.appendChild(O)}l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,S)}}]),A}(c.default);w.blotName="list",w.scope=f.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[E],n.ListItem=E,n.default=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(56),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function p(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var d=function(c){p(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);d.blotName="italic",d.tagName=["EM","I"],n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return p(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,null,[{key:"create",value:function(_){return _==="super"?document.createElement("sup"):_==="sub"?document.createElement("sub"):l(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_)}},{key:"formats",value:function(_){if(_.tagName==="SUB")return"sub";if(_.tagName==="SUP")return"super"}}]),m}(f.default);v.blotName="script",v.tagName=["SUB","SUP"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function p(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var d=function(c){p(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);d.blotName="strike",d.tagName="S",n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function p(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var d=function(c){p(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);d.blotName="underline",d.tagName="U",n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(0),f=p(u),h=i(27);function p(b){return b&&b.__esModule?b:{default:b}}function d(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=["alt","height","width"],m=function(b){v(_,b);function _(){return d(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"format",value:function(w,x){y.indexOf(w)>-1?x?this.domNode.setAttribute(w,x):this.domNode.removeAttribute(w):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,w,x)}}],[{key:"create",value:function(w){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,w);return typeof w=="string"&&x.setAttribute("src",this.sanitize(w)),x}},{key:"formats",value:function(w){return y.reduce(function(x,A){return w.hasAttribute(A)&&(x[A]=w.getAttribute(A)),x},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,h.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),_}(f.default.Embed);m.blotName="image",m.tagName="IMG",n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(4),f=i(27),h=p(f);function p(b){return b&&b.__esModule?b:{default:b}}function d(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=["height","width"],m=function(b){v(_,b);function _(){return d(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"format",value:function(w,x){y.indexOf(w)>-1?x?this.domNode.setAttribute(w,x):this.domNode.removeAttribute(w):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,w,x)}}],[{key:"create",value:function(w){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,w);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(w)),x}},{key:"formats",value:function(w){return y.reduce(function(x,A){return w.hasAttribute(A)&&(x[A]=w.getAttribute(A)),x},{})}},{key:"sanitize",value:function(w){return h.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),_}(u.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var a=function(){function w(x,A){for(var C=0;C<A.length;C++){var S=A[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,C){return A&&w(x.prototype,A),C&&w(x,C),x}}(),l=function w(x,A,C){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,A);if(S===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:w(O,A,C)}else{if("value"in S)return S.value;var L=S.get;return L===void 0?void 0:L.call(C)}},u=i(35),f=v(u),h=i(5),p=v(h),d=i(9),c=v(d);function v(w){return w&&w.__esModule?w:{default:w}}function y(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function m(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function b(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var _=function(w){b(x,w);function x(){return y(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,null,[{key:"create",value:function(C){var S=l(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,C);return typeof C=="string"&&(window.katex.render(C,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",C)),S}},{key:"value",value:function(C){return C.getAttribute("data-value")}}]),x}(f.default);_.blotName="formula",_.className="ql-formula",_.tagName="SPAN";var E=function(w){b(x,w),a(x,null,[{key:"register",value:function(){p.default.register(_,!0)}}]);function x(){y(this,x);var A=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return x}(c.default);n.FormulaBlot=_,n.default=E},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var a=function(){function C(S,O){for(var L=0;L<O.length;L++){var R=O[L];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(S,R.key,R)}}return function(S,O,L){return O&&C(S.prototype,O),L&&C(S,L),S}}(),l=function C(S,O,L){S===null&&(S=Function.prototype);var R=Object.getOwnPropertyDescriptor(S,O);if(R===void 0){var I=Object.getPrototypeOf(S);return I===null?void 0:C(I,O,L)}else{if("value"in R)return R.value;var N=R.get;return N===void 0?void 0:N.call(L)}},u=i(0),f=m(u),h=i(5),p=m(h),d=i(9),c=m(d),v=i(13),y=m(v);function m(C){return C&&C.__esModule?C:{default:C}}function b(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}function _(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:C}function E(C,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}var w=function(C){E(S,C);function S(){return b(this,S),_(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return a(S,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),S}(y.default);w.className="ql-syntax";var x=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),A=function(C){E(S,C),a(S,null,[{key:"register",value:function(){p.default.register(x,!0),p.default.register(w,!0)}}]);function S(O,L){b(this,S);var R=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,O,L));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var I=null;return R.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(I),I=setTimeout(function(){R.highlight(),I=null},R.options.interval)}),R.highlight(),R}return a(S,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(I){I.highlight(L.options.highlight)}),this.quill.update(p.default.sources.SILENT),R!=null&&this.quill.setSelection(R,p.default.sources.SILENT)}}}]),S}(c.default);A.DEFAULTS={highlight:function(){return window.hljs==null?null:function(C){var S=window.hljs.highlightAuto(C);return S.value}}(),interval:1e3},n.CodeBlock=w,n.CodeToken=x,n.default=A},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var a=function S(O,L,R){O===null&&(O=Function.prototype);var I=Object.getOwnPropertyDescriptor(O,L);if(I===void 0){var N=Object.getPrototypeOf(O);return N===null?void 0:S(N,L,R)}else{if("value"in I)return I.value;var k=I.get;return k===void 0?void 0:k.call(R)}},l=function(){function S(O,L){for(var R=0;R<L.length;R++){var I=L[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}return function(O,L,R){return L&&S(O.prototype,L),R&&S(O,R),O}}(),u=i(3),f=b(u),h=i(8),p=b(h),d=i(43),c=b(d),v=i(15),y=i(41),m=b(y);function b(S){return S&&S.__esModule?S:{default:S}}function _(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function E(S,O){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:S}function w(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(S,O):S.__proto__=O)}var x=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=function(S){w(O,S);function O(L,R){_(this,O),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=x);var I=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return I.quill.container.classList.add("ql-bubble"),I}return l(O,[{key:"extendToolbar",value:function(R){this.tooltip=new C(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),m.default)}}]),O}(c.default);A.DEFAULTS=(0,f.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var C=function(S){w(O,S);function O(L,R){_(this,O);var I=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return I.quill.on(p.default.events.EDITOR_CHANGE,function(N,k,F,q){if(N===p.default.events.SELECTION_CHANGE)if(k!=null&&k.length>0&&q===p.default.sources.USER){I.show(),I.root.style.left="0px",I.root.style.width="",I.root.style.width=I.root.offsetWidth+"px";var X=I.quill.getLines(k.index,k.length);if(X.length===1)I.position(I.quill.getBounds(k));else{var z=X[X.length-1],it=I.quill.getIndex(z),Z=Math.min(z.length()-1,k.index+k.length-it),$=I.quill.getBounds(new v.Range(it,Z));I.position($)}}else document.activeElement!==I.textbox&&I.quill.hasFocus()&&I.hide()}),I}return l(O,[{key:"listen",value:function(){var R=this;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var I=R.quill.getSelection();I!=null&&R.position(R.quill.getBounds(I))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var I=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,R),N=this.root.querySelector(".ql-tooltip-arrow");if(N.style.marginLeft="",I===0)return I;N.style.marginLeft=-1*I-N.offsetWidth/2+"px"}}]),O}(d.BaseTooltip);C.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=C,n.default=A},function(r,n,i){r.exports=i(63)}]).default})})(kp);var tC=kp.exports;const eC=Tn(tC),qF="",rC=Tt.forwardRef((e,t)=>{const[r,n]=mt.useState(!1);console.log("allProps",e);const i=mt.useRef(null),a=mt.useRef(null),l=mt.useRef(null),u=mt.useRef(null),f=mt.useRef(16),h=mt.useRef(null),{uniqueId:p,text:d,disabled:c,transformation:v,onTextUpdate:y,pointerdown:m}=e,{x:b,y:_,fontFamily:E="Arial",fontWeight:w="normal",fontStyle:x="normal",fontSize:A=16,fill:C="black",stroke:S,strokeThickness:O=0,blurRadius:L=0,blurEnabled:R=!1,dropShadowColor:I=null,wordWrapWidth:N=5e7,leading:k=0,letterSpacing:F}=v;Tt.useEffect(()=>{f.current=Number(A)},[A]);const q=["italic","oblique"].includes(x)?x:void 0,X=["bold","lighter","100","200","300"].includes(w)?w:void 0,z=Number(F)>0?F:void 0,it=Tt.useMemo(()=>new wn.TextStyle({fontFamily:E,fontSize:A,fill:C||"white",...S&&O>0&&{stroke:S,strokeThickness:O},...q&&{fontStyle:q},...X&&{fontWeight:X},...z&&{letterSpacing:z},...R&&{dropShadow:!0,dropShadowBlur:Number(L),dropShadowColor:(I==null?void 0:I.toString())||"black",dropShadowDistance:0},wordWrap:!0,breakWords:!0,wordWrapWidth:N||500,leading:k||0}),[R,L,C,E,A,k,q,X,z,I,S,O,N]);Tt.useEffect(()=>{h.current={...v}},[v]);const Z=$=>{y&&y({text:$,uniqueId:p,droptype:"titles"})};return Tt.useEffect(()=>{if(r&&l.current){let M=document.getElementById("note-editor");if(M){M.style.position="absolute",M.style.zIndex="10",M.style.left=b+"px",M.style.top=_+"px",M.style.backgroundColor="var(--chakra-color-darkShark)",M.style.transform="scale(1.5)",M.style.width="300px",M.style.height="100px",M.style.color="#fff",M.style.fontSize="20px",M.style.border="1px solid #CBCEE0";const U={esc:{key:27,handler:function(){n(!1)}},enter:{key:13,handler:function(){n(!1)}}};var $=new eC("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...U}}},placeholder:"Compose your text here...",theme:"snow"});$.on("text-change",function(){Z($.root.innerText)}),$.setText(d),$.focus(),$.off("text-change",()=>{console.log("removed")}),$.hasFocus()||(M.style.display="none")}}},[b,_,r]),Jt.jsx(Ei,{...e,ref:t,children:Jt.jsxs(ve.Container,{ref:i,children:[r&&Jt.jsx(ve.Container,{ref:l}),Jt.jsx(ve.Container,{alpha:r?0:1,ref:u,children:Jt.jsx(ve.Text,{style:it,x:b,y:_,anchor:.5,text:d,...!r&&!c&&{interactive:!0,buttonMode:!0,pointerdown:m},ref:a})})]})})}),nC={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},iC=Tt.forwardRef((e,t)=>{const[,r]=Tt.useState(!1),[,n]=Tt.useState({isWaiting:!1,isStalled:!1}),[i,a]=Tt.useState(),l=mt.useRef(null),u=mt.useRef(null),f=mt.useRef(null),h=mt.useRef(nC),p=mt.useRef(),{tl:d,isDragging:c}=mt.useContext(mi),{uniqueId:v,mute:y=!1,src:m,startAt:b,endAt:_,frameStartAt:E,frameEndAt:w,transformation:{x,y:A,width:C,height:S,animation:O}}=e,L=m||"",R=Tt.useMemo(()=>{const q=document.createElement("video");return q.src=m,q.crossOrigin="Anonymus",q.autoplay=!1,q.currentTime=E,q},[m,E]);wr(qe.PAUSE,()=>{if(f.current){const q=f.current;q.currentTime>0&&!q.paused&&!q.ended&&q.readyState>q.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}}),Tt.useEffect(()=>{f.current&&(c?(f.current.pause(),h.current.isPlaying=!1,h.current.isDragging=!0):h.current.isDragging=!1)},[c]);const I=q=>{var X;console.log("pixivideo gsapOnStart",q,w,(X=p.current)==null?void 0:X.time()),f.current&&(f.current.currentTime=Number(q),c||(f.current.currentTime=Number(q),f.current.play(),h.current.isPlaying=!0))},N=()=>{if(f.current){const q=f.current;q.currentTime>0&&!q.paused&&!q.ended&&q.readyState>q.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}},k=()=>{},F=()=>{var q;if(f.current&&p.current){const X=E+((q=p.current)==null?void 0:q.time());Math.abs(f.current.currentTime-X);const z=f.current,it=z.currentTime>0&&!z.paused&&!z.ended&&z.readyState>z.HAVE_CURRENT_DATA;h.current.isDragging?(f.current.currentTime=X,f.current.play(),setTimeout(()=>{h.current.isPlaying=!1,f.current&&f.current.pause()},300),h.current.isPlaying=!1):h.current.isPlaying||(it||f.current.play(),h.current.isPlaying=!0)}};return mt.useEffect(()=>{let q=Xe.context(()=>{});if(u.current&&d.current){console.log("timlinepixi",E,w);const X={duration:Number(w)-Number(E),onStart:I,onComplete:N,onStartParams:[E,w],onCompleteParams:[],onInterrupt:k,onUpdate:F,onUpdateParams:[E,w]};q=Xe.context(()=>{p.current=Xe.from(u.current,X,E),d.current.add(p.current,b)})}return()=>q.revert()},[O,b,_,E,w]),Tt.useEffect(()=>{u.current&&r(!0)},[]),Tt.useEffect(()=>{f.current&&(f.current.muted=y)},[y]),Tt.useEffect(()=>{if(f.current){const q=f.current;q.currentTime>0&&!q.paused&&!q.ended&&q.readyState>q.HAVE_CURRENT_DATA&&c&&(f.current.pause(),h.current.isPlaying=!1)}},[c]),Tt.useEffect(()=>{const q=Math.round((Number(E)+Number.EPSILON)*100)/100,X=function(){f.current&&(f.current.currentTime=q)},z=function(){if(f.current){const V=f.current;V.currentTime>0&&!V.paused&&!V.ended&&V.readyState>V.HAVE_CURRENT_DATA&&f.current.pause()}n({isWaiting:!1,isStalled:!1})},it=function(){f.current&&f.current.pause(),n({isWaiting:!0,isStalled:!1})},Z=function(){n({isWaiting:!1,isStalled:!1})},$=function(){n({isWaiting:!1,isStalled:!0})},M=Math.round((Number(E)+Number.EPSILON)*100)/100,U=Math.round((Number(w)+Number.EPSILON)*100)/100,j=`${L}#t=${M},${U}`;return console.log("urlTimestap",j),wn.Texture.fromLoader(R,j,v,{pixiIdPrefix:v,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(V=>{V&&(a(V),f.current=V.baseTexture.resource.source,f.current.id=v,f.current.addEventListener("loadedmetadata",X),f.current.addEventListener("ended",z),f.current.addEventListener("loadstart",it),f.current.addEventListener("canplaythrough",Z),f.current.addEventListener("stalled",$))}),()=>{f.current&&(f.current.removeEventListener("loadedmetadata",X),f.current.removeEventListener("ended",z),f.current.removeEventListener("loadstart",it),f.current.removeEventListener("canplaythrough",Z),f.current.removeEventListener("stalled",$))}},[L,v,E,w,R]),Jt.jsx(Ei,{...e,ref:t,ignoreTlForVideo:!0,children:Jt.jsx(ve.Container,{ref:u,children:i&&Jt.jsx(ve.Sprite,{texture:i,width:C,height:S,anchor:.5,x,y:A,ref:l})})})});var Lp=(e=>(e.FADE_IN="FADE_IN",e.FADE_OUT="FADE_OUT",e.FADE_IN_OUT="FADE_IN_OUT",e.SLIDE_IN_LEFT="SLIDE_IN_LEFT",e.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",e.SLIDE_IN_TOP="SLIDE_IN_TOP",e.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",e.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",e.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",e.SLIDE_OUT_TOP="SLIDE_OUT_TOP",e.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.ZOOM_IN_OUT="ZOOM_IN_OUT",e.BOUNCE_IN="BOUNCE_IN",e.BOUNCE_OUT="BOUNCE_OUT",e.BOUNCE_IN_OUT="BOUNCE_IN_OUT",e.ELASTIC_IN="ELASTIC_IN",e.ELASTIC_OUT="ELASTIC_OUT",e.ELASTIC_IN_OUT="ELASTIC_IN_OUT",e.BACK_IN="BACK_IN",e.BACK_OUT="BACK_OUT",e.BACK_IN_OUT="BACK_IN_OUT",e.CIRCULAR_IN="CIRCULAR_IN",e.CIRCULAR_OUT="CIRCULAR_OUT",e.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",e.EXPO_IN="EXPO_IN",e.EXPO_OUT="EXPO_OUT",e.EXPO_IN_OUT="EXPO_IN_OUT",e.SINE_IN="SINE_IN",e.SINE_OUT="SINE_OUT",e.SINE_IN_OUT="SINE_IN_OUT",e.BOUNCE="BOUNCE",e.ELASTIC="ELASTIC",e.BACK="BACK",e.CIRCULAR="CIRCULAR",e.EXPO="EXPO",e.SINE="SINE",e))(Lp||{}),Fp=(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))(Fp||{});ie.Animations=Lp,ie.BlendModes=Fp,ie.Events=qe,ie.GsapPixieContext=mi,ie.GsapPixieContextProvider=P1,ie.PixiAnimatedSprite=Pp,ie.PixiAudioSprite=yT,ie.PixiGifSprite=QR,ie.PixiImageSprite=CE,ie.PixiSvgPathSprite=qw,ie.PixiTextSprite=rC,ie.PixiVideoSprite=iC,ie.emitCustomEvent=Ea,ie.newCustomEventEmitter=N1,ie.useCustomEventListener=wr,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|
|
616
|
+
`)}return ot}function Kt(nt,ot){var pt={},vt=nt.style||{};return vt.fontStyle&&V(nt).fontStyle==="italic"&&(pt.italic=!0),vt.fontWeight&&(V(nt).fontWeight.startsWith("bold")||parseInt(V(nt).fontWeight)>=700)&&(pt.bold=!0),Object.keys(pt).length>0&&(ot=j(ot,pt)),parseFloat(vt.textIndent||0)>0&&(ot=new d.default().insert(" ").concat(ot)),ot}function jt(nt,ot){var pt=nt.data;if(nt.parentNode.tagName==="O:P")return ot.insert(pt.trim());if(pt.trim().length===0&&nt.parentNode.classList.contains("ql-clipboard"))return ot;if(!V(nt.parentNode).whiteSpace.startsWith("pre")){var vt=function(Nt,Lt){return Lt=Lt.replace(/[^\u00a0]/g,""),Lt.length<1&&Nt?" ":Lt};pt=pt.replace(/\r\n/g," ").replace(/\n/g," "),pt=pt.replace(/\s\s+/g,vt.bind(vt,!0)),(nt.previousSibling==null&&G(nt.parentNode)||nt.previousSibling!=null&&G(nt.previousSibling))&&(pt=pt.replace(/^\s+/,vt.bind(vt,!1))),(nt.nextSibling==null&&G(nt.parentNode)||nt.nextSibling!=null&&G(nt.nextSibling))&&(pt=pt.replace(/\s+$/,vt.bind(vt,!1)))}return ot.insert(pt)}n.default=U,n.matchAttributor=et,n.matchBlot=st,n.matchNewline=xt,n.matchSpacing=It,n.matchText=jt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return p(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"optimize",value:function(_){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(f.default);v.blotName="bold",v.tagName=["STRONG","B"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var a=function(){function I(N,k){var F=[],q=!0,X=!1,z=void 0;try{for(var it=N[Symbol.iterator](),Z;!(q=(Z=it.next()).done)&&(F.push(Z.value),!(k&&F.length===k));q=!0);}catch($){X=!0,z=$}finally{try{!q&&it.return&&it.return()}finally{if(X)throw z}}return F}return function(N,k){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return I(N,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function I(N,k){for(var F=0;F<k.length;F++){var q=k[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(N,q.key,q)}}return function(N,k,F){return k&&I(N.prototype,k),F&&I(N,F),N}}(),u=i(2),f=_(u),h=i(0),p=_(h),d=i(5),c=_(d),v=i(10),y=_(v),m=i(9),b=_(m);function _(I){return I&&I.__esModule?I:{default:I}}function E(I,N,k){return N in I?Object.defineProperty(I,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):I[N]=k,I}function w(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function x(I,N){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:I}function A(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(I,N):I.__proto__=N)}var C=(0,y.default)("quill:toolbar"),S=function(I){A(N,I);function N(k,F){w(this,N);var q=x(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,k,F));if(Array.isArray(q.options.container)){var X=document.createElement("div");L(X,q.options.container),k.container.parentNode.insertBefore(X,k.container),q.container=X}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var z;return z=C.error("Container required for toolbar",q.options),x(q,z)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(it){q.addHandler(it,q.options.handlers[it])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(it){q.attach(it)}),q.quill.on(c.default.events.EDITOR_CHANGE,function(it,Z){it===c.default.events.SELECTION_CHANGE&&q.update(Z)}),q.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var it=q.quill.selection.getRange(),Z=a(it,1),$=Z[0];q.update($)}),q}return l(N,[{key:"addHandler",value:function(F,q){this.handlers[F]=q}},{key:"attach",value:function(F){var q=this,X=[].find.call(F.classList,function(it){return it.indexOf("ql-")===0});if(X){if(X=X.slice(3),F.tagName==="BUTTON"&&F.setAttribute("type","button"),this.handlers[X]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[X]==null){C.warn("ignoring attaching to disabled format",X,F);return}if(p.default.query(X)==null){C.warn("ignoring attaching to nonexistent format",X,F);return}}var z=F.tagName==="SELECT"?"change":"click";F.addEventListener(z,function(it){var Z=void 0;if(F.tagName==="SELECT"){if(F.selectedIndex<0)return;var $=F.options[F.selectedIndex];$.hasAttribute("selected")?Z=!1:Z=$.value||!1}else F.classList.contains("ql-active")?Z=!1:Z=F.value||!F.hasAttribute("value"),it.preventDefault();q.quill.focus();var M=q.quill.selection.getRange(),U=a(M,1),j=U[0];if(q.handlers[X]!=null)q.handlers[X].call(q,Z);else if(p.default.query(X).prototype instanceof p.default.Embed){if(Z=prompt("Enter "+X),!Z)return;q.quill.updateContents(new f.default().retain(j.index).delete(j.length).insert(E({},X,Z)),c.default.sources.USER)}else q.quill.format(X,Z,c.default.sources.USER);q.update(j)}),this.controls.push([X,F])}}},{key:"update",value:function(F){var q=F==null?{}:this.quill.getFormat(F);this.controls.forEach(function(X){var z=a(X,2),it=z[0],Z=z[1];if(Z.tagName==="SELECT"){var $=void 0;if(F==null)$=null;else if(q[it]==null)$=Z.querySelector("option[selected]");else if(!Array.isArray(q[it])){var M=q[it];typeof M=="string"&&(M=M.replace(/\"/g,'\\"')),$=Z.querySelector('option[value="'+M+'"]')}$==null?(Z.value="",Z.selectedIndex=-1):$.selected=!0}else if(F==null)Z.classList.remove("ql-active");else if(Z.hasAttribute("value")){var U=q[it]===Z.getAttribute("value")||q[it]!=null&&q[it].toString()===Z.getAttribute("value")||q[it]==null&&!Z.getAttribute("value");Z.classList.toggle("ql-active",U)}else Z.classList.toggle("ql-active",q[it]!=null)})}}]),N}(b.default);S.DEFAULTS={};function O(I,N,k){var F=document.createElement("button");F.setAttribute("type","button"),F.classList.add("ql-"+N),k!=null&&(F.value=k),I.appendChild(F)}function L(I,N){Array.isArray(N[0])||(N=[N]),N.forEach(function(k){var F=document.createElement("span");F.classList.add("ql-formats"),k.forEach(function(q){if(typeof q=="string")O(F,q);else{var X=Object.keys(q)[0],z=q[X];Array.isArray(z)?R(F,X,z):O(F,X,z)}}),I.appendChild(F)})}function R(I,N,k){var F=document.createElement("select");F.classList.add("ql-"+N),k.forEach(function(q){var X=document.createElement("option");q!==!1?X.setAttribute("value",q):X.setAttribute("selected","selected"),F.appendChild(X)}),I.appendChild(F)}S.DEFAULTS={container:null,handlers:{clean:function(){var N=this,k=this.quill.getSelection();if(k!=null)if(k.length==0){var F=this.quill.getFormat();Object.keys(F).forEach(function(q){p.default.query(q,p.default.Scope.INLINE)!=null&&N.quill.format(q,!1)})}else this.quill.removeFormat(k,c.default.sources.USER)},direction:function(N){var k=this.quill.getFormat().align;N==="rtl"&&k==null?this.quill.format("align","right",c.default.sources.USER):!N&&k==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",N,c.default.sources.USER)},indent:function(N){var k=this.quill.getSelection(),F=this.quill.getFormat(k),q=parseInt(F.indent||0);if(N==="+1"||N==="-1"){var X=N==="+1"?1:-1;F.direction==="rtl"&&(X*=-1),this.quill.format("indent",q+X,c.default.sources.USER)}},link:function(N){N===!0&&(N=prompt("Enter link URL:")),this.quill.format("link",N,c.default.sources.USER)},list:function(N){var k=this.quill.getSelection(),F=this.quill.getFormat(k);N==="check"?F.list==="checked"||F.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",N,c.default.sources.USER)}}},n.default=S,n.addControls=L},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(b,_){p(this,m);var E=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return E.label.innerHTML=_,E.container.classList.add("ql-color-picker"),[].slice.call(E.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),E}return a(m,[{key:"buildItem",value:function(_){var E=l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,_);return E.style.backgroundColor=_.getAttribute("value")||"",E}},{key:"selectItem",value:function(_,E){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,_,E);var w=this.label.querySelector(".ql-color-label"),x=_&&_.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=x:w.style.fill=x)}}]),m}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(b,_){p(this,m);var E=d(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return E.container.classList.add("ql-icon-picker"),[].forEach.call(E.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=_[w.getAttribute("data-value")||""]}),E.defaultItem=E.container.querySelector(".ql-selected"),E.selectItem(E.defaultItem),E}return a(m,[{key:"selectItem",value:function(_,E){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,_,E),_=_||this.defaultItem,this.label.innerHTML=_.innerHTML}}]),m}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function f(h,p){for(var d=0;d<p.length;d++){var c=p[d];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,p,d){return p&&f(h.prototype,p),d&&f(h,d),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,p){var d=this;l(this,f),this.quill=h,this.boundsContainer=p||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return a(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var d=p.left+p.width/2-this.root.offsetWidth/2,c=p.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var v=this.boundsContainer.getBoundingClientRect(),y=this.root.getBoundingClientRect(),m=0;if(y.right>v.right&&(m=v.right-y.right,this.root.style.left=d+m+"px"),y.left<v.left&&(m=v.left-y.left,this.root.style.left=d+m+"px"),y.bottom>v.bottom){var b=y.bottom-y.top,_=p.bottom-p.top+b;this.root.style.top=c-_+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function R(I,N){var k=[],F=!0,q=!1,X=void 0;try{for(var z=I[Symbol.iterator](),it;!(F=(it=z.next()).done)&&(k.push(it.value),!(N&&k.length===N));F=!0);}catch(Z){q=!0,X=Z}finally{try{!F&&z.return&&z.return()}finally{if(q)throw X}}return k}return function(I,N){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return R(I,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function R(I,N,k){I===null&&(I=Function.prototype);var F=Object.getOwnPropertyDescriptor(I,N);if(F===void 0){var q=Object.getPrototypeOf(I);return q===null?void 0:R(q,N,k)}else{if("value"in F)return F.value;var X=F.get;return X===void 0?void 0:X.call(k)}},u=function(){function R(I,N){for(var k=0;k<N.length;k++){var F=N[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,F.key,F)}}return function(I,N,k){return N&&R(I.prototype,N),k&&R(I,k),I}}(),f=i(3),h=w(f),p=i(8),d=w(p),c=i(43),v=w(c),y=i(27),m=w(y),b=i(15),_=i(41),E=w(_);function w(R){return R&&R.__esModule?R:{default:R}}function x(R,I){if(!(R instanceof I))throw new TypeError("Cannot call a class as a function")}function A(R,I){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:R}function C(R,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);R.prototype=Object.create(I&&I.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(R,I):R.__proto__=I)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(R){C(I,R);function I(N,k){x(this,I),k.modules.toolbar!=null&&k.modules.toolbar.container==null&&(k.modules.toolbar.container=S);var F=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,N,k));return F.quill.container.classList.add("ql-snow"),F}return u(I,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),E.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),E.default),this.tooltip=new L(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(F,q){k.handlers.link.call(k,!q.format.link)})}}]),I}(v.default);O.DEFAULTS=(0,h.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(I){if(I){var N=this.quill.getSelection();if(N==null||N.length==0)return;var k=this.quill.getText(N);/^\S+@\S+\.\S+$/.test(k)&&k.indexOf("mailto:")!==0&&(k="mailto:"+k);var F=this.quill.theme.tooltip;F.edit("link",k)}else this.quill.format("link",!1)}}}}});var L=function(R){C(I,R);function I(N,k){x(this,I);var F=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,N,k));return F.preview=F.root.querySelector("a.ql-preview"),F}return u(I,[{key:"listen",value:function(){var k=this;l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(F){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),F.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(F){if(k.linkRange!=null){var q=k.linkRange;k.restoreFocus(),k.quill.formatText(q,"link",!1,d.default.sources.USER),delete k.linkRange}F.preventDefault(),k.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(F,q,X){if(F!=null){if(F.length===0&&X===d.default.sources.USER){var z=k.quill.scroll.descendant(m.default,F.index),it=a(z,2),Z=it[0],$=it[1];if(Z!=null){k.linkRange=new b.Range(F.index-$,Z.length());var M=m.default.formats(Z.domNode);k.preview.textContent=M,k.preview.setAttribute("href",M),k.show(),k.position(k.quill.getBounds(k.linkRange));return}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),I}(c.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=O},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(29),l=ft(a),u=i(36),f=i(38),h=i(64),p=i(65),d=ft(p),c=i(66),v=ft(c),y=i(67),m=ft(y),b=i(37),_=i(26),E=i(39),w=i(40),x=i(56),A=ft(x),C=i(68),S=ft(C),O=i(27),L=ft(O),R=i(69),I=ft(R),N=i(70),k=ft(N),F=i(71),q=ft(F),X=i(72),z=ft(X),it=i(73),Z=ft(it),$=i(13),M=ft($),U=i(74),j=ft(U),V=i(75),Y=ft(V),G=i(57),W=ft(G),tt=i(41),et=ft(tt),st=i(28),ht=ft(st),dt=i(59),_t=ft(dt),xt=i(60),It=ft(xt),Kt=i(61),jt=ft(Kt),nt=i(108),ot=ft(nt),pt=i(62),vt=ft(pt);function ft(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}}l.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":u.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":_.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":E.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":u.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":_.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":E.FontStyle,"attributors/style/size":w.SizeStyle},!0),l.default.register({"formats/align":u.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":_.ColorStyle,"formats/font":E.FontClass,"formats/size":w.SizeClass,"formats/blockquote":d.default,"formats/code-block":M.default,"formats/header":v.default,"formats/list":m.default,"formats/bold":A.default,"formats/code":$.Code,"formats/italic":S.default,"formats/link":L.default,"formats/script":I.default,"formats/strike":k.default,"formats/underline":q.default,"formats/image":z.default,"formats/video":Z.default,"formats/list/item":y.ListItem,"modules/formula":j.default,"modules/syntax":Y.default,"modules/toolbar":W.default,"themes/bubble":ot.default,"themes/snow":vt.default,"ui/icons":et.default,"ui/picker":ht.default,"ui/icon-picker":It.default,"ui/color-picker":_t.default,"ui/tooltip":jt.default},!0),n.default=l.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var a=function(){function m(b,_){for(var E=0;E<_.length;E++){var w=_[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,_,E){return _&&m(b.prototype,_),E&&m(b,E),b}}(),l=function m(b,_,E){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,_);if(w===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:m(x,_,E)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(E)}},u=i(0),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function p(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function d(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function c(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var v=function(m){c(b,m);function b(){return p(this,b),d(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"add",value:function(E,w){if(w==="+1"||w==="-1"){var x=this.value(E)||0;w=w==="+1"?x+1:x-1}return w===0?(this.remove(E),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,E,w)}},{key:"canAdd",value:function(E,w){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,E,w)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,E,parseInt(w))}},{key:"value",value:function(E){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,E))||void 0}}]),b}(f.default.Attributor.Class),y=new v("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(4),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function p(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var d=function(c){p(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);d.blotName="blockquote",d.tagName="blockquote",n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function v(y,m){for(var b=0;b<m.length;b++){var _=m[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,m,b){return m&&v(y.prototype,m),b&&v(y,b),y}}(),l=i(4),u=f(l);function f(v){return v&&v.__esModule?v:{default:v}}function h(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function p(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function d(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var c=function(v){d(y,v);function y(){return h(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),y}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var a=function(){function x(A,C){for(var S=0;S<C.length;S++){var O=C[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,C,S){return C&&x(A.prototype,C),S&&x(A,S),A}}(),l=function x(A,C,S){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,C);if(O===void 0){var L=Object.getPrototypeOf(A);return L===null?void 0:x(L,C,S)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(S)}},u=i(0),f=v(u),h=i(4),p=v(h),d=i(25),c=v(d);function v(x){return x&&x.__esModule?x:{default:x}}function y(x,A,C){return A in x?Object.defineProperty(x,A,{value:C,enumerable:!0,configurable:!0,writable:!0}):x[A]=C,x}function m(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}function b(x,A){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:x}function _(x,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);x.prototype=Object.create(A&&A.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(x,A):x.__proto__=A)}var E=function(x){_(A,x);function A(){return m(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return a(A,[{key:"format",value:function(S,O){S===w.blotName&&!O?this.replaceWith(f.default.create(this.statics.scope)):l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,S,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,O){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,O),this):(this.parent.unwrap(),l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,S,O))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:l(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,S)}}]),A}(p.default);E.blotName="list-item",E.tagName="LI";var w=function(x){_(A,x),a(A,null,[{key:"create",value:function(S){var O=S==="ordered"?"OL":"UL",L=l(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,O);return(S==="checked"||S==="unchecked")&&L.setAttribute("data-checked",S==="checked"),L}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(C){m(this,A);var S=b(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,C)),O=function(R){if(R.target.parentNode===C){var I=S.statics.formats(C),N=f.default.find(R.target);I==="checked"?N.format("list","unchecked"):I==="unchecked"&&N.format("list","checked")}};return C.addEventListener("touchstart",O),C.addEventListener("mousedown",O),S}return a(A,[{key:"format",value:function(S,O){this.children.length>0&&this.children.tail.format(S,O)}},{key:"formats",value:function(){return y({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,O){if(S instanceof E)l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,S,O);else{var L=O==null?this.length():O.offset(this),R=this.split(L);R.parent.insertBefore(S,R)}}},{key:"optimize",value:function(S){l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,S);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var O=f.default.create(this.statics.defaultChild);S.moveChildren(O),this.appendChild(O)}l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,S)}}]),A}(c.default);w.blotName="list",w.scope=f.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[E],n.ListItem=E,n.default=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(56),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function p(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var d=function(c){p(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);d.blotName="italic",d.tagName=["EM","I"],n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function p(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function d(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return p(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,null,[{key:"create",value:function(_){return _==="super"?document.createElement("sup"):_==="sub"?document.createElement("sub"):l(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_)}},{key:"formats",value:function(_){if(_.tagName==="SUB")return"sub";if(_.tagName==="SUP")return"super"}}]),m}(f.default);v.blotName="script",v.tagName=["SUB","SUP"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function p(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var d=function(c){p(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);d.blotName="strike",d.tagName="S",n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function p(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var d=function(c){p(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);d.blotName="underline",d.tagName="U",n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(0),f=p(u),h=i(27);function p(b){return b&&b.__esModule?b:{default:b}}function d(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=["alt","height","width"],m=function(b){v(_,b);function _(){return d(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"format",value:function(w,x){y.indexOf(w)>-1?x?this.domNode.setAttribute(w,x):this.domNode.removeAttribute(w):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,w,x)}}],[{key:"create",value:function(w){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,w);return typeof w=="string"&&x.setAttribute("src",this.sanitize(w)),x}},{key:"formats",value:function(w){return y.reduce(function(x,A){return w.hasAttribute(A)&&(x[A]=w.getAttribute(A)),x},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,h.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),_}(f.default.Embed);m.blotName="image",m.tagName="IMG",n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(4),f=i(27),h=p(f);function p(b){return b&&b.__esModule?b:{default:b}}function d(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=["height","width"],m=function(b){v(_,b);function _(){return d(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"format",value:function(w,x){y.indexOf(w)>-1?x?this.domNode.setAttribute(w,x):this.domNode.removeAttribute(w):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,w,x)}}],[{key:"create",value:function(w){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,w);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(w)),x}},{key:"formats",value:function(w){return y.reduce(function(x,A){return w.hasAttribute(A)&&(x[A]=w.getAttribute(A)),x},{})}},{key:"sanitize",value:function(w){return h.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),_}(u.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var a=function(){function w(x,A){for(var C=0;C<A.length;C++){var S=A[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,C){return A&&w(x.prototype,A),C&&w(x,C),x}}(),l=function w(x,A,C){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,A);if(S===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:w(O,A,C)}else{if("value"in S)return S.value;var L=S.get;return L===void 0?void 0:L.call(C)}},u=i(35),f=v(u),h=i(5),p=v(h),d=i(9),c=v(d);function v(w){return w&&w.__esModule?w:{default:w}}function y(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function m(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function b(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var _=function(w){b(x,w);function x(){return y(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,null,[{key:"create",value:function(C){var S=l(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,C);return typeof C=="string"&&(window.katex.render(C,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",C)),S}},{key:"value",value:function(C){return C.getAttribute("data-value")}}]),x}(f.default);_.blotName="formula",_.className="ql-formula",_.tagName="SPAN";var E=function(w){b(x,w),a(x,null,[{key:"register",value:function(){p.default.register(_,!0)}}]);function x(){y(this,x);var A=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return x}(c.default);n.FormulaBlot=_,n.default=E},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var a=function(){function C(S,O){for(var L=0;L<O.length;L++){var R=O[L];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(S,R.key,R)}}return function(S,O,L){return O&&C(S.prototype,O),L&&C(S,L),S}}(),l=function C(S,O,L){S===null&&(S=Function.prototype);var R=Object.getOwnPropertyDescriptor(S,O);if(R===void 0){var I=Object.getPrototypeOf(S);return I===null?void 0:C(I,O,L)}else{if("value"in R)return R.value;var N=R.get;return N===void 0?void 0:N.call(L)}},u=i(0),f=m(u),h=i(5),p=m(h),d=i(9),c=m(d),v=i(13),y=m(v);function m(C){return C&&C.__esModule?C:{default:C}}function b(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}function _(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:C}function E(C,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}var w=function(C){E(S,C);function S(){return b(this,S),_(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return a(S,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),S}(y.default);w.className="ql-syntax";var x=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),A=function(C){E(S,C),a(S,null,[{key:"register",value:function(){p.default.register(x,!0),p.default.register(w,!0)}}]);function S(O,L){b(this,S);var R=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,O,L));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var I=null;return R.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(I),I=setTimeout(function(){R.highlight(),I=null},R.options.interval)}),R.highlight(),R}return a(S,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(I){I.highlight(L.options.highlight)}),this.quill.update(p.default.sources.SILENT),R!=null&&this.quill.setSelection(R,p.default.sources.SILENT)}}}]),S}(c.default);A.DEFAULTS={highlight:function(){return window.hljs==null?null:function(C){var S=window.hljs.highlightAuto(C);return S.value}}(),interval:1e3},n.CodeBlock=w,n.CodeToken=x,n.default=A},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var a=function S(O,L,R){O===null&&(O=Function.prototype);var I=Object.getOwnPropertyDescriptor(O,L);if(I===void 0){var N=Object.getPrototypeOf(O);return N===null?void 0:S(N,L,R)}else{if("value"in I)return I.value;var k=I.get;return k===void 0?void 0:k.call(R)}},l=function(){function S(O,L){for(var R=0;R<L.length;R++){var I=L[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}return function(O,L,R){return L&&S(O.prototype,L),R&&S(O,R),O}}(),u=i(3),f=b(u),h=i(8),p=b(h),d=i(43),c=b(d),v=i(15),y=i(41),m=b(y);function b(S){return S&&S.__esModule?S:{default:S}}function _(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function E(S,O){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:S}function w(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(S,O):S.__proto__=O)}var x=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=function(S){w(O,S);function O(L,R){_(this,O),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=x);var I=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return I.quill.container.classList.add("ql-bubble"),I}return l(O,[{key:"extendToolbar",value:function(R){this.tooltip=new C(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),m.default)}}]),O}(c.default);A.DEFAULTS=(0,f.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var C=function(S){w(O,S);function O(L,R){_(this,O);var I=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return I.quill.on(p.default.events.EDITOR_CHANGE,function(N,k,F,q){if(N===p.default.events.SELECTION_CHANGE)if(k!=null&&k.length>0&&q===p.default.sources.USER){I.show(),I.root.style.left="0px",I.root.style.width="",I.root.style.width=I.root.offsetWidth+"px";var X=I.quill.getLines(k.index,k.length);if(X.length===1)I.position(I.quill.getBounds(k));else{var z=X[X.length-1],it=I.quill.getIndex(z),Z=Math.min(z.length()-1,k.index+k.length-it),$=I.quill.getBounds(new v.Range(it,Z));I.position($)}}else document.activeElement!==I.textbox&&I.quill.hasFocus()&&I.hide()}),I}return l(O,[{key:"listen",value:function(){var R=this;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var I=R.quill.getSelection();I!=null&&R.position(R.quill.getBounds(I))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var I=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,R),N=this.root.querySelector(".ql-tooltip-arrow");if(N.style.marginLeft="",I===0)return I;N.style.marginLeft=-1*I-N.offsetWidth/2+"px"}}]),O}(d.BaseTooltip);C.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=C,n.default=A},function(r,n,i){r.exports=i(63)}]).default})})(kp);var tC=kp.exports;const eC=Tn(tC),qF="",rC=Tt.forwardRef((e,t)=>{const[r,n]=mt.useState(!1);console.log("allProps",e);const i=mt.useRef(null),a=mt.useRef(null),l=mt.useRef(null),u=mt.useRef(null),f=mt.useRef(16),h=mt.useRef(null),{uniqueId:p,text:d,disabled:c,transformation:v,onTextUpdate:y,pointerdown:m}=e,{x:b,y:_,fontFamily:E="Arial",fontWeight:w="normal",fontStyle:x="normal",fontSize:A=16,fill:C="black",stroke:S,strokeThickness:O=0,blurRadius:L=0,blurEnabled:R=!1,dropShadowColor:I=null,wordWrapWidth:N=5e7,leading:k=0,letterSpacing:F}=v;Tt.useEffect(()=>{f.current=Number(A)},[A]);const q=["italic","oblique"].includes(x)?x:void 0,X=["bold","lighter","100","200","300"].includes(w)?w:void 0,z=Number(F)>0?F:void 0,it=Tt.useMemo(()=>new wn.TextStyle({fontFamily:E,fontSize:A,fill:C||"white",...S&&O>0&&{stroke:S,strokeThickness:O},...q&&{fontStyle:q},...X&&{fontWeight:X},...z&&{letterSpacing:z},...R&&{dropShadow:!0,dropShadowBlur:Number(L),dropShadowColor:(I==null?void 0:I.toString())||"black",dropShadowDistance:0},wordWrap:!0,breakWords:!0,wordWrapWidth:N||500,leading:k||0}),[R,L,C,E,A,k,q,X,z,I,S,O,N]);Tt.useEffect(()=>{h.current={...v}},[v]);const Z=$=>{y&&y({text:$,uniqueId:p,droptype:"titles"})};return Tt.useEffect(()=>{if(r&&l.current){let M=document.getElementById("note-editor");if(M){M.style.position="absolute",M.style.zIndex="10",M.style.left=b+"px",M.style.top=_+"px",M.style.backgroundColor="var(--chakra-color-darkShark)",M.style.transform="scale(1.5)",M.style.width="300px",M.style.height="100px",M.style.color="#fff",M.style.fontSize="20px",M.style.border="1px solid #CBCEE0";const U={esc:{key:27,handler:function(){n(!1)}},enter:{key:13,handler:function(){n(!1)}}};var $=new eC("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...U}}},placeholder:"Compose your text here...",theme:"snow"});$.on("text-change",function(){Z($.root.innerText)}),$.setText(d),$.focus(),$.off("text-change",()=>{console.log("removed")}),$.hasFocus()||(M.style.display="none")}}},[b,_,r]),Jt.jsx(Ei,{...e,ref:t,children:Jt.jsxs(ve.Container,{ref:i,children:[r&&Jt.jsx(ve.Container,{ref:l}),Jt.jsx(ve.Container,{alpha:r?0:1,ref:u,children:Jt.jsx(ve.Text,{style:it,x:b,y:_,anchor:.5,text:d,...!r&&!c&&{interactive:!0,buttonMode:!0,pointerdown:m},ref:a})})]})})}),nC={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},iC=Tt.forwardRef((e,t)=>{const[,r]=Tt.useState(!1),[,n]=Tt.useState({isWaiting:!1,isStalled:!1}),[i,a]=Tt.useState(),l=mt.useRef(null),u=mt.useRef(null),f=mt.useRef(null),h=mt.useRef(nC),p=mt.useRef(),{tl:d,isDragging:c}=mt.useContext(mi),{uniqueId:v,mute:y=!1,src:m,startAt:b,endAt:_,frameStartAt:E,frameEndAt:w,transformation:{x,y:A,width:C,height:S,animation:O}}=e,L=m||"",R=Tt.useMemo(()=>{const q=document.createElement("video");return q.src=m,q.crossOrigin="Anonymus",q.autoplay=!1,q.currentTime=E===0?.001:E,q},[m,E]);wr(qe.PAUSE,()=>{if(f.current){const q=f.current;q.currentTime>0&&!q.paused&&!q.ended&&q.readyState>q.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}}),Tt.useEffect(()=>{f.current&&(c?(f.current.pause(),h.current.isPlaying=!1,h.current.isDragging=!0):h.current.isDragging=!1)},[c]);const I=q=>{var X;console.log("pixivideo gsapOnStart",q,w,(X=p.current)==null?void 0:X.time()),f.current&&(f.current.currentTime=Number(q),c||(f.current.currentTime=Number(q),f.current.play(),h.current.isPlaying=!0))},N=()=>{if(f.current){const q=f.current;q.currentTime>0&&!q.paused&&!q.ended&&q.readyState>q.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}},k=()=>{},F=()=>{var q;if(f.current&&p.current){const X=E+((q=p.current)==null?void 0:q.time());Math.abs(f.current.currentTime-X);const z=f.current,it=z.currentTime>0&&!z.paused&&!z.ended&&z.readyState>z.HAVE_CURRENT_DATA;h.current.isDragging?(f.current.currentTime=X,f.current.play(),setTimeout(()=>{h.current.isPlaying=!1,f.current&&f.current.pause()},300),h.current.isPlaying=!1):h.current.isPlaying||(it||f.current.play(),h.current.isPlaying=!0)}};return mt.useEffect(()=>{let q=Xe.context(()=>{});if(u.current&&d.current){console.log("timlinepixi",E,w);const X={duration:Number(w)-Number(E),onStart:I,onComplete:N,onStartParams:[E,w],onCompleteParams:[],onInterrupt:k,onUpdate:F,onUpdateParams:[E,w]};p.current&&p.current.kill(),q=Xe.context(()=>{p.current=Xe.from(u.current,X,E),d.current.add(p.current,b)})}return()=>{p.current&&p.current.kill(),q.revert()}},[O,b,_,E,w]),Tt.useEffect(()=>{u.current&&r(!0)},[]),Tt.useEffect(()=>{f.current&&(f.current.muted=y)},[y]),Tt.useEffect(()=>{if(f.current){const q=f.current;q.currentTime>0&&!q.paused&&!q.ended&&q.readyState>q.HAVE_CURRENT_DATA&&c&&(f.current.pause(),h.current.isPlaying=!1)}},[c]),Tt.useEffect(()=>{const q=Math.round((Number(E)+Number.EPSILON)*100)/100,X=function(){f.current&&(f.current.currentTime=q)},z=function(){if(f.current){const V=f.current;V.currentTime>0&&!V.paused&&!V.ended&&V.readyState>V.HAVE_CURRENT_DATA&&f.current.pause()}n({isWaiting:!1,isStalled:!1})},it=function(){f.current&&f.current.pause(),n({isWaiting:!0,isStalled:!1})},Z=function(){n({isWaiting:!1,isStalled:!1})},$=function(){n({isWaiting:!1,isStalled:!0})},M=Math.round((Number(E)+Number.EPSILON)*100)/100,U=Math.round((Number(w)+Number.EPSILON)*100)/100,j=`${L}#t=${M},${U}`;return console.log("urlTimestap",j),wn.Texture.fromLoader(R,j,v,{pixiIdPrefix:v,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(V=>{V&&(a(V),f.current=V.baseTexture.resource.source,f.current.id=v,f.current.addEventListener("loadedmetadata",X),f.current.addEventListener("ended",z),f.current.addEventListener("loadstart",it),f.current.addEventListener("canplaythrough",Z),f.current.addEventListener("stalled",$))}),()=>{f.current&&(f.current.removeEventListener("loadedmetadata",X),f.current.removeEventListener("ended",z),f.current.removeEventListener("loadstart",it),f.current.removeEventListener("canplaythrough",Z),f.current.removeEventListener("stalled",$))}},[L,v,E,w,R]),Jt.jsx(Ei,{...e,ref:t,ignoreTlForVideo:!0,children:Jt.jsx(ve.Container,{ref:u,children:i&&Jt.jsx(ve.Sprite,{texture:i,width:C,height:S,anchor:.5,x,y:A,ref:l})})})});var Lp=(e=>(e.FADE_IN="FADE_IN",e.FADE_OUT="FADE_OUT",e.FADE_IN_OUT="FADE_IN_OUT",e.SLIDE_IN_LEFT="SLIDE_IN_LEFT",e.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",e.SLIDE_IN_TOP="SLIDE_IN_TOP",e.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",e.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",e.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",e.SLIDE_OUT_TOP="SLIDE_OUT_TOP",e.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.ZOOM_IN_OUT="ZOOM_IN_OUT",e.BOUNCE_IN="BOUNCE_IN",e.BOUNCE_OUT="BOUNCE_OUT",e.BOUNCE_IN_OUT="BOUNCE_IN_OUT",e.ELASTIC_IN="ELASTIC_IN",e.ELASTIC_OUT="ELASTIC_OUT",e.ELASTIC_IN_OUT="ELASTIC_IN_OUT",e.BACK_IN="BACK_IN",e.BACK_OUT="BACK_OUT",e.BACK_IN_OUT="BACK_IN_OUT",e.CIRCULAR_IN="CIRCULAR_IN",e.CIRCULAR_OUT="CIRCULAR_OUT",e.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",e.EXPO_IN="EXPO_IN",e.EXPO_OUT="EXPO_OUT",e.EXPO_IN_OUT="EXPO_IN_OUT",e.SINE_IN="SINE_IN",e.SINE_OUT="SINE_OUT",e.SINE_IN_OUT="SINE_IN_OUT",e.BOUNCE="BOUNCE",e.ELASTIC="ELASTIC",e.BACK="BACK",e.CIRCULAR="CIRCULAR",e.EXPO="EXPO",e.SINE="SINE",e))(Lp||{}),Fp=(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))(Fp||{});ie.Animations=Lp,ie.BlendModes=Fp,ie.Events=qe,ie.GsapPixieContext=mi,ie.GsapPixieContextProvider=P1,ie.PixiAnimatedSprite=Pp,ie.PixiAudioSprite=yT,ie.PixiGifSprite=QR,ie.PixiImageSprite=CE,ie.PixiSvgPathSprite=qw,ie.PixiTextSprite=rC,ie.PixiVideoSprite=iC,ie.emitCustomEvent=Ea,ie.newCustomEventEmitter=N1,ie.useCustomEventListener=wr,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reacthub-pixitweenjs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.59",
|
|
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",
|